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.
403 lines
1.1 MiB
403 lines
1.1 MiB
(window.webpackJsonp=window.webpackJsonp||[]).push([[213,5,7,8,10,13],{"+92d":function(Be,ie,N){Be.exports=N.p+"static/b1.8d46544a.svg"},"+GGh":function(Be,ie){Be.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(Be,ie,N){},"/cxE":function(Be,ie,N){"use strict";N.d(ie,"f",function(){return I}),N.d(ie,"g",function(){return j}),N.d(ie,"h",function(){return C}),N.d(ie,"e",function(){return H}),N.d(ie,"b",function(){return k}),N.d(ie,"c",function(){return e}),N.d(ie,"d",function(){return O}),N.d(ie,"a",function(){return y});class Q{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(p){setTimeout(()=>{throw p.stack?new Error(p.message+`
|
|
|
|
`+p.stack):p},0)}}emit(p){this.listeners.forEach(c=>{c(p)})}onUnexpectedError(p){this.unexpectedErrorHandler(p),this.emit(p)}onUnexpectedExternalError(p){this.unexpectedErrorHandler(p)}}const M=new Q;function I(p){H(p)||M.onUnexpectedError(p);return}function j(p){H(p)||M.onUnexpectedExternalError(p);return}function C(p){if(p instanceof Error){let{name:c,message:a}=p;const r=p.stacktrace||p.stack;return{$isError:!0,name:c,message:a,stack:r}}return p}const R="Canceled";function H(p){return p instanceof Error&&p.name===R&&p.message===R}function k(){const p=new Error(R);return p.name=p.message,p}function e(p){return p?new Error(`Illegal argument: ${p}`):new Error("Illegal argument")}function O(p){return p?new Error(`Illegal state: ${p}`):new Error("Illegal state")}class y extends Error{constructor(p){super("NotSupported");p&&(this.message=p)}}},"24hK":function(Be,ie,N){"use strict";N.d(ie,"a",function(){return M});class Q{constructor(I){this.element=I,this.next=Q.Undefined,this.prev=Q.Undefined}}Q.Undefined=new Q(void 0);class M{constructor(){this._first=Q.Undefined,this._last=Q.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Q.Undefined}clear(){let I=this._first;for(;I!==Q.Undefined;){const j=I.next;I.prev=Q.Undefined,I.next=Q.Undefined,I=j}this._first=Q.Undefined,this._last=Q.Undefined,this._size=0}unshift(I){return this._insert(I,!1)}push(I){return this._insert(I,!0)}_insert(I,j){const C=new Q(I);if(this._first===Q.Undefined)this._first=C,this._last=C;else if(j){const H=this._last;this._last=C,C.prev=H,H.next=C}else{const H=this._first;this._first=C,C.next=H,H.prev=C}this._size+=1;let R=!1;return()=>{R||(R=!0,this._remove(C))}}shift(){if(this._first===Q.Undefined)return;{const I=this._first.element;return this._remove(this._first),I}}pop(){if(this._last===Q.Undefined)return;{const I=this._last.element;return this._remove(this._last),I}}_remove(I){if(I.prev!==Q.Undefined&&I.next!==Q.Undefined){const j=I.prev;j.next=I.next,I.next.prev=j}else I.prev===Q.Undefined&&I.next===Q.Undefined?(this._first=Q.Undefined,this._last=Q.Undefined):I.next===Q.Undefined?(this._last=this._last.prev,this._last.next=Q.Undefined):I.prev===Q.Undefined&&(this._first=this._first.next,this._first.prev=Q.Undefined);this._size-=1}*[Symbol.iterator](){let I=this._first;for(;I!==Q.Undefined;)yield I.element,I=I.next}}},"3/fG":function(Be,ie,N){"use strict";N.d(ie,"a",function(){return M});function Q(I,j){let C;return j.length===0?C=I:C=I.replace(/\{(\d+)\}/g,function(R,H){const k=H[0];return typeof j[k]!="undefined"?j[k]:R}),C}function M(I,j,...C){return Q(j,C)}},"5A5F":function(Be,ie,N){Be.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(Be,ie,N){"use strict";var Q,M;function I(j,C,R){var H=function(k,e){return j.js_beautify(k,e)};return H.js=j.js_beautify,H.css=C.css_beautify,H.html=R.html_beautify,H.js_beautify=j.js_beautify,H.css_beautify=C.css_beautify,H.html_beautify=R.html_beautify,H}!(Q=[N("6UM0"),N("TXwP"),N("psGv")],M=function(j,C,R){return I(j,C,R)}.apply(ie,Q),M!==void 0&&(Be.exports=M))},"5Y4S":function(Be,ie,N){"use strict";N.d(ie,"a",function(){return I});var Q=N("MNsG");const M=Q.b.performance&&typeof Q.b.performance.now=="function";class I{constructor(j){this._highResolution=M&&j,this._startTime=this._now(),this._stopTime=-1}static create(j=!0){return new I(j)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?Q.b.performance.now():Date.now()}}},"6+eU":function(Be,ie,N){"use strict";N.d(ie,"a",function(){return m});var Q=N("wx14"),M=N("rePB"),I=N("VTBJ"),j=N("1OyB"),C=N("vuIU"),R=N("Ji7U"),H=N("LK+K"),k=N("q1tI"),e=N.n(k),O=N("TSYQ"),y=N.n(O),p=function(_){var d,u="".concat(_.rootPrefixCls,"-item"),l=y()(u,"".concat(u,"-").concat(_.page),(d={},Object(M.a)(d,"".concat(u,"-active"),_.active),Object(M.a)(d,_.className,!!_.className),Object(M.a)(d,"".concat(u,"-disabled"),!_.page),d)),h=function(){_.onClick(_.page)},v=function(T){_.onKeyPress(T,_.onClick,_.page)};return e.a.createElement("li",{title:_.showTitle?_.page:null,className:l,onClick:h,onKeyPress:v,tabIndex:"0"},_.itemRender(_.page,"page",e.a.createElement("a",{rel:"nofollow"},_.page)))},c=p,a={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},r=function(x){Object(R.a)(d,x);var _=Object(H.a)(d);function d(){var u;Object(j.a)(this,d);for(var l=arguments.length,h=new Array(l),v=0;v<l;v++)h[v]=arguments[v];return u=_.call.apply(_,[this].concat(h)),u.state={goInputText:""},u.buildOptionText=function(f){return"".concat(f," ").concat(u.props.locale.items_per_page)},u.changeSize=function(f){u.props.changeSize(Number(f))},u.handleChange=function(f){u.setState({goInputText:f.target.value})},u.handleBlur=function(f){var T=u.props,P=T.goButton,L=T.quickGo,S=T.rootPrefixCls,A=u.state.goInputText;if(P||A==="")return;if(f.relatedTarget&&(f.relatedTarget.className.indexOf("".concat(S,"-prev"))>=0||f.relatedTarget.className.indexOf("".concat(S,"-next"))>=0))return;u.setState({goInputText:""}),L(u.getValidValue())},u.go=function(f){var T=u.state.goInputText;if(T==="")return;(f.keyCode===a.ENTER||f.type==="click")&&(u.setState({goInputText:""}),u.props.quickGo(u.getValidValue()))},u}return Object(C.a)(d,[{key:"getValidValue",value:function(){var l=this.state,h=l.goInputText,v=l.current;return!h||isNaN(h)?v:Number(h)}},{key:"getPageSizeOptions",value:function(){var l=this.props,h=l.pageSize,v=l.pageSizeOptions;return v.some(function(f){return f.toString()===h.toString()})?v:v.concat([h.toString()]).sort(function(f,T){var P=isNaN(Number(f))?0:Number(f),L=isNaN(Number(T))?0:Number(T);return P-L})}},{key:"render",value:function(){var l=this,h=this.props,v=h.pageSize,f=h.locale,T=h.rootPrefixCls,P=h.changeSize,L=h.quickGo,S=h.goButton,A=h.selectComponentClass,W=h.buildOptionText,D=h.selectPrefixCls,K=h.disabled,Y=this.state.goInputText,oe="".concat(T,"-options"),le=A,Se=null,Ee=null,ae=null;if(!P&&!L)return null;var Ce=this.getPageSizeOptions();if(P&&le){var Le=Ce.map(function(de,$){return e.a.createElement(le.Option,{key:$,value:de.toString()},(W||l.buildOptionText)(de))});Se=e.a.createElement(le,{disabled:K,prefixCls:D,showSearch:!1,className:"".concat(oe,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(v||Ce[0]).toString(),onChange:this.changeSize,getPopupContainer:function($){return $.parentNode}},Le)}return L&&(S&&(ae=typeof S=="boolean"?e.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:K,className:"".concat(oe,"-quick-jumper-button")},f.jump_to_confirm):e.a.createElement("span",{onClick:this.go,onKeyUp:this.go},S)),Ee=e.a.createElement("div",{className:"".concat(oe,"-quick-jumper")},f.jump_to,e.a.createElement("input",{disabled:K,type:"text",value:Y,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),f.page,ae)),e.a.createElement("li",{className:"".concat(oe)},Se,Ee)}}]),d}(e.a.Component);r.defaultProps={pageSizeOptions:["10","20","50","100"]};var s=r,o=N("N2Kk");function i(){}function n(x){return typeof x=="number"&&isFinite(x)&&Math.floor(x)===x}function t(x,_,d){return d}function b(x,_,d){var u=typeof x=="undefined"?_.pageSize:x;return Math.floor((d.total-1)/u)+1}var g=function(x){Object(R.a)(d,x);var _=Object(H.a)(d);function d(u){var l;Object(j.a)(this,d),l=_.call(this,u),l.getJumpPrevPage=function(){return Math.max(1,l.state.current-(l.props.showLessItems?3:5))},l.getJumpNextPage=function(){return Math.min(b(void 0,l.state,l.props),l.state.current+(l.props.showLessItems?3:5))},l.getItemIcon=function(P,L){var S=l.props.prefixCls,A=P||e.a.createElement("button",{type:"button","aria-label":L,className:"".concat(S,"-item-link")});return typeof P=="function"&&(A=e.a.createElement(P,Object(I.a)({},l.props))),A},l.savePaginationNode=function(P){l.paginationNode=P},l.isValid=function(P){return n(P)&&P!==l.state.current},l.shouldDisplayQuickJumper=function(){var P=l.props,L=P.showQuickJumper,S=P.pageSize,A=P.total;return A<=S?!1:L},l.handleKeyDown=function(P){(P.keyCode===a.ARROW_UP||P.keyCode===a.ARROW_DOWN)&&P.preventDefault()},l.handleKeyUp=function(P){var L=l.getValidValue(P),S=l.state.currentInputValue;L!==S&&l.setState({currentInputValue:L}),P.keyCode===a.ENTER?l.handleChange(L):P.keyCode===a.ARROW_UP?l.handleChange(L-1):P.keyCode===a.ARROW_DOWN&&l.handleChange(L+1)},l.changePageSize=function(P){var L=l.state.current,S=b(P,l.state,l.props);L=L>S?S:L,S===0&&(L=l.state.current),typeof P=="number"&&("pageSize"in l.props||l.setState({pageSize:P}),"current"in l.props||l.setState({current:L,currentInputValue:L})),l.props.onShowSizeChange(L,P),"onChange"in l.props&&l.props.onChange&&l.props.onChange(L,P)},l.handleChange=function(P){var L=l.props.disabled,S=P;if(l.isValid(S)&&!L){var A=b(void 0,l.state,l.props);S>A?S=A:S<1&&(S=1),"current"in l.props||l.setState({current:S,currentInputValue:S});var W=l.state.pageSize;return l.props.onChange(S,W),S}return l.state.current},l.prev=function(){l.hasPrev()&&l.handleChange(l.state.current-1)},l.next=function(){l.hasNext()&&l.handleChange(l.state.current+1)},l.jumpPrev=function(){l.handleChange(l.getJumpPrevPage())},l.jumpNext=function(){l.handleChange(l.getJumpNextPage())},l.hasPrev=function(){return l.state.current>1},l.hasNext=function(){return l.state.current<b(void 0,l.state,l.props)},l.runIfEnter=function(P,L){if(P.key==="Enter"||P.charCode===13){for(var S=arguments.length,A=new Array(S>2?S-2:0),W=2;W<S;W++)A[W-2]=arguments[W];L.apply(void 0,A)}},l.runIfEnterPrev=function(P){l.runIfEnter(P,l.prev)},l.runIfEnterNext=function(P){l.runIfEnter(P,l.next)},l.runIfEnterJumpPrev=function(P){l.runIfEnter(P,l.jumpPrev)},l.runIfEnterJumpNext=function(P){l.runIfEnter(P,l.jumpNext)},l.handleGoTO=function(P){(P.keyCode===a.ENTER||P.type==="click")&&l.handleChange(l.state.currentInputValue)};var h=u.onChange!==i,v="current"in u;v&&!h&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var f=u.defaultCurrent;"current"in u&&(f=u.current);var T=u.defaultPageSize;return"pageSize"in u&&(T=u.pageSize),f=Math.min(f,b(T,void 0,u)),l.state={current:f,currentInputValue:f,pageSize:T},l}return Object(C.a)(d,[{key:"componentDidUpdate",value:function(l,h){var v=this.props.prefixCls;if(h.current!==this.state.current&&this.paginationNode){var f=this.paginationNode.querySelector(".".concat(v,"-item-").concat(h.current));f&&document.activeElement===f&&f.blur()}}},{key:"getValidValue",value:function(l){var h=l.target.value,v=b(void 0,this.state,this.props),f=this.state.currentInputValue,T;return h===""?T=h:isNaN(Number(h))?T=f:h>=v?T=v:T=Number(h),T}},{key:"getShowSizeChanger",value:function(){var l=this.props,h=l.showSizeChanger,v=l.total,f=l.totalBoundaryShowSizeChanger;return typeof h!="undefined"?h:v>f}},{key:"renderPrev",value:function(l){var h=this.props,v=h.prevIcon,f=h.itemRender,T=f(l,"prev",this.getItemIcon(v,"prev page")),P=!this.hasPrev();return Object(k.isValidElement)(T)?Object(k.cloneElement)(T,{disabled:P}):T}},{key:"renderNext",value:function(l){var h=this.props,v=h.nextIcon,f=h.itemRender,T=f(l,"next",this.getItemIcon(v,"next page")),P=!this.hasNext();return Object(k.isValidElement)(T)?Object(k.cloneElement)(T,{disabled:P}):T}},{key:"render",value:function(){var l=this,h=this.props,v=h.prefixCls,f=h.className,T=h.style,P=h.disabled,L=h.hideOnSinglePage,S=h.total,A=h.locale,W=h.showQuickJumper,D=h.showLessItems,K=h.showTitle,Y=h.showTotal,oe=h.simple,le=h.itemRender,Se=h.showPrevNextJumpers,Ee=h.jumpPrevIcon,ae=h.jumpNextIcon,Ce=h.selectComponentClass,Le=h.selectPrefixCls,de=h.pageSizeOptions,$=this.state,He=$.current,rt=$.pageSize,it=$.currentInputValue;if(L===!0&&S<=rt)return null;var Je=b(void 0,this.state,this.props),at=[],ke=null,Ge=null,et=null,ee=null,ve=null,Te=W&&W.goButton,Oe=D?1:2,Qe=He-1>0?He-1:0,tt=He+1<Je?He+1:Je,st=Object.keys(this.props).reduce(function(G,X){return(X.substr(0,5)==="data-"||X.substr(0,5)==="aria-"||X==="role")&&(G[X]=l.props[X]),G},{});if(oe)return Te&&(typeof Te=="boolean"?ve=e.a.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},A.jump_to_confirm):ve=e.a.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Te),ve=e.a.createElement("li",{title:K?"".concat(A.jump_to).concat(He,"/").concat(Je):null,className:"".concat(v,"-simple-pager")},ve)),e.a.createElement("ul",Object(Q.a)({className:y()(v,"".concat(v,"-simple"),Object(M.a)({},"".concat(v,"-disabled"),P),f),style:T,ref:this.savePaginationNode},st),e.a.createElement("li",{title:K?A.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:y()("".concat(v,"-prev"),Object(M.a)({},"".concat(v,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(Qe)),e.a.createElement("li",{title:K?"".concat(He,"/").concat(Je):null,className:"".concat(v,"-simple-pager")},e.a.createElement("input",{type:"text",value:it,disabled:P,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,size:"3"}),e.a.createElement("span",{className:"".concat(v,"-slash")},"/"),Je),e.a.createElement("li",{title:K?A.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:y()("".concat(v,"-next"),Object(M.a)({},"".concat(v,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(tt)),ve);if(Je<=3+Oe*2){var nt={locale:A,rootPrefixCls:v,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:K,itemRender:le};Je||at.push(e.a.createElement(c,Object(Q.a)({},nt,{key:"noPager",page:Je,className:"".concat(v,"-disabled")})));for(var dt=1;dt<=Je;dt+=1){var mt=He===dt;at.push(e.a.createElement(c,Object(Q.a)({},nt,{key:dt,page:dt,active:mt})))}}else{var ye=D?A.prev_3:A.prev_5,Ae=D?A.next_3:A.next_5;Se&&(ke=e.a.createElement("li",{title:K?ye:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:y()("".concat(v,"-jump-prev"),Object(M.a)({},"".concat(v,"-jump-prev-custom-icon"),!!Ee))},le(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Ee,"prev page"))),Ge=e.a.createElement("li",{title:K?Ae:null,key:"next",tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:y()("".concat(v,"-jump-next"),Object(M.a)({},"".concat(v,"-jump-next-custom-icon"),!!ae))},le(this.getJumpNextPage(),"jump-next",this.getItemIcon(ae,"next page")))),ee=e.a.createElement(c,{locale:A,last:!0,rootPrefixCls:v,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Je,page:Je,active:!1,showTitle:K,itemRender:le}),et=e.a.createElement(c,{locale:A,rootPrefixCls:v,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:K,itemRender:le});var Ne=Math.max(1,He-Oe),Fe=Math.min(He+Oe,Je);He-1<=Oe&&(Fe=1+Oe*2),Je-He<=Oe&&(Ne=Je-Oe*2);for(var Re=Ne;Re<=Fe;Re+=1){var De=He===Re;at.push(e.a.createElement(c,{locale:A,rootPrefixCls:v,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Re,page:Re,active:De,showTitle:K,itemRender:le}))}He-1>=Oe*2&&He!==1+2&&(at[0]=Object(k.cloneElement)(at[0],{className:"".concat(v,"-item-after-jump-prev")}),at.unshift(ke)),Je-He>=Oe*2&&He!==Je-2&&(at[at.length-1]=Object(k.cloneElement)(at[at.length-1],{className:"".concat(v,"-item-before-jump-next")}),at.push(Ge)),Ne!==1&&at.unshift(et),Fe!==Je&&at.push(ee)}var he=null;Y&&(he=e.a.createElement("li",{className:"".concat(v,"-total-text")},Y(S,[S===0?0:(He-1)*rt+1,He*rt>S?S:He*rt])));var se=!this.hasPrev()||!Je,re=!this.hasNext()||!Je;return e.a.createElement("ul",Object(Q.a)({className:y()(v,f,Object(M.a)({},"".concat(v,"-disabled"),P)),style:T,unselectable:"unselectable",ref:this.savePaginationNode},st),he,e.a.createElement("li",{title:K?A.prev_page:null,onClick:this.prev,tabIndex:se?null:0,onKeyPress:this.runIfEnterPrev,className:y()("".concat(v,"-prev"),Object(M.a)({},"".concat(v,"-disabled"),se)),"aria-disabled":se},this.renderPrev(Qe)),at,e.a.createElement("li",{title:K?A.next_page:null,onClick:this.next,tabIndex:re?null:0,onKeyPress:this.runIfEnterNext,className:y()("".concat(v,"-next"),Object(M.a)({},"".concat(v,"-disabled"),re)),"aria-disabled":re},this.renderNext(tt)),e.a.createElement(s,{disabled:P,locale:A,rootPrefixCls:v,selectComponentClass:Ce,selectPrefixCls:Le,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:He,pageSize:rt,pageSizeOptions:de,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Te}))}}],[{key:"getDerivedStateFromProps",value:function(l,h){var v={};if("current"in l&&(v.current=l.current,l.current!==h.current&&(v.currentInputValue=v.current)),"pageSize"in l&&l.pageSize!==h.pageSize){var f=h.current,T=b(l.pageSize,h,l);f=f>T?T:f,"current"in l||(v.current=f,v.currentInputValue=f),v.pageSize=l.pageSize}return v}}]),d}(e.a.Component);g.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:i,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:i,locale:o.a,style:{},itemRender:t,totalBoundaryShowSizeChanger:50};var m=g},"6RRn":function(Be,ie,N){"use strict";var Q=N("wCXF"),M=N("n6Qo");N.d(ie,"b",function(){return M.a});var I=N("IBYe"),j=N("6eGT"),C=N("hW8S");N.d(ie,"a",function(){return C.a}),ie.c=Q.b},"6UM0":function(Be,ie,N){var Q,M;(function(){var I;(function(){"use strict";var C=[function(e,O,y){var p=y(1).Beautifier,c=y(5).Options;function a(r,s){var o=new p(r,s);return o.beautify()}e.exports=a,e.exports.defaultOptions=function(){return new c}},function(e,O,y){var p=y(2).Output,c=y(3).Token,a=y(4),r=y(5).Options,s=y(7).Tokenizer,o=y(7).line_starters,i=y(7).positionable_operators,n=y(7).TOKEN;function t(D,K){return K.indexOf(D)!==-1}function b(D){return D.replace(/^\s+/g,"")}function g(D){for(var K={},Y=0;Y<D.length;Y++)K[D[Y].replace(/-/g,"_")]=D[Y];return K}function m(D,K){return D&&D.type===n.RESERVED&&D.text===K}function x(D,K){return D&&D.type===n.RESERVED&&t(D.text,K)}var _=["case","return","do","if","throw","else","await","break","continue","async"],d=["before-newline","after-newline","preserve-newline"],u=g(d),l=[u.before_newline,u.preserve_newline],h={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function v(D,K){if(K.multiline_frame||K.mode===h.ForInitializer||K.mode===h.Conditional)return;D.remove_indent(K.start_line_index)}function f(D){D=D.replace(a.allLineBreaks,`
|
|
`);for(var K=[],Y=D.indexOf(`
|
|
`);Y!==-1;)K.push(D.substring(0,Y)),D=D.substring(Y+1),Y=D.indexOf(`
|
|
`);return D.length&&K.push(D),K}function T(D){return D===h.ArrayLiteral}function P(D){return t(D,[h.Expression,h.ForInitializer,h.Conditional])}function L(D,K){for(var Y=0;Y<D.length;Y++){var oe=D[Y].trim();if(oe.charAt(0)!==K)return!1}return!0}function S(D,K){for(var Y=0,oe=D.length,le;Y<oe;Y++)if(le=D[Y],le&&le.indexOf(K)!==0)return!1;return!0}function A(D,K){K=K||{},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 r(K)}A.prototype.create_flags=function(D,K){var Y=0;D&&(Y=D.indentation_level,!this._output.just_added_newline()&&D.line_indent_level>Y&&(Y=D.line_indent_level));var oe={mode:K,parent:D,last_token:D?D.last_token:new c(n.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:Y,alignment:0,line_indent_level:D?D.line_indent_level:Y,start_line_index:this._output.get_line_number(),ternary_depth:0};return oe},A.prototype._reset=function(D){var K=D.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new p(this._options,K),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(h.BlockStatement);var Y=new s(D,this._options);return this._tokens=Y.tokenize(),D},A.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var D,K=this._reset(this._source_text),Y=this._options.eol;this._options.eol==="auto"&&(Y=`
|
|
`,K&&a.lineBreak.test(K||"")&&(Y=K.match(a.lineBreak)[0]));for(var oe=this._tokens.next();oe;)this.handle_token(oe),this._last_last_text=this._flags.last_token.text,this._flags.last_token=oe,oe=this._tokens.next();return D=this._output.get_code(Y),D},A.prototype.handle_token=function(D,K){D.type===n.START_EXPR?this.handle_start_expr(D):D.type===n.END_EXPR?this.handle_end_expr(D):D.type===n.START_BLOCK?this.handle_start_block(D):D.type===n.END_BLOCK?this.handle_end_block(D):D.type===n.WORD?this.handle_word(D):D.type===n.RESERVED?this.handle_word(D):D.type===n.SEMICOLON?this.handle_semicolon(D):D.type===n.STRING?this.handle_string(D):D.type===n.EQUALS?this.handle_equals(D):D.type===n.OPERATOR?this.handle_operator(D):D.type===n.COMMA?this.handle_comma(D):D.type===n.BLOCK_COMMENT?this.handle_block_comment(D,K):D.type===n.COMMENT?this.handle_comment(D,K):D.type===n.DOT?this.handle_dot(D):D.type===n.EOF?this.handle_eof(D):D.type===n.UNKNOWN?this.handle_unknown(D,K):this.handle_unknown(D,K)},A.prototype.handle_whitespace_and_comments=function(D,K){var Y=D.newlines,oe=this._options.keep_array_indentation&&T(this._flags.mode);if(D.comments_before)for(var le=D.comments_before.next();le;)this.handle_whitespace_and_comments(le,K),this.handle_token(le,K),le=D.comments_before.next();if(oe)for(var Se=0;Se<Y;Se+=1)this.print_newline(Se>0,K);else if(this._options.max_preserve_newlines&&Y>this._options.max_preserve_newlines&&(Y=this._options.max_preserve_newlines),this._options.preserve_newlines&&Y>1){this.print_newline(!1,K);for(var Ee=1;Ee<Y;Ee+=1)this.print_newline(!0,K)}};var W=["async","break","continue","return","throw","yield"];A.prototype.allow_wrap_or_preserved_newline=function(D,K){if(K=K===void 0?!1:K,this._output.just_added_newline())return;var Y=this._options.preserve_newlines&&D.newlines||K,oe=t(this._flags.last_token.text,i)||t(D.text,i);if(oe){var le=t(this._flags.last_token.text,i)&&t(this._options.operator_position,l)||t(D.text,i);Y=Y&&le}if(Y)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(x(this._flags.last_token,W))return;this._output.set_wrap_point()}},A.prototype.print_newline=function(D,K){if(!K&&(this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==n.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")))for(var Y=this._tokens.peek();this._flags.mode===h.Statement&&!(this._flags.if_block&&m(Y,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(D)&&(this._flags.multiline_frame=!0)},A.prototype.print_token_line_indentation=function(D){this._output.just_added_newline()&&(this._options.keep_array_indentation&&D.newlines&&(D.text==="["||T(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))},A.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===n.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var K=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(K),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)},A.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},A.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))},A.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)},A.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===h.Statement&&v(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},A.prototype.start_of_object_property=function(){return this._flags.parent.mode===h.ObjectLiteral&&this._flags.mode===h.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||x(this._flags.last_token,["get","set"]))},A.prototype.start_of_statement=function(D){var K=!1;return K=K||x(this._flags.last_token,["var","let","const"])&&D.type===n.WORD,K=K||m(this._flags.last_token,"do"),K=K||!(this._flags.parent.mode===h.ObjectLiteral&&this._flags.mode===h.Statement)&&x(this._flags.last_token,W)&&!D.newlines,K=K||m(this._flags.last_token,"else")&&!(m(D,"if")&&!D.comments_before),K=K||this._flags.last_token.type===n.END_EXPR&&(this._previous_flags.mode===h.ForInitializer||this._previous_flags.mode===h.Conditional),K=K||this._flags.last_token.type===n.WORD&&this._flags.mode===h.BlockStatement&&!this._flags.in_case&&!(D.text==="--"||D.text==="++")&&this._last_last_text!=="function"&&D.type!==n.WORD&&D.type!==n.RESERVED,K=K||this._flags.mode===h.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||x(this._flags.last_token,["get","set"])),K?(this.set_mode(h.Statement),this.indent(),this.handle_whitespace_and_comments(D,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(D,x(D,["do","for","if","while"])),!0):!1},A.prototype.handle_start_expr=function(D){this.start_of_statement(D)||this.handle_whitespace_and_comments(D);var K=h.Expression;if(D.text==="["){if(this._flags.last_token.type===n.WORD||this._flags.last_token.text===")"){x(this._flags.last_token,o)&&(this._output.space_before_token=!0),this.print_token(D),this.set_mode(K),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}K=h.ArrayLiteral,T(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())),t(this._flags.last_token.type,[n.START_EXPR,n.END_EXPR,n.WORD,n.OPERATOR,n.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===n.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,K=h.ForInitializer):t(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,K=h.Conditional):t(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:(t(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===n.EQUALS||this._flags.last_token.type===n.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(D);else if(this._flags.last_token.type===n.WORD){this._output.space_before_token=!1;var Y=this._tokens.peek(-3);if(this._options.space_after_named_function&&Y){var oe=this._tokens.peek(-4);x(Y,["async","function"])||Y.text==="*"&&x(oe,["async","function"])?this._output.space_before_token=!0:this._flags.mode===h.ObjectLiteral?(Y.text==="{"||Y.text===","||Y.text==="*"&&(oe.text==="{"||oe.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===n.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(t(this._last_last_text,["function","yield"])||this._flags.mode===h.ObjectLiteral&&t(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===n.START_BLOCK?this.print_newline():(this._flags.last_token.type===n.END_EXPR||this._flags.last_token.type===n.START_EXPR||this._flags.last_token.type===n.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===n.COMMA)&&this.allow_wrap_or_preserved_newline(D,D.newlines),this.print_token(D),this.set_mode(K),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},A.prototype.handle_end_expr=function(D){for(;this._flags.mode===h.Statement;)this.restore_mode();this.handle_whitespace_and_comments(D),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(D,D.text==="]"&&T(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===n.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(),v(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===h.Conditional&&(this._previous_flags.mode=h.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},A.prototype.handle_start_block=function(D){this.handle_whitespace_and_comments(D);var K=this._tokens.peek(),Y=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===n.END_EXPR?(this.set_mode(h.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(h.BlockStatement):Y&&(t(Y.text,[":",","])&&t(K.type,[n.STRING,n.WORD,n.RESERVED])||t(K.text,["get","set","..."])&&t(Y.type,[n.WORD,n.RESERVED]))?t(this._last_last_text,["class","interface"])&&!t(Y.text,[":",","])?this.set_mode(h.BlockStatement):this.set_mode(h.ObjectLiteral):this._flags.last_token.type===n.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(h.BlockStatement):t(this._flags.last_token.type,[n.EQUALS,n.START_EXPR,n.COMMA,n.OPERATOR])||x(this._flags.last_token,["return","throw","import","default"])?this.set_mode(h.ObjectLiteral):this.set_mode(h.BlockStatement),this._flags.last_token&&(x(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0));var oe=!K.comments_before&&K.text==="}",le=oe&&this._flags.last_word==="function"&&this._flags.last_token.type===n.END_EXPR;if(this._options.brace_preserve_inline){var Se=0,Ee=null;this._flags.inline_frame=!0;do if(Se+=1,Ee=this._tokens.peek(Se-1),Ee.newlines){this._flags.inline_frame=!1;break}while(Ee.type!==n.EOF&&!(Ee.type===n.END_BLOCK&&Ee.opened===D))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&D.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==n.OPERATOR&&(le||this._flags.last_token.type===n.EQUALS||x(this._flags.last_token,_)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(T(this._previous_flags.mode)&&(this._flags.last_token.type===n.START_EXPR||this._flags.last_token.type===n.COMMA)&&((this._flags.last_token.type===n.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===n.COMMA||this._flags.last_token.type===n.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!==n.OPERATOR&&this._flags.last_token.type!==n.START_EXPR&&(this._flags.last_token.type===n.START_BLOCK&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(D),this.indent(),!oe&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},A.prototype.handle_end_block=function(D){for(this.handle_whitespace_and_comments(D);this._flags.mode===h.Statement;)this.restore_mode();var K=this._flags.last_token.type===n.START_BLOCK;this._flags.inline_frame&&!K?this._output.space_before_token=!0:this._options.brace_style==="expand"?K||this.print_newline():K||(T(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)},A.prototype.handle_word=function(D){if(D.type===n.RESERVED){if(t(D.text,["set","get"])&&this._flags.mode!==h.ObjectLiteral)D.type=n.WORD;else if(D.text==="import"&&t(this._tokens.peek().text,["(","."]))D.type=n.WORD;else if(t(D.text,["as","from"])&&!this._flags.import_block)D.type=n.WORD;else if(this._flags.mode===h.ObjectLiteral){var K=this._tokens.peek();K.text===":"&&(D.type=n.WORD)}}if(this.start_of_statement(D)?x(this._flags.last_token,["var","let","const"])&&D.type===n.WORD&&(this._flags.declaration_statement=!0):D.newlines&&!P(this._flags.mode)&&(this._flags.last_token.type!==n.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==n.EQUALS&&(this._options.preserve_newlines||!x(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(m(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&&m(D,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===h.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&x(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===n.COMMA||this._flags.last_token.type===n.START_EXPR||this._flags.last_token.type===n.EQUALS||this._flags.last_token.type===n.OPERATOR)&&(this.start_of_object_property()||this.allow_wrap_or_preserved_newline(D)),m(D,"function")){(t(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(t(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===n.OPERATOR))&&(!this._output.just_added_blankline()&&!D.comments_before&&(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===n.RESERVED||this._flags.last_token.type===n.WORD?x(this._flags.last_token,["get","set","new","export"])||x(this._flags.last_token,W)?this._output.space_before_token=!0:m(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===n.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(P(this._flags.mode)||T(this._flags.mode))||this.print_newline(),this.print_token(D),this._flags.last_word=D.text;return}var Y="NONE";if(this._flags.last_token.type===n.END_BLOCK?this._previous_flags.inline_frame?Y="SPACE":x(D,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&D.newlines?Y="NEWLINE":(Y="SPACE",this._output.space_before_token=!0):Y="NEWLINE":this._flags.last_token.type===n.SEMICOLON&&this._flags.mode===h.BlockStatement?Y="NEWLINE":this._flags.last_token.type===n.SEMICOLON&&P(this._flags.mode)?Y="SPACE":this._flags.last_token.type===n.STRING?Y="NEWLINE":this._flags.last_token.type===n.RESERVED||this._flags.last_token.type===n.WORD||this._flags.last_token.text==="*"&&(t(this._last_last_text,["function","yield"])||this._flags.mode===h.ObjectLiteral&&t(this._last_last_text,["{",","]))?Y="SPACE":this._flags.last_token.type===n.START_BLOCK?this._flags.inline_frame?Y="SPACE":Y="NEWLINE":this._flags.last_token.type===n.END_EXPR&&(this._output.space_before_token=!0,Y="NEWLINE"),x(D,o)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?Y="SPACE":Y="NEWLINE"),x(D,["else","catch","finally"]))if((!(this._flags.last_token.type===n.END_BLOCK&&this._previous_flags.mode===h.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 oe=this._output.current_line;oe.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else Y==="NEWLINE"?x(this._flags.last_token,_)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&x(D,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==n.END_EXPR?(this._flags.last_token.type!==n.START_EXPR||!x(D,["var","let","const"]))&&this._flags.last_token.text!==":"&&(m(D,"if")&&m(D.previous,"else")?this._output.space_before_token=!0:this.print_newline()):x(D,o)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&T(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():Y==="SPACE"&&(this._output.space_before_token=!0);D.previous&&(D.previous.type===n.WORD||D.previous.type===n.RESERVED)&&(this._output.space_before_token=!0),this.print_token(D),this._flags.last_word=D.text,D.type===n.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&&m(D,"from")&&(this._flags.import_block=!1))},A.prototype.handle_semicolon=function(D){this.start_of_statement(D)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(D);for(var K=this._tokens.peek();this._flags.mode===h.Statement&&!(this._flags.if_block&&m(K,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(D)},A.prototype.handle_string=function(D){D.text.startsWith("`")&&D.newlines===0&&D.whitespace_before===""&&(D.previous.text===")"||this._flags.last_token.type===n.WORD)||(this.start_of_statement(D)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(D),this._flags.last_token.type===n.RESERVED||this._flags.last_token.type===n.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===n.COMMA||this._flags.last_token.type===n.START_EXPR||this._flags.last_token.type===n.EQUALS||this._flags.last_token.type===n.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(D):D.text.startsWith("`")&&this._flags.last_token.type===n.END_EXPR&&(D.previous.text==="]"||D.previous.text===")")&&D.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(D)},A.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},A.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?(P(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===h.ObjectLiteral||this._flags.mode===h.Statement&&this._flags.parent.mode===h.ObjectLiteral?(this._flags.mode===h.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(D)},A.prototype.handle_operator=function(D){var K=D.text==="*"&&(x(this._flags.last_token,["function","yield"])||t(this._flags.last_token.type,[n.START_BLOCK,n.COMMA,n.END_BLOCK,n.SEMICOLON])),Y=t(D.text,["-","+"])&&(t(this._flags.last_token.type,[n.START_BLOCK,n.START_EXPR,n.EQUALS,n.OPERATOR])||t(this._flags.last_token.text,o)||this._flags.last_token.text===",");if(!this.start_of_statement(D)){var oe=!K;this.handle_whitespace_and_comments(D,oe)}if(D.text==="*"&&this._flags.last_token.type===n.DOT){this.print_token(D);return}if(D.text==="::"){this.print_token(D);return}if(this._flags.last_token.type===n.OPERATOR&&t(this._options.operator_position,l)&&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!==n.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 le=!0,Se=!0,Ee=!1;if(D.text===":"?this._flags.ternary_depth===0?le=!1:(this._flags.ternary_depth-=1,Ee=!0):D.text==="?"&&(this._flags.ternary_depth+=1),!Y&&!K&&this._options.preserve_newlines&&t(D.text,i)){var ae=D.text===":",Ce=ae&&Ee,Le=ae&&!Ee;switch(this._options.operator_position){case u.before_newline:this._output.space_before_token=!Le,this.print_token(D),(!ae||Ce)&&this.allow_wrap_or_preserved_newline(D),this._output.space_before_token=!0;return;case u.after_newline:this._output.space_before_token=!0,!ae||Ce?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:Le||this.allow_wrap_or_preserved_newline(D),le=!(this._output.just_added_newline()||Le),this._output.space_before_token=le,this.print_token(D),this._output.space_before_token=!0;return}}if(K){this.allow_wrap_or_preserved_newline(D),le=!1;var de=this._tokens.peek();Se=de&&t(de.type,[n.WORD,n.RESERVED])}else if(D.text==="...")this.allow_wrap_or_preserved_newline(D),le=this._flags.last_token.type===n.START_BLOCK,Se=!1;else if(t(D.text,["--","++","!","~"])||Y){if((this._flags.last_token.type===n.COMMA||this._flags.last_token.type===n.START_EXPR)&&this.allow_wrap_or_preserved_newline(D),le=!1,Se=!1,D.newlines&&(D.text==="--"||D.text==="++"||D.text==="~")){var $=x(this._flags.last_token,_)&&D.newlines;$&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline($,!0)}this._flags.last_token.text===";"&&P(this._flags.mode)&&(le=!0),this._flags.last_token.type===n.RESERVED?le=!0:this._flags.last_token.type===n.END_EXPR?le=!(this._flags.last_token.text==="]"&&(D.text==="--"||D.text==="++")):this._flags.last_token.type===n.OPERATOR&&(le=t(D.text,["--","-","++","+"])&&t(this._flags.last_token.text,["--","-","++","+"]),t(D.text,["+","-"])&&t(this._flags.last_token.text,["--","++"])&&(Se=!0)),(this._flags.mode===h.BlockStatement&&!this._flags.inline_frame||this._flags.mode===h.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||le,this.print_token(D),this._output.space_before_token=Se},A.prototype.handle_block_comment=function(D,K){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,K),this.print_token(D),D.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!a.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,K)},A.prototype.print_block_commment=function(D,K){var Y=f(D.text),oe,le=!1,Se=!1,Ee=D.whitespace_before,ae=Ee.length;if(this.print_newline(!1,K),this.print_token_line_indentation(D),this._output.add_token(Y[0]),this.print_newline(!1,K),Y.length>1){for(Y=Y.slice(1),le=L(Y,"*"),Se=S(Y,Ee),le&&(this._flags.alignment=1),oe=0;oe<Y.length;oe++)le?(this.print_token_line_indentation(D),this._output.add_token(b(Y[oe]))):Se&&Y[oe]?(this.print_token_line_indentation(D),this._output.add_token(Y[oe].substring(ae))):(this._output.current_line.set_indent(-1),this._output.add_token(Y[oe])),this.print_newline(!1,K);this._flags.alignment=0}},A.prototype.handle_comment=function(D,K){D.newlines?this.print_newline(!1,K):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(D),this.print_newline(!1,K)},A.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),x(this._flags.last_token,_)?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)},A.prototype.handle_unknown=function(D,K){this.print_token(D),D.text[D.text.length-1]===`
|
|
`&&this.print_newline(!1,K)},A.prototype.handle_eof=function(D){for(;this._flags.mode===h.Statement;)this.restore_mode();this.handle_whitespace_and_comments(D)},e.exports.Beautifier=A},function(e){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 a=this.__items.length-1;a>=0;a--)if(this.__items[a].match(c))return!0;return!1},O.prototype.set_indent=function(c,a){this.is_empty()&&(this.__indent_count=c||0,this.__alignment_count=a||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 a=c.lastIndexOf(`
|
|
`);a!==-1?this.__character_count=c.length-a: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 y(c,a){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)),a=a||"",c.indent_level>0&&(a=new Array(c.indent_level+1).join(this.__indent_string)),this.__base_string=a,this.__base_string_length=a.length}y.prototype.get_indent_size=function(c,a){var r=this.__base_string_length;return a=a||0,c<0&&(r=0),r+=c*this.__indent_size,r+=a,r},y.prototype.get_indent_string=function(c,a){var r=this.__base_string;return a=a||0,c<0&&(c=0,r=""),a+=c*this.__indent_size,this.__ensure_cache(a),r+=this.__cache[a],r},y.prototype.__ensure_cache=function(c){for(;c>=this.__cache.length;)this.__add_column()},y.prototype.__add_column=function(){var c=this.__cache.length,a=0,r="";this.__indent_size&&c>=this.__indent_size&&(a=Math.floor(c/this.__indent_size),c-=a*this.__indent_size,r=new Array(a+1).join(this.__indent_string)),c&&(r+=new Array(c+1).join(" ")),this.__cache.push(r)};function p(c,a){this.__indent_cache=new y(c,a),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()}p.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},p.prototype.get_line_number=function(){return this.__lines.length},p.prototype.get_indent_string=function(c,a){return this.__indent_cache.get_indent_string(c,a)},p.prototype.get_indent_size=function(c,a){return this.__indent_cache.get_indent_size(c,a)},p.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},p.prototype.add_new_line=function(c){return this.is_empty()||!c&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},p.prototype.get_code=function(c){this.trim(!0);var a=this.current_line.pop();a&&(a[a.length-1]===`
|
|
`&&(a=a.replace(/\n+$/g,"")),this.current_line.push(a)),this._end_with_newline&&this.__add_outputline();var r=this.__lines.join(`
|
|
`);return c!==`
|
|
`&&(r=r.replace(/[\n]/g,c)),r},p.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},p.prototype.set_indent=function(c,a){return c=c||0,a=a||0,this.next_line.set_indent(c,a),this.__lines.length>1?(this.current_line.set_indent(c,a),!0):(this.current_line.set_indent(),!1)},p.prototype.add_raw_token=function(c){for(var a=0;a<c.newlines;a++)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},p.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()},p.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(" "))},p.prototype.remove_indent=function(c){for(var a=this.__lines.length;c<a;)this.__lines[c]._remove_indent(),c++;this.current_line._remove_wrap_indent()},p.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},p.prototype.just_added_newline=function(){return this.current_line.is_empty()},p.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},p.prototype.ensure_empty_line_above=function(c,a){for(var r=this.__lines.length-2;r>=0;){var s=this.__lines[r];if(s.is_empty())break;if(s.item(0).indexOf(c)!==0&&s.item(-1)!==a){this.__lines.splice(r+1,0,new O(this)),this.previous_line=this.__lines[this.__lines.length-2];break}r--}},e.exports.Output=p},function(e){function O(y,p,c,a){this.type=y,this.text=p,this.comments_before=null,this.newlines=c||0,this.whitespace_before=a||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}e.exports.Token=O},function(e,O){var y="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",p="\\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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\\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",a="\\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",r="(?:\\\\u[0-9a-fA-F]{4}|["+y+c+"])",s="(?:\\\\u[0-9a-fA-F]{4}|["+p+c+a+"])*";O.identifier=new RegExp(r+s,"g"),O.identifierStart=new RegExp(r),O.identifierMatch=new RegExp("(?:\\\\u[0-9a-fA-F]{4}|["+p+c+a+"])+");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(e,O,y){var p=y(6).Options,c=["before-newline","after-newline","preserve-newline"];function a(r){p.call(this,r,"js");var s=this.raw_options.brace_style||null;s==="expand-strict"?this.raw_options.brace_style="expand":s==="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 i=0;i<o.length;i++)o[i]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=o[i];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)}a.prototype=new p,e.exports.Options=a},function(e){function O(c,a){this.raw_options=y(c,a),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,a){var r=this.raw_options[c],s=a||[];return typeof r=="object"?r!==null&&typeof r.concat=="function"&&(s=r.concat()):typeof r=="string"&&(s=r.split(/[^a-zA-Z0-9_\/\-]+/)),s},O.prototype._get_boolean=function(c,a){var r=this.raw_options[c],s=r===void 0?!!a:!!r;return s},O.prototype._get_characters=function(c,a){var r=this.raw_options[c],s=a||"";return typeof r=="string"&&(s=r.replace(/\\r/,"\r").replace(/\\n/,`
|
|
`).replace(/\\t/," ")),s},O.prototype._get_number=function(c,a){var r=this.raw_options[c];a=parseInt(a,10),isNaN(a)&&(a=0);var s=parseInt(r,10);return isNaN(s)&&(s=a),s},O.prototype._get_selection=function(c,a,r){var s=this._get_selection_list(c,a,r);if(s.length!==1)throw new Error("Invalid Option Value: The option '"+c+`' can only be one of the following values:
|
|
`+a+`
|
|
You passed in: '`+this.raw_options[c]+"'");return s[0]},O.prototype._get_selection_list=function(c,a,r){if(!a||a.length===0)throw new Error("Selection list cannot be empty.");if(r=r||[a[0]],!this._is_valid_selection(r,a))throw new Error("Invalid Default Value!");var s=this._get_array(c,r);if(!this._is_valid_selection(s,a))throw new Error("Invalid Option Value: The option '"+c+`' can contain only the following values:
|
|
`+a+`
|
|
You passed in: '`+this.raw_options[c]+"'");return s},O.prototype._is_valid_selection=function(c,a){return c.length&&a.length&&!c.some(function(r){return a.indexOf(r)===-1})};function y(c,a){var r={};c=p(c);var s;for(s in c)s!==a&&(r[s]=c[s]);if(a&&c[a])for(s in c[a])r[s]=c[a][s];return r}function p(c){var a={},r;for(r in c){var s=r.replace(/-/g,"_");a[s]=c[r]}return a}e.exports.Options=O,e.exports.normalizeOpts=p,e.exports.mergeOpts=y},function(e,O,y){var p=y(8).InputScanner,c=y(9).Tokenizer,a=y(9).TOKEN,r=y(13).Directives,s=y(4),o=y(12).Pattern,i=y(14).TemplatablePattern;function n(L,S){return S.indexOf(L)!==-1}var t={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:a.START,RAW:a.RAW,EOF:a.EOF},b=new r(/\/\*/,/\*\//),g=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,m=/[0-9]/,x=/[^\d\.]/,_=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),d=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";d=d.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),d="\\?\\.(?!\\d) "+d,d=d.replace(/ /g,"|");var u=new RegExp(d),l="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),h=l.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),v=new RegExp("^(?:"+h.join("|")+")$"),f,T=function(L,S){c.call(this,L,S),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var A=new o(this._input),W=new i(this._input).read_options(this._options);this.__patterns={template:W,identifier:W.starting_with(s.identifier).matching(s.identifierMatch),number:A.matching(g),punct:A.matching(u),comment:A.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:A.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:A.matching(/<!--/),html_comment_end:A.matching(/-->/),include:A.starting_with(/#include/).until_after(s.lineBreak),shebang:A.starting_with(/#!/).until_after(s.lineBreak),xml:A.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:W.until(/['\\\n\r\u2028\u2029]/),double_quote:W.until(/["\\\n\r\u2028\u2029]/),template_text:W.until(/[`\\$]/),template_expression:W.until(/[`}\\]/)}};T.prototype=new c,T.prototype._is_comment=function(L){return L.type===t.COMMENT||L.type===t.BLOCK_COMMENT||L.type===t.UNKNOWN},T.prototype._is_opening=function(L){return L.type===t.START_BLOCK||L.type===t.START_EXPR},T.prototype._is_closing=function(L,S){return(L.type===t.END_BLOCK||L.type===t.END_EXPR)&&S&&(L.text==="]"&&S.text==="["||L.text===")"&&S.text==="("||L.text==="}"&&S.text==="{")},T.prototype._reset=function(){f=!1},T.prototype._get_next_token=function(L,S){var A=null;this._readWhitespace();var W=this._input.peek();return W===null?this._create_token(t.EOF,""):(A=A||this._read_non_javascript(W),A=A||this._read_string(W),A=A||this._read_word(L),A=A||this._read_singles(W),A=A||this._read_comment(W),A=A||this._read_regexp(W,L),A=A||this._read_xml(W,L),A=A||this._read_punctuation(),A=A||this._create_token(t.UNKNOWN,this._input.next()),A)},T.prototype._read_word=function(L){var S;if(S=this.__patterns.identifier.read(),S!=="")return S=S.replace(s.allLineBreaks,`
|
|
`),!(L.type===t.DOT||L.type===t.RESERVED&&(L.text==="set"||L.text==="get"))&&v.test(S)?(S==="in"||S==="of")&&(L.type===t.WORD||L.type===t.STRING)?this._create_token(t.OPERATOR,S):this._create_token(t.RESERVED,S):this._create_token(t.WORD,S);if(S=this.__patterns.number.read(),S!=="")return this._create_token(t.WORD,S)},T.prototype._read_singles=function(L){var S=null;return L==="("||L==="["?S=this._create_token(t.START_EXPR,L):L===")"||L==="]"?S=this._create_token(t.END_EXPR,L):L==="{"?S=this._create_token(t.START_BLOCK,L):L==="}"?S=this._create_token(t.END_BLOCK,L):L===";"?S=this._create_token(t.SEMICOLON,L):L==="."&&x.test(this._input.peek(1))?S=this._create_token(t.DOT,L):L===","&&(S=this._create_token(t.COMMA,L)),S&&this._input.next(),S},T.prototype._read_punctuation=function(){var L=this.__patterns.punct.read();if(L!=="")return L==="="?this._create_token(t.EQUALS,L):L==="?."?this._create_token(t.DOT,L):this._create_token(t.OPERATOR,L)},T.prototype._read_non_javascript=function(L){var S="";if(L==="#"){if(this._is_first_token()&&(S=this.__patterns.shebang.read(),S))return this._create_token(t.UNKNOWN,S.trim()+`
|
|
`);if(S=this.__patterns.include.read(),S)return this._create_token(t.UNKNOWN,S.trim()+`
|
|
`);L=this._input.next();var A="#";if(this._input.hasNext()&&this._input.testChar(m)){do L=this._input.next(),A+=L;while(this._input.hasNext()&&L!=="#"&&L!=="=");return L==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(A+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(A+="{}",this._input.next(),this._input.next())),this._create_token(t.WORD,A)}this._input.back()}else if(L==="<"&&this._is_first_token()){if(S=this.__patterns.html_comment_start.read(),S){for(;this._input.hasNext()&&!this._input.testChar(s.newline);)S+=this._input.next();return f=!0,this._create_token(t.COMMENT,S)}}else if(f&&L==="-"&&(S=this.__patterns.html_comment_end.read(),S))return f=!1,this._create_token(t.COMMENT,S);return null},T.prototype._read_comment=function(L){var S=null;if(L==="/"){var A="";if(this._input.peek(1)==="*"){A=this.__patterns.block_comment.read();var W=b.get_directives(A);W&&W.ignore==="start"&&(A+=b.readIgnored(this._input)),A=A.replace(s.allLineBreaks,`
|
|
`),S=this._create_token(t.BLOCK_COMMENT,A),S.directives=W}else this._input.peek(1)==="/"&&(A=this.__patterns.comment.read(),S=this._create_token(t.COMMENT,A))}return S},T.prototype._read_string=function(L){if(L==="`"||L==="'"||L==='"'){var S=this._input.next();return this.has_char_escapes=!1,L==="`"?S+=this._read_string_recursive("`",!0,"${"):S+=this._read_string_recursive(L),this.has_char_escapes&&this._options.unescape_strings&&(S=P(S)),this._input.peek()===L&&(S+=this._input.next()),S=S.replace(s.allLineBreaks,`
|
|
`),this._create_token(t.STRING,S)}return null},T.prototype._allow_regexp_or_xml=function(L){return L.type===t.RESERVED&&n(L.text,["return","case","throw","else","do","typeof","yield"])||L.type===t.END_EXPR&&L.text===")"&&L.opened.previous.type===t.RESERVED&&n(L.opened.previous.text,["if","while","for"])||n(L.type,[t.COMMENT,t.START_EXPR,t.START_BLOCK,t.START,t.END_BLOCK,t.OPERATOR,t.EQUALS,t.EOF,t.SEMICOLON,t.COMMA])},T.prototype._read_regexp=function(L,S){if(L==="/"&&this._allow_regexp_or_xml(S)){for(var A=this._input.next(),W=!1,D=!1;this._input.hasNext()&&(W||D||this._input.peek()!==L)&&!this._input.testChar(s.newline);)A+=this._input.peek(),W?W=!1:(W=this._input.peek()==="\\",this._input.peek()==="["?D=!0:this._input.peek()==="]"&&(D=!1)),this._input.next();return this._input.peek()===L&&(A+=this._input.next(),A+=this._input.read(s.identifier)),this._create_token(t.STRING,A)}return null},T.prototype._read_xml=function(L,S){if(this._options.e4x&&L==="<"&&this._allow_regexp_or_xml(S)){var A="",W=this.__patterns.xml.read_match();if(W){for(var D=W[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),K=D.indexOf("{")===0,Y=0;W;){var oe=!!W[1],le=W[2],Se=!!W[W.length-1]||le.slice(0,8)==="![CDATA[";if(!Se&&(le===D||K&&le.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(oe?--Y:++Y),A+=W[0],Y<=0)break;W=this.__patterns.xml.read_match()}return W||(A+=this._input.match(/[\s\S]*/g)[0]),A=A.replace(s.allLineBreaks,`
|
|
`),this._create_token(t.STRING,A)}}return null};function P(L){for(var S="",A=0,W=new p(L),D=null;W.hasNext();)if(D=W.match(/([\s]|[^\\]|\\\\)+/g),D&&(S+=D[0]),W.peek()==="\\"){if(W.next(),W.peek()==="x")D=W.match(/x([0-9A-Fa-f]{2})/g);else if(W.peek()==="u")D=W.match(/u([0-9A-Fa-f]{4})/g);else{S+="\\",W.hasNext()&&(S+=W.next());continue}if(!D)return L;if(A=parseInt(D[1],16),A>126&&A<=255&&D[0].indexOf("x")===0)return L;if(A>=0&&A<32){S+="\\"+D[0];continue}else A===34||A===39||A===92?S+="\\"+String.fromCharCode(A):S+=String.fromCharCode(A)}return S}T.prototype._read_string_recursive=function(L,S,A){var W,D;L==="'"?D=this.__patterns.single_quote:L==='"'?D=this.__patterns.double_quote:L==="`"?D=this.__patterns.template_text:L==="}"&&(D=this.__patterns.template_expression);for(var K=D.read(),Y="";this._input.hasNext();){if(Y=this._input.next(),Y===L||!S&&s.newline.test(Y)){this._input.back();break}else Y==="\\"&&this._input.hasNext()?(W=this._input.peek(),W==="x"||W==="u"?this.has_char_escapes=!0:W==="\r"&&this._input.peek(1)===`
|
|
`&&this._input.next(),Y+=this._input.next()):A&&(A==="${"&&Y==="$"&&this._input.peek()==="{"&&(Y+=this._input.next()),A===Y&&(L==="`"?Y+=this._read_string_recursive("}",S,"`"):Y+=this._read_string_recursive("`",S,"${"),this._input.hasNext()&&(Y+=this._input.next())));Y+=D.read(),K+=Y}return K},e.exports.Tokenizer=T,e.exports.TOKEN=t,e.exports.positionable_operators=_.slice(),e.exports.line_starters=l.slice()},function(e){var O=RegExp.prototype.hasOwnProperty("sticky");function y(p){this.__input=p||"",this.__input_length=this.__input.length,this.__position=0}y.prototype.restart=function(){this.__position=0},y.prototype.back=function(){this.__position>0&&(this.__position-=1)},y.prototype.hasNext=function(){return this.__position<this.__input_length},y.prototype.next=function(){var p=null;return this.hasNext()&&(p=this.__input.charAt(this.__position),this.__position+=1),p},y.prototype.peek=function(p){var c=null;return p=p||0,p+=this.__position,p>=0&&p<this.__input_length&&(c=this.__input.charAt(p)),c},y.prototype.__match=function(p,c){p.lastIndex=c;var a=p.exec(this.__input);return a&&!(O&&p.sticky)&&(a.index!==c&&(a=null)),a},y.prototype.test=function(p,c){return c=c||0,c+=this.__position,c>=0&&c<this.__input_length?!!this.__match(p,c):!1},y.prototype.testChar=function(p,c){var a=this.peek(c);return p.lastIndex=0,a!==null&&p.test(a)},y.prototype.match=function(p){var c=this.__match(p,this.__position);return c?this.__position+=c[0].length:c=null,c},y.prototype.read=function(p,c,a){var r="",s;return p&&(s=this.match(p),s&&(r+=s[0])),c&&(s||!p)&&(r+=this.readUntil(c,a)),r},y.prototype.readUntil=function(p,c){var a="",r=this.__position;p.lastIndex=this.__position;var s=p.exec(this.__input);return s?(r=s.index,c&&(r+=s[0].length)):r=this.__input_length,a=this.__input.substring(this.__position,r),this.__position=r,a},y.prototype.readUntilAfter=function(p){return this.readUntil(p,!0)},y.prototype.get_regexp=function(p,c){var a=null,r="g";return c&&O&&(r="y"),typeof p=="string"&&p!==""?a=new RegExp(p,r):p&&(a=new RegExp(p.source,r)),a},y.prototype.get_literal_regexp=function(p){return RegExp(p.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},y.prototype.peekUntilAfter=function(p){var c=this.__position,a=this.readUntilAfter(p);return this.__position=c,a},y.prototype.lookBack=function(p){var c=this.__position-1;return c>=p.length&&this.__input.substring(c-p.length,c).toLowerCase()===p},e.exports.InputScanner=y},function(e,O,y){var p=y(8).InputScanner,c=y(3).Token,a=y(10).TokenStream,r=y(11).WhitespacePattern,s={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},o=function(i,n){this._input=new p(i),this._options=n||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new r(this._input)};o.prototype.tokenize=function(){this._input.restart(),this.__tokens=new a,this._reset();for(var i,n=new c(s.START,""),t=null,b=[],g=new a;n.type!==s.EOF;){for(i=this._get_next_token(n,t);this._is_comment(i);)g.add(i),i=this._get_next_token(n,t);g.isEmpty()||(i.comments_before=g,g=new a),i.parent=t,this._is_opening(i)?(b.push(t),t=i):t&&this._is_closing(i,t)&&(i.opened=t,t.closed=i,t=b.pop(),i.parent=t),i.previous=n,n.next=i,this.__tokens.add(i),n=i}return this.__tokens},o.prototype._is_first_token=function(){return this.__tokens.isEmpty()},o.prototype._reset=function(){},o.prototype._get_next_token=function(i,n){this._readWhitespace();var t=this._input.read(/.+/g);return t?this._create_token(s.RAW,t):this._create_token(s.EOF,"")},o.prototype._is_comment=function(i){return!1},o.prototype._is_opening=function(i){return!1},o.prototype._is_closing=function(i,n){return!1},o.prototype._create_token=function(i,n){var t=new c(i,n,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return t},o.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},e.exports.Tokenizer=o,e.exports.TOKEN=s},function(e){function O(y){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=y}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 y=null;return this.hasNext()&&(y=this.__tokens[this.__position],this.__position+=1),y},O.prototype.peek=function(y){var p=null;return y=y||0,y+=this.__position,y>=0&&y<this.__tokens_length&&(p=this.__tokens[y]),p},O.prototype.add=function(y){this.__parent_token&&(y.parent=this.__parent_token),this.__tokens.push(y),this.__tokens_length+=1},e.exports.TokenStream=O},function(e,O,y){var p=y(12).Pattern;function c(a,r){p.call(this,a,r),r?this._line_regexp=this._input.get_regexp(r._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}c.prototype=new p,c.prototype.__set_whitespace_patterns=function(a,r){a+="\\t ",r+="\\n\\r",this._match_pattern=this._input.get_regexp("["+a+r+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+r+"]")},c.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var a=this._input.read(this._match_pattern);if(a===" ")this.whitespace_before_token=" ";else if(a){var r=this.__split(this._newline_regexp,a);this.newline_count=r.length-1,this.whitespace_before_token=r[this.newline_count]}return a},c.prototype.matching=function(a,r){var s=this._create();return s.__set_whitespace_patterns(a,r),s._update(),s},c.prototype._create=function(){return new c(this._input,this)},c.prototype.__split=function(a,r){a.lastIndex=0;for(var s=0,o=[],i=a.exec(r);i;)o.push(r.substring(s,i.index)),s=i.index+i[0].length,i=a.exec(r);return s<r.length?o.push(r.substring(s,r.length)):o.push(""),o},e.exports.WhitespacePattern=c},function(e){function O(y,p){this._input=y,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,p&&(this._starting_pattern=this._input.get_regexp(p._starting_pattern,!0),this._match_pattern=this._input.get_regexp(p._match_pattern,!0),this._until_pattern=this._input.get_regexp(p._until_pattern),this._until_after=p._until_after)}O.prototype.read=function(){var y=this._input.read(this._starting_pattern);return(!this._starting_pattern||y)&&(y+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),y},O.prototype.read_match=function(){return this._input.match(this._match_pattern)},O.prototype.until_after=function(y){var p=this._create();return p._until_after=!0,p._until_pattern=this._input.get_regexp(y),p._update(),p},O.prototype.until=function(y){var p=this._create();return p._until_after=!1,p._until_pattern=this._input.get_regexp(y),p._update(),p},O.prototype.starting_with=function(y){var p=this._create();return p._starting_pattern=this._input.get_regexp(y,!0),p._update(),p},O.prototype.matching=function(y){var p=this._create();return p._match_pattern=this._input.get_regexp(y,!0),p._update(),p},O.prototype._create=function(){return new O(this._input,this)},O.prototype._update=function(){},e.exports.Pattern=O},function(e){function O(y,p){y=typeof y=="string"?y:y.source,p=typeof p=="string"?p:p.source,this.__directives_block_pattern=new RegExp(y+/ beautify( \w+[:]\w+)+ /.source+p,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(y+/\sbeautify\signore:end\s/.source+p,"g")}O.prototype.get_directives=function(y){if(!y.match(this.__directives_block_pattern))return null;var p={};this.__directive_pattern.lastIndex=0;for(var c=this.__directive_pattern.exec(y);c;)p[c[1]]=c[2],c=this.__directive_pattern.exec(y);return p},O.prototype.readIgnored=function(y){return y.readUntilAfter(this.__directives_end_ignore_pattern)},e.exports.Directives=O},function(e,O,y){var p=y(12).Pattern,c={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1};function a(r,s){p.call(this,r,s),this.__template_pattern=null,this._disabled=Object.assign({},c),this._excluded=Object.assign({},c),s&&(this.__template_pattern=this._input.get_regexp(s.__template_pattern),this._excluded=Object.assign(this._excluded,s._excluded),this._disabled=Object.assign(this._disabled,s._disabled));var o=new p(r);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}/)}}a.prototype=new p,a.prototype._create=function(){return new a(this._input,this)},a.prototype._update=function(){this.__set_templated_pattern()},a.prototype.disable=function(r){var s=this._create();return s._disabled[r]=!0,s._update(),s},a.prototype.read_options=function(r){var s=this._create();for(var o in c)s._disabled[o]=r.templating.indexOf(o)===-1;return s._update(),s},a.prototype.exclude=function(r){var s=this._create();return s._excluded[r]=!0,s._update(),s},a.prototype.read=function(){var r="";this._match_pattern?r=this._input.read(this._starting_pattern):r=this._input.read(this._starting_pattern,this.__template_pattern);for(var s=this._read_template();s;)this._match_pattern?s+=this._input.read(this._match_pattern):s+=this._input.readUntil(this.__template_pattern),r+=s,s=this._read_template();return this._until_after&&(r+=this._input.readUntilAfter(this._until_pattern)),r},a.prototype.__set_templated_pattern=function(){var r=[];this._disabled.php||r.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||r.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||r.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(r.push(this.__patterns.django._starting_pattern.source),r.push(this.__patterns.django_value._starting_pattern.source),r.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||r.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&r.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+r.join("|")+")")},a.prototype._read_template=function(){var r="",s=this._input.peek();if(s==="<"){var o=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&o==="?"&&(r=r||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&o==="%"&&(r=r||this.__patterns.erb.read())}else s==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(r=r||this.__patterns.handlebars_comment.read(),r=r||this.__patterns.handlebars_unescaped.read(),r=r||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(r=r||this.__patterns.django_value.read()),this._excluded.django||(r=r||this.__patterns.django_comment.read(),r=r||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(r=r||this.__patterns.smarty_comment.read(),r=r||this.__patterns.smarty_literal.read(),r=r||this.__patterns.smarty.read()));return r},e.exports.TemplatablePattern=a}],R={};function H(e){var O=R[e];if(O!==void 0)return O.exports;var y=R[e]={exports:{}};return C[e](y,y.exports,H),y.exports}var k=H(0);I=k})();var j=I;!(Q=[],M=function(){return{js_beautify:j}}.apply(ie,Q),M!==void 0&&(Be.exports=M))})()},"6eGT":function(Be,ie,N){"use strict";function Q(M){return null}ie.a=Q},"6nfa":function(Be,ie,N){Be.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"}},"746U":function(Be,ie,N){"use strict";N.d(ie,"f",function(){return Q}),N.d(ie,"l",function(){return M}),N.d(ie,"k",function(){return I}),N.d(ie,"j",function(){return j}),N.d(ie,"g",function(){return C}),N.d(ie,"m",function(){return R}),N.d(ie,"h",function(){return H}),N.d(ie,"n",function(){return k}),N.d(ie,"c",function(){return e}),N.d(ie,"a",function(){return O}),N.d(ie,"i",function(){return y}),N.d(ie,"o",function(){return p}),N.d(ie,"e",function(){return r}),N.d(ie,"d",function(){return s}),N.d(ie,"p",function(){return o}),N.d(ie,"b",function(){return i});function Q(n){return Array.isArray(n)}function M(n){return typeof n=="string"}function I(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)&&!(n instanceof RegExp)&&!(n instanceof Date)}function j(n){return typeof n=="number"&&!isNaN(n)}function C(n){return n===!0||n===!1}function R(n){return typeof n=="undefined"}function H(n){return!k(n)}function k(n){return R(n)||n===null}function e(n,t){if(!n)throw new Error(t?`Unexpected type, expected '${t}'`:"Unexpected type")}function O(n){if(k(n))throw new Error("Assertion Failed: argument is undefined or null");return n}function y(n){return typeof n=="function"}function p(n,t){const b=Math.min(n.length,t.length);for(let g=0;g<b;g++)c(n[g],t[g])}function c(n,t){if(M(t)){if(typeof n!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(y(t)){try{if(n instanceof t)return}catch(b){}if(!k(n)&&n.constructor===t)return;if(t.length===1&&t.call(void 0,n)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function a(n){let t=[],b=Object.getPrototypeOf(n);for(;Object.prototype!==b;)t=t.concat(Object.getOwnPropertyNames(b)),b=Object.getPrototypeOf(b);return t}function r(n){const t=[];for(const b of a(n))typeof n[b]=="function"&&t.push(b);return t}function s(n,t){const b=m=>function(){const x=Array.prototype.slice.call(arguments,0);return t(m,x)};let g={};for(const m of n)g[m]=b(m);return g}function o(n){return n===null?void 0:n}function i(n,t="Unreachable"){throw new Error(t)}},"815F":function(Be,ie,N){"use strict";N.d(ie,"e",function(){return H}),N.d(ie,"c",function(){return e}),N.d(ie,"d",function(){return O}),N.d(ie,"a",function(){return p}),N.d(ie,"f",function(){return c}),N.d(ie,"b",function(){return a});var Q=N("KQm4"),M=N("VTBJ"),I=N("Ff2n"),j=N("Zm9Q"),C=N("Kwbf"),R=N("OZM5");function H(r,s){return r!=null?r:s}function k(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],s=new Map;function o(i){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(i||[]).forEach(function(t){var b=t.key,g=t.children;Object(C.a)(b!=null,"Tree node must have a certain key: [".concat(n).concat(b,"]"));var m=String(b);Object(C.a)(!s.has(m)||b===null||b===void 0,"Same 'key' exist in the Tree: ".concat(m)),s.set(m,!0),o(g,"".concat(n).concat(m," > "))})}o(r)}function e(r){function s(o){var i=Object(j.a)(o);return i.map(function(n){if(!Object(R.i)(n))return Object(C.a)(!n,"Tree/TreeNode can only accept TreeNode as children."),null;var t=n.key,b=n.props,g=b.children,m=Object(I.a)(b,["children"]),x=Object(M.a)({key:t},m),_=s(g);return _.length&&(x.children=_),x}).filter(function(n){return n})}return s(r)}function O(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],o=new Set(s===!0?[]:s),i=[];function n(t){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return t.map(function(g,m){var x=Object(R.h)(b?b.pos:"0",m),_=H(g.key,x),d=Object(M.a)(Object(M.a)({},g),{},{parent:b,pos:x,children:null,data:g,isStart:[].concat(Object(Q.a)(b?b.isStart:[]),[m===0]),isEnd:[].concat(Object(Q.a)(b?b.isEnd:[]),[m===t.length-1])});return i.push(d),s===!0||o.has(_)?d.children=n(g.children||[],d):d.children=[],d})}return n(r),i}function y(r,s,o){var i;o?typeof o=="string"?i=function(b){return b[o]}:typeof o=="function"&&(i=function(b){return o(b)}):i=function(b,g){return H(b.key,g)};function n(t,b,g){var m=t?t.children:r,x=t?Object(R.h)(g.pos,b):"0";if(t){var _=i(t,x),d={node:t,index:b,pos:x,key:_,parentPos:g.node?g.pos:null,level:g.level+1};s(d)}m&&m.forEach(function(u,l){n(u,l,{node:t,pos:x,level:g?g.level+1:-1})})}n(null)}function p(r){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=s.initWrapper,i=s.processEntity,n=s.onProcessFinished,t=arguments.length>2?arguments[2]:void 0,b={},g={},m={posEntities:b,keyEntities:g};return o&&(m=o(m)||m),y(r,function(x){var _=x.node,d=x.index,u=x.pos,l=x.key,h=x.parentPos,v=x.level,f={node:_,index:d,key:l,pos:u,level:v},T=H(l,u);b[u]=f,g[T]=f,f.parent=b[h],f.parent&&(f.parent.children=f.parent.children||[],f.parent.children.push(f)),i&&i(f,m)},t),n&&n(m),m}function c(r,s){var o=s.expandedKeys,i=s.selectedKeys,n=s.loadedKeys,t=s.loadingKeys,b=s.checkedKeys,g=s.halfCheckedKeys,m=s.dragOverNodeKey,x=s.dropPosition,_=s.keyEntities,d=_[r],u={eventKey:r,expanded:o.indexOf(r)!==-1,selected:i.indexOf(r)!==-1,loaded:n.indexOf(r)!==-1,loading:t.indexOf(r)!==-1,checked:b.indexOf(r)!==-1,halfChecked:g.indexOf(r)!==-1,pos:String(d?d.pos:""),dragOver:m===r&&x===0,dragOverGapTop:m===r&&x===-1,dragOverGapBottom:m===r&&x===1};return u}function a(r){var s=r.data,o=r.expanded,i=r.selected,n=r.checked,t=r.loaded,b=r.loading,g=r.halfChecked,m=r.dragOver,x=r.dragOverGapTop,_=r.dragOverGapBottom,d=r.pos,u=r.active,l=Object(M.a)(Object(M.a)({},s),{},{expanded:o,selected:i,checked:n,loaded:t,loading:b,halfChecked:g,dragOver:m,dragOverGapTop:x,dragOverGapBottom:_,pos:d,active:u});return"props"in l||Object.defineProperty(l,"props",{get:function(){return Object(C.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),r}}),l}},"8HAY":function(Be,ie,N){"use strict";N.d(ie,"a",function(){return C}),N.d(ie,"b",function(){return R}),N.d(ie,"d",function(){return H}),N.d(ie,"e",function(){return k}),N.d(ie,"c",function(){return e});var Q=N("MI8n"),M=N("pmY6"),I=N("3/fG"),j=function(O,y,p,c){function a(r){return r instanceof p?r:new p(function(s){s(r)})}return new(p||(p=Promise))(function(r,s){function o(t){try{n(c.next(t))}catch(b){s(b)}}function i(t){try{n(c.throw(t))}catch(b){s(b)}}function n(t){t.done?r(t.value):a(t.value).then(o,i)}n((c=c.apply(O,y||[])).next())})};class C extends M.a{constructor(O,y="",p="",c=!0,a){super();this._onDidChange=this._register(new Q.b),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=O,this._label=y,this._cssClass=p,this._enabled=c,this._actionCallback=a}get id(){return this._id}get label(){return this._label}set label(O){this._setLabel(O)}_setLabel(O){this._label!==O&&(this._label=O,this._onDidChange.fire({label:O}))}get tooltip(){return this._tooltip||""}set tooltip(O){this._setTooltip(O)}_setTooltip(O){this._tooltip!==O&&(this._tooltip=O,this._onDidChange.fire({tooltip:O}))}get class(){return this._cssClass}set class(O){this._setClass(O)}_setClass(O){this._cssClass!==O&&(this._cssClass=O,this._onDidChange.fire({class:O}))}get enabled(){return this._enabled}set enabled(O){this._setEnabled(O)}_setEnabled(O){this._enabled!==O&&(this._enabled=O,this._onDidChange.fire({enabled:O}))}get checked(){return this._checked}set checked(O){this._setChecked(O)}_setChecked(O){this._checked!==O&&(this._checked=O,this._onDidChange.fire({checked:O}))}run(O,y){return j(this,void 0,void 0,function*(){this._actionCallback&&(yield this._actionCallback(O))})}}class R extends M.a{constructor(){super(...arguments);this._onBeforeRun=this._register(new Q.b),this.onBeforeRun=this._onBeforeRun.event,this._onDidRun=this._register(new Q.b),this.onDidRun=this._onDidRun.event}run(O,y){return j(this,void 0,void 0,function*(){if(!O.enabled)return;this._onBeforeRun.fire({action:O});let p;try{yield this.runAction(O,y)}catch(c){p=c}this._onDidRun.fire({action:O,error:p})})}runAction(O,y){return j(this,void 0,void 0,function*(){yield O.run(y)})}}class H extends C{constructor(O){super(H.ID,O,O?"separator text":"separator");this.checked=!1,this.enabled=!1}}H.ID="vs.actions.separator";class k{constructor(O,y,p,c){this.tooltip="",this.enabled=!0,this.checked=!1,this.id=O,this.label=y,this.class=c,this._actions=p}get actions(){return this._actions}dispose(){}run(){return j(this,void 0,void 0,function*(){})}}class e extends C{constructor(){super(e.ID,I.a("submenu.empty","(empty)"),void 0,!1)}}e.ID="vs.actions.empty"},"8WcF":function(Be,ie,N){Be.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(Be,ie,N){Be.exports={button:"button___1wy9m"}},"8mKB":function(Be,ie,N){"use strict";var Q=N("rePB"),M=N("1OyB"),I=N("vuIU"),j=N("Ji7U"),C=N("md7G"),R=N("foSv"),H=N("q1tI"),k=N.n(H),e=N("m+aA"),O=N("TSYQ"),y=N.n(O),p=N("4IlW");function c(u){var l=u.pageXOffset,h="scrollLeft";if(typeof l!="number"){var v=u.document;l=v.documentElement[h],typeof l!="number"&&(l=v.body[h])}return l}function a(u){var l,h,v=u.ownerDocument,f=v.body,T=v&&v.documentElement,P=u.getBoundingClientRect();return l=P.left,h=P.top,l-=T.clientLeft||f.clientLeft||0,h-=T.clientTop||f.clientTop||0,{left:l,top:h}}function r(u){var l=a(u),h=u.ownerDocument,v=h.defaultView||h.parentWindow;return l.left+=c(v),l.left}function s(u){var l=o();return function(){var v=Object(R.a)(u),f;if(l){var T=Object(R.a)(this).constructor;f=Reflect.construct(v,arguments,T)}else f=v.apply(this,arguments);return Object(C.a)(this,f)}}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 i=function(u){Object(j.a)(h,u);var l=s(h);function h(){var v;return Object(M.a)(this,h),v=l.apply(this,arguments),v.onHover=function(f){var T=v.props,P=T.onHover,L=T.index;P(f,L)},v.onClick=function(f){var T=v.props,P=T.onClick,L=T.index;P(f,L)},v.onKeyDown=function(f){var T=v.props,P=T.onClick,L=T.index;f.keyCode===13&&P(f,L)},v}return Object(I.a)(h,[{key:"getClassName",value:function(){var f=this.props,T=f.prefixCls,P=f.index,L=f.value,S=f.allowHalf,A=f.focused,W=P+1,D=T;return L===0&&P===0&&A?D+=" ".concat(T,"-focused"):S&&L+.5>=W&&L<W?(D+=" ".concat(T,"-half ").concat(T,"-active"),A&&(D+=" ".concat(T,"-focused"))):(D+=W<=L?" ".concat(T,"-full"):" ".concat(T,"-zero"),W===L&&A&&(D+=" ".concat(T,"-focused"))),D}},{key:"render",value:function(){var f=this.onHover,T=this.onClick,P=this.onKeyDown,L=this.props,S=L.disabled,A=L.prefixCls,W=L.character,D=L.characterRender,K=L.index,Y=L.count,oe=L.value,le=typeof W=="function"?W(this.props):W,Se=k.a.createElement("li",{className:this.getClassName()},k.a.createElement("div",{onClick:S?null:T,onKeyDown:S?null:P,onMouseMove:S?null:f,role:"radio","aria-checked":oe>K?"true":"false","aria-posinset":K+1,"aria-setsize":Y,tabIndex:S?-1:0},k.a.createElement("div",{className:"".concat(A,"-first")},le),k.a.createElement("div",{className:"".concat(A,"-second")},le)));return D&&(Se=D(Se,this.props)),Se}}]),h}(k.a.Component);function n(u,l){var h=Object.keys(u);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(u);l&&(v=v.filter(function(f){return Object.getOwnPropertyDescriptor(u,f).enumerable})),h.push.apply(h,v)}return h}function t(u){for(var l=1;l<arguments.length;l++){var h=arguments[l]!=null?arguments[l]:{};l%2?n(Object(h),!0).forEach(function(v){Object(Q.a)(u,v,h[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(h)):n(Object(h)).forEach(function(v){Object.defineProperty(u,v,Object.getOwnPropertyDescriptor(h,v))})}return u}function b(u){var l=g();return function(){var v=Object(R.a)(u),f;if(l){var T=Object(R.a)(this).constructor;f=Reflect.construct(v,arguments,T)}else f=v.apply(this,arguments);return Object(C.a)(this,f)}}function g(){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 m(){}var x=function(u){Object(j.a)(h,u);var l=b(h);function h(v){var f;Object(M.a)(this,h),f=l.call(this,v),f.onHover=function(P,L){var S=f.props.onHoverChange,A=f.getStarValue(L,P.pageX),W=f.state.cleanedValue;A!==W&&f.setState({hoverValue:A,cleanedValue:null}),S(A)},f.onMouseLeave=function(){var P=f.props.onHoverChange;f.setState({hoverValue:void 0,cleanedValue:null}),P(void 0)},f.onClick=function(P,L){var S=f.props.allowClear,A=f.state.value,W=f.getStarValue(L,P.pageX),D=!1;S&&(D=W===A),f.onMouseLeave(),f.changeValue(D?0:W),f.setState({cleanedValue:D?W:null})},f.onFocus=function(){var P=f.props.onFocus;f.setState({focused:!0}),P&&P()},f.onBlur=function(){var P=f.props.onBlur;f.setState({focused:!1}),P&&P()},f.onKeyDown=function(P){var L=P.keyCode,S=f.props,A=S.count,W=S.allowHalf,D=S.onKeyDown,K=S.direction,Y=K==="rtl",oe=f.state.value;L===p.a.RIGHT&&oe<A&&!Y?(W?oe+=.5:oe+=1,f.changeValue(oe),P.preventDefault()):L===p.a.LEFT&&oe>0&&!Y||L===p.a.RIGHT&&oe>0&&Y?(W?oe-=.5:oe-=1,f.changeValue(oe),P.preventDefault()):L===p.a.LEFT&&oe<A&&Y&&(W?oe+=.5:oe+=1,f.changeValue(oe),P.preventDefault()),D&&D(P)},f.saveRef=function(P){return function(L){f.stars[P]=L}},f.saveRate=function(P){f.rate=P};var T=v.value;return T===void 0&&(T=v.defaultValue),f.stars={},f.state={value:T,focused:!1,cleanedValue:null},f}return Object(I.a)(h,[{key:"componentDidMount",value:function(){var f=this.props,T=f.autoFocus,P=f.disabled;T&&!P&&this.focus()}},{key:"getStarDOM",value:function(f){return Object(e.a)(this.stars[f])}},{key:"getStarValue",value:function(f,T){var P=this.props,L=P.allowHalf,S=P.direction,A=S==="rtl",W=f+1;if(L){var D=this.getStarDOM(f),K=r(D),Y=D.clientWidth;(A&&T-K>Y/2||!A&&T-K<Y/2)&&(W-=.5)}return W}},{key:"focus",value:function(){var f=this.props.disabled;f||this.rate.focus()}},{key:"blur",value:function(){var f=this.props.disabled;f||this.rate.blur()}},{key:"changeValue",value:function(f){var T=this.props.onChange;"value"in this.props||this.setState({value:f}),T(f)}},{key:"render",value:function(){for(var f=this.props,T=f.count,P=f.allowHalf,L=f.style,S=f.prefixCls,A=f.disabled,W=f.className,D=f.character,K=f.characterRender,Y=f.tabIndex,oe=f.direction,le=this.state,Se=le.value,Ee=le.hoverValue,ae=le.focused,Ce=[],Le=A?"".concat(S,"-disabled"):"",de=0;de<T;de+=1)Ce.push(k.a.createElement(i,{ref:this.saveRef(de),index:de,count:T,disabled:A,prefixCls:"".concat(S,"-star"),allowHalf:P,value:Ee===void 0?Se:Ee,onClick:this.onClick,onHover:this.onHover,key:de,character:D,characterRender:K,focused:ae}));var $=y()(S,Le,W,Object(Q.a)({},"".concat(S,"-rtl"),oe==="rtl"));return k.a.createElement("ul",{className:$,style:L,onMouseLeave:A?null:this.onMouseLeave,tabIndex:A?-1:Y,onFocus:A?null:this.onFocus,onBlur:A?null:this.onBlur,onKeyDown:A?null:this.onKeyDown,ref:this.saveRate,role:"radiogroup"},Ce)}}],[{key:"getDerivedStateFromProps",value:function(f,T){return"value"in f&&f.value!==void 0?t(t({},T),{},{value:f.value}):T}}]),h}(k.a.Component);x.defaultProps={defaultValue:0,count:5,allowHalf:!1,allowClear:!0,style:{},prefixCls:"rc-rate",onChange:m,character:"\u2605",onHoverChange:m,tabIndex:0,direction:"ltr"};var _=x,d=ie.a=_},"9Bee":function(Be,ie,N){"use strict";var Q=N("DYRE"),M=N("zeV3"),I=N("+L6B"),j=N("2/Rp"),C=N("k1fw"),R=N("9og8"),H=N("tJVT"),k=N("WmNS"),e=N.n(k),O=N("q1tI"),y=N.n(O),p=N("vg9a"),c=N("DlQD"),a=N.n(c),r=N("rUJ1");function s(B,E){var w=B.match(/^(\s+)(?:```)/);if(w===null)return E;var U=w[1];return E.split(`
|
|
`).map(function(z){var F=z.match(/^\s+/);if(F===null)return z;var me=Object(H.a)(F,1),Ke=me[0];return Ke.length>=U.length?z.slice(U.length):z}).join(`
|
|
`)}var o=[],i=["<ul>"],n=new a.a.Renderer,t=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function b(){o.length=0,i=["<ul>"]}var g={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function m(B,E,w,U){if(E>=B.length||B[E].level<=w)return E;var z=B[E];U.push("<li><a href='#"+z.anchor+"'>"+z.text+"</a>"),E++;var F=[];return E=m(B,E,z.level,F),F.length>0&&(U.push("<ul>"),F.forEach(function(me){U.push(me)}),U.push("</ul>")),U.push("</li>"),E=m(B,E,w,U),E}function x(){return m(o,0,0,i),i.push("</ul>"),i.join("")}var _={heading:function(E){var w=t.exec(E);if(w)return{type:"heading",raw:w[0],depth:w[1].length,text:w[2]}},fences:function(E){var w=this.rules.block.fences.exec(E);if(w){var U=w[0],z=s(U,w[3]||""),F=w[2]?w[2].trim():w[2];if(["latex","katex","math"].indexOf(F)>=0){var me=l(),Ke=z;z=me,h[me]={type:"block",expression:Ke}}return{type:"code",raw:U,lang:F,text:z}}}},d=/(?:\${2})([^\n`]+?)(?:\${2})/gi,u=0,l=function(){return"__special_katext_id_".concat(u++,"__")},h={};function v(){return h}function f(){u=0,h={}}function T(B){return B=B.replace(d,function(E,w){var U=l();return h[U]={type:"inline",expression:w},U}),B}var P=n.listitem;n.listitem=function(B){return P(T(B))};var L=n.paragraph;n.paragraph=function(B){return L(T(B))};var S=n.tablecell;n.tablecell=function(B,E){return S(T(B),E)},n.code=function(B,E,w){var U=(E||"").match(/\S*/)[0];return U?["latex","katex","math"].indexOf(U)>=0?"<p class='editormd-tex'>".concat(B,"</p>"):'<pre class="prettyprint linenums"><code class="language-'.concat(E,'">').concat(w?B:Object(r.escape)(B,!0),`</code></pre>
|
|
`):'<pre class="prettyprint linenums"><code>'+(w?B:Object(r.escape)(B,!0))+"</code></pre>"},n.heading=function(B,E,w){var U=this.options.headerPrefix+w.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return o.push({anchor:U,level:E,text:B}),"<h"+E+' id="'+U+'">'+B+"</h"+E+">"},a.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),a.a.use({tokenizer:_,renderer:n});var A=a.a,W=N("SJMd"),D=N("ulZh"),K=N.n(D),Y=N("m3rI"),oe=N("Oy/b"),le=N("p5ED"),Se=N("ErOA");/*! *****************************************************************************
|
|
Copyright (c) Microsoft Corporation.
|
|
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
purpose with or without fee is hereby granted.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
PERFORMANCE OF THIS SOFTWARE.
|
|
***************************************************************************** */var Ee=function(B,E){return(Ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,U){w.__proto__=U}||function(w,U){for(var z in U)Object.prototype.hasOwnProperty.call(U,z)&&(w[z]=U[z])})(B,E)};function ae(B,E){function w(){this.constructor=B}Ee(B,E),B.prototype=E===null?Object.create(E):(w.prototype=E.prototype,new w)}function Ce(B,E,w,U){return new(w||(w=Promise))(function(z,F){function me(yt){try{ct(U.next(yt))}catch(Ve){F(Ve)}}function Ke(yt){try{ct(U.throw(yt))}catch(Ve){F(Ve)}}function ct(yt){var Ve;yt.done?z(yt.value):(Ve=yt.value,Ve instanceof w?Ve:new w(function(Ct){Ct(Ve)})).then(me,Ke)}ct((U=U.apply(B,E||[])).next())})}function Le(B,E){var w,U,z,F,me={label:0,sent:function(){if(1&z[0])throw z[1];return z[1]},trys:[],ops:[]};return F={next:Ke(0),throw:Ke(1),return:Ke(2)},typeof Symbol=="function"&&(F[Symbol.iterator]=function(){return this}),F;function Ke(ct){return function(yt){return function(Ve){if(w)throw new TypeError("Generator is already executing.");for(;me;)try{if(w=1,U&&(z=2&Ve[0]?U.return:Ve[0]?U.throw||((z=U.return)&&z.call(U),0):U.next)&&!(z=z.call(U,Ve[1])).done)return z;switch(U=0,z&&(Ve=[2&Ve[0],z.value]),Ve[0]){case 0:case 1:z=Ve;break;case 4:return me.label++,{value:Ve[1],done:!1};case 5:me.label++,U=Ve[1],Ve=[0];continue;case 7:Ve=me.ops.pop(),me.trys.pop();continue;default:if(!(z=me.trys,(z=z.length>0&&z[z.length-1])||Ve[0]!==6&&Ve[0]!==2)){me=0;continue}if(Ve[0]===3&&(!z||Ve[1]>z[0]&&Ve[1]<z[3])){me.label=Ve[1];break}if(Ve[0]===6&&me.label<z[1]){me.label=z[1],z=Ve;break}if(z&&me.label<z[2]){me.label=z[2],me.ops.push(Ve);break}z[2]&&me.ops.pop(),me.trys.pop();continue}Ve=E.call(B,me)}catch(Ct){Ve=[6,Ct],U=0}finally{w=z=0}if(5&Ve[0])throw Ve[1];return{value:Ve[0]?Ve[1]:void 0,done:!0}}([ct,yt])}}}function de(){for(var B=0,E=0,w=arguments.length;E<w;E++)B+=arguments[E].length;var U=Array(B),z=0;for(E=0;E<w;E++)for(var F=arguments[E],me=0,Ke=F.length;me<Ke;me++,z++)U[z]=F[me];return U}var $=function(){function B(){}return B.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},B.setAttributes=function(E,w){for(var U=0,z=w;U<z.length;U++){var F=z[U],me=F[0],Ke=F[1];E.setAttribute(me,Ke)}},B.createRect=function(E,w,U){var z=document.createElementNS("http://www.w3.org/2000/svg","rect");return z.setAttribute("width",E.toString()),z.setAttribute("height",w.toString()),U&&B.setAttributes(z,U),z},B.createLine=function(E,w,U,z,F){var me=document.createElementNS("http://www.w3.org/2000/svg","line");return me.setAttribute("x1",E.toString()),me.setAttribute("y1",w.toString()),me.setAttribute("x2",U.toString()),me.setAttribute("y2",z.toString()),F&&B.setAttributes(me,F),me},B.createPolygon=function(E,w){var U=document.createElementNS("http://www.w3.org/2000/svg","polygon");return U.setAttribute("points",E),w&&B.setAttributes(U,w),U},B.createCircle=function(E,w){var U=document.createElementNS("http://www.w3.org/2000/svg","circle");return U.setAttribute("cx",(E/2).toString()),U.setAttribute("cy",(E/2).toString()),U.setAttribute("r",E.toString()),w&&B.setAttributes(U,w),U},B.createEllipse=function(E,w,U){var z=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return z.setAttribute("cx",(E/2).toString()),z.setAttribute("cy",(w/2).toString()),z.setAttribute("rx",(E/2).toString()),z.setAttribute("ry",(w/2).toString()),U&&B.setAttributes(z,U),z},B.createGroup=function(E){var w=document.createElementNS("http://www.w3.org/2000/svg","g");return E&&B.setAttributes(w,E),w},B.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},B.createMarker=function(E,w,U,z,F,me,Ke){var ct=document.createElementNS("http://www.w3.org/2000/svg","marker");return B.setAttributes(ct,[["id",E],["orient",w],["markerWidth",U.toString()],["markerHeight",z.toString()],["refX",F.toString()],["refY",me.toString()]]),ct.appendChild(Ke),ct},B.createText=function(E){var w=document.createElementNS("http://www.w3.org/2000/svg","text");return w.setAttribute("x","0"),w.setAttribute("y","0"),E&&B.setAttributes(w,E),w},B.createTSpan=function(E,w){var U=document.createElementNS("http://www.w3.org/2000/svg","tspan");return U.textContent=E,w&&B.setAttributes(U,w),U},B.createImage=function(E){var w=document.createElementNS("http://www.w3.org/2000/svg","image");return E&&B.setAttributes(w,E),w},B.createPoint=function(E,w){var U=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return U.x=E,U.y=w,U},B.createPath=function(E,w){var U=document.createElementNS("http://www.w3.org/2000/svg","path");return U.setAttribute("d",E),w&&B.setAttributes(U,w),U},B}(),He=function(){function B(){}return B.addKey=function(E){B.key=E},Object.defineProperty(B,"isLicensed",{get:function(){return!!B.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(B.key)},enumerable:!1,configurable:!0}),B}(),rt=function(){function B(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return B.prototype.rasterize=function(E,w,U){var z=this;return new Promise(function(F){var me=U!==void 0?U:document.createElement("canvas");E===null&&(z.markersOnly=!0,z.naturalSize=!1);var Ke=document.createElementNS("http://www.w3.org/2000/svg","svg");Ke.setAttribute("xmlns","http://www.w3.org/2000/svg"),Ke.setAttribute("width",w.width.baseVal.valueAsString),Ke.setAttribute("height",w.height.baseVal.valueAsString),Ke.setAttribute("viewBox","0 0 "+w.viewBox.baseVal.width.toString()+" "+w.viewBox.baseVal.height.toString()),Ke.innerHTML=w.innerHTML,z.naturalSize===!0?(Ke.width.baseVal.value=E.naturalWidth,Ke.height.baseVal.value=E.naturalHeight):z.width!==void 0&&z.height!==void 0&&(Ke.width.baseVal.value=z.width,Ke.height.baseVal.value=z.height),me.width=Ke.width.baseVal.value,me.height=Ke.height.baseVal.value;var ct=Ke.outerHTML,yt=me.getContext("2d");z.markersOnly!==!0&&yt.drawImage(E,0,0,me.width,me.height);var Ve=window.URL,Ct=new Image(me.width,me.height);Ct.setAttribute("crossOrigin","anonymous");var Pt=new Blob([ct],{type:"image/svg+xml"}),tn=Ve.createObjectURL(Pt);Ct.onload=function(){yt.drawImage(Ct,0,0),Ve.revokeObjectURL(tn);var kn=me.toDataURL(z.imageType,z.imageQuality);F(kn)},Ct.src=tn})},B}(),it=function(){},Je=function(){function B(E){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+E+"_"}return Object.defineProperty(B.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#ffffff",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarColor:"#eeeeee",toolbarHeight:40,toolboxColor:"#eeeeee",toolboxAccentColor:"#3080c3",undoButtonVisible:!0,redoButtonVisible:!1,zoomButtonVisible:!1,zoomOutButtonVisible:!1,clearButtonVisible:!1,resultButtonBlockVisible:!0,logoPosition:"left"}},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),B.prototype.addClass=function(E){return this.styleSheet===void 0&&this.addStyleSheet(),E.name=""+this.classNamePrefix+E.localName,this.classes.push(E),this.styleSheet.sheet.insertRule("."+E.name+" {"+E.style+"}",this.styleSheet.sheet.cssRules.length),E},B.prototype.addRule=function(E){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(E),this.styleSheet.sheet.insertRule(E.selector+" {"+E.style+"}",this.styleSheet.sheet.cssRules.length)},B.prototype.addStyleSheet=function(){var E;this.styleSheet=document.createElement("style"),((E=this.styleSheetRoot)!==null&&E!==void 0?E:document.head).appendChild(this.styleSheet),this.addRule(new at("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new at("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
`)),this.addRule(new at("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
from {
|
|
opacity: 1;
|
|
}
|
|
to {
|
|
opacity: 0;
|
|
}
|
|
`)),this.addClass(new ke("fade_in",`
|
|
animation-duration: 0.3s;
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
`)),this.addClass(new ke("fade_out",`
|
|
animation-duration: 0.3s;
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
`))},B.prototype.removeStyleSheet=function(){var E;this.styleSheet&&(((E=this.styleSheetRoot)!==null&&E!==void 0?E:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},B}(),at=function(B,E){this.selector=B,this.style=E},ke=function(B,E){this.localName=B,this.style=E},Ge=function(){function B(E,w,U,z,F){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=E,this.displayMode=w,this.markerItems=U,this.uiStyleSettings=z,this.styles=F,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return B.prototype.show=function(E){var w=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=E,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var U=document.createElement("div");U.className=this.toolbarBlockStyleClass.name,U.style.whiteSpace="nowrap",this.uiContainer.appendChild(U),this.addActionButton(U,'<svg viewBox="0 0 24 24"><path d="M10.07 14.27a.997.997 0 011.33.48l2.3 4.99 1.8-.85-2.31-4.98c-.24-.5-.02-1.1.48-1.33l.28-.08 2.3-.45L8 5.12V15.9l1.82-1.47.25-.16m3.57 7.7a.99.99 0 01-1.33-.47l-2.18-4.74-2.51 2.02c-.17.14-.38.22-.62.22a1 1 0 01-1-1V3a1 1 0 011-1c.24 0 .47.09.64.23l.01-.01 11.49 9.64a1.001 1.001 0 01-.44 1.75l-3.16.62 2.2 4.73c.26.5.02 1.09-.48 1.32l-3.62 1.69z"/></svg>',"select"),this.addActionButton(U,'<svg viewBox="0 0 24 24"><path d="M9 3v1H4v2h1v13a2 2 0 002 2h10a2 2 0 002-2V6h1V4h-5V3H9M7 6h10v13H7V6m2 2v9h2V8H9m4 0v9h2V8h-2z"/></svg>',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(U,'<svg viewBox="0 0 24 24"><path d="M19.36 2.72l1.42 1.42-5.72 5.71c1.07 1.54 1.22 3.39.32 4.59L9.06 8.12c1.2-.9 3.05-.75 4.59.32l5.71-5.72M5.93 17.57c-2.01-2.01-3.24-4.41-3.58-6.65l4.88-2.09 7.44 7.44-2.09 4.88c-2.24-.34-4.64-1.57-6.65-3.58z"/></svg>',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(U,'<svg viewBox="0 0 24 24"><path d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/></svg>',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(U,'<svg viewBox="0 0 24 24"><path d="M18.4 10.6C16.55 9 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 017.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/></svg>',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(U,'<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(U,'<svg viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 009.5 3 6.5 6.5 0 003 9.5 6.5 6.5 0 009.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 5 1.5-1.5-5-5m-6 0C7 14 5 12 5 9.5S7 5 9.5 5 14 7 14 9.5 12 14 9.5 14M7 9h5v1H7V9z"/></svg>',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(U,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(F){var me=document.createElement("div");me.className=""+w.toolbarButtonStyleClass.name,me.setAttribute("data-type-name",F.typeName),me.innerHTML=F.icon,me.addEventListener("click",function(){w.markerToolbarButtonClicked(me,F)}),w.buttons.push(me),w.markerButtons.push(me)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var z=document.createElement("div");z.className=this.toolbarBlockStyleClass.name,z.style.whiteSpace="nowrap",z.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(z),this.addActionButton(z,'<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"render"),this.addActionButton(z,'<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},B.prototype.addButtonClickListener=function(E){this.buttonClickListeners.push(E)},B.prototype.removeButtonClickListener=function(E){this.buttonClickListeners.indexOf(E)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(E),1)},B.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},B.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var E=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var w=0;w<this.markerButtons.length;w++)w<E||w===E&&this.markerButtons.length-1===E?this.markerButtonBlock.appendChild(this.markerButtons[w]):(w===E&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[w]))}},B.prototype.overflowButtonClicked=function(){this.markerButtonOverflowBlock.style.display!=="none"?(this.markerButtonOverflowBlock.className=this.markerButtonOverflowBlock.className.replace(this.styles.fadeInAnimationClassName,""),this.markerButtonOverflowBlock.style.display="none"):(this.markerButtonOverflowBlock.className+=" "+this.styles.fadeInAnimationClassName,this.markerButtonOverflowBlock.style.top=this.uiContainer.offsetTop+this.overflowButton.offsetHeight+"px",this.markerButtonOverflowBlock.style.right=this.uiContainer.offsetWidth-this.overflowButton.offsetLeft-this.overflowButton.offsetWidth+2*this.uiContainer.offsetLeft+"px",this.markerButtonOverflowBlock.style.display="inline-block")},B.prototype.resetButtonStyles=function(){var E=this;this.buttons.forEach(function(w){w.className=w.className.replace(E.uiStyleSettings.toolbarButtonStyleColorsClassName?E.uiStyleSettings.toolbarButtonStyleColorsClassName:E.toolbarButtonStyleColorsClass.name,"").trim(),w.className=w.className.replace(E.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?E.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:E.toolbarActiveButtonStyleColorsClass.name,"").trim(),w.className+=" "+(E.uiStyleSettings.toolbarButtonStyleColorsClassName?E.uiStyleSettings.toolbarButtonStyleColorsClassName:E.toolbarButtonStyleColorsClass.name)})},B.prototype.addActionButton=function(E,w,U){var z=this,F=document.createElement("div");switch(F.className=""+this.toolbarButtonStyleClass.name,F.innerHTML=w,F.setAttribute("data-action",U),F.addEventListener("click",function(){z.actionToolbarButtonClicked(F,U)}),U){case"select":F.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":F.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":F.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":F.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":F.style.fill=this.uiStyleSettings.closeButtonColor}E.appendChild(F),this.buttons.push(F)},B.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new ke("toolbar",`
|
|
width: 100%;
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: space-between;
|
|
height: `+this.uiStyleSettings.toolbarHeight+`px;
|
|
box-sizing: content-box;
|
|
`+(this.displayMode==="inline"?"border-top-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
`+(this.displayMode==="inline"?"border-top-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
overflow: hidden;
|
|
`)),this.toolbarStyleColorsClass=this.styles.addClass(new ke("toolbar_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new ke("toolbar-block",`
|
|
display: inline-block;
|
|
box-sizing: content-box;
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new ke("toolbar-overflow-block",`
|
|
position: absolute;
|
|
top: `+this.uiStyleSettings.toolbarHeight+`px;
|
|
max-width: `+2*this.uiStyleSettings.toolbarHeight+`px;
|
|
z-index: 10;
|
|
box-sizing: content-box;
|
|
`)),this.toolbarOverflowBlockStyleColorsClass=this.styles.addClass(new ke("toolbar-overflow-block_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
`));var E=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new ke("toolbar_button",`
|
|
display: inline-block;
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*E)+`px;
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*E)+`px;
|
|
padding: `+E+`px;
|
|
box-sizing: content-box;
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new ke("toolbar_button_colors",`
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new ke("toolbar_active_button",`
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
`)),this.styles.addRule(new at("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
`)),this.styles.addRule(new at("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
`))},B.prototype.markerToolbarButtonClicked=function(E,w){this.setActiveButton(E),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(U){return U("marker",w)}),this.markerButtonOverflowBlock.style.display="none"},B.prototype.actionToolbarButtonClicked=function(E,w){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(U){return U("action",w)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},B.prototype.setActiveButton=function(E){this.resetButtonStyles(),E.className=E.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),E.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},B.prototype.setActiveMarkerButton=function(E){var w=this.markerButtons.find(function(U){return U.getAttribute("data-type-name")===E});w&&this.setActiveButton(w)},B.prototype.setCurrentMarker=function(E){var w=this;this.currentMarker=E,this.buttons.filter(function(U){return/delete|notes/.test(U.getAttribute("data-action"))}).forEach(function(U){w.currentMarker===void 0?(U.style.fillOpacity="0.4",U.style.pointerEvents="none"):(U.style.fillOpacity="1",U.style.pointerEvents="all")})},B}(),et=function(){function B(E,w,U,z){this.panels=[],this.panelButtons=[],this.markerjsContainer=E,this.displayMode=w,this.uiStyleSettings=U,this.styles=z,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return B.prototype.addStyles=function(){var E;this.toolboxStyleClass=this.styles.addClass(new ke("toolbox",`
|
|
width: 100%;
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
font-family: sans-serif;
|
|
`+(this.displayMode==="popup"?"height:"+2.5*this.uiStyleSettings.toolbarHeight+"px;":"")+`
|
|
box-sizing: content-box;
|
|
`+(this.displayMode==="popup"?"background-color: "+this.uiStyleSettings.canvasBackgroundColor+";":"")+`
|
|
`+(this.displayMode==="inline"?"border-bottom-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
`+(this.displayMode==="inline"?"border-bottom-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
overflow: hidden;
|
|
`)),this.toolboxStyleColorsClass=this.styles.addClass(new ke("toolbox_colors",`
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
`));var w=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new ke("toolbox-button-row",`
|
|
display: flex;
|
|
cursor: default;
|
|
box-sizing: content-box;
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new ke("toolbox-button-row_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new ke("toolbox-panel-row",`
|
|
display: flex;
|
|
`+(this.displayMode==="inline"?"position: absolute;":"")+`
|
|
`+(this.displayMode==="inline"?"bottom: "+this.uiStyleSettings.toolbarHeight+"px;":"")+`
|
|
cursor: default;
|
|
height: `+1.5*this.uiStyleSettings.toolbarHeight+`px;
|
|
`+(this.displayMode==="inline"?"width: 100%;":"")+`
|
|
box-sizing: content-box;
|
|
`)),this.toolboxPanelRowStyleColorsClass=this.styles.addClass(new ke("toolbox-panel-row_colors",`
|
|
background-color: `+((E=this.uiStyleSettings.toolboxBackgroundColor)!==null&&E!==void 0?E:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new ke("toolbox_button",`
|
|
display: inline-block;
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*w)+`px;
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*w)+`px;
|
|
padding: `+w+`px;
|
|
box-sizing: content-box;
|
|
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new ke("toolbox-button_colors",`
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new ke("toolbox-active-button_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
`)),this.styles.addRule(new at("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
`)),this.styles.addRule(new at("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
`))},B.prototype.show=function(E){var w;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=E,this.uiContainer.className=this.toolboxStyleClass.name+" "+((w=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&w!==void 0?w:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},B.prototype.setPanelButtons=function(E){var w,U,z=this;this.panels=E,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((w=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&w!==void 0?w:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((U=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&U!==void 0?U:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(F){var me;F.uiStyleSettings=z.uiStyleSettings;var Ke=document.createElement("div");Ke.className=z.toolboxButtonStyleClass.name+" "+((me=z.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&me!==void 0?me:z.toolboxButtonStyleColorsClass.name),Ke.innerHTML=F.icon,Ke.title=F.title,Ke.addEventListener("click",function(){z.panelButtonClick(F)}),z.panelButtons.push(Ke),z.buttonRow.appendChild(Ke)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},B.prototype.panelButtonClick=function(E){var w=this,U=-1;if(E!==this.activePanel){U=this.panels.indexOf(E),this.panelRow.innerHTML="";var z=E.getUi();z.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(z),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=E}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){w.displayMode==="inline"?w.panelRow.style.display="none":w.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(F,me){var Ke,ct;F.className=w.toolboxButtonStyleClass.name+" "+(me===U?""+((Ke=w.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Ke!==void 0?Ke:w.toolboxActiveButtonStyleColorsClass.name):""+((ct=w.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ct!==void 0?ct:w.toolboxButtonStyleColorsClass.name))})},B}(),ee=function(B,E){this.title=B,this.icon=E},ve=function(B){function E(w,U,z,F){var me=B.call(this,w,F||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return me.colors=[],me.addTransparent=!1,me.colorBoxes=[],me.colors=U,me.currentColor=z,me.setCurrentColor=me.setCurrentColor.bind(me),me.getColorBox=me.getColorBox.bind(me),me}return ae(E,B),E.prototype.getUi=function(){var w=this,U=document.createElement("div");return U.style.overflow="hidden",U.style.whiteSpace="nowrap",this.colors.forEach(function(z){var F=w.getColorBox(z);U.appendChild(F),w.colorBoxes.push(F)}),U},E.prototype.getColorBox=function(w){var U=this,z=this.uiStyleSettings.toolbarHeight/4,F=this.uiStyleSettings.toolbarHeight-z,me=document.createElement("div");me.style.display="inline-block",me.style.boxSizing="content-box",me.style.width=F-2+"px",me.style.height=F-2+"px",me.style.padding="1px",me.style.marginRight="2px",me.style.marginBottom="2px",me.style.borderWidth="2px",me.style.borderStyle="solid",me.style.borderRadius=(F+2)/2+"px",me.style.borderColor=w===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",me.addEventListener("click",function(){U.setCurrentColor(w,me)});var Ke=document.createElement("div");return Ke.style.display="inline-block",Ke.style.width=F-2+"px",Ke.style.height=F-2+"px",Ke.style.backgroundColor=w,Ke.style.borderRadius=F/2+"px",w==="transparent"&&(Ke.style.fill=this.uiStyleSettings.toolboxAccentColor,Ke.innerHTML=`<svg viewBox="0 0 24 24">
|
|
<path d="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z" />
|
|
</svg>`),me.appendChild(Ke),me},E.prototype.setCurrentColor=function(w,U){var z=this;this.currentColor=w,this.colorBoxes.forEach(function(F){F.style.borderColor=F===U?z.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(w)},E}(ee),Te=function(){function B(E,w,U){this._state="new",this._isSelected=!1,this._container=E,this._overlayContainer=w,this.globalSettings=U,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(B.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),B.prototype.ownsTarget=function(E){return!1},Object.defineProperty(B.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),B.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},B.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},B.prototype.pointerDown=function(E,w){},B.prototype.dblClick=function(E,w){},B.prototype.manipulate=function(E){},B.prototype.pointerUp=function(E){this.stateChanged()},B.prototype.dispose=function(){},B.prototype.addMarkerVisualToContainer=function(E){this.container.childNodes.length>0?this.container.insertBefore(E,this.container.childNodes[0]):this.container.appendChild(E)},B.prototype.getState=function(){return{typeName:B.typeName,state:this.state,notes:this.notes}},B.prototype.restoreState=function(E){this._state=E.state,this.notes=E.notes},B.prototype.scale=function(E,w){},B.prototype.colorChanged=function(E){this.onColorChanged&&this.onColorChanged(E),this.stateChanged()},B.prototype.fillColorChanged=function(E){this.onFillColorChanged&&this.onFillColorChanged(E),this.stateChanged()},B.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var E=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),E.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(E)&&this.onStateChanged(this)}},B.typeName="MarkerBase",B}(),Oe=function(){function B(){this.findGripByVisual=this.findGripByVisual.bind(this)}return B.prototype.findGripByVisual=function(E){return this.topLeft.ownsTarget(E)?this.topLeft:this.topCenter.ownsTarget(E)?this.topCenter:this.topRight.ownsTarget(E)?this.topRight:this.centerLeft.ownsTarget(E)?this.centerLeft:this.centerRight.ownsTarget(E)?this.centerRight:this.bottomLeft.ownsTarget(E)?this.bottomLeft:this.bottomCenter.ownsTarget(E)?this.bottomCenter:this.bottomRight.ownsTarget(E)?this.bottomRight:void 0},B}(),Qe=function(){function B(){this.GRIP_SIZE=10,this.visual=$.createGroup(),this.visual.appendChild($.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild($.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return B.prototype.ownsTarget=function(E){return E===this.visual||E===this.visual.childNodes[0]||E===this.visual.childNodes[1]},B}(),tt=function(){function B(){}return B.toITransformMatrix=function(E){return{a:E.a,b:E.b,c:E.c,d:E.d,e:E.e,f:E.f}},B.toSVGMatrix=function(E,w){return E.a=w.a,E.b=w.b,E.c=w.c,E.d=w.d,E.e=w.e,E.f=w.f,E},B}(),st=function(B){function E(w,U,z){var F=B.call(this,w,U,z)||this;return F.left=0,F.top=0,F.width=0,F.height=0,F.defaultSize={x:50,y:20},F.offsetX=0,F.offsetY=0,F.rotationAngle=0,F.CB_DISTANCE=10,F._suppressMarkerCreateEvent=!1,F.container.transform.baseVal.appendItem($.createTransform()),F.setupControlBox(),F}return ae(E,B),Object.defineProperty(E.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"visual",{get:function(){return this._visual},set:function(w){this._visual=w;var U=$.createTransform();this._visual.transform.baseVal.appendItem(U)},enumerable:!1,configurable:!0}),E.prototype.ownsTarget=function(w){return!!B.prototype.ownsTarget.call(this,w)||!!(this.controlGrips.findGripByVisual(w)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(w))},E.prototype.pointerDown=function(w,U){B.prototype.pointerDown.call(this,w,U),this.state==="new"&&(this.left=w.x,this.top=w.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var z=this.unrotatePoint(w);if(this.manipulationStartX=z.x,this.manipulationStartY=z.y,this.offsetX=z.x-this.left,this.offsetY=z.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(U),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(U)){this.activeGrip=this.rotatorGrip;var F=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=F.x-this.width/2,this.top=F.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var me=this.container.transform.baseVal.getItem(0);me.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(me,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},E.prototype.pointerUp=function(w){var U=this.state;B.prototype.pointerUp.call(this,w),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(w),this._state="select",U==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},E.prototype.moveVisual=function(w){this.visual.style.transform="translate("+w.x+"px, "+w.y+"px)"},E.prototype.manipulate=function(w){var U=this.unrotatePoint(w);this.state==="creating"?this.resize(w):this.state==="move"?(this.left=this.manipulationStartLeft+(U.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(U.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(U):this.state==="rotate"&&this.rotate(w)},E.prototype.resize=function(w){var U=this.manipulationStartLeft,z=this.manipulationStartWidth,F=this.manipulationStartTop,me=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:U=this.manipulationStartLeft+w.x-this.manipulationStartX,z=this.manipulationStartWidth+this.manipulationStartLeft-U;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:z=this.manipulationStartWidth+w.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:F=this.manipulationStartTop+w.y-this.manipulationStartY,me=this.manipulationStartHeight+this.manipulationStartTop-F;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:me=this.manipulationStartHeight+w.y-this.manipulationStartY}z>=0?(this.left=U,this.width=z):(this.left=U+z,this.width=-z),me>=0?(this.top=F,this.height=me):(this.top=F+me,this.height=-me),this.setSize()},E.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},E.prototype.rotate=function(w){if(Math.abs(w.x-this.centerX)>.1){var U=Math.sign(w.x-this.centerX);this.rotationAngle=180*Math.atan((w.y-this.centerY)/(w.x-this.centerX))/Math.PI+90*U,this.applyRotation()}},E.prototype.applyRotation=function(){var w=this.container.transform.baseVal.getItem(0);w.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(w,0)},E.prototype.rotatePoint=function(w){if(this.rotationAngle===0)return w;var U=this.container.getCTM(),z=$.createPoint(w.x,w.y);return{x:(z=z.matrixTransform(U)).x,y:z.y}},E.prototype.unrotatePoint=function(w){if(this.rotationAngle===0)return w;var U=this.container.getCTM();U=U.inverse();var z=$.createPoint(w.x,w.y);return{x:(z=z.matrixTransform(U)).x,y:z.y}},E.prototype.select=function(){B.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},E.prototype.deselect=function(){B.prototype.deselect.call(this),this.controlBox.style.display="none"},E.prototype.setupControlBox=function(){this.controlBox=$.createGroup();var w=$.createTransform();w.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(w),this.container.appendChild(this.controlBox),this.controlRect=$.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=$.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new Oe,this.addControlGrips(),this.controlBox.style.display="none"},E.prototype.adjustControlBox=function(){var w=this.controlBox.transform.baseVal.getItem(0);w.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(w,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},E.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},E.prototype.createGrip=function(){var w=new Qe;return w.visual.transform.baseVal.appendItem($.createTransform()),this.controlBox.appendChild(w.visual),w},E.prototype.positionGrips=function(){var w=this.controlGrips.topLeft.GRIP_SIZE,U=-w/2,z=U,F=(this.width+this.CB_DISTANCE)/2-w/2,me=(this.height+this.CB_DISTANCE)/2-w/2,Ke=this.height+this.CB_DISTANCE-w/2,ct=this.width+this.CB_DISTANCE-w/2;this.positionGrip(this.controlGrips.topLeft.visual,U,z),this.positionGrip(this.controlGrips.topCenter.visual,F,z),this.positionGrip(this.controlGrips.topRight.visual,ct,z),this.positionGrip(this.controlGrips.centerLeft.visual,U,me),this.positionGrip(this.controlGrips.centerRight.visual,ct,me),this.positionGrip(this.controlGrips.bottomLeft.visual,U,Ke),this.positionGrip(this.controlGrips.bottomCenter.visual,F,Ke),this.positionGrip(this.controlGrips.bottomRight.visual,ct,Ke),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,F,z-3*this.CB_DISTANCE)},E.prototype.positionGrip=function(w,U,z){var F=w.transform.baseVal.getItem(0);F.setTranslate(U,z),w.transform.baseVal.replaceItem(F,0)},E.prototype.hideControlBox=function(){this.controlBox.style.display="none"},E.prototype.showControlBox=function(){this.controlBox.style.display=""},E.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:tt.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:tt.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},B.prototype.getState.call(this))},E.prototype.restoreState=function(w){B.prototype.restoreState.call(this,w);var U=w;this.left=U.left,this.top=U.top,this.width=U.width,this.height=U.height,this.rotationAngle=U.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(tt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,U.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(tt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,U.containerTransformMatrix))},E.prototype.scale=function(w,U){B.prototype.scale.call(this,w,U);var z=this.rotatePoint({x:this.left,y:this.top}),F=this.unrotatePoint({x:z.x*w,y:z.y*U});this.left=F.x,this.top=F.y,this.width=this.width*w,this.height=this.height*U,this.adjustControlBox()},E}(Te),nt=function(B){function E(w,U,z){var F=B.call(this,w,U,z)||this;return F.fillColor="transparent",F.strokeColor="transparent",F.strokeWidth=0,F.strokeDasharray="",F.opacity=1,F.setStrokeColor=F.setStrokeColor.bind(F),F.setFillColor=F.setFillColor.bind(F),F.setStrokeWidth=F.setStrokeWidth.bind(F),F.setStrokeDasharray=F.setStrokeDasharray.bind(F),F.createVisual=F.createVisual.bind(F),F}return ae(E,B),E.prototype.ownsTarget=function(w){return!(!B.prototype.ownsTarget.call(this,w)&&w!==this.visual)},E.prototype.createVisual=function(){this.visual=$.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},E.prototype.pointerDown=function(w,U){B.prototype.pointerDown.call(this,w,U),this.state==="new"&&(this.createVisual(),this.moveVisual(w),this._state="creating")},E.prototype.manipulate=function(w){B.prototype.manipulate.call(this,w)},E.prototype.resize=function(w){B.prototype.resize.call(this,w),this.setSize()},E.prototype.setSize=function(){B.prototype.setSize.call(this),$.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},E.prototype.pointerUp=function(w){B.prototype.pointerUp.call(this,w),this.setSize()},E.prototype.setStrokeColor=function(w){this.strokeColor=w,this.visual&&$.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(w),this.stateChanged()},E.prototype.setFillColor=function(w){this.fillColor=w,this.visual&&$.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},E.prototype.setStrokeWidth=function(w){this.strokeWidth=w,this.visual&&$.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},E.prototype.setStrokeDasharray=function(w){this.strokeDasharray=w,this.visual&&$.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},E.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},B.prototype.getState.call(this))},E.prototype.restoreState=function(w){var U=w;this.fillColor=U.fillColor,this.strokeColor=U.strokeColor,this.strokeWidth=U.strokeWidth,this.strokeDasharray=U.strokeDasharray,this.opacity=U.opacity,this.createVisual(),B.prototype.restoreState.call(this,w),this.setSize()},E.prototype.scale=function(w,U){B.prototype.scale.call(this,w,U),this.setSize()},E.title="Rectangle marker",E}(st),dt=function(B){function E(w,U,z,F){var me=B.call(this,w,F||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return me.widths=[],me.widthBoxes=[],me.widths=U,me.currentWidth=z,me.setCurrentWidth=me.setCurrentWidth.bind(me),me}return ae(E,B),E.prototype.getUi=function(){var w=this,U=document.createElement("div");return U.style.display="flex",U.style.overflow="hidden",U.style.flexGrow="2",this.widths.forEach(function(z){var F=document.createElement("div");F.style.display="flex",F.style.flexGrow="2",F.style.alignItems="center",F.style.justifyContent="space-between",F.style.padding="5px",F.style.borderWidth="2px",F.style.borderStyle="solid",F.style.borderColor=z===w.currentWidth?w.uiStyleSettings.toolboxAccentColor:"transparent",F.addEventListener("click",function(){w.setCurrentWidth(z,F)}),U.appendChild(F);var me=document.createElement("div");me.innerText=z.toString(),me.style.marginRight="5px",F.appendChild(me);var Ke=document.createElement("div");Ke.style.minHeight="20px",Ke.style.flexGrow="2",Ke.style.display="flex",Ke.style.alignItems="center";var ct=document.createElement("hr");ct.style.minWidth="20px",ct.style.border="0px",ct.style.borderTop=z+"px solid "+w.uiStyleSettings.toolboxColor,ct.style.flexGrow="2",Ke.appendChild(ct),F.appendChild(Ke),w.widthBoxes.push(F)}),U},E.prototype.setCurrentWidth=function(w,U){var z=this;this.currentWidth=w,this.widthBoxes.forEach(function(F){F.style.borderColor=F===U?z.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},E}(ee),mt=function(B){function E(w,U,z,F){var me=B.call(this,w,F||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return me.styles=[],me.styleBoxes=[],me.styles=U,me.currentStyle=z,me.setCurrentStyle=me.setCurrentStyle.bind(me),me}return ae(E,B),E.prototype.getUi=function(){var w=this,U=document.createElement("div");return U.style.display="flex",U.style.overflow="hidden",U.style.flexGrow="2",this.styles.forEach(function(z){var F=document.createElement("div");F.style.display="flex",F.style.alignItems="center",F.style.justifyContent="space-between",F.style.padding="5px",F.style.borderWidth="2px",F.style.borderStyle="solid",F.style.overflow="hidden",F.style.maxWidth=100/w.styles.length-5+"%",F.style.borderColor=z===w.currentStyle?w.uiStyleSettings.toolboxAccentColor:"transparent",F.addEventListener("click",function(){w.setCurrentStyle(z,F)}),U.appendChild(F);var me=document.createElement("div");me.style.minHeight="20px",me.style.flexGrow="2",me.style.overflow="hidden";var Ke=`<svg width="100" height="20">
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+w.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(z!==""?'stroke-dasharray="'+z+'"':"")+` />
|
|
</svg>`;me.innerHTML=Ke,F.appendChild(me),w.styleBoxes.push(F)}),U},E.prototype.setCurrentStyle=function(w,U){var z=this;this.currentStyle=w,this.styleBoxes.forEach(function(F){F.style.borderColor=F===U?z.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},E}(ee),ye=function(B){function E(w,U,z){var F=B.call(this,w,U,z)||this;return F.strokeColor=z.defaultColor,F.strokeWidth=z.defaultStrokeWidth,F.strokeDasharray=z.defaultStrokeDasharray,F.strokePanel=new ve("Line color",z.defaultColorSet,z.defaultColor),F.strokePanel.onColorChanged=F.setStrokeColor,F.strokeWidthPanel=new dt("Line width",z.defaultStrokeWidths,z.defaultStrokeWidth),F.strokeWidthPanel.onWidthChanged=F.setStrokeWidth,F.strokeStylePanel=new mt("Line style",z.defaultStrokeDasharrays,z.defaultStrokeDasharray),F.strokeStylePanel.onStyleChanged=F.setStrokeDasharray,F}return ae(E,B),Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var w=B.prototype.getState.call(this);return w.typeName=E.typeName,w},E.typeName="FrameMarker",E.title="Frame marker",E.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',E}(nt),Ae=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1},Ne=function(B){function E(w,U,z){var F=B.call(this,w,U,z)||this;return F.x1=0,F.y1=0,F.x2=0,F.y2=0,F.defaultLength=50,F.manipulationStartX=0,F.manipulationStartY=0,F.manipulationStartX1=0,F.manipulationStartY1=0,F.manipulationStartX2=0,F.manipulationStartY2=0,F.setupControlBox(),F}return ae(E,B),E.prototype.ownsTarget=function(w){return!!B.prototype.ownsTarget.call(this,w)||!(!this.grip1.ownsTarget(w)&&!this.grip2.ownsTarget(w))},E.prototype.pointerDown=function(w,U){B.prototype.pointerDown.call(this,w,U),this.manipulationStartX=w.x,this.manipulationStartY=w.y,this.state==="new"&&(this.x1=w.x,this.y1=w.y,this.x2=w.x,this.y2=w.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(U)?this.activeGrip=this.grip1:this.grip2.ownsTarget(U)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},E.prototype.pointerUp=function(w){var U=this.state;B.prototype.pointerUp.call(this,w),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(w),this._state="select",U==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},E.prototype.adjustVisual=function(){},E.prototype.manipulate=function(w){this.state==="creating"?this.resize(w):this.state==="move"?(this.x1=this.manipulationStartX1+w.x-this.manipulationStartX,this.y1=this.manipulationStartY1+w.y-this.manipulationStartY,this.x2=this.manipulationStartX2+w.x-this.manipulationStartX,this.y2=this.manipulationStartY2+w.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(w)},E.prototype.resize=function(w){switch(this.activeGrip){case this.grip1:this.x1=w.x,this.y1=w.y;break;case this.grip2:case void 0:this.x2=w.x,this.y2=w.y}this.adjustVisual(),this.adjustControlBox()},E.prototype.select=function(){B.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},E.prototype.deselect=function(){B.prototype.deselect.call(this),this.controlBox.style.display="none"},E.prototype.setupControlBox=function(){this.controlBox=$.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},E.prototype.adjustControlBox=function(){this.positionGrips()},E.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},E.prototype.createGrip=function(){var w=new Qe;return w.visual.transform.baseVal.appendItem($.createTransform()),this.controlBox.appendChild(w.visual),w},E.prototype.positionGrips=function(){var w=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-w/2,this.y1-w/2),this.positionGrip(this.grip2.visual,this.x2-w/2,this.y2-w/2)},E.prototype.positionGrip=function(w,U,z){var F=w.transform.baseVal.getItem(0);F.setTranslate(U,z),w.transform.baseVal.replaceItem(F,0)},E.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},B.prototype.getState.call(this))},E.prototype.restoreState=function(w){B.prototype.restoreState.call(this,w);var U=w;this.x1=U.x1,this.y1=U.y1,this.x2=U.x2,this.y2=U.y2},E.prototype.scale=function(w,U){B.prototype.scale.call(this,w,U),this.x1=this.x1*w,this.y1=this.y1*U,this.x2=this.x2*w,this.y2=this.y2*U,this.adjustVisual(),this.adjustControlBox()},E}(Te),Fe=function(B){function E(w,U,z){var F=B.call(this,w,U,z)||this;return F.strokeColor="transparent",F.strokeWidth=0,F.strokeDasharray="",F.setStrokeColor=F.setStrokeColor.bind(F),F.setStrokeWidth=F.setStrokeWidth.bind(F),F.setStrokeDasharray=F.setStrokeDasharray.bind(F),F.strokeColor=z.defaultColor,F.strokeWidth=z.defaultStrokeWidth,F.strokeDasharray=z.defaultStrokeDasharray,F.strokePanel=new ve("Line color",z.defaultColorSet,z.defaultColor),F.strokePanel.onColorChanged=F.setStrokeColor,F.strokeWidthPanel=new dt("Line width",z.defaultStrokeWidths,z.defaultStrokeWidth),F.strokeWidthPanel.onWidthChanged=F.setStrokeWidth,F.strokeStylePanel=new mt("Line style",z.defaultStrokeDasharrays,z.defaultStrokeDasharray),F.strokeStylePanel.onStyleChanged=F.setStrokeDasharray,F}return ae(E,B),E.prototype.ownsTarget=function(w){return!(!B.prototype.ownsTarget.call(this,w)&&w!==this.visual&&w!==this.selectorLine&&w!==this.visibleLine)},E.prototype.createVisual=function(){this.visual=$.createGroup(),this.selectorLine=$.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=$.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},E.prototype.pointerDown=function(w,U){B.prototype.pointerDown.call(this,w,U),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},E.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),$.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),$.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),$.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},E.prototype.setStrokeColor=function(w){this.strokeColor=w,this.adjustVisual(),this.colorChanged(w)},E.prototype.setStrokeWidth=function(w){this.strokeWidth=w,this.adjustVisual()},E.prototype.setStrokeDasharray=function(w){this.strokeDasharray=w,this.adjustVisual(),this.stateChanged()},Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var w=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},B.prototype.getState.call(this));return w.typeName=E.typeName,w},E.prototype.restoreState=function(w){B.prototype.restoreState.call(this,w);var U=w;this.strokeColor=U.strokeColor,this.strokeWidth=U.strokeWidth,this.strokeDasharray=U.strokeDasharray,this.createVisual(),this.adjustVisual()},E.typeName="LineMarker",E.title="Line marker",E.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',E}(Ne),Re=function(B){function E(w,U,z,F){var me=B.call(this,w,F||'<svg viewBox="0 0 24 24"><path d="M17 8h3v12h1v1h-4v-1h1v-3h-4l-1.5 3H14v1h-4v-1h1l6-12m1 1l-3.5 7H18V9M5 3h5c1.11 0 2 .89 2 2v11H9v-5H6v5H3V5c0-1.11.89-2 2-2m1 2v4h3V5H6z"/></svg>')||this;return me.fonts=[],me.fontBoxes=[],me.fonts=U,me.currentFont=z,me.setCurrentFont=me.setCurrentFont.bind(me),me}return ae(E,B),E.prototype.getUi=function(){var w=this,U=document.createElement("div");return U.style.overflow="hidden",U.style.flexGrow="2",this.fonts.forEach(function(z){var F=document.createElement("div");F.style.display="inline-block",F.style.alignItems="center",F.style.justifyContent="space-between",F.style.padding="5px",F.style.borderWidth="2px",F.style.borderStyle="solid",F.style.overflow="hidden",F.style.maxWidth=100/w.fonts.length-5+"%",F.style.borderColor=z===w.currentFont?w.uiStyleSettings.toolboxAccentColor:"transparent",F.addEventListener("click",function(){w.setCurrentFont(z,F)}),U.appendChild(F);var me=document.createElement("div");me.style.display="flex",me.style.minHeight="20px",me.style.flexGrow="2",me.style.fontFamily=z,me.style.overflow="hidden";var Ke=document.createElement("div");Ke.style.whiteSpace="nowrap",Ke.style.overflow="hidden",Ke.style.textOverflow="ellipsis",Ke.innerHTML="The quick brown fox jumps over the lazy dog",me.appendChild(Ke),F.appendChild(me),w.fontBoxes.push(F)}),U},E.prototype.setCurrentFont=function(w,U){var z=this;this.currentFont=w,this.fontBoxes.forEach(function(F){F.style.borderColor=F===U?z.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},E}(ee),De=function(B){function E(w,U,z){var F=B.call(this,w,U,z)||this;return F.color="transparent",F.padding=5,F.DEFAULT_TEXT="your text here",F.text=F.DEFAULT_TEXT,F.isMoved=!1,F.color=z.defaultColor,F.fontFamily=z.defaultFontFamily,F.defaultSize={x:100,y:30},F.setColor=F.setColor.bind(F),F.setFont=F.setFont.bind(F),F.renderText=F.renderText.bind(F),F.sizeText=F.sizeText.bind(F),F.textEditDivClicked=F.textEditDivClicked.bind(F),F.showTextEditor=F.showTextEditor.bind(F),F.setSize=F.setSize.bind(F),F.positionTextEditor=F.positionTextEditor.bind(F),F.colorPanel=new ve("Color",z.defaultColorSet,z.defaultColor),F.colorPanel.onColorChanged=F.setColor,F.fontFamilyPanel=new Re("Font",z.defaultFontFamilies,z.defaultFontFamily),F.fontFamilyPanel.onFontChanged=F.setFont,F}return ae(E,B),E.prototype.ownsTarget=function(w){if(B.prototype.ownsTarget.call(this,w)||w===this.visual||w===this.textElement||w===this.bgRectangle)return!0;var U=!1;return this.textElement.childNodes.forEach(function(z){z===w&&(U=!0)}),U},E.prototype.createVisual=function(){this.visual=$.createGroup(),this.bgRectangle=$.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=$.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem($.createTransform()),this.textElement.transform.baseVal.appendItem($.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},E.prototype.pointerDown=function(w,U){B.prototype.pointerDown.call(this,w,U),this.isMoved=!1,this.pointerDownPoint=w,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(w),this._state="creating")},E.prototype.renderText=function(){var w=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(U){w.textElement.appendChild($.createTSpan(U.trim()===""?" ":U.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},E.prototype.getTextScale=function(){var w=this.textElement.getBBox(),U=1;if(w.width>0&&w.height>0){var z=(1*this.width-this.width*this.padding*2/100)/w.width,F=(1*this.height-this.height*this.padding*2/100)/w.height;U=Math.min(z,F)}return U},E.prototype.getTextPosition=function(w){var U=this.textElement.getBBox(),z=0,F=0;return U.width>0&&U.height>0&&(z=(this.width-U.width*w)/2,F=this.height/2-U.height*w/2),{x:z,y:F}},E.prototype.sizeText=function(){var w=this.textElement.getBBox(),U=this.getTextScale(),z=this.getTextPosition(U);z.y-=w.y*U,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+z.x+"px, "+z.y+"px) scale("+U+", "+U+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(z.x,z.y),this.textElement.transform.baseVal.getItem(1).setScale(U,U))},E.prototype.manipulate=function(w){B.prototype.manipulate.call(this,w),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(w.x-this.pointerDownPoint.x)>5||Math.abs(w.y-this.pointerDownPoint.y)>5)},E.prototype.resize=function(w){B.prototype.resize.call(this,w),this.isMoved=!0,this.setSize(),this.sizeText()},E.prototype.setSize=function(){B.prototype.setSize.call(this),this.visual&&this.bgRectangle&&($.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),$.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},E.prototype.pointerUp=function(w){var U=this.state;U==="creating"&&(this._suppressMarkerCreateEvent=!0),B.prototype.pointerUp.call(this,w),this.setSize(),(U==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},E.prototype.showTextEditor=function(){var w=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(U){U.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var U=Number.parseFloat(w.textEditor.style.fontSize);w.textEditor.clientWidth>=Number.parseInt(w.textEditor.style.maxWidth)&&U>.9;)U-=.1,w.textEditor.style.fontSize=Math.max(U,.9)+"em"}),this.textEditor.addEventListener("keyup",function(U){U.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(U){if(U.clipboardData){var z=U.clipboardData.getData("text"),F=window.getSelection();if(!F.rangeCount)return!1;F.deleteFromDocument(),F.getRangeAt(0).insertNode(document.createTextNode(z)),U.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){w.textEditDivClicked(w.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},E.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var w=this.getTextScale(),U=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),z=this.textElement.getBBox(),F={x:z.width*w,y:z.height*w};U.x-=F.x/2,U.y-=F.y/2,this.textEditor.style.top=U.y+"px",this.textEditor.style.left=U.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-U.x+"px",this.textEditor.style.fontSize=Math.max(16*w,12)+"px",this.textElement.style.display="none"}},E.prototype.textEditDivClicked=function(w){this.text=w.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},E.prototype.select=function(){B.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},E.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),B.prototype.deselect.call(this)},E.prototype.dblClick=function(w,U){B.prototype.dblClick.call(this,w,U),this.showTextEditor()},E.prototype.setColor=function(w){this.textElement&&$.setAttributes(this.textElement,[["fill",w]]),this.color=w,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(w)},E.prototype.setFont=function(w){this.textElement&&$.setAttributes(this.textElement,[["font-family",w]]),this.fontFamily=w,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},E.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},E.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var w=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},B.prototype.getState.call(this));return w.typeName=E.typeName,w},E.prototype.restoreState=function(w){var U=w;this.color=U.color,this.fontFamily=U.fontFamily,this.padding=U.padding,this.text=U.text,this.createVisual(),B.prototype.restoreState.call(this,w),this.setSize()},E.prototype.scale=function(w,U){B.prototype.scale.call(this,w,U),this.setSize(),this.sizeText(),this.positionTextEditor()},E.typeName="TextMarker",E.title="Text marker",E.icon='<svg viewBox="0 0 24 24"><path d="M9.6 14L12 7.7l2.4 6.3M11 5L5.5 19h2.2l1.1-3H15l1.1 3h2.2L13 5h-2z"/></svg>',E}(st),he=function(B){function E(w,U,z){var F=B.call(this,w,U,z)||this;return F.color="transparent",F.lineWidth=3,F.drawing=!1,F.pixelRatio=1,F.color=z.defaultColor,F.lineWidth=z.defaultStrokeWidth,F.pixelRatio=z.freehandPixelRatio,F.setColor=F.setColor.bind(F),F.addCanvas=F.addCanvas.bind(F),F.finishCreation=F.finishCreation.bind(F),F.setLineWidth=F.setLineWidth.bind(F),F.colorPanel=new ve("Color",z.defaultColorSet,z.defaultColor),F.colorPanel.onColorChanged=F.setColor,F.lineWidthPanel=new dt("Line width",z.defaultStrokeWidths,z.defaultStrokeWidth),F.lineWidthPanel.onWidthChanged=F.setLineWidth,F}return ae(E,B),E.prototype.ownsTarget=function(w){return!(!B.prototype.ownsTarget.call(this,w)&&w!==this.visual&&w!==this.drawingImage)},E.prototype.createVisual=function(){this.visual=$.createGroup(),this.drawingImage=$.createImage(),this.visual.appendChild(this.drawingImage);var w=$.createTransform();this.visual.transform.baseVal.appendItem(w),this.addMarkerVisualToContainer(this.visual)},E.prototype.pointerDown=function(w,U){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(w.x,w.y),this.drawing=!0):B.prototype.pointerDown.call(this,w,U)},E.prototype.manipulate=function(w){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(w.x,w.y),this.canvasContext.stroke()):B.prototype.manipulate.call(this,w)},E.prototype.resize=function(w){B.prototype.resize.call(this,w),$.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),$.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},E.prototype.pointerUp=function(w){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):B.prototype.pointerUp.call(this,w)},E.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},E.prototype.select=function(){this.state==="creating"&&this.finishCreation(),B.prototype.select.call(this)},E.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),B.prototype.deselect.call(this)},E.prototype.finishCreation=function(){for(var w=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),U=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],z=U[0],F=U[1],me=U[2],Ke=U[3],ct=!1,yt=0;yt<this.canvasElement.height;yt++)for(var Ve=0;Ve<this.canvasElement.width;Ve++)w.data[yt*this.canvasElement.width*4+4*Ve+3]>0&&(ct=!0,yt<F&&(F=yt),Ve<z&&(z=Ve),yt>Ke&&(Ke=yt),Ve>me&&(me=Ve));if(ct){this.left=z/this.pixelRatio,this.top=F/this.pixelRatio,this.width=(me-z)/this.pixelRatio,this.height=(Ke-F)/this.pixelRatio;var Ct=document.createElement("canvas");Ct.width=me-z,Ct.height=Ke-F,Ct.getContext("2d").putImageData(this.canvasContext.getImageData(z,F,me-z,Ke-F),0,0),this.drawingImgUrl=Ct.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},E.prototype.setDrawingImage=function(){$.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),$.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},E.prototype.setColor=function(w){this.color=w,this.colorChanged(w)},E.prototype.setLineWidth=function(w){this.lineWidth=w},Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var w=Object.assign({drawingImgUrl:this.drawingImgUrl},B.prototype.getState.call(this));return w.typeName=E.typeName,w},E.prototype.restoreState=function(w){this.createVisual(),B.prototype.restoreState.call(this,w),this.drawingImgUrl=w.drawingImgUrl,this.setDrawingImage()},E.prototype.scale=function(w,U){B.prototype.scale.call(this,w,U),this.setDrawingImage()},E.typeName="FreehandMarker",E.title="Freehand marker",E.icon='<svg viewBox="0 0 24 24"><path d="M9.75 20.85c1.78-.7 1.39-2.63.49-3.85-.89-1.25-2.12-2.11-3.36-2.94A9.817 9.817 0 014.54 12c-.28-.33-.85-.94-.27-1.06.59-.12 1.61.46 2.13.68.91.38 1.81.82 2.65 1.34l1.01-1.7C8.5 10.23 6.5 9.32 4.64 9.05c-1.06-.16-2.18.06-2.54 1.21-.32.99.19 1.99.77 2.77 1.37 1.83 3.5 2.71 5.09 4.29.34.33.75.72.95 1.18.21.44.16.47-.31.47-1.24 0-2.79-.97-3.8-1.61l-1.01 1.7c1.53.94 4.09 2.41 5.96 1.79m11.09-15.6c.22-.22.22-.58 0-.79l-1.3-1.3a.562.562 0 00-.78 0l-1.02 1.02 2.08 2.08M11 10.92V13h2.08l6.15-6.15-2.08-2.08L11 10.92z"/></svg>',E}(st),se=function(B){function E(w,U,z){var F=B.call(this,w,z||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return F.typeBoxes=[],F.currentType=U,F.setCurrentType=F.setCurrentType.bind(F),F}return ae(E,B),E.prototype.getUi=function(){var w=this,U=document.createElement("div");U.style.display="flex",U.style.overflow="hidden",U.style.flexGrow="2";for(var z=function(Ke){var ct="both";switch(Ke){case 0:ct="both";break;case 1:ct="start";break;case 2:ct="end";break;case 3:ct="none"}var yt=document.createElement("div");if(yt.style.display="flex",yt.style.flexGrow="2",yt.style.alignItems="center",yt.style.justifyContent="space-between",yt.style.padding="5px",yt.style.borderWidth="2px",yt.style.borderStyle="solid",yt.style.borderColor=ct===F.currentType?F.uiStyleSettings.toolboxAccentColor:"transparent",yt.addEventListener("click",function(){w.setCurrentType(ct,yt)}),U.appendChild(yt),ct==="both"||ct==="start"){var Ve=document.createElement("div");Ve.style.display="flex",Ve.style.alignItems="center",Ve.style.minHeight="20px",Ve.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
|
|
<polygon points="0,5 10,0 10,10" fill="`+(F.uiStyleSettings!==void 0?F.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
</svg>`,Ve.style.marginLeft="5px",yt.appendChild(Ve)}var Ct=document.createElement("div");Ct.style.display="flex",Ct.style.alignItems="center",Ct.style.minHeight="20px",Ct.style.flexGrow="2";var Pt=document.createElement("hr");if(Pt.style.minWidth="20px",Pt.style.border="0px",Pt.style.borderTop="3px solid "+(F.uiStyleSettings!==void 0?F.uiStyleSettings.toolboxColor:"#eeeeee"),Pt.style.flexGrow="2",Ct.appendChild(Pt),yt.appendChild(Ct),ct==="both"||ct==="end"){var tn=document.createElement("div");tn.style.display="flex",tn.style.alignItems="center",tn.style.minHeight="20px",tn.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
|
|
<polygon points="0,0 10,5 0,10" fill="`+(F.uiStyleSettings!==void 0?F.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
</svg>`,tn.style.marginRight="5px",yt.appendChild(tn)}F.typeBoxes.push(yt)},F=this,me=0;me<4;me++)z(me);return U},E.prototype.setCurrentType=function(w,U){var z=this;this.currentType=w,this.typeBoxes.forEach(function(F){F.style.borderColor=F===U?z.uiStyleSettings!==void 0?z.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},E}(ee),re=function(B){function E(w,U,z){var F=B.call(this,w,U,z)||this;return F.arrowType="end",F.arrowBaseHeight=10,F.arrowBaseWidth=10,F.getArrowPoints=F.getArrowPoints.bind(F),F.setArrowType=F.setArrowType.bind(F),F.arrowTypePanel=new se("Arrow type","end"),F.arrowTypePanel.onArrowTypeChanged=F.setArrowType,F}return ae(E,B),E.prototype.ownsTarget=function(w){return!(!B.prototype.ownsTarget.call(this,w)&&w!==this.arrow1&&w!==this.arrow2)},E.prototype.getArrowPoints=function(w,U){var z=this.arrowBaseWidth+2*this.strokeWidth,F=this.arrowBaseHeight+2*this.strokeWidth;return w-z/2+","+(U+F/2)+" "+w+","+(U-F/2)+" "+(w+z/2)+","+(U+F/2)},E.prototype.createTips=function(){this.arrow1=$.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem($.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=$.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem($.createTransform()),this.visual.appendChild(this.arrow2)},E.prototype.pointerDown=function(w,U){B.prototype.pointerDown.call(this,w,U),this.state==="creating"&&this.createTips()},E.prototype.adjustVisual=function(){if(B.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2&&(this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",$.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),$.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]),Math.abs(this.x1-this.x2)>.1)){var w=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),U=this.arrow1.transform.baseVal.getItem(0);U.setRotate(w,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(U,0);var z=this.arrow2.transform.baseVal.getItem(0);z.setRotate(w+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(z,0)}},E.prototype.setArrowType=function(w){this.arrowType=w,this.adjustVisual(),this.stateChanged()},Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var w=Object.assign({arrowType:this.arrowType},B.prototype.getState.call(this));return w.typeName=E.typeName,w},E.prototype.restoreState=function(w){B.prototype.restoreState.call(this,w);var U=w;this.arrowType=U.arrowType,this.createTips(),this.adjustVisual()},E.typeName="ArrowMarker",E.title="Arrow marker",E.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',E}(Fe),G=function(B){function E(w,U,z){var F=B.call(this,w,U,z)||this;return F.fillColor=z.defaultFillColor,F.strokeWidth=0,F.fillPanel=new ve("Color",z.defaultColorSet,z.defaultFillColor),F.fillPanel.onColorChanged=F.setFillColor,F}return ae(E,B),Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var w=B.prototype.getState.call(this);return w.typeName=E.typeName,w},E.typeName="CoverMarker",E.title="Cover marker",E.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',E}(nt),X=function(B){function E(w,U,z,F){var me=B.call(this,w,F||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return me.opacities=[],me.opacityBoxes=[],me.opacities=U,me.currentOpacity=z,me.setCurrentOpacity=me.setCurrentOpacity.bind(me),me}return ae(E,B),E.prototype.getUi=function(){var w=this,U=document.createElement("div");return U.style.display="flex",U.style.overflow="hidden",U.style.flexGrow="2",U.style.justifyContent="space-between",this.opacities.forEach(function(z){var F=document.createElement("div");F.style.display="flex",F.style.alignItems="center",F.style.justifyContent="center",F.style.padding="5px",F.style.borderWidth="2px",F.style.borderStyle="solid",F.style.borderColor=z===w.currentOpacity?w.uiStyleSettings.toolboxAccentColor:"transparent",F.addEventListener("click",function(){w.setCurrentOpacity(z,F)}),U.appendChild(F);var me=document.createElement("div");me.innerText=100*z+"%",F.appendChild(me),w.opacityBoxes.push(F)}),U},E.prototype.setCurrentOpacity=function(w,U){var z=this;this.currentOpacity=w,this.opacityBoxes.forEach(function(F){F.style.borderColor=F===U?z.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},E}(ee),Z=function(B){function E(w,U,z){var F=B.call(this,w,U,z)||this;return F.setOpacity=F.setOpacity.bind(F),F.fillColor=z.defaultHighlightColor,F.strokeWidth=0,F.opacity=z.defaultHighlightOpacity,F.fillPanel=new ve("Color",z.defaultColorSet,F.fillColor),F.fillPanel.onColorChanged=F.setFillColor,F.opacityPanel=new X("Opacity",z.defaultOpacitySteps,F.opacity),F.opacityPanel.onOpacityChanged=F.setOpacity,F}return ae(E,B),E.prototype.setOpacity=function(w){this.opacity=w,this.visual&&$.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var w=B.prototype.getState.call(this);return w.typeName=E.typeName,w},E.typeName="HighlightMarker",E.title="Highlight marker",E.icon='<svg viewBox="0 0 24 24"><path d="M18.5 1.15c-.53 0-1.04.19-1.43.58l-5.81 5.82 5.65 5.65 5.82-5.81c.77-.78.77-2.04 0-2.83l-2.84-2.83c-.39-.39-.89-.58-1.39-.58M10.3 8.5l-5.96 5.96c-.78.78-.78 2.04.02 2.85C3.14 18.54 1.9 19.77.67 21h5.66l.86-.86c.78.76 2.03.75 2.81-.02l5.95-5.96"/></svg>',E}(G),te='<svg viewBox="0 0 24 24"><path d="M19 11.5s-2 2.17-2 3.5a2 2 0 002 2 2 2 0 002-2c0-1.33-2-3.5-2-3.5M5.21 10L10 5.21 14.79 10m1.77-1.06L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.56-.59 1.53 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.59.59-1.56 0-2.12z"/></svg>',ge=function(B){function E(w,U,z){var F=B.call(this,w,U,z)||this;return F.bgColor="transparent",F.tipPosition={x:0,y:0},F.tipBase1Position={x:0,y:0},F.tipBase2Position={x:0,y:0},F.tipMoving=!1,F.color=z.defaultStrokeColor,F.bgColor=z.defaultFillColor,F.fontFamily=z.defaultFontFamily,F.defaultSize={x:100,y:30},F.setBgColor=F.setBgColor.bind(F),F.getTipPoints=F.getTipPoints.bind(F),F.positionTip=F.positionTip.bind(F),F.setTipPoints=F.setTipPoints.bind(F),F.colorPanel=new ve("Text color",z.defaultColorSet,F.color,'<svg viewBox="0 0 24 24"><path d="M9.62 12L12 5.67 14.37 12M11 3L5.5 17h2.25l1.12-3h6.25l1.13 3h2.25L13 3h-2z"/></svg>'),F.colorPanel.onColorChanged=F.setColor,F.bgColorPanel=new ve("Fill color",z.defaultColorSet,F.bgColor,te),F.bgColorPanel.onColorChanged=F.setBgColor,F.fontFamilyPanel=new Re("Font",z.defaultFontFamilies,z.defaultFontFamily),F.fontFamilyPanel.onFontChanged=F.setFont,F.tipGrip=new Qe,F.tipGrip.visual.transform.baseVal.appendItem($.createTransform()),F.controlBox.appendChild(F.tipGrip.visual),F}return ae(E,B),E.prototype.ownsTarget=function(w){return B.prototype.ownsTarget.call(this,w)||this.tipGrip.ownsTarget(w)||this.tip===w},E.prototype.createTip=function(){$.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=$.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},E.prototype.pointerDown=function(w,U){this.state==="new"&&B.prototype.pointerDown.call(this,w,U),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(U)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):B.prototype.pointerDown.call(this,w,U)},E.prototype.pointerUp=function(w){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,B.prototype.pointerUp.call(this,w);else{var U=this.state==="creating";B.prototype.pointerUp.call(this,w),this.setTipPoints(U),this.positionTip()}},E.prototype.manipulate=function(w){if(this.tipMoving){var U=this.unrotatePoint(w);this.tipPosition={x:U.x-this.manipulationStartLeft,y:U.y-this.manipulationStartTop},this.positionTip()}else B.prototype.manipulate.call(this,w)},E.prototype.setBgColor=function(w){this.bgRectangle&&this.tip&&($.setAttributes(this.bgRectangle,[["fill",w]]),$.setAttributes(this.tip,[["fill",w]])),this.bgColor=w,this.fillColorChanged(w)},E.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},E.prototype.setTipPoints=function(w){w===void 0&&(w=!1);var U=Math.min(this.height/2,15),z=this.height/5;w&&(this.tipPosition={x:U+z/2,y:this.height+20});var F=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?F<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(z=this.width/5,U=Math.min(this.width/2,15),this.tipBase1Position={x:U,y:0},this.tipBase2Position={x:U+z,y:0}):(this.tipBase1Position={x:0,y:U},this.tipBase2Position={x:0,y:U+z}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?F<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(z=this.width/5,U=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-U-z,y:0},this.tipBase2Position={x:this.width-U,y:0}):(this.tipBase1Position={x:this.width,y:U},this.tipBase2Position={x:this.width,y:U+z}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?F<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(z=this.width/5,U=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-U-z,y:this.height},this.tipBase2Position={x:this.width-U,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-U-z},this.tipBase2Position={x:this.width,y:this.height-U}):F<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(z=this.width/5,U=Math.min(this.width/2,15),this.tipBase1Position={x:U,y:this.height},this.tipBase2Position={x:U+z,y:this.height}):(this.tipBase1Position={x:0,y:this.height-U},this.tipBase2Position={x:0,y:this.height-U-z})},E.prototype.resize=function(w){B.prototype.resize.call(this,w),this.positionTip()},E.prototype.positionTip=function(){$.setAttributes(this.tip,[["points",this.getTipPoints()]]);var w=this.tipGrip.visual.transform.baseVal.getItem(0);w.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(w,0)},Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),E.prototype.select=function(){this.positionTip(),B.prototype.select.call(this)},E.prototype.getState=function(){var w=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},B.prototype.getState.call(this));return w.typeName=E.typeName,w},E.prototype.restoreState=function(w){var U=w;this.bgColor=U.bgColor,this.tipPosition=U.tipPosition,B.prototype.restoreState.call(this,w),this.createTip(),this.setTipPoints()},E.prototype.scale=function(w,U){B.prototype.scale.call(this,w,U),this.tipPosition={x:this.tipPosition.x*w,y:this.tipPosition.y*U},this.positionTip()},E.typeName="CalloutMarker",E.title="Callout marker",E.icon='<svg viewBox="0 0 24 24"><path d="M4 2h16a2 2 0 012 2v12a2 2 0 01-2 2h-4l-4 4-4-4H4a2 2 0 01-2-2V4a2 2 0 012-2m0 2v12h4.83L12 19.17 15.17 16H20V4H4m2 3h12v2H6V7m0 4h10v2H6v-2z"/></svg>',E}(De),we=function(B){function E(w,U,z){var F=B.call(this,w,U,z)||this;return F.fillColor="transparent",F.strokeColor="transparent",F.strokeWidth=0,F.strokeDasharray="",F.opacity=1,F.strokeColor=z.defaultColor,F.strokeWidth=z.defaultStrokeWidth,F.strokeDasharray=z.defaultStrokeDasharray,F.fillColor=z.defaultFillColor,F.setStrokeColor=F.setStrokeColor.bind(F),F.setFillColor=F.setFillColor.bind(F),F.setStrokeWidth=F.setStrokeWidth.bind(F),F.setStrokeDasharray=F.setStrokeDasharray.bind(F),F.setOpacity=F.setOpacity.bind(F),F.createVisual=F.createVisual.bind(F),F.strokePanel=new ve("Line color",de(z.defaultColorSet,["transparent"]),z.defaultColor),F.strokePanel.onColorChanged=F.setStrokeColor,F.fillPanel=new ve("Fill color",de(z.defaultColorSet,["transparent"]),F.fillColor,te),F.fillPanel.onColorChanged=F.setFillColor,F.strokeWidthPanel=new dt("Line width",z.defaultStrokeWidths,z.defaultStrokeWidth),F.strokeWidthPanel.onWidthChanged=F.setStrokeWidth,F.strokeStylePanel=new mt("Line style",z.defaultStrokeDasharrays,z.defaultStrokeDasharray),F.strokeStylePanel.onStyleChanged=F.setStrokeDasharray,F.opacityPanel=new X("Opacity",z.defaultOpacitySteps,F.opacity),F.opacityPanel.onOpacityChanged=F.setOpacity,F}return ae(E,B),E.prototype.ownsTarget=function(w){return!(!B.prototype.ownsTarget.call(this,w)&&w!==this.visual)},E.prototype.createVisual=function(){this.visual=$.createEllipse(this.width/2,this.height/2,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},E.prototype.pointerDown=function(w,U){B.prototype.pointerDown.call(this,w,U),this.state==="new"&&(this.createVisual(),this.moveVisual(w),this._state="creating")},E.prototype.manipulate=function(w){B.prototype.manipulate.call(this,w)},E.prototype.resize=function(w){B.prototype.resize.call(this,w),this.setSize()},E.prototype.setSize=function(){B.prototype.setSize.call(this),$.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},E.prototype.pointerUp=function(w){B.prototype.pointerUp.call(this,w),this.setSize()},E.prototype.setStrokeColor=function(w){this.strokeColor=w,this.visual&&$.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(w),this.stateChanged()},E.prototype.setFillColor=function(w){this.fillColor=w,this.visual&&$.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(w),this.stateChanged()},E.prototype.setStrokeWidth=function(w){this.strokeWidth=w,this.visual&&$.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},E.prototype.setStrokeDasharray=function(w){this.strokeDasharray=w,this.visual&&$.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},E.prototype.setOpacity=function(w){this.opacity=w,this.visual&&$.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var w=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},B.prototype.getState.call(this));return w.typeName=E.typeName,w},E.prototype.restoreState=function(w){var U=w;this.fillColor=U.fillColor,this.strokeColor=U.strokeColor,this.strokeWidth=U.strokeWidth,this.strokeDasharray=U.strokeDasharray,this.opacity=U.opacity,this.createVisual(),B.prototype.restoreState.call(this,w),this.setSize()},E.prototype.scale=function(w,U){B.prototype.scale.call(this,w,U),this.setSize()},E.typeName="EllipseMarker",E.title="Ellipse marker",E.icon='<svg viewBox="0 0 24 24"><path d="M12 4C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',E}(st),Me=function(B){function E(w,U,z){return B.call(this,w,U,z)||this}return ae(E,B),Object.defineProperty(E.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),E.prototype.ownsTarget=function(w){return!(!B.prototype.ownsTarget.call(this,w)&&w!==this.tip1&&w!==this.tip2)},E.prototype.createTips=function(){this.tip1=$.createLine(this.x1-this.tipLength/2,this.y1,this.x1+this.tipLength/2,this.y1,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip1.transform.baseVal.appendItem($.createTransform()),this.visual.appendChild(this.tip1),this.tip2=$.createLine(this.x2-this.tipLength/2,this.y2,this.x2+this.tipLength/2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip2.transform.baseVal.appendItem($.createTransform()),this.visual.appendChild(this.tip2)},E.prototype.pointerDown=function(w,U){B.prototype.pointerDown.call(this,w,U),this.state==="creating"&&this.createTips()},E.prototype.adjustVisual=function(){if(B.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&($.setAttributes(this.tip1,[["x1",(this.x1-this.tipLength/2).toString()],["y1",this.y1.toString()],["x2",(this.x1+this.tipLength/2).toString()],["y2",this.y1.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),$.setAttributes(this.tip2,[["x1",(this.x2-this.tipLength/2).toString()],["y1",this.y2.toString()],["x2",(this.x2+this.tipLength/2).toString()],["y2",this.y2.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Math.abs(this.x1-this.x2)>.1)){var w=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),U=this.tip1.transform.baseVal.getItem(0);U.setRotate(w,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(U,0);var z=this.tip2.transform.baseVal.getItem(0);z.setRotate(w+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(z,0)}},Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var w=B.prototype.getState.call(this);return w.typeName=E.typeName,w},E.prototype.restoreState=function(w){B.prototype.restoreState.call(this,w),this.createTips(),this.adjustVisual()},E.typeName="MeasurementMarker",E.title="Measurement marker",E.icon='<svg viewBox="0 0 24 24"><path d="M1.39 18.36l1.77-1.76L4.58 18l1.06-1.05-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.42 1.41L10.59 12l-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.41 1.41 1.07-1.06-1.42-1.41 1.42-1.42L18 6.7l1.07-1.06-2.47-2.48 1.76-1.77 4.25 4.25L5.64 22.61l-4.25-4.25z"/></svg>',E}(Fe),Ze=function(B){function E(w,U,z){var F=B.call(this,w,U,z)||this;return F.strokePanel.colors=z.defaultColorSet,F.fillColor="transparent",F}return ae(E,B),Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var w=B.prototype.getState.call(this);return w.typeName=E.typeName,w},E.typeName="EllipseFrameMarker",E.title="Ellipse frame marker",E.icon='<svg viewBox="0 0 24 24"><path d="M12 6c4.41 0 8 2.69 8 6s-3.59 6-8 6-8-2.69-8-6 3.59-6 8-6m0-2C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',E}(we),ot=function(){function B(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(B.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),B.prototype.addUndoStep=function(E){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(E)||(this.undoStack.push(E),JSON.stringify(this.lastRedoStep)!==JSON.stringify(E)&&this.redoStack.splice(0,this.redoStack.length))},B.prototype.replaceLastUndoStep=function(E){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=E)},B.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},B.prototype.undo=function(){if(this.undoStack.length>1){var E=this.undoStack.pop();return E!==void 0&&this.redoStack.push(E),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},B.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},B}(),ze=function(B){function E(w,U,z){var F=B.call(this,w,U,z)||this;return F.strokeColor="transparent",F.strokeWidth=0,F.strokeDasharray="",F.curveX=0,F.curveY=0,F.manipulationStartCurveX=0,F.manipulationStartCurveY=0,F.setStrokeColor=F.setStrokeColor.bind(F),F.setStrokeWidth=F.setStrokeWidth.bind(F),F.setStrokeDasharray=F.setStrokeDasharray.bind(F),F.positionGrips=F.positionGrips.bind(F),F.addControlGrips=F.addControlGrips.bind(F),F.adjustVisual=F.adjustVisual.bind(F),F.setupControlBox=F.setupControlBox.bind(F),F.resize=F.resize.bind(F),F.strokeColor=z.defaultColor,F.strokeWidth=z.defaultStrokeWidth,F.strokeDasharray=z.defaultStrokeDasharray,F.strokePanel=new ve("Line color",z.defaultColorSet,z.defaultColor),F.strokePanel.onColorChanged=F.setStrokeColor,F.strokeWidthPanel=new dt("Line width",z.defaultStrokeWidths,z.defaultStrokeWidth),F.strokeWidthPanel.onWidthChanged=F.setStrokeWidth,F.strokeStylePanel=new mt("Line style",z.defaultStrokeDasharrays,z.defaultStrokeDasharray),F.strokeStylePanel.onStyleChanged=F.setStrokeDasharray,F}return ae(E,B),E.prototype.ownsTarget=function(w){return!(!B.prototype.ownsTarget.call(this,w)&&w!==this.visual&&w!==this.selectorCurve&&w!==this.visibleCurve&&!this.curveGrip.ownsTarget(w))},E.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},E.prototype.createVisual=function(){this.visual=$.createGroup(),this.selectorCurve=$.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=$.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},E.prototype.pointerDown=function(w,U){B.prototype.pointerDown.call(this,w,U),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=w.x,this.curveY=w.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(U)&&(this.activeGrip=this.curveGrip,this._state="resize")},E.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),$.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),$.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),$.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},E.prototype.setupControlBox=function(){B.prototype.setupControlBox.call(this),this.curveControlLine1=$.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=$.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},E.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,B.prototype.addControlGrips.call(this)},E.prototype.positionGrips=function(){B.prototype.positionGrips.call(this);var w=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-w/2,this.curveY-w/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},E.prototype.manipulate=function(w){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+w.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+w.y-this.manipulationStartY),B.prototype.manipulate.call(this,w)},E.prototype.resize=function(w){this.activeGrip===this.curveGrip&&(this.curveX=w.x,this.curveY=w.y),B.prototype.resize.call(this,w),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},E.prototype.setStrokeColor=function(w){this.strokeColor=w,this.adjustVisual(),this.colorChanged(w)},E.prototype.setStrokeWidth=function(w){this.strokeWidth=w,this.adjustVisual()},E.prototype.setStrokeDasharray=function(w){this.strokeDasharray=w,this.adjustVisual()},E.prototype.scale=function(w,U){this.curveX=this.curveX*w,this.curveY=this.curveY*U,B.prototype.scale.call(this,w,U)},Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var w=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},B.prototype.getState.call(this));return w.typeName=E.typeName,w},E.prototype.restoreState=function(w){B.prototype.restoreState.call(this,w);var U=w;this.strokeColor=U.strokeColor,this.strokeWidth=U.strokeWidth,this.strokeDasharray=U.strokeDasharray,this.curveX=U.curveX,this.curveY=U.curveY,this.createVisual(),this.adjustVisual()},E.typeName="CurveMarker",E.title="Curve marker",E.icon='<svg viewBox="0 0 24 24"><path d="M18.5 2A1.5 1.5 0 0120 3.5 1.5 1.5 0 0118.5 5c-.23 0-.45-.05-.65-.15l-3.69 3.7.34.45c2.19-1.26 4.76-2 7.5-2l1 .03v2.01L22 9c-2.58 0-5 .75-7 2.04A3.96 3.96 0 0111.04 15C9.75 17 9 19.42 9 22l.04 1H7.03L7 22c0-2.74.74-5.31 2-7.5l-.45-.34-3.7 3.69c.1.2.15.42.15.65A1.5 1.5 0 013.5 20 1.5 1.5 0 012 18.5 1.5 1.5 0 013.5 17c.23 0 .45.05.65.15l3.69-3.7C7.31 12.78 7 11.92 7 11a4 4 0 014-4c.92 0 1.78.31 2.45.84l3.7-3.69c-.1-.2-.15-.42-.15-.65A1.5 1.5 0 0118.5 2M11 9a2 2 0 00-2 2 2 2 0 002 2 2 2 0 002-2 2 2 0 00-2-2z"/></svg>',E}(Ne),vt=function(){function B(E,w){w===void 0&&(w=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=E,this.cancelable=w}return Object.defineProperty(B.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),B.prototype.preventDefault=function(){this._defaultPrevented=!0},B}(),bt=function(B){function E(w,U,z){var F=B.call(this,w,!1)||this;return F.dataUrl=U,F.state=z,F}return ae(E,B),E}(vt),lt=function(B){function E(w,U,z){z===void 0&&(z=!1);var F=B.call(this,w,z)||this;return F.marker=U,F}return ae(E,B),E}(vt),Ot=function(){function B(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return B.prototype.addEventListener=function(E,w){this[E].push(w)},B.prototype.removeEventListener=function(E,w){var U=this[E].indexOf(w);U>-1&&this[E].splice(U,1)},B}(),Rt=function(){function B(E){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Ae,this._isOpen=!1,this.undoRedoManager=new ot,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new Ot,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=B.instanceCounter++,this.styles=new Je(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=E,this.targetRoot=document.body,this.width=E.clientWidth,this.height=E.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(B.prototype,"ALL_MARKER_TYPES",{get:function(){return[ye,he,re,De,Ze,we,Z,ge,Me,G,Fe,ze]},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[ye,he,re,De,we,Z,ge]},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"BASIC_MARKER_TYPES",{get:function(){return[ye,he,re,De,Z]},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(E){var w=this;this._availableMarkerTypes.splice(0),E.forEach(function(U){if(typeof U=="string"){var z=w.ALL_MARKER_TYPES.find(function(F){return F.typeName===U});z!==void 0&&w._availableMarkerTypes.push(z)}else w._availableMarkerTypes.push(U)})},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(E){this._zoomLevel=E,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),B.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),He.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},B.prototype.show=function(){var E=this;this.styles.styleSheetRoot===void 0&&it.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=it.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(w){return w(new vt(E))})},B.prototype.render=function(){return Ce(this,void 0,void 0,function(){var E;return Le(this,function(w){switch(w.label){case 0:return this.setCurrentMarker(),(E=new rt).naturalSize=this.renderAtNaturalSize,E.imageType=this.renderImageType,E.imageQuality=this.renderImageQuality,E.markersOnly=this.renderMarkersOnly,E.width=this.renderWidth,E.height=this.renderHeight,[4,E.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return w.sent(),[4,E.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,w.sent()]}})})},B.prototype.close=function(E){var w=this;if(E===void 0&&(E=!1),this.isOpen){var U=!1;E||this.eventListeners.beforeclose.forEach(function(z){var F=new vt(w,!0);z(F),F.defaultPrevented&&(U=!0)}),U||(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(z){return z(new vt(w))}),this.detachEvents(),this._isOpen=!1)}},B.prototype.addMarkersToToolbar=function(){for(var E,w=[],U=0;U<arguments.length;U++)w[U]=arguments[U];(E=this._availableMarkerTypes).push.apply(E,w)},B.prototype.addRenderEventListener=function(E){this.addEventListener("render",function(w){E(w.dataUrl,w.state)})},B.prototype.removeRenderEventListener=function(E){},B.prototype.addCloseEventListener=function(E){this.addEventListener("close",function(){E()})},B.prototype.removeCloseEventListener=function(E){},B.prototype.setupResizeObserver=function(){var E=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){E.resize(E.target.clientWidth,E.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return E.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},B.prototype.onPopupTargetResize=function(){var E=1*this.target.clientWidth/this.target.clientHeight,w=this.editorCanvas.clientWidth/E>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*E:this.editorCanvas.clientWidth,U=w<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/E;this.resize(w,U)},B.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},B.prototype.resize=function(E,w){this._isResizing=!0;var U=E/this.imageWidth,z=w/this.imageHeight;this.imageWidth=Math.round(E),this.imageHeight=Math.round(w),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px",this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.settings.displayMode!=="popup"?this.coverDiv.style.width=this.imageWidth.toString()+"px":(this.setTopLeft(),this.positionMarkerImage()),this.toolbar!==void 0&&this.toolbar.adjustLayout(),this.positionLogo(),this.scaleMarkers(U,z),this._isResizing=!1},B.prototype.scaleMarkers=function(E,w){var U,z=this;this._currentMarker&&this._currentMarker instanceof De?this._currentMarker.scale(E,w):(U=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(F){F!==z._currentMarker&&F.scale(E,w)}),U!==void 0&&this.setCurrentMarker(U)},B.prototype.setEditingTarget=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px"},B.prototype.setTopLeft=function(){var E=this.editingTarget.getBoundingClientRect(),w=this.editorCanvas.getBoundingClientRect();this.left=E.left-w.left,this.top=E.top-w.top},B.prototype.initMarkerCanvas=function(){this.markerImageHolder=document.createElement("div"),this.markerImageHolder.style.setProperty("touch-action","pinch-zoom"),this.markerImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.markerImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImage.style.pointerEvents="auto",this.markerImageHolder.style.position="absolute",this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.markerImageHolder.style.transformOrigin="top left",this.positionMarkerImage(),this.markerImageHolder.appendChild(this.markerImage),this.editorCanvas.appendChild(this.markerImageHolder)},B.prototype.addDefs=function(){for(var E,w=[],U=0;U<arguments.length;U++)w[U]=arguments[U];this.defs=$.createDefs(),this.addDefsToImage(),(E=this.defs).append.apply(E,w)},B.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},B.prototype.initOverlay=function(){this.overlayContainer=document.createElement("div"),this.overlayContainer.style.position="absolute",this.overlayContainer.style.left="0px",this.overlayContainer.style.top="0px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.overlayContainer.style.display="flex",this.markerImageHolder.appendChild(this.overlayContainer)},B.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},B.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},B.prototype.attachWindowEvents=function(){window.addEventListener("pointermove",this.onPointerMove),window.addEventListener("pointerup",this.onPointerUp),window.addEventListener("pointercancel",this.onPointerOut),window.addEventListener("pointerout",this.onPointerOut),window.addEventListener("pointerleave",this.onPointerUp),window.addEventListener("resize",this.onWindowResize),window.addEventListener("keyup",this.onKeyUp)},B.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},B.prototype.detachWindowEvents=function(){window.removeEventListener("pointermove",this.onPointerMove),window.removeEventListener("pointerup",this.onPointerUp),window.removeEventListener("pointercancel",this.onPointerOut),window.removeEventListener("pointerout",this.onPointerOut),window.removeEventListener("pointerleave",this.onPointerUp),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("keyup",this.onKeyUp)},B.prototype.addLogo=function(){this.logoUI=document.createElement("div"),this.logoUI.style.display="inline-block",this.logoUI.style.margin="0px",this.logoUI.style.padding="0px",this.logoUI.style.fill="#333333";var E=document.createElement("a");E.href="https://markerjs.com/",E.target="_blank",E.innerHTML='<svg viewBox="0 0 112 96" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path fill="#e5f20d" fill-opacity=".647" d="M0 40.386h111.96V95.62H0z"/><path d="M93.61 61.452c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.591 1.048-1.481 0-2.222-.74-2.222-2.22 0-16.617-.533-29.347-1.604-38.192-1.068-8.842-2.92-13.265-5.552-13.265-4.443 0-10.94 15.509-19.497 46.52v.124c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.592 1.048-1.48 0-2.22-.74-2.22-2.22 0-3.29.165-8.392.493-15.302.33-7.732.494-13.82.494-18.262 0-6.17-.186-10.55-.556-13.142-.37-2.591-1.172-3.887-2.406-3.887-2.796 0-6.333 5.12-10.612 15.363C38.494 34.367 34.01 46.44 29.32 60.34l-1.11 3.209a5.714 5.714 0 01-1.42 2.097c-.617.578-1.295.864-2.036.864-.987 0-1.644-.081-1.974-.247-.328-.162-.533-.656-.617-1.48-.41-4.03-.74-9.418-.987-16.165-.163-1.728-.329-4.566-.494-8.515-.822-13.901-1.562-23.3-2.221-28.196-.657-4.893-.987-7.628-.987-8.205 0-.657.33-1.44.987-2.345.659-.903 1.276-1.357 1.85-1.357 1.319 0 2.387.947 3.21 2.838.411.906.863 4.526 1.357 10.859.493 6.335.905 14.19 1.233 23.568l.617 18.88c4.527-13.983 9.216-26.673 14.068-38.068C45.65 6.686 50.093.988 54.123.988c2.715 0 4.566 1.974 5.553 5.923.987 3.949 1.481 9.667 1.481 17.152 0 3.949-.081 9.625-.247 17.029l-.123 5.676c3.373-11.762 6.725-21.634 10.057-29.615 3.331-7.979 6.685-11.97 10.056-11.97 8.475 0 12.71 18.757 12.71 56.269z" fill-rule="nonzero"/></svg>',E.title="Powered by marker.js",E.style.display="grid",E.style.alignItems="center",E.style.justifyItems="center",E.style.padding="3px",E.style.width="20px",E.style.height="20px",this.logoUI.appendChild(E),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},B.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},B.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},B.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},B.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var E=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=E+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new Ge(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.target.getClientRects().item(0).y<this.styles.settings.toolbarHeight&&(this.editingTarget.style.marginTop=this.target.offsetTop-this.styles.settings.toolbarHeight+"px"),this.editorCanvas.appendChild(this.editingTarget),this.toolbox=new et(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},B.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},B.prototype.removeMarker=function(E){this.markerImage.removeChild(E.container),this.markers.indexOf(E)>-1&&this.markers.splice(this.markers.indexOf(E),1),E.dispose()},B.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},B.prototype.toolbarButtonClicked=function(E,w){if(E==="marker"&&w!==void 0)this.createNewMarker(w);else if(E==="action")switch(w){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},B.prototype.deleteSelectedMarker=function(){var E=this;if(this._currentMarker!==void 0){var w=!1;if(this.eventListeners.markerbeforedelete.forEach(function(z){var F=new lt(E,E._currentMarker,!0);z(F),F.defaultPrevented&&(w=!0)}),!w){var U=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(z){return z(new lt(E,U))})}}},B.prototype.clear=function(){var E=this,w=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(me){var Ke=new lt(E,void 0,!0);me(Ke),Ke.defaultPrevented&&(w=!0)}),!w)){this.setCurrentMarker();for(var U=function(me){var Ke=z.markers[me];z.setCurrentMarker(z.markers[me]),z._currentMarker.dispose(),z.markerImage.removeChild(z._currentMarker.container),z.markers.splice(z.markers.indexOf(z._currentMarker),1),z.eventListeners.markerdelete.forEach(function(ct){return ct(new lt(E,Ke))})},z=this,F=this.markers.length-1;F>=0;F--)U(F);this.addUndoStep()}},Object.defineProperty(B.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),B.prototype.showNotesEditor=function(){var E;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(E=this._currentMarker.notes)!==null&&E!==void 0?E:"",this.overlayContainer.appendChild(this.notesArea))},B.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},B.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},B.prototype.addUndoStep=function(){var E=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var w=this.getState(),U=this.undoRedoManager.getLastUndoStep();if(!U||U.width===w.width&&U.height===w.height){var z=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(w),z<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(F){return F(new vt(E))})}else this.undoRedoManager.replaceLastUndoStep(w),this.eventListeners.statechange.forEach(function(F){return F(new vt(E))})}},B.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},B.prototype.undoStep=function(){var E=this,w=this.undoRedoManager.undo();w!==void 0&&(this.restoreState(w),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(U){return U(new vt(E))}))},B.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},B.prototype.redoStep=function(){var E=this,w=this.undoRedoManager.redo();w!==void 0&&(this.restoreState(w),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(U){return U(new vt(E))}))},B.prototype.stepZoom=function(){var E=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=E<this.zoomSteps.length-1?this.zoomSteps[E+1]:this.zoomSteps[0]},B.prototype.panTo=function(E){this.contentDiv.scrollBy({left:this.prevPanPoint.x-E.x,top:this.prevPanPoint.y-E.y}),this.prevPanPoint=E},B.prototype.startRenderAndClose=function(){return Ce(this,void 0,void 0,function(){var E,w,U=this;return Le(this,function(z){switch(z.label){case 0:return[4,this.render()];case 1:return E=z.sent(),w=this.getState(),this.eventListeners.render.forEach(function(F){return F(new bt(U,E,w))}),this.close(!0),[2]}})})},B.prototype.getState=function(E){E===!0&&this.setCurrentMarker();var w={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(U){return w.markers.push(U.getState())}),w},B.prototype.restoreState=function(E){var w=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);E.markers.forEach(function(U){var z=w._availableMarkerTypes.find(function(me){return me.typeName===U.typeName});if(z!==void 0){var F=w.addNewMarker(z);F.restoreState(U),w.markers.push(F)}}),E.width&&E.height&&(E.width!==this.imageWidth||E.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/E.width,this.imageHeight/E.height),this.eventListeners.restorestate.forEach(function(U){return U(new vt(w))})},B.prototype.addNewMarker=function(E){var w=$.createGroup();return this.markerImage.appendChild(w),new E(w,this.overlayContainer,this.settings)},B.prototype.createNewMarker=function(E){var w,U=this;(w=typeof E=="string"?this._availableMarkerTypes.find(function(z){return z.typeName===E}):E)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(w),this._currentMarker.onMarkerCreated=this.markerCreated,this._currentMarker.onColorChanged=this.colorChanged,this._currentMarker.onFillColorChanged=this.fillColorChanged,this._currentMarker.onStateChanged=this.markerStateChanged,this.markerImage.style.cursor="crosshair",this.toolbar.setActiveMarkerButton(w.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(z){return z(new lt(U,U._currentMarker))}))},B.prototype.markerCreated=function(E){var w=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(E),this.setCurrentMarker(E),E instanceof he&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(he):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(U){return U(new lt(w,w._currentMarker))})},B.prototype.colorChanged=function(E){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=E,this.settings.defaultStrokeColor=E)},B.prototype.fillColorChanged=function(E){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=E)},B.prototype.markerStateChanged=function(E){var w=this;this.eventListeners.markerchange.forEach(function(U){return U(new lt(w,E))})},B.prototype.setCurrentMarker=function(E){var w=this;this._currentMarker!==E&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(U){return U(new lt(w,w._currentMarker))})),this._currentMarker=E,this._currentMarker===void 0||this._currentMarker.isSelected||(this._currentMarker.state!=="new"&&this._currentMarker.select(),this.toolbar.setCurrentMarker(this._currentMarker),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this._isResizing||this.eventListeners.markerselect.forEach(function(U){return U(new lt(w,w._currentMarker))}))},B.prototype.onPointerDown=function(E){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||E.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var w=this.markers.find(function(U){return U.ownsTarget(E.target)});w!==void 0?(this.setCurrentMarker(w),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(E.clientX,E.clientY),E.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:E.clientX,y:E.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(E.clientX,E.clientY))},B.prototype.onDblClick=function(E){if(this._isFocused||this.focus(),this.mode==="select"){var w=this.markers.find(function(U){return U.ownsTarget(E.target)});w!==void 0&&w!==this._currentMarker&&this.setCurrentMarker(w),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(E.clientX,E.clientY),E.target):this.setCurrentMarker()}},B.prototype.onPointerMove=function(E){this.touchPoints!==1&&E.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||E.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(E.clientX,E.clientY)):this.zoomLevel>1&&this.panTo({x:E.clientX,y:E.clientY}))},B.prototype.onPointerUp=function(E){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(E.clientX,E.clientY)),this.isDragging=!1,this.addUndoStep()},B.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},B.prototype.onKeyUp=function(E){this._currentMarker===void 0||this.notesArea!==void 0||E.key!=="Delete"&&E.key!=="Backspace"||this.deleteSelectedMarker()},B.prototype.clientToLocalCoordinates=function(E,w){var U=this.markerImage.getBoundingClientRect();return{x:(E-U.left)/this.zoomLevel,y:(w-U.top)/this.zoomLevel}},B.prototype.onWindowResize=function(){this.positionUI()},B.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var E=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=E+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},B.prototype.addLicenseKey=function(E){He.addKey(E)},B.prototype.addEventListener=function(E,w){this.eventListeners.addEventListener(E,w)},B.prototype.removeEventListener=function(E,w){this.eventListeners.removeEventListener(E,w)},B.prototype.renderState=function(E){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(E),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(B.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),B.prototype.focus=function(){var E=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(w){return w(new vt(E))}))},B.prototype.blur=function(){var E=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(w){return w(new vt(E))}))},B.instanceCounter=0,B}();/* **********************************
|
|
cropro version 1.2.0
|
|
@license SEE LICENSE IN LICENSE
|
|
|
|
copyright Alan Mendelevich
|
|
see README and LICENSE for details
|
|
********************************** *//*! *****************************************************************************
|
|
Copyright (c) Microsoft Corporation.
|
|
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
purpose with or without fee is hereby granted.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
PERFORMANCE OF THIS SOFTWARE.
|
|
***************************************************************************** */var xt=function(B,E){return(xt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,U){w.__proto__=U}||function(w,U){for(var z in U)Object.prototype.hasOwnProperty.call(U,z)&&(w[z]=U[z])})(B,E)};function gt(B,E){if(typeof E!="function"&&E!==null)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");function w(){this.constructor=B}xt(B,E),B.prototype=E===null?Object.create(E):(w.prototype=E.prototype,new w)}function _t(B,E,w,U){return new(w||(w=Promise))(function(z,F){function me(yt){try{ct(U.next(yt))}catch(Ve){F(Ve)}}function Ke(yt){try{ct(U.throw(yt))}catch(Ve){F(Ve)}}function ct(yt){var Ve;yt.done?z(yt.value):(Ve=yt.value,Ve instanceof w?Ve:new w(function(Ct){Ct(Ve)})).then(me,Ke)}ct((U=U.apply(B,E||[])).next())})}function St(B,E){var w,U,z,F,me={label:0,sent:function(){if(1&z[0])throw z[1];return z[1]},trys:[],ops:[]};return F={next:Ke(0),throw:Ke(1),return:Ke(2)},typeof Symbol=="function"&&(F[Symbol.iterator]=function(){return this}),F;function Ke(ct){return function(yt){return function(Ve){if(w)throw new TypeError("Generator is already executing.");for(;me;)try{if(w=1,U&&(z=2&Ve[0]?U.return:Ve[0]?U.throw||((z=U.return)&&z.call(U),0):U.next)&&!(z=z.call(U,Ve[1])).done)return z;switch(U=0,z&&(Ve=[2&Ve[0],z.value]),Ve[0]){case 0:case 1:z=Ve;break;case 4:return me.label++,{value:Ve[1],done:!1};case 5:me.label++,U=Ve[1],Ve=[0];continue;case 7:Ve=me.ops.pop(),me.trys.pop();continue;default:if(!(z=me.trys,(z=z.length>0&&z[z.length-1])||Ve[0]!==6&&Ve[0]!==2)){me=0;continue}if(Ve[0]===3&&(!z||Ve[1]>z[0]&&Ve[1]<z[3])){me.label=Ve[1];break}if(Ve[0]===6&&me.label<z[1]){me.label=z[1],z=Ve;break}if(z&&me.label<z[2]){me.label=z[2],me.ops.push(Ve);break}z[2]&&me.ops.pop(),me.trys.pop();continue}Ve=E.call(B,me)}catch(Ct){Ve=[6,Ct],U=0}finally{w=z=0}if(5&Ve[0])throw Ve[1];return{value:Ve[0]?Ve[1]:void 0,done:!0}}([ct,yt])}}}var Nt=function(){function B(){}return B.addKey=function(E){B.key=E},Object.defineProperty(B,"isLicensed",{get:function(){return!!B.key&&new RegExp(/^CRPR-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(B.key)},enumerable:!1,configurable:!0}),B}(),Xe=function(){function B(){}return B.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},B.setAttributes=function(E,w){for(var U=0,z=w;U<z.length;U++){var F=z[U],me=F[0],Ke=F[1];E.setAttribute(me,Ke)}},B.createRect=function(E,w,U){var z=document.createElementNS("http://www.w3.org/2000/svg","rect");return z.setAttribute("width",E.toString()),z.setAttribute("height",w.toString()),U&&B.setAttributes(z,U),z},B.createLine=function(E,w,U,z,F){var me=document.createElementNS("http://www.w3.org/2000/svg","line");return me.setAttribute("x1",E.toString()),me.setAttribute("y1",w.toString()),me.setAttribute("x2",U.toString()),me.setAttribute("y2",z.toString()),F&&B.setAttributes(me,F),me},B.createPolygon=function(E,w){var U=document.createElementNS("http://www.w3.org/2000/svg","polygon");return U.setAttribute("points",E),w&&B.setAttributes(U,w),U},B.createCircle=function(E,w){var U=document.createElementNS("http://www.w3.org/2000/svg","circle");return U.setAttribute("cx",(E/2).toString()),U.setAttribute("cy",(E/2).toString()),U.setAttribute("r",E.toString()),w&&B.setAttributes(U,w),U},B.createEllipse=function(E,w,U){var z=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return z.setAttribute("cx",(E/2).toString()),z.setAttribute("cy",(w/2).toString()),z.setAttribute("rx",(E/2).toString()),z.setAttribute("ry",(w/2).toString()),U&&B.setAttributes(z,U),z},B.createGroup=function(E){var w=document.createElementNS("http://www.w3.org/2000/svg","g");return E&&B.setAttributes(w,E),w},B.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},B.createMarker=function(E,w,U,z,F,me,Ke){var ct=document.createElementNS("http://www.w3.org/2000/svg","marker");return B.setAttributes(ct,[["id",E],["orient",w],["markerWidth",U.toString()],["markerHeight",z.toString()],["refX",F.toString()],["refY",me.toString()]]),ct.appendChild(Ke),ct},B.createText=function(E){var w=document.createElementNS("http://www.w3.org/2000/svg","text");return w.setAttribute("x","0"),w.setAttribute("y","0"),E&&B.setAttributes(w,E),w},B.createTSpan=function(E,w){var U=document.createElementNS("http://www.w3.org/2000/svg","tspan");return U.textContent=E,w&&B.setAttributes(U,w),U},B.createImage=function(E){var w=document.createElementNS("http://www.w3.org/2000/svg","image");return E&&B.setAttributes(w,E),w},B.createPoint=function(E,w){var U=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return U.x=E,U.y=w,U},B.createPath=function(E,w){var U=document.createElementNS("http://www.w3.org/2000/svg","path");return U.setAttribute("d",E),w&&B.setAttributes(U,w),U},B.createElement=function(E,w){var U=document.createElementNS("http://www.w3.org/2000/svg",E);return w&&B.setAttributes(U,w),U},B.getHollowRectanglePath=function(E,w,U,z,F,me,Ke,ct){return"M"+E+","+w+"V"+(w+z)+"H"+(E+U)+"V"+w+"H"+F+"V"+me+"H"+(F+Ke)+"V"+(me+ct)+"H"+F+"V"+w+"Z"},B}(),Lt=function(){function B(E){this._classNamePrefixBase="__cropro_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+E+"_"}return Object.defineProperty(B.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#333333",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarBackgroundActiveColor:"#282828",toolbarColor:"#eeeeee",cropShadeColor:"#ffffff",cropFrameColor:"#ffffff",gripColor:"#333333",gripFillColor:"#cccccc",toolbarHeight:40}},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"_fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"_fade_out"},enumerable:!1,configurable:!0}),B.prototype.addClass=function(E){return this.styleSheet===void 0&&this.addStyleSheet(),E.name=""+this.classNamePrefix+E.localName,this.classes.push(E),this.styleSheet.sheet.insertRule("."+E.name+" {"+E.style+"}",this.styleSheet.sheet.cssRules.length),E},B.prototype.addRule=function(E){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(E),this.styleSheet.sheet.insertRule(E.selector+" {"+E.style+"}",this.styleSheet.sheet.cssRules.length)},B.prototype.addStyleSheet=function(){var E;this.styleSheet=document.createElement("style"),((E=this.styleSheetRoot)!==null&&E!==void 0?E:document.head).appendChild(this.styleSheet),this.addRule(new ut("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new ut("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
`)),this.addRule(new ut("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
from {
|
|
opacity: 1;
|
|
}
|
|
to {
|
|
opacity: 0;
|
|
}
|
|
`)),this.addClass(new pt("_fade_in",`
|
|
animation-duration: 0.3s;
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
`)),this.addClass(new pt("_fade_out",`
|
|
animation-duration: 0.3s;
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
`))},B.prototype.removeStyleSheet=function(){var E;this.styleSheet&&(((E=this.styleSheetRoot)!==null&&E!==void 0?E:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},B}(),ut=function(B,E){this.selector=B,this.style=E},pt=function(B,E){this.localName=B,this.style=E},wt=function(){function B(){this.blocks=[],this.display=""}return B.prototype.addButtonBlock=function(E){E.className=this.blockClassName,E.buttonClassName=this.buttonClassName,E.buttonColorsClassName=this.buttonColorsClassName,E.buttonActiveColorsClassName=this.buttonActiveColorsClassName,this.blocks.push(E)},B.prototype.addElementBlock=function(E){E.className===void 0&&(E.className=this.blockClassName),this.blocks.push(E)},B.prototype.getUI=function(){var E=document.createElement("div");return E.className=this.className+" "+this.colorsClassName+" "+this.fadeInClassName,E.style.display=this.display,this.blocks.forEach(function(w){return E.appendChild(w.getUI())}),E},B}(),rn=function(){function B(){}return B.prototype.getUI=function(){var E=document.createElement("div");if(E.className=this.className,this.minWidth!==void 0&&(E.style.minWidth=this.minWidth),this.contentAlign!==void 0)switch(this.contentAlign){case"start":E.style.justifyContent="flex-start";break;case"center":E.style.justifyContent="center";break;case"end":E.style.justifyContent="flex-end"}return E.style.whiteSpace="nowrap",E},B}(),vn=function(B){function E(){var w=B!==null&&B.apply(this,arguments)||this;return w.buttons=[],w}return gt(E,B),E.prototype.addButton=function(w){w.className=this.buttonClassName,w.colorsClassName=this.buttonColorsClassName,w.activeColorsClassName=this.buttonActiveColorsClassName,this.buttons.push(w)},E.prototype.getUI=function(){var w=B.prototype.getUI.call(this);return this.buttons.forEach(function(U){return w.appendChild(U.getUI())}),w},E}(rn),yn=function(){function B(E,w){this._isActive=!1,this._isHidden=!1,this._icon=E,this.title=w,this.uiContainer=document.createElement("div"),this.adjustClassName=this.adjustClassName.bind(this)}return Object.defineProperty(B.prototype,"icon",{get:function(){return this._icon},set:function(E){this._icon=E,this.buttonContainer.innerHTML=this._icon},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"isActive",{get:function(){return this._isActive},set:function(E){this._isActive=E,this.adjustClassName()},enumerable:!1,configurable:!0}),B.prototype.getUI=function(){var E=this;return this.buttonContainer=document.createElement("div"),this.buttonContainer.title=this.title,this.buttonContainer.className=this.className+" "+this.colorsClassName,this.adjustClassName(),this.buttonContainer.innerHTML=this._icon,this.onClick&&this.buttonContainer.addEventListener("click",function(){return E.onClick()}),this.uiContainer.appendChild(this.buttonContainer),this.uiContainer.style.display=this._isHidden?"none":"inline-block",this.uiContainer},B.prototype.adjustClassName=function(){this.activeColorsClassName&&(this._isActive&&this.buttonContainer.className.indexOf(this.activeColorsClassName)<0?this.buttonContainer.className+=" "+this.activeColorsClassName:this._isActive||(this.buttonContainer.className=this.buttonContainer.className.replace(this.activeColorsClassName,"")))},B.prototype.hide=function(){this._isHidden=!0},B}(),Dn=function(B){function E(){var w=B!==null&&B.apply(this,arguments)||this;return w.elements=[],w}return gt(E,B),E.prototype.addElement=function(w){this.elements.push(w)},E.prototype.getUI=function(){var w=B.prototype.getUI.call(this);return this.elements.forEach(function(U){return w.appendChild(U)}),w},E}(rn),Pn=function(){function B(E,w){this.horizontal=E,this.vertical=w}return Object.defineProperty(B.prototype,"ratio",{get:function(){return 1*this.horizontal/this.vertical},enumerable:!1,configurable:!0}),B.prototype.getVerticalLength=function(E){return E/this.ratio},B.prototype.getHorizontalLength=function(E){return E*this.ratio},B}(),Yt=function(){function B(){}return B.getIcon=function(E,w){if(E>0&&w>0){var U=new Pn(E,w),z=U.ratio>=1?20:U.getHorizontalLength(20),F=U.ratio<1?20:U.getVerticalLength(20),me=document.createElementNS("http://www.w3.org/2000/svg","svg");me.setAttribute("xmlns","http://www.w3.org/2000/svg"),me.setAttribute("viewBox","0 0 24 24"),document.body.appendChild(me);var Ke=Xe.createDefs();me.appendChild(Ke);var ct=Xe.createElement("clipPath",[["id","text-bg-clip"]]);Ke.appendChild(ct);var yt=Xe.createPath(Xe.getHollowRectanglePath((24-z)/2,(24-F)/2,z,F,(24-z)/2+2,(24-F)/2+2,z-4,F-4));me.appendChild(yt);var Ve=Xe.createText([["x","0"],["y","0"],["font-size","7px"],["font-family","monospace"]]);Ve.appendChild(Xe.createTSpan(E+":"+w)),me.appendChild(Ve);var Ct=Ve.getBBox();Xe.setAttributes(Ve,[["x",((24-Ct.width)/2).toString()],["y",((24-Ct.height)/2-Ct.y).toString()]]);var Pt=Xe.createPath(Xe.getHollowRectanglePath(0,0,24,24,(24-Math.ceil(Ct.width))/2,(24-Math.ceil(Ct.height))/2,Math.ceil(Ct.width),Math.ceil(Ct.height)));return ct.appendChild(Pt),Xe.setAttributes(yt,[["clip-path","url(#text-bg-clip)"]]),document.body.removeChild(me),me.outerHTML}return'<svg viewBox="0 0 24 24"><path d="M19 12h-2v3h-3v2h5v-5M7 9h3V7H5v5h2V9m14-6H3a2 2 0 00-2 2v14a2 2 0 002 2h18a2 2 0 002-2V5a2 2 0 00-2-2m0 16H3V5h18v14z"/></svg>'},B}(),Tn=function(B){function E(w,U,z){var F=B.call(this,w,U)||this;return F.isDropdownOpen=!1,F.onClick=F.dropdownButtonClicked,F.dropdownButtons=z,F}return gt(E,B),E.prototype.setupDropdown=function(){var w=this;this.dropdownBlock=document.createElement("div"),this.dropdownBlock.className=this.dropdownClassName+" "+this.dropdownColorsClassName,this.dropdownBlock.style.display="none",this.dropdownButtons.forEach(function(U){U.className=w.className,U.colorsClassName=w.colorsClassName,w.dropdownBlock.appendChild(U.getUI())}),this.uiContainer.appendChild(this.dropdownBlock)},E.prototype.positionDropdown=function(){this.dropdownBlock.style.left=this.uiContainer.clientLeft+"px",this.dropdownBlock.style.top=this.uiContainer.clientTop+this.uiContainer.clientHeight+"px"},E.prototype.dropdownButtonClicked=function(){this.dropdownBlock===void 0&&this.setupDropdown(),this.isDropdownOpen=!this.isDropdownOpen,this.toggleDropdown()},E.prototype.toggleDropdown=function(){this.positionDropdown(),this.dropdownBlock.style.display=this.isDropdownOpen?"inline-block":"none"},E.prototype.showDropdown=function(){this.isDropdownOpen=!0,this.toggleDropdown()},E.prototype.hideDropdown=function(){this.isDropdownOpen=!1,this.toggleDropdown()},E}(yn),Mn=function(){function B(E,w){this.GRIP_SIZE=10,this.color=E,this.fillColor=w,this.visual=Xe.createGroup(),this.visual.appendChild(Xe.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Xe.createCircle(this.GRIP_SIZE,[["fill",this.fillColor],["fill-opacity","0.9"],["stroke",this.color],["stroke-width","2"],["stroke-opacity","0.7"]]))}return B.prototype.ownsTarget=function(E){return E===this.visual||E===this.visual.childNodes[0]||E===this.visual.childNodes[1]},B.prototype.setCenter=function(E,w){this.visual.childNodes.forEach(function(U){return Xe.setAttributes(U,[["cx",E.toString()],["cy",w.toString()]])})},B}(),dn=function(){function B(E,w,U,z){this.isMoving=!1,this._isGridVisible=!0,this.numberOfGridLines=2,this.horizontalGridLines=[],this.verticalGridLines=[],this._zoomFactor=1,this.cropRectChanged=!1,this.canvasWidth=E,this.canvasHeight=w,this.margin=U,this.container=z,this.attachEvents=this.attachEvents.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.resize=this.resize.bind(this),this.adjustCropRect=this.adjustCropRect.bind(this),this.scaleCanvas=this.scaleCanvas.bind(this),this.getRescaledRect=this.getRescaledRect.bind(this)}return Object.defineProperty(B.prototype,"aspectRatio",{get:function(){return this._aspectRatio},set:function(E){this._aspectRatio=E,this.adjustCropRect(),this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(E){this._isGridVisible=E,this.gridContainer&&Xe.setAttributes(this.gridContainer,[["display",this._isGridVisible?"":"none"]])},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"zoomFactor",{get:function(){return this._zoomFactor},set:function(E){this._zoomFactor=E,this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),B.prototype.open=function(){var E=this;this.cropShadeElement=Xe.createPath("M0,0Z",[["fill",this.cropShadeColor],["fill-opacity","0.8"]]),this.container.appendChild(this.cropShadeElement),this.gridContainer=Xe.createGroup([["display",this.isGridVisible?"":"none"]]),this.container.appendChild(this.gridContainer);for(var w=0;w<this.numberOfGridLines;w++)this.horizontalGridLines.push(Xe.createLine(0,0,0,0,[["stroke",this.cropFrameColor],["stroke-width","1"],["stroke-dasharray","3 1"],["opacity","0.7"]])),this.verticalGridLines.push(Xe.createLine(0,0,0,0,[["stroke",this.cropFrameColor],["stroke-width","1"],["stroke-dasharray","3 1"],["opacity","0.7"]]));this.horizontalGridLines.forEach(function(U){return E.gridContainer.appendChild(U)}),this.verticalGridLines.forEach(function(U){return E.gridContainer.appendChild(U)}),this.cropRectElement=Xe.createRect(0,0,[["stroke",this.cropFrameColor],["stroke-width","3"],["fill","transparent"]]),this.container.appendChild(this.cropRectElement),this.topLeftGrip=new Mn(this.gripColor,this.gripFillColor),this.container.appendChild(this.topLeftGrip.visual),this.topRightGrip=new Mn(this.gripColor,this.gripFillColor),this.container.appendChild(this.topRightGrip.visual),this.bottomLeftGrip=new Mn(this.gripColor,this.gripFillColor),this.container.appendChild(this.bottomLeftGrip.visual),this.bottomRightGrip=new Mn(this.gripColor,this.gripFillColor),this.container.appendChild(this.bottomRightGrip.visual),this.attachEvents()},B.prototype.setCropRectangle=function(E){this.cropRect=E;var w=Object.assign({},this.cropRect);this.zoomFactor!==1&&(w.width=this.cropRect.width*this.zoomFactor,w.height=this.cropRect.height*this.zoomFactor,w.x=this.cropRect.height/this.cropRect.width<this.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasWidth/2-w.width/2,w.y=this.cropRect.height/this.cropRect.width>this.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasHeight/2-w.height/2),Xe.setAttributes(this.cropRectElement,[["x",w.x.toString()],["y",w.y.toString()],["width",w.width.toString()],["height",w.height.toString()]]);var U=w.height/(this.numberOfGridLines+1);this.horizontalGridLines.forEach(function(F,me){var Ke=w.y+U*(me+1);Xe.setAttributes(F,[["x1",""+w.x],["y1",""+Ke],["x2",""+(w.x+w.width)],["y2",""+Ke]])});var z=w.width/(this.numberOfGridLines+1);this.verticalGridLines.forEach(function(F,me){var Ke=w.x+z*(me+1);Xe.setAttributes(F,[["x1",""+Ke],["y1",""+w.y],["x2",""+Ke],["y2",""+(w.y+w.height)]])}),Xe.setAttributes(this.cropShadeElement,[["d",Xe.getHollowRectanglePath(0,0,this.canvasWidth+2*this.margin,this.canvasHeight+2*this.margin,w.x,w.y,w.width,w.height)]]),this.topLeftGrip.setCenter(w.x,w.y),this.topRightGrip.setCenter(w.x+w.width,w.y),this.bottomLeftGrip.setCenter(w.x,w.y+w.height),this.bottomRightGrip.setCenter(w.x+w.width,w.y+w.height),this.cropRectChanged&&this.onCropChange&&(this.cropRectChanged=!1,this.onCropChange(this.cropRect)),this.cropRectChanged=!1},B.prototype.attachEvents=function(){this.container.style.touchAction="none",this.container.addEventListener("pointerdown",this.onPointerDown),this.container.addEventListener("pointermove",this.onPointerMove),this.container.addEventListener("pointerup",this.onPointerUp)},B.prototype.clientToLocalCoordinates=function(E,w){var U=this.container.getBoundingClientRect();return{x:E-U.left+this.margin,y:w-U.top+this.margin}},B.prototype.onPointerDown=function(E){this.container.setPointerCapture(E.pointerId),this.previousPoint=this.clientToLocalCoordinates(E.clientX,E.clientY),this.cropRectElement===E.target?this.isMoving=!0:this.topLeftGrip.ownsTarget(E.target)?this.activeGrip=this.topLeftGrip:this.bottomLeftGrip.ownsTarget(E.target)?this.activeGrip=this.bottomLeftGrip:this.topRightGrip.ownsTarget(E.target)?this.activeGrip=this.topRightGrip:this.bottomRightGrip.ownsTarget(E.target)&&(this.activeGrip=this.bottomRightGrip)},B.prototype.onPointerMove=function(E){if(this.isMoving)this.move(this.clientToLocalCoordinates(E.clientX,E.clientY));else if(this.activeGrip){var w=this.clientToLocalCoordinates(E.clientX,E.clientY);this.resize(w)}E.preventDefault()},B.prototype.onPointerUp=function(E){this.activeGrip=void 0,this.isMoving=!1,this.container.releasePointerCapture(E.pointerId)},B.prototype.move=function(E){var w=E.x-this.previousPoint.x,U=E.y-this.previousPoint.y;this.zoomFactor!==1&&(w=-w/this.zoomFactor,U=-U/this.zoomFactor),this.cropRect.x=Math.min(Math.max(this.margin,this.cropRect.x+w),this.canvasWidth-this.cropRect.width+this.margin),this.cropRect.y=Math.min(Math.max(this.margin,this.cropRect.y+U),this.canvasHeight-this.cropRect.height+this.margin),this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect),this.previousPoint=E},B.prototype.resize=function(E){var w=Object.assign({},this.cropRect),U=E.x-this.previousPoint.x,z=E.y-this.previousPoint.y;switch(this.activeGrip){case this.bottomLeftGrip:case this.topLeftGrip:w.x+U<this.margin&&(U=this.margin-w.x),w.x+=U,w.width=this.cropRect.x+this.cropRect.width-w.x;break;case this.bottomRightGrip:case this.topRightGrip:w.width+U>this.canvasWidth*this.zoomFactor&&(U=this.canvasWidth*this.zoomFactor-w.width),w.width+=U}switch(this.activeGrip){case this.topLeftGrip:case this.topRightGrip:this.aspectRatio?(w.y=this.cropRect.y-(this.activeGrip===this.topLeftGrip?-1:1)*this.aspectRatio.getVerticalLength(U),w.height=this.aspectRatio.getVerticalLength(w.width)):(w.y+=z,w.height=this.cropRect.y+this.cropRect.height-w.y);break;case this.bottomLeftGrip:case this.bottomRightGrip:this.aspectRatio?w.height=this.aspectRatio.getVerticalLength(w.width):w.height+=z}w.width<10&&(w.x=this.cropRect.x,w.width=10),w.height<10&&(w.y=this.cropRect.y,w.height=10),this.previousPoint=E,w.x>=this.margin&&w.y>=this.margin&&w.x-this.margin+w.width<=this.canvasWidth&&w.y-this.margin+w.height<=this.canvasHeight&&(this.cropRect=w,this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect))},B.prototype.adjustCropRect=function(){if(this.aspectRatio&&Math.round(this.cropRect.height)!==Math.round(this.aspectRatio.getVerticalLength(this.cropRect.width))){var E=this.cropRect.x+this.cropRect.width/2,w=this.cropRect.y+this.cropRect.height/2,U=this.aspectRatio.getHorizontalLength(this.cropRect.height),z=this.aspectRatio.getVerticalLength(this.cropRect.width);U/this.canvasWidth<z/this.canvasHeight?this.cropRect.width=U:this.cropRect.height=z,this.cropRect.width>this.canvasWidth&&(this.cropRect.height/=this.cropRect.width/this.canvasWidth,this.cropRect.width=this.canvasWidth),this.cropRect.height>this.canvasHeight&&(this.cropRect.width/=this.cropRect.height/this.canvasHeight,this.cropRect.height=this.canvasHeight),this.cropRect.x=E-this.cropRect.width/2,this.cropRect.y=w-this.cropRect.height/2,this.cropRect.x+this.cropRect.width>this.margin+this.canvasWidth&&(this.cropRect.x=this.margin+this.canvasWidth-this.cropRect.width),this.cropRect.y+this.cropRect.height>this.margin+this.canvasHeight&&(this.cropRect.y=this.margin+this.canvasHeight-this.cropRect.height),this.cropRect.x=Math.max(this.cropRect.x,this.margin),this.cropRect.y=Math.max(this.cropRect.y,this.margin)}},B.prototype.getRescaledRect=function(E,w,U,z,F,me){var Ke=U/E,ct=z/w;return{x:(F.x-me)*Ke+me,y:(F.y-me)*ct+me,width:F.width*Ke,height:F.height*ct}},B.prototype.scaleCanvas=function(E,w){var U=this.getRescaledRect(this.canvasWidth,this.canvasHeight,E,w,this.cropRect,this.margin);this.canvasWidth=E,this.canvasHeight=w,this.onCropChange&&this.onCropChange(U),this.setCropRectangle(U)},B}(),An=function(){function B(E){this._angle=0,this.isDragging=!1,this.width=401,this.height=24,this.title=E,this.uiContainer=document.createElement("div"),this.getUI=this.getUI.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.setAngleLabel=this.setAngleLabel.bind(this),this.positionScaleShape=this.positionScaleShape.bind(this)}return Object.defineProperty(B.prototype,"angle",{get:function(){return this._angle},set:function(E){this._angle=E,this.setAngleLabel(),this.positionScaleShape()},enumerable:!1,configurable:!0}),B.prototype.getUI=function(){return this.controlContainer=document.createElement("div"),this.controlContainer.title=this.title,this.controlContainer.className=this.className+" "+this.colorsClassName,this.controlContainer.appendChild(this.getVisual()),this.controlContainer.addEventListener("pointerdown",this.onPointerDown),this.controlContainer.addEventListener("pointermove",this.onPointerMove),this.controlContainer.addEventListener("pointerup",this.onPointerUp),this.uiContainer.appendChild(this.controlContainer),this.uiContainer.style.display="inline-block",this.uiContainer.style.touchAction="none",this.setAngleLabel(),this.positionScaleShape(),this.uiContainer},B.prototype.onPointerDown=function(E){this.controlContainer.setPointerCapture(E.pointerId),this.isDragging=!0,this.previousPoint={x:E.clientX,y:E.clientY}},B.prototype.onPointerMove=function(E){this.isDragging&&(this.onAngleChange&&this.onAngleChange((E.clientX-this.previousPoint.x)/5),this.previousPoint.x=E.clientX)},B.prototype.onPointerUp=function(E){this.isDragging&&this.onAngleChange&&this.onAngleChange((E.clientX-this.previousPoint.x)/5),this.isDragging=!1,this.controlContainer.releasePointerCapture(E.pointerId)},B.prototype.setAngleLabel=function(){if(this.angleLabelText){this.angleLabelText.innerHTML=""+Math.round(this._angle);var E=this.angleLabelText.getBBox();Xe.setAttributes(this.angleLabelElement,[["x",((this.width-E.width)/2).toString()],["y",(this.height/2).toString()]])}},B.prototype.positionScaleShape=function(){if(this.scaleShape){var E=this.scaleShape.transform.baseVal.getItem(0);E.setTranslate(this._angle%5*5-25,0),this.scaleShape.transform.baseVal.replaceItem(E,0)}},B.prototype.getVisual=function(){var E=document.createElementNS("http://www.w3.org/2000/svg","svg");E.setAttribute("xmlns","http://www.w3.org/2000/svg"),E.setAttribute("width",this.width+"px"),E.setAttribute("height",this.height+"px"),E.setAttribute("viewBox","0 0 "+this.width+" "+this.height),E.style.flexShrink="0",document.body.appendChild(E);for(var w="M0,"+(this.height-1)+" v"+-this.height/3+"h1v"+this.height/3,U=1;U<=this.width/5+10;U++){var z=U%5==0?this.height/3:this.height/6;w+="h4v"+-z+"h1v"+z}w+="v1H0Z",this.scaleShape=Xe.createPath(w);var F=Xe.createTransform();this.scaleShape.transform.baseVal.appendItem(F),E.appendChild(this.scaleShape),this.angleLabelElement=Xe.createText([["x","0"],["y","0"],["font-size","10px"],["font-family","monospace"]]),this.angleLabelText=Xe.createTSpan(""),this.angleLabelElement.appendChild(this.angleLabelText);var me=Xe.createTSpan("");return me.innerHTML="°",this.angleLabelElement.appendChild(me),E.appendChild(this.angleLabelElement),document.body.removeChild(E),E},B}(),Nn=function(){function B(){this.naturalSize=!1,this.imageType="image/png"}return B.prototype.rasterize=function(E,w,U,z,F,me,Ke){var ct=this;return new Promise(function(yt){var Ve=document.createElement("canvas");Ve.width=E.width.baseVal.value-2*z,Ve.height=E.height.baseVal.value-2*z;var Ct=1,Pt=1;ct.naturalSize===!0?(Ct=w.naturalWidth/(E.width.baseVal.value-2*z)/me,Pt=w.naturalHeight/(E.height.baseVal.value-2*z)/Ke,Ve.width=w.naturalWidth/me,Ve.height=w.naturalHeight/Ke):ct.width!==void 0&&ct.height!==void 0&&(Ct=ct.width/U.width,Pt=ct.height/U.height,Ve.width*=Ct,Ve.height*=Pt);var tn=Ve.getContext("2d");tn.translate(Ve.width/2,Ve.height/2),tn.rotate(F*Math.PI/180),tn.scale(me,Ke),tn.translate(-Ve.width/2,-Ve.height/2),tn.drawImage(w,0,0,Ve.width,Ve.height);var kn=document.createElement("canvas");kn.width=U.width*Ct,kn.height=U.height*Pt,kn.getContext("2d").putImageData(tn.getImageData((U.x-z)*Ct,(U.y-z)*Pt,U.width*Ct,U.height*Pt),0,0),yt(kn.toDataURL(ct.imageType,ct.imageQuality))})},B}(),Vn=function(){function B(E){this._zoomToCropEnabled=!0,this.zoomFactor=1,this.flippedHorizontally=!1,this.flippedVertically=!1,this._isGridVisible=!0,this._gridLines=2,this._rotationAngle=0,this.scaleFactor=1,this.renderEventListeners=[],this.closeEventListeners=[],this._isOpen=!1,this.CANVAS_MARGIN=20,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.displayMode="inline",this.popupMargin=30,this.toolbarHeight=40,this.aspectRatios=[{horizontal:0,vertical:0},{horizontal:4,vertical:3},{horizontal:3,vertical:2},{horizontal:16,vertical:9},{horizontal:1,vertical:1},{horizontal:3,vertical:4},{horizontal:2,vertical:3},{horizontal:9,vertical:16}],this._instanceNo=B.instanceCounter++,this.styles=new Lt(this.instanceNo),this.target=E,this.targetRoot=document.body,this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.rotateBy=this.rotateBy.bind(this),this.applyRotation=this.applyRotation.bind(this),this.cropRectChanged=this.cropRectChanged.bind(this),this.zoomToCrop=this.zoomToCrop.bind(this),this.unzoomFromCrop=this.unzoomFromCrop.bind(this),this.rotateLeftButtonClicked=this.rotateLeftButtonClicked.bind(this),this.rotateRightButtonClicked=this.rotateRightButtonClicked.bind(this),this.flipHorizontallyButtonClicked=this.flipHorizontallyButtonClicked.bind(this),this.flipVerticallyButtonClicked=this.flipVerticallyButtonClicked.bind(this),this.applyFlip=this.applyFlip.bind(this),this.startRenderAndClose=this.startRenderAndClose.bind(this),this.render=this.render.bind(this),this.onPopupResize=this.onPopupResize.bind(this),this.applyAspectRatio=this.applyAspectRatio.bind(this)}return Object.defineProperty(B.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"zoomToCropEnabled",{get:function(){return this._zoomToCropEnabled},set:function(E){this._zoomToCropEnabled=E,E?this.zoomToCrop():this.unzoomFromCrop()},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(E){this._isGridVisible=E,this.cropLayer&&(this.cropLayer.isGridVisible=this._isGridVisible)},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"gridLines",{get:function(){return this._gridLines},set:function(E){this._gridLines=E,this.cropLayer&&(this.cropLayer.numberOfGridLines=this._gridLines)},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"rotationAngle",{get:function(){return this._rotationAngle},set:function(E){this._rotationAngle=E,this.straightener&&(this.straightener.angle=this._rotationAngle)},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"paddedImageWidth",{get:function(){return this.imageWidth+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"paddedImageHeight",{get:function(){return this.imageHeight+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"aspectRatio",{get:function(){var E;return(E=this._aspectRatio)!==null&&E!==void 0?E:this.aspectRatios[0]},set:function(E){this._aspectRatio=E},enumerable:!1,configurable:!0}),B.prototype.open=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.setupResizeObserver(),this.initCropCanvas(),this.setEditingTarget(),this.setTopLeft(),this.initCropLayer(),this.attachEvents(),this.applyAspectRatio(),this.displayMode==="popup"&&this.onPopupResize(),this._isOpen=!0},B.prototype.show=function(){this.showUI(),this.open()},B.prototype.close=function(E){E===void 0&&(E=!1),this.isOpen&&(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),E||this.closeEventListeners.forEach(function(w){return w()}),this._isOpen=!1)},B.prototype.addRenderEventListener=function(E){this.renderEventListeners.push(E)},B.prototype.removeRenderEventListener=function(E){this.renderEventListeners.indexOf(E)>-1&&this.renderEventListeners.splice(this.renderEventListeners.indexOf(E),1)},B.prototype.addCloseEventListener=function(E){this.closeEventListeners.push(E)},B.prototype.removeCloseEventListener=function(E){this.closeEventListeners.indexOf(E)>-1&&this.closeEventListeners.splice(this.closeEventListeners.indexOf(E),1)},B.prototype.setupResizeObserver=function(){var E=this;this.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){E.resize(E.target.clientWidth,E.target.clientHeight)}),this.targetObserver.observe(this.target)):this.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(this.onPopupResize),this.targetObserver.observe(this.contentDiv)),window.addEventListener("resize",this.setWindowHeight))},B.prototype.onPopupResize=function(){if(this.contentDiv.clientWidth>0&&this.contentDiv.clientHeight>0){var E=1*this.target.clientWidth/this.target.clientHeight,w=this.contentDiv.clientWidth/E>this.contentDiv.clientHeight?(this.contentDiv.clientHeight-2*this.CANVAS_MARGIN)*E:this.contentDiv.clientWidth-2*this.CANVAS_MARGIN,U=w+2*this.CANVAS_MARGIN<this.contentDiv.clientWidth?this.contentDiv.clientHeight-2*this.CANVAS_MARGIN:(this.contentDiv.clientWidth-2*this.CANVAS_MARGIN)/E;this.resize(w,U)}},B.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},B.prototype.setEditingTargetSize=function(){this.editorCanvas.style.width=this.imageWidth+2*this.CANVAS_MARGIN+"px",this.editorCanvas.style.height=this.imageHeight+2*this.CANVAS_MARGIN+"px",Xe.setAttributes(this.editingTarget,[["width",""+this.imageWidth],["height",""+this.imageHeight]]),this.editingTarget.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px"},B.prototype.resize=function(E,w){this.imageWidth=Math.round(E),this.imageHeight=Math.round(w),this.setEditingTargetSize(),this.cropImage.setAttribute("width",this.paddedImageWidth.toString()),this.cropImage.setAttribute("height",this.paddedImageHeight.toString()),this.cropImage.setAttribute("viewBox","0 0 "+this.paddedImageWidth.toString()+" "+this.paddedImageHeight.toString()),this.cropImageHolder.style.width=this.paddedImageWidth+"px",this.cropImageHolder.style.height=this.paddedImageHeight+"px",this.displayMode!=="popup"?this.coverDiv.style.width=this.paddedImageWidth+"px":(this.setTopLeft(),this.positionCropImage()),this.cropLayer.scaleCanvas(this.imageWidth,this.imageHeight),this.applyRotation()},B.prototype.setEditingTarget=function(){var E=document.createElement("canvas");E.width=this.target.naturalWidth,E.height=this.target.naturalHeight,E.getContext("2d").drawImage(this.target,0,0,this.target.naturalWidth,this.target.naturalHeight);var w=E.toDataURL();Xe.setAttributes(this.editingTarget,[["href",w]]),this.setEditingTargetSize()},B.prototype.setTopLeft=function(){var E=this.target.getBoundingClientRect(),w=this.editorCanvas.getBoundingClientRect();this.left=E.left-w.left-this.CANVAS_MARGIN,this.top=E.top-w.top-this.CANVAS_MARGIN},B.prototype.initCropCanvas=function(){this.cropImageHolder=document.createElement("div"),this.cropImageHolder.style.setProperty("touch-action","none"),this.cropImageHolder.style.setProperty("-ms-touch-action","none"),this.cropImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.cropImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.cropImage.setAttribute("width",this.paddedImageWidth.toString()),this.cropImage.setAttribute("height",this.paddedImageHeight.toString()),this.cropImage.setAttribute("viewBox","0 0 "+this.paddedImageWidth.toString()+" "+this.paddedImageHeight.toString()),this.cropImage.style.pointerEvents="auto",this.cropImageHolder.style.width=this.paddedImageWidth+"px",this.cropImageHolder.style.height=this.paddedImageHeight+"px",this.cropImageHolder.style.transformOrigin="top left",this.positionCropImage(),this.defs=Xe.createDefs(),this.cropImage.appendChild(this.defs),this.editingTarget=Xe.createImage([["href",""]]),this.editingTarget.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationContainer=Xe.createGroup(),this.editingTargetRotationScaleContainer=Xe.createGroup(),this.editingTargetRotationScaleContainer.appendChild(this.editingTarget),this.editingTargetRotationContainer.appendChild(this.editingTargetRotationScaleContainer);var E=Xe.createTransform();this.editingTargetRotationContainer.transform.baseVal.appendItem(E);var w=Xe.createTransform();this.editingTargetRotationScaleContainer.transform.baseVal.appendItem(w),this.editingTargetContainer=Xe.createGroup(),this.editingTargetContainer.style.transform="translate("+this.CANVAS_MARGIN+"px, "+this.CANVAS_MARGIN+"px)",this.editingTargetContainer.appendChild(this.editingTargetRotationContainer),this.cropImage.appendChild(this.editingTargetContainer),this.cropImageHolder.appendChild(this.cropImage),this.editorCanvas.appendChild(this.cropImageHolder)},B.prototype.positionCropImage=function(){this.cropImageHolder.style.top=this.top+"px",this.cropImageHolder.style.left=this.left+"px"},B.prototype.initCropLayer=function(){this.cropRect={x:this.CANVAS_MARGIN,y:this.CANVAS_MARGIN,width:this.imageWidth,height:this.imageHeight},this.cropLayerContainer=Xe.createGroup(),this.cropImage.appendChild(this.cropLayerContainer),this.cropLayer=new dn(this.imageWidth,this.imageHeight,this.CANVAS_MARGIN,this.cropLayerContainer),this.cropLayer.onCropChange=this.cropRectChanged,this.cropLayer.numberOfGridLines=this.gridLines,this.cropLayer.isGridVisible=this.isGridVisible,this.cropLayer.cropShadeColor=this.styles.settings.cropShadeColor,this.cropLayer.cropFrameColor=this.styles.settings.cropFrameColor,this.cropLayer.gripColor=this.styles.settings.gripColor,this.cropLayer.gripFillColor=this.styles.settings.gripFillColor,this.cropLayer.open(),this.cropLayer.setCropRectangle(this.cropRect),this.zoomToCropEnabled&&this.zoomToCrop()},B.prototype.zoomToCrop=function(){if(this.cropRect){var E=this.cropRect.x-this.CANVAS_MARGIN+this.cropRect.width/2,w=this.cropRect.y-this.CANVAS_MARGIN+this.cropRect.height/2;this.zoomFactor=Math.min(this.imageWidth/this.cropRect.width,this.imageHeight/this.cropRect.height),this.editingTargetContainer&&this.cropLayer&&(this.editingTargetContainer.style.transformOrigin=E+"px "+w+"px",this.editingTargetContainer.style.transform="translate("+(this.imageWidth/2-E+this.CANVAS_MARGIN)+"px,"+(this.imageHeight/2-w+this.CANVAS_MARGIN)+"px) scale("+this.zoomFactor+")",this.cropLayer.zoomFactor=this.zoomFactor)}},B.prototype.unzoomFromCrop=function(){this.zoomFactor=1,this.editingTargetContainer&&this.cropLayer&&(this.editingTargetContainer.style.transformOrigin="center",this.editingTargetContainer.style.transform="translate("+this.CANVAS_MARGIN+"px, "+this.CANVAS_MARGIN+"px) scale(1)",this.cropLayer.zoomFactor=this.zoomFactor)},B.prototype.cropRectChanged=function(E){this.cropRect=E,this.zoomToCropEnabled?this.zoomToCrop():this.cropLayer.zoomFactor=1},B.prototype.attachEvents=function(){window.addEventListener("resize",this.onWindowResize)},B.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},B.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},B.prototype.showUI=function(){switch(this.addStyles(),this.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.displayMode){case"inline":this.coverDiv.style.position="absolute";var E=this.styles.settings.hideTopToolbar?0:this.toolbarHeight,w=this.target.offsetTop>E+this.CANVAS_MARGIN?this.target.offsetTop-(E+this.CANVAS_MARGIN):0;this.coverDiv.style.top=w+"px",this.coverDiv.style.left=(this.target.offsetLeft>this.CANVAS_MARGIN?this.target.offsetLeft-this.CANVAS_MARGIN:0)+"px",this.coverDiv.style.width=this.target.offsetWidth+this.CANVAS_MARGIN+"px",this.coverDiv.style.zIndex=this.styles.settings.zIndex!==void 0?this.styles.settings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.styles.settings.zIndex!==void 0?this.styles.settings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.displayMode==="popup"?this.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.addToolbars(),this.uiDiv.appendChild(this.topToolbar.getUI()),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.alignItems="center",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.contentDiv.style.overflow="hidden",this.contentDiv.style.backgroundColor=this.styles.settings.canvasBackgroundColor,this.displayMode==="popup"&&(this.contentDiv.style.maxHeight="calc(100vh - "+(2*this.popupMargin+2*this.toolbarHeight)+"px)",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.popupMargin+"px)"),this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.contentDiv.appendChild(this.editorCanvas),this.uiDiv.appendChild(this.bottomToolbar.getUI()),this.straightener.angle=this.rotationAngle},B.prototype.addToolbars=function(){this.addTopToolbar(),this.addBottomToolbar()},B.prototype.addTopToolbar=function(){var E=this;this.topToolbar=new wt,this.topToolbar.display=this.styles.settings.hideTopToolbar?"none":"",this.topToolbar.className=this.toolbarStyleClass.name,this.topToolbar.colorsClassName=this.styles.settings.toolbarStyleColorsClassName?this.styles.settings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name,this.topToolbar.fadeInClassName=this.styles.fadeInAnimationClassName,this.topToolbar.blockClassName=this.toolbarBlockStyleClass.name,this.topToolbar.buttonClassName=this.toolbarButtonStyleClass.name,this.topToolbar.buttonColorsClassName=this.styles.settings.toolbarButtonStyleColorsClassName?this.styles.settings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,this.topToolbar.buttonActiveColorsClassName=this.styles.settings.toolbarActiveButtonStyleColorsClassName?this.styles.settings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name;var w=new vn;w.minWidth=3*this.toolbarHeight+"px",this.topToolbar.addButtonBlock(w);var U=[];this.aspectRatios.forEach(function(Pt){var tn=new yn(Yt.getIcon(Pt.horizontal,Pt.vertical),Pt.horizontal===0&&Pt.vertical===0?"FREE":Pt.horizontal+":"+Pt.vertical);tn.onClick=function(){return E.ratioButtonClicked(Pt)},U.push(tn)}),this.aspectRatioButton=new Tn(Yt.getIcon(0,0),"Aspect ratio",U),this.aspectRatioButton.dropdownClassName=this.toolbarDropdownStyleClass.name,this.aspectRatioButton.dropdownColorsClassName=this.styles.settings.toolbarDropdownStyleColorsClassName?this.styles.settings.toolbarDropdownStyleColorsClassName:this.toolbarDropdownStyleColorsClass.name,w.addButton(this.aspectRatioButton),this.aspectRatios.length<2&&this.aspectRatioButton.hide();var z=new yn('<svg viewBox="0 0 24 24"><path d="M10 4v4h4V4h-4m6 0v4h4V4h-4m0 6v4h4v-4h-4m0 6v4h4v-4h-4m-2 4v-4h-4v4h4m-6 0v-4H4v4h4m0-6v-4H4v4h4m0-6V4H4v4h4m2 6h4v-4h-4v4M4 2h16a2 2 0 012 2v16a2 2 0 01-2 2H4c-1.08 0-2-.9-2-2V4a2 2 0 012-2z"/></svg>',"Toggle grid");z.isActive=this.isGridVisible,z.onClick=function(){E.isGridVisible=!E.isGridVisible,z.isActive=E.isGridVisible},w.addButton(z);var F=new yn('<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"Zoom to selection");if(F.isActive=this.zoomToCropEnabled,F.onClick=function(){E.zoomToCropEnabled=!E.zoomToCropEnabled,F.isActive=E.zoomToCropEnabled},w.addButton(F),!Nt.isLicensed){var me=new Dn;this.topToolbar.addElementBlock(me);var Ke=document.createElement("div");Ke.className=this.topToolbar.buttonClassName+" "+this.topToolbar.buttonColorsClassName;var ct=document.createElement("a");ct.style.color="currentColor",ct.href="https://markerjs.com/products/cropro",ct.target="_blank",ct.innerHTML='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2"><path d="M16.326 14.895c0 1.126-.558 1.688-1.673 1.688H9.931c-1.116 0-1.674-.562-1.674-1.688V3.733c0-1.126.558-1.688 1.674-1.688h4.722c1.115 0 1.673.562 1.673 1.688v2.899h-1.957V3.793h-4.124v11.042h4.124v-3.242h1.957v3.302z" fill="currentColor"/><path d="M15.94 7.364a.783.783 0 00-1.065-.304l-11.01 6.126a.783.783 0 00-.303 1.065l4.498 8.085a.783.783 0 001.065.304l11.01-6.126a.783.783 0 00.303-1.065L15.94 7.364zM5.311 14.173l3.737 6.718 9.641-5.364-3.737-6.718-9.641 5.364z" fill="#eef762"/></svg>',Ke.appendChild(ct),me.addElement(Ke)}var yt=new vn;yt.minWidth=3*this.toolbarHeight+"px",yt.contentAlign="end",this.topToolbar.addButtonBlock(yt);var Ve=new yn('<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"OK");Ve.onClick=this.startRenderAndClose,yt.addButton(Ve),this.styles.settings.toolbarOkButtonStyleColorsClassName&&(Ve.colorsClassName=this.styles.settings.toolbarOkButtonStyleColorsClassName);var Ct=new yn('<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"Close");Ct.onClick=this.close,yt.addButton(Ct),this.styles.settings.toolbarCloseButtonStyleColorsClassName&&(Ct.colorsClassName=this.styles.settings.toolbarCloseButtonStyleColorsClassName)},B.prototype.addBottomToolbar=function(){var E=this;this.bottomToolbar=new wt,this.bottomToolbar.display=this.styles.settings.hideBottomToolbar?"none":"",this.bottomToolbar.className=this.toolbarStyleClass.name,this.bottomToolbar.colorsClassName=this.styles.settings.toolbarStyleColorsClassName?this.styles.settings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name,this.bottomToolbar.fadeInClassName=this.styles.fadeInAnimationClassName,this.bottomToolbar.blockClassName=this.toolbarBlockStyleClass.name,this.bottomToolbar.buttonClassName=this.toolbarButtonStyleClass.name,this.bottomToolbar.buttonColorsClassName=this.styles.settings.toolbarButtonStyleColorsClassName?this.styles.settings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,this.bottomToolbar.buttonActiveColorsClassName=this.styles.settings.toolbarActiveButtonStyleColorsClassName?this.styles.settings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name;var w=new vn;w.minWidth=2*this.toolbarHeight+"px",this.bottomToolbar.addButtonBlock(w);var U=new yn('<svg viewBox="0 0 24 24"><path d="M13 4.07V1L8.45 5.55 13 10V6.09c2.84.48 5 2.94 5 5.91s-2.16 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93s-3.05-7.44-7-7.93M7.1 18.32c1.16.9 2.51 1.44 3.9 1.61V17.9c-.87-.15-1.71-.49-2.46-1.03L7.1 18.32M6.09 13H4.07c.17 1.39.72 2.73 1.62 3.89l1.41-1.42c-.52-.75-.87-1.59-1.01-2.47m1.02-4.47L5.7 7.11C4.8 8.27 4.24 9.61 4.07 11h2.02c.14-.87.49-1.72 1.02-2.47z"/></svg>',"Rotate left");U.onClick=this.rotateLeftButtonClicked,w.addButton(U);var z=new yn('<svg viewBox="0 0 24 24"><path d="M16.89 15.5l1.42 1.39c.9-1.16 1.45-2.5 1.62-3.89h-2.02c-.14.87-.48 1.72-1.02 2.5M13 17.9v2.02c1.39-.17 2.74-.71 3.9-1.61l-1.44-1.44c-.75.54-1.59.89-2.46 1.03m6.93-6.9a7.906 7.906 0 00-1.62-3.89l-1.42 1.42c.54.75.88 1.6 1.02 2.47m-2.36-5.45L11 1v3.07C7.06 4.56 4 7.92 4 12s3.05 7.44 7 7.93v-2.02c-2.84-.48-5-2.94-5-5.91s2.16-5.43 5-5.91V10l4.55-4.45z"/></svg>',"Rotate right");z.onClick=this.rotateRightButtonClicked,w.addButton(z);var F=new Dn;F.className=this.toolbarStraightenerBlockStyleClass.name,this.bottomToolbar.addElementBlock(F),this.straightener=new An("Straighten"),this.straightener.className=this.toolbarStraightenerStyleClass.name,this.straightener.colorsClassName=this.styles.settings.toolbarStraightenerColorsClassName?this.styles.settings.toolbarStraightenerColorsClassName:this.toolbarStraightenerStyleColorsClass.name,this.straightener.onAngleChange=function(yt){E.rotateBy(yt),E.straightener.angle=E.rotationAngle},F.addElement(this.straightener.getUI());var me=new vn;me.minWidth=2*this.toolbarHeight+"px",me.contentAlign="end",this.bottomToolbar.addButtonBlock(me);var Ke=new yn('<svg viewBox="0 0 24 24"><path d="M15 21h2v-2h-2m4-10h2V7h-2M3 5v14c0 1.1.9 2 2 2h4v-2H5V5h4V3H5c-1.1 0-2 .9-2 2m16-2v2h2c0-1.1-.9-2-2-2m-8 20h2V1h-2m8 16h2v-2h-2M15 5h2V3h-2m4 10h2v-2h-2m0 10c1.1 0 2-.9 2-2h-2z"/></svg>',"Flip horizontal");Ke.onClick=this.flipHorizontallyButtonClicked,me.addButton(Ke);var ct=new yn('<svg viewBox="0 0 24 24"><path d="M3 15v2h2v-2m10 4v2h2v-2m2-16H5c-1.1 0-2 .9-2 2v4h2V5h14v4h2V5c0-1.1-.9-2-2-2m2 16h-2v2c1.1 0 2-.9 2-2M1 11v2h22v-2M7 19v2h2v-2m10-4v2h2v-2m-10 4v2h2v-2M3 19c0 1.1.9 2 2 2v-2z"/></svg>',"Flip vertical");ct.onClick=this.flipVerticallyButtonClicked,me.addButton(ct)},B.prototype.ratioButtonClicked=function(E){this.aspectRatio=E,this.applyAspectRatio(),this.aspectRatioButton.hideDropdown()},B.prototype.applyAspectRatio=function(){this.setCropLayerAspectRatio(),this.aspectRatioButton.icon=Yt.getIcon(this.aspectRatio.horizontal,this.aspectRatio.vertical)},B.prototype.setCropLayerAspectRatio=function(){this.cropLayer&&(this.aspectRatio&&this.aspectRatio.horizontal!==0&&this.aspectRatio.vertical!==0?this.cropLayer.aspectRatio=new Pn(this.aspectRatio.horizontal,this.aspectRatio.vertical):this.cropLayer.aspectRatio=void 0)},B.prototype.closeUI=function(){this.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},B.prototype.getState=function(){return{width:this.imageWidth,height:this.imageHeight,rotationAngle:this.rotationAngle,flippedHorizontally:this.flippedHorizontally,flippedVertically:this.flippedVertically,cropRect:Object.assign({},this.cropRect)}},B.prototype.restoreState=function(E){if(E){var w=this.cropLayer.getRescaledRect(E.width,E.height,this.imageWidth,this.imageHeight,E.cropRect,this.CANVAS_MARGIN);this.cropLayer.setCropRectangle(w),this.cropRectChanged(w),this.flippedHorizontally=E.flippedHorizontally,this.flippedVertically=E.flippedVertically,this.applyFlip(),this.rotationAngle=E.rotationAngle,this.applyRotation()}},B.prototype.clientToLocalCoordinates=function(E,w){var U=this.cropImage.getBoundingClientRect();return{x:E-U.left,y:w-U.top}},B.prototype.onWindowResize=function(){this.positionUI()},B.prototype.positionUI=function(){switch(this.setTopLeft(),this.displayMode){case"inline":var E=this.target.offsetTop>this.toolbarHeight?this.target.offsetTop-this.toolbarHeight:0;this.coverDiv.style.top=E+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight="calc(100vh - "+(2*this.popupMargin+2*this.toolbarHeight)+"px)"}this.positionCropImage()},B.prototype.rotateLeftButtonClicked=function(){var E=this.rotationAngle-90;this.rotationAngle%90!=0&&(E+=this.rotationAngle>=0?90-this.rotationAngle%90:-this.rotationAngle%90),this.rotateTo(E)},B.prototype.rotateRightButtonClicked=function(){var E=this.rotationAngle+90;this.rotationAngle%90!=0&&(E-=this.rotationAngle>=0?this.rotationAngle%90:90+this.rotationAngle%90),this.rotateTo(E)},B.prototype.rotateTo=function(E){E=(E=E>180?E-360:E)<=-180?E+360:E,this.rotationAngle=E,this.applyRotation()},B.prototype.rotateBy=function(E){this.rotateTo((this.rotationAngle+E)%360)},B.prototype.applyRotation=function(){var E=this.zoomToCropEnabled;this.zoomToCropEnabled=!1,this.editingTargetRotationScaleContainer.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationScaleContainer.style.transform="scale(1)";var w=this.editingTargetRotationContainer.transform.baseVal.getItem(0);w.setRotate(this.rotationAngle,this.imageWidth/2,this.imageHeight/2),this.editingTargetRotationContainer.transform.baseVal.replaceItem(w,0);var U=this.editingTarget.getBoundingClientRect();this.scaleFactor=Math.min(this.imageWidth/U.width,this.imageHeight/U.height),this.editingTargetRotationScaleContainer.style.transform="scale("+this.scaleFactor+")",this.zoomToCropEnabled=E},B.prototype.flipHorizontallyButtonClicked=function(){this.flippedHorizontally=!this.flippedHorizontally,this.applyFlip()},B.prototype.flipVerticallyButtonClicked=function(){this.flippedVertically=!this.flippedVertically,this.applyFlip()},B.prototype.applyFlip=function(){this.editingTarget.style.transform="scale("+(this.flippedHorizontally?-1:1)+","+(this.flippedVertically?-1:1)+")"},B.prototype.startRenderAndClose=function(){return _t(this,void 0,void 0,function(){var E,w;return St(this,function(U){switch(U.label){case 0:return[4,this.render()];case 1:return E=U.sent(),w=this.getState(),this.renderEventListeners.forEach(function(z){return z(E,w)}),this.close(!0),[2]}})})},B.prototype.render=function(){return _t(this,void 0,void 0,function(){var E;return St(this,function(w){switch(w.label){case 0:return(E=new Nn).naturalSize=this.renderAtNaturalSize,E.imageType=this.renderImageType,E.imageQuality=this.renderImageQuality,E.width=this.renderWidth,E.height=this.renderHeight,this.unzoomFromCrop(),Xe.setAttributes(this.cropLayerContainer,[["display","none"]]),[4,E.rasterize(this.cropImage,this.target,{x:this.cropRect.x,y:this.cropRect.y,width:this.cropRect.width,height:this.cropRect.height},this.CANVAS_MARGIN,this.rotationAngle,this.scaleFactor*(this.flippedHorizontally?-1:1),this.scaleFactor*(this.flippedVertically?-1:1))];case 1:return w.sent(),[4,E.rasterize(this.cropImage,this.target,{x:this.cropRect.x,y:this.cropRect.y,width:this.cropRect.width,height:this.cropRect.height},this.CANVAS_MARGIN,this.rotationAngle,this.scaleFactor*(this.flippedHorizontally?-1:1),this.scaleFactor*(this.flippedVertically?-1:1))];case 2:return[2,w.sent()]}})})},B.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new pt("toolbar",`
|
|
width: `+(this.displayMode==="inline"?"100%":"calc(100vw - "+2*this.popupMargin+"px)")+`;
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: space-between;
|
|
height: `+this.toolbarHeight+`px;
|
|
box-sizing: content-box;
|
|
overflow: hidden;
|
|
line-height: 0px;
|
|
`)),this.toolbarStyleColorsClass=this.styles.addClass(new pt("toolbar_colors",`
|
|
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new pt("toolbar-block",`
|
|
display: flex;
|
|
align-items: center;
|
|
box-sizing: content-box;
|
|
`));var E=this.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new pt("toolbar_button",`
|
|
display: inline-block;
|
|
width: `+(this.toolbarHeight-2*E)+`px;
|
|
height: `+(this.toolbarHeight-2*E)+`px;
|
|
padding: `+E+`px;
|
|
cursor: default;
|
|
user-select: none;
|
|
box-sizing: content-box;
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new pt("toolbar_button_colors",`
|
|
color: `+this.styles.settings.toolbarColor+`;
|
|
fill: currentColor;
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new pt("toolbar_active_button",`
|
|
color: `+this.styles.settings.toolbarColor+`;
|
|
fill: currentColor;
|
|
background-color: `+this.styles.settings.toolbarBackgroundActiveColor+`
|
|
`)),this.styles.addRule(new ut("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
height: `+this.toolbarHeight/2+`px;
|
|
`)),this.styles.addRule(new ut("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
background-color: `+this.styles.settings.toolbarBackgroundHoverColor+`
|
|
`)),this.toolbarDropdownStyleClass=this.styles.addClass(new pt("toolbar_dropdown",`
|
|
position: absolute;
|
|
max-width: `+4*this.toolbarHeight+`px;
|
|
z-index: 20;
|
|
white-space: normal;
|
|
box-sizing: content-box;
|
|
box-shadow: 3px 3px rgba(33, 33, 33, 0.1);
|
|
margin: `+(this.displayMode==="inline"?"0":this.popupMargin)+`px;
|
|
line-height: 0px;
|
|
`)),this.toolbarDropdownStyleColorsClass=this.styles.addClass(new pt("toolbar_dropdown_colors",`
|
|
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
|
|
`)),this.toolbarStraightenerBlockStyleClass=this.styles.addClass(new pt("toolbar_straightener_block",`
|
|
display: flex;
|
|
overflow: hidden;
|
|
justify-content: center;
|
|
-webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 30%, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
|
|
`)),this.toolbarStraightenerStyleClass=this.styles.addClass(new pt("toolbar_straightener",`
|
|
display: flex;
|
|
overflow: hidden;
|
|
justify-content: center;
|
|
height: `+(this.toolbarHeight-2*E)+`px;
|
|
padding: `+E+`px;
|
|
cursor: default;
|
|
user-select: none;
|
|
box-sizing: content-box;
|
|
`)),this.toolbarStraightenerStyleColorsClass=this.styles.addClass(new pt("toolbar_straightener_colors",`
|
|
color: `+this.styles.settings.toolbarColor+`;
|
|
fill: currentColor;
|
|
`))},B.instanceCounter=0,B}(),Yn=N("8hTe"),kt=N.n(Yn),qn=/<pre[^>]*>/g;function fi(B){var E=document.createElement("div");return E.innerHTML=B,E.childNodes.length===0?"":E.childNodes[0].nodeValue}var $n=ie.a=function(B){var E=B.value,w=E===void 0?"":E,U=B.edit,z=U===void 0?!1:U,F=B.className,me=B.showTextOnly,Ke=B.showLines,ct=B.replaces,yt=B.zoomImg,Ve=B.hasMask,Ct=B.style,Pt=Ct===void 0?{}:Ct,tn=B.stylesPrev,kn=tn===void 0?{}:tn,Xn=String(w),Pe=Object(O.useRef)(),On=Object(O.useRef)(),oi=Object(O.useState)(""),Jn=Object(H.a)(oi,2),pi=Jn[0],ei=Jn[1],_n=Object(O.useState)("office"),Kn=Object(H.a)(_n,2),li=Kn[0],mi=Kn[1],xi=function(){var Bt=new Vn(On.current);Bt.displayMode="popup",Bt.addRenderEventListener(function(){var hn=Object(R.a)(e.a.mark(function Vt(Sn){var nn;return e.a.wrap(function(wn){for(;;)switch(wn.prev=wn.next){case 0:return Pe.current.style.display="none",wn.next=3,Object(Se.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:Sn}});case 3:nn=wn.sent,nn!=null&&nn.id&&ct(On.current.getAttribute("src").replace(Y.a.API_SERVER,""),"/api/attachments/".concat(nn==null?void 0:nn.id,"?type=").concat(nn.content_type));case 5:case"end":return wn.stop()}},Vt)}));return function(Vt){return hn.apply(this,arguments)}}()),Bt.show()},Ni=function(){var Bt=new Rt(On.current);Bt.settings.displayMode="popup",Bt.addEventListener("render",function(){var hn=Object(R.a)(e.a.mark(function Vt(Sn){var nn;return e.a.wrap(function(wn){for(;;)switch(wn.prev=wn.next){case 0:if(Pe.current.style.display="none",!On.current){wn.next=6;break}return wn.next=4,Object(Se.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:Sn.dataUrl}});case 4:nn=wn.sent,nn!=null&&nn.id&&ct(On.current.getAttribute("src").replace(Y.a.API_SERVER,""),"/api/attachments/".concat(nn==null?void 0:nn.id,"?type=").concat(nn.content_type));case 6:case"end":return wn.stop()}},Vt)}));return function(Vt){return hn.apply(this,arguments)}}()),Bt.show(),window.markerArea=Bt},ui=Object(O.useMemo)(function(){Pe.current&&(Pe.current.style.zIndex=-1);try{var an=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,Bt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,hn=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;Xn=Xn.replace(an,"("+Y.a.API_SERVER+"/api/attachments/").replace(Bt,'"'+Y.a.API_SERVER+"/api/attachments/").replace(hn,'"'+Y.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(vi){}var Vt=A(Xn),Sn=v();if(Xn.match(/\[TOC\]/)&&(Vt=Vt.replace("<p>[TOC]</p>",x()),b()),Vt=Vt.replace(/(__special_katext_id_\d+__)/g,function(vi,wn){var Ti=Sn[wn],yi=Ti.type,bi=Ti.expression;return Object(oe.renderToString)(fi(bi)||"",{displayMode:yi==="block",throwOnError:!1,output:"html"})}),Vt=Vt.replace(/▁/g,"\u2581\u2581\u2581"),f(),me){var nn=document.createElement("div");return nn.innerHTML=Vt,nn.innerText}return setTimeout(function(){return Ri()},500),Vt},[Xn]),Rn=Object(O.useRef)();g.WebkitLineClamp=Ke,Ke&&(Pt=Object(C.a)(Object(C.a)({},Pt),g));function ti(an){var Bt=an.target;if(Bt.tagName.toUpperCase()==="IMG"){if(yt){var hn=Bt.getAttribute("src");ei(hn),mi("image")}}else if(Bt.tagName.toUpperCase()==="A"){var Vt=Bt.getAttribute("href");if(Vt.indexOf("office")>-1)an.preventDefault(),ei(Vt),mi("office");else if(Vt.indexOf("application/pdf")>-1)an.preventDefault(),ei(Vt),mi("pdf");else if(Vt.indexOf("text/html")>-1)an.preventDefault(),ei(Vt),mi("html");else if(Vt.startsWith("#")){an.preventDefault();var Sn=document.getElementById(Vt.replace("#",""));Sn&&Sn.scrollIntoView(!0)}}}var Ri=function(){var Bt,hn=(Bt=Rn.current)===null||Bt===void 0?void 0:Bt.querySelectorAll("video");hn==null||hn.forEach(function(Vt){if(Vt.oncontextmenu=function(){return!1},Vt.src.indexOf(".m3u8")>-1&&!Vt.canPlayType("application/vnd.apple.mpegurl")){if(K.a.isSupported()){var Sn=new K.a;Sn.loadSource(Vt.src),Sn.attachMedia(Vt)}}})};Object(O.useEffect)(function(){if(Rn.current&&ui&&(ui.match(qn)&&window.PR.prettyPrint()),Rn.current)return Rn.current.addEventListener("click",ti),function(){Rn.current.removeEventListener("click",ti),f(),b()}},[ui,Rn.current,ti]);var gi=function(Bt){if(!z)return;Bt.target.nodeName==="IMG"?(Pe.current.style.zIndex=1,Pe.current.style.display="flex",Pe.current.style.width=Bt.target.clientWidth+"px",Pe.current.style.height=Bt.target.clientHeight+"px",Pe.current.style.top=Bt.target.offsetTop+"px",Pe.current.style.left=Bt.target.offsetLeft+"px",On.current.src=Bt.target.getAttribute("src")):Pe.current.style.display="none"};return y.a.createElement("div",{style:{position:"relative"}},y.a.createElement("div",{ref:Rn,style:Object(C.a)({},Pt),className:"".concat(F||""," markdown-body ").concat(kt.a.mdBody),onMouseOver:gi,dangerouslySetInnerHTML:{__html:ui}}),y.a.createElement("div",{ref:Pe,className:kt.a.button},y.a.createElement(M.a,null,y.a.createElement(j.a,{onClick:function(){return xi()}},"\u88C1\u526A"),y.a.createElement(j.a,{onClick:function(){return Ni()}},"\u7F16\u8F91"))),y.a.createElement("img",{ref:On,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1}}),y.a.createElement(le.a,{close:!0,data:pi,type:pi!=null&&pi.length?li:"",style:Object(C.a)({},kn),onClose:function(){return ei("")}}))}},"9JIy":function(Be,ie,N){Be.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(Be,ie){var N=function(Q){return Q.replace(/[A-Z]/g,function(M){return"-"+M.toLowerCase()}).toLowerCase()};Be.exports=N},BU3w:function(Be,ie,N){"use strict";N.d(ie,"a",function(){return R});var Q=N("MNnm"),M="rc-util-key";function I(H){if(H.attachTo)return H.attachTo;var k=document.querySelector("head");return k||document.body}function j(H){var k,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(Q.a)())return null;var O=document.createElement("style");if((k=e.csp)===null||k===void 0?void 0:k.nonce){var y;O.nonce=(y=e.csp)===null||y===void 0?void 0:y.nonce}O.innerHTML=H;var p=I(e),c=p.firstChild;return e.prepend&&p.prepend?p.prepend(O):e.prepend&&c?p.insertBefore(O,c):p.appendChild(O),O}var C=new Map;function R(H,k){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},O=I(e);if(!C.has(O)){var y=j("",e),p=y.parentNode;C.set(O,p),p.removeChild(y)}var c=Array.from(C.get(O).children).find(function(i){return i.tagName==="STYLE"&&i[M]===k});if(c){var a,r;if(((a=e.csp)===null||a===void 0?void 0:a.nonce)&&c.nonce!==((r=e.csp)===null||r===void 0?void 0:r.nonce)){var s;c.nonce=(s=e.csp)===null||s===void 0?void 0:s.nonce}return c.innerHTML!==H&&(c.innerHTML=H),c}var o=j(H,e);return o[M]=k,o}},BdwD:function(Be,ie,N){"use strict";var Q=N("+L6B"),M=N("2/Rp"),I=N("0Owb"),j=N("k1fw"),C=N("q1tI"),R=N.n(C),H=N("FOrL"),k=N.n(H),e=function(y){var p=y.buttonProps,c=p===void 0?{}:p,a=y.styles,r=a===void 0?{}:a,s=y.customText,o=y.ButtonText,i=y.ButtonClick,n=y.Buttonclass,t=y.ButtonTwo;return R.a.createElement("section",{className:"tc animated fadeIn",style:Object(j.a)(Object(j.a)({},{color:"#999",margin:"200px auto"}),r)},R.a.createElement("img",{src:k.a}),R.a.createElement("p",{className:"mt20 font14"},s||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),o&&R.a.createElement(M.a,Object(I.a)({className:n,onClick:i},c),o),t&&t)};ie.a=e},Bq7L:function(Be,ie){Be.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAN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lv18buunIcumZ5czt46gZSs64BTh7OjBwpJFnZwYU7+cCmTlyzB0028ZrXKcR6Jxe+mdgxxJQtOWIU4CrHzdYPP3Z2Y7fvi5GV+b7MXmWYgcopi0xiM2g+aARvh7kfhP0LUf0GAk5vu2l7qDTPpoSCY0ePUDpTunRVwzrnO6xE/NNFm5KCXcBHTJaLFT5yQWdHkrsOhs7L6co+ucCTKMJR9jRF+cCjMUwK2HW0MD1Tjh6gpVh+hPz2Q5NE+ApyBTrznDo9LbWHe79tHFIigACaXJOH/VUrXB1mMuxTbne1j+nqSltjZY235NX5UFFiGlfJDR69AHV5keOUEEkb+9wVHMac/UTouTm5wBmjEvpMh6oblKRUxnGb14reHzMaoSMNEtAheoac74HDkkRpZae4ZslHepeeb3De4DL6O1load9/JQ1nE1dJKCCNTmTPUmQUPi90kItobXDdxNpYCQe2F/tQXl96J+PUoD30jJwUdDZe7vsehTJ00Za1skpH4O6DO5SMu4CNj0eqTWyfCfwQF0zkFUR3qf3oWj0rjdCHZJqxE0YczF/PRpJ4zJyf+l8b3ayV5jrZ7W/RSQ6ZdkO6QGyfTvL3Giyye0zGx2KRu96gOqQTSaN6ugeKKpTUVQTBjkRgkaXgOroLS3ti4kH+L3hjjICKvS22cFodAmomDSXrKQzeGBPpQc1Nl/yBthvQ6NLQHWGlpY2xsQDFQ0q8qrCm/bZ0egSUDFpKllJZ/AAOYnM8GJS3sexotEloDpDS0sbY+aBAzUelNWFjknpBvnT6BJQMWsqWVFn8EC9G9hdHl5MyjtK+WWjS0B1hlaWNsbUA9mVbtQ2hWb7TKPU7anp8Eb9JaBi2lSyss7ggQjJCZ+90SWgOkMLSxtj5gGOS/zHmJQ7jMyJFsM0Gl0CKmZNJSvqTB4oqPGgJAJyQqfRJaA6UytLW2PmgcoGFfvCj0m10Oj/A9jGm+feuyEMAAAAAElFTkSuQmCC"},"C/vA":function(Be,ie,N){"use strict";N.d(ie,"a",function(){return Q});function Q(M){const I=this;let j=!1,C;return function(){return j||(j=!0,C=M.apply(I,arguments)),C}}},"Cg/j":function(Be,ie,N){"use strict";N.d(ie,"b",function(){return Q}),N.d(ie,"a",function(){return M}),N.d(ie,"c",function(){return j}),N.d(ie,"d",function(){return C});var Q;(function(R){R.serviceIds=new Map,R.DI_TARGET="$di$target",R.DI_DEPENDENCIES="$di$dependencies";function H(k){return k[R.DI_DEPENDENCIES]||[]}R.getServiceDependencies=H})(Q||(Q={}));const M=j("instantiationService");function I(R,H,k,e){H[Q.DI_TARGET]===H?H[Q.DI_DEPENDENCIES].push({id:R,index:k,optional:e}):(H[Q.DI_DEPENDENCIES]=[{id:R,index:k,optional:e}],H[Q.DI_TARGET]=H)}function j(R){if(Q.serviceIds.has(R))return Q.serviceIds.get(R);const H=function(k,e,O){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");I(H,k,O,!1)};return H.toString=()=>R,Q.serviceIds.set(R,H),H}function C(R){return function(H,k,e){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");I(R,H,e,!0)}}},DlQD:function(Be,ie,N){(function(Q,M){Be.exports=M()})(this,function(){"use strict";function Q(he,se){for(var re=0;re<se.length;re++){var G=se[re];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(he,G.key,G)}}function M(he,se,re){return se&&Q(he.prototype,se),re&&Q(he,re),he}function I(he,se){if(!he)return;if(typeof he=="string")return j(he,se);var re=Object.prototype.toString.call(he).slice(8,-1);if(re==="Object"&&he.constructor&&(re=he.constructor.name),re==="Map"||re==="Set")return Array.from(he);if(re==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(re))return j(he,se)}function j(he,se){(se==null||se>he.length)&&(se=he.length);for(var re=0,G=new Array(se);re<se;re++)G[re]=he[re];return G}function C(he,se){var re;if(typeof Symbol=="undefined"||he[Symbol.iterator]==null){if(Array.isArray(he)||(re=I(he))||se&&he&&typeof he.length=="number"){re&&(he=re);var G=0;return function(){return G>=he.length?{done:!0}:{done:!1,value:he[G++]}}}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 re=he[Symbol.iterator](),re.next.bind(re)}function R(he,se){return se={exports:{}},he(se,se.exports),se.exports}var H=R(function(he){function se(){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 re(G){he.exports.defaults=G}he.exports={defaults:se(),getDefaults:se,changeDefaults:re}}),k=H.defaults,e=H.getDefaults,O=H.changeDefaults,y=/[&<>"']/,p=/[&<>"']/g,c=/[<>"']|&(?!#?\w+;)/,a=/[<>"']|&(?!#?\w+;)/g,r={"&":"&","<":"<",">":">",'"':""","'":"'"},s=function(se){return r[se]};function o(he,se){if(se){if(y.test(he))return he.replace(p,s)}else if(c.test(he))return he.replace(a,s);return he}var i=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function n(he){return he.replace(i,function(se,re){return re=re.toLowerCase(),re==="colon"?":":re.charAt(0)==="#"?re.charAt(1)==="x"?String.fromCharCode(parseInt(re.substring(2),16)):String.fromCharCode(+re.substring(1)):""})}var t=/(^|[^\[])\^/g;function b(he,se){he=he.source||he,se=se||"";var re={replace:function(X,Z){return Z=Z.source||Z,Z=Z.replace(t,"$1"),he=he.replace(X,Z),re},getRegex:function(){return new RegExp(he,se)}};return re}var g=/[^\w:]/g,m=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function x(he,se,re){if(he){var G;try{G=decodeURIComponent(n(re)).replace(g,"").toLowerCase()}catch(X){return null}if(G.indexOf("javascript:")===0||G.indexOf("vbscript:")===0||G.indexOf("data:")===0)return null}se&&!m.test(re)&&(re=h(se,re));try{re=encodeURI(re).replace(/%25/g,"%")}catch(X){return null}return re}var _={},d=/^[^:]+:\/*[^/]*$/,u=/^([^:]+:)[\s\S]*$/,l=/^([^:]+:\/*[^/]*)[\s\S]*$/;function h(he,se){_[" "+he]||(d.test(he)?_[" "+he]=he+"/":_[" "+he]=P(he,"/",!0)),he=_[" "+he];var re=he.indexOf(":")===-1;return se.substring(0,2)==="//"?re?se:he.replace(u,"$1")+se:se.charAt(0)==="/"?re?se:he.replace(l,"$1")+se:he+se}var v={exec:function(){}};function f(he){for(var se=1,re,G;se<arguments.length;se++){re=arguments[se];for(G in re)Object.prototype.hasOwnProperty.call(re,G)&&(he[G]=re[G])}return he}function T(he,se){var re=he.replace(/\|/g,function(Z,te,ge){for(var we=!1,Me=te;--Me>=0&&ge[Me]==="\\";)we=!we;return we?"|":" |"}),G=re.split(/ \|/),X=0;if(G.length>se)G.splice(se);else for(;G.length<se;)G.push("");for(;X<G.length;X++)G[X]=G[X].trim().replace(/\\\|/g,"|");return G}function P(he,se,re){var G=he.length;if(G===0)return"";for(var X=0;X<G;){var Z=he.charAt(G-X-1);if(Z===se&&!re)X++;else if(Z!==se&&re)X++;else break}return he.substr(0,G-X)}function L(he,se){if(he.indexOf(se[1])===-1)return-1;for(var re=he.length,G=0,X=0;X<re;X++)if(he[X]==="\\")X++;else if(he[X]===se[0])G++;else if(he[X]===se[1]&&(G--,G<0))return X;return-1}function S(he){he&&he.sanitize&&!he.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 A={escape:o,unescape:n,edit:b,cleanUrl:x,resolveUrl:h,noopTest:v,merge:f,splitCells:T,rtrim:P,findClosingBracket:L,checkSanitizeDeprecation:S},W=H.defaults,D=A.rtrim,K=A.splitCells,Y=A.escape,oe=A.findClosingBracket;function le(he,se,re){var G=se.href,X=se.title?Y(se.title):null,Z=he[1].replace(/\\([\[\]])/g,"$1");return he[0].charAt(0)!=="!"?{type:"link",raw:re,href:G,title:X,text:Z}:{type:"image",raw:re,href:G,title:X,text:Y(Z)}}function Se(he,se){var re=he.match(/^(\s+)(?:```)/);if(re===null)return se;var G=re[1];return se.split(`
|
|
`).map(function(X){var Z=X.match(/^\s+/);if(Z===null)return X;var te=Z[0];return te.length>=G.length?X.slice(G.length):X}).join(`
|
|
`)}var Ee=function(){function he(re){this.options=re||W}var se=he.prototype;return se.space=function(G){var X=this.rules.block.newline.exec(G);if(X)return X[0].length>1?{type:"space",raw:X[0]}:{raw:`
|
|
`}},se.code=function(G,X){var Z=this.rules.block.code.exec(G);if(Z){var te=X[X.length-1];if(te&&te.type==="paragraph")return{raw:Z[0],text:Z[0].trimRight()};var ge=Z[0].replace(/^ {4}/gm,"");return{type:"code",raw:Z[0],codeBlockStyle:"indented",text:this.options.pedantic?ge:D(ge,`
|
|
`)}}},se.fences=function(G){var X=this.rules.block.fences.exec(G);if(X){var Z=X[0],te=Se(Z,X[3]||"");return{type:"code",raw:Z,lang:X[2]?X[2].trim():X[2],text:te}}},se.heading=function(G){var X=this.rules.block.heading.exec(G);if(X)return{type:"heading",raw:X[0],depth:X[1].length,text:X[2]}},se.nptable=function(G){var X=this.rules.block.nptable.exec(G);if(X){var Z={type:"table",header:K(X[1].replace(/^ *| *\| *$/g,"")),align:X[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:X[3]?X[3].replace(/\n$/,"").split(`
|
|
`):[],raw:X[0]};if(Z.header.length===Z.align.length){var te=Z.align.length,ge;for(ge=0;ge<te;ge++)/^ *-+: *$/.test(Z.align[ge])?Z.align[ge]="right":/^ *:-+: *$/.test(Z.align[ge])?Z.align[ge]="center":/^ *:-+ *$/.test(Z.align[ge])?Z.align[ge]="left":Z.align[ge]=null;for(te=Z.cells.length,ge=0;ge<te;ge++)Z.cells[ge]=K(Z.cells[ge],Z.header.length);return Z}}},se.hr=function(G){var X=this.rules.block.hr.exec(G);if(X)return{type:"hr",raw:X[0]}},se.blockquote=function(G){var X=this.rules.block.blockquote.exec(G);if(X){var Z=X[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:X[0],text:Z}}},se.list=function(G){var X=this.rules.block.list.exec(G);if(X){for(var Z=X[0],te=X[2],ge=te.length>1,we=te[te.length-1]===")",Me={type:"list",raw:Z,ordered:ge,start:ge?+te.slice(0,-1):"",loose:!1,items:[]},Ze=X[0].match(this.rules.block.item),ot=!1,ze,vt,bt,lt,Ot,Rt,xt,gt=Ze.length,_t=0;_t<gt;_t++)ze=Ze[_t],Z=ze,vt=ze.length,ze=ze.replace(/^ *([*+-]|\d+[.)]) */,""),~ze.indexOf(`
|
|
`)&&(vt-=ze.length,ze=this.options.pedantic?ze.replace(/^ {1,4}/gm,""):ze.replace(new RegExp("^ {1,"+vt+"}","gm"),"")),_t!==gt-1&&(bt=this.rules.block.bullet.exec(Ze[_t+1])[0],(ge?bt.length===1||!we&&bt[bt.length-1]===")":bt.length>1||this.options.smartLists&&bt!==te)&&(lt=Ze.slice(_t+1).join(`
|
|
`),Me.raw=Me.raw.substring(0,Me.raw.length-lt.length),_t=gt-1)),Ot=ot||/\n\n(?!\s*$)/.test(ze),_t!==gt-1&&(ot=ze.charAt(ze.length-1)===`
|
|
`,Ot||(Ot=ot)),Ot&&(Me.loose=!0),Rt=/^\[[ xX]\] /.test(ze),xt=void 0,Rt&&(xt=ze[1]!==" ",ze=ze.replace(/^\[[ xX]\] +/,"")),Me.items.push({type:"list_item",raw:Z,task:Rt,checked:xt,loose:Ot,text:ze});return Me}},se.html=function(G){var X=this.rules.block.html.exec(G);if(X)return{type:this.options.sanitize?"paragraph":"html",raw:X[0],pre:!this.options.sanitizer&&(X[1]==="pre"||X[1]==="script"||X[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(X[0]):Y(X[0]):X[0]}},se.def=function(G){var X=this.rules.block.def.exec(G);if(X){X[3]&&(X[3]=X[3].substring(1,X[3].length-1));var Z=X[1].toLowerCase().replace(/\s+/g," ");return{tag:Z,raw:X[0],href:X[2],title:X[3]}}},se.table=function(G){var X=this.rules.block.table.exec(G);if(X){var Z={type:"table",header:K(X[1].replace(/^ *| *\| *$/g,"")),align:X[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:X[3]?X[3].replace(/\n$/,"").split(`
|
|
`):[]};if(Z.header.length===Z.align.length){Z.raw=X[0];var te=Z.align.length,ge;for(ge=0;ge<te;ge++)/^ *-+: *$/.test(Z.align[ge])?Z.align[ge]="right":/^ *:-+: *$/.test(Z.align[ge])?Z.align[ge]="center":/^ *:-+ *$/.test(Z.align[ge])?Z.align[ge]="left":Z.align[ge]=null;for(te=Z.cells.length,ge=0;ge<te;ge++)Z.cells[ge]=K(Z.cells[ge].replace(/^ *\| *| *\| *$/g,""),Z.header.length);return Z}}},se.lheading=function(G){var X=this.rules.block.lheading.exec(G);if(X)return{type:"heading",raw:X[0],depth:X[2].charAt(0)==="="?1:2,text:X[1]}},se.paragraph=function(G){var X=this.rules.block.paragraph.exec(G);if(X)return{type:"paragraph",raw:X[0],text:X[1].charAt(X[1].length-1)===`
|
|
`?X[1].slice(0,-1):X[1]}},se.text=function(G,X){var Z=this.rules.block.text.exec(G);if(Z){var te=X[X.length-1];return te&&te.type==="text"?{raw:Z[0],text:Z[0]}:{type:"text",raw:Z[0],text:Z[0]}}},se.escape=function(G){var X=this.rules.inline.escape.exec(G);if(X)return{type:"escape",raw:X[0],text:Y(X[1])}},se.tag=function(G,X,Z){var te=this.rules.inline.tag.exec(G);if(te)return!X&&/^<a /i.test(te[0])?X=!0:X&&/^<\/a>/i.test(te[0])&&(X=!1),!Z&&/^<(pre|code|kbd|script)(\s|>)/i.test(te[0])?Z=!0:Z&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(te[0])&&(Z=!1),{type:this.options.sanitize?"text":"html",raw:te[0],inLink:X,inRawBlock:Z,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(te[0]):Y(te[0]):te[0]}},se.link=function(G){var X=this.rules.inline.link.exec(G);if(X){var Z=oe(X[2],"()");if(Z>-1){var te=X[0].indexOf("!")===0?5:4,ge=te+X[1].length+Z;X[2]=X[2].substring(0,Z),X[0]=X[0].substring(0,ge).trim(),X[3]=""}var we=X[2],Me="";if(this.options.pedantic){var Ze=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(we);Ze?(we=Ze[1],Me=Ze[3]):Me=""}else Me=X[3]?X[3].slice(1,-1):"";we=we.trim().replace(/^<([\s\S]*)>$/,"$1");var ot=le(X,{href:we&&we.replace(this.rules.inline._escapes,"$1"),title:Me&&Me.replace(this.rules.inline._escapes,"$1")},X[0]);return ot}},se.reflink=function(G,X){var Z;if((Z=this.rules.inline.reflink.exec(G))||(Z=this.rules.inline.nolink.exec(G))){var te=(Z[2]||Z[1]).replace(/\s+/g," ");if(te=X[te.toLowerCase()],!te||!te.href){var ge=Z[0].charAt(0);return{type:"text",raw:ge,text:ge}}var we=le(Z,te,Z[0]);return we}},se.strong=function(G,X,Z){Z===void 0&&(Z="");var te=this.rules.inline.strong.start.exec(G);if(te&&(!te[1]||te[1]&&(Z===""||this.rules.inline.punctuation.exec(Z)))){X=X.slice(-1*G.length);var ge=te[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;ge.lastIndex=0;for(var we;(te=ge.exec(X))!=null;)if(we=this.rules.inline.strong.middle.exec(X.slice(0,te.index+3)),we)return{type:"strong",raw:G.slice(0,we[0].length),text:G.slice(2,we[0].length-2)}}},se.em=function(G,X,Z){Z===void 0&&(Z="");var te=this.rules.inline.em.start.exec(G);if(te&&(!te[1]||te[1]&&(Z===""||this.rules.inline.punctuation.exec(Z)))){X=X.slice(-1*G.length);var ge=te[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;ge.lastIndex=0;for(var we;(te=ge.exec(X))!=null;)if(we=this.rules.inline.em.middle.exec(X.slice(0,te.index+2)),we)return{type:"em",raw:G.slice(0,we[0].length),text:G.slice(1,we[0].length-1)}}},se.codespan=function(G){var X=this.rules.inline.code.exec(G);if(X){var Z=X[2].replace(/\n/g," "),te=/[^ ]/.test(Z),ge=Z.startsWith(" ")&&Z.endsWith(" ");return te&&ge&&(Z=Z.substring(1,Z.length-1)),Z=Y(Z,!0),{type:"codespan",raw:X[0],text:Z}}},se.br=function(G){var X=this.rules.inline.br.exec(G);if(X)return{type:"br",raw:X[0]}},se.del=function(G){var X=this.rules.inline.del.exec(G);if(X)return{type:"del",raw:X[0],text:X[1]}},se.autolink=function(G,X){var Z=this.rules.inline.autolink.exec(G);if(Z){var te,ge;return Z[2]==="@"?(te=Y(this.options.mangle?X(Z[1]):Z[1]),ge="mailto:"+te):(te=Y(Z[1]),ge=te),{type:"link",raw:Z[0],text:te,href:ge,tokens:[{type:"text",raw:te,text:te}]}}},se.url=function(G,X){var Z;if(Z=this.rules.inline.url.exec(G)){var te,ge;if(Z[2]==="@")te=Y(this.options.mangle?X(Z[0]):Z[0]),ge="mailto:"+te;else{var we;do we=Z[0],Z[0]=this.rules.inline._backpedal.exec(Z[0])[0];while(we!==Z[0]);te=Y(Z[0]),Z[1]==="www."?ge="http://"+te:ge=te}return{type:"link",raw:Z[0],text:te,href:ge,tokens:[{type:"text",raw:te,text:te}]}}},se.inlineText=function(G,X,Z){var te=this.rules.inline.text.exec(G);if(te){var ge;return X?ge=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(te[0]):Y(te[0]):te[0]:ge=Y(this.options.smartypants?Z(te[0]):te[0]),{type:"text",raw:te[0],text:ge}}},he}(),ae=A.noopTest,Ce=A.edit,Le=A.merge,de={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:ae,table:ae,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};de._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,de._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,de.def=Ce(de.def).replace("label",de._label).replace("title",de._title).getRegex(),de.bullet=/(?:[*+-]|\d{1,9}[.)])/,de.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,de.item=Ce(de.item,"gm").replace(/bull/g,de.bullet).getRegex(),de.list=Ce(de.list).replace(/bull/g,de.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+de.def.source+")").getRegex(),de._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",de._comment=/<!--(?!-?>)[\s\S]*?-->/,de.html=Ce(de.html,"i").replace("comment",de._comment).replace("tag",de._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),de.paragraph=Ce(de._paragraph).replace("hr",de.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",de._tag).getRegex(),de.blockquote=Ce(de.blockquote).replace("paragraph",de.paragraph).getRegex(),de.normal=Le({},de),de.gfm=Le({},de.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*|$)"}),de.gfm.nptable=Ce(de.gfm.nptable).replace("hr",de.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",de._tag).getRegex(),de.gfm.table=Ce(de.gfm.table).replace("hr",de.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",de._tag).getRegex(),de.pedantic=Le({},de.normal,{html:Ce(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",de._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:ae,paragraph:Ce(de.normal._paragraph).replace("hr",de.hr).replace("heading",` *#{1,6} *[^
|
|
]`).replace("lheading",de.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var $={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:ae,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:ae,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/,punctuation:/^([\s*punctuation])/};$._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",$.punctuation=Ce($.punctuation).replace(/punctuation/g,$._punctuation).getRegex(),$._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",$._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",$.em.start=Ce($.em.start).replace(/punctuation/g,$._punctuation).getRegex(),$.em.middle=Ce($.em.middle).replace(/punctuation/g,$._punctuation).replace(/overlapSkip/g,$._overlapSkip).getRegex(),$.em.endAst=Ce($.em.endAst,"g").replace(/punctuation/g,$._punctuation).getRegex(),$.em.endUnd=Ce($.em.endUnd,"g").replace(/punctuation/g,$._punctuation).getRegex(),$.strong.start=Ce($.strong.start).replace(/punctuation/g,$._punctuation).getRegex(),$.strong.middle=Ce($.strong.middle).replace(/punctuation/g,$._punctuation).replace(/blockSkip/g,$._blockSkip).getRegex(),$.strong.endAst=Ce($.strong.endAst,"g").replace(/punctuation/g,$._punctuation).getRegex(),$.strong.endUnd=Ce($.strong.endUnd,"g").replace(/punctuation/g,$._punctuation).getRegex(),$.blockSkip=Ce($._blockSkip,"g").getRegex(),$.overlapSkip=Ce($._overlapSkip,"g").getRegex(),$._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,$._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,$._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])?)+(?![-_])/,$.autolink=Ce($.autolink).replace("scheme",$._scheme).replace("email",$._email).getRegex(),$._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,$.tag=Ce($.tag).replace("comment",de._comment).replace("attribute",$._attribute).getRegex(),$._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,$._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,$._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,$.link=Ce($.link).replace("label",$._label).replace("href",$._href).replace("title",$._title).getRegex(),$.reflink=Ce($.reflink).replace("label",$._label).getRegex(),$.reflinkSearch=Ce($.reflinkSearch,"g").replace("reflink",$.reflink).replace("nolink",$.nolink).getRegex(),$.normal=Le({},$),$.pedantic=Le({},$.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:Ce(/^!?\[(label)\]\((.*?)\)/).replace("label",$._label).getRegex(),reflink:Ce(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",$._label).getRegex()}),$.gfm=Le({},$.normal,{escape:Ce($.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.!#$%&'*+\/=?_`{\|}~-]+@))/}),$.gfm.url=Ce($.gfm.url,"i").replace("email",$.gfm._extended_email).getRegex(),$.breaks=Le({},$.gfm,{br:Ce($.br).replace("{2,}","*").getRegex(),text:Ce($.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var He={block:de,inline:$},rt=H.defaults,it=He.block,Je=He.inline;function at(he){return he.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 ke(he){var se="",re,G,X=he.length;for(re=0;re<X;re++)G=he.charCodeAt(re),Math.random()>.5&&(G="x"+G.toString(16)),se+="&#"+G+";";return se}var Ge=function(){function he(re){this.tokens=[],this.tokens.links=Object.create(null),this.options=re||rt,this.options.tokenizer=this.options.tokenizer||new Ee,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var G={block:it.normal,inline:Je.normal};this.options.pedantic?(G.block=it.pedantic,G.inline=Je.pedantic):this.options.gfm&&(G.block=it.gfm,this.options.breaks?G.inline=Je.breaks:G.inline=Je.gfm),this.tokenizer.rules=G}he.lex=function(G,X){var Z=new he(X);return Z.lex(G)};var se=he.prototype;return se.lex=function(G){return G=G.replace(/\r\n|\r/g,`
|
|
`).replace(/\t/g," "),this.blockTokens(G,this.tokens,!0),this.inline(this.tokens),this.tokens},se.blockTokens=function(G,X,Z){X===void 0&&(X=[]),Z===void 0&&(Z=!0),G=G.replace(/^ +$/gm,"");for(var te,ge,we,Me;G;){if(te=this.tokenizer.space(G)){G=G.substring(te.raw.length),te.type&&X.push(te);continue}if(te=this.tokenizer.code(G,X)){G=G.substring(te.raw.length),te.type?X.push(te):(Me=X[X.length-1],Me.raw+=`
|
|
`+te.raw,Me.text+=`
|
|
`+te.text);continue}if(te=this.tokenizer.fences(G)){G=G.substring(te.raw.length),X.push(te);continue}if(te=this.tokenizer.heading(G)){G=G.substring(te.raw.length),X.push(te);continue}if(te=this.tokenizer.nptable(G)){G=G.substring(te.raw.length),X.push(te);continue}if(te=this.tokenizer.hr(G)){G=G.substring(te.raw.length),X.push(te);continue}if(te=this.tokenizer.blockquote(G)){G=G.substring(te.raw.length),te.tokens=this.blockTokens(te.text,[],Z),X.push(te);continue}if(te=this.tokenizer.list(G)){for(G=G.substring(te.raw.length),we=te.items.length,ge=0;ge<we;ge++)te.items[ge].tokens=this.blockTokens(te.items[ge].text,[],!1);X.push(te);continue}if(te=this.tokenizer.html(G)){G=G.substring(te.raw.length),X.push(te);continue}if(Z&&(te=this.tokenizer.def(G))){G=G.substring(te.raw.length),this.tokens.links[te.tag]||(this.tokens.links[te.tag]={href:te.href,title:te.title});continue}if(te=this.tokenizer.table(G)){G=G.substring(te.raw.length),X.push(te);continue}if(te=this.tokenizer.lheading(G)){G=G.substring(te.raw.length),X.push(te);continue}if(Z&&(te=this.tokenizer.paragraph(G))){G=G.substring(te.raw.length),X.push(te);continue}if(te=this.tokenizer.text(G,X)){G=G.substring(te.raw.length),te.type?X.push(te):(Me=X[X.length-1],Me.raw+=`
|
|
`+te.raw,Me.text+=`
|
|
`+te.text);continue}if(G){var Ze="Infinite loop on byte: "+G.charCodeAt(0);if(this.options.silent){console.error(Ze);break}else throw new Error(Ze)}}return X},se.inline=function(G){var X,Z,te,ge,we,Me,Ze=G.length;for(X=0;X<Ze;X++){Me=G[X];switch(Me.type){case"paragraph":case"text":case"heading":{Me.tokens=[],this.inlineTokens(Me.text,Me.tokens);break}case"table":{for(Me.tokens={header:[],cells:[]},ge=Me.header.length,Z=0;Z<ge;Z++)Me.tokens.header[Z]=[],this.inlineTokens(Me.header[Z],Me.tokens.header[Z]);for(ge=Me.cells.length,Z=0;Z<ge;Z++)for(we=Me.cells[Z],Me.tokens.cells[Z]=[],te=0;te<we.length;te++)Me.tokens.cells[Z][te]=[],this.inlineTokens(we[te],Me.tokens.cells[Z][te]);break}case"blockquote":{this.inline(Me.tokens);break}case"list":{for(ge=Me.items.length,Z=0;Z<ge;Z++)this.inline(Me.items[Z].tokens);break}}}return G},se.inlineTokens=function(G,X,Z,te,ge){X===void 0&&(X=[]),Z===void 0&&(Z=!1),te===void 0&&(te=!1),ge===void 0&&(ge="");var we,Me=G,Ze;if(this.tokens.links){var ot=Object.keys(this.tokens.links);if(ot.length>0)for(;(Ze=this.tokenizer.rules.inline.reflinkSearch.exec(Me))!=null;)ot.includes(Ze[0].slice(Ze[0].lastIndexOf("[")+1,-1))&&(Me=Me.slice(0,Ze.index)+"["+"a".repeat(Ze[0].length-2)+"]"+Me.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(Ze=this.tokenizer.rules.inline.blockSkip.exec(Me))!=null;)Me=Me.slice(0,Ze.index)+"["+"a".repeat(Ze[0].length-2)+"]"+Me.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;G;){if(we=this.tokenizer.escape(G)){G=G.substring(we.raw.length),X.push(we);continue}if(we=this.tokenizer.tag(G,Z,te)){G=G.substring(we.raw.length),Z=we.inLink,te=we.inRawBlock,X.push(we);continue}if(we=this.tokenizer.link(G)){G=G.substring(we.raw.length),we.type==="link"&&(we.tokens=this.inlineTokens(we.text,[],!0,te)),X.push(we);continue}if(we=this.tokenizer.reflink(G,this.tokens.links)){G=G.substring(we.raw.length),we.type==="link"&&(we.tokens=this.inlineTokens(we.text,[],!0,te)),X.push(we);continue}if(we=this.tokenizer.strong(G,Me,ge)){G=G.substring(we.raw.length),we.tokens=this.inlineTokens(we.text,[],Z,te),X.push(we);continue}if(we=this.tokenizer.em(G,Me,ge)){G=G.substring(we.raw.length),we.tokens=this.inlineTokens(we.text,[],Z,te),X.push(we);continue}if(we=this.tokenizer.codespan(G)){G=G.substring(we.raw.length),X.push(we);continue}if(we=this.tokenizer.br(G)){G=G.substring(we.raw.length),X.push(we);continue}if(we=this.tokenizer.del(G)){G=G.substring(we.raw.length),we.tokens=this.inlineTokens(we.text,[],Z,te),X.push(we);continue}if(we=this.tokenizer.autolink(G,ke)){G=G.substring(we.raw.length),X.push(we);continue}if(!Z&&(we=this.tokenizer.url(G,ke))){G=G.substring(we.raw.length),X.push(we);continue}if(we=this.tokenizer.inlineText(G,te,at)){G=G.substring(we.raw.length),ge=we.raw.slice(-1),X.push(we);continue}if(G){var ze="Infinite loop on byte: "+G.charCodeAt(0);if(this.options.silent){console.error(ze);break}else throw new Error(ze)}}return X},M(he,null,[{key:"rules",get:function(){return{block:it,inline:Je}}}]),he}(),et=H.defaults,ee=A.cleanUrl,ve=A.escape,Te=function(){function he(re){this.options=re||et}var se=he.prototype;return se.code=function(G,X,Z){var te=(X||"").match(/\S*/)[0];if(this.options.highlight){var ge=this.options.highlight(G,te);ge!=null&&ge!==G&&(Z=!0,G=ge)}return te?'<pre><code class="'+this.options.langPrefix+ve(te,!0)+'">'+(Z?G:ve(G,!0))+`</code></pre>
|
|
`:"<pre><code>"+(Z?G:ve(G,!0))+`</code></pre>
|
|
`},se.blockquote=function(G){return`<blockquote>
|
|
`+G+`</blockquote>
|
|
`},se.html=function(G){return G},se.heading=function(G,X,Z,te){return this.options.headerIds?"<h"+X+' id="'+this.options.headerPrefix+te.slug(Z)+'">'+G+"</h"+X+`>
|
|
`:"<h"+X+">"+G+"</h"+X+`>
|
|
`},se.hr=function(){return this.options.xhtml?`<hr/>
|
|
`:`<hr>
|
|
`},se.list=function(G,X,Z){var te=X?"ol":"ul",ge=X&&Z!==1?' start="'+Z+'"':"";return"<"+te+ge+`>
|
|
`+G+"</"+te+`>
|
|
`},se.listitem=function(G){return"<li>"+G+`</li>
|
|
`},se.checkbox=function(G){return"<input "+(G?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},se.paragraph=function(G){return"<p>"+G+`</p>
|
|
`},se.table=function(G,X){return X&&(X="<tbody>"+X+"</tbody>"),`<table>
|
|
<thead>
|
|
`+G+`</thead>
|
|
`+X+`</table>
|
|
`},se.tablerow=function(G){return`<tr>
|
|
`+G+`</tr>
|
|
`},se.tablecell=function(G,X){var Z=X.header?"th":"td",te=X.align?"<"+Z+' align="'+X.align+'">':"<"+Z+">";return te+G+"</"+Z+`>
|
|
`},se.strong=function(G){return"<strong>"+G+"</strong>"},se.em=function(G){return"<em>"+G+"</em>"},se.codespan=function(G){return"<code>"+G+"</code>"},se.br=function(){return this.options.xhtml?"<br/>":"<br>"},se.del=function(G){return"<del>"+G+"</del>"},se.link=function(G,X,Z){if(G=ee(this.options.sanitize,this.options.baseUrl,G),G===null)return Z;var te='<a href="'+ve(G)+'"';return X&&(te+=' title="'+X+'"'),te+=">"+Z+"</a>",te},se.image=function(G,X,Z){if(G=ee(this.options.sanitize,this.options.baseUrl,G),G===null)return Z;var te='<img src="'+G+'" alt="'+Z+'"';return X&&(te+=' title="'+X+'"'),te+=this.options.xhtml?"/>":">",te},se.text=function(G){return G},he}(),Oe=function(){function he(){}var se=he.prototype;return se.strong=function(G){return G},se.em=function(G){return G},se.codespan=function(G){return G},se.del=function(G){return G},se.html=function(G){return G},se.text=function(G){return G},se.link=function(G,X,Z){return""+Z},se.image=function(G,X,Z){return""+Z},se.br=function(){return""},he}(),Qe=function(){function he(){this.seen={}}var se=he.prototype;return se.slug=function(G){var X=G.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(X)){var Z=X;do this.seen[Z]++,X=Z+"-"+this.seen[Z];while(this.seen.hasOwnProperty(X))}return this.seen[X]=0,X},he}(),tt=H.defaults,st=A.unescape,nt=function(){function he(re){this.options=re||tt,this.options.renderer=this.options.renderer||new Te,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Oe,this.slugger=new Qe}he.parse=function(G,X){var Z=new he(X);return Z.parse(G)};var se=he.prototype;return se.parse=function(G,X){X===void 0&&(X=!0);var Z="",te,ge,we,Me,Ze,ot,ze,vt,bt,lt,Ot,Rt,xt,gt,_t,St,Nt,Xe,Lt=G.length;for(te=0;te<Lt;te++){lt=G[te];switch(lt.type){case"space":continue;case"hr":{Z+=this.renderer.hr();continue}case"heading":{Z+=this.renderer.heading(this.parseInline(lt.tokens),lt.depth,st(this.parseInline(lt.tokens,this.textRenderer)),this.slugger);continue}case"code":{Z+=this.renderer.code(lt.text,lt.lang,lt.escaped);continue}case"table":{for(vt="",ze="",Me=lt.header.length,ge=0;ge<Me;ge++)ze+=this.renderer.tablecell(this.parseInline(lt.tokens.header[ge]),{header:!0,align:lt.align[ge]});for(vt+=this.renderer.tablerow(ze),bt="",Me=lt.cells.length,ge=0;ge<Me;ge++){for(ot=lt.tokens.cells[ge],ze="",Ze=ot.length,we=0;we<Ze;we++)ze+=this.renderer.tablecell(this.parseInline(ot[we]),{header:!1,align:lt.align[we]});bt+=this.renderer.tablerow(ze)}Z+=this.renderer.table(vt,bt);continue}case"blockquote":{bt=this.parse(lt.tokens),Z+=this.renderer.blockquote(bt);continue}case"list":{for(Ot=lt.ordered,Rt=lt.start,xt=lt.loose,Me=lt.items.length,bt="",ge=0;ge<Me;ge++)_t=lt.items[ge],St=_t.checked,Nt=_t.task,gt="",_t.task&&(Xe=this.renderer.checkbox(St),xt?_t.tokens.length>0&&_t.tokens[0].type==="text"?(_t.tokens[0].text=Xe+" "+_t.tokens[0].text,_t.tokens[0].tokens&&_t.tokens[0].tokens.length>0&&_t.tokens[0].tokens[0].type==="text"&&(_t.tokens[0].tokens[0].text=Xe+" "+_t.tokens[0].tokens[0].text)):_t.tokens.unshift({type:"text",text:Xe}):gt+=Xe),gt+=this.parse(_t.tokens,xt),bt+=this.renderer.listitem(gt,Nt,St);Z+=this.renderer.list(bt,Ot,Rt);continue}case"html":{Z+=this.renderer.html(lt.text);continue}case"paragraph":{Z+=this.renderer.paragraph(this.parseInline(lt.tokens));continue}case"text":{for(bt=lt.tokens?this.parseInline(lt.tokens):lt.text;te+1<Lt&&G[te+1].type==="text";)lt=G[++te],bt+=`
|
|
`+(lt.tokens?this.parseInline(lt.tokens):lt.text);Z+=X?this.renderer.paragraph(bt):bt;continue}default:{var ut='Token with "'+lt.type+'" type was not found.';if(this.options.silent){console.error(ut);return}else throw new Error(ut)}}}return Z},se.parseInline=function(G,X){X=X||this.renderer;var Z="",te,ge,we=G.length;for(te=0;te<we;te++){ge=G[te];switch(ge.type){case"escape":{Z+=X.text(ge.text);break}case"html":{Z+=X.html(ge.text);break}case"link":{Z+=X.link(ge.href,ge.title,this.parseInline(ge.tokens,X));break}case"image":{Z+=X.image(ge.href,ge.title,ge.text);break}case"strong":{Z+=X.strong(this.parseInline(ge.tokens,X));break}case"em":{Z+=X.em(this.parseInline(ge.tokens,X));break}case"codespan":{Z+=X.codespan(ge.text);break}case"br":{Z+=X.br();break}case"del":{Z+=X.del(this.parseInline(ge.tokens,X));break}case"text":{Z+=X.text(ge.text);break}default:{var Me='Token with "'+ge.type+'" type was not found.';if(this.options.silent){console.error(Me);return}else throw new Error(Me)}}}return Z},he}(),dt=A.merge,mt=A.checkSanitizeDeprecation,ye=A.escape,Ae=H.getDefaults,Ne=H.changeDefaults,Fe=H.defaults;function Re(he,se,re){if(typeof he=="undefined"||he===null)throw new Error("marked(): input parameter is undefined or null");if(typeof he!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(he)+", string expected");if(typeof se=="function"&&(re=se,se=null),se=dt({},Re.defaults,se||{}),mt(se),re){var G=se.highlight,X;try{X=Ge.lex(he,se)}catch(we){return re(we)}var Z=function(Me){var Ze;if(!Me)try{Ze=nt.parse(X,se)}catch(ot){Me=ot}return se.highlight=G,Me?re(Me):re(null,Ze)};if(!G||G.length<3)return Z();if(delete se.highlight,!X.length)return Z();var te=0;Re.walkTokens(X,function(we){we.type==="code"&&(te++,setTimeout(function(){G(we.text,we.lang,function(Me,Ze){if(Me)return Z(Me);Ze!=null&&Ze!==we.text&&(we.text=Ze,we.escaped=!0),te--,te===0&&Z()})},0))}),te===0&&Z();return}try{var ge=Ge.lex(he,se);return se.walkTokens&&Re.walkTokens(ge,se.walkTokens),nt.parse(ge,se)}catch(we){if(we.message+=`
|
|
Please report this to https://github.com/markedjs/marked.`,se.silent)return"<p>An error occurred:</p><pre>"+ye(we.message+"",!0)+"</pre>";throw we}}Re.options=Re.setOptions=function(he){return dt(Re.defaults,he),Ne(Re.defaults),Re},Re.getDefaults=Ae,Re.defaults=Fe,Re.use=function(he){var se=dt({},he);if(he.renderer&&function(){var G=Re.defaults.renderer||new Te,X=function(ge){var we=G[ge];G[ge]=function(){for(var Me=arguments.length,Ze=new Array(Me),ot=0;ot<Me;ot++)Ze[ot]=arguments[ot];var ze=he.renderer[ge].apply(G,Ze);return ze===!1&&(ze=we.apply(G,Ze)),ze}};for(var Z in he.renderer)X(Z);se.renderer=G}(),he.tokenizer&&function(){var G=Re.defaults.tokenizer||new Ee,X=function(ge){var we=G[ge];G[ge]=function(){for(var Me=arguments.length,Ze=new Array(Me),ot=0;ot<Me;ot++)Ze[ot]=arguments[ot];var ze=he.tokenizer[ge].apply(G,Ze);return ze===!1&&(ze=we.apply(G,Ze)),ze}};for(var Z in he.tokenizer)X(Z);se.tokenizer=G}(),he.walkTokens){var re=Re.defaults.walkTokens;se.walkTokens=function(G){he.walkTokens(G),re&&re(G)}}Re.setOptions(se)},Re.walkTokens=function(he,se){for(var re=C(he),G;!(G=re()).done;){var X=G.value;se(X);switch(X.type){case"table":{for(var Z=C(X.tokens.header),te;!(te=Z()).done;){var ge=te.value;Re.walkTokens(ge,se)}for(var we=C(X.tokens.cells),Me;!(Me=we()).done;)for(var Ze=Me.value,ot=C(Ze),ze;!(ze=ot()).done;){var vt=ze.value;Re.walkTokens(vt,se)}break}case"list":{Re.walkTokens(X.items,se);break}default:X.tokens&&Re.walkTokens(X.tokens,se)}}},Re.Parser=nt,Re.parser=nt.parse,Re.Renderer=Te,Re.TextRenderer=Oe,Re.Lexer=Ge,Re.lexer=Ge.lex,Re.Tokenizer=Ee,Re.Slugger=Qe,Re.parse=Re;var De=Re;return De})},FOrL:function(Be,ie,N){Be.exports=N.p+"static/nodata.a6b3f948.png"},FWmy:function(Be,ie,N){"use strict";N.d(ie,"a",function(){return Q});function Q(M,I){if(!M)throw new Error(I?`Assertion failed (${I})`:"Assertion Failed")}},IBYe:function(Be,ie,N){"use strict";function Q(M){return null}ie.a=Q},JAbv:function(Be,ie){Be.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAAA8CAYAAADogBFvAAAAAXNSR0IArs4c6QAADzxJREFUeF7tnQl4VcUVx3/3JSEBARFEFllcQAMJuKDUD7FqtVbFtUqtS6ufS1soxaW1Si0KBaFVWy2ittqqdQ9xpYq4tLgVFWUThYQlJIEkkJXs63u333lzL+/mrfeF9/KSeM/35Xv3zZw5c+bM/83MOTN3ouGQY4EuZAGtC+niqOJYAAeQDgi6lAU0fUayHqCR5gJXEriS/T6TICkZNOMzIN/gFx7/8vvLiFxDtpfP4G2Xb5Ej6SaPKddav6mPtb5g9e/PF9nSvmTVlpD1S36Sr63WOj1ukD/d+PR+b1NpAekmj5Gve8Dd5lc2ivK4G2lzV4K7Eo/8eSrQ3ZW424rw6J/ST1utTb2jtkuhLAplwgDS7BDj09txdgFqgsjCbwVOKMCYAPH+IAzABIDf8qPYz+OygMus0+8HFQDmYDpaypj1mp+m/qKbgMoKQO+zxwIyCzhNPhOIQQFrAas/uK3l5dlt/SEY9bbn0ZsrS1obynfXNJQXFTeUbPugua5utQZrM7PZHgU2EsIaHJAJUcWp1JYFklKgVx/fX0oqpPSBgw6BASOh/xAlxgC+u6WJqh0bqdi2nrb66gI0sjQXL2W8xHpb9XUykwPITjZ43KuTpcnBw2HA4TBwFBw81Dt66+42aoq2U7FjAw0Ve8R52KxpLB6v86KWjTvuetmswAGkTUN1W7aDBsHIieiHjkVDlhpuavbkU7ThE9wtjQLMbTosyFzGc5pGoD/RyQ13ANnJBk9YdSm9YVg6+tB0NC2ZtqZ6dn/1P+rKirwqaRqrknVuSM9mZ8J0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lM7zHYsEKVz0+5uIAeQdizs8Ni2gIyL8icxSbeNnZv9go0wkANI26Z2GKOxwJ56D+VRODdmGMgBZDRWdnhtW6C6WWeX/Zjk/jDQ/wHkSLPJ/mcrgQAAAABJRU5ErkJggg=="},JYp7:function(Be,ie,N){"use strict";N.d(ie,"a",function(){return Q});var Q;(function(M){function I(t){return t&&typeof t=="object"&&typeof t[Symbol.iterator]=="function"}M.is=I;const j=Object.freeze([]);function C(){return j}M.empty=C;function*R(t){yield t}M.single=R;function H(t){return t||j}M.from=H;function k(t){return!t||t[Symbol.iterator]().next().done===!0}M.isEmpty=k;function e(t){return t[Symbol.iterator]().next().value}M.first=e;function O(t,b){for(const g of t)if(b(g))return!0;return!1}M.some=O;function y(t,b){for(const g of t)if(b(g))return g;return}M.find=y;function*p(t,b){for(const g of t)b(g)&&(yield g)}M.filter=p;function*c(t,b){let g=0;for(const m of t)yield b(m,g++)}M.map=c;function*a(...t){for(const b of t)for(const g of b)yield g}M.concat=a;function*r(t){for(const b of t)for(const g of b)yield g}M.concatNested=r;function s(t,b,g){let m=g;for(const x of t)m=b(m,x);return m}M.reduce=s;function*o(t,b,g=t.length){for(b<0&&(b+=t.length),g<0?g+=t.length:g>t.length&&(g=t.length);b<g;b++)yield t[b]}M.slice=o;function i(t,b=Number.POSITIVE_INFINITY){const g=[];if(b===0)return[g,t];const m=t[Symbol.iterator]();for(let x=0;x<b;x++){const _=m.next();if(_.done)return[g,M.empty()];g.push(_.value)}return[g,{[Symbol.iterator](){return m}}]}M.consume=i;function n(t,b,g=(m,x)=>m===x){const m=t[Symbol.iterator](),x=b[Symbol.iterator]();for(;;){const _=m.next(),d=x.next();if(_.done!==d.done)return!1;if(_.done)return!0;if(!g(_.value,d.value))return!1}}M.equals=n})(Q||(Q={}))},KOXS:function(Be,ie,N){Be.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(Be,ie,N){"use strict";N.d(ie,"b",function(){return t}),N.d(ie,"a",function(){return g});var Q=N("1OyB"),M=N("vuIU"),I=N("Ji7U"),j=N("LK+K"),C=N("q1tI"),R=N("rePB"),H=N("Ff2n"),k=N("ODXe"),e=N("4IlW"),O=N("bX4T"),y=N("YrtM"),p=N("TSYQ"),c=N.n(p),a=N("+nKL"),r=N("8OUc"),s=function(K,Y){var oe=K.prefixCls,le=K.id,Se=K.flattenOptions,Ee=K.childrenAsData,ae=K.values,Ce=K.searchValue,Le=K.multiple,de=K.defaultActiveFirstOption,$=K.height,He=K.itemHeight,rt=K.notFoundContent,it=K.open,Je=K.menuItemSelectedIcon,at=K.virtual,ke=K.onSelect,Ge=K.onToggleOpen,et=K.onActiveValue,ee=K.onScroll,ve=K.onMouseEnter,Te="".concat(oe,"-item"),Oe=Object(y.a)(function(){return Se},[it,Se],function(De,he){return he[0]&&De[1]!==he[1]}),Qe=C.useRef(null),tt=function(he){he.preventDefault()},st=function(he){Qe.current&&Qe.current.scrollTo({index:he})},nt=function(he){for(var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,re=Oe.length,G=0;G<re;G+=1){var X=(he+G*se+re)%re,Z=Oe[X],te=Z.group,ge=Z.data;if(!te&&!ge.disabled)return X}return-1},dt=C.useState(function(){return nt(0)}),mt=Object(k.a)(dt,2),ye=mt[0],Ae=mt[1],Ne=function(he){Ae(he);var se=Oe[he];if(!se){et(null,-1);return}et(se.data.value,he)};C.useEffect(function(){Ne(de!==!1?nt(0):-1)},[Oe.length,Ce]),C.useEffect(function(){var De=setTimeout(function(){if(!Le&&it&&ae.size===1){var he=Array.from(ae)[0],se=Oe.findIndex(function(re){var G=re.data;return G.value===he});Ne(se),st(se)}});return function(){return clearTimeout(De)}},[it]);var Fe=function(he){he!==void 0&&ke(he,{selected:!ae.has(he)}),Le||Ge(!1)};if(C.useImperativeHandle(Y,function(){return{onKeyDown:function(he){var se=he.which;switch(se){case e.a.UP:case e.a.DOWN:{var re=0;if(se===e.a.UP?re=-1:se===e.a.DOWN&&(re=1),re!==0){var G=nt(ye+re,re);st(G),Ne(G)}break}case e.a.ENTER:{var X=Oe[ye];X&&!X.data.disabled?Fe(X.data.value):Fe(void 0),it&&he.preventDefault();break}case e.a.ESC:Ge(!1)}},onKeyUp:function(){},scrollTo:function(he){st(he)}}}),Oe.length===0)return C.createElement("div",{role:"listbox",id:"".concat(le,"_list"),className:"".concat(Te,"-empty"),onMouseDown:tt},rt);function Re(De){var he=Oe[De];if(!he)return null;var se=he.data||{},re=se.value,G=se.label,X=se.children,Z=Object(O.a)(se,!0),te=Ee?X:G;return he?C.createElement("div",Object.assign({"aria-label":typeof te=="string"?te:null},Z,{key:De,role:"option",id:"".concat(le,"_list_").concat(De),"aria-selected":ae.has(re)}),re):null}return C.createElement(C.Fragment,null,C.createElement("div",{role:"listbox",id:"".concat(le,"_list"),style:{height:0,width:0,overflow:"hidden"}},Re(ye-1),Re(ye),Re(ye+1)),C.createElement(a.a,{itemKey:"key",ref:Qe,data:Oe,height:$,itemHeight:He,fullHeight:!1,onMouseDown:tt,onScroll:ee,virtual:at,onMouseEnter:ve},function(De,he){var se,re=De.group,G=De.groupOption,X=De.data,Z=X.label,te=X.key;if(re)return C.createElement("div",{className:c()(Te,"".concat(Te,"-group"))},Z!==void 0?Z:te);var ge=X.disabled,we=X.value,Me=X.title,Ze=X.children,ot=X.style,ze=X.className,vt=Object(H.a)(X,["disabled","value","title","children","style","className"]),bt=ae.has(we),lt="".concat(Te,"-option"),Ot=c()(Te,lt,ze,(se={},Object(R.a)(se,"".concat(lt,"-grouped"),G),Object(R.a)(se,"".concat(lt,"-active"),ye===he&&!ge),Object(R.a)(se,"".concat(lt,"-disabled"),ge),Object(R.a)(se,"".concat(lt,"-selected"),bt),se)),Rt=Ee?Ze:Z,xt=!Je||typeof Je=="function"||bt;return C.createElement("div",Object.assign({},vt,{"aria-selected":bt,className:Ot,title:Me,onMouseMove:function(){if(ye===he||ge)return;Ne(he)},onClick:function(){ge||Fe(we)},style:ot}),C.createElement("div",{className:"".concat(lt,"-content")},Rt||we),C.isValidElement(Je)||bt,xt&&C.createElement(r.a,{className:"".concat(Te,"-option-state"),customizeIcon:Je,customizeIconProps:{isSelected:bt}},bt?"\u2713":null))}))},o=C.forwardRef(s);o.displayName="OptionList";var i=o,n=function(){return null};n.isSelectOption=!0;var t=n,b=function(){return null};b.isSelectOptGroup=!0;var g=b,m=N("VTBJ"),x=N("Zm9Q");function _(D){var K=D.key,Y=D.props,oe=Y.children,le=Y.value,Se=Object(H.a)(Y,["children","value"]);return Object(m.a)({key:K,value:le!==void 0?le:K,children:oe},Se)}function d(D){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Object(x.a)(D).map(function(Y,oe){if(!C.isValidElement(Y)||!Y.type)return null;var le=Y.type.isSelectOptGroup,Se=Y.key,Ee=Y.props,ae=Ee.children,Ce=Object(H.a)(Ee,["children"]);return K||!le?_(Y):Object(m.a)(Object(m.a)({key:"__RC_SELECT_GRP__".concat(Se===null?oe:Se,"__"),label:Se},Ce),{},{options:d(ae)})}).filter(function(Y){return Y})}var u=N("2Qr1"),l=N("qNPg"),h=N("U8pU"),v=N("Kwbf"),f=N("WKfj");function T(D){var K=D.mode,Y=D.options,oe=D.children,le=D.backfill,Se=D.allowClear,Ee=D.placeholder,ae=D.getInputElement,Ce=D.showSearch,Le=D.onSearch,de=D.defaultOpen,$=D.autoFocus,He=D.labelInValue,rt=D.value,it=D.inputValue,Je=D.optionLabelProp,at=K==="multiple"||K==="tags",ke=Ce!==void 0?Ce:at||K==="combobox",Ge=Y||d(oe);if(Object(v.a)(K!=="tags"||Ge.every(function(Te){return!Te.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),K==="tags"||K==="combobox"){var et=Ge.some(function(Te){return Te.options?Te.options.some(function(Oe){return typeof("value"in Oe?Oe.value:Oe.key)=="number"}):typeof("value"in Te?Te.value:Te.key)=="number"});Object(v.a)(!et,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(v.a)(K!=="combobox"||!Je,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(v.a)(K==="combobox"||!le,"`backfill` only works with `combobox` mode."),Object(v.a)(K==="combobox"||!ae,"`getInputElement` only work with `combobox` mode."),Object(v.b)(K!=="combobox"||!ae||!Se||!Ee,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Le&&!ke&&K!=="combobox"&&K!=="tags"&&Object(v.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(v.b)(!de||$,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),rt!=null){var ee=Object(f.d)(rt);Object(v.a)(!He||ee.every(function(Te){return Object(h.a)(Te)==="object"&&("key"in Te||"value"in Te)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(v.a)(!at||Array.isArray(rt),"`value` should be array when `mode` is `multiple` or `tags`")}if(oe){var ve=null;Object(x.a)(oe).some(function(Te){if(!C.isValidElement(Te)||!Te.type)return!1;var Oe=Te.type;if(Oe.isSelectOption)return!1;if(Oe.isSelectOptGroup){var Qe=Object(x.a)(Te.props.children).every(function(tt){return!C.isValidElement(tt)||!Te.type||tt.type.isSelectOption?!0:(ve=tt.type,!1)});return!Qe}return ve=Oe,!0}),ve&&Object(v.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(ve.displayName||ve.name||ve,"`.")),Object(v.a)(it===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var P=T,L=Object(l.a)({prefixCls:"rc-select",components:{optionList:i},convertChildrenToData:d,flattenOptions:u.d,getLabeledValue:u.e,filterOptions:u.b,isValueDisabled:u.g,findValueOption:u.c,warningProps:P,fillOptionsWithMissingValue:u.a}),S=function(D){Object(I.a)(Y,D);var K=Object(j.a)(Y);function Y(){var oe;return Object(Q.a)(this,Y),oe=K.apply(this,arguments),oe.selectRef=C.createRef(),oe.focus=function(){oe.selectRef.current.focus()},oe.blur=function(){oe.selectRef.current.blur()},oe}return Object(M.a)(Y,[{key:"render",value:function(){return C.createElement(L,Object.assign({ref:this.selectRef},this.props))}}]),Y}(C.Component);S.Option=t,S.OptGroup=g;var A=S,W=ie.c=A},LicW:function(Be,ie,N){"use strict";var Q=N("T2oS"),M=N("W9HT"),I=N("5Dmo"),j=N("3S7+"),C=N("q1tI"),R=N.n(C),H=N("ZJlW"),k=N.n(H),e=N("m3rI"),O=N("TSYQ"),y=N.n(O),p=N("1vsH"),c=N("z4EP"),a=N.n(c),r=N("+GGh"),s=N.n(r),o=N("cFMs"),i=N.n(o),n=N("BdwD"),t=function(g){var m=g.className,x=g.dataSource,_=x===void 0?[]:x,d=g.col,u=d===void 0?4:d,l=g.right,h=g.bottom,v=h===void 0?23:h,f=g.precision,T=f===void 0?0:f,P=g.wrapWidth,L=P===void 0?1200:P,S=g.trackEventItems,A=g.loading,W=Math.floor((L-(u-1)*l)/u);return R.a.createElement(M.a,{spinning:A},R.a.createElement("div",{className:y()(k.a.list,m)},!!_.length&&_.map(function(D,K){var Y=D.name,oe=D.id,le=D.identifier,Se=D.featured,Ee=D.school_name,ae=D.image_url,Ce=D.excellent;return R.a.createElement("div",{key:oe,className:k.a.wrap,style:{width:W,marginRight:(1+K)%u===0?0:l+T,marginBottom:v}},R.a.createElement("a",{target:"_blank",href:"/paths/".concat(le),className:k.a.li,onClick:function(de){de.preventDefault(),S&&Object(p.cb)([S]),Object(p.S)("/paths/".concat(le))}},R.a.createElement("div",{className:k.a.img},R.a.createElement("img",{className:k.a.cover,src:"".concat(e.a.IMG_SERVER,"/").concat(ae)}),Se===1&&R.a.createElement("img",{className:k.a.sign,src:a.a}),Se===2&&R.a.createElement("img",{className:k.a.sign,src:""}),Se===3&&R.a.createElement("img",{className:k.a.sign,src:s.a}),Se===4&&R.a.createElement("img",{className:k.a.sign,src:""}),Se===5&&R.a.createElement("img",{className:k.a.sign,src:i.a})),R.a.createElement("div",{className:k.a.name},R.a.createElement(j.a,{title:Y},R.a.createElement("span",{className:k.a.e},Y))),R.a.createElement(j.a,{title:"\u53D1\u5E03\u5355\u4F4D\uFF1A".concat(Ee)},R.a.createElement("div",{className:k.a.unit},R.a.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),Ee)),R.a.createElement("div",{className:k.a.tags},R.a.createElement(j.a,{placement:"bottom",title:"\u7AE0\u8282\u6570"},R.a.createElement("span",null,R.a.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),R.a.createElement("span",null,D.stages_count))),R.a.createElement(j.a,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},R.a.createElement("span",null,R.a.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),R.a.createElement("span",null,D.members_count))),Ce&&R.a.createElement("div",{className:k.a.tag},"\u5F00\u653E\u8BFE\u7A0B"))))}),!_.length&&R.a.createElement(n.a,null)))};ie.a=t},MEgm:function(Be,ie){Be.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALAAAAA8CAYAAADGxTD9AAAAAXNSR0IArs4c6QAAFoFJREFUeF7tXQl4k1W6fv8sTbqvlJa2tJSy74ugsiMqq4AKIlDUueNwR2dGHR0XdLwixW3uuF6Xq3O9o15nxuUiIIsCsijK1pa20NJ937eke5tmmec7f/40TfInaUNK6+R7nj5Jk7Of93z/t55w8JBnBYbwCnBDeOyeoXtWAB4Ae0AwpFeA+1SWbbA1A07KQSID6JWT0ivAyThIpBwgBSQy4+fCq0T4jANnrEdlWFkpjK/0ndAetd/znpMaTO0LZcz74tsxti0xjqVXfeNYZcZyxvHSuK3GbDYX03iMbbLy5nOz+pzGbGDrwpfj52DQG2DQAwad8Gcwvudf9ToDQN/pDdBrDYBFWfqM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4ToYFL0XdBk3rJBThvy/rnzMhT62TNyahTpMtFhsO1OF9aEfsYgHKFTfoeVDh8PbuHANJCJj4ewC0QIGOQgEMvh6i+IKw609hIpxv8+mAWp0O0+ZftanLo0hOKRyUYrBl4aG5mvKOWo6ojtRY+72x+z3+Lz8egOhrofOxhXpUd8+h+tc9oS7g9EAF0EYvwJLNJc6n/qQOW3bb0SVS3XhTyYK5LjUL6vlUXJNSaLixlOrSnHZ55MeSaU5fE1pjrEilPNOiqkMtSiSmc/1oNxbXDPJSFxp6P23AZgRx17vu/HCtAD5mo/5t3Rpp2p6aFHji4VBgdaIwd0SsFN2YlE/tZAEfIAuB848lRxbQUq9Plo0ts3hxp7+HY3ti33ANi19fbUvsor0GFoRZHOvk1Y6FIC7q5dSPzcw4Gv8iZ4mnNtBQp0l9BlcHzFAAeu0h8B48V+JdQjQri2D57a/VyBBkMNanSOw1WNCt0bSUh82FZXHgD3cwM81VxbAT10yNWlQm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},MI8n:function(Be,ie,N){"use strict";N.d(ie,"c",function(){return C}),N.d(ie,"b",function(){return e}),N.d(ie,"e",function(){return O}),N.d(ie,"a",function(){return y}),N.d(ie,"d",function(){return p}),N.d(ie,"f",function(){return c});var Q=N("/cxE"),M=N("pmY6"),I=N("24hK"),j=N("5Y4S"),C;(function(a){a.None=()=>M.a.None;function r(T){return(P,L=null,S)=>{let A=!1,W;return W=T(D=>A?void 0:(W?W.dispose():A=!0,P.call(L,D)),null,S),A&&W.dispose(),W}}a.once=r;function s(T,P){return g((L,S=null,A)=>T(W=>L.call(S,P(W)),null,A))}a.map=s;function o(T,P){return g((L,S=null,A)=>T(W=>{P(W),L.call(S,W)},null,A))}a.forEach=o;function i(T,P){return g((L,S=null,A)=>T(W=>P(W)&&L.call(S,W),null,A))}a.filter=i;function n(T){return T}a.signal=n;function t(...T){return(P,L=null,S)=>Object(M.e)(...T.map(A=>A(W=>P.call(L,W),null,S)))}a.any=t;function b(T,P,L){let S=L;return s(T,A=>(S=P(S,A),S))}a.reduce=b;function g(T){let P;const L=new e({onFirstListenerAdd(){P=T(L.fire,L)},onLastListenerRemove(){P.dispose()}});return L.event}function m(T,P,L=100,S=!1,A){let W,D,K,Y=0;const oe=new e({leakWarningThreshold:A,onFirstListenerAdd(){W=T(le=>{Y++,D=P(D,le),S&&!K&&(oe.fire(D),D=void 0),clearTimeout(K),K=setTimeout(()=>{const Se=D;D=void 0,K=void 0,(!S||Y>1)&&oe.fire(Se),Y=0},L)})},onLastListenerRemove(){W.dispose()}});return oe.event}a.debounce=m;function x(T,P=(L,S)=>L===S){let L=!0,S;return i(T,A=>{const W=L||!P(A,S);return L=!1,S=A,W})}a.latch=x;function _(T,P){return[a.filter(T,P),a.filter(T,L=>!P(L))]}a.split=_;function d(T,P=!1,L=[]){let S=L.slice(),A=T(K=>{S?S.push(K):D.fire(K)});const W=()=>{S&&S.forEach(K=>D.fire(K)),S=null},D=new e({onFirstListenerAdd(){A||(A=T(K=>D.fire(K)))},onFirstListenerDidAdd(){S&&(P?setTimeout(W):W())},onLastListenerRemove(){A&&A.dispose(),A=null}});return D.event}a.buffer=d;class u{constructor(T){this.event=T}map(T){return new u(s(this.event,T))}forEach(T){return new u(o(this.event,T))}filter(T){return new u(i(this.event,T))}reduce(T,P){return new u(b(this.event,T,P))}latch(){return new u(x(this.event))}debounce(T,P=100,L=!1,S){return new u(m(this.event,T,P,L,S))}on(T,P,L){return this.event(T,P,L)}once(T,P,L){return r(this.event)(T,P,L)}}function l(T){return new u(T)}a.chain=l;function h(T,P,L=S=>S){const S=(...K)=>D.fire(L(...K)),A=()=>T.on(P,S),W=()=>T.removeListener(P,S),D=new e({onFirstListenerAdd:A,onLastListenerRemove:W});return D.event}a.fromNodeEventEmitter=h;function v(T,P,L=S=>S){const S=(...K)=>D.fire(L(...K)),A=()=>T.addEventListener(P,S),W=()=>T.removeEventListener(P,S),D=new e({onFirstListenerAdd:A,onLastListenerRemove:W});return D.event}a.fromDOMEventEmitter=v;function f(T){return new Promise(P=>r(T)(P))}a.toPromise=f})(C||(C={}));class R{constructor(a){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${a}_${R._idPool++}`}start(a){this._stopWatch=new j.a(!0),this._listenerCount=a}stop(){if(this._stopWatch){const a=this._stopWatch.elapsed();this._elapsedOverall+=a,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${a.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}R._idPool=0;let H=-1;class k{constructor(a,r=Math.random().toString(18).slice(2,5)){this.customThreshold=a,this.name=r,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(a){let r=H;if(typeof this.customThreshold=="number"&&(r=this.customThreshold),r<=0||a<r)return;this._stacks||(this._stacks=new Map);const s=new Error().stack.split(`
|
|
`).slice(3).join(`
|
|
`),o=this._stacks.get(s)||0;if(this._stacks.set(s,o+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=r*.5;let i,n=0;for(const[t,b]of this._stacks)(!i||n<b)&&(i=t,n=b);console.warn(`[${this.name}] potential listener LEAK detected, having ${a} listeners already. MOST frequent listener (${n}):`),console.warn(i)}return()=>{const i=this._stacks.get(s)||0;this._stacks.set(s,i-1)}}}class e{constructor(a){var r;this._disposed=!1,this._options=a,this._leakageMon=H>0?new k(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=((r=this._options)===null||r===void 0?void 0:r._profName)?new R(this._options._profName):void 0}get event(){return this._event||(this._event=(a,r,s)=>{var o;this._listeners||(this._listeners=new I.a);const i=this._listeners.isEmpty();i&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const n=this._listeners.push(r?[a,r]:a);i&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,a,r);const t=(o=this._leakageMon)===null||o===void 0?void 0:o.check(this._listeners.size),b=Object(M.i)(()=>{if(t&&t(),!this._disposed&&(n(),this._options&&this._options.onLastListenerRemove)){const g=this._listeners&&!this._listeners.isEmpty();g||this._options.onLastListenerRemove(this)}});return s instanceof M.b?s.add(b):Array.isArray(s)&&s.push(b),b}),this._event}fire(a){var r,s;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new I.a);for(let o of this._listeners)this._deliveryQueue.push([o,a]);for((r=this._perfMon)===null||r===void 0||r.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[o,i]=this._deliveryQueue.shift();try{typeof o=="function"?o.call(void 0,i):o[0].call(o[1],i)}catch(n){Object(Q.f)(n)}}(s=this._perfMon)===null||s===void 0||s.stop()}}dispose(){var a,r,s,o,i;this._disposed||(this._disposed=!0,(a=this._listeners)===null||a===void 0||a.clear(),(r=this._deliveryQueue)===null||r===void 0||r.clear(),(o=(s=this._options)===null||s===void 0?void 0:s.onLastListenerRemove)===null||o===void 0||o.call(s),(i=this._leakageMon)===null||i===void 0||i.dispose())}}class O extends e{constructor(a){super(a);this._isPaused=0,this._eventQueue=new I.a,this._mergeFn=a==null?void 0:a.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const a=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(a))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(a){this._listeners&&(this._isPaused!==0?this._eventQueue.push(a):super.fire(a))}}class y extends O{constructor(a){var r;super(a);this._delay=(r=a.delay)!==null&&r!==void 0?r:100}fire(a){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(a)}}class p{constructor(){this.buffers=[]}wrapEvent(a){return(r,s,o)=>a(i=>{const n=this.buffers[this.buffers.length-1];n?n.push(()=>r.call(s,i)):r.call(s,i)},void 0,o)}bufferEvents(a){const r=[];this.buffers.push(r);const s=a();return this.buffers.pop(),r.forEach(o=>o()),s}}class c{constructor(){this.listening=!1,this.inputEvent=C.None,this.inputEventListener=M.a.None,this.emitter=new e({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(a){this.inputEvent=a,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=a(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},MNsG:function(Be,ie,N){"use strict";(function(Q,M){N.d(ie,"b",function(){return s}),N.d(ie,"i",function(){return t}),N.d(ie,"f",function(){return b}),N.d(ie,"d",function(){return g}),N.d(ie,"g",function(){return m}),N.d(ie,"h",function(){return x}),N.d(ie,"c",function(){return _}),N.d(ie,"k",function(){return d}),N.d(ie,"j",function(){return u}),N.d(ie,"a",function(){return l}),N.d(ie,"e",function(){return f});var I;const j="en";let C=!1,R=!1,H=!1,k=!1,e=!1,O=!1,y=!1,p,c=j,a,r;const s=typeof self=="object"?self:typeof Q=="object"?Q:{};let o;typeof s.vscode!="undefined"&&typeof s.vscode.process!="undefined"?o=s.vscode.process:typeof M!="undefined"&&(o=M);const i=typeof((I=o==null?void 0:o.versions)===null||I===void 0?void 0:I.electron)=="string"&&o.type==="renderer";if(typeof navigator=="object"&&!i)r=navigator.userAgent,C=r.indexOf("Windows")>=0,R=r.indexOf("Macintosh")>=0,y=(r.indexOf("Macintosh")>=0||r.indexOf("iPad")>=0||r.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,H=r.indexOf("Linux")>=0,O=!0,p=navigator.language,c=p;else if(typeof o=="object"){C=o.platform==="win32",R=o.platform==="darwin",H=o.platform==="linux",k=H&&!!o.env.SNAP&&!!o.env.SNAP_REVISION,p=j,c=j;const T=o.env.VSCODE_NLS_CONFIG;if(T)try{const P=JSON.parse(T),L=P.availableLanguages["*"];p=P.locale,c=L||j,a=P._translationsConfigFile}catch(P){}e=!0}else console.error("Unable to resolve platform.");let n=0;R?n=1:C?n=3:H&&(n=2);const t=C,b=R,g=H,m=e,x=O,_=y,d=r,u=function(){if(s.setImmediate)return s.setImmediate.bind(s);if(typeof s.postMessage=="function"&&!s.importScripts){let L=[];s.addEventListener("message",A=>{if(A.data&&A.data.vscodeSetImmediateId)for(let W=0,D=L.length;W<D;W++){const K=L[W];if(K.id===A.data.vscodeSetImmediateId){L.splice(W,1),K.callback();return}}});let S=0;return A=>{const W=++S;L.push({id:W,callback:A}),s.postMessage({vscodeSetImmediateId:W},"*")}}if(typeof(o==null?void 0:o.nextTick)=="function")return o.nextTick.bind(o);const P=Promise.resolve();return L=>P.then(L)}(),l=R||y?2:C?1:3;let h=!0,v=!1;function f(){if(!v){v=!0;const T=new Uint8Array(2);T[0]=1,T[1]=2;const P=new Uint16Array(T.buffer);h=P[0]===(2<<8)+1}return h}}).call(this,N("IyRk"),N("Q2Ig"))},N0LK:function(Be,ie,N){"use strict";N.d(ie,"C",function(){return Q}),N.d(ie,"v",function(){return I}),N.d(ie,"s",function(){return j}),N.d(ie,"t",function(){return C}),N.d(ie,"U",function(){return R}),N.d(ie,"J",function(){return H}),N.d(ie,"O",function(){return k}),N.d(ie,"p",function(){return e}),N.d(ie,"T",function(){return O}),N.d(ie,"q",function(){return y}),N.d(ie,"N",function(){return p}),N.d(ie,"M",function(){return c}),N.d(ie,"Q",function(){return a}),N.d(ie,"u",function(){return r}),N.d(ie,"x",function(){return s}),N.d(ie,"I",function(){return o}),N.d(ie,"f",function(){return i}),N.d(ie,"h",function(){return n}),N.d(ie,"g",function(){return t}),N.d(ie,"i",function(){return b}),N.d(ie,"G",function(){return g}),N.d(ie,"H",function(){return m}),N.d(ie,"r",function(){return x}),N.d(ie,"R",function(){return _}),N.d(ie,"d",function(){return d}),N.d(ie,"e",function(){return u}),N.d(ie,"E",function(){return l}),N.d(ie,"F",function(){return h}),N.d(ie,"j",function(){return v}),N.d(ie,"z",function(){return f}),N.d(ie,"K",function(){return P}),N.d(ie,"L",function(){return L}),N.d(ie,"m",function(){return A}),N.d(ie,"k",function(){return D}),N.d(ie,"A",function(){return Y}),N.d(ie,"a",function(){return oe}),N.d(ie,"n",function(){return le}),N.d(ie,"l",function(){return Se}),N.d(ie,"D",function(){return Ee}),N.d(ie,"B",function(){return ae}),N.d(ie,"b",function(){return Ce}),N.d(ie,"S",function(){return Le}),N.d(ie,"o",function(){return de}),N.d(ie,"P",function(){return $}),N.d(ie,"w",function(){return He}),N.d(ie,"c",function(){return rt}),N.d(ie,"y",function(){return at});function Q(ee){return!ee||typeof ee!="string"?!0:ee.trim().length===0}const M=/{(\d+)}/g;function I(ee,...ve){return ve.length===0?ee:ee.replace(M,function(Te,Oe){const Qe=parseInt(Oe,10);return isNaN(Qe)||Qe<0||Qe>=ve.length?Te:ve[Qe]})}function j(ee){return ee.replace(/[<>&]/g,function(ve){switch(ve){case"<":return"<";case">":return">";case"&":return"&";default:return ve}})}function C(ee){return ee.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function R(ee,ve=" "){const Te=H(ee,ve);return k(Te,ve)}function H(ee,ve){if(!ee||!ve)return ee;const Te=ve.length;if(Te===0||ee.length===0)return ee;let Oe=0;for(;ee.indexOf(ve,Oe)===Oe;)Oe=Oe+Te;return ee.substring(Oe)}function k(ee,ve){if(!ee||!ve)return ee;const Te=ve.length,Oe=ee.length;if(Te===0||Oe===0)return ee;let Qe=Oe,tt=-1;for(;!(tt=ee.lastIndexOf(ve,Qe-1),tt===-1||tt+Te!==Qe);){if(tt===0)return"";Qe=tt}return ee.substring(0,Qe)}function e(ee){return ee.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function O(ee){return ee.replace(/\*/g,"")}function y(ee,ve,Te={}){if(!ee)throw new Error("Cannot create regex from empty string");ve||(ee=C(ee)),Te.wholeWord&&(/\B/.test(ee.charAt(0))||(ee="\\b"+ee),/\B/.test(ee.charAt(ee.length-1))||(ee=ee+"\\b"));let Oe="";return Te.global&&(Oe+="g"),Te.matchCase||(Oe+="i"),Te.multiline&&(Oe+="m"),Te.unicode&&(Oe+="u"),new RegExp(ee,Oe)}function p(ee){if(ee.source==="^"||ee.source==="^$"||ee.source==="$"||ee.source==="^\\s*$")return!1;const ve=ee.exec("");return!!(ve&&ee.lastIndex===0)}function c(ee){return(ee.global?"g":"")+(ee.ignoreCase?"i":"")+(ee.multiline?"m":"")+(ee.unicode?"u":"")}function a(ee){return ee.split(/\r\n|\r|\n/)}function r(ee){for(let ve=0,Te=ee.length;ve<Te;ve++){const Oe=ee.charCodeAt(ve);if(Oe!==32&&Oe!==9)return ve}return-1}function s(ee,ve=0,Te=ee.length){for(let Oe=ve;Oe<Te;Oe++){const Qe=ee.charCodeAt(Oe);if(Qe!==32&&Qe!==9)return ee.substring(ve,Oe)}return ee.substring(ve,Te)}function o(ee,ve=ee.length-1){for(let Te=ve;Te>=0;Te--){const Oe=ee.charCodeAt(Te);if(Oe!==32&&Oe!==9)return Te}return-1}function i(ee,ve){return ee<ve?-1:ee>ve?1:0}function n(ee,ve,Te=0,Oe=ee.length,Qe=0,tt=ve.length){for(;Te<Oe&&Qe<tt;Te++,Qe++){let dt=ee.charCodeAt(Te),mt=ve.charCodeAt(Qe);if(dt<mt)return-1;if(dt>mt)return 1}const st=Oe-Te,nt=tt-Qe;return st<nt?-1:st>nt?1:0}function t(ee,ve){return b(ee,ve,0,ee.length,0,ve.length)}function b(ee,ve,Te=0,Oe=ee.length,Qe=0,tt=ve.length){for(;Te<Oe&&Qe<tt;Te++,Qe++){let dt=ee.charCodeAt(Te),mt=ve.charCodeAt(Qe);if(dt===mt)continue;if(dt>=128||mt>=128)return n(ee.toLowerCase(),ve.toLowerCase(),Te,Oe,Qe,tt);g(dt)&&(dt-=32),g(mt)&&(mt-=32);const ye=dt-mt;if(ye===0)continue;return ye}const st=Oe-Te,nt=tt-Qe;return st<nt?-1:st>nt?1:0}function g(ee){return ee>=97&&ee<=122}function m(ee){return ee>=65&&ee<=90}function x(ee,ve){return ee.length===ve.length&&b(ee,ve)===0}function _(ee,ve){const Te=ve.length;return ve.length>ee.length?!1:b(ee,ve,0,Te)===0}function d(ee,ve){let Te,Oe=Math.min(ee.length,ve.length);for(Te=0;Te<Oe;Te++)if(ee.charCodeAt(Te)!==ve.charCodeAt(Te))return Te;return Oe}function u(ee,ve){let Te,Oe=Math.min(ee.length,ve.length);const Qe=ee.length-1,tt=ve.length-1;for(Te=0;Te<Oe;Te++)if(ee.charCodeAt(Qe-Te)!==ve.charCodeAt(tt-Te))return Te;return Oe}function l(ee){return 55296<=ee&&ee<=56319}function h(ee){return 56320<=ee&&ee<=57343}function v(ee,ve){return(ee-55296<<10)+(ve-56320)+65536}function f(ee,ve,Te){const Oe=ee.charCodeAt(Te);if(l(Oe)&&Te+1<ve){const Qe=ee.charCodeAt(Te+1);if(h(Qe))return v(Oe,Qe)}return Oe}function T(ee,ve){const Te=ee.charCodeAt(ve-1);if(h(Te)&&ve>1){const Oe=ee.charCodeAt(ve-2);if(l(Oe))return v(Oe,Te)}return Te}function P(ee,ve){const Te=it.getInstance(),Oe=ve,Qe=ee.length,tt=f(ee,Qe,ve);ve+=tt>=65536?2:1;let st=Te.getGraphemeBreakType(tt);for(;ve<Qe;){const nt=f(ee,Qe,ve),dt=Te.getGraphemeBreakType(nt);if(rt(st,dt))break;ve+=nt>=65536?2:1,st=dt}return ve-Oe}function L(ee,ve){const Te=it.getInstance(),Oe=ve,Qe=T(ee,ve);ve-=Qe>=65536?2:1;let tt=Te.getGraphemeBreakType(Qe);for(;ve>0;){const st=T(ee,ve),nt=Te.getGraphemeBreakType(st);if(rt(nt,tt))break;ve-=st>=65536?2:1,tt=nt}return Oe-ve}const S=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function A(ee){return S.test(ee)}const W=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDED6])/;function D(ee){return W.test(ee)}const K=/^[\t\n\r\x20-\x7E]*$/;function Y(ee){return K.test(ee)}const oe=/[\u2028\u2029]/;function le(ee){return oe.test(ee)}function Se(ee){for(let ve=0,Te=ee.length;ve<Te;ve++)if(Ee(ee.charCodeAt(ve)))return!0;return!1}function Ee(ee){return ee=+ee,ee>=11904&&ee<=55215||ee>=63744&&ee<=64255||ee>=65281&&ee<=65374}function ae(ee){return ee>=127462&&ee<=127487||ee===8986||ee===8987||ee===9200||ee===9203||ee>=9728&&ee<=10175||ee===11088||ee===11093||ee>=127744&&ee<=128591||ee>=128640&&ee<=128764||ee>=128992&&ee<=129003||ee>=129280&&ee<=129535||ee>=129648&&ee<=129750}const Ce=String.fromCharCode(65279);function Le(ee){return!!(ee&&ee.length>0&&ee.charCodeAt(0)===65279)}function de(ee,ve=!1){return ee?(ve&&(ee=ee.replace(/\\./g,"")),ee.toLowerCase()!==ee):!1}function $(ee){const ve=90-65+1;return ee=ee%(2*ve),ee<ve?String.fromCharCode(97+ee):String.fromCharCode(65+ee-ve)}function He(ee){const ve=it.getInstance();return ve.getGraphemeBreakType(ee)}function rt(ee,ve){return ee===0?ve!==5&&ve!==7:ee===2&&ve===3?!1:ee===4||ee===2||ee===3||(ve===4||ve===2||ve===3)?!0:ee===8&&(ve===8||ve===9||ve===11||ve===12)||((ee===11||ee===9)&&(ve===9||ve===10)||((ee===12||ee===10)&&ve===10||(ve===5||ve===13||(ve===7||(ee===1||ee===13&&ve===14)))))?!1:!(ee===6&&ve===6)}class it{constructor(){this._data=Je()}static getInstance(){return it._INSTANCE||(it._INSTANCE=new it),it._INSTANCE}getGraphemeBreakType(ee){if(ee<32)return ee===10?3:ee===13?2:4;if(ee<127)return 0;const ve=this._data,Te=ve.length/3;let Oe=1;for(;Oe<=Te;)if(ee<ve[3*Oe])Oe=2*Oe;else if(ee>ve[3*Oe+1])Oe=2*Oe+1;else return ve[3*Oe+2];return 0}}it._INSTANCE=null;function Je(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}function at(ee,ve){if(ee===0)return 0;const Te=ke(ee,ve);if(Te!==void 0)return Te;const Oe=T(ve,ee);return ee-=Ge(Oe),ee}function ke(ee,ve){let Te=T(ve,ee);for(ee-=Ge(Te);et(Te)||Te===65039||Te===8419;){if(ee===0)return;Te=T(ve,ee),ee-=Ge(Te)}if(!ae(Te))return;if(ee>=0){const Oe=T(ve,ee);Oe===8205&&(ee-=Ge(Oe))}return ee}function Ge(ee){return ee>=65536?2:1}function et(ee){return 127995<=ee&&ee<=127999}},NQs2:function(Be,ie,N){Be.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(Be,ie,N){"use strict";N.d(ie,"a",function(){return k}),N.d(ie,"h",function(){return r}),N.d(ie,"l",function(){return n}),N.d(ie,"e",function(){return _}),N.d(ie,"i",function(){return h}),N.d(ie,"j",function(){return de}),N.d(ie,"c",function(){return $.a}),N.d(ie,"b",function(){return at}),N.d(ie,"g",function(){return ee}),N.d(ie,"f",function(){return Qe}),N.d(ie,"k",function(){return Fe}),N.d(ie,"d",function(){return se});var Q=N("q1tI"),M=N.n(Q),I=N("NQs2"),j=N.n(I),C=N("ygoZ"),R=N.n(C),H=function(G){var X=G.dataSource,Z=X===void 0?[]:X,te=G.img,ge=G.imgWidth,we=ge===void 0?346:ge,Me=G.title,Ze=G.sunTitle,ot=G.bannerExtraContent;return M.a.createElement("div",{className:j.a.banner},M.a.createElement("div",{className:j.a.content},M.a.createElement("aside",null,M.a.createElement("p",null,M.a.createElement("b",null,Me),M.a.createElement("span",null,Ze)),Z.length>0&&M.a.createElement("div",{className:j.a.btns},Z.map(function(ze,vt){return M.a.createElement("div",{key:vt,onClick:ze.click},ze.name,ze.sign?M.a.createElement("img",{src:R.a,width:39}):null)})),ot),M.a.createElement("img",{style:{marginTop:33,marginRight:38},src:te,width:we})))},k=H,e=N("tJVT"),O=N("6nfa"),y=N.n(O),p=N("TSYQ"),c=N.n(p),a=function(G){var X=G.dataSource,Z=X===void 0?[]:X,te=G.value,ge=G.onChange,we=G.className,Me=G.title,Ze=G.titleWidth,ot=Ze===void 0?41:Ze,ze=G.style,vt=ze===void 0?{}:ze,bt=G.fontColor,lt=bt===void 0?"#6A7283":bt,Ot=Object(Q.useState)(0),Rt=Object(e.a)(Ot,2),xt=Rt[0],gt=Rt[1],_t=Object(Q.useState)(!1),St=Object(e.a)(_t,2),Nt=St[0],Xe=St[1],Lt=Object(Q.useRef)(null);return Object(Q.useEffect)(function(){if(Z.length!==0){var ut;(Lt==null||((ut=Lt.current)===null||ut===void 0)?void 0:ut.clientHeight)>92?gt(1):gt(0)}Z.length===0&>(0)},[Z]),M.a.createElement("div",{className:c()(y.a.row,we),style:vt},M.a.createElement("div",{style:{width:ot,marginTop:Nt?12:4},className:y.a.title},Me),M.a.createElement("div",{className:Nt?"".concat(y.a.tagsWrap," ").concat(y.a.tagsBorderWrap):y.a.tagsWrap},M.a.createElement("div",{className:y.a.bar,style:xt>0?{height:xt===1?92:"auto",overflow:xt===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},M.a.createElement("div",{className:y.a.name,ref:Lt},Z==null?void 0:Z.map(function(ut){return M.a.createElement("span",{onClick:function(){return ge(ut.id)},key:ut.id,title:ut.name,style:{color:lt},className:te===ut.id?y.a.active:""},ut.name)}))),!!xt&&M.a.createElement(Q.Fragment,null,xt===1?M.a.createElement("div",{onClick:function(){var pt;gt(2),(Lt==null||((pt=Lt.current)===null||pt===void 0)?void 0:pt.clientHeight)>205?Xe(!0):Xe(!1)},className:y.a.action},"\u5C55\u5F00",M.a.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):M.a.createElement("div",{onClick:function(){gt(1),Xe(!1)},className:y.a.action},"\u6536\u8D77",M.a.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},r=a,s=N("cz0n"),o=N.n(s),i=function(G){var X=G.dataSource,Z=X===void 0?[]:X,te=G.value,ge=G.onChange,we=G.className;return M.a.createElement("div",{className:c()(o.a.tabs,we)},Z.map(function(Me){return M.a.createElement("span",{onClick:function(){return ge(Me.id)},className:te===Me.id?o.a.active:"",key:Me.id},Me.name)}))},n=i,t=N("5NDa"),b=N("5rEg"),g=N("KOXS"),m=N.n(g),x=function(G){var X,Z=G.dataSource,te=Z===void 0?[]:Z,ge=G.value,we=G.onChange,Me=G.className,Ze=G.style,ot=Ze===void 0?{}:Ze,ze=G.placeholder,vt=Object(Q.useState)(""),bt=Object(e.a)(vt,2),lt=bt[0],Ot=bt[1],Rt=Object(Q.useState)(""),xt=Object(e.a)(Rt,2),gt=xt[0],_t=xt[1];Object(Q.useEffect)(function(){var Xe;(Xe=JSON.stringify(ge))!==null&&Xe!==void 0&&Xe.includes("{")?(Ot(ge.id),_t(ge.value)):_t(ge)},[ge]);var St=function(){we(gt||null,lt||"")},Nt=function(Lt){if(Lt===lt)return;Ot(Lt),we(gt,Lt)};return M.a.createElement("div",{className:c()(m.a.input,Me),style:ot},!!te.length&&M.a.createElement("div",{className:m.a.dropdown},M.a.createElement("div",{className:m.a.text},(X=te.find(function(Xe){return Xe.id===lt}))===null||X===void 0?void 0:X.name,M.a.createElement("i",{className:"iconfont icon-zhankai4"}),M.a.createElement("b",{className:m.a.b1}),M.a.createElement("b",{className:m.a.b2})),M.a.createElement("div",{className:m.a.menu},te.map(function(Xe,Lt){return M.a.createElement("div",{key:Lt,onClick:function(){return Nt(Xe.id)}},Xe.name)}))),M.a.createElement(b.a,{onPressEnter:St,value:gt,onChange:function(Lt){return _t(Lt.target.value||"")},bordered:!1,placeholder:ze}),M.a.createElement("i",{onClick:St,className:"iconfont icon-sousuo9 font14 pl10 current"}))},_=x,d=N("f9pc"),u=N.n(d),l=function(G){var X=G.value,Z=G.onChange,te=G.className,ge=G.total,we=G.pageSize,Me=G.style,Ze=Me===void 0?{}:Me,ot=X<2,ze=X>=Math.ceil(ge/we);return ge<=we?M.a.createElement(M.a.Fragment,null):M.a.createElement("div",{className:c()(u.a.quickPager,te),style:Ze},M.a.createElement("div",{onClick:function(){ot||Z(X-1,"prev")},className:ot?u.a.disabled:""},"\u4E0A\u4E00\u9875"),M.a.createElement("div",{onClick:function(){ze||Z(X+1,"next")},className:ze?u.a.disabled:""},"\u4E0B\u4E00\u9875"))},h=l,v=N("T2oS"),f=N("W9HT"),T=N("pC0b"),P=N("GzdX"),L=N("5Dmo"),S=N("3S7+"),A=N("Oe0F"),W=N.n(A),D=N("m3rI"),K=N("1vsH"),Y=N("JAbv"),oe=N.n(Y),le=N("Bq7L"),Se=N.n(le),Ee=N("MEgm"),ae=N.n(Ee),Ce=N("BdwD"),Le=function(G){var X=G.className,Z=G.dataSource,te=Z===void 0?[]:Z,ge=G.col,we=ge===void 0?4:ge,Me=G.right,Ze=G.bottom,ot=Ze===void 0?23:Ze,ze=G.precision,vt=ze===void 0?0:ze,bt=G.wrapWidth,lt=bt===void 0?1200:bt,Ot=G.trackEventItems,Rt=G.loading,xt=Math.floor((lt-(we-1)*Me)/we);return M.a.createElement(f.a,{spinning:Rt},M.a.createElement("div",{className:c()(W.a.list,X)},!!te.length&&te.map(function(gt,_t){var St=gt.name,Nt=gt.id,Xe=gt.identifier,Lt=gt.power,ut=gt.cover_image_id,pt=gt.pic;return M.a.createElement("div",{className:W.a.wrap,key:Nt,style:{width:xt,marginRight:(1+_t)%we===0?0:Me+vt,marginBottom:ot}},M.a.createElement("a",{target:"_blank",href:"/shixuns/".concat(Xe,"/challenges"),className:W.a.li,onClick:function(rn){rn.preventDefault(),Ot&&Object(K.cb)([Ot]),Lt&&Object(K.S)("/shixuns/".concat(Xe,"/challenges"))}},M.a.createElement("div",{className:W.a.img},M.a.createElement("img",{className:W.a.cover,src:ut?"".concat(D.a.API_SERVER,"/api/attachments/").concat(ut):"".concat(D.a.IMG_SERVER,"/").concat(pt)}),gt.is_jupyter&&M.a.createElement("img",{className:W.a.sign,src:oe.a}),gt.is_jupyter_lab&&M.a.createElement("img",{className:W.a.sign,src:Se.a}),gt.is_unity_3d&&M.a.createElement("img",{className:W.a.sign,src:ae.a})),M.a.createElement("div",{className:W.a.name},M.a.createElement(S.a,{title:St||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},M.a.createElement("span",{className:W.a.e},St||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),M.a.createElement("div",{className:W.a.tags},M.a.createElement(S.a,{placement:"bottom",title:"\u5173\u5361\u6570"},M.a.createElement("span",null,M.a.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr3"}),M.a.createElement("span",null,gt.challenges_count))),!!gt.myshixuns_count&&M.a.createElement(S.a,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},M.a.createElement("span",null,M.a.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),M.a.createElement("span",null,gt.myshixuns_count))),M.a.createElement(S.a,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},M.a.createElement("span",null,M.a.createElement("span",null,gt.level))),M.a.createElement("div",{className:W.a.rate},M.a.createElement(P.a,{allowHalf:!0,disabled:!0,defaultValue:gt.score_info}),M.a.createElement("span",null,"\xA0",gt.score_info?"".concat(gt.score_info,"\u5206"):"5\u5206")))),!Lt&&M.a.createElement("div",{className:W.a.lockWrap},M.a.createElement("img",{src:"".concat(D.a.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),M.a.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!te.length&&M.a.createElement(Ce.a,null)))},de=Le,$=N("LicW"),He=N("iL++"),rt=N.n(He),it=N("xiVL"),Je=function(G){var X=G.className,Z=G.dataSource,te=Z===void 0?[]:Z,ge=G.col,we=ge===void 0?4:ge,Me=G.right,Ze=G.bottom,ot=Ze===void 0?23:Ze,ze=G.precision,vt=ze===void 0?0:ze,bt=G.wrapWidth,lt=bt===void 0?1200:bt,Ot=G.trackEventItems,Rt=G.loading,xt=Math.floor((lt-(we-1)*Me)/we);return M.a.createElement(f.a,{spinning:Rt},M.a.createElement("div",{className:c()(rt.a.list,X)},!!te.length&&te.map(function(gt,_t){var St=gt.subject_identifier,Nt=gt.id,Xe=gt.identifier,Lt=gt.power,ut=gt.is_public!=0&>.is_public;return M.a.createElement("div",{className:rt.a.wrap,key:Nt,style:{width:xt,marginRight:(1+_t)%we===0?0:Me+vt,marginBottom:ot}},M.a.createElement("a",{className:rt.a.li,onClick:function(wt){wt.preventDefault()}},M.a.createElement("div",{className:rt.a.top},M.a.createElement(S.a,{title:gt.name},M.a.createElement("div",{className:rt.a.name},gt.name)),M.a.createElement("img",{className:rt.a.img,src:D.a.IMG_SERVER+"/images/"+gt.avatar_url}),M.a.createElement("div",{className:rt.a.text},gt.creator),St&&M.a.createElement("div",{className:rt.a.btns},M.a.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),M.a.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),ut&&M.a.createElement("div",{className:rt.a.sign},"\u516C\u5F00")),M.a.createElement("div",{className:rt.a.bottom},gt.visits>0&&M.a.createElement(S.a,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},M.a.createElement("span",null,M.a.createElement("i",{className:"iconfont icon-liulanyan"}),M.a.createElement("span",null,gt.visits))),gt.course_members_count>0&&M.a.createElement(S.a,{title:"\u6210\u5458",placement:"bottom"},M.a.createElement("span",null,M.a.createElement("i",{className:"iconfont icon-chengyuan"}),gt.course_members_count)),gt.tasks_count>0&&M.a.createElement(S.a,{title:"\u4F5C\u4E1A",placement:"bottom"},M.a.createElement("span",null,M.a.createElement("i",{className:"iconfont icon-zuoye"}),gt.tasks_count)),gt.is_end?M.a.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):M.a.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),M.a.createElement("div",{className:rt.a.lockWrap},gt.is_accessible?M.a.createElement(M.a.Fragment,null,St&&M.a.createElement("div",{onClick:function(){return Object(K.S)("/paths/".concat(St))}},"\u8FDB\u5165\u5B9E\u8DF5\u8BFE\u7A0B"),M.a.createElement("div",{onClick:function(wt){Ot&&Object(K.cb)([Ot]),Object(K.S)(gt.first_category_url)}},"\u8FDB\u5165\u6559\u5B66\u8BFE\u5802")):M.a.createElement(M.a.Fragment,null,M.a.createElement("img",{src:"".concat(D.a.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),M.a.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165"))))}),!te.length&&M.a.createElement(Ce.a,null)))},at=Je,ke=N("f0W+"),Ge=N.n(ke),et=function(G){var X=G.dataSource,Z=X===void 0?[]:X,te=G.value,ge=G.onChange,we=G.className,Me=G.style,Ze=Me===void 0?{}:Me,ot=G.tabBarExtraContent;return M.a.createElement("div",{className:c()(Ge.a.tabs,we),style:Ze},M.a.createElement("div",{className:Ge.a.tabsWrap},Z.map(function(ze,vt){return M.a.createElement("div",{onClick:function(){return ge(ze.id)},className:te===ze.id?Ge.a.active:"",key:vt},ze.name)})),M.a.createElement("div",{className:Ge.a.tabBar},ot))},ee=et,ve=N("9JIy"),Te=N.n(ve),Oe=function(G){var X=G.className,Z=G.style,te=Z===void 0?{}:Z,ge=G.children;return M.a.createElement("div",{className:c()(Te.a.table,X),style:te},ge)},Qe=Oe,tt=N("qVdP"),st=N("jsC+"),nt=N("lUTK"),dt=N("BvKs"),mt=N("8WcF"),ye=N.n(mt),Ae=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}],Ne=function(G){var X,Z=G.sortValue,te=G.dropValue,ge=G.className,we=G.onSort,Me=G.onDrop,Ze=G.dataSource,ot=Ze===void 0?Ae:Ze;return M.a.createElement("div",{className:c()(ye.a.orderWrap,ge)},M.a.createElement(st.a,{overlay:M.a.createElement(dt.a,null,ot.map(function(ze,vt){return M.a.createElement(dt.a.Item,{key:vt,onClick:function(){return Me(ze.id)}},ze.name)}))},M.a.createElement("span",{className:ye.a.orderTextWrap},(X=ot.find(function(ze){return te===ze.id}))===null||X===void 0?void 0:X.name)),M.a.createElement("span",{className:ye.a.orderIconWrap},M.a.createElement("span",{className:ye.a.orderAsc},M.a.createElement("i",{className:Z==="asc"?"iconfont icon-sanjiaoxing-up font12 ".concat(ye.a.cursorPointer," ").concat(ye.a.active):"iconfont icon-sanjiaoxing-up font12 ".concat(ye.a.cursorPointer),onClick:function(){return we(Z==="asc"?"desc":"asc")}})),M.a.createElement("span",{className:ye.a.orderDesc},M.a.createElement("i",{className:Z==="desc"?"iconfont icon-sanjiaoxing-down font12 ".concat(ye.a.cursorPointer," ").concat(ye.a.active):"iconfont icon-sanjiaoxing-down font12 ".concat(ye.a.cursorPointer),onClick:function(){return we(Z==="asc"?"desc":"asc")}}))))},Fe=Ne,Re=N("siWv"),De=N.n(Re),he=function(G){var X=G.className,Z=G.style,te=G.children,ge=G.onClick;return M.a.createElement("div",{onClick:ge,className:c()(De.a.btn,X),style:Z},te)},se=he},NvD2:function(Be,ie,N){"use strict";N.d(ie,"a",function(){return R});var Q=N("Kwbf");function M(H,k){var e=new Set;return H.forEach(function(O){k.has(O)||e.add(O)}),e}function I(H){var k=H||{},e=k.disabled,O=k.disableCheckbox,y=k.checkable;return!!(e||O)||y===!1}function j(H,k,e,O){for(var y=new Set(H),p=new Set,c=0;c<=e;c+=1){var a=k.get(c)||new Set;a.forEach(function(i){var n=i.key,t=i.node,b=i.children,g=b===void 0?[]:b;y.has(n)&&!O(t)&&g.filter(function(m){return!O(m.node)}).forEach(function(m){y.add(m.key)})})}for(var r=new Set,s=e;s>=0;s-=1){var o=k.get(s)||new Set;o.forEach(function(i){var n=i.parent,t=i.node;if(O(t)||!i.parent||r.has(i.parent.key))return;if(O(i.parent.node)){r.add(n.key);return}var b=!0,g=!1;(n.children||[]).filter(function(m){return!O(m.node)}).forEach(function(m){var x=m.key,_=y.has(x);b&&!_&&(b=!1),!g&&(_||p.has(x))&&(g=!0)}),b&&y.add(n.key),g&&p.add(n.key),r.add(n.key)})}return{checkedKeys:Array.from(y),halfCheckedKeys:Array.from(M(p,y))}}function C(H,k,e,O,y){for(var p=new Set(H),c=new Set(k),a=0;a<=O;a+=1){var r=e.get(a)||new Set;r.forEach(function(n){var t=n.key,b=n.node,g=n.children,m=g===void 0?[]:g;!p.has(t)&&!c.has(t)&&!y(b)&&m.filter(function(x){return!y(x.node)}).forEach(function(x){p.delete(x.key)})})}c=new Set;for(var s=new Set,o=O;o>=0;o-=1){var i=e.get(o)||new Set;i.forEach(function(n){var t=n.parent,b=n.node;if(y(b)||!n.parent||s.has(n.parent.key))return;if(y(n.parent.node)){s.add(t.key);return}var g=!0,m=!1;(t.children||[]).filter(function(x){return!y(x.node)}).forEach(function(x){var _=x.key,d=p.has(_);g&&!d&&(g=!1),!m&&(d||c.has(_))&&(m=!0)}),g||p.delete(t.key),m&&c.add(t.key),s.add(t.key)})}return{checkedKeys:Array.from(p),halfCheckedKeys:Array.from(M(c,p))}}function R(H,k,e,O){var y=[],p;O?p=O:p=I;var c=new Set(H.filter(function(o){var i=!!e[o];return i||y.push(o),i})),a=new Map,r=0;Object.keys(e).forEach(function(o){var i=e[o],n=i.level,t=a.get(n);t||(t=new Set,a.set(n,t)),t.add(i),r=Math.max(r,n)}),Object(Q.a)(!y.length,"Tree missing follow keys: ".concat(y.slice(0,100).map(function(o){return"'".concat(o,"'")}).join(", ")));var s;return k===!0?s=j(c,a,r,p):s=C(c,k.halfCheckedKeys,a,r,p),s}},OZM5:function(Be,ie,N){"use strict";N.d(ie,"b",function(){return O}),N.d(ie,"a",function(){return y}),N.d(ie,"k",function(){return p}),N.d(ie,"h",function(){return c}),N.d(ie,"i",function(){return a}),N.d(ie,"g",function(){return r}),N.d(ie,"c",function(){return s}),N.d(ie,"d",function(){return o}),N.d(ie,"j",function(){return t}),N.d(ie,"e",function(){return b}),N.d(ie,"f",function(){return g});var Q=N("KQm4"),M=N("U8pU"),I=N("Ff2n"),j=N("q1tI"),C=N.n(j),R=N("Kwbf"),H=N("WaYH"),k=.25,e=2;function O(m,x){var _=m.slice(),d=_.indexOf(x);return d>=0&&_.splice(d,1),_}function y(m,x){var _=m.slice();return _.indexOf(x)===-1&&_.push(x),_}function p(m){return m.split("-")}function c(m,x){return"".concat(m,"-").concat(x)}function a(m){return m&&m.type&&m.type.isTreeNode}function r(m,x){var _=[m],d=x[m];function u(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];l.forEach(function(h){var v=h.key,f=h.children;_.push(v),u(f)})}return u(d.children),_}function s(m,x){var _=m.clientY,d=x.selectHandle.getBoundingClientRect(),u=d.top,l=d.bottom,h=d.height,v=Math.max(h*k,e);return _<=u+v?-1:_>=l-v?1:0}function o(m,x){if(!m)return;var _=x.multiple;return _?m.slice():m.length?[m[0]]:m}var i=function(x){return x};function n(m,x){if(!m)return[];var _=x||{},d=_.processProps,u=d===void 0?i:d,l=Array.isArray(m)?m:[m];return l.map(function(h){var v=h.children,f=Object(I.a)(h,["children"]),T=n(v,x);return C.a.createElement(H.a,Object.assign({},u(f)),T)})}function t(m){if(!m)return null;var x;if(Array.isArray(m))x={checkedKeys:m,halfCheckedKeys:void 0};else if(Object(M.a)(m)==="object")x={checkedKeys:m.checked||void 0,halfCheckedKeys:m.halfChecked||void 0};else return Object(R.a)(!1,"`checkedKeys` is not an array or an object"),null;return x}function b(m,x){var _=new Set;function d(u){if(_.has(u))return;var l=x[u];if(!l)return;_.add(u);var h=l.parent,v=l.node;if(v.disabled)return;h&&d(h.key)}return(m||[]).forEach(function(u){d(u)}),Object(Q.a)(_)}function g(m){var x={};return Object.keys(m).forEach(function(_){(_.startsWith("data-")||_.startsWith("aria-"))&&(x[_]=m[_])}),x}},Oe0F:function(Be,ie,N){Be.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(Be,ie,N){var Q=N("wTVA"),M=N("EbDI"),I=N("ZhPi"),j=N("wkBT");function C(R){return Q(R)||M(R)||I(R)||j()}Be.exports=C,Be.exports.__esModule=!0,Be.exports.default=Be.exports},SJMd:function(Be,ie){/**
|
|
* @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 N,Q,M,I=!1,j,C;window.PR_SHOULD_USE_CONTINUATION=!0;var R,H;(function(){var k=window,e=["break,continue,do,else,for,if,return,while"],O=[e,"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"],y=[O,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],p=[y,"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=[y,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],a=[y,"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"],r="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",s=[y,"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",i=[e,"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"],n=[e,"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"],t=[e,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],b=[p,a,c,s,o,i,n,t],g=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,m="str",x="kwd",_="com",d="typ",u="lit",l="pun",h="pln",v="tag",f="dec",T="src",P="atn",L="atv",S="nocode",A="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function W(ke){for(var Ge=0,et=!1,ee=!1,ve=0,Te=ke.length;ve<Te;++ve){var Oe=ke[ve];if(Oe.ignoreCase)ee=!0;else if(/[a-z]/i.test(Oe.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){et=!0,ee=!1;break}}var Qe={b:8,t:9,n:10,v:11,f:12,r:13};function tt(ye){var Ae=ye.charCodeAt(0);if(Ae!==92)return Ae;var Ne=ye.charAt(1);return Ae=Qe[Ne],Ae||("0"<=Ne&&Ne<="7"?parseInt(ye.substring(1),8):Ne==="u"||Ne==="x"?parseInt(ye.substring(2),16):ye.charCodeAt(1))}function st(ye){if(ye<32)return(ye<16?"\\x0":"\\x")+ye.toString(16);var Ae=String.fromCharCode(ye);return Ae==="\\"||Ae==="-"||Ae==="]"||Ae==="^"?"\\"+Ae:Ae}function nt(ye){var Ae=ye.substring(1,ye.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")),Ne=[],Fe=Ae[0]==="^",Re=["["];Fe&&Re.push("^");for(var De=Fe?1:0,he=Ae.length;De<he;++De){var se=Ae[De];if(/\\[bdsw]/i.test(se))Re.push(se);else{var re=tt(se),G;De+2<he&&Ae[De+1]==="-"?(G=tt(Ae[De+2]),De+=2):G=re,Ne.push([re,G]),G<65||re>122||(G<65||re>90||Ne.push([Math.max(65,re)|32,Math.min(G,90)|32]),G<97||re>122||Ne.push([Math.max(97,re)&~32,Math.min(G,122)&~32]))}}Ne.sort(function(ge,we){return ge[0]-we[0]||we[1]-ge[1]});for(var X=[],Z=[],De=0;De<Ne.length;++De){var te=Ne[De];te[0]<=Z[1]+1?Z[1]=Math.max(Z[1],te[1]):X.push(Z=te)}for(var De=0;De<X.length;++De){var te=X[De];Re.push(st(te[0])),te[1]>te[0]&&(te[1]+1>te[0]&&Re.push("-"),Re.push(st(te[1])))}return Re.push("]"),Re.join("")}function dt(ye){for(var Ae=ye.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")),Ne=Ae.length,Fe=[],Re=0,De=0;Re<Ne;++Re){var he=Ae[Re];if(he==="(")++De;else if(he.charAt(0)==="\\"){var se=+he.substring(1);se&&(se<=De?Fe[se]=-1:Ae[Re]=st(se))}}for(var Re=1;Re<Fe.length;++Re)Fe[Re]===-1&&(Fe[Re]=++Ge);for(var Re=0,De=0;Re<Ne;++Re){var he=Ae[Re];if(he==="(")++De,Fe[De]||(Ae[Re]="(?:");else if(he.charAt(0)==="\\"){var se=+he.substring(1);se&&se<=De&&(Ae[Re]="\\"+Fe[se])}}for(var Re=0;Re<Ne;++Re)Ae[Re]==="^"&&Ae[Re+1]!=="^"&&(Ae[Re]="");if(ye.ignoreCase&&et)for(var Re=0;Re<Ne;++Re){var he=Ae[Re],re=he.charAt(0);he.length>=2&&re==="["?Ae[Re]=nt(he):re!=="\\"&&(Ae[Re]=he.replace(/[a-zA-Z]/g,function(Z){var te=Z.charCodeAt(0);return"["+String.fromCharCode(te&~32,te|32)+"]"}))}return Ae.join("")}for(var mt=[],ve=0,Te=ke.length;ve<Te;++ve){var Oe=ke[ve];if(Oe.global||Oe.multiline)throw new Error(""+Oe);mt.push("(?:"+dt(Oe)+")")}return new RegExp(mt.join("|"),ee?"gi":"g")}function D(ke,Ge){var et=/(?:^|\s)nocode(?:\s|$)/,ee=[],ve=0,Te=[],Oe=0;function Qe(tt){var st=tt.nodeType;if(st==1){if(et.test(tt.className))return;for(var nt=tt.firstChild;nt;nt=nt.nextSibling)Qe(nt);var dt=tt.nodeName.toLowerCase();(dt==="br"||dt==="li")&&(ee[Oe]=`
|
|
`,Te[Oe<<1]=ve++,Te[Oe++<<1|1]=tt)}else if(st==3||st==4){var mt=tt.nodeValue;mt.length&&(Ge?mt=mt.replace(/\r\n?/g,`
|
|
`):mt=mt.replace(/[ \t\r\n]+/g," "),ee[Oe]=mt,Te[Oe<<1]=ve,ve+=mt.length,Te[Oe++<<1|1]=tt)}}return Qe(ke),{sourceCode:ee.join("").replace(/\n$/,""),spans:Te}}function K(ke,Ge,et,ee,ve){if(!et)return;var Te={sourceNode:ke,pre:1,langExtension:null,numberLines:null,sourceCode:et,spans:null,basePos:Ge,decorations:null};ee(Te),ve.push.apply(ve,Te.decorations)}var Y=/\S/;function oe(ke){for(var Ge=void 0,et=ke.firstChild;et;et=et.nextSibling){var ee=et.nodeType;Ge=ee===1?Ge?ke:et:ee===3&&Y.test(et.nodeValue)?ke:Ge}return Ge===ke?void 0:Ge}function le(ke,Ge){var et={},ee;(function(){for(var Oe=ke.concat(Ge),Qe=[],tt={},st=0,nt=Oe.length;st<nt;++st){var dt=Oe[st],mt=dt[3];if(mt)for(var ye=mt.length;--ye>=0;)et[mt.charAt(ye)]=dt;var Ae=dt[1],Ne=""+Ae;tt.hasOwnProperty(Ne)||(Qe.push(Ae),tt[Ne]=null)}Qe.push(/[\0-\uffff]/),ee=W(Qe)})();var ve=Ge.length,Te=function(Oe){for(var Qe=Oe.sourceCode,tt=Oe.basePos,st=Oe.sourceNode,nt=[tt,h],dt=0,mt=Qe.match(ee)||[],ye={},Ae=0,Ne=mt.length;Ae<Ne;++Ae){var Fe=mt[Ae],Re=ye[Fe],De=void 0,he;if(typeof Re=="string")he=!1;else{var se=et[Fe.charAt(0)];if(se)De=Fe.match(se[1]),Re=se[0];else{for(var re=0;re<ve;++re)if(se=Ge[re],De=Fe.match(se[1]),De){Re=se[0];break}De||(Re=h)}he=Re.length>=5&&Re.substring(0,5)==="lang-",he&&!(De&&typeof De[1]=="string")&&(he=!1,Re=T),he||(ye[Fe]=Re)}var G=dt;if(dt+=Fe.length,!he)nt.push(tt+G,Re);else{var X=De[1],Z=Fe.indexOf(X),te=Z+X.length;De[2]&&(te=Fe.length-De[2].length,Z=te-X.length);var ge=Re.substring(5);K(st,tt+G,Fe.substring(0,Z),Te,nt),K(st,tt+G+Z,X,$(ge,X),nt),K(st,tt+G+te,Fe.substring(te),Te,nt)}}Oe.decorations=nt};return Te}function Se(ke){var Ge=[],et=[];ke.tripleQuotedStrings?Ge.push([m,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):ke.multiLineStrings?Ge.push([m,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):Ge.push([m,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),ke.verbatimStrings&&et.push([m,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var ee=ke.hashComments;ee&&(ke.cStyleComments?(ee>1?Ge.push([_,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):Ge.push([_,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),et.push([m,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):Ge.push([_,/^#[^\r\n]*/,null,"#"])),ke.cStyleComments&&(et.push([_,/^\/\/[^\r\n]*/,null]),et.push([_,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var ve=ke.regexLiterals;if(ve){var Te=ve>1?"":`
|
|
\r`,Oe=Te?".":"[\\S\\s]",Qe="/(?=[^/*"+Te+"])(?:[^/\\x5B\\x5C"+Te+"]|\\x5C"+Oe+"|\\x5B(?:[^\\x5C\\x5D"+Te+"]|\\x5C"+Oe+")*(?:\\x5D|$))+/";et.push(["lang-regex",RegExp("^"+A+"("+Qe+")")])}var tt=ke.types;tt&&et.push([d,tt]);var st=(""+ke.keywords).replace(/^ | $/g,"");st.length&&et.push([x,new RegExp("^(?:"+st.replace(/[\s,]+/g,"|")+")\\b"),null]),Ge.push([h,/^\s+/,null,` \r
|
|
\xA0`]);var nt="^.[^\\s\\w.$@'\"`/\\\\]*";return ke.regexLiterals&&(nt+="(?!s*/)"),et.push([u,/^@[a-z_$][a-z_$@0-9]*/i,null],[d,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[h,/^[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"],[h,/^\\[\s\S]?/,null],[l,new RegExp(nt),null]),le(Ge,et)}var Ee=Se({keywords:b,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function ae(ke,Ge,et){for(var ee=/(?:^|\s)nocode(?:\s|$)/,ve=/\r\n?|\n/,Te=ke.ownerDocument,Oe=Te.createElement("li");ke.firstChild;)Oe.appendChild(ke.firstChild);var Qe=[Oe];function tt(Ae){var Ne=Ae.nodeType;if(Ne==1&&!ee.test(Ae.className))if(Ae.nodeName==="br")st(Ae),Ae.parentNode&&Ae.parentNode.removeChild(Ae);else for(var Fe=Ae.firstChild;Fe;Fe=Fe.nextSibling)tt(Fe);else if((Ne==3||Ne==4)&&et){var Re=Ae.nodeValue,De=Re.match(ve);if(De){var he=Re.substring(0,De.index);Ae.nodeValue=he;var se=Re.substring(De.index+De[0].length);if(se){var re=Ae.parentNode;re.insertBefore(Te.createTextNode(se),Ae.nextSibling)}st(Ae),he||Ae.parentNode.removeChild(Ae)}}}function st(Ae){for(;!Ae.nextSibling;)if(Ae=Ae.parentNode,!Ae)return;function Ne(De,he){var se=he?De.cloneNode(!1):De,re=De.parentNode;if(re){var G=Ne(re,1),X=De.nextSibling;G.appendChild(se);for(var Z=X;Z;Z=X)X=Z.nextSibling,G.appendChild(Z)}return se}for(var Fe=Ne(Ae.nextSibling,0),Re;(Re=Fe.parentNode)&&Re.nodeType===1;)Fe=Re;Qe.push(Fe)}for(var nt=0;nt<Qe.length;++nt)tt(Qe[nt]);Ge===(Ge|0)&&Qe[0].setAttribute("value",Ge);var dt=Te.createElement("ol");dt.className="linenums";for(var mt=Math.max(0,Ge-1|0)||0,nt=0,ye=Qe.length;nt<ye;++nt)Oe=Qe[nt],Oe.className="L"+(nt+mt)%10,Oe.firstChild||Oe.appendChild(Te.createTextNode("\xA0")),dt.appendChild(Oe);ke.appendChild(dt)}function Ce(ke){var Ge=/\bMSIE\s(\d+)/.exec(navigator.userAgent);Ge=Ge&&+Ge[1]<=8;var et=/\n/g,ee=ke.sourceCode,ve=ee.length,Te=0,Oe=ke.spans,Qe=Oe.length,tt=0,st=ke.decorations,nt=st.length,dt=0;st[nt]=ve;var mt,ye;for(ye=mt=0;ye<nt;)st[ye]!==st[ye+2]?(st[mt++]=st[ye++],st[mt++]=st[ye++]):ye+=2;for(nt=mt,ye=mt=0;ye<nt;){for(var Ae=st[ye],Ne=st[ye+1],Fe=ye+2;Fe+2<=nt&&st[Fe+1]===Ne;)Fe+=2;st[mt++]=Ae,st[mt++]=Ne,ye=Fe}nt=st.length=mt;var Re=ke.sourceNode,De="";Re&&(De=Re.style.display,Re.style.display="none");try{for(var he=null;tt<Qe;){var se=Oe[tt],re=Oe[tt+2]||ve,G=st[dt+2]||ve,Fe=Math.min(re,G),X=Oe[tt+1],Z;if(X.nodeType!==1&&(Z=ee.substring(Te,Fe))){Ge&&(Z=Z.replace(et,"\r")),X.nodeValue=Z;var te=X.ownerDocument,ge=te.createElement("span");ge.className=st[dt+1];var we=X.parentNode;we.replaceChild(ge,X),ge.appendChild(X),Te<re&&(Oe[tt+1]=X=te.createTextNode(ee.substring(Fe,re)),we.insertBefore(X,ge.nextSibling))}Te=Fe,Te>=re&&(tt+=2),Te>=G&&(dt+=2)}}finally{Re&&(Re.style.display=De)}}var Le={};function de(ke,Ge){for(var et=Ge.length;--et>=0;){var ee=Ge[et];Le.hasOwnProperty(ee)?k.console&&console.warn("cannot override language handler %s",ee):Le[ee]=ke}}function $(ke,Ge){return ke&&Le.hasOwnProperty(ke)||(ke=/^\s*</.test(Ge)?"default-markup":"default-code"),Le[ke]}de(Ee,["default-code"]),de(le([],[[h,/^[^<?]+/],[f,/^<!\w[^>]*(?:>|$)/],[_,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[l,/^(?:<[%?]|[%?]>)/],["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"]),de(le([[h,/^[\s]+/,null,` \r
|
|
`],[L,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[v,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[P,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[l,/^[=<>\/]+/],["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"]),de(le([],[[L,/^[\s\S]+/]]),["uq.val"]),de(Se({keywords:p,hashComments:!0,cStyleComments:!0,types:g}),["c","cc","cpp","cxx","cyc","m"]),de(Se({keywords:"null,true,false"}),["json"]),de(Se({keywords:a,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:g}),["cs"]),de(Se({keywords:c,cStyleComments:!0}),["java"]),de(Se({keywords:t,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),de(Se({keywords:i,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),de(Se({keywords:o,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),de(Se({keywords:n,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),de(Se({keywords:s,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),de(Se({keywords:r,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),de(le([],[[m,/^[\s\S]+/]]),["regex"]);function He(ke){var Ge=ke.langExtension;try{var et=D(ke.sourceNode,ke.pre),ee=et.sourceCode;ke.sourceCode=ee,ke.spans=et.spans,ke.basePos=0,$(Ge,ee)(ke),Ce(ke)}catch(ve){k.console&&console.log(ve&&ve.stack||ve)}}function rt(ke,Ge,et){var ee=et||!1,ve=Ge||null,Te=document.createElement("div");Te.innerHTML="<pre>"+ke+"</pre>",Te=Te.firstChild,ee&&ae(Te,ee,!0);var Oe={langExtension:ve,numberLines:ee,sourceNode:Te,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return He(Oe),Te.innerHTML}function it(ke,Ge){var et=Ge||document.body,ee=et.ownerDocument||document;function ve(se){return et.getElementsByTagName(se)}for(var Te=[ve("pre"),ve("code"),ve("xmp")],Oe=[],Qe=0;Qe<Te.length;++Qe)for(var tt=0,st=Te[Qe].length;tt<st;++tt)Oe.push(Te[Qe][tt]);Te=null;var nt=Date;nt.now||(nt={now:function(){return+new Date}});var dt=0,mt=/\blang(?:uage)?-([\w.]+)(?!\S)/,ye=/\bprettyprint\b/,Ae=/\bprettyprinted\b/,Ne=/pre|xmp/i,Fe=/^code$/i,Re=/^(?:pre|code|xmp)$/i,De={};function he(){for(var se=k.PR_SHOULD_USE_CONTINUATION?nt.now()+250:Infinity;dt<Oe.length&&nt.now()<se;dt++){for(var re=Oe[dt],G=De,X=re;X=X.previousSibling;){var Z=X.nodeType,te=(Z===7||Z===8)&&X.nodeValue;if(te?!/^\??prettify\b/.test(te):Z!==3||/\S/.test(X.nodeValue))break;if(te){G={},te.replace(/\b(\w+)=([\w:.%+-]+)/g,function(gt,_t,St){G[_t]=St});break}}var ge=re.className;if((G!==De||ye.test(ge))&&!Ae.test(ge)){for(var we=!1,Me=re.parentNode;Me;Me=Me.parentNode){var Ze=Me.tagName;if(Re.test(Ze)&&Me.className&&ye.test(Me.className)){we=!0;break}}if(!we){re.className+=" prettyprinted";var ot=G.lang;if(!ot){ot=ge.match(mt);var ze;!ot&&(ze=oe(re))&&Fe.test(ze.tagName)&&(ot=ze.className.match(mt)),ot&&(ot=ot[1])}var vt;if(Ne.test(re.tagName))vt=1;else{var bt=re.currentStyle,lt=ee.defaultView,Ot=bt?bt.whiteSpace:lt&<.getComputedStyle?lt.getComputedStyle(re,null).getPropertyValue("white-space"):0;vt=Ot&&Ot.substring(0,3)==="pre"}var Rt=G.linenums;(Rt=Rt==="true"||+Rt)||(Rt=ge.match(/\blinenums\b(?::(\d+))?/),Rt=Rt?Rt[1]&&Rt[1].length?+Rt[1]:!0:!1),Rt&&ae(re,Rt,vt);var xt={langExtension:ot,sourceNode:re,numberLines:Rt,pre:vt,sourceCode:null,basePos:null,spans:null,decorations:null};He(xt)}}}dt<Oe.length?k.setTimeout(he,250):typeof ke=="function"&&ke()}he()}var Je=k.PR={createSimpleLexer:le,registerLangHandler:de,sourceDecorator:Se,PR_ATTRIB_NAME:P,PR_ATTRIB_VALUE:L,PR_COMMENT:_,PR_DECLARATION:f,PR_KEYWORD:x,PR_LITERAL:u,PR_NOCODE:S,PR_PLAIN:h,PR_PUNCTUATION:l,PR_SOURCE:T,PR_STRING:m,PR_TAG:v,PR_TYPE:d,prettyPrintOne:I?k.prettyPrintOne=rt:R=rt,prettyPrint:H=I?k.prettyPrint=it:H=it},at=k.define;typeof at=="function"&&at.amd&&at("google-code-prettify",[],function(){return Je})})()},T8No:function(Be,ie,N){"use strict";N.d(ie,"a",function(){return H}),N.d(ie,"e",function(){return k}),N.d(ie,"c",function(){return l}),N.d(ie,"b",function(){return h}),N.d(ie,"d",function(){return v}),N.d(ie,"f",function(){return P});var Q=N("MNsG"),M=N("N0LK"),I=N("Cg/j");let j=Q.k||"";const C=new Map;C.set("false",!1),C.set("true",!0),C.set("isMac",Q.f),C.set("isLinux",Q.d),C.set("isWindows",Q.i),C.set("isWeb",Q.h),C.set("isMacNative",Q.f&&!Q.h),C.set("isEdge",j.indexOf("Edg/")>=0),C.set("isFirefox",j.indexOf("Firefox")>=0),C.set("isChrome",j.indexOf("Chrome")>=0),C.set("isSafari",j.indexOf("Safari")>=0);const R=Object.prototype.hasOwnProperty;class H{static has(S){return p.create(S)}static equals(S,A){return c.create(S,A)}static regex(S,A){return m.create(S,A)}static not(S){return o.create(S)}static and(...S){return d.create(S,null)}static or(...S){return u.create(S,null,!0)}static deserialize(S,A=!1){return S?this._deserializeOrExpression(S,A):void 0}static _deserializeOrExpression(S,A){let W=S.split("||");return u.create(W.map(D=>this._deserializeAndExpression(D,A)),null,!0)}static _deserializeAndExpression(S,A){let W=S.split("&&");return d.create(W.map(D=>this._deserializeOne(D,A)),null)}static _deserializeOne(S,A){if(S=S.trim(),S.indexOf("!=")>=0){let W=S.split("!=");return s.create(W[0].trim(),this._deserializeValue(W[1],A))}if(S.indexOf("==")>=0){let W=S.split("==");return c.create(W[0].trim(),this._deserializeValue(W[1],A))}if(S.indexOf("=~")>=0){let W=S.split("=~");return m.create(W[0].trim(),this._deserializeRegexValue(W[1],A))}if(S.indexOf(" in ")>=0){let W=S.split(" in ");return a.create(W[0].trim(),W[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(S)){const W=S.split(">=");return t.create(W[0].trim(),W[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(S)){const W=S.split(">");return n.create(W[0].trim(),W[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(S)){const W=S.split("<=");return g.create(W[0].trim(),W[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(S)){const W=S.split("<");return b.create(W[0].trim(),W[1].trim())}return/^\!\s*/.test(S)?o.create(S.substr(1).trim()):p.create(S)}static _deserializeValue(S,A){if(S=S.trim(),S==="true")return!0;if(S==="false")return!1;let W=/^'([^']*)'$/.exec(S);return W?W[1].trim():S}static _deserializeRegexValue(S,A){if(Object(M.C)(S)){if(A)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let W=S.indexOf("/"),D=S.lastIndexOf("/");if(W===D||W<0){if(A)throw new Error(`bad regexp-value '${S}', missing /-enclosure`);return console.warn(`bad regexp-value '${S}', missing /-enclosure`),null}let K=S.slice(W+1,D),Y=S[D+1]==="i"?"i":"";try{return new RegExp(K,Y)}catch(oe){if(A)throw new Error(`bad regexp-value '${S}', parse error: ${oe}`);return console.warn(`bad regexp-value '${S}', parse error: ${oe}`),null}}}function k(S,A){const W=S?S.substituteConstants():void 0,D=A?A.substituteConstants():void 0;return!W&&!D?!0:!W||!D?!1:W.equals(D)}function e(S,A){return S.cmp(A)}class O{constructor(){this.type=0}cmp(S){return this.type-S.type}equals(S){return S.type===this.type}substituteConstants(){return this}evaluate(S){return!1}serialize(){return"false"}keys(){return[]}negate(){return y.INSTANCE}}O.INSTANCE=new O;class y{constructor(){this.type=1}cmp(S){return this.type-S.type}equals(S){return S.type===this.type}substituteConstants(){return this}evaluate(S){return!0}serialize(){return"true"}keys(){return[]}negate(){return O.INSTANCE}}y.INSTANCE=new y;class p{constructor(S,A){this.key=S,this.negated=A,this.type=2}static create(S,A=null){const W=C.get(S);return typeof W=="boolean"?W?y.INSTANCE:O.INSTANCE:new p(S,A)}cmp(S){return S.type!==this.type?this.type-S.type:f(this.key,S.key)}equals(S){return S.type===this.type?this.key===S.key:!1}substituteConstants(){const S=C.get(this.key);return typeof S=="boolean"?S?y.INSTANCE:O.INSTANCE:this}evaluate(S){return!!S.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=o.create(this.key,this)),this.negated}}class c{constructor(S,A,W){this.key=S,this.value=A,this.negated=W,this.type=4}static create(S,A,W=null){if(typeof A=="boolean")return A?p.create(S,W):o.create(S,W);const D=C.get(S);if(typeof D=="boolean"){const K=D?"true":"false";return A===K?y.INSTANCE:O.INSTANCE}return new c(S,A,W)}cmp(S){return S.type!==this.type?this.type-S.type:T(this.key,this.value,S.key,S.value)}equals(S){return S.type===this.type?this.key===S.key&&this.value===S.value:!1}substituteConstants(){const S=C.get(this.key);if(typeof S=="boolean"){const A=S?"true":"false";return this.value===A?y.INSTANCE:O.INSTANCE}return this}evaluate(S){return S.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=s.create(this.key,this.value,this)),this.negated}}class a{constructor(S,A){this.key=S,this.valueKey=A,this.type=10,this.negated=null}static create(S,A){return new a(S,A)}cmp(S){return S.type!==this.type?this.type-S.type:T(this.key,this.valueKey,S.key,S.valueKey)}equals(S){return S.type===this.type?this.key===S.key&&this.valueKey===S.valueKey:!1}substituteConstants(){return this}evaluate(S){const A=S.getValue(this.valueKey),W=S.getValue(this.key);return Array.isArray(A)?A.indexOf(W)>=0:typeof W=="string"&&typeof A=="object"&&A!==null?R.call(A,W):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=r.create(this)),this.negated}}class r{constructor(S){this._actual=S,this.type=11}static create(S){return new r(S)}cmp(S){return S.type!==this.type?this.type-S.type:this._actual.cmp(S._actual)}equals(S){return S.type===this.type?this._actual.equals(S._actual):!1}substituteConstants(){return this}evaluate(S){return!this._actual.evaluate(S)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class s{constructor(S,A,W){this.key=S,this.value=A,this.negated=W,this.type=5}static create(S,A,W=null){if(typeof A=="boolean")return A?o.create(S,W):p.create(S,W);const D=C.get(S);if(typeof D=="boolean"){const K=D?"true":"false";return A===K?O.INSTANCE:y.INSTANCE}return new s(S,A,W)}cmp(S){return S.type!==this.type?this.type-S.type:T(this.key,this.value,S.key,S.value)}equals(S){return S.type===this.type?this.key===S.key&&this.value===S.value:!1}substituteConstants(){const S=C.get(this.key);if(typeof S=="boolean"){const A=S?"true":"false";return this.value===A?O.INSTANCE:y.INSTANCE}return this}evaluate(S){return S.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=c.create(this.key,this.value,this)),this.negated}}class o{constructor(S,A){this.key=S,this.negated=A,this.type=3}static create(S,A=null){const W=C.get(S);return typeof W=="boolean"?W?O.INSTANCE:y.INSTANCE:new o(S,A)}cmp(S){return S.type!==this.type?this.type-S.type:f(this.key,S.key)}equals(S){return S.type===this.type?this.key===S.key:!1}substituteConstants(){const S=C.get(this.key);return typeof S=="boolean"?S?O.INSTANCE:y.INSTANCE:this}evaluate(S){return!S.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=p.create(this.key,this)),this.negated}}function i(S,A){if(typeof S=="string"){const W=parseFloat(S);isNaN(W)||(S=W)}return typeof S=="string"||typeof S=="number"?A(S):O.INSTANCE}class n{constructor(S,A,W){this.key=S,this.value=A,this.negated=W,this.type=12}static create(S,A,W=null){return i(A,D=>new n(S,D,W))}cmp(S){return S.type!==this.type?this.type-S.type:T(this.key,this.value,S.key,S.value)}equals(S){return S.type===this.type?this.key===S.key&&this.value===S.value:!1}substituteConstants(){return this}evaluate(S){return typeof this.value=="string"?!1:parseFloat(S.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=g.create(this.key,this.value,this)),this.negated}}class t{constructor(S,A,W){this.key=S,this.value=A,this.negated=W,this.type=13}static create(S,A,W=null){return i(A,D=>new t(S,D,W))}cmp(S){return S.type!==this.type?this.type-S.type:T(this.key,this.value,S.key,S.value)}equals(S){return S.type===this.type?this.key===S.key&&this.value===S.value:!1}substituteConstants(){return this}evaluate(S){return typeof this.value=="string"?!1:parseFloat(S.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=b.create(this.key,this.value,this)),this.negated}}class b{constructor(S,A,W){this.key=S,this.value=A,this.negated=W,this.type=14}static create(S,A,W=null){return i(A,D=>new b(S,D,W))}cmp(S){return S.type!==this.type?this.type-S.type:T(this.key,this.value,S.key,S.value)}equals(S){return S.type===this.type?this.key===S.key&&this.value===S.value:!1}substituteConstants(){return this}evaluate(S){return typeof this.value=="string"?!1:parseFloat(S.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=t.create(this.key,this.value,this)),this.negated}}class g{constructor(S,A,W){this.key=S,this.value=A,this.negated=W,this.type=15}static create(S,A,W=null){return i(A,D=>new g(S,D,W))}cmp(S){return S.type!==this.type?this.type-S.type:T(this.key,this.value,S.key,S.value)}equals(S){return S.type===this.type?this.key===S.key&&this.value===S.value:!1}substituteConstants(){return this}evaluate(S){return typeof this.value=="string"?!1:parseFloat(S.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=n.create(this.key,this.value,this)),this.negated}}class m{constructor(S,A){this.key=S,this.regexp=A,this.type=7,this.negated=null}static create(S,A){return new m(S,A)}cmp(S){if(S.type!==this.type)return this.type-S.type;if(this.key<S.key)return-1;if(this.key>S.key)return 1;const A=this.regexp?this.regexp.source:"",W=S.regexp?S.regexp.source:"";return A<W?-1:A>W?1:0}equals(S){if(S.type===this.type){const A=this.regexp?this.regexp.source:"",W=S.regexp?S.regexp.source:"";return this.key===S.key&&A===W}return!1}substituteConstants(){return this}evaluate(S){let A=S.getValue(this.key);return this.regexp?this.regexp.test(A):!1}serialize(){const S=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${S}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=x.create(this)),this.negated}}class x{constructor(S){this._actual=S,this.type=8}static create(S){return new x(S)}cmp(S){return S.type!==this.type?this.type-S.type:this._actual.cmp(S._actual)}equals(S){return S.type===this.type?this._actual.equals(S._actual):!1}substituteConstants(){return this}evaluate(S){return!this._actual.evaluate(S)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function _(S){let A=null;for(let W=0,D=S.length;W<D;W++){const K=S[W].substituteConstants();if(S[W]!==K&&A===null){A=[];for(let Y=0;Y<W;Y++)A[Y]=S[Y]}A!==null&&(A[W]=K)}return A===null?S:A}class d{constructor(S,A){this.expr=S,this.negated=A,this.type=6}static create(S,A){return d._normalizeArr(S,A)}cmp(S){if(S.type!==this.type)return this.type-S.type;if(this.expr.length<S.expr.length)return-1;if(this.expr.length>S.expr.length)return 1;for(let A=0,W=this.expr.length;A<W;A++){const D=e(this.expr[A],S.expr[A]);if(D!==0)return D}return 0}equals(S){if(S.type===this.type){if(this.expr.length!==S.expr.length)return!1;for(let A=0,W=this.expr.length;A<W;A++)if(!this.expr[A].equals(S.expr[A]))return!1;return!0}return!1}substituteConstants(){const S=_(this.expr);return S===this.expr?this:d.create(S,this.negated)}evaluate(S){for(let A=0,W=this.expr.length;A<W;A++)if(!this.expr[A].evaluate(S))return!1;return!0}static _normalizeArr(S,A){const W=[];let D=!1;for(const K of S){if(!K)continue;if(K.type===1){D=!0;continue}if(K.type===0)return O.INSTANCE;if(K.type===6){W.push(...K.expr);continue}W.push(K)}if(W.length===0&&D)return y.INSTANCE;if(W.length===0)return;if(W.length===1)return W[0];W.sort(e);for(let K=1;K<W.length;K++)W[K-1].equals(W[K])&&(W.splice(K,1),K--);if(W.length===1)return W[0];for(;W.length>1;){const K=W[W.length-1];if(K.type!==9)break;W.pop();const Y=W.pop(),oe=W.length===0,le=u.create(K.expr.map(Se=>d.create([Se,Y],null)),null,oe);le&&(W.push(le),W.sort(e))}return W.length===1?W[0]:new d(W,A)}serialize(){return this.expr.map(S=>S.serialize()).join(" && ")}keys(){const S=[];for(let A of this.expr)S.push(...A.keys());return S}negate(){if(!this.negated){const S=[];for(let A of this.expr)S.push(A.negate());this.negated=u.create(S,this,!0)}return this.negated}}class u{constructor(S,A){this.expr=S,this.negated=A,this.type=9}static create(S,A,W){return u._normalizeArr(S,A,W)}cmp(S){if(S.type!==this.type)return this.type-S.type;if(this.expr.length<S.expr.length)return-1;if(this.expr.length>S.expr.length)return 1;for(let A=0,W=this.expr.length;A<W;A++){const D=e(this.expr[A],S.expr[A]);if(D!==0)return D}return 0}equals(S){if(S.type===this.type){if(this.expr.length!==S.expr.length)return!1;for(let A=0,W=this.expr.length;A<W;A++)if(!this.expr[A].equals(S.expr[A]))return!1;return!0}return!1}substituteConstants(){const S=_(this.expr);return S===this.expr?this:u.create(S,this.negated,!1)}evaluate(S){for(let A=0,W=this.expr.length;A<W;A++)if(this.expr[A].evaluate(S))return!0;return!1}static _normalizeArr(S,A,W){let D=[],K=!1;if(S){for(let Y=0,oe=S.length;Y<oe;Y++){const le=S[Y];if(!le)continue;if(le.type===0){K=!0;continue}if(le.type===1)return y.INSTANCE;if(le.type===9){D=D.concat(le.expr);continue}D.push(le)}if(D.length===0&&K)return O.INSTANCE;D.sort(e)}if(D.length===0)return;if(D.length===1)return D[0];for(let Y=1;Y<D.length;Y++)D[Y-1].equals(D[Y])&&(D.splice(Y,1),Y--);if(D.length===1)return D[0];if(W){for(let Y=0;Y<D.length;Y++)for(let oe=Y+1;oe<D.length;oe++)P(D[Y],D[oe])&&(D.splice(oe,1),oe--);if(D.length===1)return D[0]}return new u(D,A)}serialize(){return this.expr.map(S=>S.serialize()).join(" || ")}keys(){const S=[];for(let A of this.expr)S.push(...A.keys());return S}negate(){if(!this.negated){let S=[];for(let A of this.expr)S.push(A.negate());for(;S.length>1;){const A=S.shift(),W=S.shift(),D=[];for(const Y of L(A))for(const oe of L(W))D.push(d.create([Y,oe],null));const K=S.length===0;S.unshift(u.create(D,null,K))}this.negated=S[0]}return this.negated}}class l extends p{constructor(S,A,W){super(S,null);this._defaultValue=A,typeof W=="object"?l._info.push(Object.assign(Object.assign({},W),{key:S})):W!==!0&&l._info.push({key:S,description:W,type:A!=null?typeof A:void 0})}static all(){return l._info.values()}bindTo(S){return S.createKey(this.key,this._defaultValue)}getValue(S){return S.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(S){return c.create(this.key,S)}}l._info=[];const h=Object(I.c)("contextKeyService"),v="setContext";function f(S,A){return S<A?-1:S>A?1:0}function T(S,A,W,D){return S<W?-1:S>W?1:A<D?-1:A>D?1:0}function P(S,A){if(A.type===6&&S.type!==9&&S.type!==6){for(const K of A.expr)if(S.equals(K))return!0}const W=S.negate(),D=L(W).concat(L(A));D.sort(e);for(let K=0;K<D.length;K++){const Y=D[K],oe=Y.negate();for(let le=K+1;le<D.length;le++){const Se=D[le];if(oe.equals(Se))return!0}}return!1}function L(S){return S.type===9?S.expr:[S]}},TXwP:function(Be,ie,N){var Q,M;(function(){var I;(function(){"use strict";var C=[,,function(e){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 a=this.__items.length-1;a>=0;a--)if(this.__items[a].match(c))return!0;return!1},O.prototype.set_indent=function(c,a){this.is_empty()&&(this.__indent_count=c||0,this.__alignment_count=a||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 a=c.lastIndexOf(`
|
|
`);a!==-1?this.__character_count=c.length-a: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 y(c,a){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)),a=a||"",c.indent_level>0&&(a=new Array(c.indent_level+1).join(this.__indent_string)),this.__base_string=a,this.__base_string_length=a.length}y.prototype.get_indent_size=function(c,a){var r=this.__base_string_length;return a=a||0,c<0&&(r=0),r+=c*this.__indent_size,r+=a,r},y.prototype.get_indent_string=function(c,a){var r=this.__base_string;return a=a||0,c<0&&(c=0,r=""),a+=c*this.__indent_size,this.__ensure_cache(a),r+=this.__cache[a],r},y.prototype.__ensure_cache=function(c){for(;c>=this.__cache.length;)this.__add_column()},y.prototype.__add_column=function(){var c=this.__cache.length,a=0,r="";this.__indent_size&&c>=this.__indent_size&&(a=Math.floor(c/this.__indent_size),c-=a*this.__indent_size,r=new Array(a+1).join(this.__indent_string)),c&&(r+=new Array(c+1).join(" ")),this.__cache.push(r)};function p(c,a){this.__indent_cache=new y(c,a),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()}p.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},p.prototype.get_line_number=function(){return this.__lines.length},p.prototype.get_indent_string=function(c,a){return this.__indent_cache.get_indent_string(c,a)},p.prototype.get_indent_size=function(c,a){return this.__indent_cache.get_indent_size(c,a)},p.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},p.prototype.add_new_line=function(c){return this.is_empty()||!c&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},p.prototype.get_code=function(c){this.trim(!0);var a=this.current_line.pop();a&&(a[a.length-1]===`
|
|
`&&(a=a.replace(/\n+$/g,"")),this.current_line.push(a)),this._end_with_newline&&this.__add_outputline();var r=this.__lines.join(`
|
|
`);return c!==`
|
|
`&&(r=r.replace(/[\n]/g,c)),r},p.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},p.prototype.set_indent=function(c,a){return c=c||0,a=a||0,this.next_line.set_indent(c,a),this.__lines.length>1?(this.current_line.set_indent(c,a),!0):(this.current_line.set_indent(),!1)},p.prototype.add_raw_token=function(c){for(var a=0;a<c.newlines;a++)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},p.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()},p.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(" "))},p.prototype.remove_indent=function(c){for(var a=this.__lines.length;c<a;)this.__lines[c]._remove_indent(),c++;this.current_line._remove_wrap_indent()},p.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},p.prototype.just_added_newline=function(){return this.current_line.is_empty()},p.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},p.prototype.ensure_empty_line_above=function(c,a){for(var r=this.__lines.length-2;r>=0;){var s=this.__lines[r];if(s.is_empty())break;if(s.item(0).indexOf(c)!==0&&s.item(-1)!==a){this.__lines.splice(r+1,0,new O(this)),this.previous_line=this.__lines[this.__lines.length-2];break}r--}},e.exports.Output=p},,,,function(e){function O(c,a){this.raw_options=y(c,a),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,a){var r=this.raw_options[c],s=a||[];return typeof r=="object"?r!==null&&typeof r.concat=="function"&&(s=r.concat()):typeof r=="string"&&(s=r.split(/[^a-zA-Z0-9_\/\-]+/)),s},O.prototype._get_boolean=function(c,a){var r=this.raw_options[c],s=r===void 0?!!a:!!r;return s},O.prototype._get_characters=function(c,a){var r=this.raw_options[c],s=a||"";return typeof r=="string"&&(s=r.replace(/\\r/,"\r").replace(/\\n/,`
|
|
`).replace(/\\t/," ")),s},O.prototype._get_number=function(c,a){var r=this.raw_options[c];a=parseInt(a,10),isNaN(a)&&(a=0);var s=parseInt(r,10);return isNaN(s)&&(s=a),s},O.prototype._get_selection=function(c,a,r){var s=this._get_selection_list(c,a,r);if(s.length!==1)throw new Error("Invalid Option Value: The option '"+c+`' can only be one of the following values:
|
|
`+a+`
|
|
You passed in: '`+this.raw_options[c]+"'");return s[0]},O.prototype._get_selection_list=function(c,a,r){if(!a||a.length===0)throw new Error("Selection list cannot be empty.");if(r=r||[a[0]],!this._is_valid_selection(r,a))throw new Error("Invalid Default Value!");var s=this._get_array(c,r);if(!this._is_valid_selection(s,a))throw new Error("Invalid Option Value: The option '"+c+`' can contain only the following values:
|
|
`+a+`
|
|
You passed in: '`+this.raw_options[c]+"'");return s},O.prototype._is_valid_selection=function(c,a){return c.length&&a.length&&!c.some(function(r){return a.indexOf(r)===-1})};function y(c,a){var r={};c=p(c);var s;for(s in c)s!==a&&(r[s]=c[s]);if(a&&c[a])for(s in c[a])r[s]=c[a][s];return r}function p(c){var a={},r;for(r in c){var s=r.replace(/-/g,"_");a[s]=c[r]}return a}e.exports.Options=O,e.exports.normalizeOpts=p,e.exports.mergeOpts=y},,function(e){var O=RegExp.prototype.hasOwnProperty("sticky");function y(p){this.__input=p||"",this.__input_length=this.__input.length,this.__position=0}y.prototype.restart=function(){this.__position=0},y.prototype.back=function(){this.__position>0&&(this.__position-=1)},y.prototype.hasNext=function(){return this.__position<this.__input_length},y.prototype.next=function(){var p=null;return this.hasNext()&&(p=this.__input.charAt(this.__position),this.__position+=1),p},y.prototype.peek=function(p){var c=null;return p=p||0,p+=this.__position,p>=0&&p<this.__input_length&&(c=this.__input.charAt(p)),c},y.prototype.__match=function(p,c){p.lastIndex=c;var a=p.exec(this.__input);return a&&!(O&&p.sticky)&&(a.index!==c&&(a=null)),a},y.prototype.test=function(p,c){return c=c||0,c+=this.__position,c>=0&&c<this.__input_length?!!this.__match(p,c):!1},y.prototype.testChar=function(p,c){var a=this.peek(c);return p.lastIndex=0,a!==null&&p.test(a)},y.prototype.match=function(p){var c=this.__match(p,this.__position);return c?this.__position+=c[0].length:c=null,c},y.prototype.read=function(p,c,a){var r="",s;return p&&(s=this.match(p),s&&(r+=s[0])),c&&(s||!p)&&(r+=this.readUntil(c,a)),r},y.prototype.readUntil=function(p,c){var a="",r=this.__position;p.lastIndex=this.__position;var s=p.exec(this.__input);return s?(r=s.index,c&&(r+=s[0].length)):r=this.__input_length,a=this.__input.substring(this.__position,r),this.__position=r,a},y.prototype.readUntilAfter=function(p){return this.readUntil(p,!0)},y.prototype.get_regexp=function(p,c){var a=null,r="g";return c&&O&&(r="y"),typeof p=="string"&&p!==""?a=new RegExp(p,r):p&&(a=new RegExp(p.source,r)),a},y.prototype.get_literal_regexp=function(p){return RegExp(p.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},y.prototype.peekUntilAfter=function(p){var c=this.__position,a=this.readUntilAfter(p);return this.__position=c,a},y.prototype.lookBack=function(p){var c=this.__position-1;return c>=p.length&&this.__input.substring(c-p.length,c).toLowerCase()===p},e.exports.InputScanner=y},,,,,function(e){function O(y,p){y=typeof y=="string"?y:y.source,p=typeof p=="string"?p:p.source,this.__directives_block_pattern=new RegExp(y+/ beautify( \w+[:]\w+)+ /.source+p,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(y+/\sbeautify\signore:end\s/.source+p,"g")}O.prototype.get_directives=function(y){if(!y.match(this.__directives_block_pattern))return null;var p={};this.__directive_pattern.lastIndex=0;for(var c=this.__directive_pattern.exec(y);c;)p[c[1]]=c[2],c=this.__directive_pattern.exec(y);return p},O.prototype.readIgnored=function(y){return y.readUntilAfter(this.__directives_end_ignore_pattern)},e.exports.Directives=O},,function(e,O,y){var p=y(16).Beautifier,c=y(17).Options;function a(r,s){var o=new p(r,s);return o.beautify()}e.exports=a,e.exports.defaultOptions=function(){return new c}},function(e,O,y){var p=y(17).Options,c=y(2).Output,a=y(8).InputScanner,r=y(13).Directives,s=new r(/\/\*/,/\*\//),o=/\r\n|[\r\n]/,i=/\r\n|[\r\n]/g,n=/\s/,t=/(?:\s|\n)+/g,b=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,g=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function m(x,_){this._source_text=x||"",this._options=new p(_),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"]}m.prototype.eatString=function(x){var _="";for(this._ch=this._input.next();this._ch;){if(_+=this._ch,this._ch==="\\")_+=this._input.next();else if(x.indexOf(this._ch)!==-1||this._ch===`
|
|
`)break;this._ch=this._input.next()}return _},m.prototype.eatWhitespace=function(x){for(var _=n.test(this._input.peek()),d=0;n.test(this._input.peek());)this._ch=this._input.next(),x&&this._ch===`
|
|
`&&((d===0||d<this._options.max_preserve_newlines)&&(d++,this._output.add_new_line(!0)));return _},m.prototype.foundNestedPseudoClass=function(){for(var x=0,_=1,d=this._input.peek(_);d;){if(d==="{")return!0;if(d==="(")x+=1;else if(d===")"){if(x===0)return!1;x-=1}else if(d===";"||d==="}")return!1;_++,d=this._input.peek(_)}return!1},m.prototype.print_string=function(x){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(x)},m.prototype.preserveSingleSpace=function(x){x&&(this._output.space_before_token=!0)},m.prototype.indent=function(){this._indentLevel++},m.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},m.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var x=this._source_text,_=this._options.eol;_==="auto"&&(_=`
|
|
`,x&&o.test(x||"")&&(_=x.match(o)[0])),x=x.replace(i,`
|
|
`);var d=x.match(/^[\t ]*/)[0];this._output=new c(this._options,d),this._input=new a(x),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var u=0,l=!1,h=!1,v=!1,f=!1,T=!1,P=!1,L=this._ch,S=!1,A,W,D;A=this._input.read(t),W=A!=="",D=L,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),L=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var K=this._input.read(b),Y=s.get_directives(K);Y&&Y.ignore==="start"&&(K+=s.readIgnored(this._input)),this.print_string(K),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(g)),this.eatWhitespace(!0);else if(this._ch==="@"||this._ch==="$")if(this.preserveSingleSpace(W),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var oe=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);oe.match(/[ :]$/)&&(oe=this.eatString(": ").replace(/\s$/,""),this.print_string(oe),this._output.space_before_token=!0),oe=oe.replace(/\s$/,""),oe==="extend"?f=!0:oe==="import"&&(T=!0),oe in this.NESTED_AT_RULE?(this._nestedLevel+=1,oe in this.CONDITIONAL_GROUP_RULE&&(v=!0)):!l&&u===0&&oe.indexOf(":")!==-1&&(h=!0,this.indent())}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(W),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")h&&(h=!1,this.outdent()),v?(v=!1,l=this._indentLevel>=this._nestedLevel):l=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&l&&(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),T=!1,f=!1,h&&(this.outdent(),h=!1),this.print_string(this._ch),l=!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 le=0;le<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;le++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[le])){S=!0;break}(l||v)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!f&&u===0?(this.print_string(":"),h||(h=!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 Se=D==='"'||D==="'";this.preserveSingleSpace(Se||W),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")S=!1,u===0?(h&&(this.outdent(),h=!1),f=!1,T=!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 Ee=!1;this._input.lookBack("with")&&(Ee=!0),this.preserveSingleSpace(W||Ee),this.print_string(this._ch),h&&D==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),P=!0):(this.eatWhitespace(),u++,this.indent())}else if(this._ch===")")u&&(u--,this.outdent()),P&&this._input.peek()===";"&&this._options.selector_separator_newline&&(P=!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&&(!h||P)&&u===0&&!T&&!f?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!h&&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&&n.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(W),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),n.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 ae=D==='"'||D==="'";this.preserveSingleSpace(ae||W),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
|
|
`&&S&&this._output.add_new_line()}var Ce=this._output.get_code(_);return Ce},e.exports.Beautifier=m},function(e,O,y){var p=y(6).Options;function c(a){p.call(this,a,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var r=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||r;var s=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var o=0;o<s.length;o++)s[o]!=="expand"?this.brace_style="collapse":this.brace_style=s[o]}c.prototype=new p,e.exports.Options=c}],R={};function H(e){var O=R[e];if(O!==void 0)return O.exports;var y=R[e]={exports:{}};return C[e](y,y.exports,H),y.exports}var k=H(15);I=k})();var j=I;!(Q=[],M=function(){return{css_beautify:j}}.apply(ie,Q),M!==void 0&&(Be.exports=M))})()},Vhoy:function(Be,ie,N){"use strict";N.d(ie,"d",function(){return j}),N.d(ie,"e",function(){return C}),N.d(ie,"c",function(){return R}),N.d(ie,"b",function(){return H}),N.d(ie,"a",function(){return k});var Q=N("MI8n");class M{constructor(){this._icons=new Map,this._onDidRegister=new Q.b}add(e){const O=this._icons.get(e.id);O?e.description?O.description=e.description:console.error(`Duplicate registration of codicon ${e.id}`):(this._icons.set(e.id,e),this._onDidRegister.fire(e))}get(e){return this._icons.get(e)}get all(){return this._icons.values()}get onDidRegister(){return this._onDidRegister.event}}const I=new M,j=I;function C(e,O){return new H(e,O)}function R(e){return e?e.replace(/\$\((.*?)\)/g,(O,y)=>` ${y} `).trim():""}class H{constructor(e,O,y){this.id=e,this.definition=O,this.description=y,I.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var k;(function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9\\-]+",e.iconModifierExpression="~[A-Za-z]+";const O=new RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function y(a){if(a instanceof H)return["codicon","codicon-"+a.id];const r=O.exec(a.id);if(!r)return y(H.error);let[,s,o]=r;const i=["codicon","codicon-"+s];return o&&i.push("codicon-modifier-"+o.substr(1)),i}e.asClassNameArray=y;function p(a){return y(a).join(" ")}e.asClassName=p;function c(a){return"."+y(a).join(".")}e.asCSSSelector=c})(k||(k={})),function(e){e.add=new e("add",{fontCharacter:"\\ea60"}),e.plus=new e("plus",e.add.definition),e.gistNew=new e("gist-new",e.add.definition),e.repoCreate=new e("repo-create",e.add.definition),e.lightbulb=new e("lightbulb",{fontCharacter:"\\ea61"}),e.lightBulb=new e("light-bulb",{fontCharacter:"\\ea61"}),e.repo=new e("repo",{fontCharacter:"\\ea62"}),e.repoDelete=new e("repo-delete",{fontCharacter:"\\ea62"}),e.gistFork=new e("gist-fork",{fontCharacter:"\\ea63"}),e.repoForked=new e("repo-forked",{fontCharacter:"\\ea63"}),e.gitPullRequest=new e("git-pull-request",{fontCharacter:"\\ea64"}),e.gitPullRequestAbandoned=new e("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),e.recordKeys=new e("record-keys",{fontCharacter:"\\ea65"}),e.keyboard=new e("keyboard",{fontCharacter:"\\ea65"}),e.tag=new e("tag",{fontCharacter:"\\ea66"}),e.tagAdd=new e("tag-add",{fontCharacter:"\\ea66"}),e.tagRemove=new e("tag-remove",{fontCharacter:"\\ea66"}),e.person=new e("person",{fontCharacter:"\\ea67"}),e.personFollow=new e("person-follow",{fontCharacter:"\\ea67"}),e.personOutline=new e("person-outline",{fontCharacter:"\\ea67"}),e.personFilled=new e("person-filled",{fontCharacter:"\\ea67"}),e.gitBranch=new e("git-branch",{fontCharacter:"\\ea68"}),e.gitBranchCreate=new e("git-branch-create",{fontCharacter:"\\ea68"}),e.gitBranchDelete=new e("git-branch-delete",{fontCharacter:"\\ea68"}),e.sourceControl=new e("source-control",{fontCharacter:"\\ea68"}),e.mirror=new e("mirror",{fontCharacter:"\\ea69"}),e.mirrorPublic=new e("mirror-public",{fontCharacter:"\\ea69"}),e.star=new e("star",{fontCharacter:"\\ea6a"}),e.starAdd=new e("star-add",{fontCharacter:"\\ea6a"}),e.starDelete=new e("star-delete",{fontCharacter:"\\ea6a"}),e.starEmpty=new e("star-empty",{fontCharacter:"\\ea6a"}),e.comment=new e("comment",{fontCharacter:"\\ea6b"}),e.commentAdd=new e("comment-add",{fontCharacter:"\\ea6b"}),e.alert=new e("alert",{fontCharacter:"\\ea6c"}),e.warning=new e("warning",{fontCharacter:"\\ea6c"}),e.search=new e("search",{fontCharacter:"\\ea6d"}),e.searchSave=new e("search-save",{fontCharacter:"\\ea6d"}),e.logOut=new e("log-out",{fontCharacter:"\\ea6e"}),e.signOut=new e("sign-out",{fontCharacter:"\\ea6e"}),e.logIn=new e("log-in",{fontCharacter:"\\ea6f"}),e.signIn=new e("sign-in",{fontCharacter:"\\ea6f"}),e.eye=new e("eye",{fontCharacter:"\\ea70"}),e.eyeUnwatch=new e("eye-unwatch",{fontCharacter:"\\ea70"}),e.eyeWatch=new e("eye-watch",{fontCharacter:"\\ea70"}),e.circleFilled=new e("circle-filled",{fontCharacter:"\\ea71"}),e.primitiveDot=new e("primitive-dot",{fontCharacter:"\\ea71"}),e.closeDirty=new e("close-dirty",{fontCharacter:"\\ea71"}),e.debugBreakpoint=new e("debug-breakpoint",{fontCharacter:"\\ea71"}),e.debugBreakpointDisabled=new e("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),e.debugHint=new e("debug-hint",{fontCharacter:"\\ea71"}),e.primitiveSquare=new e("primitive-square",{fontCharacter:"\\ea72"}),e.edit=new e("edit",{fontCharacter:"\\ea73"}),e.pencil=new e("pencil",{fontCharacter:"\\ea73"}),e.info=new e("info",{fontCharacter:"\\ea74"}),e.issueOpened=new e("issue-opened",{fontCharacter:"\\ea74"}),e.gistPrivate=new e("gist-private",{fontCharacter:"\\ea75"}),e.gitForkPrivate=new e("git-fork-private",{fontCharacter:"\\ea75"}),e.lock=new e("lock",{fontCharacter:"\\ea75"}),e.mirrorPrivate=new e("mirror-private",{fontCharacter:"\\ea75"}),e.close=new e("close",{fontCharacter:"\\ea76"}),e.removeClose=new e("remove-close",{fontCharacter:"\\ea76"}),e.x=new e("x",{fontCharacter:"\\ea76"}),e.repoSync=new e("repo-sync",{fontCharacter:"\\ea77"}),e.sync=new e("sync",{fontCharacter:"\\ea77"}),e.clone=new e("clone",{fontCharacter:"\\ea78"}),e.desktopDownload=new e("desktop-download",{fontCharacter:"\\ea78"}),e.beaker=new e("beaker",{fontCharacter:"\\ea79"}),e.microscope=new e("microscope",{fontCharacter:"\\ea79"}),e.vm=new e("vm",{fontCharacter:"\\ea7a"}),e.deviceDesktop=new e("device-desktop",{fontCharacter:"\\ea7a"}),e.file=new e("file",{fontCharacter:"\\ea7b"}),e.fileText=new e("file-text",{fontCharacter:"\\ea7b"}),e.more=new e("more",{fontCharacter:"\\ea7c"}),e.ellipsis=new e("ellipsis",{fontCharacter:"\\ea7c"}),e.kebabHorizontal=new e("kebab-horizontal",{fontCharacter:"\\ea7c"}),e.mailReply=new e("mail-reply",{fontCharacter:"\\ea7d"}),e.reply=new e("reply",{fontCharacter:"\\ea7d"}),e.organization=new e("organization",{fontCharacter:"\\ea7e"}),e.organizationFilled=new e("organization-filled",{fontCharacter:"\\ea7e"}),e.organizationOutline=new e("organization-outline",{fontCharacter:"\\ea7e"}),e.newFile=new e("new-file",{fontCharacter:"\\ea7f"}),e.fileAdd=new e("file-add",{fontCharacter:"\\ea7f"}),e.newFolder=new e("new-folder",{fontCharacter:"\\ea80"}),e.fileDirectoryCreate=new e("file-directory-create",{fontCharacter:"\\ea80"}),e.trash=new e("trash",{fontCharacter:"\\ea81"}),e.trashcan=new e("trashcan",{fontCharacter:"\\ea81"}),e.history=new e("history",{fontCharacter:"\\ea82"}),e.clock=new e("clock",{fontCharacter:"\\ea82"}),e.folder=new e("folder",{fontCharacter:"\\ea83"}),e.fileDirectory=new e("file-directory",{fontCharacter:"\\ea83"}),e.symbolFolder=new e("symbol-folder",{fontCharacter:"\\ea83"}),e.logoGithub=new e("logo-github",{fontCharacter:"\\ea84"}),e.markGithub=new e("mark-github",{fontCharacter:"\\ea84"}),e.github=new e("github",{fontCharacter:"\\ea84"}),e.terminal=new e("terminal",{fontCharacter:"\\ea85"}),e.console=new e("console",{fontCharacter:"\\ea85"}),e.repl=new e("repl",{fontCharacter:"\\ea85"}),e.zap=new e("zap",{fontCharacter:"\\ea86"}),e.symbolEvent=new e("symbol-event",{fontCharacter:"\\ea86"}),e.error=new e("error",{fontCharacter:"\\ea87"}),e.stop=new e("stop",{fontCharacter:"\\ea87"}),e.variable=new e("variable",{fontCharacter:"\\ea88"}),e.symbolVariable=new e("symbol-variable",{fontCharacter:"\\ea88"}),e.array=new e("array",{fontCharacter:"\\ea8a"}),e.symbolArray=new e("symbol-array",{fontCharacter:"\\ea8a"}),e.symbolModule=new e("symbol-module",{fontCharacter:"\\ea8b"}),e.symbolPackage=new e("symbol-package",{fontCharacter:"\\ea8b"}),e.symbolNamespace=new e("symbol-namespace",{fontCharacter:"\\ea8b"}),e.symbolObject=new e("symbol-object",{fontCharacter:"\\ea8b"}),e.symbolMethod=new e("symbol-method",{fontCharacter:"\\ea8c"}),e.symbolFunction=new e("symbol-function",{fontCharacter:"\\ea8c"}),e.symbolConstructor=new e("symbol-constructor",{fontCharacter:"\\ea8c"}),e.symbolBoolean=new e("symbol-boolean",{fontCharacter:"\\ea8f"}),e.symbolNull=new e("symbol-null",{fontCharacter:"\\ea8f"}),e.symbolNumeric=new e("symbol-numeric",{fontCharacter:"\\ea90"}),e.symbolNumber=new e("symbol-number",{fontCharacter:"\\ea90"}),e.symbolStructure=new e("symbol-structure",{fontCharacter:"\\ea91"}),e.symbolStruct=new e("symbol-struct",{fontCharacter:"\\ea91"}),e.symbolParameter=new e("symbol-parameter",{fontCharacter:"\\ea92"}),e.symbolTypeParameter=new e("symbol-type-parameter",{fontCharacter:"\\ea92"}),e.symbolKey=new e("symbol-key",{fontCharacter:"\\ea93"}),e.symbolText=new e("symbol-text",{fontCharacter:"\\ea93"}),e.symbolReference=new e("symbol-reference",{fontCharacter:"\\ea94"}),e.goToFile=new e("go-to-file",{fontCharacter:"\\ea94"}),e.symbolEnum=new e("symbol-enum",{fontCharacter:"\\ea95"}),e.symbolValue=new e("symbol-value",{fontCharacter:"\\ea95"}),e.symbolRuler=new e("symbol-ruler",{fontCharacter:"\\ea96"}),e.symbolUnit=new e("symbol-unit",{fontCharacter:"\\ea96"}),e.activateBreakpoints=new e("activate-breakpoints",{fontCharacter:"\\ea97"}),e.archive=new e("archive",{fontCharacter:"\\ea98"}),e.arrowBoth=new e("arrow-both",{fontCharacter:"\\ea99"}),e.arrowDown=new e("arrow-down",{fontCharacter:"\\ea9a"}),e.arrowLeft=new e("arrow-left",{fontCharacter:"\\ea9b"}),e.arrowRight=new e("arrow-right",{fontCharacter:"\\ea9c"}),e.arrowSmallDown=new e("arrow-small-down",{fontCharacter:"\\ea9d"}),e.arrowSmallLeft=new e("arrow-small-left",{fontCharacter:"\\ea9e"}),e.arrowSmallRight=new e("arrow-small-right",{fontCharacter:"\\ea9f"}),e.arrowSmallUp=new e("arrow-small-up",{fontCharacter:"\\eaa0"}),e.arrowUp=new e("arrow-up",{fontCharacter:"\\eaa1"}),e.bell=new e("bell",{fontCharacter:"\\eaa2"}),e.bold=new e("bold",{fontCharacter:"\\eaa3"}),e.book=new e("book",{fontCharacter:"\\eaa4"}),e.bookmark=new e("bookmark",{fontCharacter:"\\eaa5"}),e.debugBreakpointConditionalUnverified=new e("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),e.debugBreakpointConditional=new e("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),e.debugBreakpointConditionalDisabled=new e("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),e.debugBreakpointDataUnverified=new e("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),e.debugBreakpointData=new e("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),e.debugBreakpointDataDisabled=new e("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),e.debugBreakpointLogUnverified=new e("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),e.debugBreakpointLog=new e("debug-breakpoint-log",{fontCharacter:"\\eaab"}),e.debugBreakpointLogDisabled=new e("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),e.briefcase=new e("briefcase",{fontCharacter:"\\eaac"}),e.broadcast=new e("broadcast",{fontCharacter:"\\eaad"}),e.browser=new e("browser",{fontCharacter:"\\eaae"}),e.bug=new e("bug",{fontCharacter:"\\eaaf"}),e.calendar=new e("calendar",{fontCharacter:"\\eab0"}),e.caseSensitive=new e("case-sensitive",{fontCharacter:"\\eab1"}),e.check=new e("check",{fontCharacter:"\\eab2"}),e.checklist=new e("checklist",{fontCharacter:"\\eab3"}),e.chevronDown=new e("chevron-down",{fontCharacter:"\\eab4"}),e.dropDownButton=new e("drop-down-button",e.chevronDown.definition),e.chevronLeft=new e("chevron-left",{fontCharacter:"\\eab5"}),e.chevronRight=new e("chevron-right",{fontCharacter:"\\eab6"}),e.chevronUp=new e("chevron-up",{fontCharacter:"\\eab7"}),e.chromeClose=new e("chrome-close",{fontCharacter:"\\eab8"}),e.chromeMaximize=new e("chrome-maximize",{fontCharacter:"\\eab9"}),e.chromeMinimize=new e("chrome-minimize",{fontCharacter:"\\eaba"}),e.chromeRestore=new e("chrome-restore",{fontCharacter:"\\eabb"}),e.circleOutline=new e("circle-outline",{fontCharacter:"\\eabc"}),e.debugBreakpointUnverified=new e("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),e.circleSlash=new e("circle-slash",{fontCharacter:"\\eabd"}),e.circuitBoard=new e("circuit-board",{fontCharacter:"\\eabe"}),e.clearAll=new e("clear-all",{fontCharacter:"\\eabf"}),e.clippy=new e("clippy",{fontCharacter:"\\eac0"}),e.closeAll=new e("close-all",{fontCharacter:"\\eac1"}),e.cloudDownload=new e("cloud-download",{fontCharacter:"\\eac2"}),e.cloudUpload=new e("cloud-upload",{fontCharacter:"\\eac3"}),e.code=new e("code",{fontCharacter:"\\eac4"}),e.collapseAll=new e("collapse-all",{fontCharacter:"\\eac5"}),e.colorMode=new e("color-mode",{fontCharacter:"\\eac6"}),e.commentDiscussion=new e("comment-discussion",{fontCharacter:"\\eac7"}),e.compareChanges=new e("compare-changes",{fontCharacter:"\\eafd"}),e.creditCard=new e("credit-card",{fontCharacter:"\\eac9"}),e.dash=new e("dash",{fontCharacter:"\\eacc"}),e.dashboard=new e("dashboard",{fontCharacter:"\\eacd"}),e.database=new e("database",{fontCharacter:"\\eace"}),e.debugContinue=new e("debug-continue",{fontCharacter:"\\eacf"}),e.debugDisconnect=new e("debug-disconnect",{fontCharacter:"\\ead0"}),e.debugPause=new e("debug-pause",{fontCharacter:"\\ead1"}),e.debugRestart=new e("debug-restart",{fontCharacter:"\\ead2"}),e.debugStart=new e("debug-start",{fontCharacter:"\\ead3"}),e.debugStepInto=new e("debug-step-into",{fontCharacter:"\\ead4"}),e.debugStepOut=new e("debug-step-out",{fontCharacter:"\\ead5"}),e.debugStepOver=new e("debug-step-over",{fontCharacter:"\\ead6"}),e.debugStop=new e("debug-stop",{fontCharacter:"\\ead7"}),e.debug=new e("debug",{fontCharacter:"\\ead8"}),e.deviceCameraVideo=new e("device-camera-video",{fontCharacter:"\\ead9"}),e.deviceCamera=new e("device-camera",{fontCharacter:"\\eada"}),e.deviceMobile=new e("device-mobile",{fontCharacter:"\\eadb"}),e.diffAdded=new e("diff-added",{fontCharacter:"\\eadc"}),e.diffIgnored=new e("diff-ignored",{fontCharacter:"\\eadd"}),e.diffModified=new e("diff-modified",{fontCharacter:"\\eade"}),e.diffRemoved=new e("diff-removed",{fontCharacter:"\\eadf"}),e.diffRenamed=new e("diff-renamed",{fontCharacter:"\\eae0"}),e.diff=new e("diff",{fontCharacter:"\\eae1"}),e.discard=new e("discard",{fontCharacter:"\\eae2"}),e.editorLayout=new e("editor-layout",{fontCharacter:"\\eae3"}),e.emptyWindow=new e("empty-window",{fontCharacter:"\\eae4"}),e.exclude=new e("exclude",{fontCharacter:"\\eae5"}),e.extensions=new e("extensions",{fontCharacter:"\\eae6"}),e.eyeClosed=new e("eye-closed",{fontCharacter:"\\eae7"}),e.fileBinary=new e("file-binary",{fontCharacter:"\\eae8"}),e.fileCode=new e("file-code",{fontCharacter:"\\eae9"}),e.fileMedia=new e("file-media",{fontCharacter:"\\eaea"}),e.filePdf=new e("file-pdf",{fontCharacter:"\\eaeb"}),e.fileSubmodule=new e("file-submodule",{fontCharacter:"\\eaec"}),e.fileSymlinkDirectory=new e("file-symlink-directory",{fontCharacter:"\\eaed"}),e.fileSymlinkFile=new e("file-symlink-file",{fontCharacter:"\\eaee"}),e.fileZip=new e("file-zip",{fontCharacter:"\\eaef"}),e.files=new e("files",{fontCharacter:"\\eaf0"}),e.filter=new e("filter",{fontCharacter:"\\eaf1"}),e.flame=new e("flame",{fontCharacter:"\\eaf2"}),e.foldDown=new e("fold-down",{fontCharacter:"\\eaf3"}),e.foldUp=new e("fold-up",{fontCharacter:"\\eaf4"}),e.fold=new e("fold",{fontCharacter:"\\eaf5"}),e.folderActive=new e("folder-active",{fontCharacter:"\\eaf6"}),e.folderOpened=new e("folder-opened",{fontCharacter:"\\eaf7"}),e.gear=new e("gear",{fontCharacter:"\\eaf8"}),e.gift=new e("gift",{fontCharacter:"\\eaf9"}),e.gistSecret=new e("gist-secret",{fontCharacter:"\\eafa"}),e.gist=new e("gist",{fontCharacter:"\\eafb"}),e.gitCommit=new e("git-commit",{fontCharacter:"\\eafc"}),e.gitCompare=new e("git-compare",{fontCharacter:"\\eafd"}),e.gitMerge=new e("git-merge",{fontCharacter:"\\eafe"}),e.githubAction=new e("github-action",{fontCharacter:"\\eaff"}),e.githubAlt=new e("github-alt",{fontCharacter:"\\eb00"}),e.globe=new e("globe",{fontCharacter:"\\eb01"}),e.grabber=new e("grabber",{fontCharacter:"\\eb02"}),e.graph=new e("graph",{fontCharacter:"\\eb03"}),e.gripper=new e("gripper",{fontCharacter:"\\eb04"}),e.heart=new e("heart",{fontCharacter:"\\eb05"}),e.home=new e("home",{fontCharacter:"\\eb06"}),e.horizontalRule=new e("horizontal-rule",{fontCharacter:"\\eb07"}),e.hubot=new e("hubot",{fontCharacter:"\\eb08"}),e.inbox=new e("inbox",{fontCharacter:"\\eb09"}),e.issueClosed=new e("issue-closed",{fontCharacter:"\\eba4"}),e.issueReopened=new e("issue-reopened",{fontCharacter:"\\eb0b"}),e.issues=new e("issues",{fontCharacter:"\\eb0c"}),e.italic=new e("italic",{fontCharacter:"\\eb0d"}),e.jersey=new e("jersey",{fontCharacter:"\\eb0e"}),e.json=new e("json",{fontCharacter:"\\eb0f"}),e.kebabVertical=new e("kebab-vertical",{fontCharacter:"\\eb10"}),e.key=new e("key",{fontCharacter:"\\eb11"}),e.law=new e("law",{fontCharacter:"\\eb12"}),e.lightbulbAutofix=new e("lightbulb-autofix",{fontCharacter:"\\eb13"}),e.linkExternal=new e("link-external",{fontCharacter:"\\eb14"}),e.link=new e("link",{fontCharacter:"\\eb15"}),e.listOrdered=new e("list-ordered",{fontCharacter:"\\eb16"}),e.listUnordered=new e("list-unordered",{fontCharacter:"\\eb17"}),e.liveShare=new e("live-share",{fontCharacter:"\\eb18"}),e.loading=new e("loading",{fontCharacter:"\\eb19"}),e.location=new e("location",{fontCharacter:"\\eb1a"}),e.mailRead=new e("mail-read",{fontCharacter:"\\eb1b"}),e.mail=new e("mail",{fontCharacter:"\\eb1c"}),e.markdown=new e("markdown",{fontCharacter:"\\eb1d"}),e.megaphone=new e("megaphone",{fontCharacter:"\\eb1e"}),e.mention=new e("mention",{fontCharacter:"\\eb1f"}),e.milestone=new e("milestone",{fontCharacter:"\\eb20"}),e.mortarBoard=new e("mortar-board",{fontCharacter:"\\eb21"}),e.move=new e("move",{fontCharacter:"\\eb22"}),e.multipleWindows=new e("multiple-windows",{fontCharacter:"\\eb23"}),e.mute=new e("mute",{fontCharacter:"\\eb24"}),e.noNewline=new e("no-newline",{fontCharacter:"\\eb25"}),e.note=new e("note",{fontCharacter:"\\eb26"}),e.octoface=new e("octoface",{fontCharacter:"\\eb27"}),e.openPreview=new e("open-preview",{fontCharacter:"\\eb28"}),e.package_=new e("package",{fontCharacter:"\\eb29"}),e.paintcan=new e("paintcan",{fontCharacter:"\\eb2a"}),e.pin=new e("pin",{fontCharacter:"\\eb2b"}),e.play=new e("play",{fontCharacter:"\\eb2c"}),e.run=new e("run",{fontCharacter:"\\eb2c"}),e.plug=new e("plug",{fontCharacter:"\\eb2d"}),e.preserveCase=new e("preserve-case",{fontCharacter:"\\eb2e"}),e.preview=new e("preview",{fontCharacter:"\\eb2f"}),e.project=new e("project",{fontCharacter:"\\eb30"}),e.pulse=new e("pulse",{fontCharacter:"\\eb31"}),e.question=new e("question",{fontCharacter:"\\eb32"}),e.quote=new e("quote",{fontCharacter:"\\eb33"}),e.radioTower=new e("radio-tower",{fontCharacter:"\\eb34"}),e.reactions=new e("reactions",{fontCharacter:"\\eb35"}),e.references=new e("references",{fontCharacter:"\\eb36"}),e.refresh=new e("refresh",{fontCharacter:"\\eb37"}),e.regex=new e("regex",{fontCharacter:"\\eb38"}),e.remoteExplorer=new e("remote-explorer",{fontCharacter:"\\eb39"}),e.remote=new e("remote",{fontCharacter:"\\eb3a"}),e.remove=new e("remove",{fontCharacter:"\\eb3b"}),e.replaceAll=new e("replace-all",{fontCharacter:"\\eb3c"}),e.replace=new e("replace",{fontCharacter:"\\eb3d"}),e.repoClone=new e("repo-clone",{fontCharacter:"\\eb3e"}),e.repoForcePush=new e("repo-force-push",{fontCharacter:"\\eb3f"}),e.repoPull=new e("repo-pull",{fontCharacter:"\\eb40"}),e.repoPush=new e("repo-push",{fontCharacter:"\\eb41"}),e.report=new e("report",{fontCharacter:"\\eb42"}),e.requestChanges=new e("request-changes",{fontCharacter:"\\eb43"}),e.rocket=new e("rocket",{fontCharacter:"\\eb44"}),e.rootFolderOpened=new e("root-folder-opened",{fontCharacter:"\\eb45"}),e.rootFolder=new e("root-folder",{fontCharacter:"\\eb46"}),e.rss=new e("rss",{fontCharacter:"\\eb47"}),e.ruby=new e("ruby",{fontCharacter:"\\eb48"}),e.saveAll=new e("save-all",{fontCharacter:"\\eb49"}),e.saveAs=new e("save-as",{fontCharacter:"\\eb4a"}),e.save=new e("save",{fontCharacter:"\\eb4b"}),e.screenFull=new e("screen-full",{fontCharacter:"\\eb4c"}),e.screenNormal=new e("screen-normal",{fontCharacter:"\\eb4d"}),e.searchStop=new e("search-stop",{fontCharacter:"\\eb4e"}),e.server=new e("server",{fontCharacter:"\\eb50"}),e.settingsGear=new e("settings-gear",{fontCharacter:"\\eb51"}),e.settings=new e("settings",{fontCharacter:"\\eb52"}),e.shield=new e("shield",{fontCharacter:"\\eb53"}),e.smiley=new e("smiley",{fontCharacter:"\\eb54"}),e.sortPrecedence=new e("sort-precedence",{fontCharacter:"\\eb55"}),e.splitHorizontal=new e("split-horizontal",{fontCharacter:"\\eb56"}),e.splitVertical=new e("split-vertical",{fontCharacter:"\\eb57"}),e.squirrel=new e("squirrel",{fontCharacter:"\\eb58"}),e.starFull=new e("star-full",{fontCharacter:"\\eb59"}),e.starHalf=new e("star-half",{fontCharacter:"\\eb5a"}),e.symbolClass=new e("symbol-class",{fontCharacter:"\\eb5b"}),e.symbolColor=new e("symbol-color",{fontCharacter:"\\eb5c"}),e.symbolConstant=new e("symbol-constant",{fontCharacter:"\\eb5d"}),e.symbolEnumMember=new e("symbol-enum-member",{fontCharacter:"\\eb5e"}),e.symbolField=new e("symbol-field",{fontCharacter:"\\eb5f"}),e.symbolFile=new e("symbol-file",{fontCharacter:"\\eb60"}),e.symbolInterface=new e("symbol-interface",{fontCharacter:"\\eb61"}),e.symbolKeyword=new e("symbol-keyword",{fontCharacter:"\\eb62"}),e.symbolMisc=new e("symbol-misc",{fontCharacter:"\\eb63"}),e.symbolOperator=new e("symbol-operator",{fontCharacter:"\\eb64"}),e.symbolProperty=new e("symbol-property",{fontCharacter:"\\eb65"}),e.wrench=new e("wrench",{fontCharacter:"\\eb65"}),e.wrenchSubaction=new e("wrench-subaction",{fontCharacter:"\\eb65"}),e.symbolSnippet=new e("symbol-snippet",{fontCharacter:"\\eb66"}),e.tasklist=new e("tasklist",{fontCharacter:"\\eb67"}),e.telescope=new e("telescope",{fontCharacter:"\\eb68"}),e.textSize=new e("text-size",{fontCharacter:"\\eb69"}),e.threeBars=new e("three-bars",{fontCharacter:"\\eb6a"}),e.thumbsdown=new e("thumbsdown",{fontCharacter:"\\eb6b"}),e.thumbsup=new e("thumbsup",{fontCharacter:"\\eb6c"}),e.tools=new e("tools",{fontCharacter:"\\eb6d"}),e.triangleDown=new e("triangle-down",{fontCharacter:"\\eb6e"}),e.triangleLeft=new e("triangle-left",{fontCharacter:"\\eb6f"}),e.triangleRight=new e("triangle-right",{fontCharacter:"\\eb70"}),e.triangleUp=new e("triangle-up",{fontCharacter:"\\eb71"}),e.twitter=new e("twitter",{fontCharacter:"\\eb72"}),e.unfold=new e("unfold",{fontCharacter:"\\eb73"}),e.unlock=new e("unlock",{fontCharacter:"\\eb74"}),e.unmute=new e("unmute",{fontCharacter:"\\eb75"}),e.unverified=new e("unverified",{fontCharacter:"\\eb76"}),e.verified=new e("verified",{fontCharacter:"\\eb77"}),e.versions=new e("versions",{fontCharacter:"\\eb78"}),e.vmActive=new e("vm-active",{fontCharacter:"\\eb79"}),e.vmOutline=new e("vm-outline",{fontCharacter:"\\eb7a"}),e.vmRunning=new e("vm-running",{fontCharacter:"\\eb7b"}),e.watch=new e("watch",{fontCharacter:"\\eb7c"}),e.whitespace=new e("whitespace",{fontCharacter:"\\eb7d"}),e.wholeWord=new e("whole-word",{fontCharacter:"\\eb7e"}),e.window=new e("window",{fontCharacter:"\\eb7f"}),e.wordWrap=new e("word-wrap",{fontCharacter:"\\eb80"}),e.zoomIn=new e("zoom-in",{fontCharacter:"\\eb81"}),e.zoomOut=new e("zoom-out",{fontCharacter:"\\eb82"}),e.listFilter=new e("list-filter",{fontCharacter:"\\eb83"}),e.listFlat=new e("list-flat",{fontCharacter:"\\eb84"}),e.listSelection=new e("list-selection",{fontCharacter:"\\eb85"}),e.selection=new e("selection",{fontCharacter:"\\eb85"}),e.listTree=new e("list-tree",{fontCharacter:"\\eb86"}),e.debugBreakpointFunctionUnverified=new e("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),e.debugBreakpointFunction=new e("debug-breakpoint-function",{fontCharacter:"\\eb88"}),e.debugBreakpointFunctionDisabled=new e("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),e.debugStackframeActive=new e("debug-stackframe-active",{fontCharacter:"\\eb89"}),e.debugStackframeDot=new e("debug-stackframe-dot",{fontCharacter:"\\eb8a"}),e.debugStackframe=new e("debug-stackframe",{fontCharacter:"\\eb8b"}),e.debugStackframeFocused=new e("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),e.debugBreakpointUnsupported=new e("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),e.symbolString=new e("symbol-string",{fontCharacter:"\\eb8d"}),e.debugReverseContinue=new e("debug-reverse-continue",{fontCharacter:"\\eb8e"}),e.debugStepBack=new e("debug-step-back",{fontCharacter:"\\eb8f"}),e.debugRestartFrame=new e("debug-restart-frame",{fontCharacter:"\\eb90"}),e.callIncoming=new e("call-incoming",{fontCharacter:"\\eb92"}),e.callOutgoing=new e("call-outgoing",{fontCharacter:"\\eb93"}),e.menu=new e("menu",{fontCharacter:"\\eb94"}),e.expandAll=new e("expand-all",{fontCharacter:"\\eb95"}),e.feedback=new e("feedback",{fontCharacter:"\\eb96"}),e.groupByRefType=new e("group-by-ref-type",{fontCharacter:"\\eb97"}),e.ungroupByRefType=new e("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),e.account=new e("account",{fontCharacter:"\\eb99"}),e.bellDot=new e("bell-dot",{fontCharacter:"\\eb9a"}),e.debugConsole=new e("debug-console",{fontCharacter:"\\eb9b"}),e.library=new e("library",{fontCharacter:"\\eb9c"}),e.output=new e("output",{fontCharacter:"\\eb9d"}),e.runAll=new e("run-all",{fontCharacter:"\\eb9e"}),e.syncIgnored=new e("sync-ignored",{fontCharacter:"\\eb9f"}),e.pinned=new e("pinned",{fontCharacter:"\\eba0"}),e.githubInverted=new e("github-inverted",{fontCharacter:"\\eba1"}),e.debugAlt=new e("debug-alt",{fontCharacter:"\\eb91"}),e.serverProcess=new e("server-process",{fontCharacter:"\\eba2"}),e.serverEnvironment=new e("server-environment",{fontCharacter:"\\eba3"}),e.pass=new e("pass",{fontCharacter:"\\eba4"}),e.stopCircle=new e("stop-circle",{fontCharacter:"\\eba5"}),e.playCircle=new e("play-circle",{fontCharacter:"\\eba6"}),e.record=new e("record",{fontCharacter:"\\eba7"}),e.debugAltSmall=new e("debug-alt-small",{fontCharacter:"\\eba8"}),e.vmConnect=new e("vm-connect",{fontCharacter:"\\eba9"}),e.cloud=new e("cloud",{fontCharacter:"\\ebaa"}),e.merge=new e("merge",{fontCharacter:"\\ebab"}),e.exportIcon=new e("export",{fontCharacter:"\\ebac"}),e.graphLeft=new e("graph-left",{fontCharacter:"\\ebad"}),e.magnet=new e("magnet",{fontCharacter:"\\ebae"}),e.notebook=new e("notebook",{fontCharacter:"\\ebaf"}),e.redo=new e("redo",{fontCharacter:"\\ebb0"}),e.checkAll=new e("check-all",{fontCharacter:"\\ebb1"}),e.pinnedDirty=new e("pinned-dirty",{fontCharacter:"\\ebb2"}),e.passFilled=new e("pass-filled",{fontCharacter:"\\ebb3"}),e.circleLargeFilled=new e("circle-large-filled",{fontCharacter:"\\ebb4"}),e.circleLargeOutline=new e("circle-large-outline",{fontCharacter:"\\ebb5"}),e.combine=new e("combine",{fontCharacter:"\\ebb6"}),e.gather=new e("gather",{fontCharacter:"\\ebb6"}),e.table=new e("table",{fontCharacter:"\\ebb7"}),e.variableGroup=new e("variable-group",{fontCharacter:"\\ebb8"}),e.typeHierarchy=new e("type-hierarchy",{fontCharacter:"\\ebb9"}),e.typeHierarchySub=new e("type-hierarchy-sub",{fontCharacter:"\\ebba"}),e.typeHierarchySuper=new e("type-hierarchy-super",{fontCharacter:"\\ebbb"}),e.gitPullRequestCreate=new e("git-pull-request-create",{fontCharacter:"\\ebbc"}),e.runAbove=new e("run-above",{fontCharacter:"\\ebbd"}),e.runBelow=new e("run-below",{fontCharacter:"\\ebbe"}),e.notebookTemplate=new e("notebook-template",{fontCharacter:"\\ebbf"}),e.debugRerun=new e("debug-rerun",{fontCharacter:"\\ebc0"}),e.workspaceTrusted=new e("workspace-trusted",{fontCharacter:"\\ebc1"}),e.workspaceUntrusted=new e("workspace-untrusted",{fontCharacter:"\\ebc2"}),e.workspaceUnspecified=new e("workspace-unspecified",{fontCharacter:"\\ebc3"}),e.terminalCmd=new e("terminal-cmd",{fontCharacter:"\\ebc4"}),e.terminalDebian=new e("terminal-debian",{fontCharacter:"\\ebc5"}),e.terminalLinux=new e("terminal-linux",{fontCharacter:"\\ebc6"}),e.terminalPowershell=new e("terminal-powershell",{fontCharacter:"\\ebc7"}),e.terminalTmux=new e("terminal-tmux",{fontCharacter:"\\ebc8"}),e.terminalUbuntu=new e("terminal-ubuntu",{fontCharacter:"\\ebc9"}),e.terminalBash=new e("terminal-bash",{fontCharacter:"\\ebca"}),e.arrowSwap=new e("arrow-swap",{fontCharacter:"\\ebcb"}),e.copy=new e("copy",{fontCharacter:"\\ebcc"}),e.personAdd=new e("person-add",{fontCharacter:"\\ebcd"}),e.filterFilled=new e("filter-filled",{fontCharacter:"\\ebce"}),e.wand=new e("wand",{fontCharacter:"\\ebcf"}),e.debugLineByLine=new e("debug-line-by-line",{fontCharacter:"\\ebd0"}),e.inspect=new e("inspect",{fontCharacter:"\\ebd1"}),e.layers=new e("layers",{fontCharacter:"\\ebd2"}),e.layersDot=new e("layers-dot",{fontCharacter:"\\ebd3"}),e.layersActive=new e("layers-active",{fontCharacter:"\\ebd4"}),e.compass=new e("compass",{fontCharacter:"\\ebd5"}),e.compassDot=new e("compass-dot",{fontCharacter:"\\ebd6"}),e.compassActive=new e("compass-active",{fontCharacter:"\\ebd7"}),e.azure=new e("azure",{fontCharacter:"\\ebd8"}),e.issueDraft=new e("issue-draft",{fontCharacter:"\\ebd9"}),e.gitPullRequestClosed=new e("git-pull-request-closed",{fontCharacter:"\\ebda"}),e.gitPullRequestDraft=new e("git-pull-request-draft",{fontCharacter:"\\ebdb"}),e.debugAll=new e("debug-all",{fontCharacter:"\\ebdc"}),e.debugCoverage=new e("debug-coverage",{fontCharacter:"\\ebdd"}),e.runErrors=new e("run-errors",{fontCharacter:"\\ebde"}),e.folderLibrary=new e("folder-library",{fontCharacter:"\\ebdf"}),e.debugContinueSmall=new e("debug-continue-small",{fontCharacter:"\\ebe0"}),e.beakerStop=new e("beaker-stop",{fontCharacter:"\\ebe1"}),e.graphLine=new e("graph-line",{fontCharacter:"\\ebe2"}),e.graphScatter=new e("graph-scatter",{fontCharacter:"\\ebe3"}),e.pieChart=new e("pie-chart",{fontCharacter:"\\ebe4"}),e.bracket=new e("bracket",e.json.definition),e.bracketDot=new e("bracket-dot",{fontCharacter:"\\ebe5"}),e.bracketError=new e("bracket-error",{fontCharacter:"\\ebe6"}),e.lockSmall=new e("lock-small",{fontCharacter:"\\ebe7"}),e.azureDevops=new e("azure-devops",{fontCharacter:"\\ebe8"}),e.verifiedFilled=new e("verified-filled",{fontCharacter:"\\ebe9"})}(H||(H={}))},WaYH:function(Be,ie,N){"use strict";var Q=N("rePB"),M=N("Ff2n"),I=N("VTBJ"),j=N("1OyB"),C=N("vuIU"),R=N("JX7q"),H=N("Ji7U"),k=N("LK+K"),e=N("q1tI"),O=N("TSYQ"),y=N.n(O),p=N("sboe"),c=N("OZM5"),a=function(x){var _=x.prefixCls,d=x.level,u=x.isStart,l=x.isEnd;if(!d)return null;for(var h="".concat(_,"-indent-unit"),v=[],f=0;f<d;f+=1){var T;v.push(e.createElement("span",{key:f,className:y()(h,(T={},Object(Q.a)(T,"".concat(h,"-start"),u[f+1]),Object(Q.a)(T,"".concat(h,"-end"),l[f+1]),Object(Q.a)(T,"".concat(h,"-end-first-level"),!f&&l[0]),T))}))}return e.createElement("span",{"aria-hidden":"true",className:"".concat(_,"-indent")},v)},r=a,s=N("815F"),o="open",i="close",n="---",t=function(m){Object(H.a)(_,m);var x=Object(k.a)(_);function _(){var d;return Object(j.a)(this,_),d=x.apply(this,arguments),d.state={dragNodeHighlight:!1},d.onSelectorClick=function(u){var l=d.props.context.onNodeClick;l(u,Object(s.b)(d.props)),d.isSelectable()?d.onSelect(u):d.onCheck(u)},d.onSelectorDoubleClick=function(u){var l=d.props.context.onNodeDoubleClick;l(u,Object(s.b)(d.props))},d.onSelect=function(u){if(d.isDisabled())return;var l=d.props.context.onNodeSelect;u.preventDefault(),l(u,Object(s.b)(d.props))},d.onCheck=function(u){if(d.isDisabled())return;var l=d.props,h=l.disableCheckbox,v=l.checked,f=d.props.context.onNodeCheck;if(!d.isCheckable()||h)return;u.preventDefault();var T=!v;f(u,Object(s.b)(d.props),T)},d.onMouseEnter=function(u){var l=d.props.context.onNodeMouseEnter;l(u,Object(s.b)(d.props))},d.onMouseLeave=function(u){var l=d.props.context.onNodeMouseLeave;l(u,Object(s.b)(d.props))},d.onContextMenu=function(u){var l=d.props.context.onNodeContextMenu;l(u,Object(s.b)(d.props))},d.onDragStart=function(u){var l=d.props.context.onNodeDragStart;u.stopPropagation(),d.setState({dragNodeHighlight:!0}),l(u,Object(R.a)(d));try{u.dataTransfer.setData("text/plain","")}catch(h){}},d.onDragEnter=function(u){var l=d.props.context.onNodeDragEnter;u.preventDefault(),u.stopPropagation(),l(u,Object(R.a)(d))},d.onDragOver=function(u){var l=d.props.context.onNodeDragOver;u.preventDefault(),u.stopPropagation(),l(u,Object(R.a)(d))},d.onDragLeave=function(u){var l=d.props.context.onNodeDragLeave;u.stopPropagation(),l(u,Object(R.a)(d))},d.onDragEnd=function(u){var l=d.props.context.onNodeDragEnd;u.stopPropagation(),d.setState({dragNodeHighlight:!1}),l(u,Object(R.a)(d))},d.onDrop=function(u){var l=d.props.context.onNodeDrop;u.preventDefault(),u.stopPropagation(),d.setState({dragNodeHighlight:!1}),l(u,Object(R.a)(d))},d.onExpand=function(u){var l=d.props.context.onNodeExpand;l(u,Object(s.b)(d.props))},d.setSelectHandle=function(u){d.selectHandle=u},d.getNodeState=function(){var u=d.props.expanded;return d.isLeaf()?null:u?o:i},d.hasChildren=function(){var u=d.props.eventKey,l=d.props.context.keyEntities,h=l[u]||{},v=h.children;return!!(v||[]).length},d.isLeaf=function(){var u=d.props,l=u.isLeaf,h=u.loaded,v=d.props.context.loadData,f=d.hasChildren();return l===!1?!1:l||!v&&!f||v&&h&&!f},d.isDisabled=function(){var u=d.props.disabled,l=d.props.context.disabled;return!!(l||u)},d.isCheckable=function(){var u=d.props.checkable,l=d.props.context.checkable;return!l||u===!1?!1:l},d.syncLoadData=function(u){var l=u.expanded,h=u.loading,v=u.loaded,f=d.props.context,T=f.loadData,P=f.onNodeLoad;if(h)return;T&&l&&!d.isLeaf()&&(!d.hasChildren()&&!v&&P(Object(s.b)(d.props)))},d.renderSwitcher=function(){var u=d.props,l=u.expanded,h=u.switcherIcon,v=d.props.context,f=v.prefixCls,T=v.switcherIcon,P=h||T;if(d.isLeaf())return e.createElement("span",{className:y()("".concat(f,"-switcher"),"".concat(f,"-switcher-noop"))},typeof P=="function"?P(Object(I.a)(Object(I.a)({},d.props),{},{isLeaf:!0})):P);var L=y()("".concat(f,"-switcher"),"".concat(f,"-switcher_").concat(l?o:i));return e.createElement("span",{onClick:d.onExpand,className:L},typeof P=="function"?P(Object(I.a)(Object(I.a)({},d.props),{},{isLeaf:!1})):P)},d.renderCheckbox=function(){var u=d.props,l=u.checked,h=u.halfChecked,v=u.disableCheckbox,f=d.props.context.prefixCls,T=d.isDisabled(),P=d.isCheckable();if(!P)return null;var L=typeof P!="boolean"?P:null;return e.createElement("span",{className:y()("".concat(f,"-checkbox"),l&&"".concat(f,"-checkbox-checked"),!l&&h&&"".concat(f,"-checkbox-indeterminate"),(T||v)&&"".concat(f,"-checkbox-disabled")),onClick:d.onCheck},L)},d.renderIcon=function(){var u=d.props.loading,l=d.props.context.prefixCls;return e.createElement("span",{className:y()("".concat(l,"-iconEle"),"".concat(l,"-icon__").concat(d.getNodeState()||"docu"),u&&"".concat(l,"-icon_loading"))})},d.renderSelector=function(){var u=d.state.dragNodeHighlight,l=d.props,h=l.title,v=l.selected,f=l.icon,T=l.loading,P=l.data,L=d.props.context,S=L.prefixCls,A=L.showIcon,W=L.icon,D=L.draggable,K=L.loadData,Y=L.titleRender,oe=d.isDisabled(),le="".concat(S,"-node-content-wrapper"),Se;if(A){var Ee=f||W;Se=Ee?e.createElement("span",{className:y()("".concat(S,"-iconEle"),"".concat(S,"-icon__customize"))},typeof Ee=="function"?Ee(d.props):Ee):d.renderIcon()}else K&&T&&(Se=d.renderIcon());var ae;typeof h=="function"?ae=h(P):Y?ae=Y(P):ae=h;var Ce=e.createElement("span",{className:"".concat(S,"-title")},ae);return e.createElement("span",{ref:d.setSelectHandle,title:typeof h=="string"?h:"",className:y()("".concat(le),"".concat(le,"-").concat(d.getNodeState()||"normal"),!oe&&(v||u)&&"".concat(S,"-node-selected"),!oe&&D&&"draggable"),draggable:!oe&&D||void 0,"aria-grabbed":!oe&&D||void 0,onMouseEnter:d.onMouseEnter,onMouseLeave:d.onMouseLeave,onContextMenu:d.onContextMenu,onClick:d.onSelectorClick,onDoubleClick:d.onSelectorDoubleClick,onDragStart:D?d.onDragStart:void 0},Se,Ce)},d}return Object(C.a)(_,[{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,l=this.props.context.selectable;return typeof u=="boolean"?u:l}},{key:"render",value:function(){var u,l=this.props,h=l.eventKey,v=l.className,f=l.style,T=l.dragOver,P=l.dragOverGapTop,L=l.dragOverGapBottom,S=l.isLeaf,A=l.isStart,W=l.isEnd,D=l.expanded,K=l.selected,Y=l.checked,oe=l.halfChecked,le=l.loading,Se=l.domRef,Ee=l.active,ae=l.onMouseMove,Ce=Object(M.a)(l,["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","onMouseMove"]),Le=this.props.context,de=Le.prefixCls,$=Le.filterTreeNode,He=Le.draggable,rt=Le.keyEntities,it=this.isDisabled(),Je=Object(c.f)(Ce),at=rt[h]||{},ke=at.level,Ge=W[W.length-1];return e.createElement("div",Object.assign({ref:Se,className:y()(v,"".concat(de,"-treenode"),(u={},Object(Q.a)(u,"".concat(de,"-treenode-disabled"),it),Object(Q.a)(u,"".concat(de,"-treenode-switcher-").concat(D?"open":"close"),!S),Object(Q.a)(u,"".concat(de,"-treenode-checkbox-checked"),Y),Object(Q.a)(u,"".concat(de,"-treenode-checkbox-indeterminate"),oe),Object(Q.a)(u,"".concat(de,"-treenode-selected"),K),Object(Q.a)(u,"".concat(de,"-treenode-loading"),le),Object(Q.a)(u,"".concat(de,"-treenode-active"),Ee),Object(Q.a)(u,"".concat(de,"-treenode-leaf-last"),Ge),Object(Q.a)(u,"drag-over",!it&&T),Object(Q.a)(u,"drag-over-gap-top",!it&&P),Object(Q.a)(u,"drag-over-gap-bottom",!it&&L),Object(Q.a)(u,"filter-node",$&&$(Object(s.b)(this.props))),u)),style:f,onDragEnter:He?this.onDragEnter:void 0,onDragOver:He?this.onDragOver:void 0,onDragLeave:He?this.onDragLeave:void 0,onDrop:He?this.onDrop:void 0,onDragEnd:He?this.onDragEnd:void 0,onMouseMove:ae},Je),e.createElement(r,{prefixCls:de,level:ke,isStart:A,isEnd:W}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),_}(e.Component),b=function(x){return e.createElement(p.a.Consumer,null,function(_){return e.createElement(t,Object.assign({},x,{context:_}))})};b.displayName="TreeNode",b.defaultProps={title:n},b.isTreeNode=1;var g=ie.a=b},Y1PL:function(Be,ie,N){"use strict";N.r(ie),N.d(ie,"ResizableTextArea",function(){return oe});var Q=N("wx14"),M=N("1OyB"),I=N("vuIU"),j=N("Ji7U"),C=N("LK+K"),R=N("q1tI"),H=N("VTBJ"),k=N("rePB"),e=N("Zm9Q"),O=N("Kwbf"),y=N("c+Xe"),p=N("m+aA"),c=N("bdgK"),a=new Map;function r(Ee){Ee.forEach(function(ae){var Ce,Le=ae.target;(Ce=a.get(Le))===null||Ce===void 0||Ce.forEach(function(de){return de(Le)})})}var s=new c.default(r),o=null,i=null;function n(Ee,ae){a.has(Ee)||(a.set(Ee,new Set),s.observe(Ee)),a.get(Ee).add(ae)}function t(Ee,ae){a.has(Ee)&&(a.get(Ee).delete(ae),a.get(Ee).size||(s.unobserve(Ee),a.delete(Ee)))}var b=function(Ee){Object(j.a)(Ce,Ee);var ae=Object(C.a)(Ce);function Ce(){return Object(M.a)(this,Ce),ae.apply(this,arguments)}return Object(I.a)(Ce,[{key:"render",value:function(){return this.props.children}}]),Ce}(R.Component),g=R.createContext(null);function m(Ee){var ae=Ee.children,Ce=Ee.onBatchResize,Le=R.useRef(0),de=R.useRef([]),$=R.useContext(g),He=R.useCallback(function(rt,it,Je){Le.current+=1;var at=Le.current;de.current.push({size:rt,element:it,data:Je}),Promise.resolve().then(function(){at===Le.current&&(Ce==null||Ce(de.current),de.current=[])}),$==null||$(rt,it,Je)},[Ce,$]);return R.createElement(g.Provider,{value:He},ae)}function x(Ee){var ae=Ee.children,Ce=Ee.disabled,Le=R.useRef(null),de=R.useRef(null),$=R.useContext(g),He=R.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),rt=R.isValidElement(ae)&&Object(y.c)(ae),it=rt?ae.ref:null,Je=R.useMemo(function(){return Object(y.a)(it,Le)},[it,Le]),at=R.useRef(Ee);at.current=Ee;var ke=R.useCallback(function(Ge){var et=at.current,ee=et.onResize,ve=et.data,Te=Ge.getBoundingClientRect(),Oe=Te.width,Qe=Te.height,tt=Ge.offsetWidth,st=Ge.offsetHeight,nt=Math.floor(Oe),dt=Math.floor(Qe);if(He.current.width!==nt||He.current.height!==dt||He.current.offsetWidth!==tt||He.current.offsetHeight!==st){var mt={width:nt,height:dt,offsetWidth:tt,offsetHeight:st};He.current=mt;var ye=tt===Math.round(Oe)?Oe:tt,Ae=st===Math.round(Qe)?Qe:st,Ne=Object(H.a)(Object(H.a)({},mt),{},{offsetWidth:ye,offsetHeight:Ae});$==null||$(Ne,Ge,ve),ee&&Promise.resolve().then(function(){ee(Ne,Ge)})}},[]);return R.useEffect(function(){var Ge=Object(p.a)(Le.current)||Object(p.a)(de.current);return Ge&&!Ce&&n(Ge,ke),function(){return t(Ge,ke)}},[Le.current,Ce]),R.createElement(b,{ref:de},rt?R.cloneElement(ae,{ref:Je}):ae)}var _="rc-observer-key";function d(Ee){var ae=Ee.children,Ce=Object(e.a)(ae);return Ce.map(function(Le,de){var $=(Le==null?void 0:Le.key)||"".concat(_,"-").concat(de);return R.createElement(x,Object(Q.a)({},Ee,{key:$}),Le)})}d.Collection=m;var u=d,l=N("bT9E"),h=N("TSYQ"),v=N.n(h),f=`
|
|
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
|
|
`,T=["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"],P={},L;function S(Ee){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ce=Ee.getAttribute("id")||Ee.getAttribute("data-reactid")||Ee.getAttribute("name");if(ae&&P[Ce])return P[Ce];var Le=window.getComputedStyle(Ee),de=Le.getPropertyValue("box-sizing")||Le.getPropertyValue("-moz-box-sizing")||Le.getPropertyValue("-webkit-box-sizing"),$=parseFloat(Le.getPropertyValue("padding-bottom"))+parseFloat(Le.getPropertyValue("padding-top")),He=parseFloat(Le.getPropertyValue("border-bottom-width"))+parseFloat(Le.getPropertyValue("border-top-width")),rt=T.map(function(Je){return"".concat(Je,":").concat(Le.getPropertyValue(Je))}).join(";"),it={sizingStyle:rt,paddingSize:$,borderSize:He,boxSizing:de};return ae&&Ce&&(P[Ce]=it),it}function A(Ee){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ce=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Le=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;L||(L=document.createElement("textarea"),L.setAttribute("tab-index","-1"),L.setAttribute("aria-hidden","true"),document.body.appendChild(L)),Ee.getAttribute("wrap")?L.setAttribute("wrap",Ee.getAttribute("wrap")):L.removeAttribute("wrap");var de=S(Ee,ae),$=de.paddingSize,He=de.borderSize,rt=de.boxSizing,it=de.sizingStyle;L.setAttribute("style","".concat(it,";").concat(f)),L.value=Ee.value||Ee.placeholder||"";var Je=Number.MIN_SAFE_INTEGER,at=Number.MAX_SAFE_INTEGER,ke=L.scrollHeight,Ge;if(rt==="border-box"?ke+=He:rt==="content-box"&&(ke-=$),Ce!==null||Le!==null){L.value=" ";var et=L.scrollHeight-$;Ce!==null&&(Je=et*Ce,rt==="border-box"&&(Je=Je+$+He),ke=Math.max(Je,ke)),Le!==null&&(at=et*Le,rt==="border-box"&&(at=at+$+He),Ge=ke>at?"":"hidden",ke=Math.min(at,ke))}return{height:ke,minHeight:Je,maxHeight:at,overflowY:Ge,resize:"none"}}var W=N("Gytx"),D=N.n(W),K;(function(Ee){Ee[Ee.NONE=0]="NONE",Ee[Ee.RESIZING=1]="RESIZING",Ee[Ee.RESIZED=2]="RESIZED"})(K||(K={}));var Y=function(Ee){Object(j.a)(Ce,Ee);var ae=Object(C.a)(Ce);function Ce(Le){var de;return Object(M.a)(this,Ce),de=ae.call(this,Le),de.nextFrameActionId=void 0,de.resizeFrameId=void 0,de.textArea=void 0,de.saveTextArea=function($){de.textArea=$},de.handleResize=function($){var He=de.state.resizeStatus,rt=de.props,it=rt.autoSize,Je=rt.onResize;if(He!==K.NONE)return;typeof Je=="function"&&Je($),it&&de.resizeOnNextFrame()},de.resizeOnNextFrame=function(){cancelAnimationFrame(de.nextFrameActionId),de.nextFrameActionId=requestAnimationFrame(de.resizeTextarea)},de.resizeTextarea=function(){var $=de.props.autoSize;if(!$||!de.textArea)return;var He=$.minRows,rt=$.maxRows,it=A(de.textArea,!1,He,rt);de.setState({textareaStyles:it,resizeStatus:K.RESIZING},function(){cancelAnimationFrame(de.resizeFrameId),de.resizeFrameId=requestAnimationFrame(function(){de.setState({resizeStatus:K.RESIZED},function(){de.resizeFrameId=requestAnimationFrame(function(){de.setState({resizeStatus:K.NONE}),de.fixFirefoxAutoScroll()})})})})},de.renderTextArea=function(){var $=de.props,He=$.prefixCls,rt=He===void 0?"rc-textarea":He,it=$.autoSize,Je=$.onResize,at=$.className,ke=$.disabled,Ge=de.state,et=Ge.textareaStyles,ee=Ge.resizeStatus,ve=Object(l.a)(de.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),Te=v()(rt,at,Object(k.a)({},"".concat(rt,"-disabled"),ke));"value"in ve&&(ve.value=ve.value||"");var Oe=Object(H.a)(Object(H.a)(Object(H.a)({},de.props.style),et),ee===K.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return R.createElement(u,{onResize:de.handleResize,disabled:!(it||Je)},R.createElement("textarea",Object(Q.a)({},ve,{className:Te,style:Oe,ref:de.saveTextArea})))},de.state={textareaStyles:{},resizeStatus:K.NONE},de}return Object(I.a)(Ce,[{key:"componentDidUpdate",value:function(de){(de.value!==this.props.value||!D()(de.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 de=this.textArea.selectionStart,$=this.textArea.selectionEnd;this.textArea.setSelectionRange(de,$)}}catch(He){}}},{key:"render",value:function(){return this.renderTextArea()}}]),Ce}(R.Component),oe=Y,le=function(Ee){Object(j.a)(Ce,Ee);var ae=Object(C.a)(Ce);function Ce(Le){var de;Object(M.a)(this,Ce),de=ae.call(this,Le),de.resizableTextArea=void 0,de.focus=function(){de.resizableTextArea.textArea.focus()},de.saveTextArea=function(He){de.resizableTextArea=He},de.handleChange=function(He){var rt=de.props.onChange;de.setValue(He.target.value,function(){de.resizableTextArea.resizeTextarea()}),rt&&rt(He)},de.handleKeyDown=function(He){var rt=de.props,it=rt.onPressEnter,Je=rt.onKeyDown;He.keyCode===13&&it&&it(He),Je&&Je(He)};var $=typeof Le.value=="undefined"||Le.value===null?Le.defaultValue:Le.value;return de.state={value:$},de}return Object(I.a)(Ce,[{key:"setValue",value:function(de,$){"value"in this.props||this.setState({value:de},$)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return R.createElement(oe,Object(Q.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(de){return"value"in de?{value:de.value}:null}}]),Ce}(R.Component),Se=ie.default=le},ZJlW:function(Be,ie,N){Be.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(Be,ie,N){"use strict";N.d(ie,"a",function(){return W});var Q=N("k1fw"),M=N("oBTY"),I=N("miYZ"),j=N("tsqr"),C=N("rAM+"),R=N("tJVT"),H=N("PpiC"),k=N("q1tI"),e=N.n(k),O=N("bdgK"),y=N("9og8"),p=N("WmNS"),c=N.n(p),a={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"]},r={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"]},s={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","friend","gcnew","generic","goto","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:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(`
|
|
`)},{label:"if",content:["if () {"," $0","}"].join(`
|
|
`)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $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 <cstdio>",content:["#include <cstdio>"].join(`
|
|
`)},{label:"include <cstring>",content:["#include <cstring>"].join(`
|
|
`)},{label:"include <sstream>",content:["#include <sstream>"].join(`
|
|
`)},{label:"include <fstream>",content:["#include <fstream>"].join(`
|
|
`)},{label:"include <map>",content:["#include <map>"].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(`
|
|
`)}]},i=N("5VLF"),n=N.n(i),t={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"]}},b=function(K,Y){return Y.map(function(oe){return{label:oe,kind:K.languages.CompletionItemKind.Keyword,insertText:oe}})},g=function(K){return Object.keys(t.tables).map(function(Y){return{label:Y,kind:K.languages.CompletionItemKind.Variable,insertText:Y}})},m=function(K,Y){var oe=t.tables[K];return oe?oe.map(function(le){return{label:le,kind:Y.languages.CompletionItemKind.Field,insertText:le}}):[]};function x(D,K,Y,oe,le){var Se=K.getWordUntilPosition(Y),Ee={startLineNumber:Y.lineNumber,endLineNumber:Y.lineNumber,startColumn:Se.startColumn,endColumn:Se.endColumn},ae=oe.map(function(Ce){return{label:Ce,kind:D.languages.CompletionItemKind.Keyword,insertText:Ce,insertTextRules:D.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ee}});return le.map(function(Ce){ae.push(Object(Q.a)(Object(Q.a)({},Ce),{},{range:Ee}))}),ae}var _=function(D){t.languages.map(function(le){return D.languages.registerDocumentFormattingEditProvider(le,{provideDocumentFormattingEdits:function(Ee,ae,Ce){return Object(y.a)(c.a.mark(function Le(){var de;return c.a.wrap(function(He){for(;;)switch(He.prev=He.next){case 0:return de=n()(Ee.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}),He.abrupt("return",[{range:Ee.getFullModelRange(),text:de}]);case 2:case"end":return He.stop()}},Le)}))()}}),le});var K=s.quickKey.map(function(le){return{label:le.label,kind:D.languages.CompletionItemKind.Method,insertText:le.content,insertTextRules:D.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),Y=o.quickKey.map(function(le){return{label:le.label,kind:D.languages.CompletionItemKind.Method,insertText:le.content,insertTextRules:D.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),oe=r.quickKey.map(function(le){return{label:le.label,kind:D.languages.CompletionItemKind.Method,insertText:le.content,insertTextRules:D.languages.CompletionItemInsertTextRule.InsertAsSnippet}});D.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Se,Ee){var ae=Se.getWordUntilPosition(Ee),Ce={startLineNumber:Ee.lineNumber,endLineNumber:Ee.lineNumber,startColumn:ae.startColumn,endColumn:ae.endColumn},Le=Se.getLineContent(Ee.lineNumber).substring(ae.startColumn-2,ae.endColumn);return{suggestions:[].concat(Object(M.a)(s.keywords.map(function(de){return{label:de,kind:D.languages.CompletionItemKind.Function,documentation:de,insertText:de,insertTextRules:D.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ce}})),Object(M.a)(s.quickKey.map(function(de){return{label:de.label,kind:D.languages.CompletionItemKind.Function,documentation:de.content,insertText:Le.startsWith("#")?de.content.replace(/#/,""):de.content,insertTextRules:D.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ce}})))}}}),D.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Se,Ee){var ae=Se.getWordUntilPosition(Ee),Ce={startLineNumber:Ee.lineNumber,endLineNumber:Ee.lineNumber,startColumn:ae.startColumn,endColumn:ae.endColumn};return{suggestions:Object(M.a)(a.keywords.map(function(Le){return{label:Le,kind:D.languages.CompletionItemKind.Function,documentation:Le,insertText:Le,insertTextRules:D.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ce}}))}}}),D.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Se,Ee){var ae=Se.getWordUntilPosition(Ee),Ce={startLineNumber:Ee.lineNumber,endLineNumber:Ee.lineNumber,startColumn:ae.startColumn,endColumn:ae.endColumn},Le=Se.getLineContent(Ee.lineNumber).substring(ae.startColumn-2,ae.endColumn);return{suggestions:[].concat(Object(M.a)(r.keywords.map(function(de){return{label:de,kind:D.languages.CompletionItemKind.Function,documentation:de,insertText:de,insertTextRules:D.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ce}})),Object(M.a)(r.quickKey.map(function(de){return{label:de.label,kind:D.languages.CompletionItemKind.Function,documentation:de.content,insertText:Le.startsWith("#")?de.content.replace(/#/,""):de.content,insertTextRules:D.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ce}})))}}}),D.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Se,Ee){var ae=Se.getWordUntilPosition(Ee),Ce={startLineNumber:Ee.lineNumber,endLineNumber:Ee.lineNumber,startColumn:ae.startColumn,endColumn:ae.endColumn},Le=Se.getLineContent(Ee.lineNumber).substring(ae.startColumn-2,ae.endColumn);return{suggestions:[].concat(Object(M.a)(o.keywords.map(function(de){return{label:de,kind:D.languages.CompletionItemKind.Function,documentation:de,insertText:de,insertTextRules:D.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ce}})),Object(M.a)(o.quickKey.map(function(de){return{label:de.label,kind:D.languages.CompletionItemKind.Function,documentation:de.content,insertText:Le.startsWith("#")?de.content.replace(/#/,""):de.content,insertTextRules:D.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ce}})))}}})},d="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002",u=N("fjLI"),l=N("LvDl"),h=N("+ua5");function v(D){return/^\d+$/.test(D)?"".concat(D,"px"):D}function f(){}var T=!1,P={"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 L(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],K=D;if(Array.isArray(D)){for(var Y=0;Y<D.length;Y++){var oe=P[D[Y]];if(oe)return oe}return K[0]}return P[K]||K}var S=null,A=ie.b=function(D){var K=D.width,Y=K===void 0?"100%":K,oe=D.height,le=oe===void 0?"100%":oe,Se=D.value,Ee=D.language,ae=Ee===void 0?"javascript":Ee,Ce=D.style,Le=Ce===void 0?{}:Ce,de=D.options,$=de===void 0?{}:de,He=D.overrideServices,rt=He===void 0?{}:He,it=D.theme,Je=it===void 0?"vs-dark":it,at=D.onEditBlur,ke=D.onSave,Ge=D.autoHeight,et=Ge===void 0?!1:Ge,ee=D.forbidCopy,ve=ee===void 0?!1:ee,Te=D.onChange,Oe=Te===void 0?f:Te,Qe=D.editorDidMount,tt=Qe===void 0?f:Qe,st=D.onFocus,nt=st===void 0?f:st,dt=D.filename,mt=dt===void 0?"educoder.txt":dt,ye=D.errorLine,Ae=D.errorContent,Ne=Ae===void 0?"":Ae,Fe=Object(H.a)(D,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","filename","errorLine","errorContent"]),Re=Object(k.useRef)(),De=Object(k.useRef)({}),he=Object(k.useRef)(),se=Object(k.useRef)(),re=Object(k.useRef)(!1),G=Object(k.useRef)(),X=Object(k.useState)(!1),Z=Object(R.a)(X,2),te=Z[0],ge=Z[1];function we(){var ut;return Re.current&&(ut=new O.default(function(pt){var wt=Object(C.a)(pt),rn;try{for(wt.s();!(rn=wt.n()).done;){var vn=rn.value;(vn.target.offsetHeight>0||vn.target.offsetWidth>0)&&De.current.instance.layout()}}catch(yn){wt.e(yn)}finally{wt.f()}}),ut.observe(Re.current)),ut}function Me(){j.b.warn(decodeURIComponent(d))}var Ze=function(){var pt=De.current.instance;if(Se!=null&&pt&&te){var wt=pt.getModel();wt&&Se!==wt.getValue()&&(T=!0,wt.setValue(Se),pt.layout(),T=!1)}};Object(k.useEffect)(function(){se.current&&clearTimeout(se.current),se.current=setTimeout(function(){Ze()},500)},[Se,te,De.current]),Object(k.useEffect)(function(){if(ye&&De.current&&De.current.instance){var ut=De.current.instance;ut.changeViewZones(function(wt){var rn=document.createElement("div");rn.style.padding="10px 20px",rn.style.width="calc(100% - 20px)",rn.className="my-error-line-wrp",rn.innerHTML=Ne,wt.addZone({afterLineNumber:ye||11,heightInLines:3,domNode:rn})});var pt={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}};ut.addOverlayWidget(pt),ut.revealPositionInCenter({lineNumber:20,column:1})}},[ye,De.current,te]);function ot(){var ut=De.current.instance;if(ut){var pt=ut.getSelection(),wt=De.current.pastePos||{},rn=new S.Range(wt.startLineNumber||pt.endLineNumber,wt.startColumn||pt.endColumn,wt.endLineNumber||pt.endLineNumber,wt.endColumn||pt.endColumn);setTimeout(function(){ut.executeEdits("",[{range:rn,text:""}])},300)}}function ze(ut){(window.navigator.platform.match("Mac")?ut.metaKey:ut.ctrlKey)&&ut.keyCode==83&&(ut.preventDefault(),ke())}var vt=function(){if(et&&De.current.instance){var pt=De.current.instance.getContentHeight();Xe(pt<le?le:pt)}else Xe(le)};function bt(ut){var pt=document.createEvent("MouseEvents");pt.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),ut.dispatchEvent(pt)}function lt(ut,pt){var wt=window.URL||window.webkitURL||window,rn=new Blob([pt]),vn=document.createElementNS("http://www.w3.org/1999/xhtml","a");vn.href=wt.createObjectURL(rn),vn.download=ut,bt(vn)}Object(k.useEffect)(function(){vt()},[vt]),Object(k.useEffect)(function(){Re.current&&!te&&Promise.all([N.e(15),N.e(27)]).then(N.t.bind(null,"M/lh",7)).then(function(ut){try{S=ut,De.current.instance=S.editor.create(Re.current,{value:Se,language:L(ae),theme:Je,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},rt);var pt=De.current.instance,wt=u.d._menuItems,rn=Object(M.a)(wt).find(function(Yt){return Yt[0]._debugName=="EditorContext"}),vn=rn[1],yn=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Dn=function(Tn,Mn){var dn=Tn._first;do{var An,Nn,Vn=Mn.includes((An=dn.element)===null||An===void 0||((Nn=An.command)===null||Nn===void 0)?void 0:Nn.id);Vn&&Tn._remove(dn)}while(dn=dn.next)};if(tt(pt,S),setTimeout(function(){vt(),De.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:function(){lt(mt||"educoder.txt",pt.getValue())}}),pt.getDomNode().addEventListener("input",function(){he.current.autoFormat&&pt.getAction("editor.action.formatDocument").run()})},500),De.current.subscription=pt.onDidChangeModelContent(function(Yt){re.current?clearTimeout(G.current):(vt(),Oe(pt.getValue(),Yt)),G.current=setTimeout(function(){re.current=!1},500)}),window.Monaco||_(S,L(ae)),ve&&(Dn(vn,yn),Re.current.classList.add("noCopyPaste"),pt.onKeyDown(function(Yt){var Tn=Yt.keyCode,Mn=Yt.ctrlKey,dn=Yt.metaKey;(Tn===33||Tn===52)&&(dn||Mn)&&(Me(),Yt.preventDefault())})),window.Monaco=S,at&&pt.onDidBlurEditorWidget(function(){at(pt.getValue())}),nt&&pt.onDidFocusEditorText(function(){nt(pt.getValue())}),ve){pt.addCommand(S.KeyMod.CtrlCmd|S.KeyCode.KEY_V,function(){return Me(),null}),pt.onDidPaste(function(Yt){De.current.pastePos=Yt});try{window.addEventListener("paste",ot)}catch(Yt){}}var Pn=we();return ge(!0),function(){var Yt=De.current.instance;Yt.dispose();var Tn=Yt.getModel();Tn&&Tn.dispose(),De.current.subscription&&De.current.subscription.dispose(),ve&&window.removeEventListener("paste",ot),Pn.unobserve(Re.current)}}catch(Yt){}})},[]),Object(k.useEffect)(function(){var ut=De.current.instance;if(ut&&te)return document.addEventListener("keydown",ze,!1),function(){document.removeEventListener("keydown",ze)}},[ke,te]),Object(k.useEffect)(function(){var ut=De.current.instance;if(ut&&te){var pt=L(ae);S.editor.setModelLanguage(ut.getModel(),pt),console.log("language:",ae,ut.getModel(),pt)}},[ae,te]),Object(k.useEffect)(function(){var ut=De.current.instance;ut&&te&&S.editor.setTheme(Je)},[Je,te]),Object(k.useEffect)(function(){var ut=De.current.instance;he.current=$,ut&&te&&(ut.updateOptions(Object(Q.a)({},$)),setTimeout(function(){ut.getModel().updateOptions(Object(Q.a)({},$))},200))},[JSON.stringify($),te]),Object(k.useEffect)(function(){var ut=De.current.instance;ut&&te&&ut.layout()},[Y,le,te]);var Ot=Object(k.useState)(v(Y)),Rt=Object(R.a)(Ot,2),xt=Rt[0],gt=Rt[1],_t=Object(k.useState)(v(le)),St=Object(R.a)(_t,2),Nt=St[0],Xe=St[1],Lt=Object(Q.a)(Object(Q.a)({},Le),{},{width:xt,height:Nt});return e.a.createElement("div",{className:"my-monaco-editor",ref:Re,style:Lt})};function W(D){var K=D.width,Y=K===void 0?"100%":K,oe=D.height,le=oe===void 0?"100%":oe,Se=D.original,Ee=D.modified,ae=D.language,Ce=D.options,Le=Ce===void 0?{}:Ce,de=Object(k.useRef)(),$=Object(k.useState)(null),He=Object(R.a)($,2),rt=He[0],it=He[1];function Je(et){var ee;return de.current&&(ee=new O.default(function(ve){var Te=Object(C.a)(ve),Oe;try{for(Te.s();!(Oe=Te.n()).done;){var Qe=Oe.value;(Qe.target.offsetHeight>0||Qe.target.offsetWidth>0)&&et.layout()}}catch(tt){Te.e(tt)}finally{Te.f()}}),ee.observe(de.current)),ee}Object(k.useEffect)(function(){de.current&&Promise.all([N.e(15),N.e(27)]).then(N.t.bind(null,"M/lh",7)).then(function(et){S=et;var ee=S.editor.createDiffEditor(de.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}));it(ee);var ve=Je(ee);return function(){ee.dispose();var Te=ee.getModel();Te&&Te.dispose(),ve.unobserve(de.current)}})},[]),Object(k.useEffect)(function(){rt&&rt.setModel({original:S.editor.createModel(Se,ae),modified:S.editor.createModel(Ee,ae)})},[Se,Ee,ae,rt]);var at=v(Y),ke=v(le),Ge={width:at,height:ke};return e.a.createElement("div",{className:"my-diff-editor",ref:de,style:Ge})}},a2OE:function(Be,ie){Be.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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2nfzi6OClgqTKDebj5MEUARhRPjeIgZiYBPGQULZ3Hz1OPNYBKfOTgjAAu8HalAkloNR5s2vGnkXUh2e8+fhP+FU7MenYJxdoNboem2iZFbP9vacHSzl9yNtEmDVzvU0KtvuIKJ44skI3qs3VAL9HTYZ7uynBfClUS0qmR15+fOkABxk4sCYeodKZtdl83qh3IwSZLWaKk/s+CIdXD+IC/EHmogTevOzmDiQm1ADxirtPKVwCBL1tASJ6+VGPAHGHQllLpX9uT/pNTenRLh77r9Bigkg+QkE7wFjJ1Lpl6niuU8KSSRvuu4SSPmzyDsSyrssPe23NH7zIX5xpCrbjNK/6zKg6lERXTR1d2Oxkq4FZfVZ0yHFJCM1wfsYSlSJHqOFvQU7tLkRvwG0c3IYhC/A+FyFDEhjKyTeojokvtY20Pq4EYvBWOpCa/vyZhr30kLssOO5GTdB4AGU4TZagN357suNqAJ0nfIgGAdB2AuJXUhjZ741/h9lg+MKrzmoaAAAAABJRU5ErkJggg=="},bT9E:function(Be,ie,N){"use strict";N.d(ie,"a",function(){return M});var Q=N("VTBJ");function M(I,j){var C=Object(Q.a)({},I);return Array.isArray(j)&&j.forEach(function(R){delete C[R]}),C}},biw7:function(Be,ie,N){"use strict";var Q=N("q1tI"),M=N.n(Q),I=Q.createContext(null);ie.a=I},cFMs:function(Be,ie){Be.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJgAAAA4CAYAAAAB3jHPAAAAAXNSR0IArs4c6QAAIABJREFUeF61XQl4VdW1/m9GIAlhDGEIBATB2aetvCfYwYoDqKioVZGi4vxq9VlHVNSqtCA+obaKoBat4gRiHVBQBH2aiG3VKgIhYQhhyEQIhAwkuee8b49n7X32ubkRe7+PL3c4e5999vr3v/619jqHGH7gl+/7qdhSdAI8nAJgFHx/FHwUwPdyAOQAfgZ8X55V/mWf2b8YxF/+Ir/xj+R7/V4ed6jt2blUn3ocpG91fjU+dQwdl++RmWT9qWug79Wl0WPJ5fL+AcTYG/aKyXlhf8VH4zt1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0hTUNRtgs1kvEZNEASOqTYRbDJFYcu0PCWAaaKye7Nva8fDbpsCPnQYkU36trEMBScEToZlCbs/qx45mXdEnZTI7TWCwkmubJoFeoqykJ0ftCthTbTGarc94e/sY9V0y7i8Zt/Z9+ukck/0gAKPD5Bvm371zItoxFr5/BGIeq20ugOfnIIYcePIxBQYz2WCKqG4Q/lmczsVsdjRKE7b204I0Li02sMtsFIsYwYC6ZY3sZ9Jcmcr869k168GE35A/0tOHGCsBKP8NEV+n3GGS5/9/aODhUXT7opcAAAAASUVORK5CYII="},cz0n:function(Be,ie,N){Be.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(Be,ie,N){Be.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(Be,ie,N){Be.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"}},fjLI:function(Be,ie,N){"use strict";N.d(ie,"f",function(){return c}),N.d(ie,"b",function(){return a}),N.d(ie,"a",function(){return r}),N.d(ie,"d",function(){return s}),N.d(ie,"e",function(){return o}),N.d(ie,"c",function(){return i});var Q=N("8HAY"),M=N("Vhoy"),I=N("MI8n"),j=N("JYp7"),C=N("pmY6"),R=N("24hK"),H=N("nnTU"),k=N("T8No"),e=N("Cg/j"),O=N("t9D7"),y=function(n,t,b,g){var m=arguments.length,x=m<3?t:g===null?g=Object.getOwnPropertyDescriptor(t,b):g,_;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(n,t,b,g);else for(var d=n.length-1;d>=0;d--)(_=n[d])&&(x=(m<3?_(x):m>3?_(t,b,x):_(t,b))||x);return m>3&&x&&Object.defineProperty(t,b,x),x},p=function(n,t){return function(b,g){t(b,g,n)}};function c(n){return n.command!==void 0}class a{constructor(n){this.id=a._idPool++,this._debugName=n}}a._idPool=0,a.CommandPalette=new a("CommandPalette"),a.EditorContext=new a("EditorContext"),a.SimpleEditorContext=new a("SimpleEditorContext"),a.EditorContextCopy=new a("EditorContextCopy"),a.EditorContextPeek=new a("EditorContextPeek"),a.MenubarEditMenu=new a("MenubarEditMenu"),a.MenubarCopy=new a("MenubarCopy"),a.MenubarGoMenu=new a("MenubarGoMenu"),a.MenubarSelectionMenu=new a("MenubarSelectionMenu"),a.InlineCompletionsActions=new a("InlineCompletionsActions");const r=Object(e.c)("menuService"),s=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new I.b,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:n=>n===a.CommandPalette}}addCommand(n){return this.addCommands(j.a.single(n))}addCommands(n){for(const t of n)this._commands.set(t.id,t);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),Object(C.i)(()=>{let t=!1;for(const b of n)t=this._commands.delete(b.id)||t;t&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(n){return this._commands.get(n)}getCommands(){const n=new Map;return this._commands.forEach((t,b)=>n.set(b,t)),n}appendMenuItem(n,t){return this.appendMenuItems(j.a.single({id:n,item:t}))}appendMenuItems(n){const t=new Set,b=new R.a;for(const{id:g,item:m}of n){let x=this._menuItems.get(g);x||(x=new R.a,this._menuItems.set(g,x)),b.push(x.push(m)),t.add(g)}return this._onDidChangeMenu.fire(t),Object(C.i)(()=>{if(b.size>0){for(let g of b)g();this._onDidChangeMenu.fire(t),b.clear()}})}getMenuItems(n){let t;return this._menuItems.has(n)?t=[...this._menuItems.get(n)]:t=[],n===a.CommandPalette&&this._appendImplicitItems(t),t}_appendImplicitItems(n){const t=new Set;for(const b of n)c(b)&&(t.add(b.command.id),b.alt&&t.add(b.alt.id));this._commands.forEach((b,g)=>{t.has(g)||n.push({command:b})})}};class o extends Q.e{constructor(n,t,b,g){super(`submenuitem.${n.submenu.id}`,typeof n.title=="string"?n.title:n.title.value,[],"submenu");this.item=n,this._menuService=t,this._contextKeyService=b,this._options=g}get actions(){const n=[],t=this._menuService.createMenu(this.item.submenu,this._contextKeyService),b=t.getActions(this._options);t.dispose();for(const[,g]of b)g.length>0&&(n.push(...g),n.push(new Q.d));return n.length&&n.pop(),n}}let i=class n{constructor(t,b,g,m,x){var _,d;if(this._commandService=x,this.id=t.id,this.label=(g==null?void 0:g.renderShortTitle)&&t.shortTitle?typeof t.shortTitle=="string"?t.shortTitle:t.shortTitle.value:typeof t.title=="string"?t.title:t.title.value,this.tooltip=(d=typeof t.tooltip=="string"?t.tooltip:(_=t.tooltip)===null||_===void 0?void 0:_.value)!==null&&d!==void 0?d:"",this.enabled=!t.precondition||m.contextMatchesRules(t.precondition),this.checked=void 0,t.toggled){const u=t.toggled.condition?t.toggled:{condition:t.toggled};this.checked=m.contextMatchesRules(u.condition),this.checked&&u.tooltip&&(this.tooltip=typeof u.tooltip=="string"?u.tooltip:u.tooltip.value),u.title&&(this.label=typeof u.title=="string"?u.title:u.title.value)}this.item=t,this.alt=b?new n(b,void 0,g,m,x):void 0,this._options=g,O.d.isThemeIcon(t.icon)&&(this.class=M.a.asClassName(t.icon))}dispose(){}run(...t){var b,g;let m=[];return((b=this._options)===null||b===void 0?void 0:b.arg)&&(m=[...m,this._options.arg]),((g=this._options)===null||g===void 0?void 0:g.shouldForwardArgs)&&(m=[...m,...t]),this._commandService.executeCommand(this.id,...m)}};i=y([p(3,k.b),p(4,H.b)],i)},fyJ8:function(Be,ie,N){"use strict";var Q=N("rePB"),M=N("VTBJ"),I=N("Ff2n"),j=N("U8pU"),C=N("q1tI"),R=N.n(C),H=N("TSYQ"),k=N.n(H),e=N("c+Xe"),O=N("sR1s");function y(s){return s&&Object(j.a)(s)==="object"&&!Array.isArray(s)&&!C.isValidElement(s)}function p(s){return typeof s=="string"?!0:Object(e.c)(s)}function c(s,o){var i,n=s.prefixCls,t=s.className,b=s.record,g=s.index,m=s.dataIndex,x=s.render,_=s.children,d=s.component,u=d===void 0?"td":d,l=s.colSpan,h=s.rowSpan,v=s.fixLeft,f=s.fixRight,T=s.firstFixLeft,P=s.lastFixLeft,L=s.firstFixRight,S=s.lastFixRight,A=s.appendNode,W=s.additionalProps,D=W===void 0?{}:W,K=s.ellipsis,Y=s.align,oe=s.rowType,le=s.isSticky,Se="".concat(n,"-cell"),Ee,ae;if(_)ae=_;else{var Ce=Object(O.b)(b,m);if(ae=Ce,x){var Le=x(Ce,b,g);y(Le)?(ae=Le.children,Ee=Le.props):ae=Le}}Object(j.a)(ae)==="object"&&!Array.isArray(ae)&&!C.isValidElement(ae)&&(ae=null),K&&(P||L)&&(ae=C.createElement("span",{className:"".concat(Se,"-content")},ae));var de=Ee||{},$=de.colSpan,He=de.rowSpan,rt=de.style,it=de.className,Je=Object(I.a)(de,["colSpan","rowSpan","style","className"]),at=$!==void 0?$:l,ke=He!==void 0?He:h;if(at===0||ke===0)return null;var Ge={},et=typeof v=="number",ee=typeof f=="number";et&&(Ge.position="sticky",Ge.left=v),ee&&(Ge.position="sticky",Ge.right=f);var ve={};Y&&(ve.textAlign=Y);var Te,Oe=K===!0?{showTitle:!0}:K;Oe&&(Oe.showTitle||oe==="header")&&(typeof ae=="string"||typeof ae=="number"?Te=ae.toString():C.isValidElement(ae)&&typeof ae.props.children=="string"&&(Te=ae.props.children));var Qe=Object(M.a)(Object(M.a)(Object(M.a)({title:Te},Je),D),{},{colSpan:at&&at!==1?at:null,rowSpan:ke&&ke!==1?ke:null,className:k()(Se,t,(i={},Object(Q.a)(i,"".concat(Se,"-fix-left"),et),Object(Q.a)(i,"".concat(Se,"-fix-left-first"),T),Object(Q.a)(i,"".concat(Se,"-fix-left-last"),P),Object(Q.a)(i,"".concat(Se,"-fix-right"),ee),Object(Q.a)(i,"".concat(Se,"-fix-right-first"),L),Object(Q.a)(i,"".concat(Se,"-fix-right-last"),S),Object(Q.a)(i,"".concat(Se,"-ellipsis"),K),Object(Q.a)(i,"".concat(Se,"-with-append"),A),Object(Q.a)(i,"".concat(Se,"-fix-sticky"),(et||ee)&&le),i),D.className,it),style:Object(M.a)(Object(M.a)(Object(M.a)(Object(M.a)({},D.style),ve),Ge),rt),ref:p(u)?o:null});return C.createElement(u,Object.assign({},Qe),A,ae)}var a=C.forwardRef(c);a.displayName="Cell";var r=C.memo(a,function(s,o){return o.shouldCellUpdate?!o.shouldCellUpdate(o.record,s.record):!1});ie.a=r},hW8S:function(Be,ie,N){"use strict";N.d(ie,"a",function(){return j}),N.d(ie,"c",function(){return C}),N.d(ie,"b",function(){return R});var Q=N("VTBJ"),M=N("Ff2n"),I=N("Kwbf"),j="RC_TABLE_INTERNAL_COL_DEFINE";function C(H){var k=H.expandable,e=Object(M.a)(H,["expandable"]);return"expandable"in H?Object(Q.a)(Object(Q.a)({},e),k):e}function R(H){return Object.keys(H).reduce(function(k,e){return(e.substr(0,5)==="data-"||e.substr(0,5)==="aria-")&&(k[e]=H[e]),k},{})}},"iL++":function(Be,ie,N){Be.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"}},ic2d:function(Be,ie,N){"use strict";N.d(ie,"a",function(){return j});var Q=N("FWmy"),M=N("746U");class I{constructor(){this.data=new Map}add(C,R){Q.a(M.l(C)),Q.a(M.k(R)),Q.a(!this.data.has(C),"There is already an extension with this id"),this.data.set(C,R)}as(C){return this.data.get(C)||null}}const j=new I},k3GJ:function(Be,ie,N){"use strict";N.d(ie,"a",function(){return We});var Q=N("rePB"),M=N("ODXe"),I=N("Ff2n"),j=N("VTBJ"),C=N("q1tI"),R=N("TSYQ"),H=N.n(R),k=N("Zm9Q"),e=N("6cGi"),O=N("KQm4"),y=N("xEkU"),p=N.n(y),c=N("t23M");function a(ne){var pe=Object(C.useRef)(),_e=Object(C.useRef)(!1);function ue(){for(var V=arguments.length,q=new Array(V),J=0;J<V;J++)q[J]=arguments[J];_e.current||(p.a.cancel(pe.current),pe.current=p()(function(){ne.apply(void 0,q)}))}return Object(C.useEffect)(function(){return function(){_e.current=!0,p.a.cancel(pe.current)}},[]),ue}function r(ne){var pe=Object(C.useRef)([]),_e=Object(C.useState)({}),ue=Object(M.a)(_e,2),V=ue[1],q=Object(C.useRef)(typeof ne=="function"?ne():ne),J=a(function(){var fe=q.current;pe.current.forEach(function(xe){fe=xe(fe)}),pe.current=[],q.current=fe,V({})});function ce(fe){pe.current.push(fe),J()}return[q.current,ce]}var s=N("4IlW");function o(ne,pe){var _e,ue=ne.prefixCls,V=ne.id,q=ne.active,J=ne.rtl,ce=ne.tab,fe=ce.key,xe=ce.tab,be=ce.disabled,Ie=ce.closeIcon,Ue=ne.tabBarGutter,$e=ne.tabPosition,qe=ne.closable,ht=ne.renderWrapper,Mt=ne.removeAriaLabel,Wt=ne.editable,Ut=ne.onClick,Gt=ne.onRemove,Ht=ne.onFocus,jt="".concat(ue,"-tab");C.useEffect(function(){return Gt},[]);var Ft={};$e==="top"||$e==="bottom"?Ft[J?"marginLeft":"marginRight"]=Ue:Ft.marginBottom=Ue;var qt=Wt&&qe!==!1&&!be;function zt(Dt){if(be)return;Ut(Dt)}function xn(Dt){Dt.preventDefault(),Dt.stopPropagation(),Wt.onEdit("remove",{key:fe,event:Dt})}var on=C.createElement("div",{key:fe,ref:pe,className:H()(jt,(_e={},Object(Q.a)(_e,"".concat(jt,"-with-remove"),qt),Object(Q.a)(_e,"".concat(jt,"-active"),q),Object(Q.a)(_e,"".concat(jt,"-disabled"),be),_e)),style:Ft,onClick:zt},C.createElement("div",{role:"tab","aria-selected":q,id:V&&"".concat(V,"-tab-").concat(fe),className:"".concat(jt,"-btn"),"aria-controls":V&&"".concat(V,"-panel-").concat(fe),"aria-disabled":be,tabIndex:be?null:0,onClick:function(At){At.stopPropagation(),zt(At)},onKeyDown:function(At){[s.a.SPACE,s.a.ENTER].includes(At.which)&&(At.preventDefault(),zt(At))},onFocus:Ht},xe),qt&&C.createElement("button",{type:"button","aria-label":Mt||"remove",tabIndex:0,className:"".concat(jt,"-remove"),onClick:function(At){At.stopPropagation(),xn(At)}},Ie||Wt.removeIcon||"\xD7"));return ht&&(on=ht(on)),on}var i=C.forwardRef(o),n={width:0,height:0,left:0,top:0};function t(ne,pe,_e){return Object(C.useMemo)(function(){for(var ue,V=new Map,q=pe.get((ue=ne[0])===null||ue===void 0?void 0:ue.key)||n,J=q.left+q.width,ce=0;ce<ne.length;ce+=1){var fe=ne[ce].key,xe=pe.get(fe);if(!xe){var be;xe=pe.get((be=ne[ce-1])===null||be===void 0?void 0:be.key)||n}var Ie=V.get(fe)||Object(j.a)({},xe);Ie.right=J-Ie.left-Ie.width,V.set(fe,Ie)}return V},[ne.map(function(ue){return ue.key}).join("_"),pe,_e])}var b={width:0,height:0,left:0,top:0,right:0};function g(ne,pe,_e,ue,V){var q=V.tabs,J=V.tabPosition,ce=V.rtl,fe,xe,be;["top","bottom"].includes(J)?(fe="width",xe=ce?"right":"left",be=Math.abs(pe.left)):(fe="height",xe="top",be=-pe.top);var Ie=pe[fe],Ue=_e[fe],$e=ue[fe],qe=Ie;return Ue+$e>Ie&&(qe=Ie-$e),Object(C.useMemo)(function(){if(!q.length)return[0,0];for(var ht=q.length,Mt=ht,Wt=0;Wt<ht;Wt+=1){var Ut=ne.get(q[Wt].key)||b;if(Ut[xe]+Ut[fe]>be+qe){Mt=Wt-1;break}}for(var Gt=0,Ht=ht-1;Ht>=0;Ht-=1){var jt=ne.get(q[Ht].key)||b;if(jt[xe]<be){Gt=Ht+1;break}}return[Gt,Mt]},[ne,be,qe,J,q.map(function(ht){return ht.key}).join("_"),ce])}var m=N("wx14"),x=N("1OyB"),_=N("vuIU"),d=N("JX7q"),u=N("Ji7U"),l=N("LK+K"),h=N("I8Z2"),v=N("bT9E"),f=N("2GS6"),T=N("Gytx"),P=N.n(T),L=N("U8pU"),S=/iPhone/i,A=/iPod/i,W=/iPad/i,D=/\bAndroid(?:.+)Mobile\b/i,K=/Android/i,Y=/\bAndroid(?:.+)SD4930UR\b/i,oe=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,le=/Windows Phone/i,Se=/\bWindows(?:.+)ARM\b/i,Ee=/BlackBerry/i,ae=/BB10/i,Ce=/Opera Mini/i,Le=/\b(CriOS|Chrome)(?:.+)Mobile/i,de=/Mobile(?:.+)Firefox\b/i;function $(ne,pe){return ne.test(pe)}function He(ne){var pe=ne||(typeof navigator!="undefined"?navigator.userAgent:""),_e=(pe||"").split("[FBAN");if(typeof _e[1]!="undefined"){var ue=_e,V=Object(M.a)(ue,1);pe=V[0]}if(_e=pe.split("Twitter"),typeof _e[1]!="undefined"){var q=_e,J=Object(M.a)(q,1);pe=J[0]}var ce={apple:{phone:$(S,pe)&&!$(le,pe),ipod:$(A,pe),tablet:!$(S,pe)&&$(W,pe)&&!$(le,pe),device:($(S,pe)||$(A,pe)||$(W,pe))&&!$(le,pe)},amazon:{phone:$(Y,pe),tablet:!$(Y,pe)&&$(oe,pe),device:$(Y,pe)||$(oe,pe)},android:{phone:!$(le,pe)&&$(Y,pe)||!$(le,pe)&&$(D,pe),tablet:!$(le,pe)&&!$(Y,pe)&&!$(D,pe)&&($(oe,pe)||$(K,pe)),device:!$(le,pe)&&($(Y,pe)||$(oe,pe)||$(D,pe)||$(K,pe))||$(/\bokhttp\b/i,pe)},windows:{phone:$(le,pe),tablet:$(Se,pe),device:$(le,pe)||$(Se,pe)},other:{blackberry:$(Ee,pe),blackberry10:$(ae,pe),opera:$(Ce,pe),firefox:$(de,pe),chrome:$(Le,pe),device:$(Ee,pe)||$(ae,pe)||$(Ce,pe)||$(de,pe)||$(Le,pe)},any:null,phone:null,tablet:null};return ce.any=ce.apple.device||ce.android.device||ce.windows.device||ce.other.device,ce.phone=ce.apple.phone||ce.android.phone||ce.windows.phone,ce.tablet=ce.apple.tablet||ce.android.tablet||ce.windows.tablet,ce}var rt=Object(j.a)(Object(j.a)({},He()),{},{isMobile:He}),it=rt;function Je(){}function at(ne,pe,_e){var ue=pe||"";return ne.key||"".concat(ue,"item_").concat(_e)}function ke(ne){return"".concat(ne,"-menu-")}function Ge(ne,pe){var _e=-1;C.Children.forEach(ne,function(ue){_e+=1,ue&&ue.type&&ue.type.isMenuItemGroup?C.Children.forEach(ue.props.children,function(V){_e+=1,pe(V,_e)}):pe(ue,_e)})}function et(ne,pe,_e){if(!ne||_e.find)return;C.Children.forEach(ne,function(ue){if(ue){var V=ue.type;if(!V||!(V.isSubMenu||V.isMenuItem||V.isMenuItemGroup))return;pe.indexOf(ue.key)!==-1?_e.find=!0:ue.props.children&&et(ue.props.children,pe,_e)}})}var ee=["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"],ve=function(pe){var _e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ue=pe&&typeof pe.getBoundingClientRect=="function"&&pe.getBoundingClientRect().width;if(ue){if(_e){var V=getComputedStyle(pe),q=V.marginLeft,J=V.marginRight;ue+=+q.replace("px","")+ +J.replace("px","")}ue=+ue.toFixed(6)}return ue||0},Te=function(pe,_e,ue){pe&&Object(L.a)(pe.style)==="object"&&(pe.style[_e]=ue)},Oe=function(){return it.any},Qe=N("bdgK"),tt=N("i8i4"),st=N.n(tt),nt=N("wgJM"),dt=N("l4aY"),mt=N("m+aA"),ye=N("c+Xe"),Ae=N("zT1h"),Ne=N("QC+M");function Fe(ne,pe,_e){return _e?ne[0]===pe[0]:ne[0]===pe[0]&&ne[1]===pe[1]}function Re(ne,pe,_e){var ue=ne[pe]||{};return Object(j.a)(Object(j.a)({},ue),_e)}function De(ne,pe,_e,ue){for(var V=_e.points,q=Object.keys(ne),J=0;J<q.length;J+=1){var ce=q[J];if(Fe(ne[ce].points,V,ue))return"".concat(pe,"-placement-").concat(ce)}return""}var he=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var ne=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(ne)||/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(ne==null?void 0:ne.substr(0,4)))},se=N("MNnm");function re(ne,pe){var _e={};return _e[ne.toLowerCase()]=pe.toLowerCase(),_e["Webkit".concat(ne)]="webkit".concat(pe),_e["Moz".concat(ne)]="moz".concat(pe),_e["ms".concat(ne)]="MS".concat(pe),_e["O".concat(ne)]="o".concat(pe.toLowerCase()),_e}function G(ne,pe){var _e={animationend:re("Animation","AnimationEnd"),transitionend:re("Transition","TransitionEnd")};return ne&&("AnimationEvent"in pe||delete _e.animationend.animation,"TransitionEvent"in pe||delete _e.transitionend.transition),_e}var X=G(Object(se.a)(),typeof window!="undefined"?window:{}),Z={};if(Object(se.a)()){var te=document.createElement("div");Z=te.style}var ge={};function we(ne){if(ge[ne])return ge[ne];var pe=X[ne];if(pe)for(var _e=Object.keys(pe),ue=_e.length,V=0;V<ue;V+=1){var q=_e[V];if(Object.prototype.hasOwnProperty.call(pe,q)&&q in Z)return ge[ne]=pe[q],ge[ne]}return""}var Me=we("animationend"),Ze=we("transitionend"),ot=!!(Me&&Ze),ze=Me||"animationend",vt=Ze||"transitionend";function bt(ne,pe){if(!ne)return null;if(Object(L.a)(ne)==="object"){var _e=pe.replace(/-\w/g,function(ue){return ue[1].toUpperCase()});return ne[_e]}return"".concat(ne,"-").concat(pe)}var lt="none",Ot="appear",Rt="enter",xt="leave",gt="none",_t="prepare",St="start",Nt="active",Xe="end";function Lt(ne){var pe=Object(C.useRef)(!1),_e=Object(C.useState)(ne),ue=Object(M.a)(_e,2),V=ue[0],q=ue[1];function J(ce){pe.current||q(ce)}return Object(C.useEffect)(function(){return function(){pe.current=!0}},[]),[V,J]}var ut=Object(se.a)()?C.useLayoutEffect:C.useEffect,pt=ut,wt=function(){var ne=C.useRef(null);function pe(){nt.a.cancel(ne.current)}function _e(ue){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;pe();var q=Object(nt.a)(function(){V<=1?ue({isCanceled:function(){return q!==ne.current}}):_e(ue,V-1)});ne.current=q}return C.useEffect(function(){return function(){pe()}},[]),[_e,pe]},rn=[_t,St,Nt,Xe],vn=!1,yn=!0;function Dn(ne){return ne===Nt||ne===Xe}var Pn=function(ne,pe){var _e=C.useState(gt),ue=Object(M.a)(_e,2),V=ue[0],q=ue[1],J=wt(),ce=Object(M.a)(J,2),fe=ce[0],xe=ce[1];function be(){q(_t)}return pt(function(){if(V!==gt&&V!==Xe){var Ie=rn.indexOf(V),Ue=rn[Ie+1],$e=pe(V);$e===vn?q(Ue):fe(function(qe){function ht(){if(qe.isCanceled())return;q(Ue)}$e===!0?ht():Promise.resolve($e).then(ht)})}},[ne,V]),C.useEffect(function(){return function(){xe()}},[]),[be,V]},Yt=function(ne){var pe=Object(C.useRef)(),_e=Object(C.useRef)(ne);_e.current=ne;var ue=C.useCallback(function(J){_e.current(J)},[]);function V(J){J&&(J.removeEventListener(vt,ue),J.removeEventListener(ze,ue))}function q(J){pe.current&&pe.current!==J&&V(pe.current),J&&J!==pe.current&&(J.addEventListener(vt,ue),J.addEventListener(ze,ue),pe.current=J)}return C.useEffect(function(){return function(){V(pe.current)}},[]),[q,V]};function Tn(ne,pe,_e,ue){var V=ue.motionEnter,q=V===void 0?!0:V,J=ue.motionAppear,ce=J===void 0?!0:J,fe=ue.motionLeave,xe=fe===void 0?!0:fe,be=ue.motionDeadline,Ie=ue.motionLeaveImmediately,Ue=ue.onAppearPrepare,$e=ue.onEnterPrepare,qe=ue.onLeavePrepare,ht=ue.onAppearStart,Mt=ue.onEnterStart,Wt=ue.onLeaveStart,Ut=ue.onAppearActive,Gt=ue.onEnterActive,Ht=ue.onLeaveActive,jt=ue.onAppearEnd,Ft=ue.onEnterEnd,qt=ue.onLeaveEnd,zt=ue.onVisibleChanged,xn=Lt(),on=Object(M.a)(xn,2),Dt=on[0],At=on[1],Jt=Lt(lt),Zt=Object(M.a)(Jt,2),Et=Zt[0],$t=Zt[1],mn=Lt(null),en=Object(M.a)(mn,2),cn=en[0],bn=en[1],Fn=Object(C.useRef)(!1),Qn=Object(C.useRef)(null),Cn=Object(C.useRef)(!1),Zn=Object(C.useRef)(null);function Ei(){var gn=_e();return gn||Zn.current}var ri=Object(C.useRef)(!1);function ai(gn){var sn=Ei();if(gn&&!gn.deadline&&gn.target!==sn)return;var Hn;Et===Ot&&ri.current?Hn=jt==null?void 0:jt(sn,gn):Et===Rt&&ri.current?Hn=Ft==null?void 0:Ft(sn,gn):Et===xt&&ri.current&&(Hn=qt==null?void 0:qt(sn,gn)),Hn!==!1&&!Cn.current&&($t(lt),bn(null))}var In=Yt(ai),zn=Object(M.a)(In,1),Wn=zn[0],Un=C.useMemo(function(){var gn,sn,Hn;switch(Et){case"appear":return gn={},Object(Q.a)(gn,_t,Ue),Object(Q.a)(gn,St,ht),Object(Q.a)(gn,Nt,Ut),gn;case"enter":return sn={},Object(Q.a)(sn,_t,$e),Object(Q.a)(sn,St,Mt),Object(Q.a)(sn,Nt,Gt),sn;case"leave":return Hn={},Object(Q.a)(Hn,_t,qe),Object(Q.a)(Hn,St,Wt),Object(Q.a)(Hn,Nt,Ht),Hn;default:return{}}},[Et]),Li=Pn(Et,function(gn){if(gn===_t){var sn=Un[_t];return sn?sn(Ei()):vn}if(fn in Un){var Hn;bn(((Hn=Un[fn])===null||Hn===void 0?void 0:Hn.call(Un,Ei(),null))||null)}return fn===Nt&&(Wn(Ei()),be>0&&(clearTimeout(Qn.current),Qn.current=setTimeout(function(){ai({deadline:!0})},be))),yn}),Pi=Object(M.a)(Li,2),Wi=Pi[0],fn=Pi[1],Oi=Dn(fn);ri.current=Oi,pt(function(){At(pe);var gn=Fn.current;if(Fn.current=!0,!ne)return;var sn;!gn&&pe&&ce&&(sn=Ot),gn&&pe&&q&&(sn=Rt),(gn&&!pe&&xe||!gn&&Ie&&!pe&&xe)&&(sn=xt),sn&&($t(sn),Wi())},[pe]),Object(C.useEffect)(function(){(Et===Ot&&!ce||Et===Rt&&!q||Et===xt&&!xe)&&$t(lt)},[ce,q,xe]),Object(C.useEffect)(function(){return function(){clearTimeout(Qn.current),Cn.current=!0}},[]),Object(C.useEffect)(function(){Dt!==void 0&&Et===lt&&(zt==null||zt(Dt))},[Dt,Et]);var Hi=cn;return Un[_t]&&fn===St&&(Hi=Object(j.a)({transition:"none"},Hi)),[Et,fn,Hi,Dt!=null?Dt:pe]}var Mn=function(ne){Object(u.a)(_e,ne);var pe=Object(l.a)(_e);function _e(){return Object(x.a)(this,_e),pe.apply(this,arguments)}return Object(_.a)(_e,[{key:"render",value:function(){return this.props.children}}]),_e}(C.Component),dn=Mn;function An(ne){var pe=ne;Object(L.a)(ne)==="object"&&(pe=ne.transitionSupport);function _e(V){return!!(V.motionName&&pe)}var ue=C.forwardRef(function(V,q){var J=V.visible,ce=J===void 0?!0:J,fe=V.removeOnLeave,xe=fe===void 0?!0:fe,be=V.forceRender,Ie=V.children,Ue=V.motionName,$e=V.leavedClassName,qe=V.eventProps,ht=_e(V),Mt=Object(C.useRef)(),Wt=Object(C.useRef)();function Ut(){try{return Object(mt.a)(Mt.current||Wt.current)}catch($t){return null}}var Gt=Tn(ht,ce,Ut,V),Ht=Object(M.a)(Gt,4),jt=Ht[0],Ft=Ht[1],qt=Ht[2],zt=Ht[3],xn=C.useRef(zt);zt&&(xn.current=!0);var on=Object(C.useRef)(q);on.current=q;var Dt=C.useCallback(function($t){Mt.current=$t,Object(ye.b)(on.current,$t)},[]),At,Jt=Object(j.a)(Object(j.a)({},qe),{},{visible:ce});if(!Ie)At=null;else if(jt===lt||!_e(V))zt?At=Ie(Object(j.a)({},Jt),Dt):!xe&&xn.current?At=Ie(Object(j.a)(Object(j.a)({},Jt),{},{className:$e}),Dt):be?At=Ie(Object(j.a)(Object(j.a)({},Jt),{},{style:{display:"none"}}),Dt):At=null;else{var Zt,Et;Ft===_t?Et="prepare":Dn(Ft)?Et="active":Ft===St&&(Et="start"),At=Ie(Object(j.a)(Object(j.a)({},Jt),{},{className:H()(bt(Ue,jt),(Zt={},Object(Q.a)(Zt,bt(Ue,"".concat(jt,"-").concat(Et)),Et),Object(Q.a)(Zt,Ue,typeof Ue=="string"),Zt)),style:qt}),Dt)}return C.createElement(dn,{ref:Wt},At)});return ue.displayName="CSSMotion",ue}var Nn=An(ot),Vn="add",Yn="keep",kt="remove",qn="removed";function fi(ne){var pe;return ne&&Object(L.a)(ne)==="object"&&"key"in ne?pe=ne:pe={key:ne},Object(j.a)(Object(j.a)({},pe),{},{key:String(pe.key)})}function $n(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return ne.map(fi)}function B(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],_e=[],ue=0,V=pe.length,q=$n(ne),J=$n(pe);q.forEach(function(xe){for(var be=!1,Ie=ue;Ie<V;Ie+=1){var Ue=J[Ie];if(Ue.key===xe.key){ue<Ie&&(_e=_e.concat(J.slice(ue,Ie).map(function($e){return Object(j.a)(Object(j.a)({},$e),{},{status:Vn})})),ue=Ie),_e.push(Object(j.a)(Object(j.a)({},Ue),{},{status:Yn})),ue+=1,be=!0;break}}be||_e.push(Object(j.a)(Object(j.a)({},xe),{},{status:kt}))}),ue<V&&(_e=_e.concat(J.slice(ue).map(function(xe){return Object(j.a)(Object(j.a)({},xe),{},{status:Vn})})));var ce={};_e.forEach(function(xe){var be=xe.key;ce[be]=(ce[be]||0)+1});var fe=Object.keys(ce).filter(function(xe){return ce[xe]>1});return fe.forEach(function(xe){_e=_e.filter(function(be){var Ie=be.key,Ue=be.status;return Ie!==xe||Ue!==kt}),_e.forEach(function(be){be.key===xe&&(be.status=Yn)})}),_e}var E=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function w(ne){var pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Nn,_e=function(ue){Object(u.a)(q,ue);var V=Object(l.a)(q);function q(){var J;return Object(x.a)(this,q),J=V.apply(this,arguments),J.state={keyEntities:[]},J.removeKey=function(ce){J.setState(function(fe){var xe=fe.keyEntities;return{keyEntities:xe.map(function(be){return be.key!==ce?be:Object(j.a)(Object(j.a)({},be),{},{status:qn})})}})},J}return Object(_.a)(q,[{key:"render",value:function(){var ce=this,fe=this.state.keyEntities,xe=this.props,be=xe.component,Ie=xe.children,Ue=xe.onVisibleChanged,$e=Object(I.a)(xe,["component","children","onVisibleChanged"]),qe=be||C.Fragment,ht={};return E.forEach(function(Mt){ht[Mt]=$e[Mt],delete $e[Mt]}),delete $e.keys,C.createElement(qe,$e,fe.map(function(Mt){var Wt=Mt.status,Ut=Object(I.a)(Mt,["status"]),Gt=Wt===Vn||Wt===Yn;return C.createElement(pe,Object(m.a)({},ht,{key:Ut.key,visible:Gt,eventProps:Ut,onVisibleChanged:function(jt){Ue==null||Ue(jt,{key:Ut.key}),jt||ce.removeKey(Ut.key)}}),Ie)}))}}],[{key:"getDerivedStateFromProps",value:function(ce,fe){var xe=ce.keys,be=fe.keyEntities,Ie=$n(xe),Ue=B(be,Ie);return{keyEntities:Ue.filter(function($e){var qe=be.find(function(ht){var Mt=ht.key;return $e.key===Mt});return!(qe&&qe.status===qn&&$e.status===kt)})}}}]),q}(C.Component);return _e.defaultProps={component:"div"},_e}var U=w(ot),z=Nn;function F(ne){var pe=ne.prefixCls,_e=ne.motion,ue=ne.animation,V=ne.transitionName;return _e||(ue?{motionName:"".concat(pe,"-").concat(ue)}:V?{motionName:V}:null)}function me(ne){var pe=ne.prefixCls,_e=ne.visible,ue=ne.zIndex,V=ne.mask,q=ne.maskMotion,J=ne.maskAnimation,ce=ne.maskTransitionName;if(!V)return null;var fe={};return(q||ce||J)&&(fe=Object(j.a)({motionAppear:!0},F({motion:q,prefixCls:pe,transitionName:ce,animation:J}))),C.createElement(z,Object(m.a)({},fe,{visible:_e,removeOnLeave:!0}),function(xe){var be=xe.className;return C.createElement("div",{style:{zIndex:ue},className:H()("".concat(pe,"-mask"),be)})})}var Ke=N("9mu1"),ct=N("o0o1"),yt=N.n(ct),Ve=N("HaE+"),Ct=["measure","align",null,"motion"],Pt=function(ne,pe){var _e=Object(C.useState)(null),ue=Object(M.a)(_e,2),V=ue[0],q=ue[1],J=Object(C.useRef)(),ce=Object(C.useRef)(!1);function fe(Ie){ce.current||q(Ie)}function xe(){nt.a.cancel(J.current)}function be(Ie){xe(),J.current=Object(nt.a)(function(){fe(function(Ue){switch(V){case"align":return"motion";case"motion":return"stable";default:}return Ue}),Ie==null||Ie()})}return Object(C.useEffect)(function(){fe("measure")},[ne]),Object(C.useEffect)(function(){switch(V){case"measure":pe();break;default:}V&&(J.current=Object(nt.a)(Object(Ve.a)(yt.a.mark(function Ie(){var Ue,$e;return yt.a.wrap(function(ht){for(;;)switch(ht.prev=ht.next){case 0:Ue=Ct.indexOf(V),$e=Ct[Ue+1],$e&&Ue!==-1&&fe($e);case 3:case"end":return ht.stop()}},Ie)}))))},[V]),Object(C.useEffect)(function(){return function(){ce.current=!0,xe()}},[]),[V,be]},tn=function(ne){var pe=C.useState({width:0,height:0}),_e=Object(M.a)(pe,2),ue=_e[0],V=_e[1];function q(ce){V({width:ce.offsetWidth,height:ce.offsetHeight})}var J=C.useMemo(function(){var ce={};if(ne){var fe=ue.width,xe=ue.height;ne.indexOf("height")!==-1&&xe?ce.height=xe:ne.indexOf("minHeight")!==-1&&xe&&(ce.minHeight=xe),ne.indexOf("width")!==-1&&fe?ce.width=fe:ne.indexOf("minWidth")!==-1&&fe&&(ce.minWidth=fe)}return ce},[ne,ue]);return[J,q]},kn=C.forwardRef(function(ne,pe){var _e=ne.visible,ue=ne.prefixCls,V=ne.className,q=ne.style,J=ne.children,ce=ne.zIndex,fe=ne.stretch,xe=ne.destroyPopupOnHide,be=ne.forceRender,Ie=ne.align,Ue=ne.point,$e=ne.getRootDomNode,qe=ne.getClassNameFromAlign,ht=ne.onAlign,Mt=ne.onMouseEnter,Wt=ne.onMouseLeave,Ut=ne.onMouseDown,Gt=ne.onTouchStart,Ht=Object(C.useRef)(),jt=Object(C.useRef)(),Ft=Object(C.useState)(),qt=Object(M.a)(Ft,2),zt=qt[0],xn=qt[1],on=tn(fe),Dt=Object(M.a)(on,2),At=Dt[0],Jt=Dt[1];function Zt(){fe&&Jt($e())}var Et=Pt(_e,Zt),$t=Object(M.a)(Et,2),mn=$t[0],en=$t[1],cn=Object(C.useRef)();function bn(){return Ue||$e}function Fn(){var In;(In=Ht.current)===null||In===void 0||In.forceAlign()}function Qn(In,zn){var Wn=qe(zn);zt!==Wn&&xn(Wn),mn==="align"&&(zt!==Wn?Promise.resolve().then(function(){Fn()}):en(function(){var Un;(Un=cn.current)===null||Un===void 0||Un.call(cn)}),ht==null||ht(In,zn))}var Cn=Object(j.a)({},F(ne));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(In){var zn=Cn[In];Cn[In]=function(Wn,Un){return en(),zn==null?void 0:zn(Wn,Un)}});function Zn(){return new Promise(function(In){cn.current=In})}C.useEffect(function(){!Cn.motionName&&mn==="motion"&&en()},[Cn.motionName,mn]),C.useImperativeHandle(pe,function(){return{forceAlign:Fn,getElement:function(){return jt.current}}});var Ei=Object(j.a)(Object(j.a)({},At),{},{zIndex:ce,opacity:mn==="motion"||mn==="stable"||!_e?void 0:0,pointerEvents:mn==="stable"?void 0:"none"},q),ri=!0;(Ie==null?void 0:Ie.points)&&(mn==="align"||mn==="stable")&&(ri=!1);var ai=J;return C.Children.count(J)>1&&(ai=C.createElement("div",{className:"".concat(ue,"-content")},J)),C.createElement(z,Object(m.a)({visible:_e,ref:jt,leavedClassName:"".concat(ue,"-hidden")},Cn,{onAppearPrepare:Zn,onEnterPrepare:Zn,removeOnLeave:xe,forceRender:be}),function(In,zn){var Wn=In.className,Un=In.style,Li=H()(ue,V,zt,Wn);return C.createElement(Ke.a,{target:bn(),key:"popup",ref:Ht,monitorWindowResize:!0,disabled:ri,align:Ie,onAlign:Qn},C.createElement("div",{ref:zn,className:Li,onMouseEnter:Mt,onMouseLeave:Wt,onMouseDownCapture:Ut,onTouchStartCapture:Gt,style:Object(j.a)(Object(j.a)({},Un),Ei)},ai))})});kn.displayName="PopupInner";var Xn=kn,Pe=C.forwardRef(function(ne,pe){var _e=ne.prefixCls,ue=ne.visible,V=ne.zIndex,q=ne.children,J=ne.mobile;J=J===void 0?{}:J;var ce=J.popupClassName,fe=J.popupStyle,xe=J.popupMotion,be=xe===void 0?{}:xe,Ie=J.popupRender,Ue=C.useRef();C.useImperativeHandle(pe,function(){return{forceAlign:function(){},getElement:function(){return Ue.current}}});var $e=Object(j.a)({zIndex:V},fe),qe=q;return C.Children.count(q)>1&&(qe=C.createElement("div",{className:"".concat(_e,"-content")},q)),Ie&&(qe=Ie(qe)),C.createElement(z,Object(m.a)({visible:ue,ref:Ue,removeOnLeave:!0},be),function(ht,Mt){var Wt=ht.className,Ut=ht.style,Gt=H()(_e,ce,Wt);return C.createElement("div",{ref:Mt,className:Gt,style:Object(j.a)(Object(j.a)({},Ut),$e)},qe)})});Pe.displayName="MobilePopupInner";var On=Pe,oi=["visible","mobile"],Jn=C.forwardRef(function(ne,pe){var _e=ne.visible,ue=ne.mobile,V=Object(I.a)(ne,oi),q=Object(C.useState)(_e),J=Object(M.a)(q,2),ce=J[0],fe=J[1],xe=Object(C.useState)(!1),be=Object(M.a)(xe,2),Ie=be[0],Ue=be[1],$e=Object(j.a)(Object(j.a)({},V),{},{visible:ce});Object(C.useEffect)(function(){fe(_e),_e&&ue&&Ue(he())},[_e,ue]);var qe=Ie?C.createElement(On,Object(m.a)({},$e,{mobile:ue,ref:pe})):C.createElement(Xn,Object(m.a)({},$e,{ref:pe}));return C.createElement("div",null,C.createElement(me,$e),qe)});Jn.displayName="Popup";var pi=Jn,ei=C.createContext(null),_n=ei;function Kn(){}function li(){return""}function mi(ne){return ne?ne.ownerDocument:window.document}var xi=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Ni(ne){var pe=function(_e){Object(u.a)(V,_e);var ue=Object(l.a)(V);function V(q){var J;Object(x.a)(this,V),J=ue.call(this,q),J.popupRef=C.createRef(),J.triggerRef=C.createRef(),J.attachId=void 0,J.clickOutsideHandler=void 0,J.touchOutsideHandler=void 0,J.contextMenuOutsideHandler1=void 0,J.contextMenuOutsideHandler2=void 0,J.mouseDownTimeout=void 0,J.focusTime=void 0,J.preClickTime=void 0,J.preTouchTime=void 0,J.delayTimer=void 0,J.hasPopupMouseDown=void 0,J.onMouseEnter=function(fe){var xe=J.props.mouseEnterDelay;J.fireEvents("onMouseEnter",fe),J.delaySetPopupVisible(!0,xe,xe?null:fe)},J.onMouseMove=function(fe){J.fireEvents("onMouseMove",fe),J.setPoint(fe)},J.onMouseLeave=function(fe){J.fireEvents("onMouseLeave",fe),J.delaySetPopupVisible(!1,J.props.mouseLeaveDelay)},J.onPopupMouseEnter=function(){J.clearDelayTimer()},J.onPopupMouseLeave=function(fe){var xe;if(fe.relatedTarget&&!fe.relatedTarget.setTimeout&&Object(dt.a)((xe=J.popupRef.current)===null||xe===void 0?void 0:xe.getElement(),fe.relatedTarget))return;J.delaySetPopupVisible(!1,J.props.mouseLeaveDelay)},J.onFocus=function(fe){J.fireEvents("onFocus",fe),J.clearDelayTimer(),J.isFocusToShow()&&(J.focusTime=Date.now(),J.delaySetPopupVisible(!0,J.props.focusDelay))},J.onMouseDown=function(fe){J.fireEvents("onMouseDown",fe),J.preClickTime=Date.now()},J.onTouchStart=function(fe){J.fireEvents("onTouchStart",fe),J.preTouchTime=Date.now()},J.onBlur=function(fe){J.fireEvents("onBlur",fe),J.clearDelayTimer(),J.isBlurToHide()&&J.delaySetPopupVisible(!1,J.props.blurDelay)},J.onContextMenu=function(fe){fe.preventDefault(),J.fireEvents("onContextMenu",fe),J.setPopupVisible(!0,fe)},J.onContextMenuClose=function(){J.isContextMenuToShow()&&J.close()},J.onClick=function(fe){if(J.fireEvents("onClick",fe),J.focusTime){var xe;if(J.preClickTime&&J.preTouchTime?xe=Math.min(J.preClickTime,J.preTouchTime):J.preClickTime?xe=J.preClickTime:J.preTouchTime&&(xe=J.preTouchTime),Math.abs(xe-J.focusTime)<20)return;J.focusTime=0}J.preClickTime=0,J.preTouchTime=0,J.isClickToShow()&&(J.isClickToHide()||J.isBlurToHide())&&fe&&fe.preventDefault&&fe.preventDefault();var be=!J.state.popupVisible;(J.isClickToHide()&&!be||be&&J.isClickToShow())&&J.setPopupVisible(!J.state.popupVisible,fe)},J.onPopupMouseDown=function(){if(J.hasPopupMouseDown=!0,clearTimeout(J.mouseDownTimeout),J.mouseDownTimeout=window.setTimeout(function(){J.hasPopupMouseDown=!1},0),J.context){var fe;(fe=J.context).onPopupMouseDown.apply(fe,arguments)}},J.onDocumentClick=function(fe){if(J.props.mask&&!J.props.maskClosable)return;var xe=fe.target,be=J.getRootDomNode(),Ie=J.getPopupDomNode();(!Object(dt.a)(be,xe)||J.isContextMenuOnly())&&!Object(dt.a)(Ie,xe)&&!J.hasPopupMouseDown&&J.close()},J.getRootDomNode=function(){var fe=J.props.getTriggerDOMNode;if(fe)return fe(J.triggerRef.current);try{var xe=Object(mt.a)(J.triggerRef.current);if(xe)return xe}catch(be){}return st.a.findDOMNode(Object(d.a)(J))},J.getPopupClassNameFromAlign=function(fe){var xe=[],be=J.props,Ie=be.popupPlacement,Ue=be.builtinPlacements,$e=be.prefixCls,qe=be.alignPoint,ht=be.getPopupClassNameFromAlign;return Ie&&Ue&&xe.push(De(Ue,$e,fe,qe)),ht&&xe.push(ht(fe)),xe.join(" ")},J.getComponent=function(){var fe=J.props,xe=fe.prefixCls,be=fe.destroyPopupOnHide,Ie=fe.popupClassName,Ue=fe.onPopupAlign,$e=fe.popupMotion,qe=fe.popupAnimation,ht=fe.popupTransitionName,Mt=fe.popupStyle,Wt=fe.mask,Ut=fe.maskAnimation,Gt=fe.maskTransitionName,Ht=fe.maskMotion,jt=fe.zIndex,Ft=fe.popup,qt=fe.stretch,zt=fe.alignPoint,xn=fe.mobile,on=fe.forceRender,Dt=J.state,At=Dt.popupVisible,Jt=Dt.point,Zt=J.getPopupAlign(),Et={};return J.isMouseEnterToShow()&&(Et.onMouseEnter=J.onPopupMouseEnter),J.isMouseLeaveToHide()&&(Et.onMouseLeave=J.onPopupMouseLeave),Et.onMouseDown=J.onPopupMouseDown,Et.onTouchStart=J.onPopupMouseDown,C.createElement(pi,Object(m.a)({prefixCls:xe,destroyPopupOnHide:be,visible:At,point:zt&&Jt,className:Ie,align:Zt,onAlign:Ue,animation:qe,getClassNameFromAlign:J.getPopupClassNameFromAlign},Et,{stretch:qt,getRootDomNode:J.getRootDomNode,style:Mt,mask:Wt,zIndex:jt,transitionName:ht,maskAnimation:Ut,maskTransitionName:Gt,maskMotion:Ht,ref:J.popupRef,motion:$e,mobile:xn,forceRender:on}),typeof Ft=="function"?Ft():Ft)},J.attachParent=function(fe){nt.a.cancel(J.attachId);var xe=J.props,be=xe.getPopupContainer,Ie=xe.getDocument,Ue=J.getRootDomNode(),$e;be?(Ue||be.length===0)&&($e=be(Ue)):$e=Ie(J.getRootDomNode()).body,$e?$e.appendChild(fe):J.attachId=Object(nt.a)(function(){J.attachParent(fe)})},J.getContainer=function(){var fe=J.props.getDocument,xe=fe(J.getRootDomNode()).createElement("div");return xe.style.position="absolute",xe.style.top="0",xe.style.left="0",xe.style.width="100%",J.attachParent(xe),xe},J.setPoint=function(fe){var xe=J.props.alignPoint;if(!xe||!fe)return;J.setState({point:{pageX:fe.pageX,pageY:fe.pageY}})},J.handlePortalUpdate=function(){J.state.prevPopupVisible!==J.state.popupVisible&&J.props.afterPopupVisibleChange(J.state.popupVisible)},J.triggerContextValue={onPopupMouseDown:J.onPopupMouseDown};var ce;return"popupVisible"in q?ce=!!q.popupVisible:ce=!!q.defaultPopupVisible,J.state={prevPopupVisible:ce,popupVisible:ce},xi.forEach(function(fe){J["fire".concat(fe)]=function(xe){J.fireEvents(fe,xe)}}),J}return Object(_.a)(V,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var J=this.props,ce=this.state;if(ce.popupVisible){var fe;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(fe=J.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(Ae.a)(fe,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(fe=fe||J.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(Ae.a)(fe,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(fe=fe||J.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(Ae.a)(fe,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(Ae.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),nt.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var J;return((J=this.popupRef.current)===null||J===void 0?void 0:J.getElement())||null}},{key:"getPopupAlign",value:function(){var J=this.props,ce=J.popupPlacement,fe=J.popupAlign,xe=J.builtinPlacements;return ce&&xe?Re(xe,ce,fe):fe}},{key:"setPopupVisible",value:function(J,ce){var fe=this.props.alignPoint,xe=this.state.popupVisible;this.clearDelayTimer(),xe!==J&&("popupVisible"in this.props||this.setState({popupVisible:J,prevPopupVisible:xe}),this.props.onPopupVisibleChange(J)),fe&&ce&&J&&this.setPoint(ce)}},{key:"delaySetPopupVisible",value:function(J,ce,fe){var xe=this,be=ce*1e3;if(this.clearDelayTimer(),be){var Ie=fe?{pageX:fe.pageX,pageY:fe.pageY}:null;this.delayTimer=window.setTimeout(function(){xe.setPopupVisible(J,Ie),xe.clearDelayTimer()},be)}else this.setPopupVisible(J,fe)}},{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(J){var ce=this.props.children.props,fe=this.props;return ce[J]&&fe[J]?this["fire".concat(J)]:ce[J]||fe[J]}},{key:"isClickToShow",value:function(){var J=this.props,ce=J.action,fe=J.showAction;return ce.indexOf("click")!==-1||fe.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var J=this.props.action;return J==="contextMenu"||J.length===1&&J[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var J=this.props,ce=J.action,fe=J.showAction;return ce.indexOf("contextMenu")!==-1||fe.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var J=this.props,ce=J.action,fe=J.hideAction;return ce.indexOf("click")!==-1||fe.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var J=this.props,ce=J.action,fe=J.showAction;return ce.indexOf("hover")!==-1||fe.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var J=this.props,ce=J.action,fe=J.hideAction;return ce.indexOf("hover")!==-1||fe.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var J=this.props,ce=J.action,fe=J.showAction;return ce.indexOf("focus")!==-1||fe.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var J=this.props,ce=J.action,fe=J.hideAction;return ce.indexOf("focus")!==-1||fe.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var J;(J=this.popupRef.current)===null||J===void 0||J.forceAlign()}}},{key:"fireEvents",value:function(J,ce){var fe=this.props.children.props[J];fe&&fe(ce);var xe=this.props[J];xe&&xe(ce)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var J=this.state.popupVisible,ce=this.props,fe=ce.children,xe=ce.forceRender,be=ce.alignPoint,Ie=ce.className,Ue=ce.autoDestroy,$e=C.Children.only(fe),qe={key:"trigger"};this.isContextMenuToShow()?qe.onContextMenu=this.onContextMenu:qe.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(qe.onClick=this.onClick,qe.onMouseDown=this.onMouseDown,qe.onTouchStart=this.onTouchStart):(qe.onClick=this.createTwoChains("onClick"),qe.onMouseDown=this.createTwoChains("onMouseDown"),qe.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(qe.onMouseEnter=this.onMouseEnter,be&&(qe.onMouseMove=this.onMouseMove)):qe.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?qe.onMouseLeave=this.onMouseLeave:qe.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(qe.onFocus=this.onFocus,qe.onBlur=this.onBlur):(qe.onFocus=this.createTwoChains("onFocus"),qe.onBlur=this.createTwoChains("onBlur"));var ht=H()($e&&$e.props&&$e.props.className,Ie);ht&&(qe.className=ht);var Mt=Object(j.a)({},qe);Object(ye.c)($e)&&(Mt.ref=Object(ye.a)(this.triggerRef,$e.ref));var Wt=C.cloneElement($e,Mt),Ut;return(J||this.popupRef.current||xe)&&(Ut=C.createElement(ne,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!J&&Ue&&(Ut=null),C.createElement(_n.Provider,{value:this.triggerContextValue},Wt,Ut)}}],[{key:"getDerivedStateFromProps",value:function(J,ce){var fe=J.popupVisible,xe={};return fe!==void 0&&ce.popupVisible!==fe&&(xe.popupVisible=fe,xe.prevPopupVisible=ce.popupVisible),xe}}]),V}(C.Component);return pe.contextType=_n,pe.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:li,getDocument:mi,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},pe}var ui=Ni(Ne.a),Rn={adjustX:1,adjustY:1},ti={topLeft:{points:["bl","tl"],overflow:Rn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Rn,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Rn,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Rn,offset:[4,0]}},Ri={topLeft:{points:["bl","tl"],overflow:Rn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Rn,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Rn,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Rn,offset:[4,0]}},gi=ti,an=0,Bt={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},hn=function(pe,_e,ue){var V=ke(_e),q=pe.getState();pe.setState({defaultActiveFirst:Object(j.a)(Object(j.a)({},q.defaultActiveFirst),{},Object(Q.a)({},V,ue))})},Vt=function(ne){Object(u.a)(_e,ne);var pe=Object(l.a)(_e);function _e(ue){var V;Object(x.a)(this,_e),V=pe.call(this,ue),V.onDestroy=function(be){V.props.onDestroy(be)},V.onKeyDown=function(be){var Ie=be.keyCode,Ue=V.menuInstance,$e=V.props.store,qe=V.getVisible();if(Ie===s.a.ENTER)return V.onTitleClick(be),hn($e,V.props.eventKey,!0),!0;if(Ie===s.a.RIGHT)return qe?Ue.onKeyDown(be):(V.triggerOpenChange(!0),hn($e,V.props.eventKey,!0)),!0;if(Ie===s.a.LEFT){var ht;if(qe)ht=Ue.onKeyDown(be);else return;return ht||(V.triggerOpenChange(!1),ht=!0),ht}return qe&&(Ie===s.a.UP||Ie===s.a.DOWN)?Ue.onKeyDown(be):void 0},V.onOpenChange=function(be){V.props.onOpenChange(be)},V.onPopupVisibleChange=function(be){V.triggerOpenChange(be,be?"mouseenter":"mouseleave")},V.onMouseEnter=function(be){var Ie=V.props,Ue=Ie.eventKey,$e=Ie.onMouseEnter,qe=Ie.store;hn(qe,V.props.eventKey,!1),$e({key:Ue,domEvent:be})},V.onMouseLeave=function(be){var Ie=V.props,Ue=Ie.parentMenu,$e=Ie.eventKey,qe=Ie.onMouseLeave;Ue.subMenuInstance=Object(d.a)(V),qe({key:$e,domEvent:be})},V.onTitleMouseEnter=function(be){var Ie=V.props,Ue=Ie.eventKey,$e=Ie.onItemHover,qe=Ie.onTitleMouseEnter;$e({key:Ue,hover:!0}),qe({key:Ue,domEvent:be})},V.onTitleMouseLeave=function(be){var Ie=V.props,Ue=Ie.parentMenu,$e=Ie.eventKey,qe=Ie.onItemHover,ht=Ie.onTitleMouseLeave;Ue.subMenuInstance=Object(d.a)(V),qe({key:$e,hover:!1}),ht({key:$e,domEvent:be})},V.onTitleClick=function(be){var Ie=Object(d.a)(V),Ue=Ie.props;if(Ue.onTitleClick({key:Ue.eventKey,domEvent:be}),Ue.triggerSubMenuAction==="hover")return;V.triggerOpenChange(!V.getVisible(),"click"),hn(Ue.store,V.props.eventKey,!1)},V.onSubMenuClick=function(be){typeof V.props.onClick=="function"&&V.props.onClick(V.addKeyPath(be))},V.onSelect=function(be){V.props.onSelect(be)},V.onDeselect=function(be){V.props.onDeselect(be)},V.getPrefixCls=function(){return"".concat(V.props.rootPrefixCls,"-submenu")},V.getActiveClassName=function(){return"".concat(V.getPrefixCls(),"-active")},V.getDisabledClassName=function(){return"".concat(V.getPrefixCls(),"-disabled")},V.getSelectedClassName=function(){return"".concat(V.getPrefixCls(),"-selected")},V.getOpenClassName=function(){return"".concat(V.props.rootPrefixCls,"-submenu-open")},V.getVisible=function(){return V.state.isOpen},V.getMode=function(){return V.state.mode},V.saveMenuInstance=function(be){V.menuInstance=be},V.addKeyPath=function(be){return Object(j.a)(Object(j.a)({},be),{},{keyPath:(be.keyPath||[]).concat(V.props.eventKey)})},V.triggerOpenChange=function(be,Ie){var Ue=V.props.eventKey,$e=function(){V.onOpenChange({key:Ue,item:Object(d.a)(V),trigger:Ie,open:be})};Ie==="mouseenter"?V.mouseenterTimeout=setTimeout(function(){$e()},0):$e()},V.isChildrenSelected=function(){var be={find:!1};return et(V.props.children,V.props.selectedKeys,be),be.find},V.isInlineMode=function(){return V.getMode()==="inline"},V.adjustWidth=function(){if(!V.subMenuTitle||!V.menuInstance)return;var be=tt.findDOMNode(V.menuInstance);if(be.offsetWidth>=V.subMenuTitle.offsetWidth)return;be.style.minWidth="".concat(V.subMenuTitle.offsetWidth,"px")},V.saveSubMenuTitle=function(be){V.subMenuTitle=be},V.getBaseProps=function(){var be=Object(d.a)(V),Ie=be.props,Ue=V.getMode();return{mode:Ue==="horizontal"?"vertical":Ue,visible:V.getVisible(),level:Ie.level+1,inlineIndent:Ie.inlineIndent,focusable:!1,onClick:V.onSubMenuClick,onSelect:V.onSelect,onDeselect:V.onDeselect,onDestroy:V.onDestroy,selectedKeys:Ie.selectedKeys,eventKey:"".concat(Ie.eventKey,"-menu-"),openKeys:Ie.openKeys,motion:Ie.motion,onOpenChange:V.onOpenChange,subMenuOpenDelay:Ie.subMenuOpenDelay,parentMenu:Object(d.a)(V),subMenuCloseDelay:Ie.subMenuCloseDelay,forceSubMenuRender:Ie.forceSubMenuRender,triggerSubMenuAction:Ie.triggerSubMenuAction,builtinPlacements:Ie.builtinPlacements,defaultActiveFirst:Ie.store.getState().defaultActiveFirst[ke(Ie.eventKey)],multiple:Ie.multiple,prefixCls:Ie.rootPrefixCls,id:V.internalMenuId,manualRef:V.saveMenuInstance,itemIcon:Ie.itemIcon,expandIcon:Ie.expandIcon,direction:Ie.direction}},V.getMotion=function(be,Ie){var Ue=Object(d.a)(V),$e=Ue.haveRendered,qe=V.props,ht=qe.motion,Mt=qe.rootPrefixCls,Wt=Object(j.a)(Object(j.a)({},ht),{},{leavedClassName:"".concat(Mt,"-hidden"),removeOnLeave:!1,motionAppear:$e||!Ie||be!=="inline"});return Wt};var q=ue.store,J=ue.eventKey,ce=q.getState(),fe=ce.defaultActiveFirst;V.isRootMenu=!1;var xe=!1;return fe&&(xe=fe[J]),hn(q,J,xe),V.state={mode:ue.mode,isOpen:ue.isOpen},V}return Object(_.a)(_e,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var V=this,q=this.props,J=q.mode,ce=q.parentMenu,fe=q.manualRef,xe=q.isOpen,be=function(){V.setState({mode:J,isOpen:xe})},Ie=xe!==this.state.isOpen,Ue=J!==this.state.mode;if((Ue||Ie)&&(nt.a.cancel(this.updateStateRaf),Ue?this.updateStateRaf=Object(nt.a)(be):be()),fe&&fe(this),J!=="horizontal"||!(ce==null?void 0:ce.isRootMenu)||!xe)return;this.minWidthTimeout=setTimeout(function(){return V.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var V=this.props,q=V.onDestroy,J=V.eventKey;q&&q(J),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),nt.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(V,q){var J=this.getBaseProps();return C.createElement(wi,Object(m.a)({},J,{id:this.internalMenuId,className:V,style:q}),this.props.children)}},{key:"renderChildren",value:function(){var V=this,q=this.getBaseProps(),J=q.mode,ce=q.visible,fe=q.forceSubMenuRender,xe=q.direction,be=this.getMotion(J,ce);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||ce||fe,!this.haveOpened)return C.createElement("div",null);var Ie=H()("".concat(q.prefixCls,"-sub"),Object(Q.a)({},"".concat(q.prefixCls,"-rtl"),xe==="rtl"));return this.isInlineMode()?C.createElement(z,Object(m.a)({visible:q.visible,forceRender:fe},be),function(Ue){var $e=Ue.className,qe=Ue.style,ht=H()(Ie,$e);return V.renderPopupMenu(ht,qe)}):this.renderPopupMenu(Ie)}},{key:"render",value:function(){var V,q,J,ce=Object(j.a)({},this.props),fe=this.getVisible(),xe=this.getPrefixCls(),be=this.isInlineMode(),Ie=this.getMode(),Ue=H()(xe,"".concat(xe,"-").concat(Ie),(V={},Object(Q.a)(V,ce.className,!!ce.className),Object(Q.a)(V,this.getOpenClassName(),fe),Object(Q.a)(V,this.getActiveClassName(),ce.active||fe&&!be),Object(Q.a)(V,this.getDisabledClassName(),ce.disabled),Object(Q.a)(V,this.getSelectedClassName(),this.isChildrenSelected()),V));this.internalMenuId||(ce.eventKey?this.internalMenuId="".concat(ce.eventKey,"$Menu"):(an+=1,this.internalMenuId="$__$".concat(an,"$Menu")));var $e={},qe={},ht={};ce.disabled||($e={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},qe={onClick:this.onTitleClick},ht={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var Mt={},Wt=ce.direction,Ut=Wt==="rtl";be&&(Ut?Mt.paddingRight=ce.inlineIndent*ce.level:Mt.paddingLeft=ce.inlineIndent*ce.level);var Gt={};this.getVisible()&&(Gt={"aria-owns":this.internalMenuId});var Ht=null;Ie!=="horizontal"&&(Ht=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(Ht=C.createElement(this.props.expandIcon,Object(j.a)({},this.props))));var jt=C.createElement("div",Object(m.a)({ref:this.saveSubMenuTitle,style:Mt,className:"".concat(xe,"-title"),role:"button"},ht,qe,{"aria-expanded":fe},Gt,{"aria-haspopup":"true",title:typeof ce.title=="string"?ce.title:void 0}),ce.title,Ht||C.createElement("i",{className:"".concat(xe,"-arrow")})),Ft=this.renderChildren(),qt=((q=ce.parentMenu)===null||q===void 0?void 0:q.isRootMenu)?ce.parentMenu.props.getPopupContainer:function(bn){return bn.parentNode},zt=Bt[Ie],xn=ce.popupOffset?{offset:ce.popupOffset}:{},on=H()((J={},Object(Q.a)(J,ce.popupClassName,ce.popupClassName&&!be),Object(Q.a)(J,"".concat(xe,"-rtl"),Ut),J)),Dt=ce.disabled,At=ce.triggerSubMenuAction,Jt=ce.subMenuOpenDelay,Zt=ce.forceSubMenuRender,Et=ce.subMenuCloseDelay,$t=ce.builtinPlacements;ee.forEach(function(bn){return delete ce[bn]}),delete ce.onClick;var mn=Ut?Object(j.a)(Object(j.a)({},Ri),$t):Object(j.a)(Object(j.a)({},ti),$t);delete ce.direction;var en=this.getBaseProps(),cn=be?null:this.getMotion(en.mode,en.visible);return C.createElement("li",Object(m.a)({},ce,$e,{className:Ue,role:"menuitem"}),C.createElement(ui,{prefixCls:xe,popupClassName:H()("".concat(xe,"-popup"),on),getPopupContainer:qt,builtinPlacements:mn,popupPlacement:zt,popupVisible:be?!1:fe,popupAlign:xn,popup:be?null:Ft,action:Dt||be?[]:[At],mouseEnterDelay:Jt,mouseLeaveDelay:Et,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Zt,popupMotion:cn},jt),be?Ft:null)}}]),_e}(C.Component);Vt.defaultProps={onMouseEnter:Je,onMouseLeave:Je,onTitleMouseEnter:Je,onTitleMouseLeave:Je,onTitleClick:Je,manualRef:Je,mode:"vertical",title:""};var Sn=Object(h.b)(function(ne,pe){var _e=ne.openKeys,ue=ne.activeKey,V=ne.selectedKeys,q=pe.eventKey,J=pe.subMenuKey;return{isOpen:_e.indexOf(q)>-1,active:ue[J]===q,selectedKeys:V}})(Vt);Sn.isSubMenu=!0;var nn=Sn,vi="menuitem-overflowed",wn=.5,Ti=function(ne){Object(u.a)(_e,ne);var pe=Object(l.a)(_e);function _e(){var ue;return Object(x.a)(this,_e),ue=pe.apply(this,arguments),ue.resizeObserver=null,ue.mutationObserver=null,ue.originalTotalWidth=0,ue.overflowedItems=[],ue.menuItemSizes=[],ue.cancelFrameId=null,ue.state={lastVisibleIndex:void 0},ue.childRef=C.createRef(),ue.getMenuItemNodes=function(){var V=ue.props.prefixCls,q=ue.childRef.current;return q?[].slice.call(q.children).filter(function(J){return J.className.split(" ").indexOf("".concat(V,"-overflowed-submenu"))<0}):[]},ue.getOverflowedSubMenuItem=function(V,q,J){var ce=ue.props,fe=ce.overflowedIndicator,xe=ce.level,be=ce.mode,Ie=ce.prefixCls,Ue=ce.theme;if(xe!==1||be!=="horizontal")return null;var $e=ue.props.children[0],qe=$e.props,ht=qe.children,Mt=qe.title,Wt=qe.style,Ut=Object(I.a)(qe,["children","title","style"]),Gt=Object(j.a)({},Wt),Ht="".concat(V,"-overflowed-indicator"),jt="".concat(V,"-overflowed-indicator");q.length===0&&J!==!0?Gt=Object(j.a)(Object(j.a)({},Gt),{},{display:"none"}):J&&(Gt=Object(j.a)(Object(j.a)({},Gt),{},{visibility:"hidden",position:"absolute"}),Ht="".concat(Ht,"-placeholder"),jt="".concat(jt,"-placeholder"));var Ft=Ue?"".concat(Ie,"-").concat(Ue):"",qt={};return ee.forEach(function(zt){Ut[zt]!==void 0&&(qt[zt]=Ut[zt])}),C.createElement(nn,Object(m.a)({title:fe,className:"".concat(Ie,"-overflowed-submenu"),popupClassName:Ft},qt,{key:Ht,eventKey:jt,disabled:!1,style:Gt}),q)},ue.setChildrenWidthAndResize=function(){if(ue.props.mode!=="horizontal")return;var V=ue.childRef.current;if(!V)return;var q=V.children;if(!q||q.length===0)return;var J=V.children[q.length-1];Te(J,"display","inline-block");var ce=ue.getMenuItemNodes(),fe=ce.filter(function(xe){return xe.className.split(" ").indexOf(vi)>=0});fe.forEach(function(xe){Te(xe,"display","inline-block")}),ue.menuItemSizes=ce.map(function(xe){return ve(xe,!0)}),fe.forEach(function(xe){Te(xe,"display","none")}),ue.overflowedIndicatorWidth=ve(V.children[V.children.length-1],!0),ue.originalTotalWidth=ue.menuItemSizes.reduce(function(xe,be){return xe+be},0),ue.handleResize(),Te(J,"display","none")},ue.handleResize=function(){if(ue.props.mode!=="horizontal")return;var V=ue.childRef.current;if(!V)return;var q=ve(V);ue.overflowedItems=[];var J=0,ce;ue.originalTotalWidth>q+wn&&(ce=-1,ue.menuItemSizes.forEach(function(fe){J+=fe,J+ue.overflowedIndicatorWidth<=q&&(ce+=1)})),ue.setState({lastVisibleIndex:ce})},ue}return Object(_.a)(_e,[{key:"componentDidMount",value:function(){var V=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var q=this.childRef.current;if(!q)return;this.resizeObserver=new Qe.default(function(J){J.forEach(function(){var ce=V.cancelFrameId;cancelAnimationFrame(ce),V.cancelFrameId=requestAnimationFrame(V.setChildrenWidthAndResize)})}),[].slice.call(q.children).concat(q).forEach(function(J){V.resizeObserver.observe(J)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){V.resizeObserver.disconnect(),[].slice.call(q.children).concat(q).forEach(function(J){V.resizeObserver.observe(J)}),V.setChildrenWidthAndResize()}),this.mutationObserver.observe(q,{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(V){var q=this,J=this.state.lastVisibleIndex;return(V||[]).reduce(function(ce,fe,xe){var be=fe;if(q.props.mode==="horizontal"){var Ie=q.getOverflowedSubMenuItem(fe.props.eventKey,[]);J!==void 0&&q.props.className.indexOf("".concat(q.props.prefixCls,"-root"))!==-1&&(xe>J&&(be=C.cloneElement(fe,{style:{display:"none"},eventKey:"".concat(fe.props.eventKey,"-hidden"),className:"".concat(vi)})),xe===J+1&&(q.overflowedItems=V.slice(J+1).map(function($e){return C.cloneElement($e,{key:$e.props.eventKey,mode:"vertical-left"})}),Ie=q.getOverflowedSubMenuItem(fe.props.eventKey,q.overflowedItems)));var Ue=[].concat(Object(O.a)(ce),[Ie,be]);return xe===V.length-1&&Ue.push(q.getOverflowedSubMenuItem(fe.props.eventKey,[],!0)),Ue}return[].concat(Object(O.a)(ce),[be])},[])}},{key:"render",value:function(){var V=this.props,q=V.visible,J=V.prefixCls,ce=V.overflowedIndicator,fe=V.mode,xe=V.level,be=V.tag,Ie=V.children,Ue=V.theme,$e=Object(I.a)(V,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),qe=be;return C.createElement(qe,Object(m.a)({ref:this.childRef},$e),this.renderChildren(Ie))}}]),_e}(C.Component);Ti.defaultProps={tag:"div",className:""};var yi=Ti;function bi(ne){return ne.length?ne.every(function(pe){return!!pe.props.disabled}):!0}function ni(ne,pe,_e){var ue=ne.getState();ne.setState({activeKey:Object(j.a)(Object(j.a)({},ue.activeKey),{},Object(Q.a)({},pe,_e))})}function ci(ne){return ne.eventKey||"0-menu-"}function Si(ne,pe){var _e=pe,ue=ne.children,V=ne.eventKey;if(_e){var q;if(Ge(ue,function(J,ce){J&&J.props&&!J.props.disabled&&_e===at(J,V,ce)&&(q=!0)}),q)return _e}return _e=null,ne.defaultActiveFirst&&Ge(ue,function(J,ce){!_e&&J&&!J.props.disabled&&(_e=at(J,V,ce))}),_e}function di(ne){if(!ne)return;var pe=this.instanceArray.indexOf(ne);pe!==-1?this.instanceArray[pe]=ne:this.instanceArray.push(ne)}var Ki=function(ne){Object(u.a)(_e,ne);var pe=Object(l.a)(_e);function _e(ue){var V;return Object(x.a)(this,_e),V=pe.call(this,ue),V.onKeyDown=function(q,J){var ce=q.keyCode,fe;if(V.getFlatInstanceArray().forEach(function(be){be&&be.props.active&&be.onKeyDown&&(fe=be.onKeyDown(q))}),fe)return 1;var xe=null;return(ce===s.a.UP||ce===s.a.DOWN)&&(xe=V.step(ce===s.a.UP?-1:1)),xe?(q.preventDefault(),ni(V.props.store,ci(V.props),xe.props.eventKey),typeof J=="function"&&J(xe),1):void 0},V.onItemHover=function(q){var J=q.key,ce=q.hover;ni(V.props.store,ci(V.props),ce?J:null)},V.onDeselect=function(q){V.props.onDeselect(q)},V.onSelect=function(q){V.props.onSelect(q)},V.onClick=function(q){V.props.onClick(q)},V.onOpenChange=function(q){V.props.onOpenChange(q)},V.onDestroy=function(q){V.props.onDestroy(q)},V.getFlatInstanceArray=function(){return V.instanceArray},V.step=function(q){var J=V.getFlatInstanceArray(),ce=V.props.store.getState().activeKey[ci(V.props)],fe=J.length;if(!fe)return null;q<0&&(J=J.concat().reverse());var xe=-1;if(J.every(function($e,qe){return $e&&$e.props.eventKey===ce?(xe=qe,!1):!0}),!V.props.defaultActiveFirst&&xe!==-1&&bi(J.slice(xe,fe-1)))return;var be=(xe+1)%fe,Ie=be;do{var Ue=J[Ie];if(!Ue||Ue.props.disabled)Ie=(Ie+1)%fe;else return Ue}while(Ie!==be);return null},V.renderCommonMenuItem=function(q,J,ce){var fe=V.props.store.getState(),xe=Object(d.a)(V),be=xe.props,Ie=at(q,be.eventKey,J),Ue=q.props;if(!Ue||typeof q.type=="string")return q;var $e=Ie===fe.activeKey,qe=Object(j.a)(Object(j.a)({mode:Ue.mode||be.mode,level:be.level,inlineIndent:be.inlineIndent,renderMenuItem:V.renderMenuItem,rootPrefixCls:be.prefixCls,index:J,parentMenu:be.parentMenu,manualRef:Ue.disabled?void 0:Object(f.a)(q.ref,di.bind(Object(d.a)(V))),eventKey:Ie,active:!Ue.disabled&&$e,multiple:be.multiple,onClick:function(Mt){(Ue.onClick||Je)(Mt),V.onClick(Mt)},onItemHover:V.onItemHover,motion:be.motion,subMenuOpenDelay:be.subMenuOpenDelay,subMenuCloseDelay:be.subMenuCloseDelay,forceSubMenuRender:be.forceSubMenuRender,onOpenChange:V.onOpenChange,onDeselect:V.onDeselect,onSelect:V.onSelect,builtinPlacements:be.builtinPlacements,itemIcon:Ue.itemIcon||V.props.itemIcon,expandIcon:Ue.expandIcon||V.props.expandIcon},ce),{},{direction:be.direction});return(be.mode==="inline"||Oe())&&(qe.triggerSubMenuAction="click"),C.cloneElement(q,Object(j.a)(Object(j.a)({},qe),{},{key:Ie||J}))},V.renderMenuItem=function(q,J,ce){if(!q)return null;var fe=V.props.store.getState(),xe={openKeys:fe.openKeys,selectedKeys:fe.selectedKeys,triggerSubMenuAction:V.props.triggerSubMenuAction,subMenuKey:ce};return V.renderCommonMenuItem(q,J,xe)},ue.store.setState({activeKey:Object(j.a)(Object(j.a)({},ue.store.getState().activeKey),{},Object(Q.a)({},ue.eventKey,Si(ue,ue.activeKey)))}),V.instanceArray=[],V}return Object(_.a)(_e,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(V){return this.props.visible||V.visible||this.props.className!==V.className||!P()(this.props.style,V.style)}},{key:"componentDidUpdate",value:function(V){var q=this.props,J="activeKey"in q?q.activeKey:q.store.getState().activeKey[ci(q)],ce=Si(q,J);if(ce!==J)ni(q.store,ci(q),ce);else if("activeKey"in V){var fe=Si(V,V.activeKey);ce!==fe&&ni(q.store,ci(q),ce)}}},{key:"render",value:function(){var V=this,q=Object(m.a)({},this.props);this.instanceArray=[];var J=H()(q.prefixCls,q.className,"".concat(q.prefixCls,"-").concat(q.mode)),ce={className:J,role:q.role||"menu"};q.id&&(ce.id=q.id),q.focusable&&(ce.tabIndex=0,ce.onKeyDown=this.onKeyDown);var fe=q.prefixCls,xe=q.eventKey,be=q.visible,Ie=q.level,Ue=q.mode,$e=q.overflowedIndicator,qe=q.theme;return ee.forEach(function(ht){return delete q[ht]}),delete q.onClick,C.createElement(yi,Object(m.a)({},q,{prefixCls:fe,mode:Ue,tag:"ul",level:Ie,theme:qe,visible:be,overflowedIndicator:$e},ce),Object(k.a)(q.children).map(function(ht,Mt){return V.renderMenuItem(ht,Mt,xe||"0-menu-")}))}}]),_e}(C.Component);Ki.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:Je};var Gi=Object(h.b)()(Ki),wi=Gi,hi=N("Kwbf");function Ii(ne,pe,_e){var ue=ne.prefixCls,V=ne.motion,q=ne.defaultMotions,J=q===void 0?{}:q,ce=ne.openAnimation,fe=ne.openTransitionName,xe=pe.switchingModeFromInline;if(V)return V;if(Object(L.a)(ce)==="object"&&ce)Object(hi.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof ce=="string")return{motionName:"".concat(ue,"-open-").concat(ce)};if(fe)return{motionName:fe};var be=J[_e];return be||(xe?null:J.other)}var zi=function(ne){Object(u.a)(_e,ne);var pe=Object(l.a)(_e);function _e(ue){var V;Object(x.a)(this,_e),V=pe.call(this,ue),V.onSelect=function(ce){var fe=Object(d.a)(V),xe=fe.props;if(xe.selectable){var be=V.store.getState(),Ie=be.selectedKeys,Ue=ce.key;xe.multiple?Ie=Ie.concat([Ue]):Ie=[Ue],"selectedKeys"in xe||V.store.setState({selectedKeys:Ie}),xe.onSelect(Object(j.a)(Object(j.a)({},ce),{},{selectedKeys:Ie}))}},V.onClick=function(ce){var fe=V.getRealMenuMode(),xe=Object(d.a)(V),be=xe.store,Ie=xe.props.onOpenChange;fe!=="inline"&&!("openKeys"in V.props)&&(be.setState({openKeys:[]}),Ie([])),V.props.onClick(ce)},V.onKeyDown=function(ce,fe){V.innerMenu.getWrappedInstance().onKeyDown(ce,fe)},V.onOpenChange=function(ce){var fe=Object(d.a)(V),xe=fe.props,be=V.store.getState().openKeys.concat(),Ie=!1,Ue=function(qe){var ht=!1;if(qe.open)ht=be.indexOf(qe.key)===-1,ht&&be.push(qe.key);else{var Mt=be.indexOf(qe.key);ht=Mt!==-1,ht&&be.splice(Mt,1)}Ie=Ie||ht};Array.isArray(ce)?ce.forEach(Ue):Ue(ce),Ie&&("openKeys"in V.props||V.store.setState({openKeys:be}),xe.onOpenChange(be))},V.onDeselect=function(ce){var fe=Object(d.a)(V),xe=fe.props;if(xe.selectable){var be=V.store.getState().selectedKeys.concat(),Ie=ce.key,Ue=be.indexOf(Ie);Ue!==-1&&be.splice(Ue,1),"selectedKeys"in xe||V.store.setState({selectedKeys:be}),xe.onDeselect(Object(j.a)(Object(j.a)({},ce),{},{selectedKeys:be}))}},V.onMouseEnter=function(ce){V.restoreModeVerticalFromInline();var fe=V.props.onMouseEnter;fe&&fe(ce)},V.onTransitionEnd=function(ce){var fe=ce.propertyName==="width"&&ce.target===ce.currentTarget,xe=ce.target.className,be=Object.prototype.toString.call(xe)==="[object SVGAnimatedString]"?xe.animVal:xe,Ie=ce.propertyName==="font-size"&&be.indexOf("anticon")>=0;(fe||Ie)&&V.restoreModeVerticalFromInline()},V.setInnerMenu=function(ce){V.innerMenu=ce},V.isRootMenu=!0;var q=ue.defaultSelectedKeys,J=ue.defaultOpenKeys;return"selectedKeys"in ue&&(q=ue.selectedKeys||[]),"openKeys"in ue&&(J=ue.openKeys||[]),V.store=Object(h.c)({selectedKeys:q,openKeys:J,activeKey:{"0-menu-":Si(ue,ue.activeKey)}}),V.state={switchingModeFromInline:!1,prevProps:ue,inlineOpenKeys:[],store:V.store},V}return Object(_.a)(_e,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(V){var q=this.props,J=q.siderCollapsed,ce=q.inlineCollapsed,fe=q.onOpenChange;(!V.inlineCollapsed&&ce||!V.siderCollapsed&&J)&&fe([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var V=this.props.collapsedWidth,q=this.store,J=this.prevOpenKeys,ce=this.getInlineCollapsed()&&(V===0||V==="0"||V==="0px");ce?(this.prevOpenKeys=q.getState().openKeys.concat(),this.store.setState({openKeys:[]})):J&&(this.store.setState({openKeys:J}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var V=this.props.mode,q=this.state.switchingModeFromInline,J=this.getInlineCollapsed();return q&&J?"inline":J?"vertical":V}},{key:"getInlineCollapsed",value:function(){var V=this.props,q=V.inlineCollapsed,J=V.siderCollapsed;return J!==void 0?J:q}},{key:"restoreModeVerticalFromInline",value:function(){var V=this.state.switchingModeFromInline;V&&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 V=Object(j.a)({},Object(v.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),q=this.getRealMenuMode();return V.className+=" ".concat(V.prefixCls,"-root"),V.direction==="rtl"&&(V.className+=" ".concat(V.prefixCls,"-rtl")),V=Object(j.a)(Object(j.a)({},V),{},{mode:q,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Ii(this.props,this.state,q)}),delete V.openAnimation,delete V.openTransitionName,C.createElement(h.a,{store:this.store},C.createElement(wi,Object(m.a)({},V,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(V,q){var J=q.prevProps,ce=q.store,fe=ce.getState(),xe={},be={prevProps:V};return J.mode==="inline"&&V.mode!=="inline"&&(be.switchingModeFromInline=!0),"openKeys"in V?xe.openKeys=V.openKeys||[]:((V.inlineCollapsed&&!J.inlineCollapsed||V.siderCollapsed&&!J.siderCollapsed)&&(be.switchingModeFromInline=!0,be.inlineOpenKeys=fe.openKeys,xe.openKeys=[]),(!V.inlineCollapsed&&J.inlineCollapsed||!V.siderCollapsed&&J.siderCollapsed)&&(xe.openKeys=q.inlineOpenKeys,be.inlineOpenKeys=[])),Object.keys(xe).length&&ce.setState(xe),be}}]),_e}(C.Component);zi.defaultProps={selectable:!0,onClick:Je,onSelect:Je,onOpenChange:Je,onDeselect:Je,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:C.createElement("span",null,"\xB7\xB7\xB7")};var ki=zi,_i=function(ne){Object(u.a)(_e,ne);var pe=Object(l.a)(_e);function _e(){var ue;return Object(x.a)(this,_e),ue=pe.apply(this,arguments),ue.onKeyDown=function(V){var q=V.keyCode;return q===s.a.ENTER?(ue.onClick(V),!0):void 0},ue.onMouseLeave=function(V){var q=ue.props,J=q.eventKey,ce=q.onItemHover,fe=q.onMouseLeave;ce({key:J,hover:!1}),fe({key:J,domEvent:V})},ue.onMouseEnter=function(V){var q=ue.props,J=q.eventKey,ce=q.onItemHover,fe=q.onMouseEnter;ce({key:J,hover:!0}),fe({key:J,domEvent:V})},ue.onClick=function(V){var q=ue.props,J=q.eventKey,ce=q.multiple,fe=q.onClick,xe=q.onSelect,be=q.onDeselect,Ie=q.isSelected,Ue={key:J,keyPath:[J],item:Object(d.a)(ue),domEvent:V};fe(Ue),ce?Ie?be(Ue):xe(Ue):Ie||xe(Ue)},ue.saveNode=function(V){ue.node=V},ue}return Object(_.a)(_e,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var V=this.props;V.onDestroy&&V.onDestroy(V.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 V,q=Object(j.a)({},this.props),J=H()(this.getPrefixCls(),q.className,(V={},Object(Q.a)(V,this.getActiveClassName(),!q.disabled&&q.active),Object(Q.a)(V,this.getSelectedClassName(),q.isSelected),Object(Q.a)(V,this.getDisabledClassName(),q.disabled),V)),ce=Object(j.a)(Object(j.a)({},q.attribute),{},{title:typeof q.title=="string"?q.title:void 0,className:J,role:q.role||"menuitem","aria-disabled":q.disabled});q.role==="option"?ce=Object(j.a)(Object(j.a)({},ce),{},{role:"option","aria-selected":q.isSelected}):(q.role===null||q.role==="none")&&(ce.role="none");var fe={onClick:q.disabled?null:this.onClick,onMouseLeave:q.disabled?null:this.onMouseLeave,onMouseEnter:q.disabled?null:this.onMouseEnter},xe=Object(j.a)({},q.style);q.mode==="inline"&&(q.direction==="rtl"?xe.paddingRight=q.inlineIndent*q.level:xe.paddingLeft=q.inlineIndent*q.level),ee.forEach(function(Ie){return delete q[Ie]}),delete q.direction;var be=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(be=C.createElement(this.props.itemIcon,this.props)),C.createElement("li",Object(m.a)({},Object(v.a)(q,["onClick","onMouseEnter","onMouseLeave","onSelect"]),ce,fe,{style:xe,ref:this.saveNode}),q.children,be)}}]),_e}(C.Component);_i.isMenuItem=!0,_i.defaultProps={onSelect:Je,onMouseEnter:Je,onMouseLeave:Je,manualRef:Je};var Ci=Object(h.b)(function(ne,pe){var _e=ne.activeKey,ue=ne.selectedKeys,V=pe.eventKey,q=pe.subMenuKey;return{active:_e[q]===V,isSelected:Array.isArray(ue)?ue.indexOf(V)!==-1:ue===V}})(_i),Ui=Ci,ii=function(ne){Object(u.a)(_e,ne);var pe=Object(l.a)(_e);function _e(){var ue;return Object(x.a)(this,_e),ue=pe.apply(this,arguments),ue.renderInnerMenuItem=function(V){var q=ue.props,J=q.renderMenuItem,ce=q.index;return J(V,ce,ue.props.subMenuKey)},ue}return Object(_.a)(_e,[{key:"render",value:function(){var V=Object(m.a)({},this.props),q=V.className,J=q===void 0?"":q,ce=V.rootPrefixCls,fe="".concat(ce,"-item-group-title"),xe="".concat(ce,"-item-group-list"),be=V.title,Ie=V.children;return ee.forEach(function(Ue){return delete V[Ue]}),delete V.direction,C.createElement("li",Object(m.a)({},V,{onClick:function($e){return $e.stopPropagation()},className:"".concat(J," ").concat(ce,"-item-group")}),C.createElement("div",{className:fe,title:typeof be=="string"?be:void 0},be),C.createElement("ul",{className:xe},C.Children.map(Ie,this.renderInnerMenuItem)))}}]),_e}(C.Component);ii.isMenuItemGroup=!0,ii.defaultProps={disabled:!0};var $i=ii,Bi=function(pe){var _e=pe.className,ue=pe.rootPrefixCls,V=pe.style;return C.createElement("li",{className:"".concat(_e," ").concat(ue,"-item-divider"),style:V})};Bi.defaultProps={disabled:!0,className:"",style:{}};var er=Bi,Vi=ki,ji=N("eDIo");function Gn(ne,pe){var _e=ne.prefixCls,ue=ne.editable,V=ne.locale,q=ne.style;return!ue||ue.showAdd===!1?null:C.createElement("button",{ref:pe,type:"button",className:"".concat(_e,"-nav-add"),style:q,"aria-label":(V==null?void 0:V.addAriaLabel)||"Add tab",onClick:function(ce){ue.onEdit("add",{event:ce})}},ue.addIcon||"+")}var Ai=C.forwardRef(Gn);function Yi(ne,pe){var _e=ne.prefixCls,ue=ne.id,V=ne.tabs,q=ne.locale,J=ne.mobile,ce=ne.moreIcon,fe=ce===void 0?"More":ce,xe=ne.moreTransitionName,be=ne.style,Ie=ne.className,Ue=ne.editable,$e=ne.tabBarGutter,qe=ne.rtl,ht=ne.onTabClick,Mt=Object(C.useState)(!1),Wt=Object(M.a)(Mt,2),Ut=Wt[0],Gt=Wt[1],Ht=Object(C.useState)(null),jt=Object(M.a)(Ht,2),Ft=jt[0],qt=jt[1],zt="".concat(ue,"-more-popup"),xn="".concat(_e,"-dropdown"),on=Ft!==null?"".concat(zt,"-").concat(Ft):null,Dt=q==null?void 0:q.dropdownAriaLabel,At=C.createElement(Vi,{onClick:function(cn){var bn=cn.key,Fn=cn.domEvent;ht(bn,Fn),Gt(!1)},id:zt,tabIndex:-1,role:"listbox","aria-activedescendant":on,selectedKeys:[Ft],"aria-label":Dt!==void 0?Dt:"expanded dropdown"},V.map(function(en){return C.createElement(Ui,{key:en.key,id:"".concat(zt,"-").concat(en.key),role:"option","aria-controls":ue&&"".concat(ue,"-panel-").concat(en.key),disabled:en.disabled},en.tab)}));function Jt(en){for(var cn=V.filter(function(Zn){return!Zn.disabled}),bn=cn.findIndex(function(Zn){return Zn.key===Ft})||0,Fn=cn.length,Qn=0;Qn<Fn;Qn+=1){bn=(bn+en+Fn)%Fn;var Cn=cn[bn];if(!Cn.disabled){qt(Cn.key);return}}}function Zt(en){var cn=en.which;if(!Ut){[s.a.DOWN,s.a.SPACE,s.a.ENTER].includes(cn)&&(Gt(!0),en.preventDefault());return}switch(cn){case s.a.UP:Jt(-1),en.preventDefault();break;case s.a.DOWN:Jt(1),en.preventDefault();break;case s.a.ESC:Gt(!1);break;case s.a.SPACE:case s.a.ENTER:Ft!==null&&ht(Ft,en);break}}Object(C.useEffect)(function(){var en=document.getElementById(on);en&&en.scrollIntoView&&en.scrollIntoView(!1)},[Ft]),Object(C.useEffect)(function(){Ut||qt(null)},[Ut]);var Et=Object(Q.a)({},qe?"marginLeft":"marginRight",$e);V.length||(Et.visibility="hidden",Et.order=1);var $t=H()(Object(Q.a)({},"".concat(xn,"-rtl"),qe)),mn=J?null:C.createElement(ji.a,{prefixCls:xn,overlay:At,trigger:["hover"],visible:Ut,transitionName:xe,onVisibleChange:Gt,overlayClassName:$t,mouseEnterDelay:.1,mouseLeaveDelay:.1},C.createElement("button",{type:"button",className:"".concat(_e,"-nav-more"),style:Et,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":zt,id:"".concat(ue,"-more"),"aria-expanded":Ut,onKeyDown:Zt},fe));return C.createElement("div",{className:H()("".concat(_e,"-nav-operations"),Ie),style:be,ref:pe},mn,C.createElement(Ai,{prefixCls:_e,locale:q,editable:Ue}))}var tr=C.forwardRef(Yi),Di=Object(C.createContext)(null),Kt=.1,Xt=.01,pn=20,Ln=Math.pow(.995,pn);function jn(){var ne=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(ne)||/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(ne.substr(0,4)))}function Xi(ne,pe){var _e=Object(C.useState)(),ue=Object(M.a)(_e,2),V=ue[0],q=ue[1],J=Object(C.useState)(0),ce=Object(M.a)(J,2),fe=ce[0],xe=ce[1],be=Object(C.useState)(0),Ie=Object(M.a)(be,2),Ue=Ie[0],$e=Ie[1],qe=Object(C.useState)(),ht=Object(M.a)(qe,2),Mt=ht[0],Wt=ht[1],Ut=Object(C.useRef)();function Gt(Dt){var At=Dt.touches[0],Jt=At.screenX,Zt=At.screenY;q({x:Jt,y:Zt}),window.clearInterval(Ut.current)}function Ht(Dt){if(!V)return;Dt.preventDefault();var At=Dt.touches[0],Jt=At.screenX,Zt=At.screenY;q({x:Jt,y:Zt});var Et=Jt-V.x,$t=Zt-V.y;pe(Et,$t);var mn=Date.now();xe(mn),$e(mn-fe),Wt({x:Et,y:$t})}function jt(){if(!V)return;if(q(null),Wt(null),Mt){var Dt=Mt.x/Ue,At=Mt.y/Ue,Jt=Math.abs(Dt),Zt=Math.abs(At);if(Math.max(Jt,Zt)<Kt)return;var Et=Dt,$t=At;Ut.current=window.setInterval(function(){if(Math.abs(Et)<Xt&&Math.abs($t)<Xt){window.clearInterval(Ut.current);return}Et*=Ln,$t*=Ln,pe(Et*pn,$t*pn)},pn)}}var Ft=Object(C.useRef)(0),qt=Object(C.useRef)(!1),zt=Object(C.useRef)();function xn(Dt){var At=Dt.deltaX,Jt=Dt.deltaY,Zt=0,Et=Math.abs(At),$t=Math.abs(Jt);Et===$t?Zt=zt.current==="x"?At:Jt:Et>$t?(Zt=At,zt.current="x"):(Zt=Jt,zt.current="y");var mn=Date.now();mn-Ft.current>100&&(qt.current=!1),(pe(-Zt,-Zt)||qt.current)&&(Dt.preventDefault(),qt.current=!0),Ft.current=mn}var on=Object(C.useRef)(null);on.current={onTouchStart:Gt,onTouchMove:Ht,onTouchEnd:jt,onWheel:xn},C.useEffect(function(){function Dt(Et){on.current.onTouchStart(Et)}function At(Et){on.current.onTouchMove(Et)}function Jt(Et){on.current.onTouchEnd(Et)}function Zt(Et){on.current.onWheel(Et)}return document.addEventListener("touchmove",At,{passive:!1}),document.addEventListener("touchend",Jt,{passive:!1}),ne.current.addEventListener("touchstart",Dt,{passive:!1}),ne.current.addEventListener("wheel",Zt),function(){document.removeEventListener("touchmove",At),document.removeEventListener("touchend",Jt)}},[])}function Fi(){var ne=Object(C.useRef)(new Map);function pe(ue){return ne.current.has(ue)||ne.current.set(ue,C.createRef()),ne.current.get(ue)}function _e(ue){ne.current.delete(ue)}return[pe,_e]}function Ji(ne,pe){var _e=C.useRef(ne),ue=C.useState({}),V=Object(M.a)(ue,2),q=V[1];function J(ce){var fe=typeof ce=="function"?ce(_e.current):ce;fe!==_e.current&&pe(fe,_e.current),_e.current=fe,q({})}return[_e.current,J]}var Qi=function(pe){var _e=pe.position,ue=pe.prefixCls,V=pe.extra;if(!V)return null;var q,J=V;return _e==="right"&&(q=J.right||!J.left&&J||null),_e==="left"&&(q=J.left||null),q?C.createElement("div",{className:"".concat(ue,"-extra-content")},q):null};function nr(ne,pe){var _e,ue=C.useContext(Di),V=ue.prefixCls,q=ue.tabs,J=ne.className,ce=ne.style,fe=ne.id,xe=ne.animated,be=ne.activeKey,Ie=ne.rtl,Ue=ne.extra,$e=ne.editable,qe=ne.locale,ht=ne.tabPosition,Mt=ne.tabBarGutter,Wt=ne.children,Ut=ne.onTabClick,Gt=ne.onTabScroll,Ht=Object(C.useRef)(),jt=Object(C.useRef)(),Ft=Object(C.useRef)(),qt=Object(C.useRef)(),zt=Fi(),xn=Object(M.a)(zt,2),on=xn[0],Dt=xn[1],At=ht==="top"||ht==="bottom",Jt=Ji(0,function(ln,Qt){At&&Gt&&Gt({direction:ln>Qt?"left":"right"})}),Zt=Object(M.a)(Jt,2),Et=Zt[0],$t=Zt[1],mn=Ji(0,function(ln,Qt){!At&&Gt&&Gt({direction:ln>Qt?"top":"bottom"})}),en=Object(M.a)(mn,2),cn=en[0],bn=en[1],Fn=Object(C.useState)(0),Qn=Object(M.a)(Fn,2),Cn=Qn[0],Zn=Qn[1],Ei=Object(C.useState)(0),ri=Object(M.a)(Ei,2),ai=ri[0],In=ri[1],zn=Object(C.useState)(0),Wn=Object(M.a)(zn,2),Un=Wn[0],Li=Wn[1],Pi=Object(C.useState)(0),Wi=Object(M.a)(Pi,2),fn=Wi[0],Oi=Wi[1],Hi=Object(C.useState)(null),gn=Object(M.a)(Hi,2),sn=gn[0],Hn=gn[1],Vr=Object(C.useState)(null),xr=Object(M.a)(Vr,2),Zi=xr[0],Yr=xr[1],Xr=Object(C.useState)(0),Tr=Object(M.a)(Xr,2),Jr=Tr[0],Qr=Tr[1],Zr=Object(C.useState)(0),Sr=Object(M.a)(Zr,2),qr=Sr[0],$r=Sr[1],ea=r(new Map),wr=Object(M.a)(ea,2),ta=wr[0],na=wr[1],hr=t(q,ta,Cn),Cr="".concat(V,"-nav-operations-hidden"),ir=0,rr=0;At?Ie?(ir=0,rr=Math.max(0,Cn-sn)):(ir=Math.min(0,sn-Cn),rr=0):(ir=Math.min(0,Zi-ai),rr=0);function fr(ln){return ln<ir?[ir,!1]:ln>rr?[rr,!1]:[ln,!0]}var Ar=Object(C.useRef)(),ia=Object(C.useState)(),Or=Object(M.a)(ia,2),pr=Or[0],Rr=Or[1];function mr(){Rr(Date.now())}function gr(){window.clearTimeout(Ar.current)}Xi(Ht,function(ln,Qt){var Bn=!1;function si(sr,or){sr(function(lr){var ur=fr(lr+or),qi=Object(M.a)(ur,2),_r=qi[0],Er=qi[1];return Bn=Er,_r})}if(At){if(sn>=Cn)return Bn;si($t,ln)}else{if(Zi>=ai)return Bn;si(bn,Qt)}return gr(),mr(),Bn}),Object(C.useEffect)(function(){return gr(),pr&&(Ar.current=window.setTimeout(function(){Rr(0)},100)),gr},[pr]);function Ir(){var ln=arguments.length>0&&arguments[0]!==void 0?arguments[0]:be,Qt=hr.get(ln);if(!Qt)return;if(At){var Bn=Et;Ie?Qt.right<Et?Bn=Qt.right:Qt.right+Qt.width>Et+sn&&(Bn=Qt.right+Qt.width-sn):Qt.left<-Et?Bn=-Qt.left:Qt.left+Qt.width>-Et+sn&&(Bn=-(Qt.left+Qt.width-sn)),bn(0),$t(fr(Bn)[0])}else{var si=cn;Qt.top<-cn?si=-Qt.top:Qt.top+Qt.height>-cn+Zi&&(si=-(Qt.top+Qt.height-Zi)),$t(0),bn(fr(si)[0])}}var ra=g(hr,{width:sn,height:Zi,left:Et,top:cn},{width:Un,height:fn},{width:Jr,height:qr},Object(j.a)(Object(j.a)({},ne),{},{tabs:q})),Dr=Object(M.a)(ra,2),aa=Dr[0],sa=Dr[1],oa=q.map(function(ln){var Qt=ln.key;return C.createElement(i,{id:fe,prefixCls:V,key:Qt,rtl:Ie,tab:ln,closable:ln.closable,editable:$e,active:Qt===be,tabPosition:ht,tabBarGutter:Mt,renderWrapper:Wt,removeAriaLabel:qe==null?void 0:qe.removeAriaLabel,ref:on(Qt),onClick:function(si){Ut(Qt,si)},onRemove:function(){Dt(Qt)},onFocus:function(){Ir(Qt),mr(),Ie||(Ht.current.scrollLeft=0),Ht.current.scrollTop=0}})}),vr=a(function(){var ln,Qt,Bn,si,sr,or,lr,ur,qi,_r=((ln=Ht.current)===null||ln===void 0?void 0:ln.offsetWidth)||0,Er=((Qt=Ht.current)===null||Qt===void 0?void 0:Qt.offsetHeight)||0,jr=((Bn=qt.current)===null||Bn===void 0?void 0:Bn.offsetWidth)||0,Fr=((si=qt.current)===null||si===void 0?void 0:si.offsetHeight)||0,fa=((sr=Ft.current)===null||sr===void 0?void 0:sr.offsetWidth)||0,pa=((or=Ft.current)===null||or===void 0?void 0:or.offsetHeight)||0;Hn(_r),Yr(Er),Qr(jr),$r(Fr);var Wr=(((lr=jt.current)===null||lr===void 0?void 0:lr.offsetWidth)||0)-jr,Hr=(((ur=jt.current)===null||ur===void 0?void 0:ur.offsetHeight)||0)-Fr;Zn(Wr),In(Hr);var Kr=(qi=Ft.current)===null||qi===void 0?void 0:qi.className.includes(Cr);Li(Wr-(Kr?0:fa)),Oi(Hr-(Kr?0:pa)),na(function(){var Gr=new Map;return q.forEach(function(ma){var zr=ma.key,cr=on(zr).current;cr&&Gr.set(zr,{width:cr.offsetWidth,height:cr.offsetHeight,left:cr.offsetLeft,top:cr.offsetTop})}),Gr})}),la=q.slice(0,aa),ua=q.slice(sa+1),Lr=[].concat(Object(O.a)(la),Object(O.a)(ua)),ca=Object(C.useState)(),Pr=Object(M.a)(ca,2),da=Pr[0],ha=Pr[1],Mi=hr.get(be),Mr=Object(C.useRef)();function Nr(){p.a.cancel(Mr.current)}Object(C.useEffect)(function(){var ln={};return Mi&&(At?(Ie?ln.right=Mi.right:ln.left=Mi.left,ln.width=Mi.width):(ln.top=Mi.top,ln.height=Mi.height)),Nr(),Mr.current=p()(function(){ha(ln)}),Nr},[Mi,At,Ie]),Object(C.useEffect)(function(){Ir()},[be,Mi,hr,At]),Object(C.useEffect)(function(){vr()},[Ie,Mt,be,q.map(function(ln){return ln.key}).join("_")]);var kr=!!Lr.length,ar="".concat(V,"-nav-wrap"),yr,br,Ur,Br;return At?Ie?(br=Et>0,yr=Et+sn<Cn):(yr=Et<0,br=-Et+sn<Cn):(Ur=cn<0,Br=-cn+Zi<ai),C.createElement("div",{ref:pe,role:"tablist",className:H()("".concat(V,"-nav"),J),style:ce,onKeyDown:function(){mr()}},C.createElement(Qi,{position:"left",extra:Ue,prefixCls:V}),C.createElement(c.a,{onResize:vr},C.createElement("div",{className:H()(ar,(_e={},Object(Q.a)(_e,"".concat(ar,"-ping-left"),yr),Object(Q.a)(_e,"".concat(ar,"-ping-right"),br),Object(Q.a)(_e,"".concat(ar,"-ping-top"),Ur),Object(Q.a)(_e,"".concat(ar,"-ping-bottom"),Br),_e)),ref:Ht},C.createElement(c.a,{onResize:vr},C.createElement("div",{ref:jt,className:"".concat(V,"-nav-list"),style:{transform:"translate(".concat(Et,"px, ").concat(cn,"px)"),transition:pr?"none":void 0}},oa,C.createElement(Ai,{ref:qt,prefixCls:V,locale:qe,editable:$e,style:{visibility:kr?"hidden":null}}),C.createElement("div",{className:H()("".concat(V,"-ink-bar"),Object(Q.a)({},"".concat(V,"-ink-bar-animated"),xe.inkBar)),style:da}))))),C.createElement(tr,Object.assign({},ne,{ref:Ft,prefixCls:V,tabs:Lr,className:!kr&&Cr})),C.createElement(Qi,{position:"right",extra:Ue,prefixCls:V}))}var dr=C.forwardRef(nr);function je(ne){var pe=ne.id,_e=ne.activeKey,ue=ne.animated,V=ne.tabPosition,q=ne.rtl,J=ne.destroyInactiveTabPane,ce=C.useContext(Di),fe=ce.prefixCls,xe=ce.tabs,be=ue.tabPane,Ie=xe.findIndex(function(Ue){return Ue.key===_e});return C.createElement("div",{className:H()("".concat(fe,"-content-holder"))},C.createElement("div",{className:H()("".concat(fe,"-content"),"".concat(fe,"-content-").concat(V),Object(Q.a)({},"".concat(fe,"-content-animated"),be)),style:Ie&&be?Object(Q.a)({},q?"marginRight":"marginLeft","-".concat(Ie,"00%")):null},xe.map(function(Ue){return C.cloneElement(Ue.node,{key:Ue.key,prefixCls:fe,tabKey:Ue.key,id:pe,animated:be,active:Ue.key===_e,destroyInactiveTabPane:J})})))}function We(ne){var pe=ne.prefixCls,_e=ne.forceRender,ue=ne.className,V=ne.style,q=ne.id,J=ne.active,ce=ne.animated,fe=ne.destroyInactiveTabPane,xe=ne.tabKey,be=ne.children,Ie=C.useState(_e),Ue=Object(M.a)(Ie,2),$e=Ue[0],qe=Ue[1];C.useEffect(function(){J?qe(!0):fe&&qe(!1)},[J,fe]);var ht={};return J||(ce?(ht.visibility="hidden",ht.height=0,ht.overflowY="hidden"):ht.display="none"),C.createElement("div",{id:q&&"".concat(q,"-panel-").concat(xe),role:"tabpanel",tabIndex:J?0:-1,"aria-labelledby":q&&"".concat(q,"-tab-").concat(xe),"aria-hidden":!J,style:Object(j.a)(Object(j.a)({},ht),V),className:H()("".concat(pe,"-tabpane"),J&&"".concat(pe,"-tabpane-active"),ue)},(J||$e||_e)&&be)}var Ye=0;function ft(ne){return Object(k.a)(ne).map(function(pe){if(C.isValidElement(pe)){var _e=pe.key!==void 0?String(pe.key):void 0;return Object(j.a)(Object(j.a)({key:_e},pe.props),{},{node:pe})}return null}).filter(function(pe){return pe})}function It(ne,pe){var _e,ue=ne.id,V=ne.prefixCls,q=V===void 0?"rc-tabs":V,J=ne.className,ce=ne.children,fe=ne.direction,xe=ne.activeKey,be=ne.defaultActiveKey,Ie=ne.editable,Ue=ne.animated,$e=ne.tabPosition,qe=$e===void 0?"top":$e,ht=ne.tabBarGutter,Mt=ne.tabBarStyle,Wt=ne.tabBarExtraContent,Ut=ne.locale,Gt=ne.moreIcon,Ht=ne.moreTransitionName,jt=ne.destroyInactiveTabPane,Ft=ne.renderTabBar,qt=ne.onChange,zt=ne.onTabClick,xn=ne.onTabScroll,on=Object(I.a)(ne,["id","prefixCls","className","children","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll"]),Dt=ft(ce),At=fe==="rtl",Jt;Ue===!1?Jt={inkBar:!1,tabPane:!1}:Jt=Object(j.a)({inkBar:!0,tabPane:!1},Ue!==!0?Ue:null);var Zt=Object(C.useState)(!1),Et=Object(M.a)(Zt,2),$t=Et[0],mn=Et[1];Object(C.useEffect)(function(){mn(jn())},[]);var en=Object(e.a)(function(){var fn;return(fn=Dt[0])===null||fn===void 0?void 0:fn.key},{value:xe,defaultValue:be}),cn=Object(M.a)(en,2),bn=cn[0],Fn=cn[1],Qn=Object(C.useState)(function(){return Dt.findIndex(function(fn){return fn.key===bn})}),Cn=Object(M.a)(Qn,2),Zn=Cn[0],Ei=Cn[1];Object(C.useEffect)(function(){var fn=Dt.findIndex(function(Hi){return Hi.key===bn});if(fn===-1){var Oi;fn=Math.max(0,Math.min(Zn,Dt.length-1)),Fn((Oi=Dt[fn])===null||Oi===void 0?void 0:Oi.key)}Ei(fn)},[Dt.map(function(fn){return fn.key}).join("_"),bn,Zn]);var ri=Object(e.a)(null,{value:ue}),ai=Object(M.a)(ri,2),In=ai[0],zn=ai[1],Wn=qe;$t&&!["left","right"].includes(qe)&&(Wn="top"),Object(C.useEffect)(function(){ue||(zn("rc-tabs-".concat(Ye)),Ye+=1)},[]);function Un(fn,Oi){zt==null||zt(fn,Oi),Fn(fn),qt==null||qt(fn)}var Li={id:In,activeKey:bn,animated:Jt,tabPosition:Wn,rtl:At,mobile:$t},Pi,Wi=Object(j.a)(Object(j.a)({},Li),{},{editable:Ie,locale:Ut,moreIcon:Gt,moreTransitionName:Ht,tabBarGutter:ht,onTabClick:Un,onTabScroll:xn,extra:Wt,style:Mt,panes:ce});return Ft?Pi=Ft(Wi,dr):Pi=C.createElement(dr,Object.assign({},Wi)),C.createElement(Di.Provider,{value:{tabs:Dt,prefixCls:q}},C.createElement("div",Object.assign({ref:pe,id:ue,className:H()(q,"".concat(q,"-").concat(Wn),(_e={},Object(Q.a)(_e,"".concat(q,"-mobile"),$t),Object(Q.a)(_e,"".concat(q,"-editable"),Ie),Object(Q.a)(_e,"".concat(q,"-rtl"),At),_e),J)},on),Pi,C.createElement(je,Object.assign({destroyInactiveTabPane:jt},Li,{animated:Jt}))))}var Tt=C.forwardRef(It);Tt.TabPane=We;var un=Tt,En=ie.b=un},n6Qo:function(Be,ie,N){"use strict";N.d(ie,"a",function(){return k});var Q=N("q1tI"),M=N("biw7"),I=N("fyJ8");function j(e){var O=e.className,y=e.index,p=e.children,c=e.colSpan,a=e.rowSpan,r=Q.useContext(M.a),s=r.prefixCls,o=r.fixedInfoList,i=o[y];return Q.createElement(I.a,Object.assign({className:O,index:y,component:"td",prefixCls:s,record:null,dataIndex:null,render:function(){return{children:p,props:{colSpan:c,rowSpan:a}}}},i))}function C(e){return Q.createElement("tr",Object.assign({},e))}function R(e){var O=e.children,y=Q.useContext(M.a),p=y.prefixCls;return Q.createElement("tfoot",{className:"".concat(p,"-summary")},O)}var H=ie.b=R,k={Cell:j,Row:C}},nEHx:function(Be,ie,N){"use strict";N.d(ie,"a",function(){return Q});var Q;(function(M){M.DARK="dark",M.LIGHT="light",M.HIGH_CONTRAST="hc"})(Q||(Q={}))},nnTU:function(Be,ie,N){"use strict";N.d(ie,"b",function(){return H}),N.d(ie,"a",function(){return k});var Q=N("MI8n"),M=N("JYp7"),I=N("pmY6"),j=N("24hK"),C=N("746U"),R=N("Cg/j");const H=Object(R.c)("commandService"),k=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Q.b,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(e,O){if(!e)throw new Error("invalid command");if(typeof e=="string"){if(!O)throw new Error("invalid command");return this.registerCommand({id:e,handler:O})}if(e.description){const r=[];for(let o of e.description.args)r.push(o.constraint);const s=e.handler;e.handler=function(o,...i){return Object(C.o)(i,r),s(o,...i)}}const{id:y}=e;let p=this._commands.get(y);p||(p=new j.a,this._commands.set(y,p));let c=p.unshift(e),a=Object(I.i)(()=>{c();const r=this._commands.get(y);(r==null?void 0:r.isEmpty())&&this._commands.delete(y)});return this._onDidRegisterCommand.fire(y),a}registerCommandAlias(e,O){return k.registerCommand(e,(y,...p)=>y.get(H).executeCommand(O,...p))}getCommand(e){const O=this._commands.get(e);return!O||O.isEmpty()?void 0:M.a.first(O)}getCommands(){const e=new Map;for(const O of this._commands.keys()){const y=this.getCommand(O);y&&e.set(O,y)}return e}};k.registerCommand("noop",()=>{})},p5ED:function(Be,ie,N){"use strict";var Q=N("+L6B"),M=N("2/Rp"),I=N("5Dmo"),j=N("3S7+"),C=N("k1fw"),R=N("tJVT"),H=N("q1tI"),k=N.n(H),e=N("vHTk"),O=N.n(e),y=N("yEEn"),p=N("ZW9T"),c=N("1vsH");ie.a=function(a){var r=a.name,s=a.data,o=a.theme,i=a.type,n=a.filename,t=a.monacoEditor,b=a.className,g=a.style,m=a.close,x=a.onClose,_=a.hasMask,d=Object(H.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),u=Object(R.a)(d,2),l=u[0],h=u[1],v=Object(H.useState)(""),f=Object(R.a)(v,2),T=f[0],P=f[1],L,S=1024*1024,A=10*S,W=Object(H.useRef)();i==="office"&&(L=Object(c.T)(s).filesize,L>A&&(i="other")),n&&(t.filename=n),Object(H.useEffect)(function(){var Y,oe,le=(Y=document.cookie)===null||Y===void 0||((oe=Y.replace(/\s/g,""))===null||oe===void 0)?void 0:oe.split(";");le==null||le.map(function(Se){var Ee=Se.split("=");Ee[0]==="_educoder_session"&&P(Ee[1])})},[]);var D=function(){if(s.startsWith("http")||s.startsWith("/")){K();return}Object(c.z)(n||"educoder",s,n)},K=function(){Object(c.x)(n||r,s)};return console.log("data:",s,"fileanme:",n," name:",r),k.a.createElement("div",{style:Object(C.a)({},g||{}),className:"".concat(_&&O.a.bgBlack," ").concat(i?O.a.wrp:"hide")},m&&k.a.createElement("div",{className:O.a.close,ref:W},k.a.createElement(j.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return W.current}},k.a.createElement("span",{onClick:K},k.a.createElement("i",{className:"icon-quxiaozhiding"}))),k.a.createElement(j.a,{title:"\u5173\u95ED",getPopupContainer:function(){return W.current}},k.a.createElement("span",{className:"",onClick:x},k.a.createElement("i",{className:"icon-guanbi1"})))),k.a.createElement("div",{className:"".concat(O.a[b]," ").concat(b," ").concat(O.a.monaco," ").concat(i==="txt"?"show":"hide")},i==="txt"&&k.a.createElement(p.b,t)),i==="audio"&&k.a.createElement("audio",{src:"".concat(s!=null&&s.startsWith("/")||(s==null?void 0:s.indexOf("https://"))>-1?s:"data:audio/mp3;base64,").concat(s),autoPlay:!0}),i==="video"&&k.a.createElement(k.a.Fragment,null,s!=null&&s.startsWith("/")?k.a.createElement("video",{controls:!0,src:"".concat(s),autoPlay:!0}):k.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(s),autoPlay:!0})),i==="html"&&k.a.createElement("iframe",{src:s+"&disposition=inline"}),i==="pdf"&&k.a.createElement("embed",{className:O.a.embed,src:s}),i==="image"&&k.a.createElement(k.a.Fragment,null,k.a.createElement("img",{src:"".concat(s!=null&&s.startsWith("/")||(s==null?void 0:s.indexOf("https://"))>-1?"":"data:image/png;base64,").concat(s)})),i==="other"&&k.a.createElement("div",null,k.a.createElement(M.a,{type:"primary",size:"large",onClick:D},k.a.createElement(y.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),(i==="download"||i==="office")&&k.a.createElement(M.a,{type:"primary",size:"large",onClick:D},k.a.createElement(y.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},pIsd:function(Be,ie,N){var Q=N("BJfS"),M=function(C){var R=/[height|width]$/;return R.test(C)},I=function(C){var R="",H=Object.keys(C);return H.forEach(function(k,e){var O=C[k];k=Q(k),M(k)&&typeof O=="number"&&(O=O+"px"),O===!0?R+=k:O===!1?R+="not "+k:R+="("+k+": "+O+")",e<H.length-1&&(R+=" and ")}),R},j=function(C){var R="";return typeof C=="string"?C:C instanceof Array?(C.forEach(function(H,k){R+=I(H),k<C.length-1&&(R+=", ")}),R):I(C)};Be.exports=j},pmY6:function(Be,ie,N){"use strict";N.d(ie,"h",function(){return O}),N.d(ie,"g",function(){return p}),N.d(ie,"f",function(){return c}),N.d(ie,"e",function(){return a}),N.d(ie,"i",function(){return r}),N.d(ie,"b",function(){return s}),N.d(ie,"a",function(){return o}),N.d(ie,"d",function(){return i}),N.d(ie,"c",function(){return n});var Q=N("C/vA"),M=N("JYp7");const I=!1;let j=null;function C(t){j=t}if(I){const t="__is_disposable_tracked__";C(new class{trackDisposable(b){const g=new Error("Potentially leaked disposable").stack;setTimeout(()=>{b[t]||console.log(g)},3e3)}setParent(b,g){if(b&&b!==o.None)try{b[t]=!0}catch(m){}}markAsDisposed(b){if(b&&b!==o.None)try{b[t]=!0}catch(g){}}markAsSingleton(b){}})}function R(t){return j==null||j.trackDisposable(t),t}function H(t){j==null||j.markAsDisposed(t)}function k(t,b){j==null||j.setParent(t,b)}function e(t,b){if(!j)return;for(const g of t)j.setParent(g,b)}function O(t){return j==null||j.markAsSingleton(t),t}class y extends Error{constructor(t){super(`Encountered errors while disposing of store. Errors: [${t.join(", ")}]`);this.errors=t}}function p(t){return typeof t.dispose=="function"&&t.dispose.length===0}function c(t){if(M.a.is(t)){let b=[];for(const g of t)if(g)try{g.dispose()}catch(m){b.push(m)}if(b.length===1)throw b[0];if(b.length>1)throw new y(b);return Array.isArray(t)?[]:t}else if(t)return t.dispose(),t}function a(...t){const b=r(()=>c(t));return e(t,b),b}function r(t){const b=R({dispose:Object(Q.a)(()=>{H(b),t()})});return b}class s{constructor(){this._toDispose=new Set,this._isDisposed=!1,R(this)}dispose(){if(this._isDisposed)return;H(this),this._isDisposed=!0,this.clear()}clear(){try{c(this._toDispose.values())}finally{this._toDispose.clear()}}add(t){if(!t)return t;if(t===this)throw new Error("Cannot register a disposable on itself!");return k(t,this),this._isDisposed?s.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(t),t}}s.DISABLE_DISPOSED_WARNING=!1;class o{constructor(){this._store=new s,R(this),k(this._store,this)}dispose(){H(this),this._store.dispose()}_register(t){if(t===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(t)}}o.None=Object.freeze({dispose(){}});class i{constructor(){this._isDisposed=!1,R(this)}get value(){return this._isDisposed?void 0:this._value}set value(t){var b;if(this._isDisposed||t===this._value)return;(b=this._value)===null||b===void 0||b.dispose(),t&&k(t,this),this._value=t}clear(){this.value=void 0}dispose(){var t;this._isDisposed=!0,H(this),(t=this._value)===null||t===void 0||t.dispose(),this._value=void 0}clearAndLeak(){const t=this._value;return this._value=void 0,t&&k(t,null),t}}class n{constructor(t){this.object=t}dispose(){}}},psGv:function(Be,ie,N){var Q,M;(function(){var I;(function(){"use strict";var H=[,,function(y){function p(r){this.__parent=r,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=[]}p.prototype.clone_empty=function(){var r=new p(this.__parent);return r.set_indent(this.__indent_count,this.__alignment_count),r},p.prototype.item=function(r){return r<0?this.__items[this.__items.length+r]:this.__items[r]},p.prototype.has_match=function(r){for(var s=this.__items.length-1;s>=0;s--)if(this.__items[s].match(r))return!0;return!1},p.prototype.set_indent=function(r,s){this.is_empty()&&(this.__indent_count=r||0,this.__alignment_count=s||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},p.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)},p.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},p.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var r=this.__parent.current_line;return r.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),r.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),r.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,r.__items[0]===" "&&(r.__items.splice(0,1),r.__character_count-=1),!0}return!1},p.prototype.is_empty=function(){return this.__items.length===0},p.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},p.prototype.push=function(r){this.__items.push(r);var s=r.lastIndexOf(`
|
|
`);s!==-1?this.__character_count=r.length-s:this.__character_count+=r.length},p.prototype.pop=function(){var r=null;return this.is_empty()||(r=this.__items.pop(),this.__character_count-=r.length),r},p.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},p.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},p.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},p.prototype.toString=function(){var r="";return this.is_empty()?this.__parent.indent_empty_lines&&(r=this.__parent.get_indent_string(this.__indent_count)):(r=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),r+=this.__items.join("")),r};function c(r,s){this.__cache=[""],this.__indent_size=r.indent_size,this.__indent_string=r.indent_char,r.indent_with_tabs||(this.__indent_string=new Array(r.indent_size+1).join(r.indent_char)),s=s||"",r.indent_level>0&&(s=new Array(r.indent_level+1).join(this.__indent_string)),this.__base_string=s,this.__base_string_length=s.length}c.prototype.get_indent_size=function(r,s){var o=this.__base_string_length;return s=s||0,r<0&&(o=0),o+=r*this.__indent_size,o+=s,o},c.prototype.get_indent_string=function(r,s){var o=this.__base_string;return s=s||0,r<0&&(r=0,o=""),s+=r*this.__indent_size,this.__ensure_cache(s),o+=this.__cache[s],o},c.prototype.__ensure_cache=function(r){for(;r>=this.__cache.length;)this.__add_column()},c.prototype.__add_column=function(){var r=this.__cache.length,s=0,o="";this.__indent_size&&r>=this.__indent_size&&(s=Math.floor(r/this.__indent_size),r-=s*this.__indent_size,o=new Array(s+1).join(this.__indent_string)),r&&(o+=new Array(r+1).join(" ")),this.__cache.push(o)};function a(r,s){this.__indent_cache=new c(r,s),this.raw=!1,this._end_with_newline=r.end_with_newline,this.indent_size=r.indent_size,this.wrap_line_length=r.wrap_line_length,this.indent_empty_lines=r.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new p(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}a.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},a.prototype.get_line_number=function(){return this.__lines.length},a.prototype.get_indent_string=function(r,s){return this.__indent_cache.get_indent_string(r,s)},a.prototype.get_indent_size=function(r,s){return this.__indent_cache.get_indent_size(r,s)},a.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},a.prototype.add_new_line=function(r){return this.is_empty()||!r&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},a.prototype.get_code=function(r){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 o=this.__lines.join(`
|
|
`);return r!==`
|
|
`&&(o=o.replace(/[\n]/g,r)),o},a.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},a.prototype.set_indent=function(r,s){return r=r||0,s=s||0,this.next_line.set_indent(r,s),this.__lines.length>1?(this.current_line.set_indent(r,s),!0):(this.current_line.set_indent(),!1)},a.prototype.add_raw_token=function(r){for(var s=0;s<r.newlines;s++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(r.whitespace_before),this.current_line.push(r.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},a.prototype.add_token=function(r){this.__add_space_before_token(),this.current_line.push(r),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},a.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(" "))},a.prototype.remove_indent=function(r){for(var s=this.__lines.length;r<s;)this.__lines[r]._remove_indent(),r++;this.current_line._remove_wrap_indent()},a.prototype.trim=function(r){for(r=r===void 0?!1:r,this.current_line.trim();r&&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},a.prototype.just_added_newline=function(){return this.current_line.is_empty()},a.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},a.prototype.ensure_empty_line_above=function(r,s){for(var o=this.__lines.length-2;o>=0;){var i=this.__lines[o];if(i.is_empty())break;if(i.item(0).indexOf(r)!==0&&i.item(-1)!==s){this.__lines.splice(o+1,0,new p(this)),this.previous_line=this.__lines[this.__lines.length-2];break}o--}},y.exports.Output=a},function(y){function p(c,a,r,s){this.type=c,this.text=a,this.comments_before=null,this.newlines=r||0,this.whitespace_before=s||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}y.exports.Token=p},,,function(y){function p(r,s){this.raw_options=c(r,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"])}p.prototype._get_array=function(r,s){var o=this.raw_options[r],i=s||[];return typeof o=="object"?o!==null&&typeof o.concat=="function"&&(i=o.concat()):typeof o=="string"&&(i=o.split(/[^a-zA-Z0-9_\/\-]+/)),i},p.prototype._get_boolean=function(r,s){var o=this.raw_options[r],i=o===void 0?!!s:!!o;return i},p.prototype._get_characters=function(r,s){var o=this.raw_options[r],i=s||"";return typeof o=="string"&&(i=o.replace(/\\r/,"\r").replace(/\\n/,`
|
|
`).replace(/\\t/," ")),i},p.prototype._get_number=function(r,s){var o=this.raw_options[r];s=parseInt(s,10),isNaN(s)&&(s=0);var i=parseInt(o,10);return isNaN(i)&&(i=s),i},p.prototype._get_selection=function(r,s,o){var i=this._get_selection_list(r,s,o);if(i.length!==1)throw new Error("Invalid Option Value: The option '"+r+`' can only be one of the following values:
|
|
`+s+`
|
|
You passed in: '`+this.raw_options[r]+"'");return i[0]},p.prototype._get_selection_list=function(r,s,o){if(!s||s.length===0)throw new Error("Selection list cannot be empty.");if(o=o||[s[0]],!this._is_valid_selection(o,s))throw new Error("Invalid Default Value!");var i=this._get_array(r,o);if(!this._is_valid_selection(i,s))throw new Error("Invalid Option Value: The option '"+r+`' can contain only the following values:
|
|
`+s+`
|
|
You passed in: '`+this.raw_options[r]+"'");return i},p.prototype._is_valid_selection=function(r,s){return r.length&&s.length&&!r.some(function(o){return s.indexOf(o)===-1})};function c(r,s){var o={};r=a(r);var i;for(i in r)i!==s&&(o[i]=r[i]);if(s&&r[s])for(i in r[s])o[i]=r[s][i];return o}function a(r){var s={},o;for(o in r){var i=o.replace(/-/g,"_");s[i]=r[o]}return s}y.exports.Options=p,y.exports.normalizeOpts=a,y.exports.mergeOpts=c},,function(y){var p=RegExp.prototype.hasOwnProperty("sticky");function c(a){this.__input=a||"",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 a=null;return this.hasNext()&&(a=this.__input.charAt(this.__position),this.__position+=1),a},c.prototype.peek=function(a){var r=null;return a=a||0,a+=this.__position,a>=0&&a<this.__input_length&&(r=this.__input.charAt(a)),r},c.prototype.__match=function(a,r){a.lastIndex=r;var s=a.exec(this.__input);return s&&!(p&&a.sticky)&&(s.index!==r&&(s=null)),s},c.prototype.test=function(a,r){return r=r||0,r+=this.__position,r>=0&&r<this.__input_length?!!this.__match(a,r):!1},c.prototype.testChar=function(a,r){var s=this.peek(r);return a.lastIndex=0,s!==null&&a.test(s)},c.prototype.match=function(a){var r=this.__match(a,this.__position);return r?this.__position+=r[0].length:r=null,r},c.prototype.read=function(a,r,s){var o="",i;return a&&(i=this.match(a),i&&(o+=i[0])),r&&(i||!a)&&(o+=this.readUntil(r,s)),o},c.prototype.readUntil=function(a,r){var s="",o=this.__position;a.lastIndex=this.__position;var i=a.exec(this.__input);return i?(o=i.index,r&&(o+=i[0].length)):o=this.__input_length,s=this.__input.substring(this.__position,o),this.__position=o,s},c.prototype.readUntilAfter=function(a){return this.readUntil(a,!0)},c.prototype.get_regexp=function(a,r){var s=null,o="g";return r&&p&&(o="y"),typeof a=="string"&&a!==""?s=new RegExp(a,o):a&&(s=new RegExp(a.source,o)),s},c.prototype.get_literal_regexp=function(a){return RegExp(a.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},c.prototype.peekUntilAfter=function(a){var r=this.__position,s=this.readUntilAfter(a);return this.__position=r,s},c.prototype.lookBack=function(a){var r=this.__position-1;return r>=a.length&&this.__input.substring(r-a.length,r).toLowerCase()===a},y.exports.InputScanner=c},function(y,p,c){var a=c(8).InputScanner,r=c(3).Token,s=c(10).TokenStream,o=c(11).WhitespacePattern,i={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},n=function(t,b){this._input=new a(t),this._options=b||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new o(this._input)};n.prototype.tokenize=function(){this._input.restart(),this.__tokens=new s,this._reset();for(var t,b=new r(i.START,""),g=null,m=[],x=new s;b.type!==i.EOF;){for(t=this._get_next_token(b,g);this._is_comment(t);)x.add(t),t=this._get_next_token(b,g);x.isEmpty()||(t.comments_before=x,x=new s),t.parent=g,this._is_opening(t)?(m.push(g),g=t):g&&this._is_closing(t,g)&&(t.opened=g,g.closed=t,g=m.pop(),t.parent=g),t.previous=b,b.next=t,this.__tokens.add(t),b=t}return this.__tokens},n.prototype._is_first_token=function(){return this.__tokens.isEmpty()},n.prototype._reset=function(){},n.prototype._get_next_token=function(t,b){this._readWhitespace();var g=this._input.read(/.+/g);return g?this._create_token(i.RAW,g):this._create_token(i.EOF,"")},n.prototype._is_comment=function(t){return!1},n.prototype._is_opening=function(t){return!1},n.prototype._is_closing=function(t,b){return!1},n.prototype._create_token=function(t,b){var g=new r(t,b,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return g},n.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},y.exports.Tokenizer=n,y.exports.TOKEN=i},function(y){function p(c){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=c}p.prototype.restart=function(){this.__position=0},p.prototype.isEmpty=function(){return this.__tokens_length===0},p.prototype.hasNext=function(){return this.__position<this.__tokens_length},p.prototype.next=function(){var c=null;return this.hasNext()&&(c=this.__tokens[this.__position],this.__position+=1),c},p.prototype.peek=function(c){var a=null;return c=c||0,c+=this.__position,c>=0&&c<this.__tokens_length&&(a=this.__tokens[c]),a},p.prototype.add=function(c){this.__parent_token&&(c.parent=this.__parent_token),this.__tokens.push(c),this.__tokens_length+=1},y.exports.TokenStream=p},function(y,p,c){var a=c(12).Pattern;function r(s,o){a.call(this,s,o),o?this._line_regexp=this._input.get_regexp(o._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}r.prototype=new a,r.prototype.__set_whitespace_patterns=function(s,o){s+="\\t ",o+="\\n\\r",this._match_pattern=this._input.get_regexp("["+s+o+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+o+"]")},r.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 o=this.__split(this._newline_regexp,s);this.newline_count=o.length-1,this.whitespace_before_token=o[this.newline_count]}return s},r.prototype.matching=function(s,o){var i=this._create();return i.__set_whitespace_patterns(s,o),i._update(),i},r.prototype._create=function(){return new r(this._input,this)},r.prototype.__split=function(s,o){s.lastIndex=0;for(var i=0,n=[],t=s.exec(o);t;)n.push(o.substring(i,t.index)),i=t.index+t[0].length,t=s.exec(o);return i<o.length?n.push(o.substring(i,o.length)):n.push(""),n},y.exports.WhitespacePattern=r},function(y){function p(c,a){this._input=c,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,a&&(this._starting_pattern=this._input.get_regexp(a._starting_pattern,!0),this._match_pattern=this._input.get_regexp(a._match_pattern,!0),this._until_pattern=this._input.get_regexp(a._until_pattern),this._until_after=a._until_after)}p.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},p.prototype.read_match=function(){return this._input.match(this._match_pattern)},p.prototype.until_after=function(c){var a=this._create();return a._until_after=!0,a._until_pattern=this._input.get_regexp(c),a._update(),a},p.prototype.until=function(c){var a=this._create();return a._until_after=!1,a._until_pattern=this._input.get_regexp(c),a._update(),a},p.prototype.starting_with=function(c){var a=this._create();return a._starting_pattern=this._input.get_regexp(c,!0),a._update(),a},p.prototype.matching=function(c){var a=this._create();return a._match_pattern=this._input.get_regexp(c,!0),a._update(),a},p.prototype._create=function(){return new p(this._input,this)},p.prototype._update=function(){},y.exports.Pattern=p},function(y){function p(c,a){c=typeof c=="string"?c:c.source,a=typeof a=="string"?a:a.source,this.__directives_block_pattern=new RegExp(c+/ beautify( \w+[:]\w+)+ /.source+a,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(c+/\sbeautify\signore:end\s/.source+a,"g")}p.prototype.get_directives=function(c){if(!c.match(this.__directives_block_pattern))return null;var a={};this.__directive_pattern.lastIndex=0;for(var r=this.__directive_pattern.exec(c);r;)a[r[1]]=r[2],r=this.__directive_pattern.exec(c);return a},p.prototype.readIgnored=function(c){return c.readUntilAfter(this.__directives_end_ignore_pattern)},y.exports.Directives=p},function(y,p,c){var a=c(12).Pattern,r={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1};function s(o,i){a.call(this,o,i),this.__template_pattern=null,this._disabled=Object.assign({},r),this._excluded=Object.assign({},r),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 n=new a(o);this.__patterns={handlebars_comment:n.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:n.starting_with(/{{{/).until_after(/}}}/),handlebars:n.starting_with(/{{/).until_after(/}}/),php:n.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:n.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:n.starting_with(/{%/).until_after(/%}/),django_value:n.starting_with(/{{/).until_after(/}}/),django_comment:n.starting_with(/{#/).until_after(/#}/),smarty:n.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:n.starting_with(/{\*/).until_after(/\*}/),smarty_literal:n.starting_with(/{literal}/).until_after(/{\/literal}/)}}s.prototype=new a,s.prototype._create=function(){return new s(this._input,this)},s.prototype._update=function(){this.__set_templated_pattern()},s.prototype.disable=function(o){var i=this._create();return i._disabled[o]=!0,i._update(),i},s.prototype.read_options=function(o){var i=this._create();for(var n in r)i._disabled[n]=o.templating.indexOf(n)===-1;return i._update(),i},s.prototype.exclude=function(o){var i=this._create();return i._excluded[o]=!0,i._update(),i},s.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 i=this._read_template();i;)this._match_pattern?i+=this._input.read(this._match_pattern):i+=this._input.readUntil(this.__template_pattern),o+=i,i=this._read_template();return this._until_after&&(o+=this._input.readUntilAfter(this._until_pattern)),o},s.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("|")+")")},s.prototype._read_template=function(){var o="",i=this._input.peek();if(i==="<"){var n=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&n==="?"&&(o=o||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&n==="%"&&(o=o||this.__patterns.erb.read())}else i==="{"&&(!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},y.exports.TemplatablePattern=s},,,,function(y,p,c){var a=c(19).Beautifier,r=c(20).Options;function s(o,i,n,t){var b=new a(o,i,n,t);return b.beautify()}y.exports=s,y.exports.defaultOptions=function(){return new r}},function(y,p,c){var a=c(20).Options,r=c(2).Output,s=c(21).Tokenizer,o=c(21).TOKEN,i=/\r\n|[\r\n]/,n=/\r\n|[\r\n]/g,t=function(v,f){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=v.max_preserve_newlines,this.preserve_newlines=v.preserve_newlines,this._output=new r(v,f)};t.prototype.current_line_has_match=function(v){return this._output.current_line.has_match(v)},t.prototype.set_space_before_token=function(v,f){this._output.space_before_token=v,this._output.non_breaking_space=f},t.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},t.prototype.add_raw_token=function(v){this._output.add_raw_token(v)},t.prototype.print_preserved_newlines=function(v){var f=0;v.type!==o.TEXT&&v.previous.type!==o.TEXT&&(f=v.newlines?1:0),this.preserve_newlines&&(f=v.newlines<this.max_preserve_newlines+1?v.newlines:this.max_preserve_newlines+1);for(var T=0;T<f;T++)this.print_newline(T>0);return f!==0},t.prototype.traverse_whitespace=function(v){return v.whitespace_before||v.newlines?(this.print_preserved_newlines(v)||(this._output.space_before_token=!0),!0):!1},t.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},t.prototype.print_newline=function(v){this._output.add_new_line(v)},t.prototype.print_token=function(v){v.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(v.text))},t.prototype.indent=function(){this.indent_level++},t.prototype.get_full_indent=function(v){return v=this.indent_level+(v||0),v<1?"":this._output.get_indent_string(v)};var b=function(v){for(var f=null,T=v.next;T.type!==o.EOF&&v.closed!==T;){if(T.type===o.ATTRIBUTE&&T.text==="type"){T.next&&T.next.type===o.EQUALS&&T.next.next&&T.next.next.type===o.VALUE&&(f=T.next.next.text);break}T=T.next}return f},g=function(v,f){var T=null,P=null;return f.closed?(v==="script"?T="text/javascript":v==="style"&&(T="text/css"),T=b(f)||T,T.search("text/css")>-1?P="css":T.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?P="javascript":T.search(/(text|application|dojo)\/(x-)?(html)/)>-1?P="html":T.search(/test\/null/)>-1&&(P="null"),P):null};function m(v,f){return f.indexOf(v)!==-1}function x(v,f,T){this.parent=v||null,this.tag=f?f.tag_name:"",this.indent_level=T||0,this.parser_token=f||null}function _(v){this._printer=v,this._current_frame=null}_.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},_.prototype.record_tag=function(v){var f=new x(this._current_frame,v,this._printer.indent_level);this._current_frame=f},_.prototype._try_pop_frame=function(v){var f=null;return v&&(f=v.parser_token,this._printer.indent_level=v.indent_level,this._current_frame=v.parent),f},_.prototype._get_frame=function(v,f){for(var T=this._current_frame;T&&!(v.indexOf(T.tag)!==-1);){if(f&&f.indexOf(T.tag)!==-1){T=null;break}T=T.parent}return T},_.prototype.try_pop=function(v,f){var T=this._get_frame([v],f);return this._try_pop_frame(T)},_.prototype.indent_to_tag=function(v){var f=this._get_frame(v);f&&(this._printer.indent_level=f.indent_level)};function d(v,f,T,P){this._source_text=v||"",f=f||{},this._js_beautify=T,this._css_beautify=P,this._tag_stack=null;var L=new a(f,"html");this._options=L,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"}d.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var v=this._source_text,f=this._options.eol;this._options.eol==="auto"&&(f=`
|
|
`,v&&i.test(v)&&(f=v.match(i)[0])),v=v.replace(n,`
|
|
`);var T=v.match(/^[\t ]*/)[0],P={text:"",type:""},L=new u,S=new t(this._options,T),A=new s(v,this._options).tokenize();this._tag_stack=new _(S);for(var W=null,D=A.next();D.type!==o.EOF;)D.type===o.TAG_OPEN||D.type===o.COMMENT?(W=this._handle_tag_open(S,D,L,P),L=W):D.type===o.ATTRIBUTE||D.type===o.EQUALS||D.type===o.VALUE||D.type===o.TEXT&&!L.tag_complete?W=this._handle_inside_tag(S,D,L,A):D.type===o.TAG_CLOSE?W=this._handle_tag_close(S,D,L):D.type===o.TEXT?W=this._handle_text(S,D,L):S.add_raw_token(D),P=W,D=A.next();var K=S._output.get_code(f);return K},d.prototype._handle_tag_close=function(v,f,T){var P={text:f.text,type:f.type};return v.alignment_size=0,T.tag_complete=!0,v.set_space_before_token(f.newlines||f.whitespace_before!=="",!0),T.is_unformatted?v.add_raw_token(f):(T.tag_start_char==="<"&&(v.set_space_before_token(f.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&T.has_wrapped_attrs&&v.print_newline(!1)),v.print_token(f)),T.indent_content&&!(T.is_unformatted||T.is_content_unformatted)&&(v.indent(),T.indent_content=!1),!T.is_inline_element&&!(T.is_unformatted||T.is_content_unformatted)&&v.set_wrap_point(),P},d.prototype._handle_inside_tag=function(v,f,T,P){var L=T.has_wrapped_attrs,S={text:f.text,type:f.type};if(v.set_space_before_token(f.newlines||f.whitespace_before!=="",!0),T.is_unformatted)v.add_raw_token(f);else if(T.tag_start_char==="{"&&f.type===o.TEXT)v.print_preserved_newlines(f)?(f.newlines=0,v.add_raw_token(f)):v.print_token(f);else{if(f.type===o.ATTRIBUTE?(v.set_space_before_token(!0),T.attr_count+=1):(f.type===o.EQUALS||f.type===o.VALUE&&f.previous.type===o.EQUALS)&&v.set_space_before_token(!1),f.type===o.ATTRIBUTE&&T.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(v.traverse_whitespace(f),L=L||f.newlines!==0),this._is_wrap_attributes_force)){var A=T.attr_count>1;if(this._is_wrap_attributes_force_expand_multiline&&T.attr_count===1){var W=!0,D=0,K;do{if(K=P.peek(D),K.type===o.ATTRIBUTE){W=!1;break}D+=1}while(D<4&&K.type!==o.EOF&&K.type!==o.TAG_CLOSE);A=!W}A&&(v.print_newline(!1),L=!0)}v.print_token(f),L=L||v.previous_token_wrapped(),T.has_wrapped_attrs=L}return S},d.prototype._handle_text=function(v,f,T){var P={text:f.text,type:"TK_CONTENT"};return T.custom_beautifier_name?this._print_custom_beatifier_text(v,f,T):T.is_unformatted||T.is_content_unformatted?v.add_raw_token(f):(v.traverse_whitespace(f),v.print_token(f)),P},d.prototype._print_custom_beatifier_text=function(v,f,T){var P=this;if(f.text!==""){var L=f.text,S,A=1,W="",D="";T.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?S=this._js_beautify:T.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?S=this._css_beautify:T.custom_beautifier_name==="html"&&(S=function(Ee,ae){var Ce=new d(Ee,ae,P._js_beautify,P._css_beautify);return Ce.beautify()}),this._options.indent_scripts==="keep"?A=0:this._options.indent_scripts==="separate"&&(A=-v.indent_level);var K=v.get_full_indent(A);if(L=L.replace(/\n[ \t]*$/,""),T.custom_beautifier_name!=="html"&&L[0]==="<"&&L.match(/^(<!--|<!\[CDATA\[)/)){var Y=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(L);if(!Y){v.add_raw_token(f);return}W=K+Y[1]+`
|
|
`,L=Y[4],Y[5]&&(D=K+Y[5]),L=L.replace(/\n[ \t]*$/,""),(Y[2]||Y[3].indexOf(`
|
|
`)!==-1)&&(Y=Y[3].match(/[ \t]+$/),Y&&(f.whitespace_before=Y[0]))}if(L)if(S){var oe=function(){this.eol=`
|
|
`};oe.prototype=this._options.raw_options;var le=new oe;L=S(K+L,le)}else{var Se=f.whitespace_before;Se&&(L=L.replace(new RegExp(`
|
|
(`+Se+")?","g"),`
|
|
`)),L=K+L.replace(/\n/g,`
|
|
`+K)}W&&(L?L=W+L+`
|
|
`+D:L=W+D),v.print_newline(!1),L&&(f.text=L,f.whitespace_before="",f.newlines=0,v.add_raw_token(f),v.print_newline(!0))}},d.prototype._handle_tag_open=function(v,f,T,P){var L=this._get_tag_open_token(f);return(T.is_unformatted||T.is_content_unformatted)&&!T.is_empty_element&&f.type===o.TAG_OPEN&&f.text.indexOf("</")===0?(v.add_raw_token(f),L.start_tag_token=this._tag_stack.try_pop(L.tag_name)):(v.traverse_whitespace(f),this._set_tag_position(v,f,L,T,P),L.is_inline_element||v.set_wrap_point(),v.print_token(f)),(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(L.alignment_size=f.text.length+1),!L.tag_complete&&!L.is_unformatted&&(v.alignment_size=L.alignment_size),L};var u=function(v,f){if(this.parent=v||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="",!f)this.tag_complete=!0;else{var T;this.tag_start_char=f.text[0],this.text=f.text,this.tag_start_char==="<"?(T=f.text.match(/^<([^\s>]*)/),this.tag_check=T?T[1]:""):(T=f.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=T?T[1]:"",(f.text.startsWith("{{#>")||f.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&f.next!==null?this.tag_check=f.next.text.split(" ")[0]:this.tag_check=f.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),f.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||f.closed&&f.closed.text==="/>";var P=2;this.tag_start_char==="{"&&this.text.length>=3&&(this.text.charAt(2)==="~"&&(P=3)),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(P)))}};d.prototype._get_tag_open_token=function(v){var f=new u(this._tag_stack.get_parser_token(),v);return f.alignment_size=this._options.wrap_attributes_indent_size,f.is_end_tag=f.is_end_tag||m(f.tag_check,this._options.void_elements),f.is_empty_element=f.tag_complete||f.is_start_tag&&f.is_end_tag,f.is_unformatted=!f.tag_complete&&m(f.tag_check,this._options.unformatted),f.is_content_unformatted=!f.is_empty_element&&m(f.tag_check,this._options.content_unformatted),f.is_inline_element=m(f.tag_name,this._options.inline)||f.tag_name.includes("-")||f.tag_start_char==="{",f},d.prototype._set_tag_position=function(v,f,T,P,L){if(T.is_empty_element||(T.is_end_tag?T.start_tag_token=this._tag_stack.try_pop(T.tag_name):(this._do_optional_end_element(T)&&(T.is_inline_element||v.print_newline(!1)),this._tag_stack.record_tag(T),(T.tag_name==="script"||T.tag_name==="style")&&!(T.is_unformatted||T.is_content_unformatted)&&(T.custom_beautifier_name=g(T.tag_check,f)))),m(T.tag_check,this._options.extra_liners)&&(v.print_newline(!1),v._output.just_added_blankline()||v.print_newline(!0)),T.is_empty_element){if(T.tag_start_char==="{"&&T.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),T.indent_content=!0;var S=v.current_line_has_match(/{{#if/);S||v.print_newline(!1)}T.tag_name==="!--"&&L.type===o.TAG_CLOSE&&P.is_end_tag&&T.text.indexOf(`
|
|
`)===-1||(T.is_inline_element||T.is_unformatted||v.print_newline(!1),this._calcluate_parent_multiline(v,T))}else if(T.is_end_tag){var A=!1;A=T.start_tag_token&&T.start_tag_token.multiline_content,A=A||!T.is_inline_element&&!(P.is_inline_element||P.is_unformatted)&&!(L.type===o.TAG_CLOSE&&T.start_tag_token===P)&&L.type!=="TK_CONTENT",(T.is_content_unformatted||T.is_unformatted)&&(A=!1),A&&v.print_newline(!1)}else T.indent_content=!T.custom_beautifier_name,T.tag_start_char==="<"&&(T.tag_name==="html"?T.indent_content=this._options.indent_inner_html:T.tag_name==="head"?T.indent_content=this._options.indent_head_inner_html:T.tag_name==="body"&&(T.indent_content=this._options.indent_body_inner_html)),!(T.is_inline_element||T.is_unformatted)&&(L.type!=="TK_CONTENT"||T.is_content_unformatted)&&v.print_newline(!1),this._calcluate_parent_multiline(v,T)},d.prototype._calcluate_parent_multiline=function(v,f){f.parent&&v._output.just_added_newline()&&!((f.is_inline_element||f.is_unformatted)&&f.parent.is_inline_element)&&(f.parent.multiline_content=!0)};var l=["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"],h=["a","audio","del","ins","map","noscript","video"];d.prototype._do_optional_end_element=function(v){var f=null;if(v.is_empty_element||!v.is_start_tag||!v.parent)return;if(v.tag_name==="body")f=f||this._tag_stack.try_pop("head");else if(v.tag_name==="li")f=f||this._tag_stack.try_pop("li",["ol","ul"]);else if(v.tag_name==="dd"||v.tag_name==="dt")f=f||this._tag_stack.try_pop("dt",["dl"]),f=f||this._tag_stack.try_pop("dd",["dl"]);else if(v.parent.tag_name==="p"&&l.indexOf(v.tag_name)!==-1){var T=v.parent.parent;(!T||h.indexOf(T.tag_name)===-1)&&(f=f||this._tag_stack.try_pop("p"))}else v.tag_name==="rp"||v.tag_name==="rt"?(f=f||this._tag_stack.try_pop("rt",["ruby","rtc"]),f=f||this._tag_stack.try_pop("rp",["ruby","rtc"])):v.tag_name==="optgroup"?f=f||this._tag_stack.try_pop("optgroup",["select"]):v.tag_name==="option"?f=f||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):v.tag_name==="colgroup"?f=f||this._tag_stack.try_pop("caption",["table"]):v.tag_name==="thead"?(f=f||this._tag_stack.try_pop("caption",["table"]),f=f||this._tag_stack.try_pop("colgroup",["table"])):v.tag_name==="tbody"||v.tag_name==="tfoot"?(f=f||this._tag_stack.try_pop("caption",["table"]),f=f||this._tag_stack.try_pop("colgroup",["table"]),f=f||this._tag_stack.try_pop("thead",["table"]),f=f||this._tag_stack.try_pop("tbody",["table"])):v.tag_name==="tr"?(f=f||this._tag_stack.try_pop("caption",["table"]),f=f||this._tag_stack.try_pop("colgroup",["table"]),f=f||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(v.tag_name==="th"||v.tag_name==="td")&&(f=f||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),f=f||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return v.parent=this._tag_stack.get_parser_token(),f},y.exports.Beautifier=d},function(y,p,c){var a=c(6).Options;function r(s){a.call(this,s,"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"])}r.prototype=new a,y.exports.Options=r},function(y,p,c){var a=c(9).Tokenizer,r=c(9).TOKEN,s=c(13).Directives,o=c(14).TemplatablePattern,i=c(12).Pattern,n={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:r.START,RAW:r.RAW,EOF:r.EOF},t=new s(/<\!--/,/-->/),b=function(g,m){a.call(this,g,m),this._current_tag_name="";var x=new o(this._input).read_options(this._options),_=new i(this._input);if(this.__patterns={word:x.until(/[\n\r\t <]/),single_quote:x.until_after(/'/),double_quote:x.until_after(/"/),attribute:x.until(/[\n\r\t =>]|\/>/),element_name:x.until(/[\n\r\t >\/]/),handlebars_comment:_.starting_with(/{{!--/).until_after(/--}}/),handlebars:_.starting_with(/{{/).until_after(/}}/),handlebars_open:_.until(/[\n\r\t }]/),handlebars_raw_close:_.until(/}}/),comment:_.starting_with(/<!--/).until_after(/-->/),cdata:_.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:_.starting_with(/<!\[/).until_after(/]>/),processing:_.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 d=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=_.matching(d).until_after(d)}};b.prototype=new a,b.prototype._is_comment=function(g){return!1},b.prototype._is_opening=function(g){return g.type===n.TAG_OPEN},b.prototype._is_closing=function(g,m){return g.type===n.TAG_CLOSE&&m&&((g.text===">"||g.text==="/>")&&m.text[0]==="<"||g.text==="}}"&&m.text[0]==="{"&&m.text[1]==="{")},b.prototype._reset=function(){this._current_tag_name=""},b.prototype._get_next_token=function(g,m){var x=null;this._readWhitespace();var _=this._input.peek();return _===null?this._create_token(n.EOF,""):(x=x||this._read_open_handlebars(_,m),x=x||this._read_attribute(_,g,m),x=x||this._read_close(_,m),x=x||this._read_raw_content(_,g,m),x=x||this._read_content_word(_),x=x||this._read_comment_or_cdata(_),x=x||this._read_processing(_),x=x||this._read_open(_,m),x=x||this._create_token(n.UNKNOWN,this._input.next()),x)},b.prototype._read_comment_or_cdata=function(g){var m=null,x=null,_=null;if(g==="<"){var d=this._input.peek(1);d==="!"&&(x=this.__patterns.comment.read(),x?(_=t.get_directives(x),_&&_.ignore==="start"&&(x+=t.readIgnored(this._input))):x=this.__patterns.cdata.read()),x&&(m=this._create_token(n.COMMENT,x),m.directives=_)}return m},b.prototype._read_processing=function(g){var m=null,x=null,_=null;if(g==="<"){var d=this._input.peek(1);(d==="!"||d==="?")&&(x=this.__patterns.conditional_comment.read(),x=x||this.__patterns.processing.read()),x&&(m=this._create_token(n.COMMENT,x),m.directives=_)}return m},b.prototype._read_open=function(g,m){var x=null,_=null;return m||g==="<"&&(x=this._input.next(),this._input.peek()==="/"&&(x+=this._input.next()),x+=this.__patterns.element_name.read(),_=this._create_token(n.TAG_OPEN,x)),_},b.prototype._read_open_handlebars=function(g,m){var x=null,_=null;return m||this._options.indent_handlebars&&g==="{"&&this._input.peek(1)==="{"&&(this._input.peek(2)==="!"?(x=this.__patterns.handlebars_comment.read(),x=x||this.__patterns.handlebars.read(),_=this._create_token(n.COMMENT,x)):(x=this.__patterns.handlebars_open.read(),_=this._create_token(n.TAG_OPEN,x))),_},b.prototype._read_close=function(g,m){var x=null,_=null;return m&&(m.text[0]==="<"&&(g===">"||g==="/"&&this._input.peek(1)===">")?(x=this._input.next(),g==="/"&&(x+=this._input.next()),_=this._create_token(n.TAG_CLOSE,x)):m.text[0]==="{"&&g==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),_=this._create_token(n.TAG_CLOSE,"}}"))),_},b.prototype._read_attribute=function(g,m,x){var _=null,d="";if(x&&x.text[0]==="<")if(g==="=")_=this._create_token(n.EQUALS,this._input.next());else if(g==='"'||g==="'"){var u=this._input.next();g==='"'?u+=this.__patterns.double_quote.read():u+=this.__patterns.single_quote.read(),_=this._create_token(n.VALUE,u)}else d=this.__patterns.attribute.read(),d&&(m.type===n.EQUALS?_=this._create_token(n.VALUE,d):_=this._create_token(n.ATTRIBUTE,d));return _},b.prototype._is_content_unformatted=function(g){return this._options.void_elements.indexOf(g)===-1&&(this._options.content_unformatted.indexOf(g)!==-1||this._options.unformatted.indexOf(g)!==-1)},b.prototype._read_raw_content=function(g,m,x){var _="";if(x&&x.text[0]==="{")_=this.__patterns.handlebars_raw_close.read();else if(m.type===n.TAG_CLOSE&&m.opened.text[0]==="<"&&m.text[0]!=="/"){var d=m.opened.text.substr(1).toLowerCase();if(d==="script"||d==="style"){var u=this._read_comment_or_cdata(g);if(u)return u.type=n.TEXT,u;_=this._input.readUntil(new RegExp("</"+d+"[\\n\\r\\t ]*?>","ig"))}else this._is_content_unformatted(d)&&(_=this._input.readUntil(new RegExp("</"+d+"[\\n\\r\\t ]*?>","ig")))}return _?this._create_token(n.TEXT,_):null},b.prototype._read_content_word=function(g){var m="";if(this._options.unformatted_content_delimiter&&(g===this._options.unformatted_content_delimiter[0]&&(m=this.__patterns.unformatted_content_delimiter.read())),m||(m=this.__patterns.word.read()),m)return this._create_token(n.TEXT,m)},y.exports.Tokenizer=b,y.exports.TOKEN=n}],k={};function e(y){var p=k[y];if(p!==void 0)return p.exports;var c=k[y]={exports:{}};return H[y](c,c.exports,e),c.exports}var O=e(18);I=O})();var j=I;if(!0)!(Q=[N,N("6UM0"),N("TXwP")],M=function(H){var k=N("6UM0"),e=N("TXwP");return{html_beautify:function(O,y){return j(O,y,k.js_beautify,e.css_beautify)}}}.apply(ie,Q),M!==void 0&&(Be.exports=M));else var C,R})()},pxMS:function(Be,ie,N){Be.exports=N.p+"static/program-banner.03adba1e.png"},"rAM+":function(Be,ie,N){"use strict";N.d(ie,"a",function(){return M});var Q=N("Qw5x");function M(I,j){var C;if(typeof Symbol=="undefined"||I[Symbol.iterator]==null){if(Array.isArray(I)||(C=Object(Q.a)(I))||j&&I&&typeof I.length=="number"){C&&(I=C);var R=0,H=function(){};return{s:H,n:function(){return R>=I.length?{done:!0}:{done:!1,value:I[R++]}},e:function(p){throw p},f:H}}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 k=!0,e=!1,O;return{s:function(){C=I[Symbol.iterator]()},n:function(){var p=C.next();return k=p.done,p},e:function(p){e=!0,O=p},f:function(){try{!k&&C.return!=null&&C.return()}finally{if(e)throw O}}}}},rUJ1:function(Be,ie){const N=/[&<>"']/,Q=/[&<>"']/g,M=/[<>"']|&(?!#?\w+;)/,I=/[<>"']|&(?!#?\w+;)/g,j={"&":"&","<":"<",">":">",'"':""","'":"'"},C=_=>j[_];function R(_,d){if(d){if(N.test(_))return _.replace(Q,C)}else if(M.test(_))return _.replace(I,C);return _}const H=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function k(_){return _.replace(H,(d,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 e=/(^|[^\[])\^/g;function O(_,d){_=_.source||_,d=d||"";const u={replace:(l,h)=>(h=h.source||h,h=h.replace(e,"$1"),_=_.replace(l,h),u),getRegex:()=>new RegExp(_,d)};return u}const y=/[^\w:]/g,p=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function c(_,d,u){if(_){let l;try{l=decodeURIComponent(k(u)).replace(y,"").toLowerCase()}catch(h){return null}if(l.indexOf("javascript:")===0||l.indexOf("vbscript:")===0||l.indexOf("data:")===0)return null}d&&!p.test(u)&&(u=i(d,u));try{u=encodeURI(u).replace(/%25/g,"%")}catch(l){return null}return u}const a={},r=/^[^:]+:\/*[^/]*$/,s=/^([^:]+:)[\s\S]*$/,o=/^([^:]+:\/*[^/]*)[\s\S]*$/;function i(_,d){a[" "+_]||(r.test(_)?a[" "+_]=_+"/":a[" "+_]=g(_,"/",!0)),_=a[" "+_];const u=_.indexOf(":")===-1;return d.substring(0,2)==="//"?u?d:_.replace(s,"$1")+d:d.charAt(0)==="/"?u?d:_.replace(o,"$1")+d:_+d}const n={exec:function(){}};function t(_){let d=1,u,l;for(;d<arguments.length;d++){u=arguments[d];for(l in u)Object.prototype.hasOwnProperty.call(u,l)&&(_[l]=u[l])}return _}function b(_,d){const u=_.replace(/\|/g,(v,f,T)=>{let P=!1,L=f;for(;--L>=0&&T[L]==="\\";)P=!P;return P?"|":" |"}),l=u.split(/ \|/);let h=0;if(l.length>d)l.splice(d);else for(;l.length<d;)l.push("");for(;h<l.length;h++)l[h]=l[h].trim().replace(/\\\|/g,"|");return l}function g(_,d,u){const l=_.length;if(l===0)return"";let h=0;for(;h<l;){const v=_.charAt(l-h-1);if(v===d&&!u)h++;else if(v!==d&&u)h++;else break}return _.substr(0,l-h)}function m(_,d){if(_.indexOf(d[1])===-1)return-1;const u=_.length;let l=0,h=0;for(;h<u;h++)if(_[h]==="\\")h++;else if(_[h]===d[0])l++;else if(_[h]===d[1]&&(l--,l<0))return h;return-1}function x(_){_&&_.sanitize&&!_.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")}Be.exports={escape:R,unescape:k,edit:O,cleanUrl:c,resolveUrl:i,noopTest:n,merge:t,splitCells:b,rtrim:g,findClosingBracket:m,checkSanitizeDeprecation:x}},sR1s:function(Be,ie,N){"use strict";N.d(ie,"b",function(){return j}),N.d(ie,"a",function(){return C}),N.d(ie,"c",function(){return R}),N.d(ie,"d",function(){return H});var Q=N("U8pU"),M="RC_TABLE_KEY";function I(k){return k==null?[]:Array.isArray(k)?k:[k]}function j(k,e){if(!e&&typeof e!="number")return k;for(var O=I(e),y=k,p=0;p<O.length;p+=1){if(!y)return null;var c=O[p];y=y[c]}return y}function C(k){var e=[],O={};return k.forEach(function(y){for(var p=y||{},c=p.key,a=p.dataIndex,r=c||I(a).join("-")||M;O[r];)r="".concat(r,"_next");O[r]=!0,e.push(r)}),e}function R(){var k={};function e(c,a){a&&Object.keys(a).forEach(function(r){var s=a[r];s&&Object(Q.a)(s)==="object"?(c[r]=c[r]||{},e(c[r],s)):c[r]=s})}for(var O=arguments.length,y=new Array(O),p=0;p<O;p++)y[p]=arguments[p];return y.forEach(function(c){e(k,c)}),k}function H(k){return k!=null}},sboe:function(Be,ie,N){"use strict";N.d(ie,"a",function(){return I});var Q=N("q1tI"),M=N.n(Q),I=Q.createContext(null)},siWv:function(Be,ie,N){Be.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(Be,ie,N){"use strict";var Q=N("VTBJ"),M=N("1OyB"),I=N("vuIU"),j=N("Ji7U"),C=N("LK+K"),R=N("q1tI"),H=N.n(R),k=N("m+aA"),e=N("Zm9Q"),O=N("Kwbf"),y=N("c+Xe"),p=N("bdgK"),c="rc-observer-key",a=function(r){Object(j.a)(o,r);var s=Object(C.a)(o);function o(){var i;return Object(M.a)(this,o),i=s.apply(this,arguments),i.resizeObserver=null,i.childNode=null,i.currentElement=null,i.state={width:0,height:0,offsetHeight:0,offsetWidth:0},i.onResize=function(n){var t=i.props.onResize,b=n[0].target,g=b.getBoundingClientRect(),m=g.width,x=g.height,_=b.offsetWidth,d=b.offsetHeight,u=Math.floor(m),l=Math.floor(x);if(i.state.width!==u||i.state.height!==l||i.state.offsetWidth!==_||i.state.offsetHeight!==d){var h={width:u,height:l,offsetWidth:_,offsetHeight:d};i.setState(h),t&&Promise.resolve().then(function(){t(Object(Q.a)(Object(Q.a)({},h),{},{offsetWidth:_,offsetHeight:d}))})}},i.setChildNode=function(n){i.childNode=n},i}return Object(I.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 n=this.props.disabled;if(n){this.destroyObserver();return}var t=Object(k.a)(this.childNode||this),b=t!==this.currentElement;b&&(this.destroyObserver(),this.currentElement=t),!this.resizeObserver&&t&&(this.resizeObserver=new p.default(this.onResize),this.resizeObserver.observe(t))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var n=this.props.children,t=Object(e.a)(n);if(t.length>1)Object(O.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(t.length===0)return Object(O.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var b=t[0];if(R.isValidElement(b)&&Object(y.c)(b)){var g=b.ref;t[0]=R.cloneElement(b,{ref:Object(y.a)(g,this.setChildNode)})}return t.length===1?t[0]:t.map(function(m,x){return!R.isValidElement(m)||"key"in m&&m.key!==null?m:R.cloneElement(m,{key:"".concat(c,"-").concat(x)})})}}]),o}(R.Component);a.displayName="ResizeObserver",ie.a=a},t9D7:function(Be,ie,N){"use strict";N.d(ie,"b",function(){return H}),N.d(ie,"g",function(){return e}),N.d(ie,"d",function(){return O}),N.d(ie,"e",function(){return y}),N.d(ie,"a",function(){return p}),N.d(ie,"f",function(){return r}),N.d(ie,"c",function(){return s});var Q=N("Vhoy"),M=N("MI8n"),I=N("pmY6"),j=N("Cg/j"),C=N("ic2d"),R=N("nEHx");const H=Object(j.c)("themeService");var k;(function(o){function i(n){return n&&typeof n=="object"&&typeof n.id=="string"}o.isThemeColor=i})(k||(k={}));function e(o){return{id:o}}var O;(function(o){function i(x){return x&&typeof x=="object"&&typeof x.id=="string"&&(typeof x.color=="undefined"||k.isThemeColor(x.color))}o.isThemeIcon=i;const n=new RegExp(`^\\$\\((${Q.a.iconNameExpression}(?:${Q.a.iconModifierExpression})?)\\)$`);function t(x){const _=n.exec(x);if(!_)return;let[,d]=_;return{id:d}}o.fromString=t;function b(x,_){let d=x.id;const u=d.lastIndexOf("~");return u!==-1&&(d=d.substring(0,u)),_&&(d=`${d}~${_}`),{id:d}}o.modify=b;function g(x,_){var d,u;return x.id===_.id&&((d=x.color)===null||d===void 0?void 0:d.id)===((u=_.color)===null||u===void 0?void 0:u.id)}o.isEqual=g;function m(x,_){return{id:x.id,color:_?e(_):void 0}}o.asThemeIcon=m,o.asClassNameArray=Q.a.asClassNameArray,o.asClassName=Q.a.asClassName,o.asCSSSelector=Q.a.asCSSSelector})(O||(O={}));function y(o){switch(o){case R.a.DARK:return"vs-dark";case R.a.HIGH_CONTRAST:return"hc-black";default:return"vs"}}const p={ThemingContribution:"base.contributions.theming"};class c{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new M.b}onColorThemeChange(o){return this.themingParticipants.push(o),this.onThemingParticipantAddedEmitter.fire(o),Object(I.i)(()=>{const i=this.themingParticipants.indexOf(o);this.themingParticipants.splice(i,1)})}getThemingParticipants(){return this.themingParticipants}}let a=new c;C.a.add(p.ThemingContribution,a);function r(o){return a.onColorThemeChange(o)}class s extends I.a{constructor(o){super();this.themeService=o,this.theme=o.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(i=>this.onThemeChange(i)))}onThemeChange(o){this.theme=o,this.updateStyles()}updateStyles(){}}},ulZh:function(Be,ie,N){typeof window!="undefined"&&function(M,I){Be.exports=I()}(this,function(){return function(Q){var M={};function I(j){if(M[j])return M[j].exports;var C=M[j]={i:j,l:!1,exports:{}};return Q[j].call(C.exports,C,C.exports,I),C.l=!0,C.exports}return I.m=Q,I.c=M,I.d=function(j,C,R){I.o(j,C)||Object.defineProperty(j,C,{enumerable:!0,get:R})},I.r=function(j){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(j,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(j,"__esModule",{value:!0})},I.t=function(j,C){if(C&1&&(j=I(j)),C&8)return j;if(C&4&&typeof j=="object"&&j&&j.__esModule)return j;var R=Object.create(null);if(I.r(R),Object.defineProperty(R,"default",{enumerable:!0,value:j}),C&2&&typeof j!="string")for(var H in j)I.d(R,H,function(k){return j[k]}.bind(null,H));return R},I.n=function(j){var C=j&&j.__esModule?function(){return j.default}:function(){return j};return I.d(C,"a",C),C},I.o=function(j,C){return Object.prototype.hasOwnProperty.call(j,C)},I.p="/dist/",I(I.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":function(Q,M,I){"use strict";var j=Object.prototype.hasOwnProperty,C="~";function R(){}Object.create&&(R.prototype=Object.create(null),new R().__proto__||(C=!1));function H(y,p,c){this.fn=y,this.context=p,this.once=c||!1}function k(y,p,c,a,r){if(typeof c!="function")throw new TypeError("The listener must be a function");var s=new H(c,a||y,r),o=C?C+p:p;return y._events[o]?y._events[o].fn?y._events[o]=[y._events[o],s]:y._events[o].push(s):(y._events[o]=s,y._eventsCount++),y}function e(y,p){--y._eventsCount===0?y._events=new R:delete y._events[p]}function O(){this._events=new R,this._eventsCount=0}O.prototype.eventNames=function(){var p=[],c,a;if(this._eventsCount===0)return p;for(a in c=this._events)j.call(c,a)&&p.push(C?a.slice(1):a);return Object.getOwnPropertySymbols?p.concat(Object.getOwnPropertySymbols(c)):p},O.prototype.listeners=function(p){var c=C?C+p:p,a=this._events[c];if(!a)return[];if(a.fn)return[a.fn];for(var r=0,s=a.length,o=new Array(s);r<s;r++)o[r]=a[r].fn;return o},O.prototype.listenerCount=function(p){var c=C?C+p:p,a=this._events[c];return a?a.fn?1:a.length:0},O.prototype.emit=function(p,c,a,r,s,o){var i=C?C+p:p;if(!this._events[i])return!1;var n=this._events[i],t=arguments.length,b,g;if(n.fn){n.once&&this.removeListener(p,n.fn,void 0,!0);switch(t){case 1:return n.fn.call(n.context),!0;case 2:return n.fn.call(n.context,c),!0;case 3:return n.fn.call(n.context,c,a),!0;case 4:return n.fn.call(n.context,c,a,r),!0;case 5:return n.fn.call(n.context,c,a,r,s),!0;case 6:return n.fn.call(n.context,c,a,r,s,o),!0}for(g=1,b=new Array(t-1);g<t;g++)b[g-1]=arguments[g];n.fn.apply(n.context,b)}else{var m=n.length,x;for(g=0;g<m;g++){n[g].once&&this.removeListener(p,n[g].fn,void 0,!0);switch(t){case 1:n[g].fn.call(n[g].context);break;case 2:n[g].fn.call(n[g].context,c);break;case 3:n[g].fn.call(n[g].context,c,a);break;case 4:n[g].fn.call(n[g].context,c,a,r);break;default:if(!b)for(x=1,b=new Array(t-1);x<t;x++)b[x-1]=arguments[x];n[g].fn.apply(n[g].context,b)}}}return!0},O.prototype.on=function(p,c,a){return k(this,p,c,a,!1)},O.prototype.once=function(p,c,a){return k(this,p,c,a,!0)},O.prototype.removeListener=function(p,c,a,r){var s=C?C+p:p;if(!this._events[s])return this;if(!c)return e(this,s),this;var o=this._events[s];if(o.fn)o.fn===c&&(!r||o.once)&&(!a||o.context===a)&&e(this,s);else{for(var i=0,n=[],t=o.length;i<t;i++)(o[i].fn!==c||r&&!o[i].once||a&&o[i].context!==a)&&n.push(o[i]);n.length?this._events[s]=n.length===1?n[0]:n:e(this,s)}return this},O.prototype.removeAllListeners=function(p){var c;return p?(c=C?C+p:p,this._events[c]&&e(this,c)):(this._events=new R,this._eventsCount=0),this},O.prototype.off=O.prototype.removeListener,O.prototype.addListener=O.prototype.on,O.prefixed=C,O.EventEmitter=O,Q.exports=O},"./node_modules/url-toolkit/src/url-toolkit.js":function(Q,M,I){(function(j){var C=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/?#]*\/)*[^;?#]*)?(;[^?#]*)?(\?[^#]*)?(#[^]*)?$/,R=/^([^\/?#]*)([^]*)$/,H=/(?:\/|^)\.(?=\/)/g,k=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,e={buildAbsoluteURL:function(O,y,p){if(p=p||{},O=O.trim(),y=y.trim(),!y){if(!p.alwaysNormalize)return O;var c=e.parseURL(O);if(!c)throw new Error("Error trying to parse base URL.");return c.path=e.normalizePath(c.path),e.buildURLFromParts(c)}var a=e.parseURL(y);if(!a)throw new Error("Error trying to parse relative URL.");if(a.scheme)return p.alwaysNormalize?(a.path=e.normalizePath(a.path),e.buildURLFromParts(a)):y;var r=e.parseURL(O);if(!r)throw new Error("Error trying to parse base URL.");if(!r.netLoc&&r.path&&r.path[0]!=="/"){var s=R.exec(r.path);r.netLoc=s[1],r.path=s[2]}r.netLoc&&!r.path&&(r.path="/");var o={scheme:r.scheme,netLoc:a.netLoc,path:null,params:a.params,query:a.query,fragment:a.fragment};if(!a.netLoc&&(o.netLoc=r.netLoc,a.path[0]!=="/"))if(!a.path)o.path=r.path,a.params||(o.params=r.params,a.query||(o.query=r.query));else{var i=r.path,n=i.substring(0,i.lastIndexOf("/")+1)+a.path;o.path=e.normalizePath(n)}return o.path===null&&(o.path=p.alwaysNormalize?e.normalizePath(a.path):a.path),e.buildURLFromParts(o)},parseURL:function(O){var y=C.exec(O);return y?{scheme:y[1]||"",netLoc:y[2]||"",path:y[3]||"",params:y[4]||"",query:y[5]||"",fragment:y[6]||""}:null},normalizePath:function(O){for(O=O.split("").reverse().join("").replace(H,"");O.length!==(O=O.replace(k,"")).length;);return O.split("").reverse().join("")},buildURLFromParts:function(O){return O.scheme+O.netLoc+O.path+O.params+O.query+O.fragment}};Q.exports=e})(this)},"./node_modules/webworkify-webpack/index.js":function(Q,M,I){function j(p){var c={};function a(s){if(c[s])return c[s].exports;var o=c[s]={i:s,l:!1,exports:{}};return p[s].call(o.exports,o,o.exports,a),o.l=!0,o.exports}a.m=p,a.c=c,a.i=function(s){return s},a.d=function(s,o,i){a.o(s,o)||Object.defineProperty(s,o,{configurable:!1,enumerable:!0,get:i})},a.r=function(s){Object.defineProperty(s,"__esModule",{value:!0})},a.n=function(s){var o=s&&s.__esModule?function(){return s.default}:function(){return s};return a.d(o,"a",o),o},a.o=function(s,o){return Object.prototype.hasOwnProperty.call(s,o)},a.p="/",a.oe=function(s){throw console.error(s),s};var r=a(a.s=ENTRY_MODULE);return r.default||r}var C="[\\.|\\-|\\+|\\w|/|@]+",R="\\(\\s*(/\\*.*?\\*/)?\\s*.*?("+C+").*?\\)";function H(p){return(p+"").replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}function k(p){return!isNaN(1*p)}function e(p,c,a){var r={};r[a]=[];var s=c.toString(),o=s.match(/^function\s?\w*\(\w+,\s*\w+,\s*(\w+)\)/);if(!o)return r;for(var i=o[1],n=new RegExp("(\\\\n|\\W)"+H(i)+R,"g"),t;t=n.exec(s);){if(t[3]==="dll-reference")continue;r[a].push(t[3])}for(n=new RegExp("\\("+H(i)+'\\("(dll-reference\\s('+C+'))"\\)\\)'+R,"g");t=n.exec(s);)p[t[2]]||(r[a].push(t[1]),p[t[2]]=I(t[1]).m),r[t[2]]=r[t[2]]||[],r[t[2]].push(t[4]);for(var b=Object.keys(r),g=0;g<b.length;g++)for(var m=0;m<r[b[g]].length;m++)k(r[b[g]][m])&&(r[b[g]][m]=1*r[b[g]][m]);return r}function O(p){var c=Object.keys(p);return c.reduce(function(a,r){return a||p[r].length>0},!1)}function y(p,c){for(var a={main:[c]},r={main:[]},s={main:{}};O(a);)for(var o=Object.keys(a),i=0;i<o.length;i++){var n=o[i],t=a[n],b=t.pop();if(s[n]=s[n]||{},s[n][b]||!p[n][b])continue;s[n][b]=!0,r[n]=r[n]||[],r[n].push(b);for(var g=e(p,p[n][b],n),m=Object.keys(g),x=0;x<m.length;x++)a[m[x]]=a[m[x]]||[],a[m[x]]=a[m[x]].concat(g[m[x]])}return r}Q.exports=function(p,c){c=c||{};var a={main:I.m},r=c.all?{main:Object.keys(a.main)}:y(a,p),s="";Object.keys(r).filter(function(b){return b!=="main"}).forEach(function(b){for(var g=0;r[b][g];)g++;r[b].push(g),a[b][g]="(function(module, exports, __webpack_require__) { module.exports = __webpack_require__; })",s=s+"var "+b+" = ("+j.toString().replace("ENTRY_MODULE",JSON.stringify(g))+")({"+r[b].map(function(m){return""+JSON.stringify(m)+": "+a[b][m].toString()}).join(",")+`});
|
|
`}),s=s+"new (("+j.toString().replace("ENTRY_MODULE",JSON.stringify(p))+")({"+r.main.map(function(b){return""+JSON.stringify(b)+": "+a.main[b].toString()}).join(",")+"}))(self);";var o=new window.Blob([s],{type:"text/javascript"});if(c.bare)return o;var i=window.URL||window.webkitURL||window.mozURL||window.msURL,n=i.createObjectURL(o),t=new window.Worker(n);return t.objectURL=n,t}},"./src/config.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"hlsDefaultConfig",function(){return x}),I.d(M,"mergeConfig",function(){return d}),I.d(M,"enableStreamingMode",function(){return u});var j=I("./src/controller/abr-controller.ts"),C=I("./src/controller/audio-stream-controller.ts"),R=I("./src/controller/audio-track-controller.ts"),H=I("./src/controller/subtitle-stream-controller.ts"),k=I("./src/controller/subtitle-track-controller.ts"),e=I("./src/controller/buffer-controller.ts"),O=I("./src/controller/timeline-controller.ts"),y=I("./src/controller/cap-level-controller.ts"),p=I("./src/controller/fps-controller.ts"),c=I("./src/controller/eme-controller.ts"),a=I("./src/controller/cmcd-controller.ts"),r=I("./src/utils/xhr-loader.ts"),s=I("./src/utils/fetch-loader.ts"),o=I("./src/utils/cues.ts"),i=I("./src/utils/mediakeys-helper.ts"),n=I("./src/utils/logger.ts");function t(){return t=Object.assign||function(l){for(var h=1;h<arguments.length;h++){var v=arguments[h];for(var f in v)Object.prototype.hasOwnProperty.call(v,f)&&(l[f]=v[f])}return l},t.apply(this,arguments)}function b(l,h){var v=Object.keys(l);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(l);h&&(f=f.filter(function(T){return Object.getOwnPropertyDescriptor(l,T).enumerable})),v.push.apply(v,f)}return v}function g(l){for(var h=1;h<arguments.length;h++){var v=arguments[h]!=null?arguments[h]:{};h%2?b(Object(v),!0).forEach(function(f){m(l,f,v[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(v)):b(Object(v)).forEach(function(f){Object.defineProperty(l,f,Object.getOwnPropertyDescriptor(v,f))})}return l}function m(l,h,v){return h in l?Object.defineProperty(l,h,{value:v,enumerable:!0,configurable:!0,writable:!0}):l[h]=v,l}var x=g(g({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:r.default,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:j.default,bufferController:e.default,capLevelController:y.default,fpsController:p.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:i.requestMediaKeySystemAccess,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0},_()),{},{subtitleStreamController:H.SubtitleStreamController,subtitleTrackController:k.default,timelineController:O.TimelineController,audioStreamController:C.default,audioTrackController:R.default,emeController:c.default,cmcdController:a.default});function _(){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 d(l,h){if((h.liveSyncDurationCount||h.liveMaxLatencyDurationCount)&&(h.liveSyncDuration||h.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(h.liveMaxLatencyDurationCount!==void 0&&(h.liveSyncDurationCount===void 0||h.liveMaxLatencyDurationCount<=h.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(h.liveMaxLatencyDuration!==void 0&&(h.liveSyncDuration===void 0||h.liveMaxLatencyDuration<=h.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');return t({},l,h)}function u(l){var h=l.loader;if(h!==s.default&&h!==r.default)n.logger.log("[config]: Custom loader detected, cannot enable progressive streaming"),l.progressive=!1;else{var v=Object(s.fetchSupported)();v&&(l.loader=s.default,l.progressive=!0,l.enableSoftwareAES=!0,n.logger.log("[config]: Progressive streaming enabled, using FetchLoader"))}}},"./src/controller/abr-controller.ts":function(Q,M,I){"use strict";I.r(M);var j=I("./src/polyfills/number.ts"),C=I("./src/utils/ewma-bandwidth-estimator.ts"),R=I("./src/events.ts"),H=I("./src/utils/buffer-helper.ts"),k=I("./src/errors.ts"),e=I("./src/types/loader.ts"),O=I("./src/utils/logger.ts");function y(a,r){for(var s=0;s<r.length;s++){var o=r[s];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(a,o.key,o)}}function p(a,r,s){return r&&y(a.prototype,r),s&&y(a,s),a}var c=function(){function a(s){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=s;var o=s.config;this.bwEstimator=new C.default(o.abrEwmaSlowVoD,o.abrEwmaFastVoD,o.abrEwmaDefaultEstimate),this.registerListeners()}var r=a.prototype;return r.registerListeners=function(){var o=this.hls;o.on(R.Events.FRAG_LOADING,this.onFragLoading,this),o.on(R.Events.FRAG_LOADED,this.onFragLoaded,this),o.on(R.Events.FRAG_BUFFERED,this.onFragBuffered,this),o.on(R.Events.LEVEL_LOADED,this.onLevelLoaded,this),o.on(R.Events.ERROR,this.onError,this)},r.unregisterListeners=function(){var o=this.hls;o.off(R.Events.FRAG_LOADING,this.onFragLoading,this),o.off(R.Events.FRAG_LOADED,this.onFragLoaded,this),o.off(R.Events.FRAG_BUFFERED,this.onFragBuffered,this),o.off(R.Events.LEVEL_LOADED,this.onLevelLoaded,this),o.off(R.Events.ERROR,this.onError,this)},r.destroy=function(){this.unregisterListeners(),this.clearTimer(),this.hls=this.onCheck=null,this.fragCurrent=this.partCurrent=null},r.onFragLoading=function(o,i){var n=i.frag;if(n.type===e.PlaylistLevelType.MAIN&&!this.timer){var t;this.fragCurrent=n,this.partCurrent=(t=i.part)!=null?t:null,this.timer=self.setInterval(this.onCheck,100)}},r.onLevelLoaded=function(o,i){var n=this.hls.config;i.details.live?this.bwEstimator.update(n.abrEwmaSlowLive,n.abrEwmaFastLive):this.bwEstimator.update(n.abrEwmaSlowVoD,n.abrEwmaFastVoD)},r._abandonRulesCheck=function(){var o=this.fragCurrent,i=this.partCurrent,n=this.hls,t=n.autoLevelEnabled,b=n.config,g=n.media;if(!o||!g)return;var m=i?i.stats:o.stats,x=i?i.duration:o.duration;if(m.aborted){O.logger.warn("frag loader destroy or aborted, disarm abandonRules"),this.clearTimer(),this._nextAutoLevel=-1;return}if(!t||g.paused||!g.playbackRate||!g.readyState)return;var _=performance.now()-m.loading.start,d=Math.abs(g.playbackRate);if(_<=500*x/d)return;var u=n.levels,l=n.minAutoLevel,h=u[o.level],v=m.total||Math.max(m.loaded,Math.round(x*h.maxBitrate/8)),f=Math.max(1,m.bwEstimate?m.bwEstimate/8:m.loaded*1e3/_),T=(v-m.loaded)/f,P=g.currentTime,L=(H.BufferHelper.bufferInfo(g,P,b.maxBufferHole).end-P)/d;if(L>=2*x/d||T<=L)return;var S=Number.POSITIVE_INFINITY,A;for(A=o.level-1;A>l;A--){var W=u[A].maxBitrate;if(S=x*W/(8*.8*f),S<L)break}if(S>=T)return;var D=this.bwEstimator.getEstimate();O.logger.warn("Fragment "+o.sn+(i?" part "+i.index:"")+" of level "+o.level+" is loading too slowly and will cause an underbuffer; aborting and switching to level "+A+`
|
|
Current BW estimate: `+(Object(j.isFiniteNumber)(D)?(D/1024).toFixed(3):"Unknown")+` Kb/s
|
|
Estimated load time for current fragment: `+T.toFixed(3)+` s
|
|
Estimated load time for the next fragment: `+S.toFixed(3)+` s
|
|
Time to underbuffer: `+L.toFixed(3)+" s"),n.nextLoadLevel=A,this.bwEstimator.sample(_,m.loaded),this.clearTimer(),o.loader&&(this.fragCurrent=this.partCurrent=null,o.loader.abort()),n.trigger(R.Events.FRAG_LOAD_EMERGENCY_ABORTED,{frag:o,part:i,stats:m})},r.onFragLoaded=function(o,i){var n=i.frag,t=i.part;if(n.type===e.PlaylistLevelType.MAIN&&Object(j.isFiniteNumber)(n.sn)){var b=t?t.stats:n.stats,g=t?t.duration:n.duration;if(this.clearTimer(),this.lastLoadedFragLevel=n.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var m=this.hls.levels[n.level],x=(m.loaded?m.loaded.bytes:0)+b.loaded,_=(m.loaded?m.loaded.duration:0)+g;m.loaded={bytes:x,duration:_},m.realBitrate=Math.round(8*x/_)}if(n.bitrateTest){var d={stats:b,frag:n,part:t,id:n.type};this.onFragBuffered(R.Events.FRAG_BUFFERED,d),n.bitrateTest=!1}}},r.onFragBuffered=function(o,i){var n=i.frag,t=i.part,b=t?t.stats:n.stats;if(b.aborted)return;if(n.type!==e.PlaylistLevelType.MAIN||n.sn==="initSegment")return;var g=b.parsing.end-b.loading.start;this.bwEstimator.sample(g,b.loaded),b.bwEstimate=this.bwEstimator.getEstimate(),n.bitrateTest?this.bitrateTestDelay=g/1e3:this.bitrateTestDelay=0},r.onError=function(o,i){switch(i.details){case k.ErrorDetails.FRAG_LOAD_ERROR:case k.ErrorDetails.FRAG_LOAD_TIMEOUT:this.clearTimer();break;default:break}},r.clearTimer=function(){self.clearInterval(this.timer),this.timer=void 0},r.getNextABRAutoLevel=function(){var o=this.fragCurrent,i=this.partCurrent,n=this.hls,t=n.maxAutoLevel,b=n.config,g=n.minAutoLevel,m=n.media,x=i?i.duration:o?o.duration:0,_=m?m.currentTime:0,d=m&&m.playbackRate!==0?Math.abs(m.playbackRate):1,u=this.bwEstimator?this.bwEstimator.getEstimate():b.abrEwmaDefaultEstimate,l=(H.BufferHelper.bufferInfo(m,_,b.maxBufferHole).end-_)/d,h=this.findBestLevel(u,g,t,l,b.abrBandWidthFactor,b.abrBandWidthUpFactor);if(h>=0)return h;O.logger.trace((l?"rebuffering expected":"buffer is empty")+", finding optimal quality level");var v=x?Math.min(x,b.maxStarvationDelay):b.maxStarvationDelay,f=b.abrBandWidthFactor,T=b.abrBandWidthUpFactor;if(!l){var P=this.bitrateTestDelay;if(P){var L=x?Math.min(x,b.maxLoadingDelay):b.maxLoadingDelay;v=L-P,O.logger.trace("bitrate test took "+Math.round(1e3*P)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*v)+" ms"),f=T=1}}return h=this.findBestLevel(u,g,t,l+v,f,T),Math.max(h,0)},r.findBestLevel=function(o,i,n,t,b,g){for(var m,x=this.fragCurrent,_=this.partCurrent,d=this.lastLoadedFragLevel,u=this.hls.levels,l=u[d],h=!!(l!=null&&(m=l.details)!==null&&m!==void 0&&m.live),v=l==null?void 0:l.codecSet,f=_?_.duration:x?x.duration:0,T=n;T>=i;T--){var P=u[T];if(!P||v&&P.codecSet!==v)continue;var L=P.details,S=(_?L==null?void 0:L.partTarget:L==null?void 0:L.averagetargetduration)||f,A=void 0;T<=d?A=b*o:A=g*o;var W=u[T].maxBitrate,D=W*S/A;if(O.logger.trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: "+T+"/"+Math.round(A)+"/"+W+"/"+S+"/"+t+"/"+D),A>W&&(!D||h&&!this.bitrateTestDelay||D<t))return T}return-1},p(a,[{key:"nextAutoLevel",get:function(){var o=this._nextAutoLevel,i=this.bwEstimator;if(o!==-1&&(!i||!i.canEstimate()))return o;var n=this.getNextABRAutoLevel();return o!==-1&&(n=Math.min(o,n)),n},set:function(o){this._nextAutoLevel=o}}]),a}();M.default=c},"./src/controller/audio-stream-controller.ts":function(Q,M,I){"use strict";I.r(M);var j=I("./src/polyfills/number.ts"),C=I("./src/controller/base-stream-controller.ts"),R=I("./src/events.ts"),H=I("./src/utils/buffer-helper.ts"),k=I("./src/controller/fragment-tracker.ts"),e=I("./src/types/level.ts"),O=I("./src/types/loader.ts"),y=I("./src/loader/fragment.ts"),p=I("./src/demux/chunk-cache.ts"),c=I("./src/demux/transmuxer-interface.ts"),a=I("./src/types/transmuxer.ts"),r=I("./src/controller/fragment-finders.ts"),s=I("./src/utils/discontinuities.ts"),o=I("./src/errors.ts"),i=I("./src/utils/logger.ts");function n(){return n=Object.assign||function(x){for(var _=1;_<arguments.length;_++){var d=arguments[_];for(var u in d)Object.prototype.hasOwnProperty.call(d,u)&&(x[u]=d[u])}return x},n.apply(this,arguments)}function t(x,_){x.prototype=Object.create(_.prototype),x.prototype.constructor=x,b(x,_)}function b(x,_){return b=Object.setPrototypeOf||function(u,l){return u.__proto__=l,u},b(x,_)}var g=100,m=function(x){t(_,x);function _(u,l){var h;return h=x.call(this,u,l,"[audio-stream-controller]")||this,h.videoBuffer=null,h.videoTrackCC=-1,h.waitingVideoCC=-1,h.audioSwitch=!1,h.trackId=-1,h.waitingData=null,h.mainDetails=null,h.bufferFlushed=!1,h._registerListeners(),h}var d=_.prototype;return d.onHandlerDestroying=function(){this._unregisterListeners(),this.mainDetails=null},d._registerListeners=function(){var l=this.hls;l.on(R.Events.MEDIA_ATTACHED,this.onMediaAttached,this),l.on(R.Events.MEDIA_DETACHING,this.onMediaDetaching,this),l.on(R.Events.MANIFEST_LOADING,this.onManifestLoading,this),l.on(R.Events.LEVEL_LOADED,this.onLevelLoaded,this),l.on(R.Events.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),l.on(R.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),l.on(R.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),l.on(R.Events.ERROR,this.onError,this),l.on(R.Events.BUFFER_RESET,this.onBufferReset,this),l.on(R.Events.BUFFER_CREATED,this.onBufferCreated,this),l.on(R.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),l.on(R.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),l.on(R.Events.FRAG_BUFFERED,this.onFragBuffered,this)},d._unregisterListeners=function(){var l=this.hls;l.off(R.Events.MEDIA_ATTACHED,this.onMediaAttached,this),l.off(R.Events.MEDIA_DETACHING,this.onMediaDetaching,this),l.off(R.Events.MANIFEST_LOADING,this.onManifestLoading,this),l.off(R.Events.LEVEL_LOADED,this.onLevelLoaded,this),l.off(R.Events.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),l.off(R.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),l.off(R.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),l.off(R.Events.ERROR,this.onError,this),l.off(R.Events.BUFFER_RESET,this.onBufferReset,this),l.off(R.Events.BUFFER_CREATED,this.onBufferCreated,this),l.off(R.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),l.off(R.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),l.off(R.Events.FRAG_BUFFERED,this.onFragBuffered,this)},d.onInitPtsFound=function(l,h){var v=h.frag,f=h.id,T=h.initPTS;if(f==="main"){var P=v.cc;this.initPTS[v.cc]=T,this.log("InitPTS for cc: "+P+" found from main: "+T),this.videoTrackCC=P,this.state===C.State.WAITING_INIT_PTS&&this.tick()}},d.startLoad=function(l){if(!this.levels){this.startPosition=l,this.state=C.State.STOPPED;return}var h=this.lastCurrentTime;this.stopLoad(),this.setInterval(g),this.fragLoadError=0,h>0&&l===-1?(this.log("Override startPosition with lastCurrentTime @"+h.toFixed(3)),this.state=C.State.IDLE):(this.loadedmetadata=!1,this.state=C.State.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=l,this.tick()},d.doTick=function(){switch(this.state){case C.State.IDLE:this.doTickIdle();break;case C.State.WAITING_TRACK:{var l,h=this.levels,v=this.trackId,f=h==null||((l=h[v])===null||l===void 0)?void 0:l.details;if(f){if(this.waitForCdnTuneIn(f))break;this.state=C.State.WAITING_INIT_PTS}break}case C.State.FRAG_LOADING_WAITING_RETRY:{var T,P=performance.now(),L=this.retryDate;(!L||P>=L||(T=this.media)!==null&&T!==void 0&&T.seeking)&&(this.log("RetryDate reached, switch back to IDLE state"),this.state=C.State.IDLE);break}case C.State.WAITING_INIT_PTS:{var S=this.waitingData;if(S){var A=S.frag,W=S.part,D=S.cache,K=S.complete;if(this.initPTS[A.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=C.State.FRAG_LOADING;var Y=D.flush(),oe={frag:A,part:W,payload:Y,networkDetails:null};this._handleFragmentLoadProgress(oe),K&&x.prototype._handleFragmentLoadComplete.call(this,oe)}else if(this.videoTrackCC!==this.waitingVideoCC)i.logger.log("Waiting fragment cc ("+A.cc+") cancelled because video is at cc "+this.videoTrackCC),this.clearWaitingFragment();else{var le=this.getLoadPosition(),Se=H.BufferHelper.bufferInfo(this.mediaBuffer,le,this.config.maxBufferHole),Ee=Object(r.fragmentWithinToleranceTest)(Se.end,this.config.maxFragLookUpTolerance,A);Ee<0&&(i.logger.log("Waiting fragment cc ("+A.cc+") @ "+A.start+" cancelled because another fragment at "+Se.end+" is needed"),this.clearWaitingFragment())}}else this.state=C.State.IDLE}}this.onTickEnd()},d.clearWaitingFragment=function(){var l=this.waitingData;l&&(this.fragmentTracker.removeFragment(l.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=C.State.IDLE)},d.onTickEnd=function(){var l=this.media;if(!l||!l.readyState)return;var h=this.mediaBuffer?this.mediaBuffer:l,v=h.buffered;!this.loadedmetadata&&v.length&&(this.loadedmetadata=!0),this.lastCurrentTime=l.currentTime},d.doTickIdle=function(){var l,h,v=this.hls,f=this.levels,T=this.media,P=this.trackId,L=v.config;if(!f||!f[P])return;if(!T&&(this.startFragRequested||!L.startFragPrefetch))return;var S=f[P],A=S.details;if(!A||A.live&&this.levelLastLoaded!==P||this.waitForCdnTuneIn(A)){this.state=C.State.WAITING_TRACK;return}this.bufferFlushed&&(this.bufferFlushed=!1,this.afterBufferFlushed(this.mediaBuffer?this.mediaBuffer:this.media,y.ElementaryStreamTypes.AUDIO,O.PlaylistLevelType.AUDIO));var W=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,O.PlaylistLevelType.AUDIO);if(W===null)return;var D=W.len,K=this.getMaxBufferLength(),Y=this.audioSwitch;if(D>=K&&!Y)return;if(!Y&&this._streamEnded(W,A)){v.trigger(R.Events.BUFFER_EOS,{type:"audio"}),this.state=C.State.ENDED;return}var oe=A.fragments,le=oe[0].start,Se=W.end;if(Y){var Ee=this.getLoadPosition();Se=Ee,A.PTSKnown&&Ee<le&&((W.end>le||W.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),T.currentTime=le+.05))}var ae=this.getNextFragment(Se,A);if(!ae){this.bufferFlushed=!0;return}((l=ae.decryptdata)===null||l===void 0?void 0:l.keyFormat)==="identity"&&!((h=ae.decryptdata)!==null&&h!==void 0&&h.key)?this.loadKey(ae,A):this.loadFragment(ae,A,Se)},d.getMaxBufferLength=function(){var l=x.prototype.getMaxBufferLength.call(this),h=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,O.PlaylistLevelType.MAIN);return h===null?l:Math.max(l,h.len)},d.onMediaDetaching=function(){this.videoBuffer=null,x.prototype.onMediaDetaching.call(this)},d.onAudioTracksUpdated=function(l,h){var v=h.audioTracks;this.resetTransmuxer(),this.levels=v.map(function(f){return new e.Level(f)})},d.onAudioTrackSwitching=function(l,h){var v=!!h.url;this.trackId=h.id;var f=this.fragCurrent;f!=null&&f.loader&&f.loader.abort(),this.fragCurrent=null,this.clearWaitingFragment(),v?this.setInterval(g):this.resetTransmuxer(),v?(this.audioSwitch=!0,this.state=C.State.IDLE):this.state=C.State.STOPPED,this.tick()},d.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=!1},d.onLevelLoaded=function(l,h){this.mainDetails=h.details},d.onAudioTrackLoaded=function(l,h){var v,f=this.levels,T=h.details,P=h.id;if(!f){this.warn("Audio tracks were reset while loading level "+P);return}this.log("Track "+P+" loaded ["+T.startSN+","+T.endSN+"],duration:"+T.totalduration);var L=f[P],S=0;if(T.live||(v=L.details)!==null&&v!==void 0&&v.live){var A=this.mainDetails;if(T.fragments[0]||(T.deltaUpdateFailed=!0),T.deltaUpdateFailed||!A)return;!L.details&&T.hasProgramDateTime&&A.hasProgramDateTime?(Object(s.alignMediaPlaylistByPDT)(T,A),S=T.fragments[0].start):S=this.alignPlaylists(T,L.details)}L.details=T,this.levelLastLoaded=P,!this.startFragRequested&&(this.mainDetails||!T.live)&&this.setStartPosition(L.details,S),this.state===C.State.WAITING_TRACK&&!this.waitForCdnTuneIn(T)&&(this.state=C.State.IDLE),this.tick()},d._handleFragmentLoadProgress=function(l){var h,v=l.frag,f=l.part,T=l.payload,P=this.config,L=this.trackId,S=this.levels;if(!S){this.warn("Audio tracks were reset while fragment load was in progress. Fragment "+v.sn+" of level "+v.level+" will not be buffered");return}var A=S[L];console.assert(A,"Audio track is defined on fragment load progress");var W=A.details;console.assert(W,"Audio track details are defined on fragment load progress");var D=P.defaultAudioCodec||A.audioCodec||"mp4a.40.2",K=this.transmuxer;K||(K=this.transmuxer=new c.default(this.hls,O.PlaylistLevelType.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));var Y=this.initPTS[v.cc],oe=(h=v.initSegment)===null||h===void 0?void 0:h.data;if(Y!==void 0){var le=!1,Se=f?f.index:-1,Ee=Se!==-1,ae=new a.ChunkMetadata(v.level,v.sn,v.stats.chunkCount,T.byteLength,Se,Ee);K.push(T,oe,D,"",v,f,W.totalduration,le,ae,Y)}else{i.logger.log("Unknown video PTS for cc "+v.cc+", waiting for video PTS before demuxing audio frag "+v.sn+" of ["+W.startSN+" ,"+W.endSN+"],track "+L);var Ce=this.waitingData=this.waitingData||{frag:v,part:f,cache:new p.default,complete:!1},Le=Ce.cache;Le.push(new Uint8Array(T)),this.waitingVideoCC=this.videoTrackCC,this.state=C.State.WAITING_INIT_PTS}},d._handleFragmentLoadComplete=function(l){if(this.waitingData){this.waitingData.complete=!0;return}x.prototype._handleFragmentLoadComplete.call(this,l)},d.onBufferReset=function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1},d.onBufferCreated=function(l,h){var v=h.tracks.audio;v&&(this.mediaBuffer=v.buffer),h.tracks.video&&(this.videoBuffer=h.tracks.video.buffer)},d.onFragBuffered=function(l,h){var v=h.frag,f=h.part;if(v.type!==O.PlaylistLevelType.AUDIO)return;if(this.fragContextChanged(v)){this.warn("Fragment "+v.sn+(f?" p: "+f.index:"")+" of level "+v.level+" finished buffering, but was aborted. state: "+this.state+", audioSwitch: "+this.audioSwitch);return}v.sn!=="initSegment"&&(this.fragPrevious=v,this.audioSwitch&&(this.audioSwitch=!1,this.hls.trigger(R.Events.AUDIO_TRACK_SWITCHED,{id:this.trackId}))),this.fragBufferedComplete(v,f)},d.onError=function(l,h){switch(h.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,h);break;case o.ErrorDetails.AUDIO_TRACK_LOAD_ERROR:case o.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:this.state!==C.State.ERROR&&this.state!==C.State.STOPPED&&(this.state=h.fatal?C.State.ERROR:C.State.IDLE,this.warn(h.details+" while loading frag, switching to "+this.state+" state"));break;case o.ErrorDetails.BUFFER_FULL_ERROR:if(h.parent==="audio"&&(this.state===C.State.PARSING||this.state===C.State.PARSED)){var v=!0,f=this.getFwdBufferInfo(this.mediaBuffer,O.PlaylistLevelType.AUDIO);f&&f.len>.5&&(v=!this.reduceMaxBufferLength(f.len)),v&&(this.warn("Buffer full error also media.currentTime is not buffered, flush audio buffer"),this.fragCurrent=null,x.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.resetLoadingState()}break;default:break}},d.onBufferFlushed=function(l,h){var v=h.type;v===y.ElementaryStreamTypes.AUDIO&&(this.bufferFlushed=!0)},d._handleTransmuxComplete=function(l){var h,v="audio",f=this.hls,T=l.remuxResult,P=l.chunkMeta,L=this.getCurrentContext(P);if(!L){this.warn("The loading context changed while buffering fragment "+P.sn+" of level "+P.level+". This chunk will not be buffered."),this.resetLiveStartWhenNotLoaded(P.level);return}var S=L.frag,A=L.part,W=T.audio,D=T.text,K=T.id3,Y=T.initSegment;if(this.fragContextChanged(S))return;if(this.state=C.State.PARSING,this.audioSwitch&&W&&this.completeAudioSwitch(),Y!=null&&Y.tracks&&(this._bufferInitSegment(Y.tracks,S,P),f.trigger(R.Events.FRAG_PARSING_INIT_SEGMENT,{frag:S,id:v,tracks:Y.tracks})),W){var oe=W.startPTS,le=W.endPTS,Se=W.startDTS,Ee=W.endDTS;A&&(A.elementaryStreams[y.ElementaryStreamTypes.AUDIO]={startPTS:oe,endPTS:le,startDTS:Se,endDTS:Ee}),S.setElementaryStreamInfo(y.ElementaryStreamTypes.AUDIO,oe,le,Se,Ee),this.bufferFragmentData(W,S,A,P)}if(K!=null&&(h=K.samples)!==null&&h!==void 0&&h.length){var ae=n({frag:S,id:v},K);f.trigger(R.Events.FRAG_PARSING_METADATA,ae)}if(D){var Ce=n({frag:S,id:v},D);f.trigger(R.Events.FRAG_PARSING_USERDATA,Ce)}},d._bufferInitSegment=function(l,h,v){if(this.state!==C.State.PARSING)return;l.video&&delete l.video;var f=l.audio;if(!f)return;f.levelCodec=f.codec,f.id="audio",this.log("Init audio buffer, container:"+f.container+", codecs[parsed]=["+f.codec+"]"),this.hls.trigger(R.Events.BUFFER_CODECS,l);var T=f.initSegment;if(T!=null&&T.byteLength){var P={type:"audio",frag:h,part:null,chunkMeta:v,parent:h.type,data:T};this.hls.trigger(R.Events.BUFFER_APPENDING,P)}this.tick()},d.loadFragment=function(l,h,v){var f=this.fragmentTracker.getState(l);this.fragCurrent=l,(this.audioSwitch||f===k.FragmentState.NOT_LOADED||f===k.FragmentState.PARTIAL)&&(l.sn==="initSegment"?this._loadInitSegment(l):h.live&&!Object(j.isFiniteNumber)(this.initPTS[l.cc])?(this.log("Waiting for video PTS in continuity counter "+l.cc+" of live stream before loading audio fragment "+l.sn+" of level "+this.trackId),this.state=C.State.WAITING_INIT_PTS):(this.startFragRequested=!0,x.prototype.loadFragment.call(this,l,h,v)))},d.completeAudioSwitch=function(){var l=this.hls,h=this.media,v=this.trackId;h&&(this.log("Switching audio track : flushing all audio"),x.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.audioSwitch=!1,l.trigger(R.Events.AUDIO_TRACK_SWITCHED,{id:v})},_}(C.default);M.default=m},"./src/controller/audio-track-controller.ts":function(Q,M,I){"use strict";I.r(M);var j=I("./src/events.ts"),C=I("./src/errors.ts"),R=I("./src/controller/base-playlist-controller.ts"),H=I("./src/types/loader.ts");function k(c,a){for(var r=0;r<a.length;r++){var s=a[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(c,s.key,s)}}function e(c,a,r){return a&&k(c.prototype,a),r&&k(c,r),c}function O(c,a){c.prototype=Object.create(a.prototype),c.prototype.constructor=c,y(c,a)}function y(c,a){return y=Object.setPrototypeOf||function(s,o){return s.__proto__=o,s},y(c,a)}var p=function(c){O(a,c);function a(s){var o;return o=c.call(this,s,"[audio-track-controller]")||this,o.tracks=[],o.groupId=null,o.tracksInGroup=[],o.trackId=-1,o.trackName="",o.selectDefaultTrack=!0,o.registerListeners(),o}var r=a.prototype;return r.registerListeners=function(){var o=this.hls;o.on(j.Events.MANIFEST_LOADING,this.onManifestLoading,this),o.on(j.Events.MANIFEST_PARSED,this.onManifestParsed,this),o.on(j.Events.LEVEL_LOADING,this.onLevelLoading,this),o.on(j.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),o.on(j.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),o.on(j.Events.ERROR,this.onError,this)},r.unregisterListeners=function(){var o=this.hls;o.off(j.Events.MANIFEST_LOADING,this.onManifestLoading,this),o.off(j.Events.MANIFEST_PARSED,this.onManifestParsed,this),o.off(j.Events.LEVEL_LOADING,this.onLevelLoading,this),o.off(j.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),o.off(j.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),o.off(j.Events.ERROR,this.onError,this)},r.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,c.prototype.destroy.call(this)},r.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.trackName="",this.selectDefaultTrack=!0},r.onManifestParsed=function(o,i){this.tracks=i.audioTracks||[]},r.onAudioTrackLoaded=function(o,i){var n=i.id,t=i.details,b=this.tracksInGroup[n];if(!b){this.warn("Invalid audio track id "+n);return}var g=b.details;b.details=i.details,this.log("audioTrack "+n+" loaded ["+t.startSN+"-"+t.endSN+"]"),n===this.trackId&&(this.retryCount=0,this.playlistLoaded(n,i,g))},r.onLevelLoading=function(o,i){this.switchLevel(i.level)},r.onLevelSwitching=function(o,i){this.switchLevel(i.level)},r.switchLevel=function(o){var i=this.hls.levels[o];if(!(i!=null&&i.audioGroupIds))return;var n=i.audioGroupIds[i.urlId];if(this.groupId!==n){this.groupId=n;var t=this.tracks.filter(function(g){return!n||g.groupId===n});this.selectDefaultTrack&&!t.some(function(g){return g.default})&&(this.selectDefaultTrack=!1),this.tracksInGroup=t;var b={audioTracks:t};this.log("Updating audio tracks, "+t.length+' track(s) found in "'+n+'" group-id'),this.hls.trigger(j.Events.AUDIO_TRACKS_UPDATED,b),this.selectInitialTrack()}},r.onError=function(o,i){if(c.prototype.onError.call(this,o,i),i.fatal||!i.context)return;i.context.type===H.PlaylistContextType.AUDIO_TRACK&&i.context.id===this.trackId&&i.context.groupId===this.groupId&&this.retryLoadingOrFail(i)},r.setAudioTrack=function(o){var i=this.tracksInGroup;if(o<0||o>=i.length){this.warn("Invalid id passed to audio-track controller");return}this.clearTimer();var n=i[this.trackId];this.log("Now switching to audio-track index "+o);var t=i[o],b=t.id,g=t.groupId,m=g===void 0?"":g,x=t.name,_=t.type,d=t.url;if(this.trackId=o,this.trackName=x,this.selectDefaultTrack=!1,this.hls.trigger(j.Events.AUDIO_TRACK_SWITCHING,{id:b,groupId:m,name:x,type:_,url:d}),t.details&&!t.details.live)return;var u=this.switchParams(t.url,n==null?void 0:n.details);this.loadPlaylist(u)},r.selectInitialTrack=function(){var o=this.tracksInGroup;console.assert(o.length,"Initial audio track should be selected when tracks are known");var i=this.trackName,n=this.findTrackId(i)||this.findTrackId();n!==-1?this.setAudioTrack(n):(this.warn("No track found for running audio group-ID: "+this.groupId),this.hls.trigger(j.Events.ERROR,{type:C.ErrorTypes.MEDIA_ERROR,details:C.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,fatal:!0}))},r.findTrackId=function(o){for(var i=this.tracksInGroup,n=0;n<i.length;n++){var t=i[n];if((!this.selectDefaultTrack||t.default)&&(!o||o===t.name))return t.id}return-1},r.loadPlaylist=function(o){var i=this.tracksInGroup[this.trackId];if(this.shouldLoadTrack(i)){var n=i.id,t=i.groupId,b=i.url;if(o)try{b=o.addDirectives(b)}catch(g){this.warn("Could not construct new URL with HLS Delivery Directives: "+g)}this.log("loading audio-track playlist for id: "+n),this.clearTimer(),this.hls.trigger(j.Events.AUDIO_TRACK_LOADING,{url:b,id:n,groupId:t,deliveryDirectives:o||null})}},e(a,[{key:"audioTracks",get:function(){return this.tracksInGroup}},{key:"audioTrack",get:function(){return this.trackId},set:function(o){this.selectDefaultTrack=!1,this.setAudioTrack(o)}}]),a}(R.default);M.default=p},"./src/controller/base-playlist-controller.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"default",function(){return e});var j=I("./src/polyfills/number.ts"),C=I("./src/types/level.ts"),R=I("./src/controller/level-helper.ts"),H=I("./src/utils/logger.ts"),k=I("./src/errors.ts"),e=function(){function O(p,c){this.hls=void 0,this.timer=-1,this.canLoad=!1,this.retryCount=0,this.log=void 0,this.warn=void 0,this.log=H.logger.log.bind(H.logger,c+":"),this.warn=H.logger.warn.bind(H.logger,c+":"),this.hls=p}var y=O.prototype;return y.destroy=function(){this.clearTimer(),this.hls=this.log=this.warn=null},y.onError=function(c,a){a.fatal&&a.type===k.ErrorTypes.NETWORK_ERROR&&this.clearTimer()},y.clearTimer=function(){clearTimeout(this.timer),this.timer=-1},y.startLoad=function(){this.canLoad=!0,this.retryCount=0,this.loadPlaylist()},y.stopLoad=function(){this.canLoad=!1,this.clearTimer()},y.switchParams=function(c,a){var r=a==null?void 0:a.renditionReports;if(r)for(var s=0;s<r.length;s++){var o=r[s],i=""+o.URI;if(i===c.substr(-i.length)){var n=parseInt(o["LAST-MSN"]),t=parseInt(o["LAST-PART"]);if(a&&this.hls.config.lowLatencyMode){var b=Math.min(a.age-a.partTarget,a.targetduration);t!==void 0&&b>a.partTarget&&(t+=1)}if(Object(j.isFiniteNumber)(n))return new C.HlsUrlParameters(n,Object(j.isFiniteNumber)(t)?t:void 0,C.HlsSkip.No)}}},y.loadPlaylist=function(c){},y.shouldLoadTrack=function(c){return this.canLoad&&c&&!!c.url&&(!c.details||c.details.live)},y.playlistLoaded=function(c,a,r){var s=this,o=a.details,i=a.stats,n=i.loading.end?Math.max(0,self.performance.now()-i.loading.end):0;if(o.advancedDateTime=Date.now()-n,o.live||r!=null&&r.live){if(o.reloaded(r),r&&this.log("live playlist "+c+" "+(o.advanced?"REFRESHED "+o.lastPartSn+"-"+o.lastPartIndex:"MISSED")),r&&o.fragments.length>0&&Object(R.mergeDetails)(r,o),!this.canLoad||!o.live)return;var t,b=void 0,g=void 0;if(o.canBlockReload&&o.endSN&&o.advanced){var m=this.hls.config.lowLatencyMode,x=o.lastPartSn,_=o.endSN,d=o.lastPartIndex,u=d!==-1,l=x===_,h=m?0:d;u?(b=l?_+1:x,g=l?h:d+1):b=_+1;var v=o.age,f=v+o.ageHeader,T=Math.min(f-o.partTarget,o.targetduration*1.5);if(T>0){if(r&&T>r.tuneInGoal)this.warn("CDN Tune-in goal increased from: "+r.tuneInGoal+" to: "+T+" with playlist age: "+o.age),T=0;else{var P=Math.floor(T/o.targetduration);if(b+=P,g!==void 0){var L=Math.round(T%o.targetduration/o.partTarget);g+=L}this.log("CDN Tune-in age: "+o.ageHeader+"s last advanced "+v.toFixed(2)+"s goal: "+T+" skip sn "+P+" to part "+g)}o.tuneInGoal=T}if(t=this.getDeliveryDirectives(o,a.deliveryDirectives,b,g),m||!l){this.loadPlaylist(t);return}}else t=this.getDeliveryDirectives(o,a.deliveryDirectives,b,g);var S=Object(R.computeReloadInterval)(o,i);b!==void 0&&o.canBlockReload&&(S-=o.partTarget||1),this.log("reload live playlist "+c+" in "+Math.round(S)+" ms"),this.timer=self.setTimeout(function(){return s.loadPlaylist(t)},S)}else this.clearTimer()},y.getDeliveryDirectives=function(c,a,r,s){var o=Object(C.getSkipValue)(c,r);return a!=null&&a.skip&&c.deltaUpdateFailed&&(r=a.msn,s=a.part,o=C.HlsSkip.No),new C.HlsUrlParameters(r,s,o)},y.retryLoadingOrFail=function(c){var a=this,r=this.hls.config,s=this.retryCount<r.levelLoadingMaxRetry;if(s){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 i=Math.min(Math.pow(2,this.retryCount)*r.levelLoadingRetryDelay,r.levelLoadingMaxRetryTimeout);this.timer=self.setTimeout(function(){return a.loadPlaylist()},i),this.warn("retry playlist loading #"+this.retryCount+" in "+i+' ms after "'+c.details+'"')}}else this.warn('cannot recover from error "'+c.details+'"'),this.clearTimer(),c.fatal=!0;return s},O}()},"./src/controller/base-stream-controller.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"State",function(){return _}),I.d(M,"default",function(){return d});var j=I("./src/polyfills/number.ts"),C=I("./src/task-loop.ts"),R=I("./src/controller/fragment-tracker.ts"),H=I("./src/utils/buffer-helper.ts"),k=I("./src/utils/logger.ts"),e=I("./src/events.ts"),O=I("./src/errors.ts"),y=I("./src/types/transmuxer.ts"),p=I("./src/utils/mp4-tools.ts"),c=I("./src/utils/discontinuities.ts"),a=I("./src/controller/fragment-finders.ts"),r=I("./src/controller/level-helper.ts"),s=I("./src/loader/fragment-loader.ts"),o=I("./src/crypt/decrypter.ts"),i=I("./src/utils/time-ranges.ts"),n=I("./src/types/loader.ts");function t(u,l){for(var h=0;h<l.length;h++){var v=l[h];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(u,v.key,v)}}function b(u,l,h){return l&&t(u.prototype,l),h&&t(u,h),u}function g(u){if(u===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u}function m(u,l){u.prototype=Object.create(l.prototype),u.prototype.constructor=u,x(u,l)}function x(u,l){return x=Object.setPrototypeOf||function(v,f){return v.__proto__=f,v},x(u,l)}var _={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"},d=function(u){m(l,u);function l(v,f,T){var P;return P=u.call(this)||this,P.hls=void 0,P.fragPrevious=null,P.fragCurrent=null,P.fragmentTracker=void 0,P.transmuxer=null,P._state=_.STOPPED,P.media=void 0,P.mediaBuffer=void 0,P.config=void 0,P.bitrateTest=!1,P.lastCurrentTime=0,P.nextLoadPosition=0,P.startPosition=0,P.loadedmetadata=!1,P.fragLoadError=0,P.retryDate=0,P.levels=null,P.fragmentLoader=void 0,P.levelLastLoaded=null,P.startFragRequested=!1,P.decrypter=void 0,P.initPTS=[],P.onvseeking=null,P.onvended=null,P.logPrefix="",P.log=void 0,P.warn=void 0,P.logPrefix=T,P.log=k.logger.log.bind(k.logger,T+":"),P.warn=k.logger.warn.bind(k.logger,T+":"),P.hls=v,P.fragmentLoader=new s.default(v.config),P.fragmentTracker=f,P.config=v.config,P.decrypter=new o.default(v,v.config),v.on(e.Events.KEY_LOADED,P.onKeyLoaded,g(P)),P}var h=l.prototype;return h.doTick=function(){this.onTickEnd()},h.onTickEnd=function(){},h.startLoad=function(f){},h.stopLoad=function(){this.fragmentLoader.abort();var f=this.fragCurrent;f&&this.fragmentTracker.removeFragment(f),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=_.STOPPED},h._streamEnded=function(f,T){var P=this.fragCurrent,L=this.fragmentTracker;if(!T.live&&P&&P.sn===T.endSN&&!f.nextStart){var S=L.getState(P);return S===R.FragmentState.PARTIAL||S===R.FragmentState.OK}return!1},h.onMediaAttached=function(f,T){var P=this.media=this.mediaBuffer=T.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),P.addEventListener("seeking",this.onvseeking),P.addEventListener("ended",this.onvended);var L=this.config;this.levels&&L.autoStartLoad&&this.state===_.STOPPED&&this.startLoad(L.startPosition)},h.onMediaDetaching=function(){var f=this.media;f!=null&&f.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),f&&(f.removeEventListener("seeking",this.onvseeking),f.removeEventListener("ended",this.onvended),this.onvseeking=this.onvended=null),this.media=this.mediaBuffer=null,this.loadedmetadata=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()},h.onMediaSeeking=function(){var f=this.config,T=this.fragCurrent,P=this.media,L=this.mediaBuffer,S=this.state,A=P?P.currentTime:0,W=H.BufferHelper.bufferInfo(L||P,A,f.maxBufferHole);if(this.log("media seeking to "+(Object(j.isFiniteNumber)(A)?A.toFixed(3):A)+", state: "+S),S===_.ENDED)this.resetLoadingState();else if(T&&!W.len){var D=f.maxFragLookUpTolerance,K=T.start-D,Y=T.start+T.duration+D,oe=A>Y;(A<K||oe)&&(oe&&T.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),T.loader.abort()),this.resetLoadingState())}P&&(this.lastCurrentTime=A),!this.loadedmetadata&&!W.len&&(this.nextLoadPosition=this.startPosition=A),this.tickImmediate()},h.onMediaEnded=function(){this.startPosition=this.lastCurrentTime=0},h.onKeyLoaded=function(f,T){if(this.state!==_.KEY_LOADING||T.frag!==this.fragCurrent||!this.levels)return;this.state=_.IDLE;var P=this.levels[T.frag.level].details;P&&this.loadFragment(T.frag,P,T.frag.start)},h.onHandlerDestroying=function(){this.stopLoad(),u.prototype.onHandlerDestroying.call(this)},h.onHandlerDestroyed=function(){this.state=_.STOPPED,this.hls.off(e.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)},h.loadKey=function(f,T){this.log("Loading key for "+f.sn+" of ["+T.startSN+"-"+T.endSN+"], "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+f.level),this.state=_.KEY_LOADING,this.fragCurrent=f,this.hls.trigger(e.Events.KEY_LOADING,{frag:f})},h.loadFragment=function(f,T,P){this._loadFragForPlayback(f,T,P)},h._loadFragForPlayback=function(f,T,P){var L=this,S=function(W){if(L.fragContextChanged(f)){L.warn("Fragment "+f.sn+(W.part?" p: "+W.part.index:"")+" of level "+f.level+" was dropped during download."),L.fragmentTracker.removeFragment(f);return}f.stats.chunkCount++,L._handleFragmentLoadProgress(W)};this._doFragLoad(f,T,P,S).then(function(A){if(!A)return;L.fragLoadError=0;var W=L.state;if(L.fragContextChanged(f)){(W===_.FRAG_LOADING||W===_.BACKTRACKING||!L.fragCurrent&&W===_.PARSING)&&(L.fragmentTracker.removeFragment(f),L.state=_.IDLE);return}if("payload"in A&&(L.log("Loaded fragment "+f.sn+" of level "+f.level),L.hls.trigger(e.Events.FRAG_LOADED,A),L.state===_.BACKTRACKING)){L.fragmentTracker.backtrack(f,A),L.resetFragmentLoading(f);return}L._handleFragmentLoadComplete(A)}).catch(function(A){L.warn(A),L.resetFragmentLoading(f)})},h.flushMainBuffer=function(f,T,P){if(P===void 0&&(P=null),!(f-T))return;var L={startOffset:f,endOffset:T,type:P};this.fragLoadError=0,this.hls.trigger(e.Events.BUFFER_FLUSHING,L)},h._loadInitSegment=function(f){var T=this;this._doFragLoad(f).then(function(P){if(!P||T.fragContextChanged(f)||!T.levels)throw new Error("init load aborted");return P}).then(function(P){var L=T.hls,S=P.payload,A=f.decryptdata;if(S&&S.byteLength>0&&A&&A.key&&A.iv&&A.method==="AES-128"){var W=self.performance.now();return T.decrypter.webCryptoDecrypt(new Uint8Array(S),A.key.buffer,A.iv.buffer).then(function(D){var K=self.performance.now();return L.trigger(e.Events.FRAG_DECRYPTED,{frag:f,payload:D,stats:{tstart:W,tdecrypt:K}}),P.payload=D,P})}return P}).then(function(P){var L=T.fragCurrent,S=T.hls,A=T.levels;if(!A)throw new Error("init load aborted, missing levels");var W=A[f.level].details;console.assert(W,"Level details are defined when init segment is loaded");var D=f.stats;T.state=_.IDLE,T.fragLoadError=0,f.data=new Uint8Array(P.payload),D.parsing.start=D.buffering.start=self.performance.now(),D.parsing.end=D.buffering.end=self.performance.now(),P.frag===L&&S.trigger(e.Events.FRAG_BUFFERED,{stats:D,frag:L,part:null,id:f.type}),T.tick()}).catch(function(P){T.warn(P),T.resetFragmentLoading(f)})},h.fragContextChanged=function(f){var T=this.fragCurrent;return!f||!T||f.level!==T.level||f.sn!==T.sn||f.urlId!==T.urlId},h.fragBufferedComplete=function(f,T){var P=this.mediaBuffer?this.mediaBuffer:this.media;this.log("Buffered "+f.type+" sn: "+f.sn+(T?" part: "+T.index:"")+" of "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+f.level+" "+i.default.toString(H.BufferHelper.getBuffered(P))),this.state=_.IDLE,this.tick()},h._handleFragmentLoadComplete=function(f){var T=this.transmuxer;if(!T)return;var P=f.frag,L=f.part,S=f.partsLoaded,A=!S||S.length===0||S.some(function(D){return!D}),W=new y.ChunkMetadata(P.level,P.sn,P.stats.chunkCount+1,0,L?L.index:-1,!A);T.flush(W)},h._handleFragmentLoadProgress=function(f){},h._doFragLoad=function(f,T,P,L){var S=this;if(P===void 0&&(P=null),!this.levels)throw new Error("frag load aborted, missing levels");if(P=Math.max(f.start,P||0),this.config.lowLatencyMode&&T){var A=T.partList;if(A&&L){P>f.end&&T.fragmentHint&&(f=T.fragmentHint);var W=this.getNextPart(A,f,P);if(W>-1){var D=A[W];return this.log("Loading part sn: "+f.sn+" p: "+D.index+" cc: "+f.cc+" of playlist ["+T.startSN+"-"+T.endSN+"] parts [0-"+W+"-"+(A.length-1)+"] "+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+f.level+", target: "+parseFloat(P.toFixed(3))),this.nextLoadPosition=D.start+D.duration,this.state=_.FRAG_LOADING,this.hls.trigger(e.Events.FRAG_LOADING,{frag:f,part:A[W],targetBufferTime:P}),this.doFragPartsLoad(f,A,W,L).catch(function(K){return S.handleFragLoadError(K)})}else if(!f.url||this.loadedEndOfParts(A,P))return Promise.resolve(null)}}return this.log("Loading fragment "+f.sn+" cc: "+f.cc+" "+(T?"of ["+T.startSN+"-"+T.endSN+"] ":"")+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+f.level+", target: "+parseFloat(P.toFixed(3))),Object(j.isFiniteNumber)(f.sn)&&!this.bitrateTest&&(this.nextLoadPosition=f.start+f.duration),this.state=_.FRAG_LOADING,this.hls.trigger(e.Events.FRAG_LOADING,{frag:f,targetBufferTime:P}),this.fragmentLoader.load(f,L).catch(function(K){return S.handleFragLoadError(K)})},h.doFragPartsLoad=function(f,T,P,L){var S=this;return new Promise(function(A,W){var D=[],K=function Y(oe){var le=T[oe];S.fragmentLoader.loadPart(f,le,L).then(function(Se){D[le.index]=Se;var Ee=Se.part;S.hls.trigger(e.Events.FRAG_LOADED,Se);var ae=T[oe+1];if(ae&&ae.fragment===f)Y(oe+1);else return A({frag:f,part:Ee,partsLoaded:D})}).catch(W)};K(P)})},h.handleFragLoadError=function(f){var T=f.data;return T&&T.details===O.ErrorDetails.INTERNAL_ABORTED?this.handleFragLoadAborted(T.frag,T.part):this.hls.trigger(e.Events.ERROR,T),null},h._handleTransmuxerFlush=function(f){var T=this.getCurrentContext(f);if(!T||this.state!==_.PARSING){this.fragCurrent||(this.state=_.IDLE);return}var P=T.frag,L=T.part,S=T.level,A=self.performance.now();P.stats.parsing.end=A,L&&(L.stats.parsing.end=A),this.updateLevelTiming(P,L,S,f.partial)},h.getCurrentContext=function(f){var T=this.levels,P=f.level,L=f.sn,S=f.part;if(!T||!T[P])return this.warn("Levels object was unset while buffering fragment "+L+" of level "+P+". The current chunk will not be buffered."),null;var A=T[P],W=S>-1?Object(r.getPartWith)(A,L,S):null,D=W?W.fragment:Object(r.getFragmentWithSN)(A,L,this.fragCurrent);return D?{frag:D,part:W,level:A}:null},h.bufferFragmentData=function(f,T,P,L){if(!f||this.state!==_.PARSING)return;var S=f.data1,A=f.data2,W=S;if(S&&A&&(W=Object(p.appendUint8Array)(S,A)),!W||!W.length)return;var D={type:f.type,frag:T,part:P,chunkMeta:L,parent:T.type,data:W};this.hls.trigger(e.Events.BUFFER_APPENDING,D),f.dropped&&f.independent&&!P&&this.flushBufferGap(T)},h.flushBufferGap=function(f){var T=this.media;if(!T)return;if(!H.BufferHelper.isBuffered(T,T.currentTime)){this.flushMainBuffer(0,f.start);return}var P=T.currentTime,L=H.BufferHelper.bufferInfo(T,P,0),S=f.duration,A=Math.min(this.config.maxFragLookUpTolerance*2,S*.25),W=Math.max(Math.min(f.start-A,L.end-A),P+A);f.start-W>A&&this.flushMainBuffer(W,f.start)},h.getFwdBufferInfo=function(f,T){var P=this.config,L=this.getLoadPosition();if(!Object(j.isFiniteNumber)(L))return null;var S=H.BufferHelper.bufferInfo(f,L,P.maxBufferHole);if(S.len===0&&S.nextStart!==void 0){var A=this.fragmentTracker.getBufferedFrag(L,T);if(A&&S.nextStart<A.end)return H.BufferHelper.bufferInfo(f,L,Math.max(S.nextStart,P.maxBufferHole))}return S},h.getMaxBufferLength=function(f){var T=this.config,P;return f?P=Math.max(8*T.maxBufferSize/f,T.maxBufferLength):P=T.maxBufferLength,Math.min(P,T.maxMaxBufferLength)},h.reduceMaxBufferLength=function(f){var T=this.config,P=f||T.maxBufferLength;return T.maxMaxBufferLength>=P?(T.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to "+T.maxMaxBufferLength+"s"),!0):!1},h.getNextFragment=function(f,T){var P,L,S=T.fragments,A=S.length;if(!A)return null;var W=this.config,D=S[0].start,K;if(T.live){var Y=W.initialLiveManifestSize;if(A<Y)return this.warn("Not enough fragments to start playback (have: "+A+", need: "+Y+")"),null;!T.PTSKnown&&!this.startFragRequested&&this.startPosition===-1&&(K=this.getInitialLiveFragment(T,S),this.startPosition=K?this.hls.liveSyncPosition||K.start:f)}else f<=D&&(K=S[0]);if(!K){var oe=W.lowLatencyMode?T.partEnd:T.fragmentEnd;K=this.getFragmentAtPosition(f,oe,T)}return(P=K)!==null&&P!==void 0&&P.initSegment&&!((L=K)!==null&&L!==void 0&&L.initSegment.data)&&!this.bitrateTest&&(K=K.initSegment),K},h.getNextPart=function(f,T,P){for(var L=-1,S=!1,A=!0,W=0,D=f.length;W<D;W++){var K=f[W];if(A=A&&!K.independent,L>-1&&P<K.start)break;var Y=K.loaded;!Y&&(S||K.independent||A)&&K.fragment===T&&(L=W),S=Y}return L},h.loadedEndOfParts=function(f,T){var P=f[f.length-1];return P&&T>P.start&&P.loaded},h.getInitialLiveFragment=function(f,T){var P=this.fragPrevious,L=null;if(P){if(f.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: "+P.programDateTime),L=Object(a.findFragmentByPDT)(T,P.endProgramDateTime,this.config.maxFragLookUpTolerance)),!L){var S=P.sn+1;if(S>=f.startSN&&S<=f.endSN){var A=T[S-f.startSN];P.cc===A.cc&&(L=A,this.log("Live playlist, switching playlist, load frag with next SN: "+L.sn))}L||(L=Object(a.findFragWithCC)(T,P.cc),L&&this.log("Live playlist, switching playlist, load frag with same CC: "+L.sn))}}else{var W=this.hls.liveSyncPosition;W!==null&&(L=this.getFragmentAtPosition(W,this.bitrateTest?f.fragmentEnd:f.edge,f))}return L},h.getFragmentAtPosition=function(f,T,P){var L=this.config,S=this.fragPrevious,A=P.fragments,W=P.endSN,D=P.fragmentHint,K=L.maxFragLookUpTolerance,Y=!!(L.lowLatencyMode&&P.partList&&D);Y&&D&&!this.bitrateTest&&(A=A.concat(D),W=D.sn);var oe;if(f<T){var le=f>T-K?0:K;oe=Object(a.findFragmentByPTS)(S,A,f,le)}else oe=A[A.length-1];if(oe){var Se=oe.sn-P.startSN,Ee=S&&oe.level===S.level,ae=A[Se+1],Ce=this.fragmentTracker.getState(oe);if(Ce===R.FragmentState.BACKTRACKED){oe=null;for(var Le=Se;A[Le]&&this.fragmentTracker.getState(A[Le])===R.FragmentState.BACKTRACKED;)S?oe=A[Le--]:oe=A[--Le];oe||(oe=ae)}else S&&oe.sn===S.sn&&!Y&&(Ee&&(oe.sn<W&&this.fragmentTracker.getState(ae)!==R.FragmentState.OK?(this.log("SN "+oe.sn+" just loaded, load next one: "+ae.sn),oe=ae):oe=null))}return oe},h.synchronizeToLiveEdge=function(f){var T=this.config,P=this.media;if(!P)return;var L=this.hls.liveSyncPosition,S=P.currentTime,A=f.fragments[0].start,W=f.edge,D=S>=A-T.maxFragLookUpTolerance&&S<=W;if(L!==null&&P.duration>L&&(S<L||!D)){var K=T.liveMaxLatencyDuration!==void 0?T.liveMaxLatencyDuration:T.liveMaxLatencyDurationCount*f.targetduration;(!D&&P.readyState<4||S<W-K)&&(this.loadedmetadata||(this.nextLoadPosition=L),P.readyState&&(this.warn("Playback: "+S.toFixed(3)+" is located too far from the end of live sliding playlist: "+W+", reset currentTime to : "+L.toFixed(3)),P.currentTime=L))}},h.alignPlaylists=function(f,T){var P=this.levels,L=this.levelLastLoaded,S=this.fragPrevious,A=L!==null?P[L]:null,W=f.fragments.length;if(!W)return this.warn("No fragments in live playlist"),0;var D=f.fragments[0].start,K=!T,Y=f.alignedSliding&&Object(j.isFiniteNumber)(D);if(K||!Y&&!D){Object(c.alignStream)(S,A,f);var oe=f.fragments[0].start;return this.log("Live playlist sliding: "+oe.toFixed(2)+" start-sn: "+(T?T.startSN:"na")+"->"+f.startSN+" prev-sn: "+(S?S.sn:"na")+" fragments: "+W),oe}return D},h.waitForCdnTuneIn=function(f){var T=3;return f.live&&f.canBlockReload&&f.tuneInGoal>Math.max(f.partHoldBack,f.partTarget*T)},h.setStartPosition=function(f,T){var P=this.startPosition;if(P<T&&(P=-1),P===-1||this.lastCurrentTime===-1){var L=f.startTimeOffset;Object(j.isFiniteNumber)(L)?(P=T+L,L<0&&(P+=f.totalduration),P=Math.min(Math.max(T,P),T+f.totalduration),this.log("Start time offset "+L+" found in playlist, adjust startPosition to "+P),this.startPosition=P):f.live?P=this.hls.liveSyncPosition||T:this.startPosition=P=0,this.lastCurrentTime=P}this.nextLoadPosition=P},h.getLoadPosition=function(){var f=this.media,T=0;return this.loadedmetadata&&f?T=f.currentTime:this.nextLoadPosition&&(T=this.nextLoadPosition),T},h.handleFragLoadAborted=function(f,T){this.transmuxer&&f.sn!=="initSegment"&&f.stats.aborted&&(this.warn("Fragment "+f.sn+(T?" part"+T.index:"")+" of level "+f.level+" was aborted"),this.resetFragmentLoading(f))},h.resetFragmentLoading=function(f){(!this.fragCurrent||!this.fragContextChanged(f))&&(this.state=_.IDLE)},h.onFragmentOrKeyLoadError=function(f,T){if(T.fatal)return;var P=T.frag;if(!P||P.type!==f)return;var L=this.fragCurrent;console.assert(L&&P.sn===L.sn&&P.level===L.level&&P.urlId===L.urlId,"Frag load error must match current frag to retry");var S=this.config;if(this.fragLoadError+1<=S.fragLoadingMaxRetry){if(this.resetLiveStartWhenNotLoaded(P.level))return;var A=Math.min(Math.pow(2,this.fragLoadError)*S.fragLoadingRetryDelay,S.fragLoadingMaxRetryTimeout);this.warn("Fragment "+P.sn+" of "+f+" "+P.level+" failed to load, retrying in "+A+"ms"),this.retryDate=self.performance.now()+A,this.fragLoadError++,this.state=_.FRAG_LOADING_WAITING_RETRY}else T.levelRetry?(f===n.PlaylistLevelType.AUDIO&&(this.fragCurrent=null),this.fragLoadError=0,this.state=_.IDLE):(k.logger.error(T.details+" reaches max retry, redispatch as fatal ..."),T.fatal=!0,this.hls.stopLoad(),this.state=_.ERROR)},h.afterBufferFlushed=function(f,T,P){if(!f)return;var L=H.BufferHelper.getBuffered(f);this.fragmentTracker.detectEvictedFragments(T,L,P),this.state===_.ENDED&&this.resetLoadingState()},h.resetLoadingState=function(){this.fragCurrent=null,this.fragPrevious=null,this.state=_.IDLE},h.resetLiveStartWhenNotLoaded=function(f){if(!this.loadedmetadata){this.startFragRequested=!1;var T=this.levels?this.levels[f].details:null;if(T!=null&&T.live)return this.startPosition=-1,this.setStartPosition(T,0),this.resetLoadingState(),!0;this.nextLoadPosition=this.startPosition}return!1},h.updateLevelTiming=function(f,T,P,L){var S=this,A=P.details;console.assert(!!A,"level.details must be defined");var W=Object.keys(f.elementaryStreams).reduce(function(D,K){var Y=f.elementaryStreams[K];if(Y){var oe=Y.endPTS-Y.startPTS;if(oe<=0)return S.warn("Could not parse fragment "+f.sn+" "+K+" duration reliably ("+oe+") resetting transmuxer to fallback to playlist timing"),S.resetTransmuxer(),D||!1;var le=L?0:Object(r.updateFragPTSDTS)(A,f,Y.startPTS,Y.endPTS,Y.startDTS,Y.endDTS);return S.hls.trigger(e.Events.LEVEL_PTS_UPDATED,{details:A,level:P,drift:le,type:K,frag:f,start:Y.startPTS,end:Y.endPTS}),!0}return D},!1);W?(this.state=_.PARSED,this.hls.trigger(e.Events.FRAG_PARSED,{frag:f,part:T})):this.resetLoadingState()},h.resetTransmuxer=function(){this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null)},b(l,[{key:"state",get:function(){return this._state},set:function(f){var T=this._state;T!==f&&(this._state=f,this.log(T+"->"+f))}}]),l}(C.default)},"./src/controller/buffer-controller.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"default",function(){return a});var j=I("./src/polyfills/number.ts"),C=I("./src/events.ts"),R=I("./src/utils/logger.ts"),H=I("./src/errors.ts"),k=I("./src/utils/buffer-helper.ts"),e=I("./src/utils/mediasource-helper.ts"),O=I("./src/loader/fragment.ts"),y=I("./src/controller/buffer-operation-queue.ts"),p=Object(e.getMediaSource)(),c=/([ha]vc.)(?:\.[^.,]+)+/,a=function(){function r(o){var i=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 n=i.hls,t=i.media,b=i.mediaSource;R.logger.log("[buffer-controller]: Media source opened"),t&&(i.updateMediaElementDuration(),n.trigger(C.Events.MEDIA_ATTACHED,{media:t})),b&&b.removeEventListener("sourceopen",i._onMediaSourceOpen),i.checkPendingTracks()},this._onMediaSourceClose=function(){R.logger.log("[buffer-controller]: Media source closed")},this._onMediaSourceEnded=function(){R.logger.log("[buffer-controller]: Media source ended")},this.hls=o,this._initSourceBuffer(),this.registerListeners()}var s=r.prototype;return s.hasSourceTypes=function(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0},s.destroy=function(){this.unregisterListeners(),this.details=null},s.registerListeners=function(){var i=this.hls;i.on(C.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),i.on(C.Events.MEDIA_DETACHING,this.onMediaDetaching,this),i.on(C.Events.MANIFEST_PARSED,this.onManifestParsed,this),i.on(C.Events.BUFFER_RESET,this.onBufferReset,this),i.on(C.Events.BUFFER_APPENDING,this.onBufferAppending,this),i.on(C.Events.BUFFER_CODECS,this.onBufferCodecs,this),i.on(C.Events.BUFFER_EOS,this.onBufferEos,this),i.on(C.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),i.on(C.Events.LEVEL_UPDATED,this.onLevelUpdated,this),i.on(C.Events.FRAG_PARSED,this.onFragParsed,this),i.on(C.Events.FRAG_CHANGED,this.onFragChanged,this)},s.unregisterListeners=function(){var i=this.hls;i.off(C.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),i.off(C.Events.MEDIA_DETACHING,this.onMediaDetaching,this),i.off(C.Events.MANIFEST_PARSED,this.onManifestParsed,this),i.off(C.Events.BUFFER_RESET,this.onBufferReset,this),i.off(C.Events.BUFFER_APPENDING,this.onBufferAppending,this),i.off(C.Events.BUFFER_CODECS,this.onBufferCodecs,this),i.off(C.Events.BUFFER_EOS,this.onBufferEos,this),i.off(C.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),i.off(C.Events.LEVEL_UPDATED,this.onLevelUpdated,this),i.off(C.Events.FRAG_PARSED,this.onFragParsed,this),i.off(C.Events.FRAG_CHANGED,this.onFragChanged,this)},s._initSourceBuffer=function(){this.sourceBuffer={},this.operationQueue=new y.default(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]}},s.onManifestParsed=function(i,n){var t=2;(n.audio&&!n.video||!n.altAudio)&&(t=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=t,this.details=null,R.logger.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")},s.onMediaAttaching=function(i,n){var t=this.media=n.media;if(t&&p){var b=this.mediaSource=new p;b.addEventListener("sourceopen",this._onMediaSourceOpen),b.addEventListener("sourceended",this._onMediaSourceEnded),b.addEventListener("sourceclose",this._onMediaSourceClose),t.src=self.URL.createObjectURL(b),this._objectUrl=t.src}},s.onMediaDetaching=function(){var i=this.media,n=this.mediaSource,t=this._objectUrl;if(n){if(R.logger.log("[buffer-controller]: media source detaching"),n.readyState==="open")try{n.endOfStream()}catch(b){R.logger.warn("[buffer-controller]: onMediaDetaching: "+b.message+" while calling endOfStream")}this.onBufferReset(),n.removeEventListener("sourceopen",this._onMediaSourceOpen),n.removeEventListener("sourceended",this._onMediaSourceEnded),n.removeEventListener("sourceclose",this._onMediaSourceClose),i&&(t&&self.URL.revokeObjectURL(t),i.src===t?(i.removeAttribute("src"),i.load()):R.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(C.Events.MEDIA_DETACHED,void 0)},s.onBufferReset=function(){var i=this;this.getSourceBufferTypes().forEach(function(n){var t=i.sourceBuffer[n];try{t&&(i.removeBufferListeners(n),i.mediaSource&&i.mediaSource.removeSourceBuffer(t),i.sourceBuffer[n]=void 0)}catch(b){R.logger.warn("[buffer-controller]: Failed to reset the "+n+" buffer",b)}}),this._initSourceBuffer()},s.onBufferCodecs=function(i,n){var t=this,b=this.getSourceBufferTypes().length;if(Object.keys(n).forEach(function(g){if(b){var m=t.tracks[g];if(m&&typeof m.buffer.changeType=="function"){var x=n[g],_=x.codec,d=x.levelCodec,u=x.container,l=(m.levelCodec||m.codec).replace(c,"$1"),h=(d||_).replace(c,"$1");if(l!==h){var v=u+";codecs="+(d||_);t.appendChangeType(g,v)}}}else t.pendingTracks[g]=n[g]}),b)return;this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()},s.appendChangeType=function(i,n){var t=this,b=this.operationQueue,g={execute:function(){var x=t.sourceBuffer[i];x&&(R.logger.log("[buffer-controller]: changing "+i+" sourceBuffer type to "+n),x.changeType(n)),b.shiftAndExecuteNext(i)},onStart:function(){},onComplete:function(){},onError:function(x){R.logger.warn("[buffer-controller]: Failed to change "+i+" SourceBuffer type",x)}};b.append(g,i)},s.onBufferAppending=function(i,n){var t=this,b=this.hls,g=this.operationQueue,m=this.tracks,x=n.data,_=n.type,d=n.frag,u=n.part,l=n.chunkMeta,h=l.buffering[_],v=self.performance.now();h.start=v;var f=d.stats.buffering,T=u?u.stats.buffering:null;f.start===0&&(f.start=v),T&&T.start===0&&(T.start=v);var P=m.audio,L=_==="audio"&&l.id===1&&(P==null?void 0:P.container)==="audio/mpeg",S={execute:function(){if(h.executeStart=self.performance.now(),L){var W=t.sourceBuffer[_];if(W){var D=d.start-W.timestampOffset;Math.abs(D)>=.1&&(R.logger.log("[buffer-controller]: Updating audio SourceBuffer timestampOffset to "+d.start+" (delta: "+D+") sn: "+d.sn+")"),W.timestampOffset=d.start)}}t.appendExecutor(x,_)},onStart:function(){},onComplete:function(){var W=self.performance.now();h.executeEnd=h.end=W,f.first===0&&(f.first=W),T&&T.first===0&&(T.first=W);var D=t.sourceBuffer,K={};for(var Y in D)K[Y]=k.BufferHelper.getBuffered(D[Y]);t.appendError=0,t.hls.trigger(C.Events.BUFFER_APPENDED,{type:_,frag:d,part:u,chunkMeta:l,parent:d.type,timeRanges:K})},onError:function(W){R.logger.error("[buffer-controller]: Error encountered while trying to append to the "+_+" SourceBuffer",W);var D={type:H.ErrorTypes.MEDIA_ERROR,parent:d.type,details:H.ErrorDetails.BUFFER_APPEND_ERROR,err:W,fatal:!1};W.code===DOMException.QUOTA_EXCEEDED_ERR?D.details=H.ErrorDetails.BUFFER_FULL_ERROR:(t.appendError++,D.details=H.ErrorDetails.BUFFER_APPEND_ERROR,t.appendError>b.config.appendErrorMaxRetry&&(R.logger.error("[buffer-controller]: Failed "+b.config.appendErrorMaxRetry+" times to append segment in sourceBuffer"),D.fatal=!0)),b.trigger(C.Events.ERROR,D)}};g.append(S,_)},s.onBufferFlushing=function(i,n){var t=this,b=this.operationQueue,g=function(x){return{execute:t.removeExecutor.bind(t,x,n.startOffset,n.endOffset),onStart:function(){},onComplete:function(){t.hls.trigger(C.Events.BUFFER_FLUSHED,{type:x})},onError:function(d){R.logger.warn("[buffer-controller]: Failed to remove from "+x+" SourceBuffer",d)}}};n.type?b.append(g(n.type),n.type):this.getSourceBufferTypes().forEach(function(m){b.append(g(m),m)})},s.onFragParsed=function(i,n){var t=this,b=n.frag,g=n.part,m=[],x=g?g.elementaryStreams:b.elementaryStreams;x[O.ElementaryStreamTypes.AUDIOVIDEO]?m.push("audiovideo"):(x[O.ElementaryStreamTypes.AUDIO]&&m.push("audio"),x[O.ElementaryStreamTypes.VIDEO]&&m.push("video"));var _=function(){var u=self.performance.now();b.stats.buffering.end=u,g&&(g.stats.buffering.end=u);var l=g?g.stats:b.stats;t.hls.trigger(C.Events.FRAG_BUFFERED,{frag:b,part:g,stats:l,id:b.type})};m.length===0&&R.logger.warn("Fragments must have at least one ElementaryStreamType set. type: "+b.type+" level: "+b.level+" sn: "+b.sn),this.blockBuffers(_,m)},s.onFragChanged=function(i,n){this.flushBackBuffer()},s.onBufferEos=function(i,n){var t=this,b=this.getSourceBufferTypes().reduce(function(g,m){var x=t.sourceBuffer[m];return(!n.type||n.type===m)&&(x&&!x.ended&&(x.ended=!0,R.logger.log("[buffer-controller]: "+m+" sourceBuffer now EOS"))),g&&!!(!x||x.ended)},!0);b&&this.blockBuffers(function(){var g=t.mediaSource;if(!g||g.readyState!=="open")return;g.endOfStream()})},s.onLevelUpdated=function(i,n){var t=n.details;if(!t.fragments.length)return;this.details=t,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration()},s.flushBackBuffer=function(){var i=this.hls,n=this.details,t=this.media,b=this.sourceBuffer;if(!t||n===null)return;var g=this.getSourceBufferTypes();if(!g.length)return;var m=n.live&&i.config.liveBackBufferLength!==null?i.config.liveBackBufferLength:i.config.backBufferLength;if(!Object(j.isFiniteNumber)(m)||m<0)return;var x=t.currentTime,_=n.levelTargetDuration,d=Math.max(m,_),u=Math.floor(x/_)*_-d;g.forEach(function(l){var h=b[l];if(h){var v=k.BufferHelper.getBuffered(h);v.length>0&&u>v.start(0)&&(i.trigger(C.Events.BACK_BUFFER_REACHED,{bufferEnd:u}),n.live&&i.trigger(C.Events.LIVE_BACK_BUFFER_REACHED,{bufferEnd:u}),i.trigger(C.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:u,type:l}))}})},s.updateMediaElementDuration=function(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;var i=this.details,n=this.hls,t=this.media,b=this.mediaSource,g=i.fragments[0].start+i.totalduration,m=t.duration,x=Object(j.isFiniteNumber)(b.duration)?b.duration:0;i.live&&n.config.liveDurationInfinity?(R.logger.log("[buffer-controller]: Media Source duration is set to Infinity"),b.duration=Infinity,this.updateSeekableRange(i)):(g>x&&g>m||!Object(j.isFiniteNumber)(m))&&(R.logger.log("[buffer-controller]: Updating Media Source duration to "+g.toFixed(3)),b.duration=g)},s.updateSeekableRange=function(i){var n=this.mediaSource,t=i.fragments,b=t.length;if(b&&i.live&&n!==null&&n!==void 0&&n.setLiveSeekableRange){var g=Math.max(0,t[0].start),m=Math.max(g,g+i.totalduration);n.setLiveSeekableRange(g,m)}},s.checkPendingTracks=function(){var i=this.bufferCodecEventsExpected,n=this.operationQueue,t=this.pendingTracks,b=Object.keys(t).length;if(b&&!i||b===2){this.createSourceBuffers(t),this.pendingTracks={};var g=this.getSourceBufferTypes();if(g.length===0){this.hls.trigger(C.Events.ERROR,{type:H.ErrorTypes.MEDIA_ERROR,details:H.ErrorDetails.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,reason:"could not create source buffer for media codec(s)"});return}g.forEach(function(m){n.executeNext(m)})}},s.createSourceBuffers=function(i){var n=this.sourceBuffer,t=this.mediaSource;if(!t)throw Error("createSourceBuffers called when mediaSource was null");var b=0;for(var g in i)if(!n[g]){var m=i[g];if(!m)throw Error("source buffer exists for track "+g+", however track does not");var x=m.levelCodec||m.codec,_=m.container+";codecs="+x;R.logger.log("[buffer-controller]: creating sourceBuffer("+_+")");try{var d=n[g]=t.addSourceBuffer(_),u=g;this.addBufferListener(u,"updatestart",this._onSBUpdateStart),this.addBufferListener(u,"updateend",this._onSBUpdateEnd),this.addBufferListener(u,"error",this._onSBUpdateError),this.tracks[g]={buffer:d,codec:x,container:m.container,levelCodec:m.levelCodec,id:m.id},b++}catch(l){R.logger.error("[buffer-controller]: error while trying to add sourceBuffer: "+l.message),this.hls.trigger(C.Events.ERROR,{type:H.ErrorTypes.MEDIA_ERROR,details:H.ErrorDetails.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:l,mimeType:_})}}b&&this.hls.trigger(C.Events.BUFFER_CREATED,{tracks:this.tracks})},s._onSBUpdateStart=function(i){var n=this.operationQueue,t=n.current(i);t.onStart()},s._onSBUpdateEnd=function(i){var n=this.operationQueue,t=n.current(i);t.onComplete(),n.shiftAndExecuteNext(i)},s._onSBUpdateError=function(i,n){R.logger.error("[buffer-controller]: "+i+" SourceBuffer error",n),this.hls.trigger(C.Events.ERROR,{type:H.ErrorTypes.MEDIA_ERROR,details:H.ErrorDetails.BUFFER_APPENDING_ERROR,fatal:!1});var t=this.operationQueue.current(i);t&&t.onError(n)},s.removeExecutor=function(i,n,t){var b=this.media,g=this.mediaSource,m=this.operationQueue,x=this.sourceBuffer,_=x[i];if(!b||!g||!_){R.logger.warn("[buffer-controller]: Attempting to remove from the "+i+" SourceBuffer, but it does not exist"),m.shiftAndExecuteNext(i);return}var d=Object(j.isFiniteNumber)(b.duration)?b.duration:Infinity,u=Object(j.isFiniteNumber)(g.duration)?g.duration:Infinity,l=Math.max(0,n),h=Math.min(t,d,u);h>l?(R.logger.log("[buffer-controller]: Removing ["+l+","+h+"] from the "+i+" SourceBuffer"),console.assert(!_.updating,i+" sourceBuffer must not be updating"),_.remove(l,h)):m.shiftAndExecuteNext(i)},s.appendExecutor=function(i,n){var t=this.operationQueue,b=this.sourceBuffer,g=b[n];if(!g){R.logger.warn("[buffer-controller]: Attempting to append to the "+n+" SourceBuffer, but it does not exist"),t.shiftAndExecuteNext(n);return}g.ended=!1,console.assert(!g.updating,n+" sourceBuffer must not be updating"),g.appendBuffer(i)},s.blockBuffers=function(i,n){var t=this;if(n===void 0&&(n=this.getSourceBufferTypes()),!n.length){R.logger.log("[buffer-controller]: Blocking operation requested, but no SourceBuffers exist"),Promise.resolve(i);return}var b=this.operationQueue,g=n.map(function(m){return b.appendBlocker(m)});Promise.all(g).then(function(){i(),n.forEach(function(m){var x=t.sourceBuffer[m];(!x||!x.updating)&&b.shiftAndExecuteNext(m)})})},s.getSourceBufferTypes=function(){return Object.keys(this.sourceBuffer)},s.addBufferListener=function(i,n,t){var b=this.sourceBuffer[i];if(!b)return;var g=t.bind(this,i);this.listeners[i].push({event:n,listener:g}),b.addEventListener(n,g)},s.removeBufferListeners=function(i){var n=this.sourceBuffer[i];if(!n)return;this.listeners[i].forEach(function(t){n.removeEventListener(t.event,t.listener)})},r}()},"./src/controller/buffer-operation-queue.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"default",function(){return C});var j=I("./src/utils/logger.ts"),C=function(){function R(k){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=k}var H=R.prototype;return H.append=function(e,O){var y=this.queues[O];y.push(e),y.length===1&&this.buffers[O]&&this.executeNext(O)},H.insertAbort=function(e,O){var y=this.queues[O];y.unshift(e),this.executeNext(O)},H.appendBlocker=function(e){var O,y=new Promise(function(c){O=c}),p={execute:O,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(p,e),y},H.executeNext=function(e){var O=this.buffers,y=this.queues,p=O[e],c=y[e];if(c.length){var a=c[0];try{a.execute()}catch(r){j.logger.warn("[buffer-operation-queue]: Unhandled exception executing the current operation"),a.onError(r),(!p||!p.updating)&&(c.shift(),this.executeNext(e))}}},H.shiftAndExecuteNext=function(e){this.queues[e].shift(),this.executeNext(e)},H.current=function(e){return this.queues[e][0]},R}()},"./src/controller/cap-level-controller.ts":function(Q,M,I){"use strict";I.r(M);var j=I("./src/events.ts");function C(k,e){for(var O=0;O<e.length;O++){var y=e[O];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(k,y.key,y)}}function R(k,e,O){return e&&C(k.prototype,e),O&&C(k,O),k}var H=function(){function k(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 e=k.prototype;return e.setStreamController=function(y){this.streamController=y},e.destroy=function(){this.unregisterListener(),this.hls.config.capLevelToPlayerSize&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null},e.registerListeners=function(){var y=this.hls;y.on(j.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),y.on(j.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),y.on(j.Events.MANIFEST_PARSED,this.onManifestParsed,this),y.on(j.Events.BUFFER_CODECS,this.onBufferCodecs,this),y.on(j.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},e.unregisterListener=function(){var y=this.hls;y.off(j.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),y.off(j.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),y.off(j.Events.MANIFEST_PARSED,this.onManifestParsed,this),y.off(j.Events.BUFFER_CODECS,this.onBufferCodecs,this),y.off(j.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},e.onFpsDropLevelCapping=function(y,p){k.isLevelAllowed(p.droppedLevel,this.restrictedLevels)&&this.restrictedLevels.push(p.droppedLevel)},e.onMediaAttaching=function(y,p){this.media=p.media instanceof HTMLVideoElement?p.media:null},e.onManifestParsed=function(y,p){var c=this.hls;this.restrictedLevels=[],this.firstLevel=p.firstLevel,c.config.capLevelToPlayerSize&&p.video&&this.startCapping()},e.onBufferCodecs=function(y,p){var c=this.hls;c.config.capLevelToPlayerSize&&p.video&&this.startCapping()},e.onMediaDetaching=function(){this.stopCapping()},e.detectPlayerSize=function(){if(this.media&&this.mediaHeight>0&&this.mediaWidth>0){var y=this.hls.levels;if(y.length){var p=this.hls;p.autoLevelCapping=this.getMaxLevel(y.length-1),p.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=p.autoLevelCapping}}},e.getMaxLevel=function(y){var p=this,c=this.hls.levels;if(!c.length)return-1;var a=c.filter(function(r,s){return k.isLevelAllowed(s,p.restrictedLevels)&&s<=y});return this.clientRect=null,k.getMaxLevelByMediaSize(a,this.mediaWidth,this.mediaHeight)},e.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()},e.stopCapping=function(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)},e.getDimensions=function(){if(this.clientRect)return this.clientRect;var y=this.media,p={width:0,height:0};if(y){var c=y.getBoundingClientRect();p.width=c.width,p.height=c.height,!p.width&&!p.height&&(p.width=c.right-c.left||y.width||0,p.height=c.bottom-c.top||y.height||0)}return this.clientRect=p,p},k.isLevelAllowed=function(y,p){return p===void 0&&(p=[]),p.indexOf(y)===-1},k.getMaxLevelByMediaSize=function(y,p,c){if(!y||!y.length)return-1;for(var a=function(n,t){return t?n.width!==t.width||n.height!==t.height:!0},r=y.length-1,s=0;s<y.length;s+=1){var o=y[s];if((o.width>=p||o.height>=c)&&a(o,y[s+1])){r=s;break}}return r},R(k,[{key:"mediaWidth",get:function(){return this.getDimensions().width*k.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*k.contentScaleFactor}}],[{key:"contentScaleFactor",get:function(){var y=1;try{y=self.devicePixelRatio}catch(p){}return y}}]),k}();M.default=H},"./src/controller/cmcd-controller.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"default",function(){return a});var j=I("./src/events.ts"),C=I("./src/types/cmcd.ts"),R=I("./src/utils/buffer-helper.ts"),H=I("./src/utils/logger.ts");function k(r,s){for(var o=0;o<s.length;o++){var i=s[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,i.key,i)}}function e(r,s,o){return s&&k(r.prototype,s),o&&k(r,o),r}function O(r,s){var o=typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(o)return(o=o.call(r)).next.bind(o);if(Array.isArray(r)||(o=y(r))||s&&r&&typeof r.length=="number"){o&&(r=o);var i=0;return function(){return i>=r.length?{done:!0}:{done:!1,value:r[i++]}}}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 y(r,s){if(!r)return;if(typeof r=="string")return p(r,s);var o=Object.prototype.toString.call(r).slice(8,-1);if(o==="Object"&&r.constructor&&(o=r.constructor.name),o==="Map"||o==="Set")return Array.from(r);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return p(r,s)}function p(r,s){(s==null||s>r.length)&&(s=r.length);for(var o=0,i=new Array(s);o<s;o++)i[o]=r[o];return i}function c(){return c=Object.assign||function(r){for(var s=1;s<arguments.length;s++){var o=arguments[s];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])}return r},c.apply(this,arguments)}var a=function(){function r(o){var i=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(){i.initialized&&(i.starved=!0),i.buffering=!0},this.onPlaying=function(){i.initialized||(i.initialized=!0),i.buffering=!1},this.applyPlaylistData=function(b){try{i.apply(b,{ot:C.CMCDObjectType.MANIFEST,su:!i.initialized})}catch(g){H.logger.warn("Could not generate manifest CMCD data.",g)}},this.applyFragmentData=function(b){try{var g=b.frag,m=i.hls.levels[g.level],x=i.getObjectType(g),_={d:g.duration*1e3,ot:x};(x===C.CMCDObjectType.VIDEO||x===C.CMCDObjectType.AUDIO||x==C.CMCDObjectType.MUXED)&&(_.br=m.bitrate/1e3,_.tb=i.getTopBandwidth(x),_.bl=i.getBufferLength(x)),i.apply(b,_)}catch(d){H.logger.warn("Could not generate segment CMCD data.",d)}},this.hls=o;var n=this.config=o.config,t=n.cmcd;t!=null&&(n.pLoader=this.createPlaylistLoader(),n.fLoader=this.createFragmentLoader(),this.sid=t.sessionId||r.uuid(),this.cid=t.contentId,this.useHeaders=t.useHeaders===!0,this.registerListeners())}var s=r.prototype;return s.registerListeners=function(){var i=this.hls;i.on(j.Events.MEDIA_ATTACHED,this.onMediaAttached,this),i.on(j.Events.MEDIA_DETACHED,this.onMediaDetached,this),i.on(j.Events.BUFFER_CREATED,this.onBufferCreated,this)},s.unregisterListeners=function(){var i=this.hls;i.off(j.Events.MEDIA_ATTACHED,this.onMediaAttached,this),i.off(j.Events.MEDIA_DETACHED,this.onMediaDetached,this),i.off(j.Events.BUFFER_CREATED,this.onBufferCreated,this),this.onMediaDetached()},s.destroy=function(){this.unregisterListeners(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null},s.onMediaAttached=function(i,n){this.media=n.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)},s.onMediaDetached=function(){if(!this.media)return;this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null},s.onBufferCreated=function(i,n){var t,b;this.audioBuffer=(t=n.tracks.audio)===null||t===void 0?void 0:t.buffer,this.videoBuffer=(b=n.tracks.video)===null||b===void 0?void 0:b.buffer},s.createData=function(){var i;return{v:C.CMCDVersion,sf:C.CMCDStreamingFormat.HLS,sid:this.sid,cid:this.cid,pr:(i=this.media)===null||i===void 0?void 0:i.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}},s.apply=function(i,n){n===void 0&&(n={}),c(n,this.createData());var t=n.ot===C.CMCDObjectType.INIT||n.ot===C.CMCDObjectType.VIDEO||n.ot===C.CMCDObjectType.MUXED;if(this.starved&&t&&(n.bs=!0,n.su=!0,this.starved=!1),n.su==null&&(n.su=this.buffering),this.useHeaders){var b=r.toHeaders(n);if(!Object.keys(b).length)return;i.headers||(i.headers={}),c(i.headers,b)}else{var g=r.toQuery(n);if(!g)return;i.url=r.appendQueryToUri(i.url,g)}},s.getObjectType=function(i){var n=i.type;return n==="subtitle"?C.CMCDObjectType.TIMED_TEXT:i.sn==="initSegment"?C.CMCDObjectType.INIT:n==="audio"?C.CMCDObjectType.AUDIO:n==="main"?this.hls.audioTracks.length?C.CMCDObjectType.VIDEO:C.CMCDObjectType.MUXED:void 0},s.getTopBandwidth=function(i){for(var n=0,t=i===C.CMCDObjectType.AUDIO?this.hls.audioTracks:this.hls.levels,b=O(t),g;!(g=b()).done;){var m=g.value;m.bitrate>n&&(n=m.bitrate)}return n>0?n:NaN},s.getBufferLength=function(i){var n=this.hls.media,t=i===C.CMCDObjectType.AUDIO?this.audioBuffer:this.videoBuffer;if(!t||!n)return NaN;var b=R.BufferHelper.bufferInfo(t,n.currentTime,this.config.maxBufferHole);return b.len*1e3},s.createPlaylistLoader=function(){var i=this.config.pLoader,n=this.applyPlaylistData,t=i||this.config.loader;return function(){function b(m){this.loader=void 0,this.loader=new t(m)}var g=b.prototype;return g.destroy=function(){this.loader.destroy()},g.abort=function(){this.loader.abort()},g.load=function(x,_,d){n(x),this.loader.load(x,_,d)},e(b,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),b}()},s.createFragmentLoader=function(){var i=this.config.fLoader,n=this.applyFragmentData,t=i||this.config.loader;return function(){function b(m){this.loader=void 0,this.loader=new t(m)}var g=b.prototype;return g.destroy=function(){this.loader.destroy()},g.abort=function(){this.loader.abort()},g.load=function(x,_,d){n(x),this.loader.load(x,_,d)},e(b,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),b}()},r.uuid=function(){var i=URL.createObjectURL(new Blob),n=i.toString();return URL.revokeObjectURL(i),n.substr(n.lastIndexOf("/")+1)},r.serialize=function(i){for(var n=[],t=function(L){return!Number.isNaN(L)&&L!=null&&L!==""&&L!==!1},b=function(L){return Math.round(L)},g=function(L){return b(L/100)*100},m=function(L){return encodeURIComponent(L)},x={br:b,d:b,bl:g,dl:g,mtp:g,nor:m,rtp:g,tb:b},_=Object.keys(i||{}).sort(),d=O(_),u;!(u=d()).done;){var l=u.value,h=i[l];if(!t(h))continue;if(l==="v"&&h===1)continue;if(l=="pr"&&h===1)continue;var v=x[l];v&&(h=v(h));var f=typeof h,T=void 0;l==="ot"||l==="sf"||l==="st"?T=l+"="+h:f==="boolean"?T=l:f==="number"?T=l+"="+h:T=l+"="+JSON.stringify(h),n.push(T)}return n.join(",")},r.toHeaders=function(i){for(var n=Object.keys(i),t={},b=["Object","Request","Session","Status"],g=[{},{},{},{}],m={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},x=0,_=n;x<_.length;x++){var d=_[x],u=m[d]!=null?m[d]:1;g[u][d]=i[d]}for(var l=0;l<g.length;l++){var h=r.serialize(g[l]);h&&(t["CMCD-"+b[l]]=h)}return t},r.toQuery=function(i){return"CMCD="+encodeURIComponent(r.serialize(i))},r.appendQueryToUri=function(i,n){if(!n)return i;var t=i.includes("?")?"&":"?";return""+i+t+n},r}()},"./src/controller/eme-controller.ts":function(Q,M,I){"use strict";I.r(M);var j=I("./src/events.ts"),C=I("./src/errors.ts"),R=I("./src/utils/logger.ts"),H=I("./src/utils/mediakeys-helper.ts");function k(a,r){for(var s=0;s<r.length;s++){var o=r[s];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(a,o.key,o)}}function e(a,r,s){return r&&k(a.prototype,r),s&&k(a,s),a}var O=3,y=function(r,s,o){var i={audioCapabilities:[],videoCapabilities:[]};return r.forEach(function(n){i.audioCapabilities.push({contentType:'audio/mp4; codecs="'+n+'"',robustness:o.audioRobustness||""})}),s.forEach(function(n){i.videoCapabilities.push({contentType:'video/mp4; codecs="'+n+'"',robustness:o.videoRobustness||""})}),[i]},p=function(r,s,o,i){switch(r){case H.KeySystems.WIDEVINE:return y(s,o,i);default:throw new Error("Unknown key-system: "+r)}},c=function(){function a(s){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=s,this._config=s.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 r=a.prototype;return r.destroy=function(){this._unregisterListeners(),this.hls=this._onMediaEncrypted=null,this._requestMediaKeySystemAccess=null},r._registerListeners=function(){this.hls.on(j.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(j.Events.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(j.Events.MANIFEST_PARSED,this.onManifestParsed,this)},r._unregisterListeners=function(){this.hls.off(j.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(j.Events.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(j.Events.MANIFEST_PARSED,this.onManifestParsed,this)},r.getLicenseServerUrl=function(o){switch(o){case H.KeySystems.WIDEVINE:if(!this._widevineLicenseUrl)break;return this._widevineLicenseUrl}throw new Error('no license server URL configured for key-system "'+o+'"')},r._attemptKeySystemAccess=function(o,i,n){var t=this,b=p(o,i,n,this._drmSystemOptions);R.logger.log("Requesting encrypted media key-system access");var g=this.requestMediaKeySystemAccess(o,b);this.mediaKeysPromise=g.then(function(m){return t._onMediaKeySystemAccessObtained(o,m)}),g.catch(function(m){R.logger.error('Failed to obtain key-system "'+o+'" access:',m)})},r._onMediaKeySystemAccessObtained=function(o,i){var n=this;R.logger.log('Access for key-system "'+o+'" obtained');var t={mediaKeysSessionInitialized:!1,mediaKeySystemAccess:i,mediaKeySystemDomain:o};this._mediaKeysList.push(t);var b=Promise.resolve().then(function(){return i.createMediaKeys()}).then(function(g){return t.mediaKeys=g,R.logger.log('Media-keys created for key-system "'+o+'"'),n._onMediaKeysCreated(),g});return b.catch(function(g){R.logger.error("Failed to create media-keys:",g)}),b},r._onMediaKeysCreated=function(){var o=this;this._mediaKeysList.forEach(function(i){i.mediaKeysSession||(i.mediaKeysSession=i.mediaKeys.createSession(),o._onNewMediaKeySession(i.mediaKeysSession))})},r._onNewMediaKeySession=function(o){var i=this;R.logger.log("New key-system session "+o.sessionId),o.addEventListener("message",function(n){i._onKeySessionMessage(o,n.message)},!1)},r._onKeySessionMessage=function(o,i){R.logger.log("Got EME message event, creating license request"),this._requestLicense(i,function(n){R.logger.log("Received license data (length: "+(n&&n.byteLength)+"), updating key-session"),o.update(n)})},r.onMediaEncrypted=function(o){var i=this;if(R.logger.log('Media is encrypted using "'+o.initDataType+'" init data type'),!this.mediaKeysPromise){R.logger.error("Fatal: Media is encrypted but no CDM access or no keys have been requested"),this.hls.trigger(j.Events.ERROR,{type:C.ErrorTypes.KEY_SYSTEM_ERROR,details:C.ErrorDetails.KEY_SYSTEM_NO_KEYS,fatal:!0});return}var n=function(b){if(!i._media)return;i._attemptSetMediaKeys(b),i._generateRequestWithPreferredKeySession(o.initDataType,o.initData)};this.mediaKeysPromise.then(n).catch(n)},r._attemptSetMediaKeys=function(o){if(!this._media)throw new Error("Attempted to set mediaKeys without first attaching a media element");if(!this._hasSetMediaKeys){var i=this._mediaKeysList[0];if(!i||!i.mediaKeys){R.logger.error("Fatal: Media is encrypted but no CDM access or no keys have been obtained yet"),this.hls.trigger(j.Events.ERROR,{type:C.ErrorTypes.KEY_SYSTEM_ERROR,details:C.ErrorDetails.KEY_SYSTEM_NO_KEYS,fatal:!0});return}R.logger.log("Setting keys for encrypted media"),this._media.setMediaKeys(i.mediaKeys),this._hasSetMediaKeys=!0}},r._generateRequestWithPreferredKeySession=function(o,i){var n=this,t=this._mediaKeysList[0];if(!t){R.logger.error("Fatal: Media is encrypted but not any key-system access has been obtained yet"),this.hls.trigger(j.Events.ERROR,{type:C.ErrorTypes.KEY_SYSTEM_ERROR,details:C.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}if(t.mediaKeysSessionInitialized){R.logger.warn("Key-Session already initialized but requested again");return}var b=t.mediaKeysSession;if(!b){R.logger.error("Fatal: Media is encrypted but no key-session existing"),this.hls.trigger(j.Events.ERROR,{type:C.ErrorTypes.KEY_SYSTEM_ERROR,details:C.ErrorDetails.KEY_SYSTEM_NO_SESSION,fatal:!0});return}if(!i){R.logger.warn("Fatal: initData required for generating a key session is null"),this.hls.trigger(j.Events.ERROR,{type:C.ErrorTypes.KEY_SYSTEM_ERROR,details:C.ErrorDetails.KEY_SYSTEM_NO_INIT_DATA,fatal:!0});return}R.logger.log('Generating key-session request for "'+o+'" init data type'),t.mediaKeysSessionInitialized=!0,b.generateRequest(o,i).then(function(){R.logger.debug("Key-session generation succeeded")}).catch(function(g){R.logger.error("Error generating key-session request:",g),n.hls.trigger(j.Events.ERROR,{type:C.ErrorTypes.KEY_SYSTEM_ERROR,details:C.ErrorDetails.KEY_SYSTEM_NO_SESSION,fatal:!1})})},r._createLicenseXhr=function(o,i,n){var t=new XMLHttpRequest;t.responseType="arraybuffer",t.onreadystatechange=this._onLicenseRequestReadyStageChange.bind(this,t,o,i,n);var b=this._licenseXhrSetup;if(b)try{b.call(this.hls,t,o),b=void 0}catch(g){R.logger.error(g)}try{t.readyState||t.open("POST",o,!0),b&&b.call(this.hls,t,o)}catch(g){throw new Error("issue setting up KeySystem license XHR "+g)}return t},r._onLicenseRequestReadyStageChange=function(o,i,n,t){switch(o.readyState){case 4:if(o.status===200){this._requestLicenseFailureCount=0,R.logger.log("License request succeeded");var b=o.response,g=this._licenseResponseCallback;if(g)try{b=g.call(this.hls,o,i)}catch(x){R.logger.error(x)}t(b)}else{if(R.logger.error("License Request XHR failed ("+i+"). Status: "+o.status+" ("+o.statusText+")"),this._requestLicenseFailureCount++,this._requestLicenseFailureCount>O){this.hls.trigger(j.Events.ERROR,{type:C.ErrorTypes.KEY_SYSTEM_ERROR,details:C.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0});return}var m=O-this._requestLicenseFailureCount+1;R.logger.warn("Retrying license request, "+m+" attempts left"),this._requestLicense(n,t)}break}},r._generateLicenseRequestChallenge=function(o,i){switch(o.mediaKeySystemDomain){case H.KeySystems.WIDEVINE:return i}throw new Error("unsupported key-system: "+o.mediaKeySystemDomain)},r._requestLicense=function(o,i){R.logger.log("Requesting content license for key-system");var n=this._mediaKeysList[0];if(!n){R.logger.error("Fatal error: Media is encrypted but no key-system access has been obtained yet"),this.hls.trigger(j.Events.ERROR,{type:C.ErrorTypes.KEY_SYSTEM_ERROR,details:C.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}try{var t=this.getLicenseServerUrl(n.mediaKeySystemDomain),b=this._createLicenseXhr(t,o,i);R.logger.log("Sending license request to URL: "+t);var g=this._generateLicenseRequestChallenge(n,o);b.send(g)}catch(m){R.logger.error("Failure requesting DRM license: "+m),this.hls.trigger(j.Events.ERROR,{type:C.ErrorTypes.KEY_SYSTEM_ERROR,details:C.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0})}},r.onMediaAttached=function(o,i){if(!this._emeEnabled)return;var n=i.media;this._media=n,n.addEventListener("encrypted",this._onMediaEncrypted)},r.onMediaDetached=function(){var o=this._media,i=this._mediaKeysList;if(!o)return;o.removeEventListener("encrypted",this._onMediaEncrypted),this._media=null,this._mediaKeysList=[],Promise.all(i.map(function(n){if(n.mediaKeysSession)return n.mediaKeysSession.close().catch(function(){})})).then(function(){return o.setMediaKeys(null)}).catch(function(){})},r.onManifestParsed=function(o,i){if(!this._emeEnabled)return;var n=i.levels.map(function(b){return b.audioCodec}).filter(function(b){return!!b}),t=i.levels.map(function(b){return b.videoCodec}).filter(function(b){return!!b});this._attemptKeySystemAccess(H.KeySystems.WIDEVINE,n,t)},e(a,[{key:"requestMediaKeySystemAccess",get:function(){if(!this._requestMediaKeySystemAccess)throw new Error("No requestMediaKeySystemAccess function configured");return this._requestMediaKeySystemAccess}}]),a}();M.default=c},"./src/controller/fps-controller.ts":function(Q,M,I){"use strict";I.r(M);var j=I("./src/events.ts"),C=I("./src/utils/logger.ts"),R=function(){function H(e){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=e,this.registerListeners()}var k=H.prototype;return k.setStreamController=function(O){this.streamController=O},k.registerListeners=function(){this.hls.on(j.Events.MEDIA_ATTACHING,this.onMediaAttaching,this)},k.unregisterListeners=function(){this.hls.off(j.Events.MEDIA_ATTACHING,this.onMediaAttaching)},k.destroy=function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null},k.onMediaAttaching=function(O,y){var p=this.hls.config;if(p.capLevelOnFPSDrop){var c=y.media instanceof self.HTMLVideoElement?y.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),p.fpsDroppedMonitoringPeriod)}},k.checkFPS=function(O,y,p){var c=performance.now();if(y){if(this.lastTime){var a=c-this.lastTime,r=p-this.lastDroppedFrames,s=y-this.lastDecodedFrames,o=1e3*r/a,i=this.hls;if(i.trigger(j.Events.FPS_DROP,{currentDropped:r,currentDecoded:s,totalDroppedFrames:p}),o>0&&r>i.config.fpsDroppedMonitoringThreshold*s){var n=i.currentLevel;C.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+n),n>0&&(i.autoLevelCapping===-1||i.autoLevelCapping>=n)&&(n=n-1,i.trigger(j.Events.FPS_DROP_LEVEL_CAPPING,{level:n,droppedLevel:i.currentLevel}),i.autoLevelCapping=n,this.streamController.nextLevelSwitch())}}this.lastTime=c,this.lastDroppedFrames=p,this.lastDecodedFrames=y}},k.checkFPSInterval=function(){var O=this.media;if(O)if(this.isVideoPlaybackQualityAvailable){var y=O.getVideoPlaybackQuality();this.checkFPS(O,y.totalVideoFrames,y.droppedVideoFrames)}else this.checkFPS(O,O.webkitDecodedFrameCount,O.webkitDroppedFrameCount)},H}();M.default=R},"./src/controller/fragment-finders.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"findFragmentByPDT",function(){return R}),I.d(M,"findFragmentByPTS",function(){return H}),I.d(M,"fragmentWithinToleranceTest",function(){return k}),I.d(M,"pdtWithinToleranceTest",function(){return e}),I.d(M,"findFragWithCC",function(){return O});var j=I("./src/polyfills/number.ts"),C=I("./src/utils/binary-search.ts");function R(y,p,c){if(p===null||!Array.isArray(y)||!y.length||!Object(j.isFiniteNumber)(p))return null;var a=y[0].programDateTime;if(p<(a||0))return null;var r=y[y.length-1].endProgramDateTime;if(p>=(r||0))return null;c=c||0;for(var s=0;s<y.length;++s){var o=y[s];if(e(p,c,o))return o}return null}function H(y,p,c,a){c===void 0&&(c=0),a===void 0&&(a=0);var r=null;if(y?r=p[y.sn-p[0].sn+1]||null:c===0&&p[0].start===0&&(r=p[0]),r&&k(c,a,r)===0)return r;var s=C.default.search(p,k.bind(null,c,a));return s||r}function k(y,p,c){y===void 0&&(y=0),p===void 0&&(p=0);var a=Math.min(p,c.duration+(c.deltaPTS?c.deltaPTS:0));return c.start+c.duration-a<=y?1:c.start-a>y&&c.start?-1:0}function e(y,p,c){var a=Math.min(p,c.duration+(c.deltaPTS?c.deltaPTS:0))*1e3,r=c.endProgramDateTime||0;return r-a>y}function O(y,p){return C.default.search(y,function(c){return c.cc<p?1:c.cc>p?-1:0})}},"./src/controller/fragment-tracker.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"FragmentState",function(){return R}),I.d(M,"FragmentTracker",function(){return H});var j=I("./src/events.ts"),C=I("./src/types/loader.ts"),R;(function(O){O.NOT_LOADED="NOT_LOADED",O.BACKTRACKED="BACKTRACKED",O.APPENDING="APPENDING",O.PARTIAL="PARTIAL",O.OK="OK"})(R||(R={}));var H=function(){function O(p){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=p,this._registerListeners()}var y=O.prototype;return y._registerListeners=function(){var c=this.hls;c.on(j.Events.BUFFER_APPENDED,this.onBufferAppended,this),c.on(j.Events.FRAG_BUFFERED,this.onFragBuffered,this),c.on(j.Events.FRAG_LOADED,this.onFragLoaded,this)},y._unregisterListeners=function(){var c=this.hls;c.off(j.Events.BUFFER_APPENDED,this.onBufferAppended,this),c.off(j.Events.FRAG_BUFFERED,this.onFragBuffered,this),c.off(j.Events.FRAG_LOADED,this.onFragLoaded,this)},y.destroy=function(){this._unregisterListeners(),this.fragments=this.timeRanges=null},y.getAppendedFrag=function(c,a){if(a===C.PlaylistLevelType.MAIN){var r=this.activeFragment,s=this.activeParts;if(!r)return null;if(s)for(var o=s.length;o--;){var i=s[o],n=i?i.end:r.appendedPTS;if(i.start<=c&&n!==void 0&&c<=n)return o>9&&(this.activeParts=s.slice(o-9)),i}else if(r.start<=c&&r.appendedPTS!==void 0&&c<=r.appendedPTS)return r}return this.getBufferedFrag(c,a)},y.getBufferedFrag=function(c,a){for(var r=this.fragments,s=Object.keys(r),o=s.length;o--;){var i=r[s[o]];if((i==null?void 0:i.body.type)===a&&i.buffered){var n=i.body;if(n.start<=c&&c<=n.end)return n}}return null},y.detectEvictedFragments=function(c,a,r){var s=this;Object.keys(this.fragments).forEach(function(o){var i=s.fragments[o];if(!i)return;if(!i.buffered){i.body.type===r&&s.removeFragment(i.body);return}var n=i.range[c];if(!n)return;n.time.some(function(t){var b=!s.isTimeBuffered(t.startPTS,t.endPTS,a);return b&&s.removeFragment(i.body),b})})},y.detectPartialFragments=function(c){var a=this,r=this.timeRanges,s=c.frag,o=c.part;if(!r||s.sn==="initSegment")return;var i=e(s),n=this.fragments[i];if(!n)return;Object.keys(r).forEach(function(t){var b=s.elementaryStreams[t];if(!b)return;var g=r[t],m=o!==null||b.partial===!0;n.range[t]=a.getBufferedTimes(s,o,m,g)}),n.backtrack=n.loaded=null,Object.keys(n.range).length?n.buffered=!0:this.removeFragment(n.body)},y.fragBuffered=function(c){var a=e(c),r=this.fragments[a];r&&(r.backtrack=r.loaded=null,r.buffered=!0)},y.getBufferedTimes=function(c,a,r,s){for(var o={time:[],partial:r},i=a?a.start:c.start,n=a?a.end:c.end,t=c.minEndPTS||n,b=c.maxStartPTS||i,g=0;g<s.length;g++){var m=s.start(g)-this.bufferPadding,x=s.end(g)+this.bufferPadding;if(b>=m&&t<=x){o.time.push({startPTS:Math.max(i,s.start(g)),endPTS:Math.min(n,s.end(g))});break}else if(i<x&&n>m)o.partial=!0,o.time.push({startPTS:Math.max(i,s.start(g)),endPTS:Math.min(n,s.end(g))});else if(n<=m)break}return o},y.getPartialFragment=function(c){var a=null,r,s,o,i=0,n=this.bufferPadding,t=this.fragments;return Object.keys(t).forEach(function(b){var g=t[b];if(!g)return;k(g)&&(s=g.body.start-n,o=g.body.end+n,c>=s&&c<=o&&(r=Math.min(c-s,o-c),i<=r&&(a=g.body,i=r)))}),a},y.getState=function(c){var a=e(c),r=this.fragments[a];return r?r.buffered?k(r)?R.PARTIAL:R.OK:r.backtrack?R.BACKTRACKED:R.APPENDING:R.NOT_LOADED},y.backtrack=function(c,a){var r=e(c),s=this.fragments[r];if(!s||s.backtrack)return null;var o=s.backtrack=a||s.loaded;return s.loaded=null,o},y.getBacktrackData=function(c){var a=e(c),r=this.fragments[a];if(r){var s,o=r.backtrack;if(o!=null&&(s=o.payload)!==null&&s!==void 0&&s.byteLength)return o;this.removeFragment(c)}return null},y.isTimeBuffered=function(c,a,r){for(var s,o,i=0;i<r.length;i++){if(s=r.start(i)-this.bufferPadding,o=r.end(i)+this.bufferPadding,c>=s&&a<=o)return!0;if(a<=s)return!1}return!1},y.onFragLoaded=function(c,a){var r=a.frag,s=a.part;if(r.sn==="initSegment"||r.bitrateTest||s)return;var o=e(r);this.fragments[o]={body:r,loaded:a,backtrack:null,buffered:!1,range:Object.create(null)}},y.onBufferAppended=function(c,a){var r=this,s=a.frag,o=a.part,i=a.timeRanges;if(s.type===C.PlaylistLevelType.MAIN)if(this.activeFragment=s,o){var n=this.activeParts;n||(this.activeParts=n=[]),n.push(o)}else this.activeParts=null;this.timeRanges=i,Object.keys(i).forEach(function(t){var b=i[t];if(r.detectEvictedFragments(t,b),!o)for(var g=0;g<b.length;g++)s.appendedPTS=Math.max(b.end(g),s.appendedPTS||0)})},y.onFragBuffered=function(c,a){this.detectPartialFragments(a)},y.hasFragment=function(c){var a=e(c);return!!this.fragments[a]},y.removeFragmentsInRange=function(c,a,r){var s=this;Object.keys(this.fragments).forEach(function(o){var i=s.fragments[o];if(!i)return;if(i.buffered){var n=i.body;n.type===r&&n.start<a&&n.end>c&&s.removeFragment(n)}})},y.removeFragment=function(c){var a=e(c);c.stats.loaded=0,c.clearElementaryStreamInfo(),delete this.fragments[a]},y.removeAllFragments=function(){this.fragments=Object.create(null),this.activeFragment=null,this.activeParts=null},O}();function k(O){var y,p;return O.buffered&&(((y=O.range.video)===null||y===void 0?void 0:y.partial)||((p=O.range.audio)===null||p===void 0?void 0:p.partial))}function e(O){return O.type+"_"+O.level+"_"+O.urlId+"_"+O.sn}},"./src/controller/gap-controller.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"STALL_MINIMUM_DURATION_MS",function(){return k}),I.d(M,"MAX_START_GAP_JUMP",function(){return e}),I.d(M,"SKIP_BUFFER_HOLE_STEP_SECONDS",function(){return O}),I.d(M,"SKIP_BUFFER_RANGE_START",function(){return y}),I.d(M,"default",function(){return p});var j=I("./src/utils/buffer-helper.ts"),C=I("./src/errors.ts"),R=I("./src/events.ts"),H=I("./src/utils/logger.ts"),k=250,e=2,O=.1,y=.05,p=function(){function c(r,s,o,i){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=r,this.media=s,this.fragmentTracker=o,this.hls=i}var a=c.prototype;return a.destroy=function(){this.hls=this.fragmentTracker=this.media=null},a.poll=function(s){var o=this.config,i=this.media,n=this.stalled,t=i.currentTime,b=i.seeking,g=this.seeking&&!b,m=!this.seeking&&b;if(this.seeking=b,t!==s){if(this.moved=!0,n!==null){if(this.stallReported){var x=self.performance.now()-n;H.logger.warn("playback not stuck anymore @"+t+", after "+Math.round(x)+"ms"),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}return}if((m||g)&&(this.stalled=null),i.paused||i.ended||i.playbackRate===0||!j.BufferHelper.getBuffered(i).length)return;var _=j.BufferHelper.bufferInfo(i,t,0),d=_.len>0,u=_.nextStart||0;if(!d&&!u)return;if(b){var l=_.len>e,h=!u||u-t>e&&!this.fragmentTracker.getPartialFragment(t);if(l||h)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var v,f=Math.max(u,_.start||0)-t,T=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,P=T==null||((v=T.details)===null||v===void 0)?void 0:v.live,L=P?T.details.targetduration*2:e;if(f>0&&f<=L){this._trySkipBufferHole(null);return}}var S=self.performance.now();if(n===null){this.stalled=S;return}var A=S-n;!b&&A>=k&&this._reportStall(_.len);var W=j.BufferHelper.bufferInfo(i,t,o.maxBufferHole);this._tryFixBufferStall(W,A)},a._tryFixBufferStall=function(s,o){var i=this.config,n=this.fragmentTracker,t=this.media,b=t.currentTime,g=n.getPartialFragment(b);if(g){var m=this._trySkipBufferHole(g);if(m)return}s.len>i.maxBufferHole&&o>i.highBufferWatchdogPeriod*1e3&&(H.logger.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())},a._reportStall=function(s){var o=this.hls,i=this.media,n=this.stallReported;n||(this.stallReported=!0,H.logger.warn("Playback stalling at @"+i.currentTime+" due to low buffer (buffer="+s+")"),o.trigger(R.Events.ERROR,{type:C.ErrorTypes.MEDIA_ERROR,details:C.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!1,buffer:s}))},a._trySkipBufferHole=function(s){for(var o=this.config,i=this.hls,n=this.media,t=n.currentTime,b=0,g=j.BufferHelper.getBuffered(n),m=0;m<g.length;m++){var x=g.start(m);if(t+o.maxBufferHole>=b&&t<x){var _=Math.max(x+y,n.currentTime+O);return H.logger.warn("skipping hole, adjusting currentTime from "+t+" to "+_),this.moved=!0,this.stalled=null,n.currentTime=_,s&&i.trigger(R.Events.ERROR,{type:C.ErrorTypes.MEDIA_ERROR,details:C.ErrorDetails.BUFFER_SEEK_OVER_HOLE,fatal:!1,reason:"fragment loaded with buffer holes, seeking from "+t+" to "+_,frag:s}),_}b=g.end(m)}return 0},a._tryNudgeBuffer=function(){var s=this.config,o=this.hls,i=this.media,n=i.currentTime,t=(this.nudgeRetry||0)+1;if(this.nudgeRetry=t,t<s.nudgeMaxRetry){var b=n+t*s.nudgeOffset;H.logger.warn("Nudging 'currentTime' from "+n+" to "+b),i.currentTime=b,o.trigger(R.Events.ERROR,{type:C.ErrorTypes.MEDIA_ERROR,details:C.ErrorDetails.BUFFER_NUDGE_ON_STALL,fatal:!1})}else H.logger.error("Playhead still not moving while enough data buffered @"+n+" after "+s.nudgeMaxRetry+" nudges"),o.trigger(R.Events.ERROR,{type:C.ErrorTypes.MEDIA_ERROR,details:C.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!0})},c}()},"./src/controller/id3-track-controller.ts":function(Q,M,I){"use strict";I.r(M);var j=I("./src/events.ts"),C=I("./src/utils/texttrack-utils.ts"),R=I("./src/demux/id3.ts"),H=.25,k=function(){function e(y){this.hls=void 0,this.id3Track=null,this.media=null,this.hls=y,this._registerListeners()}var O=e.prototype;return O.destroy=function(){this._unregisterListeners()},O._registerListeners=function(){var p=this.hls;p.on(j.Events.MEDIA_ATTACHED,this.onMediaAttached,this),p.on(j.Events.MEDIA_DETACHING,this.onMediaDetaching,this),p.on(j.Events.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),p.on(j.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},O._unregisterListeners=function(){var p=this.hls;p.off(j.Events.MEDIA_ATTACHED,this.onMediaAttached,this),p.off(j.Events.MEDIA_DETACHING,this.onMediaDetaching,this),p.off(j.Events.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),p.off(j.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},O.onMediaAttached=function(p,c){this.media=c.media},O.onMediaDetaching=function(){if(!this.id3Track)return;Object(C.clearCurrentCues)(this.id3Track),this.id3Track=null,this.media=null},O.getID3Track=function(p){if(!this.media)return;for(var c=0;c<p.length;c++){var a=p[c];if(a.kind==="metadata"&&a.label==="id3")return Object(C.sendAddTrackEvent)(a,this.media),a}return this.media.addTextTrack("metadata","id3")},O.onFragParsingMetadata=function(p,c){if(!this.media)return;var a=c.frag,r=c.samples;this.id3Track||(this.id3Track=this.getID3Track(this.media.textTracks),this.id3Track.mode="hidden");for(var s=self.WebKitDataCue||self.VTTCue||self.TextTrackCue,o=0;o<r.length;o++){var i=R.getID3Frames(r[o].data);if(i){var n=r[o].pts,t=o<r.length-1?r[o+1].pts:a.end,b=t-n;b<=0&&(t=n+H);for(var g=0;g<i.length;g++){var m=i[g];if(!R.isTimeStampFrame(m)){var x=new s(n,t,"");x.value=m,this.id3Track.addCue(x)}}}}},O.onBufferFlushing=function(p,c){var a=c.startOffset,r=c.endOffset,s=c.type;if(!s||s==="audio"){var o=this.id3Track;o&&Object(C.removeCuesInRange)(o,a,r)}},e}();M.default=k},"./src/controller/latency-controller.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"default",function(){return e});var j=I("./src/errors.ts"),C=I("./src/events.ts"),R=I("./src/utils/logger.ts");function H(O,y){for(var p=0;p<y.length;p++){var c=y[p];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(O,c.key,c)}}function k(O,y,p){return y&&H(O.prototype,y),p&&H(O,p),O}var e=function(){function O(p){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=p,this.config=p.config,this.registerListeners()}var y=O.prototype;return y.destroy=function(){this.unregisterListeners(),this.onMediaDetaching(),this.levelDetails=null,this.hls=this.timeupdateHandler=null},y.registerListeners=function(){this.hls.on(C.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(C.Events.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.on(C.Events.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(C.Events.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.on(C.Events.ERROR,this.onError,this)},y.unregisterListeners=function(){this.hls.off(C.Events.MEDIA_ATTACHED,this.onMediaAttached),this.hls.off(C.Events.MEDIA_DETACHING,this.onMediaDetaching),this.hls.off(C.Events.MANIFEST_LOADING,this.onManifestLoading),this.hls.off(C.Events.LEVEL_UPDATED,this.onLevelUpdated),this.hls.off(C.Events.ERROR,this.onError)},y.onMediaAttached=function(c,a){this.media=a.media,this.media.addEventListener("timeupdate",this.timeupdateHandler)},y.onMediaDetaching=function(){this.media&&(this.media.removeEventListener("timeupdate",this.timeupdateHandler),this.media=null)},y.onManifestLoading=function(){this.levelDetails=null,this._latency=null,this.stallCount=0},y.onLevelUpdated=function(c,a){var r=a.details;this.levelDetails=r,r.advanced&&this.timeupdate(),!r.live&&this.media&&this.media.removeEventListener("timeupdate",this.timeupdateHandler)},y.onError=function(c,a){if(a.details!==j.ErrorDetails.BUFFER_STALLED_ERROR)return;this.stallCount++,R.logger.warn("[playback-rate-controller]: Stall detected, adjusting target latency")},y.timeupdate=function(){var c=this.media,a=this.levelDetails;if(!c||!a)return;this.currentTime=c.currentTime;var r=this.computeLatency();if(r===null)return;this._latency=r;var s=this.config,o=s.lowLatencyMode,i=s.maxLiveSyncPlaybackRate;if(!o||i===1)return;var n=this.targetLatency;if(n===null)return;var t=r-n,b=Math.min(this.maxLatency,n+a.targetduration),g=t<b;if(a.live&&g&&t>.05&&this.forwardBufferLength>1){var m=Math.min(2,Math.max(1,i)),x=Math.round(2/(1+Math.exp(-.75*t-this.edgeStalled))*20)/20;c.playbackRate=Math.min(m,Math.max(1,x))}else c.playbackRate!==1&&c.playbackRate!==0&&(c.playbackRate=1)},y.estimateLiveEdge=function(){var c=this.levelDetails;return c===null?null:c.edge+c.age},y.computeLatency=function(){var c=this.estimateLiveEdge();return c===null?null:c-this.currentTime},k(O,[{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var c=this.config,a=this.levelDetails;return c.liveMaxLatencyDuration!==void 0?c.liveMaxLatencyDuration:a?c.liveMaxLatencyDurationCount*a.targetduration:0}},{key:"targetLatency",get:function(){var c=this.levelDetails;if(c===null)return null;var a=c.holdBack,r=c.partHoldBack,s=c.targetduration,o=this.config,i=o.liveSyncDuration,n=o.liveSyncDurationCount,t=o.lowLatencyMode,b=this.hls.userConfig,g=t&&r||a;(b.liveSyncDuration||b.liveSyncDurationCount||g===0)&&(g=i!==void 0?i:n*s);var m=s,x=1;return g+Math.min(this.stallCount*x,m)}},{key:"liveSyncPosition",get:function(){var c=this.estimateLiveEdge(),a=this.targetLatency,r=this.levelDetails;if(c===null||a===null||r===null)return null;var s=r.edge,o=c-a-this.edgeStalled,i=s-r.totalduration,n=s-(this.config.lowLatencyMode&&r.partTarget||r.targetduration);return Math.min(Math.max(i,o),n)}},{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 a=(this.config.lowLatencyMode&&c.partTarget||c.targetduration)*3;return Math.max(c.age-a,0)}},{key:"forwardBufferLength",get:function(){var c=this.media,a=this.levelDetails;if(!c||!a)return 0;var r=c.buffered.length;return r?c.buffered.end(r-1):a.edge-this.currentTime}}]),O}()},"./src/controller/level-controller.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"default",function(){return o});var j=I("./src/types/level.ts"),C=I("./src/events.ts"),R=I("./src/errors.ts"),H=I("./src/utils/codecs.ts"),k=I("./src/controller/level-helper.ts"),e=I("./src/controller/base-playlist-controller.ts"),O=I("./src/types/loader.ts");function y(){return y=Object.assign||function(i){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var b in t)Object.prototype.hasOwnProperty.call(t,b)&&(i[b]=t[b])}return i},y.apply(this,arguments)}function p(i,n){for(var t=0;t<n.length;t++){var b=n[t];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(i,b.key,b)}}function c(i,n,t){return n&&p(i.prototype,n),t&&p(i,t),i}function a(i,n){i.prototype=Object.create(n.prototype),i.prototype.constructor=i,r(i,n)}function r(i,n){return r=Object.setPrototypeOf||function(b,g){return b.__proto__=g,b},r(i,n)}var s=/chrome|firefox/.test(navigator.userAgent.toLowerCase()),o=function(i){a(n,i);function n(b){var g;return g=i.call(this,b,"[level-controller]")||this,g._levels=[],g._firstLevel=-1,g._startLevel=void 0,g.currentLevelIndex=-1,g.manualLevelIndex=-1,g.onParsedComplete=void 0,g._registerListeners(),g}var t=n.prototype;return t._registerListeners=function(){var g=this.hls;g.on(C.Events.MANIFEST_LOADED,this.onManifestLoaded,this),g.on(C.Events.LEVEL_LOADED,this.onLevelLoaded,this),g.on(C.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),g.on(C.Events.FRAG_LOADED,this.onFragLoaded,this),g.on(C.Events.ERROR,this.onError,this)},t._unregisterListeners=function(){var g=this.hls;g.off(C.Events.MANIFEST_LOADED,this.onManifestLoaded,this),g.off(C.Events.LEVEL_LOADED,this.onLevelLoaded,this),g.off(C.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),g.off(C.Events.FRAG_LOADED,this.onFragLoaded,this),g.off(C.Events.ERROR,this.onError,this)},t.destroy=function(){this._unregisterListeners(),this.manualLevelIndex=-1,this._levels.length=0,i.prototype.destroy.call(this)},t.startLoad=function(){var g=this._levels;g.forEach(function(m){m.loadError=0}),i.prototype.startLoad.call(this)},t.onManifestLoaded=function(g,m){var x=[],_=[],d=[],u,l={},h,v=!1,f=!1,T=!1;if(m.levels.forEach(function(A){var W=A.attrs;v=v||!!(A.width&&A.height),f=f||!!A.videoCodec,T=T||!!A.audioCodec,s&&A.audioCodec&&A.audioCodec.indexOf("mp4a.40.34")!==-1&&(A.audioCodec=void 0);var D=A.bitrate+"-"+A.attrs.RESOLUTION+"-"+A.attrs.CODECS;h=l[D],h?h.url.push(A.url):(h=new j.Level(A),l[D]=h,x.push(h)),W&&(W.AUDIO&&Object(k.addGroupId)(h,"audio",W.AUDIO),W.SUBTITLES&&Object(k.addGroupId)(h,"text",W.SUBTITLES))}),(v||f)&&T&&(x=x.filter(function(A){var W=A.videoCodec,D=A.width,K=A.height;return!!W||!!(D&&K)})),x=x.filter(function(A){var W=A.audioCodec,D=A.videoCodec;return(!W||Object(H.isCodecSupportedInMp4)(W,"audio"))&&(!D||Object(H.isCodecSupportedInMp4)(D,"video"))}),m.audioTracks&&(_=m.audioTracks.filter(function(A){return!A.audioCodec||Object(H.isCodecSupportedInMp4)(A.audioCodec,"audio")}),Object(k.assignTrackIdsByGroup)(_)),m.subtitles&&(d=m.subtitles,Object(k.assignTrackIdsByGroup)(d)),x.length>0){u=x[0].bitrate,x.sort(function(A,W){return A.bitrate-W.bitrate}),this._levels=x;for(var P=0;P<x.length;P++)if(x[P].bitrate===u){this._firstLevel=P,this.log("manifest loaded, "+x.length+" level(s) found, first bitrate: "+u);break}var L=T&&!f,S={levels:x,audioTracks:_,subtitleTracks:d,firstLevel:this._firstLevel,stats:m.stats,audio:T,video:f,altAudio:!L&&_.some(function(A){return!!A.url})};this.hls.trigger(C.Events.MANIFEST_PARSED,S),(this.hls.config.autoStartLoad||this.hls.forceStartLoad)&&this.hls.startLoad(this.hls.config.startPosition)}else this.hls.trigger(C.Events.ERROR,{type:R.ErrorTypes.MEDIA_ERROR,details:R.ErrorDetails.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:m.url,reason:"no level with compatible codecs found in manifest"})},t.onError=function(g,m){if(i.prototype.onError.call(this,g,m),m.fatal)return;var x=m.context,_=this._levels[this.currentLevelIndex];if(x&&(x.type===O.PlaylistContextType.AUDIO_TRACK&&_.audioGroupIds&&x.groupId===_.audioGroupIds[_.urlId]||x.type===O.PlaylistContextType.SUBTITLE_TRACK&&_.textGroupIds&&x.groupId===_.textGroupIds[_.urlId])){this.redundantFailover(this.currentLevelIndex);return}var d=!1,u=!0,l;switch(m.details){case R.ErrorDetails.FRAG_LOAD_ERROR:case R.ErrorDetails.FRAG_LOAD_TIMEOUT:case R.ErrorDetails.KEY_LOAD_ERROR:case R.ErrorDetails.KEY_LOAD_TIMEOUT:if(m.frag){var h=this._levels[m.frag.level];h?(h.fragmentError++,h.fragmentError>this.hls.config.fragLoadingMaxRetry&&(l=m.frag.level)):l=m.frag.level}break;case R.ErrorDetails.LEVEL_LOAD_ERROR:case R.ErrorDetails.LEVEL_LOAD_TIMEOUT:x&&(x.deliveryDirectives&&(u=!1),l=x.level),d=!0;break;case R.ErrorDetails.REMUX_ALLOC_ERROR:l=m.level,d=!0;break}l!==void 0&&this.recoverLevel(m,l,d,u)},t.recoverLevel=function(g,m,x,_){var d=g.details,u=this._levels[m];if(u.loadError++,x){var l=this.retryLoadingOrFail(g);if(l)g.levelRetry=!0;else{this.currentLevelIndex=-1;return}}if(_){var h=u.url.length;if(h>1&&u.loadError<h)g.levelRetry=!0,this.redundantFailover(m);else if(this.manualLevelIndex===-1){var v=m===0?this._levels.length-1:m-1;this.currentLevelIndex!==v&&this._levels[v].loadError===0&&(this.warn(d+": switch to "+v),g.levelRetry=!0,this.hls.nextAutoLevel=v)}}},t.redundantFailover=function(g){var m=this._levels[g],x=m.url.length;if(x>1){var _=(m.urlId+1)%x;this.warn("Switching to redundant URL-id "+_),this._levels.forEach(function(d){d.urlId=_}),this.level=g}},t.onFragLoaded=function(g,m){var x=m.frag;if(x!==void 0&&x.type===O.PlaylistLevelType.MAIN){var _=this._levels[x.level];_!==void 0&&(_.fragmentError=0,_.loadError=0)}},t.onLevelLoaded=function(g,m){var x,_=m.level,d=m.details,u=this._levels[_];if(!u){var l;this.warn("Invalid level index "+_),(l=m.deliveryDirectives)!==null&&l!==void 0&&l.skip&&(d.deltaUpdateFailed=!0);return}_===this.currentLevelIndex?(u.fragmentError===0&&(u.loadError=0,this.retryCount=0),this.playlistLoaded(_,m,u.details)):(x=m.deliveryDirectives)!==null&&x!==void 0&&x.skip&&(d.deltaUpdateFailed=!0)},t.onAudioTrackSwitched=function(g,m){var x=this.hls.levels[this.currentLevelIndex];if(!x)return;if(x.audioGroupIds){for(var _=-1,d=this.hls.audioTracks[m.id].groupId,u=0;u<x.audioGroupIds.length;u++)if(x.audioGroupIds[u]===d){_=u;break}_!==x.urlId&&(x.urlId=_,this.startLoad())}},t.loadPlaylist=function(g){var m=this.currentLevelIndex,x=this._levels[m];if(this.canLoad&&x&&x.url.length>0){var _=x.urlId,d=x.url[_];if(g)try{d=g.addDirectives(d)}catch(u){this.warn("Could not construct new URL with HLS Delivery Directives: "+u)}this.log("Attempt loading level index "+m+(g?" at sn "+g.msn+" part "+g.part:"")+" with URL-id "+_+" "+d),this.clearTimer(),this.hls.trigger(C.Events.LEVEL_LOADING,{url:d,level:m,id:_,deliveryDirectives:g||null})}},t.removeLevel=function(g,m){var x=function(u,l){return l!==m},_=this._levels.filter(function(d,u){return u!==g?!0:d.url.length>1&&m!==void 0?(d.url=d.url.filter(x),d.audioGroupIds&&(d.audioGroupIds=d.audioGroupIds.filter(x)),d.textGroupIds&&(d.textGroupIds=d.textGroupIds.filter(x)),d.urlId=0,!0):!1}).map(function(d,u){var l=d.details;return l!=null&&l.fragments&&l.fragments.forEach(function(h){h.level=u}),d});this._levels=_,this.hls.trigger(C.Events.LEVELS_UPDATED,{levels:_})},c(n,[{key:"levels",get:function(){return this._levels.length===0?null:this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(g){var m,x=this._levels;if(x.length===0)return;if(this.currentLevelIndex===g&&(m=x[g])!==null&&m!==void 0&&m.details)return;if(g<0||g>=x.length){var _=g<0;if(this.hls.trigger(C.Events.ERROR,{type:R.ErrorTypes.OTHER_ERROR,details:R.ErrorDetails.LEVEL_SWITCH_ERROR,level:g,fatal:_,reason:"invalid level idx"}),_)return;g=Math.min(g,x.length-1)}this.clearTimer();var d=this.currentLevelIndex,u=x[d],l=x[g];this.log("switching to level "+g+" from "+d),this.currentLevelIndex=g;var h=y({},l,{level:g,maxBitrate:l.maxBitrate,uri:l.uri,urlId:l.urlId});delete h._urlId,this.hls.trigger(C.Events.LEVEL_SWITCHING,h);var v=l.details;if(!v||v.live){var f=this.switchParams(l.uri,u==null?void 0:u.details);this.loadPlaylist(f)}}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(g){this.manualLevelIndex=g,this._startLevel===void 0&&(this._startLevel=g),g!==-1&&(this.level=g)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(g){this._firstLevel=g}},{key:"startLevel",get:function(){if(this._startLevel===void 0){var g=this.hls.config.startLevel;return g!==void 0?g:this._firstLevel}else return this._startLevel},set:function(g){this._startLevel=g}},{key:"nextLoadLevel",get:function(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(g){this.level=g,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=g)}}]),n}(e.default)},"./src/controller/level-helper.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"addGroupId",function(){return R}),I.d(M,"assignTrackIdsByGroup",function(){return H}),I.d(M,"updatePTS",function(){return k}),I.d(M,"updateFragPTSDTS",function(){return O}),I.d(M,"mergeDetails",function(){return y}),I.d(M,"mapPartIntersection",function(){return p}),I.d(M,"mapFragmentIntersection",function(){return c}),I.d(M,"adjustSliding",function(){return a}),I.d(M,"addSliding",function(){return r}),I.d(M,"computeReloadInterval",function(){return s}),I.d(M,"getFragmentWithSN",function(){return o}),I.d(M,"getPartWith",function(){return i});var j=I("./src/polyfills/number.ts"),C=I("./src/utils/logger.ts");function R(n,t,b){switch(t){case"audio":n.audioGroupIds||(n.audioGroupIds=[]),n.audioGroupIds.push(b);break;case"text":n.textGroupIds||(n.textGroupIds=[]),n.textGroupIds.push(b);break}}function H(n){var t={};n.forEach(function(b){var g=b.groupId||"";b.id=t[g]=t[g]||0,t[g]++})}function k(n,t,b){var g=n[t],m=n[b];e(g,m)}function e(n,t){var b=t.startPTS;if(Object(j.isFiniteNumber)(b)){var g=0,m;t.sn>n.sn?(g=b-n.start,m=n):(g=n.start-b,m=t),m.duration!==g&&(m.duration=g)}else if(t.sn>n.sn){var x=n.cc===t.cc;x&&n.minEndPTS?t.start=n.start+(n.minEndPTS-n.start):t.start=n.start+n.duration}else t.start=Math.max(n.start-t.duration,0)}function O(n,t,b,g,m,x){var _=g-b;_<=0&&(C.logger.warn("Fragment should have a positive duration",t),g=b+t.duration,x=m+t.duration);var d=b,u=g,l=t.startPTS,h=t.endPTS;if(Object(j.isFiniteNumber)(l)){var v=Math.abs(l-b);Object(j.isFiniteNumber)(t.deltaPTS)?t.deltaPTS=Math.max(v,t.deltaPTS):t.deltaPTS=v,d=Math.max(b,l),b=Math.min(b,l),m=Math.min(m,t.startDTS),u=Math.min(g,h),g=Math.max(g,h),x=Math.max(x,t.endDTS)}t.duration=g-b;var f=b-t.start;t.appendedPTS=g,t.start=t.startPTS=b,t.maxStartPTS=d,t.startDTS=m,t.endPTS=g,t.minEndPTS=u,t.endDTS=x;var T=t.sn;if(!n||T<n.startSN||T>n.endSN)return 0;var P,L=T-n.startSN,S=n.fragments;for(S[L]=t,P=L;P>0;P--)e(S[P],S[P-1]);for(P=L;P<S.length-1;P++)e(S[P],S[P+1]);return n.fragmentHint&&e(S[S.length-1],n.fragmentHint),n.PTSKnown=n.alignedSliding=!0,f}function y(n,t){for(var b=null,g=n.fragments,m=g.length-1;m>=0;m--){var x=g[m].initSegment;if(x){b=x;break}}n.fragmentHint&&delete n.fragmentHint.endPTS;var _=0,d;if(c(n,t,function(P,L){P.relurl&&(_=P.cc-L.cc),Object(j.isFiniteNumber)(P.startPTS)&&Object(j.isFiniteNumber)(P.endPTS)&&(L.start=L.startPTS=P.startPTS,L.startDTS=P.startDTS,L.appendedPTS=P.appendedPTS,L.maxStartPTS=P.maxStartPTS,L.endPTS=P.endPTS,L.endDTS=P.endDTS,L.minEndPTS=P.minEndPTS,L.duration=P.endPTS-P.startPTS,L.duration&&(d=L),t.PTSKnown=t.alignedSliding=!0),L.elementaryStreams=P.elementaryStreams,L.loader=P.loader,L.stats=P.stats,L.urlId=P.urlId,P.initSegment&&(L.initSegment=P.initSegment,b=P.initSegment)}),b){var u=t.fragmentHint?t.fragments.concat(t.fragmentHint):t.fragments;u.forEach(function(P){var L;(!P.initSegment||P.initSegment.relurl===((L=b)===null||L===void 0?void 0:L.relurl))&&(P.initSegment=b)})}if(t.skippedSegments&&(t.deltaUpdateFailed=t.fragments.some(function(P){return!P}),t.deltaUpdateFailed)){C.logger.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var l=t.skippedSegments;l--;)t.fragments.shift();t.startSN=t.fragments[0].sn,t.startCC=t.fragments[0].cc}var h=t.fragments;if(_){C.logger.warn("discontinuity sliding from playlist, take drift into account");for(var v=0;v<h.length;v++)h[v].cc+=_}t.skippedSegments&&(t.startCC=t.fragments[0].cc),p(n.partList,t.partList,function(P,L){L.elementaryStreams=P.elementaryStreams,L.stats=P.stats}),d?O(t,d,d.startPTS,d.endPTS,d.startDTS,d.endDTS):a(n,t),h.length&&(t.totalduration=t.edge-h[0].start),t.driftStartTime=n.driftStartTime,t.driftStart=n.driftStart;var f=t.advancedDateTime;if(t.advanced&&f){var T=t.edge;t.driftStart||(t.driftStartTime=f,t.driftStart=T),t.driftEndTime=f,t.driftEnd=T}else t.driftEndTime=n.driftEndTime,t.driftEnd=n.driftEnd,t.advancedDateTime=n.advancedDateTime}function p(n,t,b){if(n&&t)for(var g=0,m=0,x=n.length;m<=x;m++){var _=n[m],d=t[m+g];_&&d&&_.index===d.index&&_.fragment.sn===d.fragment.sn?b(_,d):g--}}function c(n,t,b){for(var g=t.skippedSegments,m=Math.max(n.startSN,t.startSN)-t.startSN,x=(n.fragmentHint?1:0)+(g?t.endSN:Math.min(n.endSN,t.endSN))-t.startSN,_=t.startSN-n.startSN,d=t.fragmentHint?t.fragments.concat(t.fragmentHint):t.fragments,u=n.fragmentHint?n.fragments.concat(n.fragmentHint):n.fragments,l=m;l<=x;l++){var h=u[_+l],v=d[l];g&&!v&&l<g&&(v=t.fragments[l]=h),h&&v&&b(h,v)}}function a(n,t){var b=t.startSN+t.skippedSegments-n.startSN,g=n.fragments;if(b<0||b>=g.length)return;r(t,g[b].start)}function r(n,t){if(t){for(var b=n.fragments,g=n.skippedSegments;g<b.length;g++)b[g].start+=t;n.fragmentHint&&(n.fragmentHint.start+=t)}}function s(n,t){var b=1e3*n.levelTargetDuration,g=b/2,m=n.age,x=m>0&&m<b*3,_=t.loading.end-t.loading.start,d,u=n.availabilityDelay;if(n.updated===!1)if(x){var l=333*n.misses;d=Math.max(Math.min(g,_*2),l),n.availabilityDelay=(n.availabilityDelay||0)+d}else d=g;else x?(u=Math.min(u||b/2,m),n.availabilityDelay=u,d=u+b-m):d=b-_;return Math.round(d)}function o(n,t,b){if(!n||!n.details)return null;var g=n.details,m=g.fragments[t-g.startSN];return m||(m=g.fragmentHint,m&&m.sn===t?m:t<g.startSN&&b&&b.sn===t?b:null)}function i(n,t,b){if(!n||!n.details)return null;var g=n.details.partList;if(g)for(var m=g.length;m--;){var x=g[m];if(x.index===b&&x.fragment.sn===t)return x}return null}},"./src/controller/stream-controller.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"default",function(){return g});var j=I("./src/polyfills/number.ts"),C=I("./src/controller/base-stream-controller.ts"),R=I("./src/is-supported.ts"),H=I("./src/events.ts"),k=I("./src/utils/buffer-helper.ts"),e=I("./src/controller/fragment-tracker.ts"),O=I("./src/types/loader.ts"),y=I("./src/loader/fragment.ts"),p=I("./src/demux/transmuxer-interface.ts"),c=I("./src/types/transmuxer.ts"),a=I("./src/controller/gap-controller.ts"),r=I("./src/errors.ts"),s=I("./src/utils/logger.ts");function o(m,x){for(var _=0;_<x.length;_++){var d=x[_];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(m,d.key,d)}}function i(m,x,_){return x&&o(m.prototype,x),_&&o(m,_),m}function n(m,x){m.prototype=Object.create(x.prototype),m.prototype.constructor=m,t(m,x)}function t(m,x){return t=Object.setPrototypeOf||function(d,u){return d.__proto__=u,d},t(m,x)}var b=100,g=function(m){n(x,m);function x(d,u){var l;return l=m.call(this,d,u,"[stream-controller]")||this,l.audioCodecSwap=!1,l.gapController=null,l.level=-1,l._forceStartLoad=!1,l.altAudio=!1,l.audioOnly=!1,l.fragPlaying=null,l.onvplaying=null,l.onvseeked=null,l.fragLastKbps=0,l.stalled=!1,l.couldBacktrack=!1,l.audioCodecSwitch=!1,l.videoBuffer=null,l._registerListeners(),l}var _=x.prototype;return _._registerListeners=function(){var u=this.hls;u.on(H.Events.MEDIA_ATTACHED,this.onMediaAttached,this),u.on(H.Events.MEDIA_DETACHING,this.onMediaDetaching,this),u.on(H.Events.MANIFEST_LOADING,this.onManifestLoading,this),u.on(H.Events.MANIFEST_PARSED,this.onManifestParsed,this),u.on(H.Events.LEVEL_LOADING,this.onLevelLoading,this),u.on(H.Events.LEVEL_LOADED,this.onLevelLoaded,this),u.on(H.Events.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),u.on(H.Events.ERROR,this.onError,this),u.on(H.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),u.on(H.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),u.on(H.Events.BUFFER_CREATED,this.onBufferCreated,this),u.on(H.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),u.on(H.Events.LEVELS_UPDATED,this.onLevelsUpdated,this),u.on(H.Events.FRAG_BUFFERED,this.onFragBuffered,this)},_._unregisterListeners=function(){var u=this.hls;u.off(H.Events.MEDIA_ATTACHED,this.onMediaAttached,this),u.off(H.Events.MEDIA_DETACHING,this.onMediaDetaching,this),u.off(H.Events.MANIFEST_LOADING,this.onManifestLoading,this),u.off(H.Events.MANIFEST_PARSED,this.onManifestParsed,this),u.off(H.Events.LEVEL_LOADED,this.onLevelLoaded,this),u.off(H.Events.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),u.off(H.Events.ERROR,this.onError,this),u.off(H.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),u.off(H.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),u.off(H.Events.BUFFER_CREATED,this.onBufferCreated,this),u.off(H.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),u.off(H.Events.LEVELS_UPDATED,this.onLevelsUpdated,this),u.off(H.Events.FRAG_BUFFERED,this.onFragBuffered,this)},_.onHandlerDestroying=function(){this._unregisterListeners(),this.onMediaDetaching()},_.startLoad=function(u){if(this.levels){var l=this.lastCurrentTime,h=this.hls;if(this.stopLoad(),this.setInterval(b),this.level=-1,this.fragLoadError=0,!this.startFragRequested){var v=h.startLevel;v===-1&&(h.config.testBandwidth?(v=0,this.bitrateTest=!0):v=h.nextAutoLevel),this.level=h.nextLoadLevel=v,this.loadedmetadata=!1}l>0&&u===-1&&(this.log("Override startPosition with lastCurrentTime @"+l.toFixed(3)),u=l),this.state=C.State.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=u,this.tick()}else this._forceStartLoad=!0,this.state=C.State.STOPPED},_.stopLoad=function(){this._forceStartLoad=!1,m.prototype.stopLoad.call(this)},_.doTick=function(){switch(this.state){case C.State.IDLE:this.doTickIdle();break;case C.State.WAITING_LEVEL:{var u,l=this.levels,h=this.level,v=l==null||((u=l[h])===null||u===void 0)?void 0:u.details;if(v&&(!v.live||this.levelLastLoaded===this.level)){if(this.waitForCdnTuneIn(v))break;this.state=C.State.IDLE;break}break}case C.State.FRAG_LOADING_WAITING_RETRY:{var f,T=self.performance.now(),P=this.retryDate;(!P||T>=P||(f=this.media)!==null&&f!==void 0&&f.seeking)&&(this.log("retryDate reached, switch back to IDLE state"),this.state=C.State.IDLE)}break;default:break}this.onTickEnd()},_.onTickEnd=function(){m.prototype.onTickEnd.call(this),this.checkBuffer(),this.checkFragmentChanged()},_.doTickIdle=function(){var u,l,h=this.hls,v=this.levelLastLoaded,f=this.levels,T=this.media,P=h.config,L=h.nextLoadLevel;if(v===null||!T&&(this.startFragRequested||!P.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;if(!f||!f[L])return;var S=f[L];this.level=h.nextLoadLevel=L;var A=S.details;if(!A||this.state===C.State.WAITING_LEVEL||A.live&&this.levelLastLoaded!==L){this.state=C.State.WAITING_LEVEL;return}var W=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:T,O.PlaylistLevelType.MAIN);if(W===null)return;var D=W.len,K=this.getMaxBufferLength(S.maxBitrate);if(D>=K)return;if(this._streamEnded(W,A)){var Y={};this.altAudio&&(Y.type="video"),this.hls.trigger(H.Events.BUFFER_EOS,Y),this.state=C.State.ENDED;return}var oe=W.end,le=this.getNextFragment(oe,A);if(this.couldBacktrack&&!this.fragPrevious&&le&&le.sn!=="initSegment"){var Se=le.sn-A.startSN;Se>1&&(le=A.fragments[Se-1],this.fragmentTracker.removeFragment(le))}if(le&&this.fragmentTracker.getState(le)===e.FragmentState.OK&&this.nextLoadPosition>oe){var Ee=this.audioOnly&&!this.altAudio?y.ElementaryStreamTypes.AUDIO:y.ElementaryStreamTypes.VIDEO;this.afterBufferFlushed(T,Ee,O.PlaylistLevelType.MAIN),le=this.getNextFragment(this.nextLoadPosition,A)}if(!le)return;le.initSegment&&!le.initSegment.data&&!this.bitrateTest&&(le=le.initSegment),((u=le.decryptdata)===null||u===void 0?void 0:u.keyFormat)==="identity"&&!((l=le.decryptdata)!==null&&l!==void 0&&l.key)?this.loadKey(le,A):this.loadFragment(le,A,oe)},_.loadFragment=function(u,l,h){var v,f=this.fragmentTracker.getState(u);if(this.fragCurrent=u,f===e.FragmentState.BACKTRACKED){var T=this.fragmentTracker.getBacktrackData(u);if(T){this._handleFragmentLoadProgress(T),this._handleFragmentLoadComplete(T);return}else f=e.FragmentState.NOT_LOADED}f===e.FragmentState.NOT_LOADED||f===e.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,m.prototype.loadFragment.call(this,u,l,h)):f===e.FragmentState.APPENDING?this.reduceMaxBufferLength(u.duration)&&this.fragmentTracker.removeFragment(u):((v=this.media)===null||v===void 0?void 0:v.buffered.length)===0&&this.fragmentTracker.removeAllFragments()},_.getAppendedFrag=function(u){var l=this.fragmentTracker.getAppendedFrag(u,O.PlaylistLevelType.MAIN);return l&&"fragment"in l?l.fragment:l},_.getBufferedFrag=function(u){return this.fragmentTracker.getBufferedFrag(u,O.PlaylistLevelType.MAIN)},_.followingBufferedFrag=function(u){return u?this.getBufferedFrag(u.end+.5):null},_.immediateLevelSwitch=function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},_.nextLevelSwitch=function(){var u=this.levels,l=this.media;if(l!=null&&l.readyState){var h,v=this.getAppendedFrag(l.currentTime);if(v&&v.start>1&&this.flushMainBuffer(0,v.start-1),!l.paused&&u){var f=this.hls.nextLoadLevel,T=u[f],P=this.fragLastKbps;P&&this.fragCurrent?h=this.fragCurrent.duration*T.maxBitrate/(1e3*P)+1:h=0}else h=0;var L=this.getBufferedFrag(l.currentTime+h);if(L){var S=this.followingBufferedFrag(L);if(S){this.abortCurrentFrag();var A=S.maxStartPTS?S.maxStartPTS:S.start,W=S.duration,D=Math.max(L.end,A+Math.min(Math.max(W-this.config.maxFragLookUpTolerance,W*.5),W*.75));this.flushMainBuffer(D,Number.POSITIVE_INFINITY)}}}},_.abortCurrentFrag=function(){var u=this.fragCurrent;this.fragCurrent=null,u!=null&&u.loader&&u.loader.abort(),this.state===C.State.KEY_LOADING&&(this.state=C.State.IDLE),this.nextLoadPosition=this.getLoadPosition()},_.flushMainBuffer=function(u,l){m.prototype.flushMainBuffer.call(this,u,l,this.altAudio?"video":null)},_.onMediaAttached=function(u,l){m.prototype.onMediaAttached.call(this,u,l);var h=l.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),h.addEventListener("playing",this.onvplaying),h.addEventListener("seeked",this.onvseeked),this.gapController=new a.default(this.config,h,this.fragmentTracker,this.hls)},_.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),m.prototype.onMediaDetaching.call(this)},_.onMediaPlaying=function(){this.tick()},_.onMediaSeeked=function(){var u=this.media,l=u?u.currentTime:null;Object(j.isFiniteNumber)(l)&&this.log("Media seeked to "+l.toFixed(3)),this.tick()},_.onManifestLoading=function(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(H.Events.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=this.stalled=!1,this.startPosition=this.lastCurrentTime=0,this.fragPlaying=null},_.onManifestParsed=function(u,l){var h=!1,v=!1,f;l.levels.forEach(function(T){f=T.audioCodec,f&&(f.indexOf("mp4a.40.2")!==-1&&(h=!0),f.indexOf("mp4a.40.5")!==-1&&(v=!0))}),this.audioCodecSwitch=h&&v&&!Object(R.changeTypeSupported)(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=l.levels,this.startFragRequested=!1},_.onLevelLoading=function(u,l){var h=this.levels;if(!h||this.state!==C.State.IDLE)return;var v=h[l.level];(!v.details||v.details.live&&this.levelLastLoaded!==l.level||this.waitForCdnTuneIn(v.details))&&(this.state=C.State.WAITING_LEVEL)},_.onLevelLoaded=function(u,l){var h,v=this.levels,f=l.level,T=l.details,P=T.totalduration;if(!v){this.warn("Levels were reset while loading level "+f);return}this.log("Level "+f+" loaded ["+T.startSN+","+T.endSN+"], cc ["+T.startCC+", "+T.endCC+"] duration:"+P);var L=this.fragCurrent;L&&(this.state===C.State.FRAG_LOADING||this.state===C.State.FRAG_LOADING_WAITING_RETRY)&&(L.level!==l.level&&L.loader&&(this.state=C.State.IDLE,L.loader.abort()));var S=v[f],A=0;if(T.live||(h=S.details)!==null&&h!==void 0&&h.live){if(T.fragments[0]||(T.deltaUpdateFailed=!0),T.deltaUpdateFailed)return;A=this.alignPlaylists(T,S.details)}if(S.details=T,this.levelLastLoaded=f,this.hls.trigger(H.Events.LEVEL_UPDATED,{details:T,level:f}),this.state===C.State.WAITING_LEVEL){if(this.waitForCdnTuneIn(T))return;this.state=C.State.IDLE}this.startFragRequested?T.live&&this.synchronizeToLiveEdge(T):this.setStartPosition(T,A),this.tick()},_._handleFragmentLoadProgress=function(u){var l,h=u.frag,v=u.part,f=u.payload,T=this.levels;if(!T){this.warn("Levels were reset while fragment load was in progress. Fragment "+h.sn+" of level "+h.level+" will not be buffered");return}var P=T[h.level],L=P.details;if(!L){this.warn("Dropping fragment "+h.sn+" of level "+h.level+" after level details were reset");return}var S=P.videoCodec,A=L.PTSKnown||!L.live,W=(l=h.initSegment)===null||l===void 0?void 0:l.data,D=this._getAudioCodec(P),K=this.transmuxer=this.transmuxer||new p.default(this.hls,O.PlaylistLevelType.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),Y=v?v.index:-1,oe=Y!==-1,le=new c.ChunkMetadata(h.level,h.sn,h.stats.chunkCount,f.byteLength,Y,oe),Se=this.initPTS[h.cc];K.push(f,W,D,S,h,v,L.totalduration,A,le,Se)},_.onAudioTrackSwitching=function(u,l){var h=this.altAudio,v=!!l.url,f=l.id;if(!v){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var T=this.fragCurrent;T!=null&&T.loader&&(this.log("Switching to main audio track, cancel main fragment load"),T.loader.abort()),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();var P=this.hls;h&&P.trigger(H.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),P.trigger(H.Events.AUDIO_TRACK_SWITCHED,{id:f})}},_.onAudioTrackSwitched=function(u,l){var h=l.id,v=!!this.hls.audioTracks[h].url;if(v){var f=this.videoBuffer;f&&this.mediaBuffer!==f&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=f)}this.altAudio=v,this.tick()},_.onBufferCreated=function(u,l){var h=l.tracks,v,f,T=!1;for(var P in h){var L=h[P];if(L.id==="main"){if(f=P,v=L,P==="video"){var S=h[P];S&&(this.videoBuffer=S.buffer)}}else T=!0}T&&v?(this.log("Alternate track found, use "+f+".buffered to schedule main fragment loading"),this.mediaBuffer=v.buffer):this.mediaBuffer=this.media},_.onFragBuffered=function(u,l){var h=l.frag,v=l.part;if(h&&h.type!==O.PlaylistLevelType.MAIN)return;if(this.fragContextChanged(h)){this.warn("Fragment "+h.sn+(v?" p: "+v.index:"")+" of level "+h.level+" finished buffering, but was aborted. state: "+this.state),this.state===C.State.PARSED&&(this.state=C.State.IDLE);return}var f=v?v.stats:h.stats;this.fragLastKbps=Math.round(8*f.total/(f.buffering.end-f.loading.first)),h.sn!=="initSegment"&&(this.fragPrevious=h),this.fragBufferedComplete(h,v)},_.onError=function(u,l){switch(l.details){case r.ErrorDetails.FRAG_LOAD_ERROR:case r.ErrorDetails.FRAG_LOAD_TIMEOUT:case r.ErrorDetails.KEY_LOAD_ERROR:case r.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(O.PlaylistLevelType.MAIN,l);break;case r.ErrorDetails.LEVEL_LOAD_ERROR:case r.ErrorDetails.LEVEL_LOAD_TIMEOUT:this.state!==C.State.ERROR&&(l.fatal?(this.warn(""+l.details),this.state=C.State.ERROR):!l.levelRetry&&this.state===C.State.WAITING_LEVEL&&(this.state=C.State.IDLE));break;case r.ErrorDetails.BUFFER_FULL_ERROR:if(l.parent==="main"&&(this.state===C.State.PARSING||this.state===C.State.PARSED)){var h=!0,v=this.getFwdBufferInfo(this.media,O.PlaylistLevelType.MAIN);v&&v.len>.5&&(h=!this.reduceMaxBufferLength(v.len)),h&&(this.warn("buffer full error also media.currentTime is not buffered, flush main"),this.immediateLevelSwitch()),this.resetLoadingState()}break;default:break}},_.checkBuffer=function(){var u=this.media,l=this.gapController;if(!u||!l||!u.readyState)return;var h=k.BufferHelper.getBuffered(u);!this.loadedmetadata&&h.length?(this.loadedmetadata=!0,this.seekToStartPos()):l.poll(this.lastCurrentTime),this.lastCurrentTime=u.currentTime},_.onFragLoadEmergencyAborted=function(){this.state=C.State.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()},_.onBufferFlushed=function(u,l){var h=l.type;if(h!==y.ElementaryStreamTypes.AUDIO||this.audioOnly&&!this.altAudio){var v=(h===y.ElementaryStreamTypes.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(v,h,O.PlaylistLevelType.MAIN)}},_.onLevelsUpdated=function(u,l){this.levels=l.levels},_.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},_.seekToStartPos=function(){var u=this.media,l=u.currentTime,h=this.startPosition;if(h>=0&&l<h){if(u.seeking){s.logger.log("could not seek to "+h+", already seeking at "+l);return}var v=k.BufferHelper.getBuffered(u),f=v.length?v.start(0):0,T=f-h;T>0&&(T<this.config.maxBufferHole||T<this.config.maxFragLookUpTolerance)&&(s.logger.log("adjusting start position by "+T+" to match buffer start"),h+=T,this.startPosition=h),this.log("seek to target start position "+h+" from current time "+l),u.currentTime=h}},_._getAudioCodec=function(u){var l=this.config.defaultAudioCodec||u.audioCodec;return this.audioCodecSwap&&l&&(this.log("Swapping audio codec"),l.indexOf("mp4a.40.5")!==-1?l="mp4a.40.2":l="mp4a.40.5"),l},_._loadBitrateTestFrag=function(u){var l=this;this._doFragLoad(u).then(function(h){var v=l.hls;if(!h||v.nextLoadLevel||l.fragContextChanged(u))return;l.fragLoadError=0,l.state=C.State.IDLE,l.startFragRequested=!1,l.bitrateTest=!1;var f=u.stats;f.parsing.start=f.parsing.end=f.buffering.start=f.buffering.end=self.performance.now(),v.trigger(H.Events.FRAG_LOADED,h)})},_._handleTransmuxComplete=function(u){var l,h="main",v=this.hls,f=u.remuxResult,T=u.chunkMeta,P=this.getCurrentContext(T);if(!P){this.warn("The loading context changed while buffering fragment "+T.sn+" of level "+T.level+". This chunk will not be buffered."),this.resetLiveStartWhenNotLoaded(T.level);return}var L=P.frag,S=P.part,A=P.level,W=f.video,D=f.text,K=f.id3,Y=f.initSegment,oe=this.altAudio?void 0:f.audio;if(this.fragContextChanged(L))return;if(this.state=C.State.PARSING,Y){Y.tracks&&(this._bufferInitSegment(A,Y.tracks,L,T),v.trigger(H.Events.FRAG_PARSING_INIT_SEGMENT,{frag:L,id:h,tracks:Y.tracks}));var le=Y.initPTS,Se=Y.timescale;Object(j.isFiniteNumber)(le)&&(this.initPTS[L.cc]=le,v.trigger(H.Events.INIT_PTS_FOUND,{frag:L,id:h,initPTS:le,timescale:Se}))}if(W&&f.independent!==!1){if(A.details){var Ee=W.startPTS,ae=W.endPTS,Ce=W.startDTS,Le=W.endDTS;if(S)S.elementaryStreams[W.type]={startPTS:Ee,endPTS:ae,startDTS:Ce,endDTS:Le};else if(W.firstKeyFrame&&W.independent&&(this.couldBacktrack=!0),W.dropped&&W.independent){var de=this.getLoadPosition()+this.config.maxBufferHole;if(de<Ee){this.backtrack(L);return}L.setElementaryStreamInfo(W.type,L.start,ae,L.start,Le,!0)}L.setElementaryStreamInfo(W.type,Ee,ae,Ce,Le),this.bufferFragmentData(W,L,S,T)}}else if(f.independent===!1){this.backtrack(L);return}if(oe){var $=oe.startPTS,He=oe.endPTS,rt=oe.startDTS,it=oe.endDTS;S&&(S.elementaryStreams[y.ElementaryStreamTypes.AUDIO]={startPTS:$,endPTS:He,startDTS:rt,endDTS:it}),L.setElementaryStreamInfo(y.ElementaryStreamTypes.AUDIO,$,He,rt,it),this.bufferFragmentData(oe,L,S,T)}if(K!=null&&(l=K.samples)!==null&&l!==void 0&&l.length){var Je={frag:L,id:h,samples:K.samples};v.trigger(H.Events.FRAG_PARSING_METADATA,Je)}if(D){var at={frag:L,id:h,samples:D.samples};v.trigger(H.Events.FRAG_PARSING_USERDATA,at)}},_._bufferInitSegment=function(u,l,h,v){var f=this;if(this.state!==C.State.PARSING)return;this.audioOnly=!!l.audio&&!l.video,this.altAudio&&!this.audioOnly&&delete l.audio;var T=l.audio,P=l.video,L=l.audiovideo;if(T){var S=u.audioCodec,A=navigator.userAgent.toLowerCase();this.audioCodecSwitch&&(S&&(S.indexOf("mp4a.40.5")!==-1?S="mp4a.40.2":S="mp4a.40.5"),T.metadata.channelCount!==1&&A.indexOf("firefox")===-1&&(S="mp4a.40.5")),A.indexOf("android")!==-1&&T.container!=="audio/mpeg"&&(S="mp4a.40.2",this.log("Android: force audio codec to "+S)),u.audioCodec&&u.audioCodec!==S&&this.log('Swapping manifest audio codec "'+u.audioCodec+'" for "'+S+'"'),T.levelCodec=S,T.id="main",this.log("Init audio buffer, container:"+T.container+", codecs[selected/level/parsed]=["+(S||"")+"/"+(u.audioCodec||"")+"/"+T.codec+"]")}P&&(P.levelCodec=u.videoCodec,P.id="main",this.log("Init video buffer, container:"+P.container+", codecs[level/parsed]=["+(u.videoCodec||"")+"/"+P.codec+"]")),L&&this.log("Init audiovideo buffer, container:"+L.container+", codecs[level/parsed]=["+(u.attrs.CODECS||"")+"/"+L.codec+"]"),this.hls.trigger(H.Events.BUFFER_CODECS,l),Object.keys(l).forEach(function(W){var D=l[W],K=D.initSegment;K!=null&&K.byteLength&&f.hls.trigger(H.Events.BUFFER_APPENDING,{type:W,data:K,frag:h,part:null,chunkMeta:v,parent:h.type})}),this.tick()},_.backtrack=function(u){this.couldBacktrack=!0,this.resetTransmuxer(),this.flushBufferGap(u);var l=this.fragmentTracker.backtrack(u);this.fragPrevious=null,this.nextLoadPosition=u.start,l?this.resetFragmentLoading(u):this.state=C.State.BACKTRACKING},_.checkFragmentChanged=function(){var u=this.media,l=null;if(u&&u.readyState>1&&u.seeking===!1){var h=u.currentTime;if(k.BufferHelper.isBuffered(u,h)?l=this.getAppendedFrag(h):k.BufferHelper.isBuffered(u,h+.1)&&(l=this.getAppendedFrag(h+.1)),l){var v=this.fragPlaying,f=l.level;(!v||l.sn!==v.sn||v.level!==f||l.urlId!==v.urlId)&&(this.hls.trigger(H.Events.FRAG_CHANGED,{frag:l}),(!v||v.level!==f)&&this.hls.trigger(H.Events.LEVEL_SWITCHED,{level:f}),this.fragPlaying=l)}}},i(x,[{key:"nextLevel",get:function(){var u=this.nextBufferedFrag;return u?u.level:-1}},{key:"currentLevel",get:function(){var u=this.media;if(u){var l=this.getAppendedFrag(u.currentTime);if(l)return l.level}return-1}},{key:"nextBufferedFrag",get:function(){var u=this.media;if(u){var l=this.getAppendedFrag(u.currentTime);return this.followingBufferedFrag(l)}else return null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}]),x}(C.default)},"./src/controller/subtitle-stream-controller.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"SubtitleStreamController",function(){return n});var j=I("./src/events.ts"),C=I("./src/utils/logger.ts"),R=I("./src/utils/buffer-helper.ts"),H=I("./src/controller/fragment-finders.ts"),k=I("./src/utils/discontinuities.ts"),e=I("./src/controller/level-helper.ts"),O=I("./src/controller/fragment-tracker.ts"),y=I("./src/controller/base-stream-controller.ts"),p=I("./src/types/loader.ts"),c=I("./src/types/level.ts");function a(t,b){for(var g=0;g<b.length;g++){var m=b[g];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(t,m.key,m)}}function r(t,b,g){return b&&a(t.prototype,b),g&&a(t,g),t}function s(t,b){t.prototype=Object.create(b.prototype),t.prototype.constructor=t,o(t,b)}function o(t,b){return o=Object.setPrototypeOf||function(m,x){return m.__proto__=x,m},o(t,b)}var i=500,n=function(t){s(b,t);function b(m,x){var _;return _=t.call(this,m,x,"[subtitle-stream-controller]")||this,_.levels=[],_.currentTrackId=-1,_.tracksBuffered=[],_.mainDetails=null,_._registerListeners(),_}var g=b.prototype;return g.onHandlerDestroying=function(){this._unregisterListeners(),this.mainDetails=null},g._registerListeners=function(){var x=this.hls;x.on(j.Events.MEDIA_ATTACHED,this.onMediaAttached,this),x.on(j.Events.MEDIA_DETACHING,this.onMediaDetaching,this),x.on(j.Events.MANIFEST_LOADING,this.onManifestLoading,this),x.on(j.Events.LEVEL_LOADED,this.onLevelLoaded,this),x.on(j.Events.ERROR,this.onError,this),x.on(j.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),x.on(j.Events.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),x.on(j.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),x.on(j.Events.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),x.on(j.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},g._unregisterListeners=function(){var x=this.hls;x.off(j.Events.MEDIA_ATTACHED,this.onMediaAttached,this),x.off(j.Events.MEDIA_DETACHING,this.onMediaDetaching,this),x.off(j.Events.MANIFEST_LOADING,this.onManifestLoading,this),x.off(j.Events.LEVEL_LOADED,this.onLevelLoaded,this),x.off(j.Events.ERROR,this.onError,this),x.off(j.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),x.off(j.Events.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),x.off(j.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),x.off(j.Events.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),x.off(j.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},g.startLoad=function(){this.stopLoad(),this.state=y.State.IDLE,this.setInterval(i),this.tick()},g.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments()},g.onLevelLoaded=function(x,_){this.mainDetails=_.details},g.onSubtitleFragProcessed=function(x,_){var d=_.frag,u=_.success;if(this.fragPrevious=d,this.state=y.State.IDLE,!u)return;var l=this.tracksBuffered[this.currentTrackId];if(!l)return;for(var h,v=d.start,f=0;f<l.length;f++)if(v>=l[f].start&&v<=l[f].end){h=l[f];break}var T=d.start+d.duration;h?h.end=T:(h={start:v,end:T},l.push(h)),this.fragmentTracker.fragBuffered(d)},g.onBufferFlushing=function(x,_){var d=_.startOffset,u=_.endOffset;if(d===0&&u!==Number.POSITIVE_INFINITY){var l=this.currentTrackId,h=this.levels;if(!h.length||!h[l]||!h[l].details)return;var v=h[l].details,f=v.targetduration,T=u-f;if(T<=0)return;_.endOffsetSubtitles=Math.max(0,T),this.tracksBuffered.forEach(function(P){for(var L=0;L<P.length;){if(P[L].end<=T){P.shift();continue}else if(P[L].start<T)P[L].start=T;else break;L++}}),this.fragmentTracker.removeFragmentsInRange(d,T,p.PlaylistLevelType.SUBTITLE)}},g.onError=function(x,_){var d,u=_.frag;if(!u||u.type!==p.PlaylistLevelType.SUBTITLE)return;(d=this.fragCurrent)!==null&&d!==void 0&&d.loader&&this.fragCurrent.loader.abort(),this.state=y.State.IDLE},g.onSubtitleTracksUpdated=function(x,_){var d=this,u=_.subtitleTracks;this.tracksBuffered=[],this.levels=u.map(function(l){return new c.Level(l)}),this.fragmentTracker.removeAllFragments(),this.fragPrevious=null,this.levels.forEach(function(l){d.tracksBuffered[l.id]=[]}),this.mediaBuffer=null},g.onSubtitleTrackSwitch=function(x,_){if(this.currentTrackId=_.id,!this.levels.length||this.currentTrackId===-1){this.clearInterval();return}var d=this.levels[this.currentTrackId];d!=null&&d.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,d&&this.setInterval(i)},g.onSubtitleTrackLoaded=function(x,_){var d,u=_.details,l=_.id,h=this.currentTrackId,v=this.levels;if(!v.length)return;var f=v[h];if(l>=v.length||l!==h||!f)return;if(this.mediaBuffer=this.mediaBufferTimeRanges,u.live||(d=f.details)!==null&&d!==void 0&&d.live){var T=this.mainDetails;if(u.deltaUpdateFailed||!T)return;var P=T.fragments[0];if(!f.details)u.hasProgramDateTime&&T.hasProgramDateTime?Object(k.alignMediaPlaylistByPDT)(u,T):P&&Object(e.addSliding)(u,P.start);else{var L=this.alignPlaylists(u,f.details);L===0&&P&&Object(e.addSliding)(u,P.start)}}if(f.details=u,this.levelLastLoaded=l,this.tick(),u.live&&!this.fragCurrent&&this.media&&this.state===y.State.IDLE){var S=Object(H.findFragmentByPTS)(null,u.fragments,this.media.currentTime,0);S||(this.warn("Subtitle playlist not aligned with playback"),f.details=void 0)}},g._handleFragmentLoadComplete=function(x){var _=x.frag,d=x.payload,u=_.decryptdata,l=this.hls;if(this.fragContextChanged(_))return;if(d&&d.byteLength>0&&u&&u.key&&u.iv&&u.method==="AES-128"){var h=performance.now();this.decrypter.webCryptoDecrypt(new Uint8Array(d),u.key.buffer,u.iv.buffer).then(function(v){var f=performance.now();l.trigger(j.Events.FRAG_DECRYPTED,{frag:_,payload:v,stats:{tstart:h,tdecrypt:f}})})}},g.doTick=function(){if(!this.media){this.state=y.State.IDLE;return}if(this.state===y.State.IDLE){var x,_=this.currentTrackId,d=this.levels;if(!d.length||!d[_]||!d[_].details)return;var u=d[_].details,l=u.targetduration,h=this.config,v=this.media,f=R.BufferHelper.bufferedInfo(this.mediaBufferTimeRanges,v.currentTime-l,h.maxBufferHole),T=f.end,P=f.len,L=this.getMaxBufferLength()+l;if(P>L)return;console.assert(u,"Subtitle track details are defined on idle subtitle stream controller tick");var S=u.fragments,A=S.length,W=u.edge,D,K=this.fragPrevious;if(T<W){var Y=h.maxFragLookUpTolerance;K&&u.hasProgramDateTime&&(D=Object(H.findFragmentByPDT)(S,K.endProgramDateTime,Y)),D||(D=Object(H.findFragmentByPTS)(K,S,T,Y),!D&&K&&K.start<S[0].start&&(D=S[0]))}else D=S[A-1];(x=D)!==null&&x!==void 0&&x.encrypted?(C.logger.log("Loading key for "+D.sn),this.state=y.State.KEY_LOADING,this.hls.trigger(j.Events.KEY_LOADING,{frag:D})):D&&this.fragmentTracker.getState(D)===O.FragmentState.NOT_LOADED&&this.loadFragment(D,u,T)}},g.loadFragment=function(x,_,d){this.fragCurrent=x,t.prototype.loadFragment.call(this,x,_,d)},r(b,[{key:"mediaBufferTimeRanges",get:function(){return this.tracksBuffered[this.currentTrackId]||[]}}]),b}(y.default)},"./src/controller/subtitle-track-controller.ts":function(Q,M,I){"use strict";I.r(M);var j=I("./src/events.ts"),C=I("./src/utils/texttrack-utils.ts"),R=I("./src/controller/base-playlist-controller.ts"),H=I("./src/types/loader.ts");function k(a,r){for(var s=0;s<r.length;s++){var o=r[s];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(a,o.key,o)}}function e(a,r,s){return r&&k(a.prototype,r),s&&k(a,s),a}function O(a,r){a.prototype=Object.create(r.prototype),a.prototype.constructor=a,y(a,r)}function y(a,r){return y=Object.setPrototypeOf||function(o,i){return o.__proto__=i,o},y(a,r)}var p=function(a){O(r,a);function r(o){var i;return i=a.call(this,o,"[subtitle-track-controller]")||this,i.media=null,i.tracks=[],i.groupId=null,i.tracksInGroup=[],i.trackId=-1,i.selectDefaultTrack=!0,i.queuedDefaultTrack=-1,i.trackChangeListener=function(){return i.onTextTracksChanged()},i.asyncPollTrackChange=function(){return i.pollTrackChange(0)},i.useTextTrackPolling=!1,i.subtitlePollingInterval=-1,i.subtitleDisplay=!0,i.registerListeners(),i}var s=r.prototype;return s.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.trackChangeListener=this.asyncPollTrackChange=null,a.prototype.destroy.call(this)},s.registerListeners=function(){var i=this.hls;i.on(j.Events.MEDIA_ATTACHED,this.onMediaAttached,this),i.on(j.Events.MEDIA_DETACHING,this.onMediaDetaching,this),i.on(j.Events.MANIFEST_LOADING,this.onManifestLoading,this),i.on(j.Events.MANIFEST_PARSED,this.onManifestParsed,this),i.on(j.Events.LEVEL_LOADING,this.onLevelLoading,this),i.on(j.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),i.on(j.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),i.on(j.Events.ERROR,this.onError,this)},s.unregisterListeners=function(){var i=this.hls;i.off(j.Events.MEDIA_ATTACHED,this.onMediaAttached,this),i.off(j.Events.MEDIA_DETACHING,this.onMediaDetaching,this),i.off(j.Events.MANIFEST_LOADING,this.onManifestLoading,this),i.off(j.Events.MANIFEST_PARSED,this.onManifestParsed,this),i.off(j.Events.LEVEL_LOADING,this.onLevelLoading,this),i.off(j.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),i.off(j.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),i.off(j.Events.ERROR,this.onError,this)},s.onMediaAttached=function(i,n){if(this.media=n.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)},s.pollTrackChange=function(i){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.trackChangeListener,i)},s.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 i=c(this.media.textTracks);i.forEach(function(n){Object(C.clearCurrentCues)(n)}),this.subtitleTrack=-1,this.media=null},s.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.selectDefaultTrack=!0},s.onManifestParsed=function(i,n){this.tracks=n.subtitleTracks},s.onSubtitleTrackLoaded=function(i,n){var t=n.id,b=n.details,g=this.trackId,m=this.tracksInGroup[g];if(!m){this.warn("Invalid subtitle track id "+t);return}var x=m.details;m.details=n.details,this.log("subtitle track "+t+" loaded ["+b.startSN+"-"+b.endSN+"]"),t===this.trackId&&(this.retryCount=0,this.playlistLoaded(t,n,x))},s.onLevelLoading=function(i,n){this.switchLevel(n.level)},s.onLevelSwitching=function(i,n){this.switchLevel(n.level)},s.switchLevel=function(i){var n=this.hls.levels[i];if(!(n!=null&&n.textGroupIds))return;var t=n.textGroupIds[n.urlId];if(this.groupId!==t){var b=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0,g=this.tracks.filter(function(_){return!t||_.groupId===t});this.tracksInGroup=g;var m=this.findTrackId(b==null?void 0:b.name)||this.findTrackId();this.groupId=t;var x={subtitleTracks:g};this.log("Updating subtitle tracks, "+g.length+' track(s) found in "'+t+'" group-id'),this.hls.trigger(j.Events.SUBTITLE_TRACKS_UPDATED,x),m!==-1&&this.setSubtitleTrack(m,b)}},s.findTrackId=function(i){for(var n=this.tracksInGroup,t=0;t<n.length;t++){var b=n[t];if((!this.selectDefaultTrack||b.default)&&(!i||i===b.name))return b.id}return-1},s.onError=function(i,n){if(a.prototype.onError.call(this,i,n),n.fatal||!n.context)return;n.context.type===H.PlaylistContextType.SUBTITLE_TRACK&&n.context.id===this.trackId&&n.context.groupId===this.groupId&&this.retryLoadingOrFail(n)},s.loadPlaylist=function(i){var n=this.tracksInGroup[this.trackId];if(this.shouldLoadTrack(n)){var t=n.id,b=n.groupId,g=n.url;if(i)try{g=i.addDirectives(g)}catch(m){this.warn("Could not construct new URL with HLS Delivery Directives: "+m)}this.log("Loading subtitle playlist for id "+t),this.hls.trigger(j.Events.SUBTITLE_TRACK_LOADING,{url:g,id:t,groupId:b,deliveryDirectives:i||null})}},s.toggleTrackModes=function(i){var n=this,t=this.media,b=this.subtitleDisplay,g=this.trackId;if(!t)return;var m=c(t.textTracks),x=m.filter(function(u){return u.groupId===n.groupId});if(i===-1)[].slice.call(m).forEach(function(u){u.mode="disabled"});else{var _=x[g];_&&(_.mode="disabled")}var d=x[i];d&&(d.mode=b?"showing":"hidden")},s.setSubtitleTrack=function(i,n){var t,b=this.tracksInGroup;if(!this.media){this.queuedDefaultTrack=i;return}if(this.trackId!==i&&this.toggleTrackModes(i),this.trackId===i&&(i===-1||(t=b[i])!==null&&t!==void 0&&t.details)||i<-1||i>=b.length)return;this.clearTimer();var g=b[i];if(this.log("Switching to subtitle track "+i),this.trackId=i,g){var m=g.id,x=g.groupId,_=x===void 0?"":x,d=g.name,u=g.type,l=g.url;this.hls.trigger(j.Events.SUBTITLE_TRACK_SWITCH,{id:m,groupId:_,name:d,type:u,url:l});var h=this.switchParams(g.url,n==null?void 0:n.details);this.loadPlaylist(h)}else this.hls.trigger(j.Events.SUBTITLE_TRACK_SWITCH,{id:i})},s.onTextTracksChanged=function(){if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;for(var i=-1,n=c(this.media.textTracks),t=0;t<n.length;t++)if(n[t].mode==="hidden")i=t;else if(n[t].mode==="showing"){i=t;break}this.subtitleTrack!==i&&(this.subtitleTrack=i)},e(r,[{key:"subtitleTracks",get:function(){return this.tracksInGroup}},{key:"subtitleTrack",get:function(){return this.trackId},set:function(i){this.selectDefaultTrack=!1;var n=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0;this.setSubtitleTrack(i,n)}}]),r}(R.default);function c(a){for(var r=[],s=0;s<a.length;s++){var o=a[s];o.kind==="subtitles"&&o.label&&r.push(a[s])}return r}M.default=p},"./src/controller/timeline-controller.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"TimelineController",function(){return c});var j=I("./src/polyfills/number.ts"),C=I("./src/events.ts"),R=I("./src/utils/cea-608-parser.ts"),H=I("./src/utils/output-filter.ts"),k=I("./src/utils/webvtt-parser.ts"),e=I("./src/utils/texttrack-utils.ts"),O=I("./src/utils/imsc1-ttml-parser.ts"),y=I("./src/types/loader.ts"),p=I("./src/utils/logger.ts"),c=function(){function o(n){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=s(),this.captionsProperties=void 0,this.hls=n,this.config=n.config,this.Cues=n.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 t=new H.default(this,"textTrack1"),b=new H.default(this,"textTrack2"),g=new H.default(this,"textTrack3"),m=new H.default(this,"textTrack4");this.cea608Parser1=new R.default(1,t,b),this.cea608Parser2=new R.default(3,g,m)}n.on(C.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),n.on(C.Events.MEDIA_DETACHING,this.onMediaDetaching,this),n.on(C.Events.MANIFEST_LOADING,this.onManifestLoading,this),n.on(C.Events.MANIFEST_LOADED,this.onManifestLoaded,this),n.on(C.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),n.on(C.Events.FRAG_LOADING,this.onFragLoading,this),n.on(C.Events.FRAG_LOADED,this.onFragLoaded,this),n.on(C.Events.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),n.on(C.Events.FRAG_DECRYPTED,this.onFragDecrypted,this),n.on(C.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),n.on(C.Events.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),n.on(C.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)}var i=o.prototype;return i.destroy=function(){var t=this.hls;t.off(C.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(C.Events.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(C.Events.MANIFEST_LOADING,this.onManifestLoading,this),t.off(C.Events.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(C.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.off(C.Events.FRAG_LOADING,this.onFragLoading,this),t.off(C.Events.FRAG_LOADED,this.onFragLoaded,this),t.off(C.Events.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),t.off(C.Events.FRAG_DECRYPTED,this.onFragDecrypted,this),t.off(C.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),t.off(C.Events.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),t.off(C.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.cea608Parser1=this.cea608Parser2=null},i.addCues=function(t,b,g,m,x){for(var _=!1,d=x.length;d--;){var u=x[d],l=r(u[0],u[1],b,g);if(l>=0&&(u[0]=Math.min(u[0],b),u[1]=Math.max(u[1],g),_=!0,l/(g-b)>.5))return}if(_||x.push([b,g]),this.config.renderTextTracksNatively){var h=this.captionsTracks[t];this.Cues.newCue(h,b,g,m)}else{var v=this.Cues.newCue(null,b,g,m);this.hls.trigger(C.Events.CUES_PARSED,{type:"captions",cues:v,track:t})}},i.onInitPtsFound=function(t,b){var g=this,m=b.frag,x=b.id,_=b.initPTS,d=b.timescale,u=this.unparsedVttFrags;x==="main"&&(this.initPTS[m.cc]=_,this.timescale[m.cc]=d),u.length&&(this.unparsedVttFrags=[],u.forEach(function(l){g.onFragLoaded(C.Events.FRAG_LOADED,l)}))},i.getExistingTrack=function(t){var b=this.media;if(b)for(var g=0;g<b.textTracks.length;g++){var m=b.textTracks[g];if(m[t])return m}return null},i.createCaptionsTrack=function(t){this.config.renderTextTracksNatively?this.createNativeTrack(t):this.createNonNativeTrack(t)},i.createNativeTrack=function(t){if(this.captionsTracks[t])return;var b=this.captionsProperties,g=this.captionsTracks,m=this.media,x=b[t],_=x.label,d=x.languageCode,u=this.getExistingTrack(t);if(u)g[t]=u,Object(e.clearCurrentCues)(g[t]),Object(e.sendAddTrackEvent)(g[t],m);else{var l=this.createTextTrack("captions",_,d);l&&(l[t]=!0,g[t]=l)}},i.createNonNativeTrack=function(t){if(this.nonNativeCaptionsTracks[t])return;var b=this.captionsProperties[t];if(!b)return;var g=b.label,m={_id:t,label:g,kind:"captions",default:b.media?!!b.media.default:!1,closedCaptions:b.media};this.nonNativeCaptionsTracks[t]=m,this.hls.trigger(C.Events.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[m]})},i.createTextTrack=function(t,b,g){var m=this.media;return m?m.addTextTrack(t,b,g):void 0},i.onMediaAttaching=function(t,b){this.media=b.media,this._cleanTracks()},i.onMediaDetaching=function(){var t=this.captionsTracks;Object.keys(t).forEach(function(b){Object(e.clearCurrentCues)(t[b]),delete t[b]}),this.nonNativeCaptionsTracks={}},i.onManifestLoading=function(){this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=s(),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())},i._cleanTracks=function(){var t=this.media;if(!t)return;var b=t.textTracks;if(b)for(var g=0;g<b.length;g++)Object(e.clearCurrentCues)(b[g])},i.onSubtitleTracksUpdated=function(t,b){var g=this;this.textTracks=[];var m=b.subtitleTracks||[],x=m.some(function(l){return l.textCodec===O.IMSC1_CODEC});if(this.config.enableWebVTT||x&&this.config.enableIMSC1){var _=this.tracks&&m&&this.tracks.length===m.length;if(this.tracks=m||[],this.config.renderTextTracksNatively){var d=this.media?this.media.textTracks:[];this.tracks.forEach(function(l,h){var v;if(h<d.length){for(var f=null,T=0;T<d.length;T++)if(a(d[T],l)){f=d[T];break}f&&(v=f)}v?Object(e.clearCurrentCues)(v):(v=g.createTextTrack("subtitles",l.name,l.lang),v&&(v.mode="disabled")),v&&(v.groupId=l.groupId,g.textTracks.push(v))})}else if(!_&&this.tracks&&this.tracks.length){var u=this.tracks.map(function(l){return{label:l.name,kind:l.type.toLowerCase(),default:l.default,subtitleTrack:l}});this.hls.trigger(C.Events.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:u})}}},i.onManifestLoaded=function(t,b){var g=this;this.config.enableCEA708Captions&&b.captions&&b.captions.forEach(function(m){var x=/(?:CC|SERVICE)([1-4])/.exec(m.instreamId);if(!x)return;var _="textTrack"+x[1],d=g.captionsProperties[_];if(!d)return;d.label=m.name,m.lang&&(d.languageCode=m.lang),d.media=m})},i.onFragLoading=function(t,b){var g=this.cea608Parser1,m=this.cea608Parser2,x=this.lastSn,_=this.lastPartIndex;if(!this.enabled||!(g&&m))return;if(b.frag.type===y.PlaylistLevelType.MAIN){var d,u,l=b.frag.sn,h=(d=b==null||((u=b.part)===null||u===void 0)?void 0:u.index)!=null?d:-1;l===x+1||l===x&&h===_+1||(g.reset(),m.reset()),this.lastSn=l,this.lastPartIndex=h}},i.onFragLoaded=function(t,b){var g=b.frag,m=b.payload,x=this.initPTS,_=this.unparsedVttFrags;if(g.type===y.PlaylistLevelType.SUBTITLE)if(m.byteLength){if(!Object(j.isFiniteNumber)(x[g.cc])){_.push(b),x.length&&this.hls.trigger(C.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:g,error:new Error("Missing initial subtitle PTS")});return}var d=g.decryptdata;if(d==null||d.key==null||d.method!=="AES-128"){var u=this.tracks[g.level],l=this.vttCCs;l[g.cc]||(l[g.cc]={start:g.start,prevCC:this.prevCC,new:!0},this.prevCC=g.cc),u&&u.textCodec===O.IMSC1_CODEC?this._parseIMSC1(g,m):this._parseVTTs(g,m,l)}}else this.hls.trigger(C.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:g,error:new Error("Empty subtitle payload")})},i._parseIMSC1=function(t,b){var g=this,m=this.hls;Object(O.parseIMSC1)(b,this.initPTS[t.cc],this.timescale[t.cc],function(x){g._appendCues(x,t.level),m.trigger(C.Events.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:t})},function(x){p.logger.log("Failed to parse IMSC1: "+x),m.trigger(C.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:t,error:x})})},i._parseVTTs=function(t,b,g){var m=this,x=this.hls;Object(k.parseWebVTT)(b,this.initPTS[t.cc],this.timescale[t.cc],g,t.cc,t.start,function(_){m._appendCues(_,t.level),x.trigger(C.Events.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:t})},function(_){m._fallbackToIMSC1(t,b),p.logger.log("Failed to parse VTT cue: "+_),x.trigger(C.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:t,error:_})})},i._fallbackToIMSC1=function(t,b){var g=this,m=this.tracks[t.level];m.textCodec||Object(O.parseIMSC1)(b,this.initPTS[t.cc],this.timescale[t.cc],function(){m.textCodec=O.IMSC1_CODEC,g._parseIMSC1(t,b)},function(){m.textCodec="wvtt"})},i._appendCues=function(t,b){var g=this.hls;if(this.config.renderTextTracksNatively){var m=this.textTracks[b];if(m.mode==="disabled")return;t.forEach(function(d){return Object(e.addCueToTrack)(m,d)})}else{var x=this.tracks[b],_=x.default?"default":"subtitles"+b;g.trigger(C.Events.CUES_PARSED,{type:"subtitles",cues:t,track:_})}},i.onFragDecrypted=function(t,b){var g=b.frag;if(g.type===y.PlaylistLevelType.SUBTITLE){if(!Object(j.isFiniteNumber)(this.initPTS[g.cc])){this.unparsedVttFrags.push(b);return}this.onFragLoaded(C.Events.FRAG_LOADED,b)}},i.onSubtitleTracksCleared=function(){this.tracks=[],this.captionsTracks={}},i.onFragParsingUserdata=function(t,b){var g=this.cea608Parser1,m=this.cea608Parser2;if(!this.enabled||!(g&&m))return;for(var x=0;x<b.samples.length;x++){var _=b.samples[x].bytes;if(_){var d=this.extractCea608Data(_);g.addData(b.samples[x].pts,d[0]),m.addData(b.samples[x].pts,d[1])}}},i.onBufferFlushing=function(t,b){var g=b.startOffset,m=b.endOffset,x=b.endOffsetSubtitles,_=b.type,d=this.media;if(!d||d.currentTime<m)return;if(!_||_==="video"){var u=this.captionsTracks;Object.keys(u).forEach(function(h){return Object(e.removeCuesInRange)(u[h],g,m)})}if(this.config.renderTextTracksNatively&&(g===0&&x!==void 0)){var l=this.textTracks;Object.keys(l).forEach(function(h){return Object(e.removeCuesInRange)(l[h],g,x)})}},i.extractCea608Data=function(t){for(var b=t[0]&31,g=2,m=[[],[]],x=0;x<b;x++){var _=t[g++],d=127&t[g++],u=127&t[g++],l=(4&_)!==0,h=3&_;if(d===0&&u===0)continue;l&&((h===0||h===1)&&(m[h].push(d),m[h].push(u)))}return m},o}();function a(o,i){return o&&o.label===i.name&&!(o.textTrack1||o.textTrack2)}function r(o,i,n,t){return Math.min(i,t)-Math.max(o,n)}function s(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!1}}}},"./src/crypt/aes-crypto.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"default",function(){return j});var j=function(){function C(H,k){this.subtle=void 0,this.aesIV=void 0,this.subtle=H,this.aesIV=k}var R=C.prototype;return R.decrypt=function(k,e){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},e,k)},C}()},"./src/crypt/aes-decryptor.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"removePadding",function(){return C}),I.d(M,"default",function(){return R});var j=I("./src/utils/typed-array.ts");function C(H){var k=H.byteLength,e=k&&new DataView(H.buffer).getUint8(k-1);return e?Object(j.sliceUint8)(H,0,k-e):H}var R=function(){function H(){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 k=H.prototype;return k.uint8ArrayToUint32Array_=function(O){for(var y=new DataView(O),p=new Uint32Array(4),c=0;c<4;c++)p[c]=y.getUint32(c*4);return p},k.initTable=function(){var O=this.sBox,y=this.invSBox,p=this.subMix,c=p[0],a=p[1],r=p[2],s=p[3],o=this.invSubMix,i=o[0],n=o[1],t=o[2],b=o[3],g=new Uint32Array(256),m=0,x=0,_=0;for(_=0;_<256;_++)_<128?g[_]=_<<1:g[_]=_<<1^283;for(_=0;_<256;_++){var d=x^x<<1^x<<2^x<<3^x<<4;d=d>>>8^d&255^99,O[m]=d,y[d]=m;var u=g[m],l=g[u],h=g[l],v=g[d]*257^d*16843008;c[m]=v<<24|v>>>8,a[m]=v<<16|v>>>16,r[m]=v<<8|v>>>24,s[m]=v,v=h*16843009^l*65537^u*257^m*16843008,i[d]=v<<24|v>>>8,n[d]=v<<16|v>>>16,t[d]=v<<8|v>>>24,b[d]=v,m?(m=u^g[g[g[h^u]]],x^=g[g[x]]):m=x=1}},k.expandKey=function(O){for(var y=this.uint8ArrayToUint32Array_(O),p=!0,c=0;c<y.length&&p;)p=y[c]===this.key[c],c++;if(p)return;this.key=y;var a=this.keySize=y.length;if(a!==4&&a!==6&&a!==8)throw new Error("Invalid aes key size="+a);var r=this.ksRows=(a+6+1)*4,s,o,i=this.keySchedule=new Uint32Array(r),n=this.invKeySchedule=new Uint32Array(r),t=this.sBox,b=this.rcon,g=this.invSubMix,m=g[0],x=g[1],_=g[2],d=g[3],u,l;for(s=0;s<r;s++){if(s<a){u=i[s]=y[s];continue}l=u,s%a===0?(l=l<<8|l>>>24,l=t[l>>>24]<<24|t[l>>>16&255]<<16|t[l>>>8&255]<<8|t[l&255],l^=b[s/a|0]<<24):a>6&&s%a===4&&(l=t[l>>>24]<<24|t[l>>>16&255]<<16|t[l>>>8&255]<<8|t[l&255]),i[s]=u=(i[s-a]^l)>>>0}for(o=0;o<r;o++)s=r-o,o&3?l=i[s]:l=i[s-4],o<4||s<=4?n[o]=l:n[o]=m[t[l>>>24]]^x[t[l>>>16&255]]^_[t[l>>>8&255]]^d[t[l&255]],n[o]=n[o]>>>0},k.networkToHostOrderSwap=function(O){return O<<24|(O&65280)<<8|(O&16711680)>>8|O>>>24},k.decrypt=function(O,y,p){for(var c=this.keySize+6,a=this.invKeySchedule,r=this.invSBox,s=this.invSubMix,o=s[0],i=s[1],n=s[2],t=s[3],b=this.uint8ArrayToUint32Array_(p),g=b[0],m=b[1],x=b[2],_=b[3],d=new Int32Array(O),u=new Int32Array(d.length),l,h,v,f,T,P,L,S,A,W,D,K,Y,oe,le=this.networkToHostOrderSwap;y<d.length;){for(A=le(d[y]),W=le(d[y+1]),D=le(d[y+2]),K=le(d[y+3]),T=A^a[0],P=K^a[1],L=D^a[2],S=W^a[3],Y=4,oe=1;oe<c;oe++)l=o[T>>>24]^i[P>>16&255]^n[L>>8&255]^t[S&255]^a[Y],h=o[P>>>24]^i[L>>16&255]^n[S>>8&255]^t[T&255]^a[Y+1],v=o[L>>>24]^i[S>>16&255]^n[T>>8&255]^t[P&255]^a[Y+2],f=o[S>>>24]^i[T>>16&255]^n[P>>8&255]^t[L&255]^a[Y+3],T=l,P=h,L=v,S=f,Y=Y+4;l=r[T>>>24]<<24^r[P>>16&255]<<16^r[L>>8&255]<<8^r[S&255]^a[Y],h=r[P>>>24]<<24^r[L>>16&255]<<16^r[S>>8&255]<<8^r[T&255]^a[Y+1],v=r[L>>>24]<<24^r[S>>16&255]<<16^r[T>>8&255]<<8^r[P&255]^a[Y+2],f=r[S>>>24]<<24^r[T>>16&255]<<16^r[P>>8&255]<<8^r[L&255]^a[Y+3],u[y]=le(l^g),u[y+1]=le(f^m),u[y+2]=le(v^x),u[y+3]=le(h^_),g=A,m=W,x=D,_=K,y=y+4}return u.buffer},H}()},"./src/crypt/decrypter.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"default",function(){return y});var j=I("./src/crypt/aes-crypto.ts"),C=I("./src/crypt/fast-aes-key.ts"),R=I("./src/crypt/aes-decryptor.ts"),H=I("./src/utils/logger.ts"),k=I("./src/utils/mp4-tools.ts"),e=I("./src/utils/typed-array.ts"),O=16,y=function(){function p(a,r,s){var o=s===void 0?{}:s,i=o.removePKCS7Padding,n=i===void 0?!0:i;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=a,this.config=r,this.removePKCS7Padding=n,n)try{var t=self.crypto;t&&(this.subtle=t.subtle||t.webkitSubtle)}catch(b){}this.subtle===null&&(this.config.enableSoftwareAES=!0)}var c=p.prototype;return c.destroy=function(){this.observer=null},c.isSync=function(){return this.config.enableSoftwareAES},c.flush=function(){var r=this.currentResult;if(!r){this.reset();return}var s=new Uint8Array(r);return this.reset(),this.removePKCS7Padding?Object(R.removePadding)(s):s},c.reset=function(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)},c.decrypt=function(r,s,o,i){if(this.config.enableSoftwareAES){this.softwareDecrypt(new Uint8Array(r),s,o);var n=this.flush();n&&i(n.buffer)}else this.webCryptoDecrypt(new Uint8Array(r),s,o).then(i)},c.softwareDecrypt=function(r,s,o){var i=this.currentIV,n=this.currentResult,t=this.remainderData;this.logOnce("JS AES decrypt"),t&&(r=Object(k.appendUint8Array)(t,r),this.remainderData=null);var b=this.getValidChunk(r);if(!b.length)return null;i&&(o=i);var g=this.softwareDecrypter;g||(g=this.softwareDecrypter=new R.default),g.expandKey(s);var m=n;return this.currentResult=g.decrypt(b.buffer,0,o),this.currentIV=Object(e.sliceUint8)(b,-16).buffer,m||null},c.webCryptoDecrypt=function(r,s,o){var i=this,n=this.subtle;return(this.key!==s||!this.fastAesKey)&&(this.key=s,this.fastAesKey=new C.default(n,s)),this.fastAesKey.expandKey().then(function(t){if(!n)return Promise.reject(new Error("web crypto not initialized"));var b=new j.default(n,o);return b.decrypt(r.buffer,t)}).catch(function(t){return i.onWebCryptoError(t,r,s,o)})},c.onWebCryptoError=function(r,s,o,i){return H.logger.warn("[decrypter.ts]: WebCrypto Error, disable WebCrypto API:",r),this.config.enableSoftwareAES=!0,this.logEnabled=!0,this.softwareDecrypt(s,o,i)},c.getValidChunk=function(r){var s=r,o=r.length-r.length%O;return o!==r.length&&(s=Object(e.sliceUint8)(r,0,o),this.remainderData=Object(e.sliceUint8)(r,o)),s},c.logOnce=function(r){if(!this.logEnabled)return;H.logger.log("[decrypter.ts]: "+r),this.logEnabled=!1},p}()},"./src/crypt/fast-aes-key.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"default",function(){return j});var j=function(){function C(H,k){this.subtle=void 0,this.key=void 0,this.subtle=H,this.key=k}var R=C.prototype;return R.expandKey=function(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])},C}()},"./src/demux/aacdemuxer.ts":function(Q,M,I){"use strict";I.r(M);var j=I("./src/demux/base-audio-demuxer.ts"),C=I("./src/demux/adts.ts"),R=I("./src/utils/logger.ts"),H=I("./src/demux/id3.ts");function k(y,p){y.prototype=Object.create(p.prototype),y.prototype.constructor=y,e(y,p)}function e(y,p){return e=Object.setPrototypeOf||function(a,r){return a.__proto__=r,a},e(y,p)}var O=function(y){k(p,y);function p(a,r){var s;return s=y.call(this)||this,s.observer=void 0,s.config=void 0,s.observer=a,s.config=r,s}var c=p.prototype;return c.resetInitSegment=function(r,s,o){y.prototype.resetInitSegment.call(this,r,s,o),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!0,samples:[],manifestCodec:r,duration:o,inputTimeScale:9e4,dropped:0}},p.probe=function(r){if(!r)return!1;for(var s=H.getID3Data(r,0)||[],o=s.length,i=r.length;o<i;o++)if(C.probe(r,o))return R.logger.log("ADTS sync word found !"),!0;return!1},c.canParse=function(r,s){return C.canParse(r,s)},c.appendFrame=function(r,s,o){C.initTrackConfig(r,this.observer,s,o,r.manifestCodec);var i=C.appendFrame(r,s,o,this.initPTS,this.frameIndex);if(i&&i.missing===0)return i},p}(j.default);O.minProbeByteLength=9,M.default=O},"./src/demux/adts.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"getAudioConfig",function(){return H}),I.d(M,"isHeaderPattern",function(){return k}),I.d(M,"getHeaderLength",function(){return e}),I.d(M,"getFullFrameLength",function(){return O}),I.d(M,"canGetFrameLength",function(){return y}),I.d(M,"isHeader",function(){return p}),I.d(M,"canParse",function(){return c}),I.d(M,"probe",function(){return a}),I.d(M,"initTrackConfig",function(){return r}),I.d(M,"getFrameDuration",function(){return s}),I.d(M,"parseFrameHeader",function(){return o}),I.d(M,"appendFrame",function(){return i});var j=I("./src/utils/logger.ts"),C=I("./src/errors.ts"),R=I("./src/events.ts");function H(n,t,b,g){var m,x,_,d,u=navigator.userAgent.toLowerCase(),l=g,h=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];m=((t[b+2]&192)>>>6)+1;var v=(t[b+2]&60)>>>2;if(v>h.length-1){n.trigger(R.Events.ERROR,{type:C.ErrorTypes.MEDIA_ERROR,details:C.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+v});return}return _=(t[b+2]&1)<<2,_|=(t[b+3]&192)>>>6,j.logger.log("manifest codec:"+g+", ADTS type:"+m+", samplingIndex:"+v),/firefox/i.test(u)?v>=6?(m=5,d=new Array(4),x=v-3):(m=2,d=new Array(2),x=v):u.indexOf("android")!==-1?(m=2,d=new Array(2),x=v):(m=5,d=new Array(4),g&&(g.indexOf("mp4a.40.29")!==-1||g.indexOf("mp4a.40.5")!==-1)||!g&&v>=6?x=v-3:((g&&g.indexOf("mp4a.40.2")!==-1&&(v>=6&&_===1||/vivaldi/i.test(u))||!g&&_===1)&&(m=2,d=new Array(2)),x=v)),d[0]=m<<3,d[0]|=(v&14)>>1,d[1]|=(v&1)<<7,d[1]|=_<<3,m===5&&(d[1]|=(x&14)>>1,d[2]=(x&1)<<7,d[2]|=2<<2,d[3]=0),{config:d,samplerate:h[v],channelCount:_,codec:"mp4a.40."+m,manifestCodec:l}}function k(n,t){return n[t]===255&&(n[t+1]&246)===240}function e(n,t){return n[t+1]&1?7:9}function O(n,t){return(n[t+3]&3)<<11|n[t+4]<<3|(n[t+5]&224)>>>5}function y(n,t){return t+5<n.length}function p(n,t){return t+1<n.length&&k(n,t)}function c(n,t){return y(n,t)&&k(n,t)&&O(n,t)<=n.length-t}function a(n,t){if(p(n,t)){var b=e(n,t);if(t+b>=n.length)return!1;var g=O(n,t);if(g<=b)return!1;var m=t+g;return m===n.length||p(n,m)}return!1}function r(n,t,b,g,m){if(!n.samplerate){var x=H(t,b,g,m);if(!x)return;n.config=x.config,n.samplerate=x.samplerate,n.channelCount=x.channelCount,n.codec=x.codec,n.manifestCodec=x.manifestCodec,j.logger.log("parsed codec:"+n.codec+", rate:"+x.samplerate+", channels:"+x.channelCount)}}function s(n){return 1024*9e4/n}function o(n,t,b,g,m){var x=e(n,t),_=O(n,t);if(_-=x,_>0){var d=b+g*m;return{headerLength:x,frameLength:_,stamp:d}}}function i(n,t,b,g,m){var x=s(n.samplerate),_=o(t,b,g,m,x);if(_){var d=_.frameLength,u=_.headerLength,l=_.stamp,h=u+d,v=Math.max(0,b+h-t.length),f;v?(f=new Uint8Array(h-u),f.set(t.subarray(b+u,t.length),0)):f=t.subarray(b+u,b+h);var T={unit:f,pts:l};return v||n.samples.push(T),{sample:T,length:h,missing:v}}}},"./src/demux/base-audio-demuxer.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"initPTSFn",function(){return O});var j=I("./src/polyfills/number.ts"),C=I("./src/demux/id3.ts"),R=I("./src/demux/dummy-demuxed-track.ts"),H=I("./src/utils/mp4-tools.ts"),k=I("./src/utils/typed-array.ts"),e=function(){function y(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.initPTS=null}var p=y.prototype;return p.resetInitSegment=function(a,r,s){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}},p.resetTimeStamp=function(){},p.resetContiguity=function(){},p.canParse=function(a,r){return!1},p.appendFrame=function(a,r,s){},p.demux=function(a,r){this.cachedData&&(a=Object(H.appendUint8Array)(this.cachedData,a),this.cachedData=null);var s=C.getID3Data(a,0),o=s?s.length:0,i,n,t=this._audioTrack,b=this._id3Track,g=s?C.getTimeStamp(s):void 0,m=a.length;for((this.frameIndex===0||this.initPTS===null)&&(this.initPTS=O(g,r)),s&&s.length>0&&b.samples.push({pts:this.initPTS,dts:this.initPTS,data:s}),n=this.initPTS;o<m;){if(this.canParse(a,o)){var x=this.appendFrame(t,a,o);x?(this.frameIndex++,n=x.sample.pts,o+=x.length,i=o):o=m}else C.canParse(a,o)?(s=C.getID3Data(a,o),b.samples.push({pts:n,dts:n,data:s}),o+=s.length,i=o):o++;if(o===m&&i!==m){var _=Object(k.sliceUint8)(a,i);this.cachedData?this.cachedData=Object(H.appendUint8Array)(this.cachedData,_):this.cachedData=_}}return{audioTrack:t,avcTrack:Object(R.dummyTrack)(),id3Track:b,textTrack:Object(R.dummyTrack)()}},p.demuxSampleAes=function(a,r,s){return Promise.reject(new Error("["+this+"] This demuxer does not support Sample-AES decryption"))},p.flush=function(a){var r=this.cachedData;return r&&(this.cachedData=null,this.demux(r,0)),this.frameIndex=0,{audioTrack:this._audioTrack,avcTrack:Object(R.dummyTrack)(),id3Track:this._id3Track,textTrack:Object(R.dummyTrack)()}},p.destroy=function(){},y}(),O=function(p,c){return Object(j.isFiniteNumber)(p)?p*90:c*9e4};M.default=e},"./src/demux/chunk-cache.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"default",function(){return j});var j=function(){function R(){this.chunks=[],this.dataLength=0}var H=R.prototype;return H.push=function(e){this.chunks.push(e),this.dataLength+=e.length},H.flush=function(){var e=this.chunks,O=this.dataLength,y;if(e.length)e.length===1?y=e[0]:y=C(e,O);else return new Uint8Array(0);return this.reset(),y},H.reset=function(){this.chunks.length=0,this.dataLength=0},R}();function C(R,H){for(var k=new Uint8Array(H),e=0,O=0;O<R.length;O++){var y=R[O];k.set(y,e),e+=y.length}return k}},"./src/demux/dummy-demuxed-track.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"dummyTrack",function(){return j});function j(){return{type:"",id:-1,pid:-1,inputTimeScale:9e4,sequenceNumber:-1,samples:[],dropped:0}}},"./src/demux/exp-golomb.ts":function(Q,M,I){"use strict";I.r(M);var j=I("./src/utils/logger.ts"),C=function(){function R(k){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=k,this.bytesAvailable=k.byteLength,this.word=0,this.bitsAvailable=0}var H=R.prototype;return H.loadWord=function(){var e=this.data,O=this.bytesAvailable,y=e.byteLength-O,p=new Uint8Array(4),c=Math.min(4,O);if(c===0)throw new Error("no bytes available");p.set(e.subarray(y,y+c)),this.word=new DataView(p.buffer).getUint32(0),this.bitsAvailable=c*8,this.bytesAvailable-=c},H.skipBits=function(e){var O;this.bitsAvailable>e?(this.word<<=e,this.bitsAvailable-=e):(e-=this.bitsAvailable,O=e>>3,e-=O>>3,this.bytesAvailable-=O,this.loadWord(),this.word<<=e,this.bitsAvailable-=e)},H.readBits=function(e){var O=Math.min(this.bitsAvailable,e),y=this.word>>>32-O;return e>32&&j.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=e-O,O>0&&this.bitsAvailable?y<<O|this.readBits(O):y},H.skipLZ=function(){var e;for(e=0;e<this.bitsAvailable;++e)if((this.word&2147483648>>>e)!==0)return this.word<<=e,this.bitsAvailable-=e,e;return this.loadWord(),e+this.skipLZ()},H.skipUEG=function(){this.skipBits(1+this.skipLZ())},H.skipEG=function(){this.skipBits(1+this.skipLZ())},H.readUEG=function(){var e=this.skipLZ();return this.readBits(e+1)-1},H.readEG=function(){var e=this.readUEG();return 1&e?1+e>>>1:-1*(e>>>1)},H.readBoolean=function(){return this.readBits(1)===1},H.readUByte=function(){return this.readBits(8)},H.readUShort=function(){return this.readBits(16)},H.readUInt=function(){return this.readBits(32)},H.skipScalingList=function(e){for(var O=8,y=8,p,c=0;c<e;c++)y!==0&&(p=this.readEG(),y=(O+p+256)%256),O=y===0?O:y},H.readSPS=function(){var e=0,O=0,y=0,p=0,c,a,r,s=this.readUByte.bind(this),o=this.readBits.bind(this),i=this.readUEG.bind(this),n=this.readBoolean.bind(this),t=this.skipBits.bind(this),b=this.skipEG.bind(this),g=this.skipUEG.bind(this),m=this.skipScalingList.bind(this);s();var x=s();if(o(5),t(3),s(),g(),x===100||x===110||x===122||x===244||x===44||x===83||x===86||x===118||x===128){var _=i();if(_===3&&t(1),g(),g(),t(1),n())for(a=_!==3?8:12,r=0;r<a;r++)n()&&(r<6?m(16):m(64))}g();var d=i();if(d===0)i();else if(d===1)for(t(1),b(),b(),c=i(),r=0;r<c;r++)b();g(),t(1);var u=i(),l=i(),h=o(1);h===0&&t(1),t(1),n()&&(e=i(),O=i(),y=i(),p=i());var v=[1,1];if(n()&&n()){var f=s();switch(f){case 1:v=[1,1];break;case 2:v=[12,11];break;case 3:v=[10,11];break;case 4:v=[16,11];break;case 5:v=[40,33];break;case 6:v=[24,11];break;case 7:v=[20,11];break;case 8:v=[32,11];break;case 9:v=[80,33];break;case 10:v=[18,11];break;case 11:v=[15,11];break;case 12:v=[64,33];break;case 13:v=[160,99];break;case 14:v=[4,3];break;case 15:v=[3,2];break;case 16:v=[2,1];break;case 255:{v=[s()<<8|s(),s()<<8|s()];break}}}return{width:Math.ceil((u+1)*16-e*2-O*2),height:(2-h)*(l+1)*16-(h?2:4)*(y+p),pixelRatio:v}},H.readSliceType=function(){return this.readUByte(),this.readUEG(),this.readUEG()},R}();M.default=C},"./src/demux/id3.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"isHeader",function(){return j}),I.d(M,"isFooter",function(){return C}),I.d(M,"getID3Data",function(){return R}),I.d(M,"canParse",function(){return k}),I.d(M,"getTimeStamp",function(){return e}),I.d(M,"isTimeStampFrame",function(){return O}),I.d(M,"getID3Frames",function(){return p}),I.d(M,"decodeFrame",function(){return c}),I.d(M,"utf8ArrayToStr",function(){return i}),I.d(M,"testables",function(){return n});var j=function(m,x){return x+10<=m.length&&(m[x]===73&&m[x+1]===68&&m[x+2]===51&&(m[x+3]<255&&m[x+4]<255&&(m[x+6]<128&&m[x+7]<128&&m[x+8]<128&&m[x+9]<128)))},C=function(m,x){return x+10<=m.length&&(m[x]===51&&m[x+1]===68&&m[x+2]===73&&(m[x+3]<255&&m[x+4]<255&&(m[x+6]<128&&m[x+7]<128&&m[x+8]<128&&m[x+9]<128)))},R=function(m,x){for(var _=x,d=0;j(m,x);){d+=10;var u=H(m,x+6);d+=u,C(m,x+10)&&(d+=10),x+=d}return d>0?m.subarray(_,_+d):void 0},H=function(m,x){var _=0;return _=(m[x]&127)<<21,_|=(m[x+1]&127)<<14,_|=(m[x+2]&127)<<7,_|=m[x+3]&127,_},k=function(m,x){return j(m,x)&&H(m,x+6)+10<=m.length-x},e=function(m){for(var x=p(m),_=0;_<x.length;_++){var d=x[_];if(O(d))return o(d)}return},O=function(m){return m&&m.key==="PRIV"&&m.info==="com.apple.streaming.transportStreamTimestamp"},y=function(m){var x=String.fromCharCode(m[0],m[1],m[2],m[3]),_=H(m,4),d=10;return{type:x,size:_,data:m.subarray(d,d+_)}},p=function(m){for(var x=0,_=[];j(m,x);){var d=H(m,x+6);x+=10;for(var u=x+d;x+8<u;){var l=y(m.subarray(x)),h=c(l);h&&_.push(h),x+=l.size+10}C(m,x)&&(x+=10)}return _},c=function(m){return m.type==="PRIV"?a(m):m.type[0]==="W"?s(m):r(m)},a=function(m){if(m.size<2)return;var x=i(m.data,!0),_=new Uint8Array(m.data.subarray(x.length+1));return{key:m.type,info:x,data:_.buffer}},r=function(m){if(m.size<2)return;if(m.type==="TXXX"){var x=1,_=i(m.data.subarray(x),!0);x+=_.length+1;var d=i(m.data.subarray(x));return{key:m.type,info:_,data:d}}var u=i(m.data.subarray(1));return{key:m.type,data:u}},s=function(m){if(m.type==="WXXX"){if(m.size<2)return;var x=1,_=i(m.data.subarray(x),!0);x+=_.length+1;var d=i(m.data.subarray(x));return{key:m.type,info:_,data:d}}var u=i(m.data);return{key:m.type,data:u}},o=function(m){if(m.data.byteLength===8){var x=new Uint8Array(m.data),_=x[3]&1,d=(x[4]<<23)+(x[5]<<15)+(x[6]<<7)+x[7];return d/=45,_&&(d+=4772185884e-2),Math.round(d)}return},i=function(m,x){x===void 0&&(x=!1);var _=b();if(_){var d=_.decode(m);if(x){var u=d.indexOf("\0");return u!==-1?d.substring(0,u):d}return d.replace(/\0/g,"")}for(var l=m.length,h,v,f,T="",P=0;P<l;){if(h=m[P++],h===0&&x)return T;if(h===0||h===3)continue;switch(h>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:T+=String.fromCharCode(h);break;case 12:case 13:v=m[P++],T+=String.fromCharCode((h&31)<<6|v&63);break;case 14:v=m[P++],f=m[P++],T+=String.fromCharCode((h&15)<<12|(v&63)<<6|(f&63)<<0);break;default:}}return T},n={decodeTextFrame:r},t;function b(){return!t&&typeof self.TextDecoder!="undefined"&&(t=new self.TextDecoder("utf-8")),t}},"./src/demux/mp3demuxer.ts":function(Q,M,I){"use strict";I.r(M);var j=I("./src/demux/base-audio-demuxer.ts"),C=I("./src/demux/id3.ts"),R=I("./src/utils/logger.ts"),H=I("./src/demux/mpegaudio.ts");function k(y,p){y.prototype=Object.create(p.prototype),y.prototype.constructor=y,e(y,p)}function e(y,p){return e=Object.setPrototypeOf||function(a,r){return a.__proto__=r,a},e(y,p)}var O=function(y){k(p,y);function p(){return y.apply(this,arguments)||this}var c=p.prototype;return c.resetInitSegment=function(r,s,o){y.prototype.resetInitSegment.call(this,r,s,o),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!1,samples:[],manifestCodec:r,duration:o,inputTimeScale:9e4,dropped:0}},p.probe=function(r){if(!r)return!1;for(var s=C.getID3Data(r,0)||[],o=s.length,i=r.length;o<i;o++)if(H.probe(r,o))return R.logger.log("MPEG Audio sync word found !"),!0;return!1},c.canParse=function(r,s){return H.canParse(r,s)},c.appendFrame=function(r,s,o){return this.initPTS===null?void 0:H.appendFrame(r,s,o,this.initPTS,this.frameIndex)},p}(j.default);O.minProbeByteLength=4,M.default=O},"./src/demux/mp4demuxer.ts":function(Q,M,I){"use strict";I.r(M);var j=I("./src/utils/mp4-tools.ts"),C=I("./src/demux/dummy-demuxed-track.ts"),R=function(){function H(e,O){this.remainderData=null,this.config=void 0,this.config=O}var k=H.prototype;return k.resetTimeStamp=function(){},k.resetInitSegment=function(){},k.resetContiguity=function(){},H.probe=function(O){return Object(j.findBox)({data:O,start:0,end:Math.min(O.length,16384)},["moof"]).length>0},k.demux=function(O){var y=O,p=Object(C.dummyTrack)();if(this.config.progressive){this.remainderData&&(y=Object(j.appendUint8Array)(this.remainderData,O));var c=Object(j.segmentValidRange)(y);this.remainderData=c.remainder,p.samples=c.valid||new Uint8Array}else p.samples=y;return{audioTrack:Object(C.dummyTrack)(),avcTrack:p,id3Track:Object(C.dummyTrack)(),textTrack:Object(C.dummyTrack)()}},k.flush=function(){var O=Object(C.dummyTrack)();return O.samples=this.remainderData||new Uint8Array,this.remainderData=null,{audioTrack:Object(C.dummyTrack)(),avcTrack:O,id3Track:Object(C.dummyTrack)(),textTrack:Object(C.dummyTrack)()}},k.demuxSampleAes=function(O,y,p){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))},k.destroy=function(){},H}();R.minProbeByteLength=1024,M.default=R},"./src/demux/mpegaudio.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"appendFrame",function(){return e}),I.d(M,"parseHeader",function(){return O}),I.d(M,"isHeaderPattern",function(){return y}),I.d(M,"isHeader",function(){return p}),I.d(M,"canParse",function(){return c}),I.d(M,"probe",function(){return a});var j=null,C=[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],R=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],H=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],k=[0,1,1,4];function e(r,s,o,i,n){if(o+24>s.length)return;var t=O(s,o);if(t&&o+t.frameLength<=s.length){var b=t.samplesPerFrame*9e4/t.sampleRate,g=i+n*b,m={unit:s.subarray(o,o+t.frameLength),pts:g,dts:g};return r.config=[],r.channelCount=t.channelCount,r.samplerate=t.sampleRate,r.samples.push(m),{sample:m,length:t.frameLength,missing:0}}}function O(r,s){var o=r[s+1]>>3&3,i=r[s+1]>>1&3,n=r[s+2]>>4&15,t=r[s+2]>>2&3;if(o!==1&&n!==0&&n!==15&&t!==3){var b=r[s+2]>>1&1,g=r[s+3]>>6,m=o===3?3-i:i===3?3:4,x=C[m*14+n-1]*1e3,_=o===3?0:o===2?1:2,d=R[_*3+t],u=g===3?1:2,l=H[o][i],h=k[i],v=l*8*h,f=Math.floor(l*x/d+b)*h;if(j===null){var T=navigator.userAgent||"",P=T.match(/Chrome\/(\d+)/i);j=P?parseInt(P[1]):0}var L=!!j&&j<=87;return L&&i===2&&x>=224e3&&g===0&&(r[s+3]=r[s+3]|128),{sampleRate:d,channelCount:u,frameLength:f,samplesPerFrame:v}}}function y(r,s){return r[s]===255&&(r[s+1]&224)===224&&(r[s+1]&6)!==0}function p(r,s){return s+1<r.length&&y(r,s)}function c(r,s){var o=4;return y(r,s)&&o<=r.length-s}function a(r,s){if(s+1<r.length&&y(r,s)){var o=4,i=O(r,s),n=o;i!=null&&i.frameLength&&(n=i.frameLength);var t=s+n;return t===r.length||p(r,t)}return!1}},"./src/demux/sample-aes.ts":function(Q,M,I){"use strict";I.r(M);var j=I("./src/crypt/decrypter.ts"),C=I("./src/demux/tsdemuxer.ts"),R=function(){function H(e,O,y){this.keyData=void 0,this.decrypter=void 0,this.keyData=y,this.decrypter=new j.default(e,O,{removePKCS7Padding:!1})}var k=H.prototype;return k.decryptBuffer=function(O,y){this.decrypter.decrypt(O,this.keyData.key.buffer,this.keyData.iv.buffer,y)},k.decryptAacSample=function(O,y,p,c){var a=O[y].unit,r=a.subarray(16,a.length-a.length%16),s=r.buffer.slice(r.byteOffset,r.byteOffset+r.length),o=this;this.decryptBuffer(s,function(i){var n=new Uint8Array(i);a.set(n,16),c||o.decryptAacSamples(O,y+1,p)})},k.decryptAacSamples=function(O,y,p){for(;;y++){if(y>=O.length){p();return}if(O[y].unit.length<32)continue;var c=this.decrypter.isSync();if(this.decryptAacSample(O,y,p,c),!c)return}},k.getAvcEncryptedData=function(O){for(var y=Math.floor((O.length-48)/160)*16+16,p=new Int8Array(y),c=0,a=32;a<=O.length-16;a+=160,c+=16)p.set(O.subarray(a,a+16),c);return p},k.getAvcDecryptedUnit=function(O,y){for(var p=new Uint8Array(y),c=0,a=32;a<=O.length-16;a+=160,c+=16)O.set(p.subarray(c,c+16),a);return O},k.decryptAvcSample=function(O,y,p,c,a,r){var s=Object(C.discardEPB)(a.data),o=this.getAvcEncryptedData(s),i=this;this.decryptBuffer(o.buffer,function(n){a.data=i.getAvcDecryptedUnit(s,n),r||i.decryptAvcSamples(O,y,p+1,c)})},k.decryptAvcSamples=function(O,y,p,c){if(O instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;y++,p=0){if(y>=O.length){c();return}for(var a=O[y].units;!(p>=a.length);p++){var r=a[p];if(r.data.length<=48||r.type!==1&&r.type!==5)continue;var s=this.decrypter.isSync();if(this.decryptAvcSample(O,y,p,c,r,s),!s)return}}},H}();M.default=R},"./src/demux/transmuxer-interface.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"default",function(){return a});var j=I("./node_modules/webworkify-webpack/index.js"),C=I.n(j),R=I("./src/events.ts"),H=I("./src/demux/transmuxer.ts"),k=I("./src/utils/logger.ts"),e=I("./src/errors.ts"),O=I("./src/utils/mediasource-helper.ts"),y=I("./node_modules/eventemitter3/index.js"),p=I.n(y),c=Object(O.getMediaSource)()||{isTypeSupported:function(){return!1}},a=function(){function r(o,i,n,t){var b=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=i,this.onTransmuxComplete=n,this.onFlush=t;var g=o.config,m=function(l,h){h=h||{},h.frag=b.frag,h.id=b.id,o.trigger(l,h)};this.observer=new y.EventEmitter,this.observer.on(R.Events.FRAG_DECRYPTED,m),this.observer.on(R.Events.ERROR,m);var x={mp4:c.isTypeSupported("video/mp4"),mpeg:c.isTypeSupported("audio/mpeg"),mp3:c.isTypeSupported('audio/mp4; codecs="mp3"')},_=navigator.vendor;if(g.enableWorker&&typeof Worker!="undefined"){k.logger.log("demuxing in webworker");var d;try{d=this.worker=j("./src/demux/transmuxer-worker.ts"),this.onwmsg=this.onWorkerMessage.bind(this),d.addEventListener("message",this.onwmsg),d.onerror=function(u){o.trigger(R.Events.ERROR,{type:e.ErrorTypes.OTHER_ERROR,details:e.ErrorDetails.INTERNAL_EXCEPTION,fatal:!0,event:"demuxerWorker",error:new Error(u.message+" ("+u.filename+":"+u.lineno+")")})},d.postMessage({cmd:"init",typeSupported:x,vendor:_,id:i,config:JSON.stringify(g)})}catch(u){k.logger.warn("Error in worker:",u),k.logger.error("Error while initializing DemuxerWorker, fallback to inline"),d&&self.URL.revokeObjectURL(d.objectURL),this.transmuxer=new H.default(this.observer,x,g,_,i),this.worker=null}}else this.transmuxer=new H.default(this.observer,x,g,_,i)}var s=r.prototype;return s.destroy=function(){var i=this.worker;if(i)i.removeEventListener("message",this.onwmsg),i.terminate(),this.worker=null;else{var n=this.transmuxer;n&&(n.destroy(),this.transmuxer=null)}var t=this.observer;t&&t.removeAllListeners(),this.observer=null},s.push=function(i,n,t,b,g,m,x,_,d,u){var l=this;d.transmuxing.start=self.performance.now();var h=this.transmuxer,v=this.worker,f=m?m.start:g.start,T=g.decryptdata,P=this.frag,L=!(P&&g.cc===P.cc),S=!(P&&d.level===P.level),A=P?d.sn-P.sn:-1,W=this.part?d.part-this.part.index:1,D=!S&&(A===1||A===0&&W===1),K=self.performance.now();(S||A||g.stats.parsing.start===0)&&(g.stats.parsing.start=K),m&&(W||!D)&&(m.stats.parsing.start=K);var Y=new H.TransmuxState(L,D,_,S,f);if(!D||L){k.logger.log("[transmuxer-interface, "+g.type+"]: Starting new transmux session for sn: "+d.sn+" p: "+d.part+" level: "+d.level+" id: "+d.id+`
|
|
discontinuity: `+L+`
|
|
trackSwitch: `+S+`
|
|
contiguous: `+D+`
|
|
accurateTimeOffset: `+_+`
|
|
timeOffset: `+f);var oe=new H.TransmuxConfig(t,b,n,x,u);this.configureTransmuxer(oe)}if(this.frag=g,this.part=m,v)v.postMessage({cmd:"demux",data:i,decryptdata:T,chunkMeta:d,state:Y},i instanceof ArrayBuffer?[i]:[]);else if(h){var le=h.push(i,T,d,Y);Object(H.isPromise)(le)?le.then(function(Se){l.handleTransmuxComplete(Se)}):this.handleTransmuxComplete(le)}},s.flush=function(i){var n=this;i.transmuxing.start=self.performance.now();var t=this.transmuxer,b=this.worker;if(b)b.postMessage({cmd:"flush",chunkMeta:i});else if(t){var g=t.flush(i);Object(H.isPromise)(g)?g.then(function(m){n.handleFlushResult(m,i)}):this.handleFlushResult(g,i)}},s.handleFlushResult=function(i,n){var t=this;i.forEach(function(b){t.handleTransmuxComplete(b)}),this.onFlush(n)},s.onWorkerMessage=function(i){var n=i.data,t=this.hls;switch(n.event){case"init":{self.URL.revokeObjectURL(this.worker.objectURL);break}case"transmuxComplete":{this.handleTransmuxComplete(n.data);break}case"flush":{this.onFlush(n.data);break}default:{n.data=n.data||{},n.data.frag=this.frag,n.data.id=this.id,t.trigger(n.event,n.data);break}}},s.configureTransmuxer=function(i){var n=this.worker,t=this.transmuxer;n?n.postMessage({cmd:"configure",config:i}):t&&t.configure(i)},s.handleTransmuxComplete=function(i){i.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(i)},r}()},"./src/demux/transmuxer-worker.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"default",function(){return e});var j=I("./src/demux/transmuxer.ts"),C=I("./src/events.ts"),R=I("./src/utils/logger.ts"),H=I("./node_modules/eventemitter3/index.js"),k=I.n(H);function e(a){var r=new H.EventEmitter,s=function(i,n){a.postMessage({event:i,data:n})};r.on(C.Events.FRAG_DECRYPTED,s),r.on(C.Events.ERROR,s),a.addEventListener("message",function(o){var i=o.data;switch(i.cmd){case"init":{var n=JSON.parse(i.config);a.transmuxer=new j.default(r,i.typeSupported,n,i.vendor,i.id),Object(R.enableLogs)(n.debug),s("init",null);break}case"configure":{a.transmuxer.configure(i.config);break}case"demux":{var t=a.transmuxer.push(i.data,i.decryptdata,i.chunkMeta,i.state);Object(j.isPromise)(t)?t.then(function(m){O(a,m)}):O(a,t);break}case"flush":{var b=i.chunkMeta,g=a.transmuxer.flush(b);Object(j.isPromise)(g)?g.then(function(m){p(a,m,b)}):p(a,g,b);break}default:break}})}function O(a,r){if(c(r.remuxResult))return;var s=[],o=r.remuxResult,i=o.audio,n=o.video;i&&y(s,i),n&&y(s,n),a.postMessage({event:"transmuxComplete",data:r},s)}function y(a,r){r.data1&&a.push(r.data1.buffer),r.data2&&a.push(r.data2.buffer)}function p(a,r,s){r.forEach(function(o){O(a,o)}),a.postMessage({event:"flush",data:s})}function c(a){return!a.audio&&!a.video&&!a.text&&!a.id3&&!a.initSegment}},"./src/demux/transmuxer.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"default",function(){return n}),I.d(M,"isPromise",function(){return g}),I.d(M,"TransmuxConfig",function(){return m}),I.d(M,"TransmuxState",function(){return x});var j=I("./src/events.ts"),C=I("./src/errors.ts"),R=I("./src/crypt/decrypter.ts"),H=I("./src/demux/aacdemuxer.ts"),k=I("./src/demux/mp4demuxer.ts"),e=I("./src/demux/tsdemuxer.ts"),O=I("./src/demux/mp3demuxer.ts"),y=I("./src/remux/mp4-remuxer.ts"),p=I("./src/remux/passthrough-remuxer.ts"),c=I("./src/demux/chunk-cache.ts"),a=I("./src/utils/mp4-tools.ts"),r=I("./src/utils/logger.ts"),s;try{s=self.performance.now.bind(self.performance)}catch(_){r.logger.debug("Unable to use Performance API on this environment"),s=self.Date.now}var o=[{demux:e.default,remux:y.default},{demux:k.default,remux:p.default},{demux:H.default,remux:y.default},{demux:O.default,remux:y.default}],i=1024;o.forEach(function(_){var d=_.demux;i=Math.max(i,d.minProbeByteLength)});var n=function(){function _(u,l,h,v,f){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=l,this.config=h,this.vendor=v,this.id=f}var d=_.prototype;return d.configure=function(l){this.transmuxConfig=l,this.decrypter&&this.decrypter.reset()},d.push=function(l,h,v,f){var T=this,P=v.transmuxing;P.executeStart=s();var L=new Uint8Array(l),S=this.cache,A=this.config,W=this.currentTransmuxState,D=this.transmuxConfig;f&&(this.currentTransmuxState=f);var K=t(L,h);if(K&&K.method==="AES-128"){var Y=this.getDecrypter();if(A.enableSoftwareAES){var oe=Y.softwareDecrypt(L,K.key.buffer,K.iv.buffer);if(!oe)return P.executeEnd=s(),b(v);L=new Uint8Array(oe)}else return this.decryptionPromise=Y.webCryptoDecrypt(L,K.key.buffer,K.iv.buffer).then(function(Ge){var et=T.push(Ge,null,v);return T.decryptionPromise=null,et}),this.decryptionPromise}var le=f||W,Se=le.contiguous,Ee=le.discontinuity,ae=le.trackSwitch,Ce=le.accurateTimeOffset,Le=le.timeOffset,de=D.audioCodec,$=D.videoCodec,He=D.defaultInitPts,rt=D.duration,it=D.initSegmentData;if((Ee||ae)&&this.resetInitSegment(it,de,$,rt),Ee&&this.resetInitialTimestamp(He),Se||this.resetContiguity(),this.needsProbing(L,Ee,ae)){if(S.dataLength){var Je=S.flush();L=Object(a.appendUint8Array)(Je,L)}this.configureTransmuxer(L,D)}var at=this.transmux(L,K,Le,Ce,v),ke=this.currentTransmuxState;return ke.contiguous=!0,ke.discontinuity=!1,ke.trackSwitch=!1,P.executeEnd=s(),at},d.flush=function(l){var h=this,v=l.transmuxing;v.executeStart=s();var f=this.decrypter,T=this.cache,P=this.currentTransmuxState,L=this.decryptionPromise;if(L)return L.then(function(){return h.flush(l)});var S=[],A=P.timeOffset;if(f){var W=f.flush();W&&S.push(this.push(W,null,l))}var D=T.dataLength;T.reset();var K=this.demuxer,Y=this.remuxer;if(!K||!Y)return D>=i&&this.observer.emit(j.Events.ERROR,j.Events.ERROR,{type:C.ErrorTypes.MEDIA_ERROR,details:C.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"}),v.executeEnd=s(),[b(l)];var oe=K.flush(A);return g(oe)?oe.then(function(le){return h.flushRemux(S,le,l),S}):(this.flushRemux(S,oe,l),S)},d.flushRemux=function(l,h,v){var f=h.audioTrack,T=h.avcTrack,P=h.id3Track,L=h.textTrack,S=this.currentTransmuxState,A=S.accurateTimeOffset,W=S.timeOffset;r.logger.log("[transmuxer.ts]: Flushed fragment "+v.sn+(v.part>-1?" p: "+v.part:"")+" of level "+v.level);var D=this.remuxer.remux(f,T,P,L,W,A,!0,this.id);l.push({remuxResult:D,chunkMeta:v}),v.transmuxing.executeEnd=s()},d.resetInitialTimestamp=function(l){var h=this.demuxer,v=this.remuxer;if(!h||!v)return;h.resetTimeStamp(l),v.resetTimeStamp(l)},d.resetContiguity=function(){var l=this.demuxer,h=this.remuxer;if(!l||!h)return;l.resetContiguity(),h.resetNextTimestamp()},d.resetInitSegment=function(l,h,v,f){var T=this.demuxer,P=this.remuxer;if(!T||!P)return;T.resetInitSegment(h,v,f),P.resetInitSegment(l,h,v)},d.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},d.transmux=function(l,h,v,f,T){var P;return h&&h.method==="SAMPLE-AES"?P=this.transmuxSampleAes(l,h,v,f,T):P=this.transmuxUnencrypted(l,v,f,T),P},d.transmuxUnencrypted=function(l,h,v,f){var T=this.demuxer.demux(l,h,!1,!this.config.progressive),P=T.audioTrack,L=T.avcTrack,S=T.id3Track,A=T.textTrack,W=this.remuxer.remux(P,L,S,A,h,v,!1,this.id);return{remuxResult:W,chunkMeta:f}},d.transmuxSampleAes=function(l,h,v,f,T){var P=this;return this.demuxer.demuxSampleAes(l,h,v).then(function(L){var S=P.remuxer.remux(L.audioTrack,L.avcTrack,L.id3Track,L.textTrack,v,f,!1,P.id);return{remuxResult:S,chunkMeta:T}})},d.configureTransmuxer=function(l,h){for(var v=this.config,f=this.observer,T=this.typeSupported,P=this.vendor,L=h.audioCodec,S=h.defaultInitPts,A=h.duration,W=h.initSegmentData,D=h.videoCodec,K,Y=0,oe=o.length;Y<oe;Y++)if(o[Y].demux.probe(l)){K=o[Y];break}K||(r.logger.warn("Failed to find demuxer by probing frag, treating as mp4 passthrough"),K={demux:k.default,remux:p.default});var le=this.demuxer,Se=this.remuxer,Ee=K.remux,ae=K.demux;(!Se||!(Se instanceof Ee))&&(this.remuxer=new Ee(f,v,T,P)),(!le||!(le instanceof ae))&&(this.demuxer=new ae(f,v,T),this.probe=ae.probe),this.resetInitSegment(W,L,D,A),this.resetInitialTimestamp(S)},d.needsProbing=function(l,h,v){return!this.demuxer||!this.remuxer||h||v},d.getDecrypter=function(){var l=this.decrypter;return l||(l=this.decrypter=new R.default(this.observer,this.config)),l},_}();function t(_,d){var u=null;return _.byteLength>0&&d!=null&&d.key!=null&&d.iv!==null&&d.method!=null&&(u=d),u}var b=function(d){return{remuxResult:{},chunkMeta:d}};function g(_){return"then"in _&&_.then instanceof Function}var m=function(d,u,l,h,v){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=d,this.videoCodec=u,this.initSegmentData=l,this.duration=h,this.defaultInitPts=v},x=function(d,u,l,h,v){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.discontinuity=d,this.contiguous=u,this.accurateTimeOffset=l,this.trackSwitch=h,this.timeOffset=v}},"./src/demux/tsdemuxer.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"discardEPB",function(){return b});var j=I("./src/demux/adts.ts"),C=I("./src/demux/mpegaudio.ts"),R=I("./src/demux/exp-golomb.ts"),H=I("./src/demux/id3.ts"),k=I("./src/demux/sample-aes.ts"),e=I("./src/events.ts"),O=I("./src/utils/mp4-tools.ts"),y=I("./src/utils/logger.ts"),p=I("./src/errors.ts"),c={video:1,audio:2,id3:3,text:4},a=function(){function g(x,_,d){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=x,this.config=_,this.typeSupported=d}g.probe=function(_){var d=g.syncOffset(_);return d<0?!1:(d&&y.logger.warn("MPEG2-TS detected but first sync word found @ offset "+d+", junk ahead ?"),!0)},g.syncOffset=function(_){for(var d=Math.min(1e3,_.length-3*188),u=0;u<d;){if(_[u]===71&&_[u+188]===71&&_[u+2*188]===71)return u;u++}return-1},g.createTrack=function(_,d){return{container:_==="video"||_==="audio"?"video/mp2t":void 0,type:_,id:c[_],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:_==="audio"?d:void 0}};var m=g.prototype;return m.resetInitSegment=function(_,d,u){this.pmtParsed=!1,this._pmtId=-1,this._avcTrack=g.createTrack("video",u),this._audioTrack=g.createTrack("audio",u),this._id3Track=g.createTrack("id3",u),this._txtTrack=g.createTrack("text",u),this._audioTrack.isAAC=!0,this.aacOverFlow=null,this.aacLastPTS=null,this.avcSample=null,this.audioCodec=_,this.videoCodec=d,this._duration=u},m.resetTimeStamp=function(){},m.resetContiguity=function(){var _=this._audioTrack,d=this._avcTrack,u=this._id3Track;_&&(_.pesData=null),d&&(d.pesData=null),u&&(u.pesData=null),this.aacOverFlow=null,this.aacLastPTS=null},m.demux=function(_,d,u,l){u===void 0&&(u=!1),l===void 0&&(l=!1),u||(this.sampleAes=null);var h,v=this._avcTrack,f=this._audioTrack,T=this._id3Track,P=v.pid,L=v.pesData,S=f.pid,A=T.pid,W=f.pesData,D=T.pesData,K=!1,Y=this.pmtParsed,oe=this._pmtId,le=_.length;if(this.remainderData&&(_=Object(O.appendUint8Array)(this.remainderData,_),le=_.length,this.remainderData=null),le<188&&!l)return this.remainderData=_,{audioTrack:f,avcTrack:v,id3Track:T,textTrack:this._txtTrack};var Se=Math.max(0,g.syncOffset(_));le-=(le+Se)%188,le<_.byteLength&&!l&&(this.remainderData=new Uint8Array(_.buffer,le,_.buffer.byteLength-le));for(var Ee=Se;Ee<le;Ee+=188)if(_[Ee]===71){var ae=!!(_[Ee+1]&64),Ce=((_[Ee+1]&31)<<8)+_[Ee+2],Le=(_[Ee+3]&48)>>4,de=void 0;if(Le>1){if(de=Ee+5+_[Ee+4],de===Ee+188)continue}else de=Ee+4;switch(Ce){case P:ae&&(L&&(h=i(L))&&this.parseAVCPES(h,!1),L={data:[],size:0}),L&&(L.data.push(_.subarray(de,Ee+188)),L.size+=Ee+188-de);break;case S:ae&&(W&&(h=i(W))&&(f.isAAC?this.parseAACPES(h):this.parseMPEGPES(h)),W={data:[],size:0}),W&&(W.data.push(_.subarray(de,Ee+188)),W.size+=Ee+188-de);break;case A:ae&&(D&&(h=i(D))&&this.parseID3PES(h),D={data:[],size:0}),D&&(D.data.push(_.subarray(de,Ee+188)),D.size+=Ee+188-de);break;case 0:ae&&(de+=_[de]+1),oe=this._pmtId=s(_,de);break;case oe:{ae&&(de+=_[de]+1);var $=o(_,de,this.typeSupported.mpeg===!0||this.typeSupported.mp3===!0,u);P=$.avc,P>0&&(v.pid=P),S=$.audio,S>0&&(f.pid=S,f.isAAC=$.isAAC),A=$.id3,A>0&&(T.pid=A),K&&!Y&&(y.logger.log("reparse from beginning"),K=!1,Ee=Se-188),Y=this.pmtParsed=!0;break}case 17:case 8191:break;default:K=!0;break}}else this.observer.emit(e.Events.ERROR,e.Events.ERROR,{type:p.ErrorTypes.MEDIA_ERROR,details:p.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});v.pesData=L,f.pesData=W,T.pesData=D;var He={audioTrack:f,avcTrack:v,id3Track:T,textTrack:this._txtTrack};return l&&this.extractRemainingSamples(He),He},m.flush=function(){var _=this.remainderData;this.remainderData=null;var d;return _?d=this.demux(_,-1,!1,!0):d={audioTrack:this._audioTrack,avcTrack:this._avcTrack,textTrack:this._txtTrack,id3Track:this._id3Track},this.extractRemainingSamples(d),this.sampleAes?this.decrypt(d,this.sampleAes):d},m.extractRemainingSamples=function(_){var d=_.audioTrack,u=_.avcTrack,l=_.id3Track,h=u.pesData,v=d.pesData,f=l.pesData,T;h&&(T=i(h))?(this.parseAVCPES(T,!0),u.pesData=null):u.pesData=h,v&&(T=i(v))?(d.isAAC?this.parseAACPES(T):this.parseMPEGPES(T),d.pesData=null):(v!=null&&v.size&&y.logger.log("last AAC PES packet truncated,might overlap between fragments"),d.pesData=v),f&&(T=i(f))?(this.parseID3PES(T),l.pesData=null):l.pesData=f},m.demuxSampleAes=function(_,d,u){var l=this.demux(_,u,!0,!this.config.progressive),h=this.sampleAes=new k.default(this.observer,this.config,d);return this.decrypt(l,h)},m.decrypt=function(_,d){return new Promise(function(u){var l=_.audioTrack,h=_.avcTrack;l.samples&&l.isAAC?d.decryptAacSamples(l.samples,0,function(){h.samples?d.decryptAvcSamples(h.samples,0,0,function(){u(_)}):u(_)}):h.samples&&d.decryptAvcSamples(h.samples,0,0,function(){u(_)})})},m.destroy=function(){this._initPTS=this._initDTS=null,this._duration=0},m.parseAVCPES=function(_,d){var u=this,l=this._avcTrack,h=this.parseAVCNALu(_.data),v=!1,f=this.avcSample,T,P=!1;_.data=null,f&&h.length&&!l.audFound&&(n(f,l),f=this.avcSample=r(!1,_.pts,_.dts,"")),h.forEach(function(L){switch(L.type){case 1:{T=!0,f||(f=u.avcSample=r(!0,_.pts,_.dts,"")),v&&(f.debug+="NDR "),f.frame=!0;var S=L.data;if(P&&S.length>4){var A=new R.default(S).readSliceType();(A===2||A===4||A===7||A===9)&&(f.key=!0)}break}case 5:T=!0,f||(f=u.avcSample=r(!0,_.pts,_.dts,"")),v&&(f.debug+="IDR "),f.key=!0,f.frame=!0;break;case 6:{T=!0,v&&f&&(f.debug+="SEI ");var W=new R.default(b(L.data));W.readUByte();for(var D=0,K=0,Y=!1,oe=0;!Y&&W.bytesAvailable>1;){D=0;do oe=W.readUByte(),D+=oe;while(oe===255);K=0;do oe=W.readUByte(),K+=oe;while(oe===255);if(D===4&&W.bytesAvailable!==0){Y=!0;var le=W.readUByte();if(le===181){var Se=W.readUShort();if(Se===49){var Ee=W.readUInt();if(Ee===1195456820){var ae=W.readUByte();if(ae===3){for(var Ce=W.readUByte(),Le=W.readUByte(),de=31&Ce,$=[Ce,Le],He=0;He<de;He++)$.push(W.readUByte()),$.push(W.readUByte()),$.push(W.readUByte());t(u._txtTrack.samples,{type:3,pts:_.pts,bytes:$})}}}}}else if(D===5&&W.bytesAvailable!==0){if(Y=!0,K>16){for(var rt=[],it=0;it<16;it++)rt.push(W.readUByte().toString(16)),(it===3||it===5||it===7||it===9)&&rt.push("-");for(var Je=K-16,at=new Uint8Array(Je),ke=0;ke<Je;ke++)at[ke]=W.readUByte();t(u._txtTrack.samples,{pts:_.pts,payloadType:D,uuid:rt.join(""),userData:Object(H.utf8ArrayToStr)(at),userDataBytes:at})}}else if(K<W.bytesAvailable)for(var Ge=0;Ge<K;Ge++)W.readUByte()}break}case 7:if(T=!0,P=!0,v&&f&&(f.debug+="SPS "),!l.sps){var et=new R.default(L.data),ee=et.readSPS();l.width=ee.width,l.height=ee.height,l.pixelRatio=ee.pixelRatio,l.sps=[L.data],l.duration=u._duration;for(var ve=L.data.subarray(1,4),Te="avc1.",Oe=0;Oe<3;Oe++){var Qe=ve[Oe].toString(16);Qe.length<2&&(Qe="0"+Qe),Te+=Qe}l.codec=Te}break;case 8:T=!0,v&&f&&(f.debug+="PPS "),l.pps||(l.pps=[L.data]);break;case 9:T=!1,l.audFound=!0,f&&n(f,l),f=u.avcSample=r(!1,_.pts,_.dts,v?"AUD ":"");break;case 12:T=!1;break;default:T=!1,f&&(f.debug+="unknown NAL "+L.type+" ");break}if(f&&T){var tt=f.units;tt.push(L)}}),d&&f&&(n(f,l),this.avcSample=null)},m.getLastNalUnit=function(){var _,d=this.avcSample,u;if(!d||d.units.length===0){var l=this._avcTrack.samples;d=l[l.length-1]}if((_=d)!==null&&_!==void 0&&_.units){var h=d.units;u=h[h.length-1]}return u},m.parseAVCNALu=function(_){var d=_.byteLength,u=this._avcTrack,l=u.naluState||0,h=l,v=[],f=0,T,P,L,S=-1,A=0;for(l===-1&&(S=0,A=_[0]&31,l=0,f=1);f<d;){if(T=_[f++],!l){l=T?0:1;continue}if(l===1){l=T?0:2;continue}if(!T)l=3;else if(T===1){if(S>=0){var W={data:_.subarray(S,f-l-1),type:A};v.push(W)}else{var D=this.getLastNalUnit();if(D&&(h&&f<=4-h&&(D.state&&(D.data=D.data.subarray(0,D.data.byteLength-h))),P=f-l-1,P>0)){var K=new Uint8Array(D.data.byteLength+P);K.set(D.data,0),K.set(_.subarray(0,P),D.data.byteLength),D.data=K,D.state=0}}f<d?(L=_[f]&31,S=f,A=L,l=0):l=-1}else l=0}if(S>=0&&l>=0){var Y={data:_.subarray(S,d),type:A,state:l};v.push(Y)}if(v.length===0){var oe=this.getLastNalUnit();if(oe){var le=new Uint8Array(oe.data.byteLength+_.byteLength);le.set(oe.data,0),le.set(_,oe.data.byteLength),oe.data=le}}return u.naluState=l,v},m.parseAACPES=function(_){var d=0,u=this._audioTrack,l=this.aacOverFlow,h=_.data;if(l){this.aacOverFlow=null;var v=l.sample.unit.byteLength,f=Math.min(l.missing,v),T=v-f;l.sample.unit.set(h.subarray(0,f),T),u.samples.push(l.sample),d=l.missing}var P,L;for(P=d,L=h.length;P<L-1&&!j.isHeader(h,P);P++);if(P!==d){var S,A;if(P<L-1?(S="AAC PES did not start with ADTS header,offset:"+P,A=!1):(S="no ADTS header found in AAC PES",A=!0),y.logger.warn("parsing error:"+S),this.observer.emit(e.Events.ERROR,e.Events.ERROR,{type:p.ErrorTypes.MEDIA_ERROR,details:p.ErrorDetails.FRAG_PARSING_ERROR,fatal:A,reason:S}),A)return}j.initTrackConfig(u,this.observer,h,P,this.audioCodec);var W;if(_.pts!==void 0)W=_.pts;else if(l){var D=j.getFrameDuration(u.samplerate);W=l.sample.pts+D}else{y.logger.warn("[tsdemuxer]: AAC PES unknown PTS");return}for(var K=0;P<L;)if(j.isHeader(h,P)){if(P+5<L){var Y=j.appendFrame(u,h,P,W,K);if(Y)if(Y.missing)this.aacOverFlow=Y;else{P+=Y.length,K++;continue}}break}else P++},m.parseMPEGPES=function(_){var d=_.data,u=d.length,l=0,h=0,v=_.pts;if(v===void 0){y.logger.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;h<u;)if(C.isHeader(d,h)){var f=C.appendFrame(this._audioTrack,d,h,v,l);if(f)h+=f.length,l++;else break}else h++},m.parseID3PES=function(_){if(_.pts===void 0){y.logger.warn("[tsdemuxer]: ID3 PES unknown PTS");return}this._id3Track.samples.push(_)},g}();a.minProbeByteLength=188;function r(g,m,x,_){return{key:g,frame:!1,pts:m,dts:x,units:[],debug:_,length:0}}function s(g,m){return(g[m+10]&31)<<8|g[m+11]}function o(g,m,x,_){var d={audio:-1,avc:-1,id3:-1,isAAC:!0},u=(g[m+1]&15)<<8|g[m+2],l=m+3+u-4,h=(g[m+10]&15)<<8|g[m+11];for(m+=12+h;m<l;){var v=(g[m+1]&31)<<8|g[m+2];switch(g[m]){case 207:if(!_){y.logger.log("ADTS AAC with AES-128-CBC frame encryption found in unencrypted stream");break}case 15:d.audio===-1&&(d.audio=v);break;case 21:d.id3===-1&&(d.id3=v);break;case 219:if(!_){y.logger.log("H.264 with AES-128-CBC slice encryption found in unencrypted stream");break}case 27:d.avc===-1&&(d.avc=v);break;case 3:case 4:x?d.audio===-1&&(d.audio=v,d.isAAC=!1):y.logger.log("MPEG audio found, not supported in this browser");break;case 36:y.logger.warn("Unsupported HEVC stream type found");break;default:break}m+=((g[m+3]&15)<<8|g[m+4])+5}return d}function i(g){var m=0,x,_,d,u,l,h=g.data;if(!g||g.size===0)return null;for(;h[0].length<19&&h.length>1;){var v=new Uint8Array(h[0].length+h[1].length);v.set(h[0]),v.set(h[1],h[0].length),h[0]=v,h.splice(1,1)}x=h[0];var f=(x[0]<<16)+(x[1]<<8)+x[2];if(f===1){if(_=(x[4]<<8)+x[5],_&&_>g.size-6)return null;var T=x[7];T&192&&(u=(x[9]&14)*536870912+(x[10]&255)*4194304+(x[11]&254)*16384+(x[12]&255)*128+(x[13]&254)/2,T&64?(l=(x[14]&14)*536870912+(x[15]&255)*4194304+(x[16]&254)*16384+(x[17]&255)*128+(x[18]&254)/2,u-l>60*9e4&&(y.logger.warn(Math.round((u-l)/9e4)+"s delta between PTS and DTS, align them"),u=l)):l=u),d=x[8];var P=d+9;if(g.size<=P)return null;g.size-=P;for(var L=new Uint8Array(g.size),S=0,A=h.length;S<A;S++){x=h[S];var W=x.byteLength;if(P)if(P>W){P-=W;continue}else x=x.subarray(P),W-=P,P=0;L.set(x,m),m+=W}return _&&(_-=d+3),{data:L,pts:u,dts:l,len:_}}return null}function n(g,m){if(g.units.length&&g.frame){if(g.pts===void 0){var x=m.samples,_=x.length;if(_){var d=x[_-1];g.pts=d.pts,g.dts=d.dts}else{m.dropped++;return}}m.samples.push(g)}g.debug.length&&y.logger.log(g.pts+"/"+g.dts+":"+g.debug)}function t(g,m){var x=g.length;if(x>0){if(m.pts>=g[x-1].pts)g.push(m);else for(var _=x-1;_>=0;_--)if(m.pts<g[_].pts){g.splice(_,0,m);break}}else g.push(m)}function b(g){for(var m=g.byteLength,x=[],_=1;_<m-2;)g[_]===0&&g[_+1]===0&&g[_+2]===3?(x.push(_+2),_+=2):_++;if(x.length===0)return g;var d=m-x.length,u=new Uint8Array(d),l=0;for(_=0;_<d;l++,_++)l===x[0]&&(l++,x.shift()),u[_]=g[l];return u}M.default=a},"./src/errors.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"ErrorTypes",function(){return j}),I.d(M,"ErrorDetails",function(){return C});var j;(function(R){R.NETWORK_ERROR="networkError",R.MEDIA_ERROR="mediaError",R.KEY_SYSTEM_ERROR="keySystemError",R.MUX_ERROR="muxError",R.OTHER_ERROR="otherError"})(j||(j={}));var C;(function(R){R.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",R.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",R.KEY_SYSTEM_NO_SESSION="keySystemNoSession",R.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",R.KEY_SYSTEM_NO_INIT_DATA="keySystemNoInitData",R.MANIFEST_LOAD_ERROR="manifestLoadError",R.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",R.MANIFEST_PARSING_ERROR="manifestParsingError",R.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",R.LEVEL_EMPTY_ERROR="levelEmptyError",R.LEVEL_LOAD_ERROR="levelLoadError",R.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",R.LEVEL_SWITCH_ERROR="levelSwitchError",R.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",R.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",R.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",R.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",R.FRAG_LOAD_ERROR="fragLoadError",R.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",R.FRAG_DECRYPT_ERROR="fragDecryptError",R.FRAG_PARSING_ERROR="fragParsingError",R.REMUX_ALLOC_ERROR="remuxAllocError",R.KEY_LOAD_ERROR="keyLoadError",R.KEY_LOAD_TIMEOUT="keyLoadTimeOut",R.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",R.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",R.BUFFER_APPEND_ERROR="bufferAppendError",R.BUFFER_APPENDING_ERROR="bufferAppendingError",R.BUFFER_STALLED_ERROR="bufferStalledError",R.BUFFER_FULL_ERROR="bufferFullError",R.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",R.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",R.INTERNAL_EXCEPTION="internalException",R.INTERNAL_ABORTED="aborted",R.UNKNOWN="unknown"})(C||(C={}))},"./src/events.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"Events",function(){return j});var j;(function(C){C.MEDIA_ATTACHING="hlsMediaAttaching",C.MEDIA_ATTACHED="hlsMediaAttached",C.MEDIA_DETACHING="hlsMediaDetaching",C.MEDIA_DETACHED="hlsMediaDetached",C.BUFFER_RESET="hlsBufferReset",C.BUFFER_CODECS="hlsBufferCodecs",C.BUFFER_CREATED="hlsBufferCreated",C.BUFFER_APPENDING="hlsBufferAppending",C.BUFFER_APPENDED="hlsBufferAppended",C.BUFFER_EOS="hlsBufferEos",C.BUFFER_FLUSHING="hlsBufferFlushing",C.BUFFER_FLUSHED="hlsBufferFlushed",C.MANIFEST_LOADING="hlsManifestLoading",C.MANIFEST_LOADED="hlsManifestLoaded",C.MANIFEST_PARSED="hlsManifestParsed",C.LEVEL_SWITCHING="hlsLevelSwitching",C.LEVEL_SWITCHED="hlsLevelSwitched",C.LEVEL_LOADING="hlsLevelLoading",C.LEVEL_LOADED="hlsLevelLoaded",C.LEVEL_UPDATED="hlsLevelUpdated",C.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",C.LEVELS_UPDATED="hlsLevelsUpdated",C.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",C.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",C.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",C.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",C.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",C.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",C.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",C.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",C.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",C.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",C.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",C.CUES_PARSED="hlsCuesParsed",C.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",C.INIT_PTS_FOUND="hlsInitPtsFound",C.FRAG_LOADING="hlsFragLoading",C.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",C.FRAG_LOADED="hlsFragLoaded",C.FRAG_DECRYPTED="hlsFragDecrypted",C.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",C.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",C.FRAG_PARSING_METADATA="hlsFragParsingMetadata",C.FRAG_PARSED="hlsFragParsed",C.FRAG_BUFFERED="hlsFragBuffered",C.FRAG_CHANGED="hlsFragChanged",C.FPS_DROP="hlsFpsDrop",C.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",C.ERROR="hlsError",C.DESTROYING="hlsDestroying",C.KEY_LOADING="hlsKeyLoading",C.KEY_LOADED="hlsKeyLoaded",C.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",C.BACK_BUFFER_REACHED="hlsBackBufferReached"})(j||(j={}))},"./src/hls.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"default",function(){return g});var j=I("./node_modules/url-toolkit/src/url-toolkit.js"),C=I.n(j),R=I("./src/loader/playlist-loader.ts"),H=I("./src/loader/key-loader.ts"),k=I("./src/controller/id3-track-controller.ts"),e=I("./src/controller/latency-controller.ts"),O=I("./src/controller/level-controller.ts"),y=I("./src/controller/fragment-tracker.ts"),p=I("./src/controller/stream-controller.ts"),c=I("./src/is-supported.ts"),a=I("./src/utils/logger.ts"),r=I("./src/config.ts"),s=I("./node_modules/eventemitter3/index.js"),o=I.n(s),i=I("./src/events.ts"),n=I("./src/errors.ts");function t(m,x){for(var _=0;_<x.length;_++){var d=x[_];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(m,d.key,d)}}function b(m,x,_){return x&&t(m.prototype,x),_&&t(m,_),m}var g=function(){m.isSupported=function(){return Object(c.isSupported)()};function m(_){_===void 0&&(_={}),this.config=void 0,this.userConfig=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new s.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 d=this.config=Object(r.mergeConfig)(m.DefaultConfig,_);this.userConfig=_,Object(a.enableLogs)(d.debug),this._autoLevelCapping=-1,d.progressive&&Object(r.enableStreamingMode)(d);var u=d.abrController,l=d.bufferController,h=d.capLevelController,v=d.fpsController,f=this.abrController=new u(this),T=this.bufferController=new l(this),P=this.capLevelController=new h(this),L=new v(this),S=new R.default(this),A=new H.default(this),W=new k.default(this),D=this.levelController=new O.default(this),K=new y.FragmentTracker(this),Y=this.streamController=new p.default(this,K);P.setStreamController(Y),L.setStreamController(Y);var oe=[D,Y];this.networkControllers=oe;var le=[S,A,f,T,P,L,W,K];this.audioTrackController=this.createController(d.audioTrackController,null,oe),this.createController(d.audioStreamController,K,oe),this.subtitleTrackController=this.createController(d.subtitleTrackController,null,oe),this.createController(d.subtitleStreamController,K,oe),this.createController(d.timelineController,null,le),this.emeController=this.createController(d.emeController,null,le),this.cmcdController=this.createController(d.cmcdController,null,le),this.latencyController=this.createController(e.default,null,le),this.coreComponents=le}var x=m.prototype;return x.createController=function(d,u,l){if(d){var h=u?new d(this,u):new d(this);return l&&l.push(h),h}return null},x.on=function(d,u,l){l===void 0&&(l=this),this._emitter.on(d,u,l)},x.once=function(d,u,l){l===void 0&&(l=this),this._emitter.once(d,u,l)},x.removeAllListeners=function(d){this._emitter.removeAllListeners(d)},x.off=function(d,u,l,h){l===void 0&&(l=this),this._emitter.off(d,u,l,h)},x.listeners=function(d){return this._emitter.listeners(d)},x.emit=function(d,u,l){return this._emitter.emit(d,u,l)},x.trigger=function(d,u){if(this.config.debug)return this.emit(d,d,u);try{return this.emit(d,d,u)}catch(l){a.logger.error("An internal error happened while handling event "+d+'. Error message: "'+l.message+'". Here is a stacktrace:',l),this.trigger(i.Events.ERROR,{type:n.ErrorTypes.OTHER_ERROR,details:n.ErrorDetails.INTERNAL_EXCEPTION,fatal:!1,event:d,error:l})}return!1},x.listenerCount=function(d){return this._emitter.listenerCount(d)},x.destroy=function(){a.logger.log("destroy"),this.trigger(i.Events.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this.url=null,this.networkControllers.forEach(function(d){return d.destroy()}),this.networkControllers.length=0,this.coreComponents.forEach(function(d){return d.destroy()}),this.coreComponents.length=0},x.attachMedia=function(d){a.logger.log("attachMedia"),this._media=d,this.trigger(i.Events.MEDIA_ATTACHING,{media:d})},x.detachMedia=function(){a.logger.log("detachMedia"),this.trigger(i.Events.MEDIA_DETACHING,void 0),this._media=null},x.loadSource=function(d){this.stopLoad();var u=this.media,l=this.url,h=this.url=j.buildAbsoluteURL(self.location.href,d,{alwaysNormalize:!0});a.logger.log("loadSource:"+h),u&&l&&l!==h&&this.bufferController.hasSourceTypes()&&(this.detachMedia(),this.attachMedia(u)),this.trigger(i.Events.MANIFEST_LOADING,{url:d})},x.startLoad=function(d){d===void 0&&(d=-1),a.logger.log("startLoad("+d+")"),this.networkControllers.forEach(function(u){u.startLoad(d)})},x.stopLoad=function(){a.logger.log("stopLoad"),this.networkControllers.forEach(function(d){d.stopLoad()})},x.swapAudioCodec=function(){a.logger.log("swapAudioCodec"),this.streamController.swapAudioCodec()},x.recoverMediaError=function(){a.logger.log("recoverMediaError");var d=this._media;this.detachMedia(),d&&this.attachMedia(d)},x.removeLevel=function(d,u){u===void 0&&(u=0),this.levelController.removeLevel(d,u)},b(m,[{key:"levels",get:function(){var d=this.levelController.levels;return d||[]}},{key:"currentLevel",get:function(){return this.streamController.currentLevel},set:function(d){a.logger.log("set currentLevel:"+d),this.loadLevel=d,this.abrController.clearTimer(),this.streamController.immediateLevelSwitch()}},{key:"nextLevel",get:function(){return this.streamController.nextLevel},set:function(d){a.logger.log("set nextLevel:"+d),this.levelController.manualLevel=d,this.streamController.nextLevelSwitch()}},{key:"loadLevel",get:function(){return this.levelController.level},set:function(d){a.logger.log("set loadLevel:"+d),this.levelController.manualLevel=d}},{key:"nextLoadLevel",get:function(){return this.levelController.nextLoadLevel},set:function(d){this.levelController.nextLoadLevel=d}},{key:"firstLevel",get:function(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)},set:function(d){a.logger.log("set firstLevel:"+d),this.levelController.firstLevel=d}},{key:"startLevel",get:function(){return this.levelController.startLevel},set:function(d){a.logger.log("set startLevel:"+d),d!==-1&&(d=Math.max(d,this.minAutoLevel)),this.levelController.startLevel=d}},{key:"capLevelToPlayerSize",get:function(){return this.config.capLevelToPlayerSize},set:function(d){var u=!!d;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(d){this._autoLevelCapping!==d&&(a.logger.log("set autoLevelCapping:"+d),this._autoLevelCapping=d)}},{key:"bandwidthEstimate",get:function(){var d=this.abrController.bwEstimator;return d?d.getEstimate():NaN}},{key:"autoLevelEnabled",get:function(){return this.levelController.manualLevel===-1}},{key:"manualLevel",get:function(){return this.levelController.manualLevel}},{key:"minAutoLevel",get:function(){var d=this.levels,u=this.config.minAutoBitrate;if(!d)return 0;for(var l=d.length,h=0;h<l;h++)if(d[h].maxBitrate>u)return h;return 0}},{key:"maxAutoLevel",get:function(){var d=this.levels,u=this.autoLevelCapping,l;return u===-1&&d&&d.length?l=d.length-1:l=u,l}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(d){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,d)}},{key:"audioTracks",get:function(){var d=this.audioTrackController;return d?d.audioTracks:[]}},{key:"audioTrack",get:function(){var d=this.audioTrackController;return d?d.audioTrack:-1},set:function(d){var u=this.audioTrackController;u&&(u.audioTrack=d)}},{key:"subtitleTracks",get:function(){var d=this.subtitleTrackController;return d?d.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var d=this.subtitleTrackController;return d?d.subtitleTrack:-1},set:function(d){var u=this.subtitleTrackController;u&&(u.subtitleTrack=d)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var d=this.subtitleTrackController;return d?d.subtitleDisplay:!1},set:function(d){var u=this.subtitleTrackController;u&&(u.subtitleDisplay=d)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(d){this.config.lowLatencyMode=d}},{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 i.Events}},{key:"ErrorTypes",get:function(){return n.ErrorTypes}},{key:"ErrorDetails",get:function(){return n.ErrorDetails}},{key:"DefaultConfig",get:function(){return m.defaultConfig?m.defaultConfig:r.hlsDefaultConfig},set:function(d){m.defaultConfig=d}}]),m}();g.defaultConfig=void 0},"./src/is-supported.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"isSupported",function(){return R}),I.d(M,"changeTypeSupported",function(){return H});var j=I("./src/utils/mediasource-helper.ts");function C(){return self.SourceBuffer||self.WebKitSourceBuffer}function R(){var k=Object(j.getMediaSource)();if(!k)return!1;var e=C(),O=k&&typeof k.isTypeSupported=="function"&&k.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),y=!e||e.prototype&&typeof e.prototype.appendBuffer=="function"&&typeof e.prototype.remove=="function";return!!O&&!!y}function H(){var k,e=C();return typeof(e==null||((k=e.prototype)===null||k===void 0)?void 0:k.changeType)=="function"}},"./src/loader/fragment-loader.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"default",function(){return a}),I.d(M,"LoadError",function(){return s});var j=I("./src/polyfills/number.ts"),C=I("./src/errors.ts");function R(o,i){o.prototype=Object.create(i.prototype),o.prototype.constructor=o,y(o,i)}function H(o){var i=typeof Map=="function"?new Map:void 0;return H=function(t){if(t===null||!O(t))return t;if(typeof t!="function")throw new TypeError("Super expression must either be null or a function");if(typeof i!="undefined"){if(i.has(t))return i.get(t);i.set(t,b)}function b(){return k(t,arguments,p(this).constructor)}return b.prototype=Object.create(t.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),y(b,t)},H(o)}function k(o,i,n){return e()?k=Reflect.construct:k=function(b,g,m){var x=[null];x.push.apply(x,g);var _=Function.bind.apply(b,x),d=new _;return m&&y(d,m.prototype),d},k.apply(null,arguments)}function e(){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 y(o,i){return y=Object.setPrototypeOf||function(t,b){return t.__proto__=b,t},y(o,i)}function p(o){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},p(o)}var c=Math.pow(2,17),a=function(){function o(n){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=n}var i=o.prototype;return i.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},i.abort=function(){this.loader&&this.loader.abort()},i.load=function(t,b){var g=this,m=t.url;if(!m)return Promise.reject(new s({type:C.ErrorTypes.NETWORK_ERROR,details:C.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:t,networkDetails:null},"Fragment does not have a "+(m?"part list":"url")));this.abort();var x=this.config,_=x.fLoader,d=x.loader;return new Promise(function(u,l){g.loader&&g.loader.destroy();var h=g.loader=t.loader=_?new _(x):new d(x),v=r(t),f={timeout:x.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:x.fragLoadingMaxRetryTimeout,highWaterMark:c};t.stats=h.stats,h.load(v,f,{onSuccess:function(P,L,S,A){g.resetLoader(t,h),u({frag:t,part:null,payload:P.data,networkDetails:A})},onError:function(P,L,S){g.resetLoader(t,h),l(new s({type:C.ErrorTypes.NETWORK_ERROR,details:C.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:t,response:P,networkDetails:S}))},onAbort:function(P,L,S){g.resetLoader(t,h),l(new s({type:C.ErrorTypes.NETWORK_ERROR,details:C.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:t,networkDetails:S}))},onTimeout:function(P,L,S){g.resetLoader(t,h),l(new s({type:C.ErrorTypes.NETWORK_ERROR,details:C.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:t,networkDetails:S}))},onProgress:function(P,L,S,A){b&&b({frag:t,part:null,payload:S,networkDetails:A})}})})},i.loadPart=function(t,b,g){var m=this;this.abort();var x=this.config,_=x.fLoader,d=x.loader;return new Promise(function(u,l){m.loader&&m.loader.destroy();var h=m.loader=t.loader=_?new _(x):new d(x),v=r(t,b),f={timeout:x.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:x.fragLoadingMaxRetryTimeout,highWaterMark:c};b.stats=h.stats,h.load(v,f,{onSuccess:function(P,L,S,A){m.resetLoader(t,h),m.updateStatsFromPart(t,b);var W={frag:t,part:b,payload:P.data,networkDetails:A};g(W),u(W)},onError:function(P,L,S){m.resetLoader(t,h),l(new s({type:C.ErrorTypes.NETWORK_ERROR,details:C.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:t,part:b,response:P,networkDetails:S}))},onAbort:function(P,L,S){t.stats.aborted=b.stats.aborted,m.resetLoader(t,h),l(new s({type:C.ErrorTypes.NETWORK_ERROR,details:C.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:t,part:b,networkDetails:S}))},onTimeout:function(P,L,S){m.resetLoader(t,h),l(new s({type:C.ErrorTypes.NETWORK_ERROR,details:C.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:t,part:b,networkDetails:S}))}})})},i.updateStatsFromPart=function(t,b){var g=t.stats,m=b.stats,x=m.total;if(g.loaded+=m.loaded,x){var _=Math.round(t.duration/b.duration),d=Math.min(Math.round(g.loaded/x),_),u=_-d,l=u*Math.round(g.loaded/d);g.total=g.loaded+l}else g.total=Math.max(g.loaded,g.total);var h=g.loading,v=m.loading;h.start?h.first+=v.first-v.start:(h.start=v.start,h.first=v.first),h.end=v.end},i.resetLoader=function(t,b){t.loader=null,this.loader===b&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),b.destroy()},o}();function r(o,i){i===void 0&&(i=null);var n=i||o,t={frag:o,part:i,responseType:"arraybuffer",url:n.url,headers:{},rangeStart:0,rangeEnd:0},b=n.byteRangeStartOffset,g=n.byteRangeEndOffset;return Object(j.isFiniteNumber)(b)&&Object(j.isFiniteNumber)(g)&&(t.rangeStart=b,t.rangeEnd=g),t}var s=function(o){R(i,o);function i(n){for(var t,b=arguments.length,g=new Array(b>1?b-1:0),m=1;m<b;m++)g[m-1]=arguments[m];return t=o.call.apply(o,[this].concat(g))||this,t.data=void 0,t.data=n,t}return i}(H(Error))},"./src/loader/fragment.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"ElementaryStreamTypes",function(){return a}),I.d(M,"BaseSegment",function(){return r}),I.d(M,"Fragment",function(){return s}),I.d(M,"Part",function(){return o});var j=I("./src/polyfills/number.ts"),C=I("./node_modules/url-toolkit/src/url-toolkit.js"),R=I.n(C),H=I("./src/utils/logger.ts"),k=I("./src/loader/level-key.ts"),e=I("./src/loader/load-stats.ts");function O(i,n){i.prototype=Object.create(n.prototype),i.prototype.constructor=i,y(i,n)}function y(i,n){return y=Object.setPrototypeOf||function(b,g){return b.__proto__=g,b},y(i,n)}function p(i,n){for(var t=0;t<n.length;t++){var b=n[t];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(i,b.key,b)}}function c(i,n,t){return n&&p(i.prototype,n),t&&p(i,t),i}var a;(function(i){i.AUDIO="audio",i.VIDEO="video",i.AUDIOVIDEO="audiovideo"})(a||(a={}));var r=function(){function i(t){var b;this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams=(b={},b[a.AUDIO]=null,b[a.VIDEO]=null,b[a.AUDIOVIDEO]=null,b),this.baseurl=t}var n=i.prototype;return n.setByteRange=function(b,g){var m=b.split("@",2),x=[];m.length===1?x[0]=g?g.byteRangeEndOffset:0:x[0]=parseInt(m[1]),x[1]=parseInt(m[0])+x[0],this._byteRange=x},c(i,[{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(C.buildAbsoluteURL)(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""},set:function(b){this._url=b}}]),i}(),s=function(i){O(n,i);function n(b,g){var m;return m=i.call(this,g)||this,m._decryptdata=null,m.rawProgramDateTime=null,m.programDateTime=null,m.tagList=[],m.duration=0,m.sn=0,m.levelkey=void 0,m.type=void 0,m.loader=null,m.level=-1,m.cc=0,m.startPTS=void 0,m.endPTS=void 0,m.appendedPTS=void 0,m.startDTS=void 0,m.endDTS=void 0,m.start=0,m.deltaPTS=void 0,m.maxStartPTS=void 0,m.minEndPTS=void 0,m.stats=new e.LoadStats,m.urlId=0,m.data=void 0,m.bitrateTest=!1,m.title=null,m.initSegment=null,m.type=b,m}var t=n.prototype;return t.createInitializationVector=function(g){for(var m=new Uint8Array(16),x=12;x<16;x++)m[x]=g>>8*(15-x)&255;return m},t.setDecryptDataFromLevelKey=function(g,m){var x=g;return(g==null?void 0:g.method)==="AES-128"&&g.uri&&!g.iv&&(x=k.LevelKey.fromURI(g.uri),x.method=g.method,x.iv=this.createInitializationVector(m),x.keyFormat="identity"),x},t.setElementaryStreamInfo=function(g,m,x,_,d,u){u===void 0&&(u=!1);var l=this.elementaryStreams,h=l[g];if(!h){l[g]={startPTS:m,endPTS:x,startDTS:_,endDTS:d,partial:u};return}h.startPTS=Math.min(h.startPTS,m),h.endPTS=Math.max(h.endPTS,x),h.startDTS=Math.min(h.startDTS,_),h.endDTS=Math.max(h.endDTS,d)},t.clearElementaryStreamInfo=function(){var g=this.elementaryStreams;g[a.AUDIO]=null,g[a.VIDEO]=null,g[a.AUDIOVIDEO]=null},c(n,[{key:"decryptdata",get:function(){if(!this.levelkey&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkey){var g=this.sn;typeof g!="number"&&(this.levelkey&&this.levelkey.method==="AES-128"&&!this.levelkey.iv&&H.logger.warn('missing IV for initialization segment with method="'+this.levelkey.method+'" - compliance issue'),g=0),this._decryptdata=this.setDecryptDataFromLevelKey(this.levelkey,g)}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(this.programDateTime===null)return null;if(!Object(j.isFiniteNumber)(this.programDateTime))return null;var g=Object(j.isFiniteNumber)(this.duration)?this.duration:0;return this.programDateTime+g*1e3}},{key:"encrypted",get:function(){var g;return!!((g=this.decryptdata)!==null&&g!==void 0&&g.keyFormat&&this.decryptdata.uri)}}]),n}(r),o=function(i){O(n,i);function n(t,b,g,m,x){var _;_=i.call(this,g)||this,_.fragOffset=0,_.duration=0,_.gap=!1,_.independent=!1,_.relurl=void 0,_.fragment=void 0,_.index=void 0,_.stats=new e.LoadStats,_.duration=t.decimalFloatingPoint("DURATION"),_.gap=t.bool("GAP"),_.independent=t.bool("INDEPENDENT"),_.relurl=t.enumeratedString("URI"),_.fragment=b,_.index=m;var d=t.enumeratedString("BYTERANGE");return d&&_.setByteRange(d,x),x&&(_.fragOffset=x.fragOffset+x.duration),_}return c(n,[{key:"start",get:function(){return this.fragment.start+this.fragOffset}},{key:"end",get:function(){return this.start+this.duration}},{key:"loaded",get:function(){var b=this.elementaryStreams;return!!(b.audio||b.video||b.audiovideo)}}]),n}(r)},"./src/loader/key-loader.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"default",function(){return H});var j=I("./src/events.ts"),C=I("./src/errors.ts"),R=I("./src/utils/logger.ts"),H=function(){function k(O){this.hls=void 0,this.loaders={},this.decryptkey=null,this.decrypturl=null,this.hls=O,this._registerListeners()}var e=k.prototype;return e._registerListeners=function(){this.hls.on(j.Events.KEY_LOADING,this.onKeyLoading,this)},e._unregisterListeners=function(){this.hls.off(j.Events.KEY_LOADING,this.onKeyLoading)},e.destroy=function(){this._unregisterListeners();for(var y in this.loaders){var p=this.loaders[y];p&&p.destroy()}this.loaders={}},e.onKeyLoading=function(y,p){var c=p.frag,a=c.type,r=this.loaders[a];if(!c.decryptdata){R.logger.warn("Missing decryption data on fragment in onKeyLoading");return}var s=c.decryptdata.uri;if(s!==this.decrypturl||this.decryptkey===null){var o=this.hls.config;if(r&&(R.logger.warn("abort previous key loader for type:"+a),r.abort()),!s){R.logger.warn("key uri is falsy");return}var i=o.loader,n=c.loader=this.loaders[a]=new i(o);this.decrypturl=s,this.decryptkey=null;var t={url:s,frag:c,responseType:"arraybuffer"},b={timeout:o.fragLoadingTimeOut,maxRetry:0,retryDelay:o.fragLoadingRetryDelay,maxRetryDelay:o.fragLoadingMaxRetryTimeout,highWaterMark:0},g={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};n.load(t,b,g)}else this.decryptkey&&(c.decryptdata.key=this.decryptkey,this.hls.trigger(j.Events.KEY_LOADED,{frag:c}))},e.loadsuccess=function(y,p,c){var a=c.frag;if(!a.decryptdata){R.logger.error("after key load, decryptdata unset");return}this.decryptkey=a.decryptdata.key=new Uint8Array(y.data),a.loader=null,delete this.loaders[a.type],this.hls.trigger(j.Events.KEY_LOADED,{frag:a})},e.loaderror=function(y,p){var c=p.frag,a=c.loader;a&&a.abort(),delete this.loaders[c.type],this.hls.trigger(j.Events.ERROR,{type:C.ErrorTypes.NETWORK_ERROR,details:C.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:c,response:y})},e.loadtimeout=function(y,p){var c=p.frag,a=c.loader;a&&a.abort(),delete this.loaders[c.type],this.hls.trigger(j.Events.ERROR,{type:C.ErrorTypes.NETWORK_ERROR,details:C.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:c})},k}()},"./src/loader/level-details.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"LevelDetails",function(){return k});var j=I("./src/polyfills/number.ts");function C(e,O){for(var y=0;y<O.length;y++){var p=O[y];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(e,p.key,p)}}function R(e,O,y){return O&&C(e.prototype,O),y&&C(e,y),e}var H=10,k=function(){function e(y){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=y}var O=e.prototype;return O.reloaded=function(p){if(!p){this.advanced=!0,this.updated=!0;return}var c=this.lastPartSn-p.lastPartSn,a=this.lastPartIndex-p.lastPartIndex;this.updated=this.endSN!==p.endSN||!!a||!!c,this.advanced=this.endSN>p.endSN||c>0||c===0&&a>0,this.updated||this.advanced?this.misses=Math.floor(p.misses*.6):this.misses=p.misses+1,this.availabilityDelay=p.availabilityDelay},R(e,[{key:"hasProgramDateTime",get:function(){return this.fragments.length?Object(j.isFiniteNumber)(this.fragments[this.fragments.length-1].programDateTime):!1}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||H}},{key:"drift",get:function(){var p=this.driftEndTime-this.driftStartTime;if(p>0){var c=this.driftEnd-this.driftStart;return c*1e3/p}return 1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var p;return(p=this.partList)!==null&&p!==void 0&&p.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var p;return(p=this.fragments)!==null&&p!==void 0&&p.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 p;return(p=this.partList)!==null&&p!==void 0&&p.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var p;return(p=this.partList)!==null&&p!==void 0&&p.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),e}()},"./src/loader/level-key.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"LevelKey",function(){return k});var j=I("./node_modules/url-toolkit/src/url-toolkit.js"),C=I.n(j);function R(e,O){for(var y=0;y<O.length;y++){var p=O[y];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(e,p.key,p)}}function H(e,O,y){return O&&R(e.prototype,O),y&&R(e,y),e}var k=function(){e.fromURL=function(y,p){return new e(y,p)},e.fromURI=function(y){return new e(y)};function e(O,y){this._uri=null,this.method=null,this.keyFormat=null,this.keyFormatVersions=null,this.keyID=null,this.key=null,this.iv=null,y?this._uri=Object(j.buildAbsoluteURL)(O,y,{alwaysNormalize:!0}):this._uri=O}return H(e,[{key:"uri",get:function(){return this._uri}}]),e}()},"./src/loader/load-stats.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"LoadStats",function(){return j});var j=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,M,I){"use strict";I.r(M),I.d(M,"default",function(){return n});var j=I("./src/polyfills/number.ts"),C=I("./node_modules/url-toolkit/src/url-toolkit.js"),R=I.n(C),H=I("./src/loader/fragment.ts"),k=I("./src/loader/level-details.ts"),e=I("./src/loader/level-key.ts"),O=I("./src/utils/attr-list.ts"),y=I("./src/utils/logger.ts"),p=I("./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,a=/#EXT-X-MEDIA:(.*)/g,r=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[\S ]*)/.source,/#EXT-X-BYTERANGE:*(.+)/.source,/#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/#.*/.source].join("|"),"g"),s=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 i(x){var _,d;return o.test((_=(d=C.parseURL(x))===null||d===void 0?void 0:d.path)!=null?_:"")}var n=function(){function x(){}return x.findGroup=function(d,u){for(var l=0;l<d.length;l++){var h=d[l];if(h.id===u)return h}},x.convertAVC1ToAVCOTI=function(d){var u=d.split(".");if(u.length>2){var l=u.shift()+".";return l+=parseInt(u.shift()).toString(16),l+=("000"+parseInt(u.shift()).toString(16)).substr(-4),l}return d},x.resolve=function(d,u){return C.buildAbsoluteURL(u,d,{alwaysNormalize:!0})},x.parseMasterPlaylist=function(d,u){var l=[],h={},v=!1;c.lastIndex=0;for(var f;(f=c.exec(d))!=null;)if(f[1]){var T=new O.AttrList(f[1]),P={attrs:T,bitrate:T.decimalInteger("AVERAGE-BANDWIDTH")||T.decimalInteger("BANDWIDTH"),name:T.NAME,url:x.resolve(f[2],u)},L=T.decimalResolution("RESOLUTION");L&&(P.width=L.width,P.height=L.height),t((T.CODECS||"").split(/[ ,]+/).filter(function(A){return A}),P),P.videoCodec&&P.videoCodec.indexOf("avc1")!==-1&&(P.videoCodec=x.convertAVC1ToAVCOTI(P.videoCodec)),l.push(P)}else if(f[3]){var S=new O.AttrList(f[3]);S["DATA-ID"]&&(v=!0,h[S["DATA-ID"]]=S)}return{levels:l,sessionData:v?h:null}},x.parseMasterPlaylistMedia=function(d,u,l,h){h===void 0&&(h=[]);var v,f=[],T=0;for(a.lastIndex=0;(v=a.exec(d))!==null;){var P=new O.AttrList(v[1]);if(P.TYPE===l){var L={attrs:P,bitrate:0,id:T++,groupId:P["GROUP-ID"],instreamId:P["INSTREAM-ID"],name:P.NAME||P.LANGUAGE||"",type:l,default:P.bool("DEFAULT"),autoselect:P.bool("AUTOSELECT"),forced:P.bool("FORCED"),lang:P.LANGUAGE,url:P.URI?x.resolve(P.URI,u):""};if(h.length){var S=x.findGroup(h,L.groupId)||h[0];b(L,S,"audioCodec"),b(L,S,"textCodec")}f.push(L)}}return f},x.parseLevelPlaylist=function(d,u,l,h,v){var f=new k.LevelDetails(u),T=f.fragments,P=null,L=0,S=0,A=0,W=0,D=null,K=new H.Fragment(h,u),Y,oe,le,Se=-1,Ee=!1;for(r.lastIndex=0,f.m3u8=d;(Y=r.exec(d))!==null;){Ee&&(Ee=!1,K=new H.Fragment(h,u),K.start=A,K.sn=L,K.cc=W,K.level=l,P&&(K.initSegment=P,K.rawProgramDateTime=P.rawProgramDateTime));var ae=Y[1];if(ae){K.duration=parseFloat(ae);var Ce=(" "+Y[2]).slice(1);K.title=Ce||null,K.tagList.push(Ce?["INF",ae,Ce]:["INF",ae])}else if(Y[3])Object(j.isFiniteNumber)(K.duration)&&(K.start=A,le&&(K.levelkey=le),K.sn=L,K.level=l,K.cc=W,K.urlId=v,T.push(K),K.relurl=(" "+Y[3]).slice(1),m(K,D),D=K,A+=K.duration,L++,S=0,Ee=!0);else if(Y[4]){var Le=(" "+Y[4]).slice(1);D?K.setByteRange(Le,D):K.setByteRange(Le)}else if(Y[5])K.rawProgramDateTime=(" "+Y[5]).slice(1),K.tagList.push(["PROGRAM-DATE-TIME",K.rawProgramDateTime]),Se===-1&&(Se=T.length);else{if(Y=Y[0].match(s),!Y){y.logger.warn("No matches on slow regex match for level playlist!");continue}for(oe=1;oe<Y.length&&!(typeof Y[oe]!="undefined");oe++);var de=(" "+Y[oe]).slice(1),$=(" "+Y[oe+1]).slice(1),He=Y[oe+2]?(" "+Y[oe+2]).slice(1):"";switch(de){case"PLAYLIST-TYPE":f.type=$.toUpperCase();break;case"MEDIA-SEQUENCE":L=f.startSN=parseInt($);break;case"SKIP":{var rt=new O.AttrList($),it=rt.decimalInteger("SKIPPED-SEGMENTS");if(Object(j.isFiniteNumber)(it)){f.skippedSegments=it;for(var Je=it;Je--;)T.unshift(null);L+=it}var at=rt.enumeratedString("RECENTLY-REMOVED-DATERANGES");at&&(f.recentlyRemovedDateranges=at.split(" "));break}case"TARGETDURATION":f.targetduration=parseFloat($);break;case"VERSION":f.version=parseInt($);break;case"EXTM3U":break;case"ENDLIST":f.live=!1;break;case"#":($||He)&&K.tagList.push(He?[$,He]:[$]);break;case"DIS":W++;case"GAP":K.tagList.push([de]);break;case"BITRATE":K.tagList.push([de,$]);break;case"DISCONTINUITY-SEQ":W=parseInt($);break;case"KEY":{var ke,Ge=new O.AttrList($),et=Ge.enumeratedString("METHOD"),ee=Ge.URI,ve=Ge.hexadecimalInteger("IV"),Te=Ge.enumeratedString("KEYFORMATVERSIONS"),Oe=Ge.enumeratedString("KEYID"),Qe=(ke=Ge.enumeratedString("KEYFORMAT"))!=null?ke:"identity",tt=["com.apple.streamingkeydelivery","com.microsoft.playready","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed","com.widevine"];if(tt.indexOf(Qe)>-1){y.logger.warn("Keyformat "+Qe+" is not supported from the manifest");continue}else if(Qe!=="identity")continue;et&&(le=e.LevelKey.fromURL(u,ee),ee&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(et)>=0&&(le.method=et,le.keyFormat=Qe,Oe&&(le.keyID=Oe),Te&&(le.keyFormatVersions=Te),le.iv=ve));break}case"START":{var st=new O.AttrList($),nt=st.decimalFloatingPoint("TIME-OFFSET");Object(j.isFiniteNumber)(nt)&&(f.startTimeOffset=nt);break}case"MAP":{var dt=new O.AttrList($);K.relurl=dt.URI,dt.BYTERANGE&&K.setByteRange(dt.BYTERANGE),K.level=l,K.sn="initSegment",le&&(K.levelkey=le),K.initSegment=null,P=K,Ee=!0;break}case"SERVER-CONTROL":{var mt=new O.AttrList($);f.canBlockReload=mt.bool("CAN-BLOCK-RELOAD"),f.canSkipUntil=mt.optionalFloat("CAN-SKIP-UNTIL",0),f.canSkipDateRanges=f.canSkipUntil>0&&mt.bool("CAN-SKIP-DATERANGES"),f.partHoldBack=mt.optionalFloat("PART-HOLD-BACK",0),f.holdBack=mt.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var ye=new O.AttrList($);f.partTarget=ye.decimalFloatingPoint("PART-TARGET");break}case"PART":{var Ae=f.partList;Ae||(Ae=f.partList=[]);var Ne=S>0?Ae[Ae.length-1]:void 0,Fe=S++,Re=new H.Part(new O.AttrList($),K,u,Fe,Ne);Ae.push(Re),K.duration+=Re.duration;break}case"PRELOAD-HINT":{var De=new O.AttrList($);f.preloadHint=De;break}case"RENDITION-REPORT":{var he=new O.AttrList($);f.renditionReports=f.renditionReports||[],f.renditionReports.push(he);break}default:y.logger.warn("line parsed but not handled: "+Y);break}}}D&&!D.relurl?(T.pop(),A-=D.duration,f.partList&&(f.fragmentHint=D)):f.partList&&(m(K,D),K.cc=W,f.fragmentHint=K);var se=T.length,re=T[0],G=T[se-1];if(A+=f.skippedSegments*f.targetduration,A>0&&se&&G){f.averagetargetduration=A/se;var X=G.sn;f.endSN=X!=="initSegment"?X:0,re&&(f.startCC=re.cc,re.initSegment||f.fragments.every(function(Z){return Z.relurl&&i(Z.relurl)})&&(y.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),K=new H.Fragment(h,u),K.relurl=G.relurl,K.level=l,K.sn="initSegment",re.initSegment=K,f.needSidxRanges=!0))}else f.endSN=0,f.startCC=0;return f.fragmentHint&&(A+=f.fragmentHint.duration),f.totalduration=A,f.endCC=W,Se>0&&g(T,Se),f},x}();function t(x,_){["video","audio","text"].forEach(function(d){var u=x.filter(function(h){return Object(p.isCodecType)(h,d)});if(u.length){var l=u.filter(function(h){return h.lastIndexOf("avc1",0)===0||h.lastIndexOf("mp4a",0)===0});_[d+"Codec"]=l.length>0?l[0]:u[0],x=x.filter(function(h){return u.indexOf(h)===-1})}}),_.unknownCodecs=x}function b(x,_,d){var u=_[d];u&&(x[d]=u)}function g(x,_){for(var d=x[_],u=_;u--;){var l=x[u];if(!l)return;l.programDateTime=d.programDateTime-l.duration*1e3,d=l}}function m(x,_){x.rawProgramDateTime?x.programDateTime=Date.parse(x.rawProgramDateTime):_!=null&&_.programDateTime&&(x.programDateTime=_.endProgramDateTime),Object(j.isFiniteNumber)(x.programDateTime)||(x.programDateTime=null,x.rawProgramDateTime=null)}},"./src/loader/playlist-loader.ts":function(Q,M,I){"use strict";I.r(M);var j=I("./src/polyfills/number.ts"),C=I("./src/events.ts"),R=I("./src/errors.ts"),H=I("./src/utils/logger.ts"),k=I("./src/utils/mp4-tools.ts"),e=I("./src/loader/m3u8-parser.ts"),O=I("./src/types/loader.ts"),y=I("./src/utils/attr-list.ts");function p(r){var s=r.type;switch(s){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(r,s){var o=r.url;return(o===void 0||o.indexOf("data:")===0)&&(o=s.url),o}var a=function(){function r(o){this.hls=void 0,this.loaders=Object.create(null),this.hls=o,this.registerListeners()}var s=r.prototype;return s.registerListeners=function(){var i=this.hls;i.on(C.Events.MANIFEST_LOADING,this.onManifestLoading,this),i.on(C.Events.LEVEL_LOADING,this.onLevelLoading,this),i.on(C.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),i.on(C.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},s.unregisterListeners=function(){var i=this.hls;i.off(C.Events.MANIFEST_LOADING,this.onManifestLoading,this),i.off(C.Events.LEVEL_LOADING,this.onLevelLoading,this),i.off(C.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),i.off(C.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},s.createInternalLoader=function(i){var n=this.hls.config,t=n.pLoader,b=n.loader,g=t||b,m=new g(n);return i.loader=m,this.loaders[i.type]=m,m},s.getInternalLoader=function(i){return this.loaders[i.type]},s.resetInternalLoader=function(i){this.loaders[i]&&delete this.loaders[i]},s.destroyInternalLoaders=function(){for(var i in this.loaders){var n=this.loaders[i];n&&n.destroy(),this.resetInternalLoader(i)}},s.destroy=function(){this.unregisterListeners(),this.destroyInternalLoaders()},s.onManifestLoading=function(i,n){var t=n.url;this.load({id:null,groupId:null,level:0,responseType:"text",type:O.PlaylistContextType.MANIFEST,url:t,deliveryDirectives:null})},s.onLevelLoading=function(i,n){var t=n.id,b=n.level,g=n.url,m=n.deliveryDirectives;this.load({id:t,groupId:null,level:b,responseType:"text",type:O.PlaylistContextType.LEVEL,url:g,deliveryDirectives:m})},s.onAudioTrackLoading=function(i,n){var t=n.id,b=n.groupId,g=n.url,m=n.deliveryDirectives;this.load({id:t,groupId:b,level:null,responseType:"text",type:O.PlaylistContextType.AUDIO_TRACK,url:g,deliveryDirectives:m})},s.onSubtitleTrackLoading=function(i,n){var t=n.id,b=n.groupId,g=n.url,m=n.deliveryDirectives;this.load({id:t,groupId:b,level:null,responseType:"text",type:O.PlaylistContextType.SUBTITLE_TRACK,url:g,deliveryDirectives:m})},s.load=function(i){var n,t=this.hls.config,b=this.getInternalLoader(i);if(b){var g=b.context;if(g&&g.url===i.url){H.logger.trace("[playlist-loader]: playlist request ongoing");return}H.logger.log("[playlist-loader]: aborting previous loader for type: "+i.type),b.abort()}var m,x,_,d;switch(i.type){case O.PlaylistContextType.MANIFEST:m=t.manifestLoadingMaxRetry,x=t.manifestLoadingTimeOut,_=t.manifestLoadingRetryDelay,d=t.manifestLoadingMaxRetryTimeout;break;case O.PlaylistContextType.LEVEL:case O.PlaylistContextType.AUDIO_TRACK:case O.PlaylistContextType.SUBTITLE_TRACK:m=0,x=t.levelLoadingTimeOut;break;default:m=t.levelLoadingMaxRetry,x=t.levelLoadingTimeOut,_=t.levelLoadingRetryDelay,d=t.levelLoadingMaxRetryTimeout;break}if(b=this.createInternalLoader(i),(n=i.deliveryDirectives)!==null&&n!==void 0&&n.part){var u;if(i.type===O.PlaylistContextType.LEVEL&&i.level!==null?u=this.hls.levels[i.level].details:i.type===O.PlaylistContextType.AUDIO_TRACK&&i.id!==null?u=this.hls.audioTracks[i.id].details:i.type===O.PlaylistContextType.SUBTITLE_TRACK&&i.id!==null&&(u=this.hls.subtitleTracks[i.id].details),u){var l=u.partTarget,h=u.targetduration;l&&h&&(x=Math.min(Math.max(l*3,h*.8)*1e3,x))}}var v={timeout:x,maxRetry:m,retryDelay:_,maxRetryDelay:d,highWaterMark:0},f={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};b.load(i,v,f)},s.loadsuccess=function(i,n,t,b){if(b===void 0&&(b=null),t.isSidxRequest){this.handleSidxRequest(i,t),this.handlePlaylistLoaded(i,n,t,b);return}this.resetInternalLoader(t.type);var g=i.data;if(g.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(i,t,"no EXTM3U delimiter",b);return}n.parsing.start=performance.now(),g.indexOf("#EXTINF:")>0||g.indexOf("#EXT-X-TARGETDURATION:")>0?this.handleTrackOrLevelPlaylist(i,n,t,b):this.handleMasterPlaylist(i,n,t,b)},s.loaderror=function(i,n,t){t===void 0&&(t=null),this.handleNetworkError(n,t,!1,i)},s.loadtimeout=function(i,n,t){t===void 0&&(t=null),this.handleNetworkError(n,t,!0)},s.handleMasterPlaylist=function(i,n,t,b){var g=this.hls,m=i.data,x=c(i,t),_=e.default.parseMasterPlaylist(m,x),d=_.levels,u=_.sessionData;if(!d.length){this.handleManifestParsingError(i,t,"no level found in manifest",b);return}var l=d.map(function(L){return{id:L.attrs.AUDIO,audioCodec:L.audioCodec}}),h=d.map(function(L){return{id:L.attrs.SUBTITLES,textCodec:L.textCodec}}),v=e.default.parseMasterPlaylistMedia(m,x,"AUDIO",l),f=e.default.parseMasterPlaylistMedia(m,x,"SUBTITLES",h),T=e.default.parseMasterPlaylistMedia(m,x,"CLOSED-CAPTIONS");if(v.length){var P=v.some(function(L){return!L.url});!P&&d[0].audioCodec&&!d[0].attrs.AUDIO&&(H.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),v.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new y.AttrList({}),bitrate:0,url:""}))}g.trigger(C.Events.MANIFEST_LOADED,{levels:d,audioTracks:v,subtitles:f,captions:T,url:x,stats:n,networkDetails:b,sessionData:u})},s.handleTrackOrLevelPlaylist=function(i,n,t,b){var g=this.hls,m=t.id,x=t.level,_=t.type,d=c(i,t),u=Object(j.isFiniteNumber)(m)?m:0,l=Object(j.isFiniteNumber)(x)?x:u,h=p(t),v=e.default.parseLevelPlaylist(i.data,d,l,h,u);if(!v.fragments.length){g.trigger(C.Events.ERROR,{type:R.ErrorTypes.NETWORK_ERROR,details:R.ErrorDetails.LEVEL_EMPTY_ERROR,fatal:!1,url:d,reason:"no fragments found in level",level:typeof t.level=="number"?t.level:void 0});return}if(_===O.PlaylistContextType.MANIFEST){var f={attrs:new y.AttrList({}),bitrate:0,details:v,name:"",url:d};g.trigger(C.Events.MANIFEST_LOADED,{levels:[f],audioTracks:[],url:d,stats:n,networkDetails:b,sessionData:null})}if(n.parsing.end=performance.now(),v.needSidxRanges){var T,P=(T=v.fragments[0].initSegment)===null||T===void 0?void 0:T.url;this.load({url:P,isSidxRequest:!0,type:_,level:x,levelDetails:v,id:m,groupId:null,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer",deliveryDirectives:null});return}t.levelDetails=v,this.handlePlaylistLoaded(i,n,t,b)},s.handleSidxRequest=function(i,n){var t=Object(k.parseSegmentIndex)(new Uint8Array(i.data));if(!t)return;var b=t.references,g=n.levelDetails;b.forEach(function(m,x){var _=m.info,d=g.fragments[x];d.byteRange.length===0&&d.setByteRange(String(1+_.end-_.start)+"@"+String(_.start)),d.initSegment&&d.initSegment.setByteRange(String(t.moovEndOffset)+"@0")})},s.handleManifestParsingError=function(i,n,t,b){this.hls.trigger(C.Events.ERROR,{type:R.ErrorTypes.NETWORK_ERROR,details:R.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:n.type===O.PlaylistContextType.MANIFEST,url:i.url,reason:t,response:i,context:n,networkDetails:b})},s.handleNetworkError=function(i,n,t,b){t===void 0&&(t=!1),H.logger.warn("[playlist-loader]: A network "+(t?"timeout":"error")+" occurred while loading "+i.type+" level: "+i.level+" id: "+i.id+' group-id: "'+i.groupId+'"');var g=R.ErrorDetails.UNKNOWN,m=!1,x=this.getInternalLoader(i);switch(i.type){case O.PlaylistContextType.MANIFEST:g=t?R.ErrorDetails.MANIFEST_LOAD_TIMEOUT:R.ErrorDetails.MANIFEST_LOAD_ERROR,m=!0;break;case O.PlaylistContextType.LEVEL:g=t?R.ErrorDetails.LEVEL_LOAD_TIMEOUT:R.ErrorDetails.LEVEL_LOAD_ERROR,m=!1;break;case O.PlaylistContextType.AUDIO_TRACK:g=t?R.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:R.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,m=!1;break;case O.PlaylistContextType.SUBTITLE_TRACK:g=t?R.ErrorDetails.SUBTITLE_TRACK_LOAD_TIMEOUT:R.ErrorDetails.SUBTITLE_LOAD_ERROR,m=!1;break}x&&this.resetInternalLoader(i.type);var _={type:R.ErrorTypes.NETWORK_ERROR,details:g,fatal:m,url:i.url,loader:x,context:i,networkDetails:n};b&&(_.response=b),this.hls.trigger(C.Events.ERROR,_)},s.handlePlaylistLoaded=function(i,n,t,b){var g=t.type,m=t.level,x=t.id,_=t.groupId,d=t.loader,u=t.levelDetails,l=t.deliveryDirectives;if(!(u!=null&&u.targetduration)){this.handleManifestParsingError(i,t,"invalid target duration",b);return}if(!d)return;u.live&&(d.getCacheAge&&(u.ageHeader=d.getCacheAge()||0),(!d.getCacheAge||isNaN(u.ageHeader))&&(u.ageHeader=0));switch(g){case O.PlaylistContextType.MANIFEST:case O.PlaylistContextType.LEVEL:this.hls.trigger(C.Events.LEVEL_LOADED,{details:u,level:m||0,id:x||0,stats:n,networkDetails:b,deliveryDirectives:l});break;case O.PlaylistContextType.AUDIO_TRACK:this.hls.trigger(C.Events.AUDIO_TRACK_LOADED,{details:u,id:x||0,groupId:_||"",stats:n,networkDetails:b,deliveryDirectives:l});break;case O.PlaylistContextType.SUBTITLE_TRACK:this.hls.trigger(C.Events.SUBTITLE_TRACK_LOADED,{details:u,id:x||0,groupId:_||"",stats:n,networkDetails:b,deliveryDirectives:l});break}},r}();M.default=a},"./src/polyfills/number.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"isFiniteNumber",function(){return j}),I.d(M,"MAX_SAFE_INTEGER",function(){return C});var j=Number.isFinite||function(R){return typeof R=="number"&&isFinite(R)},C=Number.MAX_SAFE_INTEGER||9007199254740991},"./src/remux/aac-helper.ts":function(Q,M,I){"use strict";I.r(M);var j=function(){function C(){}return C.getSilentFrame=function(H,k){switch(H){case"mp4a.40.2":if(k===1)return new Uint8Array([0,200,0,128,35,128]);if(k===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(k===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(k===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(k===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(k===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(k===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(k===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(k===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},C}();M.default=j},"./src/remux/mp4-generator.ts":function(Q,M,I){"use strict";I.r(M);var j=Math.pow(2,32)-1,C=function(){function R(){}return R.init=function(){R.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 k;for(k in R.types)R.types.hasOwnProperty(k)&&(R.types[k]=[k.charCodeAt(0),k.charCodeAt(1),k.charCodeAt(2),k.charCodeAt(3)]);var e=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]);R.HDLR_TYPES={video:e,audio:O};var y=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),p=new Uint8Array([0,0,0,0,0,0,0,0]);R.STTS=R.STSC=R.STCO=p,R.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),R.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),R.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),R.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var c=new Uint8Array([105,115,111,109]),a=new Uint8Array([97,118,99,49]),r=new Uint8Array([0,0,0,1]);R.FTYP=R.box(R.types.ftyp,c,r,c,a),R.DINF=R.box(R.types.dinf,R.box(R.types.dref,y))},R.box=function(k){for(var e=8,O=arguments.length,y=new Array(O>1?O-1:0),p=1;p<O;p++)y[p-1]=arguments[p];for(var c=y.length,a=c;c--;)e+=y[c].byteLength;var r=new Uint8Array(e);for(r[0]=e>>24&255,r[1]=e>>16&255,r[2]=e>>8&255,r[3]=e&255,r.set(k,4),c=0,e=8;c<a;c++)r.set(y[c],e),e+=y[c].byteLength;return r},R.hdlr=function(k){return R.box(R.types.hdlr,R.HDLR_TYPES[k])},R.mdat=function(k){return R.box(R.types.mdat,k)},R.mdhd=function(k,e){e*=k;var O=Math.floor(e/(j+1)),y=Math.floor(e%(j+1));return R.box(R.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,k>>24&255,k>>16&255,k>>8&255,k&255,O>>24,O>>16&255,O>>8&255,O&255,y>>24,y>>16&255,y>>8&255,y&255,85,196,0,0]))},R.mdia=function(k){return R.box(R.types.mdia,R.mdhd(k.timescale,k.duration),R.hdlr(k.type),R.minf(k))},R.mfhd=function(k){return R.box(R.types.mfhd,new Uint8Array([0,0,0,0,k>>24,k>>16&255,k>>8&255,k&255]))},R.minf=function(k){return k.type==="audio"?R.box(R.types.minf,R.box(R.types.smhd,R.SMHD),R.DINF,R.stbl(k)):R.box(R.types.minf,R.box(R.types.vmhd,R.VMHD),R.DINF,R.stbl(k))},R.moof=function(k,e,O){return R.box(R.types.moof,R.mfhd(k),R.traf(O,e))},R.moov=function(k){for(var e=k.length,O=[];e--;)O[e]=R.trak(k[e]);return R.box.apply(null,[R.types.moov,R.mvhd(k[0].timescale,k[0].duration)].concat(O).concat(R.mvex(k)))},R.mvex=function(k){for(var e=k.length,O=[];e--;)O[e]=R.trex(k[e]);return R.box.apply(null,[R.types.mvex].concat(O))},R.mvhd=function(k,e){e*=k;var O=Math.floor(e/(j+1)),y=Math.floor(e%(j+1)),p=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,k>>24&255,k>>16&255,k>>8&255,k&255,O>>24,O>>16&255,O>>8&255,O&255,y>>24,y>>16&255,y>>8&255,y&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 R.box(R.types.mvhd,p)},R.sdtp=function(k){var e=k.samples||[],O=new Uint8Array(4+e.length),y,p;for(y=0;y<e.length;y++)p=e[y].flags,O[y+4]=p.dependsOn<<4|p.isDependedOn<<2|p.hasRedundancy;return R.box(R.types.sdtp,O)},R.stbl=function(k){return R.box(R.types.stbl,R.stsd(k),R.box(R.types.stts,R.STTS),R.box(R.types.stsc,R.STSC),R.box(R.types.stsz,R.STSZ),R.box(R.types.stco,R.STCO))},R.avc1=function(k){var e=[],O=[],y,p,c;for(y=0;y<k.sps.length;y++)p=k.sps[y],c=p.byteLength,e.push(c>>>8&255),e.push(c&255),e=e.concat(Array.prototype.slice.call(p));for(y=0;y<k.pps.length;y++)p=k.pps[y],c=p.byteLength,O.push(c>>>8&255),O.push(c&255),O=O.concat(Array.prototype.slice.call(p));var a=R.box(R.types.avcC,new Uint8Array([1,e[3],e[4],e[5],252|3,224|k.sps.length].concat(e).concat([k.pps.length]).concat(O))),r=k.width,s=k.height,o=k.pixelRatio[0],i=k.pixelRatio[1];return R.box(R.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,r>>8&255,r&255,s>>8&255,s&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]),a,R.box(R.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),R.box(R.types.pasp,new Uint8Array([o>>24,o>>16&255,o>>8&255,o&255,i>>24,i>>16&255,i>>8&255,i&255])))},R.esds=function(k){var e=k.config.length;return new Uint8Array([0,0,0,0,3,23+e,0,1,0,4,15+e,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([e]).concat(k.config).concat([6,1,2]))},R.mp4a=function(k){var e=k.samplerate;return R.box(R.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,k.channelCount,0,16,0,0,0,0,e>>8&255,e&255,0,0]),R.box(R.types.esds,R.esds(k)))},R.mp3=function(k){var e=k.samplerate;return R.box(R.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,k.channelCount,0,16,0,0,0,0,e>>8&255,e&255,0,0]))},R.stsd=function(k){return k.type==="audio"?!k.isAAC&&k.codec==="mp3"?R.box(R.types.stsd,R.STSD,R.mp3(k)):R.box(R.types.stsd,R.STSD,R.mp4a(k)):R.box(R.types.stsd,R.STSD,R.avc1(k))},R.tkhd=function(k){var e=k.id,O=k.duration*k.timescale,y=k.width,p=k.height,c=Math.floor(O/(j+1)),a=Math.floor(O%(j+1));return R.box(R.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,e&255,0,0,0,0,c>>24,c>>16&255,c>>8&255,c&255,a>>24,a>>16&255,a>>8&255,a&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,y>>8&255,y&255,0,0,p>>8&255,p&255,0,0]))},R.traf=function(k,e){var O=R.sdtp(k),y=k.id,p=Math.floor(e/(j+1)),c=Math.floor(e%(j+1));return R.box(R.types.traf,R.box(R.types.tfhd,new Uint8Array([0,0,0,0,y>>24,y>>16&255,y>>8&255,y&255])),R.box(R.types.tfdt,new Uint8Array([1,0,0,0,p>>24,p>>16&255,p>>8&255,p&255,c>>24,c>>16&255,c>>8&255,c&255])),R.trun(k,O.length+16+20+8+16+8+8),O)},R.trak=function(k){return k.duration=k.duration||4294967295,R.box(R.types.trak,R.tkhd(k),R.mdia(k))},R.trex=function(k){var e=k.id;return R.box(R.types.trex,new Uint8Array([0,0,0,0,e>>24,e>>16&255,e>>8&255,e&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},R.trun=function(k,e){var O=k.samples||[],y=O.length,p=12+16*y,c=new Uint8Array(p),a,r,s,o,i,n;for(e+=8+p,c.set([0,0,15,1,y>>>24&255,y>>>16&255,y>>>8&255,y&255,e>>>24&255,e>>>16&255,e>>>8&255,e&255],0),a=0;a<y;a++)r=O[a],s=r.duration,o=r.size,i=r.flags,n=r.cts,c.set([s>>>24&255,s>>>16&255,s>>>8&255,s&255,o>>>24&255,o>>>16&255,o>>>8&255,o&255,i.isLeading<<2|i.dependsOn,i.isDependedOn<<6|i.hasRedundancy<<4|i.paddingValue<<1|i.isNonSync,i.degradPrio&240<<8,i.degradPrio&15,n>>>24&255,n>>>16&255,n>>>8&255,n&255],12+16*a);return R.box(R.types.trun,c)},R.initSegment=function(k){R.types||R.init();var e=R.moov(k),O=new Uint8Array(R.FTYP.byteLength+e.byteLength);return O.set(R.FTYP),O.set(e,R.FTYP.byteLength),O},R}();C.types=void 0,C.HDLR_TYPES=void 0,C.STTS=void 0,C.STSC=void 0,C.STCO=void 0,C.STSZ=void 0,C.VMHD=void 0,C.SMHD=void 0,C.STSD=void 0,C.FTYP=void 0,C.DINF=void 0,M.default=C},"./src/remux/mp4-remuxer.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"default",function(){return n}),I.d(M,"normalizePts",function(){return t});var j=I("./src/polyfills/number.ts"),C=I("./src/remux/aac-helper.ts"),R=I("./src/remux/mp4-generator.ts"),H=I("./src/events.ts"),k=I("./src/errors.ts"),e=I("./src/utils/logger.ts"),O=I("./src/types/loader.ts"),y=I("./src/utils/timescale-conversion.ts");function p(){return p=Object.assign||function(x){for(var _=1;_<arguments.length;_++){var d=arguments[_];for(var u in d)Object.prototype.hasOwnProperty.call(d,u)&&(x[u]=d[u])}return x},p.apply(this,arguments)}var c=10*1e3,a=1024,r=1152,s=null,o=null,i=!1,n=function(){function x(d,u,l,h){if(h===void 0&&(h=""),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=d,this.config=u,this.typeSupported=l,this.ISGenerated=!1,s===null){var v=navigator.userAgent||"",f=v.match(/Chrome\/(\d+)/i);s=f?parseInt(f[1]):0}if(o===null){var T=navigator.userAgent.match(/Safari\/(\d+)/i);o=T?parseInt(T[1]):0}i=!!s&&s<75||!!o&&o<600}var _=x.prototype;return _.destroy=function(){},_.resetTimeStamp=function(u){e.logger.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=u},_.resetNextTimestamp=function(){e.logger.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1},_.resetInitSegment=function(){e.logger.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1},_.getVideoStartPts=function(u){var l=!1,h=u.reduce(function(v,f){var T=f.pts-v;return T<-4294967296?(l=!0,t(v,f.pts)):T>0?v:f.pts},u[0].pts);return l&&e.logger.debug("PTS rollover detected"),h},_.remux=function(u,l,h,v,f,T,P,L){var S,A,W,D,K,Y,oe=f,le=f,Se=u.pid>-1,Ee=l.pid>-1,ae=l.samples.length,Ce=u.samples.length>0,Le=ae>1,de=(!Se||Ce)&&(!Ee||Le)||this.ISGenerated||P;if(de){this.ISGenerated||(W=this.generateIS(u,l,f));var $=this.isVideoContiguous,He=-1;if(Le&&(He=b(l.samples),!$&&this.config.forceKeyFrameOnDiscontinuity))if(Y=!0,He>0){e.logger.warn("[mp4-remuxer]: Dropped "+He+" out of "+ae+" video samples due to a missing keyframe");var rt=this.getVideoStartPts(l.samples);l.samples=l.samples.slice(He),l.dropped+=He,le+=(l.samples[0].pts-rt)/(l.timescale||9e4)}else He===-1&&(e.logger.warn("[mp4-remuxer]: No keyframe found out of "+ae+" video samples"),Y=!1);if(this.ISGenerated){if(Ce&&Le){var it=this.getVideoStartPts(l.samples),Je=t(u.samples[0].pts,it)-it,at=Je/l.inputTimeScale;oe+=Math.max(0,at),le+=Math.max(0,-at)}if(Ce){if(u.samplerate||(e.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),W=this.generateIS(u,l,f)),A=this.remuxAudio(u,oe,this.isAudioContiguous,T,Ee||Le||L===O.PlaylistLevelType.AUDIO?le:void 0),Le){var ke=A?A.endPTS-A.startPTS:0;l.inputTimeScale||(e.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),W=this.generateIS(u,l,f)),S=this.remuxVideo(l,le,$,ke)}}else Le&&(S=this.remuxVideo(l,le,$,0));S&&(S.firstKeyFrame=He,S.independent=He!==-1)}}return this.ISGenerated&&(h.samples.length&&(K=this.remuxID3(h,f)),v.samples.length&&(D=this.remuxText(v,f))),{audio:A,video:S,initSegment:W,independent:Y,text:D,id3:K}},_.generateIS=function(u,l,h){var v=u.samples,f=l.samples,T=this.typeSupported,P={},L=!Object(j.isFiniteNumber)(this._initPTS),S="audio/mp4",A,W,D;if(L&&(A=W=Infinity),u.config&&v.length&&(u.timescale=u.samplerate,u.isAAC||(T.mpeg?(S="audio/mpeg",u.codec=""):T.mp3&&(u.codec="mp3")),P.audio={id:"audio",container:S,codec:u.codec,initSegment:!u.isAAC&&T.mpeg?new Uint8Array(0):R.default.initSegment([u]),metadata:{channelCount:u.channelCount}},L&&(D=u.inputTimeScale,A=W=v[0].pts-Math.round(D*h))),l.sps&&l.pps&&f.length&&(l.timescale=l.inputTimeScale,P.video={id:"main",container:"video/mp4",codec:l.codec,initSegment:R.default.initSegment([l]),metadata:{width:l.width,height:l.height}},L)){D=l.inputTimeScale;var K=this.getVideoStartPts(f),Y=Math.round(D*h);W=Math.min(W,t(f[0].dts,K)-Y),A=Math.min(A,K-Y)}if(Object.keys(P).length)return this.ISGenerated=!0,L&&(this._initPTS=A,this._initDTS=W),{tracks:P,initPTS:A,timescale:D}},_.remuxVideo=function(u,l,h,v){var f=u.inputTimeScale,T=u.samples,P=[],L=T.length,S=this._initPTS,A=this.nextAvcDts,W=8,D,K,Y,oe=Number.POSITIVE_INFINITY,le=Number.NEGATIVE_INFINITY,Se=0,Ee=!1;if(!h||A===null){var ae=l*f,Ce=T[0].pts-t(T[0].dts,T[0].pts);A=ae-Ce}for(var Le=0;Le<L;Le++){var de=T[Le];if(de.pts=t(de.pts-S,A),de.dts=t(de.dts-S,A),de.dts>de.pts){var $=9e4*.2;Se=Math.max(Math.min(Se,de.pts-de.dts),-1*$)}de.dts<T[Le>0?Le-1:Le].dts&&(Ee=!0)}Ee&&T.sort(function(vt,bt){var lt=vt.dts-bt.dts,Ot=vt.pts-bt.pts;return lt||Ot}),K=T[0].dts,Y=T[T.length-1].dts;var He=Math.round((Y-K)/(L-1));if(Se<0){if(Se<He*-2){e.logger.warn("PTS < DTS detected in video samples, offsetting DTS from PTS by "+Object(y.toMsFromMpegTsClock)(-He,!0)+" ms");for(var rt=Se,it=0;it<L;it++)T[it].dts=rt=Math.max(rt,T[it].pts-He),T[it].pts=Math.max(rt,T[it].pts)}else{e.logger.warn("PTS < DTS detected in video samples, shifting DTS by "+Object(y.toMsFromMpegTsClock)(Se,!0)+" ms to overcome this issue");for(var Je=0;Je<L;Je++)T[Je].dts=T[Je].dts+Se}K=T[0].dts}if(h){var at=K-A,ke=at>He,Ge=at<-1;if(ke||Ge){ke?e.logger.warn("AVC: "+Object(y.toMsFromMpegTsClock)(at,!0)+" ms ("+at+"dts) hole between fragments detected, filling it"):e.logger.warn("AVC: "+Object(y.toMsFromMpegTsClock)(-at,!0)+" ms ("+at+"dts) overlapping between fragments detected"),K=A;var et=T[0].pts-at;T[0].dts=K,T[0].pts=et,e.logger.log("Video: First PTS/DTS adjusted: "+Object(y.toMsFromMpegTsClock)(et,!0)+"/"+Object(y.toMsFromMpegTsClock)(K,!0)+", delta: "+Object(y.toMsFromMpegTsClock)(at,!0)+" ms")}}i&&(K=Math.max(0,K));for(var ee=0,ve=0,Te=0;Te<L;Te++){for(var Oe=T[Te],Qe=Oe.units,tt=Qe.length,st=0,nt=0;nt<tt;nt++)st+=Qe[nt].data.length;ve+=st,ee+=tt,Oe.length=st,Oe.dts=Math.max(Oe.dts,K),Oe.pts=Math.max(Oe.pts,Oe.dts,0),oe=Math.min(Oe.pts,oe),le=Math.max(Oe.pts,le)}Y=T[L-1].dts;var dt=ve+4*ee+8,mt;try{mt=new Uint8Array(dt)}catch(vt){this.observer.emit(H.Events.ERROR,H.Events.ERROR,{type:k.ErrorTypes.MUX_ERROR,details:k.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:dt,reason:"fail allocating video mdat "+dt});return}var ye=new DataView(mt.buffer);ye.setUint32(0,dt),mt.set(R.default.types.mdat,4);for(var Ae=0;Ae<L;Ae++){for(var Ne=T[Ae],Fe=Ne.units,Re=0,De=0,he=Fe.length;De<he;De++){var se=Fe[De],re=se.data,G=se.data.byteLength;ye.setUint32(W,G),W+=4,mt.set(re,W),W+=G,Re+=4+G}if(Ae<L-1)D=T[Ae+1].dts-Ne.dts;else{var X=this.config,Z=Ne.dts-T[Ae>0?Ae-1:Ae].dts;if(X.stretchShortVideoTrack&&this.nextAudioPts!==null){var te=Math.floor(X.maxBufferHole*f),ge=(v?oe+v*f:this.nextAudioPts)-Ne.pts;ge>te?(D=ge-Z,D<0&&(D=Z),e.logger.log("[mp4-remuxer]: It is approximately "+ge/90+" ms to the next segment; using duration "+D/90+" ms for the last video frame.")):D=Z}else D=Z}var we=Math.round(Ne.pts-Ne.dts);P.push(new g(Ne.key,D,Re,we))}if(P.length&&s&&s<70){var Me=P[0].flags;Me.dependsOn=2,Me.isNonSync=0}console.assert(D!==void 0,"mp4SampleDuration must be computed"),this.nextAvcDts=A=Y+D,this.isVideoContiguous=!0;var Ze=R.default.moof(u.sequenceNumber++,K,p({},u,{samples:P})),ot="video",ze={data1:Ze,data2:mt,startPTS:oe/f,endPTS:(le+D)/f,startDTS:K/f,endDTS:A/f,type:ot,hasAudio:!1,hasVideo:!0,nb:P.length,dropped:u.dropped};return u.samples=[],u.dropped=0,console.assert(mt.length,"MDAT length must not be zero"),ze},_.remuxAudio=function(u,l,h,v,f){var T=u.inputTimeScale,P=u.samplerate?u.samplerate:T,L=T/P,S=u.isAAC?a:r,A=S*L,W=this._initPTS,D=!u.isAAC&&this.typeSupported.mpeg,K=[],Y=u.samples,oe=D?0:8,le=this.nextAudioPts||-1,Se=l*T;if(this.isAudioContiguous=h=h||Y.length&&le>0&&(v&&Math.abs(Se-le)<9e3||Math.abs(t(Y[0].pts-W,Se)-le)<20*A),Y.forEach(function(re){re.pts=t(re.pts-W,Se)}),!h||le<0){if(Y=Y.filter(function(re){return re.pts>=0}),!Y.length)return;f===0?le=0:v?le=Math.max(0,Se):le=Y[0].pts}if(u.isAAC)for(var Ee=f!==void 0,ae=this.config.maxAudioFramesDrift,Ce=0,Le=le;Ce<Y.length;Ce++){var de=Y[Ce],$=de.pts,He=$-Le,rt=Math.abs(1e3*He/T);if(He<=-ae*A&&Ee)Ce===0&&(e.logger.warn("Audio frame @ "+($/T).toFixed(3)+"s overlaps nextAudioPts by "+Math.round(1e3*He/T)+" ms."),this.nextAudioPts=le=Le=$);else if(He>=ae*A&&rt<c&&Ee){var it=Math.round(He/A);Le=$-it*A,Le<0&&(it--,Le+=A),Ce===0&&(this.nextAudioPts=le=Le),e.logger.warn("[mp4-remuxer]: Injecting "+it+" audio frame @ "+(Le/T).toFixed(3)+"s due to "+Math.round(1e3*He/T)+" ms gap.");for(var Je=0;Je<it;Je++){var at=Math.max(Le,0),ke=C.default.getSilentFrame(u.manifestCodec||u.codec,u.channelCount);ke||(e.logger.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),ke=de.unit.subarray()),Y.splice(Ce,0,{unit:ke,pts:at}),Le+=A,Ce++}}de.pts=Le,Le+=A}for(var Ge=null,et=null,ee,ve=0,Te=Y.length;Te--;)ve+=Y[Te].unit.byteLength;for(var Oe=0,Qe=Y.length;Oe<Qe;Oe++){var tt=Y[Oe],st=tt.unit,nt=tt.pts;if(et!==null){var dt=K[Oe-1];dt.duration=Math.round((nt-et)/L)}else if(h&&u.isAAC&&(nt=le),Ge=nt,ve>0){ve+=oe;try{ee=new Uint8Array(ve)}catch(re){this.observer.emit(H.Events.ERROR,H.Events.ERROR,{type:k.ErrorTypes.MUX_ERROR,details:k.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:ve,reason:"fail allocating audio mdat "+ve});return}if(!D){var mt=new DataView(ee.buffer);mt.setUint32(0,ve),ee.set(R.default.types.mdat,4)}}else return;ee.set(st,oe);var ye=st.byteLength;oe+=ye,K.push(new g(!0,S,ye,0)),et=nt}var Ae=K.length;if(!Ae)return;var Ne=K[K.length-1];this.nextAudioPts=le=et+L*Ne.duration;var Fe=D?new Uint8Array(0):R.default.moof(u.sequenceNumber++,Ge/L,p({},u,{samples:K}));u.samples=[];var Re=Ge/T,De=le/T,he="audio",se={data1:Fe,data2:ee,startPTS:Re,endPTS:De,startDTS:Re,endDTS:De,type:he,hasAudio:!0,hasVideo:!1,nb:Ae};return this.isAudioContiguous=!0,console.assert(ee.length,"MDAT length must not be zero"),se},_.remuxEmptyAudio=function(u,l,h,v){var f=u.inputTimeScale,T=u.samplerate?u.samplerate:f,P=f/T,L=this.nextAudioPts,S=(L!==null?L:v.startDTS*f)+this._initDTS,A=v.endDTS*f+this._initDTS,W=P*a,D=Math.ceil((A-S)/W),K=C.default.getSilentFrame(u.manifestCodec||u.codec,u.channelCount);if(e.logger.warn("[mp4-remuxer]: remux empty Audio"),!K){e.logger.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var Y=[],oe=0;oe<D;oe++){var le=S+oe*W;Y.push({unit:K,pts:le,dts:le})}return u.samples=Y,this.remuxAudio(u,l,h,!1)},_.remuxID3=function(u,l){var h=u.samples.length;if(!h)return;for(var v=u.inputTimeScale,f=this._initPTS,T=this._initDTS,P=0;P<h;P++){var L=u.samples[P];L.pts=t(L.pts-f,l*v)/v,L.dts=t(L.dts-T,l*v)/v}var S=u.samples;return u.samples=[],{samples:S}},_.remuxText=function(u,l){var h=u.samples.length;if(!h)return;for(var v=u.inputTimeScale,f=this._initPTS,T=0;T<h;T++){var P=u.samples[T];P.pts=t(P.pts-f,l*v)/v}u.samples.sort(function(S,A){return S.pts-A.pts});var L=u.samples;return u.samples=[],{samples:L}},x}();function t(x,_){var d;if(_===null)return x;for(_<x?d=-8589934592:d=8589934592;Math.abs(x-_)>4294967296;)x+=d;return x}function b(x){for(var _=0;_<x.length;_++)if(x[_].key)return _;return-1}var g=function(_,d,u,l){this.size=void 0,this.duration=void 0,this.cts=void 0,this.flags=void 0,this.duration=d,this.size=u,this.cts=l,this.flags=new m(_)},m=function(_){this.isLeading=0,this.isDependedOn=0,this.hasRedundancy=0,this.degradPrio=0,this.dependsOn=1,this.isNonSync=1,this.dependsOn=_?2:1,this.isNonSync=_?0:1}},"./src/remux/passthrough-remuxer.ts":function(Q,M,I){"use strict";I.r(M);var j=I("./src/polyfills/number.ts"),C=I("./src/utils/mp4-tools.ts"),R=I("./src/loader/fragment.ts"),H=I("./src/utils/logger.ts"),k=function(){function y(){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 p=y.prototype;return p.destroy=function(){},p.resetTimeStamp=function(a){this.initPTS=a,this.lastEndDTS=null},p.resetNextTimestamp=function(){this.lastEndDTS=null},p.resetInitSegment=function(a,r,s){this.audioCodec=r,this.videoCodec=s,this.generateInitSegment(a),this.emitInitSegment=!0},p.generateInitSegment=function(a){var r=this.audioCodec,s=this.videoCodec;if(!a||!a.byteLength){this.initTracks=void 0,this.initData=void 0;return}var o=this.initData=Object(C.parseInitSegment)(a);r||(r=O(o.audio,R.ElementaryStreamTypes.AUDIO)),s||(s=O(o.video,R.ElementaryStreamTypes.VIDEO));var i={};o.audio&&o.video?i.audiovideo={container:"video/mp4",codec:r+","+s,initSegment:a,id:"main"}:o.audio?i.audio={container:"audio/mp4",codec:r,initSegment:a,id:"audio"}:o.video?i.video={container:"video/mp4",codec:s,initSegment:a,id:"main"}:H.logger.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=i},p.remux=function(a,r,s,o,i){var n=this.initPTS,t=this.lastEndDTS,b={audio:void 0,video:void 0,text:o,id3:s,initSegment:void 0};Object(j.isFiniteNumber)(t)||(t=this.lastEndDTS=i||0);var g=r.samples;if(!g||!g.length)return b;var m={initPTS:void 0,timescale:1},x=this.initData;if((!x||!x.length)&&(this.generateInitSegment(g),x=this.initData),!x||!x.length)return H.logger.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),b;this.emitInitSegment&&(m.tracks=this.initTracks,this.emitInitSegment=!1),Object(j.isFiniteNumber)(n)||(this.initPTS=m.initPTS=n=e(x,g,t));var _=Object(C.getDuration)(g,x),d=t,u=_+d;Object(C.offsetStartDTS)(x,g,n),_>0?this.lastEndDTS=u:(H.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var l=!!x.audio,h=!!x.video,v="";l&&(v+="audio"),h&&(v+="video");var f={data1:g,startPTS:d,startDTS:d,endPTS:u,endDTS:u,type:v,hasAudio:l,hasVideo:h,nb:1,dropped:0};return b.audio=f.type==="audio"?f:void 0,b.video=f.type!=="audio"?f:void 0,b.text=o,b.id3=s,b.initSegment=m,b},y}(),e=function(p,c,a){return Object(C.getStartDTS)(p,c)-a};function O(y,p){var c=y==null?void 0:y.codec;return c&&c.length>4?c:c==="hvc1"?"hvc1.1.c.L120.90":c==="av01"?"av01.0.04M.08":c==="avc1"||p===R.ElementaryStreamTypes.VIDEO?"avc1.42e01e":"mp4a.40.5"}M.default=k},"./src/task-loop.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"default",function(){return j});var j=function(){function C(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var R=C.prototype;return R.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},R.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},R.onHandlerDestroyed=function(){},R.hasInterval=function(){return!!this._tickInterval},R.hasNextTick=function(){return!!this._tickTimer},R.setInterval=function(k){return this._tickInterval?!1:(this._tickInterval=self.setInterval(this._boundTick,k),!0)},R.clearInterval=function(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1},R.clearNextTick=function(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1},R.tick=function(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},R.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},R.doTick=function(){},C}()},"./src/types/cmcd.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"CMCDVersion",function(){return j}),I.d(M,"CMCDObjectType",function(){return C}),I.d(M,"CMCDStreamingFormat",function(){return R}),I.d(M,"CMCDStreamType",function(){return H});var j=1,C;(function(k){k.MANIFEST="m",k.AUDIO="a",k.VIDEO="v",k.MUXED="av",k.INIT="i",k.CAPTION="c",k.TIMED_TEXT="tt",k.KEY="k",k.OTHER="o"})(C||(C={}));var R;(function(k){k.DASH="d",k.HLS="h",k.SMOOTH="s",k.OTHER="o"})(R||(R={}));var H;(function(k){k.VOD="v",k.LIVE="l"})(H||(H={}))},"./src/types/level.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"HlsSkip",function(){return R}),I.d(M,"getSkipValue",function(){return H}),I.d(M,"HlsUrlParameters",function(){return k}),I.d(M,"Level",function(){return e});function j(O,y){for(var p=0;p<y.length;p++){var c=y[p];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(O,c.key,c)}}function C(O,y,p){return y&&j(O.prototype,y),p&&j(O,p),O}var R;(function(O){O.No="",O.Yes="YES",O.v2="v2"})(R||(R={}));function H(O,y){var p=O.canSkipUntil,c=O.canSkipDateRanges,a=O.endSN,r=y!==void 0?y-a:0;return p&&r<p?c?R.v2:R.Yes:R.No}var k=function(){function O(p,c,a){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=p,this.part=c,this.skip=a}var y=O.prototype;return y.addDirectives=function(c){var a=new self.URL(c);return this.msn!==void 0&&a.searchParams.set("_HLS_msn",this.msn.toString()),this.part!==void 0&&a.searchParams.set("_HLS_part",this.part.toString()),this.skip&&a.searchParams.set("_HLS_skip",this.skip),a.toString()},O}(),e=function(){function O(y){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=[y.url],this.attrs=y.attrs,this.bitrate=y.bitrate,y.details&&(this.details=y.details),this.id=y.id||0,this.name=y.name,this.width=y.width||0,this.height=y.height||0,this.audioCodec=y.audioCodec,this.videoCodec=y.videoCodec,this.unknownCodecs=y.unknownCodecs,this.codecSet=[y.videoCodec,y.audioCodec].filter(function(p){return p}).join(",").replace(/\.[^.,]+/g,"")}return C(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(p){var c=p%this.url.length;this._urlId!==c&&(this.details=void 0,this._urlId=c)}}]),O}()},"./src/types/loader.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"PlaylistContextType",function(){return j}),I.d(M,"PlaylistLevelType",function(){return C});var j;(function(R){R.MANIFEST="manifest",R.LEVEL="level",R.AUDIO_TRACK="audioTrack",R.SUBTITLE_TRACK="subtitleTrack"})(j||(j={}));var C;(function(R){R.MAIN="main",R.AUDIO="audio",R.SUBTITLE="subtitle"})(C||(C={}))},"./src/types/transmuxer.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"ChunkMetadata",function(){return j});var j=function(H,k,e,O,y,p){O===void 0&&(O=0),y===void 0&&(y=-1),p===void 0&&(p=!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=C(),this.buffering={audio:C(),video:C(),audiovideo:C()},this.level=H,this.sn=k,this.id=e,this.size=O,this.part=y,this.partial=p};function C(){return{start:0,executeStart:0,executeEnd:0,end:0}}},"./src/utils/attr-list.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"AttrList",function(){return R});var j=/^(\d+)x(\d+)$/,C=/\s*(.+?)\s*=((?:\".*?\")|.*?)(?:,|$)/g,R=function(){function H(e){typeof e=="string"&&(e=H.parseAttrList(e));for(var O in e)e.hasOwnProperty(O)&&(this[O]=e[O])}var k=H.prototype;return k.decimalInteger=function(O){var y=parseInt(this[O],10);return y>Number.MAX_SAFE_INTEGER?Infinity:y},k.hexadecimalInteger=function(O){if(this[O]){var y=(this[O]||"0x").slice(2);y=(y.length&1?"0":"")+y;for(var p=new Uint8Array(y.length/2),c=0;c<y.length/2;c++)p[c]=parseInt(y.slice(c*2,c*2+2),16);return p}else return null},k.hexadecimalIntegerAsNumber=function(O){var y=parseInt(this[O],16);return y>Number.MAX_SAFE_INTEGER?Infinity:y},k.decimalFloatingPoint=function(O){return parseFloat(this[O])},k.optionalFloat=function(O,y){var p=this[O];return p?parseFloat(p):y},k.enumeratedString=function(O){return this[O]},k.bool=function(O){return this[O]==="YES"},k.decimalResolution=function(O){var y=j.exec(this[O]);return y===null?void 0:{width:parseInt(y[1],10),height:parseInt(y[2],10)}},H.parseAttrList=function(O){var y,p={},c='"';for(C.lastIndex=0;(y=C.exec(O))!==null;){var a=y[2];a.indexOf(c)===0&&a.lastIndexOf(c)===a.length-1&&(a=a.slice(1,-1)),p[y[1]]=a}return p},H}()},"./src/utils/binary-search.ts":function(Q,M,I){"use strict";I.r(M);var j={search:function(R,H){for(var k=0,e=R.length-1,O=null,y=null;k<=e;){O=(k+e)/2|0,y=R[O];var p=H(y);if(p>0)k=O+1;else if(p<0)e=O-1;else return y}return null}};M.default=j},"./src/utils/buffer-helper.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"BufferHelper",function(){return R});var j=I("./src/utils/logger.ts"),C={length:0,start:function(){return 0},end:function(){return 0}},R=function(){function H(){}return H.isBuffered=function(e,O){try{if(e){for(var y=H.getBuffered(e),p=0;p<y.length;p++)if(O>=y.start(p)&&O<=y.end(p))return!0}}catch(c){}return!1},H.bufferInfo=function(e,O,y){try{if(e){var p=H.getBuffered(e),c=[],a;for(a=0;a<p.length;a++)c.push({start:p.start(a),end:p.end(a)});return this.bufferedInfo(c,O,y)}}catch(r){}return{len:0,start:O,end:O,nextStart:void 0}},H.bufferedInfo=function(e,O,y){O=Math.max(0,O),e.sort(function(m,x){var _=m.start-x.start;return _||x.end-m.end});var p=[];if(y)for(var c=0;c<e.length;c++){var a=p.length;if(a){var r=p[a-1].end;e[c].start-r<y?e[c].end>r&&(p[a-1].end=e[c].end):p.push(e[c])}else p.push(e[c])}else p=e;for(var s=0,o,i=O,n=O,t=0;t<p.length;t++){var b=p[t].start,g=p[t].end;if(O+y>=b&&O<g)i=b,n=g,s=n-O;else if(O+y<b){o=b;break}}return{len:s,start:i||0,end:n||0,nextStart:o}},H.getBuffered=function(e){try{return e.buffered}catch(O){return j.logger.log("failed to get media.buffered",O),C}},H}()},"./src/utils/cea-608-parser.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"Row",function(){return n}),I.d(M,"CaptionScreen",function(){return t});var j=I("./src/utils/logger.ts"),C={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},R=function(u){var l=u;return C.hasOwnProperty(u)&&(l=C[u]),String.fromCharCode(l)},H=15,k=100,e={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},y={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},p={25:2,26:4,29:6,30:8,31:10,27:13,28:15},c=["white","green","blue","cyan","red","yellow","magenta","black","transparent"],a;(function(d){d[d.ERROR=0]="ERROR",d[d.TEXT=1]="TEXT",d[d.WARNING=2]="WARNING",d[d.INFO=2]="INFO",d[d.DEBUG=3]="DEBUG",d[d.DATA=3]="DATA"})(a||(a={}));var r=function(){function d(){this.time=null,this.verboseLevel=a.ERROR}var u=d.prototype;return u.log=function(h,v){this.verboseLevel>=h&&j.logger.log(this.time+" ["+h+"] "+v)},d}(),s=function(u){for(var l=[],h=0;h<u.length;h++)l.push(u[h].toString(16));return l},o=function(){function d(l,h,v,f,T){this.foreground=void 0,this.underline=void 0,this.italics=void 0,this.background=void 0,this.flash=void 0,this.foreground=l||"white",this.underline=h||!1,this.italics=v||!1,this.background=f||"black",this.flash=T||!1}var u=d.prototype;return u.reset=function(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1},u.setStyles=function(h){for(var v=["foreground","underline","italics","background","flash"],f=0;f<v.length;f++){var T=v[f];h.hasOwnProperty(T)&&(this[T]=h[T])}},u.isDefault=function(){return this.foreground==="white"&&!this.underline&&!this.italics&&this.background==="black"&&!this.flash},u.equals=function(h){return this.foreground===h.foreground&&this.underline===h.underline&&this.italics===h.italics&&this.background===h.background&&this.flash===h.flash},u.copy=function(h){this.foreground=h.foreground,this.underline=h.underline,this.italics=h.italics,this.background=h.background,this.flash=h.flash},u.toString=function(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash},d}(),i=function(){function d(l,h,v,f,T,P){this.uchar=void 0,this.penState=void 0,this.uchar=l||" ",this.penState=new o(h,v,f,T,P)}var u=d.prototype;return u.reset=function(){this.uchar=" ",this.penState.reset()},u.setChar=function(h,v){this.uchar=h,this.penState.copy(v)},u.setPenState=function(h){this.penState.copy(h)},u.equals=function(h){return this.uchar===h.uchar&&this.penState.equals(h.penState)},u.copy=function(h){this.uchar=h.uchar,this.penState.copy(h.penState)},u.isEmpty=function(){return this.uchar===" "&&this.penState.isDefault()},d}(),n=function(){function d(l){this.chars=void 0,this.pos=void 0,this.currPenState=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chars=[];for(var h=0;h<k;h++)this.chars.push(new i);this.logger=l,this.pos=0,this.currPenState=new o}var u=d.prototype;return u.equals=function(h){for(var v=!0,f=0;f<k;f++)if(!this.chars[f].equals(h.chars[f])){v=!1;break}return v},u.copy=function(h){for(var v=0;v<k;v++)this.chars[v].copy(h.chars[v])},u.isEmpty=function(){for(var h=!0,v=0;v<k;v++)if(!this.chars[v].isEmpty()){h=!1;break}return h},u.setCursor=function(h){this.pos!==h&&(this.pos=h),this.pos<0?(this.logger.log(a.DEBUG,"Negative cursor position "+this.pos),this.pos=0):this.pos>k&&(this.logger.log(a.DEBUG,"Too large cursor position "+this.pos),this.pos=k)},u.moveCursor=function(h){var v=this.pos+h;if(h>1)for(var f=this.pos+1;f<v+1;f++)this.chars[f].setPenState(this.currPenState);this.setCursor(v)},u.backSpace=function(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)},u.insertChar=function(h){h>=144&&this.backSpace();var v=R(h);if(this.pos>=k){this.logger.log(a.ERROR,"Cannot insert "+h.toString(16)+" ("+v+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(v,this.currPenState),this.moveCursor(1)},u.clearFromPos=function(h){var v;for(v=h;v<k;v++)this.chars[v].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 h=[],v=!0,f=0;f<k;f++){var T=this.chars[f].uchar;T!==" "&&(v=!1),h.push(T)}return v?"":h.join("")},u.setPenStyles=function(h){this.currPenState.setStyles(h);var v=this.chars[this.pos];v.setPenState(this.currPenState)},d}(),t=function(){function d(l){this.rows=void 0,this.currRow=void 0,this.nrRollUpRows=void 0,this.lastOutputScreen=void 0,this.logger=void 0,this.rows=[];for(var h=0;h<H;h++)this.rows.push(new n(l));this.logger=l,this.currRow=H-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.reset()}var u=d.prototype;return u.reset=function(){for(var h=0;h<H;h++)this.rows[h].clear();this.currRow=H-1},u.equals=function(h){for(var v=!0,f=0;f<H;f++)if(!this.rows[f].equals(h.rows[f])){v=!1;break}return v},u.copy=function(h){for(var v=0;v<H;v++)this.rows[v].copy(h.rows[v])},u.isEmpty=function(){for(var h=!0,v=0;v<H;v++)if(!this.rows[v].isEmpty()){h=!1;break}return h},u.backSpace=function(){var h=this.rows[this.currRow];h.backSpace()},u.clearToEndOfRow=function(){var h=this.rows[this.currRow];h.clearToEndOfRow()},u.insertChar=function(h){var v=this.rows[this.currRow];v.insertChar(h)},u.setPen=function(h){var v=this.rows[this.currRow];v.setPenStyles(h)},u.moveCursor=function(h){var v=this.rows[this.currRow];v.moveCursor(h)},u.setCursor=function(h){this.logger.log(a.INFO,"setCursor: "+h);var v=this.rows[this.currRow];v.setCursor(h)},u.setPAC=function(h){this.logger.log(a.INFO,"pacData = "+JSON.stringify(h));var v=h.row-1;if(this.nrRollUpRows&&v<this.nrRollUpRows-1&&(v=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==v){for(var f=0;f<H;f++)this.rows[f].clear();var T=this.currRow+1-this.nrRollUpRows,P=this.lastOutputScreen;if(P){var L=P.rows[T].cueStartTime,S=this.logger.time;if(L&&S!==null&&L<S)for(var A=0;A<this.nrRollUpRows;A++)this.rows[v-this.nrRollUpRows+A+1].copy(P.rows[T+A])}}this.currRow=v;var W=this.rows[this.currRow];if(h.indent!==null){var D=h.indent,K=Math.max(D-1,0);W.setCursor(h.indent),h.color=W.chars[K].penState.foreground}var Y={foreground:h.color,underline:h.underline,italics:h.italics,background:"black",flash:!1};this.setPen(Y)},u.setBkgData=function(h){this.logger.log(a.INFO,"bkgData = "+JSON.stringify(h)),this.backSpace(),this.setPen(h),this.insertChar(32)},u.setRollUpRows=function(h){this.nrRollUpRows=h},u.rollUp=function(){if(this.nrRollUpRows===null){this.logger.log(a.DEBUG,"roll_up but nrRollUpRows not set yet");return}this.logger.log(a.TEXT,this.getDisplayText());var h=this.currRow+1-this.nrRollUpRows,v=this.rows.splice(h,1)[0];v.clear(),this.rows.splice(this.currRow,0,v),this.logger.log(a.INFO,"Rolling up")},u.getDisplayText=function(h){h=h||!1;for(var v=[],f="",T=-1,P=0;P<H;P++){var L=this.rows[P].getTextString();L&&(T=P+1,h?v.push("Row "+T+": '"+L+"'"):v.push(L.trim()))}return v.length>0&&(h?f="["+v.join(" | ")+"]":f=v.join(`
|
|
`)),f},u.getTextAndFormat=function(){return this.rows},d}(),b=function(){function d(l,h,v){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=l,this.outputFilter=h,this.mode=null,this.verbose=0,this.displayedMemory=new t(v),this.nonDisplayedMemory=new t(v),this.lastOutputScreen=new t(v),this.currRollUpRow=this.displayedMemory.rows[H-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=v}var u=d.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[H-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null},u.getHandler=function(){return this.outputFilter},u.setHandler=function(h){this.outputFilter=h},u.setPAC=function(h){this.writeScreen.setPAC(h)},u.setBkgData=function(h){this.writeScreen.setBkgData(h)},u.setMode=function(h){if(h===this.mode)return;this.mode=h,this.logger.log(a.INFO,"MODE="+h),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=h},u.insertChars=function(h){for(var v=0;v<h.length;v++)this.writeScreen.insertChar(h[v]);var f=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(a.INFO,f+": "+this.writeScreen.getDisplayText(!0)),(this.mode==="MODE_PAINT-ON"||this.mode==="MODE_ROLL-UP")&&(this.logger.log(a.TEXT,"DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())},u.ccRCL=function(){this.logger.log(a.INFO,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")},u.ccBS=function(){if(this.logger.log(a.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(a.INFO,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()},u.ccRU=function(h){this.logger.log(a.INFO,"RU("+h+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(h)},u.ccFON=function(){this.logger.log(a.INFO,"FON - Flash On"),this.writeScreen.setPen({flash:!0})},u.ccRDC=function(){this.logger.log(a.INFO,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")},u.ccTR=function(){this.logger.log(a.INFO,"TR"),this.setMode("MODE_TEXT")},u.ccRTD=function(){this.logger.log(a.INFO,"RTD"),this.setMode("MODE_TEXT")},u.ccEDM=function(){this.logger.log(a.INFO,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)},u.ccCR=function(){this.logger.log(a.INFO,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)},u.ccENM=function(){this.logger.log(a.INFO,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()},u.ccEOC=function(){if(this.logger.log(a.INFO,"EOC - End Of Caption"),this.mode==="MODE_POP-ON"){var h=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=h,this.writeScreen=this.nonDisplayedMemory,this.logger.log(a.TEXT,"DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate(!0)},u.ccTO=function(h){this.logger.log(a.INFO,"TO("+h+") - Tab Offset"),this.writeScreen.moveCursor(h)},u.ccMIDROW=function(h){var v={flash:!1};if(v.underline=h%2===1,v.italics=h>=46,v.italics)v.foreground="white";else{var f=Math.floor(h/2)-16,T=["white","green","blue","cyan","red","yellow","magenta"];v.foreground=T[f]}this.logger.log(a.INFO,"MIDROW: "+JSON.stringify(v)),this.writeScreen.setPen(v)},u.outputDataUpdate=function(h){h===void 0&&(h=!1);var v=this.logger.time;if(v===null)return;this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=v:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,v,this.lastOutputScreen),h&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:v),this.lastOutputScreen.copy(this.displayedMemory))},u.cueSplitAtTime=function(h){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,h,this.displayedMemory),this.cueStartTime=h))},d}(),g=function(){function d(l,h,v){this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var f=new r;this.channels=[null,new b(l,h,f),new b(l+1,v,f)],this.cmdHistory=_(),this.logger=f}var u=d.prototype;return u.getHandler=function(h){return this.channels[h].getHandler()},u.setHandler=function(h,v){this.channels[h].setHandler(v)},u.addData=function(h,v){var f,T,P,L=!1;this.logger.time=h;for(var S=0;S<v.length;S+=2){if(T=v[S]&127,P=v[S+1]&127,T===0&&P===0)continue;if(this.logger.log(a.DATA,"["+s([v[S],v[S+1]])+"] -> ("+s([T,P])+")"),f=this.parseCmd(T,P),f||(f=this.parseMidrow(T,P)),f||(f=this.parsePAC(T,P)),f||(f=this.parseBackgroundAttributes(T,P)),!f&&(L=this.parseChars(T,P),L)){var A=this.currentChannel;if(A&&A>0){var W=this.channels[A];W.insertChars(L)}else this.logger.log(a.WARNING,"No channel found yet. TEXT-MODE?")}!f&&!L&&this.logger.log(a.WARNING,"Couldn't parse cleaned data "+s([T,P])+" orig: "+s([v[S],v[S+1]]))}},u.parseCmd=function(h,v){var f=this.cmdHistory,T=(h===20||h===28||h===21||h===29)&&v>=32&&v<=47,P=(h===23||h===31)&&v>=33&&v<=35;if(!(T||P))return!1;if(x(h,v,f))return m(null,null,f),this.logger.log(a.DEBUG,"Repeated command ("+s([h,v])+") is dropped"),!0;var L=h===20||h===21||h===23?1:2,S=this.channels[L];return h===20||h===21||h===28||h===29?v===32?S.ccRCL():v===33?S.ccBS():v===34?S.ccAOF():v===35?S.ccAON():v===36?S.ccDER():v===37?S.ccRU(2):v===38?S.ccRU(3):v===39?S.ccRU(4):v===40?S.ccFON():v===41?S.ccRDC():v===42?S.ccTR():v===43?S.ccRTD():v===44?S.ccEDM():v===45?S.ccCR():v===46?S.ccENM():v===47&&S.ccEOC():S.ccTO(v-32),m(h,v,f),this.currentChannel=L,!0},u.parseMidrow=function(h,v){var f=0;if((h===17||h===25)&&v>=32&&v<=47){if(h===17?f=1:f=2,f!==this.currentChannel)return this.logger.log(a.ERROR,"Mismatch channel in midrow parsing"),!1;var T=this.channels[f];return T?(T.ccMIDROW(v),this.logger.log(a.DEBUG,"MIDROW ("+s([h,v])+")"),!0):!1}return!1},u.parsePAC=function(h,v){var f,T=this.cmdHistory,P=(h>=17&&h<=23||h>=25&&h<=31)&&v>=64&&v<=127,L=(h===16||h===24)&&v>=64&&v<=95;if(!(P||L))return!1;if(x(h,v,T))return m(null,null,T),!0;var S=h<=23?1:2;v>=64&&v<=95?f=S===1?e[h]:y[h]:f=S===1?O[h]:p[h];var A=this.channels[S];return A?(A.setPAC(this.interpretPAC(f,v)),m(h,v,T),this.currentChannel=S,!0):!1},u.interpretPAC=function(h,v){var f,T={color:null,italics:!1,indent:null,underline:!1,row:h};return v>95?f=v-96:f=v-64,T.underline=(f&1)===1,f<=13?T.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(f/2)]:f<=15?(T.italics=!0,T.color="white"):T.indent=Math.floor((f-16)/2)*4,T},u.parseChars=function(h,v){var f,T=null,P=null;if(h>=25?(f=2,P=h-8):(f=1,P=h),P>=17&&P<=19){var L;P===17?L=v+80:P===18?L=v+112:L=v+144,this.logger.log(a.INFO,"Special char '"+R(L)+"' in channel "+f),T=[L]}else h>=32&&h<=127&&(T=v===0?[h]:[h,v]);if(T){var S=s(T);this.logger.log(a.DEBUG,"Char codes = "+S.join(",")),m(h,v,this.cmdHistory)}return T},u.parseBackgroundAttributes=function(h,v){var f=(h===16||h===24)&&v>=32&&v<=47,T=(h===23||h===31)&&v>=45&&v<=47;if(!(f||T))return!1;var P,L={};h===16||h===24?(P=Math.floor((v-32)/2),L.background=c[P],v%2===1&&(L.background=L.background+"_semi")):v===45?L.background="transparent":(L.foreground="black",v===47&&(L.underline=!0));var S=h<=23?1:2,A=this.channels[S];return A.setBkgData(L),m(h,v,this.cmdHistory),!0},u.reset=function(){for(var h=0;h<Object.keys(this.channels).length;h++){var v=this.channels[h];v&&v.reset()}this.cmdHistory=_()},u.cueSplitAtTime=function(h){for(var v=0;v<this.channels.length;v++){var f=this.channels[v];f&&f.cueSplitAtTime(h)}},d}();function m(d,u,l){l.a=d,l.b=u}function x(d,u,l){return l.a===d&&l.b===u}function _(){return{a:null,b:null}}M.default=g},"./src/utils/codecs.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"isCodecType",function(){return C}),I.d(M,"isCodecSupportedInMp4",function(){return R});var j={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 C(H,k){var e=j[k];return!!e&&e[H.slice(0,4)]===!0}function R(H,k){return MediaSource.isTypeSupported((k||"video")+'/mp4;codecs="'+H+'"')}},"./src/utils/cues.ts":function(Q,M,I){"use strict";I.r(M);var j=I("./src/utils/vttparser.ts"),C=I("./src/utils/webvtt-parser.ts"),R=I("./src/utils/texttrack-utils.ts"),H=/\s/,k={newCue:function(O,y,p,c){for(var a=[],r,s,o,i,n,t=self.VTTCue||self.TextTrackCue,b=0;b<c.rows.length;b++)if(r=c.rows[b],o=!0,i=0,n="",!r.isEmpty()){for(var g=0;g<r.chars.length;g++)H.test(r.chars[g].uchar)&&o?i++:(n+=r.chars[g].uchar,o=!1);r.cueStartTime=y,y===p&&(p+=1e-4),i>=16?i--:i++;var m=Object(j.fixLineBreaks)(n.trim()),x=Object(C.generateCueId)(y,p,m);(!O||!O.cues||!O.cues.getCueById(x))&&(s=new t(y,p,m),s.id=x,s.line=b+1,s.align="left",s.position=10+Math.min(80,Math.floor(i*8/32)*10),a.push(s))}return O&&a.length&&(a.sort(function(_,d){return _.line==="auto"||d.line==="auto"?0:_.line>8&&d.line>8?d.line-_.line:_.line-d.line}),a.forEach(function(_){return Object(R.addCueToTrack)(O,_)})),a}};M.default=k},"./src/utils/discontinuities.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"findFirstFragWithCC",function(){return H}),I.d(M,"shouldAlignOnDiscontinuities",function(){return k}),I.d(M,"findDiscontinuousReferenceFrag",function(){return e}),I.d(M,"adjustSlidingStart",function(){return y}),I.d(M,"alignStream",function(){return p}),I.d(M,"alignPDT",function(){return a}),I.d(M,"alignFragmentByPDTDelta",function(){return r}),I.d(M,"alignMediaPlaylistByPDT",function(){return s});var j=I("./src/polyfills/number.ts"),C=I("./src/utils/logger.ts"),R=I("./src/controller/level-helper.ts");function H(o,i){for(var n=null,t=0,b=o.length;t<b;t++){var g=o[t];if(g&&g.cc===i){n=g;break}}return n}function k(o,i,n){return!!(i.details&&(n.endCC>n.startCC||o&&o.cc<n.startCC))}function e(o,i){var n=o.fragments,t=i.fragments;if(!t.length||!n.length){C.logger.log("No fragments to align");return}var b=H(n,t[0].cc);if(!b||b&&!b.startPTS){C.logger.log("No frag in previous level to align on");return}return b}function O(o,i){if(o){var n=o.start+i;o.start=o.startPTS=n,o.endPTS=n+o.duration}}function y(o,i){for(var n=i.fragments,t=0,b=n.length;t<b;t++)O(n[t],o);i.fragmentHint&&O(i.fragmentHint,o),i.alignedSliding=!0}function p(o,i,n){if(!i)return;c(o,n,i),!n.alignedSliding&&i.details&&a(n,i.details),!n.alignedSliding&&i.details&&!n.skippedSegments&&Object(R.adjustSliding)(i.details,n)}function c(o,i,n){if(k(o,n,i)){var t=e(n.details,i);t&&Object(j.isFiniteNumber)(t.start)&&(C.logger.log("Adjusting PTS using last level due to CC increase within current level "+i.url),y(t.start,i))}}function a(o,i){if(!i.fragments.length||!o.hasProgramDateTime||!i.hasProgramDateTime)return;var n=i.fragments[0].programDateTime,t=o.fragments[0].programDateTime,b=(t-n)/1e3+i.fragments[0].start;b&&Object(j.isFiniteNumber)(b)&&(C.logger.log("Adjusting PTS using programDateTime delta "+(t-n)+"ms, sliding:"+b.toFixed(3)+" "+o.url+" "),y(b,o))}function r(o,i){var n=o.programDateTime;if(!n)return;var t=(n-i)/1e3;o.start=o.startPTS=t,o.endPTS=t+o.duration}function s(o,i){if(!i.fragments.length||!o.hasProgramDateTime||!i.hasProgramDateTime)return;var n=i.fragments[0].programDateTime,t=i.fragments[0].start,b=n-t*1e3;o.fragments.forEach(function(g){r(g,b)}),o.fragmentHint&&r(o.fragmentHint,b),o.alignedSliding=!0}},"./src/utils/ewma-bandwidth-estimator.ts":function(Q,M,I){"use strict";I.r(M);var j=I("./src/utils/ewma.ts"),C=function(){function R(k,e,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 j.default(k),this.fast_=new j.default(e)}var H=R.prototype;return H.update=function(e,O){var y=this.slow_,p=this.fast_;this.slow_.halfLife!==e&&(this.slow_=new j.default(e,y.getEstimate(),y.getTotalWeight())),this.fast_.halfLife!==O&&(this.fast_=new j.default(O,p.getEstimate(),p.getTotalWeight()))},H.sample=function(e,O){e=Math.max(e,this.minDelayMs_);var y=8*O,p=e/1e3,c=y/p;this.fast_.sample(p,c),this.slow_.sample(p,c)},H.canEstimate=function(){var e=this.fast_;return e&&e.getTotalWeight()>=this.minWeight_},H.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},H.destroy=function(){},R}();M.default=C},"./src/utils/ewma.ts":function(Q,M,I){"use strict";I.r(M);var j=function(){function C(H,k,e){k===void 0&&(k=0),e===void 0&&(e=0),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=H,this.alpha_=H?Math.exp(Math.log(.5)/H):0,this.estimate_=k,this.totalWeight_=e}var R=C.prototype;return R.sample=function(k,e){var O=Math.pow(this.alpha_,k);this.estimate_=e*(1-O)+O*this.estimate_,this.totalWeight_+=k},R.getTotalWeight=function(){return this.totalWeight_},R.getEstimate=function(){if(this.alpha_){var k=1-Math.pow(this.alpha_,this.totalWeight_);if(k)return this.estimate_/k}return this.estimate_},C}();M.default=j},"./src/utils/fetch-loader.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"fetchSupported",function(){return r});var j=I("./src/polyfills/number.ts"),C=I("./src/loader/load-stats.ts"),R=I("./src/demux/chunk-cache.ts");function H(t,b){t.prototype=Object.create(b.prototype),t.prototype.constructor=t,p(t,b)}function k(t){var b=typeof Map=="function"?new Map:void 0;return k=function(m){if(m===null||!y(m))return m;if(typeof m!="function")throw new TypeError("Super expression must either be null or a function");if(typeof b!="undefined"){if(b.has(m))return b.get(m);b.set(m,x)}function x(){return e(m,arguments,c(this).constructor)}return x.prototype=Object.create(m.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),p(x,m)},k(t)}function e(t,b,g){return O()?e=Reflect.construct:e=function(x,_,d){var u=[null];u.push.apply(u,_);var l=Function.bind.apply(x,u),h=new l;return d&&p(h,d.prototype),h},e.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(t){return!1}}function y(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function p(t,b){return p=Object.setPrototypeOf||function(m,x){return m.__proto__=x,m},p(t,b)}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(g){return g.__proto__||Object.getPrototypeOf(g)},c(t)}function a(){return a=Object.assign||function(t){for(var b=1;b<arguments.length;b++){var g=arguments[b];for(var m in g)Object.prototype.hasOwnProperty.call(g,m)&&(t[m]=g[m])}return t},a.apply(this,arguments)}function r(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(t){}return!1}var s=function(){function t(g){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=g.fetchSetup||i,this.controller=new self.AbortController,this.stats=new C.LoadStats}var b=t.prototype;return b.destroy=function(){this.loader=this.callbacks=null,this.abortInternal()},b.abortInternal=function(){var m=this.response;(!m||!m.ok)&&(this.stats.aborted=!0,this.controller.abort())},b.abort=function(){var m;this.abortInternal(),(m=this.callbacks)!==null&&m!==void 0&&m.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)},b.load=function(m,x,_){var d=this,u=this.stats;if(u.loading.start)throw new Error("Loader can only be used once.");u.loading.start=self.performance.now();var l=o(m,this.controller.signal),h=_.onProgress,v=m.responseType==="arraybuffer",f=v?"byteLength":"length";this.context=m,this.config=x,this.callbacks=_,this.request=this.fetchSetup(m,l),self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(function(){d.abortInternal(),_.onTimeout(u,m,d.response)},x.timeout),self.fetch(this.request).then(function(T){if(d.response=d.loader=T,!T.ok){var P=T.status,L=T.statusText;throw new n(L||"fetch, bad network response",P,T)}return u.loading.first=Math.max(self.performance.now(),u.loading.start),u.total=parseInt(T.headers.get("Content-Length")||"0"),h&&Object(j.isFiniteNumber)(x.highWaterMark)?d.loadProgressively(T,u,m,x.highWaterMark,h):v?T.arrayBuffer():T.text()}).then(function(T){var P=d.response;self.clearTimeout(d.requestTimeout),u.loading.end=Math.max(self.performance.now(),u.loading.first),u.loaded=u.total=T[f];var L={url:P.url,data:T};h&&!Object(j.isFiniteNumber)(x.highWaterMark)&&h(u,m,T,P),_.onSuccess(L,u,m,P)}).catch(function(T){if(self.clearTimeout(d.requestTimeout),u.aborted)return;var P=T.code||0;_.onError({code:P,text:T.message},m,T.details)})},b.getCacheAge=function(){var m=null;if(this.response){var x=this.response.headers.get("age");m=x?parseFloat(x):null}return m},b.loadProgressively=function(m,x,_,d,u){d===void 0&&(d=0);var l=new R.default,h=m.body.getReader(),v=function f(){return h.read().then(function(T){if(T.done)return l.dataLength&&u(x,_,l.flush(),m),Promise.resolve(new ArrayBuffer(0));var P=T.value,L=P.length;return x.loaded+=L,L<d||l.dataLength?(l.push(P),l.dataLength>=d&&u(x,_,l.flush(),m)):u(x,_,P,m),f()}).catch(function(){return Promise.reject()})};return v()},t}();function o(t,b){var g={method:"GET",mode:"cors",credentials:"same-origin",signal:b,headers:new self.Headers(a({},t.headers))};return t.rangeEnd&&g.headers.set("Range","bytes="+t.rangeStart+"-"+String(t.rangeEnd-1)),g}function i(t,b){return new self.Request(t.url,b)}var n=function(t){H(b,t);function b(g,m,x){var _;return _=t.call(this,g)||this,_.code=void 0,_.details=void 0,_.code=m,_.details=x,_}return b}(k(Error));M.default=s},"./src/utils/imsc1-ttml-parser.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"IMSC1_CODEC",function(){return y}),I.d(M,"parseIMSC1",function(){return r});var j=I("./src/utils/mp4-tools.ts"),C=I("./src/utils/vttparser.ts"),R=I("./src/utils/vttcue.ts"),H=I("./src/demux/id3.ts"),k=I("./src/utils/timescale-conversion.ts"),e=I("./src/utils/webvtt-parser.ts");function O(){return O=Object.assign||function(d){for(var u=1;u<arguments.length;u++){var l=arguments[u];for(var h in l)Object.prototype.hasOwnProperty.call(l,h)&&(d[h]=l[h])}return d},O.apply(this,arguments)}var y="stpp.ttml.im1t",p=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,c=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,a={left:"start",center:"center",right:"end",start:"start",end:"end"};function r(d,u,l,h,v){var f=Object(j.findBox)(new Uint8Array(d),["mdat"]);if(f.length===0){v(new Error("Could not parse IMSC1 mdat"));return}var T=f[0],P=Object(H.utf8ArrayToStr)(new Uint8Array(d,T.start,T.end-T.start)),L=Object(k.toTimescaleFromScale)(u,1,l);try{h(s(P,L))}catch(S){v(S)}}function s(d,u){var l=new DOMParser,h=l.parseFromString(d,"text/xml"),v=h.getElementsByTagName("tt")[0];if(!v)throw new Error("Invalid ttml");var f={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},T=Object.keys(f).reduce(function(W,D){return W[D]=v.getAttribute("ttp:"+D)||f[D],W},{}),P=v.getAttribute("xml:space")!=="preserve",L=i(o(v,"styling","style")),S=i(o(v,"layout","region")),A=o(v,"body","[begin]");return[].map.call(A,function(W){var D=n(W,P);if(!D||!W.hasAttribute("begin"))return null;var K=m(W.getAttribute("begin"),T),Y=m(W.getAttribute("dur"),T),oe=m(W.getAttribute("end"),T);if(K===null)throw g(W);if(oe===null){if(Y===null)throw g(W);oe=K+Y}var le=new R.default(K-u,oe-u,D);le.id=Object(e.generateCueId)(le.startTime,le.endTime,le.text);var Se=S[W.getAttribute("region")],Ee=L[W.getAttribute("style")];le.position=10,le.size=80;var ae=t(Se,Ee),Ce=ae.textAlign;if(Ce){var Le=a[Ce];Le&&(le.lineAlign=Le),le.align=Ce}return O(le,ae),le}).filter(function(W){return W!==null})}function o(d,u,l){var h=d.getElementsByTagName(u)[0];return h?[].slice.call(h.querySelectorAll(l)):[]}function i(d){return d.reduce(function(u,l){var h=l.getAttribute("xml:id");return h&&(u[h]=l),u},{})}function n(d,u){return[].slice.call(d.childNodes).reduce(function(l,h,v){var f;return h.nodeName==="br"&&v?l+`
|
|
`:(f=h.childNodes)!==null&&f!==void 0&&f.length?n(h,u):u?l+h.textContent.trim().replace(/\s+/g," "):l+h.textContent},"")}function t(d,u){var l="http://www.w3.org/ns/ttml#styling",h=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"];return h.reduce(function(v,f){var T=b(u,l,f)||b(d,l,f);return T&&(v[f]=T),v},{})}function b(d,u,l){return d.hasAttributeNS(u,l)?d.getAttributeNS(u,l):null}function g(d){return new Error("Could not parse ttml timestamp "+d)}function m(d,u){if(!d)return null;var l=Object(C.parseTimeStamp)(d);return l===null&&(p.test(d)?l=x(d,u):c.test(d)&&(l=_(d,u))),l}function x(d,u){var l=p.exec(d),h=(l[4]|0)+(l[5]|0)/u.subFrameRate;return(l[1]|0)*3600+(l[2]|0)*60+(l[3]|0)+h/u.frameRate}function _(d,u){var l=c.exec(d),h=Number(l[1]),v=l[2];switch(v){case"h":return h*3600;case"m":return h*60;case"ms":return h*1e3;case"f":return h/u.frameRate;case"t":return h/u.tickRate}return h}},"./src/utils/logger.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"enableLogs",function(){return e}),I.d(M,"logger",function(){return O});var j=function(){},C={trace:j,debug:j,log:j,warn:j,info:j,error:j},R=C;function H(y){var p=self.console[y];return p?p.bind(self.console,"["+y+"] >"):j}function k(y){for(var p=arguments.length,c=new Array(p>1?p-1:0),a=1;a<p;a++)c[a-1]=arguments[a];c.forEach(function(r){R[r]=y[r]?y[r].bind(y):H(r)})}function e(y){if(self.console&&y===!0||typeof y=="object"){k(y,"debug","log","info","warn","error");try{R.log()}catch(p){R=C}}else R=C}var O=R},"./src/utils/mediakeys-helper.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"KeySystems",function(){return j}),I.d(M,"requestMediaKeySystemAccess",function(){return C});var j;(function(R){R.WIDEVINE="com.widevine.alpha",R.PLAYREADY="com.microsoft.playready"})(j||(j={}));var C=function(){return typeof self!="undefined"&&self.navigator&&self.navigator.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null}()},"./src/utils/mediasource-helper.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"getMediaSource",function(){return j});function j(){return self.MediaSource||self.WebKitMediaSource}},"./src/utils/mp4-tools.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"bin2str",function(){return k}),I.d(M,"readUint16",function(){return e}),I.d(M,"readUint32",function(){return O}),I.d(M,"writeUint32",function(){return y}),I.d(M,"findBox",function(){return p}),I.d(M,"parseSegmentIndex",function(){return c}),I.d(M,"parseInitSegment",function(){return a}),I.d(M,"getStartDTS",function(){return r}),I.d(M,"getDuration",function(){return s}),I.d(M,"computeRawDurationFromSamples",function(){return o}),I.d(M,"offsetStartDTS",function(){return i}),I.d(M,"segmentValidRange",function(){return n}),I.d(M,"appendUint8Array",function(){return t});var j=I("./src/utils/typed-array.ts"),C=I("./src/loader/fragment.ts"),R=Math.pow(2,32)-1,H=[].push;function k(b){return String.fromCharCode.apply(null,b)}function e(b,g){"data"in b&&(g+=b.start,b=b.data);var m=b[g]<<8|b[g+1];return m<0?65536+m:m}function O(b,g){"data"in b&&(g+=b.start,b=b.data);var m=b[g]<<24|b[g+1]<<16|b[g+2]<<8|b[g+3];return m<0?4294967296+m:m}function y(b,g,m){"data"in b&&(g+=b.start,b=b.data),b[g]=m>>24,b[g+1]=m>>16&255,b[g+2]=m>>8&255,b[g+3]=m&255}function p(b,g){var m=[];if(!g.length)return m;var x,_,d;"data"in b?(x=b.data,_=b.start,d=b.end):(x=b,_=0,d=x.byteLength);for(var u=_;u<d;){var l=O(x,u),h=k(x.subarray(u+4,u+8)),v=l>1?u+l:d;if(h===g[0])if(g.length===1)m.push({data:x,start:u+8,end:v});else{var f=p({data:x,start:u+8,end:v},g.slice(1));f.length&&H.apply(m,f)}u=v}return m}function c(b){var g=p(b,["moov"]),m=g[0],x=m?m.end:null,_=p(b,["sidx"]);if(!_||!_[0])return null;var d=[],u=_[0],l=u.data[0],h=l===0?8:16,v=O(u,h);h+=4;var f=0,T=0;l===0?h+=8:h+=16,h+=2;var P=u.end+T,L=e(u,h);h+=2;for(var S=0;S<L;S++){var A=h,W=O(u,A);A+=4;var D=W&2147483647,K=(W&2147483648)>>>31;if(K===1)return console.warn("SIDX has hierarchical references (not supported)"),null;var Y=O(u,A);A+=4,d.push({referenceSize:D,subsegmentDuration:Y,info:{duration:Y/v,start:P,end:P+D-1}}),P+=D,A+=4,h=A}return{earliestPresentationTime:f,timescale:v,version:l,referencesCount:L,references:d,moovEndOffset:x}}function a(b){for(var g=[],m=p(b,["moov","trak"]),x=0;x<m.length;x++){var _=m[x],d=p(_,["tkhd"])[0];if(d){var u=d.data[d.start],l=u===0?12:20,h=O(d,l),v=p(_,["mdia","mdhd"])[0];if(v){u=v.data[v.start],l=u===0?12:20;var f=O(v,l),T=p(_,["mdia","hdlr"])[0];if(T){var P=k(T.data.subarray(T.start+8,T.start+12)),L={soun:C.ElementaryStreamTypes.AUDIO,vide:C.ElementaryStreamTypes.VIDEO}[P];if(L){var S=p(_,["mdia","minf","stbl","stsd"])[0],A=void 0;S&&(A=k(S.data.subarray(S.start+12,S.start+16))),g[h]={timescale:f,type:L},g[L]={timescale:f,id:h,codec:A}}}}}}var W=p(b,["moov","mvex","trex"]);return W.forEach(function(D){var K=O(D,4),Y=g[K];Y&&(Y.default={duration:O(D,12),flags:O(D,20)})}),g}function r(b,g){return p(g,["moof","traf"]).reduce(function(m,x){var _=p(x,["tfdt"])[0],d=_.data[_.start],u=p(x,["tfhd"]).reduce(function(l,h){var v=O(h,4),f=b[v];if(f){var T=O(_,4);d===1&&(T*=Math.pow(2,32),T+=O(_,8));var P=f.timescale||9e4,L=T/P;if(isFinite(L)&&(l===null||L<l))return L}return l},null);return u!==null&&isFinite(u)&&(m===null||u<m)?u:m},null)||0}function s(b,g){for(var m=0,x=0,_=0,d=p(b,["moof","traf"]),u=0;u<d.length;u++){var l=d[u],h=p(l,["tfhd"])[0],v=O(h,4),f=g[v];if(!f)continue;var T=f.default,P=O(h,0)|(T==null?void 0:T.flags),L=T==null?void 0:T.duration;P&8&&(P&2?L=O(h,12):L=O(h,8));for(var S=f.timescale||9e4,A=p(l,["trun"]),W=0;W<A.length;W++){if(L){var D=O(A[W],4);m=L*D}else m=o(A[W]);f.type===C.ElementaryStreamTypes.VIDEO?x+=m/S:f.type===C.ElementaryStreamTypes.AUDIO&&(_+=m/S)}}if(x===0&&_===0){var K=c(b);if(K!=null&&K.references)return K.references.reduce(function(Y,oe){return Y+oe.info.duration||0},0)}return x||_}function o(b){var g=O(b,0),m=8;g&1&&(m+=4),g&4&&(m+=4);for(var x=0,_=O(b,4),d=0;d<_;d++){if(g&256){var u=O(b,m);x+=u,m+=4}g&512&&(m+=4),g&1024&&(m+=4),g&2048&&(m+=4)}return x}function i(b,g,m){p(g,["moof","traf"]).forEach(function(x){p(x,["tfhd"]).forEach(function(_){var d=O(_,4),u=b[d];if(!u)return;var l=u.timescale||9e4;p(x,["tfdt"]).forEach(function(h){var v=h.data[h.start],f=O(h,4);if(v===0)y(h,4,f-m*l);else{f*=Math.pow(2,32),f+=O(h,8),f-=m*l,f=Math.max(f,0);var T=Math.floor(f/(R+1)),P=Math.floor(f%(R+1));y(h,4,T),y(h,8,P)}})})})}function n(b){var g={valid:null,remainder:null},m=p(b,["moof"]);if(m){if(m.length<2)return g.remainder=b,g}else return g;var x=m[m.length-1];return g.valid=Object(j.sliceUint8)(b,0,x.start-8),g.remainder=Object(j.sliceUint8)(b,x.start-8),g}function t(b,g){var m=new Uint8Array(b.length+g.length);return m.set(b),m.set(g,b.length),m}},"./src/utils/output-filter.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"default",function(){return j});var j=function(){function C(H,k){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=H,this.trackName=k}var R=C.prototype;return R.dispatchCue=function(){if(this.startTime===null)return;this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null},R.newCue=function(k,e,O){(this.startTime===null||this.startTime>k)&&(this.startTime=k),this.endTime=e,this.screen=O,this.timelineController.createCaptionsTrack(this.trackName)},R.reset=function(){this.cueRanges=[]},C}()},"./src/utils/texttrack-utils.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"sendAddTrackEvent",function(){return C}),I.d(M,"addCueToTrack",function(){return R}),I.d(M,"clearCurrentCues",function(){return H}),I.d(M,"removeCuesInRange",function(){return k}),I.d(M,"getCuesInRange",function(){return O});var j=I("./src/utils/logger.ts");function C(y,p){var c;try{c=new Event("addtrack")}catch(a){c=document.createEvent("Event"),c.initEvent("addtrack",!1,!1)}c.track=y,p.dispatchEvent(c)}function R(y,p){var c=y.mode;if(c==="disabled"&&(y.mode="hidden"),y.cues&&!y.cues.getCueById(p.id))try{if(y.addCue(p),!y.cues.getCueById(p.id))throw new Error("addCue is failed for: "+p)}catch(r){j.logger.debug("[texttrack-utils]: "+r);var a=new self.TextTrackCue(p.startTime,p.endTime,p.text);a.id=p.id,y.addCue(a)}c==="disabled"&&(y.mode=c)}function H(y){var p=y.mode;if(p==="disabled"&&(y.mode="hidden"),y.cues)for(var c=y.cues.length;c--;)y.removeCue(y.cues[c]);p==="disabled"&&(y.mode=p)}function k(y,p,c){var a=y.mode;if(a==="disabled"&&(y.mode="hidden"),y.cues&&y.cues.length>0)for(var r=O(y.cues,p,c),s=0;s<r.length;s++)y.removeCue(r[s]);a==="disabled"&&(y.mode=a)}function e(y,p){if(p<y[0].startTime)return 0;var c=y.length-1;if(p>y[c].endTime)return-1;for(var a=0,r=c;a<=r;){var s=Math.floor((r+a)/2);if(p<y[s].startTime)r=s-1;else if(p>y[s].startTime&&a<c)a=s+1;else return s}return y[a].startTime-p<p-y[r].startTime?a:r}function O(y,p,c){var a=[],r=e(y,p);if(r>-1)for(var s=r,o=y.length;s<o;s++){var i=y[s];if(i.startTime>=p&&i.endTime<=c)a.push(i);else if(i.startTime>c)return a}return a}},"./src/utils/time-ranges.ts":function(Q,M,I){"use strict";I.r(M);var j={toString:function(R){for(var H="",k=R.length,e=0;e<k;e++)H+="["+R.start(e).toFixed(3)+","+R.end(e).toFixed(3)+"]";return H}};M.default=j},"./src/utils/timescale-conversion.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"toTimescaleFromBase",function(){return C}),I.d(M,"toTimescaleFromScale",function(){return R}),I.d(M,"toMsFromMpegTsClock",function(){return H}),I.d(M,"toMpegTsClockFromTimescale",function(){return k});var j=9e4;function C(e,O,y,p){y===void 0&&(y=1),p===void 0&&(p=!1);var c=e*O*y;return p?Math.round(c):c}function R(e,O,y,p){return y===void 0&&(y=1),p===void 0&&(p=!1),C(e,O,1/y,p)}function H(e,O){return O===void 0&&(O=!1),C(e,1e3,1/j,O)}function k(e,O){return O===void 0&&(O=1),C(e,j,1/O)}},"./src/utils/typed-array.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"sliceUint8",function(){return j});function j(C,R,H){return Uint8Array.prototype.slice?C.slice(R,H):new Uint8Array(Array.prototype.slice.call(C,R,H))}},"./src/utils/vttcue.ts":function(Q,M,I){"use strict";I.r(M),M.default=function(){if(typeof self!="undefined"&&self.VTTCue)return self.VTTCue;var j=["","lr","rl"],C=["start","middle","end","left","right"];function R(y,p){if(typeof p!="string")return!1;if(!Array.isArray(y))return!1;var c=p.toLowerCase();return~y.indexOf(c)?c:!1}function H(y){return R(j,y)}function k(y){return R(C,y)}function e(y){for(var p=arguments.length,c=new Array(p>1?p-1:0),a=1;a<p;a++)c[a-1]=arguments[a];for(var r=1;r<arguments.length;r++){var s=arguments[r];for(var o in s)y[o]=s[o]}return y}function O(y,p,c){var a=this,r={enumerable:!0};a.hasBeenReset=!1;var s="",o=!1,i=y,n=p,t=c,b=null,g="",m=!0,x="auto",_="start",d=50,u="middle",l=50,h="middle";Object.defineProperty(a,"id",e({},r,{get:function(){return s},set:function(f){s=""+f}})),Object.defineProperty(a,"pauseOnExit",e({},r,{get:function(){return o},set:function(f){o=!!f}})),Object.defineProperty(a,"startTime",e({},r,{get:function(){return i},set:function(f){if(typeof f!="number")throw new TypeError("Start time must be set to a number.");i=f,this.hasBeenReset=!0}})),Object.defineProperty(a,"endTime",e({},r,{get:function(){return n},set:function(f){if(typeof f!="number")throw new TypeError("End time must be set to a number.");n=f,this.hasBeenReset=!0}})),Object.defineProperty(a,"text",e({},r,{get:function(){return t},set:function(f){t=""+f,this.hasBeenReset=!0}})),Object.defineProperty(a,"region",e({},r,{get:function(){return b},set:function(f){b=f,this.hasBeenReset=!0}})),Object.defineProperty(a,"vertical",e({},r,{get:function(){return g},set:function(f){var T=H(f);if(T===!1)throw new SyntaxError("An invalid or illegal string was specified.");g=T,this.hasBeenReset=!0}})),Object.defineProperty(a,"snapToLines",e({},r,{get:function(){return m},set:function(f){m=!!f,this.hasBeenReset=!0}})),Object.defineProperty(a,"line",e({},r,{get:function(){return x},set:function(f){if(typeof f!="number"&&f!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");x=f,this.hasBeenReset=!0}})),Object.defineProperty(a,"lineAlign",e({},r,{get:function(){return _},set:function(f){var T=k(f);if(!T)throw new SyntaxError("An invalid or illegal string was specified.");_=T,this.hasBeenReset=!0}})),Object.defineProperty(a,"position",e({},r,{get:function(){return d},set:function(f){if(f<0||f>100)throw new Error("Position must be between 0 and 100.");d=f,this.hasBeenReset=!0}})),Object.defineProperty(a,"positionAlign",e({},r,{get:function(){return u},set:function(f){var T=k(f);if(!T)throw new SyntaxError("An invalid or illegal string was specified.");u=T,this.hasBeenReset=!0}})),Object.defineProperty(a,"size",e({},r,{get:function(){return l},set:function(f){if(f<0||f>100)throw new Error("Size must be between 0 and 100.");l=f,this.hasBeenReset=!0}})),Object.defineProperty(a,"align",e({},r,{get:function(){return h},set:function(f){var T=k(f);if(!T)throw new SyntaxError("An invalid or illegal string was specified.");h=T,this.hasBeenReset=!0}})),a.displayState=void 0}return O.prototype.getCueAsHTML=function(){var y=self.WebVTT;return y.convertCueToDOMTree(self,this.text)},O}()},"./src/utils/vttparser.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"parseTimeStamp",function(){return R}),I.d(M,"fixLineBreaks",function(){return p}),I.d(M,"VTTParser",function(){return c});var j=I("./src/utils/vttcue.ts"),C=function(){function a(){}var r=a.prototype;return r.decode=function(o,i){if(!o)return"";if(typeof o!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(o))},a}();function R(a){function r(o,i,n,t){return(o|0)*3600+(i|0)*60+(n|0)+parseFloat(t||0)}var s=a.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return s?parseFloat(s[2])>59?r(s[2],s[3],0,s[4]):r(s[1],s[2],s[3],s[4]):null}var H=function(){function a(){this.values=Object.create(null)}var r=a.prototype;return r.set=function(o,i){!this.get(o)&&i!==""&&(this.values[o]=i)},r.get=function(o,i,n){return n?this.has(o)?this.values[o]:i[n]:this.has(o)?this.values[o]:i},r.has=function(o){return o in this.values},r.alt=function(o,i,n){for(var t=0;t<n.length;++t)if(i===n[t]){this.set(o,i);break}},r.integer=function(o,i){/^-?\d+$/.test(i)&&this.set(o,parseInt(i,10))},r.percent=function(o,i){if(/^([\d]{1,3})(\.[\d]*)?%$/.test(i)){var n=parseFloat(i);if(n>=0&&n<=100)return this.set(o,n),!0}return!1},a}();function k(a,r,s,o){var i=o?a.split(o):[a];for(var n in i){if(typeof i[n]!="string")continue;var t=i[n].split(s);if(t.length!==2)continue;var b=t[0],g=t[1];r(b,g)}}var e=new j.default(0,0,""),O=e.align==="middle"?"middle":"center";function y(a,r,s){var o=a;function i(){var b=R(a);if(b===null)throw new Error("Malformed timestamp: "+o);return a=a.replace(/^[^\sa-zA-Z-]+/,""),b}function n(b,g){var m=new H;k(b,function(d,u){var l;switch(d){case"region":for(var h=s.length-1;h>=0;h--)if(s[h].id===u){m.set(d,s[h].region);break}break;case"vertical":m.alt(d,u,["rl","lr"]);break;case"line":l=u.split(","),m.integer(d,l[0]),m.percent(d,l[0])&&m.set("snapToLines",!1),m.alt(d,l[0],["auto"]),l.length===2&&m.alt("lineAlign",l[1],["start",O,"end"]);break;case"position":l=u.split(","),m.percent(d,l[0]),l.length===2&&m.alt("positionAlign",l[1],["start",O,"end","line-left","line-right","auto"]);break;case"size":m.percent(d,u);break;case"align":m.alt(d,u,["start",O,"end","left","right"]);break}},/:/,/\s/),g.region=m.get("region",null),g.vertical=m.get("vertical","");var x=m.get("line","auto");x==="auto"&&e.line===-1&&(x=-1),g.line=x,g.lineAlign=m.get("lineAlign","start"),g.snapToLines=m.get("snapToLines",!0),g.size=m.get("size",100),g.align=m.get("align",O);var _=m.get("position","auto");_==="auto"&&e.position===50&&(_=g.align==="start"||g.align==="left"?0:g.align==="end"||g.align==="right"?100:50),g.position=_}function t(){a=a.replace(/^\s+/,"")}if(t(),r.startTime=i(),t(),a.substr(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+o);a=a.substr(3),t(),r.endTime=i(),t(),n(a,r)}function p(a){return a.replace(/<br(?: \/)?>/gi,`
|
|
`)}var c=function(){function a(){this.state="INITIAL",this.buffer="",this.decoder=new C,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}var r=a.prototype;return r.parse=function(o){var i=this;o&&(i.buffer+=i.decoder.decode(o,{stream:!0}));function n(){var _=i.buffer,d=0;for(_=p(_);d<_.length&&_[d]!=="\r"&&_[d]!==`
|
|
`;)++d;var u=_.substr(0,d);return _[d]==="\r"&&++d,_[d]===`
|
|
`&&++d,i.buffer=_.substr(d),u}function t(_){k(_,function(d,u){},/:/)}try{var b="";if(i.state==="INITIAL"){if(!/\r\n|\n/.test(i.buffer))return this;b=n();var g=b.match(/^()?WEBVTT([ \t].*)?$/);if(!g||!g[0])throw new Error("Malformed WebVTT signature.");i.state="HEADER"}for(var m=!1;i.buffer;){if(!/\r\n|\n/.test(i.buffer))return this;m?m=!1:b=n();switch(i.state){case"HEADER":/:/.test(b)?t(b):b||(i.state="ID");continue;case"NOTE":b||(i.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(b)){i.state="NOTE";break}if(!b)continue;if(i.cue=new j.default(0,0,""),i.state="CUE",b.indexOf("-->")===-1){i.cue.id=b;continue}case"CUE":if(!i.cue){i.state="BADCUE";continue}try{y(b,i.cue,i.regionList)}catch(_){i.cue=null,i.state="BADCUE";continue}i.state="CUETEXT";continue;case"CUETEXT":{var x=b.indexOf("-->")!==-1;if(!b||x&&(m=!0)){i.oncue&&i.cue&&i.oncue(i.cue),i.cue=null,i.state="ID";continue}if(i.cue===null)continue;i.cue.text&&(i.cue.text+=`
|
|
`),i.cue.text+=b}continue;case"BADCUE":b||(i.state="ID")}}}catch(_){i.state==="CUETEXT"&&i.cue&&i.oncue&&i.oncue(i.cue),i.cue=null,i.state=i.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this},r.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(i){o.onparsingerror&&o.onparsingerror(i)}return o.onflush&&o.onflush(),this},a}()},"./src/utils/webvtt-parser.ts":function(Q,M,I){"use strict";I.r(M),I.d(M,"generateCueId",function(){return c}),I.d(M,"parseWebVTT",function(){return r});var j=I("./src/polyfills/number.ts"),C=I("./src/utils/vttparser.ts"),R=I("./src/demux/id3.ts"),H=I("./src/utils/timescale-conversion.ts"),k=I("./src/remux/mp4-remuxer.ts"),e=/\r\n|\n\r|\n|\r/g,O=function(o,i,n){return n===void 0&&(n=0),o.substr(n,i.length)===i},y=function(o){var i=parseInt(o.substr(-3)),n=parseInt(o.substr(-6,2)),t=parseInt(o.substr(-9,2)),b=o.length>9?parseInt(o.substr(0,o.indexOf(":"))):0;if(!Object(j.isFiniteNumber)(i)||!Object(j.isFiniteNumber)(n)||!Object(j.isFiniteNumber)(t)||!Object(j.isFiniteNumber)(b))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+o);return i+=1e3*n,i+=60*1e3*t,i+=60*60*1e3*b,i},p=function(o){for(var i=5381,n=o.length;n;)i=i*33^o.charCodeAt(--n);return(i>>>0).toString()};function c(s,o,i){return p(s.toString())+p(o.toString())+p(i)}var a=function(o,i,n){var t=o[i],b=o[t.prevCC];if(!b||!b.new&&t.new){o.ccOffset=o.presentationOffset=t.start,t.new=!1;return}for(;(g=b)!==null&&g!==void 0&&g.new;){var g;o.ccOffset+=t.start-b.start,t.new=!1,t=b,b=o[t.prevCC]}o.presentationOffset=n};function r(s,o,i,n,t,b,g,m){var x=new C.VTTParser,_=Object(R.utf8ArrayToStr)(new Uint8Array(s)).trim().replace(e,`
|
|
`).split(`
|
|
`),d=[],u=Object(H.toMpegTsClockFromTimescale)(o,i),l="00:00.000",h=0,v=0,f,T=!0,P=!1;x.oncue=function(L){var S=n[t],A=n.ccOffset,W=(h-u)/9e4;if(S!=null&&S.new&&(v!==void 0?A=n.ccOffset=S.start:a(n,t,W)),W&&(A=W-n.presentationOffset),P){var D=L.endTime-L.startTime,K=Object(k.normalizePts)((L.startTime+A-v)*9e4,b*9e4)/9e4;L.startTime=K,L.endTime=K+D}var Y=L.text.trim();L.text=decodeURIComponent(encodeURIComponent(Y)),L.id||(L.id=c(L.startTime,L.endTime,Y)),L.endTime>0&&d.push(L)},x.onparsingerror=function(L){f=L},x.onflush=function(){if(f){m(f);return}g(d)},_.forEach(function(L){if(T)if(O(L,"X-TIMESTAMP-MAP=")){T=!1,P=!0,L.substr(16).split(",").forEach(function(S){O(S,"LOCAL:")?l=S.substr(6):O(S,"MPEGTS:")&&(h=parseInt(S.substr(7)))});try{v=y(l)/1e3}catch(S){P=!1,f=S}return}else L===""&&(T=!1);x.parse(L+`
|
|
`)}),x.flush()}},"./src/utils/xhr-loader.ts":function(Q,M,I){"use strict";I.r(M);var j=I("./src/utils/logger.ts"),C=I("./src/loader/load-stats.ts"),R=/^age:\s*[\d.]+\s*$/m,H=function(){function k(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 C.LoadStats,this.retryDelay=0}var e=k.prototype;return e.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null},e.abortInternal=function(){var y=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),y&&(y.onreadystatechange=null,y.onprogress=null,y.readyState!==4&&(this.stats.aborted=!0,y.abort()))},e.abort=function(){var y;this.abortInternal(),(y=this.callbacks)!==null&&y!==void 0&&y.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},e.load=function(y,p,c){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=y,this.config=p,this.callbacks=c,this.retryDelay=p.retryDelay,this.loadInternal()},e.loadInternal=function(){var y=this.config,p=this.context;if(!y)return;var c=this.loader=new self.XMLHttpRequest,a=this.stats;a.loading.first=0,a.loaded=0;var r=this.xhrSetup;try{if(r)try{r(c,p.url)}catch(i){c.open("GET",p.url,!0),r(c,p.url)}c.readyState||c.open("GET",p.url,!0);var s=this.context.headers;if(s)for(var o in s)c.setRequestHeader(o,s[o])}catch(i){this.callbacks.onError({code:c.status,text:i.message},p,c);return}p.rangeEnd&&c.setRequestHeader("Range","bytes="+p.rangeStart+"-"+(p.rangeEnd-1)),c.onreadystatechange=this.readystatechange.bind(this),c.onprogress=this.loadprogress.bind(this),c.responseType=p.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),y.timeout),c.send()},e.readystatechange=function(){var y=this.context,p=this.loader,c=this.stats;if(!y||!p)return;var a=p.readyState,r=this.config;if(c.aborted)return;if(a>=2)if(self.clearTimeout(this.requestTimeout),c.loading.first===0&&(c.loading.first=Math.max(self.performance.now(),c.loading.start)),a===4){p.onreadystatechange=null,p.onprogress=null;var s=p.status;if(s>=200&&s<300){c.loading.end=Math.max(self.performance.now(),c.loading.first);var o,i;if(y.responseType==="arraybuffer"?(o=p.response,i=o.byteLength):(o=p.responseText,i=o.length),c.loaded=c.total=i,!this.callbacks)return;var n=this.callbacks.onProgress;if(n&&n(c,y,o,p),!this.callbacks)return;var t={url:p.responseURL,data:o};this.callbacks.onSuccess(t,c,y,p)}else c.retry>=r.maxRetry||s>=400&&s<499?(j.logger.error(s+" while loading "+y.url),this.callbacks.onError({code:s,text:p.statusText},y,p)):(j.logger.warn(s+" while loading "+y.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,r.maxRetryDelay),c.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),r.timeout)},e.loadtimeout=function(){j.logger.warn("timeout while loading "+this.context.url);var y=this.callbacks;y&&(this.abortInternal(),y.onTimeout(this.stats,this.context,this.loader))},e.loadprogress=function(y){var p=this.stats;p.loaded=y.loaded,y.lengthComputable&&(p.total=y.total)},e.getCacheAge=function(){var y=null;if(this.loader&&R.test(this.loader.getAllResponseHeaders())){var p=this.loader.getResponseHeader("age");y=p?parseFloat(p):null}return y},k}();M.default=H}}).default})},vHTk:function(Be,ie,N){Be.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},wCXF:function(Be,ie,N){"use strict";N.d(ie,"a",function(){return st});var Q=N("rePB"),M=N("VTBJ"),I=N("KQm4"),j=N("U8pU"),C=N("ODXe"),R=N("q1tI"),H=N("TSYQ"),k=N.n(H),e=N("Gytx"),O=N.n(e),y=N("Kwbf"),p=N("t23M"),c=N("qx4F"),a=N("6eGT"),r=N("IBYe"),s=N("Ff2n"),o=N("c+Xe"),i=N("fyJ8"),n=N("biw7");function t(ye,Ae,Ne,Fe,Re){var De=Ne[ye]||{},he=Ne[Ae]||{},se,re;De.fixed==="left"?se=Fe.left[ye]:he.fixed==="right"&&(re=Fe.right[Ae]);var G=!1,X=!1,Z=!1,te=!1,ge=Ne[Ae+1],we=Ne[ye-1];if(Re==="rtl"){if(se!==void 0){var Me=we&&we.fixed==="left";te=!Me}else if(re!==void 0){var Ze=ge&&ge.fixed==="right";Z=!Ze}}else if(se!==void 0){var ot=ge&&ge.fixed==="left";G=!ot}else if(re!==void 0){var ze=we&&we.fixed==="right";X=!ze}return{fixLeft:se,fixRight:re,lastFixLeft:G,firstFixRight:X,lastFixRight:Z,firstFixLeft:te,isSticky:Fe.isSticky}}var b=N("sR1s");function g(ye){var Ae=ye.cells,Ne=ye.stickyOffsets,Fe=ye.flattenColumns,Re=ye.rowComponent,De=ye.cellComponent,he=ye.onHeaderRow,se=ye.index,re=R.useContext(n.a),G=re.prefixCls,X=re.direction,Z;he&&(Z=he(Ae.map(function(ge){return ge.column}),se));var te=Object(b.a)(Ae.map(function(ge){return ge.column}));return R.createElement(Re,Object.assign({},Z),Ae.map(function(ge,we){var Me=ge.column,Ze=t(ge.colStart,ge.colEnd,Fe,Ne,X),ot;return Me&&Me.onHeaderCell&&(ot=ge.column.onHeaderCell(Me)),R.createElement(i.a,Object.assign({},ge,{ellipsis:Me.ellipsis,align:Me.align,component:De,prefixCls:G,key:te[we]},Ze,{additionalProps:ot,rowType:"header"}))}))}g.displayName="HeaderRow";var m=g;function x(ye){var Ae=[];function Ne(he,se){var re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Ae[re]=Ae[re]||[];var G=se,X=he.filter(Boolean).map(function(Z){var te={key:Z.key,className:Z.className||"",children:Z.title,column:Z,colStart:G},ge=1,we=Z.children;return we&&we.length>0&&(ge=Ne(we,G,re+1).reduce(function(Me,Ze){return Me+Ze},0),te.hasSubColumns=!0),"colSpan"in Z&&(ge=Z.colSpan),"rowSpan"in Z&&(te.rowSpan=Z.rowSpan),te.colSpan=ge,te.colEnd=te.colStart+ge-1,Ae[re].push(te),G+=ge,ge});return X}Ne(ye,0);for(var Fe=Ae.length,Re=function(se){Ae[se].forEach(function(re){!("rowSpan"in re)&&!re.hasSubColumns&&(re.rowSpan=Fe-se)})},De=0;De<Fe;De+=1)Re(De);return Ae}function _(ye){var Ae=ye.stickyOffsets,Ne=ye.columns,Fe=ye.flattenColumns,Re=ye.onHeaderRow,De=R.useContext(n.a),he=De.prefixCls,se=De.getComponent,re=R.useMemo(function(){return x(Ne)},[Ne]),G=se(["header","wrapper"],"thead"),X=se(["header","row"],"tr"),Z=se(["header","cell"],"th");return R.createElement(G,{className:"".concat(he,"-thead")},re.map(function(te,ge){var we=R.createElement(m,{key:ge,flattenColumns:Fe,cells:te,stickyOffsets:Ae,rowComponent:X,cellComponent:Z,onHeaderRow:Re,index:ge});return we}))}var d=_,u=N("hW8S");function l(ye){for(var Ae=ye.colWidths,Ne=ye.columns,Fe=ye.columCount,Re=[],De=Fe||Ne.length,he=!1,se=De-1;se>=0;se-=1){var re=Ae[se],G=Ne&&Ne[se],X=G&&G[u.a];(re||X||he)&&(Re.unshift(R.createElement("col",Object.assign({key:se,style:{width:re,minWidth:re}},X))),he=!0)}return R.createElement("colgroup",null,Re)}var h=l;function v(ye,Ae){return Object(R.useMemo)(function(){for(var Ne=[],Fe=0;Fe<Ae;Fe+=1){var Re=ye[Fe];if(Re!==void 0)Ne[Fe]=Re;else return null}return Ne},[ye.join("_"),Ae])}var f=R.forwardRef(function(ye,Ae){var Ne=ye.noData,Fe=ye.columns,Re=ye.flattenColumns,De=ye.colWidths,he=ye.columCount,se=ye.stickyOffsets,re=ye.direction,G=ye.fixHeader,X=ye.offsetHeader,Z=ye.stickyClassName,te=ye.onScroll,ge=Object(s.a)(ye,["noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","offsetHeader","stickyClassName","onScroll"]),we=R.useContext(n.a),Me=we.prefixCls,Ze=we.scrollbarSize,ot=we.isSticky,ze=ot&&!G?0:Ze,vt=R.useRef(null),bt=R.useCallback(function(St){Object(o.b)(Ae,St),Object(o.b)(vt,St)},[]);R.useEffect(function(){var St;function Nt(Xe){var Lt=Xe.currentTarget,ut=Xe.deltaX;ut&&(te({currentTarget:Lt,scrollLeft:Lt.scrollLeft+ut}),Xe.preventDefault())}return(St=vt.current)===null||St===void 0||St.addEventListener("wheel",Nt),function(){var Xe;(Xe=vt.current)===null||Xe===void 0||Xe.removeEventListener("wheel",Nt)}},[]);var lt=Re[Re.length-1],Ot={fixed:lt?lt.fixed:null,onHeaderCell:function(){return{className:"".concat(Me,"-cell-scrollbar")}}},Rt=Object(R.useMemo)(function(){return ze?[].concat(Object(I.a)(Fe),[Ot]):Fe},[ze,Fe]),xt=Object(R.useMemo)(function(){return ze?[].concat(Object(I.a)(Re),[Ot]):Re},[ze,Re]),gt=Object(R.useMemo)(function(){var St=se.right,Nt=se.left;return Object(M.a)(Object(M.a)({},se),{},{left:re==="rtl"?[].concat(Object(I.a)(Nt.map(function(Xe){return Xe+ze})),[0]):Nt,right:re==="rtl"?St:[].concat(Object(I.a)(St.map(function(Xe){return Xe+ze})),[0]),isSticky:ot})},[ze,se,ot]),_t=v(De,he);return R.createElement("div",{style:Object(M.a)({overflow:"hidden"},ot?{top:X}:{}),ref:bt,className:k()("".concat(Me,"-header"),Object(Q.a)({},Z,!!Z))},R.createElement("table",{style:{tableLayout:"fixed",visibility:Ne||_t?null:"hidden"}},R.createElement(h,{colWidths:_t?[].concat(Object(I.a)(_t),[ze]):[],columCount:he+1,columns:xt}),R.createElement(d,Object.assign({},ge,{stickyOffsets:gt,columns:Rt,flattenColumns:xt}))))});f.displayName="FixedHeader";var T=f,P=R.createContext(null),L=P;function S(ye){var Ae=ye.prefixCls,Ne=ye.children,Fe=ye.component,Re=ye.cellComponent,De=ye.fixHeader,he=ye.fixColumn,se=ye.horizonScroll,re=ye.className,G=ye.expanded,X=ye.componentWidth,Z=ye.colSpan,te=R.useContext(n.a),ge=te.scrollbarSize;return R.useMemo(function(){var we=Ne;return he&&(we=R.createElement("div",{style:{width:X-(De?ge:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Ae,"-expanded-row-fixed")},we)),R.createElement(Fe,{className:re,style:{display:G?null:"none"}},R.createElement(i.a,{component:Re,prefixCls:Ae,colSpan:Z},we))},[Ne,Fe,De,se,re,G,X,Z,ge])}var A=S;function W(ye){var Ae=ye.className,Ne=ye.style,Fe=ye.record,Re=ye.index,De=ye.rowKey,he=ye.getRowKey,se=ye.rowExpandable,re=ye.expandedKeys,G=ye.onRow,X=ye.indent,Z=X===void 0?0:X,te=ye.rowComponent,ge=ye.cellComponent,we=ye.childrenColumnName,Me=R.useContext(n.a),Ze=Me.prefixCls,ot=Me.fixedInfoList,ze=R.useContext(L),vt=ze.fixHeader,bt=ze.fixColumn,lt=ze.horizonScroll,Ot=ze.componentWidth,Rt=ze.flattenColumns,xt=ze.expandableType,gt=ze.expandRowByClick,_t=ze.onTriggerExpand,St=ze.rowClassName,Nt=ze.expandedRowClassName,Xe=ze.indentSize,Lt=ze.expandIcon,ut=ze.expandedRowRender,pt=ze.expandIconColumnIndex,wt=R.useState(!1),rn=Object(C.a)(wt,2),vn=rn[0],yn=rn[1],Dn=re&&re.has(ye.recordKey);R.useEffect(function(){Dn&&yn(!0)},[Dn]);var Pn=xt==="row"&&(!se||se(Fe)),Yt=xt==="nest",Tn=we&&Fe&&Fe[we],Mn=Pn||Yt,dn;G&&(dn=G(Fe,Re));var An=function(E){if(gt&&Mn&&_t(Fe,E),dn&&dn.onClick){for(var w,U=arguments.length,z=new Array(U>1?U-1:0),F=1;F<U;F++)z[F-1]=arguments[F];(w=dn).onClick.apply(w,[E].concat(z))}},Nn;typeof St=="string"?Nn=St:typeof St=="function"&&(Nn=St(Fe,Re,Z));var Vn=Object(b.a)(Rt),Yn=R.createElement(te,Object.assign({},dn,{"data-row-key":De,className:k()(Ae,"".concat(Ze,"-row"),"".concat(Ze,"-row-level-").concat(Z),Nn,dn&&dn.className),style:Object(M.a)(Object(M.a)({},Ne),dn?dn.style:null),onClick:An}),Rt.map(function(B,E){var w=B.render,U=B.dataIndex,z=B.className,F=Vn[E],me=ot[E],Ke;E===(pt||0)&&Yt&&(Ke=R.createElement(R.Fragment,null,R.createElement("span",{style:{paddingLeft:"".concat(Xe*Z,"px")},className:"".concat(Ze,"-row-indent indent-level-").concat(Z)}),Lt({prefixCls:Ze,expanded:Dn,expandable:Tn,record:Fe,onExpand:_t})));var ct;return B.onCell&&(ct=B.onCell(Fe,Re)),R.createElement(i.a,Object.assign({className:z,ellipsis:B.ellipsis,align:B.align,component:ge,prefixCls:Ze,key:F,record:Fe,index:Re,dataIndex:U,render:w,shouldCellUpdate:B.shouldCellUpdate},me,{appendNode:Ke,additionalProps:ct}))})),kt;if(Pn&&(vn||Dn)){var qn=ut(Fe,Re,Z+1,Dn),fi=Nt&&Nt(Fe,Re,Z);kt=R.createElement(A,{expanded:Dn,className:k()("".concat(Ze,"-expanded-row"),"".concat(Ze,"-expanded-row-level-").concat(Z+1),fi),prefixCls:Ze,fixHeader:vt,fixColumn:bt,horizonScroll:lt,component:te,componentWidth:Ot,cellComponent:ge,colSpan:Rt.length},qn)}var $n;return Tn&&Dn&&($n=(Fe[we]||[]).map(function(B,E){var w=he(B,E);return R.createElement(W,Object.assign({},ye,{key:w,rowKey:w,record:B,recordKey:w,index:E,indent:Z+1}))})),R.createElement(R.Fragment,null,Yn,kt,$n)}W.displayName="BodyRow";var D=W,K=R.createContext(null),Y=K;function oe(ye){var Ae=ye.columnKey,Ne=ye.onColumnResize,Fe=R.useRef();return R.useEffect(function(){Fe.current&&Ne(Ae,Fe.current.offsetWidth)},[]),R.createElement(p.a,{onResize:function(De){var he=De.offsetWidth;Ne(Ae,he)}},R.createElement("td",{ref:Fe,style:{padding:0,border:0,height:0}},R.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function le(ye){var Ae=ye.data,Ne=ye.getRowKey,Fe=ye.measureColumnWidth,Re=ye.expandedKeys,De=ye.onRow,he=ye.rowExpandable,se=ye.emptyNode,re=ye.childrenColumnName,G=R.useContext(Y),X=G.onColumnResize,Z=R.useContext(n.a),te=Z.prefixCls,ge=Z.getComponent,we=R.useContext(L),Me=we.fixHeader,Ze=we.horizonScroll,ot=we.flattenColumns,ze=we.componentWidth;return R.useMemo(function(){var vt=ge(["body","wrapper"],"tbody"),bt=ge(["body","row"],"tr"),lt=ge(["body","cell"],"td"),Ot;Ae.length?Ot=Ae.map(function(xt,gt){var _t=Ne(xt,gt);return R.createElement(D,{key:_t,rowKey:_t,record:xt,recordKey:_t,index:gt,rowComponent:bt,cellComponent:lt,expandedKeys:Re,onRow:De,getRowKey:Ne,rowExpandable:he,childrenColumnName:re})}):Ot=R.createElement(A,{expanded:!0,className:"".concat(te,"-placeholder"),prefixCls:te,fixHeader:Me,fixColumn:Ze,horizonScroll:Ze,component:bt,componentWidth:ze,cellComponent:lt,colSpan:ot.length},se);var Rt=Object(b.a)(ot);return R.createElement(vt,{className:"".concat(te,"-tbody")},Fe&&R.createElement("tr",{"aria-hidden":"true",className:"".concat(te,"-measure-row"),style:{height:0}},Rt.map(function(xt){return R.createElement(oe,{key:xt,columnKey:xt,onColumnResize:X})})),Ot)},[Ae,te,De,Fe,Re,Ne,ge,ze,se,ot])}var Se=R.memo(le);Se.displayName="Body";var Ee=Se,ae=N("wRmb"),Ce=N("xEkU"),Le=N.n(Ce);function de(ye){var Ae=Object(R.useRef)(ye),Ne=Object(R.useState)({}),Fe=Object(C.a)(Ne,2),Re=Fe[1],De=Object(R.useRef)(null),he=Object(R.useRef)([]);function se(re){De.current===null&&(he.current=[],De.current=Le()(function(){he.current.forEach(function(G){Ae.current=G(Ae.current)}),De.current=null,Re({})})),he.current.push(re)}return Object(R.useEffect)(function(){return function(){Le.a.cancel(De.current)}},[]),[Ae.current,se]}function $(ye){var Ae=Object(R.useRef)(ye),Ne=Object(R.useRef)(null);function Fe(){window.clearTimeout(Ne.current)}function Re(he){Ae.current=he,Fe(),Ne.current=window.setTimeout(function(){Ae.current=null,Ne.current=null},100)}function De(){return Ae.current}return Object(R.useEffect)(function(){return Fe},[]),[Re,De]}function He(ye,Ae,Ne){var Fe=Object(R.useMemo)(function(){for(var Re=[],De=[],he=0,se=0,re=0;re<Ae;re+=1)if(Ne==="rtl"){De[re]=se,se+=ye[re]||0;var G=Ae-re-1;Re[G]=he,he+=ye[G]||0}else{Re[re]=he,he+=ye[re]||0;var X=Ae-re-1;De[X]=se,se+=ye[X]||0}return{left:Re,right:De}},[ye,Ae,Ne]);return Fe}var rt=He;function it(ye){var Ae=ye.className,Ne=ye.children;return R.createElement("div",{className:Ae},Ne)}var Je=it,at=N("n6Qo");function ke(ye){var Ae,Ne=ye.prefixCls,Fe=ye.record,Re=ye.onExpand,De=ye.expanded,he=ye.expandable,se="".concat(Ne,"-row-expand-icon");if(!he)return R.createElement("span",{className:k()(se,"".concat(Ne,"-row-spaced"))});var re=function(X){Re(Fe,X),X.stopPropagation()};return R.createElement("span",{className:k()(se,(Ae={},Object(Q.a)(Ae,"".concat(Ne,"-row-expanded"),De),Object(Q.a)(Ae,"".concat(Ne,"-row-collapsed"),!De),Ae)),onClick:re})}function Ge(ye,Ae,Ne){var Fe=[];function Re(De){(De||[]).forEach(function(he,se){Fe.push(Ae(he,se)),Re(he[Ne])})}return Re(ye),Fe}var et=N("zT1h"),ee=N("y0+3"),ve=function(Ae,Ne){var Fe,Re,De=Ae.scrollBodyRef,he=Ae.onScroll,se=Ae.offsetScroll,re=R.useContext(n.a),G=re.prefixCls,X=((Fe=De.current)===null||Fe===void 0?void 0:Fe.scrollWidth)||0,Z=((Re=De.current)===null||Re===void 0?void 0:Re.clientWidth)||0,te=X&&Z*(Z/X),ge=R.useRef(),we=de({scrollLeft:0,isHiddenScrollBar:!1}),Me=Object(C.a)(we,2),Ze=Me[0],ot=Me[1],ze=R.useRef({delta:0,x:0}),vt=R.useState(!1),bt=Object(C.a)(vt,2),lt=bt[0],Ot=bt[1],Rt=function(){Ot(!1)},xt=function(Xe){Xe.persist(),ze.current.delta=Xe.pageX-Ze.scrollLeft,ze.current.x=0,Ot(!0),Xe.preventDefault()},gt=function(Xe){var Lt,ut=Xe||((Lt=window)===null||Lt===void 0?void 0:Lt.event),pt=ut.buttons;if(!lt||pt===0){lt&&Ot(!1);return}var wt=ze.current.x+Xe.pageX-ze.current.x-ze.current.delta;wt<=0&&(wt=0),wt+te>=Z&&(wt=Z-te),he({scrollLeft:wt/Z*(X+2)}),ze.current.x=Xe.pageX},_t=function(){var Xe=Object(ee.b)(De.current).top,Lt=Xe+De.current.offsetHeight,ut=document.documentElement.scrollTop+window.innerHeight;Lt-Object(c.a)()<=ut||Xe>=ut-se?ot(function(pt){return Object(M.a)(Object(M.a)({},pt),{},{isHiddenScrollBar:!0})}):ot(function(pt){return Object(M.a)(Object(M.a)({},pt),{},{isHiddenScrollBar:!1})})},St=function(Xe){ot(function(Lt){return Object(M.a)(Object(M.a)({},Lt),{},{scrollLeft:Xe/X*Z||0})})};return R.useImperativeHandle(Ne,function(){return{setScrollLeft:St}}),R.useEffect(function(){var Nt=Object(et.a)(document.body,"mouseup",Rt,!1),Xe=Object(et.a)(document.body,"mousemove",gt,!1);return _t(),function(){Nt.remove(),Xe.remove()}},[te,lt]),R.useEffect(function(){var Nt=Object(et.a)(window,"scroll",_t,!1),Xe=Object(et.a)(window,"resize",_t,!1);return function(){Nt.remove(),Xe.remove()}},[]),R.useEffect(function(){Ze.isHiddenScrollBar||ot(function(Nt){var Xe,Lt;return Object(M.a)(Object(M.a)({},Nt),{},{scrollLeft:De.current.scrollLeft/((Xe=De.current)===null||Xe===void 0?void 0:Xe.scrollWidth)*((Lt=De.current)===null||Lt===void 0?void 0:Lt.clientWidth)})})},[Ze.isHiddenScrollBar]),X<=Z||!te||Ze.isHiddenScrollBar?null:R.createElement("div",{style:{height:Object(c.a)(),width:Z,bottom:se},className:"".concat(G,"-sticky-scroll")},R.createElement("div",{onMouseDown:xt,ref:ge,className:k()("".concat(G,"-sticky-scroll-bar"),Object(Q.a)({},"".concat(G,"-sticky-scroll-bar-active"),lt)),style:{width:"".concat(te,"px"),transform:"translate3d(".concat(Ze.scrollLeft,"px, 0, 0)")}}))},Te=R.forwardRef(ve);function Oe(ye,Ae){return R.useMemo(function(){var Ne=!!ye;return{isSticky:Ne,stickyClassName:Ne?"".concat(Ae,"-sticky-header"):"",offsetHeader:Object(j.a)(ye)==="object"&&ye.offsetHeader||0,offsetScroll:Object(j.a)(ye)==="object"&&ye.offsetScroll||0}},[ye,Ae])}var Qe=[],tt={},st="rc-table-internal-hook",nt=R.memo(function(ye){var Ae=ye.children;return Ae},function(ye,Ae){return O()(ye.props,Ae.props)?ye.pingLeft!==Ae.pingLeft||ye.pingRight!==Ae.pingRight:!1});function dt(ye){var Ae,Ne=ye.prefixCls,Fe=ye.className,Re=ye.rowClassName,De=ye.style,he=ye.data,se=ye.rowKey,re=ye.scroll,G=ye.tableLayout,X=ye.direction,Z=ye.title,te=ye.footer,ge=ye.summary,we=ye.id,Me=ye.showHeader,Ze=ye.components,ot=ye.emptyText,ze=ye.onRow,vt=ye.onHeaderRow,bt=ye.internalHooks,lt=ye.transformColumns,Ot=ye.internalRefs,Rt=ye.sticky,xt=he||Qe,gt=!!xt.length,_t=R.useState(0),St=Object(C.a)(_t,2),Nt=St[0],Xe=St[1];R.useEffect(function(){Xe(Object(c.a)())});var Lt=R.useMemo(function(){return Object(b.c)(Ze,{})},[Ze]),ut=R.useCallback(function(Kt,Xt){return Object(b.b)(Lt,Kt)||Xt},[Lt]),pt=R.useMemo(function(){return typeof se=="function"?se:function(Kt){var Xt=Kt&&Kt[se];return Xt}},[se]),wt=Object(u.c)(ye),rn=wt.expandIcon,vn=wt.expandedRowKeys,yn=wt.defaultExpandedRowKeys,Dn=wt.defaultExpandAllRows,Pn=wt.expandedRowRender,Yt=wt.onExpand,Tn=wt.onExpandedRowsChange,Mn=wt.expandRowByClick,dn=wt.rowExpandable,An=wt.expandIconColumnIndex,Nn=wt.expandedRowClassName,Vn=wt.childrenColumnName,Yn=wt.indentSize,kt=rn||ke,qn=Vn||"children",fi=R.useMemo(function(){return Pn?"row":ye.expandable&&bt===st&&ye.expandable.__PARENT_RENDER_ICON__||xt.some(function(Kt){return Kt&&Object(j.a)(Kt)==="object"&&Kt[qn]})?"nest":!1},[!!Pn,xt]),$n=R.useState(function(){return yn||(Dn?Ge(xt,pt,qn):[])}),B=Object(C.a)($n,2),E=B[0],w=B[1],U=R.useMemo(function(){return new Set(vn||E||[])},[vn,E]),z=R.useCallback(function(Kt){var Xt=pt(Kt,xt.indexOf(Kt)),pn,Ln=U.has(Xt);Ln?(U.delete(Xt),pn=Object(I.a)(U)):pn=[].concat(Object(I.a)(U),[Xt]),w(pn),Yt&&Yt(!Ln,Kt),Tn&&Tn(pn)},[pt,U,xt,Yt,Tn]),F=R.useState(0),me=Object(C.a)(F,2),Ke=me[0],ct=me[1],yt=Object(ae.b)(Object(M.a)(Object(M.a)(Object(M.a)({},ye),wt),{},{expandable:!!Pn,expandedKeys:U,getRowKey:pt,onTriggerExpand:z,expandIcon:kt,expandIconColumnIndex:An,direction:X}),bt===st?lt:null),Ve=Object(C.a)(yt,2),Ct=Ve[0],Pt=Ve[1],tn=R.useMemo(function(){return{columns:Ct,flattenColumns:Pt}},[Ct,Pt]),kn=R.useRef(),Xn=R.useRef(),Pe=R.useRef(),On=R.useState(!1),oi=Object(C.a)(On,2),Jn=oi[0],pi=oi[1],ei=R.useState(!1),_n=Object(C.a)(ei,2),Kn=_n[0],li=_n[1],mi=de(new Map),xi=Object(C.a)(mi,2),Ni=xi[0],ui=xi[1],Rn=Object(b.a)(Pt),ti=Rn.map(function(Kt){return Ni.get(Kt)}),Ri=R.useMemo(function(){return ti},[ti.join("_")]),gi=rt(Ri,Pt.length,X),an=re&&Object(b.d)(re.y),Bt=re&&Object(b.d)(re.x),hn=Bt&&Pt.some(function(Kt){var Xt=Kt.fixed;return Xt}),Vt=R.useRef(),Sn=Oe(Rt,Ne),nn=Sn.isSticky,vi=Sn.offsetHeader,wn=Sn.offsetScroll,Ti=Sn.stickyClassName,yi,bi,ni;an&&(bi={overflowY:"scroll",maxHeight:re.y}),Bt&&(yi={overflowX:"auto"},an||(bi={overflowY:"hidden"}),ni={width:re.x===!0?"auto":re.x,minWidth:"100%"});var ci=R.useCallback(function(Kt,Xt){ui(function(pn){var Ln=new Map(pn);return Ln.set(Kt,Xt),Ln})},[]),Si=$(null),di=Object(C.a)(Si,2),Ki=di[0],Gi=di[1];function wi(Kt,Xt){if(!Xt)return;typeof Xt=="function"?Xt(Kt):Xt.scrollLeft!==Kt&&(Xt.scrollLeft=Kt)}var hi=function(Xt){var pn=Xt.currentTarget,Ln=Xt.scrollLeft,jn=typeof Ln=="number"?Ln:pn.scrollLeft,Xi=pn||tt;if(!Gi()||Gi()===Xi){var Fi;Ki(Xi),wi(jn,Xn.current),wi(jn,Pe.current),wi(jn,(Fi=Vt.current)===null||Fi===void 0?void 0:Fi.setScrollLeft)}if(pn){var Ji=pn.scrollWidth,Qi=pn.clientWidth;pi(jn>0),li(jn<Ji-Qi)}},Ii=function(){Pe.current&&hi({currentTarget:Pe.current})},zi=function(Xt){var pn=Xt.width;Ii(),ct(kn.current?kn.current.offsetWidth:pn)};R.useEffect(function(){return Ii},[]),R.useEffect(function(){Bt&&Ii()},[Bt]),R.useEffect(function(){bt===st&&Ot&&(Ot.body.current=Pe.current)});var ki=ut(["table"],"table"),_i=R.useMemo(function(){return G||(hn?re.x==="max-content"?"auto":"fixed":an||Pt.some(function(Kt){var Xt=Kt.ellipsis;return Xt})?"fixed":"auto")},[an,hn,Pt,G]),Ci,Ui={colWidths:Ri,columCount:Pt.length,stickyOffsets:gi,onHeaderRow:vt,fixHeader:an},ii=R.useMemo(function(){return gt?null:typeof ot=="function"?ot():ot},[gt,ot]),$i=R.createElement(Ee,{data:xt,measureColumnWidth:an||Bt||nn,expandedKeys:U,rowExpandable:dn,getRowKey:pt,onRow:ze,emptyNode:ii,childrenColumnName:qn}),Bi=R.createElement(h,{colWidths:Pt.map(function(Kt){var Xt=Kt.width;return Xt}),columns:Pt}),er=ge&&R.createElement(at.b,null,ge(xt)),Vi=ut(["body"]);if(an||nn){var ji;typeof Vi=="function"?(ji=Vi(xt,{scrollbarSize:Nt,ref:Pe,onScroll:hi}),Ui.colWidths=Pt.map(function(Kt,Xt){var pn=Kt.width,Ln=Xt===Ct.length-1?pn-Nt:pn;return typeof Ln=="number"&&!Number.isNaN(Ln)?Ln:(Object(y.a)(!1,"When use `components.body` with render props. Each column should have a fixed value."),0)})):ji=R.createElement("div",{style:Object(M.a)(Object(M.a)({},yi),bi),onScroll:hi,ref:Pe,className:k()("".concat(Ne,"-body"))},R.createElement(ki,{style:Object(M.a)(Object(M.a)({},ni),{},{tableLayout:_i})},Bi,$i,er),nn&&R.createElement(Te,{ref:Vt,offsetScroll:wn,scrollBodyRef:Pe,onScroll:hi})),Ci=R.createElement(R.Fragment,null,Me!==!1&&R.createElement(T,Object.assign({noData:!xt.length},Ui,tn,{direction:X,offsetHeader:vi,stickyClassName:Ti,ref:Xn,onScroll:hi})),ji)}else Ci=R.createElement("div",{style:Object(M.a)(Object(M.a)({},yi),bi),className:k()("".concat(Ne,"-content")),onScroll:hi,ref:Pe},R.createElement(ki,{style:Object(M.a)(Object(M.a)({},ni),{},{tableLayout:_i})},Bi,Me!==!1&&R.createElement(d,Object.assign({},Ui,tn)),$i,er));var Gn=Object(u.b)(ye),Ai=R.createElement("div",Object.assign({className:k()(Ne,Fe,(Ae={},Object(Q.a)(Ae,"".concat(Ne,"-rtl"),X==="rtl"),Object(Q.a)(Ae,"".concat(Ne,"-ping-left"),Jn),Object(Q.a)(Ae,"".concat(Ne,"-ping-right"),Kn),Object(Q.a)(Ae,"".concat(Ne,"-layout-fixed"),G==="fixed"),Object(Q.a)(Ae,"".concat(Ne,"-fixed-header"),an),Object(Q.a)(Ae,"".concat(Ne,"-fixed-column"),hn),Object(Q.a)(Ae,"".concat(Ne,"-scroll-horizontal"),Bt),Object(Q.a)(Ae,"".concat(Ne,"-has-fix-left"),Pt[0]&&Pt[0].fixed),Object(Q.a)(Ae,"".concat(Ne,"-has-fix-right"),Pt[Pt.length-1]&&Pt[Pt.length-1].fixed==="right"),Ae)),style:De,id:we,ref:kn},Gn),R.createElement(nt,{pingLeft:Jn,pingRight:Kn,props:Object(M.a)(Object(M.a)({},ye),{},{stickyOffsets:gi,mergedExpandedKeys:U})},Z&&R.createElement(Je,{className:"".concat(Ne,"-title")},Z(xt)),R.createElement("div",{className:"".concat(Ne,"-container")},Ci),te&&R.createElement(Je,{className:"".concat(Ne,"-footer")},te(xt))));Bt&&(Ai=R.createElement(p.a,{onResize:zi},Ai));var Yi=R.useMemo(function(){return{prefixCls:Ne,getComponent:ut,scrollbarSize:Nt,direction:X,fixedInfoList:Pt.map(function(Kt,Xt){return t(Xt,Xt,Pt,gi,X)}),isSticky:nn}},[Ne,ut,Nt,X,Pt,gi,X,nn]),tr=R.useMemo(function(){return Object(M.a)(Object(M.a)({},tn),{},{tableLayout:_i,rowClassName:Re,expandedRowClassName:Nn,componentWidth:Ke,fixHeader:an,fixColumn:hn,horizonScroll:Bt,expandIcon:kt,expandableType:fi,expandRowByClick:Mn,expandedRowRender:Pn,onTriggerExpand:z,expandIconColumnIndex:An,indentSize:Yn})},[tn,_i,Re,Nn,Ke,an,hn,Bt,kt,fi,Mn,Pn,z,An,Yn]),Di=R.useMemo(function(){return{onColumnResize:ci}},[ci]);return R.createElement(n.a.Provider,{value:Yi},R.createElement(L.Provider,{value:tr},R.createElement(Y.Provider,{value:Di},Ai)))}dt.Column=r.a,dt.ColumnGroup=a.a,dt.Summary=at.a,dt.defaultProps={rowKey:"key",prefixCls:"rc-table",emptyText:function(){return"No Data"}};var mt=ie.b=dt},wRmb:function(Be,ie,N){"use strict";N.d(ie,"a",function(){return O});var Q=N("rePB"),M=N("KQm4"),I=N("VTBJ"),j=N("Ff2n"),C=N("q1tI"),R=N.n(C),H=N("Kwbf"),k=N("Zm9Q"),e=N("hW8S");function O(r){return Object(k.a)(r).filter(function(s){return C.isValidElement(s)}).map(function(s){var o=s.key,i=s.props,n=i.children,t=Object(j.a)(i,["children"]),b=Object(I.a)({key:o},t);return n&&(b.children=O(n)),b})}function y(r){return r.reduce(function(s,o){var i=o.fixed,n=i===!0?"left":i,t=o.children;return t&&t.length>0?[].concat(Object(M.a)(s),Object(M.a)(y(t).map(function(b){return Object(I.a)({fixed:n},b)}))):[].concat(Object(M.a)(s),[Object(I.a)(Object(I.a)({},o),{},{fixed:n})])},[])}function p(r){for(var s=!0,o=0;o<r.length;o+=1){var i=r[o];if(s&&i.fixed!=="left")s=!1;else if(!s&&i.fixed==="left"){Object(H.a)(!1,"Index ".concat(o-1," of `columns` missing `fixed='left'` prop."));break}}for(var n=!0,t=r.length-1;t>=0;t-=1){var b=r[t];if(n&&b.fixed!=="right")n=!1;else if(!n&&b.fixed==="right"){Object(H.a)(!1,"Index ".concat(t+1," of `columns` missing `fixed='right'` prop."));break}}}function c(r){return r.map(function(s){var o=s.fixed,i=Object(j.a)(s,["fixed"]),n=o;return o==="left"?n="right":o==="right"&&(n="left"),Object(I.a)({fixed:n},i)})}function a(r,s){var o=r.prefixCls,i=r.columns,n=r.children,t=r.expandable,b=r.expandedKeys,g=r.getRowKey,m=r.onTriggerExpand,x=r.expandIcon,_=r.rowExpandable,d=r.expandIconColumnIndex,u=r.direction,l=r.expandRowByClick,h=C.useMemo(function(){return i||O(n)},[i,n]),v=C.useMemo(function(){if(t){var P,L=d||0,S=h[L],A=(P={},Object(Q.a)(P,e.a,{className:"".concat(o,"-expand-icon-col")}),Object(Q.a)(P,"title",""),Object(Q.a)(P,"fixed",S?S.fixed:null),Object(Q.a)(P,"className","".concat(o,"-row-expand-icon-cell")),Object(Q.a)(P,"render",function(K,Y,oe){var le=g(Y,oe),Se=b.has(le),Ee=_?_(Y):!0,ae=x({prefixCls:o,expanded:Se,expandable:Ee,record:Y,onExpand:m});return l?C.createElement("span",{onClick:function(Le){return Le.stopPropagation()}},ae):ae}),P),W=h.slice();return L>=0&&W.splice(L,0,A),W}return h},[t,h,g,b,x,u]),f=C.useMemo(function(){var P=v;return s&&(P=s(P)),P.length||(P=[{render:function(){return null}}]),P},[s,v,u]),T=C.useMemo(function(){return u==="rtl"?c(y(f)):y(f)},[f,u]);return[f,T]}ie.b=a},wwSX:function(Be,ie,N){Be.exports=N.p+"static/b2.2c844a2a.svg"},xiVL:function(Be,ie){Be.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xgHPFyrs9j78A5l/sxQRXrE2ix5SiLyZj7v+s2BgArBjA+XzpzR7oq8x880ouQK/7JqKnFfiziUT0iV731aj9ZQeYmYez+fJXiOguZl72/ldkkYmYmb+eSkT+lIjOLOcYlm2BBcx8sfoJz+O/BHhkOSe5evqiaaXoTxIx55tExMsxrmUBOJ/njVVUvgvmW5djUqu+D6JHHbgfTSRostdj7TnAuWLlDq/K37pwqXYxCGlaOfRbyZh7Xy9B7hnAzOzmCpUvA/jDC2WvbReogE3/TTLufo6IKu0+38r9PQE4n+f1VVS+B+ZbWhnEBX8P0Q4H7gcTCZqyvRbWARZHQ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bOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC"},xwll:function(Be,ie,N){Be.exports=N.p+"static/statistic-icon.df5f8e49.png"},"y0+3":function(Be,ie,N){"use strict";N.d(ie,"a",function(){return y}),N.d(ie,"b",function(){return c});var Q=/margin|padding|width|height|max|min|offset/,M={left:!0,top:!0},I={cssFloat:1,styleFloat:1,float:1};function j(a){return a.nodeType===1?a.ownerDocument.defaultView.getComputedStyle(a,null):{}}function C(a,r,s){if(r=r.toLowerCase(),s==="auto"){if(r==="height")return a.offsetHeight;if(r==="width")return a.offsetWidth}return r in M||(M[r]=Q.test(r)),M[r]?parseFloat(s)||0:s}function R(a,r){var s=arguments.length,o=j(a);return r=I[r]?"cssFloat"in a.style?"cssFloat":"styleFloat":r,s===1?o:C(a,r,o[r]||a.style[r])}function H(a,r,s){var o=arguments.length;if(r=I[r]?"cssFloat"in a.style?"cssFloat":"styleFloat":r,o===3)return typeof s=="number"&&Q.test(r)&&(s="".concat(s,"px")),a.style[r]=s,s;for(var i in r)r.hasOwnProperty(i)&&H(a,i,r[i]);return j(a)}function k(a){return a===document.body?document.documentElement.clientWidth:a.offsetWidth}function e(a){return a===document.body?window.innerHeight||document.documentElement.clientHeight:a.offsetHeight}function O(){var a=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),r=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:a,height:r}}function y(){var a=document.documentElement.clientWidth,r=window.innerHeight||document.documentElement.clientHeight;return{width:a,height:r}}function p(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function c(a){var r=a.getBoundingClientRect(),s=document.documentElement;return{left:r.left+(window.pageXOffset||s.scrollLeft)-(s.clientLeft||document.body.clientLeft||0),top:r.top+(window.pageYOffset||s.scrollTop)-(s.clientTop||document.body.clientTop||0)}}},y3Jh:function(Be,ie,N){"use strict";N.r(ie);var Q=N("5Dmo"),M=N("3S7+"),I=N("fV52"),j=N("3I+P"),C=N("g9YV"),R=N("wCAj"),H=N("Znn+"),k=N("ZTPi"),e=N("5NDa"),O=N("5rEg"),y=N("OaEy"),p=N("2fM7"),c=N("14J3"),a=N("BMrR"),r=N("jCWc"),s=N("kPKH"),o=N("7Kak"),i=N("9yH6"),n=N("lUTK"),t=N("BvKs"),b=N("2qtc"),g=N("kLXV"),m=N("miYZ"),x=N("tsqr"),_=N("k1fw"),d=N("oBTY"),u=N("+L6B"),l=N("2/Rp"),h=N("qVdP"),v=N("jsC+"),f=N("9og8"),T=N("tJVT"),P=N("WmNS"),L=N.n(P),S=N("q1tI"),A=N.n(S),W=N("Ty5D"),D=N("9kvl"),K=N("9Bee"),Y=N("wd/R"),oe=N.n(Y),le=N("m3rI"),Se=N("ErOA"),Ee=N("5A5F"),ae=N.n(Ee),Ce=N("xKgJ"),Le=N("zqRK"),de=N.n(Le),$=N("+92d"),He=N.n($),rt=N("wwSX"),it=N.n(rt),Je=N("zlzj"),at=N.n(Je),ke=N("pxMS"),Ge=N.n(ke),et=N("xwll"),ee=N.n(et),ve=N("a2OE"),Te=N.n(ve),Oe=N("Nf5h"),Qe=N("LvDl"),tt=N.n(Qe),st=N("1vsH"),nt=N("yDOu"),dt=N.n(nt),mt=N("SVaM"),ye=function(Ne){var Fe,Re,De,he,se,re,G,X,Z,te,ge,we,Me,Ze,ot,ze,vt,bt=Ne.globalSetting,lt=Ne.user,Ot=Ne.dispatch,Rt=Object(W.h)(),xt={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:(Rt==null||((Fe=Rt.query)===null||Fe===void 0)?void 0:Fe.tab)||"public"},gt=Object(S.useState)(0),_t=Object(T.a)(gt,2),St=_t[0],Nt=_t[1],Xe=Object(S.useState)(0),Lt=Object(T.a)(Xe,2),ut=Lt[0],pt=Lt[1],wt=Object(S.useState)(0),rn=Object(T.a)(wt,2),vn=rn[0],yn=rn[1],Dn=Object(S.useState)([]),Pn=Object(T.a)(Dn,2),Yt=Pn[0],Tn=Pn[1],Mn=Object(S.useState)([]),dn=Object(T.a)(Mn,2),An=dn[0],Nn=dn[1],Vn=Object(S.useState)({}),Yn=Object(T.a)(Vn,2),kt=Yn[0],qn=Yn[1],fi=Object(S.useState)(!1),$n=Object(T.a)(fi,2),B=$n[0],E=$n[1],w=Object(S.useState)([]),U=Object(T.a)(w,2),z=U[0],F=U[1],me=Object(S.useState)(!0),Ke=Object(T.a)(me,2),ct=Ke[0],yt=Ke[1],Ve=Object(S.useState)(null),Ct=Object(T.a)(Ve,2),Pt=Ct[0],tn=Ct[1],kn=Object(S.useState)(xt),Xn=Object(T.a)(kn,2),Pe=Xn[0],On=Xn[1],oi=Object(S.useRef)(null),Jn=Object(S.useRef)(null),pi=Object(S.useState)([]),ei=Object(T.a)(pi,2),_n=ei[0],Kn=ei[1],li=Object(S.useMemo)(function(){return["not_reviewed","under_review","review_finished"].includes(Pe.filter)},[Pe.filter]),mi=Object(S.useState)(!1),xi=Object(T.a)(mi,2),Ni=xi[0],ui=xi[1],Rn=Object(S.useState)(!1),ti=Object(T.a)(Rn,2),Ri=ti[0],gi=ti[1],an=Object(S.useState)(""),Bt=Object(T.a)(an,2),hn=Bt[0],Vt=Bt[1],Sn=Object(S.useState)([]),nn=Object(T.a)(Sn,2),vi=nn[0],wn=nn[1],Ti=Object(S.useState)(!1),yi=Object(T.a)(Ti,2),bi=yi[0],ni=yi[1],ci=Object(S.useState)([]),Si=Object(T.a)(ci,2),di=Si[0],Ki=Si[1],Gi=Object(S.useState)(!1),wi=Object(T.a)(Gi,2),hi=wi[0],Ii=wi[1],zi=Object(S.useState)(!1),ki=Object(T.a)(zi,2),_i=ki[0],Ci=ki[1],Ui=lt.userInfo.identity==="teacher",ii=function(){var je=Object(f.a)(L.a.mark(function We(Ye,ft,It){var Tt,un,En,ne,pe;return L.a.wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return Ye.persist(),Ye!=null&&(Tt=Ye.target)!==null&&Tt!==void 0&&(un=Tt.style)!==null&&un!==void 0&&un.pointerEvents&&(Ye.target.style.pointerEvents="none"),ue.next=4,Object(Se.a)("/api/practices/".concat(ft.identifier,"/start"),{method:"get"});case 4:if(pe=ue.sent,!((pe==null?void 0:pe.status)===0)){ue.next=10;break}if(!It){ue.next=9;break}return Object(st.S)("/problems/".concat(pe==null?void 0:pe.identifier,"/oj/").concat(ft==null?void 0:ft.identifier,"?tab=3")),ue.abrupt("return");case 9:Object(st.S)("/problems/".concat(pe==null?void 0:pe.identifier,"/oj/").concat(ft==null?void 0:ft.identifier));case 10:Ye!=null&&(En=Ye.target)!==null&&En!==void 0&&(ne=En.style)!==null&&ne!==void 0&&ne.pointerEvents&&(Ye.target.style.pointerEvents="auto");case 11:case"end":return ue.stop()}},We)}));return function(Ye,ft,It){return je.apply(this,arguments)}}();Object(S.useEffect)(function(){var je=oe()().add(0,"days").unix(),We=localStorage.getItem("problemsclose");if(!We){ni(!0);return}je>parseInt(We)&&ni(!0)},[]);var $i=["\u672A\u53D1\u5E03","\u5DF2\u516C\u5F00","\u672A\u5BA1\u6838","\u5BA1\u6838\u4E2D","\u672A\u516C\u5F00","\u672A\u901A\u8FC7"],Bi=[{title:"\u9898\u76EE\u540D\u79F0",dataIndex:"name",ellipsis:!0,render:function(We,Ye){return A.a.createElement("div",{className:ae.a.titleWarp},(Pe==null?void 0:Pe.filter)==="mine"?A.a.createElement("span",{className:ae.a.tag},$i[Ye.practice_status]):null,A.a.createElement("span",{title:We,className:ae.a.hov,onClick:function(It){return ii(It,Ye)}},We))}},(Pe==null?void 0:Pe.filter)==="public"?{title:"\u9898\u89E3",dataIndex:"solution_count",width:100,sorter:!0,render:function(We,Ye){return A.a.createElement("span",{style:{display:"flex"}},A.a.createElement("span",{onClick:function(It){return ii(It,Ye,!0)},className:"current"},We),(Ye==null?void 0:Ye.has_video_solution)&&A.a.createElement("img",{className:"ml5",src:de.a}))}}:null,(Pe==null?void 0:Pe.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 A.a.createElement(A.a.Fragment,null,We===1&&A.a.createElement("span",{className:ae.a["btn-style-1"]},"\u7B80\u5355"),We===2&&A.a.createElement("span",{className:ae.a["btn-style-2"]},"\u9002\u4E2D"),We===3&&A.a.createElement("span",{className:ae.a["btn-style-3"]},"\u56F0\u96BE"))}},(Pe==null?void 0:Pe.filter)==="public"?{title:"\u4EBA\u6570",dataIndex:"user_count",align:"center",sorter:!0,width:80}:null,(Pe==null?void 0:Pe.filter)==="public"?{title:"\u72B6\u6001",dataIndex:"status",width:90,render:function(We,Ye){return Object(Ce.p)()?A.a.createElement(A.a.Fragment,null,Pt===(Ye==null?void 0:Ye.identifier)?A.a.createElement("span",{className:ae.a.hovBtn,onClick:function(It){return ii(It,Ye)}},"\u5F00\u542F\u5237\u9898"):A.a.createElement(A.a.Fragment,null,We===0&&A.a.createElement("span",{className:ae.a.statusText},"\u672A\u5F00\u542F"),We===1&&A.a.createElement("span",{className:ae.a.statusText},"\u8FDB\u884C\u4E2D"),We===2&&A.a.createElement("span",{className:ae.a.statusText},"\u5DF2\u901A\u8FC7"))):"-"}}:null,(Pe==null?void 0:Pe.filter)!=="public"?{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_disciplines_name",ellipsis:!0,width:200,render:function(We){return A.a.createElement("span",null,We==null?void 0:We.join("\u3001"))}}:null,(Pe==null?void 0:Pe.filter)==="all"?{title:"\u521B\u5EFA\u8005",dataIndex:"creator",ellipsis:!0,width:100}:null,(Pe==null?void 0:Pe.filter)!=="public"?{title:"\u66F4\u65B0\u65F6\u95F4",dataIndex:"updated_at",sorter:!0,width:180}:null,Object(Ce.v)()?{title:"\u64CD\u4F5C",dataIndex:"action",key:"action",align:"right",width:80,render:function(We,Ye){return A.a.createElement(v.a,{className:"ml10",overlay:Fi(Ye==null?void 0:Ye.identifier,Ye)},A.a.createElement("span",{style:{cursor:"default"},onClick:function(It){return It.preventDefault()}},A.a.createElement("span",null,"\u66F4\u591A"),A.a.createElement("i",{style:{display:"inline-block",transform:"scale(0.6)",fontSize:12},className:"c-grey-c iconfont icon-xiajiantou1"})))}}:B&&(Pe==null?void 0:Pe.filter)!=="public"?{title:"\u64CD\u4F5C",dataIndex:"action",key:"action",align:"right",width:80,render:function(We,Ye){return Ye!=null&&Ye.is_self&&(Ye==null?void 0:Ye.practice_status)!==1?A.a.createElement(v.a,{className:"ml10",overlay:Ji(Ye==null?void 0:Ye.identifier,Ye)},A.a.createElement("span",{style:{cursor:"default"},onClick:function(It){return It.preventDefault()}},A.a.createElement("span",null,"\u66F4\u591A"),A.a.createElement("i",{style:{display:"inline-block",transform:"scale(0.6)",fontSize:12},className:"c-grey-c iconfont icon-xiajiantou1"}))):"-"}}:null].filter(function(je){return!!je}),er=[{title:"\u9898\u76EE\u540D\u79F0",dataIndex:"name",ellipsis:!0,render:function(We,Ye){return A.a.createElement("span",{className:ae.a.hov,onClick:function(It){return ii(It,Ye)}},We)}},{title:"\u96BE\u5EA6",dataIndex:"difficulty",sorter:!0,align:"left",width:90,render:function(We){return A.a.createElement(A.a.Fragment,null,We===1&&A.a.createElement("span",{className:ae.a["btn-style-1"]},"\u7B80\u5355"),We===2&&A.a.createElement("span",{className:ae.a["btn-style-2"]},"\u9002\u4E2D"),We===3&&A.a.createElement("span",{className:ae.a["btn-style-3"]},"\u56F0\u96BE"))}},(Pe==null?void 0:Pe.filter)==="not_reviewed"?{title:"\u521B\u5EFA\u8005",dataIndex:"creator",ellipsis:!0,width:100}:{title:"\u5BA1\u6838\u8005",dataIndex:"reviewer",ellipsis:!0,width:100},(Pe==null?void 0:Pe.filter)==="not_reviewed"?{title:"\u53D1\u5E03\u65F6\u95F4",dataIndex:"submit_time",width:180}:null,(Pe==null?void 0:Pe.filter)==="under_review"?{title:"\u5F00\u59CB\u5BA1\u6838\u65F6\u95F4",dataIndex:"start_review_time",width:180}:null,(Pe==null?void 0:Pe.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,Ye){var ft;switch(Pe==null?void 0:Pe.filter){case"under_review":ft=A.a.createElement("div",{style:{display:"flex"}},A.a.createElement(l.a,{type:"link",size:"small",onClick:function(Tt){return ii(Tt,Ye)}},"\u5BA1\u6838"),A.a.createElement(l.a,{type:"link",style:{color:"#666"},size:"small",onClick:function(Tt){return Ai({e:Tt,record:Ye,op:"release"})}},"\u79FB\u51FA"));break;case"review_finished":ft=A.a.createElement(l.a,{type:"link",size:"small",onClick:function(Tt){ui(!0),Vi(Ye)}},"\u5BA1\u6838\u8BB0\u5F55");break;default:ft=A.a.createElement(l.a,{type:"link",block:!0,onClick:function(Tt){return Ai({e:Tt,record:Ye,op:"claim"})}},"\u5F00\u59CB\u5BA1\u6838");break}return ft}}].filter(function(je){return!!je}),Vi=function(){var je=Object(f.a)(L.a.mark(function We(Ye){var ft;return L.a.wrap(function(Tt){for(;;)switch(Tt.prev=Tt.next){case 0:return wn([]),Tt.next=3,Object(Se.a)("/api/practices/".concat(Ye.identifier,"/review_list"),{method:"get"});case 3:ft=Tt.sent,wn(ft==null?void 0:ft.reviews_list);case 5:case"end":return Tt.stop()}},We)}));return function(Ye){return je.apply(this,arguments)}}(),ji=[{title:"\u5BA1\u6838\u65F6\u95F4",dataIndex:"review_time",key:"review_time",render:function(We,Ye){return A.a.createElement("span",null,oe()(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,Ye){return We==="5"||We===5?A.a.createElement("div",{style:{display:"flex",alignItems:"center"}},A.a.createElement("div",{style:{color:"#333333",marginRight:"5px",whiteSpace:"nowrap"}},"\u672A\u901A\u8FC7"),A.a.createElement("div",{style:{color:"#0152d9",whiteSpace:"nowrap",cursor:"pointer"},onClick:function(){Vt(Ye.description),gi(!0)}},"\u67E5\u770B\u539F\u56E0")):A.a.createElement("span",null,"\u5DF2\u901A\u8FC7")}}];Object(S.useEffect)(function(){tr(),Gn(Pe)},[]),Object(S.useEffect)(function(){if(Yt.length!==0){var je;(oi==null||((je=oi.current)===null||je===void 0)?void 0:je.clientHeight)>98&&Nt(1)}},[Yt]),Object(S.useEffect)(function(){if(An.length!==0){var je;(Jn==null||((je=Jn.current)===null||je===void 0)?void 0:je.clientHeight)>98&&pt(1)}},[An]),Object(S.useEffect)(function(){return Ot({type:"globalSetting/onlyShowBackTopToggle",payload:!0}),Ot({type:"globalSetting/setShowQuestionBackTop",payload:!0}),function(){Ot({type:"globalSetting/onlyShowBackTopToggle",payload:!1}),Ot({type:"globalSetting/setShowQuestionBackTop",payload:!1})}},[]),Object(S.useEffect)(function(){var je;(document.title==="\u4EBA\u5DE5\u667A\u80FD\u79D1\u7814\u670D\u52A1\u5E73\u53F0"||document.title==="\u9996\u9875"||document.title==="\u5B9E\u8DF5\u6559\u5B66\u5E73\u53F0"||(je=document.title)!==null&&je!==void 0&&je.includes("img"))&&(document.title="\u5728\u7EBF\u5237\u9898")},[bt]),Object(S.useEffect)(function(){return document.body.setAttribute("data-custom","initial"),function(){document.body.removeAttribute("data-custom")}},[]);var Gn=function(){var je=Object(f.a)(L.a.mark(function We(Ye){var ft,It,Tt,un;return L.a.wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return Ye.search=encodeURIComponent(Ye.search),Tt=tt.a.cloneDeep(Ye),Tt.tag_discipline_id=(ft=Tt.tag_discipline_id)!==null&&ft!==void 0&&ft.includes(-1)?[]:Tt.tag_discipline_id,Tt.source_discipline_id=(It=Tt.source_discipline_id)!==null&&It!==void 0&&It.includes(-1)?[]:Tt.source_discipline_id,console.log(Tt,"sendData"),yt(!0),F([]),ne.next=9,Object(Se.a)("/api/practices.json",{method:"get",params:Tt});case 9:un=ne.sent,Kn([]),yt(!1),yn(un==null?void 0:un.practices_count),F(un==null?void 0:un.practices_list),Ki((un==null?void 0:un.recommend_subjects)||[]);case 15:case"end":return ne.stop()}},We)}));return function(Ye){return je.apply(this,arguments)}}(),Ai=function(){var je=Object(f.a)(L.a.mark(function We(Ye){var ft,It,Tt,un,En,ne;return L.a.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:return ft=Ye.op,It=Ye.description,Tt=Ye.record,un=Ye.e,En={op:ft,description:It},yt(!0),_e.next=5,Object(Se.a)("/api/practices/".concat(Tt.identifier,"/review"),{method:"post",body:En});case 5:ne=_e.sent,yt(!1),ft==="claim"&&(ne.status===0||ne.status==="0")&&ii(un,Tt),Gn(Pe);case 9:case"end":return _e.stop()}},We)}));return function(Ye){return je.apply(this,arguments)}}(),Yi=function(){var je=Object(f.a)(L.a.mark(function We(Ye){var ft;return L.a.wrap(function(Tt){for(;;)switch(Tt.prev=Tt.next){case 0:return yt(!0),Tt.next=3,Object(Se.a)("/api/practices/".concat(Ye.identifier,"/publish"),{method:"post"});case 3:ft=Tt.sent,yt(!1),Gn(Pe);case 6:case"end":return Tt.stop()}},We)}));return function(Ye){return je.apply(this,arguments)}}(),tr=function(){var je=Object(f.a)(L.a.mark(function We(){var Ye,ft,It,Tt,un,En;return L.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.next=2,Object(Se.a)("/api/tag_disciplines.json",{method:"get",params:{target:"practice",position:"index"}});case 2:return ft=pe.sent,pe.next=5,Object(Se.a)("/api/tag_disciplines.json",{method:"get",params:{target:"practice_source",position:"index"}});case 5:return It=pe.sent,pe.next=8,Object(Se.a)("/api/mypractices/rank_list",{method:"get",params:{}});case 8:Tt=pe.sent,ft!=null&&ft.tag_disciplines&&(un=[{id:-1,name:"\u5168\u90E8",count:ft==null?void 0:ft.totalCount}].concat(Object(d.a)(ft==null?void 0:ft.tag_disciplines)),Tn(un)),It!=null&&It.tag_disciplines&&(En=[{id:-1,name:"\u5168\u90E8",count:It==null?void 0:It.totalCount}].concat(Object(d.a)(It==null?void 0:It.tag_disciplines)),Nn(En)),qn(Tt||{}),E(Tt==null||((Ye=Tt.my_record)===null||Ye===void 0)?void 0:Ye.outsource);case 13:case"end":return pe.stop()}},We)}));return function(){return je.apply(this,arguments)}}(),Di=function(We,Ye){var ft;Pe.page=1;var It=Pe["".concat(Ye,"_discipline_id")];(ft=Pe["".concat(Ye,"_discipline_id")])!==null&&ft!==void 0&&ft.includes(We)?It=It.filter(function(Tt){return Tt!==We}):It.push(We),We===-1?It=[-1]:(It=It.filter(function(Tt){return Tt!==-1}),It.length||(It=[-1])),Pe["".concat(Ye,"_discipline_id")]=It,On(Object(_.a)({},Pe)),Gn(Pe)},Kt=function(We,Ye){Pe.page=1,Pe[Ye]=typeof We=="number"?We:null,On(Object(_.a)({},Pe)),Gn(Pe)},Xt=function(We){Pe.page=1,Pe.save_search=We,On(Object(_.a)({},Pe))},pn=function(We,Ye,ft){Pe.page=We==null?void 0:We.current,Pe.per_page=We==null?void 0:We.pageSize,ft!=null&&ft.order?(Pe.sort_by=ft==null?void 0:ft.field,Pe.sort_direction=(ft==null?void 0:ft.order)==="ascend"?"asc":"desc"):(Pe.sort_by=null,Pe.sort_direction=null),On(Object(_.a)({},Pe)),Gn(Pe)},Ln=function(We){Pe.page=1,Pe.filter=We,Pe.status=null,Pe.practice_status=null,On(Object(_.a)({},Pe)),Gn(Pe)},jn=function(We,Ye){if((Ye==null?void 0:Ye.length)===0){x.b.warn("\u8BF7\u9009\u62E9\u8BD5\u9898");return}var ft=function(){var It=Object(f.a)(L.a.mark(function Tt(){var un,En;return L.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.next=2,Object(Se.a)("/api/practices/batch_op.json",{method:"post",body:{identifier:Ye,op:We}});case 2:un=pe.sent,(un==null?void 0:un.status)===0&&(En=z.length===1&&Pe.page!==1?Pe.page-1:Pe.page,Pe.page=En,On(Object(_.a)({},Pe)),Gn(Pe));case 4:case"end":return pe.stop()}},Tt)}));return function(){return It.apply(this,arguments)}}();if(We===-1){g.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:ft});return}ft()},Xi=A.a.createElement(t.a,null,(Pe==null?void 0:Pe.filter)==="public"?A.a.createElement(t.a.Item,{onClick:function(){return jn(0,_n)}},"\u6279\u91CF\u79FB\u51FA\u516C\u5171"):[A.a.createElement(t.a.Item,{key:2,onClick:function(){return jn(1,_n)}},"\u6279\u91CF\u79FB\u5165\u516C\u5171"),A.a.createElement(t.a.Item,{key:1,onClick:function(){return jn(0,_n)}},"\u6279\u91CF\u79FB\u51FA\u516C\u5171")],Object(Ce.v)()&&A.a.createElement(t.a.Item,{onClick:function(){return nr()}},"\u53D1\u9001\u81F3\u8BD5\u9898\u5E93"),(Pe==null?void 0:Pe.filter)!=="public"&&A.a.createElement(t.a.Item,{onClick:function(){return jn(-1,_n)}},"\u6279\u91CF\u5220\u9664")),Fi=function(We,Ye){return A.a.createElement(t.a,null,(Ye==null?void 0:Ye.practice_status)===1?A.a.createElement(t.a.Item,{onClick:function(){return jn(0,[We])}},"\u79FB\u51FA\u516C\u5171"):A.a.createElement(t.a.Item,{onClick:function(){return jn(1,[We])}},"\u79FB\u5165\u516C\u5171"),(Pe==null?void 0:Pe.filter)==="mine"?A.a.createElement(t.a.Item,{onClick:function(){return Yi(Ye)},disabled:![0,4,5].includes(Ye.practice_status)},[0,4,5].includes(Ye.practice_status)?"\u53D1\u5E03\u5BA1\u6838":"\u5DF2\u53D1\u5E03\u5BA1\u6838"):null,A.a.createElement(t.a.Item,{onClick:function(){return Object(st.S)("/problems/".concat(We,"/ojedit"))}},"\u7F16\u8F91"),(Pe==null?void 0:Pe.filter)!=="public"&&A.a.createElement(t.a.Item,{onClick:function(){return jn(-1,[We])}},"\u5220\u9664"))},Ji=function(We,Ye){return A.a.createElement(t.a,null,A.a.createElement(t.a.Item,{onClick:function(){return Yi(Ye)},disabled:![0,4,5].includes(Ye.practice_status)},[0,4,5].includes(Ye.practice_status)?"\u53D1\u5E03\u5BA1\u6838":"\u5DF2\u53D1\u5E03\u5BA1\u6838"),A.a.createElement(t.a.Item,{onClick:function(){return Object(st.S)("/problems/".concat(We,"/ojedit"))}},"\u7F16\u8F91"),A.a.createElement(t.a.Item,{onClick:function(){return jn(-1,[We])}},"\u5220\u9664"))},Qi=function(We){Kn(We)},nr=function(){if(!_n.length){x.b.warn("\u8BF7\u9009\u62E9\u53D1\u9001\u81F3\u8BD5\u9898\u5E93\u7684\u7F16\u7A0B\u5237\u9898");return}var We=null;g.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:A.a.createElement("div",null,A.a.createElement("p",{className:"mt20"},"\u5DF2\u9009",A.a.createElement("span",{className:"c-light-primary"},_n.length),"\u4E2D\u4E2A\u7F16\u7A0B\u5237\u9898\u53D1\u9001\u81F3\u8BD5\u9898\u5E93\u6210\u4E3A\u7F16\u7A0B\u9898"),A.a.createElement("div",null,"\u8BF7\u9009\u62E9\u7F16\u7A0B\u9898\u7684\u8BED\u8A00\uFF1A"),A.a.createElement(i.a.Group,{onChange:function(ft){We=ft.target.value,document.getElementById("send-to-modal").style.display="none"}},A.a.createElement(i.a,{value:"c"},"C"),A.a.createElement(i.a,{value:"c++"},"C++"),A.a.createElement(i.a,{value:"java"},"Java"),A.a.createElement(i.a,{value:"python"},"Python")),A.a.createElement("div",{id:"send-to-modal",style:{color:"#E30000",display:"none"}},"\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00")),onOk:function(){var Ye=Object(f.a)(L.a.mark(function It(){var Tt;return L.a.wrap(function(En){for(;;)switch(En.prev=En.next){case 0:if(We){En.next=3;break}return document.getElementById("send-to-modal").style.display="block",En.abrupt("return",Promise.reject());case 3:return En.next=5,Object(Se.a)("/api/practices/send_to_item_bank.json",{method:"post",body:{identifiers:_n,language:We}});case 5:Tt=En.sent,(Tt==null?void 0:Tt.status)===0&&x.b.success("\u53D1\u9001\u6210\u529F");case 7:case"end":return En.stop()}},It)}));function ft(){return Ye.apply(this,arguments)}return ft}()})},dr={selectedRowKeys:_n,columnWidth:40,onChange:Qi};return A.a.createElement("section",{className:ae.a.wrap},A.a.createElement(Oe.a,{img:Ge.a,title:"\u7F16\u7A0B\u5237\u9898",sunTitle:"\u5FEB\u901F\u63D0\u9AD8\u7F16\u7A0B\u80FD\u529B",bannerExtraContent:A.a.createElement(v.a,{overlay:A.a.createElement(t.a,null,A.a.createElement(t.a.Item,{key:1,onClick:function(){D.d.push("/problems/add")}},"\u65B0\u5EFA\u9898\u76EE"),A.a.createElement(t.a.Item,{key:2,onClick:function(){D.d.push("/problems/batchAdd")}},"\u6279\u91CF\u5BFC\u5165\u9898\u76EE"))},A.a.createElement("div",{className:ae.a.addQuestion,style:{visibility:Object(Ce.v)()||B?"visible":"hidden"}},A.a.createElement("span",null,"\u65B0\u5EFA\u9898\u76EE")))}),A.a.createElement("div",{className:ae.a.content},A.a.createElement("div",{className:ae.a.left},A.a.createElement(a.a,{className:"".concat(ae.a.filterPoint," mb10"),align:"top"},A.a.createElement(s.a,{className:ae.a.filterType},"\u77E5\u8BC6\u70B9"),A.a.createElement(s.a,{className:ae.a.btnWarp,ref:oi,style:St>0?{height:St===1?76:"auto"}:{}},Yt==null?void 0:Yt.map(function(je){var We;return A.a.createElement("div",{onClick:function(){return Di(je.id,"tag")},key:je.id,className:Pe!=null&&(We=Pe.tag_discipline_id)!==null&&We!==void 0&&We.includes(je.id)?"".concat(ae.a.btn," ").concat(ae.a.btnActive):ae.a.btn},A.a.createElement("span",{title:je.name},je.name),A.a.createElement("span",{className:ae.a.count,style:{display:je.count?"block":"none"}},je.count))})),!!St&&A.a.createElement(s.a,{className:ae.a.fold},St===1?A.a.createElement("div",{onClick:function(){return Nt(2)},className:ae.a.action},"\u5C55\u5F00",A.a.createElement("i",{style:{transform:"scale(0.5)"},className:"iconfont icon-zhankai4"})):A.a.createElement("div",{onClick:function(){return Nt(1)},className:ae.a.action},"\u6536\u8D77",A.a.createElement("i",{style:{transform:"scale(0.5)"},className:"iconfont icon-shouqi3"})))),!!An.length&&A.a.createElement(a.a,{className:ae.a.filterPoint,align:"top",style:{marginBottom:22}},A.a.createElement(s.a,{className:ae.a.filterType},"\u6765\u6E90"),A.a.createElement(s.a,{className:ae.a.btnWarp,ref:Jn,style:ut>0?{height:ut===1?76:"auto"}:{}},An==null?void 0:An.map(function(je){var We;return A.a.createElement("div",{onClick:function(){return Di(je.id,"source")},key:je.id,className:Pe!=null&&(We=Pe.source_discipline_id)!==null&&We!==void 0&&We.includes(je.id)?"".concat(ae.a.btn," ").concat(ae.a.btnActive):ae.a.btn},A.a.createElement("span",{title:je.name},je.name),A.a.createElement("span",{className:ae.a.count},je.count))}),!!ut&&A.a.createElement(s.a,{className:ae.a.fold},ut===1?A.a.createElement("div",{onClick:function(){return pt(2)},className:ae.a.action},"\u5C55\u5F00",A.a.createElement("i",{style:{transform:"scale(0.5)"},className:"iconfont icon-zhankai4"})):A.a.createElement("div",{onClick:function(){return pt(1)},className:ae.a.action},"\u6536\u8D77",A.a.createElement("i",{style:{transform:"scale(0.5)"},className:"iconfont icon-shouqi3"}))))),A.a.createElement("div",{className:ae.a.control},A.a.createElement(p.a,{suffixIcon:A.a.createElement("i",{className:"iconfont icon-a-bianzu11"}),allowClear:!0,placeholder:"\u96BE\u5EA6",value:Pe==null?void 0:Pe.difficulty,onChange:function(We){return Kt(We,"difficulty")}},A.a.createElement(p.a.Option,{value:1},"\u7B80\u5355"),A.a.createElement(p.a.Option,{value:2},"\u9002\u4E2D"),A.a.createElement(p.a.Option,{value:3},"\u56F0\u96BE")),Object(Ce.p)()&&Pe.filter==="public"&&A.a.createElement(p.a,{suffixIcon:A.a.createElement("i",{className:"iconfont icon-a-bianzu11"}),allowClear:!0,placeholder:"\u72B6\u6001",value:Pe==null?void 0:Pe.status,onChange:function(We){return Kt(We,"status")}},A.a.createElement(p.a.Option,{value:0},"\u672A\u5F00\u542F"),A.a.createElement(p.a.Option,{value:1},"\u8FDB\u884C\u4E2D"),A.a.createElement(p.a.Option,{value:2},"\u5DF2\u901A\u8FC7")),Object(Ce.p)()&&Pe.filter==="mine"&&A.a.createElement(p.a,{suffixIcon:A.a.createElement("i",{className:"iconfont icon-a-bianzu11"}),allowClear:!0,placeholder:"\u72B6\u6001",value:Pe==null?void 0:Pe.practice_status,onChange:function(We){return Kt(We,"practice_status")}},A.a.createElement(p.a.Option,{value:0},"\u672A\u53D1\u5E03"),A.a.createElement(p.a.Option,{value:1},"\u5DF2\u516C\u5F00"),A.a.createElement(p.a.Option,{value:2},"\u672A\u5BA1\u6838"),A.a.createElement(p.a.Option,{value:3},"\u5BA1\u6838\u4E2D"),A.a.createElement(p.a.Option,{value:4},"\u672A\u516C\u5F00"),A.a.createElement(p.a.Option,{value:5},"\u672A\u901A\u8FC7")),Object(Ce.p)()&&Pe.filter==="all"&&A.a.createElement(p.a,{suffixIcon:A.a.createElement("i",{className:"iconfont icon-a-bianzu11"}),allowClear:!0,placeholder:"\u72B6\u6001",value:Pe==null?void 0:Pe.practice_status,onChange:function(We){return Kt(We,"practice_status")}},A.a.createElement(p.a.Option,{value:0},"\u672A\u53D1\u5E03"),A.a.createElement(p.a.Option,{value:1},"\u5DF2\u516C\u5F00"),A.a.createElement(p.a.Option,{value:2},"\u672A\u5BA1\u6838"),A.a.createElement(p.a.Option,{value:3},"\u5BA1\u6838\u4E2D"),A.a.createElement(p.a.Option,{value:4},"\u672A\u516C\u5F00"),A.a.createElement(p.a.Option,{value:5},"\u672A\u901A\u8FC7")),A.a.createElement(O.a.Search,{className:ae.a.search,size:"large",suffix:A.a.createElement("i",{className:"iconfont icon-sousuo9 font14 ".concat(ae.a.searchIcon),onClick:function(){Pe.page=1,Pe.search=Pe.save_search,On(Object(_.a)({},Pe)),Pe.save_search&&Object(mt.a)({name:Pe.save_search,copywriting:Pe.save_search,position:"Practice"}),Gn(Pe)}}),placeholder:Object(Ce.v)()?"\u8BF7\u8F93\u5165\u9898\u76EE\u540D\u79F0\u3001\u521B\u5EFA\u8005\u641C\u7D22":"\u8BF7\u8F93\u5165\u9898\u76EE\u540D\u79F0\u641C\u7D22",value:Pe==null?void 0:Pe.save_search,onChange:function(We){return Xt(We.target.value)},onSearch:function(We){Pe.page=1,Pe.search=Pe.save_search,On(Object(_.a)({},Pe)),We&&Object(mt.a)({name:We,copywriting:We,position:"Practice"}),Gn(Pe)}})),A.a.createElement("div",{className:ae.a.table},A.a.createElement("div",{className:ae.a.tabWarp,style:Object(Ce.v)()||B?{}:{height:10,border:0}},Object(Ce.v)()?A.a.createElement(k.a,{className:ae.a.tab,activeKey:li?"not_reviewed":Pe.filter,onChange:Ln,tabBarExtraContent:!li&&A.a.createElement(v.a,{overlay:Xi},A.a.createElement("span",{className:"ant-dropdown-link font14 current",onClick:function(We){return We.preventDefault()}},"\u6279\u91CF\u64CD\u4F5C"," ",A.a.createElement("i",{style:{display:"inline-block",transform:"scale(0.6)",fontSize:12},className:"iconfont icon-xiajiantou1"})))},A.a.createElement(k.a.TabPane,{tab:"\u516C\u5171",key:"public"}),A.a.createElement(k.a.TabPane,{tab:"\u5168\u90E8",key:"all"}),A.a.createElement(k.a.TabPane,{tab:"\u6211\u521B\u5EFA\u7684",key:"mine"}),A.a.createElement(k.a.TabPane,{tab:"\u5BA1\u6838\u5217\u8868",key:"not_reviewed"})):B?A.a.createElement(k.a,{className:ae.a.tab,activeKey:li?"not_reviewed":Pe.filter,onChange:Ln},A.a.createElement(k.a.TabPane,{tab:"\u516C\u5171",key:"public"}),A.a.createElement(k.a.TabPane,{tab:"\u6211\u521B\u5EFA\u7684",key:"mine"}),A.a.createElement(k.a.TabPane,{tab:"\u5BA1\u6838\u5217\u8868",key:"not_reviewed"})):null),li?A.a.createElement("div",{className:ae.a.tabWarp,style:Object(Ce.v)()||B?{}:{height:10,border:0}},A.a.createElement(k.a,{className:ae.a.tab,activeKey:Pe.filter,onChange:Ln},A.a.createElement(k.a.TabPane,{tab:"\u5F85\u5BA1\u6838",key:"not_reviewed"}),A.a.createElement(k.a.TabPane,{tab:"\u5BA1\u6838\u4E2D",key:"under_review"}),A.a.createElement(k.a.TabPane,{tab:"\u5DF2\u5BA1\u6838",key:"review_finished"}))):null,!(Object(Ce.v)()||B)&&Ui&&A.a.createElement("div",{className:ae.a.tabWarp2,style:{justifyContent:"end"}},hi?A.a.createElement(a.a,{align:"middle"},A.a.createElement(a.a,{onClick:function(){return Ci(!0)},align:"middle",className:"current"},A.a.createElement("i",{className:"iconfont icon-yixuan mr10 c-light-primary font20"}),A.a.createElement("span",null,"\u5DF2\u9009",A.a.createElement("span",{className:"c-light-primary"},_n.length),"\u4E2A")),A.a.createElement(l.a,{className:"mr20 ml40",ghost:!0,onClick:function(){Ii(!1),Kn([])},type:"primary"},"\u53D6\u6D88"),A.a.createElement(l.a,{onClick:nr,ghost:!0,type:"primary"},"\u786E\u8BA4\u53D1\u9001")):A.a.createElement(l.a,{onClick:function(){return Ii(!0)},type:"primary"},A.a.createElement("i",{className:"iconfont icon-fasong mr5"}),"\u53D1\u9001\u81F3\u8BD5\u9898\u5E93")),A.a.createElement(R.a,{rowSelection:Object(Ce.v)()||hi?dr:void 0,className:ae.a.customTable,dataSource:z,bordered:!1,rowKey:function(We){return We.identifier},columns:li?er:Bi,rowClassName:ae.a.row,loading:ct,onRow:function(We){return{onMouseEnter:function(ft){tn(We==null?void 0:We.identifier)},onMouseLeave:function(ft){tn(null)}}},onChange:pn,pagination:{pageSize:Pe.per_page,total:vn,current:Pe.page,showQuickJumper:!0,hideOnSinglePage:!0,showSizeChanger:!1,position:["bottomCenter"],showTotal:function(We){return A.a.createElement("span",{className:"mr10"},"\u5171",A.a.createElement("span",{className:"c-orange"},We),"\u6761\u6570\u636E")}}}))),A.a.createElement("div",{className:ae.a.right},A.a.createElement("div",{className:ae.a.statistics},A.a.createElement("img",{src:ee.a,alt:""}),A.a.createElement("div",{className:ae.a.title},"\u6211\u7684\u5237\u9898\u7EDF\u8BA1"),A.a.createElement(a.a,{justify:"space-between"},A.a.createElement(s.a,{className:ae.a.statisticItem},A.a.createElement("div",{className:ae.a.rate},Object(Ce.p)()?(kt==null||((Re=kt.my_record)===null||Re===void 0)?void 0:Re.passed_ratio)||0:"-"),A.a.createElement("div",{className:ae.a.dataName},"\u901A\u8FC7\u7387(%)")),A.a.createElement(s.a,{className:ae.a.statisticItem},A.a.createElement("div",{className:ae.a.rate},Object(Ce.p)()?(kt==null||((De=kt.my_record)===null||De===void 0)?void 0:De.passed_count)||0:"-"),A.a.createElement("div",{className:ae.a.dataName},"\u5237\u9898\u6570")),A.a.createElement(s.a,{className:ae.a.statisticItem},A.a.createElement("div",{className:ae.a.rate},Object(Ce.p)()?kt==null||((he=kt.my_record)===null||he===void 0||((se=he.time_count)===null||se===void 0))?void 0:se.toFixed(2):"-"),A.a.createElement("div",{className:ae.a.dataName},"\u7D2F\u8BA1\u65F6\u957F(h)")))),!!(kt!=null&&(re=kt.rank_list)!==null&&re!==void 0&&re.length)&&A.a.createElement(A.a.Fragment,null,((G=lt.userInfo)===null||G===void 0?void 0:G.user_id)!=2&&Object(Ce.m)()&&(bt==null||((X=bt.setting)===null||X===void 0)?void 0:X.main_site)&&bi&&(di==null?void 0:di.length)>0&&A.a.createElement("div",{className:ae.a.problemsclose,style:{position:"relative"}},A.a.createElement(j.a,{autoplay:!0,pauseOnDotsHover:!0,style:{width:292,height:170,marginBottom:"10px",overflow:"hidden"}},di==null?void 0:di.map(function(je,We){return A.a.createElement("div",{style:{display:"flex"},key:We},A.a.createElement("a",{href:"/paths/".concat(je.identifier)},A.a.createElement("img",{style:{width:"292px",height:"170px",borderRadius:"4px"},src:le.a.IMG_SERVER+"/"+je.image_url})))})),A.a.createElement("img",{className:ae.a.imgsrc,onClick:function(){localStorage.setItem("problemsclose",oe()().add(1,"days").unix()+""),ni(!1)},src:dt.a})),A.a.createElement("div",{className:ae.a.sort},A.a.createElement("div",{className:ae.a.rankHeader},A.a.createElement("img",{src:Te.a,className:ae.a.rankIcon})),!!(kt!=null&&(Z=kt.my_record)!==null&&Z!==void 0&&Z.rank)&&A.a.createElement("div",{className:"".concat(ae.a.myRecord," ").concat(ae.a.li)},A.a.createElement("span",{className:"".concat(ae.a.recordPrefix," ").concat(ae.a.mine)},"\u6211\u7684"),A.a.createElement("img",{className:ae.a.avatar,src:le.a.IMG_SERVER+"/images/"+(kt==null||((te=kt.my_record)===null||te===void 0)?void 0:te.image_url)}),A.a.createElement("span",{title:kt==null||((ge=kt.my_record)===null||ge===void 0)?void 0:ge.nickname,className:ae.a.nickname},kt==null||((we=kt.my_record)===null||we===void 0)?void 0:we.nickname),A.a.createElement("span",{className:ae.a.myRank},(kt==null||((Me=kt.my_record)===null||Me===void 0)?void 0:Me.rank)>999?"\u7B2C999+\u540D":"\u7B2C".concat(kt==null||((Ze=kt.my_record)===null||Ze===void 0)?void 0:Ze.rank,"\u540D")),A.a.createElement("span",{className:ae.a.questionNumber},kt==null||((ot=kt.my_record)===null||ot===void 0)?void 0:ot.passed_count,"\u9898")),kt==null||((ze=kt.rank_list)===null||ze===void 0)?void 0:ze.map(function(je,We){var Ye=We+1;return We===0&&(Ye=He.a),We===1&&(Ye=it.a),We===2&&(Ye=at.a),A.a.createElement("div",{className:ae.a.li,key:We},typeof Ye=="number"?A.a.createElement("span",{className:ae.a.recordPrefix},Ye):A.a.createElement("span",{className:ae.a.recordPrefix},A.a.createElement("img",{src:Ye})),A.a.createElement("img",{className:ae.a.avatar,src:le.a.IMG_SERVER+"/images/"+(je==null?void 0:je.image_url)}),A.a.createElement("span",{title:je==null?void 0:je.nickname,className:ae.a.nickname},je==null?void 0:je.nickname),A.a.createElement("span",{className:ae.a.questionNumber},je.passed_count,"\u9898"))}))))),A.a.createElement(g.a,{title:"\u5BA1\u6838\u8BB0\u5F55",visible:Ni,onOk:function(){},onCancel:function(){ui(!1)},footer:null,closable:!0},A.a.createElement(R.a,{dataSource:vi,columns:ji})),A.a.createElement(g.a,{title:"\u672A\u901A\u8FC7\u539F\u56E0",visible:Ri,onOk:function(){},onCancel:function(){gi(!1)},footer:null,closable:!0},A.a.createElement(K.a,{value:hn})),A.a.createElement(g.a,{visible:_i,centered:!0,width:1e3,okText:"\u786E\u5B9A\u53D1\u9001",onCancel:function(){return Ci(!1)},cancelText:"\u8FD4\u56DE\u5217\u8868",onOk:Object(f.a)(L.a.mark(function je(){return L.a.wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:Ci(!1),nr();case 2:case"end":return Ye.stop()}},je)})),title:"\u67E5\u770B\u5DF2\u9009"},A.a.createElement("div",{className:"font14 c-light-primary mb10"},"\u5DF2\u9009",_n==null?void 0:_n.length,"\u4E2A"),A.a.createElement("div",{style:{height:400,overflow:"auto"}},z==null||((vt=z.filter(function(je){return _n.includes(je.identifier)}))===null||vt===void 0)?void 0:vt.map(function(je,We){var Ye,ft;return A.a.createElement("div",{key:We,className:ae.a.sendModal},A.a.createElement("div",{className:ae.a.li},A.a.createElement("p",null,je==null?void 0:je.name),A.a.createElement("div",{className:ae.a.bottom},A.a.createElement("span",{className:"c-grey-333"},"\u7F16\u7A0B\u9898"),A.a.createElement("i",{className:ae.a.line}),A.a.createElement("span",{className:"c-grey-333"},je.difficulty===1&&"\u7B80\u5355",je.difficulty===2&&"\u9002\u4E2D",je.difficulty===3&&"\u56F0\u96BE"),A.a.createElement("i",{className:ae.a.line}),A.a.createElement("span",null,"\u521B\u5EFA\u8005\xA0",A.a.createElement(M.a,{title:je==null?void 0:je.creator},A.a.createElement("span",{className:"c-grey-333"},(je==null||((Ye=je.creator)===null||Ye===void 0)?void 0:Ye.length)>6?(je==null||((ft=je.creator)===null||ft===void 0)?void 0:ft.substr(0,3))+"...":je==null?void 0:je.creator))),A.a.createElement("i",{className:ae.a.line}),A.a.createElement("span",{className:ae.a.des},"\u66F4\u65B0\xA0",A.a.createElement("span",{className:"c-grey-333"},je==null?void 0:je.updated_at)))),A.a.createElement("div",{className:ae.a.del,onClick:function(){Kn(_n.filter(function(Tt){return Tt!==je.identifier}))}},"\u5220\u9664"))}))))};ie.default=Object(D.a)(function(Ae){var Ne=Ae.user,Fe=Ae.globalSetting;return{user:Ne,globalSetting:Fe}})(ye)},yDOu:function(Be,ie){Be.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAABZlJREFUaEPtmd1rXNUah5/1tfdkkrSNMdWO+C0pp6mKYhURURRFvPFGiwj+A4p44Y30pngj5+ZcHET/AUGkeuONiKIoIqJVRO0UDdpzPAen2hhTm2Qye68vWdlOmYQ2M/2gYaQDw2K+f8/7/t53r/WOYMhvYsj1cxFgszN4MQN/mwzEGM8om0KIeD7gz+hH1//getEvvDBYU9i/nzXizwXmrAB6hXdFN3dV4mcOV2urtRam0ahEN3dV68zhau2FORuQMwI4nfAkurUDsXC0Er00j1hZXAswMk4cm6xET+wgNo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