You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
166 lines
869 KiB
166 lines
869 KiB
(window.webpackJsonp=window.webpackJsonp||[]).push([[213,5,7,8,10,13],{"+92d":function(Ne,Te,k){Ne.exports=k.p+"static/b1.8d46544a.svg"},"+GGh":function(Ne,Te){Ne.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJgAAAA4CAYAAAAB3jHPAAAAAXNSR0IArs4c6QAAIABJREFUeF7VXQm4VVXZfvc+5yKzMqiAgpggqGihoBI4Zz+iQA7VX2Fa+GeFmjnmjAZmDlnmDGaDY5KzJmmWAiKIoCihmAN/ySTDvRcF4e691v+s4VvrW2vvcwFB8r/lcy/n7LP32nu9+/3e7/2+tU+CLfwjpaw0NmJfIcRBSYK+Uoq+QNIdEu0AtJMSLaSUABJzZPWn+iUlEiRQb6l37MvsfbOdfs+9qf5htnav6ffsvoP9+mPSsej4+iM0Jr5vPR4aIF0o9po6ziccPx1GnbWQZvzqNfef/rd9j7+uXhPmIqn36XN6H+rf+n/+dTV+2o/6kNq/39YfT72m3le7Vj/Cnq76tx4TGx9tS2Olz5RByc/EZgBNSlm3enU+TAiMkhJHSshtHULchKkrok5WnUY8SQxwNNf2hAmMRWD5ARMG9H4tWAxQ/XHoPQ5kt4cAVBZrHgF2Mw/kePwBYC2ozUDo+OoTFosMr24y7eTpCbY3SzzBZvLN9TMAor/55DMAWYAawHkwanAkBkgejAROvy8POPOe+r/+DL8R2N+14LNZAJNStmpoEGcikWdLKTvpiTbjt0zkJ5z4J5hgDjhiEY01zwyOXAL2spNtZ8GAx5wtAdgxEk14xJh6v3qGOdvFLGlhwW4SN/4YyHRw4lkGWn8DEPsyINkhqG2ILYhBPBNZkEjzOQNcYiILngCYFoAJ387MhQZm8Lq5ERzg1DW078cMZdjPMxyBrTlu+kQAU2GwYXV+shS4HJA7xUwQhjB+J9vwVRIiOZB8fCSgxmGxVriii2+ugmeamD1jINn9EbtE4GiWcdm5hGH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ilAYQt2AqcBRuDhyEunEmg22PzCfR/M8DZG0n7Xny1kOuI8N/XGDrxJUCyxjB5bKGdUe6BGZvjswYvrrA3YWza8V+anyzz5HIJuZMX4xGQ7IUOrA57W9I6SnObcn1kB1X21ES7HW/pdnVJe+c7fchqp56Frd/L2CHUV/wxTNED4aLnpjbbgOj67X3rs7YaeFYYfWmoL1KzgnWUKRJhUxh2hqtXJJswi1tn082qcKoC+YrF4kzI5GwhTatPmbCn9Y/mlLxnRdiKs8TAlmB1OKJcl60ycFIVwLxEYbYo7F3csZPtPKc4q3PPzOJLz7jeKa6q5mHQCfvIjCVPzGSUZqy+Bah8nzGg4vAZ9IluHdxs9FE2C2CeGWTdikUYJmR+YiKTL0lg29AyiA7jMsNIcFO9O8j+yNWNDFq2AolAEyxKYUzpFrMwg1gzCmeyWo+5dNmlLYAHX9VCvhfvnbflo9jzYiHUM5H1x+w4wkyRHHuzDWfaoKOWNyFv9LRvvQ23CMD4cFX4XLEE+8lcDIHEHlLKPkDaXUrZDkjaSSlaGJ4jozNkmbJw6r6ElAGPVweIGXmo5fZGWTHbuevMniAjM+jnonbnuMmwpExEwAn6vwrmKhP2hcdXhv1cpKvCLzEtbrP14LLpR/o/JBqhquSiLD0AAAAASUVORK5CYII="},"+ua5":function(Ne,Te,k){},"5A5F":function(Ne,Te,k){Ne.exports={flex_box_center:"flex_box_center___3fvo9",flex_space_between:"flex_space_between___2dIWe",flex_box_vertical_center:"flex_box_vertical_center___213Et",flex_box_center_end:"flex_box_center_end___1GXlY",flex_box_column:"flex_box_column___2XTWO",wrap:"wrap___1JbzU",addQuestion:"addQuestion___3n7jZ",content:"content___2Crhb",left:"left___12ObT",filterPoint:"filterPoint___1wSyY",filterType:"filterType___32Vjx",btnWarp:"btnWarp___XLUgV",btn:"btn___33IXa",count:"count___2zHIG",btnActive:"btnActive___2vIUq",fold:"fold___26POp",action:"action___m_eZE",filterOrigin:"filterOrigin___OKol4",control:"control___1SAJX",search:"search___2AvaM",searchIcon:"searchIcon___2TozR",table:"table___1Q9AI",tabWarp:"tabWarp___3884f",customTable:"customTable___6Ubut","btn-style-1":"btn-style-1___m4kGi","btn-style-2":"btn-style-2___2uJ8s","btn-style-3":"btn-style-3___3kuYl",right:"right___Ie2u1",statistics:"statistics___TecQK",title:"title___1uK2v",statisticItem:"statisticItem___oBHb3",rate:"rate___15q55",dataName:"dataName___1uxmm",sort:"sort___1hyjY",rankHeader:"rankHeader___3MEZr",rankIcon:"rankIcon___t_Ggc",li:"li___3lR-W",myRecord:"myRecord___3MQJH",recordPrefix:"recordPrefix___3rIwK",mine:"mine___1LgRJ",avatar:"avatar___2X3bF",nickname:"nickname___3uP5f",myRank:"myRank___3GS-w",questionNumber:"questionNumber___3kBy-",titleWarp:"titleWarp___t0Zdh",hov:"hov___30B5q",statusText:"statusText___3pFTN",hovBtn:"hovBtn___3ciGX",tag:"tag___hllWE",problemsclose:"problemsclose___1X9HB",imgsrc:"imgsrc___3koep",sendModal:"sendModal___1P3qc",bottom:"bottom___1gmim",line:"line___psQHn",del:"del___1Qufp"}},"5VLF":function(Ne,Te,k){"use strict";var q,I;function R(M,T,x){var N=function(L,C){return M.js_beautify(L,C)};return N.js=M.js_beautify,N.css=T.css_beautify,N.html=x.html_beautify,N.js_beautify=M.js_beautify,N.css_beautify=T.css_beautify,N.html_beautify=x.html_beautify,N}!(q=[k("6UM0"),k("TXwP"),k("psGv")],I=function(M,T,x){return R(M,T,x)}.apply(Te,q),I!==void 0&&(Ne.exports=I))},"6+eU":function(Ne,Te,k){"use strict";k.d(Te,"a",function(){return p});var q=k("wx14"),I=k("rePB"),R=k("VTBJ"),M=k("1OyB"),T=k("vuIU"),x=k("Ji7U"),N=k("LK+K"),L=k("cDcd"),C=k.n(L),O=k("TSYQ"),v=k.n(O),g=function(m){var f,u="".concat(m.rootPrefixCls,"-item"),a=v()(u,"".concat(u,"-").concat(m.page),(f={},Object(I.a)(f,"".concat(u,"-active"),m.active),Object(I.a)(f,m.className,!!m.className),Object(I.a)(f,"".concat(u,"-disabled"),!m.page),f)),l=function(){m.onClick(m.page)},h=function(b){m.onKeyPress(b,m.onClick,m.page)};return C.a.createElement("li",{title:m.showTitle?m.page:null,className:a,onClick:l,onKeyPress:h,tabIndex:"0"},m.itemRender(m.page,"page",C.a.createElement("a",{rel:"nofollow"},m.page)))},c=g,s={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},n=function(E){Object(x.a)(f,E);var m=Object(N.a)(f);function f(){var u;Object(M.a)(this,f);for(var a=arguments.length,l=new Array(a),h=0;h<a;h++)l[h]=arguments[h];return u=m.call.apply(m,[this].concat(l)),u.state={goInputText:""},u.buildOptionText=function(d){return"".concat(d," ").concat(u.props.locale.items_per_page)},u.changeSize=function(d){u.props.changeSize(Number(d))},u.handleChange=function(d){u.setState({goInputText:d.target.value})},u.handleBlur=function(d){var b=u.props,w=b.goButton,A=b.quickGo,P=b.rootPrefixCls,S=u.state.goInputText;if(w||S==="")return;if(d.relatedTarget&&(d.relatedTarget.className.indexOf("".concat(P,"-prev"))>=0||d.relatedTarget.className.indexOf("".concat(P,"-next"))>=0))return;u.setState({goInputText:""}),A(u.getValidValue())},u.go=function(d){var b=u.state.goInputText;if(b==="")return;(d.keyCode===s.ENTER||d.type==="click")&&(u.setState({goInputText:""}),u.props.quickGo(u.getValidValue()))},u}return Object(T.a)(f,[{key:"getValidValue",value:function(){var a=this.state,l=a.goInputText,h=a.current;return!l||isNaN(l)?h:Number(l)}},{key:"getPageSizeOptions",value:function(){var a=this.props,l=a.pageSize,h=a.pageSizeOptions;return h.some(function(d){return d.toString()===l.toString()})?h:h.concat([l.toString()]).sort(function(d,b){var w=isNaN(Number(d))?0:Number(d),A=isNaN(Number(b))?0:Number(b);return w-A})}},{key:"render",value:function(){var a=this,l=this.props,h=l.pageSize,d=l.locale,b=l.rootPrefixCls,w=l.changeSize,A=l.quickGo,P=l.goButton,S=l.selectComponentClass,U=l.buildOptionText,D=l.selectPrefixCls,j=l.disabled,K=this.state.goInputText,Z="".concat(b,"-options"),ne=S,me=null,he=null,Y=null;if(!w&&!A)return null;var le=this.getPageSizeOptions();if(w&&ne){var ge=le.map(function(re,te){return C.a.createElement(ne.Option,{key:te,value:re.toString()},(U||a.buildOptionText)(re))});me=C.a.createElement(ne,{disabled:j,prefixCls:D,showSearch:!1,className:"".concat(Z,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(h||le[0]).toString(),onChange:this.changeSize,getPopupContainer:function(te){return te.parentNode}},ge)}return A&&(P&&(Y=typeof P=="boolean"?C.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:j,className:"".concat(Z,"-quick-jumper-button")},d.jump_to_confirm):C.a.createElement("span",{onClick:this.go,onKeyUp:this.go},P)),he=C.a.createElement("div",{className:"".concat(Z,"-quick-jumper")},d.jump_to,C.a.createElement("input",{disabled:j,type:"text",value:K,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),d.page,Y)),C.a.createElement("li",{className:"".concat(Z)},me,he)}}]),f}(C.a.Component);n.defaultProps={pageSizeOptions:["10","20","50","100"]};var i=n,o=k("N2Kk");function e(){}function t(E){return typeof E=="number"&&isFinite(E)&&Math.floor(E)===E}function r(E,m,f){return f}function y(E,m,f){var u=typeof E=="undefined"?m.pageSize:E;return Math.floor((f.total-1)/u)+1}var _=function(E){Object(x.a)(f,E);var m=Object(N.a)(f);function f(u){var a;Object(M.a)(this,f),a=m.call(this,u),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(w,A){var P=a.props.prefixCls,S=w||C.a.createElement("button",{type:"button","aria-label":A,className:"".concat(P,"-item-link")});return typeof w=="function"&&(S=C.a.createElement(w,Object(R.a)({},a.props))),S},a.savePaginationNode=function(w){a.paginationNode=w},a.isValid=function(w){return t(w)&&w!==a.state.current},a.shouldDisplayQuickJumper=function(){var w=a.props,A=w.showQuickJumper,P=w.pageSize,S=w.total;return S<=P?!1:A},a.handleKeyDown=function(w){(w.keyCode===s.ARROW_UP||w.keyCode===s.ARROW_DOWN)&&w.preventDefault()},a.handleKeyUp=function(w){var A=a.getValidValue(w),P=a.state.currentInputValue;A!==P&&a.setState({currentInputValue:A}),w.keyCode===s.ENTER?a.handleChange(A):w.keyCode===s.ARROW_UP?a.handleChange(A-1):w.keyCode===s.ARROW_DOWN&&a.handleChange(A+1)},a.changePageSize=function(w){var A=a.state.current,P=y(w,a.state,a.props);A=A>P?P:A,P===0&&(A=a.state.current),typeof w=="number"&&("pageSize"in a.props||a.setState({pageSize:w}),"current"in a.props||a.setState({current:A,currentInputValue:A})),a.props.onShowSizeChange(A,w),"onChange"in a.props&&a.props.onChange&&a.props.onChange(A,w)},a.handleChange=function(w){var A=a.props.disabled,P=w;if(a.isValid(P)&&!A){var S=y(void 0,a.state,a.props);P>S?P=S:P<1&&(P=1),"current"in a.props||a.setState({current:P,currentInputValue:P});var U=a.state.pageSize;return a.props.onChange(P,U),P}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.current<y(void 0,a.state,a.props)},a.runIfEnter=function(w,A){if(w.key==="Enter"||w.charCode===13){for(var P=arguments.length,S=new Array(P>2?P-2:0),U=2;U<P;U++)S[U-2]=arguments[U];A.apply(void 0,S)}},a.runIfEnterPrev=function(w){a.runIfEnter(w,a.prev)},a.runIfEnterNext=function(w){a.runIfEnter(w,a.next)},a.runIfEnterJumpPrev=function(w){a.runIfEnter(w,a.jumpPrev)},a.runIfEnterJumpNext=function(w){a.runIfEnter(w,a.jumpNext)},a.handleGoTO=function(w){(w.keyCode===s.ENTER||w.type==="click")&&a.handleChange(a.state.currentInputValue)};var l=u.onChange!==e,h="current"in u;h&&!l&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var d=u.defaultCurrent;"current"in u&&(d=u.current);var b=u.defaultPageSize;return"pageSize"in u&&(b=u.pageSize),d=Math.min(d,y(b,void 0,u)),a.state={current:d,currentInputValue:d,pageSize:b},a}return Object(T.a)(f,[{key:"componentDidUpdate",value:function(a,l){var h=this.props.prefixCls;if(l.current!==this.state.current&&this.paginationNode){var d=this.paginationNode.querySelector(".".concat(h,"-item-").concat(l.current));d&&document.activeElement===d&&d.blur()}}},{key:"getValidValue",value:function(a){var l=a.target.value,h=y(void 0,this.state,this.props),d=this.state.currentInputValue,b;return l===""?b=l:isNaN(Number(l))?b=d:l>=h?b=h:b=Number(l),b}},{key:"getShowSizeChanger",value:function(){var a=this.props,l=a.showSizeChanger,h=a.total,d=a.totalBoundaryShowSizeChanger;return typeof l!="undefined"?l:h>d}},{key:"renderPrev",value:function(a){var l=this.props,h=l.prevIcon,d=l.itemRender,b=d(a,"prev",this.getItemIcon(h,"prev page")),w=!this.hasPrev();return Object(L.isValidElement)(b)?Object(L.cloneElement)(b,{disabled:w}):b}},{key:"renderNext",value:function(a){var l=this.props,h=l.nextIcon,d=l.itemRender,b=d(a,"next",this.getItemIcon(h,"next page")),w=!this.hasNext();return Object(L.isValidElement)(b)?Object(L.cloneElement)(b,{disabled:w}):b}},{key:"render",value:function(){var a=this,l=this.props,h=l.prefixCls,d=l.className,b=l.style,w=l.disabled,A=l.hideOnSinglePage,P=l.total,S=l.locale,U=l.showQuickJumper,D=l.showLessItems,j=l.showTitle,K=l.showTotal,Z=l.simple,ne=l.itemRender,me=l.showPrevNextJumpers,he=l.jumpPrevIcon,Y=l.jumpNextIcon,le=l.selectComponentClass,ge=l.selectPrefixCls,re=l.pageSizeOptions,te=this.state,be=te.current,ze=te.pageSize,Ge=te.currentInputValue;if(A===!0&&P<=ze)return null;var Ue=y(void 0,this.state,this.props),Ze=[],Pe=null,Me=null,je=null,Ve=null,Ke=null,Ie=U&&U.goButton,Le=D?1:2,st=be-1>0?be-1:0,nt=be+1<Ue?be+1:Ue,$e=Object.keys(this.props).reduce(function(B,W){return(W.substr(0,5)==="data-"||W.substr(0,5)==="aria-"||W==="role")&&(B[W]=a.props[W]),B},{});if(Z)return Ie&&(typeof Ie=="boolean"?Ke=C.a.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},S.jump_to_confirm):Ke=C.a.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Ie),Ke=C.a.createElement("li",{title:j?"".concat(S.jump_to).concat(be,"/").concat(Ue):null,className:"".concat(h,"-simple-pager")},Ke)),C.a.createElement("ul",Object(q.a)({className:v()(h,"".concat(h,"-simple"),Object(I.a)({},"".concat(h,"-disabled"),w),d),style:b,ref:this.savePaginationNode},$e),C.a.createElement("li",{title:j?S.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:v()("".concat(h,"-prev"),Object(I.a)({},"".concat(h,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(st)),C.a.createElement("li",{title:j?"".concat(be,"/").concat(Ue):null,className:"".concat(h,"-simple-pager")},C.a.createElement("input",{type:"text",value:Ge,disabled:w,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,size:"3"}),C.a.createElement("span",{className:"".concat(h,"-slash")},"/"),Ue),C.a.createElement("li",{title:j?S.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:v()("".concat(h,"-next"),Object(I.a)({},"".concat(h,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(nt)),Ke);if(Ue<=3+Le*2){var Xe={locale:S,rootPrefixCls:h,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:j,itemRender:ne};Ue||Ze.push(C.a.createElement(c,Object(q.a)({},Xe,{key:"noPager",page:Ue,className:"".concat(h,"-disabled")})));for(var ut=1;ut<=Ue;ut+=1){var dt=be===ut;Ze.push(C.a.createElement(c,Object(q.a)({},Xe,{key:ut,page:ut,active:dt})))}}else{var ce=D?S.prev_3:S.prev_5,ve=D?S.next_3:S.next_5;me&&(Pe=C.a.createElement("li",{title:j?ce:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:v()("".concat(h,"-jump-prev"),Object(I.a)({},"".concat(h,"-jump-prev-custom-icon"),!!he))},ne(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(he,"prev page"))),Me=C.a.createElement("li",{title:j?ve:null,key:"next",tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:v()("".concat(h,"-jump-next"),Object(I.a)({},"".concat(h,"-jump-next-custom-icon"),!!Y))},ne(this.getJumpNextPage(),"jump-next",this.getItemIcon(Y,"next page")))),Ve=C.a.createElement(c,{locale:S,last:!0,rootPrefixCls:h,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Ue,page:Ue,active:!1,showTitle:j,itemRender:ne}),je=C.a.createElement(c,{locale:S,rootPrefixCls:h,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:j,itemRender:ne});var xe=Math.max(1,be-Le),Se=Math.min(be+Le,Ue);be-1<=Le&&(Se=1+Le*2),Ue-be<=Le&&(xe=Ue-Le*2);for(var pe=xe;pe<=Se;pe+=1){var Oe=be===pe;Ze.push(C.a.createElement(c,{locale:S,rootPrefixCls:h,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:pe,page:pe,active:Oe,showTitle:j,itemRender:ne}))}be-1>=Le*2&&be!==1+2&&(Ze[0]=Object(L.cloneElement)(Ze[0],{className:"".concat(h,"-item-after-jump-prev")}),Ze.unshift(Pe)),Ue-be>=Le*2&&be!==Ue-2&&(Ze[Ze.length-1]=Object(L.cloneElement)(Ze[Ze.length-1],{className:"".concat(h,"-item-before-jump-next")}),Ze.push(Me)),xe!==1&&Ze.unshift(je),Se!==Ue&&Ze.push(Ve)}var ie=null;K&&(ie=C.a.createElement("li",{className:"".concat(h,"-total-text")},K(P,[P===0?0:(be-1)*ze+1,be*ze>P?P:be*ze])));var Q=!this.hasPrev()||!Ue,X=!this.hasNext()||!Ue;return C.a.createElement("ul",Object(q.a)({className:v()(h,d,Object(I.a)({},"".concat(h,"-disabled"),w)),style:b,unselectable:"unselectable",ref:this.savePaginationNode},$e),ie,C.a.createElement("li",{title:j?S.prev_page:null,onClick:this.prev,tabIndex:Q?null:0,onKeyPress:this.runIfEnterPrev,className:v()("".concat(h,"-prev"),Object(I.a)({},"".concat(h,"-disabled"),Q)),"aria-disabled":Q},this.renderPrev(st)),Ze,C.a.createElement("li",{title:j?S.next_page:null,onClick:this.next,tabIndex:X?null:0,onKeyPress:this.runIfEnterNext,className:v()("".concat(h,"-next"),Object(I.a)({},"".concat(h,"-disabled"),X)),"aria-disabled":X},this.renderNext(nt)),C.a.createElement(i,{disabled:w,locale:S,rootPrefixCls:h,selectComponentClass:le,selectPrefixCls:ge,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:be,pageSize:ze,pageSizeOptions:re,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Ie}))}}],[{key:"getDerivedStateFromProps",value:function(a,l){var h={};if("current"in a&&(h.current=a.current,a.current!==l.current&&(h.currentInputValue=h.current)),"pageSize"in a&&a.pageSize!==l.pageSize){var d=l.current,b=y(a.pageSize,l,a);d=d>b?b:d,"current"in a||(h.current=d,h.currentInputValue=d),h.pageSize=a.pageSize}return h}}]),f}(C.a.Component);_.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:e,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:e,locale:o.a,style:{},itemRender:r,totalBoundaryShowSizeChanger:50};var p=_},"6RRn":function(Ne,Te,k){"use strict";var q=k("wCXF"),I=k("n6Qo");k.d(Te,"b",function(){return I.a});var R=k("IBYe"),M=k("6eGT"),T=k("hW8S");k.d(Te,"a",function(){return T.a}),Te.c=q.b},"6UM0":function(Ne,Te,k){var q,I;(function(){var R;(function(){"use strict";var T=[function(C,O,v){var g=v(1).Beautifier,c=v(5).Options;function s(n,i){var o=new g(n,i);return o.beautify()}C.exports=s,C.exports.defaultOptions=function(){return new c}},function(C,O,v){var g=v(2).Output,c=v(3).Token,s=v(4),n=v(5).Options,i=v(7).Tokenizer,o=v(7).line_starters,e=v(7).positionable_operators,t=v(7).TOKEN;function r(D,j){return j.indexOf(D)!==-1}function y(D){return D.replace(/^\s+/g,"")}function _(D){for(var j={},K=0;K<D.length;K++)j[D[K].replace(/-/g,"_")]=D[K];return j}function p(D,j){return D&&D.type===t.RESERVED&&D.text===j}function E(D,j){return D&&D.type===t.RESERVED&&r(D.text,j)}var m=["case","return","do","if","throw","else","await","break","continue","async"],f=["before-newline","after-newline","preserve-newline"],u=_(f),a=[u.before_newline,u.preserve_newline],l={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function h(D,j){if(j.multiline_frame||j.mode===l.ForInitializer||j.mode===l.Conditional)return;D.remove_indent(j.start_line_index)}function d(D){D=D.replace(s.allLineBreaks,`
|
|
`);for(var j=[],K=D.indexOf(`
|
|
`);K!==-1;)j.push(D.substring(0,K)),D=D.substring(K+1),K=D.indexOf(`
|
|
`);return D.length&&j.push(D),j}function b(D){return D===l.ArrayLiteral}function w(D){return r(D,[l.Expression,l.ForInitializer,l.Conditional])}function A(D,j){for(var K=0;K<D.length;K++){var Z=D[K].trim();if(Z.charAt(0)!==j)return!1}return!0}function P(D,j){for(var K=0,Z=D.length,ne;K<Z;K++)if(ne=D[K],ne&&ne.indexOf(j)!==0)return!1;return!0}function S(D,j){j=j||{},this._source_text=D||"",this._output=null,this._tokens=null,this._last_last_text=null,this._flags=null,this._previous_flags=null,this._flag_store=null,this._options=new n(j)}S.prototype.create_flags=function(D,j){var K=0;D&&(K=D.indentation_level,!this._output.just_added_newline()&&D.line_indent_level>K&&(K=D.line_indent_level));var Z={mode:j,parent:D,last_token:D?D.last_token:new c(t.START_BLOCK,""),last_word:D?D.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,class_start_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:K,alignment:0,line_indent_level:D?D.line_indent_level:K,start_line_index:this._output.get_line_number(),ternary_depth:0};return Z},S.prototype._reset=function(D){var j=D.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new g(this._options,j),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(l.BlockStatement);var K=new i(D,this._options);return this._tokens=K.tokenize(),D},S.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var D,j=this._reset(this._source_text),K=this._options.eol;this._options.eol==="auto"&&(K=`
|
|
`,j&&s.lineBreak.test(j||"")&&(K=j.match(s.lineBreak)[0]));for(var Z=this._tokens.next();Z;)this.handle_token(Z),this._last_last_text=this._flags.last_token.text,this._flags.last_token=Z,Z=this._tokens.next();return D=this._output.get_code(K),D},S.prototype.handle_token=function(D,j){D.type===t.START_EXPR?this.handle_start_expr(D):D.type===t.END_EXPR?this.handle_end_expr(D):D.type===t.START_BLOCK?this.handle_start_block(D):D.type===t.END_BLOCK?this.handle_end_block(D):D.type===t.WORD?this.handle_word(D):D.type===t.RESERVED?this.handle_word(D):D.type===t.SEMICOLON?this.handle_semicolon(D):D.type===t.STRING?this.handle_string(D):D.type===t.EQUALS?this.handle_equals(D):D.type===t.OPERATOR?this.handle_operator(D):D.type===t.COMMA?this.handle_comma(D):D.type===t.BLOCK_COMMENT?this.handle_block_comment(D,j):D.type===t.COMMENT?this.handle_comment(D,j):D.type===t.DOT?this.handle_dot(D):D.type===t.EOF?this.handle_eof(D):D.type===t.UNKNOWN?this.handle_unknown(D,j):this.handle_unknown(D,j)},S.prototype.handle_whitespace_and_comments=function(D,j){var K=D.newlines,Z=this._options.keep_array_indentation&&b(this._flags.mode);if(D.comments_before)for(var ne=D.comments_before.next();ne;)this.handle_whitespace_and_comments(ne,j),this.handle_token(ne,j),ne=D.comments_before.next();if(Z)for(var me=0;me<K;me+=1)this.print_newline(me>0,j);else if(this._options.max_preserve_newlines&&K>this._options.max_preserve_newlines&&(K=this._options.max_preserve_newlines),this._options.preserve_newlines&&K>1){this.print_newline(!1,j);for(var he=1;he<K;he+=1)this.print_newline(!0,j)}};var U=["async","break","continue","return","throw","yield"];S.prototype.allow_wrap_or_preserved_newline=function(D,j){if(j=j===void 0?!1:j,this._output.just_added_newline())return;var K=this._options.preserve_newlines&&D.newlines||j,Z=r(this._flags.last_token.text,e)||r(D.text,e);if(Z){var ne=r(this._flags.last_token.text,e)&&r(this._options.operator_position,a)||r(D.text,e);K=K&&ne}if(K)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(E(this._flags.last_token,U))return;this._output.set_wrap_point()}},S.prototype.print_newline=function(D,j){if(!j&&(this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==t.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")))for(var K=this._tokens.peek();this._flags.mode===l.Statement&&!(this._flags.if_block&&p(K,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(D)&&(this._flags.multiline_frame=!0)},S.prototype.print_token_line_indentation=function(D){this._output.just_added_newline()&&(this._options.keep_array_indentation&&D.newlines&&(D.text==="["||b(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(D.whitespace_before),this._output.space_before_token=!1):this._output.set_indent(this._flags.indentation_level,this._flags.alignment)&&(this._flags.line_indent_level=this._flags.indentation_level))},S.prototype.print_token=function(D){if(this._output.raw){this._output.add_raw_token(D);return}if(this._options.comma_first&&D.previous&&D.previous.type===t.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var j=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(j),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(D),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(D),this._output.non_breaking_space=!0,this._output.add_token(D.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},S.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},S.prototype.deindent=function(){this._flags.indentation_level>0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},S.prototype.set_mode=function(D){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,D),this._flags=this.create_flags(this._previous_flags,D),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},S.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===l.Statement&&h(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},S.prototype.start_of_object_property=function(){return this._flags.parent.mode===l.ObjectLiteral&&this._flags.mode===l.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||E(this._flags.last_token,["get","set"]))},S.prototype.start_of_statement=function(D){var j=!1;return j=j||E(this._flags.last_token,["var","let","const"])&&D.type===t.WORD,j=j||p(this._flags.last_token,"do"),j=j||!(this._flags.parent.mode===l.ObjectLiteral&&this._flags.mode===l.Statement)&&E(this._flags.last_token,U)&&!D.newlines,j=j||p(this._flags.last_token,"else")&&!(p(D,"if")&&!D.comments_before),j=j||this._flags.last_token.type===t.END_EXPR&&(this._previous_flags.mode===l.ForInitializer||this._previous_flags.mode===l.Conditional),j=j||this._flags.last_token.type===t.WORD&&this._flags.mode===l.BlockStatement&&!this._flags.in_case&&!(D.text==="--"||D.text==="++")&&this._last_last_text!=="function"&&D.type!==t.WORD&&D.type!==t.RESERVED,j=j||this._flags.mode===l.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||E(this._flags.last_token,["get","set"])),j?(this.set_mode(l.Statement),this.indent(),this.handle_whitespace_and_comments(D,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(D,E(D,["do","for","if","while"])),!0):!1},S.prototype.handle_start_expr=function(D){this.start_of_statement(D)||this.handle_whitespace_and_comments(D);var j=l.Expression;if(D.text==="["){if(this._flags.last_token.type===t.WORD||this._flags.last_token.text===")"){E(this._flags.last_token,o)&&(this._output.space_before_token=!0),this.print_token(D),this.set_mode(j),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}j=l.ArrayLiteral,b(this._flags.mode)&&((this._flags.last_token.text==="["||this._flags.last_token.text===","&&(this._last_last_text==="]"||this._last_last_text==="}"))&&(this._options.keep_array_indentation||this.print_newline())),r(this._flags.last_token.type,[t.START_EXPR,t.END_EXPR,t.WORD,t.OPERATOR,t.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===t.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,j=l.ForInitializer):r(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,j=l.Conditional):r(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&D.whitespace_before===""?this._output.space_before_token=!1:(r(this._flags.last_token.text,o)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===t.EQUALS||this._flags.last_token.type===t.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(D);else if(this._flags.last_token.type===t.WORD){this._output.space_before_token=!1;var K=this._tokens.peek(-3);if(this._options.space_after_named_function&&K){var Z=this._tokens.peek(-4);E(K,["async","function"])||K.text==="*"&&E(Z,["async","function"])?this._output.space_before_token=!0:this._flags.mode===l.ObjectLiteral?(K.text==="{"||K.text===","||K.text==="*"&&(Z.text==="{"||Z.text===","))&&(this._output.space_before_token=!0):this._flags.parent&&this._flags.parent.class_start_block&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(D);(this._flags.last_token.type===t.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(r(this._last_last_text,["function","yield"])||this._flags.mode===l.ObjectLiteral&&r(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}this._flags.last_token.text===";"||this._flags.last_token.type===t.START_BLOCK?this.print_newline():(this._flags.last_token.type===t.END_EXPR||this._flags.last_token.type===t.START_EXPR||this._flags.last_token.type===t.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===t.COMMA)&&this.allow_wrap_or_preserved_newline(D,D.newlines),this.print_token(D),this.set_mode(j),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},S.prototype.handle_end_expr=function(D){for(;this._flags.mode===l.Statement;)this.restore_mode();this.handle_whitespace_and_comments(D),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(D,D.text==="]"&&b(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===t.START_EXPR&&!this._options.space_in_empty_paren?(this._output.trim(),this._output.space_before_token=!1):this._output.space_before_token=!0),this.deindent(),this.print_token(D),this.restore_mode(),h(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===l.Conditional&&(this._previous_flags.mode=l.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},S.prototype.handle_start_block=function(D){this.handle_whitespace_and_comments(D);var j=this._tokens.peek(),K=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===t.END_EXPR?(this.set_mode(l.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(l.BlockStatement):K&&(r(K.text,[":",","])&&r(j.type,[t.STRING,t.WORD,t.RESERVED])||r(j.text,["get","set","..."])&&r(K.type,[t.WORD,t.RESERVED]))?r(this._last_last_text,["class","interface"])&&!r(K.text,[":",","])?this.set_mode(l.BlockStatement):this.set_mode(l.ObjectLiteral):this._flags.last_token.type===t.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(l.BlockStatement):r(this._flags.last_token.type,[t.EQUALS,t.START_EXPR,t.COMMA,t.OPERATOR])||E(this._flags.last_token,["return","throw","import","default"])?this.set_mode(l.ObjectLiteral):this.set_mode(l.BlockStatement),this._flags.last_token&&(E(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0));var Z=!j.comments_before&&j.text==="}",ne=Z&&this._flags.last_word==="function"&&this._flags.last_token.type===t.END_EXPR;if(this._options.brace_preserve_inline){var me=0,he=null;this._flags.inline_frame=!0;do if(me+=1,he=this._tokens.peek(me-1),he.newlines){this._flags.inline_frame=!1;break}while(he.type!==t.EOF&&!(he.type===t.END_BLOCK&&he.opened===D))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&D.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==t.OPERATOR&&(ne||this._flags.last_token.type===t.EQUALS||E(this._flags.last_token,m)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(b(this._previous_flags.mode)&&(this._flags.last_token.type===t.START_EXPR||this._flags.last_token.type===t.COMMA)&&((this._flags.last_token.type===t.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===t.COMMA||this._flags.last_token.type===t.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(D),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==t.OPERATOR&&this._flags.last_token.type!==t.START_EXPR&&(this._flags.last_token.type===t.START_BLOCK&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(D),this.indent(),!Z&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},S.prototype.handle_end_block=function(D){for(this.handle_whitespace_and_comments(D);this._flags.mode===l.Statement;)this.restore_mode();var j=this._flags.last_token.type===t.START_BLOCK;this._flags.inline_frame&&!j?this._output.space_before_token=!0:this._options.brace_style==="expand"?j||this.print_newline():j||(b(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(D)},S.prototype.handle_word=function(D){if(D.type===t.RESERVED){if(r(D.text,["set","get"])&&this._flags.mode!==l.ObjectLiteral)D.type=t.WORD;else if(D.text==="import"&&r(this._tokens.peek().text,["(","."]))D.type=t.WORD;else if(r(D.text,["as","from"])&&!this._flags.import_block)D.type=t.WORD;else if(this._flags.mode===l.ObjectLiteral){var j=this._tokens.peek();j.text===":"&&(D.type=t.WORD)}}if(this.start_of_statement(D)?E(this._flags.last_token,["var","let","const"])&&D.type===t.WORD&&(this._flags.declaration_statement=!0):D.newlines&&!w(this._flags.mode)&&(this._flags.last_token.type!==t.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==t.EQUALS&&(this._options.preserve_newlines||!E(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(D),this.print_newline()):this.handle_whitespace_and_comments(D),this._flags.do_block&&!this._flags.do_while)if(p(D,"while")){this._output.space_before_token=!0,this.print_token(D),this._output.space_before_token=!0,this._flags.do_while=!0;return}else this.print_newline(),this._flags.do_block=!1;if(this._flags.if_block)if(!this._flags.else_block&&p(D,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===l.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&E(D,["case","default"])){this.print_newline(),!this._flags.case_block&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(D),this._flags.in_case=!0;return}if((this._flags.last_token.type===t.COMMA||this._flags.last_token.type===t.START_EXPR||this._flags.last_token.type===t.EQUALS||this._flags.last_token.type===t.OPERATOR)&&(this.start_of_object_property()||this.allow_wrap_or_preserved_newline(D)),p(D,"function")){(r(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(r(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===t.OPERATOR))&&(!this._output.just_added_blankline()&&!D.comments_before&&(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===t.RESERVED||this._flags.last_token.type===t.WORD?E(this._flags.last_token,["get","set","new","export"])||E(this._flags.last_token,U)?this._output.space_before_token=!0:p(this._flags.last_token,"default")&&this._last_last_text==="export"?this._output.space_before_token=!0:this._flags.last_token.text==="declare"?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===t.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(w(this._flags.mode)||b(this._flags.mode))||this.print_newline(),this.print_token(D),this._flags.last_word=D.text;return}var K="NONE";if(this._flags.last_token.type===t.END_BLOCK?this._previous_flags.inline_frame?K="SPACE":E(D,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&D.newlines?K="NEWLINE":(K="SPACE",this._output.space_before_token=!0):K="NEWLINE":this._flags.last_token.type===t.SEMICOLON&&this._flags.mode===l.BlockStatement?K="NEWLINE":this._flags.last_token.type===t.SEMICOLON&&w(this._flags.mode)?K="SPACE":this._flags.last_token.type===t.STRING?K="NEWLINE":this._flags.last_token.type===t.RESERVED||this._flags.last_token.type===t.WORD||this._flags.last_token.text==="*"&&(r(this._last_last_text,["function","yield"])||this._flags.mode===l.ObjectLiteral&&r(this._last_last_text,["{",","]))?K="SPACE":this._flags.last_token.type===t.START_BLOCK?this._flags.inline_frame?K="SPACE":K="NEWLINE":this._flags.last_token.type===t.END_EXPR&&(this._output.space_before_token=!0,K="NEWLINE"),E(D,o)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?K="SPACE":K="NEWLINE"),E(D,["else","catch","finally"]))if((!(this._flags.last_token.type===t.END_BLOCK&&this._previous_flags.mode===l.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&D.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var Z=this._output.current_line;Z.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else K==="NEWLINE"?E(this._flags.last_token,m)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&E(D,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==t.END_EXPR?(this._flags.last_token.type!==t.START_EXPR||!E(D,["var","let","const"]))&&this._flags.last_token.text!==":"&&(p(D,"if")&&p(D.previous,"else")?this._output.space_before_token=!0:this.print_newline()):E(D,o)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&b(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():K==="SPACE"&&(this._output.space_before_token=!0);D.previous&&(D.previous.type===t.WORD||D.previous.type===t.RESERVED)&&(this._output.space_before_token=!0),this.print_token(D),this._flags.last_word=D.text,D.type===t.RESERVED&&(D.text==="do"?this._flags.do_block=!0:D.text==="if"?this._flags.if_block=!0:D.text==="import"?this._flags.import_block=!0:this._flags.import_block&&p(D,"from")&&(this._flags.import_block=!1))},S.prototype.handle_semicolon=function(D){this.start_of_statement(D)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(D);for(var j=this._tokens.peek();this._flags.mode===l.Statement&&!(this._flags.if_block&&p(j,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(D)},S.prototype.handle_string=function(D){D.text.startsWith("`")&&D.newlines===0&&D.whitespace_before===""&&(D.previous.text===")"||this._flags.last_token.type===t.WORD)||(this.start_of_statement(D)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(D),this._flags.last_token.type===t.RESERVED||this._flags.last_token.type===t.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===t.COMMA||this._flags.last_token.type===t.START_EXPR||this._flags.last_token.type===t.EQUALS||this._flags.last_token.type===t.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(D):D.text.startsWith("`")&&this._flags.last_token.type===t.END_EXPR&&(D.previous.text==="]"||D.previous.text===")")&&D.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(D)},S.prototype.handle_equals=function(D){this.start_of_statement(D)||this.handle_whitespace_and_comments(D),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(D),this._output.space_before_token=!0},S.prototype.handle_comma=function(D){this.handle_whitespace_and_comments(D,!0),this.print_token(D),this._output.space_before_token=!0,this._flags.declaration_statement?(w(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(D)):this._flags.mode===l.ObjectLiteral||this._flags.mode===l.Statement&&this._flags.parent.mode===l.ObjectLiteral?(this._flags.mode===l.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(D)},S.prototype.handle_operator=function(D){var j=D.text==="*"&&(E(this._flags.last_token,["function","yield"])||r(this._flags.last_token.type,[t.START_BLOCK,t.COMMA,t.END_BLOCK,t.SEMICOLON])),K=r(D.text,["-","+"])&&(r(this._flags.last_token.type,[t.START_BLOCK,t.START_EXPR,t.EQUALS,t.OPERATOR])||r(this._flags.last_token.text,o)||this._flags.last_token.text===",");if(!this.start_of_statement(D)){var Z=!j;this.handle_whitespace_and_comments(D,Z)}if(D.text==="*"&&this._flags.last_token.type===t.DOT){this.print_token(D);return}if(D.text==="::"){this.print_token(D);return}if(this._flags.last_token.type===t.OPERATOR&&r(this._options.operator_position,a)&&this.allow_wrap_or_preserved_newline(D),D.text===":"&&this._flags.in_case){this.print_token(D),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==t.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0);return}var ne=!0,me=!0,he=!1;if(D.text===":"?this._flags.ternary_depth===0?ne=!1:(this._flags.ternary_depth-=1,he=!0):D.text==="?"&&(this._flags.ternary_depth+=1),!K&&!j&&this._options.preserve_newlines&&r(D.text,e)){var Y=D.text===":",le=Y&&he,ge=Y&&!he;switch(this._options.operator_position){case u.before_newline:this._output.space_before_token=!ge,this.print_token(D),(!Y||le)&&this.allow_wrap_or_preserved_newline(D),this._output.space_before_token=!0;return;case u.after_newline:this._output.space_before_token=!0,!Y||le?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(D):this._output.space_before_token=!1,this.print_token(D),this._output.space_before_token=!0;return;case u.preserve_newline:ge||this.allow_wrap_or_preserved_newline(D),ne=!(this._output.just_added_newline()||ge),this._output.space_before_token=ne,this.print_token(D),this._output.space_before_token=!0;return}}if(j){this.allow_wrap_or_preserved_newline(D),ne=!1;var re=this._tokens.peek();me=re&&r(re.type,[t.WORD,t.RESERVED])}else if(D.text==="...")this.allow_wrap_or_preserved_newline(D),ne=this._flags.last_token.type===t.START_BLOCK,me=!1;else if(r(D.text,["--","++","!","~"])||K){if((this._flags.last_token.type===t.COMMA||this._flags.last_token.type===t.START_EXPR)&&this.allow_wrap_or_preserved_newline(D),ne=!1,me=!1,D.newlines&&(D.text==="--"||D.text==="++"||D.text==="~")){var te=E(this._flags.last_token,m)&&D.newlines;te&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(te,!0)}this._flags.last_token.text===";"&&w(this._flags.mode)&&(ne=!0),this._flags.last_token.type===t.RESERVED?ne=!0:this._flags.last_token.type===t.END_EXPR?ne=!(this._flags.last_token.text==="]"&&(D.text==="--"||D.text==="++")):this._flags.last_token.type===t.OPERATOR&&(ne=r(D.text,["--","-","++","+"])&&r(this._flags.last_token.text,["--","-","++","+"]),r(D.text,["+","-"])&&r(this._flags.last_token.text,["--","++"])&&(me=!0)),(this._flags.mode===l.BlockStatement&&!this._flags.inline_frame||this._flags.mode===l.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||ne,this.print_token(D),this._output.space_before_token=me},S.prototype.handle_block_comment=function(D,j){if(this._output.raw){this._output.add_raw_token(D),D.directives&&D.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(D.directives){this.print_newline(!1,j),this.print_token(D),D.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!s.newline.test(D.text)&&!D.newlines){this._output.space_before_token=!0,this.print_token(D),this._output.space_before_token=!0;return}else this.print_block_commment(D,j)},S.prototype.print_block_commment=function(D,j){var K=d(D.text),Z,ne=!1,me=!1,he=D.whitespace_before,Y=he.length;if(this.print_newline(!1,j),this.print_token_line_indentation(D),this._output.add_token(K[0]),this.print_newline(!1,j),K.length>1){for(K=K.slice(1),ne=A(K,"*"),me=P(K,he),ne&&(this._flags.alignment=1),Z=0;Z<K.length;Z++)ne?(this.print_token_line_indentation(D),this._output.add_token(y(K[Z]))):me&&K[Z]?(this.print_token_line_indentation(D),this._output.add_token(K[Z].substring(Y))):(this._output.current_line.set_indent(-1),this._output.add_token(K[Z])),this.print_newline(!1,j);this._flags.alignment=0}},S.prototype.handle_comment=function(D,j){D.newlines?this.print_newline(!1,j):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(D),this.print_newline(!1,j)},S.prototype.handle_dot=function(D){this.start_of_statement(D)||this.handle_whitespace_and_comments(D,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),E(this._flags.last_token,m)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(D,this._flags.last_token.text===")"&&this._options.break_chained_methods),this._options.unindent_chained_methods&&this._output.just_added_newline()&&this.deindent(),this.print_token(D)},S.prototype.handle_unknown=function(D,j){this.print_token(D),D.text[D.text.length-1]===`
|
|
`&&this.print_newline(!1,j)},S.prototype.handle_eof=function(D){for(;this._flags.mode===l.Statement;)this.restore_mode();this.handle_whitespace_and_comments(D)},C.exports.Beautifier=S},function(C){function O(c){this.__parent=c,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}O.prototype.clone_empty=function(){var c=new O(this.__parent);return c.set_indent(this.__indent_count,this.__alignment_count),c},O.prototype.item=function(c){return c<0?this.__items[this.__items.length+c]:this.__items[c]},O.prototype.has_match=function(c){for(var s=this.__items.length-1;s>=0;s--)if(this.__items[s].match(c))return!0;return!1},O.prototype.set_indent=function(c,s){this.is_empty()&&(this.__indent_count=c||0,this.__alignment_count=s||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},O.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},O.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},O.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var c=this.__parent.current_line;return c.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),c.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),c.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,c.__items[0]===" "&&(c.__items.splice(0,1),c.__character_count-=1),!0}return!1},O.prototype.is_empty=function(){return this.__items.length===0},O.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},O.prototype.push=function(c){this.__items.push(c);var s=c.lastIndexOf(`
|
|
`);s!==-1?this.__character_count=c.length-s:this.__character_count+=c.length},O.prototype.pop=function(){var c=null;return this.is_empty()||(c=this.__items.pop(),this.__character_count-=c.length),c},O.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},O.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},O.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},O.prototype.toString=function(){var c="";return this.is_empty()?this.__parent.indent_empty_lines&&(c=this.__parent.get_indent_string(this.__indent_count)):(c=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),c+=this.__items.join("")),c};function v(c,s){this.__cache=[""],this.__indent_size=c.indent_size,this.__indent_string=c.indent_char,c.indent_with_tabs||(this.__indent_string=new Array(c.indent_size+1).join(c.indent_char)),s=s||"",c.indent_level>0&&(s=new Array(c.indent_level+1).join(this.__indent_string)),this.__base_string=s,this.__base_string_length=s.length}v.prototype.get_indent_size=function(c,s){var n=this.__base_string_length;return s=s||0,c<0&&(n=0),n+=c*this.__indent_size,n+=s,n},v.prototype.get_indent_string=function(c,s){var n=this.__base_string;return s=s||0,c<0&&(c=0,n=""),s+=c*this.__indent_size,this.__ensure_cache(s),n+=this.__cache[s],n},v.prototype.__ensure_cache=function(c){for(;c>=this.__cache.length;)this.__add_column()},v.prototype.__add_column=function(){var c=this.__cache.length,s=0,n="";this.__indent_size&&c>=this.__indent_size&&(s=Math.floor(c/this.__indent_size),c-=s*this.__indent_size,n=new Array(s+1).join(this.__indent_string)),c&&(n+=new Array(c+1).join(" ")),this.__cache.push(n)};function g(c,s){this.__indent_cache=new v(c,s),this.raw=!1,this._end_with_newline=c.end_with_newline,this.indent_size=c.indent_size,this.wrap_line_length=c.wrap_line_length,this.indent_empty_lines=c.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new O(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}g.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},g.prototype.get_line_number=function(){return this.__lines.length},g.prototype.get_indent_string=function(c,s){return this.__indent_cache.get_indent_string(c,s)},g.prototype.get_indent_size=function(c,s){return this.__indent_cache.get_indent_size(c,s)},g.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},g.prototype.add_new_line=function(c){return this.is_empty()||!c&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},g.prototype.get_code=function(c){this.trim(!0);var s=this.current_line.pop();s&&(s[s.length-1]===`
|
|
`&&(s=s.replace(/\n+$/g,"")),this.current_line.push(s)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join(`
|
|
`);return c!==`
|
|
`&&(n=n.replace(/[\n]/g,c)),n},g.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},g.prototype.set_indent=function(c,s){return c=c||0,s=s||0,this.next_line.set_indent(c,s),this.__lines.length>1?(this.current_line.set_indent(c,s),!0):(this.current_line.set_indent(),!1)},g.prototype.add_raw_token=function(c){for(var s=0;s<c.newlines;s++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(c.whitespace_before),this.current_line.push(c.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},g.prototype.add_token=function(c){this.__add_space_before_token(),this.current_line.push(c),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},g.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},g.prototype.remove_indent=function(c){for(var s=this.__lines.length;c<s;)this.__lines[c]._remove_indent(),c++;this.current_line._remove_wrap_indent()},g.prototype.trim=function(c){for(c=c===void 0?!1:c,this.current_line.trim();c&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},g.prototype.just_added_newline=function(){return this.current_line.is_empty()},g.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},g.prototype.ensure_empty_line_above=function(c,s){for(var n=this.__lines.length-2;n>=0;){var i=this.__lines[n];if(i.is_empty())break;if(i.item(0).indexOf(c)!==0&&i.item(-1)!==s){this.__lines.splice(n+1,0,new O(this)),this.previous_line=this.__lines[this.__lines.length-2];break}n--}},C.exports.Output=g},function(C){function O(v,g,c,s){this.type=v,this.text=g,this.comments_before=null,this.newlines=c||0,this.whitespace_before=s||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}C.exports.Token=O},function(C,O){var v="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",g="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",c="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",s="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",n="(?:\\\\u[0-9a-fA-F]{4}|["+v+c+"])",i="(?:\\\\u[0-9a-fA-F]{4}|["+g+c+s+"])*";O.identifier=new RegExp(n+i,"g"),O.identifierStart=new RegExp(n),O.identifierMatch=new RegExp("(?:\\\\u[0-9a-fA-F]{4}|["+g+c+s+"])+");var o=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;O.newline=/[\n\r\u2028\u2029]/,O.lineBreak=new RegExp(`\r
|
|
|`+O.newline.source),O.allLineBreaks=new RegExp(O.lineBreak.source,"g")},function(C,O,v){var g=v(6).Options,c=["before-newline","after-newline","preserve-newline"];function s(n){g.call(this,n,"js");var i=this.raw_options.brace_style||null;i==="expand-strict"?this.raw_options.brace_style="expand":i==="collapse-preserve-inline"?this.raw_options.brace_style="collapse,preserve-inline":this.raw_options.braces_on_own_line!==void 0&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var o=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var e=0;e<o.length;e++)o[e]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=o[e];this.unindent_chained_methods=this._get_boolean("unindent_chained_methods"),this.break_chained_methods=this._get_boolean("break_chained_methods"),this.space_in_paren=this._get_boolean("space_in_paren"),this.space_in_empty_paren=this._get_boolean("space_in_empty_paren"),this.jslint_happy=this._get_boolean("jslint_happy"),this.space_after_anon_function=this._get_boolean("space_after_anon_function"),this.space_after_named_function=this._get_boolean("space_after_named_function"),this.keep_array_indentation=this._get_boolean("keep_array_indentation"),this.space_before_conditional=this._get_boolean("space_before_conditional",!0),this.unescape_strings=this._get_boolean("unescape_strings"),this.e4x=this._get_boolean("e4x"),this.comma_first=this._get_boolean("comma_first"),this.operator_position=this._get_selection("operator_position",c),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}s.prototype=new g,C.exports.Options=s},function(C){function O(c,s){this.raw_options=v(c,s),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php","smarty"],["auto"])}O.prototype._get_array=function(c,s){var n=this.raw_options[c],i=s||[];return typeof n=="object"?n!==null&&typeof n.concat=="function"&&(i=n.concat()):typeof n=="string"&&(i=n.split(/[^a-zA-Z0-9_\/\-]+/)),i},O.prototype._get_boolean=function(c,s){var n=this.raw_options[c],i=n===void 0?!!s:!!n;return i},O.prototype._get_characters=function(c,s){var n=this.raw_options[c],i=s||"";return typeof n=="string"&&(i=n.replace(/\\r/,"\r").replace(/\\n/,`
|
|
`).replace(/\\t/," ")),i},O.prototype._get_number=function(c,s){var n=this.raw_options[c];s=parseInt(s,10),isNaN(s)&&(s=0);var i=parseInt(n,10);return isNaN(i)&&(i=s),i},O.prototype._get_selection=function(c,s,n){var i=this._get_selection_list(c,s,n);if(i.length!==1)throw new Error("Invalid Option Value: The option '"+c+`' can only be one of the following values:
|
|
`+s+`
|
|
You passed in: '`+this.raw_options[c]+"'");return i[0]},O.prototype._get_selection_list=function(c,s,n){if(!s||s.length===0)throw new Error("Selection list cannot be empty.");if(n=n||[s[0]],!this._is_valid_selection(n,s))throw new Error("Invalid Default Value!");var i=this._get_array(c,n);if(!this._is_valid_selection(i,s))throw new Error("Invalid Option Value: The option '"+c+`' can contain only the following values:
|
|
`+s+`
|
|
You passed in: '`+this.raw_options[c]+"'");return i},O.prototype._is_valid_selection=function(c,s){return c.length&&s.length&&!c.some(function(n){return s.indexOf(n)===-1})};function v(c,s){var n={};c=g(c);var i;for(i in c)i!==s&&(n[i]=c[i]);if(s&&c[s])for(i in c[s])n[i]=c[s][i];return n}function g(c){var s={},n;for(n in c){var i=n.replace(/-/g,"_");s[i]=c[n]}return s}C.exports.Options=O,C.exports.normalizeOpts=g,C.exports.mergeOpts=v},function(C,O,v){var g=v(8).InputScanner,c=v(9).Tokenizer,s=v(9).TOKEN,n=v(13).Directives,i=v(4),o=v(12).Pattern,e=v(14).TemplatablePattern;function t(A,P){return P.indexOf(A)!==-1}var r={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:s.START,RAW:s.RAW,EOF:s.EOF},y=new n(/\/\*/,/\*\//),_=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,p=/[0-9]/,E=/[^\d\.]/,m=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),f=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";f=f.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),f="\\?\\.(?!\\d) "+f,f=f.replace(/ /g,"|");var u=new RegExp(f),a="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),l=a.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),h=new RegExp("^(?:"+l.join("|")+")$"),d,b=function(A,P){c.call(this,A,P),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var S=new o(this._input),U=new e(this._input).read_options(this._options);this.__patterns={template:U,identifier:U.starting_with(i.identifier).matching(i.identifierMatch),number:S.matching(_),punct:S.matching(u),comment:S.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:S.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:S.matching(/<!--/),html_comment_end:S.matching(/-->/),include:S.starting_with(/#include/).until_after(i.lineBreak),shebang:S.starting_with(/#!/).until_after(i.lineBreak),xml:S.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:U.until(/['\\\n\r\u2028\u2029]/),double_quote:U.until(/["\\\n\r\u2028\u2029]/),template_text:U.until(/[`\\$]/),template_expression:U.until(/[`}\\]/)}};b.prototype=new c,b.prototype._is_comment=function(A){return A.type===r.COMMENT||A.type===r.BLOCK_COMMENT||A.type===r.UNKNOWN},b.prototype._is_opening=function(A){return A.type===r.START_BLOCK||A.type===r.START_EXPR},b.prototype._is_closing=function(A,P){return(A.type===r.END_BLOCK||A.type===r.END_EXPR)&&P&&(A.text==="]"&&P.text==="["||A.text===")"&&P.text==="("||A.text==="}"&&P.text==="{")},b.prototype._reset=function(){d=!1},b.prototype._get_next_token=function(A,P){var S=null;this._readWhitespace();var U=this._input.peek();return U===null?this._create_token(r.EOF,""):(S=S||this._read_non_javascript(U),S=S||this._read_string(U),S=S||this._read_word(A),S=S||this._read_singles(U),S=S||this._read_comment(U),S=S||this._read_regexp(U,A),S=S||this._read_xml(U,A),S=S||this._read_punctuation(),S=S||this._create_token(r.UNKNOWN,this._input.next()),S)},b.prototype._read_word=function(A){var P;if(P=this.__patterns.identifier.read(),P!=="")return P=P.replace(i.allLineBreaks,`
|
|
`),!(A.type===r.DOT||A.type===r.RESERVED&&(A.text==="set"||A.text==="get"))&&h.test(P)?(P==="in"||P==="of")&&(A.type===r.WORD||A.type===r.STRING)?this._create_token(r.OPERATOR,P):this._create_token(r.RESERVED,P):this._create_token(r.WORD,P);if(P=this.__patterns.number.read(),P!=="")return this._create_token(r.WORD,P)},b.prototype._read_singles=function(A){var P=null;return A==="("||A==="["?P=this._create_token(r.START_EXPR,A):A===")"||A==="]"?P=this._create_token(r.END_EXPR,A):A==="{"?P=this._create_token(r.START_BLOCK,A):A==="}"?P=this._create_token(r.END_BLOCK,A):A===";"?P=this._create_token(r.SEMICOLON,A):A==="."&&E.test(this._input.peek(1))?P=this._create_token(r.DOT,A):A===","&&(P=this._create_token(r.COMMA,A)),P&&this._input.next(),P},b.prototype._read_punctuation=function(){var A=this.__patterns.punct.read();if(A!=="")return A==="="?this._create_token(r.EQUALS,A):A==="?."?this._create_token(r.DOT,A):this._create_token(r.OPERATOR,A)},b.prototype._read_non_javascript=function(A){var P="";if(A==="#"){if(this._is_first_token()&&(P=this.__patterns.shebang.read(),P))return this._create_token(r.UNKNOWN,P.trim()+`
|
|
`);if(P=this.__patterns.include.read(),P)return this._create_token(r.UNKNOWN,P.trim()+`
|
|
`);A=this._input.next();var S="#";if(this._input.hasNext()&&this._input.testChar(p)){do A=this._input.next(),S+=A;while(this._input.hasNext()&&A!=="#"&&A!=="=");return A==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(S+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(S+="{}",this._input.next(),this._input.next())),this._create_token(r.WORD,S)}this._input.back()}else if(A==="<"&&this._is_first_token()){if(P=this.__patterns.html_comment_start.read(),P){for(;this._input.hasNext()&&!this._input.testChar(i.newline);)P+=this._input.next();return d=!0,this._create_token(r.COMMENT,P)}}else if(d&&A==="-"&&(P=this.__patterns.html_comment_end.read(),P))return d=!1,this._create_token(r.COMMENT,P);return null},b.prototype._read_comment=function(A){var P=null;if(A==="/"){var S="";if(this._input.peek(1)==="*"){S=this.__patterns.block_comment.read();var U=y.get_directives(S);U&&U.ignore==="start"&&(S+=y.readIgnored(this._input)),S=S.replace(i.allLineBreaks,`
|
|
`),P=this._create_token(r.BLOCK_COMMENT,S),P.directives=U}else this._input.peek(1)==="/"&&(S=this.__patterns.comment.read(),P=this._create_token(r.COMMENT,S))}return P},b.prototype._read_string=function(A){if(A==="`"||A==="'"||A==='"'){var P=this._input.next();return this.has_char_escapes=!1,A==="`"?P+=this._read_string_recursive("`",!0,"${"):P+=this._read_string_recursive(A),this.has_char_escapes&&this._options.unescape_strings&&(P=w(P)),this._input.peek()===A&&(P+=this._input.next()),P=P.replace(i.allLineBreaks,`
|
|
`),this._create_token(r.STRING,P)}return null},b.prototype._allow_regexp_or_xml=function(A){return A.type===r.RESERVED&&t(A.text,["return","case","throw","else","do","typeof","yield"])||A.type===r.END_EXPR&&A.text===")"&&A.opened.previous.type===r.RESERVED&&t(A.opened.previous.text,["if","while","for"])||t(A.type,[r.COMMENT,r.START_EXPR,r.START_BLOCK,r.START,r.END_BLOCK,r.OPERATOR,r.EQUALS,r.EOF,r.SEMICOLON,r.COMMA])},b.prototype._read_regexp=function(A,P){if(A==="/"&&this._allow_regexp_or_xml(P)){for(var S=this._input.next(),U=!1,D=!1;this._input.hasNext()&&(U||D||this._input.peek()!==A)&&!this._input.testChar(i.newline);)S+=this._input.peek(),U?U=!1:(U=this._input.peek()==="\\",this._input.peek()==="["?D=!0:this._input.peek()==="]"&&(D=!1)),this._input.next();return this._input.peek()===A&&(S+=this._input.next(),S+=this._input.read(i.identifier)),this._create_token(r.STRING,S)}return null},b.prototype._read_xml=function(A,P){if(this._options.e4x&&A==="<"&&this._allow_regexp_or_xml(P)){var S="",U=this.__patterns.xml.read_match();if(U){for(var D=U[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),j=D.indexOf("{")===0,K=0;U;){var Z=!!U[1],ne=U[2],me=!!U[U.length-1]||ne.slice(0,8)==="![CDATA[";if(!me&&(ne===D||j&&ne.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(Z?--K:++K),S+=U[0],K<=0)break;U=this.__patterns.xml.read_match()}return U||(S+=this._input.match(/[\s\S]*/g)[0]),S=S.replace(i.allLineBreaks,`
|
|
`),this._create_token(r.STRING,S)}}return null};function w(A){for(var P="",S=0,U=new g(A),D=null;U.hasNext();)if(D=U.match(/([\s]|[^\\]|\\\\)+/g),D&&(P+=D[0]),U.peek()==="\\"){if(U.next(),U.peek()==="x")D=U.match(/x([0-9A-Fa-f]{2})/g);else if(U.peek()==="u")D=U.match(/u([0-9A-Fa-f]{4})/g);else{P+="\\",U.hasNext()&&(P+=U.next());continue}if(!D)return A;if(S=parseInt(D[1],16),S>126&&S<=255&&D[0].indexOf("x")===0)return A;if(S>=0&&S<32){P+="\\"+D[0];continue}else S===34||S===39||S===92?P+="\\"+String.fromCharCode(S):P+=String.fromCharCode(S)}return P}b.prototype._read_string_recursive=function(A,P,S){var U,D;A==="'"?D=this.__patterns.single_quote:A==='"'?D=this.__patterns.double_quote:A==="`"?D=this.__patterns.template_text:A==="}"&&(D=this.__patterns.template_expression);for(var j=D.read(),K="";this._input.hasNext();){if(K=this._input.next(),K===A||!P&&i.newline.test(K)){this._input.back();break}else K==="\\"&&this._input.hasNext()?(U=this._input.peek(),U==="x"||U==="u"?this.has_char_escapes=!0:U==="\r"&&this._input.peek(1)===`
|
|
`&&this._input.next(),K+=this._input.next()):S&&(S==="${"&&K==="$"&&this._input.peek()==="{"&&(K+=this._input.next()),S===K&&(A==="`"?K+=this._read_string_recursive("}",P,"`"):K+=this._read_string_recursive("`",P,"${"),this._input.hasNext()&&(K+=this._input.next())));K+=D.read(),j+=K}return j},C.exports.Tokenizer=b,C.exports.TOKEN=r,C.exports.positionable_operators=m.slice(),C.exports.line_starters=a.slice()},function(C){var O=RegExp.prototype.hasOwnProperty("sticky");function v(g){this.__input=g||"",this.__input_length=this.__input.length,this.__position=0}v.prototype.restart=function(){this.__position=0},v.prototype.back=function(){this.__position>0&&(this.__position-=1)},v.prototype.hasNext=function(){return this.__position<this.__input_length},v.prototype.next=function(){var g=null;return this.hasNext()&&(g=this.__input.charAt(this.__position),this.__position+=1),g},v.prototype.peek=function(g){var c=null;return g=g||0,g+=this.__position,g>=0&&g<this.__input_length&&(c=this.__input.charAt(g)),c},v.prototype.__match=function(g,c){g.lastIndex=c;var s=g.exec(this.__input);return s&&!(O&&g.sticky)&&(s.index!==c&&(s=null)),s},v.prototype.test=function(g,c){return c=c||0,c+=this.__position,c>=0&&c<this.__input_length?!!this.__match(g,c):!1},v.prototype.testChar=function(g,c){var s=this.peek(c);return g.lastIndex=0,s!==null&&g.test(s)},v.prototype.match=function(g){var c=this.__match(g,this.__position);return c?this.__position+=c[0].length:c=null,c},v.prototype.read=function(g,c,s){var n="",i;return g&&(i=this.match(g),i&&(n+=i[0])),c&&(i||!g)&&(n+=this.readUntil(c,s)),n},v.prototype.readUntil=function(g,c){var s="",n=this.__position;g.lastIndex=this.__position;var i=g.exec(this.__input);return i?(n=i.index,c&&(n+=i[0].length)):n=this.__input_length,s=this.__input.substring(this.__position,n),this.__position=n,s},v.prototype.readUntilAfter=function(g){return this.readUntil(g,!0)},v.prototype.get_regexp=function(g,c){var s=null,n="g";return c&&O&&(n="y"),typeof g=="string"&&g!==""?s=new RegExp(g,n):g&&(s=new RegExp(g.source,n)),s},v.prototype.get_literal_regexp=function(g){return RegExp(g.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},v.prototype.peekUntilAfter=function(g){var c=this.__position,s=this.readUntilAfter(g);return this.__position=c,s},v.prototype.lookBack=function(g){var c=this.__position-1;return c>=g.length&&this.__input.substring(c-g.length,c).toLowerCase()===g},C.exports.InputScanner=v},function(C,O,v){var g=v(8).InputScanner,c=v(3).Token,s=v(10).TokenStream,n=v(11).WhitespacePattern,i={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},o=function(e,t){this._input=new g(e),this._options=t||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new n(this._input)};o.prototype.tokenize=function(){this._input.restart(),this.__tokens=new s,this._reset();for(var e,t=new c(i.START,""),r=null,y=[],_=new s;t.type!==i.EOF;){for(e=this._get_next_token(t,r);this._is_comment(e);)_.add(e),e=this._get_next_token(t,r);_.isEmpty()||(e.comments_before=_,_=new s),e.parent=r,this._is_opening(e)?(y.push(r),r=e):r&&this._is_closing(e,r)&&(e.opened=r,r.closed=e,r=y.pop(),e.parent=r),e.previous=t,t.next=e,this.__tokens.add(e),t=e}return this.__tokens},o.prototype._is_first_token=function(){return this.__tokens.isEmpty()},o.prototype._reset=function(){},o.prototype._get_next_token=function(e,t){this._readWhitespace();var r=this._input.read(/.+/g);return r?this._create_token(i.RAW,r):this._create_token(i.EOF,"")},o.prototype._is_comment=function(e){return!1},o.prototype._is_opening=function(e){return!1},o.prototype._is_closing=function(e,t){return!1},o.prototype._create_token=function(e,t){var r=new c(e,t,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return r},o.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},C.exports.Tokenizer=o,C.exports.TOKEN=i},function(C){function O(v){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=v}O.prototype.restart=function(){this.__position=0},O.prototype.isEmpty=function(){return this.__tokens_length===0},O.prototype.hasNext=function(){return this.__position<this.__tokens_length},O.prototype.next=function(){var v=null;return this.hasNext()&&(v=this.__tokens[this.__position],this.__position+=1),v},O.prototype.peek=function(v){var g=null;return v=v||0,v+=this.__position,v>=0&&v<this.__tokens_length&&(g=this.__tokens[v]),g},O.prototype.add=function(v){this.__parent_token&&(v.parent=this.__parent_token),this.__tokens.push(v),this.__tokens_length+=1},C.exports.TokenStream=O},function(C,O,v){var g=v(12).Pattern;function c(s,n){g.call(this,s,n),n?this._line_regexp=this._input.get_regexp(n._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}c.prototype=new g,c.prototype.__set_whitespace_patterns=function(s,n){s+="\\t ",n+="\\n\\r",this._match_pattern=this._input.get_regexp("["+s+n+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+n+"]")},c.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var s=this._input.read(this._match_pattern);if(s===" ")this.whitespace_before_token=" ";else if(s){var n=this.__split(this._newline_regexp,s);this.newline_count=n.length-1,this.whitespace_before_token=n[this.newline_count]}return s},c.prototype.matching=function(s,n){var i=this._create();return i.__set_whitespace_patterns(s,n),i._update(),i},c.prototype._create=function(){return new c(this._input,this)},c.prototype.__split=function(s,n){s.lastIndex=0;for(var i=0,o=[],e=s.exec(n);e;)o.push(n.substring(i,e.index)),i=e.index+e[0].length,e=s.exec(n);return i<n.length?o.push(n.substring(i,n.length)):o.push(""),o},C.exports.WhitespacePattern=c},function(C){function O(v,g){this._input=v,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,g&&(this._starting_pattern=this._input.get_regexp(g._starting_pattern,!0),this._match_pattern=this._input.get_regexp(g._match_pattern,!0),this._until_pattern=this._input.get_regexp(g._until_pattern),this._until_after=g._until_after)}O.prototype.read=function(){var v=this._input.read(this._starting_pattern);return(!this._starting_pattern||v)&&(v+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),v},O.prototype.read_match=function(){return this._input.match(this._match_pattern)},O.prototype.until_after=function(v){var g=this._create();return g._until_after=!0,g._until_pattern=this._input.get_regexp(v),g._update(),g},O.prototype.until=function(v){var g=this._create();return g._until_after=!1,g._until_pattern=this._input.get_regexp(v),g._update(),g},O.prototype.starting_with=function(v){var g=this._create();return g._starting_pattern=this._input.get_regexp(v,!0),g._update(),g},O.prototype.matching=function(v){var g=this._create();return g._match_pattern=this._input.get_regexp(v,!0),g._update(),g},O.prototype._create=function(){return new O(this._input,this)},O.prototype._update=function(){},C.exports.Pattern=O},function(C){function O(v,g){v=typeof v=="string"?v:v.source,g=typeof g=="string"?g:g.source,this.__directives_block_pattern=new RegExp(v+/ beautify( \w+[:]\w+)+ /.source+g,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(v+/\sbeautify\signore:end\s/.source+g,"g")}O.prototype.get_directives=function(v){if(!v.match(this.__directives_block_pattern))return null;var g={};this.__directive_pattern.lastIndex=0;for(var c=this.__directive_pattern.exec(v);c;)g[c[1]]=c[2],c=this.__directive_pattern.exec(v);return g},O.prototype.readIgnored=function(v){return v.readUntilAfter(this.__directives_end_ignore_pattern)},C.exports.Directives=O},function(C,O,v){var g=v(12).Pattern,c={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1};function s(n,i){g.call(this,n,i),this.__template_pattern=null,this._disabled=Object.assign({},c),this._excluded=Object.assign({},c),i&&(this.__template_pattern=this._input.get_regexp(i.__template_pattern),this._excluded=Object.assign(this._excluded,i._excluded),this._disabled=Object.assign(this._disabled,i._disabled));var o=new g(n);this.__patterns={handlebars_comment:o.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:o.starting_with(/{{{/).until_after(/}}}/),handlebars:o.starting_with(/{{/).until_after(/}}/),php:o.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:o.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:o.starting_with(/{%/).until_after(/%}/),django_value:o.starting_with(/{{/).until_after(/}}/),django_comment:o.starting_with(/{#/).until_after(/#}/),smarty:o.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:o.starting_with(/{\*/).until_after(/\*}/),smarty_literal:o.starting_with(/{literal}/).until_after(/{\/literal}/)}}s.prototype=new g,s.prototype._create=function(){return new s(this._input,this)},s.prototype._update=function(){this.__set_templated_pattern()},s.prototype.disable=function(n){var i=this._create();return i._disabled[n]=!0,i._update(),i},s.prototype.read_options=function(n){var i=this._create();for(var o in c)i._disabled[o]=n.templating.indexOf(o)===-1;return i._update(),i},s.prototype.exclude=function(n){var i=this._create();return i._excluded[n]=!0,i._update(),i},s.prototype.read=function(){var n="";this._match_pattern?n=this._input.read(this._starting_pattern):n=this._input.read(this._starting_pattern,this.__template_pattern);for(var i=this._read_template();i;)this._match_pattern?i+=this._input.read(this._match_pattern):i+=this._input.readUntil(this.__template_pattern),n+=i,i=this._read_template();return this._until_after&&(n+=this._input.readUntilAfter(this._until_pattern)),n},s.prototype.__set_templated_pattern=function(){var n=[];this._disabled.php||n.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||n.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||n.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(n.push(this.__patterns.django._starting_pattern.source),n.push(this.__patterns.django_value._starting_pattern.source),n.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||n.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&n.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+n.join("|")+")")},s.prototype._read_template=function(){var n="",i=this._input.peek();if(i==="<"){var o=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&o==="?"&&(n=n||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&o==="%"&&(n=n||this.__patterns.erb.read())}else i==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(n=n||this.__patterns.handlebars_comment.read(),n=n||this.__patterns.handlebars_unescaped.read(),n=n||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(n=n||this.__patterns.django_value.read()),this._excluded.django||(n=n||this.__patterns.django_comment.read(),n=n||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(n=n||this.__patterns.smarty_comment.read(),n=n||this.__patterns.smarty_literal.read(),n=n||this.__patterns.smarty.read()));return n},C.exports.TemplatablePattern=s}],x={};function N(C){var O=x[C];if(O!==void 0)return O.exports;var v=x[C]={exports:{}};return T[C](v,v.exports,N),v.exports}var L=N(0);R=L})();var M=R;!(q=[],I=function(){return{js_beautify:M}}.apply(Te,q),I!==void 0&&(Ne.exports=I))})()},"6eGT":function(Ne,Te,k){"use strict";function q(I){return null}Te.a=q},"6nfa":function(Ne,Te,k){Ne.exports={flex_box_center:"flex_box_center___24EuS",flex_space_between:"flex_space_between___H0sq_",flex_box_vertical_center:"flex_box_vertical_center___lroQv",flex_box_center_end:"flex_box_center_end___2zqAg",flex_box_column:"flex_box_column___1sePp",row:"row___FQAuJ",title:"title___1l3-g",tagsWrap:"tagsWrap___18FE-",action:"action___asdVT",bar:"bar___M_nl0",name:"name___BKyJY",active:"active___1eybt",tagsBorderWrap:"tagsBorderWrap___1NzgL"}},"815F":function(Ne,Te,k){"use strict";k.d(Te,"e",function(){return N}),k.d(Te,"c",function(){return C}),k.d(Te,"d",function(){return O}),k.d(Te,"a",function(){return g}),k.d(Te,"f",function(){return c}),k.d(Te,"b",function(){return s});var q=k("KQm4"),I=k("VTBJ"),R=k("Ff2n"),M=k("Zm9Q"),T=k("Kwbf"),x=k("OZM5");function N(n,i){return n!=null?n:i}function L(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],i=new Map;function o(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(e||[]).forEach(function(r){var y=r.key,_=r.children;Object(T.a)(y!=null,"Tree node must have a certain key: [".concat(t).concat(y,"]"));var p=String(y);Object(T.a)(!i.has(p)||y===null||y===void 0,"Same 'key' exist in the Tree: ".concat(p)),i.set(p,!0),o(_,"".concat(t).concat(p," > "))})}o(n)}function C(n){function i(o){var e=Object(M.a)(o);return e.map(function(t){if(!Object(x.i)(t))return Object(T.a)(!t,"Tree/TreeNode can only accept TreeNode as children."),null;var r=t.key,y=t.props,_=y.children,p=Object(R.a)(y,["children"]),E=Object(I.a)({key:r},p),m=i(_);return m.length&&(E.children=m),E}).filter(function(t){return t})}return i(n)}function O(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],o=new Set(i===!0?[]:i),e=[];function t(r){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return r.map(function(_,p){var E=Object(x.h)(y?y.pos:"0",p),m=N(_.key,E),f=Object(I.a)(Object(I.a)({},_),{},{parent:y,pos:E,children:null,data:_,isStart:[].concat(Object(q.a)(y?y.isStart:[]),[p===0]),isEnd:[].concat(Object(q.a)(y?y.isEnd:[]),[p===r.length-1])});return e.push(f),i===!0||o.has(m)?f.children=t(_.children||[],f):f.children=[],f})}return t(n),e}function v(n,i,o){var e;o?typeof o=="string"?e=function(y){return y[o]}:typeof o=="function"&&(e=function(y){return o(y)}):e=function(y,_){return N(y.key,_)};function t(r,y,_){var p=r?r.children:n,E=r?Object(x.h)(_.pos,y):"0";if(r){var m=e(r,E),f={node:r,index:y,pos:E,key:m,parentPos:_.node?_.pos:null,level:_.level+1};i(f)}p&&p.forEach(function(u,a){t(u,a,{node:r,pos:E,level:_?_.level+1:-1})})}t(null)}function g(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=i.initWrapper,e=i.processEntity,t=i.onProcessFinished,r=arguments.length>2?arguments[2]:void 0,y={},_={},p={posEntities:y,keyEntities:_};return o&&(p=o(p)||p),v(n,function(E){var m=E.node,f=E.index,u=E.pos,a=E.key,l=E.parentPos,h=E.level,d={node:m,index:f,key:a,pos:u,level:h},b=N(a,u);y[u]=d,_[b]=d,d.parent=y[l],d.parent&&(d.parent.children=d.parent.children||[],d.parent.children.push(d)),e&&e(d,p)},r),t&&t(p),p}function c(n,i){var o=i.expandedKeys,e=i.selectedKeys,t=i.loadedKeys,r=i.loadingKeys,y=i.checkedKeys,_=i.halfCheckedKeys,p=i.dragOverNodeKey,E=i.dropPosition,m=i.keyEntities,f=m[n],u={eventKey:n,expanded:o.indexOf(n)!==-1,selected:e.indexOf(n)!==-1,loaded:t.indexOf(n)!==-1,loading:r.indexOf(n)!==-1,checked:y.indexOf(n)!==-1,halfChecked:_.indexOf(n)!==-1,pos:String(f?f.pos:""),dragOver:p===n&&E===0,dragOverGapTop:p===n&&E===-1,dragOverGapBottom:p===n&&E===1};return u}function s(n){var i=n.data,o=n.expanded,e=n.selected,t=n.checked,r=n.loaded,y=n.loading,_=n.halfChecked,p=n.dragOver,E=n.dragOverGapTop,m=n.dragOverGapBottom,f=n.pos,u=n.active,a=Object(I.a)(Object(I.a)({},i),{},{expanded:o,selected:e,checked:t,loaded:r,loading:y,halfChecked:_,dragOver:p,dragOverGapTop:E,dragOverGapBottom:m,pos:f,active:u});return"props"in a||Object.defineProperty(a,"props",{get:function(){return Object(T.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),n}}),a}},"8WcF":function(Ne,Te,k){Ne.exports={flex_box_center:"flex_box_center___2fahw",flex_space_between:"flex_space_between___1h4HM",flex_box_vertical_center:"flex_box_vertical_center___2kxeE",flex_box_center_end:"flex_box_center_end___OjPB4",flex_box_column:"flex_box_column___3zY1h",orderWrap:"orderWrap___VQuq1",orderIconWrap:"orderIconWrap___18q7W",orderAsc:"orderAsc___3WBGg",orderDesc:"orderDesc____ipxK",active:"active___3EMfI",cursorPointer:"cursorPointer___3og_L",orderTextWrap:"orderTextWrap___XQlmv"}},"8hTe":function(Ne,Te,k){Ne.exports={button:"button___1wy9m"}},"8mKB":function(Ne,Te,k){"use strict";var q=k("rePB"),I=k("1OyB"),R=k("vuIU"),M=k("Ji7U"),T=k("md7G"),x=k("foSv"),N=k("cDcd"),L=k.n(N),C=k("m+aA"),O=k("TSYQ"),v=k.n(O),g=k("4IlW");function c(u){var a=u.pageXOffset,l="scrollLeft";if(typeof a!="number"){var h=u.document;a=h.documentElement[l],typeof a!="number"&&(a=h.body[l])}return a}function s(u){var a,l,h=u.ownerDocument,d=h.body,b=h&&h.documentElement,w=u.getBoundingClientRect();return a=w.left,l=w.top,a-=b.clientLeft||d.clientLeft||0,l-=b.clientTop||d.clientTop||0,{left:a,top:l}}function n(u){var a=s(u),l=u.ownerDocument,h=l.defaultView||l.parentWindow;return a.left+=c(h),a.left}function i(u){var a=o();return function(){var h=Object(x.a)(u),d;if(a){var b=Object(x.a)(this).constructor;d=Reflect.construct(h,arguments,b)}else d=h.apply(this,arguments);return Object(T.a)(this,d)}}function o(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(u){return!1}}var e=function(u){Object(M.a)(l,u);var a=i(l);function l(){var h;return Object(I.a)(this,l),h=a.apply(this,arguments),h.onHover=function(d){var b=h.props,w=b.onHover,A=b.index;w(d,A)},h.onClick=function(d){var b=h.props,w=b.onClick,A=b.index;w(d,A)},h.onKeyDown=function(d){var b=h.props,w=b.onClick,A=b.index;d.keyCode===13&&w(d,A)},h}return Object(R.a)(l,[{key:"getClassName",value:function(){var d=this.props,b=d.prefixCls,w=d.index,A=d.value,P=d.allowHalf,S=d.focused,U=w+1,D=b;return A===0&&w===0&&S?D+=" ".concat(b,"-focused"):P&&A+.5>=U&&A<U?(D+=" ".concat(b,"-half ").concat(b,"-active"),S&&(D+=" ".concat(b,"-focused"))):(D+=U<=A?" ".concat(b,"-full"):" ".concat(b,"-zero"),U===A&&S&&(D+=" ".concat(b,"-focused"))),D}},{key:"render",value:function(){var d=this.onHover,b=this.onClick,w=this.onKeyDown,A=this.props,P=A.disabled,S=A.prefixCls,U=A.character,D=A.characterRender,j=A.index,K=A.count,Z=A.value,ne=typeof U=="function"?U(this.props):U,me=L.a.createElement("li",{className:this.getClassName()},L.a.createElement("div",{onClick:P?null:b,onKeyDown:P?null:w,onMouseMove:P?null:d,role:"radio","aria-checked":Z>j?"true":"false","aria-posinset":j+1,"aria-setsize":K,tabIndex:P?-1:0},L.a.createElement("div",{className:"".concat(S,"-first")},ne),L.a.createElement("div",{className:"".concat(S,"-second")},ne)));return D&&(me=D(me,this.props)),me}}]),l}(L.a.Component);function t(u,a){var l=Object.keys(u);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(u);a&&(h=h.filter(function(d){return Object.getOwnPropertyDescriptor(u,d).enumerable})),l.push.apply(l,h)}return l}function r(u){for(var a=1;a<arguments.length;a++){var l=arguments[a]!=null?arguments[a]:{};a%2?t(Object(l),!0).forEach(function(h){Object(q.a)(u,h,l[h])}):Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(l)):t(Object(l)).forEach(function(h){Object.defineProperty(u,h,Object.getOwnPropertyDescriptor(l,h))})}return u}function y(u){var a=_();return function(){var h=Object(x.a)(u),d;if(a){var b=Object(x.a)(this).constructor;d=Reflect.construct(h,arguments,b)}else d=h.apply(this,arguments);return Object(T.a)(this,d)}}function _(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(u){return!1}}function p(){}var E=function(u){Object(M.a)(l,u);var a=y(l);function l(h){var d;Object(I.a)(this,l),d=a.call(this,h),d.onHover=function(w,A){var P=d.props.onHoverChange,S=d.getStarValue(A,w.pageX),U=d.state.cleanedValue;S!==U&&d.setState({hoverValue:S,cleanedValue:null}),P(S)},d.onMouseLeave=function(){var w=d.props.onHoverChange;d.setState({hoverValue:void 0,cleanedValue:null}),w(void 0)},d.onClick=function(w,A){var P=d.props.allowClear,S=d.state.value,U=d.getStarValue(A,w.pageX),D=!1;P&&(D=U===S),d.onMouseLeave(),d.changeValue(D?0:U),d.setState({cleanedValue:D?U:null})},d.onFocus=function(){var w=d.props.onFocus;d.setState({focused:!0}),w&&w()},d.onBlur=function(){var w=d.props.onBlur;d.setState({focused:!1}),w&&w()},d.onKeyDown=function(w){var A=w.keyCode,P=d.props,S=P.count,U=P.allowHalf,D=P.onKeyDown,j=P.direction,K=j==="rtl",Z=d.state.value;A===g.a.RIGHT&&Z<S&&!K?(U?Z+=.5:Z+=1,d.changeValue(Z),w.preventDefault()):A===g.a.LEFT&&Z>0&&!K||A===g.a.RIGHT&&Z>0&&K?(U?Z-=.5:Z-=1,d.changeValue(Z),w.preventDefault()):A===g.a.LEFT&&Z<S&&K&&(U?Z+=.5:Z+=1,d.changeValue(Z),w.preventDefault()),D&&D(w)},d.saveRef=function(w){return function(A){d.stars[w]=A}},d.saveRate=function(w){d.rate=w};var b=h.value;return b===void 0&&(b=h.defaultValue),d.stars={},d.state={value:b,focused:!1,cleanedValue:null},d}return Object(R.a)(l,[{key:"componentDidMount",value:function(){var d=this.props,b=d.autoFocus,w=d.disabled;b&&!w&&this.focus()}},{key:"getStarDOM",value:function(d){return Object(C.a)(this.stars[d])}},{key:"getStarValue",value:function(d,b){var w=this.props,A=w.allowHalf,P=w.direction,S=P==="rtl",U=d+1;if(A){var D=this.getStarDOM(d),j=n(D),K=D.clientWidth;(S&&b-j>K/2||!S&&b-j<K/2)&&(U-=.5)}return U}},{key:"focus",value:function(){var d=this.props.disabled;d||this.rate.focus()}},{key:"blur",value:function(){var d=this.props.disabled;d||this.rate.blur()}},{key:"changeValue",value:function(d){var b=this.props.onChange;"value"in this.props||this.setState({value:d}),b(d)}},{key:"render",value:function(){for(var d=this.props,b=d.count,w=d.allowHalf,A=d.style,P=d.prefixCls,S=d.disabled,U=d.className,D=d.character,j=d.characterRender,K=d.tabIndex,Z=d.direction,ne=this.state,me=ne.value,he=ne.hoverValue,Y=ne.focused,le=[],ge=S?"".concat(P,"-disabled"):"",re=0;re<b;re+=1)le.push(L.a.createElement(e,{ref:this.saveRef(re),index:re,count:b,disabled:S,prefixCls:"".concat(P,"-star"),allowHalf:w,value:he===void 0?me:he,onClick:this.onClick,onHover:this.onHover,key:re,character:D,characterRender:j,focused:Y}));var te=v()(P,ge,U,Object(q.a)({},"".concat(P,"-rtl"),Z==="rtl"));return L.a.createElement("ul",{className:te,style:A,onMouseLeave:S?null:this.onMouseLeave,tabIndex:S?-1:K,onFocus:S?null:this.onFocus,onBlur:S?null:this.onBlur,onKeyDown:S?null:this.onKeyDown,ref:this.saveRate,role:"radiogroup"},le)}}],[{key:"getDerivedStateFromProps",value:function(d,b){return"value"in d&&d.value!==void 0?r(r({},b),{},{value:d.value}):b}}]),l}(L.a.Component);E.defaultProps={defaultValue:0,count:5,allowHalf:!1,allowClear:!0,style:{},prefixCls:"rc-rate",onChange:p,character:"\u2605",onHoverChange:p,tabIndex:0,direction:"ltr"};var m=E,f=Te.a=m},"9Bee":function(Ne,Te,k){"use strict";var q=k("DYRE"),I=k("zeV3"),R=k("+L6B"),M=k("2/Rp"),T=k("k1fw"),x=k("tJVT"),N=k("cDcd"),L=k.n(N),C=k("vg9a"),O=k("DlQD"),v=k.n(O),g=k("rUJ1");function c(Y,le){var ge=Y.match(/^(\s+)(?:```)/);if(ge===null)return le;var re=ge[1];return le.split(`
|
|
`).map(function(te){var be=te.match(/^\s+/);if(be===null)return te;var ze=Object(x.a)(be,1),Ge=ze[0];return Ge.length>=re.length?te.slice(re.length):te}).join(`
|
|
`)}var s=[],n=["<ul>"],i=new v.a.Renderer,o=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function e(){s.length=0,n=["<ul>"]}var t={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function r(Y,le,ge,re){if(le>=Y.length||Y[le].level<=ge)return le;var te=Y[le];re.push("<li><a href='#"+te.anchor+"'>"+te.text+"</a>"),le++;var be=[];return le=r(Y,le,te.level,be),be.length>0&&(re.push("<ul>"),be.forEach(function(ze){re.push(ze)}),re.push("</ul>")),re.push("</li>"),le=r(Y,le,ge,re),le}function y(){return r(s,0,0,n),n.push("</ul>"),n.join("")}var _={heading:function(le){var ge=o.exec(le);if(ge)return{type:"heading",raw:ge[0],depth:ge[1].length,text:ge[2]}},fences:function(le){var ge=this.rules.block.fences.exec(le);if(ge){var re=ge[0],te=c(re,ge[3]||""),be=ge[2]?ge[2].trim():ge[2];if(["latex","katex","math"].indexOf(be)>=0){var ze=m(),Ge=te;te=ze,f[ze]={type:"block",expression:Ge}}return{type:"code",raw:re,lang:be,text:te}}}},p=/(?:\${2})([^\n`]+?)(?:\${2})/gi,E=0,m=function(){return"__special_katext_id_".concat(E++,"__")},f={};function u(){return f}function a(){E=0,f={}}function l(Y){return Y=Y.replace(p,function(le,ge){var re=m();return f[re]={type:"inline",expression:ge},re}),Y}var h=i.listitem;i.listitem=function(Y){return h(l(Y))};var d=i.paragraph;i.paragraph=function(Y){return d(l(Y))};var b=i.tablecell;i.tablecell=function(Y,le){return b(l(Y),le)},i.code=function(Y,le,ge){var re=(le||"").match(/\S*/)[0];return re?["latex","katex","math"].indexOf(re)>=0?"<p class='editormd-tex'>".concat(Y,"</p>"):'<pre class="prettyprint linenums"><code class="language-'.concat(le,'">').concat(ge?Y:Object(g.escape)(Y,!0),`</code></pre>
|
|
`):'<pre class="prettyprint linenums"><code>'+(ge?Y:Object(g.escape)(Y,!0))+"</code></pre>"},i.heading=function(Y,le,ge){var re=this.options.headerPrefix+ge.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return s.push({anchor:re,level:le,text:Y}),"<h"+le+' id="'+re+'">'+Y+"</h"+le+">"},v.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),v.a.use({tokenizer:_,renderer:i});var w=v.a,A=k("SJMd"),P=k("ulZh"),S=k.n(P),U=k("m3rI"),D=k("Oy/b"),j=k("p5ED"),K=k("8hTe"),Z=k.n(K),ne=/<pre[^>]*>/g;function me(Y){var le=document.createElement("div");return le.innerHTML=Y,le.childNodes.length===0?"":le.childNodes[0].nodeValue}var he=Te.a=function(Y){var le=Y.value,ge=le===void 0?"":le,re=Y.edit,te=re===void 0?!1:re,be=Y.className,ze=Y.showTextOnly,Ge=Y.showLines,Ue=Y.replaces,Ze=Y.zoomImg,Pe=Y.hasMask,Me=Y.style,je=Me===void 0?{}:Me,Ve=Y.stylesPrev,Ke=Ve===void 0?{}:Ve,Ie=String(ge),Le=Object(N.useRef)(),st=Object(N.useRef)(),nt=Object(N.useState)(""),$e=Object(x.a)(nt,2),Xe=$e[0],ut=$e[1],dt=Object(N.useState)("office"),ce=Object(x.a)(dt,2),ve=ce[0],xe=ce[1],Se=Object(N.useMemo)(function(){try{var X=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,B=/\"\/api\/attachments\/|\"\/attachments\/download\//g,W=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;Ie=Ie.replace(X,"("+U.a.API_SERVER+"/api/attachments/").replace(B,'"'+U.a.API_SERVER+"/api/attachments/").replace(W,'"'+U.a.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
|
|
`)}catch(ye){}var G=w(Ie),J=u();if(Ie.match(/\[TOC\]/)&&(G=G.replace("<p>[TOC]</p>",y()),e()),G=G.replace(/(__special_katext_id_\d+__)/g,function(ye,De){var Qe=J[De],Je=Qe.type,Ee=Qe.expression;return Object(D.renderToString)(me(Ee)||"",{displayMode:Je==="block",throwOnError:!1,output:"html"})}),G=G.replace(/▁/g,"\u2581\u2581\u2581"),a(),ze){var ue=document.createElement("div");return ue.innerHTML=G,ue.innerText}return setTimeout(function(){return ie()},500),G},[Ie]),pe=Object(N.useRef)();t.WebkitLineClamp=Ge,Ge&&(je=Object(T.a)(Object(T.a)({},je),t));function Oe(X){var B=X.target;if(B.tagName.toUpperCase()==="IMG"){if(Ze){var W=B.getAttribute("src");ut(W),xe("image")}}else if(B.tagName.toUpperCase()==="A"){var G=B.getAttribute("href");if(G.indexOf("office")>-1)X.preventDefault(),ut(G),xe("office");else if(G.indexOf("application/pdf")>-1)X.preventDefault(),ut(G),xe("pdf");else if(G.indexOf("text/html")>-1)X.preventDefault(),ut(G),xe("html");else if(G.startsWith("#")){X.preventDefault();var J=document.getElementById(G.replace("#",""));J&&J.scrollIntoView(!0)}}}var ie=function(){var B,W=(B=pe.current)===null||B===void 0?void 0:B.querySelectorAll("video");W==null||W.forEach(function(G){if(G.oncontextmenu=function(){return!1},G.src.indexOf(".m3u8")>-1&&!G.canPlayType("application/vnd.apple.mpegurl")){if(S.a.isSupported()){var J=new S.a;J.loadSource(G.src),J.attachMedia(G)}}})};Object(N.useEffect)(function(){if(pe.current&&Se&&(Se.match(ne)&&window.PR.prettyPrint()),pe.current)return pe.current.addEventListener("click",Oe),function(){pe.current.removeEventListener("click",Oe),a(),e()}},[Se,pe.current,Oe]);var Q=function(B){if(!te)return;B.target.nodeName==="IMG"?(Le.current.style.display="flex",Le.current.style.width=B.target.clientWidth+"px",Le.current.style.height=B.target.clientHeight+"px",Le.current.style.top=B.target.offsetTop+"px",Le.current.style.left=B.target.offsetLeft+"px",st.current.src=B.target.getAttribute("src")):Le.current.style.display="none"};return L.a.createElement("div",{style:{position:"relative"}},L.a.createElement("div",{ref:pe,style:Object(T.a)({},je),className:"".concat(be||""," markdown-body ").concat(Z.a.mdBody),onMouseOver:Q,dangerouslySetInnerHTML:{__html:Se}}),L.a.createElement("div",{ref:Le,className:Z.a.button},L.a.createElement(I.a,null,L.a.createElement(M.a,{onClick:function(){return openCrop()}},"\u88C1\u526A"),L.a.createElement(M.a,{onClick:function(){return openEditor()}},"\u7F16\u8F91"))),L.a.createElement("img",{ref:st,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1,top:"-10000px"}}),L.a.createElement(j.a,{close:!0,data:Xe,type:Xe!=null&&Xe.length?ve:"",style:Object(T.a)({},Ke),onClose:function(){return ut("")}}))}},"9JIy":function(Ne,Te,k){Ne.exports={flex_box_center:"flex_box_center___Hq8-r",flex_space_between:"flex_space_between___3Nl1U",flex_box_vertical_center:"flex_box_vertical_center___1hgum",flex_box_center_end:"flex_box_center_end___i5ldC",flex_box_column:"flex_box_column____1u-K",table:"table___2yPMl"}},BJfS:function(Ne,Te){var k=function(q){return q.replace(/[A-Z]/g,function(I){return"-"+I.toLowerCase()}).toLowerCase()};Ne.exports=k},BU3w:function(Ne,Te,k){"use strict";k.d(Te,"a",function(){return x});var q=k("MNnm"),I="rc-util-key";function R(N){if(N.attachTo)return N.attachTo;var L=document.querySelector("head");return L||document.body}function M(N){var L,C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(q.a)())return null;var O=document.createElement("style");if((L=C.csp)===null||L===void 0?void 0:L.nonce){var v;O.nonce=(v=C.csp)===null||v===void 0?void 0:v.nonce}O.innerHTML=N;var g=R(C),c=g.firstChild;return C.prepend&&g.prepend?g.prepend(O):C.prepend&&c?g.insertBefore(O,c):g.appendChild(O),O}var T=new Map;function x(N,L){var C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},O=R(C);if(!T.has(O)){var v=M("",C),g=v.parentNode;T.set(O,g),g.removeChild(v)}var c=Array.from(T.get(O).children).find(function(e){return e.tagName==="STYLE"&&e[I]===L});if(c){var s,n;if(((s=C.csp)===null||s===void 0?void 0:s.nonce)&&c.nonce!==((n=C.csp)===null||n===void 0?void 0:n.nonce)){var i;c.nonce=(i=C.csp)===null||i===void 0?void 0:i.nonce}return c.innerHTML!==N&&(c.innerHTML=N),c}var o=M(N,C);return o[I]=L,o}},BdwD:function(Ne,Te,k){"use strict";var q=k("+L6B"),I=k("2/Rp"),R=k("0Owb"),M=k("k1fw"),T=k("cDcd"),x=k.n(T),N=k("FOrL"),L=k.n(N),C=function(v){var g=v.buttonProps,c=g===void 0?{}:g,s=v.styles,n=s===void 0?{}:s,i=v.customText,o=v.ButtonText,e=v.ButtonClick,t=v.Buttonclass,r=v.ButtonTwo;return x.a.createElement("section",{className:"tc animated fadeIn",style:Object(M.a)(Object(M.a)({},{color:"#999",margin:"200px auto"}),n)},x.a.createElement("img",{src:L.a}),x.a.createElement("p",{className:"mt20 font14"},i||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),o&&x.a.createElement(I.a,Object(R.a)({className:t,onClick:e},c),o),r&&r)};Te.a=C},Bq7L:function(Ne,Te){Ne.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANQAAAA8CAYAAAAeyZT3AAAAAXNSR0IArs4c6QAAEpJJREFUeF7tXQeYFdUV/mcbS1F6UUEsoLC7IGKNJWpERbEgSoxGo7HEQFDRWCAGgdASNBbEhglqsC1rAxVBNGg0qNgLsJRddmFhe3vby3uT7393ZmfeezOv7M57W3LP9/EtM3Pn3DPn3n/uvf85c58CKdID0gOOeUBxTJNUJD0gPQAJKNkJpAcc9EALoNRpCaqt3rh4QIkDvH/jxV/zuZZjrVy8uRzvSzDdrx3HxWnnEnz1eevhOf/79HpNdrAs6wrQr9VvtiMc+/kc0HSan9Nrq8Uzt9hquuZjv8kPev26r8x16X5VPYDHDYT7Vy/L8vo94d7P8u5mcV+w+1U34GEZ7a+5Tg/vV31tbrmu36ff23JcB9VdBo9a5v2rekq14/1wN30GNXGzctPKKgf7eExVKUGBpJsSEkgWYPMHXEuH0sHlB5iW8jrAtE6sd9AW8GidVD9mR/fvxDrAzJ3Yp/ObAGL3srC1XweJnf0awHUQWgGJ52i3P+D9OyOP/QHSAjYT8Lwd3gRGH3Bp5dza34D7LUDsD04vmPzuN9cZGkSAF3xm4JttNoFWdasNlRVNta4SV21l6YHakvyPGurrNivA12kZ2B1TdLSisvAA1QrF8hbpAUsP8EWVkAwkdgMSugHxiUB8EpDcC+g1AOjeG+BciSBWPXA3NaA8Pxel+7LRXF+bCwXpShxeTX0V33ZED0tAdcRW+X+2iaN3j35Ar/7iX/e+XnCpbg9cZfkozctBrauci/9tioIlKSpeUTLg7iguk4DqKC0h7bD2QPJBQP/hUHsNhsIVv+qBq7QI+7O2w93USGDtUoEFaavxoqJ4x7Z2FQmodnW/rDxsD3Ba2PcwqL0PhaLEobmxAXnZmaiuKPOqUBRsSlBx06gM7AlbZxQKSkBFwalSZRQ9kJAE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ytLW2PmgcoGFfvCj0m10Oj/A9jGm+feuyEMAAAAAElFTkSuQmCC"},DlQD:function(Ne,Te,k){(function(q,I){Ne.exports=I()})(this,function(){"use strict";function q(ie,Q){for(var X=0;X<Q.length;X++){var B=Q[X];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(ie,B.key,B)}}function I(ie,Q,X){return Q&&q(ie.prototype,Q),X&&q(ie,X),ie}function R(ie,Q){if(!ie)return;if(typeof ie=="string")return M(ie,Q);var X=Object.prototype.toString.call(ie).slice(8,-1);if(X==="Object"&&ie.constructor&&(X=ie.constructor.name),X==="Map"||X==="Set")return Array.from(ie);if(X==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(X))return M(ie,Q)}function M(ie,Q){(Q==null||Q>ie.length)&&(Q=ie.length);for(var X=0,B=new Array(Q);X<Q;X++)B[X]=ie[X];return B}function T(ie,Q){var X;if(typeof Symbol=="undefined"||ie[Symbol.iterator]==null){if(Array.isArray(ie)||(X=R(ie))||Q&&ie&&typeof ie.length=="number"){X&&(ie=X);var B=0;return function(){return B>=ie.length?{done:!0}:{done:!1,value:ie[B++]}}}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 X=ie[Symbol.iterator](),X.next.bind(X)}function x(ie,Q){return Q={exports:{}},ie(Q,Q.exports),Q.exports}var N=x(function(ie){function Q(){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 X(B){ie.exports.defaults=B}ie.exports={defaults:Q(),getDefaults:Q,changeDefaults:X}}),L=N.defaults,C=N.getDefaults,O=N.changeDefaults,v=/[&<>"']/,g=/[&<>"']/g,c=/[<>"']|&(?!#?\w+;)/,s=/[<>"']|&(?!#?\w+;)/g,n={"&":"&","<":"<",">":">",'"':""","'":"'"},i=function(Q){return n[Q]};function o(ie,Q){if(Q){if(v.test(ie))return ie.replace(g,i)}else if(c.test(ie))return ie.replace(s,i);return ie}var e=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function t(ie){return ie.replace(e,function(Q,X){return X=X.toLowerCase(),X==="colon"?":":X.charAt(0)==="#"?X.charAt(1)==="x"?String.fromCharCode(parseInt(X.substring(2),16)):String.fromCharCode(+X.substring(1)):""})}var r=/(^|[^\[])\^/g;function y(ie,Q){ie=ie.source||ie,Q=Q||"";var X={replace:function(W,G){return G=G.source||G,G=G.replace(r,"$1"),ie=ie.replace(W,G),X},getRegex:function(){return new RegExp(ie,Q)}};return X}var _=/[^\w:]/g,p=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function E(ie,Q,X){if(ie){var B;try{B=decodeURIComponent(t(X)).replace(_,"").toLowerCase()}catch(W){return null}if(B.indexOf("javascript:")===0||B.indexOf("vbscript:")===0||B.indexOf("data:")===0)return null}Q&&!p.test(X)&&(X=l(Q,X));try{X=encodeURI(X).replace(/%25/g,"%")}catch(W){return null}return X}var m={},f=/^[^:]+:\/*[^/]*$/,u=/^([^:]+:)[\s\S]*$/,a=/^([^:]+:\/*[^/]*)[\s\S]*$/;function l(ie,Q){m[" "+ie]||(f.test(ie)?m[" "+ie]=ie+"/":m[" "+ie]=w(ie,"/",!0)),ie=m[" "+ie];var X=ie.indexOf(":")===-1;return Q.substring(0,2)==="//"?X?Q:ie.replace(u,"$1")+Q:Q.charAt(0)==="/"?X?Q:ie.replace(a,"$1")+Q:ie+Q}var h={exec:function(){}};function d(ie){for(var Q=1,X,B;Q<arguments.length;Q++){X=arguments[Q];for(B in X)Object.prototype.hasOwnProperty.call(X,B)&&(ie[B]=X[B])}return ie}function b(ie,Q){var X=ie.replace(/\|/g,function(G,J,ue){for(var ye=!1,De=J;--De>=0&&ue[De]==="\\";)ye=!ye;return ye?"|":" |"}),B=X.split(/ \|/),W=0;if(B.length>Q)B.splice(Q);else for(;B.length<Q;)B.push("");for(;W<B.length;W++)B[W]=B[W].trim().replace(/\\\|/g,"|");return B}function w(ie,Q,X){var B=ie.length;if(B===0)return"";for(var W=0;W<B;){var G=ie.charAt(B-W-1);if(G===Q&&!X)W++;else if(G!==Q&&X)W++;else break}return ie.substr(0,B-W)}function A(ie,Q){if(ie.indexOf(Q[1])===-1)return-1;for(var X=ie.length,B=0,W=0;W<X;W++)if(ie[W]==="\\")W++;else if(ie[W]===Q[0])B++;else if(ie[W]===Q[1]&&(B--,B<0))return W;return-1}function P(ie){ie&&ie.sanitize&&!ie.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}var S={escape:o,unescape:t,edit:y,cleanUrl:E,resolveUrl:l,noopTest:h,merge:d,splitCells:b,rtrim:w,findClosingBracket:A,checkSanitizeDeprecation:P},U=N.defaults,D=S.rtrim,j=S.splitCells,K=S.escape,Z=S.findClosingBracket;function ne(ie,Q,X){var B=Q.href,W=Q.title?K(Q.title):null,G=ie[1].replace(/\\([\[\]])/g,"$1");return ie[0].charAt(0)!=="!"?{type:"link",raw:X,href:B,title:W,text:G}:{type:"image",raw:X,href:B,title:W,text:K(G)}}function me(ie,Q){var X=ie.match(/^(\s+)(?:```)/);if(X===null)return Q;var B=X[1];return Q.split(`
|
|
`).map(function(W){var G=W.match(/^\s+/);if(G===null)return W;var J=G[0];return J.length>=B.length?W.slice(B.length):W}).join(`
|
|
`)}var he=function(){function ie(X){this.options=X||U}var Q=ie.prototype;return Q.space=function(B){var W=this.rules.block.newline.exec(B);if(W)return W[0].length>1?{type:"space",raw:W[0]}:{raw:`
|
|
`}},Q.code=function(B,W){var G=this.rules.block.code.exec(B);if(G){var J=W[W.length-1];if(J&&J.type==="paragraph")return{raw:G[0],text:G[0].trimRight()};var ue=G[0].replace(/^ {4}/gm,"");return{type:"code",raw:G[0],codeBlockStyle:"indented",text:this.options.pedantic?ue:D(ue,`
|
|
`)}}},Q.fences=function(B){var W=this.rules.block.fences.exec(B);if(W){var G=W[0],J=me(G,W[3]||"");return{type:"code",raw:G,lang:W[2]?W[2].trim():W[2],text:J}}},Q.heading=function(B){var W=this.rules.block.heading.exec(B);if(W)return{type:"heading",raw:W[0],depth:W[1].length,text:W[2]}},Q.nptable=function(B){var W=this.rules.block.nptable.exec(B);if(W){var G={type:"table",header:j(W[1].replace(/^ *| *\| *$/g,"")),align:W[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:W[3]?W[3].replace(/\n$/,"").split(`
|
|
`):[],raw:W[0]};if(G.header.length===G.align.length){var J=G.align.length,ue;for(ue=0;ue<J;ue++)/^ *-+: *$/.test(G.align[ue])?G.align[ue]="right":/^ *:-+: *$/.test(G.align[ue])?G.align[ue]="center":/^ *:-+ *$/.test(G.align[ue])?G.align[ue]="left":G.align[ue]=null;for(J=G.cells.length,ue=0;ue<J;ue++)G.cells[ue]=j(G.cells[ue],G.header.length);return G}}},Q.hr=function(B){var W=this.rules.block.hr.exec(B);if(W)return{type:"hr",raw:W[0]}},Q.blockquote=function(B){var W=this.rules.block.blockquote.exec(B);if(W){var G=W[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:W[0],text:G}}},Q.list=function(B){var W=this.rules.block.list.exec(B);if(W){for(var G=W[0],J=W[2],ue=J.length>1,ye=J[J.length-1]===")",De={type:"list",raw:G,ordered:ue,start:ue?+J.slice(0,-1):"",loose:!1,items:[]},Qe=W[0].match(this.rules.block.item),Je=!1,Ee,at,Ye,Be,it,ct,ot,vt=Qe.length,tt=0;tt<vt;tt++)Ee=Qe[tt],G=Ee,at=Ee.length,Ee=Ee.replace(/^ *([*+-]|\d+[.)]) */,""),~Ee.indexOf(`
|
|
`)&&(at-=Ee.length,Ee=this.options.pedantic?Ee.replace(/^ {1,4}/gm,""):Ee.replace(new RegExp("^ {1,"+at+"}","gm"),"")),tt!==vt-1&&(Ye=this.rules.block.bullet.exec(Qe[tt+1])[0],(ue?Ye.length===1||!ye&&Ye[Ye.length-1]===")":Ye.length>1||this.options.smartLists&&Ye!==J)&&(Be=Qe.slice(tt+1).join(`
|
|
`),De.raw=De.raw.substring(0,De.raw.length-Be.length),tt=vt-1)),it=Je||/\n\n(?!\s*$)/.test(Ee),tt!==vt-1&&(Je=Ee.charAt(Ee.length-1)===`
|
|
`,it||(it=Je)),it&&(De.loose=!0),ct=/^\[[ xX]\] /.test(Ee),ot=void 0,ct&&(ot=Ee[1]!==" ",Ee=Ee.replace(/^\[[ xX]\] +/,"")),De.items.push({type:"list_item",raw:G,task:ct,checked:ot,loose:it,text:Ee});return De}},Q.html=function(B){var W=this.rules.block.html.exec(B);if(W)return{type:this.options.sanitize?"paragraph":"html",raw:W[0],pre:!this.options.sanitizer&&(W[1]==="pre"||W[1]==="script"||W[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(W[0]):K(W[0]):W[0]}},Q.def=function(B){var W=this.rules.block.def.exec(B);if(W){W[3]&&(W[3]=W[3].substring(1,W[3].length-1));var G=W[1].toLowerCase().replace(/\s+/g," ");return{tag:G,raw:W[0],href:W[2],title:W[3]}}},Q.table=function(B){var W=this.rules.block.table.exec(B);if(W){var G={type:"table",header:j(W[1].replace(/^ *| *\| *$/g,"")),align:W[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:W[3]?W[3].replace(/\n$/,"").split(`
|
|
`):[]};if(G.header.length===G.align.length){G.raw=W[0];var J=G.align.length,ue;for(ue=0;ue<J;ue++)/^ *-+: *$/.test(G.align[ue])?G.align[ue]="right":/^ *:-+: *$/.test(G.align[ue])?G.align[ue]="center":/^ *:-+ *$/.test(G.align[ue])?G.align[ue]="left":G.align[ue]=null;for(J=G.cells.length,ue=0;ue<J;ue++)G.cells[ue]=j(G.cells[ue].replace(/^ *\| *| *\| *$/g,""),G.header.length);return G}}},Q.lheading=function(B){var W=this.rules.block.lheading.exec(B);if(W)return{type:"heading",raw:W[0],depth:W[2].charAt(0)==="="?1:2,text:W[1]}},Q.paragraph=function(B){var W=this.rules.block.paragraph.exec(B);if(W)return{type:"paragraph",raw:W[0],text:W[1].charAt(W[1].length-1)===`
|
|
`?W[1].slice(0,-1):W[1]}},Q.text=function(B,W){var G=this.rules.block.text.exec(B);if(G){var J=W[W.length-1];return J&&J.type==="text"?{raw:G[0],text:G[0]}:{type:"text",raw:G[0],text:G[0]}}},Q.escape=function(B){var W=this.rules.inline.escape.exec(B);if(W)return{type:"escape",raw:W[0],text:K(W[1])}},Q.tag=function(B,W,G){var J=this.rules.inline.tag.exec(B);if(J)return!W&&/^<a /i.test(J[0])?W=!0:W&&/^<\/a>/i.test(J[0])&&(W=!1),!G&&/^<(pre|code|kbd|script)(\s|>)/i.test(J[0])?G=!0:G&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(J[0])&&(G=!1),{type:this.options.sanitize?"text":"html",raw:J[0],inLink:W,inRawBlock:G,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(J[0]):K(J[0]):J[0]}},Q.link=function(B){var W=this.rules.inline.link.exec(B);if(W){var G=Z(W[2],"()");if(G>-1){var J=W[0].indexOf("!")===0?5:4,ue=J+W[1].length+G;W[2]=W[2].substring(0,G),W[0]=W[0].substring(0,ue).trim(),W[3]=""}var ye=W[2],De="";if(this.options.pedantic){var Qe=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(ye);Qe?(ye=Qe[1],De=Qe[3]):De=""}else De=W[3]?W[3].slice(1,-1):"";ye=ye.trim().replace(/^<([\s\S]*)>$/,"$1");var Je=ne(W,{href:ye&&ye.replace(this.rules.inline._escapes,"$1"),title:De&&De.replace(this.rules.inline._escapes,"$1")},W[0]);return Je}},Q.reflink=function(B,W){var G;if((G=this.rules.inline.reflink.exec(B))||(G=this.rules.inline.nolink.exec(B))){var J=(G[2]||G[1]).replace(/\s+/g," ");if(J=W[J.toLowerCase()],!J||!J.href){var ue=G[0].charAt(0);return{type:"text",raw:ue,text:ue}}var ye=ne(G,J,G[0]);return ye}},Q.strong=function(B,W,G){G===void 0&&(G="");var J=this.rules.inline.strong.start.exec(B);if(J&&(!J[1]||J[1]&&(G===""||this.rules.inline.punctuation.exec(G)))){W=W.slice(-1*B.length);var ue=J[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;ue.lastIndex=0;for(var ye;(J=ue.exec(W))!=null;)if(ye=this.rules.inline.strong.middle.exec(W.slice(0,J.index+3)),ye)return{type:"strong",raw:B.slice(0,ye[0].length),text:B.slice(2,ye[0].length-2)}}},Q.em=function(B,W,G){G===void 0&&(G="");var J=this.rules.inline.em.start.exec(B);if(J&&(!J[1]||J[1]&&(G===""||this.rules.inline.punctuation.exec(G)))){W=W.slice(-1*B.length);var ue=J[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;ue.lastIndex=0;for(var ye;(J=ue.exec(W))!=null;)if(ye=this.rules.inline.em.middle.exec(W.slice(0,J.index+2)),ye)return{type:"em",raw:B.slice(0,ye[0].length),text:B.slice(1,ye[0].length-1)}}},Q.codespan=function(B){var W=this.rules.inline.code.exec(B);if(W){var G=W[2].replace(/\n/g," "),J=/[^ ]/.test(G),ue=G.startsWith(" ")&&G.endsWith(" ");return J&&ue&&(G=G.substring(1,G.length-1)),G=K(G,!0),{type:"codespan",raw:W[0],text:G}}},Q.br=function(B){var W=this.rules.inline.br.exec(B);if(W)return{type:"br",raw:W[0]}},Q.del=function(B){var W=this.rules.inline.del.exec(B);if(W)return{type:"del",raw:W[0],text:W[1]}},Q.autolink=function(B,W){var G=this.rules.inline.autolink.exec(B);if(G){var J,ue;return G[2]==="@"?(J=K(this.options.mangle?W(G[1]):G[1]),ue="mailto:"+J):(J=K(G[1]),ue=J),{type:"link",raw:G[0],text:J,href:ue,tokens:[{type:"text",raw:J,text:J}]}}},Q.url=function(B,W){var G;if(G=this.rules.inline.url.exec(B)){var J,ue;if(G[2]==="@")J=K(this.options.mangle?W(G[0]):G[0]),ue="mailto:"+J;else{var ye;do ye=G[0],G[0]=this.rules.inline._backpedal.exec(G[0])[0];while(ye!==G[0]);J=K(G[0]),G[1]==="www."?ue="http://"+J:ue=J}return{type:"link",raw:G[0],text:J,href:ue,tokens:[{type:"text",raw:J,text:J}]}}},Q.inlineText=function(B,W,G){var J=this.rules.inline.text.exec(B);if(J){var ue;return W?ue=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(J[0]):K(J[0]):J[0]:ue=K(this.options.smartypants?G(J[0]):J[0]),{type:"text",raw:J[0],text:ue}}},ie}(),Y=S.noopTest,le=S.edit,ge=S.merge,re={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|<![A-Z][\\s\\S]*?>\\n*|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>\\n*|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:Y,table:Y,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};re._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,re._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,re.def=le(re.def).replace("label",re._label).replace("title",re._title).getRegex(),re.bullet=/(?:[*+-]|\d{1,9}[.)])/,re.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,re.item=le(re.item,"gm").replace(/bull/g,re.bullet).getRegex(),re.list=le(re.list).replace(/bull/g,re.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+re.def.source+")").getRegex(),re._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",re._comment=/<!--(?!-?>)[\s\S]*?-->/,re.html=le(re.html,"i").replace("comment",re._comment).replace("tag",re._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),re.paragraph=le(re._paragraph).replace("hr",re.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",re._tag).getRegex(),re.blockquote=le(re.blockquote).replace("paragraph",re.paragraph).getRegex(),re.normal=ge({},re),re.gfm=ge({},re.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*|$)"}),re.gfm.nptable=le(re.gfm.nptable).replace("hr",re.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",re._tag).getRegex(),re.gfm.table=le(re.gfm.table).replace("hr",re.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",re._tag).getRegex(),re.pedantic=ge({},re.normal,{html:le(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",re._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:Y,paragraph:le(re.normal._paragraph).replace("hr",re.hr).replace("heading",` *#{1,6} *[^
|
|
]`).replace("lheading",re.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var te={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Y,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",strong:{start:/^(?:(\*\*(?=[*punctuation]))|\*\*)(?![\s])|__/,middle:/^\*\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*\*$|^__(?![\s])((?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?)__$/,endAst:/[^punctuation\s]\*\*(?!\*)|[punctuation]\*\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]__(?!_)(?:(?=[punctuation\s])|$)/},em:{start:/^(?:(\*(?=[punctuation]))|\*)(?![*\s])|_/,middle:/^\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*$|^_(?![_\s])(?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?_$/,endAst:/[^punctuation\s]\*(?!\*)|[punctuation]\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]_(?!_)(?:(?=[punctuation\s])|$)/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Y,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/,punctuation:/^([\s*punctuation])/};te._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",te.punctuation=le(te.punctuation).replace(/punctuation/g,te._punctuation).getRegex(),te._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",te._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",te.em.start=le(te.em.start).replace(/punctuation/g,te._punctuation).getRegex(),te.em.middle=le(te.em.middle).replace(/punctuation/g,te._punctuation).replace(/overlapSkip/g,te._overlapSkip).getRegex(),te.em.endAst=le(te.em.endAst,"g").replace(/punctuation/g,te._punctuation).getRegex(),te.em.endUnd=le(te.em.endUnd,"g").replace(/punctuation/g,te._punctuation).getRegex(),te.strong.start=le(te.strong.start).replace(/punctuation/g,te._punctuation).getRegex(),te.strong.middle=le(te.strong.middle).replace(/punctuation/g,te._punctuation).replace(/blockSkip/g,te._blockSkip).getRegex(),te.strong.endAst=le(te.strong.endAst,"g").replace(/punctuation/g,te._punctuation).getRegex(),te.strong.endUnd=le(te.strong.endUnd,"g").replace(/punctuation/g,te._punctuation).getRegex(),te.blockSkip=le(te._blockSkip,"g").getRegex(),te.overlapSkip=le(te._overlapSkip,"g").getRegex(),te._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,te._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,te._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])?)+(?![-_])/,te.autolink=le(te.autolink).replace("scheme",te._scheme).replace("email",te._email).getRegex(),te._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,te.tag=le(te.tag).replace("comment",re._comment).replace("attribute",te._attribute).getRegex(),te._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,te._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,te._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,te.link=le(te.link).replace("label",te._label).replace("href",te._href).replace("title",te._title).getRegex(),te.reflink=le(te.reflink).replace("label",te._label).getRegex(),te.reflinkSearch=le(te.reflinkSearch,"g").replace("reflink",te.reflink).replace("nolink",te.nolink).getRegex(),te.normal=ge({},te),te.pedantic=ge({},te.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:le(/^!?\[(label)\]\((.*?)\)/).replace("label",te._label).getRegex(),reflink:le(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",te._label).getRegex()}),te.gfm=ge({},te.normal,{escape:le(te.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*~]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?= {2,}\n|[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/}),te.gfm.url=le(te.gfm.url,"i").replace("email",te.gfm._extended_email).getRegex(),te.breaks=ge({},te.gfm,{br:le(te.br).replace("{2,}","*").getRegex(),text:le(te.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var be={block:re,inline:te},ze=N.defaults,Ge=be.block,Ue=be.inline;function Ze(ie){return ie.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026")}function Pe(ie){var Q="",X,B,W=ie.length;for(X=0;X<W;X++)B=ie.charCodeAt(X),Math.random()>.5&&(B="x"+B.toString(16)),Q+="&#"+B+";";return Q}var Me=function(){function ie(X){this.tokens=[],this.tokens.links=Object.create(null),this.options=X||ze,this.options.tokenizer=this.options.tokenizer||new he,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var B={block:Ge.normal,inline:Ue.normal};this.options.pedantic?(B.block=Ge.pedantic,B.inline=Ue.pedantic):this.options.gfm&&(B.block=Ge.gfm,this.options.breaks?B.inline=Ue.breaks:B.inline=Ue.gfm),this.tokenizer.rules=B}ie.lex=function(B,W){var G=new ie(W);return G.lex(B)};var Q=ie.prototype;return Q.lex=function(B){return B=B.replace(/\r\n|\r/g,`
|
|
`).replace(/\t/g," "),this.blockTokens(B,this.tokens,!0),this.inline(this.tokens),this.tokens},Q.blockTokens=function(B,W,G){W===void 0&&(W=[]),G===void 0&&(G=!0),B=B.replace(/^ +$/gm,"");for(var J,ue,ye,De;B;){if(J=this.tokenizer.space(B)){B=B.substring(J.raw.length),J.type&&W.push(J);continue}if(J=this.tokenizer.code(B,W)){B=B.substring(J.raw.length),J.type?W.push(J):(De=W[W.length-1],De.raw+=`
|
|
`+J.raw,De.text+=`
|
|
`+J.text);continue}if(J=this.tokenizer.fences(B)){B=B.substring(J.raw.length),W.push(J);continue}if(J=this.tokenizer.heading(B)){B=B.substring(J.raw.length),W.push(J);continue}if(J=this.tokenizer.nptable(B)){B=B.substring(J.raw.length),W.push(J);continue}if(J=this.tokenizer.hr(B)){B=B.substring(J.raw.length),W.push(J);continue}if(J=this.tokenizer.blockquote(B)){B=B.substring(J.raw.length),J.tokens=this.blockTokens(J.text,[],G),W.push(J);continue}if(J=this.tokenizer.list(B)){for(B=B.substring(J.raw.length),ye=J.items.length,ue=0;ue<ye;ue++)J.items[ue].tokens=this.blockTokens(J.items[ue].text,[],!1);W.push(J);continue}if(J=this.tokenizer.html(B)){B=B.substring(J.raw.length),W.push(J);continue}if(G&&(J=this.tokenizer.def(B))){B=B.substring(J.raw.length),this.tokens.links[J.tag]||(this.tokens.links[J.tag]={href:J.href,title:J.title});continue}if(J=this.tokenizer.table(B)){B=B.substring(J.raw.length),W.push(J);continue}if(J=this.tokenizer.lheading(B)){B=B.substring(J.raw.length),W.push(J);continue}if(G&&(J=this.tokenizer.paragraph(B))){B=B.substring(J.raw.length),W.push(J);continue}if(J=this.tokenizer.text(B,W)){B=B.substring(J.raw.length),J.type?W.push(J):(De=W[W.length-1],De.raw+=`
|
|
`+J.raw,De.text+=`
|
|
`+J.text);continue}if(B){var Qe="Infinite loop on byte: "+B.charCodeAt(0);if(this.options.silent){console.error(Qe);break}else throw new Error(Qe)}}return W},Q.inline=function(B){var W,G,J,ue,ye,De,Qe=B.length;for(W=0;W<Qe;W++){De=B[W];switch(De.type){case"paragraph":case"text":case"heading":{De.tokens=[],this.inlineTokens(De.text,De.tokens);break}case"table":{for(De.tokens={header:[],cells:[]},ue=De.header.length,G=0;G<ue;G++)De.tokens.header[G]=[],this.inlineTokens(De.header[G],De.tokens.header[G]);for(ue=De.cells.length,G=0;G<ue;G++)for(ye=De.cells[G],De.tokens.cells[G]=[],J=0;J<ye.length;J++)De.tokens.cells[G][J]=[],this.inlineTokens(ye[J],De.tokens.cells[G][J]);break}case"blockquote":{this.inline(De.tokens);break}case"list":{for(ue=De.items.length,G=0;G<ue;G++)this.inline(De.items[G].tokens);break}}}return B},Q.inlineTokens=function(B,W,G,J,ue){W===void 0&&(W=[]),G===void 0&&(G=!1),J===void 0&&(J=!1),ue===void 0&&(ue="");var ye,De=B,Qe;if(this.tokens.links){var Je=Object.keys(this.tokens.links);if(Je.length>0)for(;(Qe=this.tokenizer.rules.inline.reflinkSearch.exec(De))!=null;)Je.includes(Qe[0].slice(Qe[0].lastIndexOf("[")+1,-1))&&(De=De.slice(0,Qe.index)+"["+"a".repeat(Qe[0].length-2)+"]"+De.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(Qe=this.tokenizer.rules.inline.blockSkip.exec(De))!=null;)De=De.slice(0,Qe.index)+"["+"a".repeat(Qe[0].length-2)+"]"+De.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;B;){if(ye=this.tokenizer.escape(B)){B=B.substring(ye.raw.length),W.push(ye);continue}if(ye=this.tokenizer.tag(B,G,J)){B=B.substring(ye.raw.length),G=ye.inLink,J=ye.inRawBlock,W.push(ye);continue}if(ye=this.tokenizer.link(B)){B=B.substring(ye.raw.length),ye.type==="link"&&(ye.tokens=this.inlineTokens(ye.text,[],!0,J)),W.push(ye);continue}if(ye=this.tokenizer.reflink(B,this.tokens.links)){B=B.substring(ye.raw.length),ye.type==="link"&&(ye.tokens=this.inlineTokens(ye.text,[],!0,J)),W.push(ye);continue}if(ye=this.tokenizer.strong(B,De,ue)){B=B.substring(ye.raw.length),ye.tokens=this.inlineTokens(ye.text,[],G,J),W.push(ye);continue}if(ye=this.tokenizer.em(B,De,ue)){B=B.substring(ye.raw.length),ye.tokens=this.inlineTokens(ye.text,[],G,J),W.push(ye);continue}if(ye=this.tokenizer.codespan(B)){B=B.substring(ye.raw.length),W.push(ye);continue}if(ye=this.tokenizer.br(B)){B=B.substring(ye.raw.length),W.push(ye);continue}if(ye=this.tokenizer.del(B)){B=B.substring(ye.raw.length),ye.tokens=this.inlineTokens(ye.text,[],G,J),W.push(ye);continue}if(ye=this.tokenizer.autolink(B,Pe)){B=B.substring(ye.raw.length),W.push(ye);continue}if(!G&&(ye=this.tokenizer.url(B,Pe))){B=B.substring(ye.raw.length),W.push(ye);continue}if(ye=this.tokenizer.inlineText(B,J,Ze)){B=B.substring(ye.raw.length),ue=ye.raw.slice(-1),W.push(ye);continue}if(B){var Ee="Infinite loop on byte: "+B.charCodeAt(0);if(this.options.silent){console.error(Ee);break}else throw new Error(Ee)}}return W},I(ie,null,[{key:"rules",get:function(){return{block:Ge,inline:Ue}}}]),ie}(),je=N.defaults,Ve=S.cleanUrl,Ke=S.escape,Ie=function(){function ie(X){this.options=X||je}var Q=ie.prototype;return Q.code=function(B,W,G){var J=(W||"").match(/\S*/)[0];if(this.options.highlight){var ue=this.options.highlight(B,J);ue!=null&&ue!==B&&(G=!0,B=ue)}return J?'<pre><code class="'+this.options.langPrefix+Ke(J,!0)+'">'+(G?B:Ke(B,!0))+`</code></pre>
|
|
`:"<pre><code>"+(G?B:Ke(B,!0))+`</code></pre>
|
|
`},Q.blockquote=function(B){return`<blockquote>
|
|
`+B+`</blockquote>
|
|
`},Q.html=function(B){return B},Q.heading=function(B,W,G,J){return this.options.headerIds?"<h"+W+' id="'+this.options.headerPrefix+J.slug(G)+'">'+B+"</h"+W+`>
|
|
`:"<h"+W+">"+B+"</h"+W+`>
|
|
`},Q.hr=function(){return this.options.xhtml?`<hr/>
|
|
`:`<hr>
|
|
`},Q.list=function(B,W,G){var J=W?"ol":"ul",ue=W&&G!==1?' start="'+G+'"':"";return"<"+J+ue+`>
|
|
`+B+"</"+J+`>
|
|
`},Q.listitem=function(B){return"<li>"+B+`</li>
|
|
`},Q.checkbox=function(B){return"<input "+(B?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},Q.paragraph=function(B){return"<p>"+B+`</p>
|
|
`},Q.table=function(B,W){return W&&(W="<tbody>"+W+"</tbody>"),`<table>
|
|
<thead>
|
|
`+B+`</thead>
|
|
`+W+`</table>
|
|
`},Q.tablerow=function(B){return`<tr>
|
|
`+B+`</tr>
|
|
`},Q.tablecell=function(B,W){var G=W.header?"th":"td",J=W.align?"<"+G+' align="'+W.align+'">':"<"+G+">";return J+B+"</"+G+`>
|
|
`},Q.strong=function(B){return"<strong>"+B+"</strong>"},Q.em=function(B){return"<em>"+B+"</em>"},Q.codespan=function(B){return"<code>"+B+"</code>"},Q.br=function(){return this.options.xhtml?"<br/>":"<br>"},Q.del=function(B){return"<del>"+B+"</del>"},Q.link=function(B,W,G){if(B=Ve(this.options.sanitize,this.options.baseUrl,B),B===null)return G;var J='<a href="'+Ke(B)+'"';return W&&(J+=' title="'+W+'"'),J+=">"+G+"</a>",J},Q.image=function(B,W,G){if(B=Ve(this.options.sanitize,this.options.baseUrl,B),B===null)return G;var J='<img src="'+B+'" alt="'+G+'"';return W&&(J+=' title="'+W+'"'),J+=this.options.xhtml?"/>":">",J},Q.text=function(B){return B},ie}(),Le=function(){function ie(){}var Q=ie.prototype;return Q.strong=function(B){return B},Q.em=function(B){return B},Q.codespan=function(B){return B},Q.del=function(B){return B},Q.html=function(B){return B},Q.text=function(B){return B},Q.link=function(B,W,G){return""+G},Q.image=function(B,W,G){return""+G},Q.br=function(){return""},ie}(),st=function(){function ie(){this.seen={}}var Q=ie.prototype;return Q.slug=function(B){var W=B.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(W)){var G=W;do this.seen[G]++,W=G+"-"+this.seen[G];while(this.seen.hasOwnProperty(W))}return this.seen[W]=0,W},ie}(),nt=N.defaults,$e=S.unescape,Xe=function(){function ie(X){this.options=X||nt,this.options.renderer=this.options.renderer||new Ie,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Le,this.slugger=new st}ie.parse=function(B,W){var G=new ie(W);return G.parse(B)};var Q=ie.prototype;return Q.parse=function(B,W){W===void 0&&(W=!0);var G="",J,ue,ye,De,Qe,Je,Ee,at,Ye,Be,it,ct,ot,vt,tt,lt,gt,He,rt=B.length;for(J=0;J<rt;J++){Be=B[J];switch(Be.type){case"space":continue;case"hr":{G+=this.renderer.hr();continue}case"heading":{G+=this.renderer.heading(this.parseInline(Be.tokens),Be.depth,$e(this.parseInline(Be.tokens,this.textRenderer)),this.slugger);continue}case"code":{G+=this.renderer.code(Be.text,Be.lang,Be.escaped);continue}case"table":{for(at="",Ee="",De=Be.header.length,ue=0;ue<De;ue++)Ee+=this.renderer.tablecell(this.parseInline(Be.tokens.header[ue]),{header:!0,align:Be.align[ue]});for(at+=this.renderer.tablerow(Ee),Ye="",De=Be.cells.length,ue=0;ue<De;ue++){for(Je=Be.tokens.cells[ue],Ee="",Qe=Je.length,ye=0;ye<Qe;ye++)Ee+=this.renderer.tablecell(this.parseInline(Je[ye]),{header:!1,align:Be.align[ye]});Ye+=this.renderer.tablerow(Ee)}G+=this.renderer.table(at,Ye);continue}case"blockquote":{Ye=this.parse(Be.tokens),G+=this.renderer.blockquote(Ye);continue}case"list":{for(it=Be.ordered,ct=Be.start,ot=Be.loose,De=Be.items.length,Ye="",ue=0;ue<De;ue++)tt=Be.items[ue],lt=tt.checked,gt=tt.task,vt="",tt.task&&(He=this.renderer.checkbox(lt),ot?tt.tokens.length>0&&tt.tokens[0].type==="text"?(tt.tokens[0].text=He+" "+tt.tokens[0].text,tt.tokens[0].tokens&&tt.tokens[0].tokens.length>0&&tt.tokens[0].tokens[0].type==="text"&&(tt.tokens[0].tokens[0].text=He+" "+tt.tokens[0].tokens[0].text)):tt.tokens.unshift({type:"text",text:He}):vt+=He),vt+=this.parse(tt.tokens,ot),Ye+=this.renderer.listitem(vt,gt,lt);G+=this.renderer.list(Ye,it,ct);continue}case"html":{G+=this.renderer.html(Be.text);continue}case"paragraph":{G+=this.renderer.paragraph(this.parseInline(Be.tokens));continue}case"text":{for(Ye=Be.tokens?this.parseInline(Be.tokens):Be.text;J+1<rt&&B[J+1].type==="text";)Be=B[++J],Ye+=`
|
|
`+(Be.tokens?this.parseInline(Be.tokens):Be.text);G+=W?this.renderer.paragraph(Ye):Ye;continue}default:{var pt='Token with "'+Be.type+'" type was not found.';if(this.options.silent){console.error(pt);return}else throw new Error(pt)}}}return G},Q.parseInline=function(B,W){W=W||this.renderer;var G="",J,ue,ye=B.length;for(J=0;J<ye;J++){ue=B[J];switch(ue.type){case"escape":{G+=W.text(ue.text);break}case"html":{G+=W.html(ue.text);break}case"link":{G+=W.link(ue.href,ue.title,this.parseInline(ue.tokens,W));break}case"image":{G+=W.image(ue.href,ue.title,ue.text);break}case"strong":{G+=W.strong(this.parseInline(ue.tokens,W));break}case"em":{G+=W.em(this.parseInline(ue.tokens,W));break}case"codespan":{G+=W.codespan(ue.text);break}case"br":{G+=W.br();break}case"del":{G+=W.del(this.parseInline(ue.tokens,W));break}case"text":{G+=W.text(ue.text);break}default:{var De='Token with "'+ue.type+'" type was not found.';if(this.options.silent){console.error(De);return}else throw new Error(De)}}}return G},ie}(),ut=S.merge,dt=S.checkSanitizeDeprecation,ce=S.escape,ve=N.getDefaults,xe=N.changeDefaults,Se=N.defaults;function pe(ie,Q,X){if(typeof ie=="undefined"||ie===null)throw new Error("marked(): input parameter is undefined or null");if(typeof ie!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(ie)+", string expected");if(typeof Q=="function"&&(X=Q,Q=null),Q=ut({},pe.defaults,Q||{}),dt(Q),X){var B=Q.highlight,W;try{W=Me.lex(ie,Q)}catch(ye){return X(ye)}var G=function(De){var Qe;if(!De)try{Qe=Xe.parse(W,Q)}catch(Je){De=Je}return Q.highlight=B,De?X(De):X(null,Qe)};if(!B||B.length<3)return G();if(delete Q.highlight,!W.length)return G();var J=0;pe.walkTokens(W,function(ye){ye.type==="code"&&(J++,setTimeout(function(){B(ye.text,ye.lang,function(De,Qe){if(De)return G(De);Qe!=null&&Qe!==ye.text&&(ye.text=Qe,ye.escaped=!0),J--,J===0&&G()})},0))}),J===0&&G();return}try{var ue=Me.lex(ie,Q);return Q.walkTokens&&pe.walkTokens(ue,Q.walkTokens),Xe.parse(ue,Q)}catch(ye){if(ye.message+=`
|
|
Please report this to https://github.com/markedjs/marked.`,Q.silent)return"<p>An error occurred:</p><pre>"+ce(ye.message+"",!0)+"</pre>";throw ye}}pe.options=pe.setOptions=function(ie){return ut(pe.defaults,ie),xe(pe.defaults),pe},pe.getDefaults=ve,pe.defaults=Se,pe.use=function(ie){var Q=ut({},ie);if(ie.renderer&&function(){var B=pe.defaults.renderer||new Ie,W=function(ue){var ye=B[ue];B[ue]=function(){for(var De=arguments.length,Qe=new Array(De),Je=0;Je<De;Je++)Qe[Je]=arguments[Je];var Ee=ie.renderer[ue].apply(B,Qe);return Ee===!1&&(Ee=ye.apply(B,Qe)),Ee}};for(var G in ie.renderer)W(G);Q.renderer=B}(),ie.tokenizer&&function(){var B=pe.defaults.tokenizer||new he,W=function(ue){var ye=B[ue];B[ue]=function(){for(var De=arguments.length,Qe=new Array(De),Je=0;Je<De;Je++)Qe[Je]=arguments[Je];var Ee=ie.tokenizer[ue].apply(B,Qe);return Ee===!1&&(Ee=ye.apply(B,Qe)),Ee}};for(var G in ie.tokenizer)W(G);Q.tokenizer=B}(),ie.walkTokens){var X=pe.defaults.walkTokens;Q.walkTokens=function(B){ie.walkTokens(B),X&&X(B)}}pe.setOptions(Q)},pe.walkTokens=function(ie,Q){for(var X=T(ie),B;!(B=X()).done;){var W=B.value;Q(W);switch(W.type){case"table":{for(var G=T(W.tokens.header),J;!(J=G()).done;){var ue=J.value;pe.walkTokens(ue,Q)}for(var ye=T(W.tokens.cells),De;!(De=ye()).done;)for(var Qe=De.value,Je=T(Qe),Ee;!(Ee=Je()).done;){var at=Ee.value;pe.walkTokens(at,Q)}break}case"list":{pe.walkTokens(W.items,Q);break}default:W.tokens&&pe.walkTokens(W.tokens,Q)}}},pe.Parser=Xe,pe.parser=Xe.parse,pe.Renderer=Ie,pe.TextRenderer=Le,pe.Lexer=Me,pe.lexer=Me.lex,pe.Tokenizer=he,pe.Slugger=st,pe.parse=pe;var Oe=pe;return Oe})},FOrL:function(Ne,Te,k){Ne.exports=k.p+"static/nodata.a6b3f948.png"},IBYe:function(Ne,Te,k){"use strict";function q(I){return null}Te.a=q},JAbv:function(Ne,Te){Ne.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAAA8CAYAAADogBFvAAAAAXNSR0IArs4c6QAADzxJREFUeF7tnQl4VcUVx3/3JSEBARFEFllcQAMJuKDUD7FqtVbFtUqtS6ufS1soxaW1Si0KBaFVWy2ittqqdQ9xpYq4tLgVFWUThYQlJIEkkJXs63u333lzL+/mrfeF9/KSeM/35Xv3zZw5c+bM/83MOTN3ouGQY4EuZAGtC+niqOJYAAeQDgi6lAU0fUayHqCR5gJXEriS/T6TICkZNOMzIN/gFx7/8vvLiFxDtpfP4G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FIBx96FAzPVODbk6PW3XbCQQdad0fLiz11D7urW9nXHP4eqmjCQPEHZEcb3NFysR49JMxz5SNKm9VPgZzYcQjE4ZOzKy1u8qtt3Jmv8fCEZcyOZDoHkJEsNHcjDBuvuO6bCvlG/DRSuW9Dvly74tHZUumOOG3LUWo7L4U5gAwHHHGsxMESkvOKC40DEd8GsEXRxqI6D1VNka+P1ODtzGzOD7t66XGX3sdyypaguATHhbJvg1UPR9FN3x7WxjbYsc/ezSqRwkA9b4QclqE8aiEJeH/5UseQITs5F81X/+tQSPa6g73f0zHpPaqUhMa3VrppDRMkNxscKQzU8wDZo7q6+zSmtFGntN6GcwOECwM5gOw+fd6lNW31QG6lADLytTHhwkAOILt0N3cv5XZWe6gXZNqhEGEgB5B2jOfw2LLAvmad3bX2pu1QYSAHkLZM7TDZsYD4NDn2YpJeccHCQA4g7Vja4bFtgeJ6D5WNNqdtcXD8TgM5gLRtaofRjgWa3LC9yl5M0jtK+p0GcgBpx8oOT1QWyKt209Aa2ds2hbpczM7Iwrvr4AAyKlM7zHYsEKVz0+5uIAeQdizs8Ni2gIyL8icxSbeNnZv9go0wkANI26Z2GKOxwJ56D+VRODdmGMgBZDRWdnhtW6C6WWeX/Zjk/jDQ/wHkSLPJ/mcrgQAAAABJRU5ErkJggg=="},KOXS:function(Ne,Te,k){Ne.exports={flex_box_center:"flex_box_center___4BHX-",flex_space_between:"flex_space_between___fH2oM",flex_box_vertical_center:"flex_box_vertical_center___TgSS9",flex_box_center_end:"flex_box_center_end___1vKaD",flex_box_column:"flex_box_column___1kCgI",input:"input___2mV-b",dropdown:"dropdown___1QKW2",menu:"menu___37CBn",text:"text___159fF",b1:"b1___2uGyF",b2:"b2___2DXw1"}},LdHM:function(Ne,Te,k){"use strict";k.d(Te,"b",function(){return r}),k.d(Te,"a",function(){return _});var q=k("1OyB"),I=k("vuIU"),R=k("Ji7U"),M=k("LK+K"),T=k("cDcd"),x=k("rePB"),N=k("Ff2n"),L=k("ODXe"),C=k("4IlW"),O=k("bX4T"),v=k("YrtM"),g=k("TSYQ"),c=k.n(g),s=k("+nKL"),n=k("8OUc"),i=function(j,K){var Z=j.prefixCls,ne=j.id,me=j.flattenOptions,he=j.childrenAsData,Y=j.values,le=j.searchValue,ge=j.multiple,re=j.defaultActiveFirstOption,te=j.height,be=j.itemHeight,ze=j.notFoundContent,Ge=j.open,Ue=j.menuItemSelectedIcon,Ze=j.virtual,Pe=j.onSelect,Me=j.onToggleOpen,je=j.onActiveValue,Ve=j.onScroll,Ke=j.onMouseEnter,Ie="".concat(Z,"-item"),Le=Object(v.a)(function(){return me},[Ge,me],function(Oe,ie){return ie[0]&&Oe[1]!==ie[1]}),st=T.useRef(null),nt=function(ie){ie.preventDefault()},$e=function(ie){st.current&&st.current.scrollTo({index:ie})},Xe=function(ie){for(var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,X=Le.length,B=0;B<X;B+=1){var W=(ie+B*Q+X)%X,G=Le[W],J=G.group,ue=G.data;if(!J&&!ue.disabled)return W}return-1},ut=T.useState(function(){return Xe(0)}),dt=Object(L.a)(ut,2),ce=dt[0],ve=dt[1],xe=function(ie){ve(ie);var Q=Le[ie];if(!Q){je(null,-1);return}je(Q.data.value,ie)};T.useEffect(function(){xe(re!==!1?Xe(0):-1)},[Le.length,le]),T.useEffect(function(){var Oe=setTimeout(function(){if(!ge&&Ge&&Y.size===1){var ie=Array.from(Y)[0],Q=Le.findIndex(function(X){var B=X.data;return B.value===ie});xe(Q),$e(Q)}});return function(){return clearTimeout(Oe)}},[Ge]);var Se=function(ie){ie!==void 0&&Pe(ie,{selected:!Y.has(ie)}),ge||Me(!1)};if(T.useImperativeHandle(K,function(){return{onKeyDown:function(ie){var Q=ie.which;switch(Q){case C.a.UP:case C.a.DOWN:{var X=0;if(Q===C.a.UP?X=-1:Q===C.a.DOWN&&(X=1),X!==0){var B=Xe(ce+X,X);$e(B),xe(B)}break}case C.a.ENTER:{var W=Le[ce];W&&!W.data.disabled?Se(W.data.value):Se(void 0),Ge&&ie.preventDefault();break}case C.a.ESC:Me(!1)}},onKeyUp:function(){},scrollTo:function(ie){$e(ie)}}}),Le.length===0)return T.createElement("div",{role:"listbox",id:"".concat(ne,"_list"),className:"".concat(Ie,"-empty"),onMouseDown:nt},ze);function pe(Oe){var ie=Le[Oe];if(!ie)return null;var Q=ie.data||{},X=Q.value,B=Q.label,W=Q.children,G=Object(O.a)(Q,!0),J=he?W:B;return ie?T.createElement("div",Object.assign({"aria-label":typeof J=="string"?J:null},G,{key:Oe,role:"option",id:"".concat(ne,"_list_").concat(Oe),"aria-selected":Y.has(X)}),X):null}return T.createElement(T.Fragment,null,T.createElement("div",{role:"listbox",id:"".concat(ne,"_list"),style:{height:0,width:0,overflow:"hidden"}},pe(ce-1),pe(ce),pe(ce+1)),T.createElement(s.a,{itemKey:"key",ref:st,data:Le,height:te,itemHeight:be,fullHeight:!1,onMouseDown:nt,onScroll:Ve,virtual:Ze,onMouseEnter:Ke},function(Oe,ie){var Q,X=Oe.group,B=Oe.groupOption,W=Oe.data,G=W.label,J=W.key;if(X)return T.createElement("div",{className:c()(Ie,"".concat(Ie,"-group"))},G!==void 0?G:J);var ue=W.disabled,ye=W.value,De=W.title,Qe=W.children,Je=W.style,Ee=W.className,at=Object(N.a)(W,["disabled","value","title","children","style","className"]),Ye=Y.has(ye),Be="".concat(Ie,"-option"),it=c()(Ie,Be,Ee,(Q={},Object(x.a)(Q,"".concat(Be,"-grouped"),B),Object(x.a)(Q,"".concat(Be,"-active"),ce===ie&&!ue),Object(x.a)(Q,"".concat(Be,"-disabled"),ue),Object(x.a)(Q,"".concat(Be,"-selected"),Ye),Q)),ct=he?Qe:G,ot=!Ue||typeof Ue=="function"||Ye;return T.createElement("div",Object.assign({},at,{"aria-selected":Ye,className:it,title:De,onMouseMove:function(){if(ce===ie||ue)return;xe(ie)},onClick:function(){ue||Se(ye)},style:Je}),T.createElement("div",{className:"".concat(Be,"-content")},ct||ye),T.isValidElement(Ue)||Ye,ot&&T.createElement(n.a,{className:"".concat(Ie,"-option-state"),customizeIcon:Ue,customizeIconProps:{isSelected:Ye}},Ye?"\u2713":null))}))},o=T.forwardRef(i);o.displayName="OptionList";var e=o,t=function(){return null};t.isSelectOption=!0;var r=t,y=function(){return null};y.isSelectOptGroup=!0;var _=y,p=k("VTBJ"),E=k("Zm9Q");function m(D){var j=D.key,K=D.props,Z=K.children,ne=K.value,me=Object(N.a)(K,["children","value"]);return Object(p.a)({key:j,value:ne!==void 0?ne:j,children:Z},me)}function f(D){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Object(E.a)(D).map(function(K,Z){if(!T.isValidElement(K)||!K.type)return null;var ne=K.type.isSelectOptGroup,me=K.key,he=K.props,Y=he.children,le=Object(N.a)(he,["children"]);return j||!ne?m(K):Object(p.a)(Object(p.a)({key:"__RC_SELECT_GRP__".concat(me===null?Z:me,"__"),label:me},le),{},{options:f(Y)})}).filter(function(K){return K})}var u=k("2Qr1"),a=k("qNPg"),l=k("U8pU"),h=k("Kwbf"),d=k("WKfj");function b(D){var j=D.mode,K=D.options,Z=D.children,ne=D.backfill,me=D.allowClear,he=D.placeholder,Y=D.getInputElement,le=D.showSearch,ge=D.onSearch,re=D.defaultOpen,te=D.autoFocus,be=D.labelInValue,ze=D.value,Ge=D.inputValue,Ue=D.optionLabelProp,Ze=j==="multiple"||j==="tags",Pe=le!==void 0?le:Ze||j==="combobox",Me=K||f(Z);if(Object(h.a)(j!=="tags"||Me.every(function(Ie){return!Ie.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),j==="tags"||j==="combobox"){var je=Me.some(function(Ie){return Ie.options?Ie.options.some(function(Le){return typeof("value"in Le?Le.value:Le.key)=="number"}):typeof("value"in Ie?Ie.value:Ie.key)=="number"});Object(h.a)(!je,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(h.a)(j!=="combobox"||!Ue,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(h.a)(j==="combobox"||!ne,"`backfill` only works with `combobox` mode."),Object(h.a)(j==="combobox"||!Y,"`getInputElement` only work with `combobox` mode."),Object(h.b)(j!=="combobox"||!Y||!me||!he,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ge&&!Pe&&j!=="combobox"&&j!=="tags"&&Object(h.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(h.b)(!re||te,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),ze!=null){var Ve=Object(d.d)(ze);Object(h.a)(!be||Ve.every(function(Ie){return Object(l.a)(Ie)==="object"&&("key"in Ie||"value"in Ie)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(h.a)(!Ze||Array.isArray(ze),"`value` should be array when `mode` is `multiple` or `tags`")}if(Z){var Ke=null;Object(E.a)(Z).some(function(Ie){if(!T.isValidElement(Ie)||!Ie.type)return!1;var Le=Ie.type;if(Le.isSelectOption)return!1;if(Le.isSelectOptGroup){var st=Object(E.a)(Ie.props.children).every(function(nt){return!T.isValidElement(nt)||!Ie.type||nt.type.isSelectOption?!0:(Ke=nt.type,!1)});return!st}return Ke=Le,!0}),Ke&&Object(h.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ke.displayName||Ke.name||Ke,"`.")),Object(h.a)(Ge===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var w=b,A=Object(a.a)({prefixCls:"rc-select",components:{optionList:e},convertChildrenToData:f,flattenOptions:u.d,getLabeledValue:u.e,filterOptions:u.b,isValueDisabled:u.g,findValueOption:u.c,warningProps:w,fillOptionsWithMissingValue:u.a}),P=function(D){Object(R.a)(K,D);var j=Object(M.a)(K);function K(){var Z;return Object(q.a)(this,K),Z=j.apply(this,arguments),Z.selectRef=T.createRef(),Z.focus=function(){Z.selectRef.current.focus()},Z.blur=function(){Z.selectRef.current.blur()},Z}return Object(I.a)(K,[{key:"render",value:function(){return T.createElement(A,Object.assign({ref:this.selectRef},this.props))}}]),K}(T.Component);P.Option=r,P.OptGroup=_;var S=P,U=Te.c=S},MEgm:function(Ne,Te){Ne.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALAAAAA8CAYAAADGxTD9AAAAAXNSR0IArs4c6QAAFoFJREFUeF7tXQl4k1W6fv8sTbqvlJa2tJSy74ugsiMqq4AKIlDUueNwR2dGHR0XdLwixW3uuF6Xq3O9o15nxuUiIIsCsijK1pa20NJ937eke5tmmec7f/40TfInaUNK6+R7nj5Jk7Of93z/t55w8JBnBYbwCnBDeOyeoXtWAB4Ae0AwpFeA+1SWbbA1A07KQSID6JWT0ivAyThIpBwgBSQy4+fCq0T4jANnrEdlWFkpjK/0ndAetd/znpMaTO0LZcz74tsxti0xjqVXfeNYZcZyxvHSuK3GbDYX03iMbbLy5nOz+pzGbGDrwpfj52DQG2DQAwad8Gcwvudf9ToDQN/pDdBrDYBFWfqMry/UAytP9fjPjJ/rYVHf2L7Qph4GaA0tOj1UnBYqvd6gMugMKr0OKoOOq+UMhhQ5DGfHPRNWMaSRaxy8bQBzPGAZAI3AFMAoAIJtnBnA2WaagdlU39iOAKKeje85FKY2TYDkwWh+APi2ebD0AJ8HMn/AzAHFA4x9Jxwss7bN5yXUpbnwB4SvY3Nu9LmwLr36NIKWAEhA1BlMgOUBCAZYBtJe761Byx+A3vV54Av1efDrtUawm4G+N+D5MfUcHH5s7H890KnqNjRWNGkaqlXqhgp1VV1JwxkOSJUAqUB0xk4s0Q4FgIty4KEweM8Yba+ARCmBzBuQeksgVXKQKugVkAdIoRwhhU+EHJycg0GrNz01Whs6UJhegtLsCmi7tI0GYC8H7osYTPhuO2Z3D9a19gB4sO6Mm8flFSKBd4QcyuFS+MbKIfOWMM6v69KjIq8WhVlFaKpvAQeuFsCr/gh45wmsbXHzsPrcvAfAfV6yn18FjgN8YmUInKiAd4TMJObUlNQj42wWutq7SNtXA9zrIVC88nts7Bgsq+AB8GDZiUEyDrm/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r5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},NQs2:function(Ne,Te,k){Ne.exports={flex_box_center:"flex_box_center___3K14R",flex_space_between:"flex_space_between___1KE7t",flex_box_vertical_center:"flex_box_vertical_center___3Yslx",flex_box_center_end:"flex_box_center_end___2RmV-",flex_box_column:"flex_box_column___3k3IQ",banner:"banner___3caau",content:"content___fxe_p",btns:"btns___Vv-WB"}},Nf5h:function(Ne,Te,k){"use strict";k.d(Te,"a",function(){return L}),k.d(Te,"h",function(){return n}),k.d(Te,"l",function(){return t}),k.d(Te,"e",function(){return m}),k.d(Te,"i",function(){return l}),k.d(Te,"j",function(){return re}),k.d(Te,"c",function(){return Ve}),k.d(Te,"b",function(){return nt}),k.d(Te,"g",function(){return dt}),k.d(Te,"f",function(){return Se}),k.d(Te,"k",function(){return J}),k.d(Te,"d",function(){return Qe});var q=k("cDcd"),I=k.n(q),R=k("NQs2"),M=k.n(R),T=k("ygoZ"),x=k.n(T),N=function(Ee){var at=Ee.dataSource,Ye=at===void 0?[]:at,Be=Ee.img,it=Ee.imgWidth,ct=it===void 0?346:it,ot=Ee.title,vt=Ee.sunTitle,tt=Ee.bannerExtraContent;return I.a.createElement("div",{className:M.a.banner},I.a.createElement("div",{className:M.a.content},I.a.createElement("aside",null,I.a.createElement("p",null,I.a.createElement("b",null,ot),I.a.createElement("span",null,vt)),Ye.length>0&&I.a.createElement("div",{className:M.a.btns},Ye.map(function(lt,gt){return I.a.createElement("div",{key:gt,onClick:lt.click},lt.name,lt.sign?I.a.createElement("img",{src:x.a,width:39}):null)})),tt),I.a.createElement("img",{style:{marginTop:33,marginRight:38},src:Be,width:ct})))},L=N,C=k("tJVT"),O=k("6nfa"),v=k.n(O),g=k("TSYQ"),c=k.n(g),s=function(Ee){var at=Ee.dataSource,Ye=at===void 0?[]:at,Be=Ee.value,it=Ee.onChange,ct=Ee.className,ot=Ee.title,vt=Ee.titleWidth,tt=vt===void 0?41:vt,lt=Ee.style,gt=lt===void 0?{}:lt,He=Ee.fontColor,rt=He===void 0?"#6A7283":He,pt=Object(q.useState)(0),bt=Object(C.a)(pt,2),xt=bt[0],ft=bt[1],on=Object(q.useState)(!1),Jt=Object(C.a)(on,2),Ut=Jt[0],Vt=Jt[1],jt=Object(q.useRef)(null);return Object(q.useEffect)(function(){if(Ye.length!==0){var Wt;(jt==null||((Wt=jt.current)===null||Wt===void 0)?void 0:Wt.clientHeight)>92?ft(1):ft(0)}Ye.length===0&&ft(0)},[Ye]),I.a.createElement("div",{className:c()(v.a.row,ct),style:gt},I.a.createElement("div",{style:{width:tt,marginTop:Ut?12:4},className:v.a.title},ot),I.a.createElement("div",{className:Ut?"".concat(v.a.tagsWrap," ").concat(v.a.tagsBorderWrap):v.a.tagsWrap},I.a.createElement("div",{className:v.a.bar,style:xt>0?{height:xt===1?92:"auto",overflow:xt===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},I.a.createElement("div",{className:v.a.name,ref:jt},Ye==null?void 0:Ye.map(function(Wt){return I.a.createElement("span",{onClick:function(){return it(Wt.id)},key:Wt.id,title:Wt.name,style:{color:rt},className:Be===Wt.id?v.a.active:""},Wt.name)}))),!!xt&&I.a.createElement(q.Fragment,null,xt===1?I.a.createElement("div",{onClick:function(){var un;ft(2),(jt==null||((un=jt.current)===null||un===void 0)?void 0:un.clientHeight)>205?Vt(!0):Vt(!1)},className:v.a.action},"\u5C55\u5F00",I.a.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):I.a.createElement("div",{onClick:function(){ft(1),Vt(!1)},className:v.a.action},"\u6536\u8D77",I.a.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},n=s,i=k("cz0n"),o=k.n(i),e=function(Ee){var at=Ee.dataSource,Ye=at===void 0?[]:at,Be=Ee.value,it=Ee.onChange,ct=Ee.className;return I.a.createElement("div",{className:c()(o.a.tabs,ct)},Ye.map(function(ot){return I.a.createElement("span",{onClick:function(){return it(ot.id)},className:Be===ot.id?o.a.active:"",key:ot.id},ot.name)}))},t=e,r=k("5NDa"),y=k("5rEg"),_=k("KOXS"),p=k.n(_),E=function(Ee){var at,Ye=Ee.dataSource,Be=Ye===void 0?[]:Ye,it=Ee.value,ct=Ee.onChange,ot=Ee.className,vt=Ee.style,tt=vt===void 0?{}:vt,lt=Ee.placeholder,gt=Object(q.useState)(""),He=Object(C.a)(gt,2),rt=He[0],pt=He[1],bt=Object(q.useState)(""),xt=Object(C.a)(bt,2),ft=xt[0],on=xt[1];Object(q.useEffect)(function(){var Ut;(Ut=JSON.stringify(it))!==null&&Ut!==void 0&&Ut.includes("{")?(pt(it.id),on(it.value)):on(it)},[it]);var Jt=function(){ct(ft,rt||null)};return I.a.createElement("div",{className:c()(p.a.input,ot),style:tt},!!Be.length&&I.a.createElement("div",{className:p.a.dropdown},I.a.createElement("div",{className:p.a.text},(at=Be.find(function(Ut){return Ut.id===rt}))===null||at===void 0?void 0:at.name,I.a.createElement("i",{className:"iconfont icon-zhankai4"}),I.a.createElement("b",{className:p.a.b1}),I.a.createElement("b",{className:p.a.b2})),I.a.createElement("div",{className:p.a.menu},Be.map(function(Ut,Vt){return I.a.createElement("div",{key:Vt,onClick:function(){return pt(Ut.id)}},Ut.name)}))),I.a.createElement(y.a,{onPressEnter:Jt,value:ft,onChange:function(Vt){return on(Vt.target.value)},bordered:!1,placeholder:lt}),I.a.createElement("i",{onClick:Jt,className:"iconfont icon-sousuo9 font14 pl10 current"}))},m=E,f=k("f9pc"),u=k.n(f),a=function(Ee){var at=Ee.value,Ye=Ee.onChange,Be=Ee.className,it=Ee.total,ct=Ee.pageSize,ot=Ee.style,vt=ot===void 0?{}:ot,tt=at<2,lt=at>=Math.ceil(it/ct);return it<=ct?I.a.createElement(I.a.Fragment,null):I.a.createElement("div",{className:c()(u.a.quickPager,Be),style:vt},I.a.createElement("div",{onClick:function(){tt||Ye(at-1,"prev")},className:tt?u.a.disabled:""},"\u4E0A\u4E00\u9875"),I.a.createElement("div",{onClick:function(){lt||Ye(at+1,"next")},className:lt?u.a.disabled:""},"\u4E0B\u4E00\u9875"))},l=a,h=k("T2oS"),d=k("W9HT"),b=k("pC0b"),w=k("GzdX"),A=k("5Dmo"),P=k("3S7+"),S=k("Oe0F"),U=k.n(S),D=k("m3rI"),j=k("1vsH"),K=k("JAbv"),Z=k.n(K),ne=k("Bq7L"),me=k.n(ne),he=k("MEgm"),Y=k.n(he),le=k("BdwD"),ge=function(Ee){var at=Ee.className,Ye=Ee.dataSource,Be=Ye===void 0?[]:Ye,it=Ee.col,ct=it===void 0?4:it,ot=Ee.right,vt=Ee.bottom,tt=vt===void 0?23:vt,lt=Ee.precision,gt=lt===void 0?0:lt,He=Ee.wrapWidth,rt=He===void 0?1200:He,pt=Ee.trackEventItems,bt=Ee.loading,xt=Math.floor((rt-(ct-1)*ot)/ct);return I.a.createElement(d.a,{spinning:bt},I.a.createElement("div",{className:c()(U.a.list,at)},!!Be.length&&Be.map(function(ft,on){var Jt=ft.name,Ut=ft.id,Vt=ft.identifier,jt=ft.power,Wt=ft.cover_image_id,un=ft.pic;return I.a.createElement("div",{className:U.a.wrap,key:Ut,style:{width:xt,marginRight:(1+on)%ct===0?0:ot+gt,marginBottom:tt}},I.a.createElement("a",{target:"_blank",href:"/shixuns/".concat(Vt,"/challenges"),className:U.a.li,onClick:function(mn){mn.preventDefault(),pt&&Object(j.eb)([pt]),jt&&Object(j.U)("/shixuns/".concat(Vt,"/challenges"))}},I.a.createElement("div",{className:U.a.img},I.a.createElement("img",{className:U.a.cover,src:Wt?"".concat(D.a.API_SERVER,"/api/attachments/").concat(Wt):"".concat(D.a.IMG_SERVER,"/").concat(un)}),ft.is_jupyter&&I.a.createElement("img",{className:U.a.sign,src:Z.a}),ft.is_jupyter_lab&&I.a.createElement("img",{className:U.a.sign,src:me.a}),ft.is_unity_3d&&I.a.createElement("img",{className:U.a.sign,src:Y.a})),I.a.createElement("div",{className:U.a.name},I.a.createElement(P.a,{title:Jt||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},I.a.createElement("span",{className:U.a.e},Jt||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),I.a.createElement("div",{className:U.a.tags},I.a.createElement(P.a,{placement:"bottom",title:"\u5173\u5361\u6570"},I.a.createElement("span",null,I.a.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr3"}),I.a.createElement("span",null,ft.challenges_count))),!!ft.myshixuns_count&&I.a.createElement(P.a,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},I.a.createElement("span",null,I.a.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),I.a.createElement("span",null,ft.myshixuns_count))),I.a.createElement(P.a,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},I.a.createElement("span",null,I.a.createElement("span",null,ft.level))),I.a.createElement("div",{className:U.a.rate},I.a.createElement(w.a,{allowHalf:!0,disabled:!0,defaultValue:ft.score_info}),I.a.createElement("span",null,"\xA0",ft.score_info?"".concat(ft.score_info,"\u5206"):"5\u5206")))),!jt&&I.a.createElement("div",{className:U.a.lockWrap},I.a.createElement("img",{src:"".concat(D.a.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),I.a.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Be.length&&I.a.createElement(le.a,null)))},re=ge,te=k("ZJlW"),be=k.n(te),ze=k("z4EP"),Ge=k.n(ze),Ue=k("+GGh"),Ze=k.n(Ue),Pe=k("cFMs"),Me=k.n(Pe),je=function(Ee){var at=Ee.className,Ye=Ee.dataSource,Be=Ye===void 0?[]:Ye,it=Ee.col,ct=it===void 0?4:it,ot=Ee.right,vt=Ee.bottom,tt=vt===void 0?23:vt,lt=Ee.precision,gt=lt===void 0?0:lt,He=Ee.wrapWidth,rt=He===void 0?1200:He,pt=Ee.trackEventItems,bt=Ee.loading,xt=Math.floor((rt-(ct-1)*ot)/ct);return I.a.createElement(d.a,{spinning:bt},I.a.createElement("div",{className:c()(be.a.list,at)},!!Be.length&&Be.map(function(ft,on){var Jt=ft.name,Ut=ft.id,Vt=ft.identifier,jt=ft.featured,Wt=ft.school_name,un=ft.image_url,rn=ft.excellent;return I.a.createElement("div",{key:Ut,className:be.a.wrap,style:{width:xt,marginRight:(1+on)%ct===0?0:ot+gt,marginBottom:tt}},I.a.createElement("a",{target:"_blank",href:"/paths/".concat(Vt),className:be.a.li,onClick:function(wn){wn.preventDefault(),pt&&Object(j.eb)([pt]),Object(j.U)("/paths/".concat(Vt))}},I.a.createElement("div",{className:be.a.img},I.a.createElement("img",{className:be.a.cover,src:"".concat(D.a.IMG_SERVER,"/").concat(un)}),jt===1&&I.a.createElement("img",{className:be.a.sign,src:Ge.a}),jt===2&&I.a.createElement("img",{className:be.a.sign,src:""}),jt===3&&I.a.createElement("img",{className:be.a.sign,src:Ze.a}),jt===4&&I.a.createElement("img",{className:be.a.sign,src:""}),jt===5&&I.a.createElement("img",{className:be.a.sign,src:Me.a})),I.a.createElement("div",{className:be.a.name},I.a.createElement(P.a,{title:Jt},I.a.createElement("span",{className:be.a.e},Jt))),I.a.createElement(P.a,{title:"\u53D1\u5E03\u5355\u4F4D\uFF1A".concat(Wt)},I.a.createElement("div",{className:be.a.unit},I.a.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),Wt)),I.a.createElement("div",{className:be.a.tags},I.a.createElement(P.a,{placement:"bottom",title:"\u7AE0\u8282\u6570"},I.a.createElement("span",null,I.a.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),I.a.createElement("span",null,ft.stages_count))),I.a.createElement(P.a,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},I.a.createElement("span",null,I.a.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),I.a.createElement("span",null,ft.members_count))),rn&&I.a.createElement("div",{className:be.a.tag},"\u5F00\u653E\u8BFE\u7A0B"))))}),!Be.length&&I.a.createElement(le.a,null)))},Ve=je,Ke=k("iL++"),Ie=k.n(Ke),Le=k("xiVL"),st=function(Ee){var at=Ee.className,Ye=Ee.dataSource,Be=Ye===void 0?[]:Ye,it=Ee.col,ct=it===void 0?4:it,ot=Ee.right,vt=Ee.bottom,tt=vt===void 0?23:vt,lt=Ee.precision,gt=lt===void 0?0:lt,He=Ee.wrapWidth,rt=He===void 0?1200:He,pt=Ee.trackEventItems,bt=Ee.loading,xt=Math.floor((rt-(ct-1)*ot)/ct);return I.a.createElement(d.a,{spinning:bt},I.a.createElement("div",{className:c()(Ie.a.list,at)},!!Be.length&&Be.map(function(ft,on){var Jt=ft.subject_identifier,Ut=ft.id,Vt=ft.identifier,jt=ft.power,Wt=ft.is_public!=0&&ft.is_public;return I.a.createElement("div",{className:Ie.a.wrap,key:Ut,style:{width:xt,marginRight:(1+on)%ct===0?0:ot+gt,marginBottom:tt}},I.a.createElement("a",{className:Ie.a.li,onClick:function(rn){rn.preventDefault()}},I.a.createElement("div",{className:Ie.a.top},I.a.createElement(P.a,{title:ft.name},I.a.createElement("div",{className:Ie.a.name},ft.name)),I.a.createElement("img",{className:Ie.a.img,src:D.a.IMG_SERVER+"/images/"+ft.avatar_url}),I.a.createElement("div",{className:Ie.a.text},ft.creator),Jt&&I.a.createElement("div",{className:Ie.a.btns},I.a.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),I.a.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Wt&&I.a.createElement("div",{className:Ie.a.sign},"\u516C\u5F00")),I.a.createElement("div",{className:Ie.a.bottom},ft.visits>0&&I.a.createElement(P.a,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},I.a.createElement("span",null,I.a.createElement("i",{className:"iconfont icon-liulanyan"}),I.a.createElement("span",null,ft.visits))),ft.course_members_count>0&&I.a.createElement(P.a,{title:"\u6210\u5458",placement:"bottom"},I.a.createElement("span",null,I.a.createElement("i",{className:"iconfont icon-chengyuan"}),ft.course_members_count)),ft.tasks_count>0&&I.a.createElement(P.a,{title:"\u4F5C\u4E1A",placement:"bottom"},I.a.createElement("span",null,I.a.createElement("i",{className:"iconfont icon-zuoye"}),ft.tasks_count)),ft.is_end?I.a.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):I.a.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),I.a.createElement("div",{className:Ie.a.lockWrap},ft.is_accessible?I.a.createElement(I.a.Fragment,null,Jt&&I.a.createElement("div",{onClick:function(){return Object(j.U)("/paths/".concat(Jt))}},"\u8FDB\u5165\u5B9E\u8DF5\u8BFE\u7A0B"),I.a.createElement("div",{onClick:function(rn){pt&&Object(j.eb)([pt]),Object(j.U)(ft.first_category_url)}},"\u8FDB\u5165\u6559\u5B66\u8BFE\u5802")):I.a.createElement(I.a.Fragment,null,I.a.createElement("img",{src:"".concat(D.a.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),I.a.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165"))))}),!Be.length&&I.a.createElement(le.a,null)))},nt=st,$e=k("f0W+"),Xe=k.n($e),ut=function(Ee){var at=Ee.dataSource,Ye=at===void 0?[]:at,Be=Ee.value,it=Ee.onChange,ct=Ee.className,ot=Ee.style,vt=ot===void 0?{}:ot,tt=Ee.tabBarExtraContent;return I.a.createElement("div",{className:c()(Xe.a.tabs,ct),style:vt},I.a.createElement("div",{className:Xe.a.tabsWrap},Ye.map(function(lt,gt){return I.a.createElement("div",{onClick:function(){return it(lt.id)},className:Be===lt.id?Xe.a.active:"",key:gt},lt.name)})),I.a.createElement("div",{className:Xe.a.tabBar},tt))},dt=ut,ce=k("9JIy"),ve=k.n(ce),xe=function(Ee){var at=Ee.className,Ye=Ee.style,Be=Ye===void 0?{}:Ye,it=Ee.children;return I.a.createElement("div",{className:c()(ve.a.table,at),style:Be},it)},Se=xe,pe=k("qVdP"),Oe=k("jsC+"),ie=k("lUTK"),Q=k("BvKs"),X=k("8WcF"),B=k.n(X),W=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}],G=function(Ee){var at,Ye=Ee.sortValue,Be=Ee.dropValue,it=Ee.className,ct=Ee.onSort,ot=Ee.onDrop,vt=Ee.dataSource,tt=vt===void 0?W:vt;return I.a.createElement("div",{className:c()(B.a.orderWrap,it)},I.a.createElement(Oe.a,{overlay:I.a.createElement(Q.a,null,tt.map(function(lt,gt){return I.a.createElement(Q.a.Item,{key:gt,onClick:function(){return ot(lt.id)}},lt.name)}))},I.a.createElement("span",{className:B.a.orderTextWrap},(at=tt.find(function(lt){return Be===lt.id}))===null||at===void 0?void 0:at.name)),I.a.createElement("span",{className:B.a.orderIconWrap},I.a.createElement("span",{className:B.a.orderAsc},I.a.createElement("i",{className:Ye==="asc"?"iconfont icon-sanjiaoxing-up font12 ".concat(B.a.cursorPointer," ").concat(B.a.active):"iconfont icon-sanjiaoxing-up font12 ".concat(B.a.cursorPointer),onClick:function(){return ct(Ye==="asc"?"desc":"asc")}})),I.a.createElement("span",{className:B.a.orderDesc},I.a.createElement("i",{className:Ye==="desc"?"iconfont icon-sanjiaoxing-down font12 ".concat(B.a.cursorPointer," ").concat(B.a.active):"iconfont icon-sanjiaoxing-down font12 ".concat(B.a.cursorPointer),onClick:function(){return ct(Ye==="asc"?"desc":"asc")}}))))},J=G,ue=k("siWv"),ye=k.n(ue),De=function(Ee){var at=Ee.className,Ye=Ee.style,Be=Ee.children,it=Ee.onClick;return I.a.createElement("div",{onClick:it,className:c()(ye.a.btn,at),style:Ye},Be)},Qe=De},NvD2:function(Ne,Te,k){"use strict";k.d(Te,"a",function(){return x});var q=k("Kwbf");function I(N,L){var C=new Set;return N.forEach(function(O){L.has(O)||C.add(O)}),C}function R(N){var L=N||{},C=L.disabled,O=L.disableCheckbox,v=L.checkable;return!!(C||O)||v===!1}function M(N,L,C,O){for(var v=new Set(N),g=new Set,c=0;c<=C;c+=1){var s=L.get(c)||new Set;s.forEach(function(e){var t=e.key,r=e.node,y=e.children,_=y===void 0?[]:y;v.has(t)&&!O(r)&&_.filter(function(p){return!O(p.node)}).forEach(function(p){v.add(p.key)})})}for(var n=new Set,i=C;i>=0;i-=1){var o=L.get(i)||new Set;o.forEach(function(e){var t=e.parent,r=e.node;if(O(r)||!e.parent||n.has(e.parent.key))return;if(O(e.parent.node)){n.add(t.key);return}var y=!0,_=!1;(t.children||[]).filter(function(p){return!O(p.node)}).forEach(function(p){var E=p.key,m=v.has(E);y&&!m&&(y=!1),!_&&(m||g.has(E))&&(_=!0)}),y&&v.add(t.key),_&&g.add(t.key),n.add(t.key)})}return{checkedKeys:Array.from(v),halfCheckedKeys:Array.from(I(g,v))}}function T(N,L,C,O,v){for(var g=new Set(N),c=new Set(L),s=0;s<=O;s+=1){var n=C.get(s)||new Set;n.forEach(function(t){var r=t.key,y=t.node,_=t.children,p=_===void 0?[]:_;!g.has(r)&&!c.has(r)&&!v(y)&&p.filter(function(E){return!v(E.node)}).forEach(function(E){g.delete(E.key)})})}c=new Set;for(var i=new Set,o=O;o>=0;o-=1){var e=C.get(o)||new Set;e.forEach(function(t){var r=t.parent,y=t.node;if(v(y)||!t.parent||i.has(t.parent.key))return;if(v(t.parent.node)){i.add(r.key);return}var _=!0,p=!1;(r.children||[]).filter(function(E){return!v(E.node)}).forEach(function(E){var m=E.key,f=g.has(m);_&&!f&&(_=!1),!p&&(f||c.has(m))&&(p=!0)}),_||g.delete(r.key),p&&c.add(r.key),i.add(r.key)})}return{checkedKeys:Array.from(g),halfCheckedKeys:Array.from(I(c,g))}}function x(N,L,C,O){var v=[],g;O?g=O:g=R;var c=new Set(N.filter(function(o){var e=!!C[o];return e||v.push(o),e})),s=new Map,n=0;Object.keys(C).forEach(function(o){var e=C[o],t=e.level,r=s.get(t);r||(r=new Set,s.set(t,r)),r.add(e),n=Math.max(n,t)}),Object(q.a)(!v.length,"Tree missing follow keys: ".concat(v.slice(0,100).map(function(o){return"'".concat(o,"'")}).join(", ")));var i;return L===!0?i=M(c,s,n,g):i=T(c,L.halfCheckedKeys,s,n,g),i}},OZM5:function(Ne,Te,k){"use strict";k.d(Te,"b",function(){return O}),k.d(Te,"a",function(){return v}),k.d(Te,"k",function(){return g}),k.d(Te,"h",function(){return c}),k.d(Te,"i",function(){return s}),k.d(Te,"g",function(){return n}),k.d(Te,"c",function(){return i}),k.d(Te,"d",function(){return o}),k.d(Te,"j",function(){return r}),k.d(Te,"e",function(){return y}),k.d(Te,"f",function(){return _});var q=k("KQm4"),I=k("U8pU"),R=k("Ff2n"),M=k("cDcd"),T=k.n(M),x=k("Kwbf"),N=k("WaYH"),L=.25,C=2;function O(p,E){var m=p.slice(),f=m.indexOf(E);return f>=0&&m.splice(f,1),m}function v(p,E){var m=p.slice();return m.indexOf(E)===-1&&m.push(E),m}function g(p){return p.split("-")}function c(p,E){return"".concat(p,"-").concat(E)}function s(p){return p&&p.type&&p.type.isTreeNode}function n(p,E){var m=[p],f=E[p];function u(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];a.forEach(function(l){var h=l.key,d=l.children;m.push(h),u(d)})}return u(f.children),m}function i(p,E){var m=p.clientY,f=E.selectHandle.getBoundingClientRect(),u=f.top,a=f.bottom,l=f.height,h=Math.max(l*L,C);return m<=u+h?-1:m>=a-h?1:0}function o(p,E){if(!p)return;var m=E.multiple;return m?p.slice():p.length?[p[0]]:p}var e=function(E){return E};function t(p,E){if(!p)return[];var m=E||{},f=m.processProps,u=f===void 0?e:f,a=Array.isArray(p)?p:[p];return a.map(function(l){var h=l.children,d=Object(R.a)(l,["children"]),b=t(h,E);return T.a.createElement(N.a,Object.assign({},u(d)),b)})}function r(p){if(!p)return null;var E;if(Array.isArray(p))E={checkedKeys:p,halfCheckedKeys:void 0};else if(Object(I.a)(p)==="object")E={checkedKeys:p.checked||void 0,halfCheckedKeys:p.halfChecked||void 0};else return Object(x.a)(!1,"`checkedKeys` is not an array or an object"),null;return E}function y(p,E){var m=new Set;function f(u){if(m.has(u))return;var a=E[u];if(!a)return;m.add(u);var l=a.parent,h=a.node;if(h.disabled)return;l&&f(l.key)}return(p||[]).forEach(function(u){f(u)}),Object(q.a)(m)}function _(p){var E={};return Object.keys(p).forEach(function(m){(m.startsWith("data-")||m.startsWith("aria-"))&&(E[m]=p[m])}),E}},Oe0F:function(Ne,Te,k){Ne.exports={flex_box_center:"flex_box_center___1lU21",flex_space_between:"flex_space_between___3CfJd",flex_box_vertical_center:"flex_box_vertical_center___20q2h",flex_box_center_end:"flex_box_center_end___1jeZT",flex_box_column:"flex_box_column___2EyZF",list:"list___3Kz8E",wrap:"wrap___12_X7",lockWrap:"lockWrap___9zL4z",li:"li___2bcH1",cover:"cover___1j6mq",img:"img___3itdG",sign:"sign___1Bm21",name:"name___3H1zU",e:"e___1W7k4",tags:"tags___G1tID",rate:"rate___aZiJa"}},"SA+Z":function(Ne,Te,k){var q=k("wTVA"),I=k("EbDI"),R=k("ZhPi"),M=k("wkBT");function T(x){return q(x)||I(x)||R(x)||M()}Ne.exports=T,Ne.exports.__esModule=!0,Ne.exports.default=Ne.exports},SJMd:function(Ne,Te){/**
|
|
* @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 k,q,I,R=!1,M,T;window.PR_SHOULD_USE_CONTINUATION=!0;var x,N;(function(){var L=window,C=["break,continue,do,else,for,if,return,while"],O=[C,"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"],v=[O,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],g=[v,"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"],c=[v,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],s=[v,"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"],n="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",i=[v,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],o="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",e=[C,"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=[C,"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"],r=[C,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],y=[g,s,c,i,o,e,t,r],_=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,p="str",E="kwd",m="com",f="typ",u="lit",a="pun",l="pln",h="tag",d="dec",b="src",w="atn",A="atv",P="nocode",S="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function U(Pe){for(var Me=0,je=!1,Ve=!1,Ke=0,Ie=Pe.length;Ke<Ie;++Ke){var Le=Pe[Ke];if(Le.ignoreCase)Ve=!0;else if(/[a-z]/i.test(Le.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){je=!0,Ve=!1;break}}var st={b:8,t:9,n:10,v:11,f:12,r:13};function nt(ce){var ve=ce.charCodeAt(0);if(ve!==92)return ve;var xe=ce.charAt(1);return ve=st[xe],ve||("0"<=xe&&xe<="7"?parseInt(ce.substring(1),8):xe==="u"||xe==="x"?parseInt(ce.substring(2),16):ce.charCodeAt(1))}function $e(ce){if(ce<32)return(ce<16?"\\x0":"\\x")+ce.toString(16);var ve=String.fromCharCode(ce);return ve==="\\"||ve==="-"||ve==="]"||ve==="^"?"\\"+ve:ve}function Xe(ce){var ve=ce.substring(1,ce.length-1).match(new RegExp("\\\\u[0-9A-Fa-f]{4}|\\\\x[0-9A-Fa-f]{2}|\\\\[0-3][0-7]{0,2}|\\\\[0-7]{1,2}|\\\\[\\s\\S]|-|[^-\\\\]","g")),xe=[],Se=ve[0]==="^",pe=["["];Se&&pe.push("^");for(var Oe=Se?1:0,ie=ve.length;Oe<ie;++Oe){var Q=ve[Oe];if(/\\[bdsw]/i.test(Q))pe.push(Q);else{var X=nt(Q),B;Oe+2<ie&&ve[Oe+1]==="-"?(B=nt(ve[Oe+2]),Oe+=2):B=X,xe.push([X,B]),B<65||X>122||(B<65||X>90||xe.push([Math.max(65,X)|32,Math.min(B,90)|32]),B<97||X>122||xe.push([Math.max(97,X)&~32,Math.min(B,122)&~32]))}}xe.sort(function(ue,ye){return ue[0]-ye[0]||ye[1]-ue[1]});for(var W=[],G=[],Oe=0;Oe<xe.length;++Oe){var J=xe[Oe];J[0]<=G[1]+1?G[1]=Math.max(G[1],J[1]):W.push(G=J)}for(var Oe=0;Oe<W.length;++Oe){var J=W[Oe];pe.push($e(J[0])),J[1]>J[0]&&(J[1]+1>J[0]&&pe.push("-"),pe.push($e(J[1])))}return pe.push("]"),pe.join("")}function ut(ce){for(var ve=ce.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=ve.length,Se=[],pe=0,Oe=0;pe<xe;++pe){var ie=ve[pe];if(ie==="(")++Oe;else if(ie.charAt(0)==="\\"){var Q=+ie.substring(1);Q&&(Q<=Oe?Se[Q]=-1:ve[pe]=$e(Q))}}for(var pe=1;pe<Se.length;++pe)Se[pe]===-1&&(Se[pe]=++Me);for(var pe=0,Oe=0;pe<xe;++pe){var ie=ve[pe];if(ie==="(")++Oe,Se[Oe]||(ve[pe]="(?:");else if(ie.charAt(0)==="\\"){var Q=+ie.substring(1);Q&&Q<=Oe&&(ve[pe]="\\"+Se[Q])}}for(var pe=0;pe<xe;++pe)ve[pe]==="^"&&ve[pe+1]!=="^"&&(ve[pe]="");if(ce.ignoreCase&&je)for(var pe=0;pe<xe;++pe){var ie=ve[pe],X=ie.charAt(0);ie.length>=2&&X==="["?ve[pe]=Xe(ie):X!=="\\"&&(ve[pe]=ie.replace(/[a-zA-Z]/g,function(G){var J=G.charCodeAt(0);return"["+String.fromCharCode(J&~32,J|32)+"]"}))}return ve.join("")}for(var dt=[],Ke=0,Ie=Pe.length;Ke<Ie;++Ke){var Le=Pe[Ke];if(Le.global||Le.multiline)throw new Error(""+Le);dt.push("(?:"+ut(Le)+")")}return new RegExp(dt.join("|"),Ve?"gi":"g")}function D(Pe,Me){var je=/(?:^|\s)nocode(?:\s|$)/,Ve=[],Ke=0,Ie=[],Le=0;function st(nt){var $e=nt.nodeType;if($e==1){if(je.test(nt.className))return;for(var Xe=nt.firstChild;Xe;Xe=Xe.nextSibling)st(Xe);var ut=nt.nodeName.toLowerCase();(ut==="br"||ut==="li")&&(Ve[Le]=`
|
|
`,Ie[Le<<1]=Ke++,Ie[Le++<<1|1]=nt)}else if($e==3||$e==4){var dt=nt.nodeValue;dt.length&&(Me?dt=dt.replace(/\r\n?/g,`
|
|
`):dt=dt.replace(/[ \t\r\n]+/g," "),Ve[Le]=dt,Ie[Le<<1]=Ke,Ke+=dt.length,Ie[Le++<<1|1]=nt)}}return st(Pe),{sourceCode:Ve.join("").replace(/\n$/,""),spans:Ie}}function j(Pe,Me,je,Ve,Ke){if(!je)return;var Ie={sourceNode:Pe,pre:1,langExtension:null,numberLines:null,sourceCode:je,spans:null,basePos:Me,decorations:null};Ve(Ie),Ke.push.apply(Ke,Ie.decorations)}var K=/\S/;function Z(Pe){for(var Me=void 0,je=Pe.firstChild;je;je=je.nextSibling){var Ve=je.nodeType;Me=Ve===1?Me?Pe:je:Ve===3&&K.test(je.nodeValue)?Pe:Me}return Me===Pe?void 0:Me}function ne(Pe,Me){var je={},Ve;(function(){for(var Le=Pe.concat(Me),st=[],nt={},$e=0,Xe=Le.length;$e<Xe;++$e){var ut=Le[$e],dt=ut[3];if(dt)for(var ce=dt.length;--ce>=0;)je[dt.charAt(ce)]=ut;var ve=ut[1],xe=""+ve;nt.hasOwnProperty(xe)||(st.push(ve),nt[xe]=null)}st.push(/[\0-\uffff]/),Ve=U(st)})();var Ke=Me.length,Ie=function(Le){for(var st=Le.sourceCode,nt=Le.basePos,$e=Le.sourceNode,Xe=[nt,l],ut=0,dt=st.match(Ve)||[],ce={},ve=0,xe=dt.length;ve<xe;++ve){var Se=dt[ve],pe=ce[Se],Oe=void 0,ie;if(typeof pe=="string")ie=!1;else{var Q=je[Se.charAt(0)];if(Q)Oe=Se.match(Q[1]),pe=Q[0];else{for(var X=0;X<Ke;++X)if(Q=Me[X],Oe=Se.match(Q[1]),Oe){pe=Q[0];break}Oe||(pe=l)}ie=pe.length>=5&&pe.substring(0,5)==="lang-",ie&&!(Oe&&typeof Oe[1]=="string")&&(ie=!1,pe=b),ie||(ce[Se]=pe)}var B=ut;if(ut+=Se.length,!ie)Xe.push(nt+B,pe);else{var W=Oe[1],G=Se.indexOf(W),J=G+W.length;Oe[2]&&(J=Se.length-Oe[2].length,G=J-W.length);var ue=pe.substring(5);j($e,nt+B,Se.substring(0,G),Ie,Xe),j($e,nt+B+G,W,te(ue,W),Xe),j($e,nt+B+J,Se.substring(J),Ie,Xe)}}Le.decorations=Xe};return Ie}function me(Pe){var Me=[],je=[];Pe.tripleQuotedStrings?Me.push([p,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):Pe.multiLineStrings?Me.push([p,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):Me.push([p,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),Pe.verbatimStrings&&je.push([p,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var Ve=Pe.hashComments;Ve&&(Pe.cStyleComments?(Ve>1?Me.push([m,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):Me.push([m,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),je.push([p,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):Me.push([m,/^#[^\r\n]*/,null,"#"])),Pe.cStyleComments&&(je.push([m,/^\/\/[^\r\n]*/,null]),je.push([m,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var Ke=Pe.regexLiterals;if(Ke){var Ie=Ke>1?"":`
|
|
\r`,Le=Ie?".":"[\\S\\s]",st="/(?=[^/*"+Ie+"])(?:[^/\\x5B\\x5C"+Ie+"]|\\x5C"+Le+"|\\x5B(?:[^\\x5C\\x5D"+Ie+"]|\\x5C"+Le+")*(?:\\x5D|$))+/";je.push(["lang-regex",RegExp("^"+S+"("+st+")")])}var nt=Pe.types;nt&&je.push([f,nt]);var $e=(""+Pe.keywords).replace(/^ | $/g,"");$e.length&&je.push([E,new RegExp("^(?:"+$e.replace(/[\s,]+/g,"|")+")\\b"),null]),Me.push([l,/^\s+/,null,` \r
|
|
\xA0`]);var Xe="^.[^\\s\\w.$@'\"`/\\\\]*";return Pe.regexLiterals&&(Xe+="(?!s*/)"),je.push([u,/^@[a-z_$][a-z_$@0-9]*/i,null],[f,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[l,/^[a-z_$][a-z_$@0-9]*/i,null],[u,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[l,/^\\[\s\S]?/,null],[a,new RegExp(Xe),null]),ne(Me,je)}var he=me({keywords:y,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function Y(Pe,Me,je){for(var Ve=/(?:^|\s)nocode(?:\s|$)/,Ke=/\r\n?|\n/,Ie=Pe.ownerDocument,Le=Ie.createElement("li");Pe.firstChild;)Le.appendChild(Pe.firstChild);var st=[Le];function nt(ve){var xe=ve.nodeType;if(xe==1&&!Ve.test(ve.className))if(ve.nodeName==="br")$e(ve),ve.parentNode&&ve.parentNode.removeChild(ve);else for(var Se=ve.firstChild;Se;Se=Se.nextSibling)nt(Se);else if((xe==3||xe==4)&&je){var pe=ve.nodeValue,Oe=pe.match(Ke);if(Oe){var ie=pe.substring(0,Oe.index);ve.nodeValue=ie;var Q=pe.substring(Oe.index+Oe[0].length);if(Q){var X=ve.parentNode;X.insertBefore(Ie.createTextNode(Q),ve.nextSibling)}$e(ve),ie||ve.parentNode.removeChild(ve)}}}function $e(ve){for(;!ve.nextSibling;)if(ve=ve.parentNode,!ve)return;function xe(Oe,ie){var Q=ie?Oe.cloneNode(!1):Oe,X=Oe.parentNode;if(X){var B=xe(X,1),W=Oe.nextSibling;B.appendChild(Q);for(var G=W;G;G=W)W=G.nextSibling,B.appendChild(G)}return Q}for(var Se=xe(ve.nextSibling,0),pe;(pe=Se.parentNode)&&pe.nodeType===1;)Se=pe;st.push(Se)}for(var Xe=0;Xe<st.length;++Xe)nt(st[Xe]);Me===(Me|0)&&st[0].setAttribute("value",Me);var ut=Ie.createElement("ol");ut.className="linenums";for(var dt=Math.max(0,Me-1|0)||0,Xe=0,ce=st.length;Xe<ce;++Xe)Le=st[Xe],Le.className="L"+(Xe+dt)%10,Le.firstChild||Le.appendChild(Ie.createTextNode("\xA0")),ut.appendChild(Le);Pe.appendChild(ut)}function le(Pe){var Me=/\bMSIE\s(\d+)/.exec(navigator.userAgent);Me=Me&&+Me[1]<=8;var je=/\n/g,Ve=Pe.sourceCode,Ke=Ve.length,Ie=0,Le=Pe.spans,st=Le.length,nt=0,$e=Pe.decorations,Xe=$e.length,ut=0;$e[Xe]=Ke;var dt,ce;for(ce=dt=0;ce<Xe;)$e[ce]!==$e[ce+2]?($e[dt++]=$e[ce++],$e[dt++]=$e[ce++]):ce+=2;for(Xe=dt,ce=dt=0;ce<Xe;){for(var ve=$e[ce],xe=$e[ce+1],Se=ce+2;Se+2<=Xe&&$e[Se+1]===xe;)Se+=2;$e[dt++]=ve,$e[dt++]=xe,ce=Se}Xe=$e.length=dt;var pe=Pe.sourceNode,Oe="";pe&&(Oe=pe.style.display,pe.style.display="none");try{for(var ie=null;nt<st;){var Q=Le[nt],X=Le[nt+2]||Ke,B=$e[ut+2]||Ke,Se=Math.min(X,B),W=Le[nt+1],G;if(W.nodeType!==1&&(G=Ve.substring(Ie,Se))){Me&&(G=G.replace(je,"\r")),W.nodeValue=G;var J=W.ownerDocument,ue=J.createElement("span");ue.className=$e[ut+1];var ye=W.parentNode;ye.replaceChild(ue,W),ue.appendChild(W),Ie<X&&(Le[nt+1]=W=J.createTextNode(Ve.substring(Se,X)),ye.insertBefore(W,ue.nextSibling))}Ie=Se,Ie>=X&&(nt+=2),Ie>=B&&(ut+=2)}}finally{pe&&(pe.style.display=Oe)}}var ge={};function re(Pe,Me){for(var je=Me.length;--je>=0;){var Ve=Me[je];ge.hasOwnProperty(Ve)?L.console&&console.warn("cannot override language handler %s",Ve):ge[Ve]=Pe}}function te(Pe,Me){return Pe&&ge.hasOwnProperty(Pe)||(Pe=/^\s*</.test(Me)?"default-markup":"default-code"),ge[Pe]}re(he,["default-code"]),re(ne([],[[l,/^[^<?]+/],[d,/^<!\w[^>]*(?:>|$)/],[m,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[a,/^(?:<[%?]|[%?]>)/],["lang-",/^<xmp\b[^>]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^<script\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),re(ne([[l,/^[\s]+/,null,` \r
|
|
`],[A,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[h,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[w,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[a,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),re(ne([],[[A,/^[\s\S]+/]]),["uq.val"]),re(me({keywords:g,hashComments:!0,cStyleComments:!0,types:_}),["c","cc","cpp","cxx","cyc","m"]),re(me({keywords:"null,true,false"}),["json"]),re(me({keywords:s,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:_}),["cs"]),re(me({keywords:c,cStyleComments:!0}),["java"]),re(me({keywords:r,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),re(me({keywords:e,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),re(me({keywords:o,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),re(me({keywords:t,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),re(me({keywords:i,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),re(me({keywords:n,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),re(ne([],[[p,/^[\s\S]+/]]),["regex"]);function be(Pe){var Me=Pe.langExtension;try{var je=D(Pe.sourceNode,Pe.pre),Ve=je.sourceCode;Pe.sourceCode=Ve,Pe.spans=je.spans,Pe.basePos=0,te(Me,Ve)(Pe),le(Pe)}catch(Ke){L.console&&console.log(Ke&&Ke.stack||Ke)}}function ze(Pe,Me,je){var Ve=je||!1,Ke=Me||null,Ie=document.createElement("div");Ie.innerHTML="<pre>"+Pe+"</pre>",Ie=Ie.firstChild,Ve&&Y(Ie,Ve,!0);var Le={langExtension:Ke,numberLines:Ve,sourceNode:Ie,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return be(Le),Ie.innerHTML}function Ge(Pe,Me){var je=Me||document.body,Ve=je.ownerDocument||document;function Ke(Q){return je.getElementsByTagName(Q)}for(var Ie=[Ke("pre"),Ke("code"),Ke("xmp")],Le=[],st=0;st<Ie.length;++st)for(var nt=0,$e=Ie[st].length;nt<$e;++nt)Le.push(Ie[st][nt]);Ie=null;var Xe=Date;Xe.now||(Xe={now:function(){return+new Date}});var ut=0,dt=/\blang(?:uage)?-([\w.]+)(?!\S)/,ce=/\bprettyprint\b/,ve=/\bprettyprinted\b/,xe=/pre|xmp/i,Se=/^code$/i,pe=/^(?:pre|code|xmp)$/i,Oe={};function ie(){for(var Q=L.PR_SHOULD_USE_CONTINUATION?Xe.now()+250:Infinity;ut<Le.length&&Xe.now()<Q;ut++){for(var X=Le[ut],B=Oe,W=X;W=W.previousSibling;){var G=W.nodeType,J=(G===7||G===8)&&W.nodeValue;if(J?!/^\??prettify\b/.test(J):G!==3||/\S/.test(W.nodeValue))break;if(J){B={},J.replace(/\b(\w+)=([\w:.%+-]+)/g,function(vt,tt,lt){B[tt]=lt});break}}var ue=X.className;if((B!==Oe||ce.test(ue))&&!ve.test(ue)){for(var ye=!1,De=X.parentNode;De;De=De.parentNode){var Qe=De.tagName;if(pe.test(Qe)&&De.className&&ce.test(De.className)){ye=!0;break}}if(!ye){X.className+=" prettyprinted";var Je=B.lang;if(!Je){Je=ue.match(dt);var Ee;!Je&&(Ee=Z(X))&&Se.test(Ee.tagName)&&(Je=Ee.className.match(dt)),Je&&(Je=Je[1])}var at;if(xe.test(X.tagName))at=1;else{var Ye=X.currentStyle,Be=Ve.defaultView,it=Ye?Ye.whiteSpace:Be&&Be.getComputedStyle?Be.getComputedStyle(X,null).getPropertyValue("white-space"):0;at=it&&it.substring(0,3)==="pre"}var ct=B.linenums;(ct=ct==="true"||+ct)||(ct=ue.match(/\blinenums\b(?::(\d+))?/),ct=ct?ct[1]&&ct[1].length?+ct[1]:!0:!1),ct&&Y(X,ct,at);var ot={langExtension:Je,sourceNode:X,numberLines:ct,pre:at,sourceCode:null,basePos:null,spans:null,decorations:null};be(ot)}}}ut<Le.length?L.setTimeout(ie,250):typeof Pe=="function"&&Pe()}ie()}var Ue=L.PR={createSimpleLexer:ne,registerLangHandler:re,sourceDecorator:me,PR_ATTRIB_NAME:w,PR_ATTRIB_VALUE:A,PR_COMMENT:m,PR_DECLARATION:d,PR_KEYWORD:E,PR_LITERAL:u,PR_NOCODE:P,PR_PLAIN:l,PR_PUNCTUATION:a,PR_SOURCE:b,PR_STRING:p,PR_TAG:h,PR_TYPE:f,prettyPrintOne:R?L.prettyPrintOne=ze:x=ze,prettyPrint:N=R?L.prettyPrint=Ge:N=Ge},Ze=L.define;typeof Ze=="function"&&Ze.amd&&Ze("google-code-prettify",[],function(){return Ue})})()},TXwP:function(Ne,Te,k){var q,I;(function(){var R;(function(){"use strict";var T=[,,function(C){function O(c){this.__parent=c,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}O.prototype.clone_empty=function(){var c=new O(this.__parent);return c.set_indent(this.__indent_count,this.__alignment_count),c},O.prototype.item=function(c){return c<0?this.__items[this.__items.length+c]:this.__items[c]},O.prototype.has_match=function(c){for(var s=this.__items.length-1;s>=0;s--)if(this.__items[s].match(c))return!0;return!1},O.prototype.set_indent=function(c,s){this.is_empty()&&(this.__indent_count=c||0,this.__alignment_count=s||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},O.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},O.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},O.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var c=this.__parent.current_line;return c.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),c.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),c.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,c.__items[0]===" "&&(c.__items.splice(0,1),c.__character_count-=1),!0}return!1},O.prototype.is_empty=function(){return this.__items.length===0},O.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},O.prototype.push=function(c){this.__items.push(c);var s=c.lastIndexOf(`
|
|
`);s!==-1?this.__character_count=c.length-s:this.__character_count+=c.length},O.prototype.pop=function(){var c=null;return this.is_empty()||(c=this.__items.pop(),this.__character_count-=c.length),c},O.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},O.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},O.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},O.prototype.toString=function(){var c="";return this.is_empty()?this.__parent.indent_empty_lines&&(c=this.__parent.get_indent_string(this.__indent_count)):(c=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),c+=this.__items.join("")),c};function v(c,s){this.__cache=[""],this.__indent_size=c.indent_size,this.__indent_string=c.indent_char,c.indent_with_tabs||(this.__indent_string=new Array(c.indent_size+1).join(c.indent_char)),s=s||"",c.indent_level>0&&(s=new Array(c.indent_level+1).join(this.__indent_string)),this.__base_string=s,this.__base_string_length=s.length}v.prototype.get_indent_size=function(c,s){var n=this.__base_string_length;return s=s||0,c<0&&(n=0),n+=c*this.__indent_size,n+=s,n},v.prototype.get_indent_string=function(c,s){var n=this.__base_string;return s=s||0,c<0&&(c=0,n=""),s+=c*this.__indent_size,this.__ensure_cache(s),n+=this.__cache[s],n},v.prototype.__ensure_cache=function(c){for(;c>=this.__cache.length;)this.__add_column()},v.prototype.__add_column=function(){var c=this.__cache.length,s=0,n="";this.__indent_size&&c>=this.__indent_size&&(s=Math.floor(c/this.__indent_size),c-=s*this.__indent_size,n=new Array(s+1).join(this.__indent_string)),c&&(n+=new Array(c+1).join(" ")),this.__cache.push(n)};function g(c,s){this.__indent_cache=new v(c,s),this.raw=!1,this._end_with_newline=c.end_with_newline,this.indent_size=c.indent_size,this.wrap_line_length=c.wrap_line_length,this.indent_empty_lines=c.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new O(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}g.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},g.prototype.get_line_number=function(){return this.__lines.length},g.prototype.get_indent_string=function(c,s){return this.__indent_cache.get_indent_string(c,s)},g.prototype.get_indent_size=function(c,s){return this.__indent_cache.get_indent_size(c,s)},g.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},g.prototype.add_new_line=function(c){return this.is_empty()||!c&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},g.prototype.get_code=function(c){this.trim(!0);var s=this.current_line.pop();s&&(s[s.length-1]===`
|
|
`&&(s=s.replace(/\n+$/g,"")),this.current_line.push(s)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join(`
|
|
`);return c!==`
|
|
`&&(n=n.replace(/[\n]/g,c)),n},g.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},g.prototype.set_indent=function(c,s){return c=c||0,s=s||0,this.next_line.set_indent(c,s),this.__lines.length>1?(this.current_line.set_indent(c,s),!0):(this.current_line.set_indent(),!1)},g.prototype.add_raw_token=function(c){for(var s=0;s<c.newlines;s++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(c.whitespace_before),this.current_line.push(c.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},g.prototype.add_token=function(c){this.__add_space_before_token(),this.current_line.push(c),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},g.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},g.prototype.remove_indent=function(c){for(var s=this.__lines.length;c<s;)this.__lines[c]._remove_indent(),c++;this.current_line._remove_wrap_indent()},g.prototype.trim=function(c){for(c=c===void 0?!1:c,this.current_line.trim();c&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},g.prototype.just_added_newline=function(){return this.current_line.is_empty()},g.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},g.prototype.ensure_empty_line_above=function(c,s){for(var n=this.__lines.length-2;n>=0;){var i=this.__lines[n];if(i.is_empty())break;if(i.item(0).indexOf(c)!==0&&i.item(-1)!==s){this.__lines.splice(n+1,0,new O(this)),this.previous_line=this.__lines[this.__lines.length-2];break}n--}},C.exports.Output=g},,,,function(C){function O(c,s){this.raw_options=v(c,s),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php","smarty"],["auto"])}O.prototype._get_array=function(c,s){var n=this.raw_options[c],i=s||[];return typeof n=="object"?n!==null&&typeof n.concat=="function"&&(i=n.concat()):typeof n=="string"&&(i=n.split(/[^a-zA-Z0-9_\/\-]+/)),i},O.prototype._get_boolean=function(c,s){var n=this.raw_options[c],i=n===void 0?!!s:!!n;return i},O.prototype._get_characters=function(c,s){var n=this.raw_options[c],i=s||"";return typeof n=="string"&&(i=n.replace(/\\r/,"\r").replace(/\\n/,`
|
|
`).replace(/\\t/," ")),i},O.prototype._get_number=function(c,s){var n=this.raw_options[c];s=parseInt(s,10),isNaN(s)&&(s=0);var i=parseInt(n,10);return isNaN(i)&&(i=s),i},O.prototype._get_selection=function(c,s,n){var i=this._get_selection_list(c,s,n);if(i.length!==1)throw new Error("Invalid Option Value: The option '"+c+`' can only be one of the following values:
|
|
`+s+`
|
|
You passed in: '`+this.raw_options[c]+"'");return i[0]},O.prototype._get_selection_list=function(c,s,n){if(!s||s.length===0)throw new Error("Selection list cannot be empty.");if(n=n||[s[0]],!this._is_valid_selection(n,s))throw new Error("Invalid Default Value!");var i=this._get_array(c,n);if(!this._is_valid_selection(i,s))throw new Error("Invalid Option Value: The option '"+c+`' can contain only the following values:
|
|
`+s+`
|
|
You passed in: '`+this.raw_options[c]+"'");return i},O.prototype._is_valid_selection=function(c,s){return c.length&&s.length&&!c.some(function(n){return s.indexOf(n)===-1})};function v(c,s){var n={};c=g(c);var i;for(i in c)i!==s&&(n[i]=c[i]);if(s&&c[s])for(i in c[s])n[i]=c[s][i];return n}function g(c){var s={},n;for(n in c){var i=n.replace(/-/g,"_");s[i]=c[n]}return s}C.exports.Options=O,C.exports.normalizeOpts=g,C.exports.mergeOpts=v},,function(C){var O=RegExp.prototype.hasOwnProperty("sticky");function v(g){this.__input=g||"",this.__input_length=this.__input.length,this.__position=0}v.prototype.restart=function(){this.__position=0},v.prototype.back=function(){this.__position>0&&(this.__position-=1)},v.prototype.hasNext=function(){return this.__position<this.__input_length},v.prototype.next=function(){var g=null;return this.hasNext()&&(g=this.__input.charAt(this.__position),this.__position+=1),g},v.prototype.peek=function(g){var c=null;return g=g||0,g+=this.__position,g>=0&&g<this.__input_length&&(c=this.__input.charAt(g)),c},v.prototype.__match=function(g,c){g.lastIndex=c;var s=g.exec(this.__input);return s&&!(O&&g.sticky)&&(s.index!==c&&(s=null)),s},v.prototype.test=function(g,c){return c=c||0,c+=this.__position,c>=0&&c<this.__input_length?!!this.__match(g,c):!1},v.prototype.testChar=function(g,c){var s=this.peek(c);return g.lastIndex=0,s!==null&&g.test(s)},v.prototype.match=function(g){var c=this.__match(g,this.__position);return c?this.__position+=c[0].length:c=null,c},v.prototype.read=function(g,c,s){var n="",i;return g&&(i=this.match(g),i&&(n+=i[0])),c&&(i||!g)&&(n+=this.readUntil(c,s)),n},v.prototype.readUntil=function(g,c){var s="",n=this.__position;g.lastIndex=this.__position;var i=g.exec(this.__input);return i?(n=i.index,c&&(n+=i[0].length)):n=this.__input_length,s=this.__input.substring(this.__position,n),this.__position=n,s},v.prototype.readUntilAfter=function(g){return this.readUntil(g,!0)},v.prototype.get_regexp=function(g,c){var s=null,n="g";return c&&O&&(n="y"),typeof g=="string"&&g!==""?s=new RegExp(g,n):g&&(s=new RegExp(g.source,n)),s},v.prototype.get_literal_regexp=function(g){return RegExp(g.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},v.prototype.peekUntilAfter=function(g){var c=this.__position,s=this.readUntilAfter(g);return this.__position=c,s},v.prototype.lookBack=function(g){var c=this.__position-1;return c>=g.length&&this.__input.substring(c-g.length,c).toLowerCase()===g},C.exports.InputScanner=v},,,,,function(C){function O(v,g){v=typeof v=="string"?v:v.source,g=typeof g=="string"?g:g.source,this.__directives_block_pattern=new RegExp(v+/ beautify( \w+[:]\w+)+ /.source+g,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(v+/\sbeautify\signore:end\s/.source+g,"g")}O.prototype.get_directives=function(v){if(!v.match(this.__directives_block_pattern))return null;var g={};this.__directive_pattern.lastIndex=0;for(var c=this.__directive_pattern.exec(v);c;)g[c[1]]=c[2],c=this.__directive_pattern.exec(v);return g},O.prototype.readIgnored=function(v){return v.readUntilAfter(this.__directives_end_ignore_pattern)},C.exports.Directives=O},,function(C,O,v){var g=v(16).Beautifier,c=v(17).Options;function s(n,i){var o=new g(n,i);return o.beautify()}C.exports=s,C.exports.defaultOptions=function(){return new c}},function(C,O,v){var g=v(17).Options,c=v(2).Output,s=v(8).InputScanner,n=v(13).Directives,i=new n(/\/\*/,/\*\//),o=/\r\n|[\r\n]/,e=/\r\n|[\r\n]/g,t=/\s/,r=/(?:\s|\n)+/g,y=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,_=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function p(E,m){this._source_text=E||"",this._options=new g(m),this._ch=null,this._input=null,this.NESTED_AT_RULE={"@page":!0,"@font-face":!0,"@keyframes":!0,"@media":!0,"@supports":!0,"@document":!0},this.CONDITIONAL_GROUP_RULE={"@media":!0,"@supports":!0,"@document":!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}p.prototype.eatString=function(E){var m="";for(this._ch=this._input.next();this._ch;){if(m+=this._ch,this._ch==="\\")m+=this._input.next();else if(E.indexOf(this._ch)!==-1||this._ch===`
|
|
`)break;this._ch=this._input.next()}return m},p.prototype.eatWhitespace=function(E){for(var m=t.test(this._input.peek()),f=0;t.test(this._input.peek());)this._ch=this._input.next(),E&&this._ch===`
|
|
`&&((f===0||f<this._options.max_preserve_newlines)&&(f++,this._output.add_new_line(!0)));return m},p.prototype.foundNestedPseudoClass=function(){for(var E=0,m=1,f=this._input.peek(m);f;){if(f==="{")return!0;if(f==="(")E+=1;else if(f===")"){if(E===0)return!1;E-=1}else if(f===";"||f==="}")return!1;m++,f=this._input.peek(m)}return!1},p.prototype.print_string=function(E){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(E)},p.prototype.preserveSingleSpace=function(E){E&&(this._output.space_before_token=!0)},p.prototype.indent=function(){this._indentLevel++},p.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},p.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var E=this._source_text,m=this._options.eol;m==="auto"&&(m=`
|
|
`,E&&o.test(E||"")&&(m=E.match(o)[0])),E=E.replace(e,`
|
|
`);var f=E.match(/^[\t ]*/)[0];this._output=new c(this._options,f),this._input=new s(E),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var u=0,a=!1,l=!1,h=!1,d=!1,b=!1,w=!1,A=this._ch,P=!1,S,U,D;S=this._input.read(r),U=S!=="",D=A,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),A=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var j=this._input.read(y),K=i.get_directives(j);K&&K.ignore==="start"&&(j+=i.readIgnored(this._input)),this.print_string(j),this.eatWhitespace(!0),this._output.add_new_line()}else if(this._ch==="/"&&this._input.peek()==="/")this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(_)),this.eatWhitespace(!0);else if(this._ch==="@"||this._ch==="$")if(this.preserveSingleSpace(U),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var Z=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);Z.match(/[ :]$/)&&(Z=this.eatString(": ").replace(/\s$/,""),this.print_string(Z),this._output.space_before_token=!0),Z=Z.replace(/\s$/,""),Z==="extend"?d=!0:Z==="import"&&(b=!0),Z in this.NESTED_AT_RULE?(this._nestedLevel+=1,Z in this.CONDITIONAL_GROUP_RULE&&(h=!0)):!a&&u===0&&Z.indexOf(":")!==-1&&(l=!0,this.indent())}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(U),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")l&&(l=!1,this.outdent()),h?(h=!1,a=this._indentLevel>=this._nestedLevel):a=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&a&&(this._output.previous_line&&this._output.previous_line.item(-1)!=="{"&&this._output.ensure_empty_line_above("/",",")),this._output.space_before_token=!0,this._options.brace_style==="expand"?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(D==="("?this._output.space_before_token=!1:D!==","&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if(this._ch==="}")this.outdent(),this._output.add_new_line(),D==="{"&&this._output.trim(!0),b=!1,d=!1,l&&(this.outdent(),l=!1),this.print_string(this._ch),a=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&(this._input.peek()!=="}"&&this._output.add_new_line(!0)),this._input.peek()===")"&&(this._output.trim(!0),this._options.brace_style==="expand"&&this._output.add_new_line(!0));else if(this._ch===":"){for(var ne=0;ne<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;ne++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[ne])){P=!0;break}(a||h)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!d&&u===0?(this.print_string(":"),l||(l=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):(this._input.lookBack(" ")&&(this._output.space_before_token=!0),this._input.peek()===":"?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":"))}else if(this._ch==='"'||this._ch==="'"){var me=D==='"'||D==="'";this.preserveSingleSpace(me||U),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")P=!1,u===0?(l&&(this.outdent(),l=!1),d=!1,b=!1,this.print_string(this._ch),this.eatWhitespace(!0),this._input.peek()!=="/"&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0);else if(this._ch==="(")if(this._input.lookBack("url"))this.print_string(this._ch),this.eatWhitespace(),u++,this.indent(),this._ch=this._input.next(),this._ch===")"||this._ch==='"'||this._ch==="'"?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),u&&(u--,this.outdent()));else{var he=!1;this._input.lookBack("with")&&(he=!0),this.preserveSingleSpace(U||he),this.print_string(this._ch),l&&D==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),w=!0):(this.eatWhitespace(),u++,this.indent())}else if(this._ch===")")u&&(u--,this.outdent()),w&&this._input.peek()===";"&&this._options.selector_separator_newline&&(w=!1,this.outdent(),this._output.add_new_line()),this.print_string(this._ch);else if(this._ch===",")this.print_string(this._ch),this.eatWhitespace(!0),this._options.selector_separator_newline&&(!l||w)&&u===0&&!b&&!d?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!l&&u===0)this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&t.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(U),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),t.test(this._ch)&&(this._ch="");else if(this._ch==="!"&&!this._input.lookBack("\\"))this._output.space_before_token=!0,this.print_string(this._ch);else{var Y=D==='"'||D==="'";this.preserveSingleSpace(Y||U),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
|
|
`&&P&&this._output.add_new_line()}var le=this._output.get_code(m);return le},C.exports.Beautifier=p},function(C,O,v){var g=v(6).Options;function c(s){g.call(this,s,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var n=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||n;var i=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var o=0;o<i.length;o++)i[o]!=="expand"?this.brace_style="collapse":this.brace_style=i[o]}c.prototype=new g,C.exports.Options=c}],x={};function N(C){var O=x[C];if(O!==void 0)return O.exports;var v=x[C]={exports:{}};return T[C](v,v.exports,N),v.exports}var L=N(15);R=L})();var M=R;!(q=[],I=function(){return{css_beautify:M}}.apply(Te,q),I!==void 0&&(Ne.exports=I))})()},WaYH:function(Ne,Te,k){"use strict";var q=k("rePB"),I=k("Ff2n"),R=k("VTBJ"),M=k("1OyB"),T=k("vuIU"),x=k("JX7q"),N=k("Ji7U"),L=k("LK+K"),C=k("cDcd"),O=k("TSYQ"),v=k.n(O),g=k("sboe"),c=k("OZM5"),s=function(E){var m=E.prefixCls,f=E.level,u=E.isStart,a=E.isEnd;if(!f)return null;for(var l="".concat(m,"-indent-unit"),h=[],d=0;d<f;d+=1){var b;h.push(C.createElement("span",{key:d,className:v()(l,(b={},Object(q.a)(b,"".concat(l,"-start"),u[d+1]),Object(q.a)(b,"".concat(l,"-end"),a[d+1]),Object(q.a)(b,"".concat(l,"-end-first-level"),!d&&a[0]),b))}))}return C.createElement("span",{"aria-hidden":"true",className:"".concat(m,"-indent")},h)},n=s,i=k("815F"),o="open",e="close",t="---",r=function(p){Object(N.a)(m,p);var E=Object(L.a)(m);function m(){var f;return Object(M.a)(this,m),f=E.apply(this,arguments),f.state={dragNodeHighlight:!1},f.onSelectorClick=function(u){var a=f.props.context.onNodeClick;a(u,Object(i.b)(f.props)),f.isSelectable()?f.onSelect(u):f.onCheck(u)},f.onSelectorDoubleClick=function(u){var a=f.props.context.onNodeDoubleClick;a(u,Object(i.b)(f.props))},f.onSelect=function(u){if(f.isDisabled())return;var a=f.props.context.onNodeSelect;u.preventDefault(),a(u,Object(i.b)(f.props))},f.onCheck=function(u){if(f.isDisabled())return;var a=f.props,l=a.disableCheckbox,h=a.checked,d=f.props.context.onNodeCheck;if(!f.isCheckable()||l)return;u.preventDefault();var b=!h;d(u,Object(i.b)(f.props),b)},f.onMouseEnter=function(u){var a=f.props.context.onNodeMouseEnter;a(u,Object(i.b)(f.props))},f.onMouseLeave=function(u){var a=f.props.context.onNodeMouseLeave;a(u,Object(i.b)(f.props))},f.onContextMenu=function(u){var a=f.props.context.onNodeContextMenu;a(u,Object(i.b)(f.props))},f.onDragStart=function(u){var a=f.props.context.onNodeDragStart;u.stopPropagation(),f.setState({dragNodeHighlight:!0}),a(u,Object(x.a)(f));try{u.dataTransfer.setData("text/plain","")}catch(l){}},f.onDragEnter=function(u){var a=f.props.context.onNodeDragEnter;u.preventDefault(),u.stopPropagation(),a(u,Object(x.a)(f))},f.onDragOver=function(u){var a=f.props.context.onNodeDragOver;u.preventDefault(),u.stopPropagation(),a(u,Object(x.a)(f))},f.onDragLeave=function(u){var a=f.props.context.onNodeDragLeave;u.stopPropagation(),a(u,Object(x.a)(f))},f.onDragEnd=function(u){var a=f.props.context.onNodeDragEnd;u.stopPropagation(),f.setState({dragNodeHighlight:!1}),a(u,Object(x.a)(f))},f.onDrop=function(u){var a=f.props.context.onNodeDrop;u.preventDefault(),u.stopPropagation(),f.setState({dragNodeHighlight:!1}),a(u,Object(x.a)(f))},f.onExpand=function(u){var a=f.props.context.onNodeExpand;a(u,Object(i.b)(f.props))},f.setSelectHandle=function(u){f.selectHandle=u},f.getNodeState=function(){var u=f.props.expanded;return f.isLeaf()?null:u?o:e},f.hasChildren=function(){var u=f.props.eventKey,a=f.props.context.keyEntities,l=a[u]||{},h=l.children;return!!(h||[]).length},f.isLeaf=function(){var u=f.props,a=u.isLeaf,l=u.loaded,h=f.props.context.loadData,d=f.hasChildren();return a===!1?!1:a||!h&&!d||h&&l&&!d},f.isDisabled=function(){var u=f.props.disabled,a=f.props.context.disabled;return!!(a||u)},f.isCheckable=function(){var u=f.props.checkable,a=f.props.context.checkable;return!a||u===!1?!1:a},f.syncLoadData=function(u){var a=u.expanded,l=u.loading,h=u.loaded,d=f.props.context,b=d.loadData,w=d.onNodeLoad;if(l)return;b&&a&&!f.isLeaf()&&(!f.hasChildren()&&!h&&w(Object(i.b)(f.props)))},f.renderSwitcher=function(){var u=f.props,a=u.expanded,l=u.switcherIcon,h=f.props.context,d=h.prefixCls,b=h.switcherIcon,w=l||b;if(f.isLeaf())return C.createElement("span",{className:v()("".concat(d,"-switcher"),"".concat(d,"-switcher-noop"))},typeof w=="function"?w(Object(R.a)(Object(R.a)({},f.props),{},{isLeaf:!0})):w);var A=v()("".concat(d,"-switcher"),"".concat(d,"-switcher_").concat(a?o:e));return C.createElement("span",{onClick:f.onExpand,className:A},typeof w=="function"?w(Object(R.a)(Object(R.a)({},f.props),{},{isLeaf:!1})):w)},f.renderCheckbox=function(){var u=f.props,a=u.checked,l=u.halfChecked,h=u.disableCheckbox,d=f.props.context.prefixCls,b=f.isDisabled(),w=f.isCheckable();if(!w)return null;var A=typeof w!="boolean"?w:null;return C.createElement("span",{className:v()("".concat(d,"-checkbox"),a&&"".concat(d,"-checkbox-checked"),!a&&l&&"".concat(d,"-checkbox-indeterminate"),(b||h)&&"".concat(d,"-checkbox-disabled")),onClick:f.onCheck},A)},f.renderIcon=function(){var u=f.props.loading,a=f.props.context.prefixCls;return C.createElement("span",{className:v()("".concat(a,"-iconEle"),"".concat(a,"-icon__").concat(f.getNodeState()||"docu"),u&&"".concat(a,"-icon_loading"))})},f.renderSelector=function(){var u=f.state.dragNodeHighlight,a=f.props,l=a.title,h=a.selected,d=a.icon,b=a.loading,w=a.data,A=f.props.context,P=A.prefixCls,S=A.showIcon,U=A.icon,D=A.draggable,j=A.loadData,K=A.titleRender,Z=f.isDisabled(),ne="".concat(P,"-node-content-wrapper"),me;if(S){var he=d||U;me=he?C.createElement("span",{className:v()("".concat(P,"-iconEle"),"".concat(P,"-icon__customize"))},typeof he=="function"?he(f.props):he):f.renderIcon()}else j&&b&&(me=f.renderIcon());var Y;typeof l=="function"?Y=l(w):K?Y=K(w):Y=l;var le=C.createElement("span",{className:"".concat(P,"-title")},Y);return C.createElement("span",{ref:f.setSelectHandle,title:typeof l=="string"?l:"",className:v()("".concat(ne),"".concat(ne,"-").concat(f.getNodeState()||"normal"),!Z&&(h||u)&&"".concat(P,"-node-selected"),!Z&&D&&"draggable"),draggable:!Z&&D||void 0,"aria-grabbed":!Z&&D||void 0,onMouseEnter:f.onMouseEnter,onMouseLeave:f.onMouseLeave,onContextMenu:f.onContextMenu,onClick:f.onSelectorClick,onDoubleClick:f.onSelectorDoubleClick,onDragStart:D?f.onDragStart:void 0},me,le)},f}return Object(T.a)(m,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var u=this.props.selectable,a=this.props.context.selectable;return typeof u=="boolean"?u:a}},{key:"render",value:function(){var u,a=this.props,l=a.eventKey,h=a.className,d=a.style,b=a.dragOver,w=a.dragOverGapTop,A=a.dragOverGapBottom,P=a.isLeaf,S=a.isStart,U=a.isEnd,D=a.expanded,j=a.selected,K=a.checked,Z=a.halfChecked,ne=a.loading,me=a.domRef,he=a.active,Y=a.onMouseMove,le=Object(I.a)(a,["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","onMouseMove"]),ge=this.props.context,re=ge.prefixCls,te=ge.filterTreeNode,be=ge.draggable,ze=ge.keyEntities,Ge=this.isDisabled(),Ue=Object(c.f)(le),Ze=ze[l]||{},Pe=Ze.level,Me=U[U.length-1];return C.createElement("div",Object.assign({ref:me,className:v()(h,"".concat(re,"-treenode"),(u={},Object(q.a)(u,"".concat(re,"-treenode-disabled"),Ge),Object(q.a)(u,"".concat(re,"-treenode-switcher-").concat(D?"open":"close"),!P),Object(q.a)(u,"".concat(re,"-treenode-checkbox-checked"),K),Object(q.a)(u,"".concat(re,"-treenode-checkbox-indeterminate"),Z),Object(q.a)(u,"".concat(re,"-treenode-selected"),j),Object(q.a)(u,"".concat(re,"-treenode-loading"),ne),Object(q.a)(u,"".concat(re,"-treenode-active"),he),Object(q.a)(u,"".concat(re,"-treenode-leaf-last"),Me),Object(q.a)(u,"drag-over",!Ge&&b),Object(q.a)(u,"drag-over-gap-top",!Ge&&w),Object(q.a)(u,"drag-over-gap-bottom",!Ge&&A),Object(q.a)(u,"filter-node",te&&te(Object(i.b)(this.props))),u)),style:d,onDragEnter:be?this.onDragEnter:void 0,onDragOver:be?this.onDragOver:void 0,onDragLeave:be?this.onDragLeave:void 0,onDrop:be?this.onDrop:void 0,onDragEnd:be?this.onDragEnd:void 0,onMouseMove:Y},Ue),C.createElement(n,{prefixCls:re,level:Pe,isStart:S,isEnd:U}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),m}(C.Component),y=function(E){return C.createElement(g.a.Consumer,null,function(m){return C.createElement(r,Object.assign({},E,{context:m}))})};y.displayName="TreeNode",y.defaultProps={title:t},y.isTreeNode=1;var _=Te.a=y},Y1PL:function(Ne,Te,k){"use strict";k.r(Te),k.d(Te,"ResizableTextArea",function(){return Z});var q=k("wx14"),I=k("1OyB"),R=k("vuIU"),M=k("Ji7U"),T=k("LK+K"),x=k("cDcd"),N=k("VTBJ"),L=k("rePB"),C=k("Zm9Q"),O=k("Kwbf"),v=k("c+Xe"),g=k("m+aA"),c=k("bdgK"),s=new Map;function n(he){he.forEach(function(Y){var le,ge=Y.target;(le=s.get(ge))===null||le===void 0||le.forEach(function(re){return re(ge)})})}var i=new c.default(n),o=null,e=null;function t(he,Y){s.has(he)||(s.set(he,new Set),i.observe(he)),s.get(he).add(Y)}function r(he,Y){s.has(he)&&(s.get(he).delete(Y),s.get(he).size||(i.unobserve(he),s.delete(he)))}var y=function(he){Object(M.a)(le,he);var Y=Object(T.a)(le);function le(){return Object(I.a)(this,le),Y.apply(this,arguments)}return Object(R.a)(le,[{key:"render",value:function(){return this.props.children}}]),le}(x.Component),_=x.createContext(null);function p(he){var Y=he.children,le=he.onBatchResize,ge=x.useRef(0),re=x.useRef([]),te=x.useContext(_),be=x.useCallback(function(ze,Ge,Ue){ge.current+=1;var Ze=ge.current;re.current.push({size:ze,element:Ge,data:Ue}),Promise.resolve().then(function(){Ze===ge.current&&(le==null||le(re.current),re.current=[])}),te==null||te(ze,Ge,Ue)},[le,te]);return x.createElement(_.Provider,{value:be},Y)}function E(he){var Y=he.children,le=he.disabled,ge=x.useRef(null),re=x.useRef(null),te=x.useContext(_),be=x.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),ze=x.isValidElement(Y)&&Object(v.c)(Y),Ge=ze?Y.ref:null,Ue=x.useMemo(function(){return Object(v.a)(Ge,ge)},[Ge,ge]),Ze=x.useRef(he);Ze.current=he;var Pe=x.useCallback(function(Me){var je=Ze.current,Ve=je.onResize,Ke=je.data,Ie=Me.getBoundingClientRect(),Le=Ie.width,st=Ie.height,nt=Me.offsetWidth,$e=Me.offsetHeight,Xe=Math.floor(Le),ut=Math.floor(st);if(be.current.width!==Xe||be.current.height!==ut||be.current.offsetWidth!==nt||be.current.offsetHeight!==$e){var dt={width:Xe,height:ut,offsetWidth:nt,offsetHeight:$e};be.current=dt;var ce=nt===Math.round(Le)?Le:nt,ve=$e===Math.round(st)?st:$e,xe=Object(N.a)(Object(N.a)({},dt),{},{offsetWidth:ce,offsetHeight:ve});te==null||te(xe,Me,Ke),Ve&&Promise.resolve().then(function(){Ve(xe,Me)})}},[]);return x.useEffect(function(){var Me=Object(g.a)(ge.current)||Object(g.a)(re.current);return Me&&!le&&t(Me,Pe),function(){return r(Me,Pe)}},[ge.current,le]),x.createElement(y,{ref:re},ze?x.cloneElement(Y,{ref:Ue}):Y)}var m="rc-observer-key";function f(he){var Y=he.children,le=Object(C.a)(Y);return le.map(function(ge,re){var te=(ge==null?void 0:ge.key)||"".concat(m,"-").concat(re);return x.createElement(E,Object(q.a)({},he,{key:te}),ge)})}f.Collection=p;var u=f,a=k("bT9E"),l=k("TSYQ"),h=k.n(l),d=`
|
|
min-height:0 !important;
|
|
max-height:none !important;
|
|
height:0 !important;
|
|
visibility:hidden !important;
|
|
overflow:hidden !important;
|
|
position:absolute !important;
|
|
z-index:-1000 !important;
|
|
top:0 !important;
|
|
right:0 !important
|
|
`,b=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],w={},A;function P(he){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,le=he.getAttribute("id")||he.getAttribute("data-reactid")||he.getAttribute("name");if(Y&&w[le])return w[le];var ge=window.getComputedStyle(he),re=ge.getPropertyValue("box-sizing")||ge.getPropertyValue("-moz-box-sizing")||ge.getPropertyValue("-webkit-box-sizing"),te=parseFloat(ge.getPropertyValue("padding-bottom"))+parseFloat(ge.getPropertyValue("padding-top")),be=parseFloat(ge.getPropertyValue("border-bottom-width"))+parseFloat(ge.getPropertyValue("border-top-width")),ze=b.map(function(Ue){return"".concat(Ue,":").concat(ge.getPropertyValue(Ue))}).join(";"),Ge={sizingStyle:ze,paddingSize:te,borderSize:be,boxSizing:re};return Y&&le&&(w[le]=Ge),Ge}function S(he){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ge=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;A||(A=document.createElement("textarea"),A.setAttribute("tab-index","-1"),A.setAttribute("aria-hidden","true"),document.body.appendChild(A)),he.getAttribute("wrap")?A.setAttribute("wrap",he.getAttribute("wrap")):A.removeAttribute("wrap");var re=P(he,Y),te=re.paddingSize,be=re.borderSize,ze=re.boxSizing,Ge=re.sizingStyle;A.setAttribute("style","".concat(Ge,";").concat(d)),A.value=he.value||he.placeholder||"";var Ue=Number.MIN_SAFE_INTEGER,Ze=Number.MAX_SAFE_INTEGER,Pe=A.scrollHeight,Me;if(ze==="border-box"?Pe+=be:ze==="content-box"&&(Pe-=te),le!==null||ge!==null){A.value=" ";var je=A.scrollHeight-te;le!==null&&(Ue=je*le,ze==="border-box"&&(Ue=Ue+te+be),Pe=Math.max(Ue,Pe)),ge!==null&&(Ze=je*ge,ze==="border-box"&&(Ze=Ze+te+be),Me=Pe>Ze?"":"hidden",Pe=Math.min(Ze,Pe))}return{height:Pe,minHeight:Ue,maxHeight:Ze,overflowY:Me,resize:"none"}}var U=k("Gytx"),D=k.n(U),j;(function(he){he[he.NONE=0]="NONE",he[he.RESIZING=1]="RESIZING",he[he.RESIZED=2]="RESIZED"})(j||(j={}));var K=function(he){Object(M.a)(le,he);var Y=Object(T.a)(le);function le(ge){var re;return Object(I.a)(this,le),re=Y.call(this,ge),re.nextFrameActionId=void 0,re.resizeFrameId=void 0,re.textArea=void 0,re.saveTextArea=function(te){re.textArea=te},re.handleResize=function(te){var be=re.state.resizeStatus,ze=re.props,Ge=ze.autoSize,Ue=ze.onResize;if(be!==j.NONE)return;typeof Ue=="function"&&Ue(te),Ge&&re.resizeOnNextFrame()},re.resizeOnNextFrame=function(){cancelAnimationFrame(re.nextFrameActionId),re.nextFrameActionId=requestAnimationFrame(re.resizeTextarea)},re.resizeTextarea=function(){var te=re.props.autoSize;if(!te||!re.textArea)return;var be=te.minRows,ze=te.maxRows,Ge=S(re.textArea,!1,be,ze);re.setState({textareaStyles:Ge,resizeStatus:j.RESIZING},function(){cancelAnimationFrame(re.resizeFrameId),re.resizeFrameId=requestAnimationFrame(function(){re.setState({resizeStatus:j.RESIZED},function(){re.resizeFrameId=requestAnimationFrame(function(){re.setState({resizeStatus:j.NONE}),re.fixFirefoxAutoScroll()})})})})},re.renderTextArea=function(){var te=re.props,be=te.prefixCls,ze=be===void 0?"rc-textarea":be,Ge=te.autoSize,Ue=te.onResize,Ze=te.className,Pe=te.disabled,Me=re.state,je=Me.textareaStyles,Ve=Me.resizeStatus,Ke=Object(a.a)(re.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),Ie=h()(ze,Ze,Object(L.a)({},"".concat(ze,"-disabled"),Pe));"value"in Ke&&(Ke.value=Ke.value||"");var Le=Object(N.a)(Object(N.a)(Object(N.a)({},re.props.style),je),Ve===j.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return x.createElement(u,{onResize:re.handleResize,disabled:!(Ge||Ue)},x.createElement("textarea",Object(q.a)({},Ke,{className:Ie,style:Le,ref:re.saveTextArea})))},re.state={textareaStyles:{},resizeStatus:j.NONE},re}return Object(R.a)(le,[{key:"componentDidUpdate",value:function(re){(re.value!==this.props.value||!D()(re.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var re=this.textArea.selectionStart,te=this.textArea.selectionEnd;this.textArea.setSelectionRange(re,te)}}catch(be){}}},{key:"render",value:function(){return this.renderTextArea()}}]),le}(x.Component),Z=K,ne=function(he){Object(M.a)(le,he);var Y=Object(T.a)(le);function le(ge){var re;Object(I.a)(this,le),re=Y.call(this,ge),re.resizableTextArea=void 0,re.focus=function(){re.resizableTextArea.textArea.focus()},re.saveTextArea=function(be){re.resizableTextArea=be},re.handleChange=function(be){var ze=re.props.onChange;re.setValue(be.target.value,function(){re.resizableTextArea.resizeTextarea()}),ze&&ze(be)},re.handleKeyDown=function(be){var ze=re.props,Ge=ze.onPressEnter,Ue=ze.onKeyDown;be.keyCode===13&&Ge&&Ge(be),Ue&&Ue(be)};var te=typeof ge.value=="undefined"||ge.value===null?ge.defaultValue:ge.value;return re.state={value:te},re}return Object(R.a)(le,[{key:"setValue",value:function(re,te){"value"in this.props||this.setState({value:re},te)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return x.createElement(Z,Object(q.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(re){return"value"in re?{value:re.value}:null}}]),le}(x.Component),me=Te.default=ne},ZJlW:function(Ne,Te,k){Ne.exports={flex_box_center:"flex_box_center___XZ1Hd",flex_space_between:"flex_space_between___2oG4i",flex_box_vertical_center:"flex_box_vertical_center___1UWtb",flex_box_center_end:"flex_box_center_end___1o2xT",flex_box_column:"flex_box_column___SlAE0",list:"list___1HvWe",wrap:"wrap___10sri",lockWrap:"lockWrap___2djiu",li:"li___2W_zn",cover:"cover___2FS3L",img:"img___cyxrw",sign:"sign___1cxDK",name:"name___3tYlu",e:"e___1-orw",unit:"unit___ycOgg",tags:"tags___2FRpJ",tag:"tag___1e0XO"}},ZW9T:function(Ne,Te,k){"use strict";k.d(Te,"a",function(){return S});var q=k("k1fw"),I=k("miYZ"),R=k("tsqr"),M=k("rAM+"),T=k("tJVT"),x=k("PpiC"),N=k("cDcd"),L=k.n(N),C=k("bdgK"),O=k("oBTY"),v=k("9og8"),g=k("WmNS"),c=k.n(g),s={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},n={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(`
|
|
`)},{label:"System.out.println",content:["System.out.println($0)"].join(`
|
|
`)},{label:"System.out.print",content:["System.out.print($0)"].join(`
|
|
`)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},i={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","for","friend","gcnew","generic","goto","if","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
|
|
`)},{label:"#include",content:'include "$0"'},{label:"printf",content:"printf($0)"},{label:"main",content:["int main () {"," $0","}"].join(`
|
|
`)},{label:"for",content:["for( ; ; ){"," $0","}"].join(`
|
|
`)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(`
|
|
`)},{label:"using namespace std;",content:["using namespace std;"].join(`
|
|
`)},{label:"#include <iostream>",content:["#include <iostream>"].join(`
|
|
`)},{label:"#include <vector>",content:["#include <vector>"].join(`
|
|
`)},{label:"#include <sstream>",content:["#include <sstream>"].join(`
|
|
`)},{label:"#include <string>",content:["#include <string>"].join(`
|
|
`)},{label:"#include <cmath>",content:["#include <cmath>"].join(`
|
|
`)}]},o={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(`
|
|
`)}]},e=k("5VLF"),t=k.n(e),r={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},y=function(D,j){return j.map(function(K){return{label:K,kind:D.languages.CompletionItemKind.Keyword,insertText:K}})},_=function(D){return Object.keys(r.tables).map(function(j){return{label:j,kind:D.languages.CompletionItemKind.Variable,insertText:j}})},p=function(D,j){var K=r.tables[D];return K?K.map(function(Z){return{label:Z,kind:j.languages.CompletionItemKind.Field,insertText:Z}}):[]};function E(U,D,j,K,Z){var ne=D.getWordUntilPosition(j),me={startLineNumber:j.lineNumber,endLineNumber:j.lineNumber,startColumn:ne.startColumn,endColumn:ne.endColumn},he=K.map(function(Y){return{label:Y,kind:U.languages.CompletionItemKind.Keyword,insertText:Y,insertTextRules:U.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:me}});return Z.map(function(Y){he.push(Object(q.a)(Object(q.a)({},Y),{},{range:me}))}),he}var m=function(U){r.languages.map(function(Z){return U.languages.registerDocumentFormattingEditProvider(Z,{provideDocumentFormattingEdits:function(me,he,Y){return Object(v.a)(c.a.mark(function le(){var ge;return c.a.wrap(function(te){for(;;)switch(te.prev=te.next){case 0:return ge=t()(me.getValue(),{indent_size:"2",indent_char:" ",max_preserve_newlines:"2",preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:"0",indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1}),te.abrupt("return",[{range:me.getFullModelRange(),text:ge}]);case 2:case"end":return te.stop()}},le)}))()}}),Z});var D=i.quickKey.map(function(Z){return{label:Z.label,kind:U.languages.CompletionItemKind.Method,insertText:Z.content,insertTextRules:U.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),j=o.quickKey.map(function(Z){return{label:Z.label,kind:U.languages.CompletionItemKind.Method,insertText:Z.content,insertTextRules:U.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),K=n.quickKey.map(function(Z){return{label:Z.label,kind:U.languages.CompletionItemKind.Method,insertText:Z.content,insertTextRules:U.languages.CompletionItemInsertTextRule.InsertAsSnippet}});U.languages.registerCompletionItemProvider("cpp",{triggerCharacters:["."," ","#"].concat(Object(O.a)(i.keywords),Object(O.a)(i.quickKey.map(function(Z){return Z.label}))),provideCompletionItems:function(ne,me){var he=ne.getValueInRange({startLineNumber:me.lineNumber,startColumn:1,endLineNumber:me.lineNumber,endColumn:me.column}),Y=he.match(/cu/gim);console.log("match:",Y,me,he,ne);var le=[],ge=me.lineNumber,re=me.column,te=ne.getValueInRange({startLineNumber:ge,startColumn:0,endLineNumber:ge,endColumn:re}),be=te.trim().split(/\s+/),ze=be[be.length-1];if(ze.endsWith(".")){var Ge=ze.slice(0,ze.length-1);Object.keys(r.tables).includes(Ge)&&(le=Object(O.a)(p(Ge,U)))}else ze==="."?le=[]:le=[].concat(Object(O.a)(_(U)),Object(O.a)(y(U,i.keywords)),Object(O.a)(D));return{suggestions:le}}}),U.languages.registerCompletionItemProvider("c",{triggerCharacters:["."," ","#"].concat(Object(O.a)(s.keywords)),provideCompletionItems:function(ne,me){var he=ne.getValueInRange({startLineNumber:me.lineNumber,startColumn:1,endLineNumber:me.lineNumber,endColumn:me.column}),Y=he.match(/cu/gim);console.log("match:",Y,me,he,ne);var le=[],ge=me.lineNumber,re=me.column,te=ne.getValueInRange({startLineNumber:ge,startColumn:0,endLineNumber:ge,endColumn:re}),be=te.trim().split(/\s+/),ze=be[be.length-1];if(ze.endsWith(".")){var Ge=ze.slice(0,ze.length-1);Object.keys(r.tables).includes(Ge)&&(le=Object(O.a)(p(Ge,U)))}else ze==="."?le=[]:le=[].concat(Object(O.a)(_(U)),Object(O.a)(y(U,s.keywords)));return{suggestions:le}}}),U.languages.registerCompletionItemProvider("java",{triggerCharacters:["."," "].concat(Object(O.a)(n.keywords)),provideCompletionItems:function(ne,me){var he=[],Y=me.lineNumber,le=me.column,ge=ne.getValueInRange({startLineNumber:Y,startColumn:0,endLineNumber:Y,endColumn:le}),re=ge.trim().split(/\s+/),te=re[re.length-1];if(te.endsWith(".")){var be=te.slice(0,te.length-1);Object.keys(r.tables).includes(be)&&(he=Object(O.a)(p(be,U)))}else te==="."?he=[]:he=[].concat(Object(O.a)(_(U)),Object(O.a)(y(U,n.keywords)),Object(O.a)(K));return{suggestions:he}}}),U.languages.registerCompletionItemProvider("python",{triggerCharacters:["."," "].concat(Object(O.a)(o.keywords)),provideCompletionItems:function(ne,me){var he=[],Y=me.lineNumber,le=me.column,ge=ne.getValueInRange({startLineNumber:Y,startColumn:0,endLineNumber:Y,endColumn:le}),re=ge.trim().split(/\s+/),te=re[re.length-1];if(te.endsWith(".")){var be=te.slice(0,te.length-1);Object.keys(r.tables).includes(be)&&(he=Object(O.a)(p(be,U)))}else te==="."?he=[]:he=[].concat(Object(O.a)(_(U)),Object(O.a)(y(U,o.keywords)),Object(O.a)(j));return{suggestions:he}}})},f="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002",u=k("LvDl"),a=k("+ua5");function l(U){return/^\d+$/.test(U)?"".concat(U,"px"):U}function h(){}var d=!1,b={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python"};function w(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],D=U;if(Array.isArray(U)){for(var j=0;j<U.length;j++){var K=b[U[j]];if(K)return K}return D[0]}return b[D]||D}var A=null,P=Te.b=function(U){var D=U.width,j=D===void 0?"100%":D,K=U.height,Z=K===void 0?"100%":K,ne=U.value,me=U.language,he=me===void 0?"javascript":me,Y=U.style,le=Y===void 0?{}:Y,ge=U.options,re=ge===void 0?{}:ge,te=U.overrideServices,be=te===void 0?{}:te,ze=U.theme,Ge=ze===void 0?"vs-dark":ze,Ue=U.onEditBlur,Ze=U.onSave,Pe=U.autoHeight,Me=Pe===void 0?!1:Pe,je=U.forbidCopy,Ve=je===void 0?!1:je,Ke=U.onChange,Ie=Ke===void 0?h:Ke,Le=U.editorDidMount,st=Le===void 0?h:Le,nt=U.onFocus,$e=nt===void 0?h:nt,Xe=U.filename,ut=Xe===void 0?"educoder.txt":Xe,dt=U.errorLine,ce=U.errorContent,ve=ce===void 0?"":ce,xe=Object(x.a)(U,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","filename","errorLine","errorContent"]),Se=Object(N.useRef)(),pe=Object(N.useRef)({}),Oe=Object(N.useRef)(),ie=Object(N.useRef)(!1),Q=Object(N.useRef)(),X=Object(N.useState)(!1),B=Object(T.a)(X,2),W=B[0],G=B[1];function J(){var He;return Se.current&&(He=new C.default(function(rt){var pt=Object(M.a)(rt),bt;try{for(pt.s();!(bt=pt.n()).done;){var xt=bt.value;(xt.target.offsetHeight>0||xt.target.offsetWidth>0)&&pe.current.instance.layout()}}catch(ft){pt.e(ft)}finally{pt.f()}}),He.observe(Se.current)),He}function ue(){R.b.warn(decodeURIComponent(f))}var ye=function(){var rt=pe.current.instance;if(ne!=null&&rt&&W){var pt=rt.getModel();pt&&ne!==pt.getValue()&&(d=!0,pt.setValue(ne),rt.layout(),d=!1)}};Object(N.useEffect)(function(){Oe.current&&clearTimeout(Oe.current),Oe.current=setTimeout(function(){ye()},500)},[ne,W,pe.current]),Object(N.useEffect)(function(){if(dt&&pe.current&&pe.current.instance){var He=pe.current.instance;He.changeViewZones(function(pt){var bt=document.createElement("div");bt.style.padding="10px 20px",bt.style.width="calc(100% - 20px)",bt.className="my-error-line-wrp",bt.innerHTML=ve,pt.addZone({afterLineNumber:dt||11,heightInLines:3,domNode:bt})});var rt={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};He.addOverlayWidget(rt),He.revealPositionInCenter({lineNumber:20,column:1})}},[dt,pe.current,W]);function De(){var He=pe.current.instance;if(He){var rt=He.getSelection(),pt=pe.current.pastePos||{},bt=new A.Range(pt.startLineNumber||rt.endLineNumber,pt.startColumn||rt.endColumn,pt.endLineNumber||rt.endLineNumber,pt.endColumn||rt.endColumn);setTimeout(function(){He.executeEdits("",[{range:bt,text:""}])},300)}}function Qe(He){(window.navigator.platform.match("Mac")?He.metaKey:He.ctrlKey)&&He.keyCode==83&&(He.preventDefault(),Ze())}var Je=function(){if(Me&&pe.current.instance){var rt=pe.current.instance.getContentHeight();lt(rt<Z?Z:rt)}else lt(Z)};function Ee(He){var rt=document.createEvent("MouseEvents");rt.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),He.dispatchEvent(rt)}function at(He,rt){var pt=window.URL||window.webkitURL||window,bt=new Blob([rt]),xt=document.createElementNS("http://www.w3.org/1999/xhtml","a");xt.href=pt.createObjectURL(bt),xt.download=He,Ee(xt)}Object(N.useEffect)(function(){Je()},[Je]),Object(N.useEffect)(function(){Se.current&&!W&&k.e(27).then(k.t.bind(null,"M/lh",7)).then(function(He){try{A=He,pe.current.instance=A.editor.create(Se.current,{value:ne,language:w(he),theme:Ge,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0},be);var rt=pe.current.instance;if(st(rt,A),setTimeout(function(){Je(),pe.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:function(){at(ut||"educoder.txt",rt.getValue())}})},500),pe.current.subscription=rt.onDidChangeModelContent(function(bt){ie.current?clearTimeout(Q.current):(Je(),Ie(rt.getValue(),bt)),Q.current=setTimeout(function(){ie.current=!1},500)}),window.Monaco||m(A),Ve&&(rt.addCommand(A.KeyMod.CtrlCmd|A.KeyMod.Shift|A.KeyCode.KEY_V,function(){return ue(),null}),rt.addCommand(A.KeyMod.CtrlCmd|A.KeyCode.KEY_C,function(){return ue(),null})),window.Monaco=A,Ue&&rt.onDidBlurEditorWidget(function(){Ue(rt.getValue())}),$e&&rt.onDidFocusEditorText(function(){$e(rt.getValue())}),Ve){rt.addCommand(A.KeyMod.CtrlCmd|A.KeyCode.KEY_V,function(){return ue(),null}),rt.onDidPaste(function(bt){pe.current.pastePos=bt});try{window.addEventListener("paste",De)}catch(bt){}}var pt=J();return G(!0),function(){var bt=pe.current.instance;bt.dispose();var xt=bt.getModel();xt&&xt.dispose(),pe.current.subscription&&pe.current.subscription.dispose(),Ve&&window.removeEventListener("paste",De),pt.unobserve(Se.current)}}catch(bt){}})},[]),Object(N.useEffect)(function(){var He=pe.current.instance;if(He&&W)return document.addEventListener("keydown",Qe,!1),function(){document.removeEventListener("keydown",Qe)}},[Ze,W]),Object(N.useEffect)(function(){var He=pe.current.instance;if(He&&W){var rt=w(he);A.editor.setModelLanguage(He.getModel(),rt),console.log("language:",he,He.getModel(),rt)}},[he,W]),Object(N.useEffect)(function(){var He=pe.current.instance;He&&W&&A.editor.setTheme(Ge)},[Ge,W]),Object(N.useEffect)(function(){var He=pe.current.instance;He&&W&&(He.updateOptions(Object(q.a)({},re)),setTimeout(function(){He.getModel().updateOptions(Object(q.a)({},re))},200))},[JSON.stringify(re),W]),Object(N.useEffect)(function(){var He=pe.current.instance;He&&W&&He.layout()},[j,Z,W]);var Ye=Object(N.useState)(l(j)),Be=Object(T.a)(Ye,2),it=Be[0],ct=Be[1],ot=Object(N.useState)(l(Z)),vt=Object(T.a)(ot,2),tt=vt[0],lt=vt[1],gt=Object(q.a)(Object(q.a)({},le),{},{width:it,height:tt});return L.a.createElement("div",{className:"my-monaco-editor",ref:Se,style:gt})};function S(U){var D=U.width,j=D===void 0?"100%":D,K=U.height,Z=K===void 0?"100%":K,ne=U.original,me=U.modified,he=U.language,Y=U.options,le=Y===void 0?{}:Y,ge=Object(N.useRef)(),re=Object(N.useState)(null),te=Object(T.a)(re,2),be=te[0],ze=te[1];function Ge(Me){var je;return ge.current&&(je=new C.default(function(Ve){var Ke=Object(M.a)(Ve),Ie;try{for(Ke.s();!(Ie=Ke.n()).done;){var Le=Ie.value;(Le.target.offsetHeight>0||Le.target.offsetWidth>0)&&Me.layout()}}catch(st){Ke.e(st)}finally{Ke.f()}}),je.observe(ge.current)),je}Object(N.useEffect)(function(){ge.current&&k.e(27).then(k.t.bind(null,"M/lh",7)).then(function(Me){A=Me;var je=A.editor.createDiffEditor(ge.current,Object(q.a)(Object(q.a)({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",ignoreTrimWhitespace:!1,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},le),{},{wordWrap:!0}));ze(je);var Ve=Ge(je);return function(){je.dispose();var Ke=je.getModel();Ke&&Ke.dispose(),Ve.unobserve(ge.current)}})},[]),Object(N.useEffect)(function(){be&&be.setModel({original:A.editor.createModel(ne,he),modified:A.editor.createModel(me,he)})},[ne,me,he,be]);var Ue=l(j),Ze=l(Z),Pe={width:Ue,height:Ze};return L.a.createElement("div",{className:"my-diff-editor",ref:ge,style:Pe})}},a2OE:function(Ne,Te){Ne.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAAAkCAYAAABR/76qAAAAAXNSR0IArs4c6QAAE31JREFUeF61W3uQVcWZ/3137oxP1DE+EWIUJFlQkHkoougiz+ExvIe54COru6ZWk2xqd2OybKViWWWy1tZWLLc2q8ZH/nCYYRBkBIcBS6NRAZ2HjgiiEDQDioiAiAozc7u/re4+3afPuefeubDlqYI799zTp/v07/t970OIHbzj1gfBOAPMfWDuBWQfkBWQEAB/iSvp90QrhR3G2+dfjGPH7gCLXgC9kKIXRMdxevlqGrXyK97yt/WQ2e9Bci+Ie8GyDyzUvQQgD9GErnXxNRTzndcN/h8Qv0Mz9z1azPXfxjXcjOkQmApCLzj4l0IvStFIC7BvoDm5GbWQWACgBIy0/jT/tlEGvxpovPqdcgG8rYelGAqWADPsJ4GPAFRDo1du9sdw58xKltkOgEHB9cwSVJIaRtUv7ubXJ7QwRK36TZ1X9yMwAN4H8HS6seudYhYambN18MMQ8ieAZDD+kWo/i4DIz59/EY73nW7GKLmKH8dPbEqBL6gOh3L2qhG/AuN+d97uZgnGUx0i+5Q0Ia/AjRB4JWc8cIgy+E4xi8wFcPutPQypAbSbTsxHwKmbacyKrpyH6JhVAfR3sgwB1wBZADdPaGEhagnmdw0u8V8hUxPppjc/LGaRju18XwrPP/6/gLxLrU/NSaRBvJvmfP6Iu271oLWQclYohEphKGEMBFILkDmlD7UL9m//uzpPOIYUqqgO2/MCGB+fDgHkJvwIEkv02BSgtkF/mvnTYIzPM/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PGQULZ3Hz1OPNYBKfOTgjAAu8HalAkloNR5s2vGnkXUh2e8+fhP+FU7MenYJxdoNboem2iZFbP9vacHSzl9yNtEmDVzvU0KtvuIKJ44skI3qs3VAL9HTYZ7uynBfClUS0qmR15+fOkABxk4sCYeodKZtdl83qh3IwSZLWaKk/s+CIdXD+IC/EHmogTevOzmDiQm1ADxirtPKVwCBL1tASJ6+VGPAHGHQllLpX9uT/pNTenRLh77r9Bigkg+QkE7wFjJ1Lpl6niuU8KSSRvuu4SSPmzyDsSyrssPe23NH7zIX5xpCrbjNK/6zKg6lERXTR1d2Oxkq4FZfVZ0yHFJCM1wfsYSlSJHqOFvQU7tLkRvwG0c3IYhC/A+FyFDEhjKyTeojokvtY20Pq4EYvBWOpCa/vyZhr30kLssOO5GTdB4AGU4TZagN357suNqAJ0nfIgGAdB2AuJXUhjZ741/h9lg+MKrzmoaAAAAABJRU5ErkJggg=="},bT9E:function(Ne,Te,k){"use strict";k.d(Te,"a",function(){return I});var q=k("VTBJ");function I(R,M){var T=Object(q.a)({},R);return Array.isArray(M)&&M.forEach(function(x){delete T[x]}),T}},biw7:function(Ne,Te,k){"use strict";var q=k("cDcd"),I=k.n(q),R=q.createContext(null);Te.a=R},cFMs:function(Ne,Te){Ne.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJgAAAA4CAYAAAAB3jHPAAAAAXNSR0IArs4c6QAAIABJREFUeF61XQl4VdW1/m9GIAlhDGEIBATB2aetvCfYwYoDqKioVZGi4vxq9VlHVNSqtCA+obaKoBat4gRiHVBQBH2aiG3VKgIhYQhhyEQIhAwkuee8b49n7X32ubkRe7+PL3c4e5999vr3v/619jqHGH7gl+/7qdhSdAI8nAJgFHx/FHwUwPdyAOQAfgZ8X55V/mWf2b8YxF/+Ir/xj+R7/V4ed6jt2blUn3ocpG91fjU+dQwdl++RmWT9qWug79Wl0WPJ5fL+AcTYG/aKyXlhf8VH4zt1jB4faWfblfZL+1LHGedVX6r+aGd6kMEYla1C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WAaaKye7Nva8fDbpsCPnQYkU36trEMBScEToZlCbs/qx45mXdEnZTI7TWCwkmubJoFeoqykJ0ftCthTbTGarc94e/sY9V0y7i8Zt/Z9+ukck/0gAKPD5Bvm371zItoxFr5/BGIeq20ugOfnIIYcePIxBQYz2WCKqG4Q/lmczsVsdjRKE7b204I0Li02sMtsFIsYwYC6ZY3sZ9Jcmcr869k168GE35A/0tOHGCsBKP8NEV+n3GGS5/9/aODhUXT7opcAAAAASUVORK5CYII="},cz0n:function(Ne,Te,k){Ne.exports={flex_box_center:"flex_box_center___G8W6i",flex_space_between:"flex_space_between___1p_ZB",flex_box_vertical_center:"flex_box_vertical_center___2wivF",flex_box_center_end:"flex_box_center_end___y5a20",flex_box_column:"flex_box_column___6oXp3",tabs:"tabs___sKski",active:"active___10xGM"}},"f0W+":function(Ne,Te,k){Ne.exports={flex_box_center:"flex_box_center___2AWuG",flex_space_between:"flex_space_between___4j1zo",flex_box_vertical_center:"flex_box_vertical_center___3dWcm",flex_box_center_end:"flex_box_center_end___qvHJi",flex_box_column:"flex_box_column___3Eier",tabs:"tabs___25WKT",tabsWrap:"tabsWrap___2lPJE",active:"active___gGp9s"}},f9pc:function(Ne,Te,k){Ne.exports={flex_box_center:"flex_box_center___fO1Sq",flex_space_between:"flex_space_between___2MANs",flex_box_vertical_center:"flex_box_vertical_center___2x-su",flex_box_center_end:"flex_box_center_end___6bZNq",flex_box_column:"flex_box_column___CGTHC",quickPager:"quickPager___2XH6F",disabled:"disabled___2gPWV"}},fyJ8:function(Ne,Te,k){"use strict";var q=k("rePB"),I=k("VTBJ"),R=k("Ff2n"),M=k("U8pU"),T=k("cDcd"),x=k.n(T),N=k("TSYQ"),L=k.n(N),C=k("c+Xe"),O=k("sR1s");function v(i){return i&&Object(M.a)(i)==="object"&&!Array.isArray(i)&&!T.isValidElement(i)}function g(i){return typeof i=="string"?!0:Object(C.c)(i)}function c(i,o){var e,t=i.prefixCls,r=i.className,y=i.record,_=i.index,p=i.dataIndex,E=i.render,m=i.children,f=i.component,u=f===void 0?"td":f,a=i.colSpan,l=i.rowSpan,h=i.fixLeft,d=i.fixRight,b=i.firstFixLeft,w=i.lastFixLeft,A=i.firstFixRight,P=i.lastFixRight,S=i.appendNode,U=i.additionalProps,D=U===void 0?{}:U,j=i.ellipsis,K=i.align,Z=i.rowType,ne=i.isSticky,me="".concat(t,"-cell"),he,Y;if(m)Y=m;else{var le=Object(O.b)(y,p);if(Y=le,E){var ge=E(le,y,_);v(ge)?(Y=ge.children,he=ge.props):Y=ge}}Object(M.a)(Y)==="object"&&!Array.isArray(Y)&&!T.isValidElement(Y)&&(Y=null),j&&(w||A)&&(Y=T.createElement("span",{className:"".concat(me,"-content")},Y));var re=he||{},te=re.colSpan,be=re.rowSpan,ze=re.style,Ge=re.className,Ue=Object(R.a)(re,["colSpan","rowSpan","style","className"]),Ze=te!==void 0?te:a,Pe=be!==void 0?be:l;if(Ze===0||Pe===0)return null;var Me={},je=typeof h=="number",Ve=typeof d=="number";je&&(Me.position="sticky",Me.left=h),Ve&&(Me.position="sticky",Me.right=d);var Ke={};K&&(Ke.textAlign=K);var Ie,Le=j===!0?{showTitle:!0}:j;Le&&(Le.showTitle||Z==="header")&&(typeof Y=="string"||typeof Y=="number"?Ie=Y.toString():T.isValidElement(Y)&&typeof Y.props.children=="string"&&(Ie=Y.props.children));var st=Object(I.a)(Object(I.a)(Object(I.a)({title:Ie},Ue),D),{},{colSpan:Ze&&Ze!==1?Ze:null,rowSpan:Pe&&Pe!==1?Pe:null,className:L()(me,r,(e={},Object(q.a)(e,"".concat(me,"-fix-left"),je),Object(q.a)(e,"".concat(me,"-fix-left-first"),b),Object(q.a)(e,"".concat(me,"-fix-left-last"),w),Object(q.a)(e,"".concat(me,"-fix-right"),Ve),Object(q.a)(e,"".concat(me,"-fix-right-first"),A),Object(q.a)(e,"".concat(me,"-fix-right-last"),P),Object(q.a)(e,"".concat(me,"-ellipsis"),j),Object(q.a)(e,"".concat(me,"-with-append"),S),Object(q.a)(e,"".concat(me,"-fix-sticky"),(je||Ve)&&ne),e),D.className,Ge),style:Object(I.a)(Object(I.a)(Object(I.a)(Object(I.a)({},D.style),Ke),Me),ze),ref:g(u)?o:null});return T.createElement(u,Object.assign({},st),S,Y)}var s=T.forwardRef(c);s.displayName="Cell";var n=T.memo(s,function(i,o){return o.shouldCellUpdate?!o.shouldCellUpdate(o.record,i.record):!1});Te.a=n},hW8S:function(Ne,Te,k){"use strict";k.d(Te,"a",function(){return M}),k.d(Te,"c",function(){return T}),k.d(Te,"b",function(){return x});var q=k("VTBJ"),I=k("Ff2n"),R=k("Kwbf"),M="RC_TABLE_INTERNAL_COL_DEFINE";function T(N){var L=N.expandable,C=Object(I.a)(N,["expandable"]);return"expandable"in N?Object(q.a)(Object(q.a)({},C),L):C}function x(N){return Object.keys(N).reduce(function(L,C){return(C.substr(0,5)==="data-"||C.substr(0,5)==="aria-")&&(L[C]=N[C]),L},{})}},"iL++":function(Ne,Te,k){Ne.exports={flex_box_center:"flex_box_center___2pHUo",flex_space_between:"flex_space_between___3Bfes",flex_box_vertical_center:"flex_box_vertical_center___1thiW",flex_box_center_end:"flex_box_center_end___3Zr7k",flex_box_column:"flex_box_column___3xe1a",list:"list___3rlGv",wrap:"wrap____oZzM",lockWrap:"lockWrap___24eY2",top:"top___3SCOc",sign:"sign____uZ_B",name:"name___2nHyM",img:"img___3Spn7",text:"text___1Pg2L",btns:"btns___Kr_Ti",bottom:"bottom___2_iOx"}},k3GJ:function(Ne,Te,k){"use strict";k.d(Te,"a",function(){return we});var q=k("rePB"),I=k("ODXe"),R=k("Ff2n"),M=k("VTBJ"),T=k("cDcd"),x=k("TSYQ"),N=k.n(x),L=k("Zm9Q"),C=k("6cGi"),O=k("KQm4"),v=k("xEkU"),g=k.n(v),c=k("t23M");function s(V){var se=Object(T.useRef)(),de=Object(T.useRef)(!1);function $(){for(var F=arguments.length,z=new Array(F),H=0;H<F;H++)z[H]=arguments[H];de.current||(g.a.cancel(se.current),se.current=g()(function(){V.apply(void 0,z)}))}return Object(T.useEffect)(function(){return function(){de.current=!0,g.a.cancel(se.current)}},[]),$}function n(V){var se=Object(T.useRef)([]),de=Object(T.useState)({}),$=Object(I.a)(de,2),F=$[1],z=Object(T.useRef)(typeof V=="function"?V():V),H=s(function(){var ae=z.current;se.current.forEach(function(fe){ae=fe(ae)}),se.current=[],z.current=ae,F({})});function ee(ae){se.current.push(ae),H()}return[z.current,ee]}var i=k("4IlW");function o(V,se){var de,$=V.prefixCls,F=V.id,z=V.active,H=V.rtl,ee=V.tab,ae=ee.key,fe=ee.tab,oe=ee.disabled,_e=ee.closeIcon,Re=V.tabBarGutter,We=V.tabPosition,Fe=V.closable,qe=V.renderWrapper,Tt=V.removeAriaLabel,Ct=V.editable,At=V.onClick,Dt=V.onRemove,wt=V.onFocus,St="".concat($,"-tab");T.useEffect(function(){return Dt},[]);var Rt={};We==="top"||We==="bottom"?Rt[H?"marginLeft":"marginRight"]=Re:Rt.marginBottom=Re;var Ft=Ct&&Fe!==!1&&!oe;function Lt(yt){if(oe)return;At(yt)}function sn(yt){yt.preventDefault(),yt.stopPropagation(),Ct.onEdit("remove",{key:ae,event:yt})}var Gt=T.createElement("div",{key:ae,ref:se,className:N()(St,(de={},Object(q.a)(de,"".concat(St,"-with-remove"),Ft),Object(q.a)(de,"".concat(St,"-active"),z),Object(q.a)(de,"".concat(St,"-disabled"),oe),de)),style:Rt,onClick:Lt},T.createElement("div",{role:"tab","aria-selected":z,id:F&&"".concat(F,"-tab-").concat(ae),className:"".concat(St,"-btn"),"aria-controls":F&&"".concat(F,"-panel-").concat(ae),"aria-disabled":oe,tabIndex:oe?null:0,onClick:function(_t){_t.stopPropagation(),Lt(_t)},onKeyDown:function(_t){[i.a.SPACE,i.a.ENTER].includes(_t.which)&&(_t.preventDefault(),Lt(_t))},onFocus:wt},fe),Ft&&T.createElement("button",{type:"button","aria-label":Tt||"remove",tabIndex:0,className:"".concat(St,"-remove"),onClick:function(_t){_t.stopPropagation(),sn(_t)}},_e||Ct.removeIcon||"\xD7"));return qe&&(Gt=qe(Gt)),Gt}var e=T.forwardRef(o),t={width:0,height:0,left:0,top:0};function r(V,se,de){return Object(T.useMemo)(function(){for(var $,F=new Map,z=se.get(($=V[0])===null||$===void 0?void 0:$.key)||t,H=z.left+z.width,ee=0;ee<V.length;ee+=1){var ae=V[ee].key,fe=se.get(ae);if(!fe){var oe;fe=se.get((oe=V[ee-1])===null||oe===void 0?void 0:oe.key)||t}var _e=F.get(ae)||Object(M.a)({},fe);_e.right=H-_e.left-_e.width,F.set(ae,_e)}return F},[V.map(function($){return $.key}).join("_"),se,de])}var y={width:0,height:0,left:0,top:0,right:0};function _(V,se,de,$,F){var z=F.tabs,H=F.tabPosition,ee=F.rtl,ae,fe,oe;["top","bottom"].includes(H)?(ae="width",fe=ee?"right":"left",oe=Math.abs(se.left)):(ae="height",fe="top",oe=-se.top);var _e=se[ae],Re=de[ae],We=$[ae],Fe=_e;return Re+We>_e&&(Fe=_e-We),Object(T.useMemo)(function(){if(!z.length)return[0,0];for(var qe=z.length,Tt=qe,Ct=0;Ct<qe;Ct+=1){var At=V.get(z[Ct].key)||y;if(At[fe]+At[ae]>oe+Fe){Tt=Ct-1;break}}for(var Dt=0,wt=qe-1;wt>=0;wt-=1){var St=V.get(z[wt].key)||y;if(St[fe]<oe){Dt=wt+1;break}}return[Dt,Tt]},[V,oe,Fe,H,z.map(function(qe){return qe.key}).join("_"),ee])}var p=k("wx14"),E=k("1OyB"),m=k("vuIU"),f=k("JX7q"),u=k("Ji7U"),a=k("LK+K"),l=k("I8Z2"),h=k("bT9E"),d=k("2GS6"),b=k("Gytx"),w=k.n(b),A=k("U8pU"),P=/iPhone/i,S=/iPod/i,U=/iPad/i,D=/\bAndroid(?:.+)Mobile\b/i,j=/Android/i,K=/\bAndroid(?:.+)SD4930UR\b/i,Z=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,ne=/Windows Phone/i,me=/\bWindows(?:.+)ARM\b/i,he=/BlackBerry/i,Y=/BB10/i,le=/Opera Mini/i,ge=/\b(CriOS|Chrome)(?:.+)Mobile/i,re=/Mobile(?:.+)Firefox\b/i;function te(V,se){return V.test(se)}function be(V){var se=V||(typeof navigator!="undefined"?navigator.userAgent:""),de=(se||"").split("[FBAN");if(typeof de[1]!="undefined"){var $=de,F=Object(I.a)($,1);se=F[0]}if(de=se.split("Twitter"),typeof de[1]!="undefined"){var z=de,H=Object(I.a)(z,1);se=H[0]}var ee={apple:{phone:te(P,se)&&!te(ne,se),ipod:te(S,se),tablet:!te(P,se)&&te(U,se)&&!te(ne,se),device:(te(P,se)||te(S,se)||te(U,se))&&!te(ne,se)},amazon:{phone:te(K,se),tablet:!te(K,se)&&te(Z,se),device:te(K,se)||te(Z,se)},android:{phone:!te(ne,se)&&te(K,se)||!te(ne,se)&&te(D,se),tablet:!te(ne,se)&&!te(K,se)&&!te(D,se)&&(te(Z,se)||te(j,se)),device:!te(ne,se)&&(te(K,se)||te(Z,se)||te(D,se)||te(j,se))||te(/\bokhttp\b/i,se)},windows:{phone:te(ne,se),tablet:te(me,se),device:te(ne,se)||te(me,se)},other:{blackberry:te(he,se),blackberry10:te(Y,se),opera:te(le,se),firefox:te(re,se),chrome:te(ge,se),device:te(he,se)||te(Y,se)||te(le,se)||te(re,se)||te(ge,se)},any:null,phone:null,tablet:null};return ee.any=ee.apple.device||ee.android.device||ee.windows.device||ee.other.device,ee.phone=ee.apple.phone||ee.android.phone||ee.windows.phone,ee.tablet=ee.apple.tablet||ee.android.tablet||ee.windows.tablet,ee}var ze=Object(M.a)(Object(M.a)({},be()),{},{isMobile:be}),Ge=ze;function Ue(){}function Ze(V,se,de){var $=se||"";return V.key||"".concat($,"item_").concat(de)}function Pe(V){return"".concat(V,"-menu-")}function Me(V,se){var de=-1;T.Children.forEach(V,function($){de+=1,$&&$.type&&$.type.isMenuItemGroup?T.Children.forEach($.props.children,function(F){de+=1,se(F,de)}):se($,de)})}function je(V,se,de){if(!V||de.find)return;T.Children.forEach(V,function($){if($){var F=$.type;if(!F||!(F.isSubMenu||F.isMenuItem||F.isMenuItemGroup))return;se.indexOf($.key)!==-1?de.find=!0:$.props.children&&je($.props.children,se,de)}})}var Ve=["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"],Ke=function(se){var de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,$=se&&typeof se.getBoundingClientRect=="function"&&se.getBoundingClientRect().width;if($){if(de){var F=getComputedStyle(se),z=F.marginLeft,H=F.marginRight;$+=+z.replace("px","")+ +H.replace("px","")}$=+$.toFixed(6)}return $||0},Ie=function(se,de,$){se&&Object(A.a)(se.style)==="object"&&(se.style[de]=$)},Le=function(){return Ge.any},st=k("bdgK"),nt=k("faye"),$e=k.n(nt),Xe=k("wgJM"),ut=k("l4aY"),dt=k("m+aA"),ce=k("c+Xe"),ve=k("zT1h"),xe=k("QC+M");function Se(V,se,de){return de?V[0]===se[0]:V[0]===se[0]&&V[1]===se[1]}function pe(V,se,de){var $=V[se]||{};return Object(M.a)(Object(M.a)({},$),de)}function Oe(V,se,de,$){for(var F=de.points,z=Object.keys(V),H=0;H<z.length;H+=1){var ee=z[H];if(Se(V[ee].points,F,$))return"".concat(se,"-placement-").concat(ee)}return""}var ie=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var V=navigator.userAgent||navigator.vendor||window.opera;return!!(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(V)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(V==null?void 0:V.substr(0,4)))},Q=k("MNnm");function X(V,se){var de={};return de[V.toLowerCase()]=se.toLowerCase(),de["Webkit".concat(V)]="webkit".concat(se),de["Moz".concat(V)]="moz".concat(se),de["ms".concat(V)]="MS".concat(se),de["O".concat(V)]="o".concat(se.toLowerCase()),de}function B(V,se){var de={animationend:X("Animation","AnimationEnd"),transitionend:X("Transition","TransitionEnd")};return V&&("AnimationEvent"in se||delete de.animationend.animation,"TransitionEvent"in se||delete de.transitionend.transition),de}var W=B(Object(Q.a)(),typeof window!="undefined"?window:{}),G={};if(Object(Q.a)()){var J=document.createElement("div");G=J.style}var ue={};function ye(V){if(ue[V])return ue[V];var se=W[V];if(se)for(var de=Object.keys(se),$=de.length,F=0;F<$;F+=1){var z=de[F];if(Object.prototype.hasOwnProperty.call(se,z)&&z in G)return ue[V]=se[z],ue[V]}return""}var De=ye("animationend"),Qe=ye("transitionend"),Je=!!(De&&Qe),Ee=De||"animationend",at=Qe||"transitionend";function Ye(V,se){if(!V)return null;if(Object(A.a)(V)==="object"){var de=se.replace(/-\w/g,function($){return $[1].toUpperCase()});return V[de]}return"".concat(V,"-").concat(se)}var Be="none",it="appear",ct="enter",ot="leave",vt="none",tt="prepare",lt="start",gt="active",He="end";function rt(V){var se=Object(T.useRef)(!1),de=Object(T.useState)(V),$=Object(I.a)(de,2),F=$[0],z=$[1];function H(ee){se.current||z(ee)}return Object(T.useEffect)(function(){return function(){se.current=!0}},[]),[F,H]}var pt=Object(Q.a)()?T.useLayoutEffect:T.useEffect,bt=pt,xt=function(){var V=T.useRef(null);function se(){Xe.a.cancel(V.current)}function de($){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;se();var z=Object(Xe.a)(function(){F<=1?$({isCanceled:function(){return z!==V.current}}):de($,F-1)});V.current=z}return T.useEffect(function(){return function(){se()}},[]),[de,se]},ft=[tt,lt,gt,He],on=!1,Jt=!0;function Ut(V){return V===gt||V===He}var Vt=function(V,se){var de=T.useState(vt),$=Object(I.a)(de,2),F=$[0],z=$[1],H=xt(),ee=Object(I.a)(H,2),ae=ee[0],fe=ee[1];function oe(){z(tt)}return bt(function(){if(F!==vt&&F!==He){var _e=ft.indexOf(F),Re=ft[_e+1],We=se(F);We===on?z(Re):ae(function(Fe){function qe(){if(Fe.isCanceled())return;z(Re)}We===!0?qe():Promise.resolve(We).then(qe)})}},[V,F]),T.useEffect(function(){return function(){fe()}},[]),[oe,F]},jt=function(V){var se=Object(T.useRef)(),de=Object(T.useRef)(V);de.current=V;var $=T.useCallback(function(H){de.current(H)},[]);function F(H){H&&(H.removeEventListener(at,$),H.removeEventListener(Ee,$))}function z(H){se.current&&se.current!==H&&F(se.current),H&&H!==se.current&&(H.addEventListener(at,$),H.addEventListener(Ee,$),se.current=H)}return T.useEffect(function(){return function(){F(se.current)}},[]),[z,F]};function Wt(V,se,de,$){var F=$.motionEnter,z=F===void 0?!0:F,H=$.motionAppear,ee=H===void 0?!0:H,ae=$.motionLeave,fe=ae===void 0?!0:ae,oe=$.motionDeadline,_e=$.motionLeaveImmediately,Re=$.onAppearPrepare,We=$.onEnterPrepare,Fe=$.onLeavePrepare,qe=$.onAppearStart,Tt=$.onEnterStart,Ct=$.onLeaveStart,At=$.onAppearActive,Dt=$.onEnterActive,wt=$.onLeaveActive,St=$.onAppearEnd,Rt=$.onEnterEnd,Ft=$.onLeaveEnd,Lt=$.onVisibleChanged,sn=rt(),Gt=Object(I.a)(sn,2),yt=Gt[0],_t=Gt[1],Mt=rt(Be),kt=Object(I.a)(Mt,2),ht=kt[0],Bt=kt[1],en=rt(null),Ht=Object(I.a)(en,2),Xt=Ht[0],nn=Ht[1],yn=Object(T.useRef)(!1),Dn=Object(T.useRef)(null),ln=Object(T.useRef)(!1),Ln=Object(T.useRef)(null);function qn(){var tn=de();return tn||Ln.current}var Un=Object(T.useRef)(!1);function jn(tn){var Kt=qn();if(tn&&!tn.deadline&&tn.target!==Kt)return;var Tn;ht===it&&Un.current?Tn=St==null?void 0:St(Kt,tn):ht===ct&&Un.current?Tn=Rt==null?void 0:Rt(Kt,tn):ht===ot&&Un.current&&(Tn=Ft==null?void 0:Ft(Kt,tn)),Tn!==!1&&!ln.current&&(Bt(Be),nn(null))}var cn=jt(jn),Cn=Object(I.a)(cn,1),bn=Cn[0],gn=T.useMemo(function(){var tn,Kt,Tn;switch(ht){case"appear":return tn={},Object(q.a)(tn,tt,Re),Object(q.a)(tn,lt,qe),Object(q.a)(tn,gt,At),tn;case"enter":return Kt={},Object(q.a)(Kt,tt,We),Object(q.a)(Kt,lt,Tt),Object(q.a)(Kt,gt,Dt),Kt;case"leave":return Tn={},Object(q.a)(Tn,tt,Fe),Object(q.a)(Tn,lt,Ct),Object(q.a)(Tn,gt,wt),Tn;default:return{}}},[ht]),yr=Vt(ht,function(tn){if(tn===tt){var Kt=gn[tt];return Kt?Kt(qn()):on}if(Qt in gn){var Tn;nn(((Tn=gn[Qt])===null||Tn===void 0?void 0:Tn.call(gn,qn(),null))||null)}return Qt===gt&&(bn(qn()),oe>0&&(clearTimeout(Dn.current),Dn.current=setTimeout(function(){jn({deadline:!0})},oe))),Jt}),br=Object(I.a)(yr,2),Dr=br[0],Qt=br[1],ur=Ut(Qt);Un.current=ur,bt(function(){_t(se);var tn=yn.current;if(yn.current=!0,!V)return;var Kt;!tn&&se&&ee&&(Kt=it),tn&&se&&z&&(Kt=ct),(tn&&!se&&fe||!tn&&_e&&!se&&fe)&&(Kt=ot),Kt&&(Bt(Kt),Dr())},[se]),Object(T.useEffect)(function(){(ht===it&&!ee||ht===ct&&!z||ht===ot&&!fe)&&Bt(Be)},[ee,z,fe]),Object(T.useEffect)(function(){return function(){clearTimeout(Dn.current),ln.current=!0}},[]),Object(T.useEffect)(function(){yt!==void 0&&ht===Be&&(Lt==null||Lt(yt))},[yt,ht]);var Lr=Xt;return gn[tt]&&Qt===lt&&(Lr=Object(M.a)({transition:"none"},Lr)),[ht,Qt,Lr,yt!=null?yt:se]}var un=function(V){Object(u.a)(de,V);var se=Object(a.a)(de);function de(){return Object(E.a)(this,de),se.apply(this,arguments)}return Object(m.a)(de,[{key:"render",value:function(){return this.props.children}}]),de}(T.Component),rn=un;function mn(V){var se=V;Object(A.a)(V)==="object"&&(se=V.transitionSupport);function de(F){return!!(F.motionName&&se)}var $=T.forwardRef(function(F,z){var H=F.visible,ee=H===void 0?!0:H,ae=F.removeOnLeave,fe=ae===void 0?!0:ae,oe=F.forceRender,_e=F.children,Re=F.motionName,We=F.leavedClassName,Fe=F.eventProps,qe=de(F),Tt=Object(T.useRef)(),Ct=Object(T.useRef)();function At(){try{return Object(dt.a)(Tt.current||Ct.current)}catch(Bt){return null}}var Dt=Wt(qe,ee,At,F),wt=Object(I.a)(Dt,4),St=wt[0],Rt=wt[1],Ft=wt[2],Lt=wt[3],sn=T.useRef(Lt);Lt&&(sn.current=!0);var Gt=Object(T.useRef)(z);Gt.current=z;var yt=T.useCallback(function(Bt){Tt.current=Bt,Object(ce.b)(Gt.current,Bt)},[]),_t,Mt=Object(M.a)(Object(M.a)({},Fe),{},{visible:ee});if(!_e)_t=null;else if(St===Be||!de(F))Lt?_t=_e(Object(M.a)({},Mt),yt):!fe&&sn.current?_t=_e(Object(M.a)(Object(M.a)({},Mt),{},{className:We}),yt):oe?_t=_e(Object(M.a)(Object(M.a)({},Mt),{},{style:{display:"none"}}),yt):_t=null;else{var kt,ht;Rt===tt?ht="prepare":Ut(Rt)?ht="active":Rt===lt&&(ht="start"),_t=_e(Object(M.a)(Object(M.a)({},Mt),{},{className:N()(Ye(Re,St),(kt={},Object(q.a)(kt,Ye(Re,"".concat(St,"-").concat(ht)),ht),Object(q.a)(kt,Re,typeof Re=="string"),kt)),style:Ft}),yt)}return T.createElement(rn,{ref:Ct},_t)});return $.displayName="CSSMotion",$}var wn=mn(Je),$n="add",Bn="keep",Ot="remove",Yn="removed";function dr(V){var se;return V&&Object(A.a)(V)==="object"&&"key"in V?se=V:se={key:V},Object(M.a)(Object(M.a)({},se),{},{key:String(se.key)})}function Hn(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return V.map(dr)}function Zt(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],de=[],$=0,F=se.length,z=Hn(V),H=Hn(se);z.forEach(function(fe){for(var oe=!1,_e=$;_e<F;_e+=1){var Re=H[_e];if(Re.key===fe.key){$<_e&&(de=de.concat(H.slice($,_e).map(function(We){return Object(M.a)(Object(M.a)({},We),{},{status:$n})})),$=_e),de.push(Object(M.a)(Object(M.a)({},Re),{},{status:Bn})),$+=1,oe=!0;break}}oe||de.push(Object(M.a)(Object(M.a)({},fe),{},{status:Ot}))}),$<F&&(de=de.concat(H.slice($).map(function(fe){return Object(M.a)(Object(M.a)({},fe),{},{status:$n})})));var ee={};de.forEach(function(fe){var oe=fe.key;ee[oe]=(ee[oe]||0)+1});var ae=Object.keys(ee).filter(function(fe){return ee[fe]>1});return ae.forEach(function(fe){de=de.filter(function(oe){var _e=oe.key,Re=oe.status;return _e!==fe||Re!==Ot}),de.forEach(function(oe){oe.key===fe&&(oe.status=Bn)})}),de}var _n=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function On(V){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:wn,de=function($){Object(u.a)(z,$);var F=Object(a.a)(z);function z(){var H;return Object(E.a)(this,z),H=F.apply(this,arguments),H.state={keyEntities:[]},H.removeKey=function(ee){H.setState(function(ae){var fe=ae.keyEntities;return{keyEntities:fe.map(function(oe){return oe.key!==ee?oe:Object(M.a)(Object(M.a)({},oe),{},{status:Yn})})}})},H}return Object(m.a)(z,[{key:"render",value:function(){var ee=this,ae=this.state.keyEntities,fe=this.props,oe=fe.component,_e=fe.children,Re=fe.onVisibleChanged,We=Object(R.a)(fe,["component","children","onVisibleChanged"]),Fe=oe||T.Fragment,qe={};return _n.forEach(function(Tt){qe[Tt]=We[Tt],delete We[Tt]}),delete We.keys,T.createElement(Fe,We,ae.map(function(Tt){var Ct=Tt.status,At=Object(R.a)(Tt,["status"]),Dt=Ct===$n||Ct===Bn;return T.createElement(se,Object(p.a)({},qe,{key:At.key,visible:Dt,eventProps:At,onVisibleChanged:function(St){Re==null||Re(St,{key:At.key}),St||ee.removeKey(At.key)}}),_e)}))}}],[{key:"getDerivedStateFromProps",value:function(ee,ae){var fe=ee.keys,oe=ae.keyEntities,_e=Hn(fe),Re=Zt(oe,_e);return{keyEntities:Re.filter(function(We){var Fe=oe.find(function(qe){var Tt=qe.key;return We.key===Tt});return!(Fe&&Fe.status===Yn&&We.status===Ot)})}}}]),z}(T.Component);return de.defaultProps={component:"div"},de}var pn=On(Je),fn=wn;function An(V){var se=V.prefixCls,de=V.motion,$=V.animation,F=V.transitionName;return de||($?{motionName:"".concat(se,"-").concat($)}:F?{motionName:F}:null)}function cr(V){var se=V.prefixCls,de=V.visible,$=V.zIndex,F=V.mask,z=V.maskMotion,H=V.maskAnimation,ee=V.maskTransitionName;if(!F)return null;var ae={};return(z||ee||H)&&(ae=Object(M.a)({motionAppear:!0},An({motion:z,prefixCls:se,transitionName:ee,animation:H}))),T.createElement(fn,Object(p.a)({},ae,{visible:de,removeOnLeave:!0}),function(fe){var oe=fe.className;return T.createElement("div",{style:{zIndex:$},className:N()("".concat(se,"-mask"),oe)})})}var Xn=k("9mu1"),fr=k("o0o1"),Wn=k.n(fr),Pr=k("HaE+"),er=["measure","align",null,"motion"],qt=function(V,se){var de=Object(T.useState)(null),$=Object(I.a)(de,2),F=$[0],z=$[1],H=Object(T.useRef)(),ee=Object(T.useRef)(!1);function ae(_e){ee.current||z(_e)}function fe(){Xe.a.cancel(H.current)}function oe(_e){fe(),H.current=Object(Xe.a)(function(){ae(function(Re){switch(F){case"align":return"motion";case"motion":return"stable";default:}return Re}),_e==null||_e()})}return Object(T.useEffect)(function(){ae("measure")},[V]),Object(T.useEffect)(function(){switch(F){case"measure":se();break;default:}F&&(H.current=Object(Xe.a)(Object(Pr.a)(Wn.a.mark(function _e(){var Re,We;return Wn.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:Re=er.indexOf(F),We=er[Re+1],We&&Re!==-1&&ae(We);case 3:case"end":return qe.stop()}},_e)}))))},[F]),Object(T.useEffect)(function(){return function(){ee.current=!0,fe()}},[]),[F,oe]},tr=function(V){var se=T.useState({width:0,height:0}),de=Object(I.a)(se,2),$=de[0],F=de[1];function z(ee){F({width:ee.offsetWidth,height:ee.offsetHeight})}var H=T.useMemo(function(){var ee={};if(V){var ae=$.width,fe=$.height;V.indexOf("height")!==-1&&fe?ee.height=fe:V.indexOf("minHeight")!==-1&&fe&&(ee.minHeight=fe),V.indexOf("width")!==-1&&ae?ee.width=ae:V.indexOf("minWidth")!==-1&&ae&&(ee.minWidth=ae)}return ee},[V,$]);return[H,z]},hr=T.forwardRef(function(V,se){var de=V.visible,$=V.prefixCls,F=V.className,z=V.style,H=V.children,ee=V.zIndex,ae=V.stretch,fe=V.destroyPopupOnHide,oe=V.forceRender,_e=V.align,Re=V.point,We=V.getRootDomNode,Fe=V.getClassNameFromAlign,qe=V.onAlign,Tt=V.onMouseEnter,Ct=V.onMouseLeave,At=V.onMouseDown,Dt=V.onTouchStart,wt=Object(T.useRef)(),St=Object(T.useRef)(),Rt=Object(T.useState)(),Ft=Object(I.a)(Rt,2),Lt=Ft[0],sn=Ft[1],Gt=tr(ae),yt=Object(I.a)(Gt,2),_t=yt[0],Mt=yt[1];function kt(){ae&&Mt(We())}var ht=qt(de,kt),Bt=Object(I.a)(ht,2),en=Bt[0],Ht=Bt[1],Xt=Object(T.useRef)();function nn(){return Re||We}function yn(){var cn;(cn=wt.current)===null||cn===void 0||cn.forceAlign()}function Dn(cn,Cn){var bn=Fe(Cn);Lt!==bn&&sn(bn),en==="align"&&(Lt!==bn?Promise.resolve().then(function(){yn()}):Ht(function(){var gn;(gn=Xt.current)===null||gn===void 0||gn.call(Xt)}),qe==null||qe(cn,Cn))}var ln=Object(M.a)({},An(V));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(cn){var Cn=ln[cn];ln[cn]=function(bn,gn){return Ht(),Cn==null?void 0:Cn(bn,gn)}});function Ln(){return new Promise(function(cn){Xt.current=cn})}T.useEffect(function(){!ln.motionName&&en==="motion"&&Ht()},[ln.motionName,en]),T.useImperativeHandle(se,function(){return{forceAlign:yn,getElement:function(){return St.current}}});var qn=Object(M.a)(Object(M.a)({},_t),{},{zIndex:ee,opacity:en==="motion"||en==="stable"||!de?void 0:0,pointerEvents:en==="stable"?void 0:"none"},z),Un=!0;(_e==null?void 0:_e.points)&&(en==="align"||en==="stable")&&(Un=!1);var jn=H;return T.Children.count(H)>1&&(jn=T.createElement("div",{className:"".concat($,"-content")},H)),T.createElement(fn,Object(p.a)({visible:de,ref:St,leavedClassName:"".concat($,"-hidden")},ln,{onAppearPrepare:Ln,onEnterPrepare:Ln,removeOnLeave:fe,forceRender:oe}),function(cn,Cn){var bn=cn.className,gn=cn.style,yr=N()($,F,Lt,bn);return T.createElement(Xn.a,{target:nn(),key:"popup",ref:wt,monitorWindowResize:!0,disabled:Un,align:_e,onAlign:Dn},T.createElement("div",{ref:Cn,className:yr,onMouseEnter:Tt,onMouseLeave:Ct,onMouseDownCapture:At,onTouchStartCapture:Dt,style:Object(M.a)(Object(M.a)({},gn),qn)},jn))})});hr.displayName="PopupInner";var xr=hr,Ae=T.forwardRef(function(V,se){var de=V.prefixCls,$=V.visible,F=V.zIndex,z=V.children,H=V.mobile;H=H===void 0?{}:H;var ee=H.popupClassName,ae=H.popupStyle,fe=H.popupMotion,oe=fe===void 0?{}:fe,_e=H.popupRender,Re=T.useRef();T.useImperativeHandle(se,function(){return{forceAlign:function(){},getElement:function(){return Re.current}}});var We=Object(M.a)({zIndex:F},ae),Fe=z;return T.Children.count(z)>1&&(Fe=T.createElement("div",{className:"".concat(de,"-content")},z)),_e&&(Fe=_e(Fe)),T.createElement(fn,Object(p.a)({visible:$,ref:Re,removeOnLeave:!0},oe),function(qe,Tt){var Ct=qe.className,At=qe.style,Dt=N()(de,ee,Ct);return T.createElement("div",{ref:Tt,className:Dt,style:Object(M.a)(Object(M.a)({},At),We)},Fe)})});Ae.displayName="MobilePopupInner";var Pn=Ae,nr=["visible","mobile"],Qn=T.forwardRef(function(V,se){var de=V.visible,$=V.mobile,F=Object(R.a)(V,nr),z=Object(T.useState)(de),H=Object(I.a)(z,2),ee=H[0],ae=H[1],fe=Object(T.useState)(!1),oe=Object(I.a)(fe,2),_e=oe[0],Re=oe[1],We=Object(M.a)(Object(M.a)({},F),{},{visible:ee});Object(T.useEffect)(function(){ae(de),de&&$&&Re(ie())},[de,$]);var Fe=_e?T.createElement(Pn,Object(p.a)({},We,{mobile:$,ref:se})):T.createElement(xr,Object(p.a)({},We,{ref:se}));return T.createElement("div",null,T.createElement(cr,We),Fe)});Qn.displayName="Popup";var Jr=Qn,Mr=T.createContext(null),dn=Mr;function Kn(){}function rr(){return""}function Zr(V){return V?V.ownerDocument:window.document}var Or=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function qr(V){var se=function(de){Object(u.a)(F,de);var $=Object(a.a)(F);function F(z){var H;Object(E.a)(this,F),H=$.call(this,z),H.popupRef=T.createRef(),H.triggerRef=T.createRef(),H.attachId=void 0,H.clickOutsideHandler=void 0,H.touchOutsideHandler=void 0,H.contextMenuOutsideHandler1=void 0,H.contextMenuOutsideHandler2=void 0,H.mouseDownTimeout=void 0,H.focusTime=void 0,H.preClickTime=void 0,H.preTouchTime=void 0,H.delayTimer=void 0,H.hasPopupMouseDown=void 0,H.onMouseEnter=function(ae){var fe=H.props.mouseEnterDelay;H.fireEvents("onMouseEnter",ae),H.delaySetPopupVisible(!0,fe,fe?null:ae)},H.onMouseMove=function(ae){H.fireEvents("onMouseMove",ae),H.setPoint(ae)},H.onMouseLeave=function(ae){H.fireEvents("onMouseLeave",ae),H.delaySetPopupVisible(!1,H.props.mouseLeaveDelay)},H.onPopupMouseEnter=function(){H.clearDelayTimer()},H.onPopupMouseLeave=function(ae){var fe;if(ae.relatedTarget&&!ae.relatedTarget.setTimeout&&Object(ut.a)((fe=H.popupRef.current)===null||fe===void 0?void 0:fe.getElement(),ae.relatedTarget))return;H.delaySetPopupVisible(!1,H.props.mouseLeaveDelay)},H.onFocus=function(ae){H.fireEvents("onFocus",ae),H.clearDelayTimer(),H.isFocusToShow()&&(H.focusTime=Date.now(),H.delaySetPopupVisible(!0,H.props.focusDelay))},H.onMouseDown=function(ae){H.fireEvents("onMouseDown",ae),H.preClickTime=Date.now()},H.onTouchStart=function(ae){H.fireEvents("onTouchStart",ae),H.preTouchTime=Date.now()},H.onBlur=function(ae){H.fireEvents("onBlur",ae),H.clearDelayTimer(),H.isBlurToHide()&&H.delaySetPopupVisible(!1,H.props.blurDelay)},H.onContextMenu=function(ae){ae.preventDefault(),H.fireEvents("onContextMenu",ae),H.setPopupVisible(!0,ae)},H.onContextMenuClose=function(){H.isContextMenuToShow()&&H.close()},H.onClick=function(ae){if(H.fireEvents("onClick",ae),H.focusTime){var fe;if(H.preClickTime&&H.preTouchTime?fe=Math.min(H.preClickTime,H.preTouchTime):H.preClickTime?fe=H.preClickTime:H.preTouchTime&&(fe=H.preTouchTime),Math.abs(fe-H.focusTime)<20)return;H.focusTime=0}H.preClickTime=0,H.preTouchTime=0,H.isClickToShow()&&(H.isClickToHide()||H.isBlurToHide())&&ae&&ae.preventDefault&&ae.preventDefault();var oe=!H.state.popupVisible;(H.isClickToHide()&&!oe||oe&&H.isClickToShow())&&H.setPopupVisible(!H.state.popupVisible,ae)},H.onPopupMouseDown=function(){if(H.hasPopupMouseDown=!0,clearTimeout(H.mouseDownTimeout),H.mouseDownTimeout=window.setTimeout(function(){H.hasPopupMouseDown=!1},0),H.context){var ae;(ae=H.context).onPopupMouseDown.apply(ae,arguments)}},H.onDocumentClick=function(ae){if(H.props.mask&&!H.props.maskClosable)return;var fe=ae.target,oe=H.getRootDomNode(),_e=H.getPopupDomNode();(!Object(ut.a)(oe,fe)||H.isContextMenuOnly())&&!Object(ut.a)(_e,fe)&&!H.hasPopupMouseDown&&H.close()},H.getRootDomNode=function(){var ae=H.props.getTriggerDOMNode;if(ae)return ae(H.triggerRef.current);try{var fe=Object(dt.a)(H.triggerRef.current);if(fe)return fe}catch(oe){}return $e.a.findDOMNode(Object(f.a)(H))},H.getPopupClassNameFromAlign=function(ae){var fe=[],oe=H.props,_e=oe.popupPlacement,Re=oe.builtinPlacements,We=oe.prefixCls,Fe=oe.alignPoint,qe=oe.getPopupClassNameFromAlign;return _e&&Re&&fe.push(Oe(Re,We,ae,Fe)),qe&&fe.push(qe(ae)),fe.join(" ")},H.getComponent=function(){var ae=H.props,fe=ae.prefixCls,oe=ae.destroyPopupOnHide,_e=ae.popupClassName,Re=ae.onPopupAlign,We=ae.popupMotion,Fe=ae.popupAnimation,qe=ae.popupTransitionName,Tt=ae.popupStyle,Ct=ae.mask,At=ae.maskAnimation,Dt=ae.maskTransitionName,wt=ae.maskMotion,St=ae.zIndex,Rt=ae.popup,Ft=ae.stretch,Lt=ae.alignPoint,sn=ae.mobile,Gt=ae.forceRender,yt=H.state,_t=yt.popupVisible,Mt=yt.point,kt=H.getPopupAlign(),ht={};return H.isMouseEnterToShow()&&(ht.onMouseEnter=H.onPopupMouseEnter),H.isMouseLeaveToHide()&&(ht.onMouseLeave=H.onPopupMouseLeave),ht.onMouseDown=H.onPopupMouseDown,ht.onTouchStart=H.onPopupMouseDown,T.createElement(Jr,Object(p.a)({prefixCls:fe,destroyPopupOnHide:oe,visible:_t,point:Lt&&Mt,className:_e,align:kt,onAlign:Re,animation:Fe,getClassNameFromAlign:H.getPopupClassNameFromAlign},ht,{stretch:Ft,getRootDomNode:H.getRootDomNode,style:Tt,mask:Ct,zIndex:St,transitionName:qe,maskAnimation:At,maskTransitionName:Dt,maskMotion:wt,ref:H.popupRef,motion:We,mobile:sn,forceRender:Gt}),typeof Rt=="function"?Rt():Rt)},H.attachParent=function(ae){Xe.a.cancel(H.attachId);var fe=H.props,oe=fe.getPopupContainer,_e=fe.getDocument,Re=H.getRootDomNode(),We;oe?(Re||oe.length===0)&&(We=oe(Re)):We=_e(H.getRootDomNode()).body,We?We.appendChild(ae):H.attachId=Object(Xe.a)(function(){H.attachParent(ae)})},H.getContainer=function(){var ae=H.props.getDocument,fe=ae(H.getRootDomNode()).createElement("div");return fe.style.position="absolute",fe.style.top="0",fe.style.left="0",fe.style.width="100%",H.attachParent(fe),fe},H.setPoint=function(ae){var fe=H.props.alignPoint;if(!fe||!ae)return;H.setState({point:{pageX:ae.pageX,pageY:ae.pageY}})},H.handlePortalUpdate=function(){H.state.prevPopupVisible!==H.state.popupVisible&&H.props.afterPopupVisibleChange(H.state.popupVisible)},H.triggerContextValue={onPopupMouseDown:H.onPopupMouseDown};var ee;return"popupVisible"in z?ee=!!z.popupVisible:ee=!!z.defaultPopupVisible,H.state={prevPopupVisible:ee,popupVisible:ee},Or.forEach(function(ae){H["fire".concat(ae)]=function(fe){H.fireEvents(ae,fe)}}),H}return Object(m.a)(F,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var H=this.props,ee=this.state;if(ee.popupVisible){var ae;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(ae=H.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(ve.a)(ae,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(ae=ae||H.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(ve.a)(ae,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(ae=ae||H.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(ve.a)(ae,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(ve.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Xe.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var H;return((H=this.popupRef.current)===null||H===void 0?void 0:H.getElement())||null}},{key:"getPopupAlign",value:function(){var H=this.props,ee=H.popupPlacement,ae=H.popupAlign,fe=H.builtinPlacements;return ee&&fe?pe(fe,ee,ae):ae}},{key:"setPopupVisible",value:function(H,ee){var ae=this.props.alignPoint,fe=this.state.popupVisible;this.clearDelayTimer(),fe!==H&&("popupVisible"in this.props||this.setState({popupVisible:H,prevPopupVisible:fe}),this.props.onPopupVisibleChange(H)),ae&&ee&&H&&this.setPoint(ee)}},{key:"delaySetPopupVisible",value:function(H,ee,ae){var fe=this,oe=ee*1e3;if(this.clearDelayTimer(),oe){var _e=ae?{pageX:ae.pageX,pageY:ae.pageY}:null;this.delayTimer=window.setTimeout(function(){fe.setPopupVisible(H,_e),fe.clearDelayTimer()},oe)}else this.setPopupVisible(H,ae)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(H){var ee=this.props.children.props,ae=this.props;return ee[H]&&ae[H]?this["fire".concat(H)]:ee[H]||ae[H]}},{key:"isClickToShow",value:function(){var H=this.props,ee=H.action,ae=H.showAction;return ee.indexOf("click")!==-1||ae.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var H=this.props.action;return H==="contextMenu"||H.length===1&&H[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var H=this.props,ee=H.action,ae=H.showAction;return ee.indexOf("contextMenu")!==-1||ae.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var H=this.props,ee=H.action,ae=H.hideAction;return ee.indexOf("click")!==-1||ae.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var H=this.props,ee=H.action,ae=H.showAction;return ee.indexOf("hover")!==-1||ae.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var H=this.props,ee=H.action,ae=H.hideAction;return ee.indexOf("hover")!==-1||ae.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var H=this.props,ee=H.action,ae=H.showAction;return ee.indexOf("focus")!==-1||ae.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var H=this.props,ee=H.action,ae=H.hideAction;return ee.indexOf("focus")!==-1||ae.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var H;(H=this.popupRef.current)===null||H===void 0||H.forceAlign()}}},{key:"fireEvents",value:function(H,ee){var ae=this.props.children.props[H];ae&&ae(ee);var fe=this.props[H];fe&&fe(ee)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var H=this.state.popupVisible,ee=this.props,ae=ee.children,fe=ee.forceRender,oe=ee.alignPoint,_e=ee.className,Re=ee.autoDestroy,We=T.Children.only(ae),Fe={key:"trigger"};this.isContextMenuToShow()?Fe.onContextMenu=this.onContextMenu:Fe.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(Fe.onClick=this.onClick,Fe.onMouseDown=this.onMouseDown,Fe.onTouchStart=this.onTouchStart):(Fe.onClick=this.createTwoChains("onClick"),Fe.onMouseDown=this.createTwoChains("onMouseDown"),Fe.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(Fe.onMouseEnter=this.onMouseEnter,oe&&(Fe.onMouseMove=this.onMouseMove)):Fe.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?Fe.onMouseLeave=this.onMouseLeave:Fe.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(Fe.onFocus=this.onFocus,Fe.onBlur=this.onBlur):(Fe.onFocus=this.createTwoChains("onFocus"),Fe.onBlur=this.createTwoChains("onBlur"));var qe=N()(We&&We.props&&We.props.className,_e);qe&&(Fe.className=qe);var Tt=Object(M.a)({},Fe);Object(ce.c)(We)&&(Tt.ref=Object(ce.a)(this.triggerRef,We.ref));var Ct=T.cloneElement(We,Tt),At;return(H||this.popupRef.current||fe)&&(At=T.createElement(V,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!H&&Re&&(At=null),T.createElement(dn.Provider,{value:this.triggerContextValue},Ct,At)}}],[{key:"getDerivedStateFromProps",value:function(H,ee){var ae=H.popupVisible,fe={};return ae!==void 0&&ee.popupVisible!==ae&&(fe.popupVisible=ae,fe.prevPopupVisible=ee.popupVisible),fe}}]),F}(T.Component);return se.contextType=dn,se.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:rr,getDocument:Zr,onPopupVisibleChange:Kn,afterPopupVisibleChange:Kn,onPopupAlign:Kn,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},se}var Nr=qr(xe.a),Mn={adjustX:1,adjustY:1},pr={topLeft:{points:["bl","tl"],overflow:Mn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Mn,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Mn,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Mn,offset:[4,0]}},kr={topLeft:{points:["bl","tl"],overflow:Mn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Mn,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Mn,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Mn,offset:[4,0]}},mr=pr,xn=0,Sn={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},In=function(se,de,$){var F=Pe(de),z=se.getState();se.setState({defaultActiveFirst:Object(M.a)(Object(M.a)({},z.defaultActiveFirst),{},Object(q.a)({},F,$))})},Ar=function(V){Object(u.a)(de,V);var se=Object(a.a)(de);function de($){var F;Object(E.a)(this,de),F=se.call(this,$),F.onDestroy=function(oe){F.props.onDestroy(oe)},F.onKeyDown=function(oe){var _e=oe.keyCode,Re=F.menuInstance,We=F.props.store,Fe=F.getVisible();if(_e===i.a.ENTER)return F.onTitleClick(oe),In(We,F.props.eventKey,!0),!0;if(_e===i.a.RIGHT)return Fe?Re.onKeyDown(oe):(F.triggerOpenChange(!0),In(We,F.props.eventKey,!0)),!0;if(_e===i.a.LEFT){var qe;if(Fe)qe=Re.onKeyDown(oe);else return;return qe||(F.triggerOpenChange(!1),qe=!0),qe}return Fe&&(_e===i.a.UP||_e===i.a.DOWN)?Re.onKeyDown(oe):void 0},F.onOpenChange=function(oe){F.props.onOpenChange(oe)},F.onPopupVisibleChange=function(oe){F.triggerOpenChange(oe,oe?"mouseenter":"mouseleave")},F.onMouseEnter=function(oe){var _e=F.props,Re=_e.eventKey,We=_e.onMouseEnter,Fe=_e.store;In(Fe,F.props.eventKey,!1),We({key:Re,domEvent:oe})},F.onMouseLeave=function(oe){var _e=F.props,Re=_e.parentMenu,We=_e.eventKey,Fe=_e.onMouseLeave;Re.subMenuInstance=Object(f.a)(F),Fe({key:We,domEvent:oe})},F.onTitleMouseEnter=function(oe){var _e=F.props,Re=_e.eventKey,We=_e.onItemHover,Fe=_e.onTitleMouseEnter;We({key:Re,hover:!0}),Fe({key:Re,domEvent:oe})},F.onTitleMouseLeave=function(oe){var _e=F.props,Re=_e.parentMenu,We=_e.eventKey,Fe=_e.onItemHover,qe=_e.onTitleMouseLeave;Re.subMenuInstance=Object(f.a)(F),Fe({key:We,hover:!1}),qe({key:We,domEvent:oe})},F.onTitleClick=function(oe){var _e=Object(f.a)(F),Re=_e.props;if(Re.onTitleClick({key:Re.eventKey,domEvent:oe}),Re.triggerSubMenuAction==="hover")return;F.triggerOpenChange(!F.getVisible(),"click"),In(Re.store,F.props.eventKey,!1)},F.onSubMenuClick=function(oe){typeof F.props.onClick=="function"&&F.props.onClick(F.addKeyPath(oe))},F.onSelect=function(oe){F.props.onSelect(oe)},F.onDeselect=function(oe){F.props.onDeselect(oe)},F.getPrefixCls=function(){return"".concat(F.props.rootPrefixCls,"-submenu")},F.getActiveClassName=function(){return"".concat(F.getPrefixCls(),"-active")},F.getDisabledClassName=function(){return"".concat(F.getPrefixCls(),"-disabled")},F.getSelectedClassName=function(){return"".concat(F.getPrefixCls(),"-selected")},F.getOpenClassName=function(){return"".concat(F.props.rootPrefixCls,"-submenu-open")},F.getVisible=function(){return F.state.isOpen},F.getMode=function(){return F.state.mode},F.saveMenuInstance=function(oe){F.menuInstance=oe},F.addKeyPath=function(oe){return Object(M.a)(Object(M.a)({},oe),{},{keyPath:(oe.keyPath||[]).concat(F.props.eventKey)})},F.triggerOpenChange=function(oe,_e){var Re=F.props.eventKey,We=function(){F.onOpenChange({key:Re,item:Object(f.a)(F),trigger:_e,open:oe})};_e==="mouseenter"?F.mouseenterTimeout=setTimeout(function(){We()},0):We()},F.isChildrenSelected=function(){var oe={find:!1};return je(F.props.children,F.props.selectedKeys,oe),oe.find},F.isInlineMode=function(){return F.getMode()==="inline"},F.adjustWidth=function(){if(!F.subMenuTitle||!F.menuInstance)return;var oe=nt.findDOMNode(F.menuInstance);if(oe.offsetWidth>=F.subMenuTitle.offsetWidth)return;oe.style.minWidth="".concat(F.subMenuTitle.offsetWidth,"px")},F.saveSubMenuTitle=function(oe){F.subMenuTitle=oe},F.getBaseProps=function(){var oe=Object(f.a)(F),_e=oe.props,Re=F.getMode();return{mode:Re==="horizontal"?"vertical":Re,visible:F.getVisible(),level:_e.level+1,inlineIndent:_e.inlineIndent,focusable:!1,onClick:F.onSubMenuClick,onSelect:F.onSelect,onDeselect:F.onDeselect,onDestroy:F.onDestroy,selectedKeys:_e.selectedKeys,eventKey:"".concat(_e.eventKey,"-menu-"),openKeys:_e.openKeys,motion:_e.motion,onOpenChange:F.onOpenChange,subMenuOpenDelay:_e.subMenuOpenDelay,parentMenu:Object(f.a)(F),subMenuCloseDelay:_e.subMenuCloseDelay,forceSubMenuRender:_e.forceSubMenuRender,triggerSubMenuAction:_e.triggerSubMenuAction,builtinPlacements:_e.builtinPlacements,defaultActiveFirst:_e.store.getState().defaultActiveFirst[Pe(_e.eventKey)],multiple:_e.multiple,prefixCls:_e.rootPrefixCls,id:F.internalMenuId,manualRef:F.saveMenuInstance,itemIcon:_e.itemIcon,expandIcon:_e.expandIcon,direction:_e.direction}},F.getMotion=function(oe,_e){var Re=Object(f.a)(F),We=Re.haveRendered,Fe=F.props,qe=Fe.motion,Tt=Fe.rootPrefixCls,Ct=Object(M.a)(Object(M.a)({},qe),{},{leavedClassName:"".concat(Tt,"-hidden"),removeOnLeave:!1,motionAppear:We||!_e||oe!=="inline"});return Ct};var z=$.store,H=$.eventKey,ee=z.getState(),ae=ee.defaultActiveFirst;F.isRootMenu=!1;var fe=!1;return ae&&(fe=ae[H]),In(z,H,fe),F.state={mode:$.mode,isOpen:$.isOpen},F}return Object(m.a)(de,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var F=this,z=this.props,H=z.mode,ee=z.parentMenu,ae=z.manualRef,fe=z.isOpen,oe=function(){F.setState({mode:H,isOpen:fe})},_e=fe!==this.state.isOpen,Re=H!==this.state.mode;if((Re||_e)&&(Xe.a.cancel(this.updateStateRaf),Re?this.updateStateRaf=Object(Xe.a)(oe):oe()),ae&&ae(this),H!=="horizontal"||!(ee==null?void 0:ee.isRootMenu)||!fe)return;this.minWidthTimeout=setTimeout(function(){return F.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var F=this.props,z=F.onDestroy,H=F.eventKey;z&&z(H),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),Xe.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(F,z){var H=this.getBaseProps();return T.createElement(sr,Object(p.a)({},H,{id:this.internalMenuId,className:F,style:z}),this.props.children)}},{key:"renderChildren",value:function(){var F=this,z=this.getBaseProps(),H=z.mode,ee=z.visible,ae=z.forceSubMenuRender,fe=z.direction,oe=this.getMotion(H,ee);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||ee||ae,!this.haveOpened)return T.createElement("div",null);var _e=N()("".concat(z.prefixCls,"-sub"),Object(q.a)({},"".concat(z.prefixCls,"-rtl"),fe==="rtl"));return this.isInlineMode()?T.createElement(fn,Object(p.a)({visible:z.visible,forceRender:ae},oe),function(Re){var We=Re.className,Fe=Re.style,qe=N()(_e,We);return F.renderPopupMenu(qe,Fe)}):this.renderPopupMenu(_e)}},{key:"render",value:function(){var F,z,H,ee=Object(M.a)({},this.props),ae=this.getVisible(),fe=this.getPrefixCls(),oe=this.isInlineMode(),_e=this.getMode(),Re=N()(fe,"".concat(fe,"-").concat(_e),(F={},Object(q.a)(F,ee.className,!!ee.className),Object(q.a)(F,this.getOpenClassName(),ae),Object(q.a)(F,this.getActiveClassName(),ee.active||ae&&!oe),Object(q.a)(F,this.getDisabledClassName(),ee.disabled),Object(q.a)(F,this.getSelectedClassName(),this.isChildrenSelected()),F));this.internalMenuId||(ee.eventKey?this.internalMenuId="".concat(ee.eventKey,"$Menu"):(xn+=1,this.internalMenuId="$__$".concat(xn,"$Menu")));var We={},Fe={},qe={};ee.disabled||(We={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},Fe={onClick:this.onTitleClick},qe={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var Tt={},Ct=ee.direction,At=Ct==="rtl";oe&&(At?Tt.paddingRight=ee.inlineIndent*ee.level:Tt.paddingLeft=ee.inlineIndent*ee.level);var Dt={};this.getVisible()&&(Dt={"aria-owns":this.internalMenuId});var wt=null;_e!=="horizontal"&&(wt=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(wt=T.createElement(this.props.expandIcon,Object(M.a)({},this.props))));var St=T.createElement("div",Object(p.a)({ref:this.saveSubMenuTitle,style:Tt,className:"".concat(fe,"-title"),role:"button"},qe,Fe,{"aria-expanded":ae},Dt,{"aria-haspopup":"true",title:typeof ee.title=="string"?ee.title:void 0}),ee.title,wt||T.createElement("i",{className:"".concat(fe,"-arrow")})),Rt=this.renderChildren(),Ft=((z=ee.parentMenu)===null||z===void 0?void 0:z.isRootMenu)?ee.parentMenu.props.getPopupContainer:function(nn){return nn.parentNode},Lt=Sn[_e],sn=ee.popupOffset?{offset:ee.popupOffset}:{},Gt=N()((H={},Object(q.a)(H,ee.popupClassName,ee.popupClassName&&!oe),Object(q.a)(H,"".concat(fe,"-rtl"),At),H)),yt=ee.disabled,_t=ee.triggerSubMenuAction,Mt=ee.subMenuOpenDelay,kt=ee.forceSubMenuRender,ht=ee.subMenuCloseDelay,Bt=ee.builtinPlacements;Ve.forEach(function(nn){return delete ee[nn]}),delete ee.onClick;var en=At?Object(M.a)(Object(M.a)({},kr),Bt):Object(M.a)(Object(M.a)({},pr),Bt);delete ee.direction;var Ht=this.getBaseProps(),Xt=oe?null:this.getMotion(Ht.mode,Ht.visible);return T.createElement("li",Object(p.a)({},ee,We,{className:Re,role:"menuitem"}),T.createElement(Nr,{prefixCls:fe,popupClassName:N()("".concat(fe,"-popup"),Gt),getPopupContainer:Ft,builtinPlacements:en,popupPlacement:Lt,popupVisible:oe?!1:ae,popupAlign:sn,popup:oe?null:Rt,action:yt||oe?[]:[_t],mouseEnterDelay:Mt,mouseLeaveDelay:ht,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:kt,popupMotion:Xt},St),oe?Rt:null)}}]),de}(T.Component);Ar.defaultProps={onMouseEnter:Ue,onMouseLeave:Ue,onTitleMouseEnter:Ue,onTitleMouseLeave:Ue,onTitleClick:Ue,manualRef:Ue,mode:"vertical",title:""};var ar=Object(l.b)(function(V,se){var de=V.openKeys,$=V.activeKey,F=V.selectedKeys,z=se.eventKey,H=se.subMenuKey;return{isOpen:de.indexOf(z)>-1,active:$[H]===z,selectedKeys:F}})(Ar);ar.isSubMenu=!0;var Jn=ar,Ur="menuitem-overflowed",jr=.5,Fr=function(V){Object(u.a)(de,V);var se=Object(a.a)(de);function de(){var $;return Object(E.a)(this,de),$=se.apply(this,arguments),$.resizeObserver=null,$.mutationObserver=null,$.originalTotalWidth=0,$.overflowedItems=[],$.menuItemSizes=[],$.cancelFrameId=null,$.state={lastVisibleIndex:void 0},$.childRef=T.createRef(),$.getMenuItemNodes=function(){var F=$.props.prefixCls,z=$.childRef.current;return z?[].slice.call(z.children).filter(function(H){return H.className.split(" ").indexOf("".concat(F,"-overflowed-submenu"))<0}):[]},$.getOverflowedSubMenuItem=function(F,z,H){var ee=$.props,ae=ee.overflowedIndicator,fe=ee.level,oe=ee.mode,_e=ee.prefixCls,Re=ee.theme;if(fe!==1||oe!=="horizontal")return null;var We=$.props.children[0],Fe=We.props,qe=Fe.children,Tt=Fe.title,Ct=Fe.style,At=Object(R.a)(Fe,["children","title","style"]),Dt=Object(M.a)({},Ct),wt="".concat(F,"-overflowed-indicator"),St="".concat(F,"-overflowed-indicator");z.length===0&&H!==!0?Dt=Object(M.a)(Object(M.a)({},Dt),{},{display:"none"}):H&&(Dt=Object(M.a)(Object(M.a)({},Dt),{},{visibility:"hidden",position:"absolute"}),wt="".concat(wt,"-placeholder"),St="".concat(St,"-placeholder"));var Rt=Re?"".concat(_e,"-").concat(Re):"",Ft={};return Ve.forEach(function(Lt){At[Lt]!==void 0&&(Ft[Lt]=At[Lt])}),T.createElement(Jn,Object(p.a)({title:ae,className:"".concat(_e,"-overflowed-submenu"),popupClassName:Rt},Ft,{key:wt,eventKey:St,disabled:!1,style:Dt}),z)},$.setChildrenWidthAndResize=function(){if($.props.mode!=="horizontal")return;var F=$.childRef.current;if(!F)return;var z=F.children;if(!z||z.length===0)return;var H=F.children[z.length-1];Ie(H,"display","inline-block");var ee=$.getMenuItemNodes(),ae=ee.filter(function(fe){return fe.className.split(" ").indexOf(Ur)>=0});ae.forEach(function(fe){Ie(fe,"display","inline-block")}),$.menuItemSizes=ee.map(function(fe){return Ke(fe,!0)}),ae.forEach(function(fe){Ie(fe,"display","none")}),$.overflowedIndicatorWidth=Ke(F.children[F.children.length-1],!0),$.originalTotalWidth=$.menuItemSizes.reduce(function(fe,oe){return fe+oe},0),$.handleResize(),Ie(H,"display","none")},$.handleResize=function(){if($.props.mode!=="horizontal")return;var F=$.childRef.current;if(!F)return;var z=Ke(F);$.overflowedItems=[];var H=0,ee;$.originalTotalWidth>z+jr&&(ee=-1,$.menuItemSizes.forEach(function(ae){H+=ae,H+$.overflowedIndicatorWidth<=z&&(ee+=1)})),$.setState({lastVisibleIndex:ee})},$}return Object(m.a)(de,[{key:"componentDidMount",value:function(){var F=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var z=this.childRef.current;if(!z)return;this.resizeObserver=new st.default(function(H){H.forEach(function(){var ee=F.cancelFrameId;cancelAnimationFrame(ee),F.cancelFrameId=requestAnimationFrame(F.setChildrenWidthAndResize)})}),[].slice.call(z.children).concat(z).forEach(function(H){F.resizeObserver.observe(H)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){F.resizeObserver.disconnect(),[].slice.call(z.children).concat(z).forEach(function(H){F.resizeObserver.observe(H)}),F.setChildrenWidthAndResize()}),this.mutationObserver.observe(z,{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(F){var z=this,H=this.state.lastVisibleIndex;return(F||[]).reduce(function(ee,ae,fe){var oe=ae;if(z.props.mode==="horizontal"){var _e=z.getOverflowedSubMenuItem(ae.props.eventKey,[]);H!==void 0&&z.props.className.indexOf("".concat(z.props.prefixCls,"-root"))!==-1&&(fe>H&&(oe=T.cloneElement(ae,{style:{display:"none"},eventKey:"".concat(ae.props.eventKey,"-hidden"),className:"".concat(Ur)})),fe===H+1&&(z.overflowedItems=F.slice(H+1).map(function(We){return T.cloneElement(We,{key:We.props.eventKey,mode:"vertical-left"})}),_e=z.getOverflowedSubMenuItem(ae.props.eventKey,z.overflowedItems)));var Re=[].concat(Object(O.a)(ee),[_e,oe]);return fe===F.length-1&&Re.push(z.getOverflowedSubMenuItem(ae.props.eventKey,[],!0)),Re}return[].concat(Object(O.a)(ee),[oe])},[])}},{key:"render",value:function(){var F=this.props,z=F.visible,H=F.prefixCls,ee=F.overflowedIndicator,ae=F.mode,fe=F.level,oe=F.tag,_e=F.children,Re=F.theme,We=Object(R.a)(F,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),Fe=oe;return T.createElement(Fe,Object(p.a)({ref:this.childRef},We),this.renderChildren(_e))}}]),de}(T.Component);Fr.defaultProps={tag:"div",className:""};var gr=Fr;function vr(V){return V.length?V.every(function(se){return!!se.props.disabled}):!0}function Nn(V,se,de){var $=V.getState();V.setState({activeKey:Object(M.a)(Object(M.a)({},$.activeKey),{},Object(q.a)({},se,de))})}function Gn(V){return V.eventKey||"0-menu-"}function ir(V,se){var de=se,$=V.children,F=V.eventKey;if(de){var z;if(Me($,function(H,ee){H&&H.props&&!H.props.disabled&&de===Ze(H,F,ee)&&(z=!0)}),z)return de}return de=null,V.defaultActiveFirst&&Me($,function(H,ee){!de&&H&&!H.props.disabled&&(de=Ze(H,F,ee))}),de}function zn(V){if(!V)return;var se=this.instanceArray.indexOf(V);se!==-1?this.instanceArray[se]=V:this.instanceArray.push(V)}var Br=function(V){Object(u.a)(de,V);var se=Object(a.a)(de);function de($){var F;return Object(E.a)(this,de),F=se.call(this,$),F.onKeyDown=function(z,H){var ee=z.keyCode,ae;if(F.getFlatInstanceArray().forEach(function(oe){oe&&oe.props.active&&oe.onKeyDown&&(ae=oe.onKeyDown(z))}),ae)return 1;var fe=null;return(ee===i.a.UP||ee===i.a.DOWN)&&(fe=F.step(ee===i.a.UP?-1:1)),fe?(z.preventDefault(),Nn(F.props.store,Gn(F.props),fe.props.eventKey),typeof H=="function"&&H(fe),1):void 0},F.onItemHover=function(z){var H=z.key,ee=z.hover;Nn(F.props.store,Gn(F.props),ee?H:null)},F.onDeselect=function(z){F.props.onDeselect(z)},F.onSelect=function(z){F.props.onSelect(z)},F.onClick=function(z){F.props.onClick(z)},F.onOpenChange=function(z){F.props.onOpenChange(z)},F.onDestroy=function(z){F.props.onDestroy(z)},F.getFlatInstanceArray=function(){return F.instanceArray},F.step=function(z){var H=F.getFlatInstanceArray(),ee=F.props.store.getState().activeKey[Gn(F.props)],ae=H.length;if(!ae)return null;z<0&&(H=H.concat().reverse());var fe=-1;if(H.every(function(We,Fe){return We&&We.props.eventKey===ee?(fe=Fe,!1):!0}),!F.props.defaultActiveFirst&&fe!==-1&&vr(H.slice(fe,ae-1)))return;var oe=(fe+1)%ae,_e=oe;do{var Re=H[_e];if(!Re||Re.props.disabled)_e=(_e+1)%ae;else return Re}while(_e!==oe);return null},F.renderCommonMenuItem=function(z,H,ee){var ae=F.props.store.getState(),fe=Object(f.a)(F),oe=fe.props,_e=Ze(z,oe.eventKey,H),Re=z.props;if(!Re||typeof z.type=="string")return z;var We=_e===ae.activeKey,Fe=Object(M.a)(Object(M.a)({mode:Re.mode||oe.mode,level:oe.level,inlineIndent:oe.inlineIndent,renderMenuItem:F.renderMenuItem,rootPrefixCls:oe.prefixCls,index:H,parentMenu:oe.parentMenu,manualRef:Re.disabled?void 0:Object(d.a)(z.ref,zn.bind(Object(f.a)(F))),eventKey:_e,active:!Re.disabled&&We,multiple:oe.multiple,onClick:function(Tt){(Re.onClick||Ue)(Tt),F.onClick(Tt)},onItemHover:F.onItemHover,motion:oe.motion,subMenuOpenDelay:oe.subMenuOpenDelay,subMenuCloseDelay:oe.subMenuCloseDelay,forceSubMenuRender:oe.forceSubMenuRender,onOpenChange:F.onOpenChange,onDeselect:F.onDeselect,onSelect:F.onSelect,builtinPlacements:oe.builtinPlacements,itemIcon:Re.itemIcon||F.props.itemIcon,expandIcon:Re.expandIcon||F.props.expandIcon},ee),{},{direction:oe.direction});return(oe.mode==="inline"||Le())&&(Fe.triggerSubMenuAction="click"),T.cloneElement(z,Object(M.a)(Object(M.a)({},Fe),{},{key:_e||H}))},F.renderMenuItem=function(z,H,ee){if(!z)return null;var ae=F.props.store.getState(),fe={openKeys:ae.openKeys,selectedKeys:ae.selectedKeys,triggerSubMenuAction:F.props.triggerSubMenuAction,subMenuKey:ee};return F.renderCommonMenuItem(z,H,fe)},$.store.setState({activeKey:Object(M.a)(Object(M.a)({},$.store.getState().activeKey),{},Object(q.a)({},$.eventKey,ir($,$.activeKey)))}),F.instanceArray=[],F}return Object(m.a)(de,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(F){return this.props.visible||F.visible||this.props.className!==F.className||!w()(this.props.style,F.style)}},{key:"componentDidUpdate",value:function(F){var z=this.props,H="activeKey"in z?z.activeKey:z.store.getState().activeKey[Gn(z)],ee=ir(z,H);if(ee!==H)Nn(z.store,Gn(z),ee);else if("activeKey"in F){var ae=ir(F,F.activeKey);ee!==ae&&Nn(z.store,Gn(z),ee)}}},{key:"render",value:function(){var F=this,z=Object(p.a)({},this.props);this.instanceArray=[];var H=N()(z.prefixCls,z.className,"".concat(z.prefixCls,"-").concat(z.mode)),ee={className:H,role:z.role||"menu"};z.id&&(ee.id=z.id),z.focusable&&(ee.tabIndex=0,ee.onKeyDown=this.onKeyDown);var ae=z.prefixCls,fe=z.eventKey,oe=z.visible,_e=z.level,Re=z.mode,We=z.overflowedIndicator,Fe=z.theme;return Ve.forEach(function(qe){return delete z[qe]}),delete z.onClick,T.createElement(gr,Object(p.a)({},z,{prefixCls:ae,mode:Re,tag:"ul",level:_e,theme:Fe,visible:oe,overflowedIndicator:We},ee),Object(L.a)(z.children).map(function(qe,Tt){return F.renderMenuItem(qe,Tt,fe||"0-menu-")}))}}]),de}(T.Component);Br.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:Ue};var Hr=Object(l.b)()(Br),sr=Hr,Vn=k("Kwbf");function _r(V,se,de){var $=V.prefixCls,F=V.motion,z=V.defaultMotions,H=z===void 0?{}:z,ee=V.openAnimation,ae=V.openTransitionName,fe=se.switchingModeFromInline;if(F)return F;if(Object(A.a)(ee)==="object"&&ee)Object(Vn.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof ee=="string")return{motionName:"".concat($,"-open-").concat(ee)};if(ae)return{motionName:ae};var oe=H[de];return oe||(fe?null:H.other)}var Wr=function(V){Object(u.a)(de,V);var se=Object(a.a)(de);function de($){var F;Object(E.a)(this,de),F=se.call(this,$),F.onSelect=function(ee){var ae=Object(f.a)(F),fe=ae.props;if(fe.selectable){var oe=F.store.getState(),_e=oe.selectedKeys,Re=ee.key;fe.multiple?_e=_e.concat([Re]):_e=[Re],"selectedKeys"in fe||F.store.setState({selectedKeys:_e}),fe.onSelect(Object(M.a)(Object(M.a)({},ee),{},{selectedKeys:_e}))}},F.onClick=function(ee){var ae=F.getRealMenuMode(),fe=Object(f.a)(F),oe=fe.store,_e=fe.props.onOpenChange;ae!=="inline"&&!("openKeys"in F.props)&&(oe.setState({openKeys:[]}),_e([])),F.props.onClick(ee)},F.onKeyDown=function(ee,ae){F.innerMenu.getWrappedInstance().onKeyDown(ee,ae)},F.onOpenChange=function(ee){var ae=Object(f.a)(F),fe=ae.props,oe=F.store.getState().openKeys.concat(),_e=!1,Re=function(Fe){var qe=!1;if(Fe.open)qe=oe.indexOf(Fe.key)===-1,qe&&oe.push(Fe.key);else{var Tt=oe.indexOf(Fe.key);qe=Tt!==-1,qe&&oe.splice(Tt,1)}_e=_e||qe};Array.isArray(ee)?ee.forEach(Re):Re(ee),_e&&("openKeys"in F.props||F.store.setState({openKeys:oe}),fe.onOpenChange(oe))},F.onDeselect=function(ee){var ae=Object(f.a)(F),fe=ae.props;if(fe.selectable){var oe=F.store.getState().selectedKeys.concat(),_e=ee.key,Re=oe.indexOf(_e);Re!==-1&&oe.splice(Re,1),"selectedKeys"in fe||F.store.setState({selectedKeys:oe}),fe.onDeselect(Object(M.a)(Object(M.a)({},ee),{},{selectedKeys:oe}))}},F.onMouseEnter=function(ee){F.restoreModeVerticalFromInline();var ae=F.props.onMouseEnter;ae&&ae(ee)},F.onTransitionEnd=function(ee){var ae=ee.propertyName==="width"&&ee.target===ee.currentTarget,fe=ee.target.className,oe=Object.prototype.toString.call(fe)==="[object SVGAnimatedString]"?fe.animVal:fe,_e=ee.propertyName==="font-size"&&oe.indexOf("anticon")>=0;(ae||_e)&&F.restoreModeVerticalFromInline()},F.setInnerMenu=function(ee){F.innerMenu=ee},F.isRootMenu=!0;var z=$.defaultSelectedKeys,H=$.defaultOpenKeys;return"selectedKeys"in $&&(z=$.selectedKeys||[]),"openKeys"in $&&(H=$.openKeys||[]),F.store=Object(l.c)({selectedKeys:z,openKeys:H,activeKey:{"0-menu-":ir($,$.activeKey)}}),F.state={switchingModeFromInline:!1,prevProps:$,inlineOpenKeys:[],store:F.store},F}return Object(m.a)(de,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(F){var z=this.props,H=z.siderCollapsed,ee=z.inlineCollapsed,ae=z.onOpenChange;(!F.inlineCollapsed&&ee||!F.siderCollapsed&&H)&&ae([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var F=this.props.collapsedWidth,z=this.store,H=this.prevOpenKeys,ee=this.getInlineCollapsed()&&(F===0||F==="0"||F==="0px");ee?(this.prevOpenKeys=z.getState().openKeys.concat(),this.store.setState({openKeys:[]})):H&&(this.store.setState({openKeys:H}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var F=this.props.mode,z=this.state.switchingModeFromInline,H=this.getInlineCollapsed();return z&&H?"inline":H?"vertical":F}},{key:"getInlineCollapsed",value:function(){var F=this.props,z=F.inlineCollapsed,H=F.siderCollapsed;return H!==void 0?H:z}},{key:"restoreModeVerticalFromInline",value:function(){var F=this.state.switchingModeFromInline;F&&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 F=Object(M.a)({},Object(h.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),z=this.getRealMenuMode();return F.className+=" ".concat(F.prefixCls,"-root"),F.direction==="rtl"&&(F.className+=" ".concat(F.prefixCls,"-rtl")),F=Object(M.a)(Object(M.a)({},F),{},{mode:z,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:_r(this.props,this.state,z)}),delete F.openAnimation,delete F.openTransitionName,T.createElement(l.a,{store:this.store},T.createElement(sr,Object(p.a)({},F,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(F,z){var H=z.prevProps,ee=z.store,ae=ee.getState(),fe={},oe={prevProps:F};return H.mode==="inline"&&F.mode!=="inline"&&(oe.switchingModeFromInline=!0),"openKeys"in F?fe.openKeys=F.openKeys||[]:((F.inlineCollapsed&&!H.inlineCollapsed||F.siderCollapsed&&!H.siderCollapsed)&&(oe.switchingModeFromInline=!0,oe.inlineOpenKeys=ae.openKeys,fe.openKeys=[]),(!F.inlineCollapsed&&H.inlineCollapsed||!F.siderCollapsed&&H.siderCollapsed)&&(fe.openKeys=z.inlineOpenKeys,oe.inlineOpenKeys=[])),Object.keys(fe).length&&ee.setState(fe),oe}}]),de}(T.Component);Wr.defaultProps={selectable:!0,onClick:Ue,onSelect:Ue,onOpenChange:Ue,onDeselect:Ue,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:T.createElement("span",null,"\xB7\xB7\xB7")};var Sr=Wr,Zn=function(V){Object(u.a)(de,V);var se=Object(a.a)(de);function de(){var $;return Object(E.a)(this,de),$=se.apply(this,arguments),$.onKeyDown=function(F){var z=F.keyCode;return z===i.a.ENTER?($.onClick(F),!0):void 0},$.onMouseLeave=function(F){var z=$.props,H=z.eventKey,ee=z.onItemHover,ae=z.onMouseLeave;ee({key:H,hover:!1}),ae({key:H,domEvent:F})},$.onMouseEnter=function(F){var z=$.props,H=z.eventKey,ee=z.onItemHover,ae=z.onMouseEnter;ee({key:H,hover:!0}),ae({key:H,domEvent:F})},$.onClick=function(F){var z=$.props,H=z.eventKey,ee=z.multiple,ae=z.onClick,fe=z.onSelect,oe=z.onDeselect,_e=z.isSelected,Re={key:H,keyPath:[H],item:Object(f.a)($),domEvent:F};ae(Re),ee?_e?oe(Re):fe(Re):_e||fe(Re)},$.saveNode=function(F){$.node=F},$}return Object(m.a)(de,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var F=this.props;F.onDestroy&&F.onDestroy(F.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 F,z=Object(M.a)({},this.props),H=N()(this.getPrefixCls(),z.className,(F={},Object(q.a)(F,this.getActiveClassName(),!z.disabled&&z.active),Object(q.a)(F,this.getSelectedClassName(),z.isSelected),Object(q.a)(F,this.getDisabledClassName(),z.disabled),F)),ee=Object(M.a)(Object(M.a)({},z.attribute),{},{title:typeof z.title=="string"?z.title:void 0,className:H,role:z.role||"menuitem","aria-disabled":z.disabled});z.role==="option"?ee=Object(M.a)(Object(M.a)({},ee),{},{role:"option","aria-selected":z.isSelected}):(z.role===null||z.role==="none")&&(ee.role="none");var ae={onClick:z.disabled?null:this.onClick,onMouseLeave:z.disabled?null:this.onMouseLeave,onMouseEnter:z.disabled?null:this.onMouseEnter},fe=Object(M.a)({},z.style);z.mode==="inline"&&(z.direction==="rtl"?fe.paddingRight=z.inlineIndent*z.level:fe.paddingLeft=z.inlineIndent*z.level),Ve.forEach(function(_e){return delete z[_e]}),delete z.direction;var oe=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(oe=T.createElement(this.props.itemIcon,this.props)),T.createElement("li",Object(p.a)({},Object(h.a)(z,["onClick","onMouseEnter","onMouseLeave","onSelect"]),ee,ae,{style:fe,ref:this.saveNode}),z.children,oe)}}]),de}(T.Component);Zn.isMenuItem=!0,Zn.defaultProps={onSelect:Ue,onMouseEnter:Ue,onMouseLeave:Ue,manualRef:Ue};var or=Object(l.b)(function(V,se){var de=V.activeKey,$=V.selectedKeys,F=se.eventKey,z=se.subMenuKey;return{active:de[z]===F,isSelected:Array.isArray($)?$.indexOf(F)!==-1:$===F}})(Zn),Rr=or,kn=function(V){Object(u.a)(de,V);var se=Object(a.a)(de);function de(){var $;return Object(E.a)(this,de),$=se.apply(this,arguments),$.renderInnerMenuItem=function(F){var z=$.props,H=z.renderMenuItem,ee=z.index;return H(F,ee,$.props.subMenuKey)},$}return Object(m.a)(de,[{key:"render",value:function(){var F=Object(p.a)({},this.props),z=F.className,H=z===void 0?"":z,ee=F.rootPrefixCls,ae="".concat(ee,"-item-group-title"),fe="".concat(ee,"-item-group-list"),oe=F.title,_e=F.children;return Ve.forEach(function(Re){return delete F[Re]}),delete F.direction,T.createElement("li",Object(p.a)({},F,{onClick:function(We){return We.stopPropagation()},className:"".concat(H," ").concat(ee,"-item-group")}),T.createElement("div",{className:ae,title:typeof oe=="string"?oe:void 0},oe),T.createElement("ul",{className:fe},T.Children.map(_e,this.renderInnerMenuItem)))}}]),de}(T.Component);kn.isMenuItemGroup=!0,kn.defaultProps={disabled:!0};var $r=kn,Cr=function(se){var de=se.className,$=se.rootPrefixCls,F=se.style;return T.createElement("li",{className:"".concat(de," ").concat($,"-item-divider"),style:F})};Cr.defaultProps={disabled:!0,className:"",style:{}};var ea=Cr,Kr=Sr,wr=k("eDIo");function Rn(V,se){var de=V.prefixCls,$=V.editable,F=V.locale,z=V.style;return!$||$.showAdd===!1?null:T.createElement("button",{ref:se,type:"button",className:"".concat(de,"-nav-add"),style:z,"aria-label":(F==null?void 0:F.addAriaLabel)||"Add tab",onClick:function(ee){$.onEdit("add",{event:ee})}},$.addIcon||"+")}var lr=T.forwardRef(Rn);function Gr(V,se){var de=V.prefixCls,$=V.id,F=V.tabs,z=V.locale,H=V.mobile,ee=V.moreIcon,ae=ee===void 0?"More":ee,fe=V.moreTransitionName,oe=V.style,_e=V.className,Re=V.editable,We=V.tabBarGutter,Fe=V.rtl,qe=V.onTabClick,Tt=Object(T.useState)(!1),Ct=Object(I.a)(Tt,2),At=Ct[0],Dt=Ct[1],wt=Object(T.useState)(null),St=Object(I.a)(wt,2),Rt=St[0],Ft=St[1],Lt="".concat($,"-more-popup"),sn="".concat(de,"-dropdown"),Gt=Rt!==null?"".concat(Lt,"-").concat(Rt):null,yt=z==null?void 0:z.dropdownAriaLabel,_t=T.createElement(Kr,{onClick:function(Xt){var nn=Xt.key,yn=Xt.domEvent;qe(nn,yn),Dt(!1)},id:Lt,tabIndex:-1,role:"listbox","aria-activedescendant":Gt,selectedKeys:[Rt],"aria-label":yt!==void 0?yt:"expanded dropdown"},F.map(function(Ht){return T.createElement(Rr,{key:Ht.key,id:"".concat(Lt,"-").concat(Ht.key),role:"option","aria-controls":$&&"".concat($,"-panel-").concat(Ht.key),disabled:Ht.disabled},Ht.tab)}));function Mt(Ht){for(var Xt=F.filter(function(Ln){return!Ln.disabled}),nn=Xt.findIndex(function(Ln){return Ln.key===Rt})||0,yn=Xt.length,Dn=0;Dn<yn;Dn+=1){nn=(nn+Ht+yn)%yn;var ln=Xt[nn];if(!ln.disabled){Ft(ln.key);return}}}function kt(Ht){var Xt=Ht.which;if(!At){[i.a.DOWN,i.a.SPACE,i.a.ENTER].includes(Xt)&&(Dt(!0),Ht.preventDefault());return}switch(Xt){case i.a.UP:Mt(-1),Ht.preventDefault();break;case i.a.DOWN:Mt(1),Ht.preventDefault();break;case i.a.ESC:Dt(!1);break;case i.a.SPACE:case i.a.ENTER:Rt!==null&&qe(Rt,Ht);break}}Object(T.useEffect)(function(){var Ht=document.getElementById(Gt);Ht&&Ht.scrollIntoView&&Ht.scrollIntoView(!1)},[Rt]),Object(T.useEffect)(function(){At||Ft(null)},[At]);var ht=Object(q.a)({},Fe?"marginLeft":"marginRight",We);F.length||(ht.visibility="hidden",ht.order=1);var Bt=N()(Object(q.a)({},"".concat(sn,"-rtl"),Fe)),en=H?null:T.createElement(wr.a,{prefixCls:sn,overlay:_t,trigger:["hover"],visible:At,transitionName:fe,onVisibleChange:Dt,overlayClassName:Bt,mouseEnterDelay:.1,mouseLeaveDelay:.1},T.createElement("button",{type:"button",className:"".concat(de,"-nav-more"),style:ht,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":Lt,id:"".concat($,"-more"),"aria-expanded":At,onKeyDown:kt},ae));return T.createElement("div",{className:N()("".concat(de,"-nav-operations"),_e),style:oe,ref:se},en,T.createElement(lr,{prefixCls:de,locale:z,editable:Re}))}var ta=T.forwardRef(Gr),Er=Object(T.createContext)(null),It=.1,Pt=.01,$t=20,hn=Math.pow(.995,$t);function En(){var V=navigator.userAgent||navigator.vendor||window.opera;return!!(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(V)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(V.substr(0,4)))}function zr(V,se){var de=Object(T.useState)(),$=Object(I.a)(de,2),F=$[0],z=$[1],H=Object(T.useState)(0),ee=Object(I.a)(H,2),ae=ee[0],fe=ee[1],oe=Object(T.useState)(0),_e=Object(I.a)(oe,2),Re=_e[0],We=_e[1],Fe=Object(T.useState)(),qe=Object(I.a)(Fe,2),Tt=qe[0],Ct=qe[1],At=Object(T.useRef)();function Dt(yt){var _t=yt.touches[0],Mt=_t.screenX,kt=_t.screenY;z({x:Mt,y:kt}),window.clearInterval(At.current)}function wt(yt){if(!F)return;yt.preventDefault();var _t=yt.touches[0],Mt=_t.screenX,kt=_t.screenY;z({x:Mt,y:kt});var ht=Mt-F.x,Bt=kt-F.y;se(ht,Bt);var en=Date.now();fe(en),We(en-ae),Ct({x:ht,y:Bt})}function St(){if(!F)return;if(z(null),Ct(null),Tt){var yt=Tt.x/Re,_t=Tt.y/Re,Mt=Math.abs(yt),kt=Math.abs(_t);if(Math.max(Mt,kt)<It)return;var ht=yt,Bt=_t;At.current=window.setInterval(function(){if(Math.abs(ht)<Pt&&Math.abs(Bt)<Pt){window.clearInterval(At.current);return}ht*=hn,Bt*=hn,se(ht*$t,Bt*$t)},$t)}}var Rt=Object(T.useRef)(0),Ft=Object(T.useRef)(!1),Lt=Object(T.useRef)();function sn(yt){var _t=yt.deltaX,Mt=yt.deltaY,kt=0,ht=Math.abs(_t),Bt=Math.abs(Mt);ht===Bt?kt=Lt.current==="x"?_t:Mt:ht>Bt?(kt=_t,Lt.current="x"):(kt=Mt,Lt.current="y");var en=Date.now();en-Rt.current>100&&(Ft.current=!1),(se(-kt,-kt)||Ft.current)&&(yt.preventDefault(),Ft.current=!0),Rt.current=en}var Gt=Object(T.useRef)(null);Gt.current={onTouchStart:Dt,onTouchMove:wt,onTouchEnd:St,onWheel:sn},T.useEffect(function(){function yt(ht){Gt.current.onTouchStart(ht)}function _t(ht){Gt.current.onTouchMove(ht)}function Mt(ht){Gt.current.onTouchEnd(ht)}function kt(ht){Gt.current.onWheel(ht)}return document.addEventListener("touchmove",_t,{passive:!1}),document.addEventListener("touchend",Mt,{passive:!1}),V.current.addEventListener("touchstart",yt,{passive:!1}),V.current.addEventListener("wheel",kt),function(){document.removeEventListener("touchmove",_t),document.removeEventListener("touchend",Mt)}},[])}function Ir(){var V=Object(T.useRef)(new Map);function se($){return V.current.has($)||V.current.set($,T.createRef()),V.current.get($)}function de($){V.current.delete($)}return[se,de]}function Vr(V,se){var de=T.useRef(V),$=T.useState({}),F=Object(I.a)($,2),z=F[1];function H(ee){var ae=typeof ee=="function"?ee(de.current):ee;ae!==de.current&&se(ae,de.current),de.current=ae,z({})}return[de.current,H]}var Yr=function(se){var de=se.position,$=se.prefixCls,F=se.extra;if(!F)return null;var z,H=F;return de==="right"&&(z=H.right||!H.left&&H||null),de==="left"&&(z=H.left||null),z?T.createElement("div",{className:"".concat($,"-extra-content")},z):null};function na(V,se){var de,$=T.useContext(Er),F=$.prefixCls,z=$.tabs,H=V.className,ee=V.style,ae=V.id,fe=V.animated,oe=V.activeKey,_e=V.rtl,Re=V.extra,We=V.editable,Fe=V.locale,qe=V.tabPosition,Tt=V.tabBarGutter,Ct=V.children,At=V.onTabClick,Dt=V.onTabScroll,wt=Object(T.useRef)(),St=Object(T.useRef)(),Rt=Object(T.useRef)(),Ft=Object(T.useRef)(),Lt=Ir(),sn=Object(I.a)(Lt,2),Gt=sn[0],yt=sn[1],_t=qe==="top"||qe==="bottom",Mt=Vr(0,function(zt,Nt){_t&&Dt&&Dt({direction:zt>Nt?"left":"right"})}),kt=Object(I.a)(Mt,2),ht=kt[0],Bt=kt[1],en=Vr(0,function(zt,Nt){!_t&&Dt&&Dt({direction:zt>Nt?"top":"bottom"})}),Ht=Object(I.a)(en,2),Xt=Ht[0],nn=Ht[1],yn=Object(T.useState)(0),Dn=Object(I.a)(yn,2),ln=Dn[0],Ln=Dn[1],qn=Object(T.useState)(0),Un=Object(I.a)(qn,2),jn=Un[0],cn=Un[1],Cn=Object(T.useState)(0),bn=Object(I.a)(Cn,2),gn=bn[0],yr=bn[1],br=Object(T.useState)(0),Dr=Object(I.a)(br,2),Qt=Dr[0],ur=Dr[1],Lr=Object(T.useState)(null),tn=Object(I.a)(Lr,2),Kt=tn[0],Tn=tn[1],Va=Object(T.useState)(null),Ta=Object(I.a)(Va,2),Xr=Ta[0],Ya=Ta[1],Xa=Object(T.useState)(0),xa=Object(I.a)(Xa,2),Qa=xa[0],Ja=xa[1],Za=Object(T.useState)(0),Oa=Object(I.a)(Za,2),qa=Oa[0],$a=Oa[1],ei=n(new Map),Aa=Object(I.a)(ei,2),ti=Aa[0],ni=Aa[1],fa=r(z,ti,ln),Sa="".concat(F,"-nav-operations-hidden"),ra=0,aa=0;_t?_e?(ra=0,aa=Math.max(0,ln-Kt)):(ra=Math.min(0,Kt-ln),aa=0):(ra=Math.min(0,Xr-jn),aa=0);function ha(zt){return zt<ra?[ra,!1]:zt>aa?[aa,!1]:[zt,!0]}var Ra=Object(T.useRef)(),ri=Object(T.useState)(),Ca=Object(I.a)(ri,2),pa=Ca[0],wa=Ca[1];function ma(){wa(Date.now())}function ga(){window.clearTimeout(Ra.current)}zr(wt,function(zt,Nt){var vn=!1;function Fn(sa,oa){sa(function(la){var ua=ha(la+oa),Qr=Object(I.a)(ua,2),ya=Qr[0],ba=Qr[1];return vn=ba,ya})}if(_t){if(Kt>=ln)return vn;Fn(Bt,zt)}else{if(Xr>=jn)return vn;Fn(nn,Nt)}return ga(),ma(),vn}),Object(T.useEffect)(function(){return ga(),pa&&(Ra.current=window.setTimeout(function(){wa(0)},100)),ga},[pa]);function Ia(){var zt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:oe,Nt=fa.get(zt);if(!Nt)return;if(_t){var vn=ht;_e?Nt.right<ht?vn=Nt.right:Nt.right+Nt.width>ht+Kt&&(vn=Nt.right+Nt.width-Kt):Nt.left<-ht?vn=-Nt.left:Nt.left+Nt.width>-ht+Kt&&(vn=-(Nt.left+Nt.width-Kt)),nn(0),Bt(ha(vn)[0])}else{var Fn=Xt;Nt.top<-Xt?Fn=-Nt.top:Nt.top+Nt.height>-Xt+Xr&&(Fn=-(Nt.top+Nt.height-Xr)),Bt(0),nn(ha(Fn)[0])}}var ai=_(fa,{width:Kt,height:Xr,left:ht,top:Xt},{width:gn,height:Qt},{width:Qa,height:qa},Object(M.a)(Object(M.a)({},V),{},{tabs:z})),Da=Object(I.a)(ai,2),ii=Da[0],si=Da[1],oi=z.map(function(zt){var Nt=zt.key;return T.createElement(e,{id:ae,prefixCls:F,key:Nt,rtl:_e,tab:zt,closable:zt.closable,editable:We,active:Nt===oe,tabPosition:qe,tabBarGutter:Tt,renderWrapper:Ct,removeAriaLabel:Fe==null?void 0:Fe.removeAriaLabel,ref:Gt(Nt),onClick:function(Fn){At(Nt,Fn)},onRemove:function(){yt(Nt)},onFocus:function(){Ia(Nt),ma(),_e||(wt.current.scrollLeft=0),wt.current.scrollTop=0}})}),va=s(function(){var zt,Nt,vn,Fn,sa,oa,la,ua,Qr,ya=((zt=wt.current)===null||zt===void 0?void 0:zt.offsetWidth)||0,ba=((Nt=wt.current)===null||Nt===void 0?void 0:Nt.offsetHeight)||0,Fa=((vn=Ft.current)===null||vn===void 0?void 0:vn.offsetWidth)||0,Ba=((Fn=Ft.current)===null||Fn===void 0?void 0:Fn.offsetHeight)||0,hi=((sa=Rt.current)===null||sa===void 0?void 0:sa.offsetWidth)||0,pi=((oa=Rt.current)===null||oa===void 0?void 0:oa.offsetHeight)||0;Tn(ya),Ya(ba),Ja(Fa),$a(Ba);var Ha=(((la=St.current)===null||la===void 0?void 0:la.offsetWidth)||0)-Fa,Wa=(((ua=St.current)===null||ua===void 0?void 0:ua.offsetHeight)||0)-Ba;Ln(Ha),cn(Wa);var Ka=(Qr=Rt.current)===null||Qr===void 0?void 0:Qr.className.includes(Sa);yr(Ha-(Ka?0:hi)),ur(Wa-(Ka?0:pi)),ni(function(){var Ga=new Map;return z.forEach(function(mi){var za=mi.key,da=Gt(za).current;da&&Ga.set(za,{width:da.offsetWidth,height:da.offsetHeight,left:da.offsetLeft,top:da.offsetTop})}),Ga})}),li=z.slice(0,ii),ui=z.slice(si+1),La=[].concat(Object(O.a)(li),Object(O.a)(ui)),di=Object(T.useState)(),Pa=Object(I.a)(di,2),ci=Pa[0],fi=Pa[1],Tr=fa.get(oe),Ma=Object(T.useRef)();function Na(){g.a.cancel(Ma.current)}Object(T.useEffect)(function(){var zt={};return Tr&&(_t?(_e?zt.right=Tr.right:zt.left=Tr.left,zt.width=Tr.width):(zt.top=Tr.top,zt.height=Tr.height)),Na(),Ma.current=g()(function(){fi(zt)}),Na},[Tr,_t,_e]),Object(T.useEffect)(function(){Ia()},[oe,Tr,fa,_t]),Object(T.useEffect)(function(){va()},[_e,Tt,oe,z.map(function(zt){return zt.key}).join("_")]);var ka=!!La.length,ia="".concat(F,"-nav-wrap"),_a,Ea,Ua,ja;return _t?_e?(Ea=ht>0,_a=ht+Kt<ln):(_a=ht<0,Ea=-ht+Kt<ln):(Ua=Xt<0,ja=-Xt+Xr<jn),T.createElement("div",{ref:se,role:"tablist",className:N()("".concat(F,"-nav"),H),style:ee,onKeyDown:function(){ma()}},T.createElement(Yr,{position:"left",extra:Re,prefixCls:F}),T.createElement(c.a,{onResize:va},T.createElement("div",{className:N()(ia,(de={},Object(q.a)(de,"".concat(ia,"-ping-left"),_a),Object(q.a)(de,"".concat(ia,"-ping-right"),Ea),Object(q.a)(de,"".concat(ia,"-ping-top"),Ua),Object(q.a)(de,"".concat(ia,"-ping-bottom"),ja),de)),ref:wt},T.createElement(c.a,{onResize:va},T.createElement("div",{ref:St,className:"".concat(F,"-nav-list"),style:{transform:"translate(".concat(ht,"px, ").concat(Xt,"px)"),transition:pa?"none":void 0}},oi,T.createElement(lr,{ref:Ft,prefixCls:F,locale:Fe,editable:We,style:{visibility:ka?"hidden":null}}),T.createElement("div",{className:N()("".concat(F,"-ink-bar"),Object(q.a)({},"".concat(F,"-ink-bar-animated"),fe.inkBar)),style:ci}))))),T.createElement(ta,Object.assign({},V,{ref:Rt,prefixCls:F,tabs:La,className:!ka&&Sa})),T.createElement(Yr,{position:"right",extra:Re,prefixCls:F}))}var ca=T.forwardRef(na);function Ce(V){var se=V.id,de=V.activeKey,$=V.animated,F=V.tabPosition,z=V.rtl,H=V.destroyInactiveTabPane,ee=T.useContext(Er),ae=ee.prefixCls,fe=ee.tabs,oe=$.tabPane,_e=fe.findIndex(function(Re){return Re.key===de});return T.createElement("div",{className:N()("".concat(ae,"-content-holder"))},T.createElement("div",{className:N()("".concat(ae,"-content"),"".concat(ae,"-content-").concat(F),Object(q.a)({},"".concat(ae,"-content-animated"),oe)),style:_e&&oe?Object(q.a)({},z?"marginRight":"marginLeft","-".concat(_e,"00%")):null},fe.map(function(Re){return T.cloneElement(Re.node,{key:Re.key,prefixCls:ae,tabKey:Re.key,id:se,animated:oe,active:Re.key===de,destroyInactiveTabPane:H})})))}function we(V){var se=V.prefixCls,de=V.forceRender,$=V.className,F=V.style,z=V.id,H=V.active,ee=V.animated,ae=V.destroyInactiveTabPane,fe=V.tabKey,oe=V.children,_e=T.useState(de),Re=Object(I.a)(_e,2),We=Re[0],Fe=Re[1];T.useEffect(function(){H?Fe(!0):ae&&Fe(!1)},[H,ae]);var qe={};return H||(ee?(qe.visibility="hidden",qe.height=0,qe.overflowY="hidden"):qe.display="none"),T.createElement("div",{id:z&&"".concat(z,"-panel-").concat(fe),role:"tabpanel",tabIndex:H?0:-1,"aria-labelledby":z&&"".concat(z,"-tab-").concat(fe),"aria-hidden":!H,style:Object(M.a)(Object(M.a)({},qe),F),className:N()("".concat(se,"-tabpane"),H&&"".concat(se,"-tabpane-active"),$)},(H||We||de)&&oe)}var ke=0;function et(V){return Object(L.a)(V).map(function(se){if(T.isValidElement(se)){var de=se.key!==void 0?String(se.key):void 0;return Object(M.a)(Object(M.a)({key:de},se.props),{},{node:se})}return null}).filter(function(se){return se})}function Et(V,se){var de,$=V.id,F=V.prefixCls,z=F===void 0?"rc-tabs":F,H=V.className,ee=V.children,ae=V.direction,fe=V.activeKey,oe=V.defaultActiveKey,_e=V.editable,Re=V.animated,We=V.tabPosition,Fe=We===void 0?"top":We,qe=V.tabBarGutter,Tt=V.tabBarStyle,Ct=V.tabBarExtraContent,At=V.locale,Dt=V.moreIcon,wt=V.moreTransitionName,St=V.destroyInactiveTabPane,Rt=V.renderTabBar,Ft=V.onChange,Lt=V.onTabClick,sn=V.onTabScroll,Gt=Object(R.a)(V,["id","prefixCls","className","children","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll"]),yt=et(ee),_t=ae==="rtl",Mt;Re===!1?Mt={inkBar:!1,tabPane:!1}:Mt=Object(M.a)({inkBar:!0,tabPane:!1},Re!==!0?Re:null);var kt=Object(T.useState)(!1),ht=Object(I.a)(kt,2),Bt=ht[0],en=ht[1];Object(T.useEffect)(function(){en(En())},[]);var Ht=Object(C.a)(function(){var Qt;return(Qt=yt[0])===null||Qt===void 0?void 0:Qt.key},{value:fe,defaultValue:oe}),Xt=Object(I.a)(Ht,2),nn=Xt[0],yn=Xt[1],Dn=Object(T.useState)(function(){return yt.findIndex(function(Qt){return Qt.key===nn})}),ln=Object(I.a)(Dn,2),Ln=ln[0],qn=ln[1];Object(T.useEffect)(function(){var Qt=yt.findIndex(function(Lr){return Lr.key===nn});if(Qt===-1){var ur;Qt=Math.max(0,Math.min(Ln,yt.length-1)),yn((ur=yt[Qt])===null||ur===void 0?void 0:ur.key)}qn(Qt)},[yt.map(function(Qt){return Qt.key}).join("_"),nn,Ln]);var Un=Object(C.a)(null,{value:$}),jn=Object(I.a)(Un,2),cn=jn[0],Cn=jn[1],bn=Fe;Bt&&!["left","right"].includes(Fe)&&(bn="top"),Object(T.useEffect)(function(){$||(Cn("rc-tabs-".concat(ke)),ke+=1)},[]);function gn(Qt,ur){Lt==null||Lt(Qt,ur),yn(Qt),Ft==null||Ft(Qt)}var yr={id:cn,activeKey:nn,animated:Mt,tabPosition:bn,rtl:_t,mobile:Bt},br,Dr=Object(M.a)(Object(M.a)({},yr),{},{editable:_e,locale:At,moreIcon:Dt,moreTransitionName:wt,tabBarGutter:qe,onTabClick:gn,onTabScroll:sn,extra:Ct,style:Tt,panes:ee});return Rt?br=Rt(Dr,ca):br=T.createElement(ca,Object.assign({},Dr)),T.createElement(Er.Provider,{value:{tabs:yt,prefixCls:z}},T.createElement("div",Object.assign({ref:se,id:$,className:N()(z,"".concat(z,"-").concat(bn),(de={},Object(q.a)(de,"".concat(z,"-mobile"),Bt),Object(q.a)(de,"".concat(z,"-editable"),_e),Object(q.a)(de,"".concat(z,"-rtl"),_t),de),H)},Gt),br,T.createElement(Ce,Object.assign({destroyInactiveTabPane:St},yr,{animated:Mt}))))}var mt=T.forwardRef(Et);mt.TabPane=we;var Yt=mt,an=Te.b=Yt},n6Qo:function(Ne,Te,k){"use strict";k.d(Te,"a",function(){return L});var q=k("cDcd"),I=k("biw7"),R=k("fyJ8");function M(C){var O=C.className,v=C.index,g=C.children,c=C.colSpan,s=C.rowSpan,n=q.useContext(I.a),i=n.prefixCls,o=n.fixedInfoList,e=o[v];return q.createElement(R.a,Object.assign({className:O,index:v,component:"td",prefixCls:i,record:null,dataIndex:null,render:function(){return{children:g,props:{colSpan:c,rowSpan:s}}}},e))}function T(C){return q.createElement("tr",Object.assign({},C))}function x(C){var O=C.children,v=q.useContext(I.a),g=v.prefixCls;return q.createElement("tfoot",{className:"".concat(g,"-summary")},O)}var N=Te.b=x,L={Cell:M,Row:T}},p5ED:function(Ne,Te,k){"use strict";var q=k("+L6B"),I=k("2/Rp"),R=k("5Dmo"),M=k("3S7+"),T=k("k1fw"),x=k("tJVT"),N=k("cDcd"),L=k.n(N),C=k("vHTk"),O=k.n(C),v=k("yEEn"),g=k("ZW9T"),c=k("1vsH");Te.a=function(s){var n=s.name,i=s.data,o=s.theme,e=s.type,t=s.filename,r=s.monacoEditor,y=s.className,_=s.style,p=s.close,E=s.onClose,m=s.hasMask,f=Object(N.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),u=Object(x.a)(f,2),a=u[0],l=u[1],h=Object(N.useState)(""),d=Object(x.a)(h,2),b=d[0],w=d[1],A,P=1024*1024,S=10*P,U=Object(N.useRef)();e==="office"&&(A=Object(c.V)(i).filesize,A>S&&(e="other")),t&&(r.filename=t),Object(N.useEffect)(function(){var K,Z,ne=(K=document.cookie)===null||K===void 0||((Z=K.replace(/\s/g,""))===null||Z===void 0)?void 0:Z.split(";");ne==null||ne.map(function(me){var he=me.split("=");he[0]==="_educoder_session"&&w(he[1])})},[]);var D=function(){if(i.startsWith("http")||i.startsWith("/")){j();return}Object(c.z)(t||"educoder",i,t)},j=function(){Object(c.x)(t||n,i)};return console.log("data:",i,"fileanme:",t," name:",n),L.a.createElement("div",{style:Object(T.a)({},_||{}),className:"".concat(m&&O.a.bgBlack," ").concat(e?O.a.wrp:"hide")},p&&L.a.createElement("div",{className:O.a.close,ref:U},L.a.createElement(M.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return U.current}},L.a.createElement("span",{onClick:j},L.a.createElement("i",{className:"icon-quxiaozhiding"}))),L.a.createElement(M.a,{title:"\u5173\u95ED",getPopupContainer:function(){return U.current}},L.a.createElement("span",{className:"",onClick:E},L.a.createElement("i",{className:"icon-guanbi1"})))),L.a.createElement("div",{className:"".concat(O.a[y]," ").concat(y," ").concat(O.a.monaco," ").concat(e==="txt"?"show":"hide")},e==="txt"&&L.a.createElement(g.b,r)),e==="audio"&&L.a.createElement("audio",{src:"".concat(i!=null&&i.startsWith("/")||(i==null?void 0:i.indexOf("https://"))>-1?i:"data:audio/mp3;base64,").concat(i),autoPlay:!0}),e==="video"&&L.a.createElement(L.a.Fragment,null,i!=null&&i.startsWith("/")?L.a.createElement("video",{controls:!0,src:"".concat(i),autoPlay:!0}):L.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(i),autoPlay:!0})),e==="html"&&L.a.createElement("iframe",{src:i+"&disposition=inline"}),e==="pdf"&&L.a.createElement("embed",{className:O.a.embed,src:i}),e==="image"&&L.a.createElement(L.a.Fragment,null,L.a.createElement("img",{src:"".concat(i!=null&&i.startsWith("/")||(i==null?void 0:i.indexOf("https://"))>-1?"":"data:image/png;base64,").concat(i)})),e==="other"&&L.a.createElement("div",null,L.a.createElement(I.a,{type:"primary",size:"large",onClick:D},L.a.createElement(v.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),(e==="download"||e==="office")&&L.a.createElement(I.a,{type:"primary",size:"large",onClick:D},L.a.createElement(v.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},pIsd:function(Ne,Te,k){var q=k("BJfS"),I=function(T){var x=/[height|width]$/;return x.test(T)},R=function(T){var x="",N=Object.keys(T);return N.forEach(function(L,C){var O=T[L];L=q(L),I(L)&&typeof O=="number"&&(O=O+"px"),O===!0?x+=L:O===!1?x+="not "+L:x+="("+L+": "+O+")",C<N.length-1&&(x+=" and ")}),x},M=function(T){var x="";return typeof T=="string"?T:T instanceof Array?(T.forEach(function(N,L){x+=R(N),L<T.length-1&&(x+=", ")}),x):R(T)};Ne.exports=M},psGv:function(Ne,Te,k){var q,I;(function(){var R;(function(){"use strict";var N=[,,function(v){function g(n){this.__parent=n,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}g.prototype.clone_empty=function(){var n=new g(this.__parent);return n.set_indent(this.__indent_count,this.__alignment_count),n},g.prototype.item=function(n){return n<0?this.__items[this.__items.length+n]:this.__items[n]},g.prototype.has_match=function(n){for(var i=this.__items.length-1;i>=0;i--)if(this.__items[i].match(n))return!0;return!1},g.prototype.set_indent=function(n,i){this.is_empty()&&(this.__indent_count=n||0,this.__alignment_count=i||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},g.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},g.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},g.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var n=this.__parent.current_line;return n.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),n.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),n.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,n.__items[0]===" "&&(n.__items.splice(0,1),n.__character_count-=1),!0}return!1},g.prototype.is_empty=function(){return this.__items.length===0},g.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},g.prototype.push=function(n){this.__items.push(n);var i=n.lastIndexOf(`
|
|
`);i!==-1?this.__character_count=n.length-i:this.__character_count+=n.length},g.prototype.pop=function(){var n=null;return this.is_empty()||(n=this.__items.pop(),this.__character_count-=n.length),n},g.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},g.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},g.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},g.prototype.toString=function(){var n="";return this.is_empty()?this.__parent.indent_empty_lines&&(n=this.__parent.get_indent_string(this.__indent_count)):(n=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),n+=this.__items.join("")),n};function c(n,i){this.__cache=[""],this.__indent_size=n.indent_size,this.__indent_string=n.indent_char,n.indent_with_tabs||(this.__indent_string=new Array(n.indent_size+1).join(n.indent_char)),i=i||"",n.indent_level>0&&(i=new Array(n.indent_level+1).join(this.__indent_string)),this.__base_string=i,this.__base_string_length=i.length}c.prototype.get_indent_size=function(n,i){var o=this.__base_string_length;return i=i||0,n<0&&(o=0),o+=n*this.__indent_size,o+=i,o},c.prototype.get_indent_string=function(n,i){var o=this.__base_string;return i=i||0,n<0&&(n=0,o=""),i+=n*this.__indent_size,this.__ensure_cache(i),o+=this.__cache[i],o},c.prototype.__ensure_cache=function(n){for(;n>=this.__cache.length;)this.__add_column()},c.prototype.__add_column=function(){var n=this.__cache.length,i=0,o="";this.__indent_size&&n>=this.__indent_size&&(i=Math.floor(n/this.__indent_size),n-=i*this.__indent_size,o=new Array(i+1).join(this.__indent_string)),n&&(o+=new Array(n+1).join(" ")),this.__cache.push(o)};function s(n,i){this.__indent_cache=new c(n,i),this.raw=!1,this._end_with_newline=n.end_with_newline,this.indent_size=n.indent_size,this.wrap_line_length=n.wrap_line_length,this.indent_empty_lines=n.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new g(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}s.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},s.prototype.get_line_number=function(){return this.__lines.length},s.prototype.get_indent_string=function(n,i){return this.__indent_cache.get_indent_string(n,i)},s.prototype.get_indent_size=function(n,i){return this.__indent_cache.get_indent_size(n,i)},s.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},s.prototype.add_new_line=function(n){return this.is_empty()||!n&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},s.prototype.get_code=function(n){this.trim(!0);var i=this.current_line.pop();i&&(i[i.length-1]===`
|
|
`&&(i=i.replace(/\n+$/g,"")),this.current_line.push(i)),this._end_with_newline&&this.__add_outputline();var o=this.__lines.join(`
|
|
`);return n!==`
|
|
`&&(o=o.replace(/[\n]/g,n)),o},s.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},s.prototype.set_indent=function(n,i){return n=n||0,i=i||0,this.next_line.set_indent(n,i),this.__lines.length>1?(this.current_line.set_indent(n,i),!0):(this.current_line.set_indent(),!1)},s.prototype.add_raw_token=function(n){for(var i=0;i<n.newlines;i++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(n.whitespace_before),this.current_line.push(n.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},s.prototype.add_token=function(n){this.__add_space_before_token(),this.current_line.push(n),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},s.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},s.prototype.remove_indent=function(n){for(var i=this.__lines.length;n<i;)this.__lines[n]._remove_indent(),n++;this.current_line._remove_wrap_indent()},s.prototype.trim=function(n){for(n=n===void 0?!1:n,this.current_line.trim();n&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},s.prototype.just_added_newline=function(){return this.current_line.is_empty()},s.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},s.prototype.ensure_empty_line_above=function(n,i){for(var o=this.__lines.length-2;o>=0;){var e=this.__lines[o];if(e.is_empty())break;if(e.item(0).indexOf(n)!==0&&e.item(-1)!==i){this.__lines.splice(o+1,0,new g(this)),this.previous_line=this.__lines[this.__lines.length-2];break}o--}},v.exports.Output=s},function(v){function g(c,s,n,i){this.type=c,this.text=s,this.comments_before=null,this.newlines=n||0,this.whitespace_before=i||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}v.exports.Token=g},,,function(v){function g(n,i){this.raw_options=c(n,i),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php","smarty"],["auto"])}g.prototype._get_array=function(n,i){var o=this.raw_options[n],e=i||[];return typeof o=="object"?o!==null&&typeof o.concat=="function"&&(e=o.concat()):typeof o=="string"&&(e=o.split(/[^a-zA-Z0-9_\/\-]+/)),e},g.prototype._get_boolean=function(n,i){var o=this.raw_options[n],e=o===void 0?!!i:!!o;return e},g.prototype._get_characters=function(n,i){var o=this.raw_options[n],e=i||"";return typeof o=="string"&&(e=o.replace(/\\r/,"\r").replace(/\\n/,`
|
|
`).replace(/\\t/," ")),e},g.prototype._get_number=function(n,i){var o=this.raw_options[n];i=parseInt(i,10),isNaN(i)&&(i=0);var e=parseInt(o,10);return isNaN(e)&&(e=i),e},g.prototype._get_selection=function(n,i,o){var e=this._get_selection_list(n,i,o);if(e.length!==1)throw new Error("Invalid Option Value: The option '"+n+`' can only be one of the following values:
|
|
`+i+`
|
|
You passed in: '`+this.raw_options[n]+"'");return e[0]},g.prototype._get_selection_list=function(n,i,o){if(!i||i.length===0)throw new Error("Selection list cannot be empty.");if(o=o||[i[0]],!this._is_valid_selection(o,i))throw new Error("Invalid Default Value!");var e=this._get_array(n,o);if(!this._is_valid_selection(e,i))throw new Error("Invalid Option Value: The option '"+n+`' can contain only the following values:
|
|
`+i+`
|
|
You passed in: '`+this.raw_options[n]+"'");return e},g.prototype._is_valid_selection=function(n,i){return n.length&&i.length&&!n.some(function(o){return i.indexOf(o)===-1})};function c(n,i){var o={};n=s(n);var e;for(e in n)e!==i&&(o[e]=n[e]);if(i&&n[i])for(e in n[i])o[e]=n[i][e];return o}function s(n){var i={},o;for(o in n){var e=o.replace(/-/g,"_");i[e]=n[o]}return i}v.exports.Options=g,v.exports.normalizeOpts=s,v.exports.mergeOpts=c},,function(v){var g=RegExp.prototype.hasOwnProperty("sticky");function c(s){this.__input=s||"",this.__input_length=this.__input.length,this.__position=0}c.prototype.restart=function(){this.__position=0},c.prototype.back=function(){this.__position>0&&(this.__position-=1)},c.prototype.hasNext=function(){return this.__position<this.__input_length},c.prototype.next=function(){var s=null;return this.hasNext()&&(s=this.__input.charAt(this.__position),this.__position+=1),s},c.prototype.peek=function(s){var n=null;return s=s||0,s+=this.__position,s>=0&&s<this.__input_length&&(n=this.__input.charAt(s)),n},c.prototype.__match=function(s,n){s.lastIndex=n;var i=s.exec(this.__input);return i&&!(g&&s.sticky)&&(i.index!==n&&(i=null)),i},c.prototype.test=function(s,n){return n=n||0,n+=this.__position,n>=0&&n<this.__input_length?!!this.__match(s,n):!1},c.prototype.testChar=function(s,n){var i=this.peek(n);return s.lastIndex=0,i!==null&&s.test(i)},c.prototype.match=function(s){var n=this.__match(s,this.__position);return n?this.__position+=n[0].length:n=null,n},c.prototype.read=function(s,n,i){var o="",e;return s&&(e=this.match(s),e&&(o+=e[0])),n&&(e||!s)&&(o+=this.readUntil(n,i)),o},c.prototype.readUntil=function(s,n){var i="",o=this.__position;s.lastIndex=this.__position;var e=s.exec(this.__input);return e?(o=e.index,n&&(o+=e[0].length)):o=this.__input_length,i=this.__input.substring(this.__position,o),this.__position=o,i},c.prototype.readUntilAfter=function(s){return this.readUntil(s,!0)},c.prototype.get_regexp=function(s,n){var i=null,o="g";return n&&g&&(o="y"),typeof s=="string"&&s!==""?i=new RegExp(s,o):s&&(i=new RegExp(s.source,o)),i},c.prototype.get_literal_regexp=function(s){return RegExp(s.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},c.prototype.peekUntilAfter=function(s){var n=this.__position,i=this.readUntilAfter(s);return this.__position=n,i},c.prototype.lookBack=function(s){var n=this.__position-1;return n>=s.length&&this.__input.substring(n-s.length,n).toLowerCase()===s},v.exports.InputScanner=c},function(v,g,c){var s=c(8).InputScanner,n=c(3).Token,i=c(10).TokenStream,o=c(11).WhitespacePattern,e={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},t=function(r,y){this._input=new s(r),this._options=y||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new o(this._input)};t.prototype.tokenize=function(){this._input.restart(),this.__tokens=new i,this._reset();for(var r,y=new n(e.START,""),_=null,p=[],E=new i;y.type!==e.EOF;){for(r=this._get_next_token(y,_);this._is_comment(r);)E.add(r),r=this._get_next_token(y,_);E.isEmpty()||(r.comments_before=E,E=new i),r.parent=_,this._is_opening(r)?(p.push(_),_=r):_&&this._is_closing(r,_)&&(r.opened=_,_.closed=r,_=p.pop(),r.parent=_),r.previous=y,y.next=r,this.__tokens.add(r),y=r}return this.__tokens},t.prototype._is_first_token=function(){return this.__tokens.isEmpty()},t.prototype._reset=function(){},t.prototype._get_next_token=function(r,y){this._readWhitespace();var _=this._input.read(/.+/g);return _?this._create_token(e.RAW,_):this._create_token(e.EOF,"")},t.prototype._is_comment=function(r){return!1},t.prototype._is_opening=function(r){return!1},t.prototype._is_closing=function(r,y){return!1},t.prototype._create_token=function(r,y){var _=new n(r,y,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return _},t.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},v.exports.Tokenizer=t,v.exports.TOKEN=e},function(v){function g(c){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=c}g.prototype.restart=function(){this.__position=0},g.prototype.isEmpty=function(){return this.__tokens_length===0},g.prototype.hasNext=function(){return this.__position<this.__tokens_length},g.prototype.next=function(){var c=null;return this.hasNext()&&(c=this.__tokens[this.__position],this.__position+=1),c},g.prototype.peek=function(c){var s=null;return c=c||0,c+=this.__position,c>=0&&c<this.__tokens_length&&(s=this.__tokens[c]),s},g.prototype.add=function(c){this.__parent_token&&(c.parent=this.__parent_token),this.__tokens.push(c),this.__tokens_length+=1},v.exports.TokenStream=g},function(v,g,c){var s=c(12).Pattern;function n(i,o){s.call(this,i,o),o?this._line_regexp=this._input.get_regexp(o._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}n.prototype=new s,n.prototype.__set_whitespace_patterns=function(i,o){i+="\\t ",o+="\\n\\r",this._match_pattern=this._input.get_regexp("["+i+o+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+o+"]")},n.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var i=this._input.read(this._match_pattern);if(i===" ")this.whitespace_before_token=" ";else if(i){var o=this.__split(this._newline_regexp,i);this.newline_count=o.length-1,this.whitespace_before_token=o[this.newline_count]}return i},n.prototype.matching=function(i,o){var e=this._create();return e.__set_whitespace_patterns(i,o),e._update(),e},n.prototype._create=function(){return new n(this._input,this)},n.prototype.__split=function(i,o){i.lastIndex=0;for(var e=0,t=[],r=i.exec(o);r;)t.push(o.substring(e,r.index)),e=r.index+r[0].length,r=i.exec(o);return e<o.length?t.push(o.substring(e,o.length)):t.push(""),t},v.exports.WhitespacePattern=n},function(v){function g(c,s){this._input=c,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,s&&(this._starting_pattern=this._input.get_regexp(s._starting_pattern,!0),this._match_pattern=this._input.get_regexp(s._match_pattern,!0),this._until_pattern=this._input.get_regexp(s._until_pattern),this._until_after=s._until_after)}g.prototype.read=function(){var c=this._input.read(this._starting_pattern);return(!this._starting_pattern||c)&&(c+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),c},g.prototype.read_match=function(){return this._input.match(this._match_pattern)},g.prototype.until_after=function(c){var s=this._create();return s._until_after=!0,s._until_pattern=this._input.get_regexp(c),s._update(),s},g.prototype.until=function(c){var s=this._create();return s._until_after=!1,s._until_pattern=this._input.get_regexp(c),s._update(),s},g.prototype.starting_with=function(c){var s=this._create();return s._starting_pattern=this._input.get_regexp(c,!0),s._update(),s},g.prototype.matching=function(c){var s=this._create();return s._match_pattern=this._input.get_regexp(c,!0),s._update(),s},g.prototype._create=function(){return new g(this._input,this)},g.prototype._update=function(){},v.exports.Pattern=g},function(v){function g(c,s){c=typeof c=="string"?c:c.source,s=typeof s=="string"?s:s.source,this.__directives_block_pattern=new RegExp(c+/ beautify( \w+[:]\w+)+ /.source+s,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(c+/\sbeautify\signore:end\s/.source+s,"g")}g.prototype.get_directives=function(c){if(!c.match(this.__directives_block_pattern))return null;var s={};this.__directive_pattern.lastIndex=0;for(var n=this.__directive_pattern.exec(c);n;)s[n[1]]=n[2],n=this.__directive_pattern.exec(c);return s},g.prototype.readIgnored=function(c){return c.readUntilAfter(this.__directives_end_ignore_pattern)},v.exports.Directives=g},function(v,g,c){var s=c(12).Pattern,n={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1};function i(o,e){s.call(this,o,e),this.__template_pattern=null,this._disabled=Object.assign({},n),this._excluded=Object.assign({},n),e&&(this.__template_pattern=this._input.get_regexp(e.__template_pattern),this._excluded=Object.assign(this._excluded,e._excluded),this._disabled=Object.assign(this._disabled,e._disabled));var t=new s(o);this.__patterns={handlebars_comment:t.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:t.starting_with(/{{{/).until_after(/}}}/),handlebars:t.starting_with(/{{/).until_after(/}}/),php:t.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:t.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:t.starting_with(/{%/).until_after(/%}/),django_value:t.starting_with(/{{/).until_after(/}}/),django_comment:t.starting_with(/{#/).until_after(/#}/),smarty:t.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:t.starting_with(/{\*/).until_after(/\*}/),smarty_literal:t.starting_with(/{literal}/).until_after(/{\/literal}/)}}i.prototype=new s,i.prototype._create=function(){return new i(this._input,this)},i.prototype._update=function(){this.__set_templated_pattern()},i.prototype.disable=function(o){var e=this._create();return e._disabled[o]=!0,e._update(),e},i.prototype.read_options=function(o){var e=this._create();for(var t in n)e._disabled[t]=o.templating.indexOf(t)===-1;return e._update(),e},i.prototype.exclude=function(o){var e=this._create();return e._excluded[o]=!0,e._update(),e},i.prototype.read=function(){var o="";this._match_pattern?o=this._input.read(this._starting_pattern):o=this._input.read(this._starting_pattern,this.__template_pattern);for(var e=this._read_template();e;)this._match_pattern?e+=this._input.read(this._match_pattern):e+=this._input.readUntil(this.__template_pattern),o+=e,e=this._read_template();return this._until_after&&(o+=this._input.readUntilAfter(this._until_pattern)),o},i.prototype.__set_templated_pattern=function(){var o=[];this._disabled.php||o.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||o.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||o.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(o.push(this.__patterns.django._starting_pattern.source),o.push(this.__patterns.django_value._starting_pattern.source),o.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||o.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&o.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+o.join("|")+")")},i.prototype._read_template=function(){var o="",e=this._input.peek();if(e==="<"){var t=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&t==="?"&&(o=o||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&t==="%"&&(o=o||this.__patterns.erb.read())}else e==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(o=o||this.__patterns.handlebars_comment.read(),o=o||this.__patterns.handlebars_unescaped.read(),o=o||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(o=o||this.__patterns.django_value.read()),this._excluded.django||(o=o||this.__patterns.django_comment.read(),o=o||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(o=o||this.__patterns.smarty_comment.read(),o=o||this.__patterns.smarty_literal.read(),o=o||this.__patterns.smarty.read()));return o},v.exports.TemplatablePattern=i},,,,function(v,g,c){var s=c(19).Beautifier,n=c(20).Options;function i(o,e,t,r){var y=new s(o,e,t,r);return y.beautify()}v.exports=i,v.exports.defaultOptions=function(){return new n}},function(v,g,c){var s=c(20).Options,n=c(2).Output,i=c(21).Tokenizer,o=c(21).TOKEN,e=/\r\n|[\r\n]/,t=/\r\n|[\r\n]/g,r=function(h,d){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=h.max_preserve_newlines,this.preserve_newlines=h.preserve_newlines,this._output=new n(h,d)};r.prototype.current_line_has_match=function(h){return this._output.current_line.has_match(h)},r.prototype.set_space_before_token=function(h,d){this._output.space_before_token=h,this._output.non_breaking_space=d},r.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},r.prototype.add_raw_token=function(h){this._output.add_raw_token(h)},r.prototype.print_preserved_newlines=function(h){var d=0;h.type!==o.TEXT&&h.previous.type!==o.TEXT&&(d=h.newlines?1:0),this.preserve_newlines&&(d=h.newlines<this.max_preserve_newlines+1?h.newlines:this.max_preserve_newlines+1);for(var b=0;b<d;b++)this.print_newline(b>0);return d!==0},r.prototype.traverse_whitespace=function(h){return h.whitespace_before||h.newlines?(this.print_preserved_newlines(h)||(this._output.space_before_token=!0),!0):!1},r.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},r.prototype.print_newline=function(h){this._output.add_new_line(h)},r.prototype.print_token=function(h){h.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(h.text))},r.prototype.indent=function(){this.indent_level++},r.prototype.get_full_indent=function(h){return h=this.indent_level+(h||0),h<1?"":this._output.get_indent_string(h)};var y=function(h){for(var d=null,b=h.next;b.type!==o.EOF&&h.closed!==b;){if(b.type===o.ATTRIBUTE&&b.text==="type"){b.next&&b.next.type===o.EQUALS&&b.next.next&&b.next.next.type===o.VALUE&&(d=b.next.next.text);break}b=b.next}return d},_=function(h,d){var b=null,w=null;return d.closed?(h==="script"?b="text/javascript":h==="style"&&(b="text/css"),b=y(d)||b,b.search("text/css")>-1?w="css":b.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?w="javascript":b.search(/(text|application|dojo)\/(x-)?(html)/)>-1?w="html":b.search(/test\/null/)>-1&&(w="null"),w):null};function p(h,d){return d.indexOf(h)!==-1}function E(h,d,b){this.parent=h||null,this.tag=d?d.tag_name:"",this.indent_level=b||0,this.parser_token=d||null}function m(h){this._printer=h,this._current_frame=null}m.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},m.prototype.record_tag=function(h){var d=new E(this._current_frame,h,this._printer.indent_level);this._current_frame=d},m.prototype._try_pop_frame=function(h){var d=null;return h&&(d=h.parser_token,this._printer.indent_level=h.indent_level,this._current_frame=h.parent),d},m.prototype._get_frame=function(h,d){for(var b=this._current_frame;b&&!(h.indexOf(b.tag)!==-1);){if(d&&d.indexOf(b.tag)!==-1){b=null;break}b=b.parent}return b},m.prototype.try_pop=function(h,d){var b=this._get_frame([h],d);return this._try_pop_frame(b)},m.prototype.indent_to_tag=function(h){var d=this._get_frame(h);d&&(this._printer.indent_level=d.indent_level)};function f(h,d,b,w){this._source_text=h||"",d=d||{},this._js_beautify=b,this._css_beautify=w,this._tag_stack=null;var A=new s(d,"html");this._options=A,this._is_wrap_attributes_force=this._options.wrap_attributes.substr(0,"force".length)==="force",this._is_wrap_attributes_force_expand_multiline=this._options.wrap_attributes==="force-expand-multiline",this._is_wrap_attributes_force_aligned=this._options.wrap_attributes==="force-aligned",this._is_wrap_attributes_aligned_multiple=this._options.wrap_attributes==="aligned-multiple",this._is_wrap_attributes_preserve=this._options.wrap_attributes.substr(0,"preserve".length)==="preserve",this._is_wrap_attributes_preserve_aligned=this._options.wrap_attributes==="preserve-aligned"}f.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var h=this._source_text,d=this._options.eol;this._options.eol==="auto"&&(d=`
|
|
`,h&&e.test(h)&&(d=h.match(e)[0])),h=h.replace(t,`
|
|
`);var b=h.match(/^[\t ]*/)[0],w={text:"",type:""},A=new u,P=new r(this._options,b),S=new i(h,this._options).tokenize();this._tag_stack=new m(P);for(var U=null,D=S.next();D.type!==o.EOF;)D.type===o.TAG_OPEN||D.type===o.COMMENT?(U=this._handle_tag_open(P,D,A,w),A=U):D.type===o.ATTRIBUTE||D.type===o.EQUALS||D.type===o.VALUE||D.type===o.TEXT&&!A.tag_complete?U=this._handle_inside_tag(P,D,A,S):D.type===o.TAG_CLOSE?U=this._handle_tag_close(P,D,A):D.type===o.TEXT?U=this._handle_text(P,D,A):P.add_raw_token(D),w=U,D=S.next();var j=P._output.get_code(d);return j},f.prototype._handle_tag_close=function(h,d,b){var w={text:d.text,type:d.type};return h.alignment_size=0,b.tag_complete=!0,h.set_space_before_token(d.newlines||d.whitespace_before!=="",!0),b.is_unformatted?h.add_raw_token(d):(b.tag_start_char==="<"&&(h.set_space_before_token(d.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&b.has_wrapped_attrs&&h.print_newline(!1)),h.print_token(d)),b.indent_content&&!(b.is_unformatted||b.is_content_unformatted)&&(h.indent(),b.indent_content=!1),!b.is_inline_element&&!(b.is_unformatted||b.is_content_unformatted)&&h.set_wrap_point(),w},f.prototype._handle_inside_tag=function(h,d,b,w){var A=b.has_wrapped_attrs,P={text:d.text,type:d.type};if(h.set_space_before_token(d.newlines||d.whitespace_before!=="",!0),b.is_unformatted)h.add_raw_token(d);else if(b.tag_start_char==="{"&&d.type===o.TEXT)h.print_preserved_newlines(d)?(d.newlines=0,h.add_raw_token(d)):h.print_token(d);else{if(d.type===o.ATTRIBUTE?(h.set_space_before_token(!0),b.attr_count+=1):(d.type===o.EQUALS||d.type===o.VALUE&&d.previous.type===o.EQUALS)&&h.set_space_before_token(!1),d.type===o.ATTRIBUTE&&b.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(h.traverse_whitespace(d),A=A||d.newlines!==0),this._is_wrap_attributes_force)){var S=b.attr_count>1;if(this._is_wrap_attributes_force_expand_multiline&&b.attr_count===1){var U=!0,D=0,j;do{if(j=w.peek(D),j.type===o.ATTRIBUTE){U=!1;break}D+=1}while(D<4&&j.type!==o.EOF&&j.type!==o.TAG_CLOSE);S=!U}S&&(h.print_newline(!1),A=!0)}h.print_token(d),A=A||h.previous_token_wrapped(),b.has_wrapped_attrs=A}return P},f.prototype._handle_text=function(h,d,b){var w={text:d.text,type:"TK_CONTENT"};return b.custom_beautifier_name?this._print_custom_beatifier_text(h,d,b):b.is_unformatted||b.is_content_unformatted?h.add_raw_token(d):(h.traverse_whitespace(d),h.print_token(d)),w},f.prototype._print_custom_beatifier_text=function(h,d,b){var w=this;if(d.text!==""){var A=d.text,P,S=1,U="",D="";b.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?P=this._js_beautify:b.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?P=this._css_beautify:b.custom_beautifier_name==="html"&&(P=function(he,Y){var le=new f(he,Y,w._js_beautify,w._css_beautify);return le.beautify()}),this._options.indent_scripts==="keep"?S=0:this._options.indent_scripts==="separate"&&(S=-h.indent_level);var j=h.get_full_indent(S);if(A=A.replace(/\n[ \t]*$/,""),b.custom_beautifier_name!=="html"&&A[0]==="<"&&A.match(/^(<!--|<!\[CDATA\[)/)){var K=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(A);if(!K){h.add_raw_token(d);return}U=j+K[1]+`
|
|
`,A=K[4],K[5]&&(D=j+K[5]),A=A.replace(/\n[ \t]*$/,""),(K[2]||K[3].indexOf(`
|
|
`)!==-1)&&(K=K[3].match(/[ \t]+$/),K&&(d.whitespace_before=K[0]))}if(A)if(P){var Z=function(){this.eol=`
|
|
`};Z.prototype=this._options.raw_options;var ne=new Z;A=P(j+A,ne)}else{var me=d.whitespace_before;me&&(A=A.replace(new RegExp(`
|
|
(`+me+")?","g"),`
|
|
`)),A=j+A.replace(/\n/g,`
|
|
`+j)}U&&(A?A=U+A+`
|
|
`+D:A=U+D),h.print_newline(!1),A&&(d.text=A,d.whitespace_before="",d.newlines=0,h.add_raw_token(d),h.print_newline(!0))}},f.prototype._handle_tag_open=function(h,d,b,w){var A=this._get_tag_open_token(d);return(b.is_unformatted||b.is_content_unformatted)&&!b.is_empty_element&&d.type===o.TAG_OPEN&&d.text.indexOf("</")===0?(h.add_raw_token(d),A.start_tag_token=this._tag_stack.try_pop(A.tag_name)):(h.traverse_whitespace(d),this._set_tag_position(h,d,A,b,w),A.is_inline_element||h.set_wrap_point(),h.print_token(d)),(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(A.alignment_size=d.text.length+1),!A.tag_complete&&!A.is_unformatted&&(h.alignment_size=A.alignment_size),A};var u=function(h,d){if(this.parent=h||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",!d)this.tag_complete=!0;else{var b;this.tag_start_char=d.text[0],this.text=d.text,this.tag_start_char==="<"?(b=d.text.match(/^<([^\s>]*)/),this.tag_check=b?b[1]:""):(b=d.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=b?b[1]:"",(d.text.startsWith("{{#>")||d.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&d.next!==null?this.tag_check=d.next.text.split(" ")[0]:this.tag_check=d.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),d.type===o.COMMENT&&(this.tag_complete=!0),this.is_start_tag=this.tag_check.charAt(0)!=="/",this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||d.closed&&d.closed.text==="/>";var w=2;this.tag_start_char==="{"&&this.text.length>=3&&(this.text.charAt(2)==="~"&&(w=3)),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(w)))}};f.prototype._get_tag_open_token=function(h){var d=new u(this._tag_stack.get_parser_token(),h);return d.alignment_size=this._options.wrap_attributes_indent_size,d.is_end_tag=d.is_end_tag||p(d.tag_check,this._options.void_elements),d.is_empty_element=d.tag_complete||d.is_start_tag&&d.is_end_tag,d.is_unformatted=!d.tag_complete&&p(d.tag_check,this._options.unformatted),d.is_content_unformatted=!d.is_empty_element&&p(d.tag_check,this._options.content_unformatted),d.is_inline_element=p(d.tag_name,this._options.inline)||d.tag_name.includes("-")||d.tag_start_char==="{",d},f.prototype._set_tag_position=function(h,d,b,w,A){if(b.is_empty_element||(b.is_end_tag?b.start_tag_token=this._tag_stack.try_pop(b.tag_name):(this._do_optional_end_element(b)&&(b.is_inline_element||h.print_newline(!1)),this._tag_stack.record_tag(b),(b.tag_name==="script"||b.tag_name==="style")&&!(b.is_unformatted||b.is_content_unformatted)&&(b.custom_beautifier_name=_(b.tag_check,d)))),p(b.tag_check,this._options.extra_liners)&&(h.print_newline(!1),h._output.just_added_blankline()||h.print_newline(!0)),b.is_empty_element){if(b.tag_start_char==="{"&&b.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),b.indent_content=!0;var P=h.current_line_has_match(/{{#if/);P||h.print_newline(!1)}b.tag_name==="!--"&&A.type===o.TAG_CLOSE&&w.is_end_tag&&b.text.indexOf(`
|
|
`)===-1||(b.is_inline_element||b.is_unformatted||h.print_newline(!1),this._calcluate_parent_multiline(h,b))}else if(b.is_end_tag){var S=!1;S=b.start_tag_token&&b.start_tag_token.multiline_content,S=S||!b.is_inline_element&&!(w.is_inline_element||w.is_unformatted)&&!(A.type===o.TAG_CLOSE&&b.start_tag_token===w)&&A.type!=="TK_CONTENT",(b.is_content_unformatted||b.is_unformatted)&&(S=!1),S&&h.print_newline(!1)}else b.indent_content=!b.custom_beautifier_name,b.tag_start_char==="<"&&(b.tag_name==="html"?b.indent_content=this._options.indent_inner_html:b.tag_name==="head"?b.indent_content=this._options.indent_head_inner_html:b.tag_name==="body"&&(b.indent_content=this._options.indent_body_inner_html)),!(b.is_inline_element||b.is_unformatted)&&(A.type!=="TK_CONTENT"||b.is_content_unformatted)&&h.print_newline(!1),this._calcluate_parent_multiline(h,b)},f.prototype._calcluate_parent_multiline=function(h,d){d.parent&&h._output.just_added_newline()&&!((d.is_inline_element||d.is_unformatted)&&d.parent.is_inline_element)&&(d.parent.multiline_content=!0)};var a=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","nav","ol","p","pre","section","table","ul"],l=["a","audio","del","ins","map","noscript","video"];f.prototype._do_optional_end_element=function(h){var d=null;if(h.is_empty_element||!h.is_start_tag||!h.parent)return;if(h.tag_name==="body")d=d||this._tag_stack.try_pop("head");else if(h.tag_name==="li")d=d||this._tag_stack.try_pop("li",["ol","ul"]);else if(h.tag_name==="dd"||h.tag_name==="dt")d=d||this._tag_stack.try_pop("dt",["dl"]),d=d||this._tag_stack.try_pop("dd",["dl"]);else if(h.parent.tag_name==="p"&&a.indexOf(h.tag_name)!==-1){var b=h.parent.parent;(!b||l.indexOf(b.tag_name)===-1)&&(d=d||this._tag_stack.try_pop("p"))}else h.tag_name==="rp"||h.tag_name==="rt"?(d=d||this._tag_stack.try_pop("rt",["ruby","rtc"]),d=d||this._tag_stack.try_pop("rp",["ruby","rtc"])):h.tag_name==="optgroup"?d=d||this._tag_stack.try_pop("optgroup",["select"]):h.tag_name==="option"?d=d||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):h.tag_name==="colgroup"?d=d||this._tag_stack.try_pop("caption",["table"]):h.tag_name==="thead"?(d=d||this._tag_stack.try_pop("caption",["table"]),d=d||this._tag_stack.try_pop("colgroup",["table"])):h.tag_name==="tbody"||h.tag_name==="tfoot"?(d=d||this._tag_stack.try_pop("caption",["table"]),d=d||this._tag_stack.try_pop("colgroup",["table"]),d=d||this._tag_stack.try_pop("thead",["table"]),d=d||this._tag_stack.try_pop("tbody",["table"])):h.tag_name==="tr"?(d=d||this._tag_stack.try_pop("caption",["table"]),d=d||this._tag_stack.try_pop("colgroup",["table"]),d=d||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(h.tag_name==="th"||h.tag_name==="td")&&(d=d||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),d=d||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return h.parent=this._tag_stack.get_parser_token(),d},v.exports.Beautifier=f},function(v,g,c){var s=c(6).Options;function n(i){s.call(this,i,"html"),this.templating.length===1&&this.templating[0]==="auto"&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}n.prototype=new s,v.exports.Options=n},function(v,g,c){var s=c(9).Tokenizer,n=c(9).TOKEN,i=c(13).Directives,o=c(14).TemplatablePattern,e=c(12).Pattern,t={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:n.START,RAW:n.RAW,EOF:n.EOF},r=new i(/<\!--/,/-->/),y=function(_,p){s.call(this,_,p),this._current_tag_name="";var E=new o(this._input).read_options(this._options),m=new e(this._input);if(this.__patterns={word:E.until(/[\n\r\t <]/),single_quote:E.until_after(/'/),double_quote:E.until_after(/"/),attribute:E.until(/[\n\r\t =>]|\/>/),element_name:E.until(/[\n\r\t >\/]/),handlebars_comment:m.starting_with(/{{!--/).until_after(/--}}/),handlebars:m.starting_with(/{{/).until_after(/}}/),handlebars_open:m.until(/[\n\r\t }]/),handlebars_raw_close:m.until(/}}/),comment:m.starting_with(/<!--/).until_after(/-->/),cdata:m.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:m.starting_with(/<!\[/).until_after(/]>/),processing:m.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var f=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=m.matching(f).until_after(f)}};y.prototype=new s,y.prototype._is_comment=function(_){return!1},y.prototype._is_opening=function(_){return _.type===t.TAG_OPEN},y.prototype._is_closing=function(_,p){return _.type===t.TAG_CLOSE&&p&&((_.text===">"||_.text==="/>")&&p.text[0]==="<"||_.text==="}}"&&p.text[0]==="{"&&p.text[1]==="{")},y.prototype._reset=function(){this._current_tag_name=""},y.prototype._get_next_token=function(_,p){var E=null;this._readWhitespace();var m=this._input.peek();return m===null?this._create_token(t.EOF,""):(E=E||this._read_open_handlebars(m,p),E=E||this._read_attribute(m,_,p),E=E||this._read_close(m,p),E=E||this._read_raw_content(m,_,p),E=E||this._read_content_word(m),E=E||this._read_comment_or_cdata(m),E=E||this._read_processing(m),E=E||this._read_open(m,p),E=E||this._create_token(t.UNKNOWN,this._input.next()),E)},y.prototype._read_comment_or_cdata=function(_){var p=null,E=null,m=null;if(_==="<"){var f=this._input.peek(1);f==="!"&&(E=this.__patterns.comment.read(),E?(m=r.get_directives(E),m&&m.ignore==="start"&&(E+=r.readIgnored(this._input))):E=this.__patterns.cdata.read()),E&&(p=this._create_token(t.COMMENT,E),p.directives=m)}return p},y.prototype._read_processing=function(_){var p=null,E=null,m=null;if(_==="<"){var f=this._input.peek(1);(f==="!"||f==="?")&&(E=this.__patterns.conditional_comment.read(),E=E||this.__patterns.processing.read()),E&&(p=this._create_token(t.COMMENT,E),p.directives=m)}return p},y.prototype._read_open=function(_,p){var E=null,m=null;return p||_==="<"&&(E=this._input.next(),this._input.peek()==="/"&&(E+=this._input.next()),E+=this.__patterns.element_name.read(),m=this._create_token(t.TAG_OPEN,E)),m},y.prototype._read_open_handlebars=function(_,p){var E=null,m=null;return p||this._options.indent_handlebars&&_==="{"&&this._input.peek(1)==="{"&&(this._input.peek(2)==="!"?(E=this.__patterns.handlebars_comment.read(),E=E||this.__patterns.handlebars.read(),m=this._create_token(t.COMMENT,E)):(E=this.__patterns.handlebars_open.read(),m=this._create_token(t.TAG_OPEN,E))),m},y.prototype._read_close=function(_,p){var E=null,m=null;return p&&(p.text[0]==="<"&&(_===">"||_==="/"&&this._input.peek(1)===">")?(E=this._input.next(),_==="/"&&(E+=this._input.next()),m=this._create_token(t.TAG_CLOSE,E)):p.text[0]==="{"&&_==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),m=this._create_token(t.TAG_CLOSE,"}}"))),m},y.prototype._read_attribute=function(_,p,E){var m=null,f="";if(E&&E.text[0]==="<")if(_==="=")m=this._create_token(t.EQUALS,this._input.next());else if(_==='"'||_==="'"){var u=this._input.next();_==='"'?u+=this.__patterns.double_quote.read():u+=this.__patterns.single_quote.read(),m=this._create_token(t.VALUE,u)}else f=this.__patterns.attribute.read(),f&&(p.type===t.EQUALS?m=this._create_token(t.VALUE,f):m=this._create_token(t.ATTRIBUTE,f));return m},y.prototype._is_content_unformatted=function(_){return this._options.void_elements.indexOf(_)===-1&&(this._options.content_unformatted.indexOf(_)!==-1||this._options.unformatted.indexOf(_)!==-1)},y.prototype._read_raw_content=function(_,p,E){var m="";if(E&&E.text[0]==="{")m=this.__patterns.handlebars_raw_close.read();else if(p.type===t.TAG_CLOSE&&p.opened.text[0]==="<"&&p.text[0]!=="/"){var f=p.opened.text.substr(1).toLowerCase();if(f==="script"||f==="style"){var u=this._read_comment_or_cdata(_);if(u)return u.type=t.TEXT,u;m=this._input.readUntil(new RegExp("</"+f+"[\\n\\r\\t ]*?>","ig"))}else this._is_content_unformatted(f)&&(m=this._input.readUntil(new RegExp("</"+f+"[\\n\\r\\t ]*?>","ig")))}return m?this._create_token(t.TEXT,m):null},y.prototype._read_content_word=function(_){var p="";if(this._options.unformatted_content_delimiter&&(_===this._options.unformatted_content_delimiter[0]&&(p=this.__patterns.unformatted_content_delimiter.read())),p||(p=this.__patterns.word.read()),p)return this._create_token(t.TEXT,p)},v.exports.Tokenizer=y,v.exports.TOKEN=t}],L={};function C(v){var g=L[v];if(g!==void 0)return g.exports;var c=L[v]={exports:{}};return N[v](c,c.exports,C),c.exports}var O=C(18);R=O})();var M=R;if(!0)!(q=[k,k("6UM0"),k("TXwP")],I=function(N){var L=k("6UM0"),C=k("TXwP");return{html_beautify:function(O,v){return M(O,v,L.js_beautify,C.css_beautify)}}}.apply(Te,q),I!==void 0&&(Ne.exports=I));else var T,x})()},pxMS:function(Ne,Te,k){Ne.exports=k.p+"static/program-banner.03adba1e.png"},"rAM+":function(Ne,Te,k){"use strict";k.d(Te,"a",function(){return I});var q=k("Qw5x");function I(R,M){var T;if(typeof Symbol=="undefined"||R[Symbol.iterator]==null){if(Array.isArray(R)||(T=Object(q.a)(R))||M&&R&&typeof R.length=="number"){T&&(R=T);var x=0,N=function(){};return{s:N,n:function(){return x>=R.length?{done:!0}:{done:!1,value:R[x++]}},e:function(g){throw g},f:N}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var L=!0,C=!1,O;return{s:function(){T=R[Symbol.iterator]()},n:function(){var g=T.next();return L=g.done,g},e:function(g){C=!0,O=g},f:function(){try{!L&&T.return!=null&&T.return()}finally{if(C)throw O}}}}},rUJ1:function(Ne,Te){const k=/[&<>"']/,q=/[&<>"']/g,I=/[<>"']|&(?!#?\w+;)/,R=/[<>"']|&(?!#?\w+;)/g,M={"&":"&","<":"<",">":">",'"':""","'":"'"},T=m=>M[m];function x(m,f){if(f){if(k.test(m))return m.replace(q,T)}else if(I.test(m))return m.replace(R,T);return m}const N=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function L(m){return m.replace(N,(f,u)=>(u=u.toLowerCase(),u==="colon"?":":u.charAt(0)==="#"?u.charAt(1)==="x"?String.fromCharCode(parseInt(u.substring(2),16)):String.fromCharCode(+u.substring(1)):""))}const C=/(^|[^\[])\^/g;function O(m,f){m=m.source||m,f=f||"";const u={replace:(a,l)=>(l=l.source||l,l=l.replace(C,"$1"),m=m.replace(a,l),u),getRegex:()=>new RegExp(m,f)};return u}const v=/[^\w:]/g,g=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function c(m,f,u){if(m){let a;try{a=decodeURIComponent(L(u)).replace(v,"").toLowerCase()}catch(l){return null}if(a.indexOf("javascript:")===0||a.indexOf("vbscript:")===0||a.indexOf("data:")===0)return null}f&&!g.test(u)&&(u=e(f,u));try{u=encodeURI(u).replace(/%25/g,"%")}catch(a){return null}return u}const s={},n=/^[^:]+:\/*[^/]*$/,i=/^([^:]+:)[\s\S]*$/,o=/^([^:]+:\/*[^/]*)[\s\S]*$/;function e(m,f){s[" "+m]||(n.test(m)?s[" "+m]=m+"/":s[" "+m]=_(m,"/",!0)),m=s[" "+m];const u=m.indexOf(":")===-1;return f.substring(0,2)==="//"?u?f:m.replace(i,"$1")+f:f.charAt(0)==="/"?u?f:m.replace(o,"$1")+f:m+f}const t={exec:function(){}};function r(m){let f=1,u,a;for(;f<arguments.length;f++){u=arguments[f];for(a in u)Object.prototype.hasOwnProperty.call(u,a)&&(m[a]=u[a])}return m}function y(m,f){const u=m.replace(/\|/g,(h,d,b)=>{let w=!1,A=d;for(;--A>=0&&b[A]==="\\";)w=!w;return w?"|":" |"}),a=u.split(/ \|/);let l=0;if(a.length>f)a.splice(f);else for(;a.length<f;)a.push("");for(;l<a.length;l++)a[l]=a[l].trim().replace(/\\\|/g,"|");return a}function _(m,f,u){const a=m.length;if(a===0)return"";let l=0;for(;l<a;){const h=m.charAt(a-l-1);if(h===f&&!u)l++;else if(h!==f&&u)l++;else break}return m.substr(0,a-l)}function p(m,f){if(m.indexOf(f[1])===-1)return-1;const u=m.length;let a=0,l=0;for(;l<u;l++)if(m[l]==="\\")l++;else if(m[l]===f[0])a++;else if(m[l]===f[1]&&(a--,a<0))return l;return-1}function E(m){m&&m.sanitize&&!m.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}Ne.exports={escape:x,unescape:L,edit:O,cleanUrl:c,resolveUrl:e,noopTest:t,merge:r,splitCells:y,rtrim:_,findClosingBracket:p,checkSanitizeDeprecation:E}},sR1s:function(Ne,Te,k){"use strict";k.d(Te,"b",function(){return M}),k.d(Te,"a",function(){return T}),k.d(Te,"c",function(){return x}),k.d(Te,"d",function(){return N});var q=k("U8pU"),I="RC_TABLE_KEY";function R(L){return L==null?[]:Array.isArray(L)?L:[L]}function M(L,C){if(!C&&typeof C!="number")return L;for(var O=R(C),v=L,g=0;g<O.length;g+=1){if(!v)return null;var c=O[g];v=v[c]}return v}function T(L){var C=[],O={};return L.forEach(function(v){for(var g=v||{},c=g.key,s=g.dataIndex,n=c||R(s).join("-")||I;O[n];)n="".concat(n,"_next");O[n]=!0,C.push(n)}),C}function x(){var L={};function C(c,s){s&&Object.keys(s).forEach(function(n){var i=s[n];i&&Object(q.a)(i)==="object"?(c[n]=c[n]||{},C(c[n],i)):c[n]=i})}for(var O=arguments.length,v=new Array(O),g=0;g<O;g++)v[g]=arguments[g];return v.forEach(function(c){C(L,c)}),L}function N(L){return L!=null}},sboe:function(Ne,Te,k){"use strict";k.d(Te,"a",function(){return R});var q=k("cDcd"),I=k.n(q),R=q.createContext(null)},siWv:function(Ne,Te,k){Ne.exports={flex_box_center:"flex_box_center___3IH6S",flex_space_between:"flex_space_between___3AU-S",flex_box_vertical_center:"flex_box_vertical_center___1ykIO",flex_box_center_end:"flex_box_center_end___1aIQB",flex_box_column:"flex_box_column___2A_ra",btn:"btn___23gjd"}},t23M:function(Ne,Te,k){"use strict";var q=k("VTBJ"),I=k("1OyB"),R=k("vuIU"),M=k("Ji7U"),T=k("LK+K"),x=k("cDcd"),N=k.n(x),L=k("m+aA"),C=k("Zm9Q"),O=k("Kwbf"),v=k("c+Xe"),g=k("bdgK"),c="rc-observer-key",s=function(n){Object(M.a)(o,n);var i=Object(T.a)(o);function o(){var e;return Object(I.a)(this,o),e=i.apply(this,arguments),e.resizeObserver=null,e.childNode=null,e.currentElement=null,e.state={width:0,height:0,offsetHeight:0,offsetWidth:0},e.onResize=function(t){var r=e.props.onResize,y=t[0].target,_=y.getBoundingClientRect(),p=_.width,E=_.height,m=y.offsetWidth,f=y.offsetHeight,u=Math.floor(p),a=Math.floor(E);if(e.state.width!==u||e.state.height!==a||e.state.offsetWidth!==m||e.state.offsetHeight!==f){var l={width:u,height:a,offsetWidth:m,offsetHeight:f};e.setState(l),r&&Promise.resolve().then(function(){r(Object(q.a)(Object(q.a)({},l),{},{offsetWidth:m,offsetHeight:f}))})}},e.setChildNode=function(t){e.childNode=t},e}return Object(R.a)(o,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var t=this.props.disabled;if(t){this.destroyObserver();return}var r=Object(L.a)(this.childNode||this),y=r!==this.currentElement;y&&(this.destroyObserver(),this.currentElement=r),!this.resizeObserver&&r&&(this.resizeObserver=new g.default(this.onResize),this.resizeObserver.observe(r))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var t=this.props.children,r=Object(C.a)(t);if(r.length>1)Object(O.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(r.length===0)return Object(O.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var y=r[0];if(x.isValidElement(y)&&Object(v.c)(y)){var _=y.ref;r[0]=x.cloneElement(y,{ref:Object(v.a)(_,this.setChildNode)})}return r.length===1?r[0]:r.map(function(p,E){return!x.isValidElement(p)||"key"in p&&p.key!==null?p:x.cloneElement(p,{key:"".concat(c,"-").concat(E)})})}}]),o}(x.Component);s.displayName="ResizeObserver",Te.a=s},ulZh:function(Ne,Te,k){typeof window!="undefined"&&function(I,R){Ne.exports=R()}(this,function(){return function(q){var I={};function R(M){if(I[M])return I[M].exports;var T=I[M]={i:M,l:!1,exports:{}};return q[M].call(T.exports,T,T.exports,R),T.l=!0,T.exports}return R.m=q,R.c=I,R.d=function(M,T,x){R.o(M,T)||Object.defineProperty(M,T,{enumerable:!0,get:x})},R.r=function(M){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(M,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(M,"__esModule",{value:!0})},R.t=function(M,T){if(T&1&&(M=R(M)),T&8)return M;if(T&4&&typeof M=="object"&&M&&M.__esModule)return M;var x=Object.create(null);if(R.r(x),Object.defineProperty(x,"default",{enumerable:!0,value:M}),T&2&&typeof M!="string")for(var N in M)R.d(x,N,function(L){return M[L]}.bind(null,N));return x},R.n=function(M){var T=M&&M.__esModule?function(){return M.default}:function(){return M};return R.d(T,"a",T),T},R.o=function(M,T){return Object.prototype.hasOwnProperty.call(M,T)},R.p="/dist/",R(R.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":function(q,I,R){"use strict";var M=Object.prototype.hasOwnProperty,T="~";function x(){}Object.create&&(x.prototype=Object.create(null),new x().__proto__||(T=!1));function N(v,g,c){this.fn=v,this.context=g,this.once=c||!1}function L(v,g,c,s,n){if(typeof c!="function")throw new TypeError("The listener must be a function");var i=new N(c,s||v,n),o=T?T+g:g;return v._events[o]?v._events[o].fn?v._events[o]=[v._events[o],i]:v._events[o].push(i):(v._events[o]=i,v._eventsCount++),v}function C(v,g){--v._eventsCount===0?v._events=new x:delete v._events[g]}function O(){this._events=new x,this._eventsCount=0}O.prototype.eventNames=function(){var g=[],c,s;if(this._eventsCount===0)return g;for(s in c=this._events)M.call(c,s)&&g.push(T?s.slice(1):s);return Object.getOwnPropertySymbols?g.concat(Object.getOwnPropertySymbols(c)):g},O.prototype.listeners=function(g){var c=T?T+g:g,s=this._events[c];if(!s)return[];if(s.fn)return[s.fn];for(var n=0,i=s.length,o=new Array(i);n<i;n++)o[n]=s[n].fn;return o},O.prototype.listenerCount=function(g){var c=T?T+g:g,s=this._events[c];return s?s.fn?1:s.length:0},O.prototype.emit=function(g,c,s,n,i,o){var e=T?T+g:g;if(!this._events[e])return!1;var t=this._events[e],r=arguments.length,y,_;if(t.fn){t.once&&this.removeListener(g,t.fn,void 0,!0);switch(r){case 1:return t.fn.call(t.context),!0;case 2:return t.fn.call(t.context,c),!0;case 3:return t.fn.call(t.context,c,s),!0;case 4:return t.fn.call(t.context,c,s,n),!0;case 5:return t.fn.call(t.context,c,s,n,i),!0;case 6:return t.fn.call(t.context,c,s,n,i,o),!0}for(_=1,y=new Array(r-1);_<r;_++)y[_-1]=arguments[_];t.fn.apply(t.context,y)}else{var p=t.length,E;for(_=0;_<p;_++){t[_].once&&this.removeListener(g,t[_].fn,void 0,!0);switch(r){case 1:t[_].fn.call(t[_].context);break;case 2:t[_].fn.call(t[_].context,c);break;case 3:t[_].fn.call(t[_].context,c,s);break;case 4:t[_].fn.call(t[_].context,c,s,n);break;default:if(!y)for(E=1,y=new Array(r-1);E<r;E++)y[E-1]=arguments[E];t[_].fn.apply(t[_].context,y)}}}return!0},O.prototype.on=function(g,c,s){return L(this,g,c,s,!1)},O.prototype.once=function(g,c,s){return L(this,g,c,s,!0)},O.prototype.removeListener=function(g,c,s,n){var i=T?T+g:g;if(!this._events[i])return this;if(!c)return C(this,i),this;var o=this._events[i];if(o.fn)o.fn===c&&(!n||o.once)&&(!s||o.context===s)&&C(this,i);else{for(var e=0,t=[],r=o.length;e<r;e++)(o[e].fn!==c||n&&!o[e].once||s&&o[e].context!==s)&&t.push(o[e]);t.length?this._events[i]=t.length===1?t[0]:t:C(this,i)}return this},O.prototype.removeAllListeners=function(g){var c;return g?(c=T?T+g:g,this._events[c]&&C(this,c)):(this._events=new x,this._eventsCount=0),this},O.prototype.off=O.prototype.removeListener,O.prototype.addListener=O.prototype.on,O.prefixed=T,O.EventEmitter=O,q.exports=O},"./node_modules/url-toolkit/src/url-toolkit.js":function(q,I,R){(function(M){var T=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/?#]*\/)*[^;?#]*)?(;[^?#]*)?(\?[^#]*)?(#[^]*)?$/,x=/^([^\/?#]*)([^]*)$/,N=/(?:\/|^)\.(?=\/)/g,L=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,C={buildAbsoluteURL:function(O,v,g){if(g=g||{},O=O.trim(),v=v.trim(),!v){if(!g.alwaysNormalize)return O;var c=C.parseURL(O);if(!c)throw new Error("Error trying to parse base URL.");return c.path=C.normalizePath(c.path),C.buildURLFromParts(c)}var s=C.parseURL(v);if(!s)throw new Error("Error trying to parse relative URL.");if(s.scheme)return g.alwaysNormalize?(s.path=C.normalizePath(s.path),C.buildURLFromParts(s)):v;var n=C.parseURL(O);if(!n)throw new Error("Error trying to parse base URL.");if(!n.netLoc&&n.path&&n.path[0]!=="/"){var i=x.exec(n.path);n.netLoc=i[1],n.path=i[2]}n.netLoc&&!n.path&&(n.path="/");var o={scheme:n.scheme,netLoc:s.netLoc,path:null,params:s.params,query:s.query,fragment:s.fragment};if(!s.netLoc&&(o.netLoc=n.netLoc,s.path[0]!=="/"))if(!s.path)o.path=n.path,s.params||(o.params=n.params,s.query||(o.query=n.query));else{var e=n.path,t=e.substring(0,e.lastIndexOf("/")+1)+s.path;o.path=C.normalizePath(t)}return o.path===null&&(o.path=g.alwaysNormalize?C.normalizePath(s.path):s.path),C.buildURLFromParts(o)},parseURL:function(O){var v=T.exec(O);return v?{scheme:v[1]||"",netLoc:v[2]||"",path:v[3]||"",params:v[4]||"",query:v[5]||"",fragment:v[6]||""}:null},normalizePath:function(O){for(O=O.split("").reverse().join("").replace(N,"");O.length!==(O=O.replace(L,"")).length;);return O.split("").reverse().join("")},buildURLFromParts:function(O){return O.scheme+O.netLoc+O.path+O.params+O.query+O.fragment}};q.exports=C})(this)},"./node_modules/webworkify-webpack/index.js":function(q,I,R){function M(g){var c={};function s(i){if(c[i])return c[i].exports;var o=c[i]={i,l:!1,exports:{}};return g[i].call(o.exports,o,o.exports,s),o.l=!0,o.exports}s.m=g,s.c=c,s.i=function(i){return i},s.d=function(i,o,e){s.o(i,o)||Object.defineProperty(i,o,{configurable:!1,enumerable:!0,get:e})},s.r=function(i){Object.defineProperty(i,"__esModule",{value:!0})},s.n=function(i){var o=i&&i.__esModule?function(){return i.default}:function(){return i};return s.d(o,"a",o),o},s.o=function(i,o){return Object.prototype.hasOwnProperty.call(i,o)},s.p="/",s.oe=function(i){throw console.error(i),i};var n=s(s.s=ENTRY_MODULE);return n.default||n}var T="[\\.|\\-|\\+|\\w|/|@]+",x="\\(\\s*(/\\*.*?\\*/)?\\s*.*?("+T+").*?\\)";function N(g){return(g+"").replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}function L(g){return!isNaN(1*g)}function C(g,c,s){var n={};n[s]=[];var i=c.toString(),o=i.match(/^function\s?\w*\(\w+,\s*\w+,\s*(\w+)\)/);if(!o)return n;for(var e=o[1],t=new RegExp("(\\\\n|\\W)"+N(e)+x,"g"),r;r=t.exec(i);){if(r[3]==="dll-reference")continue;n[s].push(r[3])}for(t=new RegExp("\\("+N(e)+'\\("(dll-reference\\s('+T+'))"\\)\\)'+x,"g");r=t.exec(i);)g[r[2]]||(n[s].push(r[1]),g[r[2]]=R(r[1]).m),n[r[2]]=n[r[2]]||[],n[r[2]].push(r[4]);for(var y=Object.keys(n),_=0;_<y.length;_++)for(var p=0;p<n[y[_]].length;p++)L(n[y[_]][p])&&(n[y[_]][p]=1*n[y[_]][p]);return n}function O(g){var c=Object.keys(g);return c.reduce(function(s,n){return s||g[n].length>0},!1)}function v(g,c){for(var s={main:[c]},n={main:[]},i={main:{}};O(s);)for(var o=Object.keys(s),e=0;e<o.length;e++){var t=o[e],r=s[t],y=r.pop();if(i[t]=i[t]||{},i[t][y]||!g[t][y])continue;i[t][y]=!0,n[t]=n[t]||[],n[t].push(y);for(var _=C(g,g[t][y],t),p=Object.keys(_),E=0;E<p.length;E++)s[p[E]]=s[p[E]]||[],s[p[E]]=s[p[E]].concat(_[p[E]])}return n}q.exports=function(g,c){c=c||{};var s={main:R.m},n=c.all?{main:Object.keys(s.main)}:v(s,g),i="";Object.keys(n).filter(function(y){return y!=="main"}).forEach(function(y){for(var _=0;n[y][_];)_++;n[y].push(_),s[y][_]="(function(module, exports, __webpack_require__) { module.exports = __webpack_require__; })",i=i+"var "+y+" = ("+M.toString().replace("ENTRY_MODULE",JSON.stringify(_))+")({"+n[y].map(function(p){return""+JSON.stringify(p)+": "+s[y][p].toString()}).join(",")+`});
|
|
`}),i=i+"new (("+M.toString().replace("ENTRY_MODULE",JSON.stringify(g))+")({"+n.main.map(function(y){return""+JSON.stringify(y)+": "+s.main[y].toString()}).join(",")+"}))(self);";var o=new window.Blob([i],{type:"text/javascript"});if(c.bare)return o;var e=window.URL||window.webkitURL||window.mozURL||window.msURL,t=e.createObjectURL(o),r=new window.Worker(t);return r.objectURL=t,r}},"./src/config.ts":function(q,I,R){"use strict";R.r(I),R.d(I,"hlsDefaultConfig",function(){return E}),R.d(I,"mergeConfig",function(){return f}),R.d(I,"enableStreamingMode",function(){return u});var M=R("./src/controller/abr-controller.ts"),T=R("./src/controller/audio-stream-controller.ts"),x=R("./src/controller/audio-track-controller.ts"),N=R("./src/controller/subtitle-stream-controller.ts"),L=R("./src/controller/subtitle-track-controller.ts"),C=R("./src/controller/buffer-controller.ts"),O=R("./src/controller/timeline-controller.ts"),v=R("./src/controller/cap-level-controller.ts"),g=R("./src/controller/fps-controller.ts"),c=R("./src/controller/eme-controller.ts"),s=R("./src/controller/cmcd-controller.ts"),n=R("./src/utils/xhr-loader.ts"),i=R("./src/utils/fetch-loader.ts"),o=R("./src/utils/cues.ts"),e=R("./src/utils/mediakeys-helper.ts"),t=R("./src/utils/logger.ts");function r(){return r=Object.assign||function(a){for(var l=1;l<arguments.length;l++){var h=arguments[l];for(var d in h)Object.prototype.hasOwnProperty.call(h,d)&&(a[d]=h[d])}return a},r.apply(this,arguments)}function y(a,l){var h=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);l&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),h.push.apply(h,d)}return h}function _(a){for(var l=1;l<arguments.length;l++){var h=arguments[l]!=null?arguments[l]:{};l%2?y(Object(h),!0).forEach(function(d){p(a,d,h[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(h)):y(Object(h)).forEach(function(d){Object.defineProperty(a,d,Object.getOwnPropertyDescriptor(h,d))})}return a}function p(a,l,h){return l in a?Object.defineProperty(a,l,{value:h,enumerable:!0,configurable:!0,writable:!0}):a[l]=h,a}var E=_(_({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:Infinity,maxBufferSize:60*1e3*1e3,maxBufferHole:.1,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,maxFragLookUpTolerance:.25,liveSyncDurationCount:3,liveMaxLatencyDurationCount:Infinity,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,enableSoftwareAES:!0,manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,startLevel:void 0,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,loader:n.default,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:M.default,bufferController:C.default,capLevelController:v.default,fpsController:g.default,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystemOptions:{},requestMediaKeySystemAccessFunc:e.requestMediaKeySystemAccess,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0},m()),{},{subtitleStreamController:N.SubtitleStreamController,subtitleTrackController:L.default,timelineController:O.TimelineController,audioStreamController:T.default,audioTrackController:x.default,emeController:c.default,cmcdController:s.default});function m(){return{cueHandler:o.default,enableCEA708Captions:!0,enableWebVTT:!0,enableIMSC1:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}}function f(a,l){if((l.liveSyncDurationCount||l.liveMaxLatencyDurationCount)&&(l.liveSyncDuration||l.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(l.liveMaxLatencyDurationCount!==void 0&&(l.liveSyncDurationCount===void 0||l.liveMaxLatencyDurationCount<=l.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(l.liveMaxLatencyDuration!==void 0&&(l.liveSyncDuration===void 0||l.liveMaxLatencyDuration<=l.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');return r({},a,l)}function u(a){var l=a.loader;if(l!==i.default&&l!==n.default)t.logger.log("[config]: Custom loader detected, cannot enable progressive streaming"),a.progressive=!1;else{var h=Object(i.fetchSupported)();h&&(a.loader=i.default,a.progressive=!0,a.enableSoftwareAES=!0,t.logger.log("[config]: Progressive streaming enabled, using FetchLoader"))}}},"./src/controller/abr-controller.ts":function(q,I,R){"use strict";R.r(I);var M=R("./src/polyfills/number.ts"),T=R("./src/utils/ewma-bandwidth-estimator.ts"),x=R("./src/events.ts"),N=R("./src/utils/buffer-helper.ts"),L=R("./src/errors.ts"),C=R("./src/types/loader.ts"),O=R("./src/utils/logger.ts");function v(s,n){for(var i=0;i<n.length;i++){var o=n[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(s,o.key,o)}}function g(s,n,i){return n&&v(s.prototype,n),i&&v(s,i),s}var c=function(){function s(i){this.hls=void 0,this.lastLoadedFragLevel=0,this._nextAutoLevel=-1,this.timer=void 0,this.onCheck=this._abandonRulesCheck.bind(this),this.fragCurrent=null,this.partCurrent=null,this.bitrateTestDelay=0,this.bwEstimator=void 0,this.hls=i;var o=i.config;this.bwEstimator=new T.default(o.abrEwmaSlowVoD,o.abrEwmaFastVoD,o.abrEwmaDefaultEstimate),this.registerListeners()}var n=s.prototype;return n.registerListeners=function(){var o=this.hls;o.on(x.Events.FRAG_LOADING,this.onFragLoading,this),o.on(x.Events.FRAG_LOADED,this.onFragLoaded,this),o.on(x.Events.FRAG_BUFFERED,this.onFragBuffered,this),o.on(x.Events.LEVEL_LOADED,this.onLevelLoaded,this),o.on(x.Events.ERROR,this.onError,this)},n.unregisterListeners=function(){var o=this.hls;o.off(x.Events.FRAG_LOADING,this.onFragLoading,this),o.off(x.Events.FRAG_LOADED,this.onFragLoaded,this),o.off(x.Events.FRAG_BUFFERED,this.onFragBuffered,this),o.off(x.Events.LEVEL_LOADED,this.onLevelLoaded,this),o.off(x.Events.ERROR,this.onError,this)},n.destroy=function(){this.unregisterListeners(),this.clearTimer(),this.hls=this.onCheck=null,this.fragCurrent=this.partCurrent=null},n.onFragLoading=function(o,e){var t=e.frag;if(t.type===C.PlaylistLevelType.MAIN&&!this.timer){var r;this.fragCurrent=t,this.partCurrent=(r=e.part)!=null?r:null,this.timer=self.setInterval(this.onCheck,100)}},n.onLevelLoaded=function(o,e){var t=this.hls.config;e.details.live?this.bwEstimator.update(t.abrEwmaSlowLive,t.abrEwmaFastLive):this.bwEstimator.update(t.abrEwmaSlowVoD,t.abrEwmaFastVoD)},n._abandonRulesCheck=function(){var o=this.fragCurrent,e=this.partCurrent,t=this.hls,r=t.autoLevelEnabled,y=t.config,_=t.media;if(!o||!_)return;var p=e?e.stats:o.stats,E=e?e.duration:o.duration;if(p.aborted){O.logger.warn("frag loader destroy or aborted, disarm abandonRules"),this.clearTimer(),this._nextAutoLevel=-1;return}if(!r||_.paused||!_.playbackRate||!_.readyState)return;var m=performance.now()-p.loading.start,f=Math.abs(_.playbackRate);if(m<=500*E/f)return;var u=t.levels,a=t.minAutoLevel,l=u[o.level],h=p.total||Math.max(p.loaded,Math.round(E*l.maxBitrate/8)),d=Math.max(1,p.bwEstimate?p.bwEstimate/8:p.loaded*1e3/m),b=(h-p.loaded)/d,w=_.currentTime,A=(N.BufferHelper.bufferInfo(_,w,y.maxBufferHole).end-w)/f;if(A>=2*E/f||b<=A)return;var P=Number.POSITIVE_INFINITY,S;for(S=o.level-1;S>a;S--){var U=u[S].maxBitrate;if(P=E*U/(8*.8*d),P<A)break}if(P>=b)return;var D=this.bwEstimator.getEstimate();O.logger.warn("Fragment "+o.sn+(e?" part "+e.index:"")+" of level "+o.level+" is loading too slowly and will cause an underbuffer; aborting and switching to level "+S+`
|
|
Current BW estimate: `+(Object(M.isFiniteNumber)(D)?(D/1024).toFixed(3):"Unknown")+` Kb/s
|
|
Estimated load time for current fragment: `+b.toFixed(3)+` s
|
|
Estimated load time for the next fragment: `+P.toFixed(3)+` s
|
|
Time to underbuffer: `+A.toFixed(3)+" s"),t.nextLoadLevel=S,this.bwEstimator.sample(m,p.loaded),this.clearTimer(),o.loader&&(this.fragCurrent=this.partCurrent=null,o.loader.abort()),t.trigger(x.Events.FRAG_LOAD_EMERGENCY_ABORTED,{frag:o,part:e,stats:p})},n.onFragLoaded=function(o,e){var t=e.frag,r=e.part;if(t.type===C.PlaylistLevelType.MAIN&&Object(M.isFiniteNumber)(t.sn)){var y=r?r.stats:t.stats,_=r?r.duration:t.duration;if(this.clearTimer(),this.lastLoadedFragLevel=t.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var p=this.hls.levels[t.level],E=(p.loaded?p.loaded.bytes:0)+y.loaded,m=(p.loaded?p.loaded.duration:0)+_;p.loaded={bytes:E,duration:m},p.realBitrate=Math.round(8*E/m)}if(t.bitrateTest){var f={stats:y,frag:t,part:r,id:t.type};this.onFragBuffered(x.Events.FRAG_BUFFERED,f),t.bitrateTest=!1}}},n.onFragBuffered=function(o,e){var t=e.frag,r=e.part,y=r?r.stats:t.stats;if(y.aborted)return;if(t.type!==C.PlaylistLevelType.MAIN||t.sn==="initSegment")return;var _=y.parsing.end-y.loading.start;this.bwEstimator.sample(_,y.loaded),y.bwEstimate=this.bwEstimator.getEstimate(),t.bitrateTest?this.bitrateTestDelay=_/1e3:this.bitrateTestDelay=0},n.onError=function(o,e){switch(e.details){case L.ErrorDetails.FRAG_LOAD_ERROR:case L.ErrorDetails.FRAG_LOAD_TIMEOUT:this.clearTimer();break;default:break}},n.clearTimer=function(){self.clearInterval(this.timer),this.timer=void 0},n.getNextABRAutoLevel=function(){var o=this.fragCurrent,e=this.partCurrent,t=this.hls,r=t.maxAutoLevel,y=t.config,_=t.minAutoLevel,p=t.media,E=e?e.duration:o?o.duration:0,m=p?p.currentTime:0,f=p&&p.playbackRate!==0?Math.abs(p.playbackRate):1,u=this.bwEstimator?this.bwEstimator.getEstimate():y.abrEwmaDefaultEstimate,a=(N.BufferHelper.bufferInfo(p,m,y.maxBufferHole).end-m)/f,l=this.findBestLevel(u,_,r,a,y.abrBandWidthFactor,y.abrBandWidthUpFactor);if(l>=0)return l;O.logger.trace((a?"rebuffering expected":"buffer is empty")+", finding optimal quality level");var h=E?Math.min(E,y.maxStarvationDelay):y.maxStarvationDelay,d=y.abrBandWidthFactor,b=y.abrBandWidthUpFactor;if(!a){var w=this.bitrateTestDelay;if(w){var A=E?Math.min(E,y.maxLoadingDelay):y.maxLoadingDelay;h=A-w,O.logger.trace("bitrate test took "+Math.round(1e3*w)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*h)+" ms"),d=b=1}}return l=this.findBestLevel(u,_,r,a+h,d,b),Math.max(l,0)},n.findBestLevel=function(o,e,t,r,y,_){for(var p,E=this.fragCurrent,m=this.partCurrent,f=this.lastLoadedFragLevel,u=this.hls.levels,a=u[f],l=!!(a!=null&&(p=a.details)!==null&&p!==void 0&&p.live),h=a==null?void 0:a.codecSet,d=m?m.duration:E?E.duration:0,b=t;b>=e;b--){var w=u[b];if(!w||h&&w.codecSet!==h)continue;var A=w.details,P=(m?A==null?void 0:A.partTarget:A==null?void 0:A.averagetargetduration)||d,S=void 0;b<=f?S=y*o:S=_*o;var U=u[b].maxBitrate,D=U*P/S;if(O.logger.trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: "+b+"/"+Math.round(S)+"/"+U+"/"+P+"/"+r+"/"+D),S>U&&(!D||l&&!this.bitrateTestDelay||D<r))return b}return-1},g(s,[{key:"nextAutoLevel",get:function(){var o=this._nextAutoLevel,e=this.bwEstimator;if(o!==-1&&(!e||!e.canEstimate()))return o;var t=this.getNextABRAutoLevel();return o!==-1&&(t=Math.min(o,t)),t},set:function(o){this._nextAutoLevel=o}}]),s}();I.default=c},"./src/controller/audio-stream-controller.ts":function(q,I,R){"use strict";R.r(I);var M=R("./src/polyfills/number.ts"),T=R("./src/controller/base-stream-controller.ts"),x=R("./src/events.ts"),N=R("./src/utils/buffer-helper.ts"),L=R("./src/controller/fragment-tracker.ts"),C=R("./src/types/level.ts"),O=R("./src/types/loader.ts"),v=R("./src/loader/fragment.ts"),g=R("./src/demux/chunk-cache.ts"),c=R("./src/demux/transmuxer-interface.ts"),s=R("./src/types/transmuxer.ts"),n=R("./src/controller/fragment-finders.ts"),i=R("./src/utils/discontinuities.ts"),o=R("./src/errors.ts"),e=R("./src/utils/logger.ts");function t(){return t=Object.assign||function(E){for(var m=1;m<arguments.length;m++){var f=arguments[m];for(var u in f)Object.prototype.hasOwnProperty.call(f,u)&&(E[u]=f[u])}return E},t.apply(this,arguments)}function r(E,m){E.prototype=Object.create(m.prototype),E.prototype.constructor=E,y(E,m)}function y(E,m){return y=Object.setPrototypeOf||function(u,a){return u.__proto__=a,u},y(E,m)}var _=100,p=function(E){r(m,E);function m(u,a){var l;return l=E.call(this,u,a,"[audio-stream-controller]")||this,l.videoBuffer=null,l.videoTrackCC=-1,l.waitingVideoCC=-1,l.audioSwitch=!1,l.trackId=-1,l.waitingData=null,l.mainDetails=null,l.bufferFlushed=!1,l._registerListeners(),l}var f=m.prototype;return f.onHandlerDestroying=function(){this._unregisterListeners(),this.mainDetails=null},f._registerListeners=function(){var a=this.hls;a.on(x.Events.MEDIA_ATTACHED,this.onMediaAttached,this),a.on(x.Events.MEDIA_DETACHING,this.onMediaDetaching,this),a.on(x.Events.MANIFEST_LOADING,this.onManifestLoading,this),a.on(x.Events.LEVEL_LOADED,this.onLevelLoaded,this),a.on(x.Events.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),a.on(x.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),a.on(x.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),a.on(x.Events.ERROR,this.onError,this),a.on(x.Events.BUFFER_RESET,this.onBufferReset,this),a.on(x.Events.BUFFER_CREATED,this.onBufferCreated,this),a.on(x.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),a.on(x.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),a.on(x.Events.FRAG_BUFFERED,this.onFragBuffered,this)},f._unregisterListeners=function(){var a=this.hls;a.off(x.Events.MEDIA_ATTACHED,this.onMediaAttached,this),a.off(x.Events.MEDIA_DETACHING,this.onMediaDetaching,this),a.off(x.Events.MANIFEST_LOADING,this.onManifestLoading,this),a.off(x.Events.LEVEL_LOADED,this.onLevelLoaded,this),a.off(x.Events.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),a.off(x.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),a.off(x.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),a.off(x.Events.ERROR,this.onError,this),a.off(x.Events.BUFFER_RESET,this.onBufferReset,this),a.off(x.Events.BUFFER_CREATED,this.onBufferCreated,this),a.off(x.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),a.off(x.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),a.off(x.Events.FRAG_BUFFERED,this.onFragBuffered,this)},f.onInitPtsFound=function(a,l){var h=l.frag,d=l.id,b=l.initPTS;if(d==="main"){var w=h.cc;this.initPTS[h.cc]=b,this.log("InitPTS for cc: "+w+" found from main: "+b),this.videoTrackCC=w,this.state===T.State.WAITING_INIT_PTS&&this.tick()}},f.startLoad=function(a){if(!this.levels){this.startPosition=a,this.state=T.State.STOPPED;return}var l=this.lastCurrentTime;this.stopLoad(),this.setInterval(_),this.fragLoadError=0,l>0&&a===-1?(this.log("Override startPosition with lastCurrentTime @"+l.toFixed(3)),this.state=T.State.IDLE):(this.loadedmetadata=!1,this.state=T.State.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=a,this.tick()},f.doTick=function(){switch(this.state){case T.State.IDLE:this.doTickIdle();break;case T.State.WAITING_TRACK:{var a,l=this.levels,h=this.trackId,d=l==null||((a=l[h])===null||a===void 0)?void 0:a.details;if(d){if(this.waitForCdnTuneIn(d))break;this.state=T.State.WAITING_INIT_PTS}break}case T.State.FRAG_LOADING_WAITING_RETRY:{var b,w=performance.now(),A=this.retryDate;(!A||w>=A||(b=this.media)!==null&&b!==void 0&&b.seeking)&&(this.log("RetryDate reached, switch back to IDLE state"),this.state=T.State.IDLE);break}case T.State.WAITING_INIT_PTS:{var P=this.waitingData;if(P){var S=P.frag,U=P.part,D=P.cache,j=P.complete;if(this.initPTS[S.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=T.State.FRAG_LOADING;var K=D.flush(),Z={frag:S,part:U,payload:K,networkDetails:null};this._handleFragmentLoadProgress(Z),j&&E.prototype._handleFragmentLoadComplete.call(this,Z)}else if(this.videoTrackCC!==this.waitingVideoCC)e.logger.log("Waiting fragment cc ("+S.cc+") cancelled because video is at cc "+this.videoTrackCC),this.clearWaitingFragment();else{var ne=this.getLoadPosition(),me=N.BufferHelper.bufferInfo(this.mediaBuffer,ne,this.config.maxBufferHole),he=Object(n.fragmentWithinToleranceTest)(me.end,this.config.maxFragLookUpTolerance,S);he<0&&(e.logger.log("Waiting fragment cc ("+S.cc+") @ "+S.start+" cancelled because another fragment at "+me.end+" is needed"),this.clearWaitingFragment())}}else this.state=T.State.IDLE}}this.onTickEnd()},f.clearWaitingFragment=function(){var a=this.waitingData;a&&(this.fragmentTracker.removeFragment(a.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=T.State.IDLE)},f.onTickEnd=function(){var a=this.media;if(!a||!a.readyState)return;var l=this.mediaBuffer?this.mediaBuffer:a,h=l.buffered;!this.loadedmetadata&&h.length&&(this.loadedmetadata=!0),this.lastCurrentTime=a.currentTime},f.doTickIdle=function(){var a,l,h=this.hls,d=this.levels,b=this.media,w=this.trackId,A=h.config;if(!d||!d[w])return;if(!b&&(this.startFragRequested||!A.startFragPrefetch))return;var P=d[w],S=P.details;if(!S||S.live&&this.levelLastLoaded!==w||this.waitForCdnTuneIn(S)){this.state=T.State.WAITING_TRACK;return}this.bufferFlushed&&(this.bufferFlushed=!1,this.afterBufferFlushed(this.mediaBuffer?this.mediaBuffer:this.media,v.ElementaryStreamTypes.AUDIO,O.PlaylistLevelType.AUDIO));var U=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,O.PlaylistLevelType.AUDIO);if(U===null)return;var D=U.len,j=this.getMaxBufferLength(),K=this.audioSwitch;if(D>=j&&!K)return;if(!K&&this._streamEnded(U,S)){h.trigger(x.Events.BUFFER_EOS,{type:"audio"}),this.state=T.State.ENDED;return}var Z=S.fragments,ne=Z[0].start,me=U.end;if(K){var he=this.getLoadPosition();me=he,S.PTSKnown&&he<ne&&((U.end>ne||U.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),b.currentTime=ne+.05))}var Y=this.getNextFragment(me,S);if(!Y){this.bufferFlushed=!0;return}((a=Y.decryptdata)===null||a===void 0?void 0:a.keyFormat)==="identity"&&!((l=Y.decryptdata)!==null&&l!==void 0&&l.key)?this.loadKey(Y,S):this.loadFragment(Y,S,me)},f.getMaxBufferLength=function(){var a=E.prototype.getMaxBufferLength.call(this),l=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,O.PlaylistLevelType.MAIN);return l===null?a:Math.max(a,l.len)},f.onMediaDetaching=function(){this.videoBuffer=null,E.prototype.onMediaDetaching.call(this)},f.onAudioTracksUpdated=function(a,l){var h=l.audioTracks;this.resetTransmuxer(),this.levels=h.map(function(d){return new C.Level(d)})},f.onAudioTrackSwitching=function(a,l){var h=!!l.url;this.trackId=l.id;var d=this.fragCurrent;d!=null&&d.loader&&d.loader.abort(),this.fragCurrent=null,this.clearWaitingFragment(),h?this.setInterval(_):this.resetTransmuxer(),h?(this.audioSwitch=!0,this.state=T.State.IDLE):this.state=T.State.STOPPED,this.tick()},f.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=!1},f.onLevelLoaded=function(a,l){this.mainDetails=l.details},f.onAudioTrackLoaded=function(a,l){var h,d=this.levels,b=l.details,w=l.id;if(!d){this.warn("Audio tracks were reset while loading level "+w);return}this.log("Track "+w+" loaded ["+b.startSN+","+b.endSN+"],duration:"+b.totalduration);var A=d[w],P=0;if(b.live||(h=A.details)!==null&&h!==void 0&&h.live){var S=this.mainDetails;if(b.fragments[0]||(b.deltaUpdateFailed=!0),b.deltaUpdateFailed||!S)return;!A.details&&b.hasProgramDateTime&&S.hasProgramDateTime?(Object(i.alignMediaPlaylistByPDT)(b,S),P=b.fragments[0].start):P=this.alignPlaylists(b,A.details)}A.details=b,this.levelLastLoaded=w,!this.startFragRequested&&(this.mainDetails||!b.live)&&this.setStartPosition(A.details,P),this.state===T.State.WAITING_TRACK&&!this.waitForCdnTuneIn(b)&&(this.state=T.State.IDLE),this.tick()},f._handleFragmentLoadProgress=function(a){var l,h=a.frag,d=a.part,b=a.payload,w=this.config,A=this.trackId,P=this.levels;if(!P){this.warn("Audio tracks were reset while fragment load was in progress. Fragment "+h.sn+" of level "+h.level+" will not be buffered");return}var S=P[A];console.assert(S,"Audio track is defined on fragment load progress");var U=S.details;console.assert(U,"Audio track details are defined on fragment load progress");var D=w.defaultAudioCodec||S.audioCodec||"mp4a.40.2",j=this.transmuxer;j||(j=this.transmuxer=new c.default(this.hls,O.PlaylistLevelType.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));var K=this.initPTS[h.cc],Z=(l=h.initSegment)===null||l===void 0?void 0:l.data;if(K!==void 0){var ne=!1,me=d?d.index:-1,he=me!==-1,Y=new s.ChunkMetadata(h.level,h.sn,h.stats.chunkCount,b.byteLength,me,he);j.push(b,Z,D,"",h,d,U.totalduration,ne,Y,K)}else{e.logger.log("Unknown video PTS for cc "+h.cc+", waiting for video PTS before demuxing audio frag "+h.sn+" of ["+U.startSN+" ,"+U.endSN+"],track "+A);var le=this.waitingData=this.waitingData||{frag:h,part:d,cache:new g.default,complete:!1},ge=le.cache;ge.push(new Uint8Array(b)),this.waitingVideoCC=this.videoTrackCC,this.state=T.State.WAITING_INIT_PTS}},f._handleFragmentLoadComplete=function(a){if(this.waitingData){this.waitingData.complete=!0;return}E.prototype._handleFragmentLoadComplete.call(this,a)},f.onBufferReset=function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1},f.onBufferCreated=function(a,l){var h=l.tracks.audio;h&&(this.mediaBuffer=h.buffer),l.tracks.video&&(this.videoBuffer=l.tracks.video.buffer)},f.onFragBuffered=function(a,l){var h=l.frag,d=l.part;if(h.type!==O.PlaylistLevelType.AUDIO)return;if(this.fragContextChanged(h)){this.warn("Fragment "+h.sn+(d?" p: "+d.index:"")+" of level "+h.level+" finished buffering, but was aborted. state: "+this.state+", audioSwitch: "+this.audioSwitch);return}h.sn!=="initSegment"&&(this.fragPrevious=h,this.audioSwitch&&(this.audioSwitch=!1,this.hls.trigger(x.Events.AUDIO_TRACK_SWITCHED,{id:this.trackId}))),this.fragBufferedComplete(h,d)},f.onError=function(a,l){switch(l.details){case o.ErrorDetails.FRAG_LOAD_ERROR:case o.ErrorDetails.FRAG_LOAD_TIMEOUT:case o.ErrorDetails.KEY_LOAD_ERROR:case o.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(O.PlaylistLevelType.AUDIO,l);break;case o.ErrorDetails.AUDIO_TRACK_LOAD_ERROR:case o.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:this.state!==T.State.ERROR&&this.state!==T.State.STOPPED&&(this.state=l.fatal?T.State.ERROR:T.State.IDLE,this.warn(l.details+" while loading frag, switching to "+this.state+" state"));break;case o.ErrorDetails.BUFFER_FULL_ERROR:if(l.parent==="audio"&&(this.state===T.State.PARSING||this.state===T.State.PARSED)){var h=!0,d=this.getFwdBufferInfo(this.mediaBuffer,O.PlaylistLevelType.AUDIO);d&&d.len>.5&&(h=!this.reduceMaxBufferLength(d.len)),h&&(this.warn("Buffer full error also media.currentTime is not buffered, flush audio buffer"),this.fragCurrent=null,E.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.resetLoadingState()}break;default:break}},f.onBufferFlushed=function(a,l){var h=l.type;h===v.ElementaryStreamTypes.AUDIO&&(this.bufferFlushed=!0)},f._handleTransmuxComplete=function(a){var l,h="audio",d=this.hls,b=a.remuxResult,w=a.chunkMeta,A=this.getCurrentContext(w);if(!A){this.warn("The loading context changed while buffering fragment "+w.sn+" of level "+w.level+". This chunk will not be buffered."),this.resetLiveStartWhenNotLoaded(w.level);return}var P=A.frag,S=A.part,U=b.audio,D=b.text,j=b.id3,K=b.initSegment;if(this.fragContextChanged(P))return;if(this.state=T.State.PARSING,this.audioSwitch&&U&&this.completeAudioSwitch(),K!=null&&K.tracks&&(this._bufferInitSegment(K.tracks,P,w),d.trigger(x.Events.FRAG_PARSING_INIT_SEGMENT,{frag:P,id:h,tracks:K.tracks})),U){var Z=U.startPTS,ne=U.endPTS,me=U.startDTS,he=U.endDTS;S&&(S.elementaryStreams[v.ElementaryStreamTypes.AUDIO]={startPTS:Z,endPTS:ne,startDTS:me,endDTS:he}),P.setElementaryStreamInfo(v.ElementaryStreamTypes.AUDIO,Z,ne,me,he),this.bufferFragmentData(U,P,S,w)}if(j!=null&&(l=j.samples)!==null&&l!==void 0&&l.length){var Y=t({frag:P,id:h},j);d.trigger(x.Events.FRAG_PARSING_METADATA,Y)}if(D){var le=t({frag:P,id:h},D);d.trigger(x.Events.FRAG_PARSING_USERDATA,le)}},f._bufferInitSegment=function(a,l,h){if(this.state!==T.State.PARSING)return;a.video&&delete a.video;var d=a.audio;if(!d)return;d.levelCodec=d.codec,d.id="audio",this.log("Init audio buffer, container:"+d.container+", codecs[parsed]=["+d.codec+"]"),this.hls.trigger(x.Events.BUFFER_CODECS,a);var b=d.initSegment;if(b!=null&&b.byteLength){var w={type:"audio",frag:l,part:null,chunkMeta:h,parent:l.type,data:b};this.hls.trigger(x.Events.BUFFER_APPENDING,w)}this.tick()},f.loadFragment=function(a,l,h){var d=this.fragmentTracker.getState(a);this.fragCurrent=a,(this.audioSwitch||d===L.FragmentState.NOT_LOADED||d===L.FragmentState.PARTIAL)&&(a.sn==="initSegment"?this._loadInitSegment(a):l.live&&!Object(M.isFiniteNumber)(this.initPTS[a.cc])?(this.log("Waiting for video PTS in continuity counter "+a.cc+" of live stream before loading audio fragment "+a.sn+" of level "+this.trackId),this.state=T.State.WAITING_INIT_PTS):(this.startFragRequested=!0,E.prototype.loadFragment.call(this,a,l,h)))},f.completeAudioSwitch=function(){var a=this.hls,l=this.media,h=this.trackId;l&&(this.log("Switching audio track : flushing all audio"),E.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.audioSwitch=!1,a.trigger(x.Events.AUDIO_TRACK_SWITCHED,{id:h})},m}(T.default);I.default=p},"./src/controller/audio-track-controller.ts":function(q,I,R){"use strict";R.r(I);var M=R("./src/events.ts"),T=R("./src/errors.ts"),x=R("./src/controller/base-playlist-controller.ts"),N=R("./src/types/loader.ts");function L(c,s){for(var n=0;n<s.length;n++){var i=s[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(c,i.key,i)}}function C(c,s,n){return s&&L(c.prototype,s),n&&L(c,n),c}function O(c,s){c.prototype=Object.create(s.prototype),c.prototype.constructor=c,v(c,s)}function v(c,s){return v=Object.setPrototypeOf||function(i,o){return i.__proto__=o,i},v(c,s)}var g=function(c){O(s,c);function s(i){var o;return o=c.call(this,i,"[audio-track-controller]")||this,o.tracks=[],o.groupId=null,o.tracksInGroup=[],o.trackId=-1,o.trackName="",o.selectDefaultTrack=!0,o.registerListeners(),o}var n=s.prototype;return n.registerListeners=function(){var o=this.hls;o.on(M.Events.MANIFEST_LOADING,this.onManifestLoading,this),o.on(M.Events.MANIFEST_PARSED,this.onManifestParsed,this),o.on(M.Events.LEVEL_LOADING,this.onLevelLoading,this),o.on(M.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),o.on(M.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),o.on(M.Events.ERROR,this.onError,this)},n.unregisterListeners=function(){var o=this.hls;o.off(M.Events.MANIFEST_LOADING,this.onManifestLoading,this),o.off(M.Events.MANIFEST_PARSED,this.onManifestParsed,this),o.off(M.Events.LEVEL_LOADING,this.onLevelLoading,this),o.off(M.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),o.off(M.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),o.off(M.Events.ERROR,this.onError,this)},n.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,c.prototype.destroy.call(this)},n.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.trackName="",this.selectDefaultTrack=!0},n.onManifestParsed=function(o,e){this.tracks=e.audioTracks||[]},n.onAudioTrackLoaded=function(o,e){var t=e.id,r=e.details,y=this.tracksInGroup[t];if(!y){this.warn("Invalid audio track id "+t);return}var _=y.details;y.details=e.details,this.log("audioTrack "+t+" loaded ["+r.startSN+"-"+r.endSN+"]"),t===this.trackId&&(this.retryCount=0,this.playlistLoaded(t,e,_))},n.onLevelLoading=function(o,e){this.switchLevel(e.level)},n.onLevelSwitching=function(o,e){this.switchLevel(e.level)},n.switchLevel=function(o){var e=this.hls.levels[o];if(!(e!=null&&e.audioGroupIds))return;var t=e.audioGroupIds[e.urlId];if(this.groupId!==t){this.groupId=t;var r=this.tracks.filter(function(_){return!t||_.groupId===t});this.selectDefaultTrack&&!r.some(function(_){return _.default})&&(this.selectDefaultTrack=!1),this.tracksInGroup=r;var y={audioTracks:r};this.log("Updating audio tracks, "+r.length+' track(s) found in "'+t+'" group-id'),this.hls.trigger(M.Events.AUDIO_TRACKS_UPDATED,y),this.selectInitialTrack()}},n.onError=function(o,e){if(c.prototype.onError.call(this,o,e),e.fatal||!e.context)return;e.context.type===N.PlaylistContextType.AUDIO_TRACK&&e.context.id===this.trackId&&e.context.groupId===this.groupId&&this.retryLoadingOrFail(e)},n.setAudioTrack=function(o){var e=this.tracksInGroup;if(o<0||o>=e.length){this.warn("Invalid id passed to audio-track controller");return}this.clearTimer();var t=e[this.trackId];this.log("Now switching to audio-track index "+o);var r=e[o],y=r.id,_=r.groupId,p=_===void 0?"":_,E=r.name,m=r.type,f=r.url;if(this.trackId=o,this.trackName=E,this.selectDefaultTrack=!1,this.hls.trigger(M.Events.AUDIO_TRACK_SWITCHING,{id:y,groupId:p,name:E,type:m,url:f}),r.details&&!r.details.live)return;var u=this.switchParams(r.url,t==null?void 0:t.details);this.loadPlaylist(u)},n.selectInitialTrack=function(){var o=this.tracksInGroup;console.assert(o.length,"Initial audio track should be selected when tracks are known");var e=this.trackName,t=this.findTrackId(e)||this.findTrackId();t!==-1?this.setAudioTrack(t):(this.warn("No track found for running audio group-ID: "+this.groupId),this.hls.trigger(M.Events.ERROR,{type:T.ErrorTypes.MEDIA_ERROR,details:T.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,fatal:!0}))},n.findTrackId=function(o){for(var e=this.tracksInGroup,t=0;t<e.length;t++){var r=e[t];if((!this.selectDefaultTrack||r.default)&&(!o||o===r.name))return r.id}return-1},n.loadPlaylist=function(o){var e=this.tracksInGroup[this.trackId];if(this.shouldLoadTrack(e)){var t=e.id,r=e.groupId,y=e.url;if(o)try{y=o.addDirectives(y)}catch(_){this.warn("Could not construct new URL with HLS Delivery Directives: "+_)}this.log("loading audio-track playlist for id: "+t),this.clearTimer(),this.hls.trigger(M.Events.AUDIO_TRACK_LOADING,{url:y,id:t,groupId:r,deliveryDirectives:o||null})}},C(s,[{key:"audioTracks",get:function(){return this.tracksInGroup}},{key:"audioTrack",get:function(){return this.trackId},set:function(o){this.selectDefaultTrack=!1,this.setAudioTrack(o)}}]),s}(x.default);I.default=g},"./src/controller/base-playlist-controller.ts":function(q,I,R){"use strict";R.r(I),R.d(I,"default",function(){return C});var M=R("./src/polyfills/number.ts"),T=R("./src/types/level.ts"),x=R("./src/controller/level-helper.ts"),N=R("./src/utils/logger.ts"),L=R("./src/errors.ts"),C=function(){function O(g,c){this.hls=void 0,this.timer=-1,this.canLoad=!1,this.retryCount=0,this.log=void 0,this.warn=void 0,this.log=N.logger.log.bind(N.logger,c+":"),this.warn=N.logger.warn.bind(N.logger,c+":"),this.hls=g}var v=O.prototype;return v.destroy=function(){this.clearTimer(),this.hls=this.log=this.warn=null},v.onError=function(c,s){s.fatal&&s.type===L.ErrorTypes.NETWORK_ERROR&&this.clearTimer()},v.clearTimer=function(){clearTimeout(this.timer),this.timer=-1},v.startLoad=function(){this.canLoad=!0,this.retryCount=0,this.loadPlaylist()},v.stopLoad=function(){this.canLoad=!1,this.clearTimer()},v.switchParams=function(c,s){var n=s==null?void 0:s.renditionReports;if(n)for(var i=0;i<n.length;i++){var o=n[i],e=""+o.URI;if(e===c.substr(-e.length)){var t=parseInt(o["LAST-MSN"]),r=parseInt(o["LAST-PART"]);if(s&&this.hls.config.lowLatencyMode){var y=Math.min(s.age-s.partTarget,s.targetduration);r!==void 0&&y>s.partTarget&&(r+=1)}if(Object(M.isFiniteNumber)(t))return new T.HlsUrlParameters(t,Object(M.isFiniteNumber)(r)?r:void 0,T.HlsSkip.No)}}},v.loadPlaylist=function(c){},v.shouldLoadTrack=function(c){return this.canLoad&&c&&!!c.url&&(!c.details||c.details.live)},v.playlistLoaded=function(c,s,n){var i=this,o=s.details,e=s.stats,t=e.loading.end?Math.max(0,self.performance.now()-e.loading.end):0;if(o.advancedDateTime=Date.now()-t,o.live||n!=null&&n.live){if(o.reloaded(n),n&&this.log("live playlist "+c+" "+(o.advanced?"REFRESHED "+o.lastPartSn+"-"+o.lastPartIndex:"MISSED")),n&&o.fragments.length>0&&Object(x.mergeDetails)(n,o),!this.canLoad||!o.live)return;var r,y=void 0,_=void 0;if(o.canBlockReload&&o.endSN&&o.advanced){var p=this.hls.config.lowLatencyMode,E=o.lastPartSn,m=o.endSN,f=o.lastPartIndex,u=f!==-1,a=E===m,l=p?0:f;u?(y=a?m+1:E,_=a?l:f+1):y=m+1;var h=o.age,d=h+o.ageHeader,b=Math.min(d-o.partTarget,o.targetduration*1.5);if(b>0){if(n&&b>n.tuneInGoal)this.warn("CDN Tune-in goal increased from: "+n.tuneInGoal+" to: "+b+" with playlist age: "+o.age),b=0;else{var w=Math.floor(b/o.targetduration);if(y+=w,_!==void 0){var A=Math.round(b%o.targetduration/o.partTarget);_+=A}this.log("CDN Tune-in age: "+o.ageHeader+"s last advanced "+h.toFixed(2)+"s goal: "+b+" skip sn "+w+" to part "+_)}o.tuneInGoal=b}if(r=this.getDeliveryDirectives(o,s.deliveryDirectives,y,_),p||!a){this.loadPlaylist(r);return}}else r=this.getDeliveryDirectives(o,s.deliveryDirectives,y,_);var P=Object(x.computeReloadInterval)(o,e);y!==void 0&&o.canBlockReload&&(P-=o.partTarget||1),this.log("reload live playlist "+c+" in "+Math.round(P)+" ms"),this.timer=self.setTimeout(function(){return i.loadPlaylist(r)},P)}else this.clearTimer()},v.getDeliveryDirectives=function(c,s,n,i){var o=Object(T.getSkipValue)(c,n);return s!=null&&s.skip&&c.deltaUpdateFailed&&(n=s.msn,i=s.part,o=T.HlsSkip.No),new T.HlsUrlParameters(n,i,o)},v.retryLoadingOrFail=function(c){var s=this,n=this.hls.config,i=this.retryCount<n.levelLoadingMaxRetry;if(i){var o;if(this.retryCount++,c.details.indexOf("LoadTimeOut")>-1&&(o=c.context)!==null&&o!==void 0&&o.deliveryDirectives)this.warn("retry playlist loading #"+this.retryCount+' after "'+c.details+'"'),this.loadPlaylist();else{var e=Math.min(Math.pow(2,this.retryCount)*n.levelLoadingRetryDelay,n.levelLoadingMaxRetryTimeout);this.timer=self.setTimeout(function(){return s.loadPlaylist()},e),this.warn("retry playlist loading #"+this.retryCount+" in "+e+' ms after "'+c.details+'"')}}else this.warn('cannot recover from error "'+c.details+'"'),this.clearTimer(),c.fatal=!0;return i},O}()},"./src/controller/base-stream-controller.ts":function(q,I,R){"use strict";R.r(I),R.d(I,"State",function(){return m}),R.d(I,"default",function(){return f});var M=R("./src/polyfills/number.ts"),T=R("./src/task-loop.ts"),x=R("./src/controller/fragment-tracker.ts"),N=R("./src/utils/buffer-helper.ts"),L=R("./src/utils/logger.ts"),C=R("./src/events.ts"),O=R("./src/errors.ts"),v=R("./src/types/transmuxer.ts"),g=R("./src/utils/mp4-tools.ts"),c=R("./src/utils/discontinuities.ts"),s=R("./src/controller/fragment-finders.ts"),n=R("./src/controller/level-helper.ts"),i=R("./src/loader/fragment-loader.ts"),o=R("./src/crypt/decrypter.ts"),e=R("./src/utils/time-ranges.ts"),t=R("./src/types/loader.ts");function r(u,a){for(var l=0;l<a.length;l++){var h=a[l];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(u,h.key,h)}}function y(u,a,l){return a&&r(u.prototype,a),l&&r(u,l),u}function _(u){if(u===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u}function p(u,a){u.prototype=Object.create(a.prototype),u.prototype.constructor=u,E(u,a)}function E(u,a){return E=Object.setPrototypeOf||function(h,d){return h.__proto__=d,h},E(u,a)}var m={STOPPED:"STOPPED",IDLE:"IDLE",KEY_LOADING:"KEY_LOADING",FRAG_LOADING:"FRAG_LOADING",FRAG_LOADING_WAITING_RETRY:"FRAG_LOADING_WAITING_RETRY",WAITING_TRACK:"WAITING_TRACK",PARSING:"PARSING",PARSED:"PARSED",BACKTRACKING:"BACKTRACKING",ENDED:"ENDED",ERROR:"ERROR",WAITING_INIT_PTS:"WAITING_INIT_PTS",WAITING_LEVEL:"WAITING_LEVEL"},f=function(u){p(a,u);function a(h,d,b){var w;return w=u.call(this)||this,w.hls=void 0,w.fragPrevious=null,w.fragCurrent=null,w.fragmentTracker=void 0,w.transmuxer=null,w._state=m.STOPPED,w.media=void 0,w.mediaBuffer=void 0,w.config=void 0,w.bitrateTest=!1,w.lastCurrentTime=0,w.nextLoadPosition=0,w.startPosition=0,w.loadedmetadata=!1,w.fragLoadError=0,w.retryDate=0,w.levels=null,w.fragmentLoader=void 0,w.levelLastLoaded=null,w.startFragRequested=!1,w.decrypter=void 0,w.initPTS=[],w.onvseeking=null,w.onvended=null,w.logPrefix="",w.log=void 0,w.warn=void 0,w.logPrefix=b,w.log=L.logger.log.bind(L.logger,b+":"),w.warn=L.logger.warn.bind(L.logger,b+":"),w.hls=h,w.fragmentLoader=new i.default(h.config),w.fragmentTracker=d,w.config=h.config,w.decrypter=new o.default(h,h.config),h.on(C.Events.KEY_LOADED,w.onKeyLoaded,_(w)),w}var l=a.prototype;return l.doTick=function(){this.onTickEnd()},l.onTickEnd=function(){},l.startLoad=function(d){},l.stopLoad=function(){this.fragmentLoader.abort();var d=this.fragCurrent;d&&this.fragmentTracker.removeFragment(d),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=m.STOPPED},l._streamEnded=function(d,b){var w=this.fragCurrent,A=this.fragmentTracker;if(!b.live&&w&&w.sn===b.endSN&&!d.nextStart){var P=A.getState(w);return P===x.FragmentState.PARTIAL||P===x.FragmentState.OK}return!1},l.onMediaAttached=function(d,b){var w=this.media=this.mediaBuffer=b.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),w.addEventListener("seeking",this.onvseeking),w.addEventListener("ended",this.onvended);var A=this.config;this.levels&&A.autoStartLoad&&this.state===m.STOPPED&&this.startLoad(A.startPosition)},l.onMediaDetaching=function(){var d=this.media;d!=null&&d.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),d&&(d.removeEventListener("seeking",this.onvseeking),d.removeEventListener("ended",this.onvended),this.onvseeking=this.onvended=null),this.media=this.mediaBuffer=null,this.loadedmetadata=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()},l.onMediaSeeking=function(){var d=this.config,b=this.fragCurrent,w=this.media,A=this.mediaBuffer,P=this.state,S=w?w.currentTime:0,U=N.BufferHelper.bufferInfo(A||w,S,d.maxBufferHole);if(this.log("media seeking to "+(Object(M.isFiniteNumber)(S)?S.toFixed(3):S)+", state: "+P),P===m.ENDED)this.resetLoadingState();else if(b&&!U.len){var D=d.maxFragLookUpTolerance,j=b.start-D,K=b.start+b.duration+D,Z=S>K;(S<j||Z)&&(Z&&b.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),b.loader.abort()),this.resetLoadingState())}w&&(this.lastCurrentTime=S),!this.loadedmetadata&&!U.len&&(this.nextLoadPosition=this.startPosition=S),this.tickImmediate()},l.onMediaEnded=function(){this.startPosition=this.lastCurrentTime=0},l.onKeyLoaded=function(d,b){if(this.state!==m.KEY_LOADING||b.frag!==this.fragCurrent||!this.levels)return;this.state=m.IDLE;var w=this.levels[b.frag.level].details;w&&this.loadFragment(b.frag,w,b.frag.start)},l.onHandlerDestroying=function(){this.stopLoad(),u.prototype.onHandlerDestroying.call(this)},l.onHandlerDestroyed=function(){this.state=m.STOPPED,this.hls.off(C.Events.KEY_LOADED,this.onKeyLoaded,this),this.fragmentLoader&&this.fragmentLoader.destroy(),this.decrypter&&this.decrypter.destroy(),this.hls=this.log=this.warn=this.decrypter=this.fragmentLoader=this.fragmentTracker=null,u.prototype.onHandlerDestroyed.call(this)},l.loadKey=function(d,b){this.log("Loading key for "+d.sn+" of ["+b.startSN+"-"+b.endSN+"], "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+d.level),this.state=m.KEY_LOADING,this.fragCurrent=d,this.hls.trigger(C.Events.KEY_LOADING,{frag:d})},l.loadFragment=function(d,b,w){this._loadFragForPlayback(d,b,w)},l._loadFragForPlayback=function(d,b,w){var A=this,P=function(U){if(A.fragContextChanged(d)){A.warn("Fragment "+d.sn+(U.part?" p: "+U.part.index:"")+" of level "+d.level+" was dropped during download."),A.fragmentTracker.removeFragment(d);return}d.stats.chunkCount++,A._handleFragmentLoadProgress(U)};this._doFragLoad(d,b,w,P).then(function(S){if(!S)return;A.fragLoadError=0;var U=A.state;if(A.fragContextChanged(d)){(U===m.FRAG_LOADING||U===m.BACKTRACKING||!A.fragCurrent&&U===m.PARSING)&&(A.fragmentTracker.removeFragment(d),A.state=m.IDLE);return}if("payload"in S&&(A.log("Loaded fragment "+d.sn+" of level "+d.level),A.hls.trigger(C.Events.FRAG_LOADED,S),A.state===m.BACKTRACKING)){A.fragmentTracker.backtrack(d,S),A.resetFragmentLoading(d);return}A._handleFragmentLoadComplete(S)}).catch(function(S){A.warn(S),A.resetFragmentLoading(d)})},l.flushMainBuffer=function(d,b,w){if(w===void 0&&(w=null),!(d-b))return;var A={startOffset:d,endOffset:b,type:w};this.fragLoadError=0,this.hls.trigger(C.Events.BUFFER_FLUSHING,A)},l._loadInitSegment=function(d){var b=this;this._doFragLoad(d).then(function(w){if(!w||b.fragContextChanged(d)||!b.levels)throw new Error("init load aborted");return w}).then(function(w){var A=b.hls,P=w.payload,S=d.decryptdata;if(P&&P.byteLength>0&&S&&S.key&&S.iv&&S.method==="AES-128"){var U=self.performance.now();return b.decrypter.webCryptoDecrypt(new Uint8Array(P),S.key.buffer,S.iv.buffer).then(function(D){var j=self.performance.now();return A.trigger(C.Events.FRAG_DECRYPTED,{frag:d,payload:D,stats:{tstart:U,tdecrypt:j}}),w.payload=D,w})}return w}).then(function(w){var A=b.fragCurrent,P=b.hls,S=b.levels;if(!S)throw new Error("init load aborted, missing levels");var U=S[d.level].details;console.assert(U,"Level details are defined when init segment is loaded");var D=d.stats;b.state=m.IDLE,b.fragLoadError=0,d.data=new Uint8Array(w.payload),D.parsing.start=D.buffering.start=self.performance.now(),D.parsing.end=D.buffering.end=self.performance.now(),w.frag===A&&P.trigger(C.Events.FRAG_BUFFERED,{stats:D,frag:A,part:null,id:d.type}),b.tick()}).catch(function(w){b.warn(w),b.resetFragmentLoading(d)})},l.fragContextChanged=function(d){var b=this.fragCurrent;return!d||!b||d.level!==b.level||d.sn!==b.sn||d.urlId!==b.urlId},l.fragBufferedComplete=function(d,b){var w=this.mediaBuffer?this.mediaBuffer:this.media;this.log("Buffered "+d.type+" sn: "+d.sn+(b?" part: "+b.index:"")+" of "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+d.level+" "+e.default.toString(N.BufferHelper.getBuffered(w))),this.state=m.IDLE,this.tick()},l._handleFragmentLoadComplete=function(d){var b=this.transmuxer;if(!b)return;var w=d.frag,A=d.part,P=d.partsLoaded,S=!P||P.length===0||P.some(function(D){return!D}),U=new v.ChunkMetadata(w.level,w.sn,w.stats.chunkCount+1,0,A?A.index:-1,!S);b.flush(U)},l._handleFragmentLoadProgress=function(d){},l._doFragLoad=function(d,b,w,A){var P=this;if(w===void 0&&(w=null),!this.levels)throw new Error("frag load aborted, missing levels");if(w=Math.max(d.start,w||0),this.config.lowLatencyMode&&b){var S=b.partList;if(S&&A){w>d.end&&b.fragmentHint&&(d=b.fragmentHint);var U=this.getNextPart(S,d,w);if(U>-1){var D=S[U];return this.log("Loading part sn: "+d.sn+" p: "+D.index+" cc: "+d.cc+" of playlist ["+b.startSN+"-"+b.endSN+"] parts [0-"+U+"-"+(S.length-1)+"] "+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+d.level+", target: "+parseFloat(w.toFixed(3))),this.nextLoadPosition=D.start+D.duration,this.state=m.FRAG_LOADING,this.hls.trigger(C.Events.FRAG_LOADING,{frag:d,part:S[U],targetBufferTime:w}),this.doFragPartsLoad(d,S,U,A).catch(function(j){return P.handleFragLoadError(j)})}else if(!d.url||this.loadedEndOfParts(S,w))return Promise.resolve(null)}}return this.log("Loading fragment "+d.sn+" cc: "+d.cc+" "+(b?"of ["+b.startSN+"-"+b.endSN+"] ":"")+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+d.level+", target: "+parseFloat(w.toFixed(3))),Object(M.isFiniteNumber)(d.sn)&&!this.bitrateTest&&(this.nextLoadPosition=d.start+d.duration),this.state=m.FRAG_LOADING,this.hls.trigger(C.Events.FRAG_LOADING,{frag:d,targetBufferTime:w}),this.fragmentLoader.load(d,A).catch(function(j){return P.handleFragLoadError(j)})},l.doFragPartsLoad=function(d,b,w,A){var P=this;return new Promise(function(S,U){var D=[],j=function K(Z){var ne=b[Z];P.fragmentLoader.loadPart(d,ne,A).then(function(me){D[ne.index]=me;var he=me.part;P.hls.trigger(C.Events.FRAG_LOADED,me);var Y=b[Z+1];if(Y&&Y.fragment===d)K(Z+1);else return S({frag:d,part:he,partsLoaded:D})}).catch(U)};j(w)})},l.handleFragLoadError=function(d){var b=d.data;return b&&b.details===O.ErrorDetails.INTERNAL_ABORTED?this.handleFragLoadAborted(b.frag,b.part):this.hls.trigger(C.Events.ERROR,b),null},l._handleTransmuxerFlush=function(d){var b=this.getCurrentContext(d);if(!b||this.state!==m.PARSING){this.fragCurrent||(this.state=m.IDLE);return}var w=b.frag,A=b.part,P=b.level,S=self.performance.now();w.stats.parsing.end=S,A&&(A.stats.parsing.end=S),this.updateLevelTiming(w,A,P,d.partial)},l.getCurrentContext=function(d){var b=this.levels,w=d.level,A=d.sn,P=d.part;if(!b||!b[w])return this.warn("Levels object was unset while buffering fragment "+A+" of level "+w+". The current chunk will not be buffered."),null;var S=b[w],U=P>-1?Object(n.getPartWith)(S,A,P):null,D=U?U.fragment:Object(n.getFragmentWithSN)(S,A,this.fragCurrent);return D?{frag:D,part:U,level:S}:null},l.bufferFragmentData=function(d,b,w,A){if(!d||this.state!==m.PARSING)return;var P=d.data1,S=d.data2,U=P;if(P&&S&&(U=Object(g.appendUint8Array)(P,S)),!U||!U.length)return;var D={type:d.type,frag:b,part:w,chunkMeta:A,parent:b.type,data:U};this.hls.trigger(C.Events.BUFFER_APPENDING,D),d.dropped&&d.independent&&!w&&this.flushBufferGap(b)},l.flushBufferGap=function(d){var b=this.media;if(!b)return;if(!N.BufferHelper.isBuffered(b,b.currentTime)){this.flushMainBuffer(0,d.start);return}var w=b.currentTime,A=N.BufferHelper.bufferInfo(b,w,0),P=d.duration,S=Math.min(this.config.maxFragLookUpTolerance*2,P*.25),U=Math.max(Math.min(d.start-S,A.end-S),w+S);d.start-U>S&&this.flushMainBuffer(U,d.start)},l.getFwdBufferInfo=function(d,b){var w=this.config,A=this.getLoadPosition();if(!Object(M.isFiniteNumber)(A))return null;var P=N.BufferHelper.bufferInfo(d,A,w.maxBufferHole);if(P.len===0&&P.nextStart!==void 0){var S=this.fragmentTracker.getBufferedFrag(A,b);if(S&&P.nextStart<S.end)return N.BufferHelper.bufferInfo(d,A,Math.max(P.nextStart,w.maxBufferHole))}return P},l.getMaxBufferLength=function(d){var b=this.config,w;return d?w=Math.max(8*b.maxBufferSize/d,b.maxBufferLength):w=b.maxBufferLength,Math.min(w,b.maxMaxBufferLength)},l.reduceMaxBufferLength=function(d){var b=this.config,w=d||b.maxBufferLength;return b.maxMaxBufferLength>=w?(b.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to "+b.maxMaxBufferLength+"s"),!0):!1},l.getNextFragment=function(d,b){var w,A,P=b.fragments,S=P.length;if(!S)return null;var U=this.config,D=P[0].start,j;if(b.live){var K=U.initialLiveManifestSize;if(S<K)return this.warn("Not enough fragments to start playback (have: "+S+", need: "+K+")"),null;!b.PTSKnown&&!this.startFragRequested&&this.startPosition===-1&&(j=this.getInitialLiveFragment(b,P),this.startPosition=j?this.hls.liveSyncPosition||j.start:d)}else d<=D&&(j=P[0]);if(!j){var Z=U.lowLatencyMode?b.partEnd:b.fragmentEnd;j=this.getFragmentAtPosition(d,Z,b)}return(w=j)!==null&&w!==void 0&&w.initSegment&&!((A=j)!==null&&A!==void 0&&A.initSegment.data)&&!this.bitrateTest&&(j=j.initSegment),j},l.getNextPart=function(d,b,w){for(var A=-1,P=!1,S=!0,U=0,D=d.length;U<D;U++){var j=d[U];if(S=S&&!j.independent,A>-1&&w<j.start)break;var K=j.loaded;!K&&(P||j.independent||S)&&j.fragment===b&&(A=U),P=K}return A},l.loadedEndOfParts=function(d,b){var w=d[d.length-1];return w&&b>w.start&&w.loaded},l.getInitialLiveFragment=function(d,b){var w=this.fragPrevious,A=null;if(w){if(d.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: "+w.programDateTime),A=Object(s.findFragmentByPDT)(b,w.endProgramDateTime,this.config.maxFragLookUpTolerance)),!A){var P=w.sn+1;if(P>=d.startSN&&P<=d.endSN){var S=b[P-d.startSN];w.cc===S.cc&&(A=S,this.log("Live playlist, switching playlist, load frag with next SN: "+A.sn))}A||(A=Object(s.findFragWithCC)(b,w.cc),A&&this.log("Live playlist, switching playlist, load frag with same CC: "+A.sn))}}else{var U=this.hls.liveSyncPosition;U!==null&&(A=this.getFragmentAtPosition(U,this.bitrateTest?d.fragmentEnd:d.edge,d))}return A},l.getFragmentAtPosition=function(d,b,w){var A=this.config,P=this.fragPrevious,S=w.fragments,U=w.endSN,D=w.fragmentHint,j=A.maxFragLookUpTolerance,K=!!(A.lowLatencyMode&&w.partList&&D);K&&D&&!this.bitrateTest&&(S=S.concat(D),U=D.sn);var Z;if(d<b){var ne=d>b-j?0:j;Z=Object(s.findFragmentByPTS)(P,S,d,ne)}else Z=S[S.length-1];if(Z){var me=Z.sn-w.startSN,he=P&&Z.level===P.level,Y=S[me+1],le=this.fragmentTracker.getState(Z);if(le===x.FragmentState.BACKTRACKED){Z=null;for(var ge=me;S[ge]&&this.fragmentTracker.getState(S[ge])===x.FragmentState.BACKTRACKED;)P?Z=S[ge--]:Z=S[--ge];Z||(Z=Y)}else P&&Z.sn===P.sn&&!K&&(he&&(Z.sn<U&&this.fragmentTracker.getState(Y)!==x.FragmentState.OK?(this.log("SN "+Z.sn+" just loaded, load next one: "+Y.sn),Z=Y):Z=null))}return Z},l.synchronizeToLiveEdge=function(d){var b=this.config,w=this.media;if(!w)return;var A=this.hls.liveSyncPosition,P=w.currentTime,S=d.fragments[0].start,U=d.edge,D=P>=S-b.maxFragLookUpTolerance&&P<=U;if(A!==null&&w.duration>A&&(P<A||!D)){var j=b.liveMaxLatencyDuration!==void 0?b.liveMaxLatencyDuration:b.liveMaxLatencyDurationCount*d.targetduration;(!D&&w.readyState<4||P<U-j)&&(this.loadedmetadata||(this.nextLoadPosition=A),w.readyState&&(this.warn("Playback: "+P.toFixed(3)+" is located too far from the end of live sliding playlist: "+U+", reset currentTime to : "+A.toFixed(3)),w.currentTime=A))}},l.alignPlaylists=function(d,b){var w=this.levels,A=this.levelLastLoaded,P=this.fragPrevious,S=A!==null?w[A]:null,U=d.fragments.length;if(!U)return this.warn("No fragments in live playlist"),0;var D=d.fragments[0].start,j=!b,K=d.alignedSliding&&Object(M.isFiniteNumber)(D);if(j||!K&&!D){Object(c.alignStream)(P,S,d);var Z=d.fragments[0].start;return this.log("Live playlist sliding: "+Z.toFixed(2)+" start-sn: "+(b?b.startSN:"na")+"->"+d.startSN+" prev-sn: "+(P?P.sn:"na")+" fragments: "+U),Z}return D},l.waitForCdnTuneIn=function(d){var b=3;return d.live&&d.canBlockReload&&d.tuneInGoal>Math.max(d.partHoldBack,d.partTarget*b)},l.setStartPosition=function(d,b){var w=this.startPosition;if(w<b&&(w=-1),w===-1||this.lastCurrentTime===-1){var A=d.startTimeOffset;Object(M.isFiniteNumber)(A)?(w=b+A,A<0&&(w+=d.totalduration),w=Math.min(Math.max(b,w),b+d.totalduration),this.log("Start time offset "+A+" found in playlist, adjust startPosition to "+w),this.startPosition=w):d.live?w=this.hls.liveSyncPosition||b:this.startPosition=w=0,this.lastCurrentTime=w}this.nextLoadPosition=w},l.getLoadPosition=function(){var d=this.media,b=0;return this.loadedmetadata&&d?b=d.currentTime:this.nextLoadPosition&&(b=this.nextLoadPosition),b},l.handleFragLoadAborted=function(d,b){this.transmuxer&&d.sn!=="initSegment"&&d.stats.aborted&&(this.warn("Fragment "+d.sn+(b?" part"+b.index:"")+" of level "+d.level+" was aborted"),this.resetFragmentLoading(d))},l.resetFragmentLoading=function(d){(!this.fragCurrent||!this.fragContextChanged(d))&&(this.state=m.IDLE)},l.onFragmentOrKeyLoadError=function(d,b){if(b.fatal)return;var w=b.frag;if(!w||w.type!==d)return;var A=this.fragCurrent;console.assert(A&&w.sn===A.sn&&w.level===A.level&&w.urlId===A.urlId,"Frag load error must match current frag to retry");var P=this.config;if(this.fragLoadError+1<=P.fragLoadingMaxRetry){if(this.resetLiveStartWhenNotLoaded(w.level))return;var S=Math.min(Math.pow(2,this.fragLoadError)*P.fragLoadingRetryDelay,P.fragLoadingMaxRetryTimeout);this.warn("Fragment "+w.sn+" of "+d+" "+w.level+" failed to load, retrying in "+S+"ms"),this.retryDate=self.performance.now()+S,this.fragLoadError++,this.state=m.FRAG_LOADING_WAITING_RETRY}else b.levelRetry?(d===t.PlaylistLevelType.AUDIO&&(this.fragCurrent=null),this.fragLoadError=0,this.state=m.IDLE):(L.logger.error(b.details+" reaches max retry, redispatch as fatal ..."),b.fatal=!0,this.hls.stopLoad(),this.state=m.ERROR)},l.afterBufferFlushed=function(d,b,w){if(!d)return;var A=N.BufferHelper.getBuffered(d);this.fragmentTracker.detectEvictedFragments(b,A,w),this.state===m.ENDED&&this.resetLoadingState()},l.resetLoadingState=function(){this.fragCurrent=null,this.fragPrevious=null,this.state=m.IDLE},l.resetLiveStartWhenNotLoaded=function(d){if(!this.loadedmetadata){this.startFragRequested=!1;var b=this.levels?this.levels[d].details:null;if(b!=null&&b.live)return this.startPosition=-1,this.setStartPosition(b,0),this.resetLoadingState(),!0;this.nextLoadPosition=this.startPosition}return!1},l.updateLevelTiming=function(d,b,w,A){var P=this,S=w.details;console.assert(!!S,"level.details must be defined");var U=Object.keys(d.elementaryStreams).reduce(function(D,j){var K=d.elementaryStreams[j];if(K){var Z=K.endPTS-K.startPTS;if(Z<=0)return P.warn("Could not parse fragment "+d.sn+" "+j+" duration reliably ("+Z+") resetting transmuxer to fallback to playlist timing"),P.resetTransmuxer(),D||!1;var ne=A?0:Object(n.updateFragPTSDTS)(S,d,K.startPTS,K.endPTS,K.startDTS,K.endDTS);return P.hls.trigger(C.Events.LEVEL_PTS_UPDATED,{details:S,level:w,drift:ne,type:j,frag:d,start:K.startPTS,end:K.endPTS}),!0}return D},!1);U?(this.state=m.PARSED,this.hls.trigger(C.Events.FRAG_PARSED,{frag:d,part:b})):this.resetLoadingState()},l.resetTransmuxer=function(){this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null)},y(a,[{key:"state",get:function(){return this._state},set:function(d){var b=this._state;b!==d&&(this._state=d,this.log(b+"->"+d))}}]),a}(T.default)},"./src/controller/buffer-controller.ts":function(q,I,R){"use strict";R.r(I),R.d(I,"default",function(){return s});var M=R("./src/polyfills/number.ts"),T=R("./src/events.ts"),x=R("./src/utils/logger.ts"),N=R("./src/errors.ts"),L=R("./src/utils/buffer-helper.ts"),C=R("./src/utils/mediasource-helper.ts"),O=R("./src/loader/fragment.ts"),v=R("./src/controller/buffer-operation-queue.ts"),g=Object(C.getMediaSource)(),c=/([ha]vc.)(?:\.[^.,]+)+/,s=function(){function n(o){var e=this;this.details=null,this._objectUrl=null,this.operationQueue=void 0,this.listeners=void 0,this.hls=void 0,this.bufferCodecEventsExpected=0,this._bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.appendError=0,this.tracks={},this.pendingTracks={},this.sourceBuffer=void 0,this._onMediaSourceOpen=function(){var t=e.hls,r=e.media,y=e.mediaSource;x.logger.log("[buffer-controller]: Media source opened"),r&&(e.updateMediaElementDuration(),t.trigger(T.Events.MEDIA_ATTACHED,{media:r})),y&&y.removeEventListener("sourceopen",e._onMediaSourceOpen),e.checkPendingTracks()},this._onMediaSourceClose=function(){x.logger.log("[buffer-controller]: Media source closed")},this._onMediaSourceEnded=function(){x.logger.log("[buffer-controller]: Media source ended")},this.hls=o,this._initSourceBuffer(),this.registerListeners()}var i=n.prototype;return i.hasSourceTypes=function(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0},i.destroy=function(){this.unregisterListeners(),this.details=null},i.registerListeners=function(){var e=this.hls;e.on(T.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(T.Events.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(T.Events.MANIFEST_PARSED,this.onManifestParsed,this),e.on(T.Events.BUFFER_RESET,this.onBufferReset,this),e.on(T.Events.BUFFER_APPENDING,this.onBufferAppending,this),e.on(T.Events.BUFFER_CODECS,this.onBufferCodecs,this),e.on(T.Events.BUFFER_EOS,this.onBufferEos,this),e.on(T.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(T.Events.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(T.Events.FRAG_PARSED,this.onFragParsed,this),e.on(T.Events.FRAG_CHANGED,this.onFragChanged,this)},i.unregisterListeners=function(){var e=this.hls;e.off(T.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(T.Events.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(T.Events.MANIFEST_PARSED,this.onManifestParsed,this),e.off(T.Events.BUFFER_RESET,this.onBufferReset,this),e.off(T.Events.BUFFER_APPENDING,this.onBufferAppending,this),e.off(T.Events.BUFFER_CODECS,this.onBufferCodecs,this),e.off(T.Events.BUFFER_EOS,this.onBufferEos,this),e.off(T.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(T.Events.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(T.Events.FRAG_PARSED,this.onFragParsed,this),e.off(T.Events.FRAG_CHANGED,this.onFragChanged,this)},i._initSourceBuffer=function(){this.sourceBuffer={},this.operationQueue=new v.default(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]}},i.onManifestParsed=function(e,t){var r=2;(t.audio&&!t.video||!t.altAudio)&&(r=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=r,this.details=null,x.logger.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")},i.onMediaAttaching=function(e,t){var r=this.media=t.media;if(r&&g){var y=this.mediaSource=new g;y.addEventListener("sourceopen",this._onMediaSourceOpen),y.addEventListener("sourceended",this._onMediaSourceEnded),y.addEventListener("sourceclose",this._onMediaSourceClose),r.src=self.URL.createObjectURL(y),this._objectUrl=r.src}},i.onMediaDetaching=function(){var e=this.media,t=this.mediaSource,r=this._objectUrl;if(t){if(x.logger.log("[buffer-controller]: media source detaching"),t.readyState==="open")try{t.endOfStream()}catch(y){x.logger.warn("[buffer-controller]: onMediaDetaching: "+y.message+" while calling endOfStream")}this.onBufferReset(),t.removeEventListener("sourceopen",this._onMediaSourceOpen),t.removeEventListener("sourceended",this._onMediaSourceEnded),t.removeEventListener("sourceclose",this._onMediaSourceClose),e&&(r&&self.URL.revokeObjectURL(r),e.src===r?(e.removeAttribute("src"),e.load()):x.logger.warn("[buffer-controller]: media.src was changed by a third party - skip cleanup")),this.mediaSource=null,this.media=null,this._objectUrl=null,this.bufferCodecEventsExpected=this._bufferCodecEventsTotal,this.pendingTracks={},this.tracks={}}this.hls.trigger(T.Events.MEDIA_DETACHED,void 0)},i.onBufferReset=function(){var e=this;this.getSourceBufferTypes().forEach(function(t){var r=e.sourceBuffer[t];try{r&&(e.removeBufferListeners(t),e.mediaSource&&e.mediaSource.removeSourceBuffer(r),e.sourceBuffer[t]=void 0)}catch(y){x.logger.warn("[buffer-controller]: Failed to reset the "+t+" buffer",y)}}),this._initSourceBuffer()},i.onBufferCodecs=function(e,t){var r=this,y=this.getSourceBufferTypes().length;if(Object.keys(t).forEach(function(_){if(y){var p=r.tracks[_];if(p&&typeof p.buffer.changeType=="function"){var E=t[_],m=E.codec,f=E.levelCodec,u=E.container,a=(p.levelCodec||p.codec).replace(c,"$1"),l=(f||m).replace(c,"$1");if(a!==l){var h=u+";codecs="+(f||m);r.appendChangeType(_,h)}}}else r.pendingTracks[_]=t[_]}),y)return;this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()},i.appendChangeType=function(e,t){var r=this,y=this.operationQueue,_={execute:function(){var E=r.sourceBuffer[e];E&&(x.logger.log("[buffer-controller]: changing "+e+" sourceBuffer type to "+t),E.changeType(t)),y.shiftAndExecuteNext(e)},onStart:function(){},onComplete:function(){},onError:function(E){x.logger.warn("[buffer-controller]: Failed to change "+e+" SourceBuffer type",E)}};y.append(_,e)},i.onBufferAppending=function(e,t){var r=this,y=this.hls,_=this.operationQueue,p=this.tracks,E=t.data,m=t.type,f=t.frag,u=t.part,a=t.chunkMeta,l=a.buffering[m],h=self.performance.now();l.start=h;var d=f.stats.buffering,b=u?u.stats.buffering:null;d.start===0&&(d.start=h),b&&b.start===0&&(b.start=h);var w=p.audio,A=m==="audio"&&a.id===1&&(w==null?void 0:w.container)==="audio/mpeg",P={execute:function(){if(l.executeStart=self.performance.now(),A){var U=r.sourceBuffer[m];if(U){var D=f.start-U.timestampOffset;Math.abs(D)>=.1&&(x.logger.log("[buffer-controller]: Updating audio SourceBuffer timestampOffset to "+f.start+" (delta: "+D+") sn: "+f.sn+")"),U.timestampOffset=f.start)}}r.appendExecutor(E,m)},onStart:function(){},onComplete:function(){var U=self.performance.now();l.executeEnd=l.end=U,d.first===0&&(d.first=U),b&&b.first===0&&(b.first=U);var D=r.sourceBuffer,j={};for(var K in D)j[K]=L.BufferHelper.getBuffered(D[K]);r.appendError=0,r.hls.trigger(T.Events.BUFFER_APPENDED,{type:m,frag:f,part:u,chunkMeta:a,parent:f.type,timeRanges:j})},onError:function(U){x.logger.error("[buffer-controller]: Error encountered while trying to append to the "+m+" SourceBuffer",U);var D={type:N.ErrorTypes.MEDIA_ERROR,parent:f.type,details:N.ErrorDetails.BUFFER_APPEND_ERROR,err:U,fatal:!1};U.code===DOMException.QUOTA_EXCEEDED_ERR?D.details=N.ErrorDetails.BUFFER_FULL_ERROR:(r.appendError++,D.details=N.ErrorDetails.BUFFER_APPEND_ERROR,r.appendError>y.config.appendErrorMaxRetry&&(x.logger.error("[buffer-controller]: Failed "+y.config.appendErrorMaxRetry+" times to append segment in sourceBuffer"),D.fatal=!0)),y.trigger(T.Events.ERROR,D)}};_.append(P,m)},i.onBufferFlushing=function(e,t){var r=this,y=this.operationQueue,_=function(E){return{execute:r.removeExecutor.bind(r,E,t.startOffset,t.endOffset),onStart:function(){},onComplete:function(){r.hls.trigger(T.Events.BUFFER_FLUSHED,{type:E})},onError:function(f){x.logger.warn("[buffer-controller]: Failed to remove from "+E+" SourceBuffer",f)}}};t.type?y.append(_(t.type),t.type):this.getSourceBufferTypes().forEach(function(p){y.append(_(p),p)})},i.onFragParsed=function(e,t){var r=this,y=t.frag,_=t.part,p=[],E=_?_.elementaryStreams:y.elementaryStreams;E[O.ElementaryStreamTypes.AUDIOVIDEO]?p.push("audiovideo"):(E[O.ElementaryStreamTypes.AUDIO]&&p.push("audio"),E[O.ElementaryStreamTypes.VIDEO]&&p.push("video"));var m=function(){var u=self.performance.now();y.stats.buffering.end=u,_&&(_.stats.buffering.end=u);var a=_?_.stats:y.stats;r.hls.trigger(T.Events.FRAG_BUFFERED,{frag:y,part:_,stats:a,id:y.type})};p.length===0&&x.logger.warn("Fragments must have at least one ElementaryStreamType set. type: "+y.type+" level: "+y.level+" sn: "+y.sn),this.blockBuffers(m,p)},i.onFragChanged=function(e,t){this.flushBackBuffer()},i.onBufferEos=function(e,t){var r=this,y=this.getSourceBufferTypes().reduce(function(_,p){var E=r.sourceBuffer[p];return(!t.type||t.type===p)&&(E&&!E.ended&&(E.ended=!0,x.logger.log("[buffer-controller]: "+p+" sourceBuffer now EOS"))),_&&!!(!E||E.ended)},!0);y&&this.blockBuffers(function(){var _=r.mediaSource;if(!_||_.readyState!=="open")return;_.endOfStream()})},i.onLevelUpdated=function(e,t){var r=t.details;if(!r.fragments.length)return;this.details=r,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration()},i.flushBackBuffer=function(){var e=this.hls,t=this.details,r=this.media,y=this.sourceBuffer;if(!r||t===null)return;var _=this.getSourceBufferTypes();if(!_.length)return;var p=t.live&&e.config.liveBackBufferLength!==null?e.config.liveBackBufferLength:e.config.backBufferLength;if(!Object(M.isFiniteNumber)(p)||p<0)return;var E=r.currentTime,m=t.levelTargetDuration,f=Math.max(p,m),u=Math.floor(E/m)*m-f;_.forEach(function(a){var l=y[a];if(l){var h=L.BufferHelper.getBuffered(l);h.length>0&&u>h.start(0)&&(e.trigger(T.Events.BACK_BUFFER_REACHED,{bufferEnd:u}),t.live&&e.trigger(T.Events.LIVE_BACK_BUFFER_REACHED,{bufferEnd:u}),e.trigger(T.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:u,type:a}))}})},i.updateMediaElementDuration=function(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;var e=this.details,t=this.hls,r=this.media,y=this.mediaSource,_=e.fragments[0].start+e.totalduration,p=r.duration,E=Object(M.isFiniteNumber)(y.duration)?y.duration:0;e.live&&t.config.liveDurationInfinity?(x.logger.log("[buffer-controller]: Media Source duration is set to Infinity"),y.duration=Infinity,this.updateSeekableRange(e)):(_>E&&_>p||!Object(M.isFiniteNumber)(p))&&(x.logger.log("[buffer-controller]: Updating Media Source duration to "+_.toFixed(3)),y.duration=_)},i.updateSeekableRange=function(e){var t=this.mediaSource,r=e.fragments,y=r.length;if(y&&e.live&&t!==null&&t!==void 0&&t.setLiveSeekableRange){var _=Math.max(0,r[0].start),p=Math.max(_,_+e.totalduration);t.setLiveSeekableRange(_,p)}},i.checkPendingTracks=function(){var e=this.bufferCodecEventsExpected,t=this.operationQueue,r=this.pendingTracks,y=Object.keys(r).length;if(y&&!e||y===2){this.createSourceBuffers(r),this.pendingTracks={};var _=this.getSourceBufferTypes();if(_.length===0){this.hls.trigger(T.Events.ERROR,{type:N.ErrorTypes.MEDIA_ERROR,details:N.ErrorDetails.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,reason:"could not create source buffer for media codec(s)"});return}_.forEach(function(p){t.executeNext(p)})}},i.createSourceBuffers=function(e){var t=this.sourceBuffer,r=this.mediaSource;if(!r)throw Error("createSourceBuffers called when mediaSource was null");var y=0;for(var _ in e)if(!t[_]){var p=e[_];if(!p)throw Error("source buffer exists for track "+_+", however track does not");var E=p.levelCodec||p.codec,m=p.container+";codecs="+E;x.logger.log("[buffer-controller]: creating sourceBuffer("+m+")");try{var f=t[_]=r.addSourceBuffer(m),u=_;this.addBufferListener(u,"updatestart",this._onSBUpdateStart),this.addBufferListener(u,"updateend",this._onSBUpdateEnd),this.addBufferListener(u,"error",this._onSBUpdateError),this.tracks[_]={buffer:f,codec:E,container:p.container,levelCodec:p.levelCodec,id:p.id},y++}catch(a){x.logger.error("[buffer-controller]: error while trying to add sourceBuffer: "+a.message),this.hls.trigger(T.Events.ERROR,{type:N.ErrorTypes.MEDIA_ERROR,details:N.ErrorDetails.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:a,mimeType:m})}}y&&this.hls.trigger(T.Events.BUFFER_CREATED,{tracks:this.tracks})},i._onSBUpdateStart=function(e){var t=this.operationQueue,r=t.current(e);r.onStart()},i._onSBUpdateEnd=function(e){var t=this.operationQueue,r=t.current(e);r.onComplete(),t.shiftAndExecuteNext(e)},i._onSBUpdateError=function(e,t){x.logger.error("[buffer-controller]: "+e+" SourceBuffer error",t),this.hls.trigger(T.Events.ERROR,{type:N.ErrorTypes.MEDIA_ERROR,details:N.ErrorDetails.BUFFER_APPENDING_ERROR,fatal:!1});var r=this.operationQueue.current(e);r&&r.onError(t)},i.removeExecutor=function(e,t,r){var y=this.media,_=this.mediaSource,p=this.operationQueue,E=this.sourceBuffer,m=E[e];if(!y||!_||!m){x.logger.warn("[buffer-controller]: Attempting to remove from the "+e+" SourceBuffer, but it does not exist"),p.shiftAndExecuteNext(e);return}var f=Object(M.isFiniteNumber)(y.duration)?y.duration:Infinity,u=Object(M.isFiniteNumber)(_.duration)?_.duration:Infinity,a=Math.max(0,t),l=Math.min(r,f,u);l>a?(x.logger.log("[buffer-controller]: Removing ["+a+","+l+"] from the "+e+" SourceBuffer"),console.assert(!m.updating,e+" sourceBuffer must not be updating"),m.remove(a,l)):p.shiftAndExecuteNext(e)},i.appendExecutor=function(e,t){var r=this.operationQueue,y=this.sourceBuffer,_=y[t];if(!_){x.logger.warn("[buffer-controller]: Attempting to append to the "+t+" SourceBuffer, but it does not exist"),r.shiftAndExecuteNext(t);return}_.ended=!1,console.assert(!_.updating,t+" sourceBuffer must not be updating"),_.appendBuffer(e)},i.blockBuffers=function(e,t){var r=this;if(t===void 0&&(t=this.getSourceBufferTypes()),!t.length){x.logger.log("[buffer-controller]: Blocking operation requested, but no SourceBuffers exist"),Promise.resolve(e);return}var y=this.operationQueue,_=t.map(function(p){return y.appendBlocker(p)});Promise.all(_).then(function(){e(),t.forEach(function(p){var E=r.sourceBuffer[p];(!E||!E.updating)&&y.shiftAndExecuteNext(p)})})},i.getSourceBufferTypes=function(){return Object.keys(this.sourceBuffer)},i.addBufferListener=function(e,t,r){var y=this.sourceBuffer[e];if(!y)return;var _=r.bind(this,e);this.listeners[e].push({event:t,listener:_}),y.addEventListener(t,_)},i.removeBufferListeners=function(e){var t=this.sourceBuffer[e];if(!t)return;this.listeners[e].forEach(function(r){t.removeEventListener(r.event,r.listener)})},n}()},"./src/controller/buffer-operation-queue.ts":function(q,I,R){"use strict";R.r(I),R.d(I,"default",function(){return T});var M=R("./src/utils/logger.ts"),T=function(){function x(L){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=L}var N=x.prototype;return N.append=function(C,O){var v=this.queues[O];v.push(C),v.length===1&&this.buffers[O]&&this.executeNext(O)},N.insertAbort=function(C,O){var v=this.queues[O];v.unshift(C),this.executeNext(O)},N.appendBlocker=function(C){var O,v=new Promise(function(c){O=c}),g={execute:O,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(g,C),v},N.executeNext=function(C){var O=this.buffers,v=this.queues,g=O[C],c=v[C];if(c.length){var s=c[0];try{s.execute()}catch(n){M.logger.warn("[buffer-operation-queue]: Unhandled exception executing the current operation"),s.onError(n),(!g||!g.updating)&&(c.shift(),this.executeNext(C))}}},N.shiftAndExecuteNext=function(C){this.queues[C].shift(),this.executeNext(C)},N.current=function(C){return this.queues[C][0]},x}()},"./src/controller/cap-level-controller.ts":function(q,I,R){"use strict";R.r(I);var M=R("./src/events.ts");function T(L,C){for(var O=0;O<C.length;O++){var v=C[O];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(L,v.key,v)}}function x(L,C,O){return C&&T(L.prototype,C),O&&T(L,O),L}var N=function(){function L(O){this.autoLevelCapping=void 0,this.firstLevel=void 0,this.media=void 0,this.restrictedLevels=void 0,this.timer=void 0,this.hls=void 0,this.streamController=void 0,this.clientRect=void 0,this.hls=O,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}var C=L.prototype;return C.setStreamController=function(v){this.streamController=v},C.destroy=function(){this.unregisterListener(),this.hls.config.capLevelToPlayerSize&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null},C.registerListeners=function(){var v=this.hls;v.on(M.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),v.on(M.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),v.on(M.Events.MANIFEST_PARSED,this.onManifestParsed,this),v.on(M.Events.BUFFER_CODECS,this.onBufferCodecs,this),v.on(M.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},C.unregisterListener=function(){var v=this.hls;v.off(M.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),v.off(M.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),v.off(M.Events.MANIFEST_PARSED,this.onManifestParsed,this),v.off(M.Events.BUFFER_CODECS,this.onBufferCodecs,this),v.off(M.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},C.onFpsDropLevelCapping=function(v,g){L.isLevelAllowed(g.droppedLevel,this.restrictedLevels)&&this.restrictedLevels.push(g.droppedLevel)},C.onMediaAttaching=function(v,g){this.media=g.media instanceof HTMLVideoElement?g.media:null},C.onManifestParsed=function(v,g){var c=this.hls;this.restrictedLevels=[],this.firstLevel=g.firstLevel,c.config.capLevelToPlayerSize&&g.video&&this.startCapping()},C.onBufferCodecs=function(v,g){var c=this.hls;c.config.capLevelToPlayerSize&&g.video&&this.startCapping()},C.onMediaDetaching=function(){this.stopCapping()},C.detectPlayerSize=function(){if(this.media&&this.mediaHeight>0&&this.mediaWidth>0){var v=this.hls.levels;if(v.length){var g=this.hls;g.autoLevelCapping=this.getMaxLevel(v.length-1),g.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=g.autoLevelCapping}}},C.getMaxLevel=function(v){var g=this,c=this.hls.levels;if(!c.length)return-1;var s=c.filter(function(n,i){return L.isLevelAllowed(i,g.restrictedLevels)&&i<=v});return this.clientRect=null,L.getMaxLevelByMediaSize(s,this.mediaWidth,this.mediaHeight)},C.startCapping=function(){if(this.timer)return;this.autoLevelCapping=Number.POSITIVE_INFINITY,this.hls.firstLevel=this.getMaxLevel(this.firstLevel),self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize()},C.stopCapping=function(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)},C.getDimensions=function(){if(this.clientRect)return this.clientRect;var v=this.media,g={width:0,height:0};if(v){var c=v.getBoundingClientRect();g.width=c.width,g.height=c.height,!g.width&&!g.height&&(g.width=c.right-c.left||v.width||0,g.height=c.bottom-c.top||v.height||0)}return this.clientRect=g,g},L.isLevelAllowed=function(v,g){return g===void 0&&(g=[]),g.indexOf(v)===-1},L.getMaxLevelByMediaSize=function(v,g,c){if(!v||!v.length)return-1;for(var s=function(t,r){return r?t.width!==r.width||t.height!==r.height:!0},n=v.length-1,i=0;i<v.length;i+=1){var o=v[i];if((o.width>=g||o.height>=c)&&s(o,v[i+1])){n=i;break}}return n},x(L,[{key:"mediaWidth",get:function(){return this.getDimensions().width*L.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*L.contentScaleFactor}}],[{key:"contentScaleFactor",get:function(){var v=1;try{v=self.devicePixelRatio}catch(g){}return v}}]),L}();I.default=N},"./src/controller/cmcd-controller.ts":function(q,I,R){"use strict";R.r(I),R.d(I,"default",function(){return s});var M=R("./src/events.ts"),T=R("./src/types/cmcd.ts"),x=R("./src/utils/buffer-helper.ts"),N=R("./src/utils/logger.ts");function L(n,i){for(var o=0;o<i.length;o++){var e=i[o];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,e.key,e)}}function C(n,i,o){return i&&L(n.prototype,i),o&&L(n,o),n}function O(n,i){var o=typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(o)return(o=o.call(n)).next.bind(o);if(Array.isArray(n)||(o=v(n))||i&&n&&typeof n.length=="number"){o&&(n=o);var e=0;return function(){return e>=n.length?{done:!0}:{done:!1,value:n[e++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function v(n,i){if(!n)return;if(typeof n=="string")return g(n,i);var o=Object.prototype.toString.call(n).slice(8,-1);if(o==="Object"&&n.constructor&&(o=n.constructor.name),o==="Map"||o==="Set")return Array.from(n);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return g(n,i)}function g(n,i){(i==null||i>n.length)&&(i=n.length);for(var o=0,e=new Array(i);o<i;o++)e[o]=n[o];return e}function c(){return c=Object.assign||function(n){for(var i=1;i<arguments.length;i++){var o=arguments[i];for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&(n[e]=o[e])}return n},c.apply(this,arguments)}var s=function(){function n(o){var e=this;this.hls=void 0,this.config=void 0,this.media=void 0,this.sid=void 0,this.cid=void 0,this.useHeaders=!1,this.initialized=!1,this.starved=!1,this.buffering=!0,this.audioBuffer=void 0,this.videoBuffer=void 0,this.onWaiting=function(){e.initialized&&(e.starved=!0),e.buffering=!0},this.onPlaying=function(){e.initialized||(e.initialized=!0),e.buffering=!1},this.applyPlaylistData=function(y){try{e.apply(y,{ot:T.CMCDObjectType.MANIFEST,su:!e.initialized})}catch(_){N.logger.warn("Could not generate manifest CMCD data.",_)}},this.applyFragmentData=function(y){try{var _=y.frag,p=e.hls.levels[_.level],E=e.getObjectType(_),m={d:_.duration*1e3,ot:E};(E===T.CMCDObjectType.VIDEO||E===T.CMCDObjectType.AUDIO||E==T.CMCDObjectType.MUXED)&&(m.br=p.bitrate/1e3,m.tb=e.getTopBandwidth(E),m.bl=e.getBufferLength(E)),e.apply(y,m)}catch(f){N.logger.warn("Could not generate segment CMCD data.",f)}},this.hls=o;var t=this.config=o.config,r=t.cmcd;r!=null&&(t.pLoader=this.createPlaylistLoader(),t.fLoader=this.createFragmentLoader(),this.sid=r.sessionId||n.uuid(),this.cid=r.contentId,this.useHeaders=r.useHeaders===!0,this.registerListeners())}var i=n.prototype;return i.registerListeners=function(){var e=this.hls;e.on(M.Events.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(M.Events.MEDIA_DETACHED,this.onMediaDetached,this),e.on(M.Events.BUFFER_CREATED,this.onBufferCreated,this)},i.unregisterListeners=function(){var e=this.hls;e.off(M.Events.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(M.Events.MEDIA_DETACHED,this.onMediaDetached,this),e.off(M.Events.BUFFER_CREATED,this.onBufferCreated,this),this.onMediaDetached()},i.destroy=function(){this.unregisterListeners(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null},i.onMediaAttached=function(e,t){this.media=t.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)},i.onMediaDetached=function(){if(!this.media)return;this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null},i.onBufferCreated=function(e,t){var r,y;this.audioBuffer=(r=t.tracks.audio)===null||r===void 0?void 0:r.buffer,this.videoBuffer=(y=t.tracks.video)===null||y===void 0?void 0:y.buffer},i.createData=function(){var e;return{v:T.CMCDVersion,sf:T.CMCDStreamingFormat.HLS,sid:this.sid,cid:this.cid,pr:(e=this.media)===null||e===void 0?void 0:e.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}},i.apply=function(e,t){t===void 0&&(t={}),c(t,this.createData());var r=t.ot===T.CMCDObjectType.INIT||t.ot===T.CMCDObjectType.VIDEO||t.ot===T.CMCDObjectType.MUXED;if(this.starved&&r&&(t.bs=!0,t.su=!0,this.starved=!1),t.su==null&&(t.su=this.buffering),this.useHeaders){var y=n.toHeaders(t);if(!Object.keys(y).length)return;e.headers||(e.headers={}),c(e.headers,y)}else{var _=n.toQuery(t);if(!_)return;e.url=n.appendQueryToUri(e.url,_)}},i.getObjectType=function(e){var t=e.type;return t==="subtitle"?T.CMCDObjectType.TIMED_TEXT:e.sn==="initSegment"?T.CMCDObjectType.INIT:t==="audio"?T.CMCDObjectType.AUDIO:t==="main"?this.hls.audioTracks.length?T.CMCDObjectType.VIDEO:T.CMCDObjectType.MUXED:void 0},i.getTopBandwidth=function(e){for(var t=0,r=e===T.CMCDObjectType.AUDIO?this.hls.audioTracks:this.hls.levels,y=O(r),_;!(_=y()).done;){var p=_.value;p.bitrate>t&&(t=p.bitrate)}return t>0?t:NaN},i.getBufferLength=function(e){var t=this.hls.media,r=e===T.CMCDObjectType.AUDIO?this.audioBuffer:this.videoBuffer;if(!r||!t)return NaN;var y=x.BufferHelper.bufferInfo(r,t.currentTime,this.config.maxBufferHole);return y.len*1e3},i.createPlaylistLoader=function(){var e=this.config.pLoader,t=this.applyPlaylistData,r=e||this.config.loader;return function(){function y(p){this.loader=void 0,this.loader=new r(p)}var _=y.prototype;return _.destroy=function(){this.loader.destroy()},_.abort=function(){this.loader.abort()},_.load=function(E,m,f){t(E),this.loader.load(E,m,f)},C(y,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),y}()},i.createFragmentLoader=function(){var e=this.config.fLoader,t=this.applyFragmentData,r=e||this.config.loader;return function(){function y(p){this.loader=void 0,this.loader=new r(p)}var _=y.prototype;return _.destroy=function(){this.loader.destroy()},_.abort=function(){this.loader.abort()},_.load=function(E,m,f){t(E),this.loader.load(E,m,f)},C(y,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),y}()},n.uuid=function(){var e=URL.createObjectURL(new Blob),t=e.toString();return URL.revokeObjectURL(e),t.substr(t.lastIndexOf("/")+1)},n.serialize=function(e){for(var t=[],r=function(A){return!Number.isNaN(A)&&A!=null&&A!==""&&A!==!1},y=function(A){return Math.round(A)},_=function(A){return y(A/100)*100},p=function(A){return encodeURIComponent(A)},E={br:y,d:y,bl:_,dl:_,mtp:_,nor:p,rtp:_,tb:y},m=Object.keys(e||{}).sort(),f=O(m),u;!(u=f()).done;){var a=u.value,l=e[a];if(!r(l))continue;if(a==="v"&&l===1)continue;if(a=="pr"&&l===1)continue;var h=E[a];h&&(l=h(l));var d=typeof l,b=void 0;a==="ot"||a==="sf"||a==="st"?b=a+"="+l:d==="boolean"?b=a:d==="number"?b=a+"="+l:b=a+"="+JSON.stringify(l),t.push(b)}return t.join(",")},n.toHeaders=function(e){for(var t=Object.keys(e),r={},y=["Object","Request","Session","Status"],_=[{},{},{},{}],p={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,bs:3,rtp:3},E=0,m=t;E<m.length;E++){var f=m[E],u=p[f]!=null?p[f]:1;_[u][f]=e[f]}for(var a=0;a<_.length;a++){var l=n.serialize(_[a]);l&&(r["CMCD-"+y[a]]=l)}return r},n.toQuery=function(e){return"CMCD="+encodeURIComponent(n.serialize(e))},n.appendQueryToUri=function(e,t){if(!t)return e;var r=e.includes("?")?"&":"?";return""+e+r+t},n}()},"./src/controller/eme-controller.ts":function(q,I,R){"use strict";R.r(I);var M=R("./src/events.ts"),T=R("./src/errors.ts"),x=R("./src/utils/logger.ts"),N=R("./src/utils/mediakeys-helper.ts");function L(s,n){for(var i=0;i<n.length;i++){var o=n[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(s,o.key,o)}}function C(s,n,i){return n&&L(s.prototype,n),i&&L(s,i),s}var O=3,v=function(n,i,o){var e={audioCapabilities:[],videoCapabilities:[]};return n.forEach(function(t){e.audioCapabilities.push({contentType:'audio/mp4; codecs="'+t+'"',robustness:o.audioRobustness||""})}),i.forEach(function(t){e.videoCapabilities.push({contentType:'video/mp4; codecs="'+t+'"',robustness:o.videoRobustness||""})}),[e]},g=function(n,i,o,e){switch(n){case N.KeySystems.WIDEVINE:return v(i,o,e);default:throw new Error("Unknown key-system: "+n)}},c=function(){function s(i){this.hls=void 0,this._widevineLicenseUrl=void 0,this._licenseXhrSetup=void 0,this._licenseResponseCallback=void 0,this._emeEnabled=void 0,this._requestMediaKeySystemAccess=void 0,this._drmSystemOptions=void 0,this._config=void 0,this._mediaKeysList=[],this._media=null,this._hasSetMediaKeys=!1,this._requestLicenseFailureCount=0,this.mediaKeysPromise=null,this._onMediaEncrypted=this.onMediaEncrypted.bind(this),this.hls=i,this._config=i.config,this._widevineLicenseUrl=this._config.widevineLicenseUrl,this._licenseXhrSetup=this._config.licenseXhrSetup,this._licenseResponseCallback=this._config.licenseResponseCallback,this._emeEnabled=this._config.emeEnabled,this._requestMediaKeySystemAccess=this._config.requestMediaKeySystemAccessFunc,this._drmSystemOptions=this._config.drmSystemOptions,this._registerListeners()}var n=s.prototype;return n.destroy=function(){this._unregisterListeners(),this.hls=this._onMediaEncrypted=null,this._requestMediaKeySystemAccess=null},n._registerListeners=function(){this.hls.on(M.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(M.Events.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(M.Events.MANIFEST_PARSED,this.onManifestParsed,this)},n._unregisterListeners=function(){this.hls.off(M.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(M.Events.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(M.Events.MANIFEST_PARSED,this.onManifestParsed,this)},n.getLicenseServerUrl=function(o){switch(o){case N.KeySystems.WIDEVINE:if(!this._widevineLicenseUrl)break;return this._widevineLicenseUrl}throw new Error('no license server URL configured for key-system "'+o+'"')},n._attemptKeySystemAccess=function(o,e,t){var r=this,y=g(o,e,t,this._drmSystemOptions);x.logger.log("Requesting encrypted media key-system access");var _=this.requestMediaKeySystemAccess(o,y);this.mediaKeysPromise=_.then(function(p){return r._onMediaKeySystemAccessObtained(o,p)}),_.catch(function(p){x.logger.error('Failed to obtain key-system "'+o+'" access:',p)})},n._onMediaKeySystemAccessObtained=function(o,e){var t=this;x.logger.log('Access for key-system "'+o+'" obtained');var r={mediaKeysSessionInitialized:!1,mediaKeySystemAccess:e,mediaKeySystemDomain:o};this._mediaKeysList.push(r);var y=Promise.resolve().then(function(){return e.createMediaKeys()}).then(function(_){return r.mediaKeys=_,x.logger.log('Media-keys created for key-system "'+o+'"'),t._onMediaKeysCreated(),_});return y.catch(function(_){x.logger.error("Failed to create media-keys:",_)}),y},n._onMediaKeysCreated=function(){var o=this;this._mediaKeysList.forEach(function(e){e.mediaKeysSession||(e.mediaKeysSession=e.mediaKeys.createSession(),o._onNewMediaKeySession(e.mediaKeysSession))})},n._onNewMediaKeySession=function(o){var e=this;x.logger.log("New key-system session "+o.sessionId),o.addEventListener("message",function(t){e._onKeySessionMessage(o,t.message)},!1)},n._onKeySessionMessage=function(o,e){x.logger.log("Got EME message event, creating license request"),this._requestLicense(e,function(t){x.logger.log("Received license data (length: "+(t&&t.byteLength)+"), updating key-session"),o.update(t)})},n.onMediaEncrypted=function(o){var e=this;if(x.logger.log('Media is encrypted using "'+o.initDataType+'" init data type'),!this.mediaKeysPromise){x.logger.error("Fatal: Media is encrypted but no CDM access or no keys have been requested"),this.hls.trigger(M.Events.ERROR,{type:T.ErrorTypes.KEY_SYSTEM_ERROR,details:T.ErrorDetails.KEY_SYSTEM_NO_KEYS,fatal:!0});return}var t=function(y){if(!e._media)return;e._attemptSetMediaKeys(y),e._generateRequestWithPreferredKeySession(o.initDataType,o.initData)};this.mediaKeysPromise.then(t).catch(t)},n._attemptSetMediaKeys=function(o){if(!this._media)throw new Error("Attempted to set mediaKeys without first attaching a media element");if(!this._hasSetMediaKeys){var e=this._mediaKeysList[0];if(!e||!e.mediaKeys){x.logger.error("Fatal: Media is encrypted but no CDM access or no keys have been obtained yet"),this.hls.trigger(M.Events.ERROR,{type:T.ErrorTypes.KEY_SYSTEM_ERROR,details:T.ErrorDetails.KEY_SYSTEM_NO_KEYS,fatal:!0});return}x.logger.log("Setting keys for encrypted media"),this._media.setMediaKeys(e.mediaKeys),this._hasSetMediaKeys=!0}},n._generateRequestWithPreferredKeySession=function(o,e){var t=this,r=this._mediaKeysList[0];if(!r){x.logger.error("Fatal: Media is encrypted but not any key-system access has been obtained yet"),this.hls.trigger(M.Events.ERROR,{type:T.ErrorTypes.KEY_SYSTEM_ERROR,details:T.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}if(r.mediaKeysSessionInitialized){x.logger.warn("Key-Session already initialized but requested again");return}var y=r.mediaKeysSession;if(!y){x.logger.error("Fatal: Media is encrypted but no key-session existing"),this.hls.trigger(M.Events.ERROR,{type:T.ErrorTypes.KEY_SYSTEM_ERROR,details:T.ErrorDetails.KEY_SYSTEM_NO_SESSION,fatal:!0});return}if(!e){x.logger.warn("Fatal: initData required for generating a key session is null"),this.hls.trigger(M.Events.ERROR,{type:T.ErrorTypes.KEY_SYSTEM_ERROR,details:T.ErrorDetails.KEY_SYSTEM_NO_INIT_DATA,fatal:!0});return}x.logger.log('Generating key-session request for "'+o+'" init data type'),r.mediaKeysSessionInitialized=!0,y.generateRequest(o,e).then(function(){x.logger.debug("Key-session generation succeeded")}).catch(function(_){x.logger.error("Error generating key-session request:",_),t.hls.trigger(M.Events.ERROR,{type:T.ErrorTypes.KEY_SYSTEM_ERROR,details:T.ErrorDetails.KEY_SYSTEM_NO_SESSION,fatal:!1})})},n._createLicenseXhr=function(o,e,t){var r=new XMLHttpRequest;r.responseType="arraybuffer",r.onreadystatechange=this._onLicenseRequestReadyStageChange.bind(this,r,o,e,t);var y=this._licenseXhrSetup;if(y)try{y.call(this.hls,r,o),y=void 0}catch(_){x.logger.error(_)}try{r.readyState||r.open("POST",o,!0),y&&y.call(this.hls,r,o)}catch(_){throw new Error("issue setting up KeySystem license XHR "+_)}return r},n._onLicenseRequestReadyStageChange=function(o,e,t,r){switch(o.readyState){case 4:if(o.status===200){this._requestLicenseFailureCount=0,x.logger.log("License request succeeded");var y=o.response,_=this._licenseResponseCallback;if(_)try{y=_.call(this.hls,o,e)}catch(E){x.logger.error(E)}r(y)}else{if(x.logger.error("License Request XHR failed ("+e+"). Status: "+o.status+" ("+o.statusText+")"),this._requestLicenseFailureCount++,this._requestLicenseFailureCount>O){this.hls.trigger(M.Events.ERROR,{type:T.ErrorTypes.KEY_SYSTEM_ERROR,details:T.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0});return}var p=O-this._requestLicenseFailureCount+1;x.logger.warn("Retrying license request, "+p+" attempts left"),this._requestLicense(t,r)}break}},n._generateLicenseRequestChallenge=function(o,e){switch(o.mediaKeySystemDomain){case N.KeySystems.WIDEVINE:return e}throw new Error("unsupported key-system: "+o.mediaKeySystemDomain)},n._requestLicense=function(o,e){x.logger.log("Requesting content license for key-system");var t=this._mediaKeysList[0];if(!t){x.logger.error("Fatal error: Media is encrypted but no key-system access has been obtained yet"),this.hls.trigger(M.Events.ERROR,{type:T.ErrorTypes.KEY_SYSTEM_ERROR,details:T.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}try{var r=this.getLicenseServerUrl(t.mediaKeySystemDomain),y=this._createLicenseXhr(r,o,e);x.logger.log("Sending license request to URL: "+r);var _=this._generateLicenseRequestChallenge(t,o);y.send(_)}catch(p){x.logger.error("Failure requesting DRM license: "+p),this.hls.trigger(M.Events.ERROR,{type:T.ErrorTypes.KEY_SYSTEM_ERROR,details:T.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0})}},n.onMediaAttached=function(o,e){if(!this._emeEnabled)return;var t=e.media;this._media=t,t.addEventListener("encrypted",this._onMediaEncrypted)},n.onMediaDetached=function(){var o=this._media,e=this._mediaKeysList;if(!o)return;o.removeEventListener("encrypted",this._onMediaEncrypted),this._media=null,this._mediaKeysList=[],Promise.all(e.map(function(t){if(t.mediaKeysSession)return t.mediaKeysSession.close().catch(function(){})})).then(function(){return o.setMediaKeys(null)}).catch(function(){})},n.onManifestParsed=function(o,e){if(!this._emeEnabled)return;var t=e.levels.map(function(y){return y.audioCodec}).filter(function(y){return!!y}),r=e.levels.map(function(y){return y.videoCodec}).filter(function(y){return!!y});this._attemptKeySystemAccess(N.KeySystems.WIDEVINE,t,r)},C(s,[{key:"requestMediaKeySystemAccess",get:function(){if(!this._requestMediaKeySystemAccess)throw new Error("No requestMediaKeySystemAccess function configured");return this._requestMediaKeySystemAccess}}]),s}();I.default=c},"./src/controller/fps-controller.ts":function(q,I,R){"use strict";R.r(I);var M=R("./src/events.ts"),T=R("./src/utils/logger.ts"),x=function(){function N(C){this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=C,this.registerListeners()}var L=N.prototype;return L.setStreamController=function(O){this.streamController=O},L.registerListeners=function(){this.hls.on(M.Events.MEDIA_ATTACHING,this.onMediaAttaching,this)},L.unregisterListeners=function(){this.hls.off(M.Events.MEDIA_ATTACHING,this.onMediaAttaching)},L.destroy=function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null},L.onMediaAttaching=function(O,v){var g=this.hls.config;if(g.capLevelOnFPSDrop){var c=v.media instanceof self.HTMLVideoElement?v.media:null;this.media=c,c&&typeof c.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),g.fpsDroppedMonitoringPeriod)}},L.checkFPS=function(O,v,g){var c=performance.now();if(v){if(this.lastTime){var s=c-this.lastTime,n=g-this.lastDroppedFrames,i=v-this.lastDecodedFrames,o=1e3*n/s,e=this.hls;if(e.trigger(M.Events.FPS_DROP,{currentDropped:n,currentDecoded:i,totalDroppedFrames:g}),o>0&&n>e.config.fpsDroppedMonitoringThreshold*i){var t=e.currentLevel;T.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+t),t>0&&(e.autoLevelCapping===-1||e.autoLevelCapping>=t)&&(t=t-1,e.trigger(M.Events.FPS_DROP_LEVEL_CAPPING,{level:t,droppedLevel:e.currentLevel}),e.autoLevelCapping=t,this.streamController.nextLevelSwitch())}}this.lastTime=c,this.lastDroppedFrames=g,this.lastDecodedFrames=v}},L.checkFPSInterval=function(){var O=this.media;if(O)if(this.isVideoPlaybackQualityAvailable){var v=O.getVideoPlaybackQuality();this.checkFPS(O,v.totalVideoFrames,v.droppedVideoFrames)}else this.checkFPS(O,O.webkitDecodedFrameCount,O.webkitDroppedFrameCount)},N}();I.default=x},"./src/controller/fragment-finders.ts":function(q,I,R){"use strict";R.r(I),R.d(I,"findFragmentByPDT",function(){return x}),R.d(I,"findFragmentByPTS",function(){return N}),R.d(I,"fragmentWithinToleranceTest",function(){return L}),R.d(I,"pdtWithinToleranceTest",function(){return C}),R.d(I,"findFragWithCC",function(){return O});var M=R("./src/polyfills/number.ts"),T=R("./src/utils/binary-search.ts");function x(v,g,c){if(g===null||!Array.isArray(v)||!v.length||!Object(M.isFiniteNumber)(g))return null;var s=v[0].programDateTime;if(g<(s||0))return null;var n=v[v.length-1].endProgramDateTime;if(g>=(n||0))return null;c=c||0;for(var i=0;i<v.length;++i){var o=v[i];if(C(g,c,o))return o}return null}function N(v,g,c,s){c===void 0&&(c=0),s===void 0&&(s=0);var n=null;if(v?n=g[v.sn-g[0].sn+1]||null:c===0&&g[0].start===0&&(n=g[0]),n&&L(c,s,n)===0)return n;var i=T.default.search(g,L.bind(null,c,s));return i||n}function L(v,g,c){v===void 0&&(v=0),g===void 0&&(g=0);var s=Math.min(g,c.duration+(c.deltaPTS?c.deltaPTS:0));return c.start+c.duration-s<=v?1:c.start-s>v&&c.start?-1:0}function C(v,g,c){var s=Math.min(g,c.duration+(c.deltaPTS?c.deltaPTS:0))*1e3,n=c.endProgramDateTime||0;return n-s>v}function O(v,g){return T.default.search(v,function(c){return c.cc<g?1:c.cc>g?-1:0})}},"./src/controller/fragment-tracker.ts":function(q,I,R){"use strict";R.r(I),R.d(I,"FragmentState",function(){return x}),R.d(I,"FragmentTracker",function(){return N});var M=R("./src/events.ts"),T=R("./src/types/loader.ts"),x;(function(O){O.NOT_LOADED="NOT_LOADED",O.BACKTRACKED="BACKTRACKED",O.APPENDING="APPENDING",O.PARTIAL="PARTIAL",O.OK="OK"})(x||(x={}));var N=function(){function O(g){this.activeFragment=null,this.activeParts=null,this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hls=g,this._registerListeners()}var v=O.prototype;return v._registerListeners=function(){var c=this.hls;c.on(M.Events.BUFFER_APPENDED,this.onBufferAppended,this),c.on(M.Events.FRAG_BUFFERED,this.onFragBuffered,this),c.on(M.Events.FRAG_LOADED,this.onFragLoaded,this)},v._unregisterListeners=function(){var c=this.hls;c.off(M.Events.BUFFER_APPENDED,this.onBufferAppended,this),c.off(M.Events.FRAG_BUFFERED,this.onFragBuffered,this),c.off(M.Events.FRAG_LOADED,this.onFragLoaded,this)},v.destroy=function(){this._unregisterListeners(),this.fragments=this.timeRanges=null},v.getAppendedFrag=function(c,s){if(s===T.PlaylistLevelType.MAIN){var n=this.activeFragment,i=this.activeParts;if(!n)return null;if(i)for(var o=i.length;o--;){var e=i[o],t=e?e.end:n.appendedPTS;if(e.start<=c&&t!==void 0&&c<=t)return o>9&&(this.activeParts=i.slice(o-9)),e}else if(n.start<=c&&n.appendedPTS!==void 0&&c<=n.appendedPTS)return n}return this.getBufferedFrag(c,s)},v.getBufferedFrag=function(c,s){for(var n=this.fragments,i=Object.keys(n),o=i.length;o--;){var e=n[i[o]];if((e==null?void 0:e.body.type)===s&&e.buffered){var t=e.body;if(t.start<=c&&c<=t.end)return t}}return null},v.detectEvictedFragments=function(c,s,n){var i=this;Object.keys(this.fragments).forEach(function(o){var e=i.fragments[o];if(!e)return;if(!e.buffered){e.body.type===n&&i.removeFragment(e.body);return}var t=e.range[c];if(!t)return;t.time.some(function(r){var y=!i.isTimeBuffered(r.startPTS,r.endPTS,s);return y&&i.removeFragment(e.body),y})})},v.detectPartialFragments=function(c){var s=this,n=this.timeRanges,i=c.frag,o=c.part;if(!n||i.sn==="initSegment")return;var e=C(i),t=this.fragments[e];if(!t)return;Object.keys(n).forEach(function(r){var y=i.elementaryStreams[r];if(!y)return;var _=n[r],p=o!==null||y.partial===!0;t.range[r]=s.getBufferedTimes(i,o,p,_)}),t.backtrack=t.loaded=null,Object.keys(t.range).length?t.buffered=!0:this.removeFragment(t.body)},v.fragBuffered=function(c){var s=C(c),n=this.fragments[s];n&&(n.backtrack=n.loaded=null,n.buffered=!0)},v.getBufferedTimes=function(c,s,n,i){for(var o={time:[],partial:n},e=s?s.start:c.start,t=s?s.end:c.end,r=c.minEndPTS||t,y=c.maxStartPTS||e,_=0;_<i.length;_++){var p=i.start(_)-this.bufferPadding,E=i.end(_)+this.bufferPadding;if(y>=p&&r<=E){o.time.push({startPTS:Math.max(e,i.start(_)),endPTS:Math.min(t,i.end(_))});break}else if(e<E&&t>p)o.partial=!0,o.time.push({startPTS:Math.max(e,i.start(_)),endPTS:Math.min(t,i.end(_))});else if(t<=p)break}return o},v.getPartialFragment=function(c){var s=null,n,i,o,e=0,t=this.bufferPadding,r=this.fragments;return Object.keys(r).forEach(function(y){var _=r[y];if(!_)return;L(_)&&(i=_.body.start-t,o=_.body.end+t,c>=i&&c<=o&&(n=Math.min(c-i,o-c),e<=n&&(s=_.body,e=n)))}),s},v.getState=function(c){var s=C(c),n=this.fragments[s];return n?n.buffered?L(n)?x.PARTIAL:x.OK:n.backtrack?x.BACKTRACKED:x.APPENDING:x.NOT_LOADED},v.backtrack=function(c,s){var n=C(c),i=this.fragments[n];if(!i||i.backtrack)return null;var o=i.backtrack=s||i.loaded;return i.loaded=null,o},v.getBacktrackData=function(c){var s=C(c),n=this.fragments[s];if(n){var i,o=n.backtrack;if(o!=null&&(i=o.payload)!==null&&i!==void 0&&i.byteLength)return o;this.removeFragment(c)}return null},v.isTimeBuffered=function(c,s,n){for(var i,o,e=0;e<n.length;e++){if(i=n.start(e)-this.bufferPadding,o=n.end(e)+this.bufferPadding,c>=i&&s<=o)return!0;if(s<=i)return!1}return!1},v.onFragLoaded=function(c,s){var n=s.frag,i=s.part;if(n.sn==="initSegment"||n.bitrateTest||i)return;var o=C(n);this.fragments[o]={body:n,loaded:s,backtrack:null,buffered:!1,range:Object.create(null)}},v.onBufferAppended=function(c,s){var n=this,i=s.frag,o=s.part,e=s.timeRanges;if(i.type===T.PlaylistLevelType.MAIN)if(this.activeFragment=i,o){var t=this.activeParts;t||(this.activeParts=t=[]),t.push(o)}else this.activeParts=null;this.timeRanges=e,Object.keys(e).forEach(function(r){var y=e[r];if(n.detectEvictedFragments(r,y),!o)for(var _=0;_<y.length;_++)i.appendedPTS=Math.max(y.end(_),i.appendedPTS||0)})},v.onFragBuffered=function(c,s){this.detectPartialFragments(s)},v.hasFragment=function(c){var s=C(c);return!!this.fragments[s]},v.removeFragmentsInRange=function(c,s,n){var i=this;Object.keys(this.fragments).forEach(function(o){var e=i.fragments[o];if(!e)return;if(e.buffered){var t=e.body;t.type===n&&t.start<s&&t.end>c&&i.removeFragment(t)}})},v.removeFragment=function(c){var s=C(c);c.stats.loaded=0,c.clearElementaryStreamInfo(),delete this.fragments[s]},v.removeAllFragments=function(){this.fragments=Object.create(null),this.activeFragment=null,this.activeParts=null},O}();function L(O){var v,g;return O.buffered&&(((v=O.range.video)===null||v===void 0?void 0:v.partial)||((g=O.range.audio)===null||g===void 0?void 0:g.partial))}function C(O){return O.type+"_"+O.level+"_"+O.urlId+"_"+O.sn}},"./src/controller/gap-controller.ts":function(q,I,R){"use strict";R.r(I),R.d(I,"STALL_MINIMUM_DURATION_MS",function(){return L}),R.d(I,"MAX_START_GAP_JUMP",function(){return C}),R.d(I,"SKIP_BUFFER_HOLE_STEP_SECONDS",function(){return O}),R.d(I,"SKIP_BUFFER_RANGE_START",function(){return v}),R.d(I,"default",function(){return g});var M=R("./src/utils/buffer-helper.ts"),T=R("./src/errors.ts"),x=R("./src/events.ts"),N=R("./src/utils/logger.ts"),L=250,C=2,O=.1,v=.05,g=function(){function c(n,i,o,e){this.config=void 0,this.media=void 0,this.fragmentTracker=void 0,this.hls=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.config=n,this.media=i,this.fragmentTracker=o,this.hls=e}var s=c.prototype;return s.destroy=function(){this.hls=this.fragmentTracker=this.media=null},s.poll=function(i){var o=this.config,e=this.media,t=this.stalled,r=e.currentTime,y=e.seeking,_=this.seeking&&!y,p=!this.seeking&&y;if(this.seeking=y,r!==i){if(this.moved=!0,t!==null){if(this.stallReported){var E=self.performance.now()-t;N.logger.warn("playback not stuck anymore @"+r+", after "+Math.round(E)+"ms"),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}return}if((p||_)&&(this.stalled=null),e.paused||e.ended||e.playbackRate===0||!M.BufferHelper.getBuffered(e).length)return;var m=M.BufferHelper.bufferInfo(e,r,0),f=m.len>0,u=m.nextStart||0;if(!f&&!u)return;if(y){var a=m.len>C,l=!u||u-r>C&&!this.fragmentTracker.getPartialFragment(r);if(a||l)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var h,d=Math.max(u,m.start||0)-r,b=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,w=b==null||((h=b.details)===null||h===void 0)?void 0:h.live,A=w?b.details.targetduration*2:C;if(d>0&&d<=A){this._trySkipBufferHole(null);return}}var P=self.performance.now();if(t===null){this.stalled=P;return}var S=P-t;!y&&S>=L&&this._reportStall(m.len);var U=M.BufferHelper.bufferInfo(e,r,o.maxBufferHole);this._tryFixBufferStall(U,S)},s._tryFixBufferStall=function(i,o){var e=this.config,t=this.fragmentTracker,r=this.media,y=r.currentTime,_=t.getPartialFragment(y);if(_){var p=this._trySkipBufferHole(_);if(p)return}i.len>e.maxBufferHole&&o>e.highBufferWatchdogPeriod*1e3&&(N.logger.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())},s._reportStall=function(i){var o=this.hls,e=this.media,t=this.stallReported;t||(this.stallReported=!0,N.logger.warn("Playback stalling at @"+e.currentTime+" due to low buffer (buffer="+i+")"),o.trigger(x.Events.ERROR,{type:T.ErrorTypes.MEDIA_ERROR,details:T.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!1,buffer:i}))},s._trySkipBufferHole=function(i){for(var o=this.config,e=this.hls,t=this.media,r=t.currentTime,y=0,_=M.BufferHelper.getBuffered(t),p=0;p<_.length;p++){var E=_.start(p);if(r+o.maxBufferHole>=y&&r<E){var m=Math.max(E+v,t.currentTime+O);return N.logger.warn("skipping hole, adjusting currentTime from "+r+" to "+m),this.moved=!0,this.stalled=null,t.currentTime=m,i&&e.trigger(x.Events.ERROR,{type:T.ErrorTypes.MEDIA_ERROR,details:T.ErrorDetails.BUFFER_SEEK_OVER_HOLE,fatal:!1,reason:"fragment loaded with buffer holes, seeking from "+r+" to "+m,frag:i}),m}y=_.end(p)}return 0},s._tryNudgeBuffer=function(){var i=this.config,o=this.hls,e=this.media,t=e.currentTime,r=(this.nudgeRetry||0)+1;if(this.nudgeRetry=r,r<i.nudgeMaxRetry){var y=t+r*i.nudgeOffset;N.logger.warn("Nudging 'currentTime' from "+t+" to "+y),e.currentTime=y,o.trigger(x.Events.ERROR,{type:T.ErrorTypes.MEDIA_ERROR,details:T.ErrorDetails.BUFFER_NUDGE_ON_STALL,fatal:!1})}else N.logger.error("Playhead still not moving while enough data buffered @"+t+" after "+i.nudgeMaxRetry+" nudges"),o.trigger(x.Events.ERROR,{type:T.ErrorTypes.MEDIA_ERROR,details:T.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!0})},c}()},"./src/controller/id3-track-controller.ts":function(q,I,R){"use strict";R.r(I);var M=R("./src/events.ts"),T=R("./src/utils/texttrack-utils.ts"),x=R("./src/demux/id3.ts"),N=.25,L=function(){function C(v){this.hls=void 0,this.id3Track=null,this.media=null,this.hls=v,this._registerListeners()}var O=C.prototype;return O.destroy=function(){this._unregisterListeners()},O._registerListeners=function(){var g=this.hls;g.on(M.Events.MEDIA_ATTACHED,this.onMediaAttached,this),g.on(M.Events.MEDIA_DETACHING,this.onMediaDetaching,this),g.on(M.Events.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),g.on(M.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},O._unregisterListeners=function(){var g=this.hls;g.off(M.Events.MEDIA_ATTACHED,this.onMediaAttached,this),g.off(M.Events.MEDIA_DETACHING,this.onMediaDetaching,this),g.off(M.Events.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),g.off(M.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},O.onMediaAttached=function(g,c){this.media=c.media},O.onMediaDetaching=function(){if(!this.id3Track)return;Object(T.clearCurrentCues)(this.id3Track),this.id3Track=null,this.media=null},O.getID3Track=function(g){if(!this.media)return;for(var c=0;c<g.length;c++){var s=g[c];if(s.kind==="metadata"&&s.label==="id3")return Object(T.sendAddTrackEvent)(s,this.media),s}return this.media.addTextTrack("metadata","id3")},O.onFragParsingMetadata=function(g,c){if(!this.media)return;var s=c.frag,n=c.samples;this.id3Track||(this.id3Track=this.getID3Track(this.media.textTracks),this.id3Track.mode="hidden");for(var i=self.WebKitDataCue||self.VTTCue||self.TextTrackCue,o=0;o<n.length;o++){var e=x.getID3Frames(n[o].data);if(e){var t=n[o].pts,r=o<n.length-1?n[o+1].pts:s.end,y=r-t;y<=0&&(r=t+N);for(var _=0;_<e.length;_++){var p=e[_];if(!x.isTimeStampFrame(p)){var E=new i(t,r,"");E.value=p,this.id3Track.addCue(E)}}}}},O.onBufferFlushing=function(g,c){var s=c.startOffset,n=c.endOffset,i=c.type;if(!i||i==="audio"){var o=this.id3Track;o&&Object(T.removeCuesInRange)(o,s,n)}},C}();I.default=L},"./src/controller/latency-controller.ts":function(q,I,R){"use strict";R.r(I),R.d(I,"default",function(){return C});var M=R("./src/errors.ts"),T=R("./src/events.ts"),x=R("./src/utils/logger.ts");function N(O,v){for(var g=0;g<v.length;g++){var c=v[g];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(O,c.key,c)}}function L(O,v,g){return v&&N(O.prototype,v),g&&N(O,g),O}var C=function(){function O(g){var c=this;this.hls=void 0,this.config=void 0,this.media=null,this.levelDetails=null,this.currentTime=0,this.stallCount=0,this._latency=null,this.timeupdateHandler=function(){return c.timeupdate()},this.hls=g,this.config=g.config,this.registerListeners()}var v=O.prototype;return v.destroy=function(){this.unregisterListeners(),this.onMediaDetaching(),this.levelDetails=null,this.hls=this.timeupdateHandler=null},v.registerListeners=function(){this.hls.on(T.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(T.Events.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.on(T.Events.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(T.Events.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.on(T.Events.ERROR,this.onError,this)},v.unregisterListeners=function(){this.hls.off(T.Events.MEDIA_ATTACHED,this.onMediaAttached),this.hls.off(T.Events.MEDIA_DETACHING,this.onMediaDetaching),this.hls.off(T.Events.MANIFEST_LOADING,this.onManifestLoading),this.hls.off(T.Events.LEVEL_UPDATED,this.onLevelUpdated),this.hls.off(T.Events.ERROR,this.onError)},v.onMediaAttached=function(c,s){this.media=s.media,this.media.addEventListener("timeupdate",this.timeupdateHandler)},v.onMediaDetaching=function(){this.media&&(this.media.removeEventListener("timeupdate",this.timeupdateHandler),this.media=null)},v.onManifestLoading=function(){this.levelDetails=null,this._latency=null,this.stallCount=0},v.onLevelUpdated=function(c,s){var n=s.details;this.levelDetails=n,n.advanced&&this.timeupdate(),!n.live&&this.media&&this.media.removeEventListener("timeupdate",this.timeupdateHandler)},v.onError=function(c,s){if(s.details!==M.ErrorDetails.BUFFER_STALLED_ERROR)return;this.stallCount++,x.logger.warn("[playback-rate-controller]: Stall detected, adjusting target latency")},v.timeupdate=function(){var c=this.media,s=this.levelDetails;if(!c||!s)return;this.currentTime=c.currentTime;var n=this.computeLatency();if(n===null)return;this._latency=n;var i=this.config,o=i.lowLatencyMode,e=i.maxLiveSyncPlaybackRate;if(!o||e===1)return;var t=this.targetLatency;if(t===null)return;var r=n-t,y=Math.min(this.maxLatency,t+s.targetduration),_=r<y;if(s.live&&_&&r>.05&&this.forwardBufferLength>1){var p=Math.min(2,Math.max(1,e)),E=Math.round(2/(1+Math.exp(-.75*r-this.edgeStalled))*20)/20;c.playbackRate=Math.min(p,Math.max(1,E))}else c.playbackRate!==1&&c.playbackRate!==0&&(c.playbackRate=1)},v.estimateLiveEdge=function(){var c=this.levelDetails;return c===null?null:c.edge+c.age},v.computeLatency=function(){var c=this.estimateLiveEdge();return c===null?null:c-this.currentTime},L(O,[{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var c=this.config,s=this.levelDetails;return c.liveMaxLatencyDuration!==void 0?c.liveMaxLatencyDuration:s?c.liveMaxLatencyDurationCount*s.targetduration:0}},{key:"targetLatency",get:function(){var c=this.levelDetails;if(c===null)return null;var s=c.holdBack,n=c.partHoldBack,i=c.targetduration,o=this.config,e=o.liveSyncDuration,t=o.liveSyncDurationCount,r=o.lowLatencyMode,y=this.hls.userConfig,_=r&&n||s;(y.liveSyncDuration||y.liveSyncDurationCount||_===0)&&(_=e!==void 0?e:t*i);var p=i,E=1;return _+Math.min(this.stallCount*E,p)}},{key:"liveSyncPosition",get:function(){var c=this.estimateLiveEdge(),s=this.targetLatency,n=this.levelDetails;if(c===null||s===null||n===null)return null;var i=n.edge,o=c-s-this.edgeStalled,e=i-n.totalduration,t=i-(this.config.lowLatencyMode&&n.partTarget||n.targetduration);return Math.min(Math.max(e,o),t)}},{key:"drift",get:function(){var c=this.levelDetails;return c===null?1:c.drift}},{key:"edgeStalled",get:function(){var c=this.levelDetails;if(c===null)return 0;var s=(this.config.lowLatencyMode&&c.partTarget||c.targetduration)*3;return Math.max(c.age-s,0)}},{key:"forwardBufferLength",get:function(){var c=this.media,s=this.levelDetails;if(!c||!s)return 0;var n=c.buffered.length;return n?c.buffered.end(n-1):s.edge-this.currentTime}}]),O}()},"./src/controller/level-controller.ts":function(q,I,R){"use strict";R.r(I),R.d(I,"default",function(){return o});var M=R("./src/types/level.ts"),T=R("./src/events.ts"),x=R("./src/errors.ts"),N=R("./src/utils/codecs.ts"),L=R("./src/controller/level-helper.ts"),C=R("./src/controller/base-playlist-controller.ts"),O=R("./src/types/loader.ts");function v(){return v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var y in r)Object.prototype.hasOwnProperty.call(r,y)&&(e[y]=r[y])}return e},v.apply(this,arguments)}function g(e,t){for(var r=0;r<t.length;r++){var y=t[r];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(e,y.key,y)}}function c(e,t,r){return t&&g(e.prototype,t),r&&g(e,r),e}function s(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,n(e,t)}function n(e,t){return n=Object.setPrototypeOf||function(y,_){return y.__proto__=_,y},n(e,t)}var i=/chrome|firefox/.test(navigator.userAgent.toLowerCase()),o=function(e){s(t,e);function t(y){var _;return _=e.call(this,y,"[level-controller]")||this,_._levels=[],_._firstLevel=-1,_._startLevel=void 0,_.currentLevelIndex=-1,_.manualLevelIndex=-1,_.onParsedComplete=void 0,_._registerListeners(),_}var r=t.prototype;return r._registerListeners=function(){var _=this.hls;_.on(T.Events.MANIFEST_LOADED,this.onManifestLoaded,this),_.on(T.Events.LEVEL_LOADED,this.onLevelLoaded,this),_.on(T.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),_.on(T.Events.FRAG_LOADED,this.onFragLoaded,this),_.on(T.Events.ERROR,this.onError,this)},r._unregisterListeners=function(){var _=this.hls;_.off(T.Events.MANIFEST_LOADED,this.onManifestLoaded,this),_.off(T.Events.LEVEL_LOADED,this.onLevelLoaded,this),_.off(T.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),_.off(T.Events.FRAG_LOADED,this.onFragLoaded,this),_.off(T.Events.ERROR,this.onError,this)},r.destroy=function(){this._unregisterListeners(),this.manualLevelIndex=-1,this._levels.length=0,e.prototype.destroy.call(this)},r.startLoad=function(){var _=this._levels;_.forEach(function(p){p.loadError=0}),e.prototype.startLoad.call(this)},r.onManifestLoaded=function(_,p){var E=[],m=[],f=[],u,a={},l,h=!1,d=!1,b=!1;if(p.levels.forEach(function(S){var U=S.attrs;h=h||!!(S.width&&S.height),d=d||!!S.videoCodec,b=b||!!S.audioCodec,i&&S.audioCodec&&S.audioCodec.indexOf("mp4a.40.34")!==-1&&(S.audioCodec=void 0);var D=S.bitrate+"-"+S.attrs.RESOLUTION+"-"+S.attrs.CODECS;l=a[D],l?l.url.push(S.url):(l=new M.Level(S),a[D]=l,E.push(l)),U&&(U.AUDIO&&Object(L.addGroupId)(l,"audio",U.AUDIO),U.SUBTITLES&&Object(L.addGroupId)(l,"text",U.SUBTITLES))}),(h||d)&&b&&(E=E.filter(function(S){var U=S.videoCodec,D=S.width,j=S.height;return!!U||!!(D&&j)})),E=E.filter(function(S){var U=S.audioCodec,D=S.videoCodec;return(!U||Object(N.isCodecSupportedInMp4)(U,"audio"))&&(!D||Object(N.isCodecSupportedInMp4)(D,"video"))}),p.audioTracks&&(m=p.audioTracks.filter(function(S){return!S.audioCodec||Object(N.isCodecSupportedInMp4)(S.audioCodec,"audio")}),Object(L.assignTrackIdsByGroup)(m)),p.subtitles&&(f=p.subtitles,Object(L.assignTrackIdsByGroup)(f)),E.length>0){u=E[0].bitrate,E.sort(function(S,U){return S.bitrate-U.bitrate}),this._levels=E;for(var w=0;w<E.length;w++)if(E[w].bitrate===u){this._firstLevel=w,this.log("manifest loaded, "+E.length+" level(s) found, first bitrate: "+u);break}var A=b&&!d,P={levels:E,audioTracks:m,subtitleTracks:f,firstLevel:this._firstLevel,stats:p.stats,audio:b,video:d,altAudio:!A&&m.some(function(S){return!!S.url})};this.hls.trigger(T.Events.MANIFEST_PARSED,P),(this.hls.config.autoStartLoad||this.hls.forceStartLoad)&&this.hls.startLoad(this.hls.config.startPosition)}else this.hls.trigger(T.Events.ERROR,{type:x.ErrorTypes.MEDIA_ERROR,details:x.ErrorDetails.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:p.url,reason:"no level with compatible codecs found in manifest"})},r.onError=function(_,p){if(e.prototype.onError.call(this,_,p),p.fatal)return;var E=p.context,m=this._levels[this.currentLevelIndex];if(E&&(E.type===O.PlaylistContextType.AUDIO_TRACK&&m.audioGroupIds&&E.groupId===m.audioGroupIds[m.urlId]||E.type===O.PlaylistContextType.SUBTITLE_TRACK&&m.textGroupIds&&E.groupId===m.textGroupIds[m.urlId])){this.redundantFailover(this.currentLevelIndex);return}var f=!1,u=!0,a;switch(p.details){case x.ErrorDetails.FRAG_LOAD_ERROR:case x.ErrorDetails.FRAG_LOAD_TIMEOUT:case x.ErrorDetails.KEY_LOAD_ERROR:case x.ErrorDetails.KEY_LOAD_TIMEOUT:if(p.frag){var l=this._levels[p.frag.level];l?(l.fragmentError++,l.fragmentError>this.hls.config.fragLoadingMaxRetry&&(a=p.frag.level)):a=p.frag.level}break;case x.ErrorDetails.LEVEL_LOAD_ERROR:case x.ErrorDetails.LEVEL_LOAD_TIMEOUT:E&&(E.deliveryDirectives&&(u=!1),a=E.level),f=!0;break;case x.ErrorDetails.REMUX_ALLOC_ERROR:a=p.level,f=!0;break}a!==void 0&&this.recoverLevel(p,a,f,u)},r.recoverLevel=function(_,p,E,m){var f=_.details,u=this._levels[p];if(u.loadError++,E){var a=this.retryLoadingOrFail(_);if(a)_.levelRetry=!0;else{this.currentLevelIndex=-1;return}}if(m){var l=u.url.length;if(l>1&&u.loadError<l)_.levelRetry=!0,this.redundantFailover(p);else if(this.manualLevelIndex===-1){var h=p===0?this._levels.length-1:p-1;this.currentLevelIndex!==h&&this._levels[h].loadError===0&&(this.warn(f+": switch to "+h),_.levelRetry=!0,this.hls.nextAutoLevel=h)}}},r.redundantFailover=function(_){var p=this._levels[_],E=p.url.length;if(E>1){var m=(p.urlId+1)%E;this.warn("Switching to redundant URL-id "+m),this._levels.forEach(function(f){f.urlId=m}),this.level=_}},r.onFragLoaded=function(_,p){var E=p.frag;if(E!==void 0&&E.type===O.PlaylistLevelType.MAIN){var m=this._levels[E.level];m!==void 0&&(m.fragmentError=0,m.loadError=0)}},r.onLevelLoaded=function(_,p){var E,m=p.level,f=p.details,u=this._levels[m];if(!u){var a;this.warn("Invalid level index "+m),(a=p.deliveryDirectives)!==null&&a!==void 0&&a.skip&&(f.deltaUpdateFailed=!0);return}m===this.currentLevelIndex?(u.fragmentError===0&&(u.loadError=0,this.retryCount=0),this.playlistLoaded(m,p,u.details)):(E=p.deliveryDirectives)!==null&&E!==void 0&&E.skip&&(f.deltaUpdateFailed=!0)},r.onAudioTrackSwitched=function(_,p){var E=this.hls.levels[this.currentLevelIndex];if(!E)return;if(E.audioGroupIds){for(var m=-1,f=this.hls.audioTracks[p.id].groupId,u=0;u<E.audioGroupIds.length;u++)if(E.audioGroupIds[u]===f){m=u;break}m!==E.urlId&&(E.urlId=m,this.startLoad())}},r.loadPlaylist=function(_){var p=this.currentLevelIndex,E=this._levels[p];if(this.canLoad&&E&&E.url.length>0){var m=E.urlId,f=E.url[m];if(_)try{f=_.addDirectives(f)}catch(u){this.warn("Could not construct new URL with HLS Delivery Directives: "+u)}this.log("Attempt loading level index "+p+(_?" at sn "+_.msn+" part "+_.part:"")+" with URL-id "+m+" "+f),this.clearTimer(),this.hls.trigger(T.Events.LEVEL_LOADING,{url:f,level:p,id:m,deliveryDirectives:_||null})}},r.removeLevel=function(_,p){var E=function(u,a){return a!==p},m=this._levels.filter(function(f,u){return u!==_?!0:f.url.length>1&&p!==void 0?(f.url=f.url.filter(E),f.audioGroupIds&&(f.audioGroupIds=f.audioGroupIds.filter(E)),f.textGroupIds&&(f.textGroupIds=f.textGroupIds.filter(E)),f.urlId=0,!0):!1}).map(function(f,u){var a=f.details;return a!=null&&a.fragments&&a.fragments.forEach(function(l){l.level=u}),f});this._levels=m,this.hls.trigger(T.Events.LEVELS_UPDATED,{levels:m})},c(t,[{key:"levels",get:function(){return this._levels.length===0?null:this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(_){var p,E=this._levels;if(E.length===0)return;if(this.currentLevelIndex===_&&(p=E[_])!==null&&p!==void 0&&p.details)return;if(_<0||_>=E.length){var m=_<0;if(this.hls.trigger(T.Events.ERROR,{type:x.ErrorTypes.OTHER_ERROR,details:x.ErrorDetails.LEVEL_SWITCH_ERROR,level:_,fatal:m,reason:"invalid level idx"}),m)return;_=Math.min(_,E.length-1)}this.clearTimer();var f=this.currentLevelIndex,u=E[f],a=E[_];this.log("switching to level "+_+" from "+f),this.currentLevelIndex=_;var l=v({},a,{level:_,maxBitrate:a.maxBitrate,uri:a.uri,urlId:a.urlId});delete l._urlId,this.hls.trigger(T.Events.LEVEL_SWITCHING,l);var h=a.details;if(!h||h.live){var d=this.switchParams(a.uri,u==null?void 0:u.details);this.loadPlaylist(d)}}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(_){this.manualLevelIndex=_,this._startLevel===void 0&&(this._startLevel=_),_!==-1&&(this.level=_)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(_){this._firstLevel=_}},{key:"startLevel",get:function(){if(this._startLevel===void 0){var _=this.hls.config.startLevel;return _!==void 0?_:this._firstLevel}else return this._startLevel},set:function(_){this._startLevel=_}},{key:"nextLoadLevel",get:function(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(_){this.level=_,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=_)}}]),t}(C.default)},"./src/controller/level-helper.ts":function(q,I,R){"use strict";R.r(I),R.d(I,"addGroupId",function(){return x}),R.d(I,"assignTrackIdsByGroup",function(){return N}),R.d(I,"updatePTS",function(){return L}),R.d(I,"updateFragPTSDTS",function(){return O}),R.d(I,"mergeDetails",function(){return v}),R.d(I,"mapPartIntersection",function(){return g}),R.d(I,"mapFragmentIntersection",function(){return c}),R.d(I,"adjustSliding",function(){return s}),R.d(I,"addSliding",function(){return n}),R.d(I,"computeReloadInterval",function(){return i}),R.d(I,"getFragmentWithSN",function(){return o}),R.d(I,"getPartWith",function(){return e});var M=R("./src/polyfills/number.ts"),T=R("./src/utils/logger.ts");function x(t,r,y){switch(r){case"audio":t.audioGroupIds||(t.audioGroupIds=[]),t.audioGroupIds.push(y);break;case"text":t.textGroupIds||(t.textGroupIds=[]),t.textGroupIds.push(y);break}}function N(t){var r={};t.forEach(function(y){var _=y.groupId||"";y.id=r[_]=r[_]||0,r[_]++})}function L(t,r,y){var _=t[r],p=t[y];C(_,p)}function C(t,r){var y=r.startPTS;if(Object(M.isFiniteNumber)(y)){var _=0,p;r.sn>t.sn?(_=y-t.start,p=t):(_=t.start-y,p=r),p.duration!==_&&(p.duration=_)}else if(r.sn>t.sn){var E=t.cc===r.cc;E&&t.minEndPTS?r.start=t.start+(t.minEndPTS-t.start):r.start=t.start+t.duration}else r.start=Math.max(t.start-r.duration,0)}function O(t,r,y,_,p,E){var m=_-y;m<=0&&(T.logger.warn("Fragment should have a positive duration",r),_=y+r.duration,E=p+r.duration);var f=y,u=_,a=r.startPTS,l=r.endPTS;if(Object(M.isFiniteNumber)(a)){var h=Math.abs(a-y);Object(M.isFiniteNumber)(r.deltaPTS)?r.deltaPTS=Math.max(h,r.deltaPTS):r.deltaPTS=h,f=Math.max(y,a),y=Math.min(y,a),p=Math.min(p,r.startDTS),u=Math.min(_,l),_=Math.max(_,l),E=Math.max(E,r.endDTS)}r.duration=_-y;var d=y-r.start;r.appendedPTS=_,r.start=r.startPTS=y,r.maxStartPTS=f,r.startDTS=p,r.endPTS=_,r.minEndPTS=u,r.endDTS=E;var b=r.sn;if(!t||b<t.startSN||b>t.endSN)return 0;var w,A=b-t.startSN,P=t.fragments;for(P[A]=r,w=A;w>0;w--)C(P[w],P[w-1]);for(w=A;w<P.length-1;w++)C(P[w],P[w+1]);return t.fragmentHint&&C(P[P.length-1],t.fragmentHint),t.PTSKnown=t.alignedSliding=!0,d}function v(t,r){for(var y=null,_=t.fragments,p=_.length-1;p>=0;p--){var E=_[p].initSegment;if(E){y=E;break}}t.fragmentHint&&delete t.fragmentHint.endPTS;var m=0,f;if(c(t,r,function(w,A){w.relurl&&(m=w.cc-A.cc),Object(M.isFiniteNumber)(w.startPTS)&&Object(M.isFiniteNumber)(w.endPTS)&&(A.start=A.startPTS=w.startPTS,A.startDTS=w.startDTS,A.appendedPTS=w.appendedPTS,A.maxStartPTS=w.maxStartPTS,A.endPTS=w.endPTS,A.endDTS=w.endDTS,A.minEndPTS=w.minEndPTS,A.duration=w.endPTS-w.startPTS,A.duration&&(f=A),r.PTSKnown=r.alignedSliding=!0),A.elementaryStreams=w.elementaryStreams,A.loader=w.loader,A.stats=w.stats,A.urlId=w.urlId,w.initSegment&&(A.initSegment=w.initSegment,y=w.initSegment)}),y){var u=r.fragmentHint?r.fragments.concat(r.fragmentHint):r.fragments;u.forEach(function(w){var A;(!w.initSegment||w.initSegment.relurl===((A=y)===null||A===void 0?void 0:A.relurl))&&(w.initSegment=y)})}if(r.skippedSegments&&(r.deltaUpdateFailed=r.fragments.some(function(w){return!w}),r.deltaUpdateFailed)){T.logger.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var a=r.skippedSegments;a--;)r.fragments.shift();r.startSN=r.fragments[0].sn,r.startCC=r.fragments[0].cc}var l=r.fragments;if(m){T.logger.warn("discontinuity sliding from playlist, take drift into account");for(var h=0;h<l.length;h++)l[h].cc+=m}r.skippedSegments&&(r.startCC=r.fragments[0].cc),g(t.partList,r.partList,function(w,A){A.elementaryStreams=w.elementaryStreams,A.stats=w.stats}),f?O(r,f,f.startPTS,f.endPTS,f.startDTS,f.endDTS):s(t,r),l.length&&(r.totalduration=r.edge-l[0].start),r.driftStartTime=t.driftStartTime,r.driftStart=t.driftStart;var d=r.advancedDateTime;if(r.advanced&&d){var b=r.edge;r.driftStart||(r.driftStartTime=d,r.driftStart=b),r.driftEndTime=d,r.driftEnd=b}else r.driftEndTime=t.driftEndTime,r.driftEnd=t.driftEnd,r.advancedDateTime=t.advancedDateTime}function g(t,r,y){if(t&&r)for(var _=0,p=0,E=t.length;p<=E;p++){var m=t[p],f=r[p+_];m&&f&&m.index===f.index&&m.fragment.sn===f.fragment.sn?y(m,f):_--}}function c(t,r,y){for(var _=r.skippedSegments,p=Math.max(t.startSN,r.startSN)-r.startSN,E=(t.fragmentHint?1:0)+(_?r.endSN:Math.min(t.endSN,r.endSN))-r.startSN,m=r.startSN-t.startSN,f=r.fragmentHint?r.fragments.concat(r.fragmentHint):r.fragments,u=t.fragmentHint?t.fragments.concat(t.fragmentHint):t.fragments,a=p;a<=E;a++){var l=u[m+a],h=f[a];_&&!h&&a<_&&(h=r.fragments[a]=l),l&&h&&y(l,h)}}function s(t,r){var y=r.startSN+r.skippedSegments-t.startSN,_=t.fragments;if(y<0||y>=_.length)return;n(r,_[y].start)}function n(t,r){if(r){for(var y=t.fragments,_=t.skippedSegments;_<y.length;_++)y[_].start+=r;t.fragmentHint&&(t.fragmentHint.start+=r)}}function i(t,r){var y=1e3*t.levelTargetDuration,_=y/2,p=t.age,E=p>0&&p<y*3,m=r.loading.end-r.loading.start,f,u=t.availabilityDelay;if(t.updated===!1)if(E){var a=333*t.misses;f=Math.max(Math.min(_,m*2),a),t.availabilityDelay=(t.availabilityDelay||0)+f}else f=_;else E?(u=Math.min(u||y/2,p),t.availabilityDelay=u,f=u+y-p):f=y-m;return Math.round(f)}function o(t,r,y){if(!t||!t.details)return null;var _=t.details,p=_.fragments[r-_.startSN];return p||(p=_.fragmentHint,p&&p.sn===r?p:r<_.startSN&&y&&y.sn===r?y:null)}function e(t,r,y){if(!t||!t.details)return null;var _=t.details.partList;if(_)for(var p=_.length;p--;){var E=_[p];if(E.index===y&&E.fragment.sn===r)return E}return null}},"./src/controller/stream-controller.ts":function(q,I,R){"use strict";R.r(I),R.d(I,"default",function(){return _});var M=R("./src/polyfills/number.ts"),T=R("./src/controller/base-stream-controller.ts"),x=R("./src/is-supported.ts"),N=R("./src/events.ts"),L=R("./src/utils/buffer-helper.ts"),C=R("./src/controller/fragment-tracker.ts"),O=R("./src/types/loader.ts"),v=R("./src/loader/fragment.ts"),g=R("./src/demux/transmuxer-interface.ts"),c=R("./src/types/transmuxer.ts"),s=R("./src/controller/gap-controller.ts"),n=R("./src/errors.ts"),i=R("./src/utils/logger.ts");function o(p,E){for(var m=0;m<E.length;m++){var f=E[m];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(p,f.key,f)}}function e(p,E,m){return E&&o(p.prototype,E),m&&o(p,m),p}function t(p,E){p.prototype=Object.create(E.prototype),p.prototype.constructor=p,r(p,E)}function r(p,E){return r=Object.setPrototypeOf||function(f,u){return f.__proto__=u,f},r(p,E)}var y=100,_=function(p){t(E,p);function E(f,u){var a;return a=p.call(this,f,u,"[stream-controller]")||this,a.audioCodecSwap=!1,a.gapController=null,a.level=-1,a._forceStartLoad=!1,a.altAudio=!1,a.audioOnly=!1,a.fragPlaying=null,a.onvplaying=null,a.onvseeked=null,a.fragLastKbps=0,a.stalled=!1,a.couldBacktrack=!1,a.audioCodecSwitch=!1,a.videoBuffer=null,a._registerListeners(),a}var m=E.prototype;return m._registerListeners=function(){var u=this.hls;u.on(N.Events.MEDIA_ATTACHED,this.onMediaAttached,this),u.on(N.Events.MEDIA_DETACHING,this.onMediaDetaching,this),u.on(N.Events.MANIFEST_LOADING,this.onManifestLoading,this),u.on(N.Events.MANIFEST_PARSED,this.onManifestParsed,this),u.on(N.Events.LEVEL_LOADING,this.onLevelLoading,this),u.on(N.Events.LEVEL_LOADED,this.onLevelLoaded,this),u.on(N.Events.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),u.on(N.Events.ERROR,this.onError,this),u.on(N.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),u.on(N.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),u.on(N.Events.BUFFER_CREATED,this.onBufferCreated,this),u.on(N.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),u.on(N.Events.LEVELS_UPDATED,this.onLevelsUpdated,this),u.on(N.Events.FRAG_BUFFERED,this.onFragBuffered,this)},m._unregisterListeners=function(){var u=this.hls;u.off(N.Events.MEDIA_ATTACHED,this.onMediaAttached,this),u.off(N.Events.MEDIA_DETACHING,this.onMediaDetaching,this),u.off(N.Events.MANIFEST_LOADING,this.onManifestLoading,this),u.off(N.Events.MANIFEST_PARSED,this.onManifestParsed,this),u.off(N.Events.LEVEL_LOADED,this.onLevelLoaded,this),u.off(N.Events.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),u.off(N.Events.ERROR,this.onError,this),u.off(N.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),u.off(N.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),u.off(N.Events.BUFFER_CREATED,this.onBufferCreated,this),u.off(N.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),u.off(N.Events.LEVELS_UPDATED,this.onLevelsUpdated,this),u.off(N.Events.FRAG_BUFFERED,this.onFragBuffered,this)},m.onHandlerDestroying=function(){this._unregisterListeners(),this.onMediaDetaching()},m.startLoad=function(u){if(this.levels){var a=this.lastCurrentTime,l=this.hls;if(this.stopLoad(),this.setInterval(y),this.level=-1,this.fragLoadError=0,!this.startFragRequested){var h=l.startLevel;h===-1&&(l.config.testBandwidth?(h=0,this.bitrateTest=!0):h=l.nextAutoLevel),this.level=l.nextLoadLevel=h,this.loadedmetadata=!1}a>0&&u===-1&&(this.log("Override startPosition with lastCurrentTime @"+a.toFixed(3)),u=a),this.state=T.State.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=u,this.tick()}else this._forceStartLoad=!0,this.state=T.State.STOPPED},m.stopLoad=function(){this._forceStartLoad=!1,p.prototype.stopLoad.call(this)},m.doTick=function(){switch(this.state){case T.State.IDLE:this.doTickIdle();break;case T.State.WAITING_LEVEL:{var u,a=this.levels,l=this.level,h=a==null||((u=a[l])===null||u===void 0)?void 0:u.details;if(h&&(!h.live||this.levelLastLoaded===this.level)){if(this.waitForCdnTuneIn(h))break;this.state=T.State.IDLE;break}break}case T.State.FRAG_LOADING_WAITING_RETRY:{var d,b=self.performance.now(),w=this.retryDate;(!w||b>=w||(d=this.media)!==null&&d!==void 0&&d.seeking)&&(this.log("retryDate reached, switch back to IDLE state"),this.state=T.State.IDLE)}break;default:break}this.onTickEnd()},m.onTickEnd=function(){p.prototype.onTickEnd.call(this),this.checkBuffer(),this.checkFragmentChanged()},m.doTickIdle=function(){var u,a,l=this.hls,h=this.levelLastLoaded,d=this.levels,b=this.media,w=l.config,A=l.nextLoadLevel;if(h===null||!b&&(this.startFragRequested||!w.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;if(!d||!d[A])return;var P=d[A];this.level=l.nextLoadLevel=A;var S=P.details;if(!S||this.state===T.State.WAITING_LEVEL||S.live&&this.levelLastLoaded!==A){this.state=T.State.WAITING_LEVEL;return}var U=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:b,O.PlaylistLevelType.MAIN);if(U===null)return;var D=U.len,j=this.getMaxBufferLength(P.maxBitrate);if(D>=j)return;if(this._streamEnded(U,S)){var K={};this.altAudio&&(K.type="video"),this.hls.trigger(N.Events.BUFFER_EOS,K),this.state=T.State.ENDED;return}var Z=U.end,ne=this.getNextFragment(Z,S);if(this.couldBacktrack&&!this.fragPrevious&&ne&&ne.sn!=="initSegment"){var me=ne.sn-S.startSN;me>1&&(ne=S.fragments[me-1],this.fragmentTracker.removeFragment(ne))}if(ne&&this.fragmentTracker.getState(ne)===C.FragmentState.OK&&this.nextLoadPosition>Z){var he=this.audioOnly&&!this.altAudio?v.ElementaryStreamTypes.AUDIO:v.ElementaryStreamTypes.VIDEO;this.afterBufferFlushed(b,he,O.PlaylistLevelType.MAIN),ne=this.getNextFragment(this.nextLoadPosition,S)}if(!ne)return;ne.initSegment&&!ne.initSegment.data&&!this.bitrateTest&&(ne=ne.initSegment),((u=ne.decryptdata)===null||u===void 0?void 0:u.keyFormat)==="identity"&&!((a=ne.decryptdata)!==null&&a!==void 0&&a.key)?this.loadKey(ne,S):this.loadFragment(ne,S,Z)},m.loadFragment=function(u,a,l){var h,d=this.fragmentTracker.getState(u);if(this.fragCurrent=u,d===C.FragmentState.BACKTRACKED){var b=this.fragmentTracker.getBacktrackData(u);if(b){this._handleFragmentLoadProgress(b),this._handleFragmentLoadComplete(b);return}else d=C.FragmentState.NOT_LOADED}d===C.FragmentState.NOT_LOADED||d===C.FragmentState.PARTIAL?u.sn==="initSegment"?this._loadInitSegment(u):this.bitrateTest?(u.bitrateTest=!0,this.log("Fragment "+u.sn+" of level "+u.level+" is being downloaded to test bitrate and will not be buffered"),this._loadBitrateTestFrag(u)):(this.startFragRequested=!0,p.prototype.loadFragment.call(this,u,a,l)):d===C.FragmentState.APPENDING?this.reduceMaxBufferLength(u.duration)&&this.fragmentTracker.removeFragment(u):((h=this.media)===null||h===void 0?void 0:h.buffered.length)===0&&this.fragmentTracker.removeAllFragments()},m.getAppendedFrag=function(u){var a=this.fragmentTracker.getAppendedFrag(u,O.PlaylistLevelType.MAIN);return a&&"fragment"in a?a.fragment:a},m.getBufferedFrag=function(u){return this.fragmentTracker.getBufferedFrag(u,O.PlaylistLevelType.MAIN)},m.followingBufferedFrag=function(u){return u?this.getBufferedFrag(u.end+.5):null},m.immediateLevelSwitch=function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},m.nextLevelSwitch=function(){var u=this.levels,a=this.media;if(a!=null&&a.readyState){var l,h=this.getAppendedFrag(a.currentTime);if(h&&h.start>1&&this.flushMainBuffer(0,h.start-1),!a.paused&&u){var d=this.hls.nextLoadLevel,b=u[d],w=this.fragLastKbps;w&&this.fragCurrent?l=this.fragCurrent.duration*b.maxBitrate/(1e3*w)+1:l=0}else l=0;var A=this.getBufferedFrag(a.currentTime+l);if(A){var P=this.followingBufferedFrag(A);if(P){this.abortCurrentFrag();var S=P.maxStartPTS?P.maxStartPTS:P.start,U=P.duration,D=Math.max(A.end,S+Math.min(Math.max(U-this.config.maxFragLookUpTolerance,U*.5),U*.75));this.flushMainBuffer(D,Number.POSITIVE_INFINITY)}}}},m.abortCurrentFrag=function(){var u=this.fragCurrent;this.fragCurrent=null,u!=null&&u.loader&&u.loader.abort(),this.state===T.State.KEY_LOADING&&(this.state=T.State.IDLE),this.nextLoadPosition=this.getLoadPosition()},m.flushMainBuffer=function(u,a){p.prototype.flushMainBuffer.call(this,u,a,this.altAudio?"video":null)},m.onMediaAttached=function(u,a){p.prototype.onMediaAttached.call(this,u,a);var l=a.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),l.addEventListener("playing",this.onvplaying),l.addEventListener("seeked",this.onvseeked),this.gapController=new s.default(this.config,l,this.fragmentTracker,this.hls)},m.onMediaDetaching=function(){var u=this.media;u&&(u.removeEventListener("playing",this.onvplaying),u.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),p.prototype.onMediaDetaching.call(this)},m.onMediaPlaying=function(){this.tick()},m.onMediaSeeked=function(){var u=this.media,a=u?u.currentTime:null;Object(M.isFiniteNumber)(a)&&this.log("Media seeked to "+a.toFixed(3)),this.tick()},m.onManifestLoading=function(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(N.Events.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=this.stalled=!1,this.startPosition=this.lastCurrentTime=0,this.fragPlaying=null},m.onManifestParsed=function(u,a){var l=!1,h=!1,d;a.levels.forEach(function(b){d=b.audioCodec,d&&(d.indexOf("mp4a.40.2")!==-1&&(l=!0),d.indexOf("mp4a.40.5")!==-1&&(h=!0))}),this.audioCodecSwitch=l&&h&&!Object(x.changeTypeSupported)(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=a.levels,this.startFragRequested=!1},m.onLevelLoading=function(u,a){var l=this.levels;if(!l||this.state!==T.State.IDLE)return;var h=l[a.level];(!h.details||h.details.live&&this.levelLastLoaded!==a.level||this.waitForCdnTuneIn(h.details))&&(this.state=T.State.WAITING_LEVEL)},m.onLevelLoaded=function(u,a){var l,h=this.levels,d=a.level,b=a.details,w=b.totalduration;if(!h){this.warn("Levels were reset while loading level "+d);return}this.log("Level "+d+" loaded ["+b.startSN+","+b.endSN+"], cc ["+b.startCC+", "+b.endCC+"] duration:"+w);var A=this.fragCurrent;A&&(this.state===T.State.FRAG_LOADING||this.state===T.State.FRAG_LOADING_WAITING_RETRY)&&(A.level!==a.level&&A.loader&&(this.state=T.State.IDLE,A.loader.abort()));var P=h[d],S=0;if(b.live||(l=P.details)!==null&&l!==void 0&&l.live){if(b.fragments[0]||(b.deltaUpdateFailed=!0),b.deltaUpdateFailed)return;S=this.alignPlaylists(b,P.details)}if(P.details=b,this.levelLastLoaded=d,this.hls.trigger(N.Events.LEVEL_UPDATED,{details:b,level:d}),this.state===T.State.WAITING_LEVEL){if(this.waitForCdnTuneIn(b))return;this.state=T.State.IDLE}this.startFragRequested?b.live&&this.synchronizeToLiveEdge(b):this.setStartPosition(b,S),this.tick()},m._handleFragmentLoadProgress=function(u){var a,l=u.frag,h=u.part,d=u.payload,b=this.levels;if(!b){this.warn("Levels were reset while fragment load was in progress. Fragment "+l.sn+" of level "+l.level+" will not be buffered");return}var w=b[l.level],A=w.details;if(!A){this.warn("Dropping fragment "+l.sn+" of level "+l.level+" after level details were reset");return}var P=w.videoCodec,S=A.PTSKnown||!A.live,U=(a=l.initSegment)===null||a===void 0?void 0:a.data,D=this._getAudioCodec(w),j=this.transmuxer=this.transmuxer||new g.default(this.hls,O.PlaylistLevelType.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),K=h?h.index:-1,Z=K!==-1,ne=new c.ChunkMetadata(l.level,l.sn,l.stats.chunkCount,d.byteLength,K,Z),me=this.initPTS[l.cc];j.push(d,U,D,P,l,h,A.totalduration,S,ne,me)},m.onAudioTrackSwitching=function(u,a){var l=this.altAudio,h=!!a.url,d=a.id;if(!h){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var b=this.fragCurrent;b!=null&&b.loader&&(this.log("Switching to main audio track, cancel main fragment load"),b.loader.abort()),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();var w=this.hls;l&&w.trigger(N.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),w.trigger(N.Events.AUDIO_TRACK_SWITCHED,{id:d})}},m.onAudioTrackSwitched=function(u,a){var l=a.id,h=!!this.hls.audioTracks[l].url;if(h){var d=this.videoBuffer;d&&this.mediaBuffer!==d&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=d)}this.altAudio=h,this.tick()},m.onBufferCreated=function(u,a){var l=a.tracks,h,d,b=!1;for(var w in l){var A=l[w];if(A.id==="main"){if(d=w,h=A,w==="video"){var P=l[w];P&&(this.videoBuffer=P.buffer)}}else b=!0}b&&h?(this.log("Alternate track found, use "+d+".buffered to schedule main fragment loading"),this.mediaBuffer=h.buffer):this.mediaBuffer=this.media},m.onFragBuffered=function(u,a){var l=a.frag,h=a.part;if(l&&l.type!==O.PlaylistLevelType.MAIN)return;if(this.fragContextChanged(l)){this.warn("Fragment "+l.sn+(h?" p: "+h.index:"")+" of level "+l.level+" finished buffering, but was aborted. state: "+this.state),this.state===T.State.PARSED&&(this.state=T.State.IDLE);return}var d=h?h.stats:l.stats;this.fragLastKbps=Math.round(8*d.total/(d.buffering.end-d.loading.first)),l.sn!=="initSegment"&&(this.fragPrevious=l),this.fragBufferedComplete(l,h)},m.onError=function(u,a){switch(a.details){case n.ErrorDetails.FRAG_LOAD_ERROR:case n.ErrorDetails.FRAG_LOAD_TIMEOUT:case n.ErrorDetails.KEY_LOAD_ERROR:case n.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(O.PlaylistLevelType.MAIN,a);break;case n.ErrorDetails.LEVEL_LOAD_ERROR:case n.ErrorDetails.LEVEL_LOAD_TIMEOUT:this.state!==T.State.ERROR&&(a.fatal?(this.warn(""+a.details),this.state=T.State.ERROR):!a.levelRetry&&this.state===T.State.WAITING_LEVEL&&(this.state=T.State.IDLE));break;case n.ErrorDetails.BUFFER_FULL_ERROR:if(a.parent==="main"&&(this.state===T.State.PARSING||this.state===T.State.PARSED)){var l=!0,h=this.getFwdBufferInfo(this.media,O.PlaylistLevelType.MAIN);h&&h.len>.5&&(l=!this.reduceMaxBufferLength(h.len)),l&&(this.warn("buffer full error also media.currentTime is not buffered, flush main"),this.immediateLevelSwitch()),this.resetLoadingState()}break;default:break}},m.checkBuffer=function(){var u=this.media,a=this.gapController;if(!u||!a||!u.readyState)return;var l=L.BufferHelper.getBuffered(u);!this.loadedmetadata&&l.length?(this.loadedmetadata=!0,this.seekToStartPos()):a.poll(this.lastCurrentTime),this.lastCurrentTime=u.currentTime},m.onFragLoadEmergencyAborted=function(){this.state=T.State.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()},m.onBufferFlushed=function(u,a){var l=a.type;if(l!==v.ElementaryStreamTypes.AUDIO||this.audioOnly&&!this.altAudio){var h=(l===v.ElementaryStreamTypes.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(h,l,O.PlaylistLevelType.MAIN)}},m.onLevelsUpdated=function(u,a){this.levels=a.levels},m.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},m.seekToStartPos=function(){var u=this.media,a=u.currentTime,l=this.startPosition;if(l>=0&&a<l){if(u.seeking){i.logger.log("could not seek to "+l+", already seeking at "+a);return}var h=L.BufferHelper.getBuffered(u),d=h.length?h.start(0):0,b=d-l;b>0&&(b<this.config.maxBufferHole||b<this.config.maxFragLookUpTolerance)&&(i.logger.log("adjusting start position by "+b+" to match buffer start"),l+=b,this.startPosition=l),this.log("seek to target start position "+l+" from current time "+a),u.currentTime=l}},m._getAudioCodec=function(u){var a=this.config.defaultAudioCodec||u.audioCodec;return this.audioCodecSwap&&a&&(this.log("Swapping audio codec"),a.indexOf("mp4a.40.5")!==-1?a="mp4a.40.2":a="mp4a.40.5"),a},m._loadBitrateTestFrag=function(u){var a=this;this._doFragLoad(u).then(function(l){var h=a.hls;if(!l||h.nextLoadLevel||a.fragContextChanged(u))return;a.fragLoadError=0,a.state=T.State.IDLE,a.startFragRequested=!1,a.bitrateTest=!1;var d=u.stats;d.parsing.start=d.parsing.end=d.buffering.start=d.buffering.end=self.performance.now(),h.trigger(N.Events.FRAG_LOADED,l)})},m._handleTransmuxComplete=function(u){var a,l="main",h=this.hls,d=u.remuxResult,b=u.chunkMeta,w=this.getCurrentContext(b);if(!w){this.warn("The loading context changed while buffering fragment "+b.sn+" of level "+b.level+". This chunk will not be buffered."),this.resetLiveStartWhenNotLoaded(b.level);return}var A=w.frag,P=w.part,S=w.level,U=d.video,D=d.text,j=d.id3,K=d.initSegment,Z=this.altAudio?void 0:d.audio;if(this.fragContextChanged(A))return;if(this.state=T.State.PARSING,K){K.tracks&&(this._bufferInitSegment(S,K.tracks,A,b),h.trigger(N.Events.FRAG_PARSING_INIT_SEGMENT,{frag:A,id:l,tracks:K.tracks}));var ne=K.initPTS,me=K.timescale;Object(M.isFiniteNumber)(ne)&&(this.initPTS[A.cc]=ne,h.trigger(N.Events.INIT_PTS_FOUND,{frag:A,id:l,initPTS:ne,timescale:me}))}if(U&&d.independent!==!1){if(S.details){var he=U.startPTS,Y=U.endPTS,le=U.startDTS,ge=U.endDTS;if(P)P.elementaryStreams[U.type]={startPTS:he,endPTS:Y,startDTS:le,endDTS:ge};else if(U.firstKeyFrame&&U.independent&&(this.couldBacktrack=!0),U.dropped&&U.independent){var re=this.getLoadPosition()+this.config.maxBufferHole;if(re<he){this.backtrack(A);return}A.setElementaryStreamInfo(U.type,A.start,Y,A.start,ge,!0)}A.setElementaryStreamInfo(U.type,he,Y,le,ge),this.bufferFragmentData(U,A,P,b)}}else if(d.independent===!1){this.backtrack(A);return}if(Z){var te=Z.startPTS,be=Z.endPTS,ze=Z.startDTS,Ge=Z.endDTS;P&&(P.elementaryStreams[v.ElementaryStreamTypes.AUDIO]={startPTS:te,endPTS:be,startDTS:ze,endDTS:Ge}),A.setElementaryStreamInfo(v.ElementaryStreamTypes.AUDIO,te,be,ze,Ge),this.bufferFragmentData(Z,A,P,b)}if(j!=null&&(a=j.samples)!==null&&a!==void 0&&a.length){var Ue={frag:A,id:l,samples:j.samples};h.trigger(N.Events.FRAG_PARSING_METADATA,Ue)}if(D){var Ze={frag:A,id:l,samples:D.samples};h.trigger(N.Events.FRAG_PARSING_USERDATA,Ze)}},m._bufferInitSegment=function(u,a,l,h){var d=this;if(this.state!==T.State.PARSING)return;this.audioOnly=!!a.audio&&!a.video,this.altAudio&&!this.audioOnly&&delete a.audio;var b=a.audio,w=a.video,A=a.audiovideo;if(b){var P=u.audioCodec,S=navigator.userAgent.toLowerCase();this.audioCodecSwitch&&(P&&(P.indexOf("mp4a.40.5")!==-1?P="mp4a.40.2":P="mp4a.40.5"),b.metadata.channelCount!==1&&S.indexOf("firefox")===-1&&(P="mp4a.40.5")),S.indexOf("android")!==-1&&b.container!=="audio/mpeg"&&(P="mp4a.40.2",this.log("Android: force audio codec to "+P)),u.audioCodec&&u.audioCodec!==P&&this.log('Swapping manifest audio codec "'+u.audioCodec+'" for "'+P+'"'),b.levelCodec=P,b.id="main",this.log("Init audio buffer, container:"+b.container+", codecs[selected/level/parsed]=["+(P||"")+"/"+(u.audioCodec||"")+"/"+b.codec+"]")}w&&(w.levelCodec=u.videoCodec,w.id="main",this.log("Init video buffer, container:"+w.container+", codecs[level/parsed]=["+(u.videoCodec||"")+"/"+w.codec+"]")),A&&this.log("Init audiovideo buffer, container:"+A.container+", codecs[level/parsed]=["+(u.attrs.CODECS||"")+"/"+A.codec+"]"),this.hls.trigger(N.Events.BUFFER_CODECS,a),Object.keys(a).forEach(function(U){var D=a[U],j=D.initSegment;j!=null&&j.byteLength&&d.hls.trigger(N.Events.BUFFER_APPENDING,{type:U,data:j,frag:l,part:null,chunkMeta:h,parent:l.type})}),this.tick()},m.backtrack=function(u){this.couldBacktrack=!0,this.resetTransmuxer(),this.flushBufferGap(u);var a=this.fragmentTracker.backtrack(u);this.fragPrevious=null,this.nextLoadPosition=u.start,a?this.resetFragmentLoading(u):this.state=T.State.BACKTRACKING},m.checkFragmentChanged=function(){var u=this.media,a=null;if(u&&u.readyState>1&&u.seeking===!1){var l=u.currentTime;if(L.BufferHelper.isBuffered(u,l)?a=this.getAppendedFrag(l):L.BufferHelper.isBuffered(u,l+.1)&&(a=this.getAppendedFrag(l+.1)),a){var h=this.fragPlaying,d=a.level;(!h||a.sn!==h.sn||h.level!==d||a.urlId!==h.urlId)&&(this.hls.trigger(N.Events.FRAG_CHANGED,{frag:a}),(!h||h.level!==d)&&this.hls.trigger(N.Events.LEVEL_SWITCHED,{level:d}),this.fragPlaying=a)}}},e(E,[{key:"nextLevel",get:function(){var u=this.nextBufferedFrag;return u?u.level:-1}},{key:"currentLevel",get:function(){var u=this.media;if(u){var a=this.getAppendedFrag(u.currentTime);if(a)return a.level}return-1}},{key:"nextBufferedFrag",get:function(){var u=this.media;if(u){var a=this.getAppendedFrag(u.currentTime);return this.followingBufferedFrag(a)}else return null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}]),E}(T.default)},"./src/controller/subtitle-stream-controller.ts":function(q,I,R){"use strict";R.r(I),R.d(I,"SubtitleStreamController",function(){return t});var M=R("./src/events.ts"),T=R("./src/utils/logger.ts"),x=R("./src/utils/buffer-helper.ts"),N=R("./src/controller/fragment-finders.ts"),L=R("./src/utils/discontinuities.ts"),C=R("./src/controller/level-helper.ts"),O=R("./src/controller/fragment-tracker.ts"),v=R("./src/controller/base-stream-controller.ts"),g=R("./src/types/loader.ts"),c=R("./src/types/level.ts");function s(r,y){for(var _=0;_<y.length;_++){var p=y[_];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(r,p.key,p)}}function n(r,y,_){return y&&s(r.prototype,y),_&&s(r,_),r}function i(r,y){r.prototype=Object.create(y.prototype),r.prototype.constructor=r,o(r,y)}function o(r,y){return o=Object.setPrototypeOf||function(p,E){return p.__proto__=E,p},o(r,y)}var e=500,t=function(r){i(y,r);function y(p,E){var m;return m=r.call(this,p,E,"[subtitle-stream-controller]")||this,m.levels=[],m.currentTrackId=-1,m.tracksBuffered=[],m.mainDetails=null,m._registerListeners(),m}var _=y.prototype;return _.onHandlerDestroying=function(){this._unregisterListeners(),this.mainDetails=null},_._registerListeners=function(){var E=this.hls;E.on(M.Events.MEDIA_ATTACHED,this.onMediaAttached,this),E.on(M.Events.MEDIA_DETACHING,this.onMediaDetaching,this),E.on(M.Events.MANIFEST_LOADING,this.onManifestLoading,this),E.on(M.Events.LEVEL_LOADED,this.onLevelLoaded,this),E.on(M.Events.ERROR,this.onError,this),E.on(M.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),E.on(M.Events.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),E.on(M.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),E.on(M.Events.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),E.on(M.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},_._unregisterListeners=function(){var E=this.hls;E.off(M.Events.MEDIA_ATTACHED,this.onMediaAttached,this),E.off(M.Events.MEDIA_DETACHING,this.onMediaDetaching,this),E.off(M.Events.MANIFEST_LOADING,this.onManifestLoading,this),E.off(M.Events.LEVEL_LOADED,this.onLevelLoaded,this),E.off(M.Events.ERROR,this.onError,this),E.off(M.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),E.off(M.Events.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),E.off(M.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),E.off(M.Events.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),E.off(M.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},_.startLoad=function(){this.stopLoad(),this.state=v.State.IDLE,this.setInterval(e),this.tick()},_.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments()},_.onLevelLoaded=function(E,m){this.mainDetails=m.details},_.onSubtitleFragProcessed=function(E,m){var f=m.frag,u=m.success;if(this.fragPrevious=f,this.state=v.State.IDLE,!u)return;var a=this.tracksBuffered[this.currentTrackId];if(!a)return;for(var l,h=f.start,d=0;d<a.length;d++)if(h>=a[d].start&&h<=a[d].end){l=a[d];break}var b=f.start+f.duration;l?l.end=b:(l={start:h,end:b},a.push(l)),this.fragmentTracker.fragBuffered(f)},_.onBufferFlushing=function(E,m){var f=m.startOffset,u=m.endOffset;if(f===0&&u!==Number.POSITIVE_INFINITY){var a=this.currentTrackId,l=this.levels;if(!l.length||!l[a]||!l[a].details)return;var h=l[a].details,d=h.targetduration,b=u-d;if(b<=0)return;m.endOffsetSubtitles=Math.max(0,b),this.tracksBuffered.forEach(function(w){for(var A=0;A<w.length;){if(w[A].end<=b){w.shift();continue}else if(w[A].start<b)w[A].start=b;else break;A++}}),this.fragmentTracker.removeFragmentsInRange(f,b,g.PlaylistLevelType.SUBTITLE)}},_.onError=function(E,m){var f,u=m.frag;if(!u||u.type!==g.PlaylistLevelType.SUBTITLE)return;(f=this.fragCurrent)!==null&&f!==void 0&&f.loader&&this.fragCurrent.loader.abort(),this.state=v.State.IDLE},_.onSubtitleTracksUpdated=function(E,m){var f=this,u=m.subtitleTracks;this.tracksBuffered=[],this.levels=u.map(function(a){return new c.Level(a)}),this.fragmentTracker.removeAllFragments(),this.fragPrevious=null,this.levels.forEach(function(a){f.tracksBuffered[a.id]=[]}),this.mediaBuffer=null},_.onSubtitleTrackSwitch=function(E,m){if(this.currentTrackId=m.id,!this.levels.length||this.currentTrackId===-1){this.clearInterval();return}var f=this.levels[this.currentTrackId];f!=null&&f.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,f&&this.setInterval(e)},_.onSubtitleTrackLoaded=function(E,m){var f,u=m.details,a=m.id,l=this.currentTrackId,h=this.levels;if(!h.length)return;var d=h[l];if(a>=h.length||a!==l||!d)return;if(this.mediaBuffer=this.mediaBufferTimeRanges,u.live||(f=d.details)!==null&&f!==void 0&&f.live){var b=this.mainDetails;if(u.deltaUpdateFailed||!b)return;var w=b.fragments[0];if(!d.details)u.hasProgramDateTime&&b.hasProgramDateTime?Object(L.alignMediaPlaylistByPDT)(u,b):w&&Object(C.addSliding)(u,w.start);else{var A=this.alignPlaylists(u,d.details);A===0&&w&&Object(C.addSliding)(u,w.start)}}if(d.details=u,this.levelLastLoaded=a,this.tick(),u.live&&!this.fragCurrent&&this.media&&this.state===v.State.IDLE){var P=Object(N.findFragmentByPTS)(null,u.fragments,this.media.currentTime,0);P||(this.warn("Subtitle playlist not aligned with playback"),d.details=void 0)}},_._handleFragmentLoadComplete=function(E){var m=E.frag,f=E.payload,u=m.decryptdata,a=this.hls;if(this.fragContextChanged(m))return;if(f&&f.byteLength>0&&u&&u.key&&u.iv&&u.method==="AES-128"){var l=performance.now();this.decrypter.webCryptoDecrypt(new Uint8Array(f),u.key.buffer,u.iv.buffer).then(function(h){var d=performance.now();a.trigger(M.Events.FRAG_DECRYPTED,{frag:m,payload:h,stats:{tstart:l,tdecrypt:d}})})}},_.doTick=function(){if(!this.media){this.state=v.State.IDLE;return}if(this.state===v.State.IDLE){var E,m=this.currentTrackId,f=this.levels;if(!f.length||!f[m]||!f[m].details)return;var u=f[m].details,a=u.targetduration,l=this.config,h=this.media,d=x.BufferHelper.bufferedInfo(this.mediaBufferTimeRanges,h.currentTime-a,l.maxBufferHole),b=d.end,w=d.len,A=this.getMaxBufferLength()+a;if(w>A)return;console.assert(u,"Subtitle track details are defined on idle subtitle stream controller tick");var P=u.fragments,S=P.length,U=u.edge,D,j=this.fragPrevious;if(b<U){var K=l.maxFragLookUpTolerance;j&&u.hasProgramDateTime&&(D=Object(N.findFragmentByPDT)(P,j.endProgramDateTime,K)),D||(D=Object(N.findFragmentByPTS)(j,P,b,K),!D&&j&&j.start<P[0].start&&(D=P[0]))}else D=P[S-1];(E=D)!==null&&E!==void 0&&E.encrypted?(T.logger.log("Loading key for "+D.sn),this.state=v.State.KEY_LOADING,this.hls.trigger(M.Events.KEY_LOADING,{frag:D})):D&&this.fragmentTracker.getState(D)===O.FragmentState.NOT_LOADED&&this.loadFragment(D,u,b)}},_.loadFragment=function(E,m,f){this.fragCurrent=E,r.prototype.loadFragment.call(this,E,m,f)},n(y,[{key:"mediaBufferTimeRanges",get:function(){return this.tracksBuffered[this.currentTrackId]||[]}}]),y}(v.default)},"./src/controller/subtitle-track-controller.ts":function(q,I,R){"use strict";R.r(I);var M=R("./src/events.ts"),T=R("./src/utils/texttrack-utils.ts"),x=R("./src/controller/base-playlist-controller.ts"),N=R("./src/types/loader.ts");function L(s,n){for(var i=0;i<n.length;i++){var o=n[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(s,o.key,o)}}function C(s,n,i){return n&&L(s.prototype,n),i&&L(s,i),s}function O(s,n){s.prototype=Object.create(n.prototype),s.prototype.constructor=s,v(s,n)}function v(s,n){return v=Object.setPrototypeOf||function(o,e){return o.__proto__=e,o},v(s,n)}var g=function(s){O(n,s);function n(o){var e;return e=s.call(this,o,"[subtitle-track-controller]")||this,e.media=null,e.tracks=[],e.groupId=null,e.tracksInGroup=[],e.trackId=-1,e.selectDefaultTrack=!0,e.queuedDefaultTrack=-1,e.trackChangeListener=function(){return e.onTextTracksChanged()},e.asyncPollTrackChange=function(){return e.pollTrackChange(0)},e.useTextTrackPolling=!1,e.subtitlePollingInterval=-1,e.subtitleDisplay=!0,e.registerListeners(),e}var i=n.prototype;return i.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.trackChangeListener=this.asyncPollTrackChange=null,s.prototype.destroy.call(this)},i.registerListeners=function(){var e=this.hls;e.on(M.Events.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(M.Events.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(M.Events.MANIFEST_LOADING,this.onManifestLoading,this),e.on(M.Events.MANIFEST_PARSED,this.onManifestParsed,this),e.on(M.Events.LEVEL_LOADING,this.onLevelLoading,this),e.on(M.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(M.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(M.Events.ERROR,this.onError,this)},i.unregisterListeners=function(){var e=this.hls;e.off(M.Events.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(M.Events.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(M.Events.MANIFEST_LOADING,this.onManifestLoading,this),e.off(M.Events.MANIFEST_PARSED,this.onManifestParsed,this),e.off(M.Events.LEVEL_LOADING,this.onLevelLoading,this),e.off(M.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(M.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(M.Events.ERROR,this.onError,this)},i.onMediaAttached=function(e,t){if(this.media=t.media,!this.media)return;this.queuedDefaultTrack>-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange)},i.pollTrackChange=function(e){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.trackChangeListener,e)},i.onMediaDetaching=function(){if(!this.media)return;self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||this.media.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId);var e=c(this.media.textTracks);e.forEach(function(t){Object(T.clearCurrentCues)(t)}),this.subtitleTrack=-1,this.media=null},i.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.selectDefaultTrack=!0},i.onManifestParsed=function(e,t){this.tracks=t.subtitleTracks},i.onSubtitleTrackLoaded=function(e,t){var r=t.id,y=t.details,_=this.trackId,p=this.tracksInGroup[_];if(!p){this.warn("Invalid subtitle track id "+r);return}var E=p.details;p.details=t.details,this.log("subtitle track "+r+" loaded ["+y.startSN+"-"+y.endSN+"]"),r===this.trackId&&(this.retryCount=0,this.playlistLoaded(r,t,E))},i.onLevelLoading=function(e,t){this.switchLevel(t.level)},i.onLevelSwitching=function(e,t){this.switchLevel(t.level)},i.switchLevel=function(e){var t=this.hls.levels[e];if(!(t!=null&&t.textGroupIds))return;var r=t.textGroupIds[t.urlId];if(this.groupId!==r){var y=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0,_=this.tracks.filter(function(m){return!r||m.groupId===r});this.tracksInGroup=_;var p=this.findTrackId(y==null?void 0:y.name)||this.findTrackId();this.groupId=r;var E={subtitleTracks:_};this.log("Updating subtitle tracks, "+_.length+' track(s) found in "'+r+'" group-id'),this.hls.trigger(M.Events.SUBTITLE_TRACKS_UPDATED,E),p!==-1&&this.setSubtitleTrack(p,y)}},i.findTrackId=function(e){for(var t=this.tracksInGroup,r=0;r<t.length;r++){var y=t[r];if((!this.selectDefaultTrack||y.default)&&(!e||e===y.name))return y.id}return-1},i.onError=function(e,t){if(s.prototype.onError.call(this,e,t),t.fatal||!t.context)return;t.context.type===N.PlaylistContextType.SUBTITLE_TRACK&&t.context.id===this.trackId&&t.context.groupId===this.groupId&&this.retryLoadingOrFail(t)},i.loadPlaylist=function(e){var t=this.tracksInGroup[this.trackId];if(this.shouldLoadTrack(t)){var r=t.id,y=t.groupId,_=t.url;if(e)try{_=e.addDirectives(_)}catch(p){this.warn("Could not construct new URL with HLS Delivery Directives: "+p)}this.log("Loading subtitle playlist for id "+r),this.hls.trigger(M.Events.SUBTITLE_TRACK_LOADING,{url:_,id:r,groupId:y,deliveryDirectives:e||null})}},i.toggleTrackModes=function(e){var t=this,r=this.media,y=this.subtitleDisplay,_=this.trackId;if(!r)return;var p=c(r.textTracks),E=p.filter(function(u){return u.groupId===t.groupId});if(e===-1)[].slice.call(p).forEach(function(u){u.mode="disabled"});else{var m=E[_];m&&(m.mode="disabled")}var f=E[e];f&&(f.mode=y?"showing":"hidden")},i.setSubtitleTrack=function(e,t){var r,y=this.tracksInGroup;if(!this.media){this.queuedDefaultTrack=e;return}if(this.trackId!==e&&this.toggleTrackModes(e),this.trackId===e&&(e===-1||(r=y[e])!==null&&r!==void 0&&r.details)||e<-1||e>=y.length)return;this.clearTimer();var _=y[e];if(this.log("Switching to subtitle track "+e),this.trackId=e,_){var p=_.id,E=_.groupId,m=E===void 0?"":E,f=_.name,u=_.type,a=_.url;this.hls.trigger(M.Events.SUBTITLE_TRACK_SWITCH,{id:p,groupId:m,name:f,type:u,url:a});var l=this.switchParams(_.url,t==null?void 0:t.details);this.loadPlaylist(l)}else this.hls.trigger(M.Events.SUBTITLE_TRACK_SWITCH,{id:e})},i.onTextTracksChanged=function(){if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;for(var e=-1,t=c(this.media.textTracks),r=0;r<t.length;r++)if(t[r].mode==="hidden")e=r;else if(t[r].mode==="showing"){e=r;break}this.subtitleTrack!==e&&(this.subtitleTrack=e)},C(n,[{key:"subtitleTracks",get:function(){return this.tracksInGroup}},{key:"subtitleTrack",get:function(){return this.trackId},set:function(e){this.selectDefaultTrack=!1;var t=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0;this.setSubtitleTrack(e,t)}}]),n}(x.default);function c(s){for(var n=[],i=0;i<s.length;i++){var o=s[i];o.kind==="subtitles"&&o.label&&n.push(s[i])}return n}I.default=g},"./src/controller/timeline-controller.ts":function(q,I,R){"use strict";R.r(I),R.d(I,"TimelineController",function(){return c});var M=R("./src/polyfills/number.ts"),T=R("./src/events.ts"),x=R("./src/utils/cea-608-parser.ts"),N=R("./src/utils/output-filter.ts"),L=R("./src/utils/webvtt-parser.ts"),C=R("./src/utils/texttrack-utils.ts"),O=R("./src/utils/imsc1-ttml-parser.ts"),v=R("./src/types/loader.ts"),g=R("./src/utils/logger.ts"),c=function(){function o(t){if(this.hls=void 0,this.media=null,this.config=void 0,this.enabled=!0,this.Cues=void 0,this.textTracks=[],this.tracks=[],this.initPTS=[],this.timescale=[],this.unparsedVttFrags=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.cea608Parser1=void 0,this.cea608Parser2=void 0,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=i(),this.captionsProperties=void 0,this.hls=t,this.config=t.config,this.Cues=t.config.cueHandler,this.captionsProperties={textTrack1:{label:this.config.captionsTextTrack1Label,languageCode:this.config.captionsTextTrack1LanguageCode},textTrack2:{label:this.config.captionsTextTrack2Label,languageCode:this.config.captionsTextTrack2LanguageCode},textTrack3:{label:this.config.captionsTextTrack3Label,languageCode:this.config.captionsTextTrack3LanguageCode},textTrack4:{label:this.config.captionsTextTrack4Label,languageCode:this.config.captionsTextTrack4LanguageCode}},this.config.enableCEA708Captions){var r=new N.default(this,"textTrack1"),y=new N.default(this,"textTrack2"),_=new N.default(this,"textTrack3"),p=new N.default(this,"textTrack4");this.cea608Parser1=new x.default(1,r,y),this.cea608Parser2=new x.default(3,_,p)}t.on(T.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(T.Events.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(T.Events.MANIFEST_LOADING,this.onManifestLoading,this),t.on(T.Events.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(T.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.on(T.Events.FRAG_LOADING,this.onFragLoading,this),t.on(T.Events.FRAG_LOADED,this.onFragLoaded,this),t.on(T.Events.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),t.on(T.Events.FRAG_DECRYPTED,this.onFragDecrypted,this),t.on(T.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),t.on(T.Events.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),t.on(T.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)}var e=o.prototype;return e.destroy=function(){var r=this.hls;r.off(T.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),r.off(T.Events.MEDIA_DETACHING,this.onMediaDetaching,this),r.off(T.Events.MANIFEST_LOADING,this.onManifestLoading,this),r.off(T.Events.MANIFEST_LOADED,this.onManifestLoaded,this),r.off(T.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),r.off(T.Events.FRAG_LOADING,this.onFragLoading,this),r.off(T.Events.FRAG_LOADED,this.onFragLoaded,this),r.off(T.Events.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),r.off(T.Events.FRAG_DECRYPTED,this.onFragDecrypted,this),r.off(T.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),r.off(T.Events.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),r.off(T.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.cea608Parser1=this.cea608Parser2=null},e.addCues=function(r,y,_,p,E){for(var m=!1,f=E.length;f--;){var u=E[f],a=n(u[0],u[1],y,_);if(a>=0&&(u[0]=Math.min(u[0],y),u[1]=Math.max(u[1],_),m=!0,a/(_-y)>.5))return}if(m||E.push([y,_]),this.config.renderTextTracksNatively){var l=this.captionsTracks[r];this.Cues.newCue(l,y,_,p)}else{var h=this.Cues.newCue(null,y,_,p);this.hls.trigger(T.Events.CUES_PARSED,{type:"captions",cues:h,track:r})}},e.onInitPtsFound=function(r,y){var _=this,p=y.frag,E=y.id,m=y.initPTS,f=y.timescale,u=this.unparsedVttFrags;E==="main"&&(this.initPTS[p.cc]=m,this.timescale[p.cc]=f),u.length&&(this.unparsedVttFrags=[],u.forEach(function(a){_.onFragLoaded(T.Events.FRAG_LOADED,a)}))},e.getExistingTrack=function(r){var y=this.media;if(y)for(var _=0;_<y.textTracks.length;_++){var p=y.textTracks[_];if(p[r])return p}return null},e.createCaptionsTrack=function(r){this.config.renderTextTracksNatively?this.createNativeTrack(r):this.createNonNativeTrack(r)},e.createNativeTrack=function(r){if(this.captionsTracks[r])return;var y=this.captionsProperties,_=this.captionsTracks,p=this.media,E=y[r],m=E.label,f=E.languageCode,u=this.getExistingTrack(r);if(u)_[r]=u,Object(C.clearCurrentCues)(_[r]),Object(C.sendAddTrackEvent)(_[r],p);else{var a=this.createTextTrack("captions",m,f);a&&(a[r]=!0,_[r]=a)}},e.createNonNativeTrack=function(r){if(this.nonNativeCaptionsTracks[r])return;var y=this.captionsProperties[r];if(!y)return;var _=y.label,p={_id:r,label:_,kind:"captions",default:y.media?!!y.media.default:!1,closedCaptions:y.media};this.nonNativeCaptionsTracks[r]=p,this.hls.trigger(T.Events.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[p]})},e.createTextTrack=function(r,y,_){var p=this.media;return p?p.addTextTrack(r,y,_):void 0},e.onMediaAttaching=function(r,y){this.media=y.media,this._cleanTracks()},e.onMediaDetaching=function(){var r=this.captionsTracks;Object.keys(r).forEach(function(y){Object(C.clearCurrentCues)(r[y]),delete r[y]}),this.nonNativeCaptionsTracks={}},e.onManifestLoading=function(){this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=i(),this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.textTracks=[],this.unparsedVttFrags=this.unparsedVttFrags||[],this.initPTS=[],this.timescale=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset())},e._cleanTracks=function(){var r=this.media;if(!r)return;var y=r.textTracks;if(y)for(var _=0;_<y.length;_++)Object(C.clearCurrentCues)(y[_])},e.onSubtitleTracksUpdated=function(r,y){var _=this;this.textTracks=[];var p=y.subtitleTracks||[],E=p.some(function(a){return a.textCodec===O.IMSC1_CODEC});if(this.config.enableWebVTT||E&&this.config.enableIMSC1){var m=this.tracks&&p&&this.tracks.length===p.length;if(this.tracks=p||[],this.config.renderTextTracksNatively){var f=this.media?this.media.textTracks:[];this.tracks.forEach(function(a,l){var h;if(l<f.length){for(var d=null,b=0;b<f.length;b++)if(s(f[b],a)){d=f[b];break}d&&(h=d)}h?Object(C.clearCurrentCues)(h):(h=_.createTextTrack("subtitles",a.name,a.lang),h&&(h.mode="disabled")),h&&(h.groupId=a.groupId,_.textTracks.push(h))})}else if(!m&&this.tracks&&this.tracks.length){var u=this.tracks.map(function(a){return{label:a.name,kind:a.type.toLowerCase(),default:a.default,subtitleTrack:a}});this.hls.trigger(T.Events.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:u})}}},e.onManifestLoaded=function(r,y){var _=this;this.config.enableCEA708Captions&&y.captions&&y.captions.forEach(function(p){var E=/(?:CC|SERVICE)([1-4])/.exec(p.instreamId);if(!E)return;var m="textTrack"+E[1],f=_.captionsProperties[m];if(!f)return;f.label=p.name,p.lang&&(f.languageCode=p.lang),f.media=p})},e.onFragLoading=function(r,y){var _=this.cea608Parser1,p=this.cea608Parser2,E=this.lastSn,m=this.lastPartIndex;if(!this.enabled||!(_&&p))return;if(y.frag.type===v.PlaylistLevelType.MAIN){var f,u,a=y.frag.sn,l=(f=y==null||((u=y.part)===null||u===void 0)?void 0:u.index)!=null?f:-1;a===E+1||a===E&&l===m+1||(_.reset(),p.reset()),this.lastSn=a,this.lastPartIndex=l}},e.onFragLoaded=function(r,y){var _=y.frag,p=y.payload,E=this.initPTS,m=this.unparsedVttFrags;if(_.type===v.PlaylistLevelType.SUBTITLE)if(p.byteLength){if(!Object(M.isFiniteNumber)(E[_.cc])){m.push(y),E.length&&this.hls.trigger(T.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:_,error:new Error("Missing initial subtitle PTS")});return}var f=_.decryptdata;if(f==null||f.key==null||f.method!=="AES-128"){var u=this.tracks[_.level],a=this.vttCCs;a[_.cc]||(a[_.cc]={start:_.start,prevCC:this.prevCC,new:!0},this.prevCC=_.cc),u&&u.textCodec===O.IMSC1_CODEC?this._parseIMSC1(_,p):this._parseVTTs(_,p,a)}}else this.hls.trigger(T.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:_,error:new Error("Empty subtitle payload")})},e._parseIMSC1=function(r,y){var _=this,p=this.hls;Object(O.parseIMSC1)(y,this.initPTS[r.cc],this.timescale[r.cc],function(E){_._appendCues(E,r.level),p.trigger(T.Events.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:r})},function(E){g.logger.log("Failed to parse IMSC1: "+E),p.trigger(T.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:r,error:E})})},e._parseVTTs=function(r,y,_){var p=this,E=this.hls;Object(L.parseWebVTT)(y,this.initPTS[r.cc],this.timescale[r.cc],_,r.cc,r.start,function(m){p._appendCues(m,r.level),E.trigger(T.Events.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:r})},function(m){p._fallbackToIMSC1(r,y),g.logger.log("Failed to parse VTT cue: "+m),E.trigger(T.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:r,error:m})})},e._fallbackToIMSC1=function(r,y){var _=this,p=this.tracks[r.level];p.textCodec||Object(O.parseIMSC1)(y,this.initPTS[r.cc],this.timescale[r.cc],function(){p.textCodec=O.IMSC1_CODEC,_._parseIMSC1(r,y)},function(){p.textCodec="wvtt"})},e._appendCues=function(r,y){var _=this.hls;if(this.config.renderTextTracksNatively){var p=this.textTracks[y];if(p.mode==="disabled")return;r.forEach(function(f){return Object(C.addCueToTrack)(p,f)})}else{var E=this.tracks[y],m=E.default?"default":"subtitles"+y;_.trigger(T.Events.CUES_PARSED,{type:"subtitles",cues:r,track:m})}},e.onFragDecrypted=function(r,y){var _=y.frag;if(_.type===v.PlaylistLevelType.SUBTITLE){if(!Object(M.isFiniteNumber)(this.initPTS[_.cc])){this.unparsedVttFrags.push(y);return}this.onFragLoaded(T.Events.FRAG_LOADED,y)}},e.onSubtitleTracksCleared=function(){this.tracks=[],this.captionsTracks={}},e.onFragParsingUserdata=function(r,y){var _=this.cea608Parser1,p=this.cea608Parser2;if(!this.enabled||!(_&&p))return;for(var E=0;E<y.samples.length;E++){var m=y.samples[E].bytes;if(m){var f=this.extractCea608Data(m);_.addData(y.samples[E].pts,f[0]),p.addData(y.samples[E].pts,f[1])}}},e.onBufferFlushing=function(r,y){var _=y.startOffset,p=y.endOffset,E=y.endOffsetSubtitles,m=y.type,f=this.media;if(!f||f.currentTime<p)return;if(!m||m==="video"){var u=this.captionsTracks;Object.keys(u).forEach(function(l){return Object(C.removeCuesInRange)(u[l],_,p)})}if(this.config.renderTextTracksNatively&&(_===0&&E!==void 0)){var a=this.textTracks;Object.keys(a).forEach(function(l){return Object(C.removeCuesInRange)(a[l],_,E)})}},e.extractCea608Data=function(r){for(var y=r[0]&31,_=2,p=[[],[]],E=0;E<y;E++){var m=r[_++],f=127&r[_++],u=127&r[_++],a=(4&m)!==0,l=3&m;if(f===0&&u===0)continue;a&&((l===0||l===1)&&(p[l].push(f),p[l].push(u)))}return p},o}();function s(o,e){return o&&o.label===e.name&&!(o.textTrack1||o.textTrack2)}function n(o,e,t,r){return Math.min(e,r)-Math.max(o,t)}function i(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!1}}}},"./src/crypt/aes-crypto.ts":function(q,I,R){"use strict";R.r(I),R.d(I,"default",function(){return M});var M=function(){function T(N,L){this.subtle=void 0,this.aesIV=void 0,this.subtle=N,this.aesIV=L}var x=T.prototype;return x.decrypt=function(L,C){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},C,L)},T}()},"./src/crypt/aes-decryptor.ts":function(q,I,R){"use strict";R.r(I),R.d(I,"removePadding",function(){return T}),R.d(I,"default",function(){return x});var M=R("./src/utils/typed-array.ts");function T(N){var L=N.byteLength,C=L&&new DataView(N.buffer).getUint8(L-1);return C?Object(M.sliceUint8)(N,0,L-C):N}var x=function(){function N(){this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.ksRows=0,this.keySize=0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.initTable()}var L=N.prototype;return L.uint8ArrayToUint32Array_=function(O){for(var v=new DataView(O),g=new Uint32Array(4),c=0;c<4;c++)g[c]=v.getUint32(c*4);return g},L.initTable=function(){var O=this.sBox,v=this.invSBox,g=this.subMix,c=g[0],s=g[1],n=g[2],i=g[3],o=this.invSubMix,e=o[0],t=o[1],r=o[2],y=o[3],_=new Uint32Array(256),p=0,E=0,m=0;for(m=0;m<256;m++)m<128?_[m]=m<<1:_[m]=m<<1^283;for(m=0;m<256;m++){var f=E^E<<1^E<<2^E<<3^E<<4;f=f>>>8^f&255^99,O[p]=f,v[f]=p;var u=_[p],a=_[u],l=_[a],h=_[f]*257^f*16843008;c[p]=h<<24|h>>>8,s[p]=h<<16|h>>>16,n[p]=h<<8|h>>>24,i[p]=h,h=l*16843009^a*65537^u*257^p*16843008,e[f]=h<<24|h>>>8,t[f]=h<<16|h>>>16,r[f]=h<<8|h>>>24,y[f]=h,p?(p=u^_[_[_[l^u]]],E^=_[_[E]]):p=E=1}},L.expandKey=function(O){for(var v=this.uint8ArrayToUint32Array_(O),g=!0,c=0;c<v.length&&g;)g=v[c]===this.key[c],c++;if(g)return;this.key=v;var s=this.keySize=v.length;if(s!==4&&s!==6&&s!==8)throw new Error("Invalid aes key size="+s);var n=this.ksRows=(s+6+1)*4,i,o,e=this.keySchedule=new Uint32Array(n),t=this.invKeySchedule=new Uint32Array(n),r=this.sBox,y=this.rcon,_=this.invSubMix,p=_[0],E=_[1],m=_[2],f=_[3],u,a;for(i=0;i<n;i++){if(i<s){u=e[i]=v[i];continue}a=u,i%s===0?(a=a<<8|a>>>24,a=r[a>>>24]<<24|r[a>>>16&255]<<16|r[a>>>8&255]<<8|r[a&255],a^=y[i/s|0]<<24):s>6&&i%s===4&&(a=r[a>>>24]<<24|r[a>>>16&255]<<16|r[a>>>8&255]<<8|r[a&255]),e[i]=u=(e[i-s]^a)>>>0}for(o=0;o<n;o++)i=n-o,o&3?a=e[i]:a=e[i-4],o<4||i<=4?t[o]=a:t[o]=p[r[a>>>24]]^E[r[a>>>16&255]]^m[r[a>>>8&255]]^f[r[a&255]],t[o]=t[o]>>>0},L.networkToHostOrderSwap=function(O){return O<<24|(O&65280)<<8|(O&16711680)>>8|O>>>24},L.decrypt=function(O,v,g){for(var c=this.keySize+6,s=this.invKeySchedule,n=this.invSBox,i=this.invSubMix,o=i[0],e=i[1],t=i[2],r=i[3],y=this.uint8ArrayToUint32Array_(g),_=y[0],p=y[1],E=y[2],m=y[3],f=new Int32Array(O),u=new Int32Array(f.length),a,l,h,d,b,w,A,P,S,U,D,j,K,Z,ne=this.networkToHostOrderSwap;v<f.length;){for(S=ne(f[v]),U=ne(f[v+1]),D=ne(f[v+2]),j=ne(f[v+3]),b=S^s[0],w=j^s[1],A=D^s[2],P=U^s[3],K=4,Z=1;Z<c;Z++)a=o[b>>>24]^e[w>>16&255]^t[A>>8&255]^r[P&255]^s[K],l=o[w>>>24]^e[A>>16&255]^t[P>>8&255]^r[b&255]^s[K+1],h=o[A>>>24]^e[P>>16&255]^t[b>>8&255]^r[w&255]^s[K+2],d=o[P>>>24]^e[b>>16&255]^t[w>>8&255]^r[A&255]^s[K+3],b=a,w=l,A=h,P=d,K=K+4;a=n[b>>>24]<<24^n[w>>16&255]<<16^n[A>>8&255]<<8^n[P&255]^s[K],l=n[w>>>24]<<24^n[A>>16&255]<<16^n[P>>8&255]<<8^n[b&255]^s[K+1],h=n[A>>>24]<<24^n[P>>16&255]<<16^n[b>>8&255]<<8^n[w&255]^s[K+2],d=n[P>>>24]<<24^n[b>>16&255]<<16^n[w>>8&255]<<8^n[A&255]^s[K+3],u[v]=ne(a^_),u[v+1]=ne(d^p),u[v+2]=ne(h^E),u[v+3]=ne(l^m),_=S,p=U,E=D,m=j,v=v+4}return u.buffer},N}()},"./src/crypt/decrypter.ts":function(q,I,R){"use strict";R.r(I),R.d(I,"default",function(){return v});var M=R("./src/crypt/aes-crypto.ts"),T=R("./src/crypt/fast-aes-key.ts"),x=R("./src/crypt/aes-decryptor.ts"),N=R("./src/utils/logger.ts"),L=R("./src/utils/mp4-tools.ts"),C=R("./src/utils/typed-array.ts"),O=16,v=function(){function g(s,n,i){var o=i===void 0?{}:i,e=o.removePKCS7Padding,t=e===void 0?!0:e;if(this.logEnabled=!0,this.observer=void 0,this.config=void 0,this.removePKCS7Padding=void 0,this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null,this.observer=s,this.config=n,this.removePKCS7Padding=t,t)try{var r=self.crypto;r&&(this.subtle=r.subtle||r.webkitSubtle)}catch(y){}this.subtle===null&&(this.config.enableSoftwareAES=!0)}var c=g.prototype;return c.destroy=function(){this.observer=null},c.isSync=function(){return this.config.enableSoftwareAES},c.flush=function(){var n=this.currentResult;if(!n){this.reset();return}var i=new Uint8Array(n);return this.reset(),this.removePKCS7Padding?Object(x.removePadding)(i):i},c.reset=function(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)},c.decrypt=function(n,i,o,e){if(this.config.enableSoftwareAES){this.softwareDecrypt(new Uint8Array(n),i,o);var t=this.flush();t&&e(t.buffer)}else this.webCryptoDecrypt(new Uint8Array(n),i,o).then(e)},c.softwareDecrypt=function(n,i,o){var e=this.currentIV,t=this.currentResult,r=this.remainderData;this.logOnce("JS AES decrypt"),r&&(n=Object(L.appendUint8Array)(r,n),this.remainderData=null);var y=this.getValidChunk(n);if(!y.length)return null;e&&(o=e);var _=this.softwareDecrypter;_||(_=this.softwareDecrypter=new x.default),_.expandKey(i);var p=t;return this.currentResult=_.decrypt(y.buffer,0,o),this.currentIV=Object(C.sliceUint8)(y,-16).buffer,p||null},c.webCryptoDecrypt=function(n,i,o){var e=this,t=this.subtle;return(this.key!==i||!this.fastAesKey)&&(this.key=i,this.fastAesKey=new T.default(t,i)),this.fastAesKey.expandKey().then(function(r){if(!t)return Promise.reject(new Error("web crypto not initialized"));var y=new M.default(t,o);return y.decrypt(n.buffer,r)}).catch(function(r){return e.onWebCryptoError(r,n,i,o)})},c.onWebCryptoError=function(n,i,o,e){return N.logger.warn("[decrypter.ts]: WebCrypto Error, disable WebCrypto API:",n),this.config.enableSoftwareAES=!0,this.logEnabled=!0,this.softwareDecrypt(i,o,e)},c.getValidChunk=function(n){var i=n,o=n.length-n.length%O;return o!==n.length&&(i=Object(C.sliceUint8)(n,0,o),this.remainderData=Object(C.sliceUint8)(n,o)),i},c.logOnce=function(n){if(!this.logEnabled)return;N.logger.log("[decrypter.ts]: "+n),this.logEnabled=!1},g}()},"./src/crypt/fast-aes-key.ts":function(q,I,R){"use strict";R.r(I),R.d(I,"default",function(){return M});var M=function(){function T(N,L){this.subtle=void 0,this.key=void 0,this.subtle=N,this.key=L}var x=T.prototype;return x.expandKey=function(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])},T}()},"./src/demux/aacdemuxer.ts":function(q,I,R){"use strict";R.r(I);var M=R("./src/demux/base-audio-demuxer.ts"),T=R("./src/demux/adts.ts"),x=R("./src/utils/logger.ts"),N=R("./src/demux/id3.ts");function L(v,g){v.prototype=Object.create(g.prototype),v.prototype.constructor=v,C(v,g)}function C(v,g){return C=Object.setPrototypeOf||function(s,n){return s.__proto__=n,s},C(v,g)}var O=function(v){L(g,v);function g(s,n){var i;return i=v.call(this)||this,i.observer=void 0,i.config=void 0,i.observer=s,i.config=n,i}var c=g.prototype;return c.resetInitSegment=function(n,i,o){v.prototype.resetInitSegment.call(this,n,i,o),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!0,samples:[],manifestCodec:n,duration:o,inputTimeScale:9e4,dropped:0}},g.probe=function(n){if(!n)return!1;for(var i=N.getID3Data(n,0)||[],o=i.length,e=n.length;o<e;o++)if(T.probe(n,o))return x.logger.log("ADTS sync word found !"),!0;return!1},c.canParse=function(n,i){return T.canParse(n,i)},c.appendFrame=function(n,i,o){T.initTrackConfig(n,this.observer,i,o,n.manifestCodec);var e=T.appendFrame(n,i,o,this.initPTS,this.frameIndex);if(e&&e.missing===0)return e},g}(M.default);O.minProbeByteLength=9,I.default=O},"./src/demux/adts.ts":function(q,I,R){"use strict";R.r(I),R.d(I,"getAudioConfig",function(){return N}),R.d(I,"isHeaderPattern",function(){return L}),R.d(I,"getHeaderLength",function(){return C}),R.d(I,"getFullFrameLength",function(){return O}),R.d(I,"canGetFrameLength",function(){return v}),R.d(I,"isHeader",function(){return g}),R.d(I,"canParse",function(){return c}),R.d(I,"probe",function(){return s}),R.d(I,"initTrackConfig",function(){return n}),R.d(I,"getFrameDuration",function(){return i}),R.d(I,"parseFrameHeader",function(){return o}),R.d(I,"appendFrame",function(){return e});var M=R("./src/utils/logger.ts"),T=R("./src/errors.ts"),x=R("./src/events.ts");function N(t,r,y,_){var p,E,m,f,u=navigator.userAgent.toLowerCase(),a=_,l=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];p=((r[y+2]&192)>>>6)+1;var h=(r[y+2]&60)>>>2;if(h>l.length-1){t.trigger(x.Events.ERROR,{type:T.ErrorTypes.MEDIA_ERROR,details:T.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+h});return}return m=(r[y+2]&1)<<2,m|=(r[y+3]&192)>>>6,M.logger.log("manifest codec:"+_+", ADTS type:"+p+", samplingIndex:"+h),/firefox/i.test(u)?h>=6?(p=5,f=new Array(4),E=h-3):(p=2,f=new Array(2),E=h):u.indexOf("android")!==-1?(p=2,f=new Array(2),E=h):(p=5,f=new Array(4),_&&(_.indexOf("mp4a.40.29")!==-1||_.indexOf("mp4a.40.5")!==-1)||!_&&h>=6?E=h-3:((_&&_.indexOf("mp4a.40.2")!==-1&&(h>=6&&m===1||/vivaldi/i.test(u))||!_&&m===1)&&(p=2,f=new Array(2)),E=h)),f[0]=p<<3,f[0]|=(h&14)>>1,f[1]|=(h&1)<<7,f[1]|=m<<3,p===5&&(f[1]|=(E&14)>>1,f[2]=(E&1)<<7,f[2]|=2<<2,f[3]=0),{config:f,samplerate:l[h],channelCount:m,codec:"mp4a.40."+p,manifestCodec:a}}function L(t,r){return t[r]===255&&(t[r+1]&246)===240}function C(t,r){return t[r+1]&1?7:9}function O(t,r){return(t[r+3]&3)<<11|t[r+4]<<3|(t[r+5]&224)>>>5}function v(t,r){return r+5<t.length}function g(t,r){return r+1<t.length&&L(t,r)}function c(t,r){return v(t,r)&&L(t,r)&&O(t,r)<=t.length-r}function s(t,r){if(g(t,r)){var y=C(t,r);if(r+y>=t.length)return!1;var _=O(t,r);if(_<=y)return!1;var p=r+_;return p===t.length||g(t,p)}return!1}function n(t,r,y,_,p){if(!t.samplerate){var E=N(r,y,_,p);if(!E)return;t.config=E.config,t.samplerate=E.samplerate,t.channelCount=E.channelCount,t.codec=E.codec,t.manifestCodec=E.manifestCodec,M.logger.log("parsed codec:"+t.codec+", rate:"+E.samplerate+", channels:"+E.channelCount)}}function i(t){return 1024*9e4/t}function o(t,r,y,_,p){var E=C(t,r),m=O(t,r);if(m-=E,m>0){var f=y+_*p;return{headerLength:E,frameLength:m,stamp:f}}}function e(t,r,y,_,p){var E=i(t.samplerate),m=o(r,y,_,p,E);if(m){var f=m.frameLength,u=m.headerLength,a=m.stamp,l=u+f,h=Math.max(0,y+l-r.length),d;h?(d=new Uint8Array(l-u),d.set(r.subarray(y+u,r.length),0)):d=r.subarray(y+u,y+l);var b={unit:d,pts:a};return h||t.samples.push(b),{sample:b,length:l,missing:h}}}},"./src/demux/base-audio-demuxer.ts":function(q,I,R){"use strict";R.r(I),R.d(I,"initPTSFn",function(){return O});var M=R("./src/polyfills/number.ts"),T=R("./src/demux/id3.ts"),x=R("./src/demux/dummy-demuxed-track.ts"),N=R("./src/utils/mp4-tools.ts"),L=R("./src/utils/typed-array.ts"),C=function(){function v(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.initPTS=null}var g=v.prototype;return g.resetInitSegment=function(s,n,i){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}},g.resetTimeStamp=function(){},g.resetContiguity=function(){},g.canParse=function(s,n){return!1},g.appendFrame=function(s,n,i){},g.demux=function(s,n){this.cachedData&&(s=Object(N.appendUint8Array)(this.cachedData,s),this.cachedData=null);var i=T.getID3Data(s,0),o=i?i.length:0,e,t,r=this._audioTrack,y=this._id3Track,_=i?T.getTimeStamp(i):void 0,p=s.length;for((this.frameIndex===0||this.initPTS===null)&&(this.initPTS=O(_,n)),i&&i.length>0&&y.samples.push({pts:this.initPTS,dts:this.initPTS,data:i}),t=this.initPTS;o<p;){if(this.canParse(s,o)){var E=this.appendFrame(r,s,o);E?(this.frameIndex++,t=E.sample.pts,o+=E.length,e=o):o=p}else T.canParse(s,o)?(i=T.getID3Data(s,o),y.samples.push({pts:t,dts:t,data:i}),o+=i.length,e=o):o++;if(o===p&&e!==p){var m=Object(L.sliceUint8)(s,e);this.cachedData?this.cachedData=Object(N.appendUint8Array)(this.cachedData,m):this.cachedData=m}}return{audioTrack:r,avcTrack:Object(x.dummyTrack)(),id3Track:y,textTrack:Object(x.dummyTrack)()}},g.demuxSampleAes=function(s,n,i){return Promise.reject(new Error("["+this+"] This demuxer does not support Sample-AES decryption"))},g.flush=function(s){var n=this.cachedData;return n&&(this.cachedData=null,this.demux(n,0)),this.frameIndex=0,{audioTrack:this._audioTrack,avcTrack:Object(x.dummyTrack)(),id3Track:this._id3Track,textTrack:Object(x.dummyTrack)()}},g.destroy=function(){},v}(),O=function(g,c){return Object(M.isFiniteNumber)(g)?g*90:c*9e4};I.default=C},"./src/demux/chunk-cache.ts":function(q,I,R){"use strict";R.r(I),R.d(I,"default",function(){return M});var M=function(){function x(){this.chunks=[],this.dataLength=0}var N=x.prototype;return N.push=function(C){this.chunks.push(C),this.dataLength+=C.length},N.flush=function(){var C=this.chunks,O=this.dataLength,v;if(C.length)C.length===1?v=C[0]:v=T(C,O);else return new Uint8Array(0);return this.reset(),v},N.reset=function(){this.chunks.length=0,this.dataLength=0},x}();function T(x,N){for(var L=new Uint8Array(N),C=0,O=0;O<x.length;O++){var v=x[O];L.set(v,C),C+=v.length}return L}},"./src/demux/dummy-demuxed-track.ts":function(q,I,R){"use strict";R.r(I),R.d(I,"dummyTrack",function(){return M});function M(){return{type:"",id:-1,pid:-1,inputTimeScale:9e4,sequenceNumber:-1,samples:[],dropped:0}}},"./src/demux/exp-golomb.ts":function(q,I,R){"use strict";R.r(I);var M=R("./src/utils/logger.ts"),T=function(){function x(L){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=L,this.bytesAvailable=L.byteLength,this.word=0,this.bitsAvailable=0}var N=x.prototype;return N.loadWord=function(){var C=this.data,O=this.bytesAvailable,v=C.byteLength-O,g=new Uint8Array(4),c=Math.min(4,O);if(c===0)throw new Error("no bytes available");g.set(C.subarray(v,v+c)),this.word=new DataView(g.buffer).getUint32(0),this.bitsAvailable=c*8,this.bytesAvailable-=c},N.skipBits=function(C){var O;this.bitsAvailable>C?(this.word<<=C,this.bitsAvailable-=C):(C-=this.bitsAvailable,O=C>>3,C-=O>>3,this.bytesAvailable-=O,this.loadWord(),this.word<<=C,this.bitsAvailable-=C)},N.readBits=function(C){var O=Math.min(this.bitsAvailable,C),v=this.word>>>32-O;return C>32&&M.logger.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=O,this.bitsAvailable>0?this.word<<=O:this.bytesAvailable>0&&this.loadWord(),O=C-O,O>0&&this.bitsAvailable?v<<O|this.readBits(O):v},N.skipLZ=function(){var C;for(C=0;C<this.bitsAvailable;++C)if((this.word&2147483648>>>C)!==0)return this.word<<=C,this.bitsAvailable-=C,C;return this.loadWord(),C+this.skipLZ()},N.skipUEG=function(){this.skipBits(1+this.skipLZ())},N.skipEG=function(){this.skipBits(1+this.skipLZ())},N.readUEG=function(){var C=this.skipLZ();return this.readBits(C+1)-1},N.readEG=function(){var C=this.readUEG();return 1&C?1+C>>>1:-1*(C>>>1)},N.readBoolean=function(){return this.readBits(1)===1},N.readUByte=function(){return this.readBits(8)},N.readUShort=function(){return this.readBits(16)},N.readUInt=function(){return this.readBits(32)},N.skipScalingList=function(C){for(var O=8,v=8,g,c=0;c<C;c++)v!==0&&(g=this.readEG(),v=(O+g+256)%256),O=v===0?O:v},N.readSPS=function(){var C=0,O=0,v=0,g=0,c,s,n,i=this.readUByte.bind(this),o=this.readBits.bind(this),e=this.readUEG.bind(this),t=this.readBoolean.bind(this),r=this.skipBits.bind(this),y=this.skipEG.bind(this),_=this.skipUEG.bind(this),p=this.skipScalingList.bind(this);i();var E=i();if(o(5),r(3),i(),_(),E===100||E===110||E===122||E===244||E===44||E===83||E===86||E===118||E===128){var m=e();if(m===3&&r(1),_(),_(),r(1),t())for(s=m!==3?8:12,n=0;n<s;n++)t()&&(n<6?p(16):p(64))}_();var f=e();if(f===0)e();else if(f===1)for(r(1),y(),y(),c=e(),n=0;n<c;n++)y();_(),r(1);var u=e(),a=e(),l=o(1);l===0&&r(1),r(1),t()&&(C=e(),O=e(),v=e(),g=e());var h=[1,1];if(t()&&t()){var d=i();switch(d){case 1:h=[1,1];break;case 2:h=[12,11];break;case 3:h=[10,11];break;case 4:h=[16,11];break;case 5:h=[40,33];break;case 6:h=[24,11];break;case 7:h=[20,11];break;case 8:h=[32,11];break;case 9:h=[80,33];break;case 10:h=[18,11];break;case 11:h=[15,11];break;case 12:h=[64,33];break;case 13:h=[160,99];break;case 14:h=[4,3];break;case 15:h=[3,2];break;case 16:h=[2,1];break;case 255:{h=[i()<<8|i(),i()<<8|i()];break}}}return{width:Math.ceil((u+1)*16-C*2-O*2),height:(2-l)*(a+1)*16-(l?2:4)*(v+g),pixelRatio:h}},N.readSliceType=function(){return this.readUByte(),this.readUEG(),this.readUEG()},x}();I.default=T},"./src/demux/id3.ts":function(q,I,R){"use strict";R.r(I),R.d(I,"isHeader",function(){return M}),R.d(I,"isFooter",function(){return T}),R.d(I,"getID3Data",function(){return x}),R.d(I,"canParse",function(){return L}),R.d(I,"getTimeStamp",function(){return C}),R.d(I,"isTimeStampFrame",function(){return O}),R.d(I,"getID3Frames",function(){return g}),R.d(I,"decodeFrame",function(){return c}),R.d(I,"utf8ArrayToStr",function(){return e}),R.d(I,"testables",function(){return t});var M=function(p,E){return E+10<=p.length&&(p[E]===73&&p[E+1]===68&&p[E+2]===51&&(p[E+3]<255&&p[E+4]<255&&(p[E+6]<128&&p[E+7]<128&&p[E+8]<128&&p[E+9]<128)))},T=function(p,E){return E+10<=p.length&&(p[E]===51&&p[E+1]===68&&p[E+2]===73&&(p[E+3]<255&&p[E+4]<255&&(p[E+6]<128&&p[E+7]<128&&p[E+8]<128&&p[E+9]<128)))},x=function(p,E){for(var m=E,f=0;M(p,E);){f+=10;var u=N(p,E+6);f+=u,T(p,E+10)&&(f+=10),E+=f}return f>0?p.subarray(m,m+f):void 0},N=function(p,E){var m=0;return m=(p[E]&127)<<21,m|=(p[E+1]&127)<<14,m|=(p[E+2]&127)<<7,m|=p[E+3]&127,m},L=function(p,E){return M(p,E)&&N(p,E+6)+10<=p.length-E},C=function(p){for(var E=g(p),m=0;m<E.length;m++){var f=E[m];if(O(f))return o(f)}return},O=function(p){return p&&p.key==="PRIV"&&p.info==="com.apple.streaming.transportStreamTimestamp"},v=function(p){var E=String.fromCharCode(p[0],p[1],p[2],p[3]),m=N(p,4),f=10;return{type:E,size:m,data:p.subarray(f,f+m)}},g=function(p){for(var E=0,m=[];M(p,E);){var f=N(p,E+6);E+=10;for(var u=E+f;E+8<u;){var a=v(p.subarray(E)),l=c(a);l&&m.push(l),E+=a.size+10}T(p,E)&&(E+=10)}return m},c=function(p){return p.type==="PRIV"?s(p):p.type[0]==="W"?i(p):n(p)},s=function(p){if(p.size<2)return;var E=e(p.data,!0),m=new Uint8Array(p.data.subarray(E.length+1));return{key:p.type,info:E,data:m.buffer}},n=function(p){if(p.size<2)return;if(p.type==="TXXX"){var E=1,m=e(p.data.subarray(E),!0);E+=m.length+1;var f=e(p.data.subarray(E));return{key:p.type,info:m,data:f}}var u=e(p.data.subarray(1));return{key:p.type,data:u}},i=function(p){if(p.type==="WXXX"){if(p.size<2)return;var E=1,m=e(p.data.subarray(E),!0);E+=m.length+1;var f=e(p.data.subarray(E));return{key:p.type,info:m,data:f}}var u=e(p.data);return{key:p.type,data:u}},o=function(p){if(p.data.byteLength===8){var E=new Uint8Array(p.data),m=E[3]&1,f=(E[4]<<23)+(E[5]<<15)+(E[6]<<7)+E[7];return f/=45,m&&(f+=4772185884e-2),Math.round(f)}return},e=function(p,E){E===void 0&&(E=!1);var m=y();if(m){var f=m.decode(p);if(E){var u=f.indexOf("\0");return u!==-1?f.substring(0,u):f}return f.replace(/\0/g,"")}for(var a=p.length,l,h,d,b="",w=0;w<a;){if(l=p[w++],l===0&&E)return b;if(l===0||l===3)continue;switch(l>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:b+=String.fromCharCode(l);break;case 12:case 13:h=p[w++],b+=String.fromCharCode((l&31)<<6|h&63);break;case 14:h=p[w++],d=p[w++],b+=String.fromCharCode((l&15)<<12|(h&63)<<6|(d&63)<<0);break;default:}}return b},t={decodeTextFrame:n},r;function y(){return!r&&typeof self.TextDecoder!="undefined"&&(r=new self.TextDecoder("utf-8")),r}},"./src/demux/mp3demuxer.ts":function(q,I,R){"use strict";R.r(I);var M=R("./src/demux/base-audio-demuxer.ts"),T=R("./src/demux/id3.ts"),x=R("./src/utils/logger.ts"),N=R("./src/demux/mpegaudio.ts");function L(v,g){v.prototype=Object.create(g.prototype),v.prototype.constructor=v,C(v,g)}function C(v,g){return C=Object.setPrototypeOf||function(s,n){return s.__proto__=n,s},C(v,g)}var O=function(v){L(g,v);function g(){return v.apply(this,arguments)||this}var c=g.prototype;return c.resetInitSegment=function(n,i,o){v.prototype.resetInitSegment.call(this,n,i,o),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!1,samples:[],manifestCodec:n,duration:o,inputTimeScale:9e4,dropped:0}},g.probe=function(n){if(!n)return!1;for(var i=T.getID3Data(n,0)||[],o=i.length,e=n.length;o<e;o++)if(N.probe(n,o))return x.logger.log("MPEG Audio sync word found !"),!0;return!1},c.canParse=function(n,i){return N.canParse(n,i)},c.appendFrame=function(n,i,o){return this.initPTS===null?void 0:N.appendFrame(n,i,o,this.initPTS,this.frameIndex)},g}(M.default);O.minProbeByteLength=4,I.default=O},"./src/demux/mp4demuxer.ts":function(q,I,R){"use strict";R.r(I);var M=R("./src/utils/mp4-tools.ts"),T=R("./src/demux/dummy-demuxed-track.ts"),x=function(){function N(C,O){this.remainderData=null,this.config=void 0,this.config=O}var L=N.prototype;return L.resetTimeStamp=function(){},L.resetInitSegment=function(){},L.resetContiguity=function(){},N.probe=function(O){return Object(M.findBox)({data:O,start:0,end:Math.min(O.length,16384)},["moof"]).length>0},L.demux=function(O){var v=O,g=Object(T.dummyTrack)();if(this.config.progressive){this.remainderData&&(v=Object(M.appendUint8Array)(this.remainderData,O));var c=Object(M.segmentValidRange)(v);this.remainderData=c.remainder,g.samples=c.valid||new Uint8Array}else g.samples=v;return{audioTrack:Object(T.dummyTrack)(),avcTrack:g,id3Track:Object(T.dummyTrack)(),textTrack:Object(T.dummyTrack)()}},L.flush=function(){var O=Object(T.dummyTrack)();return O.samples=this.remainderData||new Uint8Array,this.remainderData=null,{audioTrack:Object(T.dummyTrack)(),avcTrack:O,id3Track:Object(T.dummyTrack)(),textTrack:Object(T.dummyTrack)()}},L.demuxSampleAes=function(O,v,g){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))},L.destroy=function(){},N}();x.minProbeByteLength=1024,I.default=x},"./src/demux/mpegaudio.ts":function(q,I,R){"use strict";R.r(I),R.d(I,"appendFrame",function(){return C}),R.d(I,"parseHeader",function(){return O}),R.d(I,"isHeaderPattern",function(){return v}),R.d(I,"isHeader",function(){return g}),R.d(I,"canParse",function(){return c}),R.d(I,"probe",function(){return s});var M=null,T=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],x=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],N=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],L=[0,1,1,4];function C(n,i,o,e,t){if(o+24>i.length)return;var r=O(i,o);if(r&&o+r.frameLength<=i.length){var y=r.samplesPerFrame*9e4/r.sampleRate,_=e+t*y,p={unit:i.subarray(o,o+r.frameLength),pts:_,dts:_};return n.config=[],n.channelCount=r.channelCount,n.samplerate=r.sampleRate,n.samples.push(p),{sample:p,length:r.frameLength,missing:0}}}function O(n,i){var o=n[i+1]>>3&3,e=n[i+1]>>1&3,t=n[i+2]>>4&15,r=n[i+2]>>2&3;if(o!==1&&t!==0&&t!==15&&r!==3){var y=n[i+2]>>1&1,_=n[i+3]>>6,p=o===3?3-e:e===3?3:4,E=T[p*14+t-1]*1e3,m=o===3?0:o===2?1:2,f=x[m*3+r],u=_===3?1:2,a=N[o][e],l=L[e],h=a*8*l,d=Math.floor(a*E/f+y)*l;if(M===null){var b=navigator.userAgent||"",w=b.match(/Chrome\/(\d+)/i);M=w?parseInt(w[1]):0}var A=!!M&&M<=87;return A&&e===2&&E>=224e3&&_===0&&(n[i+3]=n[i+3]|128),{sampleRate:f,channelCount:u,frameLength:d,samplesPerFrame:h}}}function v(n,i){return n[i]===255&&(n[i+1]&224)===224&&(n[i+1]&6)!==0}function g(n,i){return i+1<n.length&&v(n,i)}function c(n,i){var o=4;return v(n,i)&&o<=n.length-i}function s(n,i){if(i+1<n.length&&v(n,i)){var o=4,e=O(n,i),t=o;e!=null&&e.frameLength&&(t=e.frameLength);var r=i+t;return r===n.length||g(n,r)}return!1}},"./src/demux/sample-aes.ts":function(q,I,R){"use strict";R.r(I);var M=R("./src/crypt/decrypter.ts"),T=R("./src/demux/tsdemuxer.ts"),x=function(){function N(C,O,v){this.keyData=void 0,this.decrypter=void 0,this.keyData=v,this.decrypter=new M.default(C,O,{removePKCS7Padding:!1})}var L=N.prototype;return L.decryptBuffer=function(O,v){this.decrypter.decrypt(O,this.keyData.key.buffer,this.keyData.iv.buffer,v)},L.decryptAacSample=function(O,v,g,c){var s=O[v].unit,n=s.subarray(16,s.length-s.length%16),i=n.buffer.slice(n.byteOffset,n.byteOffset+n.length),o=this;this.decryptBuffer(i,function(e){var t=new Uint8Array(e);s.set(t,16),c||o.decryptAacSamples(O,v+1,g)})},L.decryptAacSamples=function(O,v,g){for(;;v++){if(v>=O.length){g();return}if(O[v].unit.length<32)continue;var c=this.decrypter.isSync();if(this.decryptAacSample(O,v,g,c),!c)return}},L.getAvcEncryptedData=function(O){for(var v=Math.floor((O.length-48)/160)*16+16,g=new Int8Array(v),c=0,s=32;s<=O.length-16;s+=160,c+=16)g.set(O.subarray(s,s+16),c);return g},L.getAvcDecryptedUnit=function(O,v){for(var g=new Uint8Array(v),c=0,s=32;s<=O.length-16;s+=160,c+=16)O.set(g.subarray(c,c+16),s);return O},L.decryptAvcSample=function(O,v,g,c,s,n){var i=Object(T.discardEPB)(s.data),o=this.getAvcEncryptedData(i),e=this;this.decryptBuffer(o.buffer,function(t){s.data=e.getAvcDecryptedUnit(i,t),n||e.decryptAvcSamples(O,v,g+1,c)})},L.decryptAvcSamples=function(O,v,g,c){if(O instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;v++,g=0){if(v>=O.length){c();return}for(var s=O[v].units;!(g>=s.length);g++){var n=s[g];if(n.data.length<=48||n.type!==1&&n.type!==5)continue;var i=this.decrypter.isSync();if(this.decryptAvcSample(O,v,g,c,n,i),!i)return}}},N}();I.default=x},"./src/demux/transmuxer-interface.ts":function(q,I,R){"use strict";R.r(I),R.d(I,"default",function(){return s});var M=R("./node_modules/webworkify-webpack/index.js"),T=R.n(M),x=R("./src/events.ts"),N=R("./src/demux/transmuxer.ts"),L=R("./src/utils/logger.ts"),C=R("./src/errors.ts"),O=R("./src/utils/mediasource-helper.ts"),v=R("./node_modules/eventemitter3/index.js"),g=R.n(v),c=Object(O.getMediaSource)()||{isTypeSupported:function(){return!1}},s=function(){function n(o,e,t,r){var y=this;this.hls=void 0,this.id=void 0,this.observer=void 0,this.frag=null,this.part=null,this.worker=void 0,this.onwmsg=void 0,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0,this.hls=o,this.id=e,this.onTransmuxComplete=t,this.onFlush=r;var _=o.config,p=function(a,l){l=l||{},l.frag=y.frag,l.id=y.id,o.trigger(a,l)};this.observer=new v.EventEmitter,this.observer.on(x.Events.FRAG_DECRYPTED,p),this.observer.on(x.Events.ERROR,p);var E={mp4:c.isTypeSupported("video/mp4"),mpeg:c.isTypeSupported("audio/mpeg"),mp3:c.isTypeSupported('audio/mp4; codecs="mp3"')},m=navigator.vendor;if(_.enableWorker&&typeof Worker!="undefined"){L.logger.log("demuxing in webworker");var f;try{f=this.worker=M("./src/demux/transmuxer-worker.ts"),this.onwmsg=this.onWorkerMessage.bind(this),f.addEventListener("message",this.onwmsg),f.onerror=function(u){o.trigger(x.Events.ERROR,{type:C.ErrorTypes.OTHER_ERROR,details:C.ErrorDetails.INTERNAL_EXCEPTION,fatal:!0,event:"demuxerWorker",error:new Error(u.message+" ("+u.filename+":"+u.lineno+")")})},f.postMessage({cmd:"init",typeSupported:E,vendor:m,id:e,config:JSON.stringify(_)})}catch(u){L.logger.warn("Error in worker:",u),L.logger.error("Error while initializing DemuxerWorker, fallback to inline"),f&&self.URL.revokeObjectURL(f.objectURL),this.transmuxer=new N.default(this.observer,E,_,m,e),this.worker=null}}else this.transmuxer=new N.default(this.observer,E,_,m,e)}var i=n.prototype;return i.destroy=function(){var e=this.worker;if(e)e.removeEventListener("message",this.onwmsg),e.terminate(),this.worker=null;else{var t=this.transmuxer;t&&(t.destroy(),this.transmuxer=null)}var r=this.observer;r&&r.removeAllListeners(),this.observer=null},i.push=function(e,t,r,y,_,p,E,m,f,u){var a=this;f.transmuxing.start=self.performance.now();var l=this.transmuxer,h=this.worker,d=p?p.start:_.start,b=_.decryptdata,w=this.frag,A=!(w&&_.cc===w.cc),P=!(w&&f.level===w.level),S=w?f.sn-w.sn:-1,U=this.part?f.part-this.part.index:1,D=!P&&(S===1||S===0&&U===1),j=self.performance.now();(P||S||_.stats.parsing.start===0)&&(_.stats.parsing.start=j),p&&(U||!D)&&(p.stats.parsing.start=j);var K=new N.TransmuxState(A,D,m,P,d);if(!D||A){L.logger.log("[transmuxer-interface, "+_.type+"]: Starting new transmux session for sn: "+f.sn+" p: "+f.part+" level: "+f.level+" id: "+f.id+`
|
|
discontinuity: `+A+`
|
|
trackSwitch: `+P+`
|
|
contiguous: `+D+`
|
|
accurateTimeOffset: `+m+`
|
|
timeOffset: `+d);var Z=new N.TransmuxConfig(r,y,t,E,u);this.configureTransmuxer(Z)}if(this.frag=_,this.part=p,h)h.postMessage({cmd:"demux",data:e,decryptdata:b,chunkMeta:f,state:K},e instanceof ArrayBuffer?[e]:[]);else if(l){var ne=l.push(e,b,f,K);Object(N.isPromise)(ne)?ne.then(function(me){a.handleTransmuxComplete(me)}):this.handleTransmuxComplete(ne)}},i.flush=function(e){var t=this;e.transmuxing.start=self.performance.now();var r=this.transmuxer,y=this.worker;if(y)y.postMessage({cmd:"flush",chunkMeta:e});else if(r){var _=r.flush(e);Object(N.isPromise)(_)?_.then(function(p){t.handleFlushResult(p,e)}):this.handleFlushResult(_,e)}},i.handleFlushResult=function(e,t){var r=this;e.forEach(function(y){r.handleTransmuxComplete(y)}),this.onFlush(t)},i.onWorkerMessage=function(e){var t=e.data,r=this.hls;switch(t.event){case"init":{self.URL.revokeObjectURL(this.worker.objectURL);break}case"transmuxComplete":{this.handleTransmuxComplete(t.data);break}case"flush":{this.onFlush(t.data);break}default:{t.data=t.data||{},t.data.frag=this.frag,t.data.id=this.id,r.trigger(t.event,t.data);break}}},i.configureTransmuxer=function(e){var t=this.worker,r=this.transmuxer;t?t.postMessage({cmd:"configure",config:e}):r&&r.configure(e)},i.handleTransmuxComplete=function(e){e.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(e)},n}()},"./src/demux/transmuxer-worker.ts":function(q,I,R){"use strict";R.r(I),R.d(I,"default",function(){return C});var M=R("./src/demux/transmuxer.ts"),T=R("./src/events.ts"),x=R("./src/utils/logger.ts"),N=R("./node_modules/eventemitter3/index.js"),L=R.n(N);function C(s){var n=new N.EventEmitter,i=function(e,t){s.postMessage({event:e,data:t})};n.on(T.Events.FRAG_DECRYPTED,i),n.on(T.Events.ERROR,i),s.addEventListener("message",function(o){var e=o.data;switch(e.cmd){case"init":{var t=JSON.parse(e.config);s.transmuxer=new M.default(n,e.typeSupported,t,e.vendor,e.id),Object(x.enableLogs)(t.debug),i("init",null);break}case"configure":{s.transmuxer.configure(e.config);break}case"demux":{var r=s.transmuxer.push(e.data,e.decryptdata,e.chunkMeta,e.state);Object(M.isPromise)(r)?r.then(function(p){O(s,p)}):O(s,r);break}case"flush":{var y=e.chunkMeta,_=s.transmuxer.flush(y);Object(M.isPromise)(_)?_.then(function(p){g(s,p,y)}):g(s,_,y);break}default:break}})}function O(s,n){if(c(n.remuxResult))return;var i=[],o=n.remuxResult,e=o.audio,t=o.video;e&&v(i,e),t&&v(i,t),s.postMessage({event:"transmuxComplete",data:n},i)}function v(s,n){n.data1&&s.push(n.data1.buffer),n.data2&&s.push(n.data2.buffer)}function g(s,n,i){n.forEach(function(o){O(s,o)}),s.postMessage({event:"flush",data:i})}function c(s){return!s.audio&&!s.video&&!s.text&&!s.id3&&!s.initSegment}},"./src/demux/transmuxer.ts":function(q,I,R){"use strict";R.r(I),R.d(I,"default",function(){return t}),R.d(I,"isPromise",function(){return _}),R.d(I,"TransmuxConfig",function(){return p}),R.d(I,"TransmuxState",function(){return E});var M=R("./src/events.ts"),T=R("./src/errors.ts"),x=R("./src/crypt/decrypter.ts"),N=R("./src/demux/aacdemuxer.ts"),L=R("./src/demux/mp4demuxer.ts"),C=R("./src/demux/tsdemuxer.ts"),O=R("./src/demux/mp3demuxer.ts"),v=R("./src/remux/mp4-remuxer.ts"),g=R("./src/remux/passthrough-remuxer.ts"),c=R("./src/demux/chunk-cache.ts"),s=R("./src/utils/mp4-tools.ts"),n=R("./src/utils/logger.ts"),i;try{i=self.performance.now.bind(self.performance)}catch(m){n.logger.debug("Unable to use Performance API on this environment"),i=self.Date.now}var o=[{demux:C.default,remux:v.default},{demux:L.default,remux:g.default},{demux:N.default,remux:v.default},{demux:O.default,remux:v.default}],e=1024;o.forEach(function(m){var f=m.demux;e=Math.max(e,f.minProbeByteLength)});var t=function(){function m(u,a,l,h,d){this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.vendor=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.cache=new c.default,this.observer=u,this.typeSupported=a,this.config=l,this.vendor=h,this.id=d}var f=m.prototype;return f.configure=function(a){this.transmuxConfig=a,this.decrypter&&this.decrypter.reset()},f.push=function(a,l,h,d){var b=this,w=h.transmuxing;w.executeStart=i();var A=new Uint8Array(a),P=this.cache,S=this.config,U=this.currentTransmuxState,D=this.transmuxConfig;d&&(this.currentTransmuxState=d);var j=r(A,l);if(j&&j.method==="AES-128"){var K=this.getDecrypter();if(S.enableSoftwareAES){var Z=K.softwareDecrypt(A,j.key.buffer,j.iv.buffer);if(!Z)return w.executeEnd=i(),y(h);A=new Uint8Array(Z)}else return this.decryptionPromise=K.webCryptoDecrypt(A,j.key.buffer,j.iv.buffer).then(function(Me){var je=b.push(Me,null,h);return b.decryptionPromise=null,je}),this.decryptionPromise}var ne=d||U,me=ne.contiguous,he=ne.discontinuity,Y=ne.trackSwitch,le=ne.accurateTimeOffset,ge=ne.timeOffset,re=D.audioCodec,te=D.videoCodec,be=D.defaultInitPts,ze=D.duration,Ge=D.initSegmentData;if((he||Y)&&this.resetInitSegment(Ge,re,te,ze),he&&this.resetInitialTimestamp(be),me||this.resetContiguity(),this.needsProbing(A,he,Y)){if(P.dataLength){var Ue=P.flush();A=Object(s.appendUint8Array)(Ue,A)}this.configureTransmuxer(A,D)}var Ze=this.transmux(A,j,ge,le,h),Pe=this.currentTransmuxState;return Pe.contiguous=!0,Pe.discontinuity=!1,Pe.trackSwitch=!1,w.executeEnd=i(),Ze},f.flush=function(a){var l=this,h=a.transmuxing;h.executeStart=i();var d=this.decrypter,b=this.cache,w=this.currentTransmuxState,A=this.decryptionPromise;if(A)return A.then(function(){return l.flush(a)});var P=[],S=w.timeOffset;if(d){var U=d.flush();U&&P.push(this.push(U,null,a))}var D=b.dataLength;b.reset();var j=this.demuxer,K=this.remuxer;if(!j||!K)return D>=e&&this.observer.emit(M.Events.ERROR,M.Events.ERROR,{type:T.ErrorTypes.MEDIA_ERROR,details:T.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"}),h.executeEnd=i(),[y(a)];var Z=j.flush(S);return _(Z)?Z.then(function(ne){return l.flushRemux(P,ne,a),P}):(this.flushRemux(P,Z,a),P)},f.flushRemux=function(a,l,h){var d=l.audioTrack,b=l.avcTrack,w=l.id3Track,A=l.textTrack,P=this.currentTransmuxState,S=P.accurateTimeOffset,U=P.timeOffset;n.logger.log("[transmuxer.ts]: Flushed fragment "+h.sn+(h.part>-1?" p: "+h.part:"")+" of level "+h.level);var D=this.remuxer.remux(d,b,w,A,U,S,!0,this.id);a.push({remuxResult:D,chunkMeta:h}),h.transmuxing.executeEnd=i()},f.resetInitialTimestamp=function(a){var l=this.demuxer,h=this.remuxer;if(!l||!h)return;l.resetTimeStamp(a),h.resetTimeStamp(a)},f.resetContiguity=function(){var a=this.demuxer,l=this.remuxer;if(!a||!l)return;a.resetContiguity(),l.resetNextTimestamp()},f.resetInitSegment=function(a,l,h,d){var b=this.demuxer,w=this.remuxer;if(!b||!w)return;b.resetInitSegment(l,h,d),w.resetInitSegment(a,l,h)},f.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},f.transmux=function(a,l,h,d,b){var w;return l&&l.method==="SAMPLE-AES"?w=this.transmuxSampleAes(a,l,h,d,b):w=this.transmuxUnencrypted(a,h,d,b),w},f.transmuxUnencrypted=function(a,l,h,d){var b=this.demuxer.demux(a,l,!1,!this.config.progressive),w=b.audioTrack,A=b.avcTrack,P=b.id3Track,S=b.textTrack,U=this.remuxer.remux(w,A,P,S,l,h,!1,this.id);return{remuxResult:U,chunkMeta:d}},f.transmuxSampleAes=function(a,l,h,d,b){var w=this;return this.demuxer.demuxSampleAes(a,l,h).then(function(A){var P=w.remuxer.remux(A.audioTrack,A.avcTrack,A.id3Track,A.textTrack,h,d,!1,w.id);return{remuxResult:P,chunkMeta:b}})},f.configureTransmuxer=function(a,l){for(var h=this.config,d=this.observer,b=this.typeSupported,w=this.vendor,A=l.audioCodec,P=l.defaultInitPts,S=l.duration,U=l.initSegmentData,D=l.videoCodec,j,K=0,Z=o.length;K<Z;K++)if(o[K].demux.probe(a)){j=o[K];break}j||(n.logger.warn("Failed to find demuxer by probing frag, treating as mp4 passthrough"),j={demux:L.default,remux:g.default});var ne=this.demuxer,me=this.remuxer,he=j.remux,Y=j.demux;(!me||!(me instanceof he))&&(this.remuxer=new he(d,h,b,w)),(!ne||!(ne instanceof Y))&&(this.demuxer=new Y(d,h,b),this.probe=Y.probe),this.resetInitSegment(U,A,D,S),this.resetInitialTimestamp(P)},f.needsProbing=function(a,l,h){return!this.demuxer||!this.remuxer||l||h},f.getDecrypter=function(){var a=this.decrypter;return a||(a=this.decrypter=new x.default(this.observer,this.config)),a},m}();function r(m,f){var u=null;return m.byteLength>0&&f!=null&&f.key!=null&&f.iv!==null&&f.method!=null&&(u=f),u}var y=function(f){return{remuxResult:{},chunkMeta:f}};function _(m){return"then"in m&&m.then instanceof Function}var p=function(f,u,a,l,h){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=f,this.videoCodec=u,this.initSegmentData=a,this.duration=l,this.defaultInitPts=h},E=function(f,u,a,l,h){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.discontinuity=f,this.contiguous=u,this.accurateTimeOffset=a,this.trackSwitch=l,this.timeOffset=h}},"./src/demux/tsdemuxer.ts":function(q,I,R){"use strict";R.r(I),R.d(I,"discardEPB",function(){return y});var M=R("./src/demux/adts.ts"),T=R("./src/demux/mpegaudio.ts"),x=R("./src/demux/exp-golomb.ts"),N=R("./src/demux/id3.ts"),L=R("./src/demux/sample-aes.ts"),C=R("./src/events.ts"),O=R("./src/utils/mp4-tools.ts"),v=R("./src/utils/logger.ts"),g=R("./src/errors.ts"),c={video:1,audio:2,id3:3,text:4},s=function(){function _(E,m,f){this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._duration=0,this.aacLastPTS=null,this._initPTS=null,this._initDTS=null,this._pmtId=-1,this._avcTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.avcSample=null,this.remainderData=null,this.observer=E,this.config=m,this.typeSupported=f}_.probe=function(m){var f=_.syncOffset(m);return f<0?!1:(f&&v.logger.warn("MPEG2-TS detected but first sync word found @ offset "+f+", junk ahead ?"),!0)},_.syncOffset=function(m){for(var f=Math.min(1e3,m.length-3*188),u=0;u<f;){if(m[u]===71&&m[u+188]===71&&m[u+2*188]===71)return u;u++}return-1},_.createTrack=function(m,f){return{container:m==="video"||m==="audio"?"video/mp2t":void 0,type:m,id:c[m],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:m==="audio"?f:void 0}};var p=_.prototype;return p.resetInitSegment=function(m,f,u){this.pmtParsed=!1,this._pmtId=-1,this._avcTrack=_.createTrack("video",u),this._audioTrack=_.createTrack("audio",u),this._id3Track=_.createTrack("id3",u),this._txtTrack=_.createTrack("text",u),this._audioTrack.isAAC=!0,this.aacOverFlow=null,this.aacLastPTS=null,this.avcSample=null,this.audioCodec=m,this.videoCodec=f,this._duration=u},p.resetTimeStamp=function(){},p.resetContiguity=function(){var m=this._audioTrack,f=this._avcTrack,u=this._id3Track;m&&(m.pesData=null),f&&(f.pesData=null),u&&(u.pesData=null),this.aacOverFlow=null,this.aacLastPTS=null},p.demux=function(m,f,u,a){u===void 0&&(u=!1),a===void 0&&(a=!1),u||(this.sampleAes=null);var l,h=this._avcTrack,d=this._audioTrack,b=this._id3Track,w=h.pid,A=h.pesData,P=d.pid,S=b.pid,U=d.pesData,D=b.pesData,j=!1,K=this.pmtParsed,Z=this._pmtId,ne=m.length;if(this.remainderData&&(m=Object(O.appendUint8Array)(this.remainderData,m),ne=m.length,this.remainderData=null),ne<188&&!a)return this.remainderData=m,{audioTrack:d,avcTrack:h,id3Track:b,textTrack:this._txtTrack};var me=Math.max(0,_.syncOffset(m));ne-=(ne+me)%188,ne<m.byteLength&&!a&&(this.remainderData=new Uint8Array(m.buffer,ne,m.buffer.byteLength-ne));for(var he=me;he<ne;he+=188)if(m[he]===71){var Y=!!(m[he+1]&64),le=((m[he+1]&31)<<8)+m[he+2],ge=(m[he+3]&48)>>4,re=void 0;if(ge>1){if(re=he+5+m[he+4],re===he+188)continue}else re=he+4;switch(le){case w:Y&&(A&&(l=e(A))&&this.parseAVCPES(l,!1),A={data:[],size:0}),A&&(A.data.push(m.subarray(re,he+188)),A.size+=he+188-re);break;case P:Y&&(U&&(l=e(U))&&(d.isAAC?this.parseAACPES(l):this.parseMPEGPES(l)),U={data:[],size:0}),U&&(U.data.push(m.subarray(re,he+188)),U.size+=he+188-re);break;case S:Y&&(D&&(l=e(D))&&this.parseID3PES(l),D={data:[],size:0}),D&&(D.data.push(m.subarray(re,he+188)),D.size+=he+188-re);break;case 0:Y&&(re+=m[re]+1),Z=this._pmtId=i(m,re);break;case Z:{Y&&(re+=m[re]+1);var te=o(m,re,this.typeSupported.mpeg===!0||this.typeSupported.mp3===!0,u);w=te.avc,w>0&&(h.pid=w),P=te.audio,P>0&&(d.pid=P,d.isAAC=te.isAAC),S=te.id3,S>0&&(b.pid=S),j&&!K&&(v.logger.log("reparse from beginning"),j=!1,he=me-188),K=this.pmtParsed=!0;break}case 17:case 8191:break;default:j=!0;break}}else this.observer.emit(C.Events.ERROR,C.Events.ERROR,{type:g.ErrorTypes.MEDIA_ERROR,details:g.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});h.pesData=A,d.pesData=U,b.pesData=D;var be={audioTrack:d,avcTrack:h,id3Track:b,textTrack:this._txtTrack};return a&&this.extractRemainingSamples(be),be},p.flush=function(){var m=this.remainderData;this.remainderData=null;var f;return m?f=this.demux(m,-1,!1,!0):f={audioTrack:this._audioTrack,avcTrack:this._avcTrack,textTrack:this._txtTrack,id3Track:this._id3Track},this.extractRemainingSamples(f),this.sampleAes?this.decrypt(f,this.sampleAes):f},p.extractRemainingSamples=function(m){var f=m.audioTrack,u=m.avcTrack,a=m.id3Track,l=u.pesData,h=f.pesData,d=a.pesData,b;l&&(b=e(l))?(this.parseAVCPES(b,!0),u.pesData=null):u.pesData=l,h&&(b=e(h))?(f.isAAC?this.parseAACPES(b):this.parseMPEGPES(b),f.pesData=null):(h!=null&&h.size&&v.logger.log("last AAC PES packet truncated,might overlap between fragments"),f.pesData=h),d&&(b=e(d))?(this.parseID3PES(b),a.pesData=null):a.pesData=d},p.demuxSampleAes=function(m,f,u){var a=this.demux(m,u,!0,!this.config.progressive),l=this.sampleAes=new L.default(this.observer,this.config,f);return this.decrypt(a,l)},p.decrypt=function(m,f){return new Promise(function(u){var a=m.audioTrack,l=m.avcTrack;a.samples&&a.isAAC?f.decryptAacSamples(a.samples,0,function(){l.samples?f.decryptAvcSamples(l.samples,0,0,function(){u(m)}):u(m)}):l.samples&&f.decryptAvcSamples(l.samples,0,0,function(){u(m)})})},p.destroy=function(){this._initPTS=this._initDTS=null,this._duration=0},p.parseAVCPES=function(m,f){var u=this,a=this._avcTrack,l=this.parseAVCNALu(m.data),h=!1,d=this.avcSample,b,w=!1;m.data=null,d&&l.length&&!a.audFound&&(t(d,a),d=this.avcSample=n(!1,m.pts,m.dts,"")),l.forEach(function(A){switch(A.type){case 1:{b=!0,d||(d=u.avcSample=n(!0,m.pts,m.dts,"")),h&&(d.debug+="NDR "),d.frame=!0;var P=A.data;if(w&&P.length>4){var S=new x.default(P).readSliceType();(S===2||S===4||S===7||S===9)&&(d.key=!0)}break}case 5:b=!0,d||(d=u.avcSample=n(!0,m.pts,m.dts,"")),h&&(d.debug+="IDR "),d.key=!0,d.frame=!0;break;case 6:{b=!0,h&&d&&(d.debug+="SEI ");var U=new x.default(y(A.data));U.readUByte();for(var D=0,j=0,K=!1,Z=0;!K&&U.bytesAvailable>1;){D=0;do Z=U.readUByte(),D+=Z;while(Z===255);j=0;do Z=U.readUByte(),j+=Z;while(Z===255);if(D===4&&U.bytesAvailable!==0){K=!0;var ne=U.readUByte();if(ne===181){var me=U.readUShort();if(me===49){var he=U.readUInt();if(he===1195456820){var Y=U.readUByte();if(Y===3){for(var le=U.readUByte(),ge=U.readUByte(),re=31&le,te=[le,ge],be=0;be<re;be++)te.push(U.readUByte()),te.push(U.readUByte()),te.push(U.readUByte());r(u._txtTrack.samples,{type:3,pts:m.pts,bytes:te})}}}}}else if(D===5&&U.bytesAvailable!==0){if(K=!0,j>16){for(var ze=[],Ge=0;Ge<16;Ge++)ze.push(U.readUByte().toString(16)),(Ge===3||Ge===5||Ge===7||Ge===9)&&ze.push("-");for(var Ue=j-16,Ze=new Uint8Array(Ue),Pe=0;Pe<Ue;Pe++)Ze[Pe]=U.readUByte();r(u._txtTrack.samples,{pts:m.pts,payloadType:D,uuid:ze.join(""),userData:Object(N.utf8ArrayToStr)(Ze),userDataBytes:Ze})}}else if(j<U.bytesAvailable)for(var Me=0;Me<j;Me++)U.readUByte()}break}case 7:if(b=!0,w=!0,h&&d&&(d.debug+="SPS "),!a.sps){var je=new x.default(A.data),Ve=je.readSPS();a.width=Ve.width,a.height=Ve.height,a.pixelRatio=Ve.pixelRatio,a.sps=[A.data],a.duration=u._duration;for(var Ke=A.data.subarray(1,4),Ie="avc1.",Le=0;Le<3;Le++){var st=Ke[Le].toString(16);st.length<2&&(st="0"+st),Ie+=st}a.codec=Ie}break;case 8:b=!0,h&&d&&(d.debug+="PPS "),a.pps||(a.pps=[A.data]);break;case 9:b=!1,a.audFound=!0,d&&t(d,a),d=u.avcSample=n(!1,m.pts,m.dts,h?"AUD ":"");break;case 12:b=!1;break;default:b=!1,d&&(d.debug+="unknown NAL "+A.type+" ");break}if(d&&b){var nt=d.units;nt.push(A)}}),f&&d&&(t(d,a),this.avcSample=null)},p.getLastNalUnit=function(){var m,f=this.avcSample,u;if(!f||f.units.length===0){var a=this._avcTrack.samples;f=a[a.length-1]}if((m=f)!==null&&m!==void 0&&m.units){var l=f.units;u=l[l.length-1]}return u},p.parseAVCNALu=function(m){var f=m.byteLength,u=this._avcTrack,a=u.naluState||0,l=a,h=[],d=0,b,w,A,P=-1,S=0;for(a===-1&&(P=0,S=m[0]&31,a=0,d=1);d<f;){if(b=m[d++],!a){a=b?0:1;continue}if(a===1){a=b?0:2;continue}if(!b)a=3;else if(b===1){if(P>=0){var U={data:m.subarray(P,d-a-1),type:S};h.push(U)}else{var D=this.getLastNalUnit();if(D&&(l&&d<=4-l&&(D.state&&(D.data=D.data.subarray(0,D.data.byteLength-l))),w=d-a-1,w>0)){var j=new Uint8Array(D.data.byteLength+w);j.set(D.data,0),j.set(m.subarray(0,w),D.data.byteLength),D.data=j,D.state=0}}d<f?(A=m[d]&31,P=d,S=A,a=0):a=-1}else a=0}if(P>=0&&a>=0){var K={data:m.subarray(P,f),type:S,state:a};h.push(K)}if(h.length===0){var Z=this.getLastNalUnit();if(Z){var ne=new Uint8Array(Z.data.byteLength+m.byteLength);ne.set(Z.data,0),ne.set(m,Z.data.byteLength),Z.data=ne}}return u.naluState=a,h},p.parseAACPES=function(m){var f=0,u=this._audioTrack,a=this.aacOverFlow,l=m.data;if(a){this.aacOverFlow=null;var h=a.sample.unit.byteLength,d=Math.min(a.missing,h),b=h-d;a.sample.unit.set(l.subarray(0,d),b),u.samples.push(a.sample),f=a.missing}var w,A;for(w=f,A=l.length;w<A-1&&!M.isHeader(l,w);w++);if(w!==f){var P,S;if(w<A-1?(P="AAC PES did not start with ADTS header,offset:"+w,S=!1):(P="no ADTS header found in AAC PES",S=!0),v.logger.warn("parsing error:"+P),this.observer.emit(C.Events.ERROR,C.Events.ERROR,{type:g.ErrorTypes.MEDIA_ERROR,details:g.ErrorDetails.FRAG_PARSING_ERROR,fatal:S,reason:P}),S)return}M.initTrackConfig(u,this.observer,l,w,this.audioCodec);var U;if(m.pts!==void 0)U=m.pts;else if(a){var D=M.getFrameDuration(u.samplerate);U=a.sample.pts+D}else{v.logger.warn("[tsdemuxer]: AAC PES unknown PTS");return}for(var j=0;w<A;)if(M.isHeader(l,w)){if(w+5<A){var K=M.appendFrame(u,l,w,U,j);if(K)if(K.missing)this.aacOverFlow=K;else{w+=K.length,j++;continue}}break}else w++},p.parseMPEGPES=function(m){var f=m.data,u=f.length,a=0,l=0,h=m.pts;if(h===void 0){v.logger.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;l<u;)if(T.isHeader(f,l)){var d=T.appendFrame(this._audioTrack,f,l,h,a);if(d)l+=d.length,a++;else break}else l++},p.parseID3PES=function(m){if(m.pts===void 0){v.logger.warn("[tsdemuxer]: ID3 PES unknown PTS");return}this._id3Track.samples.push(m)},_}();s.minProbeByteLength=188;function n(_,p,E,m){return{key:_,frame:!1,pts:p,dts:E,units:[],debug:m,length:0}}function i(_,p){return(_[p+10]&31)<<8|_[p+11]}function o(_,p,E,m){var f={audio:-1,avc:-1,id3:-1,isAAC:!0},u=(_[p+1]&15)<<8|_[p+2],a=p+3+u-4,l=(_[p+10]&15)<<8|_[p+11];for(p+=12+l;p<a;){var h=(_[p+1]&31)<<8|_[p+2];switch(_[p]){case 207:if(!m){v.logger.log("ADTS AAC with AES-128-CBC frame encryption found in unencrypted stream");break}case 15:f.audio===-1&&(f.audio=h);break;case 21:f.id3===-1&&(f.id3=h);break;case 219:if(!m){v.logger.log("H.264 with AES-128-CBC slice encryption found in unencrypted stream");break}case 27:f.avc===-1&&(f.avc=h);break;case 3:case 4:E?f.audio===-1&&(f.audio=h,f.isAAC=!1):v.logger.log("MPEG audio found, not supported in this browser");break;case 36:v.logger.warn("Unsupported HEVC stream type found");break;default:break}p+=((_[p+3]&15)<<8|_[p+4])+5}return f}function e(_){var p=0,E,m,f,u,a,l=_.data;if(!_||_.size===0)return null;for(;l[0].length<19&&l.length>1;){var h=new Uint8Array(l[0].length+l[1].length);h.set(l[0]),h.set(l[1],l[0].length),l[0]=h,l.splice(1,1)}E=l[0];var d=(E[0]<<16)+(E[1]<<8)+E[2];if(d===1){if(m=(E[4]<<8)+E[5],m&&m>_.size-6)return null;var b=E[7];b&192&&(u=(E[9]&14)*536870912+(E[10]&255)*4194304+(E[11]&254)*16384+(E[12]&255)*128+(E[13]&254)/2,b&64?(a=(E[14]&14)*536870912+(E[15]&255)*4194304+(E[16]&254)*16384+(E[17]&255)*128+(E[18]&254)/2,u-a>60*9e4&&(v.logger.warn(Math.round((u-a)/9e4)+"s delta between PTS and DTS, align them"),u=a)):a=u),f=E[8];var w=f+9;if(_.size<=w)return null;_.size-=w;for(var A=new Uint8Array(_.size),P=0,S=l.length;P<S;P++){E=l[P];var U=E.byteLength;if(w)if(w>U){w-=U;continue}else E=E.subarray(w),U-=w,w=0;A.set(E,p),p+=U}return m&&(m-=f+3),{data:A,pts:u,dts:a,len:m}}return null}function t(_,p){if(_.units.length&&_.frame){if(_.pts===void 0){var E=p.samples,m=E.length;if(m){var f=E[m-1];_.pts=f.pts,_.dts=f.dts}else{p.dropped++;return}}p.samples.push(_)}_.debug.length&&v.logger.log(_.pts+"/"+_.dts+":"+_.debug)}function r(_,p){var E=_.length;if(E>0){if(p.pts>=_[E-1].pts)_.push(p);else for(var m=E-1;m>=0;m--)if(p.pts<_[m].pts){_.splice(m,0,p);break}}else _.push(p)}function y(_){for(var p=_.byteLength,E=[],m=1;m<p-2;)_[m]===0&&_[m+1]===0&&_[m+2]===3?(E.push(m+2),m+=2):m++;if(E.length===0)return _;var f=p-E.length,u=new Uint8Array(f),a=0;for(m=0;m<f;a++,m++)a===E[0]&&(a++,E.shift()),u[m]=_[a];return u}I.default=s},"./src/errors.ts":function(q,I,R){"use strict";R.r(I),R.d(I,"ErrorTypes",function(){return M}),R.d(I,"ErrorDetails",function(){return T});var M;(function(x){x.NETWORK_ERROR="networkError",x.MEDIA_ERROR="mediaError",x.KEY_SYSTEM_ERROR="keySystemError",x.MUX_ERROR="muxError",x.OTHER_ERROR="otherError"})(M||(M={}));var T;(function(x){x.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",x.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",x.KEY_SYSTEM_NO_SESSION="keySystemNoSession",x.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",x.KEY_SYSTEM_NO_INIT_DATA="keySystemNoInitData",x.MANIFEST_LOAD_ERROR="manifestLoadError",x.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",x.MANIFEST_PARSING_ERROR="manifestParsingError",x.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",x.LEVEL_EMPTY_ERROR="levelEmptyError",x.LEVEL_LOAD_ERROR="levelLoadError",x.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",x.LEVEL_SWITCH_ERROR="levelSwitchError",x.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",x.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",x.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",x.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",x.FRAG_LOAD_ERROR="fragLoadError",x.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",x.FRAG_DECRYPT_ERROR="fragDecryptError",x.FRAG_PARSING_ERROR="fragParsingError",x.REMUX_ALLOC_ERROR="remuxAllocError",x.KEY_LOAD_ERROR="keyLoadError",x.KEY_LOAD_TIMEOUT="keyLoadTimeOut",x.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",x.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",x.BUFFER_APPEND_ERROR="bufferAppendError",x.BUFFER_APPENDING_ERROR="bufferAppendingError",x.BUFFER_STALLED_ERROR="bufferStalledError",x.BUFFER_FULL_ERROR="bufferFullError",x.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",x.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",x.INTERNAL_EXCEPTION="internalException",x.INTERNAL_ABORTED="aborted",x.UNKNOWN="unknown"})(T||(T={}))},"./src/events.ts":function(q,I,R){"use strict";R.r(I),R.d(I,"Events",function(){return M});var M;(function(T){T.MEDIA_ATTACHING="hlsMediaAttaching",T.MEDIA_ATTACHED="hlsMediaAttached",T.MEDIA_DETACHING="hlsMediaDetaching",T.MEDIA_DETACHED="hlsMediaDetached",T.BUFFER_RESET="hlsBufferReset",T.BUFFER_CODECS="hlsBufferCodecs",T.BUFFER_CREATED="hlsBufferCreated",T.BUFFER_APPENDING="hlsBufferAppending",T.BUFFER_APPENDED="hlsBufferAppended",T.BUFFER_EOS="hlsBufferEos",T.BUFFER_FLUSHING="hlsBufferFlushing",T.BUFFER_FLUSHED="hlsBufferFlushed",T.MANIFEST_LOADING="hlsManifestLoading",T.MANIFEST_LOADED="hlsManifestLoaded",T.MANIFEST_PARSED="hlsManifestParsed",T.LEVEL_SWITCHING="hlsLevelSwitching",T.LEVEL_SWITCHED="hlsLevelSwitched",T.LEVEL_LOADING="hlsLevelLoading",T.LEVEL_LOADED="hlsLevelLoaded",T.LEVEL_UPDATED="hlsLevelUpdated",T.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",T.LEVELS_UPDATED="hlsLevelsUpdated",T.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",T.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",T.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",T.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",T.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",T.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",T.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",T.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",T.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",T.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",T.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",T.CUES_PARSED="hlsCuesParsed",T.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",T.INIT_PTS_FOUND="hlsInitPtsFound",T.FRAG_LOADING="hlsFragLoading",T.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",T.FRAG_LOADED="hlsFragLoaded",T.FRAG_DECRYPTED="hlsFragDecrypted",T.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",T.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",T.FRAG_PARSING_METADATA="hlsFragParsingMetadata",T.FRAG_PARSED="hlsFragParsed",T.FRAG_BUFFERED="hlsFragBuffered",T.FRAG_CHANGED="hlsFragChanged",T.FPS_DROP="hlsFpsDrop",T.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",T.ERROR="hlsError",T.DESTROYING="hlsDestroying",T.KEY_LOADING="hlsKeyLoading",T.KEY_LOADED="hlsKeyLoaded",T.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",T.BACK_BUFFER_REACHED="hlsBackBufferReached"})(M||(M={}))},"./src/hls.ts":function(q,I,R){"use strict";R.r(I),R.d(I,"default",function(){return _});var M=R("./node_modules/url-toolkit/src/url-toolkit.js"),T=R.n(M),x=R("./src/loader/playlist-loader.ts"),N=R("./src/loader/key-loader.ts"),L=R("./src/controller/id3-track-controller.ts"),C=R("./src/controller/latency-controller.ts"),O=R("./src/controller/level-controller.ts"),v=R("./src/controller/fragment-tracker.ts"),g=R("./src/controller/stream-controller.ts"),c=R("./src/is-supported.ts"),s=R("./src/utils/logger.ts"),n=R("./src/config.ts"),i=R("./node_modules/eventemitter3/index.js"),o=R.n(i),e=R("./src/events.ts"),t=R("./src/errors.ts");function r(p,E){for(var m=0;m<E.length;m++){var f=E[m];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(p,f.key,f)}}function y(p,E,m){return E&&r(p.prototype,E),m&&r(p,m),p}var _=function(){p.isSupported=function(){return Object(c.isSupported)()};function p(m){m===void 0&&(m={}),this.config=void 0,this.userConfig=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new i.EventEmitter,this._autoLevelCapping=void 0,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.streamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this.url=null;var f=this.config=Object(n.mergeConfig)(p.DefaultConfig,m);this.userConfig=m,Object(s.enableLogs)(f.debug),this._autoLevelCapping=-1,f.progressive&&Object(n.enableStreamingMode)(f);var u=f.abrController,a=f.bufferController,l=f.capLevelController,h=f.fpsController,d=this.abrController=new u(this),b=this.bufferController=new a(this),w=this.capLevelController=new l(this),A=new h(this),P=new x.default(this),S=new N.default(this),U=new L.default(this),D=this.levelController=new O.default(this),j=new v.FragmentTracker(this),K=this.streamController=new g.default(this,j);w.setStreamController(K),A.setStreamController(K);var Z=[D,K];this.networkControllers=Z;var ne=[P,S,d,b,w,A,U,j];this.audioTrackController=this.createController(f.audioTrackController,null,Z),this.createController(f.audioStreamController,j,Z),this.subtitleTrackController=this.createController(f.subtitleTrackController,null,Z),this.createController(f.subtitleStreamController,j,Z),this.createController(f.timelineController,null,ne),this.emeController=this.createController(f.emeController,null,ne),this.cmcdController=this.createController(f.cmcdController,null,ne),this.latencyController=this.createController(C.default,null,ne),this.coreComponents=ne}var E=p.prototype;return E.createController=function(f,u,a){if(f){var l=u?new f(this,u):new f(this);return a&&a.push(l),l}return null},E.on=function(f,u,a){a===void 0&&(a=this),this._emitter.on(f,u,a)},E.once=function(f,u,a){a===void 0&&(a=this),this._emitter.once(f,u,a)},E.removeAllListeners=function(f){this._emitter.removeAllListeners(f)},E.off=function(f,u,a,l){a===void 0&&(a=this),this._emitter.off(f,u,a,l)},E.listeners=function(f){return this._emitter.listeners(f)},E.emit=function(f,u,a){return this._emitter.emit(f,u,a)},E.trigger=function(f,u){if(this.config.debug)return this.emit(f,f,u);try{return this.emit(f,f,u)}catch(a){s.logger.error("An internal error happened while handling event "+f+'. Error message: "'+a.message+'". Here is a stacktrace:',a),this.trigger(e.Events.ERROR,{type:t.ErrorTypes.OTHER_ERROR,details:t.ErrorDetails.INTERNAL_EXCEPTION,fatal:!1,event:f,error:a})}return!1},E.listenerCount=function(f){return this._emitter.listenerCount(f)},E.destroy=function(){s.logger.log("destroy"),this.trigger(e.Events.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this.url=null,this.networkControllers.forEach(function(f){return f.destroy()}),this.networkControllers.length=0,this.coreComponents.forEach(function(f){return f.destroy()}),this.coreComponents.length=0},E.attachMedia=function(f){s.logger.log("attachMedia"),this._media=f,this.trigger(e.Events.MEDIA_ATTACHING,{media:f})},E.detachMedia=function(){s.logger.log("detachMedia"),this.trigger(e.Events.MEDIA_DETACHING,void 0),this._media=null},E.loadSource=function(f){this.stopLoad();var u=this.media,a=this.url,l=this.url=M.buildAbsoluteURL(self.location.href,f,{alwaysNormalize:!0});s.logger.log("loadSource:"+l),u&&a&&a!==l&&this.bufferController.hasSourceTypes()&&(this.detachMedia(),this.attachMedia(u)),this.trigger(e.Events.MANIFEST_LOADING,{url:f})},E.startLoad=function(f){f===void 0&&(f=-1),s.logger.log("startLoad("+f+")"),this.networkControllers.forEach(function(u){u.startLoad(f)})},E.stopLoad=function(){s.logger.log("stopLoad"),this.networkControllers.forEach(function(f){f.stopLoad()})},E.swapAudioCodec=function(){s.logger.log("swapAudioCodec"),this.streamController.swapAudioCodec()},E.recoverMediaError=function(){s.logger.log("recoverMediaError");var f=this._media;this.detachMedia(),f&&this.attachMedia(f)},E.removeLevel=function(f,u){u===void 0&&(u=0),this.levelController.removeLevel(f,u)},y(p,[{key:"levels",get:function(){var f=this.levelController.levels;return f||[]}},{key:"currentLevel",get:function(){return this.streamController.currentLevel},set:function(f){s.logger.log("set currentLevel:"+f),this.loadLevel=f,this.abrController.clearTimer(),this.streamController.immediateLevelSwitch()}},{key:"nextLevel",get:function(){return this.streamController.nextLevel},set:function(f){s.logger.log("set nextLevel:"+f),this.levelController.manualLevel=f,this.streamController.nextLevelSwitch()}},{key:"loadLevel",get:function(){return this.levelController.level},set:function(f){s.logger.log("set loadLevel:"+f),this.levelController.manualLevel=f}},{key:"nextLoadLevel",get:function(){return this.levelController.nextLoadLevel},set:function(f){this.levelController.nextLoadLevel=f}},{key:"firstLevel",get:function(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)},set:function(f){s.logger.log("set firstLevel:"+f),this.levelController.firstLevel=f}},{key:"startLevel",get:function(){return this.levelController.startLevel},set:function(f){s.logger.log("set startLevel:"+f),f!==-1&&(f=Math.max(f,this.minAutoLevel)),this.levelController.startLevel=f}},{key:"capLevelToPlayerSize",get:function(){return this.config.capLevelToPlayerSize},set:function(f){var u=!!f;u!==this.config.capLevelToPlayerSize&&(u?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=u)}},{key:"autoLevelCapping",get:function(){return this._autoLevelCapping},set:function(f){this._autoLevelCapping!==f&&(s.logger.log("set autoLevelCapping:"+f),this._autoLevelCapping=f)}},{key:"bandwidthEstimate",get:function(){var f=this.abrController.bwEstimator;return f?f.getEstimate():NaN}},{key:"autoLevelEnabled",get:function(){return this.levelController.manualLevel===-1}},{key:"manualLevel",get:function(){return this.levelController.manualLevel}},{key:"minAutoLevel",get:function(){var f=this.levels,u=this.config.minAutoBitrate;if(!f)return 0;for(var a=f.length,l=0;l<a;l++)if(f[l].maxBitrate>u)return l;return 0}},{key:"maxAutoLevel",get:function(){var f=this.levels,u=this.autoLevelCapping,a;return u===-1&&f&&f.length?a=f.length-1:a=u,a}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(f){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,f)}},{key:"audioTracks",get:function(){var f=this.audioTrackController;return f?f.audioTracks:[]}},{key:"audioTrack",get:function(){var f=this.audioTrackController;return f?f.audioTrack:-1},set:function(f){var u=this.audioTrackController;u&&(u.audioTrack=f)}},{key:"subtitleTracks",get:function(){var f=this.subtitleTrackController;return f?f.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var f=this.subtitleTrackController;return f?f.subtitleTrack:-1},set:function(f){var u=this.subtitleTrackController;u&&(u.subtitleTrack=f)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var f=this.subtitleTrackController;return f?f.subtitleDisplay:!1},set:function(f){var u=this.subtitleTrackController;u&&(u.subtitleDisplay=f)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(f){this.config.lowLatencyMode=f}},{key:"liveSyncPosition",get:function(){return this.latencyController.liveSyncPosition}},{key:"latency",get:function(){return this.latencyController.latency}},{key:"maxLatency",get:function(){return this.latencyController.maxLatency}},{key:"targetLatency",get:function(){return this.latencyController.targetLatency}},{key:"drift",get:function(){return this.latencyController.drift}},{key:"forceStartLoad",get:function(){return this.streamController.forceStartLoad}}],[{key:"version",get:function(){return"1.1.2"}},{key:"Events",get:function(){return e.Events}},{key:"ErrorTypes",get:function(){return t.ErrorTypes}},{key:"ErrorDetails",get:function(){return t.ErrorDetails}},{key:"DefaultConfig",get:function(){return p.defaultConfig?p.defaultConfig:n.hlsDefaultConfig},set:function(f){p.defaultConfig=f}}]),p}();_.defaultConfig=void 0},"./src/is-supported.ts":function(q,I,R){"use strict";R.r(I),R.d(I,"isSupported",function(){return x}),R.d(I,"changeTypeSupported",function(){return N});var M=R("./src/utils/mediasource-helper.ts");function T(){return self.SourceBuffer||self.WebKitSourceBuffer}function x(){var L=Object(M.getMediaSource)();if(!L)return!1;var C=T(),O=L&&typeof L.isTypeSupported=="function"&&L.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),v=!C||C.prototype&&typeof C.prototype.appendBuffer=="function"&&typeof C.prototype.remove=="function";return!!O&&!!v}function N(){var L,C=T();return typeof(C==null||((L=C.prototype)===null||L===void 0)?void 0:L.changeType)=="function"}},"./src/loader/fragment-loader.ts":function(q,I,R){"use strict";R.r(I),R.d(I,"default",function(){return s}),R.d(I,"LoadError",function(){return i});var M=R("./src/polyfills/number.ts"),T=R("./src/errors.ts");function x(o,e){o.prototype=Object.create(e.prototype),o.prototype.constructor=o,v(o,e)}function N(o){var e=typeof Map=="function"?new Map:void 0;return N=function(r){if(r===null||!O(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(r))return e.get(r);e.set(r,y)}function y(){return L(r,arguments,g(this).constructor)}return y.prototype=Object.create(r.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),v(y,r)},N(o)}function L(o,e,t){return C()?L=Reflect.construct:L=function(y,_,p){var E=[null];E.push.apply(E,_);var m=Function.bind.apply(y,E),f=new m;return p&&v(f,p.prototype),f},L.apply(null,arguments)}function C(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(o){return!1}}function O(o){return Function.toString.call(o).indexOf("[native code]")!==-1}function v(o,e){return v=Object.setPrototypeOf||function(r,y){return r.__proto__=y,r},v(o,e)}function g(o){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},g(o)}var c=Math.pow(2,17),s=function(){function o(t){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=t}var e=o.prototype;return e.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},e.abort=function(){this.loader&&this.loader.abort()},e.load=function(r,y){var _=this,p=r.url;if(!p)return Promise.reject(new i({type:T.ErrorTypes.NETWORK_ERROR,details:T.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:r,networkDetails:null},"Fragment does not have a "+(p?"part list":"url")));this.abort();var E=this.config,m=E.fLoader,f=E.loader;return new Promise(function(u,a){_.loader&&_.loader.destroy();var l=_.loader=r.loader=m?new m(E):new f(E),h=n(r),d={timeout:E.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:E.fragLoadingMaxRetryTimeout,highWaterMark:c};r.stats=l.stats,l.load(h,d,{onSuccess:function(w,A,P,S){_.resetLoader(r,l),u({frag:r,part:null,payload:w.data,networkDetails:S})},onError:function(w,A,P){_.resetLoader(r,l),a(new i({type:T.ErrorTypes.NETWORK_ERROR,details:T.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:r,response:w,networkDetails:P}))},onAbort:function(w,A,P){_.resetLoader(r,l),a(new i({type:T.ErrorTypes.NETWORK_ERROR,details:T.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:r,networkDetails:P}))},onTimeout:function(w,A,P){_.resetLoader(r,l),a(new i({type:T.ErrorTypes.NETWORK_ERROR,details:T.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:r,networkDetails:P}))},onProgress:function(w,A,P,S){y&&y({frag:r,part:null,payload:P,networkDetails:S})}})})},e.loadPart=function(r,y,_){var p=this;this.abort();var E=this.config,m=E.fLoader,f=E.loader;return new Promise(function(u,a){p.loader&&p.loader.destroy();var l=p.loader=r.loader=m?new m(E):new f(E),h=n(r,y),d={timeout:E.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:E.fragLoadingMaxRetryTimeout,highWaterMark:c};y.stats=l.stats,l.load(h,d,{onSuccess:function(w,A,P,S){p.resetLoader(r,l),p.updateStatsFromPart(r,y);var U={frag:r,part:y,payload:w.data,networkDetails:S};_(U),u(U)},onError:function(w,A,P){p.resetLoader(r,l),a(new i({type:T.ErrorTypes.NETWORK_ERROR,details:T.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:r,part:y,response:w,networkDetails:P}))},onAbort:function(w,A,P){r.stats.aborted=y.stats.aborted,p.resetLoader(r,l),a(new i({type:T.ErrorTypes.NETWORK_ERROR,details:T.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:r,part:y,networkDetails:P}))},onTimeout:function(w,A,P){p.resetLoader(r,l),a(new i({type:T.ErrorTypes.NETWORK_ERROR,details:T.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:r,part:y,networkDetails:P}))}})})},e.updateStatsFromPart=function(r,y){var _=r.stats,p=y.stats,E=p.total;if(_.loaded+=p.loaded,E){var m=Math.round(r.duration/y.duration),f=Math.min(Math.round(_.loaded/E),m),u=m-f,a=u*Math.round(_.loaded/f);_.total=_.loaded+a}else _.total=Math.max(_.loaded,_.total);var l=_.loading,h=p.loading;l.start?l.first+=h.first-h.start:(l.start=h.start,l.first=h.first),l.end=h.end},e.resetLoader=function(r,y){r.loader=null,this.loader===y&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),y.destroy()},o}();function n(o,e){e===void 0&&(e=null);var t=e||o,r={frag:o,part:e,responseType:"arraybuffer",url:t.url,headers:{},rangeStart:0,rangeEnd:0},y=t.byteRangeStartOffset,_=t.byteRangeEndOffset;return Object(M.isFiniteNumber)(y)&&Object(M.isFiniteNumber)(_)&&(r.rangeStart=y,r.rangeEnd=_),r}var i=function(o){x(e,o);function e(t){for(var r,y=arguments.length,_=new Array(y>1?y-1:0),p=1;p<y;p++)_[p-1]=arguments[p];return r=o.call.apply(o,[this].concat(_))||this,r.data=void 0,r.data=t,r}return e}(N(Error))},"./src/loader/fragment.ts":function(q,I,R){"use strict";R.r(I),R.d(I,"ElementaryStreamTypes",function(){return s}),R.d(I,"BaseSegment",function(){return n}),R.d(I,"Fragment",function(){return i}),R.d(I,"Part",function(){return o});var M=R("./src/polyfills/number.ts"),T=R("./node_modules/url-toolkit/src/url-toolkit.js"),x=R.n(T),N=R("./src/utils/logger.ts"),L=R("./src/loader/level-key.ts"),C=R("./src/loader/load-stats.ts");function O(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,v(e,t)}function v(e,t){return v=Object.setPrototypeOf||function(y,_){return y.__proto__=_,y},v(e,t)}function g(e,t){for(var r=0;r<t.length;r++){var y=t[r];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(e,y.key,y)}}function c(e,t,r){return t&&g(e.prototype,t),r&&g(e,r),e}var s;(function(e){e.AUDIO="audio",e.VIDEO="video",e.AUDIOVIDEO="audiovideo"})(s||(s={}));var n=function(){function e(r){var y;this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams=(y={},y[s.AUDIO]=null,y[s.VIDEO]=null,y[s.AUDIOVIDEO]=null,y),this.baseurl=r}var t=e.prototype;return t.setByteRange=function(y,_){var p=y.split("@",2),E=[];p.length===1?E[0]=_?_.byteRangeEndOffset:0:E[0]=parseInt(p[1]),E[1]=parseInt(p[0])+E[0],this._byteRange=E},c(e,[{key:"byteRange",get:function(){return this._byteRange?this._byteRange:[]}},{key:"byteRangeStartOffset",get:function(){return this.byteRange[0]}},{key:"byteRangeEndOffset",get:function(){return this.byteRange[1]}},{key:"url",get:function(){return!this._url&&this.baseurl&&this.relurl&&(this._url=Object(T.buildAbsoluteURL)(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""},set:function(y){this._url=y}}]),e}(),i=function(e){O(t,e);function t(y,_){var p;return p=e.call(this,_)||this,p._decryptdata=null,p.rawProgramDateTime=null,p.programDateTime=null,p.tagList=[],p.duration=0,p.sn=0,p.levelkey=void 0,p.type=void 0,p.loader=null,p.level=-1,p.cc=0,p.startPTS=void 0,p.endPTS=void 0,p.appendedPTS=void 0,p.startDTS=void 0,p.endDTS=void 0,p.start=0,p.deltaPTS=void 0,p.maxStartPTS=void 0,p.minEndPTS=void 0,p.stats=new C.LoadStats,p.urlId=0,p.data=void 0,p.bitrateTest=!1,p.title=null,p.initSegment=null,p.type=y,p}var r=t.prototype;return r.createInitializationVector=function(_){for(var p=new Uint8Array(16),E=12;E<16;E++)p[E]=_>>8*(15-E)&255;return p},r.setDecryptDataFromLevelKey=function(_,p){var E=_;return(_==null?void 0:_.method)==="AES-128"&&_.uri&&!_.iv&&(E=L.LevelKey.fromURI(_.uri),E.method=_.method,E.iv=this.createInitializationVector(p),E.keyFormat="identity"),E},r.setElementaryStreamInfo=function(_,p,E,m,f,u){u===void 0&&(u=!1);var a=this.elementaryStreams,l=a[_];if(!l){a[_]={startPTS:p,endPTS:E,startDTS:m,endDTS:f,partial:u};return}l.startPTS=Math.min(l.startPTS,p),l.endPTS=Math.max(l.endPTS,E),l.startDTS=Math.min(l.startDTS,m),l.endDTS=Math.max(l.endDTS,f)},r.clearElementaryStreamInfo=function(){var _=this.elementaryStreams;_[s.AUDIO]=null,_[s.VIDEO]=null,_[s.AUDIOVIDEO]=null},c(t,[{key:"decryptdata",get:function(){if(!this.levelkey&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkey){var _=this.sn;typeof _!="number"&&(this.levelkey&&this.levelkey.method==="AES-128"&&!this.levelkey.iv&&N.logger.warn('missing IV for initialization segment with method="'+this.levelkey.method+'" - compliance issue'),_=0),this._decryptdata=this.setDecryptDataFromLevelKey(this.levelkey,_)}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(this.programDateTime===null)return null;if(!Object(M.isFiniteNumber)(this.programDateTime))return null;var _=Object(M.isFiniteNumber)(this.duration)?this.duration:0;return this.programDateTime+_*1e3}},{key:"encrypted",get:function(){var _;return!!((_=this.decryptdata)!==null&&_!==void 0&&_.keyFormat&&this.decryptdata.uri)}}]),t}(n),o=function(e){O(t,e);function t(r,y,_,p,E){var m;m=e.call(this,_)||this,m.fragOffset=0,m.duration=0,m.gap=!1,m.independent=!1,m.relurl=void 0,m.fragment=void 0,m.index=void 0,m.stats=new C.LoadStats,m.duration=r.decimalFloatingPoint("DURATION"),m.gap=r.bool("GAP"),m.independent=r.bool("INDEPENDENT"),m.relurl=r.enumeratedString("URI"),m.fragment=y,m.index=p;var f=r.enumeratedString("BYTERANGE");return f&&m.setByteRange(f,E),E&&(m.fragOffset=E.fragOffset+E.duration),m}return c(t,[{key:"start",get:function(){return this.fragment.start+this.fragOffset}},{key:"end",get:function(){return this.start+this.duration}},{key:"loaded",get:function(){var y=this.elementaryStreams;return!!(y.audio||y.video||y.audiovideo)}}]),t}(n)},"./src/loader/key-loader.ts":function(q,I,R){"use strict";R.r(I),R.d(I,"default",function(){return N});var M=R("./src/events.ts"),T=R("./src/errors.ts"),x=R("./src/utils/logger.ts"),N=function(){function L(O){this.hls=void 0,this.loaders={},this.decryptkey=null,this.decrypturl=null,this.hls=O,this._registerListeners()}var C=L.prototype;return C._registerListeners=function(){this.hls.on(M.Events.KEY_LOADING,this.onKeyLoading,this)},C._unregisterListeners=function(){this.hls.off(M.Events.KEY_LOADING,this.onKeyLoading)},C.destroy=function(){this._unregisterListeners();for(var v in this.loaders){var g=this.loaders[v];g&&g.destroy()}this.loaders={}},C.onKeyLoading=function(v,g){var c=g.frag,s=c.type,n=this.loaders[s];if(!c.decryptdata){x.logger.warn("Missing decryption data on fragment in onKeyLoading");return}var i=c.decryptdata.uri;if(i!==this.decrypturl||this.decryptkey===null){var o=this.hls.config;if(n&&(x.logger.warn("abort previous key loader for type:"+s),n.abort()),!i){x.logger.warn("key uri is falsy");return}var e=o.loader,t=c.loader=this.loaders[s]=new e(o);this.decrypturl=i,this.decryptkey=null;var r={url:i,frag:c,responseType:"arraybuffer"},y={timeout:o.fragLoadingTimeOut,maxRetry:0,retryDelay:o.fragLoadingRetryDelay,maxRetryDelay:o.fragLoadingMaxRetryTimeout,highWaterMark:0},_={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};t.load(r,y,_)}else this.decryptkey&&(c.decryptdata.key=this.decryptkey,this.hls.trigger(M.Events.KEY_LOADED,{frag:c}))},C.loadsuccess=function(v,g,c){var s=c.frag;if(!s.decryptdata){x.logger.error("after key load, decryptdata unset");return}this.decryptkey=s.decryptdata.key=new Uint8Array(v.data),s.loader=null,delete this.loaders[s.type],this.hls.trigger(M.Events.KEY_LOADED,{frag:s})},C.loaderror=function(v,g){var c=g.frag,s=c.loader;s&&s.abort(),delete this.loaders[c.type],this.hls.trigger(M.Events.ERROR,{type:T.ErrorTypes.NETWORK_ERROR,details:T.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:c,response:v})},C.loadtimeout=function(v,g){var c=g.frag,s=c.loader;s&&s.abort(),delete this.loaders[c.type],this.hls.trigger(M.Events.ERROR,{type:T.ErrorTypes.NETWORK_ERROR,details:T.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:c})},L}()},"./src/loader/level-details.ts":function(q,I,R){"use strict";R.r(I),R.d(I,"LevelDetails",function(){return L});var M=R("./src/polyfills/number.ts");function T(C,O){for(var v=0;v<O.length;v++){var g=O[v];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(C,g.key,g)}}function x(C,O,v){return O&&T(C.prototype,O),v&&T(C,v),C}var N=10,L=function(){function C(v){this.PTSKnown=!1,this.alignedSliding=!1,this.averagetargetduration=void 0,this.endCC=0,this.endSN=0,this.fragments=void 0,this.fragmentHint=void 0,this.partList=null,this.live=!0,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.availabilityDelay=void 0,this.misses=0,this.needSidxRanges=!1,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=void 0,this.m3u8="",this.version=null,this.canBlockReload=!1,this.canSkipUntil=0,this.canSkipDateRanges=!1,this.skippedSegments=0,this.recentlyRemovedDateranges=void 0,this.partHoldBack=0,this.holdBack=0,this.partTarget=0,this.preloadHint=void 0,this.renditionReports=void 0,this.tuneInGoal=0,this.deltaUpdateFailed=void 0,this.driftStartTime=0,this.driftEndTime=0,this.driftStart=0,this.driftEnd=0,this.fragments=[],this.url=v}var O=C.prototype;return O.reloaded=function(g){if(!g){this.advanced=!0,this.updated=!0;return}var c=this.lastPartSn-g.lastPartSn,s=this.lastPartIndex-g.lastPartIndex;this.updated=this.endSN!==g.endSN||!!s||!!c,this.advanced=this.endSN>g.endSN||c>0||c===0&&s>0,this.updated||this.advanced?this.misses=Math.floor(g.misses*.6):this.misses=g.misses+1,this.availabilityDelay=g.availabilityDelay},x(C,[{key:"hasProgramDateTime",get:function(){return this.fragments.length?Object(M.isFiniteNumber)(this.fragments[this.fragments.length-1].programDateTime):!1}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||N}},{key:"drift",get:function(){var g=this.driftEndTime-this.driftStartTime;if(g>0){var c=this.driftEnd-this.driftStart;return c*1e3/g}return 1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var g;return(g=this.partList)!==null&&g!==void 0&&g.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var g;return(g=this.fragments)!==null&&g!==void 0&&g.length?this.fragments[this.fragments.length-1].end:0}},{key:"age",get:function(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}},{key:"lastPartIndex",get:function(){var g;return(g=this.partList)!==null&&g!==void 0&&g.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var g;return(g=this.partList)!==null&&g!==void 0&&g.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),C}()},"./src/loader/level-key.ts":function(q,I,R){"use strict";R.r(I),R.d(I,"LevelKey",function(){return L});var M=R("./node_modules/url-toolkit/src/url-toolkit.js"),T=R.n(M);function x(C,O){for(var v=0;v<O.length;v++){var g=O[v];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(C,g.key,g)}}function N(C,O,v){return O&&x(C.prototype,O),v&&x(C,v),C}var L=function(){C.fromURL=function(v,g){return new C(v,g)},C.fromURI=function(v){return new C(v)};function C(O,v){this._uri=null,this.method=null,this.keyFormat=null,this.keyFormatVersions=null,this.keyID=null,this.key=null,this.iv=null,v?this._uri=Object(M.buildAbsoluteURL)(O,v,{alwaysNormalize:!0}):this._uri=O}return N(C,[{key:"uri",get:function(){return this._uri}}]),C}()},"./src/loader/load-stats.ts":function(q,I,R){"use strict";R.r(I),R.d(I,"LoadStats",function(){return M});var M=function(){this.aborted=!1,this.loaded=0,this.retry=0,this.total=0,this.chunkCount=0,this.bwEstimate=0,this.loading={start:0,first:0,end:0},this.parsing={start:0,end:0},this.buffering={start:0,first:0,end:0}}},"./src/loader/m3u8-parser.ts":function(q,I,R){"use strict";R.r(I),R.d(I,"default",function(){return t});var M=R("./src/polyfills/number.ts"),T=R("./node_modules/url-toolkit/src/url-toolkit.js"),x=R.n(T),N=R("./src/loader/fragment.ts"),L=R("./src/loader/level-details.ts"),C=R("./src/loader/level-key.ts"),O=R("./src/utils/attr-list.ts"),v=R("./src/utils/logger.ts"),g=R("./src/utils/codecs.ts"),c=/#EXT-X-STREAM-INF:([^\r\n]*)(?:[\r\n](?:#[^\r\n]*)?)*([^\r\n]+)|#EXT-X-SESSION-DATA:([^\r\n]*)[\r\n]+/g,s=/#EXT-X-MEDIA:(.*)/g,n=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[\S ]*)/.source,/#EXT-X-BYTERANGE:*(.+)/.source,/#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/#.*/.source].join("|"),"g"),i=new RegExp([/#(EXTM3U)/.source,/#EXT-X-(PLAYLIST-TYPE):(.+)/.source,/#EXT-X-(MEDIA-SEQUENCE): *(\d+)/.source,/#EXT-X-(SKIP):(.+)/.source,/#EXT-X-(TARGETDURATION): *(\d+)/.source,/#EXT-X-(KEY):(.+)/.source,/#EXT-X-(START):(.+)/.source,/#EXT-X-(ENDLIST)/.source,/#EXT-X-(DISCONTINUITY-SEQ)UENCE: *(\d+)/.source,/#EXT-X-(DIS)CONTINUITY/.source,/#EXT-X-(VERSION):(\d+)/.source,/#EXT-X-(MAP):(.+)/.source,/#EXT-X-(SERVER-CONTROL):(.+)/.source,/#EXT-X-(PART-INF):(.+)/.source,/#EXT-X-(GAP)/.source,/#EXT-X-(BITRATE):\s*(\d+)/.source,/#EXT-X-(PART):(.+)/.source,/#EXT-X-(PRELOAD-HINT):(.+)/.source,/#EXT-X-(RENDITION-REPORT):(.+)/.source,/(#)([^:]*):(.*)/.source,/(#)(.*)(?:.*)\r?\n?/.source].join("|")),o=/\.(mp4|m4s|m4v|m4a)$/i;function e(E){var m,f;return o.test((m=(f=T.parseURL(E))===null||f===void 0?void 0:f.path)!=null?m:"")}var t=function(){function E(){}return E.findGroup=function(f,u){for(var a=0;a<f.length;a++){var l=f[a];if(l.id===u)return l}},E.convertAVC1ToAVCOTI=function(f){var u=f.split(".");if(u.length>2){var a=u.shift()+".";return a+=parseInt(u.shift()).toString(16),a+=("000"+parseInt(u.shift()).toString(16)).substr(-4),a}return f},E.resolve=function(f,u){return T.buildAbsoluteURL(u,f,{alwaysNormalize:!0})},E.parseMasterPlaylist=function(f,u){var a=[],l={},h=!1;c.lastIndex=0;for(var d;(d=c.exec(f))!=null;)if(d[1]){var b=new O.AttrList(d[1]),w={attrs:b,bitrate:b.decimalInteger("AVERAGE-BANDWIDTH")||b.decimalInteger("BANDWIDTH"),name:b.NAME,url:E.resolve(d[2],u)},A=b.decimalResolution("RESOLUTION");A&&(w.width=A.width,w.height=A.height),r((b.CODECS||"").split(/[ ,]+/).filter(function(S){return S}),w),w.videoCodec&&w.videoCodec.indexOf("avc1")!==-1&&(w.videoCodec=E.convertAVC1ToAVCOTI(w.videoCodec)),a.push(w)}else if(d[3]){var P=new O.AttrList(d[3]);P["DATA-ID"]&&(h=!0,l[P["DATA-ID"]]=P)}return{levels:a,sessionData:h?l:null}},E.parseMasterPlaylistMedia=function(f,u,a,l){l===void 0&&(l=[]);var h,d=[],b=0;for(s.lastIndex=0;(h=s.exec(f))!==null;){var w=new O.AttrList(h[1]);if(w.TYPE===a){var A={attrs:w,bitrate:0,id:b++,groupId:w["GROUP-ID"],instreamId:w["INSTREAM-ID"],name:w.NAME||w.LANGUAGE||"",type:a,default:w.bool("DEFAULT"),autoselect:w.bool("AUTOSELECT"),forced:w.bool("FORCED"),lang:w.LANGUAGE,url:w.URI?E.resolve(w.URI,u):""};if(l.length){var P=E.findGroup(l,A.groupId)||l[0];y(A,P,"audioCodec"),y(A,P,"textCodec")}d.push(A)}}return d},E.parseLevelPlaylist=function(f,u,a,l,h){var d=new L.LevelDetails(u),b=d.fragments,w=null,A=0,P=0,S=0,U=0,D=null,j=new N.Fragment(l,u),K,Z,ne,me=-1,he=!1;for(n.lastIndex=0,d.m3u8=f;(K=n.exec(f))!==null;){he&&(he=!1,j=new N.Fragment(l,u),j.start=S,j.sn=A,j.cc=U,j.level=a,w&&(j.initSegment=w,j.rawProgramDateTime=w.rawProgramDateTime));var Y=K[1];if(Y){j.duration=parseFloat(Y);var le=(" "+K[2]).slice(1);j.title=le||null,j.tagList.push(le?["INF",Y,le]:["INF",Y])}else if(K[3])Object(M.isFiniteNumber)(j.duration)&&(j.start=S,ne&&(j.levelkey=ne),j.sn=A,j.level=a,j.cc=U,j.urlId=h,b.push(j),j.relurl=(" "+K[3]).slice(1),p(j,D),D=j,S+=j.duration,A++,P=0,he=!0);else if(K[4]){var ge=(" "+K[4]).slice(1);D?j.setByteRange(ge,D):j.setByteRange(ge)}else if(K[5])j.rawProgramDateTime=(" "+K[5]).slice(1),j.tagList.push(["PROGRAM-DATE-TIME",j.rawProgramDateTime]),me===-1&&(me=b.length);else{if(K=K[0].match(i),!K){v.logger.warn("No matches on slow regex match for level playlist!");continue}for(Z=1;Z<K.length&&!(typeof K[Z]!="undefined");Z++);var re=(" "+K[Z]).slice(1),te=(" "+K[Z+1]).slice(1),be=K[Z+2]?(" "+K[Z+2]).slice(1):"";switch(re){case"PLAYLIST-TYPE":d.type=te.toUpperCase();break;case"MEDIA-SEQUENCE":A=d.startSN=parseInt(te);break;case"SKIP":{var ze=new O.AttrList(te),Ge=ze.decimalInteger("SKIPPED-SEGMENTS");if(Object(M.isFiniteNumber)(Ge)){d.skippedSegments=Ge;for(var Ue=Ge;Ue--;)b.unshift(null);A+=Ge}var Ze=ze.enumeratedString("RECENTLY-REMOVED-DATERANGES");Ze&&(d.recentlyRemovedDateranges=Ze.split(" "));break}case"TARGETDURATION":d.targetduration=parseFloat(te);break;case"VERSION":d.version=parseInt(te);break;case"EXTM3U":break;case"ENDLIST":d.live=!1;break;case"#":(te||be)&&j.tagList.push(be?[te,be]:[te]);break;case"DIS":U++;case"GAP":j.tagList.push([re]);break;case"BITRATE":j.tagList.push([re,te]);break;case"DISCONTINUITY-SEQ":U=parseInt(te);break;case"KEY":{var Pe,Me=new O.AttrList(te),je=Me.enumeratedString("METHOD"),Ve=Me.URI,Ke=Me.hexadecimalInteger("IV"),Ie=Me.enumeratedString("KEYFORMATVERSIONS"),Le=Me.enumeratedString("KEYID"),st=(Pe=Me.enumeratedString("KEYFORMAT"))!=null?Pe:"identity",nt=["com.apple.streamingkeydelivery","com.microsoft.playready","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed","com.widevine"];if(nt.indexOf(st)>-1){v.logger.warn("Keyformat "+st+" is not supported from the manifest");continue}else if(st!=="identity")continue;je&&(ne=C.LevelKey.fromURL(u,Ve),Ve&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(je)>=0&&(ne.method=je,ne.keyFormat=st,Le&&(ne.keyID=Le),Ie&&(ne.keyFormatVersions=Ie),ne.iv=Ke));break}case"START":{var $e=new O.AttrList(te),Xe=$e.decimalFloatingPoint("TIME-OFFSET");Object(M.isFiniteNumber)(Xe)&&(d.startTimeOffset=Xe);break}case"MAP":{var ut=new O.AttrList(te);j.relurl=ut.URI,ut.BYTERANGE&&j.setByteRange(ut.BYTERANGE),j.level=a,j.sn="initSegment",ne&&(j.levelkey=ne),j.initSegment=null,w=j,he=!0;break}case"SERVER-CONTROL":{var dt=new O.AttrList(te);d.canBlockReload=dt.bool("CAN-BLOCK-RELOAD"),d.canSkipUntil=dt.optionalFloat("CAN-SKIP-UNTIL",0),d.canSkipDateRanges=d.canSkipUntil>0&&dt.bool("CAN-SKIP-DATERANGES"),d.partHoldBack=dt.optionalFloat("PART-HOLD-BACK",0),d.holdBack=dt.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var ce=new O.AttrList(te);d.partTarget=ce.decimalFloatingPoint("PART-TARGET");break}case"PART":{var ve=d.partList;ve||(ve=d.partList=[]);var xe=P>0?ve[ve.length-1]:void 0,Se=P++,pe=new N.Part(new O.AttrList(te),j,u,Se,xe);ve.push(pe),j.duration+=pe.duration;break}case"PRELOAD-HINT":{var Oe=new O.AttrList(te);d.preloadHint=Oe;break}case"RENDITION-REPORT":{var ie=new O.AttrList(te);d.renditionReports=d.renditionReports||[],d.renditionReports.push(ie);break}default:v.logger.warn("line parsed but not handled: "+K);break}}}D&&!D.relurl?(b.pop(),S-=D.duration,d.partList&&(d.fragmentHint=D)):d.partList&&(p(j,D),j.cc=U,d.fragmentHint=j);var Q=b.length,X=b[0],B=b[Q-1];if(S+=d.skippedSegments*d.targetduration,S>0&&Q&&B){d.averagetargetduration=S/Q;var W=B.sn;d.endSN=W!=="initSegment"?W:0,X&&(d.startCC=X.cc,X.initSegment||d.fragments.every(function(G){return G.relurl&&e(G.relurl)})&&(v.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),j=new N.Fragment(l,u),j.relurl=B.relurl,j.level=a,j.sn="initSegment",X.initSegment=j,d.needSidxRanges=!0))}else d.endSN=0,d.startCC=0;return d.fragmentHint&&(S+=d.fragmentHint.duration),d.totalduration=S,d.endCC=U,me>0&&_(b,me),d},E}();function r(E,m){["video","audio","text"].forEach(function(f){var u=E.filter(function(l){return Object(g.isCodecType)(l,f)});if(u.length){var a=u.filter(function(l){return l.lastIndexOf("avc1",0)===0||l.lastIndexOf("mp4a",0)===0});m[f+"Codec"]=a.length>0?a[0]:u[0],E=E.filter(function(l){return u.indexOf(l)===-1})}}),m.unknownCodecs=E}function y(E,m,f){var u=m[f];u&&(E[f]=u)}function _(E,m){for(var f=E[m],u=m;u--;){var a=E[u];if(!a)return;a.programDateTime=f.programDateTime-a.duration*1e3,f=a}}function p(E,m){E.rawProgramDateTime?E.programDateTime=Date.parse(E.rawProgramDateTime):m!=null&&m.programDateTime&&(E.programDateTime=m.endProgramDateTime),Object(M.isFiniteNumber)(E.programDateTime)||(E.programDateTime=null,E.rawProgramDateTime=null)}},"./src/loader/playlist-loader.ts":function(q,I,R){"use strict";R.r(I);var M=R("./src/polyfills/number.ts"),T=R("./src/events.ts"),x=R("./src/errors.ts"),N=R("./src/utils/logger.ts"),L=R("./src/utils/mp4-tools.ts"),C=R("./src/loader/m3u8-parser.ts"),O=R("./src/types/loader.ts"),v=R("./src/utils/attr-list.ts");function g(n){var i=n.type;switch(i){case O.PlaylistContextType.AUDIO_TRACK:return O.PlaylistLevelType.AUDIO;case O.PlaylistContextType.SUBTITLE_TRACK:return O.PlaylistLevelType.SUBTITLE;default:return O.PlaylistLevelType.MAIN}}function c(n,i){var o=n.url;return(o===void 0||o.indexOf("data:")===0)&&(o=i.url),o}var s=function(){function n(o){this.hls=void 0,this.loaders=Object.create(null),this.hls=o,this.registerListeners()}var i=n.prototype;return i.registerListeners=function(){var e=this.hls;e.on(T.Events.MANIFEST_LOADING,this.onManifestLoading,this),e.on(T.Events.LEVEL_LOADING,this.onLevelLoading,this),e.on(T.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.on(T.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},i.unregisterListeners=function(){var e=this.hls;e.off(T.Events.MANIFEST_LOADING,this.onManifestLoading,this),e.off(T.Events.LEVEL_LOADING,this.onLevelLoading,this),e.off(T.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.off(T.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},i.createInternalLoader=function(e){var t=this.hls.config,r=t.pLoader,y=t.loader,_=r||y,p=new _(t);return e.loader=p,this.loaders[e.type]=p,p},i.getInternalLoader=function(e){return this.loaders[e.type]},i.resetInternalLoader=function(e){this.loaders[e]&&delete this.loaders[e]},i.destroyInternalLoaders=function(){for(var e in this.loaders){var t=this.loaders[e];t&&t.destroy(),this.resetInternalLoader(e)}},i.destroy=function(){this.unregisterListeners(),this.destroyInternalLoaders()},i.onManifestLoading=function(e,t){var r=t.url;this.load({id:null,groupId:null,level:0,responseType:"text",type:O.PlaylistContextType.MANIFEST,url:r,deliveryDirectives:null})},i.onLevelLoading=function(e,t){var r=t.id,y=t.level,_=t.url,p=t.deliveryDirectives;this.load({id:r,groupId:null,level:y,responseType:"text",type:O.PlaylistContextType.LEVEL,url:_,deliveryDirectives:p})},i.onAudioTrackLoading=function(e,t){var r=t.id,y=t.groupId,_=t.url,p=t.deliveryDirectives;this.load({id:r,groupId:y,level:null,responseType:"text",type:O.PlaylistContextType.AUDIO_TRACK,url:_,deliveryDirectives:p})},i.onSubtitleTrackLoading=function(e,t){var r=t.id,y=t.groupId,_=t.url,p=t.deliveryDirectives;this.load({id:r,groupId:y,level:null,responseType:"text",type:O.PlaylistContextType.SUBTITLE_TRACK,url:_,deliveryDirectives:p})},i.load=function(e){var t,r=this.hls.config,y=this.getInternalLoader(e);if(y){var _=y.context;if(_&&_.url===e.url){N.logger.trace("[playlist-loader]: playlist request ongoing");return}N.logger.log("[playlist-loader]: aborting previous loader for type: "+e.type),y.abort()}var p,E,m,f;switch(e.type){case O.PlaylistContextType.MANIFEST:p=r.manifestLoadingMaxRetry,E=r.manifestLoadingTimeOut,m=r.manifestLoadingRetryDelay,f=r.manifestLoadingMaxRetryTimeout;break;case O.PlaylistContextType.LEVEL:case O.PlaylistContextType.AUDIO_TRACK:case O.PlaylistContextType.SUBTITLE_TRACK:p=0,E=r.levelLoadingTimeOut;break;default:p=r.levelLoadingMaxRetry,E=r.levelLoadingTimeOut,m=r.levelLoadingRetryDelay,f=r.levelLoadingMaxRetryTimeout;break}if(y=this.createInternalLoader(e),(t=e.deliveryDirectives)!==null&&t!==void 0&&t.part){var u;if(e.type===O.PlaylistContextType.LEVEL&&e.level!==null?u=this.hls.levels[e.level].details:e.type===O.PlaylistContextType.AUDIO_TRACK&&e.id!==null?u=this.hls.audioTracks[e.id].details:e.type===O.PlaylistContextType.SUBTITLE_TRACK&&e.id!==null&&(u=this.hls.subtitleTracks[e.id].details),u){var a=u.partTarget,l=u.targetduration;a&&l&&(E=Math.min(Math.max(a*3,l*.8)*1e3,E))}}var h={timeout:E,maxRetry:p,retryDelay:m,maxRetryDelay:f,highWaterMark:0},d={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};y.load(e,h,d)},i.loadsuccess=function(e,t,r,y){if(y===void 0&&(y=null),r.isSidxRequest){this.handleSidxRequest(e,r),this.handlePlaylistLoaded(e,t,r,y);return}this.resetInternalLoader(r.type);var _=e.data;if(_.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(e,r,"no EXTM3U delimiter",y);return}t.parsing.start=performance.now(),_.indexOf("#EXTINF:")>0||_.indexOf("#EXT-X-TARGETDURATION:")>0?this.handleTrackOrLevelPlaylist(e,t,r,y):this.handleMasterPlaylist(e,t,r,y)},i.loaderror=function(e,t,r){r===void 0&&(r=null),this.handleNetworkError(t,r,!1,e)},i.loadtimeout=function(e,t,r){r===void 0&&(r=null),this.handleNetworkError(t,r,!0)},i.handleMasterPlaylist=function(e,t,r,y){var _=this.hls,p=e.data,E=c(e,r),m=C.default.parseMasterPlaylist(p,E),f=m.levels,u=m.sessionData;if(!f.length){this.handleManifestParsingError(e,r,"no level found in manifest",y);return}var a=f.map(function(A){return{id:A.attrs.AUDIO,audioCodec:A.audioCodec}}),l=f.map(function(A){return{id:A.attrs.SUBTITLES,textCodec:A.textCodec}}),h=C.default.parseMasterPlaylistMedia(p,E,"AUDIO",a),d=C.default.parseMasterPlaylistMedia(p,E,"SUBTITLES",l),b=C.default.parseMasterPlaylistMedia(p,E,"CLOSED-CAPTIONS");if(h.length){var w=h.some(function(A){return!A.url});!w&&f[0].audioCodec&&!f[0].attrs.AUDIO&&(N.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),h.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new v.AttrList({}),bitrate:0,url:""}))}_.trigger(T.Events.MANIFEST_LOADED,{levels:f,audioTracks:h,subtitles:d,captions:b,url:E,stats:t,networkDetails:y,sessionData:u})},i.handleTrackOrLevelPlaylist=function(e,t,r,y){var _=this.hls,p=r.id,E=r.level,m=r.type,f=c(e,r),u=Object(M.isFiniteNumber)(p)?p:0,a=Object(M.isFiniteNumber)(E)?E:u,l=g(r),h=C.default.parseLevelPlaylist(e.data,f,a,l,u);if(!h.fragments.length){_.trigger(T.Events.ERROR,{type:x.ErrorTypes.NETWORK_ERROR,details:x.ErrorDetails.LEVEL_EMPTY_ERROR,fatal:!1,url:f,reason:"no fragments found in level",level:typeof r.level=="number"?r.level:void 0});return}if(m===O.PlaylistContextType.MANIFEST){var d={attrs:new v.AttrList({}),bitrate:0,details:h,name:"",url:f};_.trigger(T.Events.MANIFEST_LOADED,{levels:[d],audioTracks:[],url:f,stats:t,networkDetails:y,sessionData:null})}if(t.parsing.end=performance.now(),h.needSidxRanges){var b,w=(b=h.fragments[0].initSegment)===null||b===void 0?void 0:b.url;this.load({url:w,isSidxRequest:!0,type:m,level:E,levelDetails:h,id:p,groupId:null,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer",deliveryDirectives:null});return}r.levelDetails=h,this.handlePlaylistLoaded(e,t,r,y)},i.handleSidxRequest=function(e,t){var r=Object(L.parseSegmentIndex)(new Uint8Array(e.data));if(!r)return;var y=r.references,_=t.levelDetails;y.forEach(function(p,E){var m=p.info,f=_.fragments[E];f.byteRange.length===0&&f.setByteRange(String(1+m.end-m.start)+"@"+String(m.start)),f.initSegment&&f.initSegment.setByteRange(String(r.moovEndOffset)+"@0")})},i.handleManifestParsingError=function(e,t,r,y){this.hls.trigger(T.Events.ERROR,{type:x.ErrorTypes.NETWORK_ERROR,details:x.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:t.type===O.PlaylistContextType.MANIFEST,url:e.url,reason:r,response:e,context:t,networkDetails:y})},i.handleNetworkError=function(e,t,r,y){r===void 0&&(r=!1),N.logger.warn("[playlist-loader]: A network "+(r?"timeout":"error")+" occurred while loading "+e.type+" level: "+e.level+" id: "+e.id+' group-id: "'+e.groupId+'"');var _=x.ErrorDetails.UNKNOWN,p=!1,E=this.getInternalLoader(e);switch(e.type){case O.PlaylistContextType.MANIFEST:_=r?x.ErrorDetails.MANIFEST_LOAD_TIMEOUT:x.ErrorDetails.MANIFEST_LOAD_ERROR,p=!0;break;case O.PlaylistContextType.LEVEL:_=r?x.ErrorDetails.LEVEL_LOAD_TIMEOUT:x.ErrorDetails.LEVEL_LOAD_ERROR,p=!1;break;case O.PlaylistContextType.AUDIO_TRACK:_=r?x.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:x.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,p=!1;break;case O.PlaylistContextType.SUBTITLE_TRACK:_=r?x.ErrorDetails.SUBTITLE_TRACK_LOAD_TIMEOUT:x.ErrorDetails.SUBTITLE_LOAD_ERROR,p=!1;break}E&&this.resetInternalLoader(e.type);var m={type:x.ErrorTypes.NETWORK_ERROR,details:_,fatal:p,url:e.url,loader:E,context:e,networkDetails:t};y&&(m.response=y),this.hls.trigger(T.Events.ERROR,m)},i.handlePlaylistLoaded=function(e,t,r,y){var _=r.type,p=r.level,E=r.id,m=r.groupId,f=r.loader,u=r.levelDetails,a=r.deliveryDirectives;if(!(u!=null&&u.targetduration)){this.handleManifestParsingError(e,r,"invalid target duration",y);return}if(!f)return;u.live&&(f.getCacheAge&&(u.ageHeader=f.getCacheAge()||0),(!f.getCacheAge||isNaN(u.ageHeader))&&(u.ageHeader=0));switch(_){case O.PlaylistContextType.MANIFEST:case O.PlaylistContextType.LEVEL:this.hls.trigger(T.Events.LEVEL_LOADED,{details:u,level:p||0,id:E||0,stats:t,networkDetails:y,deliveryDirectives:a});break;case O.PlaylistContextType.AUDIO_TRACK:this.hls.trigger(T.Events.AUDIO_TRACK_LOADED,{details:u,id:E||0,groupId:m||"",stats:t,networkDetails:y,deliveryDirectives:a});break;case O.PlaylistContextType.SUBTITLE_TRACK:this.hls.trigger(T.Events.SUBTITLE_TRACK_LOADED,{details:u,id:E||0,groupId:m||"",stats:t,networkDetails:y,deliveryDirectives:a});break}},n}();I.default=s},"./src/polyfills/number.ts":function(q,I,R){"use strict";R.r(I),R.d(I,"isFiniteNumber",function(){return M}),R.d(I,"MAX_SAFE_INTEGER",function(){return T});var M=Number.isFinite||function(x){return typeof x=="number"&&isFinite(x)},T=Number.MAX_SAFE_INTEGER||9007199254740991},"./src/remux/aac-helper.ts":function(q,I,R){"use strict";R.r(I);var M=function(){function T(){}return T.getSilentFrame=function(N,L){switch(N){case"mp4a.40.2":if(L===1)return new Uint8Array([0,200,0,128,35,128]);if(L===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(L===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(L===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(L===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(L===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]);break;default:if(L===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(L===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(L===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]);break}return},T}();I.default=M},"./src/remux/mp4-generator.ts":function(q,I,R){"use strict";R.r(I);var M=Math.pow(2,32)-1,T=function(){function x(){}return x.init=function(){x.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]};var L;for(L in x.types)x.types.hasOwnProperty(L)&&(x.types[L]=[L.charCodeAt(0),L.charCodeAt(1),L.charCodeAt(2),L.charCodeAt(3)]);var C=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]),O=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]);x.HDLR_TYPES={video:C,audio:O};var v=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),g=new Uint8Array([0,0,0,0,0,0,0,0]);x.STTS=x.STSC=x.STCO=g,x.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),x.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),x.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),x.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var c=new Uint8Array([105,115,111,109]),s=new Uint8Array([97,118,99,49]),n=new Uint8Array([0,0,0,1]);x.FTYP=x.box(x.types.ftyp,c,n,c,s),x.DINF=x.box(x.types.dinf,x.box(x.types.dref,v))},x.box=function(L){for(var C=8,O=arguments.length,v=new Array(O>1?O-1:0),g=1;g<O;g++)v[g-1]=arguments[g];for(var c=v.length,s=c;c--;)C+=v[c].byteLength;var n=new Uint8Array(C);for(n[0]=C>>24&255,n[1]=C>>16&255,n[2]=C>>8&255,n[3]=C&255,n.set(L,4),c=0,C=8;c<s;c++)n.set(v[c],C),C+=v[c].byteLength;return n},x.hdlr=function(L){return x.box(x.types.hdlr,x.HDLR_TYPES[L])},x.mdat=function(L){return x.box(x.types.mdat,L)},x.mdhd=function(L,C){C*=L;var O=Math.floor(C/(M+1)),v=Math.floor(C%(M+1));return x.box(x.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,L>>24&255,L>>16&255,L>>8&255,L&255,O>>24,O>>16&255,O>>8&255,O&255,v>>24,v>>16&255,v>>8&255,v&255,85,196,0,0]))},x.mdia=function(L){return x.box(x.types.mdia,x.mdhd(L.timescale,L.duration),x.hdlr(L.type),x.minf(L))},x.mfhd=function(L){return x.box(x.types.mfhd,new Uint8Array([0,0,0,0,L>>24,L>>16&255,L>>8&255,L&255]))},x.minf=function(L){return L.type==="audio"?x.box(x.types.minf,x.box(x.types.smhd,x.SMHD),x.DINF,x.stbl(L)):x.box(x.types.minf,x.box(x.types.vmhd,x.VMHD),x.DINF,x.stbl(L))},x.moof=function(L,C,O){return x.box(x.types.moof,x.mfhd(L),x.traf(O,C))},x.moov=function(L){for(var C=L.length,O=[];C--;)O[C]=x.trak(L[C]);return x.box.apply(null,[x.types.moov,x.mvhd(L[0].timescale,L[0].duration)].concat(O).concat(x.mvex(L)))},x.mvex=function(L){for(var C=L.length,O=[];C--;)O[C]=x.trex(L[C]);return x.box.apply(null,[x.types.mvex].concat(O))},x.mvhd=function(L,C){C*=L;var O=Math.floor(C/(M+1)),v=Math.floor(C%(M+1)),g=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,L>>24&255,L>>16&255,L>>8&255,L&255,O>>24,O>>16&255,O>>8&255,O&255,v>>24,v>>16&255,v>>8&255,v&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]);return x.box(x.types.mvhd,g)},x.sdtp=function(L){var C=L.samples||[],O=new Uint8Array(4+C.length),v,g;for(v=0;v<C.length;v++)g=C[v].flags,O[v+4]=g.dependsOn<<4|g.isDependedOn<<2|g.hasRedundancy;return x.box(x.types.sdtp,O)},x.stbl=function(L){return x.box(x.types.stbl,x.stsd(L),x.box(x.types.stts,x.STTS),x.box(x.types.stsc,x.STSC),x.box(x.types.stsz,x.STSZ),x.box(x.types.stco,x.STCO))},x.avc1=function(L){var C=[],O=[],v,g,c;for(v=0;v<L.sps.length;v++)g=L.sps[v],c=g.byteLength,C.push(c>>>8&255),C.push(c&255),C=C.concat(Array.prototype.slice.call(g));for(v=0;v<L.pps.length;v++)g=L.pps[v],c=g.byteLength,O.push(c>>>8&255),O.push(c&255),O=O.concat(Array.prototype.slice.call(g));var s=x.box(x.types.avcC,new Uint8Array([1,C[3],C[4],C[5],252|3,224|L.sps.length].concat(C).concat([L.pps.length]).concat(O))),n=L.width,i=L.height,o=L.pixelRatio[0],e=L.pixelRatio[1];return x.box(x.types.avc1,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,n>>8&255,n&255,i>>8&255,i&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),s,x.box(x.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),x.box(x.types.pasp,new Uint8Array([o>>24,o>>16&255,o>>8&255,o&255,e>>24,e>>16&255,e>>8&255,e&255])))},x.esds=function(L){var C=L.config.length;return new Uint8Array([0,0,0,0,3,23+C,0,1,0,4,15+C,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([C]).concat(L.config).concat([6,1,2]))},x.mp4a=function(L){var C=L.samplerate;return x.box(x.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,L.channelCount,0,16,0,0,0,0,C>>8&255,C&255,0,0]),x.box(x.types.esds,x.esds(L)))},x.mp3=function(L){var C=L.samplerate;return x.box(x.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,L.channelCount,0,16,0,0,0,0,C>>8&255,C&255,0,0]))},x.stsd=function(L){return L.type==="audio"?!L.isAAC&&L.codec==="mp3"?x.box(x.types.stsd,x.STSD,x.mp3(L)):x.box(x.types.stsd,x.STSD,x.mp4a(L)):x.box(x.types.stsd,x.STSD,x.avc1(L))},x.tkhd=function(L){var C=L.id,O=L.duration*L.timescale,v=L.width,g=L.height,c=Math.floor(O/(M+1)),s=Math.floor(O%(M+1));return x.box(x.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,C>>24&255,C>>16&255,C>>8&255,C&255,0,0,0,0,c>>24,c>>16&255,c>>8&255,c&255,s>>24,s>>16&255,s>>8&255,s&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,v>>8&255,v&255,0,0,g>>8&255,g&255,0,0]))},x.traf=function(L,C){var O=x.sdtp(L),v=L.id,g=Math.floor(C/(M+1)),c=Math.floor(C%(M+1));return x.box(x.types.traf,x.box(x.types.tfhd,new Uint8Array([0,0,0,0,v>>24,v>>16&255,v>>8&255,v&255])),x.box(x.types.tfdt,new Uint8Array([1,0,0,0,g>>24,g>>16&255,g>>8&255,g&255,c>>24,c>>16&255,c>>8&255,c&255])),x.trun(L,O.length+16+20+8+16+8+8),O)},x.trak=function(L){return L.duration=L.duration||4294967295,x.box(x.types.trak,x.tkhd(L),x.mdia(L))},x.trex=function(L){var C=L.id;return x.box(x.types.trex,new Uint8Array([0,0,0,0,C>>24,C>>16&255,C>>8&255,C&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},x.trun=function(L,C){var O=L.samples||[],v=O.length,g=12+16*v,c=new Uint8Array(g),s,n,i,o,e,t;for(C+=8+g,c.set([0,0,15,1,v>>>24&255,v>>>16&255,v>>>8&255,v&255,C>>>24&255,C>>>16&255,C>>>8&255,C&255],0),s=0;s<v;s++)n=O[s],i=n.duration,o=n.size,e=n.flags,t=n.cts,c.set([i>>>24&255,i>>>16&255,i>>>8&255,i&255,o>>>24&255,o>>>16&255,o>>>8&255,o&255,e.isLeading<<2|e.dependsOn,e.isDependedOn<<6|e.hasRedundancy<<4|e.paddingValue<<1|e.isNonSync,e.degradPrio&240<<8,e.degradPrio&15,t>>>24&255,t>>>16&255,t>>>8&255,t&255],12+16*s);return x.box(x.types.trun,c)},x.initSegment=function(L){x.types||x.init();var C=x.moov(L),O=new Uint8Array(x.FTYP.byteLength+C.byteLength);return O.set(x.FTYP),O.set(C,x.FTYP.byteLength),O},x}();T.types=void 0,T.HDLR_TYPES=void 0,T.STTS=void 0,T.STSC=void 0,T.STCO=void 0,T.STSZ=void 0,T.VMHD=void 0,T.SMHD=void 0,T.STSD=void 0,T.FTYP=void 0,T.DINF=void 0,I.default=T},"./src/remux/mp4-remuxer.ts":function(q,I,R){"use strict";R.r(I),R.d(I,"default",function(){return t}),R.d(I,"normalizePts",function(){return r});var M=R("./src/polyfills/number.ts"),T=R("./src/remux/aac-helper.ts"),x=R("./src/remux/mp4-generator.ts"),N=R("./src/events.ts"),L=R("./src/errors.ts"),C=R("./src/utils/logger.ts"),O=R("./src/types/loader.ts"),v=R("./src/utils/timescale-conversion.ts");function g(){return g=Object.assign||function(E){for(var m=1;m<arguments.length;m++){var f=arguments[m];for(var u in f)Object.prototype.hasOwnProperty.call(f,u)&&(E[u]=f[u])}return E},g.apply(this,arguments)}var c=10*1e3,s=1024,n=1152,i=null,o=null,e=!1,t=function(){function E(f,u,a,l){if(l===void 0&&(l=""),this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.ISGenerated=!1,this._initPTS=void 0,this._initDTS=void 0,this.nextAvcDts=null,this.nextAudioPts=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.observer=f,this.config=u,this.typeSupported=a,this.ISGenerated=!1,i===null){var h=navigator.userAgent||"",d=h.match(/Chrome\/(\d+)/i);i=d?parseInt(d[1]):0}if(o===null){var b=navigator.userAgent.match(/Safari\/(\d+)/i);o=b?parseInt(b[1]):0}e=!!i&&i<75||!!o&&o<600}var m=E.prototype;return m.destroy=function(){},m.resetTimeStamp=function(u){C.logger.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=u},m.resetNextTimestamp=function(){C.logger.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1},m.resetInitSegment=function(){C.logger.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1},m.getVideoStartPts=function(u){var a=!1,l=u.reduce(function(h,d){var b=d.pts-h;return b<-4294967296?(a=!0,r(h,d.pts)):b>0?h:d.pts},u[0].pts);return a&&C.logger.debug("PTS rollover detected"),l},m.remux=function(u,a,l,h,d,b,w,A){var P,S,U,D,j,K,Z=d,ne=d,me=u.pid>-1,he=a.pid>-1,Y=a.samples.length,le=u.samples.length>0,ge=Y>1,re=(!me||le)&&(!he||ge)||this.ISGenerated||w;if(re){this.ISGenerated||(U=this.generateIS(u,a,d));var te=this.isVideoContiguous,be=-1;if(ge&&(be=y(a.samples),!te&&this.config.forceKeyFrameOnDiscontinuity))if(K=!0,be>0){C.logger.warn("[mp4-remuxer]: Dropped "+be+" out of "+Y+" video samples due to a missing keyframe");var ze=this.getVideoStartPts(a.samples);a.samples=a.samples.slice(be),a.dropped+=be,ne+=(a.samples[0].pts-ze)/(a.timescale||9e4)}else be===-1&&(C.logger.warn("[mp4-remuxer]: No keyframe found out of "+Y+" video samples"),K=!1);if(this.ISGenerated){if(le&&ge){var Ge=this.getVideoStartPts(a.samples),Ue=r(u.samples[0].pts,Ge)-Ge,Ze=Ue/a.inputTimeScale;Z+=Math.max(0,Ze),ne+=Math.max(0,-Ze)}if(le){if(u.samplerate||(C.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),U=this.generateIS(u,a,d)),S=this.remuxAudio(u,Z,this.isAudioContiguous,b,he||ge||A===O.PlaylistLevelType.AUDIO?ne:void 0),ge){var Pe=S?S.endPTS-S.startPTS:0;a.inputTimeScale||(C.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),U=this.generateIS(u,a,d)),P=this.remuxVideo(a,ne,te,Pe)}}else ge&&(P=this.remuxVideo(a,ne,te,0));P&&(P.firstKeyFrame=be,P.independent=be!==-1)}}return this.ISGenerated&&(l.samples.length&&(j=this.remuxID3(l,d)),h.samples.length&&(D=this.remuxText(h,d))),{audio:S,video:P,initSegment:U,independent:K,text:D,id3:j}},m.generateIS=function(u,a,l){var h=u.samples,d=a.samples,b=this.typeSupported,w={},A=!Object(M.isFiniteNumber)(this._initPTS),P="audio/mp4",S,U,D;if(A&&(S=U=Infinity),u.config&&h.length&&(u.timescale=u.samplerate,u.isAAC||(b.mpeg?(P="audio/mpeg",u.codec=""):b.mp3&&(u.codec="mp3")),w.audio={id:"audio",container:P,codec:u.codec,initSegment:!u.isAAC&&b.mpeg?new Uint8Array(0):x.default.initSegment([u]),metadata:{channelCount:u.channelCount}},A&&(D=u.inputTimeScale,S=U=h[0].pts-Math.round(D*l))),a.sps&&a.pps&&d.length&&(a.timescale=a.inputTimeScale,w.video={id:"main",container:"video/mp4",codec:a.codec,initSegment:x.default.initSegment([a]),metadata:{width:a.width,height:a.height}},A)){D=a.inputTimeScale;var j=this.getVideoStartPts(d),K=Math.round(D*l);U=Math.min(U,r(d[0].dts,j)-K),S=Math.min(S,j-K)}if(Object.keys(w).length)return this.ISGenerated=!0,A&&(this._initPTS=S,this._initDTS=U),{tracks:w,initPTS:S,timescale:D}},m.remuxVideo=function(u,a,l,h){var d=u.inputTimeScale,b=u.samples,w=[],A=b.length,P=this._initPTS,S=this.nextAvcDts,U=8,D,j,K,Z=Number.POSITIVE_INFINITY,ne=Number.NEGATIVE_INFINITY,me=0,he=!1;if(!l||S===null){var Y=a*d,le=b[0].pts-r(b[0].dts,b[0].pts);S=Y-le}for(var ge=0;ge<A;ge++){var re=b[ge];if(re.pts=r(re.pts-P,S),re.dts=r(re.dts-P,S),re.dts>re.pts){var te=9e4*.2;me=Math.max(Math.min(me,re.pts-re.dts),-1*te)}re.dts<b[ge>0?ge-1:ge].dts&&(he=!0)}he&&b.sort(function(at,Ye){var Be=at.dts-Ye.dts,it=at.pts-Ye.pts;return Be||it}),j=b[0].dts,K=b[b.length-1].dts;var be=Math.round((K-j)/(A-1));if(me<0){if(me<be*-2){C.logger.warn("PTS < DTS detected in video samples, offsetting DTS from PTS by "+Object(v.toMsFromMpegTsClock)(-be,!0)+" ms");for(var ze=me,Ge=0;Ge<A;Ge++)b[Ge].dts=ze=Math.max(ze,b[Ge].pts-be),b[Ge].pts=Math.max(ze,b[Ge].pts)}else{C.logger.warn("PTS < DTS detected in video samples, shifting DTS by "+Object(v.toMsFromMpegTsClock)(me,!0)+" ms to overcome this issue");for(var Ue=0;Ue<A;Ue++)b[Ue].dts=b[Ue].dts+me}j=b[0].dts}if(l){var Ze=j-S,Pe=Ze>be,Me=Ze<-1;if(Pe||Me){Pe?C.logger.warn("AVC: "+Object(v.toMsFromMpegTsClock)(Ze,!0)+" ms ("+Ze+"dts) hole between fragments detected, filling it"):C.logger.warn("AVC: "+Object(v.toMsFromMpegTsClock)(-Ze,!0)+" ms ("+Ze+"dts) overlapping between fragments detected"),j=S;var je=b[0].pts-Ze;b[0].dts=j,b[0].pts=je,C.logger.log("Video: First PTS/DTS adjusted: "+Object(v.toMsFromMpegTsClock)(je,!0)+"/"+Object(v.toMsFromMpegTsClock)(j,!0)+", delta: "+Object(v.toMsFromMpegTsClock)(Ze,!0)+" ms")}}e&&(j=Math.max(0,j));for(var Ve=0,Ke=0,Ie=0;Ie<A;Ie++){for(var Le=b[Ie],st=Le.units,nt=st.length,$e=0,Xe=0;Xe<nt;Xe++)$e+=st[Xe].data.length;Ke+=$e,Ve+=nt,Le.length=$e,Le.dts=Math.max(Le.dts,j),Le.pts=Math.max(Le.pts,Le.dts,0),Z=Math.min(Le.pts,Z),ne=Math.max(Le.pts,ne)}K=b[A-1].dts;var ut=Ke+4*Ve+8,dt;try{dt=new Uint8Array(ut)}catch(at){this.observer.emit(N.Events.ERROR,N.Events.ERROR,{type:L.ErrorTypes.MUX_ERROR,details:L.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:ut,reason:"fail allocating video mdat "+ut});return}var ce=new DataView(dt.buffer);ce.setUint32(0,ut),dt.set(x.default.types.mdat,4);for(var ve=0;ve<A;ve++){for(var xe=b[ve],Se=xe.units,pe=0,Oe=0,ie=Se.length;Oe<ie;Oe++){var Q=Se[Oe],X=Q.data,B=Q.data.byteLength;ce.setUint32(U,B),U+=4,dt.set(X,U),U+=B,pe+=4+B}if(ve<A-1)D=b[ve+1].dts-xe.dts;else{var W=this.config,G=xe.dts-b[ve>0?ve-1:ve].dts;if(W.stretchShortVideoTrack&&this.nextAudioPts!==null){var J=Math.floor(W.maxBufferHole*d),ue=(h?Z+h*d:this.nextAudioPts)-xe.pts;ue>J?(D=ue-G,D<0&&(D=G),C.logger.log("[mp4-remuxer]: It is approximately "+ue/90+" ms to the next segment; using duration "+D/90+" ms for the last video frame.")):D=G}else D=G}var ye=Math.round(xe.pts-xe.dts);w.push(new _(xe.key,D,pe,ye))}if(w.length&&i&&i<70){var De=w[0].flags;De.dependsOn=2,De.isNonSync=0}console.assert(D!==void 0,"mp4SampleDuration must be computed"),this.nextAvcDts=S=K+D,this.isVideoContiguous=!0;var Qe=x.default.moof(u.sequenceNumber++,j,g({},u,{samples:w})),Je="video",Ee={data1:Qe,data2:dt,startPTS:Z/d,endPTS:(ne+D)/d,startDTS:j/d,endDTS:S/d,type:Je,hasAudio:!1,hasVideo:!0,nb:w.length,dropped:u.dropped};return u.samples=[],u.dropped=0,console.assert(dt.length,"MDAT length must not be zero"),Ee},m.remuxAudio=function(u,a,l,h,d){var b=u.inputTimeScale,w=u.samplerate?u.samplerate:b,A=b/w,P=u.isAAC?s:n,S=P*A,U=this._initPTS,D=!u.isAAC&&this.typeSupported.mpeg,j=[],K=u.samples,Z=D?0:8,ne=this.nextAudioPts||-1,me=a*b;if(this.isAudioContiguous=l=l||K.length&&ne>0&&(h&&Math.abs(me-ne)<9e3||Math.abs(r(K[0].pts-U,me)-ne)<20*S),K.forEach(function(X){X.pts=r(X.pts-U,me)}),!l||ne<0){if(K=K.filter(function(X){return X.pts>=0}),!K.length)return;d===0?ne=0:h?ne=Math.max(0,me):ne=K[0].pts}if(u.isAAC)for(var he=d!==void 0,Y=this.config.maxAudioFramesDrift,le=0,ge=ne;le<K.length;le++){var re=K[le],te=re.pts,be=te-ge,ze=Math.abs(1e3*be/b);if(be<=-Y*S&&he)le===0&&(C.logger.warn("Audio frame @ "+(te/b).toFixed(3)+"s overlaps nextAudioPts by "+Math.round(1e3*be/b)+" ms."),this.nextAudioPts=ne=ge=te);else if(be>=Y*S&&ze<c&&he){var Ge=Math.round(be/S);ge=te-Ge*S,ge<0&&(Ge--,ge+=S),le===0&&(this.nextAudioPts=ne=ge),C.logger.warn("[mp4-remuxer]: Injecting "+Ge+" audio frame @ "+(ge/b).toFixed(3)+"s due to "+Math.round(1e3*be/b)+" ms gap.");for(var Ue=0;Ue<Ge;Ue++){var Ze=Math.max(ge,0),Pe=T.default.getSilentFrame(u.manifestCodec||u.codec,u.channelCount);Pe||(C.logger.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),Pe=re.unit.subarray()),K.splice(le,0,{unit:Pe,pts:Ze}),ge+=S,le++}}re.pts=ge,ge+=S}for(var Me=null,je=null,Ve,Ke=0,Ie=K.length;Ie--;)Ke+=K[Ie].unit.byteLength;for(var Le=0,st=K.length;Le<st;Le++){var nt=K[Le],$e=nt.unit,Xe=nt.pts;if(je!==null){var ut=j[Le-1];ut.duration=Math.round((Xe-je)/A)}else if(l&&u.isAAC&&(Xe=ne),Me=Xe,Ke>0){Ke+=Z;try{Ve=new Uint8Array(Ke)}catch(X){this.observer.emit(N.Events.ERROR,N.Events.ERROR,{type:L.ErrorTypes.MUX_ERROR,details:L.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:Ke,reason:"fail allocating audio mdat "+Ke});return}if(!D){var dt=new DataView(Ve.buffer);dt.setUint32(0,Ke),Ve.set(x.default.types.mdat,4)}}else return;Ve.set($e,Z);var ce=$e.byteLength;Z+=ce,j.push(new _(!0,P,ce,0)),je=Xe}var ve=j.length;if(!ve)return;var xe=j[j.length-1];this.nextAudioPts=ne=je+A*xe.duration;var Se=D?new Uint8Array(0):x.default.moof(u.sequenceNumber++,Me/A,g({},u,{samples:j}));u.samples=[];var pe=Me/b,Oe=ne/b,ie="audio",Q={data1:Se,data2:Ve,startPTS:pe,endPTS:Oe,startDTS:pe,endDTS:Oe,type:ie,hasAudio:!0,hasVideo:!1,nb:ve};return this.isAudioContiguous=!0,console.assert(Ve.length,"MDAT length must not be zero"),Q},m.remuxEmptyAudio=function(u,a,l,h){var d=u.inputTimeScale,b=u.samplerate?u.samplerate:d,w=d/b,A=this.nextAudioPts,P=(A!==null?A:h.startDTS*d)+this._initDTS,S=h.endDTS*d+this._initDTS,U=w*s,D=Math.ceil((S-P)/U),j=T.default.getSilentFrame(u.manifestCodec||u.codec,u.channelCount);if(C.logger.warn("[mp4-remuxer]: remux empty Audio"),!j){C.logger.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var K=[],Z=0;Z<D;Z++){var ne=P+Z*U;K.push({unit:j,pts:ne,dts:ne})}return u.samples=K,this.remuxAudio(u,a,l,!1)},m.remuxID3=function(u,a){var l=u.samples.length;if(!l)return;for(var h=u.inputTimeScale,d=this._initPTS,b=this._initDTS,w=0;w<l;w++){var A=u.samples[w];A.pts=r(A.pts-d,a*h)/h,A.dts=r(A.dts-b,a*h)/h}var P=u.samples;return u.samples=[],{samples:P}},m.remuxText=function(u,a){var l=u.samples.length;if(!l)return;for(var h=u.inputTimeScale,d=this._initPTS,b=0;b<l;b++){var w=u.samples[b];w.pts=r(w.pts-d,a*h)/h}u.samples.sort(function(P,S){return P.pts-S.pts});var A=u.samples;return u.samples=[],{samples:A}},E}();function r(E,m){var f;if(m===null)return E;for(m<E?f=-8589934592:f=8589934592;Math.abs(E-m)>4294967296;)E+=f;return E}function y(E){for(var m=0;m<E.length;m++)if(E[m].key)return m;return-1}var _=function(m,f,u,a){this.size=void 0,this.duration=void 0,this.cts=void 0,this.flags=void 0,this.duration=f,this.size=u,this.cts=a,this.flags=new p(m)},p=function(m){this.isLeading=0,this.isDependedOn=0,this.hasRedundancy=0,this.degradPrio=0,this.dependsOn=1,this.isNonSync=1,this.dependsOn=m?2:1,this.isNonSync=m?0:1}},"./src/remux/passthrough-remuxer.ts":function(q,I,R){"use strict";R.r(I);var M=R("./src/polyfills/number.ts"),T=R("./src/utils/mp4-tools.ts"),x=R("./src/loader/fragment.ts"),N=R("./src/utils/logger.ts"),L=function(){function v(){this.emitInitSegment=!1,this.audioCodec=void 0,this.videoCodec=void 0,this.initData=void 0,this.initPTS=void 0,this.initTracks=void 0,this.lastEndDTS=null}var g=v.prototype;return g.destroy=function(){},g.resetTimeStamp=function(s){this.initPTS=s,this.lastEndDTS=null},g.resetNextTimestamp=function(){this.lastEndDTS=null},g.resetInitSegment=function(s,n,i){this.audioCodec=n,this.videoCodec=i,this.generateInitSegment(s),this.emitInitSegment=!0},g.generateInitSegment=function(s){var n=this.audioCodec,i=this.videoCodec;if(!s||!s.byteLength){this.initTracks=void 0,this.initData=void 0;return}var o=this.initData=Object(T.parseInitSegment)(s);n||(n=O(o.audio,x.ElementaryStreamTypes.AUDIO)),i||(i=O(o.video,x.ElementaryStreamTypes.VIDEO));var e={};o.audio&&o.video?e.audiovideo={container:"video/mp4",codec:n+","+i,initSegment:s,id:"main"}:o.audio?e.audio={container:"audio/mp4",codec:n,initSegment:s,id:"audio"}:o.video?e.video={container:"video/mp4",codec:i,initSegment:s,id:"main"}:N.logger.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=e},g.remux=function(s,n,i,o,e){var t=this.initPTS,r=this.lastEndDTS,y={audio:void 0,video:void 0,text:o,id3:i,initSegment:void 0};Object(M.isFiniteNumber)(r)||(r=this.lastEndDTS=e||0);var _=n.samples;if(!_||!_.length)return y;var p={initPTS:void 0,timescale:1},E=this.initData;if((!E||!E.length)&&(this.generateInitSegment(_),E=this.initData),!E||!E.length)return N.logger.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),y;this.emitInitSegment&&(p.tracks=this.initTracks,this.emitInitSegment=!1),Object(M.isFiniteNumber)(t)||(this.initPTS=p.initPTS=t=C(E,_,r));var m=Object(T.getDuration)(_,E),f=r,u=m+f;Object(T.offsetStartDTS)(E,_,t),m>0?this.lastEndDTS=u:(N.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var a=!!E.audio,l=!!E.video,h="";a&&(h+="audio"),l&&(h+="video");var d={data1:_,startPTS:f,startDTS:f,endPTS:u,endDTS:u,type:h,hasAudio:a,hasVideo:l,nb:1,dropped:0};return y.audio=d.type==="audio"?d:void 0,y.video=d.type!=="audio"?d:void 0,y.text=o,y.id3=i,y.initSegment=p,y},v}(),C=function(g,c,s){return Object(T.getStartDTS)(g,c)-s};function O(v,g){var c=v==null?void 0:v.codec;return c&&c.length>4?c:c==="hvc1"?"hvc1.1.c.L120.90":c==="av01"?"av01.0.04M.08":c==="avc1"||g===x.ElementaryStreamTypes.VIDEO?"avc1.42e01e":"mp4a.40.5"}I.default=L},"./src/task-loop.ts":function(q,I,R){"use strict";R.r(I),R.d(I,"default",function(){return M});var M=function(){function T(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var x=T.prototype;return x.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},x.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},x.onHandlerDestroyed=function(){},x.hasInterval=function(){return!!this._tickInterval},x.hasNextTick=function(){return!!this._tickTimer},x.setInterval=function(L){return this._tickInterval?!1:(this._tickInterval=self.setInterval(this._boundTick,L),!0)},x.clearInterval=function(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1},x.clearNextTick=function(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1},x.tick=function(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},x.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},x.doTick=function(){},T}()},"./src/types/cmcd.ts":function(q,I,R){"use strict";R.r(I),R.d(I,"CMCDVersion",function(){return M}),R.d(I,"CMCDObjectType",function(){return T}),R.d(I,"CMCDStreamingFormat",function(){return x}),R.d(I,"CMCDStreamType",function(){return N});var M=1,T;(function(L){L.MANIFEST="m",L.AUDIO="a",L.VIDEO="v",L.MUXED="av",L.INIT="i",L.CAPTION="c",L.TIMED_TEXT="tt",L.KEY="k",L.OTHER="o"})(T||(T={}));var x;(function(L){L.DASH="d",L.HLS="h",L.SMOOTH="s",L.OTHER="o"})(x||(x={}));var N;(function(L){L.VOD="v",L.LIVE="l"})(N||(N={}))},"./src/types/level.ts":function(q,I,R){"use strict";R.r(I),R.d(I,"HlsSkip",function(){return x}),R.d(I,"getSkipValue",function(){return N}),R.d(I,"HlsUrlParameters",function(){return L}),R.d(I,"Level",function(){return C});function M(O,v){for(var g=0;g<v.length;g++){var c=v[g];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(O,c.key,c)}}function T(O,v,g){return v&&M(O.prototype,v),g&&M(O,g),O}var x;(function(O){O.No="",O.Yes="YES",O.v2="v2"})(x||(x={}));function N(O,v){var g=O.canSkipUntil,c=O.canSkipDateRanges,s=O.endSN,n=v!==void 0?v-s:0;return g&&n<g?c?x.v2:x.Yes:x.No}var L=function(){function O(g,c,s){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=g,this.part=c,this.skip=s}var v=O.prototype;return v.addDirectives=function(c){var s=new self.URL(c);return this.msn!==void 0&&s.searchParams.set("_HLS_msn",this.msn.toString()),this.part!==void 0&&s.searchParams.set("_HLS_part",this.part.toString()),this.skip&&s.searchParams.set("_HLS_skip",this.skip),s.toString()},O}(),C=function(){function O(v){this.attrs=void 0,this.audioCodec=void 0,this.bitrate=void 0,this.codecSet=void 0,this.height=void 0,this.id=void 0,this.name=void 0,this.videoCodec=void 0,this.width=void 0,this.unknownCodecs=void 0,this.audioGroupIds=void 0,this.details=void 0,this.fragmentError=0,this.loadError=0,this.loaded=void 0,this.realBitrate=0,this.textGroupIds=void 0,this.url=void 0,this._urlId=0,this.url=[v.url],this.attrs=v.attrs,this.bitrate=v.bitrate,v.details&&(this.details=v.details),this.id=v.id||0,this.name=v.name,this.width=v.width||0,this.height=v.height||0,this.audioCodec=v.audioCodec,this.videoCodec=v.videoCodec,this.unknownCodecs=v.unknownCodecs,this.codecSet=[v.videoCodec,v.audioCodec].filter(function(g){return g}).join(",").replace(/\.[^.,]+/g,"")}return T(O,[{key:"maxBitrate",get:function(){return Math.max(this.realBitrate,this.bitrate)}},{key:"uri",get:function(){return this.url[this._urlId]||""}},{key:"urlId",get:function(){return this._urlId},set:function(g){var c=g%this.url.length;this._urlId!==c&&(this.details=void 0,this._urlId=c)}}]),O}()},"./src/types/loader.ts":function(q,I,R){"use strict";R.r(I),R.d(I,"PlaylistContextType",function(){return M}),R.d(I,"PlaylistLevelType",function(){return T});var M;(function(x){x.MANIFEST="manifest",x.LEVEL="level",x.AUDIO_TRACK="audioTrack",x.SUBTITLE_TRACK="subtitleTrack"})(M||(M={}));var T;(function(x){x.MAIN="main",x.AUDIO="audio",x.SUBTITLE="subtitle"})(T||(T={}))},"./src/types/transmuxer.ts":function(q,I,R){"use strict";R.r(I),R.d(I,"ChunkMetadata",function(){return M});var M=function(N,L,C,O,v,g){O===void 0&&(O=0),v===void 0&&(v=-1),g===void 0&&(g=!1),this.level=void 0,this.sn=void 0,this.part=void 0,this.id=void 0,this.size=void 0,this.partial=void 0,this.transmuxing=T(),this.buffering={audio:T(),video:T(),audiovideo:T()},this.level=N,this.sn=L,this.id=C,this.size=O,this.part=v,this.partial=g};function T(){return{start:0,executeStart:0,executeEnd:0,end:0}}},"./src/utils/attr-list.ts":function(q,I,R){"use strict";R.r(I),R.d(I,"AttrList",function(){return x});var M=/^(\d+)x(\d+)$/,T=/\s*(.+?)\s*=((?:\".*?\")|.*?)(?:,|$)/g,x=function(){function N(C){typeof C=="string"&&(C=N.parseAttrList(C));for(var O in C)C.hasOwnProperty(O)&&(this[O]=C[O])}var L=N.prototype;return L.decimalInteger=function(O){var v=parseInt(this[O],10);return v>Number.MAX_SAFE_INTEGER?Infinity:v},L.hexadecimalInteger=function(O){if(this[O]){var v=(this[O]||"0x").slice(2);v=(v.length&1?"0":"")+v;for(var g=new Uint8Array(v.length/2),c=0;c<v.length/2;c++)g[c]=parseInt(v.slice(c*2,c*2+2),16);return g}else return null},L.hexadecimalIntegerAsNumber=function(O){var v=parseInt(this[O],16);return v>Number.MAX_SAFE_INTEGER?Infinity:v},L.decimalFloatingPoint=function(O){return parseFloat(this[O])},L.optionalFloat=function(O,v){var g=this[O];return g?parseFloat(g):v},L.enumeratedString=function(O){return this[O]},L.bool=function(O){return this[O]==="YES"},L.decimalResolution=function(O){var v=M.exec(this[O]);return v===null?void 0:{width:parseInt(v[1],10),height:parseInt(v[2],10)}},N.parseAttrList=function(O){var v,g={},c='"';for(T.lastIndex=0;(v=T.exec(O))!==null;){var s=v[2];s.indexOf(c)===0&&s.lastIndexOf(c)===s.length-1&&(s=s.slice(1,-1)),g[v[1]]=s}return g},N}()},"./src/utils/binary-search.ts":function(q,I,R){"use strict";R.r(I);var M={search:function(x,N){for(var L=0,C=x.length-1,O=null,v=null;L<=C;){O=(L+C)/2|0,v=x[O];var g=N(v);if(g>0)L=O+1;else if(g<0)C=O-1;else return v}return null}};I.default=M},"./src/utils/buffer-helper.ts":function(q,I,R){"use strict";R.r(I),R.d(I,"BufferHelper",function(){return x});var M=R("./src/utils/logger.ts"),T={length:0,start:function(){return 0},end:function(){return 0}},x=function(){function N(){}return N.isBuffered=function(C,O){try{if(C){for(var v=N.getBuffered(C),g=0;g<v.length;g++)if(O>=v.start(g)&&O<=v.end(g))return!0}}catch(c){}return!1},N.bufferInfo=function(C,O,v){try{if(C){var g=N.getBuffered(C),c=[],s;for(s=0;s<g.length;s++)c.push({start:g.start(s),end:g.end(s)});return this.bufferedInfo(c,O,v)}}catch(n){}return{len:0,start:O,end:O,nextStart:void 0}},N.bufferedInfo=function(C,O,v){O=Math.max(0,O),C.sort(function(p,E){var m=p.start-E.start;return m||E.end-p.end});var g=[];if(v)for(var c=0;c<C.length;c++){var s=g.length;if(s){var n=g[s-1].end;C[c].start-n<v?C[c].end>n&&(g[s-1].end=C[c].end):g.push(C[c])}else g.push(C[c])}else g=C;for(var i=0,o,e=O,t=O,r=0;r<g.length;r++){var y=g[r].start,_=g[r].end;if(O+v>=y&&O<_)e=y,t=_,i=t-O;else if(O+v<y){o=y;break}}return{len:i,start:e||0,end:t||0,nextStart:o}},N.getBuffered=function(C){try{return C.buffered}catch(O){return M.logger.log("failed to get media.buffered",O),T}},N}()},"./src/utils/cea-608-parser.ts":function(q,I,R){"use strict";R.r(I),R.d(I,"Row",function(){return t}),R.d(I,"CaptionScreen",function(){return r});var M=R("./src/utils/logger.ts"),T={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},x=function(u){var a=u;return T.hasOwnProperty(u)&&(a=T[u]),String.fromCharCode(a)},N=15,L=100,C={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},O={17:2,18:4,21:6,22:8,23:10,19:13,20:15},v={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},g={25:2,26:4,29:6,30:8,31:10,27:13,28:15},c=["white","green","blue","cyan","red","yellow","magenta","black","transparent"],s;(function(f){f[f.ERROR=0]="ERROR",f[f.TEXT=1]="TEXT",f[f.WARNING=2]="WARNING",f[f.INFO=2]="INFO",f[f.DEBUG=3]="DEBUG",f[f.DATA=3]="DATA"})(s||(s={}));var n=function(){function f(){this.time=null,this.verboseLevel=s.ERROR}var u=f.prototype;return u.log=function(l,h){this.verboseLevel>=l&&M.logger.log(this.time+" ["+l+"] "+h)},f}(),i=function(u){for(var a=[],l=0;l<u.length;l++)a.push(u[l].toString(16));return a},o=function(){function f(a,l,h,d,b){this.foreground=void 0,this.underline=void 0,this.italics=void 0,this.background=void 0,this.flash=void 0,this.foreground=a||"white",this.underline=l||!1,this.italics=h||!1,this.background=d||"black",this.flash=b||!1}var u=f.prototype;return u.reset=function(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1},u.setStyles=function(l){for(var h=["foreground","underline","italics","background","flash"],d=0;d<h.length;d++){var b=h[d];l.hasOwnProperty(b)&&(this[b]=l[b])}},u.isDefault=function(){return this.foreground==="white"&&!this.underline&&!this.italics&&this.background==="black"&&!this.flash},u.equals=function(l){return this.foreground===l.foreground&&this.underline===l.underline&&this.italics===l.italics&&this.background===l.background&&this.flash===l.flash},u.copy=function(l){this.foreground=l.foreground,this.underline=l.underline,this.italics=l.italics,this.background=l.background,this.flash=l.flash},u.toString=function(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash},f}(),e=function(){function f(a,l,h,d,b,w){this.uchar=void 0,this.penState=void 0,this.uchar=a||" ",this.penState=new o(l,h,d,b,w)}var u=f.prototype;return u.reset=function(){this.uchar=" ",this.penState.reset()},u.setChar=function(l,h){this.uchar=l,this.penState.copy(h)},u.setPenState=function(l){this.penState.copy(l)},u.equals=function(l){return this.uchar===l.uchar&&this.penState.equals(l.penState)},u.copy=function(l){this.uchar=l.uchar,this.penState.copy(l.penState)},u.isEmpty=function(){return this.uchar===" "&&this.penState.isDefault()},f}(),t=function(){function f(a){this.chars=void 0,this.pos=void 0,this.currPenState=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chars=[];for(var l=0;l<L;l++)this.chars.push(new e);this.logger=a,this.pos=0,this.currPenState=new o}var u=f.prototype;return u.equals=function(l){for(var h=!0,d=0;d<L;d++)if(!this.chars[d].equals(l.chars[d])){h=!1;break}return h},u.copy=function(l){for(var h=0;h<L;h++)this.chars[h].copy(l.chars[h])},u.isEmpty=function(){for(var l=!0,h=0;h<L;h++)if(!this.chars[h].isEmpty()){l=!1;break}return l},u.setCursor=function(l){this.pos!==l&&(this.pos=l),this.pos<0?(this.logger.log(s.DEBUG,"Negative cursor position "+this.pos),this.pos=0):this.pos>L&&(this.logger.log(s.DEBUG,"Too large cursor position "+this.pos),this.pos=L)},u.moveCursor=function(l){var h=this.pos+l;if(l>1)for(var d=this.pos+1;d<h+1;d++)this.chars[d].setPenState(this.currPenState);this.setCursor(h)},u.backSpace=function(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)},u.insertChar=function(l){l>=144&&this.backSpace();var h=x(l);if(this.pos>=L){this.logger.log(s.ERROR,"Cannot insert "+l.toString(16)+" ("+h+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(h,this.currPenState),this.moveCursor(1)},u.clearFromPos=function(l){var h;for(h=l;h<L;h++)this.chars[h].reset()},u.clear=function(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()},u.clearToEndOfRow=function(){this.clearFromPos(this.pos)},u.getTextString=function(){for(var l=[],h=!0,d=0;d<L;d++){var b=this.chars[d].uchar;b!==" "&&(h=!1),l.push(b)}return h?"":l.join("")},u.setPenStyles=function(l){this.currPenState.setStyles(l);var h=this.chars[this.pos];h.setPenState(this.currPenState)},f}(),r=function(){function f(a){this.rows=void 0,this.currRow=void 0,this.nrRollUpRows=void 0,this.lastOutputScreen=void 0,this.logger=void 0,this.rows=[];for(var l=0;l<N;l++)this.rows.push(new t(a));this.logger=a,this.currRow=N-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.reset()}var u=f.prototype;return u.reset=function(){for(var l=0;l<N;l++)this.rows[l].clear();this.currRow=N-1},u.equals=function(l){for(var h=!0,d=0;d<N;d++)if(!this.rows[d].equals(l.rows[d])){h=!1;break}return h},u.copy=function(l){for(var h=0;h<N;h++)this.rows[h].copy(l.rows[h])},u.isEmpty=function(){for(var l=!0,h=0;h<N;h++)if(!this.rows[h].isEmpty()){l=!1;break}return l},u.backSpace=function(){var l=this.rows[this.currRow];l.backSpace()},u.clearToEndOfRow=function(){var l=this.rows[this.currRow];l.clearToEndOfRow()},u.insertChar=function(l){var h=this.rows[this.currRow];h.insertChar(l)},u.setPen=function(l){var h=this.rows[this.currRow];h.setPenStyles(l)},u.moveCursor=function(l){var h=this.rows[this.currRow];h.moveCursor(l)},u.setCursor=function(l){this.logger.log(s.INFO,"setCursor: "+l);var h=this.rows[this.currRow];h.setCursor(l)},u.setPAC=function(l){this.logger.log(s.INFO,"pacData = "+JSON.stringify(l));var h=l.row-1;if(this.nrRollUpRows&&h<this.nrRollUpRows-1&&(h=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==h){for(var d=0;d<N;d++)this.rows[d].clear();var b=this.currRow+1-this.nrRollUpRows,w=this.lastOutputScreen;if(w){var A=w.rows[b].cueStartTime,P=this.logger.time;if(A&&P!==null&&A<P)for(var S=0;S<this.nrRollUpRows;S++)this.rows[h-this.nrRollUpRows+S+1].copy(w.rows[b+S])}}this.currRow=h;var U=this.rows[this.currRow];if(l.indent!==null){var D=l.indent,j=Math.max(D-1,0);U.setCursor(l.indent),l.color=U.chars[j].penState.foreground}var K={foreground:l.color,underline:l.underline,italics:l.italics,background:"black",flash:!1};this.setPen(K)},u.setBkgData=function(l){this.logger.log(s.INFO,"bkgData = "+JSON.stringify(l)),this.backSpace(),this.setPen(l),this.insertChar(32)},u.setRollUpRows=function(l){this.nrRollUpRows=l},u.rollUp=function(){if(this.nrRollUpRows===null){this.logger.log(s.DEBUG,"roll_up but nrRollUpRows not set yet");return}this.logger.log(s.TEXT,this.getDisplayText());var l=this.currRow+1-this.nrRollUpRows,h=this.rows.splice(l,1)[0];h.clear(),this.rows.splice(this.currRow,0,h),this.logger.log(s.INFO,"Rolling up")},u.getDisplayText=function(l){l=l||!1;for(var h=[],d="",b=-1,w=0;w<N;w++){var A=this.rows[w].getTextString();A&&(b=w+1,l?h.push("Row "+b+": '"+A+"'"):h.push(A.trim()))}return h.length>0&&(l?d="["+h.join(" | ")+"]":d=h.join(`
|
|
`)),d},u.getTextAndFormat=function(){return this.rows},f}(),y=function(){function f(a,l,h){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=a,this.outputFilter=l,this.mode=null,this.verbose=0,this.displayedMemory=new r(h),this.nonDisplayedMemory=new r(h),this.lastOutputScreen=new r(h),this.currRollUpRow=this.displayedMemory.rows[N-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=h}var u=f.prototype;return u.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[N-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null},u.getHandler=function(){return this.outputFilter},u.setHandler=function(l){this.outputFilter=l},u.setPAC=function(l){this.writeScreen.setPAC(l)},u.setBkgData=function(l){this.writeScreen.setBkgData(l)},u.setMode=function(l){if(l===this.mode)return;this.mode=l,this.logger.log(s.INFO,"MODE="+l),this.mode==="MODE_POP-ON"?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),this.mode!=="MODE_ROLL-UP"&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=l},u.insertChars=function(l){for(var h=0;h<l.length;h++)this.writeScreen.insertChar(l[h]);var d=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(s.INFO,d+": "+this.writeScreen.getDisplayText(!0)),(this.mode==="MODE_PAINT-ON"||this.mode==="MODE_ROLL-UP")&&(this.logger.log(s.TEXT,"DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())},u.ccRCL=function(){this.logger.log(s.INFO,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")},u.ccBS=function(){if(this.logger.log(s.INFO,"BS - BackSpace"),this.mode==="MODE_TEXT")return;this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate()},u.ccAOF=function(){},u.ccAON=function(){},u.ccDER=function(){this.logger.log(s.INFO,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()},u.ccRU=function(l){this.logger.log(s.INFO,"RU("+l+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(l)},u.ccFON=function(){this.logger.log(s.INFO,"FON - Flash On"),this.writeScreen.setPen({flash:!0})},u.ccRDC=function(){this.logger.log(s.INFO,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")},u.ccTR=function(){this.logger.log(s.INFO,"TR"),this.setMode("MODE_TEXT")},u.ccRTD=function(){this.logger.log(s.INFO,"RTD"),this.setMode("MODE_TEXT")},u.ccEDM=function(){this.logger.log(s.INFO,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)},u.ccCR=function(){this.logger.log(s.INFO,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)},u.ccENM=function(){this.logger.log(s.INFO,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()},u.ccEOC=function(){if(this.logger.log(s.INFO,"EOC - End Of Caption"),this.mode==="MODE_POP-ON"){var l=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=l,this.writeScreen=this.nonDisplayedMemory,this.logger.log(s.TEXT,"DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate(!0)},u.ccTO=function(l){this.logger.log(s.INFO,"TO("+l+") - Tab Offset"),this.writeScreen.moveCursor(l)},u.ccMIDROW=function(l){var h={flash:!1};if(h.underline=l%2===1,h.italics=l>=46,h.italics)h.foreground="white";else{var d=Math.floor(l/2)-16,b=["white","green","blue","cyan","red","yellow","magenta"];h.foreground=b[d]}this.logger.log(s.INFO,"MIDROW: "+JSON.stringify(h)),this.writeScreen.setPen(h)},u.outputDataUpdate=function(l){l===void 0&&(l=!1);var h=this.logger.time;if(h===null)return;this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=h:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,h,this.lastOutputScreen),l&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:h),this.lastOutputScreen.copy(this.displayedMemory))},u.cueSplitAtTime=function(l){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,l,this.displayedMemory),this.cueStartTime=l))},f}(),_=function(){function f(a,l,h){this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var d=new n;this.channels=[null,new y(a,l,d),new y(a+1,h,d)],this.cmdHistory=m(),this.logger=d}var u=f.prototype;return u.getHandler=function(l){return this.channels[l].getHandler()},u.setHandler=function(l,h){this.channels[l].setHandler(h)},u.addData=function(l,h){var d,b,w,A=!1;this.logger.time=l;for(var P=0;P<h.length;P+=2){if(b=h[P]&127,w=h[P+1]&127,b===0&&w===0)continue;if(this.logger.log(s.DATA,"["+i([h[P],h[P+1]])+"] -> ("+i([b,w])+")"),d=this.parseCmd(b,w),d||(d=this.parseMidrow(b,w)),d||(d=this.parsePAC(b,w)),d||(d=this.parseBackgroundAttributes(b,w)),!d&&(A=this.parseChars(b,w),A)){var S=this.currentChannel;if(S&&S>0){var U=this.channels[S];U.insertChars(A)}else this.logger.log(s.WARNING,"No channel found yet. TEXT-MODE?")}!d&&!A&&this.logger.log(s.WARNING,"Couldn't parse cleaned data "+i([b,w])+" orig: "+i([h[P],h[P+1]]))}},u.parseCmd=function(l,h){var d=this.cmdHistory,b=(l===20||l===28||l===21||l===29)&&h>=32&&h<=47,w=(l===23||l===31)&&h>=33&&h<=35;if(!(b||w))return!1;if(E(l,h,d))return p(null,null,d),this.logger.log(s.DEBUG,"Repeated command ("+i([l,h])+") is dropped"),!0;var A=l===20||l===21||l===23?1:2,P=this.channels[A];return l===20||l===21||l===28||l===29?h===32?P.ccRCL():h===33?P.ccBS():h===34?P.ccAOF():h===35?P.ccAON():h===36?P.ccDER():h===37?P.ccRU(2):h===38?P.ccRU(3):h===39?P.ccRU(4):h===40?P.ccFON():h===41?P.ccRDC():h===42?P.ccTR():h===43?P.ccRTD():h===44?P.ccEDM():h===45?P.ccCR():h===46?P.ccENM():h===47&&P.ccEOC():P.ccTO(h-32),p(l,h,d),this.currentChannel=A,!0},u.parseMidrow=function(l,h){var d=0;if((l===17||l===25)&&h>=32&&h<=47){if(l===17?d=1:d=2,d!==this.currentChannel)return this.logger.log(s.ERROR,"Mismatch channel in midrow parsing"),!1;var b=this.channels[d];return b?(b.ccMIDROW(h),this.logger.log(s.DEBUG,"MIDROW ("+i([l,h])+")"),!0):!1}return!1},u.parsePAC=function(l,h){var d,b=this.cmdHistory,w=(l>=17&&l<=23||l>=25&&l<=31)&&h>=64&&h<=127,A=(l===16||l===24)&&h>=64&&h<=95;if(!(w||A))return!1;if(E(l,h,b))return p(null,null,b),!0;var P=l<=23?1:2;h>=64&&h<=95?d=P===1?C[l]:v[l]:d=P===1?O[l]:g[l];var S=this.channels[P];return S?(S.setPAC(this.interpretPAC(d,h)),p(l,h,b),this.currentChannel=P,!0):!1},u.interpretPAC=function(l,h){var d,b={color:null,italics:!1,indent:null,underline:!1,row:l};return h>95?d=h-96:d=h-64,b.underline=(d&1)===1,d<=13?b.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(d/2)]:d<=15?(b.italics=!0,b.color="white"):b.indent=Math.floor((d-16)/2)*4,b},u.parseChars=function(l,h){var d,b=null,w=null;if(l>=25?(d=2,w=l-8):(d=1,w=l),w>=17&&w<=19){var A;w===17?A=h+80:w===18?A=h+112:A=h+144,this.logger.log(s.INFO,"Special char '"+x(A)+"' in channel "+d),b=[A]}else l>=32&&l<=127&&(b=h===0?[l]:[l,h]);if(b){var P=i(b);this.logger.log(s.DEBUG,"Char codes = "+P.join(",")),p(l,h,this.cmdHistory)}return b},u.parseBackgroundAttributes=function(l,h){var d=(l===16||l===24)&&h>=32&&h<=47,b=(l===23||l===31)&&h>=45&&h<=47;if(!(d||b))return!1;var w,A={};l===16||l===24?(w=Math.floor((h-32)/2),A.background=c[w],h%2===1&&(A.background=A.background+"_semi")):h===45?A.background="transparent":(A.foreground="black",h===47&&(A.underline=!0));var P=l<=23?1:2,S=this.channels[P];return S.setBkgData(A),p(l,h,this.cmdHistory),!0},u.reset=function(){for(var l=0;l<Object.keys(this.channels).length;l++){var h=this.channels[l];h&&h.reset()}this.cmdHistory=m()},u.cueSplitAtTime=function(l){for(var h=0;h<this.channels.length;h++){var d=this.channels[h];d&&d.cueSplitAtTime(l)}},f}();function p(f,u,a){a.a=f,a.b=u}function E(f,u,a){return a.a===f&&a.b===u}function m(){return{a:null,b:null}}I.default=_},"./src/utils/codecs.ts":function(q,I,R){"use strict";R.r(I),R.d(I,"isCodecType",function(){return T}),R.d(I,"isCodecSupportedInMp4",function(){return x});var M={audio:{a3ds:!0,"ac-3":!0,"ac-4":!0,alac:!0,alaw:!0,dra1:!0,"dts+":!0,"dts-":!0,dtsc:!0,dtse:!0,dtsh:!0,"ec-3":!0,enca:!0,g719:!0,g726:!0,m4ae:!0,mha1:!0,mha2:!0,mhm1:!0,mhm2:!0,mlpa:!0,mp4a:!0,"raw ":!0,Opus:!0,samr:!0,sawb:!0,sawp:!0,sevc:!0,sqcp:!0,ssmv:!0,twos:!0,ulaw:!0},video:{avc1:!0,avc2:!0,avc3:!0,avc4:!0,avcp:!0,av01:!0,drac:!0,dvav:!0,dvhe:!0,encv:!0,hev1:!0,hvc1:!0,mjp2:!0,mp4v:!0,mvc1:!0,mvc2:!0,mvc3:!0,mvc4:!0,resv:!0,rv60:!0,s263:!0,svc1:!0,svc2:!0,"vc-1":!0,vp08:!0,vp09:!0},text:{stpp:!0,wvtt:!0}};function T(N,L){var C=M[L];return!!C&&C[N.slice(0,4)]===!0}function x(N,L){return MediaSource.isTypeSupported((L||"video")+'/mp4;codecs="'+N+'"')}},"./src/utils/cues.ts":function(q,I,R){"use strict";R.r(I);var M=R("./src/utils/vttparser.ts"),T=R("./src/utils/webvtt-parser.ts"),x=R("./src/utils/texttrack-utils.ts"),N=/\s/,L={newCue:function(O,v,g,c){for(var s=[],n,i,o,e,t,r=self.VTTCue||self.TextTrackCue,y=0;y<c.rows.length;y++)if(n=c.rows[y],o=!0,e=0,t="",!n.isEmpty()){for(var _=0;_<n.chars.length;_++)N.test(n.chars[_].uchar)&&o?e++:(t+=n.chars[_].uchar,o=!1);n.cueStartTime=v,v===g&&(g+=1e-4),e>=16?e--:e++;var p=Object(M.fixLineBreaks)(t.trim()),E=Object(T.generateCueId)(v,g,p);(!O||!O.cues||!O.cues.getCueById(E))&&(i=new r(v,g,p),i.id=E,i.line=y+1,i.align="left",i.position=10+Math.min(80,Math.floor(e*8/32)*10),s.push(i))}return O&&s.length&&(s.sort(function(m,f){return m.line==="auto"||f.line==="auto"?0:m.line>8&&f.line>8?f.line-m.line:m.line-f.line}),s.forEach(function(m){return Object(x.addCueToTrack)(O,m)})),s}};I.default=L},"./src/utils/discontinuities.ts":function(q,I,R){"use strict";R.r(I),R.d(I,"findFirstFragWithCC",function(){return N}),R.d(I,"shouldAlignOnDiscontinuities",function(){return L}),R.d(I,"findDiscontinuousReferenceFrag",function(){return C}),R.d(I,"adjustSlidingStart",function(){return v}),R.d(I,"alignStream",function(){return g}),R.d(I,"alignPDT",function(){return s}),R.d(I,"alignFragmentByPDTDelta",function(){return n}),R.d(I,"alignMediaPlaylistByPDT",function(){return i});var M=R("./src/polyfills/number.ts"),T=R("./src/utils/logger.ts"),x=R("./src/controller/level-helper.ts");function N(o,e){for(var t=null,r=0,y=o.length;r<y;r++){var _=o[r];if(_&&_.cc===e){t=_;break}}return t}function L(o,e,t){return!!(e.details&&(t.endCC>t.startCC||o&&o.cc<t.startCC))}function C(o,e){var t=o.fragments,r=e.fragments;if(!r.length||!t.length){T.logger.log("No fragments to align");return}var y=N(t,r[0].cc);if(!y||y&&!y.startPTS){T.logger.log("No frag in previous level to align on");return}return y}function O(o,e){if(o){var t=o.start+e;o.start=o.startPTS=t,o.endPTS=t+o.duration}}function v(o,e){for(var t=e.fragments,r=0,y=t.length;r<y;r++)O(t[r],o);e.fragmentHint&&O(e.fragmentHint,o),e.alignedSliding=!0}function g(o,e,t){if(!e)return;c(o,t,e),!t.alignedSliding&&e.details&&s(t,e.details),!t.alignedSliding&&e.details&&!t.skippedSegments&&Object(x.adjustSliding)(e.details,t)}function c(o,e,t){if(L(o,t,e)){var r=C(t.details,e);r&&Object(M.isFiniteNumber)(r.start)&&(T.logger.log("Adjusting PTS using last level due to CC increase within current level "+e.url),v(r.start,e))}}function s(o,e){if(!e.fragments.length||!o.hasProgramDateTime||!e.hasProgramDateTime)return;var t=e.fragments[0].programDateTime,r=o.fragments[0].programDateTime,y=(r-t)/1e3+e.fragments[0].start;y&&Object(M.isFiniteNumber)(y)&&(T.logger.log("Adjusting PTS using programDateTime delta "+(r-t)+"ms, sliding:"+y.toFixed(3)+" "+o.url+" "),v(y,o))}function n(o,e){var t=o.programDateTime;if(!t)return;var r=(t-e)/1e3;o.start=o.startPTS=r,o.endPTS=r+o.duration}function i(o,e){if(!e.fragments.length||!o.hasProgramDateTime||!e.hasProgramDateTime)return;var t=e.fragments[0].programDateTime,r=e.fragments[0].start,y=t-r*1e3;o.fragments.forEach(function(_){n(_,y)}),o.fragmentHint&&n(o.fragmentHint,y),o.alignedSliding=!0}},"./src/utils/ewma-bandwidth-estimator.ts":function(q,I,R){"use strict";R.r(I);var M=R("./src/utils/ewma.ts"),T=function(){function x(L,C,O){this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultEstimate_=O,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new M.default(L),this.fast_=new M.default(C)}var N=x.prototype;return N.update=function(C,O){var v=this.slow_,g=this.fast_;this.slow_.halfLife!==C&&(this.slow_=new M.default(C,v.getEstimate(),v.getTotalWeight())),this.fast_.halfLife!==O&&(this.fast_=new M.default(O,g.getEstimate(),g.getTotalWeight()))},N.sample=function(C,O){C=Math.max(C,this.minDelayMs_);var v=8*O,g=C/1e3,c=v/g;this.fast_.sample(g,c),this.slow_.sample(g,c)},N.canEstimate=function(){var C=this.fast_;return C&&C.getTotalWeight()>=this.minWeight_},N.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},N.destroy=function(){},x}();I.default=T},"./src/utils/ewma.ts":function(q,I,R){"use strict";R.r(I);var M=function(){function T(N,L,C){L===void 0&&(L=0),C===void 0&&(C=0),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=N,this.alpha_=N?Math.exp(Math.log(.5)/N):0,this.estimate_=L,this.totalWeight_=C}var x=T.prototype;return x.sample=function(L,C){var O=Math.pow(this.alpha_,L);this.estimate_=C*(1-O)+O*this.estimate_,this.totalWeight_+=L},x.getTotalWeight=function(){return this.totalWeight_},x.getEstimate=function(){if(this.alpha_){var L=1-Math.pow(this.alpha_,this.totalWeight_);if(L)return this.estimate_/L}return this.estimate_},T}();I.default=M},"./src/utils/fetch-loader.ts":function(q,I,R){"use strict";R.r(I),R.d(I,"fetchSupported",function(){return n});var M=R("./src/polyfills/number.ts"),T=R("./src/loader/load-stats.ts"),x=R("./src/demux/chunk-cache.ts");function N(r,y){r.prototype=Object.create(y.prototype),r.prototype.constructor=r,g(r,y)}function L(r){var y=typeof Map=="function"?new Map:void 0;return L=function(p){if(p===null||!v(p))return p;if(typeof p!="function")throw new TypeError("Super expression must either be null or a function");if(typeof y!="undefined"){if(y.has(p))return y.get(p);y.set(p,E)}function E(){return C(p,arguments,c(this).constructor)}return E.prototype=Object.create(p.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),g(E,p)},L(r)}function C(r,y,_){return O()?C=Reflect.construct:C=function(E,m,f){var u=[null];u.push.apply(u,m);var a=Function.bind.apply(E,u),l=new a;return f&&g(l,f.prototype),l},C.apply(null,arguments)}function O(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}function v(r){return Function.toString.call(r).indexOf("[native code]")!==-1}function g(r,y){return g=Object.setPrototypeOf||function(p,E){return p.__proto__=E,p},g(r,y)}function c(r){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(_){return _.__proto__||Object.getPrototypeOf(_)},c(r)}function s(){return s=Object.assign||function(r){for(var y=1;y<arguments.length;y++){var _=arguments[y];for(var p in _)Object.prototype.hasOwnProperty.call(_,p)&&(r[p]=_[p])}return r},s.apply(this,arguments)}function n(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(r){}return!1}var i=function(){function r(_){this.fetchSetup=void 0,this.requestTimeout=void 0,this.request=void 0,this.response=void 0,this.controller=void 0,this.context=void 0,this.config=null,this.callbacks=null,this.stats=void 0,this.loader=null,this.fetchSetup=_.fetchSetup||e,this.controller=new self.AbortController,this.stats=new T.LoadStats}var y=r.prototype;return y.destroy=function(){this.loader=this.callbacks=null,this.abortInternal()},y.abortInternal=function(){var p=this.response;(!p||!p.ok)&&(this.stats.aborted=!0,this.controller.abort())},y.abort=function(){var p;this.abortInternal(),(p=this.callbacks)!==null&&p!==void 0&&p.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)},y.load=function(p,E,m){var f=this,u=this.stats;if(u.loading.start)throw new Error("Loader can only be used once.");u.loading.start=self.performance.now();var a=o(p,this.controller.signal),l=m.onProgress,h=p.responseType==="arraybuffer",d=h?"byteLength":"length";this.context=p,this.config=E,this.callbacks=m,this.request=this.fetchSetup(p,a),self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(function(){f.abortInternal(),m.onTimeout(u,p,f.response)},E.timeout),self.fetch(this.request).then(function(b){if(f.response=f.loader=b,!b.ok){var w=b.status,A=b.statusText;throw new t(A||"fetch, bad network response",w,b)}return u.loading.first=Math.max(self.performance.now(),u.loading.start),u.total=parseInt(b.headers.get("Content-Length")||"0"),l&&Object(M.isFiniteNumber)(E.highWaterMark)?f.loadProgressively(b,u,p,E.highWaterMark,l):h?b.arrayBuffer():b.text()}).then(function(b){var w=f.response;self.clearTimeout(f.requestTimeout),u.loading.end=Math.max(self.performance.now(),u.loading.first),u.loaded=u.total=b[d];var A={url:w.url,data:b};l&&!Object(M.isFiniteNumber)(E.highWaterMark)&&l(u,p,b,w),m.onSuccess(A,u,p,w)}).catch(function(b){if(self.clearTimeout(f.requestTimeout),u.aborted)return;var w=b.code||0;m.onError({code:w,text:b.message},p,b.details)})},y.getCacheAge=function(){var p=null;if(this.response){var E=this.response.headers.get("age");p=E?parseFloat(E):null}return p},y.loadProgressively=function(p,E,m,f,u){f===void 0&&(f=0);var a=new x.default,l=p.body.getReader(),h=function d(){return l.read().then(function(b){if(b.done)return a.dataLength&&u(E,m,a.flush(),p),Promise.resolve(new ArrayBuffer(0));var w=b.value,A=w.length;return E.loaded+=A,A<f||a.dataLength?(a.push(w),a.dataLength>=f&&u(E,m,a.flush(),p)):u(E,m,w,p),d()}).catch(function(){return Promise.reject()})};return h()},r}();function o(r,y){var _={method:"GET",mode:"cors",credentials:"same-origin",signal:y,headers:new self.Headers(s({},r.headers))};return r.rangeEnd&&_.headers.set("Range","bytes="+r.rangeStart+"-"+String(r.rangeEnd-1)),_}function e(r,y){return new self.Request(r.url,y)}var t=function(r){N(y,r);function y(_,p,E){var m;return m=r.call(this,_)||this,m.code=void 0,m.details=void 0,m.code=p,m.details=E,m}return y}(L(Error));I.default=i},"./src/utils/imsc1-ttml-parser.ts":function(q,I,R){"use strict";R.r(I),R.d(I,"IMSC1_CODEC",function(){return v}),R.d(I,"parseIMSC1",function(){return n});var M=R("./src/utils/mp4-tools.ts"),T=R("./src/utils/vttparser.ts"),x=R("./src/utils/vttcue.ts"),N=R("./src/demux/id3.ts"),L=R("./src/utils/timescale-conversion.ts"),C=R("./src/utils/webvtt-parser.ts");function O(){return O=Object.assign||function(f){for(var u=1;u<arguments.length;u++){var a=arguments[u];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(f[l]=a[l])}return f},O.apply(this,arguments)}var v="stpp.ttml.im1t",g=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,c=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,s={left:"start",center:"center",right:"end",start:"start",end:"end"};function n(f,u,a,l,h){var d=Object(M.findBox)(new Uint8Array(f),["mdat"]);if(d.length===0){h(new Error("Could not parse IMSC1 mdat"));return}var b=d[0],w=Object(N.utf8ArrayToStr)(new Uint8Array(f,b.start,b.end-b.start)),A=Object(L.toTimescaleFromScale)(u,1,a);try{l(i(w,A))}catch(P){h(P)}}function i(f,u){var a=new DOMParser,l=a.parseFromString(f,"text/xml"),h=l.getElementsByTagName("tt")[0];if(!h)throw new Error("Invalid ttml");var d={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},b=Object.keys(d).reduce(function(U,D){return U[D]=h.getAttribute("ttp:"+D)||d[D],U},{}),w=h.getAttribute("xml:space")!=="preserve",A=e(o(h,"styling","style")),P=e(o(h,"layout","region")),S=o(h,"body","[begin]");return[].map.call(S,function(U){var D=t(U,w);if(!D||!U.hasAttribute("begin"))return null;var j=p(U.getAttribute("begin"),b),K=p(U.getAttribute("dur"),b),Z=p(U.getAttribute("end"),b);if(j===null)throw _(U);if(Z===null){if(K===null)throw _(U);Z=j+K}var ne=new x.default(j-u,Z-u,D);ne.id=Object(C.generateCueId)(ne.startTime,ne.endTime,ne.text);var me=P[U.getAttribute("region")],he=A[U.getAttribute("style")];ne.position=10,ne.size=80;var Y=r(me,he),le=Y.textAlign;if(le){var ge=s[le];ge&&(ne.lineAlign=ge),ne.align=le}return O(ne,Y),ne}).filter(function(U){return U!==null})}function o(f,u,a){var l=f.getElementsByTagName(u)[0];return l?[].slice.call(l.querySelectorAll(a)):[]}function e(f){return f.reduce(function(u,a){var l=a.getAttribute("xml:id");return l&&(u[l]=a),u},{})}function t(f,u){return[].slice.call(f.childNodes).reduce(function(a,l,h){var d;return l.nodeName==="br"&&h?a+`
|
|
`:(d=l.childNodes)!==null&&d!==void 0&&d.length?t(l,u):u?a+l.textContent.trim().replace(/\s+/g," "):a+l.textContent},"")}function r(f,u){var a="http://www.w3.org/ns/ttml#styling",l=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"];return l.reduce(function(h,d){var b=y(u,a,d)||y(f,a,d);return b&&(h[d]=b),h},{})}function y(f,u,a){return f.hasAttributeNS(u,a)?f.getAttributeNS(u,a):null}function _(f){return new Error("Could not parse ttml timestamp "+f)}function p(f,u){if(!f)return null;var a=Object(T.parseTimeStamp)(f);return a===null&&(g.test(f)?a=E(f,u):c.test(f)&&(a=m(f,u))),a}function E(f,u){var a=g.exec(f),l=(a[4]|0)+(a[5]|0)/u.subFrameRate;return(a[1]|0)*3600+(a[2]|0)*60+(a[3]|0)+l/u.frameRate}function m(f,u){var a=c.exec(f),l=Number(a[1]),h=a[2];switch(h){case"h":return l*3600;case"m":return l*60;case"ms":return l*1e3;case"f":return l/u.frameRate;case"t":return l/u.tickRate}return l}},"./src/utils/logger.ts":function(q,I,R){"use strict";R.r(I),R.d(I,"enableLogs",function(){return C}),R.d(I,"logger",function(){return O});var M=function(){},T={trace:M,debug:M,log:M,warn:M,info:M,error:M},x=T;function N(v){var g=self.console[v];return g?g.bind(self.console,"["+v+"] >"):M}function L(v){for(var g=arguments.length,c=new Array(g>1?g-1:0),s=1;s<g;s++)c[s-1]=arguments[s];c.forEach(function(n){x[n]=v[n]?v[n].bind(v):N(n)})}function C(v){if(self.console&&v===!0||typeof v=="object"){L(v,"debug","log","info","warn","error");try{x.log()}catch(g){x=T}}else x=T}var O=x},"./src/utils/mediakeys-helper.ts":function(q,I,R){"use strict";R.r(I),R.d(I,"KeySystems",function(){return M}),R.d(I,"requestMediaKeySystemAccess",function(){return T});var M;(function(x){x.WIDEVINE="com.widevine.alpha",x.PLAYREADY="com.microsoft.playready"})(M||(M={}));var T=function(){return typeof self!="undefined"&&self.navigator&&self.navigator.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null}()},"./src/utils/mediasource-helper.ts":function(q,I,R){"use strict";R.r(I),R.d(I,"getMediaSource",function(){return M});function M(){return self.MediaSource||self.WebKitMediaSource}},"./src/utils/mp4-tools.ts":function(q,I,R){"use strict";R.r(I),R.d(I,"bin2str",function(){return L}),R.d(I,"readUint16",function(){return C}),R.d(I,"readUint32",function(){return O}),R.d(I,"writeUint32",function(){return v}),R.d(I,"findBox",function(){return g}),R.d(I,"parseSegmentIndex",function(){return c}),R.d(I,"parseInitSegment",function(){return s}),R.d(I,"getStartDTS",function(){return n}),R.d(I,"getDuration",function(){return i}),R.d(I,"computeRawDurationFromSamples",function(){return o}),R.d(I,"offsetStartDTS",function(){return e}),R.d(I,"segmentValidRange",function(){return t}),R.d(I,"appendUint8Array",function(){return r});var M=R("./src/utils/typed-array.ts"),T=R("./src/loader/fragment.ts"),x=Math.pow(2,32)-1,N=[].push;function L(y){return String.fromCharCode.apply(null,y)}function C(y,_){"data"in y&&(_+=y.start,y=y.data);var p=y[_]<<8|y[_+1];return p<0?65536+p:p}function O(y,_){"data"in y&&(_+=y.start,y=y.data);var p=y[_]<<24|y[_+1]<<16|y[_+2]<<8|y[_+3];return p<0?4294967296+p:p}function v(y,_,p){"data"in y&&(_+=y.start,y=y.data),y[_]=p>>24,y[_+1]=p>>16&255,y[_+2]=p>>8&255,y[_+3]=p&255}function g(y,_){var p=[];if(!_.length)return p;var E,m,f;"data"in y?(E=y.data,m=y.start,f=y.end):(E=y,m=0,f=E.byteLength);for(var u=m;u<f;){var a=O(E,u),l=L(E.subarray(u+4,u+8)),h=a>1?u+a:f;if(l===_[0])if(_.length===1)p.push({data:E,start:u+8,end:h});else{var d=g({data:E,start:u+8,end:h},_.slice(1));d.length&&N.apply(p,d)}u=h}return p}function c(y){var _=g(y,["moov"]),p=_[0],E=p?p.end:null,m=g(y,["sidx"]);if(!m||!m[0])return null;var f=[],u=m[0],a=u.data[0],l=a===0?8:16,h=O(u,l);l+=4;var d=0,b=0;a===0?l+=8:l+=16,l+=2;var w=u.end+b,A=C(u,l);l+=2;for(var P=0;P<A;P++){var S=l,U=O(u,S);S+=4;var D=U&2147483647,j=(U&2147483648)>>>31;if(j===1)return console.warn("SIDX has hierarchical references (not supported)"),null;var K=O(u,S);S+=4,f.push({referenceSize:D,subsegmentDuration:K,info:{duration:K/h,start:w,end:w+D-1}}),w+=D,S+=4,l=S}return{earliestPresentationTime:d,timescale:h,version:a,referencesCount:A,references:f,moovEndOffset:E}}function s(y){for(var _=[],p=g(y,["moov","trak"]),E=0;E<p.length;E++){var m=p[E],f=g(m,["tkhd"])[0];if(f){var u=f.data[f.start],a=u===0?12:20,l=O(f,a),h=g(m,["mdia","mdhd"])[0];if(h){u=h.data[h.start],a=u===0?12:20;var d=O(h,a),b=g(m,["mdia","hdlr"])[0];if(b){var w=L(b.data.subarray(b.start+8,b.start+12)),A={soun:T.ElementaryStreamTypes.AUDIO,vide:T.ElementaryStreamTypes.VIDEO}[w];if(A){var P=g(m,["mdia","minf","stbl","stsd"])[0],S=void 0;P&&(S=L(P.data.subarray(P.start+12,P.start+16))),_[l]={timescale:d,type:A},_[A]={timescale:d,id:l,codec:S}}}}}}var U=g(y,["moov","mvex","trex"]);return U.forEach(function(D){var j=O(D,4),K=_[j];K&&(K.default={duration:O(D,12),flags:O(D,20)})}),_}function n(y,_){return g(_,["moof","traf"]).reduce(function(p,E){var m=g(E,["tfdt"])[0],f=m.data[m.start],u=g(E,["tfhd"]).reduce(function(a,l){var h=O(l,4),d=y[h];if(d){var b=O(m,4);f===1&&(b*=Math.pow(2,32),b+=O(m,8));var w=d.timescale||9e4,A=b/w;if(isFinite(A)&&(a===null||A<a))return A}return a},null);return u!==null&&isFinite(u)&&(p===null||u<p)?u:p},null)||0}function i(y,_){for(var p=0,E=0,m=0,f=g(y,["moof","traf"]),u=0;u<f.length;u++){var a=f[u],l=g(a,["tfhd"])[0],h=O(l,4),d=_[h];if(!d)continue;var b=d.default,w=O(l,0)|(b==null?void 0:b.flags),A=b==null?void 0:b.duration;w&8&&(w&2?A=O(l,12):A=O(l,8));for(var P=d.timescale||9e4,S=g(a,["trun"]),U=0;U<S.length;U++){if(A){var D=O(S[U],4);p=A*D}else p=o(S[U]);d.type===T.ElementaryStreamTypes.VIDEO?E+=p/P:d.type===T.ElementaryStreamTypes.AUDIO&&(m+=p/P)}}if(E===0&&m===0){var j=c(y);if(j!=null&&j.references)return j.references.reduce(function(K,Z){return K+Z.info.duration||0},0)}return E||m}function o(y){var _=O(y,0),p=8;_&1&&(p+=4),_&4&&(p+=4);for(var E=0,m=O(y,4),f=0;f<m;f++){if(_&256){var u=O(y,p);E+=u,p+=4}_&512&&(p+=4),_&1024&&(p+=4),_&2048&&(p+=4)}return E}function e(y,_,p){g(_,["moof","traf"]).forEach(function(E){g(E,["tfhd"]).forEach(function(m){var f=O(m,4),u=y[f];if(!u)return;var a=u.timescale||9e4;g(E,["tfdt"]).forEach(function(l){var h=l.data[l.start],d=O(l,4);if(h===0)v(l,4,d-p*a);else{d*=Math.pow(2,32),d+=O(l,8),d-=p*a,d=Math.max(d,0);var b=Math.floor(d/(x+1)),w=Math.floor(d%(x+1));v(l,4,b),v(l,8,w)}})})})}function t(y){var _={valid:null,remainder:null},p=g(y,["moof"]);if(p){if(p.length<2)return _.remainder=y,_}else return _;var E=p[p.length-1];return _.valid=Object(M.sliceUint8)(y,0,E.start-8),_.remainder=Object(M.sliceUint8)(y,E.start-8),_}function r(y,_){var p=new Uint8Array(y.length+_.length);return p.set(y),p.set(_,y.length),p}},"./src/utils/output-filter.ts":function(q,I,R){"use strict";R.r(I),R.d(I,"default",function(){return M});var M=function(){function T(N,L){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=N,this.trackName=L}var x=T.prototype;return x.dispatchCue=function(){if(this.startTime===null)return;this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null},x.newCue=function(L,C,O){(this.startTime===null||this.startTime>L)&&(this.startTime=L),this.endTime=C,this.screen=O,this.timelineController.createCaptionsTrack(this.trackName)},x.reset=function(){this.cueRanges=[]},T}()},"./src/utils/texttrack-utils.ts":function(q,I,R){"use strict";R.r(I),R.d(I,"sendAddTrackEvent",function(){return T}),R.d(I,"addCueToTrack",function(){return x}),R.d(I,"clearCurrentCues",function(){return N}),R.d(I,"removeCuesInRange",function(){return L}),R.d(I,"getCuesInRange",function(){return O});var M=R("./src/utils/logger.ts");function T(v,g){var c;try{c=new Event("addtrack")}catch(s){c=document.createEvent("Event"),c.initEvent("addtrack",!1,!1)}c.track=v,g.dispatchEvent(c)}function x(v,g){var c=v.mode;if(c==="disabled"&&(v.mode="hidden"),v.cues&&!v.cues.getCueById(g.id))try{if(v.addCue(g),!v.cues.getCueById(g.id))throw new Error("addCue is failed for: "+g)}catch(n){M.logger.debug("[texttrack-utils]: "+n);var s=new self.TextTrackCue(g.startTime,g.endTime,g.text);s.id=g.id,v.addCue(s)}c==="disabled"&&(v.mode=c)}function N(v){var g=v.mode;if(g==="disabled"&&(v.mode="hidden"),v.cues)for(var c=v.cues.length;c--;)v.removeCue(v.cues[c]);g==="disabled"&&(v.mode=g)}function L(v,g,c){var s=v.mode;if(s==="disabled"&&(v.mode="hidden"),v.cues&&v.cues.length>0)for(var n=O(v.cues,g,c),i=0;i<n.length;i++)v.removeCue(n[i]);s==="disabled"&&(v.mode=s)}function C(v,g){if(g<v[0].startTime)return 0;var c=v.length-1;if(g>v[c].endTime)return-1;for(var s=0,n=c;s<=n;){var i=Math.floor((n+s)/2);if(g<v[i].startTime)n=i-1;else if(g>v[i].startTime&&s<c)s=i+1;else return i}return v[s].startTime-g<g-v[n].startTime?s:n}function O(v,g,c){var s=[],n=C(v,g);if(n>-1)for(var i=n,o=v.length;i<o;i++){var e=v[i];if(e.startTime>=g&&e.endTime<=c)s.push(e);else if(e.startTime>c)return s}return s}},"./src/utils/time-ranges.ts":function(q,I,R){"use strict";R.r(I);var M={toString:function(x){for(var N="",L=x.length,C=0;C<L;C++)N+="["+x.start(C).toFixed(3)+","+x.end(C).toFixed(3)+"]";return N}};I.default=M},"./src/utils/timescale-conversion.ts":function(q,I,R){"use strict";R.r(I),R.d(I,"toTimescaleFromBase",function(){return T}),R.d(I,"toTimescaleFromScale",function(){return x}),R.d(I,"toMsFromMpegTsClock",function(){return N}),R.d(I,"toMpegTsClockFromTimescale",function(){return L});var M=9e4;function T(C,O,v,g){v===void 0&&(v=1),g===void 0&&(g=!1);var c=C*O*v;return g?Math.round(c):c}function x(C,O,v,g){return v===void 0&&(v=1),g===void 0&&(g=!1),T(C,O,1/v,g)}function N(C,O){return O===void 0&&(O=!1),T(C,1e3,1/M,O)}function L(C,O){return O===void 0&&(O=1),T(C,M,1/O)}},"./src/utils/typed-array.ts":function(q,I,R){"use strict";R.r(I),R.d(I,"sliceUint8",function(){return M});function M(T,x,N){return Uint8Array.prototype.slice?T.slice(x,N):new Uint8Array(Array.prototype.slice.call(T,x,N))}},"./src/utils/vttcue.ts":function(q,I,R){"use strict";R.r(I),I.default=function(){if(typeof self!="undefined"&&self.VTTCue)return self.VTTCue;var M=["","lr","rl"],T=["start","middle","end","left","right"];function x(v,g){if(typeof g!="string")return!1;if(!Array.isArray(v))return!1;var c=g.toLowerCase();return~v.indexOf(c)?c:!1}function N(v){return x(M,v)}function L(v){return x(T,v)}function C(v){for(var g=arguments.length,c=new Array(g>1?g-1:0),s=1;s<g;s++)c[s-1]=arguments[s];for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var o in i)v[o]=i[o]}return v}function O(v,g,c){var s=this,n={enumerable:!0};s.hasBeenReset=!1;var i="",o=!1,e=v,t=g,r=c,y=null,_="",p=!0,E="auto",m="start",f=50,u="middle",a=50,l="middle";Object.defineProperty(s,"id",C({},n,{get:function(){return i},set:function(d){i=""+d}})),Object.defineProperty(s,"pauseOnExit",C({},n,{get:function(){return o},set:function(d){o=!!d}})),Object.defineProperty(s,"startTime",C({},n,{get:function(){return e},set:function(d){if(typeof d!="number")throw new TypeError("Start time must be set to a number.");e=d,this.hasBeenReset=!0}})),Object.defineProperty(s,"endTime",C({},n,{get:function(){return t},set:function(d){if(typeof d!="number")throw new TypeError("End time must be set to a number.");t=d,this.hasBeenReset=!0}})),Object.defineProperty(s,"text",C({},n,{get:function(){return r},set:function(d){r=""+d,this.hasBeenReset=!0}})),Object.defineProperty(s,"region",C({},n,{get:function(){return y},set:function(d){y=d,this.hasBeenReset=!0}})),Object.defineProperty(s,"vertical",C({},n,{get:function(){return _},set:function(d){var b=N(d);if(b===!1)throw new SyntaxError("An invalid or illegal string was specified.");_=b,this.hasBeenReset=!0}})),Object.defineProperty(s,"snapToLines",C({},n,{get:function(){return p},set:function(d){p=!!d,this.hasBeenReset=!0}})),Object.defineProperty(s,"line",C({},n,{get:function(){return E},set:function(d){if(typeof d!="number"&&d!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");E=d,this.hasBeenReset=!0}})),Object.defineProperty(s,"lineAlign",C({},n,{get:function(){return m},set:function(d){var b=L(d);if(!b)throw new SyntaxError("An invalid or illegal string was specified.");m=b,this.hasBeenReset=!0}})),Object.defineProperty(s,"position",C({},n,{get:function(){return f},set:function(d){if(d<0||d>100)throw new Error("Position must be between 0 and 100.");f=d,this.hasBeenReset=!0}})),Object.defineProperty(s,"positionAlign",C({},n,{get:function(){return u},set:function(d){var b=L(d);if(!b)throw new SyntaxError("An invalid or illegal string was specified.");u=b,this.hasBeenReset=!0}})),Object.defineProperty(s,"size",C({},n,{get:function(){return a},set:function(d){if(d<0||d>100)throw new Error("Size must be between 0 and 100.");a=d,this.hasBeenReset=!0}})),Object.defineProperty(s,"align",C({},n,{get:function(){return l},set:function(d){var b=L(d);if(!b)throw new SyntaxError("An invalid or illegal string was specified.");l=b,this.hasBeenReset=!0}})),s.displayState=void 0}return O.prototype.getCueAsHTML=function(){var v=self.WebVTT;return v.convertCueToDOMTree(self,this.text)},O}()},"./src/utils/vttparser.ts":function(q,I,R){"use strict";R.r(I),R.d(I,"parseTimeStamp",function(){return x}),R.d(I,"fixLineBreaks",function(){return g}),R.d(I,"VTTParser",function(){return c});var M=R("./src/utils/vttcue.ts"),T=function(){function s(){}var n=s.prototype;return n.decode=function(o,e){if(!o)return"";if(typeof o!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(o))},s}();function x(s){function n(o,e,t,r){return(o|0)*3600+(e|0)*60+(t|0)+parseFloat(r||0)}var i=s.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return i?parseFloat(i[2])>59?n(i[2],i[3],0,i[4]):n(i[1],i[2],i[3],i[4]):null}var N=function(){function s(){this.values=Object.create(null)}var n=s.prototype;return n.set=function(o,e){!this.get(o)&&e!==""&&(this.values[o]=e)},n.get=function(o,e,t){return t?this.has(o)?this.values[o]:e[t]:this.has(o)?this.values[o]:e},n.has=function(o){return o in this.values},n.alt=function(o,e,t){for(var r=0;r<t.length;++r)if(e===t[r]){this.set(o,e);break}},n.integer=function(o,e){/^-?\d+$/.test(e)&&this.set(o,parseInt(e,10))},n.percent=function(o,e){if(/^([\d]{1,3})(\.[\d]*)?%$/.test(e)){var t=parseFloat(e);if(t>=0&&t<=100)return this.set(o,t),!0}return!1},s}();function L(s,n,i,o){var e=o?s.split(o):[s];for(var t in e){if(typeof e[t]!="string")continue;var r=e[t].split(i);if(r.length!==2)continue;var y=r[0],_=r[1];n(y,_)}}var C=new M.default(0,0,""),O=C.align==="middle"?"middle":"center";function v(s,n,i){var o=s;function e(){var y=x(s);if(y===null)throw new Error("Malformed timestamp: "+o);return s=s.replace(/^[^\sa-zA-Z-]+/,""),y}function t(y,_){var p=new N;L(y,function(f,u){var a;switch(f){case"region":for(var l=i.length-1;l>=0;l--)if(i[l].id===u){p.set(f,i[l].region);break}break;case"vertical":p.alt(f,u,["rl","lr"]);break;case"line":a=u.split(","),p.integer(f,a[0]),p.percent(f,a[0])&&p.set("snapToLines",!1),p.alt(f,a[0],["auto"]),a.length===2&&p.alt("lineAlign",a[1],["start",O,"end"]);break;case"position":a=u.split(","),p.percent(f,a[0]),a.length===2&&p.alt("positionAlign",a[1],["start",O,"end","line-left","line-right","auto"]);break;case"size":p.percent(f,u);break;case"align":p.alt(f,u,["start",O,"end","left","right"]);break}},/:/,/\s/),_.region=p.get("region",null),_.vertical=p.get("vertical","");var E=p.get("line","auto");E==="auto"&&C.line===-1&&(E=-1),_.line=E,_.lineAlign=p.get("lineAlign","start"),_.snapToLines=p.get("snapToLines",!0),_.size=p.get("size",100),_.align=p.get("align",O);var m=p.get("position","auto");m==="auto"&&C.position===50&&(m=_.align==="start"||_.align==="left"?0:_.align==="end"||_.align==="right"?100:50),_.position=m}function r(){s=s.replace(/^\s+/,"")}if(r(),n.startTime=e(),r(),s.substr(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+o);s=s.substr(3),r(),n.endTime=e(),r(),t(s,n)}function g(s){return s.replace(/<br(?: \/)?>/gi,`
|
|
`)}var c=function(){function s(){this.state="INITIAL",this.buffer="",this.decoder=new T,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}var n=s.prototype;return n.parse=function(o){var e=this;o&&(e.buffer+=e.decoder.decode(o,{stream:!0}));function t(){var m=e.buffer,f=0;for(m=g(m);f<m.length&&m[f]!=="\r"&&m[f]!==`
|
|
`;)++f;var u=m.substr(0,f);return m[f]==="\r"&&++f,m[f]===`
|
|
`&&++f,e.buffer=m.substr(f),u}function r(m){L(m,function(f,u){},/:/)}try{var y="";if(e.state==="INITIAL"){if(!/\r\n|\n/.test(e.buffer))return this;y=t();var _=y.match(/^()?WEBVTT([ \t].*)?$/);if(!_||!_[0])throw new Error("Malformed WebVTT signature.");e.state="HEADER"}for(var p=!1;e.buffer;){if(!/\r\n|\n/.test(e.buffer))return this;p?p=!1:y=t();switch(e.state){case"HEADER":/:/.test(y)?r(y):y||(e.state="ID");continue;case"NOTE":y||(e.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(y)){e.state="NOTE";break}if(!y)continue;if(e.cue=new M.default(0,0,""),e.state="CUE",y.indexOf("-->")===-1){e.cue.id=y;continue}case"CUE":if(!e.cue){e.state="BADCUE";continue}try{v(y,e.cue,e.regionList)}catch(m){e.cue=null,e.state="BADCUE";continue}e.state="CUETEXT";continue;case"CUETEXT":{var E=y.indexOf("-->")!==-1;if(!y||E&&(p=!0)){e.oncue&&e.cue&&e.oncue(e.cue),e.cue=null,e.state="ID";continue}if(e.cue===null)continue;e.cue.text&&(e.cue.text+=`
|
|
`),e.cue.text+=y}continue;case"BADCUE":y||(e.state="ID")}}}catch(m){e.state==="CUETEXT"&&e.cue&&e.oncue&&e.oncue(e.cue),e.cue=null,e.state=e.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this},n.flush=function(){var o=this;try{if((o.cue||o.state==="HEADER")&&(o.buffer+=`
|
|
|
|
`,o.parse()),o.state==="INITIAL"||o.state==="BADWEBVTT")throw new Error("Malformed WebVTT signature.")}catch(e){o.onparsingerror&&o.onparsingerror(e)}return o.onflush&&o.onflush(),this},s}()},"./src/utils/webvtt-parser.ts":function(q,I,R){"use strict";R.r(I),R.d(I,"generateCueId",function(){return c}),R.d(I,"parseWebVTT",function(){return n});var M=R("./src/polyfills/number.ts"),T=R("./src/utils/vttparser.ts"),x=R("./src/demux/id3.ts"),N=R("./src/utils/timescale-conversion.ts"),L=R("./src/remux/mp4-remuxer.ts"),C=/\r\n|\n\r|\n|\r/g,O=function(o,e,t){return t===void 0&&(t=0),o.substr(t,e.length)===e},v=function(o){var e=parseInt(o.substr(-3)),t=parseInt(o.substr(-6,2)),r=parseInt(o.substr(-9,2)),y=o.length>9?parseInt(o.substr(0,o.indexOf(":"))):0;if(!Object(M.isFiniteNumber)(e)||!Object(M.isFiniteNumber)(t)||!Object(M.isFiniteNumber)(r)||!Object(M.isFiniteNumber)(y))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+o);return e+=1e3*t,e+=60*1e3*r,e+=60*60*1e3*y,e},g=function(o){for(var e=5381,t=o.length;t;)e=e*33^o.charCodeAt(--t);return(e>>>0).toString()};function c(i,o,e){return g(i.toString())+g(o.toString())+g(e)}var s=function(o,e,t){var r=o[e],y=o[r.prevCC];if(!y||!y.new&&r.new){o.ccOffset=o.presentationOffset=r.start,r.new=!1;return}for(;(_=y)!==null&&_!==void 0&&_.new;){var _;o.ccOffset+=r.start-y.start,r.new=!1,r=y,y=o[r.prevCC]}o.presentationOffset=t};function n(i,o,e,t,r,y,_,p){var E=new T.VTTParser,m=Object(x.utf8ArrayToStr)(new Uint8Array(i)).trim().replace(C,`
|
|
`).split(`
|
|
`),f=[],u=Object(N.toMpegTsClockFromTimescale)(o,e),a="00:00.000",l=0,h=0,d,b=!0,w=!1;E.oncue=function(A){var P=t[r],S=t.ccOffset,U=(l-u)/9e4;if(P!=null&&P.new&&(h!==void 0?S=t.ccOffset=P.start:s(t,r,U)),U&&(S=U-t.presentationOffset),w){var D=A.endTime-A.startTime,j=Object(L.normalizePts)((A.startTime+S-h)*9e4,y*9e4)/9e4;A.startTime=j,A.endTime=j+D}var K=A.text.trim();A.text=decodeURIComponent(encodeURIComponent(K)),A.id||(A.id=c(A.startTime,A.endTime,K)),A.endTime>0&&f.push(A)},E.onparsingerror=function(A){d=A},E.onflush=function(){if(d){p(d);return}_(f)},m.forEach(function(A){if(b)if(O(A,"X-TIMESTAMP-MAP=")){b=!1,w=!0,A.substr(16).split(",").forEach(function(P){O(P,"LOCAL:")?a=P.substr(6):O(P,"MPEGTS:")&&(l=parseInt(P.substr(7)))});try{h=v(a)/1e3}catch(P){w=!1,d=P}return}else A===""&&(b=!1);E.parse(A+`
|
|
`)}),E.flush()}},"./src/utils/xhr-loader.ts":function(q,I,R){"use strict";R.r(I);var M=R("./src/utils/logger.ts"),T=R("./src/loader/load-stats.ts"),x=/^age:\s*[\d.]+\s*$/m,N=function(){function L(O){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=void 0,this.loader=null,this.stats=void 0,this.xhrSetup=O?O.xhrSetup:null,this.stats=new T.LoadStats,this.retryDelay=0}var C=L.prototype;return C.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null},C.abortInternal=function(){var v=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),v&&(v.onreadystatechange=null,v.onprogress=null,v.readyState!==4&&(this.stats.aborted=!0,v.abort()))},C.abort=function(){var v;this.abortInternal(),(v=this.callbacks)!==null&&v!==void 0&&v.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},C.load=function(v,g,c){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=v,this.config=g,this.callbacks=c,this.retryDelay=g.retryDelay,this.loadInternal()},C.loadInternal=function(){var v=this.config,g=this.context;if(!v)return;var c=this.loader=new self.XMLHttpRequest,s=this.stats;s.loading.first=0,s.loaded=0;var n=this.xhrSetup;try{if(n)try{n(c,g.url)}catch(e){c.open("GET",g.url,!0),n(c,g.url)}c.readyState||c.open("GET",g.url,!0);var i=this.context.headers;if(i)for(var o in i)c.setRequestHeader(o,i[o])}catch(e){this.callbacks.onError({code:c.status,text:e.message},g,c);return}g.rangeEnd&&c.setRequestHeader("Range","bytes="+g.rangeStart+"-"+(g.rangeEnd-1)),c.onreadystatechange=this.readystatechange.bind(this),c.onprogress=this.loadprogress.bind(this),c.responseType=g.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),v.timeout),c.send()},C.readystatechange=function(){var v=this.context,g=this.loader,c=this.stats;if(!v||!g)return;var s=g.readyState,n=this.config;if(c.aborted)return;if(s>=2)if(self.clearTimeout(this.requestTimeout),c.loading.first===0&&(c.loading.first=Math.max(self.performance.now(),c.loading.start)),s===4){g.onreadystatechange=null,g.onprogress=null;var i=g.status;if(i>=200&&i<300){c.loading.end=Math.max(self.performance.now(),c.loading.first);var o,e;if(v.responseType==="arraybuffer"?(o=g.response,e=o.byteLength):(o=g.responseText,e=o.length),c.loaded=c.total=e,!this.callbacks)return;var t=this.callbacks.onProgress;if(t&&t(c,v,o,g),!this.callbacks)return;var r={url:g.responseURL,data:o};this.callbacks.onSuccess(r,c,v,g)}else c.retry>=n.maxRetry||i>=400&&i<499?(M.logger.error(i+" while loading "+v.url),this.callbacks.onError({code:i,text:g.statusText},v,g)):(M.logger.warn(i+" while loading "+v.url+", retrying in "+this.retryDelay+"..."),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay),this.retryDelay=Math.min(2*this.retryDelay,n.maxRetryDelay),c.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),n.timeout)},C.loadtimeout=function(){M.logger.warn("timeout while loading "+this.context.url);var v=this.callbacks;v&&(this.abortInternal(),v.onTimeout(this.stats,this.context,this.loader))},C.loadprogress=function(v){var g=this.stats;g.loaded=v.loaded,v.lengthComputable&&(g.total=v.total)},C.getCacheAge=function(){var v=null;if(this.loader&&x.test(this.loader.getAllResponseHeaders())){var g=this.loader.getResponseHeader("age");v=g?parseFloat(g):null}return v},L}();I.default=N}}).default})},vHTk:function(Ne,Te,k){Ne.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},wCXF:function(Ne,Te,k){"use strict";k.d(Te,"a",function(){return $e});var q=k("rePB"),I=k("VTBJ"),R=k("KQm4"),M=k("U8pU"),T=k("ODXe"),x=k("cDcd"),N=k("TSYQ"),L=k.n(N),C=k("Gytx"),O=k.n(C),v=k("Kwbf"),g=k("t23M"),c=k("qx4F"),s=k("6eGT"),n=k("IBYe"),i=k("Ff2n"),o=k("c+Xe"),e=k("fyJ8"),t=k("biw7");function r(ce,ve,xe,Se,pe){var Oe=xe[ce]||{},ie=xe[ve]||{},Q,X;Oe.fixed==="left"?Q=Se.left[ce]:ie.fixed==="right"&&(X=Se.right[ve]);var B=!1,W=!1,G=!1,J=!1,ue=xe[ve+1],ye=xe[ce-1];if(pe==="rtl"){if(Q!==void 0){var De=ye&&ye.fixed==="left";J=!De}else if(X!==void 0){var Qe=ue&&ue.fixed==="right";G=!Qe}}else if(Q!==void 0){var Je=ue&&ue.fixed==="left";B=!Je}else if(X!==void 0){var Ee=ye&&ye.fixed==="right";W=!Ee}return{fixLeft:Q,fixRight:X,lastFixLeft:B,firstFixRight:W,lastFixRight:G,firstFixLeft:J,isSticky:Se.isSticky}}var y=k("sR1s");function _(ce){var ve=ce.cells,xe=ce.stickyOffsets,Se=ce.flattenColumns,pe=ce.rowComponent,Oe=ce.cellComponent,ie=ce.onHeaderRow,Q=ce.index,X=x.useContext(t.a),B=X.prefixCls,W=X.direction,G;ie&&(G=ie(ve.map(function(ue){return ue.column}),Q));var J=Object(y.a)(ve.map(function(ue){return ue.column}));return x.createElement(pe,Object.assign({},G),ve.map(function(ue,ye){var De=ue.column,Qe=r(ue.colStart,ue.colEnd,Se,xe,W),Je;return De&&De.onHeaderCell&&(Je=ue.column.onHeaderCell(De)),x.createElement(e.a,Object.assign({},ue,{ellipsis:De.ellipsis,align:De.align,component:Oe,prefixCls:B,key:J[ye]},Qe,{additionalProps:Je,rowType:"header"}))}))}_.displayName="HeaderRow";var p=_;function E(ce){var ve=[];function xe(ie,Q){var X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;ve[X]=ve[X]||[];var B=Q,W=ie.filter(Boolean).map(function(G){var J={key:G.key,className:G.className||"",children:G.title,column:G,colStart:B},ue=1,ye=G.children;return ye&&ye.length>0&&(ue=xe(ye,B,X+1).reduce(function(De,Qe){return De+Qe},0),J.hasSubColumns=!0),"colSpan"in G&&(ue=G.colSpan),"rowSpan"in G&&(J.rowSpan=G.rowSpan),J.colSpan=ue,J.colEnd=J.colStart+ue-1,ve[X].push(J),B+=ue,ue});return W}xe(ce,0);for(var Se=ve.length,pe=function(Q){ve[Q].forEach(function(X){!("rowSpan"in X)&&!X.hasSubColumns&&(X.rowSpan=Se-Q)})},Oe=0;Oe<Se;Oe+=1)pe(Oe);return ve}function m(ce){var ve=ce.stickyOffsets,xe=ce.columns,Se=ce.flattenColumns,pe=ce.onHeaderRow,Oe=x.useContext(t.a),ie=Oe.prefixCls,Q=Oe.getComponent,X=x.useMemo(function(){return E(xe)},[xe]),B=Q(["header","wrapper"],"thead"),W=Q(["header","row"],"tr"),G=Q(["header","cell"],"th");return x.createElement(B,{className:"".concat(ie,"-thead")},X.map(function(J,ue){var ye=x.createElement(p,{key:ue,flattenColumns:Se,cells:J,stickyOffsets:ve,rowComponent:W,cellComponent:G,onHeaderRow:pe,index:ue});return ye}))}var f=m,u=k("hW8S");function a(ce){for(var ve=ce.colWidths,xe=ce.columns,Se=ce.columCount,pe=[],Oe=Se||xe.length,ie=!1,Q=Oe-1;Q>=0;Q-=1){var X=ve[Q],B=xe&&xe[Q],W=B&&B[u.a];(X||W||ie)&&(pe.unshift(x.createElement("col",Object.assign({key:Q,style:{width:X,minWidth:X}},W))),ie=!0)}return x.createElement("colgroup",null,pe)}var l=a;function h(ce,ve){return Object(x.useMemo)(function(){for(var xe=[],Se=0;Se<ve;Se+=1){var pe=ce[Se];if(pe!==void 0)xe[Se]=pe;else return null}return xe},[ce.join("_"),ve])}var d=x.forwardRef(function(ce,ve){var xe=ce.noData,Se=ce.columns,pe=ce.flattenColumns,Oe=ce.colWidths,ie=ce.columCount,Q=ce.stickyOffsets,X=ce.direction,B=ce.fixHeader,W=ce.offsetHeader,G=ce.stickyClassName,J=ce.onScroll,ue=Object(i.a)(ce,["noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","offsetHeader","stickyClassName","onScroll"]),ye=x.useContext(t.a),De=ye.prefixCls,Qe=ye.scrollbarSize,Je=ye.isSticky,Ee=Je&&!B?0:Qe,at=x.useRef(null),Ye=x.useCallback(function(lt){Object(o.b)(ve,lt),Object(o.b)(at,lt)},[]);x.useEffect(function(){var lt;function gt(He){var rt=He.currentTarget,pt=He.deltaX;pt&&(J({currentTarget:rt,scrollLeft:rt.scrollLeft+pt}),He.preventDefault())}return(lt=at.current)===null||lt===void 0||lt.addEventListener("wheel",gt),function(){var He;(He=at.current)===null||He===void 0||He.removeEventListener("wheel",gt)}},[]);var Be=pe[pe.length-1],it={fixed:Be?Be.fixed:null,onHeaderCell:function(){return{className:"".concat(De,"-cell-scrollbar")}}},ct=Object(x.useMemo)(function(){return Ee?[].concat(Object(R.a)(Se),[it]):Se},[Ee,Se]),ot=Object(x.useMemo)(function(){return Ee?[].concat(Object(R.a)(pe),[it]):pe},[Ee,pe]),vt=Object(x.useMemo)(function(){var lt=Q.right,gt=Q.left;return Object(I.a)(Object(I.a)({},Q),{},{left:X==="rtl"?[].concat(Object(R.a)(gt.map(function(He){return He+Ee})),[0]):gt,right:X==="rtl"?lt:[].concat(Object(R.a)(lt.map(function(He){return He+Ee})),[0]),isSticky:Je})},[Ee,Q,Je]),tt=h(Oe,ie);return x.createElement("div",{style:Object(I.a)({overflow:"hidden"},Je?{top:W}:{}),ref:Ye,className:L()("".concat(De,"-header"),Object(q.a)({},G,!!G))},x.createElement("table",{style:{tableLayout:"fixed",visibility:xe||tt?null:"hidden"}},x.createElement(l,{colWidths:tt?[].concat(Object(R.a)(tt),[Ee]):[],columCount:ie+1,columns:ot}),x.createElement(f,Object.assign({},ue,{stickyOffsets:vt,columns:ct,flattenColumns:ot}))))});d.displayName="FixedHeader";var b=d,w=x.createContext(null),A=w;function P(ce){var ve=ce.prefixCls,xe=ce.children,Se=ce.component,pe=ce.cellComponent,Oe=ce.fixHeader,ie=ce.fixColumn,Q=ce.horizonScroll,X=ce.className,B=ce.expanded,W=ce.componentWidth,G=ce.colSpan,J=x.useContext(t.a),ue=J.scrollbarSize;return x.useMemo(function(){var ye=xe;return ie&&(ye=x.createElement("div",{style:{width:W-(Oe?ue:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(ve,"-expanded-row-fixed")},ye)),x.createElement(Se,{className:X,style:{display:B?null:"none"}},x.createElement(e.a,{component:pe,prefixCls:ve,colSpan:G},ye))},[xe,Se,Oe,Q,X,B,W,G,ue])}var S=P;function U(ce){var ve=ce.className,xe=ce.style,Se=ce.record,pe=ce.index,Oe=ce.rowKey,ie=ce.getRowKey,Q=ce.rowExpandable,X=ce.expandedKeys,B=ce.onRow,W=ce.indent,G=W===void 0?0:W,J=ce.rowComponent,ue=ce.cellComponent,ye=ce.childrenColumnName,De=x.useContext(t.a),Qe=De.prefixCls,Je=De.fixedInfoList,Ee=x.useContext(A),at=Ee.fixHeader,Ye=Ee.fixColumn,Be=Ee.horizonScroll,it=Ee.componentWidth,ct=Ee.flattenColumns,ot=Ee.expandableType,vt=Ee.expandRowByClick,tt=Ee.onTriggerExpand,lt=Ee.rowClassName,gt=Ee.expandedRowClassName,He=Ee.indentSize,rt=Ee.expandIcon,pt=Ee.expandedRowRender,bt=Ee.expandIconColumnIndex,xt=x.useState(!1),ft=Object(T.a)(xt,2),on=ft[0],Jt=ft[1],Ut=X&&X.has(ce.recordKey);x.useEffect(function(){Ut&&Jt(!0)},[Ut]);var Vt=ot==="row"&&(!Q||Q(Se)),jt=ot==="nest",Wt=ye&&Se&&Se[ye],un=Vt||jt,rn;B&&(rn=B(Se,pe));var mn=function(_n){if(vt&&un&&tt(Se,_n),rn&&rn.onClick){for(var On,pn=arguments.length,fn=new Array(pn>1?pn-1:0),An=1;An<pn;An++)fn[An-1]=arguments[An];(On=rn).onClick.apply(On,[_n].concat(fn))}},wn;typeof lt=="string"?wn=lt:typeof lt=="function"&&(wn=lt(Se,pe,G));var $n=Object(y.a)(ct),Bn=x.createElement(J,Object.assign({},rn,{"data-row-key":Oe,className:L()(ve,"".concat(Qe,"-row"),"".concat(Qe,"-row-level-").concat(G),wn,rn&&rn.className),style:Object(I.a)(Object(I.a)({},xe),rn?rn.style:null),onClick:mn}),ct.map(function(Zt,_n){var On=Zt.render,pn=Zt.dataIndex,fn=Zt.className,An=$n[_n],cr=Je[_n],Xn;_n===(bt||0)&&jt&&(Xn=x.createElement(x.Fragment,null,x.createElement("span",{style:{paddingLeft:"".concat(He*G,"px")},className:"".concat(Qe,"-row-indent indent-level-").concat(G)}),rt({prefixCls:Qe,expanded:Ut,expandable:Wt,record:Se,onExpand:tt})));var fr;return Zt.onCell&&(fr=Zt.onCell(Se,pe)),x.createElement(e.a,Object.assign({className:fn,ellipsis:Zt.ellipsis,align:Zt.align,component:ue,prefixCls:Qe,key:An,record:Se,index:pe,dataIndex:pn,render:On,shouldCellUpdate:Zt.shouldCellUpdate},cr,{appendNode:Xn,additionalProps:fr}))})),Ot;if(Vt&&(on||Ut)){var Yn=pt(Se,pe,G+1,Ut),dr=gt&>(Se,pe,G);Ot=x.createElement(S,{expanded:Ut,className:L()("".concat(Qe,"-expanded-row"),"".concat(Qe,"-expanded-row-level-").concat(G+1),dr),prefixCls:Qe,fixHeader:at,fixColumn:Ye,horizonScroll:Be,component:J,componentWidth:it,cellComponent:ue,colSpan:ct.length},Yn)}var Hn;return Wt&&Ut&&(Hn=(Se[ye]||[]).map(function(Zt,_n){var On=ie(Zt,_n);return x.createElement(U,Object.assign({},ce,{key:On,rowKey:On,record:Zt,recordKey:On,index:_n,indent:G+1}))})),x.createElement(x.Fragment,null,Bn,Ot,Hn)}U.displayName="BodyRow";var D=U,j=x.createContext(null),K=j;function Z(ce){var ve=ce.columnKey,xe=ce.onColumnResize,Se=x.useRef();return x.useEffect(function(){Se.current&&xe(ve,Se.current.offsetWidth)},[]),x.createElement(g.a,{onResize:function(Oe){var ie=Oe.offsetWidth;xe(ve,ie)}},x.createElement("td",{ref:Se,style:{padding:0,border:0,height:0}},x.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function ne(ce){var ve=ce.data,xe=ce.getRowKey,Se=ce.measureColumnWidth,pe=ce.expandedKeys,Oe=ce.onRow,ie=ce.rowExpandable,Q=ce.emptyNode,X=ce.childrenColumnName,B=x.useContext(K),W=B.onColumnResize,G=x.useContext(t.a),J=G.prefixCls,ue=G.getComponent,ye=x.useContext(A),De=ye.fixHeader,Qe=ye.horizonScroll,Je=ye.flattenColumns,Ee=ye.componentWidth;return x.useMemo(function(){var at=ue(["body","wrapper"],"tbody"),Ye=ue(["body","row"],"tr"),Be=ue(["body","cell"],"td"),it;ve.length?it=ve.map(function(ot,vt){var tt=xe(ot,vt);return x.createElement(D,{key:tt,rowKey:tt,record:ot,recordKey:tt,index:vt,rowComponent:Ye,cellComponent:Be,expandedKeys:pe,onRow:Oe,getRowKey:xe,rowExpandable:ie,childrenColumnName:X})}):it=x.createElement(S,{expanded:!0,className:"".concat(J,"-placeholder"),prefixCls:J,fixHeader:De,fixColumn:Qe,horizonScroll:Qe,component:Ye,componentWidth:Ee,cellComponent:Be,colSpan:Je.length},Q);var ct=Object(y.a)(Je);return x.createElement(at,{className:"".concat(J,"-tbody")},Se&&x.createElement("tr",{"aria-hidden":"true",className:"".concat(J,"-measure-row"),style:{height:0}},ct.map(function(ot){return x.createElement(Z,{key:ot,columnKey:ot,onColumnResize:W})})),it)},[ve,J,Oe,Se,pe,xe,ue,Ee,Q,Je])}var me=x.memo(ne);me.displayName="Body";var he=me,Y=k("wRmb"),le=k("xEkU"),ge=k.n(le);function re(ce){var ve=Object(x.useRef)(ce),xe=Object(x.useState)({}),Se=Object(T.a)(xe,2),pe=Se[1],Oe=Object(x.useRef)(null),ie=Object(x.useRef)([]);function Q(X){Oe.current===null&&(ie.current=[],Oe.current=ge()(function(){ie.current.forEach(function(B){ve.current=B(ve.current)}),Oe.current=null,pe({})})),ie.current.push(X)}return Object(x.useEffect)(function(){return function(){ge.a.cancel(Oe.current)}},[]),[ve.current,Q]}function te(ce){var ve=Object(x.useRef)(ce),xe=Object(x.useRef)(null);function Se(){window.clearTimeout(xe.current)}function pe(ie){ve.current=ie,Se(),xe.current=window.setTimeout(function(){ve.current=null,xe.current=null},100)}function Oe(){return ve.current}return Object(x.useEffect)(function(){return Se},[]),[pe,Oe]}function be(ce,ve,xe){var Se=Object(x.useMemo)(function(){for(var pe=[],Oe=[],ie=0,Q=0,X=0;X<ve;X+=1)if(xe==="rtl"){Oe[X]=Q,Q+=ce[X]||0;var B=ve-X-1;pe[B]=ie,ie+=ce[B]||0}else{pe[X]=ie,ie+=ce[X]||0;var W=ve-X-1;Oe[W]=Q,Q+=ce[W]||0}return{left:pe,right:Oe}},[ce,ve,xe]);return Se}var ze=be;function Ge(ce){var ve=ce.className,xe=ce.children;return x.createElement("div",{className:ve},xe)}var Ue=Ge,Ze=k("n6Qo");function Pe(ce){var ve,xe=ce.prefixCls,Se=ce.record,pe=ce.onExpand,Oe=ce.expanded,ie=ce.expandable,Q="".concat(xe,"-row-expand-icon");if(!ie)return x.createElement("span",{className:L()(Q,"".concat(xe,"-row-spaced"))});var X=function(W){pe(Se,W),W.stopPropagation()};return x.createElement("span",{className:L()(Q,(ve={},Object(q.a)(ve,"".concat(xe,"-row-expanded"),Oe),Object(q.a)(ve,"".concat(xe,"-row-collapsed"),!Oe),ve)),onClick:X})}function Me(ce,ve,xe){var Se=[];function pe(Oe){(Oe||[]).forEach(function(ie,Q){Se.push(ve(ie,Q)),pe(ie[xe])})}return pe(ce),Se}var je=k("zT1h"),Ve=k("y0+3"),Ke=function(ve,xe){var Se,pe,Oe=ve.scrollBodyRef,ie=ve.onScroll,Q=ve.offsetScroll,X=x.useContext(t.a),B=X.prefixCls,W=((Se=Oe.current)===null||Se===void 0?void 0:Se.scrollWidth)||0,G=((pe=Oe.current)===null||pe===void 0?void 0:pe.clientWidth)||0,J=W&&G*(G/W),ue=x.useRef(),ye=re({scrollLeft:0,isHiddenScrollBar:!1}),De=Object(T.a)(ye,2),Qe=De[0],Je=De[1],Ee=x.useRef({delta:0,x:0}),at=x.useState(!1),Ye=Object(T.a)(at,2),Be=Ye[0],it=Ye[1],ct=function(){it(!1)},ot=function(He){He.persist(),Ee.current.delta=He.pageX-Qe.scrollLeft,Ee.current.x=0,it(!0),He.preventDefault()},vt=function(He){var rt,pt=He||((rt=window)===null||rt===void 0?void 0:rt.event),bt=pt.buttons;if(!Be||bt===0){Be&&it(!1);return}var xt=Ee.current.x+He.pageX-Ee.current.x-Ee.current.delta;xt<=0&&(xt=0),xt+J>=G&&(xt=G-J),ie({scrollLeft:xt/G*(W+2)}),Ee.current.x=He.pageX},tt=function(){var He=Object(Ve.b)(Oe.current).top,rt=He+Oe.current.offsetHeight,pt=document.documentElement.scrollTop+window.innerHeight;rt-Object(c.a)()<=pt||He>=pt-Q?Je(function(bt){return Object(I.a)(Object(I.a)({},bt),{},{isHiddenScrollBar:!0})}):Je(function(bt){return Object(I.a)(Object(I.a)({},bt),{},{isHiddenScrollBar:!1})})},lt=function(He){Je(function(rt){return Object(I.a)(Object(I.a)({},rt),{},{scrollLeft:He/W*G||0})})};return x.useImperativeHandle(xe,function(){return{setScrollLeft:lt}}),x.useEffect(function(){var gt=Object(je.a)(document.body,"mouseup",ct,!1),He=Object(je.a)(document.body,"mousemove",vt,!1);return tt(),function(){gt.remove(),He.remove()}},[J,Be]),x.useEffect(function(){var gt=Object(je.a)(window,"scroll",tt,!1),He=Object(je.a)(window,"resize",tt,!1);return function(){gt.remove(),He.remove()}},[]),x.useEffect(function(){Qe.isHiddenScrollBar||Je(function(gt){var He,rt;return Object(I.a)(Object(I.a)({},gt),{},{scrollLeft:Oe.current.scrollLeft/((He=Oe.current)===null||He===void 0?void 0:He.scrollWidth)*((rt=Oe.current)===null||rt===void 0?void 0:rt.clientWidth)})})},[Qe.isHiddenScrollBar]),W<=G||!J||Qe.isHiddenScrollBar?null:x.createElement("div",{style:{height:Object(c.a)(),width:G,bottom:Q},className:"".concat(B,"-sticky-scroll")},x.createElement("div",{onMouseDown:ot,ref:ue,className:L()("".concat(B,"-sticky-scroll-bar"),Object(q.a)({},"".concat(B,"-sticky-scroll-bar-active"),Be)),style:{width:"".concat(J,"px"),transform:"translate3d(".concat(Qe.scrollLeft,"px, 0, 0)")}}))},Ie=x.forwardRef(Ke);function Le(ce,ve){return x.useMemo(function(){var xe=!!ce;return{isSticky:xe,stickyClassName:xe?"".concat(ve,"-sticky-header"):"",offsetHeader:Object(M.a)(ce)==="object"&&ce.offsetHeader||0,offsetScroll:Object(M.a)(ce)==="object"&&ce.offsetScroll||0}},[ce,ve])}var st=[],nt={},$e="rc-table-internal-hook",Xe=x.memo(function(ce){var ve=ce.children;return ve},function(ce,ve){return O()(ce.props,ve.props)?ce.pingLeft!==ve.pingLeft||ce.pingRight!==ve.pingRight:!1});function ut(ce){var ve,xe=ce.prefixCls,Se=ce.className,pe=ce.rowClassName,Oe=ce.style,ie=ce.data,Q=ce.rowKey,X=ce.scroll,B=ce.tableLayout,W=ce.direction,G=ce.title,J=ce.footer,ue=ce.summary,ye=ce.id,De=ce.showHeader,Qe=ce.components,Je=ce.emptyText,Ee=ce.onRow,at=ce.onHeaderRow,Ye=ce.internalHooks,Be=ce.transformColumns,it=ce.internalRefs,ct=ce.sticky,ot=ie||st,vt=!!ot.length,tt=x.useState(0),lt=Object(T.a)(tt,2),gt=lt[0],He=lt[1];x.useEffect(function(){He(Object(c.a)())});var rt=x.useMemo(function(){return Object(y.c)(Qe,{})},[Qe]),pt=x.useCallback(function(It,Pt){return Object(y.b)(rt,It)||Pt},[rt]),bt=x.useMemo(function(){return typeof Q=="function"?Q:function(It){var Pt=It&&It[Q];return Pt}},[Q]),xt=Object(u.c)(ce),ft=xt.expandIcon,on=xt.expandedRowKeys,Jt=xt.defaultExpandedRowKeys,Ut=xt.defaultExpandAllRows,Vt=xt.expandedRowRender,jt=xt.onExpand,Wt=xt.onExpandedRowsChange,un=xt.expandRowByClick,rn=xt.rowExpandable,mn=xt.expandIconColumnIndex,wn=xt.expandedRowClassName,$n=xt.childrenColumnName,Bn=xt.indentSize,Ot=ft||Pe,Yn=$n||"children",dr=x.useMemo(function(){return Vt?"row":ce.expandable&&Ye===$e&&ce.expandable.__PARENT_RENDER_ICON__||ot.some(function(It){return It&&Object(M.a)(It)==="object"&&It[Yn]})?"nest":!1},[!!Vt,ot]),Hn=x.useState(function(){return Jt||(Ut?Me(ot,bt,Yn):[])}),Zt=Object(T.a)(Hn,2),_n=Zt[0],On=Zt[1],pn=x.useMemo(function(){return new Set(on||_n||[])},[on,_n]),fn=x.useCallback(function(It){var Pt=bt(It,ot.indexOf(It)),$t,hn=pn.has(Pt);hn?(pn.delete(Pt),$t=Object(R.a)(pn)):$t=[].concat(Object(R.a)(pn),[Pt]),On($t),jt&&jt(!hn,It),Wt&&Wt($t)},[bt,pn,ot,jt,Wt]),An=x.useState(0),cr=Object(T.a)(An,2),Xn=cr[0],fr=cr[1],Wn=Object(Y.b)(Object(I.a)(Object(I.a)(Object(I.a)({},ce),xt),{},{expandable:!!Vt,expandedKeys:pn,getRowKey:bt,onTriggerExpand:fn,expandIcon:Ot,expandIconColumnIndex:mn,direction:W}),Ye===$e?Be:null),Pr=Object(T.a)(Wn,2),er=Pr[0],qt=Pr[1],tr=x.useMemo(function(){return{columns:er,flattenColumns:qt}},[er,qt]),hr=x.useRef(),xr=x.useRef(),Ae=x.useRef(),Pn=x.useState(!1),nr=Object(T.a)(Pn,2),Qn=nr[0],Jr=nr[1],Mr=x.useState(!1),dn=Object(T.a)(Mr,2),Kn=dn[0],rr=dn[1],Zr=re(new Map),Or=Object(T.a)(Zr,2),qr=Or[0],Nr=Or[1],Mn=Object(y.a)(qt),pr=Mn.map(function(It){return qr.get(It)}),kr=x.useMemo(function(){return pr},[pr.join("_")]),mr=ze(kr,qt.length,W),xn=X&&Object(y.d)(X.y),Sn=X&&Object(y.d)(X.x),In=Sn&&qt.some(function(It){var Pt=It.fixed;return Pt}),Ar=x.useRef(),ar=Le(ct,xe),Jn=ar.isSticky,Ur=ar.offsetHeader,jr=ar.offsetScroll,Fr=ar.stickyClassName,gr,vr,Nn;xn&&(vr={overflowY:"scroll",maxHeight:X.y}),Sn&&(gr={overflowX:"auto"},xn||(vr={overflowY:"hidden"}),Nn={width:X.x===!0?"auto":X.x,minWidth:"100%"});var Gn=x.useCallback(function(It,Pt){Nr(function($t){var hn=new Map($t);return hn.set(It,Pt),hn})},[]),ir=te(null),zn=Object(T.a)(ir,2),Br=zn[0],Hr=zn[1];function sr(It,Pt){if(!Pt)return;typeof Pt=="function"?Pt(It):Pt.scrollLeft!==It&&(Pt.scrollLeft=It)}var Vn=function(Pt){var $t=Pt.currentTarget,hn=Pt.scrollLeft,En=typeof hn=="number"?hn:$t.scrollLeft,zr=$t||nt;if(!Hr()||Hr()===zr){var Ir;Br(zr),sr(En,xr.current),sr(En,Ae.current),sr(En,(Ir=Ar.current)===null||Ir===void 0?void 0:Ir.setScrollLeft)}if($t){var Vr=$t.scrollWidth,Yr=$t.clientWidth;Jr(En>0),rr(En<Vr-Yr)}},_r=function(){Ae.current&&Vn({currentTarget:Ae.current})},Wr=function(Pt){var $t=Pt.width;_r(),fr(hr.current?hr.current.offsetWidth:$t)};x.useEffect(function(){return _r},[]),x.useEffect(function(){Sn&&_r()},[Sn]),x.useEffect(function(){Ye===$e&&it&&(it.body.current=Ae.current)});var Sr=pt(["table"],"table"),Zn=x.useMemo(function(){return B||(In?X.x==="max-content"?"auto":"fixed":xn||qt.some(function(It){var Pt=It.ellipsis;return Pt})?"fixed":"auto")},[xn,In,qt,B]),or,Rr={colWidths:kr,columCount:qt.length,stickyOffsets:mr,onHeaderRow:at,fixHeader:xn},kn=x.useMemo(function(){return vt?null:typeof Je=="function"?Je():Je},[vt,Je]),$r=x.createElement(he,{data:ot,measureColumnWidth:xn||Sn||Jn,expandedKeys:pn,rowExpandable:rn,getRowKey:bt,onRow:Ee,emptyNode:kn,childrenColumnName:Yn}),Cr=x.createElement(l,{colWidths:qt.map(function(It){var Pt=It.width;return Pt}),columns:qt}),ea=ue&&x.createElement(Ze.b,null,ue(ot)),Kr=pt(["body"]);if(xn||Jn){var wr;typeof Kr=="function"?(wr=Kr(ot,{scrollbarSize:gt,ref:Ae,onScroll:Vn}),Rr.colWidths=qt.map(function(It,Pt){var $t=It.width,hn=Pt===er.length-1?$t-gt:$t;return typeof hn=="number"&&!Number.isNaN(hn)?hn:(Object(v.a)(!1,"When use `components.body` with render props. Each column should have a fixed value."),0)})):wr=x.createElement("div",{style:Object(I.a)(Object(I.a)({},gr),vr),onScroll:Vn,ref:Ae,className:L()("".concat(xe,"-body"))},x.createElement(Sr,{style:Object(I.a)(Object(I.a)({},Nn),{},{tableLayout:Zn})},Cr,$r,ea),Jn&&x.createElement(Ie,{ref:Ar,offsetScroll:jr,scrollBodyRef:Ae,onScroll:Vn})),or=x.createElement(x.Fragment,null,De!==!1&&x.createElement(b,Object.assign({noData:!ot.length},Rr,tr,{direction:W,offsetHeader:Ur,stickyClassName:Fr,ref:xr,onScroll:Vn})),wr)}else or=x.createElement("div",{style:Object(I.a)(Object(I.a)({},gr),vr),className:L()("".concat(xe,"-content")),onScroll:Vn,ref:Ae},x.createElement(Sr,{style:Object(I.a)(Object(I.a)({},Nn),{},{tableLayout:Zn})},Cr,De!==!1&&x.createElement(f,Object.assign({},Rr,tr)),$r,ea));var Rn=Object(u.b)(ce),lr=x.createElement("div",Object.assign({className:L()(xe,Se,(ve={},Object(q.a)(ve,"".concat(xe,"-rtl"),W==="rtl"),Object(q.a)(ve,"".concat(xe,"-ping-left"),Qn),Object(q.a)(ve,"".concat(xe,"-ping-right"),Kn),Object(q.a)(ve,"".concat(xe,"-layout-fixed"),B==="fixed"),Object(q.a)(ve,"".concat(xe,"-fixed-header"),xn),Object(q.a)(ve,"".concat(xe,"-fixed-column"),In),Object(q.a)(ve,"".concat(xe,"-scroll-horizontal"),Sn),Object(q.a)(ve,"".concat(xe,"-has-fix-left"),qt[0]&&qt[0].fixed),Object(q.a)(ve,"".concat(xe,"-has-fix-right"),qt[qt.length-1]&&qt[qt.length-1].fixed==="right"),ve)),style:Oe,id:ye,ref:hr},Rn),x.createElement(Xe,{pingLeft:Qn,pingRight:Kn,props:Object(I.a)(Object(I.a)({},ce),{},{stickyOffsets:mr,mergedExpandedKeys:pn})},G&&x.createElement(Ue,{className:"".concat(xe,"-title")},G(ot)),x.createElement("div",{className:"".concat(xe,"-container")},or),J&&x.createElement(Ue,{className:"".concat(xe,"-footer")},J(ot))));Sn&&(lr=x.createElement(g.a,{onResize:Wr},lr));var Gr=x.useMemo(function(){return{prefixCls:xe,getComponent:pt,scrollbarSize:gt,direction:W,fixedInfoList:qt.map(function(It,Pt){return r(Pt,Pt,qt,mr,W)}),isSticky:Jn}},[xe,pt,gt,W,qt,mr,W,Jn]),ta=x.useMemo(function(){return Object(I.a)(Object(I.a)({},tr),{},{tableLayout:Zn,rowClassName:pe,expandedRowClassName:wn,componentWidth:Xn,fixHeader:xn,fixColumn:In,horizonScroll:Sn,expandIcon:Ot,expandableType:dr,expandRowByClick:un,expandedRowRender:Vt,onTriggerExpand:fn,expandIconColumnIndex:mn,indentSize:Bn})},[tr,Zn,pe,wn,Xn,xn,In,Sn,Ot,dr,un,Vt,fn,mn,Bn]),Er=x.useMemo(function(){return{onColumnResize:Gn}},[Gn]);return x.createElement(t.a.Provider,{value:Gr},x.createElement(A.Provider,{value:ta},x.createElement(K.Provider,{value:Er},lr)))}ut.Column=n.a,ut.ColumnGroup=s.a,ut.Summary=Ze.a,ut.defaultProps={rowKey:"key",prefixCls:"rc-table",emptyText:function(){return"No Data"}};var dt=Te.b=ut},wRmb:function(Ne,Te,k){"use strict";k.d(Te,"a",function(){return O});var q=k("rePB"),I=k("KQm4"),R=k("VTBJ"),M=k("Ff2n"),T=k("cDcd"),x=k.n(T),N=k("Kwbf"),L=k("Zm9Q"),C=k("hW8S");function O(n){return Object(L.a)(n).filter(function(i){return T.isValidElement(i)}).map(function(i){var o=i.key,e=i.props,t=e.children,r=Object(M.a)(e,["children"]),y=Object(R.a)({key:o},r);return t&&(y.children=O(t)),y})}function v(n){return n.reduce(function(i,o){var e=o.fixed,t=e===!0?"left":e,r=o.children;return r&&r.length>0?[].concat(Object(I.a)(i),Object(I.a)(v(r).map(function(y){return Object(R.a)({fixed:t},y)}))):[].concat(Object(I.a)(i),[Object(R.a)(Object(R.a)({},o),{},{fixed:t})])},[])}function g(n){for(var i=!0,o=0;o<n.length;o+=1){var e=n[o];if(i&&e.fixed!=="left")i=!1;else if(!i&&e.fixed==="left"){Object(N.a)(!1,"Index ".concat(o-1," of `columns` missing `fixed='left'` prop."));break}}for(var t=!0,r=n.length-1;r>=0;r-=1){var y=n[r];if(t&&y.fixed!=="right")t=!1;else if(!t&&y.fixed==="right"){Object(N.a)(!1,"Index ".concat(r+1," of `columns` missing `fixed='right'` prop."));break}}}function c(n){return n.map(function(i){var o=i.fixed,e=Object(M.a)(i,["fixed"]),t=o;return o==="left"?t="right":o==="right"&&(t="left"),Object(R.a)({fixed:t},e)})}function s(n,i){var o=n.prefixCls,e=n.columns,t=n.children,r=n.expandable,y=n.expandedKeys,_=n.getRowKey,p=n.onTriggerExpand,E=n.expandIcon,m=n.rowExpandable,f=n.expandIconColumnIndex,u=n.direction,a=n.expandRowByClick,l=T.useMemo(function(){return e||O(t)},[e,t]),h=T.useMemo(function(){if(r){var w,A=f||0,P=l[A],S=(w={},Object(q.a)(w,C.a,{className:"".concat(o,"-expand-icon-col")}),Object(q.a)(w,"title",""),Object(q.a)(w,"fixed",P?P.fixed:null),Object(q.a)(w,"className","".concat(o,"-row-expand-icon-cell")),Object(q.a)(w,"render",function(j,K,Z){var ne=_(K,Z),me=y.has(ne),he=m?m(K):!0,Y=E({prefixCls:o,expanded:me,expandable:he,record:K,onExpand:p});return a?T.createElement("span",{onClick:function(ge){return ge.stopPropagation()}},Y):Y}),w),U=l.slice();return A>=0&&U.splice(A,0,S),U}return l},[r,l,_,y,E,u]),d=T.useMemo(function(){var w=h;return i&&(w=i(w)),w.length||(w=[{render:function(){return null}}]),w},[i,h,u]),b=T.useMemo(function(){return u==="rtl"?c(v(d)):v(d)},[d,u]);return[d,b]}Te.b=s},wwSX:function(Ne,Te,k){Ne.exports=k.p+"static/b2.2c844a2a.svg"},xiVL:function(Ne,Te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XVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC"},xwll:function(Ne,Te,k){Ne.exports=k.p+"static/statistic-icon.df5f8e49.png"},"y0+3":function(Ne,Te,k){"use strict";k.d(Te,"a",function(){return v}),k.d(Te,"b",function(){return c});var q=/margin|padding|width|height|max|min|offset/,I={left:!0,top:!0},R={cssFloat:1,styleFloat:1,float:1};function M(s){return s.nodeType===1?s.ownerDocument.defaultView.getComputedStyle(s,null):{}}function T(s,n,i){if(n=n.toLowerCase(),i==="auto"){if(n==="height")return s.offsetHeight;if(n==="width")return s.offsetWidth}return n in I||(I[n]=q.test(n)),I[n]?parseFloat(i)||0:i}function x(s,n){var i=arguments.length,o=M(s);return n=R[n]?"cssFloat"in s.style?"cssFloat":"styleFloat":n,i===1?o:T(s,n,o[n]||s.style[n])}function N(s,n,i){var o=arguments.length;if(n=R[n]?"cssFloat"in s.style?"cssFloat":"styleFloat":n,o===3)return typeof i=="number"&&q.test(n)&&(i="".concat(i,"px")),s.style[n]=i,i;for(var e in n)n.hasOwnProperty(e)&&N(s,e,n[e]);return M(s)}function L(s){return s===document.body?document.documentElement.clientWidth:s.offsetWidth}function C(s){return s===document.body?window.innerHeight||document.documentElement.clientHeight:s.offsetHeight}function O(){var s=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),n=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:s,height:n}}function v(){var s=document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight;return{width:s,height:n}}function g(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function c(s){var n=s.getBoundingClientRect(),i=document.documentElement;return{left:n.left+(window.pageXOffset||i.scrollLeft)-(i.clientLeft||document.body.clientLeft||0),top:n.top+(window.pageYOffset||i.scrollTop)-(i.clientTop||document.body.clientTop||0)}}},y3Jh:function(Ne,Te,k){"use strict";k.r(Te);var q=k("5Dmo"),I=k("3S7+"),R=k("fV52"),M=k("3I+P"),T=k("g9YV"),x=k("wCAj"),N=k("Znn+"),L=k("ZTPi"),C=k("5NDa"),O=k("5rEg"),v=k("OaEy"),g=k("2fM7"),c=k("14J3"),s=k("BMrR"),n=k("jCWc"),i=k("kPKH"),o=k("7Kak"),e=k("9yH6"),t=k("lUTK"),r=k("BvKs"),y=k("2qtc"),_=k("kLXV"),p=k("miYZ"),E=k("tsqr"),m=k("k1fw"),f=k("oBTY"),u=k("+L6B"),a=k("2/Rp"),l=k("qVdP"),h=k("jsC+"),d=k("9og8"),b=k("tJVT"),w=k("WmNS"),A=k.n(w),P=k("cDcd"),S=k.n(P),U=k("Ty5D"),D=k("9kvl"),j=k("9Bee"),K=k("wd/R"),Z=k.n(K),ne=k("m3rI"),me=k("ErOA"),he=k("5A5F"),Y=k.n(he),le=k("xKgJ"),ge=k("zqRK"),re=k.n(ge),te=k("+92d"),be=k.n(te),ze=k("wwSX"),Ge=k.n(ze),Ue=k("zlzj"),Ze=k.n(Ue),Pe=k("pxMS"),Me=k.n(Pe),je=k("xwll"),Ve=k.n(je),Ke=k("a2OE"),Ie=k.n(Ke),Le=k("Nf5h"),st=k("LvDl"),nt=k.n(st),$e=k("1vsH"),Xe=k("yDOu"),ut=k.n(Xe),dt=k("SVaM"),ce=function(xe){var Se,pe,Oe,ie,Q,X,B,W,G,J,ue,ye,De,Qe,Je,Ee,at,Ye=xe.globalSetting,Be=xe.user,it=xe.dispatch,ct=Object(U.h)(),ot={page:1,per_page:30,tag_discipline_id:[-1],source_discipline_id:[-1],status:null,difficulty:null,search:"",save_search:"",sort_by:null,sort_direction:null,filter:(ct==null||((Se=ct.query)===null||Se===void 0)?void 0:Se.tab)||"public"},vt=Object(P.useState)(0),tt=Object(b.a)(vt,2),lt=tt[0],gt=tt[1],He=Object(P.useState)(0),rt=Object(b.a)(He,2),pt=rt[0],bt=rt[1],xt=Object(P.useState)(0),ft=Object(b.a)(xt,2),on=ft[0],Jt=ft[1],Ut=Object(P.useState)([]),Vt=Object(b.a)(Ut,2),jt=Vt[0],Wt=Vt[1],un=Object(P.useState)([]),rn=Object(b.a)(un,2),mn=rn[0],wn=rn[1],$n=Object(P.useState)({}),Bn=Object(b.a)($n,2),Ot=Bn[0],Yn=Bn[1],dr=Object(P.useState)(!1),Hn=Object(b.a)(dr,2),Zt=Hn[0],_n=Hn[1],On=Object(P.useState)([]),pn=Object(b.a)(On,2),fn=pn[0],An=pn[1],cr=Object(P.useState)(!0),Xn=Object(b.a)(cr,2),fr=Xn[0],Wn=Xn[1],Pr=Object(P.useState)(null),er=Object(b.a)(Pr,2),qt=er[0],tr=er[1],hr=Object(P.useState)(ot),xr=Object(b.a)(hr,2),Ae=xr[0],Pn=xr[1],nr=Object(P.useRef)(null),Qn=Object(P.useRef)(null),Jr=Object(P.useState)([]),Mr=Object(b.a)(Jr,2),dn=Mr[0],Kn=Mr[1],rr=Object(P.useMemo)(function(){return["not_reviewed","under_review","review_finished"].includes(Ae.filter)},[Ae.filter]),Zr=Object(P.useState)(!1),Or=Object(b.a)(Zr,2),qr=Or[0],Nr=Or[1],Mn=Object(P.useState)(!1),pr=Object(b.a)(Mn,2),kr=pr[0],mr=pr[1],xn=Object(P.useState)(""),Sn=Object(b.a)(xn,2),In=Sn[0],Ar=Sn[1],ar=Object(P.useState)([]),Jn=Object(b.a)(ar,2),Ur=Jn[0],jr=Jn[1],Fr=Object(P.useState)(!1),gr=Object(b.a)(Fr,2),vr=gr[0],Nn=gr[1],Gn=Object(P.useState)([]),ir=Object(b.a)(Gn,2),zn=ir[0],Br=ir[1],Hr=Object(P.useState)(!1),sr=Object(b.a)(Hr,2),Vn=sr[0],_r=sr[1],Wr=Object(P.useState)(!1),Sr=Object(b.a)(Wr,2),Zn=Sr[0],or=Sr[1],Rr=Be.userInfo.identity==="teacher",kn=function(){var Ce=Object(d.a)(A.a.mark(function we(ke,et,Et){var mt,Yt,an,V,se;return A.a.wrap(function($){for(;;)switch($.prev=$.next){case 0:return ke.persist(),ke!=null&&(mt=ke.target)!==null&&mt!==void 0&&(Yt=mt.style)!==null&&Yt!==void 0&&Yt.pointerEvents&&(ke.target.style.pointerEvents="none"),$.next=4,Object(me.a)("/api/practices/".concat(et.identifier,"/start"),{method:"get"});case 4:if(se=$.sent,!((se==null?void 0:se.status)===0)){$.next=10;break}if(!Et){$.next=9;break}return Object($e.U)("/problems/".concat(se==null?void 0:se.identifier,"/oj/").concat(et==null?void 0:et.identifier,"?tab=3")),$.abrupt("return");case 9:Object($e.U)("/problems/".concat(se==null?void 0:se.identifier,"/oj/").concat(et==null?void 0:et.identifier));case 10:ke!=null&&(an=ke.target)!==null&&an!==void 0&&(V=an.style)!==null&&V!==void 0&&V.pointerEvents&&(ke.target.style.pointerEvents="auto");case 11:case"end":return $.stop()}},we)}));return function(ke,et,Et){return Ce.apply(this,arguments)}}();Object(P.useEffect)(function(){var Ce=Z()().add(0,"days").unix(),we=localStorage.getItem("problemsclose");if(!we){Nn(!0);return}Ce>parseInt(we)&&Nn(!0)},[]);var $r=["\u672A\u53D1\u5E03","\u5DF2\u516C\u5F00","\u672A\u5BA1\u6838","\u5BA1\u6838\u4E2D","\u672A\u516C\u5F00","\u672A\u901A\u8FC7"],Cr=[{title:"\u9898\u76EE\u540D\u79F0",dataIndex:"name",ellipsis:!0,render:function(we,ke){return S.a.createElement("div",{className:Y.a.titleWarp},(Ae==null?void 0:Ae.filter)==="mine"?S.a.createElement("span",{className:Y.a.tag},$r[ke.practice_status]):null,S.a.createElement("span",{title:we,className:Y.a.hov,onClick:function(Et){return kn(Et,ke)}},we))}},(Ae==null?void 0:Ae.filter)==="public"?{title:"\u9898\u89E3",dataIndex:"solution_count",width:100,sorter:!0,render:function(we,ke){return S.a.createElement("span",{style:{display:"flex"}},S.a.createElement("span",{onClick:function(Et){return kn(Et,ke,!0)},className:"current"},we),(ke==null?void 0:ke.has_video_solution)&&S.a.createElement("img",{className:"ml5",src:re.a}))}}:null,(Ae==null?void 0:Ae.filter)==="public"?{title:"\u901A\u8FC7\u7387",dataIndex:"pass_ratio",sorter:!0,width:90}:null,{title:"\u96BE\u5EA6",dataIndex:"difficulty",sorter:!0,align:"left",width:90,render:function(we){return S.a.createElement(S.a.Fragment,null,we===1&&S.a.createElement("span",{className:Y.a["btn-style-1"]},"\u7B80\u5355"),we===2&&S.a.createElement("span",{className:Y.a["btn-style-2"]},"\u9002\u4E2D"),we===3&&S.a.createElement("span",{className:Y.a["btn-style-3"]},"\u56F0\u96BE"))}},(Ae==null?void 0:Ae.filter)==="public"?{title:"\u4EBA\u6570",dataIndex:"user_count",align:"center",sorter:!0,width:80}:null,(Ae==null?void 0:Ae.filter)==="public"?{title:"\u72B6\u6001",dataIndex:"status",width:90,render:function(we,ke){return Object(le.p)()?S.a.createElement(S.a.Fragment,null,qt===(ke==null?void 0:ke.identifier)?S.a.createElement("span",{className:Y.a.hovBtn,onClick:function(Et){return kn(Et,ke)}},"\u5F00\u542F\u5237\u9898"):S.a.createElement(S.a.Fragment,null,we===0&&S.a.createElement("span",{className:Y.a.statusText},"\u672A\u5F00\u542F"),we===1&&S.a.createElement("span",{className:Y.a.statusText},"\u8FDB\u884C\u4E2D"),we===2&&S.a.createElement("span",{className:Y.a.statusText},"\u5DF2\u901A\u8FC7"))):"-"}}:null,(Ae==null?void 0:Ae.filter)!=="public"?{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_disciplines_name",ellipsis:!0,width:200,render:function(we){return S.a.createElement("span",null,we==null?void 0:we.join("\u3001"))}}:null,(Ae==null?void 0:Ae.filter)==="all"?{title:"\u521B\u5EFA\u8005",dataIndex:"creator",ellipsis:!0,width:100}:null,(Ae==null?void 0:Ae.filter)!=="public"?{title:"\u66F4\u65B0\u65F6\u95F4",dataIndex:"updated_at",sorter:!0,width:180}:null,Object(le.v)()?{title:"\u64CD\u4F5C",dataIndex:"action",key:"action",align:"right",width:80,render:function(we,ke){return S.a.createElement(h.a,{className:"ml10",overlay:Ir(ke==null?void 0:ke.identifier,ke)},S.a.createElement("span",{style:{cursor:"default"},onClick:function(Et){return Et.preventDefault()}},S.a.createElement("span",null,"\u66F4\u591A"),S.a.createElement("i",{style:{display:"inline-block",transform:"scale(0.6)",fontSize:12},className:"c-grey-c iconfont icon-xiajiantou1"})))}}:Zt&&(Ae==null?void 0:Ae.filter)!=="public"?{title:"\u64CD\u4F5C",dataIndex:"action",key:"action",align:"right",width:80,render:function(we,ke){return ke!=null&&ke.is_self&&(ke==null?void 0:ke.practice_status)!==1?S.a.createElement(h.a,{className:"ml10",overlay:Vr(ke==null?void 0:ke.identifier,ke)},S.a.createElement("span",{style:{cursor:"default"},onClick:function(Et){return Et.preventDefault()}},S.a.createElement("span",null,"\u66F4\u591A"),S.a.createElement("i",{style:{display:"inline-block",transform:"scale(0.6)",fontSize:12},className:"c-grey-c iconfont icon-xiajiantou1"}))):"-"}}:null].filter(function(Ce){return!!Ce}),ea=[{title:"\u9898\u76EE\u540D\u79F0",dataIndex:"name",ellipsis:!0,render:function(we,ke){return S.a.createElement("span",{className:Y.a.hov,onClick:function(Et){return kn(Et,ke)}},we)}},{title:"\u96BE\u5EA6",dataIndex:"difficulty",sorter:!0,align:"left",width:90,render:function(we){return S.a.createElement(S.a.Fragment,null,we===1&&S.a.createElement("span",{className:Y.a["btn-style-1"]},"\u7B80\u5355"),we===2&&S.a.createElement("span",{className:Y.a["btn-style-2"]},"\u9002\u4E2D"),we===3&&S.a.createElement("span",{className:Y.a["btn-style-3"]},"\u56F0\u96BE"))}},(Ae==null?void 0:Ae.filter)==="not_reviewed"?{title:"\u521B\u5EFA\u8005",dataIndex:"creator",ellipsis:!0,width:100}:{title:"\u5BA1\u6838\u8005",dataIndex:"reviewer",ellipsis:!0,width:100},(Ae==null?void 0:Ae.filter)==="not_reviewed"?{title:"\u53D1\u5E03\u65F6\u95F4",dataIndex:"submit_time",width:180}:null,(Ae==null?void 0:Ae.filter)==="under_review"?{title:"\u5F00\u59CB\u5BA1\u6838\u65F6\u95F4",dataIndex:"start_review_time",width:180}:null,(Ae==null?void 0:Ae.filter)==="review_finished"?{title:"\u6700\u540E\u5BA1\u6838\u65F6\u95F4",dataIndex:"review_time",width:180}:null,{title:"\u64CD\u4F5C",dataIndex:"action",key:"action",align:"center",width:120,render:function(we,ke){var et;switch(Ae==null?void 0:Ae.filter){case"under_review":et=S.a.createElement("div",{style:{display:"flex"}},S.a.createElement(a.a,{type:"link",size:"small",onClick:function(mt){return kn(mt,ke)}},"\u5BA1\u6838"),S.a.createElement(a.a,{type:"link",style:{color:"#666"},size:"small",onClick:function(mt){return lr({e:mt,record:ke,op:"release"})}},"\u79FB\u51FA"));break;case"review_finished":et=S.a.createElement(a.a,{type:"link",size:"small",onClick:function(mt){Nr(!0),Kr(ke)}},"\u5BA1\u6838\u8BB0\u5F55");break;default:et=S.a.createElement(a.a,{type:"link",block:!0,onClick:function(mt){return lr({e:mt,record:ke,op:"claim"})}},"\u5F00\u59CB\u5BA1\u6838");break}return et}}].filter(function(Ce){return!!Ce}),Kr=function(){var Ce=Object(d.a)(A.a.mark(function we(ke){var et;return A.a.wrap(function(mt){for(;;)switch(mt.prev=mt.next){case 0:return jr([]),mt.next=3,Object(me.a)("/api/practices/".concat(ke.identifier,"/review_list"),{method:"get"});case 3:et=mt.sent,jr(et==null?void 0:et.reviews_list);case 5:case"end":return mt.stop()}},we)}));return function(ke){return Ce.apply(this,arguments)}}(),wr=[{title:"\u5BA1\u6838\u65F6\u95F4",dataIndex:"review_time",key:"review_time",render:function(we,ke){return S.a.createElement("span",null,Z()(we).format("YYYY-MM-DD HH:mm:ss"))}},{title:"\u5BA1\u6838\u8005",dataIndex:"reviewer",key:"reviewer"},{title:"\u5BA1\u6838\u7ED3\u679C",dataIndex:"status",width:120,key:"status",render:function(we,ke){return we==="5"||we===5?S.a.createElement("div",{style:{display:"flex",alignItems:"center"}},S.a.createElement("div",{style:{color:"#333333",marginRight:"5px",whiteSpace:"nowrap"}},"\u672A\u901A\u8FC7"),S.a.createElement("div",{style:{color:"#0152d9",whiteSpace:"nowrap",cursor:"pointer"},onClick:function(){Ar(ke.description),mr(!0)}},"\u67E5\u770B\u539F\u56E0")):S.a.createElement("span",null,"\u5DF2\u901A\u8FC7")}}];Object(P.useEffect)(function(){ta(),Rn(Ae)},[]),Object(P.useEffect)(function(){if(jt.length!==0){var Ce;(nr==null||((Ce=nr.current)===null||Ce===void 0)?void 0:Ce.clientHeight)>98&>(1)}},[jt]),Object(P.useEffect)(function(){if(mn.length!==0){var Ce;(Qn==null||((Ce=Qn.current)===null||Ce===void 0)?void 0:Ce.clientHeight)>98&&bt(1)}},[mn]),Object(P.useEffect)(function(){return it({type:"globalSetting/onlyShowBackTopToggle",payload:!0}),it({type:"globalSetting/setShowQuestionBackTop",payload:!0}),function(){it({type:"globalSetting/onlyShowBackTopToggle",payload:!1}),it({type:"globalSetting/setShowQuestionBackTop",payload:!1})}},[]),Object(P.useEffect)(function(){var Ce;(document.title==="\u4EBA\u5DE5\u667A\u80FD\u79D1\u7814\u670D\u52A1\u5E73\u53F0"||document.title==="\u9996\u9875"||document.title==="\u5B9E\u8DF5\u6559\u5B66\u5E73\u53F0"||(Ce=document.title)!==null&&Ce!==void 0&&Ce.includes("img"))&&(document.title="\u5728\u7EBF\u5237\u9898")},[Ye]),Object(P.useEffect)(function(){return document.body.setAttribute("data-custom","initial"),function(){document.body.removeAttribute("data-custom")}},[]);var Rn=function(){var Ce=Object(d.a)(A.a.mark(function we(ke){var et,Et,mt,Yt;return A.a.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return ke.search=encodeURIComponent(ke.search),mt=nt.a.cloneDeep(ke),mt.tag_discipline_id=(et=mt.tag_discipline_id)!==null&&et!==void 0&&et.includes(-1)?[]:mt.tag_discipline_id,mt.source_discipline_id=(Et=mt.source_discipline_id)!==null&&Et!==void 0&&Et.includes(-1)?[]:mt.source_discipline_id,console.log(mt,"sendData"),Wn(!0),An([]),V.next=9,Object(me.a)("/api/practices.json",{method:"get",params:mt});case 9:Yt=V.sent,Kn([]),Wn(!1),Jt(Yt==null?void 0:Yt.practices_count),An(Yt==null?void 0:Yt.practices_list),Br((Yt==null?void 0:Yt.recommend_subjects)||[]);case 15:case"end":return V.stop()}},we)}));return function(ke){return Ce.apply(this,arguments)}}(),lr=function(){var Ce=Object(d.a)(A.a.mark(function we(ke){var et,Et,mt,Yt,an,V;return A.a.wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return et=ke.op,Et=ke.description,mt=ke.record,Yt=ke.e,an={op:et,description:Et},Wn(!0),de.next=5,Object(me.a)("/api/practices/".concat(mt.identifier,"/review"),{method:"post",body:an});case 5:V=de.sent,Wn(!1),et==="claim"&&(V.status===0||V.status==="0")&&kn(Yt,mt),Rn(Ae);case 9:case"end":return de.stop()}},we)}));return function(ke){return Ce.apply(this,arguments)}}(),Gr=function(){var Ce=Object(d.a)(A.a.mark(function we(ke){var et;return A.a.wrap(function(mt){for(;;)switch(mt.prev=mt.next){case 0:return Wn(!0),mt.next=3,Object(me.a)("/api/practices/".concat(ke.identifier,"/publish"),{method:"post"});case 3:et=mt.sent,Wn(!1),Rn(Ae);case 6:case"end":return mt.stop()}},we)}));return function(ke){return Ce.apply(this,arguments)}}(),ta=function(){var Ce=Object(d.a)(A.a.mark(function we(){var ke,et,Et,mt,Yt,an;return A.a.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:return se.next=2,Object(me.a)("/api/tag_disciplines.json",{method:"get",params:{target:"practice",position:"index"}});case 2:return et=se.sent,se.next=5,Object(me.a)("/api/tag_disciplines.json",{method:"get",params:{target:"practice_source",position:"index"}});case 5:return Et=se.sent,se.next=8,Object(me.a)("/api/mypractices/rank_list",{method:"get",params:{}});case 8:mt=se.sent,et!=null&&et.tag_disciplines&&(Yt=[{id:-1,name:"\u5168\u90E8",count:et==null?void 0:et.totalCount}].concat(Object(f.a)(et==null?void 0:et.tag_disciplines)),Wt(Yt)),Et!=null&&Et.tag_disciplines&&(an=[{id:-1,name:"\u5168\u90E8",count:Et==null?void 0:Et.totalCount}].concat(Object(f.a)(Et==null?void 0:Et.tag_disciplines)),wn(an)),Yn(mt||{}),_n(mt==null||((ke=mt.my_record)===null||ke===void 0)?void 0:ke.outsource);case 13:case"end":return se.stop()}},we)}));return function(){return Ce.apply(this,arguments)}}(),Er=function(we,ke){var et;Ae.page=1;var Et=Ae["".concat(ke,"_discipline_id")];(et=Ae["".concat(ke,"_discipline_id")])!==null&&et!==void 0&&et.includes(we)?Et=Et.filter(function(mt){return mt!==we}):Et.push(we),we===-1?Et=[-1]:(Et=Et.filter(function(mt){return mt!==-1}),Et.length||(Et=[-1])),Ae["".concat(ke,"_discipline_id")]=Et,Pn(Object(m.a)({},Ae)),Rn(Ae)},It=function(we,ke){Ae.page=1,Ae[ke]=typeof we=="number"?we:null,Pn(Object(m.a)({},Ae)),Rn(Ae)},Pt=function(we){Ae.page=1,Ae.save_search=we,Pn(Object(m.a)({},Ae))},$t=function(we,ke,et){Ae.page=we==null?void 0:we.current,Ae.per_page=we==null?void 0:we.pageSize,et!=null&&et.order?(Ae.sort_by=et==null?void 0:et.field,Ae.sort_direction=(et==null?void 0:et.order)==="ascend"?"asc":"desc"):(Ae.sort_by=null,Ae.sort_direction=null),Pn(Object(m.a)({},Ae)),Rn(Ae)},hn=function(we){Ae.page=1,Ae.filter=we,Ae.status=null,Ae.practice_status=null,Pn(Object(m.a)({},Ae)),Rn(Ae)},En=function(we,ke){if((ke==null?void 0:ke.length)===0){E.b.warn("\u8BF7\u9009\u62E9\u8BD5\u9898");return}var et=function(){var Et=Object(d.a)(A.a.mark(function mt(){var Yt,an;return A.a.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:return se.next=2,Object(me.a)("/api/practices/batch_op.json",{method:"post",body:{identifier:ke,op:we}});case 2:Yt=se.sent,(Yt==null?void 0:Yt.status)===0&&(an=fn.length===1&&Ae.page!==1?Ae.page-1:Ae.page,Ae.page=an,Pn(Object(m.a)({},Ae)),Rn(Ae));case 4:case"end":return se.stop()}},mt)}));return function(){return Et.apply(this,arguments)}}();if(we===-1){_.a.confirm({centered:!0,width:500,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u5220\u9664\u786E\u8BA4",icon:null,className:"custom-modal-divider",content:"\u5220\u9664\u540E\u9898\u76EE\u5C06\u4E0D\u53EF\u518D\u627E\u56DE\u3002",onOk:et});return}et()},zr=S.a.createElement(r.a,null,(Ae==null?void 0:Ae.filter)==="public"?S.a.createElement(r.a.Item,{onClick:function(){return En(0,dn)}},"\u6279\u91CF\u79FB\u51FA\u516C\u5171"):[S.a.createElement(r.a.Item,{key:2,onClick:function(){return En(1,dn)}},"\u6279\u91CF\u79FB\u5165\u516C\u5171"),S.a.createElement(r.a.Item,{key:1,onClick:function(){return En(0,dn)}},"\u6279\u91CF\u79FB\u51FA\u516C\u5171")],Object(le.v)()&&S.a.createElement(r.a.Item,{onClick:function(){return na()}},"\u53D1\u9001\u81F3\u8BD5\u9898\u5E93"),(Ae==null?void 0:Ae.filter)!=="public"&&S.a.createElement(r.a.Item,{onClick:function(){return En(-1,dn)}},"\u6279\u91CF\u5220\u9664")),Ir=function(we,ke){return S.a.createElement(r.a,null,(ke==null?void 0:ke.practice_status)===1?S.a.createElement(r.a.Item,{onClick:function(){return En(0,[we])}},"\u79FB\u51FA\u516C\u5171"):S.a.createElement(r.a.Item,{onClick:function(){return En(1,[we])}},"\u79FB\u5165\u516C\u5171"),(Ae==null?void 0:Ae.filter)==="mine"?S.a.createElement(r.a.Item,{onClick:function(){return Gr(ke)},disabled:![0,4,5].includes(ke.practice_status)},[0,4,5].includes(ke.practice_status)?"\u53D1\u5E03\u5BA1\u6838":"\u5DF2\u53D1\u5E03\u5BA1\u6838"):null,S.a.createElement(r.a.Item,{onClick:function(){return Object($e.U)("/problems/".concat(we,"/ojedit"))}},"\u7F16\u8F91"),(Ae==null?void 0:Ae.filter)!=="public"&&S.a.createElement(r.a.Item,{onClick:function(){return En(-1,[we])}},"\u5220\u9664"))},Vr=function(we,ke){return S.a.createElement(r.a,null,S.a.createElement(r.a.Item,{onClick:function(){return Gr(ke)},disabled:![0,4,5].includes(ke.practice_status)},[0,4,5].includes(ke.practice_status)?"\u53D1\u5E03\u5BA1\u6838":"\u5DF2\u53D1\u5E03\u5BA1\u6838"),S.a.createElement(r.a.Item,{onClick:function(){return Object($e.U)("/problems/".concat(we,"/ojedit"))}},"\u7F16\u8F91"),S.a.createElement(r.a.Item,{onClick:function(){return En(-1,[we])}},"\u5220\u9664"))},Yr=function(we){Kn(we)},na=function(){if(!dn.length){E.b.warn("\u8BF7\u9009\u62E9\u53D1\u9001\u81F3\u8BD5\u9898\u5E93\u7684\u7F16\u7A0B\u5237\u9898");return}var we=null;_.a.confirm({centered:!0,width:500,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u53D1\u9001\u81F3\u8BD5\u9898\u5E93",icon:null,className:"custom-modal-divider",content:S.a.createElement("div",null,S.a.createElement("p",{className:"mt20"},"\u5DF2\u9009",S.a.createElement("span",{className:"c-light-primary"},dn.length),"\u4E2D\u4E2A\u7F16\u7A0B\u5237\u9898\u53D1\u9001\u81F3\u8BD5\u9898\u5E93\u6210\u4E3A\u7F16\u7A0B\u9898"),S.a.createElement("div",null,"\u8BF7\u9009\u62E9\u7F16\u7A0B\u9898\u7684\u8BED\u8A00\uFF1A"),S.a.createElement(e.a.Group,{onChange:function(et){we=et.target.value,document.getElementById("send-to-modal").style.display="none"}},S.a.createElement(e.a,{value:"c"},"C"),S.a.createElement(e.a,{value:"c++"},"C++"),S.a.createElement(e.a,{value:"java"},"Java"),S.a.createElement(e.a,{value:"python"},"Python")),S.a.createElement("div",{id:"send-to-modal",style:{color:"#E30000",display:"none"}},"\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00")),onOk:function(){var ke=Object(d.a)(A.a.mark(function Et(){var mt;return A.a.wrap(function(an){for(;;)switch(an.prev=an.next){case 0:if(we){an.next=3;break}return document.getElementById("send-to-modal").style.display="block",an.abrupt("return",Promise.reject());case 3:return an.next=5,Object(me.a)("/api/practices/send_to_item_bank.json",{method:"post",body:{identifiers:dn,language:we}});case 5:mt=an.sent,(mt==null?void 0:mt.status)===0&&E.b.success("\u53D1\u9001\u6210\u529F");case 7:case"end":return an.stop()}},Et)}));function et(){return ke.apply(this,arguments)}return et}()})},ca={selectedRowKeys:dn,columnWidth:40,onChange:Yr};return S.a.createElement("section",{className:Y.a.wrap},S.a.createElement(Le.a,{img:Me.a,title:"\u7F16\u7A0B\u5237\u9898",sunTitle:"\u5FEB\u901F\u63D0\u9AD8\u7F16\u7A0B\u80FD\u529B",bannerExtraContent:S.a.createElement(h.a,{overlay:S.a.createElement(r.a,null,S.a.createElement(r.a.Item,{key:1,onClick:function(){D.d.push("/problems/add")}},"\u65B0\u5EFA\u9898\u76EE"),S.a.createElement(r.a.Item,{key:2,onClick:function(){D.d.push("/problems/batchAdd")}},"\u6279\u91CF\u5BFC\u5165\u9898\u76EE"))},S.a.createElement("div",{className:Y.a.addQuestion,style:{visibility:Object(le.v)()||Zt?"visible":"hidden"}},S.a.createElement("span",null,"\u65B0\u5EFA\u9898\u76EE")))}),S.a.createElement("div",{className:Y.a.content},S.a.createElement("div",{className:Y.a.left},S.a.createElement(s.a,{className:"".concat(Y.a.filterPoint," mb10"),align:"top"},S.a.createElement(i.a,{className:Y.a.filterType},"\u77E5\u8BC6\u70B9"),S.a.createElement(i.a,{className:Y.a.btnWarp,ref:nr,style:lt>0?{height:lt===1?76:"auto"}:{}},jt==null?void 0:jt.map(function(Ce){var we;return S.a.createElement("div",{onClick:function(){return Er(Ce.id,"tag")},key:Ce.id,className:Ae!=null&&(we=Ae.tag_discipline_id)!==null&&we!==void 0&&we.includes(Ce.id)?"".concat(Y.a.btn," ").concat(Y.a.btnActive):Y.a.btn},S.a.createElement("span",{title:Ce.name},Ce.name),S.a.createElement("span",{className:Y.a.count,style:{display:Ce.count?"block":"none"}},Ce.count))})),!!lt&&S.a.createElement(i.a,{className:Y.a.fold},lt===1?S.a.createElement("div",{onClick:function(){return gt(2)},className:Y.a.action},"\u5C55\u5F00",S.a.createElement("i",{style:{transform:"scale(0.5)"},className:"iconfont icon-zhankai4"})):S.a.createElement("div",{onClick:function(){return gt(1)},className:Y.a.action},"\u6536\u8D77",S.a.createElement("i",{style:{transform:"scale(0.5)"},className:"iconfont icon-shouqi3"})))),!!mn.length&&S.a.createElement(s.a,{className:Y.a.filterPoint,align:"top",style:{marginBottom:22}},S.a.createElement(i.a,{className:Y.a.filterType},"\u6765\u6E90"),S.a.createElement(i.a,{className:Y.a.btnWarp,ref:Qn,style:pt>0?{height:pt===1?76:"auto"}:{}},mn==null?void 0:mn.map(function(Ce){var we;return S.a.createElement("div",{onClick:function(){return Er(Ce.id,"source")},key:Ce.id,className:Ae!=null&&(we=Ae.source_discipline_id)!==null&&we!==void 0&&we.includes(Ce.id)?"".concat(Y.a.btn," ").concat(Y.a.btnActive):Y.a.btn},S.a.createElement("span",{title:Ce.name},Ce.name),S.a.createElement("span",{className:Y.a.count},Ce.count))}),!!pt&&S.a.createElement(i.a,{className:Y.a.fold},pt===1?S.a.createElement("div",{onClick:function(){return bt(2)},className:Y.a.action},"\u5C55\u5F00",S.a.createElement("i",{style:{transform:"scale(0.5)"},className:"iconfont icon-zhankai4"})):S.a.createElement("div",{onClick:function(){return bt(1)},className:Y.a.action},"\u6536\u8D77",S.a.createElement("i",{style:{transform:"scale(0.5)"},className:"iconfont icon-shouqi3"}))))),S.a.createElement("div",{className:Y.a.control},S.a.createElement(g.a,{suffixIcon:S.a.createElement("i",{className:"iconfont icon-a-bianzu11"}),allowClear:!0,placeholder:"\u96BE\u5EA6",value:Ae==null?void 0:Ae.difficulty,onChange:function(we){return It(we,"difficulty")}},S.a.createElement(g.a.Option,{value:1},"\u7B80\u5355"),S.a.createElement(g.a.Option,{value:2},"\u9002\u4E2D"),S.a.createElement(g.a.Option,{value:3},"\u56F0\u96BE")),Object(le.p)()&&Ae.filter==="public"&&S.a.createElement(g.a,{suffixIcon:S.a.createElement("i",{className:"iconfont icon-a-bianzu11"}),allowClear:!0,placeholder:"\u72B6\u6001",value:Ae==null?void 0:Ae.status,onChange:function(we){return It(we,"status")}},S.a.createElement(g.a.Option,{value:0},"\u672A\u5F00\u542F"),S.a.createElement(g.a.Option,{value:1},"\u8FDB\u884C\u4E2D"),S.a.createElement(g.a.Option,{value:2},"\u5DF2\u901A\u8FC7")),Object(le.p)()&&Ae.filter==="mine"&&S.a.createElement(g.a,{suffixIcon:S.a.createElement("i",{className:"iconfont icon-a-bianzu11"}),allowClear:!0,placeholder:"\u72B6\u6001",value:Ae==null?void 0:Ae.practice_status,onChange:function(we){return It(we,"practice_status")}},S.a.createElement(g.a.Option,{value:0},"\u672A\u53D1\u5E03"),S.a.createElement(g.a.Option,{value:1},"\u5DF2\u516C\u5F00"),S.a.createElement(g.a.Option,{value:2},"\u672A\u5BA1\u6838"),S.a.createElement(g.a.Option,{value:3},"\u5BA1\u6838\u4E2D"),S.a.createElement(g.a.Option,{value:4},"\u672A\u516C\u5F00"),S.a.createElement(g.a.Option,{value:5},"\u672A\u901A\u8FC7")),Object(le.p)()&&Ae.filter==="all"&&S.a.createElement(g.a,{suffixIcon:S.a.createElement("i",{className:"iconfont icon-a-bianzu11"}),allowClear:!0,placeholder:"\u72B6\u6001",value:Ae==null?void 0:Ae.practice_status,onChange:function(we){return It(we,"practice_status")}},S.a.createElement(g.a.Option,{value:0},"\u672A\u53D1\u5E03"),S.a.createElement(g.a.Option,{value:1},"\u5DF2\u516C\u5F00"),S.a.createElement(g.a.Option,{value:2},"\u672A\u5BA1\u6838"),S.a.createElement(g.a.Option,{value:3},"\u5BA1\u6838\u4E2D"),S.a.createElement(g.a.Option,{value:4},"\u672A\u516C\u5F00"),S.a.createElement(g.a.Option,{value:5},"\u672A\u901A\u8FC7")),S.a.createElement(O.a.Search,{className:Y.a.search,size:"large",suffix:S.a.createElement("i",{className:"iconfont icon-sousuo9 font14 ".concat(Y.a.searchIcon),onClick:function(){Ae.page=1,Ae.search=Ae.save_search,Pn(Object(m.a)({},Ae)),Ae.save_search&&Object(dt.a)({name:Ae.save_search,copywriting:Ae.save_search,position:"Practice"}),Rn(Ae)}}),placeholder:Object(le.v)()?"\u8BF7\u8F93\u5165\u9898\u76EE\u540D\u79F0\u3001\u521B\u5EFA\u8005\u641C\u7D22":"\u8BF7\u8F93\u5165\u9898\u76EE\u540D\u79F0\u641C\u7D22",value:Ae==null?void 0:Ae.save_search,onChange:function(we){return Pt(we.target.value)},onSearch:function(we){Ae.page=1,Ae.search=Ae.save_search,Pn(Object(m.a)({},Ae)),we&&Object(dt.a)({name:we,copywriting:we,position:"Practice"}),Rn(Ae)}})),S.a.createElement("div",{className:Y.a.table},S.a.createElement("div",{className:Y.a.tabWarp,style:Object(le.v)()||Zt?{}:{height:10,border:0}},Object(le.v)()?S.a.createElement(L.a,{className:Y.a.tab,activeKey:rr?"not_reviewed":Ae.filter,onChange:hn,tabBarExtraContent:!rr&&S.a.createElement(h.a,{overlay:zr},S.a.createElement("span",{className:"ant-dropdown-link font14 current",onClick:function(we){return we.preventDefault()}},"\u6279\u91CF\u64CD\u4F5C ",S.a.createElement("i",{style:{display:"inline-block",transform:"scale(0.6)",fontSize:12},className:"iconfont icon-xiajiantou1"})))},S.a.createElement(L.a.TabPane,{tab:"\u516C\u5171",key:"public"}),S.a.createElement(L.a.TabPane,{tab:"\u5168\u90E8",key:"all"}),S.a.createElement(L.a.TabPane,{tab:"\u6211\u521B\u5EFA\u7684",key:"mine"}),S.a.createElement(L.a.TabPane,{tab:"\u5BA1\u6838\u5217\u8868",key:"not_reviewed"})):Zt?S.a.createElement(L.a,{className:Y.a.tab,activeKey:rr?"not_reviewed":Ae.filter,onChange:hn},S.a.createElement(L.a.TabPane,{tab:"\u516C\u5171",key:"public"}),S.a.createElement(L.a.TabPane,{tab:"\u6211\u521B\u5EFA\u7684",key:"mine"}),S.a.createElement(L.a.TabPane,{tab:"\u5BA1\u6838\u5217\u8868",key:"not_reviewed"})):null),rr?S.a.createElement("div",{className:Y.a.tabWarp,style:Object(le.v)()||Zt?{}:{height:10,border:0}},S.a.createElement(L.a,{className:Y.a.tab,activeKey:Ae.filter,onChange:hn},S.a.createElement(L.a.TabPane,{tab:"\u5F85\u5BA1\u6838",key:"not_reviewed"}),S.a.createElement(L.a.TabPane,{tab:"\u5BA1\u6838\u4E2D",key:"under_review"}),S.a.createElement(L.a.TabPane,{tab:"\u5DF2\u5BA1\u6838",key:"review_finished"}))):null,!(Object(le.v)()||Zt)&&Rr&&S.a.createElement("div",{className:Y.a.tabWarp2,style:{justifyContent:"end"}},Vn?S.a.createElement(s.a,{align:"middle"},S.a.createElement(s.a,{onClick:function(){return or(!0)},align:"middle",className:"current"},S.a.createElement("i",{className:"iconfont icon-yixuan mr10 c-light-primary font20"}),S.a.createElement("span",null,"\u5DF2\u9009",S.a.createElement("span",{className:"c-light-primary"},dn.length),"\u4E2A")),S.a.createElement(a.a,{className:"mr20 ml40",ghost:!0,onClick:function(){_r(!1),Kn([])},type:"primary"},"\u53D6\u6D88"),S.a.createElement(a.a,{onClick:na,ghost:!0,type:"primary"},"\u786E\u8BA4\u53D1\u9001")):S.a.createElement(a.a,{onClick:function(){return _r(!0)},type:"primary"},S.a.createElement("i",{className:"iconfont icon-fasong mr5"}),"\u53D1\u9001\u81F3\u8BD5\u9898\u5E93")),S.a.createElement(x.a,{rowSelection:Object(le.v)()||Vn?ca:void 0,className:Y.a.customTable,dataSource:fn,bordered:!1,rowKey:function(we){return we.identifier},columns:rr?ea:Cr,rowClassName:Y.a.row,loading:fr,onRow:function(we){return{onMouseEnter:function(et){tr(we==null?void 0:we.identifier)},onMouseLeave:function(et){tr(null)}}},onChange:$t,pagination:{pageSize:Ae.per_page,total:on,current:Ae.page,showQuickJumper:!0,hideOnSinglePage:!0,showSizeChanger:!1,position:["bottomCenter"],showTotal:function(we){return S.a.createElement("span",{className:"mr10"},"\u5171",S.a.createElement("span",{className:"c-orange"},we),"\u6761\u6570\u636E")}}}))),S.a.createElement("div",{className:Y.a.right},S.a.createElement("div",{className:Y.a.statistics},S.a.createElement("img",{src:Ve.a,alt:""}),S.a.createElement("div",{className:Y.a.title},"\u6211\u7684\u5237\u9898\u7EDF\u8BA1"),S.a.createElement(s.a,{justify:"space-between"},S.a.createElement(i.a,{className:Y.a.statisticItem},S.a.createElement("div",{className:Y.a.rate},Object(le.p)()?(Ot==null||((pe=Ot.my_record)===null||pe===void 0)?void 0:pe.passed_ratio)||0:"-"),S.a.createElement("div",{className:Y.a.dataName},"\u901A\u8FC7\u7387(%)")),S.a.createElement(i.a,{className:Y.a.statisticItem},S.a.createElement("div",{className:Y.a.rate},Object(le.p)()?(Ot==null||((Oe=Ot.my_record)===null||Oe===void 0)?void 0:Oe.passed_count)||0:"-"),S.a.createElement("div",{className:Y.a.dataName},"\u5237\u9898\u6570")),S.a.createElement(i.a,{className:Y.a.statisticItem},S.a.createElement("div",{className:Y.a.rate},Object(le.p)()?Ot==null||((ie=Ot.my_record)===null||ie===void 0||((Q=ie.time_count)===null||Q===void 0))?void 0:Q.toFixed(2):"-"),S.a.createElement("div",{className:Y.a.dataName},"\u7D2F\u8BA1\u65F6\u957F(h)")))),!!(Ot!=null&&(X=Ot.rank_list)!==null&&X!==void 0&&X.length)&&S.a.createElement(S.a.Fragment,null,((B=Be.userInfo)===null||B===void 0?void 0:B.user_id)!=2&&Object(le.m)()&&(Ye==null||((W=Ye.setting)===null||W===void 0)?void 0:W.main_site)&&vr&&(zn==null?void 0:zn.length)>0&&S.a.createElement("div",{className:Y.a.problemsclose,style:{position:"relative"}},S.a.createElement(M.a,{autoplay:!0,pauseOnDotsHover:!0,style:{width:292,height:170,marginBottom:"10px",overflow:"hidden"}},zn==null?void 0:zn.map(function(Ce,we){return S.a.createElement("div",{style:{display:"flex"},key:we},S.a.createElement("a",{href:"/paths/".concat(Ce.identifier)},S.a.createElement("img",{style:{width:"292px",height:"170px",borderRadius:"4px"},src:ne.a.IMG_SERVER+"/"+Ce.image_url})))})),S.a.createElement("img",{className:Y.a.imgsrc,onClick:function(){localStorage.setItem("problemsclose",Z()().add(1,"days").unix()+""),Nn(!1)},src:ut.a})),S.a.createElement("div",{className:Y.a.sort},S.a.createElement("div",{className:Y.a.rankHeader},S.a.createElement("img",{src:Ie.a,className:Y.a.rankIcon})),!!(Ot!=null&&(G=Ot.my_record)!==null&&G!==void 0&&G.rank)&&S.a.createElement("div",{className:"".concat(Y.a.myRecord," ").concat(Y.a.li)},S.a.createElement("span",{className:"".concat(Y.a.recordPrefix," ").concat(Y.a.mine)},"\u6211\u7684"),S.a.createElement("img",{className:Y.a.avatar,src:ne.a.IMG_SERVER+"/images/"+(Ot==null||((J=Ot.my_record)===null||J===void 0)?void 0:J.image_url)}),S.a.createElement("span",{title:Ot==null||((ue=Ot.my_record)===null||ue===void 0)?void 0:ue.nickname,className:Y.a.nickname},Ot==null||((ye=Ot.my_record)===null||ye===void 0)?void 0:ye.nickname),S.a.createElement("span",{className:Y.a.myRank},(Ot==null||((De=Ot.my_record)===null||De===void 0)?void 0:De.rank)>999?"\u7B2C999+\u540D":"\u7B2C".concat(Ot==null||((Qe=Ot.my_record)===null||Qe===void 0)?void 0:Qe.rank,"\u540D")),S.a.createElement("span",{className:Y.a.questionNumber},Ot==null||((Je=Ot.my_record)===null||Je===void 0)?void 0:Je.passed_count,"\u9898")),Ot==null||((Ee=Ot.rank_list)===null||Ee===void 0)?void 0:Ee.map(function(Ce,we){var ke=we+1;return we===0&&(ke=be.a),we===1&&(ke=Ge.a),we===2&&(ke=Ze.a),S.a.createElement("div",{className:Y.a.li,key:we},typeof ke=="number"?S.a.createElement("span",{className:Y.a.recordPrefix},ke):S.a.createElement("span",{className:Y.a.recordPrefix},S.a.createElement("img",{src:ke})),S.a.createElement("img",{className:Y.a.avatar,src:ne.a.IMG_SERVER+"/images/"+(Ce==null?void 0:Ce.image_url)}),S.a.createElement("span",{title:Ce==null?void 0:Ce.nickname,className:Y.a.nickname},Ce==null?void 0:Ce.nickname),S.a.createElement("span",{className:Y.a.questionNumber},Ce.passed_count,"\u9898"))}))))),S.a.createElement(_.a,{title:"\u5BA1\u6838\u8BB0\u5F55",visible:qr,onOk:function(){},onCancel:function(){Nr(!1)},footer:null,closable:!0},S.a.createElement(x.a,{dataSource:Ur,columns:wr})),S.a.createElement(_.a,{title:"\u672A\u901A\u8FC7\u539F\u56E0",visible:kr,onOk:function(){},onCancel:function(){mr(!1)},footer:null,closable:!0},S.a.createElement(j.a,{value:In})),S.a.createElement(_.a,{visible:Zn,centered:!0,width:1e3,okText:"\u786E\u5B9A\u53D1\u9001",onCancel:function(){return or(!1)},cancelText:"\u8FD4\u56DE\u5217\u8868",onOk:Object(d.a)(A.a.mark(function Ce(){return A.a.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:or(!1),na();case 2:case"end":return ke.stop()}},Ce)})),title:"\u67E5\u770B\u5DF2\u9009"},S.a.createElement("div",{className:"font14 c-light-primary mb10"},"\u5DF2\u9009",dn==null?void 0:dn.length,"\u4E2A"),S.a.createElement("div",{style:{height:400,overflow:"auto"}},fn==null||((at=fn.filter(function(Ce){return dn.includes(Ce.identifier)}))===null||at===void 0)?void 0:at.map(function(Ce,we){var ke,et;return S.a.createElement("div",{key:we,className:Y.a.sendModal},S.a.createElement("div",{className:Y.a.li},S.a.createElement("p",null,Ce==null?void 0:Ce.name),S.a.createElement("div",{className:Y.a.bottom},S.a.createElement("span",{className:"c-grey-333"},"\u7F16\u7A0B\u9898"),S.a.createElement("i",{className:Y.a.line}),S.a.createElement("span",{className:"c-grey-333"},Ce.difficulty===1&&"\u7B80\u5355",Ce.difficulty===2&&"\u9002\u4E2D",Ce.difficulty===3&&"\u56F0\u96BE"),S.a.createElement("i",{className:Y.a.line}),S.a.createElement("span",null,"\u521B\u5EFA\u8005\xA0",S.a.createElement(I.a,{title:Ce==null?void 0:Ce.creator},S.a.createElement("span",{className:"c-grey-333"},(Ce==null||((ke=Ce.creator)===null||ke===void 0)?void 0:ke.length)>6?(Ce==null||((et=Ce.creator)===null||et===void 0)?void 0:et.substr(0,3))+"...":Ce==null?void 0:Ce.creator))),S.a.createElement("i",{className:Y.a.line}),S.a.createElement("span",{className:Y.a.des},"\u66F4\u65B0\xA0",S.a.createElement("span",{className:"c-grey-333"},Ce==null?void 0:Ce.updated_at)))),S.a.createElement("div",{className:Y.a.del,onClick:function(){Kn(dn.filter(function(mt){return mt!==Ce.identifier}))}},"\u5220\u9664"))}))))};Te.default=Object(D.a)(function(ve){var xe=ve.user,Se=ve.globalSetting;return{user:xe,globalSetting:Se}})(ce)},yDOu:function(Ne,Te){Ne.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAABZlJREFUaEPtmd1rXNUah5/1tfdkkrSNMdWO+C0pp6mKYhURURRFvPFGiwj+A4p44Y30pngj5+ZcHET/AUGkeuONiKIoIqJVRO0UDdpzPAen2hhTm2Qye68vWdlOmYQ2M/2gYaQDw2K+f8/7/t53r/WOYMhvYsj1cxFgszN4MQN/mwzEGM8om0KIeD7gz+hH1//getEvvDBYU9i/nzXizwXmrAB6hXdFN3dV4mcOV2urtRam0ahEN3dV68zhau2FORuQMwI4nfAkurUDsXC0Er00j1hZXAswMk4cm6xET+wgNo4SE8y5ggwM0BXfG/Gu8P8fQibBUxOIzjKi2ILY2l4L8EedmJ8g1kaJcwvEBHTlbsLpQAbNxkAA68V/CHJ6B2JV+CRivIWsaWQxhmgfR47VEbZYC2By4lKbWN9GyJeIHUdYbBBG5iuQ2aPEeyH02moQiIEBegp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