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

431 lines
1.8 MiB

var Ai=Math.pow;(window.webpackJsonp=window.webpackJsonp||[]).push([[327,3,5,6,7,8,9,10,11,15,16,140],{"+GGh":function(ge,q){ge.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+ugmeamD1jINn9EbtE4GiWcdm5hGHa7LOMMQ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qcBRuDhyEunEmg22PzCfR/M8DZG0n7Xny1kOuI8N/XGDrxJUCyxjB5bKGdUe6BGZvjswYvrrA3YWza8V+anyzz5HIJuZMX4xGQ7IUOrA57W9I6SnObcn1kB1X21ES7HW/pdnVJe+c7fchqp56Frd/L2CHUV/wxTNED4aLnpjbbgOj67X3rs7YaeFYYfWmoL1KzgnWUKRJhUxh2hqtXJJswi1tn082qcKoC+YrF4kzI5GwhTatPmbCn9Y/mlLxnRdiKs8TAlmB1OKJcl60ycFIVwLxEYbYo7F3csZPtPKc4q3PPzOJLz7jeKa6q5mHQCfvIjCVPzGSUZqy+Bah8nzGg4vAZ9IluHdxs9FE2C2CeGWTdikUYJmR+YiKTL0lg29AyiA7jMsNIcFO9O8j+yNWNDFq2AolAEyxKYUzpFrMwg1gzCmeyWo+5dNmlLYAHX9VCvhfvnbflo9jzYiHUM5H1x+w4wkyRHHuzDWfaoKOWNyFv9LRvvQ23CMD4cFX4XLEE+8lcDIHEHlLKPkDaXUrZDkjaSSlaGJ4jozNkmbJw6r6ElAGPVweIGXmo5fZGWTHbuevMniAjM+jnonbnuMmwpExEwAn6vwrmKhP2hcdXhv1cpKvCLzEtbrP14LLpR/o/JBqhquSiLD0AAAAASUVORK5CYII="},"+QRC":function(ge,q,_){"use strict";var Z=_("E9nw"),U={"text/plain":"Text","text/html":"Url",default:"Text"},L="Copy to clipboard: #{key}, Enter";function N(u){var M=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return u.replace(/#{\s*key\s*}/g,M)}function c(u,M){var g,e,m,r,h,a,l=!1;M||(M={}),g=M.debug||!1;try{m=Z(),r=document.createRange(),h=document.getSelection(),a=document.createElement("span"),a.textContent=u,a.style.all="unset",a.style.position="fixed",a.style.top=0,a.style.clip="rect(0, 0, 0, 0)",a.style.whiteSpace="pre",a.style.webkitUserSelect="text",a.style.MozUserSelect="text",a.style.msUserSelect="text",a.style.userSelect="text",a.addEventListener("copy",function(y){if(y.stopPropagation(),M.format)if(y.preventDefault(),typeof y.clipboardData=="undefined"){g&&console.warn("unable to use e.clipboardData"),g&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var s=U[M.format]||U.default;window.clipboardData.setData(s,u)}else y.clipboardData.clearData(),y.clipboardData.setData(M.format,u);M.onCopy&&(y.preventDefault(),M.onCopy(y.clipboardData))}),document.body.appendChild(a),r.selectNodeContents(a),h.addRange(r);var d=document.execCommand("copy");if(!d)throw new Error("copy command was unsuccessful");l=!0}catch(y){g&&console.error("unable to copy using execCommand: ",y),g&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(M.format||"text",u),M.onCopy&&M.onCopy(window.clipboardData),l=!0}catch(s){g&&console.error("unable to copy using clipboardData: ",s),g&&console.error("falling back to prompt"),e=N("message"in M?M.message:L),window.prompt(e,u)}}finally{h&&(typeof h.removeRange=="function"?h.removeRange(r):h.removeAllRanges()),a&&document.body.removeChild(a),m()}return l}ge.exports=c},"+UV5":function(ge,q,_){ge.exports={flex_box_center:"flex_box_center___HGyeq",flex_space_between:"flex_space_between___1SZxb",flex_box_vertical_center:"flex_box_vertical_center___3p7OJ",flex_box_center_end:"flex_box_center_end___2QknG",flex_box_column:"flex_box_column___2ONbh",home:"home___3OXHi",bg:"bg___1FZqC",public_width:"public_width___2aZmk",banner:"banner___1YW3P",content:"content___1Zo8y",experience:"experience___2HS7n",li:"li___dyKah",btn:"btn___19dK5",demonstrate:"demonstrate___1f-4k",title:"title___106X_",mask:"mask___YjAKB",name:"name___1cXcT",tagWarp:"tagWarp___3GAYo",tag:"tag___sWimL",feature:"feature___1HMP2"}},"+oxA":function(ge,q,_){ge.exports={flex_box_center:"flex_box_center___1SA8P",flex_space_between:"flex_space_between___3iSxN",flex_box_vertical_center:"flex_box_vertical_center___2JAtS",flex_box_center_end:"flex_box_center_end___2w-PB",flex_box_column:"flex_box_column___2s4Ak",head:"head___3iBvF",node:"node____ISDx"}},"+pL4":function(ge,q){ge.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAPxJREFUWEftV8ERgjAQvIst5S/8xB5k7EToxMEexB/hn5ZMnMBEQ4wSRHDU5EfY4Za9ZXMgjFw0SWXnEQg5PxaZuUeTTQWA0W1PMl4eYnWNI+tDIDCrAnS1jYAIo5eeDZRyCYj1FS0I46c9G+wBuk4zkLAzy/Ky6PjIhQFJYl3QpjzIhIHArAo0hsNzp98gF/md7XwwyrjKiHoh1jqsHnqgJSCq/pSbKAn/j0Dzxuay+6bv2T6wPaBwNsbHA89OLF170q8gEPi8Aj4mDEHknPd+Owmtw8gVMu8KIp/hatIgCgS+Q4FXx3JBmD3O905EPooozKw/Ji5SgcBYBS71uLQwGDlS8AAAAABJRU5ErkJggg=="},"+ua5":function(ge,q,_){},"/GNS":function(ge,q,_){ge.exports=_.p+"static/search1.c4136dd4.png"},"/cxE":function(ge,q,_){"use strict";_.d(q,"f",function(){return L}),_.d(q,"g",function(){return N}),_.d(q,"h",function(){return c}),_.d(q,"e",function(){return M}),_.d(q,"b",function(){return g}),_.d(q,"c",function(){return e}),_.d(q,"d",function(){return m}),_.d(q,"a",function(){return r});class Z{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(h){setTimeout(()=>{throw h.stack?new Error(h.message+`
`+h.stack):h},0)}}emit(h){this.listeners.forEach(a=>{a(h)})}onUnexpectedError(h){this.unexpectedErrorHandler(h),this.emit(h)}onUnexpectedExternalError(h){this.unexpectedErrorHandler(h)}}const U=new Z;function L(h){M(h)||U.onUnexpectedError(h);return}function N(h){M(h)||U.onUnexpectedExternalError(h);return}function c(h){if(h instanceof Error){let{name:a,message:l}=h;const d=h.stacktrace||h.stack;return{$isError:!0,name:a,message:l,stack:d}}return h}const u="Canceled";function M(h){return h instanceof Error&&h.name===u&&h.message===u}function g(){const h=new Error(u);return h.name=h.message,h}function e(h){return h?new Error(`Illegal argument: ${h}`):new Error("Illegal argument")}function m(h){return h?new Error(`Illegal state: ${h}`):new Error("Illegal state")}class r extends Error{constructor(h){super("NotSupported");h&&(this.message=h)}}},"06Qe":function(ge,q,_){var Z=_("ItGF"),U="urn:schemas-microsoft-com:vml",L=typeof window=="undefined"?null:window,N=!1,c=L&&L.document;function u(e){return M(e)}var M;if(c&&!Z.canvasSupported)try{!c.namespaces.zrvml&&c.namespaces.add("zrvml",U),M=function(e){return c.createElement("<zrvml:"+e+' class="zrvml">')}}catch(e){M=function(m){return c.createElement("<"+m+' xmlns="'+U+'" class="zrvml">')}}function g(){if(N||!c)return;N=!0;var e=c.styleSheets;e.length<31?c.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):e[0].addRule(".zrvml","behavior:url(#default#VML)")}q.doc=c,q.createNode=u,q.initVML=g},"0r65":function(ge,q){var _=arguments[3],Z=arguments[4],U=arguments[5],L=JSON.stringify;ge.exports=function(N,c){for(var u,M=Object.keys(U),g=0,e=M.length;g<e;g++){var m=M[g],r=U[m].exports;if(r===N||r&&r.default===N){u=m;break}}if(!u){u=Math.floor(Math.pow(16,8)*Math.random()).toString(16);for(var h={},g=0,e=M.length;g<e;g++){var m=M[g];h[m]=m}Z[u]=["function(require,module,exports){"+N+"(self); }",h]}var a=Math.floor(Math.pow(16,8)*Math.random()).toString(16),l={};l[u]=u,Z[a]=["function(require,module,exports){var f = require("+L(u)+");(f.default ? f.default : f)(self);}",l];var d={};y(a);function y(C){d[C]=!0;for(var R in Z[C][1]){var w=Z[C][1][R];d[w]||y(w)}}var s="("+_+")({"+Object.keys(d).map(function(C){return L(C)+":["+Z[C][0]+","+L(Z[C][1])+"]"}).join(",")+"},{},["+L(a)+"])",p=window.URL||window.webkitURL||window.mozURL||window.msURL,n=new Blob([s],{type:"text/javascript"});if(c&&c.bare)return n;var i=p.createObjectURL(n),v=new Worker(i);return v.objectURL=i,v}},"0s+r":function(ge,q,_){var Z=_("bYtY"),U=_("QBsz"),L=_("y23F"),N=_("H6uX"),c=_("YH21"),u=_("C0SR"),M="silent";function g(y,s,p){return{type:y,event:p,target:s.target,topTarget:s.topTarget,cancelBubble:!1,offsetX:p.zrX,offsetY:p.zrY,gestureEvent:p.gestureEvent,pinchX:p.pinchX,pinchY:p.pinchY,pinchScale:p.pinchScale,wheelDelta:p.zrDelta,zrByTouch:p.zrByTouch,which:p.which,stop:e}}function e(){c.stop(this.event)}function m(){}m.prototype.dispose=function(){};var r=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],h=function(y,s,p,n){N.call(this),this.storage=y,this.painter=s,this.painterRoot=n,p=p||new m,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,L.call(this),this.setHandlerProxy(p)};h.prototype={constructor:h,setHandlerProxy:function(y){this.proxy&&this.proxy.dispose(),y&&(Z.each(r,function(s){y.on&&y.on(s,this[s],this)},this),y.handler=this),this.proxy=y},mousemove:function(y){var s=y.zrX,p=y.zrY,n=l(this,s,p),i=this._hovered,v=i.target;v&&!v.__zr&&(i=this.findHover(i.x,i.y),v=i.target);var C=this._hovered=n?{x:s,y:p}:this.findHover(s,p),R=C.target,w=this.proxy;w.setCursor&&w.setCursor(R?R.cursor:"default"),v&&R!==v&&this.dispatchToElement(i,"mouseout",y),this.dispatchToElement(C,"mousemove",y),R&&R!==v&&this.dispatchToElement(C,"mouseover",y)},mouseout:function(y){var s=y.zrEventControl,p=y.zrIsToLocalDOM;s!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",y),s!=="no_globalout"&&(!p&&this.trigger("globalout",{type:"globalout",event:y}))},resize:function(y){this._hovered={}},dispatch:function(y,s){var p=this[y];p&&p.call(this,s)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(y){var s=this.proxy;s.setCursor&&s.setCursor(y)},dispatchToElement:function(y,s,p){y=y||{};var n=y.target;if(n&&n.silent)return;for(var i="on"+s,v=g(s,y,p);n&&!(n[i]&&(v.cancelBubble=n[i].call(n,v)),n.trigger(s,v),n=n.parent,v.cancelBubble););v.cancelBubble||(this.trigger(s,v),this.painter&&this.painter.eachOtherLayer(function(C){typeof C[i]=="function"&&C[i].call(C,v),C.trigger&&C.trigger(s,v)}))},findHover:function(y,s,p){for(var n=this.storage.getDisplayList(),i={x:y,y:s},v=n.length-1;v>=0;v--){var C;if(n[v]!==p&&!n[v].ignore&&(C=a(n[v],y,s))&&(!i.topTarget&&(i.topTarget=n[v]),C!==M)){i.target=n[v];break}}return i},processGesture:function(y,s){this._gestureMgr||(this._gestureMgr=new u);var p=this._gestureMgr;s==="start"&&p.clear();var n=p.recognize(y,this.findHover(y.zrX,y.zrY,null).target,this.proxy.dom);if(s==="end"&&p.clear(),n){var i=n.type;y.gestureEvent=i,this.dispatchToElement({target:n.target},i,n.event)}}},Z.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(y){h.prototype[y]=function(s){var p=s.zrX,n=s.zrY,i=l(this,p,n),v,C;if((y!=="mouseup"||!i)&&(v=this.findHover(p,n),C=v.target),y==="mousedown")this._downEl=C,this._downPoint=[s.zrX,s.zrY],this._upEl=C;else if(y==="mouseup")this._upEl=C;else if(y==="click"){if(this._downEl!==this._upEl||!this._downPoint||U.dist(this._downPoint,[s.zrX,s.zrY])>4)return;this._downPoint=null}this.dispatchToElement(v,y,s)}});function a(y,s,p){if(y[y.rectHover?"rectContain":"contain"](s,p)){for(var n=y,i;n;){if(n.clipPath&&!n.clipPath.contain(s,p))return!1;n.silent&&(i=!0),n=n.parent}return i?M:!0}return!1}function l(y,s,p){var n=y.painter;return s<0||s>n.getWidth()||p<0||p>n.getHeight()}Z.mixin(h,N),Z.mixin(h,L);var d=h;ge.exports=d},"1Jh7":function(ge,q,_){var Z=_("y+Vt"),U=_("T6xi"),L=Z.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(N,c){U.buildPath(N,c,!1)}});ge.exports=L},"1MYJ":function(ge,q,_){var Z=_("y+Vt"),U=Z.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var L=this.__dirtyPath,N=this.shape.paths,c=0;c<N.length;c++)L=L||N[c].__dirtyPath;this.__dirtyPath=L,this.__dirty=this.__dirty||L},beforeBrush:function(){this._updatePathDirty();for(var L=this.shape.paths||[],N=this.getGlobalScale(),c=0;c<L.length;c++)L[c].path||L[c].createPathProxy(),L[c].path.setScale(N[0],N[1],L[c].segmentIgnoreThreshold)},buildPath:function(L,N){for(var c=N.paths||[],u=0;u<c.length;u++)c[u].buildPath(L,c[u].shape,!0)},afterBrush:function(){for(var L=this.shape.paths||[],N=0;N<L.length;N++)L[N].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),Z.prototype.getBoundingRect.call(this)}});ge.exports=U},"1RvN":function(ge,q){var _=function(){this.head=null,this.tail=null,this._len=0},Z=_.prototype;Z.insert=function(u){var M=new U(u);return this.insertEntry(M),M},Z.insertEntry=function(u){this.head?(this.tail.next=u,u.prev=this.tail,u.next=null,this.tail=u):this.head=this.tail=u,this._len++},Z.remove=function(u){var M=u.prev,g=u.next;M?M.next=g:this.head=g,g?g.prev=M:this.tail=M,u.next=u.prev=null,this._len--},Z.len=function(){return this._len},Z.clear=function(){this.head=this.tail=null,this._len=0};var U=function(u){this.value=u,this.next,this.prev},L=function(u){this._list=new _,this._map={},this._maxSize=u||10,this._lastRemovedEntry=null},N=L.prototype;N.put=function(u,M){var g=this._list,e=this._map,m=null;if(e[u]==null){var r=g.len(),h=this._lastRemovedEntry;if(r>=this._maxSize&&r>0){var a=g.head;g.remove(a),delete e[a.key],m=a.value,this._lastRemovedEntry=a}h?h.value=M:h=new U(M),h.key=u,g.insertEntry(h),e[u]=h}return m},N.get=function(u){var M=this._map[u],g=this._list;if(M!=null)return M!==g.tail&&(g.remove(M),g.insertEntry(M)),M.value},N.clear=function(){this._list.clear(),this._map={}};var c=L;ge.exports=c},"1Sn+":function(ge,q,_){},"1XHU":function(ge,q,_){"use strict";var Z=_("2qtc"),U=_("kLXV"),L=_("q1tI"),N=_.n(L),c=_("9kvl"),u=_("3wET"),M=_.n(u),g=_("bUJZ"),e=_.n(g),m=_("Ct/S"),r=_.n(m),h=function(l){var d=l.visible,y=l.occupationValue,s=l.onCancel,p=s===void 0?function(){}:s,n=function(){return N.a.createElement("div",{className:r.a.flexColumn},N.a.createElement("img",{className:r.a.img,src:e.a}),N.a.createElement("span",{className:r.a.content},"\u672A\u804C\u4E1A\u8BA4\u8BC1"))},i=function(){return N.a.createElement("div",{className:r.a.flexColumn},N.a.createElement("img",{className:r.a.img,src:M.a}),N.a.createElement("span",{className:r.a.content},"\u672A\u5B9E\u540D\u8BA4\u8BC1"))},v=function(){return y===3?N.a.createElement(N.a.Fragment,null,i(),n()):y===2?n():i()};return N.a.createElement(U.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:d,title:"\u56E0\u4E3A\u4EE5\u4E0B\u539F\u56E0\uFF0C\u60A8\u6682\u65F6\u4E0D\u80FD\u8FDB\u884C\u64CD\u4F5C",okText:"\u7ACB\u5373\u8BA4\u8BC1",cancelText:"\u53D6\u6D88",width:"600px",onOk:function(){p(),c.d.push("/account/certification")},onCancel:function(){p()}},N.a.createElement("div",{className:r.a.tilte},"\u8BF7\u5728\u5B8C\u6210\u6761\u4EF6\u540E\u91CD\u8BD5"),N.a.createElement("div",{className:r.a.flexRow},v()))};q.a=Object(c.a)(function(a){var l=a.paperlibrary,d=a.loading,y=a.globalSetting;return{paperlibrary:l,globalSetting:y,loading:d.effects}})(h)},"1bdT":function(ge,q,_){var Z=_("3gBT"),U=_("H6uX"),L=_("DN4a"),N=_("vWvF"),c=_("bYtY"),u=function(g){L.call(this,g),U.call(this,g),N.call(this,g),this.id=g.id||Z()};u.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(g,e){switch(this.draggable){case"horizontal":e=0;break;case"vertical":g=0;break}var m=this.transform;m||(m=this.transform=[1,0,0,1,0,0]),m[4]+=g,m[5]+=e,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(g,e){},attrKV:function(g,e){if(g==="position"||g==="scale"||g==="origin"){if(e){var m=this[g];m||(m=this[g]=[]),m[0]=e[0],m[1]=e[1]}}else this[g]=e},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(g,e){if(typeof g=="string")this.attrKV(g,e);else if(c.isObject(g))for(var m in g)g.hasOwnProperty(m)&&this.attrKV(m,g[m]);return this.dirty(!1),this},setClipPath:function(g){var e=this.__zr;e&&g.addSelfToZr(e),this.clipPath&&this.clipPath!==g&&this.removeClipPath(),this.clipPath=g,g.__zr=e,g.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var g=this.clipPath;g&&(g.__zr&&g.removeSelfFromZr(g.__zr),g.__zr=null,g.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(g){this.__zr=g;var e=this.animators;if(e)for(var m=0;m<e.length;m++)g.animation.addAnimator(e[m]);this.clipPath&&this.clipPath.addSelfToZr(g)},removeSelfFromZr:function(g){this.__zr=null;var e=this.animators;if(e)for(var m=0;m<e.length;m++)g.animation.removeAnimator(e[m]);this.clipPath&&this.clipPath.removeSelfFromZr(g)}},c.mixin(u,N),c.mixin(u,L),c.mixin(u,U);var M=u;ge.exports=M},"1j5w":function(ge,q,_){"use strict";_.d(q,"d",function(){return We}),_.d(q,"b",function(){return Ze}),_.d(q,"c",function(){return it}),_.d(q,"a",function(){return Pt});var Z=_("VTBJ"),U=_("1OyB"),L=_("vuIU"),N=_("JX7q"),c=_("Ji7U"),u=_("LK+K"),M=_("q1tI"),g=_("I8Z2"),e=_("BGR+"),m=_("wx14"),r=_("rePB"),h=_("4IlW"),a=_("2GS6"),l=_("Gytx"),d=_.n(l),y=_("TSYQ"),s=_.n(y),p=_("U8pU"),n=_("ODXe"),i=/iPhone/i,v=/iPod/i,C=/iPad/i,R=/\bAndroid(?:.+)Mobile\b/i,w=/Android/i,x=/\bAndroid(?:.+)SD4930UR\b/i,A=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,o=/Windows Phone/i,f=/\bWindows(?:.+)ARM\b/i,E=/BlackBerry/i,O=/BB10/i,S=/Opera Mini/i,b=/\b(CriOS|Chrome)(?:.+)Mobile/i,D=/Mobile(?:.+)Firefox\b/i;function P(Rt,rt){return Rt.test(rt)}function I(Rt){var rt=Rt||(typeof navigator!="undefined"?navigator.userAgent:""),st=rt.split("[FBAN");if(typeof st[1]!="undefined"){var qe=st,Ce=Object(n.a)(qe,1);rt=Ce[0]}if(st=rt.split("Twitter"),typeof st[1]!="undefined"){var Be=st,dt=Object(n.a)(Be,1);rt=dt[0]}var ut={apple:{phone:P(i,rt)&&!P(o,rt),ipod:P(v,rt),tablet:!P(i,rt)&&P(C,rt)&&!P(o,rt),device:(P(i,rt)||P(v,rt)||P(C,rt))&&!P(o,rt)},amazon:{phone:P(x,rt),tablet:!P(x,rt)&&P(A,rt),device:P(x,rt)||P(A,rt)},android:{phone:!P(o,rt)&&P(x,rt)||!P(o,rt)&&P(R,rt),tablet:!P(o,rt)&&!P(x,rt)&&!P(R,rt)&&(P(A,rt)||P(w,rt)),device:!P(o,rt)&&(P(x,rt)||P(A,rt)||P(R,rt)||P(w,rt))||P(/\bokhttp\b/i,rt)},windows:{phone:P(o,rt),tablet:P(f,rt),device:P(o,rt)||P(f,rt)},other:{blackberry:P(E,rt),blackberry10:P(O,rt),opera:P(S,rt),firefox:P(D,rt),chrome:P(b,rt),device:P(E,rt)||P(O,rt)||P(S,rt)||P(D,rt)||P(b,rt)},any:null,phone:null,tablet:null};return ut.any=ut.apple.device||ut.android.device||ut.windows.device||ut.other.device,ut.phone=ut.apple.phone||ut.android.phone||ut.windows.phone,ut.tablet=ut.apple.tablet||ut.android.tablet||ut.windows.tablet,ut}var F=Object(Z.a)(Object(Z.a)({},I()),{},{isMobile:I}),K=F;function j(){}function Y(Rt,rt,st){var qe=rt||"";return Rt.key||"".concat(qe,"item_").concat(st)}function W(Rt){return"".concat(Rt,"-menu-")}function Q(Rt,rt){var st=-1;M.Children.forEach(Rt,function(qe){st+=1,qe&&qe.type&&qe.type.isMenuItemGroup?M.Children.forEach(qe.props.children,function(Ce){st+=1,rt(Ce,st)}):rt(qe,st)})}function ie(Rt,rt,st){if(!Rt||st.find)return;M.Children.forEach(Rt,function(qe){if(qe){var Ce=qe.type;if(!Ce||!(Ce.isSubMenu||Ce.isMenuItem||Ce.isMenuItemGroup))return;rt.indexOf(qe.key)!==-1?st.find=!0:qe.props.children&&ie(qe.props.children,rt,st)}})}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"],pe=function(rt){var st=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,qe=rt&&typeof rt.getBoundingClientRect=="function"&&rt.getBoundingClientRect().width;if(qe){if(st){var Ce=getComputedStyle(rt),Be=Ce.marginLeft,dt=Ce.marginRight;qe+=+Be.replace("px","")+ +dt.replace("px","")}qe=+qe.toFixed(6)}return qe||0},De=function(rt,st,qe){rt&&Object(p.a)(rt.style)==="object"&&(rt.style[st]=qe)},Me=function(){return K.any},Ue=_("KQm4"),Ie=_("Ff2n"),ne=_("i8i4"),B=_("bdgK"),z=_("uciX"),H=_("8XRh"),ee={adjustX:1,adjustY:1},X={topLeft:{points:["bl","tl"],overflow:ee,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ee,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:ee,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:ee,offset:[4,0]}},me={topLeft:{points:["bl","tl"],overflow:ee,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ee,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:ee,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:ee,offset:[4,0]}},je=X,Je=0,oe={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Ae=function(rt,st,qe){var Ce=W(st),Be=rt.getState();rt.setState({defaultActiveFirst:Object(Z.a)(Object(Z.a)({},Be.defaultActiveFirst),{},Object(r.a)({},Ce,qe))})},ye=function(Rt){Object(c.a)(st,Rt);var rt=Object(u.a)(st);function st(qe){var Ce;Object(U.a)(this,st),Ce=rt.call(this,qe),Ce.onDestroy=function(gt){Ce.props.onDestroy(gt)},Ce.onKeyDown=function(gt){var Nt=gt.keyCode,Mt=Ce.menuInstance,nt=Ce.props,xt=nt.isOpen,ue=nt.store;if(Nt===h.a.ENTER)return Ce.onTitleClick(gt),Ae(ue,Ce.props.eventKey,!0),!0;if(Nt===h.a.RIGHT)return xt?Mt.onKeyDown(gt):(Ce.triggerOpenChange(!0),Ae(ue,Ce.props.eventKey,!0)),!0;if(Nt===h.a.LEFT){var ae;if(xt)ae=Mt.onKeyDown(gt);else return;return ae||(Ce.triggerOpenChange(!1),ae=!0),ae}return xt&&(Nt===h.a.UP||Nt===h.a.DOWN)?Mt.onKeyDown(gt):void 0},Ce.onOpenChange=function(gt){Ce.props.onOpenChange(gt)},Ce.onPopupVisibleChange=function(gt){Ce.triggerOpenChange(gt,gt?"mouseenter":"mouseleave")},Ce.onMouseEnter=function(gt){var Nt=Ce.props,Mt=Nt.eventKey,nt=Nt.onMouseEnter,xt=Nt.store;Ae(xt,Ce.props.eventKey,!1),nt({key:Mt,domEvent:gt})},Ce.onMouseLeave=function(gt){var Nt=Ce.props,Mt=Nt.parentMenu,nt=Nt.eventKey,xt=Nt.onMouseLeave;Mt.subMenuInstance=Object(N.a)(Ce),xt({key:nt,domEvent:gt})},Ce.onTitleMouseEnter=function(gt){var Nt=Ce.props,Mt=Nt.eventKey,nt=Nt.onItemHover,xt=Nt.onTitleMouseEnter;nt({key:Mt,hover:!0}),xt({key:Mt,domEvent:gt})},Ce.onTitleMouseLeave=function(gt){var Nt=Ce.props,Mt=Nt.parentMenu,nt=Nt.eventKey,xt=Nt.onItemHover,ue=Nt.onTitleMouseLeave;Mt.subMenuInstance=Object(N.a)(Ce),xt({key:nt,hover:!1}),ue({key:nt,domEvent:gt})},Ce.onTitleClick=function(gt){var Nt=Object(N.a)(Ce),Mt=Nt.props;if(Mt.onTitleClick({key:Mt.eventKey,domEvent:gt}),Mt.triggerSubMenuAction==="hover")return;Ce.triggerOpenChange(!Mt.isOpen,"click"),Ae(Mt.store,Ce.props.eventKey,!1)},Ce.onSubMenuClick=function(gt){typeof Ce.props.onClick=="function"&&Ce.props.onClick(Ce.addKeyPath(gt))},Ce.onSelect=function(gt){Ce.props.onSelect(gt)},Ce.onDeselect=function(gt){Ce.props.onDeselect(gt)},Ce.getPrefixCls=function(){return"".concat(Ce.props.rootPrefixCls,"-submenu")},Ce.getActiveClassName=function(){return"".concat(Ce.getPrefixCls(),"-active")},Ce.getDisabledClassName=function(){return"".concat(Ce.getPrefixCls(),"-disabled")},Ce.getSelectedClassName=function(){return"".concat(Ce.getPrefixCls(),"-selected")},Ce.getOpenClassName=function(){return"".concat(Ce.props.rootPrefixCls,"-submenu-open")},Ce.saveMenuInstance=function(gt){Ce.menuInstance=gt},Ce.addKeyPath=function(gt){return Object(Z.a)(Object(Z.a)({},gt),{},{keyPath:(gt.keyPath||[]).concat(Ce.props.eventKey)})},Ce.triggerOpenChange=function(gt,Nt){var Mt=Ce.props.eventKey,nt=function(){Ce.onOpenChange({key:Mt,item:Object(N.a)(Ce),trigger:Nt,open:gt})};Nt==="mouseenter"?Ce.mouseenterTimeout=setTimeout(function(){nt()},0):nt()},Ce.isChildrenSelected=function(){var gt={find:!1};return ie(Ce.props.children,Ce.props.selectedKeys,gt),gt.find},Ce.isOpen=function(){return Ce.props.openKeys.indexOf(Ce.props.eventKey)!==-1},Ce.adjustWidth=function(){if(!Ce.subMenuTitle||!Ce.menuInstance)return;var gt=ne.findDOMNode(Ce.menuInstance);if(gt.offsetWidth>=Ce.subMenuTitle.offsetWidth)return;gt.style.minWidth="".concat(Ce.subMenuTitle.offsetWidth,"px")},Ce.saveSubMenuTitle=function(gt){Ce.subMenuTitle=gt},Ce.getBaseProps=function(){var gt=Object(N.a)(Ce),Nt=gt.props;return{mode:Nt.mode==="horizontal"?"vertical":Nt.mode,visible:Ce.props.isOpen,level:Nt.level+1,inlineIndent:Nt.inlineIndent,focusable:!1,onClick:Ce.onSubMenuClick,onSelect:Ce.onSelect,onDeselect:Ce.onDeselect,onDestroy:Ce.onDestroy,selectedKeys:Nt.selectedKeys,eventKey:"".concat(Nt.eventKey,"-menu-"),openKeys:Nt.openKeys,motion:Nt.motion,onOpenChange:Ce.onOpenChange,subMenuOpenDelay:Nt.subMenuOpenDelay,parentMenu:Object(N.a)(Ce),subMenuCloseDelay:Nt.subMenuCloseDelay,forceSubMenuRender:Nt.forceSubMenuRender,triggerSubMenuAction:Nt.triggerSubMenuAction,builtinPlacements:Nt.builtinPlacements,defaultActiveFirst:Nt.store.getState().defaultActiveFirst[W(Nt.eventKey)],multiple:Nt.multiple,prefixCls:Nt.rootPrefixCls,id:Ce.internalMenuId,manualRef:Ce.saveMenuInstance,itemIcon:Nt.itemIcon,expandIcon:Nt.expandIcon,direction:Nt.direction}},Ce.getMotion=function(gt,Nt){var Mt=Object(N.a)(Ce),nt=Mt.haveRendered,xt=Ce.props,ue=xt.motion,ae=xt.rootPrefixCls,V=Object(Z.a)(Object(Z.a)({},ue),{},{leavedClassName:"".concat(ae,"-hidden"),removeOnLeave:!1,motionAppear:nt||!Nt||gt!=="inline"});return V};var Be=qe.store,dt=qe.eventKey,ut=Be.getState(),It=ut.defaultActiveFirst;Ce.isRootMenu=!1;var wt=!1;return It&&(wt=It[dt]),Ae(Be,dt,wt),Ce}return Object(L.a)(st,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Ce=this,Be=this.props,dt=Be.mode,ut=Be.parentMenu,It=Be.manualRef;if(It&&It(this),dt!=="horizontal"||!ut.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return Ce.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var Ce=this.props,Be=Ce.onDestroy,dt=Ce.eventKey;Be&&Be(dt),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(Ce){var Be=this,dt=this.getBaseProps(),ut=this.getMotion(dt.mode,dt.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||dt.visible||dt.forceSubMenuRender,!this.haveOpened)return M.createElement("div",null);var It=dt.direction;return M.createElement(H.default,Object.assign({visible:dt.visible},ut),function(wt){var gt=wt.className,Nt=wt.style,Mt=s()("".concat(dt.prefixCls,"-sub"),gt,Object(r.a)({},"".concat(dt.prefixCls,"-rtl"),It==="rtl"));return M.createElement(le,Object.assign({},dt,{id:Be.internalMenuId,className:Mt,style:Nt}),Ce)})}},{key:"render",value:function(){var Ce,Be=Object(Z.a)({},this.props),dt=Be.isOpen,ut=this.getPrefixCls(),It=Be.mode==="inline",wt=s()(ut,"".concat(ut,"-").concat(Be.mode),(Ce={},Object(r.a)(Ce,Be.className,!!Be.className),Object(r.a)(Ce,this.getOpenClassName(),dt),Object(r.a)(Ce,this.getActiveClassName(),Be.active||dt&&!It),Object(r.a)(Ce,this.getDisabledClassName(),Be.disabled),Object(r.a)(Ce,this.getSelectedClassName(),this.isChildrenSelected()),Ce));this.internalMenuId||(Be.eventKey?this.internalMenuId="".concat(Be.eventKey,"$Menu"):(Je+=1,this.internalMenuId="$__$".concat(Je,"$Menu")));var gt={},Nt={},Mt={};Be.disabled||(gt={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},Nt={onClick:this.onTitleClick},Mt={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var nt={},xt=Be.direction;It&&(xt==="rtl"?nt.paddingRight=Be.inlineIndent*Be.level:nt.paddingLeft=Be.inlineIndent*Be.level);var ue={};this.props.isOpen&&(ue={"aria-owns":this.internalMenuId});var ae=null;Be.mode!=="horizontal"&&(ae=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(ae=M.createElement(this.props.expandIcon,Object(Z.a)({},this.props))));var V=M.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:nt,className:"".concat(ut,"-title"),role:"button"},Mt,Nt,{"aria-expanded":dt},ue,{"aria-haspopup":"true",title:typeof Be.title=="string"?Be.title:void 0}),Be.title,ae||M.createElement("i",{className:"".concat(ut,"-arrow")})),J=this.renderChildren(Be.children),te=Be.parentMenu.isRootMenu?Be.parentMenu.props.getPopupContainer:function(jt){return jt.parentNode},re=oe[Be.mode],be=Be.popupOffset?{offset:Be.popupOffset}:{},Pe=Be.mode==="inline"?"":Be.popupClassName;Pe+=xt==="rtl"?" ".concat(ut,"-rtl"):"";var He=Be.disabled,ft=Be.triggerSubMenuAction,_t=Be.subMenuOpenDelay,Lt=Be.forceSubMenuRender,Vt=Be.subMenuCloseDelay,Ht=Be.builtinPlacements;Ee.forEach(function(jt){return delete Be[jt]}),delete Be.onClick;var tt=xt==="rtl"?Object.assign({},me,Ht):Object.assign({},X,Ht);return delete Be.direction,M.createElement("li",Object.assign({},Be,gt,{className:wt,role:"menuitem"}),It&&V,It&&J,!It&&M.createElement(z.a,{prefixCls:ut,popupClassName:s()("".concat(ut,"-popup"),Pe),getPopupContainer:te,builtinPlacements:tt,popupPlacement:re,popupVisible:dt,popupAlign:be,popup:J,action:He?[]:[ft],mouseEnterDelay:_t,mouseLeaveDelay:Vt,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Lt},V))}}]),st}(M.Component);ye.defaultProps={onMouseEnter:j,onMouseLeave:j,onTitleMouseEnter:j,onTitleMouseLeave:j,onTitleClick:j,manualRef:j,mode:"vertical",title:""};var Le=Object(g.b)(function(Rt,rt){var st=Rt.openKeys,qe=Rt.activeKey,Ce=Rt.selectedKeys,Be=rt.eventKey,dt=rt.subMenuKey;return{isOpen:st.indexOf(Be)>-1,active:qe[dt]===Be,selectedKeys:Ce}})(ye);Le.isSubMenu=!0;var We=Le,Xe="menuitem-overflowed",ct=.5,lt=function(Rt){Object(c.a)(st,Rt);var rt=Object(u.a)(st);function st(){var qe;return Object(U.a)(this,st),qe=rt.apply(this,arguments),qe.resizeObserver=null,qe.mutationObserver=null,qe.originalTotalWidth=0,qe.overflowedItems=[],qe.menuItemSizes=[],qe.cancelFrameId=null,qe.state={lastVisibleIndex:void 0},qe.getMenuItemNodes=function(){var Ce=qe.props.prefixCls,Be=ne.findDOMNode(Object(N.a)(qe));return Be?[].slice.call(Be.children).filter(function(dt){return dt.className.split(" ").indexOf("".concat(Ce,"-overflowed-submenu"))<0}):[]},qe.getOverflowedSubMenuItem=function(Ce,Be,dt){var ut=qe.props,It=ut.overflowedIndicator,wt=ut.level,gt=ut.mode,Nt=ut.prefixCls,Mt=ut.theme;if(wt!==1||gt!=="horizontal")return null;var nt=qe.props.children[0],xt=nt.props,ue=xt.children,ae=xt.title,V=xt.style,J=Object(Ie.a)(xt,["children","title","style"]),te=Object(Z.a)({},V),re="".concat(Ce,"-overflowed-indicator"),be="".concat(Ce,"-overflowed-indicator");Be.length===0&&dt!==!0?te=Object(Z.a)(Object(Z.a)({},te),{},{display:"none"}):dt&&(te=Object(Z.a)(Object(Z.a)({},te),{},{visibility:"hidden",position:"absolute"}),re="".concat(re,"-placeholder"),be="".concat(be,"-placeholder"));var Pe=Mt?"".concat(Nt,"-").concat(Mt):"",He={};return Ee.forEach(function(ft){J[ft]!==void 0&&(He[ft]=J[ft])}),M.createElement(We,Object.assign({title:It,className:"".concat(Nt,"-overflowed-submenu"),popupClassName:Pe},He,{key:re,eventKey:be,disabled:!1,style:te}),Be)},qe.setChildrenWidthAndResize=function(){if(qe.props.mode!=="horizontal")return;var Ce=ne.findDOMNode(Object(N.a)(qe));if(!Ce)return;var Be=Ce.children;if(!Be||Be.length===0)return;var dt=Ce.children[Be.length-1];De(dt,"display","inline-block");var ut=qe.getMenuItemNodes(),It=ut.filter(function(wt){return wt.className.split(" ").indexOf(Xe)>=0});It.forEach(function(wt){De(wt,"display","inline-block")}),qe.menuItemSizes=ut.map(function(wt){return pe(wt,!0)}),It.forEach(function(wt){De(wt,"display","none")}),qe.overflowedIndicatorWidth=pe(Ce.children[Ce.children.length-1],!0),qe.originalTotalWidth=qe.menuItemSizes.reduce(function(wt,gt){return wt+gt},0),qe.handleResize(),De(dt,"display","none")},qe.handleResize=function(){if(qe.props.mode!=="horizontal")return;var Ce=ne.findDOMNode(Object(N.a)(qe));if(!Ce)return;var Be=pe(Ce);qe.overflowedItems=[];var dt=0,ut;qe.originalTotalWidth>Be+ct&&(ut=-1,qe.menuItemSizes.forEach(function(It){dt+=It,dt+qe.overflowedIndicatorWidth<=Be&&(ut+=1)})),qe.setState({lastVisibleIndex:ut})},qe}return Object(L.a)(st,[{key:"componentDidMount",value:function(){var Ce=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Be=ne.findDOMNode(this);if(!Be)return;this.resizeObserver=new B.default(function(dt){dt.forEach(function(){var ut=Ce.cancelFrameId;cancelAnimationFrame(ut),Ce.cancelFrameId=requestAnimationFrame(Ce.setChildrenWidthAndResize)})}),[].slice.call(Be.children).concat(Be).forEach(function(dt){Ce.resizeObserver.observe(dt)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){Ce.resizeObserver.disconnect(),[].slice.call(Be.children).concat(Be).forEach(function(dt){Ce.resizeObserver.observe(dt)}),Ce.setChildrenWidthAndResize()}),this.mutationObserver.observe(Be,{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(Ce){var Be=this,dt=this.state.lastVisibleIndex;return(Ce||[]).reduce(function(ut,It,wt){var gt=It;if(Be.props.mode==="horizontal"){var Nt=Be.getOverflowedSubMenuItem(It.props.eventKey,[]);dt!==void 0&&Be.props.className.indexOf("".concat(Be.props.prefixCls,"-root"))!==-1&&(wt>dt&&(gt=M.cloneElement(It,{style:{display:"none"},eventKey:"".concat(It.props.eventKey,"-hidden"),className:"".concat(Xe)})),wt===dt+1&&(Be.overflowedItems=Ce.slice(dt+1).map(function(nt){return M.cloneElement(nt,{key:nt.props.eventKey,mode:"vertical-left"})}),Nt=Be.getOverflowedSubMenuItem(It.props.eventKey,Be.overflowedItems)));var Mt=[].concat(Object(Ue.a)(ut),[Nt,gt]);return wt===Ce.length-1&&Mt.push(Be.getOverflowedSubMenuItem(It.props.eventKey,[],!0)),Mt}return[].concat(Object(Ue.a)(ut),[gt])},[])}},{key:"render",value:function(){var Ce=this.props,Be=Ce.visible,dt=Ce.prefixCls,ut=Ce.overflowedIndicator,It=Ce.mode,wt=Ce.level,gt=Ce.tag,Nt=Ce.children,Mt=Ce.theme,nt=Object(Ie.a)(Ce,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),xt=gt;return M.createElement(xt,Object.assign({},nt),this.renderChildren(Nt))}}]),st}(M.Component);lt.defaultProps={tag:"div",className:""};var St=lt;function Dt(Rt){return Rt.length?Rt.every(function(rt){return!!rt.props.disabled}):!0}function bt(Rt,rt,st){var qe=Rt.getState();Rt.setState({activeKey:Object(Z.a)(Object(Z.a)({},qe.activeKey),{},Object(r.a)({},rt,st))})}function ht(Rt){return Rt.eventKey||"0-menu-"}function Ut(Rt,rt){var st=rt,qe=Rt.children,Ce=Rt.eventKey;if(st){var Be;if(Q(qe,function(dt,ut){dt&&dt.props&&!dt.props.disabled&&st===Y(dt,Ce,ut)&&(Be=!0)}),Be)return st}return st=null,Rt.defaultActiveFirst&&Q(qe,function(dt,ut){!st&&dt&&!dt.props.disabled&&(st=Y(dt,Ce,ut))}),st}function Ft(Rt){if(Rt){var rt=this.instanceArray.indexOf(Rt);rt!==-1?this.instanceArray[rt]=Rt:this.instanceArray.push(Rt)}}var ve=function(Rt){Object(c.a)(st,Rt);var rt=Object(u.a)(st);function st(qe){var Ce;return Object(U.a)(this,st),Ce=rt.call(this,qe),Ce.onKeyDown=function(Be,dt){var ut=Be.keyCode,It;if(Ce.getFlatInstanceArray().forEach(function(gt){gt&&gt.props.active&&gt.onKeyDown&&(It=gt.onKeyDown(Be))}),It)return 1;var wt=null;return(ut===h.a.UP||ut===h.a.DOWN)&&(wt=Ce.step(ut===h.a.UP?-1:1)),wt?(Be.preventDefault(),bt(Ce.props.store,ht(Ce.props),wt.props.eventKey),typeof dt=="function"&&dt(wt),1):void 0},Ce.onItemHover=function(Be){var dt=Be.key,ut=Be.hover;bt(Ce.props.store,ht(Ce.props),ut?dt:null)},Ce.onDeselect=function(Be){Ce.props.onDeselect(Be)},Ce.onSelect=function(Be){Ce.props.onSelect(Be)},Ce.onClick=function(Be){Ce.props.onClick(Be)},Ce.onOpenChange=function(Be){Ce.props.onOpenChange(Be)},Ce.onDestroy=function(Be){Ce.props.onDestroy(Be)},Ce.getFlatInstanceArray=function(){return Ce.instanceArray},Ce.step=function(Be){var dt=Ce.getFlatInstanceArray(),ut=Ce.props.store.getState().activeKey[ht(Ce.props)],It=dt.length;if(!It)return null;Be<0&&(dt=dt.concat().reverse());var wt=-1;if(dt.every(function(nt,xt){return nt&&nt.props.eventKey===ut?(wt=xt,!1):!0}),!Ce.props.defaultActiveFirst&&wt!==-1&&Dt(dt.slice(wt,It-1)))return;var gt=(wt+1)%It,Nt=gt;do{var Mt=dt[Nt];if(!Mt||Mt.props.disabled)Nt=(Nt+1)%It;else return Mt}while(Nt!==gt);return null},Ce.renderCommonMenuItem=function(Be,dt,ut){var It=Ce.props.store.getState(),wt=Object(N.a)(Ce),gt=wt.props,Nt=Y(Be,gt.eventKey,dt),Mt=Be.props;if(!Mt||typeof Be.type=="string")return Be;var nt=Nt===It.activeKey,xt=Object(Z.a)(Object(Z.a)({mode:Mt.mode||gt.mode,level:gt.level,inlineIndent:gt.inlineIndent,renderMenuItem:Ce.renderMenuItem,rootPrefixCls:gt.prefixCls,index:dt,parentMenu:gt.parentMenu,manualRef:Mt.disabled?void 0:Object(a.a)(Be.ref,Ft.bind(Object(N.a)(Ce))),eventKey:Nt,active:!Mt.disabled&&nt,multiple:gt.multiple,onClick:function(ae){(Mt.onClick||j)(ae),Ce.onClick(ae)},onItemHover:Ce.onItemHover,motion:gt.motion,subMenuOpenDelay:gt.subMenuOpenDelay,subMenuCloseDelay:gt.subMenuCloseDelay,forceSubMenuRender:gt.forceSubMenuRender,onOpenChange:Ce.onOpenChange,onDeselect:Ce.onDeselect,onSelect:Ce.onSelect,builtinPlacements:gt.builtinPlacements,itemIcon:Mt.itemIcon||Ce.props.itemIcon,expandIcon:Mt.expandIcon||Ce.props.expandIcon},ut),{},{direction:gt.direction});return(gt.mode==="inline"||Me())&&(xt.triggerSubMenuAction="click"),M.cloneElement(Be,xt)},Ce.renderMenuItem=function(Be,dt,ut){if(!Be)return null;var It=Ce.props.store.getState(),wt={openKeys:It.openKeys,selectedKeys:It.selectedKeys,triggerSubMenuAction:Ce.props.triggerSubMenuAction,subMenuKey:ut};return Ce.renderCommonMenuItem(Be,dt,wt)},qe.store.setState({activeKey:Object(Z.a)(Object(Z.a)({},qe.store.getState().activeKey),{},Object(r.a)({},qe.eventKey,Ut(qe,qe.activeKey)))}),Ce.instanceArray=[],Ce}return Object(L.a)(st,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(Ce){return this.props.visible||Ce.visible||this.props.className!==Ce.className||!d()(this.props.style,Ce.style)}},{key:"componentDidUpdate",value:function(Ce){var Be=this.props,dt="activeKey"in Be?Be.activeKey:Be.store.getState().activeKey[ht(Be)],ut=Ut(Be,dt);if(ut!==dt)bt(Be.store,ht(Be),ut);else if("activeKey"in Ce){var It=Ut(Ce,Ce.activeKey);ut!==It&&bt(Be.store,ht(Be),ut)}}},{key:"render",value:function(){var Ce=this,Be=Object(m.a)({},this.props);this.instanceArray=[];var dt=s()(Be.prefixCls,Be.className,"".concat(Be.prefixCls,"-").concat(Be.mode)),ut={className:dt,role:Be.role||"menu"};Be.id&&(ut.id=Be.id),Be.focusable&&(ut.tabIndex=0,ut.onKeyDown=this.onKeyDown);var It=Be.prefixCls,wt=Be.eventKey,gt=Be.visible,Nt=Be.level,Mt=Be.mode,nt=Be.overflowedIndicator,xt=Be.theme;return Ee.forEach(function(ue){return delete Be[ue]}),delete Be.onClick,M.createElement(St,Object.assign({},Be,{prefixCls:It,mode:Mt,tag:"ul",level:Nt,theme:xt,visible:gt,overflowedIndicator:nt},ut),M.Children.map(Be.children,function(ue,ae){return Ce.renderMenuItem(ue,ae,wt||"0-menu-")}))}}]),st}(M.Component);ve.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:j};var se=Object(g.b)()(ve),le=se,fe=_("Kwbf");function Re(Rt,rt,st){var qe=Rt.prefixCls,Ce=Rt.motion,Be=Rt.defaultMotions,dt=Be===void 0?{}:Be,ut=Rt.openAnimation,It=Rt.openTransitionName,wt=rt.switchingModeFromInline;if(Ce)return Ce;if(Object(p.a)(ut)==="object"&&ut)Object(fe.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof ut=="string")return{motionName:"".concat(qe,"-open-").concat(ut)};if(It)return{motionName:It};var gt=dt[st];return gt||(wt?null:dt.other)}var ce=function(Rt){Object(c.a)(st,Rt);var rt=Object(u.a)(st);function st(qe){var Ce;Object(U.a)(this,st),Ce=rt.call(this,qe),Ce.inlineOpenKeys=[],Ce.onSelect=function(ut){var It=Object(N.a)(Ce),wt=It.props;if(wt.selectable){var gt=Ce.store.getState(),Nt=gt.selectedKeys,Mt=ut.key;wt.multiple?Nt=Nt.concat([Mt]):Nt=[Mt],"selectedKeys"in wt||Ce.store.setState({selectedKeys:Nt}),wt.onSelect(Object(Z.a)(Object(Z.a)({},ut),{},{selectedKeys:Nt}))}},Ce.onClick=function(ut){var It=Ce.getRealMenuMode(),wt=Object(N.a)(Ce),gt=wt.store,Nt=wt.props.onOpenChange;It!=="inline"&&!("openKeys"in Ce.props)&&(gt.setState({openKeys:[]}),Nt([])),Ce.props.onClick(ut)},Ce.onKeyDown=function(ut,It){Ce.innerMenu.getWrappedInstance().onKeyDown(ut,It)},Ce.onOpenChange=function(ut){var It=Object(N.a)(Ce),wt=It.props,gt=Ce.store.getState().openKeys.concat(),Nt=!1,Mt=function(xt){var ue=!1;if(xt.open)ue=gt.indexOf(xt.key)===-1,ue&&gt.push(xt.key);else{var ae=gt.indexOf(xt.key);ue=ae!==-1,ue&&gt.splice(ae,1)}Nt=Nt||ue};Array.isArray(ut)?ut.forEach(Mt):Mt(ut),Nt&&("openKeys"in Ce.props||Ce.store.setState({openKeys:gt}),wt.onOpenChange(gt))},Ce.onDeselect=function(ut){var It=Object(N.a)(Ce),wt=It.props;if(wt.selectable){var gt=Ce.store.getState().selectedKeys.concat(),Nt=ut.key,Mt=gt.indexOf(Nt);Mt!==-1&&gt.splice(Mt,1),"selectedKeys"in wt||Ce.store.setState({selectedKeys:gt}),wt.onDeselect(Object(Z.a)(Object(Z.a)({},ut),{},{selectedKeys:gt}))}},Ce.onMouseEnter=function(ut){Ce.restoreModeVerticalFromInline();var It=Ce.props.onMouseEnter;It&&It(ut)},Ce.onTransitionEnd=function(ut){var It=ut.propertyName==="width"&&ut.target===ut.currentTarget,wt=ut.target.className,gt=Object.prototype.toString.call(wt)==="[object SVGAnimatedString]"?wt.animVal:wt,Nt=ut.propertyName==="font-size"&&gt.indexOf("anticon")>=0;(It||Nt)&&Ce.restoreModeVerticalFromInline()},Ce.setInnerMenu=function(ut){Ce.innerMenu=ut},Ce.isRootMenu=!0;var Be=qe.defaultSelectedKeys,dt=qe.defaultOpenKeys;return"selectedKeys"in qe&&(Be=qe.selectedKeys||[]),"openKeys"in qe&&(dt=qe.openKeys||[]),Ce.store=Object(g.c)({selectedKeys:Be,openKeys:dt,activeKey:{"0-menu-":Ut(qe,qe.activeKey)}}),Ce.state={switchingModeFromInline:!1},Ce}return Object(L.a)(st,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(Ce){this.updateOpentKeysWhenSwitchMode(Ce),this.updateMiniStore();var Be=this.props,dt=Be.siderCollapsed,ut=Be.inlineCollapsed,It=Be.onOpenChange;(!Ce.inlineCollapsed&&ut||!Ce.siderCollapsed&&dt)&&It([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(Ce){var Be=this.props,dt=this.store,ut=this.inlineOpenKeys,It=dt.getState(),wt={};Ce.mode==="inline"&&Be.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in Be||((Be.inlineCollapsed&&!Ce.inlineCollapsed||Be.siderCollapsed&&!Ce.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=It.openKeys.concat(),wt.openKeys=[]),(!Be.inlineCollapsed&&Ce.inlineCollapsed||!Be.siderCollapsed&&Ce.siderCollapsed)&&(wt.openKeys=ut,this.inlineOpenKeys=[])),Object.keys(wt).length&&dt.setState(wt)}},{key:"updateMenuDisplay",value:function(){var Ce=this.props.collapsedWidth,Be=this.store,dt=this.prevOpenKeys,ut=this.getInlineCollapsed()&&(Ce===0||Ce==="0"||Ce==="0px");ut?(this.prevOpenKeys=Be.getState().openKeys.concat(),this.store.setState({openKeys:[]})):dt&&(this.store.setState({openKeys:dt}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var Ce=this.props.mode,Be=this.state.switchingModeFromInline,dt=this.getInlineCollapsed();return Be&&dt?"inline":dt?"vertical":Ce}},{key:"getInlineCollapsed",value:function(){var Ce=this.props,Be=Ce.inlineCollapsed,dt=Ce.siderCollapsed;return dt!==void 0?dt:Be}},{key:"restoreModeVerticalFromInline",value:function(){var Ce=this.state.switchingModeFromInline;Ce&&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 Ce=Object(Z.a)({},Object(e.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),Be=this.getRealMenuMode();return Ce.className+=" ".concat(Ce.prefixCls,"-root"),Ce.direction==="rtl"&&(Ce.className+=" ".concat(Ce.prefixCls,"-rtl")),Ce=Object(Z.a)(Object(Z.a)({},Ce),{},{mode:Be,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Re(this.props,this.state,Be)}),delete Ce.openAnimation,delete Ce.openTransitionName,M.createElement(g.a,{store:this.store},M.createElement(le,Object.assign({},Ce,{ref:this.setInnerMenu}),this.props.children))}}]),st}(M.Component);ce.defaultProps={selectable:!0,onClick:j,onSelect:j,onOpenChange:j,onDeselect:j,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:M.createElement("span",null,"\xB7\xB7\xB7")};var he=ce,Se=function(Rt){Object(c.a)(st,Rt);var rt=Object(u.a)(st);function st(){var qe;return Object(U.a)(this,st),qe=rt.apply(this,arguments),qe.onKeyDown=function(Ce){var Be=Ce.keyCode;return Be===h.a.ENTER?(qe.onClick(Ce),!0):void 0},qe.onMouseLeave=function(Ce){var Be=qe.props,dt=Be.eventKey,ut=Be.onItemHover,It=Be.onMouseLeave;ut({key:dt,hover:!1}),It({key:dt,domEvent:Ce})},qe.onMouseEnter=function(Ce){var Be=qe.props,dt=Be.eventKey,ut=Be.onItemHover,It=Be.onMouseEnter;ut({key:dt,hover:!0}),It({key:dt,domEvent:Ce})},qe.onClick=function(Ce){var Be=qe.props,dt=Be.eventKey,ut=Be.multiple,It=Be.onClick,wt=Be.onSelect,gt=Be.onDeselect,Nt=Be.isSelected,Mt={key:dt,keyPath:[dt],item:Object(N.a)(qe),domEvent:Ce};It(Mt),ut?Nt?gt(Mt):wt(Mt):Nt||wt(Mt)},qe.saveNode=function(Ce){qe.node=Ce},qe}return Object(L.a)(st,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var Ce=this.props;Ce.onDestroy&&Ce.onDestroy(Ce.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 Ce,Be=Object(Z.a)({},this.props),dt=s()(this.getPrefixCls(),Be.className,(Ce={},Object(r.a)(Ce,this.getActiveClassName(),!Be.disabled&&Be.active),Object(r.a)(Ce,this.getSelectedClassName(),Be.isSelected),Object(r.a)(Ce,this.getDisabledClassName(),Be.disabled),Ce)),ut=Object(Z.a)(Object(Z.a)({},Be.attribute),{},{title:typeof Be.title=="string"?Be.title:void 0,className:dt,role:Be.role||"menuitem","aria-disabled":Be.disabled});Be.role==="option"?ut=Object(Z.a)(Object(Z.a)({},ut),{},{role:"option","aria-selected":Be.isSelected}):(Be.role===null||Be.role==="none")&&(ut.role="none");var It={onClick:Be.disabled?null:this.onClick,onMouseLeave:Be.disabled?null:this.onMouseLeave,onMouseEnter:Be.disabled?null:this.onMouseEnter},wt=Object(Z.a)({},Be.style);Be.mode==="inline"&&(Be.direction==="rtl"?wt.paddingRight=Be.inlineIndent*Be.level:wt.paddingLeft=Be.inlineIndent*Be.level),Ee.forEach(function(Nt){return delete Be[Nt]}),delete Be.direction;var gt=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(gt=M.createElement(this.props.itemIcon,this.props)),M.createElement("li",Object.assign({},Object(e.default)(Be,["onClick","onMouseEnter","onMouseLeave","onSelect"]),ut,It,{style:wt,ref:this.saveNode}),Be.children,gt)}}]),st}(M.Component);Se.isMenuItem=!0,Se.defaultProps={onSelect:j,onMouseEnter:j,onMouseLeave:j,manualRef:j};var we=Object(g.b)(function(Rt,rt){var st=Rt.activeKey,qe=Rt.selectedKeys,Ce=rt.eventKey,Be=rt.subMenuKey;return{active:st[Be]===Ce,isSelected:qe.indexOf(Ce)!==-1}})(Se),Ze=we,Ye=function(Rt){Object(c.a)(st,Rt);var rt=Object(u.a)(st);function st(){var qe;return Object(U.a)(this,st),qe=rt.apply(this,arguments),qe.renderInnerMenuItem=function(Ce){var Be=qe.props,dt=Be.renderMenuItem,ut=Be.index;return dt(Ce,ut,qe.props.subMenuKey)},qe}return Object(L.a)(st,[{key:"render",value:function(){var Ce=Object(m.a)({},this.props),Be=Ce.className,dt=Be===void 0?"":Be,ut=Ce.rootPrefixCls,It="".concat(ut,"-item-group-title"),wt="".concat(ut,"-item-group-list"),gt=Ce.title,Nt=Ce.children;return Ee.forEach(function(Mt){return delete Ce[Mt]}),delete Ce.onClick,delete Ce.direction,M.createElement("li",Object.assign({},Ce,{className:"".concat(dt," ").concat(ut,"-item-group")}),M.createElement("div",{className:It,title:typeof gt=="string"?gt:void 0},gt),M.createElement("ul",{className:wt},M.Children.map(Nt,this.renderInnerMenuItem)))}}]),st}(M.Component);Ye.isMenuItemGroup=!0,Ye.defaultProps={disabled:!0};var it=Ye,Et=function(rt){var st=rt.className,qe=rt.rootPrefixCls,Ce=rt.style;return M.createElement("li",{className:"".concat(st," ").concat(qe,"-item-divider"),style:Ce})};Et.defaultProps={disabled:!0,className:"",style:{}};var Pt=Et,zt=q.e=he},"24YM":function(ge,q,_){"use strict";Object.defineProperty(q,"__esModule",{value:!0}),q.SensorTabIndex=q.SensorClassName=q.SizeSensorId=void 0;var Z="size-sensor-id";q.SizeSensorId=Z;var U="size-sensor-object";q.SensorClassName=U;var L="-1";q.SensorTabIndex=L},"24hK":function(ge,q,_){"use strict";_.d(q,"a",function(){return U});class Z{constructor(L){this.element=L,this.next=Z.Undefined,this.prev=Z.Undefined}}Z.Undefined=new Z(void 0);class U{constructor(){this._first=Z.Undefined,this._last=Z.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Z.Undefined}clear(){let L=this._first;for(;L!==Z.Undefined;){const N=L.next;L.prev=Z.Undefined,L.next=Z.Undefined,L=N}this._first=Z.Undefined,this._last=Z.Undefined,this._size=0}unshift(L){return this._insert(L,!1)}push(L){return this._insert(L,!0)}_insert(L,N){const c=new Z(L);if(this._first===Z.Undefined)this._first=c,this._last=c;else if(N){const M=this._last;this._last=c,c.prev=M,M.next=c}else{const M=this._first;this._first=c,c.next=M,M.prev=c}this._size+=1;let u=!1;return()=>{u||(u=!0,this._remove(c))}}shift(){if(this._first===Z.Undefined)return;{const L=this._first.element;return this._remove(this._first),L}}pop(){if(this._last===Z.Undefined)return;{const L=this._last.element;return this._remove(this._last),L}}_remove(L){if(L.prev!==Z.Undefined&&L.next!==Z.Undefined){const N=L.prev;N.next=L.next,L.next.prev=N}else L.prev===Z.Undefined&&L.next===Z.Undefined?(this._first=Z.Undefined,this._last=Z.Undefined):L.next===Z.Undefined?(this._last=this._last.prev,this._last.next=Z.Undefined):L.prev===Z.Undefined&&(this._first=this._first.next,this._first.prev=Z.Undefined);this._size-=1}*[Symbol.iterator](){let L=this._first;for(;L!==Z.Undefined;)yield L.element,L=L.next}}},"2DNl":function(ge,q,_){var Z=_("IMiH"),U=_("loD1"),L=_("59Ip"),N=_("aKvl"),c=_("n1HI"),u=_("hX1E"),M=u.normalizeRadian,g=_("Sj9i"),e=_("hyiK"),m=Z.CMD,r=Math.PI*2,h=1e-4;function a(R,w){return Math.abs(R-w)<h}var l=[-1,-1,-1],d=[-1,-1];function y(){var R=d[0];d[0]=d[1],d[1]=R}function s(R,w,x,A,o,f,E,O,S,b){if(b>w&&b>A&&b>f&&b>O||b<w&&b<A&&b<f&&b<O)return 0;var D=g.cubicRootAt(w,A,f,O,b,l);if(D===0)return 0;for(var P=0,I=-1,F,K,j=0;j<D;j++){var Y=l[j],W=Y===0||Y===1?.5:1,Q=g.cubicAt(R,x,o,E,Y);if(Q<S)continue;I<0&&(I=g.cubicExtrema(w,A,f,O,d),d[1]<d[0]&&I>1&&y(),F=g.cubicAt(w,A,f,O,d[0]),I>1&&(K=g.cubicAt(w,A,f,O,d[1]))),I===2?Y<d[0]?P+=F<w?W:-W:Y<d[1]?P+=K<F?W:-W:P+=O<K?W:-W:Y<d[0]?P+=F<w?W:-W:P+=O<F?W:-W}return P}function p(R,w,x,A,o,f,E,O){if(O>w&&O>A&&O>f||O<w&&O<A&&O<f)return 0;var S=g.quadraticRootAt(w,A,f,O,l);if(S===0)return 0;var b=g.quadraticExtremum(w,A,f);if(b>=0&&b<=1){for(var D=0,P=g.quadraticAt(w,A,f,b),I=0;I<S;I++){var F=l[I]===0||l[I]===1?.5:1,K=g.quadraticAt(R,x,o,l[I]);if(K<E)continue;l[I]<b?D+=P<w?F:-F:D+=f<P?F:-F}return D}else{var F=l[0]===0||l[0]===1?.5:1,K=g.quadraticAt(R,x,o,l[0]);return K<E?0:f<w?F:-F}}function n(R,w,x,A,o,f,E,O){if(O-=w,O>x||O<-x)return 0;var S=Math.sqrt(x*x-O*O);l[0]=-S,l[1]=S;var b=Math.abs(A-o);if(b<1e-4)return 0;if(b%r<1e-4){A=0,o=r;var D=f?1:-1;return E>=l[0]+R&&E<=l[1]+R?D:0}if(f){var S=A;A=M(o),o=M(S)}else A=M(A),o=M(o);A>o&&(o+=r);for(var P=0,I=0;I<2;I++){var F=l[I];if(F+R>E){var K=Math.atan2(O,F),D=f?1:-1;K<0&&(K=r+K),(K>=A&&K<=o||K+r>=A&&K+r<=o)&&(K>Math.PI/2&&K<Math.PI*1.5&&(D=-D),P+=D)}}return P}function i(R,w,x,A,o){for(var f=0,E=0,O=0,S=0,b=0,D=0;D<R.length;){var P=R[D++];P===m.M&&D>1&&(x||(f+=e(E,O,S,b,A,o))),D===1&&(E=R[D],O=R[D+1],S=E,b=O);switch(P){case m.M:S=R[D++],b=R[D++],E=S,O=b;break;case m.L:if(x){if(U.containStroke(E,O,R[D],R[D+1],w,A,o))return!0}else f+=e(E,O,R[D],R[D+1],A,o)||0;E=R[D++],O=R[D++];break;case m.C:if(x){if(L.containStroke(E,O,R[D++],R[D++],R[D++],R[D++],R[D],R[D+1],w,A,o))return!0}else f+=s(E,O,R[D++],R[D++],R[D++],R[D++],R[D],R[D+1],A,o)||0;E=R[D++],O=R[D++];break;case m.Q:if(x){if(N.containStroke(E,O,R[D++],R[D++],R[D],R[D+1],w,A,o))return!0}else f+=p(E,O,R[D++],R[D++],R[D],R[D+1],A,o)||0;E=R[D++],O=R[D++];break;case m.A:var I=R[D++],F=R[D++],K=R[D++],j=R[D++],Y=R[D++],W=R[D++];D+=1;var Q=1-R[D++],ie=Math.cos(Y)*K+I,Ee=Math.sin(Y)*j+F;D>1?f+=e(E,O,ie,Ee,A,o):(S=ie,b=Ee);var pe=(A-I)*j/K+I;if(x){if(c.containStroke(I,F,j,Y,Y+W,Q,w,pe,o))return!0}else f+=n(I,F,j,Y,Y+W,Q,pe,o);E=Math.cos(Y+W)*K+I,O=Math.sin(Y+W)*j+F;break;case m.R:S=E=R[D++],b=O=R[D++];var De=R[D++],Me=R[D++],ie=S+De,Ee=b+Me;if(x){if(U.containStroke(S,b,ie,b,w,A,o)||U.containStroke(ie,b,ie,Ee,w,A,o)||U.containStroke(ie,Ee,S,Ee,w,A,o)||U.containStroke(S,Ee,S,b,w,A,o))return!0}else f+=e(ie,b,ie,Ee,A,o),f+=e(S,Ee,S,b,A,o);break;case m.Z:if(x){if(U.containStroke(E,O,S,b,w,A,o))return!0}else f+=e(E,O,S,b,A,o);E=S,O=b;break}}return!x&&!a(O,b)&&(f+=e(E,O,S,b,A,o)||0),f!==0}function v(R,w,x){return i(R,0,!1,w,x)}function C(R,w,x,A){return i(R,w,!0,x,A)}q.contain=v,q.containStroke=C},"2U/9":function(ge,q,_){"use strict";var Z=_("VTBJ"),U=_("rePB"),L=_("Ff2n"),N=_("1OyB"),c=_("vuIU"),u=_("Ji7U"),M=_("LK+K"),g=_("q1tI"),e=_.n(g),m=_("Zm9Q"),r=_("TSYQ"),h=_.n(r),a=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick"];function l(n){return typeof n=="string"}var d=function(n){Object(u.a)(v,n);var i=Object(M.a)(v);function v(){var C;return Object(N.a)(this,v),C=i.apply(this,arguments),C.onClick=function(){var R=C.props,w=R.onClick,x=R.onStepClick,A=R.stepIndex;w&&w.apply(void 0,arguments),x(A)},C}return Object(c.a)(v,[{key:"renderIconNode",value:function(){var R,w=this.props,x=w.prefixCls,A=w.progressDot,o=w.stepIcon,f=w.stepNumber,E=w.status,O=w.title,S=w.description,b=w.icon,D=w.iconPrefix,P=w.icons,I,F=h()("".concat(x,"-icon"),"".concat(D,"icon"),(R={},Object(U.a)(R,"".concat(D,"icon-").concat(b),b&&l(b)),Object(U.a)(R,"".concat(D,"icon-check"),!b&&E==="finish"&&(P&&!P.finish||!P)),Object(U.a)(R,"".concat(D,"icon-cross"),!b&&E==="error"&&(P&&!P.error||!P)),R)),K=g.createElement("span",{className:"".concat(x,"-icon-dot")});return A?typeof A=="function"?I=g.createElement("span",{className:"".concat(x,"-icon")},A(K,{index:f-1,status:E,title:O,description:S})):I=g.createElement("span",{className:"".concat(x,"-icon")},K):b&&!l(b)?I=g.createElement("span",{className:"".concat(x,"-icon")},b):P&&P.finish&&E==="finish"?I=g.createElement("span",{className:"".concat(x,"-icon")},P.finish):P&&P.error&&E==="error"?I=g.createElement("span",{className:"".concat(x,"-icon")},P.error):b||E==="finish"||E==="error"?I=g.createElement("span",{className:F}):I=g.createElement("span",{className:"".concat(x,"-icon")},f),o&&(I=o({index:f-1,status:E,title:O,description:S,node:I})),I}},{key:"render",value:function(){var R,w=this.props,x=w.className,A=w.prefixCls,o=w.style,f=w.active,E=w.status,O=E===void 0?"wait":E,S=w.iconPrefix,b=w.icon,D=w.wrapperStyle,P=w.stepNumber,I=w.disabled,F=w.description,K=w.title,j=w.subTitle,Y=w.progressDot,W=w.stepIcon,Q=w.tailContent,ie=w.icons,Ee=w.stepIndex,pe=w.onStepClick,De=w.onClick,Me=Object(L.a)(w,a),Ue=h()("".concat(A,"-item"),"".concat(A,"-item-").concat(O),x,(R={},Object(U.a)(R,"".concat(A,"-item-custom"),b),Object(U.a)(R,"".concat(A,"-item-active"),f),Object(U.a)(R,"".concat(A,"-item-disabled"),I===!0),R)),Ie=Object(Z.a)({},o),ne={};return pe&&!I&&(ne.role="button",ne.tabIndex=0,ne.onClick=this.onClick),g.createElement("div",Object.assign({},Me,{className:Ue,style:Ie}),g.createElement("div",Object.assign({onClick:De},ne,{className:"".concat(A,"-item-container")}),g.createElement("div",{className:"".concat(A,"-item-tail")},Q),g.createElement("div",{className:"".concat(A,"-item-icon")},this.renderIconNode()),g.createElement("div",{className:"".concat(A,"-item-content")},g.createElement("div",{className:"".concat(A,"-item-title")},K,j&&g.createElement("div",{title:typeof j=="string"?j:void 0,className:"".concat(A,"-item-subtitle")},j)),F&&g.createElement("div",{className:"".concat(A,"-item-description")},F))))}}]),v}(g.Component),y=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange"],s=function(n){Object(u.a)(v,n);var i=Object(M.a)(v);function v(){var C;return Object(N.a)(this,v),C=i.apply(this,arguments),C.onStepClick=function(R){var w=C.props,x=w.onChange,A=w.current;x&&A!==R&&x(R)},C}return Object(c.a)(v,[{key:"render",value:function(){var R,w=this,x=this.props,A=x.prefixCls,o=x.style,f=o===void 0?{}:o,E=x.className,O=x.children,S=x.direction,b=x.type,D=x.labelPlacement,P=x.iconPrefix,I=x.status,F=x.size,K=x.current,j=x.progressDot,Y=x.stepIcon,W=x.initial,Q=x.icons,ie=x.onChange,Ee=Object(L.a)(x,y),pe=b==="navigation",De=j?"vertical":D,Me=h()(A,"".concat(A,"-").concat(S),E,(R={},Object(U.a)(R,"".concat(A,"-").concat(F),F),Object(U.a)(R,"".concat(A,"-label-").concat(De),S==="horizontal"),Object(U.a)(R,"".concat(A,"-dot"),!!j),Object(U.a)(R,"".concat(A,"-navigation"),pe),R));return e.a.createElement("div",Object.assign({className:Me,style:f},Ee),Object(m.a)(O).map(function(Ue,Ie){var ne=W+Ie,B=Object(Z.a)({stepNumber:"".concat(ne+1),stepIndex:ne,key:ne,prefixCls:A,iconPrefix:P,wrapperStyle:f,progressDot:j,stepIcon:Y,icons:Q,onStepClick:ie&&w.onStepClick},Ue.props);return I==="error"&&Ie===K-1&&(B.className="".concat(A,"-next-error")),Ue.props.status||(ne===K?B.status=I:ne<K?B.status="finish":B.status="wait"),B.active=ne===K,Object(g.cloneElement)(Ue,B)}))}}]),v}(e.a.Component);s.Step=d,s.defaultProps={type:"default",prefixCls:"rc-steps",iconPrefix:"rc",direction:"horizontal",labelPlacement:"horizontal",initial:0,current:0,status:"process",size:"",progressDot:!1};var p=q.a=s},"2fw6":function(ge,q,_){var Z=_("y+Vt"),U=Z.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(L,N,c){c&&L.moveTo(N.cx+N.r,N.cy),L.arc(N.cx,N.cy,N.r,0,Math.PI*2,!0)}});ge.exports=U},"2kGD":function(ge,q,_){ge.exports={flex_box_center:"flex_box_center___aT3MX",flex_space_between:"flex_space_between___3cqKF",flex_box_vertical_center:"flex_box_vertical_center___4Db5-",flex_box_center_end:"flex_box_center_end___2GnJe",flex_box_column:"flex_box_column___1TXqn",banner:"banner___3qHYI",LeftButton:"LeftButton___3Tse_",RightButton:"RightButton___1SK6r",ptdt:"ptdt___2Hrep",ptdt_warp:"ptdt_warp___2fZeI",ptdt_con:"ptdt_con___FX1OI",btn_left:"btn_left___1ssG8",btn_right:"btn_right___LZR9g",left_bg:"left_bg___1_0KQ",right_bg:"right_bg___2DhY3",inner:"inner___2lXLY",ptdt_item:"ptdt_item___1VYLI",ptdt_item_info:"ptdt_item_info___1icpj",title:"title___2xG1J",time:"time___1jKmP",info:"info___1hg_v",line:"line___29bRa",round:"round___19jZJ",round2:"round2___3IL8W",bgWrapper:"bgWrapper___2ia0i",leftWrapper:"leftWrapper___m-b2p",mainSiteBanner:"mainSiteBanner___1otIi",subnavDetail:"subnavDetail___3vX3N",toji_info:"toji_info___38FBH",toji_info_warp:"toji_info_warp___yhkKA",toji_item:"toji_item___2aDil",img_icon:"img_icon___oTdPI",toji_item_count:"toji_item_count___B39uJ",toji_item_name:"toji_item_name___2Eaug",dataView:"dataView___2iIgz",showArea:"showArea___1WYmE",showContent:"showContent___3T0AH",subnav:"subnav___3Qh9i",nav:"nav___2yWOC",link:"link___C9QdF",mainSite:"mainSite___3S8pv",index_title:"index_title___EAn2I",title_content:"title_content___1i-R4",title_img:"title_img___3IRj7",title_text:"title_text___p5Lqx",more:"more___1kgt5",course_list:"course_list___1ZU9H",course:"course___2owQd",ceng:"ceng___1LCR2",ceng1:"ceng1___2anao",course_title:"course_title___230db",course_onclick:"course_onclick___MmQ67",shixuns_list:"shixuns_list___2jdDx",wrap:"wrap___gQRqK",lockWrap:"lockWrap___29OyA",li:"li___1I-Qc",cover:"cover___2gdYc",img:"img___tqjoZ",sign:"sign___3qP-u",name:"name___tQeLZ",e:"e___2iJyK",work_unit_list:"work_unit_list___1gozZ",work_unit:"work_unit___32iGh",work_unit_img:"work_unit_img___1w1ZI",footer:"footer___ldm4g"}},"3/fG":function(ge,q,_){"use strict";_.d(q,"a",function(){return U});function Z(L,N){let c;return N.length===0?c=L:c=L.replace(/\{(\d+)\}/g,function(u,M){const g=M[0];return typeof N[g]!="undefined"?N[g]:u}),c}function U(L,N,...c){return Z(N,c)}},"3C/r":function(ge,q){var _=function(U,L){this.image=U,this.repeat=L,this.type="pattern"};_.prototype.getCanvasPattern=function(U){return U.createPattern(this.image,this.repeat||"repeat")};var Z=_;ge.exports=Z},"3CBa":function(ge,q,_){var Z=_("hydK"),U=Z.createElement,L=_("bYtY"),N=_("SUKs"),c=_("y+Vt"),u=_("Dagg"),M=_("dqUG"),g=_("DBLp"),e=_("sW+o"),m=_("n6Mw"),r=_("vKoX"),h=_("P47w"),a=h.path,l=h.image,d=h.text;function y(o){return parseInt(o,10)}function s(o){return o instanceof c?a:o instanceof u?l:o instanceof M?d:a}function p(o,f){return f&&o&&f.parentNode!==o}function n(o,f,E){if(p(o,f)&&E){var O=E.nextSibling;O?o.insertBefore(f,O):o.appendChild(f)}}function i(o,f){if(p(o,f)){var E=o.firstChild;E?o.insertBefore(f,E):o.appendChild(f)}}function v(o,f){f&&o&&f.parentNode===o&&o.removeChild(f)}function C(o){return o.__textSvgEl}function R(o){return o.__svgEl}var w=function(o,f,E,O){this.root=o,this.storage=f,this._opts=E=L.extend({},E||{});var S=U("svg");S.setAttribute("xmlns","http://www.w3.org/2000/svg"),S.setAttribute("version","1.1"),S.setAttribute("baseProfile","full"),S.style.cssText="user-select:none;position:absolute;left:0;top:0;";var b=U("g");S.appendChild(b);var D=U("g");S.appendChild(D),this.gradientManager=new e(O,D),this.clipPathManager=new m(O,D),this.shadowManager=new r(O,D);var P=document.createElement("div");P.style.cssText="overflow:hidden;position:relative",this._svgDom=S,this._svgRoot=D,this._backgroundRoot=b,this._viewport=P,o.appendChild(P),P.appendChild(S),this.resize(E.width,E.height),this._visibleList=[]};w.prototype={constructor:w,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getSvgDom:function(){return this._svgDom},getSvgRoot:function(){return this._svgRoot},getViewportRootOffset:function(){var o=this.getViewportRoot();if(o)return{offsetLeft:o.offsetLeft||0,offsetTop:o.offsetTop||0}},refresh:function(){var o=this.storage.getDisplayList(!0);this._paintList(o)},setBackgroundColor:function(o){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var f=U("rect");f.setAttribute("width",this.getWidth()),f.setAttribute("height",this.getHeight()),f.setAttribute("x",0),f.setAttribute("y",0),f.setAttribute("id",0),f.style.fill=o,this._backgroundRoot.appendChild(f),this._backgroundNode=f},_paintList:function(o){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var f=this._svgRoot,E=this._visibleList,O=o.length,S=[],b;for(b=0;b<O;b++){var D=o[b],P=s(D),I=R(D)||C(D);D.invisible||(D.__dirty&&(P&&P.brush(D),this.clipPathManager.update(D),D.style&&(this.gradientManager.update(D.style.fill),this.gradientManager.update(D.style.stroke),this.shadowManager.update(I,D)),D.__dirty=!1),S.push(D))}var F=g(E,S),K;for(b=0;b<F.length;b++){var j=F[b];if(j.removed)for(var Y=0;Y<j.count;Y++){var D=E[j.indices[Y]],I=R(D),W=C(D);v(f,I),v(f,W)}}for(b=0;b<F.length;b++){var j=F[b];if(j.added)for(var Y=0;Y<j.count;Y++){var D=S[j.indices[Y]],I=R(D),W=C(D);K?n(f,I,K):i(f,I),I?n(f,W,I):K?n(f,W,K):i(f,W),n(f,W,I),K=W||I||K,this.gradientManager.addWithoutUpdate(I||W,D),this.shadowManager.addWithoutUpdate(I||W,D),this.clipPathManager.markUsed(D)}else if(!j.removed)for(var Y=0;Y<j.count;Y++){var D=S[j.indices[Y]],I=R(D),W=C(D),I=R(D),W=C(D);this.gradientManager.markUsed(D),this.gradientManager.addWithoutUpdate(I||W,D),this.shadowManager.markUsed(D),this.shadowManager.addWithoutUpdate(I||W,D),this.clipPathManager.markUsed(D),W&&n(f,W,I),K=I||W||K}}this.gradientManager.removeUnused(),this.clipPathManager.removeUnused(),this.shadowManager.removeUnused(),this._visibleList=S},_getDefs:function(o){var f=this._svgDom,E=f.getElementsByTagName("defs");if(E.length===0)if(o){var E=f.insertBefore(U("defs"),f.firstChild);return E.contains||(E.contains=function(S){var b=E.children;if(!b)return!1;for(var D=b.length-1;D>=0;--D)if(b[D]===S)return!0;return!1}),E}else return null;else return E[0]},resize:function(o,f){var E=this._viewport;E.style.display="none";var O=this._opts;if(o!=null&&(O.width=o),f!=null&&(O.height=f),o=this._getSize(0),f=this._getSize(1),E.style.display="",this._width!==o||this._height!==f){this._width=o,this._height=f;var S=E.style;S.width=o+"px",S.height=f+"px";var b=this._svgDom;b.setAttribute("width",o),b.setAttribute("height",f)}this._backgroundNode&&(this._backgroundNode.setAttribute("width",o),this._backgroundNode.setAttribute("height",f))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(o){var f=this._opts,E=["width","height"][o],O=["clientWidth","clientHeight"][o],S=["paddingLeft","paddingTop"][o],b=["paddingRight","paddingBottom"][o];if(f[E]!=null&&f[E]!=="auto")return parseFloat(f[E]);var D=this.root,P=document.defaultView.getComputedStyle(D);return(D[O]||y(P[E])||y(D.style[E]))-(y(P[S])||0)-(y(P[b])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},toDataURL:function(){this.refresh();var o=encodeURIComponent(this._svgDom.outerHTML.replace(/></g,`>
\r<`));return"data:image/svg+xml;charset=UTF-8,"+o}};function x(o){return function(){N('In SVG mode painter not support method "'+o+'"')}}L.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","pathToImage"],function(o){w.prototype[o]=x(o)});var A=w;ge.exports=A},"3I3x":function(ge,q){ge.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAPlJREFUWEftVksOgjAQnSlX6l7YiXeQeBPlJgbvIO6o+17J1hQFW8KnJUVJ7KwYGJrHm8fLQ3gXTfcVAMZNDyAZLy/Jpwegu+wEEo76PV4WqPeu1+3LAcDvGVD71UsQBkRomrDcriCM387MchoGBUS3hxhQVMZBCDm/FgZQmmZyamYMTACwHgZeJiM37b4Q76CEqBc+DBOqH8kot5kZEqZ3I+pzS5AkCQCmGbDRgFp2VwddDfTN9OipAfSVv2DM5gOA9TCwqBHZiNBXHghGNJ+BJY1IRvmkE3ZTS0hE/8dA/cV6DFfpSBmIa82N5b6MyBWv90gWALgy8ASKi7EwHoGZEAAAAABJRU5ErkJggg=="},"3e3G":function(ge,q,_){var Z=_("bYtY"),U=_("QuXc"),L=function(c,u,M,g,e){this.x=c==null?.5:c,this.y=u==null?.5:u,this.r=M==null?.5:M,this.type="radial",this.global=e||!1,U.call(this,g)};L.prototype={constructor:L},Z.inherits(L,U);var N=L;ge.exports=N},"3gBT":function(ge,q){var _=2311;function Z(){return _++}ge.exports=Z},"3wET":function(ge,q){ge.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAACE5JREFUWAmtWH1snVUZ/533tuvYVreyjGy3Y6srTBo2srI4XbtKgFQxIrKYzeAfk8AfCzHbCkPMjPjBP0aCsjr1D01USCQ6oosyiLF8xMGqc2BHauUj1I2Ntghs7dqytuu99/j7nfOee9/73js+jKd53+d5n3Oe5/zO8zznOafX4EO2ta/bhqlJfM4adFJ1hQWyxiIrM5QNG2CY7EnKei5agMf7V5pR9X3QRv0P1pr77WaO3AG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+nr/CFgFpQOOd+b08M3cVk0S9CYvvB6iyvwRK9uNzxFMncCHqHnow0xV/+pCFj7aN0W7DrRfqhLs5qlZc8AZJ26pXcn1iC/twSq5weuqvvxrH77j+mELUoznD/KJlHpKgqcsumjlve2mqJeWg0nIrtKSpVqHhxcU3wZTGvFRXa9pO7C3/77WqaYE6P23380rRGaaQzcqQVOZQce73YLhLe+rmmq1pMFJxuyytq4Ht15nP8ljpdpX7QiFRyU+EIIQiUJUJ8aKOp51MIereRNvVwAhHVQ8lAWZv588xBf0cY6v8HJMcSXCxQVG14F1ReqWXpeWe4Yf+x59jnMXEa9k2u5mgdrASdHBqV1BTu7hiExGEfPss6b6Rh/9PP1glMDl2xZdtA8vMjRaFTl7tLqVQN86sOukJnmx8jD3FstpTCxw8+ciH+0nvv4gFlb/v9tJbAAAAAElFTkSuQmCC"},"40xk":function(ge,q,_){ge.exports=_.p+"static/l.77ebf9e7.svg"},"4fz+":function(ge,q,_){var Z=_("bYtY"),U=_("1bdT"),L=_("mFDi"),N=function(u){u=u||{},U.call(this,u);for(var M in u)u.hasOwnProperty(M)&&(this[M]=u[M]);this._children=[],this.__storage=null,this.__dirty=!0};N.prototype={constructor:N,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(u){return this._children[u]},childOfName:function(u){for(var M=this._children,g=0;g<M.length;g++)if(M[g].name===u)return M[g]},childCount:function(){return this._children.length},add:function(u){return u&&u!==this&&u.parent!==this&&(this._children.push(u),this._doAdd(u)),this},addBefore:function(u,M){if(u&&u!==this&&u.parent!==this&&M&&M.parent===this){var g=this._children,e=g.indexOf(M);e>=0&&(g.splice(e,0,u),this._doAdd(u))}return this},_doAdd:function(u){u.parent&&u.parent.remove(u),u.parent=this;var M=this.__storage,g=this.__zr;M&&M!==u.__storage&&(M.addToStorage(u),u instanceof N&&u.addChildrenToStorage(M)),g&&g.refresh()},remove:function(u){var M=this.__zr,g=this.__storage,e=this._children,m=Z.indexOf(e,u);return m<0?this:(e.splice(m,1),u.parent=null,g&&(g.delFromStorage(u),u instanceof N&&u.delChildrenFromStorage(g)),M&&M.refresh(),this)},removeAll:function(){var u=this._children,M=this.__storage,g,e;for(e=0;e<u.length;e++)g=u[e],M&&(M.delFromStorage(g),g instanceof N&&g.delChildrenFromStorage(M)),g.parent=null;return u.length=0,this},eachChild:function(u,M){for(var g=this._children,e=0;e<g.length;e++){var m=g[e];u.call(M,m,e)}return this},traverse:function(u,M){for(var g=0;g<this._children.length;g++){var e=this._children[g];u.call(M,e),e.type==="group"&&e.traverse(u,M)}return this},addChildrenToStorage:function(u){for(var M=0;M<this._children.length;M++){var g=this._children[M];u.addToStorage(g),g instanceof N&&g.addChildrenToStorage(u)}},delChildrenFromStorage:function(u){for(var M=0;M<this._children.length;M++){var g=this._children[M];u.delFromStorage(g),g instanceof N&&g.delChildrenFromStorage(u)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(u){for(var M=null,g=new L(0,0,0,0),e=u||this._children,m=[],r=0;r<e.length;r++){var h=e[r];if(h.ignore||h.invisible)continue;var a=h.getBoundingRect(),l=h.getLocalTransform(m);l?(g.copy(a),g.applyTransform(l),M=M||g.clone(),M.union(g)):(M=M||a.clone(),M.union(a))}return M||g}},Z.inherits(N,U);var c=N;ge.exports=c},"4mN7":function(ge,q,_){var Z=_("QBsz"),U=_("Sj9i"),L=Math.min,N=Math.max,c=Math.sin,u=Math.cos,M=Math.PI*2,g=Z.create(),e=Z.create(),m=Z.create();function r(p,n,i){if(p.length===0)return;var v=p[0],C=v[0],R=v[0],w=v[1],x=v[1],A;for(A=1;A<p.length;A++)v=p[A],C=L(C,v[0]),R=N(R,v[0]),w=L(w,v[1]),x=N(x,v[1]);n[0]=C,n[1]=w,i[0]=R,i[1]=x}function h(p,n,i,v,C,R){C[0]=L(p,i),C[1]=L(n,v),R[0]=N(p,i),R[1]=N(n,v)}var a=[],l=[];function d(p,n,i,v,C,R,w,x,A,o){var f=U.cubicExtrema,E=U.cubicAt,O,S=f(p,i,C,w,a);for(A[0]=Infinity,A[1]=Infinity,o[0]=-Infinity,o[1]=-Infinity,O=0;O<S;O++){var b=E(p,i,C,w,a[O]);A[0]=L(b,A[0]),o[0]=N(b,o[0])}for(S=f(n,v,R,x,l),O=0;O<S;O++){var D=E(n,v,R,x,l[O]);A[1]=L(D,A[1]),o[1]=N(D,o[1])}A[0]=L(p,A[0]),o[0]=N(p,o[0]),A[0]=L(w,A[0]),o[0]=N(w,o[0]),A[1]=L(n,A[1]),o[1]=N(n,o[1]),A[1]=L(x,A[1]),o[1]=N(x,o[1])}function y(p,n,i,v,C,R,w,x){var A=U.quadraticExtremum,o=U.quadraticAt,f=N(L(A(p,i,C),1),0),E=N(L(A(n,v,R),1),0),O=o(p,i,C,f),S=o(n,v,R,E);w[0]=L(p,C,O),w[1]=L(n,R,S),x[0]=N(p,C,O),x[1]=N(n,R,S)}function s(p,n,i,v,C,R,w,x,A){var o=Z.min,f=Z.max,E=Math.abs(C-R);if(E%M<1e-4&&E>1e-4){x[0]=p-i,x[1]=n-v,A[0]=p+i,A[1]=n+v;return}if(g[0]=u(C)*i+p,g[1]=c(C)*v+n,e[0]=u(R)*i+p,e[1]=c(R)*v+n,o(x,g,e),f(A,g,e),C=C%M,C<0&&(C=C+M),R=R%M,R<0&&(R=R+M),C>R&&!w?R+=M:C<R&&w&&(C+=M),w){var O=R;R=C,C=O}for(var S=0;S<R;S+=Math.PI/2)S>C&&(m[0]=u(S)*i+p,m[1]=c(S)*v+n,o(x,m,x),f(A,m,A))}q.fromPoints=r,q.fromLine=h,q.fromCubic=d,q.fromQuadratic=y,q.fromArc=s},"4qgm":function(ge,q){ge.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAAwCAYAAABE1blzAAAIeUlEQVRoQ72aa2wU1xXHf2dm1jYEBClJGgofIFJLU0W04AdQWgJSW0UprZRIpB/aJBTxStIShWchJvbytA2lBCKKeajhQ5s2tGpFK1G1UowqKNj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AiFgi+jaAEpwEklTWyuBsHFFjSMELImupZFEOh+gcUscye2KkmAIWBM9ldFkeL8h6hYXgVyLQEiia324i3OE+LBlrpXbnXiCIWBKdF/WW0n2nf0f20ow0F1xY4+AIdG1PpT2+ZZXi/2U3BFdBJxHIAvRNfX150/QaOn8cG6PLgI5g0BWoicj3+D2fSM7Zybljuoi4DQCmYiupdKNDEw+GeH00G5/LgKxQ+A80bVUmpLhzcVSMHbDuyO5CMQGAS/Rtf6U55Q3sNnZj2jFRgZ3FBcBSwQ83pTOG7z5EQMy11i2cyu4COQqBDxaMq8BvXPVrN3JugiEiYClC0CY/bnVXQRii0DHWkEJbYKG95ABnmSX6LFdFnc0pxEISXTPWTxaN+Ztn+US3Wng3f5ii4A50U/hydOZeT94P8rkEj22y+KO5jQCRkT3eI6T5GnPHH/ea5foTgPv9hdbBLIS/RD58t7C7C0rAyfiEj22y+KO5jQCmYm+j3yeG5m97ZvgYVyiOw28219sEfATfTd5klozZ2vAR6b8U3GJHttlcUdzGgFF9J8gbyvmb/nFrHuX6E4D7/YXWwTurLWJQnnbMGPLnlADu0SP7bK4ozmNQLe6pZn2wwGrbv8PSygpSs9Cw9cAAAAASUVORK5CYII="},"4xil":function(ge,q,_){ge.exports={watermark:"watermark___2DVjg",videovideo:"videovideo___3jScv",animate__loop:"animate__loop___36IZ1",upDown:"upDown___3FGkz",container:"container___GV_Ds","video-container":"video-container___35tqx","video-controls":"video-controls___u99fM",hide:"hide___2GDit","video-progress":"video-progress___2LKQJ",seek:"seek___3b-US","seek-tooltip":"seek-tooltip___bZ9sZ","bottom-controls":"bottom-controls___74sQw","left-controls":"left-controls___2kBb3","right-controls":"right-controls___3oxDi","volume-controls":"volume-controls___QLaWH","fullscreen-button":"fullscreen-button___2nHzc","fullscreen-button1":"fullscreen-button1___1murk","pip-button":"pip-button___18qQG","playback-animation":"playback-animation___gCL6X",volume:"volume___10eUe",hidden:"hidden___2JBJW"}},"55Ip":function(ge,q,_){"use strict";_.d(q,"a",function(){return n});var Z=_("Ty5D"),U=_("dI71"),L=_("q1tI"),N=_.n(L),c=_("YS25"),u=_("17x9"),M=_.n(u),g=_("wx14"),e=_("zLVn"),m=_("9R94"),r=function(o){Object(U.a)(f,o);function f(){for(var O,S=arguments.length,b=new Array(S),D=0;D<S;D++)b[D]=arguments[D];return O=o.call.apply(o,[this].concat(b))||this,O.history=Object(c.a)(O.props),O}var E=f.prototype;return E.render=function(){return N.a.createElement(Z.c,{history:this.history,children:this.props.children})},f}(N.a.Component),h=function(o){Object(U.a)(f,o);function f(){for(var O,S=arguments.length,b=new Array(S),D=0;D<S;D++)b[D]=arguments[D];return O=o.call.apply(o,[this].concat(b))||this,O.history=Object(c.b)(O.props),O}var E=f.prototype;return E.render=function(){return N.a.createElement(Z.c,{history:this.history,children:this.props.children})},f}(N.a.Component),a=function(f,E){return typeof f=="function"?f(E):f},l=function(f,E){return typeof f=="string"?Object(c.c)(f,null,null,E):f},d=function(f){return f},y=N.a.forwardRef;typeof y=="undefined"&&(y=d);function s(o){return!!(o.metaKey||o.altKey||o.ctrlKey||o.shiftKey)}var p=y(function(o,f){var E=o.innerRef,O=o.navigate,S=o.onClick,b=Object(e.a)(o,["innerRef","navigate","onClick"]),D=b.target,P=Object(g.a)({},b,{onClick:function(F){try{S&&S(F)}catch(K){throw F.preventDefault(),K}!F.defaultPrevented&&F.button===0&&(!D||D==="_self")&&!s(F)&&(F.preventDefault(),O())}});return d!==y?P.ref=f||E:P.ref=E,N.a.createElement("a",P)}),n=y(function(o,f){var E=o.component,O=E===void 0?p:E,S=o.replace,b=o.to,D=o.innerRef,P=Object(e.a)(o,["component","replace","to","innerRef"]);return N.a.createElement(Z.e.Consumer,null,function(I){I||Object(m.a)(!1);var F=I.history,K=l(a(b,I.location),I.location),j=K?F.createHref(K):"",Y=Object(g.a)({},P,{href:j,navigate:function(){var Q=a(b,I.location),ie=S?F.replace:F.push;ie(Q)}});return d!==y?Y.ref=f||D:Y.innerRef=D,N.a.createElement(O,Y)})});if(!1)var i,v;var C=function(f){return f},R=N.a.forwardRef;typeof R=="undefined"&&(R=C);function w(){for(var o=arguments.length,f=new Array(o),E=0;E<o;E++)f[E]=arguments[E];return f.filter(function(O){return O}).join(" ")}var x=R(function(o,f){var E=o["aria-current"],O=E===void 0?"page":E,S=o.activeClassName,b=S===void 0?"active":S,D=o.activeStyle,P=o.className,I=o.exact,F=o.isActive,K=o.location,j=o.sensitive,Y=o.strict,W=o.style,Q=o.to,ie=o.innerRef,Ee=Object(e.a)(o,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return N.a.createElement(Z.e.Consumer,null,function(pe){pe||Object(m.a)(!1);var De=K||pe.location,Me=l(a(Q,De),De),Ue=Me.pathname,Ie=Ue&&Ue.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),ne=Ie?Object(Z.f)(De.pathname,{path:Ie,exact:I,sensitive:j,strict:Y}):null,B=!!(F?F(ne,De):ne),z=B?w(P,b):P,H=B?Object(g.a)({},W,{},D):W,ee=Object(g.a)({"aria-current":B&&O||null,className:z,style:H,to:Me},Ee);return C!==R?ee.ref=f||ie:ee.innerRef=ie,N.a.createElement(n,ee)})});if(!1)var A},"59Ip":function(ge,q,_){var Z=_("Sj9i");function U(L,N,c,u,M,g,e,m,r,h,a){if(r===0)return!1;var l=r;if(a>N+l&&a>u+l&&a>g+l&&a>m+l||a<N-l&&a<u-l&&a<g-l&&a<m-l||h>L+l&&h>c+l&&h>M+l&&h>e+l||h<L-l&&h<c-l&&h<M-l&&h<e-l)return!1;var d=Z.cubicProjectPoint(L,N,c,u,M,g,e,m,h,a,null);return d<=l/2}q.containStroke=U},"5D2P":function(ge,q){ge.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAFTklEQVRoQ91aS4xURRQ993UzUUZcqFEc4meh0cQFSlwgrvAHSgQWhOhCk4GZqmdw+ERUWDkrBMUBnIzzqqYjcTaaGBL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plHxYEd4SR04kRER0ul0ur169dLWKVqYb7/IpVSjHB9IctSShzQWq9JQySMeyG/MI1ewhxYnqeYq2itnePYGPMmgO6iyAP4v5gTwBzl9Cta68RdnDHmWQAtz3WyOjRTTodZYSsRvZoRbLvWemeU7vDw8P2e532eETtSjZmf931/d31HtkguHdIWUw3oWmttm60NDQ1dVS6XZat6V8EOTMplitwpNJ5K7ALwQg5Da7XWszbnxphRAE/lwIxSnQnd5mMVGYWsZ///MvMK3/ePiFVjjFyADLSBvCyo0vuzj1VCo3J5kflgi5lPE9EKIprHzFIqtKO1PtiqWzLGyIb6oRyW5ZynBOCOHBhRqmNa61nHnhedjQZBcDsRycS7pg0E8kD+LZse3/d/agS5/I7XG0JpI4B9ebqsQN1NWuuWly2X7xVTvfestXfXarWDRHRTgT2aCMXMv3metzJp/5F4SymWhoaG5pfLZVlpL9k1a7VaVRs2bEi89HZyIOwu2b1tukQX3TL3OHGYsjw1GBwc7Oro6Kg7UthTA7mhn5yc3NfX1ycPQ5xbmhGYBSqPPYhINkMPAJDHHrJ4pWlTAOShx1FmvnSPPVoxbHxu43neAmauP7eRf2nTz2yI6FStViv0uc1/ndZCH8rgOooAAAAASUVORK5CYII="},"5VLF":function(ge,q,_){"use strict";var Z,U;function L(N,c,u){var M=function(g,e){return N.js_beautify(g,e)};return M.js=N.js_beautify,M.css=c.css_beautify,M.html=u.html_beautify,M.js_beautify=N.js_beautify,M.css_beautify=c.css_beautify,M.html_beautify=u.html_beautify,M}!(Z=[_("6UM0"),_("TXwP"),_("psGv")],U=function(N,c,u){return L(N,c,u)}.apply(q,Z),U!==void 0&&(ge.exports=U))},"5Y4S":function(ge,q,_){"use strict";_.d(q,"a",function(){return L});var Z=_("MNsG");const U=Z.b.performance&&typeof Z.b.performance.now=="function";class L{constructor(N){this._highResolution=U&&N,this._startTime=this._now(),this._stopTime=-1}static create(N=!0){return new L(N)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?Z.b.performance.now():Date.now()}}},"6+eU":function(ge,q,_){"use strict";_.d(q,"a",function(){return R});var Z=_("wx14"),U=_("rePB"),L=_("VTBJ"),N=_("1OyB"),c=_("vuIU"),u=_("Ji7U"),M=_("LK+K"),g=_("q1tI"),e=_.n(g),m=_("TSYQ"),r=_.n(m),h=function(x){var A,o="".concat(x.rootPrefixCls,"-item"),f=r()(o,"".concat(o,"-").concat(x.page),(A={},Object(U.a)(A,"".concat(o,"-active"),x.active),Object(U.a)(A,x.className,!!x.className),Object(U.a)(A,"".concat(o,"-disabled"),!x.page),A)),E=function(){x.onClick(x.page)},O=function(b){x.onKeyPress(b,x.onClick,x.page)};return e.a.createElement("li",{title:x.showTitle?x.page:null,className:f,onClick:E,onKeyPress:O,tabIndex:"0"},x.itemRender(x.page,"page",e.a.createElement("a",{rel:"nofollow"},x.page)))},a=h,l={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},d=function(w){Object(u.a)(A,w);var x=Object(M.a)(A);function A(){var o;Object(N.a)(this,A);for(var f=arguments.length,E=new Array(f),O=0;O<f;O++)E[O]=arguments[O];return o=x.call.apply(x,[this].concat(E)),o.state={goInputText:""},o.buildOptionText=function(S){return"".concat(S," ").concat(o.props.locale.items_per_page)},o.changeSize=function(S){o.props.changeSize(Number(S))},o.handleChange=function(S){o.setState({goInputText:S.target.value})},o.handleBlur=function(S){var b=o.props,D=b.goButton,P=b.quickGo,I=b.rootPrefixCls,F=o.state.goInputText;if(D||F==="")return;if(S.relatedTarget&&(S.relatedTarget.className.indexOf("".concat(I,"-prev"))>=0||S.relatedTarget.className.indexOf("".concat(I,"-next"))>=0))return;o.setState({goInputText:""}),P(o.getValidValue())},o.go=function(S){var b=o.state.goInputText;if(b==="")return;(S.keyCode===l.ENTER||S.type==="click")&&(o.setState({goInputText:""}),o.props.quickGo(o.getValidValue()))},o}return Object(c.a)(A,[{key:"getValidValue",value:function(){var f=this.state,E=f.goInputText,O=f.current;return!E||isNaN(E)?O:Number(E)}},{key:"getPageSizeOptions",value:function(){var f=this.props,E=f.pageSize,O=f.pageSizeOptions;return O.some(function(S){return S.toString()===E.toString()})?O:O.concat([E.toString()]).sort(function(S,b){var D=isNaN(Number(S))?0:Number(S),P=isNaN(Number(b))?0:Number(b);return D-P})}},{key:"render",value:function(){var f=this,E=this.props,O=E.pageSize,S=E.locale,b=E.rootPrefixCls,D=E.changeSize,P=E.quickGo,I=E.goButton,F=E.selectComponentClass,K=E.buildOptionText,j=E.selectPrefixCls,Y=E.disabled,W=this.state.goInputText,Q="".concat(b,"-options"),ie=F,Ee=null,pe=null,De=null;if(!D&&!P)return null;var Me=this.getPageSizeOptions();if(D&&ie){var Ue=Me.map(function(Ie,ne){return e.a.createElement(ie.Option,{key:ne,value:Ie.toString()},(K||f.buildOptionText)(Ie))});Ee=e.a.createElement(ie,{disabled:Y,prefixCls:j,showSearch:!1,className:"".concat(Q,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(O||Me[0]).toString(),onChange:this.changeSize,getPopupContainer:function(ne){return ne.parentNode}},Ue)}return P&&(I&&(De=typeof I=="boolean"?e.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Y,className:"".concat(Q,"-quick-jumper-button")},S.jump_to_confirm):e.a.createElement("span",{onClick:this.go,onKeyUp:this.go},I)),pe=e.a.createElement("div",{className:"".concat(Q,"-quick-jumper")},S.jump_to,e.a.createElement("input",{disabled:Y,type:"text",value:W,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),S.page,De)),e.a.createElement("li",{className:"".concat(Q)},Ee,pe)}}]),A}(e.a.Component);d.defaultProps={pageSizeOptions:["10","20","50","100"]};var y=d,s=_("N2Kk");function p(){}function n(w){return typeof w=="number"&&isFinite(w)&&Math.floor(w)===w}function i(w,x,A){return A}function v(w,x,A){var o=typeof w=="undefined"?x.pageSize:w;return Math.floor((A.total-1)/o)+1}var C=function(w){Object(u.a)(A,w);var x=Object(M.a)(A);function A(o){var f;Object(N.a)(this,A),f=x.call(this,o),f.getJumpPrevPage=function(){return Math.max(1,f.state.current-(f.props.showLessItems?3:5))},f.getJumpNextPage=function(){return Math.min(v(void 0,f.state,f.props),f.state.current+(f.props.showLessItems?3:5))},f.getItemIcon=function(D,P){var I=f.props.prefixCls,F=D||e.a.createElement("button",{type:"button","aria-label":P,className:"".concat(I,"-item-link")});return typeof D=="function"&&(F=e.a.createElement(D,Object(L.a)({},f.props))),F},f.savePaginationNode=function(D){f.paginationNode=D},f.isValid=function(D){return n(D)&&D!==f.state.current},f.shouldDisplayQuickJumper=function(){var D=f.props,P=D.showQuickJumper,I=D.pageSize,F=D.total;return F<=I?!1:P},f.handleKeyDown=function(D){(D.keyCode===l.ARROW_UP||D.keyCode===l.ARROW_DOWN)&&D.preventDefault()},f.handleKeyUp=function(D){var P=f.getValidValue(D),I=f.state.currentInputValue;P!==I&&f.setState({currentInputValue:P}),D.keyCode===l.ENTER?f.handleChange(P):D.keyCode===l.ARROW_UP?f.handleChange(P-1):D.keyCode===l.ARROW_DOWN&&f.handleChange(P+1)},f.changePageSize=function(D){var P=f.state.current,I=v(D,f.state,f.props);P=P>I?I:P,I===0&&(P=f.state.current),typeof D=="number"&&("pageSize"in f.props||f.setState({pageSize:D}),"current"in f.props||f.setState({current:P,currentInputValue:P})),f.props.onShowSizeChange(P,D),"onChange"in f.props&&f.props.onChange&&f.props.onChange(P,D)},f.handleChange=function(D){var P=f.props.disabled,I=D;if(f.isValid(I)&&!P){var F=v(void 0,f.state,f.props);I>F?I=F:I<1&&(I=1),"current"in f.props||f.setState({current:I,currentInputValue:I});var K=f.state.pageSize;return f.props.onChange(I,K),I}return f.state.current},f.prev=function(){f.hasPrev()&&f.handleChange(f.state.current-1)},f.next=function(){f.hasNext()&&f.handleChange(f.state.current+1)},f.jumpPrev=function(){f.handleChange(f.getJumpPrevPage())},f.jumpNext=function(){f.handleChange(f.getJumpNextPage())},f.hasPrev=function(){return f.state.current>1},f.hasNext=function(){return f.state.current<v(void 0,f.state,f.props)},f.runIfEnter=function(D,P){if(D.key==="Enter"||D.charCode===13){for(var I=arguments.length,F=new Array(I>2?I-2:0),K=2;K<I;K++)F[K-2]=arguments[K];P.apply(void 0,F)}},f.runIfEnterPrev=function(D){f.runIfEnter(D,f.prev)},f.runIfEnterNext=function(D){f.runIfEnter(D,f.next)},f.runIfEnterJumpPrev=function(D){f.runIfEnter(D,f.jumpPrev)},f.runIfEnterJumpNext=function(D){f.runIfEnter(D,f.jumpNext)},f.handleGoTO=function(D){(D.keyCode===l.ENTER||D.type==="click")&&f.handleChange(f.state.currentInputValue)};var E=o.onChange!==p,O="current"in o;O&&!E&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var S=o.defaultCurrent;"current"in o&&(S=o.current);var b=o.defaultPageSize;return"pageSize"in o&&(b=o.pageSize),S=Math.min(S,v(b,void 0,o)),f.state={current:S,currentInputValue:S,pageSize:b},f}return Object(c.a)(A,[{key:"componentDidUpdate",value:function(f,E){var O=this.props.prefixCls;if(E.current!==this.state.current&&this.paginationNode){var S=this.paginationNode.querySelector(".".concat(O,"-item-").concat(E.current));S&&document.activeElement===S&&S.blur()}}},{key:"getValidValue",value:function(f){var E=f.target.value,O=v(void 0,this.state,this.props),S=this.state.currentInputValue,b;return E===""?b=E:isNaN(Number(E))?b=S:E>=O?b=O:b=Number(E),b}},{key:"getShowSizeChanger",value:function(){var f=this.props,E=f.showSizeChanger,O=f.total,S=f.totalBoundaryShowSizeChanger;return typeof E!="undefined"?E:O>S}},{key:"renderPrev",value:function(f){var E=this.props,O=E.prevIcon,S=E.itemRender,b=S(f,"prev",this.getItemIcon(O,"prev page")),D=!this.hasPrev();return Object(g.isValidElement)(b)?Object(g.cloneElement)(b,{disabled:D}):b}},{key:"renderNext",value:function(f){var E=this.props,O=E.nextIcon,S=E.itemRender,b=S(f,"next",this.getItemIcon(O,"next page")),D=!this.hasNext();return Object(g.isValidElement)(b)?Object(g.cloneElement)(b,{disabled:D}):b}},{key:"render",value:function(){var f=this,E=this.props,O=E.prefixCls,S=E.className,b=E.style,D=E.disabled,P=E.hideOnSinglePage,I=E.total,F=E.locale,K=E.showQuickJumper,j=E.showLessItems,Y=E.showTitle,W=E.showTotal,Q=E.simple,ie=E.itemRender,Ee=E.showPrevNextJumpers,pe=E.jumpPrevIcon,De=E.jumpNextIcon,Me=E.selectComponentClass,Ue=E.selectPrefixCls,Ie=E.pageSizeOptions,ne=this.state,B=ne.current,z=ne.pageSize,H=ne.currentInputValue;if(P===!0&&I<=z)return null;var ee=v(void 0,this.state,this.props),X=[],me=null,je=null,Je=null,oe=null,Ae=null,ye=K&&K.goButton,Le=j?1:2,We=B-1>0?B-1:0,Xe=B+1<ee?B+1:ee,ct=Object.keys(this.props).reduce(function(ce,he){return(he.substr(0,5)==="data-"||he.substr(0,5)==="aria-"||he==="role")&&(ce[he]=f.props[he]),ce},{});if(Q)return ye&&(typeof ye=="boolean"?Ae=e.a.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},F.jump_to_confirm):Ae=e.a.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},ye),Ae=e.a.createElement("li",{title:Y?"".concat(F.jump_to).concat(B,"/").concat(ee):null,className:"".concat(O,"-simple-pager")},Ae)),e.a.createElement("ul",Object(Z.a)({className:r()(O,"".concat(O,"-simple"),Object(U.a)({},"".concat(O,"-disabled"),D),S),style:b,ref:this.savePaginationNode},ct),e.a.createElement("li",{title:Y?F.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:r()("".concat(O,"-prev"),Object(U.a)({},"".concat(O,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(We)),e.a.createElement("li",{title:Y?"".concat(B,"/").concat(ee):null,className:"".concat(O,"-simple-pager")},e.a.createElement("input",{type:"text",value:H,disabled:D,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,size:"3"}),e.a.createElement("span",{className:"".concat(O,"-slash")},"/"),ee),e.a.createElement("li",{title:Y?F.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:r()("".concat(O,"-next"),Object(U.a)({},"".concat(O,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(Xe)),Ae);if(ee<=3+Le*2){var lt={locale:F,rootPrefixCls:O,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Y,itemRender:ie};ee||X.push(e.a.createElement(a,Object(Z.a)({},lt,{key:"noPager",page:ee,className:"".concat(O,"-disabled")})));for(var St=1;St<=ee;St+=1){var Dt=B===St;X.push(e.a.createElement(a,Object(Z.a)({},lt,{key:St,page:St,active:Dt})))}}else{var bt=j?F.prev_3:F.prev_5,ht=j?F.next_3:F.next_5;Ee&&(me=e.a.createElement("li",{title:Y?bt:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:r()("".concat(O,"-jump-prev"),Object(U.a)({},"".concat(O,"-jump-prev-custom-icon"),!!pe))},ie(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(pe,"prev page"))),je=e.a.createElement("li",{title:Y?ht:null,key:"next",tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:r()("".concat(O,"-jump-next"),Object(U.a)({},"".concat(O,"-jump-next-custom-icon"),!!De))},ie(this.getJumpNextPage(),"jump-next",this.getItemIcon(De,"next page")))),oe=e.a.createElement(a,{locale:F,last:!0,rootPrefixCls:O,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:ee,page:ee,active:!1,showTitle:Y,itemRender:ie}),Je=e.a.createElement(a,{locale:F,rootPrefixCls:O,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Y,itemRender:ie});var Ut=Math.max(1,B-Le),Ft=Math.min(B+Le,ee);B-1<=Le&&(Ft=1+Le*2),ee-B<=Le&&(Ut=ee-Le*2);for(var ve=Ut;ve<=Ft;ve+=1){var se=B===ve;X.push(e.a.createElement(a,{locale:F,rootPrefixCls:O,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:ve,page:ve,active:se,showTitle:Y,itemRender:ie}))}B-1>=Le*2&&B!==1+2&&(X[0]=Object(g.cloneElement)(X[0],{className:"".concat(O,"-item-after-jump-prev")}),X.unshift(me)),ee-B>=Le*2&&B!==ee-2&&(X[X.length-1]=Object(g.cloneElement)(X[X.length-1],{className:"".concat(O,"-item-before-jump-next")}),X.push(je)),Ut!==1&&X.unshift(Je),Ft!==ee&&X.push(oe)}var le=null;W&&(le=e.a.createElement("li",{className:"".concat(O,"-total-text")},W(I,[I===0?0:(B-1)*z+1,B*z>I?I:B*z])));var fe=!this.hasPrev()||!ee,Re=!this.hasNext()||!ee;return e.a.createElement("ul",Object(Z.a)({className:r()(O,S,Object(U.a)({},"".concat(O,"-disabled"),D)),style:b,unselectable:"unselectable",ref:this.savePaginationNode},ct),le,e.a.createElement("li",{title:Y?F.prev_page:null,onClick:this.prev,tabIndex:fe?null:0,onKeyPress:this.runIfEnterPrev,className:r()("".concat(O,"-prev"),Object(U.a)({},"".concat(O,"-disabled"),fe)),"aria-disabled":fe},this.renderPrev(We)),X,e.a.createElement("li",{title:Y?F.next_page:null,onClick:this.next,tabIndex:Re?null:0,onKeyPress:this.runIfEnterNext,className:r()("".concat(O,"-next"),Object(U.a)({},"".concat(O,"-disabled"),Re)),"aria-disabled":Re},this.renderNext(Xe)),e.a.createElement(y,{disabled:D,locale:F,rootPrefixCls:O,selectComponentClass:Me,selectPrefixCls:Ue,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:B,pageSize:z,pageSizeOptions:Ie,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:ye}))}}],[{key:"getDerivedStateFromProps",value:function(f,E){var O={};if("current"in f&&(O.current=f.current,f.current!==E.current&&(O.currentInputValue=O.current)),"pageSize"in f&&f.pageSize!==E.pageSize){var S=E.current,b=v(f.pageSize,E,f);S=S>b?b:S,"current"in f||(O.current=S,O.currentInputValue=S),O.pageSize=f.pageSize}return O}}]),A}(e.a.Component);C.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:p,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:p,locale:s.a,style:{},itemRender:i,totalBoundaryShowSizeChanger:50};var R=C},"69ZJ":function(ge,q,_){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var Z=_("q1tI");q.classNames=function(U){return typeof U=="string"?U.split(".").join(" ").trim():U instanceof HTMLElement?U.className:""},q.validateChildren=function(U){var L=!0;return Array.isArray(U)?Z.Children.forEach(U,function(N){Z.isValidElement(N)||(L=!1)}):L=Z.isValidElement(U),L},q.isReactElement=function(U){return Z.isValidElement(U)&&(typeof U.type=="string"||typeof U.type=="function"||typeof U.type=="object")},q.isModuleAvailable=function(U,L){for(var N=!1,c=0;c<U.length;c++)if(U[c].name===L){N=!0;break}return N}},"6Fuo":function(ge,q,_){ge.exports={flex_box_center:"flex_box_center___3p8A0",flex_space_between:"flex_space_between___2wMwo",flex_box_vertical_center:"flex_box_vertical_center___2fKhV",flex_box_center_end:"flex_box_center_end___27Yk8",flex_box_column:"flex_box_column___3Khbo",rightMenu:"rightMenu___20Eel",joinMenu:"joinMenu___2blJt",joinBoard:"joinBoard___2XUXK",joinCol:"joinCol___3o5gp"}},"6GrX":function(ge,q,_){var Z=_("mFDi"),U=_("Xnb7"),L=_("bYtY"),N=L.getContext,c=L.extend,u=L.retrieve2,M=L.retrieve3,g=L.trim,e={},m=0,r=5e3,h=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,a="12px sans-serif",l={};function d(P,I){l[P]=I}function y(P,I){I=I||a;var F=P+":"+I;if(e[F])return e[F];for(var K=(P+"").split(`
`),j=0,Y=0,W=K.length;Y<W;Y++)j=Math.max(E(K[Y],I).width,j);return m>r&&(m=0,e={}),m++,e[F]=j,j}function s(P,I,F,K,j,Y,W,Q){return W?n(P,I,F,K,j,Y,W,Q):p(P,I,F,K,j,Y,Q)}function p(P,I,F,K,j,Y,W){var Q=O(P,I,j,Y,W),ie=y(P,I);j&&(ie+=j[1]+j[3]);var Ee=Q.outerHeight,pe=i(0,ie,F),De=v(0,Ee,K),Me=new Z(pe,De,ie,Ee);return Me.lineHeight=Q.lineHeight,Me}function n(P,I,F,K,j,Y,W,Q){var ie=S(P,{rich:W,truncate:Q,font:I,textAlign:F,textPadding:j,textLineHeight:Y}),Ee=ie.outerWidth,pe=ie.outerHeight,De=i(0,Ee,F),Me=v(0,pe,K);return new Z(De,Me,Ee,pe)}function i(P,I,F){return F==="right"?P-=I:F==="center"&&(P-=I/2),P}function v(P,I,F){return F==="middle"?P-=I/2:F==="bottom"&&(P-=I),P}function C(P,I,F){var K=I.textPosition,j=I.textDistance,Y=F.x,W=F.y;j=j||0;var Q=F.height,ie=F.width,Ee=Q/2,pe="left",De="top";switch(K){case"left":Y-=j,W+=Ee,pe="right",De="middle";break;case"right":Y+=j+ie,W+=Ee,De="middle";break;case"top":Y+=ie/2,W-=j,pe="center",De="bottom";break;case"bottom":Y+=ie/2,W+=Q+j,pe="center";break;case"inside":Y+=ie/2,W+=Ee,pe="center",De="middle";break;case"insideLeft":Y+=j,W+=Ee,De="middle";break;case"insideRight":Y+=ie-j,W+=Ee,pe="right",De="middle";break;case"insideTop":Y+=ie/2,W+=j,pe="center";break;case"insideBottom":Y+=ie/2,W+=Q-j,pe="center",De="bottom";break;case"insideTopLeft":Y+=j,W+=j;break;case"insideTopRight":Y+=ie-j,W+=j,pe="right";break;case"insideBottomLeft":Y+=j,W+=Q-j,De="bottom";break;case"insideBottomRight":Y+=ie-j,W+=Q-j,pe="right",De="bottom";break}return P=P||{},P.x=Y,P.y=W,P.textAlign=pe,P.textVerticalAlign=De,P}function R(P,I,F){var K={textPosition:P,textDistance:F};return C({},K,I)}function w(P,I,F,K,j){if(!I)return"";var Y=(P+"").split(`
`);j=x(I,F,K,j);for(var W=0,Q=Y.length;W<Q;W++)Y[W]=A(Y[W],j);return Y.join(`
`)}function x(P,I,F,K){K=c({},K),K.font=I;var F=u(F,"...");K.maxIterations=u(K.maxIterations,2);var j=K.minChar=u(K.minChar,0);K.cnCharWidth=y("\u56FD",I);var Y=K.ascCharWidth=y("a",I);K.placeholder=u(K.placeholder,"");for(var W=P=Math.max(0,P-1),Q=0;Q<j&&W>=Y;Q++)W-=Y;var ie=y(F,I);return ie>W&&(F="",ie=0),W=P-ie,K.ellipsis=F,K.ellipsisWidth=ie,K.contentWidth=W,K.containerWidth=P,K}function A(P,I){var F=I.containerWidth,K=I.font,j=I.contentWidth;if(!F)return"";var Y=y(P,K);if(Y<=F)return P;for(var W=0;;W++){if(Y<=j||W>=I.maxIterations){P+=I.ellipsis;break}var Q=W===0?o(P,j,I.ascCharWidth,I.cnCharWidth):Y>0?Math.floor(P.length*j/Y):0;P=P.substr(0,Q),Y=y(P,K)}return P===""&&(P=I.placeholder),P}function o(P,I,F,K){for(var j=0,Y=0,W=P.length;Y<W&&j<I;Y++){var Q=P.charCodeAt(Y);j+=0<=Q&&Q<=127?F:K}return Y}function f(P){return y("\u56FD",P)}function E(P,I){return l.measureText(P,I)}l.measureText=function(P,I){var F=N();return F.font=I||a,F.measureText(P)};function O(P,I,F,K,j){P!=null&&(P+="");var Y=u(K,f(I)),W=P?P.split(`
`):[],Q=W.length*Y,ie=Q,Ee=!0;if(F&&(ie+=F[0]+F[2]),P&&j){Ee=!1;var pe=j.outerHeight,De=j.outerWidth;if(pe!=null&&ie>pe)P="",W=[];else if(De!=null)for(var Me=x(De-(F?F[1]+F[3]:0),I,j.ellipsis,{minChar:j.minChar,placeholder:j.placeholder}),Ue=0,Ie=W.length;Ue<Ie;Ue++)W[Ue]=A(W[Ue],Me)}return{lines:W,height:Q,outerHeight:ie,lineHeight:Y,canCacheByTextString:Ee}}function S(P,I){var F={lines:[],width:0,height:0};if(P!=null&&(P+=""),!P)return F;for(var K=h.lastIndex=0,j;(j=h.exec(P))!=null;){var Y=j.index;Y>K&&b(F,P.substring(K,Y)),b(F,j[2],j[1]),K=h.lastIndex}K<P.length&&b(F,P.substring(K,P.length));var W=F.lines,Q=0,ie=0,Ee=[],pe=I.textPadding,De=I.truncate,Me=De&&De.outerWidth,Ue=De&&De.outerHeight;pe&&(Me!=null&&(Me-=pe[1]+pe[3]),Ue!=null&&(Ue-=pe[0]+pe[2]));for(var Ie=0;Ie<W.length;Ie++){for(var ne=W[Ie],B=0,z=0,H=0;H<ne.tokens.length;H++){var ee=ne.tokens[H],X=ee.styleName&&I.rich[ee.styleName]||{},me=ee.textPadding=X.textPadding,je=ee.font=X.font||I.font,Je=ee.textHeight=u(X.textHeight,f(je));if(me&&(Je+=me[0]+me[2]),ee.height=Je,ee.lineHeight=M(X.textLineHeight,I.textLineHeight,Je),ee.textAlign=X&&X.textAlign||I.textAlign,ee.textVerticalAlign=X&&X.textVerticalAlign||"middle",Ue!=null&&Q+ee.lineHeight>Ue)return{lines:[],width:0,height:0};ee.textWidth=y(ee.text,je);var oe=X.textWidth,Ae=oe==null||oe==="auto";if(typeof oe=="string"&&oe.charAt(oe.length-1)==="%")ee.percentWidth=oe,Ee.push(ee),oe=0;else{if(Ae){oe=ee.textWidth;var ye=X.textBackgroundColor,Le=ye&&ye.image;Le&&(Le=U.findExistImage(Le),U.isImageReady(Le)&&(oe=Math.max(oe,Le.width*Je/Le.height)))}var We=me?me[1]+me[3]:0;oe+=We;var Xe=Me!=null?Me-z:null;Xe!=null&&Xe<oe&&(!Ae||Xe<We?(ee.text="",ee.textWidth=oe=0):(ee.text=w(ee.text,Xe-We,je,De.ellipsis,{minChar:De.minChar}),ee.textWidth=y(ee.text,je),oe=ee.textWidth+We))}z+=ee.width=oe,X&&(B=Math.max(B,ee.lineHeight))}ne.width=z,ne.lineHeight=B,Q+=B,ie=Math.max(ie,z)}F.outerWidth=F.width=u(I.textWidth,ie),F.outerHeight=F.height=u(I.textHeight,Q),pe&&(F.outerWidth+=pe[1]+pe[3],F.outerHeight+=pe[0]+pe[2]);for(var Ie=0;Ie<Ee.length;Ie++){var ee=Ee[Ie],ct=ee.percentWidth;ee.width=parseInt(ct,10)/100*ie}return F}function b(P,I,F){for(var K=I==="",j=I.split(`
`),Y=P.lines,W=0;W<j.length;W++){var Q=j[W],ie={styleName:F,text:Q,isLineHolder:!Q&&!K};if(W)Y.push({tokens:[ie]});else{var Ee=(Y[Y.length-1]||(Y[0]={tokens:[]})).tokens,pe=Ee.length;pe===1&&Ee[0].isLineHolder?Ee[0]=ie:(Q||!pe||K)&&Ee.push(ie)}}}function D(P){var I=(P.fontSize||P.fontFamily)&&[P.fontStyle,P.fontWeight,(P.fontSize||12)+"px",P.fontFamily||"sans-serif"].join(" ");return I&&g(I)||P.textFont||P.font}q.DEFAULT_FONT=a,q.$override=d,q.getWidth=y,q.getBoundingRect=s,q.adjustTextX=i,q.adjustTextY=v,q.calculateTextPosition=C,q.adjustTextPositionOnRect=R,q.truncateText=w,q.getLineHeight=f,q.measureText=E,q.parsePlainText=O,q.parseRichText=S,q.makeFont=D},"6UM0":function(ge,q,_){var Z,U;(function(){var L;(function(){"use strict";var c=[function(e,m,r){var h=r(1).Beautifier,a=r(5).Options;function l(d,y){var s=new h(d,y);return s.beautify()}e.exports=l,e.exports.defaultOptions=function(){return new a}},function(e,m,r){var h=r(2).Output,a=r(3).Token,l=r(4),d=r(5).Options,y=r(7).Tokenizer,s=r(7).line_starters,p=r(7).positionable_operators,n=r(7).TOKEN;function i(j,Y){return Y.indexOf(j)!==-1}function v(j){return j.replace(/^\s+/g,"")}function C(j){for(var Y={},W=0;W<j.length;W++)Y[j[W].replace(/-/g,"_")]=j[W];return Y}function R(j,Y){return j&&j.type===n.RESERVED&&j.text===Y}function w(j,Y){return j&&j.type===n.RESERVED&&i(j.text,Y)}var x=["case","return","do","if","throw","else","await","break","continue","async"],A=["before-newline","after-newline","preserve-newline"],o=C(A),f=[o.before_newline,o.preserve_newline],E={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function O(j,Y){if(Y.multiline_frame||Y.mode===E.ForInitializer||Y.mode===E.Conditional)return;j.remove_indent(Y.start_line_index)}function S(j){j=j.replace(l.allLineBreaks,`
`);for(var Y=[],W=j.indexOf(`
`);W!==-1;)Y.push(j.substring(0,W)),j=j.substring(W+1),W=j.indexOf(`
`);return j.length&&Y.push(j),Y}function b(j){return j===E.ArrayLiteral}function D(j){return i(j,[E.Expression,E.ForInitializer,E.Conditional])}function P(j,Y){for(var W=0;W<j.length;W++){var Q=j[W].trim();if(Q.charAt(0)!==Y)return!1}return!0}function I(j,Y){for(var W=0,Q=j.length,ie;W<Q;W++)if(ie=j[W],ie&&ie.indexOf(Y)!==0)return!1;return!0}function F(j,Y){Y=Y||{},this._source_text=j||"",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 d(Y)}F.prototype.create_flags=function(j,Y){var W=0;j&&(W=j.indentation_level,!this._output.just_added_newline()&&j.line_indent_level>W&&(W=j.line_indent_level));var Q={mode:Y,parent:j,last_token:j?j.last_token:new a(n.START_BLOCK,""),last_word:j?j.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:W,alignment:0,line_indent_level:j?j.line_indent_level:W,start_line_index:this._output.get_line_number(),ternary_depth:0};return Q},F.prototype._reset=function(j){var Y=j.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new h(this._options,Y),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(E.BlockStatement);var W=new y(j,this._options);return this._tokens=W.tokenize(),j},F.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var j,Y=this._reset(this._source_text),W=this._options.eol;this._options.eol==="auto"&&(W=`
`,Y&&l.lineBreak.test(Y||"")&&(W=Y.match(l.lineBreak)[0]));for(var Q=this._tokens.next();Q;)this.handle_token(Q),this._last_last_text=this._flags.last_token.text,this._flags.last_token=Q,Q=this._tokens.next();return j=this._output.get_code(W),j},F.prototype.handle_token=function(j,Y){j.type===n.START_EXPR?this.handle_start_expr(j):j.type===n.END_EXPR?this.handle_end_expr(j):j.type===n.START_BLOCK?this.handle_start_block(j):j.type===n.END_BLOCK?this.handle_end_block(j):j.type===n.WORD?this.handle_word(j):j.type===n.RESERVED?this.handle_word(j):j.type===n.SEMICOLON?this.handle_semicolon(j):j.type===n.STRING?this.handle_string(j):j.type===n.EQUALS?this.handle_equals(j):j.type===n.OPERATOR?this.handle_operator(j):j.type===n.COMMA?this.handle_comma(j):j.type===n.BLOCK_COMMENT?this.handle_block_comment(j,Y):j.type===n.COMMENT?this.handle_comment(j,Y):j.type===n.DOT?this.handle_dot(j):j.type===n.EOF?this.handle_eof(j):j.type===n.UNKNOWN?this.handle_unknown(j,Y):this.handle_unknown(j,Y)},F.prototype.handle_whitespace_and_comments=function(j,Y){var W=j.newlines,Q=this._options.keep_array_indentation&&b(this._flags.mode);if(j.comments_before)for(var ie=j.comments_before.next();ie;)this.handle_whitespace_and_comments(ie,Y),this.handle_token(ie,Y),ie=j.comments_before.next();if(Q)for(var Ee=0;Ee<W;Ee+=1)this.print_newline(Ee>0,Y);else if(this._options.max_preserve_newlines&&W>this._options.max_preserve_newlines&&(W=this._options.max_preserve_newlines),this._options.preserve_newlines&&W>1){this.print_newline(!1,Y);for(var pe=1;pe<W;pe+=1)this.print_newline(!0,Y)}};var K=["async","break","continue","return","throw","yield"];F.prototype.allow_wrap_or_preserved_newline=function(j,Y){if(Y=Y===void 0?!1:Y,this._output.just_added_newline())return;var W=this._options.preserve_newlines&&j.newlines||Y,Q=i(this._flags.last_token.text,p)||i(j.text,p);if(Q){var ie=i(this._flags.last_token.text,p)&&i(this._options.operator_position,f)||i(j.text,p);W=W&&ie}if(W)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(w(this._flags.last_token,K))return;this._output.set_wrap_point()}},F.prototype.print_newline=function(j,Y){if(!Y&&(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 W=this._tokens.peek();this._flags.mode===E.Statement&&!(this._flags.if_block&&R(W,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(j)&&(this._flags.multiline_frame=!0)},F.prototype.print_token_line_indentation=function(j){this._output.just_added_newline()&&(this._options.keep_array_indentation&&j.newlines&&(j.text==="["||b(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(j.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))},F.prototype.print_token=function(j){if(this._output.raw){this._output.add_raw_token(j);return}if(this._options.comma_first&&j.previous&&j.previous.type===n.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var Y=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(Y),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(j),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(j),this._output.non_breaking_space=!0,this._output.add_token(j.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},F.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},F.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))},F.prototype.set_mode=function(j){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,j),this._flags=this.create_flags(this._previous_flags,j),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},F.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===E.Statement&&O(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},F.prototype.start_of_object_property=function(){return this._flags.parent.mode===E.ObjectLiteral&&this._flags.mode===E.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||w(this._flags.last_token,["get","set"]))},F.prototype.start_of_statement=function(j){var Y=!1;return Y=Y||w(this._flags.last_token,["var","let","const"])&&j.type===n.WORD,Y=Y||R(this._flags.last_token,"do"),Y=Y||!(this._flags.parent.mode===E.ObjectLiteral&&this._flags.mode===E.Statement)&&w(this._flags.last_token,K)&&!j.newlines,Y=Y||R(this._flags.last_token,"else")&&!(R(j,"if")&&!j.comments_before),Y=Y||this._flags.last_token.type===n.END_EXPR&&(this._previous_flags.mode===E.ForInitializer||this._previous_flags.mode===E.Conditional),Y=Y||this._flags.last_token.type===n.WORD&&this._flags.mode===E.BlockStatement&&!this._flags.in_case&&!(j.text==="--"||j.text==="++")&&this._last_last_text!=="function"&&j.type!==n.WORD&&j.type!==n.RESERVED,Y=Y||this._flags.mode===E.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||w(this._flags.last_token,["get","set"])),Y?(this.set_mode(E.Statement),this.indent(),this.handle_whitespace_and_comments(j,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(j,w(j,["do","for","if","while"])),!0):!1},F.prototype.handle_start_expr=function(j){this.start_of_statement(j)||this.handle_whitespace_and_comments(j);var Y=E.Expression;if(j.text==="["){if(this._flags.last_token.type===n.WORD||this._flags.last_token.text===")"){w(this._flags.last_token,s)&&(this._output.space_before_token=!0),this.print_token(j),this.set_mode(Y),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}Y=E.ArrayLiteral,b(this._flags.mode)&&((this._flags.last_token.text==="["||this._flags.last_token.text===","&&(this._last_last_text==="]"||this._last_last_text==="}"))&&(this._options.keep_array_indentation||this.print_newline())),i(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,Y=E.ForInitializer):i(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,Y=E.Conditional):i(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&j.whitespace_before===""?this._output.space_before_token=!1:(i(this._flags.last_token.text,s)||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(j);else if(this._flags.last_token.type===n.WORD){this._output.space_before_token=!1;var W=this._tokens.peek(-3);if(this._options.space_after_named_function&&W){var Q=this._tokens.peek(-4);w(W,["async","function"])||W.text==="*"&&w(Q,["async","function"])?this._output.space_before_token=!0:this._flags.mode===E.ObjectLiteral?(W.text==="{"||W.text===","||W.text==="*"&&(Q.text==="{"||Q.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(j);(this._flags.last_token.type===n.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(i(this._last_last_text,["function","yield"])||this._flags.mode===E.ObjectLiteral&&i(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(j,j.newlines),this.print_token(j),this.set_mode(Y),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},F.prototype.handle_end_expr=function(j){for(;this._flags.mode===E.Statement;)this.restore_mode();this.handle_whitespace_and_comments(j),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(j,j.text==="]"&&b(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(j),this.restore_mode(),O(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===E.Conditional&&(this._previous_flags.mode=E.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},F.prototype.handle_start_block=function(j){this.handle_whitespace_and_comments(j);var Y=this._tokens.peek(),W=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===n.END_EXPR?(this.set_mode(E.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(E.BlockStatement):W&&(i(W.text,[":",","])&&i(Y.type,[n.STRING,n.WORD,n.RESERVED])||i(Y.text,["get","set","..."])&&i(W.type,[n.WORD,n.RESERVED]))?i(this._last_last_text,["class","interface"])&&!i(W.text,[":",","])?this.set_mode(E.BlockStatement):this.set_mode(E.ObjectLiteral):this._flags.last_token.type===n.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(E.BlockStatement):i(this._flags.last_token.type,[n.EQUALS,n.START_EXPR,n.COMMA,n.OPERATOR])||w(this._flags.last_token,["return","throw","import","default"])?this.set_mode(E.ObjectLiteral):this.set_mode(E.BlockStatement),this._flags.last_token&&(w(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0));var Q=!Y.comments_before&&Y.text==="}",ie=Q&&this._flags.last_word==="function"&&this._flags.last_token.type===n.END_EXPR;if(this._options.brace_preserve_inline){var Ee=0,pe=null;this._flags.inline_frame=!0;do if(Ee+=1,pe=this._tokens.peek(Ee-1),pe.newlines){this._flags.inline_frame=!1;break}while(pe.type!==n.EOF&&!(pe.type===n.END_BLOCK&&pe.opened===j))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&j.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==n.OPERATOR&&(ie||this._flags.last_token.type===n.EQUALS||w(this._flags.last_token,x)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(b(this._previous_flags.mode)&&(this._flags.last_token.type===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(j),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(j),this.indent(),!Q&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},F.prototype.handle_end_block=function(j){for(this.handle_whitespace_and_comments(j);this._flags.mode===E.Statement;)this.restore_mode();var Y=this._flags.last_token.type===n.START_BLOCK;this._flags.inline_frame&&!Y?this._output.space_before_token=!0:this._options.brace_style==="expand"?Y||this.print_newline():Y||(b(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(j)},F.prototype.handle_word=function(j){if(j.type===n.RESERVED){if(i(j.text,["set","get"])&&this._flags.mode!==E.ObjectLiteral)j.type=n.WORD;else if(j.text==="import"&&i(this._tokens.peek().text,["(","."]))j.type=n.WORD;else if(i(j.text,["as","from"])&&!this._flags.import_block)j.type=n.WORD;else if(this._flags.mode===E.ObjectLiteral){var Y=this._tokens.peek();Y.text===":"&&(j.type=n.WORD)}}if(this.start_of_statement(j)?w(this._flags.last_token,["var","let","const"])&&j.type===n.WORD&&(this._flags.declaration_statement=!0):j.newlines&&!D(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||!w(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(j),this.print_newline()):this.handle_whitespace_and_comments(j),this._flags.do_block&&!this._flags.do_while)if(R(j,"while")){this._output.space_before_token=!0,this.print_token(j),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&&R(j,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===E.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&w(j,["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(j),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(j)),R(j,"function")){(i(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(i(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===n.OPERATOR))&&(!this._output.just_added_blankline()&&!j.comments_before&&(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===n.RESERVED||this._flags.last_token.type===n.WORD?w(this._flags.last_token,["get","set","new","export"])||w(this._flags.last_token,K)?this._output.space_before_token=!0:R(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&&(D(this._flags.mode)||b(this._flags.mode))||this.print_newline(),this.print_token(j),this._flags.last_word=j.text;return}var W="NONE";if(this._flags.last_token.type===n.END_BLOCK?this._previous_flags.inline_frame?W="SPACE":w(j,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&j.newlines?W="NEWLINE":(W="SPACE",this._output.space_before_token=!0):W="NEWLINE":this._flags.last_token.type===n.SEMICOLON&&this._flags.mode===E.BlockStatement?W="NEWLINE":this._flags.last_token.type===n.SEMICOLON&&D(this._flags.mode)?W="SPACE":this._flags.last_token.type===n.STRING?W="NEWLINE":this._flags.last_token.type===n.RESERVED||this._flags.last_token.type===n.WORD||this._flags.last_token.text==="*"&&(i(this._last_last_text,["function","yield"])||this._flags.mode===E.ObjectLiteral&&i(this._last_last_text,["{",","]))?W="SPACE":this._flags.last_token.type===n.START_BLOCK?this._flags.inline_frame?W="SPACE":W="NEWLINE":this._flags.last_token.type===n.END_EXPR&&(this._output.space_before_token=!0,W="NEWLINE"),w(j,s)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?W="SPACE":W="NEWLINE"),w(j,["else","catch","finally"]))if((!(this._flags.last_token.type===n.END_BLOCK&&this._previous_flags.mode===E.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&j.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var Q=this._output.current_line;Q.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else W==="NEWLINE"?w(this._flags.last_token,x)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&w(j,["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||!w(j,["var","let","const"]))&&this._flags.last_token.text!==":"&&(R(j,"if")&&R(j.previous,"else")?this._output.space_before_token=!0:this.print_newline()):w(j,s)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&b(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():W==="SPACE"&&(this._output.space_before_token=!0);j.previous&&(j.previous.type===n.WORD||j.previous.type===n.RESERVED)&&(this._output.space_before_token=!0),this.print_token(j),this._flags.last_word=j.text,j.type===n.RESERVED&&(j.text==="do"?this._flags.do_block=!0:j.text==="if"?this._flags.if_block=!0:j.text==="import"?this._flags.import_block=!0:this._flags.import_block&&R(j,"from")&&(this._flags.import_block=!1))},F.prototype.handle_semicolon=function(j){this.start_of_statement(j)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(j);for(var Y=this._tokens.peek();this._flags.mode===E.Statement&&!(this._flags.if_block&&R(Y,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(j)},F.prototype.handle_string=function(j){j.text.startsWith("`")&&j.newlines===0&&j.whitespace_before===""&&(j.previous.text===")"||this._flags.last_token.type===n.WORD)||(this.start_of_statement(j)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(j),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(j):j.text.startsWith("`")&&this._flags.last_token.type===n.END_EXPR&&(j.previous.text==="]"||j.previous.text===")")&&j.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(j)},F.prototype.handle_equals=function(j){this.start_of_statement(j)||this.handle_whitespace_and_comments(j),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(j),this._output.space_before_token=!0},F.prototype.handle_comma=function(j){this.handle_whitespace_and_comments(j,!0),this.print_token(j),this._output.space_before_token=!0,this._flags.declaration_statement?(D(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(j)):this._flags.mode===E.ObjectLiteral||this._flags.mode===E.Statement&&this._flags.parent.mode===E.ObjectLiteral?(this._flags.mode===E.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(j)},F.prototype.handle_operator=function(j){var Y=j.text==="*"&&(w(this._flags.last_token,["function","yield"])||i(this._flags.last_token.type,[n.START_BLOCK,n.COMMA,n.END_BLOCK,n.SEMICOLON])),W=i(j.text,["-","+"])&&(i(this._flags.last_token.type,[n.START_BLOCK,n.START_EXPR,n.EQUALS,n.OPERATOR])||i(this._flags.last_token.text,s)||this._flags.last_token.text===",");if(!this.start_of_statement(j)){var Q=!Y;this.handle_whitespace_and_comments(j,Q)}if(j.text==="*"&&this._flags.last_token.type===n.DOT){this.print_token(j);return}if(j.text==="::"){this.print_token(j);return}if(this._flags.last_token.type===n.OPERATOR&&i(this._options.operator_position,f)&&this.allow_wrap_or_preserved_newline(j),j.text===":"&&this._flags.in_case){this.print_token(j),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 ie=!0,Ee=!0,pe=!1;if(j.text===":"?this._flags.ternary_depth===0?ie=!1:(this._flags.ternary_depth-=1,pe=!0):j.text==="?"&&(this._flags.ternary_depth+=1),!W&&!Y&&this._options.preserve_newlines&&i(j.text,p)){var De=j.text===":",Me=De&&pe,Ue=De&&!pe;switch(this._options.operator_position){case o.before_newline:this._output.space_before_token=!Ue,this.print_token(j),(!De||Me)&&this.allow_wrap_or_preserved_newline(j),this._output.space_before_token=!0;return;case o.after_newline:this._output.space_before_token=!0,!De||Me?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(j):this._output.space_before_token=!1,this.print_token(j),this._output.space_before_token=!0;return;case o.preserve_newline:Ue||this.allow_wrap_or_preserved_newline(j),ie=!(this._output.just_added_newline()||Ue),this._output.space_before_token=ie,this.print_token(j),this._output.space_before_token=!0;return}}if(Y){this.allow_wrap_or_preserved_newline(j),ie=!1;var Ie=this._tokens.peek();Ee=Ie&&i(Ie.type,[n.WORD,n.RESERVED])}else if(j.text==="...")this.allow_wrap_or_preserved_newline(j),ie=this._flags.last_token.type===n.START_BLOCK,Ee=!1;else if(i(j.text,["--","++","!","~"])||W){if((this._flags.last_token.type===n.COMMA||this._flags.last_token.type===n.START_EXPR)&&this.allow_wrap_or_preserved_newline(j),ie=!1,Ee=!1,j.newlines&&(j.text==="--"||j.text==="++"||j.text==="~")){var ne=w(this._flags.last_token,x)&&j.newlines;ne&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(ne,!0)}this._flags.last_token.text===";"&&D(this._flags.mode)&&(ie=!0),this._flags.last_token.type===n.RESERVED?ie=!0:this._flags.last_token.type===n.END_EXPR?ie=!(this._flags.last_token.text==="]"&&(j.text==="--"||j.text==="++")):this._flags.last_token.type===n.OPERATOR&&(ie=i(j.text,["--","-","++","+"])&&i(this._flags.last_token.text,["--","-","++","+"]),i(j.text,["+","-"])&&i(this._flags.last_token.text,["--","++"])&&(Ee=!0)),(this._flags.mode===E.BlockStatement&&!this._flags.inline_frame||this._flags.mode===E.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||ie,this.print_token(j),this._output.space_before_token=Ee},F.prototype.handle_block_comment=function(j,Y){if(this._output.raw){this._output.add_raw_token(j),j.directives&&j.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(j.directives){this.print_newline(!1,Y),this.print_token(j),j.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!l.newline.test(j.text)&&!j.newlines){this._output.space_before_token=!0,this.print_token(j),this._output.space_before_token=!0;return}else this.print_block_commment(j,Y)},F.prototype.print_block_commment=function(j,Y){var W=S(j.text),Q,ie=!1,Ee=!1,pe=j.whitespace_before,De=pe.length;if(this.print_newline(!1,Y),this.print_token_line_indentation(j),this._output.add_token(W[0]),this.print_newline(!1,Y),W.length>1){for(W=W.slice(1),ie=P(W,"*"),Ee=I(W,pe),ie&&(this._flags.alignment=1),Q=0;Q<W.length;Q++)ie?(this.print_token_line_indentation(j),this._output.add_token(v(W[Q]))):Ee&&W[Q]?(this.print_token_line_indentation(j),this._output.add_token(W[Q].substring(De))):(this._output.current_line.set_indent(-1),this._output.add_token(W[Q])),this.print_newline(!1,Y);this._flags.alignment=0}},F.prototype.handle_comment=function(j,Y){j.newlines?this.print_newline(!1,Y):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(j),this.print_newline(!1,Y)},F.prototype.handle_dot=function(j){this.start_of_statement(j)||this.handle_whitespace_and_comments(j,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),w(this._flags.last_token,x)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(j,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(j)},F.prototype.handle_unknown=function(j,Y){this.print_token(j),j.text[j.text.length-1]===`
`&&this.print_newline(!1,Y)},F.prototype.handle_eof=function(j){for(;this._flags.mode===E.Statement;)this.restore_mode();this.handle_whitespace_and_comments(j)},e.exports.Beautifier=F},function(e){function m(a){this.__parent=a,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=[]}m.prototype.clone_empty=function(){var a=new m(this.__parent);return a.set_indent(this.__indent_count,this.__alignment_count),a},m.prototype.item=function(a){return a<0?this.__items[this.__items.length+a]:this.__items[a]},m.prototype.has_match=function(a){for(var l=this.__items.length-1;l>=0;l--)if(this.__items[l].match(a))return!0;return!1},m.prototype.set_indent=function(a,l){this.is_empty()&&(this.__indent_count=a||0,this.__alignment_count=l||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},m.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)},m.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},m.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var a=this.__parent.current_line;return a.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),a.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),a.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,a.__items[0]===" "&&(a.__items.splice(0,1),a.__character_count-=1),!0}return!1},m.prototype.is_empty=function(){return this.__items.length===0},m.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},m.prototype.push=function(a){this.__items.push(a);var l=a.lastIndexOf(`
`);l!==-1?this.__character_count=a.length-l:this.__character_count+=a.length},m.prototype.pop=function(){var a=null;return this.is_empty()||(a=this.__items.pop(),this.__character_count-=a.length),a},m.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},m.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},m.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},m.prototype.toString=function(){var a="";return this.is_empty()?this.__parent.indent_empty_lines&&(a=this.__parent.get_indent_string(this.__indent_count)):(a=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),a+=this.__items.join("")),a};function r(a,l){this.__cache=[""],this.__indent_size=a.indent_size,this.__indent_string=a.indent_char,a.indent_with_tabs||(this.__indent_string=new Array(a.indent_size+1).join(a.indent_char)),l=l||"",a.indent_level>0&&(l=new Array(a.indent_level+1).join(this.__indent_string)),this.__base_string=l,this.__base_string_length=l.length}r.prototype.get_indent_size=function(a,l){var d=this.__base_string_length;return l=l||0,a<0&&(d=0),d+=a*this.__indent_size,d+=l,d},r.prototype.get_indent_string=function(a,l){var d=this.__base_string;return l=l||0,a<0&&(a=0,d=""),l+=a*this.__indent_size,this.__ensure_cache(l),d+=this.__cache[l],d},r.prototype.__ensure_cache=function(a){for(;a>=this.__cache.length;)this.__add_column()},r.prototype.__add_column=function(){var a=this.__cache.length,l=0,d="";this.__indent_size&&a>=this.__indent_size&&(l=Math.floor(a/this.__indent_size),a-=l*this.__indent_size,d=new Array(l+1).join(this.__indent_string)),a&&(d+=new Array(a+1).join(" ")),this.__cache.push(d)};function h(a,l){this.__indent_cache=new r(a,l),this.raw=!1,this._end_with_newline=a.end_with_newline,this.indent_size=a.indent_size,this.wrap_line_length=a.wrap_line_length,this.indent_empty_lines=a.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new m(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}h.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},h.prototype.get_line_number=function(){return this.__lines.length},h.prototype.get_indent_string=function(a,l){return this.__indent_cache.get_indent_string(a,l)},h.prototype.get_indent_size=function(a,l){return this.__indent_cache.get_indent_size(a,l)},h.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},h.prototype.add_new_line=function(a){return this.is_empty()||!a&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},h.prototype.get_code=function(a){this.trim(!0);var l=this.current_line.pop();l&&(l[l.length-1]===`
`&&(l=l.replace(/\n+$/g,"")),this.current_line.push(l)),this._end_with_newline&&this.__add_outputline();var d=this.__lines.join(`
`);return a!==`
`&&(d=d.replace(/[\n]/g,a)),d},h.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},h.prototype.set_indent=function(a,l){return a=a||0,l=l||0,this.next_line.set_indent(a,l),this.__lines.length>1?(this.current_line.set_indent(a,l),!0):(this.current_line.set_indent(),!1)},h.prototype.add_raw_token=function(a){for(var l=0;l<a.newlines;l++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(a.whitespace_before),this.current_line.push(a.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},h.prototype.add_token=function(a){this.__add_space_before_token(),this.current_line.push(a),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},h.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(" "))},h.prototype.remove_indent=function(a){for(var l=this.__lines.length;a<l;)this.__lines[a]._remove_indent(),a++;this.current_line._remove_wrap_indent()},h.prototype.trim=function(a){for(a=a===void 0?!1:a,this.current_line.trim();a&&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},h.prototype.just_added_newline=function(){return this.current_line.is_empty()},h.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},h.prototype.ensure_empty_line_above=function(a,l){for(var d=this.__lines.length-2;d>=0;){var y=this.__lines[d];if(y.is_empty())break;if(y.item(0).indexOf(a)!==0&&y.item(-1)!==l){this.__lines.splice(d+1,0,new m(this)),this.previous_line=this.__lines[this.__lines.length-2];break}d--}},e.exports.Output=h},function(e){function m(r,h,a,l){this.type=r,this.text=h,this.comments_before=null,this.newlines=a||0,this.whitespace_before=l||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}e.exports.Token=m},function(e,m){var r="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",h="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",a="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0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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",l="\\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",d="(?:\\\\u[0-9a-fA-F]{4}|["+r+a+"])",y="(?:\\\\u[0-9a-fA-F]{4}|["+h+a+l+"])*";m.identifier=new RegExp(d+y,"g"),m.identifierStart=new RegExp(d),m.identifierMatch=new RegExp("(?:\\\\u[0-9a-fA-F]{4}|["+h+a+l+"])+");var s=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;m.newline=/[\n\r\u2028\u2029]/,m.lineBreak=new RegExp(`\r
|`+m.newline.source),m.allLineBreaks=new RegExp(m.lineBreak.source,"g")},function(e,m,r){var h=r(6).Options,a=["before-newline","after-newline","preserve-newline"];function l(d){h.call(this,d,"js");var y=this.raw_options.brace_style||null;y==="expand-strict"?this.raw_options.brace_style="expand":y==="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 s=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var p=0;p<s.length;p++)s[p]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=s[p];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",a),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}l.prototype=new h,e.exports.Options=l},function(e){function m(a,l){this.raw_options=r(a,l),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"])}m.prototype._get_array=function(a,l){var d=this.raw_options[a],y=l||[];return typeof d=="object"?d!==null&&typeof d.concat=="function"&&(y=d.concat()):typeof d=="string"&&(y=d.split(/[^a-zA-Z0-9_\/\-]+/)),y},m.prototype._get_boolean=function(a,l){var d=this.raw_options[a],y=d===void 0?!!l:!!d;return y},m.prototype._get_characters=function(a,l){var d=this.raw_options[a],y=l||"";return typeof d=="string"&&(y=d.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),y},m.prototype._get_number=function(a,l){var d=this.raw_options[a];l=parseInt(l,10),isNaN(l)&&(l=0);var y=parseInt(d,10);return isNaN(y)&&(y=l),y},m.prototype._get_selection=function(a,l,d){var y=this._get_selection_list(a,l,d);if(y.length!==1)throw new Error("Invalid Option Value: The option '"+a+`' can only be one of the following values:
`+l+`
You passed in: '`+this.raw_options[a]+"'");return y[0]},m.prototype._get_selection_list=function(a,l,d){if(!l||l.length===0)throw new Error("Selection list cannot be empty.");if(d=d||[l[0]],!this._is_valid_selection(d,l))throw new Error("Invalid Default Value!");var y=this._get_array(a,d);if(!this._is_valid_selection(y,l))throw new Error("Invalid Option Value: The option '"+a+`' can contain only the following values:
`+l+`
You passed in: '`+this.raw_options[a]+"'");return y},m.prototype._is_valid_selection=function(a,l){return a.length&&l.length&&!a.some(function(d){return l.indexOf(d)===-1})};function r(a,l){var d={};a=h(a);var y;for(y in a)y!==l&&(d[y]=a[y]);if(l&&a[l])for(y in a[l])d[y]=a[l][y];return d}function h(a){var l={},d;for(d in a){var y=d.replace(/-/g,"_");l[y]=a[d]}return l}e.exports.Options=m,e.exports.normalizeOpts=h,e.exports.mergeOpts=r},function(e,m,r){var h=r(8).InputScanner,a=r(9).Tokenizer,l=r(9).TOKEN,d=r(13).Directives,y=r(4),s=r(12).Pattern,p=r(14).TemplatablePattern;function n(P,I){return I.indexOf(P)!==-1}var i={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:l.START,RAW:l.RAW,EOF:l.EOF},v=new d(/\/\*/,/\*\//),C=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,R=/[0-9]/,w=/[^\d\.]/,x=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),A=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";A=A.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),A="\\?\\.(?!\\d) "+A,A=A.replace(/ /g,"|");var o=new RegExp(A),f="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),E=f.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),O=new RegExp("^(?:"+E.join("|")+")$"),S,b=function(P,I){a.call(this,P,I),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var F=new s(this._input),K=new p(this._input).read_options(this._options);this.__patterns={template:K,identifier:K.starting_with(y.identifier).matching(y.identifierMatch),number:F.matching(C),punct:F.matching(o),comment:F.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:F.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:F.matching(/<!--/),html_comment_end:F.matching(/-->/),include:F.starting_with(/#include/).until_after(y.lineBreak),shebang:F.starting_with(/#!/).until_after(y.lineBreak),xml:F.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:K.until(/['\\\n\r\u2028\u2029]/),double_quote:K.until(/["\\\n\r\u2028\u2029]/),template_text:K.until(/[`\\$]/),template_expression:K.until(/[`}\\]/)}};b.prototype=new a,b.prototype._is_comment=function(P){return P.type===i.COMMENT||P.type===i.BLOCK_COMMENT||P.type===i.UNKNOWN},b.prototype._is_opening=function(P){return P.type===i.START_BLOCK||P.type===i.START_EXPR},b.prototype._is_closing=function(P,I){return(P.type===i.END_BLOCK||P.type===i.END_EXPR)&&I&&(P.text==="]"&&I.text==="["||P.text===")"&&I.text==="("||P.text==="}"&&I.text==="{")},b.prototype._reset=function(){S=!1},b.prototype._get_next_token=function(P,I){var F=null;this._readWhitespace();var K=this._input.peek();return K===null?this._create_token(i.EOF,""):(F=F||this._read_non_javascript(K),F=F||this._read_string(K),F=F||this._read_word(P),F=F||this._read_singles(K),F=F||this._read_comment(K),F=F||this._read_regexp(K,P),F=F||this._read_xml(K,P),F=F||this._read_punctuation(),F=F||this._create_token(i.UNKNOWN,this._input.next()),F)},b.prototype._read_word=function(P){var I;if(I=this.__patterns.identifier.read(),I!=="")return I=I.replace(y.allLineBreaks,`
`),!(P.type===i.DOT||P.type===i.RESERVED&&(P.text==="set"||P.text==="get"))&&O.test(I)?(I==="in"||I==="of")&&(P.type===i.WORD||P.type===i.STRING)?this._create_token(i.OPERATOR,I):this._create_token(i.RESERVED,I):this._create_token(i.WORD,I);if(I=this.__patterns.number.read(),I!=="")return this._create_token(i.WORD,I)},b.prototype._read_singles=function(P){var I=null;return P==="("||P==="["?I=this._create_token(i.START_EXPR,P):P===")"||P==="]"?I=this._create_token(i.END_EXPR,P):P==="{"?I=this._create_token(i.START_BLOCK,P):P==="}"?I=this._create_token(i.END_BLOCK,P):P===";"?I=this._create_token(i.SEMICOLON,P):P==="."&&w.test(this._input.peek(1))?I=this._create_token(i.DOT,P):P===","&&(I=this._create_token(i.COMMA,P)),I&&this._input.next(),I},b.prototype._read_punctuation=function(){var P=this.__patterns.punct.read();if(P!=="")return P==="="?this._create_token(i.EQUALS,P):P==="?."?this._create_token(i.DOT,P):this._create_token(i.OPERATOR,P)},b.prototype._read_non_javascript=function(P){var I="";if(P==="#"){if(this._is_first_token()&&(I=this.__patterns.shebang.read(),I))return this._create_token(i.UNKNOWN,I.trim()+`
`);if(I=this.__patterns.include.read(),I)return this._create_token(i.UNKNOWN,I.trim()+`
`);P=this._input.next();var F="#";if(this._input.hasNext()&&this._input.testChar(R)){do P=this._input.next(),F+=P;while(this._input.hasNext()&&P!=="#"&&P!=="=");return P==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(F+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(F+="{}",this._input.next(),this._input.next())),this._create_token(i.WORD,F)}this._input.back()}else if(P==="<"&&this._is_first_token()){if(I=this.__patterns.html_comment_start.read(),I){for(;this._input.hasNext()&&!this._input.testChar(y.newline);)I+=this._input.next();return S=!0,this._create_token(i.COMMENT,I)}}else if(S&&P==="-"&&(I=this.__patterns.html_comment_end.read(),I))return S=!1,this._create_token(i.COMMENT,I);return null},b.prototype._read_comment=function(P){var I=null;if(P==="/"){var F="";if(this._input.peek(1)==="*"){F=this.__patterns.block_comment.read();var K=v.get_directives(F);K&&K.ignore==="start"&&(F+=v.readIgnored(this._input)),F=F.replace(y.allLineBreaks,`
`),I=this._create_token(i.BLOCK_COMMENT,F),I.directives=K}else this._input.peek(1)==="/"&&(F=this.__patterns.comment.read(),I=this._create_token(i.COMMENT,F))}return I},b.prototype._read_string=function(P){if(P==="`"||P==="'"||P==='"'){var I=this._input.next();return this.has_char_escapes=!1,P==="`"?I+=this._read_string_recursive("`",!0,"${"):I+=this._read_string_recursive(P),this.has_char_escapes&&this._options.unescape_strings&&(I=D(I)),this._input.peek()===P&&(I+=this._input.next()),I=I.replace(y.allLineBreaks,`
`),this._create_token(i.STRING,I)}return null},b.prototype._allow_regexp_or_xml=function(P){return P.type===i.RESERVED&&n(P.text,["return","case","throw","else","do","typeof","yield"])||P.type===i.END_EXPR&&P.text===")"&&P.opened.previous.type===i.RESERVED&&n(P.opened.previous.text,["if","while","for"])||n(P.type,[i.COMMENT,i.START_EXPR,i.START_BLOCK,i.START,i.END_BLOCK,i.OPERATOR,i.EQUALS,i.EOF,i.SEMICOLON,i.COMMA])},b.prototype._read_regexp=function(P,I){if(P==="/"&&this._allow_regexp_or_xml(I)){for(var F=this._input.next(),K=!1,j=!1;this._input.hasNext()&&(K||j||this._input.peek()!==P)&&!this._input.testChar(y.newline);)F+=this._input.peek(),K?K=!1:(K=this._input.peek()==="\\",this._input.peek()==="["?j=!0:this._input.peek()==="]"&&(j=!1)),this._input.next();return this._input.peek()===P&&(F+=this._input.next(),F+=this._input.read(y.identifier)),this._create_token(i.STRING,F)}return null},b.prototype._read_xml=function(P,I){if(this._options.e4x&&P==="<"&&this._allow_regexp_or_xml(I)){var F="",K=this.__patterns.xml.read_match();if(K){for(var j=K[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),Y=j.indexOf("{")===0,W=0;K;){var Q=!!K[1],ie=K[2],Ee=!!K[K.length-1]||ie.slice(0,8)==="![CDATA[";if(!Ee&&(ie===j||Y&&ie.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(Q?--W:++W),F+=K[0],W<=0)break;K=this.__patterns.xml.read_match()}return K||(F+=this._input.match(/[\s\S]*/g)[0]),F=F.replace(y.allLineBreaks,`
`),this._create_token(i.STRING,F)}}return null};function D(P){for(var I="",F=0,K=new h(P),j=null;K.hasNext();)if(j=K.match(/([\s]|[^\\]|\\\\)+/g),j&&(I+=j[0]),K.peek()==="\\"){if(K.next(),K.peek()==="x")j=K.match(/x([0-9A-Fa-f]{2})/g);else if(K.peek()==="u")j=K.match(/u([0-9A-Fa-f]{4})/g);else{I+="\\",K.hasNext()&&(I+=K.next());continue}if(!j)return P;if(F=parseInt(j[1],16),F>126&&F<=255&&j[0].indexOf("x")===0)return P;if(F>=0&&F<32){I+="\\"+j[0];continue}else F===34||F===39||F===92?I+="\\"+String.fromCharCode(F):I+=String.fromCharCode(F)}return I}b.prototype._read_string_recursive=function(P,I,F){var K,j;P==="'"?j=this.__patterns.single_quote:P==='"'?j=this.__patterns.double_quote:P==="`"?j=this.__patterns.template_text:P==="}"&&(j=this.__patterns.template_expression);for(var Y=j.read(),W="";this._input.hasNext();){if(W=this._input.next(),W===P||!I&&y.newline.test(W)){this._input.back();break}else W==="\\"&&this._input.hasNext()?(K=this._input.peek(),K==="x"||K==="u"?this.has_char_escapes=!0:K==="\r"&&this._input.peek(1)===`
`&&this._input.next(),W+=this._input.next()):F&&(F==="${"&&W==="$"&&this._input.peek()==="{"&&(W+=this._input.next()),F===W&&(P==="`"?W+=this._read_string_recursive("}",I,"`"):W+=this._read_string_recursive("`",I,"${"),this._input.hasNext()&&(W+=this._input.next())));W+=j.read(),Y+=W}return Y},e.exports.Tokenizer=b,e.exports.TOKEN=i,e.exports.positionable_operators=x.slice(),e.exports.line_starters=f.slice()},function(e){var m=RegExp.prototype.hasOwnProperty("sticky");function r(h){this.__input=h||"",this.__input_length=this.__input.length,this.__position=0}r.prototype.restart=function(){this.__position=0},r.prototype.back=function(){this.__position>0&&(this.__position-=1)},r.prototype.hasNext=function(){return this.__position<this.__input_length},r.prototype.next=function(){var h=null;return this.hasNext()&&(h=this.__input.charAt(this.__position),this.__position+=1),h},r.prototype.peek=function(h){var a=null;return h=h||0,h+=this.__position,h>=0&&h<this.__input_length&&(a=this.__input.charAt(h)),a},r.prototype.__match=function(h,a){h.lastIndex=a;var l=h.exec(this.__input);return l&&!(m&&h.sticky)&&(l.index!==a&&(l=null)),l},r.prototype.test=function(h,a){return a=a||0,a+=this.__position,a>=0&&a<this.__input_length?!!this.__match(h,a):!1},r.prototype.testChar=function(h,a){var l=this.peek(a);return h.lastIndex=0,l!==null&&h.test(l)},r.prototype.match=function(h){var a=this.__match(h,this.__position);return a?this.__position+=a[0].length:a=null,a},r.prototype.read=function(h,a,l){var d="",y;return h&&(y=this.match(h),y&&(d+=y[0])),a&&(y||!h)&&(d+=this.readUntil(a,l)),d},r.prototype.readUntil=function(h,a){var l="",d=this.__position;h.lastIndex=this.__position;var y=h.exec(this.__input);return y?(d=y.index,a&&(d+=y[0].length)):d=this.__input_length,l=this.__input.substring(this.__position,d),this.__position=d,l},r.prototype.readUntilAfter=function(h){return this.readUntil(h,!0)},r.prototype.get_regexp=function(h,a){var l=null,d="g";return a&&m&&(d="y"),typeof h=="string"&&h!==""?l=new RegExp(h,d):h&&(l=new RegExp(h.source,d)),l},r.prototype.get_literal_regexp=function(h){return RegExp(h.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},r.prototype.peekUntilAfter=function(h){var a=this.__position,l=this.readUntilAfter(h);return this.__position=a,l},r.prototype.lookBack=function(h){var a=this.__position-1;return a>=h.length&&this.__input.substring(a-h.length,a).toLowerCase()===h},e.exports.InputScanner=r},function(e,m,r){var h=r(8).InputScanner,a=r(3).Token,l=r(10).TokenStream,d=r(11).WhitespacePattern,y={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},s=function(p,n){this._input=new h(p),this._options=n||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new d(this._input)};s.prototype.tokenize=function(){this._input.restart(),this.__tokens=new l,this._reset();for(var p,n=new a(y.START,""),i=null,v=[],C=new l;n.type!==y.EOF;){for(p=this._get_next_token(n,i);this._is_comment(p);)C.add(p),p=this._get_next_token(n,i);C.isEmpty()||(p.comments_before=C,C=new l),p.parent=i,this._is_opening(p)?(v.push(i),i=p):i&&this._is_closing(p,i)&&(p.opened=i,i.closed=p,i=v.pop(),p.parent=i),p.previous=n,n.next=p,this.__tokens.add(p),n=p}return this.__tokens},s.prototype._is_first_token=function(){return this.__tokens.isEmpty()},s.prototype._reset=function(){},s.prototype._get_next_token=function(p,n){this._readWhitespace();var i=this._input.read(/.+/g);return i?this._create_token(y.RAW,i):this._create_token(y.EOF,"")},s.prototype._is_comment=function(p){return!1},s.prototype._is_opening=function(p){return!1},s.prototype._is_closing=function(p,n){return!1},s.prototype._create_token=function(p,n){var i=new a(p,n,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return i},s.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},e.exports.Tokenizer=s,e.exports.TOKEN=y},function(e){function m(r){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=r}m.prototype.restart=function(){this.__position=0},m.prototype.isEmpty=function(){return this.__tokens_length===0},m.prototype.hasNext=function(){return this.__position<this.__tokens_length},m.prototype.next=function(){var r=null;return this.hasNext()&&(r=this.__tokens[this.__position],this.__position+=1),r},m.prototype.peek=function(r){var h=null;return r=r||0,r+=this.__position,r>=0&&r<this.__tokens_length&&(h=this.__tokens[r]),h},m.prototype.add=function(r){this.__parent_token&&(r.parent=this.__parent_token),this.__tokens.push(r),this.__tokens_length+=1},e.exports.TokenStream=m},function(e,m,r){var h=r(12).Pattern;function a(l,d){h.call(this,l,d),d?this._line_regexp=this._input.get_regexp(d._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}a.prototype=new h,a.prototype.__set_whitespace_patterns=function(l,d){l+="\\t ",d+="\\n\\r",this._match_pattern=this._input.get_regexp("["+l+d+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+d+"]")},a.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var l=this._input.read(this._match_pattern);if(l===" ")this.whitespace_before_token=" ";else if(l){var d=this.__split(this._newline_regexp,l);this.newline_count=d.length-1,this.whitespace_before_token=d[this.newline_count]}return l},a.prototype.matching=function(l,d){var y=this._create();return y.__set_whitespace_patterns(l,d),y._update(),y},a.prototype._create=function(){return new a(this._input,this)},a.prototype.__split=function(l,d){l.lastIndex=0;for(var y=0,s=[],p=l.exec(d);p;)s.push(d.substring(y,p.index)),y=p.index+p[0].length,p=l.exec(d);return y<d.length?s.push(d.substring(y,d.length)):s.push(""),s},e.exports.WhitespacePattern=a},function(e){function m(r,h){this._input=r,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,h&&(this._starting_pattern=this._input.get_regexp(h._starting_pattern,!0),this._match_pattern=this._input.get_regexp(h._match_pattern,!0),this._until_pattern=this._input.get_regexp(h._until_pattern),this._until_after=h._until_after)}m.prototype.read=function(){var r=this._input.read(this._starting_pattern);return(!this._starting_pattern||r)&&(r+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),r},m.prototype.read_match=function(){return this._input.match(this._match_pattern)},m.prototype.until_after=function(r){var h=this._create();return h._until_after=!0,h._until_pattern=this._input.get_regexp(r),h._update(),h},m.prototype.until=function(r){var h=this._create();return h._until_after=!1,h._until_pattern=this._input.get_regexp(r),h._update(),h},m.prototype.starting_with=function(r){var h=this._create();return h._starting_pattern=this._input.get_regexp(r,!0),h._update(),h},m.prototype.matching=function(r){var h=this._create();return h._match_pattern=this._input.get_regexp(r,!0),h._update(),h},m.prototype._create=function(){return new m(this._input,this)},m.prototype._update=function(){},e.exports.Pattern=m},function(e){function m(r,h){r=typeof r=="string"?r:r.source,h=typeof h=="string"?h:h.source,this.__directives_block_pattern=new RegExp(r+/ beautify( \w+[:]\w+)+ /.source+h,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(r+/\sbeautify\signore:end\s/.source+h,"g")}m.prototype.get_directives=function(r){if(!r.match(this.__directives_block_pattern))return null;var h={};this.__directive_pattern.lastIndex=0;for(var a=this.__directive_pattern.exec(r);a;)h[a[1]]=a[2],a=this.__directive_pattern.exec(r);return h},m.prototype.readIgnored=function(r){return r.readUntilAfter(this.__directives_end_ignore_pattern)},e.exports.Directives=m},function(e,m,r){var h=r(12).Pattern,a={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1};function l(d,y){h.call(this,d,y),this.__template_pattern=null,this._disabled=Object.assign({},a),this._excluded=Object.assign({},a),y&&(this.__template_pattern=this._input.get_regexp(y.__template_pattern),this._excluded=Object.assign(this._excluded,y._excluded),this._disabled=Object.assign(this._disabled,y._disabled));var s=new h(d);this.__patterns={handlebars_comment:s.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:s.starting_with(/{{{/).until_after(/}}}/),handlebars:s.starting_with(/{{/).until_after(/}}/),php:s.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:s.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:s.starting_with(/{%/).until_after(/%}/),django_value:s.starting_with(/{{/).until_after(/}}/),django_comment:s.starting_with(/{#/).until_after(/#}/),smarty:s.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:s.starting_with(/{\*/).until_after(/\*}/),smarty_literal:s.starting_with(/{literal}/).until_after(/{\/literal}/)}}l.prototype=new h,l.prototype._create=function(){return new l(this._input,this)},l.prototype._update=function(){this.__set_templated_pattern()},l.prototype.disable=function(d){var y=this._create();return y._disabled[d]=!0,y._update(),y},l.prototype.read_options=function(d){var y=this._create();for(var s in a)y._disabled[s]=d.templating.indexOf(s)===-1;return y._update(),y},l.prototype.exclude=function(d){var y=this._create();return y._excluded[d]=!0,y._update(),y},l.prototype.read=function(){var d="";this._match_pattern?d=this._input.read(this._starting_pattern):d=this._input.read(this._starting_pattern,this.__template_pattern);for(var y=this._read_template();y;)this._match_pattern?y+=this._input.read(this._match_pattern):y+=this._input.readUntil(this.__template_pattern),d+=y,y=this._read_template();return this._until_after&&(d+=this._input.readUntilAfter(this._until_pattern)),d},l.prototype.__set_templated_pattern=function(){var d=[];this._disabled.php||d.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||d.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||d.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(d.push(this.__patterns.django._starting_pattern.source),d.push(this.__patterns.django_value._starting_pattern.source),d.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||d.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&d.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+d.join("|")+")")},l.prototype._read_template=function(){var d="",y=this._input.peek();if(y==="<"){var s=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&s==="?"&&(d=d||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&s==="%"&&(d=d||this.__patterns.erb.read())}else y==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(d=d||this.__patterns.handlebars_comment.read(),d=d||this.__patterns.handlebars_unescaped.read(),d=d||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(d=d||this.__patterns.django_value.read()),this._excluded.django||(d=d||this.__patterns.django_comment.read(),d=d||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(d=d||this.__patterns.smarty_comment.read(),d=d||this.__patterns.smarty_literal.read(),d=d||this.__patterns.smarty.read()));return d},e.exports.TemplatablePattern=l}],u={};function M(e){var m=u[e];if(m!==void 0)return m.exports;var r=u[e]={exports:{}};return c[e](r,r.exports,M),r.exports}var g=M(0);L=g})();var N=L;!(Z=[],U=function(){return{js_beautify:N}}.apply(q,Z),U!==void 0&&(ge.exports=U))})()},"6fms":function(ge,q,_){var Z=_("SUKs"),U=_("06Qe"),L=_("bYtY"),N=L.each;function c(e){return parseInt(e,10)}function u(e,m){U.initVML(),this.root=e,this.storage=m;var r=document.createElement("div"),h=document.createElement("div");r.style.cssText="display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;",h.style.cssText="position:absolute;left:0;top:0;",e.appendChild(r),this._vmlRoot=h,this._vmlViewport=r,this.resize();var a=m.delFromStorage,l=m.addToStorage;m.delFromStorage=function(d){a.call(m,d),d&&(d.onRemove&&d.onRemove(h))},m.addToStorage=function(d){d.onAdd&&d.onAdd(h),l.call(m,d)},this._firstPaint=!0}u.prototype={constructor:u,getType:function(){return"vml"},getViewportRoot:function(){return this._vmlViewport},getViewportRootOffset:function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},refresh:function(){var e=this.storage.getDisplayList(!0,!0);this._paintList(e)},_paintList:function(e){for(var m=this._vmlRoot,r=0;r<e.length;r++){var h=e[r];h.invisible||h.ignore?(h.__alreadyNotVisible||h.onRemove(m),h.__alreadyNotVisible=!0):(h.__alreadyNotVisible&&h.onAdd(m),h.__alreadyNotVisible=!1,h.__dirty&&(h.beforeBrush&&h.beforeBrush(),(h.brushVML||h.brush).call(h,m),h.afterBrush&&h.afterBrush())),h.__dirty=!1}this._firstPaint&&(this._vmlViewport.appendChild(m),this._firstPaint=!1)},resize:function(e,m){var e=e==null?this._getWidth():e,m=m==null?this._getHeight():m;if(this._width!==e||this._height!==m){this._width=e,this._height=m;var r=this._vmlViewport.style;r.width=e+"px",r.height=m+"px"}},dispose:function(){this.root.innerHTML="",this._vmlRoot=this._vmlViewport=this.storage=null},getWidth:function(){return this._width},getHeight:function(){return this._height},clear:function(){this._vmlViewport&&this.root.removeChild(this._vmlViewport)},_getWidth:function(){var e=this.root,m=e.currentStyle;return(e.clientWidth||c(m.width))-c(m.paddingLeft)-c(m.paddingRight)|0},_getHeight:function(){var e=this.root,m=e.currentStyle;return(e.clientHeight||c(m.height))-c(m.paddingTop)-c(m.paddingBottom)|0}};function M(e){return function(){Z('In IE8.0 VML mode painter not support method "'+e+'"')}}N(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],function(e){u.prototype[e]=M(e)});var g=u;ge.exports=g},"6lbe":function(ge,q){ge.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAcCAYAAAB/E6/TAAAAAXNSR0IArs4c6QAAAtpJREFUSEu1lm9oTWEcx7+/57rbLLWE9oJQxPy7O2erSXmhRHlDEnnjxTkXS/6k1ChFWMv2Bomku3PLG3snEl5IvDB/yr3nXCEWa01ZQ8SV7e7u+WqzLbu7f3Yuztvn+/t+zvP8vr/nHEERj2m5x+JR46SfUvEjHtUattcnIs3x1tDxydYXDQJZKoJjccc4NRnYpEG1lrdyUKFKaakkdBOBwDBA5KjrVDcVghUEmba3EUQzwapcZgrqcCwaaskHywuqsRKWFkZAqvwm0gcVrIq3Lu3KpcsJMq2OWZAfHSQq8h6LSL9ANsed0O2idmTaXphkZKQP7wFcFeCJKHyh5h0SQUBSCtwSixo3i+6RYXtnQB4UyK1yKd3+0Kn6PhZvy+sXoVCprW4kdL0QZDgzuUSm5Q0l61AgWDb72eXFn/7UGZaXVKJ2QOGtJpdn8xBQBwVPnkaqO/ODwq5Not51jJWZRsbOxKYpDHxIM/0ob1BEkuUlWNB+qbo3547q9r6akfrZf911jNXZ3rgmnNintT4/3CeFTRD5OKrTohQG040g1quArI1Fqu/ljbcZ9i5WlE5puH9xWTITZlreAYLnRNAVd4z5E9bDicPU+rSIWhd3Qnezgjbs7yj9OZgK9mk1sz81sLCiLPA40+hbX3qPJluKBpm2ewRE49gVUyBSRYMM2+sGOWf0HhNhd95BZCAZc1Zc8310pu32kpgF4KsbNaZPZkayaczMHtXufjGXg+mlo2KSbb+vHaEIe/yD5E1QwRqgbBsXBsP2ekBW+jfMXSFAO5S6kQl6jhzT/TdwEWkjuX0s3kPffwIn/sY0a61IEuS0MVDdLndRKo3X/xw0YjhuYA3bi4E0/wdsHKjGSjRo6Ob/DjLDL+dRD3QCLPgP4fdlJtx1pu21k1zl16iQfiIo7O6gxpVChX7XBWpNPBp6MO6oaizvLIF6gmV+DXNE/F3J1JK6pxeWfP4Fq1RgLKZBv/kAAAAASUVORK5CYII="},"6nfa":function(ge,q,_){ge.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(ge,q,_){"use strict";_.d(q,"f",function(){return Z}),_.d(q,"l",function(){return U}),_.d(q,"k",function(){return L}),_.d(q,"j",function(){return N}),_.d(q,"g",function(){return c}),_.d(q,"m",function(){return u}),_.d(q,"h",function(){return M}),_.d(q,"n",function(){return g}),_.d(q,"c",function(){return e}),_.d(q,"a",function(){return m}),_.d(q,"i",function(){return r}),_.d(q,"o",function(){return h}),_.d(q,"e",function(){return d}),_.d(q,"d",function(){return y}),_.d(q,"p",function(){return s}),_.d(q,"b",function(){return p});function Z(n){return Array.isArray(n)}function U(n){return typeof n=="string"}function L(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)&&!(n instanceof RegExp)&&!(n instanceof Date)}function N(n){return typeof n=="number"&&!isNaN(n)}function c(n){return n===!0||n===!1}function u(n){return typeof n=="undefined"}function M(n){return!g(n)}function g(n){return u(n)||n===null}function e(n,i){if(!n)throw new Error(i?`Unexpected type, expected '${i}'`:"Unexpected type")}function m(n){if(g(n))throw new Error("Assertion Failed: argument is undefined or null");return n}function r(n){return typeof n=="function"}function h(n,i){const v=Math.min(n.length,i.length);for(let C=0;C<v;C++)a(n[C],i[C])}function a(n,i){if(U(i)){if(typeof n!==i)throw new Error(`argument does not match constraint: typeof ${i}`)}else if(r(i)){try{if(n instanceof i)return}catch(v){}if(!g(n)&&n.constructor===i)return;if(i.length===1&&i.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 l(n){let i=[],v=Object.getPrototypeOf(n);for(;Object.prototype!==v;)i=i.concat(Object.getOwnPropertyNames(v)),v=Object.getPrototypeOf(v);return i}function d(n){const i=[];for(const v of l(n))typeof n[v]=="function"&&i.push(v);return i}function y(n,i){const v=R=>function(){const w=Array.prototype.slice.call(arguments,0);return i(R,w)};let C={};for(const R of n)C[R]=v(R);return C}function s(n){return n===null?void 0:n}function p(n,i="Unreachable"){throw new Error(i)}},"7SHv":function(ge,q,_){var Z=_("LPTA"),U=Z.devicePixelRatio,L=_("bYtY"),N=_("SUKs"),c=_("mFDi"),u=_("BPZU"),M=_("Xmg4"),g=_("mLcG"),e=_("Dagg"),m=_("ItGF"),r=1e5,h=314159,a=.01,l=.001;function d(x){return parseInt(x,10)}function y(x){return x?x.__builtin__?!0:!(typeof x.resize!="function"||typeof x.refresh!="function"):!1}var s=new c(0,0,0,0),p=new c(0,0,0,0);function n(x,A,o){return s.copy(x.getBoundingRect()),x.transform&&s.applyTransform(x.transform),p.width=A,p.height=o,!s.intersect(p)}function i(x,A){if(x===A)return!1;if(!x||!A||x.length!==A.length)return!0;for(var o=0;o<x.length;o++)if(x[o]!==A[o])return!0;return!1}function v(x,A){for(var o=0;o<x.length;o++){var f=x[o];f.setTransform(A),A.beginPath(),f.buildPath(A,f.shape),A.clip(),f.restoreTransform(A)}}function C(x,A){var o=document.createElement("div");return o.style.cssText=["position:relative","width:"+x+"px","height:"+A+"px","padding:0","margin:0","border-width:0"].join(";")+";",o}var R=function(x,A,o){this.type="canvas";var f=!x.nodeName||x.nodeName.toUpperCase()==="CANVAS";this._opts=o=L.extend({},o||{}),this.dpr=o.devicePixelRatio||U,this._singleCanvas=f,this.root=x;var E=x.style;E&&(E["-webkit-tap-highlight-color"]="transparent",E["-webkit-user-select"]=E["user-select"]=E["-webkit-touch-callout"]="none",x.innerHTML=""),this.storage=A;var O=this._zlevelList=[],S=this._layers={};if(this._layerConfig={},this._needsManuallyCompositing=!1,f){var D=x.width,P=x.height;o.width!=null&&(D=o.width),o.height!=null&&(P=o.height),this.dpr=o.devicePixelRatio||1,x.width=D*this.dpr,x.height=P*this.dpr,this._width=D,this._height=P;var I=new M(x,this,this.dpr);I.__builtin__=!0,I.initContext(),S[h]=I,I.zlevel=h,O.push(h),this._domRoot=x}else{this._width=this._getSize(0),this._height=this._getSize(1);var b=this._domRoot=C(this._width,this._height);x.appendChild(b)}this._hoverlayer=null,this._hoverElements=[]};R.prototype={constructor:R,getType:function(){return"canvas"},isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._domRoot},getViewportRootOffset:function(){var x=this.getViewportRoot();if(x)return{offsetLeft:x.offsetLeft||0,offsetTop:x.offsetTop||0}},refresh:function(x){var A=this.storage.getDisplayList(!0),o=this._zlevelList;this._redrawId=Math.random(),this._paintList(A,x,this._redrawId);for(var f=0;f<o.length;f++){var E=o[f],O=this._layers[E];if(!O.__builtin__&&O.refresh){var S=f===0?this._backgroundColor:null;O.refresh(S)}}return this.refreshHover(),this},addHover:function(x,A){if(x.__hoverMir)return;var o=new x.constructor({style:x.style,shape:x.shape,z:x.z,z2:x.z2,silent:x.silent});return o.__from=x,x.__hoverMir=o,A&&o.setStyle(A),this._hoverElements.push(o),o},removeHover:function(x){var A=x.__hoverMir,o=this._hoverElements,f=L.indexOf(o,A);f>=0&&o.splice(f,1),x.__hoverMir=null},clearHover:function(x){for(var A=this._hoverElements,o=0;o<A.length;o++){var f=A[o].__from;f&&(f.__hoverMir=null)}A.length=0},refreshHover:function(){var x=this._hoverElements,A=x.length,o=this._hoverlayer;if(o&&o.clear(),!A)return;u(x,this.storage.displayableSortFunc),o||(o=this._hoverlayer=this.getLayer(r));var f={};o.ctx.save();for(var E=0;E<A;){var O=x[E],S=O.__from;if(!(S&&S.__zr)){x.splice(E,1),S.__hoverMir=null,A--;continue}E++,S.invisible||(O.transform=S.transform,O.invTransform=S.invTransform,O.__clipPaths=S.__clipPaths,this._doPaintEl(O,o,!0,f))}o.ctx.restore()},getHoverLayer:function(){return this.getLayer(r)},_paintList:function(x,A,o){if(this._redrawId!==o)return;A=A||!1,this._updateLayerStatus(x);var f=this._doPaintList(x,A);if(this._needsManuallyCompositing&&this._compositeManually(),!f){var E=this;g(function(){E._paintList(x,A,o)})}},_compositeManually:function(){var x=this.getLayer(h).ctx,A=this._domRoot.width,o=this._domRoot.height;x.clearRect(0,0,A,o),this.eachBuiltinLayer(function(f){f.virtual&&x.drawImage(f.dom,0,0,A,o)})},_doPaintList:function(x,A){for(var o=[],f=0;f<this._zlevelList.length;f++){var E=this._zlevelList[f],O=this._layers[E];O.__builtin__&&O!==this._hoverlayer&&(O.__dirty||A)&&o.push(O)}for(var S=!0,b=0;b<o.length;b++){var O=o[b],D=O.ctx,P={};D.save();var I=A?O.__startIndex:O.__drawIndex,F=!A&&O.incremental&&Date.now,K=F&&Date.now(),j=O.zlevel===this._zlevelList[0]?this._backgroundColor:null;if(O.__startIndex===O.__endIndex)O.clear(!1,j);else if(I===O.__startIndex){var Y=x[I];(!Y.incremental||!Y.notClear||A)&&O.clear(!1,j)}I===-1&&(console.error("For some unknown reason. drawIndex is -1"),I=O.__startIndex);for(var W=I;W<O.__endIndex;W++){var Q=x[W];if(this._doPaintEl(Q,O,A,P),Q.__dirty=Q.__dirtyText=!1,F){var ie=Date.now()-K;if(ie>15)break}}O.__drawIndex=W,O.__drawIndex<O.__endIndex&&(S=!1),P.prevElClipPaths&&D.restore(),D.restore()}return m.wxa&&L.each(this._layers,function(Ee){Ee&&Ee.ctx&&Ee.ctx.draw&&Ee.ctx.draw()}),S},_doPaintEl:function(x,A,o,f){var E=A.ctx,O=x.transform;if((A.__dirty||o)&&!x.invisible&&x.style.opacity!==0&&!(O&&!O[0]&&!O[3])&&!(x.culling&&n(x,this._width,this._height))){var S=x.__clipPaths,b=f.prevElClipPaths;(!b||i(S,b))&&(b&&(E.restore(),f.prevElClipPaths=null,f.prevEl=null),S&&(E.save(),v(S,E),f.prevElClipPaths=S)),x.beforeBrush&&x.beforeBrush(E),x.brush(E,f.prevEl||null),f.prevEl=x,x.afterBrush&&x.afterBrush(E)}},getLayer:function(x,A){this._singleCanvas&&!this._needsManuallyCompositing&&(x=h);var o=this._layers[x];return o||(o=new M("zr_"+x,this,this.dpr),o.zlevel=x,o.__builtin__=!0,this._layerConfig[x]?L.merge(o,this._layerConfig[x],!0):this._layerConfig[x-a]&&L.merge(o,this._layerConfig[x-a],!0),A&&(o.virtual=A),this.insertLayer(x,o),o.initContext()),o},insertLayer:function(x,A){var o=this._layers,f=this._zlevelList,E=f.length,O=null,S=-1,b=this._domRoot;if(o[x]){N("ZLevel "+x+" has been used already");return}if(!y(A)){N("Layer of zlevel "+x+" is not valid");return}if(E>0&&x>f[0]){for(S=0;S<E-1&&!(f[S]<x&&f[S+1]>x);S++);O=o[f[S]]}if(f.splice(S+1,0,x),o[x]=A,!A.virtual)if(O){var D=O.dom;D.nextSibling?b.insertBefore(A.dom,D.nextSibling):b.appendChild(A.dom)}else b.firstChild?b.insertBefore(A.dom,b.firstChild):b.appendChild(A.dom)},eachLayer:function(x,A){var o=this._zlevelList,f,E;for(E=0;E<o.length;E++)f=o[E],x.call(A,this._layers[f],f)},eachBuiltinLayer:function(x,A){var o=this._zlevelList,f,E,O;for(O=0;O<o.length;O++)E=o[O],f=this._layers[E],f.__builtin__&&x.call(A,f,E)},eachOtherLayer:function(x,A){var o=this._zlevelList,f,E,O;for(O=0;O<o.length;O++)E=o[O],f=this._layers[E],f.__builtin__||x.call(A,f,E)},getLayers:function(){return this._layers},_updateLayerStatus:function(x){this.eachBuiltinLayer(function(P,I){P.__dirty=P.__used=!1});function A(P){E&&(E.__endIndex!==P&&(E.__dirty=!0),E.__endIndex=P)}if(this._singleCanvas)for(var o=1;o<x.length;o++){var f=x[o];if(f.zlevel!==x[o-1].zlevel||f.incremental){this._needsManuallyCompositing=!0;break}}for(var E=null,O=0,S,o=0;o<x.length;o++){var f=x[o],b=f.zlevel,D;S!==b&&(S=b,O=0),f.incremental?(D=this.getLayer(b+l,this._needsManuallyCompositing),D.incremental=!0,O=1):D=this.getLayer(b+(O>0?a:0),this._needsManuallyCompositing),D.__builtin__||N("ZLevel "+b+" has been used by unkown layer "+D.id),D!==E&&(D.__used=!0,D.__startIndex!==o&&(D.__dirty=!0),D.__startIndex=o,D.incremental?D.__drawIndex=-1:D.__drawIndex=o,A(o),E=D),f.__dirty&&(D.__dirty=!0,D.incremental&&D.__drawIndex<0&&(D.__drawIndex=o))}A(o),this.eachBuiltinLayer(function(P,I){!P.__used&&P.getElementCount()>0&&(P.__dirty=!0,P.__startIndex=P.__endIndex=P.__drawIndex=0),P.__dirty&&P.__drawIndex<0&&(P.__drawIndex=P.__startIndex)})},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(x){x.clear()},setBackgroundColor:function(x){this._backgroundColor=x},configLayer:function(x,A){if(A){var o=this._layerConfig;o[x]?L.merge(o[x],A,!0):o[x]=A;for(var f=0;f<this._zlevelList.length;f++){var E=this._zlevelList[f];if(E===x||E===x+a){var O=this._layers[E];L.merge(O,o[x],!0)}}}},delLayer:function(x){var A=this._layers,o=this._zlevelList,f=A[x];if(!f)return;f.dom.parentNode.removeChild(f.dom),delete A[x],o.splice(L.indexOf(o,x),1)},resize:function(x,A){if(this._domRoot.style){var o=this._domRoot;o.style.display="none";var f=this._opts;if(x!=null&&(f.width=x),A!=null&&(f.height=A),x=this._getSize(0),A=this._getSize(1),o.style.display="",this._width!==x||A!==this._height){o.style.width=x+"px",o.style.height=A+"px";for(var E in this._layers)this._layers.hasOwnProperty(E)&&this._layers[E].resize(x,A);L.each(this._progressiveLayers,function(O){O.resize(x,A)}),this.refresh(!0)}this._width=x,this._height=A}else{if(x==null||A==null)return;this._width=x,this._height=A,this.getLayer(h).resize(x,A)}return this},clearLayer:function(x){var A=this._layers[x];A&&A.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(x){if(x=x||{},this._singleCanvas&&!this._compositeManually)return this._layers[h].dom;var A=new M("image",this,x.pixelRatio||this.dpr);if(A.initContext(),A.clear(!1,x.backgroundColor||this._backgroundColor),x.pixelRatio<=this.dpr){this.refresh();var o=A.dom.width,f=A.dom.height,E=A.ctx;this.eachLayer(function(P){P.__builtin__?E.drawImage(P.dom,0,0,o,f):P.renderToCanvas&&(A.ctx.save(),P.renderToCanvas(A.ctx),A.ctx.restore())})}else for(var O={},S=this.storage.getDisplayList(!0),b=0;b<S.length;b++){var D=S[b];this._doPaintEl(D,A,!0,O)}return A.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(x){var A=this._opts,o=["width","height"][x],f=["clientWidth","clientHeight"][x],E=["paddingLeft","paddingTop"][x],O=["paddingRight","paddingBottom"][x];if(A[o]!=null&&A[o]!=="auto")return parseFloat(A[o]);var S=this.root,b=document.defaultView.getComputedStyle(S);return(S[f]||d(b[o])||d(S.style[o]))-(d(b[E])||0)-(d(b[O])||0)|0},pathToImage:function(x,A){A=A||this.dpr;var o=document.createElement("canvas"),f=o.getContext("2d"),E=x.getBoundingRect(),O=x.style,S=O.shadowBlur*A,b=O.shadowOffsetX*A,D=O.shadowOffsetY*A,P=O.hasStroke()?O.lineWidth:0,I=Math.max(P/2,-b+S),F=Math.max(P/2,b+S),K=Math.max(P/2,-D+S),j=Math.max(P/2,D+S),Y=E.width+I+F,W=E.height+K+j;o.width=Y*A,o.height=W*A,f.scale(A,A),f.clearRect(0,0,Y,W),f.dpr=A;var Q={position:x.position,rotation:x.rotation,scale:x.scale};x.position=[I-E.x,K-E.y],x.rotation=0,x.scale=[1,1],x.updateTransform(),x&&x.brush(f);var ie=e,Ee=new ie({style:{x:0,y:0,image:o}});return Q.position!=null&&(Ee.position=x.position=Q.position),Q.rotation!=null&&(Ee.rotation=x.rotation=Q.rotation),Q.scale!=null&&(Ee.scale=x.scale=Q.scale),Ee}};var w=R;ge.exports=w},"7ZXX":function(ge,q,_){ge.exports=_.p+"static/err.6e7c5817.png"},"7ixt":function(ge,q,_){"use strict";_.d(q,"a",function(){return L});var Z={adjustX:1,adjustY:1},U=[0,0],L={left:{points:["cr","cl"],overflow:Z,offset:[-4,0],targetOffset:U},right:{points:["cl","cr"],overflow:Z,offset:[4,0],targetOffset:U},top:{points:["bc","tc"],overflow:Z,offset:[0,-4],targetOffset:U},bottom:{points:["tc","bc"],overflow:Z,offset:[0,4],targetOffset:U},topLeft:{points:["bl","tl"],overflow:Z,offset:[0,-4],targetOffset:U},leftTop:{points:["tr","tl"],overflow:Z,offset:[-4,0],targetOffset:U},topRight:{points:["br","tr"],overflow:Z,offset:[0,-4],targetOffset:U},rightTop:{points:["tl","tr"],overflow:Z,offset:[4,0],targetOffset:U},bottomRight:{points:["tr","br"],overflow:Z,offset:[0,4],targetOffset:U},rightBottom:{points:["bl","br"],overflow:Z,offset:[4,0],targetOffset:U},bottomLeft:{points:["tl","bl"],overflow:Z,offset:[0,4],targetOffset:U},leftBottom:{points:["br","bl"],overflow:Z,offset:[-4,0],targetOffset:U}},N=L},"7oTu":function(ge,q,_){var Z=_("IMiH"),U=_("QBsz"),L=U.applyTransform,N=Z.CMD,c=[[],[],[]],u=Math.sqrt,M=Math.atan2;function g(e,m){var r=e.data,h,a,l,d,y,s,p=N.M,n=N.C,i=N.L,v=N.R,C=N.A,R=N.Q;for(l=0,d=0;l<r.length;){h=r[l++],d=l,a=0;switch(h){case p:a=1;break;case i:a=1;break;case n:a=3;break;case R:a=2;break;case C:var w=m[4],x=m[5],A=u(m[0]*m[0]+m[1]*m[1]),o=u(m[2]*m[2]+m[3]*m[3]),f=M(-m[1]/o,m[0]/A);r[l]*=A,r[l++]+=w,r[l]*=o,r[l++]+=x,r[l++]*=A,r[l++]*=o,r[l++]+=f,r[l++]+=f,l+=2,d=l;break;case v:s[0]=r[l++],s[1]=r[l++],L(s,s,m),r[d++]=s[0],r[d++]=s[1],s[0]+=r[l++],s[1]+=r[l++],L(s,s,m),r[d++]=s[0],r[d++]=s[1]}for(y=0;y<a;y++){var s=c[y];s[0]=r[l++],s[1]=r[l++],L(s,s,m),r[d++]=s[0],r[d++]=s[1]}}}ge.exports=g},"7v3h":function(ge,q,_){ge.exports=_.p+"static/empty2.dd73f390.png"},"8/bI":function(ge,q,_){ge.exports=_.p+"static/empty.8918e228.png"},"8/ia":function(ge,q,_){ge.exports={flex_box_center:"flex_box_center___3TrMw",flex_space_between:"flex_space_between___25lz-",flex_box_vertical_center:"flex_box_vertical_center___VNDYT",flex_box_center_end:"flex_box_center_end___1payq",flex_box_column:"flex_box_column___3s75t",home:"home___2qxvj",bg:"bg___11AQ6",btns:"btns___2Mu9o",li:"li___2F1jx",competition:"competition___2OwyE",title:"title___3RKmg",des:"des___2u7RT",information:"information___1ivpa",d1:"d1___1E_ob",d2:"d2___HyBW1",d3:"d3___2RMx0",retrospect:"retrospect___hdxt7",banner:"banner___5lHvU",left:"left___1B8Nn",right:"right___3BQaw",name:"name___2T0Hk",btn:"btn___1Qii_",l:"l___1j7Zw",r:"r___3YGSw",group:"group___1TrQV",tabs:"tabs___1VMmG",list:"list___2FHkS"}},"80w6":function(ge,q,_){ge.exports=_.p+"static/icon6.2378c19c.svg"},"8HAY":function(ge,q,_){"use strict";_.d(q,"a",function(){return c}),_.d(q,"b",function(){return u}),_.d(q,"d",function(){return M}),_.d(q,"e",function(){return g}),_.d(q,"c",function(){return e});var Z=_("MI8n"),U=_("pmY6"),L=_("3/fG"),N=function(m,r,h,a){function l(d){return d instanceof h?d:new h(function(y){y(d)})}return new(h||(h=Promise))(function(d,y){function s(i){try{n(a.next(i))}catch(v){y(v)}}function p(i){try{n(a.throw(i))}catch(v){y(v)}}function n(i){i.done?d(i.value):l(i.value).then(s,p)}n((a=a.apply(m,r||[])).next())})};class c extends U.a{constructor(m,r="",h="",a=!0,l){super();this._onDidChange=this._register(new Z.b),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=m,this._label=r,this._cssClass=h,this._enabled=a,this._actionCallback=l}get id(){return this._id}get label(){return this._label}set label(m){this._setLabel(m)}_setLabel(m){this._label!==m&&(this._label=m,this._onDidChange.fire({label:m}))}get tooltip(){return this._tooltip||""}set tooltip(m){this._setTooltip(m)}_setTooltip(m){this._tooltip!==m&&(this._tooltip=m,this._onDidChange.fire({tooltip:m}))}get class(){return this._cssClass}set class(m){this._setClass(m)}_setClass(m){this._cssClass!==m&&(this._cssClass=m,this._onDidChange.fire({class:m}))}get enabled(){return this._enabled}set enabled(m){this._setEnabled(m)}_setEnabled(m){this._enabled!==m&&(this._enabled=m,this._onDidChange.fire({enabled:m}))}get checked(){return this._checked}set checked(m){this._setChecked(m)}_setChecked(m){this._checked!==m&&(this._checked=m,this._onDidChange.fire({checked:m}))}run(m,r){return N(this,void 0,void 0,function*(){this._actionCallback&&(yield this._actionCallback(m))})}}class u extends U.a{constructor(){super(...arguments);this._onBeforeRun=this._register(new Z.b),this.onBeforeRun=this._onBeforeRun.event,this._onDidRun=this._register(new Z.b),this.onDidRun=this._onDidRun.event}run(m,r){return N(this,void 0,void 0,function*(){if(!m.enabled)return;this._onBeforeRun.fire({action:m});let h;try{yield this.runAction(m,r)}catch(a){h=a}this._onDidRun.fire({action:m,error:h})})}runAction(m,r){return N(this,void 0,void 0,function*(){yield m.run(r)})}}class M extends c{constructor(m){super(M.ID,m,m?"separator text":"separator");this.checked=!1,this.enabled=!1}}M.ID="vs.actions.separator";class g{constructor(m,r,h,a){this.tooltip="",this.enabled=!0,this.checked=!1,this.id=m,this.label=r,this.class=a,this._actions=h}get actions(){return this._actions}dispose(){}run(){return N(this,void 0,void 0,function*(){})}}class e extends c{constructor(){super(e.ID,L.a("submenu.empty","(empty)"),void 0,!1)}}e.ID="vs.actions.empty"},"8WcF":function(ge,q,_){ge.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"}},"8XDt":function(ge,q,_){_("qH13");var Z=_("aX58"),U=Z.registerPainter,L=_("6fms");U("vml",L)},"8hTe":function(ge,q,_){ge.exports={button:"button___1wy9m"}},"8mKB":function(ge,q,_){"use strict";var Z=_("rePB"),U=_("1OyB"),L=_("vuIU"),N=_("Ji7U"),c=_("md7G"),u=_("foSv"),M=_("q1tI"),g=_.n(M),e=_("m+aA"),m=_("TSYQ"),r=_.n(m),h=_("4IlW");function a(o){var f=o.pageXOffset,E="scrollLeft";if(typeof f!="number"){var O=o.document;f=O.documentElement[E],typeof f!="number"&&(f=O.body[E])}return f}function l(o){var f,E,O=o.ownerDocument,S=O.body,b=O&&O.documentElement,D=o.getBoundingClientRect();return f=D.left,E=D.top,f-=b.clientLeft||S.clientLeft||0,E-=b.clientTop||S.clientTop||0,{left:f,top:E}}function d(o){var f=l(o),E=o.ownerDocument,O=E.defaultView||E.parentWindow;return f.left+=a(O),f.left}function y(o){var f=s();return function(){var O=Object(u.a)(o),S;if(f){var b=Object(u.a)(this).constructor;S=Reflect.construct(O,arguments,b)}else S=O.apply(this,arguments);return Object(c.a)(this,S)}}function s(){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(o){return!1}}var p=function(o){Object(N.a)(E,o);var f=y(E);function E(){var O;return Object(U.a)(this,E),O=f.apply(this,arguments),O.onHover=function(S){var b=O.props,D=b.onHover,P=b.index;D(S,P)},O.onClick=function(S){var b=O.props,D=b.onClick,P=b.index;D(S,P)},O.onKeyDown=function(S){var b=O.props,D=b.onClick,P=b.index;S.keyCode===13&&D(S,P)},O}return Object(L.a)(E,[{key:"getClassName",value:function(){var S=this.props,b=S.prefixCls,D=S.index,P=S.value,I=S.allowHalf,F=S.focused,K=D+1,j=b;return P===0&&D===0&&F?j+=" ".concat(b,"-focused"):I&&P+.5>=K&&P<K?(j+=" ".concat(b,"-half ").concat(b,"-active"),F&&(j+=" ".concat(b,"-focused"))):(j+=K<=P?" ".concat(b,"-full"):" ".concat(b,"-zero"),K===P&&F&&(j+=" ".concat(b,"-focused"))),j}},{key:"render",value:function(){var S=this.onHover,b=this.onClick,D=this.onKeyDown,P=this.props,I=P.disabled,F=P.prefixCls,K=P.character,j=P.characterRender,Y=P.index,W=P.count,Q=P.value,ie=typeof K=="function"?K(this.props):K,Ee=g.a.createElement("li",{className:this.getClassName()},g.a.createElement("div",{onClick:I?null:b,onKeyDown:I?null:D,onMouseMove:I?null:S,role:"radio","aria-checked":Q>Y?"true":"false","aria-posinset":Y+1,"aria-setsize":W,tabIndex:I?-1:0},g.a.createElement("div",{className:"".concat(F,"-first")},ie),g.a.createElement("div",{className:"".concat(F,"-second")},ie)));return j&&(Ee=j(Ee,this.props)),Ee}}]),E}(g.a.Component);function n(o,f){var E=Object.keys(o);if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(o);f&&(O=O.filter(function(S){return Object.getOwnPropertyDescriptor(o,S).enumerable})),E.push.apply(E,O)}return E}function i(o){for(var f=1;f<arguments.length;f++){var E=arguments[f]!=null?arguments[f]:{};f%2?n(Object(E),!0).forEach(function(O){Object(Z.a)(o,O,E[O])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(E)):n(Object(E)).forEach(function(O){Object.defineProperty(o,O,Object.getOwnPropertyDescriptor(E,O))})}return o}function v(o){var f=C();return function(){var O=Object(u.a)(o),S;if(f){var b=Object(u.a)(this).constructor;S=Reflect.construct(O,arguments,b)}else S=O.apply(this,arguments);return Object(c.a)(this,S)}}function C(){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(o){return!1}}function R(){}var w=function(o){Object(N.a)(E,o);var f=v(E);function E(O){var S;Object(U.a)(this,E),S=f.call(this,O),S.onHover=function(D,P){var I=S.props.onHoverChange,F=S.getStarValue(P,D.pageX),K=S.state.cleanedValue;F!==K&&S.setState({hoverValue:F,cleanedValue:null}),I(F)},S.onMouseLeave=function(){var D=S.props.onHoverChange;S.setState({hoverValue:void 0,cleanedValue:null}),D(void 0)},S.onClick=function(D,P){var I=S.props.allowClear,F=S.state.value,K=S.getStarValue(P,D.pageX),j=!1;I&&(j=K===F),S.onMouseLeave(),S.changeValue(j?0:K),S.setState({cleanedValue:j?K:null})},S.onFocus=function(){var D=S.props.onFocus;S.setState({focused:!0}),D&&D()},S.onBlur=function(){var D=S.props.onBlur;S.setState({focused:!1}),D&&D()},S.onKeyDown=function(D){var P=D.keyCode,I=S.props,F=I.count,K=I.allowHalf,j=I.onKeyDown,Y=I.direction,W=Y==="rtl",Q=S.state.value;P===h.a.RIGHT&&Q<F&&!W?(K?Q+=.5:Q+=1,S.changeValue(Q),D.preventDefault()):P===h.a.LEFT&&Q>0&&!W||P===h.a.RIGHT&&Q>0&&W?(K?Q-=.5:Q-=1,S.changeValue(Q),D.preventDefault()):P===h.a.LEFT&&Q<F&&W&&(K?Q+=.5:Q+=1,S.changeValue(Q),D.preventDefault()),j&&j(D)},S.saveRef=function(D){return function(P){S.stars[D]=P}},S.saveRate=function(D){S.rate=D};var b=O.value;return b===void 0&&(b=O.defaultValue),S.stars={},S.state={value:b,focused:!1,cleanedValue:null},S}return Object(L.a)(E,[{key:"componentDidMount",value:function(){var S=this.props,b=S.autoFocus,D=S.disabled;b&&!D&&this.focus()}},{key:"getStarDOM",value:function(S){return Object(e.a)(this.stars[S])}},{key:"getStarValue",value:function(S,b){var D=this.props,P=D.allowHalf,I=D.direction,F=I==="rtl",K=S+1;if(P){var j=this.getStarDOM(S),Y=d(j),W=j.clientWidth;(F&&b-Y>W/2||!F&&b-Y<W/2)&&(K-=.5)}return K}},{key:"focus",value:function(){var S=this.props.disabled;S||this.rate.focus()}},{key:"blur",value:function(){var S=this.props.disabled;S||this.rate.blur()}},{key:"changeValue",value:function(S){var b=this.props.onChange;"value"in this.props||this.setState({value:S}),b(S)}},{key:"render",value:function(){for(var S=this.props,b=S.count,D=S.allowHalf,P=S.style,I=S.prefixCls,F=S.disabled,K=S.className,j=S.character,Y=S.characterRender,W=S.tabIndex,Q=S.direction,ie=this.state,Ee=ie.value,pe=ie.hoverValue,De=ie.focused,Me=[],Ue=F?"".concat(I,"-disabled"):"",Ie=0;Ie<b;Ie+=1)Me.push(g.a.createElement(p,{ref:this.saveRef(Ie),index:Ie,count:b,disabled:F,prefixCls:"".concat(I,"-star"),allowHalf:D,value:pe===void 0?Ee:pe,onClick:this.onClick,onHover:this.onHover,key:Ie,character:j,characterRender:Y,focused:De}));var ne=r()(I,Ue,K,Object(Z.a)({},"".concat(I,"-rtl"),Q==="rtl"));return g.a.createElement("ul",{className:ne,style:P,onMouseLeave:F?null:this.onMouseLeave,tabIndex:F?-1:W,onFocus:F?null:this.onFocus,onBlur:F?null:this.onBlur,onKeyDown:F?null:this.onKeyDown,ref:this.saveRate,role:"radiogroup"},Me)}}],[{key:"getDerivedStateFromProps",value:function(S,b){return"value"in S&&S.value!==void 0?i(i({},b),{},{value:S.value}):b}}]),E}(g.a.Component);w.defaultProps={defaultValue:0,count:5,allowHalf:!1,allowClear:!0,style:{},prefixCls:"rc-rate",onChange:R,character:"\u2605",onHoverChange:R,tabIndex:0,direction:"ltr"};var x=w,A=q.a=x},"9Bee":function(ge,q,_){"use strict";var Z=_("DYRE"),U=_("zeV3"),L=_("+L6B"),N=_("2/Rp"),c=_("k1fw"),u=_("9og8"),M=_("tJVT"),g=_("WmNS"),e=_.n(g),m=_("q1tI"),r=_.n(m),h=_("vg9a"),a=_("DlQD"),l=_.n(a),d=_("rUJ1");function y(ve,se){var le=ve.match(/^(\s+)(?:```)/);if(le===null)return se;var fe=le[1];return se.split(`
`).map(function(Re){var ce=Re.match(/^\s+/);if(ce===null)return Re;var he=Object(M.a)(ce,1),Se=he[0];return Se.length>=fe.length?Re.slice(fe.length):Re}).join(`
`)}var s=[],p=["<ul>"],n=new l.a.Renderer,i=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function v(){s.length=0,p=["<ul>"]}var C={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function R(ve,se,le,fe){if(se>=ve.length||ve[se].level<=le)return se;var Re=ve[se];fe.push("<li><a href='#"+Re.anchor+"'>"+Re.text+"</a>"),se++;var ce=[];return se=R(ve,se,Re.level,ce),ce.length>0&&(fe.push("<ul>"),ce.forEach(function(he){fe.push(he)}),fe.push("</ul>")),fe.push("</li>"),se=R(ve,se,le,fe),se}function w(){return R(s,0,0,p),p.push("</ul>"),p.join("")}var x={heading:function(se){var le=i.exec(se);if(le)return{type:"heading",raw:le[0],depth:le[1].length,text:le[2]}},fences:function(se){var le=this.rules.block.fences.exec(se);if(le){var fe=le[0],Re=y(fe,le[3]||""),ce=le[2]?le[2].trim():le[2];if(["latex","katex","math"].indexOf(ce)>=0){var he=f(),Se=Re;Re=he,E[he]={type:"block",expression:Se}}return{type:"code",raw:fe,lang:ce,text:Re}}}},A=/(?:\${2})([^\n`]+?)(?:\${2})/gi,o=0,f=function(){return"__special_katext_id_".concat(o++,"__")},E={};function O(){return E}function S(){o=0,E={}}function b(ve){return ve=ve.replace(A,function(se,le){var fe=f();return E[fe]={type:"inline",expression:le},fe}),ve}var D=n.listitem;n.listitem=function(ve){return D(b(ve))};var P=n.paragraph;n.paragraph=function(ve){return P(b(ve))};var I=n.tablecell;n.tablecell=function(ve,se){return I(b(ve),se)},n.code=function(ve,se,le){var fe=(se||"").match(/\S*/)[0];return fe?["latex","katex","math"].indexOf(fe)>=0?"<p class='editormd-tex'>".concat(ve,"</p>"):'<pre class="prettyprint linenums"><code class="language-'.concat(se,'">').concat(le?ve:Object(d.escape)(ve,!0),`</code></pre>
`):'<pre class="prettyprint linenums"><code>'+(le?ve:Object(d.escape)(ve,!0))+"</code></pre>"},n.heading=function(ve,se,le){var fe=this.options.headerPrefix+le.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return s.push({anchor:fe,level:se,text:ve}),"<h"+se+' id="'+fe+'">'+ve+"</h"+se+">"},l.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),l.a.use({tokenizer:x,renderer:n});var F=l.a,K=_("SJMd"),j=_("ulZh"),Y=_.n(j),W=_("m3rI"),Q=_("Oy/b"),ie=_("p5ED"),Ee=_("ErOA"),pe=_("STEk");/* **********************************
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 De=function(ve,se){return(De=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(le,fe){le.__proto__=fe}||function(le,fe){for(var Re in fe)Object.prototype.hasOwnProperty.call(fe,Re)&&(le[Re]=fe[Re])})(ve,se)};function Me(ve,se){if(typeof se!="function"&&se!==null)throw new TypeError("Class extends value "+String(se)+" is not a constructor or null");function le(){this.constructor=ve}De(ve,se),ve.prototype=se===null?Object.create(se):(le.prototype=se.prototype,new le)}function Ue(ve,se,le,fe){return new(le||(le=Promise))(function(Re,ce){function he(Ze){try{we(fe.next(Ze))}catch(Ye){ce(Ye)}}function Se(Ze){try{we(fe.throw(Ze))}catch(Ye){ce(Ye)}}function we(Ze){var Ye;Ze.done?Re(Ze.value):(Ye=Ze.value,Ye instanceof le?Ye:new le(function(it){it(Ye)})).then(he,Se)}we((fe=fe.apply(ve,se||[])).next())})}function Ie(ve,se){var le,fe,Re,ce,he={label:0,sent:function(){if(1&Re[0])throw Re[1];return Re[1]},trys:[],ops:[]};return ce={next:Se(0),throw:Se(1),return:Se(2)},typeof Symbol=="function"&&(ce[Symbol.iterator]=function(){return this}),ce;function Se(we){return function(Ze){return function(Ye){if(le)throw new TypeError("Generator is already executing.");for(;he;)try{if(le=1,fe&&(Re=2&Ye[0]?fe.return:Ye[0]?fe.throw||((Re=fe.return)&&Re.call(fe),0):fe.next)&&!(Re=Re.call(fe,Ye[1])).done)return Re;switch(fe=0,Re&&(Ye=[2&Ye[0],Re.value]),Ye[0]){case 0:case 1:Re=Ye;break;case 4:return he.label++,{value:Ye[1],done:!1};case 5:he.label++,fe=Ye[1],Ye=[0];continue;case 7:Ye=he.ops.pop(),he.trys.pop();continue;default:if(!(Re=he.trys,(Re=Re.length>0&&Re[Re.length-1])||Ye[0]!==6&&Ye[0]!==2)){he=0;continue}if(Ye[0]===3&&(!Re||Ye[1]>Re[0]&&Ye[1]<Re[3])){he.label=Ye[1];break}if(Ye[0]===6&&he.label<Re[1]){he.label=Re[1],Re=Ye;break}if(Re&&he.label<Re[2]){he.label=Re[2],he.ops.push(Ye);break}Re[2]&&he.ops.pop(),he.trys.pop();continue}Ye=se.call(ve,he)}catch(it){Ye=[6,it],fe=0}finally{le=Re=0}if(5&Ye[0])throw Ye[1];return{value:Ye[0]?Ye[1]:void 0,done:!0}}([we,Ze])}}}var ne=function(){function ve(){}return ve.addKey=function(se){ve.key=se},Object.defineProperty(ve,"isLicensed",{get:function(){return!!ve.key&&new RegExp(/^CRPR-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(ve.key)},enumerable:!1,configurable:!0}),ve}(),B=function(){function ve(){}return ve.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},ve.setAttributes=function(se,le){for(var fe=0,Re=le;fe<Re.length;fe++){var ce=Re[fe],he=ce[0],Se=ce[1];se.setAttribute(he,Se)}},ve.createRect=function(se,le,fe){var Re=document.createElementNS("http://www.w3.org/2000/svg","rect");return Re.setAttribute("width",se.toString()),Re.setAttribute("height",le.toString()),fe&&ve.setAttributes(Re,fe),Re},ve.createLine=function(se,le,fe,Re,ce){var he=document.createElementNS("http://www.w3.org/2000/svg","line");return he.setAttribute("x1",se.toString()),he.setAttribute("y1",le.toString()),he.setAttribute("x2",fe.toString()),he.setAttribute("y2",Re.toString()),ce&&ve.setAttributes(he,ce),he},ve.createPolygon=function(se,le){var fe=document.createElementNS("http://www.w3.org/2000/svg","polygon");return fe.setAttribute("points",se),le&&ve.setAttributes(fe,le),fe},ve.createCircle=function(se,le){var fe=document.createElementNS("http://www.w3.org/2000/svg","circle");return fe.setAttribute("cx",(se/2).toString()),fe.setAttribute("cy",(se/2).toString()),fe.setAttribute("r",se.toString()),le&&ve.setAttributes(fe,le),fe},ve.createEllipse=function(se,le,fe){var Re=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return Re.setAttribute("cx",(se/2).toString()),Re.setAttribute("cy",(le/2).toString()),Re.setAttribute("rx",(se/2).toString()),Re.setAttribute("ry",(le/2).toString()),fe&&ve.setAttributes(Re,fe),Re},ve.createGroup=function(se){var le=document.createElementNS("http://www.w3.org/2000/svg","g");return se&&ve.setAttributes(le,se),le},ve.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},ve.createMarker=function(se,le,fe,Re,ce,he,Se){var we=document.createElementNS("http://www.w3.org/2000/svg","marker");return ve.setAttributes(we,[["id",se],["orient",le],["markerWidth",fe.toString()],["markerHeight",Re.toString()],["refX",ce.toString()],["refY",he.toString()]]),we.appendChild(Se),we},ve.createText=function(se){var le=document.createElementNS("http://www.w3.org/2000/svg","text");return le.setAttribute("x","0"),le.setAttribute("y","0"),se&&ve.setAttributes(le,se),le},ve.createTSpan=function(se,le){var fe=document.createElementNS("http://www.w3.org/2000/svg","tspan");return fe.textContent=se,le&&ve.setAttributes(fe,le),fe},ve.createImage=function(se){var le=document.createElementNS("http://www.w3.org/2000/svg","image");return se&&ve.setAttributes(le,se),le},ve.createPoint=function(se,le){var fe=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return fe.x=se,fe.y=le,fe},ve.createPath=function(se,le){var fe=document.createElementNS("http://www.w3.org/2000/svg","path");return fe.setAttribute("d",se),le&&ve.setAttributes(fe,le),fe},ve.createElement=function(se,le){var fe=document.createElementNS("http://www.w3.org/2000/svg",se);return le&&ve.setAttributes(fe,le),fe},ve.getHollowRectanglePath=function(se,le,fe,Re,ce,he,Se,we){return"M"+se+","+le+"V"+(le+Re)+"H"+(se+fe)+"V"+le+"H"+ce+"V"+he+"H"+(ce+Se)+"V"+(he+we)+"H"+ce+"V"+le+"Z"},ve}(),z=function(){function ve(se){this._classNamePrefixBase="__cropro_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+se+"_"}return Object.defineProperty(ve.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(ve.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(ve.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"_fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"_fade_out"},enumerable:!1,configurable:!0}),ve.prototype.addClass=function(se){return this.styleSheet===void 0&&this.addStyleSheet(),se.name=""+this.classNamePrefix+se.localName,this.classes.push(se),this.styleSheet.sheet.insertRule("."+se.name+" {"+se.style+"}",this.styleSheet.sheet.cssRules.length),se},ve.prototype.addRule=function(se){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(se),this.styleSheet.sheet.insertRule(se.selector+" {"+se.style+"}",this.styleSheet.sheet.cssRules.length)},ve.prototype.addStyleSheet=function(){var se;this.styleSheet=document.createElement("style"),((se=this.styleSheetRoot)!==null&&se!==void 0?se:document.head).appendChild(this.styleSheet),this.addRule(new H("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new H("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new H("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new ee("_fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new ee("_fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},ve.prototype.removeStyleSheet=function(){var se;this.styleSheet&&(((se=this.styleSheetRoot)!==null&&se!==void 0?se:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},ve}(),H=function(ve,se){this.selector=ve,this.style=se},ee=function(ve,se){this.localName=ve,this.style=se},X=function(){function ve(){this.blocks=[],this.display=""}return ve.prototype.addButtonBlock=function(se){se.className=this.blockClassName,se.buttonClassName=this.buttonClassName,se.buttonColorsClassName=this.buttonColorsClassName,se.buttonActiveColorsClassName=this.buttonActiveColorsClassName,this.blocks.push(se)},ve.prototype.addElementBlock=function(se){se.className===void 0&&(se.className=this.blockClassName),this.blocks.push(se)},ve.prototype.getUI=function(){var se=document.createElement("div");return se.className=this.className+" "+this.colorsClassName+" "+this.fadeInClassName,se.style.display=this.display,this.blocks.forEach(function(le){return se.appendChild(le.getUI())}),se},ve}(),me=function(){function ve(){}return ve.prototype.getUI=function(){var se=document.createElement("div");if(se.className=this.className,this.minWidth!==void 0&&(se.style.minWidth=this.minWidth),this.contentAlign!==void 0)switch(this.contentAlign){case"start":se.style.justifyContent="flex-start";break;case"center":se.style.justifyContent="center";break;case"end":se.style.justifyContent="flex-end"}return se.style.whiteSpace="nowrap",se},ve}(),je=function(ve){function se(){var le=ve!==null&&ve.apply(this,arguments)||this;return le.buttons=[],le}return Me(se,ve),se.prototype.addButton=function(le){le.className=this.buttonClassName,le.colorsClassName=this.buttonColorsClassName,le.activeColorsClassName=this.buttonActiveColorsClassName,this.buttons.push(le)},se.prototype.getUI=function(){var le=ve.prototype.getUI.call(this);return this.buttons.forEach(function(fe){return le.appendChild(fe.getUI())}),le},se}(me),Je=function(){function ve(se,le){this._isActive=!1,this._isHidden=!1,this._icon=se,this.title=le,this.uiContainer=document.createElement("div"),this.adjustClassName=this.adjustClassName.bind(this)}return Object.defineProperty(ve.prototype,"icon",{get:function(){return this._icon},set:function(se){this._icon=se,this.buttonContainer.innerHTML=this._icon},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"isActive",{get:function(){return this._isActive},set:function(se){this._isActive=se,this.adjustClassName()},enumerable:!1,configurable:!0}),ve.prototype.getUI=function(){var se=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 se.onClick()}),this.uiContainer.appendChild(this.buttonContainer),this.uiContainer.style.display=this._isHidden?"none":"inline-block",this.uiContainer},ve.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,"")))},ve.prototype.hide=function(){this._isHidden=!0},ve}(),oe=function(ve){function se(){var le=ve!==null&&ve.apply(this,arguments)||this;return le.elements=[],le}return Me(se,ve),se.prototype.addElement=function(le){this.elements.push(le)},se.prototype.getUI=function(){var le=ve.prototype.getUI.call(this);return this.elements.forEach(function(fe){return le.appendChild(fe)}),le},se}(me),Ae=function(){function ve(se,le){this.horizontal=se,this.vertical=le}return Object.defineProperty(ve.prototype,"ratio",{get:function(){return 1*this.horizontal/this.vertical},enumerable:!1,configurable:!0}),ve.prototype.getVerticalLength=function(se){return se/this.ratio},ve.prototype.getHorizontalLength=function(se){return se*this.ratio},ve}(),ye=function(){function ve(){}return ve.getIcon=function(se,le){if(se>0&&le>0){var fe=new Ae(se,le),Re=fe.ratio>=1?20:fe.getHorizontalLength(20),ce=fe.ratio<1?20:fe.getVerticalLength(20),he=document.createElementNS("http://www.w3.org/2000/svg","svg");he.setAttribute("xmlns","http://www.w3.org/2000/svg"),he.setAttribute("viewBox","0 0 24 24"),document.body.appendChild(he);var Se=B.createDefs();he.appendChild(Se);var we=B.createElement("clipPath",[["id","text-bg-clip"]]);Se.appendChild(we);var Ze=B.createPath(B.getHollowRectanglePath((24-Re)/2,(24-ce)/2,Re,ce,(24-Re)/2+2,(24-ce)/2+2,Re-4,ce-4));he.appendChild(Ze);var Ye=B.createText([["x","0"],["y","0"],["font-size","7px"],["font-family","monospace"]]);Ye.appendChild(B.createTSpan(se+":"+le)),he.appendChild(Ye);var it=Ye.getBBox();B.setAttributes(Ye,[["x",((24-it.width)/2).toString()],["y",((24-it.height)/2-it.y).toString()]]);var Et=B.createPath(B.getHollowRectanglePath(0,0,24,24,(24-Math.ceil(it.width))/2,(24-Math.ceil(it.height))/2,Math.ceil(it.width),Math.ceil(it.height)));return we.appendChild(Et),B.setAttributes(Ze,[["clip-path","url(#text-bg-clip)"]]),document.body.removeChild(he),he.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>'},ve}(),Le=function(ve){function se(le,fe,Re){var ce=ve.call(this,le,fe)||this;return ce.isDropdownOpen=!1,ce.onClick=ce.dropdownButtonClicked,ce.dropdownButtons=Re,ce}return Me(se,ve),se.prototype.setupDropdown=function(){var le=this;this.dropdownBlock=document.createElement("div"),this.dropdownBlock.className=this.dropdownClassName+" "+this.dropdownColorsClassName,this.dropdownBlock.style.display="none",this.dropdownButtons.forEach(function(fe){fe.className=le.className,fe.colorsClassName=le.colorsClassName,le.dropdownBlock.appendChild(fe.getUI())}),this.uiContainer.appendChild(this.dropdownBlock)},se.prototype.positionDropdown=function(){this.dropdownBlock.style.left=this.uiContainer.clientLeft+"px",this.dropdownBlock.style.top=this.uiContainer.clientTop+this.uiContainer.clientHeight+"px"},se.prototype.dropdownButtonClicked=function(){this.dropdownBlock===void 0&&this.setupDropdown(),this.isDropdownOpen=!this.isDropdownOpen,this.toggleDropdown()},se.prototype.toggleDropdown=function(){this.positionDropdown(),this.dropdownBlock.style.display=this.isDropdownOpen?"inline-block":"none"},se.prototype.showDropdown=function(){this.isDropdownOpen=!0,this.toggleDropdown()},se.prototype.hideDropdown=function(){this.isDropdownOpen=!1,this.toggleDropdown()},se}(Je),We=function(){function ve(se,le){this.GRIP_SIZE=10,this.color=se,this.fillColor=le,this.visual=B.createGroup(),this.visual.appendChild(B.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(B.createCircle(this.GRIP_SIZE,[["fill",this.fillColor],["fill-opacity","0.9"],["stroke",this.color],["stroke-width","2"],["stroke-opacity","0.7"]]))}return ve.prototype.ownsTarget=function(se){return se===this.visual||se===this.visual.childNodes[0]||se===this.visual.childNodes[1]},ve.prototype.setCenter=function(se,le){this.visual.childNodes.forEach(function(fe){return B.setAttributes(fe,[["cx",se.toString()],["cy",le.toString()]])})},ve}(),Xe=function(){function ve(se,le,fe,Re){this.isMoving=!1,this._isGridVisible=!0,this.numberOfGridLines=2,this.horizontalGridLines=[],this.verticalGridLines=[],this._zoomFactor=1,this.cropRectChanged=!1,this.canvasWidth=se,this.canvasHeight=le,this.margin=fe,this.container=Re,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(ve.prototype,"aspectRatio",{get:function(){return this._aspectRatio},set:function(se){this._aspectRatio=se,this.adjustCropRect(),this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(se){this._isGridVisible=se,this.gridContainer&&B.setAttributes(this.gridContainer,[["display",this._isGridVisible?"":"none"]])},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"zoomFactor",{get:function(){return this._zoomFactor},set:function(se){this._zoomFactor=se,this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),ve.prototype.open=function(){var se=this;this.cropShadeElement=B.createPath("M0,0Z",[["fill",this.cropShadeColor],["fill-opacity","0.8"]]),this.container.appendChild(this.cropShadeElement),this.gridContainer=B.createGroup([["display",this.isGridVisible?"":"none"]]),this.container.appendChild(this.gridContainer);for(var le=0;le<this.numberOfGridLines;le++)this.horizontalGridLines.push(B.createLine(0,0,0,0,[["stroke",this.cropFrameColor],["stroke-width","1"],["stroke-dasharray","3 1"],["opacity","0.7"]])),this.verticalGridLines.push(B.createLine(0,0,0,0,[["stroke",this.cropFrameColor],["stroke-width","1"],["stroke-dasharray","3 1"],["opacity","0.7"]]));this.horizontalGridLines.forEach(function(fe){return se.gridContainer.appendChild(fe)}),this.verticalGridLines.forEach(function(fe){return se.gridContainer.appendChild(fe)}),this.cropRectElement=B.createRect(0,0,[["stroke",this.cropFrameColor],["stroke-width","3"],["fill","transparent"]]),this.container.appendChild(this.cropRectElement),this.topLeftGrip=new We(this.gripColor,this.gripFillColor),this.container.appendChild(this.topLeftGrip.visual),this.topRightGrip=new We(this.gripColor,this.gripFillColor),this.container.appendChild(this.topRightGrip.visual),this.bottomLeftGrip=new We(this.gripColor,this.gripFillColor),this.container.appendChild(this.bottomLeftGrip.visual),this.bottomRightGrip=new We(this.gripColor,this.gripFillColor),this.container.appendChild(this.bottomRightGrip.visual),this.attachEvents()},ve.prototype.setCropRectangle=function(se){this.cropRect=se;var le=Object.assign({},this.cropRect);this.zoomFactor!==1&&(le.width=this.cropRect.width*this.zoomFactor,le.height=this.cropRect.height*this.zoomFactor,le.x=this.cropRect.height/this.cropRect.width<this.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasWidth/2-le.width/2,le.y=this.cropRect.height/this.cropRect.width>this.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasHeight/2-le.height/2),B.setAttributes(this.cropRectElement,[["x",le.x.toString()],["y",le.y.toString()],["width",le.width.toString()],["height",le.height.toString()]]);var fe=le.height/(this.numberOfGridLines+1);this.horizontalGridLines.forEach(function(ce,he){var Se=le.y+fe*(he+1);B.setAttributes(ce,[["x1",""+le.x],["y1",""+Se],["x2",""+(le.x+le.width)],["y2",""+Se]])});var Re=le.width/(this.numberOfGridLines+1);this.verticalGridLines.forEach(function(ce,he){var Se=le.x+Re*(he+1);B.setAttributes(ce,[["x1",""+Se],["y1",""+le.y],["x2",""+Se],["y2",""+(le.y+le.height)]])}),B.setAttributes(this.cropShadeElement,[["d",B.getHollowRectanglePath(0,0,this.canvasWidth+2*this.margin,this.canvasHeight+2*this.margin,le.x,le.y,le.width,le.height)]]),this.topLeftGrip.setCenter(le.x,le.y),this.topRightGrip.setCenter(le.x+le.width,le.y),this.bottomLeftGrip.setCenter(le.x,le.y+le.height),this.bottomRightGrip.setCenter(le.x+le.width,le.y+le.height),this.cropRectChanged&&this.onCropChange&&(this.cropRectChanged=!1,this.onCropChange(this.cropRect)),this.cropRectChanged=!1},ve.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)},ve.prototype.clientToLocalCoordinates=function(se,le){var fe=this.container.getBoundingClientRect();return{x:se-fe.left+this.margin,y:le-fe.top+this.margin}},ve.prototype.onPointerDown=function(se){this.container.setPointerCapture(se.pointerId),this.previousPoint=this.clientToLocalCoordinates(se.clientX,se.clientY),this.cropRectElement===se.target?this.isMoving=!0:this.topLeftGrip.ownsTarget(se.target)?this.activeGrip=this.topLeftGrip:this.bottomLeftGrip.ownsTarget(se.target)?this.activeGrip=this.bottomLeftGrip:this.topRightGrip.ownsTarget(se.target)?this.activeGrip=this.topRightGrip:this.bottomRightGrip.ownsTarget(se.target)&&(this.activeGrip=this.bottomRightGrip)},ve.prototype.onPointerMove=function(se){if(this.isMoving)this.move(this.clientToLocalCoordinates(se.clientX,se.clientY));else if(this.activeGrip){var le=this.clientToLocalCoordinates(se.clientX,se.clientY);this.resize(le)}se.preventDefault()},ve.prototype.onPointerUp=function(se){this.activeGrip=void 0,this.isMoving=!1,this.container.releasePointerCapture(se.pointerId)},ve.prototype.move=function(se){var le=se.x-this.previousPoint.x,fe=se.y-this.previousPoint.y;this.zoomFactor!==1&&(le=-le/this.zoomFactor,fe=-fe/this.zoomFactor),this.cropRect.x=Math.min(Math.max(this.margin,this.cropRect.x+le),this.canvasWidth-this.cropRect.width+this.margin),this.cropRect.y=Math.min(Math.max(this.margin,this.cropRect.y+fe),this.canvasHeight-this.cropRect.height+this.margin),this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect),this.previousPoint=se},ve.prototype.resize=function(se){var le=Object.assign({},this.cropRect),fe=se.x-this.previousPoint.x,Re=se.y-this.previousPoint.y;switch(this.activeGrip){case this.bottomLeftGrip:case this.topLeftGrip:le.x+fe<this.margin&&(fe=this.margin-le.x),le.x+=fe,le.width=this.cropRect.x+this.cropRect.width-le.x;break;case this.bottomRightGrip:case this.topRightGrip:le.width+fe>this.canvasWidth*this.zoomFactor&&(fe=this.canvasWidth*this.zoomFactor-le.width),le.width+=fe}switch(this.activeGrip){case this.topLeftGrip:case this.topRightGrip:this.aspectRatio?(le.y=this.cropRect.y-(this.activeGrip===this.topLeftGrip?-1:1)*this.aspectRatio.getVerticalLength(fe),le.height=this.aspectRatio.getVerticalLength(le.width)):(le.y+=Re,le.height=this.cropRect.y+this.cropRect.height-le.y);break;case this.bottomLeftGrip:case this.bottomRightGrip:this.aspectRatio?le.height=this.aspectRatio.getVerticalLength(le.width):le.height+=Re}le.width<10&&(le.x=this.cropRect.x,le.width=10),le.height<10&&(le.y=this.cropRect.y,le.height=10),this.previousPoint=se,le.x>=this.margin&&le.y>=this.margin&&le.x-this.margin+le.width<=this.canvasWidth&&le.y-this.margin+le.height<=this.canvasHeight&&(this.cropRect=le,this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect))},ve.prototype.adjustCropRect=function(){if(this.aspectRatio&&Math.round(this.cropRect.height)!==Math.round(this.aspectRatio.getVerticalLength(this.cropRect.width))){var se=this.cropRect.x+this.cropRect.width/2,le=this.cropRect.y+this.cropRect.height/2,fe=this.aspectRatio.getHorizontalLength(this.cropRect.height),Re=this.aspectRatio.getVerticalLength(this.cropRect.width);fe/this.canvasWidth<Re/this.canvasHeight?this.cropRect.width=fe:this.cropRect.height=Re,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=se-this.cropRect.width/2,this.cropRect.y=le-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)}},ve.prototype.getRescaledRect=function(se,le,fe,Re,ce,he){var Se=fe/se,we=Re/le;return{x:(ce.x-he)*Se+he,y:(ce.y-he)*we+he,width:ce.width*Se,height:ce.height*we}},ve.prototype.scaleCanvas=function(se,le){var fe=this.getRescaledRect(this.canvasWidth,this.canvasHeight,se,le,this.cropRect,this.margin);this.canvasWidth=se,this.canvasHeight=le,this.onCropChange&&this.onCropChange(fe),this.setCropRectangle(fe)},ve}(),ct=function(){function ve(se){this._angle=0,this.isDragging=!1,this.width=401,this.height=24,this.title=se,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(ve.prototype,"angle",{get:function(){return this._angle},set:function(se){this._angle=se,this.setAngleLabel(),this.positionScaleShape()},enumerable:!1,configurable:!0}),ve.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},ve.prototype.onPointerDown=function(se){this.controlContainer.setPointerCapture(se.pointerId),this.isDragging=!0,this.previousPoint={x:se.clientX,y:se.clientY}},ve.prototype.onPointerMove=function(se){this.isDragging&&(this.onAngleChange&&this.onAngleChange((se.clientX-this.previousPoint.x)/5),this.previousPoint.x=se.clientX)},ve.prototype.onPointerUp=function(se){this.isDragging&&this.onAngleChange&&this.onAngleChange((se.clientX-this.previousPoint.x)/5),this.isDragging=!1,this.controlContainer.releasePointerCapture(se.pointerId)},ve.prototype.setAngleLabel=function(){if(this.angleLabelText){this.angleLabelText.innerHTML=""+Math.round(this._angle);var se=this.angleLabelText.getBBox();B.setAttributes(this.angleLabelElement,[["x",((this.width-se.width)/2).toString()],["y",(this.height/2).toString()]])}},ve.prototype.positionScaleShape=function(){if(this.scaleShape){var se=this.scaleShape.transform.baseVal.getItem(0);se.setTranslate(this._angle%5*5-25,0),this.scaleShape.transform.baseVal.replaceItem(se,0)}},ve.prototype.getVisual=function(){var se=document.createElementNS("http://www.w3.org/2000/svg","svg");se.setAttribute("xmlns","http://www.w3.org/2000/svg"),se.setAttribute("width",this.width+"px"),se.setAttribute("height",this.height+"px"),se.setAttribute("viewBox","0 0 "+this.width+" "+this.height),se.style.flexShrink="0",document.body.appendChild(se);for(var le="M0,"+(this.height-1)+" v"+-this.height/3+"h1v"+this.height/3,fe=1;fe<=this.width/5+10;fe++){var Re=fe%5==0?this.height/3:this.height/6;le+="h4v"+-Re+"h1v"+Re}le+="v1H0Z",this.scaleShape=B.createPath(le);var ce=B.createTransform();this.scaleShape.transform.baseVal.appendItem(ce),se.appendChild(this.scaleShape),this.angleLabelElement=B.createText([["x","0"],["y","0"],["font-size","10px"],["font-family","monospace"]]),this.angleLabelText=B.createTSpan(""),this.angleLabelElement.appendChild(this.angleLabelText);var he=B.createTSpan("");return he.innerHTML="&deg;",this.angleLabelElement.appendChild(he),se.appendChild(this.angleLabelElement),document.body.removeChild(se),se},ve}(),lt=function(){function ve(){this.naturalSize=!1,this.imageType="image/png"}return ve.prototype.rasterize=function(se,le,fe,Re,ce,he,Se){var we=this;return new Promise(function(Ze){var Ye=document.createElement("canvas");Ye.width=se.width.baseVal.value-2*Re,Ye.height=se.height.baseVal.value-2*Re;var it=1,Et=1;we.naturalSize===!0?(it=le.naturalWidth/(se.width.baseVal.value-2*Re)/he,Et=le.naturalHeight/(se.height.baseVal.value-2*Re)/Se,Ye.width=le.naturalWidth/he,Ye.height=le.naturalHeight/Se):we.width!==void 0&&we.height!==void 0&&(it=we.width/fe.width,Et=we.height/fe.height,Ye.width*=it,Ye.height*=Et);var Pt=Ye.getContext("2d");Pt.translate(Ye.width/2,Ye.height/2),Pt.rotate(ce*Math.PI/180),Pt.scale(he,Se),Pt.translate(-Ye.width/2,-Ye.height/2),Pt.drawImage(le,0,0,Ye.width,Ye.height);var zt=document.createElement("canvas");zt.width=fe.width*it,zt.height=fe.height*Et,zt.getContext("2d").putImageData(Pt.getImageData((fe.x-Re)*it,(fe.y-Re)*Et,fe.width*it,fe.height*Et),0,0),Ze(zt.toDataURL(we.imageType,we.imageQuality))})},ve}(),St=function(){function ve(se){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=ve.instanceCounter++,this.styles=new z(this.instanceNo),this.target=se,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(ve.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"zoomToCropEnabled",{get:function(){return this._zoomToCropEnabled},set:function(se){this._zoomToCropEnabled=se,se?this.zoomToCrop():this.unzoomFromCrop()},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(se){this._isGridVisible=se,this.cropLayer&&(this.cropLayer.isGridVisible=this._isGridVisible)},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"gridLines",{get:function(){return this._gridLines},set:function(se){this._gridLines=se,this.cropLayer&&(this.cropLayer.numberOfGridLines=this._gridLines)},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"rotationAngle",{get:function(){return this._rotationAngle},set:function(se){this._rotationAngle=se,this.straightener&&(this.straightener.angle=this._rotationAngle)},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"paddedImageWidth",{get:function(){return this.imageWidth+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"paddedImageHeight",{get:function(){return this.imageHeight+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"aspectRatio",{get:function(){var se;return(se=this._aspectRatio)!==null&&se!==void 0?se:this.aspectRatios[0]},set:function(se){this._aspectRatio=se},enumerable:!1,configurable:!0}),ve.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},ve.prototype.show=function(){this.showUI(),this.open()},ve.prototype.close=function(se){se===void 0&&(se=!1),this.isOpen&&(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),se||this.closeEventListeners.forEach(function(le){return le()}),this._isOpen=!1)},ve.prototype.addRenderEventListener=function(se){this.renderEventListeners.push(se)},ve.prototype.removeRenderEventListener=function(se){this.renderEventListeners.indexOf(se)>-1&&this.renderEventListeners.splice(this.renderEventListeners.indexOf(se),1)},ve.prototype.addCloseEventListener=function(se){this.closeEventListeners.push(se)},ve.prototype.removeCloseEventListener=function(se){this.closeEventListeners.indexOf(se)>-1&&this.closeEventListeners.splice(this.closeEventListeners.indexOf(se),1)},ve.prototype.setupResizeObserver=function(){var se=this;this.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){se.resize(se.target.clientWidth,se.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))},ve.prototype.onPopupResize=function(){if(this.contentDiv.clientWidth>0&&this.contentDiv.clientHeight>0){var se=1*this.target.clientWidth/this.target.clientHeight,le=this.contentDiv.clientWidth/se>this.contentDiv.clientHeight?(this.contentDiv.clientHeight-2*this.CANVAS_MARGIN)*se:this.contentDiv.clientWidth-2*this.CANVAS_MARGIN,fe=le+2*this.CANVAS_MARGIN<this.contentDiv.clientWidth?this.contentDiv.clientHeight-2*this.CANVAS_MARGIN:(this.contentDiv.clientWidth-2*this.CANVAS_MARGIN)/se;this.resize(le,fe)}},ve.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},ve.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",B.setAttributes(this.editingTarget,[["width",""+this.imageWidth],["height",""+this.imageHeight]]),this.editingTarget.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px"},ve.prototype.resize=function(se,le){this.imageWidth=Math.round(se),this.imageHeight=Math.round(le),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()},ve.prototype.setEditingTarget=function(){var se=document.createElement("canvas");se.width=this.target.naturalWidth,se.height=this.target.naturalHeight,se.getContext("2d").drawImage(this.target,0,0,this.target.naturalWidth,this.target.naturalHeight);var le=se.toDataURL();B.setAttributes(this.editingTarget,[["href",le]]),this.setEditingTargetSize()},ve.prototype.setTopLeft=function(){var se=this.target.getBoundingClientRect(),le=this.editorCanvas.getBoundingClientRect();this.left=se.left-le.left-this.CANVAS_MARGIN,this.top=se.top-le.top-this.CANVAS_MARGIN},ve.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=B.createDefs(),this.cropImage.appendChild(this.defs),this.editingTarget=B.createImage([["href",""]]),this.editingTarget.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationContainer=B.createGroup(),this.editingTargetRotationScaleContainer=B.createGroup(),this.editingTargetRotationScaleContainer.appendChild(this.editingTarget),this.editingTargetRotationContainer.appendChild(this.editingTargetRotationScaleContainer);var se=B.createTransform();this.editingTargetRotationContainer.transform.baseVal.appendItem(se);var le=B.createTransform();this.editingTargetRotationScaleContainer.transform.baseVal.appendItem(le),this.editingTargetContainer=B.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)},ve.prototype.positionCropImage=function(){this.cropImageHolder.style.top=this.top+"px",this.cropImageHolder.style.left=this.left+"px"},ve.prototype.initCropLayer=function(){this.cropRect={x:this.CANVAS_MARGIN,y:this.CANVAS_MARGIN,width:this.imageWidth,height:this.imageHeight},this.cropLayerContainer=B.createGroup(),this.cropImage.appendChild(this.cropLayerContainer),this.cropLayer=new Xe(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()},ve.prototype.zoomToCrop=function(){if(this.cropRect){var se=this.cropRect.x-this.CANVAS_MARGIN+this.cropRect.width/2,le=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=se+"px "+le+"px",this.editingTargetContainer.style.transform="translate("+(this.imageWidth/2-se+this.CANVAS_MARGIN)+"px,"+(this.imageHeight/2-le+this.CANVAS_MARGIN)+"px) scale("+this.zoomFactor+")",this.cropLayer.zoomFactor=this.zoomFactor)}},ve.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)},ve.prototype.cropRectChanged=function(se){this.cropRect=se,this.zoomToCropEnabled?this.zoomToCrop():this.cropLayer.zoomFactor=1},ve.prototype.attachEvents=function(){window.addEventListener("resize",this.onWindowResize)},ve.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"},ve.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},ve.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 se=this.styles.settings.hideTopToolbar?0:this.toolbarHeight,le=this.target.offsetTop>se+this.CANVAS_MARGIN?this.target.offsetTop-(se+this.CANVAS_MARGIN):0;this.coverDiv.style.top=le+"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},ve.prototype.addToolbars=function(){this.addTopToolbar(),this.addBottomToolbar()},ve.prototype.addTopToolbar=function(){var se=this;this.topToolbar=new X,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 le=new je;le.minWidth=3*this.toolbarHeight+"px",this.topToolbar.addButtonBlock(le);var fe=[];this.aspectRatios.forEach(function(Et){var Pt=new Je(ye.getIcon(Et.horizontal,Et.vertical),Et.horizontal===0&&Et.vertical===0?"FREE":Et.horizontal+":"+Et.vertical);Pt.onClick=function(){return se.ratioButtonClicked(Et)},fe.push(Pt)}),this.aspectRatioButton=new Le(ye.getIcon(0,0),"Aspect ratio",fe),this.aspectRatioButton.dropdownClassName=this.toolbarDropdownStyleClass.name,this.aspectRatioButton.dropdownColorsClassName=this.styles.settings.toolbarDropdownStyleColorsClassName?this.styles.settings.toolbarDropdownStyleColorsClassName:this.toolbarDropdownStyleColorsClass.name,le.addButton(this.aspectRatioButton),this.aspectRatios.length<2&&this.aspectRatioButton.hide();var Re=new Je('<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");Re.isActive=this.isGridVisible,Re.onClick=function(){se.isGridVisible=!se.isGridVisible,Re.isActive=se.isGridVisible},le.addButton(Re);var ce=new Je('<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(ce.isActive=this.zoomToCropEnabled,ce.onClick=function(){se.zoomToCropEnabled=!se.zoomToCropEnabled,ce.isActive=se.zoomToCropEnabled},le.addButton(ce),!ne.isLicensed){var he=new oe;this.topToolbar.addElementBlock(he);var Se=document.createElement("div");Se.className=this.topToolbar.buttonClassName+" "+this.topToolbar.buttonColorsClassName;var we=document.createElement("a");we.style.color="currentColor",we.href="https://markerjs.com/products/cropro",we.target="_blank",we.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>',Se.appendChild(we),he.addElement(Se)}var Ze=new je;Ze.minWidth=3*this.toolbarHeight+"px",Ze.contentAlign="end",this.topToolbar.addButtonBlock(Ze);var Ye=new Je('<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");Ye.onClick=this.startRenderAndClose,Ze.addButton(Ye),this.styles.settings.toolbarOkButtonStyleColorsClassName&&(Ye.colorsClassName=this.styles.settings.toolbarOkButtonStyleColorsClassName);var it=new Je('<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");it.onClick=this.close,Ze.addButton(it),this.styles.settings.toolbarCloseButtonStyleColorsClassName&&(it.colorsClassName=this.styles.settings.toolbarCloseButtonStyleColorsClassName)},ve.prototype.addBottomToolbar=function(){var se=this;this.bottomToolbar=new X,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 le=new je;le.minWidth=2*this.toolbarHeight+"px",this.bottomToolbar.addButtonBlock(le);var fe=new Je('<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");fe.onClick=this.rotateLeftButtonClicked,le.addButton(fe);var Re=new Je('<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");Re.onClick=this.rotateRightButtonClicked,le.addButton(Re);var ce=new oe;ce.className=this.toolbarStraightenerBlockStyleClass.name,this.bottomToolbar.addElementBlock(ce),this.straightener=new ct("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(Ze){se.rotateBy(Ze),se.straightener.angle=se.rotationAngle},ce.addElement(this.straightener.getUI());var he=new je;he.minWidth=2*this.toolbarHeight+"px",he.contentAlign="end",this.bottomToolbar.addButtonBlock(he);var Se=new Je('<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");Se.onClick=this.flipHorizontallyButtonClicked,he.addButton(Se);var we=new Je('<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");we.onClick=this.flipVerticallyButtonClicked,he.addButton(we)},ve.prototype.ratioButtonClicked=function(se){this.aspectRatio=se,this.applyAspectRatio(),this.aspectRatioButton.hideDropdown()},ve.prototype.applyAspectRatio=function(){this.setCropLayerAspectRatio(),this.aspectRatioButton.icon=ye.getIcon(this.aspectRatio.horizontal,this.aspectRatio.vertical)},ve.prototype.setCropLayerAspectRatio=function(){this.cropLayer&&(this.aspectRatio&&this.aspectRatio.horizontal!==0&&this.aspectRatio.vertical!==0?this.cropLayer.aspectRatio=new Ae(this.aspectRatio.horizontal,this.aspectRatio.vertical):this.cropLayer.aspectRatio=void 0)},ve.prototype.closeUI=function(){this.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},ve.prototype.getState=function(){return{width:this.imageWidth,height:this.imageHeight,rotationAngle:this.rotationAngle,flippedHorizontally:this.flippedHorizontally,flippedVertically:this.flippedVertically,cropRect:Object.assign({},this.cropRect)}},ve.prototype.restoreState=function(se){if(se){var le=this.cropLayer.getRescaledRect(se.width,se.height,this.imageWidth,this.imageHeight,se.cropRect,this.CANVAS_MARGIN);this.cropLayer.setCropRectangle(le),this.cropRectChanged(le),this.flippedHorizontally=se.flippedHorizontally,this.flippedVertically=se.flippedVertically,this.applyFlip(),this.rotationAngle=se.rotationAngle,this.applyRotation()}},ve.prototype.clientToLocalCoordinates=function(se,le){var fe=this.cropImage.getBoundingClientRect();return{x:se-fe.left,y:le-fe.top}},ve.prototype.onWindowResize=function(){this.positionUI()},ve.prototype.positionUI=function(){switch(this.setTopLeft(),this.displayMode){case"inline":var se=this.target.offsetTop>this.toolbarHeight?this.target.offsetTop-this.toolbarHeight:0;this.coverDiv.style.top=se+"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()},ve.prototype.rotateLeftButtonClicked=function(){var se=this.rotationAngle-90;this.rotationAngle%90!=0&&(se+=this.rotationAngle>=0?90-this.rotationAngle%90:-this.rotationAngle%90),this.rotateTo(se)},ve.prototype.rotateRightButtonClicked=function(){var se=this.rotationAngle+90;this.rotationAngle%90!=0&&(se-=this.rotationAngle>=0?this.rotationAngle%90:90+this.rotationAngle%90),this.rotateTo(se)},ve.prototype.rotateTo=function(se){se=(se=se>180?se-360:se)<=-180?se+360:se,this.rotationAngle=se,this.applyRotation()},ve.prototype.rotateBy=function(se){this.rotateTo((this.rotationAngle+se)%360)},ve.prototype.applyRotation=function(){var se=this.zoomToCropEnabled;this.zoomToCropEnabled=!1,this.editingTargetRotationScaleContainer.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationScaleContainer.style.transform="scale(1)";var le=this.editingTargetRotationContainer.transform.baseVal.getItem(0);le.setRotate(this.rotationAngle,this.imageWidth/2,this.imageHeight/2),this.editingTargetRotationContainer.transform.baseVal.replaceItem(le,0);var fe=this.editingTarget.getBoundingClientRect();this.scaleFactor=Math.min(this.imageWidth/fe.width,this.imageHeight/fe.height),this.editingTargetRotationScaleContainer.style.transform="scale("+this.scaleFactor+")",this.zoomToCropEnabled=se},ve.prototype.flipHorizontallyButtonClicked=function(){this.flippedHorizontally=!this.flippedHorizontally,this.applyFlip()},ve.prototype.flipVerticallyButtonClicked=function(){this.flippedVertically=!this.flippedVertically,this.applyFlip()},ve.prototype.applyFlip=function(){this.editingTarget.style.transform="scale("+(this.flippedHorizontally?-1:1)+","+(this.flippedVertically?-1:1)+")"},ve.prototype.startRenderAndClose=function(){return Ue(this,void 0,void 0,function(){var se,le;return Ie(this,function(fe){switch(fe.label){case 0:return[4,this.render()];case 1:return se=fe.sent(),le=this.getState(),this.renderEventListeners.forEach(function(Re){return Re(se,le)}),this.close(!0),[2]}})})},ve.prototype.render=function(){return Ue(this,void 0,void 0,function(){var se;return Ie(this,function(le){switch(le.label){case 0:return(se=new lt).naturalSize=this.renderAtNaturalSize,se.imageType=this.renderImageType,se.imageQuality=this.renderImageQuality,se.width=this.renderWidth,se.height=this.renderHeight,this.unzoomFromCrop(),B.setAttributes(this.cropLayerContainer,[["display","none"]]),[4,se.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 le.sent(),[4,se.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,le.sent()]}})})},ve.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new ee("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 ee("toolbar_colors",`
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
`)),this.toolbarBlockStyleClass=this.styles.addClass(new ee("toolbar-block",`
display: flex;
align-items: center;
box-sizing: content-box;
`));var se=this.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new ee("toolbar_button",`
display: inline-block;
width: `+(this.toolbarHeight-2*se)+`px;
height: `+(this.toolbarHeight-2*se)+`px;
padding: `+se+`px;
cursor: default;
user-select: none;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new ee("toolbar_button_colors",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new ee("toolbar_active_button",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
background-color: `+this.styles.settings.toolbarBackgroundActiveColor+`
`)),this.styles.addRule(new H("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.toolbarHeight/2+`px;
`)),this.styles.addRule(new H("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.styles.settings.toolbarBackgroundHoverColor+`
`)),this.toolbarDropdownStyleClass=this.styles.addClass(new ee("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 ee("toolbar_dropdown_colors",`
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
`)),this.toolbarStraightenerBlockStyleClass=this.styles.addClass(new ee("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 ee("toolbar_straightener",`
display: flex;
overflow: hidden;
justify-content: center;
height: `+(this.toolbarHeight-2*se)+`px;
padding: `+se+`px;
cursor: default;
user-select: none;
box-sizing: content-box;
`)),this.toolbarStraightenerStyleColorsClass=this.styles.addClass(new ee("toolbar_straightener_colors",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
`))},ve.instanceCounter=0,ve}(),Dt=_("8hTe"),bt=_.n(Dt),ht=/<pre[^>]*>/g;function Ut(ve){var se=document.createElement("div");return se.innerHTML=ve,se.childNodes.length===0?"":se.childNodes[0].nodeValue}var Ft=q.a=function(ve){var se=ve.value,le=se===void 0?"":se,fe=ve.edit,Re=fe===void 0?!1:fe,ce=ve.className,he=ve.showTextOnly,Se=ve.showLines,we=ve.replaces,Ze=ve.zoomImg,Ye=ve.hasMask,it=ve.style,Et=it===void 0?{}:it,Pt=ve.stylesPrev,zt=Pt===void 0?{}:Pt,Rt=String(le),rt=Object(m.useRef)(),st=Object(m.useRef)(),qe=Object(m.useState)(""),Ce=Object(M.a)(qe,2),Be=Ce[0],dt=Ce[1],ut=Object(m.useState)("office"),It=Object(M.a)(ut,2),wt=It[0],gt=It[1],Nt=function(){var te=new St(st.current);te.displayMode="popup",te.addRenderEventListener(function(){var re=Object(u.a)(e.a.mark(function be(Pe){var He;return e.a.wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:return rt.current.style.display="none",_t.next=3,Object(Ee.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:Pe}});case 3:He=_t.sent,He!=null&&He.id&&we(st.current.getAttribute("src").replace(W.a.API_SERVER,""),"/api/attachments/".concat(He==null?void 0:He.id,"?type=").concat(He.content_type));case 5:case"end":return _t.stop()}},be)}));return function(be){return re.apply(this,arguments)}}()),te.show()},Mt=function(){var te=new pe.a(st.current);te.settings.displayMode="popup",te.addEventListener("render",function(){var re=Object(u.a)(e.a.mark(function be(Pe){var He;return e.a.wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:if(rt.current.style.display="none",!st.current){_t.next=6;break}return _t.next=4,Object(Ee.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:Pe.dataUrl}});case 4:He=_t.sent,He!=null&&He.id&&we(st.current.getAttribute("src").replace(W.a.API_SERVER,""),"/api/attachments/".concat(He==null?void 0:He.id,"?type=").concat(He.content_type));case 6:case"end":return _t.stop()}},be)}));return function(be){return re.apply(this,arguments)}}()),te.show(),window.markerArea=te},nt=Object(m.useMemo)(function(){rt.current&&(rt.current.style.zIndex=-1);try{var J=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,te=/\"\/api\/attachments\/|\"\/attachments\/download\//g,re=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;Rt=Rt.replace(J,"("+W.a.API_SERVER+"/api/attachments/").replace(te,'"'+W.a.API_SERVER+"/api/attachments/").replace(re,'"'+W.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(ft){}var be=F(Rt),Pe=O();if(Rt.match(/\[TOC\]/)&&(be=be.replace("<p>[TOC]</p>",w()),v()),be=be.replace(/(__special_katext_id_\d+__)/g,function(ft,_t){var Lt=Pe[_t],Vt=Lt.type,Ht=Lt.expression;return Object(Q.renderToString)(Ut(Ht)||"",{displayMode:Vt==="block",throwOnError:!1,output:"html"})}),be=be.replace(/▁/g,"\u2581\u2581\u2581"),S(),he){var He=document.createElement("div");return He.innerHTML=be,He.innerText}return setTimeout(function(){return ae()},500),be},[Rt]),xt=Object(m.useRef)();C.WebkitLineClamp=Se,Se&&(Et=Object(c.a)(Object(c.a)({},Et),C));function ue(J){var te=J.target;if(te.tagName.toUpperCase()==="IMG"){if(Ze){var re=te.getAttribute("src");dt(re),gt("image")}}else if(te.tagName.toUpperCase()==="A"){var be=te.getAttribute("href");if(be.indexOf("office")>-1)J.preventDefault(),dt(be),gt("office");else if(be.indexOf("application/pdf")>-1)J.preventDefault(),dt(be),gt("pdf");else if(be.indexOf("text/html")>-1)J.preventDefault(),dt(be),gt("html");else if(be.startsWith("#")){J.preventDefault();var Pe=document.getElementById(be.replace("#",""));Pe&&Pe.scrollIntoView(!0)}}}var ae=function(){var te,re=(te=xt.current)===null||te===void 0?void 0:te.querySelectorAll("video");re==null||re.forEach(function(be){if(be.oncontextmenu=function(){return!1},be.src.indexOf(".m3u8")>-1&&!be.canPlayType("application/vnd.apple.mpegurl")){if(Y.a.isSupported()){var Pe=new Y.a;Pe.loadSource(be.src),Pe.attachMedia(be)}}})};Object(m.useEffect)(function(){if(xt.current&&nt&&(nt.match(ht)&&window.PR.prettyPrint()),xt.current)return xt.current.addEventListener("click",ue),function(){xt.current.removeEventListener("click",ue),S(),v()}},[nt,xt.current,ue]);var V=function(te){if(!Re)return;te.target.nodeName==="IMG"?(rt.current.style.zIndex=1,rt.current.style.display="flex",rt.current.style.width=te.target.clientWidth+"px",rt.current.style.height=te.target.clientHeight+"px",rt.current.style.top=te.target.offsetTop+"px",rt.current.style.left=te.target.offsetLeft+"px",st.current.src=te.target.getAttribute("src")):rt.current.style.display="none"};return r.a.createElement("div",{style:{position:"relative"}},r.a.createElement("div",{ref:xt,style:Object(c.a)({},Et),className:"".concat(ce||""," markdown-body ").concat(bt.a.mdBody),onMouseOver:V,dangerouslySetInnerHTML:{__html:nt}}),r.a.createElement("div",{ref:rt,className:bt.a.button},r.a.createElement(U.a,null,r.a.createElement(N.a,{onClick:function(){return Nt()}},"\u88C1\u526A"),r.a.createElement(N.a,{onClick:function(){return Mt()}},"\u7F16\u8F91"))),r.a.createElement("img",{ref:st,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1}}),r.a.createElement(ie.a,{close:!0,data:Be,type:Be!=null&&Be.length?wt:"",style:Object(c.a)({},zt),onClose:function(){return dt("")}}))}},"9JIy":function(ge,q,_){ge.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"}},"A/g1":function(ge,q){ge.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAF92lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNi4wLWMwMDMgNzkuMTY0NTI3LCAy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4c6QAAAqtJREFUaEPtmj9oE1Ecx39XDXRQiINLO9ShCBnMcg5BCEiWLHXIcqAZzGBb7GBBi5ihGdqhCulQKZH+AesQhXM4wSxZUiRQAnpLloBESge7ZLBYF3nIyfuX3LtEcXgPhP5uCOTzfve7d9/3uUt7iQW4YQKaE3i5fzheuHnlp2VZQbS1t38YJ72Pp47j/IqOPX72ZuIk/r23PT9PRk3J0jxPbIcJwLsPnWtj58fGb924+ikqrHfw5TYEECdf/e2osA/X325CEEz+uPjNGSUsyopyaU8gCALr/cHn67RxVFjXdc/FJu05OhYVdm5rK3bh9JJLx0YJi7JqXypsSBMwISzKim4ZS0C3sCirsaXCxrrvsFbn+MSG0P9eiam4Tw/SPurZ/bgJQHL6MuN+V3K6UwxswVud4349HUknJlh9s0354ADp5BTjDf9Iqc/anNf9LpuP3GMmNc14rdVl9YQNEMilE4x7zQ7n4sXJcO422gMOAPlMkvFqXeWFLOd7NV+pn52xGd/xfJuE5r+QSzG+4bYG+QDAoiN505ZzoXVL+TSrL1cFFydRLGQYX9lrKH1Kgi/v1BW+Optl9U8qKn+6wPmjSk1Zx/XFGcYfbEjOE32+lGP8ftlT1vdFkfN7a65y3N2iw/jdlTAn8KqUZ/zOclWpf73KeXjTdYflsvZXG2BIVmHNsKxUHAIpIeXfZeUHoK0yEVmllH1ZhZRySsOy8j2GZBWN/kXWwaVDoJDlUlJZw89LVFkHAUlZK17L5hcO36SsZbep5CllXasKLq5E7bJSKUObIiub/h9kFecwUlYCsFv6j2SNXgX4HhPQmYCuuyp9lIV/s+pcGexl5ONfPnNFWVEwIwnovKPKCaKsRpbqbDc1ISpNFGU9214ZOXv8utVIrNjURAKmfsjyG/THRGdCCtl7AAAAAElFTkSuQmCC"},BJfS:function(ge,q){var _=function(Z){return Z.replace(/[A-Z]/g,function(U){return"-"+U.toLowerCase()}).toLowerCase()};ge.exports=_},BPZU:function(ge,q){var _=32,Z=7,U=256;function L(r){for(var h=0;r>=_;)h|=r&1,r>>=1;return r+h}function N(r,h,a,l){var d=h+1;if(d===a)return 1;if(l(r[d++],r[h])<0){for(;d<a&&l(r[d],r[d-1])<0;)d++;c(r,h,d)}else for(;d<a&&l(r[d],r[d-1])>=0;)d++;return d-h}function c(r,h,a){for(a--;h<a;){var l=r[h];r[h++]=r[a],r[a--]=l}}function u(r,h,a,l,d){for(l===h&&l++;l<a;l++){for(var y=r[l],s=h,p=l,n;s<p;)n=s+p>>>1,d(y,r[n])<0?p=n:s=n+1;var i=l-s;switch(i){case 3:r[s+3]=r[s+2];case 2:r[s+2]=r[s+1];case 1:r[s+1]=r[s];break;default:for(;i>0;)r[s+i]=r[s+i-1],i--}r[s]=y}}function M(r,h,a,l,d,y){var s=0,p=0,n=1;if(y(r,h[a+d])>0){for(p=l-d;n<p&&y(r,h[a+d+n])>0;)s=n,n=(n<<1)+1,n<=0&&(n=p);n>p&&(n=p),s+=d,n+=d}else{for(p=d+1;n<p&&y(r,h[a+d-n])<=0;)s=n,n=(n<<1)+1,n<=0&&(n=p);n>p&&(n=p);var i=s;s=d-n,n=d-i}for(s++;s<n;){var v=s+(n-s>>>1);y(r,h[a+v])>0?s=v+1:n=v}return n}function g(r,h,a,l,d,y){var s=0,p=0,n=1;if(y(r,h[a+d])<0){for(p=d+1;n<p&&y(r,h[a+d-n])<0;)s=n,n=(n<<1)+1,n<=0&&(n=p);n>p&&(n=p);var i=s;s=d-n,n=d-i}else{for(p=l-d;n<p&&y(r,h[a+d+n])>=0;)s=n,n=(n<<1)+1,n<=0&&(n=p);n>p&&(n=p),s+=d,n+=d}for(s++;s<n;){var v=s+(n-s>>>1);y(r,h[a+v])<0?n=v:s=v+1}return n}function e(r,h){var a=Z,l=0,d=U,y=0,s,p,n=0;l=r.length,l<2*U&&(d=l>>>1);var i=[];y=l<120?5:l<1542?10:l<119151?19:40,s=[],p=[];function v(o,f){s[n]=o,p[n]=f,n+=1}function C(){for(;n>1;){var o=n-2;if(o>=1&&p[o-1]<=p[o]+p[o+1]||o>=2&&p[o-2]<=p[o]+p[o-1])p[o-1]<p[o+1]&&o--;else if(p[o]>p[o+1])break;w(o)}}function R(){for(;n>1;){var o=n-2;o>0&&p[o-1]<p[o+1]&&o--,w(o)}}function w(o){var f=s[o],E=p[o],O=s[o+1],S=p[o+1];p[o]=E+S,o===n-3&&(s[o+1]=s[o+2],p[o+1]=p[o+2]),n--;var b=g(r[O],r,f,E,0,h);if(f+=b,E-=b,E===0)return;if(S=M(r[f+E-1],r,O,S,S-1,h),S===0)return;E<=S?x(f,E,O,S):A(f,E,O,S)}function x(o,f,E,O){var S=0;for(S=0;S<f;S++)i[S]=r[o+S];var b=0,D=E,P=o;if(r[P++]=r[D++],--O===0){for(S=0;S<f;S++)r[P+S]=i[b+S];return}if(f===1){for(S=0;S<O;S++)r[P+S]=r[D+S];r[P+O]=i[b];return}for(var I=a,F,K,j;;){F=0,K=0,j=!1;do if(h(r[D],i[b])<0){if(r[P++]=r[D++],K++,F=0,--O===0){j=!0;break}}else if(r[P++]=i[b++],F++,K=0,--f===1){j=!0;break}while((F|K)<I);if(j)break;do{if(F=g(r[D],i,b,f,0,h),F!==0){for(S=0;S<F;S++)r[P+S]=i[b+S];if(P+=F,b+=F,f-=F,f<=1){j=!0;break}}if(r[P++]=r[D++],--O===0){j=!0;break}if(K=M(i[b],r,D,O,0,h),K!==0){for(S=0;S<K;S++)r[P+S]=r[D+S];if(P+=K,D+=K,O-=K,O===0){j=!0;break}}if(r[P++]=i[b++],--f===1){j=!0;break}I--}while(F>=Z||K>=Z);if(j)break;I<0&&(I=0),I+=2}if(a=I,a<1&&(a=1),f===1){for(S=0;S<O;S++)r[P+S]=r[D+S];r[P+O]=i[b]}else{if(f===0)throw new Error;for(S=0;S<f;S++)r[P+S]=i[b+S]}}function A(o,f,E,O){var S=0;for(S=0;S<O;S++)i[S]=r[E+S];var b=o+f-1,D=O-1,P=E+O-1,I=0,F=0;if(r[P--]=r[b--],--f===0){for(I=P-(O-1),S=0;S<O;S++)r[I+S]=i[S];return}if(O===1){for(P-=f,b-=f,F=P+1,I=b+1,S=f-1;S>=0;S--)r[F+S]=r[I+S];r[P]=i[D];return}for(var K=a;;){var j=0,Y=0,W=!1;do if(h(i[D],r[b])<0){if(r[P--]=r[b--],j++,Y=0,--f===0){W=!0;break}}else if(r[P--]=i[D--],Y++,j=0,--O===1){W=!0;break}while((j|Y)<K);if(W)break;do{if(j=f-g(i[D],r,o,f,f-1,h),j!==0){for(P-=j,b-=j,f-=j,F=P+1,I=b+1,S=j-1;S>=0;S--)r[F+S]=r[I+S];if(f===0){W=!0;break}}if(r[P--]=i[D--],--O===1){W=!0;break}if(Y=O-M(r[b],i,0,O,O-1,h),Y!==0){for(P-=Y,D-=Y,O-=Y,F=P+1,I=D+1,S=0;S<Y;S++)r[F+S]=i[I+S];if(O<=1){W=!0;break}}if(r[P--]=r[b--],--f===0){W=!0;break}K--}while(j>=Z||Y>=Z);if(W)break;K<0&&(K=0),K+=2}if(a=K,a<1&&(a=1),O===1){for(P-=f,b-=f,F=P+1,I=b+1,S=f-1;S>=0;S--)r[F+S]=r[I+S];r[P]=i[D]}else{if(O===0)throw new Error;for(I=P-(O-1),S=0;S<O;S++)r[I+S]=i[S]}}this.mergeRuns=C,this.forceMergeRuns=R,this.pushRun=v}function m(r,h,a,l){a||(a=0),l||(l=r.length);var d=l-a;if(d<2)return;var y=0;if(d<_){y=N(r,a,l,h),u(r,a,l,a+y,h);return}var s=new e(r,h),p=L(d);do{if(y=N(r,a,l,h),y<p){var n=d;n>p&&(n=p),u(r,a,a+n,a+y,h),y=n}s.pushRun(a,y),s.mergeRuns(),d-=y,a+=y}while(d!==0);s.forceMergeRuns()}ge.exports=m},BU3w:function(ge,q,_){"use strict";_.d(q,"a",function(){return u});var Z=_("MNnm"),U="rc-util-key";function L(M){if(M.attachTo)return M.attachTo;var g=document.querySelector("head");return g||document.body}function N(M){var g,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(Z.a)())return null;var m=document.createElement("style");if((g=e.csp)===null||g===void 0?void 0:g.nonce){var r;m.nonce=(r=e.csp)===null||r===void 0?void 0:r.nonce}m.innerHTML=M;var h=L(e),a=h.firstChild;return e.prepend&&h.prepend?h.prepend(m):e.prepend&&a?h.insertBefore(m,a):h.appendChild(m),m}var c=new Map;function u(M,g){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},m=L(e);if(!c.has(m)){var r=N("",e),h=r.parentNode;c.set(m,h),h.removeChild(r)}var a=Array.from(c.get(m).children).find(function(p){return p.tagName==="STYLE"&&p[U]===g});if(a){var l,d;if(((l=e.csp)===null||l===void 0?void 0:l.nonce)&&a.nonce!==((d=e.csp)===null||d===void 0?void 0:d.nonce)){var y;a.nonce=(y=e.csp)===null||y===void 0?void 0:y.nonce}return a.innerHTML!==M&&(a.innerHTML=M),a}var s=N(M,e);return s[U]=g,s}},BdwD:function(ge,q,_){"use strict";var Z=_("+L6B"),U=_("2/Rp"),L=_("0Owb"),N=_("k1fw"),c=_("q1tI"),u=_.n(c),M=_("FOrL"),g=_.n(M),e=function(r){var h=r.buttonProps,a=h===void 0?{}:h,l=r.styles,d=l===void 0?{}:l,y=r.imgStyles,s=y===void 0?{}:y,p=r.customText,n=r.ButtonText,i=r.ButtonClick,v=r.Buttonclass,C=r.ButtonTwo;return u.a.createElement("section",{className:"tc animated fadeIn",style:Object(N.a)(Object(N.a)({},{color:"#999",margin:"0 auto",padding:"100px 0"}),d)},u.a.createElement("img",{src:g.a,style:Object(N.a)(Object(N.a)({},{width:"200px",height:"150px"}),s)}),u.a.createElement("p",{className:"mt10 font14"},p||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),n&&u.a.createElement(U.a,Object(L.a)({className:v,onClick:i},a),n),C&&C)};q.a=e},BlVb:function(ge,q,_){var Z=_("hyiK"),U=1e-8;function L(c,u){return Math.abs(c-u)<U}function N(c,u,M){var g=0,e=c[0];if(!e)return!1;for(var m=1;m<c.length;m++){var r=c[m];g+=Z(e[0],e[1],r[0],r[1],u,M),e=r}var h=c[0];return(!L(e[0],h[0])||!L(e[1],h[1]))&&(g+=Z(e[0],e[1],h[0],h[1],u,M)),g!==0}q.contain=N},Bq2U:function(ge,q,_){var Z=_("RDYZ"),U=_("Qe9p"),L=_("bYtY"),N=L.isArrayLike,c=Array.prototype.slice;function u(v,C){return v[C]}function M(v,C,R){v[C]=R}function g(v,C,R){return(C-v)*R+v}function e(v,C,R){return R>.5?C:v}function m(v,C,R,w,x){var A=v.length;if(x===1)for(var o=0;o<A;o++)w[o]=g(v[o],C[o],R);else for(var f=A&&v[0].length,o=0;o<A;o++)for(var E=0;E<f;E++)w[o][E]=g(v[o][E],C[o][E],R)}function r(v,C,R){var w=v.length,x=C.length;if(w!==x){var A=w>x;if(A)v.length=x;else for(var o=w;o<x;o++)v.push(R===1?C[o]:c.call(C[o]))}for(var f=v[0]&&v[0].length,o=0;o<v.length;o++)if(R===1)isNaN(v[o])&&(v[o]=C[o]);else for(var E=0;E<f;E++)isNaN(v[o][E])&&(v[o][E]=C[o][E])}function h(v,C,R){if(v===C)return!0;var w=v.length;if(w!==C.length)return!1;if(R===1){for(var x=0;x<w;x++)if(v[x]!==C[x])return!1}else for(var A=v[0].length,x=0;x<w;x++)for(var o=0;o<A;o++)if(v[x][o]!==C[x][o])return!1;return!0}function a(v,C,R,w,x,A,o,f,E){var O=v.length;if(E===1)for(var S=0;S<O;S++)f[S]=l(v[S],C[S],R[S],w[S],x,A,o);else for(var b=v[0].length,S=0;S<O;S++)for(var D=0;D<b;D++)f[S][D]=l(v[S][D],C[S][D],R[S][D],w[S][D],x,A,o)}function l(v,C,R,w,x,A,o){var f=(R-v)*.5,E=(w-C)*.5;return(2*(C-R)+f+E)*o+(-3*(C-R)-2*f-E)*A+f*x+C}function d(v){if(N(v)){var C=v.length;if(N(v[0])){for(var R=[],w=0;w<C;w++)R.push(c.call(v[w]));return R}return c.call(v)}return v}function y(v){return v[0]=Math.floor(v[0]),v[1]=Math.floor(v[1]),v[2]=Math.floor(v[2]),"rgba("+v.join(",")+")"}function s(v){var C=v[v.length-1].value;return N(C&&C[0])?2:1}function p(v,C,R,w,x,A){var o=v._getter,f=v._setter,E=C==="spline",O=w.length;if(!O)return;var S=w[0].value,b=N(S),D=!1,P=!1,I=b?s(w):0,F;w.sort(function(je,Je){return je.time-Je.time}),F=w[O-1].time;for(var K=[],j=[],Y=w[0].value,W=!0,Q=0;Q<O;Q++){K.push(w[Q].time/F);var ie=w[Q].value;if(b&&h(ie,Y,I)||!b&&ie===Y||(W=!1),Y=ie,typeof ie=="string"){var Ee=U.parse(ie);Ee?(ie=Ee,D=!0):P=!0}j.push(ie)}if(!A&&W)return;for(var pe=j[O-1],Q=0;Q<O-1;Q++)b?r(j[Q],pe,I):isNaN(j[Q])&&!isNaN(pe)&&!P&&!D&&(j[Q]=pe);b&&r(o(v._target,x),pe,I);var De=0,Me=0,Ue,Ie,ne,B,z,H;if(D)var ee=[0,0,0,0];var X=function(je,Je){var oe;if(Je<0)oe=0;else if(Je<Me){for(Ue=Math.min(De+1,O-1),oe=Ue;oe>=0&&!(K[oe]<=Je);oe--);oe=Math.min(oe,O-2)}else{for(oe=De;oe<O&&!(K[oe]>Je);oe++);oe=Math.min(oe-1,O-2)}De=oe,Me=Je;var Ae=K[oe+1]-K[oe];if(Ae===0)return;if(Ie=(Je-K[oe])/Ae,E)if(B=j[oe],ne=j[oe===0?oe:oe-1],z=j[oe>O-2?O-1:oe+1],H=j[oe>O-3?O-1:oe+2],b)a(ne,B,z,H,Ie,Ie*Ie,Ie*Ie*Ie,o(je,x),I);else{var ye;if(D)ye=a(ne,B,z,H,Ie,Ie*Ie,Ie*Ie*Ie,ee,1),ye=y(ee);else{if(P)return e(B,z,Ie);ye=l(ne,B,z,H,Ie,Ie*Ie,Ie*Ie*Ie)}f(je,x,ye)}else if(b)m(j[oe],j[oe+1],Ie,o(je,x),I);else{var ye;if(D)m(j[oe],j[oe+1],Ie,ee,1),ye=y(ee);else{if(P)return e(j[oe],j[oe+1],Ie);ye=g(j[oe],j[oe+1],Ie)}f(je,x,ye)}},me=new Z({target:v._target,life:F,loop:v._loop,delay:v._delay,onframe:X,ondestroy:R});return C&&C!=="spline"&&(me.easing=C),me}var n=function(v,C,R,w){this._tracks={},this._target=v,this._loop=C||!1,this._getter=R||u,this._setter=w||M,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};n.prototype={when:function(v,C){var R=this._tracks;for(var w in C){if(!C.hasOwnProperty(w))continue;if(!R[w]){R[w]=[];var x=this._getter(this._target,w);if(x==null)continue;v!==0&&R[w].push({time:0,value:d(x)})}R[w].push({time:v,value:C[w]})}return this},during:function(v){return this._onframeList.push(v),this},pause:function(){for(var v=0;v<this._clipList.length;v++)this._clipList[v].pause();this._paused=!0},resume:function(){for(var v=0;v<this._clipList.length;v++)this._clipList[v].resume();this._paused=!1},isPaused:function(){return!!this._paused},_doneCallback:function(){this._tracks={},this._clipList.length=0;for(var v=this._doneList,C=v.length,R=0;R<C;R++)v[R].call(this)},start:function(v,C){var R=this,w=0,x=function(){w--,w||R._doneCallback()},A;for(var o in this._tracks){if(!this._tracks.hasOwnProperty(o))continue;var f=p(this,v,x,this._tracks[o],o,C);f&&(this._clipList.push(f),w++,this.animation&&this.animation.addClip(f),A=f)}if(A){var E=A.onframe;A.onframe=function(O,S){E(O,S);for(var b=0;b<R._onframeList.length;b++)R._onframeList[b](O,S)}}return w||this._doneCallback(),this},stop:function(v){for(var C=this._clipList,R=this.animation,w=0;w<C.length;w++){var x=C[w];v&&x.onframe(this._target,1),R&&R.removeClip(x)}C.length=0},delay:function(v){return this._delay=v,this},done:function(v){return v&&this._doneList.push(v),this},getClips:function(){return this._clipList}};var i=n;ge.exports=i},Bq7L:function(ge,q){ge.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANQAAAA8CAYAAAAeyZT3AAAAAXNSR0IArs4c6QAAEpJJREFUeF7tXQeYFdUV/mcbS1F6UUEso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WIU4CrHzdYPP3Z2Y7fvi5GV+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(ge,q,_){"use strict";_.d(q,"a",function(){return Z});function Z(U){const L=this;let N=!1,c;return function(){return N||(N=!0,c=U.apply(L,arguments)),c}}},C0SR:function(ge,q,_){var Z=_("YH21"),U=function(){this._track=[]};U.prototype={constructor:U,recognize:function(M,g,e){return this._doTrack(M,g,e),this._recognize(M)},clear:function(){return this._track.length=0,this},_doTrack:function(M,g,e){var m=M.touches;if(!m)return;for(var r={points:[],touches:[],target:g,event:M},h=0,a=m.length;h<a;h++){var l=m[h],d=Z.clientToLocal(e,l,{});r.points.push([d.zrX,d.zrY]),r.touches.push(l)}this._track.push(r)},_recognize:function(M){for(var g in c)if(c.hasOwnProperty(g)){var e=c[g](this._track,M);if(e)return e}}};function L(M){var g=M[1][0]-M[0][0],e=M[1][1]-M[0][1];return Math.sqrt(g*g+e*e)}function N(M){return[(M[0][0]+M[1][0])/2,(M[0][1]+M[1][1])/2]}var c={pinch:function(M,g){var e=M.length;if(!e)return;var m=(M[e-1]||{}).points,r=(M[e-2]||{}).points||m;if(r&&r.length>1&&m&&m.length>1){var h=L(m)/L(r);!isFinite(h)&&(h=1),g.pinchScale=h;var a=N(m);return g.pinchX=a[0],g.pinchY=a[1],{type:"pinch",target:M[0].target,event:g}}}},u=U;ge.exports=u},CTM2:function(ge,q,_){ge.exports=_.p+"static/icon3.3c0e4f18.svg"},"Cg/j":function(ge,q,_){"use strict";_.d(q,"b",function(){return Z}),_.d(q,"a",function(){return U}),_.d(q,"c",function(){return N}),_.d(q,"d",function(){return c});var Z;(function(u){u.serviceIds=new Map,u.DI_TARGET="$di$target",u.DI_DEPENDENCIES="$di$dependencies";function M(g){return g[u.DI_DEPENDENCIES]||[]}u.getServiceDependencies=M})(Z||(Z={}));const U=N("instantiationService");function L(u,M,g,e){M[Z.DI_TARGET]===M?M[Z.DI_DEPENDENCIES].push({id:u,index:g,optional:e}):(M[Z.DI_DEPENDENCIES]=[{id:u,index:g,optional:e}],M[Z.DI_TARGET]=M)}function N(u){if(Z.serviceIds.has(u))return Z.serviceIds.get(u);const M=function(g,e,m){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");L(M,g,m,!1)};return M.toString=()=>u,Z.serviceIds.set(u,M),M}function c(u){return function(M,g,e){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");L(u,M,e,!0)}}},"Cs+z":function(ge,q,_){ge.exports=_.p+"static/jqr.b801d45b.png"},"Ct/S":function(ge,q,_){ge.exports={tilte:"tilte___1Tz7i",flexRow:"flexRow___3w9_D",flexColumn:"flexColumn___2HzC_",footerWrap:"footerWrap___12F5M",img:"img___3ED9Z",content:"content___rqPDY",modalContent:"modalContent___2h4ne"}},CzVm:function(ge,q,_){ge.exports=_.p+"static/bg1.89b41082.png"},D2RN:function(ge,q,_){ge.exports={flex_box_center:"flex_box_center___1wzjU",flex_space_between:"flex_space_between___19d2o",flex_box_vertical_center:"flex_box_vertical_center___1Wd-a",flex_box_center_end:"flex_box_center_end___2HPOy",flex_box_column:"flex_box_column___2cB5F",wrp:"wrp___V2wJo",tabsWrap:"tabsWrap___1DQFz",searchWrap:"searchWrap___2Cfcm",search:"search___W2SuN",searchIcon:"searchIcon___3ANcD",description:"description___1QwKY",bg:"bg___2WSLA",list:"list___u4-_b",status:"status___4LRSp",desc:"desc___18okv",flex1:"flex1___34Elm",item:"item___32MoH",footer:"footer___1100r",bottomText:"bottomText___25Uob",CompetitionsList:"CompetitionsList___2iLb3",signup:"signup___1gqfa",CompetitionsListzhezhao:"CompetitionsListzhezhao___2O-qQ",shadow:"shadow___13bWc",divimg:"divimg___3dE7q",commonTextBox:"commonTextBox___2XHB6",havetext:"havetext___2a_fQ",Finishedtext:"Finishedtext___3cssb",Comingtext:"Comingtext___14gQI",info:"info___1Q2IE",bonus:"bonus___3IZye",rmb:"rmb___1zDRr",applyInfo:"applyInfo___3Juew",task_hide:"task_hide___KPgxv",task_hide_2:"task_hide_2___151jJ",Unpublishedtext:"Unpublishedtext___2LPx9",checkboxtitle:"checkboxtitle___3U9gf"}},DBLp:function(ge,q){function _(){}_.prototype={diff:function(c,u,M){M||(M=function(n,i){return n===i}),this.equals=M;var g=this;c=c.slice(),u=u.slice();var e=u.length,m=c.length,r=1,h=e+m,a=[{newPos:-1,components:[]}],l=this.extractCommon(a[0],u,c,0);if(a[0].newPos+1>=e&&l+1>=m){for(var d=[],y=0;y<u.length;y++)d.push(y);return[{indices:d,count:u.length}]}function s(){for(var n=-1*r;n<=r;n+=2){var i,v=a[n-1],C=a[n+1],R=(C?C.newPos:0)-n;v&&(a[n-1]=void 0);var w=v&&v.newPos+1<e,x=C&&0<=R&&R<m;if(!w&&!x){a[n]=void 0;continue}if(!w||x&&v.newPos<C.newPos?(i=U(C),g.pushComponent(i.components,void 0,!0)):(i=v,i.newPos++,g.pushComponent(i.components,!0,void 0)),R=g.extractCommon(i,u,c,n),i.newPos+1>=e&&R+1>=m)return Z(g,i.components,u,c);a[n]=i}r++}for(;r<=h;){var p=s();if(p)return p}},pushComponent:function(c,u,M){var g=c[c.length-1];g&&g.added===u&&g.removed===M?c[c.length-1]={count:g.count+1,added:u,removed:M}:c.push({count:1,added:u,removed:M})},extractCommon:function(c,u,M,g){for(var e=u.length,m=M.length,r=c.newPos,h=r-g,a=0;r+1<e&&h+1<m&&this.equals(u[r+1],M[h+1]);)r++,h++,a++;return a&&c.components.push({count:a}),c.newPos=r,h},tokenize:function(c){return c.slice()},join:function(c){return c.slice()}};function Z(c,u,M,g){for(var e=0,m=u.length,r=0,h=0;e<m;e++){var a=u[e];if(a.removed){for(var l=[],d=h;d<h+a.count;d++)l.push(d);a.indices=l,h+=a.count}else{for(var l=[],d=r;d<r+a.count;d++)l.push(d);a.indices=l,r+=a.count,a.added||(h+=a.count)}}return u}function U(c){return{newPos:c.newPos,components:c.components.slice(0)}}var L=new _;function N(c,u,M){return L.diff(c,u,M)}ge.exports=N},DN4a:function(ge,q,_){var Z=_("Fofx"),U=_("QBsz"),L=Z.identity,N=5e-5;function c(h){return h>N||h<-N}var u=function(h){h=h||{},h.position||(this.position=[0,0]),h.rotation==null&&(this.rotation=0),h.scale||(this.scale=[1,1]),this.origin=this.origin||null},M=u.prototype;M.transform=null,M.needLocalTransform=function(){return c(this.rotation)||c(this.position[0])||c(this.position[1])||c(this.scale[0]-1)||c(this.scale[1]-1)};var g=[];M.updateTransform=function(){var h=this.parent,a=h&&h.transform,l=this.needLocalTransform(),d=this.transform;if(!(l||a)){d&&L(d);return}d=d||Z.create(),l?this.getLocalTransform(d):L(d),a&&(l?Z.mul(d,h.transform,d):Z.copy(d,h.transform)),this.transform=d;var y=this.globalScaleRatio;if(y!=null&&y!==1){this.getGlobalScale(g);var s=g[0]<0?-1:1,p=g[1]<0?-1:1,n=((g[0]-s)*y+s)/g[0]||0,i=((g[1]-p)*y+p)/g[1]||0;d[0]*=n,d[1]*=n,d[2]*=i,d[3]*=i}this.invTransform=this.invTransform||Z.create(),Z.invert(this.invTransform,d)},M.getLocalTransform=function(h){return u.getLocalTransform(this,h)},M.setTransform=function(h){var a=this.transform,l=h.dpr||1;a?h.setTransform(l*a[0],l*a[1],l*a[2],l*a[3],l*a[4],l*a[5]):h.setTransform(l,0,0,l,0,0)},M.restoreTransform=function(h){var a=h.dpr||1;h.setTransform(a,0,0,a,0,0)};var e=[],m=Z.create();M.setLocalTransform=function(h){if(!h)return;var a=h[0]*h[0]+h[1]*h[1],l=h[2]*h[2]+h[3]*h[3],d=this.position,y=this.scale;c(a-1)&&(a=Math.sqrt(a)),c(l-1)&&(l=Math.sqrt(l)),h[0]<0&&(a=-a),h[3]<0&&(l=-l),d[0]=h[4],d[1]=h[5],y[0]=a,y[1]=l,this.rotation=Math.atan2(-h[1]/l,h[0]/a)},M.decomposeTransform=function(){if(!this.transform)return;var h=this.parent,a=this.transform;h&&h.transform&&(Z.mul(e,h.invTransform,a),a=e);var l=this.origin;l&&(l[0]||l[1])&&(m[4]=l[0],m[5]=l[1],Z.mul(e,a,m),e[4]-=l[0],e[5]-=l[1],a=e),this.setLocalTransform(a)},M.getGlobalScale=function(h){var a=this.transform;return h=h||[],a?(h[0]=Math.sqrt(a[0]*a[0]+a[1]*a[1]),h[1]=Math.sqrt(a[2]*a[2]+a[3]*a[3]),a[0]<0&&(h[0]=-h[0]),a[3]<0&&(h[1]=-h[1]),h):(h[0]=1,h[1]=1,h)},M.transformCoordToLocal=function(h,a){var l=[h,a],d=this.invTransform;return d&&U.applyTransform(l,l,d),l},M.transformCoordToGlobal=function(h,a){var l=[h,a],d=this.transform;return d&&U.applyTransform(l,l,d),l},u.getLocalTransform=function(h,a){a=a||[],L(a);var l=h.origin,d=h.scale||[1,1],y=h.rotation||0,s=h.position||[0,0];return l&&(a[4]-=l[0],a[5]-=l[1]),Z.scale(a,a,d),y&&Z.rotate(a,a,y),l&&(a[4]+=l[0],a[5]+=l[1]),a[4]+=s[0],a[5]+=s[1],a};var r=u;ge.exports=r},Dagg:function(ge,q,_){var Z=_("Gev7"),U=_("mFDi"),L=_("bYtY"),N=_("Xnb7");function c(M){Z.call(this,M)}c.prototype={constructor:c,type:"image",brush:function(M,g){var e=this.style,m=e.image;e.bind(M,this,g);var r=this._image=N.createOrUpdateImage(m,this._image,this,this.onload);if(!r||!N.isImageReady(r))return;var h=e.x||0,a=e.y||0,l=e.width,d=e.height,y=r.width/r.height;if(l==null&&d!=null?l=d*y:d==null&&l!=null?d=l/y:l==null&&d==null&&(l=r.width,d=r.height),this.setTransform(M),e.sWidth&&e.sHeight){var s=e.sx||0,p=e.sy||0;M.drawImage(r,s,p,e.sWidth,e.sHeight,h,a,l,d)}else if(e.sx&&e.sy){var s=e.sx,p=e.sy,n=l-s,i=d-p;M.drawImage(r,s,p,n,i,h,a,l,d)}else M.drawImage(r,h,a,l,d);e.text!=null&&(this.restoreTransform(M),this.drawRectText(M,this.getBoundingRect()))},getBoundingRect:function(){var M=this.style;return this._rect||(this._rect=new U(M.x||0,M.y||0,M.width||0,M.height||0)),this._rect}},L.inherits(c,Z);var u=c;ge.exports=u},DlQD:function(ge,q,_){(function(Z,U){ge.exports=U()})(this,function(){"use strict";function Z(le,fe){for(var Re=0;Re<fe.length;Re++){var ce=fe[Re];ce.enumerable=ce.enumerable||!1,ce.configurable=!0,"value"in ce&&(ce.writable=!0),Object.defineProperty(le,ce.key,ce)}}function U(le,fe,Re){return fe&&Z(le.prototype,fe),Re&&Z(le,Re),le}function L(le,fe){if(!le)return;if(typeof le=="string")return N(le,fe);var Re=Object.prototype.toString.call(le).slice(8,-1);if(Re==="Object"&&le.constructor&&(Re=le.constructor.name),Re==="Map"||Re==="Set")return Array.from(le);if(Re==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Re))return N(le,fe)}function N(le,fe){(fe==null||fe>le.length)&&(fe=le.length);for(var Re=0,ce=new Array(fe);Re<fe;Re++)ce[Re]=le[Re];return ce}function c(le,fe){var Re;if(typeof Symbol=="undefined"||le[Symbol.iterator]==null){if(Array.isArray(le)||(Re=L(le))||fe&&le&&typeof le.length=="number"){Re&&(le=Re);var ce=0;return function(){return ce>=le.length?{done:!0}:{done:!1,value:le[ce++]}}}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=le[Symbol.iterator](),Re.next.bind(Re)}function u(le,fe){return fe={exports:{}},le(fe,fe.exports),fe.exports}var M=u(function(le){function fe(){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(ce){le.exports.defaults=ce}le.exports={defaults:fe(),getDefaults:fe,changeDefaults:Re}}),g=M.defaults,e=M.getDefaults,m=M.changeDefaults,r=/[&<>"']/,h=/[&<>"']/g,a=/[<>"']|&(?!#?\w+;)/,l=/[<>"']|&(?!#?\w+;)/g,d={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},y=function(fe){return d[fe]};function s(le,fe){if(fe){if(r.test(le))return le.replace(h,y)}else if(a.test(le))return le.replace(l,y);return le}var p=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function n(le){return le.replace(p,function(fe,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 i=/(^|[^\[])\^/g;function v(le,fe){le=le.source||le,fe=fe||"";var Re={replace:function(he,Se){return Se=Se.source||Se,Se=Se.replace(i,"$1"),le=le.replace(he,Se),Re},getRegex:function(){return new RegExp(le,fe)}};return Re}var C=/[^\w:]/g,R=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function w(le,fe,Re){if(le){var ce;try{ce=decodeURIComponent(n(Re)).replace(C,"").toLowerCase()}catch(he){return null}if(ce.indexOf("javascript:")===0||ce.indexOf("vbscript:")===0||ce.indexOf("data:")===0)return null}fe&&!R.test(Re)&&(Re=E(fe,Re));try{Re=encodeURI(Re).replace(/%25/g,"%")}catch(he){return null}return Re}var x={},A=/^[^:]+:\/*[^/]*$/,o=/^([^:]+:)[\s\S]*$/,f=/^([^:]+:\/*[^/]*)[\s\S]*$/;function E(le,fe){x[" "+le]||(A.test(le)?x[" "+le]=le+"/":x[" "+le]=D(le,"/",!0)),le=x[" "+le];var Re=le.indexOf(":")===-1;return fe.substring(0,2)==="//"?Re?fe:le.replace(o,"$1")+fe:fe.charAt(0)==="/"?Re?fe:le.replace(f,"$1")+fe:le+fe}var O={exec:function(){}};function S(le){for(var fe=1,Re,ce;fe<arguments.length;fe++){Re=arguments[fe];for(ce in Re)Object.prototype.hasOwnProperty.call(Re,ce)&&(le[ce]=Re[ce])}return le}function b(le,fe){var Re=le.replace(/\|/g,function(Se,we,Ze){for(var Ye=!1,it=we;--it>=0&&Ze[it]==="\\";)Ye=!Ye;return Ye?"|":" |"}),ce=Re.split(/ \|/),he=0;if(ce.length>fe)ce.splice(fe);else for(;ce.length<fe;)ce.push("");for(;he<ce.length;he++)ce[he]=ce[he].trim().replace(/\\\|/g,"|");return ce}function D(le,fe,Re){var ce=le.length;if(ce===0)return"";for(var he=0;he<ce;){var Se=le.charAt(ce-he-1);if(Se===fe&&!Re)he++;else if(Se!==fe&&Re)he++;else break}return le.substr(0,ce-he)}function P(le,fe){if(le.indexOf(fe[1])===-1)return-1;for(var Re=le.length,ce=0,he=0;he<Re;he++)if(le[he]==="\\")he++;else if(le[he]===fe[0])ce++;else if(le[he]===fe[1]&&(ce--,ce<0))return he;return-1}function I(le){le&&le.sanitize&&!le.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 F={escape:s,unescape:n,edit:v,cleanUrl:w,resolveUrl:E,noopTest:O,merge:S,splitCells:b,rtrim:D,findClosingBracket:P,checkSanitizeDeprecation:I},K=M.defaults,j=F.rtrim,Y=F.splitCells,W=F.escape,Q=F.findClosingBracket;function ie(le,fe,Re){var ce=fe.href,he=fe.title?W(fe.title):null,Se=le[1].replace(/\\([\[\]])/g,"$1");return le[0].charAt(0)!=="!"?{type:"link",raw:Re,href:ce,title:he,text:Se}:{type:"image",raw:Re,href:ce,title:he,text:W(Se)}}function Ee(le,fe){var Re=le.match(/^(\s+)(?:```)/);if(Re===null)return fe;var ce=Re[1];return fe.split(`
`).map(function(he){var Se=he.match(/^\s+/);if(Se===null)return he;var we=Se[0];return we.length>=ce.length?he.slice(ce.length):he}).join(`
`)}var pe=function(){function le(Re){this.options=Re||K}var fe=le.prototype;return fe.space=function(ce){var he=this.rules.block.newline.exec(ce);if(he)return he[0].length>1?{type:"space",raw:he[0]}:{raw:`
`}},fe.code=function(ce,he){var Se=this.rules.block.code.exec(ce);if(Se){var we=he[he.length-1];if(we&&we.type==="paragraph")return{raw:Se[0],text:Se[0].trimRight()};var Ze=Se[0].replace(/^ {4}/gm,"");return{type:"code",raw:Se[0],codeBlockStyle:"indented",text:this.options.pedantic?Ze:j(Ze,`
`)}}},fe.fences=function(ce){var he=this.rules.block.fences.exec(ce);if(he){var Se=he[0],we=Ee(Se,he[3]||"");return{type:"code",raw:Se,lang:he[2]?he[2].trim():he[2],text:we}}},fe.heading=function(ce){var he=this.rules.block.heading.exec(ce);if(he)return{type:"heading",raw:he[0],depth:he[1].length,text:he[2]}},fe.nptable=function(ce){var he=this.rules.block.nptable.exec(ce);if(he){var Se={type:"table",header:Y(he[1].replace(/^ *| *\| *$/g,"")),align:he[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:he[3]?he[3].replace(/\n$/,"").split(`
`):[],raw:he[0]};if(Se.header.length===Se.align.length){var we=Se.align.length,Ze;for(Ze=0;Ze<we;Ze++)/^ *-+: *$/.test(Se.align[Ze])?Se.align[Ze]="right":/^ *:-+: *$/.test(Se.align[Ze])?Se.align[Ze]="center":/^ *:-+ *$/.test(Se.align[Ze])?Se.align[Ze]="left":Se.align[Ze]=null;for(we=Se.cells.length,Ze=0;Ze<we;Ze++)Se.cells[Ze]=Y(Se.cells[Ze],Se.header.length);return Se}}},fe.hr=function(ce){var he=this.rules.block.hr.exec(ce);if(he)return{type:"hr",raw:he[0]}},fe.blockquote=function(ce){var he=this.rules.block.blockquote.exec(ce);if(he){var Se=he[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:he[0],text:Se}}},fe.list=function(ce){var he=this.rules.block.list.exec(ce);if(he){for(var Se=he[0],we=he[2],Ze=we.length>1,Ye=we[we.length-1]===")",it={type:"list",raw:Se,ordered:Ze,start:Ze?+we.slice(0,-1):"",loose:!1,items:[]},Et=he[0].match(this.rules.block.item),Pt=!1,zt,Rt,rt,st,qe,Ce,Be,dt=Et.length,ut=0;ut<dt;ut++)zt=Et[ut],Se=zt,Rt=zt.length,zt=zt.replace(/^ *([*+-]|\d+[.)]) */,""),~zt.indexOf(`
`)&&(Rt-=zt.length,zt=this.options.pedantic?zt.replace(/^ {1,4}/gm,""):zt.replace(new RegExp("^ {1,"+Rt+"}","gm"),"")),ut!==dt-1&&(rt=this.rules.block.bullet.exec(Et[ut+1])[0],(Ze?rt.length===1||!Ye&&rt[rt.length-1]===")":rt.length>1||this.options.smartLists&&rt!==we)&&(st=Et.slice(ut+1).join(`
`),it.raw=it.raw.substring(0,it.raw.length-st.length),ut=dt-1)),qe=Pt||/\n\n(?!\s*$)/.test(zt),ut!==dt-1&&(Pt=zt.charAt(zt.length-1)===`
`,qe||(qe=Pt)),qe&&(it.loose=!0),Ce=/^\[[ xX]\] /.test(zt),Be=void 0,Ce&&(Be=zt[1]!==" ",zt=zt.replace(/^\[[ xX]\] +/,"")),it.items.push({type:"list_item",raw:Se,task:Ce,checked:Be,loose:qe,text:zt});return it}},fe.html=function(ce){var he=this.rules.block.html.exec(ce);if(he)return{type:this.options.sanitize?"paragraph":"html",raw:he[0],pre:!this.options.sanitizer&&(he[1]==="pre"||he[1]==="script"||he[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(he[0]):W(he[0]):he[0]}},fe.def=function(ce){var he=this.rules.block.def.exec(ce);if(he){he[3]&&(he[3]=he[3].substring(1,he[3].length-1));var Se=he[1].toLowerCase().replace(/\s+/g," ");return{tag:Se,raw:he[0],href:he[2],title:he[3]}}},fe.table=function(ce){var he=this.rules.block.table.exec(ce);if(he){var Se={type:"table",header:Y(he[1].replace(/^ *| *\| *$/g,"")),align:he[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:he[3]?he[3].replace(/\n$/,"").split(`
`):[]};if(Se.header.length===Se.align.length){Se.raw=he[0];var we=Se.align.length,Ze;for(Ze=0;Ze<we;Ze++)/^ *-+: *$/.test(Se.align[Ze])?Se.align[Ze]="right":/^ *:-+: *$/.test(Se.align[Ze])?Se.align[Ze]="center":/^ *:-+ *$/.test(Se.align[Ze])?Se.align[Ze]="left":Se.align[Ze]=null;for(we=Se.cells.length,Ze=0;Ze<we;Ze++)Se.cells[Ze]=Y(Se.cells[Ze].replace(/^ *\| *| *\| *$/g,""),Se.header.length);return Se}}},fe.lheading=function(ce){var he=this.rules.block.lheading.exec(ce);if(he)return{type:"heading",raw:he[0],depth:he[2].charAt(0)==="="?1:2,text:he[1]}},fe.paragraph=function(ce){var he=this.rules.block.paragraph.exec(ce);if(he)return{type:"paragraph",raw:he[0],text:he[1].charAt(he[1].length-1)===`
`?he[1].slice(0,-1):he[1]}},fe.text=function(ce,he){var Se=this.rules.block.text.exec(ce);if(Se){var we=he[he.length-1];return we&&we.type==="text"?{raw:Se[0],text:Se[0]}:{type:"text",raw:Se[0],text:Se[0]}}},fe.escape=function(ce){var he=this.rules.inline.escape.exec(ce);if(he)return{type:"escape",raw:he[0],text:W(he[1])}},fe.tag=function(ce,he,Se){var we=this.rules.inline.tag.exec(ce);if(we)return!he&&/^<a /i.test(we[0])?he=!0:he&&/^<\/a>/i.test(we[0])&&(he=!1),!Se&&/^<(pre|code|kbd|script)(\s|>)/i.test(we[0])?Se=!0:Se&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(we[0])&&(Se=!1),{type:this.options.sanitize?"text":"html",raw:we[0],inLink:he,inRawBlock:Se,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(we[0]):W(we[0]):we[0]}},fe.link=function(ce){var he=this.rules.inline.link.exec(ce);if(he){var Se=Q(he[2],"()");if(Se>-1){var we=he[0].indexOf("!")===0?5:4,Ze=we+he[1].length+Se;he[2]=he[2].substring(0,Se),he[0]=he[0].substring(0,Ze).trim(),he[3]=""}var Ye=he[2],it="";if(this.options.pedantic){var Et=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Ye);Et?(Ye=Et[1],it=Et[3]):it=""}else it=he[3]?he[3].slice(1,-1):"";Ye=Ye.trim().replace(/^<([\s\S]*)>$/,"$1");var Pt=ie(he,{href:Ye&&Ye.replace(this.rules.inline._escapes,"$1"),title:it&&it.replace(this.rules.inline._escapes,"$1")},he[0]);return Pt}},fe.reflink=function(ce,he){var Se;if((Se=this.rules.inline.reflink.exec(ce))||(Se=this.rules.inline.nolink.exec(ce))){var we=(Se[2]||Se[1]).replace(/\s+/g," ");if(we=he[we.toLowerCase()],!we||!we.href){var Ze=Se[0].charAt(0);return{type:"text",raw:Ze,text:Ze}}var Ye=ie(Se,we,Se[0]);return Ye}},fe.strong=function(ce,he,Se){Se===void 0&&(Se="");var we=this.rules.inline.strong.start.exec(ce);if(we&&(!we[1]||we[1]&&(Se===""||this.rules.inline.punctuation.exec(Se)))){he=he.slice(-1*ce.length);var Ze=we[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;Ze.lastIndex=0;for(var Ye;(we=Ze.exec(he))!=null;)if(Ye=this.rules.inline.strong.middle.exec(he.slice(0,we.index+3)),Ye)return{type:"strong",raw:ce.slice(0,Ye[0].length),text:ce.slice(2,Ye[0].length-2)}}},fe.em=function(ce,he,Se){Se===void 0&&(Se="");var we=this.rules.inline.em.start.exec(ce);if(we&&(!we[1]||we[1]&&(Se===""||this.rules.inline.punctuation.exec(Se)))){he=he.slice(-1*ce.length);var Ze=we[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;Ze.lastIndex=0;for(var Ye;(we=Ze.exec(he))!=null;)if(Ye=this.rules.inline.em.middle.exec(he.slice(0,we.index+2)),Ye)return{type:"em",raw:ce.slice(0,Ye[0].length),text:ce.slice(1,Ye[0].length-1)}}},fe.codespan=function(ce){var he=this.rules.inline.code.exec(ce);if(he){var Se=he[2].replace(/\n/g," "),we=/[^ ]/.test(Se),Ze=Se.startsWith(" ")&&Se.endsWith(" ");return we&&Ze&&(Se=Se.substring(1,Se.length-1)),Se=W(Se,!0),{type:"codespan",raw:he[0],text:Se}}},fe.br=function(ce){var he=this.rules.inline.br.exec(ce);if(he)return{type:"br",raw:he[0]}},fe.del=function(ce){var he=this.rules.inline.del.exec(ce);if(he)return{type:"del",raw:he[0],text:he[1]}},fe.autolink=function(ce,he){var Se=this.rules.inline.autolink.exec(ce);if(Se){var we,Ze;return Se[2]==="@"?(we=W(this.options.mangle?he(Se[1]):Se[1]),Ze="mailto:"+we):(we=W(Se[1]),Ze=we),{type:"link",raw:Se[0],text:we,href:Ze,tokens:[{type:"text",raw:we,text:we}]}}},fe.url=function(ce,he){var Se;if(Se=this.rules.inline.url.exec(ce)){var we,Ze;if(Se[2]==="@")we=W(this.options.mangle?he(Se[0]):Se[0]),Ze="mailto:"+we;else{var Ye;do Ye=Se[0],Se[0]=this.rules.inline._backpedal.exec(Se[0])[0];while(Ye!==Se[0]);we=W(Se[0]),Se[1]==="www."?Ze="http://"+we:Ze=we}return{type:"link",raw:Se[0],text:we,href:Ze,tokens:[{type:"text",raw:we,text:we}]}}},fe.inlineText=function(ce,he,Se){var we=this.rules.inline.text.exec(ce);if(we){var Ze;return he?Ze=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(we[0]):W(we[0]):we[0]:Ze=W(this.options.smartypants?Se(we[0]):we[0]),{type:"text",raw:we[0],text:Ze}}},le}(),De=F.noopTest,Me=F.edit,Ue=F.merge,Ie={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:De,table:De,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};Ie._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,Ie._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,Ie.def=Me(Ie.def).replace("label",Ie._label).replace("title",Ie._title).getRegex(),Ie.bullet=/(?:[*+-]|\d{1,9}[.)])/,Ie.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,Ie.item=Me(Ie.item,"gm").replace(/bull/g,Ie.bullet).getRegex(),Ie.list=Me(Ie.list).replace(/bull/g,Ie.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Ie.def.source+")").getRegex(),Ie._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",Ie._comment=/<!--(?!-?>)[\s\S]*?-->/,Ie.html=Me(Ie.html,"i").replace("comment",Ie._comment).replace("tag",Ie._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ie.paragraph=Me(Ie._paragraph).replace("hr",Ie.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",Ie._tag).getRegex(),Ie.blockquote=Me(Ie.blockquote).replace("paragraph",Ie.paragraph).getRegex(),Ie.normal=Ue({},Ie),Ie.gfm=Ue({},Ie.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*|$)"}),Ie.gfm.nptable=Me(Ie.gfm.nptable).replace("hr",Ie.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",Ie._tag).getRegex(),Ie.gfm.table=Me(Ie.gfm.table).replace("hr",Ie.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",Ie._tag).getRegex(),Ie.pedantic=Ue({},Ie.normal,{html:Me(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Ie._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:De,paragraph:Me(Ie.normal._paragraph).replace("hr",Ie.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",Ie.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var ne={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:De,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:De,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/,punctuation:/^([\s*punctuation])/};ne._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",ne.punctuation=Me(ne.punctuation).replace(/punctuation/g,ne._punctuation).getRegex(),ne._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",ne._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",ne.em.start=Me(ne.em.start).replace(/punctuation/g,ne._punctuation).getRegex(),ne.em.middle=Me(ne.em.middle).replace(/punctuation/g,ne._punctuation).replace(/overlapSkip/g,ne._overlapSkip).getRegex(),ne.em.endAst=Me(ne.em.endAst,"g").replace(/punctuation/g,ne._punctuation).getRegex(),ne.em.endUnd=Me(ne.em.endUnd,"g").replace(/punctuation/g,ne._punctuation).getRegex(),ne.strong.start=Me(ne.strong.start).replace(/punctuation/g,ne._punctuation).getRegex(),ne.strong.middle=Me(ne.strong.middle).replace(/punctuation/g,ne._punctuation).replace(/blockSkip/g,ne._blockSkip).getRegex(),ne.strong.endAst=Me(ne.strong.endAst,"g").replace(/punctuation/g,ne._punctuation).getRegex(),ne.strong.endUnd=Me(ne.strong.endUnd,"g").replace(/punctuation/g,ne._punctuation).getRegex(),ne.blockSkip=Me(ne._blockSkip,"g").getRegex(),ne.overlapSkip=Me(ne._overlapSkip,"g").getRegex(),ne._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,ne._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,ne._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])?)+(?![-_])/,ne.autolink=Me(ne.autolink).replace("scheme",ne._scheme).replace("email",ne._email).getRegex(),ne._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,ne.tag=Me(ne.tag).replace("comment",Ie._comment).replace("attribute",ne._attribute).getRegex(),ne._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,ne._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,ne._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,ne.link=Me(ne.link).replace("label",ne._label).replace("href",ne._href).replace("title",ne._title).getRegex(),ne.reflink=Me(ne.reflink).replace("label",ne._label).getRegex(),ne.reflinkSearch=Me(ne.reflinkSearch,"g").replace("reflink",ne.reflink).replace("nolink",ne.nolink).getRegex(),ne.normal=Ue({},ne),ne.pedantic=Ue({},ne.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:Me(/^!?\[(label)\]\((.*?)\)/).replace("label",ne._label).getRegex(),reflink:Me(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ne._label).getRegex()}),ne.gfm=Ue({},ne.normal,{escape:Me(ne.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.!#$%&'*+\/=?_`{\|}~-]+@))/}),ne.gfm.url=Me(ne.gfm.url,"i").replace("email",ne.gfm._extended_email).getRegex(),ne.breaks=Ue({},ne.gfm,{br:Me(ne.br).replace("{2,}","*").getRegex(),text:Me(ne.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var B={block:Ie,inline:ne},z=M.defaults,H=B.block,ee=B.inline;function X(le){return le.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 me(le){var fe="",Re,ce,he=le.length;for(Re=0;Re<he;Re++)ce=le.charCodeAt(Re),Math.random()>.5&&(ce="x"+ce.toString(16)),fe+="&#"+ce+";";return fe}var je=function(){function le(Re){this.tokens=[],this.tokens.links=Object.create(null),this.options=Re||z,this.options.tokenizer=this.options.tokenizer||new pe,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var ce={block:H.normal,inline:ee.normal};this.options.pedantic?(ce.block=H.pedantic,ce.inline=ee.pedantic):this.options.gfm&&(ce.block=H.gfm,this.options.breaks?ce.inline=ee.breaks:ce.inline=ee.gfm),this.tokenizer.rules=ce}le.lex=function(ce,he){var Se=new le(he);return Se.lex(ce)};var fe=le.prototype;return fe.lex=function(ce){return ce=ce.replace(/\r\n|\r/g,`
`).replace(/\t/g," "),this.blockTokens(ce,this.tokens,!0),this.inline(this.tokens),this.tokens},fe.blockTokens=function(ce,he,Se){he===void 0&&(he=[]),Se===void 0&&(Se=!0),ce=ce.replace(/^ +$/gm,"");for(var we,Ze,Ye,it;ce;){if(we=this.tokenizer.space(ce)){ce=ce.substring(we.raw.length),we.type&&he.push(we);continue}if(we=this.tokenizer.code(ce,he)){ce=ce.substring(we.raw.length),we.type?he.push(we):(it=he[he.length-1],it.raw+=`
`+we.raw,it.text+=`
`+we.text);continue}if(we=this.tokenizer.fences(ce)){ce=ce.substring(we.raw.length),he.push(we);continue}if(we=this.tokenizer.heading(ce)){ce=ce.substring(we.raw.length),he.push(we);continue}if(we=this.tokenizer.nptable(ce)){ce=ce.substring(we.raw.length),he.push(we);continue}if(we=this.tokenizer.hr(ce)){ce=ce.substring(we.raw.length),he.push(we);continue}if(we=this.tokenizer.blockquote(ce)){ce=ce.substring(we.raw.length),we.tokens=this.blockTokens(we.text,[],Se),he.push(we);continue}if(we=this.tokenizer.list(ce)){for(ce=ce.substring(we.raw.length),Ye=we.items.length,Ze=0;Ze<Ye;Ze++)we.items[Ze].tokens=this.blockTokens(we.items[Ze].text,[],!1);he.push(we);continue}if(we=this.tokenizer.html(ce)){ce=ce.substring(we.raw.length),he.push(we);continue}if(Se&&(we=this.tokenizer.def(ce))){ce=ce.substring(we.raw.length),this.tokens.links[we.tag]||(this.tokens.links[we.tag]={href:we.href,title:we.title});continue}if(we=this.tokenizer.table(ce)){ce=ce.substring(we.raw.length),he.push(we);continue}if(we=this.tokenizer.lheading(ce)){ce=ce.substring(we.raw.length),he.push(we);continue}if(Se&&(we=this.tokenizer.paragraph(ce))){ce=ce.substring(we.raw.length),he.push(we);continue}if(we=this.tokenizer.text(ce,he)){ce=ce.substring(we.raw.length),we.type?he.push(we):(it=he[he.length-1],it.raw+=`
`+we.raw,it.text+=`
`+we.text);continue}if(ce){var Et="Infinite loop on byte: "+ce.charCodeAt(0);if(this.options.silent){console.error(Et);break}else throw new Error(Et)}}return he},fe.inline=function(ce){var he,Se,we,Ze,Ye,it,Et=ce.length;for(he=0;he<Et;he++){it=ce[he];switch(it.type){case"paragraph":case"text":case"heading":{it.tokens=[],this.inlineTokens(it.text,it.tokens);break}case"table":{for(it.tokens={header:[],cells:[]},Ze=it.header.length,Se=0;Se<Ze;Se++)it.tokens.header[Se]=[],this.inlineTokens(it.header[Se],it.tokens.header[Se]);for(Ze=it.cells.length,Se=0;Se<Ze;Se++)for(Ye=it.cells[Se],it.tokens.cells[Se]=[],we=0;we<Ye.length;we++)it.tokens.cells[Se][we]=[],this.inlineTokens(Ye[we],it.tokens.cells[Se][we]);break}case"blockquote":{this.inline(it.tokens);break}case"list":{for(Ze=it.items.length,Se=0;Se<Ze;Se++)this.inline(it.items[Se].tokens);break}}}return ce},fe.inlineTokens=function(ce,he,Se,we,Ze){he===void 0&&(he=[]),Se===void 0&&(Se=!1),we===void 0&&(we=!1),Ze===void 0&&(Ze="");var Ye,it=ce,Et;if(this.tokens.links){var Pt=Object.keys(this.tokens.links);if(Pt.length>0)for(;(Et=this.tokenizer.rules.inline.reflinkSearch.exec(it))!=null;)Pt.includes(Et[0].slice(Et[0].lastIndexOf("[")+1,-1))&&(it=it.slice(0,Et.index)+"["+"a".repeat(Et[0].length-2)+"]"+it.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(Et=this.tokenizer.rules.inline.blockSkip.exec(it))!=null;)it=it.slice(0,Et.index)+"["+"a".repeat(Et[0].length-2)+"]"+it.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;ce;){if(Ye=this.tokenizer.escape(ce)){ce=ce.substring(Ye.raw.length),he.push(Ye);continue}if(Ye=this.tokenizer.tag(ce,Se,we)){ce=ce.substring(Ye.raw.length),Se=Ye.inLink,we=Ye.inRawBlock,he.push(Ye);continue}if(Ye=this.tokenizer.link(ce)){ce=ce.substring(Ye.raw.length),Ye.type==="link"&&(Ye.tokens=this.inlineTokens(Ye.text,[],!0,we)),he.push(Ye);continue}if(Ye=this.tokenizer.reflink(ce,this.tokens.links)){ce=ce.substring(Ye.raw.length),Ye.type==="link"&&(Ye.tokens=this.inlineTokens(Ye.text,[],!0,we)),he.push(Ye);continue}if(Ye=this.tokenizer.strong(ce,it,Ze)){ce=ce.substring(Ye.raw.length),Ye.tokens=this.inlineTokens(Ye.text,[],Se,we),he.push(Ye);continue}if(Ye=this.tokenizer.em(ce,it,Ze)){ce=ce.substring(Ye.raw.length),Ye.tokens=this.inlineTokens(Ye.text,[],Se,we),he.push(Ye);continue}if(Ye=this.tokenizer.codespan(ce)){ce=ce.substring(Ye.raw.length),he.push(Ye);continue}if(Ye=this.tokenizer.br(ce)){ce=ce.substring(Ye.raw.length),he.push(Ye);continue}if(Ye=this.tokenizer.del(ce)){ce=ce.substring(Ye.raw.length),Ye.tokens=this.inlineTokens(Ye.text,[],Se,we),he.push(Ye);continue}if(Ye=this.tokenizer.autolink(ce,me)){ce=ce.substring(Ye.raw.length),he.push(Ye);continue}if(!Se&&(Ye=this.tokenizer.url(ce,me))){ce=ce.substring(Ye.raw.length),he.push(Ye);continue}if(Ye=this.tokenizer.inlineText(ce,we,X)){ce=ce.substring(Ye.raw.length),Ze=Ye.raw.slice(-1),he.push(Ye);continue}if(ce){var zt="Infinite loop on byte: "+ce.charCodeAt(0);if(this.options.silent){console.error(zt);break}else throw new Error(zt)}}return he},U(le,null,[{key:"rules",get:function(){return{block:H,inline:ee}}}]),le}(),Je=M.defaults,oe=F.cleanUrl,Ae=F.escape,ye=function(){function le(Re){this.options=Re||Je}var fe=le.prototype;return fe.code=function(ce,he,Se){var we=(he||"").match(/\S*/)[0];if(this.options.highlight){var Ze=this.options.highlight(ce,we);Ze!=null&&Ze!==ce&&(Se=!0,ce=Ze)}return we?'<pre><code class="'+this.options.langPrefix+Ae(we,!0)+'">'+(Se?ce:Ae(ce,!0))+`</code></pre>
`:"<pre><code>"+(Se?ce:Ae(ce,!0))+`</code></pre>
`},fe.blockquote=function(ce){return`<blockquote>
`+ce+`</blockquote>
`},fe.html=function(ce){return ce},fe.heading=function(ce,he,Se,we){return this.options.headerIds?"<h"+he+' id="'+this.options.headerPrefix+we.slug(Se)+'">'+ce+"</h"+he+`>
`:"<h"+he+">"+ce+"</h"+he+`>
`},fe.hr=function(){return this.options.xhtml?`<hr/>
`:`<hr>
`},fe.list=function(ce,he,Se){var we=he?"ol":"ul",Ze=he&&Se!==1?' start="'+Se+'"':"";return"<"+we+Ze+`>
`+ce+"</"+we+`>
`},fe.listitem=function(ce){return"<li>"+ce+`</li>
`},fe.checkbox=function(ce){return"<input "+(ce?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},fe.paragraph=function(ce){return"<p>"+ce+`</p>
`},fe.table=function(ce,he){return he&&(he="<tbody>"+he+"</tbody>"),`<table>
<thead>
`+ce+`</thead>
`+he+`</table>
`},fe.tablerow=function(ce){return`<tr>
`+ce+`</tr>
`},fe.tablecell=function(ce,he){var Se=he.header?"th":"td",we=he.align?"<"+Se+' align="'+he.align+'">':"<"+Se+">";return we+ce+"</"+Se+`>
`},fe.strong=function(ce){return"<strong>"+ce+"</strong>"},fe.em=function(ce){return"<em>"+ce+"</em>"},fe.codespan=function(ce){return"<code>"+ce+"</code>"},fe.br=function(){return this.options.xhtml?"<br/>":"<br>"},fe.del=function(ce){return"<del>"+ce+"</del>"},fe.link=function(ce,he,Se){if(ce=oe(this.options.sanitize,this.options.baseUrl,ce),ce===null)return Se;var we='<a href="'+Ae(ce)+'"';return he&&(we+=' title="'+he+'"'),we+=">"+Se+"</a>",we},fe.image=function(ce,he,Se){if(ce=oe(this.options.sanitize,this.options.baseUrl,ce),ce===null)return Se;var we='<img src="'+ce+'" alt="'+Se+'"';return he&&(we+=' title="'+he+'"'),we+=this.options.xhtml?"/>":">",we},fe.text=function(ce){return ce},le}(),Le=function(){function le(){}var fe=le.prototype;return fe.strong=function(ce){return ce},fe.em=function(ce){return ce},fe.codespan=function(ce){return ce},fe.del=function(ce){return ce},fe.html=function(ce){return ce},fe.text=function(ce){return ce},fe.link=function(ce,he,Se){return""+Se},fe.image=function(ce,he,Se){return""+Se},fe.br=function(){return""},le}(),We=function(){function le(){this.seen={}}var fe=le.prototype;return fe.slug=function(ce){var he=ce.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(he)){var Se=he;do this.seen[Se]++,he=Se+"-"+this.seen[Se];while(this.seen.hasOwnProperty(he))}return this.seen[he]=0,he},le}(),Xe=M.defaults,ct=F.unescape,lt=function(){function le(Re){this.options=Re||Xe,this.options.renderer=this.options.renderer||new ye,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Le,this.slugger=new We}le.parse=function(ce,he){var Se=new le(he);return Se.parse(ce)};var fe=le.prototype;return fe.parse=function(ce,he){he===void 0&&(he=!0);var Se="",we,Ze,Ye,it,Et,Pt,zt,Rt,rt,st,qe,Ce,Be,dt,ut,It,wt,gt,Nt=ce.length;for(we=0;we<Nt;we++){st=ce[we];switch(st.type){case"space":continue;case"hr":{Se+=this.renderer.hr();continue}case"heading":{Se+=this.renderer.heading(this.parseInline(st.tokens),st.depth,ct(this.parseInline(st.tokens,this.textRenderer)),this.slugger);continue}case"code":{Se+=this.renderer.code(st.text,st.lang,st.escaped);continue}case"table":{for(Rt="",zt="",it=st.header.length,Ze=0;Ze<it;Ze++)zt+=this.renderer.tablecell(this.parseInline(st.tokens.header[Ze]),{header:!0,align:st.align[Ze]});for(Rt+=this.renderer.tablerow(zt),rt="",it=st.cells.length,Ze=0;Ze<it;Ze++){for(Pt=st.tokens.cells[Ze],zt="",Et=Pt.length,Ye=0;Ye<Et;Ye++)zt+=this.renderer.tablecell(this.parseInline(Pt[Ye]),{header:!1,align:st.align[Ye]});rt+=this.renderer.tablerow(zt)}Se+=this.renderer.table(Rt,rt);continue}case"blockquote":{rt=this.parse(st.tokens),Se+=this.renderer.blockquote(rt);continue}case"list":{for(qe=st.ordered,Ce=st.start,Be=st.loose,it=st.items.length,rt="",Ze=0;Ze<it;Ze++)ut=st.items[Ze],It=ut.checked,wt=ut.task,dt="",ut.task&&(gt=this.renderer.checkbox(It),Be?ut.tokens.length>0&&ut.tokens[0].type==="text"?(ut.tokens[0].text=gt+" "+ut.tokens[0].text,ut.tokens[0].tokens&&ut.tokens[0].tokens.length>0&&ut.tokens[0].tokens[0].type==="text"&&(ut.tokens[0].tokens[0].text=gt+" "+ut.tokens[0].tokens[0].text)):ut.tokens.unshift({type:"text",text:gt}):dt+=gt),dt+=this.parse(ut.tokens,Be),rt+=this.renderer.listitem(dt,wt,It);Se+=this.renderer.list(rt,qe,Ce);continue}case"html":{Se+=this.renderer.html(st.text);continue}case"paragraph":{Se+=this.renderer.paragraph(this.parseInline(st.tokens));continue}case"text":{for(rt=st.tokens?this.parseInline(st.tokens):st.text;we+1<Nt&&ce[we+1].type==="text";)st=ce[++we],rt+=`
`+(st.tokens?this.parseInline(st.tokens):st.text);Se+=he?this.renderer.paragraph(rt):rt;continue}default:{var Mt='Token with "'+st.type+'" type was not found.';if(this.options.silent){console.error(Mt);return}else throw new Error(Mt)}}}return Se},fe.parseInline=function(ce,he){he=he||this.renderer;var Se="",we,Ze,Ye=ce.length;for(we=0;we<Ye;we++){Ze=ce[we];switch(Ze.type){case"escape":{Se+=he.text(Ze.text);break}case"html":{Se+=he.html(Ze.text);break}case"link":{Se+=he.link(Ze.href,Ze.title,this.parseInline(Ze.tokens,he));break}case"image":{Se+=he.image(Ze.href,Ze.title,Ze.text);break}case"strong":{Se+=he.strong(this.parseInline(Ze.tokens,he));break}case"em":{Se+=he.em(this.parseInline(Ze.tokens,he));break}case"codespan":{Se+=he.codespan(Ze.text);break}case"br":{Se+=he.br();break}case"del":{Se+=he.del(this.parseInline(Ze.tokens,he));break}case"text":{Se+=he.text(Ze.text);break}default:{var it='Token with "'+Ze.type+'" type was not found.';if(this.options.silent){console.error(it);return}else throw new Error(it)}}}return Se},le}(),St=F.merge,Dt=F.checkSanitizeDeprecation,bt=F.escape,ht=M.getDefaults,Ut=M.changeDefaults,Ft=M.defaults;function ve(le,fe,Re){if(typeof le=="undefined"||le===null)throw new Error("marked(): input parameter is undefined or null");if(typeof le!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(le)+", string expected");if(typeof fe=="function"&&(Re=fe,fe=null),fe=St({},ve.defaults,fe||{}),Dt(fe),Re){var ce=fe.highlight,he;try{he=je.lex(le,fe)}catch(Ye){return Re(Ye)}var Se=function(it){var Et;if(!it)try{Et=lt.parse(he,fe)}catch(Pt){it=Pt}return fe.highlight=ce,it?Re(it):Re(null,Et)};if(!ce||ce.length<3)return Se();if(delete fe.highlight,!he.length)return Se();var we=0;ve.walkTokens(he,function(Ye){Ye.type==="code"&&(we++,setTimeout(function(){ce(Ye.text,Ye.lang,function(it,Et){if(it)return Se(it);Et!=null&&Et!==Ye.text&&(Ye.text=Et,Ye.escaped=!0),we--,we===0&&Se()})},0))}),we===0&&Se();return}try{var Ze=je.lex(le,fe);return fe.walkTokens&&ve.walkTokens(Ze,fe.walkTokens),lt.parse(Ze,fe)}catch(Ye){if(Ye.message+=`
Please report this to https://github.com/markedjs/marked.`,fe.silent)return"<p>An error occurred:</p><pre>"+bt(Ye.message+"",!0)+"</pre>";throw Ye}}ve.options=ve.setOptions=function(le){return St(ve.defaults,le),Ut(ve.defaults),ve},ve.getDefaults=ht,ve.defaults=Ft,ve.use=function(le){var fe=St({},le);if(le.renderer&&function(){var ce=ve.defaults.renderer||new ye,he=function(Ze){var Ye=ce[Ze];ce[Ze]=function(){for(var it=arguments.length,Et=new Array(it),Pt=0;Pt<it;Pt++)Et[Pt]=arguments[Pt];var zt=le.renderer[Ze].apply(ce,Et);return zt===!1&&(zt=Ye.apply(ce,Et)),zt}};for(var Se in le.renderer)he(Se);fe.renderer=ce}(),le.tokenizer&&function(){var ce=ve.defaults.tokenizer||new pe,he=function(Ze){var Ye=ce[Ze];ce[Ze]=function(){for(var it=arguments.length,Et=new Array(it),Pt=0;Pt<it;Pt++)Et[Pt]=arguments[Pt];var zt=le.tokenizer[Ze].apply(ce,Et);return zt===!1&&(zt=Ye.apply(ce,Et)),zt}};for(var Se in le.tokenizer)he(Se);fe.tokenizer=ce}(),le.walkTokens){var Re=ve.defaults.walkTokens;fe.walkTokens=function(ce){le.walkTokens(ce),Re&&Re(ce)}}ve.setOptions(fe)},ve.walkTokens=function(le,fe){for(var Re=c(le),ce;!(ce=Re()).done;){var he=ce.value;fe(he);switch(he.type){case"table":{for(var Se=c(he.tokens.header),we;!(we=Se()).done;){var Ze=we.value;ve.walkTokens(Ze,fe)}for(var Ye=c(he.tokens.cells),it;!(it=Ye()).done;)for(var Et=it.value,Pt=c(Et),zt;!(zt=Pt()).done;){var Rt=zt.value;ve.walkTokens(Rt,fe)}break}case"list":{ve.walkTokens(he.items,fe);break}default:he.tokens&&ve.walkTokens(he.tokens,fe)}}},ve.Parser=lt,ve.parser=lt.parse,ve.Renderer=ye,ve.TextRenderer=Le,ve.Lexer=je,ve.lexer=je.lex,ve.Tokenizer=pe,ve.Slugger=We,ve.parse=ve;var se=ve;return se})},E2g8:function(ge,q,_){(function(Z,U){/*!
* @overview es6-promise - a tiny implementation of Promises/A+.
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
* @license Licensed under MIT license
* See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
* @version v4.2.8+1e68dce6
*/(function(L,N){ge.exports=N()})(this,function(){"use strict";function L(ye){var Le=typeof ye;return ye!==null&&(Le==="object"||Le==="function")}function N(ye){return typeof ye=="function"}var c=void 0;Array.isArray?c=Array.isArray:c=function(ye){return Object.prototype.toString.call(ye)==="[object Array]"};var u=c,M=0,g=void 0,e=void 0,m=function(Le,We){R[M]=Le,R[M+1]=We,M+=2,M===2&&(e?e(w):A())};function r(ye){e=ye}function h(ye){m=ye}var a=typeof window!="undefined"?window:void 0,l=a||{},d=l.MutationObserver||l.WebKitMutationObserver,y=typeof self=="undefined"&&typeof Z!="undefined"&&{}.toString.call(Z)==="[object process]",s=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function p(){return function(){return Z.nextTick(w)}}function n(){return typeof g!="undefined"?function(){g(w)}:C()}function i(){var ye=0,Le=new d(w),We=document.createTextNode("");return Le.observe(We,{characterData:!0}),function(){We.data=ye=++ye%2}}function v(){var ye=new MessageChannel;return ye.port1.onmessage=w,function(){return ye.port2.postMessage(0)}}function C(){var ye=setTimeout;return function(){return ye(w,1)}}var R=new Array(1e3);function w(){for(var ye=0;ye<M;ye+=2){var Le=R[ye],We=R[ye+1];Le(We),R[ye]=void 0,R[ye+1]=void 0}M=0}function x(){try{var ye=Function("return this")().require("vertx");return g=ye.runOnLoop||ye.runOnContext,n()}catch(Le){return C()}}var A=void 0;y?A=p():d?A=i():s?A=v():a===void 0&&!0?A=x():A=C();function o(ye,Le){var We=this,Xe=new this.constructor(O);Xe[E]===void 0&&B(Xe);var ct=We._state;if(ct){var lt=arguments[ct-1];m(function(){return Me(ct,Xe,lt,We._result)})}else pe(We,Xe,ye,Le);return Xe}function f(ye){var Le=this;if(ye&&typeof ye=="object"&&ye.constructor===Le)return ye;var We=new Le(O);return W(We,ye),We}var E=Math.random().toString(36).substring(2);function O(){}var S=void 0,b=1,D=2;function P(){return new TypeError("You cannot resolve a promise with itself")}function I(){return new TypeError("A promises callback cannot return that same promise.")}function F(ye,Le,We,Xe){try{ye.call(Le,We,Xe)}catch(ct){return ct}}function K(ye,Le,We){m(function(Xe){var ct=!1,lt=F(We,Le,function(St){if(ct)return;ct=!0,Le!==St?W(Xe,St):ie(Xe,St)},function(St){if(ct)return;ct=!0,Ee(Xe,St)},"Settle: "+(Xe._label||" unknown promise"));!ct&&lt&&(ct=!0,Ee(Xe,lt))},ye)}function j(ye,Le){Le._state===b?ie(ye,Le._result):Le._state===D?Ee(ye,Le._result):pe(Le,void 0,function(We){return W(ye,We)},function(We){return Ee(ye,We)})}function Y(ye,Le,We){Le.constructor===ye.constructor&&We===o&&Le.constructor.resolve===f?j(ye,Le):We===void 0?ie(ye,Le):N(We)?K(ye,Le,We):ie(ye,Le)}function W(ye,Le){if(ye===Le)Ee(ye,P());else if(L(Le)){var We=void 0;try{We=Le.then}catch(Xe){Ee(ye,Xe);return}Y(ye,Le,We)}else ie(ye,Le)}function Q(ye){ye._onerror&&ye._onerror(ye._result),De(ye)}function ie(ye,Le){if(ye._state!==S)return;ye._result=Le,ye._state=b,ye._subscribers.length!==0&&m(De,ye)}function Ee(ye,Le){if(ye._state!==S)return;ye._state=D,ye._result=Le,m(Q,ye)}function pe(ye,Le,We,Xe){var ct=ye._subscribers,lt=ct.length;ye._onerror=null,ct[lt]=Le,ct[lt+b]=We,ct[lt+D]=Xe,lt===0&&ye._state&&m(De,ye)}function De(ye){var Le=ye._subscribers,We=ye._state;if(Le.length===0)return;for(var Xe=void 0,ct=void 0,lt=ye._result,St=0;St<Le.length;St+=3)Xe=Le[St],ct=Le[St+We],Xe?Me(We,Xe,ct,lt):ct(lt);ye._subscribers.length=0}function Me(ye,Le,We,Xe){var ct=N(We),lt=void 0,St=void 0,Dt=!0;if(ct){try{lt=We(Xe)}catch(bt){Dt=!1,St=bt}if(Le===lt){Ee(Le,I());return}}else lt=Xe;Le._state!==S||(ct&&Dt?W(Le,lt):Dt===!1?Ee(Le,St):ye===b?ie(Le,lt):ye===D&&Ee(Le,lt))}function Ue(ye,Le){try{Le(function(Xe){W(ye,Xe)},function(Xe){Ee(ye,Xe)})}catch(We){Ee(ye,We)}}var Ie=0;function ne(){return Ie++}function B(ye){ye[E]=Ie++,ye._state=void 0,ye._result=void 0,ye._subscribers=[]}function z(){return new Error("Array Methods must be provided an Array")}var H=function(){function ye(Le,We){this._instanceConstructor=Le,this.promise=new Le(O),this.promise[E]||B(this.promise),u(We)?(this.length=We.length,this._remaining=We.length,this._result=new Array(this.length),this.length===0?ie(this.promise,this._result):(this.length=this.length||0,this._enumerate(We),this._remaining===0&&ie(this.promise,this._result))):Ee(this.promise,z())}return ye.prototype._enumerate=function(We){for(var Xe=0;this._state===S&&Xe<We.length;Xe++)this._eachEntry(We[Xe],Xe)},ye.prototype._eachEntry=function(We,Xe){var ct=this._instanceConstructor,lt=ct.resolve;if(lt===f){var St=void 0,Dt=void 0,bt=!1;try{St=We.then}catch(Ut){bt=!0,Dt=Ut}if(St===o&&We._state!==S)this._settledAt(We._state,Xe,We._result);else if(typeof St!="function")this._remaining--,this._result[Xe]=We;else if(ct===oe){var ht=new ct(O);bt?Ee(ht,Dt):Y(ht,We,St),this._willSettleAt(ht,Xe)}else this._willSettleAt(new ct(function(Ut){return Ut(We)}),Xe)}else this._willSettleAt(lt(We),Xe)},ye.prototype._settledAt=function(We,Xe,ct){var lt=this.promise;lt._state===S&&(this._remaining--,We===D?Ee(lt,ct):this._result[Xe]=ct),this._remaining===0&&ie(lt,this._result)},ye.prototype._willSettleAt=function(We,Xe){var ct=this;pe(We,void 0,function(lt){return ct._settledAt(b,Xe,lt)},function(lt){return ct._settledAt(D,Xe,lt)})},ye}();function ee(ye){return new H(this,ye).promise}function X(ye){var Le=this;return u(ye)?new Le(function(We,Xe){for(var ct=ye.length,lt=0;lt<ct;lt++)Le.resolve(ye[lt]).then(We,Xe)}):new Le(function(We,Xe){return Xe(new TypeError("You must pass an array to race."))})}function me(ye){var Le=this,We=new Le(O);return Ee(We,ye),We}function je(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function Je(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var oe=function(){function ye(Le){this[E]=ne(),this._result=this._state=void 0,this._subscribers=[],O!==Le&&(typeof Le!="function"&&je(),this instanceof ye?Ue(this,Le):Je())}return ye.prototype.catch=function(We){return this.then(null,We)},ye.prototype.finally=function(We){var Xe=this,ct=Xe.constructor;return N(We)?Xe.then(function(lt){return ct.resolve(We()).then(function(){return lt})},function(lt){return ct.resolve(We()).then(function(){throw lt})}):Xe.then(We,We)},ye}();oe.prototype.then=o,oe.all=ee,oe.race=X,oe.resolve=f,oe.reject=me,oe._setScheduler=r,oe._setAsap=h,oe._asap=m;function Ae(){var ye=void 0;if(typeof U!="undefined")ye=U;else if(typeof self!="undefined")ye=self;else try{ye=Function("return this")()}catch(Xe){throw new Error("polyfill failed because global object is unavailable in this environment")}var Le=ye.Promise;if(Le){var We=null;try{We=Object.prototype.toString.call(Le.resolve())}catch(Xe){}if(We==="[object Promise]"&&!Le.cast)return}ye.Promise=oe}return oe.polyfill=Ae,oe.Promise=oe,oe})}).call(this,_("Q2Ig"),_("IyRk"))},E7E6:function(ge,q){ge.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADUCAYAAADZTGx+AAAgAElEQVR4X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1aug6IqhwWQvb09HyVSH6LiL7Ivoqbze79vOK+Bf0fkXiypKTkudra2sR1Ry5VIW+A6OsXjUZre3t778DBmPAAAAI6SURBVO6DZb5LdedsvCmBdwCF3+9fV1dXF98slMfgCUCSumCNQsgvSymXSklLeF4lj9rhTtadQtAGIcR6KbWNS0fdydZYLp4DRF9snLQSjUZvjsViS4Wg26SUVi++NiYNjuWKBIQQR6Wkl30+3/q6urq3hBBXb+J3pSTZM/E0IMnFj0Qi10kp/4QotphILJJSjs1eRY6RbwkIIU4SyRYi32YhxBv19fUD9yLku3BZ8i8oQJLrcurUiWt6e8Wi3l7CyBiO8JvicXkXS/EOEokWv582+/2ypaZm3IFCrXhBA5Is9La2trqenp6biGi2lJhv0eZcxhVq4xRIuU8Qid1CCKyB31VSUrK1trY2WiBlz1rMQQVIqtpeuHBidEcHzZIy/iLSXtfyWrGsupEQIb7WiT4iot1CxF9Dh9LuESPGnTGXUmHFHvSApGoOzLm0tbU19vb2TpVSThGCphLJKVLSVCFoYrHCAwikpCNC0MdE4qCU9LEQ4qDf7/+4trb2aN/cRGFpeI6lLUpAMslMSulva2ub2NPT0+TzyUAsJup9PgpIKQNSinohtM/1RFRo5/1cFkJEpKSwEDIihAjHYhT2+WQkFhPhkpKSQ7W1tUdwsnmOOjWoHmdALDbn+fPnR3V2dgKW0ULEqmIxUSWlHCmErJJSVAlBVVIS3kcS4X9ULoQolVKWZnpHcaSU3UKI7szv1EUkzuNSKSEI7+eFkOelFOeFEOd8Pnz24fOZioqKcFVV1VmLVS3qx/4fQLyzKIIkCJoAAAAASUVORK5CYII="},E9nw:function(ge,q){ge.exports=function(){var _=document.getSelection();if(!_.rangeCount)return function(){};for(var Z=document.activeElement,U=[],L=0;L<_.rangeCount;L++)U.push(_.getRangeAt(L));switch(Z.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":Z.blur();break;default:Z=null;break}return _.removeAllRanges(),function(){_.type==="Caret"&&_.removeAllRanges(),_.rangeCount||U.forEach(function(N){_.addRange(N)}),Z&&Z.focus()}}},"Eo/3":function(ge,q,_){ge.exports=_.p+"static/b1.c57af8a2.svg"},F2wG:function(ge,q,_){ge.exports=_.p+"static/competition-banner.cb09dc6c.png"},FOrL:function(ge,q,_){ge.exports=_.p+"static/nodata.a6b3f948.png"},FPkq:function(ge,q,_){ge.exports=_.p+"static/qrCode.dd0fe9b2.png"},FWmy:function(ge,q,_){"use strict";_.d(q,"a",function(){return Z});function Z(U,L){if(!U)throw new Error(L?`Assertion failed (${L})`:"Assertion Failed")}},Fofx:function(ge,q){var _=typeof Float32Array=="undefined"?Array:Float32Array;function Z(){var m=new _(6);return U(m),m}function U(m){return m[0]=1,m[1]=0,m[2]=0,m[3]=1,m[4]=0,m[5]=0,m}function L(m,r){return m[0]=r[0],m[1]=r[1],m[2]=r[2],m[3]=r[3],m[4]=r[4],m[5]=r[5],m}function N(m,r,h){var a=r[0]*h[0]+r[2]*h[1],l=r[1]*h[0]+r[3]*h[1],d=r[0]*h[2]+r[2]*h[3],y=r[1]*h[2]+r[3]*h[3],s=r[0]*h[4]+r[2]*h[5]+r[4],p=r[1]*h[4]+r[3]*h[5]+r[5];return m[0]=a,m[1]=l,m[2]=d,m[3]=y,m[4]=s,m[5]=p,m}function c(m,r,h){return m[0]=r[0],m[1]=r[1],m[2]=r[2],m[3]=r[3],m[4]=r[4]+h[0],m[5]=r[5]+h[1],m}function u(m,r,h){var a=r[0],l=r[2],d=r[4],y=r[1],s=r[3],p=r[5],n=Math.sin(h),i=Math.cos(h);return m[0]=a*i+y*n,m[1]=-a*n+y*i,m[2]=l*i+s*n,m[3]=-l*n+i*s,m[4]=i*d+n*p,m[5]=i*p-n*d,m}function M(m,r,h){var a=h[0],l=h[1];return m[0]=r[0]*a,m[1]=r[1]*l,m[2]=r[2]*a,m[3]=r[3]*l,m[4]=r[4]*a,m[5]=r[5]*l,m}function g(m,r){var h=r[0],a=r[2],l=r[4],d=r[1],y=r[3],s=r[5],p=h*y-d*a;return p?(p=1/p,m[0]=y*p,m[1]=-d*p,m[2]=-a*p,m[3]=h*p,m[4]=(a*s-y*l)*p,m[5]=(d*l-h*s)*p,m):null}function e(m){var r=Z();return L(r,m),r}q.create=Z,q.identity=U,q.copy=L,q.mul=N,q.translate=c,q.rotate=u,q.scale=M,q.invert=g,q.clone=e},FxDU:function(ge,q,_){"use strict";Object.defineProperty(q,"__esModule",{value:!0}),q.createSensor=void 0;var Z=_("QO+J"),U=_("j5sG"),L=typeof ResizeObserver!="undefined"?U.createSensor:Z.createSensor;q.createSensor=L},GABl:function(ge,q){ge.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAKi0lEQVRoQ71ae3BU1Rn//e7dzYuioNRsHlSqRiUB2eUx0hbaKAHEAMWxiQ6PTUAUGCuIQNVOZ0xnrHUE5GHHIqOwCag8BlQiQnnUokgt5AEIK5GnBpIFXwjkAdl7vs7dkJCETXLvEj3/5d7v9/u+337nfN8554bowBHo16+3YRh3K7IPBHcRSIDI9QJ0AWkA8h0E3xM8DWAvde5x6Pqe+D17jnVUGLxWogqPp78SGSeC3wP4ZUR8pJ+Ct50O7e344uKjEXFcBkUkSERY6e43RkE9JcCgawngaiw3O6A/l7CvaHckvLYFhTKi5B8C3B2JQ6sYEhvpcMxKKioqs4ox7SwLkvT0mFNnz82HqKkCaHacRGxL1gDybHJp6WKSYoXHkqBytzuF4FoR6WOFtKNtCP4b0c7s5N27v22Pu11B5e7+6ZTgBgE6t0f2Y74n8IUjOuo+1+7dx9vy06agcrf7fgjXARLzYwZrnZsB6BzevaRkf2uYVgWdcruHKnAjRJzWHf4ElmSl5nTcnbRnT3k4b2EFVfTt29NQ8l+zKf4EIUbi4kAnhz7ohuLiH1qCwwo62cf9ccf3l0jibh1DckPy3lKzmTcbYQWV9+k7HlArOjaEjmejRm9yaWmzOMMKMncCp9x9dwlkYEeEQUCBrO0IrqYcApx1xsV6XLt2nWl43kyQqyB38dQJPZ7MY56qdLsHGIL/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o9YptchsAEk8HvPkvhdbVwYznIJJnA97EVBvLXlvfblZ0whG58nPWCvCHyJy0gyKPde7WOdVcP3JkWHfUqkOAxNn2Rcxn2vbZLXFhr15vW/nEdeeNcyUArr5ctO25OUAjH6z0+tZfzs4qRFJZiU1IHTySvPoDQKt3yeb1cFDJNhHcdI0amhQk7gh4fen1YoYPhgQ/ss/NzxHtHGj2nHDYNi/Hk9/MTQka2CoiN9t3fNVkUDr0/hU5b5SK5Gnw7yyCiMcWL+GH5sxkz80nWsO1e9uftHJysqHqtoigpy3nLYxJLgt4fY+EsnMg41FAltriIzciyjm2tcy0WuXCOUnKf/xGg1VvishwW0Fc8XIhNoYpJ7J9gfpLRByGyM8tc5FzkTromXBrxlJRaM2ReW0sSi0QQTfLwZiG1P582rv876Hs+DNehpKZFvEnoWE2U7dbbrrtTrmWjhPfeqybEby0ECLjrARF8ETML9DzxD2+WikbdifqDHND2vb/PpDm5/oXcV3XRey+tsaKH1tTLhyh661H0xCsmyaQCW1dg1HTHwpMWLbmcpneBJH7Wg+QVdCwFKI/z7R/fWdHyDULaiCIL5jdScM3Y6X+m04/aXIPQGJnwJs/OCTm8yEjYSDMLSurQPkI5CrcoK2ja0vobBTpsD3l2nKU/mGe43DFiV5Ksb8SNUCj9lrlhOUl5r8JwG9evjMBhDmdjkJYBp2luLPHHrL+nq8jxv8BV2A7FHmr6w0AAAAASUVORK5CYII="},GNQp:function(ge,q,_){},GUcZ:function(ge,q,_){"use strict";var Z=_("fWQN"),U=_("mtLc"),L=function(){function ue(){Object(Z.a)(this,ue)}return Object(U.a)(ue,null,[{key:"install",value:function(){Object.setPrototypeOf=Object.setPrototypeOf||function(V,J){return V.__proto__=J,V},Object.assign=Object.assign||function(V){if(V==null)throw new TypeError("Cannot convert undefined or null to object");for(var J=Object(V),te=1;te<arguments.length;te++){var re=arguments[te];if(re!=null)for(var be in re)re.hasOwnProperty(be)&&(J[be]=re[be])}return J},typeof self.Promise!="function"&&_("E2g8").polyfill()}}]),ue}();L.install();var N=L,c=_("+qE3"),u=_.n(c),M=function(){function ue(){Object(Z.a)(this,ue)}return Object(U.a)(ue,null,[{key:"e",value:function(V,J){(!V||ue.FORCE_GLOBAL_TAG)&&(V=ue.GLOBAL_TAG);var te="[".concat(V,"] > ").concat(J);if(ue.ENABLE_CALLBACK&&ue.emitter.emit("log","error",te),!ue.ENABLE_ERROR)return;console.error?console.error(te):console.warn?console.warn(te):console.log(te)}},{key:"i",value:function(V,J){(!V||ue.FORCE_GLOBAL_TAG)&&(V=ue.GLOBAL_TAG);var te="[".concat(V,"] > ").concat(J);if(ue.ENABLE_CALLBACK&&ue.emitter.emit("log","info",te),!ue.ENABLE_INFO)return;console.info?console.info(te):console.log(te)}},{key:"w",value:function(V,J){(!V||ue.FORCE_GLOBAL_TAG)&&(V=ue.GLOBAL_TAG);var te="[".concat(V,"] > ").concat(J);if(ue.ENABLE_CALLBACK&&ue.emitter.emit("log","warn",te),!ue.ENABLE_WARN)return;console.warn?console.warn(te):console.log(te)}},{key:"d",value:function(V,J){(!V||ue.FORCE_GLOBAL_TAG)&&(V=ue.GLOBAL_TAG);var te="[".concat(V,"] > ").concat(J);if(ue.ENABLE_CALLBACK&&ue.emitter.emit("log","debug",te),!ue.ENABLE_DEBUG)return;console.debug?console.debug(te):console.log(te)}},{key:"v",value:function(V,J){(!V||ue.FORCE_GLOBAL_TAG)&&(V=ue.GLOBAL_TAG);var te="[".concat(V,"] > ").concat(J);if(ue.ENABLE_CALLBACK&&ue.emitter.emit("log","verbose",te),!ue.ENABLE_VERBOSE)return;console.log(te)}}]),ue}();M.GLOBAL_TAG="flv.js",M.FORCE_GLOBAL_TAG=!1,M.ENABLE_ERROR=!0,M.ENABLE_INFO=!0,M.ENABLE_WARN=!0,M.ENABLE_DEBUG=!0,M.ENABLE_VERBOSE=!0,M.ENABLE_CALLBACK=!1,M.emitter=new u.a;var g=M,e=function(){function ue(){Object(Z.a)(this,ue),this._firstCheckpoint=0,this._lastCheckpoint=0,this._intervalBytes=0,this._totalBytes=0,this._lastSecondBytes=0,self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now}return Object(U.a)(ue,[{key:"reset",value:function(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0}},{key:"addBytes",value:function(V){this._firstCheckpoint===0?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=V,this._totalBytes+=V):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=V,this._totalBytes+=V):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=V,this._totalBytes+=V,this._lastCheckpoint=this._now())}},{key:"currentKBps",get:function(){this.addBytes(0);var V=(this._now()-this._lastCheckpoint)/1e3;return V==0&&(V=1),this._intervalBytes/V/1024}},{key:"lastSecondKBps",get:function(){return this.addBytes(0),this._lastSecondBytes!==0?this._lastSecondBytes/1024:this._now()-this._lastCheckpoint>=500?this.currentKBps:0}},{key:"averageKBps",get:function(){var V=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/V/1024}}]),ue}(),m=e,r=_("yKVA"),h=_("879j"),a=function(){function ue(ae){Object(Z.a)(this,ue),this._message=ae}return Object(U.a)(ue,[{key:"name",get:function(){return"RuntimeException"}},{key:"message",get:function(){return this._message}},{key:"toString",value:function(){return this.name+": "+this.message}}]),ue}(),l=function(ue){Object(r.a)(V,ue);var ae=Object(h.a)(V);function V(J){return Object(Z.a)(this,V),ae.call(this,J)}return Object(U.a)(V,[{key:"name",get:function(){return"IllegalStateException"}}]),V}(a),d=function(ue){Object(r.a)(V,ue);var ae=Object(h.a)(V);function V(J){return Object(Z.a)(this,V),ae.call(this,J)}return Object(U.a)(V,[{key:"name",get:function(){return"InvalidArgumentException"}}]),V}(a),y=function(ue){Object(r.a)(V,ue);var ae=Object(h.a)(V);function V(J){return Object(Z.a)(this,V),ae.call(this,J)}return Object(U.a)(V,[{key:"name",get:function(){return"NotImplementedException"}}]),V}(a),s={kIdle:0,kConnecting:1,kBuffering:2,kError:3,kComplete:4},p={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"},n=function(){function ue(ae){Object(Z.a)(this,ue),this._type=ae||"undefined",this._status=s.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}return Object(U.a)(ue,[{key:"destroy",value:function(){this._status=s.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}},{key:"isWorking",value:function(){return this._status===s.kConnecting||this._status===s.kBuffering}},{key:"type",get:function(){return this._type}},{key:"status",get:function(){return this._status}},{key:"needStashBuffer",get:function(){return this._needStash}},{key:"onContentLengthKnown",get:function(){return this._onContentLengthKnown},set:function(V){this._onContentLengthKnown=V}},{key:"onURLRedirect",get:function(){return this._onURLRedirect},set:function(V){this._onURLRedirect=V}},{key:"onDataArrival",get:function(){return this._onDataArrival},set:function(V){this._onDataArrival=V}},{key:"onError",get:function(){return this._onError},set:function(V){this._onError=V}},{key:"onComplete",get:function(){return this._onComplete},set:function(V){this._onComplete=V}},{key:"open",value:function(V,J){throw new y("Unimplemented abstract function!")}},{key:"abort",value:function(){throw new y("Unimplemented abstract function!")}}]),ue}(),i=_("oZsa");function v(ue,ae){for(;!Object.prototype.hasOwnProperty.call(ue,ae)&&!(ue=Object(i.a)(ue),ue===null););return ue}function C(ue,ae,V){return typeof Reflect!="undefined"&&Reflect.get?C=Reflect.get:C=function(te,re,be){var Pe=v(te,re);if(!Pe)return;var He=Object.getOwnPropertyDescriptor(Pe,re);return He.get?He.get.call(be):He.value},C(ue,ae,V||ue)}var R={};function w(){var ue=self.navigator.userAgent.toLowerCase(),ae=/(edge)\/([\w.]+)/.exec(ue)||/(opr)[\/]([\w.]+)/.exec(ue)||/(chrome)[ \/]([\w.]+)/.exec(ue)||/(iemobile)[\/]([\w.]+)/.exec(ue)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(ue)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(ue)||/(webkit)[ \/]([\w.]+)/.exec(ue)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ue)||/(msie) ([\w.]+)/.exec(ue)||ue.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(ue)||ue.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(ue)||[],V=/(ipad)/.exec(ue)||/(ipod)/.exec(ue)||/(windows phone)/.exec(ue)||/(iphone)/.exec(ue)||/(kindle)/.exec(ue)||/(android)/.exec(ue)||/(windows)/.exec(ue)||/(mac)/.exec(ue)||/(linux)/.exec(ue)||/(cros)/.exec(ue)||[],J={browser:ae[5]||ae[3]||ae[1]||"",version:ae[2]||ae[4]||"0",majorVersion:ae[4]||ae[2]||"0",platform:V[0]||""},te={};if(J.browser){te[J.browser]=!0;var re=J.majorVersion.split(".");te.version={major:parseInt(J.majorVersion,10),string:J.version},re.length>1&&(te.version.minor=parseInt(re[1],10)),re.length>2&&(te.version.build=parseInt(re[2],10))}if(J.platform&&(te[J.platform]=!0),(te.chrome||te.opr||te.safari)&&(te.webkit=!0),te.rv||te.iemobile){te.rv&&delete te.rv;var be="msie";J.browser=be,te[be]=!0}if(te.edge){delete te.edge;var Pe="msedge";J.browser=Pe,te[Pe]=!0}if(te.opr){var He="opera";J.browser=He,te[He]=!0}if(te.safari&&te.android){var ft="android";J.browser=ft,te[ft]=!0}te.name=J.browser,te.platform=J.platform;for(var _t in R)R.hasOwnProperty(_t)&&delete R[_t];Object.assign(R,te)}w();var x=R,A=function(ue){Object(r.a)(V,ue);var ae=Object(h.a)(V);function V(J,te){var re;return Object(Z.a)(this,V),re=ae.call(this,"fetch-stream-loader"),re.TAG="FetchStreamLoader",re._seekHandler=J,re._config=te,re._needStash=!0,re._requestAbort=!1,re._contentLength=null,re._receivedLength=0,re}return Object(U.a)(V,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),C(Object(i.a)(V.prototype),"destroy",this).call(this)}},{key:"open",value:function(te,re){var be=this;this._dataSource=te,this._range=re;var Pe=te.url;this._config.reuseRedirectedURL&&te.redirectedURL!=null&&(Pe=te.redirectedURL);var He=this._seekHandler.getConfig(Pe,re),ft=new self.Headers;if(typeof He.headers=="object"){var _t=He.headers;for(var Lt in _t)_t.hasOwnProperty(Lt)&&ft.append(Lt,_t[Lt])}var Vt={method:"GET",headers:ft,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(var Ht in this._config.headers)ft.append(Ht,this._config.headers[Ht]);te.cors===!1&&(Vt.mode="same-origin"),te.withCredentials&&(Vt.credentials="include"),te.referrerPolicy&&(Vt.referrerPolicy=te.referrerPolicy),this._status=s.kConnecting,self.fetch(He.url,Vt).then(function(tt){if(be._requestAbort){be._requestAbort=!1,be._status=s.kIdle;return}if(tt.ok&&tt.status>=200&&tt.status<=299){if(tt.url!==He.url&&be._onURLRedirect){var jt=be._seekHandler.removeURLParameters(tt.url);be._onURLRedirect(jt)}var Gt=tt.headers.get("Content-Length");return Gt!=null&&(be._contentLength=parseInt(Gt),be._contentLength!==0&&(be._onContentLengthKnown&&be._onContentLengthKnown(be._contentLength))),be._pump.call(be,tt.body.getReader())}else if(be._status=s.kError,be._onError)be._onError(p.HTTP_STATUS_CODE_INVALID,{code:tt.status,msg:tt.statusText});else throw new a("FetchStreamLoader: Http code invalid, "+tt.status+" "+tt.statusText)}).catch(function(tt){if(be._status=s.kError,be._onError)be._onError(p.EXCEPTION,{code:-1,msg:tt.message});else throw tt})}},{key:"abort",value:function(){this._requestAbort=!0}},{key:"_pump",value:function(te){var re=this;return te.read().then(function(be){if(be.done)if(re._contentLength!==null&&re._receivedLength<re._contentLength){re._status=s.kError;var Pe=p.EARLY_EOF,He={code:-1,msg:"Fetch stream meet Early-EOF"};if(re._onError)re._onError(Pe,He);else throw new a(He.msg)}else re._status=s.kComplete,re._onComplete&&re._onComplete(re._range.from,re._range.from+re._receivedLength-1);else{if(re._requestAbort===!0)return re._requestAbort=!1,re._status=s.kComplete,te.cancel();re._status=s.kBuffering;var ft=be.value.buffer,_t=re._range.from+re._receivedLength;re._receivedLength+=ft.byteLength,re._onDataArrival&&re._onDataArrival(ft,_t,re._receivedLength),re._pump(te)}}).catch(function(be){if(be.code===11&&x.msedge)return;re._status=s.kError;var Pe=0,He=null;if((be.code===19||be.message==="network error")&&(re._contentLength===null||re._contentLength!==null&&re._receivedLength<re._contentLength)?(Pe=p.EARLY_EOF,He={code:be.code,msg:"Fetch stream meet Early-EOF"}):(Pe=p.EXCEPTION,He={code:be.code,msg:be.message}),re._onError)re._onError(Pe,He);else throw new a(He.msg)})}}],[{key:"isSupported",value:function(){try{var te=x.msedge&&x.version.minor>=15048,re=x.msedge?te:!0;return self.fetch&&self.ReadableStream&&re}catch(be){return!1}}}]),V}(n),o=A,f=function(ue){Object(r.a)(V,ue);var ae=Object(h.a)(V);function V(J,te){var re;return Object(Z.a)(this,V),re=ae.call(this,"xhr-moz-chunked-loader"),re.TAG="MozChunkedLoader",re._seekHandler=J,re._config=te,re._needStash=!0,re._xhr=null,re._requestAbort=!1,re._contentLength=null,re._receivedLength=0,re}return Object(U.a)(V,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onloadend=null,this._xhr.onerror=null,this._xhr=null),C(Object(i.a)(V.prototype),"destroy",this).call(this)}},{key:"open",value:function(te,re){this._dataSource=te,this._range=re;var be=te.url;this._config.reuseRedirectedURL&&te.redirectedURL!=null&&(be=te.redirectedURL);var Pe=this._seekHandler.getConfig(be,re);this._requestURL=Pe.url;var He=this._xhr=new XMLHttpRequest;if(He.open("GET",Pe.url,!0),He.responseType="moz-chunked-arraybuffer",He.onreadystatechange=this._onReadyStateChange.bind(this),He.onprogress=this._onProgress.bind(this),He.onloadend=this._onLoadEnd.bind(this),He.onerror=this._onXhrError.bind(this),te.withCredentials&&(He.withCredentials=!0),typeof Pe.headers=="object"){var ft=Pe.headers;for(var _t in ft)ft.hasOwnProperty(_t)&&He.setRequestHeader(_t,ft[_t])}if(typeof this._config.headers=="object"){var Lt=this._config.headers;for(var Vt in Lt)Lt.hasOwnProperty(Vt)&&He.setRequestHeader(Vt,Lt[Vt])}this._status=s.kConnecting,He.send()}},{key:"abort",value:function(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=s.kComplete}},{key:"_onReadyStateChange",value:function(te){var re=te.target;if(re.readyState===2){if(re.responseURL!=null&&re.responseURL!==this._requestURL&&this._onURLRedirect){var be=this._seekHandler.removeURLParameters(re.responseURL);this._onURLRedirect(be)}if(re.status!==0&&(re.status<200||re.status>299))if(this._status=s.kError,this._onError)this._onError(p.HTTP_STATUS_CODE_INVALID,{code:re.status,msg:re.statusText});else throw new a("MozChunkedLoader: Http code invalid, "+re.status+" "+re.statusText);else this._status=s.kBuffering}}},{key:"_onProgress",value:function(te){if(this._status===s.kError)return;this._contentLength===null&&(te.total!==null&&te.total!==0&&(this._contentLength=te.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)));var re=te.target.response,be=this._range.from+this._receivedLength;this._receivedLength+=re.byteLength,this._onDataArrival&&this._onDataArrival(re,be,this._receivedLength)}},{key:"_onLoadEnd",value:function(te){if(this._requestAbort===!0){this._requestAbort=!1;return}else if(this._status===s.kError)return;this._status=s.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)}},{key:"_onXhrError",value:function(te){this._status=s.kError;var re=0,be=null;if(this._contentLength&&te.loaded<this._contentLength?(re=p.EARLY_EOF,be={code:-1,msg:"Moz-Chunked stream meet Early-Eof"}):(re=p.EXCEPTION,be={code:-1,msg:te.constructor.name+" "+te.type}),this._onError)this._onError(re,be);else throw new a(be.msg)}}],[{key:"isSupported",value:function(){try{var te=new XMLHttpRequest;return te.open("GET","https://example.com",!0),te.responseType="moz-chunked-arraybuffer",te.responseType==="moz-chunked-arraybuffer"}catch(re){return g.w("MozChunkedLoader",re.message),!1}}}]),V}(n),E=f,O=function(ue){Object(r.a)(V,ue);var ae=Object(h.a)(V);function V(J,te){var re;return Object(Z.a)(this,V),re=ae.call(this,"xhr-msstream-loader"),re.TAG="MSStreamLoader",re._seekHandler=J,re._config=te,re._needStash=!0,re._xhr=null,re._reader=null,re._totalRange=null,re._currentRange=null,re._currentRequestURL=null,re._currentRedirectedURL=null,re._contentLength=null,re._receivedLength=0,re._bufferLimit=16*1024*1024,re._lastTimeBufferSize=0,re._isReconnecting=!1,re}return Object(U.a)(V,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),this._reader&&(this._reader.onprogress=null,this._reader.onload=null,this._reader.onerror=null,this._reader=null),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr=null),C(Object(i.a)(V.prototype),"destroy",this).call(this)}},{key:"open",value:function(te,re){this._internalOpen(te,re,!1)}},{key:"_internalOpen",value:function(te,re,be){this._dataSource=te,be?this._currentRange=re:this._totalRange=re;var Pe=te.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?Pe=this._currentRedirectedURL:te.redirectedURL!=null&&(Pe=te.redirectedURL));var He=this._seekHandler.getConfig(Pe,re);this._currentRequestURL=He.url;var ft=this._reader=new self.MSStreamReader;ft.onprogress=this._msrOnProgress.bind(this),ft.onload=this._msrOnLoad.bind(this),ft.onerror=this._msrOnError.bind(this);var _t=this._xhr=new XMLHttpRequest;if(_t.open("GET",He.url,!0),_t.responseType="ms-stream",_t.onreadystatechange=this._xhrOnReadyStateChange.bind(this),_t.onerror=this._xhrOnError.bind(this),te.withCredentials&&(_t.withCredentials=!0),typeof He.headers=="object"){var Lt=He.headers;for(var Vt in Lt)Lt.hasOwnProperty(Vt)&&_t.setRequestHeader(Vt,Lt[Vt])}if(typeof this._config.headers=="object"){var Ht=this._config.headers;for(var tt in Ht)Ht.hasOwnProperty(tt)&&_t.setRequestHeader(tt,Ht[tt])}this._isReconnecting?this._isReconnecting=!1:this._status=s.kConnecting,_t.send()}},{key:"abort",value:function(){this._internalAbort(),this._status=s.kComplete}},{key:"_internalAbort",value:function(){this._reader&&(this._reader.readyState===1&&this._reader.abort(),this._reader.onprogress=null,this._reader.onload=null,this._reader.onerror=null,this._reader=null),this._xhr&&(this._xhr.abort(),this._xhr.onreadystatechange=null,this._xhr=null)}},{key:"_xhrOnReadyStateChange",value:function(te){var re=te.target;if(re.readyState===2)if(re.status>=200&&re.status<=299){if(this._status=s.kBuffering,re.responseURL!=null){var be=this._seekHandler.removeURLParameters(re.responseURL);re.responseURL!==this._currentRequestURL&&be!==this._currentRedirectedURL&&(this._currentRedirectedURL=be,this._onURLRedirect&&this._onURLRedirect(be))}var Pe=re.getResponseHeader("Content-Length");if(Pe!=null&&this._contentLength==null){var He=parseInt(Pe);He>0&&(this._contentLength=He,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength))}}else if(this._status=s.kError,this._onError)this._onError(p.HTTP_STATUS_CODE_INVALID,{code:re.status,msg:re.statusText});else throw new a("MSStreamLoader: Http code invalid, "+re.status+" "+re.statusText);else if(re.readyState===3&&(re.status>=200&&re.status<=299)){this._status=s.kBuffering;var ft=re.response;this._reader.readAsArrayBuffer(ft)}}},{key:"_xhrOnError",value:function(te){this._status=s.kError;var re=p.EXCEPTION,be={code:-1,msg:te.constructor.name+" "+te.type};if(this._onError)this._onError(re,be);else throw new a(be.msg)}},{key:"_msrOnProgress",value:function(te){var re=te.target,be=re.result;if(be==null){this._doReconnectIfNeeded();return}var Pe=be.slice(this._lastTimeBufferSize);this._lastTimeBufferSize=be.byteLength;var He=this._totalRange.from+this._receivedLength;this._receivedLength+=Pe.byteLength,this._onDataArrival&&this._onDataArrival(Pe,He,this._receivedLength),be.byteLength>=this._bufferLimit&&(g.v(this.TAG,"MSStream buffer exceeded max size near ".concat(He+Pe.byteLength,", reconnecting...")),this._doReconnectIfNeeded())}},{key:"_doReconnectIfNeeded",value:function(){if(this._contentLength==null||this._receivedLength<this._contentLength){this._isReconnecting=!0,this._lastTimeBufferSize=0,this._internalAbort();var te={from:this._totalRange.from+this._receivedLength,to:-1};this._internalOpen(this._dataSource,te,!0)}}},{key:"_msrOnLoad",value:function(te){this._status=s.kComplete,this._onComplete&&this._onComplete(this._totalRange.from,this._totalRange.from+this._receivedLength-1)}},{key:"_msrOnError",value:function(te){this._status=s.kError;var re=0,be=null;if(this._contentLength&&this._receivedLength<this._contentLength?(re=p.EARLY_EOF,be={code:-1,msg:"MSStream meet Early-Eof"}):(re=p.EARLY_EOF,be={code:-1,msg:te.constructor.name+" "+te.type}),this._onError)this._onError(re,be);else throw new a(be.msg)}}],[{key:"isSupported",value:function(){try{if(typeof self.MSStream=="undefined"||typeof self.MSStreamReader=="undefined")return!1;var te=new XMLHttpRequest;return te.open("GET","https://example.com",!0),te.responseType="ms-stream",te.responseType==="ms-stream"}catch(re){return g.w("MSStreamLoader",re.message),!1}}}]),V}(n),S=O,b=function(ue){Object(r.a)(V,ue);var ae=Object(h.a)(V);function V(J,te){var re;return Object(Z.a)(this,V),re=ae.call(this,"xhr-range-loader"),re.TAG="RangeLoader",re._seekHandler=J,re._config=te,re._needStash=!1,re._chunkSizeKBList=[128,256,384,512,768,1024,1536,2048,3072,4096,5120,6144,7168,8192],re._currentChunkSizeKB=384,re._currentSpeedNormalized=0,re._zeroSpeedChunkCount=0,re._xhr=null,re._speedSampler=new m,re._requestAbort=!1,re._waitForTotalLength=!1,re._totalLengthReceived=!1,re._currentRequestURL=null,re._currentRedirectedURL=null,re._currentRequestRange=null,re._totalLength=null,re._contentLength=null,re._receivedLength=0,re._lastTimeLoaded=0,re}return Object(U.a)(V,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr=null),C(Object(i.a)(V.prototype),"destroy",this).call(this)}},{key:"currentSpeed",get:function(){return this._speedSampler.lastSecondKBps}},{key:"open",value:function(te,re){this._dataSource=te,this._range=re,this._status=s.kConnecting;var be=!1;this._dataSource.filesize!=null&&this._dataSource.filesize!==0&&(be=!0,this._totalLength=this._dataSource.filesize),!this._totalLengthReceived&&!be?(this._waitForTotalLength=!0,this._internalOpen(this._dataSource,{from:0,to:-1})):this._openSubRange()}},{key:"_openSubRange",value:function(){var te=this._currentChunkSizeKB*1024,re=this._range.from+this._receivedLength,be=re+te;this._contentLength!=null&&(be-this._range.from>=this._contentLength&&(be=this._range.from+this._contentLength-1)),this._currentRequestRange={from:re,to:be},this._internalOpen(this._dataSource,this._currentRequestRange)}},{key:"_internalOpen",value:function(te,re){this._lastTimeLoaded=0;var be=te.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?be=this._currentRedirectedURL:te.redirectedURL!=null&&(be=te.redirectedURL));var Pe=this._seekHandler.getConfig(be,re);this._currentRequestURL=Pe.url;var He=this._xhr=new XMLHttpRequest;if(He.open("GET",Pe.url,!0),He.responseType="arraybuffer",He.onreadystatechange=this._onReadyStateChange.bind(this),He.onprogress=this._onProgress.bind(this),He.onload=this._onLoad.bind(this),He.onerror=this._onXhrError.bind(this),te.withCredentials&&(He.withCredentials=!0),typeof Pe.headers=="object"){var ft=Pe.headers;for(var _t in ft)ft.hasOwnProperty(_t)&&He.setRequestHeader(_t,ft[_t])}if(typeof this._config.headers=="object"){var Lt=this._config.headers;for(var Vt in Lt)Lt.hasOwnProperty(Vt)&&He.setRequestHeader(Vt,Lt[Vt])}He.send()}},{key:"abort",value:function(){this._requestAbort=!0,this._internalAbort(),this._status=s.kComplete}},{key:"_internalAbort",value:function(){this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr.abort(),this._xhr=null)}},{key:"_onReadyStateChange",value:function(te){var re=te.target;if(re.readyState===2){if(re.responseURL!=null){var be=this._seekHandler.removeURLParameters(re.responseURL);re.responseURL!==this._currentRequestURL&&be!==this._currentRedirectedURL&&(this._currentRedirectedURL=be,this._onURLRedirect&&this._onURLRedirect(be))}if(re.status>=200&&re.status<=299){if(this._waitForTotalLength)return;this._status=s.kBuffering}else if(this._status=s.kError,this._onError)this._onError(p.HTTP_STATUS_CODE_INVALID,{code:re.status,msg:re.statusText});else throw new a("RangeLoader: Http code invalid, "+re.status+" "+re.statusText)}}},{key:"_onProgress",value:function(te){if(this._status===s.kError)return;if(this._contentLength===null){var re=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,re=!0;var be=te.total;this._internalAbort(),be!=null&be!==0&&(this._totalLength=be)}if(this._range.to===-1?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,re){this._openSubRange();return}this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}var Pe=te.loaded-this._lastTimeLoaded;this._lastTimeLoaded=te.loaded,this._speedSampler.addBytes(Pe)}},{key:"_normalizeSpeed",value:function(te){var re=this._chunkSizeKBList,be=re.length-1,Pe=0,He=0,ft=be;if(te<re[0])return re[0];for(;He<=ft;){if(Pe=He+Math.floor((ft-He)/2),Pe===be||te>=re[Pe]&&te<re[Pe+1])return re[Pe];re[Pe]<te?He=Pe+1:ft=Pe-1}}},{key:"_onLoad",value:function(te){if(this._status===s.kError)return;if(this._waitForTotalLength){this._waitForTotalLength=!1;return}this._lastTimeLoaded=0;var re=this._speedSampler.lastSecondKBps;if(re===0&&(this._zeroSpeedChunkCount++,this._zeroSpeedChunkCount>=3&&(re=this._speedSampler.currentKBps)),re!==0){var be=this._normalizeSpeed(re);this._currentSpeedNormalized!==be&&(this._currentSpeedNormalized=be,this._currentChunkSizeKB=be)}var Pe=te.target.response,He=this._range.from+this._receivedLength;this._receivedLength+=Pe.byteLength;var ft=!1;this._contentLength!=null&&this._receivedLength<this._contentLength?this._openSubRange():ft=!0,this._onDataArrival&&this._onDataArrival(Pe,He,this._receivedLength),ft&&(this._status=s.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1))}},{key:"_onXhrError",value:function(te){this._status=s.kError;var re=0,be=null;if(this._contentLength&&this._receivedLength>0&&this._receivedLength<this._contentLength?(re=p.EARLY_EOF,be={code:-1,msg:"RangeLoader meet Early-Eof"}):(re=p.EXCEPTION,be={code:-1,msg:te.constructor.name+" "+te.type}),this._onError)this._onError(re,be);else throw new a(be.msg)}}],[{key:"isSupported",value:function(){try{var te=new XMLHttpRequest;return te.open("GET","https://example.com",!0),te.responseType="arraybuffer",te.responseType==="arraybuffer"}catch(re){return g.w("RangeLoader",re.message),!1}}}]),V}(n),D=b,P=function(ue){Object(r.a)(V,ue);var ae=Object(h.a)(V);function V(){var J;return Object(Z.a)(this,V),J=ae.call(this,"websocket-loader"),J.TAG="WebSocketLoader",J._needStash=!0,J._ws=null,J._requestAbort=!1,J._receivedLength=0,J}return Object(U.a)(V,[{key:"destroy",value:function(){this._ws&&this.abort(),C(Object(i.a)(V.prototype),"destroy",this).call(this)}},{key:"open",value:function(te){try{var re=this._ws=new self.WebSocket(te.url);re.binaryType="arraybuffer",re.onopen=this._onWebSocketOpen.bind(this),re.onclose=this._onWebSocketClose.bind(this),re.onmessage=this._onWebSocketMessage.bind(this),re.onerror=this._onWebSocketError.bind(this),this._status=s.kConnecting}catch(Pe){this._status=s.kError;var be={code:Pe.code,msg:Pe.message};if(this._onError)this._onError(p.EXCEPTION,be);else throw new a(be.msg)}}},{key:"abort",value:function(){var te=this._ws;te&&(te.readyState===0||te.readyState===1)&&(this._requestAbort=!0,te.close()),this._ws=null,this._status=s.kComplete}},{key:"_onWebSocketOpen",value:function(te){this._status=s.kBuffering}},{key:"_onWebSocketClose",value:function(te){if(this._requestAbort===!0){this._requestAbort=!1;return}this._status=s.kComplete,this._onComplete&&this._onComplete(0,this._receivedLength-1)}},{key:"_onWebSocketMessage",value:function(te){var re=this;if(te.data instanceof ArrayBuffer)this._dispatchArrayBuffer(te.data);else if(te.data instanceof Blob){var be=new FileReader;be.onload=function(){re._dispatchArrayBuffer(be.result)},be.readAsArrayBuffer(te.data)}else{this._status=s.kError;var Pe={code:-1,msg:"Unsupported WebSocket message type: "+te.data.constructor.name};if(this._onError)this._onError(p.EXCEPTION,Pe);else throw new a(Pe.msg)}}},{key:"_dispatchArrayBuffer",value:function(te){var re=te,be=this._receivedLength;this._receivedLength+=re.byteLength,this._onDataArrival&&this._onDataArrival(re,be,this._receivedLength)}},{key:"_onWebSocketError",value:function(te){this._status=s.kError;var re={code:te.code,msg:te.message};if(this._onError)this._onError(p.EXCEPTION,re);else throw new a(re.msg)}}],[{key:"isSupported",value:function(){try{return typeof self.WebSocket!="undefined"}catch(te){return!1}}}]),V}(n),I=P,F=function(){function ue(ae){Object(Z.a)(this,ue),this._zeroStart=ae||!1}return Object(U.a)(ue,[{key:"getConfig",value:function(V,J){var te={};if(J.from!==0||J.to!==-1){var re;J.to!==-1?re="bytes=".concat(J.from.toString(),"-").concat(J.to.toString()):re="bytes=".concat(J.from.toString(),"-"),te.Range=re}else this._zeroStart&&(te.Range="bytes=0-");return{url:V,headers:te}}},{key:"removeURLParameters",value:function(V){return V}}]),ue}(),K=F,j=function(){function ue(ae,V){Object(Z.a)(this,ue),this._startName=ae,this._endName=V}return Object(U.a)(ue,[{key:"getConfig",value:function(V,J){var te=V;if(J.from!==0||J.to!==-1){var re=!0;te.indexOf("?")===-1&&(te+="?",re=!1),re&&(te+="&"),te+="".concat(this._startName,"=").concat(J.from.toString()),J.to!==-1&&(te+="&".concat(this._endName,"=").concat(J.to.toString()))}return{url:te,headers:{}}}},{key:"removeURLParameters",value:function(V){var J=V.split("?")[0],te=void 0,re=V.indexOf("?");re!==-1&&(te=V.substring(re+1));var be="";if(te!=null&&te.length>0)for(var Pe=te.split("&"),He=0;He<Pe.length;He++){var ft=Pe[He].split("="),_t=He>0;ft[0]!==this._startName&&ft[0]!==this._endName&&(_t&&(be+="&"),be+=Pe[He])}return be.length===0?J:J+"?"+be}}]),ue}(),Y=j,W=function(){function ue(ae,V,J){Object(Z.a)(this,ue),this.TAG="IOController",this._config=V,this._extraData=J,this._stashInitialSize=1024*384,V.stashInitialSize!=null&&V.stashInitialSize>0&&(this._stashInitialSize=V.stashInitialSize),this._stashUsed=0,this._stashSize=this._stashInitialSize,this._bufferSize=1024*1024*3,this._stashBuffer=new ArrayBuffer(this._bufferSize),this._stashByteStart=0,this._enableStash=!0,V.enableStashBuffer===!1&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=ae,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(ae.url),this._refTotalLength=ae.filesize?ae.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new m,this._speedNormalizeList=[64,128,256,384,512,768,1024,1536,2048,3072,4096],this._isEarlyEofReconnecting=!1,this._paused=!1,this._resumeFrom=0,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._selectSeekHandler(),this._selectLoader(),this._createLoader()}return Object(U.a)(ue,[{key:"destroy",value:function(){this._loader.isWorking()&&this._loader.abort(),this._loader.destroy(),this._loader=null,this._loaderClass=null,this._dataSource=null,this._stashBuffer=null,this._stashUsed=this._stashSize=this._bufferSize=this._stashByteStart=0,this._currentRange=null,this._speedSampler=null,this._isEarlyEofReconnecting=!1,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._extraData=null}},{key:"isWorking",value:function(){return this._loader&&this._loader.isWorking()&&!this._paused}},{key:"isPaused",value:function(){return this._paused}},{key:"status",get:function(){return this._loader.status}},{key:"extraData",get:function(){return this._extraData},set:function(V){this._extraData=V}},{key:"onDataArrival",get:function(){return this._onDataArrival},set:function(V){this._onDataArrival=V}},{key:"onSeeked",get:function(){return this._onSeeked},set:function(V){this._onSeeked=V}},{key:"onError",get:function(){return this._onError},set:function(V){this._onError=V}},{key:"onComplete",get:function(){return this._onComplete},set:function(V){this._onComplete=V}},{key:"onRedirect",get:function(){return this._onRedirect},set:function(V){this._onRedirect=V}},{key:"onRecoveredEarlyEof",get:function(){return this._onRecoveredEarlyEof},set:function(V){this._onRecoveredEarlyEof=V}},{key:"currentURL",get:function(){return this._dataSource.url}},{key:"hasRedirect",get:function(){return this._redirectedURL!=null||this._dataSource.redirectedURL!=null}},{key:"currentRedirectedURL",get:function(){return this._redirectedURL||this._dataSource.redirectedURL}},{key:"currentSpeed",get:function(){return this._loaderClass===D?this._loader.currentSpeed:this._speedSampler.lastSecondKBps}},{key:"loaderType",get:function(){return this._loader.type}},{key:"_selectSeekHandler",value:function(){var V=this._config;if(V.seekType==="range")this._seekHandler=new K(this._config.rangeLoadZeroStart);else if(V.seekType==="param"){var J=V.seekParamStart||"bstart",te=V.seekParamEnd||"bend";this._seekHandler=new Y(J,te)}else if(V.seekType==="custom"){if(typeof V.customSeekHandler!="function")throw new d("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new V.customSeekHandler}else throw new d("Invalid seekType in config: ".concat(V.seekType))}},{key:"_selectLoader",value:function(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=I;else if(o.isSupported())this._loaderClass=o;else if(E.isSupported())this._loaderClass=E;else if(D.isSupported())this._loaderClass=D;else throw new a("Your browser doesn't support xhr with arraybuffer responseType!")}},{key:"_createLoader",value:function(){this._loader=new this._loaderClass(this._seekHandler,this._config),this._loader.needStashBuffer===!1&&(this._enableStash=!1),this._loader.onContentLengthKnown=this._onContentLengthKnown.bind(this),this._loader.onURLRedirect=this._onURLRedirect.bind(this),this._loader.onDataArrival=this._onLoaderChunkArrival.bind(this),this._loader.onComplete=this._onLoaderComplete.bind(this),this._loader.onError=this._onLoaderError.bind(this)}},{key:"open",value:function(V){this._currentRange={from:0,to:-1},V&&(this._currentRange.from=V),this._speedSampler.reset(),V||(this._fullRequestFlag=!0),this._loader.open(this._dataSource,Object.assign({},this._currentRange))}},{key:"abort",value:function(){this._loader.abort(),this._paused&&(this._paused=!1,this._resumeFrom=0)}},{key:"pause",value:function(){this.isWorking()&&(this._loader.abort(),this._stashUsed!==0?(this._resumeFrom=this._stashByteStart,this._currentRange.to=this._stashByteStart-1):this._resumeFrom=this._currentRange.to+1,this._stashUsed=0,this._stashByteStart=0,this._paused=!0)}},{key:"resume",value:function(){if(this._paused){this._paused=!1;var V=this._resumeFrom;this._resumeFrom=0,this._internalSeek(V,!0)}}},{key:"seek",value:function(V){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(V,!0)}},{key:"_internalSeek",value:function(V,J){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(J),this._loader.destroy(),this._loader=null;var te={from:V,to:-1};this._currentRange={from:te.from,to:-1},this._speedSampler.reset(),this._stashSize=this._stashInitialSize,this._createLoader(),this._loader.open(this._dataSource,te),this._onSeeked&&this._onSeeked()}},{key:"updateUrl",value:function(V){if(!V||typeof V!="string"||V.length===0)throw new d("Url must be a non-empty string!");this._dataSource.url=V}},{key:"_expandBuffer",value:function(V){for(var J=this._stashSize;J+1024*1024*1<V;)J*=2;if(J+=1024*1024*1,J===this._bufferSize)return;var te=new ArrayBuffer(J);if(this._stashUsed>0){var re=new Uint8Array(this._stashBuffer,0,this._stashUsed),be=new Uint8Array(te,0,J);be.set(re,0)}this._stashBuffer=te,this._bufferSize=J}},{key:"_normalizeSpeed",value:function(V){var J=this._speedNormalizeList,te=J.length-1,re=0,be=0,Pe=te;if(V<J[0])return J[0];for(;be<=Pe;){if(re=be+Math.floor((Pe-be)/2),re===te||V>=J[re]&&V<J[re+1])return J[re];J[re]<V?be=re+1:Pe=re-1}}},{key:"_adjustStashSize",value:function(V){var J=0;this._config.isLive||V<512?J=V:V>=512&&V<=1024?J=Math.floor(V*1.5):J=V*2,J>8192&&(J=8192);var te=J*1024+1024*1024*1;this._bufferSize<te&&this._expandBuffer(te),this._stashSize=J*1024}},{key:"_dispatchChunks",value:function(V,J){return this._currentRange.to=J+V.byteLength-1,this._onDataArrival(V,J)}},{key:"_onURLRedirect",value:function(V){this._redirectedURL=V,this._onRedirect&&this._onRedirect(V)}},{key:"_onContentLengthKnown",value:function(V){V&&this._fullRequestFlag&&(this._totalLength=V,this._fullRequestFlag=!1)}},{key:"_onLoaderChunkArrival",value:function(V,J,te){if(!this._onDataArrival)throw new l("IOController: No existing consumer (onDataArrival) callback!");if(this._paused)return;this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,this._onRecoveredEarlyEof&&this._onRecoveredEarlyEof()),this._speedSampler.addBytes(V.byteLength);var re=this._speedSampler.lastSecondKBps;if(re!==0){var be=this._normalizeSpeed(re);this._speedNormalized!==be&&(this._speedNormalized=be,this._adjustStashSize(be))}if(this._enableStash)if(this._stashUsed===0&&this._stashByteStart===0&&(this._stashByteStart=J),this._stashUsed+V.byteLength<=this._stashSize){var Ht=new Uint8Array(this._stashBuffer,0,this._stashSize);Ht.set(new Uint8Array(V),this._stashUsed),this._stashUsed+=V.byteLength}else{var tt=new Uint8Array(this._stashBuffer,0,this._bufferSize);if(this._stashUsed>0){var jt=this._stashBuffer.slice(0,this._stashUsed),Gt=this._dispatchChunks(jt,this._stashByteStart);if(Gt<jt.byteLength){if(Gt>0){var Qt=new Uint8Array(jt,Gt);tt.set(Qt,0),this._stashUsed=Qt.byteLength,this._stashByteStart+=Gt}}else this._stashUsed=0,this._stashByteStart+=Gt;this._stashUsed+V.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+V.byteLength),tt=new Uint8Array(this._stashBuffer,0,this._bufferSize)),tt.set(new Uint8Array(V),this._stashUsed),this._stashUsed+=V.byteLength}else{var Tt=this._dispatchChunks(V,J);if(Tt<V.byteLength){var tn=V.byteLength-Tt;tn>this._bufferSize&&(this._expandBuffer(tn),tt=new Uint8Array(this._stashBuffer,0,this._bufferSize)),tt.set(new Uint8Array(V,Tt),0),this._stashUsed+=tn,this._stashByteStart=J+Tt}}}else if(this._stashUsed===0){var Pe=this._dispatchChunks(V,J);if(Pe<V.byteLength){var He=V.byteLength-Pe;He>this._bufferSize&&this._expandBuffer(He);var ft=new Uint8Array(this._stashBuffer,0,this._bufferSize);ft.set(new Uint8Array(V,Pe),0),this._stashUsed+=He,this._stashByteStart=J+Pe}}else{this._stashUsed+V.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+V.byteLength);var _t=new Uint8Array(this._stashBuffer,0,this._bufferSize);_t.set(new Uint8Array(V),this._stashUsed),this._stashUsed+=V.byteLength;var Lt=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(Lt<this._stashUsed&&Lt>0){var Vt=new Uint8Array(this._stashBuffer,Lt);_t.set(Vt,0)}this._stashUsed-=Lt,this._stashByteStart+=Lt}}},{key:"_flushStashBuffer",value:function(V){if(this._stashUsed>0){var J=this._stashBuffer.slice(0,this._stashUsed),te=this._dispatchChunks(J,this._stashByteStart),re=J.byteLength-te;if(te<J.byteLength)if(V)g.w(this.TAG,"".concat(re," bytes unconsumed data remain when flush buffer, dropped"));else{if(te>0){var be=new Uint8Array(this._stashBuffer,0,this._bufferSize),Pe=new Uint8Array(J,te);be.set(Pe,0),this._stashUsed=Pe.byteLength,this._stashByteStart+=te}return 0}return this._stashUsed=0,this._stashByteStart=0,re}return 0}},{key:"_onLoaderComplete",value:function(V,J){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}},{key:"_onLoaderError",value:function(V,J){g.e(this.TAG,"Loader error, code = ".concat(J.code,", msg = ").concat(J.msg)),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,V=p.UNRECOVERABLE_EARLY_EOF);switch(V){case p.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){var te=this._currentRange.to+1;te<this._totalLength&&(g.w(this.TAG,"Connection lost, trying reconnect..."),this._isEarlyEofReconnecting=!0,this._internalSeek(te,!1));return}V=p.UNRECOVERABLE_EARLY_EOF;break}case p.UNRECOVERABLE_EARLY_EOF:case p.CONNECTING_TIMEOUT:case p.HTTP_STATUS_CODE_INVALID:case p.EXCEPTION:break}if(this._onError)this._onError(V,J);else throw new a("IOException: "+J.msg)}}]),ue}(),Q=W,ie={enableWorker:!1,enableStashBuffer:!0,stashInitialSize:void 0,isLive:!1,lazyLoad:!0,lazyLoadMaxDuration:3*60,lazyLoadRecoverDuration:30,deferLoadAfterSourceOpen:!0,autoCleanupMaxBackwardDuration:3*60,autoCleanupMinBackwardDuration:2*60,statisticsInfoReportInterval:600,fixAudioTimestampGap:!0,accurateSeek:!1,seekType:"range",seekParamStart:"bstart",seekParamEnd:"bend",rangeLoadZeroStart:!1,customSeekHandler:void 0,reuseRedirectedURL:!1,headers:void 0,customLoader:void 0};function Ee(){return Object.assign({},ie)}var pe=function(){function ue(){Object(Z.a)(this,ue)}return Object(U.a)(ue,null,[{key:"supportMSEH264Playback",value:function(){return window.MediaSource&&window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"')}},{key:"supportNetworkStreamIO",value:function(){var V=new Q({},Ee()),J=V.loaderType;return V.destroy(),J=="fetch-stream-loader"||J=="xhr-moz-chunked-loader"}},{key:"getNetworkLoaderTypeName",value:function(){var V=new Q({},Ee()),J=V.loaderType;return V.destroy(),J}},{key:"supportNativeMediaPlayback",value:function(V){ue.videoElement==null&&(ue.videoElement=window.document.createElement("video"));var J=ue.videoElement.canPlayType(V);return J==="probably"||J=="maybe"}},{key:"getFeatureList",value:function(){var V={mseFlvPlayback:!1,mseLiveFlvPlayback:!1,networkStreamIO:!1,networkLoaderName:"",nativeMP4H264Playback:!1,nativeWebmVP8Playback:!1,nativeWebmVP9Playback:!1};return V.mseFlvPlayback=ue.supportMSEH264Playback(),V.networkStreamIO=ue.supportNetworkStreamIO(),V.networkLoaderName=ue.getNetworkLoaderTypeName(),V.mseLiveFlvPlayback=V.mseFlvPlayback&&V.networkStreamIO,V.nativeMP4H264Playback=ue.supportNativeMediaPlayback('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),V.nativeWebmVP8Playback=ue.supportNativeMediaPlayback('video/webm; codecs="vp8.0, vorbis"'),V.nativeWebmVP9Playback=ue.supportNativeMediaPlayback('video/webm; codecs="vp9"'),V}}]),ue}(),De=pe,Me={ERROR:"error",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info"},Ue=Me,Ie=function(){function ue(){Object(Z.a)(this,ue)}return Object(U.a)(ue,null,[{key:"forceGlobalTag",get:function(){return g.FORCE_GLOBAL_TAG},set:function(V){g.FORCE_GLOBAL_TAG=V,ue._notifyChange()}},{key:"globalTag",get:function(){return g.GLOBAL_TAG},set:function(V){g.GLOBAL_TAG=V,ue._notifyChange()}},{key:"enableAll",get:function(){return g.ENABLE_VERBOSE&&g.ENABLE_DEBUG&&g.ENABLE_INFO&&g.ENABLE_WARN&&g.ENABLE_ERROR},set:function(V){g.ENABLE_VERBOSE=V,g.ENABLE_DEBUG=V,g.ENABLE_INFO=V,g.ENABLE_WARN=V,g.ENABLE_ERROR=V,ue._notifyChange()}},{key:"enableDebug",get:function(){return g.ENABLE_DEBUG},set:function(V){g.ENABLE_DEBUG=V,ue._notifyChange()}},{key:"enableVerbose",get:function(){return g.ENABLE_VERBOSE},set:function(V){g.ENABLE_VERBOSE=V,ue._notifyChange()}},{key:"enableInfo",get:function(){return g.ENABLE_INFO},set:function(V){g.ENABLE_INFO=V,ue._notifyChange()}},{key:"enableWarn",get:function(){return g.ENABLE_WARN},set:function(V){g.ENABLE_WARN=V,ue._notifyChange()}},{key:"enableError",get:function(){return g.ENABLE_ERROR},set:function(V){g.ENABLE_ERROR=V,ue._notifyChange()}},{key:"getConfig",value:function(){return{globalTag:g.GLOBAL_TAG,forceGlobalTag:g.FORCE_GLOBAL_TAG,enableVerbose:g.ENABLE_VERBOSE,enableDebug:g.ENABLE_DEBUG,enableInfo:g.ENABLE_INFO,enableWarn:g.ENABLE_WARN,enableError:g.ENABLE_ERROR,enableCallback:g.ENABLE_CALLBACK}}},{key:"applyConfig",value:function(V){g.GLOBAL_TAG=V.globalTag,g.FORCE_GLOBAL_TAG=V.forceGlobalTag,g.ENABLE_VERBOSE=V.enableVerbose,g.ENABLE_DEBUG=V.enableDebug,g.ENABLE_INFO=V.enableInfo,g.ENABLE_WARN=V.enableWarn,g.ENABLE_ERROR=V.enableError,g.ENABLE_CALLBACK=V.enableCallback}},{key:"_notifyChange",value:function(){var V=ue.emitter;if(V.listenerCount("change")>0){var J=ue.getConfig();V.emit("change",J)}}},{key:"registerListener",value:function(V){ue.emitter.addListener("change",V)}},{key:"removeListener",value:function(V){ue.emitter.removeListener("change",V)}},{key:"addLogListener",value:function(V){g.emitter.addListener("log",V),g.emitter.listenerCount("log")>0&&(g.ENABLE_CALLBACK=!0,ue._notifyChange())}},{key:"removeLogListener",value:function(V){g.emitter.removeListener("log",V),g.emitter.listenerCount("log")===0&&(g.ENABLE_CALLBACK=!1,ue._notifyChange())}}]),ue}();Ie.emitter=new u.a;var ne=Ie,B=function(){function ue(){Object(Z.a)(this,ue),this.mimeType=null,this.duration=null,this.hasAudio=null,this.hasVideo=null,this.audioCodec=null,this.videoCodec=null,this.audioDataRate=null,this.videoDataRate=null,this.audioSampleRate=null,this.audioChannelCount=null,this.width=null,this.height=null,this.fps=null,this.profile=null,this.level=null,this.refFrames=null,this.chromaFormat=null,this.sarNum=null,this.sarDen=null,this.metadata=null,this.segments=null,this.segmentCount=null,this.hasKeyframesIndex=null,this.keyframesIndex=null}return Object(U.a)(ue,[{key:"isComplete",value:function(){var V=this.hasAudio===!1||this.hasAudio===!0&&this.audioCodec!=null&&this.audioSampleRate!=null&&this.audioChannelCount!=null,J=this.hasVideo===!1||this.hasVideo===!0&&this.videoCodec!=null&&this.width!=null&&this.height!=null&&this.fps!=null&&this.profile!=null&&this.level!=null&&this.refFrames!=null&&this.chromaFormat!=null&&this.sarNum!=null&&this.sarDen!=null;return this.mimeType!=null&&this.duration!=null&&this.metadata!=null&&this.hasKeyframesIndex!=null&&V&&J}},{key:"isSeekable",value:function(){return this.hasKeyframesIndex===!0}},{key:"getNearestKeyframe",value:function(V){if(this.keyframesIndex==null)return null;var J=this.keyframesIndex,te=this._search(J.times,V);return{index:te,milliseconds:J.times[te],fileposition:J.filepositions[te]}}},{key:"_search",value:function(V,J){var te=0,re=V.length-1,be=0,Pe=0,He=re;for(J<V[0]&&(te=0,Pe=He+1);Pe<=He;)if(be=Pe+Math.floor((He-Pe)/2),be===re||J>=V[be]&&J<V[be+1]){te=be;break}else V[be]<J?Pe=be+1:He=be-1;return te}}]),ue}(),z=B;function H(ue,ae,V){var J=ue;if(ae+V<J.length){for(;V--;)if((J[++ae]&192)!==128)return!1;return!0}else return!1}function ee(ue){for(var ae=[],V=ue,J=0,te=ue.length;J<te;){if(V[J]<128){ae.push(String.fromCharCode(V[J])),++J;continue}else if(!(V[J]<192)){if(V[J]<224){if(H(V,J,1)){var re=(V[J]&31)<<6|V[J+1]&63;if(re>=128){ae.push(String.fromCharCode(re&65535)),J+=2;continue}}}else if(V[J]<240){if(H(V,J,2)){var be=(V[J]&15)<<12|(V[J+1]&63)<<6|V[J+2]&63;if(be>=2048&&(be&63488)!==55296){ae.push(String.fromCharCode(be&65535)),J+=3;continue}}}else if(V[J]<248&&H(V,J,3)){var Pe=(V[J]&7)<<18|(V[J+1]&63)<<12|(V[J+2]&63)<<6|V[J+3]&63;if(Pe>65536&&Pe<1114112){Pe-=65536,ae.push(String.fromCharCode(Pe>>>10|55296)),ae.push(String.fromCharCode(Pe&1023|56320)),J+=4;continue}}}ae.push(String.fromCharCode(65533)),++J}return ae.join("")}var X=ee,me=function(){var ue=new ArrayBuffer(2);return new DataView(ue).setInt16(0,256,!0),new Int16Array(ue)[0]===256}(),je=function(){function ue(){Object(Z.a)(this,ue)}return Object(U.a)(ue,null,[{key:"parseScriptData",value:function(V,J,te){var re={};try{var be=ue.parseValue(V,J,te),Pe=ue.parseValue(V,J+be.size,te-be.size);re[be.data]=Pe.data}catch(He){g.e("AMF",He.toString())}return re}},{key:"parseObject",value:function(V,J,te){if(te<3)throw new l("Data not enough when parse ScriptDataObject");var re=ue.parseString(V,J,te),be=ue.parseValue(V,J+re.size,te-re.size),Pe=be.objectEnd;return{data:{name:re.data,value:be.data},size:re.size+be.size,objectEnd:Pe}}},{key:"parseVariable",value:function(V,J,te){return ue.parseObject(V,J,te)}},{key:"parseString",value:function(V,J,te){if(te<2)throw new l("Data not enough when parse String");var re=new DataView(V,J,te),be=re.getUint16(0,!me),Pe;return be>0?Pe=X(new Uint8Array(V,J+2,be)):Pe="",{data:Pe,size:2+be}}},{key:"parseLongString",value:function(V,J,te){if(te<4)throw new l("Data not enough when parse LongString");var re=new DataView(V,J,te),be=re.getUint32(0,!me),Pe;return be>0?Pe=X(new Uint8Array(V,J+4,be)):Pe="",{data:Pe,size:4+be}}},{key:"parseDate",value:function(V,J,te){if(te<10)throw new l("Data size invalid when parse Date");var re=new DataView(V,J,te),be=re.getFloat64(0,!me),Pe=re.getInt16(8,!me);return be+=Pe*60*1e3,{data:new Date(be),size:8+2}}},{key:"parseValue",value:function(V,J,te){if(te<1)throw new l("Data not enough when parse Value");var re=new DataView(V,J,te),be=1,Pe=re.getUint8(0),He,ft=!1;try{switch(Pe){case 0:He=re.getFloat64(1,!me),be+=8;break;case 1:{var _t=re.getUint8(1);He=!!_t,be+=1;break}case 2:{var Lt=ue.parseString(V,J+1,te-1);He=Lt.data,be+=Lt.size;break}case 3:{He={};var Vt=0;for((re.getUint32(te-4,!me)&16777215)===9&&(Vt=3);be<te-4;){var Ht=ue.parseObject(V,J+be,te-be-Vt);if(Ht.objectEnd)break;He[Ht.data.name]=Ht.data.value,be+=Ht.size}if(be<=te-3){var tt=re.getUint32(be-1,!me)&16777215;tt===9&&(be+=3)}break}case 8:{He={},be+=4;var jt=0;for((re.getUint32(te-4,!me)&16777215)===9&&(jt=3);be<te-8;){var Gt=ue.parseVariable(V,J+be,te-be-jt);if(Gt.objectEnd)break;He[Gt.data.name]=Gt.data.value,be+=Gt.size}if(be<=te-3){var Qt=re.getUint32(be-1,!me)&16777215;Qt===9&&(be+=3)}break}case 9:He=void 0,be=1,ft=!0;break;case 10:{He=[];var Tt=re.getUint32(1,!me);be+=4;for(var tn=0;tn<Tt;tn++){var nn=ue.parseValue(V,J+be,te-be);He.push(nn.data),be+=nn.size}break}case 11:{var Jt=ue.parseDate(V,J+1,te-1);He=Jt.data,be+=Jt.size;break}case 12:{var Zt=ue.parseString(V,J+1,te-1);He=Zt.data,be+=Zt.size;break}default:be=te,g.w("AMF","Unsupported AMF value type "+Pe)}}catch(fn){g.e("AMF",fn.toString())}return{data:He,size:be,objectEnd:ft}}}]),ue}(),Je=je,oe=function(){function ue(ae){Object(Z.a)(this,ue),this.TAG="ExpGolomb",this._buffer=ae,this._buffer_index=0,this._total_bytes=ae.byteLength,this._total_bits=ae.byteLength*8,this._current_word=0,this._current_word_bits_left=0}return Object(U.a)(ue,[{key:"destroy",value:function(){this._buffer=null}},{key:"_fillCurrentWord",value:function(){var V=this._total_bytes-this._buffer_index;if(V<=0)throw new l("ExpGolomb: _fillCurrentWord() but no bytes available");var J=Math.min(4,V),te=new Uint8Array(4);te.set(this._buffer.subarray(this._buffer_index,this._buffer_index+J)),this._current_word=new DataView(te.buffer).getUint32(0,!1),this._buffer_index+=J,this._current_word_bits_left=J*8}},{key:"readBits",value:function(V){if(V>32)throw new d("ExpGolomb: readBits() bits exceeded max 32bits!");if(V<=this._current_word_bits_left){var J=this._current_word>>>32-V;return this._current_word<<=V,this._current_word_bits_left-=V,J}var te=this._current_word_bits_left?this._current_word:0;te=te>>>32-this._current_word_bits_left;var re=V-this._current_word_bits_left;this._fillCurrentWord();var be=Math.min(re,this._current_word_bits_left),Pe=this._current_word>>>32-be;return this._current_word<<=be,this._current_word_bits_left-=be,te=te<<be|Pe,te}},{key:"readBool",value:function(){return this.readBits(1)===1}},{key:"readByte",value:function(){return this.readBits(8)}},{key:"_skipLeadingZero",value:function(){var V;for(V=0;V<this._current_word_bits_left;V++)if((this._current_word&2147483648>>>V)!==0)return this._current_word<<=V,this._current_word_bits_left-=V,V;return this._fillCurrentWord(),V+this._skipLeadingZero()}},{key:"readUEG",value:function(){var V=this._skipLeadingZero();return this.readBits(V+1)-1}},{key:"readSEG",value:function(){var V=this.readUEG();return V&1?V+1>>>1:-1*(V>>>1)}}]),ue}(),Ae=oe,ye=function(){function ue(){Object(Z.a)(this,ue)}return Object(U.a)(ue,null,[{key:"_ebsp2rbsp",value:function(V){for(var J=V,te=J.byteLength,re=new Uint8Array(te),be=0,Pe=0;Pe<te;Pe++){if(Pe>=2&&(J[Pe]===3&&J[Pe-1]===0&&J[Pe-2]===0))continue;re[be]=J[Pe],be++}return new Uint8Array(re.buffer,0,be)}},{key:"parseSPS",value:function(V){var J=ue._ebsp2rbsp(V),te=new Ae(J);te.readByte();var re=te.readByte();te.readByte();var be=te.readByte();te.readUEG();var Pe=ue.getProfileString(re),He=ue.getLevelString(be),ft=1,_t=420,Lt=[0,420,422,444],Vt=8;if((re===100||re===110||re===122||re===244||re===44||re===83||re===86||re===118||re===128||re===138||re===144)&&(ft=te.readUEG(),ft===3&&te.readBits(1),ft<=3&&(_t=Lt[ft]),Vt=te.readUEG()+8,te.readUEG(),te.readBits(1),te.readBool()))for(var Ht=ft!==3?8:12,tt=0;tt<Ht;tt++)te.readBool()&&(tt<6?ue._skipScalingList(te,16):ue._skipScalingList(te,64));te.readUEG();var jt=te.readUEG();if(jt===0)te.readUEG();else if(jt===1){te.readBits(1),te.readSEG(),te.readSEG();for(var Gt=te.readUEG(),Qt=0;Qt<Gt;Qt++)te.readSEG()}var Tt=te.readUEG();te.readBits(1);var tn=te.readUEG(),nn=te.readUEG(),Jt=te.readBits(1);Jt===0&&te.readBits(1),te.readBits(1);var Zt=0,fn=0,Tn=0,pn=0,Un=te.readBool();Un&&(Zt=te.readUEG(),fn=te.readUEG(),Tn=te.readUEG(),pn=te.readUEG());var ni=1,wn=1,Wn=0,hi=!0,di=0,ci=0,Zn=te.readBool();if(Zn){if(te.readBool()){var $t=te.readByte(),qt=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],hn=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];$t>0&&$t<16?(ni=qt[$t-1],wn=hn[$t-1]):$t===255&&(ni=te.readByte()<<8|te.readByte(),wn=te.readByte()<<8|te.readByte())}if(te.readBool()&&te.readBool(),te.readBool()&&(te.readBits(4),te.readBool()&&te.readBits(24)),te.readBool()&&(te.readUEG(),te.readUEG()),te.readBool()){var cn=te.readBits(32),Sn=te.readBits(32);hi=te.readBool(),di=Sn,ci=cn*2,Wn=di/ci}}var dn=1;(ni!==1||wn!==1)&&(dn=ni/wn);var Bt=0,ln=0;if(ft===0)Bt=1,ln=2-Jt;else{var xn=ft===3?1:2,an=ft===1?2:1;Bt=xn,ln=an*(2-Jt)}var _n=(tn+1)*16,Gn=(2-Jt)*((nn+1)*16);_n-=(Zt+fn)*Bt,Gn-=(Tn+pn)*ln;var mn=Math.ceil(_n*dn);return te.destroy(),te=null,{profile_string:Pe,level_string:He,bit_depth:Vt,ref_frames:Tt,chroma_format:_t,chroma_format_string:ue.getChromaFormatString(_t),frame_rate:{fixed:hi,fps:Wn,fps_den:ci,fps_num:di},sar_ratio:{width:ni,height:wn},codec_size:{width:_n,height:Gn},present_size:{width:mn,height:Gn}}}},{key:"_skipScalingList",value:function(V,J){for(var te=8,re=8,be=0,Pe=0;Pe<J;Pe++)re!==0&&(be=V.readSEG(),re=(te+be+256)%256),te=re===0?te:re}},{key:"getProfileString",value:function(V){switch(V){case 66:return"Baseline";case 77:return"Main";case 88:return"Extended";case 100:return"High";case 110:return"High10";case 122:return"High422";case 244:return"High444";default:return"Unknown"}}},{key:"getLevelString",value:function(V){return(V/10).toFixed(1)}},{key:"getChromaFormatString",value:function(V){switch(V){case 420:return"4:2:0";case 422:return"4:2:2";case 444:return"4:4:4";default:return"Unknown"}}}]),ue}(),Le=ye,We={OK:"OK",FORMAT_ERROR:"FormatError",FORMAT_UNSUPPORTED:"FormatUnsupported",CODEC_UNSUPPORTED:"CodecUnsupported"},Xe=We;function ct(ue){return ue>>>8&255|(ue&255)<<8}function lt(ue){return(ue&4278190080)>>>24|(ue&16711680)>>>8|(ue&65280)<<8|(ue&255)<<24}function St(ue,ae){return ue[ae]<<24|ue[ae+1]<<16|ue[ae+2]<<8|ue[ae+3]}var Dt=function(){function ue(ae,V){Object(Z.a)(this,ue),this.TAG="FLVDemuxer",this._config=V,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=ae.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=ae.hasAudioTrack,this._hasVideo=ae.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new z,this._mediaInfo.hasAudio=this._hasAudio,this._mediaInfo.hasVideo=this._hasVideo,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._naluLengthSize=4,this._timestampBase=0,this._timescale=1e3,this._duration=0,this._durationOverrided=!1,this._referenceFrameRate={fixed:!0,fps:23.976,fps_num:23976,fps_den:1e3},this._flvSoundRateTable=[5500,11025,22050,44100,48e3],this._mpegSamplingRates=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],this._mpegAudioV10SampleRateTable=[44100,48e3,32e3,0],this._mpegAudioV20SampleRateTable=[22050,24e3,16e3,0],this._mpegAudioV25SampleRateTable=[11025,12e3,8e3,0],this._mpegAudioL1BitRateTable=[0,32,64,96,128,160,192,224,256,288,320,352,384,416,448,-1],this._mpegAudioL2BitRateTable=[0,32,48,56,64,80,96,112,128,160,192,224,256,320,384,-1],this._mpegAudioL3BitRateTable=[0,32,40,48,56,64,80,96,112,128,160,192,224,256,320,-1],this._videoTrack={type:"video",id:1,sequenceNumber:0,samples:[],length:0},this._audioTrack={type:"audio",id:2,sequenceNumber:0,samples:[],length:0},this._littleEndian=function(){var J=new ArrayBuffer(2);return new DataView(J).setInt16(0,256,!0),new Int16Array(J)[0]===256}()}return Object(U.a)(ue,[{key:"destroy",value:function(){this._mediaInfo=null,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._videoTrack=null,this._audioTrack=null,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null}},{key:"bindDataSource",value:function(V){return V.onDataArrival=this.parseChunks.bind(this),this}},{key:"onTrackMetadata",get:function(){return this._onTrackMetadata},set:function(V){this._onTrackMetadata=V}},{key:"onMediaInfo",get:function(){return this._onMediaInfo},set:function(V){this._onMediaInfo=V}},{key:"onMetaDataArrived",get:function(){return this._onMetaDataArrived},set:function(V){this._onMetaDataArrived=V}},{key:"onScriptDataArrived",get:function(){return this._onScriptDataArrived},set:function(V){this._onScriptDataArrived=V}},{key:"onError",get:function(){return this._onError},set:function(V){this._onError=V}},{key:"onDataAvailable",get:function(){return this._onDataAvailable},set:function(V){this._onDataAvailable=V}},{key:"timestampBase",get:function(){return this._timestampBase},set:function(V){this._timestampBase=V}},{key:"overridedDuration",get:function(){return this._duration},set:function(V){this._durationOverrided=!0,this._duration=V,this._mediaInfo.duration=V}},{key:"overridedHasAudio",set:function(V){this._hasAudioFlagOverrided=!0,this._hasAudio=V,this._mediaInfo.hasAudio=V}},{key:"overridedHasVideo",set:function(V){this._hasVideoFlagOverrided=!0,this._hasVideo=V,this._mediaInfo.hasVideo=V}},{key:"resetMediaInfo",value:function(){this._mediaInfo=new z}},{key:"_isInitialMetadataDispatched",value:function(){return this._hasAudio&&this._hasVideo?this._audioInitialMetadataDispatched&&this._videoInitialMetadataDispatched:this._hasAudio&&!this._hasVideo?this._audioInitialMetadataDispatched:!this._hasAudio&&this._hasVideo?this._videoInitialMetadataDispatched:!1}},{key:"parseChunks",value:function(V,J){if(!this._onError||!this._onMediaInfo||!this._onTrackMetadata||!this._onDataAvailable)throw new l("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");var te=0,re=this._littleEndian;if(J===0)if(V.byteLength>13){var be=ue.probe(V);te=be.dataOffset}else return 0;if(this._firstParse){this._firstParse=!1,J+te!==this._dataOffset&&g.w(this.TAG,"First time parsing but chunk byteStart invalid!");var Pe=new DataView(V,te),He=Pe.getUint32(0,!re);He!==0&&g.w(this.TAG,"PrevTagSize0 !== 0 !!!"),te+=4}for(;te<V.byteLength;){this._dispatch=!0;var ft=new DataView(V,te);if(te+11+4>V.byteLength)break;var _t=ft.getUint8(0),Lt=ft.getUint32(0,!re)&16777215;if(te+11+Lt+4>V.byteLength)break;if(_t!==8&&_t!==9&&_t!==18){g.w(this.TAG,"Unsupported tag type ".concat(_t,", skipped")),te+=11+Lt+4;continue}var Vt=ft.getUint8(4),Ht=ft.getUint8(5),tt=ft.getUint8(6),jt=ft.getUint8(7),Gt=tt|Ht<<8|Vt<<16|jt<<24,Qt=ft.getUint32(7,!re)&16777215;Qt!==0&&g.w(this.TAG,"Meet tag which has StreamID != 0!");var Tt=te+11;switch(_t){case 8:this._parseAudioData(V,Tt,Lt,Gt);break;case 9:this._parseVideoData(V,Tt,Lt,Gt,J+te);break;case 18:this._parseScriptData(V,Tt,Lt);break}var tn=ft.getUint32(11+Lt,!re);tn!==11+Lt&&g.w(this.TAG,"Invalid PrevTagSize ".concat(tn)),te+=11+Lt+4}return this._isInitialMetadataDispatched()&&(this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack)),te}},{key:"_parseScriptData",value:function(V,J,te){var re=Je.parseScriptData(V,J,te);if(re.hasOwnProperty("onMetaData")){if(re.onMetaData==null||typeof re.onMetaData!="object"){g.w(this.TAG,"Invalid onMetaData structure!");return}this._metadata&&g.w(this.TAG,"Found another onMetaData tag!"),this._metadata=re;var be=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},be)),typeof be.hasAudio=="boolean"&&(this._hasAudioFlagOverrided===!1&&(this._hasAudio=be.hasAudio,this._mediaInfo.hasAudio=this._hasAudio)),typeof be.hasVideo=="boolean"&&(this._hasVideoFlagOverrided===!1&&(this._hasVideo=be.hasVideo,this._mediaInfo.hasVideo=this._hasVideo)),typeof be.audiodatarate=="number"&&(this._mediaInfo.audioDataRate=be.audiodatarate),typeof be.videodatarate=="number"&&(this._mediaInfo.videoDataRate=be.videodatarate),typeof be.width=="number"&&(this._mediaInfo.width=be.width),typeof be.height=="number"&&(this._mediaInfo.height=be.height),typeof be.duration=="number"){if(!this._durationOverrided){var Pe=Math.floor(be.duration*this._timescale);this._duration=Pe,this._mediaInfo.duration=Pe}}else this._mediaInfo.duration=0;if(typeof be.framerate=="number"){var He=Math.floor(be.framerate*1e3);if(He>0){var ft=He/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=ft,this._referenceFrameRate.fps_num=He,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=ft}}if(typeof be.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;var _t=be.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(_t),be.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=be,g.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(re).length>0&&(this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},re)))}},{key:"_parseKeyframesIndex",value:function(V){for(var J=[],te=[],re=1;re<V.times.length;re++){var be=this._timestampBase+Math.floor(V.times[re]*1e3);J.push(be),te.push(V.filepositions[re])}return{times:J,filepositions:te}}},{key:"_parseAudioData",value:function(V,J,te,re){if(te<=1){g.w(this.TAG,"Flv: Invalid audio packet, missing SoundData payload!");return}if(this._hasAudioFlagOverrided===!0&&this._hasAudio===!1)return;var be=this._littleEndian,Pe=new DataView(V,J,te),He=Pe.getUint8(0),ft=He>>>4;if(ft!==2&&ft!==10){this._onError(Xe.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+ft);return}var _t=0,Lt=(He&12)>>>2;if(Lt>=0&&Lt<=4)_t=this._flvSoundRateTable[Lt];else{this._onError(Xe.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+Lt);return}var Vt=(He&2)>>>1,Ht=He&1,tt=this._audioMetadata,jt=this._audioTrack;if(tt||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),tt=this._audioMetadata={},tt.type="audio",tt.id=jt.id,tt.timescale=this._timescale,tt.duration=this._duration,tt.audioSampleRate=_t,tt.channelCount=Ht===0?1:2),ft===10){var Gt=this._parseAACAudioData(V,J+1,te-1);if(Gt==null)return;if(Gt.packetType===0){tt.config&&g.w(this.TAG,"Found another AudioSpecificConfig!");var Qt=Gt.data;tt.audioSampleRate=Qt.samplingRate,tt.channelCount=Qt.channelCount,tt.codec=Qt.codec,tt.originalCodec=Qt.originalCodec,tt.config=Qt.config,tt.refSampleDuration=1024/tt.audioSampleRate*tt.timescale,g.v(this.TAG,"Parsed AudioSpecificConfig"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._audioInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("audio",tt);var Tt=this._mediaInfo;Tt.audioCodec=tt.originalCodec,Tt.audioSampleRate=tt.audioSampleRate,Tt.audioChannelCount=tt.channelCount,Tt.hasVideo?Tt.videoCodec!=null&&(Tt.mimeType='video/x-flv; codecs="'+Tt.videoCodec+","+Tt.audioCodec+'"'):Tt.mimeType='video/x-flv; codecs="'+Tt.audioCodec+'"',Tt.isComplete()&&this._onMediaInfo(Tt)}else if(Gt.packetType===1){var tn=this._timestampBase+re,nn={unit:Gt.data,length:Gt.data.byteLength,dts:tn,pts:tn};jt.samples.push(nn),jt.length+=Gt.data.length}else g.e(this.TAG,"Flv: Unsupported AAC data type ".concat(Gt.packetType))}else if(ft===2){if(!tt.codec){var Jt=this._parseMP3AudioData(V,J+1,te-1,!0);if(Jt==null)return;tt.audioSampleRate=Jt.samplingRate,tt.channelCount=Jt.channelCount,tt.codec=Jt.codec,tt.originalCodec=Jt.originalCodec,tt.refSampleDuration=1152/tt.audioSampleRate*tt.timescale,g.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",tt);var Zt=this._mediaInfo;Zt.audioCodec=tt.codec,Zt.audioSampleRate=tt.audioSampleRate,Zt.audioChannelCount=tt.channelCount,Zt.audioDataRate=Jt.bitRate,Zt.hasVideo?Zt.videoCodec!=null&&(Zt.mimeType='video/x-flv; codecs="'+Zt.videoCodec+","+Zt.audioCodec+'"'):Zt.mimeType='video/x-flv; codecs="'+Zt.audioCodec+'"',Zt.isComplete()&&this._onMediaInfo(Zt)}var fn=this._parseMP3AudioData(V,J+1,te-1,!1);if(fn==null)return;var Tn=this._timestampBase+re,pn={unit:fn,length:fn.byteLength,dts:Tn,pts:Tn};jt.samples.push(pn),jt.length+=fn.length}}},{key:"_parseAACAudioData",value:function(V,J,te){if(te<=1){g.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}var re={},be=new Uint8Array(V,J,te);return re.packetType=be[0],be[0]===0?re.data=this._parseAACAudioSpecificConfig(V,J+1,te-1):re.data=be.subarray(1),re}},{key:"_parseAACAudioSpecificConfig",value:function(V,J,te){var re=new Uint8Array(V,J,te),be=null,Pe=0,He=0,ft=null,_t=0,Lt=null;if(Pe=He=re[0]>>>3,_t=(re[0]&7)<<1|re[1]>>>7,_t<0||_t>=this._mpegSamplingRates.length){this._onError(Xe.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}var Vt=this._mpegSamplingRates[_t],Ht=(re[1]&120)>>>3;if(Ht<0||Ht>=8){this._onError(Xe.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}Pe===5&&(Lt=(re[1]&7)<<1|re[2]>>>7,ft=(re[2]&124)>>>2);var tt=self.navigator.userAgent.toLowerCase();return tt.indexOf("firefox")!==-1?_t>=6?(Pe=5,be=new Array(4),Lt=_t-3):(Pe=2,be=new Array(2),Lt=_t):tt.indexOf("android")!==-1?(Pe=2,be=new Array(2),Lt=_t):(Pe=5,Lt=_t,be=new Array(4),_t>=6?Lt=_t-3:Ht===1&&(Pe=2,be=new Array(2),Lt=_t)),be[0]=Pe<<3,be[0]|=(_t&15)>>>1,be[1]=(_t&15)<<7,be[1]|=(Ht&15)<<3,Pe===5&&(be[1]|=(Lt&15)>>>1,be[2]=(Lt&1)<<7,be[2]|=2<<2,be[3]=0),{config:be,samplingRate:Vt,channelCount:Ht,codec:"mp4a.40."+Pe,originalCodec:"mp4a.40."+He}}},{key:"_parseMP3AudioData",value:function(V,J,te,re){if(te<4){g.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}var be=this._littleEndian,Pe=new Uint8Array(V,J,te),He=null;if(re){if(Pe[0]!==255)return;var ft=Pe[1]>>>3&3,_t=(Pe[1]&6)>>1,Lt=(Pe[2]&240)>>>4,Vt=(Pe[2]&12)>>>2,Ht=Pe[3]>>>6&3,tt=Ht!==3?2:1,jt=0,Gt=0,Qt=34,Tt="mp3";switch(ft){case 0:jt=this._mpegAudioV25SampleRateTable[Vt];break;case 2:jt=this._mpegAudioV20SampleRateTable[Vt];break;case 3:jt=this._mpegAudioV10SampleRateTable[Vt];break}switch(_t){case 1:Qt=34,Lt<this._mpegAudioL3BitRateTable.length&&(Gt=this._mpegAudioL3BitRateTable[Lt]);break;case 2:Qt=33,Lt<this._mpegAudioL2BitRateTable.length&&(Gt=this._mpegAudioL2BitRateTable[Lt]);break;case 3:Qt=32,Lt<this._mpegAudioL1BitRateTable.length&&(Gt=this._mpegAudioL1BitRateTable[Lt]);break}He={bitRate:Gt,samplingRate:jt,channelCount:tt,codec:Tt,originalCodec:Tt}}else He=Pe;return He}},{key:"_parseVideoData",value:function(V,J,te,re,be){if(te<=1){g.w(this.TAG,"Flv: Invalid video packet, missing VideoData payload!");return}if(this._hasVideoFlagOverrided===!0&&this._hasVideo===!1)return;var Pe=new Uint8Array(V,J,te)[0],He=(Pe&240)>>>4,ft=Pe&15;if(ft!==7){this._onError(Xe.CODEC_UNSUPPORTED,"Flv: Unsupported codec in video frame: ".concat(ft));return}this._parseAVCVideoPacket(V,J+1,te-1,re,be,He)}},{key:"_parseAVCVideoPacket",value:function(V,J,te,re,be,Pe){if(te<4){g.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}var He=this._littleEndian,ft=new DataView(V,J,te),_t=ft.getUint8(0),Lt=ft.getUint32(0,!He)&16777215,Vt=Lt<<8>>8;if(_t===0)this._parseAVCDecoderConfigurationRecord(V,J+4,te-4);else if(_t===1)this._parseAVCVideoData(V,J+4,te-4,re,be,Pe,Vt);else if(!(_t===2)){this._onError(Xe.FORMAT_ERROR,"Flv: Invalid video packet type ".concat(_t));return}}},{key:"_parseAVCDecoderConfigurationRecord",value:function(V,J,te){if(te<7){g.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}var re=this._videoMetadata,be=this._videoTrack,Pe=this._littleEndian,He=new DataView(V,J,te);re?typeof re.avcc!="undefined"&&g.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(this._hasVideo===!1&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),re=this._videoMetadata={},re.type="video",re.id=be.id,re.timescale=this._timescale,re.duration=this._duration);var ft=He.getUint8(0),_t=He.getUint8(1),Lt=He.getUint8(2),Vt=He.getUint8(3);if(ft!==1||_t===0){this._onError(Xe.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(He.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(Xe.FORMAT_ERROR,"Flv: Strange NaluLengthSizeMinusOne: ".concat(this._naluLengthSize-1));return}var Ht=He.getUint8(5)&31;if(Ht===0){this._onError(Xe.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else Ht>1&&g.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ".concat(Ht));for(var tt=6,jt=0;jt<Ht;jt++){var Gt=He.getUint16(tt,!Pe);if(tt+=2,Gt===0)continue;var Qt=new Uint8Array(V,J+tt,Gt);tt+=Gt;var Tt=Le.parseSPS(Qt);if(jt!==0)continue;re.codecWidth=Tt.codec_size.width,re.codecHeight=Tt.codec_size.height,re.presentWidth=Tt.present_size.width,re.presentHeight=Tt.present_size.height,re.profile=Tt.profile_string,re.level=Tt.level_string,re.bitDepth=Tt.bit_depth,re.chromaFormat=Tt.chroma_format,re.sarRatio=Tt.sar_ratio,re.frameRate=Tt.frame_rate,(Tt.frame_rate.fixed===!1||Tt.frame_rate.fps_num===0||Tt.frame_rate.fps_den===0)&&(re.frameRate=this._referenceFrameRate);var tn=re.frameRate.fps_den,nn=re.frameRate.fps_num;re.refSampleDuration=re.timescale*(tn/nn);for(var Jt=Qt.subarray(1,4),Zt="avc1.",fn=0;fn<3;fn++){var Tn=Jt[fn].toString(16);Tn.length<2&&(Tn="0"+Tn),Zt+=Tn}re.codec=Zt;var pn=this._mediaInfo;pn.width=re.codecWidth,pn.height=re.codecHeight,pn.fps=re.frameRate.fps,pn.profile=re.profile,pn.level=re.level,pn.refFrames=Tt.ref_frames,pn.chromaFormat=Tt.chroma_format_string,pn.sarNum=re.sarRatio.width,pn.sarDen=re.sarRatio.height,pn.videoCodec=Zt,pn.hasAudio?pn.audioCodec!=null&&(pn.mimeType='video/x-flv; codecs="'+pn.videoCodec+","+pn.audioCodec+'"'):pn.mimeType='video/x-flv; codecs="'+pn.videoCodec+'"',pn.isComplete()&&this._onMediaInfo(pn)}var Un=He.getUint8(tt);if(Un===0){this._onError(Xe.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No PPS");return}else Un>1&&g.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ".concat(Un));tt++;for(var ni=0;ni<Un;ni++){var wn=He.getUint16(tt,!Pe);if(tt+=2,wn===0)continue;tt+=wn}re.avcc=new Uint8Array(te),re.avcc.set(new Uint8Array(V,J,te),0),g.v(this.TAG,"Parsed AVCDecoderConfigurationRecord"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._videoInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("video",re)}},{key:"_parseAVCVideoData",value:function(V,J,te,re,be,Pe,He){for(var ft=this._littleEndian,_t=new DataView(V,J,te),Lt=[],Vt=0,Ht=0,tt=this._naluLengthSize,jt=this._timestampBase+re,Gt=Pe===1;Ht<te;){if(Ht+4>=te){g.w(this.TAG,"Malformed Nalu near timestamp ".concat(jt,", offset = ").concat(Ht,", dataSize = ").concat(te));break}var Qt=_t.getUint32(Ht,!ft);if(tt===3&&(Qt>>>=8),Qt>te-tt){g.w(this.TAG,"Malformed Nalus near timestamp ".concat(jt,", NaluSize > DataSize!"));return}var Tt=_t.getUint8(Ht+tt)&31;Tt===5&&(Gt=!0);var tn=new Uint8Array(V,J+Ht,tt+Qt),nn={type:Tt,data:tn};Lt.push(nn),Vt+=tn.byteLength,Ht+=tt+Qt}if(Lt.length){var Jt=this._videoTrack,Zt={units:Lt,length:Vt,isKeyframe:Gt,dts:jt,cts:He,pts:jt+He};Gt&&(Zt.fileposition=be),Jt.samples.push(Zt),Jt.length+=Vt}}}],[{key:"probe",value:function(V){var J=new Uint8Array(V),te={match:!1};if(J[0]!==70||J[1]!==76||J[2]!==86||J[3]!==1)return te;var re=(J[4]&4)>>>2!==0,be=(J[4]&1)!==0,Pe=St(J,5);return Pe<9?te:{match:!0,consumed:Pe,dataOffset:Pe,hasAudioTrack:re,hasVideoTrack:be}}}]),ue}(),bt=Dt,ht=function(){function ue(){Object(Z.a)(this,ue)}return Object(U.a)(ue,null,[{key:"init",value:function(){ue.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[],".mp3":[]};for(var V in ue.types)ue.types.hasOwnProperty(V)&&(ue.types[V]=[V.charCodeAt(0),V.charCodeAt(1),V.charCodeAt(2),V.charCodeAt(3)]);var J=ue.constants={};J.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),J.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),J.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),J.STSC=J.STCO=J.STTS,J.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),J.HDLR_VIDEO=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),J.HDLR_AUDIO=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),J.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),J.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),J.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}},{key:"box",value:function(V){for(var J=8,te=null,re=Array.prototype.slice.call(arguments,1),be=re.length,Pe=0;Pe<be;Pe++)J+=re[Pe].byteLength;te=new Uint8Array(J),te[0]=J>>>24&255,te[1]=J>>>16&255,te[2]=J>>>8&255,te[3]=J&255,te.set(V,4);for(var He=8,ft=0;ft<be;ft++)te.set(re[ft],He),He+=re[ft].byteLength;return te}},{key:"generateInitSegment",value:function(V){var J=ue.box(ue.types.ftyp,ue.constants.FTYP),te=ue.moov(V),re=new Uint8Array(J.byteLength+te.byteLength);return re.set(J,0),re.set(te,J.byteLength),re}},{key:"moov",value:function(V){var J=ue.mvhd(V.timescale,V.duration),te=ue.trak(V),re=ue.mvex(V);return ue.box(ue.types.moov,J,te,re)}},{key:"mvhd",value:function(V,J){return ue.box(ue.types.mvhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,V>>>24&255,V>>>16&255,V>>>8&255,V&255,J>>>24&255,J>>>16&255,J>>>8&255,J&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]))}},{key:"trak",value:function(V){return ue.box(ue.types.trak,ue.tkhd(V),ue.mdia(V))}},{key:"tkhd",value:function(V){var J=V.id,te=V.duration,re=V.presentWidth,be=V.presentHeight;return ue.box(ue.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,J>>>24&255,J>>>16&255,J>>>8&255,J&255,0,0,0,0,te>>>24&255,te>>>16&255,te>>>8&255,te&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,re>>>8&255,re&255,0,0,be>>>8&255,be&255,0,0]))}},{key:"mdia",value:function(V){return ue.box(ue.types.mdia,ue.mdhd(V),ue.hdlr(V),ue.minf(V))}},{key:"mdhd",value:function(V){var J=V.timescale,te=V.duration;return ue.box(ue.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,J>>>24&255,J>>>16&255,J>>>8&255,J&255,te>>>24&255,te>>>16&255,te>>>8&255,te&255,85,196,0,0]))}},{key:"hdlr",value:function(V){var J=null;return V.type==="audio"?J=ue.constants.HDLR_AUDIO:J=ue.constants.HDLR_VIDEO,ue.box(ue.types.hdlr,J)}},{key:"minf",value:function(V){var J=null;return V.type==="audio"?J=ue.box(ue.types.smhd,ue.constants.SMHD):J=ue.box(ue.types.vmhd,ue.constants.VMHD),ue.box(ue.types.minf,J,ue.dinf(),ue.stbl(V))}},{key:"dinf",value:function(){var V=ue.box(ue.types.dinf,ue.box(ue.types.dref,ue.constants.DREF));return V}},{key:"stbl",value:function(V){var J=ue.box(ue.types.stbl,ue.stsd(V),ue.box(ue.types.stts,ue.constants.STTS),ue.box(ue.types.stsc,ue.constants.STSC),ue.box(ue.types.stsz,ue.constants.STSZ),ue.box(ue.types.stco,ue.constants.STCO));return J}},{key:"stsd",value:function(V){return V.type==="audio"?V.codec==="mp3"?ue.box(ue.types.stsd,ue.constants.STSD_PREFIX,ue.mp3(V)):ue.box(ue.types.stsd,ue.constants.STSD_PREFIX,ue.mp4a(V)):ue.box(ue.types.stsd,ue.constants.STSD_PREFIX,ue.avc1(V))}},{key:"mp3",value:function(V){var J=V.channelCount,te=V.audioSampleRate,re=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,J,0,16,0,0,0,0,te>>>8&255,te&255,0,0]);return ue.box(ue.types[".mp3"],re)}},{key:"mp4a",value:function(V){var J=V.channelCount,te=V.audioSampleRate,re=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,J,0,16,0,0,0,0,te>>>8&255,te&255,0,0]);return ue.box(ue.types.mp4a,re,ue.esds(V))}},{key:"esds",value:function(V){var J=V.config||[],te=J.length,re=new Uint8Array([0,0,0,0,3,23+te,0,1,0,4,15+te,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([te]).concat(J).concat([6,1,2]));return ue.box(ue.types.esds,re)}},{key:"avc1",value:function(V){var J=V.avcc,te=V.codecWidth,re=V.codecHeight,be=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,te>>>8&255,te&255,re>>>8&255,re&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,10,120,113,113,47,102,108,118,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return ue.box(ue.types.avc1,be,ue.box(ue.types.avcC,J))}},{key:"mvex",value:function(V){return ue.box(ue.types.mvex,ue.trex(V))}},{key:"trex",value:function(V){var J=V.id,te=new Uint8Array([0,0,0,0,J>>>24&255,J>>>16&255,J>>>8&255,J&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return ue.box(ue.types.trex,te)}},{key:"moof",value:function(V,J){return ue.box(ue.types.moof,ue.mfhd(V.sequenceNumber),ue.traf(V,J))}},{key:"mfhd",value:function(V){var J=new Uint8Array([0,0,0,0,V>>>24&255,V>>>16&255,V>>>8&255,V&255]);return ue.box(ue.types.mfhd,J)}},{key:"traf",value:function(V,J){var te=V.id,re=ue.box(ue.types.tfhd,new Uint8Array([0,0,0,0,te>>>24&255,te>>>16&255,te>>>8&255,te&255])),be=ue.box(ue.types.tfdt,new Uint8Array([0,0,0,0,J>>>24&255,J>>>16&255,J>>>8&255,J&255])),Pe=ue.sdtp(V),He=ue.trun(V,Pe.byteLength+16+16+8+16+8+8);return ue.box(ue.types.traf,re,be,He,Pe)}},{key:"sdtp",value:function(V){for(var J=V.samples||[],te=J.length,re=new Uint8Array(4+te),be=0;be<te;be++){var Pe=J[be].flags;re[be+4]=Pe.isLeading<<6|Pe.dependsOn<<4|Pe.isDependedOn<<2|Pe.hasRedundancy}return ue.box(ue.types.sdtp,re)}},{key:"trun",value:function(V,J){var te=V.samples||[],re=te.length,be=12+16*re,Pe=new Uint8Array(be);J+=8+be,Pe.set([0,0,15,1,re>>>24&255,re>>>16&255,re>>>8&255,re&255,J>>>24&255,J>>>16&255,J>>>8&255,J&255],0);for(var He=0;He<re;He++){var ft=te[He].duration,_t=te[He].size,Lt=te[He].flags,Vt=te[He].cts;Pe.set([ft>>>24&255,ft>>>16&255,ft>>>8&255,ft&255,_t>>>24&255,_t>>>16&255,_t>>>8&255,_t&255,Lt.isLeading<<2|Lt.dependsOn,Lt.isDependedOn<<6|Lt.hasRedundancy<<4|Lt.isNonSync,0,0,Vt>>>24&255,Vt>>>16&255,Vt>>>8&255,Vt&255],12+16*He)}return ue.box(ue.types.trun,Pe)}},{key:"mdat",value:function(V){return ue.box(ue.types.mdat,V)}}]),ue}();ht.init();var Ut=ht,Ft=function(){function ue(){Object(Z.a)(this,ue)}return Object(U.a)(ue,null,[{key:"getSilentFrame",value:function(V,J){if(V==="mp4a.40.2"){if(J===1)return new Uint8Array([0,200,0,128,35,128]);if(J===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(J===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(J===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(J===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(J===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(J===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(J===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(J===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null}}]),ue}(),ve=Ft,se=function ue(ae,V,J,te,re){Object(Z.a)(this,ue),this.dts=ae,this.pts=V,this.duration=J,this.originalDts=te,this.isSyncPoint=re,this.fileposition=null},le=function(){function ue(){Object(Z.a)(this,ue),this.beginDts=0,this.endDts=0,this.beginPts=0,this.endPts=0,this.originalBeginDts=0,this.originalEndDts=0,this.syncPoints=[],this.firstSample=null,this.lastSample=null}return Object(U.a)(ue,[{key:"appendSyncPoint",value:function(V){V.isSyncPoint=!0,this.syncPoints.push(V)}}]),ue}(),fe=function(){function ue(){Object(Z.a)(this,ue),this._list=[]}return Object(U.a)(ue,[{key:"clear",value:function(){this._list=[]}},{key:"appendArray",value:function(V){var J=this._list;if(V.length===0)return;J.length>0&&V[0].originalDts<J[J.length-1].originalDts&&this.clear(),Array.prototype.push.apply(J,V)}},{key:"getLastSyncPointBeforeDts",value:function(V){if(this._list.length==0)return null;var J=this._list,te=0,re=J.length-1,be=0,Pe=0,He=re;for(V<J[0].dts&&(te=0,Pe=He+1);Pe<=He;)if(be=Pe+Math.floor((He-Pe)/2),be===re||V>=J[be].dts&&V<J[be+1].dts){te=be;break}else J[be].dts<V?Pe=be+1:He=be-1;return this._list[te]}}]),ue}(),Re=function(){function ue(ae){Object(Z.a)(this,ue),this._type=ae,this._list=[],this._lastAppendLocation=-1}return Object(U.a)(ue,[{key:"type",get:function(){return this._type}},{key:"length",get:function(){return this._list.length}},{key:"isEmpty",value:function(){return this._list.length===0}},{key:"clear",value:function(){this._list=[],this._lastAppendLocation=-1}},{key:"_searchNearestSegmentBefore",value:function(V){var J=this._list;if(J.length===0)return-2;var te=J.length-1,re=0,be=0,Pe=te,He=0;if(V<J[0].originalBeginDts)return He=-1,He;for(;be<=Pe;)if(re=be+Math.floor((Pe-be)/2),re===te||V>J[re].lastSample.originalDts&&V<J[re+1].originalBeginDts){He=re;break}else J[re].originalBeginDts<V?be=re+1:Pe=re-1;return He}},{key:"_searchNearestSegmentAfter",value:function(V){return this._searchNearestSegmentBefore(V)+1}},{key:"append",value:function(V){var J=this._list,te=V,re=this._lastAppendLocation,be=0;re!==-1&&re<J.length&&te.originalBeginDts>=J[re].lastSample.originalDts&&(re===J.length-1||re<J.length-1&&te.originalBeginDts<J[re+1].originalBeginDts)?be=re+1:J.length>0&&(be=this._searchNearestSegmentBefore(te.originalBeginDts)+1),this._lastAppendLocation=be,this._list.splice(be,0,te)}},{key:"getLastSegmentBefore",value:function(V){var J=this._searchNearestSegmentBefore(V);return J>=0?this._list[J]:null}},{key:"getLastSampleBefore",value:function(V){var J=this.getLastSegmentBefore(V);return J!=null?J.lastSample:null}},{key:"getLastSyncPointBefore",value:function(V){for(var J=this._searchNearestSegmentBefore(V),te=this._list[J].syncPoints;te.length===0&&J>0;)J--,te=this._list[J].syncPoints;return te.length>0?te[te.length-1]:null}}]),ue}(),ce=function(){function ue(ae){Object(Z.a)(this,ue),this.TAG="MP4Remuxer",this._config=ae,this._isLive=ae.isLive===!0,this._dtsBase=-1,this._dtsBaseInited=!1,this._audioDtsBase=Infinity,this._videoDtsBase=Infinity,this._audioNextDts=void 0,this._videoNextDts=void 0,this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList=new Re("audio"),this._videoSegmentInfoList=new Re("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!!(x.chrome&&(x.version.major<50||x.version.major===50&&x.version.build<2661)),this._fillSilentAfterSeek=x.msedge||x.msie,this._mp3UseMpegAudio=!x.firefox,this._fillAudioTimestampGap=this._config.fixAudioTimestampGap}return Object(U.a)(ue,[{key:"destroy",value:function(){this._dtsBase=-1,this._dtsBaseInited=!1,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList.clear(),this._audioSegmentInfoList=null,this._videoSegmentInfoList.clear(),this._videoSegmentInfoList=null,this._onInitSegment=null,this._onMediaSegment=null}},{key:"bindDataSource",value:function(V){return V.onDataAvailable=this.remux.bind(this),V.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this}},{key:"onInitSegment",get:function(){return this._onInitSegment},set:function(V){this._onInitSegment=V}},{key:"onMediaSegment",get:function(){return this._onMediaSegment},set:function(V){this._onMediaSegment=V}},{key:"insertDiscontinuity",value:function(){this._audioNextDts=this._videoNextDts=void 0}},{key:"seek",value:function(V){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()}},{key:"remux",value:function(V,J){if(!this._onMediaSegment)throw new l("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(V,J),this._remuxVideo(J),this._remuxAudio(V)}},{key:"_onTrackMetadataReceived",value:function(V,J){var te=null,re="mp4",be=J.codec;if(V==="audio")this._audioMeta=J,J.codec==="mp3"&&this._mp3UseMpegAudio?(re="mpeg",be="",te=new Uint8Array):te=Ut.generateInitSegment(J);else if(V==="video")this._videoMeta=J,te=Ut.generateInitSegment(J);else return;if(!this._onInitSegment)throw new l("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(V,{type:V,data:te.buffer,codec:be,container:"".concat(V,"/").concat(re),mediaDuration:J.duration})}},{key:"_calculateDtsBase",value:function(V,J){if(this._dtsBaseInited)return;V.samples&&V.samples.length&&(this._audioDtsBase=V.samples[0].dts),J.samples&&J.samples.length&&(this._videoDtsBase=J.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0}},{key:"flushStashedSamples",value:function(){var V=this._videoStashedLastSample,J=this._audioStashedLastSample,te={type:"video",id:1,sequenceNumber:0,samples:[],length:0};V!=null&&(te.samples.push(V),te.length=V.length);var re={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};J!=null&&(re.samples.push(J),re.length=J.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(te,!0),this._remuxAudio(re,!0)}},{key:"_remuxAudio",value:function(V,J){if(this._audioMeta==null)return;var te=V,re=te.samples,be=void 0,Pe=-1,He=-1,ft=-1,_t=this._audioMeta.refSampleDuration,Lt=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,Vt=this._dtsBaseInited&&this._audioNextDts===void 0,Ht=!1;if(!re||re.length===0)return;if(re.length===1&&!J)return;var tt=0,jt=null,Gt=0;Lt?(tt=0,Gt=te.length):(tt=8,Gt=8+te.length);var Qt=null;if(re.length>1&&(Qt=re.pop(),Gt-=Qt.length),this._audioStashedLastSample!=null){var Tt=this._audioStashedLastSample;this._audioStashedLastSample=null,re.unshift(Tt),Gt+=Tt.length}Qt!=null&&(this._audioStashedLastSample=Qt);var tn=re[0].dts-this._dtsBase;if(this._audioNextDts)be=tn-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())be=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&(this._audioMeta.originalCodec!=="mp3"&&(Ht=!0));else{var nn=this._audioSegmentInfoList.getLastSampleBefore(tn);if(nn!=null){var Jt=tn-(nn.originalDts+nn.duration);Jt<=3&&(Jt=0);var Zt=nn.dts+nn.duration+Jt;be=tn-Zt}else be=0}if(Ht){var fn=tn-be,Tn=this._videoSegmentInfoList.getLastSegmentBefore(tn);if(Tn!=null&&Tn.beginDts<fn){var pn=ve.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);if(pn){var Un=Tn.beginDts,ni=fn-Tn.beginDts;g.v(this.TAG,"InsertPrefixSilentAudio: dts: ".concat(Un,", duration: ").concat(ni)),re.unshift({unit:pn,dts:Un,pts:Un}),Gt+=pn.byteLength}}else Ht=!1}for(var wn=[],Wn=0;Wn<re.length;Wn++){var hi=re[Wn],di=hi.unit,ci=hi.dts-this._dtsBase,Zn=ci-be;Pe===-1&&(Pe=Zn);var $t=0;if(Wn!==re.length-1){var qt=re[Wn+1].dts-this._dtsBase-be;$t=qt-Zn}else if(Qt!=null){var hn=Qt.dts-this._dtsBase-be;$t=hn-Zn}else wn.length>=1?$t=wn[wn.length-1].duration:$t=Math.floor(_t);var cn=!1,Sn=null;if($t>_t*1.5&&this._audioMeta.codec!=="mp3"&&this._fillAudioTimestampGap&&!x.safari){cn=!0;var dn=Math.abs($t-_t),Bt=Math.ceil(dn/_t),ln=Zn+_t;g.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync.
`+"dts: ".concat(Zn+$t," ms, expected: ").concat(Zn+Math.round(_t)," ms, ")+"delta: ".concat(Math.round(dn)," ms, generate: ").concat(Bt," frames"));var xn=ve.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);xn==null&&(g.w(this.TAG,"Unable to generate silent frame for "+"".concat(this._audioMeta.originalCodec," with ").concat(this._audioMeta.channelCount," channels, repeat last frame")),xn=di),Sn=[];for(var an=0;an<Bt;an++){var _n=Math.round(ln);if(Sn.length>0){var Gn=Sn[Sn.length-1];Gn.duration=_n-Gn.dts}var mn={dts:_n,pts:_n,cts:0,unit:xn,size:xn.byteLength,duration:0,originalDts:ci,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};Sn.push(mn),Gt+=mn.size,ln+=_t}var qn=Sn[Sn.length-1];qn.duration=Zn+$t-qn.dts,$t=Math.round(_t)}wn.push({dts:Zn,pts:Zn,cts:0,unit:hi.unit,size:hi.unit.byteLength,duration:$t,originalDts:ci,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),cn&&wn.push.apply(wn,Sn)}Lt?jt=new Uint8Array(Gt):(jt=new Uint8Array(Gt),jt[0]=Gt>>>24&255,jt[1]=Gt>>>16&255,jt[2]=Gt>>>8&255,jt[3]=Gt&255,jt.set(Ut.types.mdat,4));for(var zn=0;zn<wn.length;zn++){var Kn=wn[zn].unit;jt.set(Kn,tt),tt+=Kn.byteLength}var An=wn[wn.length-1];He=An.dts+An.duration,this._audioNextDts=He;var Bn=new le;Bn.beginDts=Pe,Bn.endDts=He,Bn.beginPts=Pe,Bn.endPts=He,Bn.originalBeginDts=wn[0].originalDts,Bn.originalEndDts=An.originalDts+An.duration,Bn.firstSample=new se(wn[0].dts,wn[0].pts,wn[0].duration,wn[0].originalDts,!1),Bn.lastSample=new se(An.dts,An.pts,An.duration,An.originalDts,!1),this._isLive||this._audioSegmentInfoList.append(Bn),te.samples=wn,te.sequenceNumber++;var Mn=null;Lt?Mn=new Uint8Array:Mn=Ut.moof(te,Pe),te.samples=[],te.length=0;var Vn={type:"audio",data:this._mergeBoxes(Mn,jt).buffer,sampleCount:wn.length,info:Bn};Lt&&Vt&&(Vn.timestampOffset=Pe),this._onMediaSegment("audio",Vn)}},{key:"_remuxVideo",value:function(V,J){if(this._videoMeta==null)return;var te=V,re=te.samples,be=void 0,Pe=-1,He=-1,ft=-1,_t=-1;if(!re||re.length===0)return;if(re.length===1&&!J)return;var Lt=8,Vt=null,Ht=8+V.length,tt=null;if(re.length>1&&(tt=re.pop(),Ht-=tt.length),this._videoStashedLastSample!=null){var jt=this._videoStashedLastSample;this._videoStashedLastSample=null,re.unshift(jt),Ht+=jt.length}tt!=null&&(this._videoStashedLastSample=tt);var Gt=re[0].dts-this._dtsBase;if(this._videoNextDts)be=Gt-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())be=0;else{var Qt=this._videoSegmentInfoList.getLastSampleBefore(Gt);if(Qt!=null){var Tt=Gt-(Qt.originalDts+Qt.duration);Tt<=3&&(Tt=0);var tn=Qt.dts+Qt.duration+Tt;be=Gt-tn}else be=0}for(var nn=new le,Jt=[],Zt=0;Zt<re.length;Zt++){var fn=re[Zt],Tn=fn.dts-this._dtsBase,pn=fn.isKeyframe,Un=Tn-be,ni=fn.cts,wn=Un+ni;Pe===-1&&(Pe=Un,ft=wn);var Wn=0;if(Zt!==re.length-1){var hi=re[Zt+1].dts-this._dtsBase-be;Wn=hi-Un}else if(tt!=null){var di=tt.dts-this._dtsBase-be;Wn=di-Un}else Jt.length>=1?Wn=Jt[Jt.length-1].duration:Wn=Math.floor(this._videoMeta.refSampleDuration);if(pn){var ci=new se(Un,wn,Wn,fn.dts,!0);ci.fileposition=fn.fileposition,nn.appendSyncPoint(ci)}Jt.push({dts:Un,pts:wn,cts:ni,units:fn.units,size:fn.length,isKeyframe:pn,duration:Wn,originalDts:Tn,flags:{isLeading:0,dependsOn:pn?2:1,isDependedOn:pn?1:0,hasRedundancy:0,isNonSync:pn?0:1}})}Vt=new Uint8Array(Ht),Vt[0]=Ht>>>24&255,Vt[1]=Ht>>>16&255,Vt[2]=Ht>>>8&255,Vt[3]=Ht&255,Vt.set(Ut.types.mdat,4);for(var Zn=0;Zn<Jt.length;Zn++)for(var $t=Jt[Zn].units;$t.length;){var qt=$t.shift(),hn=qt.data;Vt.set(hn,Lt),Lt+=hn.byteLength}var cn=Jt[Jt.length-1];if(He=cn.dts+cn.duration,_t=cn.pts+cn.duration,this._videoNextDts=He,nn.beginDts=Pe,nn.endDts=He,nn.beginPts=ft,nn.endPts=_t,nn.originalBeginDts=Jt[0].originalDts,nn.originalEndDts=cn.originalDts+cn.duration,nn.firstSample=new se(Jt[0].dts,Jt[0].pts,Jt[0].duration,Jt[0].originalDts,Jt[0].isKeyframe),nn.lastSample=new se(cn.dts,cn.pts,cn.duration,cn.originalDts,cn.isKeyframe),this._isLive||this._videoSegmentInfoList.append(nn),te.samples=Jt,te.sequenceNumber++,this._forceFirstIDR){var Sn=Jt[0].flags;Sn.dependsOn=2,Sn.isNonSync=0}var dn=Ut.moof(te,Pe);te.samples=[],te.length=0,this._onMediaSegment("video",{type:"video",data:this._mergeBoxes(dn,Vt).buffer,sampleCount:Jt.length,info:nn})}},{key:"_mergeBoxes",value:function(V,J){var te=new Uint8Array(V.byteLength+J.byteLength);return te.set(V,0),te.set(J,V.byteLength),te}}]),ue}(),he=ce,Se={IO_ERROR:"io_error",DEMUX_ERROR:"demux_error",INIT_SEGMENT:"init_segment",MEDIA_SEGMENT:"media_segment",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info",RECOMMEND_SEEKPOINT:"recommend_seekpoint"},we=Se,Ze=function(){function ue(ae,V){Object(Z.a)(this,ue),this.TAG="TransmuxingController",this._emitter=new u.a,this._config=V,ae.segments||(ae.segments=[{duration:ae.duration,filesize:ae.filesize,url:ae.url}]),typeof ae.cors!="boolean"&&(ae.cors=!0),typeof ae.withCredentials!="boolean"&&(ae.withCredentials=!1),this._mediaDataSource=ae,this._currentSegmentIndex=0;var J=0;this._mediaDataSource.segments.forEach(function(te){te.timestampBase=J,J+=te.duration,te.cors=ae.cors,te.withCredentials=ae.withCredentials,V.referrerPolicy&&(te.referrerPolicy=V.referrerPolicy)}),!isNaN(J)&&this._mediaDataSource.duration!==J&&(this._mediaDataSource.duration=J),this._mediaInfo=null,this._demuxer=null,this._remuxer=null,this._ioctl=null,this._pendingSeekTime=null,this._pendingResolveSeekPoint=null,this._statisticsReporter=null}return Object(U.a)(ue,[{key:"destroy",value:function(){this._mediaInfo=null,this._mediaDataSource=null,this._statisticsReporter&&this._disableStatisticsReporter(),this._ioctl&&(this._ioctl.destroy(),this._ioctl=null),this._demuxer&&(this._demuxer.destroy(),this._demuxer=null),this._remuxer&&(this._remuxer.destroy(),this._remuxer=null),this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(V,J){this._emitter.addListener(V,J)}},{key:"off",value:function(V,J){this._emitter.removeListener(V,J)}},{key:"start",value:function(){this._loadSegment(0),this._enableStatisticsReporter()}},{key:"_loadSegment",value:function(V,J){this._currentSegmentIndex=V;var te=this._mediaDataSource.segments[V],re=this._ioctl=new Q(te,this._config,V);re.onError=this._onIOException.bind(this),re.onSeeked=this._onIOSeeked.bind(this),re.onComplete=this._onIOComplete.bind(this),re.onRedirect=this._onIORedirect.bind(this),re.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),J?this._demuxer.bindDataSource(this._ioctl):re.onDataArrival=this._onInitChunkArrival.bind(this),re.open(J)}},{key:"stop",value:function(){this._internalAbort(),this._disableStatisticsReporter()}},{key:"_internalAbort",value:function(){this._ioctl&&(this._ioctl.destroy(),this._ioctl=null)}},{key:"pause",value:function(){this._ioctl&&this._ioctl.isWorking()&&(this._ioctl.pause(),this._disableStatisticsReporter())}},{key:"resume",value:function(){this._ioctl&&this._ioctl.isPaused()&&(this._ioctl.resume(),this._enableStatisticsReporter())}},{key:"seek",value:function(V){if(this._mediaInfo==null||!this._mediaInfo.isSeekable())return;var J=this._searchSegmentIndexContains(V);if(J===this._currentSegmentIndex){var te=this._mediaInfo.segments[J];if(te==null)this._pendingSeekTime=V;else{var re=te.getNearestKeyframe(V);this._remuxer.seek(re.milliseconds),this._ioctl.seek(re.fileposition),this._pendingResolveSeekPoint=re.milliseconds}}else{var be=this._mediaInfo.segments[J];if(be==null)this._pendingSeekTime=V,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(J);else{var Pe=be.getNearestKeyframe(V);this._internalAbort(),this._remuxer.seek(V),this._remuxer.insertDiscontinuity(),this._demuxer.resetMediaInfo(),this._demuxer.timestampBase=this._mediaDataSource.segments[J].timestampBase,this._loadSegment(J,Pe.fileposition),this._pendingResolveSeekPoint=Pe.milliseconds,this._reportSegmentMediaInfo(J)}}this._enableStatisticsReporter()}},{key:"_searchSegmentIndexContains",value:function(V){for(var J=this._mediaDataSource.segments,te=J.length-1,re=0;re<J.length;re++)if(V<J[re].timestampBase){te=re-1;break}return te}},{key:"_onInitChunkArrival",value:function(V,J){var te=this,re=null,be=0;if(J>0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,be=this._demuxer.parseChunks(V,J);else if((re=bt.probe(V)).match){this._demuxer=new bt(re,this._config),this._remuxer||(this._remuxer=new he(this._config));var Pe=this._mediaDataSource;Pe.duration!=null&&!isNaN(Pe.duration)&&(this._demuxer.overridedDuration=Pe.duration),typeof Pe.hasAudio=="boolean"&&(this._demuxer.overridedHasAudio=Pe.hasAudio),typeof Pe.hasVideo=="boolean"&&(this._demuxer.overridedHasVideo=Pe.hasVideo),this._demuxer.timestampBase=Pe.segments[this._currentSegmentIndex].timestampBase,this._demuxer.onError=this._onDemuxException.bind(this),this._demuxer.onMediaInfo=this._onMediaInfo.bind(this),this._demuxer.onMetaDataArrived=this._onMetaDataArrived.bind(this),this._demuxer.onScriptDataArrived=this._onScriptDataArrived.bind(this),this._remuxer.bindDataSource(this._demuxer.bindDataSource(this._ioctl)),this._remuxer.onInitSegment=this._onRemuxerInitSegmentArrival.bind(this),this._remuxer.onMediaSegment=this._onRemuxerMediaSegmentArrival.bind(this),be=this._demuxer.parseChunks(V,J)}else re=null,g.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(function(){te._internalAbort()}),this._emitter.emit(we.DEMUX_ERROR,Xe.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),be=0;return be}},{key:"_onMediaInfo",value:function(V){var J=this;this._mediaInfo==null&&(this._mediaInfo=Object.assign({},V),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,z.prototype));var te=Object.assign({},V);Object.setPrototypeOf(te,z.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=te,this._reportSegmentMediaInfo(this._currentSegmentIndex),this._pendingSeekTime!=null&&Promise.resolve().then(function(){var re=J._pendingSeekTime;J._pendingSeekTime=null,J.seek(re)})}},{key:"_onMetaDataArrived",value:function(V){this._emitter.emit(we.METADATA_ARRIVED,V)}},{key:"_onScriptDataArrived",value:function(V){this._emitter.emit(we.SCRIPTDATA_ARRIVED,V)}},{key:"_onIOSeeked",value:function(){this._remuxer.insertDiscontinuity()}},{key:"_onIOComplete",value:function(V){var J=V,te=J+1;te<this._mediaDataSource.segments.length?(this._internalAbort(),this._remuxer.flushStashedSamples(),this._loadSegment(te)):(this._remuxer.flushStashedSamples(),this._emitter.emit(we.LOADING_COMPLETE),this._disableStatisticsReporter())}},{key:"_onIORedirect",value:function(V){var J=this._ioctl.extraData;this._mediaDataSource.segments[J].redirectedURL=V}},{key:"_onIORecoveredEarlyEof",value:function(){this._emitter.emit(we.RECOVERED_EARLY_EOF)}},{key:"_onIOException",value:function(V,J){g.e(this.TAG,"IOException: type = ".concat(V,", code = ").concat(J.code,", msg = ").concat(J.msg)),this._emitter.emit(we.IO_ERROR,V,J),this._disableStatisticsReporter()}},{key:"_onDemuxException",value:function(V,J){g.e(this.TAG,"DemuxException: type = ".concat(V,", info = ").concat(J)),this._emitter.emit(we.DEMUX_ERROR,V,J)}},{key:"_onRemuxerInitSegmentArrival",value:function(V,J){this._emitter.emit(we.INIT_SEGMENT,V,J)}},{key:"_onRemuxerMediaSegmentArrival",value:function(V,J){if(this._pendingSeekTime!=null)return;if(this._emitter.emit(we.MEDIA_SEGMENT,V,J),this._pendingResolveSeekPoint!=null&&V==="video"){var te=J.info.syncPoints,re=this._pendingResolveSeekPoint;this._pendingResolveSeekPoint=null,x.safari&&te.length>0&&te[0].originalDts===re&&(re=te[0].pts),this._emitter.emit(we.RECOMMEND_SEEKPOINT,re)}}},{key:"_enableStatisticsReporter",value:function(){this._statisticsReporter==null&&(this._statisticsReporter=self.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval))}},{key:"_disableStatisticsReporter",value:function(){this._statisticsReporter&&(self.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}},{key:"_reportSegmentMediaInfo",value:function(V){var J=this._mediaInfo.segments[V],te=Object.assign({},J);te.duration=this._mediaInfo.duration,te.segmentCount=this._mediaInfo.segmentCount,delete te.segments,delete te.keyframesIndex,this._emitter.emit(we.MEDIA_INFO,te)}},{key:"_reportStatisticsInfo",value:function(){var V={};V.url=this._ioctl.currentURL,V.hasRedirect=this._ioctl.hasRedirect,V.hasRedirect&&(V.redirectedURL=this._ioctl.currentRedirectedURL),V.speed=this._ioctl.currentSpeed,V.loaderType=this._ioctl.loaderType,V.currentSegmentIndex=this._currentSegmentIndex,V.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(we.STATISTICS_INFO,V)}}]),ue}(),Ye=Ze,it=function(ae){var V="TransmuxingWorker",J=null,te=Gt.bind(this);N.install(),ae.addEventListener("message",function(Qt){switch(Qt.data.cmd){case"init":J=new Ye(Qt.data.param[0],Qt.data.param[1]),J.on(we.IO_ERROR,Ht.bind(this)),J.on(we.DEMUX_ERROR,tt.bind(this)),J.on(we.INIT_SEGMENT,re.bind(this)),J.on(we.MEDIA_SEGMENT,be.bind(this)),J.on(we.LOADING_COMPLETE,Pe.bind(this)),J.on(we.RECOVERED_EARLY_EOF,He.bind(this)),J.on(we.MEDIA_INFO,ft.bind(this)),J.on(we.METADATA_ARRIVED,_t.bind(this)),J.on(we.SCRIPTDATA_ARRIVED,Lt.bind(this)),J.on(we.STATISTICS_INFO,Vt.bind(this)),J.on(we.RECOMMEND_SEEKPOINT,jt.bind(this));break;case"destroy":J&&(J.destroy(),J=null),ae.postMessage({msg:"destroyed"});break;case"start":J.start();break;case"stop":J.stop();break;case"seek":J.seek(Qt.data.param);break;case"pause":J.pause();break;case"resume":J.resume();break;case"logging_config":{var Tt=Qt.data.param;ne.applyConfig(Tt),Tt.enableCallback===!0?ne.addLogListener(te):ne.removeLogListener(te);break}}});function re(Qt,Tt){var tn={msg:we.INIT_SEGMENT,data:{type:Qt,data:Tt}};ae.postMessage(tn,[Tt.data])}function be(Qt,Tt){var tn={msg:we.MEDIA_SEGMENT,data:{type:Qt,data:Tt}};ae.postMessage(tn,[Tt.data])}function Pe(){var Qt={msg:we.LOADING_COMPLETE};ae.postMessage(Qt)}function He(){var Qt={msg:we.RECOVERED_EARLY_EOF};ae.postMessage(Qt)}function ft(Qt){var Tt={msg:we.MEDIA_INFO,data:Qt};ae.postMessage(Tt)}function _t(Qt){var Tt={msg:we.METADATA_ARRIVED,data:Qt};ae.postMessage(Tt)}function Lt(Qt){var Tt={msg:we.SCRIPTDATA_ARRIVED,data:Qt};ae.postMessage(Tt)}function Vt(Qt){var Tt={msg:we.STATISTICS_INFO,data:Qt};ae.postMessage(Tt)}function Ht(Qt,Tt){ae.postMessage({msg:we.IO_ERROR,data:{type:Qt,info:Tt}})}function tt(Qt,Tt){ae.postMessage({msg:we.DEMUX_ERROR,data:{type:Qt,info:Tt}})}function jt(Qt){ae.postMessage({msg:we.RECOMMEND_SEEKPOINT,data:Qt})}function Gt(Qt,Tt){ae.postMessage({msg:"logcat_callback",data:{type:Qt,logcat:Tt}})}},Et=it,Pt=function(){function ue(ae,V){if(Object(Z.a)(this,ue),this.TAG="Transmuxer",this._emitter=new u.a,V.enableWorker&&typeof Worker!="undefined")try{var J=_("0r65");this._worker=J(Et),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[ae,V]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},ne.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:ne.getConfig()})}catch(re){g.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new Ye(ae,V)}else this._controller=new Ye(ae,V);if(this._controller){var te=this._controller;te.on(we.IO_ERROR,this._onIOError.bind(this)),te.on(we.DEMUX_ERROR,this._onDemuxError.bind(this)),te.on(we.INIT_SEGMENT,this._onInitSegment.bind(this)),te.on(we.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),te.on(we.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),te.on(we.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),te.on(we.MEDIA_INFO,this._onMediaInfo.bind(this)),te.on(we.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),te.on(we.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),te.on(we.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),te.on(we.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}return Object(U.a)(ue,[{key:"destroy",value:function(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),ne.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(V,J){this._emitter.addListener(V,J)}},{key:"off",value:function(V,J){this._emitter.removeListener(V,J)}},{key:"hasWorker",value:function(){return this._worker!=null}},{key:"open",value:function(){this._worker?this._worker.postMessage({cmd:"start"}):this._controller.start()}},{key:"close",value:function(){this._worker?this._worker.postMessage({cmd:"stop"}):this._controller.stop()}},{key:"seek",value:function(V){this._worker?this._worker.postMessage({cmd:"seek",param:V}):this._controller.seek(V)}},{key:"pause",value:function(){this._worker?this._worker.postMessage({cmd:"pause"}):this._controller.pause()}},{key:"resume",value:function(){this._worker?this._worker.postMessage({cmd:"resume"}):this._controller.resume()}},{key:"_onInitSegment",value:function(V,J){var te=this;Promise.resolve().then(function(){te._emitter.emit(we.INIT_SEGMENT,V,J)})}},{key:"_onMediaSegment",value:function(V,J){var te=this;Promise.resolve().then(function(){te._emitter.emit(we.MEDIA_SEGMENT,V,J)})}},{key:"_onLoadingComplete",value:function(){var V=this;Promise.resolve().then(function(){V._emitter.emit(we.LOADING_COMPLETE)})}},{key:"_onRecoveredEarlyEof",value:function(){var V=this;Promise.resolve().then(function(){V._emitter.emit(we.RECOVERED_EARLY_EOF)})}},{key:"_onMediaInfo",value:function(V){var J=this;Promise.resolve().then(function(){J._emitter.emit(we.MEDIA_INFO,V)})}},{key:"_onMetaDataArrived",value:function(V){var J=this;Promise.resolve().then(function(){J._emitter.emit(we.METADATA_ARRIVED,V)})}},{key:"_onScriptDataArrived",value:function(V){var J=this;Promise.resolve().then(function(){J._emitter.emit(we.SCRIPTDATA_ARRIVED,V)})}},{key:"_onStatisticsInfo",value:function(V){var J=this;Promise.resolve().then(function(){J._emitter.emit(we.STATISTICS_INFO,V)})}},{key:"_onIOError",value:function(V,J){var te=this;Promise.resolve().then(function(){te._emitter.emit(we.IO_ERROR,V,J)})}},{key:"_onDemuxError",value:function(V,J){var te=this;Promise.resolve().then(function(){te._emitter.emit(we.DEMUX_ERROR,V,J)})}},{key:"_onRecommendSeekpoint",value:function(V){var J=this;Promise.resolve().then(function(){J._emitter.emit(we.RECOMMEND_SEEKPOINT,V)})}},{key:"_onLoggingConfigChanged",value:function(V){this._worker&&this._worker.postMessage({cmd:"logging_config",param:V})}},{key:"_onWorkerMessage",value:function(V){var J=V.data,te=J.data;if(J.msg==="destroyed"||this._workerDestroying){this._workerDestroying=!1,this._worker.terminate(),this._worker=null;return}switch(J.msg){case we.INIT_SEGMENT:case we.MEDIA_SEGMENT:this._emitter.emit(J.msg,te.type,te.data);break;case we.LOADING_COMPLETE:case we.RECOVERED_EARLY_EOF:this._emitter.emit(J.msg);break;case we.MEDIA_INFO:Object.setPrototypeOf(te,z.prototype),this._emitter.emit(J.msg,te);break;case we.METADATA_ARRIVED:case we.SCRIPTDATA_ARRIVED:case we.STATISTICS_INFO:this._emitter.emit(J.msg,te);break;case we.IO_ERROR:case we.DEMUX_ERROR:this._emitter.emit(J.msg,te.type,te.info);break;case we.RECOMMEND_SEEKPOINT:this._emitter.emit(J.msg,te);break;case"logcat_callback":g.emitter.emit("log",te.type,te.logcat);break;default:break}}}]),ue}(),zt=Pt,Rt={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"},rt=Rt,st=function(){function ue(ae){Object(Z.a)(this,ue),this.TAG="MSEController",this._config=ae,this._emitter=new u.a,this._config.isLive&&this._config.autoCleanupSourceBuffer==null&&(this._config.autoCleanupSourceBuffer=!0),this.e={onSourceOpen:this._onSourceOpen.bind(this),onSourceEnded:this._onSourceEnded.bind(this),onSourceClose:this._onSourceClose.bind(this),onSourceBufferError:this._onSourceBufferError.bind(this),onSourceBufferUpdateEnd:this._onSourceBufferUpdateEnd.bind(this)},this._mediaSource=null,this._mediaSourceObjectURL=null,this._mediaElement=null,this._isBufferFull=!1,this._hasPendingEos=!1,this._requireSetMediaDuration=!1,this._pendingMediaDuration=0,this._pendingSourceBufferInit=[],this._mimeTypes={video:null,audio:null},this._sourceBuffers={video:null,audio:null},this._lastInitSegments={video:null,audio:null},this._pendingSegments={video:[],audio:[]},this._pendingRemoveRanges={video:[],audio:[]},this._idrList=new fe}return Object(U.a)(ue,[{key:"destroy",value:function(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(V,J){this._emitter.addListener(V,J)}},{key:"off",value:function(V,J){this._emitter.removeListener(V,J)}},{key:"attachMediaElement",value:function(V){if(this._mediaSource)throw new l("MediaSource has been attached to an HTMLMediaElement!");var J=this._mediaSource=new window.MediaSource;J.addEventListener("sourceopen",this.e.onSourceOpen),J.addEventListener("sourceended",this.e.onSourceEnded),J.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=V,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),V.src=this._mediaSourceObjectURL}},{key:"detachMediaElement",value:function(){if(this._mediaSource){var V=this._mediaSource;for(var J in this._sourceBuffers){var te=this._pendingSegments[J];te.splice(0,te.length),this._pendingSegments[J]=null,this._pendingRemoveRanges[J]=null,this._lastInitSegments[J]=null;var re=this._sourceBuffers[J];if(re){if(V.readyState!=="closed"){try{V.removeSourceBuffer(re)}catch(be){g.e(this.TAG,be.message)}re.removeEventListener("error",this.e.onSourceBufferError),re.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[J]=null,this._sourceBuffers[J]=null}}if(V.readyState==="open")try{V.endOfStream()}catch(be){g.e(this.TAG,be.message)}V.removeEventListener("sourceopen",this.e.onSourceOpen),V.removeEventListener("sourceended",this.e.onSourceEnded),V.removeEventListener("sourceclose",this.e.onSourceClose),this._pendingSourceBufferInit=[],this._isBufferFull=!1,this._idrList.clear(),this._mediaSource=null}this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement=null),this._mediaSourceObjectURL&&(window.URL.revokeObjectURL(this._mediaSourceObjectURL),this._mediaSourceObjectURL=null)}},{key:"appendInitSegment",value:function(V,J){if(!this._mediaSource||this._mediaSource.readyState!=="open"){this._pendingSourceBufferInit.push(V),this._pendingSegments[V.type].push(V);return}var te=V,re="".concat(te.container);te.codec&&te.codec.length>0&&(re+=";codecs=".concat(te.codec));var be=!1;if(g.v(this.TAG,"Received Initialization Segment, mimeType: "+re),this._lastInitSegments[te.type]=te,re!==this._mimeTypes[te.type]){if(this._mimeTypes[te.type])g.v(this.TAG,"Notice: ".concat(te.type," mimeType changed, origin: ").concat(this._mimeTypes[te.type],", target: ").concat(re));else{be=!0;try{var Pe=this._sourceBuffers[te.type]=this._mediaSource.addSourceBuffer(re);Pe.addEventListener("error",this.e.onSourceBufferError),Pe.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(He){g.e(this.TAG,He.message),this._emitter.emit(rt.ERROR,{code:He.code,msg:He.message});return}}this._mimeTypes[te.type]=re}J||this._pendingSegments[te.type].push(te),be||this._sourceBuffers[te.type]&&!this._sourceBuffers[te.type].updating&&this._doAppendSegments(),x.safari&&te.container==="audio/mpeg"&&te.mediaDuration>0&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=te.mediaDuration/1e3,this._updateMediaSourceDuration())}},{key:"appendMediaSegment",value:function(V){var J=V;this._pendingSegments[J.type].push(J),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();var te=this._sourceBuffers[J.type];te&&!te.updating&&!this._hasPendingRemoveRanges()&&this._doAppendSegments()}},{key:"seek",value:function(V){for(var J in this._sourceBuffers){if(!this._sourceBuffers[J])continue;var te=this._sourceBuffers[J];if(this._mediaSource.readyState==="open")try{te.abort()}catch(_t){g.e(this.TAG,_t.message)}this._idrList.clear();var re=this._pendingSegments[J];if(re.splice(0,re.length),this._mediaSource.readyState==="closed")continue;for(var be=0;be<te.buffered.length;be++){var Pe=te.buffered.start(be),He=te.buffered.end(be);this._pendingRemoveRanges[J].push({start:Pe,end:He})}if(te.updating||this._doRemoveRanges(),x.safari){var ft=this._lastInitSegments[J];ft&&(this._pendingSegments[J].push(ft),te.updating||this._doAppendSegments())}}}},{key:"endOfStream",value:function(){var V=this._mediaSource,J=this._sourceBuffers;if(!V||V.readyState!=="open"){V&&V.readyState==="closed"&&this._hasPendingSegments()&&(this._hasPendingEos=!0);return}J.video&&J.video.updating||J.audio&&J.audio.updating?this._hasPendingEos=!0:(this._hasPendingEos=!1,V.endOfStream())}},{key:"getNearestKeyframe",value:function(V){return this._idrList.getLastSyncPointBeforeDts(V)}},{key:"_needCleanupSourceBuffer",value:function(){if(!this._config.autoCleanupSourceBuffer)return!1;var V=this._mediaElement.currentTime;for(var J in this._sourceBuffers){var te=this._sourceBuffers[J];if(te){var re=te.buffered;if(re.length>=1&&V-re.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1}},{key:"_doCleanupSourceBuffer",value:function(){var V=this._mediaElement.currentTime;for(var J in this._sourceBuffers){var te=this._sourceBuffers[J];if(te){for(var re=te.buffered,be=!1,Pe=0;Pe<re.length;Pe++){var He=re.start(Pe),ft=re.end(Pe);if(He<=V&&V<ft+3){if(V-He>=this._config.autoCleanupMaxBackwardDuration){be=!0;var _t=V-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[J].push({start:He,end:_t})}}else ft<V&&(be=!0,this._pendingRemoveRanges[J].push({start:He,end:ft}))}be&&!te.updating&&this._doRemoveRanges()}}}},{key:"_updateMediaSourceDuration",value:function(){var V=this._sourceBuffers;if(this._mediaElement.readyState===0||this._mediaSource.readyState!=="open")return;if(V.video&&V.video.updating||V.audio&&V.audio.updating)return;var J=this._mediaSource.duration,te=this._pendingMediaDuration;te>0&&(isNaN(J)||te>J)&&(g.v(this.TAG,"Update MediaSource duration from ".concat(J," to ").concat(te)),this._mediaSource.duration=te),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}},{key:"_doRemoveRanges",value:function(){for(var V in this._pendingRemoveRanges){if(!this._sourceBuffers[V]||this._sourceBuffers[V].updating)continue;for(var J=this._sourceBuffers[V],te=this._pendingRemoveRanges[V];te.length&&!J.updating;){var re=te.shift();J.remove(re.start,re.end)}}}},{key:"_doAppendSegments",value:function(){var V=this._pendingSegments;for(var J in V){if(!this._sourceBuffers[J]||this._sourceBuffers[J].updating)continue;if(V[J].length>0){var te=V[J].shift();if(te.timestampOffset){var re=this._sourceBuffers[J].timestampOffset,be=te.timestampOffset/1e3,Pe=Math.abs(re-be);Pe>.1&&(g.v(this.TAG,"Update MPEG audio timestampOffset from ".concat(re," to ").concat(be)),this._sourceBuffers[J].timestampOffset=be),delete te.timestampOffset}if(!te.data||te.data.byteLength===0)continue;try{this._sourceBuffers[J].appendBuffer(te.data),this._isBufferFull=!1,J==="video"&&te.hasOwnProperty("info")&&this._idrList.appendArray(te.info.syncPoints)}catch(He){this._pendingSegments[J].unshift(te),He.code===22?(this._isBufferFull||this._emitter.emit(rt.BUFFER_FULL),this._isBufferFull=!0):(g.e(this.TAG,He.message),this._emitter.emit(rt.ERROR,{code:He.code,msg:He.message}))}}}}},{key:"_onSourceOpen",value:function(){if(g.v(this.TAG,"MediaSource onSourceOpen"),this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._pendingSourceBufferInit.length>0)for(var V=this._pendingSourceBufferInit;V.length;){var J=V.shift();this.appendInitSegment(J,!0)}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(rt.SOURCE_OPEN)}},{key:"_onSourceEnded",value:function(){g.v(this.TAG,"MediaSource onSourceEnded")}},{key:"_onSourceClose",value:function(){g.v(this.TAG,"MediaSource onSourceClose"),this._mediaSource&&this.e!=null&&(this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._mediaSource.removeEventListener("sourceended",this.e.onSourceEnded),this._mediaSource.removeEventListener("sourceclose",this.e.onSourceClose))}},{key:"_hasPendingSegments",value:function(){var V=this._pendingSegments;return V.video.length>0||V.audio.length>0}},{key:"_hasPendingRemoveRanges",value:function(){var V=this._pendingRemoveRanges;return V.video.length>0||V.audio.length>0}},{key:"_onSourceBufferUpdateEnd",value:function(){this._requireSetMediaDuration?this._updateMediaSourceDuration():this._hasPendingRemoveRanges()?this._doRemoveRanges():this._hasPendingSegments()?this._doAppendSegments():this._hasPendingEos&&this.endOfStream(),this._emitter.emit(rt.UPDATE_END)}},{key:"_onSourceBufferError",value:function(V){g.e(this.TAG,"SourceBuffer Error: ".concat(V))}}]),ue}(),qe=st,Ce={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},Be={NETWORK_EXCEPTION:p.EXCEPTION,NETWORK_STATUS_CODE_INVALID:p.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:p.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:p.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:Xe.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:Xe.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:Xe.CODEC_UNSUPPORTED},dt=function(){function ue(ae,V){if(Object(Z.a)(this,ue),this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new u.a,this._config=Ee(),typeof V=="object"&&Object.assign(this._config,V),ae.type.toLowerCase()!=="flv")throw new d("FlvPlayer requires an flv MediaDataSource input!");ae.isLive===!0&&(this._config.isLive=!0),this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this),onvSeeking:this._onvSeeking.bind(this),onvCanPlay:this._onvCanPlay.bind(this),onvStalled:this._onvStalled.bind(this),onvProgress:this._onvProgress.bind(this)},self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now,this._pendingSeekTime=null,this._requestSetTime=!1,this._seekpointRecord=null,this._progressChecker=null,this._mediaDataSource=ae,this._mediaElement=null,this._msectl=null,this._transmuxer=null,this._mseSourceOpened=!1,this._hasPendingLoad=!1,this._receivedCanPlay=!1,this._mediaInfo=null,this._statisticsInfo=null;var J=x.chrome&&(x.version.major<50||x.version.major===50&&x.version.build<2661);this._alwaysSeekKeyframe=!!(J||x.msedge||x.msie),this._alwaysSeekKeyframe&&(this._config.accurateSeek=!1)}return Object(U.a)(ue,[{key:"destroy",value:function(){this._progressChecker!=null&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._transmuxer&&this.unload(),this._mediaElement&&this.detachMediaElement(),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(V,J){var te=this;V===Ue.MEDIA_INFO?this._mediaInfo!=null&&Promise.resolve().then(function(){te._emitter.emit(Ue.MEDIA_INFO,te.mediaInfo)}):V===Ue.STATISTICS_INFO&&(this._statisticsInfo!=null&&Promise.resolve().then(function(){te._emitter.emit(Ue.STATISTICS_INFO,te.statisticsInfo)})),this._emitter.addListener(V,J)}},{key:"off",value:function(V,J){this._emitter.removeListener(V,J)}},{key:"attachMediaElement",value:function(V){var J=this;if(this._mediaElement=V,V.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),V.addEventListener("seeking",this.e.onvSeeking),V.addEventListener("canplay",this.e.onvCanPlay),V.addEventListener("stalled",this.e.onvStalled),V.addEventListener("progress",this.e.onvProgress),this._msectl=new qe(this._config),this._msectl.on(rt.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(rt.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(rt.SOURCE_OPEN,function(){J._mseSourceOpened=!0,J._hasPendingLoad&&(J._hasPendingLoad=!1,J.load())}),this._msectl.on(rt.ERROR,function(te){J._emitter.emit(Ue.ERROR,Ce.MEDIA_ERROR,Be.MEDIA_MSE_ERROR,te)}),this._msectl.attachMediaElement(V),this._pendingSeekTime!=null)try{V.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(te){}}},{key:"detachMediaElement",value:function(){this._mediaElement&&(this._msectl.detachMediaElement(),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement.removeEventListener("seeking",this.e.onvSeeking),this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay),this._mediaElement.removeEventListener("stalled",this.e.onvStalled),this._mediaElement.removeEventListener("progress",this.e.onvProgress),this._mediaElement=null),this._msectl&&(this._msectl.destroy(),this._msectl=null)}},{key:"load",value:function(){var V=this;if(!this._mediaElement)throw new l("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new l("FlvPlayer.load() has been called, please call unload() first!");if(this._hasPendingLoad)return;if(this._config.deferLoadAfterSourceOpen&&this._mseSourceOpened===!1){this._hasPendingLoad=!0;return}this._mediaElement.readyState>0&&(this._requestSetTime=!0,this._mediaElement.currentTime=0),this._transmuxer=new zt(this._mediaDataSource,this._config),this._transmuxer.on(we.INIT_SEGMENT,function(J,te){V._msectl.appendInitSegment(te)}),this._transmuxer.on(we.MEDIA_SEGMENT,function(J,te){if(V._msectl.appendMediaSegment(te),V._config.lazyLoad&&!V._config.isLive){var re=V._mediaElement.currentTime;te.info.endDts>=(re+V._config.lazyLoadMaxDuration)*1e3&&(V._progressChecker==null&&(g.v(V.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),V._suspendTransmuxer()))}}),this._transmuxer.on(we.LOADING_COMPLETE,function(){V._msectl.endOfStream(),V._emitter.emit(Ue.LOADING_COMPLETE)}),this._transmuxer.on(we.RECOVERED_EARLY_EOF,function(){V._emitter.emit(Ue.RECOVERED_EARLY_EOF)}),this._transmuxer.on(we.IO_ERROR,function(J,te){V._emitter.emit(Ue.ERROR,Ce.NETWORK_ERROR,J,te)}),this._transmuxer.on(we.DEMUX_ERROR,function(J,te){V._emitter.emit(Ue.ERROR,Ce.MEDIA_ERROR,J,{code:-1,msg:te})}),this._transmuxer.on(we.MEDIA_INFO,function(J){V._mediaInfo=J,V._emitter.emit(Ue.MEDIA_INFO,Object.assign({},J))}),this._transmuxer.on(we.METADATA_ARRIVED,function(J){V._emitter.emit(Ue.METADATA_ARRIVED,J)}),this._transmuxer.on(we.SCRIPTDATA_ARRIVED,function(J){V._emitter.emit(Ue.SCRIPTDATA_ARRIVED,J)}),this._transmuxer.on(we.STATISTICS_INFO,function(J){V._statisticsInfo=V._fillStatisticsInfo(J),V._emitter.emit(Ue.STATISTICS_INFO,Object.assign({},V._statisticsInfo))}),this._transmuxer.on(we.RECOMMEND_SEEKPOINT,function(J){V._mediaElement&&!V._config.accurateSeek&&(V._requestSetTime=!0,V._mediaElement.currentTime=J/1e3)}),this._transmuxer.open()}},{key:"unload",value:function(){this._mediaElement&&this._mediaElement.pause(),this._msectl&&this._msectl.seek(0),this._transmuxer&&(this._transmuxer.close(),this._transmuxer.destroy(),this._transmuxer=null)}},{key:"play",value:function(){return this._mediaElement.play()}},{key:"pause",value:function(){this._mediaElement.pause()}},{key:"type",get:function(){return this._type}},{key:"buffered",get:function(){return this._mediaElement.buffered}},{key:"duration",get:function(){return this._mediaElement.duration}},{key:"volume",get:function(){return this._mediaElement.volume},set:function(V){this._mediaElement.volume=V}},{key:"muted",get:function(){return this._mediaElement.muted},set:function(V){this._mediaElement.muted=V}},{key:"currentTime",get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(V){this._mediaElement?this._internalSeek(V):this._pendingSeekTime=V}},{key:"mediaInfo",get:function(){return Object.assign({},this._mediaInfo)}},{key:"statisticsInfo",get:function(){return this._statisticsInfo==null&&(this._statisticsInfo={}),this._statisticsInfo=this._fillStatisticsInfo(this._statisticsInfo),Object.assign({},this._statisticsInfo)}},{key:"_fillStatisticsInfo",value:function(V){if(V.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return V;var J=!0,te=0,re=0;if(this._mediaElement.getVideoPlaybackQuality){var be=this._mediaElement.getVideoPlaybackQuality();te=be.totalVideoFrames,re=be.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(te=this._mediaElement.webkitDecodedFrameCount,re=this._mediaElement.webkitDroppedFrameCount):J=!1;return J&&(V.decodedFrames=te,V.droppedFrames=re),V}},{key:"_onmseUpdateEnd",value:function(){if(!this._config.lazyLoad||this._config.isLive)return;for(var V=this._mediaElement.buffered,J=this._mediaElement.currentTime,te=0,re=0,be=0;be<V.length;be++){var Pe=V.start(be),He=V.end(be);if(Pe<=J&&J<He){te=Pe,re=He;break}}re>=J+this._config.lazyLoadMaxDuration&&this._progressChecker==null&&(g.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}},{key:"_onmseBufferFull",value:function(){g.v(this.TAG,"MSE SourceBuffer is full, suspend transmuxing task"),this._progressChecker==null&&this._suspendTransmuxer()}},{key:"_suspendTransmuxer",value:function(){this._transmuxer&&(this._transmuxer.pause(),this._progressChecker==null&&(this._progressChecker=window.setInterval(this._checkProgressAndResume.bind(this),1e3)))}},{key:"_checkProgressAndResume",value:function(){for(var V=this._mediaElement.currentTime,J=this._mediaElement.buffered,te=!1,re=0;re<J.length;re++){var be=J.start(re),Pe=J.end(re);if(V>=be&&V<Pe){V>=Pe-this._config.lazyLoadRecoverDuration&&(te=!0);break}}te&&(window.clearInterval(this._progressChecker),this._progressChecker=null,te&&(g.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))}},{key:"_isTimepointBuffered",value:function(V){for(var J=this._mediaElement.buffered,te=0;te<J.length;te++){var re=J.start(te),be=J.end(te);if(V>=re&&V<be)return!0}return!1}},{key:"_internalSeek",value:function(V){var J=this._isTimepointBuffered(V),te=!1,re=0;if(V<1&&this._mediaElement.buffered.length>0){var be=this._mediaElement.buffered.start(0);(be<1&&V<be||x.safari)&&(te=!0,re=x.safari?.1:be)}if(te)this._requestSetTime=!0,this._mediaElement.currentTime=re;else if(J){if(!this._alwaysSeekKeyframe)this._requestSetTime=!0,this._mediaElement.currentTime=V;else{var Pe=this._msectl.getNearestKeyframe(Math.floor(V*1e3));this._requestSetTime=!0,Pe!=null?this._mediaElement.currentTime=Pe.dts/1e3:this._mediaElement.currentTime=V}this._progressChecker!=null&&this._checkProgressAndResume()}else this._progressChecker!=null&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._msectl.seek(V),this._transmuxer.seek(Math.floor(V*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=V)}},{key:"_checkAndApplyUnbufferedSeekpoint",value:function(){if(this._seekpointRecord)if(this._seekpointRecord.recordTime<=this._now()-100){var V=this._mediaElement.currentTime;this._seekpointRecord=null,this._isTimepointBuffered(V)||(this._progressChecker!=null&&(window.clearTimeout(this._progressChecker),this._progressChecker=null),this._msectl.seek(V),this._transmuxer.seek(Math.floor(V*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=V))}else window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}},{key:"_checkAndResumeStuckPlayback",value:function(V){var J=this._mediaElement;if(V||!this._receivedCanPlay||J.readyState<2){var te=J.buffered;te.length>0&&J.currentTime<te.start(0)&&(g.w(this.TAG,"Playback seems stuck at ".concat(J.currentTime,", seek to ").concat(te.start(0))),this._requestSetTime=!0,this._mediaElement.currentTime=te.start(0),this._mediaElement.removeEventListener("progress",this.e.onvProgress))}else this._mediaElement.removeEventListener("progress",this.e.onvProgress)}},{key:"_onvLoadedMetadata",value:function(V){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null)}},{key:"_onvSeeking",value:function(V){var J=this._mediaElement.currentTime,te=this._mediaElement.buffered;if(this._requestSetTime){this._requestSetTime=!1;return}if(J<1&&te.length>0){var re=te.start(0);if(re<1&&J<re||x.safari){this._requestSetTime=!0,this._mediaElement.currentTime=x.safari?.1:re;return}}if(this._isTimepointBuffered(J)){if(this._alwaysSeekKeyframe){var be=this._msectl.getNearestKeyframe(Math.floor(J*1e3));be!=null&&(this._requestSetTime=!0,this._mediaElement.currentTime=be.dts/1e3)}this._progressChecker!=null&&this._checkProgressAndResume();return}this._seekpointRecord={seekPoint:J,recordTime:this._now()},window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}},{key:"_onvCanPlay",value:function(V){this._receivedCanPlay=!0,this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay)}},{key:"_onvStalled",value:function(V){this._checkAndResumeStuckPlayback(!0)}},{key:"_onvProgress",value:function(V){this._checkAndResumeStuckPlayback()}}]),ue}(),ut=dt,It=function(){function ue(ae,V){if(Object(Z.a)(this,ue),this.TAG="NativePlayer",this._type="NativePlayer",this._emitter=new u.a,this._config=Ee(),typeof V=="object"&&Object.assign(this._config,V),ae.type.toLowerCase()==="flv")throw new d("NativePlayer does't support flv MediaDataSource input!");if(ae.hasOwnProperty("segments"))throw new d("NativePlayer(".concat(ae.type,") doesn't support multipart playback!"));this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this)},this._pendingSeekTime=null,this._statisticsReporter=null,this._mediaDataSource=ae,this._mediaElement=null}return Object(U.a)(ue,[{key:"destroy",value:function(){this._mediaElement&&(this.unload(),this.detachMediaElement()),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(V,J){var te=this;V===Ue.MEDIA_INFO?this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(function(){te._emitter.emit(Ue.MEDIA_INFO,te.mediaInfo)}):V===Ue.STATISTICS_INFO&&(this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(function(){te._emitter.emit(Ue.STATISTICS_INFO,te.statisticsInfo)})),this._emitter.addListener(V,J)}},{key:"off",value:function(V,J){this._emitter.removeListener(V,J)}},{key:"attachMediaElement",value:function(V){if(this._mediaElement=V,V.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._pendingSeekTime!=null)try{V.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(J){}}},{key:"detachMediaElement",value:function(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement=null),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}},{key:"load",value:function(){if(!this._mediaElement)throw new l("HTMLMediaElement must be attached before load()!");this._mediaElement.src=this._mediaDataSource.url,this._mediaElement.readyState>0&&(this._mediaElement.currentTime=0),this._mediaElement.preload="auto",this._mediaElement.load(),this._statisticsReporter=window.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval)}},{key:"unload",value:function(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src")),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}},{key:"play",value:function(){return this._mediaElement.play()}},{key:"pause",value:function(){this._mediaElement.pause()}},{key:"type",get:function(){return this._type}},{key:"buffered",get:function(){return this._mediaElement.buffered}},{key:"duration",get:function(){return this._mediaElement.duration}},{key:"volume",get:function(){return this._mediaElement.volume},set:function(V){this._mediaElement.volume=V}},{key:"muted",get:function(){return this._mediaElement.muted},set:function(V){this._mediaElement.muted=V}},{key:"currentTime",get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(V){this._mediaElement?this._mediaElement.currentTime=V:this._pendingSeekTime=V}},{key:"mediaInfo",get:function(){var V=this._mediaElement instanceof HTMLAudioElement?"audio/":"video/",J={mimeType:V+this._mediaDataSource.type};return this._mediaElement&&(J.duration=Math.floor(this._mediaElement.duration*1e3),this._mediaElement instanceof HTMLVideoElement&&(J.width=this._mediaElement.videoWidth,J.height=this._mediaElement.videoHeight)),J}},{key:"statisticsInfo",get:function(){var V={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return V;var J=!0,te=0,re=0;if(this._mediaElement.getVideoPlaybackQuality){var be=this._mediaElement.getVideoPlaybackQuality();te=be.totalVideoFrames,re=be.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(te=this._mediaElement.webkitDecodedFrameCount,re=this._mediaElement.webkitDroppedFrameCount):J=!1;return J&&(V.decodedFrames=te,V.droppedFrames=re),V}},{key:"_onvLoadedMetadata",value:function(V){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(Ue.MEDIA_INFO,this.mediaInfo)}},{key:"_reportStatisticsInfo",value:function(){this._emitter.emit(Ue.STATISTICS_INFO,this.statisticsInfo)}}]),ue}(),wt=It;N.install();function gt(ue,ae){var V=ue;if(V==null||typeof V!="object")throw new d("MediaDataSource must be an javascript object!");if(!V.hasOwnProperty("type"))throw new d("MediaDataSource must has type field to indicate video file type!");switch(V.type){case"flv":return new ut(V,ae);default:return new wt(V,ae)}}function Nt(){return De.supportMSEH264Playback()}function Mt(){return De.getFeatureList()}var nt={};nt.createPlayer=gt,nt.isSupported=Nt,nt.getFeatureList=Mt,nt.BaseLoader=n,nt.LoaderStatus=s,nt.LoaderErrors=p,nt.Events=Ue,nt.ErrorTypes=Ce,nt.ErrorDetails=Be,nt.FlvPlayer=ut,nt.NativePlayer=wt,nt.LoggingControl=ne,Object.defineProperty(nt,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var xt=q.a=nt},Gev7:function(ge,q,_){var Z=_("bYtY"),U=_("K2GJ"),L=_("1bdT"),N=_("ni6a");function c(M){M=M||{},L.call(this,M);for(var g in M)M.hasOwnProperty(g)&&g!=="style"&&(this[g]=M[g]);this.style=new U(M.style,this),this._rect=null,this.__clipPaths=null}c.prototype={constructor:c,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,progressive:!1,incremental:!1,globalScaleRatio:1,beforeBrush:function(M){},afterBrush:function(M){},brush:function(M,g){},getBoundingRect:function(){},contain:function(M,g){return this.rectContain(M,g)},traverse:function(M,g){M.call(g,this)},rectContain:function(M,g){var e=this.transformCoordToLocal(M,g),m=this.getBoundingRect();return m.contain(e[0],e[1])},dirty:function(){this.__dirty=this.__dirtyText=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(M){return this.animate("style",M)},attrKV:function(M,g){M!=="style"?L.prototype.attrKV.call(this,M,g):this.style.set(g)},setStyle:function(M,g){return this.style.set(M,g),this.dirty(!1),this},useStyle:function(M){return this.style=new U(M,this),this.dirty(!1),this},calculateTextPosition:null},Z.inherits(c,L),Z.mixin(c,N);var u=c;ge.exports=u},Gytx:function(ge,q){ge.exports=function(Z,U,L,N){var c=L?L.call(N,Z,U):void 0;if(c!==void 0)return!!c;if(Z===U)return!0;if(typeof Z!="object"||!Z||typeof U!="object"||!U)return!1;var u=Object.keys(Z),M=Object.keys(U);if(u.length!==M.length)return!1;for(var g=Object.prototype.hasOwnProperty.bind(U),e=0;e<u.length;e++){var m=u[e];if(!g(m))return!1;var r=Z[m],h=U[m];if(c=L?L.call(N,r,h,m):void 0,c===!1||c===void 0&&r!==h)return!1}return!0}},H6uX:function(ge,q){var _=Array.prototype.slice,Z=function(c){this._$handlers={},this._$eventProcessor=c};Z.prototype={constructor:Z,one:function(c,u,M,g){return L(this,c,u,M,g,!0)},on:function(c,u,M,g){return L(this,c,u,M,g,!1)},isSilent:function(c){var u=this._$handlers;return!u[c]||!u[c].length},off:function(c,u){var M=this._$handlers;if(!c)return this._$handlers={},this;if(u){if(M[c]){for(var g=[],e=0,m=M[c].length;e<m;e++)M[c][e].h!==u&&g.push(M[c][e]);M[c]=g}M[c]&&M[c].length===0&&delete M[c]}else delete M[c];return this},trigger:function(c){var u=this._$handlers[c],M=this._$eventProcessor;if(u){var g=arguments,e=g.length;e>3&&(g=_.call(g,1));for(var m=u.length,r=0;r<m;){var h=u[r];if(M&&M.filter&&h.query!=null&&!M.filter(c,h.query)){r++;continue}switch(e){case 1:h.h.call(h.ctx);break;case 2:h.h.call(h.ctx,g[1]);break;case 3:h.h.call(h.ctx,g[1],g[2]);break;default:h.h.apply(h.ctx,g);break}h.one?(u.splice(r,1),m--):r++}}return M&&M.afterTrigger&&M.afterTrigger(c),this},triggerWithContext:function(c){var u=this._$handlers[c],M=this._$eventProcessor;if(u){var g=arguments,e=g.length;e>4&&(g=_.call(g,1,g.length-1));for(var m=g[g.length-1],r=u.length,h=0;h<r;){var a=u[h];if(M&&M.filter&&a.query!=null&&!M.filter(c,a.query)){h++;continue}switch(e){case 1:a.h.call(m);break;case 2:a.h.call(m,g[1]);break;case 3:a.h.call(m,g[1],g[2]);break;default:a.h.apply(m,g);break}a.one?(u.splice(h,1),r--):h++}}return M&&M.afterTrigger&&M.afterTrigger(c),this}};function U(c,u){var M=c._$eventProcessor;return u!=null&&M&&M.normalizeQuery&&(u=M.normalizeQuery(u)),u}function L(c,u,M,g,e,m){var r=c._$handlers;if(typeof M=="function"&&(e=g,g=M,M=null),!g||!u)return c;M=U(c,M),r[u]||(r[u]=[]);for(var h=0;h<r[u].length;h++)if(r[u][h].h===g)return c;var a={h:g,one:m,query:M,ctx:e||c,callAtLast:g.zrEventfulCallAtLast},l=r[u].length-1,d=r[u][l];return d&&d.callAtLast?r[u].splice(l,0,a):r[u].push(a),c}var N=Z;ge.exports=N},HpTS:function(ge,q,_){ge.exports=_.p+"static/small_program.f74069ec.png"},Hwda:function(ge,q,_){ge.exports=_.p+"static/b2.b82a50d0.svg"},I8Z2:function(ge,q,_){"use strict";_.d(q,"a",function(){return N}),_.d(q,"b",function(){return a}),_.d(q,"c",function(){return d});var Z=_("q1tI"),U=function(){var y=function(s,p){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var v in i)i.hasOwnProperty(v)&&(n[v]=i[v])},y(s,p)};return function(s,p){y(s,p);function n(){this.constructor=s}s.prototype=p===null?Object.create(p):(n.prototype=p.prototype,new n)}}(),L=Z.createContext(null),N=function(y){U(s,y);function s(){return y!==null&&y.apply(this,arguments)||this}return s.prototype.render=function(){return Z.createElement(L.Provider,{value:this.props.store},this.props.children)},s}(Z.Component),c=_("Gytx"),u=_.n(c),M=_("2mql"),g=_.n(M),e=function(){var y=function(s,p){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var v in i)i.hasOwnProperty(v)&&(n[v]=i[v])},y(s,p)};return function(s,p){y(s,p);function n(){this.constructor=s}s.prototype=p===null?Object.create(p):(n.prototype=p.prototype,new n)}}(),m=function(){return m=Object.assign||function(y){for(var s,p=1,n=arguments.length;p<n;p++){s=arguments[p];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(y[i]=s[i])}return y},m.apply(this,arguments)};function r(y){return y.displayName||y.name||"Component"}var h=function(){return{}};function a(y,s){s===void 0&&(s={});var p=!!y,n=y||h;return function(v){var C=function(w){e(x,w);function x(A,o){var f=w.call(this,A,o)||this;return f.unsubscribe=null,f.handleChange=function(){if(!f.unsubscribe)return;var E=n(f.store.getState(),f.props);f.setState({subscribed:E})},f.store=f.context,f.state={subscribed:n(f.store.getState(),A),store:f.store,props:A},f}return x.getDerivedStateFromProps=function(A,o){return y&&y.length===2&&A!==o.props?{subscribed:n(o.store.getState(),A),props:A}:{props:A}},x.prototype.componentDidMount=function(){this.trySubscribe()},x.prototype.componentWillUnmount=function(){this.tryUnsubscribe()},x.prototype.shouldComponentUpdate=function(A,o){return!u()(this.props,A)||!u()(this.state.subscribed,o.subscribed)},x.prototype.trySubscribe=function(){p&&(this.unsubscribe=this.store.subscribe(this.handleChange),this.handleChange())},x.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},x.prototype.render=function(){var A=m(m(m({},this.props),this.state.subscribed),{store:this.store});return Z.createElement(v,m({},A,{ref:this.props.miniStoreForwardedRef}))},x.displayName="Connect("+r(v)+")",x.contextType=L,x}(Z.Component);if(s.forwardRef){var R=Z.forwardRef(function(w,x){return Z.createElement(C,m({},w,{miniStoreForwardedRef:x}))});return g()(R,v)}return g()(C,v)}}var l=function(){return l=Object.assign||function(y){for(var s,p=1,n=arguments.length;p<n;p++){s=arguments[p];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(y[i]=s[i])}return y},l.apply(this,arguments)};function d(y){var s=y,p=[];function n(C){s=l(l({},s),C);for(var R=0;R<p.length;R++)p[R]()}function i(){return s}function v(C){return p.push(C),function(){var w=p.indexOf(C);p.splice(w,1)}}return{setState:n,getState:i,subscribe:v}}},IMiH:function(ge,q,_){var Z=_("Sj9i"),U=_("QBsz"),L=_("4mN7"),N=_("mFDi"),c=_("LPTA"),u=c.devicePixelRatio,M={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},g=[],e=[],m=[],r=[],h=Math.min,a=Math.max,l=Math.cos,d=Math.sin,y=Math.sqrt,s=Math.abs,p=typeof Float32Array!="undefined",n=function(v){this._saveData=!(v||!1),this._saveData&&(this.data=[]),this._ctx=null};n.prototype={constructor:n,_xi:0,_yi:0,_x0:0,_y0:0,_ux:0,_uy:0,_len:0,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(v,C,R){R=R||0,this._ux=s(R/u/v)||0,this._uy=s(R/u/C)||0},getContext:function(){return this._ctx},beginPath:function(v){return this._ctx=v,v&&v.beginPath(),v&&(this.dpr=v.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(v,C){return this.addData(M.M,v,C),this._ctx&&this._ctx.moveTo(v,C),this._x0=v,this._y0=C,this._xi=v,this._yi=C,this},lineTo:function(v,C){var R=s(v-this._xi)>this._ux||s(C-this._yi)>this._uy||this._len<5;return this.addData(M.L,v,C),this._ctx&&R&&(this._needsDash()?this._dashedLineTo(v,C):this._ctx.lineTo(v,C)),R&&(this._xi=v,this._yi=C),this},bezierCurveTo:function(v,C,R,w,x,A){return this.addData(M.C,v,C,R,w,x,A),this._ctx&&(this._needsDash()?this._dashedBezierTo(v,C,R,w,x,A):this._ctx.bezierCurveTo(v,C,R,w,x,A)),this._xi=x,this._yi=A,this},quadraticCurveTo:function(v,C,R,w){return this.addData(M.Q,v,C,R,w),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(v,C,R,w):this._ctx.quadraticCurveTo(v,C,R,w)),this._xi=R,this._yi=w,this},arc:function(v,C,R,w,x,A){return this.addData(M.A,v,C,R,R,w,x-w,0,A?0:1),this._ctx&&this._ctx.arc(v,C,R,w,x,A),this._xi=l(x)*R+v,this._yi=d(x)*R+C,this},arcTo:function(v,C,R,w,x){return this._ctx&&this._ctx.arcTo(v,C,R,w,x),this},rect:function(v,C,R,w){return this._ctx&&this._ctx.rect(v,C,R,w),this.addData(M.R,v,C,R,w),this},closePath:function(){this.addData(M.Z);var v=this._ctx,C=this._x0,R=this._y0;return v&&(this._needsDash()&&this._dashedLineTo(C,R),v.closePath()),this._xi=C,this._yi=R,this},fill:function(v){v&&v.fill(),this.toStatic()},stroke:function(v){v&&v.stroke(),this.toStatic()},setLineDash:function(v){if(v instanceof Array){this._lineDash=v,this._dashIdx=0;for(var C=0,R=0;R<v.length;R++)C+=v[R];this._dashSum=C}return this},setLineDashOffset:function(v){return this._dashOffset=v,this},len:function(){return this._len},setData:function(v){var C=v.length;!(this.data&&this.data.length===C)&&p&&(this.data=new Float32Array(C));for(var R=0;R<C;R++)this.data[R]=v[R];this._len=C},appendPath:function(v){v instanceof Array||(v=[v]);for(var C=v.length,R=0,w=this._len,x=0;x<C;x++)R+=v[x].len();p&&this.data instanceof Float32Array&&(this.data=new Float32Array(w+R));for(var x=0;x<C;x++)for(var A=v[x].data,o=0;o<A.length;o++)this.data[w++]=A[o];this._len=w},addData:function(v){if(!this._saveData)return;var C=this.data;this._len+arguments.length>C.length&&(this._expandData(),C=this.data);for(var R=0;R<arguments.length;R++)C[this._len++]=arguments[R];this._prevCmd=v},_expandData:function(){if(!(this.data instanceof Array)){for(var v=[],C=0;C<this._len;C++)v[C]=this.data[C];this.data=v}},_needsDash:function(){return this._lineDash},_dashedLineTo:function(v,C){var R=this._dashSum,w=this._dashOffset,x=this._lineDash,A=this._ctx,o=this._xi,f=this._yi,E=v-o,O=C-f,S=y(E*E+O*O),b=o,D=f,P,I=x.length,F;for(E/=S,O/=S,w<0&&(w=R+w),w%=R,b-=w*E,D-=w*O;E>0&&b<=v||E<0&&b>=v||E===0&&(O>0&&D<=C||O<0&&D>=C);){if(F=this._dashIdx,P=x[F],b+=E*P,D+=O*P,this._dashIdx=(F+1)%I,E>0&&b<o||E<0&&b>o||O>0&&D<f||O<0&&D>f)continue;A[F%2?"moveTo":"lineTo"](E>=0?h(b,v):a(b,v),O>=0?h(D,C):a(D,C))}E=b-v,O=D-C,this._dashOffset=-y(E*E+O*O)},_dashedBezierTo:function(v,C,R,w,x,A){var o=this._dashSum,f=this._dashOffset,E=this._lineDash,O=this._ctx,S=this._xi,b=this._yi,D,P,I,F=Z.cubicAt,K=0,j=this._dashIdx,Y=E.length,W,Q,ie=0;for(f<0&&(f=o+f),f%=o,D=0;D<1;D+=.1)P=F(S,v,R,x,D+.1)-F(S,v,R,x,D),I=F(b,C,w,A,D+.1)-F(b,C,w,A,D),K+=y(P*P+I*I);for(;j<Y&&!(ie+=E[j],ie>f);j++);for(D=(ie-f)/K;D<=1;)W=F(S,v,R,x,D),Q=F(b,C,w,A,D),j%2?O.moveTo(W,Q):O.lineTo(W,Q),D+=E[j]/K,j=(j+1)%Y;j%2!==0&&O.lineTo(x,A),P=x-W,I=A-Q,this._dashOffset=-y(P*P+I*I)},_dashedQuadraticTo:function(v,C,R,w){var x=R,A=w;R=(R+2*v)/3,w=(w+2*C)/3,v=(this._xi+2*v)/3,C=(this._yi+2*C)/3,this._dashedBezierTo(v,C,R,w,x,A)},toStatic:function(){var v=this.data;v instanceof Array&&(v.length=this._len,p&&(this.data=new Float32Array(v)))},getBoundingRect:function(){g[0]=g[1]=m[0]=m[1]=Number.MAX_VALUE,e[0]=e[1]=r[0]=r[1]=-Number.MAX_VALUE;for(var v=this.data,C=0,R=0,w=0,x=0,A=0;A<v.length;){var o=v[A++];A===1&&(C=v[A],R=v[A+1],w=C,x=R);switch(o){case M.M:w=v[A++],x=v[A++],C=w,R=x,m[0]=w,m[1]=x,r[0]=w,r[1]=x;break;case M.L:L.fromLine(C,R,v[A],v[A+1],m,r),C=v[A++],R=v[A++];break;case M.C:L.fromCubic(C,R,v[A++],v[A++],v[A++],v[A++],v[A],v[A+1],m,r),C=v[A++],R=v[A++];break;case M.Q:L.fromQuadratic(C,R,v[A++],v[A++],v[A],v[A+1],m,r),C=v[A++],R=v[A++];break;case M.A:var f=v[A++],E=v[A++],O=v[A++],S=v[A++],b=v[A++],D=v[A++]+b;A+=1;var P=1-v[A++];A===1&&(w=l(b)*O+f,x=d(b)*S+E),L.fromArc(f,E,O,S,b,D,P,m,r),C=l(D)*O+f,R=d(D)*S+E;break;case M.R:w=C=v[A++],x=R=v[A++];var I=v[A++],F=v[A++];L.fromLine(w,x,w+I,x+F,m,r);break;case M.Z:C=w,R=x;break}U.min(g,g,m),U.max(e,e,r)}return A===0&&(g[0]=g[1]=e[0]=e[1]=0),new N(g[0],g[1],e[0]-g[0],e[1]-g[1])},rebuildPath:function(v){for(var C=this.data,R,w,x,A,o,f,E=this._ux,O=this._uy,S=this._len,b=0;b<S;){var D=C[b++];b===1&&(x=C[b],A=C[b+1],R=x,w=A);switch(D){case M.M:R=x=C[b++],w=A=C[b++],v.moveTo(x,A);break;case M.L:o=C[b++],f=C[b++],(s(o-x)>E||s(f-A)>O||b===S-1)&&(v.lineTo(o,f),x=o,A=f);break;case M.C:v.bezierCurveTo(C[b++],C[b++],C[b++],C[b++],C[b++],C[b++]),x=C[b-2],A=C[b-1];break;case M.Q:v.quadraticCurveTo(C[b++],C[b++],C[b++],C[b++]),x=C[b-2],A=C[b-1];break;case M.A:var P=C[b++],I=C[b++],F=C[b++],K=C[b++],j=C[b++],Y=C[b++],W=C[b++],Q=C[b++],ie=F>K?F:K,Ee=F>K?1:F/K,pe=F>K?K/F:1,De=Math.abs(F-K)>.001,Me=j+Y;De?(v.translate(P,I),v.rotate(W),v.scale(Ee,pe),v.arc(0,0,ie,j,Me,1-Q),v.scale(1/Ee,1/pe),v.rotate(-W),v.translate(-P,-I)):v.arc(P,I,ie,j,Me,1-Q),b===1&&(R=l(j)*F+P,w=d(j)*K+I),x=l(Me)*F+P,A=d(Me)*K+I;break;case M.R:R=x=C[b],w=A=C[b+1],v.rect(C[b++],C[b++],C[b++],C[b++]);break;case M.Z:v.closePath(),x=R,A=w}}}},n.CMD=M;var i=n;ge.exports=i},ItGF:function(ge,q){var _={};typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?_={browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:typeof document=="undefined"&&typeof self!="undefined"?_={browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:typeof navigator=="undefined"?_={browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:_=U(navigator.userAgent);var Z=_;function U(L){var N={},c={},u=L.match(/Firefox\/([\d.]+)/),M=L.match(/MSIE\s([\d.]+)/)||L.match(/Trident\/.+?rv:(([\d.]+))/),g=L.match(/Edge\/([\d.]+)/),e=/micromessenger/i.test(L);return u&&(c.firefox=!0,c.version=u[1]),M&&(c.ie=!0,c.version=M[1]),g&&(c.edge=!0,c.version=g[1]),e&&(c.weChat=!0),{browser:c,os:N,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:typeof SVGRect!="undefined",touchEventsSupported:"ontouchstart"in window&&!c.ie&&!c.edge,pointerEventsSupported:"onpointerdown"in window&&(c.edge||c.ie&&c.version>=11),domSupported:typeof document!="undefined"}}ge.exports=Z},IuEb:function(ge,q,_){ge.exports=_.p+"static/a1.e973a25a.png"},J66h:function(ge,q,_){(function(Z){var U,L;(function(N,c){ge.exports=c(N)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof Z!="undefined"?Z:this,function(N){"use strict";N=N||{};var c=N.Base64,u="2.6.4",M="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",g=function(b){for(var D={},P=0,I=b.length;P<I;P++)D[b.charAt(P)]=P;return D}(M),e=String.fromCharCode,m=function(b){if(b.length<2){var D=b.charCodeAt(0);return D<128?b:D<2048?e(192|D>>>6)+e(128|D&63):e(224|D>>>12&15)+e(128|D>>>6&63)+e(128|D&63)}else{var D=65536+(b.charCodeAt(0)-55296)*1024+(b.charCodeAt(1)-56320);return e(240|D>>>18&7)+e(128|D>>>12&63)+e(128|D>>>6&63)+e(128|D&63)}},r=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,h=function(b){return b.replace(r,m)},a=function(b){var D=[0,2,1][b.length%3],P=b.charCodeAt(0)<<16|(b.length>1?b.charCodeAt(1):0)<<8|(b.length>2?b.charCodeAt(2):0),I=[M.charAt(P>>>18),M.charAt(P>>>12&63),D>=2?"=":M.charAt(P>>>6&63),D>=1?"=":M.charAt(P&63)];return I.join("")},l=N.btoa&&typeof N.btoa=="function"?function(b){return N.btoa(b)}:function(b){if(b.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return b.replace(/[\s\S]{1,3}/g,a)},d=function(b){return l(h(String(b)))},y=function(b){return b.replace(/[+\/]/g,function(D){return D=="+"?"-":"_"}).replace(/=/g,"")},s=function(b,D){return D?y(d(b)):d(b)},p=function(b){return s(b,!0)},n;N.Uint8Array&&(n=function(b,D){for(var P="",I=0,F=b.length;I<F;I+=3){var K=b[I],j=b[I+1],Y=b[I+2],W=K<<16|j<<8|Y;P+=M.charAt(W>>>18)+M.charAt(W>>>12&63)+(typeof j!="undefined"?M.charAt(W>>>6&63):"=")+(typeof Y!="undefined"?M.charAt(W&63):"=")}return D?y(P):P});var i=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,v=function(b){switch(b.length){case 4:var D=(7&b.charCodeAt(0))<<18|(63&b.charCodeAt(1))<<12|(63&b.charCodeAt(2))<<6|63&b.charCodeAt(3),P=D-65536;return e((P>>>10)+55296)+e((P&1023)+56320);case 3:return e((15&b.charCodeAt(0))<<12|(63&b.charCodeAt(1))<<6|63&b.charCodeAt(2));default:return e((31&b.charCodeAt(0))<<6|63&b.charCodeAt(1))}},C=function(b){return b.replace(i,v)},R=function(b){var D=b.length,P=D%4,I=(D>0?g[b.charAt(0)]<<18:0)|(D>1?g[b.charAt(1)]<<12:0)|(D>2?g[b.charAt(2)]<<6:0)|(D>3?g[b.charAt(3)]:0),F=[e(I>>>16),e(I>>>8&255),e(I&255)];return F.length-=[0,0,2,1][P],F.join("")},w=N.atob&&typeof N.atob=="function"?function(b){return N.atob(b)}:function(b){return b.replace(/\S{1,4}/g,R)},x=function(b){return w(String(b).replace(/[^A-Za-z0-9\+\/]/g,""))},A=function(b){return C(w(b))},o=function(b){return String(b).replace(/[-_]/g,function(D){return D=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},f=function(b){return A(o(b))},E;N.Uint8Array&&(E=function(b){return Uint8Array.from(x(o(b)),function(D){return D.charCodeAt(0)})});var O=function(){var b=N.Base64;return N.Base64=c,b};if(N.Base64={VERSION:u,atob:x,btoa:l,fromBase64:f,toBase64:s,utob:h,encode:s,encodeURI:p,btou:C,decode:f,noConflict:O,fromUint8Array:n,toUint8Array:E},typeof Object.defineProperty=="function"){var S=function(b){return{value:b,enumerable:!1,writable:!0,configurable:!0}};N.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",S(function(){return f(this)})),Object.defineProperty(String.prototype,"toBase64",S(function(b){return s(this,b)})),Object.defineProperty(String.prototype,"toBase64URI",S(function(){return s(this,!0)}))}}return N.Meteor&&(Base64=N.Base64),ge.exports?ge.exports.Base64=N.Base64:!(U=[],L=function(){return N.Base64}.apply(q,U),L!==void 0&&(ge.exports=L)),{Base64:N.Base64}})}).call(this,_("IyRk"))},JAbv:function(ge,q){ge.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+u6WJqh0bqdi2nrb66gI0sjQXL2W8xHpb9XUykwPITj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HhwkAOILt0N3cv5XZWe6gXZNqhEGEgB5B2jOfw2LLAvmad3bX2pu1QYSAHkLZM7TDZsYD4NDn2YpJeccHCQA4g7Vja4bFtgeJ6D5WNNqdtcXD8TgM5gLRtaofRjgWa3LC9yl5M0jtK+p0GcgBpx8oOT1QWyKt209Aa2ds2hbpczM7Iwrvr4AAyKlM7zHYsEKVz0+5uIAeQdizs8Ni2gIyL8icxSbeNnZv9go0wkANI26Z2GKOxwJ56D+VRODdmGMgBZDRWdnhtW6C6WWeX/Zjk/jDQ/wHkSLPJ/mcrgQAAAABJRU5ErkJggg=="},JLYi:function(ge,q,_){"use strict";var Z=_("14J3"),U=_("BMrR"),L=_("jCWc"),N=_("kPKH"),c=_("5Dmo"),u=_("3S7+"),M=_("k1fw"),g=_("PpiC"),e=_("q1tI"),m=_.n(e),r=_("Ma/C"),h=_.n(r),a=_("1vsH"),l=_("m3rI"),d=_("TSYQ"),y=_.n(d),s=function(n){var i=n.dispatch,v=n.data,C=n.className,R=n.style,w=Object(g.a)(n,["dispatch","data","className","style"]);return m.a.createElement(m.a.Fragment,null,v==null?void 0:v.map(function(x,A){var o,f;return m.a.createElement(N.a,{key:A},m.a.createElement("div",{className:y()(h.a.CoreItem,C),style:Object(M.a)({},R),onClick:function(){return Object(a.S)("/core/".concat(x==null?void 0:x.id))}},m.a.createElement("div",{className:h.a.img},m.a.createElement("img",{src:"".concat(l.a.API_SERVER).concat(x==null||((o=x.cover)===null||o===void 0)?void 0:o.url),alt:x==null||((f=x.cover)===null||f===void 0)?void 0:f.title})),m.a.createElement("div",{style:{margin:"30px 12px 20px"}},m.a.createElement(u.a,{placement:"topLeft",title:x==null?void 0:x.name},m.a.createElement("div",{className:"font16 ".concat(h.a.Onerow),style:{color:"#000",fontWeight:600}},x==null?void 0:x.name)),m.a.createElement(U.a,{className:"mt20 font14",style:{color:"#666",flexWrap:"nowrap"},align:"middle",justify:"space-between",wrap:!1},m.a.createElement(u.a,{title:x==null?void 0:x.adminer},m.a.createElement(N.a,{className:"".concat(h.a.Onerow),style:{minWidth:70}},m.a.createElement("i",{className:"iconfont icon-jiaoshishu mr5 font14"}),x==null?void 0:x.adminer)),m.a.createElement(u.a,{title:x==null?void 0:x.leading_unit},m.a.createElement(N.a,{className:"".concat(h.a.Onerow)},m.a.createElement("i",{className:"iconfont icon-danwei1 mr5 font14"}),x==null?void 0:x.leading_unit))))))}))};q.a=s},JWDV:function(ge,q,_){ge.exports=_.p+"static/charpter-white.5fa14f93.svg"},JYp7:function(ge,q,_){"use strict";_.d(q,"a",function(){return Z});var Z;(function(U){function L(i){return i&&typeof i=="object"&&typeof i[Symbol.iterator]=="function"}U.is=L;const N=Object.freeze([]);function c(){return N}U.empty=c;function*u(i){yield i}U.single=u;function M(i){return i||N}U.from=M;function g(i){return!i||i[Symbol.iterator]().next().done===!0}U.isEmpty=g;function e(i){return i[Symbol.iterator]().next().value}U.first=e;function m(i,v){for(const C of i)if(v(C))return!0;return!1}U.some=m;function r(i,v){for(const C of i)if(v(C))return C;return}U.find=r;function*h(i,v){for(const C of i)v(C)&&(yield C)}U.filter=h;function*a(i,v){let C=0;for(const R of i)yield v(R,C++)}U.map=a;function*l(...i){for(const v of i)for(const C of v)yield C}U.concat=l;function*d(i){for(const v of i)for(const C of v)yield C}U.concatNested=d;function y(i,v,C){let R=C;for(const w of i)R=v(R,w);return R}U.reduce=y;function*s(i,v,C=i.length){for(v<0&&(v+=i.length),C<0?C+=i.length:C>i.length&&(C=i.length);v<C;v++)yield i[v]}U.slice=s;function p(i,v=Number.POSITIVE_INFINITY){const C=[];if(v===0)return[C,i];const R=i[Symbol.iterator]();for(let w=0;w<v;w++){const x=R.next();if(x.done)return[C,U.empty()];C.push(x.value)}return[C,{[Symbol.iterator](){return R}}]}U.consume=p;function n(i,v,C=(R,w)=>R===w){const R=i[Symbol.iterator](),w=v[Symbol.iterator]();for(;;){const x=R.next(),A=w.next();if(x.done!==A.done)return!1;if(x.done)return!0;if(!C(x.value,A.value))return!1}}U.equals=n})(Z||(Z={}))},JatN:function(ge,q,_){"use strict";var Z={"@primary-color":"#0152d9"},U=Z,L={"@primary-color":"#196efd"},N=L,c=q.a={defaults:U,vspaces:N}},JeFH:function(ge,q){ge.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAAAwCAYAAAD9wT87AAAe2UlEQVR4XtVcB5QUVbr+blV1T+ieGWaYBAwgOSgooJLjENeA6a2KCVfZNbum3VXXsG9VdFfc1TXtGlfXLCKgEiRnUAHJWRzAyTl3V9V957vV1dPTM+M4Hn2Pd8/xIHRV9f3vn77/+/9qgVaWlHIggHMB+AA8K4TIbe2ek/FzKWUmgLGw7THQtLlCiBUn4z6j9ySa26SUMg3A+ZDyaljBMTC87mXrAUwSQtT+fxBOSqmbpjnaMIyrYJnToRvtQ/sOAJgihFh1ssvRSEFSysEAroJlXQZdp8VhXUEAS07UYGavBPSIQz10vacQ4vjJLJiUMgPAhZByJoQYyr0erZFYmFOFZK+GK7szGOB3Qoi/nsxycG9KQVLKKyDltbDMbBge5NYD87+twvxjNdhbZiIoJZZMysRpPqsShreXECL/ZBRMSjkAwM2wzIugG2k2gOW59fjgaDU2FNbjRI2Fm/r48eigdtz+TUKIF05GOSL3JKSUDwN4SALYXBRQwqzIrUNBvQ1DAIYm4BHAJxMz0TPOLoJu9BFClJxsglVVVWXGx8d/IYTIOl4rsSCnGvNzarCvIghLAl5NoN6WuKVPAu4dkMjtXyuEeP1kk6NJDpJSHgTQ8+Ht5Xj5UBWoqBhNQAsFP/6dwi2alIlTYq1caEY/IUT5zyGYlLIvgD4AugLIgm0zF3qgaccDgcCbMTExu1v6Xinl6YDc/lWxiWvWF6E04BiYxxUEQK0lcUe/BNx9qlLQFUKIt38mOVIAnA6gG4AugM104Qe0ajo1gA+FEHTwVhc96CoAbzy9txJP7KpAPKWKWFRQrCawZEoHZHnN4yEFVbX65DZeIKW8DVI+DiHimrtVSnlCCDFUCHGihc+TYJl7jwf1DlOW5KHWltCiLqSCfnd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,_){"use strict";var Z=_("sRBo"),U=_("kaz8"),L=_("5NDa"),N=_("5rEg"),c=_("miYZ"),u=_("tsqr"),M=_("9og8"),g=_("2qtc"),e=_("kLXV"),m=_("tJVT"),r=_("WmNS"),h=_.n(r),a=_("q1tI"),l=_.n(a),d=_("9kvl"),y=_("6CvP"),s=_("1XHU"),p=_("1vsH"),n;(function(v){v[v.Professor=1]="Professor",v[v.AssistantProfessor=2]="AssistantProfessor",v[v.Student=3]="Student"})(n||(n={}));var i=function(C){var R=C.visible,w=C.user,x=C.onCancel,A=x===void 0?function(){}:x,o=Object(a.useState)(),f=Object(m.a)(o,2),E=f[0],O=f[1],S=Object(a.useState)([]),b=Object(m.a)(S,2),D=b[0],P=b[1],I=Object(a.useState)(!1),F=Object(m.a)(I,2),K=F[0],j=F[1],Y=Object(a.useState)(!1),W=Object(m.a)(Y,2),Q=W[0],ie=W[1],Ee=Object(a.useState)(),pe=Object(m.a)(Ee,2),De=pe[0],Me=pe[1];Object(a.useEffect)(function(){var B;if(w!=null&&(B=w.userInfo)!==null&&B!==void 0&&B.identity){var z;P([(w==null||((z=w.userInfo)===null||z===void 0)?void 0:z.identity)==="student"?3:1])}},[w]);var Ue=function(z,H){if(D.includes(n.Professor)){e.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:l.a.createElement("div",{className:"tc"},H||"\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u5BA1\u6838"),onOk:function(){d.d.push("/classrooms/".concat(z,"/students"))}});return}d.d.push("/classrooms/".concat(z,"/students"))},Ie=function(){var B=Object(M.a)(h.a.mark(function z(){var H;return h.a.wrap(function(X){for(;;)switch(X.prev=X.next){case 0:if(E){X.next=3;break}return u.b.info("\u9080\u8BF7\u7801\u4E0D\u80FD\u4E3A\u7A7A"),X.abrupt("return");case 3:return j(!0),X.next=6,Object(y.c)({invite_code:E,professor:D.includes(n.Professor)?1:null,assistant_professor:D.includes(n.AssistantProfessor)?1:null,student:D.includes(n.Student)?1:null});case 6:if(H=X.sent,j(!1),!((H==null?void 0:H.status)===-2)){X.next=22;break}if(ne(),!(H.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u5B9E\u540D\u8BA4\u8BC1")){X.next=14;break}return ie(!0),Me(1),X.abrupt("return");case 14:if(!(H.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u804C\u4E1A\u8BA4\u8BC1")){X.next=18;break}return ie(!0),Me(2),X.abrupt("return");case 18:if(!(H.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u5B9E\u540D\u548C\u804C\u4E1A\u8BA4\u8BC1")){X.next=22;break}return ie(!0),Me(3),X.abrupt("return");case 22:if(!((H==null?void 0:H.status)===0)){X.next=27;break}return Object(p.db)(["\u6559\u5B66\u8BFE\u5802","\u9996\u9875","\u52A0\u5165\u8BFE\u5802"]),ne(),(H==null?void 0:H.course_id)&&Ue(H.course_id,H.message),X.abrupt("return");case 27:case"end":return X.stop()}},z)}));return function(){return B.apply(this,arguments)}}(),ne=function(){var B=Object(M.a)(h.a.mark(function z(){return h.a.wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:A();case 1:case"end":return ee.stop()}},z)}));return function(){return B.apply(this,arguments)}}();return l.a.createElement(l.a.Fragment,null,l.a.createElement(e.a,{centered:!0,keyboard:!1,closable:!1,title:"\u52A0\u5165\u8BFE\u5802",visible:R,confirmLoading:K,onOk:Ie,onCancel:ne},l.a.createElement("div",{className:"tc"},l.a.createElement("div",null,l.a.createElement("span",null,"\u8BFE\u5802\u9080\u8BF7\u7801\uFF1A"),l.a.createElement(N.a,{placeholder:"\u8BF7\u8F93\u51655\u4F4D\u8BFE\u5802\u9080\u8BF7\u7801\u62166\u4F4D\u5206\u73ED\u9080\u8BF7\u7801",style:{width:270},value:E,onChange:function(z){if(z.target.value.length>=7){u.b.info("\u8BF7\u8F93\u51655\u4F4D\u8BFE\u5802\u9080\u8BF7\u7801\u62166\u4F4D\u5206\u73ED\u9080\u8BF7\u7801\uFF01");return}O(z.target.value)}})),l.a.createElement("div",{className:"mt10 font14"},l.a.createElement("span",null,"\u8EAB\u4EFD\uFF1A"),l.a.createElement(U.a.Group,{value:D,onChange:function(z){return P(z)}},l.a.createElement(U.a,{value:n.Professor,disabled:D.includes(2)||D.includes(3)},"\u6559\u5E08"),l.a.createElement(U.a,{value:n.AssistantProfessor,disabled:D.includes(1)},"\u52A9\u6559"),l.a.createElement(U.a,{value:n.Student,disabled:D.includes(1)},"\u5B66\u751F/\u53C2\u8D5B\u8005"))))),l.a.createElement(s.a,{visible:Q,onCancel:function(){return ie(!1)},occupationValue:De}))};q.a=Object(d.a)(function(v){var C=v.user;return{user:C}})(i)},Jq4h:function(ge,q,_){ge.exports=_.p+"static/qrcode.2267e4d5.png"},K2GJ:function(ge,q,_){var Z=_("fW2E"),U=_("gut8"),L=U.ContextCachedBy,N=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],c=function(h){this.extendFrom(h,!1)};function u(h,a,l){var d=a.x==null?0:a.x,y=a.x2==null?1:a.x2,s=a.y==null?0:a.y,p=a.y2==null?0:a.y2;a.global||(d=d*l.width+l.x,y=y*l.width+l.x,s=s*l.height+l.y,p=p*l.height+l.y),d=isNaN(d)?0:d,y=isNaN(y)?1:y,s=isNaN(s)?0:s,p=isNaN(p)?0:p;var n=h.createLinearGradient(d,s,y,p);return n}function M(h,a,l){var d=l.width,y=l.height,s=Math.min(d,y),p=a.x==null?.5:a.x,n=a.y==null?.5:a.y,i=a.r==null?.5:a.r;a.global||(p=p*d+l.x,n=n*y+l.y,i=i*s);var v=h.createRadialGradient(p,n,0,p,n,i);return v}c.prototype={constructor:c,fill:"#000",stroke:null,opacity:1,fillOpacity:null,strokeOpacity:null,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:"#000",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:"inside",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:"transparent",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:"transparent",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(h,a,l){var d=this,y=l&&l.style,s=!y||h.__attrCachedBy!==L.STYLE_BIND;h.__attrCachedBy=L.STYLE_BIND;for(var p=0;p<N.length;p++){var n=N[p],i=n[0];(s||d[i]!==y[i])&&(h[i]=Z(h,i,d[i]||n[1]))}if((s||d.fill!==y.fill)&&(h.fillStyle=d.fill),(s||d.stroke!==y.stroke)&&(h.strokeStyle=d.stroke),(s||d.opacity!==y.opacity)&&(h.globalAlpha=d.opacity==null?1:d.opacity),(s||d.blend!==y.blend)&&(h.globalCompositeOperation=d.blend||"source-over"),this.hasStroke()){var v=d.lineWidth;h.lineWidth=v/(this.strokeNoScale&&a&&a.getLineScale?a.getLineScale():1)}},hasFill:function(){var h=this.fill;return h!=null&&h!=="none"},hasStroke:function(){var h=this.stroke;return h!=null&&h!=="none"&&this.lineWidth>0},extendFrom:function(h,a){if(h)for(var l in h)h.hasOwnProperty(l)&&(a===!0||(a===!1?!this.hasOwnProperty(l):h[l]!=null))&&(this[l]=h[l])},set:function(h,a){typeof h=="string"?this[h]=a:this.extendFrom(h,!0)},clone:function(){var h=new this.constructor;return h.extendFrom(this,!0),h},getGradient:function(h,a,l){for(var d=a.type==="radial"?M:u,y=d(h,a,l),s=a.colorStops,p=0;p<s.length;p++)y.addColorStop(s[p].offset,s[p].color);return y}};for(var g=c.prototype,e=0;e<N.length;e++){var m=N[e];m[0]in g||(g[m[0]]=m[1])}c.getGradient=g.getGradient;var r=c;ge.exports=r},KOXS:function(ge,q,_){ge.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"}},Kc5o:function(ge,q){ge.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAaCAYAAACzdqxAAAAAAXNSR0IArs4c6QAAA8JJREFUSEudlVlsVVUUhr+1TweKVatC72lRo8YhSlATjBNBohKD6IMNxDjEGIIJFoTeFuGBkGAT35T23tsYIdHEYAwqMkgAiWgCBWcFHOIQhUZjuOe2CAXRNvbe/ZtTKSlt6eB+OTn7rP2ttdf+93+MIUbiBZ1nxSwHHgMuA9oxtqiE53O11j7UmoFzNnBi4ksqD/LsRlyOscZ7fgqMKz08bSDvmdHeYIdHgg8Chym1APfnxXQHVwWOKZZn+ynjrzLHhwYno6TNGBs4o9LQ84eMx2V0Oc97gBN0BnC7hwuAz13A9UcW24/Dwc+qONGkKeb4etyFjO8+wcvAVOd4suBZYNATJW1xmFJkYmG23jaNGly5Wje5gP1FnvJ8wFuIA1HSVoUZzbAC9dl6eyhM6WdgRZS0DaMGn1bDURmPGMwHvorqrLEqo+kUWBqD45jAKDvyrB0dNTgOrErpFUErxtz+YHnWIX6VccwcK6Ml9v2YwBXNqhgXcC1i5QBwq+CEGZ0Sxc4xz3smO7EnW2/7R9RxX0CY1tZB4AJ35Io5EIrDiOrTsd4FzCkK2BO//7bQjsfPQToeFlxKIr55YVqfIMbHsjTRIKgByg0Cg3Q2afX/HwwfR3W2tKpJt8jxhRmbJT7AWO3h3l7wpU0qKwTMlae8UMLmjkUWDdmK/hXDvqjOlk1q1s0F4wCOyfGBhintjZMYGZUmPJ8aXAf8iVEsY7aJFX09npjWNYHYUeS58fcG6+ptxQCwd1zdvsQOhWm1IrZbZVo1TmyyIqZmO/guvJh3JGIvyJnxRqzjgSceprRRsC+XtOa+ivuBPyPmhRnV4mkpFFPRschOxTsIPZtjI8J4bihw/0TVL2pCIWC9L6EmXp9I66CJ9TahRdVFBb41aM2W8TALrIe1Kg67ib3gy5HAg3aT1g+I13oPL8zoVnl2mfF+dIxHabR89VqNVzd3Zets50gW2f97mNIhYM0ZuVWndacXOw22ZT/iCTZYYSzAM/pPqU0ifZaOY7PRfx68MTrOPBrNjxUeptSBsXzwHyStuxHbMN6MlvAUZhot/LQ7nvQwa8ibV5nRTOfZKliXS1ILo4NXZnSf8+zoFhPOeaWr0polsQV4NarjmRErf1tBmGUXoitK2gPnBMfbT6T0oImNZuzwPTTkllnbUG25pEmTigJaTMxUwLTcYovlO/xINOsejNeBSoODiG9wdAJ5iYuAGxC3YbQ5z/xsg+0d1jb7p7tilcb9XcEc55iGej3lfITk6DTxC7A7Os67NNo/fev+BVBB428ht1HXAAAAAElFTkSuQmCC"},Kw3X:function(ge,q,_){"use strict";var Z=this&&this.__assign||function(){return Z=Object.assign||function(e){for(var m,r=1,h=arguments.length;r<h;r++){m=arguments[r];for(var a in m)Object.prototype.hasOwnProperty.call(m,a)&&(e[a]=m[a])}return e},Z.apply(this,arguments)},U=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var m={};if(e!=null)for(var r in e)Object.hasOwnProperty.call(e,r)&&(m[r]=e[r]);return m.default=e,m},L=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(q,"__esModule",{value:!0});var N=U(_("q1tI")),c=L(_("thk6")),u=L(_("MgzW")),M=_("69ZJ"),g=function(e){var m=e.activeSlideKey,r=e.ContainerEl,h=e.children,a=e.containerClass,l=e.getSwiper,d=e.navigation,y=e.noSwiping,s=e.pagination,p=e.parallax,n=e.parallaxEl,i=e.WrapperEl,v=e.wrapperClass,C=e.rebuildOnUpdate,R=e.renderScrollbar,w=e.renderPagination,x=e.renderPrevButton,A=e.renderNextButton,o=e.renderParallax,f=e.rtl,E=e.scrollbar,O=e.shouldSwiperUpdate,S=e.slideClass,b=e.loop,D=N.useRef(null),P=N.useRef(null),I=function(){if(!m)return null;var ie=0,Ee=b?1:0;return N.Children.forEach(h,function(pe){N.isValidElement(pe)&&(pe.key===m&&(ie=Ee),Ee+=1)}),ie},F=function(ie){typeof l=="function"&&l(ie)},K=function(){P.current!==null&&(P.current.destroy(!0,!0),P.current=null)},j=function(){D.current&&P.current===null&&(P.current=new c.default(D.current,u.default({},e)))},Y=function(){K(),j()},W=function(){P.current!==null&&P.current.update()},Q=function(ie){if(!M.isReactElement(ie))return null;var Ee=[S,ie.props.className];return y&&Ee.push("swiper-no-swiping"),N.cloneElement(ie,Z(Z({},ie.props),{className:Ee.join(" ").trim()}))};return N.useEffect(function(){j();var ie=I();return P.current!==null&&ie!==null&&P.current.slideTo(ie),function(){return K()}},[]),N.useEffect(function(){if(P.current!==null){if(C)Y();else if(O){W();var ie=P.current.slides.length;if(ie<=P.current.activeIndex){var Ee=Math.max(ie-1,0);P.current.slideTo(Ee)}}var pe=I();pe!==null&&P.current.slideTo(pe)}}),N.useEffect(function(){F(P.current)},[P]),!h||!r||!i?null:M.validateChildren(h)?N.default.createElement(r,{className:a,dir:f&&"rtl",ref:D},p&&n&&o&&o(e),N.default.createElement(i,{className:v},N.Children.map(h,Q)),s&&s.el&&w&&w(e),E&&E.el&&R&&R(e),d&&d.nextEl&&A&&A(e),d&&d.prevEl&&x&&x(e)):(console.warn("Children should be react element or an array of react element!!"),null)};g.defaultProps={containerClass:"swiper-container",wrapperClass:"swiper-wrapper",slideClass:"swiper-slide",ContainerEl:"div",WrapperEl:"div",renderScrollbar:function(e){var m=e.scrollbar;return m?N.default.createElement("div",{className:M.classNames(m.el)}):null},renderPagination:function(e){var m=e.pagination;return m?N.default.createElement("div",{className:M.classNames(m.el)}):null},renderPrevButton:function(e){var m=e.navigation;return m?N.default.createElement("div",{className:M.classNames(m.prevEl)}):null},renderNextButton:function(e){var m=e.navigation;return m?N.default.createElement("div",{className:M.classNames(m.nextEl)}):null},renderParallax:function(e){var m=e.parallaxEl;return m?N.default.createElement("div",{className:M.classNames(m.el),"data-swiper-parallax":m.value}):null}},g.displayName="ReactIdSwiper",q.default=g},LPTA:function(ge,q){var _=1;typeof window!="undefined"&&(_=Math.max(window.devicePixelRatio||1,1));var Z=0,U=_;q.debugMode=Z,q.devicePixelRatio=U},LSTS:function(ge,q,_){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var Z=function(){function h(a,l){for(var d=0;d<l.length;d++){var y=l[d];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(a,y.key,y)}}return function(a,l,d){return l&&h(a.prototype,l),d&&h(a,d),a}}(),U=_("q1tI"),L=u(U),N=_("17x9"),c=u(N);function u(h){return h&&h.__esModule?h:{default:h}}function M(h,a){var l={};for(var d in h){if(a.indexOf(d)>=0)continue;if(!Object.prototype.hasOwnProperty.call(h,d))continue;l[d]=h[d]}return l}function g(h,a){if(!(h instanceof a))throw new TypeError("Cannot call a class as a function")}function e(h,a){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:h}function m(h,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);h.prototype=Object.create(a&&a.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(h,a):h.__proto__=a)}var r=function(h){m(a,h);function a(l){g(this,a);var d=e(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,l));return d.scrollListener=d.scrollListener.bind(d),d.eventListenerOptions=d.eventListenerOptions.bind(d),d.mousewheelListener=d.mousewheelListener.bind(d),d}return Z(a,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var d=this.getParentElement(this.scrollComponent);d.scrollTop=d.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var d=!1,y={get passive(){d=!0}};try{document.addEventListener("test",null,y),document.removeEventListener("test",null,y)}catch(s){}return d}},{key:"eventListenerOptions",value:function(){var d=this.props.useCapture;return this.isPassiveSupported()&&(d={useCapture:this.props.useCapture,passive:!0}),d}},{key:"setDefaultLoader",value:function(d){this.defaultLoader=d}},{key:"detachMousewheelListener",value:function(){var d=window;this.props.useWindow===!1&&(d=this.scrollComponent.parentNode),d.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var d=window;this.props.useWindow===!1&&(d=this.getParentElement(this.scrollComponent)),d.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),d.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(d){var y=this.props.getScrollParent&&this.props.getScrollParent();return y!=null?y:d&&d.parentNode}},{key:"filterProps",value:function(d){return d}},{key:"attachScrollListener",value:function(){var d=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!d)return;var y=window;this.props.useWindow===!1&&(y=d),y.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),y.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),y.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}},{key:"mousewheelListener",value:function(d){d.deltaY===1&&!this.isPassiveSupported()&&d.preventDefault()}},{key:"scrollListener",value:function(){var d=this.scrollComponent,y=window,s=this.getParentElement(d),p=void 0;if(this.props.useWindow){var n=document.documentElement||document.body.parentNode||document.body,i=y.pageYOffset!==void 0?y.pageYOffset:n.scrollTop;this.props.isReverse?p=i:p=this.calculateOffset(d,i)}else this.props.isReverse?p=s.scrollTop:p=d.scrollHeight-s.scrollTop-s.clientHeight;p<Number(this.props.threshold)&&d&&d.offsetParent!==null&&(this.detachScrollListener(),this.beforeScrollHeight=s.scrollHeight,this.beforeScrollTop=s.scrollTop,typeof this.props.loadMore=="function"&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(d,y){return d?this.calculateTopPosition(d)+(d.offsetHeight-y-window.innerHeight):0}},{key:"calculateTopPosition",value:function(d){return d?d.offsetTop+this.calculateTopPosition(d.offsetParent):0}},{key:"render",value:function(){var d=this,y=this.filterProps(this.props),s=y.children,p=y.element,n=y.hasMore,i=y.initialLoad,v=y.isReverse,C=y.loader,R=y.loadMore,w=y.pageStart,x=y.ref,A=y.threshold,o=y.useCapture,f=y.useWindow,E=y.getScrollParent,O=M(y,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]);O.ref=function(b){d.scrollComponent=b,x&&x(b)};var S=[s];return n&&(C?v?S.unshift(C):S.push(C):this.defaultLoader&&(v?S.unshift(this.defaultLoader):S.push(this.defaultLoader))),L.default.createElement(p,O,S)}}]),a}(U.Component);r.propTypes={children:c.default.node.isRequired,element:c.default.node,hasMore:c.default.bool,initialLoad:c.default.bool,isReverse:c.default.bool,loader:c.default.node,loadMore:c.default.func.isRequired,pageStart:c.default.number,ref:c.default.func,getScrollParent:c.default.func,threshold:c.default.number,useCapture:c.default.bool,useWindow:c.default.bool},r.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},q.default=r,ge.exports=q.default},LdHM:function(ge,q,_){"use strict";_.d(q,"b",function(){return i}),_.d(q,"a",function(){return C});var Z=_("1OyB"),U=_("vuIU"),L=_("Ji7U"),N=_("LK+K"),c=_("q1tI"),u=_("rePB"),M=_("Ff2n"),g=_("ODXe"),e=_("4IlW"),m=_("bX4T"),r=_("YrtM"),h=_("TSYQ"),a=_.n(h),l=_("+nKL"),d=_("8OUc"),y=function(Y,W){var Q=Y.prefixCls,ie=Y.id,Ee=Y.flattenOptions,pe=Y.childrenAsData,De=Y.values,Me=Y.searchValue,Ue=Y.multiple,Ie=Y.defaultActiveFirstOption,ne=Y.height,B=Y.itemHeight,z=Y.notFoundContent,H=Y.open,ee=Y.menuItemSelectedIcon,X=Y.virtual,me=Y.onSelect,je=Y.onToggleOpen,Je=Y.onActiveValue,oe=Y.onScroll,Ae=Y.onMouseEnter,ye="".concat(Q,"-item"),Le=Object(r.a)(function(){return Ee},[H,Ee],function(se,le){return le[0]&&se[1]!==le[1]}),We=c.useRef(null),Xe=function(le){le.preventDefault()},ct=function(le){We.current&&We.current.scrollTo({index:le})},lt=function(le){for(var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Re=Le.length,ce=0;ce<Re;ce+=1){var he=(le+ce*fe+Re)%Re,Se=Le[he],we=Se.group,Ze=Se.data;if(!we&&!Ze.disabled)return he}return-1},St=c.useState(function(){return lt(0)}),Dt=Object(g.a)(St,2),bt=Dt[0],ht=Dt[1],Ut=function(le){ht(le);var fe=Le[le];if(!fe){Je(null,-1);return}Je(fe.data.value,le)};c.useEffect(function(){Ut(Ie!==!1?lt(0):-1)},[Le.length,Me]),c.useEffect(function(){var se=setTimeout(function(){if(!Ue&&H&&De.size===1){var le=Array.from(De)[0],fe=Le.findIndex(function(Re){var ce=Re.data;return ce.value===le});Ut(fe),ct(fe)}});return function(){return clearTimeout(se)}},[H]);var Ft=function(le){le!==void 0&&me(le,{selected:!De.has(le)}),Ue||je(!1)};if(c.useImperativeHandle(W,function(){return{onKeyDown:function(le){var fe=le.which;switch(fe){case e.a.UP:case e.a.DOWN:{var Re=0;if(fe===e.a.UP?Re=-1:fe===e.a.DOWN&&(Re=1),Re!==0){var ce=lt(bt+Re,Re);ct(ce),Ut(ce)}break}case e.a.ENTER:{var he=Le[bt];he&&!he.data.disabled?Ft(he.data.value):Ft(void 0),H&&le.preventDefault();break}case e.a.ESC:je(!1)}},onKeyUp:function(){},scrollTo:function(le){ct(le)}}}),Le.length===0)return c.createElement("div",{role:"listbox",id:"".concat(ie,"_list"),className:"".concat(ye,"-empty"),onMouseDown:Xe},z);function ve(se){var le=Le[se];if(!le)return null;var fe=le.data||{},Re=fe.value,ce=fe.label,he=fe.children,Se=Object(m.a)(fe,!0),we=pe?he:ce;return le?c.createElement("div",Object.assign({"aria-label":typeof we=="string"?we:null},Se,{key:se,role:"option",id:"".concat(ie,"_list_").concat(se),"aria-selected":De.has(Re)}),Re):null}return c.createElement(c.Fragment,null,c.createElement("div",{role:"listbox",id:"".concat(ie,"_list"),style:{height:0,width:0,overflow:"hidden"}},ve(bt-1),ve(bt),ve(bt+1)),c.createElement(l.a,{itemKey:"key",ref:We,data:Le,height:ne,itemHeight:B,fullHeight:!1,onMouseDown:Xe,onScroll:oe,virtual:X,onMouseEnter:Ae},function(se,le){var fe,Re=se.group,ce=se.groupOption,he=se.data,Se=he.label,we=he.key;if(Re)return c.createElement("div",{className:a()(ye,"".concat(ye,"-group"))},Se!==void 0?Se:we);var Ze=he.disabled,Ye=he.value,it=he.title,Et=he.children,Pt=he.style,zt=he.className,Rt=Object(M.a)(he,["disabled","value","title","children","style","className"]),rt=De.has(Ye),st="".concat(ye,"-option"),qe=a()(ye,st,zt,(fe={},Object(u.a)(fe,"".concat(st,"-grouped"),ce),Object(u.a)(fe,"".concat(st,"-active"),bt===le&&!Ze),Object(u.a)(fe,"".concat(st,"-disabled"),Ze),Object(u.a)(fe,"".concat(st,"-selected"),rt),fe)),Ce=pe?Et:Se,Be=!ee||typeof ee=="function"||rt;return c.createElement("div",Object.assign({},Rt,{"aria-selected":rt,className:qe,title:it,onMouseMove:function(){if(bt===le||Ze)return;Ut(le)},onClick:function(){Ze||Ft(Ye)},style:Pt}),c.createElement("div",{className:"".concat(st,"-content")},Ce||Ye),c.isValidElement(ee)||rt,Be&&c.createElement(d.a,{className:"".concat(ye,"-option-state"),customizeIcon:ee,customizeIconProps:{isSelected:rt}},rt?"\u2713":null))}))},s=c.forwardRef(y);s.displayName="OptionList";var p=s,n=function(){return null};n.isSelectOption=!0;var i=n,v=function(){return null};v.isSelectOptGroup=!0;var C=v,R=_("VTBJ"),w=_("Zm9Q");function x(j){var Y=j.key,W=j.props,Q=W.children,ie=W.value,Ee=Object(M.a)(W,["children","value"]);return Object(R.a)({key:Y,value:ie!==void 0?ie:Y,children:Q},Ee)}function A(j){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Object(w.a)(j).map(function(W,Q){if(!c.isValidElement(W)||!W.type)return null;var ie=W.type.isSelectOptGroup,Ee=W.key,pe=W.props,De=pe.children,Me=Object(M.a)(pe,["children"]);return Y||!ie?x(W):Object(R.a)(Object(R.a)({key:"__RC_SELECT_GRP__".concat(Ee===null?Q:Ee,"__"),label:Ee},Me),{},{options:A(De)})}).filter(function(W){return W})}var o=_("2Qr1"),f=_("qNPg"),E=_("U8pU"),O=_("Kwbf"),S=_("WKfj");function b(j){var Y=j.mode,W=j.options,Q=j.children,ie=j.backfill,Ee=j.allowClear,pe=j.placeholder,De=j.getInputElement,Me=j.showSearch,Ue=j.onSearch,Ie=j.defaultOpen,ne=j.autoFocus,B=j.labelInValue,z=j.value,H=j.inputValue,ee=j.optionLabelProp,X=Y==="multiple"||Y==="tags",me=Me!==void 0?Me:X||Y==="combobox",je=W||A(Q);if(Object(O.a)(Y!=="tags"||je.every(function(ye){return!ye.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Y==="tags"||Y==="combobox"){var Je=je.some(function(ye){return ye.options?ye.options.some(function(Le){return typeof("value"in Le?Le.value:Le.key)=="number"}):typeof("value"in ye?ye.value:ye.key)=="number"});Object(O.a)(!Je,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(O.a)(Y!=="combobox"||!ee,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(O.a)(Y==="combobox"||!ie,"`backfill` only works with `combobox` mode."),Object(O.a)(Y==="combobox"||!De,"`getInputElement` only work with `combobox` mode."),Object(O.b)(Y!=="combobox"||!De||!Ee||!pe,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Ue&&!me&&Y!=="combobox"&&Y!=="tags"&&Object(O.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(O.b)(!Ie||ne,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),z!=null){var oe=Object(S.d)(z);Object(O.a)(!B||oe.every(function(ye){return Object(E.a)(ye)==="object"&&("key"in ye||"value"in ye)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(O.a)(!X||Array.isArray(z),"`value` should be array when `mode` is `multiple` or `tags`")}if(Q){var Ae=null;Object(w.a)(Q).some(function(ye){if(!c.isValidElement(ye)||!ye.type)return!1;var Le=ye.type;if(Le.isSelectOption)return!1;if(Le.isSelectOptGroup){var We=Object(w.a)(ye.props.children).every(function(Xe){return!c.isValidElement(Xe)||!ye.type||Xe.type.isSelectOption?!0:(Ae=Xe.type,!1)});return!We}return Ae=Le,!0}),Ae&&Object(O.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ae.displayName||Ae.name||Ae,"`.")),Object(O.a)(H===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var D=b,P=Object(f.a)({prefixCls:"rc-select",components:{optionList:p},convertChildrenToData:A,flattenOptions:o.d,getLabeledValue:o.e,filterOptions:o.b,isValueDisabled:o.g,findValueOption:o.c,warningProps:D,fillOptionsWithMissingValue:o.a}),I=function(j){Object(L.a)(W,j);var Y=Object(N.a)(W);function W(){var Q;return Object(Z.a)(this,W),Q=Y.apply(this,arguments),Q.selectRef=c.createRef(),Q.focus=function(){Q.selectRef.current.focus()},Q.blur=function(){Q.selectRef.current.blur()},Q}return Object(U.a)(W,[{key:"render",value:function(){return c.createElement(P,Object.assign({ref:this.selectRef},this.props))}}]),W}(c.Component);I.Option=i,I.OptGroup=C;var F=I,K=q.c=F},LzVc:function(ge,q,_){ge.exports=_.p+"static/r.18202e40.svg"},MEGo:function(ge,q,_){var Z=_("4fz+"),U=_("Dagg"),L=_("dqUG"),N=_("2fw6"),c=_("x6Kt"),u=_("rmlV"),M=_("yxFR"),g=_("y+Vt"),e=_("h7HQ"),m=_("1Jh7"),r=_("SKnc"),h=_("K2GJ"),a=_("Fofx"),l=_("NC18"),d=l.createFromString,y=_("bYtY"),s=y.isString,p=y.extend,n=y.defaults,i=y.trim,v=y.each,C=/[\s,]+/;function R(W){if(s(W)){var Q=new DOMParser;W=Q.parseFromString(W,"text/xml")}for(W.nodeType===9&&(W=W.firstChild);W.nodeName.toLowerCase()!=="svg"||W.nodeType!==1;)W=W.nextSibling;return W}function w(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}w.prototype.parse=function(W,Q){Q=Q||{};var ie=R(W);if(!ie)throw new Error("Illegal svg");var Ee=new Z;this._root=Ee;var pe=ie.getAttribute("viewBox")||"",De=parseFloat(ie.getAttribute("width")||Q.width),Me=parseFloat(ie.getAttribute("height")||Q.height);isNaN(De)&&(De=null),isNaN(Me)&&(Me=null),S(ie,Ee,null,!0);for(var Ue=ie.firstChild;Ue;)this._parseNode(Ue,Ee),Ue=Ue.nextSibling;var Ie,ne;if(pe){var B=i(pe).split(C);B.length>=4&&(Ie={x:parseFloat(B[0]||0),y:parseFloat(B[1]||0),width:parseFloat(B[2]),height:parseFloat(B[3])})}if(Ie&&De!=null&&Me!=null&&(ne=j(Ie,De,Me),!Q.ignoreViewBox)){var z=Ee;Ee=new Z,Ee.add(z),z.scale=ne.scale.slice(),z.position=ne.position.slice()}return!Q.ignoreRootClip&&De!=null&&Me!=null&&Ee.setClipPath(new c({shape:{x:0,y:0,width:De,height:Me}})),{root:Ee,width:De,height:Me,viewBoxRect:Ie,viewBoxTransform:ne}},w.prototype._parseNode=function(W,Q){var ie=W.nodeName.toLowerCase();ie==="defs"?this._isDefine=!0:ie==="text"&&(this._isText=!0);var Ee;if(this._isDefine){var pe=A[ie];if(pe){var De=pe.call(this,W),Me=W.getAttribute("id");Me&&(this._defs[Me]=De)}}else{var pe=x[ie];pe&&(Ee=pe.call(this,W,Q),Q.add(Ee))}for(var Ue=W.firstChild;Ue;)Ue.nodeType===1&&this._parseNode(Ue,Ee),Ue.nodeType===3&&this._isText&&this._parseText(Ue,Ee),Ue=Ue.nextSibling;ie==="defs"?this._isDefine=!1:ie==="text"&&(this._isText=!1)},w.prototype._parseText=function(W,Q){if(W.nodeType===1){var ie=W.getAttribute("dx")||0,Ee=W.getAttribute("dy")||0;this._textX+=parseFloat(ie),this._textY+=parseFloat(Ee)}var pe=new L({style:{text:W.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});f(Q,pe),S(W,pe,this._defs);var De=pe.style.fontSize;De&&De<9&&(pe.style.fontSize=9,pe.scale=pe.scale||[1,1],pe.scale[0]*=De/9,pe.scale[1]*=De/9);var Me=pe.getBoundingRect();return this._textX+=Me.width,Q.add(pe),pe};var x={g:function(W,Q){var ie=new Z;return f(Q,ie),S(W,ie,this._defs),ie},rect:function(W,Q){var ie=new c;return f(Q,ie),S(W,ie,this._defs),ie.setShape({x:parseFloat(W.getAttribute("x")||0),y:parseFloat(W.getAttribute("y")||0),width:parseFloat(W.getAttribute("width")||0),height:parseFloat(W.getAttribute("height")||0)}),ie},circle:function(W,Q){var ie=new N;return f(Q,ie),S(W,ie,this._defs),ie.setShape({cx:parseFloat(W.getAttribute("cx")||0),cy:parseFloat(W.getAttribute("cy")||0),r:parseFloat(W.getAttribute("r")||0)}),ie},line:function(W,Q){var ie=new M;return f(Q,ie),S(W,ie,this._defs),ie.setShape({x1:parseFloat(W.getAttribute("x1")||0),y1:parseFloat(W.getAttribute("y1")||0),x2:parseFloat(W.getAttribute("x2")||0),y2:parseFloat(W.getAttribute("y2")||0)}),ie},ellipse:function(W,Q){var ie=new u;return f(Q,ie),S(W,ie,this._defs),ie.setShape({cx:parseFloat(W.getAttribute("cx")||0),cy:parseFloat(W.getAttribute("cy")||0),rx:parseFloat(W.getAttribute("rx")||0),ry:parseFloat(W.getAttribute("ry")||0)}),ie},polygon:function(W,Q){var ie=W.getAttribute("points");ie&&(ie=E(ie));var Ee=new e({shape:{points:ie||[]}});return f(Q,Ee),S(W,Ee,this._defs),Ee},polyline:function(W,Q){var ie=new g;f(Q,ie),S(W,ie,this._defs);var Ee=W.getAttribute("points");Ee&&(Ee=E(Ee));var pe=new m({shape:{points:Ee||[]}});return pe},image:function(W,Q){var ie=new U;return f(Q,ie),S(W,ie,this._defs),ie.setStyle({image:W.getAttribute("xlink:href"),x:W.getAttribute("x"),y:W.getAttribute("y"),width:W.getAttribute("width"),height:W.getAttribute("height")}),ie},text:function(W,Q){var ie=W.getAttribute("x")||0,Ee=W.getAttribute("y")||0,pe=W.getAttribute("dx")||0,De=W.getAttribute("dy")||0;this._textX=parseFloat(ie)+parseFloat(pe),this._textY=parseFloat(Ee)+parseFloat(De);var Me=new Z;return f(Q,Me),S(W,Me,this._defs),Me},tspan:function(W,Q){var ie=W.getAttribute("x"),Ee=W.getAttribute("y");ie!=null&&(this._textX=parseFloat(ie)),Ee!=null&&(this._textY=parseFloat(Ee));var pe=W.getAttribute("dx")||0,De=W.getAttribute("dy")||0,Me=new Z;return f(Q,Me),S(W,Me,this._defs),this._textX+=pe,this._textY+=De,Me},path:function(W,Q){var ie=W.getAttribute("d")||"",Ee=d(ie);return f(Q,Ee),S(W,Ee,this._defs),Ee}},A={lineargradient:function(W){var Q=parseInt(W.getAttribute("x1")||0,10),ie=parseInt(W.getAttribute("y1")||0,10),Ee=parseInt(W.getAttribute("x2")||10,10),pe=parseInt(W.getAttribute("y2")||0,10),De=new r(Q,ie,Ee,pe);return o(W,De),De},radialgradient:function(W){}};function o(W,Q){for(var ie=W.firstChild;ie;){if(ie.nodeType===1){var Ee=ie.getAttribute("offset");Ee.indexOf("%")>0?Ee=parseInt(Ee,10)/100:Ee?Ee=parseFloat(Ee):Ee=0;var pe=ie.getAttribute("stop-color")||"#000000";Q.addColorStop(Ee,pe)}ie=ie.nextSibling}}function f(W,Q){W&&W.__inheritedStyle&&(Q.__inheritedStyle||(Q.__inheritedStyle={}),n(Q.__inheritedStyle,W.__inheritedStyle))}function E(W){for(var Q=i(W).split(C),ie=[],Ee=0;Ee<Q.length;Ee+=2){var pe=parseFloat(Q[Ee]),De=parseFloat(Q[Ee+1]);ie.push([pe,De])}return ie}var O={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-align":"textAlign","alignment-baseline":"textBaseline"};function S(W,Q,ie,Ee){var pe=Q.__inheritedStyle||{},De=Q.type==="text";if(W.nodeType===1&&(I(W,Q),p(pe,K(W)),!Ee)){for(var Me in O)if(O.hasOwnProperty(Me)){var Ue=W.getAttribute(Me);Ue!=null&&(pe[O[Me]]=Ue)}}var Ie=De?"textFill":"fill",ne=De?"textStroke":"stroke";Q.style=Q.style||new h;var B=Q.style;pe.fill!=null&&B.set(Ie,D(pe.fill,ie)),pe.stroke!=null&&B.set(ne,D(pe.stroke,ie)),v(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(z){var H=z==="lineWidth"&&De?"textStrokeWidth":z;pe[z]!=null&&B.set(H,parseFloat(pe[z]))}),(!pe.textBaseline||pe.textBaseline==="auto")&&(pe.textBaseline="alphabetic"),pe.textBaseline==="alphabetic"&&(pe.textBaseline="bottom"),pe.textAlign==="start"&&(pe.textAlign="left"),pe.textAlign==="end"&&(pe.textAlign="right"),v(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign","textBaseline"],function(z){pe[z]!=null&&B.set(z,pe[z])}),pe.lineDash&&(Q.style.lineDash=i(pe.lineDash).split(C)),B[ne]&&B[ne]!=="none"&&(Q[ne]=!0),Q.__inheritedStyle=pe}var b=/url\(\s*#(.*?)\)/;function D(W,Q){var ie=Q&&W&&W.match(b);if(ie){var Ee=i(ie[1]),pe=Q[Ee];return pe}return W}var P=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g;function I(W,Q){var ie=W.getAttribute("transform");if(ie){ie=ie.replace(/,/g," ");var Ee=null,pe=[];ie.replace(P,function(Ie,ne,B){pe.push(ne,B)});for(var De=pe.length-1;De>0;De-=2){var Me=pe[De],Ue=pe[De-1];Ee=Ee||a.create();switch(Ue){case"translate":Me=i(Me).split(C),a.translate(Ee,Ee,[parseFloat(Me[0]),parseFloat(Me[1]||0)]);break;case"scale":Me=i(Me).split(C),a.scale(Ee,Ee,[parseFloat(Me[0]),parseFloat(Me[1]||Me[0])]);break;case"rotate":Me=i(Me).split(C),a.rotate(Ee,Ee,parseFloat(Me[0]));break;case"skew":Me=i(Me).split(C),console.warn("Skew transform is not supported yet");break;case"matrix":var Me=i(Me).split(C);Ee[0]=parseFloat(Me[0]),Ee[1]=parseFloat(Me[1]),Ee[2]=parseFloat(Me[2]),Ee[3]=parseFloat(Me[3]),Ee[4]=parseFloat(Me[4]),Ee[5]=parseFloat(Me[5]);break}}Q.setLocalTransform(Ee)}}var F=/([^\s:;]+)\s*:\s*([^:;]+)/g;function K(W){var Q=W.getAttribute("style"),ie={};if(!Q)return ie;var Ee={};F.lastIndex=0;for(var pe;(pe=F.exec(Q))!=null;)Ee[pe[1]]=pe[2];for(var De in O)O.hasOwnProperty(De)&&Ee[De]!=null&&(ie[O[De]]=Ee[De]);return ie}function j(W,Q,ie){var Ee=Q/W.width,pe=ie/W.height,De=Math.min(Ee,pe),Me=[De,De],Ue=[-(W.x+W.width/2)*De+Q/2,-(W.y+W.height/2)*De+ie/2];return{scale:Me,position:Ue}}function Y(W,Q){var ie=new w;return ie.parse(W,Q)}q.parseXML=R,q.makeViewBoxTransform=j,q.parseSVG=Y},MEgm:function(ge,q){ge.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALAAAAA8CAYAAADGxTD9AAAAAXNSR0IArs4c6QAAFoFJREFUeF7tXQl4k1W6fv8sTbqvlJa2tJSy74ugsiMqq4AKIlDUueNwR2dGHR0XdLwixW3uuF6Xq3O9o15nxuUiIIsCsijK1pa20NJ937eke5tmmec7f/40TfInaUNK6+R7nj5Jk7Of93z/t55w8JBnBYbwCnBDeOyeoXtWAB4Ae0AwpFeA+1SWbbA1A07KQSID6JWT0ivAyThIpBwgBSQy4+fCq0T4jANnrEdlWFkpjK/0ndAetd/znpMaTO0LZcz74tsxti0xjqVXfeNYZcZyxvHSuK3GbDYX03iMbbLy5nOz+pzGbGDrwpfj52DQG2DQAwad8Gcwvudf9ToDQN/pDdBrDYBFWfqMry/UAytP9fjPjJ/rYVHf2L7Qph4GaA0tOj1UnBYqvd6gMugMKr0OKoOOq+UMhhQ5DGfHPRNWMaSRaxy8bQBzPGAZAI3AFMAoAIJtnBnA2WaagdlU39iOAKKeje85FKY2TYDkwWh+APi2ebD0AJ8HMn/AzAHFA4x9Jxwss7bN5yXUpbnwB4SvY3Nu9LmwLr36NIKWAEhA1BlMgOUBCAZYBtJe761Byx+A3vV54Av1efDrtUawm4G+N+D5MfUcHH5s7H890KnqNjRWNGkaqlXqhgp1VV1JwxkOSJUAqUB0xk4s0Q4FgIty4KEweM8Yba+ARCmBzBuQeksgVXKQKugVkAdIoRwhhU+EHJycg0GrNz01Whs6UJhegtLsCmi7tI0GYC8H7osYTPhuO2Z3D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1Y6FIC7q5dSPzcw4Gv8iZ4mnNtBQp0l9BlcHzFAAeu0h8B48V+JdQjQri2D57a/VyBBkMNanSOw1WNCt0bSUh82FZXHgD3cwM81VxbAT10yNWlQm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},MI8n:function(ge,q,_){"use strict";_.d(q,"c",function(){return c}),_.d(q,"b",function(){return e}),_.d(q,"e",function(){return m}),_.d(q,"a",function(){return r}),_.d(q,"d",function(){return h}),_.d(q,"f",function(){return a});var Z=_("/cxE"),U=_("pmY6"),L=_("24hK"),N=_("5Y4S"),c;(function(l){l.None=()=>U.a.None;function d(b){return(D,P=null,I)=>{let F=!1,K;return K=b(j=>F?void 0:(K?K.dispose():F=!0,D.call(P,j)),null,I),F&&K.dispose(),K}}l.once=d;function y(b,D){return C((P,I=null,F)=>b(K=>P.call(I,D(K)),null,F))}l.map=y;function s(b,D){return C((P,I=null,F)=>b(K=>{D(K),P.call(I,K)},null,F))}l.forEach=s;function p(b,D){return C((P,I=null,F)=>b(K=>D(K)&&P.call(I,K),null,F))}l.filter=p;function n(b){return b}l.signal=n;function i(...b){return(D,P=null,I)=>Object(U.e)(...b.map(F=>F(K=>D.call(P,K),null,I)))}l.any=i;function v(b,D,P){let I=P;return y(b,F=>(I=D(I,F),I))}l.reduce=v;function C(b){let D;const P=new e({onFirstListenerAdd(){D=b(P.fire,P)},onLastListenerRemove(){D.dispose()}});return P.event}function R(b,D,P=100,I=!1,F){let K,j,Y,W=0;const Q=new e({leakWarningThreshold:F,onFirstListenerAdd(){K=b(ie=>{W++,j=D(j,ie),I&&!Y&&(Q.fire(j),j=void 0),clearTimeout(Y),Y=setTimeout(()=>{const Ee=j;j=void 0,Y=void 0,(!I||W>1)&&Q.fire(Ee),W=0},P)})},onLastListenerRemove(){K.dispose()}});return Q.event}l.debounce=R;function w(b,D=(P,I)=>P===I){let P=!0,I;return p(b,F=>{const K=P||!D(F,I);return P=!1,I=F,K})}l.latch=w;function x(b,D){return[l.filter(b,D),l.filter(b,P=>!D(P))]}l.split=x;function A(b,D=!1,P=[]){let I=P.slice(),F=b(Y=>{I?I.push(Y):j.fire(Y)});const K=()=>{I&&I.forEach(Y=>j.fire(Y)),I=null},j=new e({onFirstListenerAdd(){F||(F=b(Y=>j.fire(Y)))},onFirstListenerDidAdd(){I&&(D?setTimeout(K):K())},onLastListenerRemove(){F&&F.dispose(),F=null}});return j.event}l.buffer=A;class o{constructor(b){this.event=b}map(b){return new o(y(this.event,b))}forEach(b){return new o(s(this.event,b))}filter(b){return new o(p(this.event,b))}reduce(b,D){return new o(v(this.event,b,D))}latch(){return new o(w(this.event))}debounce(b,D=100,P=!1,I){return new o(R(this.event,b,D,P,I))}on(b,D,P){return this.event(b,D,P)}once(b,D,P){return d(this.event)(b,D,P)}}function f(b){return new o(b)}l.chain=f;function E(b,D,P=I=>I){const I=(...Y)=>j.fire(P(...Y)),F=()=>b.on(D,I),K=()=>b.removeListener(D,I),j=new e({onFirstListenerAdd:F,onLastListenerRemove:K});return j.event}l.fromNodeEventEmitter=E;function O(b,D,P=I=>I){const I=(...Y)=>j.fire(P(...Y)),F=()=>b.addEventListener(D,I),K=()=>b.removeEventListener(D,I),j=new e({onFirstListenerAdd:F,onLastListenerRemove:K});return j.event}l.fromDOMEventEmitter=O;function S(b){return new Promise(D=>d(b)(D))}l.toPromise=S})(c||(c={}));class u{constructor(l){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${l}_${u._idPool++}`}start(l){this._stopWatch=new N.a(!0),this._listenerCount=l}stop(){if(this._stopWatch){const l=this._stopWatch.elapsed();this._elapsedOverall+=l,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${l.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}u._idPool=0;let M=-1;class g{constructor(l,d=Math.random().toString(18).slice(2,5)){this.customThreshold=l,this.name=d,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(l){let d=M;if(typeof this.customThreshold=="number"&&(d=this.customThreshold),d<=0||l<d)return;this._stacks||(this._stacks=new Map);const y=new Error().stack.split(`
`).slice(3).join(`
`),s=this._stacks.get(y)||0;if(this._stacks.set(y,s+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=d*.5;let p,n=0;for(const[i,v]of this._stacks)(!p||n<v)&&(p=i,n=v);console.warn(`[${this.name}] potential listener LEAK detected, having ${l} listeners already. MOST frequent listener (${n}):`),console.warn(p)}return()=>{const p=this._stacks.get(y)||0;this._stacks.set(y,p-1)}}}class e{constructor(l){var d;this._disposed=!1,this._options=l,this._leakageMon=M>0?new g(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=((d=this._options)===null||d===void 0?void 0:d._profName)?new u(this._options._profName):void 0}get event(){return this._event||(this._event=(l,d,y)=>{var s;this._listeners||(this._listeners=new L.a);const p=this._listeners.isEmpty();p&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const n=this._listeners.push(d?[l,d]:l);p&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,l,d);const i=(s=this._leakageMon)===null||s===void 0?void 0:s.check(this._listeners.size),v=Object(U.i)(()=>{if(i&&i(),!this._disposed&&(n(),this._options&&this._options.onLastListenerRemove)){const C=this._listeners&&!this._listeners.isEmpty();C||this._options.onLastListenerRemove(this)}});return y instanceof U.b?y.add(v):Array.isArray(y)&&y.push(v),v}),this._event}fire(l){var d,y;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new L.a);for(let s of this._listeners)this._deliveryQueue.push([s,l]);for((d=this._perfMon)===null||d===void 0||d.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[s,p]=this._deliveryQueue.shift();try{typeof s=="function"?s.call(void 0,p):s[0].call(s[1],p)}catch(n){Object(Z.f)(n)}}(y=this._perfMon)===null||y===void 0||y.stop()}}dispose(){var l,d,y,s,p;this._disposed||(this._disposed=!0,(l=this._listeners)===null||l===void 0||l.clear(),(d=this._deliveryQueue)===null||d===void 0||d.clear(),(s=(y=this._options)===null||y===void 0?void 0:y.onLastListenerRemove)===null||s===void 0||s.call(y),(p=this._leakageMon)===null||p===void 0||p.dispose())}}class m extends e{constructor(l){super(l);this._isPaused=0,this._eventQueue=new L.a,this._mergeFn=l==null?void 0:l.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const l=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(l))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(l){this._listeners&&(this._isPaused!==0?this._eventQueue.push(l):super.fire(l))}}class r extends m{constructor(l){var d;super(l);this._delay=(d=l.delay)!==null&&d!==void 0?d:100}fire(l){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(l)}}class h{constructor(){this.buffers=[]}wrapEvent(l){return(d,y,s)=>l(p=>{const n=this.buffers[this.buffers.length-1];n?n.push(()=>d.call(y,p)):d.call(y,p)},void 0,s)}bufferEvents(l){const d=[];this.buffers.push(d);const y=l();return this.buffers.pop(),d.forEach(s=>s()),y}}class a{constructor(){this.listening=!1,this.inputEvent=c.None,this.inputEventListener=U.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(l){this.inputEvent=l,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=l(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},MKOG:function(ge,q,_){var Z=_("bYtY"),U=_("YH21"),L=U.Dispatcher,N=_("mLcG"),c=_("Bq2U"),u=function(g){g=g||{},this.stage=g.stage||{},this.onframe=g.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,L.call(this)};u.prototype={constructor:u,addClip:function(g){this._clips.push(g)},addAnimator:function(g){g.animation=this;for(var e=g.getClips(),m=0;m<e.length;m++)this.addClip(e[m])},removeClip:function(g){var e=Z.indexOf(this._clips,g);e>=0&&this._clips.splice(e,1)},removeAnimator:function(g){for(var e=g.getClips(),m=0;m<e.length;m++)this.removeClip(e[m]);g.animation=null},_update:function(){for(var g=new Date().getTime()-this._pausedTime,e=g-this._time,m=this._clips,r=m.length,h=[],a=[],l=0;l<r;l++){var d=m[l],y=d.step(g,e);y&&(h.push(y),a.push(d))}for(var l=0;l<r;)m[l]._needsRemove?(m[l]=m[r-1],m.pop(),r--):l++;r=h.length;for(var l=0;l<r;l++)a[l].fire(h[l]);this._time=g,this.onframe(e),this.trigger("frame",e),this.stage.update&&this.stage.update()},_startLoop:function(){var g=this;this._running=!0;function e(){g._running&&(N(e),!g._paused&&g._update())}N(e)},start:function(){this._time=new Date().getTime(),this._pausedTime=0,this._startLoop()},stop:function(){this._running=!1},pause:function(){this._paused||(this._pauseStart=new Date().getTime(),this._paused=!0)},resume:function(){this._paused&&(this._pausedTime+=new Date().getTime()-this._pauseStart,this._paused=!1)},clear:function(){this._clips=[]},isFinished:function(){return!this._clips.length},animate:function(g,e){e=e||{};var m=new c(g,e.loop,e.getter,e.setter);return this.addAnimator(m),m}},Z.mixin(u,L);var M=u;ge.exports=M},MNsG:function(ge,q,_){"use strict";(function(Z,U){_.d(q,"b",function(){return y}),_.d(q,"i",function(){return i}),_.d(q,"f",function(){return v}),_.d(q,"d",function(){return C}),_.d(q,"g",function(){return R}),_.d(q,"h",function(){return w}),_.d(q,"c",function(){return x}),_.d(q,"k",function(){return A}),_.d(q,"j",function(){return o}),_.d(q,"a",function(){return f}),_.d(q,"e",function(){return S});var L;const N="en";let c=!1,u=!1,M=!1,g=!1,e=!1,m=!1,r=!1,h,a=N,l,d;const y=typeof self=="object"?self:typeof Z=="object"?Z:{};let s;typeof y.vscode!="undefined"&&typeof y.vscode.process!="undefined"?s=y.vscode.process:typeof U!="undefined"&&(s=U);const p=typeof((L=s==null?void 0:s.versions)===null||L===void 0?void 0:L.electron)=="string"&&s.type==="renderer";if(typeof navigator=="object"&&!p)d=navigator.userAgent,c=d.indexOf("Windows")>=0,u=d.indexOf("Macintosh")>=0,r=(d.indexOf("Macintosh")>=0||d.indexOf("iPad")>=0||d.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,M=d.indexOf("Linux")>=0,m=!0,h=navigator.language,a=h;else if(typeof s=="object"){c=s.platform==="win32",u=s.platform==="darwin",M=s.platform==="linux",g=M&&!!s.env.SNAP&&!!s.env.SNAP_REVISION,h=N,a=N;const b=s.env.VSCODE_NLS_CONFIG;if(b)try{const D=JSON.parse(b),P=D.availableLanguages["*"];h=D.locale,a=P||N,l=D._translationsConfigFile}catch(D){}e=!0}else console.error("Unable to resolve platform.");let n=0;u?n=1:c?n=3:M&&(n=2);const i=c,v=u,C=M,R=e,w=m,x=r,A=d,o=function(){if(y.setImmediate)return y.setImmediate.bind(y);if(typeof y.postMessage=="function"&&!y.importScripts){let P=[];y.addEventListener("message",F=>{if(F.data&&F.data.vscodeSetImmediateId)for(let K=0,j=P.length;K<j;K++){const Y=P[K];if(Y.id===F.data.vscodeSetImmediateId){P.splice(K,1),Y.callback();return}}});let I=0;return F=>{const K=++I;P.push({id:K,callback:F}),y.postMessage({vscodeSetImmediateId:K},"*")}}if(typeof(s==null?void 0:s.nextTick)=="function")return s.nextTick.bind(s);const D=Promise.resolve();return P=>D.then(P)}(),f=u||r?2:c?1:3;let E=!0,O=!1;function S(){if(!O){O=!0;const b=new Uint8Array(2);b[0]=1,b[1]=2;const D=new Uint16Array(b.buffer);E=D[0]===(2<<8)+1}return E}}).call(this,_("IyRk"),_("Q2Ig"))},"Ma/C":function(ge,q,_){ge.exports={Onerow:"Onerow___3rS0R",MultiLine:"MultiLine___5JnZU",Bg:"Bg___3qkZW",DivDownPlay:"DivDownPlay___2at_k",SearchInput:"SearchInput___1u83l",CoreItem:"CoreItem___1bUEc",img:"img___1sejS"}},N0LK:function(ge,q,_){"use strict";_.d(q,"C",function(){return Z}),_.d(q,"v",function(){return L}),_.d(q,"s",function(){return N}),_.d(q,"t",function(){return c}),_.d(q,"U",function(){return u}),_.d(q,"J",function(){return M}),_.d(q,"O",function(){return g}),_.d(q,"p",function(){return e}),_.d(q,"T",function(){return m}),_.d(q,"q",function(){return r}),_.d(q,"N",function(){return h}),_.d(q,"M",function(){return a}),_.d(q,"Q",function(){return l}),_.d(q,"u",function(){return d}),_.d(q,"x",function(){return y}),_.d(q,"I",function(){return s}),_.d(q,"f",function(){return p}),_.d(q,"h",function(){return n}),_.d(q,"g",function(){return i}),_.d(q,"i",function(){return v}),_.d(q,"G",function(){return C}),_.d(q,"H",function(){return R}),_.d(q,"r",function(){return w}),_.d(q,"R",function(){return x}),_.d(q,"d",function(){return A}),_.d(q,"e",function(){return o}),_.d(q,"E",function(){return f}),_.d(q,"F",function(){return E}),_.d(q,"j",function(){return O}),_.d(q,"z",function(){return S}),_.d(q,"K",function(){return D}),_.d(q,"L",function(){return P}),_.d(q,"m",function(){return F}),_.d(q,"k",function(){return j}),_.d(q,"A",function(){return W}),_.d(q,"a",function(){return Q}),_.d(q,"n",function(){return ie}),_.d(q,"l",function(){return Ee}),_.d(q,"D",function(){return pe}),_.d(q,"B",function(){return De}),_.d(q,"b",function(){return Me}),_.d(q,"S",function(){return Ue}),_.d(q,"o",function(){return Ie}),_.d(q,"P",function(){return ne}),_.d(q,"w",function(){return B}),_.d(q,"c",function(){return z}),_.d(q,"y",function(){return X});function Z(oe){return!oe||typeof oe!="string"?!0:oe.trim().length===0}const U=/{(\d+)}/g;function L(oe,...Ae){return Ae.length===0?oe:oe.replace(U,function(ye,Le){const We=parseInt(Le,10);return isNaN(We)||We<0||We>=Ae.length?ye:Ae[We]})}function N(oe){return oe.replace(/[<>&]/g,function(Ae){switch(Ae){case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";default:return Ae}})}function c(oe){return oe.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function u(oe,Ae=" "){const ye=M(oe,Ae);return g(ye,Ae)}function M(oe,Ae){if(!oe||!Ae)return oe;const ye=Ae.length;if(ye===0||oe.length===0)return oe;let Le=0;for(;oe.indexOf(Ae,Le)===Le;)Le=Le+ye;return oe.substring(Le)}function g(oe,Ae){if(!oe||!Ae)return oe;const ye=Ae.length,Le=oe.length;if(ye===0||Le===0)return oe;let We=Le,Xe=-1;for(;!(Xe=oe.lastIndexOf(Ae,We-1),Xe===-1||Xe+ye!==We);){if(Xe===0)return"";We=Xe}return oe.substring(0,We)}function e(oe){return oe.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function m(oe){return oe.replace(/\*/g,"")}function r(oe,Ae,ye={}){if(!oe)throw new Error("Cannot create regex from empty string");Ae||(oe=c(oe)),ye.wholeWord&&(/\B/.test(oe.charAt(0))||(oe="\\b"+oe),/\B/.test(oe.charAt(oe.length-1))||(oe=oe+"\\b"));let Le="";return ye.global&&(Le+="g"),ye.matchCase||(Le+="i"),ye.multiline&&(Le+="m"),ye.unicode&&(Le+="u"),new RegExp(oe,Le)}function h(oe){if(oe.source==="^"||oe.source==="^$"||oe.source==="$"||oe.source==="^\\s*$")return!1;const Ae=oe.exec("");return!!(Ae&&oe.lastIndex===0)}function a(oe){return(oe.global?"g":"")+(oe.ignoreCase?"i":"")+(oe.multiline?"m":"")+(oe.unicode?"u":"")}function l(oe){return oe.split(/\r\n|\r|\n/)}function d(oe){for(let Ae=0,ye=oe.length;Ae<ye;Ae++){const Le=oe.charCodeAt(Ae);if(Le!==32&&Le!==9)return Ae}return-1}function y(oe,Ae=0,ye=oe.length){for(let Le=Ae;Le<ye;Le++){const We=oe.charCodeAt(Le);if(We!==32&&We!==9)return oe.substring(Ae,Le)}return oe.substring(Ae,ye)}function s(oe,Ae=oe.length-1){for(let ye=Ae;ye>=0;ye--){const Le=oe.charCodeAt(ye);if(Le!==32&&Le!==9)return ye}return-1}function p(oe,Ae){return oe<Ae?-1:oe>Ae?1:0}function n(oe,Ae,ye=0,Le=oe.length,We=0,Xe=Ae.length){for(;ye<Le&&We<Xe;ye++,We++){let St=oe.charCodeAt(ye),Dt=Ae.charCodeAt(We);if(St<Dt)return-1;if(St>Dt)return 1}const ct=Le-ye,lt=Xe-We;return ct<lt?-1:ct>lt?1:0}function i(oe,Ae){return v(oe,Ae,0,oe.length,0,Ae.length)}function v(oe,Ae,ye=0,Le=oe.length,We=0,Xe=Ae.length){for(;ye<Le&&We<Xe;ye++,We++){let St=oe.charCodeAt(ye),Dt=Ae.charCodeAt(We);if(St===Dt)continue;if(St>=128||Dt>=128)return n(oe.toLowerCase(),Ae.toLowerCase(),ye,Le,We,Xe);C(St)&&(St-=32),C(Dt)&&(Dt-=32);const bt=St-Dt;if(bt===0)continue;return bt}const ct=Le-ye,lt=Xe-We;return ct<lt?-1:ct>lt?1:0}function C(oe){return oe>=97&&oe<=122}function R(oe){return oe>=65&&oe<=90}function w(oe,Ae){return oe.length===Ae.length&&v(oe,Ae)===0}function x(oe,Ae){const ye=Ae.length;return Ae.length>oe.length?!1:v(oe,Ae,0,ye)===0}function A(oe,Ae){let ye,Le=Math.min(oe.length,Ae.length);for(ye=0;ye<Le;ye++)if(oe.charCodeAt(ye)!==Ae.charCodeAt(ye))return ye;return Le}function o(oe,Ae){let ye,Le=Math.min(oe.length,Ae.length);const We=oe.length-1,Xe=Ae.length-1;for(ye=0;ye<Le;ye++)if(oe.charCodeAt(We-ye)!==Ae.charCodeAt(Xe-ye))return ye;return Le}function f(oe){return 55296<=oe&&oe<=56319}function E(oe){return 56320<=oe&&oe<=57343}function O(oe,Ae){return(oe-55296<<10)+(Ae-56320)+65536}function S(oe,Ae,ye){const Le=oe.charCodeAt(ye);if(f(Le)&&ye+1<Ae){const We=oe.charCodeAt(ye+1);if(E(We))return O(Le,We)}return Le}function b(oe,Ae){const ye=oe.charCodeAt(Ae-1);if(E(ye)&&Ae>1){const Le=oe.charCodeAt(Ae-2);if(f(Le))return O(Le,ye)}return ye}function D(oe,Ae){const ye=H.getInstance(),Le=Ae,We=oe.length,Xe=S(oe,We,Ae);Ae+=Xe>=65536?2:1;let ct=ye.getGraphemeBreakType(Xe);for(;Ae<We;){const lt=S(oe,We,Ae),St=ye.getGraphemeBreakType(lt);if(z(ct,St))break;Ae+=lt>=65536?2:1,ct=St}return Ae-Le}function P(oe,Ae){const ye=H.getInstance(),Le=Ae,We=b(oe,Ae);Ae-=We>=65536?2:1;let Xe=ye.getGraphemeBreakType(We);for(;Ae>0;){const ct=b(oe,Ae),lt=ye.getGraphemeBreakType(ct);if(z(lt,Xe))break;Ae-=ct>=65536?2:1,Xe=lt}return Le-Ae}const I=/(?:[\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 F(oe){return I.test(oe)}const K=/(?:[\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 j(oe){return K.test(oe)}const Y=/^[\t\n\r\x20-\x7E]*$/;function W(oe){return Y.test(oe)}const Q=/[\u2028\u2029]/;function ie(oe){return Q.test(oe)}function Ee(oe){for(let Ae=0,ye=oe.length;Ae<ye;Ae++)if(pe(oe.charCodeAt(Ae)))return!0;return!1}function pe(oe){return oe=+oe,oe>=11904&&oe<=55215||oe>=63744&&oe<=64255||oe>=65281&&oe<=65374}function De(oe){return oe>=127462&&oe<=127487||oe===8986||oe===8987||oe===9200||oe===9203||oe>=9728&&oe<=10175||oe===11088||oe===11093||oe>=127744&&oe<=128591||oe>=128640&&oe<=128764||oe>=128992&&oe<=129003||oe>=129280&&oe<=129535||oe>=129648&&oe<=129750}const Me=String.fromCharCode(65279);function Ue(oe){return!!(oe&&oe.length>0&&oe.charCodeAt(0)===65279)}function Ie(oe,Ae=!1){return oe?(Ae&&(oe=oe.replace(/\\./g,"")),oe.toLowerCase()!==oe):!1}function ne(oe){const Ae=90-65+1;return oe=oe%(2*Ae),oe<Ae?String.fromCharCode(97+oe):String.fromCharCode(65+oe-Ae)}function B(oe){const Ae=H.getInstance();return Ae.getGraphemeBreakType(oe)}function z(oe,Ae){return oe===0?Ae!==5&&Ae!==7:oe===2&&Ae===3?!1:oe===4||oe===2||oe===3||(Ae===4||Ae===2||Ae===3)?!0:oe===8&&(Ae===8||Ae===9||Ae===11||Ae===12)||((oe===11||oe===9)&&(Ae===9||Ae===10)||((oe===12||oe===10)&&Ae===10||(Ae===5||Ae===13||(Ae===7||(oe===1||oe===13&&Ae===14)))))?!1:!(oe===6&&Ae===6)}class H{constructor(){this._data=ee()}static getInstance(){return H._INSTANCE||(H._INSTANCE=new H),H._INSTANCE}getGraphemeBreakType(oe){if(oe<32)return oe===10?3:oe===13?2:4;if(oe<127)return 0;const Ae=this._data,ye=Ae.length/3;let Le=1;for(;Le<=ye;)if(oe<Ae[3*Le])Le=2*Le;else if(oe>Ae[3*Le+1])Le=2*Le+1;else return Ae[3*Le+2];return 0}}H._INSTANCE=null;function ee(){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 X(oe,Ae){if(oe===0)return 0;const ye=me(oe,Ae);if(ye!==void 0)return ye;const Le=b(Ae,oe);return oe-=je(Le),oe}function me(oe,Ae){let ye=b(Ae,oe);for(oe-=je(ye);Je(ye)||ye===65039||ye===8419;){if(oe===0)return;ye=b(Ae,oe),oe-=je(ye)}if(!De(ye))return;if(oe>=0){const Le=b(Ae,oe);Le===8205&&(oe-=je(Le))}return oe}function je(oe){return oe>=65536?2:1}function Je(oe){return 127995<=oe&&oe<=127999}},NC18:function(ge,q,_){var Z=_("y+Vt"),U=_("IMiH"),L=_("7oTu"),N=Math.sqrt,c=Math.sin,u=Math.cos,M=Math.PI,g=function(n){return Math.sqrt(n[0]*n[0]+n[1]*n[1])},e=function(n,i){return(n[0]*i[0]+n[1]*i[1])/(g(n)*g(i))},m=function(n,i){return(n[0]*i[1]<n[1]*i[0]?-1:1)*Math.acos(e(n,i))};function r(n,i,v,C,R,w,x,A,o,f,E){var O=o*(M/180),S=u(O)*(n-v)/2+c(O)*(i-C)/2,b=-1*c(O)*(n-v)/2+u(O)*(i-C)/2,D=S*S/(x*x)+b*b/(A*A);D>1&&(x*=N(D),A*=N(D));var P=(R===w?-1:1)*N((x*x*(A*A)-x*x*(b*b)-A*A*(S*S))/(x*x*(b*b)+A*A*(S*S)))||0,I=P*x*b/A,F=P*-A*S/x,K=(n+v)/2+u(O)*I-c(O)*F,j=(i+C)/2+c(O)*I+u(O)*F,Y=m([1,0],[(S-I)/x,(b-F)/A]),W=[(S-I)/x,(b-F)/A],Q=[(-1*S-I)/x,(-1*b-F)/A],ie=m(W,Q);e(W,Q)<=-1&&(ie=M),e(W,Q)>=1&&(ie=0),w===0&&ie>0&&(ie=ie-2*M),w===1&&ie<0&&(ie=ie+2*M),E.addData(f,K,j,x,A,Y,ie,O,w)}var h=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,a=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function l(n){if(!n)return new U;for(var i=0,v=0,C=i,R=v,w,x=new U,A=U.CMD,o=n.match(h),f=0;f<o.length;f++){for(var E=o[f],O=E.charAt(0),S,b=E.match(a)||[],D=b.length,P=0;P<D;P++)b[P]=parseFloat(b[P]);for(var I=0;I<D;){var F,K,j,Y,W,Q,ie,Ee=i,pe=v;switch(O){case"l":i+=b[I++],v+=b[I++],S=A.L,x.addData(S,i,v);break;case"L":i=b[I++],v=b[I++],S=A.L,x.addData(S,i,v);break;case"m":i+=b[I++],v+=b[I++],S=A.M,x.addData(S,i,v),C=i,R=v,O="l";break;case"M":i=b[I++],v=b[I++],S=A.M,x.addData(S,i,v),C=i,R=v,O="L";break;case"h":i+=b[I++],S=A.L,x.addData(S,i,v);break;case"H":i=b[I++],S=A.L,x.addData(S,i,v);break;case"v":v+=b[I++],S=A.L,x.addData(S,i,v);break;case"V":v=b[I++],S=A.L,x.addData(S,i,v);break;case"C":S=A.C,x.addData(S,b[I++],b[I++],b[I++],b[I++],b[I++],b[I++]),i=b[I-2],v=b[I-1];break;case"c":S=A.C,x.addData(S,b[I++]+i,b[I++]+v,b[I++]+i,b[I++]+v,b[I++]+i,b[I++]+v),i+=b[I-2],v+=b[I-1];break;case"S":F=i,K=v;var De=x.len(),Me=x.data;w===A.C&&(F+=i-Me[De-4],K+=v-Me[De-3]),S=A.C,Ee=b[I++],pe=b[I++],i=b[I++],v=b[I++],x.addData(S,F,K,Ee,pe,i,v);break;case"s":F=i,K=v;var De=x.len(),Me=x.data;w===A.C&&(F+=i-Me[De-4],K+=v-Me[De-3]),S=A.C,Ee=i+b[I++],pe=v+b[I++],i+=b[I++],v+=b[I++],x.addData(S,F,K,Ee,pe,i,v);break;case"Q":Ee=b[I++],pe=b[I++],i=b[I++],v=b[I++],S=A.Q,x.addData(S,Ee,pe,i,v);break;case"q":Ee=b[I++]+i,pe=b[I++]+v,i+=b[I++],v+=b[I++],S=A.Q,x.addData(S,Ee,pe,i,v);break;case"T":F=i,K=v;var De=x.len(),Me=x.data;w===A.Q&&(F+=i-Me[De-4],K+=v-Me[De-3]),i=b[I++],v=b[I++],S=A.Q,x.addData(S,F,K,i,v);break;case"t":F=i,K=v;var De=x.len(),Me=x.data;w===A.Q&&(F+=i-Me[De-4],K+=v-Me[De-3]),i+=b[I++],v+=b[I++],S=A.Q,x.addData(S,F,K,i,v);break;case"A":j=b[I++],Y=b[I++],W=b[I++],Q=b[I++],ie=b[I++],Ee=i,pe=v,i=b[I++],v=b[I++],S=A.A,r(Ee,pe,i,v,Q,ie,j,Y,W,S,x);break;case"a":j=b[I++],Y=b[I++],W=b[I++],Q=b[I++],ie=b[I++],Ee=i,pe=v,i+=b[I++],v+=b[I++],S=A.A,r(Ee,pe,i,v,Q,ie,j,Y,W,S,x);break}}(O==="z"||O==="Z")&&(S=A.Z,x.addData(S),i=C,v=R),w=S}return x.toStatic(),x}function d(n,i){var v=l(n);return i=i||{},i.buildPath=function(C){if(C.setData){C.setData(v.data);var R=C.getContext();R&&C.rebuildPath(R)}else{var R=C;v.rebuildPath(R)}},i.applyTransform=function(C){L(v,C),this.dirty(!0)},i}function y(n,i){return new Z(d(n,i))}function s(n,i){return Z.extend(d(n,i))}function p(n,i){for(var v=[],C=n.length,R=0;R<C;R++){var w=n[R];w.path||w.createPathProxy(),w.__dirtyPath&&w.buildPath(w.path,w.shape,!0),v.push(w.path)}var x=new Z(i);return x.createPathProxy(),x.buildPath=function(A){A.appendPath(v);var o=A.getContext();o&&A.rebuildPath(o)},x}q.createFromString=y,q.extendFromString=s,q.mergePath=p},NLgs:function(ge,q,_){"use strict";_.d(q,"e",function(){return s}),_.d(q,"f",function(){return p}),_.d(q,"d",function(){return i}),_.d(q,"c",function(){return v}),_.d(q,"a",function(){return C}),_.d(q,"b",function(){return R});var Z=_("miYZ"),U=_("tsqr"),L=_("9og8"),N=_("2qtc"),c=_("kLXV"),u=_("WmNS"),M=_.n(u),g=_("q1tI"),e=_.n(g),m=_("9kvl"),r=_("xKgJ"),h=_("1vsH"),a=_("RCxd"),l=_("yTi+"),d=_.n(l),y=_("m3rI"),s=function(x){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!!(p(x)&&n(A))},p=function(x){return Object(r.p)()?!0:(x({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},n=function(){var x,A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=Object(m.c)()._store.getState(),f=o.user;return(x=f.userInfo)!==null&&x!==void 0&&x.profile_completed?!0:(c.a.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:A?"\u6309\u7167\u6709\u5173\u653F\u7B56\u89C4\u5B9A\uFF0C\u7279\u6B8A\u5B9E\u9A8C\u9700\u8981\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u624D\u80FD\u4F7F\u7528\uFF0C\u8BF7\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u7801":"\u60A8\u9700\u8981\u53BB\u5B8C\u5584\u60A8\u7684\u4E2A\u4EBA\u8D44\u6599\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD",okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){m.d.push("/account/profile/edit")}}),!1)},i=function(){var x,A=Object(m.c)()._store.getState(),o=A.user;return(x=o.userInfo)!==null&&x!==void 0&&x.professional_certification?!0:(c.a.confirm({title:"\u63D0\u793A",centered:!0,content:e.a.createElement("div",{className:"tc"},"\u60A8\u9700\u8981\u53BB\u5B8C\u6210\u60A8\u7684\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){Object(h.S)("/account/certification")}}),!1)},v=function(){var x;if(Object(r.a)())return!0;var A=Object(m.c)()._store.getState(),o=A.user,f=A.globalSetting;return c.a.warning({centered:!0,width:530,title:"\u63D0\u793A",content:e.a.createElement("div",{className:"tc",style:{marginLeft:-38}},e.a.createElement("p",null,"\u626B\u7801\u6DFB\u52A0\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"),e.a.createElement("img",{src:y.a.IMG_SERVER+(f==null||((x=f.setting)===null||x===void 0)?void 0:x.authority_qrcode_url),width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1},C=function(x,A){var o;if(x)return!0;var f=Object(m.c)()._store.getState(),E=f.user,O=f.globalSetting;return c.a.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:e.a.createElement("div",null,e.a.createElement("p",null,A||"\u8BE5\u5B9E\u8DF5\u8D44\u6E90\u9700\u6388\u6743\u540E\u624D\u53EF\u4F7F\u7528\u3002 \u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650\u3002"),e.a.createElement("div",{style:{marginLeft:"110px"}},e.a.createElement("img",{src:y.a.IMG_SERVER+(O==null||((o=O.setting)===null||o===void 0)?void 0:o.authority_qrcode_url),width:200}),e.a.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(h.S)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1},R=function(x){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=Object(m.c)()._store.getState(),f=o.shixunsDetail.detail;return(f==null?void 0:f.public)===2||(f==null?void 0:f.public)===1||(f==null?void 0:f.shixun_status)===3?(c.a.info({centered:!0,icon:e.a.createElement(a.a,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:e.a.createElement("div",{className:"tc",style:{marginLeft:-38}},e.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},e.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",(f==null?void 0:f.public)===2?"\u5DF2\u516C\u5F00":(f==null?void 0:f.public)===1?"\u5F85\u5BA1\u6838":"\u5DF2\u5173\u95ED","\uFF0C",A,"\u3002"),e.a.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),e.a.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:d.a,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0):(f==null?void 0:f.shixun_status)===2?(c.a.confirm({centered:!0,icon:e.a.createElement(a.a,null),title:"\u63D0\u793A",content:e.a.createElement("div",null,e.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",A,"\u3002"),e.a.createElement("br",null),e.a.createElement("span",null,"\u5982\u6709\u9700\u8981\uFF0C\u60A8\u53EF\u4EE5\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u518D\u8FDB\u884C\u64CD\u4F5C\u3002")),okText:"\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:function(){c.a.confirm({width:440,centered:!0,icon:e.a.createElement(a.a,{style:{color:"#faad14"}}),title:"\u63D0\u793A",content:"\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u5B66\u5458\u5C06\u65E0\u6CD5\u8FDB\u884C\u7EC3\u4E60\u3002\u662F\u5426\u786E\u8BA4\u64A4\u9500\u53D1\u5E03\uFF1F",okText:"\u786E\u5B9A\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:function(){var O=Object(L.a)(M.a.mark(function b(){var D;return M.a.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return I.next=2,x({type:"shixunsDetail/cancelRelease",payload:{id:f==null?void 0:f.identifier}});case 2:D=I.sent,D.status!==401&&(U.b.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),x({type:"shixunsDetail/getShixunsDetail",payload:{id:f==null?void 0:f.identifier}}),x({type:"practiceSetting/getCommonData",payload:{id:f==null?void 0:f.identifier}}));case 4:case"end":return I.stop()}},b)}));function S(){return O.apply(this,arguments)}return S}()})}}),!0):!1}},NQs2:function(ge,q,_){ge.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",img_noactive:"img_noactive___s1naU",img_active:"img_active___11s7p",input_warp:"input_warp___3Y7JU"}},Nf5h:function(ge,q,_){"use strict";_.d(q,"a",function(){return e}),_.d(q,"i",function(){return d}),_.d(q,"l",function(){return n}),_.d(q,"f",function(){return R}),_.d(q,"j",function(){return o}),_.d(q,"d",function(){return je}),_.d(q,"b",function(){return Le}),_.d(q,"h",function(){return lt}),_.d(q,"g",function(){return ht}),_.d(q,"k",function(){return he}),_.d(q,"e",function(){return qe}),_.d(q,"c",function(){return Nt});var Z=_("5NDa"),U=_("5rEg"),L=_("tJVT"),N=_("q1tI"),c=_.n(N),u=_("NQs2"),M=_.n(u),g=function(nt){var xt=nt.dataSource,ue=xt===void 0?[]:xt,ae=nt.bannerImg,V=nt.img,J=nt.imgWidth,te=J===void 0?346:J,re=nt.title,be=nt.sunTitle,Pe=nt.bannerExtraContent,He=nt.placeholder,ft=nt.onChange,_t=Object(N.useState)(""),Lt=Object(L.a)(_t,2),Vt=Lt[0],Ht=Lt[1];return c.a.createElement("div",{className:M.a.banner,style:{backgroundImage:"url('".concat(ae,"')"),backgroundPosition:"center",backgroundSize:"cover"}},c.a.createElement("div",{className:M.a.content},c.a.createElement("aside",null,c.a.createElement("p",{style:{marginBottom:"".concat(ue.length==0?"0":"")}},c.a.createElement("b",null,re),c.a.createElement("span",null,be)),ue.length>0&&c.a.createElement("div",{className:M.a.btns},ue.map(function(tt,jt){return tt.buttonShow&&c.a.createElement(c.a.Fragment,null,tt.Button?tt.Button:c.a.createElement("div",{key:jt,onClick:tt.click},c.a.createElement("img",{src:tt.img,className:M.a.img_noactive}),c.a.createElement("img",{src:tt.img_active,className:M.a.img_active}),tt.name))})),Pe),ue.length>0&&c.a.createElement("div",{className:M.a.input_warp},c.a.createElement(U.a,{value:Vt,onChange:function(jt){Ht(jt.target.value)},placeholder:He,onPressEnter:function(){return ft(Vt)},color:"#fff"}),c.a.createElement("i",{onClick:function(){return ft(Vt)},className:"iconfont icon-sousuo9 font14 pl10 current"}))))},e=g,m=_("6nfa"),r=_.n(m),h=_("TSYQ"),a=_.n(h),l=function(nt){var xt=nt.dataSource,ue=xt===void 0?[]:xt,ae=nt.value,V=nt.onChange,J=nt.className,te=nt.title,re=nt.titleWidth,be=re===void 0?56:re,Pe=nt.style,He=Pe===void 0?{}:Pe,ft=nt.fontColor,_t=ft===void 0?"#6A7283":ft,Lt=nt.isId,Vt=Lt===void 0?!1:Lt,Ht=Object(N.useState)(0),tt=Object(L.a)(Ht,2),jt=tt[0],Gt=tt[1],Qt=Object(N.useState)(!1),Tt=Object(L.a)(Qt,2),tn=Tt[0],nn=Tt[1],Jt=Object(N.useRef)(null);return Object(N.useEffect)(function(){if(ue.length!==0){var Zt;(Jt==null||((Zt=Jt.current)===null||Zt===void 0)?void 0:Zt.clientHeight)>98?Gt(1):Gt(0)}ue.length===0&&Gt(0)},[ue]),c.a.createElement("div",{className:a()(r.a.row,J),style:He},c.a.createElement("div",{style:{width:be,marginTop:tn?12:4},className:r.a.title},te),c.a.createElement("div",{className:tn?"".concat(r.a.tagsWrap," ").concat(r.a.tagsBorderWrap):r.a.tagsWrap},c.a.createElement("div",{className:r.a.bar,style:jt>0?{height:jt===1?100:"auto",overflow:jt===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},c.a.createElement("div",{className:r.a.name,ref:Jt},ue==null?void 0:ue.map(function(Zt){return c.a.createElement("span",{onClick:function(){return V(Vt?Zt.id:Zt.name)},key:Vt?Zt.id:Zt.name,title:Zt.name,style:{color:_t},className:ae===(Vt?Zt.id:Zt.name)?r.a.active:""},Zt.name)}))),!!jt&&c.a.createElement(N.Fragment,null,jt===1?c.a.createElement("div",{onClick:function(){var fn;Gt(2),(Jt==null||((fn=Jt.current)===null||fn===void 0)?void 0:fn.clientHeight)>205?nn(!0):nn(!1)},className:r.a.action},"\u5C55\u5F00",c.a.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):c.a.createElement("div",{onClick:function(){Gt(1),nn(!1)},className:r.a.action},"\u6536\u8D77",c.a.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},d=l,y=_("cz0n"),s=_.n(y),p=function(nt){var xt=nt.dataSource,ue=xt===void 0?[]:xt,ae=nt.value,V=nt.onChange,J=nt.className;return c.a.createElement("div",{className:a()(s.a.tabs,J)},ue.map(function(te){return c.a.createElement("span",{onClick:function(){return V(te.id)},className:ae===te.id?s.a.active:"",key:te.id},te.name)}))},n=p,i=_("KOXS"),v=_.n(i),C=function(nt){var xt,ue=nt.dataSource,ae=ue===void 0?[]:ue,V=nt.value,J=nt.onChange,te=nt.className,re=nt.style,be=re===void 0?{}:re,Pe=nt.placeholder,He=Object(N.useState)(""),ft=Object(L.a)(He,2),_t=ft[0],Lt=ft[1],Vt=Object(N.useState)(""),Ht=Object(L.a)(Vt,2),tt=Ht[0],jt=Ht[1];Object(N.useEffect)(function(){var Tt;(Tt=JSON.stringify(V))!==null&&Tt!==void 0&&Tt.includes("{")?(Lt(V.id),jt(V.value)):jt(V)},[V]);var Gt=function(){J(tt||null,_t||"")},Qt=function(tn){if(tn===_t)return;Lt(tn),J(tt,tn)};return c.a.createElement("div",{className:a()(v.a.input,te),style:be},!!ae.length&&c.a.createElement("div",{className:v.a.dropdown},c.a.createElement("div",{className:v.a.text},(xt=ae.find(function(Tt){return Tt.id===_t}))===null||xt===void 0?void 0:xt.name,c.a.createElement("i",{className:"iconfont icon-zhankai4"}),c.a.createElement("b",{className:v.a.b1}),c.a.createElement("b",{className:v.a.b2})),c.a.createElement("div",{className:v.a.menu},ae.map(function(Tt,tn){return c.a.createElement("div",{key:tn,onClick:function(){return Qt(Tt.id)}},Tt.name)}))),c.a.createElement(U.a,{onPressEnter:Gt,value:tt,onChange:function(tn){return jt(tn.target.value||"")},bordered:!1,placeholder:Pe}),c.a.createElement("i",{onClick:Gt,className:"iconfont icon-sousuo9 font14 pl10 current"}))},R=C,w=_("f9pc"),x=_.n(w),A=function(nt){var xt=nt.value,ue=nt.onChange,ae=nt.className,V=nt.total,J=nt.pageSize,te=nt.style,re=te===void 0?{}:te,be=xt<2,Pe=xt>=Math.ceil(V/J);return V<=J?c.a.createElement(c.a.Fragment,null):c.a.createElement("div",{className:a()(x.a.quickPager,ae),style:re},c.a.createElement("div",{onClick:function(){be||ue(xt-1,"prev")},className:be?x.a.disabled:""},"\u4E0A\u4E00\u9875"),c.a.createElement("div",{onClick:function(){Pe||ue(xt+1,"next")},className:Pe?x.a.disabled:""},"\u4E0B\u4E00\u9875"))},o=A,f=_("T2oS"),E=_("W9HT"),O=_("pC0b"),S=_("GzdX"),b=_("5Dmo"),D=_("3S7+"),P=_("Oe0F"),I=_.n(P),F=_("m3rI"),K=_("1vsH"),j=_("JAbv"),Y=_.n(j),W=_("Bq7L"),Q=_.n(W),ie=_("MEgm"),Ee=_.n(ie),pe=_("BdwD"),De=function(nt){var xt=nt.className,ue=nt.dataSource,ae=ue===void 0?[]:ue,V=nt.col,J=V===void 0?4:V,te=nt.right,re=nt.bottom,be=re===void 0?23:re,Pe=nt.precision,He=Pe===void 0?0:Pe,ft=nt.wrapWidth,_t=ft===void 0?1200:ft,Lt=nt.trackEventItems,Vt=nt.loading,Ht=Math.floor((_t-(J-1)*te)/J);return c.a.createElement(E.a,{spinning:Vt},c.a.createElement("div",{className:a()(I.a.list,xt)},!!ae.length&&ae.map(function(tt,jt){var Gt=tt.name,Qt=tt.id,Tt=tt.identifier,tn=tt.power,nn=tt.cover_image_id,Jt=tt.pic;return c.a.createElement("div",{className:I.a.wrap,key:Qt,style:{width:Ht,marginRight:(1+jt)%J===0?0:te+He,marginBottom:be}},c.a.createElement("a",{target:"_blank",href:"/shixuns/".concat(Tt,"/challenges"),className:I.a.li,onClick:function(fn){fn.preventDefault(),Lt&&Object(K.db)([Lt]),tn&&Object(K.S)("/shixuns/".concat(Tt,"/challenges"))}},c.a.createElement("div",{className:I.a.img},c.a.createElement("img",{className:I.a.cover,src:nn?"".concat(F.a.API_SERVER,"/api/attachments/").concat(nn):"".concat(F.a.IMG_SERVER,"/").concat(Jt)}),tt.is_jupyter&&c.a.createElement("img",{className:I.a.sign,src:Y.a}),tt.is_jupyter_lab&&c.a.createElement("img",{className:I.a.sign,src:Q.a}),tt.is_unity_3d&&c.a.createElement("img",{className:I.a.sign,src:Ee.a})),c.a.createElement("div",{className:I.a.name},c.a.createElement(D.a,{title:Gt||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},c.a.createElement("span",{className:I.a.e},Gt||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),c.a.createElement("div",{className:I.a.tags},c.a.createElement(D.a,{placement:"bottom",title:"\u5173\u5361\u6570"},c.a.createElement("span",null,c.a.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr3"}),c.a.createElement("span",null,tt.challenges_count))),!!tt.myshixuns_count&&c.a.createElement(D.a,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},c.a.createElement("span",null,c.a.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),c.a.createElement("span",null,tt.myshixuns_count))),c.a.createElement(D.a,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},c.a.createElement("span",null,c.a.createElement("span",null,tt.level))),c.a.createElement("div",{className:I.a.rate},c.a.createElement(S.a,{allowHalf:!0,disabled:!0,defaultValue:tt.score_info}),c.a.createElement("span",null,"\xA0",tt.score_info?"".concat(tt.score_info,"\u5206"):"5\u5206")))),!tn&&c.a.createElement("div",{className:I.a.lockWrap},c.a.createElement("img",{src:"".concat(F.a.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),c.a.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!ae.length&&c.a.createElement(pe.a,null)))},Me=De,Ue=_("ZJlW"),Ie=_.n(Ue),ne=_("z4EP"),B=_.n(ne),z=_("+GGh"),H=_.n(z),ee=_("cFMs"),X=_.n(ee),me=function(nt){var xt=nt.className,ue=nt.dataSource,ae=ue===void 0?[]:ue,V=nt.col,J=V===void 0?4:V,te=nt.right,re=nt.bottom,be=re===void 0?23:re,Pe=nt.precision,He=Pe===void 0?0:Pe,ft=nt.wrapWidth,_t=ft===void 0?1200:ft,Lt=nt.trackEventItems,Vt=nt.loading,Ht=Math.floor((_t-(J-1)*te)/J);return c.a.createElement(E.a,{spinning:Vt},c.a.createElement("div",{className:a()(Ie.a.list,xt)},!!ae.length&&ae.map(function(tt,jt){var Gt=tt.name,Qt=tt.id,Tt=tt.identifier,tn=tt.featured,nn=tt.school_name,Jt=tt.image_url,Zt=tt.excellent;return c.a.createElement("div",{key:Qt,className:Ie.a.wrap,style:{width:Ht,marginRight:(1+jt)%J===0?0:te+He,marginBottom:be}},c.a.createElement("a",{target:"_blank",href:"/paths/".concat(Tt),className:Ie.a.li,onClick:function(Tn){Tn.preventDefault(),Lt&&Object(K.db)([Lt]),Object(K.S)("/paths/".concat(Tt))}},c.a.createElement("div",{className:Ie.a.img},c.a.createElement("img",{className:Ie.a.cover,src:"".concat(F.a.IMG_SERVER,"/").concat(Jt)}),tn===1&&c.a.createElement("img",{className:Ie.a.sign,src:B.a}),tn===2&&c.a.createElement("img",{className:Ie.a.sign,src:""}),tn===3&&c.a.createElement("img",{className:Ie.a.sign,src:H.a}),tn===4&&c.a.createElement("img",{className:Ie.a.sign,src:""}),tn===5&&c.a.createElement("img",{className:Ie.a.sign,src:X.a})),c.a.createElement("div",{className:Ie.a.name},c.a.createElement(D.a,{title:Gt},c.a.createElement("span",{className:Ie.a.e},Gt))),c.a.createElement(D.a,{title:"\u53D1\u5E03\u5355\u4F4D\uFF1A".concat(nn)},c.a.createElement("div",{className:Ie.a.unit},c.a.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),nn)),c.a.createElement("div",{className:Ie.a.tags},c.a.createElement(D.a,{placement:"bottom",title:"\u7AE0\u8282\u6570"},c.a.createElement("span",null,c.a.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),c.a.createElement("span",null,tt.stages_count))),c.a.createElement(D.a,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},c.a.createElement("span",null,c.a.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),c.a.createElement("span",null,tt.members_count))),Zt&&c.a.createElement("div",{className:Ie.a.tag},"\u5F00\u653E\u8BFE\u7A0B"))))}),!ae.length&&c.a.createElement(pe.a,null)))},je=me,Je=_("iL++"),oe=_.n(Je),Ae=_("xiVL"),ye=function(nt){var xt=nt.className,ue=nt.dataSource,ae=ue===void 0?[]:ue,V=nt.col,J=V===void 0?4:V,te=nt.right,re=nt.bottom,be=re===void 0?23:re,Pe=nt.precision,He=Pe===void 0?0:Pe,ft=nt.wrapWidth,_t=ft===void 0?1200:ft,Lt=nt.trackEventItems,Vt=nt.loading,Ht=Math.floor((_t-(J-1)*te)/J);return c.a.createElement(E.a,{spinning:Vt},c.a.createElement("div",{className:a()(oe.a.list,xt)},!!ae.length&&ae.map(function(tt,jt){var Gt=tt.subject_identifier,Qt=tt.id,Tt=tt.identifier,tn=tt.power,nn=tt.is_public!=0&&tt.is_public;return c.a.createElement("div",{className:oe.a.wrap,key:Qt,style:{width:Ht,marginRight:(1+jt)%J===0?0:te+He,marginBottom:be}},c.a.createElement("a",{className:oe.a.li,onClick:function(Zt){Zt.preventDefault()}},c.a.createElement("div",{className:oe.a.top},c.a.createElement(D.a,{title:tt.name},c.a.createElement("div",{className:oe.a.name},tt.name)),c.a.createElement("img",{className:oe.a.img,src:F.a.IMG_SERVER+"/images/"+tt.avatar_url}),c.a.createElement("div",{className:oe.a.text},tt.creator),Gt&&c.a.createElement("div",{className:oe.a.btns},c.a.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),c.a.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),nn&&c.a.createElement("div",{className:oe.a.sign},"\u516C\u5F00")),c.a.createElement("div",{className:oe.a.bottom},tt.visits>0&&c.a.createElement(D.a,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},c.a.createElement("span",null,c.a.createElement("i",{className:"iconfont icon-liulanyan"}),c.a.createElement("span",null,tt.visits))),tt.course_members_count>0&&c.a.createElement(D.a,{title:"\u6210\u5458",placement:"bottom"},c.a.createElement("span",null,c.a.createElement("i",{className:"iconfont icon-chengyuan"}),tt.course_members_count)),tt.tasks_count>0&&c.a.createElement(D.a,{title:"\u4F5C\u4E1A",placement:"bottom"},c.a.createElement("span",null,c.a.createElement("i",{className:"iconfont icon-zuoye"}),tt.tasks_count)),tt.is_end?c.a.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):c.a.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),c.a.createElement("div",{className:oe.a.lockWrap},tt.is_accessible?c.a.createElement(c.a.Fragment,null,Gt&&c.a.createElement("div",{onClick:function(){return Object(K.S)("/paths/".concat(Gt))}},"\u8FDB\u5165\u5B9E\u8DF5\u8BFE\u7A0B"),c.a.createElement("div",{onClick:function(Zt){Lt&&Object(K.db)([Lt]),Object(K.S)(tt.first_category_url)}},"\u8FDB\u5165\u6559\u5B66\u8BFE\u5802")):c.a.createElement(c.a.Fragment,null,c.a.createElement("img",{src:"".concat(F.a.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),c.a.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165"))))}),!ae.length&&c.a.createElement(pe.a,null)))},Le=ye,We=_("f0W+"),Xe=_.n(We),ct=function(nt){var xt=nt.dataSource,ue=xt===void 0?[]:xt,ae=nt.value,V=nt.onChange,J=nt.className,te=nt.style,re=te===void 0?{}:te,be=nt.tabBarExtraContent;return c.a.createElement("div",{className:a()(Xe.a.tabs,J),style:re},c.a.createElement("div",{className:Xe.a.tabsWrap},ue.map(function(Pe,He){return c.a.createElement("div",{onClick:function(){return V(Pe.id)},className:ae===Pe.id?Xe.a.active:"",key:He},Pe.name)})),c.a.createElement("div",{className:Xe.a.tabBar},be))},lt=ct,St=_("9JIy"),Dt=_.n(St),bt=function(nt){var xt=nt.className,ue=nt.style,ae=ue===void 0?{}:ue,V=nt.children;return c.a.createElement("div",{className:a()(Dt.a.table,xt),style:ae},V)},ht=bt,Ut=_("qVdP"),Ft=_("jsC+"),ve=_("lUTK"),se=_("BvKs"),le=_("8WcF"),fe=_.n(le),Re=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}],ce=function(nt){var xt,ue=nt.sortValue,ae=nt.dropValue,V=nt.className,J=nt.onSort,te=nt.onDrop,re=nt.dataSource,be=re===void 0?Re:re;return c.a.createElement("div",{className:a()(fe.a.orderWrap,V)},c.a.createElement(Ft.a,{overlay:c.a.createElement(se.a,null,be.map(function(Pe,He){return c.a.createElement(se.a.Item,{key:He,onClick:function(){return te(Pe.id)}},Pe.name)}))},c.a.createElement("span",{className:fe.a.orderTextWrap},(xt=be.find(function(Pe){return ae===Pe.id}))===null||xt===void 0?void 0:xt.name)),c.a.createElement("span",{className:fe.a.orderIconWrap},c.a.createElement("span",{className:fe.a.orderAsc},c.a.createElement("i",{className:ue==="asc"?"iconfont icon-sanjiaoxing-up font12 ".concat(fe.a.cursorPointer," ").concat(fe.a.active):"iconfont icon-sanjiaoxing-up font12 ".concat(fe.a.cursorPointer),onClick:function(){return J(ue==="asc"?"desc":"asc")}})),c.a.createElement("span",{className:fe.a.orderDesc},c.a.createElement("i",{className:ue==="desc"?"iconfont icon-sanjiaoxing-down font12 ".concat(fe.a.cursorPointer," ").concat(fe.a.active):"iconfont icon-sanjiaoxing-down font12 ".concat(fe.a.cursorPointer),onClick:function(){return J(ue==="asc"?"desc":"asc")}}))))},he=ce,Se=_("+L6B"),we=_("2/Rp"),Ze=_("0Owb"),Ye=_("9og8"),it=_("PpiC"),Et=_("WmNS"),Pt=_.n(Et),zt=_("siWv"),Rt=_.n(zt),rt=_("LvDl"),st=function(nt){var xt=nt.className,ue=nt.style,ae=nt.children,V=nt.loading,J=V===void 0?!1:V,te=nt.openLoading,re=nt.onClick,be=re===void 0?function(){}:re,Pe=nt.size,He=Pe===void 0?"middle":Pe,ft=nt.shape,_t=ft===void 0?"round":ft,Lt=nt.type,Vt=Lt===void 0?"default":Lt,Ht=Object(it.a)(nt,["className","style","children","loading","openLoading","onClick","size","shape","type"]),tt=Object(N.useState)(!1),jt=Object(L.a)(tt,2),Gt=jt[0],Qt=jt[1];return c.a.createElement(we.a,Object(Ze.a)({onClick:Object(rt.throttle)(function(){var Tt=Object(Ye.a)(Pt.a.mark(function tn(nn){return Pt.a.wrap(function(Zt){for(;;)switch(Zt.prev=Zt.next){case 0:return te&&Qt(!0),Zt.prev=1,Zt.next=4,be(nn);case 4:Zt.next=9;break;case 6:Zt.prev=6,Zt.t0=Zt.catch(1),console.log("error",Zt.t0);case 9:te&&Qt(!1);case 10:case"end":return Zt.stop()}},tn,null,[[1,6]])}));return function(tn){return Tt.apply(this,arguments)}}(),2e3,{leading:!0,trailing:!1}),className:a()(Rt.a.btn,Rt.a["".concat(He,"-").concat(_t)],xt),style:ue,size:He,shape:_t,type:Vt,loading:Gt||J},Ht),ae)},qe=st,Ce=_("+oxA"),Be=_.n(Ce),dt=function(nt){var xt=nt.className,ue=nt.style,ae=nt.children,V=ae===void 0?null:ae,J=nt.onClick,te=nt.title;return c.a.createElement("div",{className:a()(Be.a.head,xt),style:ue},c.a.createElement("span",{className:"primary-hover",onClick:J},c.a.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),c.a.createElement("b",{title:te},te),c.a.createElement("div",{className:Be.a.node},V))},ut=dt,It=_("fgAr"),wt=_.n(It),gt=function(nt){var xt=nt.confirmShow,ue=xt===void 0?!0:xt,ae=nt.confirmTitle,V=nt.confirmClick,J=nt.cancelShow,te=J===void 0?!0:J,re=nt.cancelTitle,be=nt.cancelClick,Pe=nt.className,He=nt.style,ft=nt.confirmLoading,_t=ft===void 0?!1:ft;return c.a.createElement("div",{className:a()(wt.a.btns,Pe),style:He},ue&&c.a.createElement(we.a,{loading:_t,onClick:V,type:"primary",className:wt.a.confirm},ae),te&&c.a.createElement(we.a,{onClick:be,className:wt.a.cancel},re))},Nt=gt},Nmxd:function(ge,q){ge.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAF4ElEQVRoQ91aW2wUVRj+/rPbSivURIgKjZcHjUYTgZ0lthgv3V0LSqB9IAQeNNEIaKKwZbcFnuQJoZ1piyYawJjIiwZDwiVBaHd28QItaWeLD4KJPgimiA+YCAZj6Z7fzPZiu7e57WriJE0f5v++//tm/j3nn3MOoQyXcmJ/LdfeCBOjEUA9EdUzUA9g0ST9VQJGmXkU5n/CAN2q043Vm295TU9uCRS9MwCiFWBqAmD++R1yjQNIgTgF5tNGuCPtEJ8Nd2xgWarzPil9UbBsA1G1m6R5GOYxkOgRItM71NRxzQmnIwMBvStKoCiAB50kcRB7mcG96XB7r12MLQNPJXrvzdD4QQZW2yX2EkfACR/7N56PRH+14rE0sDSpLRaM4wA/YEVW3vt0RRLWjIRi35biLWkgmOhaz0SflleYMzZi3jAcaf+sGKqoAUVX3wbwnrN0FYveYoTj7xdiL2ggqKsvMnCyYnJcEBPw0nA4/kUuNM9AINX9MMnMIEDzXeSpIISvs/A1pJu2/TgzSZ4BRVf7ALxQQSVeqPuNcLy5qIHJcb7HS4ZKYxncNnOemH4DyqmehaiW58D8UKVFeOIn+gljYrmxsu2XWa2Eomt7AN7uidwd+CKBPy8EZdA7hSlprxGO7Zg2EPxSW8q35WDZehv7Ri4KEuuGQtu+y4UoSe0DML9ZkIp5jKpEw/BzsZFsCSkpNQYJ1X7eskQWF6+rbwD4sGQWgbjRFNcmDCS0oyBuKYsseyRFxS/TteWSZT+IaktSMR0zIrFWajzcXTM2X95w0c/bk5ofVVT8k6e77vT7qY+A5TbIx6uvizoKJNUVxDhlA1COkKLis5Wgq2bZmOV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OUVCJMHitNmYOQF7NjAzmTK8v5Z/N4/biEYI1BN46riNeeTGvEazx21Ao5DmcRs5QHfV6UbQ+3GbvwHH7EQQahyMxwAAAABJRU5ErkJggg=="},NohK:function(ge,q,_){"use strict";Object.defineProperty(q,"__esModule",{value:!0}),q.default=void 0;var Z=function(L){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,c=null;return function(){for(var u=this,M=arguments.length,g=new Array(M),e=0;e<M;e++)g[e]=arguments[e];clearTimeout(c),c=setTimeout(function(){L.apply(u,g)},N)}};q.default=Z},OLES:function(ge,q,_){"use strict";var Z=_("U8pU"),U=_("VTBJ"),L=_("Ff2n"),N=_("q1tI"),c=_("uciX"),u=_("7ixt"),M=function(a){var l=a.overlay,d=a.prefixCls,y=a.id,s=a.overlayInnerStyle;return N.createElement("div",{className:"".concat(d,"-inner"),id:y,role:"tooltip",style:s},typeof l=="function"?l():l)},g=M,e=function(a,l){var d=a.overlayClassName,y=a.trigger,s=y===void 0?["hover"]:y,p=a.mouseEnterDelay,n=p===void 0?0:p,i=a.mouseLeaveDelay,v=i===void 0?.1:i,C=a.overlayStyle,R=a.prefixCls,w=R===void 0?"rc-tooltip":R,x=a.children,A=a.onVisibleChange,o=a.afterVisibleChange,f=a.transitionName,E=a.animation,O=a.placement,S=O===void 0?"right":O,b=a.align,D=b===void 0?{}:b,P=a.destroyTooltipOnHide,I=P===void 0?!1:P,F=a.defaultVisible,K=a.getTooltipContainer,j=a.overlayInnerStyle,Y=Object(L.a)(a,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),W=Object(N.useRef)(null);Object(N.useImperativeHandle)(l,function(){return W.current});var Q=Object(U.a)({},Y);"visible"in a&&(Q.popupVisible=a.visible);var ie=function(){var Ue=a.arrowContent,Ie=Ue===void 0?null:Ue,ne=a.overlay,B=a.id;return[N.createElement("div",{className:"".concat(w,"-arrow"),key:"arrow"},Ie),N.createElement(g,{key:"content",prefixCls:w,id:B,overlay:ne,overlayInnerStyle:j})]},Ee=!1,pe=!1;if(typeof I=="boolean")Ee=I;else if(I&&Object(Z.a)(I)==="object"){var De=I.keepParent;Ee=De===!0,pe=De===!1}return N.createElement(c.a,Object.assign({popupClassName:d,prefixCls:w,popup:ie,action:s,builtinPlacements:u.a,popupPlacement:S,ref:W,popupAlign:D,getPopupContainer:K,onPopupVisibleChange:A,afterPopupVisibleChange:o,popupTransitionName:f,popupAnimation:E,defaultPopupVisible:F,destroyPopupOnHide:Ee,autoDestroy:pe,mouseLeaveDelay:v,popupStyle:C,mouseEnterDelay:n},Q),x)},m=Object(N.forwardRef)(e),r=q.a=m},OS9S:function(ge,q,_){var Z=_("bYtY"),U=Z.inherits,L=_("Gev7"),N=_("mFDi");function c(g){L.call(this,g),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}c.prototype.incremental=!0,c.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},c.prototype.addDisplayable=function(g,e){e?this._temporaryDisplayables.push(g):this._displayables.push(g),this.dirty()},c.prototype.addDisplayables=function(g,e){e=e||!1;for(var m=0;m<g.length;m++)this.addDisplayable(g[m],e)},c.prototype.eachPendingDisplayable=function(g){for(var e=this._cursor;e<this._displayables.length;e++)g&&g(this._displayables[e]);for(var e=0;e<this._temporaryDisplayables.length;e++)g&&g(this._temporaryDisplayables[e])},c.prototype.update=function(){this.updateTransform();for(var g=this._cursor;g<this._displayables.length;g++){var e=this._displayables[g];e.parent=this,e.update(),e.parent=null}for(var g=0;g<this._temporaryDisplayables.length;g++){var e=this._temporaryDisplayables[g];e.parent=this,e.update(),e.parent=null}},c.prototype.brush=function(g,e){for(var m=this._cursor;m<this._displayables.length;m++){var r=this._displayables[m];r.beforeBrush&&r.beforeBrush(g),r.brush(g,m===this._cursor?null:this._displayables[m-1]),r.afterBrush&&r.afterBrush(g)}this._cursor=m;for(var m=0;m<this._temporaryDisplayables.length;m++){var r=this._temporaryDisplayables[m];r.beforeBrush&&r.beforeBrush(g),r.brush(g,m===0?null:this._temporaryDisplayables[m-1]),r.afterBrush&&r.afterBrush(g)}this._temporaryDisplayables=[],this.notClear=!0};var u=[];c.prototype.getBoundingRect=function(){if(!this._rect){for(var g=new N(Infinity,Infinity,-Infinity,-Infinity),e=0;e<this._displayables.length;e++){var m=this._displayables[e],r=m.getBoundingRect().clone();m.needLocalTransform()&&r.applyTransform(m.getLocalTransform(u)),g.union(r)}this._rect=g}return this._rect},c.prototype.contain=function(g,e){var m=this.transformCoordToLocal(g,e),r=this.getBoundingRect();if(r.contain(m[0],m[1]))for(var h=0;h<this._displayables.length;h++){var a=this._displayables[h];if(a.contain(g,e))return!0}return!1},U(c,L);var M=c;ge.exports=M},Oe0F:function(ge,q,_){ge.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"}},Ohmc:function(ge,q,_){ge.exports=_.p+"static/certificate.fc32dc1b.jpg"},P47w:function(ge,q,_){var Z=_("hydK"),U=Z.createElement,L=_("IMiH"),N=_("mFDi"),c=_("Fofx"),u=_("6GrX"),M=_("pzxd"),g=_("dqUG"),e=L.CMD,m=Array.prototype.join,r="none",h=Math.round,a=Math.sin,l=Math.cos,d=Math.PI,y=Math.PI*2,s=180/d,p=1e-4;function n(W){return h(W*1e4)/1e4}function i(W){return W<p&&W>-p}function v(W,Q){var ie=Q?W.textFill:W.fill;return ie!=null&&ie!==r}function C(W,Q){var ie=Q?W.textStroke:W.stroke;return ie!=null&&ie!==r}function R(W,Q){Q&&w(W,"transform","matrix("+m.call(Q,",")+")")}function w(W,Q,ie){(!ie||ie.type!=="linear"&&ie.type!=="radial")&&W.setAttribute(Q,ie)}function x(W,Q,ie){W.setAttributeNS("http://www.w3.org/1999/xlink",Q,ie)}function A(W,Q,ie,Ee){if(v(Q,ie)){var pe=ie?Q.textFill:Q.fill;pe=pe==="transparent"?r:pe,w(W,"fill",pe),w(W,"fill-opacity",Q.fillOpacity!=null?Q.fillOpacity*Q.opacity:Q.opacity)}else w(W,"fill",r);if(C(Q,ie)){var De=ie?Q.textStroke:Q.stroke;De=De==="transparent"?r:De,w(W,"stroke",De);var Me=ie?Q.textStrokeWidth:Q.lineWidth,Ue=!ie&&Q.strokeNoScale?Ee.getLineScale():1;w(W,"stroke-width",Me/Ue),w(W,"paint-order",ie?"stroke":"fill"),w(W,"stroke-opacity",Q.strokeOpacity!=null?Q.strokeOpacity:Q.opacity);var Ie=Q.lineDash;Ie?(w(W,"stroke-dasharray",Q.lineDash.join(",")),w(W,"stroke-dashoffset",h(Q.lineDashOffset||0))):w(W,"stroke-dasharray",""),Q.lineCap&&w(W,"stroke-linecap",Q.lineCap),Q.lineJoin&&w(W,"stroke-linejoin",Q.lineJoin),Q.miterLimit&&w(W,"stroke-miterlimit",Q.miterLimit)}else w(W,"stroke",r)}function o(W){for(var Q=[],ie=W.data,Ee=W.len(),pe=0;pe<Ee;){var De=ie[pe++],Me="",Ue=0;switch(De){case e.M:Me="M",Ue=2;break;case e.L:Me="L",Ue=2;break;case e.Q:Me="Q",Ue=4;break;case e.C:Me="C",Ue=6;break;case e.A:var Ie=ie[pe++],ne=ie[pe++],B=ie[pe++],z=ie[pe++],H=ie[pe++],ee=ie[pe++],X=ie[pe++],me=ie[pe++],je=Math.abs(ee),Je=i(je-y)||(me?ee>=y:-ee>=y),oe=ee>0?ee%y:ee%y+y,Ae=!1;Je?Ae=!0:i(je)?Ae=!1:Ae=oe>=d===!!me;var ye=n(Ie+B*l(H)),Le=n(ne+z*a(H));Je&&(me?ee=y-1e-4:ee=-y+1e-4,Ae=!0,pe===9&&Q.push("M",ye,Le));var We=n(Ie+B*l(H+ee)),Xe=n(ne+z*a(H+ee));Q.push("A",n(B),n(z),h(X*s),+Ae,+me,We,Xe);break;case e.Z:Me="Z";break;case e.R:var We=n(ie[pe++]),Xe=n(ie[pe++]),ct=n(ie[pe++]),lt=n(ie[pe++]);Q.push("M",We,Xe,"L",We+ct,Xe,"L",We+ct,Xe+lt,"L",We,Xe+lt,"L",We,Xe);break}Me&&Q.push(Me);for(var St=0;St<Ue;St++)Q.push(n(ie[pe++]))}return Q.join(" ")}var f={};f.brush=function(W){var Q=W.style,ie=W.__svgEl;ie||(ie=U("path"),W.__svgEl=ie),W.path||W.createPathProxy();var Ee=W.path;if(W.__dirtyPath){Ee.beginPath(),Ee.subPixelOptimize=!1,W.buildPath(Ee,W.shape),W.__dirtyPath=!1;var pe=o(Ee);pe.indexOf("NaN")<0&&w(ie,"d",pe)}A(ie,Q,!1,W),R(ie,W.transform),Q.text!=null?I(W,W.getBoundingRect()):Y(W)};var E={};E.brush=function(W){var Q=W.style,ie=Q.image;if(ie instanceof HTMLImageElement){var Ee=ie.src;ie=Ee}if(!ie)return;var pe=Q.x||0,De=Q.y||0,Me=Q.width,Ue=Q.height,Ie=W.__svgEl;Ie||(Ie=U("image"),W.__svgEl=Ie),ie!==W.__imageSrc&&(x(Ie,"href",ie),W.__imageSrc=ie),w(Ie,"width",Me),w(Ie,"height",Ue),w(Ie,"x",pe),w(Ie,"y",De),R(Ie,W.transform),Q.text!=null?I(W,W.getBoundingRect()):Y(W)};var O={},S=new N,b={},D=[],P={left:"start",right:"end",center:"middle",middle:"middle"},I=function(W,Q){var ie=W.style,Ee=W.transform,pe=W instanceof g||ie.transformText;W.__dirty&&M.normalizeTextStyle(ie,!0);var De=ie.text;if(De!=null&&(De+=""),!M.needDrawText(De,ie))return;De==null&&(De=""),!pe&&Ee&&(S.copy(Q),S.applyTransform(Ee),Q=S);var Me=W.__textSvgEl;Me||(Me=U("text"),W.__textSvgEl=Me);var Ue=Me.style,Ie=ie.font||u.DEFAULT_FONT,ne=Me.__computedFont;Ie!==Me.__styleFont&&(Ue.font=Me.__styleFont=Ie,ne=Me.__computedFont=Ue.font);var B=ie.textPadding,z=ie.textLineHeight,H=W.__textCotentBlock;(!H||W.__dirtyText)&&(H=W.__textCotentBlock=u.parsePlainText(De,ne,B,z,ie.truncate));var ee=H.outerHeight,X=H.lineHeight;M.getBoxPosition(b,W,ie,Q);var me=b.baseX,je=b.baseY,Je=b.textAlign||"left",oe=b.textVerticalAlign;F(Me,pe,Ee,ie,Q,me,je);var Ae=u.adjustTextY(je,ee,oe),ye=me,Le=Ae;B&&(ye=K(me,Je,B),Le+=B[0]),Le+=X/2,A(Me,ie,!0,W);var We=H.canCacheByTextString,Xe=W.__tspanList||(W.__tspanList=[]),ct=Xe.length;if(We&&W.__canCacheByTextString&&W.__text===De){if(W.__dirtyText&&ct)for(var lt=0;lt<ct;++lt)j(Xe[lt],Je,ye,Le+lt*X)}else{W.__text=De,W.__canCacheByTextString=We;for(var St=H.lines,Dt=St.length,lt=0;lt<Dt;lt++){var bt=Xe[lt],ht=St[lt];bt?bt.__zrText!==ht&&(bt.innerHTML="",bt.appendChild(document.createTextNode(ht))):(bt=Xe[lt]=U("tspan"),Me.appendChild(bt),bt.appendChild(document.createTextNode(ht))),j(bt,Je,ye,Le+lt*X)}if(ct>Dt){for(;lt<ct;lt++)Me.removeChild(Xe[lt]);Xe.length=Dt}}};function F(W,Q,ie,Ee,pe,De,Me){c.identity(D),Q&&ie&&c.copy(D,ie);var Ue=Ee.textRotation;if(pe&&Ue){var Ie=Ee.textOrigin;Ie==="center"?(De=pe.width/2+pe.x,Me=pe.height/2+pe.y):Ie&&(De=Ie[0]+pe.x,Me=Ie[1]+pe.y),D[4]-=De,D[5]-=Me,c.rotate(D,D,Ue),D[4]+=De,D[5]+=Me}R(W,D)}function K(W,Q,ie){return Q==="right"?W-ie[1]:Q==="center"?W+ie[3]/2-ie[1]/2:W+ie[3]}function j(W,Q,ie,Ee){w(W,"dominant-baseline","middle"),w(W,"text-anchor",P[Q]),w(W,"x",ie),w(W,"y",Ee)}function Y(W){W&&W.__textSvgEl&&(W.__textSvgEl.parentNode&&W.__textSvgEl.parentNode.removeChild(W.__textSvgEl),W.__textSvgEl=null,W.__tspanList=[],W.__text=null)}O.drawRectText=I,O.brush=function(W){var Q=W.style;Q.text!=null?I(W,!1):Y(W)},q.path=f,q.image=E,q.text=O},P4Qj:function(ge,q,_){"use strict";Object.defineProperty(q,"__esModule",{value:!0}),q.removeSensor=q.getSensor=void 0;var Z=N(_("chpo")),U=_("FxDU"),L=_("24YM");function N(g){return g&&g.__esModule?g:{default:g}}var c={},u=function(e){var m=e.getAttribute(L.SizeSensorId);if(m&&c[m])return c[m];var r=(0,Z.default)();e.setAttribute(L.SizeSensorId,r);var h=(0,U.createSensor)(e);return c[r]=h,h};q.getSensor=u;var M=function(e){var m=e.element.getAttribute(L.SizeSensorId);e.element.removeAttribute(L.SizeSensorId),e.destroy(),m&&c[m]&&delete c[m]};q.removeSensor=M},P5Jw:function(ge,q,_){"use strict";var Z=_("rHrb"),U=Z.CopyToClipboard;U.CopyToClipboard=U,ge.exports=U},QBsz:function(ge,q){var _=typeof Float32Array=="undefined"?Array:Float32Array;function Z(A,o){var f=new _(2);return A==null&&(A=0),o==null&&(o=0),f[0]=A,f[1]=o,f}function U(A,o){return A[0]=o[0],A[1]=o[1],A}function L(A){var o=new _(2);return o[0]=A[0],o[1]=A[1],o}function N(A,o,f){return A[0]=o,A[1]=f,A}function c(A,o,f){return A[0]=o[0]+f[0],A[1]=o[1]+f[1],A}function u(A,o,f,E){return A[0]=o[0]+f[0]*E,A[1]=o[1]+f[1]*E,A}function M(A,o,f){return A[0]=o[0]-f[0],A[1]=o[1]-f[1],A}function g(A){return Math.sqrt(m(A))}var e=g;function m(A){return A[0]*A[0]+A[1]*A[1]}var r=m;function h(A,o,f){return A[0]=o[0]*f[0],A[1]=o[1]*f[1],A}function a(A,o,f){return A[0]=o[0]/f[0],A[1]=o[1]/f[1],A}function l(A,o){return A[0]*o[0]+A[1]*o[1]}function d(A,o,f){return A[0]=o[0]*f,A[1]=o[1]*f,A}function y(A,o){var f=g(o);return f===0?(A[0]=0,A[1]=0):(A[0]=o[0]/f,A[1]=o[1]/f),A}function s(A,o){return Math.sqrt((A[0]-o[0])*(A[0]-o[0])+(A[1]-o[1])*(A[1]-o[1]))}var p=s;function n(A,o){return(A[0]-o[0])*(A[0]-o[0])+(A[1]-o[1])*(A[1]-o[1])}var i=n;function v(A,o){return A[0]=-o[0],A[1]=-o[1],A}function C(A,o,f,E){return A[0]=o[0]+E*(f[0]-o[0]),A[1]=o[1]+E*(f[1]-o[1]),A}function R(A,o,f){var E=o[0],O=o[1];return A[0]=f[0]*E+f[2]*O+f[4],A[1]=f[1]*E+f[3]*O+f[5],A}function w(A,o,f){return A[0]=Math.min(o[0],f[0]),A[1]=Math.min(o[1],f[1]),A}function x(A,o,f){return A[0]=Math.max(o[0],f[0]),A[1]=Math.max(o[1],f[1]),A}q.create=Z,q.copy=U,q.clone=L,q.set=N,q.add=c,q.scaleAndAdd=u,q.sub=M,q.len=g,q.length=e,q.lenSquare=m,q.lengthSquare=r,q.mul=h,q.div=a,q.dot=l,q.scale=d,q.normalize=y,q.distance=s,q.dist=p,q.distanceSquare=n,q.distSquare=i,q.negate=v,q.lerp=C,q.applyTransform=R,q.min=w,q.max=x},"QO+J":function(ge,q,_){"use strict";Object.defineProperty(q,"__esModule",{value:!0}),q.createSensor=void 0;var Z=L(_("NohK")),U=_("24YM");function L(c){return c&&c.__esModule?c:{default:c}}var N=function(u){var M=void 0,g=[],e=function(){getComputedStyle(u).position==="static"&&(u.style.position="relative");var d=document.createElement("object");return d.onload=function(){d.contentDocument.defaultView.addEventListener("resize",m),m()},d.style.display="block",d.style.position="absolute",d.style.top="0",d.style.left="0",d.style.height="100%",d.style.width="100%",d.style.overflow="hidden",d.style.pointerEvents="none",d.style.zIndex="-1",d.style.opacity="0",d.setAttribute("class",U.SensorClassName),d.setAttribute("tabindex",U.SensorTabIndex),d.type="text/html",u.appendChild(d),d.data="about:blank",d},m=(0,Z.default)(function(){g.forEach(function(l){l(u)})}),r=function(d){M||(M=e()),g.indexOf(d)===-1&&g.push(d)},h=function(){M&&M.parentNode&&(M.contentDocument&&M.contentDocument.defaultView.removeEventListener("resize",m),M.parentNode.removeChild(M),M=void 0,g=[])},a=function(d){var y=g.indexOf(d);y!==-1&&g.splice(y,1),g.length===0&&M&&h()};return{element:u,bind:r,destroy:h,unbind:a}};q.createSensor=N},QOUV:function(ge,q,_){"use strict";_.d(q,"a",function(){return m});var Z=_("2qtc"),U=_("kLXV"),L=_("q1tI"),N=_.n(L),c=_("hgre"),u=_("po3F"),M=_.n(u),g=_("J66h"),e=_.n(g),m=function(h){var a=h.visible,l=h.width,d=h.videoId,y=h.file_url,s=h.course_id,p=h.copyUrl,n=h.toLog,i=n===void 0?!0:n,v=h.logWatchHistory,C=v===void 0?function(){}:v,R=h.onClose,w=R===void 0?function(){}:R;return N.a.createElement(U.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:a,title:null,footer:null,width:l,className:M.a.modal},N.a.createElement("i",{className:"".concat(M.a.closeIcon," iconfont icon-guanbi10"),onClick:w}),a&&N.a.createElement(c.a,{courseId:s,src:y!=null&&y.startsWith("http")?y:g.Base64.decode(y),videoId:d,toLog:i,logWatchHistory:C}))}},Qe9p:function(ge,q,_){var Z=_("1RvN"),U={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function L(o){return o=Math.round(o),o<0?0:o>255?255:o}function N(o){return o=Math.round(o),o<0?0:o>360?360:o}function c(o){return o<0?0:o>1?1:o}function u(o){return o.length&&o.charAt(o.length-1)==="%"?L(parseFloat(o)/100*255):L(parseInt(o,10))}function M(o){return o.length&&o.charAt(o.length-1)==="%"?c(parseFloat(o)/100):c(parseFloat(o))}function g(o,f,E){return E<0?E+=1:E>1&&(E-=1),E*6<1?o+(f-o)*E*6:E*2<1?f:E*3<2?o+(f-o)*(2/3-E)*6:o}function e(o,f,E){return o+(f-o)*E}function m(o,f,E,O,S){return o[0]=f,o[1]=E,o[2]=O,o[3]=S,o}function r(o,f){return o[0]=f[0],o[1]=f[1],o[2]=f[2],o[3]=f[3],o}var h=new Z(20),a=null;function l(o,f){a&&r(a,f),a=h.put(o,a||f.slice())}function d(o,f){if(!o)return;f=f||[];var E=h.get(o);if(E)return r(f,E);o=o+"";var O=o.replace(/ /g,"").toLowerCase();if(O in U)return r(f,U[O]),l(o,f),f;if(O.charAt(0)==="#"){if(O.length===4){var S=parseInt(O.substr(1),16);if(!(S>=0&&S<=4095)){m(f,0,0,0,1);return}return m(f,(S&3840)>>4|(S&3840)>>8,S&240|(S&240)>>4,S&15|(S&15)<<4,1),l(o,f),f}else if(O.length===7){var S=parseInt(O.substr(1),16);if(!(S>=0&&S<=16777215)){m(f,0,0,0,1);return}return m(f,(S&16711680)>>16,(S&65280)>>8,S&255,1),l(o,f),f}return}var b=O.indexOf("("),D=O.indexOf(")");if(b!==-1&&D+1===O.length){var P=O.substr(0,b),I=O.substr(b+1,D-(b+1)).split(","),F=1;switch(P){case"rgba":if(I.length!==4){m(f,0,0,0,1);return}F=M(I.pop());case"rgb":if(I.length!==3){m(f,0,0,0,1);return}return m(f,u(I[0]),u(I[1]),u(I[2]),F),l(o,f),f;case"hsla":if(I.length!==4){m(f,0,0,0,1);return}return I[3]=M(I[3]),y(I,f),l(o,f),f;case"hsl":if(I.length!==3){m(f,0,0,0,1);return}return y(I,f),l(o,f),f;default:return}}m(f,0,0,0,1);return}function y(o,f){var E=(parseFloat(o[0])%360+360)%360/360,O=M(o[1]),S=M(o[2]),b=S<=.5?S*(O+1):S+O-S*O,D=S*2-b;return f=f||[],m(f,L(g(D,b,E+1/3)*255),L(g(D,b,E)*255),L(g(D,b,E-1/3)*255),1),o.length===4&&(f[3]=o[3]),f}function s(o){if(!o)return;var f=o[0]/255,E=o[1]/255,O=o[2]/255,S=Math.min(f,E,O),b=Math.max(f,E,O),D=b-S,P=(b+S)/2,I,F;if(D===0)I=0,F=0;else{P<.5?F=D/(b+S):F=D/(2-b-S);var K=((b-f)/6+D/2)/D,j=((b-E)/6+D/2)/D,Y=((b-O)/6+D/2)/D;f===b?I=Y-j:E===b?I=1/3+K-Y:O===b&&(I=2/3+j-K),I<0&&(I+=1),I>1&&(I-=1)}var W=[I*360,F,P];return o[3]!=null&&W.push(o[3]),W}function p(o,f){var E=d(o);if(E){for(var O=0;O<3;O++)f<0?E[O]=E[O]*(1-f)|0:E[O]=(255-E[O])*f+E[O]|0,E[O]>255?E[O]=255:o[O]<0&&(E[O]=0);return A(E,E.length===4?"rgba":"rgb")}}function n(o){var f=d(o);if(f)return((1<<24)+(f[0]<<16)+(f[1]<<8)+ +f[2]).toString(16).slice(1)}function i(o,f,E){if(!(f&&f.length)||!(o>=0&&o<=1))return;E=E||[];var O=o*(f.length-1),S=Math.floor(O),b=Math.ceil(O),D=f[S],P=f[b],I=O-S;return E[0]=L(e(D[0],P[0],I)),E[1]=L(e(D[1],P[1],I)),E[2]=L(e(D[2],P[2],I)),E[3]=c(e(D[3],P[3],I)),E}var v=i;function C(o,f,E){if(!(f&&f.length)||!(o>=0&&o<=1))return;var O=o*(f.length-1),S=Math.floor(O),b=Math.ceil(O),D=d(f[S]),P=d(f[b]),I=O-S,F=A([L(e(D[0],P[0],I)),L(e(D[1],P[1],I)),L(e(D[2],P[2],I)),c(e(D[3],P[3],I))],"rgba");return E?{color:F,leftIndex:S,rightIndex:b,value:O}:F}var R=C;function w(o,f,E,O){if(o=d(o),o)return o=s(o),f!=null&&(o[0]=N(f)),E!=null&&(o[1]=M(E)),O!=null&&(o[2]=M(O)),A(y(o),"rgba")}function x(o,f){if(o=d(o),o&&f!=null)return o[3]=c(f),A(o,"rgba")}function A(o,f){if(!o||!o.length)return;var E=o[0]+","+o[1]+","+o[2];return(f==="rgba"||f==="hsva"||f==="hsla")&&(E+=","+o[3]),f+"("+E+")"}q.parse=d,q.lift=p,q.toHex=n,q.fastLerp=i,q.fastMapToColor=v,q.lerp=C,q.mapToColor=R,q.modifyHSL=w,q.modifyAlpha=x,q.stringify=A},QeBL:function(ge,q,_){"use strict";_.r(q);var Z=_("GNNt"),U=_("wEI+"),L=_("k1fw"),N=_("PpiC"),c=_("q1tI"),u=_.n(c),M=_("+Gva"),g=_("Ty5D"),e=_("9kvl"),m=_("ruvs"),r=_("JatN"),h=_("5Dmo"),a=_("3S7+"),l=_("14J3"),d=_("BMrR"),y=_("fV52"),s=_("3I+P"),p=_("oBTY"),n=_("tJVT"),i=_("5bA4"),v=_("UESt"),C=_("55Ip"),R=_("2kGD"),w=_.n(R),x=_("p6Nx"),A=_("2qtc"),o=_("kLXV"),f=_("9og8"),E=_("FJo9"),O=_("L41K"),S=_("WmNS"),b=_.n(S),D=_("ErOA"),P=_("/zsF"),I=_("PArb"),F=_("r7jV"),K=_.n(F),j=_("xH+I"),Y=_.n(j),W=function(qt){var hn,cn=RegExp("(^| )"+qt+"=([^;]+)(;|$)");return(hn=document.cookie.match(cn))?decodeURIComponent(hn[2]):null},Q=function(qt){var hn=new Date;hn.setTime(hn.getTime()-1);var cn=W(qt);cn!=null&&(document.cookie=qt+"="+cn+";expires="+hn.toGMTString())},ie;(function($t){$t.Classrooms="classrooms",$t.Shixuns="shixuns",$t.Paths="paths",$t.Projects="projects",$t.Videos="videos",$t.Topics="topics"})(ie||(ie={}));var Ee=function(qt){var hn=qt.homePage,cn=qt.user,Sn=qt.globalSetting,dn=qt.loading,Bt=qt.dispatch,ln=qt.location,xn=qt.payload,an=xn===void 0?{}:xn,_n=Object(N.a)(qt,["homePage","user","globalSetting","loading","dispatch","location","payload"]);return u.a.createElement("div",{style:{display:"flex"}},u.a.createElement("div",{style:{width:"320px",textAlign:"center",padding:"52px 40px"}},u.a.createElement("span",{style:{fontSize:"18px",fontWeight:"500",color:"#333333"}},u.a.createElement("img",{src:K.a,style:{width:"30px",height:"30px",marginRight:"20px"}}),parseInt(localStorage.getItem("registeruser"))===1?"\u6CE8\u518C":"\u767B\u5F55","\u6210\u529F"),u.a.createElement("div",{style:{marginTop:"60px"}},u.a.createElement("p",null,u.a.createElement("span",{style:{color:"#333333",fontSize:"16px",fontWeight:"500"}},"\u82B130\u79D2"),u.a.createElement("span",{style:{color:"#0152d9",fontSize:"20px",fontWeight:"500",marginLeft:"10px"}},"\u719F\u6089\u5E73\u53F0")),u.a.createElement("p",{style:{color:"#666666",fontSize:"14px"}},"\u4EE5\u4FBF\u4E3A\u60A8\u63D0\u4F9B\u66F4\u597D\u7684\u529F\u80FD\u670D\u52A1")),u.a.createElement("img",{src:Y.a})),u.a.createElement(I.a,{type:"vertical",style:{height:"346px",marginTop:"52px"}}))},pe=Object(e.a)(function($t){var qt=$t.homePage,hn=$t.loading,cn=$t.user,Sn=$t.globalSetting;return{homePage:qt,user:cn,globalSetting:Sn,loading:hn.models.index}})(Ee),De=_("ZSzu"),Me=_.n(De),Ue=_("nz4c"),Ie=_.n(Ue),ne=_("ek5K"),B=_.n(ne),z=_("uZMh"),H=_.n(z),ee;(function($t){$t.Classrooms="classrooms",$t.Shixuns="shixuns",$t.Paths="paths",$t.Projects="projects",$t.Videos="videos",$t.Topics="topics"})(ee||(ee={}));var X=function(qt){var hn=qt.homePage,cn=qt.user,Sn=qt.globalSetting,dn=qt.loading,Bt=qt.dispatch,ln=qt.location,xn=qt.getUserInfo,an=qt.payload,_n=an===void 0?{}:an,Gn=Object(N.a)(qt,["homePage","user","globalSetting","loading","dispatch","location","getUserInfo","payload"]);function mn(zn){return qn.apply(this,arguments)}function qn(){return qn=Object(f.a)(b.a.mark(function zn(Kn){var An;return b.a.wrap(function(Mn){for(;;)switch(Mn.prev=Mn.next){case 0:return Mn.next=2,Object(D.a)("/api/users/update_identity.json",{method:"post",body:{identity:Kn}});case 2:An=Mn.sent,An.status===0&&xn();case 4:case"end":return Mn.stop()}},zn)})),qn.apply(this,arguments)}return u.a.createElement("div",{style:{display:"flex",padding:"52px",width:"100%",flexDirection:"column"}},u.a.createElement("div",{style:{width:"100%"}},u.a.createElement("span",{style:{fontSize:"16px",fontWeight:"500",color:"#333333"}},"\u8BF7\u9009\u62E9\u60A8\u7684\u89D2\u8272"),u.a.createElement("div",{style:{marginTop:"97px",display:"flex",justifyContent:"space-between"}},u.a.createElement("div",{onClick:function(){mn("teacher")},className:H.a.beginner},u.a.createElement("img",{src:Ie.a}),u.a.createElement("span",{style:{marginTop:"8px"}},"\u6211\u662F\u6559\u5E08")),u.a.createElement("div",{onClick:function(){mn("student")},className:H.a.beginner},u.a.createElement("img",{src:Me.a}),u.a.createElement("span",{style:{marginTop:"8px"}},"\u6211\u662F\u5B66\u751F")),u.a.createElement("div",{onClick:function(){mn("professional")},className:H.a.beginner},u.a.createElement("img",{src:B.a}),u.a.createElement("span",{style:{marginTop:"8px",width:"100px",textAlign:"left"}},"\u5176\u4ED6\u4E13\u4E1A\u4EBA\u58EB")))))},me=Object(e.a)(function($t){var qt=$t.homePage,hn=$t.loading,cn=$t.user,Sn=$t.globalSetting;return{homePage:qt,user:cn,globalSetting:Sn,loading:hn.models.index}})(X),je=_("+L6B"),Je=_("2/Rp"),oe=_("+BJd"),Ae=_("mr32"),ye=_("vvFO"),Le=_.n(ye),We=_("Kc5o"),Xe=_.n(We),ct=_("iyIb"),lt=_.n(ct),St=Ae.a.CheckableTag,Dt;(function($t){$t.Classrooms="classrooms",$t.Shixuns="shixuns",$t.Paths="paths",$t.Projects="projects",$t.Videos="videos",$t.Topics="topics"})(Dt||(Dt={}));var bt=function(qt){var hn=qt.homePage,cn=qt.user,Sn=qt.globalSetting,dn=qt.loading,Bt=qt.dispatch,ln=qt.location,xn=qt.setisone,an=qt.users,_n=qt.setIsShow,Gn=qt.payload,mn=Gn===void 0?{}:Gn,qn=Object(N.a)(qt,["homePage","user","globalSetting","loading","dispatch","location","setisone","users","setIsShow","payload"]),zn=Object(c.useState)([]),Kn=Object(n.a)(zn,2),An=Kn[0],Bn=Kn[1],Mn=Object(c.useState)([]),Vn=Object(n.a)(Mn,2),gi=Vn[0],ii=Vn[1],vi=Object(c.useState)([]),Si=Object(n.a)(vi,2),jn=Si[0],En=Si[1],si=Object(c.useState)([]),Yn=Object(n.a)(si,2),$n=Yn[0],li=Yn[1],Ui=Object(c.useState)([]),wi=Object(n.a)(Ui,2),Pi=wi[0],ki=wi[1],Mi=Object(c.useState)([]),Ei=Object(n.a)(Mi,2),Xn=Ei[0],Bi=Ei[1];Object(c.useEffect)(function(){Li()},[]);function Li(){return Ci.apply(this,arguments)}function Ci(){return Ci=Object(f.a)(b.a.mark(function Rn(){var ri;return b.a.wrap(function(oi){for(;;)switch(oi.prev=oi.next){case 0:return oi.next=2,Object(D.a)("/api/users/interest_tags.json",{method:"get"});case 2:ri=oi.sent,Bn(ri.tags.filter(function(ei){return ei.tag_type===1})),ii(ri.tags.filter(function(ei){return ei.tag_type===2})),En(ri.tags.filter(function(ei){return ei.tag_type===3}));case 6:case"end":return oi.stop()}},Rn)})),Ci.apply(this,arguments)}return u.a.createElement("div",{style:{display:"flex",padding:"52px",width:"100%",flexDirection:"column"}},u.a.createElement("div",{style:{width:"100%"}},u.a.createElement("div",{style:{display:"flex"}},u.a.createElement("span",{style:{fontSize:"16px",fontWeight:"500",color:"#333333",flex:"1"}},"\u8BF7\u9009\u62E9\u60A8\u611F\u5174\u8DA3\u7684\u5185\u5BB9"),u.a.createElement("span",{onClick:function(){xn(0)},style:{cursor:"pointer"}},"\u8FD4\u56DE\u4E0A\u4E00\u6B65 ",u.a.createElement(v.a,null))),an.identity==="student"&&u.a.createElement("div",{style:{marginTop:60}},u.a.createElement("span",{style:{marginRight:"20px"}},"\u8BFE\u7A0B\uFF1A"),["java","Python","C/C++","\u7A0B\u5E8F\u7ADE\u8D5B\u8BBE\u8BA1"].map(function(Rn){return u.a.createElement(St,{style:{fontSize:"14px"},key:Rn,checked:$n.includes(Rn),onChange:function(pi){var oi=pi?[].concat(Object(p.a)($n),[Rn]):$n.filter(function(ei){return ei!==Rn});li(Object(p.a)(oi))}},Rn)})),an.identity==="student"&&u.a.createElement("div",{style:{marginTop:60,textAlign:"center"}},u.a.createElement("p",null,"\u626B\u7801\u6DFB\u52A0\u52A9\u6559\u8001\u5E08\u5FAE\u4FE1\u56DE\u590D\u5174\u8DA3\u65B9\u5411\uFF0C\u5373\u53EF\u52A0\u5165\u5B66\u4E60\u4EA4\u6D41\u5C0F\u7EC4"),u.a.createElement("img",{src:lt.a,style:{width:200}}),u.a.createElement("p",null,"\u514D\u8D39\u8D44\u6599\uFF0C\u5E73\u53F0\u7B54\u7591\uFF0C\u8BFE\u7A0B\u5B66\u4E60")),an.identity!="student"&&u.a.createElement("div",{style:{marginTop:"60px"}},u.a.createElement("div",null,u.a.createElement("span",{style:{marginRight:"20px"}},"\u8BFE\u7A0B\uFF1A"),An.map(function(Rn){return u.a.createElement(St,{style:{fontSize:"14px"},key:Rn.id,checked:$n.includes(Rn.id),onChange:function(pi){var oi=pi?[].concat(Object(p.a)($n),[Rn.id]):$n.filter(function(ei){return ei!==Rn.id});li(Object(p.a)(oi))}},Rn.tag_name)})),u.a.createElement("div",{style:{marginTop:"30px"}},u.a.createElement("span",{style:{marginRight:"20px"}},"\u5174\u8DA3\uFF1A"),gi.map(function(Rn){return u.a.createElement(St,{style:{fontSize:"14px"},key:Rn.id,checked:Pi.includes(Rn.id),onChange:function(pi){var oi=pi?[].concat(Object(p.a)(Pi),[Rn.id]):Pi.filter(function(ei){return ei!==Rn.id});ki(Object(p.a)(oi))}},Rn.tag_name)})),u.a.createElement("div",{style:{marginTop:"30px"}},u.a.createElement("span",{style:{marginRight:"20px"}},"\u9886\u57DF\uFF1A"),jn.map(function(Rn){return u.a.createElement(St,{style:{fontSize:"14px"},key:Rn.id,checked:Xn.includes(Rn.id),onChange:function(pi){var oi=pi?[].concat(Object(p.a)(Xn),[Rn.id]):Xn.filter(function(ei){return ei!==Rn.id});Bi(Object(p.a)(oi))}},Rn.tag_name)}))),an.identity!="student"&&u.a.createElement("div",{style:{textAlign:"end",marginTop:"20px"}},u.a.createElement("span",{style:{color:"#0152d9",fontSize:"14px",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"end"},onClick:function(){Li()}},"\u6362\u4E00\u6279 ",u.a.createElement("img",{style:{marginLeft:"10px"},src:Le.a}))),u.a.createElement("div",{style:{marginTop:"48px",textAlign:"center"}},an.identity==="teacher"&&u.a.createElement(Je.a,{type:"primary",ghost:!0,style:{width:"120px",height:"40px",marginRight:"15px"},onClick:function(){localStorage.setItem("Noviceguide","1"),Bt({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:1,href:"/account/profile/edit",text:u.a.createElement("div",null,u.a.createElement("span",null,"\u6B22\u8FCE\u6765\u5230\u3010\u5B9E\u8DF5\u6559\u5B66\u5E73\u53F0\u3011\uFF0C\u63A5\u4E0B\u6765\uFF0C\u6211\u5C06\u7528\uFF1A"),u.a.createElement("span",{style:{display:"inline-block",position:"absolute"},className:H.a.spandiv}),u.a.createElement("span",{style:{marginLeft:"80px"}}," ","\u95EA\u5149\u7684\u65B9\u5F0F\u4E00\u6B65\u6B65\u534F\u52A9\u60A8\u65B0\u5EFA\u4E00\u4E2A\u3010\u6559\u5B66\u8BFE\u5802\u3011\u3002\u9996\u5148\uFF0C\u8BF7\u60A8\u627E\u5230\u95EA\u5149\u6846\u5E76\u5C06\u9F20\u6807\u79FB\u5230\u5934\u50CF\u4E0A\u65B9\uFF0C\u5728\u51FA\u73B0\u7684\u4E0B\u62C9\u83DC\u5355\u4E2D",u.a.createElement("img",{src:Xe.a}),"\u70B9\u51FB\u201C\u8D26\u53F7\u7BA1\u7406\u201D\u3002"))}}),_n(!1)}},"\u65B0\u624B\u5F15\u5BFC"),u.a.createElement(Je.a,{type:"primary",onClick:function(){localStorage.setItem("Noviceguide","0"),_n(!1)},style:{width:"120px",height:"40px",marginLeft:"15px"}},"\u5F00\u59CB\u4F7F\u7528"))))},ht=Object(e.a)(function($t){var qt=$t.homePage,hn=$t.loading,cn=$t.user,Sn=$t.globalSetting;return{homePage:qt,user:cn,globalSetting:Sn,loading:hn.models.index}})(bt),Ut=O.a.Step;function Ft($t){var qt=$t.userInfo,hn=Object(c.useState)(!1),cn=Object(n.a)(hn,2),Sn=cn[0],dn=cn[1],Bt=Object(c.useState)([]),ln=Object(n.a)(Bt,2),xn=ln[0],an=ln[1],_n=Object(c.useState)(0),Gn=Object(n.a)(_n,2),mn=Gn[0],qn=Gn[1];Object(c.useEffect)(function(){var An=localStorage.getItem("registeruser");parseInt(An)===1&&(dn(!0),setTimeout(function(){localStorage.setItem("registeruser","2")},2e3))},[]),Object(c.useEffect)(function(){qt.login&&zn()},[qt]);function zn(){return Kn.apply(this,arguments)}function Kn(){return Kn=Object(f.a)(b.a.mark(function An(){var Bn;return b.a.wrap(function(Vn){for(;;)switch(Vn.prev=Vn.next){case 0:return Vn.next=2,Object(D.a)("/api/users/accounts/".concat(qt.login,".json"),{method:"get"});case 2:Bn=Vn.sent,an(Bn),Bn.identity?qn(1):qn(0);case 5:case"end":return Vn.stop()}},An)})),Kn.apply(this,arguments)}return u.a.createElement(o.a,{visible:Sn,title:null,footer:null,centered:!0,width:1081,closable:!1,closeIcon:!1,afterClose:function(){}},u.a.createElement("div",{style:{display:"flex"}},u.a.createElement(pe,null),mn===1&&u.a.createElement(ht,{users:xn,setIsShow:dn,setisone:qn}),mn===0&&u.a.createElement(me,{getUserInfo:zn}),u.a.createElement(O.a,{type:"navigation",size:"small",current:mn,style:{width:"250px",position:"absolute",right:"30px",bottom:"20px"}},u.a.createElement(Ut,{status:xn.identity?"process":"finish",title:"\u9009\u62E9\u89D2\u8272"}),u.a.createElement(Ut,{status:xn.identity?"process":"finish",title:"\u9009\u62E9\u5185\u5BB9"}))))}var ve=Ft,se=_("1vsH"),le=_("+pL4"),fe=_.n(le),Re=_("3I3x"),ce=_.n(Re),he=_("6CvP"),Se=_("m3rI"),we=_("9Bee"),Ze=_("wd/R"),Ye=_.n(Ze),it=_("JLYi"),Et=function(qt){var hn,cn,Sn,dn,Bt,ln,xn=qt.homePage,an=qt.globalSetting,_n=qt.user,Gn=qt.loading,mn=qt.dispatch,qn=Object(c.useRef)(null),zn=Object(c.useState)(),Kn=Object(n.a)(zn,2),An=Kn[0],Bn=Kn[1],Mn=Object(g.g)(),Vn=Object(c.useState)([{fontIcon:"",count:0,name:"\u6838\u5FC3\u8BFE\u7A0B\u6570\u91CF"},{fontIcon:"",count:0,name:"\u6559\u7814\u65B0\u95FB\u6570\u91CF"},{fontIcon:"",count:0,name:"\u6559\u6750\u63A8\u8350\u6570\u91CF"},{fontIcon:"",count:0,name:"\u5B9E\u9A8C\u9879\u76EE\u6570\u91CF"},{fontIcon:"",count:0,name:"\u5B9E\u8DF5\u5E73\u53F0\u6570\u91CF"},{fontIcon:"",count:0,name:"\u524D\u6CBF\u62D3\u5C55\u6570\u91CF"},{fontIcon:"",count:0,name:"\u6210\u5458\u6570\u91CF"}]),gi=Object(n.a)(Vn,2),ii=gi[0],vi=gi[1],Si=Object(c.useState)(!1),jn=Object(n.a)(Si,2),En=jn[0],si=jn[1],Yn=Object(c.useState)(!1),$n=Object(n.a)(Yn,2),li=$n[0],Ui=$n[1],wi=Object(c.useRef)(),Pi=Object(c.useRef)(),ki=Object(c.useState)(0),Mi=Object(n.a)(ki,2),Ei=Mi[0],Xn=Mi[1],Bi=wi==null||((hn=wi.current)===null||hn===void 0||((cn=hn.children)===null||cn===void 0))?void 0:cn.length,Li=303*Bi;Object(c.useEffect)(function(){return Object(he.m)().then(function(un){Bn(un);var In=un==null?void 0:un.index_statistics;ii[0].count=(In==null?void 0:In.core_subject_size)||0,ii[1].count=(In==null?void 0:In.news_event_size)||0,ii[2].count=(In==null?void 0:In.textbook_size)||0,ii[3].count=(In==null?void 0:In.core_course_size)||0,ii[4].count=(In==null?void 0:In.case_size)||0,ii[5].count=(In==null?void 0:In.preface_expansion_size)||0,ii[6].count=(In==null?void 0:In.user_size)||0,vi(Object(p.a)(ii))}),Object(se.r)()||mn({type:"globalSetting/onlyShowBackTopToggle",payload:!1}),function(){mn({type:"globalSetting/onlyShowBackTopToggle",payload:!0})}},[]),Object(c.useEffect)(function(){var un;Object(se.X)((an==null||((un=an.setting)===null||un===void 0)?void 0:un.name)||"\u5B9E\u8DF5\u6559\u5B66\u5E73\u53F0")},[an.setting]);var Ci=Object(c.useState)(-1),Rn=Object(n.a)(Ci,2),ri=Rn[0],pi=Rn[1],oi=function(){var In,Ti,ui,Di=xn.homepage_disciplines,Ri="sub_disciplines",Qi="paths",Ni=function(ai){return"/paths?discipline_id=".concat(Di[ri].id,"&&tag_tabs=").concat(ri+1,"&sub_discipline_id=").concat(ai.id,"&tag_level=2")};return u.a.createElement(u.a.Fragment,null,u.a.createElement("div",{className:"".concat(w.a.banner," ").concat(w.a.mainSiteBanner," ")},u.a.createElement("div",{className:w.a.subnav,onMouseLeave:function(){return pi(-1)}},Di&&Di[ri]&&u.a.createElement("div",{style:{zIndex:2},className:w.a.subnavDetail},(In=Di[ri])===null||In===void 0||((Ti=In[Ri])===null||Ti===void 0)?void 0:Ti.map(function(ti,ai){return u.a.createElement(C.a,{key:ai,to:Ni(ti)},u.a.createElement("div",null,u.a.createElement("h1",null,ti.name),u.a.createElement("ul",null,ti.tags&&ti.tags.map(function(Wi,Fi){return u.a.createElement("li",{key:Fi},u.a.createElement(C.a,{className:w.a.link,to:"/".concat(Qi,"?current_id=").concat(Di[ri].id,"&&tag_tabs=").concat(ri+1,"&tag_id=").concat(Wi.id,"&tag_level=3")},Wi.name))}))))}))),u.a.createElement("div",{style:{position:"relative"}},u.a.createElement(i.a,{className:w.a.LeftButton,onClick:function(){qn.current.prev()}}),u.a.createElement(s.a,{className:w.a.mainSite,ref:qn,autoplay:!0,pauseOnDotsHover:!0},An==null||((ui=An.images_url)===null||ui===void 0)?void 0:ui.map(function(ti,ai){return u.a.createElement("div",{style:{display:"flex"},key:ai},u.a.createElement("a",{style:{display:"block",width:"100%",height:"500px",position:"relative"},href:ti==null?void 0:ti.path},u.a.createElement("img",{style:{height:"100%",position:"absolute",left:"50%",transform:"translateX(-50%)",width:"100%",objectFit:"cover"},src:Se.a.IMG_SERVER+(ti==null?void 0:ti.image_url)})))}))),u.a.createElement(v.a,{className:w.a.RightButton,onClick:function(){qn.current.next()}})))},ei=function(){if(Ei>=0){si(!1);return}else si(!0),Ui(!0),Xn(Ei+303/2)},Xi=function(){if(Bi<5||Ei<=-Li/2){Ui(!1);return}else si(!0),Xn(Ei-303/2)};return u.a.createElement("section",null,parseInt(localStorage.getItem("registeruser"))===1&&u.a.createElement(ve,{userInfo:_n==null?void 0:_n.userInfo}),oi(),u.a.createElement("div",{className:w.a.ptdt},u.a.createElement("div",{className:w.a.ptdt_warp},u.a.createElement("div",{className:w.a.index_title},u.a.createElement("div",{className:w.a.title_content},u.a.createElement("img",{className:w.a.title_img,src:ce.a}),u.a.createElement("div",{className:w.a.title_text},"\u6700\u65B0\u65B0\u95FB\u52A8\u6001"),u.a.createElement("img",{className:w.a.title_img,src:fe.a})),u.a.createElement("div",{className:w.a.more,onClick:function(){Mn.push("/news")}},"\u67E5\u770B\u66F4\u591A")),u.a.createElement("div",{className:w.a.ptdt_con},u.a.createElement("div",{className:w.a.btn_left,onClick:function(){return ei()}}),u.a.createElement("div",{className:w.a.btn_right,onClick:function(){return Xi()}}),u.a.createElement("div",{className:w.a.left_bg,style:{display:En?"block":"none"}}),u.a.createElement("div",{className:w.a.right_bg,style:{display:li?"block":"none"}}),u.a.createElement("div",{className:w.a.inner,ref:wi},An==null||((Sn=An.news)===null||Sn===void 0)?void 0:Sn.map(function(un,In){var Ti=document.createElement("div");Ti.innerHTML=un==null?void 0:un.content;var ui=Ti.textContent;return u.a.createElement("div",{className:w.a.ptdt_item,ref:Pi,key:In,style:{left:Ei},onClick:function(){var Ri={education:"educationFiles",policy:"collegePolicy",request:"collegeRequirements",education_competition:"troopTraining"};Object(se.S)("/news/".concat(un.id,"/detail"))}},u.a.createElement("div",{className:w.a.ptdt_item_info},u.a.createElement("div",{className:w.a.title,title:un==null?void 0:un.title},un==null?void 0:un.title),u.a.createElement("div",{className:w.a.info,title:ui},ui),u.a.createElement("div",{className:w.a.time},Ye()(un==null?void 0:un.publish_time).format("YYYY-MM-DD"))),u.a.createElement("div",{className:w.a.round},u.a.createElement("div",{className:w.a.round2})),u.a.createElement("div",{className:w.a.line}))}))))),u.a.createElement("div",{className:w.a.index_title},u.a.createElement("div",{className:w.a.title_content},u.a.createElement("img",{className:w.a.title_img,src:ce.a}),u.a.createElement("div",{className:w.a.title_text},"\u201C101\u8BA1\u5212\u201D\u6838\u5FC3\u8BFE\u7A0B"),u.a.createElement("img",{className:w.a.title_img,src:fe.a})),u.a.createElement("div",{className:w.a.more,onClick:function(){Mn.push("/core")}},"\u67E5\u770B\u5168\u90E8\u8BFE\u7A0B")),u.a.createElement(d.a,{gutter:[16,20],style:{width:1200,margin:"0 auto"}},u.a.createElement(it.a,{data:(An==null?void 0:An.core_subject)||[]})),u.a.createElement("div",{className:w.a.index_title},u.a.createElement("div",{className:w.a.title_content},u.a.createElement("img",{className:w.a.title_img,src:ce.a}),u.a.createElement("div",{className:w.a.title_text},"\u5B9E\u9A8C\u9879\u76EE"),u.a.createElement("img",{className:w.a.title_img,src:fe.a})),u.a.createElement("div",{className:w.a.more,onClick:function(){Mn.push("/paths")}},"\u67E5\u770B\u5168\u90E8\u5B9E\u9A8C\u9879\u76EE")),u.a.createElement("div",{className:w.a.shixuns_list},An==null||((dn=An.core_courses)===null||dn===void 0)?void 0:dn.map(function(un,In){return u.a.createElement("div",{className:w.a.wrap,key:In},u.a.createElement("div",{className:w.a.li,onClick:function(){Mn.push("/paths/".concat(un==null?void 0:un.id))}},u.a.createElement("div",{className:w.a.img},u.a.createElement("img",{className:w.a.cover,src:Se.a.IMG_SERVER+(un==null?void 0:un.pic_url)})),u.a.createElement("div",{className:w.a.name},u.a.createElement(a.a,{title:un==null?void 0:un.name},u.a.createElement("span",{className:w.a.e},un==null?void 0:un.name)))))})),u.a.createElement("div",{className:w.a.index_title},u.a.createElement("div",{className:w.a.title_content},u.a.createElement("img",{className:w.a.title_img,src:ce.a}),u.a.createElement("div",{className:w.a.title_text},'"101\u8BA1\u5212"\u5DE5\u4F5C\u7EC4\u5355\u4F4D'),u.a.createElement("img",{className:w.a.title_img,src:fe.a})),u.a.createElement("div",{className:w.a.more,onClick:function(){Mn.push("/workunit")}},"\u67E5\u770B\u5168\u90E8\u5DE5\u4F5C\u7EC4\u5355\u4F4D")),u.a.createElement("div",{className:w.a.work_unit_list},An==null||((Bt=An.schools)===null||Bt===void 0)?void 0:Bt.map(function(un,In){return u.a.createElement("div",{className:w.a.work_unit,key:In},un!=null&&un.link_url?u.a.createElement("a",{href:un==null?void 0:un.link_url,target:"_blank"},u.a.createElement("img",{className:w.a.work_unit_img,src:Se.a.IMG_SERVER+(un==null?void 0:un.pic_url)})):u.a.createElement("img",{className:w.a.work_unit_img,src:Se.a.IMG_SERVER+(un==null?void 0:un.pic_url)}))})),u.a.createElement(we.a,{value:an==null||((ln=an.setting)===null||ln===void 0)?void 0:ln.footer}))},Pt=Object(e.a)(function($t){var qt=$t.homePage,hn=$t.loading,cn=$t.globalSetting,Sn=$t.user;return{homePage:qt,globalSetting:cn,loading:hn.models.homePage,user:Sn}})(Et),zt=_("cWXX"),Rt=_("/ezw"),rt=_("+UV5"),st=_.n(rt),qe=_("YVwf"),Ce=_.n(qe),Be=_("QOUV"),dt=_("o2EA"),ut=_.n(dt),It=_("h179"),wt=_.n(It),gt=_("CTM2"),Nt=_.n(gt),Mt=_("ygIP"),nt=_.n(Mt),xt=_("TFmm"),ue=_.n(xt),ae=_("80w6"),V=_.n(ae),J=function(qt){var hn,cn=qt.user,Sn=Object(N.a)(qt,["user"]),dn=Object(c.useState)(!0),Bt=Object(n.a)(dn,2),ln=Bt[0],xn=Bt[1],an=Object(c.useState)(0),_n=Object(n.a)(an,2),Gn=_n[0],mn=_n[1],qn=Object(c.useState)({}),zn=Object(n.a)(qn,2),Kn=zn[0],An=zn[1],Bn=Object(c.useState)(!1),Mn=Object(n.a)(Bn,2),Vn=Mn[0],gi=Mn[1];Object(c.useEffect)(function(){ii()},[]);var ii=function(){var En=Object(f.a)(b.a.mark(function si(){var Yn;return b.a.wrap(function(li){for(;;)switch(li.prev=li.next){case 0:return xn(!0),li.next=3,Object(D.a)("/api/home/index.json",{method:"get"});case 3:Yn=li.sent,Yn.images_url&&An(Yn),xn(!1);case 6:case"end":return li.stop()}},si)}));return function(){return En.apply(this,arguments)}}(),vi={loop:!0,slidesPerView:3,noSwiping:!0,autoplay:{delay:5e3,disableOnInteraction:!0},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},pagination:{el:".swiper-pagination",clickable:!0}},Si=[{name:"\u6C89\u6D78\u5F0F\u6559\u5B66",background:"linear-gradient(90deg, #F5F7FA 0%, #FBFCFD 100%)",tags:["\u6C89\u6D78\u5F0F\u4F53\u9A8C","3D\u7ACB\u4F53\u5E94\u7528\u6559\u5B66","\u4E92\u52A8\u5F0F\u5B66\u4E60"],more:!0},{name:"\u77E5\u8BC6\u68EE\u6797\u5B66\u4E60\u8DEF\u5F84\u667A\u80FD\u5BFC\u822A",background:"linear-gradient(90deg, #FBF3F3 0%, #FCFBFB 100%)",tags:["\u56FE\u8C31\u53EF\u89C6\u5316","\u591A\u6E90\u5F02\u6784\u6570\u636E\u5904\u7406","\u9AD8\u7EA7\u63A8\u7406\u5E94\u7528"],link:"https://ilearning.educoder.net/paths?openLearningPath=true&discipline_id=1&sub_discipline_id=2",more:!0},{name:"\u8BA4\u77E5\u8FC7\u7A0B\u63A8\u7406\u865A\u62DF\u73B0\u5B9E\u5B66\u4E60\u73AF\u5883",background:"linear-gradient(270deg, #FBF8FC 0%, #F0EFFB 100%)",tags:["\u4EFF\u771F\u6A21\u62DF\u8BAD\u7EC3","3D\u865A\u62DF\u73AF\u5883","\u6E38\u620F\u5316\u5B66\u4E60"],more:!1},{name:"\u56FE\u7075\u6D4B\u8BD5",background:"linear-gradient(90deg, #F0F2FD 0%, #F9FAFA 100%)",tags:["\u673A\u5668\u601D\u8003","\u4EBA\u5DE5\u667A\u80FD\u79D1\u5B66","\u6A21\u62DF\u6E38\u620F"],link:"https://ilearning.educoder.net/tasks/4z3jgw6vsuea",more:!0}],jn=[{img:ut.a,title:"\u6DF7\u5408\u589E\u5F3A\u60C5\u666F\u7406\u89E3",intro:"\u5E08-\u673A-\u751F\u4E09\u5143\u7ED3\u6784\u7684\u590D\u5408\u4E3B\u4F53\uFF0C\u7834\u89E3\u8BA4\u77E5\u80FD\u529B\u7684\u5C40\u9650\u6027"},{img:wt.a,title:"\u884C\u4E3A\u610F\u56FE\u8BC6\u522B\u8DDF\u8E2A",intro:"\u611F\u77E5\u5B66\u751F\u7684\u5B66\u4E60\u72B6\u6001\u3001\u95EE\u9898\u610F\u56FE\u548C\u8F85\u5BFC\u9700\u6C42\uFF0C\u63D0\u4F9B\u667A\u80FD\u76D1\u6D4B\u5BFC\u5B66",link:"https://ilearning.educoder.net/classrooms/nvoi7zeh/exercise/35872/detail?random=false"},{img:Nt.a,title:"\u5B66\u4E60\u8DEF\u5F84\u667A\u80FD\u63A8\u8350",intro:"\u53EF\u89E3\u91CA\u7684\u5B66\u4E60\u89C4\u5212\u548C\u5185\u5BB9\u63A8\u8350\u65B9\u6CD5\uFF0C\u652F\u6491\u4E2A\u6027\u5316\u5BFC\u6559",link:"https://ilearning.educoder.net/paths?openLearningPath=true&discipline_id=1&sub_discipline_id=2"},{img:nt.a,title:"\u4E2A\u6027\u5316\u8F85\u5BFC\u7B54\u7591",intro:"\u6570\u636E\u9A71\u52A8\u548C\u77E5\u8BC6\u68EE\u6797\u5F15\u5BFC\u7684\u95EE\u7B54\u65B9\u6CD5\uFF0C\u652F\u6491\u4E2A\u6027\u5316\u4F34\u5B66",link:"https://www.educoder.net/tasks/4z3jgw6vsuea"},{img:ue.a,title:"\u4EBA\u673A\u589E\u5F3A\u7FA4\u4F53\u6FC0\u52B1",intro:"\u591A\u7EF4\u5EA6\u6FC0\u52B1\u65B9\u6CD5\uFF0C\u589E\u5F3A\u5B66\u751F\u5BF9\u673A\u5668\u7684\u6B63\u5411\u53CD\u9988",link:"https://ilearning.educoder.net/classrooms/nvoi7zeh/group_homework/572013/detail"},{img:V.a,title:"\u4EBA\u673A\u589E\u5F3A\u7FA4\u4F53\u8BC4\u6D4B",intro:"\u884C\u4E3A\u7279\u5F81\u5D4C\u5165\u3001\u534F\u540C\u8BC4\u6D4B\u7B49\u7FA4\u7EC4\u8BC4\u6D4B\u65B9\u6CD5\uFF0C\u652F\u6491\u6559\u5B66\u6210\u6548\u8BC4\u4EF7",link:"https://ilearning.educoder.net/classrooms/nvoi7zeh/statistics_quality/192066"}];return u.a.createElement("section",{className:st.a.home},u.a.createElement(Be.a,{width:800,visible:Vn,file_url:"https://www-cdn.educoder.net/video/learning.mp4",copyUrl:"https://www-cdn.educoder.net/video/learning.mp4",onClose:function(){return gi(!1)}}),u.a.createElement(Rt.a,{loading:ln,active:!0,paragraph:{rows:5}},u.a.createElement("div",{className:st.a.bg},u.a.createElement("div",{className:st.a.public_width},u.a.createElement("div",{className:st.a.banner},u.a.createElement(Ce.a,vi,Kn==null||((hn=Kn.images_url)===null||hn===void 0)?void 0:hn.map(function(En){return u.a.createElement("div",{onClick:function(){En.path&&Object(se.S)(En.path)}},u.a.createElement("div",{className:"index_moe_li",style:{cursor:En.path?"pointer":"default"}},u.a.createElement("img",{src:Se.a.IMG_SERVER+En.image_url,alt:""}),u.a.createElement("div",{className:"index_moe_focus_shadow"}),u.a.createElement("span",{className:"index_moe_focus_b"})))}))))),u.a.createElement("div",{className:st.a.content},u.a.createElement("div",{className:st.a.experience},u.a.createElement("a",{href:"https://i-learning.smartedu.lenovo.com/ilearning",target:"_blank",className:st.a.li}),u.a.createElement(C.a,{to:"/paths/higherVocationalEducation",target:"_blank",className:st.a.li}),u.a.createElement(C.a,{to:"/paths",target:"_blank",className:st.a.li})),u.a.createElement("div",{className:st.a.demonstrate},u.a.createElement("div",{className:st.a.title},"\u5178\u578B\u573A\u666F\u5E94\u7528\u793A\u8303"),u.a.createElement("aside",null,Si.map(function(En,si){var Yn;return u.a.createElement("div",{key:si,className:st.a.li,style:{background:En.background,cursor:En!=null&&En.more?"pointer":"default"},onClick:function(){}},u.a.createElement("div",{className:st.a.name},En.name),u.a.createElement("div",{className:st.a.tagWarp},En==null||((Yn=En.tags)===null||Yn===void 0)?void 0:Yn.map(function($n,li){return u.a.createElement("div",{key:"".concat(si,"-").concat(li),className:st.a.tag},$n)})),u.a.createElement("div",{className:st.a.mask,onClick:function(){switch(si){case 0:gi(!0);break;default:En.link?Object(se.S)(En.link):En.more&&e.d.push("/classrooms/classicCases");return}},style:{background:En.more?"rgba(25, 110, 253, 0.8)":"rgba(90, 106, 132, 0.6)"}},En.more?"\u67E5\u770B\u66F4\u591A":"\u656C\u8BF7\u671F\u5F85\uFF5E"))}))),u.a.createElement("div",{className:st.a.feature},u.a.createElement("div",{className:st.a.name},u.a.createElement("span",null,"\u7279\u8272\u529F\u80FD"),u.a.createElement("span",null,"FEATURES")),u.a.createElement("aside",null,jn.map(function(En,si){return u.a.createElement("div",{className:st.a.li,key:En.title,onClick:function(){switch(si){case 0:gi(!0);break;default:En.link&&Object(se.S)(En.link);break}}},u.a.createElement("img",{src:En.img}),u.a.createElement("div",null,u.a.createElement("h4",null,En.title),u.a.createElement("h6",null,En.intro)))}))))))},te=Object(e.a)(function($t){var qt=$t.user;return{user:qt}})(J),re=_("Znn+"),be=_("ZTPi"),Pe=_("8/ia"),He=_.n(Pe),ft=_("QgcY"),_t=_("CzVm"),Lt=_.n(_t),Vt=_("Eo/3"),Ht=_.n(Vt),tt=_("Hwda"),jt=_.n(tt),Gt=_("rIHE"),Qt=_.n(Gt),Tt=_("APus"),tn=_.n(Tt),nn=_("B9Dg"),Jt=_.n(nn),Zt=_("IuEb"),fn=_.n(Zt),Tn=_("umnG"),pn=_.n(Tn),Un=_("40xk"),ni=_.n(Un),wn=_("LzVc"),Wn=_.n(wn),hi=function(qt){var hn=qt.competitions,cn=qt.user,Sn=qt.dispatch,dn=Object(N.a)(qt,["competitions","user","dispatch"]),Bt=Object(c.useState)(!1),ln=Object(n.a)(Bt,2),xn=ln[0],an=ln[1],_n=Object(c.useState)({}),Gn=Object(n.a)(_n,2),mn=Gn[0],qn=Gn[1],zn=Object(c.useState)(""),Kn=Object(n.a)(zn,2),An=Kn[0],Bn=Kn[1],Mn=Object(c.useRef)(null),Vn=Object(c.useRef)(null);Object(c.useEffect)(function(){gi()},[]);var gi=function(){var jn=Object(f.a)(b.a.mark(function En(){return b.a.wrap(function(Yn){for(;;)switch(Yn.prev=Yn.next){case 0:hn.listParams.keyword="",hn.listParams.category="",hn.listParams.page=1,Sn({type:"competitions/getList",payload:Object(L.a)({},hn.listParams)});case 4:case"end":return Yn.stop()}},En)}));return function(){return jn.apply(this,arguments)}}(),ii=[{path:"",img:Lt.a},{path:"",img:Lt.a},{path:"",img:Lt.a},{path:"",img:Lt.a}],vi=[{path:"",img:fn.a,name:"\u7B2C\u4E94\u5C4A\u4E2D\u56FD\u8BA1\u7B97\u673A\u8F6F\u4EF6\u5F00\u6E90\u521B\u65B0\u667A\u80FD\u5927\u8D5B",des:"\u968F\u7740AI\u6280\u672F\u7684\u5F15\u5165\uFF0C\u6559\u80B2\u884C\u4E1A\u6B63\u5728\u8131\u79BB\u5355\u4E00\u6559\u80B2\u8F85\u52A9\u7684\u89D2\u8272\uFF0C\u4E3A\u53D7\u6559\u80B2\u8005\u63D0\u4F9B\u79D1\u6280\u8D4B\u80FD\u3001\u5185\u5BB9\u5B8C\u5584\u3001\u6548\u679C\u4F18\u826F\u7684\u8BFE\u7A0B\uFF0C\uFF0C\u5185\u5BB9\u5B8C\u5584\u3001\u6548\u679C\u4F18\u826F\u7684\u8BFE\u7A0B\uFF0C\u7ED3\u5408\u6D77\u91CF\u4F18\u8D28\u8D44\u6E90\u8986\u76D6\u7EC8\u8EAB\u5B66\u4E60\u573A\u666F\uFF0C\u5B9E\u73B0\u9AD8\u8D28\u91CF\u6559\u80B2\u7684\u53EF\u6301\u7EED\u53D1\u5C55\u76EE\u6807\u3002"},{path:"",img:fn.a,name:"\u7B2C\u4E94\u5C4A\u4E2D\u56FD\u8BA1\u7B97\u673A\u8F6F\u4EF6\u5F00\u6E90\u521B\u65B0\u667A\u80FD\u5927\u8D5B",des:"\u968F\u7740AI\u6280\u672F\u7684\u5F15\u5165\uFF0C\u6559\u80B2\u884C\u4E1A\u6B63\u5728\u8131\u79BB\u5355\u4E00\u6559\u80B2\u8F85\u52A9\u7684\u89D2\u8272\uFF0C\u4E3A\u53D7\u6559\u80B2\u8005\u63D0\u4F9B\u79D1\u6280\u8D4B\u80FD\u3001\u5185\u5BB9\u5B8C\u5584\u3001\u6548\u679C\u4F18\u826F\u7684\u8BFE\u7A0B\uFF0C\uFF0C\u5185\u5BB9\u5B8C\u5584\u3001\u6548\u679C\u4F18\u826F\u7684\u8BFE\u7A0B\uFF0C\u7ED3\u5408\u6D77\u91CF\u4F18\u8D28\u8D44\u6E90\u8986\u76D6\u7EC8\u8EAB\u5B66\u4E60\u573A\u666F\uFF0C\u5B9E\u73B0\u9AD8\u8D28\u91CF\u6559\u80B2\u7684\u53EF\u6301\u7EED\u53D1\u5C55\u76EE\u6807\u3002"},{path:"",img:fn.a,name:"\u7B2C\u4E94\u5C4A\u4E2D\u56FD\u8BA1\u7B97\u673A\u8F6F\u4EF6\u5F00\u6E90\u521B\u65B0\u667A\u80FD\u5927\u8D5B",des:"\u968F\u7740AI\u6280\u672F\u7684\u5F15\u5165\uFF0C\u6559\u80B2\u884C\u4E1A\u6B63\u5728\u8131\u79BB\u5355\u4E00\u6559\u80B2\u8F85\u52A9\u7684\u89D2\u8272\uFF0C\u4E3A\u53D7\u6559\u80B2\u8005\u63D0\u4F9B\u79D1\u6280\u8D4B\u80FD\u3001\u5185\u5BB9\u5B8C\u5584\u3001\u6548\u679C\u4F18\u826F\u7684\u8BFE\u7A0B\uFF0C\uFF0C\u5185\u5BB9\u5B8C\u5584\u3001\u6548\u679C\u4F18\u826F\u7684\u8BFE\u7A0B\uFF0C\u7ED3\u5408\u6D77\u91CF\u4F18\u8D28\u8D44\u6E90\u8986\u76D6\u7EC8\u8EAB\u5B66\u4E60\u573A\u666F\uFF0C\u5B9E\u73B0\u9AD8\u8D28\u91CF\u6559\u80B2\u7684\u53EF\u6301\u7EED\u53D1\u5C55\u76EE\u6807\u3002"}],Si=function(En){Bn(En),hn.listParams.page=1,hn.listParams.category=En,Sn({type:"competitions/getList",payload:Object(L.a)({},hn.listParams)})};return u.a.createElement("section",{className:He.a.home},u.a.createElement(Rt.a,{loading:xn,active:!0,paragraph:{rows:5}},u.a.createElement("div",{className:He.a.bg},ii&&u.a.createElement(s.a,{ref:Mn,autoplay:!0,pauseOnDotsHover:!0},ii==null?void 0:ii.map(function(jn,En){return u.a.createElement("div",{key:En,className:He.a.li},u.a.createElement("a",{href:jn.path},u.a.createElement("img",{width:"100%",src:jn.img})))})),u.a.createElement("div",{className:He.a.btns},u.a.createElement("div",{onClick:function(){Mn.current.prev()}},u.a.createElement("i",{className:"iconfont icon-fanhui1"})),u.a.createElement("div",{style:{transform:"rotate(180deg)"},onClick:function(){Mn.current.next()}},u.a.createElement("i",{className:"iconfont icon-fanhui1"})))),u.a.createElement("div",{className:He.a.competition},u.a.createElement("div",{className:He.a.title},"2022\u8D5B\u4E8B"),u.a.createElement("div",{className:He.a.des},u.a.createElement("img",{src:Ht.a,alt:""}),u.a.createElement("aside",null,u.a.createElement("div",null,"5\u67087\u65E5"),u.a.createElement("div",null,"\u5927\u8D5B\u5F00\u542F")),u.a.createElement("img",{className:"ml5 mr5",src:Jt.a}),u.a.createElement("img",{src:jt.a,alt:""}),u.a.createElement("aside",null,u.a.createElement("div",null,"5\u67087\u65E5-8\u670815\u65E5"),u.a.createElement("div",null,"\u5927\u8D5B\u5E38\u89C4\u8D5B\u9636\u6BB5")),u.a.createElement("img",{className:"ml5 mr5",src:Jt.a}),u.a.createElement("img",{src:Qt.a,alt:""}),u.a.createElement("aside",null,u.a.createElement("div",null,"8\u670815\u65E5-11\u670820\u65E5"),u.a.createElement("div",null,"\u5927\u8D5B\u51B3\u8D5B\u9636\u6BB5")),u.a.createElement("img",{className:"ml5 mr5",src:Jt.a}),u.a.createElement("img",{src:tn.a,alt:""}),u.a.createElement("aside",null,u.a.createElement("div",null,"12\u67081\u65E5"),u.a.createElement("div",null,"\u9881\u5956\u5927\u4F1A")))),u.a.createElement("div",{className:He.a.information},u.a.createElement("div",{className:He.a.title},u.a.createElement("b",null,"\u8D5B\u4E8B\u8D44\u8BAF"),u.a.createElement("span",null,"\u66F4\u591A",u.a.createElement("i",{className:"iconfont icon-zhankai1 font14"}))),u.a.createElement("div",{className:He.a.des},u.a.createElement("div",{className:He.a.d1},u.a.createElement("b",null,"\u7B2C\u4E94\u5C4A\u4E2D\u56FD\u8F6F\u4EF6\u5F00\u6E90\u521B\u65B0\u5927\u8D5B"),u.a.createElement("aside",null,"openEuler\u5F00\u6E90\u793E\u533A\u8D21\u732E\u8D5B"),u.a.createElement("div",null,"\u67E5\u770B\u8BE6\u60C5")),u.a.createElement("div",{className:He.a.d2},u.a.createElement("div",null,u.a.createElement("b",null,"\u7B2C\u4E8C\u5C4A\u300C\u8BA1\u56FE\u300Dittor\u300D\u4EBA\u5DE5\u667A\u80FD\u6311\u6218\u8D5B"),u.a.createElement("aside",null,"\u56FD\u5BB6\u81EA\u7136\u79D1\u5B66\u57FA\u91D1\u59D4\u4FE1\u606F\u79D1\u5B66\u90E8"),u.a.createElement("div",null,"\u67E5\u770B\u8BE6\u60C5")),u.a.createElement("div",null,u.a.createElement("b",null,"\u7B2C\u4E8C\u5C4A\u300C\u8BA1\u56FE\u300Dittor\u300D\u8BA1\u7B97\u673A\u4EBA\u5DE5\u667A\u80FD\u6311\u6218\u2026"),u.a.createElement("aside",null,"\u56FD\u5BB6\u81EA\u7136\u79D1\u5B66\u57FA\u91D1\u59D4\u4FE1\u606F\u79D1\u5B66\u90E8"),u.a.createElement("div",null,"\u67E5\u770B\u8BE6\u60C5"))),u.a.createElement("div",{className:He.a.d3},u.a.createElement("div",null,u.a.createElement("b",null,"DataWorks\u4E00\u7AD9\u5F0F\u5927\u6570\u636E\u5F00\u53D1\u6311\u6218\u5927\u8D5B"),u.a.createElement("aside",null,"\u56FD\u5BB6\u81EA\u7136\u79D1\u5B66\u57FA\u91D1\u59D4\u4FE1\u606F\u79D1\u5B66\u90E8"),u.a.createElement("div",null,"\u67E5\u770B\u8BE6\u60C5")),u.a.createElement("div",null,u.a.createElement("b",null,"\u300C\u8BA1\u56FE\u300Dittor\u300D\u5927\u6570\u636E\u8FD0\u7528\u4EBA\u5DE5\u667A\u80FD\u6311\u6218\u8D5B\u2026"),u.a.createElement("aside",null,"\u56FD\u5BB6\u81EA\u7136\u79D1\u5B66\u57FA\u91D1\u59D4\u4FE1\u606F\u79D1\u5B66\u90E8"),u.a.createElement("div",null,"\u67E5\u770B\u8BE6\u60C5"))))),u.a.createElement("div",{className:He.a.retrospect},u.a.createElement("div",{className:He.a.title},u.a.createElement("b",null,"\u5F80\u671F\u56DE\u987E"),u.a.createElement("span",null,"\u66F4\u591A",u.a.createElement("i",{className:"iconfont icon-zhankai1 font14"}))),u.a.createElement("div",{className:He.a.banner},vi&&u.a.createElement(s.a,{ref:Vn,autoplay:!1,pauseOnDotsHover:!0},vi==null?void 0:vi.map(function(jn,En){return u.a.createElement("div",{key:En,className:He.a.li},u.a.createElement("div",{className:He.a.left},u.a.createElement("img",{width:524,src:jn.img})),u.a.createElement("div",{className:He.a.right},u.a.createElement("div",{className:He.a.name},jn==null?void 0:jn.name),u.a.createElement("div",{className:He.a.des},jn.des),u.a.createElement("div",{className:He.a.btn},u.a.createElement("span",null,"\u7ACB\u5373\u67E5\u770B"),u.a.createElement("img",{src:pn.a})),u.a.createElement("img",{className:He.a.l,src:ni.a}),u.a.createElement("img",{className:He.a.r,src:Wn.a})))})),u.a.createElement("div",{className:He.a.btns},u.a.createElement("div",{onClick:function(){Vn.current.prev()}},u.a.createElement("i",{className:"iconfont icon-fanhui1"})),u.a.createElement("div",{style:{transform:"rotate(180deg)"},onClick:function(){Vn.current.next()}},u.a.createElement("i",{className:"iconfont icon-fanhui1"}))))),u.a.createElement("div",{className:He.a.group},u.a.createElement("div",{className:He.a.title},"\u8D5B\u9898\u5206\u7EC4"),u.a.createElement(be.a,{className:He.a.tabs,activeKey:An,onChange:Si},u.a.createElement(be.a.TabPane,{tab:"\u5168\u90E8",key:""}),u.a.createElement(be.a.TabPane,{tab:"\u8FDB\u884C\u4E2D",key:"progressing"}),u.a.createElement(be.a.TabPane,{tab:"\u5DF2\u7ED3\u675F",key:"ended"})),u.a.createElement("div",{className:He.a.list},u.a.createElement(ft.default,{show:!1})),u.a.createElement("div",{onClick:function(){return e.d.push("/competitions?tabs=".concat(An))},className:He.a.btn},"\u66F4\u591A\u8D5B\u4E8B",u.a.createElement("i",{className:"iconfont icon-zhankai1 font14 ml5"})))))},di=Object(e.a)(function($t){var qt=$t.competitions,hn=$t.user;return{competitions:qt,user:hn}})(hi),ci=function(qt){var hn=qt.loading,cn=qt.globalSetting,Sn=qt.children,dn=qt.user,Bt=qt.dispatch,ln=qt.location,xn=Object(N.a)(qt,["loading","globalSetting","children","user","dispatch","location"]),an=Object(g.h)(),_n=Object(m.b)(),Gn=cn.globalLoading;return Object(c.useEffect)(function(){window.less.modifyVars(Object(L.a)({},r.a[cn.theme]))},[cn.theme]),u.a.createElement(U.b,{locale:M.default},!cn.isIlearning&&cn.isPaZhou?u.a.createElement(di,null):u.a.createElement(Pt,null),cn.isIlearning&&u.a.createElement(te,null))},Zn=q.default=Object(e.a)(function($t){var qt=$t.loading,hn=$t.globalSetting,cn=$t.user;return{loading:qt,globalSetting:hn,user:cn}})(ci)},QgcY:function(ge,q,_){"use strict";_.r(q);var Z=_("2qtc"),U=_("kLXV"),L=_("DjyN"),N=_("NUBc"),c=_("cWXX"),u=_("/ezw"),M=_("+L6B"),g=_("2/Rp"),e=_("Mwp2"),m=_("VXEj"),r=_("5NDa"),h=_("5rEg"),a=_("miYZ"),l=_("tsqr"),d=_("9og8"),y=_("k1fw"),s=_("tJVT"),p=_("PpiC"),n=_("Znn+"),i=_("ZTPi"),v=_("WmNS"),C=_.n(v),R=_("q1tI"),w=_.n(R),x=_("Ty5D"),A=_("9kvl"),o=_("1vsH"),f=_("D2RN"),E=_.n(f),O=_("BdwD"),S=_("m3rI"),b=_("zrhs"),D=_("xKgJ"),P=_("NLgs"),I=_("14J3"),F=_("BMrR"),K=_("sRBo"),j=_("kaz8"),Y=_("/zsF"),W=_("PArb"),Q=_("T2oS"),ie=_("W9HT"),Ee=_("jCWc"),pe=_("kPKH"),De=_("5Dmo"),Me=_("3S7+"),Ue=_("oBTY"),Ie=_("wd/R"),ne=_.n(Ie),B=_("cVA7"),z=_.n(B),H=_("ErOA"),ee=_("RotF"),X=_.n(ee),me=_("mgmH"),je=_("nj+s"),Je=_.n(je),oe=function(){var Et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return{color:["#0152d9","#B620E0","#44D7B6"],legend:{},tooltip:{},dataset:{source:Et},xAxis:{type:"category"},yAxis:{},series:[{type:"bar",label:{show:!0,position:"top"}},{type:"bar",label:{show:!0,position:"top"}},{type:"bar",label:{show:!0,position:"top"}}]}},Ae=_("6lbe"),ye=_.n(Ae),Le=i.a.TabPane,We=j.a.Group,Xe=function(Et){var Pt,zt,Rt,rt,st,qe=Et.competitions,Ce=Et.globalSetting,Be=Et.loading,dt=Et.dispatch,ut=Et.user,It=Et.type,wt=Et.keyword,gt=Object(p.a)(Et,["competitions","globalSetting","loading","dispatch","user","type","keyword"]),Nt=Object(x.i)(),Mt=Object(R.useState)({data:[["\u4E1C\u5317",0,0,0],["\u534E\u4E1C",0,0,0],["\u534E\u5317",0,0,0],["\u534E\u4E2D",0,0,0],["\u534E\u5357",0,0,0],["\u897F\u5357",0,0,0],["\u897F\u5317",0,0,0],["\u5176\u4ED6",0,0,0]]}),nt=Object(s.a)(Mt,2),xt=nt[0],ue=nt[1],ae=Object(R.useState)(!1),V=Object(s.a)(ae,2),J=V[0],te=V[1],re=Object(R.useState)(!0),be=Object(s.a)(re,2),Pe=be[0],He=be[1],ft=Object(R.useState)([]),_t=Object(s.a)(ft,2),Lt=_t[0],Vt=_t[1],Ht=Object(R.useState)([]),tt=Object(s.a)(Ht,2),jt=tt[0],Gt=tt[1];Object(R.useEffect)(function(){Qt()},[Nt,wt]);function Qt(){return Tt.apply(this,arguments)}function Tt(){return Tt=Object(d.a)(C.a.mark(function tn(){var nn;return C.a.wrap(function(Zt){for(;;)switch(Zt.prev=Zt.next){case 0:return te(!0),Zt.next=3,dt({type:"competitions/getList",payload:{category:It,page:1,keyword:wt||""}});case 3:nn=Zt.sent,te(!1),Vt([]),ue({data:[["\u4E1C\u5317",0,0,0],["\u534E\u4E1C",0,0,0],["\u534E\u5317",0,0,0],["\u534E\u4E2D",0,0,0],["\u534E\u5357",0,0,0],["\u897F\u5357",0,0,0],["\u897F\u5317",0,0,0],["\u5176\u4ED6",0,0,0]]}),Gt(Object(Ue.a)(nn==null?void 0:nn.competitions));case 8:case"end":return Zt.stop()}},tn)})),Tt.apply(this,arguments)}return w.a.createElement("section",null,w.a.createElement("aside",{className:"edu-container minH500"},(jt==null?void 0:jt.length)===0&&w.a.createElement(O.a,null),(jt==null?void 0:jt.length)>0&&w.a.createElement("div",{className:Je.a.scrollWrapper,style:{overflowY:"auto"}},w.a.createElement(X.a,{initialLoad:!1,pageStart:1,threshold:20,loadMore:function(){var tn=Object(d.a)(C.a.mark(function nn(Jt){var Zt,fn;return C.a.wrap(function(pn){for(;;)switch(pn.prev=pn.next){case 0:if(!(Pe&&!J)){pn.next=8;break}return te(!0),pn.next=4,dt({type:"competitions/getList",payload:{category:It,page:Jt}});case 4:fn=pn.sent,te(!1),Gt([].concat(Object(Ue.a)(jt),Object(Ue.a)(fn==null?void 0:fn.competitions))),(fn==null||((Zt=fn.competitions)===null||Zt===void 0)?void 0:Zt.length)<20&&He(!1);case 8:case"end":return pn.stop()}},nn)}));return function(nn){return tn.apply(this,arguments)}}(),hasMore:Pe,useWindow:!1},w.a.createElement(ie.a,{spinning:J},w.a.createElement(We,{value:Lt,onChange:function(){var tn=Object(d.a)(C.a.mark(function nn(Jt){var Zt;return C.a.wrap(function(Tn){for(;;)switch(Tn.prev=Tn.next){case 0:if(Vt(Object(Ue.a)(Jt)),!((Jt==null?void 0:Jt.length)>0)){Tn.next=8;break}return Tn.next=4,Object(H.a)("/api/competitions/region_reports.json",{method:"get",params:{ids:Jt.toString()}});case 4:Zt=Tn.sent,(Zt==null?void 0:Zt.status)===0&&ue(Zt),Tn.next=9;break;case 8:ue({data:[["\u4E1C\u5317",0,0,0],["\u534E\u4E1C",0,0,0],["\u534E\u5317",0,0,0],["\u534E\u4E2D",0,0,0],["\u534E\u5357",0,0,0],["\u897F\u5357",0,0,0],["\u897F\u5317",0,0,0],["\u5176\u4ED6",0,0,0]]});case 9:case"end":return Tn.stop()}},nn)}));return function(nn){return tn.apply(this,arguments)}}()},w.a.createElement(F.a,{gutter:[16,16]},jt==null?void 0:jt.map(function(tn,nn){return w.a.createElement(pe.a,{span:12},w.a.createElement(j.a,{value:tn.id,className:Je.a.checkBoxWrapper},w.a.createElement(Me.a,{className:Je.a.checkboxtitle,title:tn.sub_title?tn.name+"\u2014\u2014"+tn.sub_title:tn.name},tn.name,tn.sub_title?"\u2014\u2014"+tn.sub_title:"")))})))))),w.a.createElement(F.a,{justify:"space-between",align:"middle"},w.a.createElement("div",{className:Je.a.partTitle},"\u6570\u636E\u5C55\u793A"),w.a.createElement(g.a,{className:Je.a.exportBtn,onClick:function(){Object(me.m)({ids:Lt.toString()})}},w.a.createElement("img",{src:ye.a,alt:"",className:Je.a.pngIcon}),"\u6570\u636E\u5BFC\u51FA")),w.a.createElement("div",{style:{marginTop:"10px",background:"#fff",paddingBottom:"20px"}},w.a.createElement(W.a,{style:{padding:"0px 40px"}}),w.a.createElement("div",{style:{textAlign:"center"}},w.a.createElement("span",{style:{fontSize:"20px",fontWeight:600}},"\u7ADE\u8D5B\u62A5\u540D\u60C5\u51B5\u7EDF\u8BA1\u7B80\u62A5"),w.a.createElement("br",null),w.a.createElement("div",{style:{marginTop:"20px"}},w.a.createElement("span",null,"\u622A\u6B62\u81F3\uFF1A",ne()(new Date).format("MM\u6708DD\u65E5 HH:mm:ss")),w.a.createElement("span",{style:{marginLeft:"30px"}},"\u6240\u9009\u4E2D\u5927\u8D5B\u76EE\u524D\u5408\u8BA1\u5171\u6709\uFF1A",w.a.createElement("span",{style:{color:"#999999"}}," ",w.a.createElement("span",{style:{color:"#B620E0"}},(xt==null?void 0:xt.school_count)||0)," ","\u6240\u9AD8\u6821"," ",w.a.createElement("span",{style:{color:"#44D7B6",marginLeft:"10px"}},(xt==null?void 0:xt.team_count)||0)," ","\u652F\u961F\u4F0D"," ",w.a.createElement("span",{style:{color:"#0152d9",marginLeft:"10px"}},(xt==null?void 0:xt.user_count)||0)," ","\u540D\u5B66\u751F\u62A5\u540D"," ")))),w.a.createElement("div",{style:{height:"70px",display:"flex",justifyContent:"center",padding:"20px 0px"}},w.a.createElement("div",{style:{margin:"0px 40px",textAlign:"center"}},w.a.createElement("p",{style:{color:"#333333"}},"985\u9662\u6821"),w.a.createElement("p",{style:{color:"#999999",fontSize:"14px"}},w.a.createElement("span",{style:{color:"#E53333",fontSize:"20px",marginRight:"2px"}},(xt==null||((Pt=xt.school_level_count)===null||Pt===void 0)?void 0:Pt[0])||0),"\u6240")),w.a.createElement("span",{style:{height:"54px",border:"1px solid #f1f1f1",width:"1px"}}),w.a.createElement("div",{style:{margin:"0px 40px",textAlign:"center"}},w.a.createElement("p",{style:{color:"#333333"}},"211\u9662\u6821"),w.a.createElement("p",{style:{color:"#999999",fontSize:"14px"}},w.a.createElement("span",{style:{color:"#FF8C29",fontSize:"20px",marginRight:"2px"}},(xt==null||((zt=xt.school_level_count)===null||zt===void 0)?void 0:zt[1])||0),"\u6240")),w.a.createElement("span",{style:{height:"54px",border:"1px solid #f1f1f1",width:"1px"}}),w.a.createElement("div",{style:{margin:"0px 40px",textAlign:"center"}},w.a.createElement("p",{style:{color:"#333333"}},"\u672C\u79D1\u9662\u6821"),w.a.createElement("p",{style:{color:"#999999",fontSize:"14px"}},w.a.createElement("span",{style:{color:"#F7B500",fontSize:"20px",marginRight:"2px"}},(xt==null||((Rt=xt.school_level_count)===null||Rt===void 0)?void 0:Rt[2])||0),"\u6240")),w.a.createElement("span",{style:{height:"54px",border:"1px solid #f1f1f1",width:"1px"}}),w.a.createElement("div",{style:{margin:"0px 40px",textAlign:"center"}},w.a.createElement("p",{style:{color:"#333333"}},"\u9AD8\u804C\u9AD8\u4E13"),w.a.createElement("p",{style:{color:"#999999",fontSize:"14px"}},w.a.createElement("span",{style:{color:"#0152d9",fontSize:"20px",marginRight:"2px"}},(xt==null||((rt=xt.school_level_count)===null||rt===void 0)?void 0:rt[3])||0),"\u6240")),w.a.createElement("span",{style:{height:"54px",border:"1px solid #f1f1f1",width:"1px"}}),w.a.createElement("div",{style:{margin:"0px 40px",textAlign:"center"}},w.a.createElement("p",{style:{color:"#333333"}},"\u5176\u4ED6\u9662\u6821"),w.a.createElement("p",{style:{color:"#999999",fontSize:"14px"}},w.a.createElement("span",{style:{color:"#666666",fontSize:"20px",marginRight:"2px"}},(xt==null||((st=xt.school_level_count)===null||st===void 0)?void 0:st[4])||0),"\u6240"))),w.a.createElement(z.a,{option:oe(Object.values(xt==null?void 0:xt.data)),style:{height:400,width:1200},opts:{renderer:"svg"}}),w.a.createElement("div",{style:{display:"flex",justifyContent:"center"}},w.a.createElement("div",{style:{display:"flex",alignItems:"center"}},w.a.createElement("span",{style:{display:"flex",marginRight:"5px",width:"14px",height:"14px",background:"#0152d9"}}),"\u4EBA\u6570"),w.a.createElement("div",{style:{display:"flex",alignItems:"center",margin:"0px 20px"}},w.a.createElement("span",{style:{display:"flex",marginRight:"5px",width:"14px",height:"14px",background:"#B620E0"}}),"\u5B66\u6821\u6570"),w.a.createElement("div",{style:{display:"flex",alignItems:"center"}},w.a.createElement("span",{style:{display:"flex",marginRight:"5px",width:"14px",height:"14px",background:"#44D7B6"}}),"\u961F\u4F0D\u6570\uFF08\u961F\u4F0D\u5982\u679C\u8DE8\u533A\uFF0C\u5219\u8BE5\u961F\u4F0D\u5728\u5404\u81EA\u533A\u57DF\u961F\u4F0D\u6570\u90FD\u52A01\uFF09")))))},ct=Object(A.a)(function(it){var Et=it.competitions,Pt=it.loading,zt=it.globalSetting,Rt=it.user;return{competitions:Et,globalSetting:zt,loading:Pt.models.competitions,user:Rt}})(Xe),lt=_("Nf5h"),St=i.a.TabPane,Dt=j.a.Group,bt=function(Et){var Pt=Et.competitions,zt=Et.globalSetting,Rt=Et.loading,rt=Et.dispatch,st=Et.user,qe=Object(p.a)(Et,["competitions","globalSetting","loading","dispatch","user"]),Ce=Object(R.useState)(""),Be=Object(s.a)(Ce,2),dt=Be[0],ut=Be[1],It=Object(R.useState)(),wt=Object(s.a)(It,2),gt=wt[0],Nt=wt[1],Mt=Object(R.useState)(""),nt=Object(s.a)(Mt,2),xt=nt[0],ue=nt[1];return w.a.createElement("section",null,w.a.createElement("aside",{className:"edu-container minH500"},w.a.createElement(F.a,{align:"middle",justify:"space-between",style:{marginBottom:26,marginTop:30}},w.a.createElement(lt.l,{dataSource:[{id:"",name:"\u5168\u90E8"},{id:"progressing",name:"\u8FDB\u884C\u4E2D\u7684"},{id:"ended",name:"\u5F80\u671F\u6BD4\u8D5B"}],value:dt,onChange:ut}),w.a.createElement("div",{className:Je.a.searchWrap},w.a.createElement(h.a.Search,{placeholder:"\u8BF7\u8F93\u5165\u7ADE\u8D5B\u540D\u79F0",size:"large",className:Je.a.search,value:xt,onChange:function(V){V.target.value||Nt(V.target.value),ue(V.target.value)},onSearch:function(V){Nt(V)},suffix:w.a.createElement("i",{className:"iconfont icon-sousuo9 font14 ".concat(Je.a.searchIcon),onClick:function(){return Nt(xt)}})}))),dt===""&&w.a.createElement(ct,{type:dt,keyword:gt}),dt==="progressing"&&w.a.createElement(ct,{type:dt,keyword:gt}),dt==="ended"&&w.a.createElement(ct,{type:dt,keyword:gt})))},ht=Object(A.a)(function(it){var Et=it.competitions,Pt=it.loading,zt=it.globalSetting,Rt=it.user;return{competitions:Et,globalSetting:zt,loading:Pt.models.competitions,user:Rt}})(bt),Ut=_("lzim"),Ft=_("GNQp"),ve=_("2BaD");function se(it){var Et=it.modeldata,Pt=it.dispatch,zt=Object(R.useState)(!1),Rt=Object(s.a)(zt,2),rt=Rt[0],st=Rt[1];Object(R.useEffect)(function(){setTimeout(function(){var Be=localStorage.getItem("isfirst"),dt=ne()(localStorage.getItem("showtime")||new Date);dt.diff(ne()(new Date),"hours")>0?st(!1):Be&&Be==="0"?(st(!0),localStorage.setItem("showtime",ne()().add(12,"hours").format("YYYY-MM-DD HH:mm:ss"))):st(!1)},1e3)},[]);function qe(Be){return Ce.apply(this,arguments)}function Ce(){return Ce=Object(d.a)(C.a.mark(function Be(dt){var ut,It;return C.a.wrap(function(gt){for(;;)switch(gt.prev=gt.next){case 0:if(localStorage.setItem("isfirst","2"),Et&&Et.link&&st(!0),!(Et&&!Et.link)){gt.next=5;break}if(!(dt===2)){gt.next=5;break}return gt.abrupt("return");case 5:return st(!1),gt.next=8,Pt({type:"homePage/UploadNotice",payload:{t:dt,id:Et&&Et.id}});case 8:ut=gt.sent,ut&&(Et&&Et.link&&(dt===2&&(ut.is_create&&(localStorage.setItem("iscreate","1"),It={competition:ut.competition,identify:ut.identify,sub_title:ut.sub_title,team_id:ut.team_id,team_name:ut.team_name},localStorage.setItem("item",JSON.stringify(It))),window.location.href="".concat(Et&&Et.link))));case 10:case"end":return gt.stop()}},Be)})),Ce.apply(this,arguments)}return w.a.createElement(U.a,{visible:rt,title:null,footer:null,style:{background:"transparen"},centered:!0,width:670,className:"advertisementModal",maskClosable:!1,closeIcon:w.a.createElement(ve.a,{onClick:function(){return qe(1)},style:{fontSize:"25px",color:"#fff"}})},w.a.createElement("img",{style:{width:"600px",height:"337px",marginTop:"15px",borderRadius:"10px",cursor:Et&&Et.link?"pointer":""},onClick:function(){return qe(2)},src:S.a.IMG_SERVER+"".concat(Et&&Et.img_url)}))}var le=se,fe=_("F2wG"),Re=_.n(fe),ce=_("UfjD"),he=_("qHvr"),Se=_("SVaM"),we=i.a.TabPane,Ze=function(Et){var Pt=Et.competitions,zt=Et.globalSetting,Rt=Et.loading,rt=Et.dispatch,st=Et.user,qe=Et.show,Ce=qe===void 0?!0:qe,Be=Object(p.a)(Et,["competitions","globalSetting","loading","dispatch","user","show"]),dt=Object(x.h)(),ut=Object(R.useState)(!1),It=Object(s.a)(ut,2),wt=It[0],gt=It[1],Nt=Object(R.useState)(),Mt=Object(s.a)(Nt,2),nt=Mt[0],xt=Mt[1],ue=Object(R.useState)(!1),ae=Object(s.a)(ue,2),V=ae[0],J=ae[1],te=Object(R.useState)(!1),re=Object(s.a)(te,2),be=re[0],Pe=re[1],He=Object(R.useState)(!1),ft=Object(s.a)(He,2),_t=ft[0],Lt=ft[1],Vt=Object(R.useState)(!0),Ht=Object(s.a)(Vt,2),tt=Ht[0],jt=Ht[1],Gt=Object(R.useState)([]),Qt=Object(s.a)(Gt,2),Tt=Qt[0],tn=Qt[1];Object(R.useEffect)(function(){return rt({type:"globalSetting/onlyShowBackTopToggle",payload:!1}),function(){rt({type:"globalSetting/onlyShowBackTopToggle",payload:!0})}},[]),Object(R.useEffect)(function(){if(Ce){var dn;Pt.listParams.category=((dn=dt.query)===null||dn===void 0?void 0:dn.tabs)||"",rt({type:"competitions/getList",payload:Object(y.a)({},Pt.listParams)})}return function(){Pt.listParams.keyword="",Pt.listParams.category="",Pt.listParams.page=1,rt({type:"competitions/getList",payload:Object(y.a)({},Pt.listParams)})}},[Pt.name]),Object(R.useEffect)(function(){Ce&&Object(o.X)("\u5728\u7EBF\u7ADE\u8D5B")});function nn(){return Jt.apply(this,arguments)}function Jt(){return Jt=Object(d.a)(C.a.mark(function dn(){var Bt,ln;return C.a.wrap(function(an){for(;;)switch(an.prev=an.next){case 0:return an.next=2,rt({type:"homePage/getHomeNotice",payload:{}});case 2:Bt=an.sent,Bt&&(ln=localStorage.getItem("SystemUpdateadvtime"),localStorage.setItem("SystemUpdateadvtime",Bt.start_at),Bt!=null&&Bt.id?localStorage.setItem("isfirst","0"):localStorage.setItem("isfirst","2"),xt(Bt));case 4:case"end":return an.stop()}},dn)})),Jt.apply(this,arguments)}var Zt=function(Bt,ln){document.body.scrollIntoView(),Pt.listParams.page=Bt,rt({type:"competitions/getList",payload:Object(y.a)(Object(y.a)({},Pt.listParams),{},{edu:dt.query.edu})})};function fn(dn){dn.stopPropagation()}function Tn(dn,Bt,ln){return pn.apply(this,arguments)}function pn(){return pn=Object(d.a)(C.a.mark(function dn(Bt,ln,xn){var an,_n;return C.a.wrap(function(mn){for(;;)switch(mn.prev=mn.next){case 0:if(Bt.stopPropagation(),Object(P.e)(rt)){mn.next=3;break}return mn.abrupt("return");case 3:if(!(ln!=null&&ln.is_authentication&&!(st!=null&&(an=st.userInfo)!==null&&an!==void 0&&an.authentication))){mn.next=6;break}return rt({type:"shixunsDetail/setActionTabs",payload:{key:"Banner-Auth"}}),mn.abrupt("return");case 6:if(!(xn==="ismodel")){mn.next=20;break}if(!(ln.member_of_course===!0)){mn.next=11;break}Object(o.S)("/classrooms/".concat(ln.course_id)),mn.next=18;break;case 11:if(ln.invite_code){mn.next=14;break}return l.b.info("\u672C\u7ADE\u8D5B\u53EA\u9762\u5411\u90E8\u5206\u5B66\u6821/\u5355\u4F4D\u5F00\u653E\uFF0C\u4F60\u6682\u65F6\u6CA1\u6709\u53C2\u8D5B\u8D44\u683C"),mn.abrupt("return");case 14:return mn.next=16,rt({type:"competitions/addApplytojoincourse",payload:{invite_code:ln.invite_code,student:1}});case 16:_n=mn.sent,_n.status===0&&Object(o.S)("/classrooms/".concat(ln.course_id));case 18:mn.next=33;break;case 20:if(!(ln.enrolled===!0)){mn.next=23;break}return Object(o.S)(xn),mn.abrupt("return");case 23:if(!(xn==="personal")){mn.next=31;break}if(!(ln.enroll_ended===!0)){mn.next=27;break}return l.b.info("\u62A5\u540D\u5DF2\u622A\u6B62"),mn.abrupt("return");case 27:J(!0),tn(ln),mn.next=33;break;case 31:J(!0),tn(ln);case 33:case"end":return mn.stop()}},dn)})),pn.apply(this,arguments)}function Un(dn){Object(o.S)(dn)}function ni(dn){return wn.apply(this,arguments)}function wn(){return wn=Object(d.a)(C.a.mark(function dn(Bt){var ln;return C.a.wrap(function(an){for(;;)switch(an.prev=an.next){case 0:if(tt){an.next=2;break}return an.abrupt("return");case 2:if(jt(!1),!Wn()){an.next=5;break}return an.abrupt("return");case 5:return an.next=7,rt({type:"competitions/AddTeam",payload:{identifier:Tt==null?void 0:Tt.identifier,name:Bt}});case 7:ln=an.sent,ln&&ln.status===0?(l.b.info("\u521B\u5EFA\u6218\u961F\u6210\u529F"),rt({type:"competitions/getList",payload:Object(y.a)({},Pt.listParams)}),Pe(!1)):jt(!0);case 9:case"end":return an.stop()}},dn)})),wn.apply(this,arguments)}function Wn(){var dn,Bt;if(st!=null&&(dn=st.userInfo)!==null&&dn!==void 0&&dn.is_teacher){var ln;if(Tt!=null&&(ln=Tt.teacher_staff)!==null&&ln!==void 0&&ln.mutiple_limited&&(Tt!=null&&Tt.enrolled))return l.b.info("\u4F60\u5DF2\u7ECF\u62A5\u540D\uFF0C\u4E0D\u80FD\u91CD\u590D\u62A5\u540D"),jt(!0),!0}else{var xn;if(Tt!=null&&(xn=Tt.member_staff)!==null&&xn!==void 0&&xn.mutiple_limited&&(Tt!=null&&Tt.enrolled))return l.b.info("\u4F60\u5DF2\u7ECF\u62A5\u540D\uFF0C\u4E0D\u80FD\u91CD\u590D\u62A5\u540D"),jt(!0),!0}if(Tt!=null&&Tt.enroll_ended)return l.b.info("\u62A5\u540D\u5DF2\u622A\u6B62\uFF0C\u65E0\u9700\u62A5\u540D"),jt(!0),!0;if(st!=null&&(Bt=st.userInfo)!==null&&Bt!==void 0&&Bt.is_teacher){if(!Tt.teacher_staff)return l.b.info("\u5DF2\u7981\u6B62\u8001\u5E08\u62A5\u540D"),jt(!0),!0}else if(!(Tt!=null&&Tt.member_staff))return l.b.info("\u5DF2\u7981\u6B62\u5B66\u751F\u62A5\u540D"),jt(!0),!0}function hi(dn){return di.apply(this,arguments)}function di(){return di=Object(d.a)(C.a.mark(function dn(Bt){var ln;return C.a.wrap(function(an){for(;;)switch(an.prev=an.next){case 0:if(tt){an.next=2;break}return an.abrupt("return");case 2:if(!Wn()){an.next=4;break}return an.abrupt("return");case 4:return jt(!1),an.next=7,rt({type:"competitions/JoinTeam",payload:{identifier:Tt==null?void 0:Tt.identifier,invite_code:Bt}});case 7:ln=an.sent,ln&&ln.status===0?(l.b.info("\u52A0\u5165\u6218\u961F\u6210\u529F"),rt({type:"competitions/getList",payload:Object(y.a)({},Pt.listParams)}),Lt(!1)):jt(!0);case 9:case"end":return an.stop()}},dn)})),di.apply(this,arguments)}var ci=function(Bt){Bt.external_url?Un(Bt.external_url):Un(Bt.competition_status==="ended"?"/competitions/index/".concat(Bt.identifier):Bt.competition_status==="nearly_published"?Bt.permission.editable==!0?"/competitions/index/".concat(Bt.identifier):null:Bt.competition_status==="progressing"?"/competitions/index/".concat(Bt.identifier):null)},Zn=function(Bt,ln){ln.external_url?(Bt.stopPropagation(),Un(ln.external_url)):Tn(Bt,ln,ln.mode===2?"ismodel":ln.personal?"personal":"/competitions/index/".concat(ln.identifier,"/enroll"))},$t=Object(R.useState)(""),qt=Object(s.a)($t,2),hn=qt[0],cn=qt[1],Sn=function(Bt){Pt.listParams.keyword=encodeURIComponent(Bt),Pt.listParams.page=1,Bt&&Object(Se.a)({name:Bt,copywriting:Bt,position:"Competition"}),rt({type:"competitions/getList",payload:Object(y.a)(Object(y.a)({},Pt.listParams),{},{edu:dt.query.edu})})};return w.a.createElement("section",{className:E.a.bg},w.a.createElement("div",{className:"edu-container"},w.a.createElement(lt.a,{title:"\u7ADE\u8D5B\u7EC4\u7EC7",sunTitle:"\u6FC0\u53D1\u521B\u65B0\u6D3B\u529B\uFF0C\u57F9\u517B\u8F6F\u4EF6\u4EBA\u624D",img:Re.a,imgWidth:438,bannerExtraContent:w.a.createElement("div",{className:E.a.searchWrap},w.a.createElement(h.a.Search,{placeholder:"\u8BF7\u8F93\u5165\u7ADE\u8D5B\u540D\u79F0",size:"large",className:E.a.search,value:hn,onChange:function(Bt){return cn(Bt.target.value)},suffix:w.a.createElement("i",{className:"iconfont icon-sousuo9 font14 ".concat(E.a.searchIcon),onClick:function(){return Sn(hn)}}),onSearch:Sn}))}),w.a.createElement("div",{className:E.a.tabsWrap},w.a.createElement(i.a,{defaultActiveKey:"",onChange:function(Bt){Bt==="statistics"?gt(!0):gt(!1),Pt.listParams.page=1,Pt.listParams.category=Bt,Pt.listParams.page=1,rt({type:"competitions/getList",payload:Object(y.a)({},Pt.listParams)})}},w.a.createElement(we,{tab:"\u5168\u90E8",key:""}),w.a.createElement(we,{tab:"\u5373\u5C06\u53D1\u5E03",key:"nearly_published"}),w.a.createElement(we,{tab:"\u8FDB\u884C\u4E2D",key:"progressing"}),w.a.createElement(we,{tab:"\u5F80\u671F\u6BD4\u8D5B",key:"ended"}),Object(D.w)()&&w.a.createElement(we,{tab:"\u6570\u636E\u7EDF\u8BA1",key:"statistics"}))),!wt&&w.a.createElement("div",null,Pt.count===0&&w.a.createElement(O.a,null),w.a.createElement("aside",{className:"edu-container minH500"},w.a.createElement(u.a,{loading:Rt,active:!0,avatar:{size:40},paragraph:{rows:5}},Pt.competitions&&w.a.createElement(m.b,{itemLayout:"vertical",size:"large",dataSource:Pt.competitions,renderItem:function(Bt,ln){return w.a.createElement("div",{className:E.a.CompetitionsList},Bt.competition_status==="nearly_published"?Bt.permission.editable==!0?"":w.a.createElement("div",{className:E.a.CompetitionsListzhezhao},"\u5373\u5C06\u53D1\u5E03 \u656C\u8BF7\u671F\u5F85"):"",w.a.createElement(m.b.Item,{onClick:function(){return ci(Bt)},className:E.a.shadow,key:ln},w.a.createElement(m.b.Item.Meta,{style:{marginBottom:"0px"},avatar:w.a.createElement("img",{className:E.a.divimg,src:Bt&&Bt.image?"".concat(S.a.IMG_SERVER,"/")+Bt.image:Ut.p}),title:w.a.createElement("p",{style:{alignItems:"center",display:"flex"}},w.a.createElement("a",{className:E.a.task_hide},Bt.name,Bt.sub_title?"\u2014\u2014".concat(Bt.sub_title):""),Bt.competition_status&&Bt.competition_status==="nearly_published"?w.a.createElement("span",{className:"".concat(E.a.commonTextBox," ").concat(E.a.Comingtext)},"\u5373\u5C06\u53D1\u5E03"):"",Bt.competition_status&&Bt.competition_status==="progressing"?w.a.createElement("span",{className:"".concat(E.a.commonTextBox," ").concat(E.a.havetext)},"\u8FDB\u884C\u4E2D"):"",Bt.competition_status&&Bt.competition_status==="ended"?w.a.createElement("span",{className:"".concat(E.a.commonTextBox," ").concat(E.a.Finishedtext)},"\u5DF2\u7ED3\u675F"):""),description:w.a.createElement("div",{className:E.a.description},w.a.createElement("div",{className:E.a.task_hide_2,style:{height:"43px",fontSize:"14px",color:"#666666"}},Bt.description?Bt.description:"\u6682\u65E0\u7B80\u4ECB~"),w.a.createElement("div",{className:E.a.bottomText},w.a.createElement("span",null,"\u7ADE\u8D5B\u65F6\u95F4: ",Bt.start_time,"\uFF5E",Bt.end_time),w.a.createElement("span",{style:{marginLeft:"30px"}},"\u62A5\u540D\u622A\u6B62\u65F6\u95F4\uFF1A",Bt&&Bt.enroll_end_time?Bt.enroll_end_time:"\u6682\u65E0"),w.a.createElement("span",{style:{marginLeft:"30px"}},"\u6D4F\u89C8\u6570\uFF1A",Bt&&Bt.visits_count?Bt.visits_count:"\u6682\u65E0")))}),w.a.createElement("div",{style:{width:"20%",alignItems:"flex-end",display:"flex",flexDirection:"column",justifyContent:"space-around"}},w.a.createElement("div",{className:E.a.info},w.a.createElement("div",{className:E.a.bonus,style:{visibility:Bt&&Bt.bonus?"visible":"hidden"}},w.a.createElement("span",{className:E.a.rmb},"\xA5"),parseInt(Bt.bonus).toLocaleString()),Bt.member_count?w.a.createElement("div",{className:E.a.applyInfo},"\u5DF2\u62A5\u540D\uFF1A",Bt.competition_status==="nearly_published"?"0":Bt.member_count):""),Bt&&Bt.competition_status==="ended"?w.a.createElement("span",{className:E.a.Unpublishedtext,onClick:function(an){return fn(an)}},"\u5DF2\u7ED3\u675F"):null,Bt&&Bt.competition_status==="nearly_published"?w.a.createElement("span",{className:E.a.Unpublishedtext,onClick:function(an){return fn(an)}},"\u672A\u53D1\u5E03"):null,Bt&&Bt.competition_status!=="nearly_published"&&Bt.enroll_end&&Bt.competition_status!=="ended"?w.a.createElement("span",{className:E.a.Unpublishedtext,onClick:function(an){return fn(an)}},"\u62A5\u540D\u622A\u6B62"):null,Bt&&Bt.competition_status==="progressing"&&Bt.enroll_end!=!0&&!Bt.external_url?w.a.createElement(g.a,{className:E.a.signup,onClick:function(an){return Zn(an,Bt)}},Bt!=null&&Bt.enrolled?"\u5DF2\u62A5\u540D":"\u7ACB\u5373\u62A5\u540D"):null)))}})),w.a.createElement(b.a,null),w.a.createElement(le,{modeldata:nt,dispatch:rt}),w.a.createElement("aside",{className:"tc mb50 mt20"},w.a.createElement(N.a,{hideOnSinglePage:!0,showSizeChanger:!1,showQuickJumper:!0,onChange:Zt,defaultPageSize:20,current:Pt.listParams.page,defaultCurrent:Pt.listParams.page,total:Pt.count})))),wt&&w.a.createElement(ht,null)),w.a.createElement(U.a,{title:"\u9009\u62E9\u53C2\u8D5B\u65B9\u5F0F",centered:!0,visible:V,onCancel:function(){J(!1)},footer:!1},w.a.createElement("div",{style:{display:"flex",justifyContent:"space-around",height:100,alignItems:"center"}},w.a.createElement(g.a,{type:"primary",style:{height:40},onClick:function(){Lt(!0),J(!1)}},"\u52A0\u5165\u6218\u961F\u53C2\u8D5B"),w.a.createElement(g.a,{style:{height:40},onClick:function(){Pe(!0),J(!1)}},"\u53BB\u521B\u5EFA\u6218\u961F\u53C2\u8D5B"))),_t?w.a.createElement(ce.a,{isjoin:_t,setJoin:Lt,JoinTeams:hi}):null,be?w.a.createElement(he.a,{isAddmodle:be,setIsAdd:Pe,createTeam:ni}):null)},Ye=q.default=Object(A.a)(function(it){var Et=it.competitions,Pt=it.loading,zt=it.globalSetting,Rt=it.user;return{competitions:Et,globalSetting:zt,loading:Pt.models.competitions,user:Rt}})(Ze)},QuXc:function(ge,q){var _=function(U){this.colorStops=U||[]};_.prototype={constructor:_,addColorStop:function(U,L){this.colorStops.push({offset:U,color:L})}};var Z=_;ge.exports=Z},RDYZ:function(ge,q,_){var Z=_("dMvE");function U(N){this._target=N.target,this._life=N.life||1e3,this._delay=N.delay||0,this._initialized=!1,this.loop=N.loop==null?!1:N.loop,this.gap=N.gap||0,this.easing=N.easing||"Linear",this.onframe=N.onframe,this.ondestroy=N.ondestroy,this.onrestart=N.onrestart,this._pausedTime=0,this._paused=!1}U.prototype={constructor:U,step:function(N,c){if(this._initialized||(this._startTime=N+this._delay,this._initialized=!0),this._paused){this._pausedTime+=c;return}var u=(N-this._startTime-this._pausedTime)/this._life;if(u<0)return;u=Math.min(u,1);var M=this.easing,g=typeof M=="string"?Z[M]:M,e=typeof g=="function"?g(u):u;return this.fire("frame",e),u===1?this.loop?(this.restart(N),"restart"):(this._needsRemove=!0,"destroy"):null},restart:function(N){var c=(N-this._startTime-this._pausedTime)%this._life;this._startTime=N-c+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(N,c){N="on"+N,this[N]&&this[N](this._target,c)},pause:function(){this._paused=!0},resume:function(){this._paused=!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IEXAgL9QtWbBAgQOBAQ6ANETxAgQOCFgEC/UPUmAQIEDgQE+gDREwQIEHghINAvVL1JgACBAwGBPkD0BAECBF4ICPQLVW8SIEDgQECgDxA9QYAAgRcCAv1C1ZsECBA4EBDoA0RPECBA4IWAQL9Q9SYBAgQOBAT6ANETBAgQeCEg0C9UvUmAAIEDAYE+QPQEAQIEXggI9AtVbxIgQOBAQKAPED1BgACBFwIC/ULVmwQIEDgQEOgDRE8QIEDghYBAv1D1JgECBA4EBPoA0RMECBB4ISDQL1S9SYAAgQMBgT5A9AQBAgReCAj0C1VvEiBA4EBAoA8QPUGAAIEXAgL9QtWbBAgQOBAQ6ANETxAgQOCFgEC/UPUmAQIEDgQE+gDREwQIEHghINAvVL1JgACBAwGBPkD0BAECBF4ICPQLVW8SIEDgQECgDxA9QYAAgRcCAv1C1ZsECBA4EBDoA0RPECBA4IXAH7PYDOHnuk1pAAAAAElFTkSuQmCC"},RXMa:function(ge,q,_){var Z=_("y+Vt"),U=Z.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(L,N){var c=N.cx,u=N.cy,M=Math.PI*2;L.moveTo(c+N.r,u),L.arc(c,u,N.r,0,M,!1),L.moveTo(c+N.r0,u),L.arc(c,u,N.r0,0,M,!0)}});ge.exports=U},RotF:function(ge,q,_){ge.exports=_("LSTS")},SJMd:function(ge,q){/**
* @license
* Copyright (C) 2006 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var _,Z,U,L=!1,N,c;window.PR_SHOULD_USE_CONTINUATION=!0;var u,M;(function(){var g=window,e=["break,continue,do,else,for,if,return,while"],m=[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"],r=[m,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],h=[r,"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"],a=[r,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],l=[r,"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"],d="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",y=[r,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],s="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",p=[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"],i=[e,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],v=[h,l,a,y,s,p,n,i],C=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,R="str",w="kwd",x="com",A="typ",o="lit",f="pun",E="pln",O="tag",S="dec",b="src",D="atn",P="atv",I="nocode",F="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function K(me){for(var je=0,Je=!1,oe=!1,Ae=0,ye=me.length;Ae<ye;++Ae){var Le=me[Ae];if(Le.ignoreCase)oe=!0;else if(/[a-z]/i.test(Le.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){Je=!0,oe=!1;break}}var We={b:8,t:9,n:10,v:11,f:12,r:13};function Xe(bt){var ht=bt.charCodeAt(0);if(ht!==92)return ht;var Ut=bt.charAt(1);return ht=We[Ut],ht||("0"<=Ut&&Ut<="7"?parseInt(bt.substring(1),8):Ut==="u"||Ut==="x"?parseInt(bt.substring(2),16):bt.charCodeAt(1))}function ct(bt){if(bt<32)return(bt<16?"\\x0":"\\x")+bt.toString(16);var ht=String.fromCharCode(bt);return ht==="\\"||ht==="-"||ht==="]"||ht==="^"?"\\"+ht:ht}function lt(bt){var ht=bt.substring(1,bt.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")),Ut=[],Ft=ht[0]==="^",ve=["["];Ft&&ve.push("^");for(var se=Ft?1:0,le=ht.length;se<le;++se){var fe=ht[se];if(/\\[bdsw]/i.test(fe))ve.push(fe);else{var Re=Xe(fe),ce;se+2<le&&ht[se+1]==="-"?(ce=Xe(ht[se+2]),se+=2):ce=Re,Ut.push([Re,ce]),ce<65||Re>122||(ce<65||Re>90||Ut.push([Math.max(65,Re)|32,Math.min(ce,90)|32]),ce<97||Re>122||Ut.push([Math.max(97,Re)&~32,Math.min(ce,122)&~32]))}}Ut.sort(function(Ze,Ye){return Ze[0]-Ye[0]||Ye[1]-Ze[1]});for(var he=[],Se=[],se=0;se<Ut.length;++se){var we=Ut[se];we[0]<=Se[1]+1?Se[1]=Math.max(Se[1],we[1]):he.push(Se=we)}for(var se=0;se<he.length;++se){var we=he[se];ve.push(ct(we[0])),we[1]>we[0]&&(we[1]+1>we[0]&&ve.push("-"),ve.push(ct(we[1])))}return ve.push("]"),ve.join("")}function St(bt){for(var ht=bt.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")),Ut=ht.length,Ft=[],ve=0,se=0;ve<Ut;++ve){var le=ht[ve];if(le==="(")++se;else if(le.charAt(0)==="\\"){var fe=+le.substring(1);fe&&(fe<=se?Ft[fe]=-1:ht[ve]=ct(fe))}}for(var ve=1;ve<Ft.length;++ve)Ft[ve]===-1&&(Ft[ve]=++je);for(var ve=0,se=0;ve<Ut;++ve){var le=ht[ve];if(le==="(")++se,Ft[se]||(ht[ve]="(?:");else if(le.charAt(0)==="\\"){var fe=+le.substring(1);fe&&fe<=se&&(ht[ve]="\\"+Ft[fe])}}for(var ve=0;ve<Ut;++ve)ht[ve]==="^"&&ht[ve+1]!=="^"&&(ht[ve]="");if(bt.ignoreCase&&Je)for(var ve=0;ve<Ut;++ve){var le=ht[ve],Re=le.charAt(0);le.length>=2&&Re==="["?ht[ve]=lt(le):Re!=="\\"&&(ht[ve]=le.replace(/[a-zA-Z]/g,function(Se){var we=Se.charCodeAt(0);return"["+String.fromCharCode(we&~32,we|32)+"]"}))}return ht.join("")}for(var Dt=[],Ae=0,ye=me.length;Ae<ye;++Ae){var Le=me[Ae];if(Le.global||Le.multiline)throw new Error(""+Le);Dt.push("(?:"+St(Le)+")")}return new RegExp(Dt.join("|"),oe?"gi":"g")}function j(me,je){var Je=/(?:^|\s)nocode(?:\s|$)/,oe=[],Ae=0,ye=[],Le=0;function We(Xe){var ct=Xe.nodeType;if(ct==1){if(Je.test(Xe.className))return;for(var lt=Xe.firstChild;lt;lt=lt.nextSibling)We(lt);var St=Xe.nodeName.toLowerCase();(St==="br"||St==="li")&&(oe[Le]=`
`,ye[Le<<1]=Ae++,ye[Le++<<1|1]=Xe)}else if(ct==3||ct==4){var Dt=Xe.nodeValue;Dt.length&&(je?Dt=Dt.replace(/\r\n?/g,`
`):Dt=Dt.replace(/[ \t\r\n]+/g," "),oe[Le]=Dt,ye[Le<<1]=Ae,Ae+=Dt.length,ye[Le++<<1|1]=Xe)}}return We(me),{sourceCode:oe.join("").replace(/\n$/,""),spans:ye}}function Y(me,je,Je,oe,Ae){if(!Je)return;var ye={sourceNode:me,pre:1,langExtension:null,numberLines:null,sourceCode:Je,spans:null,basePos:je,decorations:null};oe(ye),Ae.push.apply(Ae,ye.decorations)}var W=/\S/;function Q(me){for(var je=void 0,Je=me.firstChild;Je;Je=Je.nextSibling){var oe=Je.nodeType;je=oe===1?je?me:Je:oe===3&&W.test(Je.nodeValue)?me:je}return je===me?void 0:je}function ie(me,je){var Je={},oe;(function(){for(var Le=me.concat(je),We=[],Xe={},ct=0,lt=Le.length;ct<lt;++ct){var St=Le[ct],Dt=St[3];if(Dt)for(var bt=Dt.length;--bt>=0;)Je[Dt.charAt(bt)]=St;var ht=St[1],Ut=""+ht;Xe.hasOwnProperty(Ut)||(We.push(ht),Xe[Ut]=null)}We.push(/[\0-\uffff]/),oe=K(We)})();var Ae=je.length,ye=function(Le){for(var We=Le.sourceCode,Xe=Le.basePos,ct=Le.sourceNode,lt=[Xe,E],St=0,Dt=We.match(oe)||[],bt={},ht=0,Ut=Dt.length;ht<Ut;++ht){var Ft=Dt[ht],ve=bt[Ft],se=void 0,le;if(typeof ve=="string")le=!1;else{var fe=Je[Ft.charAt(0)];if(fe)se=Ft.match(fe[1]),ve=fe[0];else{for(var Re=0;Re<Ae;++Re)if(fe=je[Re],se=Ft.match(fe[1]),se){ve=fe[0];break}se||(ve=E)}le=ve.length>=5&&ve.substring(0,5)==="lang-",le&&!(se&&typeof se[1]=="string")&&(le=!1,ve=b),le||(bt[Ft]=ve)}var ce=St;if(St+=Ft.length,!le)lt.push(Xe+ce,ve);else{var he=se[1],Se=Ft.indexOf(he),we=Se+he.length;se[2]&&(we=Ft.length-se[2].length,Se=we-he.length);var Ze=ve.substring(5);Y(ct,Xe+ce,Ft.substring(0,Se),ye,lt),Y(ct,Xe+ce+Se,he,ne(Ze,he),lt),Y(ct,Xe+ce+we,Ft.substring(we),ye,lt)}}Le.decorations=lt};return ye}function Ee(me){var je=[],Je=[];me.tripleQuotedStrings?je.push([R,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):me.multiLineStrings?je.push([R,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):je.push([R,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),me.verbatimStrings&&Je.push([R,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var oe=me.hashComments;oe&&(me.cStyleComments?(oe>1?je.push([x,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):je.push([x,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),Je.push([R,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):je.push([x,/^#[^\r\n]*/,null,"#"])),me.cStyleComments&&(Je.push([x,/^\/\/[^\r\n]*/,null]),Je.push([x,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var Ae=me.regexLiterals;if(Ae){var ye=Ae>1?"":`
\r`,Le=ye?".":"[\\S\\s]",We="/(?=[^/*"+ye+"])(?:[^/\\x5B\\x5C"+ye+"]|\\x5C"+Le+"|\\x5B(?:[^\\x5C\\x5D"+ye+"]|\\x5C"+Le+")*(?:\\x5D|$))+/";Je.push(["lang-regex",RegExp("^"+F+"("+We+")")])}var Xe=me.types;Xe&&Je.push([A,Xe]);var ct=(""+me.keywords).replace(/^ | $/g,"");ct.length&&Je.push([w,new RegExp("^(?:"+ct.replace(/[\s,]+/g,"|")+")\\b"),null]),je.push([E,/^\s+/,null,` \r
\xA0`]);var lt="^.[^\\s\\w.$@'\"`/\\\\]*";return me.regexLiterals&&(lt+="(?!s*/)"),Je.push([o,/^@[a-z_$][a-z_$@0-9]*/i,null],[A,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[E,/^[a-z_$][a-z_$@0-9]*/i,null],[o,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[E,/^\\[\s\S]?/,null],[f,new RegExp(lt),null]),ie(je,Je)}var pe=Ee({keywords:v,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function De(me,je,Je){for(var oe=/(?:^|\s)nocode(?:\s|$)/,Ae=/\r\n?|\n/,ye=me.ownerDocument,Le=ye.createElement("li");me.firstChild;)Le.appendChild(me.firstChild);var We=[Le];function Xe(ht){var Ut=ht.nodeType;if(Ut==1&&!oe.test(ht.className))if(ht.nodeName==="br")ct(ht),ht.parentNode&&ht.parentNode.removeChild(ht);else for(var Ft=ht.firstChild;Ft;Ft=Ft.nextSibling)Xe(Ft);else if((Ut==3||Ut==4)&&Je){var ve=ht.nodeValue,se=ve.match(Ae);if(se){var le=ve.substring(0,se.index);ht.nodeValue=le;var fe=ve.substring(se.index+se[0].length);if(fe){var Re=ht.parentNode;Re.insertBefore(ye.createTextNode(fe),ht.nextSibling)}ct(ht),le||ht.parentNode.removeChild(ht)}}}function ct(ht){for(;!ht.nextSibling;)if(ht=ht.parentNode,!ht)return;function Ut(se,le){var fe=le?se.cloneNode(!1):se,Re=se.parentNode;if(Re){var ce=Ut(Re,1),he=se.nextSibling;ce.appendChild(fe);for(var Se=he;Se;Se=he)he=Se.nextSibling,ce.appendChild(Se)}return fe}for(var Ft=Ut(ht.nextSibling,0),ve;(ve=Ft.parentNode)&&ve.nodeType===1;)Ft=ve;We.push(Ft)}for(var lt=0;lt<We.length;++lt)Xe(We[lt]);je===(je|0)&&We[0].setAttribute("value",je);var St=ye.createElement("ol");St.className="linenums";for(var Dt=Math.max(0,je-1|0)||0,lt=0,bt=We.length;lt<bt;++lt)Le=We[lt],Le.className="L"+(lt+Dt)%10,Le.firstChild||Le.appendChild(ye.createTextNode("\xA0")),St.appendChild(Le);me.appendChild(St)}function Me(me){var je=/\bMSIE\s(\d+)/.exec(navigator.userAgent);je=je&&+je[1]<=8;var Je=/\n/g,oe=me.sourceCode,Ae=oe.length,ye=0,Le=me.spans,We=Le.length,Xe=0,ct=me.decorations,lt=ct.length,St=0;ct[lt]=Ae;var Dt,bt;for(bt=Dt=0;bt<lt;)ct[bt]!==ct[bt+2]?(ct[Dt++]=ct[bt++],ct[Dt++]=ct[bt++]):bt+=2;for(lt=Dt,bt=Dt=0;bt<lt;){for(var ht=ct[bt],Ut=ct[bt+1],Ft=bt+2;Ft+2<=lt&&ct[Ft+1]===Ut;)Ft+=2;ct[Dt++]=ht,ct[Dt++]=Ut,bt=Ft}lt=ct.length=Dt;var ve=me.sourceNode,se="";ve&&(se=ve.style.display,ve.style.display="none");try{for(var le=null;Xe<We;){var fe=Le[Xe],Re=Le[Xe+2]||Ae,ce=ct[St+2]||Ae,Ft=Math.min(Re,ce),he=Le[Xe+1],Se;if(he.nodeType!==1&&(Se=oe.substring(ye,Ft))){je&&(Se=Se.replace(Je,"\r")),he.nodeValue=Se;var we=he.ownerDocument,Ze=we.createElement("span");Ze.className=ct[St+1];var Ye=he.parentNode;Ye.replaceChild(Ze,he),Ze.appendChild(he),ye<Re&&(Le[Xe+1]=he=we.createTextNode(oe.substring(Ft,Re)),Ye.insertBefore(he,Ze.nextSibling))}ye=Ft,ye>=Re&&(Xe+=2),ye>=ce&&(St+=2)}}finally{ve&&(ve.style.display=se)}}var Ue={};function Ie(me,je){for(var Je=je.length;--Je>=0;){var oe=je[Je];Ue.hasOwnProperty(oe)?g.console&&console.warn("cannot override language handler %s",oe):Ue[oe]=me}}function ne(me,je){return me&&Ue.hasOwnProperty(me)||(me=/^\s*</.test(je)?"default-markup":"default-code"),Ue[me]}Ie(pe,["default-code"]),Ie(ie([],[[E,/^[^<?]+/],[S,/^<!\w[^>]*(?:>|$)/],[x,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[f,/^(?:<[%?]|[%?]>)/],["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"]),Ie(ie([[E,/^[\s]+/,null,` \r
`],[P,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[O,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[D,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[f,/^[=<>\/]+/],["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"]),Ie(ie([],[[P,/^[\s\S]+/]]),["uq.val"]),Ie(Ee({keywords:h,hashComments:!0,cStyleComments:!0,types:C}),["c","cc","cpp","cxx","cyc","m"]),Ie(Ee({keywords:"null,true,false"}),["json"]),Ie(Ee({keywords:l,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:C}),["cs"]),Ie(Ee({keywords:a,cStyleComments:!0}),["java"]),Ie(Ee({keywords:i,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),Ie(Ee({keywords:p,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),Ie(Ee({keywords:s,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),Ie(Ee({keywords:n,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),Ie(Ee({keywords:y,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),Ie(Ee({keywords:d,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),Ie(ie([],[[R,/^[\s\S]+/]]),["regex"]);function B(me){var je=me.langExtension;try{var Je=j(me.sourceNode,me.pre),oe=Je.sourceCode;me.sourceCode=oe,me.spans=Je.spans,me.basePos=0,ne(je,oe)(me),Me(me)}catch(Ae){g.console&&console.log(Ae&&Ae.stack||Ae)}}function z(me,je,Je){var oe=Je||!1,Ae=je||null,ye=document.createElement("div");ye.innerHTML="<pre>"+me+"</pre>",ye=ye.firstChild,oe&&De(ye,oe,!0);var Le={langExtension:Ae,numberLines:oe,sourceNode:ye,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return B(Le),ye.innerHTML}function H(me,je){var Je=je||document.body,oe=Je.ownerDocument||document;function Ae(fe){return Je.getElementsByTagName(fe)}for(var ye=[Ae("pre"),Ae("code"),Ae("xmp")],Le=[],We=0;We<ye.length;++We)for(var Xe=0,ct=ye[We].length;Xe<ct;++Xe)Le.push(ye[We][Xe]);ye=null;var lt=Date;lt.now||(lt={now:function(){return+new Date}});var St=0,Dt=/\blang(?:uage)?-([\w.]+)(?!\S)/,bt=/\bprettyprint\b/,ht=/\bprettyprinted\b/,Ut=/pre|xmp/i,Ft=/^code$/i,ve=/^(?:pre|code|xmp)$/i,se={};function le(){for(var fe=g.PR_SHOULD_USE_CONTINUATION?lt.now()+250:Infinity;St<Le.length&&lt.now()<fe;St++){for(var Re=Le[St],ce=se,he=Re;he=he.previousSibling;){var Se=he.nodeType,we=(Se===7||Se===8)&&he.nodeValue;if(we?!/^\??prettify\b/.test(we):Se!==3||/\S/.test(he.nodeValue))break;if(we){ce={},we.replace(/\b(\w+)=([\w:.%+-]+)/g,function(dt,ut,It){ce[ut]=It});break}}var Ze=Re.className;if((ce!==se||bt.test(Ze))&&!ht.test(Ze)){for(var Ye=!1,it=Re.parentNode;it;it=it.parentNode){var Et=it.tagName;if(ve.test(Et)&&it.className&&bt.test(it.className)){Ye=!0;break}}if(!Ye){Re.className+=" prettyprinted";var Pt=ce.lang;if(!Pt){Pt=Ze.match(Dt);var zt;!Pt&&(zt=Q(Re))&&Ft.test(zt.tagName)&&(Pt=zt.className.match(Dt)),Pt&&(Pt=Pt[1])}var Rt;if(Ut.test(Re.tagName))Rt=1;else{var rt=Re.currentStyle,st=oe.defaultView,qe=rt?rt.whiteSpace:st&&st.getComputedStyle?st.getComputedStyle(Re,null).getPropertyValue("white-space"):0;Rt=qe&&qe.substring(0,3)==="pre"}var Ce=ce.linenums;(Ce=Ce==="true"||+Ce)||(Ce=Ze.match(/\blinenums\b(?::(\d+))?/),Ce=Ce?Ce[1]&&Ce[1].length?+Ce[1]:!0:!1),Ce&&De(Re,Ce,Rt);var Be={langExtension:Pt,sourceNode:Re,numberLines:Ce,pre:Rt,sourceCode:null,basePos:null,spans:null,decorations:null};B(Be)}}}St<Le.length?g.setTimeout(le,250):typeof me=="function"&&me()}le()}var ee=g.PR={createSimpleLexer:ie,registerLangHandler:Ie,sourceDecorator:Ee,PR_ATTRIB_NAME:D,PR_ATTRIB_VALUE:P,PR_COMMENT:x,PR_DECLARATION:S,PR_KEYWORD:w,PR_LITERAL:o,PR_NOCODE:I,PR_PLAIN:E,PR_PUNCTUATION:f,PR_SOURCE:b,PR_STRING:R,PR_TAG:O,PR_TYPE:A,prettyPrintOne:L?g.prettyPrintOne=z:u=z,prettyPrint:M=L?g.prettyPrint=H:M=H},X=g.define;typeof X=="function"&&X.amd&&X("google-code-prettify",[],function(){return ee})})()},SKnc:function(ge,q,_){var Z=_("bYtY"),U=_("QuXc"),L=function(c,u,M,g,e,m){this.x=c==null?0:c,this.y=u==null?0:u,this.x2=M==null?1:M,this.y2=g==null?0:g,this.type="linear",this.global=m||!1,U.call(this,e)};L.prototype={constructor:L},Z.inherits(L,U);var N=L;ge.exports=N},SMhR:function(ge,q){ge.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAcYAAAHGCAYAAADuYispAAAAAklEQVR4AewaftIAABHTSURBVO3BQY4cy5IEQdNA3//KNo2/8NU8XzCQyCpSReivSJKk/zmRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0ji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sgGyaZu3nEiSpHEiSZLGiSRJGieSJGmcSJKkcSJJksaJJEkaP9FHA3KjbTZAngRk0zafDMiTgPyptrkB5Eltc6Nt3gTkTW1zA8imbZ7UNt/qRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdL4yZdrm28G5JO1zQ0gN9pmA2QDZNM2GyCbtrnRNk8BcqNtNkA2QN7UNhsgTwKyaZsNkE3bvAnIjbb5VCeSJGmcSJKkcSJJksaJJEkaJ5IkaZxIkqRxIkmSBv2VFwH5m7XNk4Bs2uZJQJ7UNjeA3GibTwXkRttsgNxomw2QG22zAXKjbW4AeVLbbIDcaJsNkCe1zVtOJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJA36K5Ik6X9OJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ4/8ATrCgy9kbxW8AAAAASUVORK5CYII="},STEk:function(ge,q,_){"use strict";_.d(q,"a",function(){return Ie});/*! *****************************************************************************
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 Z=function(ne,B){return(Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(z,H){z.__proto__=H}||function(z,H){for(var ee in H)Object.prototype.hasOwnProperty.call(H,ee)&&(z[ee]=H[ee])})(ne,B)};function U(ne,B){function z(){this.constructor=ne}Z(ne,B),ne.prototype=B===null?Object.create(B):(z.prototype=B.prototype,new z)}function L(ne,B,z,H){return new(z||(z=Promise))(function(ee,X){function me(oe){try{Je(H.next(oe))}catch(Ae){X(Ae)}}function je(oe){try{Je(H.throw(oe))}catch(Ae){X(Ae)}}function Je(oe){var Ae;oe.done?ee(oe.value):(Ae=oe.value,Ae instanceof z?Ae:new z(function(ye){ye(Ae)})).then(me,je)}Je((H=H.apply(ne,B||[])).next())})}function N(ne,B){var z,H,ee,X,me={label:0,sent:function(){if(1&ee[0])throw ee[1];return ee[1]},trys:[],ops:[]};return X={next:je(0),throw:je(1),return:je(2)},typeof Symbol=="function"&&(X[Symbol.iterator]=function(){return this}),X;function je(Je){return function(oe){return function(Ae){if(z)throw new TypeError("Generator is already executing.");for(;me;)try{if(z=1,H&&(ee=2&Ae[0]?H.return:Ae[0]?H.throw||((ee=H.return)&&ee.call(H),0):H.next)&&!(ee=ee.call(H,Ae[1])).done)return ee;switch(H=0,ee&&(Ae=[2&Ae[0],ee.value]),Ae[0]){case 0:case 1:ee=Ae;break;case 4:return me.label++,{value:Ae[1],done:!1};case 5:me.label++,H=Ae[1],Ae=[0];continue;case 7:Ae=me.ops.pop(),me.trys.pop();continue;default:if(!(ee=me.trys,(ee=ee.length>0&&ee[ee.length-1])||Ae[0]!==6&&Ae[0]!==2)){me=0;continue}if(Ae[0]===3&&(!ee||Ae[1]>ee[0]&&Ae[1]<ee[3])){me.label=Ae[1];break}if(Ae[0]===6&&me.label<ee[1]){me.label=ee[1],ee=Ae;break}if(ee&&me.label<ee[2]){me.label=ee[2],me.ops.push(Ae);break}ee[2]&&me.ops.pop(),me.trys.pop();continue}Ae=B.call(ne,me)}catch(ye){Ae=[6,ye],H=0}finally{z=ee=0}if(5&Ae[0])throw Ae[1];return{value:Ae[0]?Ae[1]:void 0,done:!0}}([Je,oe])}}}function c(){for(var ne=0,B=0,z=arguments.length;B<z;B++)ne+=arguments[B].length;var H=Array(ne),ee=0;for(B=0;B<z;B++)for(var X=arguments[B],me=0,je=X.length;me<je;me++,ee++)H[ee]=X[me];return H}var u=function(){function ne(){}return ne.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},ne.setAttributes=function(B,z){for(var H=0,ee=z;H<ee.length;H++){var X=ee[H],me=X[0],je=X[1];B.setAttribute(me,je)}},ne.createRect=function(B,z,H){var ee=document.createElementNS("http://www.w3.org/2000/svg","rect");return ee.setAttribute("width",B.toString()),ee.setAttribute("height",z.toString()),H&&ne.setAttributes(ee,H),ee},ne.createLine=function(B,z,H,ee,X){var me=document.createElementNS("http://www.w3.org/2000/svg","line");return me.setAttribute("x1",B.toString()),me.setAttribute("y1",z.toString()),me.setAttribute("x2",H.toString()),me.setAttribute("y2",ee.toString()),X&&ne.setAttributes(me,X),me},ne.createPolygon=function(B,z){var H=document.createElementNS("http://www.w3.org/2000/svg","polygon");return H.setAttribute("points",B),z&&ne.setAttributes(H,z),H},ne.createCircle=function(B,z){var H=document.createElementNS("http://www.w3.org/2000/svg","circle");return H.setAttribute("cx",(B/2).toString()),H.setAttribute("cy",(B/2).toString()),H.setAttribute("r",B.toString()),z&&ne.setAttributes(H,z),H},ne.createEllipse=function(B,z,H){var ee=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return ee.setAttribute("cx",(B/2).toString()),ee.setAttribute("cy",(z/2).toString()),ee.setAttribute("rx",(B/2).toString()),ee.setAttribute("ry",(z/2).toString()),H&&ne.setAttributes(ee,H),ee},ne.createGroup=function(B){var z=document.createElementNS("http://www.w3.org/2000/svg","g");return B&&ne.setAttributes(z,B),z},ne.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},ne.createMarker=function(B,z,H,ee,X,me,je){var Je=document.createElementNS("http://www.w3.org/2000/svg","marker");return ne.setAttributes(Je,[["id",B],["orient",z],["markerWidth",H.toString()],["markerHeight",ee.toString()],["refX",X.toString()],["refY",me.toString()]]),Je.appendChild(je),Je},ne.createText=function(B){var z=document.createElementNS("http://www.w3.org/2000/svg","text");return z.setAttribute("x","0"),z.setAttribute("y","0"),B&&ne.setAttributes(z,B),z},ne.createTSpan=function(B,z){var H=document.createElementNS("http://www.w3.org/2000/svg","tspan");return H.textContent=B,z&&ne.setAttributes(H,z),H},ne.createImage=function(B){var z=document.createElementNS("http://www.w3.org/2000/svg","image");return B&&ne.setAttributes(z,B),z},ne.createPoint=function(B,z){var H=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return H.x=B,H.y=z,H},ne.createPath=function(B,z){var H=document.createElementNS("http://www.w3.org/2000/svg","path");return H.setAttribute("d",B),z&&ne.setAttributes(H,z),H},ne}(),M=function(){function ne(){}return ne.addKey=function(B){ne.key=B},Object.defineProperty(ne,"isLicensed",{get:function(){return!!ne.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(ne.key)},enumerable:!1,configurable:!0}),ne}(),g=function(){function ne(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return ne.prototype.rasterize=function(B,z,H){var ee=this;return new Promise(function(X){var me=H!==void 0?H:document.createElement("canvas");B===null&&(ee.markersOnly=!0,ee.naturalSize=!1);var je=document.createElementNS("http://www.w3.org/2000/svg","svg");je.setAttribute("xmlns","http://www.w3.org/2000/svg"),je.setAttribute("width",z.width.baseVal.valueAsString),je.setAttribute("height",z.height.baseVal.valueAsString),je.setAttribute("viewBox","0 0 "+z.viewBox.baseVal.width.toString()+" "+z.viewBox.baseVal.height.toString()),je.innerHTML=z.innerHTML,ee.naturalSize===!0?(je.width.baseVal.value=B.naturalWidth,je.height.baseVal.value=B.naturalHeight):ee.width!==void 0&&ee.height!==void 0&&(je.width.baseVal.value=ee.width,je.height.baseVal.value=ee.height),me.width=je.width.baseVal.value,me.height=je.height.baseVal.value;var Je=je.outerHTML,oe=me.getContext("2d");ee.markersOnly!==!0&&oe.drawImage(B,0,0,me.width,me.height);var Ae=window.URL,ye=new Image(me.width,me.height);ye.setAttribute("crossOrigin","anonymous");var Le=new Blob([Je],{type:"image/svg+xml"}),We=Ae.createObjectURL(Le);ye.onload=function(){oe.drawImage(ye,0,0),Ae.revokeObjectURL(We);var Xe=me.toDataURL(ee.imageType,ee.imageQuality);X(Xe)},ye.src=We})},ne}(),e=function(){},m=function(){function ne(B){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+B+"_"}return Object.defineProperty(ne.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(ne.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(ne.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),ne.prototype.addClass=function(B){return this.styleSheet===void 0&&this.addStyleSheet(),B.name=""+this.classNamePrefix+B.localName,this.classes.push(B),this.styleSheet.sheet.insertRule("."+B.name+" {"+B.style+"}",this.styleSheet.sheet.cssRules.length),B},ne.prototype.addRule=function(B){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(B),this.styleSheet.sheet.insertRule(B.selector+" {"+B.style+"}",this.styleSheet.sheet.cssRules.length)},ne.prototype.addStyleSheet=function(){var B;this.styleSheet=document.createElement("style"),((B=this.styleSheetRoot)!==null&&B!==void 0?B:document.head).appendChild(this.styleSheet),this.addRule(new r("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new r("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new r("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new h("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new h("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},ne.prototype.removeStyleSheet=function(){var B;this.styleSheet&&(((B=this.styleSheetRoot)!==null&&B!==void 0?B:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},ne}(),r=function(ne,B){this.selector=ne,this.style=B},h=function(ne,B){this.localName=ne,this.style=B},a=function(){function ne(B,z,H,ee,X){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=B,this.displayMode=z,this.markerItems=H,this.uiStyleSettings=ee,this.styles=X,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return ne.prototype.show=function(B){var z=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=B,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var H=document.createElement("div");H.className=this.toolbarBlockStyleClass.name,H.style.whiteSpace="nowrap",this.uiContainer.appendChild(H),this.addActionButton(H,'<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(H,'<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(H,'<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(H,'<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(H,'<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(H,'<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(H,'<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(H,'<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(X){var me=document.createElement("div");me.className=""+z.toolbarButtonStyleClass.name,me.setAttribute("data-type-name",X.typeName),me.innerHTML=X.icon,me.addEventListener("click",function(){z.markerToolbarButtonClicked(me,X)}),z.buttons.push(me),z.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 ee=document.createElement("div");ee.className=this.toolbarBlockStyleClass.name,ee.style.whiteSpace="nowrap",ee.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(ee),this.addActionButton(ee,'<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(ee,'<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()},ne.prototype.addButtonClickListener=function(B){this.buttonClickListeners.push(B)},ne.prototype.removeButtonClickListener=function(B){this.buttonClickListeners.indexOf(B)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(B),1)},ne.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},ne.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var B=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var z=0;z<this.markerButtons.length;z++)z<B||z===B&&this.markerButtons.length-1===B?this.markerButtonBlock.appendChild(this.markerButtons[z]):(z===B&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[z]))}},ne.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")},ne.prototype.resetButtonStyles=function(){var B=this;this.buttons.forEach(function(z){z.className=z.className.replace(B.uiStyleSettings.toolbarButtonStyleColorsClassName?B.uiStyleSettings.toolbarButtonStyleColorsClassName:B.toolbarButtonStyleColorsClass.name,"").trim(),z.className=z.className.replace(B.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?B.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:B.toolbarActiveButtonStyleColorsClass.name,"").trim(),z.className+=" "+(B.uiStyleSettings.toolbarButtonStyleColorsClassName?B.uiStyleSettings.toolbarButtonStyleColorsClassName:B.toolbarButtonStyleColorsClass.name)})},ne.prototype.addActionButton=function(B,z,H){var ee=this,X=document.createElement("div");switch(X.className=""+this.toolbarButtonStyleClass.name,X.innerHTML=z,X.setAttribute("data-action",H),X.addEventListener("click",function(){ee.actionToolbarButtonClicked(X,H)}),H){case"select":X.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":X.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":X.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":X.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":X.style.fill=this.uiStyleSettings.closeButtonColor}B.appendChild(X),this.buttons.push(X)},ne.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new h("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 h("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new h("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new h("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 h("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var B=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new h("toolbar_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*B)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*B)+`px;
padding: `+B+`px;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new h("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new h("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new r("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new r("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},ne.prototype.markerToolbarButtonClicked=function(B,z){this.setActiveButton(B),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(H){return H("marker",z)}),this.markerButtonOverflowBlock.style.display="none"},ne.prototype.actionToolbarButtonClicked=function(B,z){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(H){return H("action",z)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},ne.prototype.setActiveButton=function(B){this.resetButtonStyles(),B.className=B.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),B.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},ne.prototype.setActiveMarkerButton=function(B){var z=this.markerButtons.find(function(H){return H.getAttribute("data-type-name")===B});z&&this.setActiveButton(z)},ne.prototype.setCurrentMarker=function(B){var z=this;this.currentMarker=B,this.buttons.filter(function(H){return/delete|notes/.test(H.getAttribute("data-action"))}).forEach(function(H){z.currentMarker===void 0?(H.style.fillOpacity="0.4",H.style.pointerEvents="none"):(H.style.fillOpacity="1",H.style.pointerEvents="all")})},ne}(),l=function(){function ne(B,z,H,ee){this.panels=[],this.panelButtons=[],this.markerjsContainer=B,this.displayMode=z,this.uiStyleSettings=H,this.styles=ee,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return ne.prototype.addStyles=function(){var B;this.toolboxStyleClass=this.styles.addClass(new h("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 h("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var z=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new h("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new h("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new h("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 h("toolbox-panel-row_colors",`
background-color: `+((B=this.uiStyleSettings.toolboxBackgroundColor)!==null&&B!==void 0?B:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new h("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*z)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*z)+`px;
padding: `+z+`px;
box-sizing: content-box;
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new h("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new h("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new r("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new r("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},ne.prototype.show=function(B){var z;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=B,this.uiContainer.className=this.toolboxStyleClass.name+" "+((z=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&z!==void 0?z:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},ne.prototype.setPanelButtons=function(B){var z,H,ee=this;this.panels=B,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((z=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&z!==void 0?z:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((H=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&H!==void 0?H:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(X){var me;X.uiStyleSettings=ee.uiStyleSettings;var je=document.createElement("div");je.className=ee.toolboxButtonStyleClass.name+" "+((me=ee.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&me!==void 0?me:ee.toolboxButtonStyleColorsClass.name),je.innerHTML=X.icon,je.title=X.title,je.addEventListener("click",function(){ee.panelButtonClick(X)}),ee.panelButtons.push(je),ee.buttonRow.appendChild(je)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},ne.prototype.panelButtonClick=function(B){var z=this,H=-1;if(B!==this.activePanel){H=this.panels.indexOf(B),this.panelRow.innerHTML="";var ee=B.getUi();ee.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(ee),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=B}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){z.displayMode==="inline"?z.panelRow.style.display="none":z.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(X,me){var je,Je;X.className=z.toolboxButtonStyleClass.name+" "+(me===H?""+((je=z.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&je!==void 0?je:z.toolboxActiveButtonStyleColorsClass.name):""+((Je=z.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Je!==void 0?Je:z.toolboxButtonStyleColorsClass.name))})},ne}(),d=function(ne,B){this.title=ne,this.icon=B},y=function(ne){function B(z,H,ee,X){var me=ne.call(this,z,X||'<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=H,me.currentColor=ee,me.setCurrentColor=me.setCurrentColor.bind(me),me.getColorBox=me.getColorBox.bind(me),me}return U(B,ne),B.prototype.getUi=function(){var z=this,H=document.createElement("div");return H.style.overflow="hidden",H.style.whiteSpace="nowrap",this.colors.forEach(function(ee){var X=z.getColorBox(ee);H.appendChild(X),z.colorBoxes.push(X)}),H},B.prototype.getColorBox=function(z){var H=this,ee=this.uiStyleSettings.toolbarHeight/4,X=this.uiStyleSettings.toolbarHeight-ee,me=document.createElement("div");me.style.display="inline-block",me.style.boxSizing="content-box",me.style.width=X-2+"px",me.style.height=X-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=(X+2)/2+"px",me.style.borderColor=z===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",me.addEventListener("click",function(){H.setCurrentColor(z,me)});var je=document.createElement("div");return je.style.display="inline-block",je.style.width=X-2+"px",je.style.height=X-2+"px",je.style.backgroundColor=z,je.style.borderRadius=X/2+"px",z==="transparent"&&(je.style.fill=this.uiStyleSettings.toolboxAccentColor,je.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(je),me},B.prototype.setCurrentColor=function(z,H){var ee=this;this.currentColor=z,this.colorBoxes.forEach(function(X){X.style.borderColor=X===H?ee.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(z)},B}(d),s=function(){function ne(B,z,H){this._state="new",this._isSelected=!1,this._container=B,this._overlayContainer=z,this.globalSettings=H,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(ne.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),ne.prototype.ownsTarget=function(B){return!1},Object.defineProperty(ne.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),ne.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},ne.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},ne.prototype.pointerDown=function(B,z){},ne.prototype.dblClick=function(B,z){},ne.prototype.manipulate=function(B){},ne.prototype.pointerUp=function(B){this.stateChanged()},ne.prototype.dispose=function(){},ne.prototype.addMarkerVisualToContainer=function(B){this.container.childNodes.length>0?this.container.insertBefore(B,this.container.childNodes[0]):this.container.appendChild(B)},ne.prototype.getState=function(){return{typeName:ne.typeName,state:this.state,notes:this.notes}},ne.prototype.restoreState=function(B){this._state=B.state,this.notes=B.notes},ne.prototype.scale=function(B,z){},ne.prototype.colorChanged=function(B){this.onColorChanged&&this.onColorChanged(B),this.stateChanged()},ne.prototype.fillColorChanged=function(B){this.onFillColorChanged&&this.onFillColorChanged(B),this.stateChanged()},ne.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var B=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),B.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(B)&&this.onStateChanged(this)}},ne.typeName="MarkerBase",ne}(),p=function(){function ne(){this.findGripByVisual=this.findGripByVisual.bind(this)}return ne.prototype.findGripByVisual=function(B){return this.topLeft.ownsTarget(B)?this.topLeft:this.topCenter.ownsTarget(B)?this.topCenter:this.topRight.ownsTarget(B)?this.topRight:this.centerLeft.ownsTarget(B)?this.centerLeft:this.centerRight.ownsTarget(B)?this.centerRight:this.bottomLeft.ownsTarget(B)?this.bottomLeft:this.bottomCenter.ownsTarget(B)?this.bottomCenter:this.bottomRight.ownsTarget(B)?this.bottomRight:void 0},ne}(),n=function(){function ne(){this.GRIP_SIZE=10,this.visual=u.createGroup(),this.visual.appendChild(u.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(u.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return ne.prototype.ownsTarget=function(B){return B===this.visual||B===this.visual.childNodes[0]||B===this.visual.childNodes[1]},ne}(),i=function(){function ne(){}return ne.toITransformMatrix=function(B){return{a:B.a,b:B.b,c:B.c,d:B.d,e:B.e,f:B.f}},ne.toSVGMatrix=function(B,z){return B.a=z.a,B.b=z.b,B.c=z.c,B.d=z.d,B.e=z.e,B.f=z.f,B},ne}(),v=function(ne){function B(z,H,ee){var X=ne.call(this,z,H,ee)||this;return X.left=0,X.top=0,X.width=0,X.height=0,X.defaultSize={x:50,y:20},X.offsetX=0,X.offsetY=0,X.rotationAngle=0,X.CB_DISTANCE=10,X._suppressMarkerCreateEvent=!1,X.container.transform.baseVal.appendItem(u.createTransform()),X.setupControlBox(),X}return U(B,ne),Object.defineProperty(B.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"visual",{get:function(){return this._visual},set:function(z){this._visual=z;var H=u.createTransform();this._visual.transform.baseVal.appendItem(H)},enumerable:!1,configurable:!0}),B.prototype.ownsTarget=function(z){return!!ne.prototype.ownsTarget.call(this,z)||!!(this.controlGrips.findGripByVisual(z)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(z))},B.prototype.pointerDown=function(z,H){ne.prototype.pointerDown.call(this,z,H),this.state==="new"&&(this.left=z.x,this.top=z.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var ee=this.unrotatePoint(z);if(this.manipulationStartX=ee.x,this.manipulationStartY=ee.y,this.offsetX=ee.x-this.left,this.offsetY=ee.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(H),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(H)){this.activeGrip=this.rotatorGrip;var X=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=X.x-this.width/2,this.top=X.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"},B.prototype.pointerUp=function(z){var H=this.state;ne.prototype.pointerUp.call(this,z),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(z),this._state="select",H==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},B.prototype.moveVisual=function(z){this.visual.style.transform="translate("+z.x+"px, "+z.y+"px)"},B.prototype.manipulate=function(z){var H=this.unrotatePoint(z);this.state==="creating"?this.resize(z):this.state==="move"?(this.left=this.manipulationStartLeft+(H.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(H.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(H):this.state==="rotate"&&this.rotate(z)},B.prototype.resize=function(z){var H=this.manipulationStartLeft,ee=this.manipulationStartWidth,X=this.manipulationStartTop,me=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:H=this.manipulationStartLeft+z.x-this.manipulationStartX,ee=this.manipulationStartWidth+this.manipulationStartLeft-H;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:ee=this.manipulationStartWidth+z.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:X=this.manipulationStartTop+z.y-this.manipulationStartY,me=this.manipulationStartHeight+this.manipulationStartTop-X;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:me=this.manipulationStartHeight+z.y-this.manipulationStartY}ee>=0?(this.left=H,this.width=ee):(this.left=H+ee,this.width=-ee),me>=0?(this.top=X,this.height=me):(this.top=X+me,this.height=-me),this.setSize()},B.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},B.prototype.rotate=function(z){if(Math.abs(z.x-this.centerX)>.1){var H=Math.sign(z.x-this.centerX);this.rotationAngle=180*Math.atan((z.y-this.centerY)/(z.x-this.centerX))/Math.PI+90*H,this.applyRotation()}},B.prototype.applyRotation=function(){var z=this.container.transform.baseVal.getItem(0);z.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(z,0)},B.prototype.rotatePoint=function(z){if(this.rotationAngle===0)return z;var H=this.container.getCTM(),ee=u.createPoint(z.x,z.y);return{x:(ee=ee.matrixTransform(H)).x,y:ee.y}},B.prototype.unrotatePoint=function(z){if(this.rotationAngle===0)return z;var H=this.container.getCTM();H=H.inverse();var ee=u.createPoint(z.x,z.y);return{x:(ee=ee.matrixTransform(H)).x,y:ee.y}},B.prototype.select=function(){ne.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},B.prototype.deselect=function(){ne.prototype.deselect.call(this),this.controlBox.style.display="none"},B.prototype.setupControlBox=function(){this.controlBox=u.createGroup();var z=u.createTransform();z.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(z),this.container.appendChild(this.controlBox),this.controlRect=u.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=u.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 p,this.addControlGrips(),this.controlBox.style.display="none"},B.prototype.adjustControlBox=function(){var z=this.controlBox.transform.baseVal.getItem(0);z.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(z,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()},B.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()},B.prototype.createGrip=function(){var z=new n;return z.visual.transform.baseVal.appendItem(u.createTransform()),this.controlBox.appendChild(z.visual),z},B.prototype.positionGrips=function(){var z=this.controlGrips.topLeft.GRIP_SIZE,H=-z/2,ee=H,X=(this.width+this.CB_DISTANCE)/2-z/2,me=(this.height+this.CB_DISTANCE)/2-z/2,je=this.height+this.CB_DISTANCE-z/2,Je=this.width+this.CB_DISTANCE-z/2;this.positionGrip(this.controlGrips.topLeft.visual,H,ee),this.positionGrip(this.controlGrips.topCenter.visual,X,ee),this.positionGrip(this.controlGrips.topRight.visual,Je,ee),this.positionGrip(this.controlGrips.centerLeft.visual,H,me),this.positionGrip(this.controlGrips.centerRight.visual,Je,me),this.positionGrip(this.controlGrips.bottomLeft.visual,H,je),this.positionGrip(this.controlGrips.bottomCenter.visual,X,je),this.positionGrip(this.controlGrips.bottomRight.visual,Je,je),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,X,ee-3*this.CB_DISTANCE)},B.prototype.positionGrip=function(z,H,ee){var X=z.transform.baseVal.getItem(0);X.setTranslate(H,ee),z.transform.baseVal.replaceItem(X,0)},B.prototype.hideControlBox=function(){this.controlBox.style.display="none"},B.prototype.showControlBox=function(){this.controlBox.style.display=""},B.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:i.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:i.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},ne.prototype.getState.call(this))},B.prototype.restoreState=function(z){ne.prototype.restoreState.call(this,z);var H=z;this.left=H.left,this.top=H.top,this.width=H.width,this.height=H.height,this.rotationAngle=H.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(i.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,H.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(i.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,H.containerTransformMatrix))},B.prototype.scale=function(z,H){ne.prototype.scale.call(this,z,H);var ee=this.rotatePoint({x:this.left,y:this.top}),X=this.unrotatePoint({x:ee.x*z,y:ee.y*H});this.left=X.x,this.top=X.y,this.width=this.width*z,this.height=this.height*H,this.adjustControlBox()},B}(s),C=function(ne){function B(z,H,ee){var X=ne.call(this,z,H,ee)||this;return X.fillColor="transparent",X.strokeColor="transparent",X.strokeWidth=0,X.strokeDasharray="",X.opacity=1,X.setStrokeColor=X.setStrokeColor.bind(X),X.setFillColor=X.setFillColor.bind(X),X.setStrokeWidth=X.setStrokeWidth.bind(X),X.setStrokeDasharray=X.setStrokeDasharray.bind(X),X.createVisual=X.createVisual.bind(X),X}return U(B,ne),B.prototype.ownsTarget=function(z){return!(!ne.prototype.ownsTarget.call(this,z)&&z!==this.visual)},B.prototype.createVisual=function(){this.visual=u.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)},B.prototype.pointerDown=function(z,H){ne.prototype.pointerDown.call(this,z,H),this.state==="new"&&(this.createVisual(),this.moveVisual(z),this._state="creating")},B.prototype.manipulate=function(z){ne.prototype.manipulate.call(this,z)},B.prototype.resize=function(z){ne.prototype.resize.call(this,z),this.setSize()},B.prototype.setSize=function(){ne.prototype.setSize.call(this),u.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},B.prototype.pointerUp=function(z){ne.prototype.pointerUp.call(this,z),this.setSize()},B.prototype.setStrokeColor=function(z){this.strokeColor=z,this.visual&&u.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(z),this.stateChanged()},B.prototype.setFillColor=function(z){this.fillColor=z,this.visual&&u.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},B.prototype.setStrokeWidth=function(z){this.strokeWidth=z,this.visual&&u.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},B.prototype.setStrokeDasharray=function(z){this.strokeDasharray=z,this.visual&&u.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},B.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ne.prototype.getState.call(this))},B.prototype.restoreState=function(z){var H=z;this.fillColor=H.fillColor,this.strokeColor=H.strokeColor,this.strokeWidth=H.strokeWidth,this.strokeDasharray=H.strokeDasharray,this.opacity=H.opacity,this.createVisual(),ne.prototype.restoreState.call(this,z),this.setSize()},B.prototype.scale=function(z,H){ne.prototype.scale.call(this,z,H),this.setSize()},B.title="Rectangle marker",B}(v),R=function(ne){function B(z,H,ee,X){var me=ne.call(this,z,X||'<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=H,me.currentWidth=ee,me.setCurrentWidth=me.setCurrentWidth.bind(me),me}return U(B,ne),B.prototype.getUi=function(){var z=this,H=document.createElement("div");return H.style.display="flex",H.style.overflow="hidden",H.style.flexGrow="2",this.widths.forEach(function(ee){var X=document.createElement("div");X.style.display="flex",X.style.flexGrow="2",X.style.alignItems="center",X.style.justifyContent="space-between",X.style.padding="5px",X.style.borderWidth="2px",X.style.borderStyle="solid",X.style.borderColor=ee===z.currentWidth?z.uiStyleSettings.toolboxAccentColor:"transparent",X.addEventListener("click",function(){z.setCurrentWidth(ee,X)}),H.appendChild(X);var me=document.createElement("div");me.innerText=ee.toString(),me.style.marginRight="5px",X.appendChild(me);var je=document.createElement("div");je.style.minHeight="20px",je.style.flexGrow="2",je.style.display="flex",je.style.alignItems="center";var Je=document.createElement("hr");Je.style.minWidth="20px",Je.style.border="0px",Je.style.borderTop=ee+"px solid "+z.uiStyleSettings.toolboxColor,Je.style.flexGrow="2",je.appendChild(Je),X.appendChild(je),z.widthBoxes.push(X)}),H},B.prototype.setCurrentWidth=function(z,H){var ee=this;this.currentWidth=z,this.widthBoxes.forEach(function(X){X.style.borderColor=X===H?ee.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},B}(d),w=function(ne){function B(z,H,ee,X){var me=ne.call(this,z,X||'<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=H,me.currentStyle=ee,me.setCurrentStyle=me.setCurrentStyle.bind(me),me}return U(B,ne),B.prototype.getUi=function(){var z=this,H=document.createElement("div");return H.style.display="flex",H.style.overflow="hidden",H.style.flexGrow="2",this.styles.forEach(function(ee){var X=document.createElement("div");X.style.display="flex",X.style.alignItems="center",X.style.justifyContent="space-between",X.style.padding="5px",X.style.borderWidth="2px",X.style.borderStyle="solid",X.style.overflow="hidden",X.style.maxWidth=100/z.styles.length-5+"%",X.style.borderColor=ee===z.currentStyle?z.uiStyleSettings.toolboxAccentColor:"transparent",X.addEventListener("click",function(){z.setCurrentStyle(ee,X)}),H.appendChild(X);var me=document.createElement("div");me.style.minHeight="20px",me.style.flexGrow="2",me.style.overflow="hidden";var je=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+z.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(ee!==""?'stroke-dasharray="'+ee+'"':"")+` />
</svg>`;me.innerHTML=je,X.appendChild(me),z.styleBoxes.push(X)}),H},B.prototype.setCurrentStyle=function(z,H){var ee=this;this.currentStyle=z,this.styleBoxes.forEach(function(X){X.style.borderColor=X===H?ee.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},B}(d),x=function(ne){function B(z,H,ee){var X=ne.call(this,z,H,ee)||this;return X.strokeColor=ee.defaultColor,X.strokeWidth=ee.defaultStrokeWidth,X.strokeDasharray=ee.defaultStrokeDasharray,X.strokePanel=new y("Line color",ee.defaultColorSet,ee.defaultColor),X.strokePanel.onColorChanged=X.setStrokeColor,X.strokeWidthPanel=new R("Line width",ee.defaultStrokeWidths,ee.defaultStrokeWidth),X.strokeWidthPanel.onWidthChanged=X.setStrokeWidth,X.strokeStylePanel=new w("Line style",ee.defaultStrokeDasharrays,ee.defaultStrokeDasharray),X.strokeStylePanel.onStyleChanged=X.setStrokeDasharray,X}return U(B,ne),Object.defineProperty(B.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),B.prototype.getState=function(){var z=ne.prototype.getState.call(this);return z.typeName=B.typeName,z},B.typeName="FrameMarker",B.title="Frame marker",B.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',B}(C),A=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},o=function(ne){function B(z,H,ee){var X=ne.call(this,z,H,ee)||this;return X.x1=0,X.y1=0,X.x2=0,X.y2=0,X.defaultLength=50,X.manipulationStartX=0,X.manipulationStartY=0,X.manipulationStartX1=0,X.manipulationStartY1=0,X.manipulationStartX2=0,X.manipulationStartY2=0,X.setupControlBox(),X}return U(B,ne),B.prototype.ownsTarget=function(z){return!!ne.prototype.ownsTarget.call(this,z)||!(!this.grip1.ownsTarget(z)&&!this.grip2.ownsTarget(z))},B.prototype.pointerDown=function(z,H){ne.prototype.pointerDown.call(this,z,H),this.manipulationStartX=z.x,this.manipulationStartY=z.y,this.state==="new"&&(this.x1=z.x,this.y1=z.y,this.x2=z.x,this.y2=z.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(H)?this.activeGrip=this.grip1:this.grip2.ownsTarget(H)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},B.prototype.pointerUp=function(z){var H=this.state;ne.prototype.pointerUp.call(this,z),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(z),this._state="select",H==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},B.prototype.adjustVisual=function(){},B.prototype.manipulate=function(z){this.state==="creating"?this.resize(z):this.state==="move"?(this.x1=this.manipulationStartX1+z.x-this.manipulationStartX,this.y1=this.manipulationStartY1+z.y-this.manipulationStartY,this.x2=this.manipulationStartX2+z.x-this.manipulationStartX,this.y2=this.manipulationStartY2+z.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(z)},B.prototype.resize=function(z){switch(this.activeGrip){case this.grip1:this.x1=z.x,this.y1=z.y;break;case this.grip2:case void 0:this.x2=z.x,this.y2=z.y}this.adjustVisual(),this.adjustControlBox()},B.prototype.select=function(){ne.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},B.prototype.deselect=function(){ne.prototype.deselect.call(this),this.controlBox.style.display="none"},B.prototype.setupControlBox=function(){this.controlBox=u.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},B.prototype.adjustControlBox=function(){this.positionGrips()},B.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},B.prototype.createGrip=function(){var z=new n;return z.visual.transform.baseVal.appendItem(u.createTransform()),this.controlBox.appendChild(z.visual),z},B.prototype.positionGrips=function(){var z=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-z/2,this.y1-z/2),this.positionGrip(this.grip2.visual,this.x2-z/2,this.y2-z/2)},B.prototype.positionGrip=function(z,H,ee){var X=z.transform.baseVal.getItem(0);X.setTranslate(H,ee),z.transform.baseVal.replaceItem(X,0)},B.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},ne.prototype.getState.call(this))},B.prototype.restoreState=function(z){ne.prototype.restoreState.call(this,z);var H=z;this.x1=H.x1,this.y1=H.y1,this.x2=H.x2,this.y2=H.y2},B.prototype.scale=function(z,H){ne.prototype.scale.call(this,z,H),this.x1=this.x1*z,this.y1=this.y1*H,this.x2=this.x2*z,this.y2=this.y2*H,this.adjustVisual(),this.adjustControlBox()},B}(s),f=function(ne){function B(z,H,ee){var X=ne.call(this,z,H,ee)||this;return X.strokeColor="transparent",X.strokeWidth=0,X.strokeDasharray="",X.setStrokeColor=X.setStrokeColor.bind(X),X.setStrokeWidth=X.setStrokeWidth.bind(X),X.setStrokeDasharray=X.setStrokeDasharray.bind(X),X.strokeColor=ee.defaultColor,X.strokeWidth=ee.defaultStrokeWidth,X.strokeDasharray=ee.defaultStrokeDasharray,X.strokePanel=new y("Line color",ee.defaultColorSet,ee.defaultColor),X.strokePanel.onColorChanged=X.setStrokeColor,X.strokeWidthPanel=new R("Line width",ee.defaultStrokeWidths,ee.defaultStrokeWidth),X.strokeWidthPanel.onWidthChanged=X.setStrokeWidth,X.strokeStylePanel=new w("Line style",ee.defaultStrokeDasharrays,ee.defaultStrokeDasharray),X.strokeStylePanel.onStyleChanged=X.setStrokeDasharray,X}return U(B,ne),B.prototype.ownsTarget=function(z){return!(!ne.prototype.ownsTarget.call(this,z)&&z!==this.visual&&z!==this.selectorLine&&z!==this.visibleLine)},B.prototype.createVisual=function(){this.visual=u.createGroup(),this.selectorLine=u.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=u.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)},B.prototype.pointerDown=function(z,H){ne.prototype.pointerDown.call(this,z,H),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},B.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()),u.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),u.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),u.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},B.prototype.setStrokeColor=function(z){this.strokeColor=z,this.adjustVisual(),this.colorChanged(z)},B.prototype.setStrokeWidth=function(z){this.strokeWidth=z,this.adjustVisual()},B.prototype.setStrokeDasharray=function(z){this.strokeDasharray=z,this.adjustVisual(),this.stateChanged()},Object.defineProperty(B.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),B.prototype.getState=function(){var z=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},ne.prototype.getState.call(this));return z.typeName=B.typeName,z},B.prototype.restoreState=function(z){ne.prototype.restoreState.call(this,z);var H=z;this.strokeColor=H.strokeColor,this.strokeWidth=H.strokeWidth,this.strokeDasharray=H.strokeDasharray,this.createVisual(),this.adjustVisual()},B.typeName="LineMarker",B.title="Line marker",B.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',B}(o),E=function(ne){function B(z,H,ee,X){var me=ne.call(this,z,X||'<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=H,me.currentFont=ee,me.setCurrentFont=me.setCurrentFont.bind(me),me}return U(B,ne),B.prototype.getUi=function(){var z=this,H=document.createElement("div");return H.style.overflow="hidden",H.style.flexGrow="2",this.fonts.forEach(function(ee){var X=document.createElement("div");X.style.display="inline-block",X.style.alignItems="center",X.style.justifyContent="space-between",X.style.padding="5px",X.style.borderWidth="2px",X.style.borderStyle="solid",X.style.overflow="hidden",X.style.maxWidth=100/z.fonts.length-5+"%",X.style.borderColor=ee===z.currentFont?z.uiStyleSettings.toolboxAccentColor:"transparent",X.addEventListener("click",function(){z.setCurrentFont(ee,X)}),H.appendChild(X);var me=document.createElement("div");me.style.display="flex",me.style.minHeight="20px",me.style.flexGrow="2",me.style.fontFamily=ee,me.style.overflow="hidden";var je=document.createElement("div");je.style.whiteSpace="nowrap",je.style.overflow="hidden",je.style.textOverflow="ellipsis",je.innerHTML="The quick brown fox jumps over the lazy dog",me.appendChild(je),X.appendChild(me),z.fontBoxes.push(X)}),H},B.prototype.setCurrentFont=function(z,H){var ee=this;this.currentFont=z,this.fontBoxes.forEach(function(X){X.style.borderColor=X===H?ee.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},B}(d),O=function(ne){function B(z,H,ee){var X=ne.call(this,z,H,ee)||this;return X.color="transparent",X.padding=5,X.DEFAULT_TEXT="your text here",X.text=X.DEFAULT_TEXT,X.isMoved=!1,X.color=ee.defaultColor,X.fontFamily=ee.defaultFontFamily,X.defaultSize={x:100,y:30},X.setColor=X.setColor.bind(X),X.setFont=X.setFont.bind(X),X.renderText=X.renderText.bind(X),X.sizeText=X.sizeText.bind(X),X.textEditDivClicked=X.textEditDivClicked.bind(X),X.showTextEditor=X.showTextEditor.bind(X),X.setSize=X.setSize.bind(X),X.positionTextEditor=X.positionTextEditor.bind(X),X.colorPanel=new y("Color",ee.defaultColorSet,ee.defaultColor),X.colorPanel.onColorChanged=X.setColor,X.fontFamilyPanel=new E("Font",ee.defaultFontFamilies,ee.defaultFontFamily),X.fontFamilyPanel.onFontChanged=X.setFont,X}return U(B,ne),B.prototype.ownsTarget=function(z){if(ne.prototype.ownsTarget.call(this,z)||z===this.visual||z===this.textElement||z===this.bgRectangle)return!0;var H=!1;return this.textElement.childNodes.forEach(function(ee){ee===z&&(H=!0)}),H},B.prototype.createVisual=function(){this.visual=u.createGroup(),this.bgRectangle=u.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=u.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(u.createTransform()),this.textElement.transform.baseVal.appendItem(u.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},B.prototype.pointerDown=function(z,H){ne.prototype.pointerDown.call(this,z,H),this.isMoved=!1,this.pointerDownPoint=z,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(z),this._state="creating")},B.prototype.renderText=function(){var z=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(H){z.textElement.appendChild(u.createTSpan(H.trim()===""?" ":H.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},B.prototype.getTextScale=function(){var z=this.textElement.getBBox(),H=1;if(z.width>0&&z.height>0){var ee=(1*this.width-this.width*this.padding*2/100)/z.width,X=(1*this.height-this.height*this.padding*2/100)/z.height;H=Math.min(ee,X)}return H},B.prototype.getTextPosition=function(z){var H=this.textElement.getBBox(),ee=0,X=0;return H.width>0&&H.height>0&&(ee=(this.width-H.width*z)/2,X=this.height/2-H.height*z/2),{x:ee,y:X}},B.prototype.sizeText=function(){var z=this.textElement.getBBox(),H=this.getTextScale(),ee=this.getTextPosition(H);ee.y-=z.y*H,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+ee.x+"px, "+ee.y+"px) scale("+H+", "+H+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(ee.x,ee.y),this.textElement.transform.baseVal.getItem(1).setScale(H,H))},B.prototype.manipulate=function(z){ne.prototype.manipulate.call(this,z),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(z.x-this.pointerDownPoint.x)>5||Math.abs(z.y-this.pointerDownPoint.y)>5)},B.prototype.resize=function(z){ne.prototype.resize.call(this,z),this.isMoved=!0,this.setSize(),this.sizeText()},B.prototype.setSize=function(){ne.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(u.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),u.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},B.prototype.pointerUp=function(z){var H=this.state;H==="creating"&&(this._suppressMarkerCreateEvent=!0),ne.prototype.pointerUp.call(this,z),this.setSize(),(H==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},B.prototype.showTextEditor=function(){var z=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(H){H.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var H=Number.parseFloat(z.textEditor.style.fontSize);z.textEditor.clientWidth>=Number.parseInt(z.textEditor.style.maxWidth)&&H>.9;)H-=.1,z.textEditor.style.fontSize=Math.max(H,.9)+"em"}),this.textEditor.addEventListener("keyup",function(H){H.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(H){if(H.clipboardData){var ee=H.clipboardData.getData("text"),X=window.getSelection();if(!X.rangeCount)return!1;X.deleteFromDocument(),X.getRangeAt(0).insertNode(document.createTextNode(ee)),H.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){z.textEditDivClicked(z.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},B.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var z=this.getTextScale(),H=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),ee=this.textElement.getBBox(),X={x:ee.width*z,y:ee.height*z};H.x-=X.x/2,H.y-=X.y/2,this.textEditor.style.top=H.y+"px",this.textEditor.style.left=H.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-H.x+"px",this.textEditor.style.fontSize=Math.max(16*z,12)+"px",this.textElement.style.display="none"}},B.prototype.textEditDivClicked=function(z){this.text=z.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},B.prototype.select=function(){ne.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},B.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),ne.prototype.deselect.call(this)},B.prototype.dblClick=function(z,H){ne.prototype.dblClick.call(this,z,H),this.showTextEditor()},B.prototype.setColor=function(z){this.textElement&&u.setAttributes(this.textElement,[["fill",z]]),this.color=z,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(z)},B.prototype.setFont=function(z){this.textElement&&u.setAttributes(this.textElement,[["font-family",z]]),this.fontFamily=z,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},B.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},B.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(B.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),B.prototype.getState=function(){var z=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},ne.prototype.getState.call(this));return z.typeName=B.typeName,z},B.prototype.restoreState=function(z){var H=z;this.color=H.color,this.fontFamily=H.fontFamily,this.padding=H.padding,this.text=H.text,this.createVisual(),ne.prototype.restoreState.call(this,z),this.setSize()},B.prototype.scale=function(z,H){ne.prototype.scale.call(this,z,H),this.setSize(),this.sizeText(),this.positionTextEditor()},B.typeName="TextMarker",B.title="Text marker",B.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>',B}(v),S=function(ne){function B(z,H,ee){var X=ne.call(this,z,H,ee)||this;return X.color="transparent",X.lineWidth=3,X.drawing=!1,X.pixelRatio=1,X.color=ee.defaultColor,X.lineWidth=ee.defaultStrokeWidth,X.pixelRatio=ee.freehandPixelRatio,X.setColor=X.setColor.bind(X),X.addCanvas=X.addCanvas.bind(X),X.finishCreation=X.finishCreation.bind(X),X.setLineWidth=X.setLineWidth.bind(X),X.colorPanel=new y("Color",ee.defaultColorSet,ee.defaultColor),X.colorPanel.onColorChanged=X.setColor,X.lineWidthPanel=new R("Line width",ee.defaultStrokeWidths,ee.defaultStrokeWidth),X.lineWidthPanel.onWidthChanged=X.setLineWidth,X}return U(B,ne),B.prototype.ownsTarget=function(z){return!(!ne.prototype.ownsTarget.call(this,z)&&z!==this.visual&&z!==this.drawingImage)},B.prototype.createVisual=function(){this.visual=u.createGroup(),this.drawingImage=u.createImage(),this.visual.appendChild(this.drawingImage);var z=u.createTransform();this.visual.transform.baseVal.appendItem(z),this.addMarkerVisualToContainer(this.visual)},B.prototype.pointerDown=function(z,H){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(z.x,z.y),this.drawing=!0):ne.prototype.pointerDown.call(this,z,H)},B.prototype.manipulate=function(z){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(z.x,z.y),this.canvasContext.stroke()):ne.prototype.manipulate.call(this,z)},B.prototype.resize=function(z){ne.prototype.resize.call(this,z),u.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),u.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},B.prototype.pointerUp=function(z){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):ne.prototype.pointerUp.call(this,z)},B.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)},B.prototype.select=function(){this.state==="creating"&&this.finishCreation(),ne.prototype.select.call(this)},B.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),ne.prototype.deselect.call(this)},B.prototype.finishCreation=function(){for(var z=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),H=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],ee=H[0],X=H[1],me=H[2],je=H[3],Je=!1,oe=0;oe<this.canvasElement.height;oe++)for(var Ae=0;Ae<this.canvasElement.width;Ae++)z.data[oe*this.canvasElement.width*4+4*Ae+3]>0&&(Je=!0,oe<X&&(X=oe),Ae<ee&&(ee=Ae),oe>je&&(je=oe),Ae>me&&(me=Ae));if(Je){this.left=ee/this.pixelRatio,this.top=X/this.pixelRatio,this.width=(me-ee)/this.pixelRatio,this.height=(je-X)/this.pixelRatio;var ye=document.createElement("canvas");ye.width=me-ee,ye.height=je-X,ye.getContext("2d").putImageData(this.canvasContext.getImageData(ee,X,me-ee,je-X),0,0),this.drawingImgUrl=ye.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},B.prototype.setDrawingImage=function(){u.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),u.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},B.prototype.setColor=function(z){this.color=z,this.colorChanged(z)},B.prototype.setLineWidth=function(z){this.lineWidth=z},Object.defineProperty(B.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),B.prototype.getState=function(){var z=Object.assign({drawingImgUrl:this.drawingImgUrl},ne.prototype.getState.call(this));return z.typeName=B.typeName,z},B.prototype.restoreState=function(z){this.createVisual(),ne.prototype.restoreState.call(this,z),this.drawingImgUrl=z.drawingImgUrl,this.setDrawingImage()},B.prototype.scale=function(z,H){ne.prototype.scale.call(this,z,H),this.setDrawingImage()},B.typeName="FreehandMarker",B.title="Freehand marker",B.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>',B}(v),b=function(ne){function B(z,H,ee){var X=ne.call(this,z,ee||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return X.typeBoxes=[],X.currentType=H,X.setCurrentType=X.setCurrentType.bind(X),X}return U(B,ne),B.prototype.getUi=function(){var z=this,H=document.createElement("div");H.style.display="flex",H.style.overflow="hidden",H.style.flexGrow="2";for(var ee=function(je){var Je="both";switch(je){case 0:Je="both";break;case 1:Je="start";break;case 2:Je="end";break;case 3:Je="none"}var oe=document.createElement("div");if(oe.style.display="flex",oe.style.flexGrow="2",oe.style.alignItems="center",oe.style.justifyContent="space-between",oe.style.padding="5px",oe.style.borderWidth="2px",oe.style.borderStyle="solid",oe.style.borderColor=Je===X.currentType?X.uiStyleSettings.toolboxAccentColor:"transparent",oe.addEventListener("click",function(){z.setCurrentType(Je,oe)}),H.appendChild(oe),Je==="both"||Je==="start"){var Ae=document.createElement("div");Ae.style.display="flex",Ae.style.alignItems="center",Ae.style.minHeight="20px",Ae.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="`+(X.uiStyleSettings!==void 0?X.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,Ae.style.marginLeft="5px",oe.appendChild(Ae)}var ye=document.createElement("div");ye.style.display="flex",ye.style.alignItems="center",ye.style.minHeight="20px",ye.style.flexGrow="2";var Le=document.createElement("hr");if(Le.style.minWidth="20px",Le.style.border="0px",Le.style.borderTop="3px solid "+(X.uiStyleSettings!==void 0?X.uiStyleSettings.toolboxColor:"#eeeeee"),Le.style.flexGrow="2",ye.appendChild(Le),oe.appendChild(ye),Je==="both"||Je==="end"){var We=document.createElement("div");We.style.display="flex",We.style.alignItems="center",We.style.minHeight="20px",We.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="`+(X.uiStyleSettings!==void 0?X.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,We.style.marginRight="5px",oe.appendChild(We)}X.typeBoxes.push(oe)},X=this,me=0;me<4;me++)ee(me);return H},B.prototype.setCurrentType=function(z,H){var ee=this;this.currentType=z,this.typeBoxes.forEach(function(X){X.style.borderColor=X===H?ee.uiStyleSettings!==void 0?ee.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},B}(d),D=function(ne){function B(z,H,ee){var X=ne.call(this,z,H,ee)||this;return X.arrowType="end",X.arrowBaseHeight=10,X.arrowBaseWidth=10,X.getArrowPoints=X.getArrowPoints.bind(X),X.setArrowType=X.setArrowType.bind(X),X.arrowTypePanel=new b("Arrow type","end"),X.arrowTypePanel.onArrowTypeChanged=X.setArrowType,X}return U(B,ne),B.prototype.ownsTarget=function(z){return!(!ne.prototype.ownsTarget.call(this,z)&&z!==this.arrow1&&z!==this.arrow2)},B.prototype.getArrowPoints=function(z,H){var ee=this.arrowBaseWidth+2*this.strokeWidth,X=this.arrowBaseHeight+2*this.strokeWidth;return z-ee/2+","+(H+X/2)+" "+z+","+(H-X/2)+" "+(z+ee/2)+","+(H+X/2)},B.prototype.createTips=function(){this.arrow1=u.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(u.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=u.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(u.createTransform()),this.visual.appendChild(this.arrow2)},B.prototype.pointerDown=function(z,H){ne.prototype.pointerDown.call(this,z,H),this.state==="creating"&&this.createTips()},B.prototype.adjustVisual=function(){if(ne.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",u.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),u.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]),Math.abs(this.x1-this.x2)>.1)){var z=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),H=this.arrow1.transform.baseVal.getItem(0);H.setRotate(z,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(H,0);var ee=this.arrow2.transform.baseVal.getItem(0);ee.setRotate(z+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(ee,0)}},B.prototype.setArrowType=function(z){this.arrowType=z,this.adjustVisual(),this.stateChanged()},Object.defineProperty(B.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),B.prototype.getState=function(){var z=Object.assign({arrowType:this.arrowType},ne.prototype.getState.call(this));return z.typeName=B.typeName,z},B.prototype.restoreState=function(z){ne.prototype.restoreState.call(this,z);var H=z;this.arrowType=H.arrowType,this.createTips(),this.adjustVisual()},B.typeName="ArrowMarker",B.title="Arrow marker",B.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',B}(f),P=function(ne){function B(z,H,ee){var X=ne.call(this,z,H,ee)||this;return X.fillColor=ee.defaultFillColor,X.strokeWidth=0,X.fillPanel=new y("Color",ee.defaultColorSet,ee.defaultFillColor),X.fillPanel.onColorChanged=X.setFillColor,X}return U(B,ne),Object.defineProperty(B.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),B.prototype.getState=function(){var z=ne.prototype.getState.call(this);return z.typeName=B.typeName,z},B.typeName="CoverMarker",B.title="Cover marker",B.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',B}(C),I=function(ne){function B(z,H,ee,X){var me=ne.call(this,z,X||'<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=H,me.currentOpacity=ee,me.setCurrentOpacity=me.setCurrentOpacity.bind(me),me}return U(B,ne),B.prototype.getUi=function(){var z=this,H=document.createElement("div");return H.style.display="flex",H.style.overflow="hidden",H.style.flexGrow="2",H.style.justifyContent="space-between",this.opacities.forEach(function(ee){var X=document.createElement("div");X.style.display="flex",X.style.alignItems="center",X.style.justifyContent="center",X.style.padding="5px",X.style.borderWidth="2px",X.style.borderStyle="solid",X.style.borderColor=ee===z.currentOpacity?z.uiStyleSettings.toolboxAccentColor:"transparent",X.addEventListener("click",function(){z.setCurrentOpacity(ee,X)}),H.appendChild(X);var me=document.createElement("div");me.innerText=100*ee+"%",X.appendChild(me),z.opacityBoxes.push(X)}),H},B.prototype.setCurrentOpacity=function(z,H){var ee=this;this.currentOpacity=z,this.opacityBoxes.forEach(function(X){X.style.borderColor=X===H?ee.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},B}(d),F=function(ne){function B(z,H,ee){var X=ne.call(this,z,H,ee)||this;return X.setOpacity=X.setOpacity.bind(X),X.fillColor=ee.defaultHighlightColor,X.strokeWidth=0,X.opacity=ee.defaultHighlightOpacity,X.fillPanel=new y("Color",ee.defaultColorSet,X.fillColor),X.fillPanel.onColorChanged=X.setFillColor,X.opacityPanel=new I("Opacity",ee.defaultOpacitySteps,X.opacity),X.opacityPanel.onOpacityChanged=X.setOpacity,X}return U(B,ne),B.prototype.setOpacity=function(z){this.opacity=z,this.visual&&u.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(B.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),B.prototype.getState=function(){var z=ne.prototype.getState.call(this);return z.typeName=B.typeName,z},B.typeName="HighlightMarker",B.title="Highlight marker",B.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>',B}(P),K='<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>',j=function(ne){function B(z,H,ee){var X=ne.call(this,z,H,ee)||this;return X.bgColor="transparent",X.tipPosition={x:0,y:0},X.tipBase1Position={x:0,y:0},X.tipBase2Position={x:0,y:0},X.tipMoving=!1,X.color=ee.defaultStrokeColor,X.bgColor=ee.defaultFillColor,X.fontFamily=ee.defaultFontFamily,X.defaultSize={x:100,y:30},X.setBgColor=X.setBgColor.bind(X),X.getTipPoints=X.getTipPoints.bind(X),X.positionTip=X.positionTip.bind(X),X.setTipPoints=X.setTipPoints.bind(X),X.colorPanel=new y("Text color",ee.defaultColorSet,X.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>'),X.colorPanel.onColorChanged=X.setColor,X.bgColorPanel=new y("Fill color",ee.defaultColorSet,X.bgColor,K),X.bgColorPanel.onColorChanged=X.setBgColor,X.fontFamilyPanel=new E("Font",ee.defaultFontFamilies,ee.defaultFontFamily),X.fontFamilyPanel.onFontChanged=X.setFont,X.tipGrip=new n,X.tipGrip.visual.transform.baseVal.appendItem(u.createTransform()),X.controlBox.appendChild(X.tipGrip.visual),X}return U(B,ne),B.prototype.ownsTarget=function(z){return ne.prototype.ownsTarget.call(this,z)||this.tipGrip.ownsTarget(z)||this.tip===z},B.prototype.createTip=function(){u.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=u.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},B.prototype.pointerDown=function(z,H){this.state==="new"&&ne.prototype.pointerDown.call(this,z,H),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(H)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):ne.prototype.pointerDown.call(this,z,H)},B.prototype.pointerUp=function(z){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,ne.prototype.pointerUp.call(this,z);else{var H=this.state==="creating";ne.prototype.pointerUp.call(this,z),this.setTipPoints(H),this.positionTip()}},B.prototype.manipulate=function(z){if(this.tipMoving){var H=this.unrotatePoint(z);this.tipPosition={x:H.x-this.manipulationStartLeft,y:H.y-this.manipulationStartTop},this.positionTip()}else ne.prototype.manipulate.call(this,z)},B.prototype.setBgColor=function(z){this.bgRectangle&&this.tip&&(u.setAttributes(this.bgRectangle,[["fill",z]]),u.setAttributes(this.tip,[["fill",z]])),this.bgColor=z,this.fillColorChanged(z)},B.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},B.prototype.setTipPoints=function(z){z===void 0&&(z=!1);var H=Math.min(this.height/2,15),ee=this.height/5;z&&(this.tipPosition={x:H+ee/2,y:this.height+20});var X=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?X<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(ee=this.width/5,H=Math.min(this.width/2,15),this.tipBase1Position={x:H,y:0},this.tipBase2Position={x:H+ee,y:0}):(this.tipBase1Position={x:0,y:H},this.tipBase2Position={x:0,y:H+ee}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?X<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(ee=this.width/5,H=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-H-ee,y:0},this.tipBase2Position={x:this.width-H,y:0}):(this.tipBase1Position={x:this.width,y:H},this.tipBase2Position={x:this.width,y:H+ee}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?X<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(ee=this.width/5,H=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-H-ee,y:this.height},this.tipBase2Position={x:this.width-H,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-H-ee},this.tipBase2Position={x:this.width,y:this.height-H}):X<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(ee=this.width/5,H=Math.min(this.width/2,15),this.tipBase1Position={x:H,y:this.height},this.tipBase2Position={x:H+ee,y:this.height}):(this.tipBase1Position={x:0,y:this.height-H},this.tipBase2Position={x:0,y:this.height-H-ee})},B.prototype.resize=function(z){ne.prototype.resize.call(this,z),this.positionTip()},B.prototype.positionTip=function(){u.setAttributes(this.tip,[["points",this.getTipPoints()]]);var z=this.tipGrip.visual.transform.baseVal.getItem(0);z.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(z,0)},Object.defineProperty(B.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),B.prototype.select=function(){this.positionTip(),ne.prototype.select.call(this)},B.prototype.getState=function(){var z=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},ne.prototype.getState.call(this));return z.typeName=B.typeName,z},B.prototype.restoreState=function(z){var H=z;this.bgColor=H.bgColor,this.tipPosition=H.tipPosition,ne.prototype.restoreState.call(this,z),this.createTip(),this.setTipPoints()},B.prototype.scale=function(z,H){ne.prototype.scale.call(this,z,H),this.tipPosition={x:this.tipPosition.x*z,y:this.tipPosition.y*H},this.positionTip()},B.typeName="CalloutMarker",B.title="Callout marker",B.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>',B}(O),Y=function(ne){function B(z,H,ee){var X=ne.call(this,z,H,ee)||this;return X.fillColor="transparent",X.strokeColor="transparent",X.strokeWidth=0,X.strokeDasharray="",X.opacity=1,X.strokeColor=ee.defaultColor,X.strokeWidth=ee.defaultStrokeWidth,X.strokeDasharray=ee.defaultStrokeDasharray,X.fillColor=ee.defaultFillColor,X.setStrokeColor=X.setStrokeColor.bind(X),X.setFillColor=X.setFillColor.bind(X),X.setStrokeWidth=X.setStrokeWidth.bind(X),X.setStrokeDasharray=X.setStrokeDasharray.bind(X),X.setOpacity=X.setOpacity.bind(X),X.createVisual=X.createVisual.bind(X),X.strokePanel=new y("Line color",c(ee.defaultColorSet,["transparent"]),ee.defaultColor),X.strokePanel.onColorChanged=X.setStrokeColor,X.fillPanel=new y("Fill color",c(ee.defaultColorSet,["transparent"]),X.fillColor,K),X.fillPanel.onColorChanged=X.setFillColor,X.strokeWidthPanel=new R("Line width",ee.defaultStrokeWidths,ee.defaultStrokeWidth),X.strokeWidthPanel.onWidthChanged=X.setStrokeWidth,X.strokeStylePanel=new w("Line style",ee.defaultStrokeDasharrays,ee.defaultStrokeDasharray),X.strokeStylePanel.onStyleChanged=X.setStrokeDasharray,X.opacityPanel=new I("Opacity",ee.defaultOpacitySteps,X.opacity),X.opacityPanel.onOpacityChanged=X.setOpacity,X}return U(B,ne),B.prototype.ownsTarget=function(z){return!(!ne.prototype.ownsTarget.call(this,z)&&z!==this.visual)},B.prototype.createVisual=function(){this.visual=u.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)},B.prototype.pointerDown=function(z,H){ne.prototype.pointerDown.call(this,z,H),this.state==="new"&&(this.createVisual(),this.moveVisual(z),this._state="creating")},B.prototype.manipulate=function(z){ne.prototype.manipulate.call(this,z)},B.prototype.resize=function(z){ne.prototype.resize.call(this,z),this.setSize()},B.prototype.setSize=function(){ne.prototype.setSize.call(this),u.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},B.prototype.pointerUp=function(z){ne.prototype.pointerUp.call(this,z),this.setSize()},B.prototype.setStrokeColor=function(z){this.strokeColor=z,this.visual&&u.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(z),this.stateChanged()},B.prototype.setFillColor=function(z){this.fillColor=z,this.visual&&u.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(z),this.stateChanged()},B.prototype.setStrokeWidth=function(z){this.strokeWidth=z,this.visual&&u.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},B.prototype.setStrokeDasharray=function(z){this.strokeDasharray=z,this.visual&&u.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},B.prototype.setOpacity=function(z){this.opacity=z,this.visual&&u.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(B.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),B.prototype.getState=function(){var z=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ne.prototype.getState.call(this));return z.typeName=B.typeName,z},B.prototype.restoreState=function(z){var H=z;this.fillColor=H.fillColor,this.strokeColor=H.strokeColor,this.strokeWidth=H.strokeWidth,this.strokeDasharray=H.strokeDasharray,this.opacity=H.opacity,this.createVisual(),ne.prototype.restoreState.call(this,z),this.setSize()},B.prototype.scale=function(z,H){ne.prototype.scale.call(this,z,H),this.setSize()},B.typeName="EllipseMarker",B.title="Ellipse marker",B.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>',B}(v),W=function(ne){function B(z,H,ee){return ne.call(this,z,H,ee)||this}return U(B,ne),Object.defineProperty(B.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),B.prototype.ownsTarget=function(z){return!(!ne.prototype.ownsTarget.call(this,z)&&z!==this.tip1&&z!==this.tip2)},B.prototype.createTips=function(){this.tip1=u.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(u.createTransform()),this.visual.appendChild(this.tip1),this.tip2=u.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(u.createTransform()),this.visual.appendChild(this.tip2)},B.prototype.pointerDown=function(z,H){ne.prototype.pointerDown.call(this,z,H),this.state==="creating"&&this.createTips()},B.prototype.adjustVisual=function(){if(ne.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(u.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()]]),u.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 z=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),H=this.tip1.transform.baseVal.getItem(0);H.setRotate(z,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(H,0);var ee=this.tip2.transform.baseVal.getItem(0);ee.setRotate(z+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(ee,0)}},Object.defineProperty(B.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),B.prototype.getState=function(){var z=ne.prototype.getState.call(this);return z.typeName=B.typeName,z},B.prototype.restoreState=function(z){ne.prototype.restoreState.call(this,z),this.createTips(),this.adjustVisual()},B.typeName="MeasurementMarker",B.title="Measurement marker",B.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>',B}(f),Q=function(ne){function B(z,H,ee){var X=ne.call(this,z,H,ee)||this;return X.strokePanel.colors=ee.defaultColorSet,X.fillColor="transparent",X}return U(B,ne),Object.defineProperty(B.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),B.prototype.getState=function(){var z=ne.prototype.getState.call(this);return z.typeName=B.typeName,z},B.typeName="EllipseFrameMarker",B.title="Ellipse frame marker",B.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>',B}(Y),ie=function(){function ne(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(ne.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),ne.prototype.addUndoStep=function(B){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(B)||(this.undoStack.push(B),JSON.stringify(this.lastRedoStep)!==JSON.stringify(B)&&this.redoStack.splice(0,this.redoStack.length))},ne.prototype.replaceLastUndoStep=function(B){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=B)},ne.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},ne.prototype.undo=function(){if(this.undoStack.length>1){var B=this.undoStack.pop();return B!==void 0&&this.redoStack.push(B),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},ne.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},ne}(),Ee=function(ne){function B(z,H,ee){var X=ne.call(this,z,H,ee)||this;return X.strokeColor="transparent",X.strokeWidth=0,X.strokeDasharray="",X.curveX=0,X.curveY=0,X.manipulationStartCurveX=0,X.manipulationStartCurveY=0,X.setStrokeColor=X.setStrokeColor.bind(X),X.setStrokeWidth=X.setStrokeWidth.bind(X),X.setStrokeDasharray=X.setStrokeDasharray.bind(X),X.positionGrips=X.positionGrips.bind(X),X.addControlGrips=X.addControlGrips.bind(X),X.adjustVisual=X.adjustVisual.bind(X),X.setupControlBox=X.setupControlBox.bind(X),X.resize=X.resize.bind(X),X.strokeColor=ee.defaultColor,X.strokeWidth=ee.defaultStrokeWidth,X.strokeDasharray=ee.defaultStrokeDasharray,X.strokePanel=new y("Line color",ee.defaultColorSet,ee.defaultColor),X.strokePanel.onColorChanged=X.setStrokeColor,X.strokeWidthPanel=new R("Line width",ee.defaultStrokeWidths,ee.defaultStrokeWidth),X.strokeWidthPanel.onWidthChanged=X.setStrokeWidth,X.strokeStylePanel=new w("Line style",ee.defaultStrokeDasharrays,ee.defaultStrokeDasharray),X.strokeStylePanel.onStyleChanged=X.setStrokeDasharray,X}return U(B,ne),B.prototype.ownsTarget=function(z){return!(!ne.prototype.ownsTarget.call(this,z)&&z!==this.visual&&z!==this.selectorCurve&&z!==this.visibleCurve&&!this.curveGrip.ownsTarget(z))},B.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},B.prototype.createVisual=function(){this.visual=u.createGroup(),this.selectorCurve=u.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=u.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)},B.prototype.pointerDown=function(z,H){ne.prototype.pointerDown.call(this,z,H),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=z.x,this.curveY=z.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(H)&&(this.activeGrip=this.curveGrip,this._state="resize")},B.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),u.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),u.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),u.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},B.prototype.setupControlBox=function(){ne.prototype.setupControlBox.call(this),this.curveControlLine1=u.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=u.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)},B.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,ne.prototype.addControlGrips.call(this)},B.prototype.positionGrips=function(){ne.prototype.positionGrips.call(this);var z=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-z/2,this.curveY-z/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()))},B.prototype.manipulate=function(z){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+z.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+z.y-this.manipulationStartY),ne.prototype.manipulate.call(this,z)},B.prototype.resize=function(z){this.activeGrip===this.curveGrip&&(this.curveX=z.x,this.curveY=z.y),ne.prototype.resize.call(this,z),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},B.prototype.setStrokeColor=function(z){this.strokeColor=z,this.adjustVisual(),this.colorChanged(z)},B.prototype.setStrokeWidth=function(z){this.strokeWidth=z,this.adjustVisual()},B.prototype.setStrokeDasharray=function(z){this.strokeDasharray=z,this.adjustVisual()},B.prototype.scale=function(z,H){this.curveX=this.curveX*z,this.curveY=this.curveY*H,ne.prototype.scale.call(this,z,H)},Object.defineProperty(B.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),B.prototype.getState=function(){var z=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},ne.prototype.getState.call(this));return z.typeName=B.typeName,z},B.prototype.restoreState=function(z){ne.prototype.restoreState.call(this,z);var H=z;this.strokeColor=H.strokeColor,this.strokeWidth=H.strokeWidth,this.strokeDasharray=H.strokeDasharray,this.curveX=H.curveX,this.curveY=H.curveY,this.createVisual(),this.adjustVisual()},B.typeName="CurveMarker",B.title="Curve marker",B.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>',B}(o),pe=function(){function ne(B,z){z===void 0&&(z=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=B,this.cancelable=z}return Object.defineProperty(ne.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),ne.prototype.preventDefault=function(){this._defaultPrevented=!0},ne}(),De=function(ne){function B(z,H,ee){var X=ne.call(this,z,!1)||this;return X.dataUrl=H,X.state=ee,X}return U(B,ne),B}(pe),Me=function(ne){function B(z,H,ee){ee===void 0&&(ee=!1);var X=ne.call(this,z,ee)||this;return X.marker=H,X}return U(B,ne),B}(pe),Ue=function(){function ne(){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 ne.prototype.addEventListener=function(B,z){this[B].push(z)},ne.prototype.removeEventListener=function(B,z){var H=this[B].indexOf(z);H>-1&&this[B].splice(H,1)},ne}(),Ie=function(){function ne(B){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new A,this._isOpen=!1,this.undoRedoManager=new ie,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 Ue,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=ne.instanceCounter++,this.styles=new m(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=B,this.targetRoot=document.body,this.width=B.clientWidth,this.height=B.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(ne.prototype,"ALL_MARKER_TYPES",{get:function(){return[x,S,D,O,Q,Y,F,j,W,P,f,Ee]},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[x,S,D,O,Y,F,j]},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"BASIC_MARKER_TYPES",{get:function(){return[x,S,D,O,F]},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(B){var z=this;this._availableMarkerTypes.splice(0),B.forEach(function(H){if(typeof H=="string"){var ee=z.ALL_MARKER_TYPES.find(function(X){return X.typeName===H});ee!==void 0&&z._availableMarkerTypes.push(ee)}else z._availableMarkerTypes.push(H)})},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(B){this._zoomLevel=B,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(ne.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),ne.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),M.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},ne.prototype.show=function(){var B=this;this.styles.styleSheetRoot===void 0&&e.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=e.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(z){return z(new pe(B))})},ne.prototype.render=function(){return L(this,void 0,void 0,function(){var B;return N(this,function(z){switch(z.label){case 0:return this.setCurrentMarker(),(B=new g).naturalSize=this.renderAtNaturalSize,B.imageType=this.renderImageType,B.imageQuality=this.renderImageQuality,B.markersOnly=this.renderMarkersOnly,B.width=this.renderWidth,B.height=this.renderHeight,[4,B.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return z.sent(),[4,B.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,z.sent()]}})})},ne.prototype.close=function(B){var z=this;if(B===void 0&&(B=!1),this.isOpen){var H=!1;B||this.eventListeners.beforeclose.forEach(function(ee){var X=new pe(z,!0);ee(X),X.defaultPrevented&&(H=!0)}),H||(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(ee){return ee(new pe(z))}),this.detachEvents(),this._isOpen=!1)}},ne.prototype.addMarkersToToolbar=function(){for(var B,z=[],H=0;H<arguments.length;H++)z[H]=arguments[H];(B=this._availableMarkerTypes).push.apply(B,z)},ne.prototype.addRenderEventListener=function(B){this.addEventListener("render",function(z){B(z.dataUrl,z.state)})},ne.prototype.removeRenderEventListener=function(B){},ne.prototype.addCloseEventListener=function(B){this.addEventListener("close",function(){B()})},ne.prototype.removeCloseEventListener=function(B){},ne.prototype.setupResizeObserver=function(){var B=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){B.resize(B.target.clientWidth,B.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return B.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},ne.prototype.onPopupTargetResize=function(){var B=1*this.target.clientWidth/this.target.clientHeight,z=this.editorCanvas.clientWidth/B>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*B:this.editorCanvas.clientWidth,H=z<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/B;this.resize(z,H)},ne.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},ne.prototype.resize=function(B,z){this._isResizing=!0;var H=B/this.imageWidth,ee=z/this.imageHeight;this.imageWidth=Math.round(B),this.imageHeight=Math.round(z),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(H,ee),this._isResizing=!1},ne.prototype.scaleMarkers=function(B,z){var H,ee=this;this._currentMarker&&this._currentMarker instanceof O?this._currentMarker.scale(B,z):(H=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(X){X!==ee._currentMarker&&X.scale(B,z)}),H!==void 0&&this.setCurrentMarker(H)},ne.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"},ne.prototype.setTopLeft=function(){var B=this.editingTarget.getBoundingClientRect(),z=this.editorCanvas.getBoundingClientRect();this.left=B.left-z.left,this.top=B.top-z.top},ne.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)},ne.prototype.addDefs=function(){for(var B,z=[],H=0;H<arguments.length;H++)z[H]=arguments[H];this.defs=u.createDefs(),this.addDefsToImage(),(B=this.defs).append.apply(B,z)},ne.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},ne.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)},ne.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},ne.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},ne.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)},ne.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},ne.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)},ne.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 B=document.createElement("a");B.href="https://markerjs.com/",B.target="_blank",B.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>',B.title="Powered by marker.js",B.style.display="grid",B.style.alignItems="center",B.style.justifyItems="center",B.style.padding="3px",B.style.width="20px",B.style.height="20px",this.logoUI.appendChild(B),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},ne.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")},ne.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"},ne.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},ne.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 B=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=B+"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 a(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 l(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},ne.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},ne.prototype.removeMarker=function(B){this.markerImage.removeChild(B.container),this.markers.indexOf(B)>-1&&this.markers.splice(this.markers.indexOf(B),1),B.dispose()},ne.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())},ne.prototype.toolbarButtonClicked=function(B,z){if(B==="marker"&&z!==void 0)this.createNewMarker(z);else if(B==="action")switch(z){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()}},ne.prototype.deleteSelectedMarker=function(){var B=this;if(this._currentMarker!==void 0){var z=!1;if(this.eventListeners.markerbeforedelete.forEach(function(ee){var X=new Me(B,B._currentMarker,!0);ee(X),X.defaultPrevented&&(z=!0)}),!z){var H=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(ee){return ee(new Me(B,H))})}}},ne.prototype.clear=function(){var B=this,z=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(me){var je=new Me(B,void 0,!0);me(je),je.defaultPrevented&&(z=!0)}),!z)){this.setCurrentMarker();for(var H=function(me){var je=ee.markers[me];ee.setCurrentMarker(ee.markers[me]),ee._currentMarker.dispose(),ee.markerImage.removeChild(ee._currentMarker.container),ee.markers.splice(ee.markers.indexOf(ee._currentMarker),1),ee.eventListeners.markerdelete.forEach(function(Je){return Je(new Me(B,je))})},ee=this,X=this.markers.length-1;X>=0;X--)H(X);this.addUndoStep()}},Object.defineProperty(ne.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),ne.prototype.showNotesEditor=function(){var B;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=(B=this._currentMarker.notes)!==null&&B!==void 0?B:"",this.overlayContainer.appendChild(this.notesArea))},ne.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)},ne.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},ne.prototype.addUndoStep=function(){var B=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var z=this.getState(),H=this.undoRedoManager.getLastUndoStep();if(!H||H.width===z.width&&H.height===z.height){var ee=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(z),ee<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(X){return X(new pe(B))})}else this.undoRedoManager.replaceLastUndoStep(z),this.eventListeners.statechange.forEach(function(X){return X(new pe(B))})}},ne.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},ne.prototype.undoStep=function(){var B=this,z=this.undoRedoManager.undo();z!==void 0&&(this.restoreState(z),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(H){return H(new pe(B))}))},ne.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},ne.prototype.redoStep=function(){var B=this,z=this.undoRedoManager.redo();z!==void 0&&(this.restoreState(z),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(H){return H(new pe(B))}))},ne.prototype.stepZoom=function(){var B=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=B<this.zoomSteps.length-1?this.zoomSteps[B+1]:this.zoomSteps[0]},ne.prototype.panTo=function(B){this.contentDiv.scrollBy({left:this.prevPanPoint.x-B.x,top:this.prevPanPoint.y-B.y}),this.prevPanPoint=B},ne.prototype.startRenderAndClose=function(){return L(this,void 0,void 0,function(){var B,z,H=this;return N(this,function(ee){switch(ee.label){case 0:return[4,this.render()];case 1:return B=ee.sent(),z=this.getState(),this.eventListeners.render.forEach(function(X){return X(new De(H,B,z))}),this.close(!0),[2]}})})},ne.prototype.getState=function(B){B===!0&&this.setCurrentMarker();var z={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(H){return z.markers.push(H.getState())}),z},ne.prototype.restoreState=function(B){var z=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);B.markers.forEach(function(H){var ee=z._availableMarkerTypes.find(function(me){return me.typeName===H.typeName});if(ee!==void 0){var X=z.addNewMarker(ee);X.restoreState(H),z.markers.push(X)}}),B.width&&B.height&&(B.width!==this.imageWidth||B.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/B.width,this.imageHeight/B.height),this.eventListeners.restorestate.forEach(function(H){return H(new pe(z))})},ne.prototype.addNewMarker=function(B){var z=u.createGroup();return this.markerImage.appendChild(z),new B(z,this.overlayContainer,this.settings)},ne.prototype.createNewMarker=function(B){var z,H=this;(z=typeof B=="string"?this._availableMarkerTypes.find(function(ee){return ee.typeName===B}):B)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(z),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(z.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(ee){return ee(new Me(H,H._currentMarker))}))},ne.prototype.markerCreated=function(B){var z=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(B),this.setCurrentMarker(B),B instanceof S&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(S):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(H){return H(new Me(z,z._currentMarker))})},ne.prototype.colorChanged=function(B){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=B,this.settings.defaultStrokeColor=B)},ne.prototype.fillColorChanged=function(B){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=B)},ne.prototype.markerStateChanged=function(B){var z=this;this.eventListeners.markerchange.forEach(function(H){return H(new Me(z,B))})},ne.prototype.setCurrentMarker=function(B){var z=this;this._currentMarker!==B&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(H){return H(new Me(z,z._currentMarker))})),this._currentMarker=B,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(H){return H(new Me(z,z._currentMarker))}))},ne.prototype.onPointerDown=function(B){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||B.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var z=this.markers.find(function(H){return H.ownsTarget(B.target)});z!==void 0?(this.setCurrentMarker(z),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(B.clientX,B.clientY),B.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:B.clientX,y:B.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(B.clientX,B.clientY))},ne.prototype.onDblClick=function(B){if(this._isFocused||this.focus(),this.mode==="select"){var z=this.markers.find(function(H){return H.ownsTarget(B.target)});z!==void 0&&z!==this._currentMarker&&this.setCurrentMarker(z),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(B.clientX,B.clientY),B.target):this.setCurrentMarker()}},ne.prototype.onPointerMove=function(B){this.touchPoints!==1&&B.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||B.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(B.clientX,B.clientY)):this.zoomLevel>1&&this.panTo({x:B.clientX,y:B.clientY}))},ne.prototype.onPointerUp=function(B){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(B.clientX,B.clientY)),this.isDragging=!1,this.addUndoStep()},ne.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},ne.prototype.onKeyUp=function(B){this._currentMarker===void 0||this.notesArea!==void 0||B.key!=="Delete"&&B.key!=="Backspace"||this.deleteSelectedMarker()},ne.prototype.clientToLocalCoordinates=function(B,z){var H=this.markerImage.getBoundingClientRect();return{x:(B-H.left)/this.zoomLevel,y:(z-H.top)/this.zoomLevel}},ne.prototype.onWindowResize=function(){this.positionUI()},ne.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var B=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=B+"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()},ne.prototype.addLicenseKey=function(B){M.addKey(B)},ne.prototype.addEventListener=function(B,z){this.eventListeners.addEventListener(B,z)},ne.prototype.removeEventListener=function(B,z){this.eventListeners.removeEventListener(B,z)},ne.prototype.renderState=function(B){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(B),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(ne.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),ne.prototype.focus=function(){var B=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(z){return z(new pe(B))}))},ne.prototype.blur=function(){var B=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(z){return z(new pe(B))}))},ne.instanceCounter=0,ne}()},SUKs:function(ge,q,_){var Z=_("LPTA"),U=Z.debugMode,L=function(){};U===1&&(L=console.error);var N=L;ge.exports=N},Sj9i:function(ge,q,_){var Z=_("QBsz"),U=Z.create,L=Z.distSquare,N=Math.pow,c=Math.sqrt,u=1e-8,M=1e-4,g=c(3),e=1/3,m=U(),r=U(),h=U();function a(o){return o>-u&&o<u}function l(o){return o>u||o<-u}function d(o,f,E,O,S){var b=1-S;return b*b*(b*o+3*S*f)+S*S*(S*O+3*b*E)}function y(o,f,E,O,S){var b=1-S;return 3*(((f-o)*b+2*(E-f)*S)*b+(O-E)*S*S)}function s(o,f,E,O,S,b){var D=O+3*(f-E)-o,P=3*(E-f*2+o),I=3*(f-o),F=o-S,K=P*P-3*D*I,j=P*I-9*D*F,Y=I*I-3*P*F,W=0;if(a(K)&&a(j))if(a(P))b[0]=0;else{var Q=-I/P;Q>=0&&Q<=1&&(b[W++]=Q)}else{var ie=j*j-4*K*Y;if(a(ie)){var Ee=j/K,Q=-P/D+Ee,pe=-Ee/2;Q>=0&&Q<=1&&(b[W++]=Q),pe>=0&&pe<=1&&(b[W++]=pe)}else if(ie>0){var De=c(ie),Me=K*P+1.5*D*(-j+De),Ue=K*P+1.5*D*(-j-De);Me<0?Me=-N(-Me,e):Me=N(Me,e),Ue<0?Ue=-N(-Ue,e):Ue=N(Ue,e);var Q=(-P-(Me+Ue))/(3*D);Q>=0&&Q<=1&&(b[W++]=Q)}else{var Ie=(2*K*P-3*D*j)/(2*c(K*K*K)),ne=Math.acos(Ie)/3,B=c(K),z=Math.cos(ne),Q=(-P-2*B*z)/(3*D),pe=(-P+B*(z+g*Math.sin(ne)))/(3*D),H=(-P+B*(z-g*Math.sin(ne)))/(3*D);Q>=0&&Q<=1&&(b[W++]=Q),pe>=0&&pe<=1&&(b[W++]=pe),H>=0&&H<=1&&(b[W++]=H)}}return W}function p(o,f,E,O,S){var b=6*E-12*f+6*o,D=9*f+3*O-3*o-9*E,P=3*f-3*o,I=0;if(a(D)){if(l(b)){var F=-P/b;F>=0&&F<=1&&(S[I++]=F)}}else{var K=b*b-4*D*P;if(a(K))S[0]=-b/(2*D);else if(K>0){var j=c(K),F=(-b+j)/(2*D),Y=(-b-j)/(2*D);F>=0&&F<=1&&(S[I++]=F),Y>=0&&Y<=1&&(S[I++]=Y)}}return I}function n(o,f,E,O,S,b){var D=(f-o)*S+o,P=(E-f)*S+f,I=(O-E)*S+E,F=(P-D)*S+D,K=(I-P)*S+P,j=(K-F)*S+F;b[0]=o,b[1]=D,b[2]=F,b[3]=j,b[4]=j,b[5]=K,b[6]=I,b[7]=O}function i(o,f,E,O,S,b,D,P,I,F,K){var j,Y=.005,W=Infinity,Q,ie,Ee,pe;m[0]=I,m[1]=F;for(var De=0;De<1;De+=.05)r[0]=d(o,E,S,D,De),r[1]=d(f,O,b,P,De),Ee=L(m,r),Ee<W&&(j=De,W=Ee);W=Infinity;for(var Me=0;Me<32&&!(Y<M);Me++)Q=j-Y,ie=j+Y,r[0]=d(o,E,S,D,Q),r[1]=d(f,O,b,P,Q),Ee=L(r,m),Q>=0&&Ee<W?(j=Q,W=Ee):(h[0]=d(o,E,S,D,ie),h[1]=d(f,O,b,P,ie),pe=L(h,m),ie<=1&&pe<W?(j=ie,W=pe):Y*=.5);return K&&(K[0]=d(o,E,S,D,j),K[1]=d(f,O,b,P,j)),c(W)}function v(o,f,E,O){var S=1-O;return S*(S*o+2*O*f)+O*O*E}function C(o,f,E,O){return 2*((1-O)*(f-o)+O*(E-f))}function R(o,f,E,O,S){var b=o-2*f+E,D=2*(f-o),P=o-O,I=0;if(a(b)){if(l(D)){var F=-P/D;F>=0&&F<=1&&(S[I++]=F)}}else{var K=D*D-4*b*P;if(a(K)){var F=-D/(2*b);F>=0&&F<=1&&(S[I++]=F)}else if(K>0){var j=c(K),F=(-D+j)/(2*b),Y=(-D-j)/(2*b);F>=0&&F<=1&&(S[I++]=F),Y>=0&&Y<=1&&(S[I++]=Y)}}return I}function w(o,f,E){var O=o+E-2*f;return O===0?.5:(o-f)/O}function x(o,f,E,O,S){var b=(f-o)*O+o,D=(E-f)*O+f,P=(D-b)*O+b;S[0]=o,S[1]=b,S[2]=P,S[3]=P,S[4]=D,S[5]=E}function A(o,f,E,O,S,b,D,P,I){var F,K=.005,j=Infinity;m[0]=D,m[1]=P;for(var Y=0;Y<1;Y+=.05){r[0]=v(o,E,S,Y),r[1]=v(f,O,b,Y);var W=L(m,r);W<j&&(F=Y,j=W)}j=Infinity;for(var Q=0;Q<32&&!(K<M);Q++){var ie=F-K,Ee=F+K;r[0]=v(o,E,S,ie),r[1]=v(f,O,b,ie);var W=L(r,m);if(ie>=0&&W<j)F=ie,j=W;else{h[0]=v(o,E,S,Ee),h[1]=v(f,O,b,Ee);var pe=L(h,m);Ee<=1&&pe<j?(F=Ee,j=pe):K*=.5}}return I&&(I[0]=v(o,E,S,F),I[1]=v(f,O,b,F)),c(j)}q.cubicAt=d,q.cubicDerivativeAt=y,q.cubicRootAt=s,q.cubicExtrema=p,q.cubicSubdivide=n,q.cubicProjectPoint=i,q.quadraticAt=v,q.quadraticDerivativeAt=C,q.quadraticRootAt=R,q.quadraticExtremum=w,q.quadraticSubdivide=x,q.quadraticProjectPoint=A},SqI9:function(ge,q,_){var Z=_("y+Vt"),U=_("iXp4"),L=Z.extend({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:Math.PI*2,clockwise:!0},brush:U(Z.prototype.brush),buildPath:function(N,c){var u=c.cx,M=c.cy,g=Math.max(c.r0||0,0),e=Math.max(c.r,0),m=c.startAngle,r=c.endAngle,h=c.clockwise,a=Math.cos(m),l=Math.sin(m);N.moveTo(a*g+u,l*g+M),N.lineTo(a*e+u,l*e+M),N.arc(u,M,e,m,r,!h),N.lineTo(Math.cos(r)*g+u,Math.sin(r)*g+M),g!==0&&N.arc(u,M,g,r,m,h),N.closePath()}});ge.exports=L},SrGk:function(ge,q,_){var Z=_("hydK"),U=Z.createElement,L=_("bYtY"),N=_("y+Vt"),c=_("Dagg"),u=_("dqUG"),M=_("P47w"),g=M.path,e=M.image,m=M.text,r="0",h="1";function a(d,y,s,p,n){this._zrId=d,this._svgRoot=y,this._tagNames=typeof s=="string"?[s]:s,this._markLabel=p,this._domName=n||"_dom",this.nextId=0}a.prototype.createElement=U,a.prototype.getDefs=function(d){var y=this._svgRoot,s=this._svgRoot.getElementsByTagName("defs");return s.length===0?d?(s=y.insertBefore(this.createElement("defs"),y.firstChild),s.contains||(s.contains=function(p){var n=s.children;if(!n)return!1;for(var i=n.length-1;i>=0;--i)if(n[i]===p)return!0;return!1}),s):null:s[0]},a.prototype.update=function(d,y){if(!d)return;var s=this.getDefs(!1);if(d[this._domName]&&s.contains(d[this._domName]))typeof y=="function"&&y(d);else{var p=this.add(d);p&&(d[this._domName]=p)}},a.prototype.addDom=function(d){var y=this.getDefs(!0);y.appendChild(d)},a.prototype.removeDom=function(d){var y=this.getDefs(!1);y&&d[this._domName]&&(y.removeChild(d[this._domName]),d[this._domName]=null)},a.prototype.getDoms=function(){var d=this.getDefs(!1);if(!d)return[];var y=[];return L.each(this._tagNames,function(s){var p=d.getElementsByTagName(s);y=y.concat([].slice.call(p))}),y},a.prototype.markAllUnused=function(){var d=this.getDoms(),y=this;L.each(d,function(s){s[y._markLabel]=r})},a.prototype.markUsed=function(d){d&&(d[this._markLabel]=h)},a.prototype.removeUnused=function(){var d=this.getDefs(!1);if(!d)return;var y=this.getDoms(),s=this;L.each(y,function(p){p[s._markLabel]!==h&&d.removeChild(p)})},a.prototype.getSvgProxy=function(d){return d instanceof N?g:d instanceof c?e:d instanceof u?m:g},a.prototype.getTextSvgElement=function(d){return d.__textSvgEl},a.prototype.getSvgElement=function(d){return d.__svgEl};var l=a;ge.exports=l},T6xi:function(ge,q,_){var Z=_("YgsL"),U=_("nCxF");function L(N,c,u){var M=c.points,g=c.smooth;if(M&&M.length>=2){if(g&&g!=="spline"){var e=U(M,g,u,c.smoothConstraint);N.moveTo(M[0][0],M[0][1]);for(var m=M.length,r=0;r<(u?m:m-1);r++){var h=e[r*2],a=e[r*2+1],l=M[(r+1)%m];N.bezierCurveTo(h[0],h[1],a[0],a[1],l[0],l[1])}}else{g==="spline"&&(M=Z(M,u)),N.moveTo(M[0][0],M[0][1]);for(var r=1,d=M.length;r<d;r++)N.lineTo(M[r][0],M[r][1])}u&&N.closePath()}}q.buildPath=L},T8No:function(ge,q,_){"use strict";_.d(q,"a",function(){return M}),_.d(q,"e",function(){return g}),_.d(q,"c",function(){return f}),_.d(q,"b",function(){return E}),_.d(q,"d",function(){return O}),_.d(q,"f",function(){return D});var Z=_("MNsG"),U=_("N0LK"),L=_("Cg/j");let N=Z.k||"";const c=new Map;c.set("false",!1),c.set("true",!0),c.set("isMac",Z.f),c.set("isLinux",Z.d),c.set("isWindows",Z.i),c.set("isWeb",Z.h),c.set("isMacNative",Z.f&&!Z.h),c.set("isEdge",N.indexOf("Edg/")>=0),c.set("isFirefox",N.indexOf("Firefox")>=0),c.set("isChrome",N.indexOf("Chrome")>=0),c.set("isSafari",N.indexOf("Safari")>=0);const u=Object.prototype.hasOwnProperty;class M{static has(I){return h.create(I)}static equals(I,F){return a.create(I,F)}static regex(I,F){return R.create(I,F)}static not(I){return s.create(I)}static and(...I){return A.create(I,null)}static or(...I){return o.create(I,null,!0)}static deserialize(I,F=!1){return I?this._deserializeOrExpression(I,F):void 0}static _deserializeOrExpression(I,F){let K=I.split("||");return o.create(K.map(j=>this._deserializeAndExpression(j,F)),null,!0)}static _deserializeAndExpression(I,F){let K=I.split("&&");return A.create(K.map(j=>this._deserializeOne(j,F)),null)}static _deserializeOne(I,F){if(I=I.trim(),I.indexOf("!=")>=0){let K=I.split("!=");return y.create(K[0].trim(),this._deserializeValue(K[1],F))}if(I.indexOf("==")>=0){let K=I.split("==");return a.create(K[0].trim(),this._deserializeValue(K[1],F))}if(I.indexOf("=~")>=0){let K=I.split("=~");return R.create(K[0].trim(),this._deserializeRegexValue(K[1],F))}if(I.indexOf(" in ")>=0){let K=I.split(" in ");return l.create(K[0].trim(),K[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(I)){const K=I.split(">=");return i.create(K[0].trim(),K[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(I)){const K=I.split(">");return n.create(K[0].trim(),K[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(I)){const K=I.split("<=");return C.create(K[0].trim(),K[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(I)){const K=I.split("<");return v.create(K[0].trim(),K[1].trim())}return/^\!\s*/.test(I)?s.create(I.substr(1).trim()):h.create(I)}static _deserializeValue(I,F){if(I=I.trim(),I==="true")return!0;if(I==="false")return!1;let K=/^'([^']*)'$/.exec(I);return K?K[1].trim():I}static _deserializeRegexValue(I,F){if(Object(U.C)(I)){if(F)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let K=I.indexOf("/"),j=I.lastIndexOf("/");if(K===j||K<0){if(F)throw new Error(`bad regexp-value '${I}', missing /-enclosure`);return console.warn(`bad regexp-value '${I}', missing /-enclosure`),null}let Y=I.slice(K+1,j),W=I[j+1]==="i"?"i":"";try{return new RegExp(Y,W)}catch(Q){if(F)throw new Error(`bad regexp-value '${I}', parse error: ${Q}`);return console.warn(`bad regexp-value '${I}', parse error: ${Q}`),null}}}function g(I,F){const K=I?I.substituteConstants():void 0,j=F?F.substituteConstants():void 0;return!K&&!j?!0:!K||!j?!1:K.equals(j)}function e(I,F){return I.cmp(F)}class m{constructor(){this.type=0}cmp(I){return this.type-I.type}equals(I){return I.type===this.type}substituteConstants(){return this}evaluate(I){return!1}serialize(){return"false"}keys(){return[]}negate(){return r.INSTANCE}}m.INSTANCE=new m;class r{constructor(){this.type=1}cmp(I){return this.type-I.type}equals(I){return I.type===this.type}substituteConstants(){return this}evaluate(I){return!0}serialize(){return"true"}keys(){return[]}negate(){return m.INSTANCE}}r.INSTANCE=new r;class h{constructor(I,F){this.key=I,this.negated=F,this.type=2}static create(I,F=null){const K=c.get(I);return typeof K=="boolean"?K?r.INSTANCE:m.INSTANCE:new h(I,F)}cmp(I){return I.type!==this.type?this.type-I.type:S(this.key,I.key)}equals(I){return I.type===this.type?this.key===I.key:!1}substituteConstants(){const I=c.get(this.key);return typeof I=="boolean"?I?r.INSTANCE:m.INSTANCE:this}evaluate(I){return!!I.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=s.create(this.key,this)),this.negated}}class a{constructor(I,F,K){this.key=I,this.value=F,this.negated=K,this.type=4}static create(I,F,K=null){if(typeof F=="boolean")return F?h.create(I,K):s.create(I,K);const j=c.get(I);if(typeof j=="boolean"){const Y=j?"true":"false";return F===Y?r.INSTANCE:m.INSTANCE}return new a(I,F,K)}cmp(I){return I.type!==this.type?this.type-I.type:b(this.key,this.value,I.key,I.value)}equals(I){return I.type===this.type?this.key===I.key&&this.value===I.value:!1}substituteConstants(){const I=c.get(this.key);if(typeof I=="boolean"){const F=I?"true":"false";return this.value===F?r.INSTANCE:m.INSTANCE}return this}evaluate(I){return I.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=y.create(this.key,this.value,this)),this.negated}}class l{constructor(I,F){this.key=I,this.valueKey=F,this.type=10,this.negated=null}static create(I,F){return new l(I,F)}cmp(I){return I.type!==this.type?this.type-I.type:b(this.key,this.valueKey,I.key,I.valueKey)}equals(I){return I.type===this.type?this.key===I.key&&this.valueKey===I.valueKey:!1}substituteConstants(){return this}evaluate(I){const F=I.getValue(this.valueKey),K=I.getValue(this.key);return Array.isArray(F)?F.indexOf(K)>=0:typeof K=="string"&&typeof F=="object"&&F!==null?u.call(F,K):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=d.create(this)),this.negated}}class d{constructor(I){this._actual=I,this.type=11}static create(I){return new d(I)}cmp(I){return I.type!==this.type?this.type-I.type:this._actual.cmp(I._actual)}equals(I){return I.type===this.type?this._actual.equals(I._actual):!1}substituteConstants(){return this}evaluate(I){return!this._actual.evaluate(I)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class y{constructor(I,F,K){this.key=I,this.value=F,this.negated=K,this.type=5}static create(I,F,K=null){if(typeof F=="boolean")return F?s.create(I,K):h.create(I,K);const j=c.get(I);if(typeof j=="boolean"){const Y=j?"true":"false";return F===Y?m.INSTANCE:r.INSTANCE}return new y(I,F,K)}cmp(I){return I.type!==this.type?this.type-I.type:b(this.key,this.value,I.key,I.value)}equals(I){return I.type===this.type?this.key===I.key&&this.value===I.value:!1}substituteConstants(){const I=c.get(this.key);if(typeof I=="boolean"){const F=I?"true":"false";return this.value===F?m.INSTANCE:r.INSTANCE}return this}evaluate(I){return I.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=a.create(this.key,this.value,this)),this.negated}}class s{constructor(I,F){this.key=I,this.negated=F,this.type=3}static create(I,F=null){const K=c.get(I);return typeof K=="boolean"?K?m.INSTANCE:r.INSTANCE:new s(I,F)}cmp(I){return I.type!==this.type?this.type-I.type:S(this.key,I.key)}equals(I){return I.type===this.type?this.key===I.key:!1}substituteConstants(){const I=c.get(this.key);return typeof I=="boolean"?I?m.INSTANCE:r.INSTANCE:this}evaluate(I){return!I.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=h.create(this.key,this)),this.negated}}function p(I,F){if(typeof I=="string"){const K=parseFloat(I);isNaN(K)||(I=K)}return typeof I=="string"||typeof I=="number"?F(I):m.INSTANCE}class n{constructor(I,F,K){this.key=I,this.value=F,this.negated=K,this.type=12}static create(I,F,K=null){return p(F,j=>new n(I,j,K))}cmp(I){return I.type!==this.type?this.type-I.type:b(this.key,this.value,I.key,I.value)}equals(I){return I.type===this.type?this.key===I.key&&this.value===I.value:!1}substituteConstants(){return this}evaluate(I){return typeof this.value=="string"?!1:parseFloat(I.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 i{constructor(I,F,K){this.key=I,this.value=F,this.negated=K,this.type=13}static create(I,F,K=null){return p(F,j=>new i(I,j,K))}cmp(I){return I.type!==this.type?this.type-I.type:b(this.key,this.value,I.key,I.value)}equals(I){return I.type===this.type?this.key===I.key&&this.value===I.value:!1}substituteConstants(){return this}evaluate(I){return typeof this.value=="string"?!1:parseFloat(I.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=v.create(this.key,this.value,this)),this.negated}}class v{constructor(I,F,K){this.key=I,this.value=F,this.negated=K,this.type=14}static create(I,F,K=null){return p(F,j=>new v(I,j,K))}cmp(I){return I.type!==this.type?this.type-I.type:b(this.key,this.value,I.key,I.value)}equals(I){return I.type===this.type?this.key===I.key&&this.value===I.value:!1}substituteConstants(){return this}evaluate(I){return typeof this.value=="string"?!1:parseFloat(I.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=i.create(this.key,this.value,this)),this.negated}}class C{constructor(I,F,K){this.key=I,this.value=F,this.negated=K,this.type=15}static create(I,F,K=null){return p(F,j=>new C(I,j,K))}cmp(I){return I.type!==this.type?this.type-I.type:b(this.key,this.value,I.key,I.value)}equals(I){return I.type===this.type?this.key===I.key&&this.value===I.value:!1}substituteConstants(){return this}evaluate(I){return typeof this.value=="string"?!1:parseFloat(I.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 R{constructor(I,F){this.key=I,this.regexp=F,this.type=7,this.negated=null}static create(I,F){return new R(I,F)}cmp(I){if(I.type!==this.type)return this.type-I.type;if(this.key<I.key)return-1;if(this.key>I.key)return 1;const F=this.regexp?this.regexp.source:"",K=I.regexp?I.regexp.source:"";return F<K?-1:F>K?1:0}equals(I){if(I.type===this.type){const F=this.regexp?this.regexp.source:"",K=I.regexp?I.regexp.source:"";return this.key===I.key&&F===K}return!1}substituteConstants(){return this}evaluate(I){let F=I.getValue(this.key);return this.regexp?this.regexp.test(F):!1}serialize(){const I=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${I}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=w.create(this)),this.negated}}class w{constructor(I){this._actual=I,this.type=8}static create(I){return new w(I)}cmp(I){return I.type!==this.type?this.type-I.type:this._actual.cmp(I._actual)}equals(I){return I.type===this.type?this._actual.equals(I._actual):!1}substituteConstants(){return this}evaluate(I){return!this._actual.evaluate(I)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function x(I){let F=null;for(let K=0,j=I.length;K<j;K++){const Y=I[K].substituteConstants();if(I[K]!==Y&&F===null){F=[];for(let W=0;W<K;W++)F[W]=I[W]}F!==null&&(F[K]=Y)}return F===null?I:F}class A{constructor(I,F){this.expr=I,this.negated=F,this.type=6}static create(I,F){return A._normalizeArr(I,F)}cmp(I){if(I.type!==this.type)return this.type-I.type;if(this.expr.length<I.expr.length)return-1;if(this.expr.length>I.expr.length)return 1;for(let F=0,K=this.expr.length;F<K;F++){const j=e(this.expr[F],I.expr[F]);if(j!==0)return j}return 0}equals(I){if(I.type===this.type){if(this.expr.length!==I.expr.length)return!1;for(let F=0,K=this.expr.length;F<K;F++)if(!this.expr[F].equals(I.expr[F]))return!1;return!0}return!1}substituteConstants(){const I=x(this.expr);return I===this.expr?this:A.create(I,this.negated)}evaluate(I){for(let F=0,K=this.expr.length;F<K;F++)if(!this.expr[F].evaluate(I))return!1;return!0}static _normalizeArr(I,F){const K=[];let j=!1;for(const Y of I){if(!Y)continue;if(Y.type===1){j=!0;continue}if(Y.type===0)return m.INSTANCE;if(Y.type===6){K.push(...Y.expr);continue}K.push(Y)}if(K.length===0&&j)return r.INSTANCE;if(K.length===0)return;if(K.length===1)return K[0];K.sort(e);for(let Y=1;Y<K.length;Y++)K[Y-1].equals(K[Y])&&(K.splice(Y,1),Y--);if(K.length===1)return K[0];for(;K.length>1;){const Y=K[K.length-1];if(Y.type!==9)break;K.pop();const W=K.pop(),Q=K.length===0,ie=o.create(Y.expr.map(Ee=>A.create([Ee,W],null)),null,Q);ie&&(K.push(ie),K.sort(e))}return K.length===1?K[0]:new A(K,F)}serialize(){return this.expr.map(I=>I.serialize()).join(" && ")}keys(){const I=[];for(let F of this.expr)I.push(...F.keys());return I}negate(){if(!this.negated){const I=[];for(let F of this.expr)I.push(F.negate());this.negated=o.create(I,this,!0)}return this.negated}}class o{constructor(I,F){this.expr=I,this.negated=F,this.type=9}static create(I,F,K){return o._normalizeArr(I,F,K)}cmp(I){if(I.type!==this.type)return this.type-I.type;if(this.expr.length<I.expr.length)return-1;if(this.expr.length>I.expr.length)return 1;for(let F=0,K=this.expr.length;F<K;F++){const j=e(this.expr[F],I.expr[F]);if(j!==0)return j}return 0}equals(I){if(I.type===this.type){if(this.expr.length!==I.expr.length)return!1;for(let F=0,K=this.expr.length;F<K;F++)if(!this.expr[F].equals(I.expr[F]))return!1;return!0}return!1}substituteConstants(){const I=x(this.expr);return I===this.expr?this:o.create(I,this.negated,!1)}evaluate(I){for(let F=0,K=this.expr.length;F<K;F++)if(this.expr[F].evaluate(I))return!0;return!1}static _normalizeArr(I,F,K){let j=[],Y=!1;if(I){for(let W=0,Q=I.length;W<Q;W++){const ie=I[W];if(!ie)continue;if(ie.type===0){Y=!0;continue}if(ie.type===1)return r.INSTANCE;if(ie.type===9){j=j.concat(ie.expr);continue}j.push(ie)}if(j.length===0&&Y)return m.INSTANCE;j.sort(e)}if(j.length===0)return;if(j.length===1)return j[0];for(let W=1;W<j.length;W++)j[W-1].equals(j[W])&&(j.splice(W,1),W--);if(j.length===1)return j[0];if(K){for(let W=0;W<j.length;W++)for(let Q=W+1;Q<j.length;Q++)D(j[W],j[Q])&&(j.splice(Q,1),Q--);if(j.length===1)return j[0]}return new o(j,F)}serialize(){return this.expr.map(I=>I.serialize()).join(" || ")}keys(){const I=[];for(let F of this.expr)I.push(...F.keys());return I}negate(){if(!this.negated){let I=[];for(let F of this.expr)I.push(F.negate());for(;I.length>1;){const F=I.shift(),K=I.shift(),j=[];for(const W of P(F))for(const Q of P(K))j.push(A.create([W,Q],null));const Y=I.length===0;I.unshift(o.create(j,null,Y))}this.negated=I[0]}return this.negated}}class f extends h{constructor(I,F,K){super(I,null);this._defaultValue=F,typeof K=="object"?f._info.push(Object.assign(Object.assign({},K),{key:I})):K!==!0&&f._info.push({key:I,description:K,type:F!=null?typeof F:void 0})}static all(){return f._info.values()}bindTo(I){return I.createKey(this.key,this._defaultValue)}getValue(I){return I.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(I){return a.create(this.key,I)}}f._info=[];const E=Object(L.c)("contextKeyService"),O="setContext";function S(I,F){return I<F?-1:I>F?1:0}function b(I,F,K,j){return I<K?-1:I>K?1:F<j?-1:F>j?1:0}function D(I,F){if(F.type===6&&I.type!==9&&I.type!==6){for(const Y of F.expr)if(I.equals(Y))return!0}const K=I.negate(),j=P(K).concat(P(F));j.sort(e);for(let Y=0;Y<j.length;Y++){const W=j[Y],Q=W.negate();for(let ie=Y+1;ie<j.length;ie++){const Ee=j[ie];if(Q.equals(Ee))return!0}}return!1}function P(I){return I.type===9?I.expr:[I]}},TFmm:function(ge,q,_){ge.exports=_.p+"static/icon5.2a39309f.svg"},TGq3:function(ge,q,_){ge.exports=_.p+"static/lockclose.365036e8.svg"},TXwP:function(ge,q,_){var Z,U;(function(){var L;(function(){"use strict";var c=[,,function(e){function m(a){this.__parent=a,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=[]}m.prototype.clone_empty=function(){var a=new m(this.__parent);return a.set_indent(this.__indent_count,this.__alignment_count),a},m.prototype.item=function(a){return a<0?this.__items[this.__items.length+a]:this.__items[a]},m.prototype.has_match=function(a){for(var l=this.__items.length-1;l>=0;l--)if(this.__items[l].match(a))return!0;return!1},m.prototype.set_indent=function(a,l){this.is_empty()&&(this.__indent_count=a||0,this.__alignment_count=l||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},m.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)},m.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},m.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var a=this.__parent.current_line;return a.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),a.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),a.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,a.__items[0]===" "&&(a.__items.splice(0,1),a.__character_count-=1),!0}return!1},m.prototype.is_empty=function(){return this.__items.length===0},m.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},m.prototype.push=function(a){this.__items.push(a);var l=a.lastIndexOf(`
`);l!==-1?this.__character_count=a.length-l:this.__character_count+=a.length},m.prototype.pop=function(){var a=null;return this.is_empty()||(a=this.__items.pop(),this.__character_count-=a.length),a},m.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},m.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},m.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},m.prototype.toString=function(){var a="";return this.is_empty()?this.__parent.indent_empty_lines&&(a=this.__parent.get_indent_string(this.__indent_count)):(a=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),a+=this.__items.join("")),a};function r(a,l){this.__cache=[""],this.__indent_size=a.indent_size,this.__indent_string=a.indent_char,a.indent_with_tabs||(this.__indent_string=new Array(a.indent_size+1).join(a.indent_char)),l=l||"",a.indent_level>0&&(l=new Array(a.indent_level+1).join(this.__indent_string)),this.__base_string=l,this.__base_string_length=l.length}r.prototype.get_indent_size=function(a,l){var d=this.__base_string_length;return l=l||0,a<0&&(d=0),d+=a*this.__indent_size,d+=l,d},r.prototype.get_indent_string=function(a,l){var d=this.__base_string;return l=l||0,a<0&&(a=0,d=""),l+=a*this.__indent_size,this.__ensure_cache(l),d+=this.__cache[l],d},r.prototype.__ensure_cache=function(a){for(;a>=this.__cache.length;)this.__add_column()},r.prototype.__add_column=function(){var a=this.__cache.length,l=0,d="";this.__indent_size&&a>=this.__indent_size&&(l=Math.floor(a/this.__indent_size),a-=l*this.__indent_size,d=new Array(l+1).join(this.__indent_string)),a&&(d+=new Array(a+1).join(" ")),this.__cache.push(d)};function h(a,l){this.__indent_cache=new r(a,l),this.raw=!1,this._end_with_newline=a.end_with_newline,this.indent_size=a.indent_size,this.wrap_line_length=a.wrap_line_length,this.indent_empty_lines=a.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new m(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}h.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},h.prototype.get_line_number=function(){return this.__lines.length},h.prototype.get_indent_string=function(a,l){return this.__indent_cache.get_indent_string(a,l)},h.prototype.get_indent_size=function(a,l){return this.__indent_cache.get_indent_size(a,l)},h.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},h.prototype.add_new_line=function(a){return this.is_empty()||!a&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},h.prototype.get_code=function(a){this.trim(!0);var l=this.current_line.pop();l&&(l[l.length-1]===`
`&&(l=l.replace(/\n+$/g,"")),this.current_line.push(l)),this._end_with_newline&&this.__add_outputline();var d=this.__lines.join(`
`);return a!==`
`&&(d=d.replace(/[\n]/g,a)),d},h.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},h.prototype.set_indent=function(a,l){return a=a||0,l=l||0,this.next_line.set_indent(a,l),this.__lines.length>1?(this.current_line.set_indent(a,l),!0):(this.current_line.set_indent(),!1)},h.prototype.add_raw_token=function(a){for(var l=0;l<a.newlines;l++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(a.whitespace_before),this.current_line.push(a.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},h.prototype.add_token=function(a){this.__add_space_before_token(),this.current_line.push(a),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},h.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(" "))},h.prototype.remove_indent=function(a){for(var l=this.__lines.length;a<l;)this.__lines[a]._remove_indent(),a++;this.current_line._remove_wrap_indent()},h.prototype.trim=function(a){for(a=a===void 0?!1:a,this.current_line.trim();a&&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},h.prototype.just_added_newline=function(){return this.current_line.is_empty()},h.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},h.prototype.ensure_empty_line_above=function(a,l){for(var d=this.__lines.length-2;d>=0;){var y=this.__lines[d];if(y.is_empty())break;if(y.item(0).indexOf(a)!==0&&y.item(-1)!==l){this.__lines.splice(d+1,0,new m(this)),this.previous_line=this.__lines[this.__lines.length-2];break}d--}},e.exports.Output=h},,,,function(e){function m(a,l){this.raw_options=r(a,l),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"])}m.prototype._get_array=function(a,l){var d=this.raw_options[a],y=l||[];return typeof d=="object"?d!==null&&typeof d.concat=="function"&&(y=d.concat()):typeof d=="string"&&(y=d.split(/[^a-zA-Z0-9_\/\-]+/)),y},m.prototype._get_boolean=function(a,l){var d=this.raw_options[a],y=d===void 0?!!l:!!d;return y},m.prototype._get_characters=function(a,l){var d=this.raw_options[a],y=l||"";return typeof d=="string"&&(y=d.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),y},m.prototype._get_number=function(a,l){var d=this.raw_options[a];l=parseInt(l,10),isNaN(l)&&(l=0);var y=parseInt(d,10);return isNaN(y)&&(y=l),y},m.prototype._get_selection=function(a,l,d){var y=this._get_selection_list(a,l,d);if(y.length!==1)throw new Error("Invalid Option Value: The option '"+a+`' can only be one of the following values:
`+l+`
You passed in: '`+this.raw_options[a]+"'");return y[0]},m.prototype._get_selection_list=function(a,l,d){if(!l||l.length===0)throw new Error("Selection list cannot be empty.");if(d=d||[l[0]],!this._is_valid_selection(d,l))throw new Error("Invalid Default Value!");var y=this._get_array(a,d);if(!this._is_valid_selection(y,l))throw new Error("Invalid Option Value: The option '"+a+`' can contain only the following values:
`+l+`
You passed in: '`+this.raw_options[a]+"'");return y},m.prototype._is_valid_selection=function(a,l){return a.length&&l.length&&!a.some(function(d){return l.indexOf(d)===-1})};function r(a,l){var d={};a=h(a);var y;for(y in a)y!==l&&(d[y]=a[y]);if(l&&a[l])for(y in a[l])d[y]=a[l][y];return d}function h(a){var l={},d;for(d in a){var y=d.replace(/-/g,"_");l[y]=a[d]}return l}e.exports.Options=m,e.exports.normalizeOpts=h,e.exports.mergeOpts=r},,function(e){var m=RegExp.prototype.hasOwnProperty("sticky");function r(h){this.__input=h||"",this.__input_length=this.__input.length,this.__position=0}r.prototype.restart=function(){this.__position=0},r.prototype.back=function(){this.__position>0&&(this.__position-=1)},r.prototype.hasNext=function(){return this.__position<this.__input_length},r.prototype.next=function(){var h=null;return this.hasNext()&&(h=this.__input.charAt(this.__position),this.__position+=1),h},r.prototype.peek=function(h){var a=null;return h=h||0,h+=this.__position,h>=0&&h<this.__input_length&&(a=this.__input.charAt(h)),a},r.prototype.__match=function(h,a){h.lastIndex=a;var l=h.exec(this.__input);return l&&!(m&&h.sticky)&&(l.index!==a&&(l=null)),l},r.prototype.test=function(h,a){return a=a||0,a+=this.__position,a>=0&&a<this.__input_length?!!this.__match(h,a):!1},r.prototype.testChar=function(h,a){var l=this.peek(a);return h.lastIndex=0,l!==null&&h.test(l)},r.prototype.match=function(h){var a=this.__match(h,this.__position);return a?this.__position+=a[0].length:a=null,a},r.prototype.read=function(h,a,l){var d="",y;return h&&(y=this.match(h),y&&(d+=y[0])),a&&(y||!h)&&(d+=this.readUntil(a,l)),d},r.prototype.readUntil=function(h,a){var l="",d=this.__position;h.lastIndex=this.__position;var y=h.exec(this.__input);return y?(d=y.index,a&&(d+=y[0].length)):d=this.__input_length,l=this.__input.substring(this.__position,d),this.__position=d,l},r.prototype.readUntilAfter=function(h){return this.readUntil(h,!0)},r.prototype.get_regexp=function(h,a){var l=null,d="g";return a&&m&&(d="y"),typeof h=="string"&&h!==""?l=new RegExp(h,d):h&&(l=new RegExp(h.source,d)),l},r.prototype.get_literal_regexp=function(h){return RegExp(h.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},r.prototype.peekUntilAfter=function(h){var a=this.__position,l=this.readUntilAfter(h);return this.__position=a,l},r.prototype.lookBack=function(h){var a=this.__position-1;return a>=h.length&&this.__input.substring(a-h.length,a).toLowerCase()===h},e.exports.InputScanner=r},,,,,function(e){function m(r,h){r=typeof r=="string"?r:r.source,h=typeof h=="string"?h:h.source,this.__directives_block_pattern=new RegExp(r+/ beautify( \w+[:]\w+)+ /.source+h,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(r+/\sbeautify\signore:end\s/.source+h,"g")}m.prototype.get_directives=function(r){if(!r.match(this.__directives_block_pattern))return null;var h={};this.__directive_pattern.lastIndex=0;for(var a=this.__directive_pattern.exec(r);a;)h[a[1]]=a[2],a=this.__directive_pattern.exec(r);return h},m.prototype.readIgnored=function(r){return r.readUntilAfter(this.__directives_end_ignore_pattern)},e.exports.Directives=m},,function(e,m,r){var h=r(16).Beautifier,a=r(17).Options;function l(d,y){var s=new h(d,y);return s.beautify()}e.exports=l,e.exports.defaultOptions=function(){return new a}},function(e,m,r){var h=r(17).Options,a=r(2).Output,l=r(8).InputScanner,d=r(13).Directives,y=new d(/\/\*/,/\*\//),s=/\r\n|[\r\n]/,p=/\r\n|[\r\n]/g,n=/\s/,i=/(?:\s|\n)+/g,v=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,C=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function R(w,x){this._source_text=w||"",this._options=new h(x),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"]}R.prototype.eatString=function(w){var x="";for(this._ch=this._input.next();this._ch;){if(x+=this._ch,this._ch==="\\")x+=this._input.next();else if(w.indexOf(this._ch)!==-1||this._ch===`
`)break;this._ch=this._input.next()}return x},R.prototype.eatWhitespace=function(w){for(var x=n.test(this._input.peek()),A=0;n.test(this._input.peek());)this._ch=this._input.next(),w&&this._ch===`
`&&((A===0||A<this._options.max_preserve_newlines)&&(A++,this._output.add_new_line(!0)));return x},R.prototype.foundNestedPseudoClass=function(){for(var w=0,x=1,A=this._input.peek(x);A;){if(A==="{")return!0;if(A==="(")w+=1;else if(A===")"){if(w===0)return!1;w-=1}else if(A===";"||A==="}")return!1;x++,A=this._input.peek(x)}return!1},R.prototype.print_string=function(w){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(w)},R.prototype.preserveSingleSpace=function(w){w&&(this._output.space_before_token=!0)},R.prototype.indent=function(){this._indentLevel++},R.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},R.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var w=this._source_text,x=this._options.eol;x==="auto"&&(x=`
`,w&&s.test(w||"")&&(x=w.match(s)[0])),w=w.replace(p,`
`);var A=w.match(/^[\t ]*/)[0];this._output=new a(this._options,A),this._input=new l(w),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var o=0,f=!1,E=!1,O=!1,S=!1,b=!1,D=!1,P=this._ch,I=!1,F,K,j;F=this._input.read(i),K=F!=="",j=P,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),P=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var Y=this._input.read(v),W=y.get_directives(Y);W&&W.ignore==="start"&&(Y+=y.readIgnored(this._input)),this.print_string(Y),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(C)),this.eatWhitespace(!0);else if(this._ch==="@"||this._ch==="$")if(this.preserveSingleSpace(K),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var Q=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);Q.match(/[ :]$/)&&(Q=this.eatString(": ").replace(/\s$/,""),this.print_string(Q),this._output.space_before_token=!0),Q=Q.replace(/\s$/,""),Q==="extend"?S=!0:Q==="import"&&(b=!0),Q in this.NESTED_AT_RULE?(this._nestedLevel+=1,Q in this.CONDITIONAL_GROUP_RULE&&(O=!0)):!f&&o===0&&Q.indexOf(":")!==-1&&(E=!0,this.indent())}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(K),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")E&&(E=!1,this.outdent()),O?(O=!1,f=this._indentLevel>=this._nestedLevel):f=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&f&&(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)):(j==="("?this._output.space_before_token=!1:j!==","&&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(),j==="{"&&this._output.trim(!0),b=!1,S=!1,E&&(this.outdent(),E=!1),this.print_string(this._ch),f=!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 ie=0;ie<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;ie++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[ie])){I=!0;break}(f||O)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!S&&o===0?(this.print_string(":"),E||(E=!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 Ee=j==='"'||j==="'";this.preserveSingleSpace(Ee||K),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")I=!1,o===0?(E&&(this.outdent(),E=!1),S=!1,b=!1,this.print_string(this._ch),this.eatWhitespace(!0),this._input.peek()!=="/"&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0);else if(this._ch==="(")if(this._input.lookBack("url"))this.print_string(this._ch),this.eatWhitespace(),o++,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(")")),o&&(o--,this.outdent()));else{var pe=!1;this._input.lookBack("with")&&(pe=!0),this.preserveSingleSpace(K||pe),this.print_string(this._ch),E&&j==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),D=!0):(this.eatWhitespace(),o++,this.indent())}else if(this._ch===")")o&&(o--,this.outdent()),D&&this._input.peek()===";"&&this._options.selector_separator_newline&&(D=!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&&(!E||D)&&o===0&&!b&&!S?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!E&&o===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(K),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 De=j==='"'||j==="'";this.preserveSingleSpace(De||K),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
`&&I&&this._output.add_new_line()}var Me=this._output.get_code(x);return Me},e.exports.Beautifier=R},function(e,m,r){var h=r(6).Options;function a(l){h.call(this,l,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var d=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||d;var y=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var s=0;s<y.length;s++)y[s]!=="expand"?this.brace_style="collapse":this.brace_style=y[s]}a.prototype=new h,e.exports.Options=a}],u={};function M(e){var m=u[e];if(m!==void 0)return m.exports;var r=u[e]={exports:{}};return c[e](r,r.exports,M),r.exports}var g=M(15);L=g})();var N=L;!(Z=[],U=function(){return{css_beautify:N}}.apply(q,Z),U!==void 0&&(ge.exports=U))})()},UfjD:function(ge,q,_){"use strict";var Z=_("2qtc"),U=_("kLXV"),L=_("5NDa"),N=_("5rEg"),c=_("miYZ"),u=_("tsqr"),M=_("tJVT"),g=_("q1tI"),e=_.n(g),m=_("4i/N");function r(h){var a=h.isjoin,l=h.setJoin,d=h.JoinTeams,y=Object(g.useState)(""),s=Object(M.a)(y,2),p=s[0],n=s[1];return e.a.createElement(U.a,{centered:!0,title:e.a.createElement("div",{style:{alignItems:"center",display:"flex"}},e.a.createElement("div",{style:{textAlign:"left",flex:"1"}},"\u52A0\u5165\u6218\u961F"),e.a.createElement(m.a,{onClick:function(){return l(!1)},style:{cursor:"porint"}})),visible:a,closable:!1,destroyOnClose:!0,onOk:function(){if(!p){u.b.info("\u9080\u8BF7\u7801\u4E0D\u80FD\u4E3A\u7A7A");return}d(p)},onCancel:function(){return l(!1)}},e.a.createElement("div",null,e.a.createElement("p",{style:{marginTop:"15px",marginLeft:"15px",display:"flex",alignItems:"center"}},e.a.createElement("span",{style:{flex:"none"}},"\u9080\u8BF7\u7801\uFF1A")," ",e.a.createElement(N.a,{placeholder:"\u8BF7\u8F93\u5165\u9080\u8BF7\u7801",value:p,maxLength:60,addonAfter:String(p&&p.length||0)+"/60",onChange:function(v){return n(v.target.value)}}))))}q.a=r},Vhoy:function(ge,q,_){"use strict";_.d(q,"d",function(){return N}),_.d(q,"e",function(){return c}),_.d(q,"c",function(){return u}),_.d(q,"b",function(){return M}),_.d(q,"a",function(){return g});var Z=_("MI8n");class U{constructor(){this._icons=new Map,this._onDidRegister=new Z.b}add(e){const m=this._icons.get(e.id);m?e.description?m.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 L=new U,N=L;function c(e,m){return new M(e,m)}function u(e){return e?e.replace(/\$\((.*?)\)/g,(m,r)=>` ${r} `).trim():""}class M{constructor(e,m,r){this.id=e,this.definition=m,this.description=r,L.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var g;(function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9\\-]+",e.iconModifierExpression="~[A-Za-z]+";const m=new RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function r(l){if(l instanceof M)return["codicon","codicon-"+l.id];const d=m.exec(l.id);if(!d)return r(M.error);let[,y,s]=d;const p=["codicon","codicon-"+y];return s&&p.push("codicon-modifier-"+s.substr(1)),p}e.asClassNameArray=r;function h(l){return r(l).join(" ")}e.asClassName=h;function a(l){return"."+r(l).join(".")}e.asCSSSelector=a})(g||(g={})),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"})}(M||(M={}))},VpOo:function(ge,q){function _(Z,U){var L=U.x,N=U.y,c=U.width,u=U.height,M=U.r,g,e,m,r;c<0&&(L=L+c,c=-c),u<0&&(N=N+u,u=-u),typeof M=="number"?g=e=m=r=M:M instanceof Array?M.length===1?g=e=m=r=M[0]:M.length===2?(g=m=M[0],e=r=M[1]):M.length===3?(g=M[0],e=r=M[1],m=M[2]):(g=M[0],e=M[1],m=M[2],r=M[3]):g=e=m=r=0;var h;g+e>c&&(h=g+e,g*=c/h,e*=c/h),m+r>c&&(h=m+r,m*=c/h,r*=c/h),e+m>u&&(h=e+m,e*=u/h,m*=u/h),g+r>u&&(h=g+r,g*=u/h,r*=u/h),Z.moveTo(L+g,N),Z.lineTo(L+c-e,N),e!==0&&Z.arc(L+c-e,N+e,e,-Math.PI/2,0),Z.lineTo(L+c,N+u-m),m!==0&&Z.arc(L+c-m,N+u-m,m,0,Math.PI/2),Z.lineTo(L+r,N+u),r!==0&&Z.arc(L+r,N+u-r,r,Math.PI/2,Math.PI),Z.lineTo(L,N+g),g!==0&&Z.arc(L+g,N+g,g,Math.PI,Math.PI*1.5)}q.buildPath=_},W6BS:function(ge,q){ge.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAVs0lEQVRoQ+2aa6xlZ3nff++677Xv+9zPHM/YHo+xwQ4E14GKKESkiFsSM8b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L+1z/bo/em6/S/84pmg89zwPrj/COd55mMDkirNWwkx3G0QsUB2/Ba57jjq0OZTxGOS46ryYJ82jApetPcTDYJ6yt4tshtVoIuUMz7NI/HqJ1SthscMfOHZy9+y62trbwPO/WbuHf3z7TmvlcLDVmMBgwHIwYjSbMJ3Nm0ZxI5p3JjHk6RkbCgVfDsgN8ArP3N5juM5jdJD26xrOjq9TzCcfzkGYYcXrrbTz6xDs5OrrMeHzIjck+2eiA65OYdrjOPace5NzOw/hO10zW5ZDm27VDUxdLnMtwOctSk+NqtYDNzU3W1tfpdbvm2pc6bgE0u7IvsRUs56M4Yj6dmfJrOhwyGE8YjkaMxkNmszlpLDGbkeUx02RAlC2Y5UeUSZ+pdYyaz1k4Y9OdhE4D5dVoB6dZWbuLlneaXm2DPC1NR5BGCbF0CWVJEAQ0GnXanTb1sE69Xmdzc4uNjQ1ardZy4+dlN3fNF6+4R/9SP5eHJ0nMYhEh8TscDun3+0aoJuMJi8WCJMnRZgRZkJOR5FMKvWBz/QyN2gqqsEjTBE1q7iU5znZsfN83i2+32zSbTXq9HisrK6yurtJoNH4ympf49rYAvhzL1b5JSZqmZqGTyZT+4Jj+cd+4+mg4Yh7F5Kk0xqK4Jb7rVP87w1KGpU6nR6vVNMAEkPzrdDqGxX/McVsAb/dBsh0mKWgxnzMajxgOhhwf9+n3j5nNZ7RbbbrdrgElYE5Aua57u4962etfNYAvx7YISJIkxrXFxdvtlnFJW+Yiy+MnecrtIn/VAN7uQl6t618D+GpZ9md139cY/FlZ+tV6zmsMvlqW/Vnd9/8CAe3hZpCQX/4AAAAASUVORK5CYII="},Xmg4:function(ge,q,_){var Z=_("bYtY"),U=_("LPTA"),L=U.devicePixelRatio,N=_("K2GJ"),c=_("3C/r");function u(){return!1}function M(m,r,h){var a=Z.createCanvas(),l=r.getWidth(),d=r.getHeight(),y=a.style;return y&&(y.position="absolute",y.left=0,y.top=0,y.width=l+"px",y.height=d+"px",a.setAttribute("data-zr-dom-id",m)),a.width=l*h,a.height=d*h,a}var g=function(m,r,h){var a;h=h||L,typeof m=="string"?a=M(m,r,h):Z.isObject(m)&&(a=m,m=a.id),this.id=m,this.dom=a;var l=a.style;l&&(a.onselectstart=u,l["-webkit-user-select"]="none",l["user-select"]="none",l["-webkit-touch-callout"]="none",l["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",l.padding=0,l.margin=0,l["border-width"]=0),this.domBack=null,this.ctxBack=null,this.painter=r,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=h};g.prototype={constructor:g,__dirty:!0,__used:!1,__drawIndex:0,__startIndex:0,__endIndex:0,incremental:!1,getElementCount:function(){return this.__endIndex-this.__startIndex},initContext:function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},createBackBuffer:function(){var m=this.dpr;this.domBack=M("back-"+this.id,this.painter,m),this.ctxBack=this.domBack.getContext("2d"),m!==1&&this.ctxBack.scale(m,m)},resize:function(m,r){var h=this.dpr,a=this.dom,l=a.style,d=this.domBack;l&&(l.width=m+"px",l.height=r+"px"),a.width=m*h,a.height=r*h,d&&(d.width=m*h,d.height=r*h,h!==1&&this.ctxBack.scale(h,h))},clear:function(m,r){var h=this.dom,a=this.ctx,l=h.width,d=h.height,r=r||this.clearColor,y=this.motionBlur&&!m,s=this.lastFrameAlpha,p=this.dpr;if(y&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(h,0,0,l/p,d/p)),a.clearRect(0,0,l,d),r&&r!=="transparent"){var n;r.colorStops?(n=r.__canvasGradient||N.getGradient(a,r,{x:0,y:0,width:l,height:d}),r.__canvasGradient=n):r.image&&(n=c.prototype.getCanvasPattern.call(r,a)),a.save(),a.fillStyle=n||r,a.fillRect(0,0,l,d),a.restore()}if(y){var i=this.domBack;a.save(),a.globalAlpha=s,a.drawImage(i,0,0,l,d),a.restore()}}};var e=g;ge.exports=e},Xnb7:function(ge,q,_){var Z=_("1RvN"),U=new Z(50);function L(M){if(typeof M=="string"){var g=U.get(M);return g&&g.image}else return M}function N(M,g,e,m,r){if(M)if(typeof M=="string"){if(g&&g.__zrImageSrc===M||!e)return g;var h=U.get(M),a={hostEl:e,cb:m,cbPayload:r};return h?(g=h.image,!u(g)&&h.pending.push(a)):(g=new Image,g.onload=g.onerror=c,U.put(M,g.__cachedImgObj={image:g,pending:[a]}),g.src=g.__zrImageSrc=M),g}else return M;else return g}function c(){var M=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var g=0;g<M.pending.length;g++){var e=M.pending[g],m=e.cb;m&&m(this,e.cbPayload),e.hostEl.dirty()}M.pending.length=0}function u(M){return M&&M.width&&M.height}q.findExistImage=L,q.createOrUpdateImage=N,q.isImageReady=u},Xsq0:function(ge,q,_){ge.exports=_.p+"static/mainbanner.0a951716.jpg"},Y1PL:function(ge,q,_){"use strict";_.r(q),_.d(q,"ResizableTextArea",function(){return Q});var Z=_("wx14"),U=_("1OyB"),L=_("vuIU"),N=_("Ji7U"),c=_("LK+K"),u=_("q1tI"),M=_("VTBJ"),g=_("rePB"),e=_("Zm9Q"),m=_("Kwbf"),r=_("c+Xe"),h=_("m+aA"),a=_("bdgK"),l=new Map;function d(pe){pe.forEach(function(De){var Me,Ue=De.target;(Me=l.get(Ue))===null||Me===void 0||Me.forEach(function(Ie){return Ie(Ue)})})}var y=new a.default(d),s=null,p=null;function n(pe,De){l.has(pe)||(l.set(pe,new Set),y.observe(pe)),l.get(pe).add(De)}function i(pe,De){l.has(pe)&&(l.get(pe).delete(De),l.get(pe).size||(y.unobserve(pe),l.delete(pe)))}var v=function(pe){Object(N.a)(Me,pe);var De=Object(c.a)(Me);function Me(){return Object(U.a)(this,Me),De.apply(this,arguments)}return Object(L.a)(Me,[{key:"render",value:function(){return this.props.children}}]),Me}(u.Component),C=u.createContext(null);function R(pe){var De=pe.children,Me=pe.onBatchResize,Ue=u.useRef(0),Ie=u.useRef([]),ne=u.useContext(C),B=u.useCallback(function(z,H,ee){Ue.current+=1;var X=Ue.current;Ie.current.push({size:z,element:H,data:ee}),Promise.resolve().then(function(){X===Ue.current&&(Me==null||Me(Ie.current),Ie.current=[])}),ne==null||ne(z,H,ee)},[Me,ne]);return u.createElement(C.Provider,{value:B},De)}function w(pe){var De=pe.children,Me=pe.disabled,Ue=u.useRef(null),Ie=u.useRef(null),ne=u.useContext(C),B=u.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),z=u.isValidElement(De)&&Object(r.c)(De),H=z?De.ref:null,ee=u.useMemo(function(){return Object(r.a)(H,Ue)},[H,Ue]),X=u.useRef(pe);X.current=pe;var me=u.useCallback(function(je){var Je=X.current,oe=Je.onResize,Ae=Je.data,ye=je.getBoundingClientRect(),Le=ye.width,We=ye.height,Xe=je.offsetWidth,ct=je.offsetHeight,lt=Math.floor(Le),St=Math.floor(We);if(B.current.width!==lt||B.current.height!==St||B.current.offsetWidth!==Xe||B.current.offsetHeight!==ct){var Dt={width:lt,height:St,offsetWidth:Xe,offsetHeight:ct};B.current=Dt;var bt=Xe===Math.round(Le)?Le:Xe,ht=ct===Math.round(We)?We:ct,Ut=Object(M.a)(Object(M.a)({},Dt),{},{offsetWidth:bt,offsetHeight:ht});ne==null||ne(Ut,je,Ae),oe&&Promise.resolve().then(function(){oe(Ut,je)})}},[]);return u.useEffect(function(){var je=Object(h.a)(Ue.current)||Object(h.a)(Ie.current);return je&&!Me&&n(je,me),function(){return i(je,me)}},[Ue.current,Me]),u.createElement(v,{ref:Ie},z?u.cloneElement(De,{ref:ee}):De)}var x="rc-observer-key";function A(pe){var De=pe.children,Me=Object(e.a)(De);return Me.map(function(Ue,Ie){var ne=(Ue==null?void 0:Ue.key)||"".concat(x,"-").concat(Ie);return u.createElement(w,Object(Z.a)({},pe,{key:ne}),Ue)})}A.Collection=R;var o=A,f=_("bT9E"),E=_("TSYQ"),O=_.n(E),S=`
min-height:0 !important;
max-height:none !important;
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important
`,b=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],D={},P;function I(pe){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Me=pe.getAttribute("id")||pe.getAttribute("data-reactid")||pe.getAttribute("name");if(De&&D[Me])return D[Me];var Ue=window.getComputedStyle(pe),Ie=Ue.getPropertyValue("box-sizing")||Ue.getPropertyValue("-moz-box-sizing")||Ue.getPropertyValue("-webkit-box-sizing"),ne=parseFloat(Ue.getPropertyValue("padding-bottom"))+parseFloat(Ue.getPropertyValue("padding-top")),B=parseFloat(Ue.getPropertyValue("border-bottom-width"))+parseFloat(Ue.getPropertyValue("border-top-width")),z=b.map(function(ee){return"".concat(ee,":").concat(Ue.getPropertyValue(ee))}).join(";"),H={sizingStyle:z,paddingSize:ne,borderSize:B,boxSizing:Ie};return De&&Me&&(D[Me]=H),H}function F(pe){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Ue=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;P||(P=document.createElement("textarea"),P.setAttribute("tab-index","-1"),P.setAttribute("aria-hidden","true"),document.body.appendChild(P)),pe.getAttribute("wrap")?P.setAttribute("wrap",pe.getAttribute("wrap")):P.removeAttribute("wrap");var Ie=I(pe,De),ne=Ie.paddingSize,B=Ie.borderSize,z=Ie.boxSizing,H=Ie.sizingStyle;P.setAttribute("style","".concat(H,";").concat(S)),P.value=pe.value||pe.placeholder||"";var ee=Number.MIN_SAFE_INTEGER,X=Number.MAX_SAFE_INTEGER,me=P.scrollHeight,je;if(z==="border-box"?me+=B:z==="content-box"&&(me-=ne),Me!==null||Ue!==null){P.value=" ";var Je=P.scrollHeight-ne;Me!==null&&(ee=Je*Me,z==="border-box"&&(ee=ee+ne+B),me=Math.max(ee,me)),Ue!==null&&(X=Je*Ue,z==="border-box"&&(X=X+ne+B),je=me>X?"":"hidden",me=Math.min(X,me))}return{height:me,minHeight:ee,maxHeight:X,overflowY:je,resize:"none"}}var K=_("Gytx"),j=_.n(K),Y;(function(pe){pe[pe.NONE=0]="NONE",pe[pe.RESIZING=1]="RESIZING",pe[pe.RESIZED=2]="RESIZED"})(Y||(Y={}));var W=function(pe){Object(N.a)(Me,pe);var De=Object(c.a)(Me);function Me(Ue){var Ie;return Object(U.a)(this,Me),Ie=De.call(this,Ue),Ie.nextFrameActionId=void 0,Ie.resizeFrameId=void 0,Ie.textArea=void 0,Ie.saveTextArea=function(ne){Ie.textArea=ne},Ie.handleResize=function(ne){var B=Ie.state.resizeStatus,z=Ie.props,H=z.autoSize,ee=z.onResize;if(B!==Y.NONE)return;typeof ee=="function"&&ee(ne),H&&Ie.resizeOnNextFrame()},Ie.resizeOnNextFrame=function(){cancelAnimationFrame(Ie.nextFrameActionId),Ie.nextFrameActionId=requestAnimationFrame(Ie.resizeTextarea)},Ie.resizeTextarea=function(){var ne=Ie.props.autoSize;if(!ne||!Ie.textArea)return;var B=ne.minRows,z=ne.maxRows,H=F(Ie.textArea,!1,B,z);Ie.setState({textareaStyles:H,resizeStatus:Y.RESIZING},function(){cancelAnimationFrame(Ie.resizeFrameId),Ie.resizeFrameId=requestAnimationFrame(function(){Ie.setState({resizeStatus:Y.RESIZED},function(){Ie.resizeFrameId=requestAnimationFrame(function(){Ie.setState({resizeStatus:Y.NONE}),Ie.fixFirefoxAutoScroll()})})})})},Ie.renderTextArea=function(){var ne=Ie.props,B=ne.prefixCls,z=B===void 0?"rc-textarea":B,H=ne.autoSize,ee=ne.onResize,X=ne.className,me=ne.disabled,je=Ie.state,Je=je.textareaStyles,oe=je.resizeStatus,Ae=Object(f.a)(Ie.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),ye=O()(z,X,Object(g.a)({},"".concat(z,"-disabled"),me));"value"in Ae&&(Ae.value=Ae.value||"");var Le=Object(M.a)(Object(M.a)(Object(M.a)({},Ie.props.style),Je),oe===Y.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return u.createElement(o,{onResize:Ie.handleResize,disabled:!(H||ee)},u.createElement("textarea",Object(Z.a)({},Ae,{className:ye,style:Le,ref:Ie.saveTextArea})))},Ie.state={textareaStyles:{},resizeStatus:Y.NONE},Ie}return Object(L.a)(Me,[{key:"componentDidUpdate",value:function(Ie){(Ie.value!==this.props.value||!j()(Ie.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 Ie=this.textArea.selectionStart,ne=this.textArea.selectionEnd;this.textArea.setSelectionRange(Ie,ne)}}catch(B){}}},{key:"render",value:function(){return this.renderTextArea()}}]),Me}(u.Component),Q=W,ie=function(pe){Object(N.a)(Me,pe);var De=Object(c.a)(Me);function Me(Ue){var Ie;Object(U.a)(this,Me),Ie=De.call(this,Ue),Ie.resizableTextArea=void 0,Ie.focus=function(){Ie.resizableTextArea.textArea.focus()},Ie.saveTextArea=function(B){Ie.resizableTextArea=B},Ie.handleChange=function(B){var z=Ie.props.onChange;Ie.setValue(B.target.value,function(){Ie.resizableTextArea.resizeTextarea()}),z&&z(B)},Ie.handleKeyDown=function(B){var z=Ie.props,H=z.onPressEnter,ee=z.onKeyDown;B.keyCode===13&&H&&H(B),ee&&ee(B)};var ne=typeof Ue.value=="undefined"||Ue.value===null?Ue.defaultValue:Ue.value;return Ie.state={value:ne},Ie}return Object(L.a)(Me,[{key:"setValue",value:function(Ie,ne){"value"in this.props||this.setState({value:Ie},ne)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return u.createElement(Q,Object(Z.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(Ie){return"value"in Ie?{value:Ie.value}:null}}]),Me}(u.Component),Ee=q.default=ie},YH21:function(ge,q,_){var Z=_("H6uX");q.Dispatcher=Z;var U=_("ItGF"),L=_("Ze12"),N=L.isCanvasEl,c=L.transformCoordWithViewport,u=typeof window!="undefined"&&!!window.addEventListener,M=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,g=[];function e(p,n,i,v){return i=i||{},v||!U.canvasSupported?m(p,n,i):U.browser.firefox&&n.layerX!=null&&n.layerX!==n.offsetX?(i.zrX=n.layerX,i.zrY=n.layerY):n.offsetX!=null?(i.zrX=n.offsetX,i.zrY=n.offsetY):m(p,n,i),i}function m(p,n,i){if(U.domSupported&&p.getBoundingClientRect){var v=n.clientX,C=n.clientY;if(N(p)){var R=p.getBoundingClientRect();i.zrX=v-R.left,i.zrY=C-R.top;return}else if(c(g,p,v,C)){i.zrX=g[0],i.zrY=g[1];return}}i.zrX=i.zrY=0}function r(p){return p||window.event}function h(p,n,i){if(n=r(n),n.zrX!=null)return n;var v=n.type,C=v&&v.indexOf("touch")>=0;if(!C)e(p,n,n,i),n.zrDelta=n.wheelDelta?n.wheelDelta/120:-(n.detail||0)/3;else{var R=v!=="touchend"?n.targetTouches[0]:n.changedTouches[0];R&&e(p,R,n,i)}var w=n.button;return n.which==null&&w!==void 0&&M.test(n.type)&&(n.which=w&1?1:w&2?3:w&4?2:0),n}function a(p,n,i,v){u?p.addEventListener(n,i,v):p.attachEvent("on"+n,i)}function l(p,n,i,v){u?p.removeEventListener(n,i,v):p.detachEvent("on"+n,i)}var d=u?function(p){p.preventDefault(),p.stopPropagation(),p.cancelBubble=!0}:function(p){p.returnValue=!1,p.cancelBubble=!0};function y(p){return p.which===2||p.which===3}function s(p){return p.which>1}q.clientToLocal=e,q.getNativeEvent=r,q.normalizeEvent=h,q.addEventListener=a,q.removeEventListener=l,q.stop=d,q.isMiddleOrRightButtonOnMouseUpDown=y,q.notLeftMouse=s},YVwf:function(ge,q,_){"use strict";var Z=this&&this.__importDefault||function(L){return L&&L.__esModule?L:{default:L}};Object.defineProperty(q,"__esModule",{value:!0});var U=Z(_("Kw3X"));q.default=U.default},YgsL:function(ge,q,_){var Z=_("QBsz"),U=Z.distance;function L(c,u,M,g,e,m,r){var h=(M-c)*.5,a=(g-u)*.5;return(2*(u-M)+h+a)*r+(-3*(u-M)-2*h-a)*m+h*e+u}function N(c,u){for(var M=c.length,g=[],e=0,m=1;m<M;m++)e+=U(c[m-1],c[m]);var r=e/2;r=r<M?M:r;for(var m=0;m<r;m++){var h=m/(r-1)*(u?M:M-1),a=Math.floor(h),l=h-a,d,y=c[a%M],s,p;u?(d=c[(a-1+M)%M],s=c[(a+1)%M],p=c[(a+2)%M]):(d=c[a===0?a:a-1],s=c[a>M-2?M-1:a+1],p=c[a>M-3?M-1:a+2]);var n=l*l,i=l*n;g.push([L(d[0],y[0],s[0],p[0],l,n,i),L(d[1],y[1],s[1],p[1],l,n,i)])}return g}ge.exports=N},ZJlW:function(ge,q,_){ge.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"}},ZSzu:function(ge,q){ge.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEYAAAB4CAYAAABPXoRZAAAAAXNSR0IArs4c6QAAHmpJREFUeF7NXQl4U8X2/02SbukKtDQt+6aQpGyisrQFhOcDfIIggiAqiIKKwANZRAQURBBkV0FUVhEEFcT3EEQFGhYBUaBpgbIVKG26QKF70+bO/5ubpm2Sm9xJUt/3P9/X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GurMT7INzhxJieymhGw5DBiW8pO/EYcJX1eGsEoSlsQpktpJl5RASEtDnflJtpnzuwUXGDC/sjplWZtUx34SG09gNkYi48DcAVy6VHd+km1y/G7BbwwYVlXo9o5+ka+P+SQp4C2EoEQqFcMibpcu1Z2fZBuc3y34jBnff4NS+Uvs6tiBZLJWKhQolUrFsGKBtLS685NswPC6BYRMYcB0BaXyXxVYB4k20fDVMrSVSiVKXfheqmvXqjeBsq85bwP+bEE3Qo1GVm96D4S4/+oJHz3ryrIysbKKRePY/kShUqFCpUKZixyVX0YGAuvY2IvZSLlsAaVsBxphjfmmpLB7YtxfnuujZ81cgfKquCvzmJnnbPbzQ7mLHFVAdjb8fUwFOykSX7ZgL9HpBtmC4c+Dyly75KNnzRJspdnZosYwYFh0rtzPD2ZXwDDv2ge/TPLtEgSKe/dqYg/WjSWrgGK/kKqT8WOIVrvVCgyri8nKsn5Dt62ENCqKIjMTiI52/nb3ysqavzVvLpstZ1+7lJeX5+R2UEppFBtHggqzsoLK/fycLnGIjIxk40kX58nbGlq7BsZd8/8DUmt0O8VZb64AAAAASUVORK5CYII="},ZW9T:function(ge,q,_){"use strict";_.d(q,"a",function(){return K});var Z=_("k1fw"),U=_("oBTY"),L=_("miYZ"),N=_("tsqr"),c=_("rAM+"),u=_("tJVT"),M=_("PpiC"),g=_("q1tI"),e=_.n(g),m=_("bdgK"),r=_("9og8"),h=_("WmNS"),a=_.n(h),l={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"]},d={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"]},y={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(`
`)}]},s={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(`
`)}]},p=_("5VLF"),n=_.n(p),i={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"]}},v=function(Y,W){return W.map(function(Q){return{label:Q,kind:Y.languages.CompletionItemKind.Keyword,insertText:Q}})},C=function(Y){return Object.keys(i.tables).map(function(W){return{label:W,kind:Y.languages.CompletionItemKind.Variable,insertText:W}})},R=function(Y,W){var Q=i.tables[Y];return Q?Q.map(function(ie){return{label:ie,kind:W.languages.CompletionItemKind.Field,insertText:ie}}):[]};function w(j,Y,W,Q,ie){var Ee=Y.getWordUntilPosition(W),pe={startLineNumber:W.lineNumber,endLineNumber:W.lineNumber,startColumn:Ee.startColumn,endColumn:Ee.endColumn},De=Q.map(function(Me){return{label:Me,kind:j.languages.CompletionItemKind.Keyword,insertText:Me,insertTextRules:j.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:pe}});return ie.map(function(Me){De.push(Object(Z.a)(Object(Z.a)({},Me),{},{range:pe}))}),De}var x=function(j){i.languages.map(function(ie){return j.languages.registerDocumentFormattingEditProvider(ie,{provideDocumentFormattingEdits:function(pe,De,Me){return Object(r.a)(a.a.mark(function Ue(){var Ie;return a.a.wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return Ie=n()(pe.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}),B.abrupt("return",[{range:pe.getFullModelRange(),text:Ie}]);case 2:case"end":return B.stop()}},Ue)}))()}}),ie});var Y=y.quickKey.map(function(ie){return{label:ie.label,kind:j.languages.CompletionItemKind.Method,insertText:ie.content,insertTextRules:j.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),W=s.quickKey.map(function(ie){return{label:ie.label,kind:j.languages.CompletionItemKind.Method,insertText:ie.content,insertTextRules:j.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),Q=d.quickKey.map(function(ie){return{label:ie.label,kind:j.languages.CompletionItemKind.Method,insertText:ie.content,insertTextRules:j.languages.CompletionItemInsertTextRule.InsertAsSnippet}});j.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Ee,pe){var De=Ee.getWordUntilPosition(pe),Me={startLineNumber:pe.lineNumber,endLineNumber:pe.lineNumber,startColumn:De.startColumn,endColumn:De.endColumn},Ue=Ee.getLineContent(pe.lineNumber).substring(De.startColumn-2,De.endColumn);return{suggestions:[].concat(Object(U.a)(y.keywords.map(function(Ie){return{label:Ie,kind:j.languages.CompletionItemKind.Function,documentation:Ie,insertText:Ie,insertTextRules:j.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Me}})),Object(U.a)(y.quickKey.map(function(Ie){return{label:Ie.label,kind:j.languages.CompletionItemKind.Function,documentation:Ie.content,insertText:Ue.startsWith("#")?Ie.content.replace(/#/,""):Ie.content,insertTextRules:j.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Me}})))}}}),j.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Ee,pe){var De=Ee.getWordUntilPosition(pe),Me={startLineNumber:pe.lineNumber,endLineNumber:pe.lineNumber,startColumn:De.startColumn,endColumn:De.endColumn};return{suggestions:Object(U.a)(l.keywords.map(function(Ue){return{label:Ue,kind:j.languages.CompletionItemKind.Function,documentation:Ue,insertText:Ue,insertTextRules:j.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Me}}))}}}),j.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Ee,pe){var De=Ee.getWordUntilPosition(pe),Me={startLineNumber:pe.lineNumber,endLineNumber:pe.lineNumber,startColumn:De.startColumn,endColumn:De.endColumn},Ue=Ee.getLineContent(pe.lineNumber).substring(De.startColumn-2,De.endColumn);return{suggestions:[].concat(Object(U.a)(d.keywords.map(function(Ie){return{label:Ie,kind:j.languages.CompletionItemKind.Function,documentation:Ie,insertText:Ie,insertTextRules:j.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Me}})),Object(U.a)(d.quickKey.map(function(Ie){return{label:Ie.label,kind:j.languages.CompletionItemKind.Function,documentation:Ie.content,insertText:Ue.startsWith("#")?Ie.content.replace(/#/,""):Ie.content,insertTextRules:j.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Me}})))}}}),j.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Ee,pe){var De=Ee.getWordUntilPosition(pe),Me={startLineNumber:pe.lineNumber,endLineNumber:pe.lineNumber,startColumn:De.startColumn,endColumn:De.endColumn},Ue=Ee.getLineContent(pe.lineNumber).substring(De.startColumn-2,De.endColumn);return{suggestions:[].concat(Object(U.a)(s.keywords.map(function(Ie){return{label:Ie,kind:j.languages.CompletionItemKind.Function,documentation:Ie,insertText:Ie,insertTextRules:j.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Me}})),Object(U.a)(s.quickKey.map(function(Ie){return{label:Ie.label,kind:j.languages.CompletionItemKind.Function,documentation:Ie.content,insertText:Ue.startsWith("#")?Ie.content.replace(/#/,""):Ie.content,insertTextRules:j.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Me}})))}}})},A="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002",o=_("fjLI"),f=_("LvDl"),E=_("+ua5");function O(j){return/^\d+$/.test(j)?"".concat(j,"px"):j}function S(){}var b=!1,D={"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 P(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Y=j;if(Array.isArray(j)){for(var W=0;W<j.length;W++){var Q=D[j[W]];if(Q)return Q}return Y[0]}return D[Y]||Y}var I=null,F=q.b=function(j){var Y=j.width,W=Y===void 0?"100%":Y,Q=j.height,ie=Q===void 0?"100%":Q,Ee=j.value,pe=j.language,De=pe===void 0?"javascript":pe,Me=j.style,Ue=Me===void 0?{}:Me,Ie=j.options,ne=Ie===void 0?{}:Ie,B=j.overrideServices,z=B===void 0?{}:B,H=j.theme,ee=H===void 0?"vs-dark":H,X=j.onEditBlur,me=j.onSave,je=j.autoHeight,Je=je===void 0?!1:je,oe=j.forbidCopy,Ae=oe===void 0?!1:oe,ye=j.onChange,Le=ye===void 0?S:ye,We=j.editorDidMount,Xe=We===void 0?S:We,ct=j.onFocus,lt=ct===void 0?S:ct,St=j.filename,Dt=St===void 0?"educoder.txt":St,bt=j.errorLine,ht=j.errorContent,Ut=ht===void 0?"":ht,Ft=Object(M.a)(j,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","filename","errorLine","errorContent"]),ve=Object(g.useRef)(),se=Object(g.useRef)({}),le=Object(g.useRef)(),fe=Object(g.useRef)(),Re=Object(g.useRef)(!1),ce=Object(g.useRef)(),he=Object(g.useState)(!1),Se=Object(u.a)(he,2),we=Se[0],Ze=Se[1];function Ye(){var Mt;return ve.current&&(Mt=new m.default(function(nt){var xt=Object(c.a)(nt),ue;try{for(xt.s();!(ue=xt.n()).done;){var ae=ue.value;(ae.target.offsetHeight>0||ae.target.offsetWidth>0)&&se.current.instance.layout()}}catch(V){xt.e(V)}finally{xt.f()}}),Mt.observe(ve.current)),Mt}function it(){N.b.warn(decodeURIComponent(A))}var Et=function(){var nt=se.current.instance;if(Ee!=null&&nt&&we){var xt=nt.getModel();xt&&Ee!==xt.getValue()&&(b=!0,xt.setValue(Ee),nt.layout(),b=!1)}};Object(g.useEffect)(function(){fe.current&&clearTimeout(fe.current),fe.current=setTimeout(function(){Et()},500)},[Ee,we,se.current]),Object(g.useEffect)(function(){if(bt&&se.current&&se.current.instance){var Mt=se.current.instance;Mt.changeViewZones(function(xt){var ue=document.createElement("div");ue.style.padding="10px 20px",ue.style.width="calc(100% - 20px)",ue.className="my-error-line-wrp",ue.innerHTML=Ut,xt.addZone({afterLineNumber:bt||11,heightInLines:3,domNode:ue})});var nt={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}};Mt.addOverlayWidget(nt),Mt.revealPositionInCenter({lineNumber:20,column:1})}},[bt,se.current,we]);function Pt(){var Mt=se.current.instance;if(Mt){var nt=Mt.getSelection(),xt=se.current.pastePos||{},ue=new I.Range(xt.startLineNumber||nt.endLineNumber,xt.startColumn||nt.endColumn,xt.endLineNumber||nt.endLineNumber,xt.endColumn||nt.endColumn);setTimeout(function(){Mt.executeEdits("",[{range:ue,text:""}])},300)}}function zt(Mt){(window.navigator.platform.match("Mac")?Mt.metaKey:Mt.ctrlKey)&&Mt.keyCode==83&&(Mt.preventDefault(),me())}var Rt=function(){if(Je&&se.current.instance){var nt=se.current.instance.getContentHeight();gt(nt<ie?ie:nt)}else gt(ie)};function rt(Mt){var nt=document.createEvent("MouseEvents");nt.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Mt.dispatchEvent(nt)}function st(Mt,nt){var xt=window.URL||window.webkitURL||window,ue=new Blob([nt]),ae=document.createElementNS("http://www.w3.org/1999/xhtml","a");ae.href=xt.createObjectURL(ue),ae.download=Mt,rt(ae)}Object(g.useEffect)(function(){Rt()},[Rt]),Object(g.useEffect)(function(){ve.current&&!we&&Promise.all([_.e(18),_.e(29)]).then(_.t.bind(null,"M/lh",7)).then(function(Mt){try{I=Mt,se.current.instance=I.editor.create(ve.current,{value:Ee,language:P(De),theme:ee,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},z);var nt=se.current.instance,xt=o.d._menuItems,ue=Object(U.a)(xt).find(function(re){return re[0]._debugName=="EditorContext"}),ae=ue[1],V=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],J=function(be,Pe){var He=be._first;do{var ft,_t,Lt=Pe.includes((ft=He.element)===null||ft===void 0||((_t=ft.command)===null||_t===void 0)?void 0:_t.id);Lt&&be._remove(He)}while(He=He.next)};if(Xe(nt,I),setTimeout(function(){Rt(),se.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:function(){st(Dt||"educoder.txt",nt.getValue())}}),nt.getDomNode().addEventListener("input",function(){le.current.autoFormat&&nt.getAction("editor.action.formatDocument").run()})},500),se.current.subscription=nt.onDidChangeModelContent(function(re){Re.current?clearTimeout(ce.current):(Rt(),Le(nt.getValue(),re)),ce.current=setTimeout(function(){Re.current=!1},500)}),window.Monaco||x(I,P(De)),Ae&&(J(ae,V),ve.current.classList.add("noCopyPaste"),nt.onKeyDown(function(re){var be=re.keyCode,Pe=re.ctrlKey,He=re.metaKey;(be===33||be===52)&&(He||Pe)&&(it(),re.preventDefault())})),window.Monaco=I,X&&nt.onDidBlurEditorWidget(function(){X(nt.getValue())}),lt&&nt.onDidFocusEditorText(function(){lt(nt.getValue())}),Ae){nt.addCommand(I.KeyMod.CtrlCmd|I.KeyCode.KEY_V,function(){return it(),null}),nt.onDidPaste(function(re){se.current.pastePos=re});try{window.addEventListener("paste",Pt)}catch(re){}}var te=Ye();return Ze(!0),function(){var re=se.current.instance;re.dispose();var be=re.getModel();be&&be.dispose(),se.current.subscription&&se.current.subscription.dispose(),Ae&&window.removeEventListener("paste",Pt),te.unobserve(ve.current)}}catch(re){}})},[]),Object(g.useEffect)(function(){var Mt=se.current.instance;if(Mt&&we)return document.addEventListener("keydown",zt,!1),function(){document.removeEventListener("keydown",zt)}},[me,we]),Object(g.useEffect)(function(){var Mt=se.current.instance;if(Mt&&we){var nt=P(De);I.editor.setModelLanguage(Mt.getModel(),nt),console.log("language:",De,Mt.getModel(),nt)}},[De,we]),Object(g.useEffect)(function(){var Mt=se.current.instance;Mt&&we&&I.editor.setTheme(ee)},[ee,we]),Object(g.useEffect)(function(){var Mt=se.current.instance;le.current=ne,Mt&&we&&(Mt.updateOptions(Object(Z.a)({},ne)),setTimeout(function(){Mt.getModel().updateOptions(Object(Z.a)({},ne))},200))},[JSON.stringify(ne),we]),Object(g.useEffect)(function(){var Mt=se.current.instance;Mt&&we&&Mt.layout()},[W,ie,we]);var qe=Object(g.useState)(O(W)),Ce=Object(u.a)(qe,2),Be=Ce[0],dt=Ce[1],ut=Object(g.useState)(O(ie)),It=Object(u.a)(ut,2),wt=It[0],gt=It[1],Nt=Object(Z.a)(Object(Z.a)({},Ue),{},{width:Be,height:wt});return e.a.createElement("div",{className:"my-monaco-editor",ref:ve,style:Nt})};function K(j){var Y=j.width,W=Y===void 0?"100%":Y,Q=j.height,ie=Q===void 0?"100%":Q,Ee=j.original,pe=j.modified,De=j.language,Me=j.options,Ue=Me===void 0?{}:Me,Ie=Object(g.useRef)(),ne=Object(g.useState)(null),B=Object(u.a)(ne,2),z=B[0],H=B[1];function ee(Je){var oe;return Ie.current&&(oe=new m.default(function(Ae){var ye=Object(c.a)(Ae),Le;try{for(ye.s();!(Le=ye.n()).done;){var We=Le.value;(We.target.offsetHeight>0||We.target.offsetWidth>0)&&Je.layout()}}catch(Xe){ye.e(Xe)}finally{ye.f()}}),oe.observe(Ie.current)),oe}Object(g.useEffect)(function(){Ie.current&&Promise.all([_.e(18),_.e(29)]).then(_.t.bind(null,"M/lh",7)).then(function(Je){I=Je;var oe=I.editor.createDiffEditor(Ie.current,Object(Z.a)(Object(Z.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},Ue),{},{wordWrap:!0}));H(oe);var Ae=ee(oe);return function(){oe.dispose();var ye=oe.getModel();ye&&ye.dispose(),Ae.unobserve(Ie.current)}})},[]),Object(g.useEffect)(function(){z&&z.setModel({original:I.editor.createModel(Ee,De),modified:I.editor.createModel(pe,De)})},[Ee,pe,De,z]);var X=O(W),me=O(ie),je={width:X,height:me};return e.a.createElement("div",{className:"my-diff-editor",ref:Ie,style:je})}},Ze12:function(ge,q,_){var Z=_("ItGF"),U=_("hOwI"),L=U.buildTransformer,N="___zrEVENTSAVED",c=[];function u(r,h,a,l,d){return M(c,h,l,d,!0)&&M(r,a,c[0],c[1])}function M(r,h,a,l,d){if(h.getBoundingClientRect&&Z.domSupported&&!m(h)){var y=h[N]||(h[N]={}),s=g(h,y),p=e(s,y,d);if(p)return p(r,a,l),!0}return!1}function g(r,h){var a=h.markers;if(a)return a;a=h.markers=[];for(var l=["left","right"],d=["top","bottom"],y=0;y<4;y++){var s=document.createElement("div"),p=s.style,n=y%2,i=(y>>1)%2;p.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",l[n]+":0",d[i]+":0",l[1-n]+":auto",d[1-i]+":auto",""].join("!important;"),r.appendChild(s),a.push(s)}return a}function e(r,h,a){for(var l=a?"invTrans":"trans",d=h[l],y=h.srcCoords,s=!0,p=[],n=[],i=0;i<4;i++){var v=r[i].getBoundingClientRect(),C=2*i,R=v.left,w=v.top;p.push(R,w),s=s&&y&&R===y[C]&&w===y[C+1],n.push(r[i].offsetLeft,r[i].offsetTop)}return s&&d?d:(h.srcCoords=p,h[l]=a?L(n,p):L(p,n))}function m(r){return r.nodeName.toUpperCase()==="CANVAS"}q.transformLocalCoord=u,q.transformCoordWithViewport=M,q.isCanvasEl=m},Zss7:function(ge,q,_){var Z;(function(U){var L=/^\s+/,N=/\s+$/,c=0,u=U.round,M=U.min,g=U.max,e=U.random;function m(B,z){if(B=B||"",z=z||{},B instanceof m)return B;if(!(this instanceof m))return new m(B,z);var H=r(B);this._originalInput=B,this._r=H.r,this._g=H.g,this._b=H.b,this._a=H.a,this._roundA=u(100*this._a)/100,this._format=z.format||H.format,this._gradientType=z.gradientType,this._r<1&&(this._r=u(this._r)),this._g<1&&(this._g=u(this._g)),this._b<1&&(this._b=u(this._b)),this._ok=H.ok,this._tc_id=c++}m.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var B=this.toRgb();return(B.r*299+B.g*587+B.b*114)/1e3},getLuminance:function(){var B=this.toRgb(),z,H,ee,X,me,je;return z=B.r/255,H=B.g/255,ee=B.b/255,z<=.03928?X=z/12.92:X=U.pow((z+.055)/1.055,2.4),H<=.03928?me=H/12.92:me=U.pow((H+.055)/1.055,2.4),ee<=.03928?je=ee/12.92:je=U.pow((ee+.055)/1.055,2.4),.2126*X+.7152*me+.0722*je},setAlpha:function(B){return this._a=F(B),this._roundA=u(100*this._a)/100,this},toHsv:function(){var B=d(this._r,this._g,this._b);return{h:B.h*360,s:B.s,v:B.v,a:this._a}},toHsvString:function(){var B=d(this._r,this._g,this._b),z=u(B.h*360),H=u(B.s*100),ee=u(B.v*100);return this._a==1?"hsv("+z+", "+H+"%, "+ee+"%)":"hsva("+z+", "+H+"%, "+ee+"%, "+this._roundA+")"},toHsl:function(){var B=a(this._r,this._g,this._b);return{h:B.h*360,s:B.s,l:B.l,a:this._a}},toHslString:function(){var B=a(this._r,this._g,this._b),z=u(B.h*360),H=u(B.s*100),ee=u(B.l*100);return this._a==1?"hsl("+z+", "+H+"%, "+ee+"%)":"hsla("+z+", "+H+"%, "+ee+"%, "+this._roundA+")"},toHex:function(B){return s(this._r,this._g,this._b,B)},toHexString:function(B){return"#"+this.toHex(B)},toHex8:function(B){return p(this._r,this._g,this._b,this._a,B)},toHex8String:function(B){return"#"+this.toHex8(B)},toRgb:function(){return{r:u(this._r),g:u(this._g),b:u(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+u(this._r)+", "+u(this._g)+", "+u(this._b)+")":"rgba("+u(this._r)+", "+u(this._g)+", "+u(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:u(K(this._r,255)*100)+"%",g:u(K(this._g,255)*100)+"%",b:u(K(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+u(K(this._r,255)*100)+"%, "+u(K(this._g,255)*100)+"%, "+u(K(this._b,255)*100)+"%)":"rgba("+u(K(this._r,255)*100)+"%, "+u(K(this._g,255)*100)+"%, "+u(K(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:P[s(this._r,this._g,this._b,!0)]||!1},toFilter:function(B){var z="#"+n(this._r,this._g,this._b,this._a),H=z,ee=this._gradientType?"GradientType = 1, ":"";if(B){var X=m(B);H="#"+n(X._r,X._g,X._b,X._a)}return"progid:DXImageTransform.Microsoft.gradient("+ee+"startColorstr="+z+",endColorstr="+H+")"},toString:function(B){var z=!!B;B=B||this._format;var H=!1,ee=this._a<1&&this._a>=0,X=!z&&ee&&(B==="hex"||B==="hex6"||B==="hex3"||B==="hex4"||B==="hex8"||B==="name");return X?B==="name"&&this._a===0?this.toName():this.toRgbString():(B==="rgb"&&(H=this.toRgbString()),B==="prgb"&&(H=this.toPercentageRgbString()),(B==="hex"||B==="hex6")&&(H=this.toHexString()),B==="hex3"&&(H=this.toHexString(!0)),B==="hex4"&&(H=this.toHex8String(!0)),B==="hex8"&&(H=this.toHex8String()),B==="name"&&(H=this.toName()),B==="hsl"&&(H=this.toHslString()),B==="hsv"&&(H=this.toHsvString()),H||this.toHexString())},clone:function(){return m(this.toString())},_applyModification:function(B,z){var H=B.apply(null,[this].concat([].slice.call(z)));return this._r=H._r,this._g=H._g,this._b=H._b,this.setAlpha(H._a),this},lighten:function(){return this._applyModification(R,arguments)},brighten:function(){return this._applyModification(w,arguments)},darken:function(){return this._applyModification(x,arguments)},desaturate:function(){return this._applyModification(i,arguments)},saturate:function(){return this._applyModification(v,arguments)},greyscale:function(){return this._applyModification(C,arguments)},spin:function(){return this._applyModification(A,arguments)},_applyCombination:function(B,z){return B.apply(null,[this].concat([].slice.call(z)))},analogous:function(){return this._applyCombination(S,arguments)},complement:function(){return this._applyCombination(o,arguments)},monochromatic:function(){return this._applyCombination(b,arguments)},splitcomplement:function(){return this._applyCombination(O,arguments)},triad:function(){return this._applyCombination(f,arguments)},tetrad:function(){return this._applyCombination(E,arguments)}},m.fromRatio=function(B,z){if(typeof B=="object"){var H={};for(var ee in B)B.hasOwnProperty(ee)&&(ee==="a"?H[ee]=B[ee]:H[ee]=Ee(B[ee]));B=H}return m(B,z)};function r(B){var z={r:0,g:0,b:0},H=1,ee=null,X=null,me=null,je=!1,Je=!1;return typeof B=="string"&&(B=Ie(B)),typeof B=="object"&&(Ue(B.r)&&Ue(B.g)&&Ue(B.b)?(z=h(B.r,B.g,B.b),je=!0,Je=String(B.r).substr(-1)==="%"?"prgb":"rgb"):Ue(B.h)&&Ue(B.s)&&Ue(B.v)?(ee=Ee(B.s),X=Ee(B.v),z=y(B.h,ee,X),je=!0,Je="hsv"):Ue(B.h)&&Ue(B.s)&&Ue(B.l)&&(ee=Ee(B.s),me=Ee(B.l),z=l(B.h,ee,me),je=!0,Je="hsl"),B.hasOwnProperty("a")&&(H=B.a)),H=F(H),{ok:je,format:B.format||Je,r:M(255,g(z.r,0)),g:M(255,g(z.g,0)),b:M(255,g(z.b,0)),a:H}}function h(B,z,H){return{r:K(B,255)*255,g:K(z,255)*255,b:K(H,255)*255}}function a(B,z,H){B=K(B,255),z=K(z,255),H=K(H,255);var ee=g(B,z,H),X=M(B,z,H),me,je,Je=(ee+X)/2;if(ee==X)me=je=0;else{var oe=ee-X;je=Je>.5?oe/(2-ee-X):oe/(ee+X);switch(ee){case B:me=(z-H)/oe+(z<H?6:0);break;case z:me=(H-B)/oe+2;break;case H:me=(B-z)/oe+4;break}me/=6}return{h:me,s:je,l:Je}}function l(B,z,H){var ee,X,me;B=K(B,360),z=K(z,100),H=K(H,100);function je(Ae,ye,Le){return Le<0&&(Le+=1),Le>1&&(Le-=1),Le<1/6?Ae+(ye-Ae)*6*Le:Le<1/2?ye:Le<2/3?Ae+(ye-Ae)*(2/3-Le)*6:Ae}if(z===0)ee=X=me=H;else{var Je=H<.5?H*(1+z):H+z-H*z,oe=2*H-Je;ee=je(oe,Je,B+1/3),X=je(oe,Je,B),me=je(oe,Je,B-1/3)}return{r:ee*255,g:X*255,b:me*255}}function d(B,z,H){B=K(B,255),z=K(z,255),H=K(H,255);var ee=g(B,z,H),X=M(B,z,H),me,je,Je=ee,oe=ee-X;if(je=ee===0?0:oe/ee,ee==X)me=0;else{switch(ee){case B:me=(z-H)/oe+(z<H?6:0);break;case z:me=(H-B)/oe+2;break;case H:me=(B-z)/oe+4;break}me/=6}return{h:me,s:je,v:Je}}function y(B,z,H){B=K(B,360)*6,z=K(z,100),H=K(H,100);var ee=U.floor(B),X=B-ee,me=H*(1-z),je=H*(1-X*z),Je=H*(1-(1-X)*z),oe=ee%6,Ae=[H,je,me,me,Je,H][oe],ye=[Je,H,H,je,me,me][oe],Le=[me,me,Je,H,H,je][oe];return{r:Ae*255,g:ye*255,b:Le*255}}function s(B,z,H,ee){var X=[ie(u(B).toString(16)),ie(u(z).toString(16)),ie(u(H).toString(16))];return ee&&X[0].charAt(0)==X[0].charAt(1)&&X[1].charAt(0)==X[1].charAt(1)&&X[2].charAt(0)==X[2].charAt(1)?X[0].charAt(0)+X[1].charAt(0)+X[2].charAt(0):X.join("")}function p(B,z,H,ee,X){var me=[ie(u(B).toString(16)),ie(u(z).toString(16)),ie(u(H).toString(16)),ie(pe(ee))];return X&&me[0].charAt(0)==me[0].charAt(1)&&me[1].charAt(0)==me[1].charAt(1)&&me[2].charAt(0)==me[2].charAt(1)&&me[3].charAt(0)==me[3].charAt(1)?me[0].charAt(0)+me[1].charAt(0)+me[2].charAt(0)+me[3].charAt(0):me.join("")}function n(B,z,H,ee){var X=[ie(pe(ee)),ie(u(B).toString(16)),ie(u(z).toString(16)),ie(u(H).toString(16))];return X.join("")}m.equals=function(B,z){return!B||!z?!1:m(B).toRgbString()==m(z).toRgbString()},m.random=function(){return m.fromRatio({r:e(),g:e(),b:e()})};function i(B,z){z=z===0?0:z||10;var H=m(B).toHsl();return H.s-=z/100,H.s=j(H.s),m(H)}function v(B,z){z=z===0?0:z||10;var H=m(B).toHsl();return H.s+=z/100,H.s=j(H.s),m(H)}function C(B){return m(B).desaturate(100)}function R(B,z){z=z===0?0:z||10;var H=m(B).toHsl();return H.l+=z/100,H.l=j(H.l),m(H)}function w(B,z){z=z===0?0:z||10;var H=m(B).toRgb();return H.r=g(0,M(255,H.r-u(255*-(z/100)))),H.g=g(0,M(255,H.g-u(255*-(z/100)))),H.b=g(0,M(255,H.b-u(255*-(z/100)))),m(H)}function x(B,z){z=z===0?0:z||10;var H=m(B).toHsl();return H.l-=z/100,H.l=j(H.l),m(H)}function A(B,z){var H=m(B).toHsl(),ee=(H.h+z)%360;return H.h=ee<0?360+ee:ee,m(H)}function o(B){var z=m(B).toHsl();return z.h=(z.h+180)%360,m(z)}function f(B){var z=m(B).toHsl(),H=z.h;return[m(B),m({h:(H+120)%360,s:z.s,l:z.l}),m({h:(H+240)%360,s:z.s,l:z.l})]}function E(B){var z=m(B).toHsl(),H=z.h;return[m(B),m({h:(H+90)%360,s:z.s,l:z.l}),m({h:(H+180)%360,s:z.s,l:z.l}),m({h:(H+270)%360,s:z.s,l:z.l})]}function O(B){var z=m(B).toHsl(),H=z.h;return[m(B),m({h:(H+72)%360,s:z.s,l:z.l}),m({h:(H+216)%360,s:z.s,l:z.l})]}function S(B,z,H){z=z||6,H=H||30;var ee=m(B).toHsl(),X=360/H,me=[m(B)];for(ee.h=(ee.h-(X*z>>1)+720)%360;--z;)ee.h=(ee.h+X)%360,me.push(m(ee));return me}function b(B,z){z=z||6;for(var H=m(B).toHsv(),ee=H.h,X=H.s,me=H.v,je=[],Je=1/z;z--;)je.push(m({h:ee,s:X,v:me})),me=(me+Je)%1;return je}m.mix=function(B,z,H){H=H===0?0:H||50;var ee=m(B).toRgb(),X=m(z).toRgb(),me=H/100,je={r:(X.r-ee.r)*me+ee.r,g:(X.g-ee.g)*me+ee.g,b:(X.b-ee.b)*me+ee.b,a:(X.a-ee.a)*me+ee.a};return m(je)},m.readability=function(B,z){var H=m(B),ee=m(z);return(U.max(H.getLuminance(),ee.getLuminance())+.05)/(U.min(H.getLuminance(),ee.getLuminance())+.05)},m.isReadable=function(B,z,H){var ee=m.readability(B,z),X,me;me=!1,X=ne(H);switch(X.level+X.size){case"AAsmall":case"AAAlarge":me=ee>=4.5;break;case"AAlarge":me=ee>=3;break;case"AAAsmall":me=ee>=7;break}return me},m.mostReadable=function(B,z,H){var ee=null,X=0,me,je,Je,oe;H=H||{},je=H.includeFallbackColors,Je=H.level,oe=H.size;for(var Ae=0;Ae<z.length;Ae++)me=m.readability(B,z[Ae]),me>X&&(X=me,ee=m(z[Ae]));return m.isReadable(B,ee,{level:Je,size:oe})||!je?ee:(H.includeFallbackColors=!1,m.mostReadable(B,["#fff","#000"],H))};var D=m.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},P=m.hexNames=I(D);function I(B){var z={};for(var H in B)B.hasOwnProperty(H)&&(z[B[H]]=H);return z}function F(B){return B=parseFloat(B),(isNaN(B)||B<0||B>1)&&(B=1),B}function K(B,z){W(B)&&(B="100%");var H=Q(B);return B=M(z,g(0,parseFloat(B))),H&&(B=parseInt(B*z,10)/100),U.abs(B-z)<1e-6?1:B%z/parseFloat(z)}function j(B){return M(1,g(0,B))}function Y(B){return parseInt(B,16)}function W(B){return typeof B=="string"&&B.indexOf(".")!=-1&&parseFloat(B)===1}function Q(B){return typeof B=="string"&&B.indexOf("%")!=-1}function ie(B){return B.length==1?"0"+B:""+B}function Ee(B){return B<=1&&(B=B*100+"%"),B}function pe(B){return U.round(parseFloat(B)*255).toString(16)}function De(B){return Y(B)/255}var Me=function(){var B="[-\\+]?\\d+%?",z="[-\\+]?\\d*\\.\\d+%?",H="(?:"+z+")|(?:"+B+")",ee="[\\s|\\(]+("+H+")[,|\\s]+("+H+")[,|\\s]+("+H+")\\s*\\)?",X="[\\s|\\(]+("+H+")[,|\\s]+("+H+")[,|\\s]+("+H+")[,|\\s]+("+H+")\\s*\\)?";return{CSS_UNIT:new RegExp(H),rgb:new RegExp("rgb"+ee),rgba:new RegExp("rgba"+X),hsl:new RegExp("hsl"+ee),hsla:new RegExp("hsla"+X),hsv:new RegExp("hsv"+ee),hsva:new RegExp("hsva"+X),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Ue(B){return!!Me.CSS_UNIT.exec(B)}function Ie(B){B=B.replace(L,"").replace(N,"").toLowerCase();var z=!1;if(D[B])B=D[B],z=!0;else if(B=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var H;return(H=Me.rgb.exec(B))?{r:H[1],g:H[2],b:H[3]}:(H=Me.rgba.exec(B))?{r:H[1],g:H[2],b:H[3],a:H[4]}:(H=Me.hsl.exec(B))?{h:H[1],s:H[2],l:H[3]}:(H=Me.hsla.exec(B))?{h:H[1],s:H[2],l:H[3],a:H[4]}:(H=Me.hsv.exec(B))?{h:H[1],s:H[2],v:H[3]}:(H=Me.hsva.exec(B))?{h:H[1],s:H[2],v:H[3],a:H[4]}:(H=Me.hex8.exec(B))?{r:Y(H[1]),g:Y(H[2]),b:Y(H[3]),a:De(H[4]),format:z?"name":"hex8"}:(H=Me.hex6.exec(B))?{r:Y(H[1]),g:Y(H[2]),b:Y(H[3]),format:z?"name":"hex"}:(H=Me.hex4.exec(B))?{r:Y(H[1]+""+H[1]),g:Y(H[2]+""+H[2]),b:Y(H[3]+""+H[3]),a:De(H[4]+""+H[4]),format:z?"name":"hex8"}:(H=Me.hex3.exec(B))?{r:Y(H[1]+""+H[1]),g:Y(H[2]+""+H[2]),b:Y(H[3]+""+H[3]),format:z?"name":"hex"}:!1}function ne(B){var z,H;return B=B||{level:"AA",size:"small"},z=(B.level||"AA").toUpperCase(),H=(B.size||"small").toLowerCase(),z!=="AA"&&z!=="AAA"&&(z="AA"),H!=="small"&&H!=="large"&&(H="small"),{level:z,size:H}}ge.exports?ge.exports=m:!(Z=function(){return m}.call(q,_,q,ge),Z!==void 0&&(ge.exports=Z))})(Math)},aKvl:function(ge,q,_){var Z=_("Sj9i"),U=Z.quadraticProjectPoint;function L(N,c,u,M,g,e,m,r,h){if(m===0)return!1;var a=m;if(h>c+a&&h>M+a&&h>e+a||h<c-a&&h<M-a&&h<e-a||r>N+a&&r>u+a&&r>g+a||r<N-a&&r<u-a&&r<g-a)return!1;var l=U(N,c,u,M,g,e,r,h,null);return l<=a/2}q.containStroke=L},aX58:function(ge,q,_){var Z=_("3gBT"),U=_("ItGF"),L=_("bYtY"),N=_("0s+r"),c=_("r6Bn"),u=_("7SHv"),M=_("MKOG"),g=_("zarK");/*!
* ZRender, a high performance 2d drawing library.
*
* Copyright (c) 2013, Baidu Inc.
* All rights reserved.
*
* LICENSE
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
*/var e=!U.canvasSupported,m={canvas:u},r={},h="4.3.1";function a(n,i){var v=new p(Z(),n,i);return r[v.id]=v,v}function l(n){if(n)n.dispose();else{for(var i in r)r.hasOwnProperty(i)&&r[i].dispose();r={}}return this}function d(n){return r[n]}function y(n,i){m[n]=i}function s(n){delete r[n]}var p=function(n,i,v){v=v||{},this.dom=i,this.id=n;var C=this,R=new c,w=v.renderer;if(e){if(!m.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");w="vml"}else(!w||!m[w])&&(w="canvas");var x=new m[w](i,R,v,n);this.storage=R,this.painter=x;var A=!U.node&&!U.worker?new g(x.getViewportRoot(),x.root):null;this.handler=new N(R,x,A,x.root),this.animation=new M({stage:{update:L.bind(this.flush,this)}}),this.animation.start(),this._needsRefresh;var o=R.delFromStorage,f=R.addToStorage;R.delFromStorage=function(E){o.call(R,E),E&&E.removeSelfFromZr(C)},R.addToStorage=function(E){f.call(R,E),E.addSelfToZr(C)}};p.prototype={constructor:p,getId:function(){return this.id},add:function(n){this.storage.addRoot(n),this._needsRefresh=!0},remove:function(n){this.storage.delRoot(n),this._needsRefresh=!0},configLayer:function(n,i){this.painter.configLayer&&this.painter.configLayer(n,i),this._needsRefresh=!0},setBackgroundColor:function(n){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(n),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh(),this._needsRefresh=this._needsRefreshHover=!1},refresh:function(){this._needsRefresh=!0},flush:function(){var n;this._needsRefresh&&(n=!0,this.refreshImmediately()),this._needsRefreshHover&&(n=!0,this.refreshHoverImmediately()),n&&this.trigger("rendered")},addHover:function(n,i){if(this.painter.addHover){var v=this.painter.addHover(n,i);return this.refreshHover(),v}},removeHover:function(n){this.painter.removeHover&&(this.painter.removeHover(n),this.refreshHover())},clearHover:function(){this.painter.clearHover&&(this.painter.clearHover(),this.refreshHover())},refreshHover:function(){this._needsRefreshHover=!0},refreshHoverImmediately:function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.refreshHover()},resize:function(n){n=n||{},this.painter.resize(n.width,n.height),this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},pathToImage:function(n,i){return this.painter.pathToImage(n,i)},setCursorStyle:function(n){this.handler.setCursorStyle(n)},findHover:function(n,i){return this.handler.findHover(n,i)},on:function(n,i,v){this.handler.on(n,i,v)},off:function(n,i){this.handler.off(n,i)},trigger:function(n,i){this.handler.trigger(n,i)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,s(this.id)}},q.version=h,q.init=a,q.dispose=l,q.getInstance=d,q.registerPainter=y},bT9E:function(ge,q,_){"use strict";_.d(q,"a",function(){return U});var Z=_("VTBJ");function U(L,N){var c=Object(Z.a)({},L);return Array.isArray(N)&&N.forEach(function(u){delete c[u]}),c}},bUJZ:function(ge,q){ge.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAABq1JREFUWAmVWGuIVVUU/vaZ2zjjOC9TwzFtwAjKHlJBNj4IYgJp/hghIWEE/ahAlCypqB8JoSiRJljQw6KoEGz6oQmNvxqdoB9hailZoZbj2xlndHzMvWf3rX3OOnefc888XLDv2nvttdda+1tr73PONbhJsnZdM64NPsll7YCZBYQtQMAmFPayz2ZPcNCFmvpdxrzR56bG+WPGqQc79PoShOEKGLMQ1hbcOstfsSA8j4wpcrIbQbDFTFzfmaeSlY0ZkB14bT5suIFBtGUXMzj6YzTChbQvXMifN+ghemtMw8Z90WT+74gBWbu9Cv0979HJyvyllI6JkKcjRkQ/MJvR1LbamKUlEWUpNyDbt6oJpeJ2GmCdeDQaAp7ayN14B4b1VVVYapo39Wd1KwJywVy/Tnjt3VnlcsHosixEIleZrNa+cCF/3hzGhOq2bFBq2am7NJ3q2l1GZgSDQTMw9U2gqsmty/0pXQTOrmVMQ950xp4xXZjevthPX3RadMl/u1kzmTTpnM/Dy9xsDZ2FwBXWqG7L+aPJukepHQBF6oE6I5Ex7RCfwCpVUVOwx5/jabJ7d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cpELioYOrWcdsUbmfRY9LrQmxEmBr7XztgHV5KKXciyBSSAaoM8ZA0kwc2R3tO4j4m1JWkTqIRopebLZy4G57/De2Q90PxshVt0ILPqGyPD74MBaPlIYmNoY3V6PefoY8+tefIUJhWtShSxoZIval4mz395l4fICbCNS1VOABV/GwRCZIx9HaOhhSJDxEYr7hr5jShCSsf16xiaYcGVyb+juEq2sgFU/5xXgvlfp/BrTV8M0vc+2Ue2nOdVTiLnZYLNZdnKVKkY1pKNC22reD10OKb+Ik5x7hSvFK7s/wNfhQ5uiYP7YCuxfV64Rh06MtI+22JbGYw7x6VGyd5XZztYmDPKl2OZ9KKpWDq+9Lb61/bkcRBUiww/F+vo2s+RYf3aFP3Z9u62pieHzU9q2pzAe7VHiVo4SgD8vH4gwS83z/algRCWdMreIqqJY98Ripm9z6phWpCC+9v1jL3096tr350GbtJ0XjLivSFkcU8LsJ7Xz+e6V/3dMRZFmBD6ixvRw+2vMC1f5oBuZxgxIl9oPq5ewCOVzaSFl0WPGd+gUMwEh/sPK8A+rl250qq3R+LgDUiN2a2Mzwsv8GJP6sjMp5xuna6LSGzXzL8HvQjBpp3n5Up9MjJf+B5WVB7lfjXHfAAAAAElFTkSuQmCC"},bYtY:function(ge,q){var _={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},Z={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},U=Object.prototype.toString,L=Array.prototype,N=L.forEach,c=L.filter,u=L.slice,M=L.map,g=L.reduce,e={};function m(H,ee){H==="createCanvas"&&(s=null),e[H]=ee}function r(H){if(H==null||typeof H!="object")return H;var ee=H,X=U.call(H);if(X==="[object Array]"){if(!Ue(H)){ee=[];for(var me=0,je=H.length;me<je;me++)ee[me]=r(H[me])}}else if(Z[X]){if(!Ue(H)){var Je=H.constructor;if(H.constructor.from)ee=Je.from(H);else{ee=new Je(H.length);for(var me=0,je=H.length;me<je;me++)ee[me]=r(H[me])}}}else if(!_[X]&&!Ue(H)&&!F(H)){ee={};for(var oe in H)H.hasOwnProperty(oe)&&(ee[oe]=r(H[oe]))}return ee}function h(H,ee,X){if(!D(ee)||!D(H))return X?r(ee):H;for(var me in ee)if(ee.hasOwnProperty(me)){var je=H[me],Je=ee[me];D(Je)&&D(je)&&!O(Je)&&!O(je)&&!F(Je)&&!F(je)&&!P(Je)&&!P(je)&&!Ue(Je)&&!Ue(je)?h(je,Je,X):(X||!(me in H))&&(H[me]=r(ee[me],!0))}return H}function a(H,ee){for(var X=H[0],me=1,je=H.length;me<je;me++)X=h(X,H[me],ee);return X}function l(H,ee){for(var X in ee)ee.hasOwnProperty(X)&&(H[X]=ee[X]);return H}function d(H,ee,X){for(var me in ee)ee.hasOwnProperty(me)&&(X?ee[me]!=null:H[me]==null)&&(H[me]=ee[me]);return H}var y=function(){return e.createCanvas()};e.createCanvas=function(){return document.createElement("canvas")};var s;function p(){return s||(s=y().getContext("2d")),s}function n(H,ee){if(H){if(H.indexOf)return H.indexOf(ee);for(var X=0,me=H.length;X<me;X++)if(H[X]===ee)return X}return-1}function i(H,ee){var X=H.prototype;function me(){}me.prototype=ee.prototype,H.prototype=new me;for(var je in X)X.hasOwnProperty(je)&&(H.prototype[je]=X[je]);H.prototype.constructor=H,H.superClass=ee}function v(H,ee,X){H="prototype"in H?H.prototype:H,ee="prototype"in ee?ee.prototype:ee,d(H,ee,X)}function C(H){return H?typeof H=="string"?!1:typeof H.length=="number":void 0}function R(H,ee,X){if(!(H&&ee))return;if(H.forEach&&H.forEach===N)H.forEach(ee,X);else if(H.length===+H.length)for(var me=0,je=H.length;me<je;me++)ee.call(X,H[me],me,H);else for(var Je in H)H.hasOwnProperty(Je)&&ee.call(X,H[Je],Je,H)}function w(H,ee,X){if(!(H&&ee))return;if(H.map&&H.map===M)return H.map(ee,X);for(var me=[],je=0,Je=H.length;je<Je;je++)me.push(ee.call(X,H[je],je,H));return me}function x(H,ee,X,me){if(!(H&&ee))return;if(H.reduce&&H.reduce===g)return H.reduce(ee,X,me);for(var je=0,Je=H.length;je<Je;je++)X=ee.call(me,X,H[je],je,H);return X}function A(H,ee,X){if(!(H&&ee))return;if(H.filter&&H.filter===c)return H.filter(ee,X);for(var me=[],je=0,Je=H.length;je<Je;je++)ee.call(X,H[je],je,H)&&me.push(H[je]);return me}function o(H,ee,X){if(!(H&&ee))return;for(var me=0,je=H.length;me<je;me++)if(ee.call(X,H[me],me,H))return H[me]}function f(H,ee){var X=u.call(arguments,2);return function(){return H.apply(ee,X.concat(u.call(arguments)))}}function E(H){var ee=u.call(arguments,1);return function(){return H.apply(this,ee.concat(u.call(arguments)))}}function O(H){return U.call(H)==="[object Array]"}function S(H){return typeof H=="function"}function b(H){return U.call(H)==="[object String]"}function D(H){var ee=typeof H;return ee==="function"||!!H&&ee==="object"}function P(H){return!!_[U.call(H)]}function I(H){return!!Z[U.call(H)]}function F(H){return typeof H=="object"&&typeof H.nodeType=="number"&&typeof H.ownerDocument=="object"}function K(H){return H!==H}function j(H){for(var ee=0,X=arguments.length;ee<X;ee++)if(arguments[ee]!=null)return arguments[ee]}function Y(H,ee){return H!=null?H:ee}function W(H,ee,X){return H!=null?H:ee!=null?ee:X}function Q(){return Function.call.apply(u,arguments)}function ie(H){if(typeof H=="number")return[H,H,H,H];var ee=H.length;return ee===2?[H[0],H[1],H[0],H[1]]:ee===3?[H[0],H[1],H[2],H[1]]:H}function Ee(H,ee){if(!H)throw new Error(ee)}function pe(H){return H==null?null:typeof H.trim=="function"?H.trim():H.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var De="__ec_primitive__";function Me(H){H[De]=!0}function Ue(H){return H[De]}function Ie(H){var ee=O(H);this.data={};var X=this;H instanceof Ie?H.each(me):H&&R(H,me);function me(je,Je){ee?X.set(je,Je):X.set(Je,je)}}Ie.prototype={constructor:Ie,get:function(H){return this.data.hasOwnProperty(H)?this.data[H]:null},set:function(H,ee){return this.data[H]=ee},each:function(H,ee){ee!==void 0&&(H=f(H,ee));for(var X in this.data)this.data.hasOwnProperty(X)&&H(this.data[X],X)},removeKey:function(H){delete this.data[H]}};function ne(H){return new Ie(H)}function B(H,ee){for(var X=new H.constructor(H.length+ee.length),me=0;me<H.length;me++)X[me]=H[me];var je=H.length;for(me=0;me<ee.length;me++)X[me+je]=ee[me];return X}function z(){}q.$override=m,q.clone=r,q.merge=h,q.mergeAll=a,q.extend=l,q.defaults=d,q.createCanvas=y,q.getContext=p,q.indexOf=n,q.inherits=i,q.mixin=v,q.isArrayLike=C,q.each=R,q.map=w,q.reduce=x,q.filter=A,q.find=o,q.bind=f,q.curry=E,q.isArray=O,q.isFunction=S,q.isString=b,q.isObject=D,q.isBuiltInObject=P,q.isTypedArray=I,q.isDom=F,q.eqNaN=K,q.retrieve=j,q.retrieve2=Y,q.retrieve3=W,q.slice=Q,q.normalizeCssArray=ie,q.assert=Ee,q.trim=pe,q.setAsPrimitive=Me,q.isPrimitive=Ue,q.createHashMap=ne,q.concatArray=B,q.noop=z},cFMs:function(ge,q){ge.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJgAAAA4CAYAAAAB3jHPAAAAAXNSR0IArs4c6QAAIABJREFUeF61XQl4VdW1/m9GIAlhDGEIBATB2aetvCfYwYoDqKioVZGi4vxq9VlHVNSqtCA+obaKoBat4gRiHVBQBH2aiG3VKgIhYQhhyEQIhAwkuee8b49n7X32ubkRe7+PL3c4e5999vr3v/619jqHGH7gl+/7qdhSdAI8nAJgFHx/FHwUwPdyAOQAfgZ8X55V/mWf2b8YxF/+Ir/xj+R7/V4ed6jt2blUn3ocpG91fjU+dQwdl++RmWT9qWug79Wl0WPJ5fL+AcTYG/aKyXlhf8VH4zt1jB4faWfblfZL+1LHGedVX6r+aGd6kMEYla1CW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AaaKye7Nva8fDbpsCPnQYkU36trEMBScEToZlCbs/qx45mXdEnZTI7TWCwkmubJoFeoqykJ0ftCthTbTGarc94e/sY9V0y7i8Zt/Z9+ukck/0gAKPD5Bvm371zItoxFr5/BGIeq20ugOfnIIYcePIxBQYz2WCKqG4Q/lmczsVsdjRKE7b204I0Li02sMtsFIsYwYC6ZY3sZ9Jcmcr869k168GE35A/0tOHGCsBKP8NEV+n3GGS5/9/aODhUXT7opcAAAAASUVORK5CYII="},cRFk:function(ge,q,_){ge.exports=_.p+"static/RepositoryNoneData.828085a8.png"},chpo:function(ge,q,_){"use strict";Object.defineProperty(q,"__esModule",{value:!0}),q.default=void 0;var Z=1,U=function(){return"".concat(Z++)};q.default=U},csWT:function(ge,q,_){ge.exports=_.p+"static/choose.4ad1045f.svg"},cz0n:function(ge,q,_){ge.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"}},dMvE:function(ge,q){var _={linear:function(U){return U},quadraticIn:function(U){return U*U},quadraticOut:function(U){return U*(2-U)},quadraticInOut:function(U){return(U*=2)<1?.5*U*U:-.5*(--U*(U-2)-1)},cubicIn:function(U){return U*U*U},cubicOut:function(U){return--U*U*U+1},cubicInOut:function(U){return(U*=2)<1?.5*U*U*U:.5*((U-=2)*U*U+2)},quarticIn:function(U){return U*U*U*U},quarticOut:function(U){return 1- --U*U*U*U},quarticInOut:function(U){return(U*=2)<1?.5*U*U*U*U:-.5*((U-=2)*U*U*U-2)},quinticIn:function(U){return U*U*U*U*U},quinticOut:function(U){return--U*U*U*U*U+1},quinticInOut:function(U){return(U*=2)<1?.5*U*U*U*U*U:.5*((U-=2)*U*U*U*U+2)},sinusoidalIn:function(U){return 1-Math.cos(U*Math.PI/2)},sinusoidalOut:function(U){return Math.sin(U*Math.PI/2)},sinusoidalInOut:function(U){return .5*(1-Math.cos(Math.PI*U))},exponentialIn:function(U){return U===0?0:Math.pow(1024,U-1)},exponentialOut:function(U){return U===1?1:1-Math.pow(2,-10*U)},exponentialInOut:function(U){return U===0?0:U===1?1:(U*=2)<1?.5*Math.pow(1024,U-1):.5*(-Math.pow(2,-10*(U-1))+2)},circularIn:function(U){return 1-Math.sqrt(1-U*U)},circularOut:function(U){return Math.sqrt(1- --U*U)},circularInOut:function(U){return(U*=2)<1?-.5*(Math.sqrt(1-U*U)-1):.5*(Math.sqrt(1-(U-=2)*U)+1)},elasticIn:function(U){var L,N=.1,c=.4;return U===0?0:U===1?1:(!N||N<1?(N=1,L=c/4):L=c*Math.asin(1/N)/(2*Math.PI),-(N*Math.pow(2,10*(U-=1))*Math.sin((U-L)*(2*Math.PI)/c)))},elasticOut:function(U){var L,N=.1,c=.4;return U===0?0:U===1?1:(!N||N<1?(N=1,L=c/4):L=c*Math.asin(1/N)/(2*Math.PI),N*Math.pow(2,-10*U)*Math.sin((U-L)*(2*Math.PI)/c)+1)},elasticInOut:function(U){var L,N=.1,c=.4;return U===0?0:U===1?1:(!N||N<1?(N=1,L=c/4):L=c*Math.asin(1/N)/(2*Math.PI),(U*=2)<1?-.5*(N*Math.pow(2,10*(U-=1))*Math.sin((U-L)*(2*Math.PI)/c)):N*Math.pow(2,-10*(U-=1))*Math.sin((U-L)*(2*Math.PI)/c)*.5+1)},backIn:function(U){var L=1.70158;return U*U*((L+1)*U-L)},backOut:function(U){var L=1.70158;return--U*U*((L+1)*U+L)+1},backInOut:function(U){var L=1.70158*1.525;return(U*=2)<1?.5*(U*U*((L+1)*U-L)):.5*((U-=2)*U*((L+1)*U+L)+2)},bounceIn:function(U){return 1-_.bounceOut(1-U)},bounceOut:function(U){return U<1/2.75?7.5625*U*U:U<2/2.75?7.5625*(U-=1.5/2.75)*U+.75:U<2.5/2.75?7.5625*(U-=2.25/2.75)*U+.9375:7.5625*(U-=2.625/2.75)*U+.984375},bounceInOut:function(U){return U<.5?_.bounceIn(U*2)*.5:_.bounceOut(U*2-1)*.5+.5}},Z=_;ge.exports=Z},djh8:function(ge,q,_){ge.exports=_.p+"static/qrCode.d852fdfc.png"},dqUG:function(ge,q,_){var Z=_("Gev7"),U=_("bYtY"),L=_("6GrX"),N=_("pzxd"),c=_("gut8"),u=c.ContextCachedBy,M=function(e){Z.call(this,e)};M.prototype={constructor:M,type:"text",brush:function(e,m){var r=this.style;this.__dirty&&N.normalizeTextStyle(r,!0),r.fill=r.stroke=r.shadowBlur=r.shadowColor=r.shadowOffsetX=r.shadowOffsetY=null;var h=r.text;if(h!=null&&(h+=""),!N.needDrawText(h,r)){e.__attrCachedBy=u.NONE;return}this.setTransform(e),N.renderText(this,e,h,r,null,m),this.restoreTransform(e)},getBoundingRect:function(){var e=this.style;if(this.__dirty&&N.normalizeTextStyle(e,!0),!this._rect){var m=e.text;m!=null?m+="":m="";var r=L.getBoundingRect(e.text+"",e.font,e.textAlign,e.textVerticalAlign,e.textPadding,e.textLineHeight,e.rich);if(r.x+=e.x||0,r.y+=e.y||0,N.getStroke(e.textStroke,e.textStrokeWidth)){var h=e.textStrokeWidth;r.x-=h/2,r.y-=h/2,r.width+=h,r.height+=h}this._rect=r}return this._rect}},U.inherits(M,Z);var g=M;ge.exports=g},ek5K:function(ge,q){ge.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAAB4CAYAAABl7nX2AAAAAXNSR0IArs4c6QAAIABJREFUeF7VXQd4VEXXfufuZrPZ3WTTQ09CySaQUDSA0kE6UmJBPhAUKwiCivqLFSsq0rHRQRQRkSYWVEATUqhBulKlBQJsyrZsufM/c5f0zd57dzf+/3eeJ08Cd2bOmfeemTlz5sy5BP8yJSQkqNVq9W2U0nQAyZTSlhzHNaaURgMIA6ACcJoQstZut8+JiIiwqFSqIYTSOykQRwBKASOh9BShdE+j+PiD69evd/3L3ahgR/4NxgaDoRGl9AFCyBAA3QAES+R7JiwszKpUKNp4KW8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Ko0nZVSghzXZ1ghO8LnZOfEtJCC6kGhKbVfMfFf2Z2VzFkyUUtE/NTkyevxI2e71lUIIhJRXdevVDbHS47N2CN8CDeAcaOK4jiHoH0cSF4HpQOHgi0QogxJWaFB/s0QFnPpyVzrkwiAeag8BJQI9MmLPiMYfTKTvlp1RtatS4GQYNu1dwrHr7SJXU9qqWI5QXjjG1LitU1CG8ILbK2kkQ2ImbSaGVMGRrcibGtOSESMkezDFjxj3CA8tuNeP317BqisNCMEaOeYRE6HVUjluLXUmTDSoLk+U4aX2oWYqA54ALHMGzrQ2Jm/4Xo7KiLYD7MrcAAAAASUVORK5CYII="},"f0W+":function(ge,q,_){ge.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(ge,q,_){ge.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"}},fW2E:function(ge,q){var _={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1};function Z(U,L,N){return _.hasOwnProperty(L)?N*=U.dpr:N}ge.exports=Z},fgAr:function(ge,q,_){ge.exports={flex_box_center:"flex_box_center___3W32R",flex_space_between:"flex_space_between___2uUoZ",flex_box_vertical_center:"flex_box_vertical_center___3Oxpz",flex_box_center_end:"flex_box_center_end___2tkyR",flex_box_column:"flex_box_column___2IFiF",btns:"btns___1c8D8",confirm:"confirm___2gIuB",cancel:"cancel___1ssuo"}},fjLI:function(ge,q,_){"use strict";_.d(q,"f",function(){return a}),_.d(q,"b",function(){return l}),_.d(q,"a",function(){return d}),_.d(q,"d",function(){return y}),_.d(q,"e",function(){return s}),_.d(q,"c",function(){return p});var Z=_("8HAY"),U=_("Vhoy"),L=_("MI8n"),N=_("JYp7"),c=_("pmY6"),u=_("24hK"),M=_("nnTU"),g=_("T8No"),e=_("Cg/j"),m=_("t9D7"),r=function(n,i,v,C){var R=arguments.length,w=R<3?i:C===null?C=Object.getOwnPropertyDescriptor(i,v):C,x;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(n,i,v,C);else for(var A=n.length-1;A>=0;A--)(x=n[A])&&(w=(R<3?x(w):R>3?x(i,v,w):x(i,v))||w);return R>3&&w&&Object.defineProperty(i,v,w),w},h=function(n,i){return function(v,C){i(v,C,n)}};function a(n){return n.command!==void 0}class l{constructor(n){this.id=l._idPool++,this._debugName=n}}l._idPool=0,l.CommandPalette=new l("CommandPalette"),l.EditorContext=new l("EditorContext"),l.SimpleEditorContext=new l("SimpleEditorContext"),l.EditorContextCopy=new l("EditorContextCopy"),l.EditorContextPeek=new l("EditorContextPeek"),l.MenubarEditMenu=new l("MenubarEditMenu"),l.MenubarCopy=new l("MenubarCopy"),l.MenubarGoMenu=new l("MenubarGoMenu"),l.MenubarSelectionMenu=new l("MenubarSelectionMenu"),l.InlineCompletionsActions=new l("InlineCompletionsActions");const d=Object(e.c)("menuService"),y=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new L.b,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:n=>n===l.CommandPalette}}addCommand(n){return this.addCommands(N.a.single(n))}addCommands(n){for(const i of n)this._commands.set(i.id,i);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),Object(c.i)(()=>{let i=!1;for(const v of n)i=this._commands.delete(v.id)||i;i&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(n){return this._commands.get(n)}getCommands(){const n=new Map;return this._commands.forEach((i,v)=>n.set(v,i)),n}appendMenuItem(n,i){return this.appendMenuItems(N.a.single({id:n,item:i}))}appendMenuItems(n){const i=new Set,v=new u.a;for(const{id:C,item:R}of n){let w=this._menuItems.get(C);w||(w=new u.a,this._menuItems.set(C,w)),v.push(w.push(R)),i.add(C)}return this._onDidChangeMenu.fire(i),Object(c.i)(()=>{if(v.size>0){for(let C of v)C();this._onDidChangeMenu.fire(i),v.clear()}})}getMenuItems(n){let i;return this._menuItems.has(n)?i=[...this._menuItems.get(n)]:i=[],n===l.CommandPalette&&this._appendImplicitItems(i),i}_appendImplicitItems(n){const i=new Set;for(const v of n)a(v)&&(i.add(v.command.id),v.alt&&i.add(v.alt.id));this._commands.forEach((v,C)=>{i.has(C)||n.push({command:v})})}};class s extends Z.e{constructor(n,i,v,C){super(`submenuitem.${n.submenu.id}`,typeof n.title=="string"?n.title:n.title.value,[],"submenu");this.item=n,this._menuService=i,this._contextKeyService=v,this._options=C}get actions(){const n=[],i=this._menuService.createMenu(this.item.submenu,this._contextKeyService),v=i.getActions(this._options);i.dispose();for(const[,C]of v)C.length>0&&(n.push(...C),n.push(new Z.d));return n.length&&n.pop(),n}}let p=class n{constructor(i,v,C,R,w){var x,A;if(this._commandService=w,this.id=i.id,this.label=(C==null?void 0:C.renderShortTitle)&&i.shortTitle?typeof i.shortTitle=="string"?i.shortTitle:i.shortTitle.value:typeof i.title=="string"?i.title:i.title.value,this.tooltip=(A=typeof i.tooltip=="string"?i.tooltip:(x=i.tooltip)===null||x===void 0?void 0:x.value)!==null&&A!==void 0?A:"",this.enabled=!i.precondition||R.contextMatchesRules(i.precondition),this.checked=void 0,i.toggled){const o=i.toggled.condition?i.toggled:{condition:i.toggled};this.checked=R.contextMatchesRules(o.condition),this.checked&&o.tooltip&&(this.tooltip=typeof o.tooltip=="string"?o.tooltip:o.tooltip.value),o.title&&(this.label=typeof o.title=="string"?o.title:o.title.value)}this.item=i,this.alt=v?new n(v,void 0,C,R,w):void 0,this._options=C,m.d.isThemeIcon(i.icon)&&(this.class=U.a.asClassName(i.icon))}dispose(){}run(...i){var v,C;let R=[];return((v=this._options)===null||v===void 0?void 0:v.arg)&&(R=[...R,this._options.arg]),((C=this._options)===null||C===void 0?void 0:C.shouldForwardArgs)&&(R=[...R,...i]),this._commandService.executeCommand(this.id,...R)}};p=r([h(3,g.b),h(4,M.b)],p)},gut8:function(ge,q){var _={NONE:0,STYLE_BIND:1,PLAIN_TEXT:2},Z=9;q.ContextCachedBy=_,q.WILL_BE_RESTORED=Z},h179:function(ge,q,_){ge.exports=_.p+"static/icon2.909d5f9b.svg"},h78n:function(ge,q,_){"use strict";_.d(q,"a",function(){return b});var Z=_("q1tI"),U=_.n(Z),L=_("TSYQ"),N=_.n(L),c={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},u=function(I){var F=I.map(function(){return Object(Z.useRef)()}),K=Object(Z.useRef)();return Object(Z.useEffect)(function(){var j=Date.now(),Y=!1;Object.keys(F).forEach(function(W){var Q=F[W].current;if(!Q)return;Y=!0;var ie=Q.style;ie.transitionDuration=".3s, .3s, .3s, .06s",K.current&&j-K.current<100&&(ie.transitionDuration="0s, 0s")}),Y&&(K.current=Date.now())}),[F]};function M(){return M=Object.assign||function(P){for(var I=1;I<arguments.length;I++){var F=arguments[I];for(var K in F)Object.prototype.hasOwnProperty.call(F,K)&&(P[K]=F[K])}return P},M.apply(this,arguments)}function g(P,I){return a(P)||h(P,I)||m(P,I)||e()}function e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function m(P,I){if(!P)return;if(typeof P=="string")return r(P,I);var F=Object.prototype.toString.call(P).slice(8,-1);if(F==="Object"&&P.constructor&&(F=P.constructor.name),F==="Map"||F==="Set")return Array.from(P);if(F==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(F))return r(P,I)}function r(P,I){(I==null||I>P.length)&&(I=P.length);for(var F=0,K=new Array(I);F<I;F++)K[F]=P[F];return K}function h(P,I){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(P)))return;var F=[],K=!0,j=!1,Y=void 0;try{for(var W=P[Symbol.iterator](),Q;!(K=(Q=W.next()).done)&&!(F.push(Q.value),I&&F.length===I);K=!0);}catch(ie){j=!0,Y=ie}finally{try{!K&&W.return!=null&&W.return()}finally{if(j)throw Y}}return F}function a(P){if(Array.isArray(P))return P}function l(P,I){if(P==null)return{};var F=d(P,I),K,j;if(Object.getOwnPropertySymbols){var Y=Object.getOwnPropertySymbols(P);for(j=0;j<Y.length;j++){if(K=Y[j],I.indexOf(K)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(P,K))continue;F[K]=P[K]}}return F}function d(P,I){if(P==null)return{};var F={},K=Object.keys(P),j,Y;for(Y=0;Y<K.length;Y++){if(j=K[Y],I.indexOf(j)>=0)continue;F[j]=P[j]}return F}var y=function(I){var F=I.className,K=I.percent,j=I.prefixCls,Y=I.strokeColor,W=I.strokeLinecap,Q=I.strokeWidth,ie=I.style,Ee=I.trailColor,pe=I.trailWidth,De=I.transition,Me=l(I,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete Me.gapPosition;var Ue=Array.isArray(K)?K:[K],Ie=Array.isArray(Y)?Y:[Y],ne=u(Ue),B=g(ne,1),z=B[0],H=Q/2,ee=100-Q/2,X="M ".concat(W==="round"?H:0,",").concat(H,`
L `).concat(W==="round"?ee:100,",").concat(H),me="0 0 100 ".concat(Q),je=0;return U.a.createElement("svg",M({className:N()("".concat(j,"-line"),F),viewBox:me,preserveAspectRatio:"none",style:ie},Me),U.a.createElement("path",{className:"".concat(j,"-line-trail"),d:X,strokeLinecap:W,stroke:Ee,strokeWidth:pe||Q,fillOpacity:"0"}),Ue.map(function(Je,oe){var Ae={strokeDasharray:"".concat(Je,"px, 100px"),strokeDashoffset:"-".concat(je,"px"),transition:De||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},ye=Ie[oe]||Ie[Ie.length-1];return je+=Je,U.a.createElement("path",{key:oe,className:"".concat(j,"-line-path"),d:X,strokeLinecap:W,stroke:ye,strokeWidth:Q,fillOpacity:"0",ref:z[oe],style:Ae})}))};y.defaultProps=c;var s=y;function p(){return p=Object.assign||function(P){for(var I=1;I<arguments.length;I++){var F=arguments[I];for(var K in F)Object.prototype.hasOwnProperty.call(F,K)&&(P[K]=F[K])}return P},p.apply(this,arguments)}function n(P,I){return w(P)||R(P,I)||v(P,I)||i()}function i(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function v(P,I){if(!P)return;if(typeof P=="string")return C(P,I);var F=Object.prototype.toString.call(P).slice(8,-1);if(F==="Object"&&P.constructor&&(F=P.constructor.name),F==="Map"||F==="Set")return Array.from(P);if(F==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(F))return C(P,I)}function C(P,I){(I==null||I>P.length)&&(I=P.length);for(var F=0,K=new Array(I);F<I;F++)K[F]=P[F];return K}function R(P,I){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(P)))return;var F=[],K=!0,j=!1,Y=void 0;try{for(var W=P[Symbol.iterator](),Q;!(K=(Q=W.next()).done)&&!(F.push(Q.value),I&&F.length===I);K=!0);}catch(ie){j=!0,Y=ie}finally{try{!K&&W.return!=null&&W.return()}finally{if(j)throw Y}}return F}function w(P){if(Array.isArray(P))return P}function x(P,I){if(P==null)return{};var F=A(P,I),K,j;if(Object.getOwnPropertySymbols){var Y=Object.getOwnPropertySymbols(P);for(j=0;j<Y.length;j++){if(K=Y[j],I.indexOf(K)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(P,K))continue;F[K]=P[K]}}return F}function A(P,I){if(P==null)return{};var F={},K=Object.keys(P),j,Y;for(Y=0;Y<K.length;Y++){if(j=K[Y],I.indexOf(j)>=0)continue;F[j]=P[j]}return F}var o=0;function f(P){return+P.replace("%","")}function E(P){return Array.isArray(P)?P:[P]}function O(P,I,F,K){var j=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,Y=arguments.length>5?arguments[5]:void 0,W=50-K/2,Q=0,ie=-W,Ee=0,pe=-2*W;switch(Y){case"left":Q=-W,ie=0,Ee=2*W,pe=0;break;case"right":Q=W,ie=0,Ee=-2*W,pe=0;break;case"bottom":ie=W,pe=2*W;break;default:}var De="M 50,50 m ".concat(Q,",").concat(ie,`
a `).concat(W,",").concat(W," 0 1 1 ").concat(Ee,",").concat(-pe,`
a `).concat(W,",").concat(W," 0 1 1 ").concat(-Ee,",").concat(pe),Me=Math.PI*2*W,Ue={stroke:F,strokeDasharray:"".concat(I/100*(Me-j),"px ").concat(Me,"px"),strokeDashoffset:"-".concat(j/2+P/100*(Me-j),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:De,pathStyle:Ue}}var S=function(I){var F=I.prefixCls,K=I.strokeWidth,j=I.trailWidth,Y=I.gapDegree,W=I.gapPosition,Q=I.trailColor,ie=I.strokeLinecap,Ee=I.style,pe=I.className,De=I.strokeColor,Me=I.percent,Ue=x(I,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),Ie=Object(Z.useMemo)(function(){return o+=1,o},[]),ne=O(0,100,Q,K,Y,W),B=ne.pathString,z=ne.pathStyle,H=E(Me),ee=E(De),X=ee.find(function(Ae){return Object.prototype.toString.call(Ae)==="[object Object]"}),me=u(H),je=n(me,1),Je=je[0],oe=function(){var ye=0;return H.map(function(Le,We){var Xe=ee[We]||ee[ee.length-1],ct=Object.prototype.toString.call(Xe)==="[object Object]"?"url(#".concat(F,"-gradient-").concat(Ie,")"):"",lt=O(ye,Le,Xe,K,Y,W);return ye+=Le,U.a.createElement("path",{key:We,className:"".concat(F,"-circle-path"),d:lt.pathString,stroke:ct,strokeLinecap:ie,strokeWidth:K,opacity:Le===0?0:1,fillOpacity:"0",style:lt.pathStyle,ref:Je[We]})})};return U.a.createElement("svg",p({className:N()("".concat(F,"-circle"),pe),viewBox:"0 0 100 100",style:Ee},Ue),X&&U.a.createElement("defs",null,U.a.createElement("linearGradient",{id:"".concat(F,"-gradient-").concat(Ie),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(X).sort(function(Ae,ye){return f(Ae)-f(ye)}).map(function(Ae,ye){return U.a.createElement("stop",{key:ye,offset:Ae,stopColor:X[Ae]})}))),U.a.createElement("path",{className:"".concat(F,"-circle-trail"),d:B,stroke:Q,strokeLinecap:ie,strokeWidth:j||K,fillOpacity:"0",style:z}),oe().reverse())};S.defaultProps=c;var b=S,D={Line:s,Circle:b}},h7HQ:function(ge,q,_){var Z=_("y+Vt"),U=_("T6xi"),L=Z.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(N,c){U.buildPath(N,c,!0)}});ge.exports=L},hOwI:function(ge,q){var _=Math.log(2);function Z(L,N,c,u,M,g){var e=u+"-"+M,m=L.length;if(g.hasOwnProperty(e))return g[e];if(N===1){var r=Math.round(Math.log((1<<m)-1&~M)/_);return L[c][r]}for(var h=u|1<<c,a=c+1;u&1<<a;)a++;for(var l=0,d=0,y=0;d<m;d++){var s=1<<d;s&M||(l+=(y%2?-1:1)*L[c][d]*Z(L,N-1,a,h,M|s,g),y++)}return g[e]=l,l}function U(L,N){var c=[[L[0],L[1],1,0,0,0,-N[0]*L[0],-N[0]*L[1]],[0,0,0,L[0],L[1],1,-N[1]*L[0],-N[1]*L[1]],[L[2],L[3],1,0,0,0,-N[2]*L[2],-N[2]*L[3]],[0,0,0,L[2],L[3],1,-N[3]*L[2],-N[3]*L[3]],[L[4],L[5],1,0,0,0,-N[4]*L[4],-N[4]*L[5]],[0,0,0,L[4],L[5],1,-N[5]*L[4],-N[5]*L[5]],[L[6],L[7],1,0,0,0,-N[6]*L[6],-N[6]*L[7]],[0,0,0,L[6],L[7],1,-N[7]*L[6],-N[7]*L[7]]],u={},M=Z(c,8,0,0,0,u);if(M===0)return;for(var g=[],e=0;e<8;e++)for(var m=0;m<8;m++)g[m]==null&&(g[m]=0),g[m]+=((e+m)%2?-1:1)*Z(c,7,e===0?1:0,1<<e,1<<m,u)/M*N[e];return function(r,h,a){var l=h*g[6]+a*g[7]+1;r[0]=(h*g[0]+a*g[1]+g[2])/l,r[1]=(h*g[3]+a*g[4]+g[5])/l}}q.buildTransformer=U},hX1E:function(ge,q){var _=Math.PI*2;function Z(U){return U%=_,U<0&&(U+=_),U}q.normalizeRadian=Z},hgre:function(ge,q,_){"use strict";var Z=_("miYZ"),U=_("tsqr"),L=_("9og8"),N=_("WmNS"),c=_.n(N),u=_("q1tI"),M=_.n(u),g=_("GUcZ"),e=_("ulZh"),m=_.n(e),r=_("xKgJ"),h=_("P5Jw"),a=_.n(h),l=_("bntm"),d=_("4xil"),y=_.n(d);function s(v){if(isNaN(v))return{minutes:"00",seconds:"00"};var C=new Date(v*1e3).toISOString().substr(11,8);return{hour:C.substr(0,2),minutes:C.substr(3,2),seconds:C.substr(6,2)}}Object.defineProperty(HTMLMediaElement.prototype,"playing",{get:function(){return this.currentTime>0&&!this.paused&&!this.ended&&this.readyState>2}});function p(v,C){return v-C}function n(v){v.sort(p);for(var C=0,R=0;R<v.length-1;R++){var w=Math.abs(v[R+1]-v[R]);w<21&&(C+=w)}return C}var i=/(android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini)/i;q.a=Object(u.forwardRef)(function(v,C){var R,w=v.src,x=v.toLog,A=v.videoId,o=v.logWatchHistory,f=v.courseId,E=f===void 0?null:f,O=v.startTime,S=v.handlePause,b=S===void 0?function(){}:S,D=v.handlePlay,P=D===void 0?function(){}:D,I=v.handlePlayEnded,F=I===void 0?function(){}:I,K=v.videoSpeed,j=K===void 0?1:K,Y=w==null||((R=w.split("."))===null||R===void 0)?void 0:R.pop(),W=Y==="flv",Q=Object(u.useRef)(),ie=Object(u.useRef)(),Ee=Object(u.useRef)(),pe=Object(u.useRef)(),De=Object(u.useRef)(),Me=Object(u.useRef)(),Ue=Object(u.useRef)(),Ie=Object(u.useRef)(),ne=Object(u.useRef)(),B=Object(u.useRef)(),z=Object(u.useRef)(),H=Object(u.useRef)(),ee=Object(u.useRef)(),X=Object(u.useRef)(),me=navigator.userAgent.toLowerCase().match(i),je=me?me[0]:"pc",Je=Object(u.useRef)(!1),oe=Object(r.y)(),Ae=0,ye=0,Le=0,We=null,Xe=!1,ct=20,lt=1,St=!1,Dt=!1,bt=[];Object(u.useImperativeHandle)(C,function(){return{getLastUpdatedTime:function(){return Q.current.currentTime},getDuration:function(){return Q.current.duration}}});var ht=Object(u.useCallback)(function(le){var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Re={point:Q.current.currentTime};We?(Re.log_id=We,Re.watch_duration=n(bt),Re.total_duration=ye):(E?(Re.video_id=parseInt(A,10),Re.course_id=E):Re.video_id=A,Re.duration=Ae,Re.device=je),fe&&(Re.ed="1");function ce(){return he.apply(this,arguments)}function he(){return he=Object(L.a)(c.a.mark(function Se(){var we;return c.a.wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:return St=!0,Ye.next=3,o(Re);case 3:we=Ye.sent,We=we,St=!1,le&&le();case 7:case"end":return Ye.stop()}},Se)})),he.apply(this,arguments)}ce()},[A,E]);Object(u.useEffect)(function(){U.b.destroy();var le=null;return g.a.isSupported&&W&&w&&(w==null?void 0:w.indexOf(".m3u8"))<0?(le=g.a.createPlayer({type:"flv",volume:.8,cors:!0,url:w,muted:!1}),Q.current&&(le.attachMediaElement(Q.current),le.load())):Q.current.setAttribute("src",w),Ft(),function(){le&&(le.unload(),le.pause(),le.destroy(),le=null)}},[Q,W,w]);function Ut(){Q.current.paused?(pe.current.style.display="none",De.current.style.display="block"):(pe.current.style.display="block",De.current.style.display="none")}function Ft(){z.current.style.display="none",ee.current.style.display="none",H.current.style.display="none",Q.current.muted||Q.current.volume===0?z.current.style.display="block":Q.current.volume>0&&Q.current.volume<=.5?ee.current.style.display="block":H.current.style.display="block"}Object(u.useEffect)(function(){var le=document.getElementById("play"),fe=document.querySelectorAll(".playback-icons use");function Re(){P(),O&&!Je.current&&(Q.current.currentTime=O),Je.current=!0,bt.push(Q.current.currentTime),Xe||(Xe=!0,x&&ht())}function ce(){return he.apply(this,arguments)}function he(){return he=Object(L.a)(c.a.mark(function qe(){return c.a.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:Ut(),bt.push(Q.current.currentTime),x&&ht(function(){We=null,Le=0,Xe=!1,St=!1,Dt=!1,bt=[],ye=0,lt=1},!0);case 3:case"end":return Be.stop()}},qe)})),he.apply(this,arguments)}function Se(){Me.current.value=Math.round(Q.current.currentTime),Ue.current.value=Math.round(Q.current.currentTime)}function we(){var qe=s(Math.round(Q.current.currentTime));ne.current.innerText="".concat(qe.hour>0?qe.hour+":":"").concat(qe.minutes,":").concat(qe.seconds),ne.current.setAttribute("datetime","".concat(qe.hour>0?" "+qe.hour+" ":"").concat(qe.minutes,"m ").concat(qe.seconds,"s"))}function Ze(){var qe=Math.round(Q.current.duration);Me.current.setAttribute("max",qe),Ue.current.setAttribute("max",qe);var Ce=s(qe);Ie.current.innerText="".concat(Ce.hour>0?Ce.hour+":":"").concat(Ce.minutes,":").concat(Ce.seconds),Ie.current.setAttribute("datetime","".concat(Ce.hour>0?" "+Ce.hour+" ":"").concat(Ce.minutes,"m ").concat(Ce.seconds,"s"))}function Ye(){var qe=Math.round(Q.current.duration);Me.current.setAttribute("max",qe),Ue.current.setAttribute("max",qe);var Ce=s(qe);Ie.current.innerText="".concat(Ce.hour>0?Ce.hour+":":"").concat(Ce.minutes,":").concat(Ce.seconds),Ie.current.setAttribute("datetime","".concat(Ce.hour>0?" "+Ce.hour+" ":"").concat(Ce.minutes,"m ").concat(Ce.seconds,"s")),Se(),we();var Be=ie.current.getBoundingClientRect(),dt=Be.width,ut=Be.height,It=Be.x,wt=Be.y;if(It<0||wt<0||!dt)return;if(!Dt){var gt=Q.current.currentTime,Nt=gt-Le;Math.abs(Nt)<10?(ye+=Math.abs(Nt),Le=gt,St||ye-lt*ct>=0&&(lt++,bt.push(Le),x&&ht())):(Le=gt,x&&ht())}}function it(){Dt=!0}function Et(){Q.current.playing&&bt.push(Q.current.currentTime,Le),Le=Q.current.currentTime,Dt=!1}function Pt(){Ae=Q.current.duration,Ae<=20&&(ct=Ae/3),Q.current.addEventListener("play",Re)}function zt(qe){qe.preventDefault(),Object(l.a)()?(Q.current.style.width="100%",Q.current.style.height="100%"):Q.current.style.cssText=""}function Rt(){b()}function rt(qe){var Ce=qe.target.dataset.seek?qe.target.dataset.seek:qe.target.value;Q.current.currentTime=Ce,Ue.current.value=Ce,Me.current.value=Ce}function st(qe){var Ce=Math.round(qe.offsetX/qe.target.clientWidth*parseInt(qe.target.getAttribute("max"),10));Me.current.setAttribute("data-seek",Ce);var Be=s(Ce);B.current.textContent="".concat(Be.hour>0?Be.hour+":":"").concat(Be.minutes,":").concat(Be.seconds);var dt=Q.current.getBoundingClientRect();B.current.style.left="".concat(qe.pageX-dt.left,"px")}return Ee.current.addEventListener(Object(l.c)(),zt),Q.current.addEventListener("canplay",Pt),Q.current.addEventListener("ended",ce),Q.current.addEventListener("seeking",it),Q.current.addEventListener("seeked",Et),Q.current.addEventListener("loadedmetadata",Ze),Me.current.addEventListener("mousemove",st),Me.current.addEventListener("input",rt),Q.current.addEventListener("timeupdate",Ye),Q.current.addEventListener("pause",Rt),Q.current.addEventListener("volumechange",Ft),function(){Q.current.removeEventListener("canplay",Pt),Q.current.removeEventListener("play",Re),Q.current.removeEventListener("ended",ce),Q.current.removeEventListener("seeking",it),Q.current.removeEventListener("seeked",Et),Me.current.removeEventListener("mousemove",st),Me.current.removeEventListener("input",rt),Q.current.removeEventListener("timeupdate",Ye),Q.current.removeEventListener("pause",Rt),Q.current.removeEventListener("loadedmetadata",Ze),Q.current.removeEventListener("volumechange",Ft),Q.current.playing&&(bt.push(Le,Q.current.currentTime),x&&ht())}},[Q,w]),Object(u.useEffect)(function(){if(Q.current.onended=function(){F(Q)},Q.current.oncontextmenu=function(){return!1},(w==null?void 0:w.indexOf(".m3u8"))>-1){if(Q.current.canPlayType("application/vnd.apple.mpegurl"))Q.current.src=w;else if(m.a.isSupported()){var le=new m.a;le.loadSource(w),le.attachMedia(Q.current)}}},[w]),Object(u.useEffect)(function(){Q.current.playbackRate=j},[j]);var ve=function(){Q.current.paused||Q.current.ended?Q.current.play():Q.current.pause(),Ut()};function se(){Q.current.muted=!Q.current.muted,Q.current.muted?(X.current.setAttribute("data-volume",volume.value),X.current.value=0):X.current.value=X.current.dataset.volume}return M.a.createElement("div",{style:{position:"relative"},ref:Ee},M.a.createElement("div",{ref:ie,className:"".concat(y.a.watermark," animated_alternate animate__animated_10s animate__infinite animate__stepstart ").concat(y.a.animate__loop)},oe?oe.login:" "),M.a.createElement("div",{className:y.a.container},M.a.createElement("div",{className:y.a["video-container"],id:"video-container"},M.a.createElement("div",{className:y.a["playback-animation"],id:"playback-animation"},M.a.createElement("svg",{className:y.a["playback-icons"]},M.a.createElement("use",{className:"hidden",href:"#play-icon"}),M.a.createElement("use",{href:"#pause"}))),M.a.createElement("video",{className:y.a.video,id:"video",preload:"auto",disablePictureInPicture:!0,ref:Q,autoPlay:!1}),M.a.createElement("div",{className:"".concat(y.a["video-controls"]," "),id:"video-controls"},M.a.createElement("div",{className:y.a["bottom-controls"]},M.a.createElement("div",{className:y.a["left-controls"]},M.a.createElement("button",{"data-title":"\u64AD\u653E/\u6682\u505C",id:"play",onClick:ve},M.a.createElement("svg",{className:y.a["playback-icons"]},M.a.createElement("use",{ref:De,href:"#play-icon"}),M.a.createElement("use",{ref:pe,style:{display:"none"},href:"#pause"}))),M.a.createElement("div",{className:y.a.time},M.a.createElement("time",{id:"time-elapsed",ref:ne},"00:00"),M.a.createElement("span",null," / "),M.a.createElement("time",{id:"duration",ref:Ie},"00:00"))),M.a.createElement("div",{className:y.a["right-controls"]},M.a.createElement(h.CopyToClipboard,{text:w,onCopy:function(){return U.b.success("\u590D\u5236\u6210\u529F")}},M.a.createElement("button",{"data-title":"\u590D\u5236\u94FE\u63A5"},M.a.createElement("i",{className:"icon-lianjie2 iconfont",style:{fontSize:"12px",color:"white"}}))),M.a.createElement("div",{className:y.a["volume-controls"]},M.a.createElement("button",{"data-title":"\u5F00\u542F/\u5173\u95ED\u58F0\u97F3",className:y.a["volume-button"],id:"volume-button",onClick:se},M.a.createElement("i",{ref:z,className:"icon-a-bianzu8 iconfont",style:{fontSize:"14px",color:"white"}}),M.a.createElement("i",{ref:ee,className:"icon-shengyinkaibeifen iconfont",style:{fontSize:"14px",color:"white"}}),M.a.createElement("i",{ref:H,className:"icon-shengyinkai iconfont",style:{fontSize:"14px",color:"white"}})),M.a.createElement("input",{className:y.a.volume,id:"volume",value:"1","data-mute":"0.5",type:"range",max:"1",min:"0",step:"0.01",ref:X,style:{display:"none"},onClick:Ft})),M.a.createElement("button",{"data-title":"\u5168\u5C4F/\u9000\u51FA\u5168\u5C4F",className:y.a["fullscreen-button"],onClick:function(){Object(l.a)()?Object(l.b)():Object(l.d)(Ee.current)}},M.a.createElement("i",{className:"icon-fangda1 iconfont",style:{fontSize:"12px",color:"white"}})))),M.a.createElement("div",{className:y.a["video-progress"]},M.a.createElement("progress",{ref:Ue,value:"0",min:"0"}),M.a.createElement("input",{className:y.a.seek,ref:Me,value:"0",min:"0",type:"range",step:"1"}),M.a.createElement("div",{className:y.a["seek-tooltip"],ref:B,id:"seek-tooltip"},"00:00"))))),M.a.createElement("svg",{style:{display:"none"}},M.a.createElement("defs",null,M.a.createElement("symbol",{id:"pause",viewBox:"0 0 24 24"},M.a.createElement("path",{d:"M14.016 5.016h3.984v13.969h-3.984v-13.969zM6 18.984v-13.969h3.984v13.969h-3.984z"})),M.a.createElement("symbol",{id:"play-icon",viewBox:"0 0 24 24"},M.a.createElement("path",{d:"M8.016 5.016l10.969 6.984-10.969 6.984v-13.969z"})),M.a.createElement("symbol",{id:"volume-high",viewBox:"0 0 24 24"},M.a.createElement("path",{d:"M14.016 3.234q3.047 0.656 5.016 3.117t1.969 5.648-1.969 5.648-5.016 3.117v-2.063q2.203-0.656 3.586-2.484t1.383-4.219-1.383-4.219-3.586-2.484v-2.063zM16.5 12q0 2.813-2.484 4.031v-8.063q1.031 0.516 1.758 1.688t0.727 2.344zM3 9h3.984l5.016-5.016v16.031l-5.016-5.016h-3.984v-6z"})),M.a.createElement("symbol",{id:"volume-low",viewBox:"0 0 24 24"},M.a.createElement("path",{d:"M5.016 9h3.984l5.016-5.016v16.031l-5.016-5.016h-3.984v-6zM18.516 12q0 2.766-2.531 4.031v-8.063q1.031 0.516 1.781 1.711t0.75 2.32z"})),M.a.createElement("symbol",{id:"volume-mute",viewBox:"0 0 24 24"},M.a.createElement("path",{d:"M12 3.984v4.219l-2.109-2.109zM4.266 3l16.734 16.734-1.266 1.266-2.063-2.063q-1.547 1.313-3.656 1.828v-2.063q1.172-0.328 2.25-1.172l-4.266-4.266v6.75l-5.016-5.016h-3.984v-6h4.734l-4.734-4.734zM18.984 12q0-2.391-1.383-4.219t-3.586-2.484v-2.063q3.047 0.656 5.016 3.117t1.969 5.648q0 2.203-1.031 4.172l-1.5-1.547q0.516-1.266 0.516-2.625zM16.5 12q0 0.422-0.047 0.609l-2.438-2.438v-2.203q1.031 0.516 1.758 1.688t0.727 2.344z"})),M.a.createElement("symbol",{id:"fullscreen",viewBox:"0 0 24 24"},M.a.createElement("path",{d:"M14.016 5.016h4.969v4.969h-1.969v-3h-3v-1.969zM17.016 17.016v-3h1.969v4.969h-4.969v-1.969h3zM5.016 9.984v-4.969h4.969v1.969h-3v3h-1.969zM6.984 14.016v3h3v1.969h-4.969v-4.969h1.969z"})),M.a.createElement("symbol",{id:"fullscreen-exit",viewBox:"0 0 24 24"},M.a.createElement("path",{d:"M15.984 8.016h3v1.969h-4.969v-4.969h1.969v3zM14.016 18.984v-4.969h4.969v1.969h-3v3h-1.969zM8.016 8.016v-3h1.969v4.969h-4.969v-1.969h3zM5.016 15.984v-1.969h4.969v4.969h-1.969v-3h-3z"})),M.a.createElement("symbol",{id:"pip",viewBox:"0 0 24 24"},M.a.createElement("path",{d:"M21 19.031v-14.063h-18v14.063h18zM23.016 18.984q0 0.797-0.609 1.406t-1.406 0.609h-18q-0.797 0-1.406-0.609t-0.609-1.406v-14.016q0-0.797 0.609-1.383t1.406-0.586h18q0.797 0 1.406 0.586t0.609 1.383v14.016zM18.984 11.016v6h-7.969v-6h7.969z"})))))})},hydK:function(ge,q){var _="http://www.w3.org/2000/svg";function Z(U){return document.createElementNS(_,U)}q.createElement=Z},hyiK:function(ge,q){function _(Z,U,L,N,c,u){if(u>U&&u>N||u<U&&u<N)return 0;if(N===U)return 0;var M=N<U?1:-1,g=(u-U)/(N-U);(g===1||g===0)&&(M=N<U?.5:-.5);var e=g*(L-Z)+Z;return e===c?Infinity:e>c?M:0}ge.exports=_},"iL++":function(ge,q,_){ge.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"}},iXp4:function(ge,q,_){var Z=_("ItGF"),U=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];function L(N){return Z.browser.ie&&Z.browser.version>=11?function(){var c=this.__clipPaths,u=this.style,M;if(c)for(var g=0;g<c.length;g++){var e=c[g],m=e&&e.shape,r=e&&e.type;if(m&&(r==="sector"&&m.startAngle===m.endAngle||r==="rect"&&(!m.width||!m.height))){for(var h=0;h<U.length;h++)U[h][2]=u[U[h][0]],u[U[h][0]]=U[h][1];M=!0;break}}if(N.apply(this,arguments),M)for(var h=0;h<U.length;h++)u[U[h][0]]=U[h][2]}:N}ge.exports=L},ic2d:function(ge,q,_){"use strict";_.d(q,"a",function(){return N});var Z=_("FWmy"),U=_("746U");class L{constructor(){this.data=new Map}add(c,u){Z.a(U.l(c)),Z.a(U.k(u)),Z.a(!this.data.has(c),"There is already an extension with this id"),this.data.set(c,u)}as(c){return this.data.get(c)||null}}const N=new L},iyIb:function(ge,q,_){ge.exports=_.p+"static/zctu.220a727a.jpg"},j5sG:function(ge,q,_){"use strict";Object.defineProperty(q,"__esModule",{value:!0}),q.createSensor=void 0;var Z=U(_("NohK"));function U(N){return N&&N.__esModule?N:{default:N}}var L=function(c){var u=void 0,M=[],g=(0,Z.default)(function(){M.forEach(function(a){a(c)})}),e=function(){var l=new ResizeObserver(g);return l.observe(c),g(),l},m=function(l){u||(u=e()),M.indexOf(l)===-1&&M.push(l)},r=function(){u.disconnect(),M=[],u=void 0},h=function(l){var d=M.indexOf(l);d!==-1&&M.splice(d,1),M.length===0&&u&&r()};return{element:c,bind:m,destroy:r,unbind:h}};q.createSensor=L},jTL6:function(ge,q,_){var Z=_("y+Vt"),U=Z.extend({type:"arc",shape:{cx:0,cy:0,r:0,startAngle:0,endAngle:Math.PI*2,clockwise:!0},style:{stroke:"#000",fill:null},buildPath:function(L,N){var c=N.cx,u=N.cy,M=Math.max(N.r,0),g=N.startAngle,e=N.endAngle,m=N.clockwise,r=Math.cos(g),h=Math.sin(g);L.moveTo(r*M+c,h*M+u),L.arc(c,u,M,g,e,!m)}});ge.exports=U},ji0R:function(ge,q,_){ge.exports=_.p+"static/douyu.3e6df9ee.jpg"},juDX:function(ge,q,_){_("P47w");var Z=_("aX58"),U=Z.registerPainter,L=_("3CBa");U("svg",L)},k3GJ:function(ge,q,_){"use strict";_.d(q,"a",function(){return lr});var Z=_("rePB"),U=_("ODXe"),L=_("Ff2n"),N=_("VTBJ"),c=_("q1tI"),u=_("TSYQ"),M=_.n(u),g=_("Zm9Q"),e=_("6cGi"),m=_("KQm4"),r=_("xEkU"),h=_.n(r),a=_("t23M");function l(ze){var $e=Object(c.useRef)(),at=Object(c.useRef)(!1);function Ke(){for(var _e=arguments.length,Ne=new Array(_e),Te=0;Te<_e;Te++)Ne[Te]=arguments[Te];at.current||(h.a.cancel($e.current),$e.current=h()(function(){ze.apply(void 0,Ne)}))}return Object(c.useEffect)(function(){return function(){at.current=!0,h.a.cancel($e.current)}},[]),Ke}function d(ze){var $e=Object(c.useRef)([]),at=Object(c.useState)({}),Ke=Object(U.a)(at,2),_e=Ke[1],Ne=Object(c.useRef)(typeof ze=="function"?ze():ze),Te=l(function(){var Ve=Ne.current;$e.current.forEach(function(ot){Ve=ot(Ve)}),$e.current=[],Ne.current=Ve,_e({})});function Ge(Ve){$e.current.push(Ve),Te()}return[Ne.current,Ge]}var y=_("4IlW");function s(ze,$e){var at,Ke=ze.prefixCls,_e=ze.id,Ne=ze.active,Te=ze.rtl,Ge=ze.tab,Ve=Ge.key,ot=Ge.tab,et=Ge.disabled,pt=Ge.closeIcon,Ot=ze.tabBarGutter,Yt=ze.tabPosition,t=ze.closable,T=ze.renderWrapper,k=ze.removeAriaLabel,G=ze.editable,$=ze.onClick,de=ze.onRemove,xe=ze.onFocus,Oe="".concat(Ke,"-tab");c.useEffect(function(){return de},[]);var ke={};Yt==="top"||Yt==="bottom"?ke[Te?"marginLeft":"marginRight"]=Ot:ke.marginBottom=Ot;var Fe=G&&t!==!1&&!et;function Qe(Ct){if(et)return;$(Ct)}function yt(Ct){Ct.preventDefault(),Ct.stopPropagation(),G.onEdit("remove",{key:Ve,event:Ct})}var mt=c.createElement("div",{key:Ve,ref:$e,className:M()(Oe,(at={},Object(Z.a)(at,"".concat(Oe,"-with-remove"),Fe),Object(Z.a)(at,"".concat(Oe,"-active"),Ne),Object(Z.a)(at,"".concat(Oe,"-disabled"),et),at)),style:ke,onClick:Qe},c.createElement("div",{role:"tab","aria-selected":Ne,id:_e&&"".concat(_e,"-tab-").concat(Ve),className:"".concat(Oe,"-btn"),"aria-controls":_e&&"".concat(_e,"-panel-").concat(Ve),"aria-disabled":et,tabIndex:et?null:0,onClick:function(At){At.stopPropagation(),Qe(At)},onKeyDown:function(At){[y.a.SPACE,y.a.ENTER].includes(At.which)&&(At.preventDefault(),Qe(At))},onFocus:xe},ot),Fe&&c.createElement("button",{type:"button","aria-label":k||"remove",tabIndex:0,className:"".concat(Oe,"-remove"),onClick:function(At){At.stopPropagation(),yt(At)}},pt||G.removeIcon||"\xD7"));return T&&(mt=T(mt)),mt}var p=c.forwardRef(s),n={width:0,height:0,left:0,top:0};function i(ze,$e,at){return Object(c.useMemo)(function(){for(var Ke,_e=new Map,Ne=$e.get((Ke=ze[0])===null||Ke===void 0?void 0:Ke.key)||n,Te=Ne.left+Ne.width,Ge=0;Ge<ze.length;Ge+=1){var Ve=ze[Ge].key,ot=$e.get(Ve);if(!ot){var et;ot=$e.get((et=ze[Ge-1])===null||et===void 0?void 0:et.key)||n}var pt=_e.get(Ve)||Object(N.a)({},ot);pt.right=Te-pt.left-pt.width,_e.set(Ve,pt)}return _e},[ze.map(function(Ke){return Ke.key}).join("_"),$e,at])}var v={width:0,height:0,left:0,top:0,right:0};function C(ze,$e,at,Ke,_e){var Ne=_e.tabs,Te=_e.tabPosition,Ge=_e.rtl,Ve,ot,et;["top","bottom"].includes(Te)?(Ve="width",ot=Ge?"right":"left",et=Math.abs($e.left)):(Ve="height",ot="top",et=-$e.top);var pt=$e[Ve],Ot=at[Ve],Yt=Ke[Ve],t=pt;return Ot+Yt>pt&&(t=pt-Yt),Object(c.useMemo)(function(){if(!Ne.length)return[0,0];for(var T=Ne.length,k=T,G=0;G<T;G+=1){var $=ze.get(Ne[G].key)||v;if($[ot]+$[Ve]>et+t){k=G-1;break}}for(var de=0,xe=T-1;xe>=0;xe-=1){var Oe=ze.get(Ne[xe].key)||v;if(Oe[ot]<et){de=xe+1;break}}return[de,k]},[ze,et,t,Te,Ne.map(function(T){return T.key}).join("_"),Ge])}var R=_("wx14"),w=_("1OyB"),x=_("vuIU"),A=_("JX7q"),o=_("Ji7U"),f=_("LK+K"),E=_("I8Z2"),O=_("bT9E"),S=_("2GS6"),b=_("Gytx"),D=_.n(b),P=_("U8pU"),I=/iPhone/i,F=/iPod/i,K=/iPad/i,j=/\bAndroid(?:.+)Mobile\b/i,Y=/Android/i,W=/\bAndroid(?:.+)SD4930UR\b/i,Q=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,ie=/Windows Phone/i,Ee=/\bWindows(?:.+)ARM\b/i,pe=/BlackBerry/i,De=/BB10/i,Me=/Opera Mini/i,Ue=/\b(CriOS|Chrome)(?:.+)Mobile/i,Ie=/Mobile(?:.+)Firefox\b/i;function ne(ze,$e){return ze.test($e)}function B(ze){var $e=ze||(typeof navigator!="undefined"?navigator.userAgent:""),at=($e||"").split("[FBAN");if(typeof at[1]!="undefined"){var Ke=at,_e=Object(U.a)(Ke,1);$e=_e[0]}if(at=$e.split("Twitter"),typeof at[1]!="undefined"){var Ne=at,Te=Object(U.a)(Ne,1);$e=Te[0]}var Ge={apple:{phone:ne(I,$e)&&!ne(ie,$e),ipod:ne(F,$e),tablet:!ne(I,$e)&&ne(K,$e)&&!ne(ie,$e),device:(ne(I,$e)||ne(F,$e)||ne(K,$e))&&!ne(ie,$e)},amazon:{phone:ne(W,$e),tablet:!ne(W,$e)&&ne(Q,$e),device:ne(W,$e)||ne(Q,$e)},android:{phone:!ne(ie,$e)&&ne(W,$e)||!ne(ie,$e)&&ne(j,$e),tablet:!ne(ie,$e)&&!ne(W,$e)&&!ne(j,$e)&&(ne(Q,$e)||ne(Y,$e)),device:!ne(ie,$e)&&(ne(W,$e)||ne(Q,$e)||ne(j,$e)||ne(Y,$e))||ne(/\bokhttp\b/i,$e)},windows:{phone:ne(ie,$e),tablet:ne(Ee,$e),device:ne(ie,$e)||ne(Ee,$e)},other:{blackberry:ne(pe,$e),blackberry10:ne(De,$e),opera:ne(Me,$e),firefox:ne(Ie,$e),chrome:ne(Ue,$e),device:ne(pe,$e)||ne(De,$e)||ne(Me,$e)||ne(Ie,$e)||ne(Ue,$e)},any:null,phone:null,tablet:null};return Ge.any=Ge.apple.device||Ge.android.device||Ge.windows.device||Ge.other.device,Ge.phone=Ge.apple.phone||Ge.android.phone||Ge.windows.phone,Ge.tablet=Ge.apple.tablet||Ge.android.tablet||Ge.windows.tablet,Ge}var z=Object(N.a)(Object(N.a)({},B()),{},{isMobile:B}),H=z;function ee(){}function X(ze,$e,at){var Ke=$e||"";return ze.key||"".concat(Ke,"item_").concat(at)}function me(ze){return"".concat(ze,"-menu-")}function je(ze,$e){var at=-1;c.Children.forEach(ze,function(Ke){at+=1,Ke&&Ke.type&&Ke.type.isMenuItemGroup?c.Children.forEach(Ke.props.children,function(_e){at+=1,$e(_e,at)}):$e(Ke,at)})}function Je(ze,$e,at){if(!ze||at.find)return;c.Children.forEach(ze,function(Ke){if(Ke){var _e=Ke.type;if(!_e||!(_e.isSubMenu||_e.isMenuItem||_e.isMenuItemGroup))return;$e.indexOf(Ke.key)!==-1?at.find=!0:Ke.props.children&&Je(Ke.props.children,$e,at)}})}var oe=["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"],Ae=function($e){var at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ke=$e&&typeof $e.getBoundingClientRect=="function"&&$e.getBoundingClientRect().width;if(Ke){if(at){var _e=getComputedStyle($e),Ne=_e.marginLeft,Te=_e.marginRight;Ke+=+Ne.replace("px","")+ +Te.replace("px","")}Ke=+Ke.toFixed(6)}return Ke||0},ye=function($e,at,Ke){$e&&Object(P.a)($e.style)==="object"&&($e.style[at]=Ke)},Le=function(){return H.any},We=_("bdgK"),Xe=_("i8i4"),ct=_.n(Xe),lt=_("wgJM"),St=_("l4aY"),Dt=_("m+aA"),bt=_("c+Xe"),ht=_("zT1h"),Ut=_("QC+M");function Ft(ze,$e,at){return at?ze[0]===$e[0]:ze[0]===$e[0]&&ze[1]===$e[1]}function ve(ze,$e,at){var Ke=ze[$e]||{};return Object(N.a)(Object(N.a)({},Ke),at)}function se(ze,$e,at,Ke){for(var _e=at.points,Ne=Object.keys(ze),Te=0;Te<Ne.length;Te+=1){var Ge=Ne[Te];if(Ft(ze[Ge].points,_e,Ke))return"".concat($e,"-placement-").concat(Ge)}return""}var le=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var ze=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(ze)||/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(ze==null?void 0:ze.substr(0,4)))},fe=_("MNnm");function Re(ze,$e){var at={};return at[ze.toLowerCase()]=$e.toLowerCase(),at["Webkit".concat(ze)]="webkit".concat($e),at["Moz".concat(ze)]="moz".concat($e),at["ms".concat(ze)]="MS".concat($e),at["O".concat(ze)]="o".concat($e.toLowerCase()),at}function ce(ze,$e){var at={animationend:Re("Animation","AnimationEnd"),transitionend:Re("Transition","TransitionEnd")};return ze&&("AnimationEvent"in $e||delete at.animationend.animation,"TransitionEvent"in $e||delete at.transitionend.transition),at}var he=ce(Object(fe.a)(),typeof window!="undefined"?window:{}),Se={};if(Object(fe.a)()){var we=document.createElement("div");Se=we.style}var Ze={};function Ye(ze){if(Ze[ze])return Ze[ze];var $e=he[ze];if($e)for(var at=Object.keys($e),Ke=at.length,_e=0;_e<Ke;_e+=1){var Ne=at[_e];if(Object.prototype.hasOwnProperty.call($e,Ne)&&Ne in Se)return Ze[ze]=$e[Ne],Ze[ze]}return""}var it=Ye("animationend"),Et=Ye("transitionend"),Pt=!!(it&&Et),zt=it||"animationend",Rt=Et||"transitionend";function rt(ze,$e){if(!ze)return null;if(Object(P.a)(ze)==="object"){var at=$e.replace(/-\w/g,function(Ke){return Ke[1].toUpperCase()});return ze[at]}return"".concat(ze,"-").concat($e)}var st="none",qe="appear",Ce="enter",Be="leave",dt="none",ut="prepare",It="start",wt="active",gt="end";function Nt(ze){var $e=Object(c.useRef)(!1),at=Object(c.useState)(ze),Ke=Object(U.a)(at,2),_e=Ke[0],Ne=Ke[1];function Te(Ge){$e.current||Ne(Ge)}return Object(c.useEffect)(function(){return function(){$e.current=!0}},[]),[_e,Te]}var Mt=Object(fe.a)()?c.useLayoutEffect:c.useEffect,nt=Mt,xt=function(){var ze=c.useRef(null);function $e(){lt.a.cancel(ze.current)}function at(Ke){var _e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;$e();var Ne=Object(lt.a)(function(){_e<=1?Ke({isCanceled:function(){return Ne!==ze.current}}):at(Ke,_e-1)});ze.current=Ne}return c.useEffect(function(){return function(){$e()}},[]),[at,$e]},ue=[ut,It,wt,gt],ae=!1,V=!0;function J(ze){return ze===wt||ze===gt}var te=function(ze,$e){var at=c.useState(dt),Ke=Object(U.a)(at,2),_e=Ke[0],Ne=Ke[1],Te=xt(),Ge=Object(U.a)(Te,2),Ve=Ge[0],ot=Ge[1];function et(){Ne(ut)}return nt(function(){if(_e!==dt&&_e!==gt){var pt=ue.indexOf(_e),Ot=ue[pt+1],Yt=$e(_e);Yt===ae?Ne(Ot):Ve(function(t){function T(){if(t.isCanceled())return;Ne(Ot)}Yt===!0?T():Promise.resolve(Yt).then(T)})}},[ze,_e]),c.useEffect(function(){return function(){ot()}},[]),[et,_e]},re=function(ze){var $e=Object(c.useRef)(),at=Object(c.useRef)(ze);at.current=ze;var Ke=c.useCallback(function(Te){at.current(Te)},[]);function _e(Te){Te&&(Te.removeEventListener(Rt,Ke),Te.removeEventListener(zt,Ke))}function Ne(Te){$e.current&&$e.current!==Te&&_e($e.current),Te&&Te!==$e.current&&(Te.addEventListener(Rt,Ke),Te.addEventListener(zt,Ke),$e.current=Te)}return c.useEffect(function(){return function(){_e($e.current)}},[]),[Ne,_e]};function be(ze,$e,at,Ke){var _e=Ke.motionEnter,Ne=_e===void 0?!0:_e,Te=Ke.motionAppear,Ge=Te===void 0?!0:Te,Ve=Ke.motionLeave,ot=Ve===void 0?!0:Ve,et=Ke.motionDeadline,pt=Ke.motionLeaveImmediately,Ot=Ke.onAppearPrepare,Yt=Ke.onEnterPrepare,t=Ke.onLeavePrepare,T=Ke.onAppearStart,k=Ke.onEnterStart,G=Ke.onLeaveStart,$=Ke.onAppearActive,de=Ke.onEnterActive,xe=Ke.onLeaveActive,Oe=Ke.onAppearEnd,ke=Ke.onEnterEnd,Fe=Ke.onLeaveEnd,Qe=Ke.onVisibleChanged,yt=Nt(),mt=Object(U.a)(yt,2),Ct=mt[0],At=mt[1],kt=Nt(st),Kt=Object(U.a)(kt,2),vt=Kt[0],Wt=Kt[1],Xt=Nt(null),rn=Object(U.a)(Xt,2),sn=rn[0],on=rn[1],en=Object(c.useRef)(!1),gn=Object(c.useRef)(null),bn=Object(c.useRef)(!1),Qn=Object(c.useRef)(null);function Hn(){var Jn=at();return Jn||Qn.current}var vn=Object(c.useRef)(!1);function Cn(Jn){var kn=Hn();if(Jn&&!Jn.deadline&&Jn.target!==kn)return;var mi;vt===qe&&vn.current?mi=Oe==null?void 0:Oe(kn,Jn):vt===Ce&&vn.current?mi=ke==null?void 0:ke(kn,Jn):vt===Be&&vn.current&&(mi=Fe==null?void 0:Fe(kn,Jn)),mi!==!1&&!bn.current&&(Wt(st),on(null))}var yn=re(Cn),Dn=Object(U.a)(yn,1),Ln=Dn[0],Fn=c.useMemo(function(){var Jn,kn,mi;switch(vt){case"appear":return Jn={},Object(Z.a)(Jn,ut,Ot),Object(Z.a)(Jn,It,T),Object(Z.a)(Jn,wt,$),Jn;case"enter":return kn={},Object(Z.a)(kn,ut,Yt),Object(Z.a)(kn,It,k),Object(Z.a)(kn,wt,de),kn;case"leave":return mi={},Object(Z.a)(mi,ut,t),Object(Z.a)(mi,It,G),Object(Z.a)(mi,wt,xe),mi;default:return{}}},[vt]),yi=te(vt,function(Jn){if(Jn===ut){var kn=Fn[ut];return kn?kn(Hn()):ae}if(Pn in Fn){var mi;on(((mi=Fn[Pn])===null||mi===void 0?void 0:mi.call(Fn,Hn(),null))||null)}return Pn===wt&&(Ln(Hn()),et>0&&(clearTimeout(gn.current),gn.current=setTimeout(function(){Cn({deadline:!0})},et))),V}),bi=Object(U.a)(yi,2),xi=bi[0],Pn=bi[1],_i=J(Pn);vn.current=_i,nt(function(){At($e);var Jn=en.current;if(en.current=!0,!ze)return;var kn;!Jn&&$e&&Ge&&(kn=qe),Jn&&$e&&Ne&&(kn=Ce),(Jn&&!$e&&ot||!Jn&&pt&&!$e&&ot)&&(kn=Be),kn&&(Wt(kn),xi())},[$e]),Object(c.useEffect)(function(){(vt===qe&&!Ge||vt===Ce&&!Ne||vt===Be&&!ot)&&Wt(st)},[Ge,Ne,ot]),Object(c.useEffect)(function(){return function(){clearTimeout(gn.current),bn.current=!0}},[]),Object(c.useEffect)(function(){Ct!==void 0&&vt===st&&(Qe==null||Qe(Ct))},[Ct,vt]);var Hi=sn;return Fn[ut]&&Pn===It&&(Hi=Object(N.a)({transition:"none"},Hi)),[vt,Pn,Hi,Ct!=null?Ct:$e]}var Pe=function(ze){Object(o.a)(at,ze);var $e=Object(f.a)(at);function at(){return Object(w.a)(this,at),$e.apply(this,arguments)}return Object(x.a)(at,[{key:"render",value:function(){return this.props.children}}]),at}(c.Component),He=Pe;function ft(ze){var $e=ze;Object(P.a)(ze)==="object"&&($e=ze.transitionSupport);function at(_e){return!!(_e.motionName&&$e)}var Ke=c.forwardRef(function(_e,Ne){var Te=_e.visible,Ge=Te===void 0?!0:Te,Ve=_e.removeOnLeave,ot=Ve===void 0?!0:Ve,et=_e.forceRender,pt=_e.children,Ot=_e.motionName,Yt=_e.leavedClassName,t=_e.eventProps,T=at(_e),k=Object(c.useRef)(),G=Object(c.useRef)();function $(){try{return Object(Dt.a)(k.current||G.current)}catch(Wt){return null}}var de=be(T,Ge,$,_e),xe=Object(U.a)(de,4),Oe=xe[0],ke=xe[1],Fe=xe[2],Qe=xe[3],yt=c.useRef(Qe);Qe&&(yt.current=!0);var mt=Object(c.useRef)(Ne);mt.current=Ne;var Ct=c.useCallback(function(Wt){k.current=Wt,Object(bt.b)(mt.current,Wt)},[]),At,kt=Object(N.a)(Object(N.a)({},t),{},{visible:Ge});if(!pt)At=null;else if(Oe===st||!at(_e))Qe?At=pt(Object(N.a)({},kt),Ct):!ot&&yt.current?At=pt(Object(N.a)(Object(N.a)({},kt),{},{className:Yt}),Ct):et?At=pt(Object(N.a)(Object(N.a)({},kt),{},{style:{display:"none"}}),Ct):At=null;else{var Kt,vt;ke===ut?vt="prepare":J(ke)?vt="active":ke===It&&(vt="start"),At=pt(Object(N.a)(Object(N.a)({},kt),{},{className:M()(rt(Ot,Oe),(Kt={},Object(Z.a)(Kt,rt(Ot,"".concat(Oe,"-").concat(vt)),vt),Object(Z.a)(Kt,Ot,typeof Ot=="string"),Kt)),style:Fe}),Ct)}return c.createElement(He,{ref:G},At)});return Ke.displayName="CSSMotion",Ke}var _t=ft(Pt),Lt="add",Vt="keep",Ht="remove",tt="removed";function jt(ze){var $e;return ze&&Object(P.a)(ze)==="object"&&"key"in ze?$e=ze:$e={key:ze},Object(N.a)(Object(N.a)({},$e),{},{key:String($e.key)})}function Gt(){var ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return ze.map(jt)}function Qt(){var ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],$e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],at=[],Ke=0,_e=$e.length,Ne=Gt(ze),Te=Gt($e);Ne.forEach(function(ot){for(var et=!1,pt=Ke;pt<_e;pt+=1){var Ot=Te[pt];if(Ot.key===ot.key){Ke<pt&&(at=at.concat(Te.slice(Ke,pt).map(function(Yt){return Object(N.a)(Object(N.a)({},Yt),{},{status:Lt})})),Ke=pt),at.push(Object(N.a)(Object(N.a)({},Ot),{},{status:Vt})),Ke+=1,et=!0;break}}et||at.push(Object(N.a)(Object(N.a)({},ot),{},{status:Ht}))}),Ke<_e&&(at=at.concat(Te.slice(Ke).map(function(ot){return Object(N.a)(Object(N.a)({},ot),{},{status:Lt})})));var Ge={};at.forEach(function(ot){var et=ot.key;Ge[et]=(Ge[et]||0)+1});var Ve=Object.keys(Ge).filter(function(ot){return Ge[ot]>1});return Ve.forEach(function(ot){at=at.filter(function(et){var pt=et.key,Ot=et.status;return pt!==ot||Ot!==Ht}),at.forEach(function(et){et.key===ot&&(et.status=Vt)})}),at}var Tt=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function tn(ze){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_t,at=function(Ke){Object(o.a)(Ne,Ke);var _e=Object(f.a)(Ne);function Ne(){var Te;return Object(w.a)(this,Ne),Te=_e.apply(this,arguments),Te.state={keyEntities:[]},Te.removeKey=function(Ge){Te.setState(function(Ve){var ot=Ve.keyEntities;return{keyEntities:ot.map(function(et){return et.key!==Ge?et:Object(N.a)(Object(N.a)({},et),{},{status:tt})})}})},Te}return Object(x.a)(Ne,[{key:"render",value:function(){var Ge=this,Ve=this.state.keyEntities,ot=this.props,et=ot.component,pt=ot.children,Ot=ot.onVisibleChanged,Yt=Object(L.a)(ot,["component","children","onVisibleChanged"]),t=et||c.Fragment,T={};return Tt.forEach(function(k){T[k]=Yt[k],delete Yt[k]}),delete Yt.keys,c.createElement(t,Yt,Ve.map(function(k){var G=k.status,$=Object(L.a)(k,["status"]),de=G===Lt||G===Vt;return c.createElement($e,Object(R.a)({},T,{key:$.key,visible:de,eventProps:$,onVisibleChanged:function(Oe){Ot==null||Ot(Oe,{key:$.key}),Oe||Ge.removeKey($.key)}}),pt)}))}}],[{key:"getDerivedStateFromProps",value:function(Ge,Ve){var ot=Ge.keys,et=Ve.keyEntities,pt=Gt(ot),Ot=Qt(et,pt);return{keyEntities:Ot.filter(function(Yt){var t=et.find(function(T){var k=T.key;return Yt.key===k});return!(t&&t.status===tt&&Yt.status===Ht)})}}}]),Ne}(c.Component);return at.defaultProps={component:"div"},at}var nn=tn(Pt),Jt=_t;function Zt(ze){var $e=ze.prefixCls,at=ze.motion,Ke=ze.animation,_e=ze.transitionName;return at||(Ke?{motionName:"".concat($e,"-").concat(Ke)}:_e?{motionName:_e}:null)}function fn(ze){var $e=ze.prefixCls,at=ze.visible,Ke=ze.zIndex,_e=ze.mask,Ne=ze.maskMotion,Te=ze.maskAnimation,Ge=ze.maskTransitionName;if(!_e)return null;var Ve={};return(Ne||Ge||Te)&&(Ve=Object(N.a)({motionAppear:!0},Zt({motion:Ne,prefixCls:$e,transitionName:Ge,animation:Te}))),c.createElement(Jt,Object(R.a)({},Ve,{visible:at,removeOnLeave:!0}),function(ot){var et=ot.className;return c.createElement("div",{style:{zIndex:Ke},className:M()("".concat($e,"-mask"),et)})})}var Tn=_("9mu1"),pn=_("o0o1"),Un=_.n(pn),ni=_("HaE+"),wn=["measure","align",null,"motion"],Wn=function(ze,$e){var at=Object(c.useState)(null),Ke=Object(U.a)(at,2),_e=Ke[0],Ne=Ke[1],Te=Object(c.useRef)(),Ge=Object(c.useRef)(!1);function Ve(pt){Ge.current||Ne(pt)}function ot(){lt.a.cancel(Te.current)}function et(pt){ot(),Te.current=Object(lt.a)(function(){Ve(function(Ot){switch(_e){case"align":return"motion";case"motion":return"stable";default:}return Ot}),pt==null||pt()})}return Object(c.useEffect)(function(){Ve("measure")},[ze]),Object(c.useEffect)(function(){switch(_e){case"measure":$e();break;default:}_e&&(Te.current=Object(lt.a)(Object(ni.a)(Un.a.mark(function pt(){var Ot,Yt;return Un.a.wrap(function(T){for(;;)switch(T.prev=T.next){case 0:Ot=wn.indexOf(_e),Yt=wn[Ot+1],Yt&&Ot!==-1&&Ve(Yt);case 3:case"end":return T.stop()}},pt)}))))},[_e]),Object(c.useEffect)(function(){return function(){Ge.current=!0,ot()}},[]),[_e,et]},hi=function(ze){var $e=c.useState({width:0,height:0}),at=Object(U.a)($e,2),Ke=at[0],_e=at[1];function Ne(Ge){_e({width:Ge.offsetWidth,height:Ge.offsetHeight})}var Te=c.useMemo(function(){var Ge={};if(ze){var Ve=Ke.width,ot=Ke.height;ze.indexOf("height")!==-1&&ot?Ge.height=ot:ze.indexOf("minHeight")!==-1&&ot&&(Ge.minHeight=ot),ze.indexOf("width")!==-1&&Ve?Ge.width=Ve:ze.indexOf("minWidth")!==-1&&Ve&&(Ge.minWidth=Ve)}return Ge},[ze,Ke]);return[Te,Ne]},di=c.forwardRef(function(ze,$e){var at=ze.visible,Ke=ze.prefixCls,_e=ze.className,Ne=ze.style,Te=ze.children,Ge=ze.zIndex,Ve=ze.stretch,ot=ze.destroyPopupOnHide,et=ze.forceRender,pt=ze.align,Ot=ze.point,Yt=ze.getRootDomNode,t=ze.getClassNameFromAlign,T=ze.onAlign,k=ze.onMouseEnter,G=ze.onMouseLeave,$=ze.onMouseDown,de=ze.onTouchStart,xe=Object(c.useRef)(),Oe=Object(c.useRef)(),ke=Object(c.useState)(),Fe=Object(U.a)(ke,2),Qe=Fe[0],yt=Fe[1],mt=hi(Ve),Ct=Object(U.a)(mt,2),At=Ct[0],kt=Ct[1];function Kt(){Ve&&kt(Yt())}var vt=Wn(at,Kt),Wt=Object(U.a)(vt,2),Xt=Wt[0],rn=Wt[1],sn=Object(c.useRef)();function on(){return Ot||Yt}function en(){var yn;(yn=xe.current)===null||yn===void 0||yn.forceAlign()}function gn(yn,Dn){var Ln=t(Dn);Qe!==Ln&&yt(Ln),Xt==="align"&&(Qe!==Ln?Promise.resolve().then(function(){en()}):rn(function(){var Fn;(Fn=sn.current)===null||Fn===void 0||Fn.call(sn)}),T==null||T(yn,Dn))}var bn=Object(N.a)({},Zt(ze));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(yn){var Dn=bn[yn];bn[yn]=function(Ln,Fn){return rn(),Dn==null?void 0:Dn(Ln,Fn)}});function Qn(){return new Promise(function(yn){sn.current=yn})}c.useEffect(function(){!bn.motionName&&Xt==="motion"&&rn()},[bn.motionName,Xt]),c.useImperativeHandle($e,function(){return{forceAlign:en,getElement:function(){return Oe.current}}});var Hn=Object(N.a)(Object(N.a)({},At),{},{zIndex:Ge,opacity:Xt==="motion"||Xt==="stable"||!at?void 0:0,pointerEvents:Xt==="stable"?void 0:"none"},Ne),vn=!0;(pt==null?void 0:pt.points)&&(Xt==="align"||Xt==="stable")&&(vn=!1);var Cn=Te;return c.Children.count(Te)>1&&(Cn=c.createElement("div",{className:"".concat(Ke,"-content")},Te)),c.createElement(Jt,Object(R.a)({visible:at,ref:Oe,leavedClassName:"".concat(Ke,"-hidden")},bn,{onAppearPrepare:Qn,onEnterPrepare:Qn,removeOnLeave:ot,forceRender:et}),function(yn,Dn){var Ln=yn.className,Fn=yn.style,yi=M()(Ke,_e,Qe,Ln);return c.createElement(Tn.a,{target:on(),key:"popup",ref:xe,monitorWindowResize:!0,disabled:vn,align:pt,onAlign:gn},c.createElement("div",{ref:Dn,className:yi,onMouseEnter:k,onMouseLeave:G,onMouseDownCapture:$,onTouchStartCapture:de,style:Object(N.a)(Object(N.a)({},Fn),Hn)},Cn))})});di.displayName="PopupInner";var ci=di,Zn=c.forwardRef(function(ze,$e){var at=ze.prefixCls,Ke=ze.visible,_e=ze.zIndex,Ne=ze.children,Te=ze.mobile;Te=Te===void 0?{}:Te;var Ge=Te.popupClassName,Ve=Te.popupStyle,ot=Te.popupMotion,et=ot===void 0?{}:ot,pt=Te.popupRender,Ot=c.useRef();c.useImperativeHandle($e,function(){return{forceAlign:function(){},getElement:function(){return Ot.current}}});var Yt=Object(N.a)({zIndex:_e},Ve),t=Ne;return c.Children.count(Ne)>1&&(t=c.createElement("div",{className:"".concat(at,"-content")},Ne)),pt&&(t=pt(t)),c.createElement(Jt,Object(R.a)({visible:Ke,ref:Ot,removeOnLeave:!0},et),function(T,k){var G=T.className,$=T.style,de=M()(at,Ge,G);return c.createElement("div",{ref:k,className:de,style:Object(N.a)(Object(N.a)({},$),Yt)},t)})});Zn.displayName="MobilePopupInner";var $t=Zn,qt=["visible","mobile"],hn=c.forwardRef(function(ze,$e){var at=ze.visible,Ke=ze.mobile,_e=Object(L.a)(ze,qt),Ne=Object(c.useState)(at),Te=Object(U.a)(Ne,2),Ge=Te[0],Ve=Te[1],ot=Object(c.useState)(!1),et=Object(U.a)(ot,2),pt=et[0],Ot=et[1],Yt=Object(N.a)(Object(N.a)({},_e),{},{visible:Ge});Object(c.useEffect)(function(){Ve(at),at&&Ke&&Ot(le())},[at,Ke]);var t=pt?c.createElement($t,Object(R.a)({},Yt,{mobile:Ke,ref:$e})):c.createElement(ci,Object(R.a)({},Yt,{ref:$e}));return c.createElement("div",null,c.createElement(fn,Yt),t)});hn.displayName="Popup";var cn=hn,Sn=c.createContext(null),dn=Sn;function Bt(){}function ln(){return""}function xn(ze){return ze?ze.ownerDocument:window.document}var an=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function _n(ze){var $e=function(at){Object(o.a)(_e,at);var Ke=Object(f.a)(_e);function _e(Ne){var Te;Object(w.a)(this,_e),Te=Ke.call(this,Ne),Te.popupRef=c.createRef(),Te.triggerRef=c.createRef(),Te.attachId=void 0,Te.clickOutsideHandler=void 0,Te.touchOutsideHandler=void 0,Te.contextMenuOutsideHandler1=void 0,Te.contextMenuOutsideHandler2=void 0,Te.mouseDownTimeout=void 0,Te.focusTime=void 0,Te.preClickTime=void 0,Te.preTouchTime=void 0,Te.delayTimer=void 0,Te.hasPopupMouseDown=void 0,Te.onMouseEnter=function(Ve){var ot=Te.props.mouseEnterDelay;Te.fireEvents("onMouseEnter",Ve),Te.delaySetPopupVisible(!0,ot,ot?null:Ve)},Te.onMouseMove=function(Ve){Te.fireEvents("onMouseMove",Ve),Te.setPoint(Ve)},Te.onMouseLeave=function(Ve){Te.fireEvents("onMouseLeave",Ve),Te.delaySetPopupVisible(!1,Te.props.mouseLeaveDelay)},Te.onPopupMouseEnter=function(){Te.clearDelayTimer()},Te.onPopupMouseLeave=function(Ve){var ot;if(Ve.relatedTarget&&!Ve.relatedTarget.setTimeout&&Object(St.a)((ot=Te.popupRef.current)===null||ot===void 0?void 0:ot.getElement(),Ve.relatedTarget))return;Te.delaySetPopupVisible(!1,Te.props.mouseLeaveDelay)},Te.onFocus=function(Ve){Te.fireEvents("onFocus",Ve),Te.clearDelayTimer(),Te.isFocusToShow()&&(Te.focusTime=Date.now(),Te.delaySetPopupVisible(!0,Te.props.focusDelay))},Te.onMouseDown=function(Ve){Te.fireEvents("onMouseDown",Ve),Te.preClickTime=Date.now()},Te.onTouchStart=function(Ve){Te.fireEvents("onTouchStart",Ve),Te.preTouchTime=Date.now()},Te.onBlur=function(Ve){Te.fireEvents("onBlur",Ve),Te.clearDelayTimer(),Te.isBlurToHide()&&Te.delaySetPopupVisible(!1,Te.props.blurDelay)},Te.onContextMenu=function(Ve){Ve.preventDefault(),Te.fireEvents("onContextMenu",Ve),Te.setPopupVisible(!0,Ve)},Te.onContextMenuClose=function(){Te.isContextMenuToShow()&&Te.close()},Te.onClick=function(Ve){if(Te.fireEvents("onClick",Ve),Te.focusTime){var ot;if(Te.preClickTime&&Te.preTouchTime?ot=Math.min(Te.preClickTime,Te.preTouchTime):Te.preClickTime?ot=Te.preClickTime:Te.preTouchTime&&(ot=Te.preTouchTime),Math.abs(ot-Te.focusTime)<20)return;Te.focusTime=0}Te.preClickTime=0,Te.preTouchTime=0,Te.isClickToShow()&&(Te.isClickToHide()||Te.isBlurToHide())&&Ve&&Ve.preventDefault&&Ve.preventDefault();var et=!Te.state.popupVisible;(Te.isClickToHide()&&!et||et&&Te.isClickToShow())&&Te.setPopupVisible(!Te.state.popupVisible,Ve)},Te.onPopupMouseDown=function(){if(Te.hasPopupMouseDown=!0,clearTimeout(Te.mouseDownTimeout),Te.mouseDownTimeout=window.setTimeout(function(){Te.hasPopupMouseDown=!1},0),Te.context){var Ve;(Ve=Te.context).onPopupMouseDown.apply(Ve,arguments)}},Te.onDocumentClick=function(Ve){if(Te.props.mask&&!Te.props.maskClosable)return;var ot=Ve.target,et=Te.getRootDomNode(),pt=Te.getPopupDomNode();(!Object(St.a)(et,ot)||Te.isContextMenuOnly())&&!Object(St.a)(pt,ot)&&!Te.hasPopupMouseDown&&Te.close()},Te.getRootDomNode=function(){var Ve=Te.props.getTriggerDOMNode;if(Ve)return Ve(Te.triggerRef.current);try{var ot=Object(Dt.a)(Te.triggerRef.current);if(ot)return ot}catch(et){}return ct.a.findDOMNode(Object(A.a)(Te))},Te.getPopupClassNameFromAlign=function(Ve){var ot=[],et=Te.props,pt=et.popupPlacement,Ot=et.builtinPlacements,Yt=et.prefixCls,t=et.alignPoint,T=et.getPopupClassNameFromAlign;return pt&&Ot&&ot.push(se(Ot,Yt,Ve,t)),T&&ot.push(T(Ve)),ot.join(" ")},Te.getComponent=function(){var Ve=Te.props,ot=Ve.prefixCls,et=Ve.destroyPopupOnHide,pt=Ve.popupClassName,Ot=Ve.onPopupAlign,Yt=Ve.popupMotion,t=Ve.popupAnimation,T=Ve.popupTransitionName,k=Ve.popupStyle,G=Ve.mask,$=Ve.maskAnimation,de=Ve.maskTransitionName,xe=Ve.maskMotion,Oe=Ve.zIndex,ke=Ve.popup,Fe=Ve.stretch,Qe=Ve.alignPoint,yt=Ve.mobile,mt=Ve.forceRender,Ct=Te.state,At=Ct.popupVisible,kt=Ct.point,Kt=Te.getPopupAlign(),vt={};return Te.isMouseEnterToShow()&&(vt.onMouseEnter=Te.onPopupMouseEnter),Te.isMouseLeaveToHide()&&(vt.onMouseLeave=Te.onPopupMouseLeave),vt.onMouseDown=Te.onPopupMouseDown,vt.onTouchStart=Te.onPopupMouseDown,c.createElement(cn,Object(R.a)({prefixCls:ot,destroyPopupOnHide:et,visible:At,point:Qe&&kt,className:pt,align:Kt,onAlign:Ot,animation:t,getClassNameFromAlign:Te.getPopupClassNameFromAlign},vt,{stretch:Fe,getRootDomNode:Te.getRootDomNode,style:k,mask:G,zIndex:Oe,transitionName:T,maskAnimation:$,maskTransitionName:de,maskMotion:xe,ref:Te.popupRef,motion:Yt,mobile:yt,forceRender:mt}),typeof ke=="function"?ke():ke)},Te.attachParent=function(Ve){lt.a.cancel(Te.attachId);var ot=Te.props,et=ot.getPopupContainer,pt=ot.getDocument,Ot=Te.getRootDomNode(),Yt;et?(Ot||et.length===0)&&(Yt=et(Ot)):Yt=pt(Te.getRootDomNode()).body,Yt?Yt.appendChild(Ve):Te.attachId=Object(lt.a)(function(){Te.attachParent(Ve)})},Te.getContainer=function(){var Ve=Te.props.getDocument,ot=Ve(Te.getRootDomNode()).createElement("div");return ot.style.position="absolute",ot.style.top="0",ot.style.left="0",ot.style.width="100%",Te.attachParent(ot),ot},Te.setPoint=function(Ve){var ot=Te.props.alignPoint;if(!ot||!Ve)return;Te.setState({point:{pageX:Ve.pageX,pageY:Ve.pageY}})},Te.handlePortalUpdate=function(){Te.state.prevPopupVisible!==Te.state.popupVisible&&Te.props.afterPopupVisibleChange(Te.state.popupVisible)},Te.triggerContextValue={onPopupMouseDown:Te.onPopupMouseDown};var Ge;return"popupVisible"in Ne?Ge=!!Ne.popupVisible:Ge=!!Ne.defaultPopupVisible,Te.state={prevPopupVisible:Ge,popupVisible:Ge},an.forEach(function(Ve){Te["fire".concat(Ve)]=function(ot){Te.fireEvents(Ve,ot)}}),Te}return Object(x.a)(_e,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Te=this.props,Ge=this.state;if(Ge.popupVisible){var Ve;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(Ve=Te.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(ht.a)(Ve,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(Ve=Ve||Te.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(ht.a)(Ve,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(Ve=Ve||Te.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(ht.a)(Ve,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(ht.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),lt.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var Te;return((Te=this.popupRef.current)===null||Te===void 0?void 0:Te.getElement())||null}},{key:"getPopupAlign",value:function(){var Te=this.props,Ge=Te.popupPlacement,Ve=Te.popupAlign,ot=Te.builtinPlacements;return Ge&&ot?ve(ot,Ge,Ve):Ve}},{key:"setPopupVisible",value:function(Te,Ge){var Ve=this.props.alignPoint,ot=this.state.popupVisible;this.clearDelayTimer(),ot!==Te&&("popupVisible"in this.props||this.setState({popupVisible:Te,prevPopupVisible:ot}),this.props.onPopupVisibleChange(Te)),Ve&&Ge&&Te&&this.setPoint(Ge)}},{key:"delaySetPopupVisible",value:function(Te,Ge,Ve){var ot=this,et=Ge*1e3;if(this.clearDelayTimer(),et){var pt=Ve?{pageX:Ve.pageX,pageY:Ve.pageY}:null;this.delayTimer=window.setTimeout(function(){ot.setPopupVisible(Te,pt),ot.clearDelayTimer()},et)}else this.setPopupVisible(Te,Ve)}},{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(Te){var Ge=this.props.children.props,Ve=this.props;return Ge[Te]&&Ve[Te]?this["fire".concat(Te)]:Ge[Te]||Ve[Te]}},{key:"isClickToShow",value:function(){var Te=this.props,Ge=Te.action,Ve=Te.showAction;return Ge.indexOf("click")!==-1||Ve.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var Te=this.props.action;return Te==="contextMenu"||Te.length===1&&Te[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var Te=this.props,Ge=Te.action,Ve=Te.showAction;return Ge.indexOf("contextMenu")!==-1||Ve.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var Te=this.props,Ge=Te.action,Ve=Te.hideAction;return Ge.indexOf("click")!==-1||Ve.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var Te=this.props,Ge=Te.action,Ve=Te.showAction;return Ge.indexOf("hover")!==-1||Ve.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var Te=this.props,Ge=Te.action,Ve=Te.hideAction;return Ge.indexOf("hover")!==-1||Ve.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var Te=this.props,Ge=Te.action,Ve=Te.showAction;return Ge.indexOf("focus")!==-1||Ve.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var Te=this.props,Ge=Te.action,Ve=Te.hideAction;return Ge.indexOf("focus")!==-1||Ve.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var Te;(Te=this.popupRef.current)===null||Te===void 0||Te.forceAlign()}}},{key:"fireEvents",value:function(Te,Ge){var Ve=this.props.children.props[Te];Ve&&Ve(Ge);var ot=this.props[Te];ot&&ot(Ge)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var Te=this.state.popupVisible,Ge=this.props,Ve=Ge.children,ot=Ge.forceRender,et=Ge.alignPoint,pt=Ge.className,Ot=Ge.autoDestroy,Yt=c.Children.only(Ve),t={key:"trigger"};this.isContextMenuToShow()?t.onContextMenu=this.onContextMenu:t.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(t.onClick=this.onClick,t.onMouseDown=this.onMouseDown,t.onTouchStart=this.onTouchStart):(t.onClick=this.createTwoChains("onClick"),t.onMouseDown=this.createTwoChains("onMouseDown"),t.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(t.onMouseEnter=this.onMouseEnter,et&&(t.onMouseMove=this.onMouseMove)):t.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?t.onMouseLeave=this.onMouseLeave:t.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(t.onFocus=this.onFocus,t.onBlur=this.onBlur):(t.onFocus=this.createTwoChains("onFocus"),t.onBlur=this.createTwoChains("onBlur"));var T=M()(Yt&&Yt.props&&Yt.props.className,pt);T&&(t.className=T);var k=Object(N.a)({},t);Object(bt.c)(Yt)&&(k.ref=Object(bt.a)(this.triggerRef,Yt.ref));var G=c.cloneElement(Yt,k),$;return(Te||this.popupRef.current||ot)&&($=c.createElement(ze,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!Te&&Ot&&($=null),c.createElement(dn.Provider,{value:this.triggerContextValue},G,$)}}],[{key:"getDerivedStateFromProps",value:function(Te,Ge){var Ve=Te.popupVisible,ot={};return Ve!==void 0&&Ge.popupVisible!==Ve&&(ot.popupVisible=Ve,ot.prevPopupVisible=Ge.popupVisible),ot}}]),_e}(c.Component);return $e.contextType=dn,$e.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:ln,getDocument:xn,onPopupVisibleChange:Bt,afterPopupVisibleChange:Bt,onPopupAlign:Bt,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},$e}var Gn=_n(Ut.a),mn={adjustX:1,adjustY:1},qn={topLeft:{points:["bl","tl"],overflow:mn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:mn,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:mn,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:mn,offset:[4,0]}},zn={topLeft:{points:["bl","tl"],overflow:mn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:mn,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:mn,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:mn,offset:[4,0]}},Kn=qn,An=0,Bn={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Mn=function($e,at,Ke){var _e=me(at),Ne=$e.getState();$e.setState({defaultActiveFirst:Object(N.a)(Object(N.a)({},Ne.defaultActiveFirst),{},Object(Z.a)({},_e,Ke))})},Vn=function(ze){Object(o.a)(at,ze);var $e=Object(f.a)(at);function at(Ke){var _e;Object(w.a)(this,at),_e=$e.call(this,Ke),_e.onDestroy=function(et){_e.props.onDestroy(et)},_e.onKeyDown=function(et){var pt=et.keyCode,Ot=_e.menuInstance,Yt=_e.props.store,t=_e.getVisible();if(pt===y.a.ENTER)return _e.onTitleClick(et),Mn(Yt,_e.props.eventKey,!0),!0;if(pt===y.a.RIGHT)return t?Ot.onKeyDown(et):(_e.triggerOpenChange(!0),Mn(Yt,_e.props.eventKey,!0)),!0;if(pt===y.a.LEFT){var T;if(t)T=Ot.onKeyDown(et);else return;return T||(_e.triggerOpenChange(!1),T=!0),T}return t&&(pt===y.a.UP||pt===y.a.DOWN)?Ot.onKeyDown(et):void 0},_e.onOpenChange=function(et){_e.props.onOpenChange(et)},_e.onPopupVisibleChange=function(et){_e.triggerOpenChange(et,et?"mouseenter":"mouseleave")},_e.onMouseEnter=function(et){var pt=_e.props,Ot=pt.eventKey,Yt=pt.onMouseEnter,t=pt.store;Mn(t,_e.props.eventKey,!1),Yt({key:Ot,domEvent:et})},_e.onMouseLeave=function(et){var pt=_e.props,Ot=pt.parentMenu,Yt=pt.eventKey,t=pt.onMouseLeave;Ot.subMenuInstance=Object(A.a)(_e),t({key:Yt,domEvent:et})},_e.onTitleMouseEnter=function(et){var pt=_e.props,Ot=pt.eventKey,Yt=pt.onItemHover,t=pt.onTitleMouseEnter;Yt({key:Ot,hover:!0}),t({key:Ot,domEvent:et})},_e.onTitleMouseLeave=function(et){var pt=_e.props,Ot=pt.parentMenu,Yt=pt.eventKey,t=pt.onItemHover,T=pt.onTitleMouseLeave;Ot.subMenuInstance=Object(A.a)(_e),t({key:Yt,hover:!1}),T({key:Yt,domEvent:et})},_e.onTitleClick=function(et){var pt=Object(A.a)(_e),Ot=pt.props;if(Ot.onTitleClick({key:Ot.eventKey,domEvent:et}),Ot.triggerSubMenuAction==="hover")return;_e.triggerOpenChange(!_e.getVisible(),"click"),Mn(Ot.store,_e.props.eventKey,!1)},_e.onSubMenuClick=function(et){typeof _e.props.onClick=="function"&&_e.props.onClick(_e.addKeyPath(et))},_e.onSelect=function(et){_e.props.onSelect(et)},_e.onDeselect=function(et){_e.props.onDeselect(et)},_e.getPrefixCls=function(){return"".concat(_e.props.rootPrefixCls,"-submenu")},_e.getActiveClassName=function(){return"".concat(_e.getPrefixCls(),"-active")},_e.getDisabledClassName=function(){return"".concat(_e.getPrefixCls(),"-disabled")},_e.getSelectedClassName=function(){return"".concat(_e.getPrefixCls(),"-selected")},_e.getOpenClassName=function(){return"".concat(_e.props.rootPrefixCls,"-submenu-open")},_e.getVisible=function(){return _e.state.isOpen},_e.getMode=function(){return _e.state.mode},_e.saveMenuInstance=function(et){_e.menuInstance=et},_e.addKeyPath=function(et){return Object(N.a)(Object(N.a)({},et),{},{keyPath:(et.keyPath||[]).concat(_e.props.eventKey)})},_e.triggerOpenChange=function(et,pt){var Ot=_e.props.eventKey,Yt=function(){_e.onOpenChange({key:Ot,item:Object(A.a)(_e),trigger:pt,open:et})};pt==="mouseenter"?_e.mouseenterTimeout=setTimeout(function(){Yt()},0):Yt()},_e.isChildrenSelected=function(){var et={find:!1};return Je(_e.props.children,_e.props.selectedKeys,et),et.find},_e.isInlineMode=function(){return _e.getMode()==="inline"},_e.adjustWidth=function(){if(!_e.subMenuTitle||!_e.menuInstance)return;var et=Xe.findDOMNode(_e.menuInstance);if(et.offsetWidth>=_e.subMenuTitle.offsetWidth)return;et.style.minWidth="".concat(_e.subMenuTitle.offsetWidth,"px")},_e.saveSubMenuTitle=function(et){_e.subMenuTitle=et},_e.getBaseProps=function(){var et=Object(A.a)(_e),pt=et.props,Ot=_e.getMode();return{mode:Ot==="horizontal"?"vertical":Ot,visible:_e.getVisible(),level:pt.level+1,inlineIndent:pt.inlineIndent,focusable:!1,onClick:_e.onSubMenuClick,onSelect:_e.onSelect,onDeselect:_e.onDeselect,onDestroy:_e.onDestroy,selectedKeys:pt.selectedKeys,eventKey:"".concat(pt.eventKey,"-menu-"),openKeys:pt.openKeys,motion:pt.motion,onOpenChange:_e.onOpenChange,subMenuOpenDelay:pt.subMenuOpenDelay,parentMenu:Object(A.a)(_e),subMenuCloseDelay:pt.subMenuCloseDelay,forceSubMenuRender:pt.forceSubMenuRender,triggerSubMenuAction:pt.triggerSubMenuAction,builtinPlacements:pt.builtinPlacements,defaultActiveFirst:pt.store.getState().defaultActiveFirst[me(pt.eventKey)],multiple:pt.multiple,prefixCls:pt.rootPrefixCls,id:_e.internalMenuId,manualRef:_e.saveMenuInstance,itemIcon:pt.itemIcon,expandIcon:pt.expandIcon,direction:pt.direction}},_e.getMotion=function(et,pt){var Ot=Object(A.a)(_e),Yt=Ot.haveRendered,t=_e.props,T=t.motion,k=t.rootPrefixCls,G=Object(N.a)(Object(N.a)({},T),{},{leavedClassName:"".concat(k,"-hidden"),removeOnLeave:!1,motionAppear:Yt||!pt||et!=="inline"});return G};var Ne=Ke.store,Te=Ke.eventKey,Ge=Ne.getState(),Ve=Ge.defaultActiveFirst;_e.isRootMenu=!1;var ot=!1;return Ve&&(ot=Ve[Te]),Mn(Ne,Te,ot),_e.state={mode:Ke.mode,isOpen:Ke.isOpen},_e}return Object(x.a)(at,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var _e=this,Ne=this.props,Te=Ne.mode,Ge=Ne.parentMenu,Ve=Ne.manualRef,ot=Ne.isOpen,et=function(){_e.setState({mode:Te,isOpen:ot})},pt=ot!==this.state.isOpen,Ot=Te!==this.state.mode;if((Ot||pt)&&(lt.a.cancel(this.updateStateRaf),Ot?this.updateStateRaf=Object(lt.a)(et):et()),Ve&&Ve(this),Te!=="horizontal"||!(Ge==null?void 0:Ge.isRootMenu)||!ot)return;this.minWidthTimeout=setTimeout(function(){return _e.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var _e=this.props,Ne=_e.onDestroy,Te=_e.eventKey;Ne&&Ne(Te),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),lt.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(_e,Ne){var Te=this.getBaseProps();return c.createElement(ki,Object(R.a)({},Te,{id:this.internalMenuId,className:_e,style:Ne}),this.props.children)}},{key:"renderChildren",value:function(){var _e=this,Ne=this.getBaseProps(),Te=Ne.mode,Ge=Ne.visible,Ve=Ne.forceSubMenuRender,ot=Ne.direction,et=this.getMotion(Te,Ge);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||Ge||Ve,!this.haveOpened)return c.createElement("div",null);var pt=M()("".concat(Ne.prefixCls,"-sub"),Object(Z.a)({},"".concat(Ne.prefixCls,"-rtl"),ot==="rtl"));return this.isInlineMode()?c.createElement(Jt,Object(R.a)({visible:Ne.visible,forceRender:Ve},et),function(Ot){var Yt=Ot.className,t=Ot.style,T=M()(pt,Yt);return _e.renderPopupMenu(T,t)}):this.renderPopupMenu(pt)}},{key:"render",value:function(){var _e,Ne,Te,Ge=Object(N.a)({},this.props),Ve=this.getVisible(),ot=this.getPrefixCls(),et=this.isInlineMode(),pt=this.getMode(),Ot=M()(ot,"".concat(ot,"-").concat(pt),(_e={},Object(Z.a)(_e,Ge.className,!!Ge.className),Object(Z.a)(_e,this.getOpenClassName(),Ve),Object(Z.a)(_e,this.getActiveClassName(),Ge.active||Ve&&!et),Object(Z.a)(_e,this.getDisabledClassName(),Ge.disabled),Object(Z.a)(_e,this.getSelectedClassName(),this.isChildrenSelected()),_e));this.internalMenuId||(Ge.eventKey?this.internalMenuId="".concat(Ge.eventKey,"$Menu"):(An+=1,this.internalMenuId="$__$".concat(An,"$Menu")));var Yt={},t={},T={};Ge.disabled||(Yt={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},t={onClick:this.onTitleClick},T={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var k={},G=Ge.direction,$=G==="rtl";et&&($?k.paddingRight=Ge.inlineIndent*Ge.level:k.paddingLeft=Ge.inlineIndent*Ge.level);var de={};this.getVisible()&&(de={"aria-owns":this.internalMenuId});var xe=null;pt!=="horizontal"&&(xe=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(xe=c.createElement(this.props.expandIcon,Object(N.a)({},this.props))));var Oe=c.createElement("div",Object(R.a)({ref:this.saveSubMenuTitle,style:k,className:"".concat(ot,"-title"),role:"button"},T,t,{"aria-expanded":Ve},de,{"aria-haspopup":"true",title:typeof Ge.title=="string"?Ge.title:void 0}),Ge.title,xe||c.createElement("i",{className:"".concat(ot,"-arrow")})),ke=this.renderChildren(),Fe=((Ne=Ge.parentMenu)===null||Ne===void 0?void 0:Ne.isRootMenu)?Ge.parentMenu.props.getPopupContainer:function(on){return on.parentNode},Qe=Bn[pt],yt=Ge.popupOffset?{offset:Ge.popupOffset}:{},mt=M()((Te={},Object(Z.a)(Te,Ge.popupClassName,Ge.popupClassName&&!et),Object(Z.a)(Te,"".concat(ot,"-rtl"),$),Te)),Ct=Ge.disabled,At=Ge.triggerSubMenuAction,kt=Ge.subMenuOpenDelay,Kt=Ge.forceSubMenuRender,vt=Ge.subMenuCloseDelay,Wt=Ge.builtinPlacements;oe.forEach(function(on){return delete Ge[on]}),delete Ge.onClick;var Xt=$?Object(N.a)(Object(N.a)({},zn),Wt):Object(N.a)(Object(N.a)({},qn),Wt);delete Ge.direction;var rn=this.getBaseProps(),sn=et?null:this.getMotion(rn.mode,rn.visible);return c.createElement("li",Object(R.a)({},Ge,Yt,{className:Ot,role:"menuitem"}),c.createElement(Gn,{prefixCls:ot,popupClassName:M()("".concat(ot,"-popup"),mt),getPopupContainer:Fe,builtinPlacements:Xt,popupPlacement:Qe,popupVisible:et?!1:Ve,popupAlign:yt,popup:et?null:ke,action:Ct||et?[]:[At],mouseEnterDelay:kt,mouseLeaveDelay:vt,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Kt,popupMotion:sn},Oe),et?ke:null)}}]),at}(c.Component);Vn.defaultProps={onMouseEnter:ee,onMouseLeave:ee,onTitleMouseEnter:ee,onTitleMouseLeave:ee,onTitleClick:ee,manualRef:ee,mode:"vertical",title:""};var gi=Object(E.b)(function(ze,$e){var at=ze.openKeys,Ke=ze.activeKey,_e=ze.selectedKeys,Ne=$e.eventKey,Te=$e.subMenuKey;return{isOpen:at.indexOf(Ne)>-1,active:Ke[Te]===Ne,selectedKeys:_e}})(Vn);gi.isSubMenu=!0;var ii=gi,vi="menuitem-overflowed",Si=.5,jn=function(ze){Object(o.a)(at,ze);var $e=Object(f.a)(at);function at(){var Ke;return Object(w.a)(this,at),Ke=$e.apply(this,arguments),Ke.resizeObserver=null,Ke.mutationObserver=null,Ke.originalTotalWidth=0,Ke.overflowedItems=[],Ke.menuItemSizes=[],Ke.cancelFrameId=null,Ke.state={lastVisibleIndex:void 0},Ke.childRef=c.createRef(),Ke.getMenuItemNodes=function(){var _e=Ke.props.prefixCls,Ne=Ke.childRef.current;return Ne?[].slice.call(Ne.children).filter(function(Te){return Te.className.split(" ").indexOf("".concat(_e,"-overflowed-submenu"))<0}):[]},Ke.getOverflowedSubMenuItem=function(_e,Ne,Te){var Ge=Ke.props,Ve=Ge.overflowedIndicator,ot=Ge.level,et=Ge.mode,pt=Ge.prefixCls,Ot=Ge.theme;if(ot!==1||et!=="horizontal")return null;var Yt=Ke.props.children[0],t=Yt.props,T=t.children,k=t.title,G=t.style,$=Object(L.a)(t,["children","title","style"]),de=Object(N.a)({},G),xe="".concat(_e,"-overflowed-indicator"),Oe="".concat(_e,"-overflowed-indicator");Ne.length===0&&Te!==!0?de=Object(N.a)(Object(N.a)({},de),{},{display:"none"}):Te&&(de=Object(N.a)(Object(N.a)({},de),{},{visibility:"hidden",position:"absolute"}),xe="".concat(xe,"-placeholder"),Oe="".concat(Oe,"-placeholder"));var ke=Ot?"".concat(pt,"-").concat(Ot):"",Fe={};return oe.forEach(function(Qe){$[Qe]!==void 0&&(Fe[Qe]=$[Qe])}),c.createElement(ii,Object(R.a)({title:Ve,className:"".concat(pt,"-overflowed-submenu"),popupClassName:ke},Fe,{key:xe,eventKey:Oe,disabled:!1,style:de}),Ne)},Ke.setChildrenWidthAndResize=function(){if(Ke.props.mode!=="horizontal")return;var _e=Ke.childRef.current;if(!_e)return;var Ne=_e.children;if(!Ne||Ne.length===0)return;var Te=_e.children[Ne.length-1];ye(Te,"display","inline-block");var Ge=Ke.getMenuItemNodes(),Ve=Ge.filter(function(ot){return ot.className.split(" ").indexOf(vi)>=0});Ve.forEach(function(ot){ye(ot,"display","inline-block")}),Ke.menuItemSizes=Ge.map(function(ot){return Ae(ot,!0)}),Ve.forEach(function(ot){ye(ot,"display","none")}),Ke.overflowedIndicatorWidth=Ae(_e.children[_e.children.length-1],!0),Ke.originalTotalWidth=Ke.menuItemSizes.reduce(function(ot,et){return ot+et},0),Ke.handleResize(),ye(Te,"display","none")},Ke.handleResize=function(){if(Ke.props.mode!=="horizontal")return;var _e=Ke.childRef.current;if(!_e)return;var Ne=Ae(_e);Ke.overflowedItems=[];var Te=0,Ge;Ke.originalTotalWidth>Ne+Si&&(Ge=-1,Ke.menuItemSizes.forEach(function(Ve){Te+=Ve,Te+Ke.overflowedIndicatorWidth<=Ne&&(Ge+=1)})),Ke.setState({lastVisibleIndex:Ge})},Ke}return Object(x.a)(at,[{key:"componentDidMount",value:function(){var _e=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Ne=this.childRef.current;if(!Ne)return;this.resizeObserver=new We.default(function(Te){Te.forEach(function(){var Ge=_e.cancelFrameId;cancelAnimationFrame(Ge),_e.cancelFrameId=requestAnimationFrame(_e.setChildrenWidthAndResize)})}),[].slice.call(Ne.children).concat(Ne).forEach(function(Te){_e.resizeObserver.observe(Te)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){_e.resizeObserver.disconnect(),[].slice.call(Ne.children).concat(Ne).forEach(function(Te){_e.resizeObserver.observe(Te)}),_e.setChildrenWidthAndResize()}),this.mutationObserver.observe(Ne,{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(_e){var Ne=this,Te=this.state.lastVisibleIndex;return(_e||[]).reduce(function(Ge,Ve,ot){var et=Ve;if(Ne.props.mode==="horizontal"){var pt=Ne.getOverflowedSubMenuItem(Ve.props.eventKey,[]);Te!==void 0&&Ne.props.className.indexOf("".concat(Ne.props.prefixCls,"-root"))!==-1&&(ot>Te&&(et=c.cloneElement(Ve,{style:{display:"none"},eventKey:"".concat(Ve.props.eventKey,"-hidden"),className:"".concat(vi)})),ot===Te+1&&(Ne.overflowedItems=_e.slice(Te+1).map(function(Yt){return c.cloneElement(Yt,{key:Yt.props.eventKey,mode:"vertical-left"})}),pt=Ne.getOverflowedSubMenuItem(Ve.props.eventKey,Ne.overflowedItems)));var Ot=[].concat(Object(m.a)(Ge),[pt,et]);return ot===_e.length-1&&Ot.push(Ne.getOverflowedSubMenuItem(Ve.props.eventKey,[],!0)),Ot}return[].concat(Object(m.a)(Ge),[et])},[])}},{key:"render",value:function(){var _e=this.props,Ne=_e.visible,Te=_e.prefixCls,Ge=_e.overflowedIndicator,Ve=_e.mode,ot=_e.level,et=_e.tag,pt=_e.children,Ot=_e.theme,Yt=Object(L.a)(_e,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),t=et;return c.createElement(t,Object(R.a)({ref:this.childRef},Yt),this.renderChildren(pt))}}]),at}(c.Component);jn.defaultProps={tag:"div",className:""};var En=jn;function si(ze){return ze.length?ze.every(function($e){return!!$e.props.disabled}):!0}function Yn(ze,$e,at){var Ke=ze.getState();ze.setState({activeKey:Object(N.a)(Object(N.a)({},Ke.activeKey),{},Object(Z.a)({},$e,at))})}function $n(ze){return ze.eventKey||"0-menu-"}function li(ze,$e){var at=$e,Ke=ze.children,_e=ze.eventKey;if(at){var Ne;if(je(Ke,function(Te,Ge){Te&&Te.props&&!Te.props.disabled&&at===X(Te,_e,Ge)&&(Ne=!0)}),Ne)return at}return at=null,ze.defaultActiveFirst&&je(Ke,function(Te,Ge){!at&&Te&&!Te.props.disabled&&(at=X(Te,_e,Ge))}),at}function Ui(ze){if(!ze)return;var $e=this.instanceArray.indexOf(ze);$e!==-1?this.instanceArray[$e]=ze:this.instanceArray.push(ze)}var wi=function(ze){Object(o.a)(at,ze);var $e=Object(f.a)(at);function at(Ke){var _e;return Object(w.a)(this,at),_e=$e.call(this,Ke),_e.onKeyDown=function(Ne,Te){var Ge=Ne.keyCode,Ve;if(_e.getFlatInstanceArray().forEach(function(et){et&&et.props.active&&et.onKeyDown&&(Ve=et.onKeyDown(Ne))}),Ve)return 1;var ot=null;return(Ge===y.a.UP||Ge===y.a.DOWN)&&(ot=_e.step(Ge===y.a.UP?-1:1)),ot?(Ne.preventDefault(),Yn(_e.props.store,$n(_e.props),ot.props.eventKey),typeof Te=="function"&&Te(ot),1):void 0},_e.onItemHover=function(Ne){var Te=Ne.key,Ge=Ne.hover;Yn(_e.props.store,$n(_e.props),Ge?Te:null)},_e.onDeselect=function(Ne){_e.props.onDeselect(Ne)},_e.onSelect=function(Ne){_e.props.onSelect(Ne)},_e.onClick=function(Ne){_e.props.onClick(Ne)},_e.onOpenChange=function(Ne){_e.props.onOpenChange(Ne)},_e.onDestroy=function(Ne){_e.props.onDestroy(Ne)},_e.getFlatInstanceArray=function(){return _e.instanceArray},_e.step=function(Ne){var Te=_e.getFlatInstanceArray(),Ge=_e.props.store.getState().activeKey[$n(_e.props)],Ve=Te.length;if(!Ve)return null;Ne<0&&(Te=Te.concat().reverse());var ot=-1;if(Te.every(function(Yt,t){return Yt&&Yt.props.eventKey===Ge?(ot=t,!1):!0}),!_e.props.defaultActiveFirst&&ot!==-1&&si(Te.slice(ot,Ve-1)))return;var et=(ot+1)%Ve,pt=et;do{var Ot=Te[pt];if(!Ot||Ot.props.disabled)pt=(pt+1)%Ve;else return Ot}while(pt!==et);return null},_e.renderCommonMenuItem=function(Ne,Te,Ge){var Ve=_e.props.store.getState(),ot=Object(A.a)(_e),et=ot.props,pt=X(Ne,et.eventKey,Te),Ot=Ne.props;if(!Ot||typeof Ne.type=="string")return Ne;var Yt=pt===Ve.activeKey,t=Object(N.a)(Object(N.a)({mode:Ot.mode||et.mode,level:et.level,inlineIndent:et.inlineIndent,renderMenuItem:_e.renderMenuItem,rootPrefixCls:et.prefixCls,index:Te,parentMenu:et.parentMenu,manualRef:Ot.disabled?void 0:Object(S.a)(Ne.ref,Ui.bind(Object(A.a)(_e))),eventKey:pt,active:!Ot.disabled&&Yt,multiple:et.multiple,onClick:function(k){(Ot.onClick||ee)(k),_e.onClick(k)},onItemHover:_e.onItemHover,motion:et.motion,subMenuOpenDelay:et.subMenuOpenDelay,subMenuCloseDelay:et.subMenuCloseDelay,forceSubMenuRender:et.forceSubMenuRender,onOpenChange:_e.onOpenChange,onDeselect:_e.onDeselect,onSelect:_e.onSelect,builtinPlacements:et.builtinPlacements,itemIcon:Ot.itemIcon||_e.props.itemIcon,expandIcon:Ot.expandIcon||_e.props.expandIcon},Ge),{},{direction:et.direction});return(et.mode==="inline"||Le())&&(t.triggerSubMenuAction="click"),c.cloneElement(Ne,Object(N.a)(Object(N.a)({},t),{},{key:pt||Te}))},_e.renderMenuItem=function(Ne,Te,Ge){if(!Ne)return null;var Ve=_e.props.store.getState(),ot={openKeys:Ve.openKeys,selectedKeys:Ve.selectedKeys,triggerSubMenuAction:_e.props.triggerSubMenuAction,subMenuKey:Ge};return _e.renderCommonMenuItem(Ne,Te,ot)},Ke.store.setState({activeKey:Object(N.a)(Object(N.a)({},Ke.store.getState().activeKey),{},Object(Z.a)({},Ke.eventKey,li(Ke,Ke.activeKey)))}),_e.instanceArray=[],_e}return Object(x.a)(at,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(_e){return this.props.visible||_e.visible||this.props.className!==_e.className||!D()(this.props.style,_e.style)}},{key:"componentDidUpdate",value:function(_e){var Ne=this.props,Te="activeKey"in Ne?Ne.activeKey:Ne.store.getState().activeKey[$n(Ne)],Ge=li(Ne,Te);if(Ge!==Te)Yn(Ne.store,$n(Ne),Ge);else if("activeKey"in _e){var Ve=li(_e,_e.activeKey);Ge!==Ve&&Yn(Ne.store,$n(Ne),Ge)}}},{key:"render",value:function(){var _e=this,Ne=Object(R.a)({},this.props);this.instanceArray=[];var Te=M()(Ne.prefixCls,Ne.className,"".concat(Ne.prefixCls,"-").concat(Ne.mode)),Ge={className:Te,role:Ne.role||"menu"};Ne.id&&(Ge.id=Ne.id),Ne.focusable&&(Ge.tabIndex=0,Ge.onKeyDown=this.onKeyDown);var Ve=Ne.prefixCls,ot=Ne.eventKey,et=Ne.visible,pt=Ne.level,Ot=Ne.mode,Yt=Ne.overflowedIndicator,t=Ne.theme;return oe.forEach(function(T){return delete Ne[T]}),delete Ne.onClick,c.createElement(En,Object(R.a)({},Ne,{prefixCls:Ve,mode:Ot,tag:"ul",level:pt,theme:t,visible:et,overflowedIndicator:Yt},Ge),Object(g.a)(Ne.children).map(function(T,k){return _e.renderMenuItem(T,k,ot||"0-menu-")}))}}]),at}(c.Component);wi.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:ee};var Pi=Object(E.b)()(wi),ki=Pi,Mi=_("Kwbf");function Ei(ze,$e,at){var Ke=ze.prefixCls,_e=ze.motion,Ne=ze.defaultMotions,Te=Ne===void 0?{}:Ne,Ge=ze.openAnimation,Ve=ze.openTransitionName,ot=$e.switchingModeFromInline;if(_e)return _e;if(Object(P.a)(Ge)==="object"&&Ge)Object(Mi.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof Ge=="string")return{motionName:"".concat(Ke,"-open-").concat(Ge)};if(Ve)return{motionName:Ve};var et=Te[at];return et||(ot?null:Te.other)}var Xn=function(ze){Object(o.a)(at,ze);var $e=Object(f.a)(at);function at(Ke){var _e;Object(w.a)(this,at),_e=$e.call(this,Ke),_e.onSelect=function(Ge){var Ve=Object(A.a)(_e),ot=Ve.props;if(ot.selectable){var et=_e.store.getState(),pt=et.selectedKeys,Ot=Ge.key;ot.multiple?pt=pt.concat([Ot]):pt=[Ot],"selectedKeys"in ot||_e.store.setState({selectedKeys:pt}),ot.onSelect(Object(N.a)(Object(N.a)({},Ge),{},{selectedKeys:pt}))}},_e.onClick=function(Ge){var Ve=_e.getRealMenuMode(),ot=Object(A.a)(_e),et=ot.store,pt=ot.props.onOpenChange;Ve!=="inline"&&!("openKeys"in _e.props)&&(et.setState({openKeys:[]}),pt([])),_e.props.onClick(Ge)},_e.onKeyDown=function(Ge,Ve){_e.innerMenu.getWrappedInstance().onKeyDown(Ge,Ve)},_e.onOpenChange=function(Ge){var Ve=Object(A.a)(_e),ot=Ve.props,et=_e.store.getState().openKeys.concat(),pt=!1,Ot=function(t){var T=!1;if(t.open)T=et.indexOf(t.key)===-1,T&&et.push(t.key);else{var k=et.indexOf(t.key);T=k!==-1,T&&et.splice(k,1)}pt=pt||T};Array.isArray(Ge)?Ge.forEach(Ot):Ot(Ge),pt&&("openKeys"in _e.props||_e.store.setState({openKeys:et}),ot.onOpenChange(et))},_e.onDeselect=function(Ge){var Ve=Object(A.a)(_e),ot=Ve.props;if(ot.selectable){var et=_e.store.getState().selectedKeys.concat(),pt=Ge.key,Ot=et.indexOf(pt);Ot!==-1&&et.splice(Ot,1),"selectedKeys"in ot||_e.store.setState({selectedKeys:et}),ot.onDeselect(Object(N.a)(Object(N.a)({},Ge),{},{selectedKeys:et}))}},_e.onMouseEnter=function(Ge){_e.restoreModeVerticalFromInline();var Ve=_e.props.onMouseEnter;Ve&&Ve(Ge)},_e.onTransitionEnd=function(Ge){var Ve=Ge.propertyName==="width"&&Ge.target===Ge.currentTarget,ot=Ge.target.className,et=Object.prototype.toString.call(ot)==="[object SVGAnimatedString]"?ot.animVal:ot,pt=Ge.propertyName==="font-size"&&et.indexOf("anticon")>=0;(Ve||pt)&&_e.restoreModeVerticalFromInline()},_e.setInnerMenu=function(Ge){_e.innerMenu=Ge},_e.isRootMenu=!0;var Ne=Ke.defaultSelectedKeys,Te=Ke.defaultOpenKeys;return"selectedKeys"in Ke&&(Ne=Ke.selectedKeys||[]),"openKeys"in Ke&&(Te=Ke.openKeys||[]),_e.store=Object(E.c)({selectedKeys:Ne,openKeys:Te,activeKey:{"0-menu-":li(Ke,Ke.activeKey)}}),_e.state={switchingModeFromInline:!1,prevProps:Ke,inlineOpenKeys:[],store:_e.store},_e}return Object(x.a)(at,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(_e){var Ne=this.props,Te=Ne.siderCollapsed,Ge=Ne.inlineCollapsed,Ve=Ne.onOpenChange;(!_e.inlineCollapsed&&Ge||!_e.siderCollapsed&&Te)&&Ve([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var _e=this.props.collapsedWidth,Ne=this.store,Te=this.prevOpenKeys,Ge=this.getInlineCollapsed()&&(_e===0||_e==="0"||_e==="0px");Ge?(this.prevOpenKeys=Ne.getState().openKeys.concat(),this.store.setState({openKeys:[]})):Te&&(this.store.setState({openKeys:Te}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var _e=this.props.mode,Ne=this.state.switchingModeFromInline,Te=this.getInlineCollapsed();return Ne&&Te?"inline":Te?"vertical":_e}},{key:"getInlineCollapsed",value:function(){var _e=this.props,Ne=_e.inlineCollapsed,Te=_e.siderCollapsed;return Te!==void 0?Te:Ne}},{key:"restoreModeVerticalFromInline",value:function(){var _e=this.state.switchingModeFromInline;_e&&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 _e=Object(N.a)({},Object(O.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),Ne=this.getRealMenuMode();return _e.className+=" ".concat(_e.prefixCls,"-root"),_e.direction==="rtl"&&(_e.className+=" ".concat(_e.prefixCls,"-rtl")),_e=Object(N.a)(Object(N.a)({},_e),{},{mode:Ne,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Ei(this.props,this.state,Ne)}),delete _e.openAnimation,delete _e.openTransitionName,c.createElement(E.a,{store:this.store},c.createElement(ki,Object(R.a)({},_e,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(_e,Ne){var Te=Ne.prevProps,Ge=Ne.store,Ve=Ge.getState(),ot={},et={prevProps:_e};return Te.mode==="inline"&&_e.mode!=="inline"&&(et.switchingModeFromInline=!0),"openKeys"in _e?ot.openKeys=_e.openKeys||[]:((_e.inlineCollapsed&&!Te.inlineCollapsed||_e.siderCollapsed&&!Te.siderCollapsed)&&(et.switchingModeFromInline=!0,et.inlineOpenKeys=Ve.openKeys,ot.openKeys=[]),(!_e.inlineCollapsed&&Te.inlineCollapsed||!_e.siderCollapsed&&Te.siderCollapsed)&&(ot.openKeys=Ne.inlineOpenKeys,et.inlineOpenKeys=[])),Object.keys(ot).length&&Ge.setState(ot),et}}]),at}(c.Component);Xn.defaultProps={selectable:!0,onClick:ee,onSelect:ee,onOpenChange:ee,onDeselect:ee,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 Bi=Xn,Li=function(ze){Object(o.a)(at,ze);var $e=Object(f.a)(at);function at(){var Ke;return Object(w.a)(this,at),Ke=$e.apply(this,arguments),Ke.onKeyDown=function(_e){var Ne=_e.keyCode;return Ne===y.a.ENTER?(Ke.onClick(_e),!0):void 0},Ke.onMouseLeave=function(_e){var Ne=Ke.props,Te=Ne.eventKey,Ge=Ne.onItemHover,Ve=Ne.onMouseLeave;Ge({key:Te,hover:!1}),Ve({key:Te,domEvent:_e})},Ke.onMouseEnter=function(_e){var Ne=Ke.props,Te=Ne.eventKey,Ge=Ne.onItemHover,Ve=Ne.onMouseEnter;Ge({key:Te,hover:!0}),Ve({key:Te,domEvent:_e})},Ke.onClick=function(_e){var Ne=Ke.props,Te=Ne.eventKey,Ge=Ne.multiple,Ve=Ne.onClick,ot=Ne.onSelect,et=Ne.onDeselect,pt=Ne.isSelected,Ot={key:Te,keyPath:[Te],item:Object(A.a)(Ke),domEvent:_e};Ve(Ot),Ge?pt?et(Ot):ot(Ot):pt||ot(Ot)},Ke.saveNode=function(_e){Ke.node=_e},Ke}return Object(x.a)(at,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var _e=this.props;_e.onDestroy&&_e.onDestroy(_e.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 _e,Ne=Object(N.a)({},this.props),Te=M()(this.getPrefixCls(),Ne.className,(_e={},Object(Z.a)(_e,this.getActiveClassName(),!Ne.disabled&&Ne.active),Object(Z.a)(_e,this.getSelectedClassName(),Ne.isSelected),Object(Z.a)(_e,this.getDisabledClassName(),Ne.disabled),_e)),Ge=Object(N.a)(Object(N.a)({},Ne.attribute),{},{title:typeof Ne.title=="string"?Ne.title:void 0,className:Te,role:Ne.role||"menuitem","aria-disabled":Ne.disabled});Ne.role==="option"?Ge=Object(N.a)(Object(N.a)({},Ge),{},{role:"option","aria-selected":Ne.isSelected}):(Ne.role===null||Ne.role==="none")&&(Ge.role="none");var Ve={onClick:Ne.disabled?null:this.onClick,onMouseLeave:Ne.disabled?null:this.onMouseLeave,onMouseEnter:Ne.disabled?null:this.onMouseEnter},ot=Object(N.a)({},Ne.style);Ne.mode==="inline"&&(Ne.direction==="rtl"?ot.paddingRight=Ne.inlineIndent*Ne.level:ot.paddingLeft=Ne.inlineIndent*Ne.level),oe.forEach(function(pt){return delete Ne[pt]}),delete Ne.direction;var et=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(et=c.createElement(this.props.itemIcon,this.props)),c.createElement("li",Object(R.a)({},Object(O.a)(Ne,["onClick","onMouseEnter","onMouseLeave","onSelect"]),Ge,Ve,{style:ot,ref:this.saveNode}),Ne.children,et)}}]),at}(c.Component);Li.isMenuItem=!0,Li.defaultProps={onSelect:ee,onMouseEnter:ee,onMouseLeave:ee,manualRef:ee};var Ci=Object(E.b)(function(ze,$e){var at=ze.activeKey,Ke=ze.selectedKeys,_e=$e.eventKey,Ne=$e.subMenuKey;return{active:at[Ne]===_e,isSelected:Array.isArray(Ke)?Ke.indexOf(_e)!==-1:Ke===_e}})(Li),Rn=Ci,ri=function(ze){Object(o.a)(at,ze);var $e=Object(f.a)(at);function at(){var Ke;return Object(w.a)(this,at),Ke=$e.apply(this,arguments),Ke.renderInnerMenuItem=function(_e){var Ne=Ke.props,Te=Ne.renderMenuItem,Ge=Ne.index;return Te(_e,Ge,Ke.props.subMenuKey)},Ke}return Object(x.a)(at,[{key:"render",value:function(){var _e=Object(R.a)({},this.props),Ne=_e.className,Te=Ne===void 0?"":Ne,Ge=_e.rootPrefixCls,Ve="".concat(Ge,"-item-group-title"),ot="".concat(Ge,"-item-group-list"),et=_e.title,pt=_e.children;return oe.forEach(function(Ot){return delete _e[Ot]}),delete _e.direction,c.createElement("li",Object(R.a)({},_e,{onClick:function(Yt){return Yt.stopPropagation()},className:"".concat(Te," ").concat(Ge,"-item-group")}),c.createElement("div",{className:Ve,title:typeof et=="string"?et:void 0},et),c.createElement("ul",{className:ot},c.Children.map(pt,this.renderInnerMenuItem)))}}]),at}(c.Component);ri.isMenuItemGroup=!0,ri.defaultProps={disabled:!0};var pi=ri,oi=function($e){var at=$e.className,Ke=$e.rootPrefixCls,_e=$e.style;return c.createElement("li",{className:"".concat(at," ").concat(Ke,"-item-divider"),style:_e})};oi.defaultProps={disabled:!0,className:"",style:{}};var ei=oi,Xi=Bi,un=_("eDIo");function In(ze,$e){var at=ze.prefixCls,Ke=ze.editable,_e=ze.locale,Ne=ze.style;return!Ke||Ke.showAdd===!1?null:c.createElement("button",{ref:$e,type:"button",className:"".concat(at,"-nav-add"),style:Ne,"aria-label":(_e==null?void 0:_e.addAriaLabel)||"Add tab",onClick:function(Ge){Ke.onEdit("add",{event:Ge})}},Ke.addIcon||"+")}var Ti=c.forwardRef(In);function ui(ze,$e){var at=ze.prefixCls,Ke=ze.id,_e=ze.tabs,Ne=ze.locale,Te=ze.mobile,Ge=ze.moreIcon,Ve=Ge===void 0?"More":Ge,ot=ze.moreTransitionName,et=ze.style,pt=ze.className,Ot=ze.editable,Yt=ze.tabBarGutter,t=ze.rtl,T=ze.onTabClick,k=Object(c.useState)(!1),G=Object(U.a)(k,2),$=G[0],de=G[1],xe=Object(c.useState)(null),Oe=Object(U.a)(xe,2),ke=Oe[0],Fe=Oe[1],Qe="".concat(Ke,"-more-popup"),yt="".concat(at,"-dropdown"),mt=ke!==null?"".concat(Qe,"-").concat(ke):null,Ct=Ne==null?void 0:Ne.dropdownAriaLabel,At=c.createElement(Xi,{onClick:function(sn){var on=sn.key,en=sn.domEvent;T(on,en),de(!1)},id:Qe,tabIndex:-1,role:"listbox","aria-activedescendant":mt,selectedKeys:[ke],"aria-label":Ct!==void 0?Ct:"expanded dropdown"},_e.map(function(rn){return c.createElement(Rn,{key:rn.key,id:"".concat(Qe,"-").concat(rn.key),role:"option","aria-controls":Ke&&"".concat(Ke,"-panel-").concat(rn.key),disabled:rn.disabled},rn.tab)}));function kt(rn){for(var sn=_e.filter(function(Qn){return!Qn.disabled}),on=sn.findIndex(function(Qn){return Qn.key===ke})||0,en=sn.length,gn=0;gn<en;gn+=1){on=(on+rn+en)%en;var bn=sn[on];if(!bn.disabled){Fe(bn.key);return}}}function Kt(rn){var sn=rn.which;if(!$){[y.a.DOWN,y.a.SPACE,y.a.ENTER].includes(sn)&&(de(!0),rn.preventDefault());return}switch(sn){case y.a.UP:kt(-1),rn.preventDefault();break;case y.a.DOWN:kt(1),rn.preventDefault();break;case y.a.ESC:de(!1);break;case y.a.SPACE:case y.a.ENTER:ke!==null&&T(ke,rn);break}}Object(c.useEffect)(function(){var rn=document.getElementById(mt);rn&&rn.scrollIntoView&&rn.scrollIntoView(!1)},[ke]),Object(c.useEffect)(function(){$||Fe(null)},[$]);var vt=Object(Z.a)({},t?"marginLeft":"marginRight",Yt);_e.length||(vt.visibility="hidden",vt.order=1);var Wt=M()(Object(Z.a)({},"".concat(yt,"-rtl"),t)),Xt=Te?null:c.createElement(un.a,{prefixCls:yt,overlay:At,trigger:["hover"],visible:$,transitionName:ot,onVisibleChange:de,overlayClassName:Wt,mouseEnterDelay:.1,mouseLeaveDelay:.1},c.createElement("button",{type:"button",className:"".concat(at,"-nav-more"),style:vt,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":Qe,id:"".concat(Ke,"-more"),"aria-expanded":$,onKeyDown:Kt},Ve));return c.createElement("div",{className:M()("".concat(at,"-nav-operations"),pt),style:et,ref:$e},Xt,c.createElement(Ti,{prefixCls:at,locale:Ne,editable:Ot}))}var Di=c.forwardRef(ui),Ri=Object(c.createContext)(null),Qi=.1,Ni=.01,ti=20,ai=Math.pow(.995,ti);function Wi(){var ze=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(ze)||/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(ze.substr(0,4)))}function Fi(ze,$e){var at=Object(c.useState)(),Ke=Object(U.a)(at,2),_e=Ke[0],Ne=Ke[1],Te=Object(c.useState)(0),Ge=Object(U.a)(Te,2),Ve=Ge[0],ot=Ge[1],et=Object(c.useState)(0),pt=Object(U.a)(et,2),Ot=pt[0],Yt=pt[1],t=Object(c.useState)(),T=Object(U.a)(t,2),k=T[0],G=T[1],$=Object(c.useRef)();function de(Ct){var At=Ct.touches[0],kt=At.screenX,Kt=At.screenY;Ne({x:kt,y:Kt}),window.clearInterval($.current)}function xe(Ct){if(!_e)return;Ct.preventDefault();var At=Ct.touches[0],kt=At.screenX,Kt=At.screenY;Ne({x:kt,y:Kt});var vt=kt-_e.x,Wt=Kt-_e.y;$e(vt,Wt);var Xt=Date.now();ot(Xt),Yt(Xt-Ve),G({x:vt,y:Wt})}function Oe(){if(!_e)return;if(Ne(null),G(null),k){var Ct=k.x/Ot,At=k.y/Ot,kt=Math.abs(Ct),Kt=Math.abs(At);if(Math.max(kt,Kt)<Qi)return;var vt=Ct,Wt=At;$.current=window.setInterval(function(){if(Math.abs(vt)<Ni&&Math.abs(Wt)<Ni){window.clearInterval($.current);return}vt*=ai,Wt*=ai,$e(vt*ti,Wt*ti)},ti)}}var ke=Object(c.useRef)(0),Fe=Object(c.useRef)(!1),Qe=Object(c.useRef)();function yt(Ct){var At=Ct.deltaX,kt=Ct.deltaY,Kt=0,vt=Math.abs(At),Wt=Math.abs(kt);vt===Wt?Kt=Qe.current==="x"?At:kt:vt>Wt?(Kt=At,Qe.current="x"):(Kt=kt,Qe.current="y");var Xt=Date.now();Xt-ke.current>100&&(Fe.current=!1),($e(-Kt,-Kt)||Fe.current)&&(Ct.preventDefault(),Fe.current=!0),ke.current=Xt}var mt=Object(c.useRef)(null);mt.current={onTouchStart:de,onTouchMove:xe,onTouchEnd:Oe,onWheel:yt},c.useEffect(function(){function Ct(vt){mt.current.onTouchStart(vt)}function At(vt){mt.current.onTouchMove(vt)}function kt(vt){mt.current.onTouchEnd(vt)}function Kt(vt){mt.current.onWheel(vt)}return document.addEventListener("touchmove",At,{passive:!1}),document.addEventListener("touchend",kt,{passive:!1}),ze.current.addEventListener("touchstart",Ct,{passive:!1}),ze.current.addEventListener("wheel",Kt),function(){document.removeEventListener("touchmove",At),document.removeEventListener("touchend",kt)}},[])}function cr(){var ze=Object(c.useRef)(new Map);function $e(Ke){return ze.current.has(Ke)||ze.current.set(Ke,c.createRef()),ze.current.get(Ke)}function at(Ke){ze.current.delete(Ke)}return[$e,at]}function Gi(ze,$e){var at=c.useRef(ze),Ke=c.useState({}),_e=Object(U.a)(Ke,2),Ne=_e[1];function Te(Ge){var Ve=typeof Ge=="function"?Ge(at.current):Ge;Ve!==at.current&&$e(Ve,at.current),at.current=Ve,Ne({})}return[at.current,Te]}var ar=function($e){var at=$e.position,Ke=$e.prefixCls,_e=$e.extra;if(!_e)return null;var Ne,Te=_e;return at==="right"&&(Ne=Te.right||!Te.left&&Te||null),at==="left"&&(Ne=Te.left||null),Ne?c.createElement("div",{className:"".concat(Ke,"-extra-content")},Ne):null};function sr(ze,$e){var at,Ke=c.useContext(Ri),_e=Ke.prefixCls,Ne=Ke.tabs,Te=ze.className,Ge=ze.style,Ve=ze.id,ot=ze.animated,et=ze.activeKey,pt=ze.rtl,Ot=ze.extra,Yt=ze.editable,t=ze.locale,T=ze.tabPosition,k=ze.tabBarGutter,G=ze.children,$=ze.onTabClick,de=ze.onTabScroll,xe=Object(c.useRef)(),Oe=Object(c.useRef)(),ke=Object(c.useRef)(),Fe=Object(c.useRef)(),Qe=cr(),yt=Object(U.a)(Qe,2),mt=yt[0],Ct=yt[1],At=T==="top"||T==="bottom",kt=Gi(0,function(Nn,On){At&&de&&de({direction:Nn>On?"left":"right"})}),Kt=Object(U.a)(kt,2),vt=Kt[0],Wt=Kt[1],Xt=Gi(0,function(Nn,On){!At&&de&&de({direction:Nn>On?"top":"bottom"})}),rn=Object(U.a)(Xt,2),sn=rn[0],on=rn[1],en=Object(c.useState)(0),gn=Object(U.a)(en,2),bn=gn[0],Qn=gn[1],Hn=Object(c.useState)(0),vn=Object(U.a)(Hn,2),Cn=vn[0],yn=vn[1],Dn=Object(c.useState)(0),Ln=Object(U.a)(Dn,2),Fn=Ln[0],yi=Ln[1],bi=Object(c.useState)(0),xi=Object(U.a)(bi,2),Pn=xi[0],_i=xi[1],Hi=Object(c.useState)(null),Jn=Object(U.a)(Hi,2),kn=Jn[0],mi=Jn[1],Yr=Object(c.useState)(null),Ar=Object(U.a)(Yr,2),Vi=Ar[0],Xr=Ar[1],Qr=Object(c.useState)(0),Sr=Object(U.a)(Qr,2),Jr=Sr[0],Zr=Sr[1],qr=Object(c.useState)(0),wr=Object(U.a)(qr,2),$r=wr[0],ea=wr[1],ta=d(new Map),Cr=Object(U.a)(ta,2),na=Cr[0],ia=Cr[1],dr=i(Ne,na,bn),Tr="".concat(_e,"-nav-operations-hidden"),Zi=0,qi=0;At?pt?(Zi=0,qi=Math.max(0,bn-kn)):(Zi=Math.min(0,kn-bn),qi=0):(Zi=Math.min(0,Vi-Cn),qi=0);function fr(Nn){return Nn<Zi?[Zi,!1]:Nn>qi?[qi,!1]:[Nn,!0]}var Rr=Object(c.useRef)(),ra=Object(c.useState)(),Or=Object(U.a)(ra,2),pr=Or[0],Ir=Or[1];function mr(){Ir(Date.now())}function gr(){window.clearTimeout(Rr.current)}Fi(xe,function(Nn,On){var fi=!1;function Oi(er,tr){er(function(nr){var ir=fr(nr+tr),Yi=Object(U.a)(ir,2),_r=Yi[0],Er=Yi[1];return fi=Er,_r})}if(At){if(kn>=bn)return fi;Oi(Wt,Nn)}else{if(Vi>=Cn)return fi;Oi(on,On)}return gr(),mr(),fi}),Object(c.useEffect)(function(){return gr(),pr&&(Rr.current=window.setTimeout(function(){Ir(0)},100)),gr},[pr]);function Mr(){var Nn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:et,On=dr.get(Nn);if(!On)return;if(At){var fi=vt;pt?On.right<vt?fi=On.right:On.right+On.width>vt+kn&&(fi=On.right+On.width-kn):On.left<-vt?fi=-On.left:On.left+On.width>-vt+kn&&(fi=-(On.left+On.width-kn)),on(0),Wt(fr(fi)[0])}else{var Oi=sn;On.top<-sn?Oi=-On.top:On.top+On.height>-sn+Vi&&(Oi=-(On.top+On.height-Vi)),Wt(0),on(fr(Oi)[0])}}var aa=C(dr,{width:kn,height:Vi,left:vt,top:sn},{width:Fn,height:Pn},{width:Jr,height:$r},Object(N.a)(Object(N.a)({},ze),{},{tabs:Ne})),Lr=Object(U.a)(aa,2),sa=Lr[0],oa=Lr[1],la=Ne.map(function(Nn){var On=Nn.key;return c.createElement(p,{id:Ve,prefixCls:_e,key:On,rtl:pt,tab:Nn,closable:Nn.closable,editable:Yt,active:On===et,tabPosition:T,tabBarGutter:k,renderWrapper:G,removeAriaLabel:t==null?void 0:t.removeAriaLabel,ref:mt(On),onClick:function(Oi){$(On,Oi)},onRemove:function(){Ct(On)},onFocus:function(){Mr(On),mr(),pt||(xe.current.scrollLeft=0),xe.current.scrollTop=0}})}),vr=l(function(){var Nn,On,fi,Oi,er,tr,nr,ir,Yi,_r=((Nn=xe.current)===null||Nn===void 0?void 0:Nn.offsetWidth)||0,Er=((On=xe.current)===null||On===void 0?void 0:On.offsetHeight)||0,Fr=((fi=Fe.current)===null||fi===void 0?void 0:fi.offsetWidth)||0,zr=((Oi=Fe.current)===null||Oi===void 0?void 0:Oi.offsetHeight)||0,pa=((er=ke.current)===null||er===void 0?void 0:er.offsetWidth)||0,ma=((tr=ke.current)===null||tr===void 0?void 0:tr.offsetHeight)||0;mi(_r),Xr(Er),Zr(Fr),ea(zr);var Hr=(((nr=Oe.current)===null||nr===void 0?void 0:nr.offsetWidth)||0)-Fr,Wr=(((ir=Oe.current)===null||ir===void 0?void 0:ir.offsetHeight)||0)-zr;Qn(Hr),yn(Wr);var Gr=(Yi=ke.current)===null||Yi===void 0?void 0:Yi.className.includes(Tr);yi(Hr-(Gr?0:pa)),_i(Wr-(Gr?0:ma)),ia(function(){var Kr=new Map;return Ne.forEach(function(ga){var Vr=ga.key,rr=mt(Vr).current;rr&&Kr.set(Vr,{width:rr.offsetWidth,height:rr.offsetHeight,left:rr.offsetLeft,top:rr.offsetTop})}),Kr})}),ua=Ne.slice(0,sa),da=Ne.slice(oa+1),Dr=[].concat(Object(m.a)(ua),Object(m.a)(da)),ca=Object(c.useState)(),Pr=Object(U.a)(ca,2),ha=Pr[0],fa=Pr[1],ji=dr.get(et),kr=Object(c.useRef)();function Nr(){h.a.cancel(kr.current)}Object(c.useEffect)(function(){var Nn={};return ji&&(At?(pt?Nn.right=ji.right:Nn.left=ji.left,Nn.width=ji.width):(Nn.top=ji.top,Nn.height=ji.height)),Nr(),kr.current=h()(function(){fa(Nn)}),Nr},[ji,At,pt]),Object(c.useEffect)(function(){Mr()},[et,ji,dr,At]),Object(c.useEffect)(function(){vr()},[pt,k,et,Ne.map(function(Nn){return Nn.key}).join("_")]);var Ur=!!Dr.length,$i="".concat(_e,"-nav-wrap"),yr,br,Br,jr;return At?pt?(br=vt>0,yr=vt+kn<bn):(yr=vt<0,br=-vt+kn<bn):(Br=sn<0,jr=-sn+Vi<Cn),c.createElement("div",{ref:$e,role:"tablist",className:M()("".concat(_e,"-nav"),Te),style:Ge,onKeyDown:function(){mr()}},c.createElement(ar,{position:"left",extra:Ot,prefixCls:_e}),c.createElement(a.a,{onResize:vr},c.createElement("div",{className:M()($i,(at={},Object(Z.a)(at,"".concat($i,"-ping-left"),yr),Object(Z.a)(at,"".concat($i,"-ping-right"),br),Object(Z.a)(at,"".concat($i,"-ping-top"),Br),Object(Z.a)(at,"".concat($i,"-ping-bottom"),jr),at)),ref:xe},c.createElement(a.a,{onResize:vr},c.createElement("div",{ref:Oe,className:"".concat(_e,"-nav-list"),style:{transform:"translate(".concat(vt,"px, ").concat(sn,"px)"),transition:pr?"none":void 0}},la,c.createElement(Ti,{ref:Fe,prefixCls:_e,locale:t,editable:Yt,style:{visibility:Ur?"hidden":null}}),c.createElement("div",{className:M()("".concat(_e,"-ink-bar"),Object(Z.a)({},"".concat(_e,"-ink-bar-animated"),ot.inkBar)),style:ha}))))),c.createElement(Di,Object.assign({},ze,{ref:ke,prefixCls:_e,tabs:Dr,className:!Ur&&Tr})),c.createElement(ar,{position:"right",extra:Ot,prefixCls:_e}))}var or=c.forwardRef(sr);function zi(ze){var $e=ze.id,at=ze.activeKey,Ke=ze.animated,_e=ze.tabPosition,Ne=ze.rtl,Te=ze.destroyInactiveTabPane,Ge=c.useContext(Ri),Ve=Ge.prefixCls,ot=Ge.tabs,et=Ke.tabPane,pt=ot.findIndex(function(Ot){return Ot.key===at});return c.createElement("div",{className:M()("".concat(Ve,"-content-holder"))},c.createElement("div",{className:M()("".concat(Ve,"-content"),"".concat(Ve,"-content-").concat(_e),Object(Z.a)({},"".concat(Ve,"-content-animated"),et)),style:pt&&et?Object(Z.a)({},Ne?"marginRight":"marginLeft","-".concat(pt,"00%")):null},ot.map(function(Ot){return c.cloneElement(Ot.node,{key:Ot.key,prefixCls:Ve,tabKey:Ot.key,id:$e,animated:et,active:Ot.key===at,destroyInactiveTabPane:Te})})))}function lr(ze){var $e=ze.prefixCls,at=ze.forceRender,Ke=ze.className,_e=ze.style,Ne=ze.id,Te=ze.active,Ge=ze.animated,Ve=ze.destroyInactiveTabPane,ot=ze.tabKey,et=ze.children,pt=c.useState(at),Ot=Object(U.a)(pt,2),Yt=Ot[0],t=Ot[1];c.useEffect(function(){Te?t(!0):Ve&&t(!1)},[Te,Ve]);var T={};return Te||(Ge?(T.visibility="hidden",T.height=0,T.overflowY="hidden"):T.display="none"),c.createElement("div",{id:Ne&&"".concat(Ne,"-panel-").concat(ot),role:"tabpanel",tabIndex:Te?0:-1,"aria-labelledby":Ne&&"".concat(Ne,"-tab-").concat(ot),"aria-hidden":!Te,style:Object(N.a)(Object(N.a)({},T),_e),className:M()("".concat($e,"-tabpane"),Te&&"".concat($e,"-tabpane-active"),Ke)},(Te||Yt||at)&&et)}var Ji=0;function hr(ze){return Object(g.a)(ze).map(function($e){if(c.isValidElement($e)){var at=$e.key!==void 0?String($e.key):void 0;return Object(N.a)(Object(N.a)({key:at},$e.props),{},{node:$e})}return null}).filter(function($e){return $e})}function Ii(ze,$e){var at,Ke=ze.id,_e=ze.prefixCls,Ne=_e===void 0?"rc-tabs":_e,Te=ze.className,Ge=ze.children,Ve=ze.direction,ot=ze.activeKey,et=ze.defaultActiveKey,pt=ze.editable,Ot=ze.animated,Yt=ze.tabPosition,t=Yt===void 0?"top":Yt,T=ze.tabBarGutter,k=ze.tabBarStyle,G=ze.tabBarExtraContent,$=ze.locale,de=ze.moreIcon,xe=ze.moreTransitionName,Oe=ze.destroyInactiveTabPane,ke=ze.renderTabBar,Fe=ze.onChange,Qe=ze.onTabClick,yt=ze.onTabScroll,mt=Object(L.a)(ze,["id","prefixCls","className","children","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll"]),Ct=hr(Ge),At=Ve==="rtl",kt;Ot===!1?kt={inkBar:!1,tabPane:!1}:kt=Object(N.a)({inkBar:!0,tabPane:!1},Ot!==!0?Ot:null);var Kt=Object(c.useState)(!1),vt=Object(U.a)(Kt,2),Wt=vt[0],Xt=vt[1];Object(c.useEffect)(function(){Xt(Wi())},[]);var rn=Object(e.a)(function(){var Pn;return(Pn=Ct[0])===null||Pn===void 0?void 0:Pn.key},{value:ot,defaultValue:et}),sn=Object(U.a)(rn,2),on=sn[0],en=sn[1],gn=Object(c.useState)(function(){return Ct.findIndex(function(Pn){return Pn.key===on})}),bn=Object(U.a)(gn,2),Qn=bn[0],Hn=bn[1];Object(c.useEffect)(function(){var Pn=Ct.findIndex(function(Hi){return Hi.key===on});if(Pn===-1){var _i;Pn=Math.max(0,Math.min(Qn,Ct.length-1)),en((_i=Ct[Pn])===null||_i===void 0?void 0:_i.key)}Hn(Pn)},[Ct.map(function(Pn){return Pn.key}).join("_"),on,Qn]);var vn=Object(e.a)(null,{value:Ke}),Cn=Object(U.a)(vn,2),yn=Cn[0],Dn=Cn[1],Ln=t;Wt&&!["left","right"].includes(t)&&(Ln="top"),Object(c.useEffect)(function(){Ke||(Dn("rc-tabs-".concat(Ji)),Ji+=1)},[]);function Fn(Pn,_i){Qe==null||Qe(Pn,_i),en(Pn),Fe==null||Fe(Pn)}var yi={id:yn,activeKey:on,animated:kt,tabPosition:Ln,rtl:At,mobile:Wt},bi,xi=Object(N.a)(Object(N.a)({},yi),{},{editable:pt,locale:$,moreIcon:de,moreTransitionName:xe,tabBarGutter:T,onTabClick:Fn,onTabScroll:yt,extra:G,style:k,panes:Ge});return ke?bi=ke(xi,or):bi=c.createElement(or,Object.assign({},xi)),c.createElement(Ri.Provider,{value:{tabs:Ct,prefixCls:Ne}},c.createElement("div",Object.assign({ref:$e,id:Ke,className:M()(Ne,"".concat(Ne,"-").concat(Ln),(at={},Object(Z.a)(at,"".concat(Ne,"-mobile"),Wt),Object(Z.a)(at,"".concat(Ne,"-editable"),pt),Object(Z.a)(at,"".concat(Ne,"-rtl"),At),at),Te)},mt),bi,c.createElement(zi,Object.assign({destroyInactiveTabPane:Oe},yi,{animated:kt}))))}var ur=c.forwardRef(Ii);ur.TabPane=lr;var Ki=ur,xr=q.b=Ki},kPWJ:function(ge,q,_){ge.exports=_.p+"static/question.cb52bef9.gif"},kPYp:function(ge,q){ge.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAF8AAAAUCAYAAADr0+FaAAANEklEQVRYR8WZe5RX1XXHP/vce3/zHoaXgFp5DQyOQLRgUTEtDW1qYyVmZUGNklRdiRpKE3lHfPyc4TngIBgfC0wx1ixt1NRWal2kotbE2lbRiCIISBCGhzDAvGd+87v37K5z5zfDzMCM46pr9fw1a+45+5zz3fvs/d3fn4yr1F8Do0UIUb74UFR8Gm3IO/Wf8MThat7mOYnaDZUmNUF/htpWLlePK4xwCcoQICHQbOGoKDuM4U1p5r0Px1DNrDPrezzQs+qNPUh/o4xXj6tRJhlhGEqeQNrCCYXdGvGfFt5JNHLoozJp7WyvdI0OtR4LEK7CstUIWyJLTSRcLfCnvlAiUKSgCEfV8o6NeMVE/G53itOUiXX3Sxcx2ov4qhG+qjBWoFChWYUqIt6VgFeblR0H5lEL0oGyjKvU1yHezPviyHdZ0Ro180basvD398n77svIFTokK5vrgW8LTELJRwgA6bTSHcaBckot/yWGX2YZ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auYOus8Mdns1W2eIpy3Y18FGXrjipZmzAMLIoM4ZZQqwmdh7Oaltv3E0id1lMlR1hRJnk8PK+H0mqu7DmHBDB4vw6HtneQ8N06YNalIp4HmF6X8EfV6ljRfk5EmNxJvIdn09ksdYIs7oV2d7h7uGrhUOEzP14ibzoNgXmC3wjQx3dbwZdwM6YcbHpNJFDKjxr4dHOunv3rcY9rANNC7dbR4WFkbhIP7ddFxSxTK3Cr0nzgFMz2+05Su37saTsWJRVS5VnuHnnAnmtp8vPnKne+1NY4jlZwtDfWpob6ijzhQ098fyLVmn/bJ97PMPtQJ5r8Dxck5VUMyqXP0wEzEHjNFHQR438rPPZtuyiKpTtmsdjrji7SGmJmBJrGYZSlIsyfYD7oaJVlVqEAwbejSJeafR5t6dOsfOGTuXMTTHeBExHmCzCaDTurLPEFWOlXqFKlI+s8prfwG92lnXVXkoq9HwTcD/KdSp8mGrmyVSaf+pJJmjff/gKHZaTxR3G8E1rKWyoY4MvbOwJfIdIcSUX+8Ic1yg6yT6Eb7Q1Wc4BORRk+RQZQ2DD3n8Y+Lwn4edT/cEcOd0xL6nmyn5knWghPzuL7JQQJMC0umjzafUbaG5J0XigjFSfeHuHYZXSJIH0Iz+VJtczBL6H58pLZAhTaVqKCmnYfoSWc4l6Tko/nscg8clvMtQPyOFUn/oRVCauJZcs+jeHJFLHOX1wFTW9MkEnyg0kP2EpitJ4+YVU/S8v1xqrW4H9MAAAAABJRU5ErkJggg=="},l2Kq:function(ge,q,_){ge.exports=_.p+"static/match_ad.24dc22fd.jpg"},loD1:function(ge,q){function _(Z,U,L,N,c,u,M){if(c===0)return!1;var g=c,e=0,m=Z;if(M>U+g&&M>N+g||M<U-g&&M<N-g||u>Z+g&&u>L+g||u<Z-g&&u<L-g)return!1;if(Z!==L)e=(U-N)/(Z-L),m=(Z*N-L*U)/(Z-L);else return Math.abs(u-Z)<=g/2;var r=e*u-M+m,h=r*r/(e*e+1);return h<=g/2*g/2}q.containStroke=_},lzim:function(ge,q,_){"use strict";var Z=_("E7E6"),U=_.n(Z);_.d(q,"w",function(){return U.a});var L=_("/GNS"),N=_.n(L);_.d(q,"v",function(){return N.a});var c=_("FOrL"),u=_.n(c);_.d(q,"q",function(){return u.a});var M=_("HpTS"),g=_.n(M);_.d(q,"x",function(){return g.a});var e=_("tWlo"),m=_.n(e);_.d(q,"a",function(){return m.a});var r=_("7ZXX"),h=_.n(r);_.d(q,"l",function(){return h.a});var a=_("GABl"),l=_.n(a);_.d(q,"e",function(){return l.a});var d=_("onxn"),y=_.n(d);_.d(q,"n",function(){return y.a});var s=_("nKGa"),p=_.n(s);_.d(q,"m",function(){return p.a});var n=_("4qgm"),i=_.n(n);_.d(q,"y",function(){return i.a});var v=_("JeFH"),C=_.n(v);_.d(q,"b",function(){return C.a});var R=_("ji0R"),w=_.n(R);_.d(q,"i",function(){return w.a});var x=_("W6BS"),A=_.n(x);_.d(q,"z",function(){return A.a});var o=_("kPYp"),f=_.n(o);_.d(q,"A",function(){return f.a});var E=_("nukY"),O=_.n(E),S=_("4u4S"),b=_.n(S),D=_("yslc"),P=_.n(D),I=_("l2Kq"),F=_.n(I),K=_("RMFE"),j=_.n(K);_.d(q,"o",function(){return j.a});var Y=_("TGq3"),W=_.n(Y),Q=_("SMhR"),ie=_.n(Q),Ee=_("8/bI"),pe=_.n(Ee);_.d(q,"j",function(){return pe.a});var De=_("JWDV"),Me=_.n(De),Ue=_("Xsq0"),Ie=_.n(Ue);_.d(q,"p",function(){return Ie.a});var ne=_("Ohmc"),B=_.n(ne);_.d(q,"c",function(){return B.a});var z=_("csWT"),H=_.n(z);_.d(q,"d",function(){return H.a});var ee=_("7v3h"),X=_.n(ee);_.d(q,"k",function(){return X.a});var me=_("cRFk"),je=_.n(me);_.d(q,"u",function(){return je.a});var Je=_("kPWJ"),oe=_.n(Je);_.d(q,"t",function(){return oe.a});var Ae=_("qgvg"),ye=_.n(Ae);_.d(q,"r",function(){return ye.a});var Le=_("FPkq"),We=_.n(Le);_.d(q,"s",function(){return We.a});var Xe=_("A/g1"),ct=_.n(Xe);_.d(q,"f",function(){return ct.a});var lt=_("Nmxd"),St=_.n(lt);_.d(q,"g",function(){return St.a});var Dt=_("5D2P"),bt=_.n(Dt);_.d(q,"h",function(){return bt.a});var ht=_("djh8"),Ut=_.n(ht),Ft=_("Jq4h"),ve=_.n(Ft)},mFDi:function(ge,q,_){var Z=_("QBsz"),U=_("Fofx"),L=Z.applyTransform,N=Math.min,c=Math.max;function u(g,e,m,r){m<0&&(g=g+m,m=-m),r<0&&(e=e+r,r=-r),this.x=g,this.y=e,this.width=m,this.height=r}u.prototype={constructor:u,union:function(g){var e=N(g.x,this.x),m=N(g.y,this.y);this.width=c(g.x+g.width,this.x+this.width)-e,this.height=c(g.y+g.height,this.y+this.height)-m,this.x=e,this.y=m},applyTransform:function(){var g=[],e=[],m=[],r=[];return function(h){if(!h)return;g[0]=m[0]=this.x,g[1]=r[1]=this.y,e[0]=r[0]=this.x+this.width,e[1]=m[1]=this.y+this.height,L(g,g,h),L(e,e,h),L(m,m,h),L(r,r,h),this.x=N(g[0],e[0],m[0],r[0]),this.y=N(g[1],e[1],m[1],r[1]);var a=c(g[0],e[0],m[0],r[0]),l=c(g[1],e[1],m[1],r[1]);this.width=a-this.x,this.height=l-this.y}}(),calculateTransform:function(g){var e=this,m=g.width/e.width,r=g.height/e.height,h=U.create();return U.translate(h,h,[-e.x,-e.y]),U.scale(h,h,[m,r]),U.translate(h,h,[g.x,g.y]),h},intersect:function(g){if(!g)return!1;g instanceof u||(g=u.create(g));var e=this,m=e.x,r=e.x+e.width,h=e.y,a=e.y+e.height,l=g.x,d=g.x+g.width,y=g.y,s=g.y+g.height;return!(r<l||d<m||a<y||s<h)},contain:function(g,e){var m=this;return g>=m.x&&g<=m.x+m.width&&e>=m.y&&e<=m.y+m.height},clone:function(){return new u(this.x,this.y,this.width,this.height)},copy:function(g){this.x=g.x,this.y=g.y,this.width=g.width,this.height=g.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},u.create=function(g){return new u(g.x,g.y,g.width,g.height)};var M=u;ge.exports=M},mLcG:function(ge,q){var _=typeof window!="undefined"&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(Z){setTimeout(Z,16)};ge.exports=_},mgmH:function(ge,q,_){"use strict";_.d(q,"d",function(){return a}),_.d(q,"b",function(){return l}),_.d(q,"e",function(){return d}),_.d(q,"c",function(){return y}),_.d(q,"n",function(){return s}),_.d(q,"g",function(){return p}),_.d(q,"h",function(){return n}),_.d(q,"j",function(){return v}),_.d(q,"a",function(){return C}),_.d(q,"l",function(){return R}),_.d(q,"f",function(){return w}),_.d(q,"k",function(){return x}),_.d(q,"m",function(){return A}),_.d(q,"i",function(){return o}),_.d(q,"o",function(){return f}),_.d(q,"t",function(){return E}),_.d(q,"s",function(){return O}),_.d(q,"p",function(){return S}),_.d(q,"q",function(){return b}),_.d(q,"r",function(){return D}),_.d(q,"v",function(){return P}),_.d(q,"u",function(){return I});var Z=_("miYZ"),U=_("tsqr"),L=_("k1fw"),N=_("9og8"),c=_("WmNS"),u=_.n(c),M=_("oUNq"),g=_("9kvl"),e=_("1vsH"),m=_("m3rI"),r=function(){Object(g.c)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u751F\u6210\u6587\u4EF6\uFF0C\u8BF7\u7A0D\u540E..."}})},h=function(){Object(g.c)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}})},a=function(){var F=Object(N.a)(u.a.mark(function K(j){var Y;return u.a.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return r(),Q.next=3,Object(M.t)(Object(L.a)({},j));case 3:if(Y=Q.sent,!(Y.status===0)){Q.next=7;break}return Q.next=7,Object(e.w)("",Object(e.Y)({url:m.a.API_SERVER+"/api/courses/".concat(j.coursesId,"/export_couser_info.json"),query:j}));case 7:h();case 8:case"end":return Q.stop()}},K)}));return function(j){return F.apply(this,arguments)}}(),l=function(){var F=Object(N.a)(u.a.mark(function K(j){var Y;return u.a.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return Q.next=2,Object(M.r)(Object(L.a)({},j));case 2:if(Y=Q.sent,!(Y.status===0)){Q.next=8;break}U.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),g.d.push("/classrooms/".concat(j.coursesId,"/exportlist/course_member_act_score")),Q.next=13;break;case 8:if(!(Y.status===-2)){Q.next=12;break}return Q.abrupt("return",Y);case 12:Y.status===-3&&(Object(g.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),g.d.push("/classrooms/".concat(j.coursesId,"/exportlist/course_member_act_score")));case 13:case"end":return Q.stop()}},K)}));return function(j){return F.apply(this,arguments)}}(),d=function(){var F=Object(N.a)(u.a.mark(function K(j){var Y;return u.a.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return Q.next=2,Object(M.u)(Object(L.a)({},j));case 2:if(Y=Q.sent,!(Y.status===0)){Q.next=8;break}U.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),g.d.push("/classrooms/".concat(j.coursesId,"/exportlist/course_total_score")),Q.next=13;break;case 8:if(!(Y.status===-2)){Q.next=12;break}return Q.abrupt("return",Y);case 12:Y.status===-3&&(Object(g.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),g.d.push("/classrooms/".concat(j.coursesId,"/exportlist/course_total_score")));case 13:case"end":return Q.stop()}},K)}));return function(j){return F.apply(this,arguments)}}(),y=function(){var F=Object(N.a)(u.a.mark(function K(j){var Y;return u.a.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return Q.next=2,Object(M.s)(Object(L.a)({},j));case 2:if(Y=Q.sent,!(Y.status===0)){Q.next=8;break}U.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),g.d.push("/classrooms/".concat(j.coursesId,"/exportlist/course_total_exercise_and_other")),Q.next=13;break;case 8:if(!(Y.status===-2)){Q.next=12;break}return Q.abrupt("return",Y);case 12:Y.status===-3&&(Object(g.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),g.d.push("/classrooms/".concat(j.coursesId,"/exportlist/course_total_exercise_and_other")));case 13:case"end":return Q.stop()}},K)}));return function(j){return F.apply(this,arguments)}}(),s=function(){var F=Object(N.a)(u.a.mark(function K(j){var Y;return u.a.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return Q.next=2,Object(M.z)(Object(L.a)({},j));case 2:if(Y=Q.sent,!(Y.status===0)){Q.next=8;break}U.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),g.d.push("/classrooms/".concat(j.coursesId,"/exportlist/course_total_exercise_and_other")),Q.next=13;break;case 8:if(!(Y.status===-2)){Q.next=12;break}return Q.abrupt("return",Y);case 12:Y.status===-3&&(Object(g.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),g.d.push("/classrooms/".concat(j.coursesId,"/exportlist/course_total_exercise_and_other")));case 13:case"end":return Q.stop()}},K)}));return function(j){return F.apply(this,arguments)}}(),p=function(){var F=Object(N.a)(u.a.mark(function K(j){var Y;return u.a.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return Q.next=2,Object(M.v)(Object(L.a)({},j));case 2:if(Y=Q.sent,!(Y.status===0)){Q.next=8;break}U.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),g.d.push("/classrooms/".concat(j.coursesId,"/exportlist/course_total_homework")),Q.next=13;break;case 8:if(!(Y.status===-2)){Q.next=12;break}return Q.abrupt("return",Y);case 12:Y.status===-3&&(Object(g.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),g.d.push("/classrooms/".concat(j.coursesId,"/exportlist/course_total_homework")));case 13:case"end":return Q.stop()}},K)}));return function(j){return F.apply(this,arguments)}}(),n=function(){var F=Object(N.a)(u.a.mark(function K(j,Y){var W;return u.a.wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:return ie.next=2,Object(M.x)(Object(L.a)({},j));case 2:W=ie.sent,W.status===0?(U.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),g.d.push("/classrooms/".concat(j.coursesId,"/exportlist/").concat(Y))):W.status===-3&&(Object(g.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),g.d.push("/classrooms/".concat(j.coursesId,"/exportlist/").concat(Y)));case 4:case"end":return ie.stop()}},K)}));return function(j,Y){return F.apply(this,arguments)}}(),i=function(){var F=Object(N.a)(u.a.mark(function K(j){var Y;return u.a.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return r(),Q.next=3,Object(M.w)(Object(L.a)({},j));case 3:if(Y=Q.sent,!(Y.status===0)){Q.next=7;break}return Q.next=7,Object(e.w)("",Object(e.Y)({url:m.a.API_SERVER+"/api/homework_commons/".concat(j.categoryId,"/works_list.zip"),query:j}));case 7:h();case 8:case"end":return Q.stop()}},K)}));return function(j){return F.apply(this,arguments)}}(),v=function(){var F=Object(N.a)(u.a.mark(function K(j){var Y;return u.a.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return r(),Q.next=3,Object(M.A)(Object(L.a)({},j));case 3:if(Y=Q.sent,!(Y.status===0)){Q.next=7;break}return Q.next=7,Object(e.w)("",Object(e.Y)({url:m.a.API_SERVER+"/api/polls/".concat(j.categoryId,"/commit_result.xlsx"),query:j}));case 7:h();case 8:case"end":return Q.stop()}},K)}));return function(j){return F.apply(this,arguments)}}(),C=function(){var F=Object(N.a)(u.a.mark(function K(j){return u.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.next=2,Object(e.v)("",Object(e.Y)({url:m.a.API_SERVER+"/api/courses/".concat(j.coursesId,"/attendances/export_xlsx_data.xlsx"),query:j}));case 2:case"end":return W.stop()}},K)}));return function(j){return F.apply(this,arguments)}}(),R=function(){var F=Object(N.a)(u.a.mark(function K(j){return u.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.next=2,Object(e.v)("",Object(e.Y)({url:m.a.API_SERVER+"/api/courses/".concat(j.coursesId,"/video_study_statics.xlsx"),query:j}));case 2:case"end":return W.stop()}},K)}));return function(j){return F.apply(this,arguments)}}(),w=function(){var F=Object(N.a)(u.a.mark(function K(j){return u.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.next=2,Object(e.v)("",Object(e.Y)({url:m.a.API_SERVER+"/api/courses/".concat(j.coursesId,"/export_course_students_info.xlsx"),query:j}));case 2:case"end":return W.stop()}},K)}));return function(j){return F.apply(this,arguments)}}(),x=function(){var F=Object(N.a)(u.a.mark(function K(j){return u.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.next=2,Object(e.v)("",Object(e.Y)({url:m.a.API_SERVER+"/api/item_banks/export.xlsx",query:j}));case 2:case"end":return W.stop()}},K)}));return function(j){return F.apply(this,arguments)}}(),A=function(){var F=Object(N.a)(u.a.mark(function K(j){return u.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.next=2,Object(e.v)("",Object(e.Y)({url:m.a.API_SERVER+"/api/competitions/region_reports.xlsx",query:j}));case 2:case"end":return W.stop()}},K)}));return function(j){return F.apply(this,arguments)}}(),o=function(){var F=Object(N.a)(u.a.mark(function K(j){var Y;return u.a.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return Q.next=2,Object(M.y)(Object(L.a)({},j));case 2:Y=Q.sent,Y.status===0?(U.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),g.d.push("/classrooms/".concat(j.coursesId,"/exportlist/exercise_score"))):Y.status===-3&&(Object(g.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),g.d.push("/classrooms/".concat(j.coursesId,"/exportlist/exercise_score")));case 4:case"end":return Q.stop()}},K)}));return function(j){return F.apply(this,arguments)}}(),f=function(){var F=Object(N.a)(u.a.mark(function K(j){return u.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return console.log("----------","\u8C03\u7528\u4E0B\u8F7D"),W.next=3,Object(e.v)("",Object(e.Y)({url:m.a.API_SERVER+"/api/export_records/".concat(j.id,".xlsx"),query:j}));case 3:case"end":return W.stop()}},K)}));return function(j){return F.apply(this,arguments)}}(),E=function(){var F=Object(N.a)(u.a.mark(function K(j){return u.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.next=2,Object(e.v)("",Object(e.Y)({url:m.a.API_SERVER+"/api/ec_major_schools/0/ec_years.xlsx",query:j}));case 2:case"end":return W.stop()}},K)}));return function(j){return F.apply(this,arguments)}}(),O=function(){var F=Object(N.a)(u.a.mark(function K(j){return u.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.next=2,Object(e.v)("",Object(e.Y)({url:m.a.API_SERVER+"/api/ec_years/".concat(j==null?void 0:j.ec_year_id,"/ec_training_objectives.xlsx"),query:j}));case 2:case"end":return W.stop()}},K)}));return function(j){return F.apply(this,arguments)}}(),S=function(){var F=Object(N.a)(u.a.mark(function K(j){return u.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.next=2,Object(e.v)(j==null?void 0:j.name,Object(e.Y)({url:m.a.API_SERVER+"/api/attachments/get_ecs_attachment.docx",query:j}));case 2:case"end":return W.stop()}},K)}));return function(j){return F.apply(this,arguments)}}(),b=function(){var F=Object(N.a)(u.a.mark(function K(j){return u.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.next=2,Object(e.v)("",Object(e.Y)({url:m.a.API_SERVER+"/api/ec_years/".concat(j==null?void 0:j.ec_year_id,"/ec_courses.xlsx"),query:j}));case 2:case"end":return W.stop()}},K)}));return function(j){return F.apply(this,arguments)}}(),D=function(){var F=Object(N.a)(u.a.mark(function K(j){return u.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.next=2,Object(e.v)("",Object(e.Y)({url:m.a.API_SERVER+"/api/ec_years/".concat(j==null?void 0:j.ec_year_id,"/ec_graduation_requirements.xlsx"),query:j}));case 2:case"end":return W.stop()}},K)}));return function(j){return F.apply(this,arguments)}}(),P=function(){var F=Object(N.a)(u.a.mark(function K(j){return u.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.next=2,Object(e.v)("",Object(e.Y)({url:m.a.API_SERVER+"/api/courses/rank_list.xlsx",query:j}));case 2:case"end":return W.stop()}},K)}));return function(j){return F.apply(this,arguments)}}(),I=function(){var F=Object(N.a)(u.a.mark(function K(j){return u.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.next=2,Object(e.v)("",Object(e.Y)({url:m.a.API_SERVER+"/api/courses/question_rank_list.xlsx",query:j}));case 2:case"end":return W.stop()}},K)}));return function(j){return F.apply(this,arguments)}}()},n1HI:function(ge,q,_){var Z=_("hX1E"),U=Z.normalizeRadian,L=Math.PI*2;function N(c,u,M,g,e,m,r,h,a){if(r===0)return!1;var l=r;h-=c,a-=u;var d=Math.sqrt(h*h+a*a);if(d-l>M||d+l<M)return!1;if(Math.abs(g-e)%L<1e-4)return!0;if(m){var y=g;g=U(e),e=U(y)}else g=U(g),e=U(e);g>e&&(e+=L);var s=Math.atan2(a,h);return s<0&&(s+=L),s>=g&&s<=e||s+L>=g&&s+L<=e}q.containStroke=N},n6Mw:function(ge,q,_){var Z=_("SrGk"),U=_("bYtY"),L=_("Fofx");function N(u,M){Z.call(this,u,M,"clipPath","__clippath_in_use__")}U.inherits(N,Z),N.prototype.update=function(u){var M=this.getSvgElement(u);M&&this.updateDom(M,u.__clipPaths,!1);var g=this.getTextSvgElement(u);g&&this.updateDom(g,u.__clipPaths,!0),this.markUsed(u)},N.prototype.updateDom=function(u,M,g){if(M&&M.length>0){var e=this.getDefs(!0),m=M[0],r,h,a=g?"_textDom":"_dom";m[a]?(h=m[a].getAttribute("id"),r=m[a],e.contains(r)||e.appendChild(r)):(h="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,r=this.createElement("clipPath"),r.setAttribute("id",h),e.appendChild(r),m[a]=r);var l=this.getSvgProxy(m);if(m.transform&&m.parent.invTransform&&!g){var d=Array.prototype.slice.call(m.transform);L.mul(m.transform,m.parent.invTransform,m.transform),l.brush(m),m.transform=d}else l.brush(m);var y=this.getSvgElement(m);r.innerHTML="",r.appendChild(y.cloneNode()),u.setAttribute("clip-path","url(#"+h+")"),M.length>1&&this.updateDom(r,M.slice(1),g)}else u&&u.setAttribute("clip-path","none")},N.prototype.markUsed=function(u){var M=this;u.__clipPaths&&U.each(u.__clipPaths,function(g){g._dom&&Z.prototype.markUsed.call(M,g._dom),g._textDom&&Z.prototype.markUsed.call(M,g._textDom)})};var c=N;ge.exports=c},nCxF:function(ge,q,_){var Z=_("QBsz"),U=Z.min,L=Z.max,N=Z.scale,c=Z.distance,u=Z.add,M=Z.clone,g=Z.sub;function e(m,r,h,a){var l=[],d=[],y=[],s=[],p,n,i,v;if(a){i=[Infinity,Infinity],v=[-Infinity,-Infinity];for(var C=0,R=m.length;C<R;C++)U(i,i,m[C]),L(v,v,m[C]);U(i,i,a[0]),L(v,v,a[1])}for(var C=0,R=m.length;C<R;C++){var w=m[C];if(h)p=m[C?C-1:R-1],n=m[(C+1)%R];else if(C===0||C===R-1){l.push(M(m[C]));continue}else p=m[C-1],n=m[C+1];g(d,n,p),N(d,d,r);var x=c(w,p),A=c(w,n),o=x+A;o!==0&&(x/=o,A/=o),N(y,d,-x),N(s,d,A);var f=u([],w,y),E=u([],w,s);a&&(L(f,f,i),U(f,f,v),L(E,E,i),U(E,E,v)),l.push(f),l.push(E)}return h&&l.push(l.shift()),l}ge.exports=e},nEHx:function(ge,q,_){"use strict";_.d(q,"a",function(){return Z});var Z;(function(U){U.DARK="dark",U.LIGHT="light",U.HIGH_CONTRAST="hc"})(Z||(Z={}))},nKGa:function(ge,q,_){ge.exports=_.p+"static/export_exercise-template.f7655c19.png"},nPnh:function(ge,q){var _=Math.round;function Z(N,c,u){if(!c)return;var M=c.x1,g=c.x2,e=c.y1,m=c.y2;N.x1=M,N.x2=g,N.y1=e,N.y2=m;var r=u&&u.lineWidth;if(!r)return;_(M*2)===_(g*2)&&(N.x1=N.x2=L(M,r,!0)),_(e*2)===_(m*2)&&(N.y1=N.y2=L(e,r,!0))}function U(N,c,u){if(!c)return;var M=c.x,g=c.y,e=c.width,m=c.height;N.x=M,N.y=g,N.width=e,N.height=m;var r=u&&u.lineWidth;if(!r)return;N.x=L(M,r,!0),N.y=L(g,r,!0),N.width=Math.max(L(M+e,r,!1)-N.x,e===0?0:1),N.height=Math.max(L(g+m,r,!1)-N.y,m===0?0:1)}function L(N,c,u){if(!c)return N;var M=_(N*2);return(M+_(c))%2===0?M/2:(M+(u?1:-1))/2}q.subPixelOptimizeLine=Z,q.subPixelOptimizeRect=U,q.subPixelOptimize=L},ni6a:function(ge,q,_){var Z=_("pzxd"),U=_("mFDi"),L=_("gut8"),N=L.WILL_BE_RESTORED,c=new U,u=function(){};u.prototype={constructor:u,drawRectText:function(g,e){var m=this.style;e=m.textRect||e,this.__dirty&&Z.normalizeTextStyle(m,!0);var r=m.text;if(r!=null&&(r+=""),!Z.needDrawText(r,m))return;g.save();var h=this.transform;m.transformText?this.setTransform(g):h&&(c.copy(e),c.applyTransform(h),e=c),Z.renderText(this,g,r,m,e,N),g.restore()}};var M=u;ge.exports=M},"nj+s":function(ge,q,_){ge.exports={searchWrap:"searchWrap___3itQA",search:"search___6Phxx",searchIcon:"searchIcon___2OKV2",scrollWrapper:"scrollWrapper___3CgdD",checkBoxWrapper:"checkBoxWrapper___2rzjY",checkboxtitle:"checkboxtitle___2oX3A",partTitle:"partTitle___PjtbY",exportBtn:"exportBtn___2dBfL",pngIcon:"pngIcon___1AVKV"}},nnTU:function(ge,q,_){"use strict";_.d(q,"b",function(){return M}),_.d(q,"a",function(){return g});var Z=_("MI8n"),U=_("JYp7"),L=_("pmY6"),N=_("24hK"),c=_("746U"),u=_("Cg/j");const M=Object(u.c)("commandService"),g=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Z.b,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(e,m){if(!e)throw new Error("invalid command");if(typeof e=="string"){if(!m)throw new Error("invalid command");return this.registerCommand({id:e,handler:m})}if(e.description){const d=[];for(let s of e.description.args)d.push(s.constraint);const y=e.handler;e.handler=function(s,...p){return Object(c.o)(p,d),y(s,...p)}}const{id:r}=e;let h=this._commands.get(r);h||(h=new N.a,this._commands.set(r,h));let a=h.unshift(e),l=Object(L.i)(()=>{a();const d=this._commands.get(r);(d==null?void 0:d.isEmpty())&&this._commands.delete(r)});return this._onDidRegisterCommand.fire(r),l}registerCommandAlias(e,m){return g.registerCommand(e,(r,...h)=>r.get(M).executeCommand(m,...h))}getCommand(e){const m=this._commands.get(e);return!m||m.isEmpty()?void 0:U.a.first(m)}getCommands(){const e=new Map;for(const m of this._commands.keys()){const r=this.getCommand(m);r&&e.set(m,r)}return e}};g.registerCommand("noop",()=>{})},nukY:function(ge,q){ge.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALoAAABSCAYAAADjGc4eAAAMkklEQVR4Xu2dWWwcSRnHv7Yd577v+74vkgWEQCAEy6IVWuCB62GVICFIYkcsvMC+LW8LL7BIiTiEhCweInjgPrRCC2KBJTBVYzm24yRO4ty3kziJj9ie+tC/d9oaT2b67ume7irJsjdbVf19X/266quvjjaEEG8w8yukk7ZAii1gMHODEOK3RPRSivXUqmXcAgb07+jomDk2NvYPZn4u4/bQ6qfUAiboSEKI5cz8XyJanVJdtVoZtsAE6EXYdzPzv4hoToZtolVPoQUmgV6E/QVm/hMRNaVQX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UB28fLyya13qDjbMg2ek5HSzStsoz/y5bG2p1enipFPD3UtvN9ltWUY3X3v0Ug4PUGNjNG9FBaqjbxGhzHBb4j51m8f4huwCW/rFpBwBj9v42xCbevGY5VNGxnYFbi0xHe6CZbpfNXQ67G5rqoThmPd8iAbYFjJ9mTMDfjmwCSFNSpGW6Uuaut3jLqF6mRGmvTvU22p0D3fHtkcY6yLN3WxVFgEr/8dP8LSVltAlg6c5vh8LAWT06ZZAqUNLbzL7ojvaYyXCmB4pVgjTUQH7czuEmju8XOHYGSxtgRjYBLNuxeQ7l6VprChmkcpT0dvoyGIfaeUUArK+CPKdD/JS5fhy5N3Ds1I3iAPxj02fUhmvzHwNgXSXkJ+zELlH6TuCE6c+IArD0901HQGD1wiaDRIaSPtfeS8Shrt2mEKmtgPykxVVKSylCsCNg3LQOYbBWhzDdtEle3gW1tsxb/xwAyyE/ud8e7iWB46cFieqBQh6sJUuMIC9ZAmzebPzdbPMRKcEZBTmu1dKmpig6zHgnlRlltnsNDRtmTDHc9g6KhMtph9m9NlPNUxCzsm2/aGu/I/NyOZMKxwESdVmTM5efmY4x5ueDhBsPpxHk51McPKgT2pUaSOD1N0GuLwGL+TzvSfJVxSQc4SCJiR0cx/8HNDZyl8dFUZMAAAAASUVORK5CYII="},o2EA:function(ge,q,_){ge.exports=_.p+"static/icon1.992c3a36.svg"},onxn:function(ge,q){ge.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAQFElEQVRoQ71aCXRUVZr+7ttqr6yVPSRASCBIVFBUWgUURZFW7FYa9Xhc2lHWGdM9bYszaqa1tcUFV9RRu3V6etw4DQJqY4MDLUJQEQIYEsieqspW2Wp/9ZY7570ia1VIRXH+cyo59e6/3O/+//3vf/9XBGeR8sr/lipS6QpKyMUApoOiGISmgBIbJZSAwkdA+ihQB0JqCPAVy3K7Op5Z3Hm2pkF+qKKiik/sfV7lF5SSOwF6MSiYiekklBAcIqDvmAzkLy1/WNo7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"),y=_("1vsH"),s=_("V0Rq"),p=_("m3rI");q.a=function(n){var i,v,C,R,w,x,A,o=n.editOffice,f=o===void 0?"view":o,E=n.data,O=n.theme,S=n.type,b=n.filename,D=n.monacoEditor,P=n.className,I=n.style,F=n.close,K=n.onClose,j=n.hasMask,Y=n.disabledDownload,W=Object(m.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),Q=Object(M.a)(W,2),ie=Q[0],Ee=Q[1],pe=Object(m.useState)(""),De=Object(M.a)(pe,2),Me=De[0],Ue=De[1],Ie=Object(m.useState)(),ne=Object(M.a)(Ie,2),B=ne[0],z=ne[1],H=window.ENV==="build"?"/react/build":"",ee=p.a.PROXY_SERVER||location.origin,X,me=1024*1024,je=10*me,Je=Object(m.useRef)();(i=E)!==null&&i!==void 0&&i.startsWith("/api")&&S!=="txt"&&(E=(p.a.API_SERVER||location.origin)+E),S==="office"&&(X=Object(y.T)(E).filesize,X>je&&(S="other")),b&&D&&(D.filename=b),Object(m.useEffect)(function(){var Le,We,Xe=(Le=document.cookie)===null||Le===void 0||((We=Le.replace(/\s/g,""))===null||We===void 0)?void 0:We.split(";");Xe==null||Xe.map(function(ct){var lt=ct.split("=");lt[0]==="_educoder_session"&&Ue(lt[1])})},[]),Object(m.useEffect)(function(){S==="office"&&oe()},[S,E]);var oe=function(){var Le=Object(u.a)(e.a.mark(function We(){var Xe,ct,lt;return e.a.wrap(function(Dt){for(;;)switch(Dt.prev=Dt.next){case 0:return console.log("data:",E),Xe=E,E.startsWith("http")||(Xe=location.origin+Xe),ct=new URL(Xe).pathname.split("/").pop(),Dt.next=6,Object(s.V)({attachment_id:ct});case 6:lt=Dt.sent,z(lt);case 8:case"end":return Dt.stop()}},We)}));return function(){return Le.apply(this,arguments)}}(),Ae=function(){if(E.startsWith("http")||E.startsWith("blob:")){ye();return}Object(y.z)(b||"educoder",E,b)},ye=function(){Object(y.x)(b||"educoder",decodeURIComponent(E))};return r.a.createElement("div",{style:Object(c.a)({},I||{}),className:"".concat(j&&a.a.bgBlack," ").concat(S?a.a.wrp:"hide")},F&&r.a.createElement("div",{className:a.a.close,ref:Je},!Y&&r.a.createElement(N.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return Je.current}},r.a.createElement("span",{onClick:ye},r.a.createElement("i",{className:"icon-quxiaozhiding"}))),r.a.createElement(N.a,{title:"\u5173\u95ED",getPopupContainer:function(){return Je.current}},r.a.createElement("span",{className:"",onClick:K},r.a.createElement("i",{className:"icon-guanbi1"})))),r.a.createElement("div",{className:"".concat(a.a[P]," ").concat(P," ").concat(a.a.monaco," ").concat(S==="txt"?"show":"hide")},S==="txt"&&r.a.createElement(d.b,D)),S==="audio"&&r.a.createElement("audio",{src:"".concat(((v=E)===null||v===void 0?void 0:v.indexOf("http://"))>-1||((C=E)===null||C===void 0?void 0:C.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat(E),autoPlay:!0}),S==="video"&&r.a.createElement(r.a.Fragment,null,((R=E)===null||R===void 0?void 0:R.indexOf("http"))>-1?r.a.createElement("video",{controls:!0,src:"".concat(E),autoPlay:!0}):r.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(E),autoPlay:!0})),S==="office"&&B&&r.a.createElement("iframe",{src:"".concat(H,"/office.html?key=").concat(B.key,"&url=").concat(ee+B.url,"&callbackUrl=").concat(ee+B.callbackUrl,"&fileType=").concat(B.fileType,"&title=").concat(B.title,"&model=").concat(f,"&officeServer=").concat(p.a.OFFICE_SERVER,"&disabledDownload=").concat(!!Y)}),S==="html"&&r.a.createElement("iframe",{src:E+"&disposition=inline"}),S==="pdf"&&r.a.createElement("iframe",{src:"".concat(H,"/js/pdfview/index.html?url=").concat(E,"&disabledDownload=").concat(!!Y)}),S==="image"&&r.a.createElement("img",{src:"".concat(((w=E)===null||w===void 0?void 0:w.indexOf("http://"))>-1||((x=E)===null||x===void 0?void 0:x.indexOf("https://"))>-1||(A=E)!==null&&A!==void 0&&A.startsWith("/api")?"":"data:image/png;base64,").concat(E)}),S==="other"&&r.a.createElement("div",null,r.a.createElement(U.a,{type:"primary",size:"large",onClick:Ae},r.a.createElement(l.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),S==="download"&&r.a.createElement(U.a,{type:"primary",size:"large",onClick:Ae},r.a.createElement(l.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},p6Nx:function(ge,q,_){},pIsd:function(ge,q,_){var Z=_("BJfS"),U=function(c){var u=/[height|width]$/;return u.test(c)},L=function(c){var u="",M=Object.keys(c);return M.forEach(function(g,e){var m=c[g];g=Z(g),U(g)&&typeof m=="number"&&(m=m+"px"),m===!0?u+=g:m===!1?u+="not "+g:u+="("+g+": "+m+")",e<M.length-1&&(u+=" and ")}),u},N=function(c){var u="";return typeof c=="string"?c:c instanceof Array?(c.forEach(function(M,g){u+=L(M),g<c.length-1&&(u+=", ")}),u):L(c)};ge.exports=N},pmY6:function(ge,q,_){"use strict";_.d(q,"h",function(){return m}),_.d(q,"g",function(){return h}),_.d(q,"f",function(){return a}),_.d(q,"e",function(){return l}),_.d(q,"i",function(){return d}),_.d(q,"b",function(){return y}),_.d(q,"a",function(){return s}),_.d(q,"d",function(){return p}),_.d(q,"c",function(){return n});var Z=_("C/vA"),U=_("JYp7");const L=!1;let N=null;function c(i){N=i}if(L){const i="__is_disposable_tracked__";c(new class{trackDisposable(v){const C=new Error("Potentially leaked disposable").stack;setTimeout(()=>{v[i]||console.log(C)},3e3)}setParent(v,C){if(v&&v!==s.None)try{v[i]=!0}catch(R){}}markAsDisposed(v){if(v&&v!==s.None)try{v[i]=!0}catch(C){}}markAsSingleton(v){}})}function u(i){return N==null||N.trackDisposable(i),i}function M(i){N==null||N.markAsDisposed(i)}function g(i,v){N==null||N.setParent(i,v)}function e(i,v){if(!N)return;for(const C of i)N.setParent(C,v)}function m(i){return N==null||N.markAsSingleton(i),i}class r extends Error{constructor(i){super(`Encountered errors while disposing of store. Errors: [${i.join(", ")}]`);this.errors=i}}function h(i){return typeof i.dispose=="function"&&i.dispose.length===0}function a(i){if(U.a.is(i)){let v=[];for(const C of i)if(C)try{C.dispose()}catch(R){v.push(R)}if(v.length===1)throw v[0];if(v.length>1)throw new r(v);return Array.isArray(i)?[]:i}else if(i)return i.dispose(),i}function l(...i){const v=d(()=>a(i));return e(i,v),v}function d(i){const v=u({dispose:Object(Z.a)(()=>{M(v),i()})});return v}class y{constructor(){this._toDispose=new Set,this._isDisposed=!1,u(this)}dispose(){if(this._isDisposed)return;M(this),this._isDisposed=!0,this.clear()}clear(){try{a(this._toDispose.values())}finally{this._toDispose.clear()}}add(i){if(!i)return i;if(i===this)throw new Error("Cannot register a disposable on itself!");return g(i,this),this._isDisposed?y.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(i),i}}y.DISABLE_DISPOSED_WARNING=!1;class s{constructor(){this._store=new y,u(this),g(this._store,this)}dispose(){M(this),this._store.dispose()}_register(i){if(i===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(i)}}s.None=Object.freeze({dispose(){}});class p{constructor(){this._isDisposed=!1,u(this)}get value(){return this._isDisposed?void 0:this._value}set value(i){var v;if(this._isDisposed||i===this._value)return;(v=this._value)===null||v===void 0||v.dispose(),i&&g(i,this),this._value=i}clear(){this.value=void 0}dispose(){var i;this._isDisposed=!0,M(this),(i=this._value)===null||i===void 0||i.dispose(),this._value=void 0}clearAndLeak(){const i=this._value;return this._value=void 0,i&&g(i,null),i}}class n{constructor(i){this.object=i}dispose(){}}},po3F:function(ge,q,_){ge.exports={modal:"modal___3Y0Wf",closeIcon:"closeIcon___2U9hd",wrap:"wrap___3bgrF",input:"input___e0HRQ"}},psGv:function(ge,q,_){var Z,U;(function(){var L;(function(){"use strict";var M=[,,function(r){function h(d){this.__parent=d,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=[]}h.prototype.clone_empty=function(){var d=new h(this.__parent);return d.set_indent(this.__indent_count,this.__alignment_count),d},h.prototype.item=function(d){return d<0?this.__items[this.__items.length+d]:this.__items[d]},h.prototype.has_match=function(d){for(var y=this.__items.length-1;y>=0;y--)if(this.__items[y].match(d))return!0;return!1},h.prototype.set_indent=function(d,y){this.is_empty()&&(this.__indent_count=d||0,this.__alignment_count=y||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},h.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)},h.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},h.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var d=this.__parent.current_line;return d.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),d.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),d.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,d.__items[0]===" "&&(d.__items.splice(0,1),d.__character_count-=1),!0}return!1},h.prototype.is_empty=function(){return this.__items.length===0},h.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},h.prototype.push=function(d){this.__items.push(d);var y=d.lastIndexOf(`
`);y!==-1?this.__character_count=d.length-y:this.__character_count+=d.length},h.prototype.pop=function(){var d=null;return this.is_empty()||(d=this.__items.pop(),this.__character_count-=d.length),d},h.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},h.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},h.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},h.prototype.toString=function(){var d="";return this.is_empty()?this.__parent.indent_empty_lines&&(d=this.__parent.get_indent_string(this.__indent_count)):(d=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),d+=this.__items.join("")),d};function a(d,y){this.__cache=[""],this.__indent_size=d.indent_size,this.__indent_string=d.indent_char,d.indent_with_tabs||(this.__indent_string=new Array(d.indent_size+1).join(d.indent_char)),y=y||"",d.indent_level>0&&(y=new Array(d.indent_level+1).join(this.__indent_string)),this.__base_string=y,this.__base_string_length=y.length}a.prototype.get_indent_size=function(d,y){var s=this.__base_string_length;return y=y||0,d<0&&(s=0),s+=d*this.__indent_size,s+=y,s},a.prototype.get_indent_string=function(d,y){var s=this.__base_string;return y=y||0,d<0&&(d=0,s=""),y+=d*this.__indent_size,this.__ensure_cache(y),s+=this.__cache[y],s},a.prototype.__ensure_cache=function(d){for(;d>=this.__cache.length;)this.__add_column()},a.prototype.__add_column=function(){var d=this.__cache.length,y=0,s="";this.__indent_size&&d>=this.__indent_size&&(y=Math.floor(d/this.__indent_size),d-=y*this.__indent_size,s=new Array(y+1).join(this.__indent_string)),d&&(s+=new Array(d+1).join(" ")),this.__cache.push(s)};function l(d,y){this.__indent_cache=new a(d,y),this.raw=!1,this._end_with_newline=d.end_with_newline,this.indent_size=d.indent_size,this.wrap_line_length=d.wrap_line_length,this.indent_empty_lines=d.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new h(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}l.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},l.prototype.get_line_number=function(){return this.__lines.length},l.prototype.get_indent_string=function(d,y){return this.__indent_cache.get_indent_string(d,y)},l.prototype.get_indent_size=function(d,y){return this.__indent_cache.get_indent_size(d,y)},l.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},l.prototype.add_new_line=function(d){return this.is_empty()||!d&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},l.prototype.get_code=function(d){this.trim(!0);var y=this.current_line.pop();y&&(y[y.length-1]===`
`&&(y=y.replace(/\n+$/g,"")),this.current_line.push(y)),this._end_with_newline&&this.__add_outputline();var s=this.__lines.join(`
`);return d!==`
`&&(s=s.replace(/[\n]/g,d)),s},l.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},l.prototype.set_indent=function(d,y){return d=d||0,y=y||0,this.next_line.set_indent(d,y),this.__lines.length>1?(this.current_line.set_indent(d,y),!0):(this.current_line.set_indent(),!1)},l.prototype.add_raw_token=function(d){for(var y=0;y<d.newlines;y++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(d.whitespace_before),this.current_line.push(d.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},l.prototype.add_token=function(d){this.__add_space_before_token(),this.current_line.push(d),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},l.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(" "))},l.prototype.remove_indent=function(d){for(var y=this.__lines.length;d<y;)this.__lines[d]._remove_indent(),d++;this.current_line._remove_wrap_indent()},l.prototype.trim=function(d){for(d=d===void 0?!1:d,this.current_line.trim();d&&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},l.prototype.just_added_newline=function(){return this.current_line.is_empty()},l.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},l.prototype.ensure_empty_line_above=function(d,y){for(var s=this.__lines.length-2;s>=0;){var p=this.__lines[s];if(p.is_empty())break;if(p.item(0).indexOf(d)!==0&&p.item(-1)!==y){this.__lines.splice(s+1,0,new h(this)),this.previous_line=this.__lines[this.__lines.length-2];break}s--}},r.exports.Output=l},function(r){function h(a,l,d,y){this.type=a,this.text=l,this.comments_before=null,this.newlines=d||0,this.whitespace_before=y||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}r.exports.Token=h},,,function(r){function h(d,y){this.raw_options=a(d,y),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"])}h.prototype._get_array=function(d,y){var s=this.raw_options[d],p=y||[];return typeof s=="object"?s!==null&&typeof s.concat=="function"&&(p=s.concat()):typeof s=="string"&&(p=s.split(/[^a-zA-Z0-9_\/\-]+/)),p},h.prototype._get_boolean=function(d,y){var s=this.raw_options[d],p=s===void 0?!!y:!!s;return p},h.prototype._get_characters=function(d,y){var s=this.raw_options[d],p=y||"";return typeof s=="string"&&(p=s.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),p},h.prototype._get_number=function(d,y){var s=this.raw_options[d];y=parseInt(y,10),isNaN(y)&&(y=0);var p=parseInt(s,10);return isNaN(p)&&(p=y),p},h.prototype._get_selection=function(d,y,s){var p=this._get_selection_list(d,y,s);if(p.length!==1)throw new Error("Invalid Option Value: The option '"+d+`' can only be one of the following values:
`+y+`
You passed in: '`+this.raw_options[d]+"'");return p[0]},h.prototype._get_selection_list=function(d,y,s){if(!y||y.length===0)throw new Error("Selection list cannot be empty.");if(s=s||[y[0]],!this._is_valid_selection(s,y))throw new Error("Invalid Default Value!");var p=this._get_array(d,s);if(!this._is_valid_selection(p,y))throw new Error("Invalid Option Value: The option '"+d+`' can contain only the following values:
`+y+`
You passed in: '`+this.raw_options[d]+"'");return p},h.prototype._is_valid_selection=function(d,y){return d.length&&y.length&&!d.some(function(s){return y.indexOf(s)===-1})};function a(d,y){var s={};d=l(d);var p;for(p in d)p!==y&&(s[p]=d[p]);if(y&&d[y])for(p in d[y])s[p]=d[y][p];return s}function l(d){var y={},s;for(s in d){var p=s.replace(/-/g,"_");y[p]=d[s]}return y}r.exports.Options=h,r.exports.normalizeOpts=l,r.exports.mergeOpts=a},,function(r){var h=RegExp.prototype.hasOwnProperty("sticky");function a(l){this.__input=l||"",this.__input_length=this.__input.length,this.__position=0}a.prototype.restart=function(){this.__position=0},a.prototype.back=function(){this.__position>0&&(this.__position-=1)},a.prototype.hasNext=function(){return this.__position<this.__input_length},a.prototype.next=function(){var l=null;return this.hasNext()&&(l=this.__input.charAt(this.__position),this.__position+=1),l},a.prototype.peek=function(l){var d=null;return l=l||0,l+=this.__position,l>=0&&l<this.__input_length&&(d=this.__input.charAt(l)),d},a.prototype.__match=function(l,d){l.lastIndex=d;var y=l.exec(this.__input);return y&&!(h&&l.sticky)&&(y.index!==d&&(y=null)),y},a.prototype.test=function(l,d){return d=d||0,d+=this.__position,d>=0&&d<this.__input_length?!!this.__match(l,d):!1},a.prototype.testChar=function(l,d){var y=this.peek(d);return l.lastIndex=0,y!==null&&l.test(y)},a.prototype.match=function(l){var d=this.__match(l,this.__position);return d?this.__position+=d[0].length:d=null,d},a.prototype.read=function(l,d,y){var s="",p;return l&&(p=this.match(l),p&&(s+=p[0])),d&&(p||!l)&&(s+=this.readUntil(d,y)),s},a.prototype.readUntil=function(l,d){var y="",s=this.__position;l.lastIndex=this.__position;var p=l.exec(this.__input);return p?(s=p.index,d&&(s+=p[0].length)):s=this.__input_length,y=this.__input.substring(this.__position,s),this.__position=s,y},a.prototype.readUntilAfter=function(l){return this.readUntil(l,!0)},a.prototype.get_regexp=function(l,d){var y=null,s="g";return d&&h&&(s="y"),typeof l=="string"&&l!==""?y=new RegExp(l,s):l&&(y=new RegExp(l.source,s)),y},a.prototype.get_literal_regexp=function(l){return RegExp(l.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},a.prototype.peekUntilAfter=function(l){var d=this.__position,y=this.readUntilAfter(l);return this.__position=d,y},a.prototype.lookBack=function(l){var d=this.__position-1;return d>=l.length&&this.__input.substring(d-l.length,d).toLowerCase()===l},r.exports.InputScanner=a},function(r,h,a){var l=a(8).InputScanner,d=a(3).Token,y=a(10).TokenStream,s=a(11).WhitespacePattern,p={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},n=function(i,v){this._input=new l(i),this._options=v||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new s(this._input)};n.prototype.tokenize=function(){this._input.restart(),this.__tokens=new y,this._reset();for(var i,v=new d(p.START,""),C=null,R=[],w=new y;v.type!==p.EOF;){for(i=this._get_next_token(v,C);this._is_comment(i);)w.add(i),i=this._get_next_token(v,C);w.isEmpty()||(i.comments_before=w,w=new y),i.parent=C,this._is_opening(i)?(R.push(C),C=i):C&&this._is_closing(i,C)&&(i.opened=C,C.closed=i,C=R.pop(),i.parent=C),i.previous=v,v.next=i,this.__tokens.add(i),v=i}return this.__tokens},n.prototype._is_first_token=function(){return this.__tokens.isEmpty()},n.prototype._reset=function(){},n.prototype._get_next_token=function(i,v){this._readWhitespace();var C=this._input.read(/.+/g);return C?this._create_token(p.RAW,C):this._create_token(p.EOF,"")},n.prototype._is_comment=function(i){return!1},n.prototype._is_opening=function(i){return!1},n.prototype._is_closing=function(i,v){return!1},n.prototype._create_token=function(i,v){var C=new d(i,v,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return C},n.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},r.exports.Tokenizer=n,r.exports.TOKEN=p},function(r){function h(a){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=a}h.prototype.restart=function(){this.__position=0},h.prototype.isEmpty=function(){return this.__tokens_length===0},h.prototype.hasNext=function(){return this.__position<this.__tokens_length},h.prototype.next=function(){var a=null;return this.hasNext()&&(a=this.__tokens[this.__position],this.__position+=1),a},h.prototype.peek=function(a){var l=null;return a=a||0,a+=this.__position,a>=0&&a<this.__tokens_length&&(l=this.__tokens[a]),l},h.prototype.add=function(a){this.__parent_token&&(a.parent=this.__parent_token),this.__tokens.push(a),this.__tokens_length+=1},r.exports.TokenStream=h},function(r,h,a){var l=a(12).Pattern;function d(y,s){l.call(this,y,s),s?this._line_regexp=this._input.get_regexp(s._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}d.prototype=new l,d.prototype.__set_whitespace_patterns=function(y,s){y+="\\t ",s+="\\n\\r",this._match_pattern=this._input.get_regexp("["+y+s+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+s+"]")},d.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var y=this._input.read(this._match_pattern);if(y===" ")this.whitespace_before_token=" ";else if(y){var s=this.__split(this._newline_regexp,y);this.newline_count=s.length-1,this.whitespace_before_token=s[this.newline_count]}return y},d.prototype.matching=function(y,s){var p=this._create();return p.__set_whitespace_patterns(y,s),p._update(),p},d.prototype._create=function(){return new d(this._input,this)},d.prototype.__split=function(y,s){y.lastIndex=0;for(var p=0,n=[],i=y.exec(s);i;)n.push(s.substring(p,i.index)),p=i.index+i[0].length,i=y.exec(s);return p<s.length?n.push(s.substring(p,s.length)):n.push(""),n},r.exports.WhitespacePattern=d},function(r){function h(a,l){this._input=a,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,l&&(this._starting_pattern=this._input.get_regexp(l._starting_pattern,!0),this._match_pattern=this._input.get_regexp(l._match_pattern,!0),this._until_pattern=this._input.get_regexp(l._until_pattern),this._until_after=l._until_after)}h.prototype.read=function(){var a=this._input.read(this._starting_pattern);return(!this._starting_pattern||a)&&(a+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),a},h.prototype.read_match=function(){return this._input.match(this._match_pattern)},h.prototype.until_after=function(a){var l=this._create();return l._until_after=!0,l._until_pattern=this._input.get_regexp(a),l._update(),l},h.prototype.until=function(a){var l=this._create();return l._until_after=!1,l._until_pattern=this._input.get_regexp(a),l._update(),l},h.prototype.starting_with=function(a){var l=this._create();return l._starting_pattern=this._input.get_regexp(a,!0),l._update(),l},h.prototype.matching=function(a){var l=this._create();return l._match_pattern=this._input.get_regexp(a,!0),l._update(),l},h.prototype._create=function(){return new h(this._input,this)},h.prototype._update=function(){},r.exports.Pattern=h},function(r){function h(a,l){a=typeof a=="string"?a:a.source,l=typeof l=="string"?l:l.source,this.__directives_block_pattern=new RegExp(a+/ beautify( \w+[:]\w+)+ /.source+l,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(a+/\sbeautify\signore:end\s/.source+l,"g")}h.prototype.get_directives=function(a){if(!a.match(this.__directives_block_pattern))return null;var l={};this.__directive_pattern.lastIndex=0;for(var d=this.__directive_pattern.exec(a);d;)l[d[1]]=d[2],d=this.__directive_pattern.exec(a);return l},h.prototype.readIgnored=function(a){return a.readUntilAfter(this.__directives_end_ignore_pattern)},r.exports.Directives=h},function(r,h,a){var l=a(12).Pattern,d={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1};function y(s,p){l.call(this,s,p),this.__template_pattern=null,this._disabled=Object.assign({},d),this._excluded=Object.assign({},d),p&&(this.__template_pattern=this._input.get_regexp(p.__template_pattern),this._excluded=Object.assign(this._excluded,p._excluded),this._disabled=Object.assign(this._disabled,p._disabled));var n=new l(s);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}/)}}y.prototype=new l,y.prototype._create=function(){return new y(this._input,this)},y.prototype._update=function(){this.__set_templated_pattern()},y.prototype.disable=function(s){var p=this._create();return p._disabled[s]=!0,p._update(),p},y.prototype.read_options=function(s){var p=this._create();for(var n in d)p._disabled[n]=s.templating.indexOf(n)===-1;return p._update(),p},y.prototype.exclude=function(s){var p=this._create();return p._excluded[s]=!0,p._update(),p},y.prototype.read=function(){var s="";this._match_pattern?s=this._input.read(this._starting_pattern):s=this._input.read(this._starting_pattern,this.__template_pattern);for(var p=this._read_template();p;)this._match_pattern?p+=this._input.read(this._match_pattern):p+=this._input.readUntil(this.__template_pattern),s+=p,p=this._read_template();return this._until_after&&(s+=this._input.readUntilAfter(this._until_pattern)),s},y.prototype.__set_templated_pattern=function(){var s=[];this._disabled.php||s.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||s.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||s.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(s.push(this.__patterns.django._starting_pattern.source),s.push(this.__patterns.django_value._starting_pattern.source),s.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||s.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&s.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+s.join("|")+")")},y.prototype._read_template=function(){var s="",p=this._input.peek();if(p==="<"){var n=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&n==="?"&&(s=s||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&n==="%"&&(s=s||this.__patterns.erb.read())}else p==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(s=s||this.__patterns.handlebars_comment.read(),s=s||this.__patterns.handlebars_unescaped.read(),s=s||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(s=s||this.__patterns.django_value.read()),this._excluded.django||(s=s||this.__patterns.django_comment.read(),s=s||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(s=s||this.__patterns.smarty_comment.read(),s=s||this.__patterns.smarty_literal.read(),s=s||this.__patterns.smarty.read()));return s},r.exports.TemplatablePattern=y},,,,function(r,h,a){var l=a(19).Beautifier,d=a(20).Options;function y(s,p,n,i){var v=new l(s,p,n,i);return v.beautify()}r.exports=y,r.exports.defaultOptions=function(){return new d}},function(r,h,a){var l=a(20).Options,d=a(2).Output,y=a(21).Tokenizer,s=a(21).TOKEN,p=/\r\n|[\r\n]/,n=/\r\n|[\r\n]/g,i=function(O,S){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=O.max_preserve_newlines,this.preserve_newlines=O.preserve_newlines,this._output=new d(O,S)};i.prototype.current_line_has_match=function(O){return this._output.current_line.has_match(O)},i.prototype.set_space_before_token=function(O,S){this._output.space_before_token=O,this._output.non_breaking_space=S},i.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},i.prototype.add_raw_token=function(O){this._output.add_raw_token(O)},i.prototype.print_preserved_newlines=function(O){var S=0;O.type!==s.TEXT&&O.previous.type!==s.TEXT&&(S=O.newlines?1:0),this.preserve_newlines&&(S=O.newlines<this.max_preserve_newlines+1?O.newlines:this.max_preserve_newlines+1);for(var b=0;b<S;b++)this.print_newline(b>0);return S!==0},i.prototype.traverse_whitespace=function(O){return O.whitespace_before||O.newlines?(this.print_preserved_newlines(O)||(this._output.space_before_token=!0),!0):!1},i.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},i.prototype.print_newline=function(O){this._output.add_new_line(O)},i.prototype.print_token=function(O){O.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(O.text))},i.prototype.indent=function(){this.indent_level++},i.prototype.get_full_indent=function(O){return O=this.indent_level+(O||0),O<1?"":this._output.get_indent_string(O)};var v=function(O){for(var S=null,b=O.next;b.type!==s.EOF&&O.closed!==b;){if(b.type===s.ATTRIBUTE&&b.text==="type"){b.next&&b.next.type===s.EQUALS&&b.next.next&&b.next.next.type===s.VALUE&&(S=b.next.next.text);break}b=b.next}return S},C=function(O,S){var b=null,D=null;return S.closed?(O==="script"?b="text/javascript":O==="style"&&(b="text/css"),b=v(S)||b,b.search("text/css")>-1?D="css":b.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?D="javascript":b.search(/(text|application|dojo)\/(x-)?(html)/)>-1?D="html":b.search(/test\/null/)>-1&&(D="null"),D):null};function R(O,S){return S.indexOf(O)!==-1}function w(O,S,b){this.parent=O||null,this.tag=S?S.tag_name:"",this.indent_level=b||0,this.parser_token=S||null}function x(O){this._printer=O,this._current_frame=null}x.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},x.prototype.record_tag=function(O){var S=new w(this._current_frame,O,this._printer.indent_level);this._current_frame=S},x.prototype._try_pop_frame=function(O){var S=null;return O&&(S=O.parser_token,this._printer.indent_level=O.indent_level,this._current_frame=O.parent),S},x.prototype._get_frame=function(O,S){for(var b=this._current_frame;b&&!(O.indexOf(b.tag)!==-1);){if(S&&S.indexOf(b.tag)!==-1){b=null;break}b=b.parent}return b},x.prototype.try_pop=function(O,S){var b=this._get_frame([O],S);return this._try_pop_frame(b)},x.prototype.indent_to_tag=function(O){var S=this._get_frame(O);S&&(this._printer.indent_level=S.indent_level)};function A(O,S,b,D){this._source_text=O||"",S=S||{},this._js_beautify=b,this._css_beautify=D,this._tag_stack=null;var P=new l(S,"html");this._options=P,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"}A.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var O=this._source_text,S=this._options.eol;this._options.eol==="auto"&&(S=`
`,O&&p.test(O)&&(S=O.match(p)[0])),O=O.replace(n,`
`);var b=O.match(/^[\t ]*/)[0],D={text:"",type:""},P=new o,I=new i(this._options,b),F=new y(O,this._options).tokenize();this._tag_stack=new x(I);for(var K=null,j=F.next();j.type!==s.EOF;)j.type===s.TAG_OPEN||j.type===s.COMMENT?(K=this._handle_tag_open(I,j,P,D),P=K):j.type===s.ATTRIBUTE||j.type===s.EQUALS||j.type===s.VALUE||j.type===s.TEXT&&!P.tag_complete?K=this._handle_inside_tag(I,j,P,F):j.type===s.TAG_CLOSE?K=this._handle_tag_close(I,j,P):j.type===s.TEXT?K=this._handle_text(I,j,P):I.add_raw_token(j),D=K,j=F.next();var Y=I._output.get_code(S);return Y},A.prototype._handle_tag_close=function(O,S,b){var D={text:S.text,type:S.type};return O.alignment_size=0,b.tag_complete=!0,O.set_space_before_token(S.newlines||S.whitespace_before!=="",!0),b.is_unformatted?O.add_raw_token(S):(b.tag_start_char==="<"&&(O.set_space_before_token(S.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&b.has_wrapped_attrs&&O.print_newline(!1)),O.print_token(S)),b.indent_content&&!(b.is_unformatted||b.is_content_unformatted)&&(O.indent(),b.indent_content=!1),!b.is_inline_element&&!(b.is_unformatted||b.is_content_unformatted)&&O.set_wrap_point(),D},A.prototype._handle_inside_tag=function(O,S,b,D){var P=b.has_wrapped_attrs,I={text:S.text,type:S.type};if(O.set_space_before_token(S.newlines||S.whitespace_before!=="",!0),b.is_unformatted)O.add_raw_token(S);else if(b.tag_start_char==="{"&&S.type===s.TEXT)O.print_preserved_newlines(S)?(S.newlines=0,O.add_raw_token(S)):O.print_token(S);else{if(S.type===s.ATTRIBUTE?(O.set_space_before_token(!0),b.attr_count+=1):(S.type===s.EQUALS||S.type===s.VALUE&&S.previous.type===s.EQUALS)&&O.set_space_before_token(!1),S.type===s.ATTRIBUTE&&b.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(O.traverse_whitespace(S),P=P||S.newlines!==0),this._is_wrap_attributes_force)){var F=b.attr_count>1;if(this._is_wrap_attributes_force_expand_multiline&&b.attr_count===1){var K=!0,j=0,Y;do{if(Y=D.peek(j),Y.type===s.ATTRIBUTE){K=!1;break}j+=1}while(j<4&&Y.type!==s.EOF&&Y.type!==s.TAG_CLOSE);F=!K}F&&(O.print_newline(!1),P=!0)}O.print_token(S),P=P||O.previous_token_wrapped(),b.has_wrapped_attrs=P}return I},A.prototype._handle_text=function(O,S,b){var D={text:S.text,type:"TK_CONTENT"};return b.custom_beautifier_name?this._print_custom_beatifier_text(O,S,b):b.is_unformatted||b.is_content_unformatted?O.add_raw_token(S):(O.traverse_whitespace(S),O.print_token(S)),D},A.prototype._print_custom_beatifier_text=function(O,S,b){var D=this;if(S.text!==""){var P=S.text,I,F=1,K="",j="";b.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?I=this._js_beautify:b.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?I=this._css_beautify:b.custom_beautifier_name==="html"&&(I=function(pe,De){var Me=new A(pe,De,D._js_beautify,D._css_beautify);return Me.beautify()}),this._options.indent_scripts==="keep"?F=0:this._options.indent_scripts==="separate"&&(F=-O.indent_level);var Y=O.get_full_indent(F);if(P=P.replace(/\n[ \t]*$/,""),b.custom_beautifier_name!=="html"&&P[0]==="<"&&P.match(/^(<!--|<!\[CDATA\[)/)){var W=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(P);if(!W){O.add_raw_token(S);return}K=Y+W[1]+`
`,P=W[4],W[5]&&(j=Y+W[5]),P=P.replace(/\n[ \t]*$/,""),(W[2]||W[3].indexOf(`
`)!==-1)&&(W=W[3].match(/[ \t]+$/),W&&(S.whitespace_before=W[0]))}if(P)if(I){var Q=function(){this.eol=`
`};Q.prototype=this._options.raw_options;var ie=new Q;P=I(Y+P,ie)}else{var Ee=S.whitespace_before;Ee&&(P=P.replace(new RegExp(`
(`+Ee+")?","g"),`
`)),P=Y+P.replace(/\n/g,`
`+Y)}K&&(P?P=K+P+`
`+j:P=K+j),O.print_newline(!1),P&&(S.text=P,S.whitespace_before="",S.newlines=0,O.add_raw_token(S),O.print_newline(!0))}},A.prototype._handle_tag_open=function(O,S,b,D){var P=this._get_tag_open_token(S);return(b.is_unformatted||b.is_content_unformatted)&&!b.is_empty_element&&S.type===s.TAG_OPEN&&S.text.indexOf("</")===0?(O.add_raw_token(S),P.start_tag_token=this._tag_stack.try_pop(P.tag_name)):(O.traverse_whitespace(S),this._set_tag_position(O,S,P,b,D),P.is_inline_element||O.set_wrap_point(),O.print_token(S)),(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(P.alignment_size=S.text.length+1),!P.tag_complete&&!P.is_unformatted&&(O.alignment_size=P.alignment_size),P};var o=function(O,S){if(this.parent=O||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="",!S)this.tag_complete=!0;else{var b;this.tag_start_char=S.text[0],this.text=S.text,this.tag_start_char==="<"?(b=S.text.match(/^<([^\s>]*)/),this.tag_check=b?b[1]:""):(b=S.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=b?b[1]:"",(S.text.startsWith("{{#>")||S.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&S.next!==null?this.tag_check=S.next.text.split(" ")[0]:this.tag_check=S.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),S.type===s.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||S.closed&&S.closed.text==="/>";var D=2;this.tag_start_char==="{"&&this.text.length>=3&&(this.text.charAt(2)==="~"&&(D=3)),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(D)))}};A.prototype._get_tag_open_token=function(O){var S=new o(this._tag_stack.get_parser_token(),O);return S.alignment_size=this._options.wrap_attributes_indent_size,S.is_end_tag=S.is_end_tag||R(S.tag_check,this._options.void_elements),S.is_empty_element=S.tag_complete||S.is_start_tag&&S.is_end_tag,S.is_unformatted=!S.tag_complete&&R(S.tag_check,this._options.unformatted),S.is_content_unformatted=!S.is_empty_element&&R(S.tag_check,this._options.content_unformatted),S.is_inline_element=R(S.tag_name,this._options.inline)||S.tag_name.includes("-")||S.tag_start_char==="{",S},A.prototype._set_tag_position=function(O,S,b,D,P){if(b.is_empty_element||(b.is_end_tag?b.start_tag_token=this._tag_stack.try_pop(b.tag_name):(this._do_optional_end_element(b)&&(b.is_inline_element||O.print_newline(!1)),this._tag_stack.record_tag(b),(b.tag_name==="script"||b.tag_name==="style")&&!(b.is_unformatted||b.is_content_unformatted)&&(b.custom_beautifier_name=C(b.tag_check,S)))),R(b.tag_check,this._options.extra_liners)&&(O.print_newline(!1),O._output.just_added_blankline()||O.print_newline(!0)),b.is_empty_element){if(b.tag_start_char==="{"&&b.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),b.indent_content=!0;var I=O.current_line_has_match(/{{#if/);I||O.print_newline(!1)}b.tag_name==="!--"&&P.type===s.TAG_CLOSE&&D.is_end_tag&&b.text.indexOf(`
`)===-1||(b.is_inline_element||b.is_unformatted||O.print_newline(!1),this._calcluate_parent_multiline(O,b))}else if(b.is_end_tag){var F=!1;F=b.start_tag_token&&b.start_tag_token.multiline_content,F=F||!b.is_inline_element&&!(D.is_inline_element||D.is_unformatted)&&!(P.type===s.TAG_CLOSE&&b.start_tag_token===D)&&P.type!=="TK_CONTENT",(b.is_content_unformatted||b.is_unformatted)&&(F=!1),F&&O.print_newline(!1)}else b.indent_content=!b.custom_beautifier_name,b.tag_start_char==="<"&&(b.tag_name==="html"?b.indent_content=this._options.indent_inner_html:b.tag_name==="head"?b.indent_content=this._options.indent_head_inner_html:b.tag_name==="body"&&(b.indent_content=this._options.indent_body_inner_html)),!(b.is_inline_element||b.is_unformatted)&&(P.type!=="TK_CONTENT"||b.is_content_unformatted)&&O.print_newline(!1),this._calcluate_parent_multiline(O,b)},A.prototype._calcluate_parent_multiline=function(O,S){S.parent&&O._output.just_added_newline()&&!((S.is_inline_element||S.is_unformatted)&&S.parent.is_inline_element)&&(S.parent.multiline_content=!0)};var f=["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"],E=["a","audio","del","ins","map","noscript","video"];A.prototype._do_optional_end_element=function(O){var S=null;if(O.is_empty_element||!O.is_start_tag||!O.parent)return;if(O.tag_name==="body")S=S||this._tag_stack.try_pop("head");else if(O.tag_name==="li")S=S||this._tag_stack.try_pop("li",["ol","ul"]);else if(O.tag_name==="dd"||O.tag_name==="dt")S=S||this._tag_stack.try_pop("dt",["dl"]),S=S||this._tag_stack.try_pop("dd",["dl"]);else if(O.parent.tag_name==="p"&&f.indexOf(O.tag_name)!==-1){var b=O.parent.parent;(!b||E.indexOf(b.tag_name)===-1)&&(S=S||this._tag_stack.try_pop("p"))}else O.tag_name==="rp"||O.tag_name==="rt"?(S=S||this._tag_stack.try_pop("rt",["ruby","rtc"]),S=S||this._tag_stack.try_pop("rp",["ruby","rtc"])):O.tag_name==="optgroup"?S=S||this._tag_stack.try_pop("optgroup",["select"]):O.tag_name==="option"?S=S||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):O.tag_name==="colgroup"?S=S||this._tag_stack.try_pop("caption",["table"]):O.tag_name==="thead"?(S=S||this._tag_stack.try_pop("caption",["table"]),S=S||this._tag_stack.try_pop("colgroup",["table"])):O.tag_name==="tbody"||O.tag_name==="tfoot"?(S=S||this._tag_stack.try_pop("caption",["table"]),S=S||this._tag_stack.try_pop("colgroup",["table"]),S=S||this._tag_stack.try_pop("thead",["table"]),S=S||this._tag_stack.try_pop("tbody",["table"])):O.tag_name==="tr"?(S=S||this._tag_stack.try_pop("caption",["table"]),S=S||this._tag_stack.try_pop("colgroup",["table"]),S=S||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(O.tag_name==="th"||O.tag_name==="td")&&(S=S||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),S=S||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return O.parent=this._tag_stack.get_parser_token(),S},r.exports.Beautifier=A},function(r,h,a){var l=a(6).Options;function d(y){l.call(this,y,"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"])}d.prototype=new l,r.exports.Options=d},function(r,h,a){var l=a(9).Tokenizer,d=a(9).TOKEN,y=a(13).Directives,s=a(14).TemplatablePattern,p=a(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:d.START,RAW:d.RAW,EOF:d.EOF},i=new y(/<\!--/,/-->/),v=function(C,R){l.call(this,C,R),this._current_tag_name="";var w=new s(this._input).read_options(this._options),x=new p(this._input);if(this.__patterns={word:w.until(/[\n\r\t <]/),single_quote:w.until_after(/'/),double_quote:w.until_after(/"/),attribute:w.until(/[\n\r\t =>]|\/>/),element_name:w.until(/[\n\r\t >\/]/),handlebars_comment:x.starting_with(/{{!--/).until_after(/--}}/),handlebars:x.starting_with(/{{/).until_after(/}}/),handlebars_open:x.until(/[\n\r\t }]/),handlebars_raw_close:x.until(/}}/),comment:x.starting_with(/<!--/).until_after(/-->/),cdata:x.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:x.starting_with(/<!\[/).until_after(/]>/),processing:x.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 A=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=x.matching(A).until_after(A)}};v.prototype=new l,v.prototype._is_comment=function(C){return!1},v.prototype._is_opening=function(C){return C.type===n.TAG_OPEN},v.prototype._is_closing=function(C,R){return C.type===n.TAG_CLOSE&&R&&((C.text===">"||C.text==="/>")&&R.text[0]==="<"||C.text==="}}"&&R.text[0]==="{"&&R.text[1]==="{")},v.prototype._reset=function(){this._current_tag_name=""},v.prototype._get_next_token=function(C,R){var w=null;this._readWhitespace();var x=this._input.peek();return x===null?this._create_token(n.EOF,""):(w=w||this._read_open_handlebars(x,R),w=w||this._read_attribute(x,C,R),w=w||this._read_close(x,R),w=w||this._read_raw_content(x,C,R),w=w||this._read_content_word(x),w=w||this._read_comment_or_cdata(x),w=w||this._read_processing(x),w=w||this._read_open(x,R),w=w||this._create_token(n.UNKNOWN,this._input.next()),w)},v.prototype._read_comment_or_cdata=function(C){var R=null,w=null,x=null;if(C==="<"){var A=this._input.peek(1);A==="!"&&(w=this.__patterns.comment.read(),w?(x=i.get_directives(w),x&&x.ignore==="start"&&(w+=i.readIgnored(this._input))):w=this.__patterns.cdata.read()),w&&(R=this._create_token(n.COMMENT,w),R.directives=x)}return R},v.prototype._read_processing=function(C){var R=null,w=null,x=null;if(C==="<"){var A=this._input.peek(1);(A==="!"||A==="?")&&(w=this.__patterns.conditional_comment.read(),w=w||this.__patterns.processing.read()),w&&(R=this._create_token(n.COMMENT,w),R.directives=x)}return R},v.prototype._read_open=function(C,R){var w=null,x=null;return R||C==="<"&&(w=this._input.next(),this._input.peek()==="/"&&(w+=this._input.next()),w+=this.__patterns.element_name.read(),x=this._create_token(n.TAG_OPEN,w)),x},v.prototype._read_open_handlebars=function(C,R){var w=null,x=null;return R||this._options.indent_handlebars&&C==="{"&&this._input.peek(1)==="{"&&(this._input.peek(2)==="!"?(w=this.__patterns.handlebars_comment.read(),w=w||this.__patterns.handlebars.read(),x=this._create_token(n.COMMENT,w)):(w=this.__patterns.handlebars_open.read(),x=this._create_token(n.TAG_OPEN,w))),x},v.prototype._read_close=function(C,R){var w=null,x=null;return R&&(R.text[0]==="<"&&(C===">"||C==="/"&&this._input.peek(1)===">")?(w=this._input.next(),C==="/"&&(w+=this._input.next()),x=this._create_token(n.TAG_CLOSE,w)):R.text[0]==="{"&&C==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),x=this._create_token(n.TAG_CLOSE,"}}"))),x},v.prototype._read_attribute=function(C,R,w){var x=null,A="";if(w&&w.text[0]==="<")if(C==="=")x=this._create_token(n.EQUALS,this._input.next());else if(C==='"'||C==="'"){var o=this._input.next();C==='"'?o+=this.__patterns.double_quote.read():o+=this.__patterns.single_quote.read(),x=this._create_token(n.VALUE,o)}else A=this.__patterns.attribute.read(),A&&(R.type===n.EQUALS?x=this._create_token(n.VALUE,A):x=this._create_token(n.ATTRIBUTE,A));return x},v.prototype._is_content_unformatted=function(C){return this._options.void_elements.indexOf(C)===-1&&(this._options.content_unformatted.indexOf(C)!==-1||this._options.unformatted.indexOf(C)!==-1)},v.prototype._read_raw_content=function(C,R,w){var x="";if(w&&w.text[0]==="{")x=this.__patterns.handlebars_raw_close.read();else if(R.type===n.TAG_CLOSE&&R.opened.text[0]==="<"&&R.text[0]!=="/"){var A=R.opened.text.substr(1).toLowerCase();if(A==="script"||A==="style"){var o=this._read_comment_or_cdata(C);if(o)return o.type=n.TEXT,o;x=this._input.readUntil(new RegExp("</"+A+"[\\n\\r\\t ]*?>","ig"))}else this._is_content_unformatted(A)&&(x=this._input.readUntil(new RegExp("</"+A+"[\\n\\r\\t ]*?>","ig")))}return x?this._create_token(n.TEXT,x):null},v.prototype._read_content_word=function(C){var R="";if(this._options.unformatted_content_delimiter&&(C===this._options.unformatted_content_delimiter[0]&&(R=this.__patterns.unformatted_content_delimiter.read())),R||(R=this.__patterns.word.read()),R)return this._create_token(n.TEXT,R)},r.exports.Tokenizer=v,r.exports.TOKEN=n}],g={};function e(r){var h=g[r];if(h!==void 0)return h.exports;var a=g[r]={exports:{}};return M[r](a,a.exports,e),a.exports}var m=e(18);L=m})();var N=L;if(!0)!(Z=[_,_("6UM0"),_("TXwP")],U=function(M){var g=_("6UM0"),e=_("TXwP");return{html_beautify:function(m,r){return N(m,r,g.js_beautify,e.css_beautify)}}}.apply(q,Z),U!==void 0&&(ge.exports=U));else var c,u})()},pzxd:function(ge,q,_){var Z=_("bYtY"),U=Z.retrieve2,L=Z.retrieve3,N=Z.each,c=Z.normalizeCssArray,u=Z.isString,M=Z.isObject,g=_("6GrX"),e=_("VpOo"),m=_("Xnb7"),r=_("fW2E"),h=_("gut8"),a=h.ContextCachedBy,l=h.WILL_BE_RESTORED,d=g.DEFAULT_FONT,y={left:1,right:1,center:1},s={top:1,bottom:1,middle:1},p=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]],n={},i={};function v(Y){return C(Y),N(Y.rich,C),Y}function C(Y){if(Y){Y.font=g.makeFont(Y);var W=Y.textAlign;W==="middle"&&(W="center"),Y.textAlign=W==null||y[W]?W:"left";var Q=Y.textVerticalAlign||Y.textBaseline;Q==="center"&&(Q="middle"),Y.textVerticalAlign=Q==null||s[Q]?Q:"top";var ie=Y.textPadding;ie&&(Y.textPadding=c(Y.textPadding))}}function R(Y,W,Q,ie,Ee,pe){ie.rich?x(Y,W,Q,ie,Ee,pe):w(Y,W,Q,ie,Ee,pe)}function w(Y,W,Q,ie,Ee,pe){"use strict";var De=E(ie),Me,Ue=!1,Ie=W.__attrCachedBy===a.PLAIN_TEXT;pe!==l?(pe&&(Me=pe.style,Ue=!De&&Ie&&Me),W.__attrCachedBy=De?a.NONE:a.PLAIN_TEXT):Ie&&(W.__attrCachedBy=a.NONE);var ne=ie.font||d;(!Ue||ne!==(Me.font||d))&&(W.font=ne);var B=Y.__computedFont;Y.__styleFont!==ne&&(Y.__styleFont=ne,B=Y.__computedFont=W.font);var z=ie.textPadding,H=ie.textLineHeight,ee=Y.__textCotentBlock;(!ee||Y.__dirtyText)&&(ee=Y.__textCotentBlock=g.parsePlainText(Q,B,z,H,ie.truncate));var X=ee.outerHeight,me=ee.lines,je=ee.lineHeight,Je=b(i,Y,ie,Ee),oe=Je.baseX,Ae=Je.baseY,ye=Je.textAlign||"left",Le=Je.textVerticalAlign;o(W,ie,Ee,oe,Ae);var We=g.adjustTextY(Ae,X,Le),Xe=oe,ct=We;if(De||z){var lt=g.getWidth(Q,B),St=lt;z&&(St+=z[1]+z[3]);var Dt=g.adjustTextX(oe,St,ye);De&&O(Y,W,ie,Dt,We,St,X),z&&(Xe=K(oe,ye,z),ct+=z[0])}W.textAlign=ye,W.textBaseline="middle",W.globalAlpha=ie.opacity||1;for(var bt=0;bt<p.length;bt++){var ht=p[bt],Ut=ht[0],Ft=ht[1],ve=ie[Ut];(!Ue||ve!==Me[Ut])&&(W[Ft]=r(W,Ft,ve||ht[2]))}ct+=je/2;var se=ie.textStrokeWidth,le=Ue?Me.textStrokeWidth:null,fe=!Ue||se!==le,Re=!Ue||fe||ie.textStroke!==Me.textStroke,ce=P(ie.textStroke,se),he=I(ie.textFill);if(ce&&(fe&&(W.lineWidth=se),Re&&(W.strokeStyle=ce)),he&&((!Ue||ie.textFill!==Me.textFill)&&(W.fillStyle=he)),me.length===1)ce&&W.strokeText(me[0],Xe,ct),he&&W.fillText(me[0],Xe,ct);else for(var bt=0;bt<me.length;bt++)ce&&W.strokeText(me[bt],Xe,ct),he&&W.fillText(me[bt],Xe,ct),ct+=je}function x(Y,W,Q,ie,Ee,pe){pe!==l&&(W.__attrCachedBy=a.NONE);var De=Y.__textCotentBlock;(!De||Y.__dirtyText)&&(De=Y.__textCotentBlock=g.parseRichText(Q,ie)),A(Y,W,De,ie,Ee)}function A(Y,W,Q,ie,Ee){var pe=Q.width,De=Q.outerWidth,Me=Q.outerHeight,Ue=ie.textPadding,Ie=b(i,Y,ie,Ee),ne=Ie.baseX,B=Ie.baseY,z=Ie.textAlign,H=Ie.textVerticalAlign;o(W,ie,Ee,ne,B);var ee=g.adjustTextX(ne,De,z),X=g.adjustTextY(B,Me,H),me=ee,je=X;Ue&&(me+=Ue[3],je+=Ue[0]);var Je=me+pe;E(ie)&&O(Y,W,ie,ee,X,De,Me);for(var oe=0;oe<Q.lines.length;oe++){for(var Ae=Q.lines[oe],ye=Ae.tokens,Le=ye.length,We=Ae.lineHeight,Xe=Ae.width,ct=0,lt=me,St=Je,Dt=Le-1,bt;ct<Le&&(bt=ye[ct],!bt.textAlign||bt.textAlign==="left");)f(Y,W,bt,ie,We,je,lt,"left"),Xe-=bt.width,lt+=bt.width,ct++;for(;Dt>=0&&(bt=ye[Dt],bt.textAlign==="right");)f(Y,W,bt,ie,We,je,St,"right"),Xe-=bt.width,St-=bt.width,Dt--;for(lt+=(pe-(lt-me)-(Je-St)-Xe)/2;ct<=Dt;)bt=ye[ct],f(Y,W,bt,ie,We,je,lt+bt.width/2,"center"),lt+=bt.width,ct++;je+=We}}function o(Y,W,Q,ie,Ee){if(Q&&W.textRotation){var pe=W.textOrigin;pe==="center"?(ie=Q.width/2+Q.x,Ee=Q.height/2+Q.y):pe&&(ie=pe[0]+Q.x,Ee=pe[1]+Q.y),Y.translate(ie,Ee),Y.rotate(-W.textRotation),Y.translate(-ie,-Ee)}}function f(Y,W,Q,ie,Ee,pe,De,Me){var Ue=ie.rich[Q.styleName]||{};Ue.text=Q.text;var Ie=Q.textVerticalAlign,ne=pe+Ee/2;Ie==="top"?ne=pe+Q.height/2:Ie==="bottom"&&(ne=pe+Ee-Q.height/2),!Q.isLineHolder&&E(Ue)&&O(Y,W,Ue,Me==="right"?De-Q.width:Me==="center"?De-Q.width/2:De,ne-Q.height/2,Q.width,Q.height);var B=Q.textPadding;B&&(De=K(De,Me,B),ne-=Q.height/2-B[2]-Q.textHeight/2),D(W,"shadowBlur",L(Ue.textShadowBlur,ie.textShadowBlur,0)),D(W,"shadowColor",Ue.textShadowColor||ie.textShadowColor||"transparent"),D(W,"shadowOffsetX",L(Ue.textShadowOffsetX,ie.textShadowOffsetX,0)),D(W,"shadowOffsetY",L(Ue.textShadowOffsetY,ie.textShadowOffsetY,0)),D(W,"textAlign",Me),D(W,"textBaseline","middle"),D(W,"font",Q.font||d);var z=P(Ue.textStroke||ie.textStroke,ee),H=I(Ue.textFill||ie.textFill),ee=U(Ue.textStrokeWidth,ie.textStrokeWidth);z&&(D(W,"lineWidth",ee),D(W,"strokeStyle",z),W.strokeText(Q.text,De,ne)),H&&(D(W,"fillStyle",H),W.fillText(Q.text,De,ne))}function E(Y){return!!(Y.textBackgroundColor||Y.textBorderWidth&&Y.textBorderColor)}function O(Y,W,Q,ie,Ee,pe,De){var Me=Q.textBackgroundColor,Ue=Q.textBorderWidth,Ie=Q.textBorderColor,ne=u(Me);if(D(W,"shadowBlur",Q.textBoxShadowBlur||0),D(W,"shadowColor",Q.textBoxShadowColor||"transparent"),D(W,"shadowOffsetX",Q.textBoxShadowOffsetX||0),D(W,"shadowOffsetY",Q.textBoxShadowOffsetY||0),ne||Ue&&Ie){W.beginPath();var B=Q.textBorderRadius;B?e.buildPath(W,{x:ie,y:Ee,width:pe,height:De,r:B}):W.rect(ie,Ee,pe,De),W.closePath()}if(ne)if(D(W,"fillStyle",Me),Q.fillOpacity!=null){var z=W.globalAlpha;W.globalAlpha=Q.fillOpacity*Q.opacity,W.fill(),W.globalAlpha=z}else W.fill();else if(M(Me)){var H=Me.image;H=m.createOrUpdateImage(H,null,Y,S,Me),H&&m.isImageReady(H)&&W.drawImage(H,ie,Ee,pe,De)}if(Ue&&Ie)if(D(W,"lineWidth",Ue),D(W,"strokeStyle",Ie),Q.strokeOpacity!=null){var z=W.globalAlpha;W.globalAlpha=Q.strokeOpacity*Q.opacity,W.stroke(),W.globalAlpha=z}else W.stroke()}function S(Y,W){W.image=Y}function b(Y,W,Q,ie){var Ee=Q.x||0,pe=Q.y||0,De=Q.textAlign,Me=Q.textVerticalAlign;if(ie){var Ue=Q.textPosition;if(Ue instanceof Array)Ee=ie.x+F(Ue[0],ie.width),pe=ie.y+F(Ue[1],ie.height);else{var Ie=W&&W.calculateTextPosition?W.calculateTextPosition(n,Q,ie):g.calculateTextPosition(n,Q,ie);Ee=Ie.x,pe=Ie.y,De=De||Ie.textAlign,Me=Me||Ie.textVerticalAlign}var ne=Q.textOffset;ne&&(Ee+=ne[0],pe+=ne[1])}return Y=Y||{},Y.baseX=Ee,Y.baseY=pe,Y.textAlign=De,Y.textVerticalAlign=Me,Y}function D(Y,W,Q){return Y[W]=r(Y,W,Q),Y[W]}function P(Y,W){return Y==null||W<=0||Y==="transparent"||Y==="none"?null:Y.image||Y.colorStops?"#000":Y}function I(Y){return Y==null||Y==="none"?null:Y.image||Y.colorStops?"#000":Y}function F(Y,W){return typeof Y=="string"?Y.lastIndexOf("%")>=0?parseFloat(Y)/100*W:parseFloat(Y):Y}function K(Y,W,Q){return W==="right"?Y-Q[1]:W==="center"?Y+Q[3]/2-Q[1]/2:Y+Q[3]}function j(Y,W){return Y!=null&&(Y||W.textBackgroundColor||W.textBorderWidth&&W.textBorderColor||W.textPadding)}q.normalizeTextStyle=v,q.renderText=R,q.getBoxPosition=b,q.getStroke=P,q.getFill=I,q.parsePercent=F,q.needDrawText=j},qH13:function(ge,q,_){var Z=_("ItGF"),U=_("QBsz"),L=U.applyTransform,N=_("mFDi"),c=_("Qe9p"),u=_("6GrX"),M=_("pzxd"),g=_("ni6a"),e=_("Gev7"),m=_("Dagg"),r=_("dqUG"),h=_("y+Vt"),a=_("IMiH"),l=_("QuXc"),d=_("06Qe"),y=a.CMD,s=Math.round,p=Math.sqrt,n=Math.abs,i=Math.cos,v=Math.sin,C=Math.max;if(!Z.canvasSupported){var R=",",w="progid:DXImageTransform.Microsoft",x=21600,A=x/2,o=1e5,f=1e3,E=function(oe){oe.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",oe.coordsize=x+","+x,oe.coordorigin="0,0"},O=function(oe){return String(oe).replace(/&/g,"&amp;").replace(/"/g,"&quot;")},S=function(oe,Ae,ye){return"rgb("+[oe,Ae,ye].join(",")+")"},b=function(oe,Ae){Ae&&oe&&Ae.parentNode!==oe&&oe.appendChild(Ae)},D=function(oe,Ae){Ae&&oe&&Ae.parentNode===oe&&oe.removeChild(Ae)},P=function(oe,Ae,ye){return(parseFloat(oe)||0)*o+(parseFloat(Ae)||0)*f+ye},I=M.parsePercent,F=function(oe,Ae,ye){var Le=c.parse(Ae);ye=+ye,isNaN(ye)&&(ye=1),Le&&(oe.color=S(Le[0],Le[1],Le[2]),oe.opacity=ye*Le[3])},K=function(oe){var Ae=c.parse(oe);return[S(Ae[0],Ae[1],Ae[2]),Ae[3]]},j=function(oe,Ae,ye){var Le=Ae.fill;if(Le!=null)if(Le instanceof l){var We,Xe=0,ct=[0,0],lt=0,St=1,Dt=ye.getBoundingRect(),bt=Dt.width,ht=Dt.height;if(Le.type==="linear"){We="gradient";var Ut=ye.transform,Ft=[Le.x*bt,Le.y*ht],ve=[Le.x2*bt,Le.y2*ht];Ut&&(L(Ft,Ft,Ut),L(ve,ve,Ut));var se=ve[0]-Ft[0],le=ve[1]-Ft[1];Xe=Math.atan2(se,le)*180/Math.PI,Xe<0&&(Xe+=360),Xe<1e-6&&(Xe=0)}else{We="gradientradial";var Ft=[Le.x*bt,Le.y*ht],Ut=ye.transform,fe=ye.scale,Re=bt,ce=ht;ct=[(Ft[0]-Dt.x)/Re,(Ft[1]-Dt.y)/ce],Ut&&L(Ft,Ft,Ut),Re/=fe[0]*x,ce/=fe[1]*x;var he=C(Re,ce);lt=2*0/he,St=2*Le.r/he-lt}var Se=Le.colorStops.slice();Se.sort(function(qe,Ce){return qe.offset-Ce.offset});for(var we=Se.length,Ze=[],Ye=[],it=0;it<we;it++){var Et=Se[it],Pt=K(Et.color);Ye.push(Et.offset*St+lt+" "+Pt[0]),(it===0||it===we-1)&&Ze.push(Pt)}if(we>=2){var zt=Ze[0][0],Rt=Ze[1][0],rt=Ze[0][1]*Ae.opacity,st=Ze[1][1]*Ae.opacity;oe.type=We,oe.method="none",oe.focus="100%",oe.angle=Xe,oe.color=zt,oe.color2=Rt,oe.colors=Ye.join(","),oe.opacity=st,oe.opacity2=rt}We==="radial"&&(oe.focusposition=ct.join(","))}else F(oe,Le,Ae.opacity)},Y=function(oe,Ae){Ae.lineDash&&(oe.dashstyle=Ae.lineDash.join(" ")),Ae.stroke!=null&&!(Ae.stroke instanceof l)&&F(oe,Ae.stroke,Ae.opacity)},W=function(oe,Ae,ye,Le){var We=Ae==="fill",Xe=oe.getElementsByTagName(Ae)[0];ye[Ae]!=null&&ye[Ae]!=="none"&&(We||!We&&ye.lineWidth)?(oe[We?"filled":"stroked"]="true",ye[Ae]instanceof l&&D(oe,Xe),Xe||(Xe=d.createNode(Ae)),We?j(Xe,ye,Le):Y(Xe,ye),b(oe,Xe)):(oe[We?"filled":"stroked"]="false",D(oe,Xe))},Q=[[],[],[]],ie=function(oe,Ae){var ye=y.M,Le=y.C,We=y.L,Xe=y.A,ct=y.Q,lt=[],St,Dt,bt,ht,Ut,Ft,ve=oe.data,se=oe.len();for(ht=0;ht<se;){bt=ve[ht++],Dt="",St=0;switch(bt){case ye:Dt=" m ",St=1,Ut=ve[ht++],Ft=ve[ht++],Q[0][0]=Ut,Q[0][1]=Ft;break;case We:Dt=" l ",St=1,Ut=ve[ht++],Ft=ve[ht++],Q[0][0]=Ut,Q[0][1]=Ft;break;case ct:case Le:Dt=" c ",St=3;var le=ve[ht++],fe=ve[ht++],Re=ve[ht++],ce=ve[ht++],he,Se;bt===ct?(he=Re,Se=ce,Re=(Re+2*le)/3,ce=(ce+2*fe)/3,le=(Ut+2*le)/3,fe=(Ft+2*fe)/3):(he=ve[ht++],Se=ve[ht++]),Q[0][0]=le,Q[0][1]=fe,Q[1][0]=Re,Q[1][1]=ce,Q[2][0]=he,Q[2][1]=Se,Ut=he,Ft=Se;break;case Xe:var we=0,Ze=0,Ye=1,it=1,Et=0;Ae&&(we=Ae[4],Ze=Ae[5],Ye=p(Ae[0]*Ae[0]+Ae[1]*Ae[1]),it=p(Ae[2]*Ae[2]+Ae[3]*Ae[3]),Et=Math.atan2(-Ae[1]/it,Ae[0]/Ye));var Pt=ve[ht++],zt=ve[ht++],Rt=ve[ht++],rt=ve[ht++],st=ve[ht++]+Et,qe=ve[ht++]+st+Et;ht++;var Ce=ve[ht++],Be=Pt+i(st)*Rt,dt=zt+v(st)*rt,le=Pt+i(qe)*Rt,fe=zt+v(qe)*rt,ut=Ce?" wa ":" at ";Math.abs(Be-le)<1e-4&&(Math.abs(qe-st)>.01?Ce&&(Be+=270/x):Math.abs(dt-zt)<1e-4?Ce&&Be<Pt||!Ce&&Be>Pt?fe-=270/x:fe+=270/x:Ce&&dt<zt||!Ce&&dt>zt?le+=270/x:le-=270/x),lt.push(ut,s(((Pt-Rt)*Ye+we)*x-A),R,s(((zt-rt)*it+Ze)*x-A),R,s(((Pt+Rt)*Ye+we)*x-A),R,s(((zt+rt)*it+Ze)*x-A),R,s((Be*Ye+we)*x-A),R,s((dt*it+Ze)*x-A),R,s((le*Ye+we)*x-A),R,s((fe*it+Ze)*x-A)),Ut=le,Ft=fe;break;case y.R:var It=Q[0],wt=Q[1];It[0]=ve[ht++],It[1]=ve[ht++],wt[0]=It[0]+ve[ht++],wt[1]=It[1]+ve[ht++],Ae&&(L(It,It,Ae),L(wt,wt,Ae)),It[0]=s(It[0]*x-A),wt[0]=s(wt[0]*x-A),It[1]=s(It[1]*x-A),wt[1]=s(wt[1]*x-A),lt.push(" m ",It[0],R,It[1]," l ",wt[0],R,It[1]," l ",wt[0],R,wt[1]," l ",It[0],R,wt[1]);break;case y.Z:lt.push(" x ")}if(St>0){lt.push(Dt);for(var gt=0;gt<St;gt++){var Nt=Q[gt];Ae&&L(Nt,Nt,Ae),lt.push(s(Nt[0]*x-A),R,s(Nt[1]*x-A),gt<St-1?R:"")}}}return lt.join("")};h.prototype.brushVML=function(oe){var Ae=this.style,ye=this._vmlEl;ye||(ye=d.createNode("shape"),E(ye),this._vmlEl=ye),W(ye,"fill",Ae,this),W(ye,"stroke",Ae,this);var Le=this.transform,We=Le!=null,Xe=ye.getElementsByTagName("stroke")[0];if(Xe){var ct=Ae.lineWidth;if(We&&!Ae.strokeNoScale){var lt=Le[0]*Le[3]-Le[1]*Le[2];ct*=p(n(lt))}Xe.weight=ct+"px"}var St=this.path||(this.path=new a);this.__dirtyPath&&(St.beginPath(),St.subPixelOptimize=!1,this.buildPath(St,this.shape),St.toStatic(),this.__dirtyPath=!1),ye.path=ie(St,this.transform),ye.style.zIndex=P(this.zlevel,this.z,this.z2),b(oe,ye),Ae.text!=null?this.drawRectText(oe,this.getBoundingRect()):this.removeRectText(oe)},h.prototype.onRemove=function(oe){D(oe,this._vmlEl),this.removeRectText(oe)},h.prototype.onAdd=function(oe){b(oe,this._vmlEl),this.appendRectText(oe)};var Ee=function(oe){return typeof oe=="object"&&oe.tagName&&oe.tagName.toUpperCase()==="IMG"};m.prototype.brushVML=function(oe){var Ae=this.style,ye=Ae.image,Le,We;if(Ee(ye)){var Xe=ye.src;if(Xe===this._imageSrc)Le=this._imageWidth,We=this._imageHeight;else{var ct=ye.runtimeStyle,lt=ct.width,St=ct.height;ct.width="auto",ct.height="auto",Le=ye.width,We=ye.height,ct.width=lt,ct.height=St,this._imageSrc=Xe,this._imageWidth=Le,this._imageHeight=We}ye=Xe}else ye===this._imageSrc&&(Le=this._imageWidth,We=this._imageHeight);if(!ye)return;var Dt=Ae.x||0,bt=Ae.y||0,ht=Ae.width,Ut=Ae.height,Ft=Ae.sWidth,ve=Ae.sHeight,se=Ae.sx||0,le=Ae.sy||0,fe=Ft&&ve,Re=this._vmlEl;Re||(Re=d.doc.createElement("div"),E(Re),this._vmlEl=Re);var ce=Re.style,he=!1,Se,we=1,Ze=1;if(this.transform&&(Se=this.transform,we=p(Se[0]*Se[0]+Se[1]*Se[1]),Ze=p(Se[2]*Se[2]+Se[3]*Se[3]),he=Se[1]||Se[2]),he){var Ye=[Dt,bt],it=[Dt+ht,bt],Et=[Dt,bt+Ut],Pt=[Dt+ht,bt+Ut];L(Ye,Ye,Se),L(it,it,Se),L(Et,Et,Se),L(Pt,Pt,Se);var zt=C(Ye[0],it[0],Et[0],Pt[0]),Rt=C(Ye[1],it[1],Et[1],Pt[1]),rt=[];rt.push("M11=",Se[0]/we,R,"M12=",Se[2]/Ze,R,"M21=",Se[1]/we,R,"M22=",Se[3]/Ze,R,"Dx=",s(Dt*we+Se[4]),R,"Dy=",s(bt*Ze+Se[5])),ce.padding="0 "+s(zt)+"px "+s(Rt)+"px 0",ce.filter=w+".Matrix("+rt.join("")+", SizingMethod=clip)"}else Se&&(Dt=Dt*we+Se[4],bt=bt*Ze+Se[5]),ce.filter="",ce.left=s(Dt)+"px",ce.top=s(bt)+"px";var st=this._imageEl,qe=this._cropEl;st||(st=d.doc.createElement("div"),this._imageEl=st);var Ce=st.style;if(fe){if(Le&&We)Ce.width=s(we*Le*ht/Ft)+"px",Ce.height=s(Ze*We*Ut/ve)+"px";else{var Be=new Image,dt=this;Be.onload=function(){Be.onload=null,Le=Be.width,We=Be.height,Ce.width=s(we*Le*ht/Ft)+"px",Ce.height=s(Ze*We*Ut/ve)+"px",dt._imageWidth=Le,dt._imageHeight=We,dt._imageSrc=ye},Be.src=ye}qe||(qe=d.doc.createElement("div"),qe.style.overflow="hidden",this._cropEl=qe);var ut=qe.style;ut.width=s((ht+se*ht/Ft)*we),ut.height=s((Ut+le*Ut/ve)*Ze),ut.filter=w+".Matrix(Dx="+-se*ht/Ft*we+",Dy="+-le*Ut/ve*Ze+")",qe.parentNode||Re.appendChild(qe),st.parentNode!==qe&&qe.appendChild(st)}else Ce.width=s(we*ht)+"px",Ce.height=s(Ze*Ut)+"px",Re.appendChild(st),qe&&qe.parentNode&&(Re.removeChild(qe),this._cropEl=null);var It="",wt=Ae.opacity;wt<1&&(It+=".Alpha(opacity="+s(wt*100)+") "),It+=w+".AlphaImageLoader(src="+ye+", SizingMethod=scale)",Ce.filter=It,Re.style.zIndex=P(this.zlevel,this.z,this.z2),b(oe,Re),Ae.text!=null&&this.drawRectText(oe,this.getBoundingRect())},m.prototype.onRemove=function(oe){D(oe,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText(oe)},m.prototype.onAdd=function(oe){b(oe,this._vmlEl),this.appendRectText(oe)};var pe="normal",De={},Me=0,Ue=100,Ie=document.createElement("div"),ne=function(oe){var Ae=De[oe];if(!Ae){Me>Ue&&(Me=0,De={});var ye=Ie.style,Le;try{ye.font=oe,Le=ye.fontFamily.split(",")[0]}catch(We){}Ae={style:ye.fontStyle||pe,variant:ye.fontVariant||pe,weight:ye.fontWeight||pe,size:parseFloat(ye.fontSize||12)|0,family:Le||"Microsoft YaHei"},De[oe]=Ae,Me++}return Ae},B;u.$override("measureText",function(oe,Ae){var ye=d.doc;B||(B=ye.createElement("div"),B.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",d.doc.body.appendChild(B));try{B.style.font=Ae}catch(Le){}return B.innerHTML="",B.appendChild(ye.createTextNode(oe)),{width:B.offsetWidth}});for(var z=new N,H=function(oe,Ae,ye,Le){var We=this.style;this.__dirty&&M.normalizeTextStyle(We,!0);var Xe=We.text;if(Xe!=null&&(Xe+=""),!Xe)return;if(We.rich){var ct=u.parseRichText(Xe,We);Xe=[];for(var lt=0;lt<ct.lines.length;lt++){for(var St=ct.lines[lt].tokens,Dt=[],bt=0;bt<St.length;bt++)Dt.push(St[bt].text);Xe.push(Dt.join(""))}Xe=Xe.join(`
`)}var ht,Ut,Ft=We.textAlign,ve=We.textVerticalAlign,se=ne(We.font),le=se.style+" "+se.variant+" "+se.weight+" "+se.size+'px "'+se.family+'"';ye=ye||u.getBoundingRect(Xe,le,Ft,ve,We.textPadding,We.textLineHeight);var fe=this.transform;if(fe&&!Le&&(z.copy(Ae),z.applyTransform(fe),Ae=z),Le)ht=Ae.x,Ut=Ae.y;else{var Re=We.textPosition;if(Re instanceof Array)ht=Ae.x+I(Re[0],Ae.width),Ut=Ae.y+I(Re[1],Ae.height),Ft=Ft||"left";else{var ce=this.calculateTextPosition?this.calculateTextPosition({},We,Ae):u.calculateTextPosition({},We,Ae);ht=ce.x,Ut=ce.y,Ft=Ft||ce.textAlign,ve=ve||ce.textVerticalAlign}}ht=u.adjustTextX(ht,ye.width,Ft),Ut=u.adjustTextY(Ut,ye.height,ve),Ut+=ye.height/2;var he=d.createNode,Se=this._textVmlEl,we,Ze,Ye;Se?(Ye=Se.firstChild,we=Ye.nextSibling,Ze=we.nextSibling):(Se=he("line"),we=he("path"),Ze=he("textpath"),Ye=he("skew"),Ze.style["v-text-align"]="left",E(Se),we.textpathok=!0,Ze.on=!0,Se.from="0 0",Se.to="1000 0.05",b(Se,Ye),b(Se,we),b(Se,Ze),this._textVmlEl=Se);var it=[ht,Ut],Et=Se.style;fe&&Le?(L(it,it,fe),Ye.on=!0,Ye.matrix=fe[0].toFixed(3)+R+fe[2].toFixed(3)+R+fe[1].toFixed(3)+R+fe[3].toFixed(3)+",0,0",Ye.offset=(s(it[0])||0)+","+(s(it[1])||0),Ye.origin="0 0",Et.left="0px",Et.top="0px"):(Ye.on=!1,Et.left=s(ht)+"px",Et.top=s(Ut)+"px"),Ze.string=O(Xe);try{Ze.style.font=le}catch(Pt){}W(Se,"fill",{fill:We.textFill,opacity:We.opacity},this),W(Se,"stroke",{stroke:We.textStroke,opacity:We.opacity,lineDash:We.lineDash||null},this),Se.style.zIndex=P(this.zlevel,this.z,this.z2),b(oe,Se)},ee=function(oe){D(oe,this._textVmlEl),this._textVmlEl=null},X=function(oe){b(oe,this._textVmlEl)},me=[g,e,m,h,r],je=0;je<me.length;je++){var Je=me[je].prototype;Je.drawRectText=H,Je.removeRectText=ee,Je.appendRectText=X}r.prototype.brushVML=function(oe){var Ae=this.style;Ae.text!=null?this.drawRectText(oe,{x:Ae.x||0,y:Ae.y||0,width:0,height:0},this.getBoundingRect(),!0):this.removeRectText(oe)},r.prototype.onRemove=function(oe){this.removeRectText(oe)},r.prototype.onAdd=function(oe){this.appendRectText(oe)}}},qHvr:function(ge,q,_){"use strict";var Z=_("2qtc"),U=_("kLXV"),L=_("5NDa"),N=_("5rEg"),c=_("miYZ"),u=_("tsqr"),M=_("tJVT"),g=_("q1tI"),e=_.n(g),m=_("4i/N");function r(h){var a=h.isAddmodle,l=h.setIsAdd,d=h.createTeam,y=Object(g.useState)(""),s=Object(M.a)(y,2),p=s[0],n=s[1];return e.a.createElement(U.a,{centered:!0,title:e.a.createElement("div",{style:{alignItems:"center",display:"flex"}},e.a.createElement("div",{style:{textAlign:"left",flex:"1"}},"\u521B\u5EFA\u6218\u961F"),e.a.createElement(m.a,{onClick:function(){return l(!1)},style:{cursor:"porint"}})),visible:a,closable:!1,destroyOnClose:!0,onOk:function(){if(!p){u.b.info("\u6218\u961F\u540D\u4E0D\u80FD\u4E3A\u7A7A");return}d(p)},onCancel:function(){return l(!1)}},e.a.createElement("div",null,e.a.createElement("span",{style:{fontSize:"14px",color:"#F73737"}},"*"),"\u961F\u540D\uFF1A",e.a.createElement("p",{style:{marginTop:"15px",marginLeft:"15px"}},e.a.createElement(N.a,{placeholder:"\u8BF7\u8F93\u5165\u961F\u540D",value:p,maxLength:60,addonAfter:String(p&&p.length||0)+"/60",onChange:function(v){return n(v.target.value)}}))))}q.a=r},qgvg:function(ge,q){ge.exports="data:image/gif;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bRFOzakpqiqtItPsTWbA0wWoOcrOUuEMA6TgQAh+QQFMgBVACwAAAAAFAAQAAAHeIBVgoOEISaEiIlVExlUSIQLAgmKIidOVFQAggYCNAIGiTFRmJiaVQkCC4MzHxcXHhKkpYpVN7K3mbQFuLKmibu8s4rAwb4YpBjEvL6IyrjMhB3BwolBGxEROCq30LQsQ1CkpqiqtItNsRybAkpHoOY+PxqEQC+TgQA7"},r6Bn:function(ge,q,_){var Z=_("bYtY"),U=_("ItGF"),L=_("4fz+"),N=_("BPZU");function c(g,e){return g.zlevel===e.zlevel?g.z===e.z?g.z2-e.z2:g.z-e.z:g.zlevel-e.zlevel}var u=function(){this._roots=[],this._displayList=[],this._displayListLen=0};u.prototype={constructor:u,traverse:function(g,e){for(var m=0;m<this._roots.length;m++)this._roots[m].traverse(g,e)},getDisplayList:function(g,e){return e=e||!1,g&&this.updateDisplayList(e),this._displayList},updateDisplayList:function(g){this._displayListLen=0;for(var e=this._roots,m=this._displayList,r=0,h=e.length;r<h;r++)this._updateAndAddDisplayable(e[r],null,g);m.length=this._displayListLen,U.canvasSupported&&N(m,c)},_updateAndAddDisplayable:function(g,e,m){if(g.ignore&&!m)return;g.beforeUpdate(),g.__dirty&&g.update(),g.afterUpdate();var r=g.clipPath;if(r){e?e=e.slice():e=[];for(var h=r,a=g;h;)h.parent=a,h.updateTransform(),e.push(h),a=h,h=h.clipPath}if(g.isGroup){for(var l=g._children,d=0;d<l.length;d++){var y=l[d];g.__dirty&&(y.__dirty=!0),this._updateAndAddDisplayable(y,e,m)}g.__dirty=!1}else g.__clipPaths=e,this._displayList[this._displayListLen++]=g},addRoot:function(g){if(g.__storage===this)return;g instanceof L&&g.addChildrenToStorage(this),this.addToStorage(g),this._roots.push(g)},delRoot:function(g){if(g==null){for(var e=0;e<this._roots.length;e++){var m=this._roots[e];m instanceof L&&m.delChildrenFromStorage(this)}this._roots=[],this._displayList=[],this._displayListLen=0;return}if(g instanceof Array){for(var e=0,r=g.length;e<r;e++)this.delRoot(g[e]);return}var h=Z.indexOf(this._roots,g);h>=0&&(this.delFromStorage(g),this._roots.splice(h,1),g instanceof L&&g.delChildrenFromStorage(this))},addToStorage:function(g){return g&&(g.__storage=this,g.dirty(!1)),this},delFromStorage:function(g){return g&&(g.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:c};var M=u;ge.exports=M},r7jV:function(ge,q){ge.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAAXNSR0IArs4c6QAABb5JREFUSEudV3tsU2UU/52v3SszZrzVMaJOjUYJIZt9EEJEmbzVJY6gURFpywTG+phAQDOIIBC3tqMLsrYSkPjAmaCCqBiECNnaOkDEBBQhRh7DEYVMZGztvcfc9rbrulfH+eve851zft8593e+811CGmJpsWRI4dwZQlAJMxcTUMhAHjEYhOsAfgfjBBN9nfNP+KBnlqdzsLA0kMGLR14flpuRbQVhCRgjBwumrrcR03tZ18IbB9pAv8DmUNU8yJIHwOg0AXuaCbzl07nW9+fbC7i6ulpcmtm+gYCVAJLXIwCOksA+WRY/k5CuyiSIJBopwI8yeBoI08DIUsCIaK1X71yXFnA1V4vLwfbdAJ5POBC6iNnXJbrW79BtvTJQ9qZA5RhBtABE4loEdY2TXB2WFsdIibng/cedJ5J9e2RsDlo3gUnJNCpE+FWWudRvdJ++nXKX/2TLl27hFIBhIPL49M7lidjxB3PANh+Ej6I8jcnhcAeX7pjqVlg7dGGQOWCdAaL9sSzAglHaYHB9EXsFsKjJNlxocAaMUfFMuzLZsGPi7YEuDtnmyhKVUMYNB0dyjwEYr4JfzebIAx6Dpz0KbA7Y3gbwpppWmJkn3E55K85WZHX+rd3CgAVAnc/gslpabOM5ghCAbPUDrvYZnBup7JfqzLwb7a0AhkcXGPU+o6tiqLVdeLxilLZLuw+ATvVd6jO4tkYTC9prwWxX9W3ZIyLjyBSwPUvA56oywpDH+g11fw0FeGHIXqBlPgjGgwk/5pd8RveHynt5ky0/InCegMxYb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xvyLr1gjtQjAqAfSeuX1v5AwIdddz79ze+Ni6fjtgQOCeLHUUCSGXsIxiEArByIuuKz9tjHMk0CLL4ju/oVa5VQ4q/wMEN2Bw9sjQBgAAAABJRU5ErkJggg=="},rA99:function(ge,q,_){var Z=_("y+Vt"),U=_("QBsz"),L=_("Sj9i"),N=L.quadraticSubdivide,c=L.cubicSubdivide,u=L.quadraticAt,M=L.cubicAt,g=L.quadraticDerivativeAt,e=L.cubicDerivativeAt,m=[];function r(a,l,d){var y=a.cpx2,s=a.cpy2;return y===null||s===null?[(d?e:M)(a.x1,a.cpx1,a.cpx2,a.x2,l),(d?e:M)(a.y1,a.cpy1,a.cpy2,a.y2,l)]:[(d?g:u)(a.x1,a.cpx1,a.x2,l),(d?g:u)(a.y1,a.cpy1,a.y2,l)]}var h=Z.extend({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(a,l){var d=l.x1,y=l.y1,s=l.x2,p=l.y2,n=l.cpx1,i=l.cpy1,v=l.cpx2,C=l.cpy2,R=l.percent;if(R===0)return;a.moveTo(d,y),v==null||C==null?(R<1&&(N(d,n,s,R,m),n=m[1],s=m[2],N(y,i,p,R,m),i=m[1],p=m[2]),a.quadraticCurveTo(n,i,s,p)):(R<1&&(c(d,n,v,s,R,m),n=m[1],v=m[2],s=m[3],c(y,i,C,p,R,m),i=m[1],C=m[2],p=m[3]),a.bezierCurveTo(n,i,v,C,s,p))},pointAt:function(a){return r(this.shape,a,!1)},tangentAt:function(a){var l=r(this.shape,a,!0);return U.normalize(l,l)}});ge.exports=h},"rAM+":function(ge,q,_){"use strict";_.d(q,"a",function(){return U});var Z=_("Qw5x");function U(L,N){var c;if(typeof Symbol=="undefined"||L[Symbol.iterator]==null){if(Array.isArray(L)||(c=Object(Z.a)(L))||N&&L&&typeof L.length=="number"){c&&(L=c);var u=0,M=function(){};return{s:M,n:function(){return u>=L.length?{done:!0}:{done:!1,value:L[u++]}},e:function(h){throw h},f:M}}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 g=!0,e=!1,m;return{s:function(){c=L[Symbol.iterator]()},n:function(){var h=c.next();return g=h.done,h},e:function(h){e=!0,m=h},f:function(){try{!g&&c.return!=null&&c.return()}finally{if(e)throw m}}}}},rHrb:function(ge,q,_){"use strict";Object.defineProperty(q,"__esModule",{value:!0}),q.CopyToClipboard=void 0;var Z=L(_("q1tI")),U=L(_("+QRC"));function L(n){return n&&n.__esModule?n:{default:n}}function N(n){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?N=function(v){return typeof v}:N=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},N(n)}function c(n,i){var v=Object.keys(n);if(Object.getOwnPropertySymbols){var C=Object.getOwnPropertySymbols(n);i&&(C=C.filter(function(R){return Object.getOwnPropertyDescriptor(n,R).enumerable})),v.push.apply(v,C)}return v}function u(n){for(var i=1;i<arguments.length;i++){var v=arguments[i]!=null?arguments[i]:{};i%2?c(v,!0).forEach(function(C){s(n,C,v[C])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(v)):c(v).forEach(function(C){Object.defineProperty(n,C,Object.getOwnPropertyDescriptor(v,C))})}return n}function M(n,i){if(n==null)return{};var v=g(n,i),C,R;if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(n);for(R=0;R<w.length;R++){if(C=w[R],i.indexOf(C)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(n,C))continue;v[C]=n[C]}}return v}function g(n,i){if(n==null)return{};var v={},C=Object.keys(n),R,w;for(w=0;w<C.length;w++){if(R=C[w],i.indexOf(R)>=0)continue;v[R]=n[R]}return v}function e(n,i){if(!(n instanceof i))throw new TypeError("Cannot call a class as a function")}function m(n,i){for(var v=0;v<i.length;v++){var C=i[v];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(n,C.key,C)}}function r(n,i,v){return i&&m(n.prototype,i),v&&m(n,v),n}function h(n,i){return i&&(N(i)==="object"||typeof i=="function")?i:l(n)}function a(n){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(v){return v.__proto__||Object.getPrototypeOf(v)},a(n)}function l(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function d(n,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(i&&i.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),i&&y(n,i)}function y(n,i){return y=Object.setPrototypeOf||function(C,R){return C.__proto__=R,C},y(n,i)}function s(n,i,v){return i in n?Object.defineProperty(n,i,{value:v,enumerable:!0,configurable:!0,writable:!0}):n[i]=v,n}var p=function(n){d(i,n);function i(){var v,C;e(this,i);for(var R=arguments.length,w=new Array(R),x=0;x<R;x++)w[x]=arguments[x];return C=h(this,(v=a(i)).call.apply(v,[this].concat(w))),s(l(C),"onClick",function(A){var o=C.props,f=o.text,E=o.onCopy,O=o.children,S=o.options,b=Z.default.Children.only(O),D=(0,U.default)(f,S);E&&E(f,D),b&&b.props&&typeof b.props.onClick=="function"&&b.props.onClick(A)}),C}return r(i,[{key:"render",value:function(){var C=this.props,R=C.text,w=C.onCopy,x=C.options,A=C.children,o=M(C,["text","onCopy","options","children"]),f=Z.default.Children.only(A);return Z.default.cloneElement(f,u({},o,{onClick:this.onClick}))}}]),i}(Z.default.PureComponent);q.CopyToClipboard=p,s(p,"defaultProps",{onCopy:void 0,options:void 0})},rIHE:function(ge,q,_){ge.exports=_.p+"static/b3.dc7aa47b.svg"},rUJ1:function(ge,q){const _=/[&<>"']/,Z=/[&<>"']/g,U=/[<>"']|&(?!#?\w+;)/,L=/[<>"']|&(?!#?\w+;)/g,N={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},c=x=>N[x];function u(x,A){if(A){if(_.test(x))return x.replace(Z,c)}else if(U.test(x))return x.replace(L,c);return x}const M=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function g(x){return x.replace(M,(A,o)=>(o=o.toLowerCase(),o==="colon"?":":o.charAt(0)==="#"?o.charAt(1)==="x"?String.fromCharCode(parseInt(o.substring(2),16)):String.fromCharCode(+o.substring(1)):""))}const e=/(^|[^\[])\^/g;function m(x,A){x=x.source||x,A=A||"";const o={replace:(f,E)=>(E=E.source||E,E=E.replace(e,"$1"),x=x.replace(f,E),o),getRegex:()=>new RegExp(x,A)};return o}const r=/[^\w:]/g,h=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function a(x,A,o){if(x){let f;try{f=decodeURIComponent(g(o)).replace(r,"").toLowerCase()}catch(E){return null}if(f.indexOf("javascript:")===0||f.indexOf("vbscript:")===0||f.indexOf("data:")===0)return null}A&&!h.test(o)&&(o=p(A,o));try{o=encodeURI(o).replace(/%25/g,"%")}catch(f){return null}return o}const l={},d=/^[^:]+:\/*[^/]*$/,y=/^([^:]+:)[\s\S]*$/,s=/^([^:]+:\/*[^/]*)[\s\S]*$/;function p(x,A){l[" "+x]||(d.test(x)?l[" "+x]=x+"/":l[" "+x]=C(x,"/",!0)),x=l[" "+x];const o=x.indexOf(":")===-1;return A.substring(0,2)==="//"?o?A:x.replace(y,"$1")+A:A.charAt(0)==="/"?o?A:x.replace(s,"$1")+A:x+A}const n={exec:function(){}};function i(x){let A=1,o,f;for(;A<arguments.length;A++){o=arguments[A];for(f in o)Object.prototype.hasOwnProperty.call(o,f)&&(x[f]=o[f])}return x}function v(x,A){const o=x.replace(/\|/g,(O,S,b)=>{let D=!1,P=S;for(;--P>=0&&b[P]==="\\";)D=!D;return D?"|":" |"}),f=o.split(/ \|/);let E=0;if(f.length>A)f.splice(A);else for(;f.length<A;)f.push("");for(;E<f.length;E++)f[E]=f[E].trim().replace(/\\\|/g,"|");return f}function C(x,A,o){const f=x.length;if(f===0)return"";let E=0;for(;E<f;){const O=x.charAt(f-E-1);if(O===A&&!o)E++;else if(O!==A&&o)E++;else break}return x.substr(0,f-E)}function R(x,A){if(x.indexOf(A[1])===-1)return-1;const o=x.length;let f=0,E=0;for(;E<o;E++)if(x[E]==="\\")E++;else if(x[E]===A[0])f++;else if(x[E]===A[1]&&(f--,f<0))return E;return-1}function w(x){x&&x.sanitize&&!x.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")}ge.exports={escape:u,unescape:g,edit:m,cleanUrl:a,resolveUrl:p,noopTest:n,merge:i,splitCells:v,rtrim:C,findClosingBracket:R,checkSanitizeDeprecation:w}},rmlV:function(ge,q,_){var Z=_("y+Vt"),U=Z.extend({type:"ellipse",shape:{cx:0,cy:0,rx:0,ry:0},buildPath:function(L,N){var c=.5522848,u=N.cx,M=N.cy,g=N.rx,e=N.ry,m=g*c,r=e*c;L.moveTo(u-g,M),L.bezierCurveTo(u-g,M-r,u-m,M-e,u,M-e),L.bezierCurveTo(u+m,M-e,u+g,M-r,u+g,M),L.bezierCurveTo(u+g,M+r,u+m,M+e,u,M+e),L.bezierCurveTo(u-m,M+e,u-g,M+r,u-g,M),L.closePath()}});ge.exports=U},ruvs:function(ge,q,_){"use strict";_.d(q,"b",function(){return bt});var Z=_("2qtc"),U=_("kLXV"),L=_("14J3"),N=_("BMrR"),c=_("9og8"),u=_("rAM+"),M=_("tJVT"),g=_("PpiC"),e=_("k1fw"),m=_("5NDa"),r=_("5rEg"),h=_("B9cy"),a=_("Ol7k"),l=_("WmNS"),d=_.n(l),y=_("q1tI"),s=_.n(y),p=_("Ty5D"),n=_("55Ip"),i=_("9kvl"),v=_("xrsn"),C=_.n(v),R=_("1Sn+"),w=_("qVdP"),x=_("jsC+"),A=_("jCWc"),o=_("kPKH"),f=_("lUTK"),E=_("BvKs"),O=_("miYZ"),S=_("tsqr"),b=_("7Kak"),D=_("9yH6"),P=_("6CvP"),I=_("1vsH"),F;(function(ve){ve.Manager="manager",ve.Developer="developer",ve.Reporter="reporter"})(F||(F={}));var K=function(se){var le=se.visible,fe=se.onCancel,Re=fe===void 0?function(){}:fe,ce=Object(y.useState)(),he=Object(M.a)(ce,2),Se=he[0],we=he[1],Ze=Object(y.useState)(),Ye=Object(M.a)(Ze,2),it=Ye[0],Et=Ye[1],Pt=Object(y.useState)(!1),zt=Object(M.a)(Pt,2),Rt=zt[0],rt=zt[1],st=function(){var Ce=Object(c.a)(d.a.mark(function Be(){var dt,ut;return d.a.wrap(function(wt){for(;;)switch(wt.prev=wt.next){case 0:if(Se){wt.next=3;break}return S.b.info("\u8BF7\u8F93\u5165\u5F00\u53D1\u9879\u76EE\u9080\u8BF7\u7801\uFF01"),wt.abrupt("return");case 3:if(!(Se.length!==6)){wt.next=6;break}return S.b.info("\u8BF7\u8F93\u51656\u4F4D\u9879\u76EE\u9080\u8BF7\u7801\uFF01"),wt.abrupt("return");case 6:if(it){wt.next=9;break}return S.b.info("\u8BF7\u9009\u62E9\u4E00\u4E2A\u8EAB\u4EFD\uFF01"),wt.abrupt("return");case 9:return rt(!0),wt.next=12,Object(P.s)({code:Se,role:it});case 12:if(dt=wt.sent,rt(!1),qe(),ut={1:"\u60A8\u8F93\u5165\u7684\u9080\u8BF7\u7801\u9519\u8BEF",2:"\u60A8\u5DF2\u7ECF\u662F\u8BE5\u9879\u76EE\u6210\u5458",3:"\u8BF7\u9009\u62E9\u4E00\u4E2A\u89D2\u8272",4:"\u60A8\u7684\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u9879\u76EE\u7BA1\u7406\u5458\u5BA1\u6279",5:"\u60A8\u5DF2\u7ECF\u7533\u8BF7\u52A0\u5165\u8BE5\u9879\u76EE\u4E86\uFF0C\u8BF7\u8010\u5FC3\u7B49\u5F85",6:"\u60A8\u5DF2\u6210\u529F\u52A0\u5165\u9879\u76EE"},!ut[dt.status]){wt.next=19;break}return S.b.info(ut[dt.status]),wt.abrupt("return");case 19:if(!(dt.status===0)){wt.next=22;break}return it==="reporter"?(S.b.success("\u60A8\u52A0\u5165\u9879\u76EE\u6210\u529F\uFF01"),Object(I.db)(["\u5F00\u53D1\u9879\u76EE","\u52A0\u5165\u9879\u76EE\u6210\u529F"]),i.d.push("/projects/".concat(dt==null?void 0:dt.project_id))):(Object(I.db)(["\u5F00\u53D1\u9879\u76EE","\u52A0\u5165\u9879\u76EE\u7B49\u5F85\u5BA1\u6279"]),S.b.success("\u60A8\u7684\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u9879\u76EE\u7BA1\u7406\u5458\u5BA1\u6279\uFF01")),wt.abrupt("return");case 22:case"end":return wt.stop()}},Be)}));return function(){return Ce.apply(this,arguments)}}(),qe=function(){var Ce=Object(c.a)(d.a.mark(function Be(){return d.a.wrap(function(ut){for(;;)switch(ut.prev=ut.next){case 0:Re();case 1:case"end":return ut.stop()}},Be)}));return function(){return Ce.apply(this,arguments)}}();return s.a.createElement(s.a.Fragment,null,s.a.createElement(U.a,{centered:!0,keyboard:!1,closable:!1,title:"\u52A0\u5165\u9879\u76EE",visible:le,confirmLoading:Rt,onOk:st,onCancel:qe},s.a.createElement("div",{className:"tc"},s.a.createElement("div",null,s.a.createElement("span",null,"\u9879\u76EE\u9080\u8BF7\u7801\uFF1A"),s.a.createElement(r.a,{placeholder:"\u8BF7\u8F93\u51656\u4F4D\u5F00\u53D1\u9879\u76EE\u9080\u8BF7\u7801",style:{width:270},value:Se,onChange:function(Be){if(Be.target.value.length>=7){S.b.info("\u8BF7\u8F93\u51656\u4F4D\u5F00\u53D1\u9879\u76EE\u9080\u8BF7\u7801\uFF01");return}we(Be.target.value)}})),s.a.createElement("div",{className:"mt10 font14"},s.a.createElement("span",null,"\u8EAB\u4EFD\uFF1A"),s.a.createElement(D.a.Group,{value:it,onChange:function(Be){return Et(Be.target.value)}},s.a.createElement(D.a,{value:F.Manager},"\u7BA1\u7406\u4EBA\u5458"),s.a.createElement(D.a,{value:F.Developer},"\u5F00\u53D1\u4EBA\u5458"),s.a.createElement(D.a,{value:F.Reporter},"\u62A5\u544A\u4EBA\u5458"))))))},j=K,Y=_("Jky8"),W=_("6Fuo"),Q=_.n(W),ie=_("NLgs"),Ee=_("xKgJ"),pe;(function(ve){ve.Projects="projects",ve.Shixuns="shixuns",ve.Classrooms="classrooms"})(pe||(pe={}));var De;(function(ve){ve.Classrooms="classrooms",ve.Shixuns="shixuns",ve.Paths="paths",ve.Projects="projects",ve.Videos="videos",ve.Topics="topics"})(De||(De={}));var Me=function(se){var le,fe,Re,ce,he,Se,we,Ze=se.homePage,Ye=se.user,it=se.globalSetting,Et=se.loading,Pt=se.dispatch,zt=se.location,Rt=Object(g.a)(se,["homePage","user","globalSetting","loading","dispatch","location"]),rt=Object(y.useState)(),st=Object(M.a)(rt,2),qe=st[0],Ce=st[1],Be=Object(y.useState)(),dt=Object(M.a)(Be,2),ut=dt[0],It=dt[1],wt=function(V){var J;if(!Object(ie.e)(Pt))return;if(V===pe.Projects&&!((J=Ye.userInfo)!==null&&J!==void 0&&J.email)){S.b.info("\u8BF7\u5148\u7ED1\u5B9A\u90AE\u7BB1\uFF0C\u8C22\u8C22");return}V===pe.Classrooms?Ce(!0):V===pe.Projects&&It(!0)},gt=function(V,J){var te;if(!Object(ie.e)(Pt))return;if(J===pe.Projects&&!((te=Ye.userInfo)!==null&&te!==void 0&&te.email)){S.b.info("\u8BF7\u5148\u7ED1\u5B9A\u90AE\u7BB1\uFF0C\u8C22\u8C22");return}if(J===pe.Shixuns&&!Object(ie.c)())return;V&&(window.location.href=V)},Nt=(le=(((fe=it.setting)===null||fe===void 0?void 0:fe.navbar)||[]).find(function(ae){return ae.link==="/".concat(De.Classrooms)}))===null||le===void 0?void 0:le.hidden,Mt=(Re=(((ce=it.setting)===null||ce===void 0?void 0:ce.navbar)||[]).find(function(ae){return ae.link==="/".concat(De.Shixuns)}))===null||Re===void 0?void 0:Re.hidden,nt=(he=(((Se=it.setting)===null||Se===void 0?void 0:Se.navbar)||[]).find(function(ae){return ae.link==="/".concat(De.Paths)}))===null||he===void 0?void 0:he.hidden;if(it!=null&&(we=it.setting)!==null&&we!==void 0&&we.is_local){var xt;Ye!=null&&(xt=Ye.userInfo)!==null&&xt!==void 0&&xt.is_shixun_marker||(Mt=!0)}var ue=function(V){var J,te,re,be,Pe;return s.a.createElement(s.a.Fragment,null,s.a.createElement(N.a,{justify:"space-around",className:"pt5 pb5"},s.a.createElement(o.a,{className:Q.a.joinCol},!(it!=null&&it.setting.hide_course)&&((J=Ye.userInfo)===null||J===void 0?void 0:J.user_identity)!=="\u5B66\u751F"&&!Nt&&s.a.createElement(E.a.Item,V,s.a.createElement("a",{onClick:function(){return gt("/classrooms/new")}},(te=Ye.userInfo)!==null&&te!==void 0&&te.main_site?"\u65B0\u5EFA\u6559\u5B66\u8BFE\u5802":"\u65B0\u5EFA\u8BFE\u5802")),!(it!=null&&(re=it.setting)!==null&&re!==void 0&&re.hide_subject&&Object(Ee.m)())&&!(it!=null&&it.setting.hide_course)&&s.a.createElement(E.a.Item,V,s.a.createElement("a",{onClick:function(){return gt("/paths/new")}},"\u65B0\u5EFA\u5B9E\u9A8C\u9879\u76EE")),!(it!=null&&it.setting.hide_shixun&&Object(Ee.m)())&&!(it!=null&&it.setting.hide_course)&&s.a.createElement(E.a.Item,V,s.a.createElement("a",{onClick:function(){return gt("/shixuns/new",pe.Shixuns)}},"\u65B0\u5EFA\u5B9E\u8DF5\u5E73\u53F0")),!(it!=null&&(be=it.setting)!==null&&be!==void 0&&be.is_local)&&((Pe=Ye.userInfo)===null||Pe===void 0?void 0:Pe.main_site)&&s.a.createElement(E.a.Item,V,s.a.createElement("a",{onClick:function(){var ft,_t;return gt("".concat((ft=Ye.navigationInfo)===null||ft===void 0||((_t=ft.top)===null||_t===void 0)?void 0:_t.old_url,"/projects/deposit/new"),pe.Projects)}},"\u65B0\u5EFA\u5F00\u53D1\u9879\u76EE"))),s.a.createElement(o.a,null,s.a.createElement("div",{className:Q.a.joinBoard})),s.a.createElement(o.a,{className:Q.a.joinCol},s.a.createElement(E.a.Item,V,s.a.createElement("a",{onClick:function(){return wt(pe.Projects)}},"banner\u56FE\u7BA1\u7406")),s.a.createElement(E.a.Item,V,s.a.createElement("a",null,"\u9879\u76EE\u7C7B\u578B\u7BA1\u7406")),s.a.createElement(E.a.Item,V,s.a.createElement("a",null,"\u5DE5\u4F5C\u5355\u4F4D\u7BA1\u7406")),s.a.createElement(E.a.Item,V,s.a.createElement("a",null,"\u7814\u53D1\u673A\u6784\u7BA1\u7406")),s.a.createElement(E.a.Item,V,s.a.createElement("a",null,"\u5B9E\u9A8C\u5E73\u53F0\u7BA1\u7406")))))};return s.a.createElement("section",null,s.a.createElement(x.a,{overlay:s.a.createElement(E.a,{className:"".concat(Q.a.rightMenu," ").concat(Q.a.joinMenu," mt10")},s.a.createElement(ue,null)),placement:"bottomRight"},s.a.createElement("span",{style:{lineHeight:"inherit",color:"#666"},className:"iconfont icon-tianjiafangda c-white font18 current ml15 mr15"})),s.a.createElement(Y.a,{visible:qe,onCancel:function(){return Ce(!1)}}),s.a.createElement(j,{visible:ut,onCancel:function(){return It(!1)}}))},Ue=Object(i.a)(function(ve){var se=ve.homePage,le=ve.loading,fe=ve.user,Re=ve.globalSetting;return{homePage:se,user:fe,globalSetting:Re,loading:le.models.index}})(Me),Ie=_("vToQ"),ne=_.n(Ie),B=_("jb+D"),z=_("m3rI"),H=function(se){var le,fe=RegExp("(^| )"+se+"=([^;]+)(;|$)");return(le=document.cookie.match(fe))?decodeURIComponent(le[2]):null},ee=function(se){var le=new Date;le.setTime(le.getTime()-1);var fe=H(se);fe!=null&&(document.cookie=se+"="+fe+";expires="+le.toGMTString())},X;(function(ve){ve.Classrooms="classrooms",ve.Shixuns="shixuns",ve.Paths="paths",ve.Projects="projects",ve.Videos="videos",ve.Topics="topics"})(X||(X={}));var me=function(se){var le,fe,Re,ce,he,Se,we,Ze,Ye,it,Et,Pt=se.homePage,zt=se.user,Rt=se.globalSetting,rt=se.loading,st=se.dispatch,qe=se.shixunHomeworks,Ce=se.location,Be=se.payload,dt=Be===void 0?{}:Be,ut=Object(g.a)(se,["homePage","user","globalSetting","loading","dispatch","shixunHomeworks","location","payload"]),It=(le=(((fe=Rt.setting)===null||fe===void 0?void 0:fe.navbar)||[]).find(function(ue){return ue.link==="/".concat(X.Classrooms)}))===null||le===void 0?void 0:le.hidden,wt=(Re=(((ce=Rt.setting)===null||ce===void 0?void 0:ce.navbar)||[]).find(function(ue){return ue.link==="/".concat(X.Shixuns)}))===null||Re===void 0?void 0:Re.hidden,gt=(he=(((Se=Rt.setting)===null||Se===void 0?void 0:Se.navbar)||[]).find(function(ue){return ue.link==="/".concat(X.Paths)}))===null||he===void 0?void 0:he.hidden,Nt=((we=zt.userInfo)===null||we===void 0?void 0:we.admin)||((Ze=zt.userInfo)===null||Ze===void 0?void 0:Ze.business)||((Ye=zt.userInfo)===null||Ye===void 0?void 0:Ye.is_shixun_marker)||((it=zt.userInfo)===null||it===void 0?void 0:it.is_teacher)||((Et=zt.userInfo)===null||Et===void 0?void 0:Et.user_identity)!=="\u5B66\u751F",Mt=function(){return Object(I.r)()?s.a.createElement(E.a,{className:"".concat(ne.a.rightMenu," ").concat(ne.a.menuWrap)},s.a.createElement(E.a.Item,null,s.a.createElement(n.a,{to:"/account/profile"},"\u8D26\u53F7\u7BA1\u7406"))):s.a.createElement(E.a,{className:"".concat(ne.a.rightMenu," ").concat(ne.a.menuWrap)},s.a.createElement(E.a.Item,{className:ne.a.exit},s.a.createElement("a",{onClick:Object(c.a)(d.a.mark(function ae(){var V;return d.a.wrap(function(te){for(;;)switch(te.prev=te.next){case 0:return te.next=2,Object(B.c)({});case 2:V=te.sent,(V==null?void 0:V.status)===1&&(st({type:"user/getUserInfo",payload:Object(e.a)({},dt)}),st({type:"user/getNavigationInfo",payload:Object(e.a)({},dt)}),ee("autologin_trustie"),ee("_educoder_session"),localStorage.removeItem("isfirst"),localStorage.removeItem("SystemUpdateadvtime"),localStorage.removeItem("item"),localStorage.removeItem("iscreate"),S.b.success(V==null?void 0:V.message),i.d.replace("/"));case 4:case"end":return te.stop()}},ae)}))},"\u9000\u51FA")))};if(Object(Ee.p)()){var nt,xt;return s.a.createElement(x.a,{className:"".concat(ne.a.height67),overlay:Mt,placement:"bottomRight"},s.a.createElement("section",null,s.a.createElement("aside",null,s.a.createElement("div",{className:qe.actionTabs.type===1?ne.a.classromediv:""},s.a.createElement("img",{className:"".concat(ne.a.userPic," current ml15"),src:"".concat(z.a===null||z.a===void 0?void 0:z.a.IMG_SERVER,"/images/").concat((nt=zt.userInfo)===null||nt===void 0?void 0:nt.image_url),alt:""}),Object(I.r)()&&s.a.createElement("span",{className:"ml10 font16"},(xt=zt.userInfo)===null||xt===void 0?void 0:xt.username)))))}else return s.a.createElement("div",{style:{color:"#2958D4"},className:"font15 ".concat(Rt.isIlearning?ne.a.login:"")},s.a.createElement("span",{className:"ml10 mr5 current",onClick:function(){st({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}})}},"\u767B\u5F55"))},je=Object(i.a)(function(ve){var se=ve.homePage,le=ve.loading,fe=ve.user,Re=ve.globalSetting,ce=ve.shixunHomeworks;return{homePage:se,user:fe,globalSetting:Re,shixunHomeworks:ce,loading:le.models.index}})(me),Je=_("+L6B"),oe=_("2/Rp"),Ae=_("Cs+z"),ye=_.n(Ae),Le=["/","/classrooms","/account/profile","/account/profile/edit","/classrooms/new"],We=function(se){var le=se.homePage,fe=se.user,Re=se.globalSetting,ce=se.loading,he=se.dispatch,Se=se.location,we=se.text,Ze=se.shixunHomeworks,Ye=se.payload,it=Ye===void 0?{}:Ye,Et=Object(g.a)(se,["homePage","user","globalSetting","loading","dispatch","location","text","shixunHomeworks","payload"]),Pt=Object(y.useState)("none"),zt=Object(M.a)(Pt,2),Rt=zt[0],rt=zt[1];return Object(y.useEffect)(function(){Ze.actionTabs.key==="\u5E95\u90E8\u5F39\u7A97"&&rt("flex")},[Ze.actionTabs.key]),Object(y.useEffect)(function(){Ze.actionTabs.key==="\u9690\u85CF"&&(rt("none"),localStorage.setItem("Noviceguide","0"))},[Ze.actionTabs.key]),s.a.createElement("div",{style:{display:Rt,background:"#fff",width:"100%",height:"200px",position:"fixed",bottom:"0px",boxShadow:"0px -4px 6px 0px rgba(204, 204, 204, 0.2)",zIndex:"999"}},s.a.createElement("div",{style:{margin:"0 auto",width:"1200px"}},s.a.createElement("img",{src:ye.a,style:{position:"absolute",top:"-32px"}}),s.a.createElement("div",{style:{marginLeft:"151px",marginTop:"40px",fontSize:"18px",color:"#333333"}},Ze.actionTabs.text),Ze.actionTabs.type===9?s.a.createElement("div",{style:{display:"flex",justifyContent:"flex-end"}},s.a.createElement(oe.a,{type:"primary",onClick:function(){localStorage.setItem("Noviceguide","0"),rt("none"),he({type:"shixunHomeworks/setActionTabs",payload:{key:""}})},ghost:!0,style:{marginTop:"30px",width:"138px",height:"40px",position:"absolute",top:"124px"}},"\u5446\u4F1A\u89C1\uFF0C\u6709\u4E8B\u547C\u6211")):s.a.createElement("div",{style:{display:"flex",justifyContent:"flex-end"}},s.a.createElement(oe.a,{type:"primary",onClick:function(){localStorage.setItem("Noviceguide","0"),he({type:"shixunHomeworks/setActionTabs",payload:{key:""}}),rt("none")},ghost:!0,style:{marginTop:"30px",width:"138px",height:"40px",position:"absolute",top:"124px"}},"\u8DF3\u8FC7\uFF0C\u6211\u81EA\u5DF1\u6765"))))},Xe=Object(i.a)(function(ve){var se=ve.homePage,le=ve.loading,fe=ve.user,Re=ve.globalSetting,ce=ve.shixunHomeworks;return{homePage:se,user:fe,globalSetting:Re,loading:le.models.index,shixunHomeworks:ce}})(We),ct=_("vix7"),lt=_.n(ct),St=a.a.Header,Dt=r.a.Search;function bt(){var ve,se,le=window.location.pathname,fe=le.split("/"),Re={};return fe[1]=="classrooms"&&fe.length>3&&!((ve=fe[4])!==null&&ve!==void 0&&ve.includes("newgold"))&&!((se=fe[5])!==null&&se!==void 0&&se.includes("newgold"))&&fe[2]!=="coursesId"&&(Re.course_id=fe[2]),Object(e.a)(Object(e.a)({},Re),{school:1})}var ht=["/","/classrooms","/account/profile","/account/profile/edit","/classrooms/new"],Ut=function(se){var le,fe,Re,ce=se.homePage,he=se.user,Se=se.globalSetting,we=se.loading,Ze=se.dispatch,Ye=se.location,it=se.shixunHomeworks,Et=Object(g.a)(se,["homePage","user","globalSetting","loading","dispatch","location","shixunHomeworks"]),Pt=Object(p.g)(),zt=Object(y.useState)(!1),Rt=Object(M.a)(zt,2),rt=Rt[0],st=Rt[1],qe=Object(y.useState)(""),Ce=Object(M.a)(qe,2),Be=Ce[0],dt=Ce[1],ut=Object(y.useState)(!1),It=Object(M.a)(ut,2),wt=It[0],gt=It[1],Nt=bt(),Mt=Object(y.useRef)({id:0});Object(y.useEffect)(function(){Ze({type:"user/getNavigationInfo",payload:Object(e.a)({},Nt)})},[Se.name]),Object(y.useEffect)(function(){it.actionTabs.key==="\u5E95\u90E8\u5F39\u7A97"&&(ht!=null&&ht.includes(Ye==null?void 0:Ye.pathname)||(Ye==null?void 0:Ye.pathname.indexOf("/classrooms"))===0||Ze({type:"shixunHomeworks/setActionTabs",payload:{key:"\u9690\u85CF"}}))},[Ye.pathname]),Object(y.useEffect)(function(){it.actionTabs.key==="\u5E95\u90E8\u5F39\u7A97"||(it.actionTabs.key||localStorage.setItem("Noviceguide","0"))},[it.actionTabs.key]),Object(y.useEffect)(function(){if(Se!=null&&Se.setting){var Pe,He,ft=Se==null||((Pe=Se.setting)===null||Pe===void 0||((He=Pe.navbar)===null||He===void 0))?void 0:He.filter(function(tt){return!(tt!=null&&tt.hidden)&&!(Object(Ee.m)()&&tt.link==="/paperlibrary")}),_t=Object(u.a)(ft),Lt;try{for(_t.s();!(Lt=_t.n()).done;){var Vt=Lt.value;Vt.subitem&&(Vt.subitem=Vt.subitem.filter(function(tt){return!(tt!=null&&tt.hidden)&&!(Object(Ee.m)()&&tt.link==="/paperlibrary")}))}}catch(tt){_t.e(tt)}finally{_t.f()}var Ht=!1;ft==null||ft.map(function(tt,jt){var Gt,Qt,Tt,tn="/"+((Gt=Ye.pathname)===null||Gt===void 0||((Qt=Gt.split("/"))===null||Qt===void 0)?void 0:Qt[1]);if(tt.link===tn&&(dt(tt==null?void 0:tt.link),Object(I.X)(tt==null?void 0:tt.name),te(be(jt,{name:tt==null?void 0:tt.name,link:tt==null?void 0:tt.link},ft)),Ht=!0),tt!=null&&(Tt=tt.subitem)!==null&&Tt!==void 0&&Tt.length){var nn;tt==null||((nn=tt.subitem)===null||nn===void 0)||nn.map(function(Jt){Jt.link===tn&&(dt(Jt==null?void 0:Jt.link),Object(I.X)(Jt==null?void 0:Jt.name),te(be(jt,{name:Jt==null?void 0:Jt.name,link:Jt==null?void 0:Jt.link},ft)),Ht=!0)})}}),Ht||te(ft)}},[Se==null?void 0:Se.setting,he]);var nt=Object(y.useMemo)(function(){var Pe;if(Se!=null&&(Pe=Se.setting)!==null&&Pe!==void 0&&Pe.nav_logo_url){var He;return"".concat(z.a.IMG_SERVER,"/").concat(Se==null||((He=Se.setting)===null||He===void 0)?void 0:He.nav_logo_url)}else return"".concat(z.a.IMG_SERVER,"/images/avatars/LaboratorySetting/1nav?t=").concat(new Date().getTime())},[Se==null||((le=Se.setting)===null||le===void 0)?void 0:le.nav_logo_url]);function xt(Pe){Pt.push("/search?value="+Pe)}var ue=function(){return rt?s.a.createElement("div",{onBlur:function(){setTimeout(function(){st(!1)},300)}},s.a.createElement(Dt,{placeholder:"\u5B9E\u8DF5\u8BFE\u7A0B/\u6559\u5B66\u8BFE\u5802/\u5B9E\u8DF5\u9879\u76EE/\u4EA4\u6D41\u95EE\u7B54",className:"search-input mr20",onSearch:xt,autoFocus:!0})):s.a.createElement("span",{style:{color:"#666"},className:"iconfont icon-sousuo font18 current ml15 mr15",onClick:function(){Pt.push("/search?value=")}})},ae=Object(y.useState)([]),V=Object(M.a)(ae,2),J=V[0],te=V[1],re=function(){var Pe=Object(c.a)(d.a.mark(function He(ft,_t){var Lt,Vt,Ht,tt,jt,Gt,Qt,Tt;return d.a.wrap(function(nn){for(;;)switch(nn.prev=nn.next){case 0:if(!((ft==null?void 0:ft.name)==="\u5DE5\u7A0B\u8BA4\u8BC1")){nn.next=6;break}return nn.next=3,Object(B.j)();case 3:return Ht=nn.sent,Ht!=null&&(Vt=Ht.data)!==null&&Vt!==void 0&&Vt.engineer_url?Ht!=null&&(tt=Ht.data)!==null&&tt!==void 0&&(jt=tt.engineer_url)!==null&&jt!==void 0&&jt.includes("http")?Object(I.S)(Ht==null||((Gt=Ht.data)===null||Gt===void 0)?void 0:Gt.engineer_url):Pt.push(Ht==null||((Qt=Ht.data)===null||Qt===void 0)?void 0:Qt.engineer_url):(Ht==null?void 0:Ht.status)!=401&&(Se!=null&&(Tt=Se.setting)!==null&&Tt!==void 0&&Tt.authority_qrcode_url?gt(!0):gt(!1)),nn.abrupt("return");case 6:ft!=null&&(Lt=ft.link)!==null&&Lt!==void 0&&Lt.includes("http")?Object(I.S)(ft==null?void 0:ft.link):Pt.push(ft==null?void 0:ft.link),(ft==null?void 0:ft.name)==="\u6559\u5B66\u8BFE\u5802"&&localStorage.getItem("Noviceguide")!=="0"&&Ze({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:5,text:s.a.createElement("div",null,"\u975E\u5E38\u68D2\uFF0C\u54B1\u4EEC\u5DF2\u7ECF\u5230\u8FBE\u3010\u6559\u5B66\u8BFE\u5802\u3011\uFF0C\u5E73\u53F0\u4E0A\u5DF2\u7ECF\u6709\u51E0\u5343\u4F4D\u8001\u5E08\u521B\u5EFA\u4E86\u81EA\u5DF1\u7684\u6559\u5B66\u8BFE\u5802\uFF0C\u4F60\u4E5F\u53EF\u4EE5\u8F7B\u677E\u5B8C\u6210\u54DF\uFF01\u73B0\u5728\u8BF7\u60A8\u70B9\u51FB\u9875\u9762\u4E0A \u201C\u65B0\u5EFA\u8BFE\u5802\u201D\u6309\u94AE\u5F00\u59CB\u65B0\u5EFA\u81EA\u5DF1\u7684\u8BFE\u5802~")}});case 8:case"end":return nn.stop()}},He)}));return function(ft,_t){return Pe.apply(this,arguments)}}(),be=function(He,ft,_t){var Lt=_t.slice();return Lt[He]&&(Lt[He].name=ft.name,Lt[He].link=ft.link),Lt||[]};return s.a.createElement(a.a,{className:"".concat(Se.isIlearning?C.a["header-iearning"]:C.a.header,`
`).concat(Se.showHeaderFixed?C.a.headerFixed:"")},s.a.createElement(St,{className:"header"},s.a.createElement("section",{className:C.a["edu-menu"]},s.a.createElement(n.a,{to:"/",style:{display:"flex",alignItems:"center"},onClick:function(){Ze({type:"shixunHomeworks/setActionTabs",payload:{key:""}})}},s.a.createElement("img",{src:lt.a,className:C.a.logo,title:(fe=Se.setting)===null||fe===void 0?void 0:fe.name})),s.a.createElement(N.a,{style:{marginLeft:"auto"}},s.a.createElement("ul",{className:"".concat(C.a.menu)},Se.setting&&J.map(function(Pe,He){var ft,_t,Lt,Vt,Ht;return s.a.createElement("li",{key:He,className:!(Pe!=null&&(ft=Pe.subitem)!==null&&ft!==void 0&&ft.length)&&Be===(Pe==null?void 0:Pe.link)||Pe!=null&&(_t=Pe.subitem)!==null&&_t!==void 0&&_t.some(function(tt){return Be===(tt==null?void 0:tt.link)})?C.a.actived:""},s.a.createElement("div",{onClick:function(){return re(Pe,He)},className:it.actionTabs.type===4?"".concat(C.a.name," ").concat(C.a.classromediv):C.a.name},s.a.createElement("span",null,function(){var tt=Pe==null?void 0:Pe.name;{var jt;Pe==null||((jt=Pe.subitem)===null||jt===void 0)||jt.map(function(Gt,Qt){return Gt.link===Ye.pathname&&(tt=Gt.name),Gt})}return tt}()),(Pe==null||((Lt=Pe.subitem)===null||Lt===void 0)?void 0:Lt.length)>0&&s.a.createElement("i",{className:"iconfont icon-zhankai4"})),(Pe==null||((Vt=Pe.subitem)===null||Vt===void 0)?void 0:Vt.length)>0&&s.a.createElement("div",{className:C.a.dropDown},Pe==null||((Ht=Pe.subitem)===null||Ht===void 0)?void 0:Ht.map(function(tt,jt){return s.a.createElement("div",{className:C.a.subName,key:He+"-"+jt,onClick:function(){return re(tt,He)}},!!jt&&s.a.createElement("div",{className:C.a.line}),s.a.createElement("aside",{className:"font16 c-black",style:{whiteSpace:"nowrap"}}," ",tt.name," "),s.a.createElement("div",{className:"font14",style:{color:"#9FA7B3",whiteSpace:"nowrap"}}," ",tt.content," "))})))})),s.a.createElement("div",{className:"search-bar",style:{flex:Se.isIlearning?"initial":"1 0 auto"}},s.a.createElement(s.a.Fragment,null,s.a.createElement(ue,null),Object(Ee.p)()&&s.a.createElement(Ue,null)),s.a.createElement(je,{payload:Nt})))),s.a.createElement(U.a,{centered:!0,destroyOnClose:!0,visible:wt,title:"\u63D0\u793A",width:"500px",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){gt(!1)},onCancel:function(){return gt(!1)}},s.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},s.a.createElement("p",null,"\u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650"),s.a.createElement("img",{src:z.a.IMG_SERVER+(Se==null||((Re=Se.setting)===null||Re===void 0)?void 0:Re.authority_qrcode_url),width:200,height:200})))),s.a.createElement(Xe,null))},Ft=q.a=Object(i.a)(function(ve){var se=ve.homePage,le=ve.loading,fe=ve.user,Re=ve.globalSetting,ce=ve.shixunHomeworks;return{homePage:se,user:fe,globalSetting:Re,loading:le.models.index,shixunHomeworks:ce}})(Ut)},"sW+o":function(ge,q,_){var Z=_("SrGk"),U=_("bYtY"),L=_("SUKs"),N=_("Qe9p");function c(M,g){Z.call(this,M,g,["linearGradient","radialGradient"],"__gradient_in_use__")}U.inherits(c,Z),c.prototype.addWithoutUpdate=function(M,g){if(g&&g.style){var e=this;U.each(["fill","stroke"],function(m){if(g.style[m]&&(g.style[m].type==="linear"||g.style[m].type==="radial")){var r=g.style[m],h=e.getDefs(!0),a;r._dom?(a=r._dom,h.contains(r._dom)||e.addDom(a)):a=e.add(r),e.markUsed(g);var l=a.getAttribute("id");M.setAttribute(m,"url(#"+l+")")}})}},c.prototype.add=function(M){var g;if(M.type==="linear")g=this.createElement("linearGradient");else if(M.type==="radial")g=this.createElement("radialGradient");else return L("Illegal gradient type."),null;return M.id=M.id||this.nextId++,g.setAttribute("id","zr"+this._zrId+"-gradient-"+M.id),this.updateDom(M,g),this.addDom(g),g},c.prototype.update=function(M){var g=this;Z.prototype.update.call(this,M,function(){var e=M.type,m=M._dom.tagName;e==="linear"&&m==="linearGradient"||e==="radial"&&m==="radialGradient"?g.updateDom(M,M._dom):(g.removeDom(M),g.add(M))})},c.prototype.updateDom=function(M,g){if(M.type==="linear")g.setAttribute("x1",M.x),g.setAttribute("y1",M.y),g.setAttribute("x2",M.x2),g.setAttribute("y2",M.y2);else if(M.type==="radial")g.setAttribute("cx",M.x),g.setAttribute("cy",M.y),g.setAttribute("r",M.r);else{L("Illegal gradient type.");return}M.global?g.setAttribute("gradientUnits","userSpaceOnUse"):g.setAttribute("gradientUnits","objectBoundingBox"),g.innerHTML="";for(var e=M.colorStops,m=0,r=e.length;m<r;++m){var h=this.createElement("stop");h.setAttribute("offset",e[m].offset*100+"%");var a=e[m].color;if(a.indexOf("rgba">-1)){var l=N.parse(a)[3],d=N.toHex(a);h.setAttribute("stop-color","#"+d),h.setAttribute("stop-opacity",l)}else h.setAttribute("stop-color",e[m].color);g.appendChild(h)}M._dom=g},c.prototype.markUsed=function(M){if(M.style){var g=M.style.fill;g&&g._dom&&Z.prototype.markUsed.call(this,g._dom),g=M.style.stroke,g&&g._dom&&Z.prototype.markUsed.call(this,g._dom)}};var u=c;ge.exports=u},siWv:function(ge,q,_){ge.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","mediacy-round":"mediacy-round___3vc8E","mediacy-default":"mediacy-default___2zIGi",default:"default___20Yio"}},t23M:function(ge,q,_){"use strict";var Z=_("VTBJ"),U=_("1OyB"),L=_("vuIU"),N=_("Ji7U"),c=_("LK+K"),u=_("q1tI"),M=_.n(u),g=_("m+aA"),e=_("Zm9Q"),m=_("Kwbf"),r=_("c+Xe"),h=_("bdgK"),a="rc-observer-key",l=function(d){Object(N.a)(s,d);var y=Object(c.a)(s);function s(){var p;return Object(U.a)(this,s),p=y.apply(this,arguments),p.resizeObserver=null,p.childNode=null,p.currentElement=null,p.state={width:0,height:0,offsetHeight:0,offsetWidth:0},p.onResize=function(n){var i=p.props.onResize,v=n[0].target,C=v.getBoundingClientRect(),R=C.width,w=C.height,x=v.offsetWidth,A=v.offsetHeight,o=Math.floor(R),f=Math.floor(w);if(p.state.width!==o||p.state.height!==f||p.state.offsetWidth!==x||p.state.offsetHeight!==A){var E={width:o,height:f,offsetWidth:x,offsetHeight:A};p.setState(E),i&&Promise.resolve().then(function(){i(Object(Z.a)(Object(Z.a)({},E),{},{offsetWidth:x,offsetHeight:A}))})}},p.setChildNode=function(n){p.childNode=n},p}return Object(L.a)(s,[{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 i=Object(g.a)(this.childNode||this),v=i!==this.currentElement;v&&(this.destroyObserver(),this.currentElement=i),!this.resizeObserver&&i&&(this.resizeObserver=new h.default(this.onResize),this.resizeObserver.observe(i))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var n=this.props.children,i=Object(e.a)(n);if(i.length>1)Object(m.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(i.length===0)return Object(m.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var v=i[0];if(u.isValidElement(v)&&Object(r.c)(v)){var C=v.ref;i[0]=u.cloneElement(v,{ref:Object(r.a)(C,this.setChildNode)})}return i.length===1?i[0]:i.map(function(R,w){return!u.isValidElement(R)||"key"in R&&R.key!==null?R:u.cloneElement(R,{key:"".concat(a,"-").concat(w)})})}}]),s}(u.Component);l.displayName="ResizeObserver",q.a=l},t9D7:function(ge,q,_){"use strict";_.d(q,"b",function(){return M}),_.d(q,"g",function(){return e}),_.d(q,"d",function(){return m}),_.d(q,"e",function(){return r}),_.d(q,"a",function(){return h}),_.d(q,"f",function(){return d}),_.d(q,"c",function(){return y});var Z=_("Vhoy"),U=_("MI8n"),L=_("pmY6"),N=_("Cg/j"),c=_("ic2d"),u=_("nEHx");const M=Object(N.c)("themeService");var g;(function(s){function p(n){return n&&typeof n=="object"&&typeof n.id=="string"}s.isThemeColor=p})(g||(g={}));function e(s){return{id:s}}var m;(function(s){function p(w){return w&&typeof w=="object"&&typeof w.id=="string"&&(typeof w.color=="undefined"||g.isThemeColor(w.color))}s.isThemeIcon=p;const n=new RegExp(`^\\$\\((${Z.a.iconNameExpression}(?:${Z.a.iconModifierExpression})?)\\)$`);function i(w){const x=n.exec(w);if(!x)return;let[,A]=x;return{id:A}}s.fromString=i;function v(w,x){let A=w.id;const o=A.lastIndexOf("~");return o!==-1&&(A=A.substring(0,o)),x&&(A=`${A}~${x}`),{id:A}}s.modify=v;function C(w,x){var A,o;return w.id===x.id&&((A=w.color)===null||A===void 0?void 0:A.id)===((o=x.color)===null||o===void 0?void 0:o.id)}s.isEqual=C;function R(w,x){return{id:w.id,color:x?e(x):void 0}}s.asThemeIcon=R,s.asClassNameArray=Z.a.asClassNameArray,s.asClassName=Z.a.asClassName,s.asCSSSelector=Z.a.asCSSSelector})(m||(m={}));function r(s){switch(s){case u.a.DARK:return"vs-dark";case u.a.HIGH_CONTRAST:return"hc-black";default:return"vs"}}const h={ThemingContribution:"base.contributions.theming"};class a{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new U.b}onColorThemeChange(s){return this.themingParticipants.push(s),this.onThemingParticipantAddedEmitter.fire(s),Object(L.i)(()=>{const p=this.themingParticipants.indexOf(s);this.themingParticipants.splice(p,1)})}getThemingParticipants(){return this.themingParticipants}}let l=new a;c.a.add(h.ThemingContribution,l);function d(s){return l.onColorThemeChange(s)}class y extends L.a{constructor(s){super();this.themeService=s,this.theme=s.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(p=>this.onThemeChange(p)))}onThemeChange(s){this.theme=s,this.updateStyles()}updateStyles(){}}},tWlo:function(ge,q){ge.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1s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7gc0IkHwpMD+JnpbnZGdCXk4WPJSUKFlHzj0bGTrtGqhZNjJqgQHzIHRjWMbzhd7/MqLaZxqzxfjVFU+UjhcZCs+gp7f9nowcszMhfg17SoptSKDyym9N9cbePt8O2GrQ5pbrDRMTkwbe6MQpN6hfFRUVWa+Qb+7je23ideLAtPdGZ/cUZpw1iTsTFtFLJcBwEc2RIryHqELvW2q/qQPT4JA4AmupL5aP/Saza8A0eDU2Jvr0DrWaNkEe3L32kULmhXV+cHHR8cOvV5tcDd9f8qvm9ouAW2Zm5yhpm5uwWi9HRoRXq1UqC9zt08cDe391VUiJPyaPo+F1zddaZy80XFyLRv52v2ViPrehiJSvz6Z7rthQpZI+t6E+K91yuj+3UXnkL+7PbYxCFdiIKfgYdTcohHZ23QTnEntd8Y8AAwCTubpzlq2wWAAAAABJRU5ErkJggg=="},thk6:function(ge,q,_){"use strict";_.r(q);function Z(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function U(t,T){t===void 0&&(t={}),T===void 0&&(T={}),Object.keys(T).forEach(function(k){typeof t[k]=="undefined"?t[k]=T[k]:Z(T[k])&&Z(t[k])&&Object.keys(T[k]).length>0&&U(t[k],T[k])})}var L=typeof document!="undefined"?document:{},N={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};U(L,N);var c=typeof window!="undefined"?window:{},u={document:N,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}}};U(c,u);class M{constructor(t){const T=this;for(let k=0;k<t.length;k+=1)T[k]=t[k];return T.length=t.length,this}}function g(t,T){const k=[];let G=0;if(t&&!T&&t instanceof M)return t;if(t){if(typeof t=="string"){let $,de;const xe=t.trim();if(xe.indexOf("<")>=0&&xe.indexOf(">")>=0){let Oe="div";for(xe.indexOf("<li")===0&&(Oe="ul"),xe.indexOf("<tr")===0&&(Oe="tbody"),(xe.indexOf("<td")===0||xe.indexOf("<th")===0)&&(Oe="tr"),xe.indexOf("<tbody")===0&&(Oe="table"),xe.indexOf("<option")===0&&(Oe="select"),de=L.createElement(Oe),de.innerHTML=xe,G=0;G<de.childNodes.length;G+=1)k.push(de.childNodes[G])}else for(!T&&t[0]==="#"&&!t.match(/[ .<>:~]/)?$=[L.getElementById(t.trim().split("#")[1])]:$=(T||L).querySelectorAll(t.trim()),G=0;G<$.length;G+=1)$[G]&&k.push($[G])}else if(t.nodeType||t===c||t===L)k.push(t);else if(t.length>0&&t[0].nodeType)for(G=0;G<t.length;G+=1)k.push(t[G])}return new M(k)}g.fn=M.prototype,g.Class=M,g.Dom7=M;function e(t){const T=[];for(let k=0;k<t.length;k+=1)T.indexOf(t[k])===-1&&T.push(t[k]);return T}function m(t){return t.toLowerCase().replace(/-(.)/g,(T,k)=>k.toUpperCase())}function r(t){return c.requestAnimationFrame?c.requestAnimationFrame(t):c.webkitRequestAnimationFrame?c.webkitRequestAnimationFrame(t):c.setTimeout(t,1e3/60)}function h(t){return c.cancelAnimationFrame?c.cancelAnimationFrame(t):c.webkitCancelAnimationFrame?c.webkitCancelAnimationFrame(t):c.clearTimeout(t)}function a(t){if(typeof t=="undefined")return this;const T=t.split(" ");for(let k=0;k<T.length;k+=1)for(let G=0;G<this.length;G+=1)typeof this[G]!="undefined"&&typeof this[G].classList!="undefined"&&this[G].classList.add(T[k]);return this}function l(t){const T=t.split(" ");for(let k=0;k<T.length;k+=1)for(let G=0;G<this.length;G+=1)typeof this[G]!="undefined"&&typeof this[G].classList!="undefined"&&this[G].classList.remove(T[k]);return this}function d(t){return this[0]?this[0].classList.contains(t):!1}function y(t){const T=t.split(" ");for(let k=0;k<T.length;k+=1)for(let G=0;G<this.length;G+=1)typeof this[G]!="undefined"&&typeof this[G].classList!="undefined"&&this[G].classList.toggle(T[k]);return this}function s(t,T){if(arguments.length===1&&typeof t=="string")return this[0]?this[0].getAttribute(t):void 0;for(let k=0;k<this.length;k+=1)if(arguments.length===2)this[k].setAttribute(t,T);else for(const G in t)this[k][G]=t[G],this[k].setAttribute(G,t[G]);return this}function p(t){for(let T=0;T<this.length;T+=1)this[T].removeAttribute(t);return this}function n(t,T){if(arguments.length===1&&typeof t=="string"){if(this[0])return this[0][t]}else{for(let k=0;k<this.length;k+=1)if(arguments.length===2)this[k][t]=T;else for(const G in t)this[k][G]=t[G];return this}}function i(t,T){let k;if(typeof T=="undefined"){if(k=this[0],k){if(k.dom7ElementDataStorage&&t in k.dom7ElementDataStorage)return k.dom7ElementDataStorage[t];const G=k.getAttribute(`data-${t}`);return G||void 0}return}for(let G=0;G<this.length;G+=1)k=this[G],k.dom7ElementDataStorage||(k.dom7ElementDataStorage={}),k.dom7ElementDataStorage[t]=T;return this}function v(t){for(let T=0;T<this.length;T+=1){const k=this[T];k.dom7ElementDataStorage&&k.dom7ElementDataStorage[t]&&(k.dom7ElementDataStorage[t]=null,delete k.dom7ElementDataStorage[t])}}function C(){const t=this[0];if(!t)return;const T={};if(t.dataset)for(const k in t.dataset)T[k]=t.dataset[k];else for(let k=0;k<t.attributes.length;k+=1){const G=t.attributes[k];G.name.indexOf("data-")>=0&&(T[m(G.name.split("data-")[1])]=G.value)}for(const k in T)T[k]==="false"?T[k]=!1:T[k]==="true"?T[k]=!0:parseFloat(T[k])===T[k]*1&&(T[k]*=1);return T}function R(t){const T=this;if(typeof t=="undefined"){if(T[0]){if(T[0].multiple&&T[0].nodeName.toLowerCase()==="select"){const k=[];for(let G=0;G<T[0].selectedOptions.length;G+=1)k.push(T[0].selectedOptions[G].value);return k}return T[0].value}return}for(let k=0;k<T.length;k+=1){const G=T[k];if(Array.isArray(t)&&G.multiple&&G.nodeName.toLowerCase()==="select")for(let $=0;$<G.options.length;$+=1)G.options[$].selected=t.indexOf(G.options[$].value)>=0;else G.value=t}return T}function w(t){for(let T=0;T<this.length;T+=1){const k=this[T].style;k.webkitTransform=t,k.transform=t}return this}function x(t){typeof t!="string"&&(t=`${t}ms`);for(let T=0;T<this.length;T+=1){const k=this[T].style;k.webkitTransitionDuration=t,k.transitionDuration=t}return this}function A(...t){let[T,k,G,$]=t;typeof t[1]=="function"&&([T,G,$]=t,k=void 0),$||($=!1);function de(Fe){const Qe=Fe.target;if(!Qe)return;const yt=Fe.target.dom7EventData||[];if(yt.indexOf(Fe)<0&&yt.unshift(Fe),g(Qe).is(k))G.apply(Qe,yt);else{const mt=g(Qe).parents();for(let Ct=0;Ct<mt.length;Ct+=1)g(mt[Ct]).is(k)&&G.apply(mt[Ct],yt)}}function xe(Fe){const Qe=Fe&&Fe.target?Fe.target.dom7EventData||[]:[];Qe.indexOf(Fe)<0&&Qe.unshift(Fe),G.apply(this,Qe)}const Oe=T.split(" ");let ke;for(let Fe=0;Fe<this.length;Fe+=1){const Qe=this[Fe];if(k)for(ke=0;ke<Oe.length;ke+=1){const yt=Oe[ke];Qe.dom7LiveListeners||(Qe.dom7LiveListeners={}),Qe.dom7LiveListeners[yt]||(Qe.dom7LiveListeners[yt]=[]),Qe.dom7LiveListeners[yt].push({listener:G,proxyListener:de}),Qe.addEventListener(yt,de,$)}else for(ke=0;ke<Oe.length;ke+=1){const yt=Oe[ke];Qe.dom7Listeners||(Qe.dom7Listeners={}),Qe.dom7Listeners[yt]||(Qe.dom7Listeners[yt]=[]),Qe.dom7Listeners[yt].push({listener:G,proxyListener:xe}),Qe.addEventListener(yt,xe,$)}}return this}function o(...t){let[T,k,G,$]=t;typeof t[1]=="function"&&([T,G,$]=t,k=void 0),$||($=!1);const de=T.split(" ");for(let xe=0;xe<de.length;xe+=1){const Oe=de[xe];for(let ke=0;ke<this.length;ke+=1){const Fe=this[ke];let Qe;if(!k&&Fe.dom7Listeners?Qe=Fe.dom7Listeners[Oe]:k&&Fe.dom7LiveListeners&&(Qe=Fe.dom7LiveListeners[Oe]),Qe&&Qe.length)for(let yt=Qe.length-1;yt>=0;yt-=1){const mt=Qe[yt];G&&mt.listener===G||G&&mt.listener&&mt.listener.dom7proxy&&mt.listener.dom7proxy===G?(Fe.removeEventListener(Oe,mt.proxyListener,$),Qe.splice(yt,1)):G||(Fe.removeEventListener(Oe,mt.proxyListener,$),Qe.splice(yt,1))}}}return this}function f(...t){const T=this;let[k,G,$,de]=t;typeof t[1]=="function"&&([k,$,de]=t,G=void 0);function xe(...Oe){$.apply(this,Oe),T.off(k,G,xe,de),xe.dom7proxy&&delete xe.dom7proxy}return xe.dom7proxy=$,T.on(k,G,xe,de)}function E(...t){const T=t[0].split(" "),k=t[1];for(let G=0;G<T.length;G+=1){const $=T[G];for(let de=0;de<this.length;de+=1){const xe=this[de];let Oe;try{Oe=new c.CustomEvent($,{detail:k,bubbles:!0,cancelable:!0})}catch(ke){Oe=L.createEvent("Event"),Oe.initEvent($,!0,!0),Oe.detail=k}xe.dom7EventData=t.filter((ke,Fe)=>Fe>0),xe.dispatchEvent(Oe),xe.dom7EventData=[],delete xe.dom7EventData}}return this}function O(t){const T=["webkitTransitionEnd","transitionend"],k=this;let G;function $(de){if(de.target!==this)return;for(t.call(this,de),G=0;G<T.length;G+=1)k.off(T[G],$)}if(t)for(G=0;G<T.length;G+=1)k.on(T[G],$);return this}function S(t){const T=["webkitAnimationEnd","animationend"],k=this;let G;function $(de){if(de.target!==this)return;for(t.call(this,de),G=0;G<T.length;G+=1)k.off(T[G],$)}if(t)for(G=0;G<T.length;G+=1)k.on(T[G],$);return this}function b(){return this[0]===c?c.innerWidth:this.length>0?parseFloat(this.css("width")):null}function D(t){if(this.length>0){if(t){const T=this.styles();return this[0].offsetWidth+parseFloat(T.getPropertyValue("margin-right"))+parseFloat(T.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null}function P(){return this[0]===c?c.innerHeight:this.length>0?parseFloat(this.css("height")):null}function I(t){if(this.length>0){if(t){const T=this.styles();return this[0].offsetHeight+parseFloat(T.getPropertyValue("margin-top"))+parseFloat(T.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null}function F(){if(this.length>0){const t=this[0],T=t.getBoundingClientRect(),k=L.body,G=t.clientTop||k.clientTop||0,$=t.clientLeft||k.clientLeft||0,de=t===c?c.scrollY:t.scrollTop,xe=t===c?c.scrollX:t.scrollLeft;return{top:T.top+de-G,left:T.left+xe-$}}return null}function K(){for(let t=0;t<this.length;t+=1)this[t].style.display="none";return this}function j(){for(let t=0;t<this.length;t+=1){const T=this[t];T.style.display==="none"&&(T.style.display=""),c.getComputedStyle(T,null).getPropertyValue("display")==="none"&&(T.style.display="block")}return this}function Y(){return this[0]?c.getComputedStyle(this[0],null):{}}function W(t,T){let k;if(arguments.length===1)if(typeof t=="string"){if(this[0])return c.getComputedStyle(this[0],null).getPropertyValue(t)}else{for(k=0;k<this.length;k+=1)for(let G in t)this[k].style[G]=t[G];return this}if(arguments.length===2&&typeof t=="string"){for(k=0;k<this.length;k+=1)this[k].style[t]=T;return this}return this}function Q(){const t=[];for(let T=0;T<this.length;T+=1)t.push(this[T]);return t}function ie(t){if(!t)return this;for(let T=0;T<this.length;T+=1)if(t.call(this[T],T,this[T])===!1)return this;return this}function Ee(t){if(!t)return this;for(let T=0;T<this.length;T+=1)if(t.call(this[T],this[T],T)===!1)return this;return this}function pe(t){const T=[],k=this;for(let G=0;G<k.length;G+=1)t.call(k[G],G,k[G])&&T.push(k[G]);return new M(T)}function De(t){const T=[],k=this;for(let G=0;G<k.length;G+=1)T.push(t.call(k[G],G,k[G]));return new M(T)}function Me(t){if(typeof t=="undefined")return this[0]?this[0].innerHTML:void 0;for(let T=0;T<this.length;T+=1)this[T].innerHTML=t;return this}function Ue(t){if(typeof t=="undefined")return this[0]?this[0].textContent.trim():null;for(let T=0;T<this.length;T+=1)this[T].textContent=t;return this}function Ie(t){const T=this[0];let k,G;if(!T||typeof t=="undefined")return!1;if(typeof t=="string"){if(T.matches)return T.matches(t);if(T.webkitMatchesSelector)return T.webkitMatchesSelector(t);if(T.msMatchesSelector)return T.msMatchesSelector(t);for(k=g(t),G=0;G<k.length;G+=1)if(k[G]===T)return!0;return!1}else{if(t===L)return T===L;if(t===c)return T===c}if(t.nodeType||t instanceof M){for(k=t.nodeType?[t]:t,G=0;G<k.length;G+=1)if(k[G]===T)return!0;return!1}return!1}function ne(t){for(let T=0;T<this.length;T+=1)if(this[T]===t)return T;return-1}function B(){let t=this[0],T;if(t){for(T=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(T+=1);return T}return}function z(t){if(typeof t=="undefined")return this;const T=this.length;let k;return t>T-1?new M([]):t<0?(k=T+t,k<0?new M([]):new M([this[k]])):new M([this[t]])}function H(...t){let T;for(let k=0;k<t.length;k+=1){T=t[k];for(let G=0;G<this.length;G+=1)if(typeof T=="string"){const $=L.createElement("div");for($.innerHTML=T;$.firstChild;)this[G].appendChild($.firstChild)}else if(T instanceof M)for(let $=0;$<T.length;$+=1)this[G].appendChild(T[$]);else this[G].appendChild(T)}return this}function ee(t){return g(t).append(this),this}function X(t){let T,k;for(T=0;T<this.length;T+=1)if(typeof t=="string"){const G=L.createElement("div");for(G.innerHTML=t,k=G.childNodes.length-1;k>=0;k-=1)this[T].insertBefore(G.childNodes[k],this[T].childNodes[0])}else if(t instanceof M)for(k=0;k<t.length;k+=1)this[T].insertBefore(t[k],this[T].childNodes[0]);else this[T].insertBefore(t,this[T].childNodes[0]);return this}function me(t){return g(t).prepend(this),this}function je(t){const T=g(t);for(let k=0;k<this.length;k+=1)if(T.length===1)T[0].parentNode.insertBefore(this[k],T[0]);else if(T.length>1)for(let G=0;G<T.length;G+=1)T[G].parentNode.insertBefore(this[k].cloneNode(!0),T[G])}function Je(t){const T=g(t);for(let k=0;k<this.length;k+=1)if(T.length===1)T[0].parentNode.insertBefore(this[k],T[0].nextSibling);else if(T.length>1)for(let G=0;G<T.length;G+=1)T[G].parentNode.insertBefore(this[k].cloneNode(!0),T[G].nextSibling)}function oe(t){return this.length>0?t?this[0].nextElementSibling&&g(this[0].nextElementSibling).is(t)?new M([this[0].nextElementSibling]):new M([]):this[0].nextElementSibling?new M([this[0].nextElementSibling]):new M([]):new M([])}function Ae(t){const T=[];let k=this[0];if(!k)return new M([]);for(;k.nextElementSibling;){const G=k.nextElementSibling;t?g(G).is(t)&&T.push(G):T.push(G),k=G}return new M(T)}function ye(t){if(this.length>0){const T=this[0];return t?T.previousElementSibling&&g(T.previousElementSibling).is(t)?new M([T.previousElementSibling]):new M([]):T.previousElementSibling?new M([T.previousElementSibling]):new M([])}return new M([])}function Le(t){const T=[];let k=this[0];if(!k)return new M([]);for(;k.previousElementSibling;){const G=k.previousElementSibling;t?g(G).is(t)&&T.push(G):T.push(G),k=G}return new M(T)}function We(t){return this.nextAll(t).add(this.prevAll(t))}function Xe(t){const T=[];for(let k=0;k<this.length;k+=1)this[k].parentNode!==null&&(t?g(this[k].parentNode).is(t)&&T.push(this[k].parentNode):T.push(this[k].parentNode));return g(e(T))}function ct(t){const T=[];for(let k=0;k<this.length;k+=1){let G=this[k].parentNode;for(;G;)t?g(G).is(t)&&T.push(G):T.push(G),G=G.parentNode}return g(e(T))}function lt(t){let T=this;return typeof t=="undefined"?new M([]):(T.is(t)||(T=T.parents(t).eq(0)),T)}function St(t){const T=[];for(let k=0;k<this.length;k+=1){const G=this[k].querySelectorAll(t);for(let $=0;$<G.length;$+=1)T.push(G[$])}return new M(T)}function Dt(t){const T=[];for(let k=0;k<this.length;k+=1){const G=this[k].childNodes;for(let $=0;$<G.length;$+=1)t?G[$].nodeType===1&&g(G[$]).is(t)&&T.push(G[$]):G[$].nodeType===1&&T.push(G[$])}return new M(e(T))}function bt(){for(let t=0;t<this.length;t+=1)this[t].parentNode&&this[t].parentNode.removeChild(this[t]);return this}function ht(){return this.remove()}function Ut(...t){const T=this;let k,G;for(k=0;k<t.length;k+=1){const $=g(t[k]);for(G=0;G<$.length;G+=1)T[T.length]=$[G],T.length+=1}return T}function Ft(){for(let t=0;t<this.length;t+=1){const T=this[t];if(T.nodeType===1){for(let k=0;k<T.childNodes.length;k+=1)T.childNodes[k].parentNode&&T.childNodes[k].parentNode.removeChild(T.childNodes[k]);T.textContent=""}}return this}function ve(...t){let[T,k,G,$,de]=t;return t.length===4&&typeof $=="function"&&(de=$,[T,k,G,de,$]=t),typeof $=="undefined"&&($="swing"),this.each(function(){const Oe=this;let ke,Fe,Qe,yt,mt,Ct,At,kt,Kt=k>0||k===0,vt=T>0||T===0;if(typeof $=="undefined"&&($="swing"),Kt&&(ke=Oe.scrollTop,G||(Oe.scrollTop=k)),vt&&(Fe=Oe.scrollLeft,G||(Oe.scrollLeft=T)),!G)return;Kt&&(Qe=Oe.scrollHeight-Oe.offsetHeight,mt=Math.max(Math.min(k,Qe),0)),vt&&(yt=Oe.scrollWidth-Oe.offsetWidth,Ct=Math.max(Math.min(T,yt),0));let Wt=null;Kt&&mt===ke&&(Kt=!1),vt&&Ct===Fe&&(vt=!1);function Xt(rn=new Date().getTime()){Wt===null&&(Wt=rn);const sn=Math.max(Math.min((rn-Wt)/G,1),0),on=$==="linear"?sn:.5-Math.cos(sn*Math.PI)/2;let en;if(Kt&&(At=ke+on*(mt-ke)),vt&&(kt=Fe+on*(Ct-Fe)),Kt&&mt>ke&&At>=mt&&(Oe.scrollTop=mt,en=!0),Kt&&mt<ke&&At<=mt&&(Oe.scrollTop=mt,en=!0),vt&&Ct>Fe&&kt>=Ct&&(Oe.scrollLeft=Ct,en=!0),vt&&Ct<Fe&&kt<=Ct&&(Oe.scrollLeft=Ct,en=!0),en){de&&de();return}Kt&&(Oe.scrollTop=At),vt&&(Oe.scrollLeft=kt),r(Xt)}r(Xt)})}function se(...t){let[T,k,G,$]=t;t.length===3&&typeof G=="function"&&([T,k,$,G]=t);const de=this;return typeof T=="undefined"?de.length>0?de[0].scrollTop:null:de.scrollTo(void 0,T,k,G,$)}function le(...t){let[T,k,G,$]=t;t.length===3&&typeof G=="function"&&([T,k,$,G]=t);const de=this;return typeof T=="undefined"?de.length>0?de[0].scrollLeft:null:de.scrollTo(T,void 0,k,G,$)}function fe(t,T){const k=this,G={props:Object.assign({},t),params:Object.assign({duration:300,easing:"swing"},T),elements:k,animating:!1,que:[],easingProgress(de,xe){return de==="swing"?.5-Math.cos(xe*Math.PI)/2:typeof de=="function"?de(xe):xe},stop(){G.frameId&&h(G.frameId),G.animating=!1,G.elements.each((de,xe)=>{const Oe=xe;delete Oe.dom7AnimateInstance}),G.que=[]},done(de){if(G.animating=!1,G.elements.each((xe,Oe)=>{const ke=Oe;delete ke.dom7AnimateInstance}),de&&de(k),G.que.length>0){const xe=G.que.shift();G.animate(xe[0],xe[1])}},animate(de,xe){if(G.animating)return G.que.push([de,xe]),G;const Oe=[];G.elements.each((kt,Kt)=>{let vt,Wt,Xt,rn,sn;Kt.dom7AnimateInstance||(G.elements[kt].dom7AnimateInstance=G),Oe[kt]={container:Kt},Object.keys(de).forEach(on=>{vt=c.getComputedStyle(Kt,null).getPropertyValue(on).replace(",","."),Wt=parseFloat(vt),Xt=vt.replace(Wt,""),rn=parseFloat(de[on]),sn=de[on]+Xt,Oe[kt][on]={initialFullValue:vt,initialValue:Wt,unit:Xt,finalValue:rn,finalFullValue:sn,currentValue:Wt}})});let ke=null,Fe,Qe=0,yt=0,mt,Ct=!1;G.animating=!0;function At(){Fe=new Date().getTime();let kt,Kt;if(Ct||(Ct=!0,xe.begin&&xe.begin(k)),ke===null&&(ke=Fe),xe.progress&&xe.progress(k,Math.max(Math.min((Fe-ke)/xe.duration,1),0),ke+xe.duration-Fe<0?0:ke+xe.duration-Fe,ke),Oe.forEach(vt=>{const Wt=vt;if(mt||Wt.done)return;Object.keys(de).forEach(Xt=>{if(mt||Wt.done)return;kt=Math.max(Math.min((Fe-ke)/xe.duration,1),0),Kt=G.easingProgress(xe.easing,kt);const{initialValue:rn,finalValue:sn,unit:on}=Wt[Xt];Wt[Xt].currentValue=rn+Kt*(sn-rn);const en=Wt[Xt].currentValue;if((sn>rn&&en>=sn||sn<rn&&en<=sn)&&(Wt.container.style[Xt]=sn+on,yt+=1,yt===Object.keys(de).length&&(Wt.done=!0,Qe+=1),Qe===Oe.length&&(mt=!0)),mt){G.done(xe.complete);return}Wt.container.style[Xt]=en+on})}),mt)return;G.frameId=r(At)}return G.frameId=r(At),G}};if(G.elements.length===0)return k;let $;for(let de=0;de<G.elements.length;de+=1)G.elements[de].dom7AnimateInstance?$=G.elements[de].dom7AnimateInstance:G.elements[de].dom7AnimateInstance=G;return $||($=G),t==="stop"?$.stop():$.animate(G.props,G.params),k}function Re(){const t=this;for(let T=0;T<t.length;T+=1)t[T].dom7AnimateInstance&&t[T].dom7AnimateInstance.stop()}const ce="resize scroll".split(" ");function he(t,...T){if(typeof T[0]=="undefined"){for(let k=0;k<this.length;k+=1)ce.indexOf(t)<0&&(t in this[k]?this[k][t]():g(this[k]).trigger(t));return this}return this.on(t,...T)}function Se(...t){return he.bind(this)("click",...t)}function we(...t){return he.bind(this)("blur",...t)}function Ze(...t){return he.bind(this)("focus",...t)}function Ye(...t){return he.bind(this)("focusin",...t)}function it(...t){return he.bind(this)("focusout",...t)}function Et(...t){return he.bind(this)("keyup",...t)}function Pt(...t){return he.bind(this)("keydown",...t)}function zt(...t){return he.bind(this)("keypress",...t)}function Rt(...t){return he.bind(this)("submit",...t)}function rt(...t){return he.bind(this)("change",...t)}function st(...t){return he.bind(this)("mousedown",...t)}function qe(...t){return he.bind(this)("mousemove",...t)}function Ce(...t){return he.bind(this)("mouseup",...t)}function Be(...t){return he.bind(this)("mouseenter",...t)}function dt(...t){return he.bind(this)("mouseleave",...t)}function ut(...t){return he.bind(this)("mouseout",...t)}function It(...t){return he.bind(this)("mouseover",...t)}function wt(...t){return he.bind(this)("touchstart",...t)}function gt(...t){return he.bind(this)("touchend",...t)}function Nt(...t){return he.bind(this)("touchmove",...t)}function Mt(...t){return he.bind(this)("resize",...t)}function nt(...t){return he.bind(this)("scroll",...t)}const xt={addClass:a,removeClass:l,hasClass:d,toggleClass:y,attr:s,removeAttr:p,data:i,transform:w,transition:x,on:A,off:o,trigger:E,transitionEnd:O,outerWidth:D,outerHeight:I,offset:F,css:W,each:ie,html:Me,text:Ue,is:Ie,index:B,eq:z,append:H,prepend:X,next:oe,nextAll:Ae,prev:ye,prevAll:Le,parent:Xe,parents:ct,closest:lt,find:St,children:Dt,filter:pe,remove:bt,add:Ut,styles:Y};Object.keys(xt).forEach(t=>{g.fn[t]=g.fn[t]||xt[t]});const ue={deleteProps(t){const T=t;Object.keys(T).forEach(k=>{try{T[k]=null}catch(G){}try{delete T[k]}catch(G){}})},nextTick(t,T=0){return setTimeout(t,T)},now(){return Date.now()},getTranslate(t,T="x"){let k,G,$;const de=c.getComputedStyle(t,null);return c.WebKitCSSMatrix?(G=de.transform||de.webkitTransform,G.split(",").length>6&&(G=G.split(", ").map(xe=>xe.replace(",",".")).join(", ")),$=new c.WebKitCSSMatrix(G==="none"?"":G)):($=de.MozTransform||de.OTransform||de.MsTransform||de.msTransform||de.transform||de.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),k=$.toString().split(",")),T==="x"&&(c.WebKitCSSMatrix?G=$.m41:k.length===16?G=parseFloat(k[12]):G=parseFloat(k[4])),T==="y"&&(c.WebKitCSSMatrix?G=$.m42:k.length===16?G=parseFloat(k[13]):G=parseFloat(k[5])),G||0},parseUrlQuery(t){const T={};let k=t||c.location.href,G,$,de,xe;if(typeof k=="string"&&k.length)for(k=k.indexOf("?")>-1?k.replace(/\S*\?/,""):"",$=k.split("&").filter(Oe=>Oe!==""),xe=$.length,G=0;G<xe;G+=1)de=$[G].replace(/#\S+/g,"").split("="),T[decodeURIComponent(de[0])]=typeof de[1]=="undefined"?void 0:decodeURIComponent(de[1])||"";return T},isObject(t){return typeof t=="object"&&t!==null&&t.constructor&&t.constructor===Object},extend(...t){const T=Object(t[0]);for(let k=1;k<t.length;k+=1){const G=t[k];if(G!=null){const $=Object.keys(Object(G));for(let de=0,xe=$.length;de<xe;de+=1){const Oe=$[de],ke=Object.getOwnPropertyDescriptor(G,Oe);ke!==void 0&&ke.enumerable&&(ue.isObject(T[Oe])&&ue.isObject(G[Oe])?ue.extend(T[Oe],G[Oe]):!ue.isObject(T[Oe])&&ue.isObject(G[Oe])?(T[Oe]={},ue.extend(T[Oe],G[Oe])):T[Oe]=G[Oe])}}}return T}},ae=function(){return{touch:!!("ontouchstart"in c||c.DocumentTouch&&L instanceof c.DocumentTouch),pointerEvents:!!c.PointerEvent&&"maxTouchPoints"in c.navigator&&c.navigator.maxTouchPoints>=0,observer:function(){return"MutationObserver"in c||"WebkitMutationObserver"in c}(),passiveListener:function(){let k=!1;try{const G=Object.defineProperty({},"passive",{get(){k=!0}});c.addEventListener("testPassiveListener",null,G)}catch(G){}return k}(),gestures:function(){return"ongesturestart"in c}()}}();class V{constructor(t={}){const T=this;T.params=t,T.eventsListeners={},T.params&&T.params.on&&Object.keys(T.params.on).forEach(k=>{T.on(k,T.params.on[k])})}on(t,T,k){const G=this;if(typeof T!="function")return G;const $=k?"unshift":"push";return t.split(" ").forEach(de=>{G.eventsListeners[de]||(G.eventsListeners[de]=[]),G.eventsListeners[de][$](T)}),G}once(t,T,k){const G=this;if(typeof T!="function")return G;function $(...de){G.off(t,$),$.f7proxy&&delete $.f7proxy,T.apply(G,de)}return $.f7proxy=T,G.on(t,$,k)}off(t,T){const k=this;return k.eventsListeners&&t.split(" ").forEach(G=>{typeof T=="undefined"?k.eventsListeners[G]=[]:k.eventsListeners[G]&&k.eventsListeners[G].length&&k.eventsListeners[G].forEach(($,de)=>{($===T||$.f7proxy&&$.f7proxy===T)&&k.eventsListeners[G].splice(de,1)})}),k}emit(...t){const T=this;if(!T.eventsListeners)return T;let k,G,$;typeof t[0]=="string"||Array.isArray(t[0])?(k=t[0],G=t.slice(1,t.length),$=T):(k=t[0].events,G=t[0].data,$=t[0].context||T);const de=Array.isArray(k)?k:k.split(" ");return de.forEach(xe=>{if(T.eventsListeners&&T.eventsListeners[xe]){const Oe=[];T.eventsListeners[xe].forEach(ke=>{Oe.push(ke)}),Oe.forEach(ke=>{ke.apply($,G)})}}),T}useModulesParams(t){const T=this;if(!T.modules)return;Object.keys(T.modules).forEach(k=>{const G=T.modules[k];G.params&&ue.extend(t,G.params)})}useModules(t={}){const T=this;if(!T.modules)return;Object.keys(T.modules).forEach(k=>{const G=T.modules[k],$=t[k]||{};G.instance&&Object.keys(G.instance).forEach(de=>{const xe=G.instance[de];typeof xe=="function"?T[de]=xe.bind(T):T[de]=xe}),G.on&&T.on&&Object.keys(G.on).forEach(de=>{T.on(de,G.on[de])}),G.create&&G.create.bind(T)($)})}static set components(t){const T=this;if(!T.use)return;T.use(t)}static installModule(t,...T){const k=this;k.prototype.modules||(k.prototype.modules={});const G=t.name||`${Object.keys(k.prototype.modules).length}_${ue.now()}`;return k.prototype.modules[G]=t,t.proto&&Object.keys(t.proto).forEach($=>{k.prototype[$]=t.proto[$]}),t.static&&Object.keys(t.static).forEach($=>{k[$]=t.static[$]}),t.install&&t.install.apply(k,T),k}static use(t,...T){const k=this;return Array.isArray(t)?(t.forEach(G=>k.installModule(G)),k):k.installModule(t,...T)}}function J(){const t=this;let T,k;const G=t.$el;if(typeof t.params.width!="undefined"?T=t.params.width:T=G[0].clientWidth,typeof t.params.height!="undefined"?k=t.params.height:k=G[0].clientHeight,T===0&&t.isHorizontal()||k===0&&t.isVertical())return;T=T-parseInt(G.css("padding-left"),10)-parseInt(G.css("padding-right"),10),k=k-parseInt(G.css("padding-top"),10)-parseInt(G.css("padding-bottom"),10),ue.extend(t,{width:T,height:k,size:t.isHorizontal()?T:k})}function te(){const t=this,T=t.params,{$wrapperEl:k,size:G,rtlTranslate:$,wrongRTL:de}=t,xe=t.virtual&&T.virtual.enabled,Oe=xe?t.virtual.slides.length:t.slides.length,ke=k.children(`.${t.params.slideClass}`),Fe=xe?t.virtual.slides.length:ke.length;let Qe=[];const yt=[],mt=[];function Ct(vn){return T.cssMode?!(vn===ke.length-1):!0}let At=T.slidesOffsetBefore;typeof At=="function"&&(At=T.slidesOffsetBefore.call(t));let kt=T.slidesOffsetAfter;typeof kt=="function"&&(kt=T.slidesOffsetAfter.call(t));const Kt=t.snapGrid.length,vt=t.snapGrid.length;let Wt=T.spaceBetween,Xt=-At,rn=0,sn=0;if(typeof G=="undefined")return;typeof Wt=="string"&&Wt.indexOf("%")>=0&&(Wt=parseFloat(Wt.replace("%",""))/100*G),t.virtualSize=-Wt,$?ke.css({marginLeft:"",marginTop:""}):ke.css({marginRight:"",marginBottom:""});let on;T.slidesPerColumn>1&&(Math.floor(Fe/T.slidesPerColumn)===Fe/t.params.slidesPerColumn?on=Fe:on=Math.ceil(Fe/T.slidesPerColumn)*T.slidesPerColumn,T.slidesPerView!=="auto"&&T.slidesPerColumnFill==="row"&&(on=Math.max(on,T.slidesPerView*T.slidesPerColumn)));let en;const gn=T.slidesPerColumn,bn=on/gn,Qn=Math.floor(Fe/T.slidesPerColumn);for(let vn=0;vn<Fe;vn+=1){en=0;const Cn=ke.eq(vn);if(T.slidesPerColumn>1){let yn,Dn,Ln;if(T.slidesPerColumnFill==="row"&&T.slidesPerGroup>1){const Fn=Math.floor(vn/(T.slidesPerGroup*T.slidesPerColumn)),yi=vn-T.slidesPerColumn*T.slidesPerGroup*Fn,bi=Fn===0?T.slidesPerGroup:Math.min(Math.ceil((Fe-Fn*gn*T.slidesPerGroup)/gn),T.slidesPerGroup);Ln=Math.floor(yi/bi),Dn=yi-Ln*bi+Fn*T.slidesPerGroup,yn=Dn+Ln*on/gn,Cn.css({"-webkit-box-ordinal-group":yn,"-moz-box-ordinal-group":yn,"-ms-flex-order":yn,"-webkit-order":yn,order:yn})}else T.slidesPerColumnFill==="column"?(Dn=Math.floor(vn/gn),Ln=vn-Dn*gn,(Dn>Qn||Dn===Qn&&Ln===gn-1)&&(Ln+=1,Ln>=gn&&(Ln=0,Dn+=1))):(Ln=Math.floor(vn/bn),Dn=vn-Ln*bn);Cn.css(`margin-${t.isHorizontal()?"top":"left"}`,Ln!==0&&T.spaceBetween&&`${T.spaceBetween}px`)}if(Cn.css("display")==="none")continue;if(T.slidesPerView==="auto"){const yn=c.getComputedStyle(Cn[0],null),Dn=Cn[0].style.transform,Ln=Cn[0].style.webkitTransform;if(Dn&&(Cn[0].style.transform="none"),Ln&&(Cn[0].style.webkitTransform="none"),T.roundLengths)en=t.isHorizontal()?Cn.outerWidth(!0):Cn.outerHeight(!0);else if(t.isHorizontal()){const Fn=parseFloat(yn.getPropertyValue("width")),yi=parseFloat(yn.getPropertyValue("padding-left")),bi=parseFloat(yn.getPropertyValue("padding-right")),xi=parseFloat(yn.getPropertyValue("margin-left")),Pn=parseFloat(yn.getPropertyValue("margin-right")),_i=yn.getPropertyValue("box-sizing");_i&&_i==="border-box"?en=Fn+xi+Pn:en=Fn+yi+bi+xi+Pn}else{const Fn=parseFloat(yn.getPropertyValue("height")),yi=parseFloat(yn.getPropertyValue("padding-top")),bi=parseFloat(yn.getPropertyValue("padding-bottom")),xi=parseFloat(yn.getPropertyValue("margin-top")),Pn=parseFloat(yn.getPropertyValue("margin-bottom")),_i=yn.getPropertyValue("box-sizing");_i&&_i==="border-box"?en=Fn+xi+Pn:en=Fn+yi+bi+xi+Pn}Dn&&(Cn[0].style.transform=Dn),Ln&&(Cn[0].style.webkitTransform=Ln),T.roundLengths&&(en=Math.floor(en))}else en=(G-(T.slidesPerView-1)*Wt)/T.slidesPerView,T.roundLengths&&(en=Math.floor(en)),ke[vn]&&(t.isHorizontal()?ke[vn].style.width=`${en}px`:ke[vn].style.height=`${en}px`);ke[vn]&&(ke[vn].swiperSlideSize=en),mt.push(en),T.centeredSlides?(Xt=Xt+en/2+rn/2+Wt,rn===0&&vn!==0&&(Xt=Xt-G/2-Wt),vn===0&&(Xt=Xt-G/2-Wt),Math.abs(Xt)<1/1e3&&(Xt=0),T.roundLengths&&(Xt=Math.floor(Xt)),sn%T.slidesPerGroup===0&&Qe.push(Xt),yt.push(Xt)):(T.roundLengths&&(Xt=Math.floor(Xt)),(sn-Math.min(t.params.slidesPerGroupSkip,sn))%t.params.slidesPerGroup===0&&Qe.push(Xt),yt.push(Xt),Xt=Xt+en+Wt),t.virtualSize+=en+Wt,rn=en,sn+=1}t.virtualSize=Math.max(t.virtualSize,G)+kt;let Hn;if($&&de&&(T.effect==="slide"||T.effect==="coverflow")&&k.css({width:`${t.virtualSize+T.spaceBetween}px`}),T.setWrapperSize&&(t.isHorizontal()?k.css({width:`${t.virtualSize+T.spaceBetween}px`}):k.css({height:`${t.virtualSize+T.spaceBetween}px`})),T.slidesPerColumn>1&&(t.virtualSize=(en+T.spaceBetween)*on,t.virtualSize=Math.ceil(t.virtualSize/T.slidesPerColumn)-T.spaceBetween,t.isHorizontal()?k.css({width:`${t.virtualSize+T.spaceBetween}px`}):k.css({height:`${t.virtualSize+T.spaceBetween}px`}),T.centeredSlides)){Hn=[];for(let vn=0;vn<Qe.length;vn+=1){let Cn=Qe[vn];T.roundLengths&&(Cn=Math.floor(Cn)),Qe[vn]<t.virtualSize+Qe[0]&&Hn.push(Cn)}Qe=Hn}if(!T.centeredSlides){Hn=[];for(let vn=0;vn<Qe.length;vn+=1){let Cn=Qe[vn];T.roundLengths&&(Cn=Math.floor(Cn)),Qe[vn]<=t.virtualSize-G&&Hn.push(Cn)}Qe=Hn,Math.floor(t.virtualSize-G)-Math.floor(Qe[Qe.length-1])>1&&Qe.push(t.virtualSize-G)}if(Qe.length===0&&(Qe=[0]),T.spaceBetween!==0&&(t.isHorizontal()?$?ke.filter(Ct).css({marginLeft:`${Wt}px`}):ke.filter(Ct).css({marginRight:`${Wt}px`}):ke.filter(Ct).css({marginBottom:`${Wt}px`})),T.centeredSlides&&T.centeredSlidesBounds){let vn=0;mt.forEach(yn=>{vn+=yn+(T.spaceBetween?T.spaceBetween:0)}),vn-=T.spaceBetween;const Cn=vn-G;Qe=Qe.map(yn=>yn<0?-At:yn>Cn?Cn+kt:yn)}if(T.centerInsufficientSlides){let vn=0;if(mt.forEach(Cn=>{vn+=Cn+(T.spaceBetween?T.spaceBetween:0)}),vn-=T.spaceBetween,vn<G){const Cn=(G-vn)/2;Qe.forEach((yn,Dn)=>{Qe[Dn]=yn-Cn}),yt.forEach((yn,Dn)=>{yt[Dn]=yn+Cn})}}ue.extend(t,{slides:ke,snapGrid:Qe,slidesGrid:yt,slidesSizesGrid:mt}),Fe!==Oe&&t.emit("slidesLengthChange"),Qe.length!==Kt&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),yt.length!==vt&&t.emit("slidesGridLengthChange"),(T.watchSlidesProgress||T.watchSlidesVisibility)&&t.updateSlidesOffset()}function re(t){const T=this,k=[];let G=0,$;if(typeof t=="number"?T.setTransition(t):t===!0&&T.setTransition(T.params.speed),T.params.slidesPerView!=="auto"&&T.params.slidesPerView>1)if(T.params.centeredSlides)T.visibleSlides.each((de,xe)=>{k.push(xe)});else for($=0;$<Math.ceil(T.params.slidesPerView);$+=1){const de=T.activeIndex+$;if(de>T.slides.length)break;k.push(T.slides.eq(de)[0])}else k.push(T.slides.eq(T.activeIndex)[0]);for($=0;$<k.length;$+=1)if(typeof k[$]!="undefined"){const de=k[$].offsetHeight;G=de>G?de:G}G&&T.$wrapperEl.css("height",`${G}px`)}function be(){const t=this,T=t.slides;for(let k=0;k<T.length;k+=1)T[k].swiperSlideOffset=t.isHorizontal()?T[k].offsetLeft:T[k].offsetTop}function Pe(t=this&&this.translate||0){const T=this,k=T.params,{slides:G,rtlTranslate:$}=T;if(G.length===0)return;typeof G[0].swiperSlideOffset=="undefined"&&T.updateSlidesOffset();let de=-t;$&&(de=t),G.removeClass(k.slideVisibleClass),T.visibleSlidesIndexes=[],T.visibleSlides=[];for(let xe=0;xe<G.length;xe+=1){const Oe=G[xe],ke=(de+(k.centeredSlides?T.minTranslate():0)-Oe.swiperSlideOffset)/(Oe.swiperSlideSize+k.spaceBetween);if(k.watchSlidesVisibility||k.centeredSlides&&k.autoHeight){const Fe=-(de-Oe.swiperSlideOffset),Qe=Fe+T.slidesSizesGrid[xe],yt=Fe>=0&&Fe<T.size-1||Qe>1&&Qe<=T.size||Fe<=0&&Qe>=T.size;yt&&(T.visibleSlides.push(Oe),T.visibleSlidesIndexes.push(xe),G.eq(xe).addClass(k.slideVisibleClass))}Oe.progress=$?-ke:ke}T.visibleSlides=g(T.visibleSlides)}function He(t){const T=this;if(typeof t=="undefined"){const Fe=T.rtlTranslate?-1:1;t=T&&T.translate&&T.translate*Fe||0}const k=T.params,G=T.maxTranslate()-T.minTranslate();let{progress:$,isBeginning:de,isEnd:xe}=T;const Oe=de,ke=xe;G===0?($=0,de=!0,xe=!0):($=(t-T.minTranslate())/G,de=$<=0,xe=$>=1),ue.extend(T,{progress:$,isBeginning:de,isEnd:xe}),(k.watchSlidesProgress||k.watchSlidesVisibility||k.centeredSlides&&k.autoHeight)&&T.updateSlidesProgress(t),de&&!Oe&&T.emit("reachBeginning toEdge"),xe&&!ke&&T.emit("reachEnd toEdge"),(Oe&&!de||ke&&!xe)&&T.emit("fromEdge"),T.emit("progress",$)}function ft(){const t=this,{slides:T,params:k,$wrapperEl:G,activeIndex:$,realIndex:de}=t,xe=t.virtual&&k.virtual.enabled;T.removeClass(`${k.slideActiveClass} ${k.slideNextClass} ${k.slidePrevClass} ${k.slideDuplicateActiveClass} ${k.slideDuplicateNextClass} ${k.slideDuplicatePrevClass}`);let Oe;xe?Oe=t.$wrapperEl.find(`.${k.slideClass}[data-swiper-slide-index="${$}"]`):Oe=T.eq($),Oe.addClass(k.slideActiveClass),k.loop&&(Oe.hasClass(k.slideDuplicateClass)?G.children(`.${k.slideClass}:not(.${k.slideDuplicateClass})[data-swiper-slide-index="${de}"]`).addClass(k.slideDuplicateActiveClass):G.children(`.${k.slideClass}.${k.slideDuplicateClass}[data-swiper-slide-index="${de}"]`).addClass(k.slideDuplicateActiveClass));let ke=Oe.nextAll(`.${k.slideClass}`).eq(0).addClass(k.slideNextClass);k.loop&&ke.length===0&&(ke=T.eq(0),ke.addClass(k.slideNextClass));let Fe=Oe.prevAll(`.${k.slideClass}`).eq(0).addClass(k.slidePrevClass);k.loop&&Fe.length===0&&(Fe=T.eq(-1),Fe.addClass(k.slidePrevClass)),k.loop&&(ke.hasClass(k.slideDuplicateClass)?G.children(`.${k.slideClass}:not(.${k.slideDuplicateClass})[data-swiper-slide-index="${ke.attr("data-swiper-slide-index")}"]`).addClass(k.slideDuplicateNextClass):G.children(`.${k.slideClass}.${k.slideDuplicateClass}[data-swiper-slide-index="${ke.attr("data-swiper-slide-index")}"]`).addClass(k.slideDuplicateNextClass),Fe.hasClass(k.slideDuplicateClass)?G.children(`.${k.slideClass}:not(.${k.slideDuplicateClass})[data-swiper-slide-index="${Fe.attr("data-swiper-slide-index")}"]`).addClass(k.slideDuplicatePrevClass):G.children(`.${k.slideClass}.${k.slideDuplicateClass}[data-swiper-slide-index="${Fe.attr("data-swiper-slide-index")}"]`).addClass(k.slideDuplicatePrevClass))}function _t(t){const T=this,k=T.rtlTranslate?T.translate:-T.translate,{slidesGrid:G,snapGrid:$,params:de,activeIndex:xe,realIndex:Oe,snapIndex:ke}=T;let Fe=t,Qe;if(typeof Fe=="undefined"){for(let mt=0;mt<G.length;mt+=1)typeof G[mt+1]!="undefined"?k>=G[mt]&&k<G[mt+1]-(G[mt+1]-G[mt])/2?Fe=mt:k>=G[mt]&&k<G[mt+1]&&(Fe=mt+1):k>=G[mt]&&(Fe=mt);de.normalizeSlideIndex&&((Fe<0||typeof Fe=="undefined")&&(Fe=0))}if($.indexOf(k)>=0)Qe=$.indexOf(k);else{const mt=Math.min(de.slidesPerGroupSkip,Fe);Qe=mt+Math.floor((Fe-mt)/de.slidesPerGroup)}if(Qe>=$.length&&(Qe=$.length-1),Fe===xe){Qe!==ke&&(T.snapIndex=Qe,T.emit("snapIndexChange"));return}const yt=parseInt(T.slides.eq(Fe).attr("data-swiper-slide-index")||Fe,10);ue.extend(T,{snapIndex:Qe,realIndex:yt,previousIndex:xe,activeIndex:Fe}),T.emit("activeIndexChange"),T.emit("snapIndexChange"),Oe!==yt&&T.emit("realIndexChange"),(T.initialized||T.params.runCallbacksOnInit)&&T.emit("slideChange")}function Lt(t){const T=this,k=T.params,G=g(t.target).closest(`.${k.slideClass}`)[0];let $=!1;if(G)for(let de=0;de<T.slides.length;de+=1)T.slides[de]===G&&($=!0);if(G&&$)T.clickedSlide=G,T.virtual&&T.params.virtual.enabled?T.clickedIndex=parseInt(g(G).attr("data-swiper-slide-index"),10):T.clickedIndex=g(G).index();else{T.clickedSlide=void 0,T.clickedIndex=void 0;return}k.slideToClickedSlide&&T.clickedIndex!==void 0&&T.clickedIndex!==T.activeIndex&&T.slideToClickedSlide()}var Vt={updateSize:J,updateSlides:te,updateAutoHeight:re,updateSlidesOffset:be,updateSlidesProgress:Pe,updateProgress:He,updateSlidesClasses:ft,updateActiveIndex:_t,updateClickedSlide:Lt};function Ht(t=this.isHorizontal()?"x":"y"){const T=this,{params:k,rtlTranslate:G,translate:$,$wrapperEl:de}=T;if(k.virtualTranslate)return G?-$:$;if(k.cssMode)return $;let xe=ue.getTranslate(de[0],t);return G&&(xe=-xe),xe||0}function tt(t,T){const k=this,{rtlTranslate:G,params:$,$wrapperEl:de,wrapperEl:xe,progress:Oe}=k;let ke=0,Fe=0;const Qe=0;k.isHorizontal()?ke=G?-t:t:Fe=t,$.roundLengths&&(ke=Math.floor(ke),Fe=Math.floor(Fe)),$.cssMode?xe[k.isHorizontal()?"scrollLeft":"scrollTop"]=k.isHorizontal()?-ke:-Fe:$.virtualTranslate||de.transform(`translate3d(${ke}px, ${Fe}px, ${Qe}px)`),k.previousTranslate=k.translate,k.translate=k.isHorizontal()?ke:Fe;let yt;const mt=k.maxTranslate()-k.minTranslate();mt===0?yt=0:yt=(t-k.minTranslate())/mt,yt!==Oe&&k.updateProgress(t),k.emit("setTranslate",k.translate,T)}function jt(){return-this.snapGrid[0]}function Gt(){return-this.snapGrid[this.snapGrid.length-1]}function Qt(t=0,T=this.params.speed,k=!0,G=!0,$){const de=this,{params:xe,wrapperEl:Oe}=de;if(de.animating&&xe.preventInteractionOnTransition)return!1;const ke=de.minTranslate(),Fe=de.maxTranslate();let Qe;if(G&&t>ke?Qe=ke:G&&t<Fe?Qe=Fe:Qe=t,de.updateProgress(Qe),xe.cssMode){const yt=de.isHorizontal();return T===0?Oe[yt?"scrollLeft":"scrollTop"]=-Qe:Oe.scrollTo?Oe.scrollTo({[yt?"left":"top"]:-Qe,behavior:"smooth"}):Oe[yt?"scrollLeft":"scrollTop"]=-Qe,!0}return T===0?(de.setTransition(0),de.setTranslate(Qe),k&&(de.emit("beforeTransitionStart",T,$),de.emit("transitionEnd"))):(de.setTransition(T),de.setTranslate(Qe),k&&(de.emit("beforeTransitionStart",T,$),de.emit("transitionStart")),de.animating||(de.animating=!0,de.onTranslateToWrapperTransitionEnd||(de.onTranslateToWrapperTransitionEnd=function(mt){if(!de||de.destroyed)return;if(mt.target!==this)return;de.$wrapperEl[0].removeEventListener("transitionend",de.onTranslateToWrapperTransitionEnd),de.$wrapperEl[0].removeEventListener("webkitTransitionEnd",de.onTranslateToWrapperTransitionEnd),de.onTranslateToWrapperTransitionEnd=null,delete de.onTranslateToWrapperTransitionEnd,k&&de.emit("transitionEnd")}),de.$wrapperEl[0].addEventListener("transitionend",de.onTranslateToWrapperTransitionEnd),de.$wrapperEl[0].addEventListener("webkitTransitionEnd",de.onTranslateToWrapperTransitionEnd))),!0}var Tt={getTranslate:Ht,setTranslate:tt,minTranslate:jt,maxTranslate:Gt,translateTo:Qt};function tn(t,T){const k=this;k.params.cssMode||k.$wrapperEl.transition(t),k.emit("setTransition",t,T)}function nn(t=!0,T){const k=this,{activeIndex:G,params:$,previousIndex:de}=k;if($.cssMode)return;$.autoHeight&&k.updateAutoHeight();let xe=T;if(xe||(G>de?xe="next":G<de?xe="prev":xe="reset"),k.emit("transitionStart"),t&&G!==de){if(xe==="reset"){k.emit("slideResetTransitionStart");return}k.emit("slideChangeTransitionStart"),xe==="next"?k.emit("slideNextTransitionStart"):k.emit("slidePrevTransitionStart")}}function Jt(t=!0,T){const k=this,{activeIndex:G,previousIndex:$,params:de}=k;if(k.animating=!1,de.cssMode)return;k.setTransition(0);let xe=T;if(xe||(G>$?xe="next":G<$?xe="prev":xe="reset"),k.emit("transitionEnd"),t&&G!==$){if(xe==="reset"){k.emit("slideResetTransitionEnd");return}k.emit("slideChangeTransitionEnd"),xe==="next"?k.emit("slideNextTransitionEnd"):k.emit("slidePrevTransitionEnd")}}var Zt={setTransition:tn,transitionStart:nn,transitionEnd:Jt};function fn(t=0,T=this.params.speed,k=!0,G){const $=this;let de=t;de<0&&(de=0);const{params:xe,snapGrid:Oe,slidesGrid:ke,previousIndex:Fe,activeIndex:Qe,rtlTranslate:yt,wrapperEl:mt}=$;if($.animating&&xe.preventInteractionOnTransition)return!1;const Ct=Math.min($.params.slidesPerGroupSkip,de);let At=Ct+Math.floor((de-Ct)/$.params.slidesPerGroup);At>=Oe.length&&(At=Oe.length-1),(Qe||xe.initialSlide||0)===(Fe||0)&&k&&$.emit("beforeSlideChangeStart");const kt=-Oe[At];if($.updateProgress(kt),xe.normalizeSlideIndex)for(let vt=0;vt<ke.length;vt+=1)-Math.floor(kt*100)>=Math.floor(ke[vt]*100)&&(de=vt);if($.initialized&&de!==Qe){if(!$.allowSlideNext&&kt<$.translate&&kt<$.minTranslate())return!1;if(!$.allowSlidePrev&&kt>$.translate&&kt>$.maxTranslate()&&(Qe||0)!==de)return!1}let Kt;if(de>Qe?Kt="next":de<Qe?Kt="prev":Kt="reset",yt&&-kt===$.translate||!yt&&kt===$.translate)return $.updateActiveIndex(de),xe.autoHeight&&$.updateAutoHeight(),$.updateSlidesClasses(),xe.effect!=="slide"&&$.setTranslate(kt),Kt!=="reset"&&($.transitionStart(k,Kt),$.transitionEnd(k,Kt)),!1;if(xe.cssMode){const vt=$.isHorizontal();let Wt=-kt;return yt&&(Wt=mt.scrollWidth-mt.offsetWidth-Wt),T===0?mt[vt?"scrollLeft":"scrollTop"]=Wt:mt.scrollTo?mt.scrollTo({[vt?"left":"top"]:Wt,behavior:"smooth"}):mt[vt?"scrollLeft":"scrollTop"]=Wt,!0}return T===0?($.setTransition(0),$.setTranslate(kt),$.updateActiveIndex(de),$.updateSlidesClasses(),$.emit("beforeTransitionStart",T,G),$.transitionStart(k,Kt),$.transitionEnd(k,Kt)):($.setTransition(T),$.setTranslate(kt),$.updateActiveIndex(de),$.updateSlidesClasses(),$.emit("beforeTransitionStart",T,G),$.transitionStart(k,Kt),$.animating||($.animating=!0,$.onSlideToWrapperTransitionEnd||($.onSlideToWrapperTransitionEnd=function(Wt){if(!$||$.destroyed)return;if(Wt.target!==this)return;$.$wrapperEl[0].removeEventListener("transitionend",$.onSlideToWrapperTransitionEnd),$.$wrapperEl[0].removeEventListener("webkitTransitionEnd",$.onSlideToWrapperTransitionEnd),$.onSlideToWrapperTransitionEnd=null,delete $.onSlideToWrapperTransitionEnd,$.transitionEnd(k,Kt)}),$.$wrapperEl[0].addEventListener("transitionend",$.onSlideToWrapperTransitionEnd),$.$wrapperEl[0].addEventListener("webkitTransitionEnd",$.onSlideToWrapperTransitionEnd))),!0}function Tn(t=0,T=this.params.speed,k=!0,G){const $=this;let de=t;return $.params.loop&&(de+=$.loopedSlides),$.slideTo(de,T,k,G)}function pn(t=this.params.speed,T=!0,k){const G=this,{params:$,animating:de}=G,xe=G.activeIndex<$.slidesPerGroupSkip?1:$.slidesPerGroup;if($.loop){if(de)return!1;G.loopFix(),G._clientLeft=G.$wrapperEl[0].clientLeft}return G.slideTo(G.activeIndex+xe,t,T,k)}function Un(t=this.params.speed,T=!0,k){const G=this,{params:$,animating:de,snapGrid:xe,slidesGrid:Oe,rtlTranslate:ke}=G;if($.loop){if(de)return!1;G.loopFix(),G._clientLeft=G.$wrapperEl[0].clientLeft}const Fe=ke?G.translate:-G.translate;function Qe(vt){return vt<0?-Math.floor(Math.abs(vt)):Math.floor(vt)}const yt=Qe(Fe),mt=xe.map(vt=>Qe(vt)),Ct=Oe.map(vt=>Qe(vt)),At=xe[mt.indexOf(yt)];let kt=xe[mt.indexOf(yt)-1];typeof kt=="undefined"&&$.cssMode&&xe.forEach(vt=>{!kt&&yt>=vt&&(kt=vt)});let Kt;return typeof kt!="undefined"&&(Kt=Oe.indexOf(kt),Kt<0&&(Kt=G.activeIndex-1)),G.slideTo(Kt,t,T,k)}function ni(t=this.params.speed,T=!0,k){const G=this;return G.slideTo(G.activeIndex,t,T,k)}function wn(t=this.params.speed,T=!0,k,G=.5){const $=this;let de=$.activeIndex;const xe=Math.min($.params.slidesPerGroupSkip,de),Oe=xe+Math.floor((de-xe)/$.params.slidesPerGroup),ke=$.rtlTranslate?$.translate:-$.translate;if(ke>=$.snapGrid[Oe]){const Fe=$.snapGrid[Oe],Qe=$.snapGrid[Oe+1];ke-Fe>(Qe-Fe)*G&&(de+=$.params.slidesPerGroup)}else{const Fe=$.snapGrid[Oe-1],Qe=$.snapGrid[Oe];ke-Fe<=(Qe-Fe)*G&&(de-=$.params.slidesPerGroup)}return de=Math.max(de,0),de=Math.min(de,$.slidesGrid.length-1),$.slideTo(de,t,T,k)}function Wn(){const t=this,{params:T,$wrapperEl:k}=t,G=T.slidesPerView==="auto"?t.slidesPerViewDynamic():T.slidesPerView;let $=t.clickedIndex,de;if(T.loop){if(t.animating)return;de=parseInt(g(t.clickedSlide).attr("data-swiper-slide-index"),10),T.centeredSlides?$<t.loopedSlides-G/2||$>t.slides.length-t.loopedSlides+G/2?(t.loopFix(),$=k.children(`.${T.slideClass}[data-swiper-slide-index="${de}"]:not(.${T.slideDuplicateClass})`).eq(0).index(),ue.nextTick(()=>{t.slideTo($)})):t.slideTo($):$>t.slides.length-G?(t.loopFix(),$=k.children(`.${T.slideClass}[data-swiper-slide-index="${de}"]:not(.${T.slideDuplicateClass})`).eq(0).index(),ue.nextTick(()=>{t.slideTo($)})):t.slideTo($)}else t.slideTo($)}var hi={slideTo:fn,slideToLoop:Tn,slideNext:pn,slidePrev:Un,slideReset:ni,slideToClosest:wn,slideToClickedSlide:Wn};function di(){const t=this,{params:T,$wrapperEl:k}=t;k.children(`.${T.slideClass}.${T.slideDuplicateClass}`).remove();let G=k.children(`.${T.slideClass}`);if(T.loopFillGroupWithBlank){const xe=T.slidesPerGroup-G.length%T.slidesPerGroup;if(xe!==T.slidesPerGroup){for(let Oe=0;Oe<xe;Oe+=1){const ke=g(L.createElement("div")).addClass(`${T.slideClass} ${T.slideBlankClass}`);k.append(ke)}G=k.children(`.${T.slideClass}`)}}T.slidesPerView==="auto"&&!T.loopedSlides&&(T.loopedSlides=G.length),t.loopedSlides=Math.ceil(parseFloat(T.loopedSlides||T.slidesPerView,10)),t.loopedSlides+=T.loopAdditionalSlides,t.loopedSlides>G.length&&(t.loopedSlides=G.length);const $=[],de=[];G.each((xe,Oe)=>{const ke=g(Oe);xe<t.loopedSlides&&de.push(Oe),xe<G.length&&xe>=G.length-t.loopedSlides&&$.push(Oe),ke.attr("data-swiper-slide-index",xe)});for(let xe=0;xe<de.length;xe+=1)k.append(g(de[xe].cloneNode(!0)).addClass(T.slideDuplicateClass));for(let xe=$.length-1;xe>=0;xe-=1)k.prepend(g($[xe].cloneNode(!0)).addClass(T.slideDuplicateClass))}function ci(){const t=this;t.emit("beforeLoopFix");const{activeIndex:T,slides:k,loopedSlides:G,allowSlidePrev:$,allowSlideNext:de,snapGrid:xe,rtlTranslate:Oe}=t;let ke;t.allowSlidePrev=!0,t.allowSlideNext=!0;const Fe=-xe[T],Qe=Fe-t.getTranslate();if(T<G){ke=k.length-G*3+T,ke+=G;const yt=t.slideTo(ke,0,!1,!0);yt&&Qe!==0&&t.setTranslate((Oe?-t.translate:t.translate)-Qe)}else if(T>=k.length-G){ke=-k.length+T+G,ke+=G;const yt=t.slideTo(ke,0,!1,!0);yt&&Qe!==0&&t.setTranslate((Oe?-t.translate:t.translate)-Qe)}t.allowSlidePrev=$,t.allowSlideNext=de,t.emit("loopFix")}function Zn(){const t=this,{$wrapperEl:T,params:k,slides:G}=t;T.children(`.${k.slideClass}.${k.slideDuplicateClass},.${k.slideClass}.${k.slideBlankClass}`).remove(),G.removeAttr("data-swiper-slide-index")}var $t={loopCreate:di,loopFix:ci,loopDestroy:Zn};function qt(t){const T=this;if(ae.touch||!T.params.simulateTouch||T.params.watchOverflow&&T.isLocked||T.params.cssMode)return;const k=T.el;k.style.cursor="move",k.style.cursor=t?"-webkit-grabbing":"-webkit-grab",k.style.cursor=t?"-moz-grabbin":"-moz-grab",k.style.cursor=t?"grabbing":"grab"}function hn(){const t=this;if(ae.touch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;t.el.style.cursor=""}var cn={setGrabCursor:qt,unsetGrabCursor:hn};function Sn(t){const T=this,{$wrapperEl:k,params:G}=T;if(G.loop&&T.loopDestroy(),typeof t=="object"&&"length"in t)for(let $=0;$<t.length;$+=1)t[$]&&k.append(t[$]);else k.append(t);G.loop&&T.loopCreate(),G.observer&&ae.observer||T.update()}function dn(t){const T=this,{params:k,$wrapperEl:G,activeIndex:$}=T;k.loop&&T.loopDestroy();let de=$+1;if(typeof t=="object"&&"length"in t){for(let xe=0;xe<t.length;xe+=1)t[xe]&&G.prepend(t[xe]);de=$+t.length}else G.prepend(t);k.loop&&T.loopCreate(),k.observer&&ae.observer||T.update(),T.slideTo(de,0,!1)}function Bt(t,T){const k=this,{$wrapperEl:G,params:$,activeIndex:de}=k;let xe=de;$.loop&&(xe-=k.loopedSlides,k.loopDestroy(),k.slides=G.children(`.${$.slideClass}`));const Oe=k.slides.length;if(t<=0){k.prependSlide(T);return}if(t>=Oe){k.appendSlide(T);return}let ke=xe>t?xe+1:xe;const Fe=[];for(let Qe=Oe-1;Qe>=t;Qe-=1){const yt=k.slides.eq(Qe);yt.remove(),Fe.unshift(yt)}if(typeof T=="object"&&"length"in T){for(let Qe=0;Qe<T.length;Qe+=1)T[Qe]&&G.append(T[Qe]);ke=xe>t?xe+T.length:xe}else G.append(T);for(let Qe=0;Qe<Fe.length;Qe+=1)G.append(Fe[Qe]);$.loop&&k.loopCreate(),$.observer&&ae.observer||k.update(),$.loop?k.slideTo(ke+k.loopedSlides,0,!1):k.slideTo(ke,0,!1)}function ln(t){const T=this,{params:k,$wrapperEl:G,activeIndex:$}=T;let de=$;k.loop&&(de-=T.loopedSlides,T.loopDestroy(),T.slides=G.children(`.${k.slideClass}`));let xe=de,Oe;if(typeof t=="object"&&"length"in t){for(let ke=0;ke<t.length;ke+=1)Oe=t[ke],T.slides[Oe]&&T.slides.eq(Oe).remove(),Oe<xe&&(xe-=1);xe=Math.max(xe,0)}else Oe=t,T.slides[Oe]&&T.slides.eq(Oe).remove(),Oe<xe&&(xe-=1),xe=Math.max(xe,0);k.loop&&T.loopCreate(),k.observer&&ae.observer||T.update(),k.loop?T.slideTo(xe+T.loopedSlides,0,!1):T.slideTo(xe,0,!1)}function xn(){const t=this,T=[];for(let k=0;k<t.slides.length;k+=1)T.push(k);t.removeSlide(T)}var an={appendSlide:Sn,prependSlide:dn,addSlide:Bt,removeSlide:ln,removeAllSlides:xn};const _n=function(){const T=c.navigator.platform,k=c.navigator.userAgent,G={ios:!1,android:!1,androidChrome:!1,desktop:!1,iphone:!1,ipod:!1,ipad:!1,edge:!1,ie:!1,firefox:!1,macos:!1,windows:!1,cordova:!!(c.cordova||c.phonegap),phonegap:!!(c.cordova||c.phonegap),electron:!1},$=c.screen.width,de=c.screen.height,xe=k.match(/(Android);?[\s\/]+([\d.]+)?/);let Oe=k.match(/(iPad).*OS\s([\d_]+)/);const ke=k.match(/(iPod)(.*OS\s([\d_]+))?/),Fe=!Oe&&k.match(/(iPhone\sOS|iOS)\s([\d_]+)/),Qe=k.indexOf("MSIE ")>=0||k.indexOf("Trident/")>=0,yt=k.indexOf("Edge/")>=0,mt=k.indexOf("Gecko/")>=0&&k.indexOf("Firefox/")>=0,Ct=T==="Win32",At=k.toLowerCase().indexOf("electron")>=0;let kt=T==="MacIntel";return!Oe&&kt&&ae.touch&&($===1024&&de===1366||$===834&&de===1194||$===834&&de===1112||$===768&&de===1024)&&(Oe=k.match(/(Version)\/([\d.]+)/),kt=!1),G.ie=Qe,G.edge=yt,G.firefox=mt,xe&&!Ct&&(G.os="android",G.osVersion=xe[2],G.android=!0,G.androidChrome=k.toLowerCase().indexOf("chrome")>=0),(Oe||Fe||ke)&&(G.os="ios",G.ios=!0),Fe&&!ke&&(G.osVersion=Fe[2].replace(/_/g,"."),G.iphone=!0),Oe&&(G.osVersion=Oe[2].replace(/_/g,"."),G.ipad=!0),ke&&(G.osVersion=ke[3]?ke[3].replace(/_/g,"."):null,G.ipod=!0),G.ios&&G.osVersion&&k.indexOf("Version/")>=0&&(G.osVersion.split(".")[0]==="10"&&(G.osVersion=k.toLowerCase().split("version/")[1].split(" ")[0])),G.webView=!!((Fe||Oe||ke)&&(k.match(/.*AppleWebKit(?!.*Safari)/i)||c.navigator.standalone))||c.matchMedia&&c.matchMedia("(display-mode: standalone)").matches,G.webview=G.webView,G.standalone=G.webView,G.desktop=!(G.ios||G.android)||At,G.desktop&&(G.electron=At,G.macos=kt,G.windows=Ct,G.macos&&(G.os="macos"),G.windows&&(G.os="windows")),G.pixelRatio=c.devicePixelRatio||1,G}();function Gn(t){const T=this,k=T.touchEventsData,{params:G,touches:$}=T;if(T.animating&&G.preventInteractionOnTransition)return;let de=t;de.originalEvent&&(de=de.originalEvent);const xe=g(de.target);if(G.touchEventsTarget==="wrapper"&&!xe.closest(T.wrapperEl).length)return;if(k.isTouchEvent=de.type==="touchstart",!k.isTouchEvent&&"which"in de&&de.which===3)return;if(!k.isTouchEvent&&"button"in de&&de.button>0)return;if(k.isTouched&&k.isMoved)return;if(G.noSwiping&&xe.closest(G.noSwipingSelector?G.noSwipingSelector:`.${G.noSwipingClass}`)[0]){T.allowClick=!0;return}if(G.swipeHandler&&!xe.closest(G.swipeHandler)[0])return;$.currentX=de.type==="touchstart"?de.targetTouches[0].pageX:de.pageX,$.currentY=de.type==="touchstart"?de.targetTouches[0].pageY:de.pageY;const Oe=$.currentX,ke=$.currentY,Fe=G.edgeSwipeDetection||G.iOSEdgeSwipeDetection,Qe=G.edgeSwipeThreshold||G.iOSEdgeSwipeThreshold;if(Fe&&(Oe<=Qe||Oe>=c.screen.width-Qe))return;if(ue.extend(k,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),$.startX=Oe,$.startY=ke,k.touchStartTime=ue.now(),T.allowClick=!0,T.updateSize(),T.swipeDirection=void 0,G.threshold>0&&(k.allowThresholdMove=!1),de.type!=="touchstart"){let yt=!0;xe.is(k.formElements)&&(yt=!1),L.activeElement&&g(L.activeElement).is(k.formElements)&&L.activeElement!==xe[0]&&L.activeElement.blur();const mt=yt&&T.allowTouchMove&&G.touchStartPreventDefault;(G.touchStartForcePreventDefault||mt)&&de.preventDefault()}T.emit("touchStart",de)}function mn(t){const T=this,k=T.touchEventsData,{params:G,touches:$,rtlTranslate:de}=T;let xe=t;if(xe.originalEvent&&(xe=xe.originalEvent),!k.isTouched){k.startMoving&&k.isScrolling&&T.emit("touchMoveOpposite",xe);return}if(k.isTouchEvent&&xe.type!=="touchmove")return;const Oe=xe.type==="touchmove"&&xe.targetTouches&&(xe.targetTouches[0]||xe.changedTouches[0]),ke=xe.type==="touchmove"?Oe.pageX:xe.pageX,Fe=xe.type==="touchmove"?Oe.pageY:xe.pageY;if(xe.preventedByNestedSwiper){$.startX=ke,$.startY=Fe;return}if(!T.allowTouchMove){T.allowClick=!1,k.isTouched&&(ue.extend($,{startX:ke,startY:Fe,currentX:ke,currentY:Fe}),k.touchStartTime=ue.now());return}if(k.isTouchEvent&&G.touchReleaseOnEdges&&!G.loop){if(T.isVertical()){if(Fe<$.startY&&T.translate<=T.maxTranslate()||Fe>$.startY&&T.translate>=T.minTranslate()){k.isTouched=!1,k.isMoved=!1;return}}else if(ke<$.startX&&T.translate<=T.maxTranslate()||ke>$.startX&&T.translate>=T.minTranslate())return}if(k.isTouchEvent&&L.activeElement&&(xe.target===L.activeElement&&g(xe.target).is(k.formElements))){k.isMoved=!0,T.allowClick=!1;return}if(k.allowTouchCallbacks&&T.emit("touchMove",xe),xe.targetTouches&&xe.targetTouches.length>1)return;$.currentX=ke,$.currentY=Fe;const Qe=$.currentX-$.startX,yt=$.currentY-$.startY;if(T.params.threshold&&Math.sqrt(Ai(Qe,2)+Ai(yt,2))<T.params.threshold)return;if(typeof k.isScrolling=="undefined"){let kt;T.isHorizontal()&&$.currentY===$.startY||T.isVertical()&&$.currentX===$.startX?k.isScrolling=!1:Qe*Qe+yt*yt>=25&&(kt=Math.atan2(Math.abs(yt),Math.abs(Qe))*180/Math.PI,k.isScrolling=T.isHorizontal()?kt>G.touchAngle:90-kt>G.touchAngle)}if(k.isScrolling&&T.emit("touchMoveOpposite",xe),typeof k.startMoving=="undefined"&&(($.currentX!==$.startX||$.currentY!==$.startY)&&(k.startMoving=!0)),k.isScrolling){k.isTouched=!1;return}if(!k.startMoving)return;T.allowClick=!1,!G.cssMode&&xe.cancelable&&xe.preventDefault(),G.touchMoveStopPropagation&&!G.nested&&xe.stopPropagation(),k.isMoved||(G.loop&&T.loopFix(),k.startTranslate=T.getTranslate(),T.setTransition(0),T.animating&&T.$wrapperEl.trigger("webkitTransitionEnd transitionend"),k.allowMomentumBounce=!1,G.grabCursor&&(T.allowSlideNext===!0||T.allowSlidePrev===!0)&&T.setGrabCursor(!0),T.emit("sliderFirstMove",xe)),T.emit("sliderMove",xe),k.isMoved=!0;let mt=T.isHorizontal()?Qe:yt;$.diff=mt,mt*=G.touchRatio,de&&(mt=-mt),T.swipeDirection=mt>0?"prev":"next",k.currentTranslate=mt+k.startTranslate;let Ct=!0,At=G.resistanceRatio;if(G.touchReleaseOnEdges&&(At=0),mt>0&&k.currentTranslate>T.minTranslate()?(Ct=!1,G.resistance&&(k.currentTranslate=T.minTranslate()-1+Ai(-T.minTranslate()+k.startTranslate+mt,At))):mt<0&&k.currentTranslate<T.maxTranslate()&&(Ct=!1,G.resistance&&(k.currentTranslate=T.maxTranslate()+1-Ai(T.maxTranslate()-k.startTranslate-mt,At))),Ct&&(xe.preventedByNestedSwiper=!0),!T.allowSlideNext&&T.swipeDirection==="next"&&k.currentTranslate<k.startTranslate&&(k.currentTranslate=k.startTranslate),!T.allowSlidePrev&&T.swipeDirection==="prev"&&k.currentTranslate>k.startTranslate&&(k.currentTranslate=k.startTranslate),G.threshold>0)if(Math.abs(mt)>G.threshold||k.allowThresholdMove){if(!k.allowThresholdMove){k.allowThresholdMove=!0,$.startX=$.currentX,$.startY=$.currentY,k.currentTranslate=k.startTranslate,$.diff=T.isHorizontal()?$.currentX-$.startX:$.currentY-$.startY;return}}else{k.currentTranslate=k.startTranslate;return}if(!G.followFinger||G.cssMode)return;(G.freeMode||G.watchSlidesProgress||G.watchSlidesVisibility)&&(T.updateActiveIndex(),T.updateSlidesClasses()),G.freeMode&&(k.velocities.length===0&&k.velocities.push({position:$[T.isHorizontal()?"startX":"startY"],time:k.touchStartTime}),k.velocities.push({position:$[T.isHorizontal()?"currentX":"currentY"],time:ue.now()})),T.updateProgress(k.currentTranslate),T.setTranslate(k.currentTranslate)}function qn(t){const T=this,k=T.touchEventsData,{params:G,touches:$,rtlTranslate:de,$wrapperEl:xe,slidesGrid:Oe,snapGrid:ke}=T;let Fe=t;if(Fe.originalEvent&&(Fe=Fe.originalEvent),k.allowTouchCallbacks&&T.emit("touchEnd",Fe),k.allowTouchCallbacks=!1,!k.isTouched){k.isMoved&&G.grabCursor&&T.setGrabCursor(!1),k.isMoved=!1,k.startMoving=!1;return}G.grabCursor&&k.isMoved&&k.isTouched&&(T.allowSlideNext===!0||T.allowSlidePrev===!0)&&T.setGrabCursor(!1);const Qe=ue.now(),yt=Qe-k.touchStartTime;if(T.allowClick&&(T.updateClickedSlide(Fe),T.emit("tap click",Fe),yt<300&&Qe-k.lastClickTime<300&&T.emit("doubleTap doubleClick",Fe)),k.lastClickTime=ue.now(),ue.nextTick(()=>{T.destroyed||(T.allowClick=!0)}),!k.isTouched||!k.isMoved||!T.swipeDirection||$.diff===0||k.currentTranslate===k.startTranslate){k.isTouched=!1,k.isMoved=!1,k.startMoving=!1;return}k.isTouched=!1,k.isMoved=!1,k.startMoving=!1;let mt;if(G.followFinger?mt=de?T.translate:-T.translate:mt=-k.currentTranslate,G.cssMode)return;if(G.freeMode){if(mt<-T.minTranslate()){T.slideTo(T.activeIndex);return}if(mt>-T.maxTranslate()){T.slides.length<ke.length?T.slideTo(ke.length-1):T.slideTo(T.slides.length-1);return}if(G.freeModeMomentum){if(k.velocities.length>1){const gn=k.velocities.pop(),bn=k.velocities.pop(),Qn=gn.position-bn.position,Hn=gn.time-bn.time;T.velocity=Qn/Hn,T.velocity/=2,Math.abs(T.velocity)<G.freeModeMinimumVelocity&&(T.velocity=0),(Hn>150||ue.now()-gn.time>300)&&(T.velocity=0)}else T.velocity=0;T.velocity*=G.freeModeMomentumVelocityRatio,k.velocities.length=0;let vt=1e3*G.freeModeMomentumRatio;const Wt=T.velocity*vt;let Xt=T.translate+Wt;de&&(Xt=-Xt);let rn=!1,sn;const on=Math.abs(T.velocity)*20*G.freeModeMomentumBounceRatio;let en;if(Xt<T.maxTranslate())G.freeModeMomentumBounce?(Xt+T.maxTranslate()<-on&&(Xt=T.maxTranslate()-on),sn=T.maxTranslate(),rn=!0,k.allowMomentumBounce=!0):Xt=T.maxTranslate(),G.loop&&G.centeredSlides&&(en=!0);else if(Xt>T.minTranslate())G.freeModeMomentumBounce?(Xt-T.minTranslate()>on&&(Xt=T.minTranslate()+on),sn=T.minTranslate(),rn=!0,k.allowMomentumBounce=!0):Xt=T.minTranslate(),G.loop&&G.centeredSlides&&(en=!0);else if(G.freeModeSticky){let gn;for(let bn=0;bn<ke.length;bn+=1)if(ke[bn]>-Xt){gn=bn;break}Math.abs(ke[gn]-Xt)<Math.abs(ke[gn-1]-Xt)||T.swipeDirection==="next"?Xt=ke[gn]:Xt=ke[gn-1],Xt=-Xt}if(en&&T.once("transitionEnd",()=>{T.loopFix()}),T.velocity!==0){if(de?vt=Math.abs((-Xt-T.translate)/T.velocity):vt=Math.abs((Xt-T.translate)/T.velocity),G.freeModeSticky){const gn=Math.abs((de?-Xt:Xt)-T.translate),bn=T.slidesSizesGrid[T.activeIndex];gn<bn?vt=G.speed:gn<2*bn?vt=G.speed*1.5:vt=G.speed*2.5}}else if(G.freeModeSticky){T.slideToClosest();return}G.freeModeMomentumBounce&&rn?(T.updateProgress(sn),T.setTransition(vt),T.setTranslate(Xt),T.transitionStart(!0,T.swipeDirection),T.animating=!0,xe.transitionEnd(()=>{if(!T||T.destroyed||!k.allowMomentumBounce)return;T.emit("momentumBounce"),T.setTransition(G.speed),setTimeout(()=>{T.setTranslate(sn),xe.transitionEnd(()=>{if(!T||T.destroyed)return;T.transitionEnd()})},0)})):T.velocity?(T.updateProgress(Xt),T.setTransition(vt),T.setTranslate(Xt),T.transitionStart(!0,T.swipeDirection),T.animating||(T.animating=!0,xe.transitionEnd(()=>{if(!T||T.destroyed)return;T.transitionEnd()}))):T.updateProgress(Xt),T.updateActiveIndex(),T.updateSlidesClasses()}else if(G.freeModeSticky){T.slideToClosest();return}(!G.freeModeMomentum||yt>=G.longSwipesMs)&&(T.updateProgress(),T.updateActiveIndex(),T.updateSlidesClasses());return}let Ct=0,At=T.slidesSizesGrid[0];for(let vt=0;vt<Oe.length;vt+=vt<G.slidesPerGroupSkip?1:G.slidesPerGroup){const Wt=vt<G.slidesPerGroupSkip-1?1:G.slidesPerGroup;typeof Oe[vt+Wt]!="undefined"?mt>=Oe[vt]&&mt<Oe[vt+Wt]&&(Ct=vt,At=Oe[vt+Wt]-Oe[vt]):mt>=Oe[vt]&&(Ct=vt,At=Oe[Oe.length-1]-Oe[Oe.length-2])}const kt=(mt-Oe[Ct])/At,Kt=Ct<G.slidesPerGroupSkip-1?1:G.slidesPerGroup;if(yt>G.longSwipesMs){if(!G.longSwipes){T.slideTo(T.activeIndex);return}T.swipeDirection==="next"&&(kt>=G.longSwipesRatio?T.slideTo(Ct+Kt):T.slideTo(Ct)),T.swipeDirection==="prev"&&(kt>1-G.longSwipesRatio?T.slideTo(Ct+Kt):T.slideTo(Ct))}else{if(!G.shortSwipes){T.slideTo(T.activeIndex);return}const vt=T.navigation&&(Fe.target===T.navigation.nextEl||Fe.target===T.navigation.prevEl);vt?Fe.target===T.navigation.nextEl?T.slideTo(Ct+Kt):T.slideTo(Ct):(T.swipeDirection==="next"&&T.slideTo(Ct+Kt),T.swipeDirection==="prev"&&T.slideTo(Ct))}}function zn(){const t=this,{params:T,el:k}=t;if(k&&k.offsetWidth===0)return;T.breakpoints&&t.setBreakpoint();const{allowSlideNext:G,allowSlidePrev:$,snapGrid:de}=t;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses(),(T.slidesPerView==="auto"||T.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides?t.slideTo(t.slides.length-1,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.run(),t.allowSlidePrev=$,t.allowSlideNext=G,t.params.watchOverflow&&de!==t.snapGrid&&t.checkOverflow()}function Kn(t){const T=this;T.allowClick||(T.params.preventClicks&&t.preventDefault(),T.params.preventClicksPropagation&&T.animating&&(t.stopPropagation(),t.stopImmediatePropagation()))}function An(){const t=this,{wrapperEl:T,rtlTranslate:k}=t;t.previousTranslate=t.translate,t.isHorizontal()?k?t.translate=T.scrollWidth-T.offsetWidth-T.scrollLeft:t.translate=-T.scrollLeft:t.translate=-T.scrollTop,t.translate===-0&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();let G;const $=t.maxTranslate()-t.minTranslate();$===0?G=0:G=(t.translate-t.minTranslate())/$,G!==t.progress&&t.updateProgress(k?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}let Bn=!1;function Mn(){}function Vn(){const t=this,{params:T,touchEvents:k,el:G,wrapperEl:$}=t;t.onTouchStart=Gn.bind(t),t.onTouchMove=mn.bind(t),t.onTouchEnd=qn.bind(t),T.cssMode&&(t.onScroll=An.bind(t)),t.onClick=Kn.bind(t);const de=!!T.nested;if(!ae.touch&&ae.pointerEvents)G.addEventListener(k.start,t.onTouchStart,!1),L.addEventListener(k.move,t.onTouchMove,de),L.addEventListener(k.end,t.onTouchEnd,!1);else{if(ae.touch){const xe=k.start==="touchstart"&&ae.passiveListener&&T.passiveListeners?{passive:!0,capture:!1}:!1;G.addEventListener(k.start,t.onTouchStart,xe),G.addEventListener(k.move,t.onTouchMove,ae.passiveListener?{passive:!1,capture:de}:de),G.addEventListener(k.end,t.onTouchEnd,xe),k.cancel&&G.addEventListener(k.cancel,t.onTouchEnd,xe),Bn||(L.addEventListener("touchstart",Mn),Bn=!0)}(T.simulateTouch&&!_n.ios&&!_n.android||T.simulateTouch&&!ae.touch&&_n.ios)&&(G.addEventListener("mousedown",t.onTouchStart,!1),L.addEventListener("mousemove",t.onTouchMove,de),L.addEventListener("mouseup",t.onTouchEnd,!1))}(T.preventClicks||T.preventClicksPropagation)&&G.addEventListener("click",t.onClick,!0),T.cssMode&&$.addEventListener("scroll",t.onScroll),T.updateOnWindowResize?t.on(_n.ios||_n.android?"resize orientationchange observerUpdate":"resize observerUpdate",zn,!0):t.on("observerUpdate",zn,!0)}function gi(){const t=this,{params:T,touchEvents:k,el:G,wrapperEl:$}=t,de=!!T.nested;if(!ae.touch&&ae.pointerEvents)G.removeEventListener(k.start,t.onTouchStart,!1),L.removeEventListener(k.move,t.onTouchMove,de),L.removeEventListener(k.end,t.onTouchEnd,!1);else{if(ae.touch){const xe=k.start==="onTouchStart"&&ae.passiveListener&&T.passiveListeners?{passive:!0,capture:!1}:!1;G.removeEventListener(k.start,t.onTouchStart,xe),G.removeEventListener(k.move,t.onTouchMove,de),G.removeEventListener(k.end,t.onTouchEnd,xe),k.cancel&&G.removeEventListener(k.cancel,t.onTouchEnd,xe)}(T.simulateTouch&&!_n.ios&&!_n.android||T.simulateTouch&&!ae.touch&&_n.ios)&&(G.removeEventListener("mousedown",t.onTouchStart,!1),L.removeEventListener("mousemove",t.onTouchMove,de),L.removeEventListener("mouseup",t.onTouchEnd,!1))}(T.preventClicks||T.preventClicksPropagation)&&G.removeEventListener("click",t.onClick,!0),T.cssMode&&$.removeEventListener("scroll",t.onScroll),t.off(_n.ios||_n.android?"resize orientationchange observerUpdate":"resize observerUpdate",zn)}var ii={attachEvents:Vn,detachEvents:gi};function vi(){const t=this,{activeIndex:T,initialized:k,loopedSlides:G=0,params:$,$el:de}=t,xe=$.breakpoints;if(!xe||xe&&Object.keys(xe).length===0)return;const Oe=t.getBreakpoint(xe);if(Oe&&t.currentBreakpoint!==Oe){const ke=Oe in xe?xe[Oe]:void 0;ke&&["slidesPerView","spaceBetween","slidesPerGroup","slidesPerGroupSkip","slidesPerColumn"].forEach(At=>{const kt=ke[At];if(typeof kt=="undefined")return;At==="slidesPerView"&&(kt==="AUTO"||kt==="auto")?ke[At]="auto":At==="slidesPerView"?ke[At]=parseFloat(kt):ke[At]=parseInt(kt,10)});const Fe=ke||t.originalParams,Qe=$.slidesPerColumn>1,yt=Fe.slidesPerColumn>1;Qe&&!yt?de.removeClass(`${$.containerModifierClass}multirow ${$.containerModifierClass}multirow-column`):!Qe&&yt&&(de.addClass(`${$.containerModifierClass}multirow`),Fe.slidesPerColumnFill==="column"&&de.addClass(`${$.containerModifierClass}multirow-column`));const mt=Fe.direction&&Fe.direction!==$.direction,Ct=$.loop&&(Fe.slidesPerView!==$.slidesPerView||mt);mt&&k&&t.changeDirection(),ue.extend(t.params,Fe),ue.extend(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),t.currentBreakpoint=Oe,Ct&&k&&(t.loopDestroy(),t.loopCreate(),t.updateSlides(),t.slideTo(T-G+t.loopedSlides,0,!1)),t.emit("breakpoint",Fe)}}function Si(t){if(!t)return;let T=!1;const k=Object.keys(t).map(G=>{if(typeof G=="string"&&G.indexOf("@")===0){const $=parseFloat(G.substr(1)),de=c.innerHeight*$;return{value:de,point:G}}return{value:G,point:G}});k.sort((G,$)=>parseInt(G.value,10)-parseInt($.value,10));for(let G=0;G<k.length;G+=1){const{point:$,value:de}=k[G];de<=c.innerWidth&&(T=$)}return T||"max"}var jn={setBreakpoint:vi,getBreakpoint:Si};function En(){const t=this,{classNames:T,params:k,rtl:G,$el:$}=t,de=[];de.push("initialized"),de.push(k.direction),k.freeMode&&de.push("free-mode"),k.autoHeight&&de.push("autoheight"),G&&de.push("rtl"),k.slidesPerColumn>1&&(de.push("multirow"),k.slidesPerColumnFill==="column"&&de.push("multirow-column")),_n.android&&de.push("android"),_n.ios&&de.push("ios"),k.cssMode&&de.push("css-mode"),de.forEach(xe=>{T.push(k.containerModifierClass+xe)}),$.addClass(T.join(" "))}function si(){const t=this,{$el:T,classNames:k}=t;T.removeClass(k.join(" "))}var Yn={addClasses:En,removeClasses:si};function $n(t,T,k,G,$,de){let xe;function Oe(){de&&de()}const ke=g(t).parent("picture")[0];!ke&&(!t.complete||!$)&&T?(xe=new c.Image,xe.onload=Oe,xe.onerror=Oe,G&&(xe.sizes=G),k&&(xe.srcset=k),T&&(xe.src=T)):Oe()}function li(){const t=this;t.imagesToLoad=t.$el.find("img");function T(){if(typeof t=="undefined"||t===null||!t||t.destroyed)return;t.imagesLoaded!==void 0&&(t.imagesLoaded+=1),t.imagesLoaded===t.imagesToLoad.length&&(t.params.updateOnImagesReady&&t.update(),t.emit("imagesReady"))}for(let k=0;k<t.imagesToLoad.length;k+=1){const G=t.imagesToLoad[k];t.loadImage(G,G.currentSrc||G.getAttribute("src"),G.srcset||G.getAttribute("srcset"),G.sizes||G.getAttribute("sizes"),!0,T)}}var Ui={loadImage:$n,preloadImages:li};function wi(){const t=this,T=t.params,k=t.isLocked,G=t.slides.length>0&&T.slidesOffsetBefore+T.spaceBetween*(t.slides.length-1)+t.slides[0].offsetWidth*t.slides.length;T.slidesOffsetBefore&&T.slidesOffsetAfter&&G?t.isLocked=G<=t.size:t.isLocked=t.snapGrid.length===1,t.allowSlideNext=!t.isLocked,t.allowSlidePrev=!t.isLocked,k!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock"),k&&k!==t.isLocked&&(t.isEnd=!1,t.navigation&&t.navigation.update())}var Pi={checkOverflow:wi},ki={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,preventInteractionOnTransition:!1,edgeSwipeDetection:!1,edgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,slidesPerGroupSkip:0,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!1,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0};const Mi={update:Vt,translate:Tt,transition:Zt,slide:hi,loop:$t,grabCursor:cn,manipulation:an,events:ii,breakpoints:jn,checkOverflow:Pi,classes:Yn,images:Ui},Ei={};class Xn extends V{constructor(...t){let T,k;t.length===1&&t[0].constructor&&t[0].constructor===Object?k=t[0]:[T,k]=t,k||(k={}),k=ue.extend({},k),T&&!k.el&&(k.el=T),super(k),Object.keys(Mi).forEach(Oe=>{Object.keys(Mi[Oe]).forEach(ke=>{Xn.prototype[ke]||(Xn.prototype[ke]=Mi[Oe][ke])})});const G=this;typeof G.modules=="undefined"&&(G.modules={}),Object.keys(G.modules).forEach(Oe=>{const ke=G.modules[Oe];if(ke.params){const Fe=Object.keys(ke.params)[0],Qe=ke.params[Fe];if(typeof Qe!="object"||Qe===null)return;if(!(Fe in k&&"enabled"in Qe))return;k[Fe]===!0&&(k[Fe]={enabled:!0}),typeof k[Fe]=="object"&&!("enabled"in k[Fe])&&(k[Fe].enabled=!0),k[Fe]||(k[Fe]={enabled:!1})}});const $=ue.extend({},ki);G.useModulesParams($),G.params=ue.extend({},$,Ei,k),G.originalParams=ue.extend({},G.params),G.passedParams=ue.extend({},k),G.$=g;const de=g(G.params.el);if(T=de[0],!T)return;if(de.length>1){const Oe=[];return de.each((ke,Fe)=>{const Qe=ue.extend({},k,{el:Fe});Oe.push(new Xn(Qe))}),Oe}T.swiper=G,de.data("swiper",G);let xe;return T&&T.shadowRoot&&T.shadowRoot.querySelector?(xe=g(T.shadowRoot.querySelector(`.${G.params.wrapperClass}`)),xe.children=Oe=>de.children(Oe)):xe=de.children(`.${G.params.wrapperClass}`),ue.extend(G,{$el:de,el:T,$wrapperEl:xe,wrapperEl:xe[0],classNames:[],slides:g(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return G.params.direction==="horizontal"},isVertical(){return G.params.direction==="vertical"},rtl:T.dir.toLowerCase()==="rtl"||de.css("direction")==="rtl",rtlTranslate:G.params.direction==="horizontal"&&(T.dir.toLowerCase()==="rtl"||de.css("direction")==="rtl"),wrongRTL:xe.css("display")==="-webkit-box",activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:G.params.allowSlideNext,allowSlidePrev:G.params.allowSlidePrev,touchEvents:function(){const ke=["touchstart","touchmove","touchend","touchcancel"];let Fe=["mousedown","mousemove","mouseup"];return ae.pointerEvents&&(Fe=["pointerdown","pointermove","pointerup"]),G.touchEventsTouch={start:ke[0],move:ke[1],end:ke[2],cancel:ke[3]},G.touchEventsDesktop={start:Fe[0],move:Fe[1],end:Fe[2]},ae.touch||!G.params.simulateTouch?G.touchEventsTouch:G.touchEventsDesktop}(),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,formElements:"input, select, option, textarea, button, video, label",lastClickTime:ue.now(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:G.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),G.useModules(),G.params.init&&G.init(),G}slidesPerViewDynamic(){const t=this,{params:T,slides:k,slidesGrid:G,size:$,activeIndex:de}=t;let xe=1;if(T.centeredSlides){let Oe=k[de].swiperSlideSize,ke;for(let Fe=de+1;Fe<k.length;Fe+=1)k[Fe]&&!ke&&(Oe+=k[Fe].swiperSlideSize,xe+=1,Oe>$&&(ke=!0));for(let Fe=de-1;Fe>=0;Fe-=1)k[Fe]&&!ke&&(Oe+=k[Fe].swiperSlideSize,xe+=1,Oe>$&&(ke=!0))}else for(let Oe=de+1;Oe<k.length;Oe+=1)G[Oe]-G[de]<$&&(xe+=1);return xe}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:T,params:k}=t;k.breakpoints&&t.setBreakpoint(),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function G(){const de=t.rtlTranslate?t.translate*-1:t.translate,xe=Math.min(Math.max(de,t.maxTranslate()),t.minTranslate());t.setTranslate(xe),t.updateActiveIndex(),t.updateSlidesClasses()}let $;t.params.freeMode?(G(),t.params.autoHeight&&t.updateAutoHeight()):((t.params.slidesPerView==="auto"||t.params.slidesPerView>1)&&t.isEnd&&!t.params.centeredSlides?$=t.slideTo(t.slides.length-1,0,!1,!0):$=t.slideTo(t.activeIndex,0,!1,!0),$||G()),k.watchOverflow&&T!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,T=!0){const k=this,G=k.params.direction;return t||(t=G==="horizontal"?"vertical":"horizontal"),t===G||t!=="horizontal"&&t!=="vertical"||(k.$el.removeClass(`${k.params.containerModifierClass}${G}`).addClass(`${k.params.containerModifierClass}${t}`),k.params.direction=t,k.slides.each(($,de)=>{t==="vertical"?de.style.width="":de.style.height=""}),k.emit("changeDirection"),T&&k.update()),k}init(){const t=this;if(t.initialized)return;t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.params.loop&&t.loopCreate(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.setGrabCursor(),t.params.preloadImages&&t.preloadImages(),t.params.loop?t.slideTo(t.params.initialSlide+t.loopedSlides,0,t.params.runCallbacksOnInit):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit),t.attachEvents(),t.initialized=!0,t.emit("init")}destroy(t=!0,T=!0){const k=this,{params:G,$el:$,$wrapperEl:de,slides:xe}=k;return typeof k.params=="undefined"||k.destroyed||(k.emit("beforeDestroy"),k.initialized=!1,k.detachEvents(),G.loop&&k.loopDestroy(),T&&(k.removeClasses(),$.removeAttr("style"),de.removeAttr("style"),xe&&xe.length&&xe.removeClass([G.slideVisibleClass,G.slideActiveClass,G.slideNextClass,G.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),k.emit("destroy"),Object.keys(k.eventsListeners).forEach(Oe=>{k.off(Oe)}),t!==!1&&(k.$el[0].swiper=null,k.$el.data("swiper",null),ue.deleteProps(k)),k.destroyed=!0),null}static extendDefaults(t){ue.extend(Ei,t)}static get extendedDefaults(){return Ei}static get defaults(){return ki}static get Class(){return V}static get $(){return g}}var Bi={name:"device",proto:{device:_n},static:{device:_n}},Li={name:"support",proto:{support:ae},static:{support:ae}};const Ci=function(){function T(){const k=c.navigator.userAgent.toLowerCase();return k.indexOf("safari")>=0&&k.indexOf("chrome")<0&&k.indexOf("android")<0}return{isEdge:!!c.navigator.userAgent.match(/Edge/g),isSafari:T(),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(c.navigator.userAgent)}}();var Rn={name:"browser",proto:{browser:Ci},static:{browser:Ci}},ri={name:"resize",create(){const t=this;ue.extend(t,{resize:{resizeHandler(){if(!t||t.destroyed||!t.initialized)return;t.emit("beforeResize"),t.emit("resize")},orientationChangeHandler(){if(!t||t.destroyed||!t.initialized)return;t.emit("orientationchange")}}})},on:{init(){const t=this;c.addEventListener("resize",t.resize.resizeHandler),c.addEventListener("orientationchange",t.resize.orientationChangeHandler)},destroy(){const t=this;c.removeEventListener("resize",t.resize.resizeHandler),c.removeEventListener("orientationchange",t.resize.orientationChangeHandler)}}};const pi={func:c.MutationObserver||c.WebkitMutationObserver,attach(t,T={}){const k=this,G=pi.func,$=new G(de=>{if(de.length===1){k.emit("observerUpdate",de[0]);return}const xe=function(){k.emit("observerUpdate",de[0])};c.requestAnimationFrame?c.requestAnimationFrame(xe):c.setTimeout(xe,0)});$.observe(t,{attributes:typeof T.attributes=="undefined"?!0:T.attributes,childList:typeof T.childList=="undefined"?!0:T.childList,characterData:typeof T.characterData=="undefined"?!0:T.characterData}),k.observer.observers.push($)},init(){const t=this;if(!ae.observer||!t.params.observer)return;if(t.params.observeParents){const T=t.$el.parents();for(let k=0;k<T.length;k+=1)t.observer.attach(T[k])}t.observer.attach(t.$el[0],{childList:t.params.observeSlideChildren}),t.observer.attach(t.$wrapperEl[0],{attributes:!1})},destroy(){const t=this;t.observer.observers.forEach(T=>{T.disconnect()}),t.observer.observers=[]}};var oi={name:"observer",params:{observer:!1,observeParents:!1,observeSlideChildren:!1},create(){const t=this;ue.extend(t,{observer:{init:pi.init.bind(t),attach:pi.attach.bind(t),destroy:pi.destroy.bind(t),observers:[]}})},on:{init(){const t=this;t.observer.init()},destroy(){const t=this;t.observer.destroy()}}};const ei={update(t){const T=this,{slidesPerView:k,slidesPerGroup:G,centeredSlides:$}=T.params,{addSlidesBefore:de,addSlidesAfter:xe}=T.params.virtual,{from:Oe,to:ke,slides:Fe,slidesGrid:Qe,renderSlide:yt,offset:mt}=T.virtual;T.updateActiveIndex();const Ct=T.activeIndex||0;let At;T.rtlTranslate?At="right":At=T.isHorizontal()?"left":"top";let kt,Kt;$?(kt=Math.floor(k/2)+G+de,Kt=Math.floor(k/2)+G+xe):(kt=k+(G-1)+de,Kt=G+xe);const vt=Math.max((Ct||0)-Kt,0),Wt=Math.min((Ct||0)+kt,Fe.length-1),Xt=(T.slidesGrid[vt]||0)-(T.slidesGrid[0]||0);ue.extend(T.virtual,{from:vt,to:Wt,offset:Xt,slidesGrid:T.slidesGrid});function rn(){T.updateSlides(),T.updateProgress(),T.updateSlidesClasses(),T.lazy&&T.params.lazy.enabled&&T.lazy.load()}if(Oe===vt&&ke===Wt&&!t){T.slidesGrid!==Qe&&Xt!==mt&&T.slides.css(At,`${Xt}px`),T.updateProgress();return}if(T.params.virtual.renderExternal){T.params.virtual.renderExternal.call(T,{offset:Xt,from:vt,to:Wt,slides:function(){const gn=[];for(let bn=vt;bn<=Wt;bn+=1)gn.push(Fe[bn]);return gn}()}),rn();return}const sn=[],on=[];if(t)T.$wrapperEl.find(`.${T.params.slideClass}`).remove();else for(let en=Oe;en<=ke;en+=1)(en<vt||en>Wt)&&T.$wrapperEl.find(`.${T.params.slideClass}[data-swiper-slide-index="${en}"]`).remove();for(let en=0;en<Fe.length;en+=1)en>=vt&&en<=Wt&&(typeof ke=="undefined"||t?on.push(en):(en>ke&&on.push(en),en<Oe&&sn.push(en)));on.forEach(en=>{T.$wrapperEl.append(yt(Fe[en],en))}),sn.sort((en,gn)=>gn-en).forEach(en=>{T.$wrapperEl.prepend(yt(Fe[en],en))}),T.$wrapperEl.children(".swiper-slide").css(At,`${Xt}px`),rn()},renderSlide(t,T){const k=this,G=k.params.virtual;if(G.cache&&k.virtual.cache[T])return k.virtual.cache[T];const $=G.renderSlide?g(G.renderSlide.call(k,t,T)):g(`<div class="${k.params.slideClass}" data-swiper-slide-index="${T}">${t}</div>`);return $.attr("data-swiper-slide-index")||$.attr("data-swiper-slide-index",T),G.cache&&(k.virtual.cache[T]=$),$},appendSlide(t){const T=this;if(typeof t=="object"&&"length"in t)for(let k=0;k<t.length;k+=1)t[k]&&T.virtual.slides.push(t[k]);else T.virtual.slides.push(t);T.virtual.update(!0)},prependSlide(t){const T=this,k=T.activeIndex;let G=k+1,$=1;if(Array.isArray(t)){for(let de=0;de<t.length;de+=1)t[de]&&T.virtual.slides.unshift(t[de]);G=k+t.length,$=t.length}else T.virtual.slides.unshift(t);if(T.params.virtual.cache){const de=T.virtual.cache,xe={};Object.keys(de).forEach(Oe=>{const ke=de[Oe],Fe=ke.attr("data-swiper-slide-index");Fe&&ke.attr("data-swiper-slide-index",parseInt(Fe,10)+1),xe[parseInt(Oe,10)+$]=ke}),T.virtual.cache=xe}T.virtual.update(!0),T.slideTo(G,0)},removeSlide(t){const T=this;if(typeof t=="undefined"||t===null)return;let k=T.activeIndex;if(Array.isArray(t))for(let G=t.length-1;G>=0;G-=1)T.virtual.slides.splice(t[G],1),T.params.virtual.cache&&delete T.virtual.cache[t[G]],t[G]<k&&(k-=1),k=Math.max(k,0);else T.virtual.slides.splice(t,1),T.params.virtual.cache&&delete T.virtual.cache[t],t<k&&(k-=1),k=Math.max(k,0);T.virtual.update(!0),T.slideTo(k,0)},removeAllSlides(){const t=this;t.virtual.slides=[],t.params.virtual.cache&&(t.virtual.cache={}),t.virtual.update(!0),t.slideTo(0,0)}};var Xi={name:"virtual",params:{virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,addSlidesBefore:0,addSlidesAfter:0}},create(){const t=this;ue.extend(t,{virtual:{update:ei.update.bind(t),appendSlide:ei.appendSlide.bind(t),prependSlide:ei.prependSlide.bind(t),removeSlide:ei.removeSlide.bind(t),removeAllSlides:ei.removeAllSlides.bind(t),renderSlide:ei.renderSlide.bind(t),slides:t.params.virtual.slides,cache:{}}})},on:{beforeInit(){const t=this;if(!t.params.virtual.enabled)return;t.classNames.push(`${t.params.containerModifierClass}virtual`);const T={watchSlidesProgress:!0};ue.extend(t.params,T),ue.extend(t.originalParams,T),t.params.initialSlide||t.virtual.update()},setTranslate(){const t=this;if(!t.params.virtual.enabled)return;t.virtual.update()}}};const un={handle(t){const T=this,{rtlTranslate:k}=T;let G=t;G.originalEvent&&(G=G.originalEvent);const $=G.keyCode||G.charCode,de=T.params.keyboard.pageUpDown,xe=de&&$===33,Oe=de&&$===34,ke=$===37,Fe=$===39,Qe=$===38,yt=$===40;if(!T.allowSlideNext&&(T.isHorizontal()&&Fe||T.isVertical()&&yt||Oe))return!1;if(!T.allowSlidePrev&&(T.isHorizontal()&&ke||T.isVertical()&&Qe||xe))return!1;if(G.shiftKey||G.altKey||G.ctrlKey||G.metaKey)return;if(L.activeElement&&L.activeElement.nodeName&&(L.activeElement.nodeName.toLowerCase()==="input"||L.activeElement.nodeName.toLowerCase()==="textarea"))return;if(T.params.keyboard.onlyInViewport&&(xe||Oe||ke||Fe||Qe||yt)){let mt=!1;if(T.$el.parents(`.${T.params.slideClass}`).length>0&&T.$el.parents(`.${T.params.slideActiveClass}`).length===0)return;const Ct=c.innerWidth,At=c.innerHeight,kt=T.$el.offset();k&&(kt.left-=T.$el[0].scrollLeft);const Kt=[[kt.left,kt.top],[kt.left+T.width,kt.top],[kt.left,kt.top+T.height],[kt.left+T.width,kt.top+T.height]];for(let vt=0;vt<Kt.length;vt+=1){const Wt=Kt[vt];Wt[0]>=0&&Wt[0]<=Ct&&Wt[1]>=0&&Wt[1]<=At&&(mt=!0)}if(!mt)return}T.isHorizontal()?((xe||Oe||ke||Fe)&&(G.preventDefault?G.preventDefault():G.returnValue=!1),((Oe||Fe)&&!k||(xe||ke)&&k)&&T.slideNext(),((xe||ke)&&!k||(Oe||Fe)&&k)&&T.slidePrev()):((xe||Oe||Qe||yt)&&(G.preventDefault?G.preventDefault():G.returnValue=!1),(Oe||yt)&&T.slideNext(),(xe||Qe)&&T.slidePrev()),T.emit("keyPress",$);return},enable(){const t=this;if(t.keyboard.enabled)return;g(L).on("keydown",t.keyboard.handle),t.keyboard.enabled=!0},disable(){const t=this;if(!t.keyboard.enabled)return;g(L).off("keydown",t.keyboard.handle),t.keyboard.enabled=!1}};var In={name:"keyboard",params:{keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}},create(){const t=this;ue.extend(t,{keyboard:{enabled:!1,enable:un.enable.bind(t),disable:un.disable.bind(t),handle:un.handle.bind(t)}})},on:{init(){const t=this;t.params.keyboard.enabled&&t.keyboard.enable()},destroy(){const t=this;t.keyboard.enabled&&t.keyboard.disable()}}};function Ti(){const t="onwheel";let T=t in L;if(!T){const k=L.createElement("div");k.setAttribute(t,"return;"),T=typeof k[t]=="function"}return!T&&L.implementation&&L.implementation.hasFeature&&L.implementation.hasFeature("","")!==!0&&(T=L.implementation.hasFeature("Events.wheel","3.0")),T}const ui={lastScrollTime:ue.now(),lastEventBeforeSnap:void 0,recentWheelEvents:[],event(){return c.navigator.userAgent.indexOf("firefox")>-1?"DOMMouseScroll":Ti()?"wheel":"mousewheel"},normalize(t){const T=10,k=40,G=800;let $=0,de=0,xe=0,Oe=0;return"detail"in t&&(de=t.detail),"wheelDelta"in t&&(de=-t.wheelDelta/120),"wheelDeltaY"in t&&(de=-t.wheelDeltaY/120),"wheelDeltaX"in t&&($=-t.wheelDeltaX/120),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&($=de,de=0),xe=$*T,Oe=de*T,"deltaY"in t&&(Oe=t.deltaY),"deltaX"in t&&(xe=t.deltaX),t.shiftKey&&!xe&&(xe=Oe,Oe=0),(xe||Oe)&&t.deltaMode&&(t.deltaMode===1?(xe*=k,Oe*=k):(xe*=G,Oe*=G)),xe&&!$&&($=xe<1?-1:1),Oe&&!de&&(de=Oe<1?-1:1),{spinX:$,spinY:de,pixelX:xe,pixelY:Oe}},handleMouseEnter(){const t=this;t.mouseEntered=!0},handleMouseLeave(){const t=this;t.mouseEntered=!1},handle(t){let T=t;const k=this,G=k.params.mousewheel;k.params.cssMode&&T.preventDefault();let $=k.$el;if(k.params.mousewheel.eventsTarged!=="container"&&($=g(k.params.mousewheel.eventsTarged)),!k.mouseEntered&&!$[0].contains(T.target)&&!G.releaseOnEdges)return!0;T.originalEvent&&(T=T.originalEvent);let de=0;const xe=k.rtlTranslate?-1:1,Oe=ui.normalize(T);if(G.forceToAxis)if(k.isHorizontal())if(Math.abs(Oe.pixelX)>Math.abs(Oe.pixelY))de=-Oe.pixelX*xe;else return!0;else if(Math.abs(Oe.pixelY)>Math.abs(Oe.pixelX))de=-Oe.pixelY;else return!0;else de=Math.abs(Oe.pixelX)>Math.abs(Oe.pixelY)?-Oe.pixelX*xe:-Oe.pixelY;if(de===0)return!0;if(G.invert&&(de=-de),k.params.freeMode){const ke={time:ue.now(),delta:Math.abs(de),direction:Math.sign(de)},{lastEventBeforeSnap:Fe}=k.mousewheel,Qe=Fe&&ke.time<Fe.time+500&&ke.delta<=Fe.delta&&ke.direction===Fe.direction;if(!Qe){k.mousewheel.lastEventBeforeSnap=void 0,k.params.loop&&k.loopFix();let yt=k.getTranslate()+de*G.sensitivity;const mt=k.isBeginning,Ct=k.isEnd;if(yt>=k.minTranslate()&&(yt=k.minTranslate()),yt<=k.maxTranslate()&&(yt=k.maxTranslate()),k.setTransition(0),k.setTranslate(yt),k.updateProgress(),k.updateActiveIndex(),k.updateSlidesClasses(),(!mt&&k.isBeginning||!Ct&&k.isEnd)&&k.updateSlidesClasses(),k.params.freeModeSticky){clearTimeout(k.mousewheel.timeout),k.mousewheel.timeout=void 0;const At=k.mousewheel.recentWheelEvents;At.length>=15&&At.shift();const kt=At.length?At[At.length-1]:void 0,Kt=At[0];if(At.push(ke),kt&&(ke.delta>kt.delta||ke.direction!==kt.direction))At.splice(0);else if(At.length>=15&&ke.time-Kt.time<500&&Kt.delta-ke.delta>=1&&ke.delta<=6){const vt=de>0?.8:.2;k.mousewheel.lastEventBeforeSnap=ke,At.splice(0),k.mousewheel.timeout=ue.nextTick(()=>{k.slideToClosest(k.params.speed,!0,void 0,vt)},0)}k.mousewheel.timeout||(k.mousewheel.timeout=ue.nextTick(()=>{const vt=.5;k.mousewheel.lastEventBeforeSnap=ke,At.splice(0),k.slideToClosest(k.params.speed,!0,void 0,vt)},500))}if(Qe||k.emit("scroll",T),k.params.autoplay&&k.params.autoplayDisableOnInteraction&&k.autoplay.stop(),yt===k.minTranslate()||yt===k.maxTranslate())return!0}}else{const ke={time:ue.now(),delta:Math.abs(de),direction:Math.sign(de),raw:t},Fe=k.mousewheel.recentWheelEvents;Fe.length>=2&&Fe.shift();const Qe=Fe.length?Fe[Fe.length-1]:void 0;if(Fe.push(ke),Qe?(ke.direction!==Qe.direction||ke.delta>Qe.delta||ke.time>Qe.time+150)&&k.mousewheel.animateSlider(ke):k.mousewheel.animateSlider(ke),k.mousewheel.releaseScroll(ke))return!0}return T.preventDefault?T.preventDefault():T.returnValue=!1,!1},animateSlider(t){const T=this;return t.delta>=6&&ue.now()-T.mousewheel.lastScrollTime<60?!0:(t.direction<0?(!T.isEnd||T.params.loop)&&!T.animating&&(T.slideNext(),T.emit("scroll",t.raw)):(!T.isBeginning||T.params.loop)&&!T.animating&&(T.slidePrev(),T.emit("scroll",t.raw)),T.mousewheel.lastScrollTime=new c.Date().getTime(),!1)},releaseScroll(t){const T=this,k=T.params.mousewheel;if(t.direction<0){if(T.isEnd&&!T.params.loop&&k.releaseOnEdges)return!0}else if(T.isBeginning&&!T.params.loop&&k.releaseOnEdges)return!0;return!1},enable(){const t=this,T=ui.event();if(t.params.cssMode)return t.wrapperEl.removeEventListener(T,t.mousewheel.handle),!0;if(!T)return!1;if(t.mousewheel.enabled)return!1;let k=t.$el;return t.params.mousewheel.eventsTarged!=="container"&&(k=g(t.params.mousewheel.eventsTarged)),k.on("mouseenter",t.mousewheel.handleMouseEnter),k.on("mouseleave",t.mousewheel.handleMouseLeave),k.on(T,t.mousewheel.handle),t.mousewheel.enabled=!0,!0},disable(){const t=this,T=ui.event();if(t.params.cssMode)return t.wrapperEl.addEventListener(T,t.mousewheel.handle),!0;if(!T)return!1;if(!t.mousewheel.enabled)return!1;let k=t.$el;return t.params.mousewheel.eventsTarged!=="container"&&(k=g(t.params.mousewheel.eventsTarged)),k.off(T,t.mousewheel.handle),t.mousewheel.enabled=!1,!0}};var Di={name:"mousewheel",params:{mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarged:"container"}},create(){const t=this;ue.extend(t,{mousewheel:{enabled:!1,enable:ui.enable.bind(t),disable:ui.disable.bind(t),handle:ui.handle.bind(t),handleMouseEnter:ui.handleMouseEnter.bind(t),handleMouseLeave:ui.handleMouseLeave.bind(t),animateSlider:ui.animateSlider.bind(t),releaseScroll:ui.releaseScroll.bind(t),lastScrollTime:ue.now(),lastEventBeforeSnap:void 0,recentWheelEvents:[]}})},on:{init(){const t=this;!t.params.mousewheel.enabled&&t.params.cssMode&&t.mousewheel.disable(),t.params.mousewheel.enabled&&t.mousewheel.enable()},destroy(){const t=this;t.params.cssMode&&t.mousewheel.enable(),t.mousewheel.enabled&&t.mousewheel.disable()}}};const Ri={update(){const t=this,T=t.params.navigation;if(t.params.loop)return;const{$nextEl:k,$prevEl:G}=t.navigation;G&&G.length>0&&(t.isBeginning?G.addClass(T.disabledClass):G.removeClass(T.disabledClass),G[t.params.watchOverflow&&t.isLocked?"addClass":"removeClass"](T.lockClass)),k&&k.length>0&&(t.isEnd?k.addClass(T.disabledClass):k.removeClass(T.disabledClass),k[t.params.watchOverflow&&t.isLocked?"addClass":"removeClass"](T.lockClass))},onPrevClick(t){const T=this;if(t.preventDefault(),T.isBeginning&&!T.params.loop)return;T.slidePrev()},onNextClick(t){const T=this;if(t.preventDefault(),T.isEnd&&!T.params.loop)return;T.slideNext()},init(){const t=this,T=t.params.navigation;if(!(T.nextEl||T.prevEl))return;let k,G;T.nextEl&&(k=g(T.nextEl),t.params.uniqueNavElements&&typeof T.nextEl=="string"&&k.length>1&&t.$el.find(T.nextEl).length===1&&(k=t.$el.find(T.nextEl))),T.prevEl&&(G=g(T.prevEl),t.params.uniqueNavElements&&typeof T.prevEl=="string"&&G.length>1&&t.$el.find(T.prevEl).length===1&&(G=t.$el.find(T.prevEl))),k&&k.length>0&&k.on("click",t.navigation.onNextClick),G&&G.length>0&&G.on("click",t.navigation.onPrevClick),ue.extend(t.navigation,{$nextEl:k,nextEl:k&&k[0],$prevEl:G,prevEl:G&&G[0]})},destroy(){const t=this,{$nextEl:T,$prevEl:k}=t.navigation;T&&T.length&&(T.off("click",t.navigation.onNextClick),T.removeClass(t.params.navigation.disabledClass)),k&&k.length&&(k.off("click",t.navigation.onPrevClick),k.removeClass(t.params.navigation.disabledClass))}};var Qi={name:"navigation",params:{navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}},create(){const t=this;ue.extend(t,{navigation:{init:Ri.init.bind(t),update:Ri.update.bind(t),destroy:Ri.destroy.bind(t),onNextClick:Ri.onNextClick.bind(t),onPrevClick:Ri.onPrevClick.bind(t)}})},on:{init(){const t=this;t.navigation.init(),t.navigation.update()},toEdge(){const t=this;t.navigation.update()},fromEdge(){const t=this;t.navigation.update()},destroy(){const t=this;t.navigation.destroy()},click(t){const T=this,{$nextEl:k,$prevEl:G}=T.navigation;if(T.params.navigation.hideOnClick&&!g(t.target).is(G)&&!g(t.target).is(k)){let $;k?$=k.hasClass(T.params.navigation.hiddenClass):G&&($=G.hasClass(T.params.navigation.hiddenClass)),$===!0?T.emit("navigationShow",T):T.emit("navigationHide",T),k&&k.toggleClass(T.params.navigation.hiddenClass),G&&G.toggleClass(T.params.navigation.hiddenClass)}}}};const Ni={update(){const t=this,T=t.rtl,k=t.params.pagination;if(!k.el||!t.pagination.el||!t.pagination.$el||t.pagination.$el.length===0)return;const G=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,$=t.pagination.$el;let de;const xe=t.params.loop?Math.ceil((G-t.loopedSlides*2)/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(de=Math.ceil((t.activeIndex-t.loopedSlides)/t.params.slidesPerGroup),de>G-1-t.loopedSlides*2&&(de-=G-t.loopedSlides*2),de>xe-1&&(de-=xe),de<0&&t.params.paginationType!=="bullets"&&(de=xe+de)):typeof t.snapIndex!="undefined"?de=t.snapIndex:de=t.activeIndex||0,k.type==="bullets"&&t.pagination.bullets&&t.pagination.bullets.length>0){const Oe=t.pagination.bullets;let ke,Fe,Qe;if(k.dynamicBullets&&(t.pagination.bulletSize=Oe.eq(0)[t.isHorizontal()?"outerWidth":"outerHeight"](!0),$.css(t.isHorizontal()?"width":"height",`${t.pagination.bulletSize*(k.dynamicMainBullets+4)}px`),k.dynamicMainBullets>1&&t.previousIndex!==void 0&&(t.pagination.dynamicBulletIndex+=de-t.previousIndex,t.pagination.dynamicBulletIndex>k.dynamicMainBullets-1?t.pagination.dynamicBulletIndex=k.dynamicMainBullets-1:t.pagination.dynamicBulletIndex<0&&(t.pagination.dynamicBulletIndex=0)),ke=de-t.pagination.dynamicBulletIndex,Fe=ke+(Math.min(Oe.length,k.dynamicMainBullets)-1),Qe=(Fe+ke)/2),Oe.removeClass(`${k.bulletActiveClass} ${k.bulletActiveClass}-next ${k.bulletActiveClass}-next-next ${k.bulletActiveClass}-prev ${k.bulletActiveClass}-prev-prev ${k.bulletActiveClass}-main`),$.length>1)Oe.each((yt,mt)=>{const Ct=g(mt),At=Ct.index();At===de&&Ct.addClass(k.bulletActiveClass),k.dynamicBullets&&(At>=ke&&At<=Fe&&Ct.addClass(`${k.bulletActiveClass}-main`),At===ke&&Ct.prev().addClass(`${k.bulletActiveClass}-prev`).prev().addClass(`${k.bulletActiveClass}-prev-prev`),At===Fe&&Ct.next().addClass(`${k.bulletActiveClass}-next`).next().addClass(`${k.bulletActiveClass}-next-next`))});else{const yt=Oe.eq(de),mt=yt.index();if(yt.addClass(k.bulletActiveClass),k.dynamicBullets){const Ct=Oe.eq(ke),At=Oe.eq(Fe);for(let kt=ke;kt<=Fe;kt+=1)Oe.eq(kt).addClass(`${k.bulletActiveClass}-main`);if(t.params.loop)if(mt>=Oe.length-k.dynamicMainBullets){for(let kt=k.dynamicMainBullets;kt>=0;kt-=1)Oe.eq(Oe.length-kt).addClass(`${k.bulletActiveClass}-main`);Oe.eq(Oe.length-k.dynamicMainBullets-1).addClass(`${k.bulletActiveClass}-prev`)}else Ct.prev().addClass(`${k.bulletActiveClass}-prev`).prev().addClass(`${k.bulletActiveClass}-prev-prev`),At.next().addClass(`${k.bulletActiveClass}-next`).next().addClass(`${k.bulletActiveClass}-next-next`);else Ct.prev().addClass(`${k.bulletActiveClass}-prev`).prev().addClass(`${k.bulletActiveClass}-prev-prev`),At.next().addClass(`${k.bulletActiveClass}-next`).next().addClass(`${k.bulletActiveClass}-next-next`)}}if(k.dynamicBullets){const yt=Math.min(Oe.length,k.dynamicMainBullets+4),mt=(t.pagination.bulletSize*yt-t.pagination.bulletSize)/2-Qe*t.pagination.bulletSize,Ct=T?"right":"left";Oe.css(t.isHorizontal()?Ct:"top",`${mt}px`)}}if(k.type==="fraction"&&($.find(`.${k.currentClass}`).text(k.formatFractionCurrent(de+1)),$.find(`.${k.totalClass}`).text(k.formatFractionTotal(xe))),k.type==="progressbar"){let Oe;k.progressbarOpposite?Oe=t.isHorizontal()?"vertical":"horizontal":Oe=t.isHorizontal()?"horizontal":"vertical";const ke=(de+1)/xe;let Fe=1,Qe=1;Oe==="horizontal"?Fe=ke:Qe=ke,$.find(`.${k.progressbarFillClass}`).transform(`translate3d(0,0,0) scaleX(${Fe}) scaleY(${Qe})`).transition(t.params.speed)}k.type==="custom"&&k.renderCustom?($.html(k.renderCustom(t,de+1,xe)),t.emit("paginationRender",t,$[0])):t.emit("paginationUpdate",t,$[0]),$[t.params.watchOverflow&&t.isLocked?"addClass":"removeClass"](k.lockClass)},render(){const t=this,T=t.params.pagination;if(!T.el||!t.pagination.el||!t.pagination.$el||t.pagination.$el.length===0)return;const k=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,G=t.pagination.$el;let $="";if(T.type==="bullets"){const de=t.params.loop?Math.ceil((k-t.loopedSlides*2)/t.params.slidesPerGroup):t.snapGrid.length;for(let xe=0;xe<de;xe+=1)T.renderBullet?$+=T.renderBullet.call(t,xe,T.bulletClass):$+=`<${T.bulletElement} class="${T.bulletClass}"></${T.bulletElement}>`;G.html($),t.pagination.bullets=G.find(`.${T.bulletClass}`)}T.type==="fraction"&&(T.renderFraction?$=T.renderFraction.call(t,T.currentClass,T.totalClass):$=`<span class="${T.currentClass}"></span> / <span class="${T.totalClass}"></span>`,G.html($)),T.type==="progressbar"&&(T.renderProgressbar?$=T.renderProgressbar.call(t,T.progressbarFillClass):$=`<span class="${T.progressbarFillClass}"></span>`,G.html($)),T.type!=="custom"&&t.emit("paginationRender",t.pagination.$el[0])},init(){const t=this,T=t.params.pagination;if(!T.el)return;let k=g(T.el);if(k.length===0)return;t.params.uniqueNavElements&&typeof T.el=="string"&&k.length>1&&(k=t.$el.find(T.el)),T.type==="bullets"&&T.clickable&&k.addClass(T.clickableClass),k.addClass(T.modifierClass+T.type),T.type==="bullets"&&T.dynamicBullets&&(k.addClass(`${T.modifierClass}${T.type}-dynamic`),t.pagination.dynamicBulletIndex=0,T.dynamicMainBullets<1&&(T.dynamicMainBullets=1)),T.type==="progressbar"&&T.progressbarOpposite&&k.addClass(T.progressbarOppositeClass),T.clickable&&k.on("click",`.${T.bulletClass}`,function($){$.preventDefault();let de=g(this).index()*t.params.slidesPerGroup;t.params.loop&&(de+=t.loopedSlides),t.slideTo(de)}),ue.extend(t.pagination,{$el:k,el:k[0]})},destroy(){const t=this,T=t.params.pagination;if(!T.el||!t.pagination.el||!t.pagination.$el||t.pagination.$el.length===0)return;const k=t.pagination.$el;k.removeClass(T.hiddenClass),k.removeClass(T.modifierClass+T.type),t.pagination.bullets&&t.pagination.bullets.removeClass(T.bulletActiveClass),T.clickable&&k.off("click",`.${T.bulletClass}`)}};var ti={name:"pagination",params:{pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:t=>t,formatFractionTotal:t=>t,bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",modifierClass:"swiper-pagination-",currentClass:"swiper-pagination-current",totalClass:"swiper-pagination-total",hiddenClass:"swiper-pagination-hidden",progressbarFillClass:"swiper-pagination-progressbar-fill",progressbarOppositeClass:"swiper-pagination-progressbar-opposite",clickableClass:"swiper-pagination-clickable",lockClass:"swiper-pagination-lock"}},create(){const t=this;ue.extend(t,{pagination:{init:Ni.init.bind(t),render:Ni.render.bind(t),update:Ni.update.bind(t),destroy:Ni.destroy.bind(t),dynamicBulletIndex:0}})},on:{init(){const t=this;t.pagination.init(),t.pagination.render(),t.pagination.update()},activeIndexChange(){const t=this;(t.params.loop||typeof t.snapIndex=="undefined")&&t.pagination.update()},snapIndexChange(){const t=this;t.params.loop||t.pagination.update()},slidesLengthChange(){const t=this;t.params.loop&&(t.pagination.render(),t.pagination.update())},snapGridLengthChange(){const t=this;t.params.loop||(t.pagination.render(),t.pagination.update())},destroy(){const t=this;t.pagination.destroy()},click(t){const T=this;if(T.params.pagination.el&&T.params.pagination.hideOnClick&&T.pagination.$el.length>0&&!g(t.target).hasClass(T.params.pagination.bulletClass)){const k=T.pagination.$el.hasClass(T.params.pagination.hiddenClass);k===!0?T.emit("paginationShow",T):T.emit("paginationHide",T),T.pagination.$el.toggleClass(T.params.pagination.hiddenClass)}}}};const ai={setTranslate(){const t=this;if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:T,rtlTranslate:k,progress:G}=t,{dragSize:$,trackSize:de,$dragEl:xe,$el:Oe}=T,ke=t.params.scrollbar;let Fe=$,Qe=(de-$)*G;k?(Qe=-Qe,Qe>0?(Fe=$-Qe,Qe=0):-Qe+$>de&&(Fe=de+Qe)):Qe<0?(Fe=$+Qe,Qe=0):Qe+$>de&&(Fe=de-Qe),t.isHorizontal()?(xe.transform(`translate3d(${Qe}px, 0, 0)`),xe[0].style.width=`${Fe}px`):(xe.transform(`translate3d(0px, ${Qe}px, 0)`),xe[0].style.height=`${Fe}px`),ke.hide&&(clearTimeout(t.scrollbar.timeout),Oe[0].style.opacity=1,t.scrollbar.timeout=setTimeout(()=>{Oe[0].style.opacity=0,Oe.transition(400)},1e3))},setTransition(t){const T=this;if(!T.params.scrollbar.el||!T.scrollbar.el)return;T.scrollbar.$dragEl.transition(t)},updateSize(){const t=this;if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:T}=t,{$dragEl:k,$el:G}=T;k[0].style.width="",k[0].style.height="";const $=t.isHorizontal()?G[0].offsetWidth:G[0].offsetHeight,de=t.size/t.virtualSize,xe=de*($/t.size);let Oe;t.params.scrollbar.dragSize==="auto"?Oe=$*de:Oe=parseInt(t.params.scrollbar.dragSize,10),t.isHorizontal()?k[0].style.width=`${Oe}px`:k[0].style.height=`${Oe}px`,de>=1?G[0].style.display="none":G[0].style.display="",t.params.scrollbar.hide&&(G[0].style.opacity=0),ue.extend(T,{trackSize:$,divider:de,moveDivider:xe,dragSize:Oe}),T.$el[t.params.watchOverflow&&t.isLocked?"addClass":"removeClass"](t.params.scrollbar.lockClass)},getPointerPosition(t){const T=this;return T.isHorizontal()?t.type==="touchstart"||t.type==="touchmove"?t.targetTouches[0].clientX:t.clientX:t.type==="touchstart"||t.type==="touchmove"?t.targetTouches[0].clientY:t.clientY},setDragPosition(t){const T=this,{scrollbar:k,rtlTranslate:G}=T,{$el:$,dragSize:de,trackSize:xe,dragStartPos:Oe}=k;let ke;ke=(k.getPointerPosition(t)-$.offset()[T.isHorizontal()?"left":"top"]-(Oe!==null?Oe:de/2))/(xe-de),ke=Math.max(Math.min(ke,1),0),G&&(ke=1-ke);const Fe=T.minTranslate()+(T.maxTranslate()-T.minTranslate())*ke;T.updateProgress(Fe),T.setTranslate(Fe),T.updateActiveIndex(),T.updateSlidesClasses()},onDragStart(t){const T=this,k=T.params.scrollbar,{scrollbar:G,$wrapperEl:$}=T,{$el:de,$dragEl:xe}=G;T.scrollbar.isTouched=!0,T.scrollbar.dragStartPos=t.target===xe[0]||t.target===xe?G.getPointerPosition(t)-t.target.getBoundingClientRect()[T.isHorizontal()?"left":"top"]:null,t.preventDefault(),t.stopPropagation(),$.transition(100),xe.transition(100),G.setDragPosition(t),clearTimeout(T.scrollbar.dragTimeout),de.transition(0),k.hide&&de.css("opacity",1),T.params.cssMode&&T.$wrapperEl.css("scroll-snap-type","none"),T.emit("scrollbarDragStart",t)},onDragMove(t){const T=this,{scrollbar:k,$wrapperEl:G}=T,{$el:$,$dragEl:de}=k;if(!T.scrollbar.isTouched)return;t.preventDefault?t.preventDefault():t.returnValue=!1,k.setDragPosition(t),G.transition(0),$.transition(0),de.transition(0),T.emit("scrollbarDragMove",t)},onDragEnd(t){const T=this,k=T.params.scrollbar,{scrollbar:G,$wrapperEl:$}=T,{$el:de}=G;if(!T.scrollbar.isTouched)return;T.scrollbar.isTouched=!1,T.params.cssMode&&(T.$wrapperEl.css("scroll-snap-type",""),$.transition("")),k.hide&&(clearTimeout(T.scrollbar.dragTimeout),T.scrollbar.dragTimeout=ue.nextTick(()=>{de.css("opacity",0),de.transition(400)},1e3)),T.emit("scrollbarDragEnd",t),k.snapOnRelease&&T.slideToClosest()},enableDraggable(){const t=this;if(!t.params.scrollbar.el)return;const{scrollbar:T,touchEventsTouch:k,touchEventsDesktop:G,params:$}=t,de=T.$el,xe=de[0],Oe=ae.passiveListener&&$.passiveListeners?{passive:!1,capture:!1}:!1,ke=ae.passiveListener&&$.passiveListeners?{passive:!0,capture:!1}:!1;ae.touch?(xe.addEventListener(k.start,t.scrollbar.onDragStart,Oe),xe.addEventListener(k.move,t.scrollbar.onDragMove,Oe),xe.addEventListener(k.end,t.scrollbar.onDragEnd,ke)):(xe.addEventListener(G.start,t.scrollbar.onDragStart,Oe),L.addEventListener(G.move,t.scrollbar.onDragMove,Oe),L.addEventListener(G.end,t.scrollbar.onDragEnd,ke))},disableDraggable(){const t=this;if(!t.params.scrollbar.el)return;const{scrollbar:T,touchEventsTouch:k,touchEventsDesktop:G,params:$}=t,de=T.$el,xe=de[0],Oe=ae.passiveListener&&$.passiveListeners?{passive:!1,capture:!1}:!1,ke=ae.passiveListener&&$.passiveListeners?{passive:!0,capture:!1}:!1;ae.touch?(xe.removeEventListener(k.start,t.scrollbar.onDragStart,Oe),xe.removeEventListener(k.move,t.scrollbar.onDragMove,Oe),xe.removeEventListener(k.end,t.scrollbar.onDragEnd,ke)):(xe.removeEventListener(G.start,t.scrollbar.onDragStart,Oe),L.removeEventListener(G.move,t.scrollbar.onDragMove,Oe),L.removeEventListener(G.end,t.scrollbar.onDragEnd,ke))},init(){const t=this;if(!t.params.scrollbar.el)return;const{scrollbar:T,$el:k}=t,G=t.params.scrollbar;let $=g(G.el);t.params.uniqueNavElements&&typeof G.el=="string"&&$.length>1&&k.find(G.el).length===1&&($=k.find(G.el));let de=$.find(`.${t.params.scrollbar.dragClass}`);de.length===0&&(de=g(`<div class="${t.params.scrollbar.dragClass}"></div>`),$.append(de)),ue.extend(T,{$el:$,el:$[0],$dragEl:de,dragEl:de[0]}),G.draggable&&T.enableDraggable()},destroy(){const t=this;t.scrollbar.disableDraggable()}};var Wi={name:"scrollbar",params:{scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag"}},create(){const t=this;ue.extend(t,{scrollbar:{init:ai.init.bind(t),destroy:ai.destroy.bind(t),updateSize:ai.updateSize.bind(t),setTranslate:ai.setTranslate.bind(t),setTransition:ai.setTransition.bind(t),enableDraggable:ai.enableDraggable.bind(t),disableDraggable:ai.disableDraggable.bind(t),setDragPosition:ai.setDragPosition.bind(t),getPointerPosition:ai.getPointerPosition.bind(t),onDragStart:ai.onDragStart.bind(t),onDragMove:ai.onDragMove.bind(t),onDragEnd:ai.onDragEnd.bind(t),isTouched:!1,timeout:null,dragTimeout:null}})},on:{init(){const t=this;t.scrollbar.init(),t.scrollbar.updateSize(),t.scrollbar.setTranslate()},update(){const t=this;t.scrollbar.updateSize()},resize(){const t=this;t.scrollbar.updateSize()},observerUpdate(){const t=this;t.scrollbar.updateSize()},setTranslate(){const t=this;t.scrollbar.setTranslate()},setTransition(t){const T=this;T.scrollbar.setTransition(t)},destroy(){const t=this;t.scrollbar.destroy()}}};const Fi={setTransform(t,T){const k=this,{rtl:G}=k,$=g(t),de=G?-1:1,xe=$.attr("data-swiper-parallax")||"0";let Oe=$.attr("data-swiper-parallax-x"),ke=$.attr("data-swiper-parallax-y");const Fe=$.attr("data-swiper-parallax-scale"),Qe=$.attr("data-swiper-parallax-opacity");if(Oe||ke?(Oe=Oe||"0",ke=ke||"0"):k.isHorizontal()?(Oe=xe,ke="0"):(ke=xe,Oe="0"),Oe.indexOf("%")>=0?Oe=`${parseInt(Oe,10)*T*de}%`:Oe=`${Oe*T*de}px`,ke.indexOf("%")>=0?ke=`${parseInt(ke,10)*T}%`:ke=`${ke*T}px`,typeof Qe!="undefined"&&Qe!==null){const yt=Qe-(Qe-1)*(1-Math.abs(T));$[0].style.opacity=yt}if(typeof Fe=="undefined"||Fe===null)$.transform(`translate3d(${Oe}, ${ke}, 0px)`);else{const yt=Fe-(Fe-1)*(1-Math.abs(T));$.transform(`translate3d(${Oe}, ${ke}, 0px) scale(${yt})`)}},setTranslate(){const t=this,{$el:T,slides:k,progress:G,snapGrid:$}=t;T.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((de,xe)=>{t.parallax.setTransform(xe,G)}),k.each((de,xe)=>{let Oe=xe.progress;t.params.slidesPerGroup>1&&t.params.slidesPerView!=="auto"&&(Oe+=Math.ceil(de/2)-G*($.length-1)),Oe=Math.min(Math.max(Oe,-1),1),g(xe).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((ke,Fe)=>{t.parallax.setTransform(Fe,Oe)})})},setTransition(t=this.params.speed){const T=this,{$el:k}=T;k.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((G,$)=>{const de=g($);let xe=parseInt(de.attr("data-swiper-parallax-duration"),10)||t;t===0&&(xe=0),de.transition(xe)})}};var cr={name:"parallax",params:{parallax:{enabled:!1}},create(){const t=this;ue.extend(t,{parallax:{setTransform:Fi.setTransform.bind(t),setTranslate:Fi.setTranslate.bind(t),setTransition:Fi.setTransition.bind(t)}})},on:{beforeInit(){const t=this;if(!t.params.parallax.enabled)return;t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0},init(){const t=this;if(!t.params.parallax.enabled)return;t.parallax.setTranslate()},setTranslate(){const t=this;if(!t.params.parallax.enabled)return;t.parallax.setTranslate()},setTransition(t){const T=this;if(!T.params.parallax.enabled)return;T.parallax.setTransition(t)}}};const Gi={getDistanceBetweenTouches(t){if(t.targetTouches.length<2)return 1;const T=t.targetTouches[0].pageX,k=t.targetTouches[0].pageY,G=t.targetTouches[1].pageX,$=t.targetTouches[1].pageY,de=Math.sqrt(Ai(G-T,2)+Ai($-k,2));return de},onGestureStart(t){const T=this,k=T.params.zoom,G=T.zoom,{gesture:$}=G;if(G.fakeGestureTouched=!1,G.fakeGestureMoved=!1,!ae.gestures){if(t.type!=="touchstart"||t.type==="touchstart"&&t.targetTouches.length<2)return;G.fakeGestureTouched=!0,$.scaleStart=Gi.getDistanceBetweenTouches(t)}if((!$.$slideEl||!$.$slideEl.length)&&($.$slideEl=g(t.target).closest(`.${T.params.slideClass}`),$.$slideEl.length===0&&($.$slideEl=T.slides.eq(T.activeIndex)),$.$imageEl=$.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),$.$imageWrapEl=$.$imageEl.parent(`.${k.containerClass}`),$.maxRatio=$.$imageWrapEl.attr("data-swiper-zoom")||k.maxRatio,$.$imageWrapEl.length===0)){$.$imageEl=void 0;return}$.$imageEl&&$.$imageEl.transition(0),T.zoom.isScaling=!0},onGestureChange(t){const T=this,k=T.params.zoom,G=T.zoom,{gesture:$}=G;if(!ae.gestures){if(t.type!=="touchmove"||t.type==="touchmove"&&t.targetTouches.length<2)return;G.fakeGestureMoved=!0,$.scaleMove=Gi.getDistanceBetweenTouches(t)}if(!$.$imageEl||$.$imageEl.length===0)return;ae.gestures?G.scale=t.scale*G.currentScale:G.scale=$.scaleMove/$.scaleStart*G.currentScale,G.scale>$.maxRatio&&(G.scale=$.maxRatio-1+Ai(G.scale-$.maxRatio+1,.5)),G.scale<k.minRatio&&(G.scale=k.minRatio+1-Ai(k.minRatio-G.scale+1,.5)),$.$imageEl.transform(`translate3d(0,0,0) scale(${G.scale})`)},onGestureEnd(t){const T=this,k=T.params.zoom,G=T.zoom,{gesture:$}=G;if(!ae.gestures){if(!G.fakeGestureTouched||!G.fakeGestureMoved)return;if(t.type!=="touchend"||t.type==="touchend"&&t.changedTouches.length<2&&!_n.android)return;G.fakeGestureTouched=!1,G.fakeGestureMoved=!1}if(!$.$imageEl||$.$imageEl.length===0)return;G.scale=Math.max(Math.min(G.scale,$.maxRatio),k.minRatio),$.$imageEl.transition(T.params.speed).transform(`translate3d(0,0,0) scale(${G.scale})`),G.currentScale=G.scale,G.isScaling=!1,G.scale===1&&($.$slideEl=void 0)},onTouchStart(t){const T=this,k=T.zoom,{gesture:G,image:$}=k;if(!G.$imageEl||G.$imageEl.length===0)return;if($.isTouched)return;_n.android&&t.cancelable&&t.preventDefault(),$.isTouched=!0,$.touchesStart.x=t.type==="touchstart"?t.targetTouches[0].pageX:t.pageX,$.touchesStart.y=t.type==="touchstart"?t.targetTouches[0].pageY:t.pageY},onTouchMove(t){const T=this,k=T.zoom,{gesture:G,image:$,velocity:de}=k;if(!G.$imageEl||G.$imageEl.length===0)return;if(T.allowClick=!1,!$.isTouched||!G.$slideEl)return;$.isMoved||($.width=G.$imageEl[0].offsetWidth,$.height=G.$imageEl[0].offsetHeight,$.startX=ue.getTranslate(G.$imageWrapEl[0],"x")||0,$.startY=ue.getTranslate(G.$imageWrapEl[0],"y")||0,G.slideWidth=G.$slideEl[0].offsetWidth,G.slideHeight=G.$slideEl[0].offsetHeight,G.$imageWrapEl.transition(0),T.rtl&&($.startX=-$.startX,$.startY=-$.startY));const xe=$.width*k.scale,Oe=$.height*k.scale;if(xe<G.slideWidth&&Oe<G.slideHeight)return;if($.minX=Math.min(G.slideWidth/2-xe/2,0),$.maxX=-$.minX,$.minY=Math.min(G.slideHeight/2-Oe/2,0),$.maxY=-$.minY,$.touchesCurrent.x=t.type==="touchmove"?t.targetTouches[0].pageX:t.pageX,$.touchesCurrent.y=t.type==="touchmove"?t.targetTouches[0].pageY:t.pageY,!$.isMoved&&!k.isScaling){if(T.isHorizontal()&&(Math.floor($.minX)===Math.floor($.startX)&&$.touchesCurrent.x<$.touchesStart.x||Math.floor($.maxX)===Math.floor($.startX)&&$.touchesCurrent.x>$.touchesStart.x)){$.isTouched=!1;return}if(!T.isHorizontal()&&(Math.floor($.minY)===Math.floor($.startY)&&$.touchesCurrent.y<$.touchesStart.y||Math.floor($.maxY)===Math.floor($.startY)&&$.touchesCurrent.y>$.touchesStart.y)){$.isTouched=!1;return}}t.cancelable&&t.preventDefault(),t.stopPropagation(),$.isMoved=!0,$.currentX=$.touchesCurrent.x-$.touchesStart.x+$.startX,$.currentY=$.touchesCurrent.y-$.touchesStart.y+$.startY,$.currentX<$.minX&&($.currentX=$.minX+1-Ai($.minX-$.currentX+1,.8)),$.currentX>$.maxX&&($.currentX=$.maxX-1+Ai($.currentX-$.maxX+1,.8)),$.currentY<$.minY&&($.currentY=$.minY+1-Ai($.minY-$.currentY+1,.8)),$.currentY>$.maxY&&($.currentY=$.maxY-1+Ai($.currentY-$.maxY+1,.8)),de.prevPositionX||(de.prevPositionX=$.touchesCurrent.x),de.prevPositionY||(de.prevPositionY=$.touchesCurrent.y),de.prevTime||(de.prevTime=Date.now()),de.x=($.touchesCurrent.x-de.prevPositionX)/(Date.now()-de.prevTime)/2,de.y=($.touchesCurrent.y-de.prevPositionY)/(Date.now()-de.prevTime)/2,Math.abs($.touchesCurrent.x-de.prevPositionX)<2&&(de.x=0),Math.abs($.touchesCurrent.y-de.prevPositionY)<2&&(de.y=0),de.prevPositionX=$.touchesCurrent.x,de.prevPositionY=$.touchesCurrent.y,de.prevTime=Date.now(),G.$imageWrapEl.transform(`translate3d(${$.currentX}px, ${$.currentY}px,0)`)},onTouchEnd(){const t=this,T=t.zoom,{gesture:k,image:G,velocity:$}=T;if(!k.$imageEl||k.$imageEl.length===0)return;if(!G.isTouched||!G.isMoved){G.isTouched=!1,G.isMoved=!1;return}G.isTouched=!1,G.isMoved=!1;let de=300,xe=300;const Oe=$.x*de,ke=G.currentX+Oe,Fe=$.y*xe,Qe=G.currentY+Fe;$.x!==0&&(de=Math.abs((ke-G.currentX)/$.x)),$.y!==0&&(xe=Math.abs((Qe-G.currentY)/$.y));const yt=Math.max(de,xe);G.currentX=ke,G.currentY=Qe;const mt=G.width*T.scale,Ct=G.height*T.scale;G.minX=Math.min(k.slideWidth/2-mt/2,0),G.maxX=-G.minX,G.minY=Math.min(k.slideHeight/2-Ct/2,0),G.maxY=-G.minY,G.currentX=Math.max(Math.min(G.currentX,G.maxX),G.minX),G.currentY=Math.max(Math.min(G.currentY,G.maxY),G.minY),k.$imageWrapEl.transition(yt).transform(`translate3d(${G.currentX}px, ${G.currentY}px,0)`)},onTransitionEnd(){const t=this,T=t.zoom,{gesture:k}=T;k.$slideEl&&t.previousIndex!==t.activeIndex&&(k.$imageEl&&k.$imageEl.transform("translate3d(0,0,0) scale(1)"),k.$imageWrapEl&&k.$imageWrapEl.transform("translate3d(0,0,0)"),T.scale=1,T.currentScale=1,k.$slideEl=void 0,k.$imageEl=void 0,k.$imageWrapEl=void 0)},toggle(t){const T=this,k=T.zoom;k.scale&&k.scale!==1?k.out():k.in(t)},in(t){const T=this,k=T.zoom,G=T.params.zoom,{gesture:$,image:de}=k;if($.$slideEl||(T.params.virtual&&T.params.virtual.enabled&&T.virtual?$.$slideEl=T.$wrapperEl.children(`.${T.params.slideActiveClass}`):$.$slideEl=T.slides.eq(T.activeIndex),$.$imageEl=$.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),$.$imageWrapEl=$.$imageEl.parent(`.${G.containerClass}`)),!$.$imageEl||$.$imageEl.length===0)return;$.$slideEl.addClass(`${G.zoomedSlideClass}`);let xe,Oe,ke,Fe,Qe,yt,mt,Ct,At,kt,Kt,vt,Wt,Xt,rn,sn,on,en;typeof de.touchesStart.x=="undefined"&&t?(xe=t.type==="touchend"?t.changedTouches[0].pageX:t.pageX,Oe=t.type==="touchend"?t.changedTouches[0].pageY:t.pageY):(xe=de.touchesStart.x,Oe=de.touchesStart.y),k.scale=$.$imageWrapEl.attr("data-swiper-zoom")||G.maxRatio,k.currentScale=$.$imageWrapEl.attr("data-swiper-zoom")||G.maxRatio,t?(on=$.$slideEl[0].offsetWidth,en=$.$slideEl[0].offsetHeight,ke=$.$slideEl.offset().left,Fe=$.$slideEl.offset().top,Qe=ke+on/2-xe,yt=Fe+en/2-Oe,At=$.$imageEl[0].offsetWidth,kt=$.$imageEl[0].offsetHeight,Kt=At*k.scale,vt=kt*k.scale,Wt=Math.min(on/2-Kt/2,0),Xt=Math.min(en/2-vt/2,0),rn=-Wt,sn=-Xt,mt=Qe*k.scale,Ct=yt*k.scale,mt<Wt&&(mt=Wt),mt>rn&&(mt=rn),Ct<Xt&&(Ct=Xt),Ct>sn&&(Ct=sn)):(mt=0,Ct=0),$.$imageWrapEl.transition(300).transform(`translate3d(${mt}px, ${Ct}px,0)`),$.$imageEl.transition(300).transform(`translate3d(0,0,0) scale(${k.scale})`)},out(){const t=this,T=t.zoom,k=t.params.zoom,{gesture:G}=T;if(G.$slideEl||(t.params.virtual&&t.params.virtual.enabled&&t.virtual?G.$slideEl=t.$wrapperEl.children(`.${t.params.slideActiveClass}`):G.$slideEl=t.slides.eq(t.activeIndex),G.$imageEl=G.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),G.$imageWrapEl=G.$imageEl.parent(`.${k.containerClass}`)),!G.$imageEl||G.$imageEl.length===0)return;T.scale=1,T.currentScale=1,G.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),G.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),G.$slideEl.removeClass(`${k.zoomedSlideClass}`),G.$slideEl=void 0},enable(){const t=this,T=t.zoom;if(T.enabled)return;T.enabled=!0;const k=t.touchEvents.start==="touchstart"&&ae.passiveListener&&t.params.passiveListeners?{passive:!0,capture:!1}:!1,G=ae.passiveListener?{passive:!1,capture:!0}:!0,$=`.${t.params.slideClass}`;ae.gestures?(t.$wrapperEl.on("gesturestart",$,T.onGestureStart,k),t.$wrapperEl.on("gesturechange",$,T.onGestureChange,k),t.$wrapperEl.on("gestureend",$,T.onGestureEnd,k)):t.touchEvents.start==="touchstart"&&(t.$wrapperEl.on(t.touchEvents.start,$,T.onGestureStart,k),t.$wrapperEl.on(t.touchEvents.move,$,T.onGestureChange,G),t.$wrapperEl.on(t.touchEvents.end,$,T.onGestureEnd,k),t.touchEvents.cancel&&t.$wrapperEl.on(t.touchEvents.cancel,$,T.onGestureEnd,k)),t.$wrapperEl.on(t.touchEvents.move,`.${t.params.zoom.containerClass}`,T.onTouchMove,G)},disable(){const t=this,T=t.zoom;if(!T.enabled)return;t.zoom.enabled=!1;const k=t.touchEvents.start==="touchstart"&&ae.passiveListener&&t.params.passiveListeners?{passive:!0,capture:!1}:!1,G=ae.passiveListener?{passive:!1,capture:!0}:!0,$=`.${t.params.slideClass}`;ae.gestures?(t.$wrapperEl.off("gesturestart",$,T.onGestureStart,k),t.$wrapperEl.off("gesturechange",$,T.onGestureChange,k),t.$wrapperEl.off("gestureend",$,T.onGestureEnd,k)):t.touchEvents.start==="touchstart"&&(t.$wrapperEl.off(t.touchEvents.start,$,T.onGestureStart,k),t.$wrapperEl.off(t.touchEvents.move,$,T.onGestureChange,G),t.$wrapperEl.off(t.touchEvents.end,$,T.onGestureEnd,k),t.touchEvents.cancel&&t.$wrapperEl.off(t.touchEvents.cancel,$,T.onGestureEnd,k)),t.$wrapperEl.off(t.touchEvents.move,`.${t.params.zoom.containerClass}`,T.onTouchMove,G)}};var ar={name:"zoom",params:{zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}},create(){const t=this,T={enabled:!1,scale:1,currentScale:1,isScaling:!1,gesture:{$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},image:{isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},velocity:{x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0}};"onGestureStart onGestureChange onGestureEnd onTouchStart onTouchMove onTouchEnd onTransitionEnd toggle enable disable in out".split(" ").forEach(G=>{T[G]=Gi[G].bind(t)}),ue.extend(t,{zoom:T});let k=1;Object.defineProperty(t.zoom,"scale",{get(){return k},set(G){if(k!==G){const $=t.zoom.gesture.$imageEl?t.zoom.gesture.$imageEl[0]:void 0,de=t.zoom.gesture.$slideEl?t.zoom.gesture.$slideEl[0]:void 0;t.emit("zoomChange",G,$,de)}k=G}})},on:{init(){const t=this;t.params.zoom.enabled&&t.zoom.enable()},destroy(){const t=this;t.zoom.disable()},touchStart(t){const T=this;if(!T.zoom.enabled)return;T.zoom.onTouchStart(t)},touchEnd(t){const T=this;if(!T.zoom.enabled)return;T.zoom.onTouchEnd(t)},doubleTap(t){const T=this;T.params.zoom.enabled&&T.zoom.enabled&&T.params.zoom.toggle&&T.zoom.toggle(t)},transitionEnd(){const t=this;t.zoom.enabled&&t.params.zoom.enabled&&t.zoom.onTransitionEnd()},slideChange(){const t=this;t.zoom.enabled&&t.params.zoom.enabled&&t.params.cssMode&&t.zoom.onTransitionEnd()}}};const sr={loadInSlide(t,T=!0){const k=this,G=k.params.lazy;if(typeof t=="undefined")return;if(k.slides.length===0)return;const $=k.virtual&&k.params.virtual.enabled,de=$?k.$wrapperEl.children(`.${k.params.slideClass}[data-swiper-slide-index="${t}"]`):k.slides.eq(t);let xe=de.find(`.${G.elementClass}:not(.${G.loadedClass}):not(.${G.loadingClass})`);if(de.hasClass(G.elementClass)&&!de.hasClass(G.loadedClass)&&!de.hasClass(G.loadingClass)&&(xe=xe.add(de[0])),xe.length===0)return;xe.each((Oe,ke)=>{const Fe=g(ke);Fe.addClass(G.loadingClass);const Qe=Fe.attr("data-background"),yt=Fe.attr("data-src"),mt=Fe.attr("data-srcset"),Ct=Fe.attr("data-sizes"),At=Fe.parent("picture");k.loadImage(Fe[0],yt||Qe,mt,Ct,!1,()=>{if(typeof k=="undefined"||k===null||!k||k&&!k.params||k.destroyed)return;if(Qe?(Fe.css("background-image",`url("${Qe}")`),Fe.removeAttr("data-background")):(mt&&(Fe.attr("srcset",mt),Fe.removeAttr("data-srcset")),Ct&&(Fe.attr("sizes",Ct),Fe.removeAttr("data-sizes")),At.length&&At.children("source").each((kt,Kt)=>{const vt=g(Kt);vt.attr("data-srcset")&&(vt.attr("srcset",vt.attr("data-srcset")),vt.removeAttr("data-srcset"))}),yt&&(Fe.attr("src",yt),Fe.removeAttr("data-src"))),Fe.addClass(G.loadedClass).removeClass(G.loadingClass),de.find(`.${G.preloaderClass}`).remove(),k.params.loop&&T){const kt=de.attr("data-swiper-slide-index");if(de.hasClass(k.params.slideDuplicateClass)){const Kt=k.$wrapperEl.children(`[data-swiper-slide-index="${kt}"]:not(.${k.params.slideDuplicateClass})`);k.lazy.loadInSlide(Kt.index(),!1)}else{const Kt=k.$wrapperEl.children(`.${k.params.slideDuplicateClass}[data-swiper-slide-index="${kt}"]`);k.lazy.loadInSlide(Kt.index(),!1)}}k.emit("lazyImageReady",de[0],Fe[0]),k.params.autoHeight&&k.updateAutoHeight()}),k.emit("lazyImageLoad",de[0],Fe[0])})},load(){const t=this,{$wrapperEl:T,params:k,slides:G,activeIndex:$}=t,de=t.virtual&&k.virtual.enabled,xe=k.lazy;let Oe=k.slidesPerView;Oe==="auto"&&(Oe=0);function ke(Qe){if(de){if(T.children(`.${k.slideClass}[data-swiper-slide-index="${Qe}"]`).length)return!0}else if(G[Qe])return!0;return!1}function Fe(Qe){return de?g(Qe).attr("data-swiper-slide-index"):g(Qe).index()}if(t.lazy.initialImageLoaded||(t.lazy.initialImageLoaded=!0),t.params.watchSlidesVisibility)T.children(`.${k.slideVisibleClass}`).each((Qe,yt)=>{const mt=de?g(yt).attr("data-swiper-slide-index"):g(yt).index();t.lazy.loadInSlide(mt)});else if(Oe>1)for(let Qe=$;Qe<$+Oe;Qe+=1)ke(Qe)&&t.lazy.loadInSlide(Qe);else t.lazy.loadInSlide($);if(xe.loadPrevNext)if(Oe>1||xe.loadPrevNextAmount&&xe.loadPrevNextAmount>1){const Qe=xe.loadPrevNextAmount,yt=Oe,mt=Math.min($+yt+Math.max(Qe,yt),G.length),Ct=Math.max($-Math.max(yt,Qe),0);for(let At=$+Oe;At<mt;At+=1)ke(At)&&t.lazy.loadInSlide(At);for(let At=Ct;At<$;At+=1)ke(At)&&t.lazy.loadInSlide(At)}else{const Qe=T.children(`.${k.slideNextClass}`);Qe.length>0&&t.lazy.loadInSlide(Fe(Qe));const yt=T.children(`.${k.slidePrevClass}`);yt.length>0&&t.lazy.loadInSlide(Fe(yt))}}};var or={name:"lazy",params:{lazy:{enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}},create(){const t=this;ue.extend(t,{lazy:{initialImageLoaded:!1,load:sr.load.bind(t),loadInSlide:sr.loadInSlide.bind(t)}})},on:{beforeInit(){const t=this;t.params.lazy.enabled&&t.params.preloadImages&&(t.params.preloadImages=!1)},init(){const t=this;t.params.lazy.enabled&&!t.params.loop&&t.params.initialSlide===0&&t.lazy.load()},scroll(){const t=this;t.params.freeMode&&!t.params.freeModeSticky&&t.lazy.load()},resize(){const t=this;t.params.lazy.enabled&&t.lazy.load()},scrollbarDragMove(){const t=this;t.params.lazy.enabled&&t.lazy.load()},transitionStart(){const t=this;t.params.lazy.enabled&&((t.params.lazy.loadOnTransitionStart||!t.params.lazy.loadOnTransitionStart&&!t.lazy.initialImageLoaded)&&t.lazy.load())},transitionEnd(){const t=this;t.params.lazy.enabled&&!t.params.lazy.loadOnTransitionStart&&t.lazy.load()},slideChange(){const t=this;t.params.lazy.enabled&&t.params.cssMode&&t.lazy.load()}}};const zi={LinearSpline:function(T,k){const G=function(){let Oe,ke,Fe;return(Qe,yt)=>{for(ke=-1,Oe=Qe.length;Oe-ke>1;)Fe=Oe+ke>>1,Qe[Fe]<=yt?ke=Fe:Oe=Fe;return Oe}}();this.x=T,this.y=k,this.lastIndex=T.length-1;let $,de;return this.interpolate=function(Oe){return Oe?(de=G(this.x,Oe),$=de-1,(Oe-this.x[$])*(this.y[de]-this.y[$])/(this.x[de]-this.x[$])+this.y[$]):0},this},getInterpolateFunction(t){const T=this;T.controller.spline||(T.controller.spline=T.params.loop?new zi.LinearSpline(T.slidesGrid,t.slidesGrid):new zi.LinearSpline(T.snapGrid,t.snapGrid))},setTranslate(t,T){const k=this,G=k.controller.control;let $,de;function xe(Oe){const ke=k.rtlTranslate?-k.translate:k.translate;k.params.controller.by==="slide"&&(k.controller.getInterpolateFunction(Oe),de=-k.controller.spline.interpolate(-ke)),(!de||k.params.controller.by==="container")&&($=(Oe.maxTranslate()-Oe.minTranslate())/(k.maxTranslate()-k.minTranslate()),de=(ke-k.minTranslate())*$+Oe.minTranslate()),k.params.controller.inverse&&(de=Oe.maxTranslate()-de),Oe.updateProgress(de),Oe.setTranslate(de,k),Oe.updateActiveIndex(),Oe.updateSlidesClasses()}if(Array.isArray(G))for(let Oe=0;Oe<G.length;Oe+=1)G[Oe]!==T&&G[Oe]instanceof Xn&&xe(G[Oe]);else G instanceof Xn&&T!==G&&xe(G)},setTransition(t,T){const k=this,G=k.controller.control;let $;function de(xe){xe.setTransition(t,k),t!==0&&(xe.transitionStart(),xe.params.autoHeight&&ue.nextTick(()=>{xe.updateAutoHeight()}),xe.$wrapperEl.transitionEnd(()=>{if(!G)return;xe.params.loop&&k.params.controller.by==="slide"&&xe.loopFix(),xe.transitionEnd()}))}if(Array.isArray(G))for($=0;$<G.length;$+=1)G[$]!==T&&G[$]instanceof Xn&&de(G[$]);else G instanceof Xn&&T!==G&&de(G)}};var lr={name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create(){const t=this;ue.extend(t,{controller:{control:t.params.controller.control,getInterpolateFunction:zi.getInterpolateFunction.bind(t),setTranslate:zi.setTranslate.bind(t),setTransition:zi.setTransition.bind(t)}})},on:{update(){const t=this;if(!t.controller.control)return;t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)},resize(){const t=this;if(!t.controller.control)return;t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)},observerUpdate(){const t=this;if(!t.controller.control)return;t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)},setTranslate(t,T){const k=this;if(!k.controller.control)return;k.controller.setTranslate(t,T)},setTransition(t,T){const k=this;if(!k.controller.control)return;k.controller.setTransition(t,T)}}};const Ji={makeElFocusable(t){return t.attr("tabIndex","0"),t},makeElNotFocusable(t){return t.attr("tabIndex","-1"),t},addElRole(t,T){return t.attr("role",T),t},addElLabel(t,T){return t.attr("aria-label",T),t},disableEl(t){return t.attr("aria-disabled",!0),t},enableEl(t){return t.attr("aria-disabled",!1),t},onEnterKey(t){const T=this,k=T.params.a11y;if(t.keyCode!==13)return;const G=g(t.target);T.navigation&&T.navigation.$nextEl&&G.is(T.navigation.$nextEl)&&(T.isEnd&&!T.params.loop||T.slideNext(),T.isEnd?T.a11y.notify(k.lastSlideMessage):T.a11y.notify(k.nextSlideMessage)),T.navigation&&T.navigation.$prevEl&&G.is(T.navigation.$prevEl)&&(T.isBeginning&&!T.params.loop||T.slidePrev(),T.isBeginning?T.a11y.notify(k.firstSlideMessage):T.a11y.notify(k.prevSlideMessage)),T.pagination&&G.is(`.${T.params.pagination.bulletClass}`)&&G[0].click()},notify(t){const T=this,k=T.a11y.liveRegion;if(k.length===0)return;k.html(""),k.html(t)},updateNavigation(){const t=this;if(t.params.loop||!t.navigation)return;const{$nextEl:T,$prevEl:k}=t.navigation;k&&k.length>0&&(t.isBeginning?(t.a11y.disableEl(k),t.a11y.makeElNotFocusable(k)):(t.a11y.enableEl(k),t.a11y.makeElFocusable(k))),T&&T.length>0&&(t.isEnd?(t.a11y.disableEl(T),t.a11y.makeElNotFocusable(T)):(t.a11y.enableEl(T),t.a11y.makeElFocusable(T)))},updatePagination(){const t=this,T=t.params.a11y;t.pagination&&t.params.pagination.clickable&&t.pagination.bullets&&t.pagination.bullets.length&&t.pagination.bullets.each((k,G)=>{const $=g(G);t.a11y.makeElFocusable($),t.a11y.addElRole($,"button"),t.a11y.addElLabel($,T.paginationBulletMessage.replace(/\{\{index\}\}/,$.index()+1))})},init(){const t=this;t.$el.append(t.a11y.liveRegion);const T=t.params.a11y;let k,G;t.navigation&&t.navigation.$nextEl&&(k=t.navigation.$nextEl),t.navigation&&t.navigation.$prevEl&&(G=t.navigation.$prevEl),k&&(t.a11y.makeElFocusable(k),t.a11y.addElRole(k,"button"),t.a11y.addElLabel(k,T.nextSlideMessage),k.on("keydown",t.a11y.onEnterKey)),G&&(t.a11y.makeElFocusable(G),t.a11y.addElRole(G,"button"),t.a11y.addElLabel(G,T.prevSlideMessage),G.on("keydown",t.a11y.onEnterKey)),t.pagination&&t.params.pagination.clickable&&t.pagination.bullets&&t.pagination.bullets.length&&t.pagination.$el.on("keydown",`.${t.params.pagination.bulletClass}`,t.a11y.onEnterKey)},destroy(){const t=this;t.a11y.liveRegion&&t.a11y.liveRegion.length>0&&t.a11y.liveRegion.remove();let T,k;t.navigation&&t.navigation.$nextEl&&(T=t.navigation.$nextEl),t.navigation&&t.navigation.$prevEl&&(k=t.navigation.$prevEl),T&&T.off("keydown",t.a11y.onEnterKey),k&&k.off("keydown",t.a11y.onEnterKey),t.pagination&&t.params.pagination.clickable&&t.pagination.bullets&&t.pagination.bullets.length&&t.pagination.$el.off("keydown",`.${t.params.pagination.bulletClass}`,t.a11y.onEnterKey)}};var hr={name:"a11y",params:{a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}"}},create(){const t=this;ue.extend(t,{a11y:{liveRegion:g(`<span class="${t.params.a11y.notificationClass}" aria-live="assertive" aria-atomic="true"></span>`)}}),Object.keys(Ji).forEach(T=>{t.a11y[T]=Ji[T].bind(t)})},on:{init(){const t=this;if(!t.params.a11y.enabled)return;t.a11y.init(),t.a11y.updateNavigation()},toEdge(){const t=this;if(!t.params.a11y.enabled)return;t.a11y.updateNavigation()},fromEdge(){const t=this;if(!t.params.a11y.enabled)return;t.a11y.updateNavigation()},paginationUpdate(){const t=this;if(!t.params.a11y.enabled)return;t.a11y.updatePagination()},destroy(){const t=this;if(!t.params.a11y.enabled)return;t.a11y.destroy()}}};const Ii={init(){const t=this;if(!t.params.history)return;if(!c.history||!c.history.pushState){t.params.history.enabled=!1,t.params.hashNavigation.enabled=!0;return}const T=t.history;if(T.initialized=!0,T.paths=Ii.getPathValues(),!T.paths.key&&!T.paths.value)return;T.scrollToSlide(0,T.paths.value,t.params.runCallbacksOnInit),t.params.history.replaceState||c.addEventListener("popstate",t.history.setHistoryPopState)},destroy(){const t=this;t.params.history.replaceState||c.removeEventListener("popstate",t.history.setHistoryPopState)},setHistoryPopState(){const t=this;t.history.paths=Ii.getPathValues(),t.history.scrollToSlide(t.params.speed,t.history.paths.value,!1)},getPathValues(){const t=c.location.pathname.slice(1).split("/").filter($=>$!==""),T=t.length,k=t[T-2],G=t[T-1];return{key:k,value:G}},setHistory(t,T){const k=this;if(!k.history.initialized||!k.params.history.enabled)return;const G=k.slides.eq(T);let $=Ii.slugify(G.attr("data-history"));c.location.pathname.includes(t)||($=`${t}/${$}`);const de=c.history.state;if(de&&de.value===$)return;k.params.history.replaceState?c.history.replaceState({value:$},null,$):c.history.pushState({value:$},null,$)},slugify(t){return t.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrollToSlide(t,T,k){const G=this;if(T)for(let $=0,de=G.slides.length;$<de;$+=1){const xe=G.slides.eq($),Oe=Ii.slugify(xe.attr("data-history"));if(Oe===T&&!xe.hasClass(G.params.slideDuplicateClass)){const ke=xe.index();G.slideTo(ke,t,k)}}else G.slideTo(0,t,k)}};var ur={name:"history",params:{history:{enabled:!1,replaceState:!1,key:"slides"}},create(){const t=this;ue.extend(t,{history:{init:Ii.init.bind(t),setHistory:Ii.setHistory.bind(t),setHistoryPopState:Ii.setHistoryPopState.bind(t),scrollToSlide:Ii.scrollToSlide.bind(t),destroy:Ii.destroy.bind(t)}})},on:{init(){const t=this;t.params.history.enabled&&t.history.init()},destroy(){const t=this;t.params.history.enabled&&t.history.destroy()},transitionEnd(){const t=this;t.history.initialized&&t.history.setHistory(t.params.history.key,t.activeIndex)},slideChange(){const t=this;t.history.initialized&&t.params.cssMode&&t.history.setHistory(t.params.history.key,t.activeIndex)}}};const Ki={onHashCange(){const t=this;t.emit("hashChange");const T=L.location.hash.replace("#",""),k=t.slides.eq(t.activeIndex).attr("data-hash");if(T!==k){const G=t.$wrapperEl.children(`.${t.params.slideClass}[data-hash="${T}"]`).index();if(typeof G=="undefined")return;t.slideTo(G)}},setHash(){const t=this;if(!t.hashNavigation.initialized||!t.params.hashNavigation.enabled)return;if(t.params.hashNavigation.replaceState&&c.history&&c.history.replaceState)c.history.replaceState(null,null,`#${t.slides.eq(t.activeIndex).attr("data-hash")}`||""),t.emit("hashSet");else{const T=t.slides.eq(t.activeIndex),k=T.attr("data-hash")||T.attr("data-history");L.location.hash=k||"",t.emit("hashSet")}},init(){const t=this;if(!t.params.hashNavigation.enabled||t.params.history&&t.params.history.enabled)return;t.hashNavigation.initialized=!0;const T=L.location.hash.replace("#","");if(T){const k=0;for(let G=0,$=t.slides.length;G<$;G+=1){const de=t.slides.eq(G),xe=de.attr("data-hash")||de.attr("data-history");if(xe===T&&!de.hasClass(t.params.slideDuplicateClass)){const Oe=de.index();t.slideTo(Oe,k,t.params.runCallbacksOnInit,!0)}}}t.params.hashNavigation.watchState&&g(c).on("hashchange",t.hashNavigation.onHashCange)},destroy(){const t=this;t.params.hashNavigation.watchState&&g(c).off("hashchange",t.hashNavigation.onHashCange)}};var xr={name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create(){const t=this;ue.extend(t,{hashNavigation:{initialized:!1,init:Ki.init.bind(t),destroy:Ki.destroy.bind(t),setHash:Ki.setHash.bind(t),onHashCange:Ki.onHashCange.bind(t)}})},on:{init(){const t=this;t.params.hashNavigation.enabled&&t.hashNavigation.init()},destroy(){const t=this;t.params.hashNavigation.enabled&&t.hashNavigation.destroy()},transitionEnd(){const t=this;t.hashNavigation.initialized&&t.hashNavigation.setHash()},slideChange(){const t=this;t.hashNavigation.initialized&&t.params.cssMode&&t.hashNavigation.setHash()}}};const ze={run(){const t=this,T=t.slides.eq(t.activeIndex);let k=t.params.autoplay.delay;T.attr("data-swiper-autoplay")&&(k=T.attr("data-swiper-autoplay")||t.params.autoplay.delay),clearTimeout(t.autoplay.timeout),t.autoplay.timeout=ue.nextTick(()=>{t.params.autoplay.reverseDirection?t.params.loop?(t.loopFix(),t.slidePrev(t.params.speed,!0,!0),t.emit("autoplay")):t.isBeginning?t.params.autoplay.stopOnLastSlide?t.autoplay.stop():(t.slideTo(t.slides.length-1,t.params.speed,!0,!0),t.emit("autoplay")):(t.slidePrev(t.params.speed,!0,!0),t.emit("autoplay")):t.params.loop?(t.loopFix(),t.slideNext(t.params.speed,!0,!0),t.emit("autoplay")):t.isEnd?t.params.autoplay.stopOnLastSlide?t.autoplay.stop():(t.slideTo(0,t.params.speed,!0,!0),t.emit("autoplay")):(t.slideNext(t.params.speed,!0,!0),t.emit("autoplay")),t.params.cssMode&&t.autoplay.running&&t.autoplay.run()},k)},start(){const t=this;return typeof t.autoplay.timeout!="undefined"||t.autoplay.running?!1:(t.autoplay.running=!0,t.emit("autoplayStart"),t.autoplay.run(),!0)},stop(){const t=this;return t.autoplay.running?typeof t.autoplay.timeout=="undefined"?!1:(t.autoplay.timeout&&(clearTimeout(t.autoplay.timeout),t.autoplay.timeout=void 0),t.autoplay.running=!1,t.emit("autoplayStop"),!0):!1},pause(t){const T=this;if(!T.autoplay.running)return;if(T.autoplay.paused)return;T.autoplay.timeout&&clearTimeout(T.autoplay.timeout),T.autoplay.paused=!0,t===0||!T.params.autoplay.waitForTransition?(T.autoplay.paused=!1,T.autoplay.run()):(T.$wrapperEl[0].addEventListener("transitionend",T.autoplay.onTransitionEnd),T.$wrapperEl[0].addEventListener("webkitTransitionEnd",T.autoplay.onTransitionEnd))}};var $e={name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1}},create(){const t=this;ue.extend(t,{autoplay:{running:!1,paused:!1,run:ze.run.bind(t),start:ze.start.bind(t),stop:ze.stop.bind(t),pause:ze.pause.bind(t),onVisibilityChange(){document.visibilityState==="hidden"&&t.autoplay.running&&t.autoplay.pause(),document.visibilityState==="visible"&&t.autoplay.paused&&(t.autoplay.run(),t.autoplay.paused=!1)},onTransitionEnd(T){if(!t||t.destroyed||!t.$wrapperEl)return;if(T.target!==this)return;t.$wrapperEl[0].removeEventListener("transitionend",t.autoplay.onTransitionEnd),t.$wrapperEl[0].removeEventListener("webkitTransitionEnd",t.autoplay.onTransitionEnd),t.autoplay.paused=!1,t.autoplay.running?t.autoplay.run():t.autoplay.stop()}}})},on:{init(){const t=this;t.params.autoplay.enabled&&(t.autoplay.start(),document.addEventListener("visibilitychange",t.autoplay.onVisibilityChange))},beforeTransitionStart(t,T){const k=this;k.autoplay.running&&(T||!k.params.autoplay.disableOnInteraction?k.autoplay.pause(t):k.autoplay.stop())},sliderFirstMove(){const t=this;t.autoplay.running&&(t.params.autoplay.disableOnInteraction?t.autoplay.stop():t.autoplay.pause())},touchEnd(){const t=this;t.params.cssMode&&t.autoplay.paused&&!t.params.autoplay.disableOnInteraction&&t.autoplay.run()},destroy(){const t=this;t.autoplay.running&&t.autoplay.stop(),document.removeEventListener("visibilitychange",t.autoplay.onVisibilityChange)}}};const at={setTranslate(){const t=this,{slides:T}=t;for(let k=0;k<T.length;k+=1){const G=t.slides.eq(k),$=G[0].swiperSlideOffset;let de=-$;t.params.virtualTranslate||(de-=t.translate);let xe=0;t.isHorizontal()||(xe=de,de=0);const Oe=t.params.fadeEffect.crossFade?Math.max(1-Math.abs(G[0].progress),0):1+Math.min(Math.max(G[0].progress,-1),0);G.css({opacity:Oe}).transform(`translate3d(${de}px, ${xe}px, 0px)`)}},setTransition(t){const T=this,{slides:k,$wrapperEl:G}=T;if(k.transition(t),T.params.virtualTranslate&&t!==0){let $=!1;k.transitionEnd(()=>{if($)return;if(!T||T.destroyed)return;$=!0,T.animating=!1;const de=["webkitTransitionEnd","transitionend"];for(let xe=0;xe<de.length;xe+=1)G.trigger(de[xe])})}}};var Ke={name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create(){const t=this;ue.extend(t,{fadeEffect:{setTranslate:at.setTranslate.bind(t),setTransition:at.setTransition.bind(t)}})},on:{beforeInit(){const t=this;if(t.params.effect!=="fade")return;t.classNames.push(`${t.params.containerModifierClass}fade`);const T={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};ue.extend(t.params,T),ue.extend(t.originalParams,T)},setTranslate(){const t=this;if(t.params.effect!=="fade")return;t.fadeEffect.setTranslate()},setTransition(t){const T=this;if(T.params.effect!=="fade")return;T.fadeEffect.setTransition(t)}}};const _e={setTranslate(){const t=this,{$el:T,$wrapperEl:k,slides:G,width:$,height:de,rtlTranslate:xe,size:Oe}=t,ke=t.params.cubeEffect,Fe=t.isHorizontal(),Qe=t.virtual&&t.params.virtual.enabled;let yt=0,mt;ke.shadow&&(Fe?(mt=k.find(".swiper-cube-shadow"),mt.length===0&&(mt=g('<div class="swiper-cube-shadow"></div>'),k.append(mt)),mt.css({height:`${$}px`})):(mt=T.find(".swiper-cube-shadow"),mt.length===0&&(mt=g('<div class="swiper-cube-shadow"></div>'),T.append(mt))));for(let At=0;At<G.length;At+=1){const kt=G.eq(At);let Kt=At;Qe&&(Kt=parseInt(kt.attr("data-swiper-slide-index"),10));let vt=Kt*90,Wt=Math.floor(vt/360);xe&&(vt=-vt,Wt=Math.floor(-vt/360));const Xt=Math.max(Math.min(kt[0].progress,1),-1);let rn=0,sn=0,on=0;Kt%4===0?(rn=-Wt*4*Oe,on=0):(Kt-1)%4===0?(rn=0,on=-Wt*4*Oe):(Kt-2)%4===0?(rn=Oe+Wt*4*Oe,on=Oe):(Kt-3)%4===0&&(rn=-Oe,on=3*Oe+Oe*4*Wt),xe&&(rn=-rn),Fe||(sn=rn,rn=0);const en=`rotateX(${Fe?0:-vt}deg) rotateY(${Fe?vt:0}deg) translate3d(${rn}px, ${sn}px, ${on}px)`;if(Xt<=1&&Xt>-1&&(yt=Kt*90+Xt*90,xe&&(yt=-Kt*90-Xt*90)),kt.transform(en),ke.slideShadows){let gn=Fe?kt.find(".swiper-slide-shadow-left"):kt.find(".swiper-slide-shadow-top"),bn=Fe?kt.find(".swiper-slide-shadow-right"):kt.find(".swiper-slide-shadow-bottom");gn.length===0&&(gn=g(`<div class="swiper-slide-shadow-${Fe?"left":"top"}"></div>`),kt.append(gn)),bn.length===0&&(bn=g(`<div class="swiper-slide-shadow-${Fe?"right":"bottom"}"></div>`),kt.append(bn)),gn.length&&(gn[0].style.opacity=Math.max(-Xt,0)),bn.length&&(bn[0].style.opacity=Math.max(Xt,0))}}if(k.css({"-webkit-transform-origin":`50% 50% -${Oe/2}px`,"-moz-transform-origin":`50% 50% -${Oe/2}px`,"-ms-transform-origin":`50% 50% -${Oe/2}px`,"transform-origin":`50% 50% -${Oe/2}px`}),ke.shadow)if(Fe)mt.transform(`translate3d(0px, ${$/2+ke.shadowOffset}px, ${-$/2}px) rotateX(90deg) rotateZ(0deg) scale(${ke.shadowScale})`);else{const At=Math.abs(yt)-Math.floor(Math.abs(yt)/90)*90,kt=1.5-(Math.sin(At*2*Math.PI/360)/2+Math.cos(At*2*Math.PI/360)/2),Kt=ke.shadowScale,vt=ke.shadowScale/kt,Wt=ke.shadowOffset;mt.transform(`scale3d(${Kt}, 1, ${vt}) translate3d(0px, ${de/2+Wt}px, ${-de/2/vt}px) rotateX(-90deg)`)}const Ct=Ci.isSafari||Ci.isWebView?-Oe/2:0;k.transform(`translate3d(0px,0,${Ct}px) rotateX(${t.isHorizontal()?0:yt}deg) rotateY(${t.isHorizontal()?-yt:0}deg)`)},setTransition(t){const T=this,{$el:k,slides:G}=T;G.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t),T.params.cubeEffect.shadow&&!T.isHorizontal()&&k.find(".swiper-cube-shadow").transition(t)}};var Ne={name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create(){const t=this;ue.extend(t,{cubeEffect:{setTranslate:_e.setTranslate.bind(t),setTransition:_e.setTransition.bind(t)}})},on:{beforeInit(){const t=this;if(t.params.effect!=="cube")return;t.classNames.push(`${t.params.containerModifierClass}cube`),t.classNames.push(`${t.params.containerModifierClass}3d`);const T={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0};ue.extend(t.params,T),ue.extend(t.originalParams,T)},setTranslate(){const t=this;if(t.params.effect!=="cube")return;t.cubeEffect.setTranslate()},setTransition(t){const T=this;if(T.params.effect!=="cube")return;T.cubeEffect.setTransition(t)}}};const Te={setTranslate(){const t=this,{slides:T,rtlTranslate:k}=t;for(let G=0;G<T.length;G+=1){const $=T.eq(G);let de=$[0].progress;t.params.flipEffect.limitRotation&&(de=Math.max(Math.min($[0].progress,1),-1));const xe=$[0].swiperSlideOffset,Oe=-180*de;let ke=Oe,Fe=0,Qe=-xe,yt=0;if(t.isHorizontal()?k&&(ke=-ke):(yt=Qe,Qe=0,Fe=-ke,ke=0),$[0].style.zIndex=-Math.abs(Math.round(de))+T.length,t.params.flipEffect.slideShadows){let mt=t.isHorizontal()?$.find(".swiper-slide-shadow-left"):$.find(".swiper-slide-shadow-top"),Ct=t.isHorizontal()?$.find(".swiper-slide-shadow-right"):$.find(".swiper-slide-shadow-bottom");mt.length===0&&(mt=g(`<div class="swiper-slide-shadow-${t.isHorizontal()?"left":"top"}"></div>`),$.append(mt)),Ct.length===0&&(Ct=g(`<div class="swiper-slide-shadow-${t.isHorizontal()?"right":"bottom"}"></div>`),$.append(Ct)),mt.length&&(mt[0].style.opacity=Math.max(-de,0)),Ct.length&&(Ct[0].style.opacity=Math.max(de,0))}$.transform(`translate3d(${Qe}px, ${yt}px, 0px) rotateX(${Fe}deg) rotateY(${ke}deg)`)}},setTransition(t){const T=this,{slides:k,activeIndex:G,$wrapperEl:$}=T;if(k.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t),T.params.virtualTranslate&&t!==0){let de=!1;k.eq(G).transitionEnd(function(){if(de)return;if(!T||T.destroyed)return;de=!0,T.animating=!1;const Oe=["webkitTransitionEnd","transitionend"];for(let ke=0;ke<Oe.length;ke+=1)$.trigger(Oe[ke])})}}};var Ge={name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create(){const t=this;ue.extend(t,{flipEffect:{setTranslate:Te.setTranslate.bind(t),setTransition:Te.setTransition.bind(t)}})},on:{beforeInit(){const t=this;if(t.params.effect!=="flip")return;t.classNames.push(`${t.params.containerModifierClass}flip`),t.classNames.push(`${t.params.containerModifierClass}3d`);const T={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};ue.extend(t.params,T),ue.extend(t.originalParams,T)},setTranslate(){const t=this;if(t.params.effect!=="flip")return;t.flipEffect.setTranslate()},setTransition(t){const T=this;if(T.params.effect!=="flip")return;T.flipEffect.setTransition(t)}}};const Ve={setTranslate(){const t=this,{width:T,height:k,slides:G,$wrapperEl:$,slidesSizesGrid:de}=t,xe=t.params.coverflowEffect,Oe=t.isHorizontal(),ke=t.translate,Fe=Oe?-ke+T/2:-ke+k/2,Qe=Oe?xe.rotate:-xe.rotate,yt=xe.depth;for(let mt=0,Ct=G.length;mt<Ct;mt+=1){const At=G.eq(mt),kt=de[mt],Kt=At[0].swiperSlideOffset,vt=(Fe-Kt-kt/2)/kt*xe.modifier;let Wt=Oe?Qe*vt:0,Xt=Oe?0:Qe*vt,rn=-yt*Math.abs(vt),sn=xe.stretch;typeof sn=="string"&&sn.indexOf("%")!==-1&&(sn=parseFloat(xe.stretch)/100*kt);let on=Oe?0:sn*vt,en=Oe?sn*vt:0,gn=1-(1-xe.scale)*Math.abs(vt);Math.abs(en)<.001&&(en=0),Math.abs(on)<.001&&(on=0),Math.abs(rn)<.001&&(rn=0),Math.abs(Wt)<.001&&(Wt=0),Math.abs(Xt)<.001&&(Xt=0),Math.abs(gn)<.001&&(gn=0);const bn=`translate3d(${en}px,${on}px,${rn}px) rotateX(${Xt}deg) rotateY(${Wt}deg) scale(${gn})`;if(At.transform(bn),At[0].style.zIndex=-Math.abs(Math.round(vt))+1,xe.slideShadows){let Qn=Oe?At.find(".swiper-slide-shadow-left"):At.find(".swiper-slide-shadow-top"),Hn=Oe?At.find(".swiper-slide-shadow-right"):At.find(".swiper-slide-shadow-bottom");Qn.length===0&&(Qn=g(`<div class="swiper-slide-shadow-${Oe?"left":"top"}"></div>`),At.append(Qn)),Hn.length===0&&(Hn=g(`<div class="swiper-slide-shadow-${Oe?"right":"bottom"}"></div>`),At.append(Hn)),Qn.length&&(Qn[0].style.opacity=vt>0?vt:0),Hn.length&&(Hn[0].style.opacity=-vt>0?-vt:0)}}if(ae.pointerEvents||ae.prefixedPointerEvents){const mt=$[0].style;mt.perspectiveOrigin=`${Fe}px 50%`}},setTransition(t){const T=this;T.slides.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t)}};var ot={name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}},create(){const t=this;ue.extend(t,{coverflowEffect:{setTranslate:Ve.setTranslate.bind(t),setTransition:Ve.setTransition.bind(t)}})},on:{beforeInit(){const t=this;if(t.params.effect!=="coverflow")return;t.classNames.push(`${t.params.containerModifierClass}coverflow`),t.classNames.push(`${t.params.containerModifierClass}3d`),t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0},setTranslate(){const t=this;if(t.params.effect!=="coverflow")return;t.coverflowEffect.setTranslate()},setTransition(t){const T=this;if(T.params.effect!=="coverflow")return;T.coverflowEffect.setTransition(t)}}};const et={init(){const t=this,{thumbs:T}=t.params,k=t.constructor;T.swiper instanceof k?(t.thumbs.swiper=T.swiper,ue.extend(t.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),ue.extend(t.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1})):ue.isObject(T.swiper)&&(t.thumbs.swiper=new k(ue.extend({},T.swiper,{watchSlidesVisibility:!0,watchSlidesProgress:!0,slideToClickedSlide:!1})),t.thumbs.swiperCreated=!0),t.thumbs.swiper.$el.addClass(t.params.thumbs.thumbsContainerClass),t.thumbs.swiper.on("tap",t.thumbs.onThumbClick)},onThumbClick(){const t=this,T=t.thumbs.swiper;if(!T)return;const k=T.clickedIndex,G=T.clickedSlide;if(G&&g(G).hasClass(t.params.thumbs.slideThumbActiveClass))return;if(typeof k=="undefined"||k===null)return;let $;if(T.params.loop?$=parseInt(g(T.clickedSlide).attr("data-swiper-slide-index"),10):$=k,t.params.loop){let de=t.activeIndex;t.slides.eq(de).hasClass(t.params.slideDuplicateClass)&&(t.loopFix(),t._clientLeft=t.$wrapperEl[0].clientLeft,de=t.activeIndex);const xe=t.slides.eq(de).prevAll(`[data-swiper-slide-index="${$}"]`).eq(0).index(),Oe=t.slides.eq(de).nextAll(`[data-swiper-slide-index="${$}"]`).eq(0).index();typeof xe=="undefined"?$=Oe:typeof Oe=="undefined"?$=xe:Oe-de<de-xe?$=Oe:$=xe}t.slideTo($)},update(t){const T=this,k=T.thumbs.swiper;if(!k)return;const G=k.params.slidesPerView==="auto"?k.slidesPerViewDynamic():k.params.slidesPerView,$=T.params.thumbs.autoScrollOffset,de=$&&!k.params.loop;if(T.realIndex!==k.realIndex||de){let ke=k.activeIndex,Fe,Qe;if(k.params.loop){k.slides.eq(ke).hasClass(k.params.slideDuplicateClass)&&(k.loopFix(),k._clientLeft=k.$wrapperEl[0].clientLeft,ke=k.activeIndex);const yt=k.slides.eq(ke).prevAll(`[data-swiper-slide-index="${T.realIndex}"]`).eq(0).index(),mt=k.slides.eq(ke).nextAll(`[data-swiper-slide-index="${T.realIndex}"]`).eq(0).index();typeof yt=="undefined"?Fe=mt:typeof mt=="undefined"?Fe=yt:mt-ke===ke-yt?Fe=ke:mt-ke<ke-yt?Fe=mt:Fe=yt,Qe=T.activeIndex>T.previousIndex?"next":"prev"}else Fe=T.realIndex,Qe=Fe>T.previousIndex?"next":"prev";de&&(Fe+=Qe==="next"?$:-1*$),k.visibleSlidesIndexes&&k.visibleSlidesIndexes.indexOf(Fe)<0&&(k.params.centeredSlides?Fe>ke?Fe=Fe-Math.floor(G/2)+1:Fe=Fe+Math.floor(G/2)-1:Fe>ke&&(Fe=Fe-G+1),k.slideTo(Fe,t?0:void 0))}let xe=1;const Oe=T.params.thumbs.slideThumbActiveClass;if(T.params.slidesPerView>1&&!T.params.centeredSlides&&(xe=T.params.slidesPerView),T.params.thumbs.multipleActiveThumbs||(xe=1),xe=Math.floor(xe),k.slides.removeClass(Oe),k.params.loop||k.params.virtual&&k.params.virtual.enabled)for(let ke=0;ke<xe;ke+=1)k.$wrapperEl.children(`[data-swiper-slide-index="${T.realIndex+ke}"]`).addClass(Oe);else for(let ke=0;ke<xe;ke+=1)k.slides.eq(T.realIndex+ke).addClass(Oe)}};var pt={name:"thumbs",params:{thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-container-thumbs"}},create(){const t=this;ue.extend(t,{thumbs:{swiper:null,init:et.init.bind(t),update:et.update.bind(t),onThumbClick:et.onThumbClick.bind(t)}})},on:{beforeInit(){const t=this,{thumbs:T}=t.params;if(!T||!T.swiper)return;t.thumbs.init(),t.thumbs.update(!0)},slideChange(){const t=this;if(!t.thumbs.swiper)return;t.thumbs.update()},update(){const t=this;if(!t.thumbs.swiper)return;t.thumbs.update()},resize(){const t=this;if(!t.thumbs.swiper)return;t.thumbs.update()},observerUpdate(){const t=this;if(!t.thumbs.swiper)return;t.thumbs.update()},setTransition(t){const T=this,k=T.thumbs.swiper;if(!k)return;k.setTransition(t)},beforeDestroy(){const t=this,T=t.thumbs.swiper;if(!T)return;t.thumbs.swiperCreated&&T&&T.destroy()}}};const Ot=[Bi,Li,Rn,ri,oi,Xi,In,Di,Qi,ti,Wi,cr,ar,or,lr,hr,ur,xr,$e,Ke,Ne,Ge,ot,pt];typeof Xn.use=="undefined"&&(Xn.use=Xn.Class.use,Xn.installModule=Xn.Class.installModule),Xn.use(Ot);var Yt=q.default=Xn},u3os:function(ge,q,_){"use strict";Object.defineProperty(q,"__esModule",{value:!0}),q.ver=q.clear=q.bind=void 0;var Z=_("P4Qj"),U=function(u,M){var g=(0,Z.getSensor)(u);return g.bind(M),function(){g.unbind(M)}};q.bind=U;var L=function(u){var M=(0,Z.getSensor)(u);(0,Z.removeSensor)(M)};q.clear=L;var N="1.0.1";q.ver=N},uZMh:function(ge,q,_){ge.exports={beginner:"beginner___3NuSW",spandiv:"spandiv___2Y293"}},ulZh:function(ge,q,_){typeof window!="undefined"&&function(U,L){ge.exports=L()}(this,function(){return function(Z){var U={};function L(N){if(U[N])return U[N].exports;var c=U[N]={i:N,l:!1,exports:{}};return Z[N].call(c.exports,c,c.exports,L),c.l=!0,c.exports}return L.m=Z,L.c=U,L.d=function(N,c,u){L.o(N,c)||Object.defineProperty(N,c,{enumerable:!0,get:u})},L.r=function(N){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(N,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(N,"__esModule",{value:!0})},L.t=function(N,c){if(c&1&&(N=L(N)),c&8)return N;if(c&4&&typeof N=="object"&&N&&N.__esModule)return N;var u=Object.create(null);if(L.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:N}),c&2&&typeof N!="string")for(var M in N)L.d(u,M,function(g){return N[g]}.bind(null,M));return u},L.n=function(N){var c=N&&N.__esModule?function(){return N.default}:function(){return N};return L.d(c,"a",c),c},L.o=function(N,c){return Object.prototype.hasOwnProperty.call(N,c)},L.p="/dist/",L(L.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":function(Z,U,L){"use strict";var N=Object.prototype.hasOwnProperty,c="~";function u(){}Object.create&&(u.prototype=Object.create(null),new u().__proto__||(c=!1));function M(r,h,a){this.fn=r,this.context=h,this.once=a||!1}function g(r,h,a,l,d){if(typeof a!="function")throw new TypeError("The listener must be a function");var y=new M(a,l||r,d),s=c?c+h:h;return r._events[s]?r._events[s].fn?r._events[s]=[r._events[s],y]:r._events[s].push(y):(r._events[s]=y,r._eventsCount++),r}function e(r,h){--r._eventsCount===0?r._events=new u:delete r._events[h]}function m(){this._events=new u,this._eventsCount=0}m.prototype.eventNames=function(){var h=[],a,l;if(this._eventsCount===0)return h;for(l in a=this._events)N.call(a,l)&&h.push(c?l.slice(1):l);return Object.getOwnPropertySymbols?h.concat(Object.getOwnPropertySymbols(a)):h},m.prototype.listeners=function(h){var a=c?c+h:h,l=this._events[a];if(!l)return[];if(l.fn)return[l.fn];for(var d=0,y=l.length,s=new Array(y);d<y;d++)s[d]=l[d].fn;return s},m.prototype.listenerCount=function(h){var a=c?c+h:h,l=this._events[a];return l?l.fn?1:l.length:0},m.prototype.emit=function(h,a,l,d,y,s){var p=c?c+h:h;if(!this._events[p])return!1;var n=this._events[p],i=arguments.length,v,C;if(n.fn){n.once&&this.removeListener(h,n.fn,void 0,!0);switch(i){case 1:return n.fn.call(n.context),!0;case 2:return n.fn.call(n.context,a),!0;case 3:return n.fn.call(n.context,a,l),!0;case 4:return n.fn.call(n.context,a,l,d),!0;case 5:return n.fn.call(n.context,a,l,d,y),!0;case 6:return n.fn.call(n.context,a,l,d,y,s),!0}for(C=1,v=new Array(i-1);C<i;C++)v[C-1]=arguments[C];n.fn.apply(n.context,v)}else{var R=n.length,w;for(C=0;C<R;C++){n[C].once&&this.removeListener(h,n[C].fn,void 0,!0);switch(i){case 1:n[C].fn.call(n[C].context);break;case 2:n[C].fn.call(n[C].context,a);break;case 3:n[C].fn.call(n[C].context,a,l);break;case 4:n[C].fn.call(n[C].context,a,l,d);break;default:if(!v)for(w=1,v=new Array(i-1);w<i;w++)v[w-1]=arguments[w];n[C].fn.apply(n[C].context,v)}}}return!0},m.prototype.on=function(h,a,l){return g(this,h,a,l,!1)},m.prototype.once=function(h,a,l){return g(this,h,a,l,!0)},m.prototype.removeListener=function(h,a,l,d){var y=c?c+h:h;if(!this._events[y])return this;if(!a)return e(this,y),this;var s=this._events[y];if(s.fn)s.fn===a&&(!d||s.once)&&(!l||s.context===l)&&e(this,y);else{for(var p=0,n=[],i=s.length;p<i;p++)(s[p].fn!==a||d&&!s[p].once||l&&s[p].context!==l)&&n.push(s[p]);n.length?this._events[y]=n.length===1?n[0]:n:e(this,y)}return this},m.prototype.removeAllListeners=function(h){var a;return h?(a=c?c+h:h,this._events[a]&&e(this,a)):(this._events=new u,this._eventsCount=0),this},m.prototype.off=m.prototype.removeListener,m.prototype.addListener=m.prototype.on,m.prefixed=c,m.EventEmitter=m,Z.exports=m},"./node_modules/url-toolkit/src/url-toolkit.js":function(Z,U,L){(function(N){var c=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/?#]*\/)*[^;?#]*)?(;[^?#]*)?(\?[^#]*)?(#[^]*)?$/,u=/^([^\/?#]*)([^]*)$/,M=/(?:\/|^)\.(?=\/)/g,g=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,e={buildAbsoluteURL:function(m,r,h){if(h=h||{},m=m.trim(),r=r.trim(),!r){if(!h.alwaysNormalize)return m;var a=e.parseURL(m);if(!a)throw new Error("Error trying to parse base URL.");return a.path=e.normalizePath(a.path),e.buildURLFromParts(a)}var l=e.parseURL(r);if(!l)throw new Error("Error trying to parse relative URL.");if(l.scheme)return h.alwaysNormalize?(l.path=e.normalizePath(l.path),e.buildURLFromParts(l)):r;var d=e.parseURL(m);if(!d)throw new Error("Error trying to parse base URL.");if(!d.netLoc&&d.path&&d.path[0]!=="/"){var y=u.exec(d.path);d.netLoc=y[1],d.path=y[2]}d.netLoc&&!d.path&&(d.path="/");var s={scheme:d.scheme,netLoc:l.netLoc,path:null,params:l.params,query:l.query,fragment:l.fragment};if(!l.netLoc&&(s.netLoc=d.netLoc,l.path[0]!=="/"))if(!l.path)s.path=d.path,l.params||(s.params=d.params,l.query||(s.query=d.query));else{var p=d.path,n=p.substring(0,p.lastIndexOf("/")+1)+l.path;s.path=e.normalizePath(n)}return s.path===null&&(s.path=h.alwaysNormalize?e.normalizePath(l.path):l.path),e.buildURLFromParts(s)},parseURL:function(m){var r=c.exec(m);return r?{scheme:r[1]||"",netLoc:r[2]||"",path:r[3]||"",params:r[4]||"",query:r[5]||"",fragment:r[6]||""}:null},normalizePath:function(m){for(m=m.split("").reverse().join("").replace(M,"");m.length!==(m=m.replace(g,"")).length;);return m.split("").reverse().join("")},buildURLFromParts:function(m){return m.scheme+m.netLoc+m.path+m.params+m.query+m.fragment}};Z.exports=e})(this)},"./node_modules/webworkify-webpack/index.js":function(Z,U,L){function N(h){var a={};function l(y){if(a[y])return a[y].exports;var s=a[y]={i:y,l:!1,exports:{}};return h[y].call(s.exports,s,s.exports,l),s.l=!0,s.exports}l.m=h,l.c=a,l.i=function(y){return y},l.d=function(y,s,p){l.o(y,s)||Object.defineProperty(y,s,{configurable:!1,enumerable:!0,get:p})},l.r=function(y){Object.defineProperty(y,"__esModule",{value:!0})},l.n=function(y){var s=y&&y.__esModule?function(){return y.default}:function(){return y};return l.d(s,"a",s),s},l.o=function(y,s){return Object.prototype.hasOwnProperty.call(y,s)},l.p="/",l.oe=function(y){throw console.error(y),y};var d=l(l.s=ENTRY_MODULE);return d.default||d}var c="[\\.|\\-|\\+|\\w|/|@]+",u="\\(\\s*(/\\*.*?\\*/)?\\s*.*?("+c+").*?\\)";function M(h){return(h+"").replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}function g(h){return!isNaN(1*h)}function e(h,a,l){var d={};d[l]=[];var y=a.toString(),s=y.match(/^function\s?\w*\(\w+,\s*\w+,\s*(\w+)\)/);if(!s)return d;for(var p=s[1],n=new RegExp("(\\\\n|\\W)"+M(p)+u,"g"),i;i=n.exec(y);){if(i[3]==="dll-reference")continue;d[l].push(i[3])}for(n=new RegExp("\\("+M(p)+'\\("(dll-reference\\s('+c+'))"\\)\\)'+u,"g");i=n.exec(y);)h[i[2]]||(d[l].push(i[1]),h[i[2]]=L(i[1]).m),d[i[2]]=d[i[2]]||[],d[i[2]].push(i[4]);for(var v=Object.keys(d),C=0;C<v.length;C++)for(var R=0;R<d[v[C]].length;R++)g(d[v[C]][R])&&(d[v[C]][R]=1*d[v[C]][R]);return d}function m(h){var a=Object.keys(h);return a.reduce(function(l,d){return l||h[d].length>0},!1)}function r(h,a){for(var l={main:[a]},d={main:[]},y={main:{}};m(l);)for(var s=Object.keys(l),p=0;p<s.length;p++){var n=s[p],i=l[n],v=i.pop();if(y[n]=y[n]||{},y[n][v]||!h[n][v])continue;y[n][v]=!0,d[n]=d[n]||[],d[n].push(v);for(var C=e(h,h[n][v],n),R=Object.keys(C),w=0;w<R.length;w++)l[R[w]]=l[R[w]]||[],l[R[w]]=l[R[w]].concat(C[R[w]])}return d}Z.exports=function(h,a){a=a||{};var l={main:L.m},d=a.all?{main:Object.keys(l.main)}:r(l,h),y="";Object.keys(d).filter(function(v){return v!=="main"}).forEach(function(v){for(var C=0;d[v][C];)C++;d[v].push(C),l[v][C]="(function(module, exports, __webpack_require__) { module.exports = __webpack_require__; })",y=y+"var "+v+" = ("+N.toString().replace("ENTRY_MODULE",JSON.stringify(C))+")({"+d[v].map(function(R){return""+JSON.stringify(R)+": "+l[v][R].toString()}).join(",")+`});
`}),y=y+"new (("+N.toString().replace("ENTRY_MODULE",JSON.stringify(h))+")({"+d.main.map(function(v){return""+JSON.stringify(v)+": "+l.main[v].toString()}).join(",")+"}))(self);";var s=new window.Blob([y],{type:"text/javascript"});if(a.bare)return s;var p=window.URL||window.webkitURL||window.mozURL||window.msURL,n=p.createObjectURL(s),i=new window.Worker(n);return i.objectURL=n,i}},"./src/config.ts":function(Z,U,L){"use strict";L.r(U),L.d(U,"hlsDefaultConfig",function(){return w}),L.d(U,"mergeConfig",function(){return A}),L.d(U,"enableStreamingMode",function(){return o});var N=L("./src/controller/abr-controller.ts"),c=L("./src/controller/audio-stream-controller.ts"),u=L("./src/controller/audio-track-controller.ts"),M=L("./src/controller/subtitle-stream-controller.ts"),g=L("./src/controller/subtitle-track-controller.ts"),e=L("./src/controller/buffer-controller.ts"),m=L("./src/controller/timeline-controller.ts"),r=L("./src/controller/cap-level-controller.ts"),h=L("./src/controller/fps-controller.ts"),a=L("./src/controller/eme-controller.ts"),l=L("./src/controller/cmcd-controller.ts"),d=L("./src/utils/xhr-loader.ts"),y=L("./src/utils/fetch-loader.ts"),s=L("./src/utils/cues.ts"),p=L("./src/utils/mediakeys-helper.ts"),n=L("./src/utils/logger.ts");function i(){return i=Object.assign||function(f){for(var E=1;E<arguments.length;E++){var O=arguments[E];for(var S in O)Object.prototype.hasOwnProperty.call(O,S)&&(f[S]=O[S])}return f},i.apply(this,arguments)}function v(f,E){var O=Object.keys(f);if(Object.getOwnPropertySymbols){var S=Object.getOwnPropertySymbols(f);E&&(S=S.filter(function(b){return Object.getOwnPropertyDescriptor(f,b).enumerable})),O.push.apply(O,S)}return O}function C(f){for(var E=1;E<arguments.length;E++){var O=arguments[E]!=null?arguments[E]:{};E%2?v(Object(O),!0).forEach(function(S){R(f,S,O[S])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(O)):v(Object(O)).forEach(function(S){Object.defineProperty(f,S,Object.getOwnPropertyDescriptor(O,S))})}return f}function R(f,E,O){return E in f?Object.defineProperty(f,E,{value:O,enumerable:!0,configurable:!0,writable:!0}):f[E]=O,f}var w=C(C({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:d.default,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:N.default,bufferController:e.default,capLevelController:r.default,fpsController:h.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:p.requestMediaKeySystemAccess,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0},x()),{},{subtitleStreamController:M.SubtitleStreamController,subtitleTrackController:g.default,timelineController:m.TimelineController,audioStreamController:c.default,audioTrackController:u.default,emeController:a.default,cmcdController:l.default});function x(){return{cueHandler:s.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 A(f,E){if((E.liveSyncDurationCount||E.liveMaxLatencyDurationCount)&&(E.liveSyncDuration||E.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(E.liveMaxLatencyDurationCount!==void 0&&(E.liveSyncDurationCount===void 0||E.liveMaxLatencyDurationCount<=E.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(E.liveMaxLatencyDuration!==void 0&&(E.liveSyncDuration===void 0||E.liveMaxLatencyDuration<=E.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');return i({},f,E)}function o(f){var E=f.loader;if(E!==y.default&&E!==d.default)n.logger.log("[config]: Custom loader detected, cannot enable progressive streaming"),f.progressive=!1;else{var O=Object(y.fetchSupported)();O&&(f.loader=y.default,f.progressive=!0,f.enableSoftwareAES=!0,n.logger.log("[config]: Progressive streaming enabled, using FetchLoader"))}}},"./src/controller/abr-controller.ts":function(Z,U,L){"use strict";L.r(U);var N=L("./src/polyfills/number.ts"),c=L("./src/utils/ewma-bandwidth-estimator.ts"),u=L("./src/events.ts"),M=L("./src/utils/buffer-helper.ts"),g=L("./src/errors.ts"),e=L("./src/types/loader.ts"),m=L("./src/utils/logger.ts");function r(l,d){for(var y=0;y<d.length;y++){var s=d[y];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(l,s.key,s)}}function h(l,d,y){return d&&r(l.prototype,d),y&&r(l,y),l}var a=function(){function l(y){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=y;var s=y.config;this.bwEstimator=new c.default(s.abrEwmaSlowVoD,s.abrEwmaFastVoD,s.abrEwmaDefaultEstimate),this.registerListeners()}var d=l.prototype;return d.registerListeners=function(){var s=this.hls;s.on(u.Events.FRAG_LOADING,this.onFragLoading,this),s.on(u.Events.FRAG_LOADED,this.onFragLoaded,this),s.on(u.Events.FRAG_BUFFERED,this.onFragBuffered,this),s.on(u.Events.LEVEL_LOADED,this.onLevelLoaded,this),s.on(u.Events.ERROR,this.onError,this)},d.unregisterListeners=function(){var s=this.hls;s.off(u.Events.FRAG_LOADING,this.onFragLoading,this),s.off(u.Events.FRAG_LOADED,this.onFragLoaded,this),s.off(u.Events.FRAG_BUFFERED,this.onFragBuffered,this),s.off(u.Events.LEVEL_LOADED,this.onLevelLoaded,this),s.off(u.Events.ERROR,this.onError,this)},d.destroy=function(){this.unregisterListeners(),this.clearTimer(),this.hls=this.onCheck=null,this.fragCurrent=this.partCurrent=null},d.onFragLoading=function(s,p){var n=p.frag;if(n.type===e.PlaylistLevelType.MAIN&&!this.timer){var i;this.fragCurrent=n,this.partCurrent=(i=p.part)!=null?i:null,this.timer=self.setInterval(this.onCheck,100)}},d.onLevelLoaded=function(s,p){var n=this.hls.config;p.details.live?this.bwEstimator.update(n.abrEwmaSlowLive,n.abrEwmaFastLive):this.bwEstimator.update(n.abrEwmaSlowVoD,n.abrEwmaFastVoD)},d._abandonRulesCheck=function(){var s=this.fragCurrent,p=this.partCurrent,n=this.hls,i=n.autoLevelEnabled,v=n.config,C=n.media;if(!s||!C)return;var R=p?p.stats:s.stats,w=p?p.duration:s.duration;if(R.aborted){m.logger.warn("frag loader destroy or aborted, disarm abandonRules"),this.clearTimer(),this._nextAutoLevel=-1;return}if(!i||C.paused||!C.playbackRate||!C.readyState)return;var x=performance.now()-R.loading.start,A=Math.abs(C.playbackRate);if(x<=500*w/A)return;var o=n.levels,f=n.minAutoLevel,E=o[s.level],O=R.total||Math.max(R.loaded,Math.round(w*E.maxBitrate/8)),S=Math.max(1,R.bwEstimate?R.bwEstimate/8:R.loaded*1e3/x),b=(O-R.loaded)/S,D=C.currentTime,P=(M.BufferHelper.bufferInfo(C,D,v.maxBufferHole).end-D)/A;if(P>=2*w/A||b<=P)return;var I=Number.POSITIVE_INFINITY,F;for(F=s.level-1;F>f;F--){var K=o[F].maxBitrate;if(I=w*K/(8*.8*S),I<P)break}if(I>=b)return;var j=this.bwEstimator.getEstimate();m.logger.warn("Fragment "+s.sn+(p?" part "+p.index:"")+" of level "+s.level+" is loading too slowly and will cause an underbuffer; aborting and switching to level "+F+`
Current BW estimate: `+(Object(N.isFiniteNumber)(j)?(j/1024).toFixed(3):"Unknown")+` Kb/s
Estimated load time for current fragment: `+b.toFixed(3)+` s
Estimated load time for the next fragment: `+I.toFixed(3)+` s
Time to underbuffer: `+P.toFixed(3)+" s"),n.nextLoadLevel=F,this.bwEstimator.sample(x,R.loaded),this.clearTimer(),s.loader&&(this.fragCurrent=this.partCurrent=null,s.loader.abort()),n.trigger(u.Events.FRAG_LOAD_EMERGENCY_ABORTED,{frag:s,part:p,stats:R})},d.onFragLoaded=function(s,p){var n=p.frag,i=p.part;if(n.type===e.PlaylistLevelType.MAIN&&Object(N.isFiniteNumber)(n.sn)){var v=i?i.stats:n.stats,C=i?i.duration:n.duration;if(this.clearTimer(),this.lastLoadedFragLevel=n.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var R=this.hls.levels[n.level],w=(R.loaded?R.loaded.bytes:0)+v.loaded,x=(R.loaded?R.loaded.duration:0)+C;R.loaded={bytes:w,duration:x},R.realBitrate=Math.round(8*w/x)}if(n.bitrateTest){var A={stats:v,frag:n,part:i,id:n.type};this.onFragBuffered(u.Events.FRAG_BUFFERED,A),n.bitrateTest=!1}}},d.onFragBuffered=function(s,p){var n=p.frag,i=p.part,v=i?i.stats:n.stats;if(v.aborted)return;if(n.type!==e.PlaylistLevelType.MAIN||n.sn==="initSegment")return;var C=v.parsing.end-v.loading.start;this.bwEstimator.sample(C,v.loaded),v.bwEstimate=this.bwEstimator.getEstimate(),n.bitrateTest?this.bitrateTestDelay=C/1e3:this.bitrateTestDelay=0},d.onError=function(s,p){switch(p.details){case g.ErrorDetails.FRAG_LOAD_ERROR:case g.ErrorDetails.FRAG_LOAD_TIMEOUT:this.clearTimer();break;default:break}},d.clearTimer=function(){self.clearInterval(this.timer),this.timer=void 0},d.getNextABRAutoLevel=function(){var s=this.fragCurrent,p=this.partCurrent,n=this.hls,i=n.maxAutoLevel,v=n.config,C=n.minAutoLevel,R=n.media,w=p?p.duration:s?s.duration:0,x=R?R.currentTime:0,A=R&&R.playbackRate!==0?Math.abs(R.playbackRate):1,o=this.bwEstimator?this.bwEstimator.getEstimate():v.abrEwmaDefaultEstimate,f=(M.BufferHelper.bufferInfo(R,x,v.maxBufferHole).end-x)/A,E=this.findBestLevel(o,C,i,f,v.abrBandWidthFactor,v.abrBandWidthUpFactor);if(E>=0)return E;m.logger.trace((f?"rebuffering expected":"buffer is empty")+", finding optimal quality level");var O=w?Math.min(w,v.maxStarvationDelay):v.maxStarvationDelay,S=v.abrBandWidthFactor,b=v.abrBandWidthUpFactor;if(!f){var D=this.bitrateTestDelay;if(D){var P=w?Math.min(w,v.maxLoadingDelay):v.maxLoadingDelay;O=P-D,m.logger.trace("bitrate test took "+Math.round(1e3*D)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*O)+" ms"),S=b=1}}return E=this.findBestLevel(o,C,i,f+O,S,b),Math.max(E,0)},d.findBestLevel=function(s,p,n,i,v,C){for(var R,w=this.fragCurrent,x=this.partCurrent,A=this.lastLoadedFragLevel,o=this.hls.levels,f=o[A],E=!!(f!=null&&(R=f.details)!==null&&R!==void 0&&R.live),O=f==null?void 0:f.codecSet,S=x?x.duration:w?w.duration:0,b=n;b>=p;b--){var D=o[b];if(!D||O&&D.codecSet!==O)continue;var P=D.details,I=(x?P==null?void 0:P.partTarget:P==null?void 0:P.averagetargetduration)||S,F=void 0;b<=A?F=v*s:F=C*s;var K=o[b].maxBitrate,j=K*I/F;if(m.logger.trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: "+b+"/"+Math.round(F)+"/"+K+"/"+I+"/"+i+"/"+j),F>K&&(!j||E&&!this.bitrateTestDelay||j<i))return b}return-1},h(l,[{key:"nextAutoLevel",get:function(){var s=this._nextAutoLevel,p=this.bwEstimator;if(s!==-1&&(!p||!p.canEstimate()))return s;var n=this.getNextABRAutoLevel();return s!==-1&&(n=Math.min(s,n)),n},set:function(s){this._nextAutoLevel=s}}]),l}();U.default=a},"./src/controller/audio-stream-controller.ts":function(Z,U,L){"use strict";L.r(U);var N=L("./src/polyfills/number.ts"),c=L("./src/controller/base-stream-controller.ts"),u=L("./src/events.ts"),M=L("./src/utils/buffer-helper.ts"),g=L("./src/controller/fragment-tracker.ts"),e=L("./src/types/level.ts"),m=L("./src/types/loader.ts"),r=L("./src/loader/fragment.ts"),h=L("./src/demux/chunk-cache.ts"),a=L("./src/demux/transmuxer-interface.ts"),l=L("./src/types/transmuxer.ts"),d=L("./src/controller/fragment-finders.ts"),y=L("./src/utils/discontinuities.ts"),s=L("./src/errors.ts"),p=L("./src/utils/logger.ts");function n(){return n=Object.assign||function(w){for(var x=1;x<arguments.length;x++){var A=arguments[x];for(var o in A)Object.prototype.hasOwnProperty.call(A,o)&&(w[o]=A[o])}return w},n.apply(this,arguments)}function i(w,x){w.prototype=Object.create(x.prototype),w.prototype.constructor=w,v(w,x)}function v(w,x){return v=Object.setPrototypeOf||function(o,f){return o.__proto__=f,o},v(w,x)}var C=100,R=function(w){i(x,w);function x(o,f){var E;return E=w.call(this,o,f,"[audio-stream-controller]")||this,E.videoBuffer=null,E.videoTrackCC=-1,E.waitingVideoCC=-1,E.audioSwitch=!1,E.trackId=-1,E.waitingData=null,E.mainDetails=null,E.bufferFlushed=!1,E._registerListeners(),E}var A=x.prototype;return A.onHandlerDestroying=function(){this._unregisterListeners(),this.mainDetails=null},A._registerListeners=function(){var f=this.hls;f.on(u.Events.MEDIA_ATTACHED,this.onMediaAttached,this),f.on(u.Events.MEDIA_DETACHING,this.onMediaDetaching,this),f.on(u.Events.MANIFEST_LOADING,this.onManifestLoading,this),f.on(u.Events.LEVEL_LOADED,this.onLevelLoaded,this),f.on(u.Events.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),f.on(u.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),f.on(u.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),f.on(u.Events.ERROR,this.onError,this),f.on(u.Events.BUFFER_RESET,this.onBufferReset,this),f.on(u.Events.BUFFER_CREATED,this.onBufferCreated,this),f.on(u.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),f.on(u.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),f.on(u.Events.FRAG_BUFFERED,this.onFragBuffered,this)},A._unregisterListeners=function(){var f=this.hls;f.off(u.Events.MEDIA_ATTACHED,this.onMediaAttached,this),f.off(u.Events.MEDIA_DETACHING,this.onMediaDetaching,this),f.off(u.Events.MANIFEST_LOADING,this.onManifestLoading,this),f.off(u.Events.LEVEL_LOADED,this.onLevelLoaded,this),f.off(u.Events.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),f.off(u.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),f.off(u.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),f.off(u.Events.ERROR,this.onError,this),f.off(u.Events.BUFFER_RESET,this.onBufferReset,this),f.off(u.Events.BUFFER_CREATED,this.onBufferCreated,this),f.off(u.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),f.off(u.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),f.off(u.Events.FRAG_BUFFERED,this.onFragBuffered,this)},A.onInitPtsFound=function(f,E){var O=E.frag,S=E.id,b=E.initPTS;if(S==="main"){var D=O.cc;this.initPTS[O.cc]=b,this.log("InitPTS for cc: "+D+" found from main: "+b),this.videoTrackCC=D,this.state===c.State.WAITING_INIT_PTS&&this.tick()}},A.startLoad=function(f){if(!this.levels){this.startPosition=f,this.state=c.State.STOPPED;return}var E=this.lastCurrentTime;this.stopLoad(),this.setInterval(C),this.fragLoadError=0,E>0&&f===-1?(this.log("Override startPosition with lastCurrentTime @"+E.toFixed(3)),this.state=c.State.IDLE):(this.loadedmetadata=!1,this.state=c.State.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=f,this.tick()},A.doTick=function(){switch(this.state){case c.State.IDLE:this.doTickIdle();break;case c.State.WAITING_TRACK:{var f,E=this.levels,O=this.trackId,S=E==null||((f=E[O])===null||f===void 0)?void 0:f.details;if(S){if(this.waitForCdnTuneIn(S))break;this.state=c.State.WAITING_INIT_PTS}break}case c.State.FRAG_LOADING_WAITING_RETRY:{var b,D=performance.now(),P=this.retryDate;(!P||D>=P||(b=this.media)!==null&&b!==void 0&&b.seeking)&&(this.log("RetryDate reached, switch back to IDLE state"),this.state=c.State.IDLE);break}case c.State.WAITING_INIT_PTS:{var I=this.waitingData;if(I){var F=I.frag,K=I.part,j=I.cache,Y=I.complete;if(this.initPTS[F.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=c.State.FRAG_LOADING;var W=j.flush(),Q={frag:F,part:K,payload:W,networkDetails:null};this._handleFragmentLoadProgress(Q),Y&&w.prototype._handleFragmentLoadComplete.call(this,Q)}else if(this.videoTrackCC!==this.waitingVideoCC)p.logger.log("Waiting fragment cc ("+F.cc+") cancelled because video is at cc "+this.videoTrackCC),this.clearWaitingFragment();else{var ie=this.getLoadPosition(),Ee=M.BufferHelper.bufferInfo(this.mediaBuffer,ie,this.config.maxBufferHole),pe=Object(d.fragmentWithinToleranceTest)(Ee.end,this.config.maxFragLookUpTolerance,F);pe<0&&(p.logger.log("Waiting fragment cc ("+F.cc+") @ "+F.start+" cancelled because another fragment at "+Ee.end+" is needed"),this.clearWaitingFragment())}}else this.state=c.State.IDLE}}this.onTickEnd()},A.clearWaitingFragment=function(){var f=this.waitingData;f&&(this.fragmentTracker.removeFragment(f.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=c.State.IDLE)},A.onTickEnd=function(){var f=this.media;if(!f||!f.readyState)return;var E=this.mediaBuffer?this.mediaBuffer:f,O=E.buffered;!this.loadedmetadata&&O.length&&(this.loadedmetadata=!0),this.lastCurrentTime=f.currentTime},A.doTickIdle=function(){var f,E,O=this.hls,S=this.levels,b=this.media,D=this.trackId,P=O.config;if(!S||!S[D])return;if(!b&&(this.startFragRequested||!P.startFragPrefetch))return;var I=S[D],F=I.details;if(!F||F.live&&this.levelLastLoaded!==D||this.waitForCdnTuneIn(F)){this.state=c.State.WAITING_TRACK;return}this.bufferFlushed&&(this.bufferFlushed=!1,this.afterBufferFlushed(this.mediaBuffer?this.mediaBuffer:this.media,r.ElementaryStreamTypes.AUDIO,m.PlaylistLevelType.AUDIO));var K=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,m.PlaylistLevelType.AUDIO);if(K===null)return;var j=K.len,Y=this.getMaxBufferLength(),W=this.audioSwitch;if(j>=Y&&!W)return;if(!W&&this._streamEnded(K,F)){O.trigger(u.Events.BUFFER_EOS,{type:"audio"}),this.state=c.State.ENDED;return}var Q=F.fragments,ie=Q[0].start,Ee=K.end;if(W){var pe=this.getLoadPosition();Ee=pe,F.PTSKnown&&pe<ie&&((K.end>ie||K.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),b.currentTime=ie+.05))}var De=this.getNextFragment(Ee,F);if(!De){this.bufferFlushed=!0;return}((f=De.decryptdata)===null||f===void 0?void 0:f.keyFormat)==="identity"&&!((E=De.decryptdata)!==null&&E!==void 0&&E.key)?this.loadKey(De,F):this.loadFragment(De,F,Ee)},A.getMaxBufferLength=function(){var f=w.prototype.getMaxBufferLength.call(this),E=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,m.PlaylistLevelType.MAIN);return E===null?f:Math.max(f,E.len)},A.onMediaDetaching=function(){this.videoBuffer=null,w.prototype.onMediaDetaching.call(this)},A.onAudioTracksUpdated=function(f,E){var O=E.audioTracks;this.resetTransmuxer(),this.levels=O.map(function(S){return new e.Level(S)})},A.onAudioTrackSwitching=function(f,E){var O=!!E.url;this.trackId=E.id;var S=this.fragCurrent;S!=null&&S.loader&&S.loader.abort(),this.fragCurrent=null,this.clearWaitingFragment(),O?this.setInterval(C):this.resetTransmuxer(),O?(this.audioSwitch=!0,this.state=c.State.IDLE):this.state=c.State.STOPPED,this.tick()},A.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=!1},A.onLevelLoaded=function(f,E){this.mainDetails=E.details},A.onAudioTrackLoaded=function(f,E){var O,S=this.levels,b=E.details,D=E.id;if(!S){this.warn("Audio tracks were reset while loading level "+D);return}this.log("Track "+D+" loaded ["+b.startSN+","+b.endSN+"],duration:"+b.totalduration);var P=S[D],I=0;if(b.live||(O=P.details)!==null&&O!==void 0&&O.live){var F=this.mainDetails;if(b.fragments[0]||(b.deltaUpdateFailed=!0),b.deltaUpdateFailed||!F)return;!P.details&&b.hasProgramDateTime&&F.hasProgramDateTime?(Object(y.alignMediaPlaylistByPDT)(b,F),I=b.fragments[0].start):I=this.alignPlaylists(b,P.details)}P.details=b,this.levelLastLoaded=D,!this.startFragRequested&&(this.mainDetails||!b.live)&&this.setStartPosition(P.details,I),this.state===c.State.WAITING_TRACK&&!this.waitForCdnTuneIn(b)&&(this.state=c.State.IDLE),this.tick()},A._handleFragmentLoadProgress=function(f){var E,O=f.frag,S=f.part,b=f.payload,D=this.config,P=this.trackId,I=this.levels;if(!I){this.warn("Audio tracks were reset while fragment load was in progress. Fragment "+O.sn+" of level "+O.level+" will not be buffered");return}var F=I[P];console.assert(F,"Audio track is defined on fragment load progress");var K=F.details;console.assert(K,"Audio track details are defined on fragment load progress");var j=D.defaultAudioCodec||F.audioCodec||"mp4a.40.2",Y=this.transmuxer;Y||(Y=this.transmuxer=new a.default(this.hls,m.PlaylistLevelType.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));var W=this.initPTS[O.cc],Q=(E=O.initSegment)===null||E===void 0?void 0:E.data;if(W!==void 0){var ie=!1,Ee=S?S.index:-1,pe=Ee!==-1,De=new l.ChunkMetadata(O.level,O.sn,O.stats.chunkCount,b.byteLength,Ee,pe);Y.push(b,Q,j,"",O,S,K.totalduration,ie,De,W)}else{p.logger.log("Unknown video PTS for cc "+O.cc+", waiting for video PTS before demuxing audio frag "+O.sn+" of ["+K.startSN+" ,"+K.endSN+"],track "+P);var Me=this.waitingData=this.waitingData||{frag:O,part:S,cache:new h.default,complete:!1},Ue=Me.cache;Ue.push(new Uint8Array(b)),this.waitingVideoCC=this.videoTrackCC,this.state=c.State.WAITING_INIT_PTS}},A._handleFragmentLoadComplete=function(f){if(this.waitingData){this.waitingData.complete=!0;return}w.prototype._handleFragmentLoadComplete.call(this,f)},A.onBufferReset=function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1},A.onBufferCreated=function(f,E){var O=E.tracks.audio;O&&(this.mediaBuffer=O.buffer),E.tracks.video&&(this.videoBuffer=E.tracks.video.buffer)},A.onFragBuffered=function(f,E){var O=E.frag,S=E.part;if(O.type!==m.PlaylistLevelType.AUDIO)return;if(this.fragContextChanged(O)){this.warn("Fragment "+O.sn+(S?" p: "+S.index:"")+" of level "+O.level+" finished buffering, but was aborted. state: "+this.state+", audioSwitch: "+this.audioSwitch);return}O.sn!=="initSegment"&&(this.fragPrevious=O,this.audioSwitch&&(this.audioSwitch=!1,this.hls.trigger(u.Events.AUDIO_TRACK_SWITCHED,{id:this.trackId}))),this.fragBufferedComplete(O,S)},A.onError=function(f,E){switch(E.details){case s.ErrorDetails.FRAG_LOAD_ERROR:case s.ErrorDetails.FRAG_LOAD_TIMEOUT:case s.ErrorDetails.KEY_LOAD_ERROR:case s.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(m.PlaylistLevelType.AUDIO,E);break;case s.ErrorDetails.AUDIO_TRACK_LOAD_ERROR:case s.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:this.state!==c.State.ERROR&&this.state!==c.State.STOPPED&&(this.state=E.fatal?c.State.ERROR:c.State.IDLE,this.warn(E.details+" while loading frag, switching to "+this.state+" state"));break;case s.ErrorDetails.BUFFER_FULL_ERROR:if(E.parent==="audio"&&(this.state===c.State.PARSING||this.state===c.State.PARSED)){var O=!0,S=this.getFwdBufferInfo(this.mediaBuffer,m.PlaylistLevelType.AUDIO);S&&S.len>.5&&(O=!this.reduceMaxBufferLength(S.len)),O&&(this.warn("Buffer full error also media.currentTime is not buffered, flush audio buffer"),this.fragCurrent=null,w.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.resetLoadingState()}break;default:break}},A.onBufferFlushed=function(f,E){var O=E.type;O===r.ElementaryStreamTypes.AUDIO&&(this.bufferFlushed=!0)},A._handleTransmuxComplete=function(f){var E,O="audio",S=this.hls,b=f.remuxResult,D=f.chunkMeta,P=this.getCurrentContext(D);if(!P){this.warn("The loading context changed while buffering fragment "+D.sn+" of level "+D.level+". This chunk will not be buffered."),this.resetLiveStartWhenNotLoaded(D.level);return}var I=P.frag,F=P.part,K=b.audio,j=b.text,Y=b.id3,W=b.initSegment;if(this.fragContextChanged(I))return;if(this.state=c.State.PARSING,this.audioSwitch&&K&&this.completeAudioSwitch(),W!=null&&W.tracks&&(this._bufferInitSegment(W.tracks,I,D),S.trigger(u.Events.FRAG_PARSING_INIT_SEGMENT,{frag:I,id:O,tracks:W.tracks})),K){var Q=K.startPTS,ie=K.endPTS,Ee=K.startDTS,pe=K.endDTS;F&&(F.elementaryStreams[r.ElementaryStreamTypes.AUDIO]={startPTS:Q,endPTS:ie,startDTS:Ee,endDTS:pe}),I.setElementaryStreamInfo(r.ElementaryStreamTypes.AUDIO,Q,ie,Ee,pe),this.bufferFragmentData(K,I,F,D)}if(Y!=null&&(E=Y.samples)!==null&&E!==void 0&&E.length){var De=n({frag:I,id:O},Y);S.trigger(u.Events.FRAG_PARSING_METADATA,De)}if(j){var Me=n({frag:I,id:O},j);S.trigger(u.Events.FRAG_PARSING_USERDATA,Me)}},A._bufferInitSegment=function(f,E,O){if(this.state!==c.State.PARSING)return;f.video&&delete f.video;var S=f.audio;if(!S)return;S.levelCodec=S.codec,S.id="audio",this.log("Init audio buffer, container:"+S.container+", codecs[parsed]=["+S.codec+"]"),this.hls.trigger(u.Events.BUFFER_CODECS,f);var b=S.initSegment;if(b!=null&&b.byteLength){var D={type:"audio",frag:E,part:null,chunkMeta:O,parent:E.type,data:b};this.hls.trigger(u.Events.BUFFER_APPENDING,D)}this.tick()},A.loadFragment=function(f,E,O){var S=this.fragmentTracker.getState(f);this.fragCurrent=f,(this.audioSwitch||S===g.FragmentState.NOT_LOADED||S===g.FragmentState.PARTIAL)&&(f.sn==="initSegment"?this._loadInitSegment(f):E.live&&!Object(N.isFiniteNumber)(this.initPTS[f.cc])?(this.log("Waiting for video PTS in continuity counter "+f.cc+" of live stream before loading audio fragment "+f.sn+" of level "+this.trackId),this.state=c.State.WAITING_INIT_PTS):(this.startFragRequested=!0,w.prototype.loadFragment.call(this,f,E,O)))},A.completeAudioSwitch=function(){var f=this.hls,E=this.media,O=this.trackId;E&&(this.log("Switching audio track : flushing all audio"),w.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.audioSwitch=!1,f.trigger(u.Events.AUDIO_TRACK_SWITCHED,{id:O})},x}(c.default);U.default=R},"./src/controller/audio-track-controller.ts":function(Z,U,L){"use strict";L.r(U);var N=L("./src/events.ts"),c=L("./src/errors.ts"),u=L("./src/controller/base-playlist-controller.ts"),M=L("./src/types/loader.ts");function g(a,l){for(var d=0;d<l.length;d++){var y=l[d];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(a,y.key,y)}}function e(a,l,d){return l&&g(a.prototype,l),d&&g(a,d),a}function m(a,l){a.prototype=Object.create(l.prototype),a.prototype.constructor=a,r(a,l)}function r(a,l){return r=Object.setPrototypeOf||function(y,s){return y.__proto__=s,y},r(a,l)}var h=function(a){m(l,a);function l(y){var s;return s=a.call(this,y,"[audio-track-controller]")||this,s.tracks=[],s.groupId=null,s.tracksInGroup=[],s.trackId=-1,s.trackName="",s.selectDefaultTrack=!0,s.registerListeners(),s}var d=l.prototype;return d.registerListeners=function(){var s=this.hls;s.on(N.Events.MANIFEST_LOADING,this.onManifestLoading,this),s.on(N.Events.MANIFEST_PARSED,this.onManifestParsed,this),s.on(N.Events.LEVEL_LOADING,this.onLevelLoading,this),s.on(N.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),s.on(N.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),s.on(N.Events.ERROR,this.onError,this)},d.unregisterListeners=function(){var s=this.hls;s.off(N.Events.MANIFEST_LOADING,this.onManifestLoading,this),s.off(N.Events.MANIFEST_PARSED,this.onManifestParsed,this),s.off(N.Events.LEVEL_LOADING,this.onLevelLoading,this),s.off(N.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),s.off(N.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),s.off(N.Events.ERROR,this.onError,this)},d.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,a.prototype.destroy.call(this)},d.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.trackName="",this.selectDefaultTrack=!0},d.onManifestParsed=function(s,p){this.tracks=p.audioTracks||[]},d.onAudioTrackLoaded=function(s,p){var n=p.id,i=p.details,v=this.tracksInGroup[n];if(!v){this.warn("Invalid audio track id "+n);return}var C=v.details;v.details=p.details,this.log("audioTrack "+n+" loaded ["+i.startSN+"-"+i.endSN+"]"),n===this.trackId&&(this.retryCount=0,this.playlistLoaded(n,p,C))},d.onLevelLoading=function(s,p){this.switchLevel(p.level)},d.onLevelSwitching=function(s,p){this.switchLevel(p.level)},d.switchLevel=function(s){var p=this.hls.levels[s];if(!(p!=null&&p.audioGroupIds))return;var n=p.audioGroupIds[p.urlId];if(this.groupId!==n){this.groupId=n;var i=this.tracks.filter(function(C){return!n||C.groupId===n});this.selectDefaultTrack&&!i.some(function(C){return C.default})&&(this.selectDefaultTrack=!1),this.tracksInGroup=i;var v={audioTracks:i};this.log("Updating audio tracks, "+i.length+' track(s) found in "'+n+'" group-id'),this.hls.trigger(N.Events.AUDIO_TRACKS_UPDATED,v),this.selectInitialTrack()}},d.onError=function(s,p){if(a.prototype.onError.call(this,s,p),p.fatal||!p.context)return;p.context.type===M.PlaylistContextType.AUDIO_TRACK&&p.context.id===this.trackId&&p.context.groupId===this.groupId&&this.retryLoadingOrFail(p)},d.setAudioTrack=function(s){var p=this.tracksInGroup;if(s<0||s>=p.length){this.warn("Invalid id passed to audio-track controller");return}this.clearTimer();var n=p[this.trackId];this.log("Now switching to audio-track index "+s);var i=p[s],v=i.id,C=i.groupId,R=C===void 0?"":C,w=i.name,x=i.type,A=i.url;if(this.trackId=s,this.trackName=w,this.selectDefaultTrack=!1,this.hls.trigger(N.Events.AUDIO_TRACK_SWITCHING,{id:v,groupId:R,name:w,type:x,url:A}),i.details&&!i.details.live)return;var o=this.switchParams(i.url,n==null?void 0:n.details);this.loadPlaylist(o)},d.selectInitialTrack=function(){var s=this.tracksInGroup;console.assert(s.length,"Initial audio track should be selected when tracks are known");var p=this.trackName,n=this.findTrackId(p)||this.findTrackId();n!==-1?this.setAudioTrack(n):(this.warn("No track found for running audio group-ID: "+this.groupId),this.hls.trigger(N.Events.ERROR,{type:c.ErrorTypes.MEDIA_ERROR,details:c.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,fatal:!0}))},d.findTrackId=function(s){for(var p=this.tracksInGroup,n=0;n<p.length;n++){var i=p[n];if((!this.selectDefaultTrack||i.default)&&(!s||s===i.name))return i.id}return-1},d.loadPlaylist=function(s){var p=this.tracksInGroup[this.trackId];if(this.shouldLoadTrack(p)){var n=p.id,i=p.groupId,v=p.url;if(s)try{v=s.addDirectives(v)}catch(C){this.warn("Could not construct new URL with HLS Delivery Directives: "+C)}this.log("loading audio-track playlist for id: "+n),this.clearTimer(),this.hls.trigger(N.Events.AUDIO_TRACK_LOADING,{url:v,id:n,groupId:i,deliveryDirectives:s||null})}},e(l,[{key:"audioTracks",get:function(){return this.tracksInGroup}},{key:"audioTrack",get:function(){return this.trackId},set:function(s){this.selectDefaultTrack=!1,this.setAudioTrack(s)}}]),l}(u.default);U.default=h},"./src/controller/base-playlist-controller.ts":function(Z,U,L){"use strict";L.r(U),L.d(U,"default",function(){return e});var N=L("./src/polyfills/number.ts"),c=L("./src/types/level.ts"),u=L("./src/controller/level-helper.ts"),M=L("./src/utils/logger.ts"),g=L("./src/errors.ts"),e=function(){function m(h,a){this.hls=void 0,this.timer=-1,this.canLoad=!1,this.retryCount=0,this.log=void 0,this.warn=void 0,this.log=M.logger.log.bind(M.logger,a+":"),this.warn=M.logger.warn.bind(M.logger,a+":"),this.hls=h}var r=m.prototype;return r.destroy=function(){this.clearTimer(),this.hls=this.log=this.warn=null},r.onError=function(a,l){l.fatal&&l.type===g.ErrorTypes.NETWORK_ERROR&&this.clearTimer()},r.clearTimer=function(){clearTimeout(this.timer),this.timer=-1},r.startLoad=function(){this.canLoad=!0,this.retryCount=0,this.loadPlaylist()},r.stopLoad=function(){this.canLoad=!1,this.clearTimer()},r.switchParams=function(a,l){var d=l==null?void 0:l.renditionReports;if(d)for(var y=0;y<d.length;y++){var s=d[y],p=""+s.URI;if(p===a.substr(-p.length)){var n=parseInt(s["LAST-MSN"]),i=parseInt(s["LAST-PART"]);if(l&&this.hls.config.lowLatencyMode){var v=Math.min(l.age-l.partTarget,l.targetduration);i!==void 0&&v>l.partTarget&&(i+=1)}if(Object(N.isFiniteNumber)(n))return new c.HlsUrlParameters(n,Object(N.isFiniteNumber)(i)?i:void 0,c.HlsSkip.No)}}},r.loadPlaylist=function(a){},r.shouldLoadTrack=function(a){return this.canLoad&&a&&!!a.url&&(!a.details||a.details.live)},r.playlistLoaded=function(a,l,d){var y=this,s=l.details,p=l.stats,n=p.loading.end?Math.max(0,self.performance.now()-p.loading.end):0;if(s.advancedDateTime=Date.now()-n,s.live||d!=null&&d.live){if(s.reloaded(d),d&&this.log("live playlist "+a+" "+(s.advanced?"REFRESHED "+s.lastPartSn+"-"+s.lastPartIndex:"MISSED")),d&&s.fragments.length>0&&Object(u.mergeDetails)(d,s),!this.canLoad||!s.live)return;var i,v=void 0,C=void 0;if(s.canBlockReload&&s.endSN&&s.advanced){var R=this.hls.config.lowLatencyMode,w=s.lastPartSn,x=s.endSN,A=s.lastPartIndex,o=A!==-1,f=w===x,E=R?0:A;o?(v=f?x+1:w,C=f?E:A+1):v=x+1;var O=s.age,S=O+s.ageHeader,b=Math.min(S-s.partTarget,s.targetduration*1.5);if(b>0){if(d&&b>d.tuneInGoal)this.warn("CDN Tune-in goal increased from: "+d.tuneInGoal+" to: "+b+" with playlist age: "+s.age),b=0;else{var D=Math.floor(b/s.targetduration);if(v+=D,C!==void 0){var P=Math.round(b%s.targetduration/s.partTarget);C+=P}this.log("CDN Tune-in age: "+s.ageHeader+"s last advanced "+O.toFixed(2)+"s goal: "+b+" skip sn "+D+" to part "+C)}s.tuneInGoal=b}if(i=this.getDeliveryDirectives(s,l.deliveryDirectives,v,C),R||!f){this.loadPlaylist(i);return}}else i=this.getDeliveryDirectives(s,l.deliveryDirectives,v,C);var I=Object(u.computeReloadInterval)(s,p);v!==void 0&&s.canBlockReload&&(I-=s.partTarget||1),this.log("reload live playlist "+a+" in "+Math.round(I)+" ms"),this.timer=self.setTimeout(function(){return y.loadPlaylist(i)},I)}else this.clearTimer()},r.getDeliveryDirectives=function(a,l,d,y){var s=Object(c.getSkipValue)(a,d);return l!=null&&l.skip&&a.deltaUpdateFailed&&(d=l.msn,y=l.part,s=c.HlsSkip.No),new c.HlsUrlParameters(d,y,s)},r.retryLoadingOrFail=function(a){var l=this,d=this.hls.config,y=this.retryCount<d.levelLoadingMaxRetry;if(y){var s;if(this.retryCount++,a.details.indexOf("LoadTimeOut")>-1&&(s=a.context)!==null&&s!==void 0&&s.deliveryDirectives)this.warn("retry playlist loading #"+this.retryCount+' after "'+a.details+'"'),this.loadPlaylist();else{var p=Math.min(Math.pow(2,this.retryCount)*d.levelLoadingRetryDelay,d.levelLoadingMaxRetryTimeout);this.timer=self.setTimeout(function(){return l.loadPlaylist()},p),this.warn("retry playlist loading #"+this.retryCount+" in "+p+' ms after "'+a.details+'"')}}else this.warn('cannot recover from error "'+a.details+'"'),this.clearTimer(),a.fatal=!0;return y},m}()},"./src/controller/base-stream-controller.ts":function(Z,U,L){"use strict";L.r(U),L.d(U,"State",function(){return x}),L.d(U,"default",function(){return A});var N=L("./src/polyfills/number.ts"),c=L("./src/task-loop.ts"),u=L("./src/controller/fragment-tracker.ts"),M=L("./src/utils/buffer-helper.ts"),g=L("./src/utils/logger.ts"),e=L("./src/events.ts"),m=L("./src/errors.ts"),r=L("./src/types/transmuxer.ts"),h=L("./src/utils/mp4-tools.ts"),a=L("./src/utils/discontinuities.ts"),l=L("./src/controller/fragment-finders.ts"),d=L("./src/controller/level-helper.ts"),y=L("./src/loader/fragment-loader.ts"),s=L("./src/crypt/decrypter.ts"),p=L("./src/utils/time-ranges.ts"),n=L("./src/types/loader.ts");function i(o,f){for(var E=0;E<f.length;E++){var O=f[E];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(o,O.key,O)}}function v(o,f,E){return f&&i(o.prototype,f),E&&i(o,E),o}function C(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function R(o,f){o.prototype=Object.create(f.prototype),o.prototype.constructor=o,w(o,f)}function w(o,f){return w=Object.setPrototypeOf||function(O,S){return O.__proto__=S,O},w(o,f)}var x={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"},A=function(o){R(f,o);function f(O,S,b){var D;return D=o.call(this)||this,D.hls=void 0,D.fragPrevious=null,D.fragCurrent=null,D.fragmentTracker=void 0,D.transmuxer=null,D._state=x.STOPPED,D.media=void 0,D.mediaBuffer=void 0,D.config=void 0,D.bitrateTest=!1,D.lastCurrentTime=0,D.nextLoadPosition=0,D.startPosition=0,D.loadedmetadata=!1,D.fragLoadError=0,D.retryDate=0,D.levels=null,D.fragmentLoader=void 0,D.levelLastLoaded=null,D.startFragRequested=!1,D.decrypter=void 0,D.initPTS=[],D.onvseeking=null,D.onvended=null,D.logPrefix="",D.log=void 0,D.warn=void 0,D.logPrefix=b,D.log=g.logger.log.bind(g.logger,b+":"),D.warn=g.logger.warn.bind(g.logger,b+":"),D.hls=O,D.fragmentLoader=new y.default(O.config),D.fragmentTracker=S,D.config=O.config,D.decrypter=new s.default(O,O.config),O.on(e.Events.KEY_LOADED,D.onKeyLoaded,C(D)),D}var E=f.prototype;return E.doTick=function(){this.onTickEnd()},E.onTickEnd=function(){},E.startLoad=function(S){},E.stopLoad=function(){this.fragmentLoader.abort();var S=this.fragCurrent;S&&this.fragmentTracker.removeFragment(S),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=x.STOPPED},E._streamEnded=function(S,b){var D=this.fragCurrent,P=this.fragmentTracker;if(!b.live&&D&&D.sn===b.endSN&&!S.nextStart){var I=P.getState(D);return I===u.FragmentState.PARTIAL||I===u.FragmentState.OK}return!1},E.onMediaAttached=function(S,b){var D=this.media=this.mediaBuffer=b.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),D.addEventListener("seeking",this.onvseeking),D.addEventListener("ended",this.onvended);var P=this.config;this.levels&&P.autoStartLoad&&this.state===x.STOPPED&&this.startLoad(P.startPosition)},E.onMediaDetaching=function(){var S=this.media;S!=null&&S.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),S&&(S.removeEventListener("seeking",this.onvseeking),S.removeEventListener("ended",this.onvended),this.onvseeking=this.onvended=null),this.media=this.mediaBuffer=null,this.loadedmetadata=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()},E.onMediaSeeking=function(){var S=this.config,b=this.fragCurrent,D=this.media,P=this.mediaBuffer,I=this.state,F=D?D.currentTime:0,K=M.BufferHelper.bufferInfo(P||D,F,S.maxBufferHole);if(this.log("media seeking to "+(Object(N.isFiniteNumber)(F)?F.toFixed(3):F)+", state: "+I),I===x.ENDED)this.resetLoadingState();else if(b&&!K.len){var j=S.maxFragLookUpTolerance,Y=b.start-j,W=b.start+b.duration+j,Q=F>W;(F<Y||Q)&&(Q&&b.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),b.loader.abort()),this.resetLoadingState())}D&&(this.lastCurrentTime=F),!this.loadedmetadata&&!K.len&&(this.nextLoadPosition=this.startPosition=F),this.tickImmediate()},E.onMediaEnded=function(){this.startPosition=this.lastCurrentTime=0},E.onKeyLoaded=function(S,b){if(this.state!==x.KEY_LOADING||b.frag!==this.fragCurrent||!this.levels)return;this.state=x.IDLE;var D=this.levels[b.frag.level].details;D&&this.loadFragment(b.frag,D,b.frag.start)},E.onHandlerDestroying=function(){this.stopLoad(),o.prototype.onHandlerDestroying.call(this)},E.onHandlerDestroyed=function(){this.state=x.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,o.prototype.onHandlerDestroyed.call(this)},E.loadKey=function(S,b){this.log("Loading key for "+S.sn+" of ["+b.startSN+"-"+b.endSN+"], "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+S.level),this.state=x.KEY_LOADING,this.fragCurrent=S,this.hls.trigger(e.Events.KEY_LOADING,{frag:S})},E.loadFragment=function(S,b,D){this._loadFragForPlayback(S,b,D)},E._loadFragForPlayback=function(S,b,D){var P=this,I=function(K){if(P.fragContextChanged(S)){P.warn("Fragment "+S.sn+(K.part?" p: "+K.part.index:"")+" of level "+S.level+" was dropped during download."),P.fragmentTracker.removeFragment(S);return}S.stats.chunkCount++,P._handleFragmentLoadProgress(K)};this._doFragLoad(S,b,D,I).then(function(F){if(!F)return;P.fragLoadError=0;var K=P.state;if(P.fragContextChanged(S)){(K===x.FRAG_LOADING||K===x.BACKTRACKING||!P.fragCurrent&&K===x.PARSING)&&(P.fragmentTracker.removeFragment(S),P.state=x.IDLE);return}if("payload"in F&&(P.log("Loaded fragment "+S.sn+" of level "+S.level),P.hls.trigger(e.Events.FRAG_LOADED,F),P.state===x.BACKTRACKING)){P.fragmentTracker.backtrack(S,F),P.resetFragmentLoading(S);return}P._handleFragmentLoadComplete(F)}).catch(function(F){P.warn(F),P.resetFragmentLoading(S)})},E.flushMainBuffer=function(S,b,D){if(D===void 0&&(D=null),!(S-b))return;var P={startOffset:S,endOffset:b,type:D};this.fragLoadError=0,this.hls.trigger(e.Events.BUFFER_FLUSHING,P)},E._loadInitSegment=function(S){var b=this;this._doFragLoad(S).then(function(D){if(!D||b.fragContextChanged(S)||!b.levels)throw new Error("init load aborted");return D}).then(function(D){var P=b.hls,I=D.payload,F=S.decryptdata;if(I&&I.byteLength>0&&F&&F.key&&F.iv&&F.method==="AES-128"){var K=self.performance.now();return b.decrypter.webCryptoDecrypt(new Uint8Array(I),F.key.buffer,F.iv.buffer).then(function(j){var Y=self.performance.now();return P.trigger(e.Events.FRAG_DECRYPTED,{frag:S,payload:j,stats:{tstart:K,tdecrypt:Y}}),D.payload=j,D})}return D}).then(function(D){var P=b.fragCurrent,I=b.hls,F=b.levels;if(!F)throw new Error("init load aborted, missing levels");var K=F[S.level].details;console.assert(K,"Level details are defined when init segment is loaded");var j=S.stats;b.state=x.IDLE,b.fragLoadError=0,S.data=new Uint8Array(D.payload),j.parsing.start=j.buffering.start=self.performance.now(),j.parsing.end=j.buffering.end=self.performance.now(),D.frag===P&&I.trigger(e.Events.FRAG_BUFFERED,{stats:j,frag:P,part:null,id:S.type}),b.tick()}).catch(function(D){b.warn(D),b.resetFragmentLoading(S)})},E.fragContextChanged=function(S){var b=this.fragCurrent;return!S||!b||S.level!==b.level||S.sn!==b.sn||S.urlId!==b.urlId},E.fragBufferedComplete=function(S,b){var D=this.mediaBuffer?this.mediaBuffer:this.media;this.log("Buffered "+S.type+" sn: "+S.sn+(b?" part: "+b.index:"")+" of "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+S.level+" "+p.default.toString(M.BufferHelper.getBuffered(D))),this.state=x.IDLE,this.tick()},E._handleFragmentLoadComplete=function(S){var b=this.transmuxer;if(!b)return;var D=S.frag,P=S.part,I=S.partsLoaded,F=!I||I.length===0||I.some(function(j){return!j}),K=new r.ChunkMetadata(D.level,D.sn,D.stats.chunkCount+1,0,P?P.index:-1,!F);b.flush(K)},E._handleFragmentLoadProgress=function(S){},E._doFragLoad=function(S,b,D,P){var I=this;if(D===void 0&&(D=null),!this.levels)throw new Error("frag load aborted, missing levels");if(D=Math.max(S.start,D||0),this.config.lowLatencyMode&&b){var F=b.partList;if(F&&P){D>S.end&&b.fragmentHint&&(S=b.fragmentHint);var K=this.getNextPart(F,S,D);if(K>-1){var j=F[K];return this.log("Loading part sn: "+S.sn+" p: "+j.index+" cc: "+S.cc+" of playlist ["+b.startSN+"-"+b.endSN+"] parts [0-"+K+"-"+(F.length-1)+"] "+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+S.level+", target: "+parseFloat(D.toFixed(3))),this.nextLoadPosition=j.start+j.duration,this.state=x.FRAG_LOADING,this.hls.trigger(e.Events.FRAG_LOADING,{frag:S,part:F[K],targetBufferTime:D}),this.doFragPartsLoad(S,F,K,P).catch(function(Y){return I.handleFragLoadError(Y)})}else if(!S.url||this.loadedEndOfParts(F,D))return Promise.resolve(null)}}return this.log("Loading fragment "+S.sn+" cc: "+S.cc+" "+(b?"of ["+b.startSN+"-"+b.endSN+"] ":"")+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+S.level+", target: "+parseFloat(D.toFixed(3))),Object(N.isFiniteNumber)(S.sn)&&!this.bitrateTest&&(this.nextLoadPosition=S.start+S.duration),this.state=x.FRAG_LOADING,this.hls.trigger(e.Events.FRAG_LOADING,{frag:S,targetBufferTime:D}),this.fragmentLoader.load(S,P).catch(function(Y){return I.handleFragLoadError(Y)})},E.doFragPartsLoad=function(S,b,D,P){var I=this;return new Promise(function(F,K){var j=[],Y=function W(Q){var ie=b[Q];I.fragmentLoader.loadPart(S,ie,P).then(function(Ee){j[ie.index]=Ee;var pe=Ee.part;I.hls.trigger(e.Events.FRAG_LOADED,Ee);var De=b[Q+1];if(De&&De.fragment===S)W(Q+1);else return F({frag:S,part:pe,partsLoaded:j})}).catch(K)};Y(D)})},E.handleFragLoadError=function(S){var b=S.data;return b&&b.details===m.ErrorDetails.INTERNAL_ABORTED?this.handleFragLoadAborted(b.frag,b.part):this.hls.trigger(e.Events.ERROR,b),null},E._handleTransmuxerFlush=function(S){var b=this.getCurrentContext(S);if(!b||this.state!==x.PARSING){this.fragCurrent||(this.state=x.IDLE);return}var D=b.frag,P=b.part,I=b.level,F=self.performance.now();D.stats.parsing.end=F,P&&(P.stats.parsing.end=F),this.updateLevelTiming(D,P,I,S.partial)},E.getCurrentContext=function(S){var b=this.levels,D=S.level,P=S.sn,I=S.part;if(!b||!b[D])return this.warn("Levels object was unset while buffering fragment "+P+" of level "+D+". The current chunk will not be buffered."),null;var F=b[D],K=I>-1?Object(d.getPartWith)(F,P,I):null,j=K?K.fragment:Object(d.getFragmentWithSN)(F,P,this.fragCurrent);return j?{frag:j,part:K,level:F}:null},E.bufferFragmentData=function(S,b,D,P){if(!S||this.state!==x.PARSING)return;var I=S.data1,F=S.data2,K=I;if(I&&F&&(K=Object(h.appendUint8Array)(I,F)),!K||!K.length)return;var j={type:S.type,frag:b,part:D,chunkMeta:P,parent:b.type,data:K};this.hls.trigger(e.Events.BUFFER_APPENDING,j),S.dropped&&S.independent&&!D&&this.flushBufferGap(b)},E.flushBufferGap=function(S){var b=this.media;if(!b)return;if(!M.BufferHelper.isBuffered(b,b.currentTime)){this.flushMainBuffer(0,S.start);return}var D=b.currentTime,P=M.BufferHelper.bufferInfo(b,D,0),I=S.duration,F=Math.min(this.config.maxFragLookUpTolerance*2,I*.25),K=Math.max(Math.min(S.start-F,P.end-F),D+F);S.start-K>F&&this.flushMainBuffer(K,S.start)},E.getFwdBufferInfo=function(S,b){var D=this.config,P=this.getLoadPosition();if(!Object(N.isFiniteNumber)(P))return null;var I=M.BufferHelper.bufferInfo(S,P,D.maxBufferHole);if(I.len===0&&I.nextStart!==void 0){var F=this.fragmentTracker.getBufferedFrag(P,b);if(F&&I.nextStart<F.end)return M.BufferHelper.bufferInfo(S,P,Math.max(I.nextStart,D.maxBufferHole))}return I},E.getMaxBufferLength=function(S){var b=this.config,D;return S?D=Math.max(8*b.maxBufferSize/S,b.maxBufferLength):D=b.maxBufferLength,Math.min(D,b.maxMaxBufferLength)},E.reduceMaxBufferLength=function(S){var b=this.config,D=S||b.maxBufferLength;return b.maxMaxBufferLength>=D?(b.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to "+b.maxMaxBufferLength+"s"),!0):!1},E.getNextFragment=function(S,b){var D,P,I=b.fragments,F=I.length;if(!F)return null;var K=this.config,j=I[0].start,Y;if(b.live){var W=K.initialLiveManifestSize;if(F<W)return this.warn("Not enough fragments to start playback (have: "+F+", need: "+W+")"),null;!b.PTSKnown&&!this.startFragRequested&&this.startPosition===-1&&(Y=this.getInitialLiveFragment(b,I),this.startPosition=Y?this.hls.liveSyncPosition||Y.start:S)}else S<=j&&(Y=I[0]);if(!Y){var Q=K.lowLatencyMode?b.partEnd:b.fragmentEnd;Y=this.getFragmentAtPosition(S,Q,b)}return(D=Y)!==null&&D!==void 0&&D.initSegment&&!((P=Y)!==null&&P!==void 0&&P.initSegment.data)&&!this.bitrateTest&&(Y=Y.initSegment),Y},E.getNextPart=function(S,b,D){for(var P=-1,I=!1,F=!0,K=0,j=S.length;K<j;K++){var Y=S[K];if(F=F&&!Y.independent,P>-1&&D<Y.start)break;var W=Y.loaded;!W&&(I||Y.independent||F)&&Y.fragment===b&&(P=K),I=W}return P},E.loadedEndOfParts=function(S,b){var D=S[S.length-1];return D&&b>D.start&&D.loaded},E.getInitialLiveFragment=function(S,b){var D=this.fragPrevious,P=null;if(D){if(S.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: "+D.programDateTime),P=Object(l.findFragmentByPDT)(b,D.endProgramDateTime,this.config.maxFragLookUpTolerance)),!P){var I=D.sn+1;if(I>=S.startSN&&I<=S.endSN){var F=b[I-S.startSN];D.cc===F.cc&&(P=F,this.log("Live playlist, switching playlist, load frag with next SN: "+P.sn))}P||(P=Object(l.findFragWithCC)(b,D.cc),P&&this.log("Live playlist, switching playlist, load frag with same CC: "+P.sn))}}else{var K=this.hls.liveSyncPosition;K!==null&&(P=this.getFragmentAtPosition(K,this.bitrateTest?S.fragmentEnd:S.edge,S))}return P},E.getFragmentAtPosition=function(S,b,D){var P=this.config,I=this.fragPrevious,F=D.fragments,K=D.endSN,j=D.fragmentHint,Y=P.maxFragLookUpTolerance,W=!!(P.lowLatencyMode&&D.partList&&j);W&&j&&!this.bitrateTest&&(F=F.concat(j),K=j.sn);var Q;if(S<b){var ie=S>b-Y?0:Y;Q=Object(l.findFragmentByPTS)(I,F,S,ie)}else Q=F[F.length-1];if(Q){var Ee=Q.sn-D.startSN,pe=I&&Q.level===I.level,De=F[Ee+1],Me=this.fragmentTracker.getState(Q);if(Me===u.FragmentState.BACKTRACKED){Q=null;for(var Ue=Ee;F[Ue]&&this.fragmentTracker.getState(F[Ue])===u.FragmentState.BACKTRACKED;)I?Q=F[Ue--]:Q=F[--Ue];Q||(Q=De)}else I&&Q.sn===I.sn&&!W&&(pe&&(Q.sn<K&&this.fragmentTracker.getState(De)!==u.FragmentState.OK?(this.log("SN "+Q.sn+" just loaded, load next one: "+De.sn),Q=De):Q=null))}return Q},E.synchronizeToLiveEdge=function(S){var b=this.config,D=this.media;if(!D)return;var P=this.hls.liveSyncPosition,I=D.currentTime,F=S.fragments[0].start,K=S.edge,j=I>=F-b.maxFragLookUpTolerance&&I<=K;if(P!==null&&D.duration>P&&(I<P||!j)){var Y=b.liveMaxLatencyDuration!==void 0?b.liveMaxLatencyDuration:b.liveMaxLatencyDurationCount*S.targetduration;(!j&&D.readyState<4||I<K-Y)&&(this.loadedmetadata||(this.nextLoadPosition=P),D.readyState&&(this.warn("Playback: "+I.toFixed(3)+" is located too far from the end of live sliding playlist: "+K+", reset currentTime to : "+P.toFixed(3)),D.currentTime=P))}},E.alignPlaylists=function(S,b){var D=this.levels,P=this.levelLastLoaded,I=this.fragPrevious,F=P!==null?D[P]:null,K=S.fragments.length;if(!K)return this.warn("No fragments in live playlist"),0;var j=S.fragments[0].start,Y=!b,W=S.alignedSliding&&Object(N.isFiniteNumber)(j);if(Y||!W&&!j){Object(a.alignStream)(I,F,S);var Q=S.fragments[0].start;return this.log("Live playlist sliding: "+Q.toFixed(2)+" start-sn: "+(b?b.startSN:"na")+"->"+S.startSN+" prev-sn: "+(I?I.sn:"na")+" fragments: "+K),Q}return j},E.waitForCdnTuneIn=function(S){var b=3;return S.live&&S.canBlockReload&&S.tuneInGoal>Math.max(S.partHoldBack,S.partTarget*b)},E.setStartPosition=function(S,b){var D=this.startPosition;if(D<b&&(D=-1),D===-1||this.lastCurrentTime===-1){var P=S.startTimeOffset;Object(N.isFiniteNumber)(P)?(D=b+P,P<0&&(D+=S.totalduration),D=Math.min(Math.max(b,D),b+S.totalduration),this.log("Start time offset "+P+" found in playlist, adjust startPosition to "+D),this.startPosition=D):S.live?D=this.hls.liveSyncPosition||b:this.startPosition=D=0,this.lastCurrentTime=D}this.nextLoadPosition=D},E.getLoadPosition=function(){var S=this.media,b=0;return this.loadedmetadata&&S?b=S.currentTime:this.nextLoadPosition&&(b=this.nextLoadPosition),b},E.handleFragLoadAborted=function(S,b){this.transmuxer&&S.sn!=="initSegment"&&S.stats.aborted&&(this.warn("Fragment "+S.sn+(b?" part"+b.index:"")+" of level "+S.level+" was aborted"),this.resetFragmentLoading(S))},E.resetFragmentLoading=function(S){(!this.fragCurrent||!this.fragContextChanged(S))&&(this.state=x.IDLE)},E.onFragmentOrKeyLoadError=function(S,b){if(b.fatal)return;var D=b.frag;if(!D||D.type!==S)return;var P=this.fragCurrent;console.assert(P&&D.sn===P.sn&&D.level===P.level&&D.urlId===P.urlId,"Frag load error must match current frag to retry");var I=this.config;if(this.fragLoadError+1<=I.fragLoadingMaxRetry){if(this.resetLiveStartWhenNotLoaded(D.level))return;var F=Math.min(Math.pow(2,this.fragLoadError)*I.fragLoadingRetryDelay,I.fragLoadingMaxRetryTimeout);this.warn("Fragment "+D.sn+" of "+S+" "+D.level+" failed to load, retrying in "+F+"ms"),this.retryDate=self.performance.now()+F,this.fragLoadError++,this.state=x.FRAG_LOADING_WAITING_RETRY}else b.levelRetry?(S===n.PlaylistLevelType.AUDIO&&(this.fragCurrent=null),this.fragLoadError=0,this.state=x.IDLE):(g.logger.error(b.details+" reaches max retry, redispatch as fatal ..."),b.fatal=!0,this.hls.stopLoad(),this.state=x.ERROR)},E.afterBufferFlushed=function(S,b,D){if(!S)return;var P=M.BufferHelper.getBuffered(S);this.fragmentTracker.detectEvictedFragments(b,P,D),this.state===x.ENDED&&this.resetLoadingState()},E.resetLoadingState=function(){this.fragCurrent=null,this.fragPrevious=null,this.state=x.IDLE},E.resetLiveStartWhenNotLoaded=function(S){if(!this.loadedmetadata){this.startFragRequested=!1;var b=this.levels?this.levels[S].details:null;if(b!=null&&b.live)return this.startPosition=-1,this.setStartPosition(b,0),this.resetLoadingState(),!0;this.nextLoadPosition=this.startPosition}return!1},E.updateLevelTiming=function(S,b,D,P){var I=this,F=D.details;console.assert(!!F,"level.details must be defined");var K=Object.keys(S.elementaryStreams).reduce(function(j,Y){var W=S.elementaryStreams[Y];if(W){var Q=W.endPTS-W.startPTS;if(Q<=0)return I.warn("Could not parse fragment "+S.sn+" "+Y+" duration reliably ("+Q+") resetting transmuxer to fallback to playlist timing"),I.resetTransmuxer(),j||!1;var ie=P?0:Object(d.updateFragPTSDTS)(F,S,W.startPTS,W.endPTS,W.startDTS,W.endDTS);return I.hls.trigger(e.Events.LEVEL_PTS_UPDATED,{details:F,level:D,drift:ie,type:Y,frag:S,start:W.startPTS,end:W.endPTS}),!0}return j},!1);K?(this.state=x.PARSED,this.hls.trigger(e.Events.FRAG_PARSED,{frag:S,part:b})):this.resetLoadingState()},E.resetTransmuxer=function(){this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null)},v(f,[{key:"state",get:function(){return this._state},set:function(S){var b=this._state;b!==S&&(this._state=S,this.log(b+"->"+S))}}]),f}(c.default)},"./src/controller/buffer-controller.ts":function(Z,U,L){"use strict";L.r(U),L.d(U,"default",function(){return l});var N=L("./src/polyfills/number.ts"),c=L("./src/events.ts"),u=L("./src/utils/logger.ts"),M=L("./src/errors.ts"),g=L("./src/utils/buffer-helper.ts"),e=L("./src/utils/mediasource-helper.ts"),m=L("./src/loader/fragment.ts"),r=L("./src/controller/buffer-operation-queue.ts"),h=Object(e.getMediaSource)(),a=/([ha]vc.)(?:\.[^.,]+)+/,l=function(){function d(s){var p=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=p.hls,i=p.media,v=p.mediaSource;u.logger.log("[buffer-controller]: Media source opened"),i&&(p.updateMediaElementDuration(),n.trigger(c.Events.MEDIA_ATTACHED,{media:i})),v&&v.removeEventListener("sourceopen",p._onMediaSourceOpen),p.checkPendingTracks()},this._onMediaSourceClose=function(){u.logger.log("[buffer-controller]: Media source closed")},this._onMediaSourceEnded=function(){u.logger.log("[buffer-controller]: Media source ended")},this.hls=s,this._initSourceBuffer(),this.registerListeners()}var y=d.prototype;return y.hasSourceTypes=function(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0},y.destroy=function(){this.unregisterListeners(),this.details=null},y.registerListeners=function(){var p=this.hls;p.on(c.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),p.on(c.Events.MEDIA_DETACHING,this.onMediaDetaching,this),p.on(c.Events.MANIFEST_PARSED,this.onManifestParsed,this),p.on(c.Events.BUFFER_RESET,this.onBufferReset,this),p.on(c.Events.BUFFER_APPENDING,this.onBufferAppending,this),p.on(c.Events.BUFFER_CODECS,this.onBufferCodecs,this),p.on(c.Events.BUFFER_EOS,this.onBufferEos,this),p.on(c.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),p.on(c.Events.LEVEL_UPDATED,this.onLevelUpdated,this),p.on(c.Events.FRAG_PARSED,this.onFragParsed,this),p.on(c.Events.FRAG_CHANGED,this.onFragChanged,this)},y.unregisterListeners=function(){var p=this.hls;p.off(c.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),p.off(c.Events.MEDIA_DETACHING,this.onMediaDetaching,this),p.off(c.Events.MANIFEST_PARSED,this.onManifestParsed,this),p.off(c.Events.BUFFER_RESET,this.onBufferReset,this),p.off(c.Events.BUFFER_APPENDING,this.onBufferAppending,this),p.off(c.Events.BUFFER_CODECS,this.onBufferCodecs,this),p.off(c.Events.BUFFER_EOS,this.onBufferEos,this),p.off(c.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),p.off(c.Events.LEVEL_UPDATED,this.onLevelUpdated,this),p.off(c.Events.FRAG_PARSED,this.onFragParsed,this),p.off(c.Events.FRAG_CHANGED,this.onFragChanged,this)},y._initSourceBuffer=function(){this.sourceBuffer={},this.operationQueue=new r.default(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]}},y.onManifestParsed=function(p,n){var i=2;(n.audio&&!n.video||!n.altAudio)&&(i=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=i,this.details=null,u.logger.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")},y.onMediaAttaching=function(p,n){var i=this.media=n.media;if(i&&h){var v=this.mediaSource=new h;v.addEventListener("sourceopen",this._onMediaSourceOpen),v.addEventListener("sourceended",this._onMediaSourceEnded),v.addEventListener("sourceclose",this._onMediaSourceClose),i.src=self.URL.createObjectURL(v),this._objectUrl=i.src}},y.onMediaDetaching=function(){var p=this.media,n=this.mediaSource,i=this._objectUrl;if(n){if(u.logger.log("[buffer-controller]: media source detaching"),n.readyState==="open")try{n.endOfStream()}catch(v){u.logger.warn("[buffer-controller]: onMediaDetaching: "+v.message+" while calling endOfStream")}this.onBufferReset(),n.removeEventListener("sourceopen",this._onMediaSourceOpen),n.removeEventListener("sourceended",this._onMediaSourceEnded),n.removeEventListener("sourceclose",this._onMediaSourceClose),p&&(i&&self.URL.revokeObjectURL(i),p.src===i?(p.removeAttribute("src"),p.load()):u.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)},y.onBufferReset=function(){var p=this;this.getSourceBufferTypes().forEach(function(n){var i=p.sourceBuffer[n];try{i&&(p.removeBufferListeners(n),p.mediaSource&&p.mediaSource.removeSourceBuffer(i),p.sourceBuffer[n]=void 0)}catch(v){u.logger.warn("[buffer-controller]: Failed to reset the "+n+" buffer",v)}}),this._initSourceBuffer()},y.onBufferCodecs=function(p,n){var i=this,v=this.getSourceBufferTypes().length;if(Object.keys(n).forEach(function(C){if(v){var R=i.tracks[C];if(R&&typeof R.buffer.changeType=="function"){var w=n[C],x=w.codec,A=w.levelCodec,o=w.container,f=(R.levelCodec||R.codec).replace(a,"$1"),E=(A||x).replace(a,"$1");if(f!==E){var O=o+";codecs="+(A||x);i.appendChangeType(C,O)}}}else i.pendingTracks[C]=n[C]}),v)return;this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()},y.appendChangeType=function(p,n){var i=this,v=this.operationQueue,C={execute:function(){var w=i.sourceBuffer[p];w&&(u.logger.log("[buffer-controller]: changing "+p+" sourceBuffer type to "+n),w.changeType(n)),v.shiftAndExecuteNext(p)},onStart:function(){},onComplete:function(){},onError:function(w){u.logger.warn("[buffer-controller]: Failed to change "+p+" SourceBuffer type",w)}};v.append(C,p)},y.onBufferAppending=function(p,n){var i=this,v=this.hls,C=this.operationQueue,R=this.tracks,w=n.data,x=n.type,A=n.frag,o=n.part,f=n.chunkMeta,E=f.buffering[x],O=self.performance.now();E.start=O;var S=A.stats.buffering,b=o?o.stats.buffering:null;S.start===0&&(S.start=O),b&&b.start===0&&(b.start=O);var D=R.audio,P=x==="audio"&&f.id===1&&(D==null?void 0:D.container)==="audio/mpeg",I={execute:function(){if(E.executeStart=self.performance.now(),P){var K=i.sourceBuffer[x];if(K){var j=A.start-K.timestampOffset;Math.abs(j)>=.1&&(u.logger.log("[buffer-controller]: Updating audio SourceBuffer timestampOffset to "+A.start+" (delta: "+j+") sn: "+A.sn+")"),K.timestampOffset=A.start)}}i.appendExecutor(w,x)},onStart:function(){},onComplete:function(){var K=self.performance.now();E.executeEnd=E.end=K,S.first===0&&(S.first=K),b&&b.first===0&&(b.first=K);var j=i.sourceBuffer,Y={};for(var W in j)Y[W]=g.BufferHelper.getBuffered(j[W]);i.appendError=0,i.hls.trigger(c.Events.BUFFER_APPENDED,{type:x,frag:A,part:o,chunkMeta:f,parent:A.type,timeRanges:Y})},onError:function(K){u.logger.error("[buffer-controller]: Error encountered while trying to append to the "+x+" SourceBuffer",K);var j={type:M.ErrorTypes.MEDIA_ERROR,parent:A.type,details:M.ErrorDetails.BUFFER_APPEND_ERROR,err:K,fatal:!1};K.code===DOMException.QUOTA_EXCEEDED_ERR?j.details=M.ErrorDetails.BUFFER_FULL_ERROR:(i.appendError++,j.details=M.ErrorDetails.BUFFER_APPEND_ERROR,i.appendError>v.config.appendErrorMaxRetry&&(u.logger.error("[buffer-controller]: Failed "+v.config.appendErrorMaxRetry+" times to append segment in sourceBuffer"),j.fatal=!0)),v.trigger(c.Events.ERROR,j)}};C.append(I,x)},y.onBufferFlushing=function(p,n){var i=this,v=this.operationQueue,C=function(w){return{execute:i.removeExecutor.bind(i,w,n.startOffset,n.endOffset),onStart:function(){},onComplete:function(){i.hls.trigger(c.Events.BUFFER_FLUSHED,{type:w})},onError:function(A){u.logger.warn("[buffer-controller]: Failed to remove from "+w+" SourceBuffer",A)}}};n.type?v.append(C(n.type),n.type):this.getSourceBufferTypes().forEach(function(R){v.append(C(R),R)})},y.onFragParsed=function(p,n){var i=this,v=n.frag,C=n.part,R=[],w=C?C.elementaryStreams:v.elementaryStreams;w[m.ElementaryStreamTypes.AUDIOVIDEO]?R.push("audiovideo"):(w[m.ElementaryStreamTypes.AUDIO]&&R.push("audio"),w[m.ElementaryStreamTypes.VIDEO]&&R.push("video"));var x=function(){var o=self.performance.now();v.stats.buffering.end=o,C&&(C.stats.buffering.end=o);var f=C?C.stats:v.stats;i.hls.trigger(c.Events.FRAG_BUFFERED,{frag:v,part:C,stats:f,id:v.type})};R.length===0&&u.logger.warn("Fragments must have at least one ElementaryStreamType set. type: "+v.type+" level: "+v.level+" sn: "+v.sn),this.blockBuffers(x,R)},y.onFragChanged=function(p,n){this.flushBackBuffer()},y.onBufferEos=function(p,n){var i=this,v=this.getSourceBufferTypes().reduce(function(C,R){var w=i.sourceBuffer[R];return(!n.type||n.type===R)&&(w&&!w.ended&&(w.ended=!0,u.logger.log("[buffer-controller]: "+R+" sourceBuffer now EOS"))),C&&!!(!w||w.ended)},!0);v&&this.blockBuffers(function(){var C=i.mediaSource;if(!C||C.readyState!=="open")return;C.endOfStream()})},y.onLevelUpdated=function(p,n){var i=n.details;if(!i.fragments.length)return;this.details=i,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration()},y.flushBackBuffer=function(){var p=this.hls,n=this.details,i=this.media,v=this.sourceBuffer;if(!i||n===null)return;var C=this.getSourceBufferTypes();if(!C.length)return;var R=n.live&&p.config.liveBackBufferLength!==null?p.config.liveBackBufferLength:p.config.backBufferLength;if(!Object(N.isFiniteNumber)(R)||R<0)return;var w=i.currentTime,x=n.levelTargetDuration,A=Math.max(R,x),o=Math.floor(w/x)*x-A;C.forEach(function(f){var E=v[f];if(E){var O=g.BufferHelper.getBuffered(E);O.length>0&&o>O.start(0)&&(p.trigger(c.Events.BACK_BUFFER_REACHED,{bufferEnd:o}),n.live&&p.trigger(c.Events.LIVE_BACK_BUFFER_REACHED,{bufferEnd:o}),p.trigger(c.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:o,type:f}))}})},y.updateMediaElementDuration=function(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;var p=this.details,n=this.hls,i=this.media,v=this.mediaSource,C=p.fragments[0].start+p.totalduration,R=i.duration,w=Object(N.isFiniteNumber)(v.duration)?v.duration:0;p.live&&n.config.liveDurationInfinity?(u.logger.log("[buffer-controller]: Media Source duration is set to Infinity"),v.duration=Infinity,this.updateSeekableRange(p)):(C>w&&C>R||!Object(N.isFiniteNumber)(R))&&(u.logger.log("[buffer-controller]: Updating Media Source duration to "+C.toFixed(3)),v.duration=C)},y.updateSeekableRange=function(p){var n=this.mediaSource,i=p.fragments,v=i.length;if(v&&p.live&&n!==null&&n!==void 0&&n.setLiveSeekableRange){var C=Math.max(0,i[0].start),R=Math.max(C,C+p.totalduration);n.setLiveSeekableRange(C,R)}},y.checkPendingTracks=function(){var p=this.bufferCodecEventsExpected,n=this.operationQueue,i=this.pendingTracks,v=Object.keys(i).length;if(v&&!p||v===2){this.createSourceBuffers(i),this.pendingTracks={};var C=this.getSourceBufferTypes();if(C.length===0){this.hls.trigger(c.Events.ERROR,{type:M.ErrorTypes.MEDIA_ERROR,details:M.ErrorDetails.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,reason:"could not create source buffer for media codec(s)"});return}C.forEach(function(R){n.executeNext(R)})}},y.createSourceBuffers=function(p){var n=this.sourceBuffer,i=this.mediaSource;if(!i)throw Error("createSourceBuffers called when mediaSource was null");var v=0;for(var C in p)if(!n[C]){var R=p[C];if(!R)throw Error("source buffer exists for track "+C+", however track does not");var w=R.levelCodec||R.codec,x=R.container+";codecs="+w;u.logger.log("[buffer-controller]: creating sourceBuffer("+x+")");try{var A=n[C]=i.addSourceBuffer(x),o=C;this.addBufferListener(o,"updatestart",this._onSBUpdateStart),this.addBufferListener(o,"updateend",this._onSBUpdateEnd),this.addBufferListener(o,"error",this._onSBUpdateError),this.tracks[C]={buffer:A,codec:w,container:R.container,levelCodec:R.levelCodec,id:R.id},v++}catch(f){u.logger.error("[buffer-controller]: error while trying to add sourceBuffer: "+f.message),this.hls.trigger(c.Events.ERROR,{type:M.ErrorTypes.MEDIA_ERROR,details:M.ErrorDetails.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:f,mimeType:x})}}v&&this.hls.trigger(c.Events.BUFFER_CREATED,{tracks:this.tracks})},y._onSBUpdateStart=function(p){var n=this.operationQueue,i=n.current(p);i.onStart()},y._onSBUpdateEnd=function(p){var n=this.operationQueue,i=n.current(p);i.onComplete(),n.shiftAndExecuteNext(p)},y._onSBUpdateError=function(p,n){u.logger.error("[buffer-controller]: "+p+" SourceBuffer error",n),this.hls.trigger(c.Events.ERROR,{type:M.ErrorTypes.MEDIA_ERROR,details:M.ErrorDetails.BUFFER_APPENDING_ERROR,fatal:!1});var i=this.operationQueue.current(p);i&&i.onError(n)},y.removeExecutor=function(p,n,i){var v=this.media,C=this.mediaSource,R=this.operationQueue,w=this.sourceBuffer,x=w[p];if(!v||!C||!x){u.logger.warn("[buffer-controller]: Attempting to remove from the "+p+" SourceBuffer, but it does not exist"),R.shiftAndExecuteNext(p);return}var A=Object(N.isFiniteNumber)(v.duration)?v.duration:Infinity,o=Object(N.isFiniteNumber)(C.duration)?C.duration:Infinity,f=Math.max(0,n),E=Math.min(i,A,o);E>f?(u.logger.log("[buffer-controller]: Removing ["+f+","+E+"] from the "+p+" SourceBuffer"),console.assert(!x.updating,p+" sourceBuffer must not be updating"),x.remove(f,E)):R.shiftAndExecuteNext(p)},y.appendExecutor=function(p,n){var i=this.operationQueue,v=this.sourceBuffer,C=v[n];if(!C){u.logger.warn("[buffer-controller]: Attempting to append to the "+n+" SourceBuffer, but it does not exist"),i.shiftAndExecuteNext(n);return}C.ended=!1,console.assert(!C.updating,n+" sourceBuffer must not be updating"),C.appendBuffer(p)},y.blockBuffers=function(p,n){var i=this;if(n===void 0&&(n=this.getSourceBufferTypes()),!n.length){u.logger.log("[buffer-controller]: Blocking operation requested, but no SourceBuffers exist"),Promise.resolve(p);return}var v=this.operationQueue,C=n.map(function(R){return v.appendBlocker(R)});Promise.all(C).then(function(){p(),n.forEach(function(R){var w=i.sourceBuffer[R];(!w||!w.updating)&&v.shiftAndExecuteNext(R)})})},y.getSourceBufferTypes=function(){return Object.keys(this.sourceBuffer)},y.addBufferListener=function(p,n,i){var v=this.sourceBuffer[p];if(!v)return;var C=i.bind(this,p);this.listeners[p].push({event:n,listener:C}),v.addEventListener(n,C)},y.removeBufferListeners=function(p){var n=this.sourceBuffer[p];if(!n)return;this.listeners[p].forEach(function(i){n.removeEventListener(i.event,i.listener)})},d}()},"./src/controller/buffer-operation-queue.ts":function(Z,U,L){"use strict";L.r(U),L.d(U,"default",function(){return c});var N=L("./src/utils/logger.ts"),c=function(){function u(g){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=g}var M=u.prototype;return M.append=function(e,m){var r=this.queues[m];r.push(e),r.length===1&&this.buffers[m]&&this.executeNext(m)},M.insertAbort=function(e,m){var r=this.queues[m];r.unshift(e),this.executeNext(m)},M.appendBlocker=function(e){var m,r=new Promise(function(a){m=a}),h={execute:m,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(h,e),r},M.executeNext=function(e){var m=this.buffers,r=this.queues,h=m[e],a=r[e];if(a.length){var l=a[0];try{l.execute()}catch(d){N.logger.warn("[buffer-operation-queue]: Unhandled exception executing the current operation"),l.onError(d),(!h||!h.updating)&&(a.shift(),this.executeNext(e))}}},M.shiftAndExecuteNext=function(e){this.queues[e].shift(),this.executeNext(e)},M.current=function(e){return this.queues[e][0]},u}()},"./src/controller/cap-level-controller.ts":function(Z,U,L){"use strict";L.r(U);var N=L("./src/events.ts");function c(g,e){for(var m=0;m<e.length;m++){var r=e[m];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(g,r.key,r)}}function u(g,e,m){return e&&c(g.prototype,e),m&&c(g,m),g}var M=function(){function g(m){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=m,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}var e=g.prototype;return e.setStreamController=function(r){this.streamController=r},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 r=this.hls;r.on(N.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),r.on(N.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),r.on(N.Events.MANIFEST_PARSED,this.onManifestParsed,this),r.on(N.Events.BUFFER_CODECS,this.onBufferCodecs,this),r.on(N.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},e.unregisterListener=function(){var r=this.hls;r.off(N.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),r.off(N.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),r.off(N.Events.MANIFEST_PARSED,this.onManifestParsed,this),r.off(N.Events.BUFFER_CODECS,this.onBufferCodecs,this),r.off(N.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},e.onFpsDropLevelCapping=function(r,h){g.isLevelAllowed(h.droppedLevel,this.restrictedLevels)&&this.restrictedLevels.push(h.droppedLevel)},e.onMediaAttaching=function(r,h){this.media=h.media instanceof HTMLVideoElement?h.media:null},e.onManifestParsed=function(r,h){var a=this.hls;this.restrictedLevels=[],this.firstLevel=h.firstLevel,a.config.capLevelToPlayerSize&&h.video&&this.startCapping()},e.onBufferCodecs=function(r,h){var a=this.hls;a.config.capLevelToPlayerSize&&h.video&&this.startCapping()},e.onMediaDetaching=function(){this.stopCapping()},e.detectPlayerSize=function(){if(this.media&&this.mediaHeight>0&&this.mediaWidth>0){var r=this.hls.levels;if(r.length){var h=this.hls;h.autoLevelCapping=this.getMaxLevel(r.length-1),h.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=h.autoLevelCapping}}},e.getMaxLevel=function(r){var h=this,a=this.hls.levels;if(!a.length)return-1;var l=a.filter(function(d,y){return g.isLevelAllowed(y,h.restrictedLevels)&&y<=r});return this.clientRect=null,g.getMaxLevelByMediaSize(l,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 r=this.media,h={width:0,height:0};if(r){var a=r.getBoundingClientRect();h.width=a.width,h.height=a.height,!h.width&&!h.height&&(h.width=a.right-a.left||r.width||0,h.height=a.bottom-a.top||r.height||0)}return this.clientRect=h,h},g.isLevelAllowed=function(r,h){return h===void 0&&(h=[]),h.indexOf(r)===-1},g.getMaxLevelByMediaSize=function(r,h,a){if(!r||!r.length)return-1;for(var l=function(n,i){return i?n.width!==i.width||n.height!==i.height:!0},d=r.length-1,y=0;y<r.length;y+=1){var s=r[y];if((s.width>=h||s.height>=a)&&l(s,r[y+1])){d=y;break}}return d},u(g,[{key:"mediaWidth",get:function(){return this.getDimensions().width*g.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*g.contentScaleFactor}}],[{key:"contentScaleFactor",get:function(){var r=1;try{r=self.devicePixelRatio}catch(h){}return r}}]),g}();U.default=M},"./src/controller/cmcd-controller.ts":function(Z,U,L){"use strict";L.r(U),L.d(U,"default",function(){return l});var N=L("./src/events.ts"),c=L("./src/types/cmcd.ts"),u=L("./src/utils/buffer-helper.ts"),M=L("./src/utils/logger.ts");function g(d,y){for(var s=0;s<y.length;s++){var p=y[s];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(d,p.key,p)}}function e(d,y,s){return y&&g(d.prototype,y),s&&g(d,s),d}function m(d,y){var s=typeof Symbol!="undefined"&&d[Symbol.iterator]||d["@@iterator"];if(s)return(s=s.call(d)).next.bind(s);if(Array.isArray(d)||(s=r(d))||y&&d&&typeof d.length=="number"){s&&(d=s);var p=0;return function(){return p>=d.length?{done:!0}:{done:!1,value:d[p++]}}}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 r(d,y){if(!d)return;if(typeof d=="string")return h(d,y);var s=Object.prototype.toString.call(d).slice(8,-1);if(s==="Object"&&d.constructor&&(s=d.constructor.name),s==="Map"||s==="Set")return Array.from(d);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return h(d,y)}function h(d,y){(y==null||y>d.length)&&(y=d.length);for(var s=0,p=new Array(y);s<y;s++)p[s]=d[s];return p}function a(){return a=Object.assign||function(d){for(var y=1;y<arguments.length;y++){var s=arguments[y];for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&(d[p]=s[p])}return d},a.apply(this,arguments)}var l=function(){function d(s){var p=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(){p.initialized&&(p.starved=!0),p.buffering=!0},this.onPlaying=function(){p.initialized||(p.initialized=!0),p.buffering=!1},this.applyPlaylistData=function(v){try{p.apply(v,{ot:c.CMCDObjectType.MANIFEST,su:!p.initialized})}catch(C){M.logger.warn("Could not generate manifest CMCD data.",C)}},this.applyFragmentData=function(v){try{var C=v.frag,R=p.hls.levels[C.level],w=p.getObjectType(C),x={d:C.duration*1e3,ot:w};(w===c.CMCDObjectType.VIDEO||w===c.CMCDObjectType.AUDIO||w==c.CMCDObjectType.MUXED)&&(x.br=R.bitrate/1e3,x.tb=p.getTopBandwidth(w),x.bl=p.getBufferLength(w)),p.apply(v,x)}catch(A){M.logger.warn("Could not generate segment CMCD data.",A)}},this.hls=s;var n=this.config=s.config,i=n.cmcd;i!=null&&(n.pLoader=this.createPlaylistLoader(),n.fLoader=this.createFragmentLoader(),this.sid=i.sessionId||d.uuid(),this.cid=i.contentId,this.useHeaders=i.useHeaders===!0,this.registerListeners())}var y=d.prototype;return y.registerListeners=function(){var p=this.hls;p.on(N.Events.MEDIA_ATTACHED,this.onMediaAttached,this),p.on(N.Events.MEDIA_DETACHED,this.onMediaDetached,this),p.on(N.Events.BUFFER_CREATED,this.onBufferCreated,this)},y.unregisterListeners=function(){var p=this.hls;p.off(N.Events.MEDIA_ATTACHED,this.onMediaAttached,this),p.off(N.Events.MEDIA_DETACHED,this.onMediaDetached,this),p.off(N.Events.BUFFER_CREATED,this.onBufferCreated,this),this.onMediaDetached()},y.destroy=function(){this.unregisterListeners(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null},y.onMediaAttached=function(p,n){this.media=n.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)},y.onMediaDetached=function(){if(!this.media)return;this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null},y.onBufferCreated=function(p,n){var i,v;this.audioBuffer=(i=n.tracks.audio)===null||i===void 0?void 0:i.buffer,this.videoBuffer=(v=n.tracks.video)===null||v===void 0?void 0:v.buffer},y.createData=function(){var p;return{v:c.CMCDVersion,sf:c.CMCDStreamingFormat.HLS,sid:this.sid,cid:this.cid,pr:(p=this.media)===null||p===void 0?void 0:p.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}},y.apply=function(p,n){n===void 0&&(n={}),a(n,this.createData());var i=n.ot===c.CMCDObjectType.INIT||n.ot===c.CMCDObjectType.VIDEO||n.ot===c.CMCDObjectType.MUXED;if(this.starved&&i&&(n.bs=!0,n.su=!0,this.starved=!1),n.su==null&&(n.su=this.buffering),this.useHeaders){var v=d.toHeaders(n);if(!Object.keys(v).length)return;p.headers||(p.headers={}),a(p.headers,v)}else{var C=d.toQuery(n);if(!C)return;p.url=d.appendQueryToUri(p.url,C)}},y.getObjectType=function(p){var n=p.type;return n==="subtitle"?c.CMCDObjectType.TIMED_TEXT:p.sn==="initSegment"?c.CMCDObjectType.INIT:n==="audio"?c.CMCDObjectType.AUDIO:n==="main"?this.hls.audioTracks.length?c.CMCDObjectType.VIDEO:c.CMCDObjectType.MUXED:void 0},y.getTopBandwidth=function(p){for(var n=0,i=p===c.CMCDObjectType.AUDIO?this.hls.audioTracks:this.hls.levels,v=m(i),C;!(C=v()).done;){var R=C.value;R.bitrate>n&&(n=R.bitrate)}return n>0?n:NaN},y.getBufferLength=function(p){var n=this.hls.media,i=p===c.CMCDObjectType.AUDIO?this.audioBuffer:this.videoBuffer;if(!i||!n)return NaN;var v=u.BufferHelper.bufferInfo(i,n.currentTime,this.config.maxBufferHole);return v.len*1e3},y.createPlaylistLoader=function(){var p=this.config.pLoader,n=this.applyPlaylistData,i=p||this.config.loader;return function(){function v(R){this.loader=void 0,this.loader=new i(R)}var C=v.prototype;return C.destroy=function(){this.loader.destroy()},C.abort=function(){this.loader.abort()},C.load=function(w,x,A){n(w),this.loader.load(w,x,A)},e(v,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),v}()},y.createFragmentLoader=function(){var p=this.config.fLoader,n=this.applyFragmentData,i=p||this.config.loader;return function(){function v(R){this.loader=void 0,this.loader=new i(R)}var C=v.prototype;return C.destroy=function(){this.loader.destroy()},C.abort=function(){this.loader.abort()},C.load=function(w,x,A){n(w),this.loader.load(w,x,A)},e(v,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),v}()},d.uuid=function(){var p=URL.createObjectURL(new Blob),n=p.toString();return URL.revokeObjectURL(p),n.substr(n.lastIndexOf("/")+1)},d.serialize=function(p){for(var n=[],i=function(P){return!Number.isNaN(P)&&P!=null&&P!==""&&P!==!1},v=function(P){return Math.round(P)},C=function(P){return v(P/100)*100},R=function(P){return encodeURIComponent(P)},w={br:v,d:v,bl:C,dl:C,mtp:C,nor:R,rtp:C,tb:v},x=Object.keys(p||{}).sort(),A=m(x),o;!(o=A()).done;){var f=o.value,E=p[f];if(!i(E))continue;if(f==="v"&&E===1)continue;if(f=="pr"&&E===1)continue;var O=w[f];O&&(E=O(E));var S=typeof E,b=void 0;f==="ot"||f==="sf"||f==="st"?b=f+"="+E:S==="boolean"?b=f:S==="number"?b=f+"="+E:b=f+"="+JSON.stringify(E),n.push(b)}return n.join(",")},d.toHeaders=function(p){for(var n=Object.keys(p),i={},v=["Object","Request","Session","Status"],C=[{},{},{},{}],R={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},w=0,x=n;w<x.length;w++){var A=x[w],o=R[A]!=null?R[A]:1;C[o][A]=p[A]}for(var f=0;f<C.length;f++){var E=d.serialize(C[f]);E&&(i["CMCD-"+v[f]]=E)}return i},d.toQuery=function(p){return"CMCD="+encodeURIComponent(d.serialize(p))},d.appendQueryToUri=function(p,n){if(!n)return p;var i=p.includes("?")?"&":"?";return""+p+i+n},d}()},"./src/controller/eme-controller.ts":function(Z,U,L){"use strict";L.r(U);var N=L("./src/events.ts"),c=L("./src/errors.ts"),u=L("./src/utils/logger.ts"),M=L("./src/utils/mediakeys-helper.ts");function g(l,d){for(var y=0;y<d.length;y++){var s=d[y];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(l,s.key,s)}}function e(l,d,y){return d&&g(l.prototype,d),y&&g(l,y),l}var m=3,r=function(d,y,s){var p={audioCapabilities:[],videoCapabilities:[]};return d.forEach(function(n){p.audioCapabilities.push({contentType:'audio/mp4; codecs="'+n+'"',robustness:s.audioRobustness||""})}),y.forEach(function(n){p.videoCapabilities.push({contentType:'video/mp4; codecs="'+n+'"',robustness:s.videoRobustness||""})}),[p]},h=function(d,y,s,p){switch(d){case M.KeySystems.WIDEVINE:return r(y,s,p);default:throw new Error("Unknown key-system: "+d)}},a=function(){function l(y){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=y,this._config=y.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 d=l.prototype;return d.destroy=function(){this._unregisterListeners(),this.hls=this._onMediaEncrypted=null,this._requestMediaKeySystemAccess=null},d._registerListeners=function(){this.hls.on(N.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(N.Events.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(N.Events.MANIFEST_PARSED,this.onManifestParsed,this)},d._unregisterListeners=function(){this.hls.off(N.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(N.Events.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(N.Events.MANIFEST_PARSED,this.onManifestParsed,this)},d.getLicenseServerUrl=function(s){switch(s){case M.KeySystems.WIDEVINE:if(!this._widevineLicenseUrl)break;return this._widevineLicenseUrl}throw new Error('no license server URL configured for key-system "'+s+'"')},d._attemptKeySystemAccess=function(s,p,n){var i=this,v=h(s,p,n,this._drmSystemOptions);u.logger.log("Requesting encrypted media key-system access");var C=this.requestMediaKeySystemAccess(s,v);this.mediaKeysPromise=C.then(function(R){return i._onMediaKeySystemAccessObtained(s,R)}),C.catch(function(R){u.logger.error('Failed to obtain key-system "'+s+'" access:',R)})},d._onMediaKeySystemAccessObtained=function(s,p){var n=this;u.logger.log('Access for key-system "'+s+'" obtained');var i={mediaKeysSessionInitialized:!1,mediaKeySystemAccess:p,mediaKeySystemDomain:s};this._mediaKeysList.push(i);var v=Promise.resolve().then(function(){return p.createMediaKeys()}).then(function(C){return i.mediaKeys=C,u.logger.log('Media-keys created for key-system "'+s+'"'),n._onMediaKeysCreated(),C});return v.catch(function(C){u.logger.error("Failed to create media-keys:",C)}),v},d._onMediaKeysCreated=function(){var s=this;this._mediaKeysList.forEach(function(p){p.mediaKeysSession||(p.mediaKeysSession=p.mediaKeys.createSession(),s._onNewMediaKeySession(p.mediaKeysSession))})},d._onNewMediaKeySession=function(s){var p=this;u.logger.log("New key-system session "+s.sessionId),s.addEventListener("message",function(n){p._onKeySessionMessage(s,n.message)},!1)},d._onKeySessionMessage=function(s,p){u.logger.log("Got EME message event, creating license request"),this._requestLicense(p,function(n){u.logger.log("Received license data (length: "+(n&&n.byteLength)+"), updating key-session"),s.update(n)})},d.onMediaEncrypted=function(s){var p=this;if(u.logger.log('Media is encrypted using "'+s.initDataType+'" init data type'),!this.mediaKeysPromise){u.logger.error("Fatal: Media is encrypted but no CDM access or no keys have been requested"),this.hls.trigger(N.Events.ERROR,{type:c.ErrorTypes.KEY_SYSTEM_ERROR,details:c.ErrorDetails.KEY_SYSTEM_NO_KEYS,fatal:!0});return}var n=function(v){if(!p._media)return;p._attemptSetMediaKeys(v),p._generateRequestWithPreferredKeySession(s.initDataType,s.initData)};this.mediaKeysPromise.then(n).catch(n)},d._attemptSetMediaKeys=function(s){if(!this._media)throw new Error("Attempted to set mediaKeys without first attaching a media element");if(!this._hasSetMediaKeys){var p=this._mediaKeysList[0];if(!p||!p.mediaKeys){u.logger.error("Fatal: Media is encrypted but no CDM access or no keys have been obtained yet"),this.hls.trigger(N.Events.ERROR,{type:c.ErrorTypes.KEY_SYSTEM_ERROR,details:c.ErrorDetails.KEY_SYSTEM_NO_KEYS,fatal:!0});return}u.logger.log("Setting keys for encrypted media"),this._media.setMediaKeys(p.mediaKeys),this._hasSetMediaKeys=!0}},d._generateRequestWithPreferredKeySession=function(s,p){var n=this,i=this._mediaKeysList[0];if(!i){u.logger.error("Fatal: Media is encrypted but not any key-system access has been obtained yet"),this.hls.trigger(N.Events.ERROR,{type:c.ErrorTypes.KEY_SYSTEM_ERROR,details:c.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}if(i.mediaKeysSessionInitialized){u.logger.warn("Key-Session already initialized but requested again");return}var v=i.mediaKeysSession;if(!v){u.logger.error("Fatal: Media is encrypted but no key-session existing"),this.hls.trigger(N.Events.ERROR,{type:c.ErrorTypes.KEY_SYSTEM_ERROR,details:c.ErrorDetails.KEY_SYSTEM_NO_SESSION,fatal:!0});return}if(!p){u.logger.warn("Fatal: initData required for generating a key session is null"),this.hls.trigger(N.Events.ERROR,{type:c.ErrorTypes.KEY_SYSTEM_ERROR,details:c.ErrorDetails.KEY_SYSTEM_NO_INIT_DATA,fatal:!0});return}u.logger.log('Generating key-session request for "'+s+'" init data type'),i.mediaKeysSessionInitialized=!0,v.generateRequest(s,p).then(function(){u.logger.debug("Key-session generation succeeded")}).catch(function(C){u.logger.error("Error generating key-session request:",C),n.hls.trigger(N.Events.ERROR,{type:c.ErrorTypes.KEY_SYSTEM_ERROR,details:c.ErrorDetails.KEY_SYSTEM_NO_SESSION,fatal:!1})})},d._createLicenseXhr=function(s,p,n){var i=new XMLHttpRequest;i.responseType="arraybuffer",i.onreadystatechange=this._onLicenseRequestReadyStageChange.bind(this,i,s,p,n);var v=this._licenseXhrSetup;if(v)try{v.call(this.hls,i,s),v=void 0}catch(C){u.logger.error(C)}try{i.readyState||i.open("POST",s,!0),v&&v.call(this.hls,i,s)}catch(C){throw new Error("issue setting up KeySystem license XHR "+C)}return i},d._onLicenseRequestReadyStageChange=function(s,p,n,i){switch(s.readyState){case 4:if(s.status===200){this._requestLicenseFailureCount=0,u.logger.log("License request succeeded");var v=s.response,C=this._licenseResponseCallback;if(C)try{v=C.call(this.hls,s,p)}catch(w){u.logger.error(w)}i(v)}else{if(u.logger.error("License Request XHR failed ("+p+"). Status: "+s.status+" ("+s.statusText+")"),this._requestLicenseFailureCount++,this._requestLicenseFailureCount>m){this.hls.trigger(N.Events.ERROR,{type:c.ErrorTypes.KEY_SYSTEM_ERROR,details:c.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0});return}var R=m-this._requestLicenseFailureCount+1;u.logger.warn("Retrying license request, "+R+" attempts left"),this._requestLicense(n,i)}break}},d._generateLicenseRequestChallenge=function(s,p){switch(s.mediaKeySystemDomain){case M.KeySystems.WIDEVINE:return p}throw new Error("unsupported key-system: "+s.mediaKeySystemDomain)},d._requestLicense=function(s,p){u.logger.log("Requesting content license for key-system");var n=this._mediaKeysList[0];if(!n){u.logger.error("Fatal error: Media is encrypted but no key-system access has been obtained yet"),this.hls.trigger(N.Events.ERROR,{type:c.ErrorTypes.KEY_SYSTEM_ERROR,details:c.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}try{var i=this.getLicenseServerUrl(n.mediaKeySystemDomain),v=this._createLicenseXhr(i,s,p);u.logger.log("Sending license request to URL: "+i);var C=this._generateLicenseRequestChallenge(n,s);v.send(C)}catch(R){u.logger.error("Failure requesting DRM license: "+R),this.hls.trigger(N.Events.ERROR,{type:c.ErrorTypes.KEY_SYSTEM_ERROR,details:c.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0})}},d.onMediaAttached=function(s,p){if(!this._emeEnabled)return;var n=p.media;this._media=n,n.addEventListener("encrypted",this._onMediaEncrypted)},d.onMediaDetached=function(){var s=this._media,p=this._mediaKeysList;if(!s)return;s.removeEventListener("encrypted",this._onMediaEncrypted),this._media=null,this._mediaKeysList=[],Promise.all(p.map(function(n){if(n.mediaKeysSession)return n.mediaKeysSession.close().catch(function(){})})).then(function(){return s.setMediaKeys(null)}).catch(function(){})},d.onManifestParsed=function(s,p){if(!this._emeEnabled)return;var n=p.levels.map(function(v){return v.audioCodec}).filter(function(v){return!!v}),i=p.levels.map(function(v){return v.videoCodec}).filter(function(v){return!!v});this._attemptKeySystemAccess(M.KeySystems.WIDEVINE,n,i)},e(l,[{key:"requestMediaKeySystemAccess",get:function(){if(!this._requestMediaKeySystemAccess)throw new Error("No requestMediaKeySystemAccess function configured");return this._requestMediaKeySystemAccess}}]),l}();U.default=a},"./src/controller/fps-controller.ts":function(Z,U,L){"use strict";L.r(U);var N=L("./src/events.ts"),c=L("./src/utils/logger.ts"),u=function(){function M(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 g=M.prototype;return g.setStreamController=function(m){this.streamController=m},g.registerListeners=function(){this.hls.on(N.Events.MEDIA_ATTACHING,this.onMediaAttaching,this)},g.unregisterListeners=function(){this.hls.off(N.Events.MEDIA_ATTACHING,this.onMediaAttaching)},g.destroy=function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null},g.onMediaAttaching=function(m,r){var h=this.hls.config;if(h.capLevelOnFPSDrop){var a=r.media instanceof self.HTMLVideoElement?r.media:null;this.media=a,a&&typeof a.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),h.fpsDroppedMonitoringPeriod)}},g.checkFPS=function(m,r,h){var a=performance.now();if(r){if(this.lastTime){var l=a-this.lastTime,d=h-this.lastDroppedFrames,y=r-this.lastDecodedFrames,s=1e3*d/l,p=this.hls;if(p.trigger(N.Events.FPS_DROP,{currentDropped:d,currentDecoded:y,totalDroppedFrames:h}),s>0&&d>p.config.fpsDroppedMonitoringThreshold*y){var n=p.currentLevel;c.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+n),n>0&&(p.autoLevelCapping===-1||p.autoLevelCapping>=n)&&(n=n-1,p.trigger(N.Events.FPS_DROP_LEVEL_CAPPING,{level:n,droppedLevel:p.currentLevel}),p.autoLevelCapping=n,this.streamController.nextLevelSwitch())}}this.lastTime=a,this.lastDroppedFrames=h,this.lastDecodedFrames=r}},g.checkFPSInterval=function(){var m=this.media;if(m)if(this.isVideoPlaybackQualityAvailable){var r=m.getVideoPlaybackQuality();this.checkFPS(m,r.totalVideoFrames,r.droppedVideoFrames)}else this.checkFPS(m,m.webkitDecodedFrameCount,m.webkitDroppedFrameCount)},M}();U.default=u},"./src/controller/fragment-finders.ts":function(Z,U,L){"use strict";L.r(U),L.d(U,"findFragmentByPDT",function(){return u}),L.d(U,"findFragmentByPTS",function(){return M}),L.d(U,"fragmentWithinToleranceTest",function(){return g}),L.d(U,"pdtWithinToleranceTest",function(){return e}),L.d(U,"findFragWithCC",function(){return m});var N=L("./src/polyfills/number.ts"),c=L("./src/utils/binary-search.ts");function u(r,h,a){if(h===null||!Array.isArray(r)||!r.length||!Object(N.isFiniteNumber)(h))return null;var l=r[0].programDateTime;if(h<(l||0))return null;var d=r[r.length-1].endProgramDateTime;if(h>=(d||0))return null;a=a||0;for(var y=0;y<r.length;++y){var s=r[y];if(e(h,a,s))return s}return null}function M(r,h,a,l){a===void 0&&(a=0),l===void 0&&(l=0);var d=null;if(r?d=h[r.sn-h[0].sn+1]||null:a===0&&h[0].start===0&&(d=h[0]),d&&g(a,l,d)===0)return d;var y=c.default.search(h,g.bind(null,a,l));return y||d}function g(r,h,a){r===void 0&&(r=0),h===void 0&&(h=0);var l=Math.min(h,a.duration+(a.deltaPTS?a.deltaPTS:0));return a.start+a.duration-l<=r?1:a.start-l>r&&a.start?-1:0}function e(r,h,a){var l=Math.min(h,a.duration+(a.deltaPTS?a.deltaPTS:0))*1e3,d=a.endProgramDateTime||0;return d-l>r}function m(r,h){return c.default.search(r,function(a){return a.cc<h?1:a.cc>h?-1:0})}},"./src/controller/fragment-tracker.ts":function(Z,U,L){"use strict";L.r(U),L.d(U,"FragmentState",function(){return u}),L.d(U,"FragmentTracker",function(){return M});var N=L("./src/events.ts"),c=L("./src/types/loader.ts"),u;(function(m){m.NOT_LOADED="NOT_LOADED",m.BACKTRACKED="BACKTRACKED",m.APPENDING="APPENDING",m.PARTIAL="PARTIAL",m.OK="OK"})(u||(u={}));var M=function(){function m(h){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=h,this._registerListeners()}var r=m.prototype;return r._registerListeners=function(){var a=this.hls;a.on(N.Events.BUFFER_APPENDED,this.onBufferAppended,this),a.on(N.Events.FRAG_BUFFERED,this.onFragBuffered,this),a.on(N.Events.FRAG_LOADED,this.onFragLoaded,this)},r._unregisterListeners=function(){var a=this.hls;a.off(N.Events.BUFFER_APPENDED,this.onBufferAppended,this),a.off(N.Events.FRAG_BUFFERED,this.onFragBuffered,this),a.off(N.Events.FRAG_LOADED,this.onFragLoaded,this)},r.destroy=function(){this._unregisterListeners(),this.fragments=this.timeRanges=null},r.getAppendedFrag=function(a,l){if(l===c.PlaylistLevelType.MAIN){var d=this.activeFragment,y=this.activeParts;if(!d)return null;if(y)for(var s=y.length;s--;){var p=y[s],n=p?p.end:d.appendedPTS;if(p.start<=a&&n!==void 0&&a<=n)return s>9&&(this.activeParts=y.slice(s-9)),p}else if(d.start<=a&&d.appendedPTS!==void 0&&a<=d.appendedPTS)return d}return this.getBufferedFrag(a,l)},r.getBufferedFrag=function(a,l){for(var d=this.fragments,y=Object.keys(d),s=y.length;s--;){var p=d[y[s]];if((p==null?void 0:p.body.type)===l&&p.buffered){var n=p.body;if(n.start<=a&&a<=n.end)return n}}return null},r.detectEvictedFragments=function(a,l,d){var y=this;Object.keys(this.fragments).forEach(function(s){var p=y.fragments[s];if(!p)return;if(!p.buffered){p.body.type===d&&y.removeFragment(p.body);return}var n=p.range[a];if(!n)return;n.time.some(function(i){var v=!y.isTimeBuffered(i.startPTS,i.endPTS,l);return v&&y.removeFragment(p.body),v})})},r.detectPartialFragments=function(a){var l=this,d=this.timeRanges,y=a.frag,s=a.part;if(!d||y.sn==="initSegment")return;var p=e(y),n=this.fragments[p];if(!n)return;Object.keys(d).forEach(function(i){var v=y.elementaryStreams[i];if(!v)return;var C=d[i],R=s!==null||v.partial===!0;n.range[i]=l.getBufferedTimes(y,s,R,C)}),n.backtrack=n.loaded=null,Object.keys(n.range).length?n.buffered=!0:this.removeFragment(n.body)},r.fragBuffered=function(a){var l=e(a),d=this.fragments[l];d&&(d.backtrack=d.loaded=null,d.buffered=!0)},r.getBufferedTimes=function(a,l,d,y){for(var s={time:[],partial:d},p=l?l.start:a.start,n=l?l.end:a.end,i=a.minEndPTS||n,v=a.maxStartPTS||p,C=0;C<y.length;C++){var R=y.start(C)-this.bufferPadding,w=y.end(C)+this.bufferPadding;if(v>=R&&i<=w){s.time.push({startPTS:Math.max(p,y.start(C)),endPTS:Math.min(n,y.end(C))});break}else if(p<w&&n>R)s.partial=!0,s.time.push({startPTS:Math.max(p,y.start(C)),endPTS:Math.min(n,y.end(C))});else if(n<=R)break}return s},r.getPartialFragment=function(a){var l=null,d,y,s,p=0,n=this.bufferPadding,i=this.fragments;return Object.keys(i).forEach(function(v){var C=i[v];if(!C)return;g(C)&&(y=C.body.start-n,s=C.body.end+n,a>=y&&a<=s&&(d=Math.min(a-y,s-a),p<=d&&(l=C.body,p=d)))}),l},r.getState=function(a){var l=e(a),d=this.fragments[l];return d?d.buffered?g(d)?u.PARTIAL:u.OK:d.backtrack?u.BACKTRACKED:u.APPENDING:u.NOT_LOADED},r.backtrack=function(a,l){var d=e(a),y=this.fragments[d];if(!y||y.backtrack)return null;var s=y.backtrack=l||y.loaded;return y.loaded=null,s},r.getBacktrackData=function(a){var l=e(a),d=this.fragments[l];if(d){var y,s=d.backtrack;if(s!=null&&(y=s.payload)!==null&&y!==void 0&&y.byteLength)return s;this.removeFragment(a)}return null},r.isTimeBuffered=function(a,l,d){for(var y,s,p=0;p<d.length;p++){if(y=d.start(p)-this.bufferPadding,s=d.end(p)+this.bufferPadding,a>=y&&l<=s)return!0;if(l<=y)return!1}return!1},r.onFragLoaded=function(a,l){var d=l.frag,y=l.part;if(d.sn==="initSegment"||d.bitrateTest||y)return;var s=e(d);this.fragments[s]={body:d,loaded:l,backtrack:null,buffered:!1,range:Object.create(null)}},r.onBufferAppended=function(a,l){var d=this,y=l.frag,s=l.part,p=l.timeRanges;if(y.type===c.PlaylistLevelType.MAIN)if(this.activeFragment=y,s){var n=this.activeParts;n||(this.activeParts=n=[]),n.push(s)}else this.activeParts=null;this.timeRanges=p,Object.keys(p).forEach(function(i){var v=p[i];if(d.detectEvictedFragments(i,v),!s)for(var C=0;C<v.length;C++)y.appendedPTS=Math.max(v.end(C),y.appendedPTS||0)})},r.onFragBuffered=function(a,l){this.detectPartialFragments(l)},r.hasFragment=function(a){var l=e(a);return!!this.fragments[l]},r.removeFragmentsInRange=function(a,l,d){var y=this;Object.keys(this.fragments).forEach(function(s){var p=y.fragments[s];if(!p)return;if(p.buffered){var n=p.body;n.type===d&&n.start<l&&n.end>a&&y.removeFragment(n)}})},r.removeFragment=function(a){var l=e(a);a.stats.loaded=0,a.clearElementaryStreamInfo(),delete this.fragments[l]},r.removeAllFragments=function(){this.fragments=Object.create(null),this.activeFragment=null,this.activeParts=null},m}();function g(m){var r,h;return m.buffered&&(((r=m.range.video)===null||r===void 0?void 0:r.partial)||((h=m.range.audio)===null||h===void 0?void 0:h.partial))}function e(m){return m.type+"_"+m.level+"_"+m.urlId+"_"+m.sn}},"./src/controller/gap-controller.ts":function(Z,U,L){"use strict";L.r(U),L.d(U,"STALL_MINIMUM_DURATION_MS",function(){return g}),L.d(U,"MAX_START_GAP_JUMP",function(){return e}),L.d(U,"SKIP_BUFFER_HOLE_STEP_SECONDS",function(){return m}),L.d(U,"SKIP_BUFFER_RANGE_START",function(){return r}),L.d(U,"default",function(){return h});var N=L("./src/utils/buffer-helper.ts"),c=L("./src/errors.ts"),u=L("./src/events.ts"),M=L("./src/utils/logger.ts"),g=250,e=2,m=.1,r=.05,h=function(){function a(d,y,s,p){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=d,this.media=y,this.fragmentTracker=s,this.hls=p}var l=a.prototype;return l.destroy=function(){this.hls=this.fragmentTracker=this.media=null},l.poll=function(y){var s=this.config,p=this.media,n=this.stalled,i=p.currentTime,v=p.seeking,C=this.seeking&&!v,R=!this.seeking&&v;if(this.seeking=v,i!==y){if(this.moved=!0,n!==null){if(this.stallReported){var w=self.performance.now()-n;M.logger.warn("playback not stuck anymore @"+i+", after "+Math.round(w)+"ms"),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}return}if((R||C)&&(this.stalled=null),p.paused||p.ended||p.playbackRate===0||!N.BufferHelper.getBuffered(p).length)return;var x=N.BufferHelper.bufferInfo(p,i,0),A=x.len>0,o=x.nextStart||0;if(!A&&!o)return;if(v){var f=x.len>e,E=!o||o-i>e&&!this.fragmentTracker.getPartialFragment(i);if(f||E)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var O,S=Math.max(o,x.start||0)-i,b=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,D=b==null||((O=b.details)===null||O===void 0)?void 0:O.live,P=D?b.details.targetduration*2:e;if(S>0&&S<=P){this._trySkipBufferHole(null);return}}var I=self.performance.now();if(n===null){this.stalled=I;return}var F=I-n;!v&&F>=g&&this._reportStall(x.len);var K=N.BufferHelper.bufferInfo(p,i,s.maxBufferHole);this._tryFixBufferStall(K,F)},l._tryFixBufferStall=function(y,s){var p=this.config,n=this.fragmentTracker,i=this.media,v=i.currentTime,C=n.getPartialFragment(v);if(C){var R=this._trySkipBufferHole(C);if(R)return}y.len>p.maxBufferHole&&s>p.highBufferWatchdogPeriod*1e3&&(M.logger.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())},l._reportStall=function(y){var s=this.hls,p=this.media,n=this.stallReported;n||(this.stallReported=!0,M.logger.warn("Playback stalling at @"+p.currentTime+" due to low buffer (buffer="+y+")"),s.trigger(u.Events.ERROR,{type:c.ErrorTypes.MEDIA_ERROR,details:c.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!1,buffer:y}))},l._trySkipBufferHole=function(y){for(var s=this.config,p=this.hls,n=this.media,i=n.currentTime,v=0,C=N.BufferHelper.getBuffered(n),R=0;R<C.length;R++){var w=C.start(R);if(i+s.maxBufferHole>=v&&i<w){var x=Math.max(w+r,n.currentTime+m);return M.logger.warn("skipping hole, adjusting currentTime from "+i+" to "+x),this.moved=!0,this.stalled=null,n.currentTime=x,y&&p.trigger(u.Events.ERROR,{type:c.ErrorTypes.MEDIA_ERROR,details:c.ErrorDetails.BUFFER_SEEK_OVER_HOLE,fatal:!1,reason:"fragment loaded with buffer holes, seeking from "+i+" to "+x,frag:y}),x}v=C.end(R)}return 0},l._tryNudgeBuffer=function(){var y=this.config,s=this.hls,p=this.media,n=p.currentTime,i=(this.nudgeRetry||0)+1;if(this.nudgeRetry=i,i<y.nudgeMaxRetry){var v=n+i*y.nudgeOffset;M.logger.warn("Nudging 'currentTime' from "+n+" to "+v),p.currentTime=v,s.trigger(u.Events.ERROR,{type:c.ErrorTypes.MEDIA_ERROR,details:c.ErrorDetails.BUFFER_NUDGE_ON_STALL,fatal:!1})}else M.logger.error("Playhead still not moving while enough data buffered @"+n+" after "+y.nudgeMaxRetry+" nudges"),s.trigger(u.Events.ERROR,{type:c.ErrorTypes.MEDIA_ERROR,details:c.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!0})},a}()},"./src/controller/id3-track-controller.ts":function(Z,U,L){"use strict";L.r(U);var N=L("./src/events.ts"),c=L("./src/utils/texttrack-utils.ts"),u=L("./src/demux/id3.ts"),M=.25,g=function(){function e(r){this.hls=void 0,this.id3Track=null,this.media=null,this.hls=r,this._registerListeners()}var m=e.prototype;return m.destroy=function(){this._unregisterListeners()},m._registerListeners=function(){var h=this.hls;h.on(N.Events.MEDIA_ATTACHED,this.onMediaAttached,this),h.on(N.Events.MEDIA_DETACHING,this.onMediaDetaching,this),h.on(N.Events.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),h.on(N.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},m._unregisterListeners=function(){var h=this.hls;h.off(N.Events.MEDIA_ATTACHED,this.onMediaAttached,this),h.off(N.Events.MEDIA_DETACHING,this.onMediaDetaching,this),h.off(N.Events.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),h.off(N.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},m.onMediaAttached=function(h,a){this.media=a.media},m.onMediaDetaching=function(){if(!this.id3Track)return;Object(c.clearCurrentCues)(this.id3Track),this.id3Track=null,this.media=null},m.getID3Track=function(h){if(!this.media)return;for(var a=0;a<h.length;a++){var l=h[a];if(l.kind==="metadata"&&l.label==="id3")return Object(c.sendAddTrackEvent)(l,this.media),l}return this.media.addTextTrack("metadata","id3")},m.onFragParsingMetadata=function(h,a){if(!this.media)return;var l=a.frag,d=a.samples;this.id3Track||(this.id3Track=this.getID3Track(this.media.textTracks),this.id3Track.mode="hidden");for(var y=self.WebKitDataCue||self.VTTCue||self.TextTrackCue,s=0;s<d.length;s++){var p=u.getID3Frames(d[s].data);if(p){var n=d[s].pts,i=s<d.length-1?d[s+1].pts:l.end,v=i-n;v<=0&&(i=n+M);for(var C=0;C<p.length;C++){var R=p[C];if(!u.isTimeStampFrame(R)){var w=new y(n,i,"");w.value=R,this.id3Track.addCue(w)}}}}},m.onBufferFlushing=function(h,a){var l=a.startOffset,d=a.endOffset,y=a.type;if(!y||y==="audio"){var s=this.id3Track;s&&Object(c.removeCuesInRange)(s,l,d)}},e}();U.default=g},"./src/controller/latency-controller.ts":function(Z,U,L){"use strict";L.r(U),L.d(U,"default",function(){return e});var N=L("./src/errors.ts"),c=L("./src/events.ts"),u=L("./src/utils/logger.ts");function M(m,r){for(var h=0;h<r.length;h++){var a=r[h];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(m,a.key,a)}}function g(m,r,h){return r&&M(m.prototype,r),h&&M(m,h),m}var e=function(){function m(h){var a=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 a.timeupdate()},this.hls=h,this.config=h.config,this.registerListeners()}var r=m.prototype;return r.destroy=function(){this.unregisterListeners(),this.onMediaDetaching(),this.levelDetails=null,this.hls=this.timeupdateHandler=null},r.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)},r.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)},r.onMediaAttached=function(a,l){this.media=l.media,this.media.addEventListener("timeupdate",this.timeupdateHandler)},r.onMediaDetaching=function(){this.media&&(this.media.removeEventListener("timeupdate",this.timeupdateHandler),this.media=null)},r.onManifestLoading=function(){this.levelDetails=null,this._latency=null,this.stallCount=0},r.onLevelUpdated=function(a,l){var d=l.details;this.levelDetails=d,d.advanced&&this.timeupdate(),!d.live&&this.media&&this.media.removeEventListener("timeupdate",this.timeupdateHandler)},r.onError=function(a,l){if(l.details!==N.ErrorDetails.BUFFER_STALLED_ERROR)return;this.stallCount++,u.logger.warn("[playback-rate-controller]: Stall detected, adjusting target latency")},r.timeupdate=function(){var a=this.media,l=this.levelDetails;if(!a||!l)return;this.currentTime=a.currentTime;var d=this.computeLatency();if(d===null)return;this._latency=d;var y=this.config,s=y.lowLatencyMode,p=y.maxLiveSyncPlaybackRate;if(!s||p===1)return;var n=this.targetLatency;if(n===null)return;var i=d-n,v=Math.min(this.maxLatency,n+l.targetduration),C=i<v;if(l.live&&C&&i>.05&&this.forwardBufferLength>1){var R=Math.min(2,Math.max(1,p)),w=Math.round(2/(1+Math.exp(-.75*i-this.edgeStalled))*20)/20;a.playbackRate=Math.min(R,Math.max(1,w))}else a.playbackRate!==1&&a.playbackRate!==0&&(a.playbackRate=1)},r.estimateLiveEdge=function(){var a=this.levelDetails;return a===null?null:a.edge+a.age},r.computeLatency=function(){var a=this.estimateLiveEdge();return a===null?null:a-this.currentTime},g(m,[{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var a=this.config,l=this.levelDetails;return a.liveMaxLatencyDuration!==void 0?a.liveMaxLatencyDuration:l?a.liveMaxLatencyDurationCount*l.targetduration:0}},{key:"targetLatency",get:function(){var a=this.levelDetails;if(a===null)return null;var l=a.holdBack,d=a.partHoldBack,y=a.targetduration,s=this.config,p=s.liveSyncDuration,n=s.liveSyncDurationCount,i=s.lowLatencyMode,v=this.hls.userConfig,C=i&&d||l;(v.liveSyncDuration||v.liveSyncDurationCount||C===0)&&(C=p!==void 0?p:n*y);var R=y,w=1;return C+Math.min(this.stallCount*w,R)}},{key:"liveSyncPosition",get:function(){var a=this.estimateLiveEdge(),l=this.targetLatency,d=this.levelDetails;if(a===null||l===null||d===null)return null;var y=d.edge,s=a-l-this.edgeStalled,p=y-d.totalduration,n=y-(this.config.lowLatencyMode&&d.partTarget||d.targetduration);return Math.min(Math.max(p,s),n)}},{key:"drift",get:function(){var a=this.levelDetails;return a===null?1:a.drift}},{key:"edgeStalled",get:function(){var a=this.levelDetails;if(a===null)return 0;var l=(this.config.lowLatencyMode&&a.partTarget||a.targetduration)*3;return Math.max(a.age-l,0)}},{key:"forwardBufferLength",get:function(){var a=this.media,l=this.levelDetails;if(!a||!l)return 0;var d=a.buffered.length;return d?a.buffered.end(d-1):l.edge-this.currentTime}}]),m}()},"./src/controller/level-controller.ts":function(Z,U,L){"use strict";L.r(U),L.d(U,"default",function(){return s});var N=L("./src/types/level.ts"),c=L("./src/events.ts"),u=L("./src/errors.ts"),M=L("./src/utils/codecs.ts"),g=L("./src/controller/level-helper.ts"),e=L("./src/controller/base-playlist-controller.ts"),m=L("./src/types/loader.ts");function r(){return r=Object.assign||function(p){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var v in i)Object.prototype.hasOwnProperty.call(i,v)&&(p[v]=i[v])}return p},r.apply(this,arguments)}function h(p,n){for(var i=0;i<n.length;i++){var v=n[i];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(p,v.key,v)}}function a(p,n,i){return n&&h(p.prototype,n),i&&h(p,i),p}function l(p,n){p.prototype=Object.create(n.prototype),p.prototype.constructor=p,d(p,n)}function d(p,n){return d=Object.setPrototypeOf||function(v,C){return v.__proto__=C,v},d(p,n)}var y=/chrome|firefox/.test(navigator.userAgent.toLowerCase()),s=function(p){l(n,p);function n(v){var C;return C=p.call(this,v,"[level-controller]")||this,C._levels=[],C._firstLevel=-1,C._startLevel=void 0,C.currentLevelIndex=-1,C.manualLevelIndex=-1,C.onParsedComplete=void 0,C._registerListeners(),C}var i=n.prototype;return i._registerListeners=function(){var C=this.hls;C.on(c.Events.MANIFEST_LOADED,this.onManifestLoaded,this),C.on(c.Events.LEVEL_LOADED,this.onLevelLoaded,this),C.on(c.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),C.on(c.Events.FRAG_LOADED,this.onFragLoaded,this),C.on(c.Events.ERROR,this.onError,this)},i._unregisterListeners=function(){var C=this.hls;C.off(c.Events.MANIFEST_LOADED,this.onManifestLoaded,this),C.off(c.Events.LEVEL_LOADED,this.onLevelLoaded,this),C.off(c.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),C.off(c.Events.FRAG_LOADED,this.onFragLoaded,this),C.off(c.Events.ERROR,this.onError,this)},i.destroy=function(){this._unregisterListeners(),this.manualLevelIndex=-1,this._levels.length=0,p.prototype.destroy.call(this)},i.startLoad=function(){var C=this._levels;C.forEach(function(R){R.loadError=0}),p.prototype.startLoad.call(this)},i.onManifestLoaded=function(C,R){var w=[],x=[],A=[],o,f={},E,O=!1,S=!1,b=!1;if(R.levels.forEach(function(F){var K=F.attrs;O=O||!!(F.width&&F.height),S=S||!!F.videoCodec,b=b||!!F.audioCodec,y&&F.audioCodec&&F.audioCodec.indexOf("mp4a.40.34")!==-1&&(F.audioCodec=void 0);var j=F.bitrate+"-"+F.attrs.RESOLUTION+"-"+F.attrs.CODECS;E=f[j],E?E.url.push(F.url):(E=new N.Level(F),f[j]=E,w.push(E)),K&&(K.AUDIO&&Object(g.addGroupId)(E,"audio",K.AUDIO),K.SUBTITLES&&Object(g.addGroupId)(E,"text",K.SUBTITLES))}),(O||S)&&b&&(w=w.filter(function(F){var K=F.videoCodec,j=F.width,Y=F.height;return!!K||!!(j&&Y)})),w=w.filter(function(F){var K=F.audioCodec,j=F.videoCodec;return(!K||Object(M.isCodecSupportedInMp4)(K,"audio"))&&(!j||Object(M.isCodecSupportedInMp4)(j,"video"))}),R.audioTracks&&(x=R.audioTracks.filter(function(F){return!F.audioCodec||Object(M.isCodecSupportedInMp4)(F.audioCodec,"audio")}),Object(g.assignTrackIdsByGroup)(x)),R.subtitles&&(A=R.subtitles,Object(g.assignTrackIdsByGroup)(A)),w.length>0){o=w[0].bitrate,w.sort(function(F,K){return F.bitrate-K.bitrate}),this._levels=w;for(var D=0;D<w.length;D++)if(w[D].bitrate===o){this._firstLevel=D,this.log("manifest loaded, "+w.length+" level(s) found, first bitrate: "+o);break}var P=b&&!S,I={levels:w,audioTracks:x,subtitleTracks:A,firstLevel:this._firstLevel,stats:R.stats,audio:b,video:S,altAudio:!P&&x.some(function(F){return!!F.url})};this.hls.trigger(c.Events.MANIFEST_PARSED,I),(this.hls.config.autoStartLoad||this.hls.forceStartLoad)&&this.hls.startLoad(this.hls.config.startPosition)}else this.hls.trigger(c.Events.ERROR,{type:u.ErrorTypes.MEDIA_ERROR,details:u.ErrorDetails.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:R.url,reason:"no level with compatible codecs found in manifest"})},i.onError=function(C,R){if(p.prototype.onError.call(this,C,R),R.fatal)return;var w=R.context,x=this._levels[this.currentLevelIndex];if(w&&(w.type===m.PlaylistContextType.AUDIO_TRACK&&x.audioGroupIds&&w.groupId===x.audioGroupIds[x.urlId]||w.type===m.PlaylistContextType.SUBTITLE_TRACK&&x.textGroupIds&&w.groupId===x.textGroupIds[x.urlId])){this.redundantFailover(this.currentLevelIndex);return}var A=!1,o=!0,f;switch(R.details){case u.ErrorDetails.FRAG_LOAD_ERROR:case u.ErrorDetails.FRAG_LOAD_TIMEOUT:case u.ErrorDetails.KEY_LOAD_ERROR:case u.ErrorDetails.KEY_LOAD_TIMEOUT:if(R.frag){var E=this._levels[R.frag.level];E?(E.fragmentError++,E.fragmentError>this.hls.config.fragLoadingMaxRetry&&(f=R.frag.level)):f=R.frag.level}break;case u.ErrorDetails.LEVEL_LOAD_ERROR:case u.ErrorDetails.LEVEL_LOAD_TIMEOUT:w&&(w.deliveryDirectives&&(o=!1),f=w.level),A=!0;break;case u.ErrorDetails.REMUX_ALLOC_ERROR:f=R.level,A=!0;break}f!==void 0&&this.recoverLevel(R,f,A,o)},i.recoverLevel=function(C,R,w,x){var A=C.details,o=this._levels[R];if(o.loadError++,w){var f=this.retryLoadingOrFail(C);if(f)C.levelRetry=!0;else{this.currentLevelIndex=-1;return}}if(x){var E=o.url.length;if(E>1&&o.loadError<E)C.levelRetry=!0,this.redundantFailover(R);else if(this.manualLevelIndex===-1){var O=R===0?this._levels.length-1:R-1;this.currentLevelIndex!==O&&this._levels[O].loadError===0&&(this.warn(A+": switch to "+O),C.levelRetry=!0,this.hls.nextAutoLevel=O)}}},i.redundantFailover=function(C){var R=this._levels[C],w=R.url.length;if(w>1){var x=(R.urlId+1)%w;this.warn("Switching to redundant URL-id "+x),this._levels.forEach(function(A){A.urlId=x}),this.level=C}},i.onFragLoaded=function(C,R){var w=R.frag;if(w!==void 0&&w.type===m.PlaylistLevelType.MAIN){var x=this._levels[w.level];x!==void 0&&(x.fragmentError=0,x.loadError=0)}},i.onLevelLoaded=function(C,R){var w,x=R.level,A=R.details,o=this._levels[x];if(!o){var f;this.warn("Invalid level index "+x),(f=R.deliveryDirectives)!==null&&f!==void 0&&f.skip&&(A.deltaUpdateFailed=!0);return}x===this.currentLevelIndex?(o.fragmentError===0&&(o.loadError=0,this.retryCount=0),this.playlistLoaded(x,R,o.details)):(w=R.deliveryDirectives)!==null&&w!==void 0&&w.skip&&(A.deltaUpdateFailed=!0)},i.onAudioTrackSwitched=function(C,R){var w=this.hls.levels[this.currentLevelIndex];if(!w)return;if(w.audioGroupIds){for(var x=-1,A=this.hls.audioTracks[R.id].groupId,o=0;o<w.audioGroupIds.length;o++)if(w.audioGroupIds[o]===A){x=o;break}x!==w.urlId&&(w.urlId=x,this.startLoad())}},i.loadPlaylist=function(C){var R=this.currentLevelIndex,w=this._levels[R];if(this.canLoad&&w&&w.url.length>0){var x=w.urlId,A=w.url[x];if(C)try{A=C.addDirectives(A)}catch(o){this.warn("Could not construct new URL with HLS Delivery Directives: "+o)}this.log("Attempt loading level index "+R+(C?" at sn "+C.msn+" part "+C.part:"")+" with URL-id "+x+" "+A),this.clearTimer(),this.hls.trigger(c.Events.LEVEL_LOADING,{url:A,level:R,id:x,deliveryDirectives:C||null})}},i.removeLevel=function(C,R){var w=function(o,f){return f!==R},x=this._levels.filter(function(A,o){return o!==C?!0:A.url.length>1&&R!==void 0?(A.url=A.url.filter(w),A.audioGroupIds&&(A.audioGroupIds=A.audioGroupIds.filter(w)),A.textGroupIds&&(A.textGroupIds=A.textGroupIds.filter(w)),A.urlId=0,!0):!1}).map(function(A,o){var f=A.details;return f!=null&&f.fragments&&f.fragments.forEach(function(E){E.level=o}),A});this._levels=x,this.hls.trigger(c.Events.LEVELS_UPDATED,{levels:x})},a(n,[{key:"levels",get:function(){return this._levels.length===0?null:this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(C){var R,w=this._levels;if(w.length===0)return;if(this.currentLevelIndex===C&&(R=w[C])!==null&&R!==void 0&&R.details)return;if(C<0||C>=w.length){var x=C<0;if(this.hls.trigger(c.Events.ERROR,{type:u.ErrorTypes.OTHER_ERROR,details:u.ErrorDetails.LEVEL_SWITCH_ERROR,level:C,fatal:x,reason:"invalid level idx"}),x)return;C=Math.min(C,w.length-1)}this.clearTimer();var A=this.currentLevelIndex,o=w[A],f=w[C];this.log("switching to level "+C+" from "+A),this.currentLevelIndex=C;var E=r({},f,{level:C,maxBitrate:f.maxBitrate,uri:f.uri,urlId:f.urlId});delete E._urlId,this.hls.trigger(c.Events.LEVEL_SWITCHING,E);var O=f.details;if(!O||O.live){var S=this.switchParams(f.uri,o==null?void 0:o.details);this.loadPlaylist(S)}}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(C){this.manualLevelIndex=C,this._startLevel===void 0&&(this._startLevel=C),C!==-1&&(this.level=C)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(C){this._firstLevel=C}},{key:"startLevel",get:function(){if(this._startLevel===void 0){var C=this.hls.config.startLevel;return C!==void 0?C:this._firstLevel}else return this._startLevel},set:function(C){this._startLevel=C}},{key:"nextLoadLevel",get:function(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(C){this.level=C,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=C)}}]),n}(e.default)},"./src/controller/level-helper.ts":function(Z,U,L){"use strict";L.r(U),L.d(U,"addGroupId",function(){return u}),L.d(U,"assignTrackIdsByGroup",function(){return M}),L.d(U,"updatePTS",function(){return g}),L.d(U,"updateFragPTSDTS",function(){return m}),L.d(U,"mergeDetails",function(){return r}),L.d(U,"mapPartIntersection",function(){return h}),L.d(U,"mapFragmentIntersection",function(){return a}),L.d(U,"adjustSliding",function(){return l}),L.d(U,"addSliding",function(){return d}),L.d(U,"computeReloadInterval",function(){return y}),L.d(U,"getFragmentWithSN",function(){return s}),L.d(U,"getPartWith",function(){return p});var N=L("./src/polyfills/number.ts"),c=L("./src/utils/logger.ts");function u(n,i,v){switch(i){case"audio":n.audioGroupIds||(n.audioGroupIds=[]),n.audioGroupIds.push(v);break;case"text":n.textGroupIds||(n.textGroupIds=[]),n.textGroupIds.push(v);break}}function M(n){var i={};n.forEach(function(v){var C=v.groupId||"";v.id=i[C]=i[C]||0,i[C]++})}function g(n,i,v){var C=n[i],R=n[v];e(C,R)}function e(n,i){var v=i.startPTS;if(Object(N.isFiniteNumber)(v)){var C=0,R;i.sn>n.sn?(C=v-n.start,R=n):(C=n.start-v,R=i),R.duration!==C&&(R.duration=C)}else if(i.sn>n.sn){var w=n.cc===i.cc;w&&n.minEndPTS?i.start=n.start+(n.minEndPTS-n.start):i.start=n.start+n.duration}else i.start=Math.max(n.start-i.duration,0)}function m(n,i,v,C,R,w){var x=C-v;x<=0&&(c.logger.warn("Fragment should have a positive duration",i),C=v+i.duration,w=R+i.duration);var A=v,o=C,f=i.startPTS,E=i.endPTS;if(Object(N.isFiniteNumber)(f)){var O=Math.abs(f-v);Object(N.isFiniteNumber)(i.deltaPTS)?i.deltaPTS=Math.max(O,i.deltaPTS):i.deltaPTS=O,A=Math.max(v,f),v=Math.min(v,f),R=Math.min(R,i.startDTS),o=Math.min(C,E),C=Math.max(C,E),w=Math.max(w,i.endDTS)}i.duration=C-v;var S=v-i.start;i.appendedPTS=C,i.start=i.startPTS=v,i.maxStartPTS=A,i.startDTS=R,i.endPTS=C,i.minEndPTS=o,i.endDTS=w;var b=i.sn;if(!n||b<n.startSN||b>n.endSN)return 0;var D,P=b-n.startSN,I=n.fragments;for(I[P]=i,D=P;D>0;D--)e(I[D],I[D-1]);for(D=P;D<I.length-1;D++)e(I[D],I[D+1]);return n.fragmentHint&&e(I[I.length-1],n.fragmentHint),n.PTSKnown=n.alignedSliding=!0,S}function r(n,i){for(var v=null,C=n.fragments,R=C.length-1;R>=0;R--){var w=C[R].initSegment;if(w){v=w;break}}n.fragmentHint&&delete n.fragmentHint.endPTS;var x=0,A;if(a(n,i,function(D,P){D.relurl&&(x=D.cc-P.cc),Object(N.isFiniteNumber)(D.startPTS)&&Object(N.isFiniteNumber)(D.endPTS)&&(P.start=P.startPTS=D.startPTS,P.startDTS=D.startDTS,P.appendedPTS=D.appendedPTS,P.maxStartPTS=D.maxStartPTS,P.endPTS=D.endPTS,P.endDTS=D.endDTS,P.minEndPTS=D.minEndPTS,P.duration=D.endPTS-D.startPTS,P.duration&&(A=P),i.PTSKnown=i.alignedSliding=!0),P.elementaryStreams=D.elementaryStreams,P.loader=D.loader,P.stats=D.stats,P.urlId=D.urlId,D.initSegment&&(P.initSegment=D.initSegment,v=D.initSegment)}),v){var o=i.fragmentHint?i.fragments.concat(i.fragmentHint):i.fragments;o.forEach(function(D){var P;(!D.initSegment||D.initSegment.relurl===((P=v)===null||P===void 0?void 0:P.relurl))&&(D.initSegment=v)})}if(i.skippedSegments&&(i.deltaUpdateFailed=i.fragments.some(function(D){return!D}),i.deltaUpdateFailed)){c.logger.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var f=i.skippedSegments;f--;)i.fragments.shift();i.startSN=i.fragments[0].sn,i.startCC=i.fragments[0].cc}var E=i.fragments;if(x){c.logger.warn("discontinuity sliding from playlist, take drift into account");for(var O=0;O<E.length;O++)E[O].cc+=x}i.skippedSegments&&(i.startCC=i.fragments[0].cc),h(n.partList,i.partList,function(D,P){P.elementaryStreams=D.elementaryStreams,P.stats=D.stats}),A?m(i,A,A.startPTS,A.endPTS,A.startDTS,A.endDTS):l(n,i),E.length&&(i.totalduration=i.edge-E[0].start),i.driftStartTime=n.driftStartTime,i.driftStart=n.driftStart;var S=i.advancedDateTime;if(i.advanced&&S){var b=i.edge;i.driftStart||(i.driftStartTime=S,i.driftStart=b),i.driftEndTime=S,i.driftEnd=b}else i.driftEndTime=n.driftEndTime,i.driftEnd=n.driftEnd,i.advancedDateTime=n.advancedDateTime}function h(n,i,v){if(n&&i)for(var C=0,R=0,w=n.length;R<=w;R++){var x=n[R],A=i[R+C];x&&A&&x.index===A.index&&x.fragment.sn===A.fragment.sn?v(x,A):C--}}function a(n,i,v){for(var C=i.skippedSegments,R=Math.max(n.startSN,i.startSN)-i.startSN,w=(n.fragmentHint?1:0)+(C?i.endSN:Math.min(n.endSN,i.endSN))-i.startSN,x=i.startSN-n.startSN,A=i.fragmentHint?i.fragments.concat(i.fragmentHint):i.fragments,o=n.fragmentHint?n.fragments.concat(n.fragmentHint):n.fragments,f=R;f<=w;f++){var E=o[x+f],O=A[f];C&&!O&&f<C&&(O=i.fragments[f]=E),E&&O&&v(E,O)}}function l(n,i){var v=i.startSN+i.skippedSegments-n.startSN,C=n.fragments;if(v<0||v>=C.length)return;d(i,C[v].start)}function d(n,i){if(i){for(var v=n.fragments,C=n.skippedSegments;C<v.length;C++)v[C].start+=i;n.fragmentHint&&(n.fragmentHint.start+=i)}}function y(n,i){var v=1e3*n.levelTargetDuration,C=v/2,R=n.age,w=R>0&&R<v*3,x=i.loading.end-i.loading.start,A,o=n.availabilityDelay;if(n.updated===!1)if(w){var f=333*n.misses;A=Math.max(Math.min(C,x*2),f),n.availabilityDelay=(n.availabilityDelay||0)+A}else A=C;else w?(o=Math.min(o||v/2,R),n.availabilityDelay=o,A=o+v-R):A=v-x;return Math.round(A)}function s(n,i,v){if(!n||!n.details)return null;var C=n.details,R=C.fragments[i-C.startSN];return R||(R=C.fragmentHint,R&&R.sn===i?R:i<C.startSN&&v&&v.sn===i?v:null)}function p(n,i,v){if(!n||!n.details)return null;var C=n.details.partList;if(C)for(var R=C.length;R--;){var w=C[R];if(w.index===v&&w.fragment.sn===i)return w}return null}},"./src/controller/stream-controller.ts":function(Z,U,L){"use strict";L.r(U),L.d(U,"default",function(){return C});var N=L("./src/polyfills/number.ts"),c=L("./src/controller/base-stream-controller.ts"),u=L("./src/is-supported.ts"),M=L("./src/events.ts"),g=L("./src/utils/buffer-helper.ts"),e=L("./src/controller/fragment-tracker.ts"),m=L("./src/types/loader.ts"),r=L("./src/loader/fragment.ts"),h=L("./src/demux/transmuxer-interface.ts"),a=L("./src/types/transmuxer.ts"),l=L("./src/controller/gap-controller.ts"),d=L("./src/errors.ts"),y=L("./src/utils/logger.ts");function s(R,w){for(var x=0;x<w.length;x++){var A=w[x];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(R,A.key,A)}}function p(R,w,x){return w&&s(R.prototype,w),x&&s(R,x),R}function n(R,w){R.prototype=Object.create(w.prototype),R.prototype.constructor=R,i(R,w)}function i(R,w){return i=Object.setPrototypeOf||function(A,o){return A.__proto__=o,A},i(R,w)}var v=100,C=function(R){n(w,R);function w(A,o){var f;return f=R.call(this,A,o,"[stream-controller]")||this,f.audioCodecSwap=!1,f.gapController=null,f.level=-1,f._forceStartLoad=!1,f.altAudio=!1,f.audioOnly=!1,f.fragPlaying=null,f.onvplaying=null,f.onvseeked=null,f.fragLastKbps=0,f.stalled=!1,f.couldBacktrack=!1,f.audioCodecSwitch=!1,f.videoBuffer=null,f._registerListeners(),f}var x=w.prototype;return x._registerListeners=function(){var o=this.hls;o.on(M.Events.MEDIA_ATTACHED,this.onMediaAttached,this),o.on(M.Events.MEDIA_DETACHING,this.onMediaDetaching,this),o.on(M.Events.MANIFEST_LOADING,this.onManifestLoading,this),o.on(M.Events.MANIFEST_PARSED,this.onManifestParsed,this),o.on(M.Events.LEVEL_LOADING,this.onLevelLoading,this),o.on(M.Events.LEVEL_LOADED,this.onLevelLoaded,this),o.on(M.Events.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),o.on(M.Events.ERROR,this.onError,this),o.on(M.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),o.on(M.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),o.on(M.Events.BUFFER_CREATED,this.onBufferCreated,this),o.on(M.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),o.on(M.Events.LEVELS_UPDATED,this.onLevelsUpdated,this),o.on(M.Events.FRAG_BUFFERED,this.onFragBuffered,this)},x._unregisterListeners=function(){var o=this.hls;o.off(M.Events.MEDIA_ATTACHED,this.onMediaAttached,this),o.off(M.Events.MEDIA_DETACHING,this.onMediaDetaching,this),o.off(M.Events.MANIFEST_LOADING,this.onManifestLoading,this),o.off(M.Events.MANIFEST_PARSED,this.onManifestParsed,this),o.off(M.Events.LEVEL_LOADED,this.onLevelLoaded,this),o.off(M.Events.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),o.off(M.Events.ERROR,this.onError,this),o.off(M.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),o.off(M.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),o.off(M.Events.BUFFER_CREATED,this.onBufferCreated,this),o.off(M.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),o.off(M.Events.LEVELS_UPDATED,this.onLevelsUpdated,this),o.off(M.Events.FRAG_BUFFERED,this.onFragBuffered,this)},x.onHandlerDestroying=function(){this._unregisterListeners(),this.onMediaDetaching()},x.startLoad=function(o){if(this.levels){var f=this.lastCurrentTime,E=this.hls;if(this.stopLoad(),this.setInterval(v),this.level=-1,this.fragLoadError=0,!this.startFragRequested){var O=E.startLevel;O===-1&&(E.config.testBandwidth?(O=0,this.bitrateTest=!0):O=E.nextAutoLevel),this.level=E.nextLoadLevel=O,this.loadedmetadata=!1}f>0&&o===-1&&(this.log("Override startPosition with lastCurrentTime @"+f.toFixed(3)),o=f),this.state=c.State.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=o,this.tick()}else this._forceStartLoad=!0,this.state=c.State.STOPPED},x.stopLoad=function(){this._forceStartLoad=!1,R.prototype.stopLoad.call(this)},x.doTick=function(){switch(this.state){case c.State.IDLE:this.doTickIdle();break;case c.State.WAITING_LEVEL:{var o,f=this.levels,E=this.level,O=f==null||((o=f[E])===null||o===void 0)?void 0:o.details;if(O&&(!O.live||this.levelLastLoaded===this.level)){if(this.waitForCdnTuneIn(O))break;this.state=c.State.IDLE;break}break}case c.State.FRAG_LOADING_WAITING_RETRY:{var S,b=self.performance.now(),D=this.retryDate;(!D||b>=D||(S=this.media)!==null&&S!==void 0&&S.seeking)&&(this.log("retryDate reached, switch back to IDLE state"),this.state=c.State.IDLE)}break;default:break}this.onTickEnd()},x.onTickEnd=function(){R.prototype.onTickEnd.call(this),this.checkBuffer(),this.checkFragmentChanged()},x.doTickIdle=function(){var o,f,E=this.hls,O=this.levelLastLoaded,S=this.levels,b=this.media,D=E.config,P=E.nextLoadLevel;if(O===null||!b&&(this.startFragRequested||!D.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;if(!S||!S[P])return;var I=S[P];this.level=E.nextLoadLevel=P;var F=I.details;if(!F||this.state===c.State.WAITING_LEVEL||F.live&&this.levelLastLoaded!==P){this.state=c.State.WAITING_LEVEL;return}var K=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:b,m.PlaylistLevelType.MAIN);if(K===null)return;var j=K.len,Y=this.getMaxBufferLength(I.maxBitrate);if(j>=Y)return;if(this._streamEnded(K,F)){var W={};this.altAudio&&(W.type="video"),this.hls.trigger(M.Events.BUFFER_EOS,W),this.state=c.State.ENDED;return}var Q=K.end,ie=this.getNextFragment(Q,F);if(this.couldBacktrack&&!this.fragPrevious&&ie&&ie.sn!=="initSegment"){var Ee=ie.sn-F.startSN;Ee>1&&(ie=F.fragments[Ee-1],this.fragmentTracker.removeFragment(ie))}if(ie&&this.fragmentTracker.getState(ie)===e.FragmentState.OK&&this.nextLoadPosition>Q){var pe=this.audioOnly&&!this.altAudio?r.ElementaryStreamTypes.AUDIO:r.ElementaryStreamTypes.VIDEO;this.afterBufferFlushed(b,pe,m.PlaylistLevelType.MAIN),ie=this.getNextFragment(this.nextLoadPosition,F)}if(!ie)return;ie.initSegment&&!ie.initSegment.data&&!this.bitrateTest&&(ie=ie.initSegment),((o=ie.decryptdata)===null||o===void 0?void 0:o.keyFormat)==="identity"&&!((f=ie.decryptdata)!==null&&f!==void 0&&f.key)?this.loadKey(ie,F):this.loadFragment(ie,F,Q)},x.loadFragment=function(o,f,E){var O,S=this.fragmentTracker.getState(o);if(this.fragCurrent=o,S===e.FragmentState.BACKTRACKED){var b=this.fragmentTracker.getBacktrackData(o);if(b){this._handleFragmentLoadProgress(b),this._handleFragmentLoadComplete(b);return}else S=e.FragmentState.NOT_LOADED}S===e.FragmentState.NOT_LOADED||S===e.FragmentState.PARTIAL?o.sn==="initSegment"?this._loadInitSegment(o):this.bitrateTest?(o.bitrateTest=!0,this.log("Fragment "+o.sn+" of level "+o.level+" is being downloaded to test bitrate and will not be buffered"),this._loadBitrateTestFrag(o)):(this.startFragRequested=!0,R.prototype.loadFragment.call(this,o,f,E)):S===e.FragmentState.APPENDING?this.reduceMaxBufferLength(o.duration)&&this.fragmentTracker.removeFragment(o):((O=this.media)===null||O===void 0?void 0:O.buffered.length)===0&&this.fragmentTracker.removeAllFragments()},x.getAppendedFrag=function(o){var f=this.fragmentTracker.getAppendedFrag(o,m.PlaylistLevelType.MAIN);return f&&"fragment"in f?f.fragment:f},x.getBufferedFrag=function(o){return this.fragmentTracker.getBufferedFrag(o,m.PlaylistLevelType.MAIN)},x.followingBufferedFrag=function(o){return o?this.getBufferedFrag(o.end+.5):null},x.immediateLevelSwitch=function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},x.nextLevelSwitch=function(){var o=this.levels,f=this.media;if(f!=null&&f.readyState){var E,O=this.getAppendedFrag(f.currentTime);if(O&&O.start>1&&this.flushMainBuffer(0,O.start-1),!f.paused&&o){var S=this.hls.nextLoadLevel,b=o[S],D=this.fragLastKbps;D&&this.fragCurrent?E=this.fragCurrent.duration*b.maxBitrate/(1e3*D)+1:E=0}else E=0;var P=this.getBufferedFrag(f.currentTime+E);if(P){var I=this.followingBufferedFrag(P);if(I){this.abortCurrentFrag();var F=I.maxStartPTS?I.maxStartPTS:I.start,K=I.duration,j=Math.max(P.end,F+Math.min(Math.max(K-this.config.maxFragLookUpTolerance,K*.5),K*.75));this.flushMainBuffer(j,Number.POSITIVE_INFINITY)}}}},x.abortCurrentFrag=function(){var o=this.fragCurrent;this.fragCurrent=null,o!=null&&o.loader&&o.loader.abort(),this.state===c.State.KEY_LOADING&&(this.state=c.State.IDLE),this.nextLoadPosition=this.getLoadPosition()},x.flushMainBuffer=function(o,f){R.prototype.flushMainBuffer.call(this,o,f,this.altAudio?"video":null)},x.onMediaAttached=function(o,f){R.prototype.onMediaAttached.call(this,o,f);var E=f.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),E.addEventListener("playing",this.onvplaying),E.addEventListener("seeked",this.onvseeked),this.gapController=new l.default(this.config,E,this.fragmentTracker,this.hls)},x.onMediaDetaching=function(){var o=this.media;o&&(o.removeEventListener("playing",this.onvplaying),o.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),R.prototype.onMediaDetaching.call(this)},x.onMediaPlaying=function(){this.tick()},x.onMediaSeeked=function(){var o=this.media,f=o?o.currentTime:null;Object(N.isFiniteNumber)(f)&&this.log("Media seeked to "+f.toFixed(3)),this.tick()},x.onManifestLoading=function(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(M.Events.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=this.stalled=!1,this.startPosition=this.lastCurrentTime=0,this.fragPlaying=null},x.onManifestParsed=function(o,f){var E=!1,O=!1,S;f.levels.forEach(function(b){S=b.audioCodec,S&&(S.indexOf("mp4a.40.2")!==-1&&(E=!0),S.indexOf("mp4a.40.5")!==-1&&(O=!0))}),this.audioCodecSwitch=E&&O&&!Object(u.changeTypeSupported)(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=f.levels,this.startFragRequested=!1},x.onLevelLoading=function(o,f){var E=this.levels;if(!E||this.state!==c.State.IDLE)return;var O=E[f.level];(!O.details||O.details.live&&this.levelLastLoaded!==f.level||this.waitForCdnTuneIn(O.details))&&(this.state=c.State.WAITING_LEVEL)},x.onLevelLoaded=function(o,f){var E,O=this.levels,S=f.level,b=f.details,D=b.totalduration;if(!O){this.warn("Levels were reset while loading level "+S);return}this.log("Level "+S+" loaded ["+b.startSN+","+b.endSN+"], cc ["+b.startCC+", "+b.endCC+"] duration:"+D);var P=this.fragCurrent;P&&(this.state===c.State.FRAG_LOADING||this.state===c.State.FRAG_LOADING_WAITING_RETRY)&&(P.level!==f.level&&P.loader&&(this.state=c.State.IDLE,P.loader.abort()));var I=O[S],F=0;if(b.live||(E=I.details)!==null&&E!==void 0&&E.live){if(b.fragments[0]||(b.deltaUpdateFailed=!0),b.deltaUpdateFailed)return;F=this.alignPlaylists(b,I.details)}if(I.details=b,this.levelLastLoaded=S,this.hls.trigger(M.Events.LEVEL_UPDATED,{details:b,level:S}),this.state===c.State.WAITING_LEVEL){if(this.waitForCdnTuneIn(b))return;this.state=c.State.IDLE}this.startFragRequested?b.live&&this.synchronizeToLiveEdge(b):this.setStartPosition(b,F),this.tick()},x._handleFragmentLoadProgress=function(o){var f,E=o.frag,O=o.part,S=o.payload,b=this.levels;if(!b){this.warn("Levels were reset while fragment load was in progress. Fragment "+E.sn+" of level "+E.level+" will not be buffered");return}var D=b[E.level],P=D.details;if(!P){this.warn("Dropping fragment "+E.sn+" of level "+E.level+" after level details were reset");return}var I=D.videoCodec,F=P.PTSKnown||!P.live,K=(f=E.initSegment)===null||f===void 0?void 0:f.data,j=this._getAudioCodec(D),Y=this.transmuxer=this.transmuxer||new h.default(this.hls,m.PlaylistLevelType.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),W=O?O.index:-1,Q=W!==-1,ie=new a.ChunkMetadata(E.level,E.sn,E.stats.chunkCount,S.byteLength,W,Q),Ee=this.initPTS[E.cc];Y.push(S,K,j,I,E,O,P.totalduration,F,ie,Ee)},x.onAudioTrackSwitching=function(o,f){var E=this.altAudio,O=!!f.url,S=f.id;if(!O){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var b=this.fragCurrent;b!=null&&b.loader&&(this.log("Switching to main audio track, cancel main fragment load"),b.loader.abort()),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();var D=this.hls;E&&D.trigger(M.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),D.trigger(M.Events.AUDIO_TRACK_SWITCHED,{id:S})}},x.onAudioTrackSwitched=function(o,f){var E=f.id,O=!!this.hls.audioTracks[E].url;if(O){var S=this.videoBuffer;S&&this.mediaBuffer!==S&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=S)}this.altAudio=O,this.tick()},x.onBufferCreated=function(o,f){var E=f.tracks,O,S,b=!1;for(var D in E){var P=E[D];if(P.id==="main"){if(S=D,O=P,D==="video"){var I=E[D];I&&(this.videoBuffer=I.buffer)}}else b=!0}b&&O?(this.log("Alternate track found, use "+S+".buffered to schedule main fragment loading"),this.mediaBuffer=O.buffer):this.mediaBuffer=this.media},x.onFragBuffered=function(o,f){var E=f.frag,O=f.part;if(E&&E.type!==m.PlaylistLevelType.MAIN)return;if(this.fragContextChanged(E)){this.warn("Fragment "+E.sn+(O?" p: "+O.index:"")+" of level "+E.level+" finished buffering, but was aborted. state: "+this.state),this.state===c.State.PARSED&&(this.state=c.State.IDLE);return}var S=O?O.stats:E.stats;this.fragLastKbps=Math.round(8*S.total/(S.buffering.end-S.loading.first)),E.sn!=="initSegment"&&(this.fragPrevious=E),this.fragBufferedComplete(E,O)},x.onError=function(o,f){switch(f.details){case d.ErrorDetails.FRAG_LOAD_ERROR:case d.ErrorDetails.FRAG_LOAD_TIMEOUT:case d.ErrorDetails.KEY_LOAD_ERROR:case d.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(m.PlaylistLevelType.MAIN,f);break;case d.ErrorDetails.LEVEL_LOAD_ERROR:case d.ErrorDetails.LEVEL_LOAD_TIMEOUT:this.state!==c.State.ERROR&&(f.fatal?(this.warn(""+f.details),this.state=c.State.ERROR):!f.levelRetry&&this.state===c.State.WAITING_LEVEL&&(this.state=c.State.IDLE));break;case d.ErrorDetails.BUFFER_FULL_ERROR:if(f.parent==="main"&&(this.state===c.State.PARSING||this.state===c.State.PARSED)){var E=!0,O=this.getFwdBufferInfo(this.media,m.PlaylistLevelType.MAIN);O&&O.len>.5&&(E=!this.reduceMaxBufferLength(O.len)),E&&(this.warn("buffer full error also media.currentTime is not buffered, flush main"),this.immediateLevelSwitch()),this.resetLoadingState()}break;default:break}},x.checkBuffer=function(){var o=this.media,f=this.gapController;if(!o||!f||!o.readyState)return;var E=g.BufferHelper.getBuffered(o);!this.loadedmetadata&&E.length?(this.loadedmetadata=!0,this.seekToStartPos()):f.poll(this.lastCurrentTime),this.lastCurrentTime=o.currentTime},x.onFragLoadEmergencyAborted=function(){this.state=c.State.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()},x.onBufferFlushed=function(o,f){var E=f.type;if(E!==r.ElementaryStreamTypes.AUDIO||this.audioOnly&&!this.altAudio){var O=(E===r.ElementaryStreamTypes.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(O,E,m.PlaylistLevelType.MAIN)}},x.onLevelsUpdated=function(o,f){this.levels=f.levels},x.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},x.seekToStartPos=function(){var o=this.media,f=o.currentTime,E=this.startPosition;if(E>=0&&f<E){if(o.seeking){y.logger.log("could not seek to "+E+", already seeking at "+f);return}var O=g.BufferHelper.getBuffered(o),S=O.length?O.start(0):0,b=S-E;b>0&&(b<this.config.maxBufferHole||b<this.config.maxFragLookUpTolerance)&&(y.logger.log("adjusting start position by "+b+" to match buffer start"),E+=b,this.startPosition=E),this.log("seek to target start position "+E+" from current time "+f),o.currentTime=E}},x._getAudioCodec=function(o){var f=this.config.defaultAudioCodec||o.audioCodec;return this.audioCodecSwap&&f&&(this.log("Swapping audio codec"),f.indexOf("mp4a.40.5")!==-1?f="mp4a.40.2":f="mp4a.40.5"),f},x._loadBitrateTestFrag=function(o){var f=this;this._doFragLoad(o).then(function(E){var O=f.hls;if(!E||O.nextLoadLevel||f.fragContextChanged(o))return;f.fragLoadError=0,f.state=c.State.IDLE,f.startFragRequested=!1,f.bitrateTest=!1;var S=o.stats;S.parsing.start=S.parsing.end=S.buffering.start=S.buffering.end=self.performance.now(),O.trigger(M.Events.FRAG_LOADED,E)})},x._handleTransmuxComplete=function(o){var f,E="main",O=this.hls,S=o.remuxResult,b=o.chunkMeta,D=this.getCurrentContext(b);if(!D){this.warn("The loading context changed while buffering fragment "+b.sn+" of level "+b.level+". This chunk will not be buffered."),this.resetLiveStartWhenNotLoaded(b.level);return}var P=D.frag,I=D.part,F=D.level,K=S.video,j=S.text,Y=S.id3,W=S.initSegment,Q=this.altAudio?void 0:S.audio;if(this.fragContextChanged(P))return;if(this.state=c.State.PARSING,W){W.tracks&&(this._bufferInitSegment(F,W.tracks,P,b),O.trigger(M.Events.FRAG_PARSING_INIT_SEGMENT,{frag:P,id:E,tracks:W.tracks}));var ie=W.initPTS,Ee=W.timescale;Object(N.isFiniteNumber)(ie)&&(this.initPTS[P.cc]=ie,O.trigger(M.Events.INIT_PTS_FOUND,{frag:P,id:E,initPTS:ie,timescale:Ee}))}if(K&&S.independent!==!1){if(F.details){var pe=K.startPTS,De=K.endPTS,Me=K.startDTS,Ue=K.endDTS;if(I)I.elementaryStreams[K.type]={startPTS:pe,endPTS:De,startDTS:Me,endDTS:Ue};else if(K.firstKeyFrame&&K.independent&&(this.couldBacktrack=!0),K.dropped&&K.independent){var Ie=this.getLoadPosition()+this.config.maxBufferHole;if(Ie<pe){this.backtrack(P);return}P.setElementaryStreamInfo(K.type,P.start,De,P.start,Ue,!0)}P.setElementaryStreamInfo(K.type,pe,De,Me,Ue),this.bufferFragmentData(K,P,I,b)}}else if(S.independent===!1){this.backtrack(P);return}if(Q){var ne=Q.startPTS,B=Q.endPTS,z=Q.startDTS,H=Q.endDTS;I&&(I.elementaryStreams[r.ElementaryStreamTypes.AUDIO]={startPTS:ne,endPTS:B,startDTS:z,endDTS:H}),P.setElementaryStreamInfo(r.ElementaryStreamTypes.AUDIO,ne,B,z,H),this.bufferFragmentData(Q,P,I,b)}if(Y!=null&&(f=Y.samples)!==null&&f!==void 0&&f.length){var ee={frag:P,id:E,samples:Y.samples};O.trigger(M.Events.FRAG_PARSING_METADATA,ee)}if(j){var X={frag:P,id:E,samples:j.samples};O.trigger(M.Events.FRAG_PARSING_USERDATA,X)}},x._bufferInitSegment=function(o,f,E,O){var S=this;if(this.state!==c.State.PARSING)return;this.audioOnly=!!f.audio&&!f.video,this.altAudio&&!this.audioOnly&&delete f.audio;var b=f.audio,D=f.video,P=f.audiovideo;if(b){var I=o.audioCodec,F=navigator.userAgent.toLowerCase();this.audioCodecSwitch&&(I&&(I.indexOf("mp4a.40.5")!==-1?I="mp4a.40.2":I="mp4a.40.5"),b.metadata.channelCount!==1&&F.indexOf("firefox")===-1&&(I="mp4a.40.5")),F.indexOf("android")!==-1&&b.container!=="audio/mpeg"&&(I="mp4a.40.2",this.log("Android: force audio codec to "+I)),o.audioCodec&&o.audioCodec!==I&&this.log('Swapping manifest audio codec "'+o.audioCodec+'" for "'+I+'"'),b.levelCodec=I,b.id="main",this.log("Init audio buffer, container:"+b.container+", codecs[selected/level/parsed]=["+(I||"")+"/"+(o.audioCodec||"")+"/"+b.codec+"]")}D&&(D.levelCodec=o.videoCodec,D.id="main",this.log("Init video buffer, container:"+D.container+", codecs[level/parsed]=["+(o.videoCodec||"")+"/"+D.codec+"]")),P&&this.log("Init audiovideo buffer, container:"+P.container+", codecs[level/parsed]=["+(o.attrs.CODECS||"")+"/"+P.codec+"]"),this.hls.trigger(M.Events.BUFFER_CODECS,f),Object.keys(f).forEach(function(K){var j=f[K],Y=j.initSegment;Y!=null&&Y.byteLength&&S.hls.trigger(M.Events.BUFFER_APPENDING,{type:K,data:Y,frag:E,part:null,chunkMeta:O,parent:E.type})}),this.tick()},x.backtrack=function(o){this.couldBacktrack=!0,this.resetTransmuxer(),this.flushBufferGap(o);var f=this.fragmentTracker.backtrack(o);this.fragPrevious=null,this.nextLoadPosition=o.start,f?this.resetFragmentLoading(o):this.state=c.State.BACKTRACKING},x.checkFragmentChanged=function(){var o=this.media,f=null;if(o&&o.readyState>1&&o.seeking===!1){var E=o.currentTime;if(g.BufferHelper.isBuffered(o,E)?f=this.getAppendedFrag(E):g.BufferHelper.isBuffered(o,E+.1)&&(f=this.getAppendedFrag(E+.1)),f){var O=this.fragPlaying,S=f.level;(!O||f.sn!==O.sn||O.level!==S||f.urlId!==O.urlId)&&(this.hls.trigger(M.Events.FRAG_CHANGED,{frag:f}),(!O||O.level!==S)&&this.hls.trigger(M.Events.LEVEL_SWITCHED,{level:S}),this.fragPlaying=f)}}},p(w,[{key:"nextLevel",get:function(){var o=this.nextBufferedFrag;return o?o.level:-1}},{key:"currentLevel",get:function(){var o=this.media;if(o){var f=this.getAppendedFrag(o.currentTime);if(f)return f.level}return-1}},{key:"nextBufferedFrag",get:function(){var o=this.media;if(o){var f=this.getAppendedFrag(o.currentTime);return this.followingBufferedFrag(f)}else return null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}]),w}(c.default)},"./src/controller/subtitle-stream-controller.ts":function(Z,U,L){"use strict";L.r(U),L.d(U,"SubtitleStreamController",function(){return n});var N=L("./src/events.ts"),c=L("./src/utils/logger.ts"),u=L("./src/utils/buffer-helper.ts"),M=L("./src/controller/fragment-finders.ts"),g=L("./src/utils/discontinuities.ts"),e=L("./src/controller/level-helper.ts"),m=L("./src/controller/fragment-tracker.ts"),r=L("./src/controller/base-stream-controller.ts"),h=L("./src/types/loader.ts"),a=L("./src/types/level.ts");function l(i,v){for(var C=0;C<v.length;C++){var R=v[C];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(i,R.key,R)}}function d(i,v,C){return v&&l(i.prototype,v),C&&l(i,C),i}function y(i,v){i.prototype=Object.create(v.prototype),i.prototype.constructor=i,s(i,v)}function s(i,v){return s=Object.setPrototypeOf||function(R,w){return R.__proto__=w,R},s(i,v)}var p=500,n=function(i){y(v,i);function v(R,w){var x;return x=i.call(this,R,w,"[subtitle-stream-controller]")||this,x.levels=[],x.currentTrackId=-1,x.tracksBuffered=[],x.mainDetails=null,x._registerListeners(),x}var C=v.prototype;return C.onHandlerDestroying=function(){this._unregisterListeners(),this.mainDetails=null},C._registerListeners=function(){var w=this.hls;w.on(N.Events.MEDIA_ATTACHED,this.onMediaAttached,this),w.on(N.Events.MEDIA_DETACHING,this.onMediaDetaching,this),w.on(N.Events.MANIFEST_LOADING,this.onManifestLoading,this),w.on(N.Events.LEVEL_LOADED,this.onLevelLoaded,this),w.on(N.Events.ERROR,this.onError,this),w.on(N.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),w.on(N.Events.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),w.on(N.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),w.on(N.Events.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),w.on(N.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},C._unregisterListeners=function(){var w=this.hls;w.off(N.Events.MEDIA_ATTACHED,this.onMediaAttached,this),w.off(N.Events.MEDIA_DETACHING,this.onMediaDetaching,this),w.off(N.Events.MANIFEST_LOADING,this.onManifestLoading,this),w.off(N.Events.LEVEL_LOADED,this.onLevelLoaded,this),w.off(N.Events.ERROR,this.onError,this),w.off(N.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),w.off(N.Events.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),w.off(N.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),w.off(N.Events.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),w.off(N.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},C.startLoad=function(){this.stopLoad(),this.state=r.State.IDLE,this.setInterval(p),this.tick()},C.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments()},C.onLevelLoaded=function(w,x){this.mainDetails=x.details},C.onSubtitleFragProcessed=function(w,x){var A=x.frag,o=x.success;if(this.fragPrevious=A,this.state=r.State.IDLE,!o)return;var f=this.tracksBuffered[this.currentTrackId];if(!f)return;for(var E,O=A.start,S=0;S<f.length;S++)if(O>=f[S].start&&O<=f[S].end){E=f[S];break}var b=A.start+A.duration;E?E.end=b:(E={start:O,end:b},f.push(E)),this.fragmentTracker.fragBuffered(A)},C.onBufferFlushing=function(w,x){var A=x.startOffset,o=x.endOffset;if(A===0&&o!==Number.POSITIVE_INFINITY){var f=this.currentTrackId,E=this.levels;if(!E.length||!E[f]||!E[f].details)return;var O=E[f].details,S=O.targetduration,b=o-S;if(b<=0)return;x.endOffsetSubtitles=Math.max(0,b),this.tracksBuffered.forEach(function(D){for(var P=0;P<D.length;){if(D[P].end<=b){D.shift();continue}else if(D[P].start<b)D[P].start=b;else break;P++}}),this.fragmentTracker.removeFragmentsInRange(A,b,h.PlaylistLevelType.SUBTITLE)}},C.onError=function(w,x){var A,o=x.frag;if(!o||o.type!==h.PlaylistLevelType.SUBTITLE)return;(A=this.fragCurrent)!==null&&A!==void 0&&A.loader&&this.fragCurrent.loader.abort(),this.state=r.State.IDLE},C.onSubtitleTracksUpdated=function(w,x){var A=this,o=x.subtitleTracks;this.tracksBuffered=[],this.levels=o.map(function(f){return new a.Level(f)}),this.fragmentTracker.removeAllFragments(),this.fragPrevious=null,this.levels.forEach(function(f){A.tracksBuffered[f.id]=[]}),this.mediaBuffer=null},C.onSubtitleTrackSwitch=function(w,x){if(this.currentTrackId=x.id,!this.levels.length||this.currentTrackId===-1){this.clearInterval();return}var A=this.levels[this.currentTrackId];A!=null&&A.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,A&&this.setInterval(p)},C.onSubtitleTrackLoaded=function(w,x){var A,o=x.details,f=x.id,E=this.currentTrackId,O=this.levels;if(!O.length)return;var S=O[E];if(f>=O.length||f!==E||!S)return;if(this.mediaBuffer=this.mediaBufferTimeRanges,o.live||(A=S.details)!==null&&A!==void 0&&A.live){var b=this.mainDetails;if(o.deltaUpdateFailed||!b)return;var D=b.fragments[0];if(!S.details)o.hasProgramDateTime&&b.hasProgramDateTime?Object(g.alignMediaPlaylistByPDT)(o,b):D&&Object(e.addSliding)(o,D.start);else{var P=this.alignPlaylists(o,S.details);P===0&&D&&Object(e.addSliding)(o,D.start)}}if(S.details=o,this.levelLastLoaded=f,this.tick(),o.live&&!this.fragCurrent&&this.media&&this.state===r.State.IDLE){var I=Object(M.findFragmentByPTS)(null,o.fragments,this.media.currentTime,0);I||(this.warn("Subtitle playlist not aligned with playback"),S.details=void 0)}},C._handleFragmentLoadComplete=function(w){var x=w.frag,A=w.payload,o=x.decryptdata,f=this.hls;if(this.fragContextChanged(x))return;if(A&&A.byteLength>0&&o&&o.key&&o.iv&&o.method==="AES-128"){var E=performance.now();this.decrypter.webCryptoDecrypt(new Uint8Array(A),o.key.buffer,o.iv.buffer).then(function(O){var S=performance.now();f.trigger(N.Events.FRAG_DECRYPTED,{frag:x,payload:O,stats:{tstart:E,tdecrypt:S}})})}},C.doTick=function(){if(!this.media){this.state=r.State.IDLE;return}if(this.state===r.State.IDLE){var w,x=this.currentTrackId,A=this.levels;if(!A.length||!A[x]||!A[x].details)return;var o=A[x].details,f=o.targetduration,E=this.config,O=this.media,S=u.BufferHelper.bufferedInfo(this.mediaBufferTimeRanges,O.currentTime-f,E.maxBufferHole),b=S.end,D=S.len,P=this.getMaxBufferLength()+f;if(D>P)return;console.assert(o,"Subtitle track details are defined on idle subtitle stream controller tick");var I=o.fragments,F=I.length,K=o.edge,j,Y=this.fragPrevious;if(b<K){var W=E.maxFragLookUpTolerance;Y&&o.hasProgramDateTime&&(j=Object(M.findFragmentByPDT)(I,Y.endProgramDateTime,W)),j||(j=Object(M.findFragmentByPTS)(Y,I,b,W),!j&&Y&&Y.start<I[0].start&&(j=I[0]))}else j=I[F-1];(w=j)!==null&&w!==void 0&&w.encrypted?(c.logger.log("Loading key for "+j.sn),this.state=r.State.KEY_LOADING,this.hls.trigger(N.Events.KEY_LOADING,{frag:j})):j&&this.fragmentTracker.getState(j)===m.FragmentState.NOT_LOADED&&this.loadFragment(j,o,b)}},C.loadFragment=function(w,x,A){this.fragCurrent=w,i.prototype.loadFragment.call(this,w,x,A)},d(v,[{key:"mediaBufferTimeRanges",get:function(){return this.tracksBuffered[this.currentTrackId]||[]}}]),v}(r.default)},"./src/controller/subtitle-track-controller.ts":function(Z,U,L){"use strict";L.r(U);var N=L("./src/events.ts"),c=L("./src/utils/texttrack-utils.ts"),u=L("./src/controller/base-playlist-controller.ts"),M=L("./src/types/loader.ts");function g(l,d){for(var y=0;y<d.length;y++){var s=d[y];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(l,s.key,s)}}function e(l,d,y){return d&&g(l.prototype,d),y&&g(l,y),l}function m(l,d){l.prototype=Object.create(d.prototype),l.prototype.constructor=l,r(l,d)}function r(l,d){return r=Object.setPrototypeOf||function(s,p){return s.__proto__=p,s},r(l,d)}var h=function(l){m(d,l);function d(s){var p;return p=l.call(this,s,"[subtitle-track-controller]")||this,p.media=null,p.tracks=[],p.groupId=null,p.tracksInGroup=[],p.trackId=-1,p.selectDefaultTrack=!0,p.queuedDefaultTrack=-1,p.trackChangeListener=function(){return p.onTextTracksChanged()},p.asyncPollTrackChange=function(){return p.pollTrackChange(0)},p.useTextTrackPolling=!1,p.subtitlePollingInterval=-1,p.subtitleDisplay=!0,p.registerListeners(),p}var y=d.prototype;return y.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.trackChangeListener=this.asyncPollTrackChange=null,l.prototype.destroy.call(this)},y.registerListeners=function(){var p=this.hls;p.on(N.Events.MEDIA_ATTACHED,this.onMediaAttached,this),p.on(N.Events.MEDIA_DETACHING,this.onMediaDetaching,this),p.on(N.Events.MANIFEST_LOADING,this.onManifestLoading,this),p.on(N.Events.MANIFEST_PARSED,this.onManifestParsed,this),p.on(N.Events.LEVEL_LOADING,this.onLevelLoading,this),p.on(N.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),p.on(N.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),p.on(N.Events.ERROR,this.onError,this)},y.unregisterListeners=function(){var p=this.hls;p.off(N.Events.MEDIA_ATTACHED,this.onMediaAttached,this),p.off(N.Events.MEDIA_DETACHING,this.onMediaDetaching,this),p.off(N.Events.MANIFEST_LOADING,this.onManifestLoading,this),p.off(N.Events.MANIFEST_PARSED,this.onManifestParsed,this),p.off(N.Events.LEVEL_LOADING,this.onLevelLoading,this),p.off(N.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),p.off(N.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),p.off(N.Events.ERROR,this.onError,this)},y.onMediaAttached=function(p,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)},y.pollTrackChange=function(p){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.trackChangeListener,p)},y.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 p=a(this.media.textTracks);p.forEach(function(n){Object(c.clearCurrentCues)(n)}),this.subtitleTrack=-1,this.media=null},y.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.selectDefaultTrack=!0},y.onManifestParsed=function(p,n){this.tracks=n.subtitleTracks},y.onSubtitleTrackLoaded=function(p,n){var i=n.id,v=n.details,C=this.trackId,R=this.tracksInGroup[C];if(!R){this.warn("Invalid subtitle track id "+i);return}var w=R.details;R.details=n.details,this.log("subtitle track "+i+" loaded ["+v.startSN+"-"+v.endSN+"]"),i===this.trackId&&(this.retryCount=0,this.playlistLoaded(i,n,w))},y.onLevelLoading=function(p,n){this.switchLevel(n.level)},y.onLevelSwitching=function(p,n){this.switchLevel(n.level)},y.switchLevel=function(p){var n=this.hls.levels[p];if(!(n!=null&&n.textGroupIds))return;var i=n.textGroupIds[n.urlId];if(this.groupId!==i){var v=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0,C=this.tracks.filter(function(x){return!i||x.groupId===i});this.tracksInGroup=C;var R=this.findTrackId(v==null?void 0:v.name)||this.findTrackId();this.groupId=i;var w={subtitleTracks:C};this.log("Updating subtitle tracks, "+C.length+' track(s) found in "'+i+'" group-id'),this.hls.trigger(N.Events.SUBTITLE_TRACKS_UPDATED,w),R!==-1&&this.setSubtitleTrack(R,v)}},y.findTrackId=function(p){for(var n=this.tracksInGroup,i=0;i<n.length;i++){var v=n[i];if((!this.selectDefaultTrack||v.default)&&(!p||p===v.name))return v.id}return-1},y.onError=function(p,n){if(l.prototype.onError.call(this,p,n),n.fatal||!n.context)return;n.context.type===M.PlaylistContextType.SUBTITLE_TRACK&&n.context.id===this.trackId&&n.context.groupId===this.groupId&&this.retryLoadingOrFail(n)},y.loadPlaylist=function(p){var n=this.tracksInGroup[this.trackId];if(this.shouldLoadTrack(n)){var i=n.id,v=n.groupId,C=n.url;if(p)try{C=p.addDirectives(C)}catch(R){this.warn("Could not construct new URL with HLS Delivery Directives: "+R)}this.log("Loading subtitle playlist for id "+i),this.hls.trigger(N.Events.SUBTITLE_TRACK_LOADING,{url:C,id:i,groupId:v,deliveryDirectives:p||null})}},y.toggleTrackModes=function(p){var n=this,i=this.media,v=this.subtitleDisplay,C=this.trackId;if(!i)return;var R=a(i.textTracks),w=R.filter(function(o){return o.groupId===n.groupId});if(p===-1)[].slice.call(R).forEach(function(o){o.mode="disabled"});else{var x=w[C];x&&(x.mode="disabled")}var A=w[p];A&&(A.mode=v?"showing":"hidden")},y.setSubtitleTrack=function(p,n){var i,v=this.tracksInGroup;if(!this.media){this.queuedDefaultTrack=p;return}if(this.trackId!==p&&this.toggleTrackModes(p),this.trackId===p&&(p===-1||(i=v[p])!==null&&i!==void 0&&i.details)||p<-1||p>=v.length)return;this.clearTimer();var C=v[p];if(this.log("Switching to subtitle track "+p),this.trackId=p,C){var R=C.id,w=C.groupId,x=w===void 0?"":w,A=C.name,o=C.type,f=C.url;this.hls.trigger(N.Events.SUBTITLE_TRACK_SWITCH,{id:R,groupId:x,name:A,type:o,url:f});var E=this.switchParams(C.url,n==null?void 0:n.details);this.loadPlaylist(E)}else this.hls.trigger(N.Events.SUBTITLE_TRACK_SWITCH,{id:p})},y.onTextTracksChanged=function(){if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;for(var p=-1,n=a(this.media.textTracks),i=0;i<n.length;i++)if(n[i].mode==="hidden")p=i;else if(n[i].mode==="showing"){p=i;break}this.subtitleTrack!==p&&(this.subtitleTrack=p)},e(d,[{key:"subtitleTracks",get:function(){return this.tracksInGroup}},{key:"subtitleTrack",get:function(){return this.trackId},set:function(p){this.selectDefaultTrack=!1;var n=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0;this.setSubtitleTrack(p,n)}}]),d}(u.default);function a(l){for(var d=[],y=0;y<l.length;y++){var s=l[y];s.kind==="subtitles"&&s.label&&d.push(l[y])}return d}U.default=h},"./src/controller/timeline-controller.ts":function(Z,U,L){"use strict";L.r(U),L.d(U,"TimelineController",function(){return a});var N=L("./src/polyfills/number.ts"),c=L("./src/events.ts"),u=L("./src/utils/cea-608-parser.ts"),M=L("./src/utils/output-filter.ts"),g=L("./src/utils/webvtt-parser.ts"),e=L("./src/utils/texttrack-utils.ts"),m=L("./src/utils/imsc1-ttml-parser.ts"),r=L("./src/types/loader.ts"),h=L("./src/utils/logger.ts"),a=function(){function s(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=y(),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 i=new M.default(this,"textTrack1"),v=new M.default(this,"textTrack2"),C=new M.default(this,"textTrack3"),R=new M.default(this,"textTrack4");this.cea608Parser1=new u.default(1,i,v),this.cea608Parser2=new u.default(3,C,R)}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 p=s.prototype;return p.destroy=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_LOADING,this.onManifestLoading,this),i.off(c.Events.MANIFEST_LOADED,this.onManifestLoaded,this),i.off(c.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),i.off(c.Events.FRAG_LOADING,this.onFragLoading,this),i.off(c.Events.FRAG_LOADED,this.onFragLoaded,this),i.off(c.Events.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),i.off(c.Events.FRAG_DECRYPTED,this.onFragDecrypted,this),i.off(c.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),i.off(c.Events.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),i.off(c.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.cea608Parser1=this.cea608Parser2=null},p.addCues=function(i,v,C,R,w){for(var x=!1,A=w.length;A--;){var o=w[A],f=d(o[0],o[1],v,C);if(f>=0&&(o[0]=Math.min(o[0],v),o[1]=Math.max(o[1],C),x=!0,f/(C-v)>.5))return}if(x||w.push([v,C]),this.config.renderTextTracksNatively){var E=this.captionsTracks[i];this.Cues.newCue(E,v,C,R)}else{var O=this.Cues.newCue(null,v,C,R);this.hls.trigger(c.Events.CUES_PARSED,{type:"captions",cues:O,track:i})}},p.onInitPtsFound=function(i,v){var C=this,R=v.frag,w=v.id,x=v.initPTS,A=v.timescale,o=this.unparsedVttFrags;w==="main"&&(this.initPTS[R.cc]=x,this.timescale[R.cc]=A),o.length&&(this.unparsedVttFrags=[],o.forEach(function(f){C.onFragLoaded(c.Events.FRAG_LOADED,f)}))},p.getExistingTrack=function(i){var v=this.media;if(v)for(var C=0;C<v.textTracks.length;C++){var R=v.textTracks[C];if(R[i])return R}return null},p.createCaptionsTrack=function(i){this.config.renderTextTracksNatively?this.createNativeTrack(i):this.createNonNativeTrack(i)},p.createNativeTrack=function(i){if(this.captionsTracks[i])return;var v=this.captionsProperties,C=this.captionsTracks,R=this.media,w=v[i],x=w.label,A=w.languageCode,o=this.getExistingTrack(i);if(o)C[i]=o,Object(e.clearCurrentCues)(C[i]),Object(e.sendAddTrackEvent)(C[i],R);else{var f=this.createTextTrack("captions",x,A);f&&(f[i]=!0,C[i]=f)}},p.createNonNativeTrack=function(i){if(this.nonNativeCaptionsTracks[i])return;var v=this.captionsProperties[i];if(!v)return;var C=v.label,R={_id:i,label:C,kind:"captions",default:v.media?!!v.media.default:!1,closedCaptions:v.media};this.nonNativeCaptionsTracks[i]=R,this.hls.trigger(c.Events.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[R]})},p.createTextTrack=function(i,v,C){var R=this.media;return R?R.addTextTrack(i,v,C):void 0},p.onMediaAttaching=function(i,v){this.media=v.media,this._cleanTracks()},p.onMediaDetaching=function(){var i=this.captionsTracks;Object.keys(i).forEach(function(v){Object(e.clearCurrentCues)(i[v]),delete i[v]}),this.nonNativeCaptionsTracks={}},p.onManifestLoading=function(){this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=y(),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())},p._cleanTracks=function(){var i=this.media;if(!i)return;var v=i.textTracks;if(v)for(var C=0;C<v.length;C++)Object(e.clearCurrentCues)(v[C])},p.onSubtitleTracksUpdated=function(i,v){var C=this;this.textTracks=[];var R=v.subtitleTracks||[],w=R.some(function(f){return f.textCodec===m.IMSC1_CODEC});if(this.config.enableWebVTT||w&&this.config.enableIMSC1){var x=this.tracks&&R&&this.tracks.length===R.length;if(this.tracks=R||[],this.config.renderTextTracksNatively){var A=this.media?this.media.textTracks:[];this.tracks.forEach(function(f,E){var O;if(E<A.length){for(var S=null,b=0;b<A.length;b++)if(l(A[b],f)){S=A[b];break}S&&(O=S)}O?Object(e.clearCurrentCues)(O):(O=C.createTextTrack("subtitles",f.name,f.lang),O&&(O.mode="disabled")),O&&(O.groupId=f.groupId,C.textTracks.push(O))})}else if(!x&&this.tracks&&this.tracks.length){var o=this.tracks.map(function(f){return{label:f.name,kind:f.type.toLowerCase(),default:f.default,subtitleTrack:f}});this.hls.trigger(c.Events.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:o})}}},p.onManifestLoaded=function(i,v){var C=this;this.config.enableCEA708Captions&&v.captions&&v.captions.forEach(function(R){var w=/(?:CC|SERVICE)([1-4])/.exec(R.instreamId);if(!w)return;var x="textTrack"+w[1],A=C.captionsProperties[x];if(!A)return;A.label=R.name,R.lang&&(A.languageCode=R.lang),A.media=R})},p.onFragLoading=function(i,v){var C=this.cea608Parser1,R=this.cea608Parser2,w=this.lastSn,x=this.lastPartIndex;if(!this.enabled||!(C&&R))return;if(v.frag.type===r.PlaylistLevelType.MAIN){var A,o,f=v.frag.sn,E=(A=v==null||((o=v.part)===null||o===void 0)?void 0:o.index)!=null?A:-1;f===w+1||f===w&&E===x+1||(C.reset(),R.reset()),this.lastSn=f,this.lastPartIndex=E}},p.onFragLoaded=function(i,v){var C=v.frag,R=v.payload,w=this.initPTS,x=this.unparsedVttFrags;if(C.type===r.PlaylistLevelType.SUBTITLE)if(R.byteLength){if(!Object(N.isFiniteNumber)(w[C.cc])){x.push(v),w.length&&this.hls.trigger(c.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:C,error:new Error("Missing initial subtitle PTS")});return}var A=C.decryptdata;if(A==null||A.key==null||A.method!=="AES-128"){var o=this.tracks[C.level],f=this.vttCCs;f[C.cc]||(f[C.cc]={start:C.start,prevCC:this.prevCC,new:!0},this.prevCC=C.cc),o&&o.textCodec===m.IMSC1_CODEC?this._parseIMSC1(C,R):this._parseVTTs(C,R,f)}}else this.hls.trigger(c.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:C,error:new Error("Empty subtitle payload")})},p._parseIMSC1=function(i,v){var C=this,R=this.hls;Object(m.parseIMSC1)(v,this.initPTS[i.cc],this.timescale[i.cc],function(w){C._appendCues(w,i.level),R.trigger(c.Events.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:i})},function(w){h.logger.log("Failed to parse IMSC1: "+w),R.trigger(c.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:i,error:w})})},p._parseVTTs=function(i,v,C){var R=this,w=this.hls;Object(g.parseWebVTT)(v,this.initPTS[i.cc],this.timescale[i.cc],C,i.cc,i.start,function(x){R._appendCues(x,i.level),w.trigger(c.Events.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:i})},function(x){R._fallbackToIMSC1(i,v),h.logger.log("Failed to parse VTT cue: "+x),w.trigger(c.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:i,error:x})})},p._fallbackToIMSC1=function(i,v){var C=this,R=this.tracks[i.level];R.textCodec||Object(m.parseIMSC1)(v,this.initPTS[i.cc],this.timescale[i.cc],function(){R.textCodec=m.IMSC1_CODEC,C._parseIMSC1(i,v)},function(){R.textCodec="wvtt"})},p._appendCues=function(i,v){var C=this.hls;if(this.config.renderTextTracksNatively){var R=this.textTracks[v];if(R.mode==="disabled")return;i.forEach(function(A){return Object(e.addCueToTrack)(R,A)})}else{var w=this.tracks[v],x=w.default?"default":"subtitles"+v;C.trigger(c.Events.CUES_PARSED,{type:"subtitles",cues:i,track:x})}},p.onFragDecrypted=function(i,v){var C=v.frag;if(C.type===r.PlaylistLevelType.SUBTITLE){if(!Object(N.isFiniteNumber)(this.initPTS[C.cc])){this.unparsedVttFrags.push(v);return}this.onFragLoaded(c.Events.FRAG_LOADED,v)}},p.onSubtitleTracksCleared=function(){this.tracks=[],this.captionsTracks={}},p.onFragParsingUserdata=function(i,v){var C=this.cea608Parser1,R=this.cea608Parser2;if(!this.enabled||!(C&&R))return;for(var w=0;w<v.samples.length;w++){var x=v.samples[w].bytes;if(x){var A=this.extractCea608Data(x);C.addData(v.samples[w].pts,A[0]),R.addData(v.samples[w].pts,A[1])}}},p.onBufferFlushing=function(i,v){var C=v.startOffset,R=v.endOffset,w=v.endOffsetSubtitles,x=v.type,A=this.media;if(!A||A.currentTime<R)return;if(!x||x==="video"){var o=this.captionsTracks;Object.keys(o).forEach(function(E){return Object(e.removeCuesInRange)(o[E],C,R)})}if(this.config.renderTextTracksNatively&&(C===0&&w!==void 0)){var f=this.textTracks;Object.keys(f).forEach(function(E){return Object(e.removeCuesInRange)(f[E],C,w)})}},p.extractCea608Data=function(i){for(var v=i[0]&31,C=2,R=[[],[]],w=0;w<v;w++){var x=i[C++],A=127&i[C++],o=127&i[C++],f=(4&x)!==0,E=3&x;if(A===0&&o===0)continue;f&&((E===0||E===1)&&(R[E].push(A),R[E].push(o)))}return R},s}();function l(s,p){return s&&s.label===p.name&&!(s.textTrack1||s.textTrack2)}function d(s,p,n,i){return Math.min(p,i)-Math.max(s,n)}function y(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!1}}}},"./src/crypt/aes-crypto.ts":function(Z,U,L){"use strict";L.r(U),L.d(U,"default",function(){return N});var N=function(){function c(M,g){this.subtle=void 0,this.aesIV=void 0,this.subtle=M,this.aesIV=g}var u=c.prototype;return u.decrypt=function(g,e){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},e,g)},c}()},"./src/crypt/aes-decryptor.ts":function(Z,U,L){"use strict";L.r(U),L.d(U,"removePadding",function(){return c}),L.d(U,"default",function(){return u});var N=L("./src/utils/typed-array.ts");function c(M){var g=M.byteLength,e=g&&new DataView(M.buffer).getUint8(g-1);return e?Object(N.sliceUint8)(M,0,g-e):M}var u=function(){function M(){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 g=M.prototype;return g.uint8ArrayToUint32Array_=function(m){for(var r=new DataView(m),h=new Uint32Array(4),a=0;a<4;a++)h[a]=r.getUint32(a*4);return h},g.initTable=function(){var m=this.sBox,r=this.invSBox,h=this.subMix,a=h[0],l=h[1],d=h[2],y=h[3],s=this.invSubMix,p=s[0],n=s[1],i=s[2],v=s[3],C=new Uint32Array(256),R=0,w=0,x=0;for(x=0;x<256;x++)x<128?C[x]=x<<1:C[x]=x<<1^283;for(x=0;x<256;x++){var A=w^w<<1^w<<2^w<<3^w<<4;A=A>>>8^A&255^99,m[R]=A,r[A]=R;var o=C[R],f=C[o],E=C[f],O=C[A]*257^A*16843008;a[R]=O<<24|O>>>8,l[R]=O<<16|O>>>16,d[R]=O<<8|O>>>24,y[R]=O,O=E*16843009^f*65537^o*257^R*16843008,p[A]=O<<24|O>>>8,n[A]=O<<16|O>>>16,i[A]=O<<8|O>>>24,v[A]=O,R?(R=o^C[C[C[E^o]]],w^=C[C[w]]):R=w=1}},g.expandKey=function(m){for(var r=this.uint8ArrayToUint32Array_(m),h=!0,a=0;a<r.length&&h;)h=r[a]===this.key[a],a++;if(h)return;this.key=r;var l=this.keySize=r.length;if(l!==4&&l!==6&&l!==8)throw new Error("Invalid aes key size="+l);var d=this.ksRows=(l+6+1)*4,y,s,p=this.keySchedule=new Uint32Array(d),n=this.invKeySchedule=new Uint32Array(d),i=this.sBox,v=this.rcon,C=this.invSubMix,R=C[0],w=C[1],x=C[2],A=C[3],o,f;for(y=0;y<d;y++){if(y<l){o=p[y]=r[y];continue}f=o,y%l===0?(f=f<<8|f>>>24,f=i[f>>>24]<<24|i[f>>>16&255]<<16|i[f>>>8&255]<<8|i[f&255],f^=v[y/l|0]<<24):l>6&&y%l===4&&(f=i[f>>>24]<<24|i[f>>>16&255]<<16|i[f>>>8&255]<<8|i[f&255]),p[y]=o=(p[y-l]^f)>>>0}for(s=0;s<d;s++)y=d-s,s&3?f=p[y]:f=p[y-4],s<4||y<=4?n[s]=f:n[s]=R[i[f>>>24]]^w[i[f>>>16&255]]^x[i[f>>>8&255]]^A[i[f&255]],n[s]=n[s]>>>0},g.networkToHostOrderSwap=function(m){return m<<24|(m&65280)<<8|(m&16711680)>>8|m>>>24},g.decrypt=function(m,r,h){for(var a=this.keySize+6,l=this.invKeySchedule,d=this.invSBox,y=this.invSubMix,s=y[0],p=y[1],n=y[2],i=y[3],v=this.uint8ArrayToUint32Array_(h),C=v[0],R=v[1],w=v[2],x=v[3],A=new Int32Array(m),o=new Int32Array(A.length),f,E,O,S,b,D,P,I,F,K,j,Y,W,Q,ie=this.networkToHostOrderSwap;r<A.length;){for(F=ie(A[r]),K=ie(A[r+1]),j=ie(A[r+2]),Y=ie(A[r+3]),b=F^l[0],D=Y^l[1],P=j^l[2],I=K^l[3],W=4,Q=1;Q<a;Q++)f=s[b>>>24]^p[D>>16&255]^n[P>>8&255]^i[I&255]^l[W],E=s[D>>>24]^p[P>>16&255]^n[I>>8&255]^i[b&255]^l[W+1],O=s[P>>>24]^p[I>>16&255]^n[b>>8&255]^i[D&255]^l[W+2],S=s[I>>>24]^p[b>>16&255]^n[D>>8&255]^i[P&255]^l[W+3],b=f,D=E,P=O,I=S,W=W+4;f=d[b>>>24]<<24^d[D>>16&255]<<16^d[P>>8&255]<<8^d[I&255]^l[W],E=d[D>>>24]<<24^d[P>>16&255]<<16^d[I>>8&255]<<8^d[b&255]^l[W+1],O=d[P>>>24]<<24^d[I>>16&255]<<16^d[b>>8&255]<<8^d[D&255]^l[W+2],S=d[I>>>24]<<24^d[b>>16&255]<<16^d[D>>8&255]<<8^d[P&255]^l[W+3],o[r]=ie(f^C),o[r+1]=ie(S^R),o[r+2]=ie(O^w),o[r+3]=ie(E^x),C=F,R=K,w=j,x=Y,r=r+4}return o.buffer},M}()},"./src/crypt/decrypter.ts":function(Z,U,L){"use strict";L.r(U),L.d(U,"default",function(){return r});var N=L("./src/crypt/aes-crypto.ts"),c=L("./src/crypt/fast-aes-key.ts"),u=L("./src/crypt/aes-decryptor.ts"),M=L("./src/utils/logger.ts"),g=L("./src/utils/mp4-tools.ts"),e=L("./src/utils/typed-array.ts"),m=16,r=function(){function h(l,d,y){var s=y===void 0?{}:y,p=s.removePKCS7Padding,n=p===void 0?!0:p;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=l,this.config=d,this.removePKCS7Padding=n,n)try{var i=self.crypto;i&&(this.subtle=i.subtle||i.webkitSubtle)}catch(v){}this.subtle===null&&(this.config.enableSoftwareAES=!0)}var a=h.prototype;return a.destroy=function(){this.observer=null},a.isSync=function(){return this.config.enableSoftwareAES},a.flush=function(){var d=this.currentResult;if(!d){this.reset();return}var y=new Uint8Array(d);return this.reset(),this.removePKCS7Padding?Object(u.removePadding)(y):y},a.reset=function(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)},a.decrypt=function(d,y,s,p){if(this.config.enableSoftwareAES){this.softwareDecrypt(new Uint8Array(d),y,s);var n=this.flush();n&&p(n.buffer)}else this.webCryptoDecrypt(new Uint8Array(d),y,s).then(p)},a.softwareDecrypt=function(d,y,s){var p=this.currentIV,n=this.currentResult,i=this.remainderData;this.logOnce("JS AES decrypt"),i&&(d=Object(g.appendUint8Array)(i,d),this.remainderData=null);var v=this.getValidChunk(d);if(!v.length)return null;p&&(s=p);var C=this.softwareDecrypter;C||(C=this.softwareDecrypter=new u.default),C.expandKey(y);var R=n;return this.currentResult=C.decrypt(v.buffer,0,s),this.currentIV=Object(e.sliceUint8)(v,-16).buffer,R||null},a.webCryptoDecrypt=function(d,y,s){var p=this,n=this.subtle;return(this.key!==y||!this.fastAesKey)&&(this.key=y,this.fastAesKey=new c.default(n,y)),this.fastAesKey.expandKey().then(function(i){if(!n)return Promise.reject(new Error("web crypto not initialized"));var v=new N.default(n,s);return v.decrypt(d.buffer,i)}).catch(function(i){return p.onWebCryptoError(i,d,y,s)})},a.onWebCryptoError=function(d,y,s,p){return M.logger.warn("[decrypter.ts]: WebCrypto Error, disable WebCrypto API:",d),this.config.enableSoftwareAES=!0,this.logEnabled=!0,this.softwareDecrypt(y,s,p)},a.getValidChunk=function(d){var y=d,s=d.length-d.length%m;return s!==d.length&&(y=Object(e.sliceUint8)(d,0,s),this.remainderData=Object(e.sliceUint8)(d,s)),y},a.logOnce=function(d){if(!this.logEnabled)return;M.logger.log("[decrypter.ts]: "+d),this.logEnabled=!1},h}()},"./src/crypt/fast-aes-key.ts":function(Z,U,L){"use strict";L.r(U),L.d(U,"default",function(){return N});var N=function(){function c(M,g){this.subtle=void 0,this.key=void 0,this.subtle=M,this.key=g}var u=c.prototype;return u.expandKey=function(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])},c}()},"./src/demux/aacdemuxer.ts":function(Z,U,L){"use strict";L.r(U);var N=L("./src/demux/base-audio-demuxer.ts"),c=L("./src/demux/adts.ts"),u=L("./src/utils/logger.ts"),M=L("./src/demux/id3.ts");function g(r,h){r.prototype=Object.create(h.prototype),r.prototype.constructor=r,e(r,h)}function e(r,h){return e=Object.setPrototypeOf||function(l,d){return l.__proto__=d,l},e(r,h)}var m=function(r){g(h,r);function h(l,d){var y;return y=r.call(this)||this,y.observer=void 0,y.config=void 0,y.observer=l,y.config=d,y}var a=h.prototype;return a.resetInitSegment=function(d,y,s){r.prototype.resetInitSegment.call(this,d,y,s),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!0,samples:[],manifestCodec:d,duration:s,inputTimeScale:9e4,dropped:0}},h.probe=function(d){if(!d)return!1;for(var y=M.getID3Data(d,0)||[],s=y.length,p=d.length;s<p;s++)if(c.probe(d,s))return u.logger.log("ADTS sync word found !"),!0;return!1},a.canParse=function(d,y){return c.canParse(d,y)},a.appendFrame=function(d,y,s){c.initTrackConfig(d,this.observer,y,s,d.manifestCodec);var p=c.appendFrame(d,y,s,this.initPTS,this.frameIndex);if(p&&p.missing===0)return p},h}(N.default);m.minProbeByteLength=9,U.default=m},"./src/demux/adts.ts":function(Z,U,L){"use strict";L.r(U),L.d(U,"getAudioConfig",function(){return M}),L.d(U,"isHeaderPattern",function(){return g}),L.d(U,"getHeaderLength",function(){return e}),L.d(U,"getFullFrameLength",function(){return m}),L.d(U,"canGetFrameLength",function(){return r}),L.d(U,"isHeader",function(){return h}),L.d(U,"canParse",function(){return a}),L.d(U,"probe",function(){return l}),L.d(U,"initTrackConfig",function(){return d}),L.d(U,"getFrameDuration",function(){return y}),L.d(U,"parseFrameHeader",function(){return s}),L.d(U,"appendFrame",function(){return p});var N=L("./src/utils/logger.ts"),c=L("./src/errors.ts"),u=L("./src/events.ts");function M(n,i,v,C){var R,w,x,A,o=navigator.userAgent.toLowerCase(),f=C,E=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];R=((i[v+2]&192)>>>6)+1;var O=(i[v+2]&60)>>>2;if(O>E.length-1){n.trigger(u.Events.ERROR,{type:c.ErrorTypes.MEDIA_ERROR,details:c.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+O});return}return x=(i[v+2]&1)<<2,x|=(i[v+3]&192)>>>6,N.logger.log("manifest codec:"+C+", ADTS type:"+R+", samplingIndex:"+O),/firefox/i.test(o)?O>=6?(R=5,A=new Array(4),w=O-3):(R=2,A=new Array(2),w=O):o.indexOf("android")!==-1?(R=2,A=new Array(2),w=O):(R=5,A=new Array(4),C&&(C.indexOf("mp4a.40.29")!==-1||C.indexOf("mp4a.40.5")!==-1)||!C&&O>=6?w=O-3:((C&&C.indexOf("mp4a.40.2")!==-1&&(O>=6&&x===1||/vivaldi/i.test(o))||!C&&x===1)&&(R=2,A=new Array(2)),w=O)),A[0]=R<<3,A[0]|=(O&14)>>1,A[1]|=(O&1)<<7,A[1]|=x<<3,R===5&&(A[1]|=(w&14)>>1,A[2]=(w&1)<<7,A[2]|=2<<2,A[3]=0),{config:A,samplerate:E[O],channelCount:x,codec:"mp4a.40."+R,manifestCodec:f}}function g(n,i){return n[i]===255&&(n[i+1]&246)===240}function e(n,i){return n[i+1]&1?7:9}function m(n,i){return(n[i+3]&3)<<11|n[i+4]<<3|(n[i+5]&224)>>>5}function r(n,i){return i+5<n.length}function h(n,i){return i+1<n.length&&g(n,i)}function a(n,i){return r(n,i)&&g(n,i)&&m(n,i)<=n.length-i}function l(n,i){if(h(n,i)){var v=e(n,i);if(i+v>=n.length)return!1;var C=m(n,i);if(C<=v)return!1;var R=i+C;return R===n.length||h(n,R)}return!1}function d(n,i,v,C,R){if(!n.samplerate){var w=M(i,v,C,R);if(!w)return;n.config=w.config,n.samplerate=w.samplerate,n.channelCount=w.channelCount,n.codec=w.codec,n.manifestCodec=w.manifestCodec,N.logger.log("parsed codec:"+n.codec+", rate:"+w.samplerate+", channels:"+w.channelCount)}}function y(n){return 1024*9e4/n}function s(n,i,v,C,R){var w=e(n,i),x=m(n,i);if(x-=w,x>0){var A=v+C*R;return{headerLength:w,frameLength:x,stamp:A}}}function p(n,i,v,C,R){var w=y(n.samplerate),x=s(i,v,C,R,w);if(x){var A=x.frameLength,o=x.headerLength,f=x.stamp,E=o+A,O=Math.max(0,v+E-i.length),S;O?(S=new Uint8Array(E-o),S.set(i.subarray(v+o,i.length),0)):S=i.subarray(v+o,v+E);var b={unit:S,pts:f};return O||n.samples.push(b),{sample:b,length:E,missing:O}}}},"./src/demux/base-audio-demuxer.ts":function(Z,U,L){"use strict";L.r(U),L.d(U,"initPTSFn",function(){return m});var N=L("./src/polyfills/number.ts"),c=L("./src/demux/id3.ts"),u=L("./src/demux/dummy-demuxed-track.ts"),M=L("./src/utils/mp4-tools.ts"),g=L("./src/utils/typed-array.ts"),e=function(){function r(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.initPTS=null}var h=r.prototype;return h.resetInitSegment=function(l,d,y){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}},h.resetTimeStamp=function(){},h.resetContiguity=function(){},h.canParse=function(l,d){return!1},h.appendFrame=function(l,d,y){},h.demux=function(l,d){this.cachedData&&(l=Object(M.appendUint8Array)(this.cachedData,l),this.cachedData=null);var y=c.getID3Data(l,0),s=y?y.length:0,p,n,i=this._audioTrack,v=this._id3Track,C=y?c.getTimeStamp(y):void 0,R=l.length;for((this.frameIndex===0||this.initPTS===null)&&(this.initPTS=m(C,d)),y&&y.length>0&&v.samples.push({pts:this.initPTS,dts:this.initPTS,data:y}),n=this.initPTS;s<R;){if(this.canParse(l,s)){var w=this.appendFrame(i,l,s);w?(this.frameIndex++,n=w.sample.pts,s+=w.length,p=s):s=R}else c.canParse(l,s)?(y=c.getID3Data(l,s),v.samples.push({pts:n,dts:n,data:y}),s+=y.length,p=s):s++;if(s===R&&p!==R){var x=Object(g.sliceUint8)(l,p);this.cachedData?this.cachedData=Object(M.appendUint8Array)(this.cachedData,x):this.cachedData=x}}return{audioTrack:i,avcTrack:Object(u.dummyTrack)(),id3Track:v,textTrack:Object(u.dummyTrack)()}},h.demuxSampleAes=function(l,d,y){return Promise.reject(new Error("["+this+"] This demuxer does not support Sample-AES decryption"))},h.flush=function(l){var d=this.cachedData;return d&&(this.cachedData=null,this.demux(d,0)),this.frameIndex=0,{audioTrack:this._audioTrack,avcTrack:Object(u.dummyTrack)(),id3Track:this._id3Track,textTrack:Object(u.dummyTrack)()}},h.destroy=function(){},r}(),m=function(h,a){return Object(N.isFiniteNumber)(h)?h*90:a*9e4};U.default=e},"./src/demux/chunk-cache.ts":function(Z,U,L){"use strict";L.r(U),L.d(U,"default",function(){return N});var N=function(){function u(){this.chunks=[],this.dataLength=0}var M=u.prototype;return M.push=function(e){this.chunks.push(e),this.dataLength+=e.length},M.flush=function(){var e=this.chunks,m=this.dataLength,r;if(e.length)e.length===1?r=e[0]:r=c(e,m);else return new Uint8Array(0);return this.reset(),r},M.reset=function(){this.chunks.length=0,this.dataLength=0},u}();function c(u,M){for(var g=new Uint8Array(M),e=0,m=0;m<u.length;m++){var r=u[m];g.set(r,e),e+=r.length}return g}},"./src/demux/dummy-demuxed-track.ts":function(Z,U,L){"use strict";L.r(U),L.d(U,"dummyTrack",function(){return N});function N(){return{type:"",id:-1,pid:-1,inputTimeScale:9e4,sequenceNumber:-1,samples:[],dropped:0}}},"./src/demux/exp-golomb.ts":function(Z,U,L){"use strict";L.r(U);var N=L("./src/utils/logger.ts"),c=function(){function u(g){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=g,this.bytesAvailable=g.byteLength,this.word=0,this.bitsAvailable=0}var M=u.prototype;return M.loadWord=function(){var e=this.data,m=this.bytesAvailable,r=e.byteLength-m,h=new Uint8Array(4),a=Math.min(4,m);if(a===0)throw new Error("no bytes available");h.set(e.subarray(r,r+a)),this.word=new DataView(h.buffer).getUint32(0),this.bitsAvailable=a*8,this.bytesAvailable-=a},M.skipBits=function(e){var m;this.bitsAvailable>e?(this.word<<=e,this.bitsAvailable-=e):(e-=this.bitsAvailable,m=e>>3,e-=m>>3,this.bytesAvailable-=m,this.loadWord(),this.word<<=e,this.bitsAvailable-=e)},M.readBits=function(e){var m=Math.min(this.bitsAvailable,e),r=this.word>>>32-m;return e>32&&N.logger.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=m,this.bitsAvailable>0?this.word<<=m:this.bytesAvailable>0&&this.loadWord(),m=e-m,m>0&&this.bitsAvailable?r<<m|this.readBits(m):r},M.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()},M.skipUEG=function(){this.skipBits(1+this.skipLZ())},M.skipEG=function(){this.skipBits(1+this.skipLZ())},M.readUEG=function(){var e=this.skipLZ();return this.readBits(e+1)-1},M.readEG=function(){var e=this.readUEG();return 1&e?1+e>>>1:-1*(e>>>1)},M.readBoolean=function(){return this.readBits(1)===1},M.readUByte=function(){return this.readBits(8)},M.readUShort=function(){return this.readBits(16)},M.readUInt=function(){return this.readBits(32)},M.skipScalingList=function(e){for(var m=8,r=8,h,a=0;a<e;a++)r!==0&&(h=this.readEG(),r=(m+h+256)%256),m=r===0?m:r},M.readSPS=function(){var e=0,m=0,r=0,h=0,a,l,d,y=this.readUByte.bind(this),s=this.readBits.bind(this),p=this.readUEG.bind(this),n=this.readBoolean.bind(this),i=this.skipBits.bind(this),v=this.skipEG.bind(this),C=this.skipUEG.bind(this),R=this.skipScalingList.bind(this);y();var w=y();if(s(5),i(3),y(),C(),w===100||w===110||w===122||w===244||w===44||w===83||w===86||w===118||w===128){var x=p();if(x===3&&i(1),C(),C(),i(1),n())for(l=x!==3?8:12,d=0;d<l;d++)n()&&(d<6?R(16):R(64))}C();var A=p();if(A===0)p();else if(A===1)for(i(1),v(),v(),a=p(),d=0;d<a;d++)v();C(),i(1);var o=p(),f=p(),E=s(1);E===0&&i(1),i(1),n()&&(e=p(),m=p(),r=p(),h=p());var O=[1,1];if(n()&&n()){var S=y();switch(S){case 1:O=[1,1];break;case 2:O=[12,11];break;case 3:O=[10,11];break;case 4:O=[16,11];break;case 5:O=[40,33];break;case 6:O=[24,11];break;case 7:O=[20,11];break;case 8:O=[32,11];break;case 9:O=[80,33];break;case 10:O=[18,11];break;case 11:O=[15,11];break;case 12:O=[64,33];break;case 13:O=[160,99];break;case 14:O=[4,3];break;case 15:O=[3,2];break;case 16:O=[2,1];break;case 255:{O=[y()<<8|y(),y()<<8|y()];break}}}return{width:Math.ceil((o+1)*16-e*2-m*2),height:(2-E)*(f+1)*16-(E?2:4)*(r+h),pixelRatio:O}},M.readSliceType=function(){return this.readUByte(),this.readUEG(),this.readUEG()},u}();U.default=c},"./src/demux/id3.ts":function(Z,U,L){"use strict";L.r(U),L.d(U,"isHeader",function(){return N}),L.d(U,"isFooter",function(){return c}),L.d(U,"getID3Data",function(){return u}),L.d(U,"canParse",function(){return g}),L.d(U,"getTimeStamp",function(){return e}),L.d(U,"isTimeStampFrame",function(){return m}),L.d(U,"getID3Frames",function(){return h}),L.d(U,"decodeFrame",function(){return a}),L.d(U,"utf8ArrayToStr",function(){return p}),L.d(U,"testables",function(){return n});var N=function(R,w){return w+10<=R.length&&(R[w]===73&&R[w+1]===68&&R[w+2]===51&&(R[w+3]<255&&R[w+4]<255&&(R[w+6]<128&&R[w+7]<128&&R[w+8]<128&&R[w+9]<128)))},c=function(R,w){return w+10<=R.length&&(R[w]===51&&R[w+1]===68&&R[w+2]===73&&(R[w+3]<255&&R[w+4]<255&&(R[w+6]<128&&R[w+7]<128&&R[w+8]<128&&R[w+9]<128)))},u=function(R,w){for(var x=w,A=0;N(R,w);){A+=10;var o=M(R,w+6);A+=o,c(R,w+10)&&(A+=10),w+=A}return A>0?R.subarray(x,x+A):void 0},M=function(R,w){var x=0;return x=(R[w]&127)<<21,x|=(R[w+1]&127)<<14,x|=(R[w+2]&127)<<7,x|=R[w+3]&127,x},g=function(R,w){return N(R,w)&&M(R,w+6)+10<=R.length-w},e=function(R){for(var w=h(R),x=0;x<w.length;x++){var A=w[x];if(m(A))return s(A)}return},m=function(R){return R&&R.key==="PRIV"&&R.info==="com.apple.streaming.transportStreamTimestamp"},r=function(R){var w=String.fromCharCode(R[0],R[1],R[2],R[3]),x=M(R,4),A=10;return{type:w,size:x,data:R.subarray(A,A+x)}},h=function(R){for(var w=0,x=[];N(R,w);){var A=M(R,w+6);w+=10;for(var o=w+A;w+8<o;){var f=r(R.subarray(w)),E=a(f);E&&x.push(E),w+=f.size+10}c(R,w)&&(w+=10)}return x},a=function(R){return R.type==="PRIV"?l(R):R.type[0]==="W"?y(R):d(R)},l=function(R){if(R.size<2)return;var w=p(R.data,!0),x=new Uint8Array(R.data.subarray(w.length+1));return{key:R.type,info:w,data:x.buffer}},d=function(R){if(R.size<2)return;if(R.type==="TXXX"){var w=1,x=p(R.data.subarray(w),!0);w+=x.length+1;var A=p(R.data.subarray(w));return{key:R.type,info:x,data:A}}var o=p(R.data.subarray(1));return{key:R.type,data:o}},y=function(R){if(R.type==="WXXX"){if(R.size<2)return;var w=1,x=p(R.data.subarray(w),!0);w+=x.length+1;var A=p(R.data.subarray(w));return{key:R.type,info:x,data:A}}var o=p(R.data);return{key:R.type,data:o}},s=function(R){if(R.data.byteLength===8){var w=new Uint8Array(R.data),x=w[3]&1,A=(w[4]<<23)+(w[5]<<15)+(w[6]<<7)+w[7];return A/=45,x&&(A+=4772185884e-2),Math.round(A)}return},p=function(R,w){w===void 0&&(w=!1);var x=v();if(x){var A=x.decode(R);if(w){var o=A.indexOf("\0");return o!==-1?A.substring(0,o):A}return A.replace(/\0/g,"")}for(var f=R.length,E,O,S,b="",D=0;D<f;){if(E=R[D++],E===0&&w)return b;if(E===0||E===3)continue;switch(E>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:b+=String.fromCharCode(E);break;case 12:case 13:O=R[D++],b+=String.fromCharCode((E&31)<<6|O&63);break;case 14:O=R[D++],S=R[D++],b+=String.fromCharCode((E&15)<<12|(O&63)<<6|(S&63)<<0);break;default:}}return b},n={decodeTextFrame:d},i;function v(){return!i&&typeof self.TextDecoder!="undefined"&&(i=new self.TextDecoder("utf-8")),i}},"./src/demux/mp3demuxer.ts":function(Z,U,L){"use strict";L.r(U);var N=L("./src/demux/base-audio-demuxer.ts"),c=L("./src/demux/id3.ts"),u=L("./src/utils/logger.ts"),M=L("./src/demux/mpegaudio.ts");function g(r,h){r.prototype=Object.create(h.prototype),r.prototype.constructor=r,e(r,h)}function e(r,h){return e=Object.setPrototypeOf||function(l,d){return l.__proto__=d,l},e(r,h)}var m=function(r){g(h,r);function h(){return r.apply(this,arguments)||this}var a=h.prototype;return a.resetInitSegment=function(d,y,s){r.prototype.resetInitSegment.call(this,d,y,s),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!1,samples:[],manifestCodec:d,duration:s,inputTimeScale:9e4,dropped:0}},h.probe=function(d){if(!d)return!1;for(var y=c.getID3Data(d,0)||[],s=y.length,p=d.length;s<p;s++)if(M.probe(d,s))return u.logger.log("MPEG Audio sync word found !"),!0;return!1},a.canParse=function(d,y){return M.canParse(d,y)},a.appendFrame=function(d,y,s){return this.initPTS===null?void 0:M.appendFrame(d,y,s,this.initPTS,this.frameIndex)},h}(N.default);m.minProbeByteLength=4,U.default=m},"./src/demux/mp4demuxer.ts":function(Z,U,L){"use strict";L.r(U);var N=L("./src/utils/mp4-tools.ts"),c=L("./src/demux/dummy-demuxed-track.ts"),u=function(){function M(e,m){this.remainderData=null,this.config=void 0,this.config=m}var g=M.prototype;return g.resetTimeStamp=function(){},g.resetInitSegment=function(){},g.resetContiguity=function(){},M.probe=function(m){return Object(N.findBox)({data:m,start:0,end:Math.min(m.length,16384)},["moof"]).length>0},g.demux=function(m){var r=m,h=Object(c.dummyTrack)();if(this.config.progressive){this.remainderData&&(r=Object(N.appendUint8Array)(this.remainderData,m));var a=Object(N.segmentValidRange)(r);this.remainderData=a.remainder,h.samples=a.valid||new Uint8Array}else h.samples=r;return{audioTrack:Object(c.dummyTrack)(),avcTrack:h,id3Track:Object(c.dummyTrack)(),textTrack:Object(c.dummyTrack)()}},g.flush=function(){var m=Object(c.dummyTrack)();return m.samples=this.remainderData||new Uint8Array,this.remainderData=null,{audioTrack:Object(c.dummyTrack)(),avcTrack:m,id3Track:Object(c.dummyTrack)(),textTrack:Object(c.dummyTrack)()}},g.demuxSampleAes=function(m,r,h){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))},g.destroy=function(){},M}();u.minProbeByteLength=1024,U.default=u},"./src/demux/mpegaudio.ts":function(Z,U,L){"use strict";L.r(U),L.d(U,"appendFrame",function(){return e}),L.d(U,"parseHeader",function(){return m}),L.d(U,"isHeaderPattern",function(){return r}),L.d(U,"isHeader",function(){return h}),L.d(U,"canParse",function(){return a}),L.d(U,"probe",function(){return l});var N=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],u=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],M=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],g=[0,1,1,4];function e(d,y,s,p,n){if(s+24>y.length)return;var i=m(y,s);if(i&&s+i.frameLength<=y.length){var v=i.samplesPerFrame*9e4/i.sampleRate,C=p+n*v,R={unit:y.subarray(s,s+i.frameLength),pts:C,dts:C};return d.config=[],d.channelCount=i.channelCount,d.samplerate=i.sampleRate,d.samples.push(R),{sample:R,length:i.frameLength,missing:0}}}function m(d,y){var s=d[y+1]>>3&3,p=d[y+1]>>1&3,n=d[y+2]>>4&15,i=d[y+2]>>2&3;if(s!==1&&n!==0&&n!==15&&i!==3){var v=d[y+2]>>1&1,C=d[y+3]>>6,R=s===3?3-p:p===3?3:4,w=c[R*14+n-1]*1e3,x=s===3?0:s===2?1:2,A=u[x*3+i],o=C===3?1:2,f=M[s][p],E=g[p],O=f*8*E,S=Math.floor(f*w/A+v)*E;if(N===null){var b=navigator.userAgent||"",D=b.match(/Chrome\/(\d+)/i);N=D?parseInt(D[1]):0}var P=!!N&&N<=87;return P&&p===2&&w>=224e3&&C===0&&(d[y+3]=d[y+3]|128),{sampleRate:A,channelCount:o,frameLength:S,samplesPerFrame:O}}}function r(d,y){return d[y]===255&&(d[y+1]&224)===224&&(d[y+1]&6)!==0}function h(d,y){return y+1<d.length&&r(d,y)}function a(d,y){var s=4;return r(d,y)&&s<=d.length-y}function l(d,y){if(y+1<d.length&&r(d,y)){var s=4,p=m(d,y),n=s;p!=null&&p.frameLength&&(n=p.frameLength);var i=y+n;return i===d.length||h(d,i)}return!1}},"./src/demux/sample-aes.ts":function(Z,U,L){"use strict";L.r(U);var N=L("./src/crypt/decrypter.ts"),c=L("./src/demux/tsdemuxer.ts"),u=function(){function M(e,m,r){this.keyData=void 0,this.decrypter=void 0,this.keyData=r,this.decrypter=new N.default(e,m,{removePKCS7Padding:!1})}var g=M.prototype;return g.decryptBuffer=function(m,r){this.decrypter.decrypt(m,this.keyData.key.buffer,this.keyData.iv.buffer,r)},g.decryptAacSample=function(m,r,h,a){var l=m[r].unit,d=l.subarray(16,l.length-l.length%16),y=d.buffer.slice(d.byteOffset,d.byteOffset+d.length),s=this;this.decryptBuffer(y,function(p){var n=new Uint8Array(p);l.set(n,16),a||s.decryptAacSamples(m,r+1,h)})},g.decryptAacSamples=function(m,r,h){for(;;r++){if(r>=m.length){h();return}if(m[r].unit.length<32)continue;var a=this.decrypter.isSync();if(this.decryptAacSample(m,r,h,a),!a)return}},g.getAvcEncryptedData=function(m){for(var r=Math.floor((m.length-48)/160)*16+16,h=new Int8Array(r),a=0,l=32;l<=m.length-16;l+=160,a+=16)h.set(m.subarray(l,l+16),a);return h},g.getAvcDecryptedUnit=function(m,r){for(var h=new Uint8Array(r),a=0,l=32;l<=m.length-16;l+=160,a+=16)m.set(h.subarray(a,a+16),l);return m},g.decryptAvcSample=function(m,r,h,a,l,d){var y=Object(c.discardEPB)(l.data),s=this.getAvcEncryptedData(y),p=this;this.decryptBuffer(s.buffer,function(n){l.data=p.getAvcDecryptedUnit(y,n),d||p.decryptAvcSamples(m,r,h+1,a)})},g.decryptAvcSamples=function(m,r,h,a){if(m instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;r++,h=0){if(r>=m.length){a();return}for(var l=m[r].units;!(h>=l.length);h++){var d=l[h];if(d.data.length<=48||d.type!==1&&d.type!==5)continue;var y=this.decrypter.isSync();if(this.decryptAvcSample(m,r,h,a,d,y),!y)return}}},M}();U.default=u},"./src/demux/transmuxer-interface.ts":function(Z,U,L){"use strict";L.r(U),L.d(U,"default",function(){return l});var N=L("./node_modules/webworkify-webpack/index.js"),c=L.n(N),u=L("./src/events.ts"),M=L("./src/demux/transmuxer.ts"),g=L("./src/utils/logger.ts"),e=L("./src/errors.ts"),m=L("./src/utils/mediasource-helper.ts"),r=L("./node_modules/eventemitter3/index.js"),h=L.n(r),a=Object(m.getMediaSource)()||{isTypeSupported:function(){return!1}},l=function(){function d(s,p,n,i){var v=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=s,this.id=p,this.onTransmuxComplete=n,this.onFlush=i;var C=s.config,R=function(f,E){E=E||{},E.frag=v.frag,E.id=v.id,s.trigger(f,E)};this.observer=new r.EventEmitter,this.observer.on(u.Events.FRAG_DECRYPTED,R),this.observer.on(u.Events.ERROR,R);var w={mp4:a.isTypeSupported("video/mp4"),mpeg:a.isTypeSupported("audio/mpeg"),mp3:a.isTypeSupported('audio/mp4; codecs="mp3"')},x=navigator.vendor;if(C.enableWorker&&typeof Worker!="undefined"){g.logger.log("demuxing in webworker");var A;try{A=this.worker=N("./src/demux/transmuxer-worker.ts"),this.onwmsg=this.onWorkerMessage.bind(this),A.addEventListener("message",this.onwmsg),A.onerror=function(o){s.trigger(u.Events.ERROR,{type:e.ErrorTypes.OTHER_ERROR,details:e.ErrorDetails.INTERNAL_EXCEPTION,fatal:!0,event:"demuxerWorker",error:new Error(o.message+" ("+o.filename+":"+o.lineno+")")})},A.postMessage({cmd:"init",typeSupported:w,vendor:x,id:p,config:JSON.stringify(C)})}catch(o){g.logger.warn("Error in worker:",o),g.logger.error("Error while initializing DemuxerWorker, fallback to inline"),A&&self.URL.revokeObjectURL(A.objectURL),this.transmuxer=new M.default(this.observer,w,C,x,p),this.worker=null}}else this.transmuxer=new M.default(this.observer,w,C,x,p)}var y=d.prototype;return y.destroy=function(){var p=this.worker;if(p)p.removeEventListener("message",this.onwmsg),p.terminate(),this.worker=null;else{var n=this.transmuxer;n&&(n.destroy(),this.transmuxer=null)}var i=this.observer;i&&i.removeAllListeners(),this.observer=null},y.push=function(p,n,i,v,C,R,w,x,A,o){var f=this;A.transmuxing.start=self.performance.now();var E=this.transmuxer,O=this.worker,S=R?R.start:C.start,b=C.decryptdata,D=this.frag,P=!(D&&C.cc===D.cc),I=!(D&&A.level===D.level),F=D?A.sn-D.sn:-1,K=this.part?A.part-this.part.index:1,j=!I&&(F===1||F===0&&K===1),Y=self.performance.now();(I||F||C.stats.parsing.start===0)&&(C.stats.parsing.start=Y),R&&(K||!j)&&(R.stats.parsing.start=Y);var W=new M.TransmuxState(P,j,x,I,S);if(!j||P){g.logger.log("[transmuxer-interface, "+C.type+"]: Starting new transmux session for sn: "+A.sn+" p: "+A.part+" level: "+A.level+" id: "+A.id+`
discontinuity: `+P+`
trackSwitch: `+I+`
contiguous: `+j+`
accurateTimeOffset: `+x+`
timeOffset: `+S);var Q=new M.TransmuxConfig(i,v,n,w,o);this.configureTransmuxer(Q)}if(this.frag=C,this.part=R,O)O.postMessage({cmd:"demux",data:p,decryptdata:b,chunkMeta:A,state:W},p instanceof ArrayBuffer?[p]:[]);else if(E){var ie=E.push(p,b,A,W);Object(M.isPromise)(ie)?ie.then(function(Ee){f.handleTransmuxComplete(Ee)}):this.handleTransmuxComplete(ie)}},y.flush=function(p){var n=this;p.transmuxing.start=self.performance.now();var i=this.transmuxer,v=this.worker;if(v)v.postMessage({cmd:"flush",chunkMeta:p});else if(i){var C=i.flush(p);Object(M.isPromise)(C)?C.then(function(R){n.handleFlushResult(R,p)}):this.handleFlushResult(C,p)}},y.handleFlushResult=function(p,n){var i=this;p.forEach(function(v){i.handleTransmuxComplete(v)}),this.onFlush(n)},y.onWorkerMessage=function(p){var n=p.data,i=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,i.trigger(n.event,n.data);break}}},y.configureTransmuxer=function(p){var n=this.worker,i=this.transmuxer;n?n.postMessage({cmd:"configure",config:p}):i&&i.configure(p)},y.handleTransmuxComplete=function(p){p.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(p)},d}()},"./src/demux/transmuxer-worker.ts":function(Z,U,L){"use strict";L.r(U),L.d(U,"default",function(){return e});var N=L("./src/demux/transmuxer.ts"),c=L("./src/events.ts"),u=L("./src/utils/logger.ts"),M=L("./node_modules/eventemitter3/index.js"),g=L.n(M);function e(l){var d=new M.EventEmitter,y=function(p,n){l.postMessage({event:p,data:n})};d.on(c.Events.FRAG_DECRYPTED,y),d.on(c.Events.ERROR,y),l.addEventListener("message",function(s){var p=s.data;switch(p.cmd){case"init":{var n=JSON.parse(p.config);l.transmuxer=new N.default(d,p.typeSupported,n,p.vendor,p.id),Object(u.enableLogs)(n.debug),y("init",null);break}case"configure":{l.transmuxer.configure(p.config);break}case"demux":{var i=l.transmuxer.push(p.data,p.decryptdata,p.chunkMeta,p.state);Object(N.isPromise)(i)?i.then(function(R){m(l,R)}):m(l,i);break}case"flush":{var v=p.chunkMeta,C=l.transmuxer.flush(v);Object(N.isPromise)(C)?C.then(function(R){h(l,R,v)}):h(l,C,v);break}default:break}})}function m(l,d){if(a(d.remuxResult))return;var y=[],s=d.remuxResult,p=s.audio,n=s.video;p&&r(y,p),n&&r(y,n),l.postMessage({event:"transmuxComplete",data:d},y)}function r(l,d){d.data1&&l.push(d.data1.buffer),d.data2&&l.push(d.data2.buffer)}function h(l,d,y){d.forEach(function(s){m(l,s)}),l.postMessage({event:"flush",data:y})}function a(l){return!l.audio&&!l.video&&!l.text&&!l.id3&&!l.initSegment}},"./src/demux/transmuxer.ts":function(Z,U,L){"use strict";L.r(U),L.d(U,"default",function(){return n}),L.d(U,"isPromise",function(){return C}),L.d(U,"TransmuxConfig",function(){return R}),L.d(U,"TransmuxState",function(){return w});var N=L("./src/events.ts"),c=L("./src/errors.ts"),u=L("./src/crypt/decrypter.ts"),M=L("./src/demux/aacdemuxer.ts"),g=L("./src/demux/mp4demuxer.ts"),e=L("./src/demux/tsdemuxer.ts"),m=L("./src/demux/mp3demuxer.ts"),r=L("./src/remux/mp4-remuxer.ts"),h=L("./src/remux/passthrough-remuxer.ts"),a=L("./src/demux/chunk-cache.ts"),l=L("./src/utils/mp4-tools.ts"),d=L("./src/utils/logger.ts"),y;try{y=self.performance.now.bind(self.performance)}catch(x){d.logger.debug("Unable to use Performance API on this environment"),y=self.Date.now}var s=[{demux:e.default,remux:r.default},{demux:g.default,remux:h.default},{demux:M.default,remux:r.default},{demux:m.default,remux:r.default}],p=1024;s.forEach(function(x){var A=x.demux;p=Math.max(p,A.minProbeByteLength)});var n=function(){function x(o,f,E,O,S){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 a.default,this.observer=o,this.typeSupported=f,this.config=E,this.vendor=O,this.id=S}var A=x.prototype;return A.configure=function(f){this.transmuxConfig=f,this.decrypter&&this.decrypter.reset()},A.push=function(f,E,O,S){var b=this,D=O.transmuxing;D.executeStart=y();var P=new Uint8Array(f),I=this.cache,F=this.config,K=this.currentTransmuxState,j=this.transmuxConfig;S&&(this.currentTransmuxState=S);var Y=i(P,E);if(Y&&Y.method==="AES-128"){var W=this.getDecrypter();if(F.enableSoftwareAES){var Q=W.softwareDecrypt(P,Y.key.buffer,Y.iv.buffer);if(!Q)return D.executeEnd=y(),v(O);P=new Uint8Array(Q)}else return this.decryptionPromise=W.webCryptoDecrypt(P,Y.key.buffer,Y.iv.buffer).then(function(je){var Je=b.push(je,null,O);return b.decryptionPromise=null,Je}),this.decryptionPromise}var ie=S||K,Ee=ie.contiguous,pe=ie.discontinuity,De=ie.trackSwitch,Me=ie.accurateTimeOffset,Ue=ie.timeOffset,Ie=j.audioCodec,ne=j.videoCodec,B=j.defaultInitPts,z=j.duration,H=j.initSegmentData;if((pe||De)&&this.resetInitSegment(H,Ie,ne,z),pe&&this.resetInitialTimestamp(B),Ee||this.resetContiguity(),this.needsProbing(P,pe,De)){if(I.dataLength){var ee=I.flush();P=Object(l.appendUint8Array)(ee,P)}this.configureTransmuxer(P,j)}var X=this.transmux(P,Y,Ue,Me,O),me=this.currentTransmuxState;return me.contiguous=!0,me.discontinuity=!1,me.trackSwitch=!1,D.executeEnd=y(),X},A.flush=function(f){var E=this,O=f.transmuxing;O.executeStart=y();var S=this.decrypter,b=this.cache,D=this.currentTransmuxState,P=this.decryptionPromise;if(P)return P.then(function(){return E.flush(f)});var I=[],F=D.timeOffset;if(S){var K=S.flush();K&&I.push(this.push(K,null,f))}var j=b.dataLength;b.reset();var Y=this.demuxer,W=this.remuxer;if(!Y||!W)return j>=p&&this.observer.emit(N.Events.ERROR,N.Events.ERROR,{type:c.ErrorTypes.MEDIA_ERROR,details:c.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"}),O.executeEnd=y(),[v(f)];var Q=Y.flush(F);return C(Q)?Q.then(function(ie){return E.flushRemux(I,ie,f),I}):(this.flushRemux(I,Q,f),I)},A.flushRemux=function(f,E,O){var S=E.audioTrack,b=E.avcTrack,D=E.id3Track,P=E.textTrack,I=this.currentTransmuxState,F=I.accurateTimeOffset,K=I.timeOffset;d.logger.log("[transmuxer.ts]: Flushed fragment "+O.sn+(O.part>-1?" p: "+O.part:"")+" of level "+O.level);var j=this.remuxer.remux(S,b,D,P,K,F,!0,this.id);f.push({remuxResult:j,chunkMeta:O}),O.transmuxing.executeEnd=y()},A.resetInitialTimestamp=function(f){var E=this.demuxer,O=this.remuxer;if(!E||!O)return;E.resetTimeStamp(f),O.resetTimeStamp(f)},A.resetContiguity=function(){var f=this.demuxer,E=this.remuxer;if(!f||!E)return;f.resetContiguity(),E.resetNextTimestamp()},A.resetInitSegment=function(f,E,O,S){var b=this.demuxer,D=this.remuxer;if(!b||!D)return;b.resetInitSegment(E,O,S),D.resetInitSegment(f,E,O)},A.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},A.transmux=function(f,E,O,S,b){var D;return E&&E.method==="SAMPLE-AES"?D=this.transmuxSampleAes(f,E,O,S,b):D=this.transmuxUnencrypted(f,O,S,b),D},A.transmuxUnencrypted=function(f,E,O,S){var b=this.demuxer.demux(f,E,!1,!this.config.progressive),D=b.audioTrack,P=b.avcTrack,I=b.id3Track,F=b.textTrack,K=this.remuxer.remux(D,P,I,F,E,O,!1,this.id);return{remuxResult:K,chunkMeta:S}},A.transmuxSampleAes=function(f,E,O,S,b){var D=this;return this.demuxer.demuxSampleAes(f,E,O).then(function(P){var I=D.remuxer.remux(P.audioTrack,P.avcTrack,P.id3Track,P.textTrack,O,S,!1,D.id);return{remuxResult:I,chunkMeta:b}})},A.configureTransmuxer=function(f,E){for(var O=this.config,S=this.observer,b=this.typeSupported,D=this.vendor,P=E.audioCodec,I=E.defaultInitPts,F=E.duration,K=E.initSegmentData,j=E.videoCodec,Y,W=0,Q=s.length;W<Q;W++)if(s[W].demux.probe(f)){Y=s[W];break}Y||(d.logger.warn("Failed to find demuxer by probing frag, treating as mp4 passthrough"),Y={demux:g.default,remux:h.default});var ie=this.demuxer,Ee=this.remuxer,pe=Y.remux,De=Y.demux;(!Ee||!(Ee instanceof pe))&&(this.remuxer=new pe(S,O,b,D)),(!ie||!(ie instanceof De))&&(this.demuxer=new De(S,O,b),this.probe=De.probe),this.resetInitSegment(K,P,j,F),this.resetInitialTimestamp(I)},A.needsProbing=function(f,E,O){return!this.demuxer||!this.remuxer||E||O},A.getDecrypter=function(){var f=this.decrypter;return f||(f=this.decrypter=new u.default(this.observer,this.config)),f},x}();function i(x,A){var o=null;return x.byteLength>0&&A!=null&&A.key!=null&&A.iv!==null&&A.method!=null&&(o=A),o}var v=function(A){return{remuxResult:{},chunkMeta:A}};function C(x){return"then"in x&&x.then instanceof Function}var R=function(A,o,f,E,O){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=A,this.videoCodec=o,this.initSegmentData=f,this.duration=E,this.defaultInitPts=O},w=function(A,o,f,E,O){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.discontinuity=A,this.contiguous=o,this.accurateTimeOffset=f,this.trackSwitch=E,this.timeOffset=O}},"./src/demux/tsdemuxer.ts":function(Z,U,L){"use strict";L.r(U),L.d(U,"discardEPB",function(){return v});var N=L("./src/demux/adts.ts"),c=L("./src/demux/mpegaudio.ts"),u=L("./src/demux/exp-golomb.ts"),M=L("./src/demux/id3.ts"),g=L("./src/demux/sample-aes.ts"),e=L("./src/events.ts"),m=L("./src/utils/mp4-tools.ts"),r=L("./src/utils/logger.ts"),h=L("./src/errors.ts"),a={video:1,audio:2,id3:3,text:4},l=function(){function C(w,x,A){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=w,this.config=x,this.typeSupported=A}C.probe=function(x){var A=C.syncOffset(x);return A<0?!1:(A&&r.logger.warn("MPEG2-TS detected but first sync word found @ offset "+A+", junk ahead ?"),!0)},C.syncOffset=function(x){for(var A=Math.min(1e3,x.length-3*188),o=0;o<A;){if(x[o]===71&&x[o+188]===71&&x[o+2*188]===71)return o;o++}return-1},C.createTrack=function(x,A){return{container:x==="video"||x==="audio"?"video/mp2t":void 0,type:x,id:a[x],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:x==="audio"?A:void 0}};var R=C.prototype;return R.resetInitSegment=function(x,A,o){this.pmtParsed=!1,this._pmtId=-1,this._avcTrack=C.createTrack("video",o),this._audioTrack=C.createTrack("audio",o),this._id3Track=C.createTrack("id3",o),this._txtTrack=C.createTrack("text",o),this._audioTrack.isAAC=!0,this.aacOverFlow=null,this.aacLastPTS=null,this.avcSample=null,this.audioCodec=x,this.videoCodec=A,this._duration=o},R.resetTimeStamp=function(){},R.resetContiguity=function(){var x=this._audioTrack,A=this._avcTrack,o=this._id3Track;x&&(x.pesData=null),A&&(A.pesData=null),o&&(o.pesData=null),this.aacOverFlow=null,this.aacLastPTS=null},R.demux=function(x,A,o,f){o===void 0&&(o=!1),f===void 0&&(f=!1),o||(this.sampleAes=null);var E,O=this._avcTrack,S=this._audioTrack,b=this._id3Track,D=O.pid,P=O.pesData,I=S.pid,F=b.pid,K=S.pesData,j=b.pesData,Y=!1,W=this.pmtParsed,Q=this._pmtId,ie=x.length;if(this.remainderData&&(x=Object(m.appendUint8Array)(this.remainderData,x),ie=x.length,this.remainderData=null),ie<188&&!f)return this.remainderData=x,{audioTrack:S,avcTrack:O,id3Track:b,textTrack:this._txtTrack};var Ee=Math.max(0,C.syncOffset(x));ie-=(ie+Ee)%188,ie<x.byteLength&&!f&&(this.remainderData=new Uint8Array(x.buffer,ie,x.buffer.byteLength-ie));for(var pe=Ee;pe<ie;pe+=188)if(x[pe]===71){var De=!!(x[pe+1]&64),Me=((x[pe+1]&31)<<8)+x[pe+2],Ue=(x[pe+3]&48)>>4,Ie=void 0;if(Ue>1){if(Ie=pe+5+x[pe+4],Ie===pe+188)continue}else Ie=pe+4;switch(Me){case D:De&&(P&&(E=p(P))&&this.parseAVCPES(E,!1),P={data:[],size:0}),P&&(P.data.push(x.subarray(Ie,pe+188)),P.size+=pe+188-Ie);break;case I:De&&(K&&(E=p(K))&&(S.isAAC?this.parseAACPES(E):this.parseMPEGPES(E)),K={data:[],size:0}),K&&(K.data.push(x.subarray(Ie,pe+188)),K.size+=pe+188-Ie);break;case F:De&&(j&&(E=p(j))&&this.parseID3PES(E),j={data:[],size:0}),j&&(j.data.push(x.subarray(Ie,pe+188)),j.size+=pe+188-Ie);break;case 0:De&&(Ie+=x[Ie]+1),Q=this._pmtId=y(x,Ie);break;case Q:{De&&(Ie+=x[Ie]+1);var ne=s(x,Ie,this.typeSupported.mpeg===!0||this.typeSupported.mp3===!0,o);D=ne.avc,D>0&&(O.pid=D),I=ne.audio,I>0&&(S.pid=I,S.isAAC=ne.isAAC),F=ne.id3,F>0&&(b.pid=F),Y&&!W&&(r.logger.log("reparse from beginning"),Y=!1,pe=Ee-188),W=this.pmtParsed=!0;break}case 17:case 8191:break;default:Y=!0;break}}else this.observer.emit(e.Events.ERROR,e.Events.ERROR,{type:h.ErrorTypes.MEDIA_ERROR,details:h.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});O.pesData=P,S.pesData=K,b.pesData=j;var B={audioTrack:S,avcTrack:O,id3Track:b,textTrack:this._txtTrack};return f&&this.extractRemainingSamples(B),B},R.flush=function(){var x=this.remainderData;this.remainderData=null;var A;return x?A=this.demux(x,-1,!1,!0):A={audioTrack:this._audioTrack,avcTrack:this._avcTrack,textTrack:this._txtTrack,id3Track:this._id3Track},this.extractRemainingSamples(A),this.sampleAes?this.decrypt(A,this.sampleAes):A},R.extractRemainingSamples=function(x){var A=x.audioTrack,o=x.avcTrack,f=x.id3Track,E=o.pesData,O=A.pesData,S=f.pesData,b;E&&(b=p(E))?(this.parseAVCPES(b,!0),o.pesData=null):o.pesData=E,O&&(b=p(O))?(A.isAAC?this.parseAACPES(b):this.parseMPEGPES(b),A.pesData=null):(O!=null&&O.size&&r.logger.log("last AAC PES packet truncated,might overlap between fragments"),A.pesData=O),S&&(b=p(S))?(this.parseID3PES(b),f.pesData=null):f.pesData=S},R.demuxSampleAes=function(x,A,o){var f=this.demux(x,o,!0,!this.config.progressive),E=this.sampleAes=new g.default(this.observer,this.config,A);return this.decrypt(f,E)},R.decrypt=function(x,A){return new Promise(function(o){var f=x.audioTrack,E=x.avcTrack;f.samples&&f.isAAC?A.decryptAacSamples(f.samples,0,function(){E.samples?A.decryptAvcSamples(E.samples,0,0,function(){o(x)}):o(x)}):E.samples&&A.decryptAvcSamples(E.samples,0,0,function(){o(x)})})},R.destroy=function(){this._initPTS=this._initDTS=null,this._duration=0},R.parseAVCPES=function(x,A){var o=this,f=this._avcTrack,E=this.parseAVCNALu(x.data),O=!1,S=this.avcSample,b,D=!1;x.data=null,S&&E.length&&!f.audFound&&(n(S,f),S=this.avcSample=d(!1,x.pts,x.dts,"")),E.forEach(function(P){switch(P.type){case 1:{b=!0,S||(S=o.avcSample=d(!0,x.pts,x.dts,"")),O&&(S.debug+="NDR "),S.frame=!0;var I=P.data;if(D&&I.length>4){var F=new u.default(I).readSliceType();(F===2||F===4||F===7||F===9)&&(S.key=!0)}break}case 5:b=!0,S||(S=o.avcSample=d(!0,x.pts,x.dts,"")),O&&(S.debug+="IDR "),S.key=!0,S.frame=!0;break;case 6:{b=!0,O&&S&&(S.debug+="SEI ");var K=new u.default(v(P.data));K.readUByte();for(var j=0,Y=0,W=!1,Q=0;!W&&K.bytesAvailable>1;){j=0;do Q=K.readUByte(),j+=Q;while(Q===255);Y=0;do Q=K.readUByte(),Y+=Q;while(Q===255);if(j===4&&K.bytesAvailable!==0){W=!0;var ie=K.readUByte();if(ie===181){var Ee=K.readUShort();if(Ee===49){var pe=K.readUInt();if(pe===1195456820){var De=K.readUByte();if(De===3){for(var Me=K.readUByte(),Ue=K.readUByte(),Ie=31&Me,ne=[Me,Ue],B=0;B<Ie;B++)ne.push(K.readUByte()),ne.push(K.readUByte()),ne.push(K.readUByte());i(o._txtTrack.samples,{type:3,pts:x.pts,bytes:ne})}}}}}else if(j===5&&K.bytesAvailable!==0){if(W=!0,Y>16){for(var z=[],H=0;H<16;H++)z.push(K.readUByte().toString(16)),(H===3||H===5||H===7||H===9)&&z.push("-");for(var ee=Y-16,X=new Uint8Array(ee),me=0;me<ee;me++)X[me]=K.readUByte();i(o._txtTrack.samples,{pts:x.pts,payloadType:j,uuid:z.join(""),userData:Object(M.utf8ArrayToStr)(X),userDataBytes:X})}}else if(Y<K.bytesAvailable)for(var je=0;je<Y;je++)K.readUByte()}break}case 7:if(b=!0,D=!0,O&&S&&(S.debug+="SPS "),!f.sps){var Je=new u.default(P.data),oe=Je.readSPS();f.width=oe.width,f.height=oe.height,f.pixelRatio=oe.pixelRatio,f.sps=[P.data],f.duration=o._duration;for(var Ae=P.data.subarray(1,4),ye="avc1.",Le=0;Le<3;Le++){var We=Ae[Le].toString(16);We.length<2&&(We="0"+We),ye+=We}f.codec=ye}break;case 8:b=!0,O&&S&&(S.debug+="PPS "),f.pps||(f.pps=[P.data]);break;case 9:b=!1,f.audFound=!0,S&&n(S,f),S=o.avcSample=d(!1,x.pts,x.dts,O?"AUD ":"");break;case 12:b=!1;break;default:b=!1,S&&(S.debug+="unknown NAL "+P.type+" ");break}if(S&&b){var Xe=S.units;Xe.push(P)}}),A&&S&&(n(S,f),this.avcSample=null)},R.getLastNalUnit=function(){var x,A=this.avcSample,o;if(!A||A.units.length===0){var f=this._avcTrack.samples;A=f[f.length-1]}if((x=A)!==null&&x!==void 0&&x.units){var E=A.units;o=E[E.length-1]}return o},R.parseAVCNALu=function(x){var A=x.byteLength,o=this._avcTrack,f=o.naluState||0,E=f,O=[],S=0,b,D,P,I=-1,F=0;for(f===-1&&(I=0,F=x[0]&31,f=0,S=1);S<A;){if(b=x[S++],!f){f=b?0:1;continue}if(f===1){f=b?0:2;continue}if(!b)f=3;else if(b===1){if(I>=0){var K={data:x.subarray(I,S-f-1),type:F};O.push(K)}else{var j=this.getLastNalUnit();if(j&&(E&&S<=4-E&&(j.state&&(j.data=j.data.subarray(0,j.data.byteLength-E))),D=S-f-1,D>0)){var Y=new Uint8Array(j.data.byteLength+D);Y.set(j.data,0),Y.set(x.subarray(0,D),j.data.byteLength),j.data=Y,j.state=0}}S<A?(P=x[S]&31,I=S,F=P,f=0):f=-1}else f=0}if(I>=0&&f>=0){var W={data:x.subarray(I,A),type:F,state:f};O.push(W)}if(O.length===0){var Q=this.getLastNalUnit();if(Q){var ie=new Uint8Array(Q.data.byteLength+x.byteLength);ie.set(Q.data,0),ie.set(x,Q.data.byteLength),Q.data=ie}}return o.naluState=f,O},R.parseAACPES=function(x){var A=0,o=this._audioTrack,f=this.aacOverFlow,E=x.data;if(f){this.aacOverFlow=null;var O=f.sample.unit.byteLength,S=Math.min(f.missing,O),b=O-S;f.sample.unit.set(E.subarray(0,S),b),o.samples.push(f.sample),A=f.missing}var D,P;for(D=A,P=E.length;D<P-1&&!N.isHeader(E,D);D++);if(D!==A){var I,F;if(D<P-1?(I="AAC PES did not start with ADTS header,offset:"+D,F=!1):(I="no ADTS header found in AAC PES",F=!0),r.logger.warn("parsing error:"+I),this.observer.emit(e.Events.ERROR,e.Events.ERROR,{type:h.ErrorTypes.MEDIA_ERROR,details:h.ErrorDetails.FRAG_PARSING_ERROR,fatal:F,reason:I}),F)return}N.initTrackConfig(o,this.observer,E,D,this.audioCodec);var K;if(x.pts!==void 0)K=x.pts;else if(f){var j=N.getFrameDuration(o.samplerate);K=f.sample.pts+j}else{r.logger.warn("[tsdemuxer]: AAC PES unknown PTS");return}for(var Y=0;D<P;)if(N.isHeader(E,D)){if(D+5<P){var W=N.appendFrame(o,E,D,K,Y);if(W)if(W.missing)this.aacOverFlow=W;else{D+=W.length,Y++;continue}}break}else D++},R.parseMPEGPES=function(x){var A=x.data,o=A.length,f=0,E=0,O=x.pts;if(O===void 0){r.logger.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;E<o;)if(c.isHeader(A,E)){var S=c.appendFrame(this._audioTrack,A,E,O,f);if(S)E+=S.length,f++;else break}else E++},R.parseID3PES=function(x){if(x.pts===void 0){r.logger.warn("[tsdemuxer]: ID3 PES unknown PTS");return}this._id3Track.samples.push(x)},C}();l.minProbeByteLength=188;function d(C,R,w,x){return{key:C,frame:!1,pts:R,dts:w,units:[],debug:x,length:0}}function y(C,R){return(C[R+10]&31)<<8|C[R+11]}function s(C,R,w,x){var A={audio:-1,avc:-1,id3:-1,isAAC:!0},o=(C[R+1]&15)<<8|C[R+2],f=R+3+o-4,E=(C[R+10]&15)<<8|C[R+11];for(R+=12+E;R<f;){var O=(C[R+1]&31)<<8|C[R+2];switch(C[R]){case 207:if(!x){r.logger.log("ADTS AAC with AES-128-CBC frame encryption found in unencrypted stream");break}case 15:A.audio===-1&&(A.audio=O);break;case 21:A.id3===-1&&(A.id3=O);break;case 219:if(!x){r.logger.log("H.264 with AES-128-CBC slice encryption found in unencrypted stream");break}case 27:A.avc===-1&&(A.avc=O);break;case 3:case 4:w?A.audio===-1&&(A.audio=O,A.isAAC=!1):r.logger.log("MPEG audio found, not supported in this browser");break;case 36:r.logger.warn("Unsupported HEVC stream type found");break;default:break}R+=((C[R+3]&15)<<8|C[R+4])+5}return A}function p(C){var R=0,w,x,A,o,f,E=C.data;if(!C||C.size===0)return null;for(;E[0].length<19&&E.length>1;){var O=new Uint8Array(E[0].length+E[1].length);O.set(E[0]),O.set(E[1],E[0].length),E[0]=O,E.splice(1,1)}w=E[0];var S=(w[0]<<16)+(w[1]<<8)+w[2];if(S===1){if(x=(w[4]<<8)+w[5],x&&x>C.size-6)return null;var b=w[7];b&192&&(o=(w[9]&14)*536870912+(w[10]&255)*4194304+(w[11]&254)*16384+(w[12]&255)*128+(w[13]&254)/2,b&64?(f=(w[14]&14)*536870912+(w[15]&255)*4194304+(w[16]&254)*16384+(w[17]&255)*128+(w[18]&254)/2,o-f>60*9e4&&(r.logger.warn(Math.round((o-f)/9e4)+"s delta between PTS and DTS, align them"),o=f)):f=o),A=w[8];var D=A+9;if(C.size<=D)return null;C.size-=D;for(var P=new Uint8Array(C.size),I=0,F=E.length;I<F;I++){w=E[I];var K=w.byteLength;if(D)if(D>K){D-=K;continue}else w=w.subarray(D),K-=D,D=0;P.set(w,R),R+=K}return x&&(x-=A+3),{data:P,pts:o,dts:f,len:x}}return null}function n(C,R){if(C.units.length&&C.frame){if(C.pts===void 0){var w=R.samples,x=w.length;if(x){var A=w[x-1];C.pts=A.pts,C.dts=A.dts}else{R.dropped++;return}}R.samples.push(C)}C.debug.length&&r.logger.log(C.pts+"/"+C.dts+":"+C.debug)}function i(C,R){var w=C.length;if(w>0){if(R.pts>=C[w-1].pts)C.push(R);else for(var x=w-1;x>=0;x--)if(R.pts<C[x].pts){C.splice(x,0,R);break}}else C.push(R)}function v(C){for(var R=C.byteLength,w=[],x=1;x<R-2;)C[x]===0&&C[x+1]===0&&C[x+2]===3?(w.push(x+2),x+=2):x++;if(w.length===0)return C;var A=R-w.length,o=new Uint8Array(A),f=0;for(x=0;x<A;f++,x++)f===w[0]&&(f++,w.shift()),o[x]=C[f];return o}U.default=l},"./src/errors.ts":function(Z,U,L){"use strict";L.r(U),L.d(U,"ErrorTypes",function(){return N}),L.d(U,"ErrorDetails",function(){return c});var N;(function(u){u.NETWORK_ERROR="networkError",u.MEDIA_ERROR="mediaError",u.KEY_SYSTEM_ERROR="keySystemError",u.MUX_ERROR="muxError",u.OTHER_ERROR="otherError"})(N||(N={}));var c;(function(u){u.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",u.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",u.KEY_SYSTEM_NO_SESSION="keySystemNoSession",u.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",u.KEY_SYSTEM_NO_INIT_DATA="keySystemNoInitData",u.MANIFEST_LOAD_ERROR="manifestLoadError",u.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",u.MANIFEST_PARSING_ERROR="manifestParsingError",u.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",u.LEVEL_EMPTY_ERROR="levelEmptyError",u.LEVEL_LOAD_ERROR="levelLoadError",u.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",u.LEVEL_SWITCH_ERROR="levelSwitchError",u.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",u.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",u.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",u.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",u.FRAG_LOAD_ERROR="fragLoadError",u.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",u.FRAG_DECRYPT_ERROR="fragDecryptError",u.FRAG_PARSING_ERROR="fragParsingError",u.REMUX_ALLOC_ERROR="remuxAllocError",u.KEY_LOAD_ERROR="keyLoadError",u.KEY_LOAD_TIMEOUT="keyLoadTimeOut",u.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",u.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",u.BUFFER_APPEND_ERROR="bufferAppendError",u.BUFFER_APPENDING_ERROR="bufferAppendingError",u.BUFFER_STALLED_ERROR="bufferStalledError",u.BUFFER_FULL_ERROR="bufferFullError",u.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",u.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",u.INTERNAL_EXCEPTION="internalException",u.INTERNAL_ABORTED="aborted",u.UNKNOWN="unknown"})(c||(c={}))},"./src/events.ts":function(Z,U,L){"use strict";L.r(U),L.d(U,"Events",function(){return N});var N;(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"})(N||(N={}))},"./src/hls.ts":function(Z,U,L){"use strict";L.r(U),L.d(U,"default",function(){return C});var N=L("./node_modules/url-toolkit/src/url-toolkit.js"),c=L.n(N),u=L("./src/loader/playlist-loader.ts"),M=L("./src/loader/key-loader.ts"),g=L("./src/controller/id3-track-controller.ts"),e=L("./src/controller/latency-controller.ts"),m=L("./src/controller/level-controller.ts"),r=L("./src/controller/fragment-tracker.ts"),h=L("./src/controller/stream-controller.ts"),a=L("./src/is-supported.ts"),l=L("./src/utils/logger.ts"),d=L("./src/config.ts"),y=L("./node_modules/eventemitter3/index.js"),s=L.n(y),p=L("./src/events.ts"),n=L("./src/errors.ts");function i(R,w){for(var x=0;x<w.length;x++){var A=w[x];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(R,A.key,A)}}function v(R,w,x){return w&&i(R.prototype,w),x&&i(R,x),R}var C=function(){R.isSupported=function(){return Object(a.isSupported)()};function R(x){x===void 0&&(x={}),this.config=void 0,this.userConfig=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new y.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 A=this.config=Object(d.mergeConfig)(R.DefaultConfig,x);this.userConfig=x,Object(l.enableLogs)(A.debug),this._autoLevelCapping=-1,A.progressive&&Object(d.enableStreamingMode)(A);var o=A.abrController,f=A.bufferController,E=A.capLevelController,O=A.fpsController,S=this.abrController=new o(this),b=this.bufferController=new f(this),D=this.capLevelController=new E(this),P=new O(this),I=new u.default(this),F=new M.default(this),K=new g.default(this),j=this.levelController=new m.default(this),Y=new r.FragmentTracker(this),W=this.streamController=new h.default(this,Y);D.setStreamController(W),P.setStreamController(W);var Q=[j,W];this.networkControllers=Q;var ie=[I,F,S,b,D,P,K,Y];this.audioTrackController=this.createController(A.audioTrackController,null,Q),this.createController(A.audioStreamController,Y,Q),this.subtitleTrackController=this.createController(A.subtitleTrackController,null,Q),this.createController(A.subtitleStreamController,Y,Q),this.createController(A.timelineController,null,ie),this.emeController=this.createController(A.emeController,null,ie),this.cmcdController=this.createController(A.cmcdController,null,ie),this.latencyController=this.createController(e.default,null,ie),this.coreComponents=ie}var w=R.prototype;return w.createController=function(A,o,f){if(A){var E=o?new A(this,o):new A(this);return f&&f.push(E),E}return null},w.on=function(A,o,f){f===void 0&&(f=this),this._emitter.on(A,o,f)},w.once=function(A,o,f){f===void 0&&(f=this),this._emitter.once(A,o,f)},w.removeAllListeners=function(A){this._emitter.removeAllListeners(A)},w.off=function(A,o,f,E){f===void 0&&(f=this),this._emitter.off(A,o,f,E)},w.listeners=function(A){return this._emitter.listeners(A)},w.emit=function(A,o,f){return this._emitter.emit(A,o,f)},w.trigger=function(A,o){if(this.config.debug)return this.emit(A,A,o);try{return this.emit(A,A,o)}catch(f){l.logger.error("An internal error happened while handling event "+A+'. Error message: "'+f.message+'". Here is a stacktrace:',f),this.trigger(p.Events.ERROR,{type:n.ErrorTypes.OTHER_ERROR,details:n.ErrorDetails.INTERNAL_EXCEPTION,fatal:!1,event:A,error:f})}return!1},w.listenerCount=function(A){return this._emitter.listenerCount(A)},w.destroy=function(){l.logger.log("destroy"),this.trigger(p.Events.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this.url=null,this.networkControllers.forEach(function(A){return A.destroy()}),this.networkControllers.length=0,this.coreComponents.forEach(function(A){return A.destroy()}),this.coreComponents.length=0},w.attachMedia=function(A){l.logger.log("attachMedia"),this._media=A,this.trigger(p.Events.MEDIA_ATTACHING,{media:A})},w.detachMedia=function(){l.logger.log("detachMedia"),this.trigger(p.Events.MEDIA_DETACHING,void 0),this._media=null},w.loadSource=function(A){this.stopLoad();var o=this.media,f=this.url,E=this.url=N.buildAbsoluteURL(self.location.href,A,{alwaysNormalize:!0});l.logger.log("loadSource:"+E),o&&f&&f!==E&&this.bufferController.hasSourceTypes()&&(this.detachMedia(),this.attachMedia(o)),this.trigger(p.Events.MANIFEST_LOADING,{url:A})},w.startLoad=function(A){A===void 0&&(A=-1),l.logger.log("startLoad("+A+")"),this.networkControllers.forEach(function(o){o.startLoad(A)})},w.stopLoad=function(){l.logger.log("stopLoad"),this.networkControllers.forEach(function(A){A.stopLoad()})},w.swapAudioCodec=function(){l.logger.log("swapAudioCodec"),this.streamController.swapAudioCodec()},w.recoverMediaError=function(){l.logger.log("recoverMediaError");var A=this._media;this.detachMedia(),A&&this.attachMedia(A)},w.removeLevel=function(A,o){o===void 0&&(o=0),this.levelController.removeLevel(A,o)},v(R,[{key:"levels",get:function(){var A=this.levelController.levels;return A||[]}},{key:"currentLevel",get:function(){return this.streamController.currentLevel},set:function(A){l.logger.log("set currentLevel:"+A),this.loadLevel=A,this.abrController.clearTimer(),this.streamController.immediateLevelSwitch()}},{key:"nextLevel",get:function(){return this.streamController.nextLevel},set:function(A){l.logger.log("set nextLevel:"+A),this.levelController.manualLevel=A,this.streamController.nextLevelSwitch()}},{key:"loadLevel",get:function(){return this.levelController.level},set:function(A){l.logger.log("set loadLevel:"+A),this.levelController.manualLevel=A}},{key:"nextLoadLevel",get:function(){return this.levelController.nextLoadLevel},set:function(A){this.levelController.nextLoadLevel=A}},{key:"firstLevel",get:function(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)},set:function(A){l.logger.log("set firstLevel:"+A),this.levelController.firstLevel=A}},{key:"startLevel",get:function(){return this.levelController.startLevel},set:function(A){l.logger.log("set startLevel:"+A),A!==-1&&(A=Math.max(A,this.minAutoLevel)),this.levelController.startLevel=A}},{key:"capLevelToPlayerSize",get:function(){return this.config.capLevelToPlayerSize},set:function(A){var o=!!A;o!==this.config.capLevelToPlayerSize&&(o?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=o)}},{key:"autoLevelCapping",get:function(){return this._autoLevelCapping},set:function(A){this._autoLevelCapping!==A&&(l.logger.log("set autoLevelCapping:"+A),this._autoLevelCapping=A)}},{key:"bandwidthEstimate",get:function(){var A=this.abrController.bwEstimator;return A?A.getEstimate():NaN}},{key:"autoLevelEnabled",get:function(){return this.levelController.manualLevel===-1}},{key:"manualLevel",get:function(){return this.levelController.manualLevel}},{key:"minAutoLevel",get:function(){var A=this.levels,o=this.config.minAutoBitrate;if(!A)return 0;for(var f=A.length,E=0;E<f;E++)if(A[E].maxBitrate>o)return E;return 0}},{key:"maxAutoLevel",get:function(){var A=this.levels,o=this.autoLevelCapping,f;return o===-1&&A&&A.length?f=A.length-1:f=o,f}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(A){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,A)}},{key:"audioTracks",get:function(){var A=this.audioTrackController;return A?A.audioTracks:[]}},{key:"audioTrack",get:function(){var A=this.audioTrackController;return A?A.audioTrack:-1},set:function(A){var o=this.audioTrackController;o&&(o.audioTrack=A)}},{key:"subtitleTracks",get:function(){var A=this.subtitleTrackController;return A?A.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var A=this.subtitleTrackController;return A?A.subtitleTrack:-1},set:function(A){var o=this.subtitleTrackController;o&&(o.subtitleTrack=A)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var A=this.subtitleTrackController;return A?A.subtitleDisplay:!1},set:function(A){var o=this.subtitleTrackController;o&&(o.subtitleDisplay=A)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(A){this.config.lowLatencyMode=A}},{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 p.Events}},{key:"ErrorTypes",get:function(){return n.ErrorTypes}},{key:"ErrorDetails",get:function(){return n.ErrorDetails}},{key:"DefaultConfig",get:function(){return R.defaultConfig?R.defaultConfig:d.hlsDefaultConfig},set:function(A){R.defaultConfig=A}}]),R}();C.defaultConfig=void 0},"./src/is-supported.ts":function(Z,U,L){"use strict";L.r(U),L.d(U,"isSupported",function(){return u}),L.d(U,"changeTypeSupported",function(){return M});var N=L("./src/utils/mediasource-helper.ts");function c(){return self.SourceBuffer||self.WebKitSourceBuffer}function u(){var g=Object(N.getMediaSource)();if(!g)return!1;var e=c(),m=g&&typeof g.isTypeSupported=="function"&&g.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),r=!e||e.prototype&&typeof e.prototype.appendBuffer=="function"&&typeof e.prototype.remove=="function";return!!m&&!!r}function M(){var g,e=c();return typeof(e==null||((g=e.prototype)===null||g===void 0)?void 0:g.changeType)=="function"}},"./src/loader/fragment-loader.ts":function(Z,U,L){"use strict";L.r(U),L.d(U,"default",function(){return l}),L.d(U,"LoadError",function(){return y});var N=L("./src/polyfills/number.ts"),c=L("./src/errors.ts");function u(s,p){s.prototype=Object.create(p.prototype),s.prototype.constructor=s,r(s,p)}function M(s){var p=typeof Map=="function"?new Map:void 0;return M=function(i){if(i===null||!m(i))return i;if(typeof i!="function")throw new TypeError("Super expression must either be null or a function");if(typeof p!="undefined"){if(p.has(i))return p.get(i);p.set(i,v)}function v(){return g(i,arguments,h(this).constructor)}return v.prototype=Object.create(i.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),r(v,i)},M(s)}function g(s,p,n){return e()?g=Reflect.construct:g=function(v,C,R){var w=[null];w.push.apply(w,C);var x=Function.bind.apply(v,w),A=new x;return R&&r(A,R.prototype),A},g.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(s){return!1}}function m(s){return Function.toString.call(s).indexOf("[native code]")!==-1}function r(s,p){return r=Object.setPrototypeOf||function(i,v){return i.__proto__=v,i},r(s,p)}function h(s){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},h(s)}var a=Math.pow(2,17),l=function(){function s(n){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=n}var p=s.prototype;return p.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},p.abort=function(){this.loader&&this.loader.abort()},p.load=function(i,v){var C=this,R=i.url;if(!R)return Promise.reject(new y({type:c.ErrorTypes.NETWORK_ERROR,details:c.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:i,networkDetails:null},"Fragment does not have a "+(R?"part list":"url")));this.abort();var w=this.config,x=w.fLoader,A=w.loader;return new Promise(function(o,f){C.loader&&C.loader.destroy();var E=C.loader=i.loader=x?new x(w):new A(w),O=d(i),S={timeout:w.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:w.fragLoadingMaxRetryTimeout,highWaterMark:a};i.stats=E.stats,E.load(O,S,{onSuccess:function(D,P,I,F){C.resetLoader(i,E),o({frag:i,part:null,payload:D.data,networkDetails:F})},onError:function(D,P,I){C.resetLoader(i,E),f(new y({type:c.ErrorTypes.NETWORK_ERROR,details:c.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:i,response:D,networkDetails:I}))},onAbort:function(D,P,I){C.resetLoader(i,E),f(new y({type:c.ErrorTypes.NETWORK_ERROR,details:c.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:i,networkDetails:I}))},onTimeout:function(D,P,I){C.resetLoader(i,E),f(new y({type:c.ErrorTypes.NETWORK_ERROR,details:c.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:i,networkDetails:I}))},onProgress:function(D,P,I,F){v&&v({frag:i,part:null,payload:I,networkDetails:F})}})})},p.loadPart=function(i,v,C){var R=this;this.abort();var w=this.config,x=w.fLoader,A=w.loader;return new Promise(function(o,f){R.loader&&R.loader.destroy();var E=R.loader=i.loader=x?new x(w):new A(w),O=d(i,v),S={timeout:w.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:w.fragLoadingMaxRetryTimeout,highWaterMark:a};v.stats=E.stats,E.load(O,S,{onSuccess:function(D,P,I,F){R.resetLoader(i,E),R.updateStatsFromPart(i,v);var K={frag:i,part:v,payload:D.data,networkDetails:F};C(K),o(K)},onError:function(D,P,I){R.resetLoader(i,E),f(new y({type:c.ErrorTypes.NETWORK_ERROR,details:c.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:i,part:v,response:D,networkDetails:I}))},onAbort:function(D,P,I){i.stats.aborted=v.stats.aborted,R.resetLoader(i,E),f(new y({type:c.ErrorTypes.NETWORK_ERROR,details:c.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:i,part:v,networkDetails:I}))},onTimeout:function(D,P,I){R.resetLoader(i,E),f(new y({type:c.ErrorTypes.NETWORK_ERROR,details:c.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:i,part:v,networkDetails:I}))}})})},p.updateStatsFromPart=function(i,v){var C=i.stats,R=v.stats,w=R.total;if(C.loaded+=R.loaded,w){var x=Math.round(i.duration/v.duration),A=Math.min(Math.round(C.loaded/w),x),o=x-A,f=o*Math.round(C.loaded/A);C.total=C.loaded+f}else C.total=Math.max(C.loaded,C.total);var E=C.loading,O=R.loading;E.start?E.first+=O.first-O.start:(E.start=O.start,E.first=O.first),E.end=O.end},p.resetLoader=function(i,v){i.loader=null,this.loader===v&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),v.destroy()},s}();function d(s,p){p===void 0&&(p=null);var n=p||s,i={frag:s,part:p,responseType:"arraybuffer",url:n.url,headers:{},rangeStart:0,rangeEnd:0},v=n.byteRangeStartOffset,C=n.byteRangeEndOffset;return Object(N.isFiniteNumber)(v)&&Object(N.isFiniteNumber)(C)&&(i.rangeStart=v,i.rangeEnd=C),i}var y=function(s){u(p,s);function p(n){for(var i,v=arguments.length,C=new Array(v>1?v-1:0),R=1;R<v;R++)C[R-1]=arguments[R];return i=s.call.apply(s,[this].concat(C))||this,i.data=void 0,i.data=n,i}return p}(M(Error))},"./src/loader/fragment.ts":function(Z,U,L){"use strict";L.r(U),L.d(U,"ElementaryStreamTypes",function(){return l}),L.d(U,"BaseSegment",function(){return d}),L.d(U,"Fragment",function(){return y}),L.d(U,"Part",function(){return s});var N=L("./src/polyfills/number.ts"),c=L("./node_modules/url-toolkit/src/url-toolkit.js"),u=L.n(c),M=L("./src/utils/logger.ts"),g=L("./src/loader/level-key.ts"),e=L("./src/loader/load-stats.ts");function m(p,n){p.prototype=Object.create(n.prototype),p.prototype.constructor=p,r(p,n)}function r(p,n){return r=Object.setPrototypeOf||function(v,C){return v.__proto__=C,v},r(p,n)}function h(p,n){for(var i=0;i<n.length;i++){var v=n[i];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(p,v.key,v)}}function a(p,n,i){return n&&h(p.prototype,n),i&&h(p,i),p}var l;(function(p){p.AUDIO="audio",p.VIDEO="video",p.AUDIOVIDEO="audiovideo"})(l||(l={}));var d=function(){function p(i){var v;this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams=(v={},v[l.AUDIO]=null,v[l.VIDEO]=null,v[l.AUDIOVIDEO]=null,v),this.baseurl=i}var n=p.prototype;return n.setByteRange=function(v,C){var R=v.split("@",2),w=[];R.length===1?w[0]=C?C.byteRangeEndOffset:0:w[0]=parseInt(R[1]),w[1]=parseInt(R[0])+w[0],this._byteRange=w},a(p,[{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(v){this._url=v}}]),p}(),y=function(p){m(n,p);function n(v,C){var R;return R=p.call(this,C)||this,R._decryptdata=null,R.rawProgramDateTime=null,R.programDateTime=null,R.tagList=[],R.duration=0,R.sn=0,R.levelkey=void 0,R.type=void 0,R.loader=null,R.level=-1,R.cc=0,R.startPTS=void 0,R.endPTS=void 0,R.appendedPTS=void 0,R.startDTS=void 0,R.endDTS=void 0,R.start=0,R.deltaPTS=void 0,R.maxStartPTS=void 0,R.minEndPTS=void 0,R.stats=new e.LoadStats,R.urlId=0,R.data=void 0,R.bitrateTest=!1,R.title=null,R.initSegment=null,R.type=v,R}var i=n.prototype;return i.createInitializationVector=function(C){for(var R=new Uint8Array(16),w=12;w<16;w++)R[w]=C>>8*(15-w)&255;return R},i.setDecryptDataFromLevelKey=function(C,R){var w=C;return(C==null?void 0:C.method)==="AES-128"&&C.uri&&!C.iv&&(w=g.LevelKey.fromURI(C.uri),w.method=C.method,w.iv=this.createInitializationVector(R),w.keyFormat="identity"),w},i.setElementaryStreamInfo=function(C,R,w,x,A,o){o===void 0&&(o=!1);var f=this.elementaryStreams,E=f[C];if(!E){f[C]={startPTS:R,endPTS:w,startDTS:x,endDTS:A,partial:o};return}E.startPTS=Math.min(E.startPTS,R),E.endPTS=Math.max(E.endPTS,w),E.startDTS=Math.min(E.startDTS,x),E.endDTS=Math.max(E.endDTS,A)},i.clearElementaryStreamInfo=function(){var C=this.elementaryStreams;C[l.AUDIO]=null,C[l.VIDEO]=null,C[l.AUDIOVIDEO]=null},a(n,[{key:"decryptdata",get:function(){if(!this.levelkey&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkey){var C=this.sn;typeof C!="number"&&(this.levelkey&&this.levelkey.method==="AES-128"&&!this.levelkey.iv&&M.logger.warn('missing IV for initialization segment with method="'+this.levelkey.method+'" - compliance issue'),C=0),this._decryptdata=this.setDecryptDataFromLevelKey(this.levelkey,C)}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(this.programDateTime===null)return null;if(!Object(N.isFiniteNumber)(this.programDateTime))return null;var C=Object(N.isFiniteNumber)(this.duration)?this.duration:0;return this.programDateTime+C*1e3}},{key:"encrypted",get:function(){var C;return!!((C=this.decryptdata)!==null&&C!==void 0&&C.keyFormat&&this.decryptdata.uri)}}]),n}(d),s=function(p){m(n,p);function n(i,v,C,R,w){var x;x=p.call(this,C)||this,x.fragOffset=0,x.duration=0,x.gap=!1,x.independent=!1,x.relurl=void 0,x.fragment=void 0,x.index=void 0,x.stats=new e.LoadStats,x.duration=i.decimalFloatingPoint("DURATION"),x.gap=i.bool("GAP"),x.independent=i.bool("INDEPENDENT"),x.relurl=i.enumeratedString("URI"),x.fragment=v,x.index=R;var A=i.enumeratedString("BYTERANGE");return A&&x.setByteRange(A,w),w&&(x.fragOffset=w.fragOffset+w.duration),x}return a(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 v=this.elementaryStreams;return!!(v.audio||v.video||v.audiovideo)}}]),n}(d)},"./src/loader/key-loader.ts":function(Z,U,L){"use strict";L.r(U),L.d(U,"default",function(){return M});var N=L("./src/events.ts"),c=L("./src/errors.ts"),u=L("./src/utils/logger.ts"),M=function(){function g(m){this.hls=void 0,this.loaders={},this.decryptkey=null,this.decrypturl=null,this.hls=m,this._registerListeners()}var e=g.prototype;return e._registerListeners=function(){this.hls.on(N.Events.KEY_LOADING,this.onKeyLoading,this)},e._unregisterListeners=function(){this.hls.off(N.Events.KEY_LOADING,this.onKeyLoading)},e.destroy=function(){this._unregisterListeners();for(var r in this.loaders){var h=this.loaders[r];h&&h.destroy()}this.loaders={}},e.onKeyLoading=function(r,h){var a=h.frag,l=a.type,d=this.loaders[l];if(!a.decryptdata){u.logger.warn("Missing decryption data on fragment in onKeyLoading");return}var y=a.decryptdata.uri;if(y!==this.decrypturl||this.decryptkey===null){var s=this.hls.config;if(d&&(u.logger.warn("abort previous key loader for type:"+l),d.abort()),!y){u.logger.warn("key uri is falsy");return}var p=s.loader,n=a.loader=this.loaders[l]=new p(s);this.decrypturl=y,this.decryptkey=null;var i={url:y,frag:a,responseType:"arraybuffer"},v={timeout:s.fragLoadingTimeOut,maxRetry:0,retryDelay:s.fragLoadingRetryDelay,maxRetryDelay:s.fragLoadingMaxRetryTimeout,highWaterMark:0},C={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};n.load(i,v,C)}else this.decryptkey&&(a.decryptdata.key=this.decryptkey,this.hls.trigger(N.Events.KEY_LOADED,{frag:a}))},e.loadsuccess=function(r,h,a){var l=a.frag;if(!l.decryptdata){u.logger.error("after key load, decryptdata unset");return}this.decryptkey=l.decryptdata.key=new Uint8Array(r.data),l.loader=null,delete this.loaders[l.type],this.hls.trigger(N.Events.KEY_LOADED,{frag:l})},e.loaderror=function(r,h){var a=h.frag,l=a.loader;l&&l.abort(),delete this.loaders[a.type],this.hls.trigger(N.Events.ERROR,{type:c.ErrorTypes.NETWORK_ERROR,details:c.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:a,response:r})},e.loadtimeout=function(r,h){var a=h.frag,l=a.loader;l&&l.abort(),delete this.loaders[a.type],this.hls.trigger(N.Events.ERROR,{type:c.ErrorTypes.NETWORK_ERROR,details:c.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:a})},g}()},"./src/loader/level-details.ts":function(Z,U,L){"use strict";L.r(U),L.d(U,"LevelDetails",function(){return g});var N=L("./src/polyfills/number.ts");function c(e,m){for(var r=0;r<m.length;r++){var h=m[r];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(e,h.key,h)}}function u(e,m,r){return m&&c(e.prototype,m),r&&c(e,r),e}var M=10,g=function(){function e(r){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=r}var m=e.prototype;return m.reloaded=function(h){if(!h){this.advanced=!0,this.updated=!0;return}var a=this.lastPartSn-h.lastPartSn,l=this.lastPartIndex-h.lastPartIndex;this.updated=this.endSN!==h.endSN||!!l||!!a,this.advanced=this.endSN>h.endSN||a>0||a===0&&l>0,this.updated||this.advanced?this.misses=Math.floor(h.misses*.6):this.misses=h.misses+1,this.availabilityDelay=h.availabilityDelay},u(e,[{key:"hasProgramDateTime",get:function(){return this.fragments.length?Object(N.isFiniteNumber)(this.fragments[this.fragments.length-1].programDateTime):!1}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||M}},{key:"drift",get:function(){var h=this.driftEndTime-this.driftStartTime;if(h>0){var a=this.driftEnd-this.driftStart;return a*1e3/h}return 1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var h;return(h=this.partList)!==null&&h!==void 0&&h.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var h;return(h=this.fragments)!==null&&h!==void 0&&h.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 h;return(h=this.partList)!==null&&h!==void 0&&h.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var h;return(h=this.partList)!==null&&h!==void 0&&h.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),e}()},"./src/loader/level-key.ts":function(Z,U,L){"use strict";L.r(U),L.d(U,"LevelKey",function(){return g});var N=L("./node_modules/url-toolkit/src/url-toolkit.js"),c=L.n(N);function u(e,m){for(var r=0;r<m.length;r++){var h=m[r];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(e,h.key,h)}}function M(e,m,r){return m&&u(e.prototype,m),r&&u(e,r),e}var g=function(){e.fromURL=function(r,h){return new e(r,h)},e.fromURI=function(r){return new e(r)};function e(m,r){this._uri=null,this.method=null,this.keyFormat=null,this.keyFormatVersions=null,this.keyID=null,this.key=null,this.iv=null,r?this._uri=Object(N.buildAbsoluteURL)(m,r,{alwaysNormalize:!0}):this._uri=m}return M(e,[{key:"uri",get:function(){return this._uri}}]),e}()},"./src/loader/load-stats.ts":function(Z,U,L){"use strict";L.r(U),L.d(U,"LoadStats",function(){return N});var N=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(Z,U,L){"use strict";L.r(U),L.d(U,"default",function(){return n});var N=L("./src/polyfills/number.ts"),c=L("./node_modules/url-toolkit/src/url-toolkit.js"),u=L.n(c),M=L("./src/loader/fragment.ts"),g=L("./src/loader/level-details.ts"),e=L("./src/loader/level-key.ts"),m=L("./src/utils/attr-list.ts"),r=L("./src/utils/logger.ts"),h=L("./src/utils/codecs.ts"),a=/#EXT-X-STREAM-INF:([^\r\n]*)(?:[\r\n](?:#[^\r\n]*)?)*([^\r\n]+)|#EXT-X-SESSION-DATA:([^\r\n]*)[\r\n]+/g,l=/#EXT-X-MEDIA:(.*)/g,d=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[\S ]*)/.source,/#EXT-X-BYTERANGE:*(.+)/.source,/#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/#.*/.source].join("|"),"g"),y=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("|")),s=/\.(mp4|m4s|m4v|m4a)$/i;function p(w){var x,A;return s.test((x=(A=c.parseURL(w))===null||A===void 0?void 0:A.path)!=null?x:"")}var n=function(){function w(){}return w.findGroup=function(A,o){for(var f=0;f<A.length;f++){var E=A[f];if(E.id===o)return E}},w.convertAVC1ToAVCOTI=function(A){var o=A.split(".");if(o.length>2){var f=o.shift()+".";return f+=parseInt(o.shift()).toString(16),f+=("000"+parseInt(o.shift()).toString(16)).substr(-4),f}return A},w.resolve=function(A,o){return c.buildAbsoluteURL(o,A,{alwaysNormalize:!0})},w.parseMasterPlaylist=function(A,o){var f=[],E={},O=!1;a.lastIndex=0;for(var S;(S=a.exec(A))!=null;)if(S[1]){var b=new m.AttrList(S[1]),D={attrs:b,bitrate:b.decimalInteger("AVERAGE-BANDWIDTH")||b.decimalInteger("BANDWIDTH"),name:b.NAME,url:w.resolve(S[2],o)},P=b.decimalResolution("RESOLUTION");P&&(D.width=P.width,D.height=P.height),i((b.CODECS||"").split(/[ ,]+/).filter(function(F){return F}),D),D.videoCodec&&D.videoCodec.indexOf("avc1")!==-1&&(D.videoCodec=w.convertAVC1ToAVCOTI(D.videoCodec)),f.push(D)}else if(S[3]){var I=new m.AttrList(S[3]);I["DATA-ID"]&&(O=!0,E[I["DATA-ID"]]=I)}return{levels:f,sessionData:O?E:null}},w.parseMasterPlaylistMedia=function(A,o,f,E){E===void 0&&(E=[]);var O,S=[],b=0;for(l.lastIndex=0;(O=l.exec(A))!==null;){var D=new m.AttrList(O[1]);if(D.TYPE===f){var P={attrs:D,bitrate:0,id:b++,groupId:D["GROUP-ID"],instreamId:D["INSTREAM-ID"],name:D.NAME||D.LANGUAGE||"",type:f,default:D.bool("DEFAULT"),autoselect:D.bool("AUTOSELECT"),forced:D.bool("FORCED"),lang:D.LANGUAGE,url:D.URI?w.resolve(D.URI,o):""};if(E.length){var I=w.findGroup(E,P.groupId)||E[0];v(P,I,"audioCodec"),v(P,I,"textCodec")}S.push(P)}}return S},w.parseLevelPlaylist=function(A,o,f,E,O){var S=new g.LevelDetails(o),b=S.fragments,D=null,P=0,I=0,F=0,K=0,j=null,Y=new M.Fragment(E,o),W,Q,ie,Ee=-1,pe=!1;for(d.lastIndex=0,S.m3u8=A;(W=d.exec(A))!==null;){pe&&(pe=!1,Y=new M.Fragment(E,o),Y.start=F,Y.sn=P,Y.cc=K,Y.level=f,D&&(Y.initSegment=D,Y.rawProgramDateTime=D.rawProgramDateTime));var De=W[1];if(De){Y.duration=parseFloat(De);var Me=(" "+W[2]).slice(1);Y.title=Me||null,Y.tagList.push(Me?["INF",De,Me]:["INF",De])}else if(W[3])Object(N.isFiniteNumber)(Y.duration)&&(Y.start=F,ie&&(Y.levelkey=ie),Y.sn=P,Y.level=f,Y.cc=K,Y.urlId=O,b.push(Y),Y.relurl=(" "+W[3]).slice(1),R(Y,j),j=Y,F+=Y.duration,P++,I=0,pe=!0);else if(W[4]){var Ue=(" "+W[4]).slice(1);j?Y.setByteRange(Ue,j):Y.setByteRange(Ue)}else if(W[5])Y.rawProgramDateTime=(" "+W[5]).slice(1),Y.tagList.push(["PROGRAM-DATE-TIME",Y.rawProgramDateTime]),Ee===-1&&(Ee=b.length);else{if(W=W[0].match(y),!W){r.logger.warn("No matches on slow regex match for level playlist!");continue}for(Q=1;Q<W.length&&!(typeof W[Q]!="undefined");Q++);var Ie=(" "+W[Q]).slice(1),ne=(" "+W[Q+1]).slice(1),B=W[Q+2]?(" "+W[Q+2]).slice(1):"";switch(Ie){case"PLAYLIST-TYPE":S.type=ne.toUpperCase();break;case"MEDIA-SEQUENCE":P=S.startSN=parseInt(ne);break;case"SKIP":{var z=new m.AttrList(ne),H=z.decimalInteger("SKIPPED-SEGMENTS");if(Object(N.isFiniteNumber)(H)){S.skippedSegments=H;for(var ee=H;ee--;)b.unshift(null);P+=H}var X=z.enumeratedString("RECENTLY-REMOVED-DATERANGES");X&&(S.recentlyRemovedDateranges=X.split(" "));break}case"TARGETDURATION":S.targetduration=parseFloat(ne);break;case"VERSION":S.version=parseInt(ne);break;case"EXTM3U":break;case"ENDLIST":S.live=!1;break;case"#":(ne||B)&&Y.tagList.push(B?[ne,B]:[ne]);break;case"DIS":K++;case"GAP":Y.tagList.push([Ie]);break;case"BITRATE":Y.tagList.push([Ie,ne]);break;case"DISCONTINUITY-SEQ":K=parseInt(ne);break;case"KEY":{var me,je=new m.AttrList(ne),Je=je.enumeratedString("METHOD"),oe=je.URI,Ae=je.hexadecimalInteger("IV"),ye=je.enumeratedString("KEYFORMATVERSIONS"),Le=je.enumeratedString("KEYID"),We=(me=je.enumeratedString("KEYFORMAT"))!=null?me:"identity",Xe=["com.apple.streamingkeydelivery","com.microsoft.playready","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed","com.widevine"];if(Xe.indexOf(We)>-1){r.logger.warn("Keyformat "+We+" is not supported from the manifest");continue}else if(We!=="identity")continue;Je&&(ie=e.LevelKey.fromURL(o,oe),oe&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(Je)>=0&&(ie.method=Je,ie.keyFormat=We,Le&&(ie.keyID=Le),ye&&(ie.keyFormatVersions=ye),ie.iv=Ae));break}case"START":{var ct=new m.AttrList(ne),lt=ct.decimalFloatingPoint("TIME-OFFSET");Object(N.isFiniteNumber)(lt)&&(S.startTimeOffset=lt);break}case"MAP":{var St=new m.AttrList(ne);Y.relurl=St.URI,St.BYTERANGE&&Y.setByteRange(St.BYTERANGE),Y.level=f,Y.sn="initSegment",ie&&(Y.levelkey=ie),Y.initSegment=null,D=Y,pe=!0;break}case"SERVER-CONTROL":{var Dt=new m.AttrList(ne);S.canBlockReload=Dt.bool("CAN-BLOCK-RELOAD"),S.canSkipUntil=Dt.optionalFloat("CAN-SKIP-UNTIL",0),S.canSkipDateRanges=S.canSkipUntil>0&&Dt.bool("CAN-SKIP-DATERANGES"),S.partHoldBack=Dt.optionalFloat("PART-HOLD-BACK",0),S.holdBack=Dt.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var bt=new m.AttrList(ne);S.partTarget=bt.decimalFloatingPoint("PART-TARGET");break}case"PART":{var ht=S.partList;ht||(ht=S.partList=[]);var Ut=I>0?ht[ht.length-1]:void 0,Ft=I++,ve=new M.Part(new m.AttrList(ne),Y,o,Ft,Ut);ht.push(ve),Y.duration+=ve.duration;break}case"PRELOAD-HINT":{var se=new m.AttrList(ne);S.preloadHint=se;break}case"RENDITION-REPORT":{var le=new m.AttrList(ne);S.renditionReports=S.renditionReports||[],S.renditionReports.push(le);break}default:r.logger.warn("line parsed but not handled: "+W);break}}}j&&!j.relurl?(b.pop(),F-=j.duration,S.partList&&(S.fragmentHint=j)):S.partList&&(R(Y,j),Y.cc=K,S.fragmentHint=Y);var fe=b.length,Re=b[0],ce=b[fe-1];if(F+=S.skippedSegments*S.targetduration,F>0&&fe&&ce){S.averagetargetduration=F/fe;var he=ce.sn;S.endSN=he!=="initSegment"?he:0,Re&&(S.startCC=Re.cc,Re.initSegment||S.fragments.every(function(Se){return Se.relurl&&p(Se.relurl)})&&(r.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),Y=new M.Fragment(E,o),Y.relurl=ce.relurl,Y.level=f,Y.sn="initSegment",Re.initSegment=Y,S.needSidxRanges=!0))}else S.endSN=0,S.startCC=0;return S.fragmentHint&&(F+=S.fragmentHint.duration),S.totalduration=F,S.endCC=K,Ee>0&&C(b,Ee),S},w}();function i(w,x){["video","audio","text"].forEach(function(A){var o=w.filter(function(E){return Object(h.isCodecType)(E,A)});if(o.length){var f=o.filter(function(E){return E.lastIndexOf("avc1",0)===0||E.lastIndexOf("mp4a",0)===0});x[A+"Codec"]=f.length>0?f[0]:o[0],w=w.filter(function(E){return o.indexOf(E)===-1})}}),x.unknownCodecs=w}function v(w,x,A){var o=x[A];o&&(w[A]=o)}function C(w,x){for(var A=w[x],o=x;o--;){var f=w[o];if(!f)return;f.programDateTime=A.programDateTime-f.duration*1e3,A=f}}function R(w,x){w.rawProgramDateTime?w.programDateTime=Date.parse(w.rawProgramDateTime):x!=null&&x.programDateTime&&(w.programDateTime=x.endProgramDateTime),Object(N.isFiniteNumber)(w.programDateTime)||(w.programDateTime=null,w.rawProgramDateTime=null)}},"./src/loader/playlist-loader.ts":function(Z,U,L){"use strict";L.r(U);var N=L("./src/polyfills/number.ts"),c=L("./src/events.ts"),u=L("./src/errors.ts"),M=L("./src/utils/logger.ts"),g=L("./src/utils/mp4-tools.ts"),e=L("./src/loader/m3u8-parser.ts"),m=L("./src/types/loader.ts"),r=L("./src/utils/attr-list.ts");function h(d){var y=d.type;switch(y){case m.PlaylistContextType.AUDIO_TRACK:return m.PlaylistLevelType.AUDIO;case m.PlaylistContextType.SUBTITLE_TRACK:return m.PlaylistLevelType.SUBTITLE;default:return m.PlaylistLevelType.MAIN}}function a(d,y){var s=d.url;return(s===void 0||s.indexOf("data:")===0)&&(s=y.url),s}var l=function(){function d(s){this.hls=void 0,this.loaders=Object.create(null),this.hls=s,this.registerListeners()}var y=d.prototype;return y.registerListeners=function(){var p=this.hls;p.on(c.Events.MANIFEST_LOADING,this.onManifestLoading,this),p.on(c.Events.LEVEL_LOADING,this.onLevelLoading,this),p.on(c.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),p.on(c.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},y.unregisterListeners=function(){var p=this.hls;p.off(c.Events.MANIFEST_LOADING,this.onManifestLoading,this),p.off(c.Events.LEVEL_LOADING,this.onLevelLoading,this),p.off(c.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),p.off(c.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},y.createInternalLoader=function(p){var n=this.hls.config,i=n.pLoader,v=n.loader,C=i||v,R=new C(n);return p.loader=R,this.loaders[p.type]=R,R},y.getInternalLoader=function(p){return this.loaders[p.type]},y.resetInternalLoader=function(p){this.loaders[p]&&delete this.loaders[p]},y.destroyInternalLoaders=function(){for(var p in this.loaders){var n=this.loaders[p];n&&n.destroy(),this.resetInternalLoader(p)}},y.destroy=function(){this.unregisterListeners(),this.destroyInternalLoaders()},y.onManifestLoading=function(p,n){var i=n.url;this.load({id:null,groupId:null,level:0,responseType:"text",type:m.PlaylistContextType.MANIFEST,url:i,deliveryDirectives:null})},y.onLevelLoading=function(p,n){var i=n.id,v=n.level,C=n.url,R=n.deliveryDirectives;this.load({id:i,groupId:null,level:v,responseType:"text",type:m.PlaylistContextType.LEVEL,url:C,deliveryDirectives:R})},y.onAudioTrackLoading=function(p,n){var i=n.id,v=n.groupId,C=n.url,R=n.deliveryDirectives;this.load({id:i,groupId:v,level:null,responseType:"text",type:m.PlaylistContextType.AUDIO_TRACK,url:C,deliveryDirectives:R})},y.onSubtitleTrackLoading=function(p,n){var i=n.id,v=n.groupId,C=n.url,R=n.deliveryDirectives;this.load({id:i,groupId:v,level:null,responseType:"text",type:m.PlaylistContextType.SUBTITLE_TRACK,url:C,deliveryDirectives:R})},y.load=function(p){var n,i=this.hls.config,v=this.getInternalLoader(p);if(v){var C=v.context;if(C&&C.url===p.url){M.logger.trace("[playlist-loader]: playlist request ongoing");return}M.logger.log("[playlist-loader]: aborting previous loader for type: "+p.type),v.abort()}var R,w,x,A;switch(p.type){case m.PlaylistContextType.MANIFEST:R=i.manifestLoadingMaxRetry,w=i.manifestLoadingTimeOut,x=i.manifestLoadingRetryDelay,A=i.manifestLoadingMaxRetryTimeout;break;case m.PlaylistContextType.LEVEL:case m.PlaylistContextType.AUDIO_TRACK:case m.PlaylistContextType.SUBTITLE_TRACK:R=0,w=i.levelLoadingTimeOut;break;default:R=i.levelLoadingMaxRetry,w=i.levelLoadingTimeOut,x=i.levelLoadingRetryDelay,A=i.levelLoadingMaxRetryTimeout;break}if(v=this.createInternalLoader(p),(n=p.deliveryDirectives)!==null&&n!==void 0&&n.part){var o;if(p.type===m.PlaylistContextType.LEVEL&&p.level!==null?o=this.hls.levels[p.level].details:p.type===m.PlaylistContextType.AUDIO_TRACK&&p.id!==null?o=this.hls.audioTracks[p.id].details:p.type===m.PlaylistContextType.SUBTITLE_TRACK&&p.id!==null&&(o=this.hls.subtitleTracks[p.id].details),o){var f=o.partTarget,E=o.targetduration;f&&E&&(w=Math.min(Math.max(f*3,E*.8)*1e3,w))}}var O={timeout:w,maxRetry:R,retryDelay:x,maxRetryDelay:A,highWaterMark:0},S={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};v.load(p,O,S)},y.loadsuccess=function(p,n,i,v){if(v===void 0&&(v=null),i.isSidxRequest){this.handleSidxRequest(p,i),this.handlePlaylistLoaded(p,n,i,v);return}this.resetInternalLoader(i.type);var C=p.data;if(C.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(p,i,"no EXTM3U delimiter",v);return}n.parsing.start=performance.now(),C.indexOf("#EXTINF:")>0||C.indexOf("#EXT-X-TARGETDURATION:")>0?this.handleTrackOrLevelPlaylist(p,n,i,v):this.handleMasterPlaylist(p,n,i,v)},y.loaderror=function(p,n,i){i===void 0&&(i=null),this.handleNetworkError(n,i,!1,p)},y.loadtimeout=function(p,n,i){i===void 0&&(i=null),this.handleNetworkError(n,i,!0)},y.handleMasterPlaylist=function(p,n,i,v){var C=this.hls,R=p.data,w=a(p,i),x=e.default.parseMasterPlaylist(R,w),A=x.levels,o=x.sessionData;if(!A.length){this.handleManifestParsingError(p,i,"no level found in manifest",v);return}var f=A.map(function(P){return{id:P.attrs.AUDIO,audioCodec:P.audioCodec}}),E=A.map(function(P){return{id:P.attrs.SUBTITLES,textCodec:P.textCodec}}),O=e.default.parseMasterPlaylistMedia(R,w,"AUDIO",f),S=e.default.parseMasterPlaylistMedia(R,w,"SUBTITLES",E),b=e.default.parseMasterPlaylistMedia(R,w,"CLOSED-CAPTIONS");if(O.length){var D=O.some(function(P){return!P.url});!D&&A[0].audioCodec&&!A[0].attrs.AUDIO&&(M.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),O.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new r.AttrList({}),bitrate:0,url:""}))}C.trigger(c.Events.MANIFEST_LOADED,{levels:A,audioTracks:O,subtitles:S,captions:b,url:w,stats:n,networkDetails:v,sessionData:o})},y.handleTrackOrLevelPlaylist=function(p,n,i,v){var C=this.hls,R=i.id,w=i.level,x=i.type,A=a(p,i),o=Object(N.isFiniteNumber)(R)?R:0,f=Object(N.isFiniteNumber)(w)?w:o,E=h(i),O=e.default.parseLevelPlaylist(p.data,A,f,E,o);if(!O.fragments.length){C.trigger(c.Events.ERROR,{type:u.ErrorTypes.NETWORK_ERROR,details:u.ErrorDetails.LEVEL_EMPTY_ERROR,fatal:!1,url:A,reason:"no fragments found in level",level:typeof i.level=="number"?i.level:void 0});return}if(x===m.PlaylistContextType.MANIFEST){var S={attrs:new r.AttrList({}),bitrate:0,details:O,name:"",url:A};C.trigger(c.Events.MANIFEST_LOADED,{levels:[S],audioTracks:[],url:A,stats:n,networkDetails:v,sessionData:null})}if(n.parsing.end=performance.now(),O.needSidxRanges){var b,D=(b=O.fragments[0].initSegment)===null||b===void 0?void 0:b.url;this.load({url:D,isSidxRequest:!0,type:x,level:w,levelDetails:O,id:R,groupId:null,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer",deliveryDirectives:null});return}i.levelDetails=O,this.handlePlaylistLoaded(p,n,i,v)},y.handleSidxRequest=function(p,n){var i=Object(g.parseSegmentIndex)(new Uint8Array(p.data));if(!i)return;var v=i.references,C=n.levelDetails;v.forEach(function(R,w){var x=R.info,A=C.fragments[w];A.byteRange.length===0&&A.setByteRange(String(1+x.end-x.start)+"@"+String(x.start)),A.initSegment&&A.initSegment.setByteRange(String(i.moovEndOffset)+"@0")})},y.handleManifestParsingError=function(p,n,i,v){this.hls.trigger(c.Events.ERROR,{type:u.ErrorTypes.NETWORK_ERROR,details:u.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:n.type===m.PlaylistContextType.MANIFEST,url:p.url,reason:i,response:p,context:n,networkDetails:v})},y.handleNetworkError=function(p,n,i,v){i===void 0&&(i=!1),M.logger.warn("[playlist-loader]: A network "+(i?"timeout":"error")+" occurred while loading "+p.type+" level: "+p.level+" id: "+p.id+' group-id: "'+p.groupId+'"');var C=u.ErrorDetails.UNKNOWN,R=!1,w=this.getInternalLoader(p);switch(p.type){case m.PlaylistContextType.MANIFEST:C=i?u.ErrorDetails.MANIFEST_LOAD_TIMEOUT:u.ErrorDetails.MANIFEST_LOAD_ERROR,R=!0;break;case m.PlaylistContextType.LEVEL:C=i?u.ErrorDetails.LEVEL_LOAD_TIMEOUT:u.ErrorDetails.LEVEL_LOAD_ERROR,R=!1;break;case m.PlaylistContextType.AUDIO_TRACK:C=i?u.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:u.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,R=!1;break;case m.PlaylistContextType.SUBTITLE_TRACK:C=i?u.ErrorDetails.SUBTITLE_TRACK_LOAD_TIMEOUT:u.ErrorDetails.SUBTITLE_LOAD_ERROR,R=!1;break}w&&this.resetInternalLoader(p.type);var x={type:u.ErrorTypes.NETWORK_ERROR,details:C,fatal:R,url:p.url,loader:w,context:p,networkDetails:n};v&&(x.response=v),this.hls.trigger(c.Events.ERROR,x)},y.handlePlaylistLoaded=function(p,n,i,v){var C=i.type,R=i.level,w=i.id,x=i.groupId,A=i.loader,o=i.levelDetails,f=i.deliveryDirectives;if(!(o!=null&&o.targetduration)){this.handleManifestParsingError(p,i,"invalid target duration",v);return}if(!A)return;o.live&&(A.getCacheAge&&(o.ageHeader=A.getCacheAge()||0),(!A.getCacheAge||isNaN(o.ageHeader))&&(o.ageHeader=0));switch(C){case m.PlaylistContextType.MANIFEST:case m.PlaylistContextType.LEVEL:this.hls.trigger(c.Events.LEVEL_LOADED,{details:o,level:R||0,id:w||0,stats:n,networkDetails:v,deliveryDirectives:f});break;case m.PlaylistContextType.AUDIO_TRACK:this.hls.trigger(c.Events.AUDIO_TRACK_LOADED,{details:o,id:w||0,groupId:x||"",stats:n,networkDetails:v,deliveryDirectives:f});break;case m.PlaylistContextType.SUBTITLE_TRACK:this.hls.trigger(c.Events.SUBTITLE_TRACK_LOADED,{details:o,id:w||0,groupId:x||"",stats:n,networkDetails:v,deliveryDirectives:f});break}},d}();U.default=l},"./src/polyfills/number.ts":function(Z,U,L){"use strict";L.r(U),L.d(U,"isFiniteNumber",function(){return N}),L.d(U,"MAX_SAFE_INTEGER",function(){return c});var N=Number.isFinite||function(u){return typeof u=="number"&&isFinite(u)},c=Number.MAX_SAFE_INTEGER||9007199254740991},"./src/remux/aac-helper.ts":function(Z,U,L){"use strict";L.r(U);var N=function(){function c(){}return c.getSilentFrame=function(M,g){switch(M){case"mp4a.40.2":if(g===1)return new Uint8Array([0,200,0,128,35,128]);if(g===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(g===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(g===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(g===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(g===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(g===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(g===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(g===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}();U.default=N},"./src/remux/mp4-generator.ts":function(Z,U,L){"use strict";L.r(U);var N=Math.pow(2,32)-1,c=function(){function u(){}return u.init=function(){u.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 g;for(g in u.types)u.types.hasOwnProperty(g)&&(u.types[g]=[g.charCodeAt(0),g.charCodeAt(1),g.charCodeAt(2),g.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]),m=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]);u.HDLR_TYPES={video:e,audio:m};var r=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),h=new Uint8Array([0,0,0,0,0,0,0,0]);u.STTS=u.STSC=u.STCO=h,u.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),u.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),u.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),u.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var a=new Uint8Array([105,115,111,109]),l=new Uint8Array([97,118,99,49]),d=new Uint8Array([0,0,0,1]);u.FTYP=u.box(u.types.ftyp,a,d,a,l),u.DINF=u.box(u.types.dinf,u.box(u.types.dref,r))},u.box=function(g){for(var e=8,m=arguments.length,r=new Array(m>1?m-1:0),h=1;h<m;h++)r[h-1]=arguments[h];for(var a=r.length,l=a;a--;)e+=r[a].byteLength;var d=new Uint8Array(e);for(d[0]=e>>24&255,d[1]=e>>16&255,d[2]=e>>8&255,d[3]=e&255,d.set(g,4),a=0,e=8;a<l;a++)d.set(r[a],e),e+=r[a].byteLength;return d},u.hdlr=function(g){return u.box(u.types.hdlr,u.HDLR_TYPES[g])},u.mdat=function(g){return u.box(u.types.mdat,g)},u.mdhd=function(g,e){e*=g;var m=Math.floor(e/(N+1)),r=Math.floor(e%(N+1));return u.box(u.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,g>>24&255,g>>16&255,g>>8&255,g&255,m>>24,m>>16&255,m>>8&255,m&255,r>>24,r>>16&255,r>>8&255,r&255,85,196,0,0]))},u.mdia=function(g){return u.box(u.types.mdia,u.mdhd(g.timescale,g.duration),u.hdlr(g.type),u.minf(g))},u.mfhd=function(g){return u.box(u.types.mfhd,new Uint8Array([0,0,0,0,g>>24,g>>16&255,g>>8&255,g&255]))},u.minf=function(g){return g.type==="audio"?u.box(u.types.minf,u.box(u.types.smhd,u.SMHD),u.DINF,u.stbl(g)):u.box(u.types.minf,u.box(u.types.vmhd,u.VMHD),u.DINF,u.stbl(g))},u.moof=function(g,e,m){return u.box(u.types.moof,u.mfhd(g),u.traf(m,e))},u.moov=function(g){for(var e=g.length,m=[];e--;)m[e]=u.trak(g[e]);return u.box.apply(null,[u.types.moov,u.mvhd(g[0].timescale,g[0].duration)].concat(m).concat(u.mvex(g)))},u.mvex=function(g){for(var e=g.length,m=[];e--;)m[e]=u.trex(g[e]);return u.box.apply(null,[u.types.mvex].concat(m))},u.mvhd=function(g,e){e*=g;var m=Math.floor(e/(N+1)),r=Math.floor(e%(N+1)),h=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,g>>24&255,g>>16&255,g>>8&255,g&255,m>>24,m>>16&255,m>>8&255,m&255,r>>24,r>>16&255,r>>8&255,r&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return u.box(u.types.mvhd,h)},u.sdtp=function(g){var e=g.samples||[],m=new Uint8Array(4+e.length),r,h;for(r=0;r<e.length;r++)h=e[r].flags,m[r+4]=h.dependsOn<<4|h.isDependedOn<<2|h.hasRedundancy;return u.box(u.types.sdtp,m)},u.stbl=function(g){return u.box(u.types.stbl,u.stsd(g),u.box(u.types.stts,u.STTS),u.box(u.types.stsc,u.STSC),u.box(u.types.stsz,u.STSZ),u.box(u.types.stco,u.STCO))},u.avc1=function(g){var e=[],m=[],r,h,a;for(r=0;r<g.sps.length;r++)h=g.sps[r],a=h.byteLength,e.push(a>>>8&255),e.push(a&255),e=e.concat(Array.prototype.slice.call(h));for(r=0;r<g.pps.length;r++)h=g.pps[r],a=h.byteLength,m.push(a>>>8&255),m.push(a&255),m=m.concat(Array.prototype.slice.call(h));var l=u.box(u.types.avcC,new Uint8Array([1,e[3],e[4],e[5],252|3,224|g.sps.length].concat(e).concat([g.pps.length]).concat(m))),d=g.width,y=g.height,s=g.pixelRatio[0],p=g.pixelRatio[1];return u.box(u.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,d>>8&255,d&255,y>>8&255,y&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]),l,u.box(u.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),u.box(u.types.pasp,new Uint8Array([s>>24,s>>16&255,s>>8&255,s&255,p>>24,p>>16&255,p>>8&255,p&255])))},u.esds=function(g){var e=g.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(g.config).concat([6,1,2]))},u.mp4a=function(g){var e=g.samplerate;return u.box(u.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,g.channelCount,0,16,0,0,0,0,e>>8&255,e&255,0,0]),u.box(u.types.esds,u.esds(g)))},u.mp3=function(g){var e=g.samplerate;return u.box(u.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,g.channelCount,0,16,0,0,0,0,e>>8&255,e&255,0,0]))},u.stsd=function(g){return g.type==="audio"?!g.isAAC&&g.codec==="mp3"?u.box(u.types.stsd,u.STSD,u.mp3(g)):u.box(u.types.stsd,u.STSD,u.mp4a(g)):u.box(u.types.stsd,u.STSD,u.avc1(g))},u.tkhd=function(g){var e=g.id,m=g.duration*g.timescale,r=g.width,h=g.height,a=Math.floor(m/(N+1)),l=Math.floor(m%(N+1));return u.box(u.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,a>>24,a>>16&255,a>>8&255,a&255,l>>24,l>>16&255,l>>8&255,l&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,r>>8&255,r&255,0,0,h>>8&255,h&255,0,0]))},u.traf=function(g,e){var m=u.sdtp(g),r=g.id,h=Math.floor(e/(N+1)),a=Math.floor(e%(N+1));return u.box(u.types.traf,u.box(u.types.tfhd,new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,r&255])),u.box(u.types.tfdt,new Uint8Array([1,0,0,0,h>>24,h>>16&255,h>>8&255,h&255,a>>24,a>>16&255,a>>8&255,a&255])),u.trun(g,m.length+16+20+8+16+8+8),m)},u.trak=function(g){return g.duration=g.duration||4294967295,u.box(u.types.trak,u.tkhd(g),u.mdia(g))},u.trex=function(g){var e=g.id;return u.box(u.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]))},u.trun=function(g,e){var m=g.samples||[],r=m.length,h=12+16*r,a=new Uint8Array(h),l,d,y,s,p,n;for(e+=8+h,a.set([0,0,15,1,r>>>24&255,r>>>16&255,r>>>8&255,r&255,e>>>24&255,e>>>16&255,e>>>8&255,e&255],0),l=0;l<r;l++)d=m[l],y=d.duration,s=d.size,p=d.flags,n=d.cts,a.set([y>>>24&255,y>>>16&255,y>>>8&255,y&255,s>>>24&255,s>>>16&255,s>>>8&255,s&255,p.isLeading<<2|p.dependsOn,p.isDependedOn<<6|p.hasRedundancy<<4|p.paddingValue<<1|p.isNonSync,p.degradPrio&240<<8,p.degradPrio&15,n>>>24&255,n>>>16&255,n>>>8&255,n&255],12+16*l);return u.box(u.types.trun,a)},u.initSegment=function(g){u.types||u.init();var e=u.moov(g),m=new Uint8Array(u.FTYP.byteLength+e.byteLength);return m.set(u.FTYP),m.set(e,u.FTYP.byteLength),m},u}();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,U.default=c},"./src/remux/mp4-remuxer.ts":function(Z,U,L){"use strict";L.r(U),L.d(U,"default",function(){return n}),L.d(U,"normalizePts",function(){return i});var N=L("./src/polyfills/number.ts"),c=L("./src/remux/aac-helper.ts"),u=L("./src/remux/mp4-generator.ts"),M=L("./src/events.ts"),g=L("./src/errors.ts"),e=L("./src/utils/logger.ts"),m=L("./src/types/loader.ts"),r=L("./src/utils/timescale-conversion.ts");function h(){return h=Object.assign||function(w){for(var x=1;x<arguments.length;x++){var A=arguments[x];for(var o in A)Object.prototype.hasOwnProperty.call(A,o)&&(w[o]=A[o])}return w},h.apply(this,arguments)}var a=10*1e3,l=1024,d=1152,y=null,s=null,p=!1,n=function(){function w(A,o,f,E){if(E===void 0&&(E=""),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=A,this.config=o,this.typeSupported=f,this.ISGenerated=!1,y===null){var O=navigator.userAgent||"",S=O.match(/Chrome\/(\d+)/i);y=S?parseInt(S[1]):0}if(s===null){var b=navigator.userAgent.match(/Safari\/(\d+)/i);s=b?parseInt(b[1]):0}p=!!y&&y<75||!!s&&s<600}var x=w.prototype;return x.destroy=function(){},x.resetTimeStamp=function(o){e.logger.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=o},x.resetNextTimestamp=function(){e.logger.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1},x.resetInitSegment=function(){e.logger.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1},x.getVideoStartPts=function(o){var f=!1,E=o.reduce(function(O,S){var b=S.pts-O;return b<-4294967296?(f=!0,i(O,S.pts)):b>0?O:S.pts},o[0].pts);return f&&e.logger.debug("PTS rollover detected"),E},x.remux=function(o,f,E,O,S,b,D,P){var I,F,K,j,Y,W,Q=S,ie=S,Ee=o.pid>-1,pe=f.pid>-1,De=f.samples.length,Me=o.samples.length>0,Ue=De>1,Ie=(!Ee||Me)&&(!pe||Ue)||this.ISGenerated||D;if(Ie){this.ISGenerated||(K=this.generateIS(o,f,S));var ne=this.isVideoContiguous,B=-1;if(Ue&&(B=v(f.samples),!ne&&this.config.forceKeyFrameOnDiscontinuity))if(W=!0,B>0){e.logger.warn("[mp4-remuxer]: Dropped "+B+" out of "+De+" video samples due to a missing keyframe");var z=this.getVideoStartPts(f.samples);f.samples=f.samples.slice(B),f.dropped+=B,ie+=(f.samples[0].pts-z)/(f.timescale||9e4)}else B===-1&&(e.logger.warn("[mp4-remuxer]: No keyframe found out of "+De+" video samples"),W=!1);if(this.ISGenerated){if(Me&&Ue){var H=this.getVideoStartPts(f.samples),ee=i(o.samples[0].pts,H)-H,X=ee/f.inputTimeScale;Q+=Math.max(0,X),ie+=Math.max(0,-X)}if(Me){if(o.samplerate||(e.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),K=this.generateIS(o,f,S)),F=this.remuxAudio(o,Q,this.isAudioContiguous,b,pe||Ue||P===m.PlaylistLevelType.AUDIO?ie:void 0),Ue){var me=F?F.endPTS-F.startPTS:0;f.inputTimeScale||(e.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),K=this.generateIS(o,f,S)),I=this.remuxVideo(f,ie,ne,me)}}else Ue&&(I=this.remuxVideo(f,ie,ne,0));I&&(I.firstKeyFrame=B,I.independent=B!==-1)}}return this.ISGenerated&&(E.samples.length&&(Y=this.remuxID3(E,S)),O.samples.length&&(j=this.remuxText(O,S))),{audio:F,video:I,initSegment:K,independent:W,text:j,id3:Y}},x.generateIS=function(o,f,E){var O=o.samples,S=f.samples,b=this.typeSupported,D={},P=!Object(N.isFiniteNumber)(this._initPTS),I="audio/mp4",F,K,j;if(P&&(F=K=Infinity),o.config&&O.length&&(o.timescale=o.samplerate,o.isAAC||(b.mpeg?(I="audio/mpeg",o.codec=""):b.mp3&&(o.codec="mp3")),D.audio={id:"audio",container:I,codec:o.codec,initSegment:!o.isAAC&&b.mpeg?new Uint8Array(0):u.default.initSegment([o]),metadata:{channelCount:o.channelCount}},P&&(j=o.inputTimeScale,F=K=O[0].pts-Math.round(j*E))),f.sps&&f.pps&&S.length&&(f.timescale=f.inputTimeScale,D.video={id:"main",container:"video/mp4",codec:f.codec,initSegment:u.default.initSegment([f]),metadata:{width:f.width,height:f.height}},P)){j=f.inputTimeScale;var Y=this.getVideoStartPts(S),W=Math.round(j*E);K=Math.min(K,i(S[0].dts,Y)-W),F=Math.min(F,Y-W)}if(Object.keys(D).length)return this.ISGenerated=!0,P&&(this._initPTS=F,this._initDTS=K),{tracks:D,initPTS:F,timescale:j}},x.remuxVideo=function(o,f,E,O){var S=o.inputTimeScale,b=o.samples,D=[],P=b.length,I=this._initPTS,F=this.nextAvcDts,K=8,j,Y,W,Q=Number.POSITIVE_INFINITY,ie=Number.NEGATIVE_INFINITY,Ee=0,pe=!1;if(!E||F===null){var De=f*S,Me=b[0].pts-i(b[0].dts,b[0].pts);F=De-Me}for(var Ue=0;Ue<P;Ue++){var Ie=b[Ue];if(Ie.pts=i(Ie.pts-I,F),Ie.dts=i(Ie.dts-I,F),Ie.dts>Ie.pts){var ne=9e4*.2;Ee=Math.max(Math.min(Ee,Ie.pts-Ie.dts),-1*ne)}Ie.dts<b[Ue>0?Ue-1:Ue].dts&&(pe=!0)}pe&&b.sort(function(Rt,rt){var st=Rt.dts-rt.dts,qe=Rt.pts-rt.pts;return st||qe}),Y=b[0].dts,W=b[b.length-1].dts;var B=Math.round((W-Y)/(P-1));if(Ee<0){if(Ee<B*-2){e.logger.warn("PTS < DTS detected in video samples, offsetting DTS from PTS by "+Object(r.toMsFromMpegTsClock)(-B,!0)+" ms");for(var z=Ee,H=0;H<P;H++)b[H].dts=z=Math.max(z,b[H].pts-B),b[H].pts=Math.max(z,b[H].pts)}else{e.logger.warn("PTS < DTS detected in video samples, shifting DTS by "+Object(r.toMsFromMpegTsClock)(Ee,!0)+" ms to overcome this issue");for(var ee=0;ee<P;ee++)b[ee].dts=b[ee].dts+Ee}Y=b[0].dts}if(E){var X=Y-F,me=X>B,je=X<-1;if(me||je){me?e.logger.warn("AVC: "+Object(r.toMsFromMpegTsClock)(X,!0)+" ms ("+X+"dts) hole between fragments detected, filling it"):e.logger.warn("AVC: "+Object(r.toMsFromMpegTsClock)(-X,!0)+" ms ("+X+"dts) overlapping between fragments detected"),Y=F;var Je=b[0].pts-X;b[0].dts=Y,b[0].pts=Je,e.logger.log("Video: First PTS/DTS adjusted: "+Object(r.toMsFromMpegTsClock)(Je,!0)+"/"+Object(r.toMsFromMpegTsClock)(Y,!0)+", delta: "+Object(r.toMsFromMpegTsClock)(X,!0)+" ms")}}p&&(Y=Math.max(0,Y));for(var oe=0,Ae=0,ye=0;ye<P;ye++){for(var Le=b[ye],We=Le.units,Xe=We.length,ct=0,lt=0;lt<Xe;lt++)ct+=We[lt].data.length;Ae+=ct,oe+=Xe,Le.length=ct,Le.dts=Math.max(Le.dts,Y),Le.pts=Math.max(Le.pts,Le.dts,0),Q=Math.min(Le.pts,Q),ie=Math.max(Le.pts,ie)}W=b[P-1].dts;var St=Ae+4*oe+8,Dt;try{Dt=new Uint8Array(St)}catch(Rt){this.observer.emit(M.Events.ERROR,M.Events.ERROR,{type:g.ErrorTypes.MUX_ERROR,details:g.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:St,reason:"fail allocating video mdat "+St});return}var bt=new DataView(Dt.buffer);bt.setUint32(0,St),Dt.set(u.default.types.mdat,4);for(var ht=0;ht<P;ht++){for(var Ut=b[ht],Ft=Ut.units,ve=0,se=0,le=Ft.length;se<le;se++){var fe=Ft[se],Re=fe.data,ce=fe.data.byteLength;bt.setUint32(K,ce),K+=4,Dt.set(Re,K),K+=ce,ve+=4+ce}if(ht<P-1)j=b[ht+1].dts-Ut.dts;else{var he=this.config,Se=Ut.dts-b[ht>0?ht-1:ht].dts;if(he.stretchShortVideoTrack&&this.nextAudioPts!==null){var we=Math.floor(he.maxBufferHole*S),Ze=(O?Q+O*S:this.nextAudioPts)-Ut.pts;Ze>we?(j=Ze-Se,j<0&&(j=Se),e.logger.log("[mp4-remuxer]: It is approximately "+Ze/90+" ms to the next segment; using duration "+j/90+" ms for the last video frame.")):j=Se}else j=Se}var Ye=Math.round(Ut.pts-Ut.dts);D.push(new C(Ut.key,j,ve,Ye))}if(D.length&&y&&y<70){var it=D[0].flags;it.dependsOn=2,it.isNonSync=0}console.assert(j!==void 0,"mp4SampleDuration must be computed"),this.nextAvcDts=F=W+j,this.isVideoContiguous=!0;var Et=u.default.moof(o.sequenceNumber++,Y,h({},o,{samples:D})),Pt="video",zt={data1:Et,data2:Dt,startPTS:Q/S,endPTS:(ie+j)/S,startDTS:Y/S,endDTS:F/S,type:Pt,hasAudio:!1,hasVideo:!0,nb:D.length,dropped:o.dropped};return o.samples=[],o.dropped=0,console.assert(Dt.length,"MDAT length must not be zero"),zt},x.remuxAudio=function(o,f,E,O,S){var b=o.inputTimeScale,D=o.samplerate?o.samplerate:b,P=b/D,I=o.isAAC?l:d,F=I*P,K=this._initPTS,j=!o.isAAC&&this.typeSupported.mpeg,Y=[],W=o.samples,Q=j?0:8,ie=this.nextAudioPts||-1,Ee=f*b;if(this.isAudioContiguous=E=E||W.length&&ie>0&&(O&&Math.abs(Ee-ie)<9e3||Math.abs(i(W[0].pts-K,Ee)-ie)<20*F),W.forEach(function(Re){Re.pts=i(Re.pts-K,Ee)}),!E||ie<0){if(W=W.filter(function(Re){return Re.pts>=0}),!W.length)return;S===0?ie=0:O?ie=Math.max(0,Ee):ie=W[0].pts}if(o.isAAC)for(var pe=S!==void 0,De=this.config.maxAudioFramesDrift,Me=0,Ue=ie;Me<W.length;Me++){var Ie=W[Me],ne=Ie.pts,B=ne-Ue,z=Math.abs(1e3*B/b);if(B<=-De*F&&pe)Me===0&&(e.logger.warn("Audio frame @ "+(ne/b).toFixed(3)+"s overlaps nextAudioPts by "+Math.round(1e3*B/b)+" ms."),this.nextAudioPts=ie=Ue=ne);else if(B>=De*F&&z<a&&pe){var H=Math.round(B/F);Ue=ne-H*F,Ue<0&&(H--,Ue+=F),Me===0&&(this.nextAudioPts=ie=Ue),e.logger.warn("[mp4-remuxer]: Injecting "+H+" audio frame @ "+(Ue/b).toFixed(3)+"s due to "+Math.round(1e3*B/b)+" ms gap.");for(var ee=0;ee<H;ee++){var X=Math.max(Ue,0),me=c.default.getSilentFrame(o.manifestCodec||o.codec,o.channelCount);me||(e.logger.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),me=Ie.unit.subarray()),W.splice(Me,0,{unit:me,pts:X}),Ue+=F,Me++}}Ie.pts=Ue,Ue+=F}for(var je=null,Je=null,oe,Ae=0,ye=W.length;ye--;)Ae+=W[ye].unit.byteLength;for(var Le=0,We=W.length;Le<We;Le++){var Xe=W[Le],ct=Xe.unit,lt=Xe.pts;if(Je!==null){var St=Y[Le-1];St.duration=Math.round((lt-Je)/P)}else if(E&&o.isAAC&&(lt=ie),je=lt,Ae>0){Ae+=Q;try{oe=new Uint8Array(Ae)}catch(Re){this.observer.emit(M.Events.ERROR,M.Events.ERROR,{type:g.ErrorTypes.MUX_ERROR,details:g.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:Ae,reason:"fail allocating audio mdat "+Ae});return}if(!j){var Dt=new DataView(oe.buffer);Dt.setUint32(0,Ae),oe.set(u.default.types.mdat,4)}}else return;oe.set(ct,Q);var bt=ct.byteLength;Q+=bt,Y.push(new C(!0,I,bt,0)),Je=lt}var ht=Y.length;if(!ht)return;var Ut=Y[Y.length-1];this.nextAudioPts=ie=Je+P*Ut.duration;var Ft=j?new Uint8Array(0):u.default.moof(o.sequenceNumber++,je/P,h({},o,{samples:Y}));o.samples=[];var ve=je/b,se=ie/b,le="audio",fe={data1:Ft,data2:oe,startPTS:ve,endPTS:se,startDTS:ve,endDTS:se,type:le,hasAudio:!0,hasVideo:!1,nb:ht};return this.isAudioContiguous=!0,console.assert(oe.length,"MDAT length must not be zero"),fe},x.remuxEmptyAudio=function(o,f,E,O){var S=o.inputTimeScale,b=o.samplerate?o.samplerate:S,D=S/b,P=this.nextAudioPts,I=(P!==null?P:O.startDTS*S)+this._initDTS,F=O.endDTS*S+this._initDTS,K=D*l,j=Math.ceil((F-I)/K),Y=c.default.getSilentFrame(o.manifestCodec||o.codec,o.channelCount);if(e.logger.warn("[mp4-remuxer]: remux empty Audio"),!Y){e.logger.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var W=[],Q=0;Q<j;Q++){var ie=I+Q*K;W.push({unit:Y,pts:ie,dts:ie})}return o.samples=W,this.remuxAudio(o,f,E,!1)},x.remuxID3=function(o,f){var E=o.samples.length;if(!E)return;for(var O=o.inputTimeScale,S=this._initPTS,b=this._initDTS,D=0;D<E;D++){var P=o.samples[D];P.pts=i(P.pts-S,f*O)/O,P.dts=i(P.dts-b,f*O)/O}var I=o.samples;return o.samples=[],{samples:I}},x.remuxText=function(o,f){var E=o.samples.length;if(!E)return;for(var O=o.inputTimeScale,S=this._initPTS,b=0;b<E;b++){var D=o.samples[b];D.pts=i(D.pts-S,f*O)/O}o.samples.sort(function(I,F){return I.pts-F.pts});var P=o.samples;return o.samples=[],{samples:P}},w}();function i(w,x){var A;if(x===null)return w;for(x<w?A=-8589934592:A=8589934592;Math.abs(w-x)>4294967296;)w+=A;return w}function v(w){for(var x=0;x<w.length;x++)if(w[x].key)return x;return-1}var C=function(x,A,o,f){this.size=void 0,this.duration=void 0,this.cts=void 0,this.flags=void 0,this.duration=A,this.size=o,this.cts=f,this.flags=new R(x)},R=function(x){this.isLeading=0,this.isDependedOn=0,this.hasRedundancy=0,this.degradPrio=0,this.dependsOn=1,this.isNonSync=1,this.dependsOn=x?2:1,this.isNonSync=x?0:1}},"./src/remux/passthrough-remuxer.ts":function(Z,U,L){"use strict";L.r(U);var N=L("./src/polyfills/number.ts"),c=L("./src/utils/mp4-tools.ts"),u=L("./src/loader/fragment.ts"),M=L("./src/utils/logger.ts"),g=function(){function r(){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 h=r.prototype;return h.destroy=function(){},h.resetTimeStamp=function(l){this.initPTS=l,this.lastEndDTS=null},h.resetNextTimestamp=function(){this.lastEndDTS=null},h.resetInitSegment=function(l,d,y){this.audioCodec=d,this.videoCodec=y,this.generateInitSegment(l),this.emitInitSegment=!0},h.generateInitSegment=function(l){var d=this.audioCodec,y=this.videoCodec;if(!l||!l.byteLength){this.initTracks=void 0,this.initData=void 0;return}var s=this.initData=Object(c.parseInitSegment)(l);d||(d=m(s.audio,u.ElementaryStreamTypes.AUDIO)),y||(y=m(s.video,u.ElementaryStreamTypes.VIDEO));var p={};s.audio&&s.video?p.audiovideo={container:"video/mp4",codec:d+","+y,initSegment:l,id:"main"}:s.audio?p.audio={container:"audio/mp4",codec:d,initSegment:l,id:"audio"}:s.video?p.video={container:"video/mp4",codec:y,initSegment:l,id:"main"}:M.logger.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=p},h.remux=function(l,d,y,s,p){var n=this.initPTS,i=this.lastEndDTS,v={audio:void 0,video:void 0,text:s,id3:y,initSegment:void 0};Object(N.isFiniteNumber)(i)||(i=this.lastEndDTS=p||0);var C=d.samples;if(!C||!C.length)return v;var R={initPTS:void 0,timescale:1},w=this.initData;if((!w||!w.length)&&(this.generateInitSegment(C),w=this.initData),!w||!w.length)return M.logger.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),v;this.emitInitSegment&&(R.tracks=this.initTracks,this.emitInitSegment=!1),Object(N.isFiniteNumber)(n)||(this.initPTS=R.initPTS=n=e(w,C,i));var x=Object(c.getDuration)(C,w),A=i,o=x+A;Object(c.offsetStartDTS)(w,C,n),x>0?this.lastEndDTS=o:(M.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var f=!!w.audio,E=!!w.video,O="";f&&(O+="audio"),E&&(O+="video");var S={data1:C,startPTS:A,startDTS:A,endPTS:o,endDTS:o,type:O,hasAudio:f,hasVideo:E,nb:1,dropped:0};return v.audio=S.type==="audio"?S:void 0,v.video=S.type!=="audio"?S:void 0,v.text=s,v.id3=y,v.initSegment=R,v},r}(),e=function(h,a,l){return Object(c.getStartDTS)(h,a)-l};function m(r,h){var a=r==null?void 0:r.codec;return a&&a.length>4?a:a==="hvc1"?"hvc1.1.c.L120.90":a==="av01"?"av01.0.04M.08":a==="avc1"||h===u.ElementaryStreamTypes.VIDEO?"avc1.42e01e":"mp4a.40.5"}U.default=g},"./src/task-loop.ts":function(Z,U,L){"use strict";L.r(U),L.d(U,"default",function(){return N});var N=function(){function c(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var u=c.prototype;return u.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},u.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},u.onHandlerDestroyed=function(){},u.hasInterval=function(){return!!this._tickInterval},u.hasNextTick=function(){return!!this._tickTimer},u.setInterval=function(g){return this._tickInterval?!1:(this._tickInterval=self.setInterval(this._boundTick,g),!0)},u.clearInterval=function(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1},u.clearNextTick=function(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1},u.tick=function(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},u.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},u.doTick=function(){},c}()},"./src/types/cmcd.ts":function(Z,U,L){"use strict";L.r(U),L.d(U,"CMCDVersion",function(){return N}),L.d(U,"CMCDObjectType",function(){return c}),L.d(U,"CMCDStreamingFormat",function(){return u}),L.d(U,"CMCDStreamType",function(){return M});var N=1,c;(function(g){g.MANIFEST="m",g.AUDIO="a",g.VIDEO="v",g.MUXED="av",g.INIT="i",g.CAPTION="c",g.TIMED_TEXT="tt",g.KEY="k",g.OTHER="o"})(c||(c={}));var u;(function(g){g.DASH="d",g.HLS="h",g.SMOOTH="s",g.OTHER="o"})(u||(u={}));var M;(function(g){g.VOD="v",g.LIVE="l"})(M||(M={}))},"./src/types/level.ts":function(Z,U,L){"use strict";L.r(U),L.d(U,"HlsSkip",function(){return u}),L.d(U,"getSkipValue",function(){return M}),L.d(U,"HlsUrlParameters",function(){return g}),L.d(U,"Level",function(){return e});function N(m,r){for(var h=0;h<r.length;h++){var a=r[h];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(m,a.key,a)}}function c(m,r,h){return r&&N(m.prototype,r),h&&N(m,h),m}var u;(function(m){m.No="",m.Yes="YES",m.v2="v2"})(u||(u={}));function M(m,r){var h=m.canSkipUntil,a=m.canSkipDateRanges,l=m.endSN,d=r!==void 0?r-l:0;return h&&d<h?a?u.v2:u.Yes:u.No}var g=function(){function m(h,a,l){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=h,this.part=a,this.skip=l}var r=m.prototype;return r.addDirectives=function(a){var l=new self.URL(a);return this.msn!==void 0&&l.searchParams.set("_HLS_msn",this.msn.toString()),this.part!==void 0&&l.searchParams.set("_HLS_part",this.part.toString()),this.skip&&l.searchParams.set("_HLS_skip",this.skip),l.toString()},m}(),e=function(){function m(r){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=[r.url],this.attrs=r.attrs,this.bitrate=r.bitrate,r.details&&(this.details=r.details),this.id=r.id||0,this.name=r.name,this.width=r.width||0,this.height=r.height||0,this.audioCodec=r.audioCodec,this.videoCodec=r.videoCodec,this.unknownCodecs=r.unknownCodecs,this.codecSet=[r.videoCodec,r.audioCodec].filter(function(h){return h}).join(",").replace(/\.[^.,]+/g,"")}return c(m,[{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(h){var a=h%this.url.length;this._urlId!==a&&(this.details=void 0,this._urlId=a)}}]),m}()},"./src/types/loader.ts":function(Z,U,L){"use strict";L.r(U),L.d(U,"PlaylistContextType",function(){return N}),L.d(U,"PlaylistLevelType",function(){return c});var N;(function(u){u.MANIFEST="manifest",u.LEVEL="level",u.AUDIO_TRACK="audioTrack",u.SUBTITLE_TRACK="subtitleTrack"})(N||(N={}));var c;(function(u){u.MAIN="main",u.AUDIO="audio",u.SUBTITLE="subtitle"})(c||(c={}))},"./src/types/transmuxer.ts":function(Z,U,L){"use strict";L.r(U),L.d(U,"ChunkMetadata",function(){return N});var N=function(M,g,e,m,r,h){m===void 0&&(m=0),r===void 0&&(r=-1),h===void 0&&(h=!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=M,this.sn=g,this.id=e,this.size=m,this.part=r,this.partial=h};function c(){return{start:0,executeStart:0,executeEnd:0,end:0}}},"./src/utils/attr-list.ts":function(Z,U,L){"use strict";L.r(U),L.d(U,"AttrList",function(){return u});var N=/^(\d+)x(\d+)$/,c=/\s*(.+?)\s*=((?:\".*?\")|.*?)(?:,|$)/g,u=function(){function M(e){typeof e=="string"&&(e=M.parseAttrList(e));for(var m in e)e.hasOwnProperty(m)&&(this[m]=e[m])}var g=M.prototype;return g.decimalInteger=function(m){var r=parseInt(this[m],10);return r>Number.MAX_SAFE_INTEGER?Infinity:r},g.hexadecimalInteger=function(m){if(this[m]){var r=(this[m]||"0x").slice(2);r=(r.length&1?"0":"")+r;for(var h=new Uint8Array(r.length/2),a=0;a<r.length/2;a++)h[a]=parseInt(r.slice(a*2,a*2+2),16);return h}else return null},g.hexadecimalIntegerAsNumber=function(m){var r=parseInt(this[m],16);return r>Number.MAX_SAFE_INTEGER?Infinity:r},g.decimalFloatingPoint=function(m){return parseFloat(this[m])},g.optionalFloat=function(m,r){var h=this[m];return h?parseFloat(h):r},g.enumeratedString=function(m){return this[m]},g.bool=function(m){return this[m]==="YES"},g.decimalResolution=function(m){var r=N.exec(this[m]);return r===null?void 0:{width:parseInt(r[1],10),height:parseInt(r[2],10)}},M.parseAttrList=function(m){var r,h={},a='"';for(c.lastIndex=0;(r=c.exec(m))!==null;){var l=r[2];l.indexOf(a)===0&&l.lastIndexOf(a)===l.length-1&&(l=l.slice(1,-1)),h[r[1]]=l}return h},M}()},"./src/utils/binary-search.ts":function(Z,U,L){"use strict";L.r(U);var N={search:function(u,M){for(var g=0,e=u.length-1,m=null,r=null;g<=e;){m=(g+e)/2|0,r=u[m];var h=M(r);if(h>0)g=m+1;else if(h<0)e=m-1;else return r}return null}};U.default=N},"./src/utils/buffer-helper.ts":function(Z,U,L){"use strict";L.r(U),L.d(U,"BufferHelper",function(){return u});var N=L("./src/utils/logger.ts"),c={length:0,start:function(){return 0},end:function(){return 0}},u=function(){function M(){}return M.isBuffered=function(e,m){try{if(e){for(var r=M.getBuffered(e),h=0;h<r.length;h++)if(m>=r.start(h)&&m<=r.end(h))return!0}}catch(a){}return!1},M.bufferInfo=function(e,m,r){try{if(e){var h=M.getBuffered(e),a=[],l;for(l=0;l<h.length;l++)a.push({start:h.start(l),end:h.end(l)});return this.bufferedInfo(a,m,r)}}catch(d){}return{len:0,start:m,end:m,nextStart:void 0}},M.bufferedInfo=function(e,m,r){m=Math.max(0,m),e.sort(function(R,w){var x=R.start-w.start;return x||w.end-R.end});var h=[];if(r)for(var a=0;a<e.length;a++){var l=h.length;if(l){var d=h[l-1].end;e[a].start-d<r?e[a].end>d&&(h[l-1].end=e[a].end):h.push(e[a])}else h.push(e[a])}else h=e;for(var y=0,s,p=m,n=m,i=0;i<h.length;i++){var v=h[i].start,C=h[i].end;if(m+r>=v&&m<C)p=v,n=C,y=n-m;else if(m+r<v){s=v;break}}return{len:y,start:p||0,end:n||0,nextStart:s}},M.getBuffered=function(e){try{return e.buffered}catch(m){return N.logger.log("failed to get media.buffered",m),c}},M}()},"./src/utils/cea-608-parser.ts":function(Z,U,L){"use strict";L.r(U),L.d(U,"Row",function(){return n}),L.d(U,"CaptionScreen",function(){return i});var N=L("./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},u=function(o){var f=o;return c.hasOwnProperty(o)&&(f=c[o]),String.fromCharCode(f)},M=15,g=100,e={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},m={17:2,18:4,21:6,22:8,23:10,19:13,20:15},r={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},h={25:2,26:4,29:6,30:8,31:10,27:13,28:15},a=["white","green","blue","cyan","red","yellow","magenta","black","transparent"],l;(function(A){A[A.ERROR=0]="ERROR",A[A.TEXT=1]="TEXT",A[A.WARNING=2]="WARNING",A[A.INFO=2]="INFO",A[A.DEBUG=3]="DEBUG",A[A.DATA=3]="DATA"})(l||(l={}));var d=function(){function A(){this.time=null,this.verboseLevel=l.ERROR}var o=A.prototype;return o.log=function(E,O){this.verboseLevel>=E&&N.logger.log(this.time+" ["+E+"] "+O)},A}(),y=function(o){for(var f=[],E=0;E<o.length;E++)f.push(o[E].toString(16));return f},s=function(){function A(f,E,O,S,b){this.foreground=void 0,this.underline=void 0,this.italics=void 0,this.background=void 0,this.flash=void 0,this.foreground=f||"white",this.underline=E||!1,this.italics=O||!1,this.background=S||"black",this.flash=b||!1}var o=A.prototype;return o.reset=function(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1},o.setStyles=function(E){for(var O=["foreground","underline","italics","background","flash"],S=0;S<O.length;S++){var b=O[S];E.hasOwnProperty(b)&&(this[b]=E[b])}},o.isDefault=function(){return this.foreground==="white"&&!this.underline&&!this.italics&&this.background==="black"&&!this.flash},o.equals=function(E){return this.foreground===E.foreground&&this.underline===E.underline&&this.italics===E.italics&&this.background===E.background&&this.flash===E.flash},o.copy=function(E){this.foreground=E.foreground,this.underline=E.underline,this.italics=E.italics,this.background=E.background,this.flash=E.flash},o.toString=function(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash},A}(),p=function(){function A(f,E,O,S,b,D){this.uchar=void 0,this.penState=void 0,this.uchar=f||" ",this.penState=new s(E,O,S,b,D)}var o=A.prototype;return o.reset=function(){this.uchar=" ",this.penState.reset()},o.setChar=function(E,O){this.uchar=E,this.penState.copy(O)},o.setPenState=function(E){this.penState.copy(E)},o.equals=function(E){return this.uchar===E.uchar&&this.penState.equals(E.penState)},o.copy=function(E){this.uchar=E.uchar,this.penState.copy(E.penState)},o.isEmpty=function(){return this.uchar===" "&&this.penState.isDefault()},A}(),n=function(){function A(f){this.chars=void 0,this.pos=void 0,this.currPenState=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chars=[];for(var E=0;E<g;E++)this.chars.push(new p);this.logger=f,this.pos=0,this.currPenState=new s}var o=A.prototype;return o.equals=function(E){for(var O=!0,S=0;S<g;S++)if(!this.chars[S].equals(E.chars[S])){O=!1;break}return O},o.copy=function(E){for(var O=0;O<g;O++)this.chars[O].copy(E.chars[O])},o.isEmpty=function(){for(var E=!0,O=0;O<g;O++)if(!this.chars[O].isEmpty()){E=!1;break}return E},o.setCursor=function(E){this.pos!==E&&(this.pos=E),this.pos<0?(this.logger.log(l.DEBUG,"Negative cursor position "+this.pos),this.pos=0):this.pos>g&&(this.logger.log(l.DEBUG,"Too large cursor position "+this.pos),this.pos=g)},o.moveCursor=function(E){var O=this.pos+E;if(E>1)for(var S=this.pos+1;S<O+1;S++)this.chars[S].setPenState(this.currPenState);this.setCursor(O)},o.backSpace=function(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)},o.insertChar=function(E){E>=144&&this.backSpace();var O=u(E);if(this.pos>=g){this.logger.log(l.ERROR,"Cannot insert "+E.toString(16)+" ("+O+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(O,this.currPenState),this.moveCursor(1)},o.clearFromPos=function(E){var O;for(O=E;O<g;O++)this.chars[O].reset()},o.clear=function(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()},o.clearToEndOfRow=function(){this.clearFromPos(this.pos)},o.getTextString=function(){for(var E=[],O=!0,S=0;S<g;S++){var b=this.chars[S].uchar;b!==" "&&(O=!1),E.push(b)}return O?"":E.join("")},o.setPenStyles=function(E){this.currPenState.setStyles(E);var O=this.chars[this.pos];O.setPenState(this.currPenState)},A}(),i=function(){function A(f){this.rows=void 0,this.currRow=void 0,this.nrRollUpRows=void 0,this.lastOutputScreen=void 0,this.logger=void 0,this.rows=[];for(var E=0;E<M;E++)this.rows.push(new n(f));this.logger=f,this.currRow=M-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.reset()}var o=A.prototype;return o.reset=function(){for(var E=0;E<M;E++)this.rows[E].clear();this.currRow=M-1},o.equals=function(E){for(var O=!0,S=0;S<M;S++)if(!this.rows[S].equals(E.rows[S])){O=!1;break}return O},o.copy=function(E){for(var O=0;O<M;O++)this.rows[O].copy(E.rows[O])},o.isEmpty=function(){for(var E=!0,O=0;O<M;O++)if(!this.rows[O].isEmpty()){E=!1;break}return E},o.backSpace=function(){var E=this.rows[this.currRow];E.backSpace()},o.clearToEndOfRow=function(){var E=this.rows[this.currRow];E.clearToEndOfRow()},o.insertChar=function(E){var O=this.rows[this.currRow];O.insertChar(E)},o.setPen=function(E){var O=this.rows[this.currRow];O.setPenStyles(E)},o.moveCursor=function(E){var O=this.rows[this.currRow];O.moveCursor(E)},o.setCursor=function(E){this.logger.log(l.INFO,"setCursor: "+E);var O=this.rows[this.currRow];O.setCursor(E)},o.setPAC=function(E){this.logger.log(l.INFO,"pacData = "+JSON.stringify(E));var O=E.row-1;if(this.nrRollUpRows&&O<this.nrRollUpRows-1&&(O=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==O){for(var S=0;S<M;S++)this.rows[S].clear();var b=this.currRow+1-this.nrRollUpRows,D=this.lastOutputScreen;if(D){var P=D.rows[b].cueStartTime,I=this.logger.time;if(P&&I!==null&&P<I)for(var F=0;F<this.nrRollUpRows;F++)this.rows[O-this.nrRollUpRows+F+1].copy(D.rows[b+F])}}this.currRow=O;var K=this.rows[this.currRow];if(E.indent!==null){var j=E.indent,Y=Math.max(j-1,0);K.setCursor(E.indent),E.color=K.chars[Y].penState.foreground}var W={foreground:E.color,underline:E.underline,italics:E.italics,background:"black",flash:!1};this.setPen(W)},o.setBkgData=function(E){this.logger.log(l.INFO,"bkgData = "+JSON.stringify(E)),this.backSpace(),this.setPen(E),this.insertChar(32)},o.setRollUpRows=function(E){this.nrRollUpRows=E},o.rollUp=function(){if(this.nrRollUpRows===null){this.logger.log(l.DEBUG,"roll_up but nrRollUpRows not set yet");return}this.logger.log(l.TEXT,this.getDisplayText());var E=this.currRow+1-this.nrRollUpRows,O=this.rows.splice(E,1)[0];O.clear(),this.rows.splice(this.currRow,0,O),this.logger.log(l.INFO,"Rolling up")},o.getDisplayText=function(E){E=E||!1;for(var O=[],S="",b=-1,D=0;D<M;D++){var P=this.rows[D].getTextString();P&&(b=D+1,E?O.push("Row "+b+": '"+P+"'"):O.push(P.trim()))}return O.length>0&&(E?S="["+O.join(" | ")+"]":S=O.join(`
`)),S},o.getTextAndFormat=function(){return this.rows},A}(),v=function(){function A(f,E,O){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=f,this.outputFilter=E,this.mode=null,this.verbose=0,this.displayedMemory=new i(O),this.nonDisplayedMemory=new i(O),this.lastOutputScreen=new i(O),this.currRollUpRow=this.displayedMemory.rows[M-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=O}var o=A.prototype;return o.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[M-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null},o.getHandler=function(){return this.outputFilter},o.setHandler=function(E){this.outputFilter=E},o.setPAC=function(E){this.writeScreen.setPAC(E)},o.setBkgData=function(E){this.writeScreen.setBkgData(E)},o.setMode=function(E){if(E===this.mode)return;this.mode=E,this.logger.log(l.INFO,"MODE="+E),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=E},o.insertChars=function(E){for(var O=0;O<E.length;O++)this.writeScreen.insertChar(E[O]);var S=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(l.INFO,S+": "+this.writeScreen.getDisplayText(!0)),(this.mode==="MODE_PAINT-ON"||this.mode==="MODE_ROLL-UP")&&(this.logger.log(l.TEXT,"DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())},o.ccRCL=function(){this.logger.log(l.INFO,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")},o.ccBS=function(){if(this.logger.log(l.INFO,"BS - BackSpace"),this.mode==="MODE_TEXT")return;this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate()},o.ccAOF=function(){},o.ccAON=function(){},o.ccDER=function(){this.logger.log(l.INFO,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()},o.ccRU=function(E){this.logger.log(l.INFO,"RU("+E+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(E)},o.ccFON=function(){this.logger.log(l.INFO,"FON - Flash On"),this.writeScreen.setPen({flash:!0})},o.ccRDC=function(){this.logger.log(l.INFO,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")},o.ccTR=function(){this.logger.log(l.INFO,"TR"),this.setMode("MODE_TEXT")},o.ccRTD=function(){this.logger.log(l.INFO,"RTD"),this.setMode("MODE_TEXT")},o.ccEDM=function(){this.logger.log(l.INFO,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)},o.ccCR=function(){this.logger.log(l.INFO,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)},o.ccENM=function(){this.logger.log(l.INFO,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()},o.ccEOC=function(){if(this.logger.log(l.INFO,"EOC - End Of Caption"),this.mode==="MODE_POP-ON"){var E=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=E,this.writeScreen=this.nonDisplayedMemory,this.logger.log(l.TEXT,"DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate(!0)},o.ccTO=function(E){this.logger.log(l.INFO,"TO("+E+") - Tab Offset"),this.writeScreen.moveCursor(E)},o.ccMIDROW=function(E){var O={flash:!1};if(O.underline=E%2===1,O.italics=E>=46,O.italics)O.foreground="white";else{var S=Math.floor(E/2)-16,b=["white","green","blue","cyan","red","yellow","magenta"];O.foreground=b[S]}this.logger.log(l.INFO,"MIDROW: "+JSON.stringify(O)),this.writeScreen.setPen(O)},o.outputDataUpdate=function(E){E===void 0&&(E=!1);var O=this.logger.time;if(O===null)return;this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=O:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,O,this.lastOutputScreen),E&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:O),this.lastOutputScreen.copy(this.displayedMemory))},o.cueSplitAtTime=function(E){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,E,this.displayedMemory),this.cueStartTime=E))},A}(),C=function(){function A(f,E,O){this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var S=new d;this.channels=[null,new v(f,E,S),new v(f+1,O,S)],this.cmdHistory=x(),this.logger=S}var o=A.prototype;return o.getHandler=function(E){return this.channels[E].getHandler()},o.setHandler=function(E,O){this.channels[E].setHandler(O)},o.addData=function(E,O){var S,b,D,P=!1;this.logger.time=E;for(var I=0;I<O.length;I+=2){if(b=O[I]&127,D=O[I+1]&127,b===0&&D===0)continue;if(this.logger.log(l.DATA,"["+y([O[I],O[I+1]])+"] -> ("+y([b,D])+")"),S=this.parseCmd(b,D),S||(S=this.parseMidrow(b,D)),S||(S=this.parsePAC(b,D)),S||(S=this.parseBackgroundAttributes(b,D)),!S&&(P=this.parseChars(b,D),P)){var F=this.currentChannel;if(F&&F>0){var K=this.channels[F];K.insertChars(P)}else this.logger.log(l.WARNING,"No channel found yet. TEXT-MODE?")}!S&&!P&&this.logger.log(l.WARNING,"Couldn't parse cleaned data "+y([b,D])+" orig: "+y([O[I],O[I+1]]))}},o.parseCmd=function(E,O){var S=this.cmdHistory,b=(E===20||E===28||E===21||E===29)&&O>=32&&O<=47,D=(E===23||E===31)&&O>=33&&O<=35;if(!(b||D))return!1;if(w(E,O,S))return R(null,null,S),this.logger.log(l.DEBUG,"Repeated command ("+y([E,O])+") is dropped"),!0;var P=E===20||E===21||E===23?1:2,I=this.channels[P];return E===20||E===21||E===28||E===29?O===32?I.ccRCL():O===33?I.ccBS():O===34?I.ccAOF():O===35?I.ccAON():O===36?I.ccDER():O===37?I.ccRU(2):O===38?I.ccRU(3):O===39?I.ccRU(4):O===40?I.ccFON():O===41?I.ccRDC():O===42?I.ccTR():O===43?I.ccRTD():O===44?I.ccEDM():O===45?I.ccCR():O===46?I.ccENM():O===47&&I.ccEOC():I.ccTO(O-32),R(E,O,S),this.currentChannel=P,!0},o.parseMidrow=function(E,O){var S=0;if((E===17||E===25)&&O>=32&&O<=47){if(E===17?S=1:S=2,S!==this.currentChannel)return this.logger.log(l.ERROR,"Mismatch channel in midrow parsing"),!1;var b=this.channels[S];return b?(b.ccMIDROW(O),this.logger.log(l.DEBUG,"MIDROW ("+y([E,O])+")"),!0):!1}return!1},o.parsePAC=function(E,O){var S,b=this.cmdHistory,D=(E>=17&&E<=23||E>=25&&E<=31)&&O>=64&&O<=127,P=(E===16||E===24)&&O>=64&&O<=95;if(!(D||P))return!1;if(w(E,O,b))return R(null,null,b),!0;var I=E<=23?1:2;O>=64&&O<=95?S=I===1?e[E]:r[E]:S=I===1?m[E]:h[E];var F=this.channels[I];return F?(F.setPAC(this.interpretPAC(S,O)),R(E,O,b),this.currentChannel=I,!0):!1},o.interpretPAC=function(E,O){var S,b={color:null,italics:!1,indent:null,underline:!1,row:E};return O>95?S=O-96:S=O-64,b.underline=(S&1)===1,S<=13?b.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(S/2)]:S<=15?(b.italics=!0,b.color="white"):b.indent=Math.floor((S-16)/2)*4,b},o.parseChars=function(E,O){var S,b=null,D=null;if(E>=25?(S=2,D=E-8):(S=1,D=E),D>=17&&D<=19){var P;D===17?P=O+80:D===18?P=O+112:P=O+144,this.logger.log(l.INFO,"Special char '"+u(P)+"' in channel "+S),b=[P]}else E>=32&&E<=127&&(b=O===0?[E]:[E,O]);if(b){var I=y(b);this.logger.log(l.DEBUG,"Char codes = "+I.join(",")),R(E,O,this.cmdHistory)}return b},o.parseBackgroundAttributes=function(E,O){var S=(E===16||E===24)&&O>=32&&O<=47,b=(E===23||E===31)&&O>=45&&O<=47;if(!(S||b))return!1;var D,P={};E===16||E===24?(D=Math.floor((O-32)/2),P.background=a[D],O%2===1&&(P.background=P.background+"_semi")):O===45?P.background="transparent":(P.foreground="black",O===47&&(P.underline=!0));var I=E<=23?1:2,F=this.channels[I];return F.setBkgData(P),R(E,O,this.cmdHistory),!0},o.reset=function(){for(var E=0;E<Object.keys(this.channels).length;E++){var O=this.channels[E];O&&O.reset()}this.cmdHistory=x()},o.cueSplitAtTime=function(E){for(var O=0;O<this.channels.length;O++){var S=this.channels[O];S&&S.cueSplitAtTime(E)}},A}();function R(A,o,f){f.a=A,f.b=o}function w(A,o,f){return f.a===A&&f.b===o}function x(){return{a:null,b:null}}U.default=C},"./src/utils/codecs.ts":function(Z,U,L){"use strict";L.r(U),L.d(U,"isCodecType",function(){return c}),L.d(U,"isCodecSupportedInMp4",function(){return u});var N={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(M,g){var e=N[g];return!!e&&e[M.slice(0,4)]===!0}function u(M,g){return MediaSource.isTypeSupported((g||"video")+'/mp4;codecs="'+M+'"')}},"./src/utils/cues.ts":function(Z,U,L){"use strict";L.r(U);var N=L("./src/utils/vttparser.ts"),c=L("./src/utils/webvtt-parser.ts"),u=L("./src/utils/texttrack-utils.ts"),M=/\s/,g={newCue:function(m,r,h,a){for(var l=[],d,y,s,p,n,i=self.VTTCue||self.TextTrackCue,v=0;v<a.rows.length;v++)if(d=a.rows[v],s=!0,p=0,n="",!d.isEmpty()){for(var C=0;C<d.chars.length;C++)M.test(d.chars[C].uchar)&&s?p++:(n+=d.chars[C].uchar,s=!1);d.cueStartTime=r,r===h&&(h+=1e-4),p>=16?p--:p++;var R=Object(N.fixLineBreaks)(n.trim()),w=Object(c.generateCueId)(r,h,R);(!m||!m.cues||!m.cues.getCueById(w))&&(y=new i(r,h,R),y.id=w,y.line=v+1,y.align="left",y.position=10+Math.min(80,Math.floor(p*8/32)*10),l.push(y))}return m&&l.length&&(l.sort(function(x,A){return x.line==="auto"||A.line==="auto"?0:x.line>8&&A.line>8?A.line-x.line:x.line-A.line}),l.forEach(function(x){return Object(u.addCueToTrack)(m,x)})),l}};U.default=g},"./src/utils/discontinuities.ts":function(Z,U,L){"use strict";L.r(U),L.d(U,"findFirstFragWithCC",function(){return M}),L.d(U,"shouldAlignOnDiscontinuities",function(){return g}),L.d(U,"findDiscontinuousReferenceFrag",function(){return e}),L.d(U,"adjustSlidingStart",function(){return r}),L.d(U,"alignStream",function(){return h}),L.d(U,"alignPDT",function(){return l}),L.d(U,"alignFragmentByPDTDelta",function(){return d}),L.d(U,"alignMediaPlaylistByPDT",function(){return y});var N=L("./src/polyfills/number.ts"),c=L("./src/utils/logger.ts"),u=L("./src/controller/level-helper.ts");function M(s,p){for(var n=null,i=0,v=s.length;i<v;i++){var C=s[i];if(C&&C.cc===p){n=C;break}}return n}function g(s,p,n){return!!(p.details&&(n.endCC>n.startCC||s&&s.cc<n.startCC))}function e(s,p){var n=s.fragments,i=p.fragments;if(!i.length||!n.length){c.logger.log("No fragments to align");return}var v=M(n,i[0].cc);if(!v||v&&!v.startPTS){c.logger.log("No frag in previous level to align on");return}return v}function m(s,p){if(s){var n=s.start+p;s.start=s.startPTS=n,s.endPTS=n+s.duration}}function r(s,p){for(var n=p.fragments,i=0,v=n.length;i<v;i++)m(n[i],s);p.fragmentHint&&m(p.fragmentHint,s),p.alignedSliding=!0}function h(s,p,n){if(!p)return;a(s,n,p),!n.alignedSliding&&p.details&&l(n,p.details),!n.alignedSliding&&p.details&&!n.skippedSegments&&Object(u.adjustSliding)(p.details,n)}function a(s,p,n){if(g(s,n,p)){var i=e(n.details,p);i&&Object(N.isFiniteNumber)(i.start)&&(c.logger.log("Adjusting PTS using last level due to CC increase within current level "+p.url),r(i.start,p))}}function l(s,p){if(!p.fragments.length||!s.hasProgramDateTime||!p.hasProgramDateTime)return;var n=p.fragments[0].programDateTime,i=s.fragments[0].programDateTime,v=(i-n)/1e3+p.fragments[0].start;v&&Object(N.isFiniteNumber)(v)&&(c.logger.log("Adjusting PTS using programDateTime delta "+(i-n)+"ms, sliding:"+v.toFixed(3)+" "+s.url+" "),r(v,s))}function d(s,p){var n=s.programDateTime;if(!n)return;var i=(n-p)/1e3;s.start=s.startPTS=i,s.endPTS=i+s.duration}function y(s,p){if(!p.fragments.length||!s.hasProgramDateTime||!p.hasProgramDateTime)return;var n=p.fragments[0].programDateTime,i=p.fragments[0].start,v=n-i*1e3;s.fragments.forEach(function(C){d(C,v)}),s.fragmentHint&&d(s.fragmentHint,v),s.alignedSliding=!0}},"./src/utils/ewma-bandwidth-estimator.ts":function(Z,U,L){"use strict";L.r(U);var N=L("./src/utils/ewma.ts"),c=function(){function u(g,e,m){this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultEstimate_=m,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new N.default(g),this.fast_=new N.default(e)}var M=u.prototype;return M.update=function(e,m){var r=this.slow_,h=this.fast_;this.slow_.halfLife!==e&&(this.slow_=new N.default(e,r.getEstimate(),r.getTotalWeight())),this.fast_.halfLife!==m&&(this.fast_=new N.default(m,h.getEstimate(),h.getTotalWeight()))},M.sample=function(e,m){e=Math.max(e,this.minDelayMs_);var r=8*m,h=e/1e3,a=r/h;this.fast_.sample(h,a),this.slow_.sample(h,a)},M.canEstimate=function(){var e=this.fast_;return e&&e.getTotalWeight()>=this.minWeight_},M.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},M.destroy=function(){},u}();U.default=c},"./src/utils/ewma.ts":function(Z,U,L){"use strict";L.r(U);var N=function(){function c(M,g,e){g===void 0&&(g=0),e===void 0&&(e=0),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=M,this.alpha_=M?Math.exp(Math.log(.5)/M):0,this.estimate_=g,this.totalWeight_=e}var u=c.prototype;return u.sample=function(g,e){var m=Math.pow(this.alpha_,g);this.estimate_=e*(1-m)+m*this.estimate_,this.totalWeight_+=g},u.getTotalWeight=function(){return this.totalWeight_},u.getEstimate=function(){if(this.alpha_){var g=1-Math.pow(this.alpha_,this.totalWeight_);if(g)return this.estimate_/g}return this.estimate_},c}();U.default=N},"./src/utils/fetch-loader.ts":function(Z,U,L){"use strict";L.r(U),L.d(U,"fetchSupported",function(){return d});var N=L("./src/polyfills/number.ts"),c=L("./src/loader/load-stats.ts"),u=L("./src/demux/chunk-cache.ts");function M(i,v){i.prototype=Object.create(v.prototype),i.prototype.constructor=i,h(i,v)}function g(i){var v=typeof Map=="function"?new Map:void 0;return g=function(R){if(R===null||!r(R))return R;if(typeof R!="function")throw new TypeError("Super expression must either be null or a function");if(typeof v!="undefined"){if(v.has(R))return v.get(R);v.set(R,w)}function w(){return e(R,arguments,a(this).constructor)}return w.prototype=Object.create(R.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),h(w,R)},g(i)}function e(i,v,C){return m()?e=Reflect.construct:e=function(w,x,A){var o=[null];o.push.apply(o,x);var f=Function.bind.apply(w,o),E=new f;return A&&h(E,A.prototype),E},e.apply(null,arguments)}function m(){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(i){return!1}}function r(i){return Function.toString.call(i).indexOf("[native code]")!==-1}function h(i,v){return h=Object.setPrototypeOf||function(R,w){return R.__proto__=w,R},h(i,v)}function a(i){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(C){return C.__proto__||Object.getPrototypeOf(C)},a(i)}function l(){return l=Object.assign||function(i){for(var v=1;v<arguments.length;v++){var C=arguments[v];for(var R in C)Object.prototype.hasOwnProperty.call(C,R)&&(i[R]=C[R])}return i},l.apply(this,arguments)}function d(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(i){}return!1}var y=function(){function i(C){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=C.fetchSetup||p,this.controller=new self.AbortController,this.stats=new c.LoadStats}var v=i.prototype;return v.destroy=function(){this.loader=this.callbacks=null,this.abortInternal()},v.abortInternal=function(){var R=this.response;(!R||!R.ok)&&(this.stats.aborted=!0,this.controller.abort())},v.abort=function(){var R;this.abortInternal(),(R=this.callbacks)!==null&&R!==void 0&&R.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)},v.load=function(R,w,x){var A=this,o=this.stats;if(o.loading.start)throw new Error("Loader can only be used once.");o.loading.start=self.performance.now();var f=s(R,this.controller.signal),E=x.onProgress,O=R.responseType==="arraybuffer",S=O?"byteLength":"length";this.context=R,this.config=w,this.callbacks=x,this.request=this.fetchSetup(R,f),self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(function(){A.abortInternal(),x.onTimeout(o,R,A.response)},w.timeout),self.fetch(this.request).then(function(b){if(A.response=A.loader=b,!b.ok){var D=b.status,P=b.statusText;throw new n(P||"fetch, bad network response",D,b)}return o.loading.first=Math.max(self.performance.now(),o.loading.start),o.total=parseInt(b.headers.get("Content-Length")||"0"),E&&Object(N.isFiniteNumber)(w.highWaterMark)?A.loadProgressively(b,o,R,w.highWaterMark,E):O?b.arrayBuffer():b.text()}).then(function(b){var D=A.response;self.clearTimeout(A.requestTimeout),o.loading.end=Math.max(self.performance.now(),o.loading.first),o.loaded=o.total=b[S];var P={url:D.url,data:b};E&&!Object(N.isFiniteNumber)(w.highWaterMark)&&E(o,R,b,D),x.onSuccess(P,o,R,D)}).catch(function(b){if(self.clearTimeout(A.requestTimeout),o.aborted)return;var D=b.code||0;x.onError({code:D,text:b.message},R,b.details)})},v.getCacheAge=function(){var R=null;if(this.response){var w=this.response.headers.get("age");R=w?parseFloat(w):null}return R},v.loadProgressively=function(R,w,x,A,o){A===void 0&&(A=0);var f=new u.default,E=R.body.getReader(),O=function S(){return E.read().then(function(b){if(b.done)return f.dataLength&&o(w,x,f.flush(),R),Promise.resolve(new ArrayBuffer(0));var D=b.value,P=D.length;return w.loaded+=P,P<A||f.dataLength?(f.push(D),f.dataLength>=A&&o(w,x,f.flush(),R)):o(w,x,D,R),S()}).catch(function(){return Promise.reject()})};return O()},i}();function s(i,v){var C={method:"GET",mode:"cors",credentials:"same-origin",signal:v,headers:new self.Headers(l({},i.headers))};return i.rangeEnd&&C.headers.set("Range","bytes="+i.rangeStart+"-"+String(i.rangeEnd-1)),C}function p(i,v){return new self.Request(i.url,v)}var n=function(i){M(v,i);function v(C,R,w){var x;return x=i.call(this,C)||this,x.code=void 0,x.details=void 0,x.code=R,x.details=w,x}return v}(g(Error));U.default=y},"./src/utils/imsc1-ttml-parser.ts":function(Z,U,L){"use strict";L.r(U),L.d(U,"IMSC1_CODEC",function(){return r}),L.d(U,"parseIMSC1",function(){return d});var N=L("./src/utils/mp4-tools.ts"),c=L("./src/utils/vttparser.ts"),u=L("./src/utils/vttcue.ts"),M=L("./src/demux/id3.ts"),g=L("./src/utils/timescale-conversion.ts"),e=L("./src/utils/webvtt-parser.ts");function m(){return m=Object.assign||function(A){for(var o=1;o<arguments.length;o++){var f=arguments[o];for(var E in f)Object.prototype.hasOwnProperty.call(f,E)&&(A[E]=f[E])}return A},m.apply(this,arguments)}var r="stpp.ttml.im1t",h=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,a=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,l={left:"start",center:"center",right:"end",start:"start",end:"end"};function d(A,o,f,E,O){var S=Object(N.findBox)(new Uint8Array(A),["mdat"]);if(S.length===0){O(new Error("Could not parse IMSC1 mdat"));return}var b=S[0],D=Object(M.utf8ArrayToStr)(new Uint8Array(A,b.start,b.end-b.start)),P=Object(g.toTimescaleFromScale)(o,1,f);try{E(y(D,P))}catch(I){O(I)}}function y(A,o){var f=new DOMParser,E=f.parseFromString(A,"text/xml"),O=E.getElementsByTagName("tt")[0];if(!O)throw new Error("Invalid ttml");var S={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},b=Object.keys(S).reduce(function(K,j){return K[j]=O.getAttribute("ttp:"+j)||S[j],K},{}),D=O.getAttribute("xml:space")!=="preserve",P=p(s(O,"styling","style")),I=p(s(O,"layout","region")),F=s(O,"body","[begin]");return[].map.call(F,function(K){var j=n(K,D);if(!j||!K.hasAttribute("begin"))return null;var Y=R(K.getAttribute("begin"),b),W=R(K.getAttribute("dur"),b),Q=R(K.getAttribute("end"),b);if(Y===null)throw C(K);if(Q===null){if(W===null)throw C(K);Q=Y+W}var ie=new u.default(Y-o,Q-o,j);ie.id=Object(e.generateCueId)(ie.startTime,ie.endTime,ie.text);var Ee=I[K.getAttribute("region")],pe=P[K.getAttribute("style")];ie.position=10,ie.size=80;var De=i(Ee,pe),Me=De.textAlign;if(Me){var Ue=l[Me];Ue&&(ie.lineAlign=Ue),ie.align=Me}return m(ie,De),ie}).filter(function(K){return K!==null})}function s(A,o,f){var E=A.getElementsByTagName(o)[0];return E?[].slice.call(E.querySelectorAll(f)):[]}function p(A){return A.reduce(function(o,f){var E=f.getAttribute("xml:id");return E&&(o[E]=f),o},{})}function n(A,o){return[].slice.call(A.childNodes).reduce(function(f,E,O){var S;return E.nodeName==="br"&&O?f+`
`:(S=E.childNodes)!==null&&S!==void 0&&S.length?n(E,o):o?f+E.textContent.trim().replace(/\s+/g," "):f+E.textContent},"")}function i(A,o){var f="http://www.w3.org/ns/ttml#styling",E=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"];return E.reduce(function(O,S){var b=v(o,f,S)||v(A,f,S);return b&&(O[S]=b),O},{})}function v(A,o,f){return A.hasAttributeNS(o,f)?A.getAttributeNS(o,f):null}function C(A){return new Error("Could not parse ttml timestamp "+A)}function R(A,o){if(!A)return null;var f=Object(c.parseTimeStamp)(A);return f===null&&(h.test(A)?f=w(A,o):a.test(A)&&(f=x(A,o))),f}function w(A,o){var f=h.exec(A),E=(f[4]|0)+(f[5]|0)/o.subFrameRate;return(f[1]|0)*3600+(f[2]|0)*60+(f[3]|0)+E/o.frameRate}function x(A,o){var f=a.exec(A),E=Number(f[1]),O=f[2];switch(O){case"h":return E*3600;case"m":return E*60;case"ms":return E*1e3;case"f":return E/o.frameRate;case"t":return E/o.tickRate}return E}},"./src/utils/logger.ts":function(Z,U,L){"use strict";L.r(U),L.d(U,"enableLogs",function(){return e}),L.d(U,"logger",function(){return m});var N=function(){},c={trace:N,debug:N,log:N,warn:N,info:N,error:N},u=c;function M(r){var h=self.console[r];return h?h.bind(self.console,"["+r+"] >"):N}function g(r){for(var h=arguments.length,a=new Array(h>1?h-1:0),l=1;l<h;l++)a[l-1]=arguments[l];a.forEach(function(d){u[d]=r[d]?r[d].bind(r):M(d)})}function e(r){if(self.console&&r===!0||typeof r=="object"){g(r,"debug","log","info","warn","error");try{u.log()}catch(h){u=c}}else u=c}var m=u},"./src/utils/mediakeys-helper.ts":function(Z,U,L){"use strict";L.r(U),L.d(U,"KeySystems",function(){return N}),L.d(U,"requestMediaKeySystemAccess",function(){return c});var N;(function(u){u.WIDEVINE="com.widevine.alpha",u.PLAYREADY="com.microsoft.playready"})(N||(N={}));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(Z,U,L){"use strict";L.r(U),L.d(U,"getMediaSource",function(){return N});function N(){return self.MediaSource||self.WebKitMediaSource}},"./src/utils/mp4-tools.ts":function(Z,U,L){"use strict";L.r(U),L.d(U,"bin2str",function(){return g}),L.d(U,"readUint16",function(){return e}),L.d(U,"readUint32",function(){return m}),L.d(U,"writeUint32",function(){return r}),L.d(U,"findBox",function(){return h}),L.d(U,"parseSegmentIndex",function(){return a}),L.d(U,"parseInitSegment",function(){return l}),L.d(U,"getStartDTS",function(){return d}),L.d(U,"getDuration",function(){return y}),L.d(U,"computeRawDurationFromSamples",function(){return s}),L.d(U,"offsetStartDTS",function(){return p}),L.d(U,"segmentValidRange",function(){return n}),L.d(U,"appendUint8Array",function(){return i});var N=L("./src/utils/typed-array.ts"),c=L("./src/loader/fragment.ts"),u=Math.pow(2,32)-1,M=[].push;function g(v){return String.fromCharCode.apply(null,v)}function e(v,C){"data"in v&&(C+=v.start,v=v.data);var R=v[C]<<8|v[C+1];return R<0?65536+R:R}function m(v,C){"data"in v&&(C+=v.start,v=v.data);var R=v[C]<<24|v[C+1]<<16|v[C+2]<<8|v[C+3];return R<0?4294967296+R:R}function r(v,C,R){"data"in v&&(C+=v.start,v=v.data),v[C]=R>>24,v[C+1]=R>>16&255,v[C+2]=R>>8&255,v[C+3]=R&255}function h(v,C){var R=[];if(!C.length)return R;var w,x,A;"data"in v?(w=v.data,x=v.start,A=v.end):(w=v,x=0,A=w.byteLength);for(var o=x;o<A;){var f=m(w,o),E=g(w.subarray(o+4,o+8)),O=f>1?o+f:A;if(E===C[0])if(C.length===1)R.push({data:w,start:o+8,end:O});else{var S=h({data:w,start:o+8,end:O},C.slice(1));S.length&&M.apply(R,S)}o=O}return R}function a(v){var C=h(v,["moov"]),R=C[0],w=R?R.end:null,x=h(v,["sidx"]);if(!x||!x[0])return null;var A=[],o=x[0],f=o.data[0],E=f===0?8:16,O=m(o,E);E+=4;var S=0,b=0;f===0?E+=8:E+=16,E+=2;var D=o.end+b,P=e(o,E);E+=2;for(var I=0;I<P;I++){var F=E,K=m(o,F);F+=4;var j=K&2147483647,Y=(K&2147483648)>>>31;if(Y===1)return console.warn("SIDX has hierarchical references (not supported)"),null;var W=m(o,F);F+=4,A.push({referenceSize:j,subsegmentDuration:W,info:{duration:W/O,start:D,end:D+j-1}}),D+=j,F+=4,E=F}return{earliestPresentationTime:S,timescale:O,version:f,referencesCount:P,references:A,moovEndOffset:w}}function l(v){for(var C=[],R=h(v,["moov","trak"]),w=0;w<R.length;w++){var x=R[w],A=h(x,["tkhd"])[0];if(A){var o=A.data[A.start],f=o===0?12:20,E=m(A,f),O=h(x,["mdia","mdhd"])[0];if(O){o=O.data[O.start],f=o===0?12:20;var S=m(O,f),b=h(x,["mdia","hdlr"])[0];if(b){var D=g(b.data.subarray(b.start+8,b.start+12)),P={soun:c.ElementaryStreamTypes.AUDIO,vide:c.ElementaryStreamTypes.VIDEO}[D];if(P){var I=h(x,["mdia","minf","stbl","stsd"])[0],F=void 0;I&&(F=g(I.data.subarray(I.start+12,I.start+16))),C[E]={timescale:S,type:P},C[P]={timescale:S,id:E,codec:F}}}}}}var K=h(v,["moov","mvex","trex"]);return K.forEach(function(j){var Y=m(j,4),W=C[Y];W&&(W.default={duration:m(j,12),flags:m(j,20)})}),C}function d(v,C){return h(C,["moof","traf"]).reduce(function(R,w){var x=h(w,["tfdt"])[0],A=x.data[x.start],o=h(w,["tfhd"]).reduce(function(f,E){var O=m(E,4),S=v[O];if(S){var b=m(x,4);A===1&&(b*=Math.pow(2,32),b+=m(x,8));var D=S.timescale||9e4,P=b/D;if(isFinite(P)&&(f===null||P<f))return P}return f},null);return o!==null&&isFinite(o)&&(R===null||o<R)?o:R},null)||0}function y(v,C){for(var R=0,w=0,x=0,A=h(v,["moof","traf"]),o=0;o<A.length;o++){var f=A[o],E=h(f,["tfhd"])[0],O=m(E,4),S=C[O];if(!S)continue;var b=S.default,D=m(E,0)|(b==null?void 0:b.flags),P=b==null?void 0:b.duration;D&8&&(D&2?P=m(E,12):P=m(E,8));for(var I=S.timescale||9e4,F=h(f,["trun"]),K=0;K<F.length;K++){if(P){var j=m(F[K],4);R=P*j}else R=s(F[K]);S.type===c.ElementaryStreamTypes.VIDEO?w+=R/I:S.type===c.ElementaryStreamTypes.AUDIO&&(x+=R/I)}}if(w===0&&x===0){var Y=a(v);if(Y!=null&&Y.references)return Y.references.reduce(function(W,Q){return W+Q.info.duration||0},0)}return w||x}function s(v){var C=m(v,0),R=8;C&1&&(R+=4),C&4&&(R+=4);for(var w=0,x=m(v,4),A=0;A<x;A++){if(C&256){var o=m(v,R);w+=o,R+=4}C&512&&(R+=4),C&1024&&(R+=4),C&2048&&(R+=4)}return w}function p(v,C,R){h(C,["moof","traf"]).forEach(function(w){h(w,["tfhd"]).forEach(function(x){var A=m(x,4),o=v[A];if(!o)return;var f=o.timescale||9e4;h(w,["tfdt"]).forEach(function(E){var O=E.data[E.start],S=m(E,4);if(O===0)r(E,4,S-R*f);else{S*=Math.pow(2,32),S+=m(E,8),S-=R*f,S=Math.max(S,0);var b=Math.floor(S/(u+1)),D=Math.floor(S%(u+1));r(E,4,b),r(E,8,D)}})})})}function n(v){var C={valid:null,remainder:null},R=h(v,["moof"]);if(R){if(R.length<2)return C.remainder=v,C}else return C;var w=R[R.length-1];return C.valid=Object(N.sliceUint8)(v,0,w.start-8),C.remainder=Object(N.sliceUint8)(v,w.start-8),C}function i(v,C){var R=new Uint8Array(v.length+C.length);return R.set(v),R.set(C,v.length),R}},"./src/utils/output-filter.ts":function(Z,U,L){"use strict";L.r(U),L.d(U,"default",function(){return N});var N=function(){function c(M,g){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=M,this.trackName=g}var u=c.prototype;return u.dispatchCue=function(){if(this.startTime===null)return;this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null},u.newCue=function(g,e,m){(this.startTime===null||this.startTime>g)&&(this.startTime=g),this.endTime=e,this.screen=m,this.timelineController.createCaptionsTrack(this.trackName)},u.reset=function(){this.cueRanges=[]},c}()},"./src/utils/texttrack-utils.ts":function(Z,U,L){"use strict";L.r(U),L.d(U,"sendAddTrackEvent",function(){return c}),L.d(U,"addCueToTrack",function(){return u}),L.d(U,"clearCurrentCues",function(){return M}),L.d(U,"removeCuesInRange",function(){return g}),L.d(U,"getCuesInRange",function(){return m});var N=L("./src/utils/logger.ts");function c(r,h){var a;try{a=new Event("addtrack")}catch(l){a=document.createEvent("Event"),a.initEvent("addtrack",!1,!1)}a.track=r,h.dispatchEvent(a)}function u(r,h){var a=r.mode;if(a==="disabled"&&(r.mode="hidden"),r.cues&&!r.cues.getCueById(h.id))try{if(r.addCue(h),!r.cues.getCueById(h.id))throw new Error("addCue is failed for: "+h)}catch(d){N.logger.debug("[texttrack-utils]: "+d);var l=new self.TextTrackCue(h.startTime,h.endTime,h.text);l.id=h.id,r.addCue(l)}a==="disabled"&&(r.mode=a)}function M(r){var h=r.mode;if(h==="disabled"&&(r.mode="hidden"),r.cues)for(var a=r.cues.length;a--;)r.removeCue(r.cues[a]);h==="disabled"&&(r.mode=h)}function g(r,h,a){var l=r.mode;if(l==="disabled"&&(r.mode="hidden"),r.cues&&r.cues.length>0)for(var d=m(r.cues,h,a),y=0;y<d.length;y++)r.removeCue(d[y]);l==="disabled"&&(r.mode=l)}function e(r,h){if(h<r[0].startTime)return 0;var a=r.length-1;if(h>r[a].endTime)return-1;for(var l=0,d=a;l<=d;){var y=Math.floor((d+l)/2);if(h<r[y].startTime)d=y-1;else if(h>r[y].startTime&&l<a)l=y+1;else return y}return r[l].startTime-h<h-r[d].startTime?l:d}function m(r,h,a){var l=[],d=e(r,h);if(d>-1)for(var y=d,s=r.length;y<s;y++){var p=r[y];if(p.startTime>=h&&p.endTime<=a)l.push(p);else if(p.startTime>a)return l}return l}},"./src/utils/time-ranges.ts":function(Z,U,L){"use strict";L.r(U);var N={toString:function(u){for(var M="",g=u.length,e=0;e<g;e++)M+="["+u.start(e).toFixed(3)+","+u.end(e).toFixed(3)+"]";return M}};U.default=N},"./src/utils/timescale-conversion.ts":function(Z,U,L){"use strict";L.r(U),L.d(U,"toTimescaleFromBase",function(){return c}),L.d(U,"toTimescaleFromScale",function(){return u}),L.d(U,"toMsFromMpegTsClock",function(){return M}),L.d(U,"toMpegTsClockFromTimescale",function(){return g});var N=9e4;function c(e,m,r,h){r===void 0&&(r=1),h===void 0&&(h=!1);var a=e*m*r;return h?Math.round(a):a}function u(e,m,r,h){return r===void 0&&(r=1),h===void 0&&(h=!1),c(e,m,1/r,h)}function M(e,m){return m===void 0&&(m=!1),c(e,1e3,1/N,m)}function g(e,m){return m===void 0&&(m=1),c(e,N,1/m)}},"./src/utils/typed-array.ts":function(Z,U,L){"use strict";L.r(U),L.d(U,"sliceUint8",function(){return N});function N(c,u,M){return Uint8Array.prototype.slice?c.slice(u,M):new Uint8Array(Array.prototype.slice.call(c,u,M))}},"./src/utils/vttcue.ts":function(Z,U,L){"use strict";L.r(U),U.default=function(){if(typeof self!="undefined"&&self.VTTCue)return self.VTTCue;var N=["","lr","rl"],c=["start","middle","end","left","right"];function u(r,h){if(typeof h!="string")return!1;if(!Array.isArray(r))return!1;var a=h.toLowerCase();return~r.indexOf(a)?a:!1}function M(r){return u(N,r)}function g(r){return u(c,r)}function e(r){for(var h=arguments.length,a=new Array(h>1?h-1:0),l=1;l<h;l++)a[l-1]=arguments[l];for(var d=1;d<arguments.length;d++){var y=arguments[d];for(var s in y)r[s]=y[s]}return r}function m(r,h,a){var l=this,d={enumerable:!0};l.hasBeenReset=!1;var y="",s=!1,p=r,n=h,i=a,v=null,C="",R=!0,w="auto",x="start",A=50,o="middle",f=50,E="middle";Object.defineProperty(l,"id",e({},d,{get:function(){return y},set:function(S){y=""+S}})),Object.defineProperty(l,"pauseOnExit",e({},d,{get:function(){return s},set:function(S){s=!!S}})),Object.defineProperty(l,"startTime",e({},d,{get:function(){return p},set:function(S){if(typeof S!="number")throw new TypeError("Start time must be set to a number.");p=S,this.hasBeenReset=!0}})),Object.defineProperty(l,"endTime",e({},d,{get:function(){return n},set:function(S){if(typeof S!="number")throw new TypeError("End time must be set to a number.");n=S,this.hasBeenReset=!0}})),Object.defineProperty(l,"text",e({},d,{get:function(){return i},set:function(S){i=""+S,this.hasBeenReset=!0}})),Object.defineProperty(l,"region",e({},d,{get:function(){return v},set:function(S){v=S,this.hasBeenReset=!0}})),Object.defineProperty(l,"vertical",e({},d,{get:function(){return C},set:function(S){var b=M(S);if(b===!1)throw new SyntaxError("An invalid or illegal string was specified.");C=b,this.hasBeenReset=!0}})),Object.defineProperty(l,"snapToLines",e({},d,{get:function(){return R},set:function(S){R=!!S,this.hasBeenReset=!0}})),Object.defineProperty(l,"line",e({},d,{get:function(){return w},set:function(S){if(typeof S!="number"&&S!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");w=S,this.hasBeenReset=!0}})),Object.defineProperty(l,"lineAlign",e({},d,{get:function(){return x},set:function(S){var b=g(S);if(!b)throw new SyntaxError("An invalid or illegal string was specified.");x=b,this.hasBeenReset=!0}})),Object.defineProperty(l,"position",e({},d,{get:function(){return A},set:function(S){if(S<0||S>100)throw new Error("Position must be between 0 and 100.");A=S,this.hasBeenReset=!0}})),Object.defineProperty(l,"positionAlign",e({},d,{get:function(){return o},set:function(S){var b=g(S);if(!b)throw new SyntaxError("An invalid or illegal string was specified.");o=b,this.hasBeenReset=!0}})),Object.defineProperty(l,"size",e({},d,{get:function(){return f},set:function(S){if(S<0||S>100)throw new Error("Size must be between 0 and 100.");f=S,this.hasBeenReset=!0}})),Object.defineProperty(l,"align",e({},d,{get:function(){return E},set:function(S){var b=g(S);if(!b)throw new SyntaxError("An invalid or illegal string was specified.");E=b,this.hasBeenReset=!0}})),l.displayState=void 0}return m.prototype.getCueAsHTML=function(){var r=self.WebVTT;return r.convertCueToDOMTree(self,this.text)},m}()},"./src/utils/vttparser.ts":function(Z,U,L){"use strict";L.r(U),L.d(U,"parseTimeStamp",function(){return u}),L.d(U,"fixLineBreaks",function(){return h}),L.d(U,"VTTParser",function(){return a});var N=L("./src/utils/vttcue.ts"),c=function(){function l(){}var d=l.prototype;return d.decode=function(s,p){if(!s)return"";if(typeof s!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(s))},l}();function u(l){function d(s,p,n,i){return(s|0)*3600+(p|0)*60+(n|0)+parseFloat(i||0)}var y=l.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return y?parseFloat(y[2])>59?d(y[2],y[3],0,y[4]):d(y[1],y[2],y[3],y[4]):null}var M=function(){function l(){this.values=Object.create(null)}var d=l.prototype;return d.set=function(s,p){!this.get(s)&&p!==""&&(this.values[s]=p)},d.get=function(s,p,n){return n?this.has(s)?this.values[s]:p[n]:this.has(s)?this.values[s]:p},d.has=function(s){return s in this.values},d.alt=function(s,p,n){for(var i=0;i<n.length;++i)if(p===n[i]){this.set(s,p);break}},d.integer=function(s,p){/^-?\d+$/.test(p)&&this.set(s,parseInt(p,10))},d.percent=function(s,p){if(/^([\d]{1,3})(\.[\d]*)?%$/.test(p)){var n=parseFloat(p);if(n>=0&&n<=100)return this.set(s,n),!0}return!1},l}();function g(l,d,y,s){var p=s?l.split(s):[l];for(var n in p){if(typeof p[n]!="string")continue;var i=p[n].split(y);if(i.length!==2)continue;var v=i[0],C=i[1];d(v,C)}}var e=new N.default(0,0,""),m=e.align==="middle"?"middle":"center";function r(l,d,y){var s=l;function p(){var v=u(l);if(v===null)throw new Error("Malformed timestamp: "+s);return l=l.replace(/^[^\sa-zA-Z-]+/,""),v}function n(v,C){var R=new M;g(v,function(A,o){var f;switch(A){case"region":for(var E=y.length-1;E>=0;E--)if(y[E].id===o){R.set(A,y[E].region);break}break;case"vertical":R.alt(A,o,["rl","lr"]);break;case"line":f=o.split(","),R.integer(A,f[0]),R.percent(A,f[0])&&R.set("snapToLines",!1),R.alt(A,f[0],["auto"]),f.length===2&&R.alt("lineAlign",f[1],["start",m,"end"]);break;case"position":f=o.split(","),R.percent(A,f[0]),f.length===2&&R.alt("positionAlign",f[1],["start",m,"end","line-left","line-right","auto"]);break;case"size":R.percent(A,o);break;case"align":R.alt(A,o,["start",m,"end","left","right"]);break}},/:/,/\s/),C.region=R.get("region",null),C.vertical=R.get("vertical","");var w=R.get("line","auto");w==="auto"&&e.line===-1&&(w=-1),C.line=w,C.lineAlign=R.get("lineAlign","start"),C.snapToLines=R.get("snapToLines",!0),C.size=R.get("size",100),C.align=R.get("align",m);var x=R.get("position","auto");x==="auto"&&e.position===50&&(x=C.align==="start"||C.align==="left"?0:C.align==="end"||C.align==="right"?100:50),C.position=x}function i(){l=l.replace(/^\s+/,"")}if(i(),d.startTime=p(),i(),l.substr(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+s);l=l.substr(3),i(),d.endTime=p(),i(),n(l,d)}function h(l){return l.replace(/<br(?: \/)?>/gi,`
`)}var a=function(){function l(){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 d=l.prototype;return d.parse=function(s){var p=this;s&&(p.buffer+=p.decoder.decode(s,{stream:!0}));function n(){var x=p.buffer,A=0;for(x=h(x);A<x.length&&x[A]!=="\r"&&x[A]!==`
`;)++A;var o=x.substr(0,A);return x[A]==="\r"&&++A,x[A]===`
`&&++A,p.buffer=x.substr(A),o}function i(x){g(x,function(A,o){},/:/)}try{var v="";if(p.state==="INITIAL"){if(!/\r\n|\n/.test(p.buffer))return this;v=n();var C=v.match(/^()?WEBVTT([ \t].*)?$/);if(!C||!C[0])throw new Error("Malformed WebVTT signature.");p.state="HEADER"}for(var R=!1;p.buffer;){if(!/\r\n|\n/.test(p.buffer))return this;R?R=!1:v=n();switch(p.state){case"HEADER":/:/.test(v)?i(v):v||(p.state="ID");continue;case"NOTE":v||(p.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(v)){p.state="NOTE";break}if(!v)continue;if(p.cue=new N.default(0,0,""),p.state="CUE",v.indexOf("-->")===-1){p.cue.id=v;continue}case"CUE":if(!p.cue){p.state="BADCUE";continue}try{r(v,p.cue,p.regionList)}catch(x){p.cue=null,p.state="BADCUE";continue}p.state="CUETEXT";continue;case"CUETEXT":{var w=v.indexOf("-->")!==-1;if(!v||w&&(R=!0)){p.oncue&&p.cue&&p.oncue(p.cue),p.cue=null,p.state="ID";continue}if(p.cue===null)continue;p.cue.text&&(p.cue.text+=`
`),p.cue.text+=v}continue;case"BADCUE":v||(p.state="ID")}}}catch(x){p.state==="CUETEXT"&&p.cue&&p.oncue&&p.oncue(p.cue),p.cue=null,p.state=p.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this},d.flush=function(){var s=this;try{if((s.cue||s.state==="HEADER")&&(s.buffer+=`
`,s.parse()),s.state==="INITIAL"||s.state==="BADWEBVTT")throw new Error("Malformed WebVTT signature.")}catch(p){s.onparsingerror&&s.onparsingerror(p)}return s.onflush&&s.onflush(),this},l}()},"./src/utils/webvtt-parser.ts":function(Z,U,L){"use strict";L.r(U),L.d(U,"generateCueId",function(){return a}),L.d(U,"parseWebVTT",function(){return d});var N=L("./src/polyfills/number.ts"),c=L("./src/utils/vttparser.ts"),u=L("./src/demux/id3.ts"),M=L("./src/utils/timescale-conversion.ts"),g=L("./src/remux/mp4-remuxer.ts"),e=/\r\n|\n\r|\n|\r/g,m=function(s,p,n){return n===void 0&&(n=0),s.substr(n,p.length)===p},r=function(s){var p=parseInt(s.substr(-3)),n=parseInt(s.substr(-6,2)),i=parseInt(s.substr(-9,2)),v=s.length>9?parseInt(s.substr(0,s.indexOf(":"))):0;if(!Object(N.isFiniteNumber)(p)||!Object(N.isFiniteNumber)(n)||!Object(N.isFiniteNumber)(i)||!Object(N.isFiniteNumber)(v))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+s);return p+=1e3*n,p+=60*1e3*i,p+=60*60*1e3*v,p},h=function(s){for(var p=5381,n=s.length;n;)p=p*33^s.charCodeAt(--n);return(p>>>0).toString()};function a(y,s,p){return h(y.toString())+h(s.toString())+h(p)}var l=function(s,p,n){var i=s[p],v=s[i.prevCC];if(!v||!v.new&&i.new){s.ccOffset=s.presentationOffset=i.start,i.new=!1;return}for(;(C=v)!==null&&C!==void 0&&C.new;){var C;s.ccOffset+=i.start-v.start,i.new=!1,i=v,v=s[i.prevCC]}s.presentationOffset=n};function d(y,s,p,n,i,v,C,R){var w=new c.VTTParser,x=Object(u.utf8ArrayToStr)(new Uint8Array(y)).trim().replace(e,`
`).split(`
`),A=[],o=Object(M.toMpegTsClockFromTimescale)(s,p),f="00:00.000",E=0,O=0,S,b=!0,D=!1;w.oncue=function(P){var I=n[i],F=n.ccOffset,K=(E-o)/9e4;if(I!=null&&I.new&&(O!==void 0?F=n.ccOffset=I.start:l(n,i,K)),K&&(F=K-n.presentationOffset),D){var j=P.endTime-P.startTime,Y=Object(g.normalizePts)((P.startTime+F-O)*9e4,v*9e4)/9e4;P.startTime=Y,P.endTime=Y+j}var W=P.text.trim();P.text=decodeURIComponent(encodeURIComponent(W)),P.id||(P.id=a(P.startTime,P.endTime,W)),P.endTime>0&&A.push(P)},w.onparsingerror=function(P){S=P},w.onflush=function(){if(S){R(S);return}C(A)},x.forEach(function(P){if(b)if(m(P,"X-TIMESTAMP-MAP=")){b=!1,D=!0,P.substr(16).split(",").forEach(function(I){m(I,"LOCAL:")?f=I.substr(6):m(I,"MPEGTS:")&&(E=parseInt(I.substr(7)))});try{O=r(f)/1e3}catch(I){D=!1,S=I}return}else P===""&&(b=!1);w.parse(P+`
`)}),w.flush()}},"./src/utils/xhr-loader.ts":function(Z,U,L){"use strict";L.r(U);var N=L("./src/utils/logger.ts"),c=L("./src/loader/load-stats.ts"),u=/^age:\s*[\d.]+\s*$/m,M=function(){function g(m){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=m?m.xhrSetup:null,this.stats=new c.LoadStats,this.retryDelay=0}var e=g.prototype;return e.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null},e.abortInternal=function(){var r=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),r&&(r.onreadystatechange=null,r.onprogress=null,r.readyState!==4&&(this.stats.aborted=!0,r.abort()))},e.abort=function(){var r;this.abortInternal(),(r=this.callbacks)!==null&&r!==void 0&&r.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},e.load=function(r,h,a){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=r,this.config=h,this.callbacks=a,this.retryDelay=h.retryDelay,this.loadInternal()},e.loadInternal=function(){var r=this.config,h=this.context;if(!r)return;var a=this.loader=new self.XMLHttpRequest,l=this.stats;l.loading.first=0,l.loaded=0;var d=this.xhrSetup;try{if(d)try{d(a,h.url)}catch(p){a.open("GET",h.url,!0),d(a,h.url)}a.readyState||a.open("GET",h.url,!0);var y=this.context.headers;if(y)for(var s in y)a.setRequestHeader(s,y[s])}catch(p){this.callbacks.onError({code:a.status,text:p.message},h,a);return}h.rangeEnd&&a.setRequestHeader("Range","bytes="+h.rangeStart+"-"+(h.rangeEnd-1)),a.onreadystatechange=this.readystatechange.bind(this),a.onprogress=this.loadprogress.bind(this),a.responseType=h.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),r.timeout),a.send()},e.readystatechange=function(){var r=this.context,h=this.loader,a=this.stats;if(!r||!h)return;var l=h.readyState,d=this.config;if(a.aborted)return;if(l>=2)if(self.clearTimeout(this.requestTimeout),a.loading.first===0&&(a.loading.first=Math.max(self.performance.now(),a.loading.start)),l===4){h.onreadystatechange=null,h.onprogress=null;var y=h.status;if(y>=200&&y<300){a.loading.end=Math.max(self.performance.now(),a.loading.first);var s,p;if(r.responseType==="arraybuffer"?(s=h.response,p=s.byteLength):(s=h.responseText,p=s.length),a.loaded=a.total=p,!this.callbacks)return;var n=this.callbacks.onProgress;if(n&&n(a,r,s,h),!this.callbacks)return;var i={url:h.responseURL,data:s};this.callbacks.onSuccess(i,a,r,h)}else a.retry>=d.maxRetry||y>=400&&y<499?(N.logger.error(y+" while loading "+r.url),this.callbacks.onError({code:y,text:h.statusText},r,h)):(N.logger.warn(y+" while loading "+r.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,d.maxRetryDelay),a.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),d.timeout)},e.loadtimeout=function(){N.logger.warn("timeout while loading "+this.context.url);var r=this.callbacks;r&&(this.abortInternal(),r.onTimeout(this.stats,this.context,this.loader))},e.loadprogress=function(r){var h=this.stats;h.loaded=r.loaded,r.lengthComputable&&(h.total=r.total)},e.getCacheAge=function(){var r=null;if(this.loader&&u.test(this.loader.getAllResponseHeaders())){var h=this.loader.getResponseHeader("age");r=h?parseFloat(h):null}return r},g}();U.default=M}}).default})},umnG:function(ge,q,_){ge.exports=_.p+"static/h.22b296a4.svg"},vHTk:function(ge,q,_){ge.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},vKoX:function(ge,q,_){var Z=_("SrGk"),U=_("bYtY");function L(u,M){Z.call(this,u,M,["filter"],"__filter_in_use__","_shadowDom")}U.inherits(L,Z),L.prototype.addWithoutUpdate=function(u,M){if(M&&N(M.style)){var g;if(M._shadowDom){g=M._shadowDom;var e=this.getDefs(!0);e.contains(M._shadowDom)||this.addDom(g)}else g=this.add(M);this.markUsed(M);var m=g.getAttribute("id");u.style.filter="url(#"+m+")"}},L.prototype.add=function(u){var M=this.createElement("filter");return u._shadowDomId=u._shadowDomId||this.nextId++,M.setAttribute("id","zr"+this._zrId+"-shadow-"+u._shadowDomId),this.updateDom(u,M),this.addDom(M),M},L.prototype.update=function(u,M){var g=M.style;if(N(g)){var e=this;Z.prototype.update.call(this,M,function(){e.updateDom(M,M._shadowDom)})}else this.remove(u,M)},L.prototype.remove=function(u,M){M._shadowDomId!=null&&(this.removeDom(u),u.style.filter="")},L.prototype.updateDom=function(u,M){var g=M.getElementsByTagName("feDropShadow");g.length===0?g=this.createElement("feDropShadow"):g=g[0];var e=u.style,m=u.scale&&u.scale[0]||1,r=u.scale&&u.scale[1]||1,h,a,l,d;if(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)h=e.shadowOffsetX||0,a=e.shadowOffsetY||0,l=e.shadowBlur,d=e.shadowColor;else if(e.textShadowBlur)h=e.textShadowOffsetX||0,a=e.textShadowOffsetY||0,l=e.textShadowBlur,d=e.textShadowColor;else{this.removeDom(M,e);return}g.setAttribute("dx",h/m),g.setAttribute("dy",a/r),g.setAttribute("flood-color",d);var y=l/2/m,s=l/2/r,p=y+" "+s;g.setAttribute("stdDeviation",p),M.setAttribute("x","-100%"),M.setAttribute("y","-100%"),M.setAttribute("width",Math.ceil(l/2*200)+"%"),M.setAttribute("height",Math.ceil(l/2*200)+"%"),M.appendChild(g),u._shadowDom=M},L.prototype.markUsed=function(u){u._shadowDom&&Z.prototype.markUsed.call(this,u._shadowDom)};function N(u){return u&&(u.shadowBlur||u.shadowOffsetX||u.shadowOffsetY||u.textShadowBlur||u.textShadowOffsetX||u.textShadowOffsetY)}var c=L;ge.exports=c},vToQ:function(ge,q,_){ge.exports={flex_box_center:"flex_box_center___3UWMh",flex_space_between:"flex_space_between___2nh9S",flex_box_vertical_center:"flex_box_vertical_center___2Neiq",flex_box_center_end:"flex_box_center_end___2_1FS",flex_box_column:"flex_box_column___2E-v7",userPic:"userPic___3Pu9t",rightMenu:"rightMenu___1qaVl",menuWrap:"menuWrap___3r9jm",exit:"exit___38Urs",classromediv:"classromediv___2R8_g",glow:"glow___323IR",height67:"height67___1DFRI",login:"login___20J7t"}},vWvF:function(ge,q,_){var Z=_("Bq2U"),U=_("SUKs"),L=_("bYtY"),N=L.isString,c=L.isFunction,u=L.isObject,M=L.isArrayLike,g=L.indexOf,e=function(){this.animators=[]};e.prototype={constructor:e,animate:function(l,d){var y,s=!1,p=this,n=this.__zr;if(l){var i=l.split("."),v=p;s=i[0]==="shape";for(var C=0,R=i.length;C<R;C++){if(!v)continue;v=v[i[C]]}v&&(y=v)}else y=p;if(!y){U('Property "'+l+'" is not existed in element '+p.id);return}var w=p.animators,x=new Z(y,d);return x.during(function(A){p.dirty(s)}).done(function(){w.splice(g(w,x),1)}),w.push(x),n&&n.animation.addAnimator(x),x},stopAnimation:function(l){for(var d=this.animators,y=d.length,s=0;s<y;s++)d[s].stop(l);return d.length=0,this},animateTo:function(l,d,y,s,p,n){m(this,l,d,y,s,p,n)},animateFrom:function(l,d,y,s,p,n){m(this,l,d,y,s,p,n,!0)}};function m(l,d,y,s,p,n,i,v){N(s)?(n=p,p=s,s=0):c(p)?(n=p,p="linear",s=0):c(s)?(n=s,s=0):c(y)?(n=y,y=500):y||(y=500),l.stopAnimation(),r(l,"",l,d,y,s,v);var C=l.animators.slice(),R=C.length;function w(){R--,R||n&&n()}R||n&&n();for(var x=0;x<C.length;x++)C[x].done(w).start(p,i)}function r(l,d,y,s,p,n,i){var v={},C=0;for(var R in s){if(!s.hasOwnProperty(R))continue;y[R]!=null?u(s[R])&&!M(s[R])?r(l,d?d+"."+R:R,y[R],s[R],p,n,i):(i?(v[R]=y[R],h(l,d,R,s[R])):v[R]=s[R],C++):s[R]!=null&&!i&&h(l,d,R,s[R])}C>0&&l.animate(d,!1).when(p==null?500:p,v).delay(n||0)}function h(l,d,y,s){if(!d)l.attr(y,s);else{var p={};p[d]={},p[d][y]=s,l.attr(p)}}var a=e;ge.exports=a},vix7:function(ge,q,_){ge.exports=_.p+"static/101logo.30046b37.svg"},vvFO:function(ge,q){ge.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAOCAYAAAAmL5yKAAAAAXNSR0IArs4c6QAAAdRJREFUOE99kjtoUwEUhr//JpFU1NKHTWInQRcV6VhdMopYFR84iSAYcEmTFKXgoFZQrGC9aVWMiODgmkJTFxftJE4iWjdBITU3dXGy0sR7JCmNMSY943l8/3mJNjbgWsQxTuOwF5+qHD75q+TLl7Xcmq5WRyRrF2RMA10tsZ/ADS+tyWb//wDX8oLjBnMYCxJVRBzjBBAA7ntpJdchDUAsaxdLKT3qn7StoQC9pUv62qw0kLWDjjEH9EmcLKU0W4vXARHXRgQFiUQppSft9tKcB3zw0tpfB/Tctu5NYRYFgwY/Qj77imNa6gSJufbOYMh32LU8qs+KuPZYkGgUiIKX0rFOgOg9m0YkDY6W05pX/4ztCPmMmJEDHgZ9bhUzfEOyfyBmimZ5CsSBncCiwcu1Hdy1YQV4g1HwMhuoz9hhfF5g1OhVx+fA2hWuWTDSw3eJcEDsXhpVseMIrj0DzmHc8TIa/3tG124aXEG8Cv7mSHFMK+0g26asd7PDbLibQ1/O61cDsP2BbQlUeAvskfHeF1crDq+7HEJ+hbiJJGLBS+l6rWMmVG38wbpS35QNBh3mBUMdRsh7aZ3a8JXJWSi6QsLgbL0bCAIfTTwvx8hxRqvNgD+WtacdNnqQbAAAAABJRU5ErkJggg=="},x6Kt:function(ge,q,_){var Z=_("y+Vt"),U=_("VpOo"),L=_("nPnh"),N=L.subPixelOptimizeRect,c={},u=Z.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(M,g){var e,m,r,h;this.subPixelOptimize?(N(c,g,this.style),e=c.x,m=c.y,r=c.width,h=c.height,c.r=g.r,g=c):(e=g.x,m=g.y,r=g.width,h=g.height),g.r?U.buildPath(M,g):M.rect(e,m,r,h),M.closePath();return}});ge.exports=u},"xH+I":function(ge,q,_){ge.exports=_.p+"static/xsyd.0c0a94b0.png"},xiVL:function(ge,q){ge.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+lIjO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pR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC"},xrsn:function(ge,q,_){ge.exports={flex_box_center:"flex_box_center___2cC1r",flex_space_between:"flex_space_between___9TeDx",flex_box_vertical_center:"flex_box_vertical_center___3EIYv",flex_box_center_end:"flex_box_center_end___1Uph0",flex_box_column:"flex_box_column___17_5w",header:"header___1E4MV",logo:"logo___R8PNJ",menu:"menu___Km2Uo",dropDown:"dropDown___3Phxo",line:"line___3lQ2g",subName:"subName___3sqtP",name:"name___1Odvx",actived:"actived___12Ff0","edu-menu":"edu-menu___2hxbr",newslight:"newslight___jwZR3",classromediv:"classromediv___Cjpgf",glow:"glow___3Nuu5",spandiv:"spandiv___3YPu8","header-iearning":"header-iearning___2Us_L",title:"title___3TtoH",headerFixed:"headerFixed___1V7d4"}},"y+Vt":function(ge,q,_){var Z=_("Gev7"),U=_("bYtY"),L=_("IMiH"),N=_("2DNl"),c=_("3C/r"),u=c.prototype.getCanvasPattern,M=Math.abs,g=new L(!0);function e(r){Z.call(this,r),this.path=null}e.prototype={constructor:e,type:"path",__dirtyPath:!0,strokeContainThreshold:5,segmentIgnoreThreshold:0,subPixelOptimize:!1,brush:function(r,h){var a=this.style,l=this.path||g,d=a.hasStroke(),y=a.hasFill(),s=a.fill,p=a.stroke,n=y&&!!s.colorStops,i=d&&!!p.colorStops,v=y&&!!s.image,C=d&&!!p.image;if(a.bind(r,this,h),this.setTransform(r),this.__dirty){var R;n&&(R=R||this.getBoundingRect(),this._fillGradient=a.getGradient(r,s,R)),i&&(R=R||this.getBoundingRect(),this._strokeGradient=a.getGradient(r,p,R))}n?r.fillStyle=this._fillGradient:v&&(r.fillStyle=u.call(s,r)),i?r.strokeStyle=this._strokeGradient:C&&(r.strokeStyle=u.call(p,r));var w=a.lineDash,x=a.lineDashOffset,A=!!r.setLineDash,o=this.getGlobalScale();if(l.setScale(o[0],o[1],this.segmentIgnoreThreshold),this.__dirtyPath||w&&!A&&d?(l.beginPath(r),w&&!A&&(l.setLineDash(w),l.setLineDashOffset(x)),this.buildPath(l,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(r.beginPath(),this.path.rebuildPath(r)),y)if(a.fillOpacity!=null){var f=r.globalAlpha;r.globalAlpha=a.fillOpacity*a.opacity,l.fill(r),r.globalAlpha=f}else l.fill(r);if(w&&A&&(r.setLineDash(w),r.lineDashOffset=x),d)if(a.strokeOpacity!=null){var f=r.globalAlpha;r.globalAlpha=a.strokeOpacity*a.opacity,l.stroke(r),r.globalAlpha=f}else l.stroke(r);w&&A&&r.setLineDash([]),a.text!=null&&(this.restoreTransform(r),this.drawRectText(r,this.getBoundingRect()))},buildPath:function(r,h,a){},createPathProxy:function(){this.path=new L},getBoundingRect:function(){var r=this._rect,h=this.style,a=!r;if(a){var l=this.path;l||(l=this.path=new L),this.__dirtyPath&&(l.beginPath(),this.buildPath(l,this.shape,!1)),r=l.getBoundingRect()}if(this._rect=r,h.hasStroke()){var d=this._rectWithStroke||(this._rectWithStroke=r.clone());if(this.__dirty||a){d.copy(r);var y=h.lineWidth,s=h.strokeNoScale?this.getLineScale():1;h.hasFill()||(y=Math.max(y,this.strokeContainThreshold||4)),s>1e-10&&(d.width+=y/s,d.height+=y/s,d.x-=y/s/2,d.y-=y/s/2)}return d}return r},contain:function(r,h){var a=this.transformCoordToLocal(r,h),l=this.getBoundingRect(),d=this.style;if(r=a[0],h=a[1],l.contain(r,h)){var y=this.path.data;if(d.hasStroke()){var s=d.lineWidth,p=d.strokeNoScale?this.getLineScale():1;if(p>1e-10&&(d.hasFill()||(s=Math.max(s,this.strokeContainThreshold)),N.containStroke(y,s/p,r,h)))return!0}if(d.hasFill())return N.contain(y,r,h)}return!1},dirty:function(r){r==null&&(r=!0),r&&(this.__dirtyPath=r,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(r){return this.animate("shape",r)},attrKV:function(r,h){r==="shape"?(this.setShape(h),this.__dirtyPath=!0,this._rect=null):Z.prototype.attrKV.call(this,r,h)},setShape:function(r,h){var a=this.shape;if(a){if(U.isObject(r))for(var l in r)r.hasOwnProperty(l)&&(a[l]=r[l]);else a[r]=h;this.dirty(!0)}return this},getLineScale:function(){var r=this.transform;return r&&M(r[0]-1)>1e-10&&M(r[3]-1)>1e-10?Math.sqrt(M(r[0]*r[3]-r[2]*r[1])):1}},e.extend=function(r){var h=function(l){e.call(this,l),r.style&&this.style.extendFrom(r.style,!1);var d=r.shape;if(d){this.shape=this.shape||{};var y=this.shape;for(var s in d)!y.hasOwnProperty(s)&&d.hasOwnProperty(s)&&(y[s]=d[s])}r.init&&r.init.call(this,l)};U.inherits(h,e);for(var a in r)a!=="style"&&a!=="shape"&&(h.prototype[a]=r[a]);return h},U.inherits(e,Z);var m=e;ge.exports=m},y23F:function(ge,q){function _(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this)}_.prototype={constructor:_,_dragStart:function(L){for(var N=L.target;N&&!N.draggable;)N=N.parent;N&&(this._draggingTarget=N,N.dragging=!0,this._x=L.offsetX,this._y=L.offsetY,this.dispatchToElement(Z(N,L),"dragstart",L.event))},_drag:function(L){var N=this._draggingTarget;if(N){var c=L.offsetX,u=L.offsetY,M=c-this._x,g=u-this._y;this._x=c,this._y=u,N.drift(M,g,L),this.dispatchToElement(Z(N,L),"drag",L.event);var e=this.findHover(c,u,N).target,m=this._dropTarget;this._dropTarget=e,N!==e&&(m&&e!==m&&this.dispatchToElement(Z(m,L),"dragleave",L.event),e&&e!==m&&this.dispatchToElement(Z(e,L),"dragenter",L.event))}},_dragEnd:function(L){var N=this._draggingTarget;N&&(N.dragging=!1),this.dispatchToElement(Z(N,L),"dragend",L.event),this._dropTarget&&this.dispatchToElement(Z(this._dropTarget,L),"drop",L.event),this._draggingTarget=null,this._dropTarget=null}};function Z(L,N){return{target:L,topTarget:N&&N.topTarget}}var U=_;ge.exports=U},"yTi+":function(ge,q,_){ge.exports=_.p+"static/AssistantCode3.fdd8db3c.jpeg"},ygIP:function(ge,q,_){ge.exports=_.p+"static/icon4.bfb8c3b7.svg"},yslc:function(ge,q){ge.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALoAAABSCAYAAADjGc4eAAAOHklEQVR4Xu1dCXQURRr+emZyTO6D3BCEgKCInCKeK3IoiyIqlxLyQBRBV8DNhCCrS3Z9Cq66KOoi68ECKocCcutTLhUERM1MEpBLEuQmQMKEnDNd+6onEzKTuXqmJ5l0V/EeL+mp+qu+r77UVP1V9TcHffZbIJgOlhgDMmaAA8lTwVDxJQh5UMY4GTSFM8AJ+PW6cIDsBEEfhfPB4MuUAYvQaTowOwV1NXtB0E6mWBksBTNwTeiUBENud/CmHwBEKZgTBl2GDNgKnQIsyBkCM9kEEI0M8TJICmWgqdCFkT17MngsUignDLYMGXAsdAo0XzcPILkyxMwgKZAB50InhIMhZxUIGalAXhhkmTHgX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FzpVpVOqhdZkbaJSKhsSELruuVxYgG6FzOK+Bekjd+I16exaY0JWlC9mhbRA6h5PBCBpUM369w1jdTOiy63plAaoX+rEQNTewetzmEmfomdCVpQvZoeWWDi3UctrBlePXnHHpTZcdcgZIUQxErnk43vjI2ovuQP8faDGikjbF4FsAAAAASUVORK5CYII="},yxFR:function(ge,q,_){var Z=_("y+Vt"),U=_("nPnh"),L=U.subPixelOptimizeLine,N={},c=Z.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(u,M){var g,e,m,r;this.subPixelOptimize?(L(N,M,this.style),g=N.x1,e=N.y1,m=N.x2,r=N.y2):(g=M.x1,e=M.y1,m=M.x2,r=M.y2);var h=M.percent;if(h===0)return;u.moveTo(g,e),h<1&&(m=g*(1-h)+m*h,r=e*(1-h)+r*h),u.lineTo(m,r)},pointAt:function(u){var M=this.shape;return[M.x1*(1-u)+M.x2*u,M.y1*(1-u)+M.y2*u]}});ge.exports=c},z4EP:function(ge,q){ge.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJgAAAA4CAYAAAAB3jHPAAAAAXNSR0IArs4c6QAAIABJREFUeF7dXQd4FdeV/ucJid5MMRgjRAeBBDZg0zFG9NiwMbis635O2WQ32WyS3Q1J1glxId6NU522ceLEsZMYMM1U0wWmG0RRo4MkRC+mCklv9rvn3nPLvHlPT5RsvM9F0nsz86b885///OfcOx5u8cv3/RQcX3pvtDo6zPf8HhGgh+957eH7jQE09oG0sK/0oj48AD7959Mv9Lcv3uGfPnw/av6mhcV7wWXE21H9mbuO2LbcPvwoLecuq7bn+/Cs7YvvCC7H+yW/3wfoK+X2ffkHomrf6DvlCnp/5d9R2hVP/ONX0++IelBffouvzl9/c+Ia3vTL97elVpccm+B73lOe748G0NSPyE2L/4sLxX8n+jIGmVhGnOqIvibxQCYvWHyQic8EgBRs1QX31Dp0NaPiAjPQzLYYKLTvBFb5UwPIArUEHwNW/pRYksvLRR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=_("YH21"),U=Z.addEventListener,L=Z.removeEventListener,N=Z.normalizeEvent,c=Z.getNativeEvent,u=_("bYtY"),M=_("H6uX"),g=_("ItGF"),e=300,m=g.domSupported,r=function(){var b=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],D=["touchstart","touchend","touchmove"],P={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},I=u.map(b,function(F){var K=F.replace("mouse","pointer");return P.hasOwnProperty(K)?K:F});return{mouse:b,touch:D,pointer:I}}(),h={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]};function a(b){return b==="mousewheel"&&g.browser.firefox?"DOMMouseScroll":b}function l(b){var D=b.pointerType;return D==="pen"||D==="touch"}function d(b){b.touching=!0,b.touchTimer!=null&&(clearTimeout(b.touchTimer),b.touchTimer=null),b.touchTimer=setTimeout(function(){b.touching=!1,b.touchTimer=null},700)}function y(b){b&&(b.zrByTouch=!0)}function s(b,D){return N(b.dom,new n(b,D),!0)}function p(b,D){for(var P=D,I=!1;P&&P.nodeType!==9&&!(I=P.domBelongToZr||P!==D&&P===b.painterRoot);)P=P.parentNode;return I}function n(b,D){this.type=D.type,this.target=this.currentTarget=b.dom,this.pointerType=D.pointerType,this.clientX=D.clientX,this.clientY=D.clientY}var i=n.prototype;i.stopPropagation=i.stopImmediatePropagation=i.preventDefault=u.noop;var v={mousedown:function(b){b=N(this.dom,b),this._mayPointerCapture=[b.zrX,b.zrY],this.trigger("mousedown",b)},mousemove:function(b){b=N(this.dom,b);var D=this._mayPointerCapture;D&&(b.zrX!==D[0]||b.zrY!==D[1])&&o(this,!0),this.trigger("mousemove",b)},mouseup:function(b){b=N(this.dom,b),o(this,!1),this.trigger("mouseup",b)},mouseout:function(b){b=N(this.dom,b),this._pointerCapturing&&(b.zrEventControl="no_globalout");var D=b.toElement||b.relatedTarget;b.zrIsToLocalDOM=p(this,D),this.trigger("mouseout",b)},touchstart:function(b){b=N(this.dom,b),y(b),this._lastTouchMoment=new Date,this.handler.processGesture(b,"start"),v.mousemove.call(this,b),v.mousedown.call(this,b)},touchmove:function(b){b=N(this.dom,b),y(b),this.handler.processGesture(b,"change"),v.mousemove.call(this,b)},touchend:function(b){b=N(this.dom,b),y(b),this.handler.processGesture(b,"end"),v.mouseup.call(this,b),+new Date-this._lastTouchMoment<e&&v.click.call(this,b)},pointerdown:function(b){v.mousedown.call(this,b)},pointermove:function(b){l(b)||v.mousemove.call(this,b)},pointerup:function(b){v.mouseup.call(this,b)},pointerout:function(b){l(b)||v.mouseout.call(this,b)}};u.each(["click","mousewheel","dblclick","contextmenu"],function(b){v[b]=function(D){D=N(this.dom,D),this.trigger(b,D)}});var C={pointermove:function(b){l(b)||C.mousemove.call(this,b)},pointerup:function(b){C.mouseup.call(this,b)},mousemove:function(b){this.trigger("mousemove",b)},mouseup:function(b){var D=this._pointerCapturing;o(this,!1),this.trigger("mouseup",b),D&&(b.zrEventControl="only_globalout",this.trigger("mouseout",b))}};function R(b,D){var P=D.domHandlers;g.pointerEventsSupported?u.each(r.pointer,function(I){x(D,I,function(F){P[I].call(b,F)})}):(g.touchEventsSupported&&u.each(r.touch,function(I){x(D,I,function(F){P[I].call(b,F),d(D)})}),u.each(r.mouse,function(I){x(D,I,function(F){F=c(F),D.touching||P[I].call(b,F)})}))}function w(b,D){g.pointerEventsSupported?u.each(h.pointer,P):g.touchEventsSupported||u.each(h.mouse,P);function P(I){function F(K){K=c(K),p(b,K.target)||(K=s(b,K),D.domHandlers[I].call(b,K))}x(D,I,F,{capture:!0})}}function x(b,D,P,I){b.mounted[D]=P,b.listenerOpts[D]=I,U(b.domTarget,a(D),P,I)}function A(b){var D=b.mounted;for(var P in D)D.hasOwnProperty(P)&&L(b.domTarget,a(P),D[P],b.listenerOpts[P]);b.mounted={}}function o(b,D){if(b._mayPointerCapture=null,m&&b._pointerCapturing^D){b._pointerCapturing=D;var P=b._globalHandlerScope;D?w(b,P):A(P)}}function f(b,D){this.domTarget=b,this.domHandlers=D,this.mounted={},this.listenerOpts={},this.touchTimer=null,this.touching=!1}function E(b,D){M.call(this),this.dom=b,this.painterRoot=D,this._localHandlerScope=new f(b,v),m&&(this._globalHandlerScope=new f(document,C)),this._pointerCapturing=!1,this._mayPointerCapture=null,R(this,this._localHandlerScope)}var O=E.prototype;O.dispose=function(){A(this._localHandlerScope),m&&A(this._globalHandlerScope)},O.setCursor=function(b){this.dom.style&&(this.dom.style.cursor=b||"default")},u.mixin(E,M);var S=E;ge.exports=S},zrhs:function(ge,q,_){"use strict";var Z=_("2qtc"),U=_("kLXV"),L=_("PpiC"),N=_("q1tI"),c=_.n(N),u=_("9kvl"),M=function(e){var m=e.shixunsDetail,r=e.globalSetting,h=e.loading,a=e.dispatch,l=Object(L.a)(e,["shixunsDetail","globalSetting","loading","dispatch"]);return c.a.createElement(U.a,{centered:!0,keyboard:!1,closable:!1,zIndex:6666,title:"\u63D0\u793A",visible:m.actionTabs.key==="Banner-Auth",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){a({type:"shixunsDetail/setActionTabs",payload:{}}),window.location.href="/account/certification"},onCancel:function(){a({type:"shixunsDetail/setActionTabs",payload:{}})}},c.a.createElement("p",{className:"tc font16"},"\u5F53\u524D\u7ADE\u8D5B\u9700\u8981\u5B9E\u540D\u8BA4\u8BC1\uFF0C\u8BF7\u5148\u5B8C\u6210\u5B9E\u540D\u8BA4\u8BC1\u540E\u518D\u62A5\u540D\u53C2\u8D5B",c.a.createElement("br",null),"\u8BF7\u95EE\u662F\u5426\u524D\u5F80\u8FDB\u884C\u8BA4\u8BC1\uFF1F"))};q.a=Object(u.a)(function(g){var e=g.shixunsDetail,m=g.loading,r=g.globalSetting;return{shixunsDetail:e,globalSetting:r,loading:m.models.index}})(M)}}]);