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.
485 lines
2.1 MiB
485 lines
2.1 MiB
(window.webpackJsonp=window.webpackJsonp||[]).push([[202,3,5,6,7,8,9,11,13,17,20],{"+NIl":function(Re,te,v){(function(Z){Z(v("VrN/"))})(function(Z){"use strict";Z.defineMode("stex",function(K,I){"use strict";function k(s,i){s.cmdState.push(i)}function _(s){return s.cmdState.length>0?s.cmdState[s.cmdState.length-1]:null}function O(s){var i=s.cmdState.pop();i&&i.closeBracket()}function M(s){for(var i=s.cmdState,u=i.length-1;u>=0;u--){var d=i[u];if(d.name=="DEFAULT")continue;return d}return{styleIdentifier:function(){return null}}}function x(s,i,u){return function(){this.name=s,this.bracketNo=0,this.style=i,this.styles=u,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var n={};n.importmodule=x("importmodule","tag",["string","builtin"]),n.documentclass=x("documentclass","tag",["","atom"]),n.usepackage=x("usepackage","tag",["atom"]),n.begin=x("begin","tag",["atom"]),n.end=x("end","tag",["atom"]),n.label=x("label","tag",["atom"]),n.ref=x("ref","tag",["atom"]),n.eqref=x("eqref","tag",["atom"]),n.cite=x("cite","tag",["atom"]),n.bibitem=x("bibitem","tag",["atom"]),n.Bibitem=x("Bibitem","tag",["atom"]),n.RBibitem=x("RBibitem","tag",["atom"]),n.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function p(s,i){s.f=i}function a(s,i){var u;if(s.match(/^\\[a-zA-Z@]+/)){var d=s.current().slice(1);return u=n.hasOwnProperty(d)?n[d]:n.DEFAULT,u=new u,k(i,u),p(i,h),u.style}if(s.match(/^\\[$&%#{}_]/))return"tag";if(s.match(/^\\[,;!\/\\]/))return"tag";if(s.match("\\["))return p(i,function(o,c){return t(o,c,"\\]")}),"keyword";if(s.match("\\("))return p(i,function(o,c){return t(o,c,"\\)")}),"keyword";if(s.match("$$"))return p(i,function(o,c){return t(o,c,"$$")}),"keyword";if(s.match("$"))return p(i,function(o,c){return t(o,c,"$")}),"keyword";var f=s.next();if(f=="%")return s.skipToEnd(),"comment";if(f=="}"||f=="]"){if(u=_(i),u)u.closeBracket(f),p(i,h);else return"error";return"bracket"}else return f=="{"||f=="["?(u=n.DEFAULT,u=new u,k(i,u),"bracket"):/\d/.test(f)?(s.eatWhile(/[\w.%]/),"atom"):(s.eatWhile(/[\w\-_]/),u=M(i),u.name=="begin"&&(u.argument=s.current()),u.styleIdentifier())}function t(s,i,u){if(s.eatSpace())return null;if(u&&s.match(u))return p(i,a),"keyword";if(s.match(/^\\[a-zA-Z@]+/))return"tag";if(s.match(/^[a-zA-Z]+/))return"variable-2";if(s.match(/^\\[$&%#{}_]/))return"tag";if(s.match(/^\\[,;!\/]/))return"tag";if(s.match(/^[\^_&]/))return"tag";if(s.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(s.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var d=s.next();return d=="{"||d=="}"||d=="["||d=="]"||d=="("||d==")"?"bracket":d=="%"?(s.skipToEnd(),"comment"):"error"}function h(s,i){var u=s.peek(),d;return u=="{"||u=="["?(d=_(i),d.openBracket(u),s.eat(u),p(i,a),"bracket"):/[ \t\r]/.test(u)?(s.eat(u),null):(p(i,a),O(i),a(s,i))}return{startState:function(){var s=I.inMathMode?function(i,u){return t(i,u)}:a;return{cmdState:[],f:s}},copyState:function(s){return{cmdState:s.cmdState.slice(),f:s.f}},token:function(s,i){return i.f(s,i)},blankLine:function(s){s.f=a,s.cmdState.length=0},lineComment:"%"}}),Z.defineMIME("text/x-stex","stex"),Z.defineMIME("text/x-latex","stex")})},"+QRC":function(Re,te,v){"use strict";var Z=v("E9nw"),K={"text/plain":"Text","text/html":"Url",default:"Text"},I="Copy to clipboard: #{key}, Enter";function k(O){var M=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return O.replace(/#{\s*key\s*}/g,M)}function _(O,M){var x,n,p,a,t,h,s=!1;M||(M={}),x=M.debug||!1;try{p=Z(),a=document.createRange(),t=document.getSelection(),h=document.createElement("span"),h.textContent=O,h.style.all="unset",h.style.position="fixed",h.style.top=0,h.style.clip="rect(0, 0, 0, 0)",h.style.whiteSpace="pre",h.style.webkitUserSelect="text",h.style.MozUserSelect="text",h.style.msUserSelect="text",h.style.userSelect="text",h.addEventListener("copy",function(u){if(u.stopPropagation(),M.format)if(u.preventDefault(),typeof u.clipboardData=="undefined"){x&&console.warn("unable to use e.clipboardData"),x&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var d=K[M.format]||K.default;window.clipboardData.setData(d,O)}else u.clipboardData.clearData(),u.clipboardData.setData(M.format,O);M.onCopy&&(u.preventDefault(),M.onCopy(u.clipboardData))}),document.body.appendChild(h),a.selectNodeContents(h),t.addRange(a);var i=document.execCommand("copy");if(!i)throw new Error("copy command was unsuccessful");s=!0}catch(u){x&&console.error("unable to copy using execCommand: ",u),x&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(M.format||"text",O),M.onCopy&&M.onCopy(window.clipboardData),s=!0}catch(d){x&&console.error("unable to copy using clipboardData: ",d),x&&console.error("falling back to prompt"),n=k("message"in M?M.message:I),window.prompt(n,O)}}finally{t&&(typeof t.removeRange=="function"?t.removeRange(a):t.removeAllRanges()),h&&document.body.removeChild(h),p()}return s}Re.exports=_},"+ua5":function(Re,te,v){},"/GNS":function(Re,te,v){Re.exports=v.p+"static/search1.c4136dd4.png"},"/cxE":function(Re,te,v){"use strict";v.d(te,"f",function(){return I}),v.d(te,"g",function(){return k}),v.d(te,"h",function(){return _}),v.d(te,"e",function(){return M}),v.d(te,"b",function(){return x}),v.d(te,"c",function(){return n}),v.d(te,"d",function(){return p}),v.d(te,"a",function(){return a});class Z{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(t){setTimeout(()=>{throw t.stack?new Error(t.message+`
|
|
|
|
`+t.stack):t},0)}}emit(t){this.listeners.forEach(h=>{h(t)})}onUnexpectedError(t){this.unexpectedErrorHandler(t),this.emit(t)}onUnexpectedExternalError(t){this.unexpectedErrorHandler(t)}}const K=new Z;function I(t){M(t)||K.onUnexpectedError(t);return}function k(t){M(t)||K.onUnexpectedExternalError(t);return}function _(t){if(t instanceof Error){let{name:h,message:s}=t;const i=t.stacktrace||t.stack;return{$isError:!0,name:h,message:s,stack:i}}return t}const O="Canceled";function M(t){return t instanceof Error&&t.name===O&&t.message===O}function x(){const t=new Error(O);return t.name=t.message,t}function n(t){return t?new Error(`Illegal argument: ${t}`):new Error("Illegal argument")}function p(t){return t?new Error(`Illegal state: ${t}`):new Error("Illegal state")}class a extends Error{constructor(t){super("NotSupported");t&&(this.message=t)}}},"06Qe":function(Re,te,v){var Z=v("ItGF"),K="urn:schemas-microsoft-com:vml",I=typeof window=="undefined"?null:window,k=!1,_=I&&I.document;function O(n){return M(n)}var M;if(_&&!Z.canvasSupported)try{!_.namespaces.zrvml&&_.namespaces.add("zrvml",K),M=function(n){return _.createElement("<zrvml:"+n+' class="zrvml">')}}catch(n){M=function(p){return _.createElement("<"+p+' xmlns="'+K+'" class="zrvml">')}}function x(){if(k||!_)return;k=!0;var n=_.styleSheets;n.length<31?_.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):n[0].addRule(".zrvml","behavior:url(#default#VML)")}te.doc=_,te.createNode=O,te.initVML=x},"07cG":function(Re,te,v){Re.exports={ldsRing:"ldsRing___2F8W7",idsRingWrapper:"idsRingWrapper___fC2cF",ldsring:"ldsring___3A88y"}},"0s+r":function(Re,te,v){var Z=v("bYtY"),K=v("QBsz"),I=v("y23F"),k=v("H6uX"),_=v("YH21"),O=v("C0SR"),M="silent";function x(u,d,f){return{type:u,event:f,target:d.target,topTarget:d.topTarget,cancelBubble:!1,offsetX:f.zrX,offsetY:f.zrY,gestureEvent:f.gestureEvent,pinchX:f.pinchX,pinchY:f.pinchY,pinchScale:f.pinchScale,wheelDelta:f.zrDelta,zrByTouch:f.zrByTouch,which:f.which,stop:n}}function n(){_.stop(this.event)}function p(){}p.prototype.dispose=function(){};var a=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=function(u,d,f,o){k.call(this),this.storage=u,this.painter=d,this.painterRoot=o,f=f||new p,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,I.call(this),this.setHandlerProxy(f)};t.prototype={constructor:t,setHandlerProxy:function(u){this.proxy&&this.proxy.dispose(),u&&(Z.each(a,function(d){u.on&&u.on(d,this[d],this)},this),u.handler=this),this.proxy=u},mousemove:function(u){var d=u.zrX,f=u.zrY,o=s(this,d,f),c=this._hovered,E=c.target;E&&!E.__zr&&(c=this.findHover(c.x,c.y),E=c.target);var B=this._hovered=o?{x:d,y:f}:this.findHover(d,f),w=B.target,P=this.proxy;P.setCursor&&P.setCursor(w?w.cursor:"default"),E&&w!==E&&this.dispatchToElement(c,"mouseout",u),this.dispatchToElement(B,"mousemove",u),w&&w!==E&&this.dispatchToElement(B,"mouseover",u)},mouseout:function(u){var d=u.zrEventControl,f=u.zrIsToLocalDOM;d!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",u),d!=="no_globalout"&&(!f&&this.trigger("globalout",{type:"globalout",event:u}))},resize:function(u){this._hovered={}},dispatch:function(u,d){var f=this[u];f&&f.call(this,d)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(u){var d=this.proxy;d.setCursor&&d.setCursor(u)},dispatchToElement:function(u,d,f){u=u||{};var o=u.target;if(o&&o.silent)return;for(var c="on"+d,E=x(d,u,f);o&&!(o[c]&&(E.cancelBubble=o[c].call(o,E)),o.trigger(d,E),o=o.parent,E.cancelBubble););E.cancelBubble||(this.trigger(d,E),this.painter&&this.painter.eachOtherLayer(function(B){typeof B[c]=="function"&&B[c].call(B,E),B.trigger&&B.trigger(d,E)}))},findHover:function(u,d,f){for(var o=this.storage.getDisplayList(),c={x:u,y:d},E=o.length-1;E>=0;E--){var B;if(o[E]!==f&&!o[E].ignore&&(B=h(o[E],u,d))&&(!c.topTarget&&(c.topTarget=o[E]),B!==M)){c.target=o[E];break}}return c},processGesture:function(u,d){this._gestureMgr||(this._gestureMgr=new O);var f=this._gestureMgr;d==="start"&&f.clear();var o=f.recognize(u,this.findHover(u.zrX,u.zrY,null).target,this.proxy.dom);if(d==="end"&&f.clear(),o){var c=o.type;u.gestureEvent=c,this.dispatchToElement({target:o.target},c,o.event)}}},Z.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(u){t.prototype[u]=function(d){var f=d.zrX,o=d.zrY,c=s(this,f,o),E,B;if((u!=="mouseup"||!c)&&(E=this.findHover(f,o),B=E.target),u==="mousedown")this._downEl=B,this._downPoint=[d.zrX,d.zrY],this._upEl=B;else if(u==="mouseup")this._upEl=B;else if(u==="click"){if(this._downEl!==this._upEl||!this._downPoint||K.dist(this._downPoint,[d.zrX,d.zrY])>4)return;this._downPoint=null}this.dispatchToElement(E,u,d)}});function h(u,d,f){if(u[u.rectHover?"rectContain":"contain"](d,f)){for(var o=u,c;o;){if(o.clipPath&&!o.clipPath.contain(d,f))return!1;o.silent&&(c=!0),o=o.parent}return c?M:!0}return!1}function s(u,d,f){var o=u.painter;return d<0||d>o.getWidth()||f<0||f>o.getHeight()}Z.mixin(t,k),Z.mixin(t,I);var i=t;Re.exports=i},"19Vz":function(Re,te,v){(function(Z){Z(v("VrN/"))})(function(Z){Z.defineOption("placeholder","",function(x,n,p){var a=p&&p!=Z.Init;if(n&&!a)x.on("blur",_),x.on("change",O),x.on("swapDoc",O),Z.on(x.getInputField(),"compositionupdate",x.state.placeholderCompose=function(){k(x)}),O(x);else if(!n&&a){x.off("blur",_),x.off("change",O),x.off("swapDoc",O),Z.off(x.getInputField(),"compositionupdate",x.state.placeholderCompose),K(x);var t=x.getWrapperElement();t.className=t.className.replace(" CodeMirror-empty","")}n&&!x.hasFocus()&&_(x)});function K(x){x.state.placeholder&&(x.state.placeholder.parentNode.removeChild(x.state.placeholder),x.state.placeholder=null)}function I(x){K(x);var n=x.state.placeholder=document.createElement("pre");n.style.cssText="height: 0; overflow: visible",n.style.direction=x.getOption("direction"),n.className="CodeMirror-placeholder CodeMirror-line-like";var p=x.getOption("placeholder");typeof p=="string"&&(p=document.createTextNode(p)),n.appendChild(p),x.display.lineSpace.insertBefore(n,x.display.lineSpace.firstChild)}function k(x){setTimeout(function(){var n=!1,p=x.getInputField();p.nodeName=="TEXTAREA"?n=!p.value:x.lineCount()==1&&(n=!/[^\u200b]/.test(p.querySelector(".CodeMirror-line").textContent)),n?I(x):K(x)},20)}function _(x){M(x)&&I(x)}function O(x){var n=x.getWrapperElement(),p=M(x);n.className=n.className.replace(" CodeMirror-empty","")+(p?" CodeMirror-empty":""),p?I(x):K(x)}function M(x){return x.lineCount()===1&&x.getLine(0)===""}})},"1Jh7":function(Re,te,v){var Z=v("y+Vt"),K=v("T6xi"),I=Z.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(k,_){K.buildPath(k,_,!1)}});Re.exports=I},"1MYJ":function(Re,te,v){var Z=v("y+Vt"),K=Z.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var I=this.__dirtyPath,k=this.shape.paths,_=0;_<k.length;_++)I=I||k[_].__dirtyPath;this.__dirtyPath=I,this.__dirty=this.__dirty||I},beforeBrush:function(){this._updatePathDirty();for(var I=this.shape.paths||[],k=this.getGlobalScale(),_=0;_<I.length;_++)I[_].path||I[_].createPathProxy(),I[_].path.setScale(k[0],k[1],I[_].segmentIgnoreThreshold)},buildPath:function(I,k){for(var _=k.paths||[],O=0;O<_.length;O++)_[O].buildPath(I,_[O].shape,!0)},afterBrush:function(){for(var I=this.shape.paths||[],k=0;k<I.length;k++)I[k].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),Z.prototype.getBoundingRect.call(this)}});Re.exports=K},"1RvN":function(Re,te){var v=function(){this.head=null,this.tail=null,this._len=0},Z=v.prototype;Z.insert=function(O){var M=new K(O);return this.insertEntry(M),M},Z.insertEntry=function(O){this.head?(this.tail.next=O,O.prev=this.tail,O.next=null,this.tail=O):this.head=this.tail=O,this._len++},Z.remove=function(O){var M=O.prev,x=O.next;M?M.next=x:this.head=x,x?x.prev=M:this.tail=M,O.next=O.prev=null,this._len--},Z.len=function(){return this._len},Z.clear=function(){this.head=this.tail=null,this._len=0};var K=function(O){this.value=O,this.next,this.prev},I=function(O){this._list=new v,this._map={},this._maxSize=O||10,this._lastRemovedEntry=null},k=I.prototype;k.put=function(O,M){var x=this._list,n=this._map,p=null;if(n[O]==null){var a=x.len(),t=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var h=x.head;x.remove(h),delete n[h.key],p=h.value,this._lastRemovedEntry=h}t?t.value=M:t=new K(M),t.key=O,x.insertEntry(t),n[O]=t}return p},k.get=function(O){var M=this._map[O],x=this._list;if(M!=null)return M!==x.tail&&(x.remove(M),x.insertEntry(M)),M.value},k.clear=function(){this._list.clear(),this._map={}};var _=I;Re.exports=_},"1ZF9":function(Re,te,v){Re.exports=v.p+"static/Authorize.cc9c212f.png"},"1bdT":function(Re,te,v){var Z=v("3gBT"),K=v("H6uX"),I=v("DN4a"),k=v("vWvF"),_=v("bYtY"),O=function(x){I.call(this,x),K.call(this,x),k.call(this,x),this.id=x.id||Z()};O.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(x,n){switch(this.draggable){case"horizontal":n=0;break;case"vertical":x=0;break}var p=this.transform;p||(p=this.transform=[1,0,0,1,0,0]),p[4]+=x,p[5]+=n,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(x,n){},attrKV:function(x,n){if(x==="position"||x==="scale"||x==="origin"){if(n){var p=this[x];p||(p=this[x]=[]),p[0]=n[0],p[1]=n[1]}}else this[x]=n},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(x,n){if(typeof x=="string")this.attrKV(x,n);else if(_.isObject(x))for(var p in x)x.hasOwnProperty(p)&&this.attrKV(p,x[p]);return this.dirty(!1),this},setClipPath:function(x){var n=this.__zr;n&&x.addSelfToZr(n),this.clipPath&&this.clipPath!==x&&this.removeClipPath(),this.clipPath=x,x.__zr=n,x.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var x=this.clipPath;x&&(x.__zr&&x.removeSelfFromZr(x.__zr),x.__zr=null,x.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(x){this.__zr=x;var n=this.animators;if(n)for(var p=0;p<n.length;p++)x.animation.addAnimator(n[p]);this.clipPath&&this.clipPath.addSelfToZr(x)},removeSelfFromZr:function(x){this.__zr=null;var n=this.animators;if(n)for(var p=0;p<n.length;p++)x.animation.removeAnimator(n[p]);this.clipPath&&this.clipPath.removeSelfFromZr(x)}},_.mixin(O,k),_.mixin(O,I),_.mixin(O,K);var M=O;Re.exports=M},"1eCo":function(Re,te,v){(function(Z){Z(v("VrN/"))})(function(Z){"use strict";var K={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},I={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};Z.defineMode("xml",function(k,_){var O=k.indentUnit,M={},x=_.htmlMode?K:I;for(var n in x)M[n]=x[n];for(var n in _)M[n]=_[n];var p,a;function t(g,T){function m(N){return T.tokenize=N,N(g,T)}var y=g.next();if(y=="<")return g.eat("!")?g.eat("[")?g.match("CDATA[")?m(i("atom","]]>")):null:g.match("--")?m(i("comment","-->")):g.match("DOCTYPE",!0,!0)?(g.eatWhile(/[\w\._\-]/),m(u(1))):null:g.eat("?")?(g.eatWhile(/[\w\._\-]/),T.tokenize=i("meta","?>"),"meta"):(p=g.eat("/")?"closeTag":"openTag",T.tokenize=h,"tag bracket");if(y=="&"){var U;return g.eat("#")?g.eat("x")?U=g.eatWhile(/[a-fA-F\d]/)&&g.eat(";"):U=g.eatWhile(/[\d]/)&&g.eat(";"):U=g.eatWhile(/[\w\.\-:]/)&&g.eat(";"),U?"atom":"error"}else return g.eatWhile(/[^&<]/),null}t.isInText=!0;function h(g,T){var m=g.next();if(m==">"||m=="/"&&g.eat(">"))return T.tokenize=t,p=m==">"?"endTag":"selfcloseTag","tag bracket";if(m=="=")return p="equals",null;if(m=="<"){T.tokenize=t,T.state=c,T.tagName=T.tagStart=null;var y=T.tokenize(g,T);return y?y+" tag error":"tag error"}else return/[\'\"]/.test(m)?(T.tokenize=s(m),T.stringStartCol=g.column(),T.tokenize(g,T)):(g.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function s(g){var T=function(m,y){for(;!m.eol();)if(m.next()==g){y.tokenize=h;break}return"string"};return T.isInAttribute=!0,T}function i(g,T){return function(m,y){for(;!m.eol();){if(m.match(T)){y.tokenize=t;break}m.next()}return g}}function u(g){return function(T,m){for(var y;(y=T.next())!=null;){if(y=="<")return m.tokenize=u(g+1),m.tokenize(T,m);if(y==">")if(g==1){m.tokenize=t;break}else return m.tokenize=u(g-1),m.tokenize(T,m)}return"meta"}}function d(g,T,m){this.prev=g.context,this.tagName=T,this.indent=g.indented,this.startOfLine=m,(M.doNotIndent.hasOwnProperty(T)||g.context&&g.context.noIndent)&&(this.noIndent=!0)}function f(g){g.context&&(g.context=g.context.prev)}function o(g,T){for(var m;;){if(!g.context)return;if(m=g.context.tagName,!M.contextGrabbers.hasOwnProperty(m)||!M.contextGrabbers[m].hasOwnProperty(T))return;f(g)}}function c(g,T,m){return g=="openTag"?(m.tagStart=T.column(),E):g=="closeTag"?B:c}function E(g,T,m){return g=="word"?(m.tagName=T.current(),a="tag",C):M.allowMissingTagName&&g=="endTag"?(a="tag bracket",C(g,T,m)):(a="error",E)}function B(g,T,m){if(g=="word"){var y=T.current();return m.context&&m.context.tagName!=y&&M.implicitlyClosed.hasOwnProperty(m.context.tagName)&&f(m),m.context&&m.context.tagName==y||M.matchClosing===!1?(a="tag",w):(a="tag error",P)}else return M.allowMissingTagName&&g=="endTag"?(a="tag bracket",w(g,T,m)):(a="error",P)}function w(g,T,m){return g!="endTag"?(a="error",w):(f(m),c)}function P(g,T,m){return a="error",w(g,T,m)}function C(g,T,m){if(g=="word")return a="attribute",b;if(g=="endTag"||g=="selfcloseTag"){var y=m.tagName,U=m.tagStart;return m.tagName=m.tagStart=null,g=="selfcloseTag"||M.autoSelfClosers.hasOwnProperty(y)?o(m,y):(o(m,y),m.context=new d(m,y,U==m.indented)),c}return a="error",C}function b(g,T,m){return g=="equals"?l:(M.allowMissing||(a="error"),C(g,T,m))}function l(g,T,m){return g=="string"?A:g=="word"&&M.allowUnquoted?(a="string",C):(a="error",C(g,T,m))}function A(g,T,m){return g=="string"?A:C(g,T,m)}return{startState:function(g){var T={tokenize:t,state:c,indented:g||0,tagName:null,tagStart:null,context:null};return g!=null&&(T.baseIndent=g),T},token:function(g,T){if(!T.tagName&&g.sol()&&(T.indented=g.indentation()),g.eatSpace())return null;p=null;var m=T.tokenize(g,T);return(m||p)&&m!="comment"&&(a=null,T.state=T.state(p||m,g,T),a&&(m=a=="error"?m+" error":a)),m},indent:function(g,T,m){var y=g.context;if(g.tokenize.isInAttribute)return g.tagStart==g.indented?g.stringStartCol+1:g.indented+O;if(y&&y.noIndent)return Z.Pass;if(g.tokenize!=h&&g.tokenize!=t)return m?m.match(/^(\s*)/)[0].length:0;if(g.tagName)return M.multilineTagIndentPastTag!==!1?g.tagStart+g.tagName.length+2:g.tagStart+O*(M.multilineTagIndentFactor||1);if(M.alignCDATA&&/<!\[CDATA\[/.test(T))return 0;var U=T&&/^<(\/)?([\w_:\.-]*)/.exec(T);if(U&&U[1])for(;y;)if(y.tagName==U[2]){y=y.prev;break}else if(M.implicitlyClosed.hasOwnProperty(y.tagName))y=y.prev;else break;else if(U)for(;y;){var N=M.contextGrabbers[y.tagName];if(N&&N.hasOwnProperty(U[2]))y=y.prev;else break}for(;y&&y.prev&&!y.startOfLine;)y=y.prev;return y?y.indent+O:g.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:M.htmlMode?"html":"xml",helperType:M.htmlMode?"html":"xml",skipAttribute:function(g){g.state==l&&(g.state=C)},xmlCurrentTag:function(g){return g.tagName?{name:g.tagName,close:g.type=="closeTag"}:null},xmlCurrentContext:function(g){for(var T=[],m=g.context;m;m=m.prev)m.tagName&&T.push(m.tagName);return T.reverse()}}}),Z.defineMIME("text/xml","xml"),Z.defineMIME("application/xml","xml"),Z.mimeModes.hasOwnProperty("text/html")||Z.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"1j5w":function(Re,te,v){"use strict";v.d(te,"d",function(){return ct}),v.d(te,"b",function(){return Xe}),v.d(te,"c",function(){return Lt}),v.d(te,"a",function(){return Zt});var Z=v("VTBJ"),K=v("1OyB"),I=v("vuIU"),k=v("JX7q"),_=v("Ji7U"),O=v("LK+K"),M=v("q1tI"),x=v("I8Z2"),n=v("BGR+"),p=v("wx14"),a=v("rePB"),t=v("4IlW"),h=v("2GS6"),s=v("Gytx"),i=v.n(s),u=v("TSYQ"),d=v.n(u),f=v("U8pU"),o=v("ODXe"),c=/iPhone/i,E=/iPod/i,B=/iPad/i,w=/\bAndroid(?:.+)Mobile\b/i,P=/Android/i,C=/\bAndroid(?:.+)SD4930UR\b/i,b=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,l=/Windows Phone/i,A=/\bWindows(?:.+)ARM\b/i,g=/BlackBerry/i,T=/BB10/i,m=/Opera Mini/i,y=/\b(CriOS|Chrome)(?:.+)Mobile/i,U=/Mobile(?:.+)Firefox\b/i;function N(Ct,pt){return Ct.test(pt)}function S(Ct){var pt=Ct||(typeof navigator!="undefined"?navigator.userAgent:""),Je=pt.split("[FBAN");if(typeof Je[1]!="undefined"){var Qe=Je,Oe=Object(o.a)(Qe,1);pt=Oe[0]}if(Je=pt.split("Twitter"),typeof Je[1]!="undefined"){var je=Je,St=Object(o.a)(je,1);pt=St[0]}var bt={apple:{phone:N(c,pt)&&!N(l,pt),ipod:N(E,pt),tablet:!N(c,pt)&&N(B,pt)&&!N(l,pt),device:(N(c,pt)||N(E,pt)||N(B,pt))&&!N(l,pt)},amazon:{phone:N(C,pt),tablet:!N(C,pt)&&N(b,pt),device:N(C,pt)||N(b,pt)},android:{phone:!N(l,pt)&&N(C,pt)||!N(l,pt)&&N(w,pt),tablet:!N(l,pt)&&!N(C,pt)&&!N(w,pt)&&(N(b,pt)||N(P,pt)),device:!N(l,pt)&&(N(C,pt)||N(b,pt)||N(w,pt)||N(P,pt))||N(/\bokhttp\b/i,pt)},windows:{phone:N(l,pt),tablet:N(A,pt),device:N(l,pt)||N(A,pt)},other:{blackberry:N(g,pt),blackberry10:N(T,pt),opera:N(m,pt),firefox:N(U,pt),chrome:N(y,pt),device:N(g,pt)||N(T,pt)||N(m,pt)||N(U,pt)||N(y,pt)},any:null,phone:null,tablet:null};return bt.any=bt.apple.device||bt.android.device||bt.windows.device||bt.other.device,bt.phone=bt.apple.phone||bt.android.phone||bt.windows.phone,bt.tablet=bt.apple.tablet||bt.android.tablet||bt.windows.tablet,bt}var H=Object(Z.a)(Object(Z.a)({},S()),{},{isMobile:S}),F=H;function R(){}function z(Ct,pt,Je){var Qe=pt||"";return Ct.key||"".concat(Qe,"item_").concat(Je)}function Q(Ct){return"".concat(Ct,"-menu-")}function $(Ct,pt){var Je=-1;M.Children.forEach(Ct,function(Qe){Je+=1,Qe&&Qe.type&&Qe.type.isMenuItemGroup?M.Children.forEach(Qe.props.children,function(Oe){Je+=1,pt(Oe,Je)}):pt(Qe,Je)})}function ee(Ct,pt,Je){if(!Ct||Je.find)return;M.Children.forEach(Ct,function(Qe){if(Qe){var Oe=Qe.type;if(!Oe||!(Oe.isSubMenu||Oe.isMenuItem||Oe.isMenuItemGroup))return;pt.indexOf(Qe.key)!==-1?Je.find=!0:Qe.props.children&&ee(Qe.props.children,pt,Je)}})}var fe=["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(pt){var Je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Qe=pt&&typeof pt.getBoundingClientRect=="function"&&pt.getBoundingClientRect().width;if(Qe){if(Je){var Oe=getComputedStyle(pt),je=Oe.marginLeft,St=Oe.marginRight;Qe+=+je.replace("px","")+ +St.replace("px","")}Qe=+Qe.toFixed(6)}return Qe||0},ce=function(pt,Je,Qe){pt&&Object(f.a)(pt.style)==="object"&&(pt.style[Je]=Qe)},ie=function(){return F.any},be=v("KQm4"),se=v("Ff2n"),me=v("i8i4"),le=v("bdgK"),ge=v("uciX"),ae=v("8XRh"),pe={adjustX:1,adjustY:1},Me={topLeft:{points:["bl","tl"],overflow:pe,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:pe,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:pe,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:pe,offset:[4,0]}},xe={topLeft:{points:["bl","tl"],overflow:pe,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:pe,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:pe,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:pe,offset:[4,0]}},Ke=Me,tt=0,he={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Se=function(pt,Je,Qe){var Oe=Q(Je),je=pt.getState();pt.setState({defaultActiveFirst:Object(Z.a)(Object(Z.a)({},je.defaultActiveFirst),{},Object(a.a)({},Oe,Qe))})},Ue=function(Ct){Object(_.a)(Je,Ct);var pt=Object(O.a)(Je);function Je(Qe){var Oe;Object(K.a)(this,Je),Oe=pt.call(this,Qe),Oe.onDestroy=function(_t){Oe.props.onDestroy(_t)},Oe.onKeyDown=function(_t){var Gt=_t.keyCode,kt=Oe.menuInstance,fn=Oe.props,mn=fn.isOpen,Tr=fn.store;if(Gt===t.a.ENTER)return Oe.onTitleClick(_t),Se(Tr,Oe.props.eventKey,!0),!0;if(Gt===t.a.RIGHT)return mn?kt.onKeyDown(_t):(Oe.triggerOpenChange(!0),Se(Tr,Oe.props.eventKey,!0)),!0;if(Gt===t.a.LEFT){var Mr;if(mn)Mr=kt.onKeyDown(_t);else return;return Mr||(Oe.triggerOpenChange(!1),Mr=!0),Mr}return mn&&(Gt===t.a.UP||Gt===t.a.DOWN)?kt.onKeyDown(_t):void 0},Oe.onOpenChange=function(_t){Oe.props.onOpenChange(_t)},Oe.onPopupVisibleChange=function(_t){Oe.triggerOpenChange(_t,_t?"mouseenter":"mouseleave")},Oe.onMouseEnter=function(_t){var Gt=Oe.props,kt=Gt.eventKey,fn=Gt.onMouseEnter,mn=Gt.store;Se(mn,Oe.props.eventKey,!1),fn({key:kt,domEvent:_t})},Oe.onMouseLeave=function(_t){var Gt=Oe.props,kt=Gt.parentMenu,fn=Gt.eventKey,mn=Gt.onMouseLeave;kt.subMenuInstance=Object(k.a)(Oe),mn({key:fn,domEvent:_t})},Oe.onTitleMouseEnter=function(_t){var Gt=Oe.props,kt=Gt.eventKey,fn=Gt.onItemHover,mn=Gt.onTitleMouseEnter;fn({key:kt,hover:!0}),mn({key:kt,domEvent:_t})},Oe.onTitleMouseLeave=function(_t){var Gt=Oe.props,kt=Gt.parentMenu,fn=Gt.eventKey,mn=Gt.onItemHover,Tr=Gt.onTitleMouseLeave;kt.subMenuInstance=Object(k.a)(Oe),mn({key:fn,hover:!1}),Tr({key:fn,domEvent:_t})},Oe.onTitleClick=function(_t){var Gt=Object(k.a)(Oe),kt=Gt.props;if(kt.onTitleClick({key:kt.eventKey,domEvent:_t}),kt.triggerSubMenuAction==="hover")return;Oe.triggerOpenChange(!kt.isOpen,"click"),Se(kt.store,Oe.props.eventKey,!1)},Oe.onSubMenuClick=function(_t){typeof Oe.props.onClick=="function"&&Oe.props.onClick(Oe.addKeyPath(_t))},Oe.onSelect=function(_t){Oe.props.onSelect(_t)},Oe.onDeselect=function(_t){Oe.props.onDeselect(_t)},Oe.getPrefixCls=function(){return"".concat(Oe.props.rootPrefixCls,"-submenu")},Oe.getActiveClassName=function(){return"".concat(Oe.getPrefixCls(),"-active")},Oe.getDisabledClassName=function(){return"".concat(Oe.getPrefixCls(),"-disabled")},Oe.getSelectedClassName=function(){return"".concat(Oe.getPrefixCls(),"-selected")},Oe.getOpenClassName=function(){return"".concat(Oe.props.rootPrefixCls,"-submenu-open")},Oe.saveMenuInstance=function(_t){Oe.menuInstance=_t},Oe.addKeyPath=function(_t){return Object(Z.a)(Object(Z.a)({},_t),{},{keyPath:(_t.keyPath||[]).concat(Oe.props.eventKey)})},Oe.triggerOpenChange=function(_t,Gt){var kt=Oe.props.eventKey,fn=function(){Oe.onOpenChange({key:kt,item:Object(k.a)(Oe),trigger:Gt,open:_t})};Gt==="mouseenter"?Oe.mouseenterTimeout=setTimeout(function(){fn()},0):fn()},Oe.isChildrenSelected=function(){var _t={find:!1};return ee(Oe.props.children,Oe.props.selectedKeys,_t),_t.find},Oe.isOpen=function(){return Oe.props.openKeys.indexOf(Oe.props.eventKey)!==-1},Oe.adjustWidth=function(){if(!Oe.subMenuTitle||!Oe.menuInstance)return;var _t=me.findDOMNode(Oe.menuInstance);if(_t.offsetWidth>=Oe.subMenuTitle.offsetWidth)return;_t.style.minWidth="".concat(Oe.subMenuTitle.offsetWidth,"px")},Oe.saveSubMenuTitle=function(_t){Oe.subMenuTitle=_t},Oe.getBaseProps=function(){var _t=Object(k.a)(Oe),Gt=_t.props;return{mode:Gt.mode==="horizontal"?"vertical":Gt.mode,visible:Oe.props.isOpen,level:Gt.level+1,inlineIndent:Gt.inlineIndent,focusable:!1,onClick:Oe.onSubMenuClick,onSelect:Oe.onSelect,onDeselect:Oe.onDeselect,onDestroy:Oe.onDestroy,selectedKeys:Gt.selectedKeys,eventKey:"".concat(Gt.eventKey,"-menu-"),openKeys:Gt.openKeys,motion:Gt.motion,onOpenChange:Oe.onOpenChange,subMenuOpenDelay:Gt.subMenuOpenDelay,parentMenu:Object(k.a)(Oe),subMenuCloseDelay:Gt.subMenuCloseDelay,forceSubMenuRender:Gt.forceSubMenuRender,triggerSubMenuAction:Gt.triggerSubMenuAction,builtinPlacements:Gt.builtinPlacements,defaultActiveFirst:Gt.store.getState().defaultActiveFirst[Q(Gt.eventKey)],multiple:Gt.multiple,prefixCls:Gt.rootPrefixCls,id:Oe.internalMenuId,manualRef:Oe.saveMenuInstance,itemIcon:Gt.itemIcon,expandIcon:Gt.expandIcon,direction:Gt.direction}},Oe.getMotion=function(_t,Gt){var kt=Object(k.a)(Oe),fn=kt.haveRendered,mn=Oe.props,Tr=mn.motion,Mr=mn.rootPrefixCls,kr=Object(Z.a)(Object(Z.a)({},Tr),{},{leavedClassName:"".concat(Mr,"-hidden"),removeOnLeave:!1,motionAppear:fn||!Gt||_t!=="inline"});return kr};var je=Qe.store,St=Qe.eventKey,bt=je.getState(),Dt=bt.defaultActiveFirst;Oe.isRootMenu=!1;var Ht=!1;return Dt&&(Ht=Dt[St]),Se(je,St,Ht),Oe}return Object(I.a)(Je,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Oe=this,je=this.props,St=je.mode,bt=je.parentMenu,Dt=je.manualRef;if(Dt&&Dt(this),St!=="horizontal"||!bt.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return Oe.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var Oe=this.props,je=Oe.onDestroy,St=Oe.eventKey;je&&je(St),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(Oe){var je=this,St=this.getBaseProps(),bt=this.getMotion(St.mode,St.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||St.visible||St.forceSubMenuRender,!this.haveOpened)return M.createElement("div",null);var Dt=St.direction;return M.createElement(ae.default,Object.assign({visible:St.visible},bt),function(Ht){var _t=Ht.className,Gt=Ht.style,kt=d()("".concat(St.prefixCls,"-sub"),_t,Object(a.a)({},"".concat(St.prefixCls,"-rtl"),Dt==="rtl"));return M.createElement(Ze,Object.assign({},St,{id:je.internalMenuId,className:kt,style:Gt}),Oe)})}},{key:"render",value:function(){var Oe,je=Object(Z.a)({},this.props),St=je.isOpen,bt=this.getPrefixCls(),Dt=je.mode==="inline",Ht=d()(bt,"".concat(bt,"-").concat(je.mode),(Oe={},Object(a.a)(Oe,je.className,!!je.className),Object(a.a)(Oe,this.getOpenClassName(),St),Object(a.a)(Oe,this.getActiveClassName(),je.active||St&&!Dt),Object(a.a)(Oe,this.getDisabledClassName(),je.disabled),Object(a.a)(Oe,this.getSelectedClassName(),this.isChildrenSelected()),Oe));this.internalMenuId||(je.eventKey?this.internalMenuId="".concat(je.eventKey,"$Menu"):(tt+=1,this.internalMenuId="$__$".concat(tt,"$Menu")));var _t={},Gt={},kt={};je.disabled||(_t={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},Gt={onClick:this.onTitleClick},kt={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var fn={},mn=je.direction;Dt&&(mn==="rtl"?fn.paddingRight=je.inlineIndent*je.level:fn.paddingLeft=je.inlineIndent*je.level);var Tr={};this.props.isOpen&&(Tr={"aria-owns":this.internalMenuId});var Mr=null;je.mode!=="horizontal"&&(Mr=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(Mr=M.createElement(this.props.expandIcon,Object(Z.a)({},this.props))));var kr=M.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:fn,className:"".concat(bt,"-title"),role:"button"},kt,Gt,{"aria-expanded":St},Tr,{"aria-haspopup":"true",title:typeof je.title=="string"?je.title:void 0}),je.title,Mr||M.createElement("i",{className:"".concat(bt,"-arrow")})),Un=this.renderChildren(je.children),Ra=je.parentMenu.isRootMenu?je.parentMenu.props.getPopupContainer:function(Xt){return Xt.parentNode},Xr=he[je.mode],aa=je.popupOffset?{offset:je.popupOffset}:{},Kr=je.mode==="inline"?"":je.popupClassName;Kr+=mn==="rtl"?" ".concat(bt,"-rtl"):"";var _a=je.disabled,di=je.triggerSubMenuAction,Ei=je.subMenuOpenDelay,_e=je.forceSubMenuRender,Ie=je.subMenuCloseDelay,Ye=je.builtinPlacements;fe.forEach(function(Xt){return delete je[Xt]}),delete je.onClick;var yt=mn==="rtl"?Object.assign({},xe,Ye):Object.assign({},Me,Ye);return delete je.direction,M.createElement("li",Object.assign({},je,_t,{className:Ht,role:"menuitem"}),Dt&&kr,Dt&&Un,!Dt&&M.createElement(ge.a,{prefixCls:bt,popupClassName:d()("".concat(bt,"-popup"),Kr),getPopupContainer:Ra,builtinPlacements:yt,popupPlacement:Xr,popupVisible:St,popupAlign:aa,popup:Un,action:_a?[]:[di],mouseEnterDelay:Ei,mouseLeaveDelay:Ie,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:_e},kr))}}]),Je}(M.Component);Ue.defaultProps={onMouseEnter:R,onMouseLeave:R,onTitleMouseEnter:R,onTitleMouseLeave:R,onTitleClick:R,manualRef:R,mode:"vertical",title:""};var Ne=Object(x.b)(function(Ct,pt){var Je=Ct.openKeys,Qe=Ct.activeKey,Oe=Ct.selectedKeys,je=pt.eventKey,St=pt.subMenuKey;return{isOpen:Je.indexOf(je)>-1,active:Qe[St]===je,selectedKeys:Oe}})(Ue);Ne.isSubMenu=!0;var ct=Ne,mt="menuitem-overflowed",Rt=.5,ht=function(Ct){Object(_.a)(Je,Ct);var pt=Object(O.a)(Je);function Je(){var Qe;return Object(K.a)(this,Je),Qe=pt.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 Oe=Qe.props.prefixCls,je=me.findDOMNode(Object(k.a)(Qe));return je?[].slice.call(je.children).filter(function(St){return St.className.split(" ").indexOf("".concat(Oe,"-overflowed-submenu"))<0}):[]},Qe.getOverflowedSubMenuItem=function(Oe,je,St){var bt=Qe.props,Dt=bt.overflowedIndicator,Ht=bt.level,_t=bt.mode,Gt=bt.prefixCls,kt=bt.theme;if(Ht!==1||_t!=="horizontal")return null;var fn=Qe.props.children[0],mn=fn.props,Tr=mn.children,Mr=mn.title,kr=mn.style,Un=Object(se.a)(mn,["children","title","style"]),Ra=Object(Z.a)({},kr),Xr="".concat(Oe,"-overflowed-indicator"),aa="".concat(Oe,"-overflowed-indicator");je.length===0&&St!==!0?Ra=Object(Z.a)(Object(Z.a)({},Ra),{},{display:"none"}):St&&(Ra=Object(Z.a)(Object(Z.a)({},Ra),{},{visibility:"hidden",position:"absolute"}),Xr="".concat(Xr,"-placeholder"),aa="".concat(aa,"-placeholder"));var Kr=kt?"".concat(Gt,"-").concat(kt):"",_a={};return fe.forEach(function(di){Un[di]!==void 0&&(_a[di]=Un[di])}),M.createElement(ct,Object.assign({title:Dt,className:"".concat(Gt,"-overflowed-submenu"),popupClassName:Kr},_a,{key:Xr,eventKey:aa,disabled:!1,style:Ra}),je)},Qe.setChildrenWidthAndResize=function(){if(Qe.props.mode!=="horizontal")return;var Oe=me.findDOMNode(Object(k.a)(Qe));if(!Oe)return;var je=Oe.children;if(!je||je.length===0)return;var St=Oe.children[je.length-1];ce(St,"display","inline-block");var bt=Qe.getMenuItemNodes(),Dt=bt.filter(function(Ht){return Ht.className.split(" ").indexOf(mt)>=0});Dt.forEach(function(Ht){ce(Ht,"display","inline-block")}),Qe.menuItemSizes=bt.map(function(Ht){return Ae(Ht,!0)}),Dt.forEach(function(Ht){ce(Ht,"display","none")}),Qe.overflowedIndicatorWidth=Ae(Oe.children[Oe.children.length-1],!0),Qe.originalTotalWidth=Qe.menuItemSizes.reduce(function(Ht,_t){return Ht+_t},0),Qe.handleResize(),ce(St,"display","none")},Qe.handleResize=function(){if(Qe.props.mode!=="horizontal")return;var Oe=me.findDOMNode(Object(k.a)(Qe));if(!Oe)return;var je=Ae(Oe);Qe.overflowedItems=[];var St=0,bt;Qe.originalTotalWidth>je+Rt&&(bt=-1,Qe.menuItemSizes.forEach(function(Dt){St+=Dt,St+Qe.overflowedIndicatorWidth<=je&&(bt+=1)})),Qe.setState({lastVisibleIndex:bt})},Qe}return Object(I.a)(Je,[{key:"componentDidMount",value:function(){var Oe=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var je=me.findDOMNode(this);if(!je)return;this.resizeObserver=new le.default(function(St){St.forEach(function(){var bt=Oe.cancelFrameId;cancelAnimationFrame(bt),Oe.cancelFrameId=requestAnimationFrame(Oe.setChildrenWidthAndResize)})}),[].slice.call(je.children).concat(je).forEach(function(St){Oe.resizeObserver.observe(St)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){Oe.resizeObserver.disconnect(),[].slice.call(je.children).concat(je).forEach(function(St){Oe.resizeObserver.observe(St)}),Oe.setChildrenWidthAndResize()}),this.mutationObserver.observe(je,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(Oe){var je=this,St=this.state.lastVisibleIndex;return(Oe||[]).reduce(function(bt,Dt,Ht){var _t=Dt;if(je.props.mode==="horizontal"){var Gt=je.getOverflowedSubMenuItem(Dt.props.eventKey,[]);St!==void 0&&je.props.className.indexOf("".concat(je.props.prefixCls,"-root"))!==-1&&(Ht>St&&(_t=M.cloneElement(Dt,{style:{display:"none"},eventKey:"".concat(Dt.props.eventKey,"-hidden"),className:"".concat(mt)})),Ht===St+1&&(je.overflowedItems=Oe.slice(St+1).map(function(fn){return M.cloneElement(fn,{key:fn.props.eventKey,mode:"vertical-left"})}),Gt=je.getOverflowedSubMenuItem(Dt.props.eventKey,je.overflowedItems)));var kt=[].concat(Object(be.a)(bt),[Gt,_t]);return Ht===Oe.length-1&&kt.push(je.getOverflowedSubMenuItem(Dt.props.eventKey,[],!0)),kt}return[].concat(Object(be.a)(bt),[_t])},[])}},{key:"render",value:function(){var Oe=this.props,je=Oe.visible,St=Oe.prefixCls,bt=Oe.overflowedIndicator,Dt=Oe.mode,Ht=Oe.level,_t=Oe.tag,Gt=Oe.children,kt=Oe.theme,fn=Object(se.a)(Oe,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),mn=_t;return M.createElement(mn,Object.assign({},fn),this.renderChildren(Gt))}}]),Je}(M.Component);ht.defaultProps={tag:"div",className:""};var Ut=ht;function zt(Ct){return Ct.length?Ct.every(function(pt){return!!pt.props.disabled}):!0}function ze(Ct,pt,Je){var Qe=Ct.getState();Ct.setState({activeKey:Object(Z.a)(Object(Z.a)({},Qe.activeKey),{},Object(a.a)({},pt,Je))})}function Ve(Ct){return Ct.eventKey||"0-menu-"}function Et(Ct,pt){var Je=pt,Qe=Ct.children,Oe=Ct.eventKey;if(Je){var je;if($(Qe,function(St,bt){St&&St.props&&!St.props.disabled&&Je===z(St,Oe,bt)&&(je=!0)}),je)return Je}return Je=null,Ct.defaultActiveFirst&&$(Qe,function(St,bt){!Je&&St&&!St.props.disabled&&(Je=z(St,Oe,bt))}),Je}function Ot(Ct){if(Ct){var pt=this.instanceArray.indexOf(Ct);pt!==-1?this.instanceArray[pt]=Ct:this.instanceArray.push(Ct)}}var ut=function(Ct){Object(_.a)(Je,Ct);var pt=Object(O.a)(Je);function Je(Qe){var Oe;return Object(K.a)(this,Je),Oe=pt.call(this,Qe),Oe.onKeyDown=function(je,St){var bt=je.keyCode,Dt;if(Oe.getFlatInstanceArray().forEach(function(_t){_t&&_t.props.active&&_t.onKeyDown&&(Dt=_t.onKeyDown(je))}),Dt)return 1;var Ht=null;return(bt===t.a.UP||bt===t.a.DOWN)&&(Ht=Oe.step(bt===t.a.UP?-1:1)),Ht?(je.preventDefault(),ze(Oe.props.store,Ve(Oe.props),Ht.props.eventKey),typeof St=="function"&&St(Ht),1):void 0},Oe.onItemHover=function(je){var St=je.key,bt=je.hover;ze(Oe.props.store,Ve(Oe.props),bt?St:null)},Oe.onDeselect=function(je){Oe.props.onDeselect(je)},Oe.onSelect=function(je){Oe.props.onSelect(je)},Oe.onClick=function(je){Oe.props.onClick(je)},Oe.onOpenChange=function(je){Oe.props.onOpenChange(je)},Oe.onDestroy=function(je){Oe.props.onDestroy(je)},Oe.getFlatInstanceArray=function(){return Oe.instanceArray},Oe.step=function(je){var St=Oe.getFlatInstanceArray(),bt=Oe.props.store.getState().activeKey[Ve(Oe.props)],Dt=St.length;if(!Dt)return null;je<0&&(St=St.concat().reverse());var Ht=-1;if(St.every(function(fn,mn){return fn&&fn.props.eventKey===bt?(Ht=mn,!1):!0}),!Oe.props.defaultActiveFirst&&Ht!==-1&&zt(St.slice(Ht,Dt-1)))return;var _t=(Ht+1)%Dt,Gt=_t;do{var kt=St[Gt];if(!kt||kt.props.disabled)Gt=(Gt+1)%Dt;else return kt}while(Gt!==_t);return null},Oe.renderCommonMenuItem=function(je,St,bt){var Dt=Oe.props.store.getState(),Ht=Object(k.a)(Oe),_t=Ht.props,Gt=z(je,_t.eventKey,St),kt=je.props;if(!kt||typeof je.type=="string")return je;var fn=Gt===Dt.activeKey,mn=Object(Z.a)(Object(Z.a)({mode:kt.mode||_t.mode,level:_t.level,inlineIndent:_t.inlineIndent,renderMenuItem:Oe.renderMenuItem,rootPrefixCls:_t.prefixCls,index:St,parentMenu:_t.parentMenu,manualRef:kt.disabled?void 0:Object(h.a)(je.ref,Ot.bind(Object(k.a)(Oe))),eventKey:Gt,active:!kt.disabled&&fn,multiple:_t.multiple,onClick:function(Mr){(kt.onClick||R)(Mr),Oe.onClick(Mr)},onItemHover:Oe.onItemHover,motion:_t.motion,subMenuOpenDelay:_t.subMenuOpenDelay,subMenuCloseDelay:_t.subMenuCloseDelay,forceSubMenuRender:_t.forceSubMenuRender,onOpenChange:Oe.onOpenChange,onDeselect:Oe.onDeselect,onSelect:Oe.onSelect,builtinPlacements:_t.builtinPlacements,itemIcon:kt.itemIcon||Oe.props.itemIcon,expandIcon:kt.expandIcon||Oe.props.expandIcon},bt),{},{direction:_t.direction});return(_t.mode==="inline"||ie())&&(mn.triggerSubMenuAction="click"),M.cloneElement(je,mn)},Oe.renderMenuItem=function(je,St,bt){if(!je)return null;var Dt=Oe.props.store.getState(),Ht={openKeys:Dt.openKeys,selectedKeys:Dt.selectedKeys,triggerSubMenuAction:Oe.props.triggerSubMenuAction,subMenuKey:bt};return Oe.renderCommonMenuItem(je,St,Ht)},Qe.store.setState({activeKey:Object(Z.a)(Object(Z.a)({},Qe.store.getState().activeKey),{},Object(a.a)({},Qe.eventKey,Et(Qe,Qe.activeKey)))}),Oe.instanceArray=[],Oe}return Object(I.a)(Je,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(Oe){return this.props.visible||Oe.visible||this.props.className!==Oe.className||!i()(this.props.style,Oe.style)}},{key:"componentDidUpdate",value:function(Oe){var je=this.props,St="activeKey"in je?je.activeKey:je.store.getState().activeKey[Ve(je)],bt=Et(je,St);if(bt!==St)ze(je.store,Ve(je),bt);else if("activeKey"in Oe){var Dt=Et(Oe,Oe.activeKey);bt!==Dt&&ze(je.store,Ve(je),bt)}}},{key:"render",value:function(){var Oe=this,je=Object(p.a)({},this.props);this.instanceArray=[];var St=d()(je.prefixCls,je.className,"".concat(je.prefixCls,"-").concat(je.mode)),bt={className:St,role:je.role||"menu"};je.id&&(bt.id=je.id),je.focusable&&(bt.tabIndex=0,bt.onKeyDown=this.onKeyDown);var Dt=je.prefixCls,Ht=je.eventKey,_t=je.visible,Gt=je.level,kt=je.mode,fn=je.overflowedIndicator,mn=je.theme;return fe.forEach(function(Tr){return delete je[Tr]}),delete je.onClick,M.createElement(Ut,Object.assign({},je,{prefixCls:Dt,mode:kt,tag:"ul",level:Gt,theme:mn,visible:_t,overflowedIndicator:fn},bt),M.Children.map(je.children,function(Tr,Mr){return Oe.renderMenuItem(Tr,Mr,Ht||"0-menu-")}))}}]),Je}(M.Component);ut.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:R};var vt=Object(x.b)()(ut),Ze=vt,ke=v("Kwbf");function He(Ct,pt,Je){var Qe=Ct.prefixCls,Oe=Ct.motion,je=Ct.defaultMotions,St=je===void 0?{}:je,bt=Ct.openAnimation,Dt=Ct.openTransitionName,Ht=pt.switchingModeFromInline;if(Oe)return Oe;if(Object(f.a)(bt)==="object"&&bt)Object(ke.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof bt=="string")return{motionName:"".concat(Qe,"-open-").concat(bt)};if(Dt)return{motionName:Dt};var _t=St[Je];return _t||(Ht?null:St.other)}var we=function(Ct){Object(_.a)(Je,Ct);var pt=Object(O.a)(Je);function Je(Qe){var Oe;Object(K.a)(this,Je),Oe=pt.call(this,Qe),Oe.inlineOpenKeys=[],Oe.onSelect=function(bt){var Dt=Object(k.a)(Oe),Ht=Dt.props;if(Ht.selectable){var _t=Oe.store.getState(),Gt=_t.selectedKeys,kt=bt.key;Ht.multiple?Gt=Gt.concat([kt]):Gt=[kt],"selectedKeys"in Ht||Oe.store.setState({selectedKeys:Gt}),Ht.onSelect(Object(Z.a)(Object(Z.a)({},bt),{},{selectedKeys:Gt}))}},Oe.onClick=function(bt){var Dt=Oe.getRealMenuMode(),Ht=Object(k.a)(Oe),_t=Ht.store,Gt=Ht.props.onOpenChange;Dt!=="inline"&&!("openKeys"in Oe.props)&&(_t.setState({openKeys:[]}),Gt([])),Oe.props.onClick(bt)},Oe.onKeyDown=function(bt,Dt){Oe.innerMenu.getWrappedInstance().onKeyDown(bt,Dt)},Oe.onOpenChange=function(bt){var Dt=Object(k.a)(Oe),Ht=Dt.props,_t=Oe.store.getState().openKeys.concat(),Gt=!1,kt=function(mn){var Tr=!1;if(mn.open)Tr=_t.indexOf(mn.key)===-1,Tr&&_t.push(mn.key);else{var Mr=_t.indexOf(mn.key);Tr=Mr!==-1,Tr&&_t.splice(Mr,1)}Gt=Gt||Tr};Array.isArray(bt)?bt.forEach(kt):kt(bt),Gt&&("openKeys"in Oe.props||Oe.store.setState({openKeys:_t}),Ht.onOpenChange(_t))},Oe.onDeselect=function(bt){var Dt=Object(k.a)(Oe),Ht=Dt.props;if(Ht.selectable){var _t=Oe.store.getState().selectedKeys.concat(),Gt=bt.key,kt=_t.indexOf(Gt);kt!==-1&&_t.splice(kt,1),"selectedKeys"in Ht||Oe.store.setState({selectedKeys:_t}),Ht.onDeselect(Object(Z.a)(Object(Z.a)({},bt),{},{selectedKeys:_t}))}},Oe.onMouseEnter=function(bt){Oe.restoreModeVerticalFromInline();var Dt=Oe.props.onMouseEnter;Dt&&Dt(bt)},Oe.onTransitionEnd=function(bt){var Dt=bt.propertyName==="width"&&bt.target===bt.currentTarget,Ht=bt.target.className,_t=Object.prototype.toString.call(Ht)==="[object SVGAnimatedString]"?Ht.animVal:Ht,Gt=bt.propertyName==="font-size"&&_t.indexOf("anticon")>=0;(Dt||Gt)&&Oe.restoreModeVerticalFromInline()},Oe.setInnerMenu=function(bt){Oe.innerMenu=bt},Oe.isRootMenu=!0;var je=Qe.defaultSelectedKeys,St=Qe.defaultOpenKeys;return"selectedKeys"in Qe&&(je=Qe.selectedKeys||[]),"openKeys"in Qe&&(St=Qe.openKeys||[]),Oe.store=Object(x.c)({selectedKeys:je,openKeys:St,activeKey:{"0-menu-":Et(Qe,Qe.activeKey)}}),Oe.state={switchingModeFromInline:!1},Oe}return Object(I.a)(Je,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(Oe){this.updateOpentKeysWhenSwitchMode(Oe),this.updateMiniStore();var je=this.props,St=je.siderCollapsed,bt=je.inlineCollapsed,Dt=je.onOpenChange;(!Oe.inlineCollapsed&&bt||!Oe.siderCollapsed&&St)&&Dt([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(Oe){var je=this.props,St=this.store,bt=this.inlineOpenKeys,Dt=St.getState(),Ht={};Oe.mode==="inline"&&je.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in je||((je.inlineCollapsed&&!Oe.inlineCollapsed||je.siderCollapsed&&!Oe.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=Dt.openKeys.concat(),Ht.openKeys=[]),(!je.inlineCollapsed&&Oe.inlineCollapsed||!je.siderCollapsed&&Oe.siderCollapsed)&&(Ht.openKeys=bt,this.inlineOpenKeys=[])),Object.keys(Ht).length&&St.setState(Ht)}},{key:"updateMenuDisplay",value:function(){var Oe=this.props.collapsedWidth,je=this.store,St=this.prevOpenKeys,bt=this.getInlineCollapsed()&&(Oe===0||Oe==="0"||Oe==="0px");bt?(this.prevOpenKeys=je.getState().openKeys.concat(),this.store.setState({openKeys:[]})):St&&(this.store.setState({openKeys:St}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var Oe=this.props.mode,je=this.state.switchingModeFromInline,St=this.getInlineCollapsed();return je&&St?"inline":St?"vertical":Oe}},{key:"getInlineCollapsed",value:function(){var Oe=this.props,je=Oe.inlineCollapsed,St=Oe.siderCollapsed;return St!==void 0?St:je}},{key:"restoreModeVerticalFromInline",value:function(){var Oe=this.state.switchingModeFromInline;Oe&&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 Oe=Object(Z.a)({},Object(n.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),je=this.getRealMenuMode();return Oe.className+=" ".concat(Oe.prefixCls,"-root"),Oe.direction==="rtl"&&(Oe.className+=" ".concat(Oe.prefixCls,"-rtl")),Oe=Object(Z.a)(Object(Z.a)({},Oe),{},{mode:je,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:He(this.props,this.state,je)}),delete Oe.openAnimation,delete Oe.openTransitionName,M.createElement(x.a,{store:this.store},M.createElement(Ze,Object.assign({},Oe,{ref:this.setInnerMenu}),this.props.children))}}]),Je}(M.Component);we.defaultProps={selectable:!0,onClick:R,onSelect:R,onOpenChange:R,onDeselect:R,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 Le=we,Pe=function(Ct){Object(_.a)(Je,Ct);var pt=Object(O.a)(Je);function Je(){var Qe;return Object(K.a)(this,Je),Qe=pt.apply(this,arguments),Qe.onKeyDown=function(Oe){var je=Oe.keyCode;return je===t.a.ENTER?(Qe.onClick(Oe),!0):void 0},Qe.onMouseLeave=function(Oe){var je=Qe.props,St=je.eventKey,bt=je.onItemHover,Dt=je.onMouseLeave;bt({key:St,hover:!1}),Dt({key:St,domEvent:Oe})},Qe.onMouseEnter=function(Oe){var je=Qe.props,St=je.eventKey,bt=je.onItemHover,Dt=je.onMouseEnter;bt({key:St,hover:!0}),Dt({key:St,domEvent:Oe})},Qe.onClick=function(Oe){var je=Qe.props,St=je.eventKey,bt=je.multiple,Dt=je.onClick,Ht=je.onSelect,_t=je.onDeselect,Gt=je.isSelected,kt={key:St,keyPath:[St],item:Object(k.a)(Qe),domEvent:Oe};Dt(kt),bt?Gt?_t(kt):Ht(kt):Gt||Ht(kt)},Qe.saveNode=function(Oe){Qe.node=Oe},Qe}return Object(I.a)(Je,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var Oe=this.props;Oe.onDestroy&&Oe.onDestroy(Oe.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 Oe,je=Object(Z.a)({},this.props),St=d()(this.getPrefixCls(),je.className,(Oe={},Object(a.a)(Oe,this.getActiveClassName(),!je.disabled&&je.active),Object(a.a)(Oe,this.getSelectedClassName(),je.isSelected),Object(a.a)(Oe,this.getDisabledClassName(),je.disabled),Oe)),bt=Object(Z.a)(Object(Z.a)({},je.attribute),{},{title:typeof je.title=="string"?je.title:void 0,className:St,role:je.role||"menuitem","aria-disabled":je.disabled});je.role==="option"?bt=Object(Z.a)(Object(Z.a)({},bt),{},{role:"option","aria-selected":je.isSelected}):(je.role===null||je.role==="none")&&(bt.role="none");var Dt={onClick:je.disabled?null:this.onClick,onMouseLeave:je.disabled?null:this.onMouseLeave,onMouseEnter:je.disabled?null:this.onMouseEnter},Ht=Object(Z.a)({},je.style);je.mode==="inline"&&(je.direction==="rtl"?Ht.paddingRight=je.inlineIndent*je.level:Ht.paddingLeft=je.inlineIndent*je.level),fe.forEach(function(Gt){return delete je[Gt]}),delete je.direction;var _t=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(_t=M.createElement(this.props.itemIcon,this.props)),M.createElement("li",Object.assign({},Object(n.default)(je,["onClick","onMouseEnter","onMouseLeave","onSelect"]),bt,Dt,{style:Ht,ref:this.saveNode}),je.children,_t)}}]),Je}(M.Component);Pe.isMenuItem=!0,Pe.defaultProps={onSelect:R,onMouseEnter:R,onMouseLeave:R,manualRef:R};var We=Object(x.b)(function(Ct,pt){var Je=Ct.activeKey,Qe=Ct.selectedKeys,Oe=pt.eventKey,je=pt.subMenuKey;return{active:Je[je]===Oe,isSelected:Qe.indexOf(Oe)!==-1}})(Pe),Xe=We,gt=function(Ct){Object(_.a)(Je,Ct);var pt=Object(O.a)(Je);function Je(){var Qe;return Object(K.a)(this,Je),Qe=pt.apply(this,arguments),Qe.renderInnerMenuItem=function(Oe){var je=Qe.props,St=je.renderMenuItem,bt=je.index;return St(Oe,bt,Qe.props.subMenuKey)},Qe}return Object(I.a)(Je,[{key:"render",value:function(){var Oe=Object(p.a)({},this.props),je=Oe.className,St=je===void 0?"":je,bt=Oe.rootPrefixCls,Dt="".concat(bt,"-item-group-title"),Ht="".concat(bt,"-item-group-list"),_t=Oe.title,Gt=Oe.children;return fe.forEach(function(kt){return delete Oe[kt]}),delete Oe.onClick,delete Oe.direction,M.createElement("li",Object.assign({},Oe,{className:"".concat(St," ").concat(bt,"-item-group")}),M.createElement("div",{className:Dt,title:typeof _t=="string"?_t:void 0},_t),M.createElement("ul",{className:Ht},M.Children.map(Gt,this.renderInnerMenuItem)))}}]),Je}(M.Component);gt.isMenuItemGroup=!0,gt.defaultProps={disabled:!0};var Lt=gt,en=function(pt){var Je=pt.className,Qe=pt.rootPrefixCls,Oe=pt.style;return M.createElement("li",{className:"".concat(Je," ").concat(Qe,"-item-divider"),style:Oe})};en.defaultProps={disabled:!0,className:"",style:{}};var Zt=en,xt=te.e=Le},"24YM":function(Re,te,v){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.SensorTabIndex=te.SensorClassName=te.SizeSensorId=void 0;var Z="size-sensor-id";te.SizeSensorId=Z;var K="size-sensor-object";te.SensorClassName=K;var I="-1";te.SensorTabIndex=I},"24hK":function(Re,te,v){"use strict";v.d(te,"a",function(){return K});class Z{constructor(I){this.element=I,this.next=Z.Undefined,this.prev=Z.Undefined}}Z.Undefined=new Z(void 0);class K{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 I=this._first;for(;I!==Z.Undefined;){const k=I.next;I.prev=Z.Undefined,I.next=Z.Undefined,I=k}this._first=Z.Undefined,this._last=Z.Undefined,this._size=0}unshift(I){return this._insert(I,!1)}push(I){return this._insert(I,!0)}_insert(I,k){const _=new Z(I);if(this._first===Z.Undefined)this._first=_,this._last=_;else if(k){const M=this._last;this._last=_,_.prev=M,M.next=_}else{const M=this._first;this._first=_,_.next=M,M.prev=_}this._size+=1;let O=!1;return()=>{O||(O=!0,this._remove(_))}}shift(){if(this._first===Z.Undefined)return;{const I=this._first.element;return this._remove(this._first),I}}pop(){if(this._last===Z.Undefined)return;{const I=this._last.element;return this._remove(this._last),I}}_remove(I){if(I.prev!==Z.Undefined&&I.next!==Z.Undefined){const k=I.prev;k.next=I.next,I.next.prev=k}else I.prev===Z.Undefined&&I.next===Z.Undefined?(this._first=Z.Undefined,this._last=Z.Undefined):I.next===Z.Undefined?(this._last=this._last.prev,this._last.next=Z.Undefined):I.prev===Z.Undefined&&(this._first=this._first.next,this._first.prev=Z.Undefined);this._size-=1}*[Symbol.iterator](){let I=this._first;for(;I!==Z.Undefined;)yield I.element,I=I.next}}},"2DNl":function(Re,te,v){var Z=v("IMiH"),K=v("loD1"),I=v("59Ip"),k=v("aKvl"),_=v("n1HI"),O=v("hX1E"),M=O.normalizeRadian,x=v("Sj9i"),n=v("hyiK"),p=Z.CMD,a=Math.PI*2,t=1e-4;function h(w,P){return Math.abs(w-P)<t}var s=[-1,-1,-1],i=[-1,-1];function u(){var w=i[0];i[0]=i[1],i[1]=w}function d(w,P,C,b,l,A,g,T,m,y){if(y>P&&y>b&&y>A&&y>T||y<P&&y<b&&y<A&&y<T)return 0;var U=x.cubicRootAt(P,b,A,T,y,s);if(U===0)return 0;for(var N=0,S=-1,H,F,R=0;R<U;R++){var z=s[R],Q=z===0||z===1?.5:1,$=x.cubicAt(w,C,l,g,z);if($<m)continue;S<0&&(S=x.cubicExtrema(P,b,A,T,i),i[1]<i[0]&&S>1&&u(),H=x.cubicAt(P,b,A,T,i[0]),S>1&&(F=x.cubicAt(P,b,A,T,i[1]))),S===2?z<i[0]?N+=H<P?Q:-Q:z<i[1]?N+=F<H?Q:-Q:N+=T<F?Q:-Q:z<i[0]?N+=H<P?Q:-Q:N+=T<H?Q:-Q}return N}function f(w,P,C,b,l,A,g,T){if(T>P&&T>b&&T>A||T<P&&T<b&&T<A)return 0;var m=x.quadraticRootAt(P,b,A,T,s);if(m===0)return 0;var y=x.quadraticExtremum(P,b,A);if(y>=0&&y<=1){for(var U=0,N=x.quadraticAt(P,b,A,y),S=0;S<m;S++){var H=s[S]===0||s[S]===1?.5:1,F=x.quadraticAt(w,C,l,s[S]);if(F<g)continue;s[S]<y?U+=N<P?H:-H:U+=A<N?H:-H}return U}else{var H=s[0]===0||s[0]===1?.5:1,F=x.quadraticAt(w,C,l,s[0]);return F<g?0:A<P?H:-H}}function o(w,P,C,b,l,A,g,T){if(T-=P,T>C||T<-C)return 0;var m=Math.sqrt(C*C-T*T);s[0]=-m,s[1]=m;var y=Math.abs(b-l);if(y<1e-4)return 0;if(y%a<1e-4){b=0,l=a;var U=A?1:-1;return g>=s[0]+w&&g<=s[1]+w?U:0}if(A){var m=b;b=M(l),l=M(m)}else b=M(b),l=M(l);b>l&&(l+=a);for(var N=0,S=0;S<2;S++){var H=s[S];if(H+w>g){var F=Math.atan2(T,H),U=A?1:-1;F<0&&(F=a+F),(F>=b&&F<=l||F+a>=b&&F+a<=l)&&(F>Math.PI/2&&F<Math.PI*1.5&&(U=-U),N+=U)}}return N}function c(w,P,C,b,l){for(var A=0,g=0,T=0,m=0,y=0,U=0;U<w.length;){var N=w[U++];N===p.M&&U>1&&(C||(A+=n(g,T,m,y,b,l))),U===1&&(g=w[U],T=w[U+1],m=g,y=T);switch(N){case p.M:m=w[U++],y=w[U++],g=m,T=y;break;case p.L:if(C){if(K.containStroke(g,T,w[U],w[U+1],P,b,l))return!0}else A+=n(g,T,w[U],w[U+1],b,l)||0;g=w[U++],T=w[U++];break;case p.C:if(C){if(I.containStroke(g,T,w[U++],w[U++],w[U++],w[U++],w[U],w[U+1],P,b,l))return!0}else A+=d(g,T,w[U++],w[U++],w[U++],w[U++],w[U],w[U+1],b,l)||0;g=w[U++],T=w[U++];break;case p.Q:if(C){if(k.containStroke(g,T,w[U++],w[U++],w[U],w[U+1],P,b,l))return!0}else A+=f(g,T,w[U++],w[U++],w[U],w[U+1],b,l)||0;g=w[U++],T=w[U++];break;case p.A:var S=w[U++],H=w[U++],F=w[U++],R=w[U++],z=w[U++],Q=w[U++];U+=1;var $=1-w[U++],ee=Math.cos(z)*F+S,fe=Math.sin(z)*R+H;U>1?A+=n(g,T,ee,fe,b,l):(m=ee,y=fe);var Ae=(b-S)*R/F+S;if(C){if(_.containStroke(S,H,R,z,z+Q,$,P,Ae,l))return!0}else A+=o(S,H,R,z,z+Q,$,Ae,l);g=Math.cos(z+Q)*F+S,T=Math.sin(z+Q)*R+H;break;case p.R:m=g=w[U++],y=T=w[U++];var ce=w[U++],ie=w[U++],ee=m+ce,fe=y+ie;if(C){if(K.containStroke(m,y,ee,y,P,b,l)||K.containStroke(ee,y,ee,fe,P,b,l)||K.containStroke(ee,fe,m,fe,P,b,l)||K.containStroke(m,fe,m,y,P,b,l))return!0}else A+=n(ee,y,ee,fe,b,l),A+=n(m,fe,m,y,b,l);break;case p.Z:if(C){if(K.containStroke(g,T,m,y,P,b,l))return!0}else A+=n(g,T,m,y,b,l);g=m,T=y;break}}return!C&&!h(T,y)&&(A+=n(g,T,m,y,b,l)||0),A!==0}function E(w,P,C){return c(w,0,!1,P,C)}function B(w,P,C,b){return c(w,P,!0,C,b)}te.contain=E,te.containStroke=B},"2fw6":function(Re,te,v){var Z=v("y+Vt"),K=Z.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(I,k,_){_&&I.moveTo(k.cx+k.r,k.cy),I.arc(k.cx,k.cy,k.r,0,Math.PI*2,!0)}});Re.exports=K},"3/fG":function(Re,te,v){"use strict";v.d(te,"a",function(){return K});function Z(I,k){let _;return k.length===0?_=I:_=I.replace(/\{(\d+)\}/g,function(O,M){const x=M[0];return typeof k[x]!="undefined"?k[x]:O}),_}function K(I,k,..._){return Z(k,_)}},"3C/r":function(Re,te){var v=function(K,I){this.image=K,this.repeat=I,this.type="pattern"};v.prototype.getCanvasPattern=function(K){return K.createPattern(this.image,this.repeat||"repeat")};var Z=v;Re.exports=Z},"3CBa":function(Re,te,v){var Z=v("hydK"),K=Z.createElement,I=v("bYtY"),k=v("SUKs"),_=v("y+Vt"),O=v("Dagg"),M=v("dqUG"),x=v("DBLp"),n=v("sW+o"),p=v("n6Mw"),a=v("vKoX"),t=v("P47w"),h=t.path,s=t.image,i=t.text;function u(l){return parseInt(l,10)}function d(l){return l instanceof _?h:l instanceof O?s:l instanceof M?i:h}function f(l,A){return A&&l&&A.parentNode!==l}function o(l,A,g){if(f(l,A)&&g){var T=g.nextSibling;T?l.insertBefore(A,T):l.appendChild(A)}}function c(l,A){if(f(l,A)){var g=l.firstChild;g?l.insertBefore(A,g):l.appendChild(A)}}function E(l,A){A&&l&&A.parentNode===l&&l.removeChild(A)}function B(l){return l.__textSvgEl}function w(l){return l.__svgEl}var P=function(l,A,g,T){this.root=l,this.storage=A,this._opts=g=I.extend({},g||{});var m=K("svg");m.setAttribute("xmlns","http://www.w3.org/2000/svg"),m.setAttribute("version","1.1"),m.setAttribute("baseProfile","full"),m.style.cssText="user-select:none;position:absolute;left:0;top:0;";var y=K("g");m.appendChild(y);var U=K("g");m.appendChild(U),this.gradientManager=new n(T,U),this.clipPathManager=new p(T,U),this.shadowManager=new a(T,U);var N=document.createElement("div");N.style.cssText="overflow:hidden;position:relative",this._svgDom=m,this._svgRoot=U,this._backgroundRoot=y,this._viewport=N,l.appendChild(N),N.appendChild(m),this.resize(g.width,g.height),this._visibleList=[]};P.prototype={constructor:P,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getSvgDom:function(){return this._svgDom},getSvgRoot:function(){return this._svgRoot},getViewportRootOffset:function(){var l=this.getViewportRoot();if(l)return{offsetLeft:l.offsetLeft||0,offsetTop:l.offsetTop||0}},refresh:function(){var l=this.storage.getDisplayList(!0);this._paintList(l)},setBackgroundColor:function(l){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var A=K("rect");A.setAttribute("width",this.getWidth()),A.setAttribute("height",this.getHeight()),A.setAttribute("x",0),A.setAttribute("y",0),A.setAttribute("id",0),A.style.fill=l,this._backgroundRoot.appendChild(A),this._backgroundNode=A},_paintList:function(l){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var A=this._svgRoot,g=this._visibleList,T=l.length,m=[],y;for(y=0;y<T;y++){var U=l[y],N=d(U),S=w(U)||B(U);U.invisible||(U.__dirty&&(N&&N.brush(U),this.clipPathManager.update(U),U.style&&(this.gradientManager.update(U.style.fill),this.gradientManager.update(U.style.stroke),this.shadowManager.update(S,U)),U.__dirty=!1),m.push(U))}var H=x(g,m),F;for(y=0;y<H.length;y++){var R=H[y];if(R.removed)for(var z=0;z<R.count;z++){var U=g[R.indices[z]],S=w(U),Q=B(U);E(A,S),E(A,Q)}}for(y=0;y<H.length;y++){var R=H[y];if(R.added)for(var z=0;z<R.count;z++){var U=m[R.indices[z]],S=w(U),Q=B(U);F?o(A,S,F):c(A,S),S?o(A,Q,S):F?o(A,Q,F):c(A,Q),o(A,Q,S),F=Q||S||F,this.gradientManager.addWithoutUpdate(S||Q,U),this.shadowManager.addWithoutUpdate(S||Q,U),this.clipPathManager.markUsed(U)}else if(!R.removed)for(var z=0;z<R.count;z++){var U=m[R.indices[z]],S=w(U),Q=B(U),S=w(U),Q=B(U);this.gradientManager.markUsed(U),this.gradientManager.addWithoutUpdate(S||Q,U),this.shadowManager.markUsed(U),this.shadowManager.addWithoutUpdate(S||Q,U),this.clipPathManager.markUsed(U),Q&&o(A,Q,S),F=S||Q||F}}this.gradientManager.removeUnused(),this.clipPathManager.removeUnused(),this.shadowManager.removeUnused(),this._visibleList=m},_getDefs:function(l){var A=this._svgDom,g=A.getElementsByTagName("defs");if(g.length===0)if(l){var g=A.insertBefore(K("defs"),A.firstChild);return g.contains||(g.contains=function(m){var y=g.children;if(!y)return!1;for(var U=y.length-1;U>=0;--U)if(y[U]===m)return!0;return!1}),g}else return null;else return g[0]},resize:function(l,A){var g=this._viewport;g.style.display="none";var T=this._opts;if(l!=null&&(T.width=l),A!=null&&(T.height=A),l=this._getSize(0),A=this._getSize(1),g.style.display="",this._width!==l||this._height!==A){this._width=l,this._height=A;var m=g.style;m.width=l+"px",m.height=A+"px";var y=this._svgDom;y.setAttribute("width",l),y.setAttribute("height",A)}this._backgroundNode&&(this._backgroundNode.setAttribute("width",l),this._backgroundNode.setAttribute("height",A))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(l){var A=this._opts,g=["width","height"][l],T=["clientWidth","clientHeight"][l],m=["paddingLeft","paddingTop"][l],y=["paddingRight","paddingBottom"][l];if(A[g]!=null&&A[g]!=="auto")return parseFloat(A[g]);var U=this.root,N=document.defaultView.getComputedStyle(U);return(U[T]||u(N[g])||u(U.style[g]))-(u(N[m])||0)-(u(N[y])||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 l=encodeURIComponent(this._svgDom.outerHTML.replace(/></g,`>
|
|
\r<`));return"data:image/svg+xml;charset=UTF-8,"+l}};function C(l){return function(){k('In SVG mode painter not support method "'+l+'"')}}I.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","pathToImage"],function(l){P.prototype[l]=C(l)});var b=P;Re.exports=b},"3e3G":function(Re,te,v){var Z=v("bYtY"),K=v("QuXc"),I=function(_,O,M,x,n){this.x=_==null?.5:_,this.y=O==null?.5:O,this.r=M==null?.5:M,this.type="radial",this.global=n||!1,K.call(this,x)};I.prototype={constructor:I},Z.inherits(I,K);var k=I;Re.exports=k},"3gBT":function(Re,te){var v=2311;function Z(){return v++}Re.exports=Z},"4fz+":function(Re,te,v){var Z=v("bYtY"),K=v("1bdT"),I=v("mFDi"),k=function(O){O=O||{},K.call(this,O);for(var M in O)O.hasOwnProperty(M)&&(this[M]=O[M]);this._children=[],this.__storage=null,this.__dirty=!0};k.prototype={constructor:k,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(O){return this._children[O]},childOfName:function(O){for(var M=this._children,x=0;x<M.length;x++)if(M[x].name===O)return M[x]},childCount:function(){return this._children.length},add:function(O){return O&&O!==this&&O.parent!==this&&(this._children.push(O),this._doAdd(O)),this},addBefore:function(O,M){if(O&&O!==this&&O.parent!==this&&M&&M.parent===this){var x=this._children,n=x.indexOf(M);n>=0&&(x.splice(n,0,O),this._doAdd(O))}return this},_doAdd:function(O){O.parent&&O.parent.remove(O),O.parent=this;var M=this.__storage,x=this.__zr;M&&M!==O.__storage&&(M.addToStorage(O),O instanceof k&&O.addChildrenToStorage(M)),x&&x.refresh()},remove:function(O){var M=this.__zr,x=this.__storage,n=this._children,p=Z.indexOf(n,O);return p<0?this:(n.splice(p,1),O.parent=null,x&&(x.delFromStorage(O),O instanceof k&&O.delChildrenFromStorage(x)),M&&M.refresh(),this)},removeAll:function(){var O=this._children,M=this.__storage,x,n;for(n=0;n<O.length;n++)x=O[n],M&&(M.delFromStorage(x),x instanceof k&&x.delChildrenFromStorage(M)),x.parent=null;return O.length=0,this},eachChild:function(O,M){for(var x=this._children,n=0;n<x.length;n++){var p=x[n];O.call(M,p,n)}return this},traverse:function(O,M){for(var x=0;x<this._children.length;x++){var n=this._children[x];O.call(M,n),n.type==="group"&&n.traverse(O,M)}return this},addChildrenToStorage:function(O){for(var M=0;M<this._children.length;M++){var x=this._children[M];O.addToStorage(x),x instanceof k&&x.addChildrenToStorage(O)}},delChildrenFromStorage:function(O){for(var M=0;M<this._children.length;M++){var x=this._children[M];O.delFromStorage(x),x instanceof k&&x.delChildrenFromStorage(O)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(O){for(var M=null,x=new I(0,0,0,0),n=O||this._children,p=[],a=0;a<n.length;a++){var t=n[a];if(t.ignore||t.invisible)continue;var h=t.getBoundingRect(),s=t.getLocalTransform(p);s?(x.copy(h),x.applyTransform(s),M=M||x.clone(),M.union(x)):(M=M||h.clone(),M.union(h))}return M||x}},Z.inherits(k,K);var _=k;Re.exports=_},"4mN7":function(Re,te,v){var Z=v("QBsz"),K=v("Sj9i"),I=Math.min,k=Math.max,_=Math.sin,O=Math.cos,M=Math.PI*2,x=Z.create(),n=Z.create(),p=Z.create();function a(f,o,c){if(f.length===0)return;var E=f[0],B=E[0],w=E[0],P=E[1],C=E[1],b;for(b=1;b<f.length;b++)E=f[b],B=I(B,E[0]),w=k(w,E[0]),P=I(P,E[1]),C=k(C,E[1]);o[0]=B,o[1]=P,c[0]=w,c[1]=C}function t(f,o,c,E,B,w){B[0]=I(f,c),B[1]=I(o,E),w[0]=k(f,c),w[1]=k(o,E)}var h=[],s=[];function i(f,o,c,E,B,w,P,C,b,l){var A=K.cubicExtrema,g=K.cubicAt,T,m=A(f,c,B,P,h);for(b[0]=Infinity,b[1]=Infinity,l[0]=-Infinity,l[1]=-Infinity,T=0;T<m;T++){var y=g(f,c,B,P,h[T]);b[0]=I(y,b[0]),l[0]=k(y,l[0])}for(m=A(o,E,w,C,s),T=0;T<m;T++){var U=g(o,E,w,C,s[T]);b[1]=I(U,b[1]),l[1]=k(U,l[1])}b[0]=I(f,b[0]),l[0]=k(f,l[0]),b[0]=I(P,b[0]),l[0]=k(P,l[0]),b[1]=I(o,b[1]),l[1]=k(o,l[1]),b[1]=I(C,b[1]),l[1]=k(C,l[1])}function u(f,o,c,E,B,w,P,C){var b=K.quadraticExtremum,l=K.quadraticAt,A=k(I(b(f,c,B),1),0),g=k(I(b(o,E,w),1),0),T=l(f,c,B,A),m=l(o,E,w,g);P[0]=I(f,B,T),P[1]=I(o,w,m),C[0]=k(f,B,T),C[1]=k(o,w,m)}function d(f,o,c,E,B,w,P,C,b){var l=Z.min,A=Z.max,g=Math.abs(B-w);if(g%M<1e-4&&g>1e-4){C[0]=f-c,C[1]=o-E,b[0]=f+c,b[1]=o+E;return}if(x[0]=O(B)*c+f,x[1]=_(B)*E+o,n[0]=O(w)*c+f,n[1]=_(w)*E+o,l(C,x,n),A(b,x,n),B=B%M,B<0&&(B=B+M),w=w%M,w<0&&(w=w+M),B>w&&!P?w+=M:B<w&&P&&(B+=M),P){var T=w;w=B,B=T}for(var m=0;m<w;m+=Math.PI/2)m>B&&(p[0]=O(m)*c+f,p[1]=_(m)*E+o,l(C,p,C),A(b,p,b))}te.fromPoints=a,te.fromLine=t,te.fromCubic=i,te.fromQuadratic=u,te.fromArc=d},"4qgm":function(Re,te){Re.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAAwCAYAAABE1blzAAAIeUlEQVRoQ72aa2wU1xXHf2dm1jYEBClJGgofIFJLU0W04AdQWgJSW0UprZRIpB/aJBTxStIShWchJvbytA2lBCKKeajhQ5s2tGpFK1G1UowqKNjYBkraJCqqiCDEDZSncezdmTnVnd2FxaztmfWaa632w9459/7v75xzz71j4R61ssM6TkrYqMon3qesPjFNLt6LoWWgB5n1ttr/GcMCLKrE5qFgPJf3gRXN5XJgoMcfUIFlR/QxiqgVhyfVA/MxTWKgPuZvL51UtUyTjwdK6IAI/NLbWlQylhctWC0xPuN35Zi+gFUMfpIzoqxsLpffDoTIggssb9KvqLBJYnxD3dvUepq8OIAPquxzfCobJ8v5QgotmMAxDVoyYjAvi81KcRiWk1qPKm/RPIvHqy2T5FeFElkQgeVNWq42m8TmcU0G8ZVXC2ia5vOW47Lq2BQ5m5ehrIf6JbC0WQdbsMSH5ZbNED/R3+mYDHSL5kcqVLZOZB8imq/lvAWWHdWpOGySIqYEwvKk1mtsmtl5/M72WNk4Wf6dj8jIAqce1qGJEparsgSHQVoIar3M3GRadWnDp+rb5eyJi0RaykgCy47q9DS1srDUvLRzme+YFXhg5CY2YD4uf/RdVrROkffCGgk13vQTOrzdZZUKi8SmOCy1pMLUYfCDkfD7T+Cvl1PTckKNereENM1L6rFmaAc/PzRD3L6E9jlUabN+Swj2tfFB6o8Q7h0e/GQMPDcy9djBS7DjPJzthOJ+0lSPvzguyxonyz96E9mjwIpGHeGZ+lFYiEXMpP+ozQhcPgZmj7z95MUE1H8Ef7gIhnCszyXOPWqa5lWUDVcvsu3Mk5KrXsodEhUtOtNT6qwYj0allj2dXAIzvx+5CtvOwT9vQpEFVtTVMzuK8QJT1yY55HssbZ0sLd3N3LF+k47pZ70YcZS5WNj5UAsr0PS74cG+C/DLNrjppYTm0wKaSW7gUxvz2HL0q/Jpxs4tgeVN+rRvUWPF+Hx/qEURmOl7uh1ePweN11Iua+XjtsYLUjSP+BZLW0vlmLEvk07paK+LNWoxWwQxBXKhWm8u2n2MpA+/+S/suQDXvfxc1ti0ioIC/ybK5o5BbJbSJj1pD+HLXnu0DBlmEaIIzNjbfi6VhErydNeAmgX2MPCu8ZxMaNJptlBjSi6zv+VbKOcSHFVgwxXY/CFc6AI7Hzc14kzBni7xPJtFgZnxp/S+WJLFAsvEYWiko04vKMMKbOtK7Y9/+h/4mmchkFWkWz6VxyvkzYBm9vzKjmsFFnX9PfZkbPYl0BSVBy7CzvNwvqsfm3/WMct1WXUy65h1lyNMb9CS9iEsUouVls3w/tDsTeCZDjDxduhqKqHk5ZJpaprgQ/VZleug3KOnl/1dJ6QvjL4Z5uohbAx2+fBWG/ziY7icTFHLp4W96ug1lM3l0eCxvIhQicWIqBu/IbhyLDz7cErCiRup6qX5ej/2u4iXVaFyVdlxfUyFN0UojbJPGlozH4B5o+DAJfh1GxjR+VYs2deNFrx2vELa+qIfSqAxUtqkW61iXvY7+zJ55+/mFGHcsN0FJ8+a89Y1RoL3xWVF85TwF8ahBZY16RtSzEtRBRq5RmTogbqtn6GGh+vDThHiLWVyadYstffvl/Q1cu8LHnrc/giMxjzdOxNrCU6rsry1Qv5sflkQ1x8qjN5VJWvD2C2cQGMpwmG4t8lJUUAtobDds1l3coJcnVulox2LdU4xzyc62berWmbfG4GSKo80SVKK0gfjfIWaGDXFcoJW32dZ6yR5x4hYuEafUaixbcYaX3cT7NlVLfMGXGAmq4nPHlz2YvMjbJ41k4iSbYOSylBz6VThZ+2dbPzga3Jj4Todhcd6FZ4XAd8DJwZucqAF3q4gPgCWZ78GK2/S76nFBonxSKhzZfoc5ydpxGNpy2Q5HFCr0mew2WjZPOJmXZcMuMDgFZiPi1Dv3SRuXmTOqdWhRV28ZHkc3hGXw+VN+rAK67GYjWD1VCAYd/Q9borHZrWpaymTjoWv6igtZh0E59OAWnYbMIGljbrDGc4L3g3eRQNqB83A89bo4zb81HYodV06VKkb+S4b4/slMbFRn7JsaiTGF7JpZu5S/ARH8FjSMkUaja35cZ1lCTUBNXPwzhHLRmAywd7dcZlb2Bhs1C3EGNTlsOr0eLkyZ7kOdYawyoJXRCj2PDArbjvguRxVl1d2rZXGCa36oO2zBmWexLCD+ExwHai91M6WszOkc06Vfi5msc4QNzmrO7VsIbEiSCTYubtaXiiowNJmfcBssumVniGw2XaY6Jl3gN1W2oj0fTrUY9PIf7HB0Cxv0ifUZhF+SlxzuZy4i1ofV5NOyu5ltXiqvlL+VlCBGWNzV+vX7RgHnRj3JXPeRKZ6ZtP0fBbviacugTItoOakY60PasalLTuIx3dIsrh+rZwKIy6YR9iOmX7z6zUmbTwhQq1l82gugtk20zRvqrKJDrZeKaX9/vd42oIay7kzQ+aaS/C8x3WEtZc9tu2PS6TXPZEFZibx4w36YMKl2lRPIti9xY2haQh4LmcQbqBMSBPpcX2zPKDB91m8Oy4no8LIi2D3QRZW6Uxs6sLQtMzhNkfq724zTf2aKutH+rwej0gt217eBLONLKzWh8z/wWgImr1RCKgZ0h4N4rJk59pUIupPK4jAzAQWxPU7QJ3t8MW+YjMXNfW55ivriy+xbfv23C9ToootqEAzeEDTplqV+X3FZibbWqlE0iCwZOdr/adWcBfNtarzqvS7tkWt1QtNE2uGGrAhNpzXty8qDLV7IjBDUy3ioszHwspk2lux5tOgHkt3xaU1quuF7V9wF+2Rpk0dwjhTXypcQ9lYdD9bB4LaPSPYPdOqsAcYh8336yulOSyF/vT7P83Gv9qVBJysAAAAAElFTkSuQmCC"},"4u4S":function(Re,te){Re.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALoAAABSCAYAAADjGc4eAAASm0lEQVR4Xu2dd5QUVRbGfz3kJDkKCJJBAVFWRUUkGFBQEFRWFhUWmBlAoqCoMGKAVcC8CLKLBEEkKCZMgKjkqIIIKCKiMCAsUfLUntuvi+7pqeqq7q7pcbrrncMfTL10v/f1q/vuu/eWR0vmBaA/bnERiGMEPFoaSaTzLhrt4lhOV7QER8Aj8mtDKMJxlqJxeYLj4Yofpwh4ie4l+wAqcopVaFSJU1ldsRIYgfNE95K9L5dyjq/RuCCBMXFFj0MEMhHdS/ZUbkTjQzTyxqG8rkgJikAWonvJnkIvNCYmKCau2HGIgCHRfWQfg8awOJTZFSkBETAnuoaHFN4GOiUgLq7IcYaAKdG9u3oaBUlnCRpXxZncrjgJhkBIonvJ3o+ynGUlGhcnGDauuHGEgCXRfWbHupxjORol40h2V5QEQsAW0X1kb8FZPgHyJxA+rqhxgoBtovts7N3IYGqcyO6KkUAIhEV0H9nTyGBkAmHkihoHCIRNdJ+NfToaXeNAfleEBEEgMqKnkZ+9fAY0TxCcXDFzOQIREd27qw+kFCdZgUbtXI6BO/0EQCBiovts7DU4w0qgTAJg5YqYixGIiui+w2kzMlgEFMzFODg/9dLVISkPHN0PJw+b91+gGGSchTMnnJ9DcI9FSsNFTeHgL5C+DbRzmWt48mT9m5OzkvFLXAgHdsLJI072bNlX1ET3kf1uMpgFONKf5axzQ4Uxe6B4BXi7Pyx5yXzGveZBo9th21J4sVX0kpW6CA79DhlnsvZ1xT3QYxZoGgwsDqeO+utUuhRSFsCcgfDtgujnYdRDp/HQaqCa3/Cq2fujChrfMWJqyTwMjM4ehCx6HbgESla1P/TLN8P+7ap+gaLw6Df22r4zFDbMs1fXDtGrXw1Dl6v+5g2Bz8fZ69usVlI+GPsH5C8Mb3SDtbL3BJQOz8KND8HerfBE3czP+nwIl7RVP4J3H4FP/xXdXIJb5ysEo3+DIiXh49GwYLiz/Vv05hjRvTt7CpPR6BFTCWSwUT9B2TBccUZdAns2q2kWvACeD6FaBAoz9QFY+YY98ayIXrgUPLwaytZQ/f260Vp9WfwirJttPn6t62HQF+r5o9Xh4M7MdfsvgrotYfVMmHJv5mf5CkP3N6HxHervy6fAjH+ClmFPXqtaV90P901RtUbU9m80Vu0ceu4s0dPISzoL0Wjt0PzsdaMT/dNnYcN84zYeDwxdoZ6ZEX3BY/D7pqztH5gBBYuCEdFLVgHRbYNJFYroeQtCv4VQu4U9+fRaolYsluwkJuWOMXDTMNizBUbVz1pp7EG1o84dDIvGZ33uSQJRL1r6sp+smArTuztD9mGroNrfYPtXMD72VmlHiS7IacMozhGWodEgvFWMorZO9Jkp8NVrJkRPgn/7Dl9mRB/fArYvNSDIAShSKivRWw+BDv+CrYvhpTaZ25kR/YIKkPwuVL9S1V/4NOz+1lx4qdd6kHo+/gbY7tuxjVo8uhEqN4LPxsH8IZlryOH4qR2+fkzk1FvcOhJuS1P/+3oyvNlLVtZ4jqI21rjWevHy+CIzRTXKCDoEW7f21xhWEY7/EU4Lb13Hie4lex8uIsPr2lsh7BlF0iCniC67+Yjv1W7/SlvYvNA/eyOiN7gF7p0EJStDRgbMTIZlr5tLfEFFeGQtlKgEa96C/3Yxr1u8Eoz5TT1/oZX68QWWy+6EXnOVDj6ohLXVo/OL0PJB9XZ4rhmcOGQ89qAvodZ1kaxaZG2GlP3rEN1L9r5cwVlkeywcmURhtMopossUWw2CTuPg983wVCO/JSGQ6GtnQ9fJ0PA2JdSp4zC9B2z7Apo9oHbgYCtJ3gIgu+XFV8PJozCyDhzZYw5Ks+7wj/+ouoNLZ+2v/dNwy3BlVkyrYwNcD7R/Epa8DEfTzetXuQwKlTB/ftV9cPV96vmMXrD/Rxtjh6jy49fGFiWLXrNlR9fH1PpwOxnMRyMpOuksWutEF/1PP2QGNxEd/bre6q9OqS7Sl+jnw9dD5YZqIfUdOpDoSyfAgM+hVnPYtBBmpSj7+uPfqUO0EH5SJzh+QM2vfF11MKzaRL3mp3WHVdNCg9BzDjTpBAd/hdVvZq0rh8wKdWH/T7BuTmTL8et6WB9G28qN1bkoX0H48jUldw6VbCW6yKSlMACN57NVPqesLuHq6LpQjTpA8nw4vBdG1oJTxyBYdSlaFmrfAOslDNdXqjRR+nqpKrB/B0xoD2I5uXMs5C8EJ4/Bf+6BTR+Ghi8pLzy3HwqH2FmdWICV02Cqb3e26k+sWaJ2laulZHuqIZw+7m8lF2W9fabaN+4L/bayGsvG82wnuo/sr6DRx8Z8IquiE/3b92HnauM+ZEdvN8r5Hd3bo0ftzpUawIej4IORWYluJlmxctBzrtJzZfeW21Qp/9sNr94Gv9mw8ctBU9QnsyLPqzRW+vk370aGsbSSN0+oy6/Anv85Gy6/S51Fnm8BP36VeVwxr47zvcEerwF/+A7Kkc8uZMvYEP1t8rCEBWjcmi1y5KSOrgvU9O9K3fh5FTx3DYzebX0zWqE+NO2i/un29DOn4OtJyhoTSjcOB0iddDtWqINldpfmqdDlVTWKkQVI/h6PRPfu6qkUReNLNC5zHOe/AtFFVxdT4A7fTaeR1aVIGWU7r3MD1GmpdGa9CMGXTVa3hod91hMngCpcUr1d8hWAOYNgcfZqkV5fmsFfqfHEYvNMEzh7Mqsk8Up0L9n7UomzrAIqO7GG5/v4KxA9WCAjot/9MrTom7nmrvUgKpeQ/NBu/zOx5jRPgd0b4fXOkcMlfXT5t1JbxL8kcIzIezVuKT/e3u9AIV/qziPpcHSfcV05V1Ssp56JJejsqdCzmXA7HPg54hnHRHUJnJ3Wj0acQRS2YhHPOrihTvR3HoaVJiGtcuun25mdtLqYCWG4o5dWurxO7u8+MN+9dXOgqELPRpFWR7+RPH0CNn0UHuTiYSg3o3aKqG7dpkDe/OpHJWciJ8sT9WHvloh7dHg29uahpdKODN6zV9tGrZy2uhhN0exmVH5wdvxHnCB6xQYwwsClwQak3irH/oCHylrXbjMUOoxR5D5xGOYOUjZ9KVPvhxMGLrkFi8H9vk1pVqqyWAUXsTzJuUdKWj1I/8F6LiY1coboyYijxcCIZ222o9vtMLt3dCHzs+lQtIzfTff6vnBRGN9ZENOj2OaFbLLz60V2eDM3h2D5u89UB129rJ8LPy2zRkns8TWuUW+e0SHmLHLe9aJfHRNLkdwQy6XV0z41w+wm046OLp6lL/hciXMb0bUUuqIx3RrtMGroO/rbA2C5bycJ1fz0n/5dNdB7MVI7euBYYh8Wgum3oLo/eu/50LhDGEKZVJVbVrGtW5ULG4L4vsguK/7f4kYgRHzyUvPrfOmz+IWQ9oNya5jUGTbMNR9J9y+XGr99p0guZ4BS1RKb6FoKl6PxtePRSHYOo2bL5STRZYFT34cLL/GPphP9mp7Klm23VLtSvQGO7MtMtl3rYPl/rXtJeQ8atoPDe+CZy5Xfe+lqxi66gb31eAuuuFu5NMiPwsyZS9qIeVRcjeUtM7GjP5IqkYmuJVMOD2uz5dMxVkQXX4zrU+GTMVn1Y6eILh58smsXKwt/HgLxVREd0yzCyCpsLRodPTCgQwIwVk2Huq2hvyRuQLkUrPD5hgeS/NLb1A9VyuR7Qvu+6+1kLPnxnTvt7ylRia5NJB8bWYRG9ri5hSK66JEjNiubtRx6vpyQeTeMluhCWHGWajsCxBX1wC/wyi0wYLHxhVH+IuqGtt6NMO46czUiUqKL2e6hZcr3+6flMFZcaH0utve+DtdKMIWmfNIDbeoN2qorefFL2fwxvHqrvUOz0bslYYmewgQ0kq3ftxHWsNrRW/SDu19SO6147gXadqMhetmacP90uNhn/pPDmxDkyF5zFwAh+tCVSr3ZugReusnYGy9Sord7Eto+pq7exzQFccTSi4TadZ+hrualLHoB5g2Ghu1Bbk/FNLhjpXLzPfNnhItBYuroWio9yWBS5KjZaGlFdNl1H14DVS+DYMckK6JLiNm4g+qmT5yPAr0Iu0yA5r7fr4SnSYCC7rgUKsKoTA01H4n2kZA1I1t1JESveR0M/AKSkuCricrfPbjIG+7vE9XOLkU8PsUVWN5GopePaw5/HrQBeogqibaja6lIKowl2Z6B14rosiZNOkNPn+egLKbuZGREdLlN1O3d9W+GRu3VqqbVhfSt/hUuWwuGr4M5Yu0JOiBaxYzWvwn6fKRIKbbm4IuucIku55DHvoFSVeH4/5QXpe72a8TJwB+pPJc2cvh0wv3AKaIHBpP8Vc2L3uv+c6yLSZSRGdELFlc+2ld2Ve6v+m2dV3e9Ri2/EdEf/AzqBYW9eq0QAdYUnTzifWh0zW1FdGnfcSy0GawCMcQnZN82PyXDIbocfMXKUv9GpX9P6QprZhpvuXnyw/V9oO3j6o0SWHaugfdHwPcf58yOLq7Mkvfl7Gl1kJd5SmCKXEI9VC7zgTfMGWbLhZHWjwKc4Uvgb2HOJ7LqT+6AMtVBYkY3zlc6Z6M7lKVBVA697PkeRK8WXfSVW2HzR8ZEl2idayVO0hcN9N37IPbrUBE+wTO3Q3Qh6CPr4OAumPZAZm9Fu0QX4kpuGN1u/1Y/WPqKMY6NO6oY13I11XPxdxdLVKVLlEnx/EawTBE+OBzP7upEuqOL6jVYaBNUJEh72v12Rzeslz1ET0ZsV9HNzK5YNZurFA+ySGIzLlZeqQN6kZvFNbOUbr5rLeivbO+t3xUgV9F6uguzCyO7cwmsZ4foUt/sjdDxOWgzRNmozXxdxMIi6ph+ESX5WIS4gUXyqUjiInEmk4glvcgPVywvuqoidnvxaZcbUb3s2qAipuT8ESrbWDA+kRJdDstP71R5aaRIRjGJhhJT6OHfI1mF820cJ7qWzIPAi1HNKpzGElcZnDbi2AHY8qnahcWRKTAes0RlGPWjOnDJRYocHnOS6CKrvLJFffGmpdOU1eLBT6B8bZW+Y9KdxoiISbPdE+qZ+K+/95i/XpmLlfejvJ0kg4Fe5K02u5/5bi1B1Lc/o8bWiziESQideFgGB1AYzUwIq/vX79tunJHLjgtAODywqOso0bW+tOAcn8X0q9PNeqjI+l/WKPuv6JcSZRTKcUoCduUHcGy/seriBMB2d3QZS4I0RDcV/frMSaWf6iXUNXz5OvD4Jlj6qjoQ60VUoqd+huIV/X+ToOLPx6t0c5ZOZR5ocLPSkSVzgf6GFBVLgrSN/MvDxSy3Et2b4uIca2OeWVdezfKqC2VhCLUIVubFcBdQrx8O0SWUrknQrr3vRxX29t7joYklFz3eNBtBeVfE5UD80MWRS5IVyUYQSQl8M8gt7+oZkfSStU1uJLqWRmHSvUmLwnDmcAav6Hvx+Hc+0ecDr7Kj6bxcbRAdWi6PrOzS8mMTTz29SOxotGF0Yh4V85xTgRayocjbJpTvSzh4yd2G7vsj2dGsAi/C6dugriOqi5bCLDRsuNRFOVu3uYtAhAhETXQtlaFk4HDq1QilcZu5CJggEBXRtWRuwsNH2Z6gyF0+F4EoEYiY6FoqNdFY7X5NOsoVcJvHBIGIiO5LXSFJRGOXMTcmcLiDxCsCYRNd0/CQ6s2n6MsYH6/QuHLFEwLhEz3Z+9VoX/LseILClSWeEQiL6N7suOd4J7vyqscz0K5sOYuAbaJrqdQjw5tly7nEQzkruzt6AiFgi+jaAEpwEklTWyuBsHFFjSMELImupZFEOh+gcUscye2KkmAIWBM9ldFkeL8h6hYXgVyLQEiia324i3OE+LBlrpXbnXiCIWBKdF/WW0n2nf0f20ow0F1xY4+AIdG1PpT2+ZZXi/2U3BFdBJxHIAvRNfX150/QaOn8cG6PLgI5g0BWoicj3+D2fSM7Zybljuoi4DQCmYiupdKNDEw+GeH00G5/LgKxQ+A80bVUmpLhzcVSMHbDuyO5CMQGAS/Rtf6U55Q3sNnZj2jFRgZ3FBcBSwQ83pTOG7z5EQMy11i2cyu4COQqBDxaMq8BvXPVrN3JugiEiYClC0CY/bnVXQRii0DHWkEJbYKG95ABnmSX6LFdFnc0pxEISXTPWTxaN+Ztn+US3Wng3f5ii4A50U/hydOZeT94P8rkEj22y+KO5jQCRkT3eI6T5GnPHH/ea5foTgPv9hdbBLIS/RD58t7C7C0rAyfiEj22y+KO5jQCmYm+j3yeG5m97ZvgYVyiOw28219sEfATfTd5klozZ2vAR6b8U3GJHttlcUdzGgFF9J8gbyvmb/nFrHuX6E4D7/YXWwTurLWJQnnbMGPLnlADu0SP7bK4ozmNQLe6pZn2wwGrbv8PSygpSs9Cw9cAAAAASUVORK5CYII="},"500L":function(Re,te,v){"use strict";v.d(te,"a",function(){return B});var Z=v("+L6B"),K=v("2/Rp"),I=v("2qtc"),k=v("kLXV"),_=v("9og8"),O=v("k1fw"),M=v("miYZ"),x=v("tsqr"),n=v("oBTY"),p=v("tJVT"),a=v("DZo9"),t=v("8z0m"),h=v("WmNS"),s=v.n(h),i=v("q1tI"),u=v.n(i),d=v("m3rI"),f=v("wzkS"),o=v("y5JW"),c=v("LtfV"),E=t.a.Dragger;function B(w){var P=[];return w&&w.length>0&&(P=w.map(function(C){return{uid:C.id,id:C.id,name:C.title+o.c+C.filesize,url:C.url,filesize:C.filesize,status:"done",response:{id:C.id}}})),P}te.b=function(w){var P=w.value,C=w.onChange,b=w.action,l=w.className,A=w.maxSize,g=A===void 0?150:A,T=w.title,m=T===void 0?"\u4E0A\u4F20\u9644\u4EF6":T,y=w.showRemoveModal,U=y===void 0?!1:y,N=w.accept,S=N===void 0?"":N,H=w.additionalText,F=w.isDragger,R=w.number,z=R===void 0?1e3:R,Q=w.aloneClear,$=Q===void 0?!1:Q,ee=Object(i.useState)(!1),fe=Object(p.a)(ee,2),Ae=fe[0],ce=fe[1],ie=Object(i.useState)(P||[]),be=Object(p.a)(ie,2),se=be[0],me=be[1];Object(i.useEffect)(function(){P&&(me(Object(n.a)(P)),z===(P==null?void 0:P.length)&&ce(!0))},[P]);var le=function(){setTimeout(function(){se.pop(),me(Object(n.a)(se))},500)},ge={multiple:!0,disabled:Ae,accept:S,withCredentials:!0,fileList:se,beforeUpload:function(Me,xe){var Ke=Me.size/1024/1024;return se.concat(xe).length>z?(se.pop(),me(Object(n.a)(se)),x.b.error("\u6700\u591A\u53EA\u80FD\u4E0A\u4F20".concat(z,"\u4E2A\u6587\u4EF6")),$?Promise.reject():(le(),!1)):!0},action:b||"".concat(d.a.API_SERVER,"/api/attachments.json"),onChange:function(Me){var xe,Ke,tt=Object(n.a)(Me.fileList);if(Me.file.status==="done"&&((xe=Me.file)===null||xe===void 0||((Ke=xe.response)===null||Ke===void 0)?void 0:Ke.status)===-1){var he,Se;x.b.error((he=Me.file)===null||he===void 0||((Se=he.response)===null||Se===void 0)?void 0:Se.message);return}tt.length>=z?ce(!0):ce(!1),me(Object(n.a)(tt)),tt=tt.map(function(Ue){var Ne;if(Ue!=null&&(Ne=Ue.response)!==null&&Ne!==void 0&&Ne.id){var ct;Ue.url="/api/attachments/".concat(Ue==null||((ct=Ue.response)===null||ct===void 0)?void 0:ct.id)}return Ue.name.indexOf(o.c)===-1&&(Ue.name="".concat(Ue.name).concat(o.c).concat(Object(o.a)(Ue.size))),Object(O.a)({},Ue)}),console.log("info:",Me),C(tt)},onRemove:function(){var pe=Object(_.a)(s.a.mark(function xe(Ke){var tt;return s.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:if(tt=function(){var Ue=Object(_.a)(s.a.mark(function Ne(){var ct,mt;return s.a.wrap(function(ht){for(;;)switch(ht.prev=ht.next){case 0:if(ct=Ke.response?Ke.response.id:Ke.id,!ct){ht.next=8;break}return ht.next=4,Object(f.d)(Ke.response?Ke.response.id:Ke.uid);case 4:return mt=ht.sent,ht.abrupt("return",mt);case 8:return ht.abrupt("return",!0);case 9:case"end":return ht.stop()}},Ne)}));return function(){return Ue.apply(this,arguments)}}(),!U){Se.next=5;break}return Se.abrupt("return",new Promise(function(Ue,Ne){k.a.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:u.a.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:function(){var ct=Object(_.a)(s.a.mark(function Rt(){var ht;return s.a.wrap(function(zt){for(;;)switch(zt.prev=zt.next){case 0:return zt.next=2,tt();case 2:ht=zt.sent,x.b.success("\u5220\u9664\u6210\u529F"),Ue(!0);case 5:case"end":return zt.stop()}},Rt)}));function mt(){return ct.apply(this,arguments)}return mt}(),onCancel:function(){return Ue(!1)}})}));case 5:return Se.next=7,tt();case 7:return Se.abrupt("return",Se.sent);case 8:case"end":return Se.stop()}},xe)}));function Me(xe){return pe.apply(this,arguments)}return Me}()};function ae(pe){pe.preventDefault(),pe.stopPropagation()}return u.a.createElement("div",{className:"multi-upload ".concat(l||"")},F&&u.a.createElement(E,ge,u.a.createElement("p",{className:"ant-upload-drag-icon"},u.a.createElement(c.a,null)),u.a.createElement("p",{className:"ant-upload-text"},"\u70B9\u51FB\u4E0A\u4F20\u56FE\u6807\uFF0C\u9009\u62E9\u8981\u4E0A\u4F20\u7684\u6587\u4EF6\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u6B64",u.a.createElement("br",null),"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A",g,"MB)"," "),H),!F&&u.a.createElement(t.a,ge,u.a.createElement(K.a,{style:{width:"108px",height:"32px",background:"#F6F7F9 linear-gradient(180deg, #FFFFFF 0%, #F6F7F9 100%)",boxShadow:"0px 2px 4px 0px #E0DFE1, inset 0px 1px 3px 0px rgba(255,255,255,0.5)",borderRadius:"2px",border:"1px solid #BACFFE",color:"#3061D0"},icon:u.a.createElement("i",{className:"iconfont icon-shangchuan3",style:{marginRight:"6px"}}),disabled:Ae},m),u.a.createElement("span",{onClick:ae,style:{marginLeft:10,color:"#FA6400"}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",g,"MB)"," ")))}},"55Ip":function(Re,te,v){"use strict";v.d(te,"a",function(){return o});var Z=v("Ty5D"),K=v("dI71"),I=v("q1tI"),k=v.n(I),_=v("YS25"),O=v("17x9"),M=v.n(O),x=v("wx14"),n=v("zLVn"),p=v("9R94"),a=function(l){Object(K.a)(A,l);function A(){for(var T,m=arguments.length,y=new Array(m),U=0;U<m;U++)y[U]=arguments[U];return T=l.call.apply(l,[this].concat(y))||this,T.history=Object(_.a)(T.props),T}var g=A.prototype;return g.render=function(){return k.a.createElement(Z.c,{history:this.history,children:this.props.children})},A}(k.a.Component),t=function(l){Object(K.a)(A,l);function A(){for(var T,m=arguments.length,y=new Array(m),U=0;U<m;U++)y[U]=arguments[U];return T=l.call.apply(l,[this].concat(y))||this,T.history=Object(_.b)(T.props),T}var g=A.prototype;return g.render=function(){return k.a.createElement(Z.c,{history:this.history,children:this.props.children})},A}(k.a.Component),h=function(A,g){return typeof A=="function"?A(g):A},s=function(A,g){return typeof A=="string"?Object(_.c)(A,null,null,g):A},i=function(A){return A},u=k.a.forwardRef;typeof u=="undefined"&&(u=i);function d(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}var f=u(function(l,A){var g=l.innerRef,T=l.navigate,m=l.onClick,y=Object(n.a)(l,["innerRef","navigate","onClick"]),U=y.target,N=Object(x.a)({},y,{onClick:function(H){try{m&&m(H)}catch(F){throw H.preventDefault(),F}!H.defaultPrevented&&H.button===0&&(!U||U==="_self")&&!d(H)&&(H.preventDefault(),T())}});return i!==u?N.ref=A||g:N.ref=g,k.a.createElement("a",N)}),o=u(function(l,A){var g=l.component,T=g===void 0?f:g,m=l.replace,y=l.to,U=l.innerRef,N=Object(n.a)(l,["component","replace","to","innerRef"]);return k.a.createElement(Z.e.Consumer,null,function(S){S||Object(p.a)(!1);var H=S.history,F=s(h(y,S.location),S.location),R=F?H.createHref(F):"",z=Object(x.a)({},N,{href:R,navigate:function(){var $=h(y,S.location),ee=m?H.replace:H.push;ee($)}});return i!==u?z.ref=A||U:z.innerRef=U,k.a.createElement(T,z)})});if(!1)var c,E;var B=function(A){return A},w=k.a.forwardRef;typeof w=="undefined"&&(w=B);function P(){for(var l=arguments.length,A=new Array(l),g=0;g<l;g++)A[g]=arguments[g];return A.filter(function(T){return T}).join(" ")}var C=w(function(l,A){var g=l["aria-current"],T=g===void 0?"page":g,m=l.activeClassName,y=m===void 0?"active":m,U=l.activeStyle,N=l.className,S=l.exact,H=l.isActive,F=l.location,R=l.sensitive,z=l.strict,Q=l.style,$=l.to,ee=l.innerRef,fe=Object(n.a)(l,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return k.a.createElement(Z.e.Consumer,null,function(Ae){Ae||Object(p.a)(!1);var ce=F||Ae.location,ie=s(h($,ce),ce),be=ie.pathname,se=be&&be.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),me=se?Object(Z.f)(ce.pathname,{path:se,exact:S,sensitive:R,strict:z}):null,le=!!(H?H(me,ce):me),ge=le?P(N,y):N,ae=le?Object(x.a)({},Q,{},U):Q,pe=Object(x.a)({"aria-current":le&&T||null,className:ge,style:ae,to:ie},fe);return B!==w?pe.ref=A||ee:pe.innerRef=ee,k.a.createElement(o,pe)})});if(!1)var b},"59Ip":function(Re,te,v){var Z=v("Sj9i");function K(I,k,_,O,M,x,n,p,a,t,h){if(a===0)return!1;var s=a;if(h>k+s&&h>O+s&&h>x+s&&h>p+s||h<k-s&&h<O-s&&h<x-s&&h<p-s||t>I+s&&t>_+s&&t>M+s&&t>n+s||t<I-s&&t<_-s&&t<M-s&&t<n-s)return!1;var i=Z.cubicProjectPoint(I,k,_,O,M,x,n,p,t,h,null);return i<=s/2}te.containStroke=K},"5D2P":function(Re,te){Re.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAFTklEQVRoQ91aS4xURRQ993UzUUZcqFEc4meh0cQFSlwgrvAHSgQWhOhCk4GZqmdw+ERUWDkrBMUBnIzzqqYjcTaaGBLFxA8MjIk/3PhZCCa6UAyKC11ARnDo6Wvu+HrS0/R7r96nWVBJpxfv3nPPrbp169aHUEAzxsxl5gcB3AdgAREtkH8AXSH87wBOMfMp+QfwFREd0Vr/k9c8ZQUwxixi5mWe5y1l5qUAyimxqkQ0XqvVxonoE631Nyn1p8VTO7B///75Fy5c2MzMWwB0ZDHaQmeSiPbMmTNnb3d39+k0mKkcMMZsBiC/W9IYSSH7K4C9Wuu9rjpODoyMjNxQq9VGADzuCpxT7gPP83p7e3v/TMJJdCAIgoVEdBDAzUlgBX8/ycwrfd//Pg431gFr7RPM/HbBxFLBEdGTSql3opQiHQiCoI+IXk9lrU3CzLzR9/3BVvAtHbDWPsrMH7aJTyZYInpMKfVRs/JFDlQqlduq1eoxIro2k6U2KTHzX+VyeXFPT8/PjSYucsBae4iZH24Tj1ywRHRYKfVIpANhnt+Ty0r7lbc0rhMzI2CMuRHAlwBubT+HXBZ+AbBEa/3HrFLCWruTmV/MBZ1N+TiAdyNUX2qZeYh2KaW2zThQqVTumZqaOlZgbePqynEiWquU+qFZwRjzBoBnIoAmS6WSTOhvp0PIGPMcgN2uVguSiyQfBIFPRMMJdrZqrV+bdsBa+x4zryqImAtMJHlr7RJmPgxgbhwQEb2vlFpNAwMDV3Z2dp7JUM+7EG0lE0l+dHS089y5c4dkkjqAVycmJq4ma+0yZv7YQaEIkUjyAh4EwTAR+a6GiGg5BUGwg4i2uyrlkEsi7xL3s8wz88syAm8x89M5iLmoxpIP4348bRYkolEyxowBkA25S1sLQJbyHhfhUCaWvMT9+fPnx5h5cQrMuugRceAEgDsdlKfTVph2rwMgC4mk37gWSz5L3DcZ+1EckAw0L44FM4/4vq+aZfr7+zu6urq2MbPMoSuavieSt9b6zJyU7+OonXVygIjWKKUOxCGFhaA4cj0AF/KS7z8D4DmMfpTIGdcQOgtgldZaJlpss9auA/B1q/Kgrhjm+08B3JuEF/ediE44T2IikiOP1Uqp7/IYDePeElFvXhwAY2nTqJCXkTiZ1XgBcT9jmplHxYEd4SR04kRER0ul0ur169dLWKVqYb7/IpVSjHB9IctSShzQWq9JQySMeyG/MI1ewhxYnqeYq2itnePYGPMmgO6iyAP4v5gTwBzl9Cta68RdnDHmWQAtz3WyOjRTTodZYSsRvZoRbLvWemeU7vDw8P2e532eETtSjZmf931/d31HtkguHdIWUw3oWmttm60NDQ1dVS6XZat6V8EOTMplitwpNJ5K7ALwQg5Da7XWszbnxphRAE/lwIxSnQnd5mMVGYWsZ///MvMK3/ePiFVjjFyADLSBvCyo0vuzj1VCo3J5kflgi5lPE9EKIprHzFIqtKO1PtiqWzLGyIb6oRyW5ZynBOCOHBhRqmNa61nHnhedjQZBcDsRycS7pg0E8kD+LZse3/d/agS5/I7XG0JpI4B9ebqsQN1NWuuWly2X7xVTvfestXfXarWDRHRTgT2aCMXMv3metzJp/5F4SymWhoaG5pfLZVlpL9k1a7VaVRs2bEi89HZyIOwu2b1tukQX3TL3OHGYsjw1GBwc7Oro6Kg7UthTA7mhn5yc3NfX1ycPQ5xbmhGYBSqPPYhINkMPAJDHHrJ4pWlTAOShx1FmvnSPPVoxbHxu43neAmauP7eRf2nTz2yI6FStViv0uc1/ndZCH8rgOooAAAAASUVORK5CYII="},"5VLF":function(Re,te,v){"use strict";var Z,K;function I(k,_,O){var M=function(x,n){return k.js_beautify(x,n)};return M.js=k.js_beautify,M.css=_.css_beautify,M.html=O.html_beautify,M.js_beautify=k.js_beautify,M.css_beautify=_.css_beautify,M.html_beautify=O.html_beautify,M}!(Z=[v("6UM0"),v("TXwP"),v("psGv")],K=function(k,_,O){return I(k,_,O)}.apply(te,Z),K!==void 0&&(Re.exports=K))},"5Y4S":function(Re,te,v){"use strict";v.d(te,"a",function(){return I});var Z=v("MNsG");const K=Z.b.performance&&typeof Z.b.performance.now=="function";class I{constructor(k){this._highResolution=K&&k,this._startTime=this._now(),this._stopTime=-1}static create(k=!0){return new I(k)}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(Re,te,v){"use strict";v.d(te,"a",function(){return w});var Z=v("wx14"),K=v("rePB"),I=v("VTBJ"),k=v("1OyB"),_=v("vuIU"),O=v("Ji7U"),M=v("LK+K"),x=v("q1tI"),n=v.n(x),p=v("TSYQ"),a=v.n(p),t=function(C){var b,l="".concat(C.rootPrefixCls,"-item"),A=a()(l,"".concat(l,"-").concat(C.page),(b={},Object(K.a)(b,"".concat(l,"-active"),C.active),Object(K.a)(b,C.className,!!C.className),Object(K.a)(b,"".concat(l,"-disabled"),!C.page),b)),g=function(){C.onClick(C.page)},T=function(y){C.onKeyPress(y,C.onClick,C.page)};return n.a.createElement("li",{title:C.showTitle?C.page:null,className:A,onClick:g,onKeyPress:T,tabIndex:"0"},C.itemRender(C.page,"page",n.a.createElement("a",{rel:"nofollow"},C.page)))},h=t,s={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},i=function(P){Object(O.a)(b,P);var C=Object(M.a)(b);function b(){var l;Object(k.a)(this,b);for(var A=arguments.length,g=new Array(A),T=0;T<A;T++)g[T]=arguments[T];return l=C.call.apply(C,[this].concat(g)),l.state={goInputText:""},l.buildOptionText=function(m){return"".concat(m," ").concat(l.props.locale.items_per_page)},l.changeSize=function(m){l.props.changeSize(Number(m))},l.handleChange=function(m){l.setState({goInputText:m.target.value})},l.handleBlur=function(m){var y=l.props,U=y.goButton,N=y.quickGo,S=y.rootPrefixCls,H=l.state.goInputText;if(U||H==="")return;if(m.relatedTarget&&(m.relatedTarget.className.indexOf("".concat(S,"-prev"))>=0||m.relatedTarget.className.indexOf("".concat(S,"-next"))>=0))return;l.setState({goInputText:""}),N(l.getValidValue())},l.go=function(m){var y=l.state.goInputText;if(y==="")return;(m.keyCode===s.ENTER||m.type==="click")&&(l.setState({goInputText:""}),l.props.quickGo(l.getValidValue()))},l}return Object(_.a)(b,[{key:"getValidValue",value:function(){var A=this.state,g=A.goInputText,T=A.current;return!g||isNaN(g)?T:Number(g)}},{key:"getPageSizeOptions",value:function(){var A=this.props,g=A.pageSize,T=A.pageSizeOptions;return T.some(function(m){return m.toString()===g.toString()})?T:T.concat([g.toString()]).sort(function(m,y){var U=isNaN(Number(m))?0:Number(m),N=isNaN(Number(y))?0:Number(y);return U-N})}},{key:"render",value:function(){var A=this,g=this.props,T=g.pageSize,m=g.locale,y=g.rootPrefixCls,U=g.changeSize,N=g.quickGo,S=g.goButton,H=g.selectComponentClass,F=g.buildOptionText,R=g.selectPrefixCls,z=g.disabled,Q=this.state.goInputText,$="".concat(y,"-options"),ee=H,fe=null,Ae=null,ce=null;if(!U&&!N)return null;var ie=this.getPageSizeOptions();if(U&&ee){var be=ie.map(function(se,me){return n.a.createElement(ee.Option,{key:me,value:se.toString()},(F||A.buildOptionText)(se))});fe=n.a.createElement(ee,{disabled:z,prefixCls:R,showSearch:!1,className:"".concat($,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(T||ie[0]).toString(),onChange:this.changeSize,getPopupContainer:function(me){return me.parentNode}},be)}return N&&(S&&(ce=typeof S=="boolean"?n.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:z,className:"".concat($,"-quick-jumper-button")},m.jump_to_confirm):n.a.createElement("span",{onClick:this.go,onKeyUp:this.go},S)),Ae=n.a.createElement("div",{className:"".concat($,"-quick-jumper")},m.jump_to,n.a.createElement("input",{disabled:z,type:"text",value:Q,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),m.page,ce)),n.a.createElement("li",{className:"".concat($)},fe,Ae)}}]),b}(n.a.Component);i.defaultProps={pageSizeOptions:["10","20","50","100"]};var u=i,d=v("N2Kk");function f(){}function o(P){return typeof P=="number"&&isFinite(P)&&Math.floor(P)===P}function c(P,C,b){return b}function E(P,C,b){var l=typeof P=="undefined"?C.pageSize:P;return Math.floor((b.total-1)/l)+1}var B=function(P){Object(O.a)(b,P);var C=Object(M.a)(b);function b(l){var A;Object(k.a)(this,b),A=C.call(this,l),A.getJumpPrevPage=function(){return Math.max(1,A.state.current-(A.props.showLessItems?3:5))},A.getJumpNextPage=function(){return Math.min(E(void 0,A.state,A.props),A.state.current+(A.props.showLessItems?3:5))},A.getItemIcon=function(U,N){var S=A.props.prefixCls,H=U||n.a.createElement("button",{type:"button","aria-label":N,className:"".concat(S,"-item-link")});return typeof U=="function"&&(H=n.a.createElement(U,Object(I.a)({},A.props))),H},A.savePaginationNode=function(U){A.paginationNode=U},A.isValid=function(U){return o(U)&&U!==A.state.current},A.shouldDisplayQuickJumper=function(){var U=A.props,N=U.showQuickJumper,S=U.pageSize,H=U.total;return H<=S?!1:N},A.handleKeyDown=function(U){(U.keyCode===s.ARROW_UP||U.keyCode===s.ARROW_DOWN)&&U.preventDefault()},A.handleKeyUp=function(U){var N=A.getValidValue(U),S=A.state.currentInputValue;N!==S&&A.setState({currentInputValue:N}),U.keyCode===s.ENTER?A.handleChange(N):U.keyCode===s.ARROW_UP?A.handleChange(N-1):U.keyCode===s.ARROW_DOWN&&A.handleChange(N+1)},A.changePageSize=function(U){var N=A.state.current,S=E(U,A.state,A.props);N=N>S?S:N,S===0&&(N=A.state.current),typeof U=="number"&&("pageSize"in A.props||A.setState({pageSize:U}),"current"in A.props||A.setState({current:N,currentInputValue:N})),A.props.onShowSizeChange(N,U),"onChange"in A.props&&A.props.onChange&&A.props.onChange(N,U)},A.handleChange=function(U){var N=A.props.disabled,S=U;if(A.isValid(S)&&!N){var H=E(void 0,A.state,A.props);S>H?S=H:S<1&&(S=1),"current"in A.props||A.setState({current:S,currentInputValue:S});var F=A.state.pageSize;return A.props.onChange(S,F),S}return A.state.current},A.prev=function(){A.hasPrev()&&A.handleChange(A.state.current-1)},A.next=function(){A.hasNext()&&A.handleChange(A.state.current+1)},A.jumpPrev=function(){A.handleChange(A.getJumpPrevPage())},A.jumpNext=function(){A.handleChange(A.getJumpNextPage())},A.hasPrev=function(){return A.state.current>1},A.hasNext=function(){return A.state.current<E(void 0,A.state,A.props)},A.runIfEnter=function(U,N){if(U.key==="Enter"||U.charCode===13){for(var S=arguments.length,H=new Array(S>2?S-2:0),F=2;F<S;F++)H[F-2]=arguments[F];N.apply(void 0,H)}},A.runIfEnterPrev=function(U){A.runIfEnter(U,A.prev)},A.runIfEnterNext=function(U){A.runIfEnter(U,A.next)},A.runIfEnterJumpPrev=function(U){A.runIfEnter(U,A.jumpPrev)},A.runIfEnterJumpNext=function(U){A.runIfEnter(U,A.jumpNext)},A.handleGoTO=function(U){(U.keyCode===s.ENTER||U.type==="click")&&A.handleChange(A.state.currentInputValue)};var g=l.onChange!==f,T="current"in l;T&&!g&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var m=l.defaultCurrent;"current"in l&&(m=l.current);var y=l.defaultPageSize;return"pageSize"in l&&(y=l.pageSize),m=Math.min(m,E(y,void 0,l)),A.state={current:m,currentInputValue:m,pageSize:y},A}return Object(_.a)(b,[{key:"componentDidUpdate",value:function(A,g){var T=this.props.prefixCls;if(g.current!==this.state.current&&this.paginationNode){var m=this.paginationNode.querySelector(".".concat(T,"-item-").concat(g.current));m&&document.activeElement===m&&m.blur()}}},{key:"getValidValue",value:function(A){var g=A.target.value,T=E(void 0,this.state,this.props),m=this.state.currentInputValue,y;return g===""?y=g:isNaN(Number(g))?y=m:g>=T?y=T:y=Number(g),y}},{key:"getShowSizeChanger",value:function(){var A=this.props,g=A.showSizeChanger,T=A.total,m=A.totalBoundaryShowSizeChanger;return typeof g!="undefined"?g:T>m}},{key:"renderPrev",value:function(A){var g=this.props,T=g.prevIcon,m=g.itemRender,y=m(A,"prev",this.getItemIcon(T,"prev page")),U=!this.hasPrev();return Object(x.isValidElement)(y)?Object(x.cloneElement)(y,{disabled:U}):y}},{key:"renderNext",value:function(A){var g=this.props,T=g.nextIcon,m=g.itemRender,y=m(A,"next",this.getItemIcon(T,"next page")),U=!this.hasNext();return Object(x.isValidElement)(y)?Object(x.cloneElement)(y,{disabled:U}):y}},{key:"render",value:function(){var A=this,g=this.props,T=g.prefixCls,m=g.className,y=g.style,U=g.disabled,N=g.hideOnSinglePage,S=g.total,H=g.locale,F=g.showQuickJumper,R=g.showLessItems,z=g.showTitle,Q=g.showTotal,$=g.simple,ee=g.itemRender,fe=g.showPrevNextJumpers,Ae=g.jumpPrevIcon,ce=g.jumpNextIcon,ie=g.selectComponentClass,be=g.selectPrefixCls,se=g.pageSizeOptions,me=this.state,le=me.current,ge=me.pageSize,ae=me.currentInputValue;if(N===!0&&S<=ge)return null;var pe=E(void 0,this.state,this.props),Me=[],xe=null,Ke=null,tt=null,he=null,Se=null,Ue=F&&F.goButton,Ne=R?1:2,ct=le-1>0?le-1:0,mt=le+1<pe?le+1:pe,Rt=Object.keys(this.props).reduce(function(we,Le){return(Le.substr(0,5)==="data-"||Le.substr(0,5)==="aria-"||Le==="role")&&(we[Le]=A.props[Le]),we},{});if($)return Ue&&(typeof Ue=="boolean"?Se=n.a.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},H.jump_to_confirm):Se=n.a.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Ue),Se=n.a.createElement("li",{title:z?"".concat(H.jump_to).concat(le,"/").concat(pe):null,className:"".concat(T,"-simple-pager")},Se)),n.a.createElement("ul",Object(Z.a)({className:a()(T,"".concat(T,"-simple"),Object(K.a)({},"".concat(T,"-disabled"),U),m),style:y,ref:this.savePaginationNode},Rt),n.a.createElement("li",{title:z?H.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:a()("".concat(T,"-prev"),Object(K.a)({},"".concat(T,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(ct)),n.a.createElement("li",{title:z?"".concat(le,"/").concat(pe):null,className:"".concat(T,"-simple-pager")},n.a.createElement("input",{type:"text",value:ae,disabled:U,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,size:"3"}),n.a.createElement("span",{className:"".concat(T,"-slash")},"/"),pe),n.a.createElement("li",{title:z?H.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:a()("".concat(T,"-next"),Object(K.a)({},"".concat(T,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(mt)),Se);if(pe<=3+Ne*2){var ht={locale:H,rootPrefixCls:T,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:z,itemRender:ee};pe||Me.push(n.a.createElement(h,Object(Z.a)({},ht,{key:"noPager",page:pe,className:"".concat(T,"-disabled")})));for(var Ut=1;Ut<=pe;Ut+=1){var zt=le===Ut;Me.push(n.a.createElement(h,Object(Z.a)({},ht,{key:Ut,page:Ut,active:zt})))}}else{var ze=R?H.prev_3:H.prev_5,Ve=R?H.next_3:H.next_5;fe&&(xe=n.a.createElement("li",{title:z?ze:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:a()("".concat(T,"-jump-prev"),Object(K.a)({},"".concat(T,"-jump-prev-custom-icon"),!!Ae))},ee(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Ae,"prev page"))),Ke=n.a.createElement("li",{title:z?Ve:null,key:"next",tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:a()("".concat(T,"-jump-next"),Object(K.a)({},"".concat(T,"-jump-next-custom-icon"),!!ce))},ee(this.getJumpNextPage(),"jump-next",this.getItemIcon(ce,"next page")))),he=n.a.createElement(h,{locale:H,last:!0,rootPrefixCls:T,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:pe,page:pe,active:!1,showTitle:z,itemRender:ee}),tt=n.a.createElement(h,{locale:H,rootPrefixCls:T,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:z,itemRender:ee});var Et=Math.max(1,le-Ne),Ot=Math.min(le+Ne,pe);le-1<=Ne&&(Ot=1+Ne*2),pe-le<=Ne&&(Et=pe-Ne*2);for(var ut=Et;ut<=Ot;ut+=1){var vt=le===ut;Me.push(n.a.createElement(h,{locale:H,rootPrefixCls:T,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:ut,page:ut,active:vt,showTitle:z,itemRender:ee}))}le-1>=Ne*2&&le!==1+2&&(Me[0]=Object(x.cloneElement)(Me[0],{className:"".concat(T,"-item-after-jump-prev")}),Me.unshift(xe)),pe-le>=Ne*2&&le!==pe-2&&(Me[Me.length-1]=Object(x.cloneElement)(Me[Me.length-1],{className:"".concat(T,"-item-before-jump-next")}),Me.push(Ke)),Et!==1&&Me.unshift(tt),Ot!==pe&&Me.push(he)}var Ze=null;Q&&(Ze=n.a.createElement("li",{className:"".concat(T,"-total-text")},Q(S,[S===0?0:(le-1)*ge+1,le*ge>S?S:le*ge])));var ke=!this.hasPrev()||!pe,He=!this.hasNext()||!pe;return n.a.createElement("ul",Object(Z.a)({className:a()(T,m,Object(K.a)({},"".concat(T,"-disabled"),U)),style:y,unselectable:"unselectable",ref:this.savePaginationNode},Rt),Ze,n.a.createElement("li",{title:z?H.prev_page:null,onClick:this.prev,tabIndex:ke?null:0,onKeyPress:this.runIfEnterPrev,className:a()("".concat(T,"-prev"),Object(K.a)({},"".concat(T,"-disabled"),ke)),"aria-disabled":ke},this.renderPrev(ct)),Me,n.a.createElement("li",{title:z?H.next_page:null,onClick:this.next,tabIndex:He?null:0,onKeyPress:this.runIfEnterNext,className:a()("".concat(T,"-next"),Object(K.a)({},"".concat(T,"-disabled"),He)),"aria-disabled":He},this.renderNext(mt)),n.a.createElement(u,{disabled:U,locale:H,rootPrefixCls:T,selectComponentClass:ie,selectPrefixCls:be,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:le,pageSize:ge,pageSizeOptions:se,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Ue}))}}],[{key:"getDerivedStateFromProps",value:function(A,g){var T={};if("current"in A&&(T.current=A.current,A.current!==g.current&&(T.currentInputValue=T.current)),"pageSize"in A&&A.pageSize!==g.pageSize){var m=g.current,y=E(A.pageSize,g,A);m=m>y?y:m,"current"in A||(T.current=m,T.currentInputValue=m),T.pageSize=A.pageSize}return T}}]),b}(n.a.Component);B.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:f,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:f,locale:d.a,style:{},itemRender:c,totalBoundaryShowSizeChanger:50};var w=B},"6GrX":function(Re,te,v){var Z=v("mFDi"),K=v("Xnb7"),I=v("bYtY"),k=I.getContext,_=I.extend,O=I.retrieve2,M=I.retrieve3,x=I.trim,n={},p=0,a=5e3,t=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,h="12px sans-serif",s={};function i(N,S){s[N]=S}function u(N,S){S=S||h;var H=N+":"+S;if(n[H])return n[H];for(var F=(N+"").split(`
|
|
`),R=0,z=0,Q=F.length;z<Q;z++)R=Math.max(g(F[z],S).width,R);return p>a&&(p=0,n={}),p++,n[H]=R,R}function d(N,S,H,F,R,z,Q,$){return Q?o(N,S,H,F,R,z,Q,$):f(N,S,H,F,R,z,$)}function f(N,S,H,F,R,z,Q){var $=T(N,S,R,z,Q),ee=u(N,S);R&&(ee+=R[1]+R[3]);var fe=$.outerHeight,Ae=c(0,ee,H),ce=E(0,fe,F),ie=new Z(Ae,ce,ee,fe);return ie.lineHeight=$.lineHeight,ie}function o(N,S,H,F,R,z,Q,$){var ee=m(N,{rich:Q,truncate:$,font:S,textAlign:H,textPadding:R,textLineHeight:z}),fe=ee.outerWidth,Ae=ee.outerHeight,ce=c(0,fe,H),ie=E(0,Ae,F);return new Z(ce,ie,fe,Ae)}function c(N,S,H){return H==="right"?N-=S:H==="center"&&(N-=S/2),N}function E(N,S,H){return H==="middle"?N-=S/2:H==="bottom"&&(N-=S),N}function B(N,S,H){var F=S.textPosition,R=S.textDistance,z=H.x,Q=H.y;R=R||0;var $=H.height,ee=H.width,fe=$/2,Ae="left",ce="top";switch(F){case"left":z-=R,Q+=fe,Ae="right",ce="middle";break;case"right":z+=R+ee,Q+=fe,ce="middle";break;case"top":z+=ee/2,Q-=R,Ae="center",ce="bottom";break;case"bottom":z+=ee/2,Q+=$+R,Ae="center";break;case"inside":z+=ee/2,Q+=fe,Ae="center",ce="middle";break;case"insideLeft":z+=R,Q+=fe,ce="middle";break;case"insideRight":z+=ee-R,Q+=fe,Ae="right",ce="middle";break;case"insideTop":z+=ee/2,Q+=R,Ae="center";break;case"insideBottom":z+=ee/2,Q+=$-R,Ae="center",ce="bottom";break;case"insideTopLeft":z+=R,Q+=R;break;case"insideTopRight":z+=ee-R,Q+=R,Ae="right";break;case"insideBottomLeft":z+=R,Q+=$-R,ce="bottom";break;case"insideBottomRight":z+=ee-R,Q+=$-R,Ae="right",ce="bottom";break}return N=N||{},N.x=z,N.y=Q,N.textAlign=Ae,N.textVerticalAlign=ce,N}function w(N,S,H){var F={textPosition:N,textDistance:H};return B({},F,S)}function P(N,S,H,F,R){if(!S)return"";var z=(N+"").split(`
|
|
`);R=C(S,H,F,R);for(var Q=0,$=z.length;Q<$;Q++)z[Q]=b(z[Q],R);return z.join(`
|
|
`)}function C(N,S,H,F){F=_({},F),F.font=S;var H=O(H,"...");F.maxIterations=O(F.maxIterations,2);var R=F.minChar=O(F.minChar,0);F.cnCharWidth=u("\u56FD",S);var z=F.ascCharWidth=u("a",S);F.placeholder=O(F.placeholder,"");for(var Q=N=Math.max(0,N-1),$=0;$<R&&Q>=z;$++)Q-=z;var ee=u(H,S);return ee>Q&&(H="",ee=0),Q=N-ee,F.ellipsis=H,F.ellipsisWidth=ee,F.contentWidth=Q,F.containerWidth=N,F}function b(N,S){var H=S.containerWidth,F=S.font,R=S.contentWidth;if(!H)return"";var z=u(N,F);if(z<=H)return N;for(var Q=0;;Q++){if(z<=R||Q>=S.maxIterations){N+=S.ellipsis;break}var $=Q===0?l(N,R,S.ascCharWidth,S.cnCharWidth):z>0?Math.floor(N.length*R/z):0;N=N.substr(0,$),z=u(N,F)}return N===""&&(N=S.placeholder),N}function l(N,S,H,F){for(var R=0,z=0,Q=N.length;z<Q&&R<S;z++){var $=N.charCodeAt(z);R+=0<=$&&$<=127?H:F}return z}function A(N){return u("\u56FD",N)}function g(N,S){return s.measureText(N,S)}s.measureText=function(N,S){var H=k();return H.font=S||h,H.measureText(N)};function T(N,S,H,F,R){N!=null&&(N+="");var z=O(F,A(S)),Q=N?N.split(`
|
|
`):[],$=Q.length*z,ee=$,fe=!0;if(H&&(ee+=H[0]+H[2]),N&&R){fe=!1;var Ae=R.outerHeight,ce=R.outerWidth;if(Ae!=null&&ee>Ae)N="",Q=[];else if(ce!=null)for(var ie=C(ce-(H?H[1]+H[3]:0),S,R.ellipsis,{minChar:R.minChar,placeholder:R.placeholder}),be=0,se=Q.length;be<se;be++)Q[be]=b(Q[be],ie)}return{lines:Q,height:$,outerHeight:ee,lineHeight:z,canCacheByTextString:fe}}function m(N,S){var H={lines:[],width:0,height:0};if(N!=null&&(N+=""),!N)return H;for(var F=t.lastIndex=0,R;(R=t.exec(N))!=null;){var z=R.index;z>F&&y(H,N.substring(F,z)),y(H,R[2],R[1]),F=t.lastIndex}F<N.length&&y(H,N.substring(F,N.length));var Q=H.lines,$=0,ee=0,fe=[],Ae=S.textPadding,ce=S.truncate,ie=ce&&ce.outerWidth,be=ce&&ce.outerHeight;Ae&&(ie!=null&&(ie-=Ae[1]+Ae[3]),be!=null&&(be-=Ae[0]+Ae[2]));for(var se=0;se<Q.length;se++){for(var me=Q[se],le=0,ge=0,ae=0;ae<me.tokens.length;ae++){var pe=me.tokens[ae],Me=pe.styleName&&S.rich[pe.styleName]||{},xe=pe.textPadding=Me.textPadding,Ke=pe.font=Me.font||S.font,tt=pe.textHeight=O(Me.textHeight,A(Ke));if(xe&&(tt+=xe[0]+xe[2]),pe.height=tt,pe.lineHeight=M(Me.textLineHeight,S.textLineHeight,tt),pe.textAlign=Me&&Me.textAlign||S.textAlign,pe.textVerticalAlign=Me&&Me.textVerticalAlign||"middle",be!=null&&$+pe.lineHeight>be)return{lines:[],width:0,height:0};pe.textWidth=u(pe.text,Ke);var he=Me.textWidth,Se=he==null||he==="auto";if(typeof he=="string"&&he.charAt(he.length-1)==="%")pe.percentWidth=he,fe.push(pe),he=0;else{if(Se){he=pe.textWidth;var Ue=Me.textBackgroundColor,Ne=Ue&&Ue.image;Ne&&(Ne=K.findExistImage(Ne),K.isImageReady(Ne)&&(he=Math.max(he,Ne.width*tt/Ne.height)))}var ct=xe?xe[1]+xe[3]:0;he+=ct;var mt=ie!=null?ie-ge:null;mt!=null&&mt<he&&(!Se||mt<ct?(pe.text="",pe.textWidth=he=0):(pe.text=P(pe.text,mt-ct,Ke,ce.ellipsis,{minChar:ce.minChar}),pe.textWidth=u(pe.text,Ke),he=pe.textWidth+ct))}ge+=pe.width=he,Me&&(le=Math.max(le,pe.lineHeight))}me.width=ge,me.lineHeight=le,$+=le,ee=Math.max(ee,ge)}H.outerWidth=H.width=O(S.textWidth,ee),H.outerHeight=H.height=O(S.textHeight,$),Ae&&(H.outerWidth+=Ae[1]+Ae[3],H.outerHeight+=Ae[0]+Ae[2]);for(var se=0;se<fe.length;se++){var pe=fe[se],Rt=pe.percentWidth;pe.width=parseInt(Rt,10)/100*ee}return H}function y(N,S,H){for(var F=S==="",R=S.split(`
|
|
`),z=N.lines,Q=0;Q<R.length;Q++){var $=R[Q],ee={styleName:H,text:$,isLineHolder:!$&&!F};if(Q)z.push({tokens:[ee]});else{var fe=(z[z.length-1]||(z[0]={tokens:[]})).tokens,Ae=fe.length;Ae===1&&fe[0].isLineHolder?fe[0]=ee:($||!Ae||F)&&fe.push(ee)}}}function U(N){var S=(N.fontSize||N.fontFamily)&&[N.fontStyle,N.fontWeight,(N.fontSize||12)+"px",N.fontFamily||"sans-serif"].join(" ");return S&&x(S)||N.textFont||N.font}te.DEFAULT_FONT=h,te.$override=i,te.getWidth=u,te.getBoundingRect=d,te.adjustTextX=c,te.adjustTextY=E,te.calculateTextPosition=B,te.adjustTextPositionOnRect=w,te.truncateText=P,te.getLineHeight=A,te.measureText=g,te.parsePlainText=T,te.parseRichText=m,te.makeFont=U},"6RRn":function(Re,te,v){"use strict";var Z=v("wCXF"),K=v("n6Qo");v.d(te,"b",function(){return K.a});var I=v("IBYe"),k=v("6eGT"),_=v("hW8S");v.d(te,"a",function(){return _.a}),te.c=Z.b},"6UM0":function(Re,te,v){var Z,K;(function(){var I;(function(){"use strict";var _=[function(n,p,a){var t=a(1).Beautifier,h=a(5).Options;function s(i,u){var d=new t(i,u);return d.beautify()}n.exports=s,n.exports.defaultOptions=function(){return new h}},function(n,p,a){var t=a(2).Output,h=a(3).Token,s=a(4),i=a(5).Options,u=a(7).Tokenizer,d=a(7).line_starters,f=a(7).positionable_operators,o=a(7).TOKEN;function c(R,z){return z.indexOf(R)!==-1}function E(R){return R.replace(/^\s+/g,"")}function B(R){for(var z={},Q=0;Q<R.length;Q++)z[R[Q].replace(/-/g,"_")]=R[Q];return z}function w(R,z){return R&&R.type===o.RESERVED&&R.text===z}function P(R,z){return R&&R.type===o.RESERVED&&c(R.text,z)}var C=["case","return","do","if","throw","else","await","break","continue","async"],b=["before-newline","after-newline","preserve-newline"],l=B(b),A=[l.before_newline,l.preserve_newline],g={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function T(R,z){if(z.multiline_frame||z.mode===g.ForInitializer||z.mode===g.Conditional)return;R.remove_indent(z.start_line_index)}function m(R){R=R.replace(s.allLineBreaks,`
|
|
`);for(var z=[],Q=R.indexOf(`
|
|
`);Q!==-1;)z.push(R.substring(0,Q)),R=R.substring(Q+1),Q=R.indexOf(`
|
|
`);return R.length&&z.push(R),z}function y(R){return R===g.ArrayLiteral}function U(R){return c(R,[g.Expression,g.ForInitializer,g.Conditional])}function N(R,z){for(var Q=0;Q<R.length;Q++){var $=R[Q].trim();if($.charAt(0)!==z)return!1}return!0}function S(R,z){for(var Q=0,$=R.length,ee;Q<$;Q++)if(ee=R[Q],ee&&ee.indexOf(z)!==0)return!1;return!0}function H(R,z){z=z||{},this._source_text=R||"",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 i(z)}H.prototype.create_flags=function(R,z){var Q=0;R&&(Q=R.indentation_level,!this._output.just_added_newline()&&R.line_indent_level>Q&&(Q=R.line_indent_level));var $={mode:z,parent:R,last_token:R?R.last_token:new h(o.START_BLOCK,""),last_word:R?R.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:Q,alignment:0,line_indent_level:R?R.line_indent_level:Q,start_line_index:this._output.get_line_number(),ternary_depth:0};return $},H.prototype._reset=function(R){var z=R.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new t(this._options,z),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(g.BlockStatement);var Q=new u(R,this._options);return this._tokens=Q.tokenize(),R},H.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var R,z=this._reset(this._source_text),Q=this._options.eol;this._options.eol==="auto"&&(Q=`
|
|
`,z&&s.lineBreak.test(z||"")&&(Q=z.match(s.lineBreak)[0]));for(var $=this._tokens.next();$;)this.handle_token($),this._last_last_text=this._flags.last_token.text,this._flags.last_token=$,$=this._tokens.next();return R=this._output.get_code(Q),R},H.prototype.handle_token=function(R,z){R.type===o.START_EXPR?this.handle_start_expr(R):R.type===o.END_EXPR?this.handle_end_expr(R):R.type===o.START_BLOCK?this.handle_start_block(R):R.type===o.END_BLOCK?this.handle_end_block(R):R.type===o.WORD?this.handle_word(R):R.type===o.RESERVED?this.handle_word(R):R.type===o.SEMICOLON?this.handle_semicolon(R):R.type===o.STRING?this.handle_string(R):R.type===o.EQUALS?this.handle_equals(R):R.type===o.OPERATOR?this.handle_operator(R):R.type===o.COMMA?this.handle_comma(R):R.type===o.BLOCK_COMMENT?this.handle_block_comment(R,z):R.type===o.COMMENT?this.handle_comment(R,z):R.type===o.DOT?this.handle_dot(R):R.type===o.EOF?this.handle_eof(R):R.type===o.UNKNOWN?this.handle_unknown(R,z):this.handle_unknown(R,z)},H.prototype.handle_whitespace_and_comments=function(R,z){var Q=R.newlines,$=this._options.keep_array_indentation&&y(this._flags.mode);if(R.comments_before)for(var ee=R.comments_before.next();ee;)this.handle_whitespace_and_comments(ee,z),this.handle_token(ee,z),ee=R.comments_before.next();if($)for(var fe=0;fe<Q;fe+=1)this.print_newline(fe>0,z);else if(this._options.max_preserve_newlines&&Q>this._options.max_preserve_newlines&&(Q=this._options.max_preserve_newlines),this._options.preserve_newlines&&Q>1){this.print_newline(!1,z);for(var Ae=1;Ae<Q;Ae+=1)this.print_newline(!0,z)}};var F=["async","break","continue","return","throw","yield"];H.prototype.allow_wrap_or_preserved_newline=function(R,z){if(z=z===void 0?!1:z,this._output.just_added_newline())return;var Q=this._options.preserve_newlines&&R.newlines||z,$=c(this._flags.last_token.text,f)||c(R.text,f);if($){var ee=c(this._flags.last_token.text,f)&&c(this._options.operator_position,A)||c(R.text,f);Q=Q&&ee}if(Q)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(P(this._flags.last_token,F))return;this._output.set_wrap_point()}},H.prototype.print_newline=function(R,z){if(!z&&(this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==o.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")))for(var Q=this._tokens.peek();this._flags.mode===g.Statement&&!(this._flags.if_block&&w(Q,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(R)&&(this._flags.multiline_frame=!0)},H.prototype.print_token_line_indentation=function(R){this._output.just_added_newline()&&(this._options.keep_array_indentation&&R.newlines&&(R.text==="["||y(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(R.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))},H.prototype.print_token=function(R){if(this._output.raw){this._output.add_raw_token(R);return}if(this._options.comma_first&&R.previous&&R.previous.type===o.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var z=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(z),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(R),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(R),this._output.non_breaking_space=!0,this._output.add_token(R.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},H.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},H.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))},H.prototype.set_mode=function(R){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,R),this._flags=this.create_flags(this._previous_flags,R),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},H.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===g.Statement&&T(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},H.prototype.start_of_object_property=function(){return this._flags.parent.mode===g.ObjectLiteral&&this._flags.mode===g.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||P(this._flags.last_token,["get","set"]))},H.prototype.start_of_statement=function(R){var z=!1;return z=z||P(this._flags.last_token,["var","let","const"])&&R.type===o.WORD,z=z||w(this._flags.last_token,"do"),z=z||!(this._flags.parent.mode===g.ObjectLiteral&&this._flags.mode===g.Statement)&&P(this._flags.last_token,F)&&!R.newlines,z=z||w(this._flags.last_token,"else")&&!(w(R,"if")&&!R.comments_before),z=z||this._flags.last_token.type===o.END_EXPR&&(this._previous_flags.mode===g.ForInitializer||this._previous_flags.mode===g.Conditional),z=z||this._flags.last_token.type===o.WORD&&this._flags.mode===g.BlockStatement&&!this._flags.in_case&&!(R.text==="--"||R.text==="++")&&this._last_last_text!=="function"&&R.type!==o.WORD&&R.type!==o.RESERVED,z=z||this._flags.mode===g.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||P(this._flags.last_token,["get","set"])),z?(this.set_mode(g.Statement),this.indent(),this.handle_whitespace_and_comments(R,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(R,P(R,["do","for","if","while"])),!0):!1},H.prototype.handle_start_expr=function(R){this.start_of_statement(R)||this.handle_whitespace_and_comments(R);var z=g.Expression;if(R.text==="["){if(this._flags.last_token.type===o.WORD||this._flags.last_token.text===")"){P(this._flags.last_token,d)&&(this._output.space_before_token=!0),this.print_token(R),this.set_mode(z),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}z=g.ArrayLiteral,y(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())),c(this._flags.last_token.type,[o.START_EXPR,o.END_EXPR,o.WORD,o.OPERATOR,o.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===o.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,z=g.ForInitializer):c(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,z=g.Conditional):c(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&R.whitespace_before===""?this._output.space_before_token=!1:(c(this._flags.last_token.text,d)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===o.EQUALS||this._flags.last_token.type===o.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(R);else if(this._flags.last_token.type===o.WORD){this._output.space_before_token=!1;var Q=this._tokens.peek(-3);if(this._options.space_after_named_function&&Q){var $=this._tokens.peek(-4);P(Q,["async","function"])||Q.text==="*"&&P($,["async","function"])?this._output.space_before_token=!0:this._flags.mode===g.ObjectLiteral?(Q.text==="{"||Q.text===","||Q.text==="*"&&($.text==="{"||$.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(R);(this._flags.last_token.type===o.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(c(this._last_last_text,["function","yield"])||this._flags.mode===g.ObjectLiteral&&c(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===o.START_BLOCK?this.print_newline():(this._flags.last_token.type===o.END_EXPR||this._flags.last_token.type===o.START_EXPR||this._flags.last_token.type===o.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===o.COMMA)&&this.allow_wrap_or_preserved_newline(R,R.newlines),this.print_token(R),this.set_mode(z),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},H.prototype.handle_end_expr=function(R){for(;this._flags.mode===g.Statement;)this.restore_mode();this.handle_whitespace_and_comments(R),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(R,R.text==="]"&&y(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===o.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(R),this.restore_mode(),T(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===g.Conditional&&(this._previous_flags.mode=g.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},H.prototype.handle_start_block=function(R){this.handle_whitespace_and_comments(R);var z=this._tokens.peek(),Q=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===o.END_EXPR?(this.set_mode(g.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(g.BlockStatement):Q&&(c(Q.text,[":",","])&&c(z.type,[o.STRING,o.WORD,o.RESERVED])||c(z.text,["get","set","..."])&&c(Q.type,[o.WORD,o.RESERVED]))?c(this._last_last_text,["class","interface"])&&!c(Q.text,[":",","])?this.set_mode(g.BlockStatement):this.set_mode(g.ObjectLiteral):this._flags.last_token.type===o.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(g.BlockStatement):c(this._flags.last_token.type,[o.EQUALS,o.START_EXPR,o.COMMA,o.OPERATOR])||P(this._flags.last_token,["return","throw","import","default"])?this.set_mode(g.ObjectLiteral):this.set_mode(g.BlockStatement),this._flags.last_token&&(P(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0));var $=!z.comments_before&&z.text==="}",ee=$&&this._flags.last_word==="function"&&this._flags.last_token.type===o.END_EXPR;if(this._options.brace_preserve_inline){var fe=0,Ae=null;this._flags.inline_frame=!0;do if(fe+=1,Ae=this._tokens.peek(fe-1),Ae.newlines){this._flags.inline_frame=!1;break}while(Ae.type!==o.EOF&&!(Ae.type===o.END_BLOCK&&Ae.opened===R))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&R.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==o.OPERATOR&&(ee||this._flags.last_token.type===o.EQUALS||P(this._flags.last_token,C)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(y(this._previous_flags.mode)&&(this._flags.last_token.type===o.START_EXPR||this._flags.last_token.type===o.COMMA)&&((this._flags.last_token.type===o.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===o.COMMA||this._flags.last_token.type===o.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(R),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==o.OPERATOR&&this._flags.last_token.type!==o.START_EXPR&&(this._flags.last_token.type===o.START_BLOCK&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(R),this.indent(),!$&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},H.prototype.handle_end_block=function(R){for(this.handle_whitespace_and_comments(R);this._flags.mode===g.Statement;)this.restore_mode();var z=this._flags.last_token.type===o.START_BLOCK;this._flags.inline_frame&&!z?this._output.space_before_token=!0:this._options.brace_style==="expand"?z||this.print_newline():z||(y(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(R)},H.prototype.handle_word=function(R){if(R.type===o.RESERVED){if(c(R.text,["set","get"])&&this._flags.mode!==g.ObjectLiteral)R.type=o.WORD;else if(R.text==="import"&&c(this._tokens.peek().text,["(","."]))R.type=o.WORD;else if(c(R.text,["as","from"])&&!this._flags.import_block)R.type=o.WORD;else if(this._flags.mode===g.ObjectLiteral){var z=this._tokens.peek();z.text===":"&&(R.type=o.WORD)}}if(this.start_of_statement(R)?P(this._flags.last_token,["var","let","const"])&&R.type===o.WORD&&(this._flags.declaration_statement=!0):R.newlines&&!U(this._flags.mode)&&(this._flags.last_token.type!==o.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==o.EQUALS&&(this._options.preserve_newlines||!P(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(R),this.print_newline()):this.handle_whitespace_and_comments(R),this._flags.do_block&&!this._flags.do_while)if(w(R,"while")){this._output.space_before_token=!0,this.print_token(R),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&&w(R,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===g.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&P(R,["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(R),this._flags.in_case=!0;return}if((this._flags.last_token.type===o.COMMA||this._flags.last_token.type===o.START_EXPR||this._flags.last_token.type===o.EQUALS||this._flags.last_token.type===o.OPERATOR)&&(this.start_of_object_property()||this.allow_wrap_or_preserved_newline(R)),w(R,"function")){(c(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(c(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===o.OPERATOR))&&(!this._output.just_added_blankline()&&!R.comments_before&&(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===o.RESERVED||this._flags.last_token.type===o.WORD?P(this._flags.last_token,["get","set","new","export"])||P(this._flags.last_token,F)?this._output.space_before_token=!0:w(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===o.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(U(this._flags.mode)||y(this._flags.mode))||this.print_newline(),this.print_token(R),this._flags.last_word=R.text;return}var Q="NONE";if(this._flags.last_token.type===o.END_BLOCK?this._previous_flags.inline_frame?Q="SPACE":P(R,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&R.newlines?Q="NEWLINE":(Q="SPACE",this._output.space_before_token=!0):Q="NEWLINE":this._flags.last_token.type===o.SEMICOLON&&this._flags.mode===g.BlockStatement?Q="NEWLINE":this._flags.last_token.type===o.SEMICOLON&&U(this._flags.mode)?Q="SPACE":this._flags.last_token.type===o.STRING?Q="NEWLINE":this._flags.last_token.type===o.RESERVED||this._flags.last_token.type===o.WORD||this._flags.last_token.text==="*"&&(c(this._last_last_text,["function","yield"])||this._flags.mode===g.ObjectLiteral&&c(this._last_last_text,["{",","]))?Q="SPACE":this._flags.last_token.type===o.START_BLOCK?this._flags.inline_frame?Q="SPACE":Q="NEWLINE":this._flags.last_token.type===o.END_EXPR&&(this._output.space_before_token=!0,Q="NEWLINE"),P(R,d)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?Q="SPACE":Q="NEWLINE"),P(R,["else","catch","finally"]))if((!(this._flags.last_token.type===o.END_BLOCK&&this._previous_flags.mode===g.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&R.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var $=this._output.current_line;$.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else Q==="NEWLINE"?P(this._flags.last_token,C)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&P(R,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==o.END_EXPR?(this._flags.last_token.type!==o.START_EXPR||!P(R,["var","let","const"]))&&this._flags.last_token.text!==":"&&(w(R,"if")&&w(R.previous,"else")?this._output.space_before_token=!0:this.print_newline()):P(R,d)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&y(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():Q==="SPACE"&&(this._output.space_before_token=!0);R.previous&&(R.previous.type===o.WORD||R.previous.type===o.RESERVED)&&(this._output.space_before_token=!0),this.print_token(R),this._flags.last_word=R.text,R.type===o.RESERVED&&(R.text==="do"?this._flags.do_block=!0:R.text==="if"?this._flags.if_block=!0:R.text==="import"?this._flags.import_block=!0:this._flags.import_block&&w(R,"from")&&(this._flags.import_block=!1))},H.prototype.handle_semicolon=function(R){this.start_of_statement(R)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(R);for(var z=this._tokens.peek();this._flags.mode===g.Statement&&!(this._flags.if_block&&w(z,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(R)},H.prototype.handle_string=function(R){R.text.startsWith("`")&&R.newlines===0&&R.whitespace_before===""&&(R.previous.text===")"||this._flags.last_token.type===o.WORD)||(this.start_of_statement(R)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(R),this._flags.last_token.type===o.RESERVED||this._flags.last_token.type===o.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===o.COMMA||this._flags.last_token.type===o.START_EXPR||this._flags.last_token.type===o.EQUALS||this._flags.last_token.type===o.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(R):R.text.startsWith("`")&&this._flags.last_token.type===o.END_EXPR&&(R.previous.text==="]"||R.previous.text===")")&&R.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(R)},H.prototype.handle_equals=function(R){this.start_of_statement(R)||this.handle_whitespace_and_comments(R),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(R),this._output.space_before_token=!0},H.prototype.handle_comma=function(R){this.handle_whitespace_and_comments(R,!0),this.print_token(R),this._output.space_before_token=!0,this._flags.declaration_statement?(U(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(R)):this._flags.mode===g.ObjectLiteral||this._flags.mode===g.Statement&&this._flags.parent.mode===g.ObjectLiteral?(this._flags.mode===g.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(R)},H.prototype.handle_operator=function(R){var z=R.text==="*"&&(P(this._flags.last_token,["function","yield"])||c(this._flags.last_token.type,[o.START_BLOCK,o.COMMA,o.END_BLOCK,o.SEMICOLON])),Q=c(R.text,["-","+"])&&(c(this._flags.last_token.type,[o.START_BLOCK,o.START_EXPR,o.EQUALS,o.OPERATOR])||c(this._flags.last_token.text,d)||this._flags.last_token.text===",");if(!this.start_of_statement(R)){var $=!z;this.handle_whitespace_and_comments(R,$)}if(R.text==="*"&&this._flags.last_token.type===o.DOT){this.print_token(R);return}if(R.text==="::"){this.print_token(R);return}if(this._flags.last_token.type===o.OPERATOR&&c(this._options.operator_position,A)&&this.allow_wrap_or_preserved_newline(R),R.text===":"&&this._flags.in_case){this.print_token(R),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==o.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 ee=!0,fe=!0,Ae=!1;if(R.text===":"?this._flags.ternary_depth===0?ee=!1:(this._flags.ternary_depth-=1,Ae=!0):R.text==="?"&&(this._flags.ternary_depth+=1),!Q&&!z&&this._options.preserve_newlines&&c(R.text,f)){var ce=R.text===":",ie=ce&&Ae,be=ce&&!Ae;switch(this._options.operator_position){case l.before_newline:this._output.space_before_token=!be,this.print_token(R),(!ce||ie)&&this.allow_wrap_or_preserved_newline(R),this._output.space_before_token=!0;return;case l.after_newline:this._output.space_before_token=!0,!ce||ie?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(R):this._output.space_before_token=!1,this.print_token(R),this._output.space_before_token=!0;return;case l.preserve_newline:be||this.allow_wrap_or_preserved_newline(R),ee=!(this._output.just_added_newline()||be),this._output.space_before_token=ee,this.print_token(R),this._output.space_before_token=!0;return}}if(z){this.allow_wrap_or_preserved_newline(R),ee=!1;var se=this._tokens.peek();fe=se&&c(se.type,[o.WORD,o.RESERVED])}else if(R.text==="...")this.allow_wrap_or_preserved_newline(R),ee=this._flags.last_token.type===o.START_BLOCK,fe=!1;else if(c(R.text,["--","++","!","~"])||Q){if((this._flags.last_token.type===o.COMMA||this._flags.last_token.type===o.START_EXPR)&&this.allow_wrap_or_preserved_newline(R),ee=!1,fe=!1,R.newlines&&(R.text==="--"||R.text==="++"||R.text==="~")){var me=P(this._flags.last_token,C)&&R.newlines;me&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(me,!0)}this._flags.last_token.text===";"&&U(this._flags.mode)&&(ee=!0),this._flags.last_token.type===o.RESERVED?ee=!0:this._flags.last_token.type===o.END_EXPR?ee=!(this._flags.last_token.text==="]"&&(R.text==="--"||R.text==="++")):this._flags.last_token.type===o.OPERATOR&&(ee=c(R.text,["--","-","++","+"])&&c(this._flags.last_token.text,["--","-","++","+"]),c(R.text,["+","-"])&&c(this._flags.last_token.text,["--","++"])&&(fe=!0)),(this._flags.mode===g.BlockStatement&&!this._flags.inline_frame||this._flags.mode===g.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||ee,this.print_token(R),this._output.space_before_token=fe},H.prototype.handle_block_comment=function(R,z){if(this._output.raw){this._output.add_raw_token(R),R.directives&&R.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(R.directives){this.print_newline(!1,z),this.print_token(R),R.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!s.newline.test(R.text)&&!R.newlines){this._output.space_before_token=!0,this.print_token(R),this._output.space_before_token=!0;return}else this.print_block_commment(R,z)},H.prototype.print_block_commment=function(R,z){var Q=m(R.text),$,ee=!1,fe=!1,Ae=R.whitespace_before,ce=Ae.length;if(this.print_newline(!1,z),this.print_token_line_indentation(R),this._output.add_token(Q[0]),this.print_newline(!1,z),Q.length>1){for(Q=Q.slice(1),ee=N(Q,"*"),fe=S(Q,Ae),ee&&(this._flags.alignment=1),$=0;$<Q.length;$++)ee?(this.print_token_line_indentation(R),this._output.add_token(E(Q[$]))):fe&&Q[$]?(this.print_token_line_indentation(R),this._output.add_token(Q[$].substring(ce))):(this._output.current_line.set_indent(-1),this._output.add_token(Q[$])),this.print_newline(!1,z);this._flags.alignment=0}},H.prototype.handle_comment=function(R,z){R.newlines?this.print_newline(!1,z):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(R),this.print_newline(!1,z)},H.prototype.handle_dot=function(R){this.start_of_statement(R)||this.handle_whitespace_and_comments(R,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),P(this._flags.last_token,C)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(R,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(R)},H.prototype.handle_unknown=function(R,z){this.print_token(R),R.text[R.text.length-1]===`
|
|
`&&this.print_newline(!1,z)},H.prototype.handle_eof=function(R){for(;this._flags.mode===g.Statement;)this.restore_mode();this.handle_whitespace_and_comments(R)},n.exports.Beautifier=H},function(n){function p(h){this.__parent=h,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}p.prototype.clone_empty=function(){var h=new p(this.__parent);return h.set_indent(this.__indent_count,this.__alignment_count),h},p.prototype.item=function(h){return h<0?this.__items[this.__items.length+h]:this.__items[h]},p.prototype.has_match=function(h){for(var s=this.__items.length-1;s>=0;s--)if(this.__items[s].match(h))return!0;return!1},p.prototype.set_indent=function(h,s){this.is_empty()&&(this.__indent_count=h||0,this.__alignment_count=s||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},p.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},p.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},p.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var h=this.__parent.current_line;return h.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),h.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),h.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,h.__items[0]===" "&&(h.__items.splice(0,1),h.__character_count-=1),!0}return!1},p.prototype.is_empty=function(){return this.__items.length===0},p.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},p.prototype.push=function(h){this.__items.push(h);var s=h.lastIndexOf(`
|
|
`);s!==-1?this.__character_count=h.length-s:this.__character_count+=h.length},p.prototype.pop=function(){var h=null;return this.is_empty()||(h=this.__items.pop(),this.__character_count-=h.length),h},p.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},p.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},p.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},p.prototype.toString=function(){var h="";return this.is_empty()?this.__parent.indent_empty_lines&&(h=this.__parent.get_indent_string(this.__indent_count)):(h=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),h+=this.__items.join("")),h};function a(h,s){this.__cache=[""],this.__indent_size=h.indent_size,this.__indent_string=h.indent_char,h.indent_with_tabs||(this.__indent_string=new Array(h.indent_size+1).join(h.indent_char)),s=s||"",h.indent_level>0&&(s=new Array(h.indent_level+1).join(this.__indent_string)),this.__base_string=s,this.__base_string_length=s.length}a.prototype.get_indent_size=function(h,s){var i=this.__base_string_length;return s=s||0,h<0&&(i=0),i+=h*this.__indent_size,i+=s,i},a.prototype.get_indent_string=function(h,s){var i=this.__base_string;return s=s||0,h<0&&(h=0,i=""),s+=h*this.__indent_size,this.__ensure_cache(s),i+=this.__cache[s],i},a.prototype.__ensure_cache=function(h){for(;h>=this.__cache.length;)this.__add_column()},a.prototype.__add_column=function(){var h=this.__cache.length,s=0,i="";this.__indent_size&&h>=this.__indent_size&&(s=Math.floor(h/this.__indent_size),h-=s*this.__indent_size,i=new Array(s+1).join(this.__indent_string)),h&&(i+=new Array(h+1).join(" ")),this.__cache.push(i)};function t(h,s){this.__indent_cache=new a(h,s),this.raw=!1,this._end_with_newline=h.end_with_newline,this.indent_size=h.indent_size,this.wrap_line_length=h.wrap_line_length,this.indent_empty_lines=h.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new p(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}t.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},t.prototype.get_line_number=function(){return this.__lines.length},t.prototype.get_indent_string=function(h,s){return this.__indent_cache.get_indent_string(h,s)},t.prototype.get_indent_size=function(h,s){return this.__indent_cache.get_indent_size(h,s)},t.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},t.prototype.add_new_line=function(h){return this.is_empty()||!h&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},t.prototype.get_code=function(h){this.trim(!0);var s=this.current_line.pop();s&&(s[s.length-1]===`
|
|
`&&(s=s.replace(/\n+$/g,"")),this.current_line.push(s)),this._end_with_newline&&this.__add_outputline();var i=this.__lines.join(`
|
|
`);return h!==`
|
|
`&&(i=i.replace(/[\n]/g,h)),i},t.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},t.prototype.set_indent=function(h,s){return h=h||0,s=s||0,this.next_line.set_indent(h,s),this.__lines.length>1?(this.current_line.set_indent(h,s),!0):(this.current_line.set_indent(),!1)},t.prototype.add_raw_token=function(h){for(var s=0;s<h.newlines;s++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(h.whitespace_before),this.current_line.push(h.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},t.prototype.add_token=function(h){this.__add_space_before_token(),this.current_line.push(h),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},t.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(" "))},t.prototype.remove_indent=function(h){for(var s=this.__lines.length;h<s;)this.__lines[h]._remove_indent(),h++;this.current_line._remove_wrap_indent()},t.prototype.trim=function(h){for(h=h===void 0?!1:h,this.current_line.trim();h&&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},t.prototype.just_added_newline=function(){return this.current_line.is_empty()},t.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},t.prototype.ensure_empty_line_above=function(h,s){for(var i=this.__lines.length-2;i>=0;){var u=this.__lines[i];if(u.is_empty())break;if(u.item(0).indexOf(h)!==0&&u.item(-1)!==s){this.__lines.splice(i+1,0,new p(this)),this.previous_line=this.__lines[this.__lines.length-2];break}i--}},n.exports.Output=t},function(n){function p(a,t,h,s){this.type=a,this.text=t,this.comments_before=null,this.newlines=h||0,this.whitespace_before=s||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}n.exports.Token=p},function(n,p){var a="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",t="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",h="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",s="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",i="(?:\\\\u[0-9a-fA-F]{4}|["+a+h+"])",u="(?:\\\\u[0-9a-fA-F]{4}|["+t+h+s+"])*";p.identifier=new RegExp(i+u,"g"),p.identifierStart=new RegExp(i),p.identifierMatch=new RegExp("(?:\\\\u[0-9a-fA-F]{4}|["+t+h+s+"])+");var d=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;p.newline=/[\n\r\u2028\u2029]/,p.lineBreak=new RegExp(`\r
|
|
|`+p.newline.source),p.allLineBreaks=new RegExp(p.lineBreak.source,"g")},function(n,p,a){var t=a(6).Options,h=["before-newline","after-newline","preserve-newline"];function s(i){t.call(this,i,"js");var u=this.raw_options.brace_style||null;u==="expand-strict"?this.raw_options.brace_style="expand":u==="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 d=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var f=0;f<d.length;f++)d[f]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=d[f];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",h),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}s.prototype=new t,n.exports.Options=s},function(n){function p(h,s){this.raw_options=a(h,s),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php","smarty"],["auto"])}p.prototype._get_array=function(h,s){var i=this.raw_options[h],u=s||[];return typeof i=="object"?i!==null&&typeof i.concat=="function"&&(u=i.concat()):typeof i=="string"&&(u=i.split(/[^a-zA-Z0-9_\/\-]+/)),u},p.prototype._get_boolean=function(h,s){var i=this.raw_options[h],u=i===void 0?!!s:!!i;return u},p.prototype._get_characters=function(h,s){var i=this.raw_options[h],u=s||"";return typeof i=="string"&&(u=i.replace(/\\r/,"\r").replace(/\\n/,`
|
|
`).replace(/\\t/," ")),u},p.prototype._get_number=function(h,s){var i=this.raw_options[h];s=parseInt(s,10),isNaN(s)&&(s=0);var u=parseInt(i,10);return isNaN(u)&&(u=s),u},p.prototype._get_selection=function(h,s,i){var u=this._get_selection_list(h,s,i);if(u.length!==1)throw new Error("Invalid Option Value: The option '"+h+`' can only be one of the following values:
|
|
`+s+`
|
|
You passed in: '`+this.raw_options[h]+"'");return u[0]},p.prototype._get_selection_list=function(h,s,i){if(!s||s.length===0)throw new Error("Selection list cannot be empty.");if(i=i||[s[0]],!this._is_valid_selection(i,s))throw new Error("Invalid Default Value!");var u=this._get_array(h,i);if(!this._is_valid_selection(u,s))throw new Error("Invalid Option Value: The option '"+h+`' can contain only the following values:
|
|
`+s+`
|
|
You passed in: '`+this.raw_options[h]+"'");return u},p.prototype._is_valid_selection=function(h,s){return h.length&&s.length&&!h.some(function(i){return s.indexOf(i)===-1})};function a(h,s){var i={};h=t(h);var u;for(u in h)u!==s&&(i[u]=h[u]);if(s&&h[s])for(u in h[s])i[u]=h[s][u];return i}function t(h){var s={},i;for(i in h){var u=i.replace(/-/g,"_");s[u]=h[i]}return s}n.exports.Options=p,n.exports.normalizeOpts=t,n.exports.mergeOpts=a},function(n,p,a){var t=a(8).InputScanner,h=a(9).Tokenizer,s=a(9).TOKEN,i=a(13).Directives,u=a(4),d=a(12).Pattern,f=a(14).TemplatablePattern;function o(N,S){return S.indexOf(N)!==-1}var c={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:s.START,RAW:s.RAW,EOF:s.EOF},E=new i(/\/\*/,/\*\//),B=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,w=/[0-9]/,P=/[^\d\.]/,C=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),b=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";b=b.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),b="\\?\\.(?!\\d) "+b,b=b.replace(/ /g,"|");var l=new RegExp(b),A="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),g=A.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),T=new RegExp("^(?:"+g.join("|")+")$"),m,y=function(N,S){h.call(this,N,S),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var H=new d(this._input),F=new f(this._input).read_options(this._options);this.__patterns={template:F,identifier:F.starting_with(u.identifier).matching(u.identifierMatch),number:H.matching(B),punct:H.matching(l),comment:H.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:H.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:H.matching(/<!--/),html_comment_end:H.matching(/-->/),include:H.starting_with(/#include/).until_after(u.lineBreak),shebang:H.starting_with(/#!/).until_after(u.lineBreak),xml:H.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:F.until(/['\\\n\r\u2028\u2029]/),double_quote:F.until(/["\\\n\r\u2028\u2029]/),template_text:F.until(/[`\\$]/),template_expression:F.until(/[`}\\]/)}};y.prototype=new h,y.prototype._is_comment=function(N){return N.type===c.COMMENT||N.type===c.BLOCK_COMMENT||N.type===c.UNKNOWN},y.prototype._is_opening=function(N){return N.type===c.START_BLOCK||N.type===c.START_EXPR},y.prototype._is_closing=function(N,S){return(N.type===c.END_BLOCK||N.type===c.END_EXPR)&&S&&(N.text==="]"&&S.text==="["||N.text===")"&&S.text==="("||N.text==="}"&&S.text==="{")},y.prototype._reset=function(){m=!1},y.prototype._get_next_token=function(N,S){var H=null;this._readWhitespace();var F=this._input.peek();return F===null?this._create_token(c.EOF,""):(H=H||this._read_non_javascript(F),H=H||this._read_string(F),H=H||this._read_word(N),H=H||this._read_singles(F),H=H||this._read_comment(F),H=H||this._read_regexp(F,N),H=H||this._read_xml(F,N),H=H||this._read_punctuation(),H=H||this._create_token(c.UNKNOWN,this._input.next()),H)},y.prototype._read_word=function(N){var S;if(S=this.__patterns.identifier.read(),S!=="")return S=S.replace(u.allLineBreaks,`
|
|
`),!(N.type===c.DOT||N.type===c.RESERVED&&(N.text==="set"||N.text==="get"))&&T.test(S)?(S==="in"||S==="of")&&(N.type===c.WORD||N.type===c.STRING)?this._create_token(c.OPERATOR,S):this._create_token(c.RESERVED,S):this._create_token(c.WORD,S);if(S=this.__patterns.number.read(),S!=="")return this._create_token(c.WORD,S)},y.prototype._read_singles=function(N){var S=null;return N==="("||N==="["?S=this._create_token(c.START_EXPR,N):N===")"||N==="]"?S=this._create_token(c.END_EXPR,N):N==="{"?S=this._create_token(c.START_BLOCK,N):N==="}"?S=this._create_token(c.END_BLOCK,N):N===";"?S=this._create_token(c.SEMICOLON,N):N==="."&&P.test(this._input.peek(1))?S=this._create_token(c.DOT,N):N===","&&(S=this._create_token(c.COMMA,N)),S&&this._input.next(),S},y.prototype._read_punctuation=function(){var N=this.__patterns.punct.read();if(N!=="")return N==="="?this._create_token(c.EQUALS,N):N==="?."?this._create_token(c.DOT,N):this._create_token(c.OPERATOR,N)},y.prototype._read_non_javascript=function(N){var S="";if(N==="#"){if(this._is_first_token()&&(S=this.__patterns.shebang.read(),S))return this._create_token(c.UNKNOWN,S.trim()+`
|
|
`);if(S=this.__patterns.include.read(),S)return this._create_token(c.UNKNOWN,S.trim()+`
|
|
`);N=this._input.next();var H="#";if(this._input.hasNext()&&this._input.testChar(w)){do N=this._input.next(),H+=N;while(this._input.hasNext()&&N!=="#"&&N!=="=");return N==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(H+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(H+="{}",this._input.next(),this._input.next())),this._create_token(c.WORD,H)}this._input.back()}else if(N==="<"&&this._is_first_token()){if(S=this.__patterns.html_comment_start.read(),S){for(;this._input.hasNext()&&!this._input.testChar(u.newline);)S+=this._input.next();return m=!0,this._create_token(c.COMMENT,S)}}else if(m&&N==="-"&&(S=this.__patterns.html_comment_end.read(),S))return m=!1,this._create_token(c.COMMENT,S);return null},y.prototype._read_comment=function(N){var S=null;if(N==="/"){var H="";if(this._input.peek(1)==="*"){H=this.__patterns.block_comment.read();var F=E.get_directives(H);F&&F.ignore==="start"&&(H+=E.readIgnored(this._input)),H=H.replace(u.allLineBreaks,`
|
|
`),S=this._create_token(c.BLOCK_COMMENT,H),S.directives=F}else this._input.peek(1)==="/"&&(H=this.__patterns.comment.read(),S=this._create_token(c.COMMENT,H))}return S},y.prototype._read_string=function(N){if(N==="`"||N==="'"||N==='"'){var S=this._input.next();return this.has_char_escapes=!1,N==="`"?S+=this._read_string_recursive("`",!0,"${"):S+=this._read_string_recursive(N),this.has_char_escapes&&this._options.unescape_strings&&(S=U(S)),this._input.peek()===N&&(S+=this._input.next()),S=S.replace(u.allLineBreaks,`
|
|
`),this._create_token(c.STRING,S)}return null},y.prototype._allow_regexp_or_xml=function(N){return N.type===c.RESERVED&&o(N.text,["return","case","throw","else","do","typeof","yield"])||N.type===c.END_EXPR&&N.text===")"&&N.opened.previous.type===c.RESERVED&&o(N.opened.previous.text,["if","while","for"])||o(N.type,[c.COMMENT,c.START_EXPR,c.START_BLOCK,c.START,c.END_BLOCK,c.OPERATOR,c.EQUALS,c.EOF,c.SEMICOLON,c.COMMA])},y.prototype._read_regexp=function(N,S){if(N==="/"&&this._allow_regexp_or_xml(S)){for(var H=this._input.next(),F=!1,R=!1;this._input.hasNext()&&(F||R||this._input.peek()!==N)&&!this._input.testChar(u.newline);)H+=this._input.peek(),F?F=!1:(F=this._input.peek()==="\\",this._input.peek()==="["?R=!0:this._input.peek()==="]"&&(R=!1)),this._input.next();return this._input.peek()===N&&(H+=this._input.next(),H+=this._input.read(u.identifier)),this._create_token(c.STRING,H)}return null},y.prototype._read_xml=function(N,S){if(this._options.e4x&&N==="<"&&this._allow_regexp_or_xml(S)){var H="",F=this.__patterns.xml.read_match();if(F){for(var R=F[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),z=R.indexOf("{")===0,Q=0;F;){var $=!!F[1],ee=F[2],fe=!!F[F.length-1]||ee.slice(0,8)==="![CDATA[";if(!fe&&(ee===R||z&&ee.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&($?--Q:++Q),H+=F[0],Q<=0)break;F=this.__patterns.xml.read_match()}return F||(H+=this._input.match(/[\s\S]*/g)[0]),H=H.replace(u.allLineBreaks,`
|
|
`),this._create_token(c.STRING,H)}}return null};function U(N){for(var S="",H=0,F=new t(N),R=null;F.hasNext();)if(R=F.match(/([\s]|[^\\]|\\\\)+/g),R&&(S+=R[0]),F.peek()==="\\"){if(F.next(),F.peek()==="x")R=F.match(/x([0-9A-Fa-f]{2})/g);else if(F.peek()==="u")R=F.match(/u([0-9A-Fa-f]{4})/g);else{S+="\\",F.hasNext()&&(S+=F.next());continue}if(!R)return N;if(H=parseInt(R[1],16),H>126&&H<=255&&R[0].indexOf("x")===0)return N;if(H>=0&&H<32){S+="\\"+R[0];continue}else H===34||H===39||H===92?S+="\\"+String.fromCharCode(H):S+=String.fromCharCode(H)}return S}y.prototype._read_string_recursive=function(N,S,H){var F,R;N==="'"?R=this.__patterns.single_quote:N==='"'?R=this.__patterns.double_quote:N==="`"?R=this.__patterns.template_text:N==="}"&&(R=this.__patterns.template_expression);for(var z=R.read(),Q="";this._input.hasNext();){if(Q=this._input.next(),Q===N||!S&&u.newline.test(Q)){this._input.back();break}else Q==="\\"&&this._input.hasNext()?(F=this._input.peek(),F==="x"||F==="u"?this.has_char_escapes=!0:F==="\r"&&this._input.peek(1)===`
|
|
`&&this._input.next(),Q+=this._input.next()):H&&(H==="${"&&Q==="$"&&this._input.peek()==="{"&&(Q+=this._input.next()),H===Q&&(N==="`"?Q+=this._read_string_recursive("}",S,"`"):Q+=this._read_string_recursive("`",S,"${"),this._input.hasNext()&&(Q+=this._input.next())));Q+=R.read(),z+=Q}return z},n.exports.Tokenizer=y,n.exports.TOKEN=c,n.exports.positionable_operators=C.slice(),n.exports.line_starters=A.slice()},function(n){var p=RegExp.prototype.hasOwnProperty("sticky");function a(t){this.__input=t||"",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 t=null;return this.hasNext()&&(t=this.__input.charAt(this.__position),this.__position+=1),t},a.prototype.peek=function(t){var h=null;return t=t||0,t+=this.__position,t>=0&&t<this.__input_length&&(h=this.__input.charAt(t)),h},a.prototype.__match=function(t,h){t.lastIndex=h;var s=t.exec(this.__input);return s&&!(p&&t.sticky)&&(s.index!==h&&(s=null)),s},a.prototype.test=function(t,h){return h=h||0,h+=this.__position,h>=0&&h<this.__input_length?!!this.__match(t,h):!1},a.prototype.testChar=function(t,h){var s=this.peek(h);return t.lastIndex=0,s!==null&&t.test(s)},a.prototype.match=function(t){var h=this.__match(t,this.__position);return h?this.__position+=h[0].length:h=null,h},a.prototype.read=function(t,h,s){var i="",u;return t&&(u=this.match(t),u&&(i+=u[0])),h&&(u||!t)&&(i+=this.readUntil(h,s)),i},a.prototype.readUntil=function(t,h){var s="",i=this.__position;t.lastIndex=this.__position;var u=t.exec(this.__input);return u?(i=u.index,h&&(i+=u[0].length)):i=this.__input_length,s=this.__input.substring(this.__position,i),this.__position=i,s},a.prototype.readUntilAfter=function(t){return this.readUntil(t,!0)},a.prototype.get_regexp=function(t,h){var s=null,i="g";return h&&p&&(i="y"),typeof t=="string"&&t!==""?s=new RegExp(t,i):t&&(s=new RegExp(t.source,i)),s},a.prototype.get_literal_regexp=function(t){return RegExp(t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},a.prototype.peekUntilAfter=function(t){var h=this.__position,s=this.readUntilAfter(t);return this.__position=h,s},a.prototype.lookBack=function(t){var h=this.__position-1;return h>=t.length&&this.__input.substring(h-t.length,h).toLowerCase()===t},n.exports.InputScanner=a},function(n,p,a){var t=a(8).InputScanner,h=a(3).Token,s=a(10).TokenStream,i=a(11).WhitespacePattern,u={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},d=function(f,o){this._input=new t(f),this._options=o||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new i(this._input)};d.prototype.tokenize=function(){this._input.restart(),this.__tokens=new s,this._reset();for(var f,o=new h(u.START,""),c=null,E=[],B=new s;o.type!==u.EOF;){for(f=this._get_next_token(o,c);this._is_comment(f);)B.add(f),f=this._get_next_token(o,c);B.isEmpty()||(f.comments_before=B,B=new s),f.parent=c,this._is_opening(f)?(E.push(c),c=f):c&&this._is_closing(f,c)&&(f.opened=c,c.closed=f,c=E.pop(),f.parent=c),f.previous=o,o.next=f,this.__tokens.add(f),o=f}return this.__tokens},d.prototype._is_first_token=function(){return this.__tokens.isEmpty()},d.prototype._reset=function(){},d.prototype._get_next_token=function(f,o){this._readWhitespace();var c=this._input.read(/.+/g);return c?this._create_token(u.RAW,c):this._create_token(u.EOF,"")},d.prototype._is_comment=function(f){return!1},d.prototype._is_opening=function(f){return!1},d.prototype._is_closing=function(f,o){return!1},d.prototype._create_token=function(f,o){var c=new h(f,o,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return c},d.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},n.exports.Tokenizer=d,n.exports.TOKEN=u},function(n){function p(a){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=a}p.prototype.restart=function(){this.__position=0},p.prototype.isEmpty=function(){return this.__tokens_length===0},p.prototype.hasNext=function(){return this.__position<this.__tokens_length},p.prototype.next=function(){var a=null;return this.hasNext()&&(a=this.__tokens[this.__position],this.__position+=1),a},p.prototype.peek=function(a){var t=null;return a=a||0,a+=this.__position,a>=0&&a<this.__tokens_length&&(t=this.__tokens[a]),t},p.prototype.add=function(a){this.__parent_token&&(a.parent=this.__parent_token),this.__tokens.push(a),this.__tokens_length+=1},n.exports.TokenStream=p},function(n,p,a){var t=a(12).Pattern;function h(s,i){t.call(this,s,i),i?this._line_regexp=this._input.get_regexp(i._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}h.prototype=new t,h.prototype.__set_whitespace_patterns=function(s,i){s+="\\t ",i+="\\n\\r",this._match_pattern=this._input.get_regexp("["+s+i+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+i+"]")},h.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var s=this._input.read(this._match_pattern);if(s===" ")this.whitespace_before_token=" ";else if(s){var i=this.__split(this._newline_regexp,s);this.newline_count=i.length-1,this.whitespace_before_token=i[this.newline_count]}return s},h.prototype.matching=function(s,i){var u=this._create();return u.__set_whitespace_patterns(s,i),u._update(),u},h.prototype._create=function(){return new h(this._input,this)},h.prototype.__split=function(s,i){s.lastIndex=0;for(var u=0,d=[],f=s.exec(i);f;)d.push(i.substring(u,f.index)),u=f.index+f[0].length,f=s.exec(i);return u<i.length?d.push(i.substring(u,i.length)):d.push(""),d},n.exports.WhitespacePattern=h},function(n){function p(a,t){this._input=a,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,t&&(this._starting_pattern=this._input.get_regexp(t._starting_pattern,!0),this._match_pattern=this._input.get_regexp(t._match_pattern,!0),this._until_pattern=this._input.get_regexp(t._until_pattern),this._until_after=t._until_after)}p.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},p.prototype.read_match=function(){return this._input.match(this._match_pattern)},p.prototype.until_after=function(a){var t=this._create();return t._until_after=!0,t._until_pattern=this._input.get_regexp(a),t._update(),t},p.prototype.until=function(a){var t=this._create();return t._until_after=!1,t._until_pattern=this._input.get_regexp(a),t._update(),t},p.prototype.starting_with=function(a){var t=this._create();return t._starting_pattern=this._input.get_regexp(a,!0),t._update(),t},p.prototype.matching=function(a){var t=this._create();return t._match_pattern=this._input.get_regexp(a,!0),t._update(),t},p.prototype._create=function(){return new p(this._input,this)},p.prototype._update=function(){},n.exports.Pattern=p},function(n){function p(a,t){a=typeof a=="string"?a:a.source,t=typeof t=="string"?t:t.source,this.__directives_block_pattern=new RegExp(a+/ beautify( \w+[:]\w+)+ /.source+t,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(a+/\sbeautify\signore:end\s/.source+t,"g")}p.prototype.get_directives=function(a){if(!a.match(this.__directives_block_pattern))return null;var t={};this.__directive_pattern.lastIndex=0;for(var h=this.__directive_pattern.exec(a);h;)t[h[1]]=h[2],h=this.__directive_pattern.exec(a);return t},p.prototype.readIgnored=function(a){return a.readUntilAfter(this.__directives_end_ignore_pattern)},n.exports.Directives=p},function(n,p,a){var t=a(12).Pattern,h={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1};function s(i,u){t.call(this,i,u),this.__template_pattern=null,this._disabled=Object.assign({},h),this._excluded=Object.assign({},h),u&&(this.__template_pattern=this._input.get_regexp(u.__template_pattern),this._excluded=Object.assign(this._excluded,u._excluded),this._disabled=Object.assign(this._disabled,u._disabled));var d=new t(i);this.__patterns={handlebars_comment:d.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:d.starting_with(/{{{/).until_after(/}}}/),handlebars:d.starting_with(/{{/).until_after(/}}/),php:d.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:d.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:d.starting_with(/{%/).until_after(/%}/),django_value:d.starting_with(/{{/).until_after(/}}/),django_comment:d.starting_with(/{#/).until_after(/#}/),smarty:d.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:d.starting_with(/{\*/).until_after(/\*}/),smarty_literal:d.starting_with(/{literal}/).until_after(/{\/literal}/)}}s.prototype=new t,s.prototype._create=function(){return new s(this._input,this)},s.prototype._update=function(){this.__set_templated_pattern()},s.prototype.disable=function(i){var u=this._create();return u._disabled[i]=!0,u._update(),u},s.prototype.read_options=function(i){var u=this._create();for(var d in h)u._disabled[d]=i.templating.indexOf(d)===-1;return u._update(),u},s.prototype.exclude=function(i){var u=this._create();return u._excluded[i]=!0,u._update(),u},s.prototype.read=function(){var i="";this._match_pattern?i=this._input.read(this._starting_pattern):i=this._input.read(this._starting_pattern,this.__template_pattern);for(var u=this._read_template();u;)this._match_pattern?u+=this._input.read(this._match_pattern):u+=this._input.readUntil(this.__template_pattern),i+=u,u=this._read_template();return this._until_after&&(i+=this._input.readUntilAfter(this._until_pattern)),i},s.prototype.__set_templated_pattern=function(){var i=[];this._disabled.php||i.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||i.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||i.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(i.push(this.__patterns.django._starting_pattern.source),i.push(this.__patterns.django_value._starting_pattern.source),i.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||i.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&i.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+i.join("|")+")")},s.prototype._read_template=function(){var i="",u=this._input.peek();if(u==="<"){var d=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&d==="?"&&(i=i||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&d==="%"&&(i=i||this.__patterns.erb.read())}else u==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(i=i||this.__patterns.handlebars_comment.read(),i=i||this.__patterns.handlebars_unescaped.read(),i=i||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(i=i||this.__patterns.django_value.read()),this._excluded.django||(i=i||this.__patterns.django_comment.read(),i=i||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(i=i||this.__patterns.smarty_comment.read(),i=i||this.__patterns.smarty_literal.read(),i=i||this.__patterns.smarty.read()));return i},n.exports.TemplatablePattern=s}],O={};function M(n){var p=O[n];if(p!==void 0)return p.exports;var a=O[n]={exports:{}};return _[n](a,a.exports,M),a.exports}var x=M(0);I=x})();var k=I;!(Z=[],K=function(){return{js_beautify:k}}.apply(te,Z),K!==void 0&&(Re.exports=K))})()},"6eGT":function(Re,te,v){"use strict";function Z(K){return null}te.a=Z},"6fms":function(Re,te,v){var Z=v("SUKs"),K=v("06Qe"),I=v("bYtY"),k=I.each;function _(n){return parseInt(n,10)}function O(n,p){K.initVML(),this.root=n,this.storage=p;var a=document.createElement("div"),t=document.createElement("div");a.style.cssText="display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;",t.style.cssText="position:absolute;left:0;top:0;",n.appendChild(a),this._vmlRoot=t,this._vmlViewport=a,this.resize();var h=p.delFromStorage,s=p.addToStorage;p.delFromStorage=function(i){h.call(p,i),i&&(i.onRemove&&i.onRemove(t))},p.addToStorage=function(i){i.onAdd&&i.onAdd(t),s.call(p,i)},this._firstPaint=!0}O.prototype={constructor:O,getType:function(){return"vml"},getViewportRoot:function(){return this._vmlViewport},getViewportRootOffset:function(){var n=this.getViewportRoot();if(n)return{offsetLeft:n.offsetLeft||0,offsetTop:n.offsetTop||0}},refresh:function(){var n=this.storage.getDisplayList(!0,!0);this._paintList(n)},_paintList:function(n){for(var p=this._vmlRoot,a=0;a<n.length;a++){var t=n[a];t.invisible||t.ignore?(t.__alreadyNotVisible||t.onRemove(p),t.__alreadyNotVisible=!0):(t.__alreadyNotVisible&&t.onAdd(p),t.__alreadyNotVisible=!1,t.__dirty&&(t.beforeBrush&&t.beforeBrush(),(t.brushVML||t.brush).call(t,p),t.afterBrush&&t.afterBrush())),t.__dirty=!1}this._firstPaint&&(this._vmlViewport.appendChild(p),this._firstPaint=!1)},resize:function(n,p){var n=n==null?this._getWidth():n,p=p==null?this._getHeight():p;if(this._width!==n||this._height!==p){this._width=n,this._height=p;var a=this._vmlViewport.style;a.width=n+"px",a.height=p+"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 n=this.root,p=n.currentStyle;return(n.clientWidth||_(p.width))-_(p.paddingLeft)-_(p.paddingRight)|0},_getHeight:function(){var n=this.root,p=n.currentStyle;return(n.clientHeight||_(p.height))-_(p.paddingTop)-_(p.paddingBottom)|0}};function M(n){return function(){Z('In IE8.0 VML mode painter not support method "'+n+'"')}}k(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],function(n){O.prototype[n]=M(n)});var x=O;Re.exports=x},"746U":function(Re,te,v){"use strict";v.d(te,"f",function(){return Z}),v.d(te,"l",function(){return K}),v.d(te,"k",function(){return I}),v.d(te,"j",function(){return k}),v.d(te,"g",function(){return _}),v.d(te,"m",function(){return O}),v.d(te,"h",function(){return M}),v.d(te,"n",function(){return x}),v.d(te,"c",function(){return n}),v.d(te,"a",function(){return p}),v.d(te,"i",function(){return a}),v.d(te,"o",function(){return t}),v.d(te,"e",function(){return i}),v.d(te,"d",function(){return u}),v.d(te,"p",function(){return d}),v.d(te,"b",function(){return f});function Z(o){return Array.isArray(o)}function K(o){return typeof o=="string"}function I(o){return typeof o=="object"&&o!==null&&!Array.isArray(o)&&!(o instanceof RegExp)&&!(o instanceof Date)}function k(o){return typeof o=="number"&&!isNaN(o)}function _(o){return o===!0||o===!1}function O(o){return typeof o=="undefined"}function M(o){return!x(o)}function x(o){return O(o)||o===null}function n(o,c){if(!o)throw new Error(c?`Unexpected type, expected '${c}'`:"Unexpected type")}function p(o){if(x(o))throw new Error("Assertion Failed: argument is undefined or null");return o}function a(o){return typeof o=="function"}function t(o,c){const E=Math.min(o.length,c.length);for(let B=0;B<E;B++)h(o[B],c[B])}function h(o,c){if(K(c)){if(typeof o!==c)throw new Error(`argument does not match constraint: typeof ${c}`)}else if(a(c)){try{if(o instanceof c)return}catch(E){}if(!x(o)&&o.constructor===c)return;if(c.length===1&&c.call(void 0,o)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function s(o){let c=[],E=Object.getPrototypeOf(o);for(;Object.prototype!==E;)c=c.concat(Object.getOwnPropertyNames(E)),E=Object.getPrototypeOf(E);return c}function i(o){const c=[];for(const E of s(o))typeof o[E]=="function"&&c.push(E);return c}function u(o,c){const E=w=>function(){const P=Array.prototype.slice.call(arguments,0);return c(w,P)};let B={};for(const w of o)B[w]=E(w);return B}function d(o){return o===null?void 0:o}function f(o,c="Unreachable"){throw new Error(c)}},"7Cbv":function(Re,te,v){"use strict";var Z=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),K=new Uint8Array(16);function I(){if(!Z)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Z(K)}var k=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function _(h){return typeof h=="string"&&k.test(h)}for(var O=_,M=[],x=0;x<256;++x)M.push((x+256).toString(16).substr(1));function n(h){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=(M[h[s+0]]+M[h[s+1]]+M[h[s+2]]+M[h[s+3]]+"-"+M[h[s+4]]+M[h[s+5]]+"-"+M[h[s+6]]+M[h[s+7]]+"-"+M[h[s+8]]+M[h[s+9]]+"-"+M[h[s+10]]+M[h[s+11]]+M[h[s+12]]+M[h[s+13]]+M[h[s+14]]+M[h[s+15]]).toLowerCase();if(!O(i))throw TypeError("Stringified UUID is invalid");return i}var p=n;function a(h,s,i){h=h||{};var u=h.random||(h.rng||I)();if(u[6]=u[6]&15|64,u[8]=u[8]&63|128,s){i=i||0;for(var d=0;d<16;++d)s[i+d]=u[d];return s}return p(u)}var t=te.a=a},"7SHv":function(Re,te,v){var Z=v("LPTA"),K=Z.devicePixelRatio,I=v("bYtY"),k=v("SUKs"),_=v("mFDi"),O=v("BPZU"),M=v("Xmg4"),x=v("mLcG"),n=v("Dagg"),p=v("ItGF"),a=1e5,t=314159,h=.01,s=.001;function i(C){return parseInt(C,10)}function u(C){return C?C.__builtin__?!0:!(typeof C.resize!="function"||typeof C.refresh!="function"):!1}var d=new _(0,0,0,0),f=new _(0,0,0,0);function o(C,b,l){return d.copy(C.getBoundingRect()),C.transform&&d.applyTransform(C.transform),f.width=b,f.height=l,!d.intersect(f)}function c(C,b){if(C===b)return!1;if(!C||!b||C.length!==b.length)return!0;for(var l=0;l<C.length;l++)if(C[l]!==b[l])return!0;return!1}function E(C,b){for(var l=0;l<C.length;l++){var A=C[l];A.setTransform(b),b.beginPath(),A.buildPath(b,A.shape),b.clip(),A.restoreTransform(b)}}function B(C,b){var l=document.createElement("div");return l.style.cssText=["position:relative","width:"+C+"px","height:"+b+"px","padding:0","margin:0","border-width:0"].join(";")+";",l}var w=function(C,b,l){this.type="canvas";var A=!C.nodeName||C.nodeName.toUpperCase()==="CANVAS";this._opts=l=I.extend({},l||{}),this.dpr=l.devicePixelRatio||K,this._singleCanvas=A,this.root=C;var g=C.style;g&&(g["-webkit-tap-highlight-color"]="transparent",g["-webkit-user-select"]=g["user-select"]=g["-webkit-touch-callout"]="none",C.innerHTML=""),this.storage=b;var T=this._zlevelList=[],m=this._layers={};if(this._layerConfig={},this._needsManuallyCompositing=!1,A){var U=C.width,N=C.height;l.width!=null&&(U=l.width),l.height!=null&&(N=l.height),this.dpr=l.devicePixelRatio||1,C.width=U*this.dpr,C.height=N*this.dpr,this._width=U,this._height=N;var S=new M(C,this,this.dpr);S.__builtin__=!0,S.initContext(),m[t]=S,S.zlevel=t,T.push(t),this._domRoot=C}else{this._width=this._getSize(0),this._height=this._getSize(1);var y=this._domRoot=B(this._width,this._height);C.appendChild(y)}this._hoverlayer=null,this._hoverElements=[]};w.prototype={constructor:w,getType:function(){return"canvas"},isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._domRoot},getViewportRootOffset:function(){var C=this.getViewportRoot();if(C)return{offsetLeft:C.offsetLeft||0,offsetTop:C.offsetTop||0}},refresh:function(C){var b=this.storage.getDisplayList(!0),l=this._zlevelList;this._redrawId=Math.random(),this._paintList(b,C,this._redrawId);for(var A=0;A<l.length;A++){var g=l[A],T=this._layers[g];if(!T.__builtin__&&T.refresh){var m=A===0?this._backgroundColor:null;T.refresh(m)}}return this.refreshHover(),this},addHover:function(C,b){if(C.__hoverMir)return;var l=new C.constructor({style:C.style,shape:C.shape,z:C.z,z2:C.z2,silent:C.silent});return l.__from=C,C.__hoverMir=l,b&&l.setStyle(b),this._hoverElements.push(l),l},removeHover:function(C){var b=C.__hoverMir,l=this._hoverElements,A=I.indexOf(l,b);A>=0&&l.splice(A,1),C.__hoverMir=null},clearHover:function(C){for(var b=this._hoverElements,l=0;l<b.length;l++){var A=b[l].__from;A&&(A.__hoverMir=null)}b.length=0},refreshHover:function(){var C=this._hoverElements,b=C.length,l=this._hoverlayer;if(l&&l.clear(),!b)return;O(C,this.storage.displayableSortFunc),l||(l=this._hoverlayer=this.getLayer(a));var A={};l.ctx.save();for(var g=0;g<b;){var T=C[g],m=T.__from;if(!(m&&m.__zr)){C.splice(g,1),m.__hoverMir=null,b--;continue}g++,m.invisible||(T.transform=m.transform,T.invTransform=m.invTransform,T.__clipPaths=m.__clipPaths,this._doPaintEl(T,l,!0,A))}l.ctx.restore()},getHoverLayer:function(){return this.getLayer(a)},_paintList:function(C,b,l){if(this._redrawId!==l)return;b=b||!1,this._updateLayerStatus(C);var A=this._doPaintList(C,b);if(this._needsManuallyCompositing&&this._compositeManually(),!A){var g=this;x(function(){g._paintList(C,b,l)})}},_compositeManually:function(){var C=this.getLayer(t).ctx,b=this._domRoot.width,l=this._domRoot.height;C.clearRect(0,0,b,l),this.eachBuiltinLayer(function(A){A.virtual&&C.drawImage(A.dom,0,0,b,l)})},_doPaintList:function(C,b){for(var l=[],A=0;A<this._zlevelList.length;A++){var g=this._zlevelList[A],T=this._layers[g];T.__builtin__&&T!==this._hoverlayer&&(T.__dirty||b)&&l.push(T)}for(var m=!0,y=0;y<l.length;y++){var T=l[y],U=T.ctx,N={};U.save();var S=b?T.__startIndex:T.__drawIndex,H=!b&&T.incremental&&Date.now,F=H&&Date.now(),R=T.zlevel===this._zlevelList[0]?this._backgroundColor:null;if(T.__startIndex===T.__endIndex)T.clear(!1,R);else if(S===T.__startIndex){var z=C[S];(!z.incremental||!z.notClear||b)&&T.clear(!1,R)}S===-1&&(console.error("For some unknown reason. drawIndex is -1"),S=T.__startIndex);for(var Q=S;Q<T.__endIndex;Q++){var $=C[Q];if(this._doPaintEl($,T,b,N),$.__dirty=$.__dirtyText=!1,H){var ee=Date.now()-F;if(ee>15)break}}T.__drawIndex=Q,T.__drawIndex<T.__endIndex&&(m=!1),N.prevElClipPaths&&U.restore(),U.restore()}return p.wxa&&I.each(this._layers,function(fe){fe&&fe.ctx&&fe.ctx.draw&&fe.ctx.draw()}),m},_doPaintEl:function(C,b,l,A){var g=b.ctx,T=C.transform;if((b.__dirty||l)&&!C.invisible&&C.style.opacity!==0&&!(T&&!T[0]&&!T[3])&&!(C.culling&&o(C,this._width,this._height))){var m=C.__clipPaths,y=A.prevElClipPaths;(!y||c(m,y))&&(y&&(g.restore(),A.prevElClipPaths=null,A.prevEl=null),m&&(g.save(),E(m,g),A.prevElClipPaths=m)),C.beforeBrush&&C.beforeBrush(g),C.brush(g,A.prevEl||null),A.prevEl=C,C.afterBrush&&C.afterBrush(g)}},getLayer:function(C,b){this._singleCanvas&&!this._needsManuallyCompositing&&(C=t);var l=this._layers[C];return l||(l=new M("zr_"+C,this,this.dpr),l.zlevel=C,l.__builtin__=!0,this._layerConfig[C]?I.merge(l,this._layerConfig[C],!0):this._layerConfig[C-h]&&I.merge(l,this._layerConfig[C-h],!0),b&&(l.virtual=b),this.insertLayer(C,l),l.initContext()),l},insertLayer:function(C,b){var l=this._layers,A=this._zlevelList,g=A.length,T=null,m=-1,y=this._domRoot;if(l[C]){k("ZLevel "+C+" has been used already");return}if(!u(b)){k("Layer of zlevel "+C+" is not valid");return}if(g>0&&C>A[0]){for(m=0;m<g-1&&!(A[m]<C&&A[m+1]>C);m++);T=l[A[m]]}if(A.splice(m+1,0,C),l[C]=b,!b.virtual)if(T){var U=T.dom;U.nextSibling?y.insertBefore(b.dom,U.nextSibling):y.appendChild(b.dom)}else y.firstChild?y.insertBefore(b.dom,y.firstChild):y.appendChild(b.dom)},eachLayer:function(C,b){var l=this._zlevelList,A,g;for(g=0;g<l.length;g++)A=l[g],C.call(b,this._layers[A],A)},eachBuiltinLayer:function(C,b){var l=this._zlevelList,A,g,T;for(T=0;T<l.length;T++)g=l[T],A=this._layers[g],A.__builtin__&&C.call(b,A,g)},eachOtherLayer:function(C,b){var l=this._zlevelList,A,g,T;for(T=0;T<l.length;T++)g=l[T],A=this._layers[g],A.__builtin__||C.call(b,A,g)},getLayers:function(){return this._layers},_updateLayerStatus:function(C){this.eachBuiltinLayer(function(N,S){N.__dirty=N.__used=!1});function b(N){g&&(g.__endIndex!==N&&(g.__dirty=!0),g.__endIndex=N)}if(this._singleCanvas)for(var l=1;l<C.length;l++){var A=C[l];if(A.zlevel!==C[l-1].zlevel||A.incremental){this._needsManuallyCompositing=!0;break}}for(var g=null,T=0,m,l=0;l<C.length;l++){var A=C[l],y=A.zlevel,U;m!==y&&(m=y,T=0),A.incremental?(U=this.getLayer(y+s,this._needsManuallyCompositing),U.incremental=!0,T=1):U=this.getLayer(y+(T>0?h:0),this._needsManuallyCompositing),U.__builtin__||k("ZLevel "+y+" has been used by unkown layer "+U.id),U!==g&&(U.__used=!0,U.__startIndex!==l&&(U.__dirty=!0),U.__startIndex=l,U.incremental?U.__drawIndex=-1:U.__drawIndex=l,b(l),g=U),A.__dirty&&(U.__dirty=!0,U.incremental&&U.__drawIndex<0&&(U.__drawIndex=l))}b(l),this.eachBuiltinLayer(function(N,S){!N.__used&&N.getElementCount()>0&&(N.__dirty=!0,N.__startIndex=N.__endIndex=N.__drawIndex=0),N.__dirty&&N.__drawIndex<0&&(N.__drawIndex=N.__startIndex)})},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(C){C.clear()},setBackgroundColor:function(C){this._backgroundColor=C},configLayer:function(C,b){if(b){var l=this._layerConfig;l[C]?I.merge(l[C],b,!0):l[C]=b;for(var A=0;A<this._zlevelList.length;A++){var g=this._zlevelList[A];if(g===C||g===C+h){var T=this._layers[g];I.merge(T,l[C],!0)}}}},delLayer:function(C){var b=this._layers,l=this._zlevelList,A=b[C];if(!A)return;A.dom.parentNode.removeChild(A.dom),delete b[C],l.splice(I.indexOf(l,C),1)},resize:function(C,b){if(this._domRoot.style){var l=this._domRoot;l.style.display="none";var A=this._opts;if(C!=null&&(A.width=C),b!=null&&(A.height=b),C=this._getSize(0),b=this._getSize(1),l.style.display="",this._width!==C||b!==this._height){l.style.width=C+"px",l.style.height=b+"px";for(var g in this._layers)this._layers.hasOwnProperty(g)&&this._layers[g].resize(C,b);I.each(this._progressiveLayers,function(T){T.resize(C,b)}),this.refresh(!0)}this._width=C,this._height=b}else{if(C==null||b==null)return;this._width=C,this._height=b,this.getLayer(t).resize(C,b)}return this},clearLayer:function(C){var b=this._layers[C];b&&b.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(C){if(C=C||{},this._singleCanvas&&!this._compositeManually)return this._layers[t].dom;var b=new M("image",this,C.pixelRatio||this.dpr);if(b.initContext(),b.clear(!1,C.backgroundColor||this._backgroundColor),C.pixelRatio<=this.dpr){this.refresh();var l=b.dom.width,A=b.dom.height,g=b.ctx;this.eachLayer(function(N){N.__builtin__?g.drawImage(N.dom,0,0,l,A):N.renderToCanvas&&(b.ctx.save(),N.renderToCanvas(b.ctx),b.ctx.restore())})}else for(var T={},m=this.storage.getDisplayList(!0),y=0;y<m.length;y++){var U=m[y];this._doPaintEl(U,b,!0,T)}return b.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(C){var b=this._opts,l=["width","height"][C],A=["clientWidth","clientHeight"][C],g=["paddingLeft","paddingTop"][C],T=["paddingRight","paddingBottom"][C];if(b[l]!=null&&b[l]!=="auto")return parseFloat(b[l]);var m=this.root,y=document.defaultView.getComputedStyle(m);return(m[A]||i(y[l])||i(m.style[l]))-(i(y[g])||0)-(i(y[T])||0)|0},pathToImage:function(C,b){b=b||this.dpr;var l=document.createElement("canvas"),A=l.getContext("2d"),g=C.getBoundingRect(),T=C.style,m=T.shadowBlur*b,y=T.shadowOffsetX*b,U=T.shadowOffsetY*b,N=T.hasStroke()?T.lineWidth:0,S=Math.max(N/2,-y+m),H=Math.max(N/2,y+m),F=Math.max(N/2,-U+m),R=Math.max(N/2,U+m),z=g.width+S+H,Q=g.height+F+R;l.width=z*b,l.height=Q*b,A.scale(b,b),A.clearRect(0,0,z,Q),A.dpr=b;var $={position:C.position,rotation:C.rotation,scale:C.scale};C.position=[S-g.x,F-g.y],C.rotation=0,C.scale=[1,1],C.updateTransform(),C&&C.brush(A);var ee=n,fe=new ee({style:{x:0,y:0,image:l}});return $.position!=null&&(fe.position=C.position=$.position),$.rotation!=null&&(fe.rotation=C.rotation=$.rotation),$.scale!=null&&(fe.scale=C.scale=$.scale),fe}};var P=w;Re.exports=P},"7ZXX":function(Re,te,v){Re.exports=v.p+"static/err.6e7c5817.png"},"7ahc":function(Re,te,v){"use strict";v.d(te,"a",function(){return E});var Z=v("k1fw"),K=v("0Owb"),I=v("+L6B"),k=v("2/Rp"),_=v("y8nQ"),O=v("Vl3Y"),M=v("tJVT"),x=v("OaEy"),n=v("2fM7"),p=v("q1tI"),a=v.n(p),t=v("VrN/"),h=v.n(t),s=v("p77/"),i=v.n(s),u=v("c5Ni"),d=v.n(u),f=n.a.Option,o={labelCol:{span:4},wrapperCol:{span:20}},c={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};te.b=function(B){var w=B.callback,P=B.onCancel,C=Object(p.useState)("python"),b=Object(M.a)(C,2),l=b[0],A=b[1];function g(m){A(c[m][1])}function T(m){w(m)}return a.a.createElement(O.a,Object(K.a)({},o,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:T}),a.a.createElement(O.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},a.a.createElement(n.a,{onChange:g},Object.keys(c).map(function(m){return a.a.createElement(f,{key:m,value:m},c[m][0])}))),a.a.createElement(O.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},a.a.createElement(E,{mode:l})),a.a.createElement("div",{className:"flex-container flex-end"},a.a.createElement(k.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),a.a.createElement(k.a,{type:"ghost",onClick:P},"\u53D6\u6D88")))};function E(B){var w=B.value,P=B.onChange,C=B.mode,b=B.options,l=b===void 0?{}:b,A=Object(p.useRef)(),g=Object(p.useState)(),T=Object(M.a)(g,2),m=T[0],y=T[1];return Object(p.useEffect)(function(){if(m){function U(N){var S=N.getValue();P&&P(S)}return m.on("change",U),function(){m.off("change",U)}}},[m,P]),Object(p.useEffect)(function(){m&&m.setOption("mode",C)},[m,C]),Object(p.useEffect)(function(){m&&((w!==m.getValue()||w==="")&&setTimeout(function(){m.setValue(w||" ")},300))},[m,w]),Object(p.useEffect)(function(){if(A.current&&!m){var U=h.a.fromTextArea(A.current,Object(Z.a)({mode:C,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},l));y(U)}},[A.current,m]),a.a.createElement("div",{className:"my-codemirror-container"},a.a.createElement("textarea",{ref:A}))}},"7ixt":function(Re,te,v){"use strict";v.d(te,"a",function(){return I});var Z={adjustX:1,adjustY:1},K=[0,0],I={left:{points:["cr","cl"],overflow:Z,offset:[-4,0],targetOffset:K},right:{points:["cl","cr"],overflow:Z,offset:[4,0],targetOffset:K},top:{points:["bc","tc"],overflow:Z,offset:[0,-4],targetOffset:K},bottom:{points:["tc","bc"],overflow:Z,offset:[0,4],targetOffset:K},topLeft:{points:["bl","tl"],overflow:Z,offset:[0,-4],targetOffset:K},leftTop:{points:["tr","tl"],overflow:Z,offset:[-4,0],targetOffset:K},topRight:{points:["br","tr"],overflow:Z,offset:[0,-4],targetOffset:K},rightTop:{points:["tl","tr"],overflow:Z,offset:[4,0],targetOffset:K},bottomRight:{points:["tr","br"],overflow:Z,offset:[0,4],targetOffset:K},rightBottom:{points:["bl","br"],overflow:Z,offset:[4,0],targetOffset:K},bottomLeft:{points:["tl","bl"],overflow:Z,offset:[0,4],targetOffset:K},leftBottom:{points:["br","bl"],overflow:Z,offset:[-4,0],targetOffset:K}},k=I},"7oTu":function(Re,te,v){var Z=v("IMiH"),K=v("QBsz"),I=K.applyTransform,k=Z.CMD,_=[[],[],[]],O=Math.sqrt,M=Math.atan2;function x(n,p){var a=n.data,t,h,s,i,u,d,f=k.M,o=k.C,c=k.L,E=k.R,B=k.A,w=k.Q;for(s=0,i=0;s<a.length;){t=a[s++],i=s,h=0;switch(t){case f:h=1;break;case c:h=1;break;case o:h=3;break;case w:h=2;break;case B:var P=p[4],C=p[5],b=O(p[0]*p[0]+p[1]*p[1]),l=O(p[2]*p[2]+p[3]*p[3]),A=M(-p[1]/l,p[0]/b);a[s]*=b,a[s++]+=P,a[s]*=l,a[s++]+=C,a[s++]*=b,a[s++]*=l,a[s++]+=A,a[s++]+=A,s+=2,i=s;break;case E:d[0]=a[s++],d[1]=a[s++],I(d,d,p),a[i++]=d[0],a[i++]=d[1],d[0]+=a[s++],d[1]+=a[s++],I(d,d,p),a[i++]=d[0],a[i++]=d[1]}for(u=0;u<h;u++){var d=_[u];d[0]=a[s++],d[1]=a[s++],I(d,d,p),a[i++]=d[0],a[i++]=d[1]}}}Re.exports=x},"7v3h":function(Re,te,v){Re.exports=v.p+"static/empty2.dd73f390.png"},"8/bI":function(Re,te,v){Re.exports=v.p+"static/empty.8918e228.png"},"815F":function(Re,te,v){"use strict";v.d(te,"e",function(){return M}),v.d(te,"c",function(){return n}),v.d(te,"d",function(){return p}),v.d(te,"a",function(){return t}),v.d(te,"f",function(){return h}),v.d(te,"b",function(){return s});var Z=v("KQm4"),K=v("VTBJ"),I=v("Ff2n"),k=v("Zm9Q"),_=v("Kwbf"),O=v("OZM5");function M(i,u){return i!=null?i:u}function x(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],u=new Map;function d(f){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(f||[]).forEach(function(c){var E=c.key,B=c.children;Object(_.a)(E!=null,"Tree node must have a certain key: [".concat(o).concat(E,"]"));var w=String(E);Object(_.a)(!u.has(w)||E===null||E===void 0,"Same 'key' exist in the Tree: ".concat(w)),u.set(w,!0),d(B,"".concat(o).concat(w," > "))})}d(i)}function n(i){function u(d){var f=Object(k.a)(d);return f.map(function(o){if(!Object(O.i)(o))return Object(_.a)(!o,"Tree/TreeNode can only accept TreeNode as children."),null;var c=o.key,E=o.props,B=E.children,w=Object(I.a)(E,["children"]),P=Object(K.a)({key:c},w),C=u(B);return C.length&&(P.children=C),P}).filter(function(o){return o})}return u(i)}function p(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],d=new Set(u===!0?[]:u),f=[];function o(c){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return c.map(function(B,w){var P=Object(O.h)(E?E.pos:"0",w),C=M(B.key,P),b=Object(K.a)(Object(K.a)({},B),{},{parent:E,pos:P,children:null,data:B,isStart:[].concat(Object(Z.a)(E?E.isStart:[]),[w===0]),isEnd:[].concat(Object(Z.a)(E?E.isEnd:[]),[w===c.length-1])});return f.push(b),u===!0||d.has(C)?b.children=o(B.children||[],b):b.children=[],b})}return o(i),f}function a(i,u,d){var f;d?typeof d=="string"?f=function(E){return E[d]}:typeof d=="function"&&(f=function(E){return d(E)}):f=function(E,B){return M(E.key,B)};function o(c,E,B){var w=c?c.children:i,P=c?Object(O.h)(B.pos,E):"0";if(c){var C=f(c,P),b={node:c,index:E,pos:P,key:C,parentPos:B.node?B.pos:null,level:B.level+1};u(b)}w&&w.forEach(function(l,A){o(l,A,{node:c,pos:P,level:B?B.level+1:-1})})}o(null)}function t(i){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=u.initWrapper,f=u.processEntity,o=u.onProcessFinished,c=arguments.length>2?arguments[2]:void 0,E={},B={},w={posEntities:E,keyEntities:B};return d&&(w=d(w)||w),a(i,function(P){var C=P.node,b=P.index,l=P.pos,A=P.key,g=P.parentPos,T=P.level,m={node:C,index:b,key:A,pos:l,level:T},y=M(A,l);E[l]=m,B[y]=m,m.parent=E[g],m.parent&&(m.parent.children=m.parent.children||[],m.parent.children.push(m)),f&&f(m,w)},c),o&&o(w),w}function h(i,u){var d=u.expandedKeys,f=u.selectedKeys,o=u.loadedKeys,c=u.loadingKeys,E=u.checkedKeys,B=u.halfCheckedKeys,w=u.dragOverNodeKey,P=u.dropPosition,C=u.keyEntities,b=C[i],l={eventKey:i,expanded:d.indexOf(i)!==-1,selected:f.indexOf(i)!==-1,loaded:o.indexOf(i)!==-1,loading:c.indexOf(i)!==-1,checked:E.indexOf(i)!==-1,halfChecked:B.indexOf(i)!==-1,pos:String(b?b.pos:""),dragOver:w===i&&P===0,dragOverGapTop:w===i&&P===-1,dragOverGapBottom:w===i&&P===1};return l}function s(i){var u=i.data,d=i.expanded,f=i.selected,o=i.checked,c=i.loaded,E=i.loading,B=i.halfChecked,w=i.dragOver,P=i.dragOverGapTop,C=i.dragOverGapBottom,b=i.pos,l=i.active,A=Object(K.a)(Object(K.a)({},u),{},{expanded:d,selected:f,checked:o,loaded:c,loading:E,halfChecked:B,dragOver:w,dragOverGapTop:P,dragOverGapBottom:C,pos:b,active:l});return"props"in A||Object.defineProperty(A,"props",{get:function(){return Object(_.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),i}}),A}},"8Bcu":function(Re,te,v){Re.exports={flex_box_center:"flex_box_center___3isCS",flex_space_between:"flex_space_between___1zEgQ",flex_box_vertical_center:"flex_box_vertical_center___2IyXM",flex_box_center_end:"flex_box_center_end___1r0jY",flex_box_column:"flex_box_column___2SHBj",rightWrap:"rightWrap___2XCk6",qrCode:"qrCode___3q9Z0",cardTop:"cardTop___2h9UR",cardTop2:"cardTop2___3KQ3O",card:"card___1aOV1",flexRow:"flexRow___DeBf7",flexRowAbout:"flexRowAbout___3sD2f",skillWrap:"skillWrap___pwM-3",skillTopWrap:"skillTopWrap___2oSn4",skillContentWrap:"skillContentWrap___239Us",skillContentWrapMin:"skillContentWrapMin___2KWd4",skillContentWrapMax:"skillContentWrapMax___NVKFP",skillContentIcon:"skillContentIcon___5mU6F",skillContentIconNoStatus:"skillContentIconNoStatus___1_V1l",skillExpandAllWrap:"skillExpandAllWrap___1HSf6",skillExpandAllContent:"skillExpandAllContent___3kY9W",memberItem:"memberItem___3cgRI",radius:"radius___2fxUa",memberItemContent:"memberItemContent___19hpK",directionItemWrap:"directionItemWrap___3Zm3f",groupActionWrap:"groupActionWrap___N0Epv",divabout:"divabout___psa-7",classButton:"classButton___30JJg",bg28e:"bg28e___2DyZD",bgGray:"bgGray___2PZB0",price:"price___2sFWj",li1:"li1___2y74c",discounts:"discounts___2JS39",realPrice:"realPrice___2kTeg",lineationPrice:"lineationPrice___2LeZ4",li2:"li2___2rpKJ"}},"8EBN":function(Re,te,v){(function(Z){Z(v("VrN/"))})(function(Z){"use strict";Z.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var K=0;K<Z.modeInfo.length;K++){var I=Z.modeInfo[K];I.mimes&&(I.mime=I.mimes[0])}Z.findModeByMIME=function(k){k=k.toLowerCase();for(var _=0;_<Z.modeInfo.length;_++){var O=Z.modeInfo[_];if(O.mime==k)return O;if(O.mimes){for(var M=0;M<O.mimes.length;M++)if(O.mimes[M]==k)return O}}if(/\+xml$/.test(k))return Z.findModeByMIME("application/xml");if(/\+json$/.test(k))return Z.findModeByMIME("application/json")},Z.findModeByExtension=function(k){k=k.toLowerCase();for(var _=0;_<Z.modeInfo.length;_++){var O=Z.modeInfo[_];if(O.ext){for(var M=0;M<O.ext.length;M++)if(O.ext[M]==k)return O}}},Z.findModeByFileName=function(k){for(var _=0;_<Z.modeInfo.length;_++){var O=Z.modeInfo[_];if(O.file&&O.file.test(k))return O}var M=k.lastIndexOf("."),x=M>-1&&k.substring(M+1,k.length);if(x)return Z.findModeByExtension(x)},Z.findModeByName=function(k){k=k.toLowerCase();for(var _=0;_<Z.modeInfo.length;_++){var O=Z.modeInfo[_];if(O.name.toLowerCase()==k)return O;if(O.alias){for(var M=0;M<O.alias.length;M++)if(O.alias[M].toLowerCase()==k)return O}}}})},"8HAY":function(Re,te,v){"use strict";v.d(te,"a",function(){return _}),v.d(te,"b",function(){return O}),v.d(te,"d",function(){return M}),v.d(te,"e",function(){return x}),v.d(te,"c",function(){return n});var Z=v("MI8n"),K=v("pmY6"),I=v("3/fG"),k=function(p,a,t,h){function s(i){return i instanceof t?i:new t(function(u){u(i)})}return new(t||(t=Promise))(function(i,u){function d(c){try{o(h.next(c))}catch(E){u(E)}}function f(c){try{o(h.throw(c))}catch(E){u(E)}}function o(c){c.done?i(c.value):s(c.value).then(d,f)}o((h=h.apply(p,a||[])).next())})};class _ extends K.a{constructor(p,a="",t="",h=!0,s){super();this._onDidChange=this._register(new Z.b),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=p,this._label=a,this._cssClass=t,this._enabled=h,this._actionCallback=s}get id(){return this._id}get label(){return this._label}set label(p){this._setLabel(p)}_setLabel(p){this._label!==p&&(this._label=p,this._onDidChange.fire({label:p}))}get tooltip(){return this._tooltip||""}set tooltip(p){this._setTooltip(p)}_setTooltip(p){this._tooltip!==p&&(this._tooltip=p,this._onDidChange.fire({tooltip:p}))}get class(){return this._cssClass}set class(p){this._setClass(p)}_setClass(p){this._cssClass!==p&&(this._cssClass=p,this._onDidChange.fire({class:p}))}get enabled(){return this._enabled}set enabled(p){this._setEnabled(p)}_setEnabled(p){this._enabled!==p&&(this._enabled=p,this._onDidChange.fire({enabled:p}))}get checked(){return this._checked}set checked(p){this._setChecked(p)}_setChecked(p){this._checked!==p&&(this._checked=p,this._onDidChange.fire({checked:p}))}run(p,a){return k(this,void 0,void 0,function*(){this._actionCallback&&(yield this._actionCallback(p))})}}class O extends K.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(p,a){return k(this,void 0,void 0,function*(){if(!p.enabled)return;this._onBeforeRun.fire({action:p});let t;try{yield this.runAction(p,a)}catch(h){t=h}this._onDidRun.fire({action:p,error:t})})}runAction(p,a){return k(this,void 0,void 0,function*(){yield p.run(a)})}}class M extends _{constructor(p){super(M.ID,p,p?"separator text":"separator");this.checked=!1,this.enabled=!1}}M.ID="vs.actions.separator";class x{constructor(p,a,t,h){this.tooltip="",this.enabled=!0,this.checked=!1,this.id=p,this.label=a,this.class=h,this._actions=t}get actions(){return this._actions}dispose(){}run(){return k(this,void 0,void 0,function*(){})}}class n extends _{constructor(){super(n.ID,I.a("submenu.empty","(empty)"),void 0,!1)}}n.ID="vs.actions.empty"},"8XDt":function(Re,te,v){v("qH13");var Z=v("aX58"),K=Z.registerPainter,I=v("6fms");K("vml",I)},"8hTe":function(Re,te,v){Re.exports={button:"button___1wy9m"}},"8mKB":function(Re,te,v){"use strict";var Z=v("rePB"),K=v("1OyB"),I=v("vuIU"),k=v("Ji7U"),_=v("md7G"),O=v("foSv"),M=v("q1tI"),x=v.n(M),n=v("m+aA"),p=v("TSYQ"),a=v.n(p),t=v("4IlW");function h(l){var A=l.pageXOffset,g="scrollLeft";if(typeof A!="number"){var T=l.document;A=T.documentElement[g],typeof A!="number"&&(A=T.body[g])}return A}function s(l){var A,g,T=l.ownerDocument,m=T.body,y=T&&T.documentElement,U=l.getBoundingClientRect();return A=U.left,g=U.top,A-=y.clientLeft||m.clientLeft||0,g-=y.clientTop||m.clientTop||0,{left:A,top:g}}function i(l){var A=s(l),g=l.ownerDocument,T=g.defaultView||g.parentWindow;return A.left+=h(T),A.left}function u(l){var A=d();return function(){var T=Object(O.a)(l),m;if(A){var y=Object(O.a)(this).constructor;m=Reflect.construct(T,arguments,y)}else m=T.apply(this,arguments);return Object(_.a)(this,m)}}function d(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(l){return!1}}var f=function(l){Object(k.a)(g,l);var A=u(g);function g(){var T;return Object(K.a)(this,g),T=A.apply(this,arguments),T.onHover=function(m){var y=T.props,U=y.onHover,N=y.index;U(m,N)},T.onClick=function(m){var y=T.props,U=y.onClick,N=y.index;U(m,N)},T.onKeyDown=function(m){var y=T.props,U=y.onClick,N=y.index;m.keyCode===13&&U(m,N)},T}return Object(I.a)(g,[{key:"getClassName",value:function(){var m=this.props,y=m.prefixCls,U=m.index,N=m.value,S=m.allowHalf,H=m.focused,F=U+1,R=y;return N===0&&U===0&&H?R+=" ".concat(y,"-focused"):S&&N+.5>=F&&N<F?(R+=" ".concat(y,"-half ").concat(y,"-active"),H&&(R+=" ".concat(y,"-focused"))):(R+=F<=N?" ".concat(y,"-full"):" ".concat(y,"-zero"),F===N&&H&&(R+=" ".concat(y,"-focused"))),R}},{key:"render",value:function(){var m=this.onHover,y=this.onClick,U=this.onKeyDown,N=this.props,S=N.disabled,H=N.prefixCls,F=N.character,R=N.characterRender,z=N.index,Q=N.count,$=N.value,ee=typeof F=="function"?F(this.props):F,fe=x.a.createElement("li",{className:this.getClassName()},x.a.createElement("div",{onClick:S?null:y,onKeyDown:S?null:U,onMouseMove:S?null:m,role:"radio","aria-checked":$>z?"true":"false","aria-posinset":z+1,"aria-setsize":Q,tabIndex:S?-1:0},x.a.createElement("div",{className:"".concat(H,"-first")},ee),x.a.createElement("div",{className:"".concat(H,"-second")},ee)));return R&&(fe=R(fe,this.props)),fe}}]),g}(x.a.Component);function o(l,A){var g=Object.keys(l);if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(l);A&&(T=T.filter(function(m){return Object.getOwnPropertyDescriptor(l,m).enumerable})),g.push.apply(g,T)}return g}function c(l){for(var A=1;A<arguments.length;A++){var g=arguments[A]!=null?arguments[A]:{};A%2?o(Object(g),!0).forEach(function(T){Object(Z.a)(l,T,g[T])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(g)):o(Object(g)).forEach(function(T){Object.defineProperty(l,T,Object.getOwnPropertyDescriptor(g,T))})}return l}function E(l){var A=B();return function(){var T=Object(O.a)(l),m;if(A){var y=Object(O.a)(this).constructor;m=Reflect.construct(T,arguments,y)}else m=T.apply(this,arguments);return Object(_.a)(this,m)}}function B(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(l){return!1}}function w(){}var P=function(l){Object(k.a)(g,l);var A=E(g);function g(T){var m;Object(K.a)(this,g),m=A.call(this,T),m.onHover=function(U,N){var S=m.props.onHoverChange,H=m.getStarValue(N,U.pageX),F=m.state.cleanedValue;H!==F&&m.setState({hoverValue:H,cleanedValue:null}),S(H)},m.onMouseLeave=function(){var U=m.props.onHoverChange;m.setState({hoverValue:void 0,cleanedValue:null}),U(void 0)},m.onClick=function(U,N){var S=m.props.allowClear,H=m.state.value,F=m.getStarValue(N,U.pageX),R=!1;S&&(R=F===H),m.onMouseLeave(),m.changeValue(R?0:F),m.setState({cleanedValue:R?F:null})},m.onFocus=function(){var U=m.props.onFocus;m.setState({focused:!0}),U&&U()},m.onBlur=function(){var U=m.props.onBlur;m.setState({focused:!1}),U&&U()},m.onKeyDown=function(U){var N=U.keyCode,S=m.props,H=S.count,F=S.allowHalf,R=S.onKeyDown,z=S.direction,Q=z==="rtl",$=m.state.value;N===t.a.RIGHT&&$<H&&!Q?(F?$+=.5:$+=1,m.changeValue($),U.preventDefault()):N===t.a.LEFT&&$>0&&!Q||N===t.a.RIGHT&&$>0&&Q?(F?$-=.5:$-=1,m.changeValue($),U.preventDefault()):N===t.a.LEFT&&$<H&&Q&&(F?$+=.5:$+=1,m.changeValue($),U.preventDefault()),R&&R(U)},m.saveRef=function(U){return function(N){m.stars[U]=N}},m.saveRate=function(U){m.rate=U};var y=T.value;return y===void 0&&(y=T.defaultValue),m.stars={},m.state={value:y,focused:!1,cleanedValue:null},m}return Object(I.a)(g,[{key:"componentDidMount",value:function(){var m=this.props,y=m.autoFocus,U=m.disabled;y&&!U&&this.focus()}},{key:"getStarDOM",value:function(m){return Object(n.a)(this.stars[m])}},{key:"getStarValue",value:function(m,y){var U=this.props,N=U.allowHalf,S=U.direction,H=S==="rtl",F=m+1;if(N){var R=this.getStarDOM(m),z=i(R),Q=R.clientWidth;(H&&y-z>Q/2||!H&&y-z<Q/2)&&(F-=.5)}return F}},{key:"focus",value:function(){var m=this.props.disabled;m||this.rate.focus()}},{key:"blur",value:function(){var m=this.props.disabled;m||this.rate.blur()}},{key:"changeValue",value:function(m){var y=this.props.onChange;"value"in this.props||this.setState({value:m}),y(m)}},{key:"render",value:function(){for(var m=this.props,y=m.count,U=m.allowHalf,N=m.style,S=m.prefixCls,H=m.disabled,F=m.className,R=m.character,z=m.characterRender,Q=m.tabIndex,$=m.direction,ee=this.state,fe=ee.value,Ae=ee.hoverValue,ce=ee.focused,ie=[],be=H?"".concat(S,"-disabled"):"",se=0;se<y;se+=1)ie.push(x.a.createElement(f,{ref:this.saveRef(se),index:se,count:y,disabled:H,prefixCls:"".concat(S,"-star"),allowHalf:U,value:Ae===void 0?fe:Ae,onClick:this.onClick,onHover:this.onHover,key:se,character:R,characterRender:z,focused:ce}));var me=a()(S,be,F,Object(Z.a)({},"".concat(S,"-rtl"),$==="rtl"));return x.a.createElement("ul",{className:me,style:N,onMouseLeave:H?null:this.onMouseLeave,tabIndex:H?-1:Q,onFocus:H?null:this.onFocus,onBlur:H?null:this.onBlur,onKeyDown:H?null:this.onKeyDown,ref:this.saveRate,role:"radiogroup"},ie)}}],[{key:"getDerivedStateFromProps",value:function(m,y){return"value"in m&&m.value!==void 0?c(c({},y),{},{value:m.value}):y}}]),g}(x.a.Component);P.defaultProps={defaultValue:0,count:5,allowHalf:!1,allowClear:!0,style:{},prefixCls:"rc-rate",onChange:w,character:"\u2605",onHoverChange:w,tabIndex:0,direction:"ltr"};var C=P,b=te.a=C},"9+Du":function(Re,te,v){"use strict";var Z=v("k1fw"),K=v("9og8"),I=v("tJVT"),k=v("WmNS"),_=v.n(k),O=v("q1tI"),M=v.n(O),x=v("ErOA"),n=v("7Cbv"),p=v("TSYQ"),a=v.n(p),t=v("vef1"),h=v.n(t),s=function(u,d){var f=u.chunkSize,o=f===void 0?1024*1024*2:f,c=u.options,E=c===void 0?{}:c,B=u.onCancel,w=u.onComplete,P=u.onError,C=u.onProgress,b=u.onBefore,l=u.onBeginInitFile,A=u.children,g=u.accept,T=u.className,m=u.style,y=m===void 0?{}:m,U=u.concurrency,N=U===void 0?4:U,S=Object(O.useState)("ready"),H=Object(I.a)(S,2),F=H[0],R=H[1],z=Object(O.useState)(0),Q=Object(I.a)(z,2),$=Q[0],ee=Q[1],fe=Object(O.useState)(""),Ae=Object(I.a)(fe,2),ce=Ae[0],ie=Ae[1],be=Object(O.useState)(null),se=Object(I.a)(be,2),me=se[0],le=se[1],ge=Object(O.useRef)(null),ae=Object(O.useRef)(Object(n.a)()),pe=Object(O.useRef)(!1);Object(O.useImperativeHandle)(d,function(){return{cancel:Ke,file:me,uploadStatus:F}});var Me=function(){var Se=document.getElementById(ae.current);Se&&(Se.value="")},xe=function(){var he=Object(K.a)(_.a.mark(function Se(Ue){var Ne,ct;return _.a.wrap(function(Rt){for(;;)switch(Rt.prev=Rt.next){case 0:if(!(F==="uploading")){Rt.next=2;break}return Rt.abrupt("return");case 2:return l&&l(Ue),Ne=Ue.size,ct=Math.ceil(Ne/o),pe.current=!1,R("uploading"),ee(0),ie(""),Rt.prev=9,Rt.delegateYield(_.a.mark(function ht(){var Ut,zt,ze,Ve,Et,Ot,ut,vt,Ze,ke,He,we;return _.a.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return Pe.next=2,Object(x.a)("/api/attachments/multipart_upload_start",{method:"POST",body:Object(Z.a)({fileName:Ue.name,chunkCount:ct},E)});case 2:if(Ut=Pe.sent,!(pe.current||(Ut==null?void 0:Ut.status)!==0)){Pe.next=5;break}throw new Error;case 5:for(zt=Ut.upload_id,ge.current=new AbortController,ze=[],Ve=0,Et=function(Xe){var gt=Xe*o,Lt=Math.min(gt+o,Ne),en=Ue.slice(gt,Lt),Zt=new FormData;Zt.append("chunk",en),Zt.append("fileName",Ue.name),Zt.append("chunkIndex",(Xe+1).toString()),Zt.append("uploadId",zt);for(var xt in E)Object.prototype.hasOwnProperty.call(E,xt)&&Zt.append(xt,E[xt]);ze.push(function(){return Object(x.a)("/api/attachments/multipart_upload",{method:"POST",body:Zt,signal:ge.current.signal},!0).then(function(Ct){Ve++;var pt=Math.round(Ve/ct*100);ee(pt),C&&C(Object(Z.a)(Object(Z.a)({},Ct),{},{file:Ue,percent:pt}))})})},Ot=0;Ot<ct;Ot++)Et(Ot);ut=0,vt=N;case 13:if(!(ut<ze.length)){Pe.next=22;break}if(ke=(Ze=ze.slice(ut,ut+vt))===null||Ze===void 0?void 0:Ze.map(function(We){return We()}),!(ke.length>0)){Pe.next=20;break}return Pe.next=18,Promise.all(ke);case 18:He=Pe.sent,ut+=vt;case 20:Pe.next=13;break;case 22:return Pe.next=24,Object(x.a)("/api/attachments/multipart_upload_end",{method:"POST",body:Object(Z.a)({fileName:Ue.name,chunkCount:ct,uploadId:zt},E)});case 24:we=Pe.sent,we.object?(R("success"),Me(),w&&w(Object(Z.a)(Object(Z.a)({},we),{},{file:Ue,percent:100}))):(R("error"),ie("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5"),Me(),P&&P(Ue.name));case 26:case"end":return Pe.stop()}},ht)})(),"t0",11);case 11:Rt.next=19;break;case 13:Rt.prev=13,Rt.t1=Rt.catch(9),R("error"),ie("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5"),Me(),P&&P(Ue.name);case 19:case"end":return Rt.stop()}},Se,null,[[9,13]])}));return function(Ue){return he.apply(this,arguments)}}(),Ke=Object(O.useCallback)(function(){pe.current=!0,ge.current&&(ge.current.abort(),B&&B())},[B]),tt=function(Se){var Ue,Ne,ct=Se==null||((Ue=Se.target)===null||Ue===void 0||((Ne=Ue.files)===null||Ne===void 0))?void 0:Ne[0];if(le(ct),F="ready",!ct)return;if(b){var mt=b(ct);mt||xe(ct),Me();return}xe(ct)};return M.a.createElement(O.Fragment,null,M.a.createElement("input",{type:"file",id:ae.current,style:{display:"none"},onChange:tt,accept:g}),M.a.createElement("label",{className:a()(h.a.upload,T),htmlFor:ae.current,style:y},A))};te.a=Object(O.forwardRef)(s)},"9Bee":function(Re,te,v){"use strict";var Z=v("DYRE"),K=v("zeV3"),I=v("+L6B"),k=v("2/Rp"),_=v("k1fw"),O=v("9og8"),M=v("tJVT"),x=v("WmNS"),n=v.n(x),p=v("q1tI"),a=v.n(p),t=v("vg9a"),h=v("DlQD"),s=v.n(h),i=v("rUJ1");function u(re,W){var V=re.match(/^(\s+)(?:```)/);if(V===null)return W;var ne=V[1];return W.split(`
|
|
`).map(function(ve){var oe=ve.match(/^\s+/);if(oe===null)return ve;var et=Object(M.a)(oe,1),Qt=et[0];return Qt.length>=ne.length?ve.slice(ne.length):ve}).join(`
|
|
`)}var d=[],f=["<ul>"],o=new s.a.Renderer,c=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function E(){d.length=0,f=["<ul>"]}var B={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function w(re,W,V,ne){if(W>=re.length||re[W].level<=V)return W;var ve=re[W];ne.push("<li><a href='#"+ve.anchor+"'>"+ve.text+"</a>"),W++;var oe=[];return W=w(re,W,ve.level,oe),oe.length>0&&(ne.push("<ul>"),oe.forEach(function(et){ne.push(et)}),ne.push("</ul>")),ne.push("</li>"),W=w(re,W,V,ne),W}function P(){return w(d,0,0,f),f.push("</ul>"),f.join("")}var C={heading:function(W){var V=c.exec(W);if(V)return{type:"heading",raw:V[0],depth:V[1].length,text:V[2]}},fences:function(W){var V=this.rules.block.fences.exec(W);if(V){var ne=V[0],ve=u(ne,V[3]||""),oe=V[2]?V[2].trim():V[2];if(["latex","katex","math"].indexOf(oe)>=0){var et=A(),Qt=ve;ve=et,g[et]={type:"block",expression:Qt}}return{type:"code",raw:ne,lang:oe,text:ve}}}},b=/(?:\${2})([^\n`]+?)(?:\${2})/gi,l=0,A=function(){return"__special_katext_id_".concat(l++,"__")},g={};function T(){return g}function m(){l=0,g={}}function y(re){return re=re.replace(b,function(W,V){var ne=A();return g[ne]={type:"inline",expression:V},ne}),re}var U=o.listitem;o.listitem=function(re){return U(y(re))};var N=o.paragraph;o.paragraph=function(re){return N(y(re))};var S=o.tablecell;o.tablecell=function(re,W){return S(y(re),W)},o.code=function(re,W,V){var ne=(W||"").match(/\S*/)[0];return ne?["latex","katex","math"].indexOf(ne)>=0?"<p class='editormd-tex'>".concat(re,"</p>"):'<pre class="prettyprint linenums"><code class="language-'.concat(W,'">').concat(V?re:Object(i.escape)(re,!0),`</code></pre>
|
|
`):'<pre class="prettyprint linenums"><code>'+(V?re:Object(i.escape)(re,!0))+"</code></pre>"},o.heading=function(re,W,V){var ne=this.options.headerPrefix+V.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return d.push({anchor:ne,level:W,text:re}),"<h"+W+' id="'+ne+'">'+re+"</h"+W+">"},s.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),s.a.use({tokenizer:C,renderer:o});var H=s.a,F=v("SJMd"),R=v("ulZh"),z=v.n(R),Q=v("m3rI"),$=v("Oy/b"),ee=v("p5ED"),fe=v("ErOA");/*! *****************************************************************************
|
|
Copyright (c) Microsoft Corporation.
|
|
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
purpose with or without fee is hereby granted.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
PERFORMANCE OF THIS SOFTWARE.
|
|
***************************************************************************** */var Ae=function(re,W){return(Ae=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(V,ne){V.__proto__=ne}||function(V,ne){for(var ve in ne)Object.prototype.hasOwnProperty.call(ne,ve)&&(V[ve]=ne[ve])})(re,W)};function ce(re,W){function V(){this.constructor=re}Ae(re,W),re.prototype=W===null?Object.create(W):(V.prototype=W.prototype,new V)}function ie(re,W,V,ne){return new(V||(V=Promise))(function(ve,oe){function et(Cn){try{dn(ne.next(Cn))}catch(Jt){oe(Jt)}}function Qt(Cn){try{dn(ne.throw(Cn))}catch(Jt){oe(Jt)}}function dn(Cn){var Jt;Cn.done?ve(Cn.value):(Jt=Cn.value,Jt instanceof V?Jt:new V(function(Vn){Vn(Jt)})).then(et,Qt)}dn((ne=ne.apply(re,W||[])).next())})}function be(re,W){var V,ne,ve,oe,et={label:0,sent:function(){if(1&ve[0])throw ve[1];return ve[1]},trys:[],ops:[]};return oe={next:Qt(0),throw:Qt(1),return:Qt(2)},typeof Symbol=="function"&&(oe[Symbol.iterator]=function(){return this}),oe;function Qt(dn){return function(Cn){return function(Jt){if(V)throw new TypeError("Generator is already executing.");for(;et;)try{if(V=1,ne&&(ve=2&Jt[0]?ne.return:Jt[0]?ne.throw||((ve=ne.return)&&ve.call(ne),0):ne.next)&&!(ve=ve.call(ne,Jt[1])).done)return ve;switch(ne=0,ve&&(Jt=[2&Jt[0],ve.value]),Jt[0]){case 0:case 1:ve=Jt;break;case 4:return et.label++,{value:Jt[1],done:!1};case 5:et.label++,ne=Jt[1],Jt=[0];continue;case 7:Jt=et.ops.pop(),et.trys.pop();continue;default:if(!(ve=et.trys,(ve=ve.length>0&&ve[ve.length-1])||Jt[0]!==6&&Jt[0]!==2)){et=0;continue}if(Jt[0]===3&&(!ve||Jt[1]>ve[0]&&Jt[1]<ve[3])){et.label=Jt[1];break}if(Jt[0]===6&&et.label<ve[1]){et.label=ve[1],ve=Jt;break}if(ve&&et.label<ve[2]){et.label=ve[2],et.ops.push(Jt);break}ve[2]&&et.ops.pop(),et.trys.pop();continue}Jt=W.call(re,et)}catch(Vn){Jt=[6,Vn],ne=0}finally{V=ve=0}if(5&Jt[0])throw Jt[1];return{value:Jt[0]?Jt[1]:void 0,done:!0}}([dn,Cn])}}}function se(){for(var re=0,W=0,V=arguments.length;W<V;W++)re+=arguments[W].length;var ne=Array(re),ve=0;for(W=0;W<V;W++)for(var oe=arguments[W],et=0,Qt=oe.length;et<Qt;et++,ve++)ne[ve]=oe[et];return ne}var me=function(){function re(){}return re.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},re.setAttributes=function(W,V){for(var ne=0,ve=V;ne<ve.length;ne++){var oe=ve[ne],et=oe[0],Qt=oe[1];W.setAttribute(et,Qt)}},re.createRect=function(W,V,ne){var ve=document.createElementNS("http://www.w3.org/2000/svg","rect");return ve.setAttribute("width",W.toString()),ve.setAttribute("height",V.toString()),ne&&re.setAttributes(ve,ne),ve},re.createLine=function(W,V,ne,ve,oe){var et=document.createElementNS("http://www.w3.org/2000/svg","line");return et.setAttribute("x1",W.toString()),et.setAttribute("y1",V.toString()),et.setAttribute("x2",ne.toString()),et.setAttribute("y2",ve.toString()),oe&&re.setAttributes(et,oe),et},re.createPolygon=function(W,V){var ne=document.createElementNS("http://www.w3.org/2000/svg","polygon");return ne.setAttribute("points",W),V&&re.setAttributes(ne,V),ne},re.createCircle=function(W,V){var ne=document.createElementNS("http://www.w3.org/2000/svg","circle");return ne.setAttribute("cx",(W/2).toString()),ne.setAttribute("cy",(W/2).toString()),ne.setAttribute("r",W.toString()),V&&re.setAttributes(ne,V),ne},re.createEllipse=function(W,V,ne){var ve=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return ve.setAttribute("cx",(W/2).toString()),ve.setAttribute("cy",(V/2).toString()),ve.setAttribute("rx",(W/2).toString()),ve.setAttribute("ry",(V/2).toString()),ne&&re.setAttributes(ve,ne),ve},re.createGroup=function(W){var V=document.createElementNS("http://www.w3.org/2000/svg","g");return W&&re.setAttributes(V,W),V},re.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},re.createMarker=function(W,V,ne,ve,oe,et,Qt){var dn=document.createElementNS("http://www.w3.org/2000/svg","marker");return re.setAttributes(dn,[["id",W],["orient",V],["markerWidth",ne.toString()],["markerHeight",ve.toString()],["refX",oe.toString()],["refY",et.toString()]]),dn.appendChild(Qt),dn},re.createText=function(W){var V=document.createElementNS("http://www.w3.org/2000/svg","text");return V.setAttribute("x","0"),V.setAttribute("y","0"),W&&re.setAttributes(V,W),V},re.createTSpan=function(W,V){var ne=document.createElementNS("http://www.w3.org/2000/svg","tspan");return ne.textContent=W,V&&re.setAttributes(ne,V),ne},re.createImage=function(W){var V=document.createElementNS("http://www.w3.org/2000/svg","image");return W&&re.setAttributes(V,W),V},re.createPoint=function(W,V){var ne=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return ne.x=W,ne.y=V,ne},re.createPath=function(W,V){var ne=document.createElementNS("http://www.w3.org/2000/svg","path");return ne.setAttribute("d",W),V&&re.setAttributes(ne,V),ne},re}(),le=function(){function re(){}return re.addKey=function(W){re.key=W},Object.defineProperty(re,"isLicensed",{get:function(){return!!re.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(re.key)},enumerable:!1,configurable:!0}),re}(),ge=function(){function re(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return re.prototype.rasterize=function(W,V,ne){var ve=this;return new Promise(function(oe){var et=ne!==void 0?ne:document.createElement("canvas");W===null&&(ve.markersOnly=!0,ve.naturalSize=!1);var Qt=document.createElementNS("http://www.w3.org/2000/svg","svg");Qt.setAttribute("xmlns","http://www.w3.org/2000/svg"),Qt.setAttribute("width",V.width.baseVal.valueAsString),Qt.setAttribute("height",V.height.baseVal.valueAsString),Qt.setAttribute("viewBox","0 0 "+V.viewBox.baseVal.width.toString()+" "+V.viewBox.baseVal.height.toString()),Qt.innerHTML=V.innerHTML,ve.naturalSize===!0?(Qt.width.baseVal.value=W.naturalWidth,Qt.height.baseVal.value=W.naturalHeight):ve.width!==void 0&&ve.height!==void 0&&(Qt.width.baseVal.value=ve.width,Qt.height.baseVal.value=ve.height),et.width=Qt.width.baseVal.value,et.height=Qt.height.baseVal.value;var dn=Qt.outerHTML,Cn=et.getContext("2d");ve.markersOnly!==!0&&Cn.drawImage(W,0,0,et.width,et.height);var Jt=window.URL,Vn=new Image(et.width,et.height);Vn.setAttribute("crossOrigin","anonymous");var Xn=new Blob([dn],{type:"image/svg+xml"}),lr=Jt.createObjectURL(Xn);Vn.onload=function(){Cn.drawImage(Vn,0,0),Jt.revokeObjectURL(lr);var Rr=et.toDataURL(ve.imageType,ve.imageQuality);oe(Rr)},Vn.src=lr})},re}(),ae=function(){},pe=function(){function re(W){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+W+"_"}return Object.defineProperty(re.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(re.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(re.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),re.prototype.addClass=function(W){return this.styleSheet===void 0&&this.addStyleSheet(),W.name=""+this.classNamePrefix+W.localName,this.classes.push(W),this.styleSheet.sheet.insertRule("."+W.name+" {"+W.style+"}",this.styleSheet.sheet.cssRules.length),W},re.prototype.addRule=function(W){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(W),this.styleSheet.sheet.insertRule(W.selector+" {"+W.style+"}",this.styleSheet.sheet.cssRules.length)},re.prototype.addStyleSheet=function(){var W;this.styleSheet=document.createElement("style"),((W=this.styleSheetRoot)!==null&&W!==void 0?W:document.head).appendChild(this.styleSheet),this.addRule(new Me("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new Me("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
`)),this.addRule(new Me("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
from {
|
|
opacity: 1;
|
|
}
|
|
to {
|
|
opacity: 0;
|
|
}
|
|
`)),this.addClass(new xe("fade_in",`
|
|
animation-duration: 0.3s;
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
`)),this.addClass(new xe("fade_out",`
|
|
animation-duration: 0.3s;
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
`))},re.prototype.removeStyleSheet=function(){var W;this.styleSheet&&(((W=this.styleSheetRoot)!==null&&W!==void 0?W:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},re}(),Me=function(re,W){this.selector=re,this.style=W},xe=function(re,W){this.localName=re,this.style=W},Ke=function(){function re(W,V,ne,ve,oe){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=W,this.displayMode=V,this.markerItems=ne,this.uiStyleSettings=ve,this.styles=oe,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return re.prototype.show=function(W){var V=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=W,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var ne=document.createElement("div");ne.className=this.toolbarBlockStyleClass.name,ne.style.whiteSpace="nowrap",this.uiContainer.appendChild(ne),this.addActionButton(ne,'<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(ne,'<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(ne,'<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(ne,'<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(ne,'<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(ne,'<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(ne,'<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(ne,'<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(oe){var et=document.createElement("div");et.className=""+V.toolbarButtonStyleClass.name,et.setAttribute("data-type-name",oe.typeName),et.innerHTML=oe.icon,et.addEventListener("click",function(){V.markerToolbarButtonClicked(et,oe)}),V.buttons.push(et),V.markerButtons.push(et)}),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 ve=document.createElement("div");ve.className=this.toolbarBlockStyleClass.name,ve.style.whiteSpace="nowrap",ve.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(ve),this.addActionButton(ve,'<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(ve,'<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()},re.prototype.addButtonClickListener=function(W){this.buttonClickListeners.push(W)},re.prototype.removeButtonClickListener=function(W){this.buttonClickListeners.indexOf(W)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(W),1)},re.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},re.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var W=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var V=0;V<this.markerButtons.length;V++)V<W||V===W&&this.markerButtons.length-1===W?this.markerButtonBlock.appendChild(this.markerButtons[V]):(V===W&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[V]))}},re.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")},re.prototype.resetButtonStyles=function(){var W=this;this.buttons.forEach(function(V){V.className=V.className.replace(W.uiStyleSettings.toolbarButtonStyleColorsClassName?W.uiStyleSettings.toolbarButtonStyleColorsClassName:W.toolbarButtonStyleColorsClass.name,"").trim(),V.className=V.className.replace(W.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?W.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:W.toolbarActiveButtonStyleColorsClass.name,"").trim(),V.className+=" "+(W.uiStyleSettings.toolbarButtonStyleColorsClassName?W.uiStyleSettings.toolbarButtonStyleColorsClassName:W.toolbarButtonStyleColorsClass.name)})},re.prototype.addActionButton=function(W,V,ne){var ve=this,oe=document.createElement("div");switch(oe.className=""+this.toolbarButtonStyleClass.name,oe.innerHTML=V,oe.setAttribute("data-action",ne),oe.addEventListener("click",function(){ve.actionToolbarButtonClicked(oe,ne)}),ne){case"select":oe.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":oe.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":oe.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":oe.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":oe.style.fill=this.uiStyleSettings.closeButtonColor}W.appendChild(oe),this.buttons.push(oe)},re.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new xe("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 xe("toolbar_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new xe("toolbar-block",`
|
|
display: inline-block;
|
|
box-sizing: content-box;
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new xe("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 xe("toolbar-overflow-block_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
`));var W=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new xe("toolbar_button",`
|
|
display: inline-block;
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*W)+`px;
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*W)+`px;
|
|
padding: `+W+`px;
|
|
box-sizing: content-box;
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new xe("toolbar_button_colors",`
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new xe("toolbar_active_button",`
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
`)),this.styles.addRule(new Me("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
`)),this.styles.addRule(new Me("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
`))},re.prototype.markerToolbarButtonClicked=function(W,V){this.setActiveButton(W),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(ne){return ne("marker",V)}),this.markerButtonOverflowBlock.style.display="none"},re.prototype.actionToolbarButtonClicked=function(W,V){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(ne){return ne("action",V)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},re.prototype.setActiveButton=function(W){this.resetButtonStyles(),W.className=W.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),W.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},re.prototype.setActiveMarkerButton=function(W){var V=this.markerButtons.find(function(ne){return ne.getAttribute("data-type-name")===W});V&&this.setActiveButton(V)},re.prototype.setCurrentMarker=function(W){var V=this;this.currentMarker=W,this.buttons.filter(function(ne){return/delete|notes/.test(ne.getAttribute("data-action"))}).forEach(function(ne){V.currentMarker===void 0?(ne.style.fillOpacity="0.4",ne.style.pointerEvents="none"):(ne.style.fillOpacity="1",ne.style.pointerEvents="all")})},re}(),tt=function(){function re(W,V,ne,ve){this.panels=[],this.panelButtons=[],this.markerjsContainer=W,this.displayMode=V,this.uiStyleSettings=ne,this.styles=ve,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return re.prototype.addStyles=function(){var W;this.toolboxStyleClass=this.styles.addClass(new xe("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 xe("toolbox_colors",`
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
`));var V=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new xe("toolbox-button-row",`
|
|
display: flex;
|
|
cursor: default;
|
|
box-sizing: content-box;
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new xe("toolbox-button-row_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new xe("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 xe("toolbox-panel-row_colors",`
|
|
background-color: `+((W=this.uiStyleSettings.toolboxBackgroundColor)!==null&&W!==void 0?W:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new xe("toolbox_button",`
|
|
display: inline-block;
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*V)+`px;
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*V)+`px;
|
|
padding: `+V+`px;
|
|
box-sizing: content-box;
|
|
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new xe("toolbox-button_colors",`
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new xe("toolbox-active-button_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
`)),this.styles.addRule(new Me("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
`)),this.styles.addRule(new Me("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
`))},re.prototype.show=function(W){var V;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=W,this.uiContainer.className=this.toolboxStyleClass.name+" "+((V=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&V!==void 0?V:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},re.prototype.setPanelButtons=function(W){var V,ne,ve=this;this.panels=W,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((V=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&V!==void 0?V:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((ne=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&ne!==void 0?ne:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(oe){var et;oe.uiStyleSettings=ve.uiStyleSettings;var Qt=document.createElement("div");Qt.className=ve.toolboxButtonStyleClass.name+" "+((et=ve.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&et!==void 0?et:ve.toolboxButtonStyleColorsClass.name),Qt.innerHTML=oe.icon,Qt.title=oe.title,Qt.addEventListener("click",function(){ve.panelButtonClick(oe)}),ve.panelButtons.push(Qt),ve.buttonRow.appendChild(Qt)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},re.prototype.panelButtonClick=function(W){var V=this,ne=-1;if(W!==this.activePanel){ne=this.panels.indexOf(W),this.panelRow.innerHTML="";var ve=W.getUi();ve.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(ve),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=W}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){V.displayMode==="inline"?V.panelRow.style.display="none":V.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(oe,et){var Qt,dn;oe.className=V.toolboxButtonStyleClass.name+" "+(et===ne?""+((Qt=V.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Qt!==void 0?Qt:V.toolboxActiveButtonStyleColorsClass.name):""+((dn=V.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&dn!==void 0?dn:V.toolboxButtonStyleColorsClass.name))})},re}(),he=function(re,W){this.title=re,this.icon=W},Se=function(re){function W(V,ne,ve,oe){var et=re.call(this,V,oe||'<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 et.colors=[],et.addTransparent=!1,et.colorBoxes=[],et.colors=ne,et.currentColor=ve,et.setCurrentColor=et.setCurrentColor.bind(et),et.getColorBox=et.getColorBox.bind(et),et}return ce(W,re),W.prototype.getUi=function(){var V=this,ne=document.createElement("div");return ne.style.overflow="hidden",ne.style.whiteSpace="nowrap",this.colors.forEach(function(ve){var oe=V.getColorBox(ve);ne.appendChild(oe),V.colorBoxes.push(oe)}),ne},W.prototype.getColorBox=function(V){var ne=this,ve=this.uiStyleSettings.toolbarHeight/4,oe=this.uiStyleSettings.toolbarHeight-ve,et=document.createElement("div");et.style.display="inline-block",et.style.boxSizing="content-box",et.style.width=oe-2+"px",et.style.height=oe-2+"px",et.style.padding="1px",et.style.marginRight="2px",et.style.marginBottom="2px",et.style.borderWidth="2px",et.style.borderStyle="solid",et.style.borderRadius=(oe+2)/2+"px",et.style.borderColor=V===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",et.addEventListener("click",function(){ne.setCurrentColor(V,et)});var Qt=document.createElement("div");return Qt.style.display="inline-block",Qt.style.width=oe-2+"px",Qt.style.height=oe-2+"px",Qt.style.backgroundColor=V,Qt.style.borderRadius=oe/2+"px",V==="transparent"&&(Qt.style.fill=this.uiStyleSettings.toolboxAccentColor,Qt.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>`),et.appendChild(Qt),et},W.prototype.setCurrentColor=function(V,ne){var ve=this;this.currentColor=V,this.colorBoxes.forEach(function(oe){oe.style.borderColor=oe===ne?ve.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(V)},W}(he),Ue=function(){function re(W,V,ne){this._state="new",this._isSelected=!1,this._container=W,this._overlayContainer=V,this.globalSettings=ne,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(re.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),re.prototype.ownsTarget=function(W){return!1},Object.defineProperty(re.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),re.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},re.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},re.prototype.pointerDown=function(W,V){},re.prototype.dblClick=function(W,V){},re.prototype.manipulate=function(W){},re.prototype.pointerUp=function(W){this.stateChanged()},re.prototype.dispose=function(){},re.prototype.addMarkerVisualToContainer=function(W){this.container.childNodes.length>0?this.container.insertBefore(W,this.container.childNodes[0]):this.container.appendChild(W)},re.prototype.getState=function(){return{typeName:re.typeName,state:this.state,notes:this.notes}},re.prototype.restoreState=function(W){this._state=W.state,this.notes=W.notes},re.prototype.scale=function(W,V){},re.prototype.colorChanged=function(W){this.onColorChanged&&this.onColorChanged(W),this.stateChanged()},re.prototype.fillColorChanged=function(W){this.onFillColorChanged&&this.onFillColorChanged(W),this.stateChanged()},re.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var W=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),W.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(W)&&this.onStateChanged(this)}},re.typeName="MarkerBase",re}(),Ne=function(){function re(){this.findGripByVisual=this.findGripByVisual.bind(this)}return re.prototype.findGripByVisual=function(W){return this.topLeft.ownsTarget(W)?this.topLeft:this.topCenter.ownsTarget(W)?this.topCenter:this.topRight.ownsTarget(W)?this.topRight:this.centerLeft.ownsTarget(W)?this.centerLeft:this.centerRight.ownsTarget(W)?this.centerRight:this.bottomLeft.ownsTarget(W)?this.bottomLeft:this.bottomCenter.ownsTarget(W)?this.bottomCenter:this.bottomRight.ownsTarget(W)?this.bottomRight:void 0},re}(),ct=function(){function re(){this.GRIP_SIZE=10,this.visual=me.createGroup(),this.visual.appendChild(me.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(me.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return re.prototype.ownsTarget=function(W){return W===this.visual||W===this.visual.childNodes[0]||W===this.visual.childNodes[1]},re}(),mt=function(){function re(){}return re.toITransformMatrix=function(W){return{a:W.a,b:W.b,c:W.c,d:W.d,e:W.e,f:W.f}},re.toSVGMatrix=function(W,V){return W.a=V.a,W.b=V.b,W.c=V.c,W.d=V.d,W.e=V.e,W.f=V.f,W},re}(),Rt=function(re){function W(V,ne,ve){var oe=re.call(this,V,ne,ve)||this;return oe.left=0,oe.top=0,oe.width=0,oe.height=0,oe.defaultSize={x:50,y:20},oe.offsetX=0,oe.offsetY=0,oe.rotationAngle=0,oe.CB_DISTANCE=10,oe._suppressMarkerCreateEvent=!1,oe.container.transform.baseVal.appendItem(me.createTransform()),oe.setupControlBox(),oe}return ce(W,re),Object.defineProperty(W.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"visual",{get:function(){return this._visual},set:function(V){this._visual=V;var ne=me.createTransform();this._visual.transform.baseVal.appendItem(ne)},enumerable:!1,configurable:!0}),W.prototype.ownsTarget=function(V){return!!re.prototype.ownsTarget.call(this,V)||!!(this.controlGrips.findGripByVisual(V)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(V))},W.prototype.pointerDown=function(V,ne){re.prototype.pointerDown.call(this,V,ne),this.state==="new"&&(this.left=V.x,this.top=V.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var ve=this.unrotatePoint(V);if(this.manipulationStartX=ve.x,this.manipulationStartY=ve.y,this.offsetX=ve.x-this.left,this.offsetY=ve.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(ne),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ne)){this.activeGrip=this.rotatorGrip;var oe=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=oe.x-this.width/2,this.top=oe.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var et=this.container.transform.baseVal.getItem(0);et.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(et,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},W.prototype.pointerUp=function(V){var ne=this.state;re.prototype.pointerUp.call(this,V),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(V),this._state="select",ne==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},W.prototype.moveVisual=function(V){this.visual.style.transform="translate("+V.x+"px, "+V.y+"px)"},W.prototype.manipulate=function(V){var ne=this.unrotatePoint(V);this.state==="creating"?this.resize(V):this.state==="move"?(this.left=this.manipulationStartLeft+(ne.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(ne.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(ne):this.state==="rotate"&&this.rotate(V)},W.prototype.resize=function(V){var ne=this.manipulationStartLeft,ve=this.manipulationStartWidth,oe=this.manipulationStartTop,et=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:ne=this.manipulationStartLeft+V.x-this.manipulationStartX,ve=this.manipulationStartWidth+this.manipulationStartLeft-ne;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:ve=this.manipulationStartWidth+V.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:oe=this.manipulationStartTop+V.y-this.manipulationStartY,et=this.manipulationStartHeight+this.manipulationStartTop-oe;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:et=this.manipulationStartHeight+V.y-this.manipulationStartY}ve>=0?(this.left=ne,this.width=ve):(this.left=ne+ve,this.width=-ve),et>=0?(this.top=oe,this.height=et):(this.top=oe+et,this.height=-et),this.setSize()},W.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},W.prototype.rotate=function(V){if(Math.abs(V.x-this.centerX)>.1){var ne=Math.sign(V.x-this.centerX);this.rotationAngle=180*Math.atan((V.y-this.centerY)/(V.x-this.centerX))/Math.PI+90*ne,this.applyRotation()}},W.prototype.applyRotation=function(){var V=this.container.transform.baseVal.getItem(0);V.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(V,0)},W.prototype.rotatePoint=function(V){if(this.rotationAngle===0)return V;var ne=this.container.getCTM(),ve=me.createPoint(V.x,V.y);return{x:(ve=ve.matrixTransform(ne)).x,y:ve.y}},W.prototype.unrotatePoint=function(V){if(this.rotationAngle===0)return V;var ne=this.container.getCTM();ne=ne.inverse();var ve=me.createPoint(V.x,V.y);return{x:(ve=ve.matrixTransform(ne)).x,y:ve.y}},W.prototype.select=function(){re.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},W.prototype.deselect=function(){re.prototype.deselect.call(this),this.controlBox.style.display="none"},W.prototype.setupControlBox=function(){this.controlBox=me.createGroup();var V=me.createTransform();V.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(V),this.container.appendChild(this.controlBox),this.controlRect=me.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=me.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 Ne,this.addControlGrips(),this.controlBox.style.display="none"},W.prototype.adjustControlBox=function(){var V=this.controlBox.transform.baseVal.getItem(0);V.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(V,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()},W.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()},W.prototype.createGrip=function(){var V=new ct;return V.visual.transform.baseVal.appendItem(me.createTransform()),this.controlBox.appendChild(V.visual),V},W.prototype.positionGrips=function(){var V=this.controlGrips.topLeft.GRIP_SIZE,ne=-V/2,ve=ne,oe=(this.width+this.CB_DISTANCE)/2-V/2,et=(this.height+this.CB_DISTANCE)/2-V/2,Qt=this.height+this.CB_DISTANCE-V/2,dn=this.width+this.CB_DISTANCE-V/2;this.positionGrip(this.controlGrips.topLeft.visual,ne,ve),this.positionGrip(this.controlGrips.topCenter.visual,oe,ve),this.positionGrip(this.controlGrips.topRight.visual,dn,ve),this.positionGrip(this.controlGrips.centerLeft.visual,ne,et),this.positionGrip(this.controlGrips.centerRight.visual,dn,et),this.positionGrip(this.controlGrips.bottomLeft.visual,ne,Qt),this.positionGrip(this.controlGrips.bottomCenter.visual,oe,Qt),this.positionGrip(this.controlGrips.bottomRight.visual,dn,Qt),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,oe,ve-3*this.CB_DISTANCE)},W.prototype.positionGrip=function(V,ne,ve){var oe=V.transform.baseVal.getItem(0);oe.setTranslate(ne,ve),V.transform.baseVal.replaceItem(oe,0)},W.prototype.hideControlBox=function(){this.controlBox.style.display="none"},W.prototype.showControlBox=function(){this.controlBox.style.display=""},W.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:mt.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:mt.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},re.prototype.getState.call(this))},W.prototype.restoreState=function(V){re.prototype.restoreState.call(this,V);var ne=V;this.left=ne.left,this.top=ne.top,this.width=ne.width,this.height=ne.height,this.rotationAngle=ne.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(mt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,ne.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(mt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,ne.containerTransformMatrix))},W.prototype.scale=function(V,ne){re.prototype.scale.call(this,V,ne);var ve=this.rotatePoint({x:this.left,y:this.top}),oe=this.unrotatePoint({x:ve.x*V,y:ve.y*ne});this.left=oe.x,this.top=oe.y,this.width=this.width*V,this.height=this.height*ne,this.adjustControlBox()},W}(Ue),ht=function(re){function W(V,ne,ve){var oe=re.call(this,V,ne,ve)||this;return oe.fillColor="transparent",oe.strokeColor="transparent",oe.strokeWidth=0,oe.strokeDasharray="",oe.opacity=1,oe.setStrokeColor=oe.setStrokeColor.bind(oe),oe.setFillColor=oe.setFillColor.bind(oe),oe.setStrokeWidth=oe.setStrokeWidth.bind(oe),oe.setStrokeDasharray=oe.setStrokeDasharray.bind(oe),oe.createVisual=oe.createVisual.bind(oe),oe}return ce(W,re),W.prototype.ownsTarget=function(V){return!(!re.prototype.ownsTarget.call(this,V)&&V!==this.visual)},W.prototype.createVisual=function(){this.visual=me.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)},W.prototype.pointerDown=function(V,ne){re.prototype.pointerDown.call(this,V,ne),this.state==="new"&&(this.createVisual(),this.moveVisual(V),this._state="creating")},W.prototype.manipulate=function(V){re.prototype.manipulate.call(this,V)},W.prototype.resize=function(V){re.prototype.resize.call(this,V),this.setSize()},W.prototype.setSize=function(){re.prototype.setSize.call(this),me.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},W.prototype.pointerUp=function(V){re.prototype.pointerUp.call(this,V),this.setSize()},W.prototype.setStrokeColor=function(V){this.strokeColor=V,this.visual&&me.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(V),this.stateChanged()},W.prototype.setFillColor=function(V){this.fillColor=V,this.visual&&me.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},W.prototype.setStrokeWidth=function(V){this.strokeWidth=V,this.visual&&me.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},W.prototype.setStrokeDasharray=function(V){this.strokeDasharray=V,this.visual&&me.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},W.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},re.prototype.getState.call(this))},W.prototype.restoreState=function(V){var ne=V;this.fillColor=ne.fillColor,this.strokeColor=ne.strokeColor,this.strokeWidth=ne.strokeWidth,this.strokeDasharray=ne.strokeDasharray,this.opacity=ne.opacity,this.createVisual(),re.prototype.restoreState.call(this,V),this.setSize()},W.prototype.scale=function(V,ne){re.prototype.scale.call(this,V,ne),this.setSize()},W.title="Rectangle marker",W}(Rt),Ut=function(re){function W(V,ne,ve,oe){var et=re.call(this,V,oe||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return et.widths=[],et.widthBoxes=[],et.widths=ne,et.currentWidth=ve,et.setCurrentWidth=et.setCurrentWidth.bind(et),et}return ce(W,re),W.prototype.getUi=function(){var V=this,ne=document.createElement("div");return ne.style.display="flex",ne.style.overflow="hidden",ne.style.flexGrow="2",this.widths.forEach(function(ve){var oe=document.createElement("div");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=ve===V.currentWidth?V.uiStyleSettings.toolboxAccentColor:"transparent",oe.addEventListener("click",function(){V.setCurrentWidth(ve,oe)}),ne.appendChild(oe);var et=document.createElement("div");et.innerText=ve.toString(),et.style.marginRight="5px",oe.appendChild(et);var Qt=document.createElement("div");Qt.style.minHeight="20px",Qt.style.flexGrow="2",Qt.style.display="flex",Qt.style.alignItems="center";var dn=document.createElement("hr");dn.style.minWidth="20px",dn.style.border="0px",dn.style.borderTop=ve+"px solid "+V.uiStyleSettings.toolboxColor,dn.style.flexGrow="2",Qt.appendChild(dn),oe.appendChild(Qt),V.widthBoxes.push(oe)}),ne},W.prototype.setCurrentWidth=function(V,ne){var ve=this;this.currentWidth=V,this.widthBoxes.forEach(function(oe){oe.style.borderColor=oe===ne?ve.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},W}(he),zt=function(re){function W(V,ne,ve,oe){var et=re.call(this,V,oe||'<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 et.styles=[],et.styleBoxes=[],et.styles=ne,et.currentStyle=ve,et.setCurrentStyle=et.setCurrentStyle.bind(et),et}return ce(W,re),W.prototype.getUi=function(){var V=this,ne=document.createElement("div");return ne.style.display="flex",ne.style.overflow="hidden",ne.style.flexGrow="2",this.styles.forEach(function(ve){var oe=document.createElement("div");oe.style.display="flex",oe.style.alignItems="center",oe.style.justifyContent="space-between",oe.style.padding="5px",oe.style.borderWidth="2px",oe.style.borderStyle="solid",oe.style.overflow="hidden",oe.style.maxWidth=100/V.styles.length-5+"%",oe.style.borderColor=ve===V.currentStyle?V.uiStyleSettings.toolboxAccentColor:"transparent",oe.addEventListener("click",function(){V.setCurrentStyle(ve,oe)}),ne.appendChild(oe);var et=document.createElement("div");et.style.minHeight="20px",et.style.flexGrow="2",et.style.overflow="hidden";var Qt=`<svg width="100" height="20">
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+V.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(ve!==""?'stroke-dasharray="'+ve+'"':"")+` />
|
|
</svg>`;et.innerHTML=Qt,oe.appendChild(et),V.styleBoxes.push(oe)}),ne},W.prototype.setCurrentStyle=function(V,ne){var ve=this;this.currentStyle=V,this.styleBoxes.forEach(function(oe){oe.style.borderColor=oe===ne?ve.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},W}(he),ze=function(re){function W(V,ne,ve){var oe=re.call(this,V,ne,ve)||this;return oe.strokeColor=ve.defaultColor,oe.strokeWidth=ve.defaultStrokeWidth,oe.strokeDasharray=ve.defaultStrokeDasharray,oe.strokePanel=new Se("Line color",ve.defaultColorSet,ve.defaultColor),oe.strokePanel.onColorChanged=oe.setStrokeColor,oe.strokeWidthPanel=new Ut("Line width",ve.defaultStrokeWidths,ve.defaultStrokeWidth),oe.strokeWidthPanel.onWidthChanged=oe.setStrokeWidth,oe.strokeStylePanel=new zt("Line style",ve.defaultStrokeDasharrays,ve.defaultStrokeDasharray),oe.strokeStylePanel.onStyleChanged=oe.setStrokeDasharray,oe}return ce(W,re),Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),W.prototype.getState=function(){var V=re.prototype.getState.call(this);return V.typeName=W.typeName,V},W.typeName="FrameMarker",W.title="Frame marker",W.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',W}(ht),Ve=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},Et=function(re){function W(V,ne,ve){var oe=re.call(this,V,ne,ve)||this;return oe.x1=0,oe.y1=0,oe.x2=0,oe.y2=0,oe.defaultLength=50,oe.manipulationStartX=0,oe.manipulationStartY=0,oe.manipulationStartX1=0,oe.manipulationStartY1=0,oe.manipulationStartX2=0,oe.manipulationStartY2=0,oe.setupControlBox(),oe}return ce(W,re),W.prototype.ownsTarget=function(V){return!!re.prototype.ownsTarget.call(this,V)||!(!this.grip1.ownsTarget(V)&&!this.grip2.ownsTarget(V))},W.prototype.pointerDown=function(V,ne){re.prototype.pointerDown.call(this,V,ne),this.manipulationStartX=V.x,this.manipulationStartY=V.y,this.state==="new"&&(this.x1=V.x,this.y1=V.y,this.x2=V.x,this.y2=V.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(ne)?this.activeGrip=this.grip1:this.grip2.ownsTarget(ne)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},W.prototype.pointerUp=function(V){var ne=this.state;re.prototype.pointerUp.call(this,V),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(V),this._state="select",ne==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},W.prototype.adjustVisual=function(){},W.prototype.manipulate=function(V){this.state==="creating"?this.resize(V):this.state==="move"?(this.x1=this.manipulationStartX1+V.x-this.manipulationStartX,this.y1=this.manipulationStartY1+V.y-this.manipulationStartY,this.x2=this.manipulationStartX2+V.x-this.manipulationStartX,this.y2=this.manipulationStartY2+V.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(V)},W.prototype.resize=function(V){switch(this.activeGrip){case this.grip1:this.x1=V.x,this.y1=V.y;break;case this.grip2:case void 0:this.x2=V.x,this.y2=V.y}this.adjustVisual(),this.adjustControlBox()},W.prototype.select=function(){re.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},W.prototype.deselect=function(){re.prototype.deselect.call(this),this.controlBox.style.display="none"},W.prototype.setupControlBox=function(){this.controlBox=me.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},W.prototype.adjustControlBox=function(){this.positionGrips()},W.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},W.prototype.createGrip=function(){var V=new ct;return V.visual.transform.baseVal.appendItem(me.createTransform()),this.controlBox.appendChild(V.visual),V},W.prototype.positionGrips=function(){var V=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-V/2,this.y1-V/2),this.positionGrip(this.grip2.visual,this.x2-V/2,this.y2-V/2)},W.prototype.positionGrip=function(V,ne,ve){var oe=V.transform.baseVal.getItem(0);oe.setTranslate(ne,ve),V.transform.baseVal.replaceItem(oe,0)},W.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},re.prototype.getState.call(this))},W.prototype.restoreState=function(V){re.prototype.restoreState.call(this,V);var ne=V;this.x1=ne.x1,this.y1=ne.y1,this.x2=ne.x2,this.y2=ne.y2},W.prototype.scale=function(V,ne){re.prototype.scale.call(this,V,ne),this.x1=this.x1*V,this.y1=this.y1*ne,this.x2=this.x2*V,this.y2=this.y2*ne,this.adjustVisual(),this.adjustControlBox()},W}(Ue),Ot=function(re){function W(V,ne,ve){var oe=re.call(this,V,ne,ve)||this;return oe.strokeColor="transparent",oe.strokeWidth=0,oe.strokeDasharray="",oe.setStrokeColor=oe.setStrokeColor.bind(oe),oe.setStrokeWidth=oe.setStrokeWidth.bind(oe),oe.setStrokeDasharray=oe.setStrokeDasharray.bind(oe),oe.strokeColor=ve.defaultColor,oe.strokeWidth=ve.defaultStrokeWidth,oe.strokeDasharray=ve.defaultStrokeDasharray,oe.strokePanel=new Se("Line color",ve.defaultColorSet,ve.defaultColor),oe.strokePanel.onColorChanged=oe.setStrokeColor,oe.strokeWidthPanel=new Ut("Line width",ve.defaultStrokeWidths,ve.defaultStrokeWidth),oe.strokeWidthPanel.onWidthChanged=oe.setStrokeWidth,oe.strokeStylePanel=new zt("Line style",ve.defaultStrokeDasharrays,ve.defaultStrokeDasharray),oe.strokeStylePanel.onStyleChanged=oe.setStrokeDasharray,oe}return ce(W,re),W.prototype.ownsTarget=function(V){return!(!re.prototype.ownsTarget.call(this,V)&&V!==this.visual&&V!==this.selectorLine&&V!==this.visibleLine)},W.prototype.createVisual=function(){this.visual=me.createGroup(),this.selectorLine=me.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=me.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)},W.prototype.pointerDown=function(V,ne){re.prototype.pointerDown.call(this,V,ne),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},W.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()),me.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),me.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),me.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},W.prototype.setStrokeColor=function(V){this.strokeColor=V,this.adjustVisual(),this.colorChanged(V)},W.prototype.setStrokeWidth=function(V){this.strokeWidth=V,this.adjustVisual()},W.prototype.setStrokeDasharray=function(V){this.strokeDasharray=V,this.adjustVisual(),this.stateChanged()},Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),W.prototype.getState=function(){var V=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},re.prototype.getState.call(this));return V.typeName=W.typeName,V},W.prototype.restoreState=function(V){re.prototype.restoreState.call(this,V);var ne=V;this.strokeColor=ne.strokeColor,this.strokeWidth=ne.strokeWidth,this.strokeDasharray=ne.strokeDasharray,this.createVisual(),this.adjustVisual()},W.typeName="LineMarker",W.title="Line marker",W.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',W}(Et),ut=function(re){function W(V,ne,ve,oe){var et=re.call(this,V,oe||'<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 et.fonts=[],et.fontBoxes=[],et.fonts=ne,et.currentFont=ve,et.setCurrentFont=et.setCurrentFont.bind(et),et}return ce(W,re),W.prototype.getUi=function(){var V=this,ne=document.createElement("div");return ne.style.overflow="hidden",ne.style.flexGrow="2",this.fonts.forEach(function(ve){var oe=document.createElement("div");oe.style.display="inline-block",oe.style.alignItems="center",oe.style.justifyContent="space-between",oe.style.padding="5px",oe.style.borderWidth="2px",oe.style.borderStyle="solid",oe.style.overflow="hidden",oe.style.maxWidth=100/V.fonts.length-5+"%",oe.style.borderColor=ve===V.currentFont?V.uiStyleSettings.toolboxAccentColor:"transparent",oe.addEventListener("click",function(){V.setCurrentFont(ve,oe)}),ne.appendChild(oe);var et=document.createElement("div");et.style.display="flex",et.style.minHeight="20px",et.style.flexGrow="2",et.style.fontFamily=ve,et.style.overflow="hidden";var Qt=document.createElement("div");Qt.style.whiteSpace="nowrap",Qt.style.overflow="hidden",Qt.style.textOverflow="ellipsis",Qt.innerHTML="The quick brown fox jumps over the lazy dog",et.appendChild(Qt),oe.appendChild(et),V.fontBoxes.push(oe)}),ne},W.prototype.setCurrentFont=function(V,ne){var ve=this;this.currentFont=V,this.fontBoxes.forEach(function(oe){oe.style.borderColor=oe===ne?ve.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},W}(he),vt=function(re){function W(V,ne,ve){var oe=re.call(this,V,ne,ve)||this;return oe.color="transparent",oe.padding=5,oe.DEFAULT_TEXT="your text here",oe.text=oe.DEFAULT_TEXT,oe.isMoved=!1,oe.color=ve.defaultColor,oe.fontFamily=ve.defaultFontFamily,oe.defaultSize={x:100,y:30},oe.setColor=oe.setColor.bind(oe),oe.setFont=oe.setFont.bind(oe),oe.renderText=oe.renderText.bind(oe),oe.sizeText=oe.sizeText.bind(oe),oe.textEditDivClicked=oe.textEditDivClicked.bind(oe),oe.showTextEditor=oe.showTextEditor.bind(oe),oe.setSize=oe.setSize.bind(oe),oe.positionTextEditor=oe.positionTextEditor.bind(oe),oe.colorPanel=new Se("Color",ve.defaultColorSet,ve.defaultColor),oe.colorPanel.onColorChanged=oe.setColor,oe.fontFamilyPanel=new ut("Font",ve.defaultFontFamilies,ve.defaultFontFamily),oe.fontFamilyPanel.onFontChanged=oe.setFont,oe}return ce(W,re),W.prototype.ownsTarget=function(V){if(re.prototype.ownsTarget.call(this,V)||V===this.visual||V===this.textElement||V===this.bgRectangle)return!0;var ne=!1;return this.textElement.childNodes.forEach(function(ve){ve===V&&(ne=!0)}),ne},W.prototype.createVisual=function(){this.visual=me.createGroup(),this.bgRectangle=me.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=me.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(me.createTransform()),this.textElement.transform.baseVal.appendItem(me.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},W.prototype.pointerDown=function(V,ne){re.prototype.pointerDown.call(this,V,ne),this.isMoved=!1,this.pointerDownPoint=V,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(V),this._state="creating")},W.prototype.renderText=function(){var V=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(ne){V.textElement.appendChild(me.createTSpan(ne.trim()===""?" ":ne.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},W.prototype.getTextScale=function(){var V=this.textElement.getBBox(),ne=1;if(V.width>0&&V.height>0){var ve=(1*this.width-this.width*this.padding*2/100)/V.width,oe=(1*this.height-this.height*this.padding*2/100)/V.height;ne=Math.min(ve,oe)}return ne},W.prototype.getTextPosition=function(V){var ne=this.textElement.getBBox(),ve=0,oe=0;return ne.width>0&&ne.height>0&&(ve=(this.width-ne.width*V)/2,oe=this.height/2-ne.height*V/2),{x:ve,y:oe}},W.prototype.sizeText=function(){var V=this.textElement.getBBox(),ne=this.getTextScale(),ve=this.getTextPosition(ne);ve.y-=V.y*ne,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+ve.x+"px, "+ve.y+"px) scale("+ne+", "+ne+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(ve.x,ve.y),this.textElement.transform.baseVal.getItem(1).setScale(ne,ne))},W.prototype.manipulate=function(V){re.prototype.manipulate.call(this,V),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(V.x-this.pointerDownPoint.x)>5||Math.abs(V.y-this.pointerDownPoint.y)>5)},W.prototype.resize=function(V){re.prototype.resize.call(this,V),this.isMoved=!0,this.setSize(),this.sizeText()},W.prototype.setSize=function(){re.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(me.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),me.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},W.prototype.pointerUp=function(V){var ne=this.state;ne==="creating"&&(this._suppressMarkerCreateEvent=!0),re.prototype.pointerUp.call(this,V),this.setSize(),(ne==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},W.prototype.showTextEditor=function(){var V=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(ne){ne.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var ne=Number.parseFloat(V.textEditor.style.fontSize);V.textEditor.clientWidth>=Number.parseInt(V.textEditor.style.maxWidth)&&ne>.9;)ne-=.1,V.textEditor.style.fontSize=Math.max(ne,.9)+"em"}),this.textEditor.addEventListener("keyup",function(ne){ne.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(ne){if(ne.clipboardData){var ve=ne.clipboardData.getData("text"),oe=window.getSelection();if(!oe.rangeCount)return!1;oe.deleteFromDocument(),oe.getRangeAt(0).insertNode(document.createTextNode(ve)),ne.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){V.textEditDivClicked(V.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},W.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var V=this.getTextScale(),ne=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),ve=this.textElement.getBBox(),oe={x:ve.width*V,y:ve.height*V};ne.x-=oe.x/2,ne.y-=oe.y/2,this.textEditor.style.top=ne.y+"px",this.textEditor.style.left=ne.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-ne.x+"px",this.textEditor.style.fontSize=Math.max(16*V,12)+"px",this.textElement.style.display="none"}},W.prototype.textEditDivClicked=function(V){this.text=V.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},W.prototype.select=function(){re.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},W.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),re.prototype.deselect.call(this)},W.prototype.dblClick=function(V,ne){re.prototype.dblClick.call(this,V,ne),this.showTextEditor()},W.prototype.setColor=function(V){this.textElement&&me.setAttributes(this.textElement,[["fill",V]]),this.color=V,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(V)},W.prototype.setFont=function(V){this.textElement&&me.setAttributes(this.textElement,[["font-family",V]]),this.fontFamily=V,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},W.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},W.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),W.prototype.getState=function(){var V=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},re.prototype.getState.call(this));return V.typeName=W.typeName,V},W.prototype.restoreState=function(V){var ne=V;this.color=ne.color,this.fontFamily=ne.fontFamily,this.padding=ne.padding,this.text=ne.text,this.createVisual(),re.prototype.restoreState.call(this,V),this.setSize()},W.prototype.scale=function(V,ne){re.prototype.scale.call(this,V,ne),this.setSize(),this.sizeText(),this.positionTextEditor()},W.typeName="TextMarker",W.title="Text marker",W.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>',W}(Rt),Ze=function(re){function W(V,ne,ve){var oe=re.call(this,V,ne,ve)||this;return oe.color="transparent",oe.lineWidth=3,oe.drawing=!1,oe.pixelRatio=1,oe.color=ve.defaultColor,oe.lineWidth=ve.defaultStrokeWidth,oe.pixelRatio=ve.freehandPixelRatio,oe.setColor=oe.setColor.bind(oe),oe.addCanvas=oe.addCanvas.bind(oe),oe.finishCreation=oe.finishCreation.bind(oe),oe.setLineWidth=oe.setLineWidth.bind(oe),oe.colorPanel=new Se("Color",ve.defaultColorSet,ve.defaultColor),oe.colorPanel.onColorChanged=oe.setColor,oe.lineWidthPanel=new Ut("Line width",ve.defaultStrokeWidths,ve.defaultStrokeWidth),oe.lineWidthPanel.onWidthChanged=oe.setLineWidth,oe}return ce(W,re),W.prototype.ownsTarget=function(V){return!(!re.prototype.ownsTarget.call(this,V)&&V!==this.visual&&V!==this.drawingImage)},W.prototype.createVisual=function(){this.visual=me.createGroup(),this.drawingImage=me.createImage(),this.visual.appendChild(this.drawingImage);var V=me.createTransform();this.visual.transform.baseVal.appendItem(V),this.addMarkerVisualToContainer(this.visual)},W.prototype.pointerDown=function(V,ne){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(V.x,V.y),this.drawing=!0):re.prototype.pointerDown.call(this,V,ne)},W.prototype.manipulate=function(V){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(V.x,V.y),this.canvasContext.stroke()):re.prototype.manipulate.call(this,V)},W.prototype.resize=function(V){re.prototype.resize.call(this,V),me.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),me.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},W.prototype.pointerUp=function(V){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):re.prototype.pointerUp.call(this,V)},W.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)},W.prototype.select=function(){this.state==="creating"&&this.finishCreation(),re.prototype.select.call(this)},W.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),re.prototype.deselect.call(this)},W.prototype.finishCreation=function(){for(var V=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),ne=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],ve=ne[0],oe=ne[1],et=ne[2],Qt=ne[3],dn=!1,Cn=0;Cn<this.canvasElement.height;Cn++)for(var Jt=0;Jt<this.canvasElement.width;Jt++)V.data[Cn*this.canvasElement.width*4+4*Jt+3]>0&&(dn=!0,Cn<oe&&(oe=Cn),Jt<ve&&(ve=Jt),Cn>Qt&&(Qt=Cn),Jt>et&&(et=Jt));if(dn){this.left=ve/this.pixelRatio,this.top=oe/this.pixelRatio,this.width=(et-ve)/this.pixelRatio,this.height=(Qt-oe)/this.pixelRatio;var Vn=document.createElement("canvas");Vn.width=et-ve,Vn.height=Qt-oe,Vn.getContext("2d").putImageData(this.canvasContext.getImageData(ve,oe,et-ve,Qt-oe),0,0),this.drawingImgUrl=Vn.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},W.prototype.setDrawingImage=function(){me.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),me.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},W.prototype.setColor=function(V){this.color=V,this.colorChanged(V)},W.prototype.setLineWidth=function(V){this.lineWidth=V},Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),W.prototype.getState=function(){var V=Object.assign({drawingImgUrl:this.drawingImgUrl},re.prototype.getState.call(this));return V.typeName=W.typeName,V},W.prototype.restoreState=function(V){this.createVisual(),re.prototype.restoreState.call(this,V),this.drawingImgUrl=V.drawingImgUrl,this.setDrawingImage()},W.prototype.scale=function(V,ne){re.prototype.scale.call(this,V,ne),this.setDrawingImage()},W.typeName="FreehandMarker",W.title="Freehand marker",W.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>',W}(Rt),ke=function(re){function W(V,ne,ve){var oe=re.call(this,V,ve||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return oe.typeBoxes=[],oe.currentType=ne,oe.setCurrentType=oe.setCurrentType.bind(oe),oe}return ce(W,re),W.prototype.getUi=function(){var V=this,ne=document.createElement("div");ne.style.display="flex",ne.style.overflow="hidden",ne.style.flexGrow="2";for(var ve=function(Qt){var dn="both";switch(Qt){case 0:dn="both";break;case 1:dn="start";break;case 2:dn="end";break;case 3:dn="none"}var Cn=document.createElement("div");if(Cn.style.display="flex",Cn.style.flexGrow="2",Cn.style.alignItems="center",Cn.style.justifyContent="space-between",Cn.style.padding="5px",Cn.style.borderWidth="2px",Cn.style.borderStyle="solid",Cn.style.borderColor=dn===oe.currentType?oe.uiStyleSettings.toolboxAccentColor:"transparent",Cn.addEventListener("click",function(){V.setCurrentType(dn,Cn)}),ne.appendChild(Cn),dn==="both"||dn==="start"){var Jt=document.createElement("div");Jt.style.display="flex",Jt.style.alignItems="center",Jt.style.minHeight="20px",Jt.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="`+(oe.uiStyleSettings!==void 0?oe.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
</svg>`,Jt.style.marginLeft="5px",Cn.appendChild(Jt)}var Vn=document.createElement("div");Vn.style.display="flex",Vn.style.alignItems="center",Vn.style.minHeight="20px",Vn.style.flexGrow="2";var Xn=document.createElement("hr");if(Xn.style.minWidth="20px",Xn.style.border="0px",Xn.style.borderTop="3px solid "+(oe.uiStyleSettings!==void 0?oe.uiStyleSettings.toolboxColor:"#eeeeee"),Xn.style.flexGrow="2",Vn.appendChild(Xn),Cn.appendChild(Vn),dn==="both"||dn==="end"){var lr=document.createElement("div");lr.style.display="flex",lr.style.alignItems="center",lr.style.minHeight="20px",lr.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="`+(oe.uiStyleSettings!==void 0?oe.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
</svg>`,lr.style.marginRight="5px",Cn.appendChild(lr)}oe.typeBoxes.push(Cn)},oe=this,et=0;et<4;et++)ve(et);return ne},W.prototype.setCurrentType=function(V,ne){var ve=this;this.currentType=V,this.typeBoxes.forEach(function(oe){oe.style.borderColor=oe===ne?ve.uiStyleSettings!==void 0?ve.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},W}(he),He=function(re){function W(V,ne,ve){var oe=re.call(this,V,ne,ve)||this;return oe.arrowType="end",oe.arrowBaseHeight=10,oe.arrowBaseWidth=10,oe.getArrowPoints=oe.getArrowPoints.bind(oe),oe.setArrowType=oe.setArrowType.bind(oe),oe.arrowTypePanel=new ke("Arrow type","end"),oe.arrowTypePanel.onArrowTypeChanged=oe.setArrowType,oe}return ce(W,re),W.prototype.ownsTarget=function(V){return!(!re.prototype.ownsTarget.call(this,V)&&V!==this.arrow1&&V!==this.arrow2)},W.prototype.getArrowPoints=function(V,ne){var ve=this.arrowBaseWidth+2*this.strokeWidth,oe=this.arrowBaseHeight+2*this.strokeWidth;return V-ve/2+","+(ne+oe/2)+" "+V+","+(ne-oe/2)+" "+(V+ve/2)+","+(ne+oe/2)},W.prototype.createTips=function(){this.arrow1=me.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(me.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=me.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(me.createTransform()),this.visual.appendChild(this.arrow2)},W.prototype.pointerDown=function(V,ne){re.prototype.pointerDown.call(this,V,ne),this.state==="creating"&&this.createTips()},W.prototype.adjustVisual=function(){if(re.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",me.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),me.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]),Math.abs(this.x1-this.x2)>.1)){var V=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),ne=this.arrow1.transform.baseVal.getItem(0);ne.setRotate(V,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(ne,0);var ve=this.arrow2.transform.baseVal.getItem(0);ve.setRotate(V+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(ve,0)}},W.prototype.setArrowType=function(V){this.arrowType=V,this.adjustVisual(),this.stateChanged()},Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),W.prototype.getState=function(){var V=Object.assign({arrowType:this.arrowType},re.prototype.getState.call(this));return V.typeName=W.typeName,V},W.prototype.restoreState=function(V){re.prototype.restoreState.call(this,V);var ne=V;this.arrowType=ne.arrowType,this.createTips(),this.adjustVisual()},W.typeName="ArrowMarker",W.title="Arrow marker",W.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',W}(Ot),we=function(re){function W(V,ne,ve){var oe=re.call(this,V,ne,ve)||this;return oe.fillColor=ve.defaultFillColor,oe.strokeWidth=0,oe.fillPanel=new Se("Color",ve.defaultColorSet,ve.defaultFillColor),oe.fillPanel.onColorChanged=oe.setFillColor,oe}return ce(W,re),Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),W.prototype.getState=function(){var V=re.prototype.getState.call(this);return V.typeName=W.typeName,V},W.typeName="CoverMarker",W.title="Cover marker",W.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',W}(ht),Le=function(re){function W(V,ne,ve,oe){var et=re.call(this,V,oe||'<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 et.opacities=[],et.opacityBoxes=[],et.opacities=ne,et.currentOpacity=ve,et.setCurrentOpacity=et.setCurrentOpacity.bind(et),et}return ce(W,re),W.prototype.getUi=function(){var V=this,ne=document.createElement("div");return ne.style.display="flex",ne.style.overflow="hidden",ne.style.flexGrow="2",ne.style.justifyContent="space-between",this.opacities.forEach(function(ve){var oe=document.createElement("div");oe.style.display="flex",oe.style.alignItems="center",oe.style.justifyContent="center",oe.style.padding="5px",oe.style.borderWidth="2px",oe.style.borderStyle="solid",oe.style.borderColor=ve===V.currentOpacity?V.uiStyleSettings.toolboxAccentColor:"transparent",oe.addEventListener("click",function(){V.setCurrentOpacity(ve,oe)}),ne.appendChild(oe);var et=document.createElement("div");et.innerText=100*ve+"%",oe.appendChild(et),V.opacityBoxes.push(oe)}),ne},W.prototype.setCurrentOpacity=function(V,ne){var ve=this;this.currentOpacity=V,this.opacityBoxes.forEach(function(oe){oe.style.borderColor=oe===ne?ve.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},W}(he),Pe=function(re){function W(V,ne,ve){var oe=re.call(this,V,ne,ve)||this;return oe.setOpacity=oe.setOpacity.bind(oe),oe.fillColor=ve.defaultHighlightColor,oe.strokeWidth=0,oe.opacity=ve.defaultHighlightOpacity,oe.fillPanel=new Se("Color",ve.defaultColorSet,oe.fillColor),oe.fillPanel.onColorChanged=oe.setFillColor,oe.opacityPanel=new Le("Opacity",ve.defaultOpacitySteps,oe.opacity),oe.opacityPanel.onOpacityChanged=oe.setOpacity,oe}return ce(W,re),W.prototype.setOpacity=function(V){this.opacity=V,this.visual&&me.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),W.prototype.getState=function(){var V=re.prototype.getState.call(this);return V.typeName=W.typeName,V},W.typeName="HighlightMarker",W.title="Highlight marker",W.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>',W}(we),We='<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>',Xe=function(re){function W(V,ne,ve){var oe=re.call(this,V,ne,ve)||this;return oe.bgColor="transparent",oe.tipPosition={x:0,y:0},oe.tipBase1Position={x:0,y:0},oe.tipBase2Position={x:0,y:0},oe.tipMoving=!1,oe.color=ve.defaultStrokeColor,oe.bgColor=ve.defaultFillColor,oe.fontFamily=ve.defaultFontFamily,oe.defaultSize={x:100,y:30},oe.setBgColor=oe.setBgColor.bind(oe),oe.getTipPoints=oe.getTipPoints.bind(oe),oe.positionTip=oe.positionTip.bind(oe),oe.setTipPoints=oe.setTipPoints.bind(oe),oe.colorPanel=new Se("Text color",ve.defaultColorSet,oe.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>'),oe.colorPanel.onColorChanged=oe.setColor,oe.bgColorPanel=new Se("Fill color",ve.defaultColorSet,oe.bgColor,We),oe.bgColorPanel.onColorChanged=oe.setBgColor,oe.fontFamilyPanel=new ut("Font",ve.defaultFontFamilies,ve.defaultFontFamily),oe.fontFamilyPanel.onFontChanged=oe.setFont,oe.tipGrip=new ct,oe.tipGrip.visual.transform.baseVal.appendItem(me.createTransform()),oe.controlBox.appendChild(oe.tipGrip.visual),oe}return ce(W,re),W.prototype.ownsTarget=function(V){return re.prototype.ownsTarget.call(this,V)||this.tipGrip.ownsTarget(V)||this.tip===V},W.prototype.createTip=function(){me.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=me.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},W.prototype.pointerDown=function(V,ne){this.state==="new"&&re.prototype.pointerDown.call(this,V,ne),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(ne)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):re.prototype.pointerDown.call(this,V,ne)},W.prototype.pointerUp=function(V){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,re.prototype.pointerUp.call(this,V);else{var ne=this.state==="creating";re.prototype.pointerUp.call(this,V),this.setTipPoints(ne),this.positionTip()}},W.prototype.manipulate=function(V){if(this.tipMoving){var ne=this.unrotatePoint(V);this.tipPosition={x:ne.x-this.manipulationStartLeft,y:ne.y-this.manipulationStartTop},this.positionTip()}else re.prototype.manipulate.call(this,V)},W.prototype.setBgColor=function(V){this.bgRectangle&&this.tip&&(me.setAttributes(this.bgRectangle,[["fill",V]]),me.setAttributes(this.tip,[["fill",V]])),this.bgColor=V,this.fillColorChanged(V)},W.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},W.prototype.setTipPoints=function(V){V===void 0&&(V=!1);var ne=Math.min(this.height/2,15),ve=this.height/5;V&&(this.tipPosition={x:ne+ve/2,y:this.height+20});var oe=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?oe<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(ve=this.width/5,ne=Math.min(this.width/2,15),this.tipBase1Position={x:ne,y:0},this.tipBase2Position={x:ne+ve,y:0}):(this.tipBase1Position={x:0,y:ne},this.tipBase2Position={x:0,y:ne+ve}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?oe<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(ve=this.width/5,ne=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-ne-ve,y:0},this.tipBase2Position={x:this.width-ne,y:0}):(this.tipBase1Position={x:this.width,y:ne},this.tipBase2Position={x:this.width,y:ne+ve}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?oe<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(ve=this.width/5,ne=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-ne-ve,y:this.height},this.tipBase2Position={x:this.width-ne,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-ne-ve},this.tipBase2Position={x:this.width,y:this.height-ne}):oe<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(ve=this.width/5,ne=Math.min(this.width/2,15),this.tipBase1Position={x:ne,y:this.height},this.tipBase2Position={x:ne+ve,y:this.height}):(this.tipBase1Position={x:0,y:this.height-ne},this.tipBase2Position={x:0,y:this.height-ne-ve})},W.prototype.resize=function(V){re.prototype.resize.call(this,V),this.positionTip()},W.prototype.positionTip=function(){me.setAttributes(this.tip,[["points",this.getTipPoints()]]);var V=this.tipGrip.visual.transform.baseVal.getItem(0);V.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(V,0)},Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),W.prototype.select=function(){this.positionTip(),re.prototype.select.call(this)},W.prototype.getState=function(){var V=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},re.prototype.getState.call(this));return V.typeName=W.typeName,V},W.prototype.restoreState=function(V){var ne=V;this.bgColor=ne.bgColor,this.tipPosition=ne.tipPosition,re.prototype.restoreState.call(this,V),this.createTip(),this.setTipPoints()},W.prototype.scale=function(V,ne){re.prototype.scale.call(this,V,ne),this.tipPosition={x:this.tipPosition.x*V,y:this.tipPosition.y*ne},this.positionTip()},W.typeName="CalloutMarker",W.title="Callout marker",W.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>',W}(vt),gt=function(re){function W(V,ne,ve){var oe=re.call(this,V,ne,ve)||this;return oe.fillColor="transparent",oe.strokeColor="transparent",oe.strokeWidth=0,oe.strokeDasharray="",oe.opacity=1,oe.strokeColor=ve.defaultColor,oe.strokeWidth=ve.defaultStrokeWidth,oe.strokeDasharray=ve.defaultStrokeDasharray,oe.fillColor=ve.defaultFillColor,oe.setStrokeColor=oe.setStrokeColor.bind(oe),oe.setFillColor=oe.setFillColor.bind(oe),oe.setStrokeWidth=oe.setStrokeWidth.bind(oe),oe.setStrokeDasharray=oe.setStrokeDasharray.bind(oe),oe.setOpacity=oe.setOpacity.bind(oe),oe.createVisual=oe.createVisual.bind(oe),oe.strokePanel=new Se("Line color",se(ve.defaultColorSet,["transparent"]),ve.defaultColor),oe.strokePanel.onColorChanged=oe.setStrokeColor,oe.fillPanel=new Se("Fill color",se(ve.defaultColorSet,["transparent"]),oe.fillColor,We),oe.fillPanel.onColorChanged=oe.setFillColor,oe.strokeWidthPanel=new Ut("Line width",ve.defaultStrokeWidths,ve.defaultStrokeWidth),oe.strokeWidthPanel.onWidthChanged=oe.setStrokeWidth,oe.strokeStylePanel=new zt("Line style",ve.defaultStrokeDasharrays,ve.defaultStrokeDasharray),oe.strokeStylePanel.onStyleChanged=oe.setStrokeDasharray,oe.opacityPanel=new Le("Opacity",ve.defaultOpacitySteps,oe.opacity),oe.opacityPanel.onOpacityChanged=oe.setOpacity,oe}return ce(W,re),W.prototype.ownsTarget=function(V){return!(!re.prototype.ownsTarget.call(this,V)&&V!==this.visual)},W.prototype.createVisual=function(){this.visual=me.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)},W.prototype.pointerDown=function(V,ne){re.prototype.pointerDown.call(this,V,ne),this.state==="new"&&(this.createVisual(),this.moveVisual(V),this._state="creating")},W.prototype.manipulate=function(V){re.prototype.manipulate.call(this,V)},W.prototype.resize=function(V){re.prototype.resize.call(this,V),this.setSize()},W.prototype.setSize=function(){re.prototype.setSize.call(this),me.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},W.prototype.pointerUp=function(V){re.prototype.pointerUp.call(this,V),this.setSize()},W.prototype.setStrokeColor=function(V){this.strokeColor=V,this.visual&&me.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(V),this.stateChanged()},W.prototype.setFillColor=function(V){this.fillColor=V,this.visual&&me.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(V),this.stateChanged()},W.prototype.setStrokeWidth=function(V){this.strokeWidth=V,this.visual&&me.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},W.prototype.setStrokeDasharray=function(V){this.strokeDasharray=V,this.visual&&me.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},W.prototype.setOpacity=function(V){this.opacity=V,this.visual&&me.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),W.prototype.getState=function(){var V=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},re.prototype.getState.call(this));return V.typeName=W.typeName,V},W.prototype.restoreState=function(V){var ne=V;this.fillColor=ne.fillColor,this.strokeColor=ne.strokeColor,this.strokeWidth=ne.strokeWidth,this.strokeDasharray=ne.strokeDasharray,this.opacity=ne.opacity,this.createVisual(),re.prototype.restoreState.call(this,V),this.setSize()},W.prototype.scale=function(V,ne){re.prototype.scale.call(this,V,ne),this.setSize()},W.typeName="EllipseMarker",W.title="Ellipse marker",W.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>',W}(Rt),Lt=function(re){function W(V,ne,ve){return re.call(this,V,ne,ve)||this}return ce(W,re),Object.defineProperty(W.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),W.prototype.ownsTarget=function(V){return!(!re.prototype.ownsTarget.call(this,V)&&V!==this.tip1&&V!==this.tip2)},W.prototype.createTips=function(){this.tip1=me.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(me.createTransform()),this.visual.appendChild(this.tip1),this.tip2=me.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(me.createTransform()),this.visual.appendChild(this.tip2)},W.prototype.pointerDown=function(V,ne){re.prototype.pointerDown.call(this,V,ne),this.state==="creating"&&this.createTips()},W.prototype.adjustVisual=function(){if(re.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(me.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()]]),me.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 V=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),ne=this.tip1.transform.baseVal.getItem(0);ne.setRotate(V,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(ne,0);var ve=this.tip2.transform.baseVal.getItem(0);ve.setRotate(V+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(ve,0)}},Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),W.prototype.getState=function(){var V=re.prototype.getState.call(this);return V.typeName=W.typeName,V},W.prototype.restoreState=function(V){re.prototype.restoreState.call(this,V),this.createTips(),this.adjustVisual()},W.typeName="MeasurementMarker",W.title="Measurement marker",W.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>',W}(Ot),en=function(re){function W(V,ne,ve){var oe=re.call(this,V,ne,ve)||this;return oe.strokePanel.colors=ve.defaultColorSet,oe.fillColor="transparent",oe}return ce(W,re),Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),W.prototype.getState=function(){var V=re.prototype.getState.call(this);return V.typeName=W.typeName,V},W.typeName="EllipseFrameMarker",W.title="Ellipse frame marker",W.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>',W}(gt),Zt=function(){function re(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(re.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),re.prototype.addUndoStep=function(W){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(W)||(this.undoStack.push(W),JSON.stringify(this.lastRedoStep)!==JSON.stringify(W)&&this.redoStack.splice(0,this.redoStack.length))},re.prototype.replaceLastUndoStep=function(W){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=W)},re.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},re.prototype.undo=function(){if(this.undoStack.length>1){var W=this.undoStack.pop();return W!==void 0&&this.redoStack.push(W),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},re.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},re}(),xt=function(re){function W(V,ne,ve){var oe=re.call(this,V,ne,ve)||this;return oe.strokeColor="transparent",oe.strokeWidth=0,oe.strokeDasharray="",oe.curveX=0,oe.curveY=0,oe.manipulationStartCurveX=0,oe.manipulationStartCurveY=0,oe.setStrokeColor=oe.setStrokeColor.bind(oe),oe.setStrokeWidth=oe.setStrokeWidth.bind(oe),oe.setStrokeDasharray=oe.setStrokeDasharray.bind(oe),oe.positionGrips=oe.positionGrips.bind(oe),oe.addControlGrips=oe.addControlGrips.bind(oe),oe.adjustVisual=oe.adjustVisual.bind(oe),oe.setupControlBox=oe.setupControlBox.bind(oe),oe.resize=oe.resize.bind(oe),oe.strokeColor=ve.defaultColor,oe.strokeWidth=ve.defaultStrokeWidth,oe.strokeDasharray=ve.defaultStrokeDasharray,oe.strokePanel=new Se("Line color",ve.defaultColorSet,ve.defaultColor),oe.strokePanel.onColorChanged=oe.setStrokeColor,oe.strokeWidthPanel=new Ut("Line width",ve.defaultStrokeWidths,ve.defaultStrokeWidth),oe.strokeWidthPanel.onWidthChanged=oe.setStrokeWidth,oe.strokeStylePanel=new zt("Line style",ve.defaultStrokeDasharrays,ve.defaultStrokeDasharray),oe.strokeStylePanel.onStyleChanged=oe.setStrokeDasharray,oe}return ce(W,re),W.prototype.ownsTarget=function(V){return!(!re.prototype.ownsTarget.call(this,V)&&V!==this.visual&&V!==this.selectorCurve&&V!==this.visibleCurve&&!this.curveGrip.ownsTarget(V))},W.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},W.prototype.createVisual=function(){this.visual=me.createGroup(),this.selectorCurve=me.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=me.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)},W.prototype.pointerDown=function(V,ne){re.prototype.pointerDown.call(this,V,ne),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=V.x,this.curveY=V.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(ne)&&(this.activeGrip=this.curveGrip,this._state="resize")},W.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),me.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),me.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),me.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},W.prototype.setupControlBox=function(){re.prototype.setupControlBox.call(this),this.curveControlLine1=me.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=me.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)},W.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,re.prototype.addControlGrips.call(this)},W.prototype.positionGrips=function(){re.prototype.positionGrips.call(this);var V=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-V/2,this.curveY-V/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()))},W.prototype.manipulate=function(V){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+V.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+V.y-this.manipulationStartY),re.prototype.manipulate.call(this,V)},W.prototype.resize=function(V){this.activeGrip===this.curveGrip&&(this.curveX=V.x,this.curveY=V.y),re.prototype.resize.call(this,V),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},W.prototype.setStrokeColor=function(V){this.strokeColor=V,this.adjustVisual(),this.colorChanged(V)},W.prototype.setStrokeWidth=function(V){this.strokeWidth=V,this.adjustVisual()},W.prototype.setStrokeDasharray=function(V){this.strokeDasharray=V,this.adjustVisual()},W.prototype.scale=function(V,ne){this.curveX=this.curveX*V,this.curveY=this.curveY*ne,re.prototype.scale.call(this,V,ne)},Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),W.prototype.getState=function(){var V=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},re.prototype.getState.call(this));return V.typeName=W.typeName,V},W.prototype.restoreState=function(V){re.prototype.restoreState.call(this,V);var ne=V;this.strokeColor=ne.strokeColor,this.strokeWidth=ne.strokeWidth,this.strokeDasharray=ne.strokeDasharray,this.curveX=ne.curveX,this.curveY=ne.curveY,this.createVisual(),this.adjustVisual()},W.typeName="CurveMarker",W.title="Curve marker",W.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>',W}(Et),Ct=function(){function re(W,V){V===void 0&&(V=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=W,this.cancelable=V}return Object.defineProperty(re.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),re.prototype.preventDefault=function(){this._defaultPrevented=!0},re}(),pt=function(re){function W(V,ne,ve){var oe=re.call(this,V,!1)||this;return oe.dataUrl=ne,oe.state=ve,oe}return ce(W,re),W}(Ct),Je=function(re){function W(V,ne,ve){ve===void 0&&(ve=!1);var oe=re.call(this,V,ve)||this;return oe.marker=ne,oe}return ce(W,re),W}(Ct),Qe=function(){function re(){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 re.prototype.addEventListener=function(W,V){this[W].push(V)},re.prototype.removeEventListener=function(W,V){var ne=this[W].indexOf(V);ne>-1&&this[W].splice(ne,1)},re}(),Oe=function(){function re(W){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Ve,this._isOpen=!1,this.undoRedoManager=new Zt,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 Qe,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=re.instanceCounter++,this.styles=new pe(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=W,this.targetRoot=document.body,this.width=W.clientWidth,this.height=W.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(re.prototype,"ALL_MARKER_TYPES",{get:function(){return[ze,Ze,He,vt,en,gt,Pe,Xe,Lt,we,Ot,xt]},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[ze,Ze,He,vt,gt,Pe,Xe]},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"BASIC_MARKER_TYPES",{get:function(){return[ze,Ze,He,vt,Pe]},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(W){var V=this;this._availableMarkerTypes.splice(0),W.forEach(function(ne){if(typeof ne=="string"){var ve=V.ALL_MARKER_TYPES.find(function(oe){return oe.typeName===ne});ve!==void 0&&V._availableMarkerTypes.push(ve)}else V._availableMarkerTypes.push(ne)})},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(W){this._zoomLevel=W,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(re.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),re.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),le.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},re.prototype.show=function(){var W=this;this.styles.styleSheetRoot===void 0&&ae.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=ae.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(V){return V(new Ct(W))})},re.prototype.render=function(){return ie(this,void 0,void 0,function(){var W;return be(this,function(V){switch(V.label){case 0:return this.setCurrentMarker(),(W=new ge).naturalSize=this.renderAtNaturalSize,W.imageType=this.renderImageType,W.imageQuality=this.renderImageQuality,W.markersOnly=this.renderMarkersOnly,W.width=this.renderWidth,W.height=this.renderHeight,[4,W.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return V.sent(),[4,W.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,V.sent()]}})})},re.prototype.close=function(W){var V=this;if(W===void 0&&(W=!1),this.isOpen){var ne=!1;W||this.eventListeners.beforeclose.forEach(function(ve){var oe=new Ct(V,!0);ve(oe),oe.defaultPrevented&&(ne=!0)}),ne||(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(ve){return ve(new Ct(V))}),this.detachEvents(),this._isOpen=!1)}},re.prototype.addMarkersToToolbar=function(){for(var W,V=[],ne=0;ne<arguments.length;ne++)V[ne]=arguments[ne];(W=this._availableMarkerTypes).push.apply(W,V)},re.prototype.addRenderEventListener=function(W){this.addEventListener("render",function(V){W(V.dataUrl,V.state)})},re.prototype.removeRenderEventListener=function(W){},re.prototype.addCloseEventListener=function(W){this.addEventListener("close",function(){W()})},re.prototype.removeCloseEventListener=function(W){},re.prototype.setupResizeObserver=function(){var W=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){W.resize(W.target.clientWidth,W.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return W.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},re.prototype.onPopupTargetResize=function(){var W=1*this.target.clientWidth/this.target.clientHeight,V=this.editorCanvas.clientWidth/W>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*W:this.editorCanvas.clientWidth,ne=V<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/W;this.resize(V,ne)},re.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},re.prototype.resize=function(W,V){this._isResizing=!0;var ne=W/this.imageWidth,ve=V/this.imageHeight;this.imageWidth=Math.round(W),this.imageHeight=Math.round(V),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(ne,ve),this._isResizing=!1},re.prototype.scaleMarkers=function(W,V){var ne,ve=this;this._currentMarker&&this._currentMarker instanceof vt?this._currentMarker.scale(W,V):(ne=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(oe){oe!==ve._currentMarker&&oe.scale(W,V)}),ne!==void 0&&this.setCurrentMarker(ne)},re.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"},re.prototype.setTopLeft=function(){var W=this.editingTarget.getBoundingClientRect(),V=this.editorCanvas.getBoundingClientRect();this.left=W.left-V.left,this.top=W.top-V.top},re.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)},re.prototype.addDefs=function(){for(var W,V=[],ne=0;ne<arguments.length;ne++)V[ne]=arguments[ne];this.defs=me.createDefs(),this.addDefsToImage(),(W=this.defs).append.apply(W,V)},re.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},re.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)},re.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},re.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},re.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)},re.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},re.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)},re.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 W=document.createElement("a");W.href="https://markerjs.com/",W.target="_blank",W.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>',W.title="Powered by marker.js",W.style.display="grid",W.style.alignItems="center",W.style.justifyItems="center",W.style.padding="3px",W.style.width="20px",W.style.height="20px",this.logoUI.appendChild(W),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},re.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")},re.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"},re.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},re.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 W=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=W+"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 Ke(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 tt(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},re.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},re.prototype.removeMarker=function(W){this.markerImage.removeChild(W.container),this.markers.indexOf(W)>-1&&this.markers.splice(this.markers.indexOf(W),1),W.dispose()},re.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())},re.prototype.toolbarButtonClicked=function(W,V){if(W==="marker"&&V!==void 0)this.createNewMarker(V);else if(W==="action")switch(V){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()}},re.prototype.deleteSelectedMarker=function(){var W=this;if(this._currentMarker!==void 0){var V=!1;if(this.eventListeners.markerbeforedelete.forEach(function(ve){var oe=new Je(W,W._currentMarker,!0);ve(oe),oe.defaultPrevented&&(V=!0)}),!V){var ne=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(ve){return ve(new Je(W,ne))})}}},re.prototype.clear=function(){var W=this,V=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(et){var Qt=new Je(W,void 0,!0);et(Qt),Qt.defaultPrevented&&(V=!0)}),!V)){this.setCurrentMarker();for(var ne=function(et){var Qt=ve.markers[et];ve.setCurrentMarker(ve.markers[et]),ve._currentMarker.dispose(),ve.markerImage.removeChild(ve._currentMarker.container),ve.markers.splice(ve.markers.indexOf(ve._currentMarker),1),ve.eventListeners.markerdelete.forEach(function(dn){return dn(new Je(W,Qt))})},ve=this,oe=this.markers.length-1;oe>=0;oe--)ne(oe);this.addUndoStep()}},Object.defineProperty(re.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),re.prototype.showNotesEditor=function(){var W;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=(W=this._currentMarker.notes)!==null&&W!==void 0?W:"",this.overlayContainer.appendChild(this.notesArea))},re.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)},re.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},re.prototype.addUndoStep=function(){var W=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var V=this.getState(),ne=this.undoRedoManager.getLastUndoStep();if(!ne||ne.width===V.width&&ne.height===V.height){var ve=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(V),ve<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(oe){return oe(new Ct(W))})}else this.undoRedoManager.replaceLastUndoStep(V),this.eventListeners.statechange.forEach(function(oe){return oe(new Ct(W))})}},re.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},re.prototype.undoStep=function(){var W=this,V=this.undoRedoManager.undo();V!==void 0&&(this.restoreState(V),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(ne){return ne(new Ct(W))}))},re.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},re.prototype.redoStep=function(){var W=this,V=this.undoRedoManager.redo();V!==void 0&&(this.restoreState(V),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(ne){return ne(new Ct(W))}))},re.prototype.stepZoom=function(){var W=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=W<this.zoomSteps.length-1?this.zoomSteps[W+1]:this.zoomSteps[0]},re.prototype.panTo=function(W){this.contentDiv.scrollBy({left:this.prevPanPoint.x-W.x,top:this.prevPanPoint.y-W.y}),this.prevPanPoint=W},re.prototype.startRenderAndClose=function(){return ie(this,void 0,void 0,function(){var W,V,ne=this;return be(this,function(ve){switch(ve.label){case 0:return[4,this.render()];case 1:return W=ve.sent(),V=this.getState(),this.eventListeners.render.forEach(function(oe){return oe(new pt(ne,W,V))}),this.close(!0),[2]}})})},re.prototype.getState=function(W){W===!0&&this.setCurrentMarker();var V={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(ne){return V.markers.push(ne.getState())}),V},re.prototype.restoreState=function(W){var V=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);W.markers.forEach(function(ne){var ve=V._availableMarkerTypes.find(function(et){return et.typeName===ne.typeName});if(ve!==void 0){var oe=V.addNewMarker(ve);oe.restoreState(ne),V.markers.push(oe)}}),W.width&&W.height&&(W.width!==this.imageWidth||W.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/W.width,this.imageHeight/W.height),this.eventListeners.restorestate.forEach(function(ne){return ne(new Ct(V))})},re.prototype.addNewMarker=function(W){var V=me.createGroup();return this.markerImage.appendChild(V),new W(V,this.overlayContainer,this.settings)},re.prototype.createNewMarker=function(W){var V,ne=this;(V=typeof W=="string"?this._availableMarkerTypes.find(function(ve){return ve.typeName===W}):W)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(V),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(V.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(ve){return ve(new Je(ne,ne._currentMarker))}))},re.prototype.markerCreated=function(W){var V=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(W),this.setCurrentMarker(W),W instanceof Ze&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Ze):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(ne){return ne(new Je(V,V._currentMarker))})},re.prototype.colorChanged=function(W){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=W,this.settings.defaultStrokeColor=W)},re.prototype.fillColorChanged=function(W){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=W)},re.prototype.markerStateChanged=function(W){var V=this;this.eventListeners.markerchange.forEach(function(ne){return ne(new Je(V,W))})},re.prototype.setCurrentMarker=function(W){var V=this;this._currentMarker!==W&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(ne){return ne(new Je(V,V._currentMarker))})),this._currentMarker=W,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(ne){return ne(new Je(V,V._currentMarker))}))},re.prototype.onPointerDown=function(W){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||W.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var V=this.markers.find(function(ne){return ne.ownsTarget(W.target)});V!==void 0?(this.setCurrentMarker(V),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(W.clientX,W.clientY),W.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:W.clientX,y:W.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(W.clientX,W.clientY))},re.prototype.onDblClick=function(W){if(this._isFocused||this.focus(),this.mode==="select"){var V=this.markers.find(function(ne){return ne.ownsTarget(W.target)});V!==void 0&&V!==this._currentMarker&&this.setCurrentMarker(V),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(W.clientX,W.clientY),W.target):this.setCurrentMarker()}},re.prototype.onPointerMove=function(W){this.touchPoints!==1&&W.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||W.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(W.clientX,W.clientY)):this.zoomLevel>1&&this.panTo({x:W.clientX,y:W.clientY}))},re.prototype.onPointerUp=function(W){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(W.clientX,W.clientY)),this.isDragging=!1,this.addUndoStep()},re.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},re.prototype.onKeyUp=function(W){this._currentMarker===void 0||this.notesArea!==void 0||W.key!=="Delete"&&W.key!=="Backspace"||this.deleteSelectedMarker()},re.prototype.clientToLocalCoordinates=function(W,V){var ne=this.markerImage.getBoundingClientRect();return{x:(W-ne.left)/this.zoomLevel,y:(V-ne.top)/this.zoomLevel}},re.prototype.onWindowResize=function(){this.positionUI()},re.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var W=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=W+"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()},re.prototype.addLicenseKey=function(W){le.addKey(W)},re.prototype.addEventListener=function(W,V){this.eventListeners.addEventListener(W,V)},re.prototype.removeEventListener=function(W,V){this.eventListeners.removeEventListener(W,V)},re.prototype.renderState=function(W){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(W),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(re.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),re.prototype.focus=function(){var W=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(V){return V(new Ct(W))}))},re.prototype.blur=function(){var W=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(V){return V(new Ct(W))}))},re.instanceCounter=0,re}();/* **********************************
|
|
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 je=function(re,W){return(je=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(V,ne){V.__proto__=ne}||function(V,ne){for(var ve in ne)Object.prototype.hasOwnProperty.call(ne,ve)&&(V[ve]=ne[ve])})(re,W)};function St(re,W){if(typeof W!="function"&&W!==null)throw new TypeError("Class extends value "+String(W)+" is not a constructor or null");function V(){this.constructor=re}je(re,W),re.prototype=W===null?Object.create(W):(V.prototype=W.prototype,new V)}function bt(re,W,V,ne){return new(V||(V=Promise))(function(ve,oe){function et(Cn){try{dn(ne.next(Cn))}catch(Jt){oe(Jt)}}function Qt(Cn){try{dn(ne.throw(Cn))}catch(Jt){oe(Jt)}}function dn(Cn){var Jt;Cn.done?ve(Cn.value):(Jt=Cn.value,Jt instanceof V?Jt:new V(function(Vn){Vn(Jt)})).then(et,Qt)}dn((ne=ne.apply(re,W||[])).next())})}function Dt(re,W){var V,ne,ve,oe,et={label:0,sent:function(){if(1&ve[0])throw ve[1];return ve[1]},trys:[],ops:[]};return oe={next:Qt(0),throw:Qt(1),return:Qt(2)},typeof Symbol=="function"&&(oe[Symbol.iterator]=function(){return this}),oe;function Qt(dn){return function(Cn){return function(Jt){if(V)throw new TypeError("Generator is already executing.");for(;et;)try{if(V=1,ne&&(ve=2&Jt[0]?ne.return:Jt[0]?ne.throw||((ve=ne.return)&&ve.call(ne),0):ne.next)&&!(ve=ve.call(ne,Jt[1])).done)return ve;switch(ne=0,ve&&(Jt=[2&Jt[0],ve.value]),Jt[0]){case 0:case 1:ve=Jt;break;case 4:return et.label++,{value:Jt[1],done:!1};case 5:et.label++,ne=Jt[1],Jt=[0];continue;case 7:Jt=et.ops.pop(),et.trys.pop();continue;default:if(!(ve=et.trys,(ve=ve.length>0&&ve[ve.length-1])||Jt[0]!==6&&Jt[0]!==2)){et=0;continue}if(Jt[0]===3&&(!ve||Jt[1]>ve[0]&&Jt[1]<ve[3])){et.label=Jt[1];break}if(Jt[0]===6&&et.label<ve[1]){et.label=ve[1],ve=Jt;break}if(ve&&et.label<ve[2]){et.label=ve[2],et.ops.push(Jt);break}ve[2]&&et.ops.pop(),et.trys.pop();continue}Jt=W.call(re,et)}catch(Vn){Jt=[6,Vn],ne=0}finally{V=ve=0}if(5&Jt[0])throw Jt[1];return{value:Jt[0]?Jt[1]:void 0,done:!0}}([dn,Cn])}}}var Ht=function(){function re(){}return re.addKey=function(W){re.key=W},Object.defineProperty(re,"isLicensed",{get:function(){return!!re.key&&new RegExp(/^CRPR-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(re.key)},enumerable:!1,configurable:!0}),re}(),_t=function(){function re(){}return re.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},re.setAttributes=function(W,V){for(var ne=0,ve=V;ne<ve.length;ne++){var oe=ve[ne],et=oe[0],Qt=oe[1];W.setAttribute(et,Qt)}},re.createRect=function(W,V,ne){var ve=document.createElementNS("http://www.w3.org/2000/svg","rect");return ve.setAttribute("width",W.toString()),ve.setAttribute("height",V.toString()),ne&&re.setAttributes(ve,ne),ve},re.createLine=function(W,V,ne,ve,oe){var et=document.createElementNS("http://www.w3.org/2000/svg","line");return et.setAttribute("x1",W.toString()),et.setAttribute("y1",V.toString()),et.setAttribute("x2",ne.toString()),et.setAttribute("y2",ve.toString()),oe&&re.setAttributes(et,oe),et},re.createPolygon=function(W,V){var ne=document.createElementNS("http://www.w3.org/2000/svg","polygon");return ne.setAttribute("points",W),V&&re.setAttributes(ne,V),ne},re.createCircle=function(W,V){var ne=document.createElementNS("http://www.w3.org/2000/svg","circle");return ne.setAttribute("cx",(W/2).toString()),ne.setAttribute("cy",(W/2).toString()),ne.setAttribute("r",W.toString()),V&&re.setAttributes(ne,V),ne},re.createEllipse=function(W,V,ne){var ve=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return ve.setAttribute("cx",(W/2).toString()),ve.setAttribute("cy",(V/2).toString()),ve.setAttribute("rx",(W/2).toString()),ve.setAttribute("ry",(V/2).toString()),ne&&re.setAttributes(ve,ne),ve},re.createGroup=function(W){var V=document.createElementNS("http://www.w3.org/2000/svg","g");return W&&re.setAttributes(V,W),V},re.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},re.createMarker=function(W,V,ne,ve,oe,et,Qt){var dn=document.createElementNS("http://www.w3.org/2000/svg","marker");return re.setAttributes(dn,[["id",W],["orient",V],["markerWidth",ne.toString()],["markerHeight",ve.toString()],["refX",oe.toString()],["refY",et.toString()]]),dn.appendChild(Qt),dn},re.createText=function(W){var V=document.createElementNS("http://www.w3.org/2000/svg","text");return V.setAttribute("x","0"),V.setAttribute("y","0"),W&&re.setAttributes(V,W),V},re.createTSpan=function(W,V){var ne=document.createElementNS("http://www.w3.org/2000/svg","tspan");return ne.textContent=W,V&&re.setAttributes(ne,V),ne},re.createImage=function(W){var V=document.createElementNS("http://www.w3.org/2000/svg","image");return W&&re.setAttributes(V,W),V},re.createPoint=function(W,V){var ne=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return ne.x=W,ne.y=V,ne},re.createPath=function(W,V){var ne=document.createElementNS("http://www.w3.org/2000/svg","path");return ne.setAttribute("d",W),V&&re.setAttributes(ne,V),ne},re.createElement=function(W,V){var ne=document.createElementNS("http://www.w3.org/2000/svg",W);return V&&re.setAttributes(ne,V),ne},re.getHollowRectanglePath=function(W,V,ne,ve,oe,et,Qt,dn){return"M"+W+","+V+"V"+(V+ve)+"H"+(W+ne)+"V"+V+"H"+oe+"V"+et+"H"+(oe+Qt)+"V"+(et+dn)+"H"+oe+"V"+V+"Z"},re}(),Gt=function(){function re(W){this._classNamePrefixBase="__cropro_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+W+"_"}return Object.defineProperty(re.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(re.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(re.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"_fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"_fade_out"},enumerable:!1,configurable:!0}),re.prototype.addClass=function(W){return this.styleSheet===void 0&&this.addStyleSheet(),W.name=""+this.classNamePrefix+W.localName,this.classes.push(W),this.styleSheet.sheet.insertRule("."+W.name+" {"+W.style+"}",this.styleSheet.sheet.cssRules.length),W},re.prototype.addRule=function(W){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(W),this.styleSheet.sheet.insertRule(W.selector+" {"+W.style+"}",this.styleSheet.sheet.cssRules.length)},re.prototype.addStyleSheet=function(){var W;this.styleSheet=document.createElement("style"),((W=this.styleSheetRoot)!==null&&W!==void 0?W:document.head).appendChild(this.styleSheet),this.addRule(new kt("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new kt("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
`)),this.addRule(new kt("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
from {
|
|
opacity: 1;
|
|
}
|
|
to {
|
|
opacity: 0;
|
|
}
|
|
`)),this.addClass(new fn("_fade_in",`
|
|
animation-duration: 0.3s;
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
`)),this.addClass(new fn("_fade_out",`
|
|
animation-duration: 0.3s;
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
`))},re.prototype.removeStyleSheet=function(){var W;this.styleSheet&&(((W=this.styleSheetRoot)!==null&&W!==void 0?W:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},re}(),kt=function(re,W){this.selector=re,this.style=W},fn=function(re,W){this.localName=re,this.style=W},mn=function(){function re(){this.blocks=[],this.display=""}return re.prototype.addButtonBlock=function(W){W.className=this.blockClassName,W.buttonClassName=this.buttonClassName,W.buttonColorsClassName=this.buttonColorsClassName,W.buttonActiveColorsClassName=this.buttonActiveColorsClassName,this.blocks.push(W)},re.prototype.addElementBlock=function(W){W.className===void 0&&(W.className=this.blockClassName),this.blocks.push(W)},re.prototype.getUI=function(){var W=document.createElement("div");return W.className=this.className+" "+this.colorsClassName+" "+this.fadeInClassName,W.style.display=this.display,this.blocks.forEach(function(V){return W.appendChild(V.getUI())}),W},re}(),Tr=function(){function re(){}return re.prototype.getUI=function(){var W=document.createElement("div");if(W.className=this.className,this.minWidth!==void 0&&(W.style.minWidth=this.minWidth),this.contentAlign!==void 0)switch(this.contentAlign){case"start":W.style.justifyContent="flex-start";break;case"center":W.style.justifyContent="center";break;case"end":W.style.justifyContent="flex-end"}return W.style.whiteSpace="nowrap",W},re}(),Mr=function(re){function W(){var V=re!==null&&re.apply(this,arguments)||this;return V.buttons=[],V}return St(W,re),W.prototype.addButton=function(V){V.className=this.buttonClassName,V.colorsClassName=this.buttonColorsClassName,V.activeColorsClassName=this.buttonActiveColorsClassName,this.buttons.push(V)},W.prototype.getUI=function(){var V=re.prototype.getUI.call(this);return this.buttons.forEach(function(ne){return V.appendChild(ne.getUI())}),V},W}(Tr),kr=function(){function re(W,V){this._isActive=!1,this._isHidden=!1,this._icon=W,this.title=V,this.uiContainer=document.createElement("div"),this.adjustClassName=this.adjustClassName.bind(this)}return Object.defineProperty(re.prototype,"icon",{get:function(){return this._icon},set:function(W){this._icon=W,this.buttonContainer.innerHTML=this._icon},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"isActive",{get:function(){return this._isActive},set:function(W){this._isActive=W,this.adjustClassName()},enumerable:!1,configurable:!0}),re.prototype.getUI=function(){var W=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 W.onClick()}),this.uiContainer.appendChild(this.buttonContainer),this.uiContainer.style.display=this._isHidden?"none":"inline-block",this.uiContainer},re.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,"")))},re.prototype.hide=function(){this._isHidden=!0},re}(),Un=function(re){function W(){var V=re!==null&&re.apply(this,arguments)||this;return V.elements=[],V}return St(W,re),W.prototype.addElement=function(V){this.elements.push(V)},W.prototype.getUI=function(){var V=re.prototype.getUI.call(this);return this.elements.forEach(function(ne){return V.appendChild(ne)}),V},W}(Tr),Ra=function(){function re(W,V){this.horizontal=W,this.vertical=V}return Object.defineProperty(re.prototype,"ratio",{get:function(){return 1*this.horizontal/this.vertical},enumerable:!1,configurable:!0}),re.prototype.getVerticalLength=function(W){return W/this.ratio},re.prototype.getHorizontalLength=function(W){return W*this.ratio},re}(),Xr=function(){function re(){}return re.getIcon=function(W,V){if(W>0&&V>0){var ne=new Ra(W,V),ve=ne.ratio>=1?20:ne.getHorizontalLength(20),oe=ne.ratio<1?20:ne.getVerticalLength(20),et=document.createElementNS("http://www.w3.org/2000/svg","svg");et.setAttribute("xmlns","http://www.w3.org/2000/svg"),et.setAttribute("viewBox","0 0 24 24"),document.body.appendChild(et);var Qt=_t.createDefs();et.appendChild(Qt);var dn=_t.createElement("clipPath",[["id","text-bg-clip"]]);Qt.appendChild(dn);var Cn=_t.createPath(_t.getHollowRectanglePath((24-ve)/2,(24-oe)/2,ve,oe,(24-ve)/2+2,(24-oe)/2+2,ve-4,oe-4));et.appendChild(Cn);var Jt=_t.createText([["x","0"],["y","0"],["font-size","7px"],["font-family","monospace"]]);Jt.appendChild(_t.createTSpan(W+":"+V)),et.appendChild(Jt);var Vn=Jt.getBBox();_t.setAttributes(Jt,[["x",((24-Vn.width)/2).toString()],["y",((24-Vn.height)/2-Vn.y).toString()]]);var Xn=_t.createPath(_t.getHollowRectanglePath(0,0,24,24,(24-Math.ceil(Vn.width))/2,(24-Math.ceil(Vn.height))/2,Math.ceil(Vn.width),Math.ceil(Vn.height)));return dn.appendChild(Xn),_t.setAttributes(Cn,[["clip-path","url(#text-bg-clip)"]]),document.body.removeChild(et),et.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>'},re}(),aa=function(re){function W(V,ne,ve){var oe=re.call(this,V,ne)||this;return oe.isDropdownOpen=!1,oe.onClick=oe.dropdownButtonClicked,oe.dropdownButtons=ve,oe}return St(W,re),W.prototype.setupDropdown=function(){var V=this;this.dropdownBlock=document.createElement("div"),this.dropdownBlock.className=this.dropdownClassName+" "+this.dropdownColorsClassName,this.dropdownBlock.style.display="none",this.dropdownButtons.forEach(function(ne){ne.className=V.className,ne.colorsClassName=V.colorsClassName,V.dropdownBlock.appendChild(ne.getUI())}),this.uiContainer.appendChild(this.dropdownBlock)},W.prototype.positionDropdown=function(){this.dropdownBlock.style.left=this.uiContainer.clientLeft+"px",this.dropdownBlock.style.top=this.uiContainer.clientTop+this.uiContainer.clientHeight+"px"},W.prototype.dropdownButtonClicked=function(){this.dropdownBlock===void 0&&this.setupDropdown(),this.isDropdownOpen=!this.isDropdownOpen,this.toggleDropdown()},W.prototype.toggleDropdown=function(){this.positionDropdown(),this.dropdownBlock.style.display=this.isDropdownOpen?"inline-block":"none"},W.prototype.showDropdown=function(){this.isDropdownOpen=!0,this.toggleDropdown()},W.prototype.hideDropdown=function(){this.isDropdownOpen=!1,this.toggleDropdown()},W}(kr),Kr=function(){function re(W,V){this.GRIP_SIZE=10,this.color=W,this.fillColor=V,this.visual=_t.createGroup(),this.visual.appendChild(_t.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(_t.createCircle(this.GRIP_SIZE,[["fill",this.fillColor],["fill-opacity","0.9"],["stroke",this.color],["stroke-width","2"],["stroke-opacity","0.7"]]))}return re.prototype.ownsTarget=function(W){return W===this.visual||W===this.visual.childNodes[0]||W===this.visual.childNodes[1]},re.prototype.setCenter=function(W,V){this.visual.childNodes.forEach(function(ne){return _t.setAttributes(ne,[["cx",W.toString()],["cy",V.toString()]])})},re}(),_a=function(){function re(W,V,ne,ve){this.isMoving=!1,this._isGridVisible=!0,this.numberOfGridLines=2,this.horizontalGridLines=[],this.verticalGridLines=[],this._zoomFactor=1,this.cropRectChanged=!1,this.canvasWidth=W,this.canvasHeight=V,this.margin=ne,this.container=ve,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(re.prototype,"aspectRatio",{get:function(){return this._aspectRatio},set:function(W){this._aspectRatio=W,this.adjustCropRect(),this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(W){this._isGridVisible=W,this.gridContainer&&_t.setAttributes(this.gridContainer,[["display",this._isGridVisible?"":"none"]])},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"zoomFactor",{get:function(){return this._zoomFactor},set:function(W){this._zoomFactor=W,this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),re.prototype.open=function(){var W=this;this.cropShadeElement=_t.createPath("M0,0Z",[["fill",this.cropShadeColor],["fill-opacity","0.8"]]),this.container.appendChild(this.cropShadeElement),this.gridContainer=_t.createGroup([["display",this.isGridVisible?"":"none"]]),this.container.appendChild(this.gridContainer);for(var V=0;V<this.numberOfGridLines;V++)this.horizontalGridLines.push(_t.createLine(0,0,0,0,[["stroke",this.cropFrameColor],["stroke-width","1"],["stroke-dasharray","3 1"],["opacity","0.7"]])),this.verticalGridLines.push(_t.createLine(0,0,0,0,[["stroke",this.cropFrameColor],["stroke-width","1"],["stroke-dasharray","3 1"],["opacity","0.7"]]));this.horizontalGridLines.forEach(function(ne){return W.gridContainer.appendChild(ne)}),this.verticalGridLines.forEach(function(ne){return W.gridContainer.appendChild(ne)}),this.cropRectElement=_t.createRect(0,0,[["stroke",this.cropFrameColor],["stroke-width","3"],["fill","transparent"]]),this.container.appendChild(this.cropRectElement),this.topLeftGrip=new Kr(this.gripColor,this.gripFillColor),this.container.appendChild(this.topLeftGrip.visual),this.topRightGrip=new Kr(this.gripColor,this.gripFillColor),this.container.appendChild(this.topRightGrip.visual),this.bottomLeftGrip=new Kr(this.gripColor,this.gripFillColor),this.container.appendChild(this.bottomLeftGrip.visual),this.bottomRightGrip=new Kr(this.gripColor,this.gripFillColor),this.container.appendChild(this.bottomRightGrip.visual),this.attachEvents()},re.prototype.setCropRectangle=function(W){this.cropRect=W;var V=Object.assign({},this.cropRect);this.zoomFactor!==1&&(V.width=this.cropRect.width*this.zoomFactor,V.height=this.cropRect.height*this.zoomFactor,V.x=this.cropRect.height/this.cropRect.width<this.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasWidth/2-V.width/2,V.y=this.cropRect.height/this.cropRect.width>this.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasHeight/2-V.height/2),_t.setAttributes(this.cropRectElement,[["x",V.x.toString()],["y",V.y.toString()],["width",V.width.toString()],["height",V.height.toString()]]);var ne=V.height/(this.numberOfGridLines+1);this.horizontalGridLines.forEach(function(oe,et){var Qt=V.y+ne*(et+1);_t.setAttributes(oe,[["x1",""+V.x],["y1",""+Qt],["x2",""+(V.x+V.width)],["y2",""+Qt]])});var ve=V.width/(this.numberOfGridLines+1);this.verticalGridLines.forEach(function(oe,et){var Qt=V.x+ve*(et+1);_t.setAttributes(oe,[["x1",""+Qt],["y1",""+V.y],["x2",""+Qt],["y2",""+(V.y+V.height)]])}),_t.setAttributes(this.cropShadeElement,[["d",_t.getHollowRectanglePath(0,0,this.canvasWidth+2*this.margin,this.canvasHeight+2*this.margin,V.x,V.y,V.width,V.height)]]),this.topLeftGrip.setCenter(V.x,V.y),this.topRightGrip.setCenter(V.x+V.width,V.y),this.bottomLeftGrip.setCenter(V.x,V.y+V.height),this.bottomRightGrip.setCenter(V.x+V.width,V.y+V.height),this.cropRectChanged&&this.onCropChange&&(this.cropRectChanged=!1,this.onCropChange(this.cropRect)),this.cropRectChanged=!1},re.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)},re.prototype.clientToLocalCoordinates=function(W,V){var ne=this.container.getBoundingClientRect();return{x:W-ne.left+this.margin,y:V-ne.top+this.margin}},re.prototype.onPointerDown=function(W){this.container.setPointerCapture(W.pointerId),this.previousPoint=this.clientToLocalCoordinates(W.clientX,W.clientY),this.cropRectElement===W.target?this.isMoving=!0:this.topLeftGrip.ownsTarget(W.target)?this.activeGrip=this.topLeftGrip:this.bottomLeftGrip.ownsTarget(W.target)?this.activeGrip=this.bottomLeftGrip:this.topRightGrip.ownsTarget(W.target)?this.activeGrip=this.topRightGrip:this.bottomRightGrip.ownsTarget(W.target)&&(this.activeGrip=this.bottomRightGrip)},re.prototype.onPointerMove=function(W){if(this.isMoving)this.move(this.clientToLocalCoordinates(W.clientX,W.clientY));else if(this.activeGrip){var V=this.clientToLocalCoordinates(W.clientX,W.clientY);this.resize(V)}W.preventDefault()},re.prototype.onPointerUp=function(W){this.activeGrip=void 0,this.isMoving=!1,this.container.releasePointerCapture(W.pointerId)},re.prototype.move=function(W){var V=W.x-this.previousPoint.x,ne=W.y-this.previousPoint.y;this.zoomFactor!==1&&(V=-V/this.zoomFactor,ne=-ne/this.zoomFactor),this.cropRect.x=Math.min(Math.max(this.margin,this.cropRect.x+V),this.canvasWidth-this.cropRect.width+this.margin),this.cropRect.y=Math.min(Math.max(this.margin,this.cropRect.y+ne),this.canvasHeight-this.cropRect.height+this.margin),this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect),this.previousPoint=W},re.prototype.resize=function(W){var V=Object.assign({},this.cropRect),ne=W.x-this.previousPoint.x,ve=W.y-this.previousPoint.y;switch(this.activeGrip){case this.bottomLeftGrip:case this.topLeftGrip:V.x+ne<this.margin&&(ne=this.margin-V.x),V.x+=ne,V.width=this.cropRect.x+this.cropRect.width-V.x;break;case this.bottomRightGrip:case this.topRightGrip:V.width+ne>this.canvasWidth*this.zoomFactor&&(ne=this.canvasWidth*this.zoomFactor-V.width),V.width+=ne}switch(this.activeGrip){case this.topLeftGrip:case this.topRightGrip:this.aspectRatio?(V.y=this.cropRect.y-(this.activeGrip===this.topLeftGrip?-1:1)*this.aspectRatio.getVerticalLength(ne),V.height=this.aspectRatio.getVerticalLength(V.width)):(V.y+=ve,V.height=this.cropRect.y+this.cropRect.height-V.y);break;case this.bottomLeftGrip:case this.bottomRightGrip:this.aspectRatio?V.height=this.aspectRatio.getVerticalLength(V.width):V.height+=ve}V.width<10&&(V.x=this.cropRect.x,V.width=10),V.height<10&&(V.y=this.cropRect.y,V.height=10),this.previousPoint=W,V.x>=this.margin&&V.y>=this.margin&&V.x-this.margin+V.width<=this.canvasWidth&&V.y-this.margin+V.height<=this.canvasHeight&&(this.cropRect=V,this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect))},re.prototype.adjustCropRect=function(){if(this.aspectRatio&&Math.round(this.cropRect.height)!==Math.round(this.aspectRatio.getVerticalLength(this.cropRect.width))){var W=this.cropRect.x+this.cropRect.width/2,V=this.cropRect.y+this.cropRect.height/2,ne=this.aspectRatio.getHorizontalLength(this.cropRect.height),ve=this.aspectRatio.getVerticalLength(this.cropRect.width);ne/this.canvasWidth<ve/this.canvasHeight?this.cropRect.width=ne:this.cropRect.height=ve,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=W-this.cropRect.width/2,this.cropRect.y=V-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)}},re.prototype.getRescaledRect=function(W,V,ne,ve,oe,et){var Qt=ne/W,dn=ve/V;return{x:(oe.x-et)*Qt+et,y:(oe.y-et)*dn+et,width:oe.width*Qt,height:oe.height*dn}},re.prototype.scaleCanvas=function(W,V){var ne=this.getRescaledRect(this.canvasWidth,this.canvasHeight,W,V,this.cropRect,this.margin);this.canvasWidth=W,this.canvasHeight=V,this.onCropChange&&this.onCropChange(ne),this.setCropRectangle(ne)},re}(),di=function(){function re(W){this._angle=0,this.isDragging=!1,this.width=401,this.height=24,this.title=W,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(re.prototype,"angle",{get:function(){return this._angle},set:function(W){this._angle=W,this.setAngleLabel(),this.positionScaleShape()},enumerable:!1,configurable:!0}),re.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},re.prototype.onPointerDown=function(W){this.controlContainer.setPointerCapture(W.pointerId),this.isDragging=!0,this.previousPoint={x:W.clientX,y:W.clientY}},re.prototype.onPointerMove=function(W){this.isDragging&&(this.onAngleChange&&this.onAngleChange((W.clientX-this.previousPoint.x)/5),this.previousPoint.x=W.clientX)},re.prototype.onPointerUp=function(W){this.isDragging&&this.onAngleChange&&this.onAngleChange((W.clientX-this.previousPoint.x)/5),this.isDragging=!1,this.controlContainer.releasePointerCapture(W.pointerId)},re.prototype.setAngleLabel=function(){if(this.angleLabelText){this.angleLabelText.innerHTML=""+Math.round(this._angle);var W=this.angleLabelText.getBBox();_t.setAttributes(this.angleLabelElement,[["x",((this.width-W.width)/2).toString()],["y",(this.height/2).toString()]])}},re.prototype.positionScaleShape=function(){if(this.scaleShape){var W=this.scaleShape.transform.baseVal.getItem(0);W.setTranslate(this._angle%5*5-25,0),this.scaleShape.transform.baseVal.replaceItem(W,0)}},re.prototype.getVisual=function(){var W=document.createElementNS("http://www.w3.org/2000/svg","svg");W.setAttribute("xmlns","http://www.w3.org/2000/svg"),W.setAttribute("width",this.width+"px"),W.setAttribute("height",this.height+"px"),W.setAttribute("viewBox","0 0 "+this.width+" "+this.height),W.style.flexShrink="0",document.body.appendChild(W);for(var V="M0,"+(this.height-1)+" v"+-this.height/3+"h1v"+this.height/3,ne=1;ne<=this.width/5+10;ne++){var ve=ne%5==0?this.height/3:this.height/6;V+="h4v"+-ve+"h1v"+ve}V+="v1H0Z",this.scaleShape=_t.createPath(V);var oe=_t.createTransform();this.scaleShape.transform.baseVal.appendItem(oe),W.appendChild(this.scaleShape),this.angleLabelElement=_t.createText([["x","0"],["y","0"],["font-size","10px"],["font-family","monospace"]]),this.angleLabelText=_t.createTSpan(""),this.angleLabelElement.appendChild(this.angleLabelText);var et=_t.createTSpan("");return et.innerHTML="°",this.angleLabelElement.appendChild(et),W.appendChild(this.angleLabelElement),document.body.removeChild(W),W},re}(),Ei=function(){function re(){this.naturalSize=!1,this.imageType="image/png"}return re.prototype.rasterize=function(W,V,ne,ve,oe,et,Qt){var dn=this;return new Promise(function(Cn){var Jt=document.createElement("canvas");Jt.width=W.width.baseVal.value-2*ve,Jt.height=W.height.baseVal.value-2*ve;var Vn=1,Xn=1;dn.naturalSize===!0?(Vn=V.naturalWidth/(W.width.baseVal.value-2*ve)/et,Xn=V.naturalHeight/(W.height.baseVal.value-2*ve)/Qt,Jt.width=V.naturalWidth/et,Jt.height=V.naturalHeight/Qt):dn.width!==void 0&&dn.height!==void 0&&(Vn=dn.width/ne.width,Xn=dn.height/ne.height,Jt.width*=Vn,Jt.height*=Xn);var lr=Jt.getContext("2d");lr.translate(Jt.width/2,Jt.height/2),lr.rotate(oe*Math.PI/180),lr.scale(et,Qt),lr.translate(-Jt.width/2,-Jt.height/2),lr.drawImage(V,0,0,Jt.width,Jt.height);var Rr=document.createElement("canvas");Rr.width=ne.width*Vn,Rr.height=ne.height*Xn,Rr.getContext("2d").putImageData(lr.getImageData((ne.x-ve)*Vn,(ne.y-ve)*Xn,ne.width*Vn,ne.height*Xn),0,0),Cn(Rr.toDataURL(dn.imageType,dn.imageQuality))})},re}(),_e=function(){function re(W){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=re.instanceCounter++,this.styles=new Gt(this.instanceNo),this.target=W,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(re.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"zoomToCropEnabled",{get:function(){return this._zoomToCropEnabled},set:function(W){this._zoomToCropEnabled=W,W?this.zoomToCrop():this.unzoomFromCrop()},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(W){this._isGridVisible=W,this.cropLayer&&(this.cropLayer.isGridVisible=this._isGridVisible)},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"gridLines",{get:function(){return this._gridLines},set:function(W){this._gridLines=W,this.cropLayer&&(this.cropLayer.numberOfGridLines=this._gridLines)},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"rotationAngle",{get:function(){return this._rotationAngle},set:function(W){this._rotationAngle=W,this.straightener&&(this.straightener.angle=this._rotationAngle)},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"paddedImageWidth",{get:function(){return this.imageWidth+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"paddedImageHeight",{get:function(){return this.imageHeight+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"aspectRatio",{get:function(){var W;return(W=this._aspectRatio)!==null&&W!==void 0?W:this.aspectRatios[0]},set:function(W){this._aspectRatio=W},enumerable:!1,configurable:!0}),re.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},re.prototype.show=function(){this.showUI(),this.open()},re.prototype.close=function(W){W===void 0&&(W=!1),this.isOpen&&(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),W||this.closeEventListeners.forEach(function(V){return V()}),this._isOpen=!1)},re.prototype.addRenderEventListener=function(W){this.renderEventListeners.push(W)},re.prototype.removeRenderEventListener=function(W){this.renderEventListeners.indexOf(W)>-1&&this.renderEventListeners.splice(this.renderEventListeners.indexOf(W),1)},re.prototype.addCloseEventListener=function(W){this.closeEventListeners.push(W)},re.prototype.removeCloseEventListener=function(W){this.closeEventListeners.indexOf(W)>-1&&this.closeEventListeners.splice(this.closeEventListeners.indexOf(W),1)},re.prototype.setupResizeObserver=function(){var W=this;this.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){W.resize(W.target.clientWidth,W.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))},re.prototype.onPopupResize=function(){if(this.contentDiv.clientWidth>0&&this.contentDiv.clientHeight>0){var W=1*this.target.clientWidth/this.target.clientHeight,V=this.contentDiv.clientWidth/W>this.contentDiv.clientHeight?(this.contentDiv.clientHeight-2*this.CANVAS_MARGIN)*W:this.contentDiv.clientWidth-2*this.CANVAS_MARGIN,ne=V+2*this.CANVAS_MARGIN<this.contentDiv.clientWidth?this.contentDiv.clientHeight-2*this.CANVAS_MARGIN:(this.contentDiv.clientWidth-2*this.CANVAS_MARGIN)/W;this.resize(V,ne)}},re.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},re.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",_t.setAttributes(this.editingTarget,[["width",""+this.imageWidth],["height",""+this.imageHeight]]),this.editingTarget.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px"},re.prototype.resize=function(W,V){this.imageWidth=Math.round(W),this.imageHeight=Math.round(V),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()},re.prototype.setEditingTarget=function(){var W=document.createElement("canvas");W.width=this.target.naturalWidth,W.height=this.target.naturalHeight,W.getContext("2d").drawImage(this.target,0,0,this.target.naturalWidth,this.target.naturalHeight);var V=W.toDataURL();_t.setAttributes(this.editingTarget,[["href",V]]),this.setEditingTargetSize()},re.prototype.setTopLeft=function(){var W=this.target.getBoundingClientRect(),V=this.editorCanvas.getBoundingClientRect();this.left=W.left-V.left-this.CANVAS_MARGIN,this.top=W.top-V.top-this.CANVAS_MARGIN},re.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=_t.createDefs(),this.cropImage.appendChild(this.defs),this.editingTarget=_t.createImage([["href",""]]),this.editingTarget.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationContainer=_t.createGroup(),this.editingTargetRotationScaleContainer=_t.createGroup(),this.editingTargetRotationScaleContainer.appendChild(this.editingTarget),this.editingTargetRotationContainer.appendChild(this.editingTargetRotationScaleContainer);var W=_t.createTransform();this.editingTargetRotationContainer.transform.baseVal.appendItem(W);var V=_t.createTransform();this.editingTargetRotationScaleContainer.transform.baseVal.appendItem(V),this.editingTargetContainer=_t.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)},re.prototype.positionCropImage=function(){this.cropImageHolder.style.top=this.top+"px",this.cropImageHolder.style.left=this.left+"px"},re.prototype.initCropLayer=function(){this.cropRect={x:this.CANVAS_MARGIN,y:this.CANVAS_MARGIN,width:this.imageWidth,height:this.imageHeight},this.cropLayerContainer=_t.createGroup(),this.cropImage.appendChild(this.cropLayerContainer),this.cropLayer=new _a(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()},re.prototype.zoomToCrop=function(){if(this.cropRect){var W=this.cropRect.x-this.CANVAS_MARGIN+this.cropRect.width/2,V=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=W+"px "+V+"px",this.editingTargetContainer.style.transform="translate("+(this.imageWidth/2-W+this.CANVAS_MARGIN)+"px,"+(this.imageHeight/2-V+this.CANVAS_MARGIN)+"px) scale("+this.zoomFactor+")",this.cropLayer.zoomFactor=this.zoomFactor)}},re.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)},re.prototype.cropRectChanged=function(W){this.cropRect=W,this.zoomToCropEnabled?this.zoomToCrop():this.cropLayer.zoomFactor=1},re.prototype.attachEvents=function(){window.addEventListener("resize",this.onWindowResize)},re.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"},re.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},re.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 W=this.styles.settings.hideTopToolbar?0:this.toolbarHeight,V=this.target.offsetTop>W+this.CANVAS_MARGIN?this.target.offsetTop-(W+this.CANVAS_MARGIN):0;this.coverDiv.style.top=V+"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},re.prototype.addToolbars=function(){this.addTopToolbar(),this.addBottomToolbar()},re.prototype.addTopToolbar=function(){var W=this;this.topToolbar=new mn,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 V=new Mr;V.minWidth=3*this.toolbarHeight+"px",this.topToolbar.addButtonBlock(V);var ne=[];this.aspectRatios.forEach(function(Xn){var lr=new kr(Xr.getIcon(Xn.horizontal,Xn.vertical),Xn.horizontal===0&&Xn.vertical===0?"FREE":Xn.horizontal+":"+Xn.vertical);lr.onClick=function(){return W.ratioButtonClicked(Xn)},ne.push(lr)}),this.aspectRatioButton=new aa(Xr.getIcon(0,0),"Aspect ratio",ne),this.aspectRatioButton.dropdownClassName=this.toolbarDropdownStyleClass.name,this.aspectRatioButton.dropdownColorsClassName=this.styles.settings.toolbarDropdownStyleColorsClassName?this.styles.settings.toolbarDropdownStyleColorsClassName:this.toolbarDropdownStyleColorsClass.name,V.addButton(this.aspectRatioButton),this.aspectRatios.length<2&&this.aspectRatioButton.hide();var ve=new kr('<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");ve.isActive=this.isGridVisible,ve.onClick=function(){W.isGridVisible=!W.isGridVisible,ve.isActive=W.isGridVisible},V.addButton(ve);var oe=new kr('<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(oe.isActive=this.zoomToCropEnabled,oe.onClick=function(){W.zoomToCropEnabled=!W.zoomToCropEnabled,oe.isActive=W.zoomToCropEnabled},V.addButton(oe),!Ht.isLicensed){var et=new Un;this.topToolbar.addElementBlock(et);var Qt=document.createElement("div");Qt.className=this.topToolbar.buttonClassName+" "+this.topToolbar.buttonColorsClassName;var dn=document.createElement("a");dn.style.color="currentColor",dn.href="https://markerjs.com/products/cropro",dn.target="_blank",dn.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>',Qt.appendChild(dn),et.addElement(Qt)}var Cn=new Mr;Cn.minWidth=3*this.toolbarHeight+"px",Cn.contentAlign="end",this.topToolbar.addButtonBlock(Cn);var Jt=new kr('<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");Jt.onClick=this.startRenderAndClose,Cn.addButton(Jt),this.styles.settings.toolbarOkButtonStyleColorsClassName&&(Jt.colorsClassName=this.styles.settings.toolbarOkButtonStyleColorsClassName);var Vn=new kr('<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");Vn.onClick=this.close,Cn.addButton(Vn),this.styles.settings.toolbarCloseButtonStyleColorsClassName&&(Vn.colorsClassName=this.styles.settings.toolbarCloseButtonStyleColorsClassName)},re.prototype.addBottomToolbar=function(){var W=this;this.bottomToolbar=new mn,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 V=new Mr;V.minWidth=2*this.toolbarHeight+"px",this.bottomToolbar.addButtonBlock(V);var ne=new kr('<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");ne.onClick=this.rotateLeftButtonClicked,V.addButton(ne);var ve=new kr('<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");ve.onClick=this.rotateRightButtonClicked,V.addButton(ve);var oe=new Un;oe.className=this.toolbarStraightenerBlockStyleClass.name,this.bottomToolbar.addElementBlock(oe),this.straightener=new di("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(Cn){W.rotateBy(Cn),W.straightener.angle=W.rotationAngle},oe.addElement(this.straightener.getUI());var et=new Mr;et.minWidth=2*this.toolbarHeight+"px",et.contentAlign="end",this.bottomToolbar.addButtonBlock(et);var Qt=new kr('<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");Qt.onClick=this.flipHorizontallyButtonClicked,et.addButton(Qt);var dn=new kr('<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");dn.onClick=this.flipVerticallyButtonClicked,et.addButton(dn)},re.prototype.ratioButtonClicked=function(W){this.aspectRatio=W,this.applyAspectRatio(),this.aspectRatioButton.hideDropdown()},re.prototype.applyAspectRatio=function(){this.setCropLayerAspectRatio(),this.aspectRatioButton.icon=Xr.getIcon(this.aspectRatio.horizontal,this.aspectRatio.vertical)},re.prototype.setCropLayerAspectRatio=function(){this.cropLayer&&(this.aspectRatio&&this.aspectRatio.horizontal!==0&&this.aspectRatio.vertical!==0?this.cropLayer.aspectRatio=new Ra(this.aspectRatio.horizontal,this.aspectRatio.vertical):this.cropLayer.aspectRatio=void 0)},re.prototype.closeUI=function(){this.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},re.prototype.getState=function(){return{width:this.imageWidth,height:this.imageHeight,rotationAngle:this.rotationAngle,flippedHorizontally:this.flippedHorizontally,flippedVertically:this.flippedVertically,cropRect:Object.assign({},this.cropRect)}},re.prototype.restoreState=function(W){if(W){var V=this.cropLayer.getRescaledRect(W.width,W.height,this.imageWidth,this.imageHeight,W.cropRect,this.CANVAS_MARGIN);this.cropLayer.setCropRectangle(V),this.cropRectChanged(V),this.flippedHorizontally=W.flippedHorizontally,this.flippedVertically=W.flippedVertically,this.applyFlip(),this.rotationAngle=W.rotationAngle,this.applyRotation()}},re.prototype.clientToLocalCoordinates=function(W,V){var ne=this.cropImage.getBoundingClientRect();return{x:W-ne.left,y:V-ne.top}},re.prototype.onWindowResize=function(){this.positionUI()},re.prototype.positionUI=function(){switch(this.setTopLeft(),this.displayMode){case"inline":var W=this.target.offsetTop>this.toolbarHeight?this.target.offsetTop-this.toolbarHeight:0;this.coverDiv.style.top=W+"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()},re.prototype.rotateLeftButtonClicked=function(){var W=this.rotationAngle-90;this.rotationAngle%90!=0&&(W+=this.rotationAngle>=0?90-this.rotationAngle%90:-this.rotationAngle%90),this.rotateTo(W)},re.prototype.rotateRightButtonClicked=function(){var W=this.rotationAngle+90;this.rotationAngle%90!=0&&(W-=this.rotationAngle>=0?this.rotationAngle%90:90+this.rotationAngle%90),this.rotateTo(W)},re.prototype.rotateTo=function(W){W=(W=W>180?W-360:W)<=-180?W+360:W,this.rotationAngle=W,this.applyRotation()},re.prototype.rotateBy=function(W){this.rotateTo((this.rotationAngle+W)%360)},re.prototype.applyRotation=function(){var W=this.zoomToCropEnabled;this.zoomToCropEnabled=!1,this.editingTargetRotationScaleContainer.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationScaleContainer.style.transform="scale(1)";var V=this.editingTargetRotationContainer.transform.baseVal.getItem(0);V.setRotate(this.rotationAngle,this.imageWidth/2,this.imageHeight/2),this.editingTargetRotationContainer.transform.baseVal.replaceItem(V,0);var ne=this.editingTarget.getBoundingClientRect();this.scaleFactor=Math.min(this.imageWidth/ne.width,this.imageHeight/ne.height),this.editingTargetRotationScaleContainer.style.transform="scale("+this.scaleFactor+")",this.zoomToCropEnabled=W},re.prototype.flipHorizontallyButtonClicked=function(){this.flippedHorizontally=!this.flippedHorizontally,this.applyFlip()},re.prototype.flipVerticallyButtonClicked=function(){this.flippedVertically=!this.flippedVertically,this.applyFlip()},re.prototype.applyFlip=function(){this.editingTarget.style.transform="scale("+(this.flippedHorizontally?-1:1)+","+(this.flippedVertically?-1:1)+")"},re.prototype.startRenderAndClose=function(){return bt(this,void 0,void 0,function(){var W,V;return Dt(this,function(ne){switch(ne.label){case 0:return[4,this.render()];case 1:return W=ne.sent(),V=this.getState(),this.renderEventListeners.forEach(function(ve){return ve(W,V)}),this.close(!0),[2]}})})},re.prototype.render=function(){return bt(this,void 0,void 0,function(){var W;return Dt(this,function(V){switch(V.label){case 0:return(W=new Ei).naturalSize=this.renderAtNaturalSize,W.imageType=this.renderImageType,W.imageQuality=this.renderImageQuality,W.width=this.renderWidth,W.height=this.renderHeight,this.unzoomFromCrop(),_t.setAttributes(this.cropLayerContainer,[["display","none"]]),[4,W.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 V.sent(),[4,W.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,V.sent()]}})})},re.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new fn("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 fn("toolbar_colors",`
|
|
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new fn("toolbar-block",`
|
|
display: flex;
|
|
align-items: center;
|
|
box-sizing: content-box;
|
|
`));var W=this.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new fn("toolbar_button",`
|
|
display: inline-block;
|
|
width: `+(this.toolbarHeight-2*W)+`px;
|
|
height: `+(this.toolbarHeight-2*W)+`px;
|
|
padding: `+W+`px;
|
|
cursor: default;
|
|
user-select: none;
|
|
box-sizing: content-box;
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new fn("toolbar_button_colors",`
|
|
color: `+this.styles.settings.toolbarColor+`;
|
|
fill: currentColor;
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new fn("toolbar_active_button",`
|
|
color: `+this.styles.settings.toolbarColor+`;
|
|
fill: currentColor;
|
|
background-color: `+this.styles.settings.toolbarBackgroundActiveColor+`
|
|
`)),this.styles.addRule(new kt("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
height: `+this.toolbarHeight/2+`px;
|
|
`)),this.styles.addRule(new kt("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
background-color: `+this.styles.settings.toolbarBackgroundHoverColor+`
|
|
`)),this.toolbarDropdownStyleClass=this.styles.addClass(new fn("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 fn("toolbar_dropdown_colors",`
|
|
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
|
|
`)),this.toolbarStraightenerBlockStyleClass=this.styles.addClass(new fn("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 fn("toolbar_straightener",`
|
|
display: flex;
|
|
overflow: hidden;
|
|
justify-content: center;
|
|
height: `+(this.toolbarHeight-2*W)+`px;
|
|
padding: `+W+`px;
|
|
cursor: default;
|
|
user-select: none;
|
|
box-sizing: content-box;
|
|
`)),this.toolbarStraightenerStyleColorsClass=this.styles.addClass(new fn("toolbar_straightener_colors",`
|
|
color: `+this.styles.settings.toolbarColor+`;
|
|
fill: currentColor;
|
|
`))},re.instanceCounter=0,re}(),Ie=v("8hTe"),Ye=v.n(Ie),yt=/<pre[^>]*>/g;function Xt(re){var W=document.createElement("div");return W.innerHTML=re,W.childNodes.length===0?"":W.childNodes[0].nodeValue}var sn=te.a=function(re){var W=re.value,V=W===void 0?"":W,ne=re.edit,ve=ne===void 0?!1:ne,oe=re.className,et=re.showTextOnly,Qt=re.showLines,dn=re.replaces,Cn=re.zoomImg,Jt=re.hasMask,Vn=re.style,Xn=Vn===void 0?{}:Vn,lr=re.stylesPrev,Rr=lr===void 0?{}:lr,qr=String(V),zr=Object(p.useRef)(),Ca=Object(p.useRef)(),Dr=Object(p.useState)(""),ya=Object(M.a)(Dr,2),ka=ya[0],fi=ya[1],Ka=Object(p.useState)("office"),qa=Object(M.a)(Ka,2),Si=qa[0],pi=qa[1],ui=function(){var Pr=new _e(Ca.current);Pr.displayMode="popup",Pr.addRenderEventListener(function(){var ca=Object(O.a)(n.a.mark(function Jr(ri){var pa;return n.a.wrap(function(Di){for(;;)switch(Di.prev=Di.next){case 0:return zr.current.style.display="none",Di.next=3,Object(fe.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:ri}});case 3:pa=Di.sent,pa!=null&&pa.id&&dn(Ca.current.getAttribute("src").replace(Q.a.API_SERVER,""),"/api/attachments/".concat(pa==null?void 0:pa.id,"?type=").concat(pa.content_type));case 5:case"end":return Di.stop()}},Jr)}));return function(Jr){return ca.apply(this,arguments)}}()),Pr.show()},mi=function(){var Pr=new Oe(Ca.current);Pr.settings.displayMode="popup",Pr.addEventListener("render",function(){var ca=Object(O.a)(n.a.mark(function Jr(ri){var pa;return n.a.wrap(function(Di){for(;;)switch(Di.prev=Di.next){case 0:if(zr.current.style.display="none",!Ca.current){Di.next=6;break}return Di.next=4,Object(fe.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:ri.dataUrl}});case 4:pa=Di.sent,pa!=null&&pa.id&&dn(Ca.current.getAttribute("src").replace(Q.a.API_SERVER,""),"/api/attachments/".concat(pa==null?void 0:pa.id,"?type=").concat(pa.content_type));case 6:case"end":return Di.stop()}},Jr)}));return function(Jr){return ca.apply(this,arguments)}}()),Pr.show(),window.markerArea=Pr},_i=Object(p.useMemo)(function(){zr.current&&(zr.current.style.zIndex=-1);try{var ua=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,Pr=/\"\/api\/attachments\/|\"\/attachments\/download\//g,ca=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;qr=qr.replace(ua,"("+Q.a.API_SERVER+"/api/attachments/").replace(Pr,'"'+Q.a.API_SERVER+"/api/attachments/").replace(ca,'"'+Q.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(mo){}var Jr=H(qr),ri=T();if(qr.match(/\[TOC\]/)&&(Jr=Jr.replace("<p>[TOC]</p>",P()),E()),Jr=Jr.replace(/(__special_katext_id_\d+__)/g,function(mo,Di){var ci=ri[Di],Wo=ci.type,Mo=ci.expression;return Object($.renderToString)(Xt(Mo)||"",{displayMode:Wo==="block",throwOnError:!1,output:"html"})}),Jr=Jr.replace(/▁/g,"\u2581\u2581\u2581"),m(),et){var pa=document.createElement("div");return pa.innerHTML=Jr,pa.innerText}return setTimeout(function(){return Yi()},500),Jr},[qr]),ai=Object(p.useRef)();B.WebkitLineClamp=Qt,Qt&&(Xn=Object(_.a)(Object(_.a)({},Xn),B));function Hi(ua){var Pr=ua.target;if(Pr.tagName.toUpperCase()==="IMG"){if(Cn){var ca=Pr.getAttribute("src");fi(ca),pi("image")}}else if(Pr.tagName.toUpperCase()==="A"){var Jr=Pr.getAttribute("href");if(Jr.indexOf("office")>-1)ua.preventDefault(),fi(Jr),pi("office");else if(Jr.indexOf("application/pdf")>-1)ua.preventDefault(),fi(Jr),pi("pdf");else if(Jr.indexOf("text/html")>-1)ua.preventDefault(),fi(Jr),pi("html");else if(Jr.startsWith("#")){ua.preventDefault();var ri=document.getElementById(Jr.replace("#",""));ri&&ri.scrollIntoView(!0)}}}var Yi=function(){var Pr,ca=(Pr=ai.current)===null||Pr===void 0?void 0:Pr.querySelectorAll("video");ca==null||ca.forEach(function(Jr){if(Jr.oncontextmenu=function(){return!1},Jr.src.indexOf(".m3u8")>-1&&!Jr.canPlayType("application/vnd.apple.mpegurl")){if(z.a.isSupported()){var ri=new z.a;ri.loadSource(Jr.src),ri.attachMedia(Jr)}}})};Object(p.useEffect)(function(){if(ai.current&&_i&&(_i.match(yt)&&window.PR.prettyPrint()),ai.current)return ai.current.addEventListener("click",Hi),function(){ai.current.removeEventListener("click",Hi),m(),E()}},[_i,ai.current,Hi]);var $r=function(Pr){if(!ve)return;Pr.target.nodeName==="IMG"?(zr.current.style.zIndex=1,zr.current.style.display="flex",zr.current.style.width=Pr.target.clientWidth+"px",zr.current.style.height=Pr.target.clientHeight+"px",zr.current.style.top=Pr.target.offsetTop+"px",zr.current.style.left=Pr.target.offsetLeft+"px",Ca.current.src=Pr.target.getAttribute("src")):zr.current.style.display="none"};return a.a.createElement("div",{style:{position:"relative"}},a.a.createElement("div",{ref:ai,style:Object(_.a)({},Xn),className:"".concat(oe||""," markdown-body ").concat(Ye.a.mdBody),onMouseOver:$r,dangerouslySetInnerHTML:{__html:_i}}),a.a.createElement("div",{ref:zr,className:Ye.a.button},a.a.createElement(K.a,null,a.a.createElement(k.a,{onClick:function(){return ui()}},"\u88C1\u526A"),a.a.createElement(k.a,{onClick:function(){return mi()}},"\u7F16\u8F91"))),a.a.createElement("img",{ref:Ca,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1}}),a.a.createElement(ee.a,{close:!0,data:ka,type:ka!=null&&ka.length?Si:"",style:Object(_.a)({},Rr),onClose:function(){return fi("")}}))}},"9VGf":function(Re,te,v){"use strict";v.d(te,"a",function(){return I});var Z=v("q1tI"),K=v.n(Z);function I(k,_){var O=Object(Z.useRef)();Object(Z.useEffect)(function(){O.current=k}),Object(Z.useEffect)(function(){function M(){O.current()}if(_!==null){var x=setInterval(M,_);return function(){return clearInterval(x)}}},[_])}},"9nDM":function(Re,te,v){},"9z17":function(Re,te,v){"use strict";v.d(te,"b",function(){return w});var Z=v("g9YV"),K=v("wCAj"),I=v("5NDa"),k=v("5rEg"),_=v("y8nQ"),O=v("Vl3Y"),M=v("2qtc"),x=v("kLXV"),n=v("7Kak"),p=v("9yH6"),a=v("9og8"),t=v("tJVT"),h=v("WmNS"),s=v.n(h),i=v("q1tI"),u=v.n(i),d=v("ie49"),f=v.n(d),o=v("HBuW"),c=function(l){var A=l.total,g=l.used,T=l.copy,m=l.canNotCopy,y=l.inPaper,U="";return T>0&&m>0?U="\u5176\u4E2D\u6709".concat(T,"\u4E2A\u5B9E\u8BAD\u53EF\u4EE5\u590D\u5236\uFF0C\u6709").concat(m,"\u4E2A\u5B9E\u8BAD\u672A\u5F00\u653E\u590D\u5236"):T>0&&m===0?U="\u5176\u4E2D\u6709".concat(T,"\u4E2A\u5B9E\u8BAD\u53EF\u4EE5\u590D\u5236"):T===0&&m>0&&(U="\u5176\u4E2D\u6709".concat(m,"\u4E2A\u5B9E\u8BAD\u672A\u5F00\u653E\u590D\u5236")),"\u5F53\u524D\u9009\u4E2D".concat(A,"\u4E2A\u5B9E\u8BAD\u4E2D\uFF0C\u6709").concat(g,"\u4E2A\u5B9E\u8BAD\u5DF2\u5728\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF0C").concat(U).concat(y?"\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u4F7F\u7528\u8BD5\u5377\uFF1F":"")},E=function(l){return l?{reproducible:"\u8BD5\u5377\u4E2D\u4E0B\u5217\u5B9E\u8BAD\u5DF2\u5728\u6559\u5B66\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF0C\u8BF7\u9009\u62E9\u662F\u5426\u590D\u5236\u4E3A\u65B0\u7684\u5B9E\u8BAD\u53D1\u9001\u5230\u8BFE\u5802\uFF1F",irreproducible:"\u8BD5\u5377\u4E2D\u4E0B\u5217\u91CD\u590D\u4F7F\u7528\u7684\u5B9E\u8BAD\u672A\u5F00\u542F\u590D\u5236\u6743\u9650\uFF0C\u82E5\u7EE7\u7EED\u4F7F\u7528\u4F1A\u5BFC\u81F4\u6210\u7EE9\u76F8\u4E92\u5F71\u54CD"}:{reproducible:"\u5F53\u524D\u5B9E\u8BAD\u5DF2\u5728\u6559\u5B66\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF0C\u8BF7\u9009\u62E9\u662F\u5426\u7EE7\u7EED\u4F7F\u7528\u548C\u662F\u5426\u590D\u5236\u4E3A\u65B0\u7684\u5B9E\u8BAD\u53D1\u9001\u5230\u8BFE\u5802\uFF1F",irreproducible:"\u540C\u4E00\u5B9E\u8BAD\u5728\u4E00\u4E2A\u8BFE\u5802\u4E2D\u91CD\u590D\u4F7F\u7528\u65F6\uFF0C\u4F1A\u5BFC\u81F4\u6210\u7EE9\u76F8\u4E92\u5F71\u54CD\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u7EE7\u7EED\u4F7F\u7528\uFF1F"}},B=function(l){var A=l.onCancel,g=l.onOk,T=l.visible,m=l.inPaper,y=l.renderData,U=l.type,N=Object(i.useState)(1),S=Object(t.a)(N,2),H=S[0],F=S[1],R=Object(i.useState)(!1),z=Object(t.a)(R,2),Q=z[0],$=z[1],ee=Object(i.useMemo)(function(){return(y==null?void 0:y.total_num)===1&&(y==null?void 0:y.can_copy_num)===1},[y]);return u.a.createElement(u.a.Fragment,null,ee?u.a.createElement(x.a,{centered:!0,closable:!0,visible:T,title:"\u63D0\u793A",width:600,confirmLoading:Q,onCancel:A,onOk:Object(a.a)(s.a.mark(function fe(){return s.a.wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:return $(!0),ce.next=3,g(H);case 3:$(!1);case 4:case"end":return ce.stop()}},fe)}))},u.a.createElement("div",{className:f.a.content,style:{marginBottom:20}},"\u5F53\u524D\u5B9E\u8BAD\u5DF2\u5728\u6559\u5B66\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF0C\u8BF7\u95EE\u662F\u5426\u590D\u5236\u6210\u65B0\u5B9E\u8BAD\u53D1\u9001\u81F3\u6559\u5B66\u8BFE\u5802\u4E2D\uFF1F"),u.a.createElement(p.a.Group,{value:H,onChange:function(Ae){return F(Ae.target.value)},className:f.a.content,style:{marginBottom:30}},u.a.createElement(p.a,{value:1,style:{color:"#464f66"}},"\u590D\u5236\u5B9E\u8BAD"),u.a.createElement(p.a,{value:0,style:{color:"#464f66"}},"\u4E0D\u590D\u5236\u5B9E\u8BAD")),u.a.createElement("div",{className:f.a.content,style:{marginBottom:10}},"\u8BF4\u660E\uFF1A"),u.a.createElement("div",{className:f.a.content},"\u590D\u5236\u5B9E\u8BAD\uFF1A\u590D\u5236\u4E00\u4EFD\u65B0\u7684\u5B9E\u8BAD\u8FDB\u5165\u8BFE\u5802\uFF0C\u539F\u5B9E\u8BAD\u7684\u8C03\u6574\u4E0D\u4F1A\u5F71\u54CD\u5230\u590D\u5236\u7684\u5B9E\u8BAD\u4E2D\u3002"),u.a.createElement("div",{className:f.a.content},"\u4E0D\u590D\u5236\u5B9E\u8BAD\uFF1A\u540C\u4E00\u5B9E\u8BAD\u5728\u4E00\u4E2A\u8BFE\u5802\u4E2D\u91CD\u590D\u4F7F\u7528\u65F6\uFF0C\u4F1A\u5BFC\u81F4\u6210\u7EE9\u76F8\u4E92\u5F71\u54CD\u3002")):u.a.createElement(x.a,{centered:!0,closable:!0,visible:T,title:"\u63D0\u793A",width:600,onCancel:A,onOk:Object(a.a)(s.a.mark(function fe(){return s.a.wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:return $(!0),ce.next=3,g(0);case 3:$(!1);case 4:case"end":return ce.stop()}},fe)}))},u.a.createElement("div",{className:f.a.content},"\u5F53\u524D\u5B9E\u8BAD\u5DF2\u5728\u6559\u5B66\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF0C\u540C\u4E00\u5B9E\u8BAD\u5728\u4E00\u4E2A\u8BFE\u5802\u4E2D\u91CD\u590D\u4F7F\u7528\u65F6\uFF0C\u4F1A\u5BFC\u81F4\u6210\u7EE9\u76F8\u4E92\u5F71\u54CD\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u7EE7\u7EED\u4F7F\u7528\uFF1F")))},w=function(){var l=Object(i.useState)(!1),A=Object(t.a)(l,2),g=A[0],T=A[1],m=Object(i.useState)(),y=Object(t.a)(m,2),U=y[0],N=y[1],S=function(){return T(!1)},H=function(){var F=Object(a.a)(s.a.mark(function R(z){var Q;return s.a.wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:return ee.next=2,Object(o.p)(z);case 2:if(Q=ee.sent,!("status"in Q)){ee.next=5;break}return ee.abrupt("return",!1);case 5:if(!(Q.repeat_shixun_num===0)){ee.next=7;break}return ee.abrupt("return",!1);case 7:return N(Q),T(!0),ee.abrupt("return",!0);case 10:case"end":return ee.stop()}},R)}));return function(z){return F.apply(this,arguments)}}();return[g,S,U,H]},P=function(l){var A=O.a.useForm(),g=Object(t.a)(A,1),T=g[0],m=Object(i.useState)(!1),y=Object(t.a)(m,2),U=y[0],N=y[1],S=l.onCancel,H=l.onOk,F=l.visible,R=l.inPaper,z=R===void 0?!1:R,Q=l.renderData,$=l.type,ee=Object(i.useMemo)(function(){return z?[{title:"\u5B9E\u8BAD\u540D\u79F0",dataIndex:"name",width:424,align:"center",className:f.a.tableCell},{title:"\u662F\u5426\u590D\u5236",dataIndex:"is_copy",align:"center",render:function(be,se){return u.a.createElement(u.a.Fragment,null,u.a.createElement(O.a.Item,{name:["".concat($==="subject"?se.stage_shixun_id:se.id),"is_copy"],initialValue:1},u.a.createElement(p.a.Group,null,u.a.createElement(p.a,{value:1},"\u662F"),u.a.createElement(p.a,{value:0},"\u5426"))),u.a.createElement(O.a.Item,{name:["".concat($==="subject"?se==null?void 0:se.stage_shixun_id:se.id),"is_use"],hidden:!0,initialValue:1},u.a.createElement(k.a,{type:"hidden"})))}}]:[{title:"\u5B9E\u8BAD\u540D\u79F0",dataIndex:"name",width:424,align:"center",className:f.a.tableCell},{title:"\u662F\u5426\u4F7F\u7528",dataIndex:"is_use",align:"center",render:function(be,se){return u.a.createElement(O.a.Item,{name:["".concat($==="subject"?se.stage_shixun_id:se.id),"is_use"],initialValue:1},u.a.createElement(p.a.Group,null,u.a.createElement(p.a,{value:1},"\u662F"),u.a.createElement(p.a,{value:0},"\u5426")))}},{title:"\u662F\u5426\u590D\u5236",dataIndex:"is_copy",align:"center",render:function(be,se){return u.a.createElement(O.a.Item,{name:["".concat($==="subject"?se.stage_shixun_id:se.id),"is_copy"],initialValue:1},u.a.createElement(p.a.Group,null,u.a.createElement(p.a,{value:1},"\u662F"),u.a.createElement(p.a,{value:0},"\u5426")))}}]},[z]),fe=Object(i.useMemo)(function(){return z?[{title:"\u5B9E\u8BAD\u540D\u79F0",dataIndex:"name",width:424,className:f.a.tableCell,align:"center",render:function(be,se){return u.a.createElement(u.a.Fragment,null,u.a.createElement("span",null,be),u.a.createElement(O.a.Item,{name:["".concat($==="subject"?se==null?void 0:se.stage_shixun_id:se.id),"is_copy"],hidden:!0,initialValue:0},u.a.createElement(k.a,{type:"hidden"})),u.a.createElement(O.a.Item,{name:["".concat($==="subject"?se==null?void 0:se.stage_shixun_id:se.id),"is_use"],hidden:!0,initialValue:1},u.a.createElement(k.a,{type:"hidden"})))}}]:[{title:"\u5B9E\u8BAD\u540D\u79F0",dataIndex:"name",width:424,className:f.a.tableCell,align:"center"},{title:"\u662F\u5426\u4F7F\u7528",dataIndex:"is_use",align:"center",render:function(be,se){return u.a.createElement(u.a.Fragment,null,u.a.createElement(O.a.Item,{name:["".concat($==="subject"?se==null?void 0:se.stage_shixun_id:se.id),"is_use"],initialValue:0},u.a.createElement(p.a.Group,null,u.a.createElement(p.a,{value:1},"\u662F"),u.a.createElement(p.a,{value:0},"\u5426"))),u.a.createElement(O.a.Item,{name:["".concat($==="subject"?se==null?void 0:se.stage_shixun_id:se.id),"is_copy"],hidden:!0,initialValue:0},u.a.createElement(k.a,{type:"hidden"})))}}]},[z]),Ae=Object(i.useMemo)(function(){return c({total:Q==null?void 0:Q.total_num,used:Q==null?void 0:Q.repeat_shixun_num,copy:Q==null?void 0:Q.can_copy_num,canNotCopy:Q==null?void 0:Q.no_copy_num,inPaper:z})},[Q,z]),ce=Object(i.useMemo)(function(){return E(z)},[z]);return u.a.createElement(x.a,{title:"\u5B9E\u8BAD\u91CD\u590D\u4F7F\u7528\u63D0\u793A",centered:!0,visible:F,confirmLoading:U,onOk:Object(a.a)(s.a.mark(function ie(){var be,se;return s.a.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return N(!0),be=T.getFieldsValue(),se=Object.keys(be).map(function(ge){return{id:parseInt(ge),is_use:be[ge].is_use,is_copy:be[ge].is_copy}}),le.next=5,H(se);case 5:N(!1);case 6:case"end":return le.stop()}},ie)})),onCancel:S,width:800,okText:"\u786E\u8BA4",className:f.a.antdModal,destroyOnClose:!0},u.a.createElement(O.a,{form:T,preserve:!1},u.a.createElement("div",{className:f.a.brief},Ae),(Q==null?void 0:Q.can_copy_num)>0&&u.a.createElement("div",null,u.a.createElement("div",{className:f.a.contentTitle},"\u53EF\u590D\u5236\u5B9E\u8BAD"),u.a.createElement("div",{className:f.a.content},ce.reproducible),u.a.createElement("div",{className:f.a.tips},u.a.createElement("div",null,"\u590D\u5236\u5B9E\u8BAD\uFF1A\u590D\u5236\u4E00\u4EFD\u65B0\u7684\u5B9E\u8BAD\u8FDB\u5165\u8BFE\u5802\uFF0C\u539F\u5B9E\u8BAD\u7684\u8C03\u6574\u4E0D\u4F1A\u5F71\u54CD\u5230\u590D\u5236\u7684\u5B9E\u8BAD\u4E2D\u3002"),u.a.createElement("div",null,"\u4E0D\u590D\u5236\u5B9E\u8BAD\uFF1A\u540C\u4E00\u5B9E\u8BAD\u5728\u4E00\u4E2A\u8BFE\u5802\u4E2D\u91CD\u590D\u4F7F\u7528\u65F6\uFF0C\u4F1A\u5BFC\u81F4\u6210\u7EE9\u76F8\u4E92\u5F71\u54CD\u3002")),u.a.createElement(K.a,{columns:ee,className:f.a.antdTable,dataSource:Q==null?void 0:Q.can_copy_list,rowKey:$==="subject"?"stage_shixun_id":"id",pagination:!1,scroll:{y:240},bordered:!0})),(Q==null?void 0:Q.no_copy_num)>0&&u.a.createElement("div",null,u.a.createElement("div",{className:f.a.contentTitle},"\u4E0D\u53EF\u590D\u5236\u5B9E\u8BAD"),u.a.createElement("div",{className:f.a.content},ce.irreproducible),u.a.createElement(K.a,{columns:fe,className:f.a.antdTable,dataSource:Q==null?void 0:Q.no_copy_list,rowKey:$==="subject"?"stage_shixun_id":"id",pagination:!1,scroll:{y:200},bordered:!0})),(Q==null?void 0:Q.no_use_list.length)>0&&(Q==null?void 0:Q.no_use_list.map(function(ie){return u.a.createElement("div",{key:$==="subject"?ie.stage_shixun_id:ie.id},u.a.createElement(O.a.Item,{name:["".concat($==="subject"?ie==null?void 0:ie.stage_shixun_id:ie.id),"is_copy"],hidden:!0,initialValue:0},u.a.createElement(k.a,{type:"hidden"})),u.a.createElement(O.a.Item,{name:["".concat($==="subject"?ie==null?void 0:ie.stage_shixun_id:ie.id),"is_use"],hidden:!0,initialValue:1},u.a.createElement(k.a,{type:"hidden"})))}))))},C=function(l){var A=l.modalType;return A==="multiple"?u.a.createElement(P,l):u.a.createElement(B,l)};te.a=C},"A/g1":function(Re,te){Re.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAF92lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNi4wLWMwMDMgNzkuMTY0NTI3LCAyMDIwLzEwLzE1LTE3OjQ4OjMyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoTWFjaW50b3NoKSIgeG1wOkNyZWF0ZURhdGU9IjIwMjEtMDctMDJUMTk6Mzg6MjMrMDg6MDAiIHhtcDpNb2RpZnlEYXRlPSIyMDIxLTA3LTAyVDE5OjQxOjQ2KzA4OjAwIiB4bXA6TWV0YWRhdGFEYXRlPSIyMDIxLTA3LTAyVDE5OjQxOjQ2KzA4OjAwIiBkYzpmb3JtYXQ9ImltYWdlL3BuZyIgcGhvdG9zaG9wOkNvbG9yTW9kZT0iMyIgcGhvdG9zaG9wOklDQ1Byb2ZpbGU9InNSR0IgSUVDNjE5NjYtMi4xIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOmVkYzRhODM0LTVjNWQtNDQ1My04MDYzLWNkNzcwODQyODg5ZSIgeG1wTU06RG9jdW1lbnRJRD0iYWRvYmU6ZG9jaWQ6cGhvdG9zaG9wOjQ4MTE0OTVlLTVkMDctZTk0YS1iNWEwLWYxOWJmZmM0NGUyNyIgeG1wTU06T3JpZ2luYWxEb2N1bWVudElEPSJ4bXAuZGlkOmMwNjQyYzA1LTg5MzQtNDdlYy04MTFiLTlkYjdhZGNkYjFiMCI+IDx4bXBNTTpIaXN0b3J5PiA8cmRmOlNlcT4gPHJkZjpsaSBzdEV2dDphY3Rpb249ImNyZWF0ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6YzA2NDJjMDUtODkzNC00N2VjLTgxMWItOWRiN2FkY2RiMWIwIiBzdEV2dDp3aGVuPSIyMDIxLTA3LTAyVDE5OjM4OjIzKzA4OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoTWFjaW50b3NoKSIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6ZWRjNGE4MzQtNWM1ZC00NDUzLTgwNjMtY2Q3NzA4NDI4ODllIiBzdEV2dDp3aGVuPSIyMDIxLTA3LTAyVDE5OjQxOjQ2KzA4OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoTWFjaW50b3NoKSIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5fJkpyAAAGoElEQVRogc2abWxbVxnH/8+59/rdTpx2GW3UNWJJV7Ylaxp3LUFsWgJDiI5R8bK2GppAmsgQLKQthS8IEJ9okibrREf3gX2Y1K2bxAoDtog60RBSVxKnWUO7kpSppXJZK2ja2HFi33vPw4cmpbN9r++1k8Lv2znnf577f+zje95Mhw4dQqUkwljpF7kuv0EdHkm1HklRr6TQq2tn5xcklwhIMnMSQJIJxykTiSce+1am0mer5XacqM7uDJjiqbAuWlvSygrBnmKyxcoIA+tBBAAgAAikjNZ47zCIh8E8mOjYO1aOD3L7DYzXZJurs8qhuzLqFsH22hcbUs6CMudAol8Ic2Dkkb0fuvEj3IinwvobjTOeRP1safOuIPIA/AMpxbsb4z3fc9PVUQLvRY37L/vMDxtT2peCBpU97BywlkD9sXjvbzcfG7jTSYeSCZyK6l9tTCkn75xXHAVcChh4zCDzLy1DfQ+U0tomcDaSO9A8rb0WWN5P3QK+SzCPx471bLdTWSYwFdZfXz/j+e7SG3MHE73SGu+19FE0gTNV+o8aU9pXls+Waw7E4r2fL9ZQkMB4jd5xd1r96fJ7cgeDX944vL8hv74ggdUZccRrLsw4/1fQCpLyYH7tRxKYCutv1M4rK26fKdd8Nn+euJnAySp9w+o5dettt+QSItHV+nb/qsXyzddj1KAXlnmSsuIMgV8v1sCgHxdWcj002QXgh8BCAqdq9B33T2tbltOlBWcEia+NtO86nd/QOtR3EGyxXmHZHXun78jow7tPCgAI6NixpGsbZ1ibj/d2gvkZy55EHpbcDiz8BkK62LRsNotjaX5TvK8NzH0lI5j0aQAQ4z69pjarfGwZTFphab55sCdogntAFCgZhfgLn3xtv19oPnTexuFjaR4ANJV6CWhzGEvNrpQPiYBOt+vVaWu+Nd7bCaDTTUCS9LDwSNQuiT17bM3fGPd4zn1YWSc8kqJO5e9H9P6LAeNvLp9ia755sCcoiftAKLqptoOI6oRXUsiJ+FxIf/MTM9quNRl1/XhN7p7zQWPUQTdb88CNcQ9GWXMQA3XCb5JWSngxYJxtSGtfXCxvuOqZrJ9VN53wpcMfhIxhs8jSb0aT2VLmyxn3edQ52hOnNf5dsfrN86H0x9Nqu8KgqbBxdF5hCdwwfyFkPmFnflO8rw3AL8qy/V9YzCmsl1I1pNTdp6N6t52mMaVu85mkTEb0ly6EzCeaprXfWGmbB3uCTHgOLk9FCqGkmhWcBlBjJ9MkUX1K3TcRzV5qmvYesdOum9G+Weqxmop+Zo65dFsAEydFTvC0E3HQIHVNWnvpvRVGRYu+G+Oenq4kxiIk+ZLIKbjitEO1Lvyr0/SHieD8qtLqQhbG/Qvl9C2OSIqMWvwHasUdWSW6Umojbh/VPNgTlOCCLWElsOB3hO7BL6XLHfCqOaXuYsA466aPR6XnAZQ8qHKB4fWJP4kNV7SrV3ymqwNVAFiTUe85HzLedaKNxfd/h4FvuPdoA9Hvj7ftmhMAkFbZyaxaQH1a3XwurL9tp4kN7fsUQz5fTnxbGH8GFt7DcwpecTuMFmlIaZ+bjOgvF2u7d/gnIWZR+Q1KPowcIIaAhQSarqmH/xE0TpQbb92M9uT7kdz+/HqfDB0EcF/ZRi1ggYFER/cYcMtMOO3jzlmVjXKDrkt5uv9are9ZLJ8L6UcJ+HplVotygVRlYLFwM4GWf2njl/ymq1fqrSgM3J1Sfz5Rnd15ulp/tiGtPV6h0aIwaCDxUPc/F8sfOQdqTKnbrvjMf9fOK7ZLCyv8Jom1s9qvsHANttQw4dhY++6BW+sKFlNJr7E9K6wOZEoT0YU3ogvXm5OSMK5KQ347v7oggZbr3j/+PWwUnoj9jyHCk+OP7p3Kry+6nL33uvazqbD+6+W35RDmrtGOPW8Va7JcjzemtC+frTKWfgJyCQmxI/GZ7x+warfdUKy/rj47UZXdnlHZXHprJWBcFKZsGX1k16t2spI7oqbr3iOTkdzGyz7z8tK5s4eAN4UiHxx5dO94Ka2jLd2Gq95TI/e9tXoqbBytZLJzwAUGdY+273nc6Y294z3p1sRW2ZhSt02Gsg+eDxknyl07FYWRY8I+aZptYx27B0Bw/Bp3faHRcs13EsCWiWpjZ8DEU+Ecxe7IKjVl5GMy8zAJMQSIwbH27rL+7FH2jUzTNfUwgMMAkFiFlf5MrstviA4PU61HIuo1KQRCdkGeJCDJoCQkkkzyOFVF4mOxyv9u8x8opnU6UeBF0wAAAABJRU5ErkJggg=="},A2z3:function(Re,te,v){Re.exports=v.p+"static/Certificate.80413b23.png"},AZ8Y:function(Re,te,v){"use strict";v.r(te);var Z=v("T2oS"),K=v("W9HT"),I=v("k1fw"),k=v("9og8"),_=v("tJVT"),O=v("PpiC"),M=v("Znn+"),x=v("ZTPi"),n=v("WmNS"),p=v.n(n),a=v("q1tI"),t=v.n(a),h=v("Ty5D"),s=v("9kvl"),i=v("+L6B"),u=v("2/Rp"),d=v("oBTY"),f=v("pC0b"),o=v("GzdX"),c=v("+BJd"),E=v("mr32"),B=v("qVdP"),w=v("jsC+"),P=v("lUTK"),C=v("BvKs"),b=v("5Dmo"),l=v("3S7+"),A=v("7Kak"),g=v("9yH6"),T=v("2qtc"),m=v("kLXV"),y=v("miYZ"),U=v("tsqr"),N=v("0NbB"),S=v("JTSX"),H=v.n(S),F=v("xKgJ"),R=v("Mgx3"),z=v("ozfa"),Q=v("MJZm"),$=v("sRBo"),ee=v("kaz8"),fe=v("14J3"),Ae=v("BMrR"),ce=v("jCWc"),ie=v("kPKH"),be=v("OaEy"),se=v("2fM7"),me=v("wd/R"),le=v.n(me),ge=v("kNP/"),ae=v.n(ge),pe=v("1vsH"),Me=v("9z17"),xe=se.a.Option,Ke=function(qe){var Bt=qe.pathsDetail,$t=qe.globalSetting,cn=qe.loading,Kt=qe.dispatch,_n=Object(O.a)(qe,["pathsDetail","globalSetting","loading","dispatch"]),rn=Object(h.i)(),jt=Object(a.useState)(),An=Object(_.a)(jt,2),qt=An[0],En=An[1],kn=Object(a.useState)([]),Yt=Object(_.a)(kn,2),wn=Yt[0],ln=Yt[1],xn=Object(a.useState)([]),an=Object(_.a)(xn,2),Vt=an[0],Sn=an[1],hr=Object(a.useState)([]),pn=Object(_.a)(hr,2),Dn=pn[0],Nn=pn[1],Gn=Object(a.useState)(),yn=Object(_.a)(Gn,2),Kn=yn[0],or=yn[1],gr=Object(a.useState)(),Ur=Object(_.a)(gr,2),er=Ur[0],rr=Ur[1],Lr=Object(a.useState)(!0),Er=Object(_.a)(Lr,2),_r=Er[0],sa=Er[1];Object(a.useEffect)(function(){Bt.actionTabs.key==="PathsDetail-SendToClass"&&tr()},[Bt.actionTabs.key]);var ta=function(ba){switch(ba.item_type){case"Shixun":return t.a.createElement("span",null,t.a.createElement("span",{className:"mr5 c-light-primary"},"\u5B9E\u8BAD"),ba.name);case"Attachment":return t.a.createElement("span",null,t.a.createElement("span",{className:"mr5 c-cyan-blue"},"\u8BFE\u4EF6"),ba.name);case"VideoItem":return t.a.createElement("span",null,t.a.createElement("span",{className:"mr5 c-purple-8C1"},"\u89C6\u9891"),ba.name);case"StageCatalog":return t.a.createElement("span",null,ba.name);default:return""}},tr=function(){var da=Object(k.a)(p.a.mark(function ba(){var ha,Ta,Da;return p.a.wrap(function(Qr){for(;;)switch(Qr.prev=Qr.next){case 0:return Qr.next=2,Object(R.H)({id:rn.pathId});case 2:ha=Qr.sent,ha&&(ln((ha==null?void 0:ha.courses)||[]),Da=(Ta=ha.stages)===null||Ta===void 0?void 0:Ta.map(function(Wa,Ea){var za;return{title:Wa.state_name||"",key:Ea,children:(za=Wa.items)===null||za===void 0?void 0:za.map(function(hi,Ji){var Li;return Object(I.a)(Object(I.a)({},hi),{},{disabled:hi.is_jupyter,title:ta(hi),key:"".concat(Ea,"-").concat(Ji),children:(Li=hi.children)===null||Li===void 0?void 0:Li.map(function(Ci,Uo){return Object(I.a)(Object(I.a)({},Ci),{},{disabled:Ci.is_jupyter,title:ta(Ci),key:"".concat(Ea,"-").concat(Ji,"-").concat(Uo)})})})})}}),Sn(Da||[]));case 4:case"end":return Qr.stop()}},ba)}));return function(){return da.apply(this,arguments)}}(),vr=function(ba,ha){Nn(ba)},ja=function(ba){var ha=ba.target.checked,Ta=[];Vt==null||Vt.map(function(Da,Ua){var Qr;Ta.push(Ua),Da==null||((Qr=Da.children)===null||Qr===void 0)||Qr.map(function(Wa,Ea){var za;Ta.push("".concat(Ua,"-").concat(Ea)),Wa==null||((za=Wa.children)===null||za===void 0)||za.map(function(hi,Ji){Ta.push("".concat(Ua,"-").concat(Ea,"-").concat(Ji))})})}),Nn(ha?Ta:[])},ia=function(){var ba=Dn.filter(function(Qr){return typeof Qr=="string"}),ha=[],Ta=[],Da=[],Ua=[];return Vt==null||Vt.map(function(Qr,Wa){var Ea;Qr==null||((Ea=Qr.children)===null||Ea===void 0)||Ea.map(function(za,hi){var Ji;ba.includes("".concat(Wa,"-").concat(hi))&&(Da.push(za.stage_item_id),za.item_type==="Shixun"?ha.push(za.id):za.item_type==="Attachment"?Ua.push(za.id):za.item_type==="VideoItem"&&Ta.push(za.id)),za==null||((Ji=za.children)===null||Ji===void 0)||Ji.map(function(Li,Ci){ba.includes("".concat(Wa,"-").concat(hi,"-").concat(Ci))&&(Da.push(Li.stage_item_id),Li.item_type==="Shixun"?ha.push(Li.id):Li.item_type==="Attachment"?Ua.push(Li.id):Li.item_type==="VideoItem"&&Ta.push(Li.id))})})}),{shixunIds:ha,videoItemIds:Ta,stageItemIds:Da,coursewareIds:Ua}},Yn=Object(Me.b)(),vn=Object(_.a)(Yn,4),yr=vn[0],oi=vn[1],Cr=vn[2],Ir=vn[3],fr=function(){var da=Object(k.a)(p.a.mark(function ba(){var ha,Ta,Da;return p.a.wrap(function(Qr){for(;;)switch(Qr.prev=Qr.next){case 0:if(ha=ia(),Ta=ha.stageItemIds,qt){Qr.next=4;break}return U.b.info("\u60A8\u8FD8\u672A\u9009\u62E9\u53D1\u9001\u7684\u8BFE\u5802"),Qr.abrupt("return");case 4:if(!(!qn.length&&!cr.length&&!Pa.length)){Qr.next=7;break}return U.b.info("\u60A8\u8FD8\u672A\u9009\u62E9\u5B9E\u8BAD\u6216\u8005\u89C6\u9891"),Qr.abrupt("return");case 7:return rr(!0),Qr.next=10,Ir({id:rn.pathId,course_id:parseInt(qt),type:"subject",stage_item_id:Ta,sync_catelog:_r?1:0});case 10:if(Da=Qr.sent,Da){Qr.next=14;break}return Qr.next=14,ar(Ta.map(function(Wa){return{id:Wa,is_copy:0,is_use:1}}));case 14:rr(!1),Ln();case 16:case"end":return Qr.stop()}},ba)}));return function(){return da.apply(this,arguments)}}(),ar=function(){var da=Object(k.a)(p.a.mark(function ba(ha){var Ta;return p.a.wrap(function(Ua){for(;;)switch(Ua.prev=Ua.next){case 0:return Ua.next=2,Object(R.P)({id:rn.pathId,course_id:qt,stage_shixuns:ha.map(function(Qr){return{stage_shixun_id:Qr.id,is_copy:Qr.is_copy,is_use:Qr.is_use}}),sync_catelog:_r?1:0});case 2:Ta=Ua.sent,En(null),oi(),(Ta==null?void 0:Ta.status)===1&&m.a.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:t.a.createElement("div",{className:"tc"},Ta.message),onOk:function(){var Wa,Ea=Ta==null||((Wa=Ta.url.split("/"))===null||Wa===void 0)?void 0:Wa[2];Object(pe.S)("/classrooms/".concat(Ea,"/shixun_homework"))}});case 6:case"end":return Ua.stop()}},ba)}));return function(ha){return da.apply(this,arguments)}}(),Ln=function(){Kt({type:"pathsDetail/setActionTabs",payload:{}}),Nn([]),or(null)},Mn=ia(),gn=Mn.shixunIds,qn=gn===void 0?[]:gn,na=Mn.videoItemIds,cr=na===void 0?[]:na,jr=Mn.coursewareIds,Pa=jr===void 0?[]:jr;return t.a.createElement(t.a.Fragment,null,t.a.createElement(m.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:Bt.actionTabs.key==="PathsDetail-SendToClass",title:"\u53D1\u9001\u81F3\u8BFE\u5802",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",confirmLoading:er,width:600,onOk:fr,onCancel:Ln},t.a.createElement("div",{className:ae.a.wrap},t.a.createElement("div",{className:"mb10"},t.a.createElement(se.a,{placeholder:"\u8BF7\u9009\u62E9\u60A8\u8981\u53D1\u9001\u7684\u8BFE\u5802",defaultOpen:!1,value:qt,style:{width:"100%"},onSelect:function(ba){return En(ba)},optionLabelProp:"lable"},wn==null?void 0:wn.map(function(da,ba){return t.a.createElement(xe,{key:da.course_id,value:da.course_id,lable:da.course_name},t.a.createElement(Ae.a,{justify:"space-between"},t.a.createElement(ie.a,null,da.course_name),t.a.createElement(ie.a,null,le()(da.created_at).format("YYYY-MM-DD HH:mm"))))}))),t.a.createElement("div",{className:ae.a.title},"\u6E29\u99A8\u63D0\u793A\uFF1A",t.a.createElement("br",null),"1.\u8BF7\u5728\u672C\u8BFE\u7A0B\u4E2D\u9009\u62E9\u6240\u9700\u9879\u76EE\u53D1\u9001\u5230\u6307\u5B9A\u8BFE\u5802\uFF1B",t.a.createElement("br",null),"2.\u672A\u53D1\u5E03\u7684\u5B9E\u8BAD\u4E0D\u80FD\u53D1\u9001\u81F3\u8BFE\u5802\uFF0C\u4E5F\u4E0D\u4F1A\u8FDB\u5165\u672C\u5F39\u7A97\u5907\u9009\u3002"),t.a.createElement("div",{className:ae.a.radioWrap},t.a.createElement("div",null,t.a.createElement(ee.a,{value:Kn,onChange:ja,className:"font14 ml20"},"\u5168\u9009")),!!(Vt!=null&&Vt.length)&&t.a.createElement(Q.a,{className:ae.a.tree,checkable:!0,defaultExpandAll:!0,treeData:Vt,checkedKeys:Dn,onCheck:function(ba,ha){return vr(ba,ha)}})),t.a.createElement("div",{className:ae.a.createMkdir},t.a.createElement(ee.a,{checked:_r,onChange:function(ba){return sa(ba.target.checked)},className:"font14"},"\u9009\u4E2D\u7AE0\u8282\u5728\u8BFE\u5802\u4E2D\u540C\u6B65\u751F\u6210\u76EE\u5F55"),!!(qn.length+cr.length)&&t.a.createElement("span",null,t.a.createElement("span",null,"\u5DF2\u9009\u4E2D\uFF1A"),!!qn.length&&t.a.createElement(t.a.Fragment,null,t.a.createElement("span",{className:"c-light-primary"},qn.length," "),t.a.createElement("span",null,"\u4E2A\u5B9E\u8BAD")),!!cr.length&&t.a.createElement(t.a.Fragment,null,t.a.createElement("span",{className:"c-purple-8C1 ml5"},cr.length," "),t.a.createElement("span",null,"\u4E2A\u89C6\u9891")),!!Pa.length&&t.a.createElement(t.a.Fragment,null,t.a.createElement("span",{className:"c-cyan-blue ml5"},Pa.length," "),t.a.createElement("span",null,"\u4E2A\u8BFE\u4EF6")))))),t.a.createElement(Me.a,{visible:yr,inPaper:!1,renderData:Cr,onCancel:oi,onOk:ar,modalType:"multiple",type:"subject"}))},tt=Object(s.a)(function(lt){var qe=lt.pathsDetail,Bt=lt.loading,$t=lt.globalSetting;return{pathsDetail:qe,globalSetting:$t,loading:Bt.effects}})(Ke),he=v("NLgs"),Se=v("P5Jw"),Ue=v("5NDa"),Ne=v("5rEg"),ct=v("6UJt"),mt=v("DFOY"),Rt=v("y8nQ"),ht=v("Vl3Y"),Ut=v("ErOA"),zt=v("OC45"),ze=v.n(zt),Ve=function(qe){var Bt=qe.type,$t=qe.onCancel,cn=qe.onOk,Kt=ht.a.useForm(),_n=Object(_.a)(Kt,1),rn=_n[0],jt=Object(a.useState)(!0),An=Object(_.a)(jt,2),qt=An[0],En=An[1],kn=Object(a.useState)(!1),Yt=Object(_.a)(kn,2),wn=Yt[0],ln=Yt[1],xn=Object(a.useState)([]),an=Object(_.a)(xn,2),Vt=an[0],Sn=an[1];Object(a.useEffect)(function(){hr()},[]);var hr=function(){var Dn=Object(k.a)(p.a.mark(function Nn(){var Gn;return p.a.wrap(function(Kn){for(;;)switch(Kn.prev=Kn.next){case 0:if(!Bt){Kn.next=7;break}return ln(!0),Kn.next=4,Object(Ut.a)("/api/disciplines.json",{method:"get",params:{source:Bt}});case 4:Gn=Kn.sent,Sn(Gn.disciplines||[]),ln(!1);case 7:case"end":return Kn.stop()}},Nn)}));return function(){return Dn.apply(this,arguments)}}(),pn=function(){var Nn=rn.getFieldsValue(),Gn=Nn.sub_discipline_id,yn=Nn.discipline_name,Kn=Nn.sub_discipline_name;if((!Gn||Gn&&Gn.length===0)&&(!yn||!Kn))return U.b.warn("\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B"),!1;cn({user_customize:Gn&&Gn.length===0||!Gn,sub_discipline_id:Gn,discipline_name:yn,sub_discipline_name:Kn})};return t.a.createElement(m.a,{width:600,className:ze.a.applyPublicContainer,title:"\u6DFB\u52A0\u65B9\u5411&\u8BFE\u7A0B\u5F39\u7A97",okText:"\u7533\u8BF7\u516C\u5F00",visible:!0,onCancel:$t,onOk:pn},t.a.createElement("div",{className:ze.a.applyPublicContent},t.a.createElement("div",{className:ze.a.tips},"\u9700\u586B\u5199\u5B9E\u8DF5\u9879\u76EE\u7684\u65B9\u5411&\u8BFE\u7A0B\u540E\uFF0C\u624D\u80FD\u7533\u8BF7\u516C\u5F00"),t.a.createElement(ht.a,{labelCol:{span:4},labelAlign:"right",form:rn},t.a.createElement(ht.a.Item,{label:"\u65B9\u5411&\u8BFE\u7A0B\uFF1A",name:"sub_discipline_id"},t.a.createElement(mt.a,{expandTrigger:"hover",placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:Vt,fieldNames:{label:"name",value:"id",children:"sub_disciplines"},onChange:function(Nn,Gn){return rn.setFieldsValue({sub_discipline_id:Nn})}}),t.a.createElement("div",{className:ze.a.action,onClick:function(){return En(!qt)}},t.a.createElement("div",null,"\u81EA\u5B9A\u4E49\u65B9\u5411&\u8BFE\u7A0B"),t.a.createElement("div",null,t.a.createElement("span",null,qt?"\u5C55\u5F00":"\u6536\u8D77"),t.a.createElement("span",null,t.a.createElement("i",{className:"iconfont ".concat(qt?"icon-zhankai2":"icon-shouqi1")}))))),!qt&&t.a.createElement(t.a.Fragment,null,t.a.createElement(ht.a.Item,{label:"\u65B9\u5411",name:"discipline_name"},t.a.createElement(Ne.a,{placeholder:"\u8BF7\u8F93\u5165\u65B9\u5411",autoComplete:"off"})),t.a.createElement(ht.a.Item,{label:"\u8BFE\u7A0B",name:"sub_discipline_name"},t.a.createElement(Ne.a,{placeholder:"\u8BF7\u8F93\u5165\u8BFE\u7A0B",autoComplete:"off"})))),wn&&t.a.createElement("div",{className:ze.a.spin},t.a.createElement(K.a,null))))},Et=Ve,Ot=v("9Bee"),ut=v("m3rI"),vt=v("OljG"),Ze=v.n(vt),ke=v("MKdu"),He=v.n(ke),we=v("Nddv"),Le=v.n(we),Pe=v("vUf6"),We=v.n(Pe),Xe=v("eqIj"),gt=v.n(Xe),Lt=v("ZKmM"),en=v.n(Lt),Zt=function(qe){var Bt,$t,cn,Kt,_n,rn,jt,An,qt,En,kn,Yt,wn,ln,xn,an,Vt,Sn,hr,pn,Dn,Nn,Gn,yn,Kn,or,gr,Ur,er,rr,Lr,Er,_r,sa,ta,tr,vr,ja,ia,Yn,vn,yr,oi,Cr,Ir,fr,ar,Ln,Mn,gn,qn,na,cr,jr,Pa,da,ba,ha,Ta,Da,Ua,Qr,Wa,Ea,za,hi,Ji,Li,Ci,Uo,Ao,_o,as,fs,is,os,So,ps,Qi,Aa,wi,vi,vo,uo,Ki,ss,ls,qo,fo,zo,yo,es,Go,Oa,la,xi,Zi,Oo,co,No,Wi,Ai,Vo,Pn,ts,lo,Ha,Fi,Ti,Ro,Oi,Fo,ns,ms,Xo,Ss,Fs,On=qe.pathsDetail,nr=qe.user,Wt=qe.globalSetting,on=qe.loading,Tn=qe.dispatch,Hn=Object(O.a)(qe,["pathsDetail","user","globalSetting","loading","dispatch"]),jn=Object(h.i)(),pr=Object(a.useState)({}),dr=Object(_.a)(pr,2),Bn=dr[0],Yr=dr[1],Ri=Object(a.useRef)(1),ir=Object(a.useState)(),si=Object(_.a)(ir,2),ao=si[0],zi=si[1],Wn=Object(a.useState)(!1),Qa=Object(_.a)(Wn,2),Gi=Qa[0],li=Qa[1],io=Object(a.useState)(!1),Yo=Object(_.a)(io,2),ko=Yo[0],jo=Yo[1],gs=Object(a.useState)({status:!1}),ki=Object(_.a)(gs,2),sl=ki[0],vl=ki[1],Os=((Bt=On.detail)===null||Bt===void 0?void 0:Bt.is_free)||(($t=On.detail)===null||$t===void 0?void 0:$t.can_learning);Object(a.useEffect)(function(){vl({status:!1})},[]),Object(a.useEffect)(function(){function ea(){return Fr.apply(this,arguments)}function Fr(){return Fr=Object(k.a)(p.a.mark(function Ga(){var Wr,ma,ga,Na,La,Vi,$a;return p.a.wrap(function(Rn){for(;;)switch(Rn.prev=Rn.next){case 0:return Rn.next=2,Tn({type:"pathsDetail/getPathsDetail",payload:{id:jn.pathId}});case 2:Wr=Rn.sent,Wr!=null&&Wr.toast&&(Wr!=null&&(ma=Wr.toast)!==null&&ma!==void 0&&ma.is_open&&((ga=Wr.toast)===null||ga===void 0?void 0:ga.open_num)===-1?jo(!0):Wr!=null&&(Na=Wr.toast)!==null&&Na!==void 0&&Na.is_open&&(Wr==null||((La=Wr.toast)===null||La===void 0)?void 0:La.open_num)===1?($a=JSON.parse(localStorage.getItem("pathsshow"))||[],((Vi=$a.filter(function(xr){return xr===(jn==null?void 0:jn.pathId)}))===null||Vi===void 0?void 0:Vi.length)>0?jo(!1):(jo(!0),$a.push(jn==null?void 0:jn.pathId),localStorage.setItem("pathsshow",JSON.stringify($a)))):jo(!1));case 4:case"end":return Rn.stop()}},Ga)})),Fr.apply(this,arguments)}ea()},[]),Object(a.useEffect)(function(){var ea,Fr,Ga,Wr,ma=(ea=On.detail)===null||ea===void 0||((Fr=ea.courses)===null||Fr===void 0)?void 0:Fr.length;if(!ma)return;var ga;if((Ga=On.detail)!==null&&Ga!==void 0&&Ga.has_start){var Na,La,Vi=(Na=On.detail)===null||Na===void 0||((La=Na.courses)===null||La===void 0)?void 0:La.findIndex(function(Jn){var ra;return((ra=Jn.course_status)===null||ra===void 0?void 0:ra.status)===1});ga=Vi>-1?Vi:0}else{var $a,ys,Rn,xr,In,Gr=($a=On.detail)===null||$a===void 0||((ys=$a.courses)===null||ys===void 0||((Rn=ys.map(function(Jn){var ra;return(ra=Jn.course_status)===null||ra===void 0?void 0:ra.status}))===null||Rn===void 0))?void 0:Rn.lastIndexOf(2);ga=Gr>-1?Gr:0,Gr=(xr=On.detail)===null||xr===void 0||((In=xr.courses)===null||In===void 0)?void 0:In.findIndex(function(Jn){var ra;return((ra=Jn.course_status)===null||ra===void 0?void 0:ra.status)===0}),ga=Gr>-1?Gr:ga}Yr(((Wr=On.detail)===null||Wr===void 0?void 0:Wr.courses[ga])||{})},[On.detail]);var ks=function(Fr){var Ga,Wr,ma=(Ga=On.detail)===null||Ga===void 0||((Wr=Ga.courses)===null||Wr===void 0)?void 0:Wr.find(function(ga){return ga.course_id===Fr});Yr(ma||{}),Tn({type:"classroomList/setActionTabs",payload:{key:"\u4FEE\u6539\u5F00\u8BFE\u65F6\u95F4",name:Fr}})},us=function(){var ea=Object(k.a)(p.a.mark(function Fr(){var Ga;return p.a.wrap(function(ma){for(;;)switch(ma.prev=ma.next){case 0:return ma.next=2,Object(R.k)({container_id:jn.pathId,container_type:"Subject"});case 2:Ga=ma.sent,Ga.status===0&&(vs(),U.b.success(Ga.message));case 4:case"end":return ma.stop()}},Fr)}));return function(){return ea.apply(this,arguments)}}(),ll=function(){var ea=Object(k.a)(p.a.mark(function Fr(){var Ga;return p.a.wrap(function(ma){for(;;)switch(ma.prev=ma.next){case 0:return ma.next=2,Object(R.n)({container_id:jn.pathId,container_type:"Subject"});case 2:Ga=ma.sent,Ga.status===0&&(vs(),U.b.success(Ga.message));case 4:case"end":return ma.stop()}},Fr)}));return function(){return ea.apply(this,arguments)}}(),ul=function(){var ea=Object(k.a)(p.a.mark(function Fr(){return p.a.wrap(function(Wr){for(;;)switch(Wr.prev=Wr.next){case 0:m.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:t.a.createElement("div",{className:"tc"},"\u662F\u5426\u5220\u9664\u5B9E\u8DF5\u8BFE\u7A0B?"),onOk:function(){var ma=Object(k.a)(p.a.mark(function Na(){var La;return p.a.wrap(function($a){for(;;)switch($a.prev=$a.next){case 0:return $a.next=2,Object(R.q)({id:jn.pathId});case 2:La=$a.sent,La.status===1&&s.d.push("/paths");case 4:case"end":return $a.stop()}},Na)}));function ga(){return ma.apply(this,arguments)}return ga}()});case 1:case"end":return Wr.stop()}},Fr)}));return function(){return ea.apply(this,arguments)}}(),Sl=function(){var ea=Object(k.a)(p.a.mark(function Fr(){return p.a.wrap(function(Wr){for(;;)switch(Wr.prev=Wr.next){case 0:m.a.info({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u77E5\u9053\u5566",content:t.a.createElement("div",{className:"tc"},"\u8BFE\u7A0B\u53D1\u5E03\u540E\u5373\u53EF\u53D1\u9001\u8BFE\u5802\u4F7F\u7528"),onOk:function(){var ma=Object(k.a)(p.a.mark(function Na(){var La;return p.a.wrap(function($a){for(;;)switch($a.prev=$a.next){case 0:return $a.next=2,Object(R.h)({id:jn.pathId});case 2:La=$a.sent,(La==null?void 0:La.status)===0&&(vs(),U.b.success(La.message));case 4:case"end":return $a.stop()}},Na)}));function ga(){return ma.apply(this,arguments)}return ga}()});case 1:case"end":return Wr.stop()}},Fr)}));return function(){return ea.apply(this,arguments)}}(),Zs=function(){var ea=Object(k.a)(p.a.mark(function Fr(){return p.a.wrap(function(Wr){for(;;)switch(Wr.prev=Wr.next){case 0:m.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:t.a.createElement("div",{className:"tc"},"\u662F\u5426\u786E\u8BA4\u64A4\u9500\u53D1\u5E03\uFF1F"),okButtonProps:{loading:Gi},onOk:function(){var ma=Object(k.a)(p.a.mark(function Na(){var La;return p.a.wrap(function($a){for(;;)switch($a.prev=$a.next){case 0:return li(!0),$a.next=3,Object(R.m)({id:jn.pathId});case 3:La=$a.sent,(La==null?void 0:La.status)===1&&(vs(),U.b.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F")),li(!1);case 6:case"end":return $a.stop()}},Na)}));function ga(){return ma.apply(this,arguments)}return ga}()});case 1:case"end":return Wr.stop()}},Fr)}));return function(){return ea.apply(this,arguments)}}(),rs=function(){On.detail&&On.detail.has_sub_discipline?Qs({user_customize:!1}):cl(!0)},cl=function(Fr){vl({status:Fr})},Qs=function(Fr){m.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A\u7533\u8BF7",cancelText:"\u53D6\u6D88\u7533\u8BF7",content:t.a.createElement("div",{className:"tc"},"\u516C\u5F00\u8BFE\u7A0B\u9700\u7ECF\u8FC7\u5E73\u53F0\u6807\u51C6\u5316\u5BA1\u6838\uFF0C\u5BA1\u6838\u5468\u671F\u4E3A1-2\u5929\uFF0C\u516C\u5F00",t.a.createElement("br",null),"\u7684\u8BFE\u7A0B\u5C06\u5BF9\u5E73\u53F0\u6240\u6709\u4EBA\u53EF\u89C1\u3002\u82E5\u4EC5\u672C\u4EBA\u6559\u5B66\u4F7F\u7528\u5219\u65E0\u9700",t.a.createElement("br",null),"\u7533\u8BF7\u516C\u5F00\uFF0C\u76F4\u63A5\u53D1\u9001\u5230\u8BFE\u5802\u5373\u53EF",t.a.createElement("br",null)),onOk:function(){var Ga=Object(k.a)(p.a.mark(function ma(){var ga,Na;return p.a.wrap(function(Vi){for(;;)switch(Vi.prev=Vi.next){case 0:return ga={user_customize:Fr.user_customize},Fr.user_customize?ga=Object(I.a)(Object(I.a)({},ga),{},{discipline_name:Fr.discipline_name,sub_discipline_name:Fr.sub_discipline_name}):Fr.sub_discipline_id&&(ga=Object(I.a)(Object(I.a)({},ga),{},{sub_discipline_id:Fr.sub_discipline_id})),Vi.next=4,Object(R.g)(Object(I.a)({id:jn.pathId},ga));case 4:Na=Vi.sent,((Na==null?void 0:Na.status)===0||(Na==null?void 0:Na.status)===1)&&(vs(),U.b.success("\u516C\u5F00\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u7BA1\u7406\u5458\u7684\u5BA1\u6838"));case 6:case"end":return Vi.stop()}},ma)}));function Wr(){return Ga.apply(this,arguments)}return Wr}()})},$s=function(){var ea=Object(k.a)(p.a.mark(function Fr(){return p.a.wrap(function(Wr){for(;;)switch(Wr.prev=Wr.next){case 0:m.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:t.a.createElement("div",{className:"tc"},"\u662F\u5426\u786E\u8BA4\u64A4\u9500\u7533\u8BF7\u516C\u5F00\uFF1F"),onOk:function(){var ma=Object(k.a)(p.a.mark(function Na(){var La;return p.a.wrap(function($a){for(;;)switch($a.prev=$a.next){case 0:return $a.next=2,Object(R.l)({id:jn.pathId});case 2:La=$a.sent,(La==null?void 0:La.status)===0&&(vs(),U.b.success("\u64A4\u9500\u7533\u8BF7\u516C\u5F00\u6210\u529F"));case 4:case"end":return $a.stop()}},Na)}));function ga(){return ma.apply(this,arguments)}return ga}()});case 1:case"end":return Wr.stop()}},Fr)}));return function(){return ea.apply(this,arguments)}}(),qs=function(){var ea=Object(k.a)(p.a.mark(function Fr(){return p.a.wrap(function(Wr){for(;;)switch(Wr.prev=Wr.next){case 0:m.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:t.a.createElement("div",{className:"ml20"},t.a.createElement(g.a.Group,{defaultValue:1,onChange:function(ga){return Ri.current=ga.target.value}},t.a.createElement(g.a,{value:1,className:"mt10"},"\u5F00\u653E\u8BFE\u5802\uFF1A",t.a.createElement("span",null,"\u6240\u6709\u7528\u6237\u53EF\u4EE5\u968F\u65F6\u8BBF\u95EE")),t.a.createElement(g.a,{value:0,className:"mt10"},"\u79C1\u6709\u8BFE\u5802\uFF1A",t.a.createElement("span",null,"\u4EC5\u62A5\u540D\u53C2\u4E0E\u7684\u8BFE\u5802\u6210\u5458\u53EF\u4EE5\u8BBF\u95EE")))),onOk:function(){var ma=Object(k.a)(p.a.mark(function Na(){return p.a.wrap(function(Vi){for(;;)switch(Vi.prev=Vi.next){case 0:Object(pe.S)("/classrooms/news/".concat(jn.pathId,"/newgold/").concat(Ri.current));case 1:case"end":return Vi.stop()}},Na)}));function ga(){return ma.apply(this,arguments)}return ga}()});case 1:case"end":return Wr.stop()}},Fr)}));return function(){return ea.apply(this,arguments)}}(),yl=function(){m.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:t.a.createElement("div",{className:"tc"},"\u662F\u5426\u786E\u8BA4\u7ACB\u5373\u9884\u7EA6\uFF1F"),onOk:function(){var Fr=Object(k.a)(p.a.mark(function Wr(){var ma;return p.a.wrap(function(Na){for(;;)switch(Na.prev=Na.next){case 0:return Na.next=2,Object(R.i)({id:jn.pathId});case 2:ma=Na.sent,ma.status===0&&(zi(!0),U.b.success(ma.message));case 4:case"end":return Na.stop()}},Wr)}));function Ga(){return Fr.apply(this,arguments)}return Ga}()})},Rs=function(){if(!Object(he.e)(Tn))return;m.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:t.a.createElement("div",{className:"tc"},"\u662F\u5426\u786E\u5B9A\u52A0\u5165\u8BE5\u8BFE\u5802"),onOk:function(){var Fr=Object(k.a)(p.a.mark(function Wr(){var ma,ga;return p.a.wrap(function(La){for(;;)switch(La.prev=La.next){case 0:return La.next=2,Object(R.L)({id:Bn==null?void 0:Bn.course_id});case 2:ma=La.sent,ma.status===0&&(U.b.success(ma.message),Tn({type:"pathsDetail/getPathsDetail",payload:{id:jn.pathId}}),((ga=Bn.course_status)===null||ga===void 0?void 0:ga.status)===1&&Object(pe.S)("/classrooms/".concat(Bn==null?void 0:Bn.course_id,"/shixun_homework")));case 4:case"end":return La.stop()}},Wr)}));function Ga(){return Fr.apply(this,arguments)}return Ga}()})},Ol=function(){var Fr;if((Fr=On.detail)!==null&&Fr!==void 0&&Fr.need_authorize){Object(he.a)(!1,"\u8BE5\u8BFE\u7A0B\u4E2D\u5305\u542B\u5B9E\u8BAD\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");return}if(!Object(he.e)(Tn))return;Tn({type:"pathsDetail/setActionTabs",payload:{key:"PathsDetail-SendToClass"}})},vs=function(){Tn({type:"pathsDetail/getPathsDetail",payload:{id:jn.pathId}}),Tn({type:"pathsDetail/getRightData",payload:{id:jn.pathId}})},Bs=!!((cn=On.detail)!==null&&cn!==void 0&&cn.participant_count)&&!((Kt=On.detail)!==null&&Kt!==void 0&&Kt.allow_statistics),Ks=((_n=On.detail)===null||_n===void 0||((rn=_n.courses)===null||rn===void 0)?void 0:rn.findIndex(function(ea){return(ea==null?void 0:ea.course_id)===(Bn==null?void 0:Bn.course_id)}))+1,Is=Ks===((jt=On.detail)===null||jt===void 0||((An=jt.courses)===null||An===void 0)?void 0:An.length);return t.a.createElement("section",null,t.a.createElement("aside",{className:H.a.banner,style:{backgroundImage:On!=null&&(qt=On.detail)!==null&&qt!==void 0&&(En=qt.attachments)!==null&&En!==void 0&&(kn=En[0])!==null&&kn!==void 0&&kn.url?"url(".concat(ut.a.API_SERVER+(On==null||((Yt=On.detail)===null||Yt===void 0||((wn=Yt.attachments)===null||wn===void 0||((ln=wn[0])===null||ln===void 0)))?void 0:ln.url),")"):"url(".concat(Ze.a,")"),marginBottom:(xn=On.detail)!==null&&xn!==void 0&&(an=xn.courses)!==null&&an!==void 0&&an.length?70:20}},t.a.createElement("aside",{className:H.a.wrp},t.a.createElement("div",{className:H.a.operationWrap},!!((Vt=On.detail)!==null&&Vt!==void 0&&Vt.is_free)&&((Sn=On.detail)===null||Sn===void 0?void 0:Sn.publish_status)!==0&&(((hr=On.detail)===null||hr===void 0?void 0:hr.allow_add_member)||!Object(F.m)())&&t.a.createElement(l.a,{placement:"bottom",title:"\u4EE5\u5B9E\u8BAD\u4F5C\u4E1A\u7684\u5F62\u5F0F\u53D1\u9001\u5230\u6211\u7684\u8BFE\u5802"},t.a.createElement("span",{onClick:Ol,style:{fontSize:"12px",color:"#fff",lineHeight:"24px",cursor:"pointer",marginLeft:"26px"}},t.a.createElement("img",{src:He.a,style:{marginRight:"10px"}}),"\u53D1\u9001\u81F3")),((pn=On.detail)===null||pn===void 0?void 0:pn.allow_statistics)&&((Dn=On.detail)===null||Dn===void 0?void 0:Dn.public_status)===2&&t.a.createElement("span",{onClick:function(){return s.d.push("/paths/".concat(jn.pathId,"/statistics"))},style:{fontSize:"12px",color:"#fff",lineHeight:"24px",cursor:"pointer",marginLeft:"26px"}},t.a.createElement("img",{src:We.a,style:{marginRight:"10px"}}),"\u5B66\u4E60\u7EDF\u8BA1"),((Nn=On.detail)===null||Nn===void 0?void 0:Nn.is_share)&&t.a.createElement(Se.CopyToClipboard,{text:"".concat(window.location.origin,"/paths/").concat(jn.pathId,"?userid=").concat((Gn=nr.userInfo)===null||Gn===void 0?void 0:Gn.user_id),onCopy:function(){return U.b.success("\u5DF2\u590D\u5236\u8BFE\u7A0B\u5206\u4EAB\u4E13\u5C5E\u94FE\u63A5")}},t.a.createElement("span",{style:{fontSize:"12px",color:"#fff",lineHeight:"24px",cursor:"pointer",marginLeft:"26px"}},t.a.createElement("img",{src:He.a,style:{marginRight:"10px"}}),"\u5206\u4EAB\u8BFE\u7A0B")),((yn=On.detail)===null||yn===void 0?void 0:yn.allow_add_member)&&t.a.createElement(w.a,{overlay:t.a.createElement(C.a,null,((Kn=On.detail)===null||Kn===void 0?void 0:Kn.courses)&&(((or=On.detail)===null||or===void 0?void 0:or.is_creator)&&!!((gr=nr.userInfo)!==null&&gr!==void 0&&gr.professional_certification)||Object(F.o)())&&t.a.createElement(C.a.Item,{style:{textAlign:"center"},onClick:qs},"\u5F00\u8BFE"),((Ur=On.detail)===null||Ur===void 0?void 0:Ur.allow_statistics)&&t.a.createElement(C.a.Item,{style:{textAlign:"center"},onClick:function(){return s.d.push("/paths/".concat(jn.pathId,"/edit"))}},"\u7F16\u8F91\u8BFE\u7A0B"),((er=On.detail)===null||er===void 0?void 0:er.allow_add_member)&&((rr=On.detail)===null||rr===void 0?void 0:rr.publish_status)===0&&t.a.createElement(C.a.Item,{style:{textAlign:"center"},onClick:Sl},"\u53D1\u5E03\u8BFE\u7A0B"),((Lr=On.detail)===null||Lr===void 0?void 0:Lr.allow_statistics)&&((Er=On.detail)===null||Er===void 0?void 0:Er.publish_status)===2&&((_r=On.detail)===null||_r===void 0?void 0:_r.public_status)===0&&t.a.createElement(C.a.Item,{style:{textAlign:"center"},onClick:Zs},"\u64A4\u9500\u53D1\u5E03"),((sa=On.detail)===null||sa===void 0?void 0:sa.allow_statistics)&&((ta=On.detail)===null||ta===void 0?void 0:ta.publish_status)===2&&((tr=On.detail)===null||tr===void 0?void 0:tr.public_status)===0&&t.a.createElement(C.a.Item,{style:{textAlign:"center"},onClick:rs},"\u516C\u5F00\u8BFE\u7A0B"),((vr=On.detail)===null||vr===void 0?void 0:vr.allow_statistics)&&((ja=On.detail)===null||ja===void 0?void 0:ja.public_status)===1&&t.a.createElement(C.a.Item,{style:{textAlign:"center"},onClick:$s},"\u64A4\u9500\u7533\u8BF7\u516C\u5F00"),Object(F.c)()&&((ia=On.detail)===null||ia===void 0?void 0:ia.allow_statistics)&&((Yn=On.detail)===null||Yn===void 0?void 0:Yn.public_status)===2&&t.a.createElement(C.a.Item,{style:{textAlign:"center"},onClick:$s},"\u64A4\u9500\u516C\u5F00"),((vn=On.detail)===null||vn===void 0?void 0:vn.allow_delete)&&t.a.createElement(C.a.Item,{style:{textAlign:"center"},onClick:ul},"\u5220\u9664\u8BFE\u7A0B"))},t.a.createElement("span",{style:{fontSize:"12px",color:"#fff",lineHeight:"24px",cursor:"pointer",marginLeft:"26px"}},t.a.createElement("img",{src:Le.a,style:{marginRight:"10px"}}),"\u8BBE\u7F6E"))),t.a.createElement("p",{className:[H.a.titleWrap,((yr=On.detail)===null||yr===void 0||((oi=yr.name)===null||oi===void 0)?void 0:oi.indexOf(`
|
|
`))&&H.a.titleFlexEnd].join(" ")},t.a.createElement("span",{className:H.a.title},t.a.createElement("strong",null,(Cr=On.detail)===null||Cr===void 0||((Ir=Cr.name)===null||Ir===void 0)?void 0:Ir.split(`
|
|
`)[0]),t.a.createElement("span",{className:"font24"},t.a.createElement("br",null),(fr=On.detail)===null||fr===void 0||((ar=fr.name)===null||ar===void 0)?void 0:ar.split(`
|
|
`).filter(function(ea,Fr){return Fr!==0}).join(""))),t.a.createElement("div",null,((Ln=On.detail)===null||Ln===void 0?void 0:Ln.excellent)&&t.a.createElement(E.a,{className:"".concat(H.a.openCourseTag," font14"),style:{background:"#44D7B6",border:"1px solid #44D7B6"}},"\u5F00\u653E\u8BFE\u7A0B"),((Mn=On.detail)===null||Mn===void 0?void 0:Mn.featured)>0&&t.a.createElement("div",null,((gn=On.detail)===null||gn===void 0?void 0:gn.featured)===1&&t.a.createElement(E.a,{className:"".concat(H.a.openCourseTag," font14"),style:{background:"#FF6500",border:"1px solid #FF6500"}},"\u56FD\u5BB6\u4E00\u6D41"),((qn=On.detail)===null||qn===void 0?void 0:qn.featured)===2&&t.a.createElement(E.a,{className:"".concat(H.a.openCourseTag," font14"),style:{background:"#4361F2",border:"1px solid #4361F2"}},"\u519B\u961F\u4E00\u6D41"),((na=On.detail)===null||na===void 0?void 0:na.featured)===3&&t.a.createElement(E.a,{className:"".concat(H.a.openCourseTag," font14"),style:{background:"#E9AD5D",border:"1px solid #E9AD5D"}},"\u7701\u7EA7\u4E00\u6D41"),((cr=On.detail)===null||cr===void 0?void 0:cr.featured)===4&&t.a.createElement(E.a,{className:"".concat(H.a.openCourseTag," font14"),style:{background:"#f7ce62",border:"1px solid #f7ce62"}},"\u7CBE\u54C1\u8BFE\u7A0B")),((jr=nr.userInfo)===null||jr===void 0?void 0:jr.login)&&((Pa=On.detail)===null||Pa===void 0?void 0:Pa.is_collect)&&t.a.createElement("span",{style:{fontSize:"12px",color:"#fff",lineHeight:"24px",cursor:"pointer",marginLeft:"20px",display:"flex"},onClick:us},t.a.createElement(l.a,{title:"\u53D6\u6D88\u6536\u85CF"},t.a.createElement("img",{src:gt.a,style:{marginRight:"10px"}})),t.a.createElement("span",{style:{height:"24px"}},"\u5DF2\u6536\u85CF")),((da=nr.userInfo)===null||da===void 0?void 0:da.login)&&!((ba=On.detail)!==null&&ba!==void 0&&ba.is_collect)&&t.a.createElement("span",{style:{fontSize:"12px",color:"#fff",lineHeight:"24px",cursor:"pointer",marginLeft:"20px",display:"flex"},onClick:ll},t.a.createElement(l.a,{title:"\u53D6\u6D88\u6536\u85CF"},t.a.createElement("img",{src:en.a,style:{marginRight:"10px"}})),t.a.createElement("span",{style:{height:"24px"}},"\u6536\u85CF")),!Object(F.p)()&&t.a.createElement("span",{style:{fontSize:"12px",color:"#fff",lineHeight:"24px",cursor:"pointer",marginLeft:"20px",display:"flex"},className:"mr15",onClick:function(){if(!Object(he.e)(Tn))return}},t.a.createElement("img",{src:en.a,style:{marginRight:"10px"}}),t.a.createElement("span",{style:{height:"24px"}},"\u6536\u85CF")))),t.a.createElement("div",{className:H.a.contentWrap},t.a.createElement("div",{className:H.a.contentLeftWrap},!!((ha=On.detail)!==null&&ha!==void 0&&ha.stages_count)&&t.a.createElement("div",{className:"mr30"},t.a.createElement("span",null,"\u7AE0\u8282"),t.a.createElement("p",{className:"mt3"},(Ta=On.detail)===null||Ta===void 0?void 0:Ta.stages_count)),!!((Da=On.detail)!==null&&Da!==void 0&&Da.shixuns_count)&&t.a.createElement("div",{className:"mr30"},t.a.createElement("span",null,"\u5355\u5143"),t.a.createElement("p",{className:"mt3"},(Ua=On.detail)===null||Ua===void 0?void 0:Ua.shixuns_count)),!!((Qr=On.detail)!==null&&Qr!==void 0&&Qr.challenge_choose_count)&&t.a.createElement("div",{className:"mr30"},t.a.createElement("span",null,"\u9009\u62E9\u9898\u5173\u5361"),t.a.createElement("p",{className:"mt3"},(Wa=On.detail)===null||Wa===void 0?void 0:Wa.challenge_choose_count)),!!((Ea=On.detail)!==null&&Ea!==void 0&&Ea.challenges_count)&&t.a.createElement("div",{className:"mr30"},t.a.createElement("span",null,"\u5B9E\u8DF5\u5173\u5361"),t.a.createElement("p",{className:"mt3"},(za=On.detail)===null||za===void 0?void 0:za.challenges_count)),!!((hi=On.detail)!==null&&hi!==void 0&&hi.videos_count)&&t.a.createElement("div",{className:"mr30"},t.a.createElement("span",null,"\u89C6\u9891"),t.a.createElement("p",{className:"mt3"},(Ji=On.detail)===null||Ji===void 0?void 0:Ji.videos_count)),!!((Li=On.detail)!==null&&Li!==void 0&&Li.attachment_count)&&t.a.createElement("div",{className:"mr30"},t.a.createElement("span",null,"\u8BFE\u4EF6"),t.a.createElement("p",{className:"mt3"},(Ci=On.detail)===null||Ci===void 0?void 0:Ci.attachment_count)),((Uo=On.detail)===null||Uo===void 0?void 0:Uo.publish_status)!==0&&!!((Ao=On.detail)!==null&&Ao!==void 0&&Ao.subject_score)&&t.a.createElement("div",{className:"mr30"},t.a.createElement("span",null,"\u7ECF\u9A8C\u503C"),t.a.createElement("p",{className:"mt3"},(_o=On.detail)===null||_o===void 0?void 0:_o.subject_score)),((as=On.detail)===null||as===void 0?void 0:as.publish_status)!==0&&!!((fs=On.detail)!==null&&fs!==void 0&&fs.member_count)&&t.a.createElement("div",{className:"mr30"},t.a.createElement("span",null,t.a.createElement("span",null,(is=On.detail)!==null&&is!==void 0&&is.excellent?"\u53C2\u4E0E\u4EBA\u6570":"\u5B66\u4E60\u4EBA\u6570"),t.a.createElement(l.a,{title:"\u66F4\u65B0\u65F6\u95F4\uFF1A".concat(((os=On.detail)===null||os===void 0?void 0:os.member_count_update_at)||"--")},t.a.createElement("i",{className:"iconfont icon-xiaowenhao1 font14 ml5"}))),t.a.createElement("p",{className:"mt3"},(So=On.detail)===null||So===void 0?void 0:So.member_count)),((ps=On.detail)===null||ps===void 0?void 0:ps.subject_score)>=0&&t.a.createElement("span",{className:"font14 c-white"},t.a.createElement("span",null,"\u8BC4\u5206"),t.a.createElement("br",null),t.a.createElement(o.a,{allowHalf:!0,value:Object(pe.C)((Qi=On.detail)===null||Qi===void 0?void 0:Qi.averge_star),disabled:!0,className:H.a.rating})))),!!((Aa=On.detail)!==null&&Aa!==void 0&&(wi=Aa.courses)!==null&&wi!==void 0&&wi.length)&&t.a.createElement("aside",{className:H.a.nav},t.a.createElement("div",{className:H.a.navLeft},Bn.course_identity<4&&t.a.createElement(l.a,{placement:"bottom",title:"\u7F16\u8F91\u8BFE\u5802"},t.a.createElement("a",{href:"/classrooms/".concat(Bn==null?void 0:Bn.course_id,"/newgolds/settings"),target:"_blank"},t.a.createElement("i",{className:"iconfont icon-bianji1 ".concat(H.a.navLeftIcon)}))),t.a.createElement(w.a,{overlay:t.a.createElement(C.a,null,(vi=Object(d.a)((uo=On.detail)===null||uo===void 0?void 0:uo.courses))===null||vi===void 0||((vo=vi.reverse())===null||vo===void 0)?void 0:vo.map(function(ea,Fr){var Ga,Wr;return t.a.createElement(C.a.Item,{key:ea.course_id,onClick:function(){return ks(ea.course_id)}},t.a.createElement("span",{className:"font14"},"\u7B2C",((Ga=On.detail)===null||Ga===void 0||((Wr=Ga.courses)===null||Wr===void 0)?void 0:Wr.length)-Fr,"\u671F"))}))},t.a.createElement("div",null,t.a.createElement("span",{className:"font14 current"},"\u7B2C",t.a.createElement("span",{className:H.a.colorOrange},Ks),"\u671F"),t.a.createElement(N.a,null))),t.a.createElement("div",{className:H.a.navContent},t.a.createElement("div",{className:H.a.contentItem},t.a.createElement("div",{className:H.a.contentItemTitle},"\u5F00\u8BFE\u65F6\u95F4\uFF1A"),t.a.createElement("div",{className:H.a.contentItemText},Bn==null?void 0:Bn.start_date)),t.a.createElement("div",{className:H.a.verticalLine}),t.a.createElement("div",{className:H.a.contentItem},t.a.createElement("div",{className:H.a.contentItemTitle},"\u7ED3\u8BFE\u65F6\u95F4\uFF1A"),t.a.createElement("div",{className:H.a.contentItemText},Bn==null?void 0:Bn.end_date)),t.a.createElement("div",{className:H.a.verticalLine}),t.a.createElement("div",{className:H.a.contentItem},t.a.createElement("div",{className:H.a.contentItemTitle},(Ki=On.detail)!==null&&Ki!==void 0&&Ki.excellent?"\u53C2\u4E0E\u4EBA\u6570\uFF1A":"\u62A5\u540D\u4EBA\u6570\uFF1A"),t.a.createElement("div",{className:H.a.contentItemText},Bn==null?void 0:Bn.student_count," \u4EBA")))),t.a.createElement("div",{className:H.a.navRight,style:{display:"none"}},t.a.createElement("div",{className:H.a.flexRow},(Bn==null||((ss=Bn.course_status)===null||ss===void 0)?void 0:ss.status)===1&&t.a.createElement("div",{className:"mr20 c-red-ee4"},Bn==null||((ls=Bn.course_status)===null||ls===void 0)?void 0:ls.time),(Bn==null||((qo=Bn.course_status)===null||qo===void 0)?void 0:qo.status)===2&&Bn.course_identity<6&&t.a.createElement("div",{className:"current mr20 c-grey-9b9 font14"},"\u5DF2\u7ED3\u675F"),((fo=Bn.course_status)===null||fo===void 0?void 0:fo.status)===2&&(Bn.course_identity<6?t.a.createElement("a",{className:H.a.classButton,href:"/classrooms/".concat(Bn==null||((zo=Bn.first_category_url)===null||zo===void 0||((yo=zo.split("/"))===null||yo===void 0))?void 0:yo[2],"/announcement"),target:"_blank"},"\u8FDB\u5165\u8BFE\u5802"):t.a.createElement("div",{className:"current mr20 c-grey-9b9 font14"},"\u5DF2\u7ED3\u675F")),((es=Bn.course_status)===null||es===void 0?void 0:es.status)===1&&Bn.course_identity>5&&t.a.createElement("div",{className:H.a.classButton,onClick:Rs},"\u7ACB\u5373\u52A0\u5165"),((Go=Bn.course_status)===null||Go===void 0?void 0:Go.status)===1&&Bn.course_identity===5&&t.a.createElement("a",{className:H.a.classButton,href:"/classrooms/".concat(Bn==null||((Oa=Bn.first_category_url)===null||Oa===void 0||((la=Oa.split("/"))===null||la===void 0))?void 0:la[2],"/announcement"),target:"_blank"},"\u7ACB\u5373\u5B66\u4E60"),((xi=Bn.course_status)===null||xi===void 0?void 0:xi.status)===0&&Bn.course_identity>5&&t.a.createElement("div",{className:H.a.classButton,onClick:Rs},"\u7ACB\u5373\u62A5\u540D"),((Zi=Bn.course_status)===null||Zi===void 0?void 0:Zi.status)===0&&Bn.course_identity===5&&t.a.createElement("div",{className:H.a.classButton},"\u62A5\u540D\u6210\u529F"),((Bn==null||((Oo=Bn.course_status)===null||Oo===void 0)?void 0:Oo.status)===0||(Bn==null||((co=Bn.course_status)===null||co===void 0)?void 0:co.status)===1)&&Bn.course_identity<5&&t.a.createElement("a",{className:H.a.classButton,href:"/classrooms/".concat(Bn==null||((No=Bn.first_category_url)===null||No===void 0||((Wi=No.split("/"))===null||Wi===void 0))?void 0:Wi[2],"/announcement"),target:"_blank"},"\u8FDB\u5165\u8BFE\u5802"),Bs&&Is&&((Ai=On.detail)===null||Ai===void 0?void 0:Ai.has_participate)&&t.a.createElement("span",{className:"".concat(H.a.classButton," ").concat(H.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"),Bs&&Is&&!((Vo=On.detail)!==null&&Vo!==void 0&&Vo.has_participate)&&(ao?t.a.createElement("span",{className:"".concat(H.a.classButton," ").concat(H.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"):t.a.createElement("span",{className:"".concat(H.a.classButton," ").concat(H.a.bg28e),onClick:yl},"\u671F\u5F85\u5F00\u8BFE\u5E76\u9884\u7EA6\u62A5\u540D"))),t.a.createElement("div",{className:H.a.flexRow},Bs&&!!((Pn=On.detail)!==null&&Pn!==void 0&&(ts=Pn.courses)!==null&&ts!==void 0&&ts.length)&&Is&&t.a.createElement("span",{className:"mt20"},t.a.createElement("span",{className:"mr10"},"\u5F53\u9884\u7EA6\u62A5\u540D\u4EBA\u6570\u8FBE\u5230 ",(lo=On.detail)===null||lo===void 0?void 0:lo.student_count," ","\u4EBA\u65F6\u5373\u5C06\u5F00\u8BFE"),t.a.createElement("span",{className:""},"\u5F53\u524D\u9884\u7EA6\u62A5\u540D\u4EBA\u6570\uFF1A",t.a.createElement("span",{className:"mr5 c-red-ee4"},ao===!0?((Ha=On.detail)===null||Ha===void 0?void 0:Ha.participant_count)+1:(Fi=On.detail)===null||Fi===void 0?void 0:Fi.participant_count),"\u4EBA")),Bs&&!((Ti=On.detail)!==null&&Ti!==void 0&&(Ro=Ti.courses)!==null&&Ro!==void 0&&Ro.length)&&Is&&t.a.createElement("span",null,!((Oi=On.detail)!==null&&Oi!==void 0&&Oi.has_participate)&&(ao===!0?t.a.createElement("span",{className:"".concat(H.a.classButton," ").concat(H.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"):t.a.createElement("a",{className:"".concat(H.a.classButton," ").concat(H.a.bg28e),onClick:yl},"\u671F\u5F85\u5F00\u8BFE\u5E76\u9884\u7EA6\u62A5\u540D")),((Fo=On.detail)===null||Fo===void 0?void 0:Fo.has_participate)&&t.a.createElement("span",{className:"".concat(H.a.classButton," ").concat(H.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"),t.a.createElement("span",{className:"mr10"},"\u5F53\u9884\u7EA6\u62A5\u540D\u4EBA\u6570\u8FBE\u5230 ",(ns=On.detail)===null||ns===void 0?void 0:ns.student_count," ","\u4EBA\u65F6\u5373\u5C06\u5F00\u8BFE"),t.a.createElement("span",{className:""},"\u5F53\u524D\u9884\u7EA6\u62A5\u540D\u4EBA\u6570\uFF1A",t.a.createElement("span",{className:"mr5 c-red-ee4"},ao===!0?((ms=On.detail)===null||ms===void 0?void 0:ms.participant_count)+1:(Xo=On.detail)===null||Xo===void 0?void 0:Xo.participant_count),"\u4EBA"))))))),t.a.createElement(tt,null),sl.status&&t.a.createElement(Et,{type:"subject",onCancel:function(){return cl(!1)},onOk:function(Fr){cl(!1),Qs(Fr)}}),t.a.createElement(m.a,{visible:ko,title:"\u8BFE\u7A0B\u63D0\u793A",width:593,maskClosable:!1,onCancel:function(){jo(!1)},centered:!0,footer:t.a.createElement("div",null,t.a.createElement(u.a,{type:"primary",onClick:function(){jo(!1)}},"\u6211\u77E5\u9053\u4E86"))},t.a.createElement(Ot.a,{style:{maxHeight:378,overflow:"auto"},value:On==null||((Ss=On.detail)===null||Ss===void 0||((Fs=Ss.toast)===null||Fs===void 0))?void 0:Fs.content})))},xt=Object(s.a)(function(lt){var qe=lt.pathsDetail,Bt=lt.user,$t=lt.loading,cn=lt.globalSetting;return{pathsDetail:qe,user:Bt,globalSetting:cn,loading:$t.models.index}})(Zt),Ct=v("MXD1"),pt=v("CFYs"),Je=v("8Bcu"),Qe=v.n(Je),Oe=v("WPnJ"),je=v.n(Oe),St=v("g9YV"),bt=v("wCAj"),Dt=v("O3gP"),Ht=v("lrIw"),_t=v("RotF"),Gt=v.n(_t),kt=v("oUNq"),fn=v("lzim"),mn=v("55Ip"),Tr=function(qe){var Bt=qe.pathsDetail,$t=qe.loading,cn=qe.dispatch,Kt=qe.onReloadData,_n=Kt===void 0?function(){}:Kt,rn=Object(h.i)(),jt=Object(a.useState)([]),An=Object(_.a)(jt,2),qt=An[0],En=An[1],kn=Object(a.useState)(!0),Yt=Object(_.a)(kn,2),wn=Yt[0],ln=Yt[1],xn=Object(a.useState)(!1),an=Object(_.a)(xn,2),Vt=an[0],Sn=an[1],hr=ht.a.useForm(),pn=Object(_.a)(hr,1),Dn=pn[0],Nn=Object(a.useState)([]),Gn=Object(_.a)(Nn,2),yn=Gn[0],Kn=Gn[1],or=Object(a.useState)(1),gr=Object(_.a)(or,2),Ur=gr[0],er=gr[1],rr=Object(a.useState)([]),Lr=Object(_.a)(rr,2),Er=Lr[0],_r=Lr[1],sa=Object(a.useState)(!0),ta=Object(_.a)(sa,2),tr=ta[0],vr=ta[1],ja=Object(a.useState)(!1),ia=Object(_.a)(ja,2),Yn=ia[0],vn=ia[1];Object(a.useEffect)(function(){Bt.actionTabs.key==="Collaborators-AddCollaborator"&&(vr(!0),ln(!0),yr())},[Bt.actionTabs.key]);var yr=function(){var Mn=Object(k.a)(p.a.mark(function gn(){var qn;return p.a.wrap(function(cr){for(;;)switch(cr.prev=cr.next){case 0:return cr.next=2,cn({type:"classroomList/getSchoolList",payload:{}});case 2:qn=cr.sent,En(qn.map(function(jr){return{value:jr}}));case 4:case"end":return cr.stop()}},gn)}));return function(){return Mn.apply(this,arguments)}}(),oi=function(){var gn,qn;if(!((gn=Dn.getFieldValue())!==null&&gn!==void 0&&(qn=gn.keyword)!==null&&qn!==void 0&&qn.trim())){U.b.warn("\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9"),Kn([]);return}vr(!1),ln(!0),Sn(!1),er(1),_r([]),Ir(!0)},Cr=function(gn){gn=String(gn);var qn=Er.indexOf(gn);qn<0?Er.push(gn):Er.splice(qn,1),_r(Object(d.a)(Er))},Ir=function(){var Mn=Object(k.a)(p.a.mark(function gn(){var qn,na,cr,jr,Pa,da=arguments;return p.a.wrap(function(ha){for(;;)switch(ha.prev=ha.next){case 0:if(qn=da.length>0&&da[0]!==void 0?da[0]:!1,!(wn&&!Vt||qn)){ha.next=11;break}return jr=Dn.getFieldValue(),Sn(!0),er(qn?1:Ur+1),ha.next=7,Object(kt.Ab)(Object(I.a)(Object(I.a)({page:qn?1:Ur+1,container_id:rn.pathId,container_type:3},jr),{},{school_name:(jr==null?void 0:jr.school_name)||null,keyword:(jr==null||((na=jr.keyword)===null||na===void 0)?void 0:na.trim())||null}));case 7:Pa=ha.sent,Kn(qn?Object(d.a)(Pa.users):[].concat(Object(d.a)(yn),Object(d.a)(Pa.users))),Sn(!1),((cr=Pa.users)===null||cr===void 0?void 0:cr.length)<10&&ln(!1);case 11:case"end":return ha.stop()}},gn)}));return function(){return Mn.apply(this,arguments)}}(),fr=function(){var Mn=Object(k.a)(p.a.mark(function gn(){var qn;return p.a.wrap(function(cr){for(;;)switch(cr.prev=cr.next){case 0:if(Er!=null&&Er.length){cr.next=4;break}U.b.warn("\u8BF7\u5148\u5728\u4E0B\u9762\u5217\u8868\u4E2D\u9009\u62E9\u8981\u6DFB\u52A0\u6210\u5458"),cr.next=10;break;case 4:return vn(!0),cr.next=7,Object(R.e)({id:rn.pathId,user_ids:Er});case 7:qn=cr.sent,vn(!1),qn&&(U.b.success("\u6DFB\u52A0\u6210\u529F"),ar(),_n&&_n());case 10:case"end":return cr.stop()}},gn)}));return function(){return Mn.apply(this,arguments)}}(),ar=function(){Dn.setFieldsValue({keyword:""}),cn({type:"pathsDetail/setActionTabs",payload:{}})},Ln=[{title:"",dataIndex:"added",width:40,ellipsis:!0,render:function(gn,qn){return t.a.createElement(ee.a,{value:qn.numid,checked:Er.includes(String(qn.numid)),disabled:!!gn})}},{title:"\u59D3\u540D",width:100,ellipsis:!0,dataIndex:"username",render:function(gn,qn){return t.a.createElement(l.a,{placement:"bottom",title:gn},t.a.createElement(mn.a,{className:"bold c-black",to:"/users/".concat(qn.login),target:"_blank"},gn||"--"))}},{title:"\u624B\u673A\u53F7",width:100,dataIndex:"phone",ellipsis:!0,render:function(gn){return t.a.createElement(l.a,{placement:"bottom",title:gn},t.a.createElement("span",null,gn||"--"))}},{title:"\u90AE\u7BB1",dataIndex:"email",width:100,ellipsis:!0,render:function(gn){return t.a.createElement(l.a,{placement:"bottom",title:gn},t.a.createElement("span",null,gn||"--"))}},{title:"\u5B66\u53F7/\u5DE5\u53F7",width:100,dataIndex:"student_number",ellipsis:!0,render:function(gn){return t.a.createElement(l.a,{placement:"bottom",title:gn},t.a.createElement("span",null,gn||"--"))}},{title:"\u5B66\u6821/\u5355\u4F4D",width:150,dataIndex:"school_name",ellipsis:!0,render:function(gn){return t.a.createElement(l.a,{placement:"bottom",title:gn},t.a.createElement("span",null,gn||"--"))}},{title:"\u9662\u7CFB/\u90E8\u95E8",dataIndex:"depart_name",width:130,ellipsis:!0,render:function(gn){return t.a.createElement(l.a,{placement:"bottom",title:gn},t.a.createElement("span",null,gn||"--"))}},{title:"\u5B9E\u540D\u8BA4\u8BC1",dataIndex:"auth",width:100,render:function(gn){return gn?"\u662F":"\u5426"}},{title:"\u6700\u540E\u767B\u5F55\u65F6\u95F4",dataIndex:"last_login_on",width:140,ellipsis:!0,render:function(gn){return t.a.createElement(l.a,{placement:"bottom",title:gn?le()(gn).format("YYYY-MM-DD HH:mm"):"- -"},t.a.createElement("span",null,gn?le()(gn).format("YYYY-MM-DD HH:mm"):"- -"))}},{title:"\u72B6\u6001",dataIndex:"added",width:80,render:function(gn){if(gn===1)return t.a.createElement("span",{className:"c-green"},"\u5DF2\u6DFB\u52A0")}}];return t.a.createElement(m.a,{title:"\u6DFB\u52A0\u5408\u4F5C\u8005",visible:Bt.actionTabs.key==="Collaborators-AddCollaborator",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",width:1100,centered:!0,keyboard:!1,maskClosable:!1,bodyStyle:{minHeight:200},confirmLoading:Yn,onOk:fr,onCancel:ar},t.a.createElement(ht.a,{layout:"inline",form:Dn,initialValues:{school_name:"",keyword:"",search_type:"1"},className:"mt10",onFinish:oi},t.a.createElement(ht.a.Item,{name:"search_type",label:"\u641C\u7D22\u7C7B\u578B"},t.a.createElement(se.a,null,t.a.createElement(se.a.Option,{value:"1"},"\u59D3\u540D"),t.a.createElement(se.a.Option,{value:"2"},"\u624B\u673A\u53F7"),t.a.createElement(se.a.Option,{value:"3"},"\u90AE\u7BB1"))),t.a.createElement(ht.a.Item,{name:"keyword",label:"\u641C\u7D22\u5185\u5BB9"},t.a.createElement(Ne.a,{allowClear:!0,style:{width:280},size:"large",placeholder:"\u8BF7\u8F93\u5165\u5185\u5BB9"})),t.a.createElement(ht.a.Item,{name:"school_name",label:"\u5355\u4F4D\uFF1A"},t.a.createElement(Ht.a,{allowClear:!0,defaultOpen:!1,options:qt,style:{width:400},size:"large",placeholder:"\u8BF7\u8F93\u5165\u5355\u4F4D\u540D\u79F0",filterOption:function(gn,qn){return qn.value.toUpperCase().indexOf(gn.toUpperCase())!==-1}})),t.a.createElement(ht.a.Item,null,t.a.createElement(u.a,{htmlType:"submit",type:"primary",size:"large"},"\u641C\u7D22"))),tr&&t.a.createElement("div",{className:"tc font16 c-light-black mt40"},t.a.createElement("img",{src:fn.w,width:"100",alt:""}),t.a.createElement("br",null),"\u8BF7\u641C\u7D22\u8981\u6DFB\u52A0\u7684\u4EBA\u5458"),!tr&&t.a.createElement("section",null,t.a.createElement("div",{className:"flexd-table-header mt20"},t.a.createElement(bt.a,{pagination:!1,dataSource:[],columns:Ln})),t.a.createElement("div",{style:{maxHeight:260,overflow:"auto"}},t.a.createElement(Gt.a,{initialLoad:!1,pageStart:1,threshold:20,loadMore:function(gn){Ir()},hasMore:wn,useWindow:!1},t.a.createElement(bt.a,{loading:Vt,showHeader:!1,pagination:!1,dataSource:yn,columns:Ln,onRow:function(gn){return{onClick:function(na){na.currentTarget.querySelector("input").disabled||Cr(na.currentTarget.querySelector("input").value)}}}})))))},Mr=Object(s.a)(function(lt){var qe=lt.pathsDetail,Bt=lt.loading;return{pathsDetail:qe,loading:Bt}})(Tr),kr=function(qe){var Bt=qe.pathsDetail,$t=qe.loading,cn=qe.dispatch,Kt=qe.data,_n=qe.onReloadData,rn=_n===void 0?function(){}:_n,jt=Object(h.i)(),An=Object(a.useState)(!0),qt=Object(_.a)(An,2),En=qt[0],kn=qt[1],Yt=Object(a.useState)(!1),wn=Object(_.a)(Yt,2),ln=wn[0],xn=wn[1],an=ht.a.useForm(),Vt=Object(_.a)(an,1),Sn=Vt[0],hr=Object(a.useState)([]),pn=Object(_.a)(hr,2),Dn=pn[0],Nn=pn[1],Gn=Object(a.useState)(1),yn=Object(_.a)(Gn,2),Kn=yn[0],or=yn[1],gr=Object(a.useState)([]),Ur=Object(_.a)(gr,2),er=Ur[0],rr=Ur[1],Lr=Object(a.useState)(!0),Er=Object(_.a)(Lr,2),_r=Er[0],sa=Er[1],ta=Object(a.useState)(!1),tr=Object(_.a)(ta,2),vr=tr[0],ja=tr[1];Object(a.useEffect)(function(){Bt.actionTabs.key==="Collaborators-AddCourses"&&(sa(!0),kn(!0),ia())},[Bt.actionTabs.key]);var ia=function(){var fr=Object(k.a)(p.a.mark(function ar(){var Ln;return p.a.wrap(function(gn){for(;;)switch(gn.prev=gn.next){case 0:return gn.next=2,cn({type:"classroomList/getSchoolList",payload:{}});case 2:Ln=gn.sent;case 3:case"end":return gn.stop()}},ar)}));return function(){return fr.apply(this,arguments)}}(),Yn=function(){sa(!1),kn(!0),xn(!1),or(1),rr([]),yr(!0)},vn=function(ar){ar=String(ar);var Ln=er.indexOf(ar);Ln<0?er.push(ar):er.splice(Ln,1),rr(Object(d.a)(er))},yr=function(){var fr=Object(k.a)(p.a.mark(function ar(){var Ln,Mn,gn,qn,na,cr=arguments;return p.a.wrap(function(Pa){for(;;)switch(Pa.prev=Pa.next){case 0:if(Ln=cr.length>0&&cr[0]!==void 0?cr[0]:!1,!(En&&!ln||Ln)){Pa.next=11;break}return qn=Sn.getFieldValue(),xn(!0),or(Ln?1:Kn+1),Pa.next=7,Object(kt.zb)({page:Ln?1:Kn+1,container_id:jt.pathId,container_type:3,manager_name:(qn==null?void 0:qn.manager_name)||null,course_name:(qn==null||((Mn=qn.course_name)===null||Mn===void 0)?void 0:Mn.trim())||null});case 7:na=Pa.sent,Nn(Ln?Object(d.a)(na.courses):[].concat(Object(d.a)(Dn),Object(d.a)(na.courses))),xn(!1),((gn=na.courses)===null||gn===void 0?void 0:gn.length)<10&&kn(!1);case 11:case"end":return Pa.stop()}},ar)}));return function(){return fr.apply(this,arguments)}}(),oi=function(){var fr=Object(k.a)(p.a.mark(function ar(){var Ln,Mn,gn,qn;return p.a.wrap(function(cr){for(;;)switch(cr.prev=cr.next){case 0:if(er!=null&&er.length){cr.next=4;break}U.b.warn("\u8BF7\u5148\u5728\u4E0B\u9762\u5217\u8868\u4E2D\u9009\u62E9\u8981\u6DFB\u52A0\u8BFE\u5802"),cr.next=19;break;case 4:if(!(Bt.actionTabs.type!=1)){cr.next=10;break}if(!((Bt==null||((Ln=Bt.Courses)===null||Ln===void 0||((Mn=Ln.spoc_courses)===null||Mn===void 0))?void 0:Mn.length)+(er==null?void 0:er.length)>3)){cr.next=8;break}return U.b.warn("\u4E00\u4E2A\u5B9E\u8DF5\u8BFE\u7A0B\u53EA\u80FD\u52A0\u51653\u4E2Aspoc\u8BFE\u5802"),cr.abrupt("return");case 8:cr.next=13;break;case 10:if(!((Kt==null||((gn=Kt.spoc_courses)===null||gn===void 0)?void 0:gn.length)+(er==null?void 0:er.length)>3)){cr.next=13;break}return U.b.warn("\u4E00\u4E2A\u5B9E\u8DF5\u8BFE\u7A0B\u53EA\u80FD\u52A0\u51653\u4E2A\u5386\u53F2\u8BFE\u5802"),cr.abrupt("return");case 13:return ja(!0),cr.next=16,Object(R.b)({id:jt.pathId,course_ids:er,course_type:Bt.actionTabs.type});case 16:qn=cr.sent,ja(!1),qn&&(U.b.success("\u6DFB\u52A0\u6210\u529F"),Cr(),rn&&rn());case 19:case"end":return cr.stop()}},ar)}));return function(){return fr.apply(this,arguments)}}(),Cr=function(){Sn.setFieldsValue({course_name:"",manager_name:""}),rr([]),cn({type:"pathsDetail/setActionTabs",payload:{}})},Ir=[{title:"",dataIndex:"added",width:40,ellipsis:!0,render:function(ar,Ln){return t.a.createElement(ee.a,{value:Ln.id,checked:er.includes(String(Ln.id)),disabled:!!ar})}},{title:"\u8BFE\u5802\u540D\u79F0",dataIndex:"name",width:100,ellipsis:!0,render:function(ar){return t.a.createElement(l.a,{placement:"bottom",title:ar},t.a.createElement("span",null,ar||"--"))}},{title:"\u7BA1\u7406\u8005",width:100,dataIndex:"managers",ellipsis:!0,render:function(ar){return t.a.createElement(l.a,{placement:"bottom",title:ar},t.a.createElement("span",null,ar||"--"))}},{title:"\u8BFE\u5802\u6240\u5728\u5B66\u6821",width:150,dataIndex:"school_name",ellipsis:!0,render:function(ar){return t.a.createElement(l.a,{placement:"bottom",title:ar},t.a.createElement("span",null,ar||"--"))}},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"created_at",width:140,ellipsis:!0,render:function(ar){return t.a.createElement(l.a,{placement:"bottom",title:ar},t.a.createElement("span",null,ar))}},{title:"\u6210\u5458\u6570\u91CF",dataIndex:"course_members_count",width:80,render:function(ar){return t.a.createElement(l.a,{placement:"bottom",title:ar},t.a.createElement("span",null,ar||"--"))}}];return t.a.createElement(m.a,{title:"\u6DFB\u52A0\u8BFE\u5802",visible:Bt.actionTabs.key==="Collaborators-AddCourses",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",width:1100,centered:!0,keyboard:!1,maskClosable:!1,bodyStyle:{minHeight:200},confirmLoading:vr,onOk:oi,onCancel:Cr},t.a.createElement(ht.a,{layout:"inline",form:Sn,initialValues:{course_name:"",manager_name:""},className:"mt10",onFinish:Yn},t.a.createElement(ht.a.Item,{name:"course_name",label:"\u8BFE\u5802\u540D\u79F0"},t.a.createElement(Ne.a,{allowClear:!0,style:{width:370},size:"large",placeholder:"\u8BF7\u8F93\u5165\u8BFE\u5802\u540D\u79F0"})),t.a.createElement(ht.a.Item,{name:"manager_name",label:"\u8BFE\u5802\u7BA1\u7406\u8005"},t.a.createElement(Ne.a,{allowClear:!0,style:{width:370},size:"large",placeholder:"\u8BF7\u8F93\u5165\u8BFE\u5802\u7BA1\u7406\u8005\u540D\u79F0"})),t.a.createElement(ht.a.Item,null,t.a.createElement(u.a,{htmlType:"submit",type:"primary",size:"large"},"\u641C\u7D22"))),_r&&t.a.createElement("div",{className:"tc font16 c-light-black mt40"},t.a.createElement("img",{src:fn.w,width:"100",alt:""}),t.a.createElement("br",null),"\u8BF7\u641C\u7D22\u8981\u6DFB\u52A0\u7684\u4EBA\u5458"),!_r&&t.a.createElement("section",null,t.a.createElement("div",{className:"flexd-table-header mt20"},t.a.createElement(bt.a,{pagination:!1,dataSource:[],columns:Ir})),t.a.createElement("div",{style:{maxHeight:260,overflow:"auto"}},t.a.createElement(Gt.a,{initialLoad:!1,pageStart:1,threshold:20,loadMore:function(ar){yr()},hasMore:En,useWindow:!1},t.a.createElement(bt.a,{loading:ln,showHeader:!1,pagination:!1,dataSource:Dn,columns:Ir,onRow:function(ar){return{onClick:function(Mn){Mn.currentTarget.querySelector("input").disabled||vn(Mn.currentTarget.querySelector("input").value)}}}})))))},Un=Object(s.a)(function(lt){var qe=lt.pathsDetail,Bt=lt.loading;return{pathsDetail:qe,loading:Bt}})(kr),Ra=v("2BaD"),Xr=v("1n7x"),aa=v.n(Xr),Kr=v("y1J/"),_a=v.n(Kr),di=v("A2z3"),Ei=v.n(di),_e=v("Ye+n"),Ie=v.n(_e),Ye=v("MPMw"),yt=v.n(Ye),Xt=function(qe){var Bt=qe.visible,$t=qe.onOk,cn=$t===void 0?function(){}:$t,Kt=qe.onCancel,_n=Kt===void 0?function(){}:Kt,rn=qe.data,jt=rn===void 0?{}:rn,An=Object(a.useRef)();Object(a.useEffect)(function(){return Bt?document.body.setAttribute("class",Ie.a.bodyHeight):document.body.removeAttribute("class"),function(){document.body.removeAttribute("class")}},[Bt]);var qt={"1":"January","2":"February","3":"March","4":"April","5":"May","6":"June","7":"July","8":"August","9":"September","10":"October","11":"November","12":"December"},En=function(){var kn=Object(k.a)(p.a.mark(function Yt(){var wn,ln,xn;return p.a.wrap(function(Vt){for(;;)switch(Vt.prev=Vt.next){case 0:return document.body.scrollIntoView(),wn={margin:[0,0,0,0],filename:"11.pdf",enableLinks:!1,html2canvas:{scale:5,allowTaint:!1,useCORS:!0},jsPDF:{format:[1412,jt!=null&&jt.is_icpc_first?2500:1e3],orientation:"landscape",unit:"px"},image:{type:"jpeg",quality:1}},ln=aa()().set(wn).from(An.current).toPdf(),Vt.next=5,ln.get("pdf");case 5:return ln=Vt.sent,Vt.next=8,ln.output("bloburl");case 8:xn=Vt.sent,Object(pe.x)("".concat(jt.school_name,"-").concat(jt.user_name,".pdf"),xn);case 10:case"end":return Vt.stop()}},Yt)}));return function(){return kn.apply(this,arguments)}}();return t.a.createElement(m.a,{visible:Bt,title:null,footer:t.a.createElement("div",null,t.a.createElement(u.a,{type:"primary",onClick:En},"\u4E0B\u8F7D\u8BC1\u4E66")),style:{background:"transparen",height:"740px"},centered:!0,width:jt!=null&&jt.is_icpc_first?840:1052,className:Ie.a.advertisementModal,maskClosable:!1,closeIcon:t.a.createElement(Ra.a,{onClick:_n,style:{fontSize:"25px",color:"#fff",marginLeft:"100px"}})},t.a.createElement("div",{ref:An},jt!=null&&jt.is_icpc_first?t.a.createElement("div",{style:{backgroundImage:"url(".concat(yt.a,")"),height:"1200px",width:"840px",padding:"1px 100px",backgroundSize:"100%",backgroundRepeat:"no-repeat"}},t.a.createElement("div",{style:{color:"#333",fontSize:"36px",marginTop:"465px",width:"100%",marginLeft:"24px"}},jt==null?void 0:jt.user_name),t.a.createElement("div",{style:{color:"#333",fontSize:"16px",marginTop:"223px",width:"100%",marginLeft:100}},jt==null?void 0:jt.passed_date)):t.a.createElement("div",{style:{backgroundImage:"url(".concat(Ei.a,")"),height:"740px",width:"1052px",padding:"1px 100px"}},t.a.createElement("div",{style:{color:"#EB5E00",fontSize:"36px",marginTop:"239px",width:"100%",textAlign:"center"}},jt==null?void 0:jt.school_name," ",jt==null?void 0:jt.user_name),t.a.createElement("div",{style:{color:"#0D3580",fontSize:"24px",marginTop:"30px",width:"100%",textAlign:"center"}},"\u4E8E",le()(jt==null?void 0:jt.created_at).format("YYYY\u5E74MM\u6708DD\u65E5"),"\u5B8C\u6210\u4E86EduCoder\u5E73\u53F0\u300A",jt==null?void 0:jt.subject_name,"\u300B\u8BFE\u7A0B\u5B66\u4E60\u3002"),t.a.createElement("div",{style:{color:"#0D3580",fontSize:"30px",marginTop:"50px",width:"100%",textAlign:"center",fontWeight:900}},"\u7279\u6B64\u8BC1\u660E"),t.a.createElement("div",{style:{color:"#0D3580",fontSize:"14px",marginTop:"30px",width:"100%",textAlign:"center"}},"On ",qt[le()(jt==null?void 0:jt.created_at).format("M")]," ",le()(jt==null?void 0:jt.created_at).format("DD"),"\uFF0C",le()(jt==null?void 0:jt.created_at).format("YYYY"),"\uFF0C completed the \u300A",jt==null?void 0:jt.subject_name_en,"\u300B course on EduCoder."),t.a.createElement("img",{src:_a.a,style:{position:"absolute",left:"820px",bottom:"130px"}}),t.a.createElement("div",{style:{color:"#0D3580",fontSize:"12px",width:"100%",display:"flex",paddingRight:"200px",position:"absolute",bottom:"150px"}},t.a.createElement("span",null,"\u8BC1\u4E66\u7F16\u53F7\uFF1A",jt==null?void 0:jt.code),t.a.createElement("span",{style:{marginLeft:"560px"}},"\u5728\u7EBF\u7F16\u7A0B\u5B66\u9662")))))},sn=Xt,re=v("YJCA"),W=v("wYyv"),V=v.n(W),ne=Object(re.b)(function(lt){var qe,Bt,$t,cn,Kt,_n,rn,jt,An,qt=lt.item,En=lt.toIndex,kn=lt.params,Yt=lt.isShow,wn=lt.setShow,ln=lt.dispatch,xn=lt.classroomList,an=lt.handleDeleteMember,Vt=lt.pathsDetail;return t.a.createElement("span",{style:{display:"inline-block",width:"33%",padding:"5px",background:"#fff",marginTop:"10px"}},t.a.createElement("div",{className:je.a.directionItemWrap},t.a.createElement(l.a,{color:"#ffffff",placement:"bottom",title:t.a.createElement("div",{className:je.a.teamHeight},t.a.createElement("span",{title:qt==null?void 0:qt.name,style:{fontSize:"14px",color:"#333333",textOverflow:"ellipsis",whiteSpace:"nowrap",width:"80px",overflow:"hidden"}},(qt==null||((qe=qt.name)===null||qe===void 0)?void 0:qe.length)>6?(qt==null||((Bt=qt.name)===null||Bt===void 0)?void 0:Bt.substr(0,6))+"...":(qt==null?void 0:qt.name)||"--"),t.a.createElement("span",{style:{marginLeft:"10px",color:"#999999",fontSize:"12px"}},(qt==null||(($t=qt.school)===null||$t===void 0)?void 0:$t.length)>9?(qt==null||((cn=qt.school)===null||cn===void 0)?void 0:cn.substr(0,9))+"...":qt==null?void 0:qt.school),t.a.createElement("div",{style:{height:"1px",width:"100%",border:"1px solid #f5f5f5",marginTop:"3px",marginBottom:"3px"}}),!(qt!=null&&qt.brief_introduction)&&t.a.createElement("div",{style:{textAlign:"center",marginTop:"20px"}},"\u6682\u65E0\u7B80\u4ECB"),(qt==null?void 0:qt.brief_introduction)&&t.a.createElement("div",{className:je.a.divHeight},qt==null?void 0:qt.brief_introduction))},t.a.createElement("img",{draggable:!1,className:je.a.imgradius,onClick:function(){Object(F.p)()?s.d.push("".concat(qt.user_url)):ln({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}})},src:ut.a.API_SERVER+"/images/"+(qt==null?void 0:qt.image_url)}),t.a.createElement("div",null,(qt==null||((Kt=qt.name)===null||Kt===void 0)?void 0:Kt.length)>6?(qt==null||((_n=qt.name)===null||_n===void 0)?void 0:_n.substr(0,6))+"...":(qt==null?void 0:qt.name)||"--",t.a.createElement("br",null),t.a.createElement("span",{style:{color:"#999999"}},(qt==null||((rn=qt.school)===null||rn===void 0)?void 0:rn.length)>6?(qt==null||((jt=qt.school)===null||jt===void 0)?void 0:jt.substr(0,6))+"...":(qt==null?void 0:qt.school)||"--"))),t.a.createElement("br",null),t.a.createElement("span",{className:je.a.groupActionWrap},t.a.createElement("i",{style:{display:!((An=Vt.detail)!==null&&An!==void 0&&An.allow_add_member)&&"none"},className:"iconfont icon-shanchu5 mr1 c-red font15 current",onClick:function(hr){hr.stopPropagation(),an(qt.id)}}))))}),ve=Object(re.a)(function(lt){var qe=lt.isShow,Bt=lt.setShow,$t=lt.pathsDetail,cn=lt.items,Kt=lt.params,_n=lt.dispatch,rn=lt.classroomList,jt=lt.handleDeleteMember;return t.a.createElement("div",{className:"task-list-container"},cn==null?void 0:cn.map(function(An,qt){return t.a.createElement(ne,{key:"".concat(An.id),isShow:qe,setShow:Bt,dispatch:_n,pathsDetail:$t,handleDeleteMember:jt,classroomList:rn,toIndex:qt+1,params:Kt,index:qt,item:An})}))}),oe=function(qe){var Bt=qe.isupdate,$t=qe.setisupdate,cn=qe.data,Kt=qe.classroomList,_n=qe.pathsDetail,rn=qe.operation,jt=qe.callback,An=qe.handleDeleteMember,qt=qe.onCancel,En=qe.dispatch,kn=qe.visible,Yt=kn===void 0?!1:kn,wn=Object(a.useState)(cn),ln=Object(_.a)(wn,2),xn=ln[0],an=ln[1],Vt=Object(h.i)(),Sn=Object(a.useState)(),hr=Object(_.a)(Sn,2),pn=hr[0],Dn=hr[1],Nn=Object(a.useState)(!0),Gn=Object(_.a)(Nn,2),yn=Gn[0],Kn=Gn[1];function or(er){var rr=er.newIndex,Lr=er.oldIndex;if(!rn)return;an(V()(xn,Lr,rr))}Object(a.useEffect)(function(){Bt&&(gr(xn.map(function(er){return er==null?void 0:er.id})),$t(!1))},[Bt]),Object(a.useEffect)(function(){an(cn)},[JSON.stringify(cn)]);function gr(er){return Ur.apply(this,arguments)}function Ur(){return Ur=Object(k.a)(p.a.mark(function er(rr){var Lr;return p.a.wrap(function(_r){for(;;)switch(_r.prev=_r.next){case 0:return _r.next=2,Object(Ut.a)("/api/paths/".concat(Vt==null?void 0:Vt.pathId,"/move_subject_members.json"),{method:"post",body:{user_ids:rr}});case 2:Lr=_r.sent,En({type:"pathsDetail/getRightData",payload:{id:Vt.pathId}});case 4:case"end":return _r.stop()}},er)})),Ur.apply(this,arguments)}return t.a.createElement("div",{style:{zIndex:9999,width:"100%"},className:"sort-list-panel"},t.a.createElement(ve,{axis:"xy",helperClass:"dragging-li",isShow:yn,setShow:Kn,distance:2,disableAutoscroll:!0,dispatch:En,pathsDetail:_n,handleDeleteMember:An,classroomList:Kt,params:Vt,items:xn,onSortEnd:or}))},et=Object(s.a)(function(lt){var qe=lt.classroomList,Bt=lt.pathsDetail;return{classroomList:qe,pathsDetail:Bt}})(oe),Qt=v("lseA"),dn=v.n(Qt),Cn=[2,5,8,11,14],Jt=Object(re.b)(function(lt){var qe,Bt,$t,cn,Kt=lt.item,_n=lt.toIndex,rn=lt.params,jt=lt.dispatch,An=lt.classroomList,qt=lt.handleDeleteMember,En=lt.pathsDetail;return t.a.createElement("span",{onClick:function(){window.open(Kt==null?void 0:Kt.first_category_url)},style:{display:"inline-block",padding:"10px 20px",width:"100%",background:"#fff",marginTop:"5px"}},t.a.createElement("div",{className:dn.a.directionItemWrap},t.a.createElement("img",{className:dn.a.imgradius,src:ut.a.API_SERVER+(Kt==null?void 0:Kt.default_image)}),t.a.createElement("span",{className:dn.a.groupActionWrap},t.a.createElement(l.a,{title:Kt.name},t.a.createElement("span",{style:{fontSize:"18px",color:"#ffffff"}},((qe=Kt.name)===null||qe===void 0?void 0:qe.length)>7?t.a.createElement("span",null,(Bt=Kt.name)===null||Bt===void 0?void 0:Bt.substring(0,7),t.a.createElement("br",null)," ",($t=Kt.name)===null||$t===void 0?void 0:$t.substring(7,14),(Kt==null?void 0:Kt.name.length)>14&&"..."):Kt.name)))),t.a.createElement("div",{className:dn.a.bottomdiv},t.a.createElement(l.a,{title:"\u8BBF\u95EE\u6570\uFF1A".concat(Kt==null?void 0:Kt.visits),placement:"bottom"},t.a.createElement("span",null,t.a.createElement("i",{style:{marginRight:"3px",color:"#bbbbbb"},className:"iconfont icon-chakan ml3 font15 current"}),t.a.createElement("span",{style:{color:"rgba(0, 0, 0, 0.45)"}},Kt==null?void 0:Kt.visits))),t.a.createElement(l.a,{title:"\u8BFE\u5802\u6210\u5458\u6570\uFF1A".concat(Kt==null?void 0:Kt.course_members_count),placement:"bottom"},t.a.createElement("span",null,t.a.createElement("i",{style:{marginRight:"3px",color:"#bbbbbb"},className:"iconfont icon-ren ml3 font15 current"}),t.a.createElement("span",{style:{color:"rgba(0, 0, 0, 0.45)"}}," ",Kt==null?void 0:Kt.course_members_count))),t.a.createElement(l.a,{overlayStyle:{maxWidth:380},title:t.a.createElement("div",{style:{whiteSpace:"nowrap"}},"\u8BFE\u5802\u7684\u4EFB\u52A1\u6570(\u4F5C\u4E1A\u6570\uFF0B\u8BD5\u5377\u6570\uFF0B\u95EE\u5377\u6570)\uFF1A",Kt==null?void 0:Kt.tasks_count),placement:"bottom"},t.a.createElement("span",null,t.a.createElement("i",{style:{marginRight:"3px",color:"#bbbbbb"},className:"iconfont icon-wenjian2 ml3 font15 current"}),t.a.createElement("span",{style:{color:"rgba(0, 0, 0, 0.45)"}}," ",Kt==null?void 0:Kt.tasks_count))),t.a.createElement(l.a,{title:"\u5220\u9664",placement:"bottom"},t.a.createElement("span",null,t.a.createElement("i",{style:{color:"#bbbbbb",display:!(En!=null&&(cn=En.detail)!==null&&cn!==void 0&&cn.allow_add_member)&&"none"},className:"iconfont icon-lajitong1 mr3 font15 current",onClick:function(Yt){Yt.stopPropagation(),qt(Kt.id)}})))))}),Vn=Object(re.a)(function(lt){var qe=lt.items,Bt=lt.params,$t=lt.dispatch,cn=lt.classroomList,Kt=lt.handleDeleteMember,_n=lt.pathsDetail;return t.a.createElement("div",{className:"task-list-container"},qe==null?void 0:qe.map(function(rn,jt){return t.a.createElement(Jt,{key:"".concat(rn.id),dispatch:$t,pathsDetail:_n,handleDeleteMember:Kt,classroomList:cn,toIndex:jt+1,params:Bt,index:jt,item:rn})}))}),Xn=function(qe){var Bt=qe.data,$t=qe.classroomList,cn=qe.pathsDetail,Kt=qe.callback,_n=qe.handleDeleteMember,rn=qe.onCancel,jt=qe.dispatch,An=qe.visible,qt=An===void 0?!1:An,En=Object(a.useState)(Bt),kn=Object(_.a)(En,2),Yt=kn[0],wn=kn[1],ln=Object(h.i)(),xn=Object(a.useState)(),an=Object(_.a)(xn,2),Vt=an[0],Sn=an[1];function hr(Nn){var Gn=Nn.newIndex,yn=Nn.oldIndex;pn(V()(Yt,yn,Gn).map(function(Kn){return Kn==null?void 0:Kn.id})),wn(V()(Yt,yn,Gn))}Object(a.useEffect)(function(){wn(Bt)},[JSON.stringify(Bt)]);function pn(Nn){return Dn.apply(this,arguments)}function Dn(){return Dn=Object(k.a)(p.a.mark(function Nn(Gn){var yn;return p.a.wrap(function(or){for(;;)switch(or.prev=or.next){case 0:return or.next=2,Object(Ut.a)("/api/paths/".concat(ln==null?void 0:ln.pathId,"/spoc_courses/move_position.json"),{method:"post",body:{ids:Gn}});case 2:yn=or.sent;case 3:case"end":return or.stop()}},Nn)})),Dn.apply(this,arguments)}return t.a.createElement("div",{style:{zIndex:9999,width:"100%"},className:"sort-list-panel"},t.a.createElement(Vn,{axis:"y",helperClass:"dragging-li",pathsDetail:cn,distance:2,dispatch:jt,handleDeleteMember:_n,classroomList:$t,params:ln,items:Yt,onSortEnd:hr}))},lr=Object(s.a)(function(lt){var qe=lt.classroomList,Bt=lt.pathsDetail;return{classroomList:qe,pathsDetail:Bt}})(Xn),Rr=v("V0Rq"),qr=v("HBuW"),zr=v("W6us"),Ca=v.n(zr),Dr=v("CnIC"),ya=v.n(Dr),ka=v("LZjx"),fi=v.n(ka),Ka=v("dhSg"),qa=v("cVA7"),Si=v.n(qa),pi=v("h6EL");function ui(lt){var qe=function(_n,rn){if(_n.localName===rn)return _n;for(var jt=0,An=_n;An=An.parentNode;jt++){if(An.localName===rn)return An;if(An==document.documentElement)return!1}},Bt=lt.target,$t=qe(Bt,"a");if(console.log([$t],$t==null?void 0:$t.href,44),$t!=null&&$t.href)return;if(Bt.tagName.toUpperCase()==="IMG"){var cn=Bt.src||Bt.getAttribute("src");cn&&cn.indexOf("/images/avatars/User")===-1&&(lt.stopPropagation(),lt.preventDefault(),Ka.a.publish("preview-image",cn))}}var mi=function(qe){var Bt,$t,cn,Kt,_n,rn,jt,An,qt,En,kn,Yt,wn,ln,xn,an,Vt,Sn,hr,pn,Dn,Nn,Gn,yn,Kn,or,gr,Ur,er,rr,Lr,Er,_r,sa,ta,tr,vr,ja,ia,Yn,vn,yr,oi,Cr,Ir,fr,ar,Ln,Mn,gn,qn,na,cr,jr,Pa,da,ba,ha,Ta,Da,Ua,Qr,Wa,Ea,za,hi,Ji,Li,Ci,Uo,Ao,_o,as,fs,is,os,So,ps,Qi,Aa,wi,vi,vo,uo,Ki,ss,ls,qo,fo,zo,yo,es,Go,Oa,la,xi,Zi,Oo,co,No,Wi,Ai,Vo,Pn=qe.pathsDetail,ts=qe.user,lo=qe.globalSetting,Ha=qe.loading,Fi=qe.classroomList,Ti=qe.dispatch,Ro=Object(O.a)(qe,["pathsDetail","user","globalSetting","loading","classroomList","dispatch"]),Oi=Object(h.i)(),Fo=Object(a.useState)(!0),ns=Object(_.a)(Fo,2),ms=ns[0],Xo=ns[1],Ss=Object(a.useState)(!1),Fs=Object(_.a)(Ss,2),On=Fs[0],nr=Fs[1],Wt=Object(a.useState)(),on=Object(_.a)(Wt,2),Tn=on[0],Hn=on[1],jn=Object(a.useState)(),pr=Object(_.a)(jn,2),dr=pr[0],Bn=pr[1],Yr=Object(a.useState)({}),Ri=Object(_.a)(Yr,2),ir=Ri[0],si=Ri[1],ao=Object(a.useState)(),zi=Object(_.a)(ao,2),Wn=zi[0],Qa=zi[1],Gi=Object(a.useRef)(),li=Object(a.useState)(!1),io=Object(_.a)(li,2),Yo=io[0],ko=io[1],jo=Object(a.useState)({}),gs=Object(_.a)(jo,2),ki=gs[0],sl=gs[1],vl=Object(a.useState)(!1),Os=Object(_.a)(vl,2),ks=Os[0],us=Os[1],ll=Object(a.useState)(!1),ul=Object(_.a)(ll,2),Sl=ul[0],Zs=ul[1],rs=Object(h.h)();Object(a.useEffect)(function(){if(Gi.current)return Gi.current.addEventListener("mousedown",ui),function(){Gi.current.removeEventListener("mousedown",ui)}},[Gi.current]);var cl=function(){var Rn=Object(k.a)(p.a.mark(function xr(){var In;return p.a.wrap(function(Jn){for(;;)switch(Jn.prev=Jn.next){case 0:if(dr!=null&&dr.trim()){Jn.next=3;break}return U.b.warn("\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"),Jn.abrupt("return");case 3:return Jn.next=5,Object(R.V)({id:Oi.pathId,team_title:dr.trim()});case 5:In=Jn.sent,Hn(!Tn),(In==null?void 0:In.status)===0&&(Bn(null),U.b.success(In.message),Ti({type:"pathsDetail/getRightData",payload:{id:Oi.pathId}}));case 8:case"end":return Jn.stop()}},xr)}));return function(){return Rn.apply(this,arguments)}}();Object(a.useEffect)(function(){Ti({type:"pathsDetail/getCoureses",payload:{id:Oi.pathId}}),Qs()},[]);function Qs(){return $s.apply(this,arguments)}function $s(){return $s=Object(k.a)(p.a.mark(function Rn(){return p.a.wrap(function(In){for(;;)switch(In.prev=In.next){case 0:return In.t0=sl,In.next=3,Object(R.w)({id:Oi.pathId,course_type:1});case 3:In.t1=In.sent,(0,In.t0)(In.t1);case 5:case"end":return In.stop()}},Rn)})),$s.apply(this,arguments)}Object(a.useEffect)(function(){var Rn;if(((Rn=Fi.actionTabs)===null||Rn===void 0?void 0:Rn.key)==="\u4FEE\u6539\u5F00\u8BFE\u65F6\u95F4"){var xr,In,Gr=(xr=Pn.detail)===null||xr===void 0||((In=xr.courses)===null||In===void 0)?void 0:In.find(function(Jn){var ra;return Jn.course_id===((ra=Fi.actionTabs)===null||ra===void 0?void 0:ra.name)});si(Gr||{})}},[Fi.actionTabs]),Object(a.useEffect)(function(){var Rn,xr,In;if((Rn=Pn.detail)!==null&&Rn!==void 0&&Rn.has_start){var Gr,Jn,ra=(Gr=Pn.detail)===null||Gr===void 0||((Jn=Gr.courses)===null||Jn===void 0)?void 0:Jn.findIndex(function(Io){var Do;return parseInt((Do=Io.course_status)===null||Do===void 0?void 0:Do.status)===1});In=ra>-1?ra:0}else{var Nr,fa,yi,Ya,Bo,Ho=(Nr=Pn.detail)===null||Nr===void 0||((fa=Nr.courses)===null||fa===void 0||((yi=fa.map(function(Io){var Do;return parseInt((Do=Io.course_status)===null||Do===void 0?void 0:Do.status)}))===null||yi===void 0))?void 0:yi.lastIndexOf(2);In=Ho>-1?Ho:0,Ho=(Ya=Pn.detail)===null||Ya===void 0||((Bo=Ya.courses)===null||Bo===void 0)?void 0:Bo.findIndex(function(Io){var Do;return parseInt((Do=Io.course_status)===null||Do===void 0?void 0:Do.status)===0}),In=Ho>-1?Ho:In}if((xr=Pn.detail)!==null&&xr!==void 0&&xr.courses){var el;si(((el=Pn.detail)===null||el===void 0?void 0:el.courses[In])||{})}},[Pn.detail]);var qs=function(){var Rn=Object(k.a)(p.a.mark(function xr(In){return p.a.wrap(function(Jn){for(;;)switch(Jn.prev=Jn.next){case 0:m.a.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:t.a.createElement("div",{className:"tc"},"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6210\u5458\u5417\uFF1F"),onOk:function(){var ra=Object(k.a)(p.a.mark(function fa(){var yi,Ya;return p.a.wrap(function(Ho){for(;;)switch(Ho.prev=Ho.next){case 0:return Ho.next=2,Object(R.p)({id:Oi.pathId,user_id:In});case 2:yi=Ho.sent,(yi==null?void 0:yi.status)===1&&(((Ya=ts.userInfo)===null||Ya===void 0?void 0:Ya.user_id)===In&&(window.location.href=window.location.href),U.b.info(yi==null?void 0:yi.message),Bs());case 4:case"end":return Ho.stop()}},fa)}));function Nr(){return ra.apply(this,arguments)}return Nr}()});case 1:case"end":return Jn.stop()}},xr)}));return function(In){return Rn.apply(this,arguments)}}(),yl=function(){var Rn=Object(k.a)(p.a.mark(function xr(In){return p.a.wrap(function(Jn){for(;;)switch(Jn.prev=Jn.next){case 0:m.a.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:t.a.createElement("div",{className:"tc"},"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u8BFE\u5802\u5417\uFF1F"),onOk:function(){var ra=Object(k.a)(p.a.mark(function fa(){var yi;return p.a.wrap(function(Bo){for(;;)switch(Bo.prev=Bo.next){case 0:return Bo.next=2,Object(R.o)({id:Oi.pathId,courseid:In});case 2:yi=Bo.sent,(yi==null?void 0:yi.status)===0&&(U.b.info("\u5220\u9664\u6210\u529F"),Bs());case 4:case"end":return Bo.stop()}},fa)}));function Nr(){return ra.apply(this,arguments)}return Nr}()});case 1:case"end":return Jn.stop()}},xr)}));return function(In){return Rn.apply(this,arguments)}}(),Rs=function(){m.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:t.a.createElement("div",{className:"tc"},"\u662F\u5426\u786E\u8BA4\u7ACB\u5373\u9884\u7EA6\uFF1F"),onOk:function(){var xr=Object(k.a)(p.a.mark(function Gr(){var Jn;return p.a.wrap(function(Nr){for(;;)switch(Nr.prev=Nr.next){case 0:return Nr.next=2,Object(R.i)({id:Oi.pathId});case 2:Jn=Nr.sent,Jn.status===0&&(Qa(!0),U.b.success(Jn.message));case 4:case"end":return Nr.stop()}},Gr)}));function In(){return xr.apply(this,arguments)}return In}()})},Ol=function(){Ti({type:"pathsDetail/setActionTabs",payload:{key:"Collaborators-AddCollaborator"}})},vs=function(xr){Ti({type:"pathsDetail/setActionTabs",payload:{key:"Collaborators-AddCourses",type:xr}})},Bs=function(){Ti({type:"pathsDetail/getPathsDetail",payload:{id:Oi.pathId}}),Ti({type:"pathsDetail/getRightData",payload:{id:Oi.pathId}}),Ti({type:"pathsDetail/getCoureses",payload:{id:Oi.pathId}}),Qs()},Ks=function(){var xr;return Tn?t.a.createElement("div",{className:Qe.a.flexRow},t.a.createElement(Ne.a,{placeholder:"\u4F8B\u5982\uFF1A\u6559\u5B66\u56E2\u961F",value:dr,onChange:function(Gr){return Bn(Gr.target.value)}}),t.a.createElement(u.a,{className:"ml5",onClick:function(){return Hn(!Tn)}},"\u53D6\u6D88"),t.a.createElement(u.a,{className:"ml5",type:"primary",onClick:cl},"\u786E\u5B9A")):t.a.createElement("div",{className:Qe.a.directionItemWrap},t.a.createElement("span",{style:{fontSize:"16px",display:"flex",alignItems:"center"}}," ",t.a.createElement("img",{style:{marginRight:"10px"},src:ya.a})," ",(xr=Pn.rightData)===null||xr===void 0?void 0:xr.team_title),t.a.createElement("span",{className:Qe.a.groupActionWrap},t.a.createElement("i",{className:"iconfont icon-xiugai mr1 c-light-primary font15 current",onClick:function(){return Hn(!Tn)}})),!ks&&t.a.createElement("a",{style:{flex:"1",textAlign:"end"},onClick:function(){us(!0)}},"\u7F16\u8F91"),ks&&t.a.createElement("div",{style:{flex:"1",textAlign:"end"}},t.a.createElement("a",{onClick:function(){us(!1)}},"\u53D6\u6D88"),t.a.createElement("a",{onClick:function(){Zs(!0),setTimeout(function(){us(!1)},500)},style:{marginLeft:10}},"\u5B8C\u6210")))},Is=function(){var xr,In,Gr=new Image;Gr.src=fn.o;var Jn=((xr=Pn.rightData)===null||xr===void 0||((In=xr.tags)===null||In===void 0)?void 0:In.map(function(Nr,fa){return{name:Nr.tag_name,value:fa}}))||[],ra={backgroundColor:"#fff",tooltip:{pointFormat:"{series.name}</b>"},series:[{type:"wordCloud",sizeRange:[10,30],rotationRange:[-90,90],rotationStep:45,gridSize:2,shape:"pentagon",maskImage:Gr,textStyle:{normal:{color:function(){return"rgb("+Math.round(Math.random()*255)+", "+Math.round(Math.random()*255)+", "+Math.round(Math.random()*255)+")"}}},left:"center",top:"center",right:null,bottom:null,width:"100%",height:"100%",data:Jn}]};return ra},ea=function(){if(!Object(he.e)(Ti))return;m.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:t.a.createElement("div",{className:"tc"},"\u662F\u5426\u786E\u5B9A\u52A0\u5165\u8BE5\u8BFE\u5802"),onOk:function(){var xr=Object(k.a)(p.a.mark(function Gr(){var Jn,ra;return p.a.wrap(function(fa){for(;;)switch(fa.prev=fa.next){case 0:return fa.next=2,Object(R.L)({id:ir==null?void 0:ir.course_id});case 2:Jn=fa.sent,Jn.status===0&&(U.b.success(Jn.message),Ti({type:"pathsDetail/getPathsDetail",payload:{id:Oi.pathId}}),parseInt((ra=ir.course_status)===null||ra===void 0?void 0:ra.status)===1&&Object(pe.S)("".concat(ir==null?void 0:ir.first_category_url)));case 4:case"end":return fa.stop()}},Gr)}));function In(){return xr.apply(this,arguments)}return In}()})},Fr=function(){var Rn=Object(k.a)(p.a.mark(function xr(){var In,Gr,Jn;return p.a.wrap(function(Nr){for(;;)switch(Nr.prev=Nr.next){case 0:if(Object(he.e)(Ti)){Nr.next=2;break}return Nr.abrupt("return");case 2:return nr(!0),Nr.next=5,Object(Ut.a)("/api/payments.json",{method:"POST",body:{subject_id:Oi.pathId,payment_method:"wechat_qr"}});case 5:In=Nr.sent,In!=null&&In.num&&(nr(!1),s.d.push(rs!=null&&(Gr=rs.query)!==null&&Gr!==void 0&&Gr.userid?"/order/".concat(Oi.pathId,"/pay?order_num=").concat(In==null?void 0:In.num,"&userid=").concat(rs==null||((Jn=rs.query)===null||Jn===void 0)?void 0:Jn.userid):"/order/".concat(Oi.pathId,"/pay?order_num=").concat(In==null?void 0:In.num)));case 7:case"end":return Nr.stop()}},xr)}));return function(){return Rn.apply(this,arguments)}}(),Ga=function(){var Rn=Object(k.a)(p.a.mark(function xr(In,Gr){var Jn;return p.a.wrap(function(Nr){for(;;)switch(Nr.prev=Nr.next){case 0:if(Ti({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF0C\u8BF7\u7A0D\u540E..."}}),!Gr){Nr.next=7;break}return Nr.next=4,Object(qr.D)({id:In});case 4:Nr.t0=Nr.sent,Nr.next=10;break;case 7:return Nr.next=9,Object(qr.E)({id:In});case 9:Nr.t0=Nr.sent;case 10:if(Jn=Nr.t0,Ti({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),!(Jn!=null&&Jn.game_identifier||Jn!=null&&Jn.identifier)){Nr.next=15;break}return Object(pe.S)(Gr?"/tasks/".concat(Jn==null?void 0:Jn.identifier,"/jupyter"):"/tasks/".concat(Jn.game_identifier)),Nr.abrupt("return");case 15:(Jn==null?void 0:Jn.status)===2?ma(Jn==null?void 0:Jn.message):(Jn==null?void 0:Jn.status)===3&&Wr(Jn==null?void 0:Jn.message);case 16:case"end":return Nr.stop()}},xr)}));return function(In,Gr){return Rn.apply(this,arguments)}}(),Wr=function(xr){m.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:t.a.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",xr,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},ma=function Rn(xr){var In;xr=(In=xr)!==null&&In!==void 0&&In.includes(".json")?xr:"".concat(xr,".json"),m.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:t.a.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:function(){var Gr=Object(k.a)(p.a.mark(function ra(){var Nr,fa;return p.a.wrap(function(Ya){for(;;)switch(Ya.prev=Ya.next){case 0:return Ya.next=2,Object(Rr.T)({url:xr});case 2:if(Nr=Ya.sent,Nr){Ya.next=5;break}return Ya.abrupt("return");case 5:return U.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),Ya.next=8,Object(qr.E)({id:Nr.shixun_identifier});case 8:if(fa=Ya.sent,!(fa!=null&&fa.game_identifier)){Ya.next=12;break}return Object(pe.S)("/tasks/".concat(fa.game_identifier)),Ya.abrupt("return");case 12:(fa==null?void 0:fa.status)===2?Rn(fa==null?void 0:fa.message):(fa==null?void 0:fa.status)===3&&Wr(fa==null?void 0:fa.message);case 13:case"end":return Ya.stop()}},ra)}));function Jn(){return Gr.apply(this,arguments)}return Jn}()})},ga=function(){var xr;if(!Object(he.e)(Ti))return;var In=[];Pn==null||((xr=Pn.stageData)===null||xr===void 0)||xr.forEach(function(Jn){var ra;if(Jn.items&&(ra=Jn.items)!==null&&ra!==void 0&&ra.length){var Nr;(Nr=Jn.items)===null||Nr===void 0||Nr.forEach(function(fa){var yi;In.push(fa),fa.children&&(yi=fa.children)!==null&&yi!==void 0&&yi.length&&(In=In.concat(fa.children))})}});var Gr=In.find(function(Jn){return["VideoItem","Attachment","Shixun"].includes(Jn.item_type)});if(console.log(Gr,"stageParam"),Gr.item_type==="VideoItem"){Object(pe.S)("/video/".concat(Gr.id,"?subject_id=").concat(Oi.pathId));return}if(Gr.item_type==="Attachment"){Object(pe.S)(Gr.url);return}if(Gr.item_type==="Shixun"){Ga(Gr.identifier,Gr.is_jupyter);return}},Na=function(){var xr,In,Gr,Jn,ra=(xr=Pn.detail)===null||xr===void 0||((In=xr.learning_status)===null||In===void 0)?void 0:In[0],Nr=(Gr=Pn.detail)===null||Gr===void 0||((Jn=Gr.learning_status)===null||Jn===void 0)?void 0:Jn[1];if(ra==="can")return t.a.createElement(u.a,{onClick:ga,type:"primary"},"\u5F00\u59CB\u5B66\u4E60");if(ra==="disabled"){if(Nr==="try"||Nr==="unpayed")return t.a.createElement(u.a,{loading:On,onClick:Fr,type:"primary"},"\u7ACB\u5373\u8D2D\u4E70");if(Nr==="expired")return t.a.createElement(u.a,{disabled:!0,type:"primary"},"\u5DF2\u8FC7\u671F");if(Nr==="buyed")return t.a.createElement(u.a,{disabled:!0,type:"primary"},"\u672A\u5F00\u59CB")}},La=function(){var Rn=Object(k.a)(p.a.mark(function xr(){var In,Gr,Jn,ra,Nr,fa,yi,Ya,Bo,Ho,el,Io;return p.a.wrap(function(cs){for(;;)switch(cs.prev=cs.next){case 0:if(Ho=function(){var dl=Object(k.a)(p.a.mark(function Ds(){var Rl;return p.a.wrap(function(bs){for(;;)switch(bs.prev=bs.next){case 0:return bs.next=2,Object(Ut.a)("/api/users/".concat(ts.userInfo.login,"/subjects/request_certificate.json?subject_id=").concat(Oi.pathId),{method:"post"});case 2:Rl=bs.sent,(Rl==null?void 0:Rl.status)===0&&(U.b.info("\u63D0\u4EA4\u6210\u529F"),Ti({type:"pathsDetail/getRightData",payload:{id:Oi.pathId}}));case 4:case"end":return bs.stop()}},Ds)}));return function(){return dl.apply(this,arguments)}}(),(In=ts.userInfo)!==null&&In!==void 0&&In.professional_certification){cs.next=4;break}return m.a.confirm({title:"\u63D0\u793A",centered:!0,content:t.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(pe.S)("/account/certification")}}),cs.abrupt("return",!1);case 4:if(!(((Gr=Pn.rightData)===null||Gr===void 0||((Jn=Gr.progress)===null||Jn===void 0)?void 0:Jn.certificated)==="drafted")){cs.next=6;break}return cs.abrupt("return",!1);case 6:if(!(((ra=Pn.rightData)===null||ra===void 0||((Nr=ra.progress)===null||Nr===void 0)?void 0:Nr.certificated)==="none"||((fa=Pn.rightData)===null||fa===void 0||((yi=fa.progress)===null||yi===void 0)?void 0:yi.certificated)==="rejected")){cs.next=9;break}return((el=Pn.rightData)===null||el===void 0?void 0:el.progress.learned)===100?m.a.info({title:"\u7533\u8BF7\u8BC1\u4E66",icon:null,className:"custom-modal-divider",centered:!0,width:400,content:'\u7533\u8BF7\u6210\u529F\uFF0C\u53EF\u4EE5\u5728\u4E2A\u4EBA\u4E2D\u5FC3"\u6211\u7684\u8BC1\u4E66"\u4E2D\u67E5\u770B',okText:"\u786E\u5B9A\u7533\u8BF7",onOk:Ho}):m.a.confirm({title:"\u7533\u8BF7\u8BC1\u4E66",icon:null,className:"custom-modal-divider",centered:!0,width:400,content:"\u4F60\u76EE\u524D\u5B66\u4E60\u8FDB\u5EA6\u4E3A".concat((Io=Pn.rightData)===null||Io===void 0?void 0:Io.progress.learned,"%\uFF0C\u5EFA\u8BAE\u7533\u8BF7\u540E\u7EE7\u7EED\u8FDB\u884C\u8BFE\u7A0B\u5B66\u4E60"),okText:"\u786E\u5B9A\u7533\u8BF7",onOk:Ho}),cs.abrupt("return",!1);case 9:((Ya=Pn.rightData)===null||Ya===void 0||((Bo=Ya.progress)===null||Bo===void 0)?void 0:Bo.certificated)==="passed"&&ko(!0);case 10:case"end":return cs.stop()}},xr)}));return function(){return Rn.apply(this,arguments)}}(),Vi=!!((Bt=Pn.detail)!==null&&Bt!==void 0&&Bt.participant_count)&&!(($t=Pn.detail)!==null&&$t!==void 0&&$t.allow_statistics),$a=((cn=Pn.detail)===null||cn===void 0||((Kt=cn.courses)===null||Kt===void 0)?void 0:Kt.findIndex(function(Rn){return(Rn==null?void 0:Rn.course_id)===(ir==null?void 0:ir.course_id)}))+1,ys=$a===((_n=Pn.detail)===null||_n===void 0||((rn=_n.courses)===null||rn===void 0)?void 0:rn.length);return t.a.createElement("section",{className:Qe.a.rightWrap},((jt=Pn.rightData)===null||jt===void 0?void 0:jt.qrcode_img)&&t.a.createElement("div",{className:Qe.a.qrCode},t.a.createElement("img",{src:(An=Pn.rightData)===null||An===void 0?void 0:An.qrcode_img})),((qt=Pn.rightData)===null||qt===void 0?void 0:qt.progress)&&t.a.createElement("div",{className:"".concat(Qe.a.card," ").concat(Qe.a.cardTop),style:{top:(En=Pn.detail)!==null&&En!==void 0&&(kn=En.courses)!==null&&kn!==void 0&&kn.length?"-140px":"-70px"}},parseInt(ir==null||((Yt=ir.course_status)===null||Yt===void 0)?void 0:Yt.status)===2&&ir.course_identity<6&&t.a.createElement("div",{className:"current mr20 c-grey-9b9 font14"},"\u5DF2\u7ED3\u675F"),parseInt((wn=ir.course_status)===null||wn===void 0?void 0:wn.status)===2&&(ir.course_identity<6?"":t.a.createElement("div",{className:"current mr20 c-grey-9b9 font14"},"\u5DF2\u7ED3\u675F")),t.a.createElement("div",{className:Qe.a.flexRow},Vi&&!!((ln=Pn.detail)!==null&&ln!==void 0&&(xn=ln.courses)!==null&&xn!==void 0&&xn.length)&&ys&&t.a.createElement("span",{className:"mt20"},t.a.createElement("span",{className:"mr10"},"\u5F53\u9884\u7EA6\u62A5\u540D\u4EBA\u6570\u8FBE\u5230 ",(an=Pn.detail)===null||an===void 0?void 0:an.student_count," ","\u4EBA\u65F6\u5373\u5C06\u5F00\u8BFE"),t.a.createElement("p",{className:""},"\u5F53\u524D\u9884\u7EA6\u62A5\u540D\u4EBA\u6570\uFF1A",t.a.createElement("span",{className:"mr5 c-red-ee4"},Wn===!0?((Vt=Pn.detail)===null||Vt===void 0?void 0:Vt.participant_count)+1:(Sn=Pn.detail)===null||Sn===void 0?void 0:Sn.participant_count),"\u4EBA")),Vi&&!((hr=Pn.detail)!==null&&hr!==void 0&&(pn=hr.courses)!==null&&pn!==void 0&&pn.length)&&ys&&t.a.createElement("span",null,!((Dn=Pn.detail)!==null&&Dn!==void 0&&Dn.has_participate)&&(Wn===!0?t.a.createElement("span",{className:"".concat(Qe.a.classButton," ").concat(Qe.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"):t.a.createElement("a",{className:"".concat(Qe.a.classButton," ").concat(Qe.a.bg28e),onClick:Rs},"\u671F\u5F85\u5F00\u8BFE\u5E76\u9884\u7EA6\u62A5\u540D")),((Nn=Pn.detail)===null||Nn===void 0?void 0:Nn.has_participate)&&t.a.createElement("span",{className:"".concat(Qe.a.classButton," ").concat(Qe.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"),t.a.createElement("span",{className:"mr10"},"\u5F53\u9884\u7EA6\u62A5\u540D\u4EBA\u6570\u8FBE\u5230 ",(Gn=Pn.detail)===null||Gn===void 0?void 0:Gn.student_count," ","\u4EBA\u65F6\u5373\u5C06\u5F00\u8BFE"),t.a.createElement("p",{className:""},"\u5F53\u524D\u9884\u7EA6\u62A5\u540D\u4EBA\u6570\uFF1A",t.a.createElement("span",{className:"mr5 c-red-ee4"},Wn===!0?((yn=Pn.detail)===null||yn===void 0?void 0:yn.participant_count)+1:(Kn=Pn.detail)===null||Kn===void 0?void 0:Kn.participant_count),"\u4EBA"))),parseInt(ir==null||((or=ir.course_status)===null||or===void 0)?void 0:or.status)===1&&t.a.createElement("div",{className:"mr20 c-red-ee4"},ir==null||((gr=ir.course_status)===null||gr===void 0)?void 0:gr.time),t.a.createElement("p",{style:{display:ir.course_identity<6?"":"none"},className:"mb10 mt10 ".concat(Qe.a.flexRowAbout)},t.a.createElement("span",{style:{display:((Ur=ir.course_status)===null||Ur===void 0?void 0:Ur.status)<=1?"":"none"},className:"c-light-green font14"},"\u5DF2\u5B66",(er=Pn.rightData)===null||er===void 0?void 0:er.progress.learned,"%"),t.a.createElement("span",{style:{display:((rr=ir.course_status)===null||rr===void 0?void 0:rr.status)<=1?"":"none"},className:"c-light-black"},"\u5B66\u4E60\u8017\u65F6",Object(pe.bb)((Lr=Pn.rightData)===null||Lr===void 0?void 0:Lr.progress.time)," "),((Er=Pn.rightData)===null||Er===void 0||((_r=Er.progress)===null||_r===void 0)?void 0:_r.certificated)!="disabled"&&t.a.createElement(u.a,{disabled:((sa=Pn.rightData)===null||sa===void 0||((ta=sa.progress)===null||ta===void 0)?void 0:ta.certificated)==="drafted",onClick:La},((tr=Pn.rightData)===null||tr===void 0||((vr=tr.progress)===null||vr===void 0)?void 0:vr.certificated)==="none"&&"\u7533\u8BF7\u8BC1\u4E66",((ja=Pn.rightData)===null||ja===void 0||((ia=ja.progress)===null||ia===void 0)?void 0:ia.certificated)==="rejected"&&"\u7533\u8BF7\u8BC1\u4E66",((Yn=Pn.rightData)===null||Yn===void 0||((vn=Yn.progress)===null||vn===void 0)?void 0:vn.certificated)==="drafted"&&"\u5BA1\u6838\u4E2D",((yr=Pn.rightData)===null||yr===void 0||((oi=yr.progress)===null||oi===void 0)?void 0:oi.certificated)==="passed"&&"\u67E5\u770B\u8BC1\u4E66")),t.a.createElement(l.a,{placement:"bottom",title:"\u5B8C\u6210\u8BFE\u7A0B\u540E\u53EF\u83B7\u53D6\u8BC1\u4E66\uFF01",color:"yellow"}," ",t.a.createElement(pt.a,{percent:(Cr=Pn.rightData)===null||Cr===void 0?void 0:Cr.progress.learned,showInfo:!1,style:{display:((Ir=ir.course_status)===null||Ir===void 0?void 0:Ir.status)<=1&&ir.course_identity<6?"":"none"},status:"active",strokeColor:{"0%":"#29BD8B","100%":"#29BD8B"}})),parseInt((fr=ir.course_status)===null||fr===void 0?void 0:fr.status)===2&&((ar=Pn.detail)===null||ar===void 0?void 0:ar.allow_add_member)&&t.a.createElement("a",{className:Qe.a.classButton,href:"".concat(ir==null?void 0:ir.first_category_url),target:"_blank"},"\u8FDB\u5165\u8BFE\u5802"),parseInt((Ln=ir.course_status)===null||Ln===void 0?void 0:Ln.status)===1&&ir.course_identity>5&&t.a.createElement("div",{className:Qe.a.classButton,onClick:ea},"\u7ACB\u5373\u52A0\u5165"),parseInt((Mn=ir.course_status)===null||Mn===void 0?void 0:Mn.status)===1&&ir.course_identity===5&&t.a.createElement("a",{className:Qe.a.classButton,href:"".concat(ir==null?void 0:ir.first_category_url),target:"_blank"},"\u7ACB\u5373\u5B66\u4E60"),parseInt((gn=ir.course_status)===null||gn===void 0?void 0:gn.status)===0&&ir.course_identity>5&&t.a.createElement("div",{className:Qe.a.classButton,onClick:ea},"\u7ACB\u5373\u62A5\u540D"),parseInt((qn=ir.course_status)===null||qn===void 0?void 0:qn.status)===0&&ir.course_identity===5&&t.a.createElement("div",{className:Qe.a.classButton},"\u62A5\u540D\u6210\u529F"),(parseInt(ir==null||((na=ir.course_status)===null||na===void 0)?void 0:na.status)===0||parseInt(ir==null||((cr=ir.course_status)===null||cr===void 0)?void 0:cr.status)===1)&&ir.course_identity<5&&t.a.createElement("a",{className:Qe.a.classButton,href:"".concat(ir==null?void 0:ir.first_category_url),target:"_blank"},"\u8FDB\u5165\u8BFE\u5802"),Vi&&ys&&((jr=Pn.detail)===null||jr===void 0?void 0:jr.has_participate)&&t.a.createElement("span",{className:"".concat(Qe.a.classButton," ").concat(Qe.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"),Vi&&ys&&!((Pa=Pn.detail)!==null&&Pa!==void 0&&Pa.has_participate)&&(Wn?t.a.createElement("span",{className:"".concat(Qe.a.classButton," ").concat(Qe.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"):t.a.createElement("span",{className:"".concat(Qe.a.classButton," ").concat(Qe.a.bg28e),onClick:Rs},"\u671F\u5F85\u5F00\u8BFE\u5E76\u9884\u7EA6\u62A5\u540D")),!((da=Pn.detail)!==null&&da!==void 0&&da.excellent)&&((ba=Pn.detail)===null||ba===void 0?void 0:ba.is_free)!==!0&&t.a.createElement("div",{className:Qe.a.price},t.a.createElement("ul",null,t.a.createElement("li",{className:Qe.a.li1},!!((ha=Pn.detail)!==null&&ha!==void 0&&ha.origin_price)&&t.a.createElement("div",{className:Qe.a.discounts},"\u9650\u65F6\u4F18\u60E0"),t.a.createElement("div",{className:Qe.a.realPrice},t.a.createElement("span",null,"\uFFE5"),(Ta=Pn.detail)===null||Ta===void 0?void 0:Ta.price),!!((Da=Pn.detail)!==null&&Da!==void 0&&Da.origin_price)&&t.a.createElement("div",{className:Qe.a.lineationPrice},t.a.createElement("span",null,"\uFFE5"),(Ua=Pn.detail)===null||Ua===void 0?void 0:Ua.origin_price)),t.a.createElement("li",{className:Qe.a.li2},"\u8BFE\u7A0B\u6709\u6548\u671F\uFF1A",((Qr=Pn.detail)===null||Qr===void 0||((Wa=Qr.expiration_type)===null||Wa===void 0)?void 0:Wa.clazz)==="1"&&"\u6C38\u4E45\u6709\u6548",((Ea=Pn.detail)===null||Ea===void 0||((za=Ea.expiration_type)===null||za===void 0)?void 0:za.clazz)==="2"&&"\u8D2D\u4E70\u540E".concat((hi=Pn.detail)===null||hi===void 0||((Ji=hi.expiration_type)===null||Ji===void 0||((Li=Ji.days)===null||Li===void 0))?void 0:Li[0],"\u5929\u5185\u6709\u6548"),((Ci=Pn.detail)===null||Ci===void 0||((Uo=Ci.expiration_type)===null||Uo===void 0)?void 0:Uo.clazz)==="3"&&"".concat((Ao=Pn.detail)===null||Ao===void 0||((_o=Ao.expiration_type)===null||_o===void 0||((as=_o.days)===null||as===void 0))?void 0:as.join("\u5230")))),Na()),t.a.createElement("p",{className:"mb30",style:{marginTop:"15px"}},t.a.createElement("span",{className:"font16",style:{display:"flex",alignItems:"center"}},t.a.createElement("img",{style:{marginRight:"10px"},src:Ca.a})," ",(fs=Pn.detail)===null||fs===void 0?void 0:fs.learning_notes_title)),t.a.createElement("div",{ref:Gi},t.a.createElement(Ot.a,{className:"fon16",value:(is=Pn.detail)===null||is===void 0?void 0:is.learning_notes}))),!!((os=Pn.rightData)!==null&&os!==void 0&&(So=os.members)!==null&&So!==void 0&&So.length)&&t.a.createElement("div",{className:"".concat(Qe.a.card," pb0"),style:{marginTop:(ps=Pn.detail)!==null&&ps!==void 0&&(Qi=ps.courses)!==null&&Qi!==void 0&&Qi.length?-135:-65}},(Aa=Pn.detail)!==null&&Aa!==void 0&&Aa.allow_add_member?Ks():t.a.createElement("span",{style:{fontSize:"16px",display:"flex",alignItems:"center"}}," ",t.a.createElement("img",{style:{marginRight:"10px"},src:ya.a})," ",(wi=Pn.rightData)===null||wi===void 0?void 0:wi.team_title),ks&&t.a.createElement(et,{setisupdate:Zs,isupdate:Sl,data:(vi=Pn.rightData)===null||vi===void 0?void 0:vi.members,operation:(vo=Pn.detail)===null||vo===void 0?void 0:vo.allow_add_member,handleDeleteMember:qs}),!ks&&t.a.createElement("div",{style:{width:"100%"}},(uo=Pn.rightData)===null||uo===void 0||((Ki=uo.members)===null||Ki===void 0)?void 0:Ki.map(function(Rn){var xr,In,Gr,Jn,ra,Nr,fa,yi;return t.a.createElement("div",{style:{display:"inline-block",width:"33%",padding:"5px",background:"#fff",marginTop:"10px"}},t.a.createElement("div",{className:je.a.directionItemWrap},t.a.createElement(l.a,{color:"#ffffff",placement:"bottom",title:t.a.createElement("div",{className:je.a.teamHeight},t.a.createElement("span",{title:Rn==null?void 0:Rn.name,style:{fontSize:"14px",color:"#333333",textOverflow:"ellipsis",whiteSpace:"nowrap",width:"80px",overflow:"hidden"}},(Rn==null||((xr=Rn.name)===null||xr===void 0)?void 0:xr.length)>6?(Rn==null||((In=Rn.name)===null||In===void 0)?void 0:In.substr(0,6))+"...":(Rn==null?void 0:Rn.name)||"--"),t.a.createElement("span",{style:{marginLeft:"10px",color:"#999999",fontSize:"12px"}},(Rn==null||((Gr=Rn.school)===null||Gr===void 0)?void 0:Gr.length)>9?(Rn==null||((Jn=Rn.school)===null||Jn===void 0)?void 0:Jn.substr(0,9))+"...":Rn==null?void 0:Rn.school),t.a.createElement("div",{style:{height:"1px",width:"100%",border:"1px solid #f5f5f5",marginTop:"3px",marginBottom:"3px"}}),!(Rn!=null&&Rn.brief_introduction)&&t.a.createElement("div",{style:{textAlign:"center",marginTop:"20px"}},"\u6682\u65E0\u7B80\u4ECB"),(Rn==null?void 0:Rn.brief_introduction)&&t.a.createElement("div",{className:je.a.divHeight},Rn==null?void 0:Rn.brief_introduction))},t.a.createElement("img",{draggable:!1,className:je.a.imgradius,onClick:function(){},src:ut.a.API_SERVER+"/images/"+(Rn==null?void 0:Rn.image_url)}),t.a.createElement("div",null,(Rn==null||((ra=Rn.name)===null||ra===void 0)?void 0:ra.length)>6?(Rn==null||((Nr=Rn.name)===null||Nr===void 0)?void 0:Nr.substr(0,6))+"...":(Rn==null?void 0:Rn.name)||"--",t.a.createElement("br",null),t.a.createElement("span",{style:{color:"#999999"}},(Rn==null||((fa=Rn.school)===null||fa===void 0)?void 0:fa.length)>6?(Rn==null||((yi=Rn.school)===null||yi===void 0)?void 0:yi.substr(0,6))+"...":(Rn==null?void 0:Rn.school)||"--"))),t.a.createElement("br",null)))})),((ss=Pn.detail)===null||ss===void 0?void 0:ss.allow_add_member)&&t.a.createElement(Ae.a,{gutter:[0,40],justify:"center",align:"middle",className:"bg-white mt0"},t.a.createElement(ie.a,{className:"c-blue current",onClick:Ol},"+ \u6DFB\u52A0\u5408\u4F5C\u8005"))),!!((ls=Pn.rightData)!==null&&ls!==void 0&&(qo=ls.tags)!==null&&qo!==void 0&&qo.length)&&((fo=Pn.detail)===null||fo===void 0?void 0:fo.show_tag)&&t.a.createElement("div",{className:Qe.a.skillWrap},t.a.createElement("p",{className:"".concat(Qe.a.skillTopWrap," font16 mb20")},t.a.createElement("span",null,"\u6280\u80FD\u6807\u7B7E",t.a.createElement("span",{className:"ml5 c-grey-c"},(zo=Pn.rightData)===null||zo===void 0||((yo=zo.tags)===null||yo===void 0)?void 0:yo.length))),t.a.createElement(Si.a,{option:Is(),style:{height:370},opts:{renderer:"svg"}})),((es=Pn.detail)===null||es===void 0?void 0:es.show_spoc)===1&&t.a.createElement("div",{className:"".concat(Qe.a.card," pb0"),style:{marginTop:15}},t.a.createElement("p",{className:"font16",style:{display:"flex",alignItems:"center"}},t.a.createElement("img",{style:{marginRight:"10px"},src:fi.a}),"SPOC\u8BFE\u5802"),t.a.createElement(lr,{data:(Go=Pn.Courses)===null||Go===void 0?void 0:Go.spoc_courses,handleDeleteMember:yl}),((Oa=Pn.detail)===null||Oa===void 0?void 0:Oa.show_spoc)===1&&(Pn==null||((la=Pn.Courses)===null||la===void 0||((xi=la.spoc_courses)===null||xi===void 0))?void 0:xi.length)<3&&((Zi=Pn.detail)===null||Zi===void 0?void 0:Zi.allow_add_member)&&t.a.createElement(Ae.a,{gutter:[0,40],justify:"center",align:"middle",className:"bg-white mt0"},t.a.createElement(ie.a,{className:"c-blue current",onClick:function(){return vs()}},"+ \u6DFB\u52A0\u8BFE\u5802"))),((Oo=Pn.detail)===null||Oo===void 0?void 0:Oo.show_history)&&t.a.createElement("div",{className:"".concat(Qe.a.card," pb0"),style:{marginTop:15}},t.a.createElement("p",{className:"font16",style:{display:"flex",alignItems:"center"}},t.a.createElement("img",{style:{marginRight:"10px"},src:fi.a}),"\u5386\u53F2\u8BFE\u5802"),t.a.createElement(lr,{data:ki==null?void 0:ki.spoc_courses,handleDeleteMember:yl}),((co=Pn.detail)===null||co===void 0?void 0:co.show_history)&&(ki==null||((No=ki.spoc_courses)===null||No===void 0)?void 0:No.length)<3&&((Wi=Pn.detail)===null||Wi===void 0?void 0:Wi.allow_add_member)&&t.a.createElement(Ae.a,{gutter:[0,40],justify:"center",align:"middle",className:"bg-white mt0"},t.a.createElement(ie.a,{className:"c-blue current",onClick:function(){return vs(1)}},"+ \u6DFB\u52A0\u8BFE\u5802"))),t.a.createElement(Mr,{onReloadData:Bs}),t.a.createElement(Un,{onReloadData:Bs,data:ki}),t.a.createElement(sn,{visible:Yo,onCancel:function(){ko(!1)},data:((Ai=Pn.rightData)===null||Ai===void 0||((Vo=Ai.progress)===null||Vo===void 0)?void 0:Vo.info)||{}}))},_i=Object(s.a)(function(lt){var qe=lt.pathsDetail,Bt=lt.user,$t=lt.loading,cn=lt.globalSetting,Kt=lt.classroomList;return{pathsDetail:qe,user:Bt,globalSetting:cn,loading:$t.models.index,classroomList:Kt}})(mi),ai=v("cWXX"),Hi=v("/ezw"),Yi=v("VlDO"),$r=v.n(Yi),ua=v("bbsP"),Pr=v("/wGt"),ca=v("DjyN"),Jr=v("NUBc"),ri=v("/zsF"),pa=v("PArb"),mo=v("vkP9"),Di=v("cCSd"),ci=v.n(Di),Wo=Ne.a.Search,Mo=[{id:"type",name:"\u7B5B\u9009",children:[{name:"\u5168\u90E8\u5B9E\u8BAD",id:"all",type:"type"},{name:"\u6211\u7684\u5B9E\u8BAD",id:"mine",type:"type"}]},{id:"diff",name:"\u96BE\u5EA6",children:[{name:"\u5168\u90E8",id:"",type:"diff"},{name:"\u521D\u7EA7",id:1,type:"diff"},{name:"\u4E2D\u7EA7",id:2,type:"diff"},{name:"\u4E2D\u9AD8\u7EA7",id:3,type:"diff"},{name:"\u9AD8\u7EA7",id:4,type:"diff"}]}],ii=function(qe){var Bt,$t=qe.classroomList,cn=qe.loading,Kt=qe.dispatch,_n=qe.cb,rn=qe.shixunIds,jt=rn===void 0?[]:rn,An=Object(h.i)(),qt=Object(h.h)(),En=$t.actionTabs,kn=ht.a.useForm(),Yt=Object(_.a)(kn,1),wn=Yt[0],ln=$t.shixunLists,xn=Object(a.useState)([]),an=Object(_.a)(xn,2),Vt=an[0],Sn=an[1],hr=Object(a.useState)({page:1,type:"all",diff:0,status:"all",order:"desc",limit:20,sort:"myshixuns_count"}),pn=Object(_.a)(hr,2),Dn=pn[0],Nn=pn[1];Object(a.useEffect)(function(){$t.actionTabs.key==="\u9009\u7528\u5B9E\u8DF5\u9879\u76EE"&&(Dn.page=1,Kt({type:"classroomList/getShixunLists",payload:Object(I.a)({},Dn)}))},[$t.actionTabs.key]),Object(a.useEffect)(function(){return $t.actionTabs.key==="\u9009\u7528\u5B9E\u8DF5\u9879\u76EE"?document.body.setAttribute("data-custom","height"):document.body.removeAttribute("data-custom"),function(){document.body.removeAttribute("data-custom")}},[$t.actionTabs.key]);var Gn=function(){Kt({type:"classroomList/setActionTabs",payload:{}}),Nn({page:1,type:"all",diff:0,status:"all",order:"desc",limit:20,sort:"myshixuns_count"})};return $t.actionTabs.key!=="\u9009\u7528\u5B9E\u8DF5\u9879\u76EE"?null:t.a.createElement(Pr.a,{placement:"bottom",height:"100%",closable:!1,visible:$t.actionTabs.key==="\u9009\u7528\u5B9E\u8DF5\u9879\u76EE",key:"bottom",className:ci.a.drawer,footer:t.a.createElement("div",{className:"tc"},t.a.createElement(u.a,{size:"large",onClick:function(){Gn(),Sn([]),_n("\u53D6\u6D88")},style:{marginRight:8}},"\u53D6\u6D88"),t.a.createElement(u.a,{size:"large",onClick:Object(k.a)(p.a.mark(function yn(){var Kn,or,gr,Ur;return p.a.wrap(function(rr){for(;;)switch(rr.prev=rr.next){case 0:Kn=function(Er){var _r=Vt[Er];if(jt.includes(_r)){var sa,ta;return U.b.info("\u8BF7\u52FF\u91CD\u590D\u9009\u62E9\uFF1A".concat(ln==null||((sa=ln.shixun_list)===null||sa===void 0||((ta=sa.find(function(tr){return tr.id===_r}))===null||ta===void 0))?void 0:ta.title)),{v:void 0}}},or=0;case 2:if(!(or<(Vt==null?void 0:Vt.length))){rr.next=9;break}if(gr=Kn(or),!(typeof gr=="object")){rr.next=6;break}return rr.abrupt("return",gr.v);case 6:or++,rr.next=2;break;case 9:return rr.next=11,Object(R.O)({id:$t.actionTabs.id,subject_id:$t.actionTabs.subject_id,shixun_ids:Object(d.a)(Vt)});case 11:Ur=rr.sent,Sn([]),Ur!=null&&Ur.shixuns_list&&(Gn(),_n(Ur.shixuns_list));case 14:case"end":return rr.stop()}},yn)})),type:"primary"},"\u786E\u5B9A"))},t.a.createElement("section",{className:"tc"},t.a.createElement(mo.a,{onChange:function(Kn){Nn(Object(I.a)(Object(I.a)(Object(I.a)({},Dn),Kn),{},{page:1})),Kt({type:"classroomList/getShixunLists",payload:Object(I.a)(Object(I.a)(Object(I.a)({},Dn),Kn),{},{page:1})})}})),t.a.createElement("section",{className:"edu-container"},Mo.map(function(yn,Kn){var or;return t.a.createElement("ul",{className:ci.a.menu,key:Kn},t.a.createElement("li",null,yn.name),yn==null||((or=yn.children)===null||or===void 0)?void 0:or.map(function(gr,Ur){return t.a.createElement("li",{className:Dn[yn.id]==gr.id?ci.a.actived:"",onClick:function(){Dn[yn.id]=gr.id,Nn(Object(I.a)({},Dn)),Kt({type:"classroomList/getShixunLists",payload:Object(I.a)({},Dn)})}},t.a.createElement("strong",null,gr.name))}))}),ln==null||((Bt=ln.shixun_list)===null||Bt===void 0)?void 0:Bt.map(function(yn,Kn){return t.a.createElement("div",{className:ci.a.listItem,key:Kn},t.a.createElement(ee.a,{checked:Vt.includes(yn.id),value:yn.id,onChange:function(gr){var Ur=Vt.indexOf(yn.id);Vt.indexOf(yn.id)>-1?Sn(Vt.filter(function(er){return er!==yn.id})):Sn(Vt.concat(yn.id))}}),t.a.createElement("div",{className:ci.a.info},t.a.createElement("div",{className:ci.a.title},t.a.createElement("div",{className:ci.a.titleLeft},t.a.createElement("a",{className:"c-black",href:"/shixuns/".concat(yn==null?void 0:yn.identifier,"/challenges"),target:"_blank"},t.a.createElement("strong",{className:"font16",dangerouslySetInnerHTML:{__html:yn.title}})),Object(F.v)()&&(yn==null?void 0:yn.mark_status)===1&&t.a.createElement(l.a,{title:yn==null?void 0:yn.mark_content},t.a.createElement("span",{style:{marginRight:"auto",background:"#2FA34F"},className:"tag-style current ml10"},"\u6B63\u5E38")),Object(F.v)()&&(yn==null?void 0:yn.mark_status)===2&&t.a.createElement(l.a,{title:yn==null?void 0:yn.mark_content},t.a.createElement("span",{style:{marginRight:"auto",background:"#FF8C29"},className:"tag-style current ml10"},"\u9700\u5B8C\u5584")),Object(F.v)()&&(yn==null?void 0:yn.mark_status)===3&&t.a.createElement(l.a,{title:yn==null?void 0:yn.mark_content},t.a.createElement("span",{style:{marginRight:"auto",background:"#E53333"},className:"tag-style current ml10"},"\u65E0\u6CD5\u4F7F\u7528")))),t.a.createElement("div",{className:"flex-wrp mt10 font14 c-light-black"},t.a.createElement("span",{className:ci.a.description,dangerouslySetInnerHTML:{__html:yn.description}})),t.a.createElement("div",{className:" mt15"},yn.challenge_names.map(function(or,gr){return t.a.createElement("span",{key:gr,className:"mr30 font12"},"\u7B2C",gr+1,"\u5173 ",or," ")})),t.a.createElement(pa.a,{dashed:!0}),t.a.createElement("div",{className:"c-light-black mt20 font12"},t.a.createElement("span",null,yn.author_name),t.a.createElement("span",{className:"ml15 mr15"},"|"),t.a.createElement("span",null,yn.author_school_name),t.a.createElement("span",{className:"ml15 mr15"},"|"),t.a.createElement("span",null,"\u96BE\u5EA6\u7CFB\u6570:",yn.level),t.a.createElement("span",{className:"ml15 mr15"},"|"),t.a.createElement("span",null,"\u5B66\u4E60\u4EBA\u6570:"),t.a.createElement("span",null,yn.study_count))))}),t.a.createElement("p",null)),t.a.createElement("div",{className:"tc"},t.a.createElement(Jr.a,{current:Dn.page||1,hideOnSinglePage:!0,showSizeChanger:!1,defaultPageSize:20,showQuickJumper:!0,total:ln==null?void 0:ln.shixuns_count,onChange:function(Kn){Dn.page=Kn,Kt({type:"classroomList/getShixunLists",payload:Object(I.a)({},Dn)})}})))},go=Object(s.a)(function(lt){var qe=lt.classroomList,Bt=lt.loading;return{classroomList:qe,loading:Bt}})(ii),no=v("Ot1p"),hs=v("qdXH"),xo=v("sBCT"),Cs=v("500L"),ws=v("giR+"),ho=v("fyUT"),As=v("dwhp"),mr=v("IxHN"),Vr=v("M8RZ"),ur=v("BdwD"),oa=v("9nDM"),wa=function(qe){var Bt=qe.user,$t=qe.onReplyDiscuss,cn=qe.dispatch,Kt=qe.id,_n=qe.activeDiscussIndex,rn=Object(a.useState)(""),jt=Object(_.a)(rn,2),An=jt[0],qt=jt[1];function En(wn){qt(wn)}var kn=Object(h.i)();function Yt(){if(!An){U.b.info("\u56DE\u590D\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A!");return}$t(Kt,An),cn({type:"pathsDetail/getPathsDetail",payload:{id:kn.pathId}}),qt("")}return t.a.createElement("div",{key:Kt,className:"discuss-item-editor",style:{display:_n===Kt?"block":"none",width:"100%"}},t.a.createElement(no.a,{miniToolbar:!0,startInit:_n===Kt,defaultValue:An,id:Kt,noStorage:!0,watch:!1,height:155,placeholder:"\u6211\u8981\u56DE\u590D",showResizeBar:!0,onChange:En}),t.a.createElement("a",{onClick:Yt,className:"btn-send"},"\u53D1\u9001"))},ei=Object(s.a)(function(lt){var qe=lt.shixunsDetail,Bt=lt.loading,$t=lt.globalSetting;return{shixunsDetail:qe,globalSetting:$t,loading:Bt.models.index}})(wa),Ba=function(qe){var Bt=qe.user,$t=qe.upDataList,cn=qe.page,Kt=qe.getTypeNumber,_n=qe.dispatch,rn=Object(h.i)(),jt=function(){var An=Object(k.a)(p.a.mark(function qt(En,kn){var Yt;return p.a.wrap(function(ln){for(;;)switch(ln.prev=ln.next){case 0:return ln.next=2,Object(R.M)({id:En,content:kn});case 2:Yt=ln.sent,(Yt==null?void 0:Yt.status)===0&&$t(1);case 4:case"end":return ln.stop()}},qt)}));return function(En,kn){return An.apply(this,arguments)}}();return t.a.createElement("div",{className:"discuss-item-container bg-white"},t.a.createElement("a",{href:"/users/".concat(Bt.login),target:"_blank"},t.a.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",height:"50",src:"".concat(ut.a.IMG_SERVER,"/images/").concat(Bt.image_url),width:"50"})),t.a.createElement("section",null,t.a.createElement(ei,{id:rn.pathId,activeDiscussIndex:rn.pathId,onReplyDiscuss:jt})))},Ni=Object(s.a)(function(lt){var qe=lt.shixunsDetail,Bt=lt.loading,$t=lt.globalSetting;return{shixunsDetail:qe,globalSetting:$t,loading:Bt.models.index}})(Ba),Ma=v("fXAG");function xa(lt){var qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Object(Ut.c)("/discusses.json?page=".concat(qe-1,"&container_identifier=").concat(lt,"&container_type=Shixun"))}function Po(lt,qe){return Object(Ut.f)("/discusses/".concat(lt,"/top_or_down_discuss.json"),{top:qe})}function Za(lt,qe){return Object(Ut.f)("/discusses/".concat(lt,"/plus.json"),{container_type:"Discuss",type:qe?1:0})}function ro(lt,qe){return Object(Ut.f)("/discusses/".concat(lt,"/hidden.json"),qe)}function so(lt,qe){return Object(Ut.f)("/discusses/".concat(lt,"/reward_code.json"),qe)}function To(lt){return Object(Ut.a)("/api/discusses/".concat(lt,".json"),{method:"delete"})}function Vs(lt,qe){return Object(Ut.f)("/discusses/".concat(lt,"/reply.json"),{container_type:"Shixun",content:qe})}function ti(lt){return Object(Ut.f)("/discusses.json",lt)}var Sa=v("QcdW"),Ia=v("kaH+");function Eo(lt){var qe=lt.data,Bt=lt.index,$t=lt.adminOrOperator,cn=lt.parentDiscussIndex,Kt=lt.shixunIdentifier,_n=lt.isDelete,rn=lt.user,jt=lt.onSetRewardData,An=lt.onSetActionType,qt=lt.deleteCommentAlert,En=lt.shixunName,kn=qe.author,Yt=qe.can_delete,wn=qe.manage,ln=qe.content,xn=qe.hidden,an=qe.id,Vt=qe.reward,Sn=qe.time;function hr(){jt({id:an,index:Bt,user_id:kn.user_id,parentDiscussIndex:cn})}function pn(){An({id:an,index:Bt,params:{hidden:xn?"0":"1",container_identifier:Kt},type:"hidden-discuss",parentDiscussIndex:cn,message:xn?"\u786E\u5B9A\u8981\u53D6\u6D88\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417":"\u786E\u5B9A\u8981\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417"})}function Dn(){if(qt){m.a.info({title:"\u63D0\u793A",content:t.a.createElement("div",{className:"tc"}," ","\u8BE5\u6761\u8BC4\u8BBA\u6765\u81EA\u300A",En,"\u300B\u5B9E\u8DF5\u9879\u76EE\uFF0C\u60A8\u4E0D\u662F\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u7BA1\u7406\u8005\uFF0C\u4E0D\u80FD\u5220\u9664\u8BC4\u8BBA\uFF01"),onOk:function(){}});return}An({id:an,index:Bt,type:"delete-discuss",parentDiscussIndex:cn,message:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417"})}return t.a.createElement("div",{className:"second-level-discuss"},t.a.createElement("div",{className:"discuss-info-body"},t.a.createElement("div",{className:"discuss-info"},t.a.createElement("a",{href:"/users/".concat(kn.login),target:"_blank"},kn.name),t.a.createElement("span",{className:"grey"},Sn),Vt?t.a.createElement("a",{className:"c-orange gift",title:"\u5DF2\u5956\u52B1\u91D1\u5E01".concat(Vt)},t.a.createElement("i",{className:"iconfont icon-gift c-orange "}),t.a.createElement("span",null,Vt)):null),t.a.createElement("div",{className:"btn-group"},$t?t.a.createElement("a",{onClick:hr,title:"\u7ED9TA\u5956\u52B1\u91D1\u5E01"},t.a.createElement("i",{className:"iconfont icon-jiangli"})):null,$t?t.a.createElement("a",{onClick:pn,title:xn?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF\u8BC4\u8BBA"},t.a.createElement("i",{className:xn?"iconfont icon-yincangbiyan":"fa fa-eye"})):null,wn?t.a.createElement("a",{onClick:Dn,title:"\u5220\u9664"},t.a.createElement("i",{className:"iconfont icon-shanchu"})):null)),t.a.createElement(Ot.a,{className:"discuss-content",value:ln}))}var xs=function(lt){var qe=lt.data,Bt=lt.index,$t=lt.shixunIdentifier,cn=lt.adminOrOperator,Kt=lt.identity,_n=lt.onTopOrDownDiscuss,rn=lt.onPlusDiscuss,jt=lt.onSetActionType,An=lt.onSetRewardData,qt=lt.user,En=lt.isDelete,kn=lt.activeDiscussIndex,Yt=lt.onReplyDiscuss,wn=lt.onSetActiveDiscussIndex,ln=qe.content,xn=qe.children,an=qe.game_url,Vt=qe.hidden,Sn=qe.id,hr=qe.position,pn=qe.praise_count,Dn=qe.reward,Nn=qe.sticky,Gn=qe.time,yn=qe.user_praise,Kn=qe.game_passed,or=qe.delete_comment_alert,gr=qe.author,Ur=qe.shixun_name,er=qe.manage;function rr(){wn(Sn)}function Lr(){_n(Sn,!Nn,Bt)}function Er(){rn(Sn,!yn,Bt)}function _r(){An({id:Sn,index:Bt,user_id:gr.user_id})}function sa(){if(or){m.a.info({title:"\u63D0\u793A",content:t.a.createElement("div",{className:"tc"}," ","\u8BE5\u6761\u8BC4\u8BBA\u6765\u81EA\u300A",Ur,"\u300B\u5B9E\u8DF5\u9879\u76EE\uFF0C\u60A8\u4E0D\u662F\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u7BA1\u7406\u8005\uFF0C\u4E0D\u80FD\u5220\u9664\u8BC4\u8BBA\uFF01"),onOk:function(){}});return}jt({id:Sn,index:Bt,type:"delete-discuss",message:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417"})}function ta(){jt({id:Sn,index:Bt,params:{hidden:Vt?"0":"1",container_identifier:$t},type:"hidden-discuss",message:Vt?"\u786E\u5B9A\u8981\u53D6\u6D88\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417":"\u786E\u5B9A\u8981\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417"})}var tr=function(ja){var ia=ja.target,Yn=ia.nodeName,vn=ia.src;Yn==="IMG"&&(Ka.a.publish("preview-image",vn),console.log("src:",vn))};return t.a.createElement("div",{className:"discuss-item-container",key:Sn},t.a.createElement("a",{href:"/users/".concat(gr.login),target:"_blank"},t.a.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",height:"50",src:"".concat(ut.a.IMG_SERVER,"/images/").concat(gr.image_url),width:"50"})),t.a.createElement("section",null,t.a.createElement("div",{className:"discuss-info"},t.a.createElement("a",{href:"/users/".concat(gr.login),target:"_blank"},gr.name),t.a.createElement("span",{className:"grey"},Gn),hr?t.a.createElement("span",{className:"c-green"}," [\u7B2C",hr,"\u5173] "):null,an?t.a.createElement("a",{href:an,target:"_blank",className:"view-code",title:"\u70B9\u51FB\u67E5\u770BTA\u7684\u4EE3\u7801\u9875\u9762"},"\u67E5\u770B"):null,Dn?t.a.createElement("a",{className:"c-orange gift",title:"\u5DF2\u5956\u52B1\u91D1\u5E01".concat(Dn)},t.a.createElement("i",{className:"iconfont icon-gift c-orange "}),t.a.createElement("span",null,Dn)):null,Kt<=5?t.a.createElement("span",{style:{flex:"1",textAlign:"right",color:Kn===1?"#29bd8b":""}},Kn||Kn===0?Kn===1?"\u5DF2\u901A\u5173":"\u672A\u901A\u5173":""):null),t.a.createElement("div",{onClick:tr},t.a.createElement(Ot.a,{className:"discuss-content",value:ln})),xn&&xn.length>0?t.a.createElement("div",{className:"reply-discuss-container",onClick:tr},xn.map(function(vr,ja){return t.a.createElement(Eo,{key:vr.id,data:vr,index:ja,deleteCommentAlert:or,shixunName:Ur,shixunIdentifier:$t,adminOrOperator:cn,user:qt,isDelete:En,onSetRewardData:An,onSetActionType:jt,parentDiscussIndex:Bt})})):null,t.a.createElement("div",{className:"btn-group"},cn?t.a.createElement("a",{onClick:_r,title:"\u7ED9TA\u5956\u52B1\u91D1\u5E01"},t.a.createElement("i",{className:"iconfont icon-jiangli"})):null,cn?t.a.createElement("a",{onClick:ta,title:Vt?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF\u8BC4\u8BBA"},t.a.createElement("i",{className:Vt?"iconfont icon-yincangbiyan":"fa fa-eye"})):null,er&&(!xn||xn.length==0)&&t.a.createElement("a",{onClick:sa,title:"\u5220\u9664"},t.a.createElement("i",{className:"iconfont icon-shanchu"})),t.a.createElement("a",{onClick:rr,title:"\u56DE\u590D"},t.a.createElement("i",{className:"iconfont icon-huifu1"})),t.a.createElement("a",{onClick:Er,className:yn?"c-orange":""},t.a.createElement("i",{className:yn?"iconfont icon-dianzan mr3":"iconfont icon-dianzan-xian mr3 "}),t.a.createElement("span",null,pn||""))),t.a.createElement(ei,{id:Sn,activeDiscussIndex:kn,onReplyDiscuss:Yt})))},Ts={showRewardDialog:!1,data:null,page:1,loading:!1,actionType:null,activeDiscussIndex:null};function Xs(lt,qe){switch(qe.type){case Ma.Q:return Object(I.a)(Object(I.a)({},lt),{},{loading:!0});case Ma.X:return Object(I.a)(Object(I.a)({},lt),{},{showRewardDialog:!0});case Ma.b:return Object(I.a)(Object(I.a)({},lt),{},{showRewardDialog:!1});case Ma.l:return Object(I.a)(Object(I.a)({},lt),qe.payload);case Ma.ab:return Object(I.a)(Object(I.a)({},lt),qe.payload);case Ma.x:return Object(I.a)(Object(I.a)({},lt),qe.payload);case Ma.z:return Object(I.a)(Object(I.a)({},lt),qe.payload);case Ma.H:return Object(I.a)(Object(I.a)({},lt),qe.payload);case Ma.a:return Object(I.a)(Object(I.a)({},lt),qe.payload);default:throw new Error}}var Ys=function(lt){var qe=lt.shixunIdentifier,Bt=lt.identity,$t=lt.activeIndex,cn=lt.user,Kt=lt.isShixunDetail,_n=Kt===void 0?!1:Kt,rn=lt.isDelete,jt=lt.getTypeNumber,An=Object(a.useReducer)(Xs,Ts),qt=Object(_.a)(An,2),En=qt[0],kn=qt[1],Yt=En.page,wn=En.loading,ln=En.data,xn=En.actionType,an=En.showRewardDialog,Vt=En.activeDiscussIndex,Sn=Object(a.useRef)(),hr=Object(a.useRef)(),pn=Object(h.i)();function Dn(Cr){return Nn.apply(this,arguments)}function Nn(){return Nn=Object(k.a)(p.a.mark(function Cr(Ir){var fr;return p.a.wrap(function(Ln){for(;;)switch(Ln.prev=Ln.next){case 0:if(!wn){Ln.next=2;break}return Ln.abrupt("return");case 2:return Ln.prev=2,kn({type:Ma.Q}),Ln.next=6,Object(R.A)(Object(I.a)(Object(I.a)({},pn),{},{page:Ir}));case 6:fr=Ln.sent,kn({type:Ma.l,payload:{activeDiscussIndex:null,page:Ir,data:fr,loading:!1}}),Ln.next=13;break;case 10:Ln.prev=10,Ln.t0=Ln.catch(2),console.log(Ln.t0);case 13:case"end":return Ln.stop()}},Cr,null,[[2,10]])})),Nn.apply(this,arguments)}function Gn(Cr){document.body.scrollIntoView(),Dn(Cr)}function yn(Cr,Ir,fr){return Kn.apply(this,arguments)}function Kn(){return Kn=Object(k.a)(p.a.mark(function Cr(Ir,fr,ar){var Ln;return p.a.wrap(function(gn){for(;;)switch(gn.prev=gn.next){case 0:return gn.prev=0,gn.next=3,Za(Ir,fr);case 3:Ln=gn.sent,vn[ar].user_praise=fr,vn[ar].praise_count=Ln.praise_count,kn({type:Ma.x,payload:{data:Object(I.a)(Object(I.a)({},ln),{},{comments:vn})}}),gn.next=12;break;case 9:gn.prev=9,gn.t0=gn.catch(0),console.log(gn.t0);case 12:case"end":return gn.stop()}},Cr,null,[[0,9]])})),Kn.apply(this,arguments)}function or(Cr,Ir,fr){return gr.apply(this,arguments)}function gr(){return gr=Object(k.a)(p.a.mark(function Cr(Ir,fr,ar){return p.a.wrap(function(Mn){for(;;)switch(Mn.prev=Mn.next){case 0:return Mn.prev=0,Mn.next=3,Po(Ir,fr);case 3:vn[ar].sticky=fr,kn({type:Ma.ab,payload:{data:Object(I.a)(Object(I.a)({},ln),{},{comments:vn})}}),Mn.next=10;break;case 7:Mn.prev=7,Mn.t0=Mn.catch(0),console.log(Mn.t0);case 10:case"end":return Mn.stop()}},Cr,null,[[0,7]])})),gr.apply(this,arguments)}function Ur(){kn({type:Ma.z,payload:{actionType:null}})}function er(){return rr.apply(this,arguments)}function rr(){return rr=Object(k.a)(p.a.mark(function Cr(){var Ir,fr,ar,Ln,Mn,gn,qn,na;return p.a.wrap(function(jr){for(;;)switch(jr.prev=jr.next){case 0:if(Ir=xn.id,fr=xn.params,ar=xn.type,Ln=xn.index,Mn=xn.parentDiscussIndex,!(ar==="hidden-discuss")){jr.next=6;break}return jr.next=4,ro(Ir,fr);case 4:Mn?vn[Mn].children[Ln].hidden=fr.hidden==1:vn[Ln].hidden=fr.hidden==1,kn({type:Ma.z,payload:{actionType:null,data:Object(I.a)(Object(I.a)({},ln),{},{comments:vn})}});case 6:if(!(ar==="delete-discuss")){jr.next=31;break}return jr.next=9,To(Ir);case 9:if(!(Mn||Mn===0)){jr.next=22;break}gn=vn[Mn].children,qn=gn.length-1;case 12:if(!(qn>=0)){jr.next=19;break}if(!(gn[qn].id===Ir)){jr.next=16;break}return gn.splice(qn,1),jr.abrupt("break",19);case 16:qn--,jr.next=12;break;case 19:vn[Mn].children=gn,jr.next=30;break;case 22:na=vn.length-1;case 23:if(!(na>=0)){jr.next=30;break}if(!(vn[na].id===Ir)){jr.next=27;break}return vn.splice(na,1),jr.abrupt("break",30);case 27:na--,jr.next=23;break;case 30:kn({type:Ma.z,payload:{actionType:null,data:Object(I.a)(Object(I.a)({},ln),{},{comments:vn})}});case 31:case"end":return jr.stop()}},Cr)})),rr.apply(this,arguments)}function Lr(Cr){kn({type:Ma.z,payload:{actionType:Cr}})}function Er(){kn({type:Ma.b})}function _r(){return sa.apply(this,arguments)}function sa(){return sa=Object(k.a)(p.a.mark(function Cr(){var Ir,fr,ar,Ln,Mn,gn,qn;return p.a.wrap(function(cr){for(;;)switch(cr.prev=cr.next){case 0:return Ir=Sn.current,fr=Ir.id,ar=Ir.index,Ln=Ir.score,Mn=Ir.user_id,gn=Ir.parentDiscussIndex,cr.next=3,so(fr,{container_type:"Discusses",score:Ln,user_id:Mn});case 3:qn=cr.sent,gn?vn[gn].children[ar].reward=qn.code:vn[ar].reward=qn.code,kn({type:Ma.H,payload:{showRewardDialog:!1,data:Object(I.a)(Object(I.a)({},ln),{},{comments:vn})}}),Sn.current=null;case 7:case"end":return cr.stop()}},Cr)})),sa.apply(this,arguments)}function ta(Cr){Sn.current=Cr,kn({type:Ma.X})}function tr(Cr){Sn.current.score=Cr}function vr(Cr,Ir){return ja.apply(this,arguments)}function ja(){return ja=Object(k.a)(p.a.mark(function Cr(Ir,fr){return p.a.wrap(function(Ln){for(;;)switch(Ln.prev=Ln.next){case 0:return Ln.prev=0,Ln.next=3,Vs(Ir,fr);case 3:Dn(Yt),Ln.next=9;break;case 6:Ln.prev=6,Ln.t0=Ln.catch(0),console.log(Ln.t0);case 9:case"end":return Ln.stop()}},Cr,null,[[0,6]])})),ja.apply(this,arguments)}function ia(Cr){Vt===Cr?kn({type:Ma.a,payload:{activeDiscussIndex:null}}):kn({type:Ma.a,payload:{activeDiscussIndex:Cr}})}if(Object(a.useEffect)(function(){function Cr(){return Ir.apply(this,arguments)}function Ir(){return Ir=Object(k.a)(p.a.mark(function fr(){return p.a.wrap(function(Ln){for(;;)switch(Ln.prev=Ln.next){case 0:if(!($t===3&&!ln&&qe)){Ln.next=3;break}return Ln.next=3,Dn(Yt);case 3:case"end":return Ln.stop()}},fr)})),Ir.apply(this,arguments)}Cr()},[pn.pathId]),!ln)return t.a.createElement(K.a,{spinning:!0},t.a.createElement("div",{style:{height:"300px",width:"100%"}}));var Yn=ln.disscuss_count,vn=ln.comments,yr=ln.all,oi=ln.can_hidden;return t.a.createElement(a.Fragment,null,t.a.createElement("div",{className:"discuss-container",ref:hr},Yn===0?t.a.createElement(ur.a,null):null,Object(F.p)()&&t.a.createElement(Ni,{getTypeNumber:jt,upDataList:Dn,page:Yt,user:cn}),t.a.createElement("aside",{className:"bg-white"},vn==null?void 0:vn.map(function(Cr,Ir){return t.a.createElement(xs,{user:cn,key:Cr.id,data:Cr,index:Ir,identity:Bt,onPaginationChange:Gn,shixunIdentifier:qe,isDelete:rn,onSetActionType:Lr,onTopOrDownDiscuss:or,adminOrOperator:oi,onPlusDiscuss:yn,onSetRewardData:ta,activeDiscussIndex:Vt,onSetActiveDiscussIndex:ia,onReplyDiscuss:vr})})),Yn>10?t.a.createElement("div",{className:"pagination-container tc"},t.a.createElement(Jr.a,{showQuickJumper:!0,showSizeChanger:!1,onChange:Gn,current:Yt,total:Yn})):null),t.a.createElement(Vr.a,null,t.a.createElement(m.a,{centered:!0,title:"\u63D0\u793A",visible:!!xn,onOk:er,onCancel:Ur},t.a.createElement("p",null,xn?xn.message:"")),t.a.createElement(m.a,{centered:!0,width:400,title:"\u5956\u52B1\u8BBE\u7F6E",visible:an,onCancel:Er,onOk:_r},t.a.createElement(ho.a,{placeholder:"\u8BF7\u8F93\u5165\u5956\u52B1\u7684\u91D1\u5E01\u6570\u91CF",min:1,onChange:tr,style:{width:"228px"}}))))},il=v("jZGp"),ml=v("LvDl"),Js=v("G2fZ"),Ps=v.n(Js),gl=Ne.a.Search,Us=function(qe){var Bt,$t,cn=qe.shixunsDetail,Kt=qe.globalSetting,_n=qe.loading,rn=qe.dispatch,jt=Object(O.a)(qe,["shixunsDetail","globalSetting","loading","dispatch"]),An=Object(h.i)(),qt=Object(a.useState)(0),En=Object(_.a)(qt,2),kn=En[0],Yt=En[1],wn=Object(a.useState)([]),ln=Object(_.a)(wn,2),xn=ln[0],an=ln[1],Vt=Object(a.useState)(""),Sn=Object(_.a)(Vt,2),hr=Sn[0],pn=Sn[1],Dn=Object(a.useState)(),Nn=Object(_.a)(Dn,2),Gn=Nn[0],yn=Nn[1],Kn=Object(a.useState)(!1),or=Object(_.a)(Kn,2),gr=or[0],Ur=or[1],er=Object(a.useState)(!1),rr=Object(_.a)(er,2),Lr=rr[0],Er=rr[1],_r=Object(a.useState)({page:1,limit:10,type:"video"}),sa=Object(_.a)(_r,2),ta=sa[0],tr=sa[1];Object(a.useEffect)(function(){cn.actionTabs.key==="Stage-SendModal"&&(tr(ta),vr(ta))},[cn.actionTabs.key]);var vr=function(){var Ln=Object(k.a)(p.a.mark(function Mn(gn){var qn;return p.a.wrap(function(cr){for(;;)switch(cr.prev=cr.next){case 0:return cr.next=2,rn({type:"shixunsDetail/searchUserCourses",payload:gn});case 2:qn=cr.sent,qn.status===401?(rn({type:"shixunsDetail/setActionTabs",payload:{}}),Er(!1)):(Er(!0),Yt((qn==null?void 0:qn.courses_count)||0),an((qn==null?void 0:qn.course_list)||[]));case 4:case"end":return cr.stop()}},Mn)}));return function(gn){return Ln.apply(this,arguments)}}(),ja=function(Mn){var gn=Object(I.a)(Object(I.a)({},ta),{page:Mn,limit:10,search:encodeURI(hr)});tr(gn),vr(gn)},ia=Object(Me.b)(),Yn=Object(_.a)(ia,4),vn=Yn[0],yr=Yn[1],oi=Yn[2],Cr=Yn[3],Ir=function(){var Ln=Object(k.a)(p.a.mark(function Mn(){var gn,qn,na;return p.a.wrap(function(jr){for(;;)switch(jr.prev=jr.next){case 0:if(Gn){jr.next=3;break}return Ur(!0),jr.abrupt("return");case 3:return qn=(gn=cn.actionTabs.params)===null||gn===void 0?void 0:gn.id,Er(!1),jr.next=7,Cr({id:An==null?void 0:An.pathId,course_id:Gn,type:"subject",stage_item_id:qn,sync_catelog:0});case 7:if(na=jr.sent,na){jr.next=11;break}return jr.next=11,fr(0);case 11:case"end":return jr.stop()}},Mn)}));return function(){return Ln.apply(this,arguments)}}(),fr=function(){var Ln=Object(k.a)(p.a.mark(function Mn(gn){var qn,na,cr,jr,Pa,da,ba,ha;return p.a.wrap(function(Da){for(;;)switch(Da.prev=Da.next){case 0:if(jr=(qn=cn.actionTabs.params)===null||qn===void 0?void 0:qn.id,!((na=cn.actionTabs.params)!==null&&na!==void 0&&na.is_jupyter)){Da.next=8;break}return ba=(da=cn.actionTabs.params)===null||da===void 0?void 0:da.identifier,Da.next=5,Object(Ut.a)("/api/shixuns/".concat(ba,"/send_to_course.json"),{method:"Post",body:{course_id:Gn,identifier:ba,type:"normal",is_copy:gn}});case 5:Pa=Da.sent,Da.next=11;break;case 8:return Da.next=10,Object(R.P)({id:An==null?void 0:An.pathId,course_id:Gn,stage_shixuns:[{stage_shixun_id:jr,is_copy:gn,is_use:1}],sync_catelog:0,type:((ha=cn.actionTabs.params)===null||ha===void 0?void 0:ha.title)==="\u5B9E\u8BAD"?"shixun":"video"});case 10:Pa=Da.sent;case 11:ar(),yr(),((cr=Pa)===null||cr===void 0?void 0:cr.status)===1&&m.a.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:t.a.createElement("div",{className:"tc"},Pa.message),onOk:function(){var Qr,Wa,Ea;if((Qr=cn.actionTabs.params)!==null&&Qr!==void 0&&Qr.is_jupyter){var za;Object(pe.S)((za=Pa)===null||za===void 0?void 0:za.first_category_url);return}var hi=(Wa=Pa)===null||Wa===void 0||((Ea=Wa.url.split("/"))===null||Ea===void 0)?void 0:Ea[2];Object(pe.S)("/classrooms/".concat(hi,"/shixun_homework"))}});case 14:case"end":return Da.stop()}},Mn)}));return function(gn){return Ln.apply(this,arguments)}}(),ar=function(){pn(""),yn(null),Ur(!1),rn({type:"shixunsDetail/setActionTabs",payload:{}}),Er(!1)};return t.a.createElement(t.a.Fragment,null,t.a.createElement(m.a,{centered:!0,keyboard:!1,closable:!1,title:"\u53D1\u9001".concat(((Bt=cn.actionTabs.params)===null||Bt===void 0?void 0:Bt.title)||"\u5B9E\u8BAD"),visible:Lr,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:Ir,onCancel:ar},t.a.createElement("div",{className:Ps.a.wrap},t.a.createElement("div",{className:Ps.a.title},"\u9009\u62E9\u7684","\u53D1\u9001".concat((($t=cn.actionTabs.params)===null||$t===void 0?void 0:$t.title)||"\u5B9E\u8BAD"),"\u5C06\u4F1A\u53D1\u9001\u5230\u6307\u5B9A\u8BFE\u5802"),t.a.createElement("div",{className:"mb10"},t.a.createElement(gl,{placeholder:"\u8F93\u5165\u8BFE\u5802\u540D\u79F0\u7684\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",value:hr,onChange:function(Mn){return pn(Mn.target.value)},onSearch:function(Mn){pn(Mn);var gn=Object(I.a)(Object(I.a)({},ta),{page:1,limit:10,search:encodeURI(Mn)});tr(gn),vr(gn)}})),t.a.createElement("div",{className:Ps.a.radioWrap},t.a.createElement(g.a.Group,{value:Gn,onChange:function(Mn){yn(Mn.target.value),Ur(!1)}},xn.map(function(Ln,Mn){return t.a.createElement(g.a,{className:Ps.a.radio,value:Ln.course_id,key:Mn},Ln.name)}))),gr&&t.a.createElement("div",{className:Ps.a.colorFF0000},"\u8BF7\u9009\u62E9\u4F60\u8981\u53D1\u9001\u7684\u8BFE\u5802"),kn>10&&t.a.createElement("div",{className:Ps.a.pagination},t.a.createElement(Jr.a,{size:"small",className:"mb20",showQuickJumper:!0,showSizeChanger:!1,defaultCurrent:1,current:ta==null?void 0:ta.page,pageSize:10,total:kn,onChange:ja})))),t.a.createElement(Me.a,{visible:vn,inPaper:!1,onOk:fr,onCancel:function(){ar(),yr()},renderData:oi,modalType:"single",type:"subject"}))},Ns=Object(s.a)(function(lt){var qe=lt.shixunsDetail,Bt=lt.loading,$t=lt.globalSetting;return{shixunsDetail:qe,globalSetting:$t,loading:Bt.models.index}})(Us),gi=["application/pdf","application/msword","application/vnd.ms-excel","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/ZIP"],Hs=function(qe){var Bt,$t,cn,Kt,_n,rn=qe.pathsDetail,jt=qe.user,An=qe.globalSetting,qt=qe.loading,En=qe.dispatch,kn=Object(O.a)(qe,["pathsDetail","user","globalSetting","loading","dispatch"]),Yt=Object(h.i)(),wn=rn.stageData,ln=Object(a.useState)([]),xn=Object(_.a)(ln,2),an=xn[0],Vt=xn[1],Sn=Object(a.useState)(-1),hr=Object(_.a)(Sn,2),pn=hr[0],Dn=hr[1],Nn=Object(a.useState)(!1),Gn=Object(_.a)(Nn,2),yn=Gn[0],Kn=Gn[1],or=Object(a.useState)(!1),gr=Object(_.a)(or,2),Ur=gr[0],er=gr[1],rr=Object(a.useState)(!1),Lr=Object(_.a)(rr,2),Er=Lr[0],_r=Lr[1],sa=Object(a.useState)({name:"",is_jupyter:!1}),ta=Object(_.a)(sa,2),tr=ta[0],vr=ta[1],ja=ht.a.useForm(),ia=Object(_.a)(ja,1),Yn=ia[0],vn=ht.a.useForm(),yr=Object(_.a)(vn,1),oi=yr[0],Cr=ht.a.useForm(),Ir=Object(_.a)(Cr,1),fr=Ir[0],ar=ht.a.useForm(),Ln=Object(_.a)(ar,1),Mn=Ln[0],gn=Object(a.useState)(!1),qn=Object(_.a)(gn,2),na=qn[0],cr=qn[1],jr=Object(a.useState)([]),Pa=Object(_.a)(jr,2),da=Pa[0],ba=Pa[1],ha=Object(a.useState)(!1),Ta=Object(_.a)(ha,2),Da=Ta[0],Ua=Ta[1],Qr=Object(a.useState)("All"),Wa=Object(_.a)(Qr,2),Ea=Wa[0],za=Wa[1],hi=Object(a.useState)(!1),Ji=Object(_.a)(hi,2),Li=Ji[0],Ci=Ji[1],Uo=Object(a.useState)(0),Ao=Object(_.a)(Uo,2),_o=Ao[0],as=Ao[1],fs=Object(a.useState)([{name:"\u5168\u90E8",type:"All",number:0},{name:"\u5B9E\u8DF5\u9879\u76EE",type:"Shixun",number:0},{name:"\u89C6\u9891\u9879\u76EE",type:"VideoItem",number:0},{name:"\u6559\u5B66\u8BFE\u4EF6",type:"Attachment",number:0},{name:"\u8BA8\u8BBA",type:"Discusses",number:0}]),is=Object(_.a)(fs,2),os=is[0],So=is[1],ps=Object(a.useState)(),Qi=Object(_.a)(ps,2),Aa=Qi[0],wi=Qi[1],vi=Object(a.useState)([]),vo=Object(_.a)(vi,2),uo=vo[0],Ki=vo[1],ss=function(Wt){if(Wt.key=="Enter"){var on=fr.getFieldValue("tag");if(fr.setFieldsValue({tag:""}),!on){U.b.info("\u6807\u7B7E\u4E0D\u80FD\u4E3A\u7A7A");return}if(uo.filter(function(Tn){return Tn===on}).length>0){U.b.info("\u5DF2\u6709\u76F8\u540C\u540D\u79F0\u6807\u7B7E");return}uo.push(on),Ki(Object(d.a)(uo))}},ls=function(Wt,on){Wt.preventDefault(),Ki(Object(d.a)(uo.filter(function(Tn){return Tn!=on})))},qo=((Bt=rn.detail)===null||Bt===void 0?void 0:Bt.is_free)||(($t=rn.detail)===null||$t===void 0?void 0:$t.can_learning),fo=function(){var Wt=rn.detail,on=Wt.shixuns_count,Tn=on===void 0?0:on,Hn=Wt.videos_count,jn=Hn===void 0?0:Hn,pr=Wt.attachment_count,dr=pr===void 0?0:pr,Bn=Wt.disscuss_count,Yr=Bn===void 0?0:Bn,Ri={All:Tn+jn+dr,Shixun:Tn,VideoItem:jn,Attachment:dr,Discusses:Yr},ir=os.map(function(si){return Object(I.a)(Object(I.a)({},si),{},{number:Ri[si.type]})});So(ir)};Object(a.useEffect)(function(){fo()},[rn.detail]),Object(a.useEffect)(function(){fo(),Vt(Object(d.a)(wn))},[wn]);var zo=function(){var nr=Object(k.a)(p.a.mark(function Wt(on,Tn){var Hn;return p.a.wrap(function(pr){for(;;)switch(pr.prev=pr.next){case 0:if(En({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF0C\u8BF7\u7A0D\u540E..."}}),!Tn){pr.next=7;break}return pr.next=4,Object(qr.D)({id:on});case 4:pr.t0=pr.sent,pr.next=10;break;case 7:return pr.next=9,Object(qr.E)({id:on});case 9:pr.t0=pr.sent;case 10:if(Hn=pr.t0,En({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),!(Hn!=null&&Hn.game_identifier||Hn!=null&&Hn.identifier)){pr.next=15;break}return Object(pe.S)(Tn?"/tasks/".concat(Hn==null?void 0:Hn.identifier,"/jupyter"):"/tasks/".concat(Hn.game_identifier)),pr.abrupt("return");case 15:(Hn==null?void 0:Hn.status)===-3?Object(pe.q)():(Hn==null?void 0:Hn.status)===2?yo(Hn==null?void 0:Hn.message):(Hn==null?void 0:Hn.status)===3&&es(Hn==null?void 0:Hn.message);case 16:case"end":return pr.stop()}},Wt)}));return function(on,Tn){return nr.apply(this,arguments)}}(),yo=function nr(Wt){var on;Wt=(on=Wt)!==null&&on!==void 0&&on.includes(".json")?Wt:"".concat(Wt,".json"),m.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:t.a.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:function(){var Tn=Object(k.a)(p.a.mark(function jn(){var pr,dr;return p.a.wrap(function(Yr){for(;;)switch(Yr.prev=Yr.next){case 0:return Yr.next=2,Object(Rr.T)({url:Wt});case 2:if(pr=Yr.sent,pr){Yr.next=5;break}return Yr.abrupt("return");case 5:return U.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),Yr.next=8,Object(qr.E)({id:pr.shixun_identifier});case 8:if(dr=Yr.sent,!(dr!=null&&dr.game_identifier)){Yr.next=12;break}return Object(pe.S)("/tasks/".concat(dr.game_identifier)),Yr.abrupt("return");case 12:(dr==null?void 0:dr.status)===2?nr(dr==null?void 0:dr.message):(dr==null?void 0:dr.status)===3&&es(dr==null?void 0:dr.message);case 13:case"end":return Yr.stop()}},jn)}));function Hn(){return Tn.apply(this,arguments)}return Hn}()})},es=function(Wt){m.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:t.a.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",Wt,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},Go=function(){if(!Fo())return;cr(!0)};Object(a.useEffect)(function(){if(na){var nr={shixuns_list:[],attachments_list:[],items:[]};la(an.length,nr),Vt([].concat(Object(d.a)(an),[nr]))}},[na]);var Oa=function(){setTimeout(function(){pn===an.length-1&&na&&(ms(),Vt(an.filter(function(Wt,on){return on!==an.length-1}))),Wi(),Dn(-1)},300)},la=function(Wt,on){if(!Fo())return;Dn(Wt),Yn.setFieldsValue({name:on.stage_name,description:on.stage_description,tagName:on.tag&&on.tag.name||""})},xi=function(Wt){if(setTimeout(function(){document.documentElement.scrollTop=_o},300),Wt==="\u53D6\u6D88")return;an[pn].items=an[pn].items.concat(Wt),Vt(Object(d.a)(an))},Zi=function(){var nr=Object(k.a)(p.a.mark(function Wt(on){var Tn;return p.a.wrap(function(jn){for(;;)switch(jn.prev=jn.next){case 0:return jn.next=2,Object(R.Q)(Object(I.a)({},on));case 2:return Tn=jn.sent,an[pn].items=on.list,jn.abrupt("return",Tn);case 5:case"end":return jn.stop()}},Wt)}));return function(on){return nr.apply(this,arguments)}}(),Oo=function(Wt){an[pn].items=an[pn].items.concat(Object(I.a)(Object(I.a)({},Wt),{},{children:[]})),Vt(Object(d.a)(an))},co=function(Wt){an[pn].items=an[pn].items.concat(Wt),Vt(Object(d.a)(an))},No=function(){var nr=Object(k.a)(p.a.mark(function Wt(on){var Tn,Hn,jn,pr,dr;return p.a.wrap(function(Yr){for(;;)switch(Yr.prev=Yr.next){case 0:if(Aa){Yr.next=8;break}return Yr.next=3,Object(R.f)(Object(I.a)({id:an[pn].stage_id,subject_id:Yt.pathId},on));case 3:return Tn=Yr.sent,Tn.id&&(Ua(!1),Hn=[Object(I.a)({},Tn)],an[pn].items=an[pn].items.concat(Hn),Vt(Object(d.a)(an))),Yr.abrupt("return",Tn);case 8:return Yr.next=10,Object(R.S)(Object(I.a)(Object(I.a)({id:Aa==null?void 0:Aa.id,subject_id:Yt.pathId},on),{},{video_id:(on==null?void 0:on.video_id)||(Aa==null||((jn=Aa.video_item)===null||jn===void 0)?void 0:jn.video_id),link:(on==null?void 0:on.link)||(Aa==null||((pr=Aa.video_item)===null||pr===void 0)?void 0:pr.link)}));case 10:return dr=Yr.sent,dr&&(U.b.success("\u4FEE\u6539\u6210\u529F"),Ua(!1),Wi()),Yr.abrupt("return",dr);case 13:case"end":return Yr.stop()}},Wt)}));return function(on){return nr.apply(this,arguments)}}(),Wi=function(){En({type:"pathsDetail/getStageData",payload:{subject_id:Yt.pathId}}),En({type:"pathsDetail/getPathsDetail",payload:{id:Yt.pathId}}),En({type:"pathsDetail/getRightData",payload:{id:Yt.pathId}}),ms()},Ai=function(){var nr=Object(k.a)(p.a.mark(function Wt(on,Tn){var Hn,jn,pr,dr,Bn,Yr,Ri,ir,si,ao,zi;return p.a.wrap(function(Qa){for(;;)switch(Qa.prev=Qa.next){case 0:if(!(!(on!=null&&on.name)||(on==null?void 0:on.name.replace(/(^\s*)|(\s*$)/g,""))==="")){Qa.next=2;break}return Qa.abrupt("return",U.b.info("\u8BF7\u5148\u8F93\u5165\u7AE0\u8282\u540D\u79F0\uFF01"));case 2:if(ms(),pr=[],(Hn=an[pn].shixuns_list)===null||Hn===void 0||Hn.map(function(Gi){pr.push({type:Gi.item_type,id:Gi.id})}),(jn=an[pn].attachments_list)===null||jn===void 0||jn.map(function(Gi){pr.push({type:"Attachment",id:Gi.id})}),dr=on.tagName,Bn=Object(O.a)(on,["tagName"]),!na){Qa.next=16;break}return Yr=Object(I.a)(Object(I.a)({},Bn),{},{pathId:Yt.pathId,list:pr}),dr&&(Yr=Object(I.a)(Object(I.a)({},Yr),{},{stage_tag_attributes:{name:dr}})),Qa.next=12,Object(R.d)(Object(I.a)({},Yr));case 12:Ri=Qa.sent,Ri!=null&&Ri.subject_id&&(an[pn]=Object(I.a)(Object(I.a)(Object(I.a)({},an[pn]),Ri),{},{stage_name:Yr.name,stage_description:Yr.description,tag:Yr.stage_tag_attributes}),Vt(Object(d.a)(an))),Qa.next=24;break;case 16:return ir=Array.from(new Set(pr.map(function(Gi){return Gi.type}))),si=Object(I.a)(Object(I.a)({},Bn),{},{id:an[pn].stage_id,type:Array.from(new Set(pr.map(function(Gi){return Gi.type}))),list:pr}),ao=an[pn].tag&&an[pn].tag.id||"",si=Object(I.a)(Object(I.a)({},si),{},{stage_tag_attributes:ao?{id:ao,name:dr}:{name:dr}}),Qa.next=22,Object(R.U)(Object(I.a)({},si));case 22:zi=Qa.sent,zi!=null&&zi.subject_id&&(an[pn]=Object(I.a)(Object(I.a)(Object(I.a)({},an[pn]),zi),{},{stage_name:si.name,stage_description:si.description,tag:si.stage_tag_attributes}),Vt(Object(d.a)(an)));case 24:return cr(!1),Qa.abrupt("return");case 26:case"end":return Qa.stop()}},Wt)}));return function(on,Tn){return nr.apply(this,arguments)}}(),Vo=function(Wt,on,Tn){var Hn=Array.from(Wt),jn=Hn.splice(on,1),pr=Object(_.a)(jn,1),dr=pr[0];return Hn.splice(Tn,0,dr),Hn},Pn=function(Wt,on){m.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u5B9A\u5220\u9664\u8BE5\u5B9E\u8BAD\u5417\uFF1F",onOk:function(){an[pn][on||"shixuns_list"].splice(Wt,1),U.b.success("\u5220\u9664\u6210\u529F"),Vt(Object(d.a)(an)),Ai(Yn.getFieldsValue(),on)}})},ts=function(Wt){m.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u672C\u64CD\u4F5C\u5C06\u5220\u9664\u5F53\u524D\u76EE\u5F55\u53CA\u4E0B\u5C5E\u5B50\u76EE\u5F55\u5B9A\u5168\u90E8\u5185\u5BB9\uFF0C\u786E\u8BA4\u8981\u5220\u9664\u5417\uFF1F",onOk:function(){var on=Object(k.a)(p.a.mark(function Hn(){var jn;return p.a.wrap(function(dr){for(;;)switch(dr.prev=dr.next){case 0:return dr.next=2,Object(R.s)(Wt);case 2:jn=dr.sent,jn.status===0&&(U.b.success("\u5220\u9664\u6210\u529F"),Wi());case 4:case"end":return dr.stop()}},Hn)}));function Tn(){return on.apply(this,arguments)}return Tn}()})},lo=function(){var nr=Object(k.a)(p.a.mark(function Wt(on){var Tn,Hn,jn,pr,dr,Bn;return p.a.wrap(function(Ri){for(;;)switch(Ri.prev=Ri.next){case 0:if(console.log(on),!((on==null?void 0:on.item_type)==="VideoItem")){Ri.next=9;break}return Ri.next=4,Object(hs.g)({id:on==null?void 0:on.stage_item_id});case 4:Tn=Ri.sent,wi(Tn),(on==null?void 0:on.item_type)==="VideoItem"?Ua(!0):(Ki((Tn==null||((Hn=Tn.tags)===null||Hn===void 0)?void 0:Hn.map(function(ir){return ir==null?void 0:ir.name}))||[]),fr.setFieldsValue({files:[{uid:Tn==null||((jn=Tn.attachment)===null||jn===void 0)?void 0:jn.id,name:Tn==null?void 0:Tn.name,response:{id:Tn==null||((pr=Tn.attachment)===null||pr===void 0)?void 0:pr.id}}]}),er(!0)),Ri.next=10;break;case 9:(on==null?void 0:on.item_type)==="Attachment"?m.a.confirm({title:"\u4FEE\u6539\u8BFE\u4EF6\u540D\u79F0",icon:null,centered:!0,okText:"\u786E\u8BA4\u4FEE\u6539",cancelText:"\u53D6\u6D88",content:t.a.createElement(Ne.a,{value:dr,onChange:function(si){dr=si.target.value},placeholder:"\u8BF7\u8F93\u5165\u8BFE\u4EF6\u540D\u79F0"}),onOk:function(){var ir=Object(k.a)(p.a.mark(function ao(){var zi,Wn,Qa;return p.a.wrap(function(li){for(;;)switch(li.prev=li.next){case 0:if(dr){li.next=3;break}return U.b.info("\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"),li.abrupt("return",Promise.reject());case 3:return li.next=5,Object(Ut.a)("/api/attachments/".concat(on==null?void 0:on.id,".json"),{method:"put",body:{name:dr+(on==null||((zi=on.name)===null||zi===void 0)?void 0:zi.substr(on==null||((Wn=on.name)===null||Wn===void 0)?void 0:Wn.lastIndexOf(".")))}});case 5:Qa=li.sent,dr="",Wi();case 8:case"end":return li.stop()}},ao)}));function si(){return ir.apply(this,arguments)}return si}()}):m.a.confirm({title:"\u4FEE\u6539\u5C0F\u8282\u540D\u79F0",icon:null,centered:!0,okText:"\u786E\u8BA4\u4FEE\u6539",cancelText:"\u53D6\u6D88",content:t.a.createElement(Ne.a,{value:Bn,maxLength:40,onChange:function(si){Bn=si.target.value},placeholder:"\u8BF7\u8F93\u5165\u5C0F\u8282\u540D\u79F0"}),onOk:function(){var ir=Object(k.a)(p.a.mark(function ao(){var zi;return p.a.wrap(function(Qa){for(;;)switch(Qa.prev=Qa.next){case 0:if(Bn.replaceAll(" ","")){Qa.next=3;break}return U.b.info("\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"),Qa.abrupt("return",Promise.reject());case 3:return Qa.next=5,Object(Ut.a)("/api/stages/".concat(on==null?void 0:on.stage_id,"/update_item_name.json"),{method:"put",body:{name:Bn,item_id:on==null?void 0:on.id}});case 5:zi=Qa.sent,Bn="",Wi();case 8:case"end":return Qa.stop()}},ao)}));function si(){return ir.apply(this,arguments)}return si}()});case 10:case"end":return Ri.stop()}},Wt)}));return function(on){return nr.apply(this,arguments)}}(),Ha=function(Wt){m.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u5B9A\u5220\u9664\u8BE5\u7AE0\u8282\u5417\uFF1F",onOk:function(){var on=Object(k.a)(p.a.mark(function Hn(){var jn;return p.a.wrap(function(dr){for(;;)switch(dr.prev=dr.next){case 0:return dr.next=2,Object(R.r)({id:Wt});case 2:jn=dr.sent,jn.status===1&&(Dn(-1),U.b.success("\u5220\u9664\u6210\u529F"),Wi());case 4:case"end":return dr.stop()}},Hn)}));function Tn(){return on.apply(this,arguments)}return Tn}()})},Fi=function(){vr({name:"",is_jupyter:!1}),oi.setFieldsValue({name:"",is_jupyter:!1}),Ci(!1),Kn(!1)},Ti=function(Wt,on){var Tn;if(!Wt.destination)return;var Hn=Vo((Tn=an[pn])===null||Tn===void 0?void 0:Tn[on||"shixuns_list"],Wt.source.index,Wt.destination.index);an[pn][on||"shixuns_list"]=Hn,Vt(Object(d.a)(an)),Ai(Yn.getFieldsValue(),on)},Ro=function(){var nr=Object(k.a)(p.a.mark(function Wt(on){var Tn;return p.a.wrap(function(jn){for(;;)switch(jn.prev=jn.next){case 0:if(Fo()){jn.next=2;break}return jn.abrupt("return");case 2:return jn.next=4,Object(R.T)({id:on});case 4:Tn=jn.sent,Tn.status===1&&Wi();case 6:case"end":return jn.stop()}},Wt)}));return function(on){return nr.apply(this,arguments)}}(),Oi=function(){var nr=Object(k.a)(p.a.mark(function Wt(on){var Tn;return p.a.wrap(function(jn){for(;;)switch(jn.prev=jn.next){case 0:if(Fo()){jn.next=2;break}return jn.abrupt("return");case 2:return jn.next=4,Object(R.t)({id:on});case 4:Tn=jn.sent,Tn.status===1&&Wi();case 6:case"end":return jn.stop()}},Wt)}));return function(on){return nr.apply(this,arguments)}}(),Fo=function(){return pn!==-1?(m.a.info({icon:null,className:"custom-modal-divider ",okText:"\u77E5\u9053\u5566",title:"\u63D0\u793A",content:t.a.createElement("div",{className:"mt10 font14"},"\u5F53\u524D\u5355\u5143\u6709\u672A\u4FDD\u5B58\u7684\u4FEE\u6539\u8BB0\u5F55\uFF0C\u8BF7\u5148\u4FDD\u5B58\uFF01"),onOk:function(){var on="Edit_".concat(pn),Tn=document.getElementById(on);Tn&&setTimeout(function(){return Tn.scrollIntoView({block:"start",behavior:"smooth"})})}}),!1):!0},ns=function(){Ai(Yn.getFieldsValue())},ms=function(){cr(!1)},Xo=function(){var Wt,on,Tn,Hn,jn,pr;return((Wt=rn.detail)===null||Wt===void 0||((on=Wt.courses)===null||on===void 0)?void 0:on.length)>0?(Tn=rn.detail)===null||Tn===void 0?void 0:Tn.allow_visit:!(((Hn=jt.userInfo)===null||Hn===void 0?void 0:Hn.user_identity)==="\u5B66\u751F"&&(jn=rn.detail)!==null&&jn!==void 0&&jn.allow_visit&&(pr=rn.detail)!==null&&pr!==void 0&&pr.courses)},Ss=function(Wt,on,Tn){var Hn,jn,pr,dr,Bn,Yr,Ri,ir,si,ao,zi,Wn;return Ea!=="All"&&Wt.item_type!==Ea?null:t.a.createElement(Ae.a,{className:"list-item-row",align:"middle",key:on,gutter:[5,10]},t.a.createElement(ie.a,null,Wt.item_type==="Shixun"?t.a.createElement("i",{className:"iconfont icon-shixunti2 c-light-primary font20"}):t.a.createElement("i",{className:"iconfont icon-shipin2 c-purple-8C1 font20"})),t.a.createElement(ie.a,{flex:1,className:!Wt.allow_visit&&!Wt.to_be_built&&(Wt.shixun_status==="\u6682\u672A\u516C\u5F00"||Wt.shixun_status==="\u5DF2\u5220\u9664")?$r.a.color204:""},!!(rn!=null&&(Hn=rn.detail)!==null&&Hn!==void 0&&Hn.cust_seq)&&t.a.createElement("span",{className:"mr8"},Tn+1,"-",on+1),Wt.name,pn===-1&&Wt.complete_status===1&&t.a.createElement("span",{className:$r.a.completed},t.a.createElement("i",{className:"iconfont icon-duigou1 mr5 font12"}),"\u5DF2\u5B8C\u6210")),t.a.createElement(ie.a,null,pn===Tn&&t.a.createElement("div",null,t.a.createElement(l.a,{title:"\u5220\u9664"},t.a.createElement("span",{onClick:function(){Pn(on,"shixuns_list")},className:"iconfont icon-shanchu c-grey-c"}))),(((jn=jt.userInfo)===null||jn===void 0?void 0:jn.admin)||((pr=jt.userInfo)===null||pr===void 0?void 0:pr.business)||!(!((dr=rn.detail)!==null&&dr!==void 0&&dr.allow_statistics)&&((Bn=jt.userInfo)===null||Bn===void 0?void 0:Bn.user_identity)==="\u5B66\u751F"&&(Yr=rn.detail)!==null&&Yr!==void 0&&Yr.allow_visit&&(Ri=rn.detail)!==null&&Ri!==void 0&&Ri.courses))&&pn!==Tn&&Wt.item_type==="VideoItem"&&t.a.createElement("aside",null,t.a.createElement(u.a,{type:"primary",onClick:function(){var Gi,li;if(!((Gi=jt.userInfo)!==null&&Gi!==void 0&&Gi.admin)&&!((li=jt.userInfo)!==null&&li!==void 0&&li.business)&&!Wt.can_view)return m.a.info({centered:!0,width:400,okText:"\u77E5\u9053\u5566",icon:null,content:t.a.createElement("div",{className:"tc font14"},"\u5F53\u524D\u89C6\u9891\u4E3A\u521B\u5EFA\u8005\u6240\u5C5E\u5355\u4F4D\u5185\u90E8\u6559\u5B66\u8D44\u6599\uFF0C\u5916\u5355\u4F4D\u7528\u6237\u65E0\u89C2\u770B\u6743\u9650")});Wt.link&&Object(hs.n)({is_f:1,id:Wt.id,point:0,total:0}),Object(pe.S)(Wt.link||"/video/".concat(Wt.id,"?subject_id=").concat(Yt.pathId))}},Wt.last_point>0?"\u7EE7\u7EED\u5B66\u4E60":"\u5F00\u59CB\u5B66\u4E60")),(((ir=jt.userInfo)===null||ir===void 0?void 0:ir.admin)||(Wt.allow_visit||Wt.to_be_built||Wt.shixun_status!=="\u6682\u672A\u516C\u5F00"&&Wt.shixun_status!=="\u5DF2\u5220\u9664")&&!(!((si=rn.detail)!==null&&si!==void 0&&si.allow_statistics)&&((ao=jt.userInfo)===null||ao===void 0?void 0:ao.user_identity)==="\u5B66\u751F"&&(zi=rn.detail)!==null&&zi!==void 0&&zi.allow_visit&&(Wn=rn.detail)!==null&&Wn!==void 0&&Wn.courses))&&pn!==Tn&&Wt.item_type==="Shixun"&&t.a.createElement("aside",null,t.a.createElement(mn.a,{to:"/shixuns/".concat(Wt.identifier,"/challenges"),target:"_blank"},"\u67E5\u770B\u8BE6\u60C5"),Wt.shixun_status!=="\u6682\u672A\u516C\u5F00"&&t.a.createElement(u.a,{className:"ml20",type:"primary",onClick:function(){if(!Object(he.e)(En,!0))return;zo(Wt.identifier,Wt.is_jupyter||Wt.is_jupyter_lab)}},"\u5F00\u59CB\u5B9E\u6218")),pn===-1&&!Wt.allow_visit&&!Wt.to_be_built&&Wt.shixun_status==="\u6682\u672A\u516C\u5F00"&&t.a.createElement("span",{className:$r.a.color204},"\u6682\u672A\u516C\u5F00"),pn===-1&&!Wt.allow_visit&&!Wt.to_be_built&&Wt.shixun_status==="\u5DF2\u5220\u9664"&&t.a.createElement("span",{className:$r.a.color204},"\u5DF2\u5220\u9664"),pn===-1&&Wt.item_type==="Shixun"&&!!Wt.challenges_count&&t.a.createElement("span",{className:"exper\u02C6iment-number ml5 c-grey-999"},"\u5B9E\u9A8C\u6570 ",Wt.challenges_count)))},Fs=function(Wt){var on,Tn=[];if(Wt.items&&(on=Wt.items)!==null&&on!==void 0&&on.length){var Hn;(Hn=Wt.items)===null||Hn===void 0||Hn.forEach(function(pr){var dr;Tn.push(pr),pr.children&&(dr=pr.children)!==null&&dr!==void 0&&dr.length&&(Tn=Tn.concat(pr.children))})}var jn=!!Tn.find(function(pr){return Object(ml.isEqual)(pr.learning_status,["can","try"])});return jn?t.a.createElement("aside",{className:$r.a.learn},"\u514D\u8D39\u8BD5\u5B66"):null},On=function(Wt,on){var Tn,Hn,jn,pr,dr,Bn;if(Ea!=="All"&&!((Tn=Wt.stage_tag)!==null&&Tn!==void 0&&Tn.includes(Ea)))return null;var Yr=!1,Ri=!1,ir=!1,si=!1;if(Ea==="All"){var ao,zi,Wn,Qa;Yr=(((ao=jt.userInfo)===null||ao===void 0?void 0:ao.admin)||((zi=jt.userInfo)===null||zi===void 0?void 0:zi.business)||((Wn=rn.detail)===null||Wn===void 0?void 0:Wn.allow_statistics))&&pn===on&&!na,(Qa=rn.detail)!==null&&Qa!==void 0&&Qa.allow_add_member&&qo&&pn!==on&&(Ri=!0,on>0&&(ir=!0),on<an.length-1&&(si=!0))}var Gi=function(){var io=0,Yo=0,ko=0;if(Ri&&(ko+=25),ir&&(ko+=18),si&&(ko+=23.5),Yr&&(ko+=21),ko&&(ko+=5),Wt.tag){var jo=document.createElement("canvas").getContext("2d");jo.font="450 12px -apple-system, BlinkMacSystemFont, Segoe UI, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Helvetica Neue, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol",io=Math.ceil(jo.measureText(Wt.tag.name).width)+16}var gs=document.createElement("canvas").getContext("2d");return gs.font="normal normal 450 18px -apple-system, BlinkMacSystemFont, Segoe UI, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Helvetica Neue, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol",Yo=Math.ceil(gs.measureText(Wt.stage_name||"\u7B2C".concat(an==null?void 0:an.length,"\u90E8\u5206")).width),t.a.createElement("div",{className:$r.a.labelContainer,style:{width:745-ko}},t.a.createElement("div",{className:"".concat($r.a.text),style:{maxWidth:745-ko-io}},Wt.stage_name||"\u7B2C".concat(an==null?void 0:an.length,"\u90E8\u5206"),Fs(Wt)),Wt.tag&&Wt.tag.name&&t.a.createElement("span",{className:$r.a.tag},Wt.tag.name))};return t.a.createElement("section",{key:on,className:"bg-white mt20 pt30 pb20"},t.a.createElement("aside",{className:"pl20 pr20"},t.a.createElement(Ae.a,{gutter:[5,20],align:"middle"},t.a.createElement(ie.a,{flex:1,className:"tl font18 bold c-grey-333"},Gi()),Ea==="All"&&t.a.createElement(ie.a,null,Yr&&t.a.createElement(l.a,{title:"\u5220\u9664"},t.a.createElement("span",{onClick:function(){Ha(Wt.stage_id)},className:"iconfont icon-shanchu c-grey-c"})),((Hn=rn.detail)===null||Hn===void 0?void 0:Hn.allow_add_member)&&qo&&pn!==on&&t.a.createElement("div",null,ir&&t.a.createElement(l.a,{title:"\u5411\u4E0A\u79FB\u52A8"},t.a.createElement("span",{onClick:function(){return Ro(Wt.stage_id)},className:"iconfont icon-xiangshangyi c-light-green font18 current"})),si&&t.a.createElement(l.a,{title:"\u5411\u4E0B\u79FB\u52A8"},t.a.createElement("span",{onClick:function(){return Oi(Wt.stage_id)},className:"iconfont icon-xiangxiayi c-light-green font18 current ml5"})),t.a.createElement(l.a,{title:"\u7F16\u8F91"},t.a.createElement("span",{onClick:function(){return la(on,Wt)},className:"iconfont icon-bianjidaibeijing c-light-green font20 current ml5"}))))),!!Wt.stage_description&&t.a.createElement(Ae.a,{gutter:[5,20]},t.a.createElement(ie.a,{span:24},t.a.createElement(Ot.a,{value:Wt==null?void 0:Wt.stage_description})))),pn===on&&t.a.createElement("div",{className:"pl20 pr20"},t.a.createElement("aside",null,t.a.createElement(ht.a.Item,{name:"name",label:"\u540D\u79F0",rules:[{required:!0,message:"\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"},{whitespace:!0,message:"\u4E0D\u80FD\u8F93\u5165\u7A7A\u683C"}]},t.a.createElement(Ne.a,{size:"large",maxLength:60,placeholder:"\u8BF7\u8F93\u5165\u7B2C".concat(on+1,"\u9636\u6BB5\u540D\u79F0,\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26"),onBlur:ns})),t.a.createElement(ht.a.Item,{name:"description",label:"\u63CF\u8FF0",className:"ml10"},t.a.createElement(no.a,{defaultValue:Wt==null?void 0:Wt.stage_description,placeholder:"\u8BF7\u8F93\u5165\u7B2C".concat(on+1,"\u9636\u6BB5\u63CF\u8FF0"),height:300,onBlur:ns}))),t.a.createElement("aside",null,t.a.createElement(ht.a.Item,{label:"\u6807\u7B7E",name:"tagName",rules:[{max:10,message:"\u6807\u7B7E\u4E0D\u80FD\u8D85\u8FC710\u4E2A\u5B57\u201D"}]},t.a.createElement(Ne.a,{placeholder:"\u8BF7\u8F93\u5165\u6807\u7B7E\u540D\u79F0",onBlur:ns}))),t.a.createElement("aside",{className:"mt20 mb20"},t.a.createElement(u.a,{size:"large",ghost:!0,type:"primary",onClick:function(){if(!an[pn].stage_id)return U.b.info("\u8BF7\u5148\u8F93\u5165\u7AE0\u8282\u540D\u79F0\uFF01");if(!Object(he.e)(En))return;Ci(!1),_r(!0),Mn.resetFields()}},t.a.createElement("span",{className:"iconfont icon-tianjiafangda mr5 "}),"\u65B0\u5EFA\u5C0F\u8282"),t.a.createElement(u.a,{size:"large",className:"ml20",ghost:!0,type:"primary",onClick:function(){if(!an[pn].stage_id)return U.b.info("\u8BF7\u5148\u8F93\u5165\u7AE0\u8282\u540D\u79F0\uFF01");if(!Object(he.e)(En))return;if(!Object(he.c)())return;Ci(!1),Kn(!0),oi.setFieldsValue({name:"",is_jupyter:!1})}},t.a.createElement("span",{className:"iconfont icon-tianjiafangda mr5"}),"\u65B0\u5EFA\u5B9E\u8DF5\u9879\u76EE"),t.a.createElement(u.a,{size:"large",className:"ml20",ghost:!0,type:"primary",onClick:function(){var io;if(!an[pn].stage_id)return U.b.info("\u8BF7\u5148\u8F93\u5165\u7AE0\u8282\u540D\u79F0\uFF01");as(document.documentElement.scrollTop),En({type:"classroomList/setActionTabs",payload:{key:"\u9009\u7528\u5B9E\u8DF5\u9879\u76EE",id:an[pn].stage_id,subject_id:Yt.pathId}}),ba(Wt==null||((io=Wt.shixuns_list)===null||io===void 0)?void 0:io.map(function(Yo){return Yo.id}))}},t.a.createElement("span",{className:"iconfont icon-tianjiafangda mr5"}),"\u9009\u7528\u5B9E\u8DF5\u9879\u76EE"),t.a.createElement(t.a.Fragment,null,t.a.createElement(u.a,{size:"large",className:" ml20",ghost:!0,type:"primary",onClick:function(){if(!an[pn].stage_id)return U.b.info("\u8BF7\u5148\u8F93\u5165\u7AE0\u8282\u540D\u79F0\uFF01");wi(""),Ua(!0)}},t.a.createElement("span",{className:"iconfont icon-tianjiafangda mr5 "}),"\u65B0\u5EFA\u89C6\u9891\u9879\u76EE")),t.a.createElement(u.a,{size:"large",className:"ml20",ghost:!0,type:"primary",onClick:function(){if(!an[pn].stage_id)return U.b.info("\u8BF7\u5148\u8F93\u5165\u7AE0\u8282\u540D\u79F0\uFF01");if(!Object(he.e)(En))return;wi(""),Ki([]),Ci(!1),er(!0),fr.resetFields()}},t.a.createElement("span",{className:"iconfont icon-tianjiafangda mr5 "}),"\u65B0\u5EFA\u6559\u5B66\u8BFE\u4EF6"),t.a.createElement("br",null)),t.a.createElement("aside",{className:"c-light-black mt10 pb20",id:"Edit_".concat(on)},"\u6240\u6709\u9879\u76EE\u5747\u53EF\u4EE5\u901A\u8FC7\u62D6\u52A8\u6392\u5E8F\u6216\u5347\u964D\u7EA7\u3002",t.a.createElement("br",null),"\u65B0\u5EFA\u9879\u76EE\u540D\u79F0\u6307\u672C\u9879\u76EE\u4E0B\u6CA1\u6709\u5B9E\u8D28\u5185\u5BB9\uFF0C\u4EC5\u5C55\u793A\u540D\u79F0\uFF0C\u4E0D\u53EF\u70B9\u51FB\u3002")),t.a.createElement("aside",{className:$r.a.shixuns},t.a.createElement("div",{className:""},!!(Wt!=null&&(jn=Wt.items)!==null&&jn!==void 0&&jn.length)&&t.a.createElement(il.a,{visibleType:Ea,data:Object(d.a)(Wt.items),stage_id:Wt.stage_id,disabled:!(pn===on),deleteStages:ts,editVidoItem:lo,updateSort:Zi,index:on,cust_seq:!!(rn!=null&&(pr=rn.detail)!==null&&pr!==void 0&&pr.cust_seq),showVideoPlay:((dr=jt.userInfo)===null||dr===void 0?void 0:dr.admin)||((Bn=jt.userInfo)===null||Bn===void 0?void 0:Bn.business)||Xo(),isPaths:!0}))),pn===on&&t.a.createElement("aside",{className:$r.a.buttons},t.a.createElement(u.a,{onClick:Oa,type:"primary",size:"large",ghost:!0},"\u53D6\u6D88"),t.a.createElement(u.a,{onClick:Object(k.a)(p.a.mark(function li(){return p.a.wrap(function(Yo){for(;;)switch(Yo.prev=Yo.next){case 0:Oa();case 1:case"end":return Yo.stop()}},li)})),size:"large",type:"primary"},"\u4FDD\u5B58")))};return t.a.createElement("section",null,t.a.createElement(Hi.a,{active:!0,paragraph:{rows:250},avatar:!0,className:"".concat(qt["pathsDetail/getStageData"]||qt["pathsDetail/getPathsDetail"]?"mt20":""),loading:qt["pathsDetail/getStageData"]||qt["pathsDetail/getPathsDetail"]},t.a.createElement("aside",{className:$r.a.actionTabs},os.map(function(nr,Wt){if(an!=null&&an.some(function(on){var Tn;return(Tn=on.stage_tag)===null||Tn===void 0?void 0:Tn.includes(nr.type)})||nr.type=="All"||nr.type=="Discusses"&&nr.number>0)return t.a.createElement("div",{key:Wt,className:nr.type===Ea?$r.a.tabActive:$r.a.tab,onClick:function(){pn===-1?(za(nr.type),Dn(-1)):U.b.warn("\u8BF7\u5148\u53D6\u6D88\u7F16\u8F91\u72B6\u6001")}},t.a.createElement("span",{className:$r.a.s1},nr.name),t.a.createElement("span",{className:$r.a.s2},nr.number))})),Ea!=="Discusses"&&t.a.createElement(t.a.Fragment,null,t.a.createElement(ht.a,{form:Yn,onFinish:Ai},an==null?void 0:an.map(function(nr,Wt){return t.a.createElement("div",{key:Wt},On(nr,Wt))})),((cn=rn.detail)===null||cn===void 0?void 0:cn.allow_statistics)&&Ea==="All"&&!na&&t.a.createElement("div",{className:$r.a.addStage,onClick:Go},t.a.createElement("span",{className:$r.a.color4CA},"+\u70B9\u51FB\u65B0\u5EFA\u9636\u6BB5"),"\uFF08\u6DFB\u52A0\u4E00\u4E2A\u6216\u591A\u4E2A\u5B9E\u8BAD/\u89C6\u9891\u9879\u76EE\uFF0C\u7EC4\u6210\u4E00\u4E2A\u9636\u6BB5\uFF09"))),Ea==="Discusses"&&t.a.createElement("aside",{className:"mt20"},t.a.createElement(Ys,{activeIndex:3,isDelete:(Kt=rn.detail)===null||Kt===void 0?void 0:Kt.allow_add_member,shixunIdentifier:11,identity:(_n=jt.userInfo)===null||_n===void 0?void 0:_n.role,getTypeNumber:fo,user:jt.userInfo,isShixunDetail:!0})),t.a.createElement(m.a,{centered:!0,title:"\u65B0\u5EFA\u5B9E\u8DF5\u9879\u76EE",visible:yn,confirmLoading:Li,destroyOnClose:!0,onOk:Object(k.a)(p.a.mark(function nr(){var Wt;return p.a.wrap(function(Tn){for(;;)switch(Tn.prev=Tn.next){case 0:return Tn.next=2,oi.validateFields();case 2:return Ci(!0),Tn.next=5,Object(R.N)(Object(I.a)({id:an[pn].stage_id,subject_id:Yt.pathId},tr));case 5:Wt=Tn.sent,Fi(),Wt.id&&(oi.resetFields(),U.b.success("\u6DFB\u52A0\u6210\u529F"),xi([Wt])),Ci(!1);case 9:case"end":return Tn.stop()}},nr)})),onCancel:Fi},t.a.createElement(ht.a,{form:oi,onValuesChange:function(Wt){vr(Object(I.a)(Object(I.a)({},tr),Wt))}},t.a.createElement(ht.a.Item,{label:"\u7C7B\u578B",name:"is_jupyter",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7C7B\u578B"}]},t.a.createElement(g.a.Group,null,t.a.createElement(g.a,{defaultChecked:!0,value:!1},"\u5168\u6808\u5B9E\u8DF5\u9879\u76EE"),t.a.createElement(g.a,{value:!0},"Jupyter Notebook\u5B9E\u8DF5\u9879\u76EE"))),t.a.createElement(ht.a.Item,{label:"\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u540D\u79F0"}]},t.a.createElement(Ne.a,{suffix:t.a.createElement("span",null,tr.name.length,"/60")})))),t.a.createElement(m.a,{centered:!0,title:Aa?"\u7F16\u8F91\u6559\u5B66\u8BFE\u4EF6":"\u65B0\u5EFA\u6559\u5B66\u8BFE\u4EF6",visible:Ur,confirmLoading:Li,destroyOnClose:!0,onOk:Object(k.a)(p.a.mark(function nr(){var Wt,on,Tn,Hn,jn,pr;return p.a.wrap(function(Bn){for(;;)switch(Bn.prev=Bn.next){case 0:return Bn.next=2,fr.validateFields();case 2:return Ci(!0),Bn.next=5,fr.getFieldsValue();case 5:if(Wt=Bn.sent,on=!1,Tn="",Wt.files.forEach(function(Yr){(!Yr.response||!Yr.response.id)&&(on=!0,Tn=Yr.name)}),!on){Bn.next=11;break}return U.b.error("".concat(Tn," \u6587\u4EF6\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u4E0A\u4F20")),Bn.abrupt("return");case 11:if(Aa){Bn.next=18;break}return Bn.next=14,Object(R.c)({id:an[pn].stage_id,subject_id:Yt.pathId,tags:uo,attachment_ids:Wt.files.map(function(Yr){return Yr.response.id})});case 14:Hn=Bn.sent,Hn.status===0&&(U.b.success("\u4FEE\u6539\u6210\u529F"),er(!1),co(Object(d.a)(Hn.items))),Bn.next=22;break;case 18:return Bn.next=20,Object(R.S)({id:Aa==null?void 0:Aa.id,subject_id:Yt.pathId,tags:uo,attachment_id:(jn=Wt.files.map(function(Yr){return Yr.response.id}))===null||jn===void 0?void 0:jn[0]});case 20:pr=Bn.sent,pr.status===0&&(U.b.success("\u4FEE\u6539\u6210\u529F"),er(!1),co(Object(d.a)(pr.items)));case 22:Ci(!1);case 23:case"end":return Bn.stop()}},nr)})),onCancel:function(){er(!1),Ki([]),wi("")}},t.a.createElement(ht.a,{form:fr},t.a.createElement(ht.a.Item,{label:"\u8BFE\u4EF6\u5185\u5BB9",name:"files",rules:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u8BFE\u4EF6\u5185\u5BB9"}]},t.a.createElement(Cs.b,{aloneClear:!0,maxSize:Object(F.v)()?500:100,accept:gi.toString(),number:Aa?1:10})),t.a.createElement(ht.a.Item,{style:{marginLeft:8},label:"\u77E5\u8BC6\u6807\u7B7E",name:"tag"},t.a.createElement(Ne.a,{onKeyUp:ss})),t.a.createElement("div",{className:$r.a["tagsList-content"]},uo.map(function(nr,Wt){return t.a.createElement(E.a,{key:Wt+nr,closable:!0,onClose:function(Tn){ls(Tn,nr)}},nr)})),t.a.createElement("div",null,t.a.createElement("span",{className:"c-red"},"\u6CE8\u610F\uFF1A"),t.a.createElement("br",null),"1\u3001\u4E0A\u4F20\u8BFE\u4EF6\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F",t.a.createElement(mn.a,{to:"/users/mmipb3zhj/videos/protocol",target:"_blank"},"\u4E0A\u4F20\u5185\u5BB9\u534F\u8BAE"),"\uFF0C\u4E0D\u5F97\u4E0A\u4F20\u672A\u7ECF\u4ED6\u4EBA\u6388\u6743\u7684\u4F5C\u54C1\uFF1B",t.a.createElement("br",null),"2\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u5355\u4E2A\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC7",Object(F.v)()?500:100,"M\uFF1B",t.a.createElement("br",null),"3\u3001\u5F53\u524D\u4EC5\u9650\u652F\u6301pdf\u3001word\u3001excel\u3001ppt\u3001zip\u6587\u4EF6\uFF1B",t.a.createElement("br",null),"4\u3001\u6587\u4EF6\u540D\u5C06\u88AB\u81EA\u52A8\u8BFB\u53D6\u4E3A\u7CFB\u7EDF\u5185\u8BE5\u8BFE\u4EF6\u7684\u540D\u79F0\uFF0C\u4E0A\u4F20\u524D\u8BF7\u6CE8\u610F\u8FD9\u4E00\u70B9\uFF1B",t.a.createElement("br",null),"5\u3001\u4E00\u6B21\u6700\u591A\u4E0A\u4F2010\u4E2A\u6587\u4EF6\u3002"))),t.a.createElement(m.a,{centered:!0,title:"\u65B0\u5EFA\u5C0F\u8282\u540D\u79F0",visible:Er,confirmLoading:Li,onOk:Object(k.a)(p.a.mark(function nr(){var Wt,on;return p.a.wrap(function(Hn){for(;;)switch(Hn.prev=Hn.next){case 0:return Hn.next=2,Mn.validateFields();case 2:return Ci(!0),Hn.next=5,Mn.getFieldsValue();case 5:return Wt=Hn.sent,Hn.next=8,Object(R.a)({id:an[pn].stage_id,subject_id:Yt.pathId,name:Wt.name});case 8:on=Hn.sent,on.status===0&&(U.b.success("\u6DFB\u52A0\u6210\u529F"),_r(!1),Oo(Object(I.a)({},on))),Ci(!1);case 11:case"end":return Hn.stop()}},nr)})),onCancel:function(){return _r(!1)}},t.a.createElement(ht.a,{form:Mn},t.a.createElement(ht.a.Item,{label:"",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC740\u5B57\u7684\u5C0F\u8282\u540D\u79F0"}]},t.a.createElement(Ne.a,{maxLength:40,placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC740\u5B57\u7684\u5C0F\u8282\u540D\u79F0"})))),t.a.createElement(Ns,null),t.a.createElement(go,{shixunIds:da,cb:xi}),t.a.createElement(xo.a,{visible:Da,editData:Aa,onCancel:function(){return Ua(!1)},onOk:No}))},$o=Object(s.a)(function(lt){var qe=lt.pathsDetail,Bt=lt.user,$t=lt.loading,cn=lt.globalSetting;return{pathsDetail:qe,user:Bt,globalSetting:cn,loading:$t.effects}})(Hs),ol=v("uRQ9"),$e=v.n(ol),ft=function(qe){var Bt=qe.user,$t=Object(O.a)(qe,["user"]),cn=Object(a.useState)([]),Kt=Object(_.a)(cn,2),_n=Kt[0],rn=Kt[1],jt=Object(a.useState)(!0),An=Object(_.a)(jt,2),qt=An[0],En=An[1],kn=Object(a.useState)(!1),Yt=Object(_.a)(kn,2),wn=Yt[0],ln=Yt[1],xn=Object(a.useState)(!1),an=Object(_.a)(xn,2),Vt=an[0],Sn=an[1],hr=Object(a.useState)(0),pn=Object(_.a)(hr,2),Dn=pn[0],Nn=pn[1],Gn=Object(a.useState)({}),yn=Object(_.a)(Gn,2),Kn=yn[0],or=yn[1],gr=Object(h.i)(),Ur=Object(a.useState)({page:1,limit:10}),er=Object(_.a)(Ur,2),rr=er[0],Lr=er[1],Er=[{title:"\u59D3\u540D",dataIndex:"user_name",key:"user_name",align:"left"},{title:"\u7533\u8BF7\u65F6\u95F4",dataIndex:"created_at",key:"created_at",align:"left"},{title:"\u7533\u8BF7\u72B6\u6001",dataIndex:"state",key:"state",align:"left",render:function(Yn,vn){return t.a.createElement(t.a.Fragment,null,(vn==null?void 0:vn.state)==="drafted"&&t.a.createElement("span",null,"\u7533\u8BF7\u4E2D"),(vn==null?void 0:vn.state)==="rejected"&&t.a.createElement("span",{style:{color:"#E53333"}},"\u672A\u901A\u8FC7"),(vn==null?void 0:vn.state)==="passed"&&t.a.createElement("span",{style:{color:"#2FA34F"}},"\u901A\u8FC7"))}},{title:"\u5B66\u4E60\u8FDB\u5EA6",dataIndex:"process",key:"process",align:"left",render:function(Yn){return"".concat(Yn,"%")}},{title:"\u5BA1\u6279\u64CD\u4F5C",dataIndex:"action",key:"action",align:"left",render:function(Yn,vn){return t.a.createElement("div",{className:$e.a.actionsBtns},(vn==null?void 0:vn.state)==="drafted"&&t.a.createElement("span",{onClick:function(){return _r(vn)}},"\u540C\u610F"),(vn==null?void 0:vn.state)==="drafted"&&t.a.createElement("span",{onClick:function(){return sa(vn)}},"\u62D2\u7EDD"),(vn==null?void 0:vn.state)==="rejected"&&t.a.createElement("span",{onClick:function(){return ta(vn)}},"\u62D2\u7EDD\u539F\u56E0"),(vn==null?void 0:vn.state)==="passed"&&t.a.createElement("span",{onClick:function(){return tr(vn)}},"\u67E5\u770B\u8BC1\u4E66"))}}].filter(function(ia){return Vt?!0:ia.title!=="\u5B66\u4E60\u8FDB\u5EA6"&&ia.title!=="\u5BA1\u6279\u64CD\u4F5C"});Object(a.useEffect)(function(){vr(rr)},[rr]);var _r=function(){var ia=Object(k.a)(p.a.mark(function Yn(vn){var yr;return p.a.wrap(function(Cr){for(;;)switch(Cr.prev=Cr.next){case 0:return Cr.next=2,Object(Ut.a)("/api/paths/".concat(gr==null?void 0:gr.pathId,"/process_certificate.json"),{method:"post",body:{certificate_id:vn==null?void 0:vn.id,op:"pass"}});case 2:yr=Cr.sent,(yr==null?void 0:yr.status)===0&&vr(rr);case 4:case"end":return Cr.stop()}},Yn)}));return function(vn){return ia.apply(this,arguments)}}(),sa=function(Yn){var vn="";m.a.confirm({title:"\u8BC1\u4E66\u7533\u8BF7\u62D2\u7EDD",icon:null,className:"custom-modal-divider",centered:!0,width:400,content:t.a.createElement("div",null,t.a.createElement("p",null,"\u62D2\u7EDD\u8BC1\u4E66\u53D1\u653E\u9700\u586B\u5199\u62D2\u7EDD\u539F\u56E0\u3002"),t.a.createElement("aside",{className:"flex-container"},t.a.createElement("sup",{className:"c-red-ee4"},"*"),t.a.createElement("span",null,"\u62D2\u7EDD\u539F\u56E0:"),t.a.createElement(Ne.a,{maxLength:30,style:{width:284,marginLeft:10},onChange:function(oi){return vn=oi.target.value}}))),okText:"\u786E\u5B9A\u62D2\u7EDD",cancelText:"\u53D6\u6D88",onOk:function(){var yr=Object(k.a)(p.a.mark(function Cr(){var Ir;return p.a.wrap(function(ar){for(;;)switch(ar.prev=ar.next){case 0:if(vn){ar.next=3;break}return U.b.warn("\u62D2\u7EDD\u7406\u7531\u4E0D\u80FD\u4E3A\u7A7A"),ar.abrupt("return",Promise.reject());case 3:return ar.next=5,Object(Ut.a)("/api/paths/".concat(gr==null?void 0:gr.pathId,"/process_certificate.json"),{method:"post",body:{certificate_id:Yn==null?void 0:Yn.id,op:"reject",content:vn}});case 5:Ir=ar.sent,(Ir==null?void 0:Ir.status)===0&&vr(rr);case 7:case"end":return ar.stop()}},Cr)}));function oi(){return yr.apply(this,arguments)}return oi}()})},ta=function(Yn){m.a.info({title:"\u62D2\u7EDD\u539F\u56E0",icon:null,className:"custom-modal-divider",centered:!0,width:400,content:t.a.createElement("div",null,Yn==null?void 0:Yn.content),okText:"\u786E\u5B9A"})},tr=function(Yn){or((Yn==null?void 0:Yn.info)||{}),ln(!0)},vr=function(){var ia=Object(k.a)(p.a.mark(function Yn(vn){var yr;return p.a.wrap(function(Cr){for(;;)switch(Cr.prev=Cr.next){case 0:return En(!0),Cr.next=3,Object(Ut.a)("/api/paths/".concat(gr==null?void 0:gr.pathId,"/request_certificates.json"),{method:"get",params:vn});case 3:yr=Cr.sent,yr!=null&&yr.data&&(rn(yr==null?void 0:yr.data),Nn((yr==null?void 0:yr.total_count)||0),Sn(yr==null?void 0:yr.is_manage)),En(!1);case 6:case"end":return Cr.stop()}},Yn)}));return function(vn){return ia.apply(this,arguments)}}(),ja=function(Yn,vn){var yr=Object(I.a)(Object(I.a)({},rr),{},{page:Yn,limit:vn});Lr(yr),vr(yr)};return t.a.createElement("div",{className:$e.a.certificate},t.a.createElement(bt.a,{dataSource:_n,rowKey:function(Yn){return Yn.id},columns:Er,loading:qt,pagination:{pageSize:rr.limit,total:Dn,current:rr.page,onChange:ja,showQuickJumper:!0,hideOnSinglePage:!0,position:["bottomCenter"]}}),t.a.createElement(sn,{visible:wn,onCancel:function(){ln(!1),or({})},data:Kn}))},wt=Object(s.a)(function(lt){var qe=lt.user,Bt=lt.pathsDetail;return{user:qe,pathsDetail:Bt}})(ft);le.a.locale("ZH-cn");var nt=x.a.TabPane,Te=function(qe){var Bt=qe.data,$t=Object(a.useState)("1"),cn=Object(_.a)($t,2),Kt=cn[0],_n=cn[1],rn=Object(a.useState)(1),jt=Object(_.a)(rn,2),An=jt[0],qt=jt[1],En=Object(a.useState)(),kn=Object(_.a)(En,2),Yt=kn[0],wn=kn[1],ln=Object(a.useState)(!0),xn=Object(_.a)(ln,2),an=xn[0],Vt=xn[1],Sn=Object(h.i)();function hr(){return pn.apply(this,arguments)}function pn(){return pn=Object(k.a)(p.a.mark(function Nn(){var Gn,yn;return p.a.wrap(function(or){for(;;)switch(or.prev=or.next){case 0:return Vt(!0),Kt==="1"?Gn="/api/paths/".concat(Sn.pathId,"/study_ranking_shixuns_passed.json"):Kt==="2"?Gn="/api/paths/".concat(Sn.pathId,"/study_ranking_videos.json"):Kt==="3"?Gn="/api/paths/".concat(Sn.pathId,"/study_ranking_pdf_attachments.json"):Kt==="4"&&(Gn="/api/paths/".concat(Sn.pathId,"/study_ranking_discusses.json")),or.next=4,Object(Ut.a)(Gn,{method:"get",params:{page:An}});case 4:yn=or.sent,Vt(!1),wn(yn);case 7:case"end":return or.stop()}},Nn)})),pn.apply(this,arguments)}Object(a.useEffect)(function(){hr()},[An,Kt]);var Dn=function(){var Gn,yn,Kn,or,gr,Ur,er,rr,Lr,Er,_r,sa,ta;return t.a.createElement(t.a.Fragment,null,t.a.createElement(K.a,{spinning:an},t.a.createElement("div",{style:{height:"42px",background:"#fafafa",display:"flex",padding:"0px 5px",alignItems:"center"}},t.a.createElement("span",{style:{flex:"1"}},"\u6392\u540D"),t.a.createElement("span",{style:{flex:"1"}},"\u59D3\u540D"),Kt==="1"&&t.a.createElement("span",{style:{flex:"3"}},"\u901A\u8FC7\u5173\u5361\u6570"),Kt==="2"&&t.a.createElement("span",{style:{flex:"3"}},"\u7D2F\u8BA1\u5B66\u4E60\u65F6\u957F"),Kt==="3"&&t.a.createElement("span",{style:{flex:"3"}},"\u4E0B\u8F7D\u8D44\u6E90\u6B21\u6570"),Kt==="4"&&t.a.createElement("span",{style:{flex:"3"}},"\u53D1\u5E16\u6570")),(Yt==null?void 0:Yt.user_show)&&t.a.createElement("div",{style:{height:"42px",display:"flex",padding:"0px 5px",alignItems:"center"}},t.a.createElement("span",{style:{flex:"1"}},(Yt==null||((Gn=Yt.data_user)===null||Gn===void 0)?void 0:Gn.rank)===0&&(Yt==null||((yn=Yt.data_user)===null||yn===void 0)?void 0:yn.num)===0?"--":(Yt==null||((Kn=Yt.data_user)===null||Kn===void 0)?void 0:Kn.rank)<=100&&(Yt==null||((or=Yt.data_user)===null||or===void 0)?void 0:or.rank)!=0?Yt==null||((gr=Yt.data_user)===null||gr===void 0)?void 0:gr.rank:"\u672A\u4E0A\u699C"),t.a.createElement("span",{style:{flex:"1"}},Yt==null||((Ur=Yt.data_user)===null||Ur===void 0)?void 0:Ur.user_real_name),Kt==="1"&&t.a.createElement("span",{style:{flex:"3"}},(Yt==null||((er=Yt.data_user)===null||er===void 0)?void 0:er.num)||"--"),Kt==="2"&&t.a.createElement("span",{style:{flex:"3"}},Yt!=null&&(rr=Yt.data_user)!==null&&rr!==void 0&&rr.num?Object(pe.bb)(Yt==null||((Lr=Yt.data_user)===null||Lr===void 0)?void 0:Lr.num):"--"),Kt==="3"&&t.a.createElement("span",{style:{flex:"3"}},(Yt==null||((Er=Yt.data_user)===null||Er===void 0)?void 0:Er.num)||"--"),Kt==="4"&&t.a.createElement("span",{style:{flex:"3"}},(Yt==null||((_r=Yt.data_user)===null||_r===void 0)?void 0:_r.num)||"--")),(Yt==null?void 0:Yt.user_show)&&t.a.createElement(pa.a,null),(Yt==null||((sa=Yt.data)===null||sa===void 0)?void 0:sa.length)>0?Yt==null||((ta=Yt.data)===null||ta===void 0)?void 0:ta.map(function(tr,vr){return t.a.createElement("div",{style:{height:"42px",display:"flex",padding:"0px 5px",alignItems:"center"}},(tr==null?void 0:tr.rank)===1&&t.a.createElement("span",{style:{flex:"1",color:"#E02020"}},tr==null?void 0:tr.rank),(tr==null?void 0:tr.rank)===2&&t.a.createElement("span",{style:{flex:"1",color:"#FA6400"}},tr==null?void 0:tr.rank),(tr==null?void 0:tr.rank)===3&&t.a.createElement("span",{style:{flex:"1",color:"#F7B500"}},tr==null?void 0:tr.rank),(tr==null?void 0:tr.rank)>3&&t.a.createElement("span",{style:{flex:"1"}},tr==null?void 0:tr.rank),t.a.createElement("span",{style:{flex:"1"}},tr==null?void 0:tr.user_real_name),Kt==="1"&&t.a.createElement("span",{style:{flex:"3"}},tr==null?void 0:tr.num),Kt==="2"&&t.a.createElement("span",{style:{flex:"3"}},Object(pe.bb)(tr==null?void 0:tr.num)),Kt==="3"&&t.a.createElement("span",{style:{flex:"3"}},tr==null?void 0:tr.num),Kt==="4"&&t.a.createElement("span",{style:{flex:"3"}},tr==null?void 0:tr.num))}):t.a.createElement(ur.a,null),(Yt==null?void 0:Yt.count)>10&&t.a.createElement(Jr.a,{current:An,pageSize:10,showSizeChanger:!1,total:Yt==null?void 0:Yt.count,style:{textAlign:"center",margin:"20px 0px"},onChange:function(vr){qt(vr)}})))};return t.a.createElement("div",null,t.a.createElement(x.a,{activeKey:Kt,style:{background:"#fff",padding:"0px 20px"},onChange:function(Gn){_n(Gn),qt(1)}},t.a.createElement(nt,{tab:"\u901A\u5173\u699C",style:{background:"#fff"},key:"1"},t.a.createElement(Dn,null)),t.a.createElement(nt,{tab:"\u89C6\u9891\u5B66\u4E60\u699C",key:"2"},t.a.createElement(Dn,null)),t.a.createElement(nt,{tab:"\u4E0B\u8F7D\u8D44\u6E90\u699C",key:"3"},t.a.createElement(Dn,null)),t.a.createElement(nt,{tab:"\u4E92\u52A8\u8BA8\u8BBA\u699C",key:"4"},t.a.createElement(Dn,null))))},Ge=v("XzQ7"),Be=v.n(Ge),it=v("ho57"),st=v.n(it),Tt=x.a.TabPane;function dt(lt){var qe=function(_n,rn){if(_n.localName===rn)return _n;for(var jt=0,An=_n;An=An.parentNode;jt++){if(An.localName===rn)return An;if(An==document.documentElement)return!1}},Bt=lt.target,$t=qe(Bt,"a");if(console.log([$t],$t==null?void 0:$t.href,44),$t!=null&&$t.href)return;if(Bt.tagName.toUpperCase()==="IMG"){var cn=Bt.src||Bt.getAttribute("src");cn&&cn.indexOf("/images/avatars/User")===-1&&(lt.stopPropagation(),lt.preventDefault(),Ka.a.publish("preview-image",cn))}}var Mt=function(qe){var Bt,$t,cn=qe.pathsDetail,Kt=qe.globalSetting,_n=qe.loading,rn=qe.dispatch,jt=Object(O.a)(qe,["pathsDetail","globalSetting","loading","dispatch"]),An=Object(h.i)(),qt=jt.location.query,En=Object(a.useRef)(),kn=Object(a.useState)("stage"),Yt=Object(_.a)(kn,2),wn=Yt[0],ln=Yt[1],xn=[{name:"\u8BFE\u7A0B\u7AE0\u8282",key:"stage"},{name:"\u6392\u884C\u699C",key:"ranking"},{name:"\u8BC1\u4E66\u7533\u8BF7",key:"certificate"}].filter(function(Vt){var Sn;return(Sn=cn.detail)!==null&&Sn!==void 0&&Sn.excellent?!0:Vt.key!=="certificate"});Object(a.useEffect)(function(){if(En.current)return En.current.addEventListener("mousedown",dt),function(){En.current.removeEventListener("mousedown",dt)}},[En.current]),Object(a.useEffect)(function(){if(!An.pathId)return;an()},[An.pathId]),Object(a.useEffect)(function(){var Vt;Object(pe.X)((Vt=cn.detail)===null||Vt===void 0?void 0:Vt.name)},[cn]);var an=function(){var Vt=Object(k.a)(p.a.mark(function Sn(){var hr;return p.a.wrap(function(Dn){for(;;)switch(Dn.prev=Dn.next){case 0:return Dn.next=2,rn({type:"pathsDetail/getPathsDetail",payload:Object(I.a)({id:An.pathId},qt)});case 2:hr=Dn.sent,rn({type:"pathsDetail/getRightData",payload:{id:An.pathId}}),rn({type:"pathsDetail/getStageData",payload:{subject_id:An.pathId}}),hr!=null&&hr.id&&qt.token&&(location.href=location.pathname);case 6:case"end":return Dn.stop()}},Sn)}));return function(){return Vt.apply(this,arguments)}}();return t.a.createElement(K.a,{spinning:!1},t.a.createElement("section",{className:Be.a.bg},t.a.createElement(xt,null),t.a.createElement(Ia.a,null),t.a.createElement("section",{style:{marginTop:((Bt=cn.detail)===null||Bt===void 0?void 0:Bt.excellent)&&"89px"},className:"edu-container mb80 ".concat(Be.a.wrap)},t.a.createElement("aside",{className:Be.a.content},t.a.createElement("div",{className:Be.a.intro},t.a.createElement("div",{className:Be.a.introTitle},t.a.createElement("span",{className:"font16",style:{display:"flex",alignItems:"center"}},t.a.createElement("img",{src:st.a,style:{marginRight:"10px"}}),"\u8BFE\u7A0B\u4ECB\u7ECD")),t.a.createElement("div",{ref:En},t.a.createElement(Ot.a,{value:($t=cn.detail)===null||$t===void 0?void 0:$t.description}))),t.a.createElement(x.a,{className:Be.a.wrapTabs,activeKey:wn,onChange:function(Sn){return ln(Sn)},tabBarGutter:50,tabBarStyle:{height:76}},xn.map(function(Vt){return t.a.createElement(Tt,{tab:Vt.name,key:Vt.key})})),wn==="stage"&&t.a.createElement($o,null),wn==="ranking"&&t.a.createElement(Te,null),wn==="certificate"&&t.a.createElement(wt,null)),t.a.createElement(_i,null))))},tn=te.default=Object(s.a)(function(lt){var qe=lt.pathsDetail,Bt=lt.loading,$t=lt.globalSetting;return{pathsDetail:qe,globalSetting:$t,loading:Bt}})(Mt)},BPZU:function(Re,te){var v=32,Z=7,K=256;function I(a){for(var t=0;a>=v;)t|=a&1,a>>=1;return a+t}function k(a,t,h,s){var i=t+1;if(i===h)return 1;if(s(a[i++],a[t])<0){for(;i<h&&s(a[i],a[i-1])<0;)i++;_(a,t,i)}else for(;i<h&&s(a[i],a[i-1])>=0;)i++;return i-t}function _(a,t,h){for(h--;t<h;){var s=a[t];a[t++]=a[h],a[h--]=s}}function O(a,t,h,s,i){for(s===t&&s++;s<h;s++){for(var u=a[s],d=t,f=s,o;d<f;)o=d+f>>>1,i(u,a[o])<0?f=o:d=o+1;var c=s-d;switch(c){case 3:a[d+3]=a[d+2];case 2:a[d+2]=a[d+1];case 1:a[d+1]=a[d];break;default:for(;c>0;)a[d+c]=a[d+c-1],c--}a[d]=u}}function M(a,t,h,s,i,u){var d=0,f=0,o=1;if(u(a,t[h+i])>0){for(f=s-i;o<f&&u(a,t[h+i+o])>0;)d=o,o=(o<<1)+1,o<=0&&(o=f);o>f&&(o=f),d+=i,o+=i}else{for(f=i+1;o<f&&u(a,t[h+i-o])<=0;)d=o,o=(o<<1)+1,o<=0&&(o=f);o>f&&(o=f);var c=d;d=i-o,o=i-c}for(d++;d<o;){var E=d+(o-d>>>1);u(a,t[h+E])>0?d=E+1:o=E}return o}function x(a,t,h,s,i,u){var d=0,f=0,o=1;if(u(a,t[h+i])<0){for(f=i+1;o<f&&u(a,t[h+i-o])<0;)d=o,o=(o<<1)+1,o<=0&&(o=f);o>f&&(o=f);var c=d;d=i-o,o=i-c}else{for(f=s-i;o<f&&u(a,t[h+i+o])>=0;)d=o,o=(o<<1)+1,o<=0&&(o=f);o>f&&(o=f),d+=i,o+=i}for(d++;d<o;){var E=d+(o-d>>>1);u(a,t[h+E])<0?o=E:d=E+1}return o}function n(a,t){var h=Z,s=0,i=K,u=0,d,f,o=0;s=a.length,s<2*K&&(i=s>>>1);var c=[];u=s<120?5:s<1542?10:s<119151?19:40,d=[],f=[];function E(l,A){d[o]=l,f[o]=A,o+=1}function B(){for(;o>1;){var l=o-2;if(l>=1&&f[l-1]<=f[l]+f[l+1]||l>=2&&f[l-2]<=f[l]+f[l-1])f[l-1]<f[l+1]&&l--;else if(f[l]>f[l+1])break;P(l)}}function w(){for(;o>1;){var l=o-2;l>0&&f[l-1]<f[l+1]&&l--,P(l)}}function P(l){var A=d[l],g=f[l],T=d[l+1],m=f[l+1];f[l]=g+m,l===o-3&&(d[l+1]=d[l+2],f[l+1]=f[l+2]),o--;var y=x(a[T],a,A,g,0,t);if(A+=y,g-=y,g===0)return;if(m=M(a[A+g-1],a,T,m,m-1,t),m===0)return;g<=m?C(A,g,T,m):b(A,g,T,m)}function C(l,A,g,T){var m=0;for(m=0;m<A;m++)c[m]=a[l+m];var y=0,U=g,N=l;if(a[N++]=a[U++],--T===0){for(m=0;m<A;m++)a[N+m]=c[y+m];return}if(A===1){for(m=0;m<T;m++)a[N+m]=a[U+m];a[N+T]=c[y];return}for(var S=h,H,F,R;;){H=0,F=0,R=!1;do if(t(a[U],c[y])<0){if(a[N++]=a[U++],F++,H=0,--T===0){R=!0;break}}else if(a[N++]=c[y++],H++,F=0,--A===1){R=!0;break}while((H|F)<S);if(R)break;do{if(H=x(a[U],c,y,A,0,t),H!==0){for(m=0;m<H;m++)a[N+m]=c[y+m];if(N+=H,y+=H,A-=H,A<=1){R=!0;break}}if(a[N++]=a[U++],--T===0){R=!0;break}if(F=M(c[y],a,U,T,0,t),F!==0){for(m=0;m<F;m++)a[N+m]=a[U+m];if(N+=F,U+=F,T-=F,T===0){R=!0;break}}if(a[N++]=c[y++],--A===1){R=!0;break}S--}while(H>=Z||F>=Z);if(R)break;S<0&&(S=0),S+=2}if(h=S,h<1&&(h=1),A===1){for(m=0;m<T;m++)a[N+m]=a[U+m];a[N+T]=c[y]}else{if(A===0)throw new Error;for(m=0;m<A;m++)a[N+m]=c[y+m]}}function b(l,A,g,T){var m=0;for(m=0;m<T;m++)c[m]=a[g+m];var y=l+A-1,U=T-1,N=g+T-1,S=0,H=0;if(a[N--]=a[y--],--A===0){for(S=N-(T-1),m=0;m<T;m++)a[S+m]=c[m];return}if(T===1){for(N-=A,y-=A,H=N+1,S=y+1,m=A-1;m>=0;m--)a[H+m]=a[S+m];a[N]=c[U];return}for(var F=h;;){var R=0,z=0,Q=!1;do if(t(c[U],a[y])<0){if(a[N--]=a[y--],R++,z=0,--A===0){Q=!0;break}}else if(a[N--]=c[U--],z++,R=0,--T===1){Q=!0;break}while((R|z)<F);if(Q)break;do{if(R=A-x(c[U],a,l,A,A-1,t),R!==0){for(N-=R,y-=R,A-=R,H=N+1,S=y+1,m=R-1;m>=0;m--)a[H+m]=a[S+m];if(A===0){Q=!0;break}}if(a[N--]=c[U--],--T===1){Q=!0;break}if(z=T-M(a[y],c,0,T,T-1,t),z!==0){for(N-=z,U-=z,T-=z,H=N+1,S=U+1,m=0;m<z;m++)a[H+m]=c[S+m];if(T<=1){Q=!0;break}}if(a[N--]=a[y--],--A===0){Q=!0;break}F--}while(R>=Z||z>=Z);if(Q)break;F<0&&(F=0),F+=2}if(h=F,h<1&&(h=1),T===1){for(N-=A,y-=A,H=N+1,S=y+1,m=A-1;m>=0;m--)a[H+m]=a[S+m];a[N]=c[U]}else{if(T===0)throw new Error;for(S=N-(T-1),m=0;m<T;m++)a[S+m]=c[m]}}this.mergeRuns=B,this.forceMergeRuns=w,this.pushRun=E}function p(a,t,h,s){h||(h=0),s||(s=a.length);var i=s-h;if(i<2)return;var u=0;if(i<v){u=k(a,h,s,t),O(a,h,s,h+u,t);return}var d=new n(a,t),f=I(i);do{if(u=k(a,h,s,t),u<f){var o=i;o>f&&(o=f),O(a,h,h+o,h+u,t),u=o}d.pushRun(h,u),d.mergeRuns(),i-=u,h+=u}while(i!==0);d.forceMergeRuns()}Re.exports=p},BU3w:function(Re,te,v){"use strict";v.d(te,"a",function(){return O});var Z=v("MNnm"),K="rc-util-key";function I(M){if(M.attachTo)return M.attachTo;var x=document.querySelector("head");return x||document.body}function k(M){var x,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(Z.a)())return null;var p=document.createElement("style");if((x=n.csp)===null||x===void 0?void 0:x.nonce){var a;p.nonce=(a=n.csp)===null||a===void 0?void 0:a.nonce}p.innerHTML=M;var t=I(n),h=t.firstChild;return n.prepend&&t.prepend?t.prepend(p):n.prepend&&h?t.insertBefore(p,h):t.appendChild(p),p}var _=new Map;function O(M,x){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},p=I(n);if(!_.has(p)){var a=k("",n),t=a.parentNode;_.set(p,t),t.removeChild(a)}var h=Array.from(_.get(p).children).find(function(f){return f.tagName==="STYLE"&&f[K]===x});if(h){var s,i;if(((s=n.csp)===null||s===void 0?void 0:s.nonce)&&h.nonce!==((i=n.csp)===null||i===void 0?void 0:i.nonce)){var u;h.nonce=(u=n.csp)===null||u===void 0?void 0:u.nonce}return h.innerHTML!==M&&(h.innerHTML=M),h}var d=k(M,n);return d[K]=x,d}},Bd2K:function(Re,te,v){(function(Z){Z(v("VrN/"),v("osHv"))})(function(Z){Z.defineOption("autoCloseTags",!1,function(n,p,a){if(a!=Z.Init&&a&&n.removeKeyMap("autoCloseTags"),!p)return;var t={name:"autoCloseTags"};(typeof p!="object"||p.whenClosing!==!1)&&(t["'/'"]=function(h){return O(h)}),(typeof p!="object"||p.whenOpening!==!1)&&(t["'>'"]=function(h){return k(h)}),n.addKeyMap(t)});var K=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],I=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function k(n){if(n.getOption("disableInput"))return Z.Pass;for(var p=n.listSelections(),a=[],t=n.getOption("autoCloseTags"),h=0;h<p.length;h++){if(!p[h].empty())return Z.Pass;var s=p[h].head,i=n.getTokenAt(s),u=Z.innerMode(n.getMode(),i.state),d=u.state,f=u.mode.xmlCurrentTag&&u.mode.xmlCurrentTag(d),o=f&&f.name;if(!o)return Z.Pass;var c=u.mode.configuration=="html",E=typeof t=="object"&&t.dontCloseTags||c&&K,B=typeof t=="object"&&t.indentTags||c&&I;i.end>s.ch&&(o=o.slice(0,o.length-i.end+s.ch));var w=o.toLowerCase();if(!o||i.type=="string"&&(i.end!=s.ch||!/[\"\']/.test(i.string.charAt(i.string.length-1))||i.string.length==1)||i.type=="tag"&&f.close||i.string.indexOf("/")==s.ch-i.start-1||E&&M(E,w)>-1||x(n,u.mode.xmlCurrentContext&&u.mode.xmlCurrentContext(d)||[],o,s,!0))return Z.Pass;var P=typeof t=="object"&&t.emptyTags;if(P&&M(P,o)>-1){a[h]={text:"/>",newPos:Z.Pos(s.line,s.ch+2)};continue}var C=B&&M(B,w)>-1;a[h]={indent:C,text:">"+(C?`
|
|
|
|
`:"")+"</"+o+">",newPos:C?Z.Pos(s.line+1,0):Z.Pos(s.line,s.ch+1)}}for(var b=typeof t=="object"&&t.dontIndentOnAutoClose,h=p.length-1;h>=0;h--){var l=a[h];n.replaceRange(l.text,p[h].head,p[h].anchor,"+insert");var A=n.listSelections().slice(0);A[h]={head:l.newPos,anchor:l.newPos},n.setSelections(A),!b&&l.indent&&(n.indentLine(l.newPos.line,null,!0),n.indentLine(l.newPos.line+1,null,!0))}}function _(n,p){for(var a=n.listSelections(),t=[],h=p?"/":"</",s=n.getOption("autoCloseTags"),i=typeof s=="object"&&s.dontIndentOnSlash,u=0;u<a.length;u++){if(!a[u].empty())return Z.Pass;var d=a[u].head,f=n.getTokenAt(d),o=Z.innerMode(n.getMode(),f.state),c=o.state;if(p&&(f.type=="string"||f.string.charAt(0)!="<"||f.start!=d.ch-1))return Z.Pass;var E,B=o.mode.name!="xml"&&n.getMode().name=="htmlmixed";if(B&&o.mode.name=="javascript")E=h+"script";else if(B&&o.mode.name=="css")E=h+"style";else{var w=o.mode.xmlCurrentContext&&o.mode.xmlCurrentContext(c);if(!w||w.length&&x(n,w,w[w.length-1],d))return Z.Pass;E=h+w[w.length-1]}n.getLine(d.line).charAt(f.end)!=">"&&(E+=">"),t[u]=E}if(n.replaceSelections(t),a=n.listSelections(),!i)for(var u=0;u<a.length;u++)(u==a.length-1||a[u].head.line<a[u+1].head.line)&&n.indentLine(a[u].head.line)}function O(n){return n.getOption("disableInput")?Z.Pass:_(n,!0)}Z.commands.closeTag=function(n){return _(n)};function M(n,p){if(n.indexOf)return n.indexOf(p);for(var a=0,t=n.length;a<t;++a)if(n[a]==p)return a;return-1}function x(n,p,a,t,h){if(!Z.scanForClosingTag)return!1;var s=Math.min(n.lastLine()+1,t.line+500),i=Z.scanForClosingTag(n,t,null,s);if(!i||i.tag!=a)return!1;for(var u=h?1:0,d=p.length-1;d>=0&&p[d]==a;d--)++u;t=i.to;for(var d=1;d<u;d++){var f=Z.scanForClosingTag(n,t,null,s);if(!f||f.tag!=a)return!1;t=f.to}return!0}})},BdwD:function(Re,te,v){"use strict";var Z=v("+L6B"),K=v("2/Rp"),I=v("0Owb"),k=v("k1fw"),_=v("q1tI"),O=v.n(_),M=v("FOrL"),x=v.n(M),n=function(a){var t=a.buttonProps,h=t===void 0?{}:t,s=a.styles,i=s===void 0?{}:s,u=a.customText,d=a.ButtonText,f=a.ButtonClick,o=a.Buttonclass,c=a.ButtonTwo;return O.a.createElement("section",{className:"tc animated fadeIn",style:Object(k.a)(Object(k.a)({},{color:"#999",margin:"200px auto"}),i)},O.a.createElement("img",{src:x.a}),O.a.createElement("p",{className:"mt20 font14"},u||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),d&&O.a.createElement(K.a,Object(I.a)({className:o,onClick:f},h),d),c&&c)};te.a=n},BjJ7:function(Re,te,v){"use strict";v.d(te,"d",function(){return K}),v.d(te,"c",function(){return I}),v.d(te,"e",function(){return k}),v.d(te,"b",function(){return _}),v.d(te,"a",function(){return M});var Z=v("m3rI");function K(x){var n=!0;if(x.length>0){for(var p=0;p<x.length;p++)if(x[p].compile_success==0||!x[p].compile_success){n=!1;break}}else n=!1;return n}function I(x){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",p=[],a=0;a<x.length;a++){var t=x[a],h=n?"".concat(n,"/").concat(t.name):"".concat(t.name);p.push({title:t.name,isLeaf:!(t.type==="tree"),key:h})}return p}function k(x,n,p){for(var a=0;a<x.length;a++){var t=x[a];if(t.key===n){t.children=p;break}t.children&&k(t.children,n,p)}return x}function _(x,n,p){var a;return function(){var t=this,h=arguments,s=function(){a=null,p||x.apply(t,h)},i=p&&!a;clearTimeout(a),a=setTimeout(s,n),i&&x.apply(t,h)}}var O=!0,M=Z.a.API_SERVER},BlVb:function(Re,te,v){var Z=v("hyiK"),K=1e-8;function I(_,O){return Math.abs(_-O)<K}function k(_,O,M){var x=0,n=_[0];if(!n)return!1;for(var p=1;p<_.length;p++){var a=_[p];x+=Z(n[0],n[1],a[0],a[1],O,M),n=a}var t=_[0];return(!I(n[0],t[0])||!I(n[1],t[1]))&&(x+=Z(n[0],n[1],t[0],t[1],O,M)),x!==0}te.contain=k},Bq2U:function(Re,te,v){var Z=v("RDYZ"),K=v("Qe9p"),I=v("bYtY"),k=I.isArrayLike,_=Array.prototype.slice;function O(E,B){return E[B]}function M(E,B,w){E[B]=w}function x(E,B,w){return(B-E)*w+E}function n(E,B,w){return w>.5?B:E}function p(E,B,w,P,C){var b=E.length;if(C===1)for(var l=0;l<b;l++)P[l]=x(E[l],B[l],w);else for(var A=b&&E[0].length,l=0;l<b;l++)for(var g=0;g<A;g++)P[l][g]=x(E[l][g],B[l][g],w)}function a(E,B,w){var P=E.length,C=B.length;if(P!==C){var b=P>C;if(b)E.length=C;else for(var l=P;l<C;l++)E.push(w===1?B[l]:_.call(B[l]))}for(var A=E[0]&&E[0].length,l=0;l<E.length;l++)if(w===1)isNaN(E[l])&&(E[l]=B[l]);else for(var g=0;g<A;g++)isNaN(E[l][g])&&(E[l][g]=B[l][g])}function t(E,B,w){if(E===B)return!0;var P=E.length;if(P!==B.length)return!1;if(w===1){for(var C=0;C<P;C++)if(E[C]!==B[C])return!1}else for(var b=E[0].length,C=0;C<P;C++)for(var l=0;l<b;l++)if(E[C][l]!==B[C][l])return!1;return!0}function h(E,B,w,P,C,b,l,A,g){var T=E.length;if(g===1)for(var m=0;m<T;m++)A[m]=s(E[m],B[m],w[m],P[m],C,b,l);else for(var y=E[0].length,m=0;m<T;m++)for(var U=0;U<y;U++)A[m][U]=s(E[m][U],B[m][U],w[m][U],P[m][U],C,b,l)}function s(E,B,w,P,C,b,l){var A=(w-E)*.5,g=(P-B)*.5;return(2*(B-w)+A+g)*l+(-3*(B-w)-2*A-g)*b+A*C+B}function i(E){if(k(E)){var B=E.length;if(k(E[0])){for(var w=[],P=0;P<B;P++)w.push(_.call(E[P]));return w}return _.call(E)}return E}function u(E){return E[0]=Math.floor(E[0]),E[1]=Math.floor(E[1]),E[2]=Math.floor(E[2]),"rgba("+E.join(",")+")"}function d(E){var B=E[E.length-1].value;return k(B&&B[0])?2:1}function f(E,B,w,P,C,b){var l=E._getter,A=E._setter,g=B==="spline",T=P.length;if(!T)return;var m=P[0].value,y=k(m),U=!1,N=!1,S=y?d(P):0,H;P.sort(function(Ke,tt){return Ke.time-tt.time}),H=P[T-1].time;for(var F=[],R=[],z=P[0].value,Q=!0,$=0;$<T;$++){F.push(P[$].time/H);var ee=P[$].value;if(y&&t(ee,z,S)||!y&&ee===z||(Q=!1),z=ee,typeof ee=="string"){var fe=K.parse(ee);fe?(ee=fe,U=!0):N=!0}R.push(ee)}if(!b&&Q)return;for(var Ae=R[T-1],$=0;$<T-1;$++)y?a(R[$],Ae,S):isNaN(R[$])&&!isNaN(Ae)&&!N&&!U&&(R[$]=Ae);y&&a(l(E._target,C),Ae,S);var ce=0,ie=0,be,se,me,le,ge,ae;if(U)var pe=[0,0,0,0];var Me=function(Ke,tt){var he;if(tt<0)he=0;else if(tt<ie){for(be=Math.min(ce+1,T-1),he=be;he>=0&&!(F[he]<=tt);he--);he=Math.min(he,T-2)}else{for(he=ce;he<T&&!(F[he]>tt);he++);he=Math.min(he-1,T-2)}ce=he,ie=tt;var Se=F[he+1]-F[he];if(Se===0)return;if(se=(tt-F[he])/Se,g)if(le=R[he],me=R[he===0?he:he-1],ge=R[he>T-2?T-1:he+1],ae=R[he>T-3?T-1:he+2],y)h(me,le,ge,ae,se,se*se,se*se*se,l(Ke,C),S);else{var Ue;if(U)Ue=h(me,le,ge,ae,se,se*se,se*se*se,pe,1),Ue=u(pe);else{if(N)return n(le,ge,se);Ue=s(me,le,ge,ae,se,se*se,se*se*se)}A(Ke,C,Ue)}else if(y)p(R[he],R[he+1],se,l(Ke,C),S);else{var Ue;if(U)p(R[he],R[he+1],se,pe,1),Ue=u(pe);else{if(N)return n(R[he],R[he+1],se);Ue=x(R[he],R[he+1],se)}A(Ke,C,Ue)}},xe=new Z({target:E._target,life:H,loop:E._loop,delay:E._delay,onframe:Me,ondestroy:w});return B&&B!=="spline"&&(xe.easing=B),xe}var o=function(E,B,w,P){this._tracks={},this._target=E,this._loop=B||!1,this._getter=w||O,this._setter=P||M,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};o.prototype={when:function(E,B){var w=this._tracks;for(var P in B){if(!B.hasOwnProperty(P))continue;if(!w[P]){w[P]=[];var C=this._getter(this._target,P);if(C==null)continue;E!==0&&w[P].push({time:0,value:i(C)})}w[P].push({time:E,value:B[P]})}return this},during:function(E){return this._onframeList.push(E),this},pause:function(){for(var E=0;E<this._clipList.length;E++)this._clipList[E].pause();this._paused=!0},resume:function(){for(var E=0;E<this._clipList.length;E++)this._clipList[E].resume();this._paused=!1},isPaused:function(){return!!this._paused},_doneCallback:function(){this._tracks={},this._clipList.length=0;for(var E=this._doneList,B=E.length,w=0;w<B;w++)E[w].call(this)},start:function(E,B){var w=this,P=0,C=function(){P--,P||w._doneCallback()},b;for(var l in this._tracks){if(!this._tracks.hasOwnProperty(l))continue;var A=f(this,E,C,this._tracks[l],l,B);A&&(this._clipList.push(A),P++,this.animation&&this.animation.addClip(A),b=A)}if(b){var g=b.onframe;b.onframe=function(T,m){g(T,m);for(var y=0;y<w._onframeList.length;y++)w._onframeList[y](T,m)}}return P||this._doneCallback(),this},stop:function(E){for(var B=this._clipList,w=this.animation,P=0;P<B.length;P++){var C=B[P];E&&C.onframe(this._target,1),w&&w.removeClip(C)}B.length=0},delay:function(E){return this._delay=E,this},done:function(E){return E&&this._doneList.push(E),this},getClips:function(){return this._clipList}};var c=o;Re.exports=c},"C+DQ":function(Re,te,v){},"C/vA":function(Re,te,v){"use strict";v.d(te,"a",function(){return Z});function Z(K){const I=this;let k=!1,_;return function(){return k||(k=!0,_=K.apply(I,arguments)),_}}},C0SR:function(Re,te,v){var Z=v("YH21"),K=function(){this._track=[]};K.prototype={constructor:K,recognize:function(M,x,n){return this._doTrack(M,x,n),this._recognize(M)},clear:function(){return this._track.length=0,this},_doTrack:function(M,x,n){var p=M.touches;if(!p)return;for(var a={points:[],touches:[],target:x,event:M},t=0,h=p.length;t<h;t++){var s=p[t],i=Z.clientToLocal(n,s,{});a.points.push([i.zrX,i.zrY]),a.touches.push(s)}this._track.push(a)},_recognize:function(M){for(var x in _)if(_.hasOwnProperty(x)){var n=_[x](this._track,M);if(n)return n}}};function I(M){var x=M[1][0]-M[0][0],n=M[1][1]-M[0][1];return Math.sqrt(x*x+n*n)}function k(M){return[(M[0][0]+M[1][0])/2,(M[0][1]+M[1][1])/2]}var _={pinch:function(M,x){var n=M.length;if(!n)return;var p=(M[n-1]||{}).points,a=(M[n-2]||{}).points||p;if(a&&a.length>1&&p&&p.length>1){var t=I(p)/I(a);!isFinite(t)&&(t=1),x.pinchScale=t;var h=k(p);return x.pinchX=h[0],x.pinchY=h[1],{type:"pinch",target:M[0].target,event:x}}}},O=K;Re.exports=O},"Cg/j":function(Re,te,v){"use strict";v.d(te,"b",function(){return Z}),v.d(te,"a",function(){return K}),v.d(te,"c",function(){return k}),v.d(te,"d",function(){return _});var Z;(function(O){O.serviceIds=new Map,O.DI_TARGET="$di$target",O.DI_DEPENDENCIES="$di$dependencies";function M(x){return x[O.DI_DEPENDENCIES]||[]}O.getServiceDependencies=M})(Z||(Z={}));const K=k("instantiationService");function I(O,M,x,n){M[Z.DI_TARGET]===M?M[Z.DI_DEPENDENCIES].push({id:O,index:x,optional:n}):(M[Z.DI_DEPENDENCIES]=[{id:O,index:x,optional:n}],M[Z.DI_TARGET]=M)}function k(O){if(Z.serviceIds.has(O))return Z.serviceIds.get(O);const M=function(x,n,p){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");I(M,x,p,!1)};return M.toString=()=>O,Z.serviceIds.set(O,M),M}function _(O){return function(M,x,n){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");I(O,M,n,!0)}}},CnIC:function(Re,te){Re.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAWCAYAAADTlvzyAAAAAXNSR0IArs4c6QAAA+JJREFUSA2dVltslEUUPmf+f7cXt+oKRKzVtCoICbARtVEJIA+mQiMaI00UXuCBRCT2AZPGaCJvWjUmQowPSBpN+kK8RKVNCIZLorIEVEqFmABVgxsuspi2wHZ3Z+f4za7/9r9sSe0k7Zz55pzzzZzL7M80zdHaJ7fnx+g9EeokptkklGGm/geX0PZDq1hP0w1MpzHm7pA5LLQfZKka6t/MaqZ1p7q4UGMvArkRBMC+IWnTpvC4EMeEzI+bD9NWoZpk1nzt1Yu0cXB44js27qMlY+pE0fAzqfjPtXxHCPcOFZdr0tuIlWOvfyXnnBWmTQjh1MNQtynSBVaynhFnROOFgZP6y84lbl/YSPmBPackAeBVOHc8vP8MuVgnvHWtGQdacO66ygT2jDw/eKLwUADDIkDYmNePIU/1fqWR626V3I8HZMT+eBYHCw3AHSEoSEjKzA0rzLuNcmGs1np+MnY5jDNJcxgL3NBRztWwwsuLdAy1PBbGQ+uRpclCJOwiEvEXINTaBPMAr66hFSieSPL9hErRVyLc7sfKsnL+CmMBwtzZ2K9EcsmvBLL2jpZiP4rvhh+vyrj9ylbqU8RPVzFPKBX3e6I3Bwi7uriE8O3yNu2MbuCuB/hZiBuwV/Lv4RATsxto/YZ79eZwsQnJt51LG/7061s5QGiBzlT8qGL+3MresC/MruV6HP2108PsjHZ4+532UhzifX4cUTl9PBX7xI95coTQbhjhBk/Bzqi20fGSm4UwJ4ALzUPLHqVQcaBY6lb+QfYgkYHDTI69JwsPs+GXgMyvoHLpWsF8/dqxullaUw9uumBSuyIhrMcScerdsayUE0OrEcrW/2z/IaW+uJw9v2/jqrYJz65MODh0o0UoZl+YhXYDoctlS/xpzw/OQuSwG0QtnsFUM4h/g7N3P1qhf4+zbIKXZFlXZIwV716Tih2wax4YlkeopF+HXAmByLm3foqlM9fofZDdXTb6H/9AfLolSVu2L9YdSMFizxSHObQ65X7AAycKH4O3fAPE/sK2tDo8mnc+g2LN/HoObjbb6r2jXq/pbZcX8Zjf5emyMT3WaeXqEFjR7rG88wbEGZNZ57ZFsjn3TXbUgF1XB6ukwo/JLziRwUlyrxyI5RHGch6rSjMXnjyYkcn3FalicjOVoknLrbq+cM+W7+MJVGN65hw+S/RSoo4WfbiMGuONdOap+3nU7pYJfWrUvFOeM4a2olKfwG0D/ejXm0qGQ/upkcaj0HuxmwfDehFCT2HdHnGO/E1tukhJx6Em9FgTctOEz4cmtM8t+BOkwn485TCPk6Er+Nk+n7yTRm72ffMvtr1U/uTpxS8AAAAASUVORK5CYII="},DBLp:function(Re,te){function v(){}v.prototype={diff:function(_,O,M){M||(M=function(o,c){return o===c}),this.equals=M;var x=this;_=_.slice(),O=O.slice();var n=O.length,p=_.length,a=1,t=n+p,h=[{newPos:-1,components:[]}],s=this.extractCommon(h[0],O,_,0);if(h[0].newPos+1>=n&&s+1>=p){for(var i=[],u=0;u<O.length;u++)i.push(u);return[{indices:i,count:O.length}]}function d(){for(var o=-1*a;o<=a;o+=2){var c,E=h[o-1],B=h[o+1],w=(B?B.newPos:0)-o;E&&(h[o-1]=void 0);var P=E&&E.newPos+1<n,C=B&&0<=w&&w<p;if(!P&&!C){h[o]=void 0;continue}if(!P||C&&E.newPos<B.newPos?(c=K(B),x.pushComponent(c.components,void 0,!0)):(c=E,c.newPos++,x.pushComponent(c.components,!0,void 0)),w=x.extractCommon(c,O,_,o),c.newPos+1>=n&&w+1>=p)return Z(x,c.components,O,_);h[o]=c}a++}for(;a<=t;){var f=d();if(f)return f}},pushComponent:function(_,O,M){var x=_[_.length-1];x&&x.added===O&&x.removed===M?_[_.length-1]={count:x.count+1,added:O,removed:M}:_.push({count:1,added:O,removed:M})},extractCommon:function(_,O,M,x){for(var n=O.length,p=M.length,a=_.newPos,t=a-x,h=0;a+1<n&&t+1<p&&this.equals(O[a+1],M[t+1]);)a++,t++,h++;return h&&_.components.push({count:h}),_.newPos=a,t},tokenize:function(_){return _.slice()},join:function(_){return _.slice()}};function Z(_,O,M,x){for(var n=0,p=O.length,a=0,t=0;n<p;n++){var h=O[n];if(h.removed){for(var s=[],i=t;i<t+h.count;i++)s.push(i);h.indices=s,t+=h.count}else{for(var s=[],i=a;i<a+h.count;i++)s.push(i);h.indices=s,a+=h.count,h.added||(t+=h.count)}}return O}function K(_){return{newPos:_.newPos,components:_.components.slice(0)}}var I=new v;function k(_,O,M){return I.diff(_,O,M)}Re.exports=k},DN4a:function(Re,te,v){var Z=v("Fofx"),K=v("QBsz"),I=Z.identity,k=5e-5;function _(t){return t>k||t<-k}var O=function(t){t=t||{},t.position||(this.position=[0,0]),t.rotation==null&&(this.rotation=0),t.scale||(this.scale=[1,1]),this.origin=this.origin||null},M=O.prototype;M.transform=null,M.needLocalTransform=function(){return _(this.rotation)||_(this.position[0])||_(this.position[1])||_(this.scale[0]-1)||_(this.scale[1]-1)};var x=[];M.updateTransform=function(){var t=this.parent,h=t&&t.transform,s=this.needLocalTransform(),i=this.transform;if(!(s||h)){i&&I(i);return}i=i||Z.create(),s?this.getLocalTransform(i):I(i),h&&(s?Z.mul(i,t.transform,i):Z.copy(i,t.transform)),this.transform=i;var u=this.globalScaleRatio;if(u!=null&&u!==1){this.getGlobalScale(x);var d=x[0]<0?-1:1,f=x[1]<0?-1:1,o=((x[0]-d)*u+d)/x[0]||0,c=((x[1]-f)*u+f)/x[1]||0;i[0]*=o,i[1]*=o,i[2]*=c,i[3]*=c}this.invTransform=this.invTransform||Z.create(),Z.invert(this.invTransform,i)},M.getLocalTransform=function(t){return O.getLocalTransform(this,t)},M.setTransform=function(t){var h=this.transform,s=t.dpr||1;h?t.setTransform(s*h[0],s*h[1],s*h[2],s*h[3],s*h[4],s*h[5]):t.setTransform(s,0,0,s,0,0)},M.restoreTransform=function(t){var h=t.dpr||1;t.setTransform(h,0,0,h,0,0)};var n=[],p=Z.create();M.setLocalTransform=function(t){if(!t)return;var h=t[0]*t[0]+t[1]*t[1],s=t[2]*t[2]+t[3]*t[3],i=this.position,u=this.scale;_(h-1)&&(h=Math.sqrt(h)),_(s-1)&&(s=Math.sqrt(s)),t[0]<0&&(h=-h),t[3]<0&&(s=-s),i[0]=t[4],i[1]=t[5],u[0]=h,u[1]=s,this.rotation=Math.atan2(-t[1]/s,t[0]/h)},M.decomposeTransform=function(){if(!this.transform)return;var t=this.parent,h=this.transform;t&&t.transform&&(Z.mul(n,t.invTransform,h),h=n);var s=this.origin;s&&(s[0]||s[1])&&(p[4]=s[0],p[5]=s[1],Z.mul(n,h,p),n[4]-=s[0],n[5]-=s[1],h=n),this.setLocalTransform(h)},M.getGlobalScale=function(t){var h=this.transform;return t=t||[],h?(t[0]=Math.sqrt(h[0]*h[0]+h[1]*h[1]),t[1]=Math.sqrt(h[2]*h[2]+h[3]*h[3]),h[0]<0&&(t[0]=-t[0]),h[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},M.transformCoordToLocal=function(t,h){var s=[t,h],i=this.invTransform;return i&&K.applyTransform(s,s,i),s},M.transformCoordToGlobal=function(t,h){var s=[t,h],i=this.transform;return i&&K.applyTransform(s,s,i),s},O.getLocalTransform=function(t,h){h=h||[],I(h);var s=t.origin,i=t.scale||[1,1],u=t.rotation||0,d=t.position||[0,0];return s&&(h[4]-=s[0],h[5]-=s[1]),Z.scale(h,h,i),u&&Z.rotate(h,h,u),s&&(h[4]+=s[0],h[5]+=s[1]),h[4]+=d[0],h[5]+=d[1],h};var a=O;Re.exports=a},Dagg:function(Re,te,v){var Z=v("Gev7"),K=v("mFDi"),I=v("bYtY"),k=v("Xnb7");function _(M){Z.call(this,M)}_.prototype={constructor:_,type:"image",brush:function(M,x){var n=this.style,p=n.image;n.bind(M,this,x);var a=this._image=k.createOrUpdateImage(p,this._image,this,this.onload);if(!a||!k.isImageReady(a))return;var t=n.x||0,h=n.y||0,s=n.width,i=n.height,u=a.width/a.height;if(s==null&&i!=null?s=i*u:i==null&&s!=null?i=s/u:s==null&&i==null&&(s=a.width,i=a.height),this.setTransform(M),n.sWidth&&n.sHeight){var d=n.sx||0,f=n.sy||0;M.drawImage(a,d,f,n.sWidth,n.sHeight,t,h,s,i)}else if(n.sx&&n.sy){var d=n.sx,f=n.sy,o=s-d,c=i-f;M.drawImage(a,d,f,o,c,t,h,s,i)}else M.drawImage(a,t,h,s,i);n.text!=null&&(this.restoreTransform(M),this.drawRectText(M,this.getBoundingRect()))},getBoundingRect:function(){var M=this.style;return this._rect||(this._rect=new K(M.x||0,M.y||0,M.width||0,M.height||0)),this._rect}},I.inherits(_,Z);var O=_;Re.exports=O},DlQD:function(Re,te,v){(function(Z,K){Re.exports=K()})(this,function(){"use strict";function Z(Ze,ke){for(var He=0;He<ke.length;He++){var we=ke[He];we.enumerable=we.enumerable||!1,we.configurable=!0,"value"in we&&(we.writable=!0),Object.defineProperty(Ze,we.key,we)}}function K(Ze,ke,He){return ke&&Z(Ze.prototype,ke),He&&Z(Ze,He),Ze}function I(Ze,ke){if(!Ze)return;if(typeof Ze=="string")return k(Ze,ke);var He=Object.prototype.toString.call(Ze).slice(8,-1);if(He==="Object"&&Ze.constructor&&(He=Ze.constructor.name),He==="Map"||He==="Set")return Array.from(Ze);if(He==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(He))return k(Ze,ke)}function k(Ze,ke){(ke==null||ke>Ze.length)&&(ke=Ze.length);for(var He=0,we=new Array(ke);He<ke;He++)we[He]=Ze[He];return we}function _(Ze,ke){var He;if(typeof Symbol=="undefined"||Ze[Symbol.iterator]==null){if(Array.isArray(Ze)||(He=I(Ze))||ke&&Ze&&typeof Ze.length=="number"){He&&(Ze=He);var we=0;return function(){return we>=Ze.length?{done:!0}:{done:!1,value:Ze[we++]}}}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 He=Ze[Symbol.iterator](),He.next.bind(He)}function O(Ze,ke){return ke={exports:{}},Ze(ke,ke.exports),ke.exports}var M=O(function(Ze){function ke(){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 He(we){Ze.exports.defaults=we}Ze.exports={defaults:ke(),getDefaults:ke,changeDefaults:He}}),x=M.defaults,n=M.getDefaults,p=M.changeDefaults,a=/[&<>"']/,t=/[&<>"']/g,h=/[<>"']|&(?!#?\w+;)/,s=/[<>"']|&(?!#?\w+;)/g,i={"&":"&","<":"<",">":">",'"':""","'":"'"},u=function(ke){return i[ke]};function d(Ze,ke){if(ke){if(a.test(Ze))return Ze.replace(t,u)}else if(h.test(Ze))return Ze.replace(s,u);return Ze}var f=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function o(Ze){return Ze.replace(f,function(ke,He){return He=He.toLowerCase(),He==="colon"?":":He.charAt(0)==="#"?He.charAt(1)==="x"?String.fromCharCode(parseInt(He.substring(2),16)):String.fromCharCode(+He.substring(1)):""})}var c=/(^|[^\[])\^/g;function E(Ze,ke){Ze=Ze.source||Ze,ke=ke||"";var He={replace:function(Le,Pe){return Pe=Pe.source||Pe,Pe=Pe.replace(c,"$1"),Ze=Ze.replace(Le,Pe),He},getRegex:function(){return new RegExp(Ze,ke)}};return He}var B=/[^\w:]/g,w=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function P(Ze,ke,He){if(Ze){var we;try{we=decodeURIComponent(o(He)).replace(B,"").toLowerCase()}catch(Le){return null}if(we.indexOf("javascript:")===0||we.indexOf("vbscript:")===0||we.indexOf("data:")===0)return null}ke&&!w.test(He)&&(He=g(ke,He));try{He=encodeURI(He).replace(/%25/g,"%")}catch(Le){return null}return He}var C={},b=/^[^:]+:\/*[^/]*$/,l=/^([^:]+:)[\s\S]*$/,A=/^([^:]+:\/*[^/]*)[\s\S]*$/;function g(Ze,ke){C[" "+Ze]||(b.test(Ze)?C[" "+Ze]=Ze+"/":C[" "+Ze]=U(Ze,"/",!0)),Ze=C[" "+Ze];var He=Ze.indexOf(":")===-1;return ke.substring(0,2)==="//"?He?ke:Ze.replace(l,"$1")+ke:ke.charAt(0)==="/"?He?ke:Ze.replace(A,"$1")+ke:Ze+ke}var T={exec:function(){}};function m(Ze){for(var ke=1,He,we;ke<arguments.length;ke++){He=arguments[ke];for(we in He)Object.prototype.hasOwnProperty.call(He,we)&&(Ze[we]=He[we])}return Ze}function y(Ze,ke){var He=Ze.replace(/\|/g,function(Pe,We,Xe){for(var gt=!1,Lt=We;--Lt>=0&&Xe[Lt]==="\\";)gt=!gt;return gt?"|":" |"}),we=He.split(/ \|/),Le=0;if(we.length>ke)we.splice(ke);else for(;we.length<ke;)we.push("");for(;Le<we.length;Le++)we[Le]=we[Le].trim().replace(/\\\|/g,"|");return we}function U(Ze,ke,He){var we=Ze.length;if(we===0)return"";for(var Le=0;Le<we;){var Pe=Ze.charAt(we-Le-1);if(Pe===ke&&!He)Le++;else if(Pe!==ke&&He)Le++;else break}return Ze.substr(0,we-Le)}function N(Ze,ke){if(Ze.indexOf(ke[1])===-1)return-1;for(var He=Ze.length,we=0,Le=0;Le<He;Le++)if(Ze[Le]==="\\")Le++;else if(Ze[Le]===ke[0])we++;else if(Ze[Le]===ke[1]&&(we--,we<0))return Le;return-1}function S(Ze){Ze&&Ze.sanitize&&!Ze.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 H={escape:d,unescape:o,edit:E,cleanUrl:P,resolveUrl:g,noopTest:T,merge:m,splitCells:y,rtrim:U,findClosingBracket:N,checkSanitizeDeprecation:S},F=M.defaults,R=H.rtrim,z=H.splitCells,Q=H.escape,$=H.findClosingBracket;function ee(Ze,ke,He){var we=ke.href,Le=ke.title?Q(ke.title):null,Pe=Ze[1].replace(/\\([\[\]])/g,"$1");return Ze[0].charAt(0)!=="!"?{type:"link",raw:He,href:we,title:Le,text:Pe}:{type:"image",raw:He,href:we,title:Le,text:Q(Pe)}}function fe(Ze,ke){var He=Ze.match(/^(\s+)(?:```)/);if(He===null)return ke;var we=He[1];return ke.split(`
|
|
`).map(function(Le){var Pe=Le.match(/^\s+/);if(Pe===null)return Le;var We=Pe[0];return We.length>=we.length?Le.slice(we.length):Le}).join(`
|
|
`)}var Ae=function(){function Ze(He){this.options=He||F}var ke=Ze.prototype;return ke.space=function(we){var Le=this.rules.block.newline.exec(we);if(Le)return Le[0].length>1?{type:"space",raw:Le[0]}:{raw:`
|
|
`}},ke.code=function(we,Le){var Pe=this.rules.block.code.exec(we);if(Pe){var We=Le[Le.length-1];if(We&&We.type==="paragraph")return{raw:Pe[0],text:Pe[0].trimRight()};var Xe=Pe[0].replace(/^ {4}/gm,"");return{type:"code",raw:Pe[0],codeBlockStyle:"indented",text:this.options.pedantic?Xe:R(Xe,`
|
|
`)}}},ke.fences=function(we){var Le=this.rules.block.fences.exec(we);if(Le){var Pe=Le[0],We=fe(Pe,Le[3]||"");return{type:"code",raw:Pe,lang:Le[2]?Le[2].trim():Le[2],text:We}}},ke.heading=function(we){var Le=this.rules.block.heading.exec(we);if(Le)return{type:"heading",raw:Le[0],depth:Le[1].length,text:Le[2]}},ke.nptable=function(we){var Le=this.rules.block.nptable.exec(we);if(Le){var Pe={type:"table",header:z(Le[1].replace(/^ *| *\| *$/g,"")),align:Le[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Le[3]?Le[3].replace(/\n$/,"").split(`
|
|
`):[],raw:Le[0]};if(Pe.header.length===Pe.align.length){var We=Pe.align.length,Xe;for(Xe=0;Xe<We;Xe++)/^ *-+: *$/.test(Pe.align[Xe])?Pe.align[Xe]="right":/^ *:-+: *$/.test(Pe.align[Xe])?Pe.align[Xe]="center":/^ *:-+ *$/.test(Pe.align[Xe])?Pe.align[Xe]="left":Pe.align[Xe]=null;for(We=Pe.cells.length,Xe=0;Xe<We;Xe++)Pe.cells[Xe]=z(Pe.cells[Xe],Pe.header.length);return Pe}}},ke.hr=function(we){var Le=this.rules.block.hr.exec(we);if(Le)return{type:"hr",raw:Le[0]}},ke.blockquote=function(we){var Le=this.rules.block.blockquote.exec(we);if(Le){var Pe=Le[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:Le[0],text:Pe}}},ke.list=function(we){var Le=this.rules.block.list.exec(we);if(Le){for(var Pe=Le[0],We=Le[2],Xe=We.length>1,gt=We[We.length-1]===")",Lt={type:"list",raw:Pe,ordered:Xe,start:Xe?+We.slice(0,-1):"",loose:!1,items:[]},en=Le[0].match(this.rules.block.item),Zt=!1,xt,Ct,pt,Je,Qe,Oe,je,St=en.length,bt=0;bt<St;bt++)xt=en[bt],Pe=xt,Ct=xt.length,xt=xt.replace(/^ *([*+-]|\d+[.)]) */,""),~xt.indexOf(`
|
|
`)&&(Ct-=xt.length,xt=this.options.pedantic?xt.replace(/^ {1,4}/gm,""):xt.replace(new RegExp("^ {1,"+Ct+"}","gm"),"")),bt!==St-1&&(pt=this.rules.block.bullet.exec(en[bt+1])[0],(Xe?pt.length===1||!gt&&pt[pt.length-1]===")":pt.length>1||this.options.smartLists&&pt!==We)&&(Je=en.slice(bt+1).join(`
|
|
`),Lt.raw=Lt.raw.substring(0,Lt.raw.length-Je.length),bt=St-1)),Qe=Zt||/\n\n(?!\s*$)/.test(xt),bt!==St-1&&(Zt=xt.charAt(xt.length-1)===`
|
|
`,Qe||(Qe=Zt)),Qe&&(Lt.loose=!0),Oe=/^\[[ xX]\] /.test(xt),je=void 0,Oe&&(je=xt[1]!==" ",xt=xt.replace(/^\[[ xX]\] +/,"")),Lt.items.push({type:"list_item",raw:Pe,task:Oe,checked:je,loose:Qe,text:xt});return Lt}},ke.html=function(we){var Le=this.rules.block.html.exec(we);if(Le)return{type:this.options.sanitize?"paragraph":"html",raw:Le[0],pre:!this.options.sanitizer&&(Le[1]==="pre"||Le[1]==="script"||Le[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Le[0]):Q(Le[0]):Le[0]}},ke.def=function(we){var Le=this.rules.block.def.exec(we);if(Le){Le[3]&&(Le[3]=Le[3].substring(1,Le[3].length-1));var Pe=Le[1].toLowerCase().replace(/\s+/g," ");return{tag:Pe,raw:Le[0],href:Le[2],title:Le[3]}}},ke.table=function(we){var Le=this.rules.block.table.exec(we);if(Le){var Pe={type:"table",header:z(Le[1].replace(/^ *| *\| *$/g,"")),align:Le[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Le[3]?Le[3].replace(/\n$/,"").split(`
|
|
`):[]};if(Pe.header.length===Pe.align.length){Pe.raw=Le[0];var We=Pe.align.length,Xe;for(Xe=0;Xe<We;Xe++)/^ *-+: *$/.test(Pe.align[Xe])?Pe.align[Xe]="right":/^ *:-+: *$/.test(Pe.align[Xe])?Pe.align[Xe]="center":/^ *:-+ *$/.test(Pe.align[Xe])?Pe.align[Xe]="left":Pe.align[Xe]=null;for(We=Pe.cells.length,Xe=0;Xe<We;Xe++)Pe.cells[Xe]=z(Pe.cells[Xe].replace(/^ *\| *| *\| *$/g,""),Pe.header.length);return Pe}}},ke.lheading=function(we){var Le=this.rules.block.lheading.exec(we);if(Le)return{type:"heading",raw:Le[0],depth:Le[2].charAt(0)==="="?1:2,text:Le[1]}},ke.paragraph=function(we){var Le=this.rules.block.paragraph.exec(we);if(Le)return{type:"paragraph",raw:Le[0],text:Le[1].charAt(Le[1].length-1)===`
|
|
`?Le[1].slice(0,-1):Le[1]}},ke.text=function(we,Le){var Pe=this.rules.block.text.exec(we);if(Pe){var We=Le[Le.length-1];return We&&We.type==="text"?{raw:Pe[0],text:Pe[0]}:{type:"text",raw:Pe[0],text:Pe[0]}}},ke.escape=function(we){var Le=this.rules.inline.escape.exec(we);if(Le)return{type:"escape",raw:Le[0],text:Q(Le[1])}},ke.tag=function(we,Le,Pe){var We=this.rules.inline.tag.exec(we);if(We)return!Le&&/^<a /i.test(We[0])?Le=!0:Le&&/^<\/a>/i.test(We[0])&&(Le=!1),!Pe&&/^<(pre|code|kbd|script)(\s|>)/i.test(We[0])?Pe=!0:Pe&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(We[0])&&(Pe=!1),{type:this.options.sanitize?"text":"html",raw:We[0],inLink:Le,inRawBlock:Pe,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(We[0]):Q(We[0]):We[0]}},ke.link=function(we){var Le=this.rules.inline.link.exec(we);if(Le){var Pe=$(Le[2],"()");if(Pe>-1){var We=Le[0].indexOf("!")===0?5:4,Xe=We+Le[1].length+Pe;Le[2]=Le[2].substring(0,Pe),Le[0]=Le[0].substring(0,Xe).trim(),Le[3]=""}var gt=Le[2],Lt="";if(this.options.pedantic){var en=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(gt);en?(gt=en[1],Lt=en[3]):Lt=""}else Lt=Le[3]?Le[3].slice(1,-1):"";gt=gt.trim().replace(/^<([\s\S]*)>$/,"$1");var Zt=ee(Le,{href:gt&>.replace(this.rules.inline._escapes,"$1"),title:Lt&&Lt.replace(this.rules.inline._escapes,"$1")},Le[0]);return Zt}},ke.reflink=function(we,Le){var Pe;if((Pe=this.rules.inline.reflink.exec(we))||(Pe=this.rules.inline.nolink.exec(we))){var We=(Pe[2]||Pe[1]).replace(/\s+/g," ");if(We=Le[We.toLowerCase()],!We||!We.href){var Xe=Pe[0].charAt(0);return{type:"text",raw:Xe,text:Xe}}var gt=ee(Pe,We,Pe[0]);return gt}},ke.strong=function(we,Le,Pe){Pe===void 0&&(Pe="");var We=this.rules.inline.strong.start.exec(we);if(We&&(!We[1]||We[1]&&(Pe===""||this.rules.inline.punctuation.exec(Pe)))){Le=Le.slice(-1*we.length);var Xe=We[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;Xe.lastIndex=0;for(var gt;(We=Xe.exec(Le))!=null;)if(gt=this.rules.inline.strong.middle.exec(Le.slice(0,We.index+3)),gt)return{type:"strong",raw:we.slice(0,gt[0].length),text:we.slice(2,gt[0].length-2)}}},ke.em=function(we,Le,Pe){Pe===void 0&&(Pe="");var We=this.rules.inline.em.start.exec(we);if(We&&(!We[1]||We[1]&&(Pe===""||this.rules.inline.punctuation.exec(Pe)))){Le=Le.slice(-1*we.length);var Xe=We[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;Xe.lastIndex=0;for(var gt;(We=Xe.exec(Le))!=null;)if(gt=this.rules.inline.em.middle.exec(Le.slice(0,We.index+2)),gt)return{type:"em",raw:we.slice(0,gt[0].length),text:we.slice(1,gt[0].length-1)}}},ke.codespan=function(we){var Le=this.rules.inline.code.exec(we);if(Le){var Pe=Le[2].replace(/\n/g," "),We=/[^ ]/.test(Pe),Xe=Pe.startsWith(" ")&&Pe.endsWith(" ");return We&&Xe&&(Pe=Pe.substring(1,Pe.length-1)),Pe=Q(Pe,!0),{type:"codespan",raw:Le[0],text:Pe}}},ke.br=function(we){var Le=this.rules.inline.br.exec(we);if(Le)return{type:"br",raw:Le[0]}},ke.del=function(we){var Le=this.rules.inline.del.exec(we);if(Le)return{type:"del",raw:Le[0],text:Le[1]}},ke.autolink=function(we,Le){var Pe=this.rules.inline.autolink.exec(we);if(Pe){var We,Xe;return Pe[2]==="@"?(We=Q(this.options.mangle?Le(Pe[1]):Pe[1]),Xe="mailto:"+We):(We=Q(Pe[1]),Xe=We),{type:"link",raw:Pe[0],text:We,href:Xe,tokens:[{type:"text",raw:We,text:We}]}}},ke.url=function(we,Le){var Pe;if(Pe=this.rules.inline.url.exec(we)){var We,Xe;if(Pe[2]==="@")We=Q(this.options.mangle?Le(Pe[0]):Pe[0]),Xe="mailto:"+We;else{var gt;do gt=Pe[0],Pe[0]=this.rules.inline._backpedal.exec(Pe[0])[0];while(gt!==Pe[0]);We=Q(Pe[0]),Pe[1]==="www."?Xe="http://"+We:Xe=We}return{type:"link",raw:Pe[0],text:We,href:Xe,tokens:[{type:"text",raw:We,text:We}]}}},ke.inlineText=function(we,Le,Pe){var We=this.rules.inline.text.exec(we);if(We){var Xe;return Le?Xe=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(We[0]):Q(We[0]):We[0]:Xe=Q(this.options.smartypants?Pe(We[0]):We[0]),{type:"text",raw:We[0],text:Xe}}},Ze}(),ce=H.noopTest,ie=H.edit,be=H.merge,se={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|<![A-Z][\\s\\S]*?>\\n*|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>\\n*|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:ce,table:ce,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};se._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,se._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,se.def=ie(se.def).replace("label",se._label).replace("title",se._title).getRegex(),se.bullet=/(?:[*+-]|\d{1,9}[.)])/,se.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,se.item=ie(se.item,"gm").replace(/bull/g,se.bullet).getRegex(),se.list=ie(se.list).replace(/bull/g,se.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+se.def.source+")").getRegex(),se._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",se._comment=/<!--(?!-?>)[\s\S]*?-->/,se.html=ie(se.html,"i").replace("comment",se._comment).replace("tag",se._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),se.paragraph=ie(se._paragraph).replace("hr",se.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",se._tag).getRegex(),se.blockquote=ie(se.blockquote).replace("paragraph",se.paragraph).getRegex(),se.normal=be({},se),se.gfm=be({},se.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n *([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n *\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),se.gfm.nptable=ie(se.gfm.nptable).replace("hr",se.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",se._tag).getRegex(),se.gfm.table=ie(se.gfm.table).replace("hr",se.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",se._tag).getRegex(),se.pedantic=be({},se.normal,{html:ie(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",se._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:ce,paragraph:ie(se.normal._paragraph).replace("hr",se.hr).replace("heading",` *#{1,6} *[^
|
|
]`).replace("lheading",se.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var me={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:ce,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:ce,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/,punctuation:/^([\s*punctuation])/};me._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",me.punctuation=ie(me.punctuation).replace(/punctuation/g,me._punctuation).getRegex(),me._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",me._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",me.em.start=ie(me.em.start).replace(/punctuation/g,me._punctuation).getRegex(),me.em.middle=ie(me.em.middle).replace(/punctuation/g,me._punctuation).replace(/overlapSkip/g,me._overlapSkip).getRegex(),me.em.endAst=ie(me.em.endAst,"g").replace(/punctuation/g,me._punctuation).getRegex(),me.em.endUnd=ie(me.em.endUnd,"g").replace(/punctuation/g,me._punctuation).getRegex(),me.strong.start=ie(me.strong.start).replace(/punctuation/g,me._punctuation).getRegex(),me.strong.middle=ie(me.strong.middle).replace(/punctuation/g,me._punctuation).replace(/blockSkip/g,me._blockSkip).getRegex(),me.strong.endAst=ie(me.strong.endAst,"g").replace(/punctuation/g,me._punctuation).getRegex(),me.strong.endUnd=ie(me.strong.endUnd,"g").replace(/punctuation/g,me._punctuation).getRegex(),me.blockSkip=ie(me._blockSkip,"g").getRegex(),me.overlapSkip=ie(me._overlapSkip,"g").getRegex(),me._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,me._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,me._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])?)+(?![-_])/,me.autolink=ie(me.autolink).replace("scheme",me._scheme).replace("email",me._email).getRegex(),me._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,me.tag=ie(me.tag).replace("comment",se._comment).replace("attribute",me._attribute).getRegex(),me._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,me._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,me._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,me.link=ie(me.link).replace("label",me._label).replace("href",me._href).replace("title",me._title).getRegex(),me.reflink=ie(me.reflink).replace("label",me._label).getRegex(),me.reflinkSearch=ie(me.reflinkSearch,"g").replace("reflink",me.reflink).replace("nolink",me.nolink).getRegex(),me.normal=be({},me),me.pedantic=be({},me.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:ie(/^!?\[(label)\]\((.*?)\)/).replace("label",me._label).getRegex(),reflink:ie(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",me._label).getRegex()}),me.gfm=be({},me.normal,{escape:ie(me.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.!#$%&'*+\/=?_`{\|}~-]+@))/}),me.gfm.url=ie(me.gfm.url,"i").replace("email",me.gfm._extended_email).getRegex(),me.breaks=be({},me.gfm,{br:ie(me.br).replace("{2,}","*").getRegex(),text:ie(me.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var le={block:se,inline:me},ge=M.defaults,ae=le.block,pe=le.inline;function Me(Ze){return Ze.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 xe(Ze){var ke="",He,we,Le=Ze.length;for(He=0;He<Le;He++)we=Ze.charCodeAt(He),Math.random()>.5&&(we="x"+we.toString(16)),ke+="&#"+we+";";return ke}var Ke=function(){function Ze(He){this.tokens=[],this.tokens.links=Object.create(null),this.options=He||ge,this.options.tokenizer=this.options.tokenizer||new Ae,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var we={block:ae.normal,inline:pe.normal};this.options.pedantic?(we.block=ae.pedantic,we.inline=pe.pedantic):this.options.gfm&&(we.block=ae.gfm,this.options.breaks?we.inline=pe.breaks:we.inline=pe.gfm),this.tokenizer.rules=we}Ze.lex=function(we,Le){var Pe=new Ze(Le);return Pe.lex(we)};var ke=Ze.prototype;return ke.lex=function(we){return we=we.replace(/\r\n|\r/g,`
|
|
`).replace(/\t/g," "),this.blockTokens(we,this.tokens,!0),this.inline(this.tokens),this.tokens},ke.blockTokens=function(we,Le,Pe){Le===void 0&&(Le=[]),Pe===void 0&&(Pe=!0),we=we.replace(/^ +$/gm,"");for(var We,Xe,gt,Lt;we;){if(We=this.tokenizer.space(we)){we=we.substring(We.raw.length),We.type&&Le.push(We);continue}if(We=this.tokenizer.code(we,Le)){we=we.substring(We.raw.length),We.type?Le.push(We):(Lt=Le[Le.length-1],Lt.raw+=`
|
|
`+We.raw,Lt.text+=`
|
|
`+We.text);continue}if(We=this.tokenizer.fences(we)){we=we.substring(We.raw.length),Le.push(We);continue}if(We=this.tokenizer.heading(we)){we=we.substring(We.raw.length),Le.push(We);continue}if(We=this.tokenizer.nptable(we)){we=we.substring(We.raw.length),Le.push(We);continue}if(We=this.tokenizer.hr(we)){we=we.substring(We.raw.length),Le.push(We);continue}if(We=this.tokenizer.blockquote(we)){we=we.substring(We.raw.length),We.tokens=this.blockTokens(We.text,[],Pe),Le.push(We);continue}if(We=this.tokenizer.list(we)){for(we=we.substring(We.raw.length),gt=We.items.length,Xe=0;Xe<gt;Xe++)We.items[Xe].tokens=this.blockTokens(We.items[Xe].text,[],!1);Le.push(We);continue}if(We=this.tokenizer.html(we)){we=we.substring(We.raw.length),Le.push(We);continue}if(Pe&&(We=this.tokenizer.def(we))){we=we.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(we)){we=we.substring(We.raw.length),Le.push(We);continue}if(We=this.tokenizer.lheading(we)){we=we.substring(We.raw.length),Le.push(We);continue}if(Pe&&(We=this.tokenizer.paragraph(we))){we=we.substring(We.raw.length),Le.push(We);continue}if(We=this.tokenizer.text(we,Le)){we=we.substring(We.raw.length),We.type?Le.push(We):(Lt=Le[Le.length-1],Lt.raw+=`
|
|
`+We.raw,Lt.text+=`
|
|
`+We.text);continue}if(we){var en="Infinite loop on byte: "+we.charCodeAt(0);if(this.options.silent){console.error(en);break}else throw new Error(en)}}return Le},ke.inline=function(we){var Le,Pe,We,Xe,gt,Lt,en=we.length;for(Le=0;Le<en;Le++){Lt=we[Le];switch(Lt.type){case"paragraph":case"text":case"heading":{Lt.tokens=[],this.inlineTokens(Lt.text,Lt.tokens);break}case"table":{for(Lt.tokens={header:[],cells:[]},Xe=Lt.header.length,Pe=0;Pe<Xe;Pe++)Lt.tokens.header[Pe]=[],this.inlineTokens(Lt.header[Pe],Lt.tokens.header[Pe]);for(Xe=Lt.cells.length,Pe=0;Pe<Xe;Pe++)for(gt=Lt.cells[Pe],Lt.tokens.cells[Pe]=[],We=0;We<gt.length;We++)Lt.tokens.cells[Pe][We]=[],this.inlineTokens(gt[We],Lt.tokens.cells[Pe][We]);break}case"blockquote":{this.inline(Lt.tokens);break}case"list":{for(Xe=Lt.items.length,Pe=0;Pe<Xe;Pe++)this.inline(Lt.items[Pe].tokens);break}}}return we},ke.inlineTokens=function(we,Le,Pe,We,Xe){Le===void 0&&(Le=[]),Pe===void 0&&(Pe=!1),We===void 0&&(We=!1),Xe===void 0&&(Xe="");var gt,Lt=we,en;if(this.tokens.links){var Zt=Object.keys(this.tokens.links);if(Zt.length>0)for(;(en=this.tokenizer.rules.inline.reflinkSearch.exec(Lt))!=null;)Zt.includes(en[0].slice(en[0].lastIndexOf("[")+1,-1))&&(Lt=Lt.slice(0,en.index)+"["+"a".repeat(en[0].length-2)+"]"+Lt.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(en=this.tokenizer.rules.inline.blockSkip.exec(Lt))!=null;)Lt=Lt.slice(0,en.index)+"["+"a".repeat(en[0].length-2)+"]"+Lt.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;we;){if(gt=this.tokenizer.escape(we)){we=we.substring(gt.raw.length),Le.push(gt);continue}if(gt=this.tokenizer.tag(we,Pe,We)){we=we.substring(gt.raw.length),Pe=gt.inLink,We=gt.inRawBlock,Le.push(gt);continue}if(gt=this.tokenizer.link(we)){we=we.substring(gt.raw.length),gt.type==="link"&&(gt.tokens=this.inlineTokens(gt.text,[],!0,We)),Le.push(gt);continue}if(gt=this.tokenizer.reflink(we,this.tokens.links)){we=we.substring(gt.raw.length),gt.type==="link"&&(gt.tokens=this.inlineTokens(gt.text,[],!0,We)),Le.push(gt);continue}if(gt=this.tokenizer.strong(we,Lt,Xe)){we=we.substring(gt.raw.length),gt.tokens=this.inlineTokens(gt.text,[],Pe,We),Le.push(gt);continue}if(gt=this.tokenizer.em(we,Lt,Xe)){we=we.substring(gt.raw.length),gt.tokens=this.inlineTokens(gt.text,[],Pe,We),Le.push(gt);continue}if(gt=this.tokenizer.codespan(we)){we=we.substring(gt.raw.length),Le.push(gt);continue}if(gt=this.tokenizer.br(we)){we=we.substring(gt.raw.length),Le.push(gt);continue}if(gt=this.tokenizer.del(we)){we=we.substring(gt.raw.length),gt.tokens=this.inlineTokens(gt.text,[],Pe,We),Le.push(gt);continue}if(gt=this.tokenizer.autolink(we,xe)){we=we.substring(gt.raw.length),Le.push(gt);continue}if(!Pe&&(gt=this.tokenizer.url(we,xe))){we=we.substring(gt.raw.length),Le.push(gt);continue}if(gt=this.tokenizer.inlineText(we,We,Me)){we=we.substring(gt.raw.length),Xe=gt.raw.slice(-1),Le.push(gt);continue}if(we){var xt="Infinite loop on byte: "+we.charCodeAt(0);if(this.options.silent){console.error(xt);break}else throw new Error(xt)}}return Le},K(Ze,null,[{key:"rules",get:function(){return{block:ae,inline:pe}}}]),Ze}(),tt=M.defaults,he=H.cleanUrl,Se=H.escape,Ue=function(){function Ze(He){this.options=He||tt}var ke=Ze.prototype;return ke.code=function(we,Le,Pe){var We=(Le||"").match(/\S*/)[0];if(this.options.highlight){var Xe=this.options.highlight(we,We);Xe!=null&&Xe!==we&&(Pe=!0,we=Xe)}return We?'<pre><code class="'+this.options.langPrefix+Se(We,!0)+'">'+(Pe?we:Se(we,!0))+`</code></pre>
|
|
`:"<pre><code>"+(Pe?we:Se(we,!0))+`</code></pre>
|
|
`},ke.blockquote=function(we){return`<blockquote>
|
|
`+we+`</blockquote>
|
|
`},ke.html=function(we){return we},ke.heading=function(we,Le,Pe,We){return this.options.headerIds?"<h"+Le+' id="'+this.options.headerPrefix+We.slug(Pe)+'">'+we+"</h"+Le+`>
|
|
`:"<h"+Le+">"+we+"</h"+Le+`>
|
|
`},ke.hr=function(){return this.options.xhtml?`<hr/>
|
|
`:`<hr>
|
|
`},ke.list=function(we,Le,Pe){var We=Le?"ol":"ul",Xe=Le&&Pe!==1?' start="'+Pe+'"':"";return"<"+We+Xe+`>
|
|
`+we+"</"+We+`>
|
|
`},ke.listitem=function(we){return"<li>"+we+`</li>
|
|
`},ke.checkbox=function(we){return"<input "+(we?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},ke.paragraph=function(we){return"<p>"+we+`</p>
|
|
`},ke.table=function(we,Le){return Le&&(Le="<tbody>"+Le+"</tbody>"),`<table>
|
|
<thead>
|
|
`+we+`</thead>
|
|
`+Le+`</table>
|
|
`},ke.tablerow=function(we){return`<tr>
|
|
`+we+`</tr>
|
|
`},ke.tablecell=function(we,Le){var Pe=Le.header?"th":"td",We=Le.align?"<"+Pe+' align="'+Le.align+'">':"<"+Pe+">";return We+we+"</"+Pe+`>
|
|
`},ke.strong=function(we){return"<strong>"+we+"</strong>"},ke.em=function(we){return"<em>"+we+"</em>"},ke.codespan=function(we){return"<code>"+we+"</code>"},ke.br=function(){return this.options.xhtml?"<br/>":"<br>"},ke.del=function(we){return"<del>"+we+"</del>"},ke.link=function(we,Le,Pe){if(we=he(this.options.sanitize,this.options.baseUrl,we),we===null)return Pe;var We='<a href="'+Se(we)+'"';return Le&&(We+=' title="'+Le+'"'),We+=">"+Pe+"</a>",We},ke.image=function(we,Le,Pe){if(we=he(this.options.sanitize,this.options.baseUrl,we),we===null)return Pe;var We='<img src="'+we+'" alt="'+Pe+'"';return Le&&(We+=' title="'+Le+'"'),We+=this.options.xhtml?"/>":">",We},ke.text=function(we){return we},Ze}(),Ne=function(){function Ze(){}var ke=Ze.prototype;return ke.strong=function(we){return we},ke.em=function(we){return we},ke.codespan=function(we){return we},ke.del=function(we){return we},ke.html=function(we){return we},ke.text=function(we){return we},ke.link=function(we,Le,Pe){return""+Pe},ke.image=function(we,Le,Pe){return""+Pe},ke.br=function(){return""},Ze}(),ct=function(){function Ze(){this.seen={}}var ke=Ze.prototype;return ke.slug=function(we){var Le=we.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(Le)){var Pe=Le;do this.seen[Pe]++,Le=Pe+"-"+this.seen[Pe];while(this.seen.hasOwnProperty(Le))}return this.seen[Le]=0,Le},Ze}(),mt=M.defaults,Rt=H.unescape,ht=function(){function Ze(He){this.options=He||mt,this.options.renderer=this.options.renderer||new Ue,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ne,this.slugger=new ct}Ze.parse=function(we,Le){var Pe=new Ze(Le);return Pe.parse(we)};var ke=Ze.prototype;return ke.parse=function(we,Le){Le===void 0&&(Le=!0);var Pe="",We,Xe,gt,Lt,en,Zt,xt,Ct,pt,Je,Qe,Oe,je,St,bt,Dt,Ht,_t,Gt=we.length;for(We=0;We<Gt;We++){Je=we[We];switch(Je.type){case"space":continue;case"hr":{Pe+=this.renderer.hr();continue}case"heading":{Pe+=this.renderer.heading(this.parseInline(Je.tokens),Je.depth,Rt(this.parseInline(Je.tokens,this.textRenderer)),this.slugger);continue}case"code":{Pe+=this.renderer.code(Je.text,Je.lang,Je.escaped);continue}case"table":{for(Ct="",xt="",Lt=Je.header.length,Xe=0;Xe<Lt;Xe++)xt+=this.renderer.tablecell(this.parseInline(Je.tokens.header[Xe]),{header:!0,align:Je.align[Xe]});for(Ct+=this.renderer.tablerow(xt),pt="",Lt=Je.cells.length,Xe=0;Xe<Lt;Xe++){for(Zt=Je.tokens.cells[Xe],xt="",en=Zt.length,gt=0;gt<en;gt++)xt+=this.renderer.tablecell(this.parseInline(Zt[gt]),{header:!1,align:Je.align[gt]});pt+=this.renderer.tablerow(xt)}Pe+=this.renderer.table(Ct,pt);continue}case"blockquote":{pt=this.parse(Je.tokens),Pe+=this.renderer.blockquote(pt);continue}case"list":{for(Qe=Je.ordered,Oe=Je.start,je=Je.loose,Lt=Je.items.length,pt="",Xe=0;Xe<Lt;Xe++)bt=Je.items[Xe],Dt=bt.checked,Ht=bt.task,St="",bt.task&&(_t=this.renderer.checkbox(Dt),je?bt.tokens.length>0&&bt.tokens[0].type==="text"?(bt.tokens[0].text=_t+" "+bt.tokens[0].text,bt.tokens[0].tokens&&bt.tokens[0].tokens.length>0&&bt.tokens[0].tokens[0].type==="text"&&(bt.tokens[0].tokens[0].text=_t+" "+bt.tokens[0].tokens[0].text)):bt.tokens.unshift({type:"text",text:_t}):St+=_t),St+=this.parse(bt.tokens,je),pt+=this.renderer.listitem(St,Ht,Dt);Pe+=this.renderer.list(pt,Qe,Oe);continue}case"html":{Pe+=this.renderer.html(Je.text);continue}case"paragraph":{Pe+=this.renderer.paragraph(this.parseInline(Je.tokens));continue}case"text":{for(pt=Je.tokens?this.parseInline(Je.tokens):Je.text;We+1<Gt&&we[We+1].type==="text";)Je=we[++We],pt+=`
|
|
`+(Je.tokens?this.parseInline(Je.tokens):Je.text);Pe+=Le?this.renderer.paragraph(pt):pt;continue}default:{var kt='Token with "'+Je.type+'" type was not found.';if(this.options.silent){console.error(kt);return}else throw new Error(kt)}}}return Pe},ke.parseInline=function(we,Le){Le=Le||this.renderer;var Pe="",We,Xe,gt=we.length;for(We=0;We<gt;We++){Xe=we[We];switch(Xe.type){case"escape":{Pe+=Le.text(Xe.text);break}case"html":{Pe+=Le.html(Xe.text);break}case"link":{Pe+=Le.link(Xe.href,Xe.title,this.parseInline(Xe.tokens,Le));break}case"image":{Pe+=Le.image(Xe.href,Xe.title,Xe.text);break}case"strong":{Pe+=Le.strong(this.parseInline(Xe.tokens,Le));break}case"em":{Pe+=Le.em(this.parseInline(Xe.tokens,Le));break}case"codespan":{Pe+=Le.codespan(Xe.text);break}case"br":{Pe+=Le.br();break}case"del":{Pe+=Le.del(this.parseInline(Xe.tokens,Le));break}case"text":{Pe+=Le.text(Xe.text);break}default:{var Lt='Token with "'+Xe.type+'" type was not found.';if(this.options.silent){console.error(Lt);return}else throw new Error(Lt)}}}return Pe},Ze}(),Ut=H.merge,zt=H.checkSanitizeDeprecation,ze=H.escape,Ve=M.getDefaults,Et=M.changeDefaults,Ot=M.defaults;function ut(Ze,ke,He){if(typeof Ze=="undefined"||Ze===null)throw new Error("marked(): input parameter is undefined or null");if(typeof Ze!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(Ze)+", string expected");if(typeof ke=="function"&&(He=ke,ke=null),ke=Ut({},ut.defaults,ke||{}),zt(ke),He){var we=ke.highlight,Le;try{Le=Ke.lex(Ze,ke)}catch(gt){return He(gt)}var Pe=function(Lt){var en;if(!Lt)try{en=ht.parse(Le,ke)}catch(Zt){Lt=Zt}return ke.highlight=we,Lt?He(Lt):He(null,en)};if(!we||we.length<3)return Pe();if(delete ke.highlight,!Le.length)return Pe();var We=0;ut.walkTokens(Le,function(gt){gt.type==="code"&&(We++,setTimeout(function(){we(gt.text,gt.lang,function(Lt,en){if(Lt)return Pe(Lt);en!=null&&en!==gt.text&&(gt.text=en,gt.escaped=!0),We--,We===0&&Pe()})},0))}),We===0&&Pe();return}try{var Xe=Ke.lex(Ze,ke);return ke.walkTokens&&ut.walkTokens(Xe,ke.walkTokens),ht.parse(Xe,ke)}catch(gt){if(gt.message+=`
|
|
Please report this to https://github.com/markedjs/marked.`,ke.silent)return"<p>An error occurred:</p><pre>"+ze(gt.message+"",!0)+"</pre>";throw gt}}ut.options=ut.setOptions=function(Ze){return Ut(ut.defaults,Ze),Et(ut.defaults),ut},ut.getDefaults=Ve,ut.defaults=Ot,ut.use=function(Ze){var ke=Ut({},Ze);if(Ze.renderer&&function(){var we=ut.defaults.renderer||new Ue,Le=function(Xe){var gt=we[Xe];we[Xe]=function(){for(var Lt=arguments.length,en=new Array(Lt),Zt=0;Zt<Lt;Zt++)en[Zt]=arguments[Zt];var xt=Ze.renderer[Xe].apply(we,en);return xt===!1&&(xt=gt.apply(we,en)),xt}};for(var Pe in Ze.renderer)Le(Pe);ke.renderer=we}(),Ze.tokenizer&&function(){var we=ut.defaults.tokenizer||new Ae,Le=function(Xe){var gt=we[Xe];we[Xe]=function(){for(var Lt=arguments.length,en=new Array(Lt),Zt=0;Zt<Lt;Zt++)en[Zt]=arguments[Zt];var xt=Ze.tokenizer[Xe].apply(we,en);return xt===!1&&(xt=gt.apply(we,en)),xt}};for(var Pe in Ze.tokenizer)Le(Pe);ke.tokenizer=we}(),Ze.walkTokens){var He=ut.defaults.walkTokens;ke.walkTokens=function(we){Ze.walkTokens(we),He&&He(we)}}ut.setOptions(ke)},ut.walkTokens=function(Ze,ke){for(var He=_(Ze),we;!(we=He()).done;){var Le=we.value;ke(Le);switch(Le.type){case"table":{for(var Pe=_(Le.tokens.header),We;!(We=Pe()).done;){var Xe=We.value;ut.walkTokens(Xe,ke)}for(var gt=_(Le.tokens.cells),Lt;!(Lt=gt()).done;)for(var en=Lt.value,Zt=_(en),xt;!(xt=Zt()).done;){var Ct=xt.value;ut.walkTokens(Ct,ke)}break}case"list":{ut.walkTokens(Le.items,ke);break}default:Le.tokens&&ut.walkTokens(Le.tokens,ke)}}},ut.Parser=ht,ut.parser=ht.parse,ut.Renderer=Ue,ut.TextRenderer=Ne,ut.Lexer=Ke,ut.lexer=Ke.lex,ut.Tokenizer=Ae,ut.Slugger=ct,ut.parse=ut;var vt=ut;return vt})},Dols:function(Re,te,v){Re.exports={tree:"tree___22OZV",learn:"learn___ky8Lf",name:"name___2Aqg-",sign:"sign___1WxvA"}},E7E6:function(Re,te){Re.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADUCAYAAADZTGx+AAAgAElEQVR4Xu2dC3BU13nHv7MrIQkQQoCEtAIEAmxig4GACxhogpM6NY7jOKZO4nimwcFot23SNNNO02napJN0JjN9TNMm5eG3x4+YSeI3ftUGjCDGQMBgG4wxb+0u4mEeQhJI2tP539WR7i77uPfuvXfvar8zs7Mr7bnn8Z3vt9/5zlMQB5aAQQmsW7fO397eHujp6Rkfi8XGExFeDX2vABHVSSlrhBDDiKhdSnlOCBGWUu4mol1lZWWv3nfffccNZueJaMITpeBCeEICjz/++LCOjo5GIpogpWwUQjT2vU/A/wCClNJvtbBCCCml3CaEeGzChAmPLF269LLVtNx6jgFxS9IeyOehhx6q7OnpmSilnEhE2gsA4L0PhjHZillRUUHl5WUUf6+giopyKi+Pv8rKyrSX3++nnp4e7XXpUgedP3+ezp37lE6ebKPe3l4tCyFEhIj+UwjxaHNz8+ls+ebrewYkX5J3IN9169YNv3DhwsRYLIbXJAWBDoZRmbKFYkPRhw4dqgEwdCgAwOfyPiDKyefzWS454Dh58iQdPPiJBk0fKN1E9KyU8gehUKjVcuIOPciAOCRYJ5J95JFHyq9cuaJZACHEJCklIOgHQUqZ0QIAACg/FB+//niPwxD/H3793QqwJkePHqW2tjaSUsKinCOibwWDwfVulcFIPgyIESm5FGfDhg0lBw8ehOM7qbe3dxIggCXAe58VgBOcts0AgP6XfwCACho2bBgNGTLEpZoYz6arq4vee2+PBooQosvv999y//33bzaegrMxGRBn5ZuQOpR77dq1dVB4BQCsQB8AgGB8JicY3RsAgNewYQO//EOHDnPdAtgttr1736cjR44g2VPl5eXXLF++HBYl74EBsbkJHnnkkZFQ/p6eHk3xdd2gpj6nuDxTlvAB8GufDAH+h+8Ga0A365133qHTp8/AkvwiGAx+3wt1ZUBMtsL69evLTpw4gZEfKH+THoC+z9WZkkQ3RwEQ7wLFf/2VY5yLE2yyKp6LfuHCBdq06W0A0j1kyJCG++6771S+C8mAJLUAukEPP/xw/ZUrVyb5/f4m+AAAgYia+iwCJsTSDuUMOMJD+7tB8e5Q3A/A9xzSS2DHjh0UiUQxWvY3zc3N/5VvWRUlIE888cSI9vZ2TfH7+v8AAD5A1m6QEKLPEcbIT/yl/AG8e9ERzreSmck/Go3S9u078MjOUCg018yzTsQdlIBgNOjw4cMTYAWSfv2VFcg4HBrvBsWdYLzHQYh3hWAJAAkHZyQQi8Xo1Vdfw4RirLKysvree++94ExOxlIt2JZes2bNmL5hUK37owehb6lE2r6M6gYpRxjKz90gYwpjNhac766uy9TRcYk6O7u09+7uborFpDYBWVVVRaNHj06YgNyyZSudPXsWP0S3BIPBN8zmaWd8zwICZzgSiUzs7e3VlL8PANUNwt+VRkaDBrpAcR8Af7s5IWZnY3k1LcxldHZ2UkdHh/bCZywxUf8DJNkGLhobJ9DUqVM1H+2DDz6kQ4cO4ZEfhUKhf81nvT0DyNq1a2+MxWJfIaIFRDSNiAKZJsVKS0v7h0KVBdDPChfzaJDdCnX5MixAJ3V2dmiK39UVB0DBgG5RuqB8tsrKSs1a4F11UzFq1draSqdPx5di4f9z5syhixcvaJOHRPRgKBS63+76mEkv74A8+OCDs7u7u39JRDfpC64mxdTSiEQIKtgZNtPKWeJeuXKlX/HjVgDW4FIfFJ39CwzTJQPFhuKPGDFCe1efhw8frv0v248VZtFbWlq02XRYkGuvvYY+/HAfulhvBIPBW2ysqumk8grImjVrvheLxf6DiEpgEcaPH081NWMIgmVn2HRbpn0AAMS7O3ErgPdLl+ATxLtFaoVtugQwQakUX1kCtJH6nA0AIzVBN2zTpk20f/9+gi7ATxFC7A8Gg58x8rxTcfIGyOrVq38gpQQcNG7cOLrhhhk8R2CxlaFMeuUf8AXiXaJsAMAnS7YA+r9LSkoslsz8Y6+++qpacoKHw6FQCBuy8hbyAsgDDzywuLe3dwPWHV133XU0eTIGojikkwD2Vaj+frIVwP/xfaaAYet0FgBdIPxieyXA4X/yySeVBTkfDAZH5rNsrgMCx3vNmjXvSSlnTJzYSDNmzMhn/T2RN37hVd9fdYGUD4D/w0IYAUD1+fUwAIBCm7zcunUr7dmjOek9oVAor/S6DsiaNWtui8ViL6HRliz5fME1nhWiAIDq7ytfYGA49BLBR8gU8Auv+vypukKDbREjRrZefPFF+CAyGAxa36FlpbGSnnEdkFWrVj1ARCumTZtGU6dOsaEK+U8Cw5z6ro8aDlXWAMOkmQL6+AoA/UiQsgQYsCimgB+Mhx9+uDgBWb169T4p5bTPfe6PtSHAQggAAL/8A5Nh8dEf9Tf6zZkChi4zWQAMZXNIlMDq1auLE5BVq1ZhM/KIW2/9U3JzdCSTAmKIMXkYVO8DGAEAs/T6OQC9H4DvOJiTAABBCIVCrvdy9CV1PfNVq1Zp6w5uv/3L5iSWQ+z4eiCsAxr41U+cGe7S9kWnCxjnzwQArAMHeyXAgNgMCIY6sXRBr/jKB4B1yAQAlkPoAUh2hAEAr+C1F4BsqTEgNgCC0aFjx47RsWPHNTjSBSg3+vnpukAAwI7Z4GyNzt8blwADkiMgODZm7969mu+AAEcYy6bVKFDyaBADYFw5vRCTAckBkMOHD9P773+gtWNtbS199rOfpQkTJrAV8IJm21QGBsQiIJhE+sMfdmnNcP3119PChQsZDJuU0kvJMCAWAMFI1IYNG7W1RwsWLKCZM2d6qU25LDZKgAGxAMiePXu14yrHjh1Ld955p43NwUl5TQIMiElA1GZ+vC9btkxzyDkMXgkwICYBuXjxIm3cuImtx+BlIqFmDIhJQM6cOUNbt/5e8zvgf3AY3BJgQEwCgnsl3n13Ozvng5uL/toxICYBiUZP0vbt22nRokU0ffr0IlGT4q0mA8KAFK/2G6g5A8KAGFCT4o3CgDAgxav9BmrOgDAgBtSkeKMwIAxI8Wq/gZozIAyIATUp3igMCANSvNpvoOYMCANiQE2KNwoDwoAUr/YbqDkDwoAYUJPijcKAMCDFq/0Gas6AMCAG1KR4ozAgDEjxar+BmjMgDIgBNSneKAwIA1K82m+g5gwIA2JATYo3CgPCgBSv9huoOQPCgBhQk+KNwoAwIMWr/QZqzoAwIAbUpHijMCAMSPFqv4GaMyAMiAE1Kd4oDAgDUrzab6DmDAgDYkBNijcKA8KAFK/2G6g5A8KAGFCT4o3CgDAgxav9BmrOgDAgBtTEu1FwrXZ3d7f2unLlivaO/6nbhHMtOQPCgOSqQ44/j8uKlPInw4Br8NKF6upqqqmpyal8DAgDkpMC2fUwFF0pv94a4DPuobcScC99U1OTdjW31cCAMCBWdcf0c+kAwP9hJZwIjY2NVFZWZjlpBoQBsaw8yQ+m8geUNYCFwPduBlgOWBBYEquBAWFATOmOVX/AVCY2RPb5fFRfX0/Dhg3LKTUGhAG5SoGc8Ady0tIMD8M6lJSUUGlpKQ0ZMqT/HaNYuVgOlSUDUqSA5MMfsAoJrAEgUAAABj0QVtM18hwDMkgB8Zo/kE0Z4S8oxU8GAHDkKzAgBQxIofgDSrlVV0j/669gyGUo1kl4GBCPA1Lo/oDeGtjhEzgJQ6q0GRCPAdLR0UHnz5/vnzl2an7AqqLl0x+wWuZcnmNAPATIxYsXKRqNuj5fkKxAgCCdQ5xPfyAXRbf6LAPiIUCOHDmiWQ43QiH6A27IJTkPBsRDgHzyySeW1x0lN2yq+YFC9wcYEBclsGrVKm3dw+0eAiQSiRC6WUYDIEg1IqS6R0bT4XjpJcAWxEOAYNVqa2srdXV19bcY+wP5xZcB8RAgShXgh2CiD36CV+cH8qu27uXOgHgQEPean3PKJgEGhAHJpiNF/T0DwoAUNQDZKs+AMCDZdKSov2dAGJCiBiBb5RkQBiSbjhT19wwIA1LUAGSrPAPCgGTTkaL+ngFhQIoagGyVZ0AYkGw6UlDfY/8MViHYtQKBAWFACgoAVVh13haW5ehf6hRGHBaHY3+wcDOXwIAwILnoj6PPqj336lxePQhGDqHDSudJkyblVEYGhAHJSYHseBj77pMtAf7OdDC10Xz56FGjkkqK58X9IBarUhCP4Rc/FQROnssLwcCCwJJYDWxB2IJY1Z2UzyVbA/1J7bZmZCCx4cOHUyAQMBAzfRQGhAExrUDKGqRylPN9Cgt2WcIxBxyjRo3K+fhRBoQBSQsIRoTS+QZGnGTT5Jl4AMO4ACH5lUt3KlX2DAgDchUEyjJYvbjGhJ5njKrfc68HARDYNc+RrawMSJEAAmVP1SVSd/plUxQnv9dbA3UIhQLCyXyNpM2ADDJAsk2gGVEKJ+KoY4hSdYvcsgZW6sWAFCAg+gk0vY/gBWugTmFJ5Rvw2bxWEI0/Y/2OLIt5FsI8iH6IVA+CHRNoFsUWb6y+S2sUBPpu0WA7mpQtiMcsCA6uVodX53vIFNYg2SdQUBSiNbDyo8CAeAiQc+fOUVtbm5V2zOkZdXtTcrdosFkDK0JiQDwEyOHDh7WRJieCmkBL1S2CpeCQWgIMiIcAsePwarcm0IoFKAbEQ4Cge4VuVraQbgIN1oGtQTbpmfueAfEQIFi+gQt02tvb+3fFubGcwpzKFFdsBsRDgCjVAyh4sTXIP4wMiAcByb9acAmUBBgQBoRpyCABBoQBYUAYkKslUAhLTVhz8y8BtiBsQfKvhR4uAQPCgHhYPZ0tGhaAYlj91KlT2vo3vDo6OrTVDGpFg9o0JoTYRkQHhRAfE9GOIUOGbFm+fHn2SSubqsCreW0SJCeTWQKAACsWDh06RGfOnNGG0y2GGBG9J4T4HRE9EwwGAY5jgQFxTLScMCSA24N37NhBuGrbiSCEaCGinwSDwTcdSd+JRDOlyU662xLPT37hcJi2b9/uGBgparXZ5/P9uLm5eYOdNWYLYqc0OS2t+7R161bNcmQKlZWVNGHCBKqpqaERI0YQ/sa5vmqpPzanXb58mS5evEgXLlzQtiMcP35c+ztTEEJsLCkp+cGKFSt22dEcDIgdUuQ0NAns27ePWlpaKN2pLA0NDRoUeFVXV1uS2qeffkrHjh3TXhkgvOzz+b7X3Ny81lImuocYkFwlWIDPY8ckfp3xwoiSesdqZfyajxkzxlSt8Gu/efNm+uijj1I+h2NI586dS6NHjzaVbrbIsFbwb7CfJ1UQQjwuhAg1Nzd3ZEsr3fcMiFXJFcBz6iTGZBiy7a3HyYhGIcHo1GuvvUZnz569SiITJ06kG2+80XYwkjMCKPB3jhw5kqpV3vf7/XetXLnygJUmY0CsSM2Dz2D+IBkEq6etwA9oamrKWkv4A88++6w2h6EP2CqwZMmSnK9AyFqApAiwJBs2bNCsYlKIEtGCUCiUkqBM+TAgZlshz/HVIdXJ3SM7D5owAgjyf+655wg+gT7A8txyyy1aVy0fAQ7966+/TqdPn07IXgixv6SkZOGKFSuuNnUZCsqA5KMVDeSp/AS9jwCldONY0mxdLJThpZdeumoId9q0abR48WLXjidNJ0aUDz7R/v37kyHZUlZW9sXly5d3GWgCLQoDYlRSDsXT39+h7yI5dYhEpmpgX31VVVVW/wO/0JgR14drrrmGbr75ZoekZC3Zt956iw4cSHQ9MAPf3Nz8Z0IIzMhnDQxIVhHZF0H5CcoqAAirfkIupVJ76zHvgBd8BrwbOaF97969tGXLloTsx48fT7feeqvndmLCCr/yyiva/Ik+CCG+HwwGf2FEhgyIESmZjAMTr/cR1Gc7/QSjRVIH0OlBABBWDqCDU75u3bqEI5Iw0XfHHXf0T/AZLZdb8eCzPf/889rCSBWEEJf8fv+M+++/P/X4sK5wDEgOLaXO6k2GwQ0/IbnY6tihZKtg5/56DOfq5xwA3ze+8Q0aNmxYDlJ0/tFLly7Rr3/96wSwhRDPB4PBr2bLnQHJJqG+7/XdIvU5H36C/pBqPQxOn8aIpR6/+x0W0A6E+fPn06xZswxKML/Rdu/eTe+8805CIfx+/x+tXLlye6aSMSBJ0lEHV+sdZgCRw/JsS5qh9xOUj2DUT7CUYZaH0Jc/evRofyw481//+tc953ekqwas/TPPPKPtPdF1tdYHg8HbGBADGoNxcwgvH90j/Pond42s+gkGqmo6CnyPp556KuFHYunSpdqaqkIKWL+1fv16fZExkjU50wQiWxAibVIp1VIJuxtf7yforYKdfoLdZUZ6WMaxc+fO/qQxGbhs2TInsnI8zd/85jfJk4g/DYVC/5wuYwaESBvTz7Y+yUzLqesLkq2C036CmTKaiYuuiX7GfN68eTR79mwzSXgm7q5du2jbNuzijQfMsAeDwc8wIBmayCog+rN69TDAOgyWgONYn3jiiYTq3HPPPXlbSpKrXLEUBd1FffD5fI3Nzc3HUqXNFoRI2+SDV6ag7vJItgpW5hNybWQ3n8cSdiwAVAHzHnfddZebRbA9r9/+9rcJ8yJ+v/87K1eufJgBySBqAAInHaNV6uBqPQxevvDSdg3SJYjdgXv27On/D5avz5kzx8ksHU8b/hT8Kl036xfBYPD7DIjjoh98Gbz88ssJSzW+9KUvub6M3W6pYrITk546QN4IBoO3MCB2S7oI0nv66acT5g4wcz5y5MiCrjnugsHMug6QT4LB4BQGpKCbNT+Ff+yxx6izs7M/829/+9tUXl6en8LYlGtXVxc9+uijekBOB4PBGgbEJgEXUzIPPPBAwuTpypUrC2b2PF07YVZ97dqB8xyEEFeCwWAZA1JMmm1TXRkQmwRpNBk+OM6opLwRj7tYLrcDA+KywHPMjp30HAVo5HEpZXk0Gv5mLEbffeGFF7Q1Crfz6e5GRJf3ODzM62ATnDlzZtzly50hIrFSSqmdRvbCCy9qOTIgDgrexqR5otBGYaqkotHopFis5ydE4h4pZYk+CwbEAYE7mCQvNbFRuKdOnQp0d3f/iCi2QkoqTZU0A2KjwF1Iihcr2iDkcDg8Rkr590TyL4moIlOSDIgNAnc5CV7ublHgUkpfJBL5KyL5MyllpZFkGBAjUvJWHN4wZaE9otHo9Fis50EpaZ6ZxxkQM9LyRlzecmuiHaSUQ8Lh8D8KIf8hnZ/BXSwTAi2QqHxog4GGiluN3nVSyrRbFLMlwxYkm4S8+f1gPPaHiOaFQqF3M0nc8I7CcDj8NSL5mJRyeC5NyIDkIr38PssHx6WQv5RSRCKRfyGSP8LnXJuIAclVgvl7frAcPVpSUiLnz5//y+nTp/+1ECLjfdQZFb6trW14d3f3k0TyK3Y1CwNilyTzk85gOLx6+vTr+y4IEi+UlpZ+q7a2tj2dNNMCgvVTkUjrK1LS5+1sCgbETmnmJ61Cvv6gvr6ebrxxbr/ghKCN9fUNtwohUt4ZkhIQLA8Jh8PPEskv290EDIjdEnU/vUK9QAcXAy1YMD/FBT/ipUAgcKcQoidZmlcBEp/8Cz8hpfymE6JnQJyQqvtp4uxi3E+I/d364NUr2IYPH0aLFi3STqxJFYQQT9fXB+5NvljnKkBaW1v/jUj+rVMiZ0Cckqz76RbKJZ44vmnx4kU0dOjQLEIS/97Q0PB3+kgJgLS2ti4SgjbBijglbgbEKcnmJ12vXwNdWVmpXUUNC5ItwHpISZ9raGhoUXH7AZFSVoTD4d1E8ppsCeXyPQOSi/S8+SzONX777bevug9QlXbSpEk0d+5c2+9Lx2F/O3bsSLjURy8hXA13ww0zTF4qKg4EAoFZQgjtKJd+QJzuWqmCMyDeVHI7SrVv3z5qaWlJe4VEQ0ODdmUCXtXV1ZayxCHauMYAr9bW1pRp4PDwGTOmU2Njo6U8iAa6WhogbW1tU3p6uvdLKf0WUzT8GANiWFQFGRG/6rjkMxwOZyw//AFYFpz1izvV0RWCr6BOwIdVwkAA/BwcOI07BgEF/s4URo8eTdOnT6eqKuv3tAshektKSqfV1tYe1AAJh8OrpIwF3WgRBsQNKec/DwCCZfKRSMSVwmAId9q0a7NeYW20MEL4VgcCgZCA7xGJhE9JKbN7MUZTzxCPAbFBiAWUBLpB8BOcAgVgXHvttVRTox15YFvATbj19YEaEQ6H75Qylng7o23ZXJ0QA+KgcD2aNEa6sCvRrmuw0X2qrw9QIFBPw4fntHY2o8SE8H1NtLa2/rJvq6wr4mVAXBGzpzJJXpqCa6MnT55M0WhUu5dFfy+kuo4O103AH8E5wIiP18iRVQSLgeun3QniVwBkK5Fc4E6GfOyPW3L2Qj6wGAcOHKCNGzdmLA4gaGpqokmTJpocknW6luL3IhxujUgp65zOSqXPFsQtSbubD0adcBkqLAJGnNTFqKm6Vcoa4CppLE3x6nUKQoioaG09gQkR186zZ0DcVVwncsO98QBA/8L8hJG75OfPn0+1tSlvGnCiqLmm2cWA5CrCQf487tJQICjLAKc7OcB3qKwcTrAKVVUjtbkN3Cjb0dHRHzV5qXkBiK6Lu1gF0EpuFRHKnAxDqok5ONAAAKNJAAJdJEz06e97P3jwE/rwww/7i47vliz5vOZsF0ro62Kxk14oDWZnOXFiorIIgAKf9b/2Ki+MJMVhiIMAKABDptt9r1zppjfffJO6u7v7iwwnHDv5CiuIrTzMW1gtZqm06BLpLQNgwDKO5IDh0zgI6CbFu0pGVsEmp7N37/sJCwiR7he+cHPavRiWKuXKQ+JXPFHoiqDdyQROMjYwKYugoIBTnRyw7ikOwQAQ2fdLZK8HLNPGjZsSJgWvv/56mjy5KfvDHoshhO9OXmrisUYxWhwMn2LkSHWT8I4hVgy3JoeKioo+fwFdJEAxgvA/J8L27YnLSgDdzTcvKbh7DfuXmkBIbi5WfPnl9drM6dKlt5qaFIpGT2qL37BtEqs1iylAXlB+vWU4e/ZsymXlUEjlK8Tfq1zr2qBMLS1bEppmzpw51NAQKLjm6l+siJK7udz9zTffokuXLmm/KmZGNIoFEDi2+sk2WAZ0m1JNuGEdkt55xmf3lmFcrfObN7doVk0F7PnAVtdCC1ctd0cF3Now9e677xKUfebMG7SNM0bDYAQEjnKqOYbkCTeMGGHkaMB5jvsOGG71SsCq3Z07/5BQHFj7UaOsbYzKb72SNkyhMG5tuT127Djt3r1b2355003Gl4DhbNht294lzMTOmjUrv/KzkHtnZ2dCFwmWIdUcA+YL1LAqfAV0k/C3fo7BQvaOPgLr9tZbGxKGiQOBAM2dO8fRfJ1JPM2W2z4r4vihDehCoJuFkRUc4FVXZ2wZGLodW7f+nmbMmEELFy50RjY2pYoupN55hpXA/5IDLEB8sm3AeQYMmeYYbCqirckMhklBCCTjoQ1KYm50tQ4fPkI4whJnFC1ceJOhNf1QMPxKYXHbsmXLbG3gXBLDdtDkYVVYi+Sg5hj0s89O7mXIpU5mnh08k4IaIpmP/enrajl6cJwSvhoOxHj87NmztL3JmQL65a+99ro2O3v33Xdr+wLcDnCWk4dVU024AfyBOYb47LOZAQm365VLfoNlUtDwwXF9kDh29KhqDAxdAhL4FghTpkymadOmZexefPDBh3To0CHCcS633XZbLu2a8Vk1x6B3oNHF0y+dUAlgL4PyFdTsc0WFa4ujHZOBkYQHz6SgiaNHlWCcOrw6WfAHDx6kffv2a0ulq6tH0nXXXZfWOij/Be84DAxj7LkG/RyDAiJ5l5vKA3MMybPPsIDFGgbDpKClw6tVgztx/UEqZTp79lPauXMnqb47xs+bmiYRlkcnO6zo4mA0C0DNnDmT5s2bZ3iER23q0VsGjNtn3tQz4ECnO9e1GAEZHJOCOVx/oLMktl6gk06ZYBUOHTqsLXJTa4fQfRk7dqw2lg6fQ60VOnGild577z1NsfGLPnv2bJo4caK2f1kF/aYe5TfAh0g1xzBkSCmNHFmtnYyhhlXV+UzFqPxG6vz225sTDq4upEnB+KU54mf19fU/zukCHb2g7LqCLZvw0eXBpBOGDtHH1Yd4f79KO2AM8WAJlJMMSwOA8B0sUaqRJKSFoVXEw2gYTsUAEF6acMsmHy98X8iTgkKIdiLx54FAwNBJPqauVLPjEk8zDYzuD7pf8Alg0lOtSs2UHqABVJhbqKsbq3XZuJtkpgWujgurjXks/Q9QoUwKCiH2+Xz+u+vq6t43KgVTgCBRXAMdiUR+RBT7oZVroI0WLFW89vZL1N5+kTD2DljQLevuxnuPZgUw2xyfbxhB1dWjqFhGk3KRqdlnjx8/Trt27e5/rBB2CgpB3US+n9fX1/9MCHH12v8MQjANiEorbk16HpSS5pkVMscvXAmoSV5VA6/vFBSCtvl8JSvMWA1961gGpM+a+CKRyHeJ5E+llJWF2+xccqMSgNXetm2b1vXFwMn8+fP6D5w2moYb8YQQF4nEP9XX1/9P8q1RZvLPCRCVUTgcHiOl/CGR/AsicmYnjplacVzHJYAhc4+O9HUSif8VQvw8EAiczlUQtgCiCnHq1KlAd3f3PxHFvuO2f5KrIPj5wpZAn5/xUGlp6U9ramoy371goqq2AqLyPXnyZFNvb/ePicQ9uDHXRHk4KkvAlATiN9PKp3y+kp/U1dUdNvWwgciOAKLyPXPmzLjLlztDRGKllNLe8+kNVI6jDF4JCCFOE8m1ZWUVq0aPHn3CqZo6CogqNNZ1RaPhb8Zi9D0iWXi7nZySPqdrQQJit89H/11XF3haCNFlIQFTj7gCiL5E4XB4MZEMEdEdUsps9/KaqgxHHpwSEELg/NLnicSqQCCw2c1aug6IqhwWQvb09HyVSH6LiL7Ivoqbze79vOK+Bf0fkXiypKTkudra2sR1Ry5VIW+A6OsXjUZre3t778DBmPAAAAI6SURBVO6DZb5LdedsvCmBdwCF3+9fV1dXF98slMfgCUCSumCNQsgvSymXSklLeF4lj9rhTtadQtAGIcR6KbWNS0fdydZYLp4DRF9snLQSjUZvjsViS4Wg26SUVi++NiYNjuWKBIQQR6Wkl30+3/q6urq3hBBXb+J3pSTZM/E0IMnFj0Qi10kp/4QotphILJJSjs1eRY6RbwkIIU4SyRYi32YhxBv19fUD9yLku3BZ8i8oQJLrcurUiWt6e8Wi3l7CyBiO8JvicXkXS/EOEokWv582+/2ypaZm3IFCrXhBA5Is9La2trqenp6biGi2lJhv0eZcxhVq4xRIuU8Qid1CCKyB31VSUrK1trY2WiBlz1rMQQVIqtpeuHBidEcHzZIy/iLSXtfyWrGsupEQIb7WiT4iot1CxF9Dh9LuESPGnTGXUmHFHvSApGoOzLm0tbU19vb2TpVSThGCphLJKVLSVCFoYrHCAwikpCNC0MdE4qCU9LEQ4qDf7/+4trb2aN/cRGFpeI6lLUpAMslMSulva2ub2NPT0+TzyUAsJup9PgpIKQNSinohtM/1RFRo5/1cFkJEpKSwEDIihAjHYhT2+WQkFhPhkpKSQ7W1tUdwsnmOOjWoHmdALDbn+fPnR3V2dgKW0ULEqmIxUSWlHCmErJJSVAlBVVIS3kcS4X9ULoQolVKWZnpHcaSU3UKI7szv1EUkzuNSKSEI7+eFkOelFOeFEOd8Pnz24fOZioqKcFVV1VmLVS3qx/4fQLyzKIIkCJoAAAAASUVORK5CYII="},E9nw:function(Re,te){Re.exports=function(){var v=document.getSelection();if(!v.rangeCount)return function(){};for(var Z=document.activeElement,K=[],I=0;I<v.rangeCount;I++)K.push(v.getRangeAt(I));switch(Z.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":Z.blur();break;default:Z=null;break}return v.removeAllRanges(),function(){v.type==="Caret"&&v.removeAllRanges(),v.rangeCount||K.forEach(function(k){v.addRange(k)}),Z&&Z.focus()}}},ELLl:function(Re,te,v){(function(Z){Z(v("VrN/"))})(function(Z){var K={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},I=Z.Pos;Z.defineOption("autoCloseBrackets",!1,function(i,u,d){d&&d!=Z.Init&&(i.removeKeyMap(_),i.state.closeBrackets=null),u&&(O(k(u,"pairs")),i.state.closeBrackets=u,i.addKeyMap(_))});function k(i,u){return u=="pairs"&&typeof i=="string"?i:typeof i=="object"&&i[u]!=null?i[u]:K[u]}var _={Backspace:n,Enter:p};function O(i){for(var u=0;u<i.length;u++){var d=i.charAt(u),f="'"+d+"'";_[f]||(_[f]=M(d))}}O(K.pairs+"`");function M(i){return function(u){return t(u,i)}}function x(i){var u=i.state.closeBrackets;if(!u||u.override)return u;var d=i.getModeAt(i.getCursor());return d.closeBrackets||u}function n(i){var u=x(i);if(!u||i.getOption("disableInput"))return Z.Pass;for(var d=k(u,"pairs"),f=i.listSelections(),o=0;o<f.length;o++){if(!f[o].empty())return Z.Pass;var c=h(i,f[o].head);if(!c||d.indexOf(c)%2!=0)return Z.Pass}for(var o=f.length-1;o>=0;o--){var E=f[o].head;i.replaceRange("",I(E.line,E.ch-1),I(E.line,E.ch+1),"+delete")}}function p(i){var u=x(i),d=u&&k(u,"explode");if(!d||i.getOption("disableInput"))return Z.Pass;for(var f=i.listSelections(),o=0;o<f.length;o++){if(!f[o].empty())return Z.Pass;var c=h(i,f[o].head);if(!c||d.indexOf(c)%2!=0)return Z.Pass}i.operation(function(){var E=i.lineSeparator()||`
|
|
`;i.replaceSelection(E+E,null),i.execCommand("goCharLeft"),f=i.listSelections();for(var B=0;B<f.length;B++){var w=f[B].head.line;i.indentLine(w,null,!0),i.indentLine(w+1,null,!0)}})}function a(i){var u=Z.cmpPos(i.anchor,i.head)>0;return{anchor:new I(i.anchor.line,i.anchor.ch+(u?-1:1)),head:new I(i.head.line,i.head.ch+(u?1:-1))}}function t(i,u){var d=x(i);if(!d||i.getOption("disableInput"))return Z.Pass;var f=k(d,"pairs"),o=f.indexOf(u);if(o==-1)return Z.Pass;for(var c=k(d,"closeBefore"),E=k(d,"triples"),B=f.charAt(o+1)==u,w=i.listSelections(),P=o%2==0,C,b=0;b<w.length;b++){var l=w[b],A=l.head,g,T=i.getRange(A,I(A.line,A.ch+1));if(P&&!l.empty())g="surround";else if((B||!P)&&T==u)B&&s(i,A)?g="both":E.indexOf(u)>=0&&i.getRange(A,I(A.line,A.ch+3))==u+u+u?g="skipThree":g="skip";else if(B&&A.ch>1&&E.indexOf(u)>=0&&i.getRange(I(A.line,A.ch-2),A)==u+u){if(A.ch>2&&/\bstring/.test(i.getTokenTypeAt(I(A.line,A.ch-2))))return Z.Pass;g="addFour"}else if(B){var m=A.ch==0?" ":i.getRange(I(A.line,A.ch-1),A);if(!Z.isWordChar(T)&&m!=u&&!Z.isWordChar(m))g="both";else return Z.Pass}else if(P&&(T.length===0||/\s/.test(T)||c.indexOf(T)>-1))g="both";else return Z.Pass;if(!C)C=g;else if(C!=g)return Z.Pass}var y=o%2?f.charAt(o-1):u,U=o%2?u:f.charAt(o+1);i.operation(function(){if(C=="skip")i.execCommand("goCharRight");else if(C=="skipThree")for(var N=0;N<3;N++)i.execCommand("goCharRight");else if(C=="surround"){for(var S=i.getSelections(),N=0;N<S.length;N++)S[N]=y+S[N]+U;i.replaceSelections(S,"around"),S=i.listSelections().slice();for(var N=0;N<S.length;N++)S[N]=a(S[N]);i.setSelections(S)}else C=="both"?(i.replaceSelection(y+U,null),i.triggerElectric(y+U),i.execCommand("goCharLeft")):C=="addFour"&&(i.replaceSelection(y+y+y+y,"before"),i.execCommand("goCharRight"))})}function h(i,u){var d=i.getRange(I(u.line,u.ch-1),I(u.line,u.ch+1));return d.length==2?d:null}function s(i,u){var d=i.getTokenAt(I(u.line,u.ch+1));return/\bstring/.test(d.type)&&d.start==u.ch&&(u.ch==0||!/\bstring/.test(i.getTokenTypeAt(u)))}})},FOrL:function(Re,te,v){Re.exports=v.p+"static/nodata.a6b3f948.png"},FPkq:function(Re,te,v){Re.exports=v.p+"static/qrCode.dd0fe9b2.png"},FWmy:function(Re,te,v){"use strict";v.d(te,"a",function(){return Z});function Z(K,I){if(!K)throw new Error(I?`Assertion failed (${I})`:"Assertion Failed")}},Fofx:function(Re,te){var v=typeof Float32Array=="undefined"?Array:Float32Array;function Z(){var p=new v(6);return K(p),p}function K(p){return p[0]=1,p[1]=0,p[2]=0,p[3]=1,p[4]=0,p[5]=0,p}function I(p,a){return p[0]=a[0],p[1]=a[1],p[2]=a[2],p[3]=a[3],p[4]=a[4],p[5]=a[5],p}function k(p,a,t){var h=a[0]*t[0]+a[2]*t[1],s=a[1]*t[0]+a[3]*t[1],i=a[0]*t[2]+a[2]*t[3],u=a[1]*t[2]+a[3]*t[3],d=a[0]*t[4]+a[2]*t[5]+a[4],f=a[1]*t[4]+a[3]*t[5]+a[5];return p[0]=h,p[1]=s,p[2]=i,p[3]=u,p[4]=d,p[5]=f,p}function _(p,a,t){return p[0]=a[0],p[1]=a[1],p[2]=a[2],p[3]=a[3],p[4]=a[4]+t[0],p[5]=a[5]+t[1],p}function O(p,a,t){var h=a[0],s=a[2],i=a[4],u=a[1],d=a[3],f=a[5],o=Math.sin(t),c=Math.cos(t);return p[0]=h*c+u*o,p[1]=-h*o+u*c,p[2]=s*c+d*o,p[3]=-s*o+c*d,p[4]=c*i+o*f,p[5]=c*f-o*i,p}function M(p,a,t){var h=t[0],s=t[1];return p[0]=a[0]*h,p[1]=a[1]*s,p[2]=a[2]*h,p[3]=a[3]*s,p[4]=a[4]*h,p[5]=a[5]*s,p}function x(p,a){var t=a[0],h=a[2],s=a[4],i=a[1],u=a[3],d=a[5],f=t*u-i*h;return f?(f=1/f,p[0]=u*f,p[1]=-i*f,p[2]=-h*f,p[3]=t*f,p[4]=(h*d-u*s)*f,p[5]=(i*s-t*d)*f,p):null}function n(p){var a=Z();return I(a,p),a}te.create=Z,te.identity=K,te.copy=I,te.mul=k,te.translate=_,te.rotate=O,te.scale=M,te.invert=x,te.clone=n},FxDU:function(Re,te,v){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.createSensor=void 0;var Z=v("QO+J"),K=v("j5sG"),I=typeof ResizeObserver!="undefined"?K.createSensor:Z.createSensor;te.createSensor=I},G2fZ:function(Re,te,v){Re.exports={wrap:"wrap___157i9",title:"title___5hrVO",radioWrap:"radioWrap___1aCW_",radio:"radio___1d2Mr",colorFF0000:"colorFF0000___3ojYJ",pagination:"pagination___36vEb"}},GABl:function(Re,te){Re.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAKi0lEQVRoQ71ae3BU1Rn//e7dzYuioNRsHlSqRiUB2eUx0hbaKAHEAMWxiQ6PTUAUGCuIQNVOZ0xnrHUE5GHHIqOwCag8BlQiQnnUokgt5AEIK5GnBpIFXwjkAdl7vs7dkJCETXLvEj3/5d7v9/u+337nfN8554bowBHo16+3YRh3K7IPBHcRSIDI9QJ0AWkA8h0E3xM8DWAvde5x6Pqe+D17jnVUGLxWogqPp78SGSeC3wP4ZUR8pJ+Ct50O7e344uKjEXFcBkUkSERY6e43RkE9JcCgawngaiw3O6A/l7CvaHckvLYFhTKi5B8C3B2JQ6sYEhvpcMxKKioqs4ox7SwLkvT0mFNnz82HqKkCaHacRGxL1gDybHJp6WKSYoXHkqBytzuF4FoR6WOFtKNtCP4b0c7s5N27v22Pu11B5e7+6ZTgBgE6t0f2Y74n8IUjOuo+1+7dx9vy06agcrf7fgjXARLzYwZrnZsB6BzevaRkf2uYVgWdcruHKnAjRJzWHf4ElmSl5nTcnbRnT3k4b2EFVfTt29NQ8l+zKf4EIUbi4kAnhz7ohuLiH1qCwwo62cf9ccf3l0jibh1DckPy3lKzmTcbYQWV9+k7HlArOjaEjmejRm9yaWmzOMMKMncCp9x9dwlkYEeEQUCBrO0IrqYcApx1xsV6XLt2nWl43kyQqyB38dQJPZ7MY56qdLsHGIL/iY3m24R0p2jc6BDZrkVHf3XTiBFfMy9PdbSgNotCYv6kDAPGVhCTT3vz3zCNT7o9PhHJsRoIwUJN518TS0qKrWI62q4xQ/H5uTsB+Q3I0521zrcfGf/KuTMDBrguXar7or2mSuCCRm1q4t6SN5sGOGZBTQ9DsRdgJEFpQeo8pRvRJe/MYeMUMe2lYlQczl4cBki7jT78DyCVTN32qfkuRJC8Mrd3nSGNzYoa5wYm+P5kvivv43kakBdbbWTk1zqRnlBa6jdt8j4UR1Fx9WQAUyG4aqtEUIHYBWJh4ay4dQ28ciBjJiAvR5Qx8jtEOROZsuliSFBCQc4LSvBs4xogLjmjolPLH156VLKyok4ePuKHyK1XOSN/0Bz6PUlFRaXmuzELLrmNYHCVQO6wEhjBT5zReHj99LiToUwdGPIYgNesYMPE8hDTtq0JCYovyD0KkVuaGZHvnfb6xpjPTnk8o5WS91qSNC2bo+fWZiqq1RDpZDOggMPhHPHuzKi99aIy8gHx2uQwJ9t69tr2IBPfyr3TqJPPwxE4dGScGp+//XKB2CIiQ6/YcXP3faUjGjITNII7IxBTT0eeitJjB6yfyUr5MrMrLtT6IXDZFHUWaTd0Y8LKieOVEb6JkjgwOCbTvTY726j0eFINwT4RcYRi0LVfJZeUfGqumeKimgNWp1kbQX7w/pxOmaEsHRw6BaKW2BRkBjWQCQUTFylR01td9ODjgRzfq6Gp18ezSEGmEyxJ3lfaz3w2en7VNKUQen+tQ9O0ezfMiv1QjmZcj1oJQGBvl09tKl0Fuf8Rkd+1Koj4NkqPS/lq3D+/PztoUNcLF6oOQ7AweV/p8yZm5LyqveGqWSTiSK4pnB33UH2WMtZAJMsWD7HIFHRQRFLbBnLR6Rzfk6G15PFM05R2NHFf8RazzwSDqs0Dl52ACJ6PuTm229psXhJ/xjQosZl5vs/4/NxKQNpegERQd7B3xVjfIcnK0iuPHYtOLC6uHjW/dqQoo9BO0O3ZRkfpt6+bEXNY/BmZUPJ+e/bN3pM76crPrRVIdHtAkpsDXl+oqjWMUfOrpoiC/cXbhjPqWnrhU7E75NB9dyFYt6+9uFq838/4gpwfILjOCpBkZsDr+6DBduTcmomAWmYFa9VGc3DQhplxn4h/aAqU+sIqLmRHfkZXQU6ZCG63AiRZlpQa1bu4/9K6UEGYXzMESm2zgrVqQ2i3FM6JPS7+jIEwT832xi668nN2CPBbqziN2lOV3uULTPusl6uTahTKIZFuKpt7JXGm36y4hDxSiX/YI1DG61bjupyhzaag1QJkWwfyrO6MSqkYu/QbEzNqXvV2EbnXOr51S2p4o3BWJ3Nja5btAohMsMfLV80qtxCQGXaAJJcEvL5pJmb0vJpxStRKO/hwtuYunE7ds+HJ6P1yfEwXVJ+vgCDWFi8xg64Vk7JFGattAg2nw9n35NjX92etEb32qxpzn3dNWSKxvHB2p0n12RkyHYJFtmIyjXUtnT3eye1Sc16+gUC3Q0CyJCk1aqBZIB6YKzfVsdrcMSTY4WiwJbC/C+J+vWIOq0TyHPDvNI8rKba4iBpERXUNHR9cBTkfi9j/LEJqLwW8y582OR6Ye7FXHYx3gTDnpjYiM8U4o5nZeCbyD50BpRbaEmMaE1uZtn3Y5fPQxGch6gXbJKDSdW1ExfhlW0zsmAXSxQjW+ARy1X1ZS+76k6vkd5G4J8zMhKZa2ahuqKs+DPOLn91BPsK0bctCghJXTLrDUMoPiO3PJAQvApwSyFme3xDD6PmXPCJ1MwA+KCI/axqbWZpBFFJ3LDYLQNN3cnDIEgim2NWC+unmYsqmc42XEq6C3FUiEtrpRjIIzBscm/mMeXZqih+9UOIhNbeFMhBkRb/ZMV+afaalDykb3gdBowRi/0cFtcVM2xqq1FcErZyYKoZ8FkmWGoMjjwGy6MaYTsv82a9eaOuHue2DJ6KP3P/KxQYbOThkB8R6g2/i8xwcsbfyjsJQX2x50XhNWboigGcBrKam7RKRMqce+vodYwiSIOihREYAPN5wJJGDGdkQsdc6Gpxp/AtTt/2t4c9mghIKJvcU1O0VQVQk084yhjgHxKac9i45I+VZsTj3/SGI/MIyvjF6VqBrbAoTC6vDCjIfulZM/KMo9YptchsAEk8HvPkvhdbVwYznIJJnA97EVBvLXlvfblZ0whG58nPWCvCHyJy0gyKPde7WOdVcP3JkWHfUqkOAxNn2Rcxn2vbZLXFhr15vW/nEdeeNcyUArr5ctO25OUAjH6z0+tZfzs4qRFJZiU1IHTySvPoDQKt3yeb1cFDJNhHcdI0amhQk7gh4fen1YoYPhgQ/ss/NzxHtHGj2nHDYNi/Hk9/MTQka2CoiN9t3fNVkUDr0/hU5b5SK5Gnw7yyCiMcWL+GH5sxkz80nWsO1e9uftHJysqHqtoigpy3nLYxJLgt4fY+EsnMg41FAltriIzciyjm2tcy0WuXCOUnKf/xGg1VvishwW0Fc8XIhNoYpJ7J9gfpLRByGyM8tc5FzkTromXBrxlJRaM2ReW0sSi0QQTfLwZiG1P582rv876Hs+DNehpKZFvEnoWE2U7dbbrrtTrmWjhPfeqybEby0ECLjrARF8ETML9DzxD2+WikbdifqDHND2vb/PpDm5/oXcV3XRey+tsaKH1tTLhyh661H0xCsmyaQCW1dg1HTHwpMWLbmcpneBJH7Wg+QVdCwFKI/z7R/fWdHyDULaiCIL5jdScM3Y6X+m04/aXIPQGJnwJs/OCTm8yEjYSDMLSurQPkI5CrcoK2ja0vobBTpsD3l2nKU/mGe43DFiV5Ksb8SNUCj9lrlhOUl5r8JwG9evjMBhDmdjkJYBp2luLPHHrL+nq8jxv8BV2A7FHmr6w0AAAAASUVORK5CYII="},Gev7:function(Re,te,v){var Z=v("bYtY"),K=v("K2GJ"),I=v("1bdT"),k=v("ni6a");function _(M){M=M||{},I.call(this,M);for(var x in M)M.hasOwnProperty(x)&&x!=="style"&&(this[x]=M[x]);this.style=new K(M.style,this),this._rect=null,this.__clipPaths=null}_.prototype={constructor:_,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,x){},getBoundingRect:function(){},contain:function(M,x){return this.rectContain(M,x)},traverse:function(M,x){M.call(x,this)},rectContain:function(M,x){var n=this.transformCoordToLocal(M,x),p=this.getBoundingRect();return p.contain(n[0],n[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,x){M!=="style"?I.prototype.attrKV.call(this,M,x):this.style.set(x)},setStyle:function(M,x){return this.style.set(M,x),this.dirty(!1),this},useStyle:function(M){return this.style=new K(M,this),this.dirty(!1),this},calculateTextPosition:null},Z.inherits(_,I),Z.mixin(_,k);var O=_;Re.exports=O},GfqC:function(Re,te,v){"use strict";var Z=v("q1tI"),K=v.n(Z),I=v("TSYQ"),k=v.n(I);function _(H,F){var R="cannot "+H.method+" "+H.action+" "+F.status+"'",z=new Error(R);return z.status=F.status,z.method=H.method,z.url=H.action,z}function O(H){var F=H.responseText||H.response;if(!F)return F;try{return JSON.parse(F)}catch(R){return F}}function M(H){var F=new XMLHttpRequest;H.onProgress&&F.upload&&(F.upload.onprogress=function($){$.total>0&&($.percent=$.loaded/$.total*100),H.onProgress($)});var R=new FormData;H.data&&Object.keys(H.data).forEach(function(Q){var $=H.data[Q];if(Array.isArray($)){$.forEach(function(ee){R.append(Q+"[]",ee)});return}R.append(Q,H.data[Q])}),H.file instanceof Blob?R.append(H.filename,H.file,H.file.name):R.append(H.filename,H.file),F.onerror=function($){H.onError($)},F.onload=function(){return F.status<200||F.status>=300?H.onError(_(H,F),O(F)):H.onSuccess(O(F),F)},F.open(H.method,H.action,!0),H.withCredentials&&"withCredentials"in F&&(F.withCredentials=!0);var z=H.headers||{};return z["X-Requested-With"]!==null&&F.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(z).forEach(function(Q){z[Q]!==null&&F.setRequestHeader(Q,z[Q])}),F.send(R),{abort:function(){F.abort()}}}var x=+new Date,n=0;function p(){return"rc-upload-"+x+"-"+ ++n}function a(H,F){return H.indexOf(F,H.length-F.length)!==-1}var t=function(H,F){if(H&&F){var R=Array.isArray(F)?F:F.split(","),z=H.name||"",Q=H.type||"",$=Q.replace(/\/.*$/,"");return R.some(function(ee){var fe=ee.trim();return fe.charAt(0)==="."?a(z.toLowerCase(),fe.toLowerCase()):/\/\*$/.test(fe)?$===fe.replace(/\/.*$/,""):Q===fe})}return!0};function h(H,F){var R=H.createReader(),z=[];function Q(){R.readEntries(function($){var ee=Array.prototype.slice.apply($);z=z.concat(ee);var fe=!ee.length;fe?F(z):Q()})}Q()}var s=function(F,R,z){var Q=function $(ee,fe){fe=fe||"",ee.isFile?ee.file(function(Ae){z(Ae)&&(ee.fullPath&&!Ae.webkitRelativePath&&(Object.defineProperties(Ae,{webkitRelativePath:{writable:!0}}),Ae.webkitRelativePath=ee.fullPath.replace(/^\//,""),Object.defineProperties(Ae,{webkitRelativePath:{writable:!1}})),R([Ae]))}):ee.isDirectory&&h(ee,function(Ae){Ae.forEach(function(ce){$(ce,""+fe+ee.name+"/")})})};F.forEach(function($){Q($.webkitGetAsEntry())})},i=s,u=Object.assign||function(H){for(var F=1;F<arguments.length;F++){var R=arguments[F];for(var z in R)Object.prototype.hasOwnProperty.call(R,z)&&(H[z]=R[z])}return H},d=function(){function H(F,R){var z=[],Q=!0,$=!1,ee=void 0;try{for(var fe=F[Symbol.iterator](),Ae;!(Q=(Ae=fe.next()).done)&&!(z.push(Ae.value),R&&z.length===R);Q=!0);}catch(ce){$=!0,ee=ce}finally{try{!Q&&fe.return&&fe.return()}finally{if($)throw ee}}return z}return function(F,R){if(Array.isArray(F))return F;if(Symbol.iterator in Object(F))return H(F,R);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),f=function(){function H(F,R){for(var z=0;z<R.length;z++){var Q=R[z];Q.enumerable=Q.enumerable||!1,Q.configurable=!0,"value"in Q&&(Q.writable=!0),Object.defineProperty(F,Q.key,Q)}}return function(F,R,z){return R&&H(F.prototype,R),z&&H(F,z),F}}();function o(H,F,R){return F in H?Object.defineProperty(H,F,{value:R,enumerable:!0,configurable:!0,writable:!0}):H[F]=R,H}function c(H,F){var R={};for(var z in H){if(F.indexOf(z)>=0)continue;if(!Object.prototype.hasOwnProperty.call(H,z))continue;R[z]=H[z]}return R}function E(H,F){if(!(H instanceof F))throw new TypeError("Cannot call a class as a function")}function B(H,F){if(!H)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F&&(typeof F=="object"||typeof F=="function")?F:H}function w(H,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof F);H.prototype=Object.create(F&&F.prototype,{constructor:{value:H,enumerable:!1,writable:!0,configurable:!0}}),F&&(Object.setPrototypeOf?Object.setPrototypeOf(H,F):H.__proto__=F)}var P=function(F){return Object.keys(F).reduce(function(R,z){return(z.substr(0,5)==="data-"||z.substr(0,5)==="aria-"||z==="role")&&(R[z]=F[z]),R},{})},C=function(H){w(F,H);function F(){var R,z,Q,$;E(this,F);for(var ee=arguments.length,fe=Array(ee),Ae=0;Ae<ee;Ae++)fe[Ae]=arguments[Ae];return $=(z=(Q=B(this,(R=F.__proto__||Object.getPrototypeOf(F)).call.apply(R,[this].concat(fe))),Q),Q.state={uid:p()},Q.reqs={},Q.onChange=function(ce){var ie=ce.target.files;Q.uploadFiles(ie),Q.reset()},Q.onClick=function(ce){var ie=Q.fileInput;if(!ie)return;var be=Q.props,se=be.children,me=be.onClick;se&&se.type==="button"&&(ie.parentNode.focus(),ie.parentNode.querySelector("button").blur()),ie.click(),me&&me(ce)},Q.onKeyDown=function(ce){ce.key==="Enter"&&Q.onClick()},Q.onFileDrop=function(ce){var ie=Q.props.multiple;if(ce.preventDefault(),ce.type==="dragover")return;if(Q.props.directory)i(Array.prototype.slice.call(ce.dataTransfer.items),Q.uploadFiles,function(se){return t(se,Q.props.accept)});else{var be=Array.prototype.slice.call(ce.dataTransfer.files).filter(function(se){return t(se,Q.props.accept)});ie===!1&&(be=be.slice(0,1)),Q.uploadFiles(be)}},Q.uploadFiles=function(ce){var ie=Array.prototype.slice.call(ce);ie.map(function(be){return be.uid=p(),be}).forEach(function(be){Q.upload(be,ie)})},Q.saveFileInput=function(ce){Q.fileInput=ce},z),B(Q,$)}return f(F,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"upload",value:function(z,Q){var $=this,ee=this.props;if(!ee.beforeUpload)return setTimeout(function(){return $.post(z)},0);var fe=ee.beforeUpload(z,Q);fe&&fe.then?fe.then(function(Ae){var ce=Object.prototype.toString.call(Ae);return ce==="[object File]"||ce==="[object Blob]"?$.post(Ae):$.post(z)}).catch(function(Ae){console.log(Ae)}):fe!==!1&&setTimeout(function(){return $.post(z)},0);return}},{key:"post",value:function(z){var Q=this;if(!this._isMounted)return;var $=this.props,ee=$.onStart,fe=$.onProgress,Ae=$.transformFile,ce=Ae===void 0?function(ie){return ie}:Ae;new Promise(function(ie){var be=$.action;return typeof be=="function"&&(be=be(z)),ie(be)}).then(function(ie){var be=z.uid,se=$.customRequest||M,me=Promise.resolve(ce(z)).then(function(le){var ge=$.data;return typeof ge=="function"&&(ge=ge(le)),Promise.all([le,ge])}).catch(function(le){console.error(le)});me.then(function(le){var ge=d(le,2),ae=ge[0],pe=ge[1],Me={action:ie,filename:$.name,data:pe,file:ae,headers:$.headers,withCredentials:$.withCredentials,method:$.method||"post",onProgress:fe?function(xe){fe(xe,z)}:null,onSuccess:function(Ke,tt){delete Q.reqs[be],$.onSuccess(Ke,z,tt)},onError:function(Ke,tt){delete Q.reqs[be],$.onError(Ke,tt,z)}};ee(z),Q.reqs[be]=se(Me)})})}},{key:"reset",value:function(){this.setState({uid:p()})}},{key:"abort",value:function(z){var Q=this.reqs;if(z){var $=z;z&&z.uid&&($=z.uid),Q[$]&&Q[$].abort&&Q[$].abort(),delete Q[$]}else Object.keys(Q).forEach(function(ee){Q[ee]&&Q[ee].abort&&Q[ee].abort(),delete Q[ee]})}},{key:"render",value:function(){var z,Q=this.props,$=Q.component,ee=Q.prefixCls,fe=Q.className,Ae=Q.disabled,ce=Q.id,ie=Q.style,be=Q.multiple,se=Q.accept,me=Q.children,le=Q.directory,ge=Q.openFileDialogOnClick,ae=Q.onMouseEnter,pe=Q.onMouseLeave,Me=c(Q,["component","prefixCls","className","disabled","id","style","multiple","accept","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"]),xe=k()((z={},o(z,ee,!0),o(z,ee+"-disabled",Ae),o(z,fe,fe),z)),Ke=Ae?{}:{onClick:ge?this.onClick:function(){},onKeyDown:ge?this.onKeyDown:function(){},onMouseEnter:ae,onMouseLeave:pe,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return K.a.createElement($,u({},Ke,{className:xe,role:"button",style:ie}),K.a.createElement("input",u({},P(Me),{id:ce,type:"file",ref:this.saveFileInput,onClick:function(he){return he.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:se,directory:le?"directory":null,webkitdirectory:le?"webkitdirectory":null,multiple:be,onChange:this.onChange})),me)}}]),F}(Z.Component),b=C,l=Object.assign||function(H){for(var F=1;F<arguments.length;F++){var R=arguments[F];for(var z in R)Object.prototype.hasOwnProperty.call(R,z)&&(H[z]=R[z])}return H},A=function(){function H(F,R){for(var z=0;z<R.length;z++){var Q=R[z];Q.enumerable=Q.enumerable||!1,Q.configurable=!0,"value"in Q&&(Q.writable=!0),Object.defineProperty(F,Q.key,Q)}}return function(F,R,z){return R&&H(F.prototype,R),z&&H(F,z),F}}();function g(H,F){if(!(H instanceof F))throw new TypeError("Cannot call a class as a function")}function T(H,F){if(!H)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F&&(typeof F=="object"||typeof F=="function")?F:H}function m(H,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof F);H.prototype=Object.create(F&&F.prototype,{constructor:{value:H,enumerable:!1,writable:!0,configurable:!0}}),F&&(Object.setPrototypeOf?Object.setPrototypeOf(H,F):H.__proto__=F)}function y(){}var U=function(H){m(F,H);function F(){var R,z,Q,$;g(this,F);for(var ee=arguments.length,fe=Array(ee),Ae=0;Ae<ee;Ae++)fe[Ae]=arguments[Ae];return $=(z=(Q=T(this,(R=F.__proto__||Object.getPrototypeOf(F)).call.apply(R,[this].concat(fe))),Q),Q.saveUploader=function(ce){Q.uploader=ce},z),T(Q,$)}return A(F,[{key:"abort",value:function(z){this.uploader.abort(z)}},{key:"render",value:function(){return K.a.createElement(b,l({},this.props,{ref:this.saveUploader}))}}]),F}(Z.Component);U.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:y,onError:y,onSuccess:y,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var N=U,S=te.a=N},Gytx:function(Re,te){Re.exports=function(Z,K,I,k){var _=I?I.call(k,Z,K):void 0;if(_!==void 0)return!!_;if(Z===K)return!0;if(typeof Z!="object"||!Z||typeof K!="object"||!K)return!1;var O=Object.keys(Z),M=Object.keys(K);if(O.length!==M.length)return!1;for(var x=Object.prototype.hasOwnProperty.bind(K),n=0;n<O.length;n++){var p=O[n];if(!x(p))return!1;var a=Z[p],t=K[p];if(_=I?I.call(k,a,t,p):void 0,_===!1||_===void 0&&a!==t)return!1}return!0}},H6uX:function(Re,te){var v=Array.prototype.slice,Z=function(_){this._$handlers={},this._$eventProcessor=_};Z.prototype={constructor:Z,one:function(_,O,M,x){return I(this,_,O,M,x,!0)},on:function(_,O,M,x){return I(this,_,O,M,x,!1)},isSilent:function(_){var O=this._$handlers;return!O[_]||!O[_].length},off:function(_,O){var M=this._$handlers;if(!_)return this._$handlers={},this;if(O){if(M[_]){for(var x=[],n=0,p=M[_].length;n<p;n++)M[_][n].h!==O&&x.push(M[_][n]);M[_]=x}M[_]&&M[_].length===0&&delete M[_]}else delete M[_];return this},trigger:function(_){var O=this._$handlers[_],M=this._$eventProcessor;if(O){var x=arguments,n=x.length;n>3&&(x=v.call(x,1));for(var p=O.length,a=0;a<p;){var t=O[a];if(M&&M.filter&&t.query!=null&&!M.filter(_,t.query)){a++;continue}switch(n){case 1:t.h.call(t.ctx);break;case 2:t.h.call(t.ctx,x[1]);break;case 3:t.h.call(t.ctx,x[1],x[2]);break;default:t.h.apply(t.ctx,x);break}t.one?(O.splice(a,1),p--):a++}}return M&&M.afterTrigger&&M.afterTrigger(_),this},triggerWithContext:function(_){var O=this._$handlers[_],M=this._$eventProcessor;if(O){var x=arguments,n=x.length;n>4&&(x=v.call(x,1,x.length-1));for(var p=x[x.length-1],a=O.length,t=0;t<a;){var h=O[t];if(M&&M.filter&&h.query!=null&&!M.filter(_,h.query)){t++;continue}switch(n){case 1:h.h.call(p);break;case 2:h.h.call(p,x[1]);break;case 3:h.h.call(p,x[1],x[2]);break;default:h.h.apply(p,x);break}h.one?(O.splice(t,1),a--):t++}}return M&&M.afterTrigger&&M.afterTrigger(_),this}};function K(_,O){var M=_._$eventProcessor;return O!=null&&M&&M.normalizeQuery&&(O=M.normalizeQuery(O)),O}function I(_,O,M,x,n,p){var a=_._$handlers;if(typeof M=="function"&&(n=x,x=M,M=null),!x||!O)return _;M=K(_,M),a[O]||(a[O]=[]);for(var t=0;t<a[O].length;t++)if(a[O][t].h===x)return _;var h={h:x,one:p,query:M,ctx:n||_,callAtLast:x.zrEventfulCallAtLast},s=a[O].length-1,i=a[O][s];return i&&i.callAtLast?a[O].splice(s,0,h):a[O].push(h),_}var k=Z;Re.exports=k},HmJG:function(Re,te,v){},HpTS:function(Re,te,v){Re.exports=v.p+"static/small_program.f74069ec.png"},I8Z2:function(Re,te,v){"use strict";v.d(te,"a",function(){return k}),v.d(te,"b",function(){return h}),v.d(te,"c",function(){return i});var Z=v("q1tI"),K=function(){var u=function(d,f){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,c){o.__proto__=c}||function(o,c){for(var E in c)c.hasOwnProperty(E)&&(o[E]=c[E])},u(d,f)};return function(d,f){u(d,f);function o(){this.constructor=d}d.prototype=f===null?Object.create(f):(o.prototype=f.prototype,new o)}}(),I=Z.createContext(null),k=function(u){K(d,u);function d(){return u!==null&&u.apply(this,arguments)||this}return d.prototype.render=function(){return Z.createElement(I.Provider,{value:this.props.store},this.props.children)},d}(Z.Component),_=v("Gytx"),O=v.n(_),M=v("2mql"),x=v.n(M),n=function(){var u=function(d,f){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,c){o.__proto__=c}||function(o,c){for(var E in c)c.hasOwnProperty(E)&&(o[E]=c[E])},u(d,f)};return function(d,f){u(d,f);function o(){this.constructor=d}d.prototype=f===null?Object.create(f):(o.prototype=f.prototype,new o)}}(),p=function(){return p=Object.assign||function(u){for(var d,f=1,o=arguments.length;f<o;f++){d=arguments[f];for(var c in d)Object.prototype.hasOwnProperty.call(d,c)&&(u[c]=d[c])}return u},p.apply(this,arguments)};function a(u){return u.displayName||u.name||"Component"}var t=function(){return{}};function h(u,d){d===void 0&&(d={});var f=!!u,o=u||t;return function(E){var B=function(P){n(C,P);function C(b,l){var A=P.call(this,b,l)||this;return A.unsubscribe=null,A.handleChange=function(){if(!A.unsubscribe)return;var g=o(A.store.getState(),A.props);A.setState({subscribed:g})},A.store=A.context,A.state={subscribed:o(A.store.getState(),b),store:A.store,props:b},A}return C.getDerivedStateFromProps=function(b,l){return u&&u.length===2&&b!==l.props?{subscribed:o(l.store.getState(),b),props:b}:{props:b}},C.prototype.componentDidMount=function(){this.trySubscribe()},C.prototype.componentWillUnmount=function(){this.tryUnsubscribe()},C.prototype.shouldComponentUpdate=function(b,l){return!O()(this.props,b)||!O()(this.state.subscribed,l.subscribed)},C.prototype.trySubscribe=function(){f&&(this.unsubscribe=this.store.subscribe(this.handleChange),this.handleChange())},C.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},C.prototype.render=function(){var b=p(p(p({},this.props),this.state.subscribed),{store:this.store});return Z.createElement(E,p({},b,{ref:this.props.miniStoreForwardedRef}))},C.displayName="Connect("+a(E)+")",C.contextType=I,C}(Z.Component);if(d.forwardRef){var w=Z.forwardRef(function(P,C){return Z.createElement(B,p({},P,{miniStoreForwardedRef:C}))});return x()(w,E)}return x()(B,E)}}var s=function(){return s=Object.assign||function(u){for(var d,f=1,o=arguments.length;f<o;f++){d=arguments[f];for(var c in d)Object.prototype.hasOwnProperty.call(d,c)&&(u[c]=d[c])}return u},s.apply(this,arguments)};function i(u){var d=u,f=[];function o(B){d=s(s({},d),B);for(var w=0;w<f.length;w++)f[w]()}function c(){return d}function E(B){return f.push(B),function(){var P=f.indexOf(B);f.splice(P,1)}}return{setState:o,getState:c,subscribe:E}}},IBYe:function(Re,te,v){"use strict";function Z(K){return null}te.a=Z},IMiH:function(Re,te,v){var Z=v("Sj9i"),K=v("QBsz"),I=v("4mN7"),k=v("mFDi"),_=v("LPTA"),O=_.devicePixelRatio,M={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},x=[],n=[],p=[],a=[],t=Math.min,h=Math.max,s=Math.cos,i=Math.sin,u=Math.sqrt,d=Math.abs,f=typeof Float32Array!="undefined",o=function(E){this._saveData=!(E||!1),this._saveData&&(this.data=[]),this._ctx=null};o.prototype={constructor:o,_xi:0,_yi:0,_x0:0,_y0:0,_ux:0,_uy:0,_len:0,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(E,B,w){w=w||0,this._ux=d(w/O/E)||0,this._uy=d(w/O/B)||0},getContext:function(){return this._ctx},beginPath:function(E){return this._ctx=E,E&&E.beginPath(),E&&(this.dpr=E.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(E,B){return this.addData(M.M,E,B),this._ctx&&this._ctx.moveTo(E,B),this._x0=E,this._y0=B,this._xi=E,this._yi=B,this},lineTo:function(E,B){var w=d(E-this._xi)>this._ux||d(B-this._yi)>this._uy||this._len<5;return this.addData(M.L,E,B),this._ctx&&w&&(this._needsDash()?this._dashedLineTo(E,B):this._ctx.lineTo(E,B)),w&&(this._xi=E,this._yi=B),this},bezierCurveTo:function(E,B,w,P,C,b){return this.addData(M.C,E,B,w,P,C,b),this._ctx&&(this._needsDash()?this._dashedBezierTo(E,B,w,P,C,b):this._ctx.bezierCurveTo(E,B,w,P,C,b)),this._xi=C,this._yi=b,this},quadraticCurveTo:function(E,B,w,P){return this.addData(M.Q,E,B,w,P),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(E,B,w,P):this._ctx.quadraticCurveTo(E,B,w,P)),this._xi=w,this._yi=P,this},arc:function(E,B,w,P,C,b){return this.addData(M.A,E,B,w,w,P,C-P,0,b?0:1),this._ctx&&this._ctx.arc(E,B,w,P,C,b),this._xi=s(C)*w+E,this._yi=i(C)*w+B,this},arcTo:function(E,B,w,P,C){return this._ctx&&this._ctx.arcTo(E,B,w,P,C),this},rect:function(E,B,w,P){return this._ctx&&this._ctx.rect(E,B,w,P),this.addData(M.R,E,B,w,P),this},closePath:function(){this.addData(M.Z);var E=this._ctx,B=this._x0,w=this._y0;return E&&(this._needsDash()&&this._dashedLineTo(B,w),E.closePath()),this._xi=B,this._yi=w,this},fill:function(E){E&&E.fill(),this.toStatic()},stroke:function(E){E&&E.stroke(),this.toStatic()},setLineDash:function(E){if(E instanceof Array){this._lineDash=E,this._dashIdx=0;for(var B=0,w=0;w<E.length;w++)B+=E[w];this._dashSum=B}return this},setLineDashOffset:function(E){return this._dashOffset=E,this},len:function(){return this._len},setData:function(E){var B=E.length;!(this.data&&this.data.length===B)&&f&&(this.data=new Float32Array(B));for(var w=0;w<B;w++)this.data[w]=E[w];this._len=B},appendPath:function(E){E instanceof Array||(E=[E]);for(var B=E.length,w=0,P=this._len,C=0;C<B;C++)w+=E[C].len();f&&this.data instanceof Float32Array&&(this.data=new Float32Array(P+w));for(var C=0;C<B;C++)for(var b=E[C].data,l=0;l<b.length;l++)this.data[P++]=b[l];this._len=P},addData:function(E){if(!this._saveData)return;var B=this.data;this._len+arguments.length>B.length&&(this._expandData(),B=this.data);for(var w=0;w<arguments.length;w++)B[this._len++]=arguments[w];this._prevCmd=E},_expandData:function(){if(!(this.data instanceof Array)){for(var E=[],B=0;B<this._len;B++)E[B]=this.data[B];this.data=E}},_needsDash:function(){return this._lineDash},_dashedLineTo:function(E,B){var w=this._dashSum,P=this._dashOffset,C=this._lineDash,b=this._ctx,l=this._xi,A=this._yi,g=E-l,T=B-A,m=u(g*g+T*T),y=l,U=A,N,S=C.length,H;for(g/=m,T/=m,P<0&&(P=w+P),P%=w,y-=P*g,U-=P*T;g>0&&y<=E||g<0&&y>=E||g===0&&(T>0&&U<=B||T<0&&U>=B);){if(H=this._dashIdx,N=C[H],y+=g*N,U+=T*N,this._dashIdx=(H+1)%S,g>0&&y<l||g<0&&y>l||T>0&&U<A||T<0&&U>A)continue;b[H%2?"moveTo":"lineTo"](g>=0?t(y,E):h(y,E),T>=0?t(U,B):h(U,B))}g=y-E,T=U-B,this._dashOffset=-u(g*g+T*T)},_dashedBezierTo:function(E,B,w,P,C,b){var l=this._dashSum,A=this._dashOffset,g=this._lineDash,T=this._ctx,m=this._xi,y=this._yi,U,N,S,H=Z.cubicAt,F=0,R=this._dashIdx,z=g.length,Q,$,ee=0;for(A<0&&(A=l+A),A%=l,U=0;U<1;U+=.1)N=H(m,E,w,C,U+.1)-H(m,E,w,C,U),S=H(y,B,P,b,U+.1)-H(y,B,P,b,U),F+=u(N*N+S*S);for(;R<z&&!(ee+=g[R],ee>A);R++);for(U=(ee-A)/F;U<=1;)Q=H(m,E,w,C,U),$=H(y,B,P,b,U),R%2?T.moveTo(Q,$):T.lineTo(Q,$),U+=g[R]/F,R=(R+1)%z;R%2!==0&&T.lineTo(C,b),N=C-Q,S=b-$,this._dashOffset=-u(N*N+S*S)},_dashedQuadraticTo:function(E,B,w,P){var C=w,b=P;w=(w+2*E)/3,P=(P+2*B)/3,E=(this._xi+2*E)/3,B=(this._yi+2*B)/3,this._dashedBezierTo(E,B,w,P,C,b)},toStatic:function(){var E=this.data;E instanceof Array&&(E.length=this._len,f&&(this.data=new Float32Array(E)))},getBoundingRect:function(){x[0]=x[1]=p[0]=p[1]=Number.MAX_VALUE,n[0]=n[1]=a[0]=a[1]=-Number.MAX_VALUE;for(var E=this.data,B=0,w=0,P=0,C=0,b=0;b<E.length;){var l=E[b++];b===1&&(B=E[b],w=E[b+1],P=B,C=w);switch(l){case M.M:P=E[b++],C=E[b++],B=P,w=C,p[0]=P,p[1]=C,a[0]=P,a[1]=C;break;case M.L:I.fromLine(B,w,E[b],E[b+1],p,a),B=E[b++],w=E[b++];break;case M.C:I.fromCubic(B,w,E[b++],E[b++],E[b++],E[b++],E[b],E[b+1],p,a),B=E[b++],w=E[b++];break;case M.Q:I.fromQuadratic(B,w,E[b++],E[b++],E[b],E[b+1],p,a),B=E[b++],w=E[b++];break;case M.A:var A=E[b++],g=E[b++],T=E[b++],m=E[b++],y=E[b++],U=E[b++]+y;b+=1;var N=1-E[b++];b===1&&(P=s(y)*T+A,C=i(y)*m+g),I.fromArc(A,g,T,m,y,U,N,p,a),B=s(U)*T+A,w=i(U)*m+g;break;case M.R:P=B=E[b++],C=w=E[b++];var S=E[b++],H=E[b++];I.fromLine(P,C,P+S,C+H,p,a);break;case M.Z:B=P,w=C;break}K.min(x,x,p),K.max(n,n,a)}return b===0&&(x[0]=x[1]=n[0]=n[1]=0),new k(x[0],x[1],n[0]-x[0],n[1]-x[1])},rebuildPath:function(E){for(var B=this.data,w,P,C,b,l,A,g=this._ux,T=this._uy,m=this._len,y=0;y<m;){var U=B[y++];y===1&&(C=B[y],b=B[y+1],w=C,P=b);switch(U){case M.M:w=C=B[y++],P=b=B[y++],E.moveTo(C,b);break;case M.L:l=B[y++],A=B[y++],(d(l-C)>g||d(A-b)>T||y===m-1)&&(E.lineTo(l,A),C=l,b=A);break;case M.C:E.bezierCurveTo(B[y++],B[y++],B[y++],B[y++],B[y++],B[y++]),C=B[y-2],b=B[y-1];break;case M.Q:E.quadraticCurveTo(B[y++],B[y++],B[y++],B[y++]),C=B[y-2],b=B[y-1];break;case M.A:var N=B[y++],S=B[y++],H=B[y++],F=B[y++],R=B[y++],z=B[y++],Q=B[y++],$=B[y++],ee=H>F?H:F,fe=H>F?1:H/F,Ae=H>F?F/H:1,ce=Math.abs(H-F)>.001,ie=R+z;ce?(E.translate(N,S),E.rotate(Q),E.scale(fe,Ae),E.arc(0,0,ee,R,ie,1-$),E.scale(1/fe,1/Ae),E.rotate(-Q),E.translate(-N,-S)):E.arc(N,S,ee,R,ie,1-$),y===1&&(w=s(R)*H+N,P=i(R)*F+S),C=s(ie)*H+N,b=i(ie)*F+S;break;case M.R:w=C=B[y],P=b=B[y+1],E.rect(B[y++],B[y++],B[y++],B[y++]);break;case M.Z:E.closePath(),C=w,b=P}}}},o.CMD=M;var c=o;Re.exports=c},ItGF:function(Re,te){var v={};typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?v={browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:typeof document=="undefined"&&typeof self!="undefined"?v={browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:typeof navigator=="undefined"?v={browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:v=K(navigator.userAgent);var Z=v;function K(I){var k={},_={},O=I.match(/Firefox\/([\d.]+)/),M=I.match(/MSIE\s([\d.]+)/)||I.match(/Trident\/.+?rv:(([\d.]+))/),x=I.match(/Edge\/([\d.]+)/),n=/micromessenger/i.test(I);return O&&(_.firefox=!0,_.version=O[1]),M&&(_.ie=!0,_.version=M[1]),x&&(_.edge=!0,_.version=x[1]),n&&(_.weChat=!0),{browser:_,os:k,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:typeof SVGRect!="undefined",touchEventsSupported:"ontouchstart"in window&&!_.ie&&!_.edge,pointerEventsSupported:"onpointerdown"in window&&(_.edge||_.ie&&_.version>=11),domSupported:typeof document!="undefined"}}Re.exports=Z},IxHN:function(Re,te,v){"use strict";var Z=v("q1tI"),K=v.n(Z),I=v("07cG"),k=v.n(I);te.a=function(_){var O=_.message,M=_.className,x=_.children,n=_.style,p=n===void 0?{}:n;return K.a.createElement("div",{className:"".concat(k.a.idsRingWrapper," ").concat(M)},K.a.createElement("div",{className:k.a.ldsRing},K.a.createElement("div",null),K.a.createElement("div",null),K.a.createElement("div",null),K.a.createElement("div",null)),O?K.a.createElement("p",{style:p},O):null,x)}},JTSX:function(Re,te,v){Re.exports={flex_box_center:"flex_box_center___2jvp9",flex_space_between:"flex_space_between___YQ3n3",flex_box_vertical_center:"flex_box_vertical_center___lMDl8",flex_box_center_end:"flex_box_center_end___14pJI",flex_box_column:"flex_box_column___3MPcr",banner:"banner___1CNID",wrp:"wrp___2yuj2",titleWrap:"titleWrap___3rqyq",titleFlexEnd:"titleFlexEnd___3qeo-",title:"title___1sz3A",titleIcon:"titleIcon___oKhIk",contentWrap:"contentWrap___2hSfm",verticalLine:"verticalLine___1hWY5",contentLeftWrap:"contentLeftWrap___3cPFj",openCourseTag:"openCourseTag___2nNhU",ratingWrap:"ratingWrap___QZ8mo",ratingTitle:"ratingTitle___1sMbV",rating:"rating___tJ9xt",popoverWrap:"popoverWrap___16eNE",popverLeft:"popverLeft___1EzpC",popoverRight:"popoverRight___1dYpr",popverScore:"popverScore___2QZ2F",popoverRateWrap:"popoverRateWrap___2O45Q",popoverProgress:"popoverProgress___2jOeY",button:"button___1WaHd",operationWrap:"operationWrap___3_Xdi",forkWrap:"forkWrap___36Nap",fork:"fork___1AtQN",forkNum:"forkNum___3b1MG",buttonTransparent:"buttonTransparent___INxBh",buttonLearnStatistics:"buttonLearnStatistics___350-U",publishPopverWrap:"publishPopverWrap___2uMcI",colorFF6802:"colorFF6802___W5JBU",w140:"w140___20QZ6",nav:"nav___UcDQM",navLeft:"navLeft___1IpLj",navContent:"navContent___g-IkK",flexRow:"flexRow___2Srtn",navRight:"navRight___1wX_D",navLeftIcon:"navLeftIcon___33sNL",colorOrange:"colorOrange___1lWTV",contentItem:"contentItem___3BAmt",contentItemTitle:"contentItemTitle___3X1lp",contentItemText:"contentItemText___2Px0w",classButton:"classButton___1uAy6",bg28e:"bg28e___34ke7",bgGray:"bgGray___1wX3O"}},JWDV:function(Re,te,v){Re.exports=v.p+"static/charpter-white.5fa14f93.svg"},JYp7:function(Re,te,v){"use strict";v.d(te,"a",function(){return Z});var Z;(function(K){function I(c){return c&&typeof c=="object"&&typeof c[Symbol.iterator]=="function"}K.is=I;const k=Object.freeze([]);function _(){return k}K.empty=_;function*O(c){yield c}K.single=O;function M(c){return c||k}K.from=M;function x(c){return!c||c[Symbol.iterator]().next().done===!0}K.isEmpty=x;function n(c){return c[Symbol.iterator]().next().value}K.first=n;function p(c,E){for(const B of c)if(E(B))return!0;return!1}K.some=p;function a(c,E){for(const B of c)if(E(B))return B;return}K.find=a;function*t(c,E){for(const B of c)E(B)&&(yield B)}K.filter=t;function*h(c,E){let B=0;for(const w of c)yield E(w,B++)}K.map=h;function*s(...c){for(const E of c)for(const B of E)yield B}K.concat=s;function*i(c){for(const E of c)for(const B of E)yield B}K.concatNested=i;function u(c,E,B){let w=B;for(const P of c)w=E(w,P);return w}K.reduce=u;function*d(c,E,B=c.length){for(E<0&&(E+=c.length),B<0?B+=c.length:B>c.length&&(B=c.length);E<B;E++)yield c[E]}K.slice=d;function f(c,E=Number.POSITIVE_INFINITY){const B=[];if(E===0)return[B,c];const w=c[Symbol.iterator]();for(let P=0;P<E;P++){const C=w.next();if(C.done)return[B,K.empty()];B.push(C.value)}return[B,{[Symbol.iterator](){return w}}]}K.consume=f;function o(c,E,B=(w,P)=>w===P){const w=c[Symbol.iterator](),P=E[Symbol.iterator]();for(;;){const C=w.next(),b=P.next();if(C.done!==b.done)return!1;if(C.done)return!0;if(!B(C.value,b.value))return!1}}K.equals=o})(Z||(Z={}))},JeFH:function(Re,te){Re.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+TYJl7jwf1DlOW5KHWltCiLqSCfndqIm7vlwDLsi41DOP9Nm6z1cullL0BLATAP1tavxZCvNTqw5iDpJSnwrZ2rC60tKvXFTayOCc/AXGGwNIpHdDRCOZA9/QXQtASfrIlpdQg5TYpxMDXDlVhf7mJ/DoLZQEbNabEnf0TMbVTLL+PCHJZy15kL5EQk6ctK8De8mATWaige09LxC19lYIuMQxj7k8mROhBUsrbAfydOW/pd3XIr7VQXG+jImjjtHYePHlmMmDb7wpdv/yHfDcV5Idt7c0NalmTl+Sh2pTh8OYqiF5FBXXwWEeh6acKIWp+yMPbco2U9icS4pyJSwuwsywQDrM1lsQDA5JwW78EPu4iIcS8lhUkHwfw+1s3l2LesRrE6o2jARV032mJuLlv689qy94bRRwpL2YIe3F/Fe7bVqYiEqMs82CvBAOrpmQA0vpUaAZry1ZXCMXZS22ISVM/L8CBSlPFbnfRg/53FCQfAXD/7VtKMTen4XB5qDf38eO+AUm0+usMw3j1exR0GYB3nttXicd2VSDu/0ZB/WCZuzaU2NqMNYUKZHFRQR3jdKyclgGvZa0XhjGqVe2EYbZlzYGm3fmbjSX47EQtYiIEaxTiPNa3IQ/6SUOc46nyUgDvRh8uFXRlNx+eGKKg8d1CiDktCRYIBM7wGPrW5flBce36IgVuIldkiANwsRDiox9ySG25RkqZEIpInRiRGKKFAGwJtPNqWD4tE8nC3AXNOEMIYbX2bLcOugbA63N2V+CpvZWNLK8RSPCYx6ErFPdzgIRBsK2tn+ebuG5Dw+HWWRLnZsXhxWEERnhMCHH/93hQMqzggaP1RuovPs9TsDpSRZEgAcAvhRAftHZAP+ZzadurLCHGTl5agMNVTkRyz3HxlA7o7LVyoOk/KJe7ChoKyE0Lj9fhpk0ljT0oBLs/m9QBp8SYuSEF/eQwW0oZDyuYc7BWb3/usjyY0qmiA7bEqLQYvD0mlWf1ohDixu9RkICUGwJCDJu4OB/HaixERrn/RZj9NIDbZq4vxvLcOnWeVBBR5fzsTPT3WaXQPb2FEEWtGYBSUHV1dYd4r+fA7hrNf8HyfBCgu5bHB//UhaqUkoVIOoBhAPrRBmzbLtSAWyul1mnSkjzk19nqcIO2xMBkLxZOSCP6eU/oOvNMRI6UQgjBbaolpXwZwHUz1hRhXWF9ozBHBf2UhaqUMgYA+T3Wb8Nh2+2haWUASDBf/PDX5XjpYFU4ItHo3hmThuFJMgiPt4sQIu/7ZOFnrgcZsO3tFdBOzV6Up2BhZKFKzX+cnYFTfXZFdV2gt9/v/1FUjySdBDkLltUVUqbD8BjRFsRYfeGqQmwvCSiYTKG6+XR8PjkDBuQ2CLEItt0NQrSDgAe2TIG0bWh6IYTYzLINwB/u31qG149UNwrXVND1Pf340xlJ/NofTfXU19f39Xq9s2Gb/WHLTjA8ityLXm8crsa928rCe6i3JF4a3h5TM3UJ3fMEbDsTQhB3xwOaH9KKhRAVEPpRAK8KIdaEQ7S07XkQ4oJzlxcqmBtZgfPQPhiXjiGJdn2IizvWmmtGfy6lZFW9RwKxJC4Lak10idPw6M5yFNbb+GXXeFzcNV7ddsvmEnx8rFbBZKKf9FgNi7LTkRLTUHrSy/k3opWgDSRqzt8BnABkp1cPVeOB7eVNFBQBOO4RQjzZVjlCXsrcdUlREDhaaSIzVmDZd3X49EQtuvkN/On0JFU7rs6rw9Xri8NnSQN5cnA7XO6QtY0WQ0CpBcTrjoUBKCAb0aAgKWfT8m7cVIKFx53DcRfDzH9Gp2F0CiQML0HC/rYKpmgcK7hnY4kUV68rUjH53yPb456vSrG33MRV3X145uxk9di/7KrA0/scsELj8BsCn2WnI8unozJo48ZNpThYaeLBgYnYWFiPuTm1qgh8a0wqvJBFsILJK4ulPnNdUSNDI+C4oHMcnh2qAMd/CyEeaqscIQV9CuAXF64sxLqCekUd8bQe31WBjDgNyyZloFO8joMVJs5fUYiAdMAKEd0fByTiJqcOwz8PVOH1w1U4MyUGl54Shxs3l6qQPOesZIzLYItHnBGpoGvpVpGH426ervmv4e0xrRNDrhgshNjWVsEU/LTMfTlBvePUJXmqsv7nsBS8eaQaq/LrMSkzFm+Odto17x2twV1fliojoSKJguaPT0PfJI8SctLnBYoE/duZyYoxeOVQNXonGlg5NQMeKbfBtjKP1GkdiOSCIbDB51KOiR1i8dpI9T1/F0Lc0VY5Qgr6C4B7fr2xRBXE/9UlHqPSY3DP1jL4DIF549JwajuPYkKmLisI51N6ENn0+weoEKsMcfaucozJiFVsyTXrihXyZBg8t5MHEPrASAWNAbD6g6M1uCN0OO7m+WAexi9PUSFoLGPjjxLMNldYQh9PtmBPWQCzB7XDzrIg3jlag8EpHiwYn6YKu/UF9bhibTGMUMyiF707JhVnp3ph2sD0lYX4orgejw9uh5wqCy8erELfRAMrpmRAk3I5YPtroA9lPs0LgQ3ul4hwWGoM3h+bSsDxutB1GmWbl5TySgBv/m1PpTrg4WkxuKG3Hzdsckj+N0elYkxGjArPF6wsxI5SJ2XwHGd08+GvTk2Hlw86bMPZqTGKgmI4DNAZRrTHtEwD0IwBkQrqBjO4f0s5PJeuLmwCTx8+PQmzevn53POFECQD27yklH8D8NvrNhRj/rFaxSxz46y9uvsNLMpOQ5JXw+FKE+etKAzXMTzYV4a3x6SOTnS+bE0RluXW4bFB7VBYZ+Mf+yrRN8nAyikZENL6BEJUAtrl01cUYnvocHgfQzUtm+ESkB8LoV3YZiEcpDgYtvXVkrwgfrWhGF19BmYPSsJvNpWi0rTxzFnJ4XxKL1sUKv7pwdM6xeFfw1WIxYff1uCWLaUYlOzBg6cn4ep1xUqJLzUo6LRIBfnJBp8IGllTluaiNlQB80G86bd9E3DPaYqmv0YI8caPFGwmgNfo2k/srsDlp8Qr6/n91jKkxmjq4Dr79CahgbnjqQYPBhmPD3Nq8OczklAdlHhyTwX6JXlCCpLzIcQOAA+wplsQkU9p0V18uvI0XVqrhWaM+5FyJMMyD3xTr6VOXZoHQwhVSN/5ZamqvR6MyDN/+roc/wpB7UYeDCgjo1JoNGwiXrWuSHGhLSlIwLLWB3R9+ITF+ar76OIEKmhmD5/bibxTCEFPaPOSUp4FaW9ZeCKAK9cWIjszFtf38mPWphIFBOaOS1PJngfJ5LorhCb5/Q8NTMKveysPxj1fluLFA1UqxFF5j+wsR/8kD9ZOy2SIWwCHwnl99s4KPLu/gRlhqGwf49AticLeAaExn7ZKt0QLKqXkWa0L6vqIMZ/l43BVEO+NTsXsXRXYURpU3OEDpzt55pWDVXjwawdN0oO5zwUT0lTk2FJUjwtWFqFPoqFY7l+uLkKVaePVkak4p0NUiOPDpGW9BU2bcdGqQnxV3AC1eQjnd47D8w76mS2EuK/N2nFCQxos8+CROi3pmT3lGJcRi3GZMThQEYTf0NAtwQjDYoaOz79zqnAq6Na+CfiD48F4dl8l3v6mBvcPSFR55aUDVciM1/HyiPZU0GIIQVZ7Fa8hSnRJUwIO/j97W508P5xuaU5WaVkvQdOuZzTgc6/p4VP1I/dDUjQjTle3LT5Ri1kbHXaGhpcVr6tQ7vdoCuUxb9Eo7+yfgPu3laOo3sJ9A5MwJt3DQqIBxSkFSevPgPbHyDqE/67olvQYvD1a0S0vCyFm/UgFMe0vAHBOa/f/cVsZXjvsFJqKMO3uwxODneRKS9SEaJQnSeqSlARAmuVvsM0ja4tsjZ7q1nSN6Ra7HLpBuoX1RpuXlJKMxluhcqzF+1lwX7LaKSu4Rw6tUEHpcboqIUwpm5C6vFYA3wEYFD3Vo6B2dGhwkqsXn2Wn8VsWCE2b3maJQjdIy3oWmnbzoUoTu0sD4J8Mp2VBG+MzY1U9xPX8/ipVxFJBTK6/6BSHf4aSKwWl0tgrMm2pckCiV7iCPsueECwz51Cd3v6cz3PDvB6fy+v/MyYNo5Jhw/D2FUKw5d/mFQgEzvZ4PBtKA7bOsMYocLTKVF6UYGi4f2CiYq+P11j4xfICVAUdVpvjBJ9MSEP3BIdEoWyUg+iNy+fRVLiHo6Ah0QrKZu76z5Fqlbjd0MB7WXitmJoBr5QbhaaNaLNEroKkZKv3+ivWOkhMF05Di0ZwVmqMgtr8+8c5DsJhLUQPJpR9zyFMwVKAwIAWqLwJAt0SdLwxJg0+2NugaUMh7a8qpDYgmrpiuH5uaAqmdyYiFMOEQw+1eUkpR3IqjWiUYcqlxnig3Ne8cakYmhajCutpywuVEfIafv7h2FSckeLF8WoLszYWozhgKzaEi2TJY4OSMaFDDEzTHButIDabdq8sssQ16xoof35hokdg2bQOSBXBQ8Lw9mqzRA0Kuo1h6IHtZSAdE2kEGaR0JqarMECGYMba4jBhyuRKwpR10ltHqnHXV2WID6EY7o/UysppHZCpBQ/C8PRh11IKfdoUNiErzHBNRc8jFUNwYprmVI/Hs+THyCKl7MjWxs4qzXfhinwVwtzD5HfMGZKMy7rFK2WRcXDhPg3qjVGpGJsRg9waC5OXFaAiKMPhmt7E8uFXPX1sUJ4TraBUwsd9NVry+cvyQHjDC9xqfmF2Jnr7ZAU0/WYyF5ZlBXVdZ+uBtHkhgJLWUJGUcjyAFe+G2ILIBO4RAgsmpKJ3ogeHKkyct7IAAduxSCZXwvAEj8CSUOL1hhTkTh4tntwBXY3AMeGN6SKlfB7AjVeuLcaagrpwnHc6tAm4zxm9eoZgIiQiaT1WmoW5ublFHTt2/N62vpTSoJdWSW1g9uI8VY+5XsTvuK1vAn4fAjXXbyjGkhDgoQeTaiLlRDZl2rJCfFcbgZhNiQcGJuGGPgqxXhKtIC9sc0exbfSZuCgX5cGG+QTGblbgrFuaLCtILZZBEzmAthuatgXAJgC7opt7UsosWOb+rytF/EUr8xs11BTnNyoVozNiUFRnYeryQpTUO77PeM7kSnS0pSigilXG9EgD+nRSB/SMDeZB92ax+0p67O4vy/Du0eowt8jDu7RrPJ46y+H9Gi9m7WA9OH+uaQcgxVZo2kYAXzU3TSSl/A/Ht/5rdRE2FzW0NqiECzvH4x9Dne+4f1sZXncBjynxyKAkXNvTr8IzywnSVW5rnB70+9DkkRoNa7LFEB2TvSQfR6ut8HwCFXR1D78q9MgxsQ3AhMeDIyLJ8nnQJUFHsoMunWWrIRNO4XDQYzWngVQNIe2vK0P5gUx2ZL311JBkXNotXiXPc1YUKhDBz0kiMrn2SDAUPD1vRUGYZ6MH8WvnT8xEvzirCIansxr9Bd5+anclntxbEQ6HlKN/Oy+u6BavWHQeJnOyz9CQGqujY7yBLgkecIgozJ1bZiU0fSOEmA/gUyHEtxRPSnkngDkPbCvHq4cb+j7MmUNDlBIP+B97SQk5I200kDv7JeAuZzYPl68pwvqIvlXU5zObKsiy3oCmXXXxKvJdgUYQkBqnYoii3EUrpiAMN0keTYUi4nomyKEZcch05+5tcz804zXCdABPsKl2yaoibClusDxu7u7+ibijv8P2snDbVFQfhslMroNSvMirtVTiLQ84YcWN//MmZGCAzy6F4ekCgHPmq9/5pgZ3R9RCym4kFI0ULQc/Y5jlQTIf9kr04Mz2XgzPiMOApJDlUVm6MS8YDD7r8XiINFa/d7RGuOQun+H2sBiSmRvfP1qjWAYCnqiiHzdvLlG0l9s9iKr5rm+qIOlM1xCZfBLVdmgmJoT/ycX5lnSUyAezah+c4sW5WfGY2iUOPgVx7G+gaXyFZURkrcMHcXNXdPPhLyEy8abNJVgQ2jyN4/WR7RUUJ2SdtrxAQVh6l2svH43PwOl+uxyGh72nNNjmvpWFtrhmXWGTWqM1WYhc6W18NsEIPZdM+PSufvTya4AVtKF7lsK2sr8utz00aNdQ3AERNySvyqvDNaG+ED32vKw4vODMWOCh0ESvm4sV493bj/sHKibixuYUdAOAF6Lbtc0JFIlcmvvchcG8jo2sy06Jx8zeCfCFYke0dTOsTciMxb9HOW0HjiO/dMgJHRTs6RAJGc0Su8Yxd3w6BiXKSuieHirxm8HDe2q0xOlRbfwmYT0CgbUkJ5VFKEwyl3u8oU8CBrRzapnSehtTlxegIMScu6Dq4/FpiiPcWRoE2RlmUxrayLQYvBMqGUj0so8UqaAbeoWpojuaU9D5DOccvPtzqFBsbtOM26xhyoO2StbMEU0eFnEjvYqxmXCZMHdkeoxqa7PKdhc3f1o7L+YTTgsWq5V4dKez+Wg+jiTjyvw6lQe5qDR2fc9MlNUwPD0BFMO29hVYeveJi3OV10VNYYW/l8+vNKkAp6qPGqdrJD4Pn8aSYAjF7nOgkgn+stVF2BgBFKhQth0IeFjvqGLVlGCEcUqGdAX93/3GKRkiFeS25W3bvrc5BZ0NyM3zcupw65aSJtOZ7mEwRr8wNEX1c5Z8V4ttJQGF+qIH1qOVSyUxIb86IgUDkr3IXpoftjx3uI+MBS2VdPxvv2iI3bf2ScAfHHiMO74oxQffNgw48t73xqbj7CS7FoaX7zB9J01zY0DXh41flN8IykbuiV5Lqp9Tn5wJZIf0WLXDn5IiakmpjA40mut6+vDIoHaNvJ33Rno8cyVzZm6t81wW/Qx/CR5NFevkHd0ZPj7zVz39iqlnBGxOQd3ZF9pQCmPGmoIw/IsUyn0Dgl/S1e+4OamOJSfqlJD7Kkz1by1ZIjcxOdTZvDTC8sLt7YnpCmxExu7oZtdjO8rx3IHGEzPvjk3DsCRZF1LQCWnbH0GIC5ubs3DlIay9JwKYENZTSQuP1SqPYK0SPQDp3suQReiwYnK6Ipdd5oOfc78kc2/qk6A8k/0twmlGHRofzy4zTse24gAuWeNEESqD913bw1E6gEeaU1AKK+QDofk0WmZzoYskH2sWkqiRix7yRVFAdQpzqhvPpbnXEUGNSY/BW6NTG1meS2Z+NC4NA5I9qhN58aoiFbvJVU3uGItXRjj5iQz2wzsahkIYUt4Zm47h7WR4sEVKSV7uZhUO8xxmPHrR0i/uEo+nQ/MQkZ/nVJsKIr//bU2TQXxe5+6XHs9zohLckTUe9KyefjzseEIYTtMrvRoUpUWU+E2liXNXFKIuNGTJ+8iMk00g2m1OQSxWdxbZRm8Wq6QhmnNzh85oh8u6NZ5QIXTlLNjf91Y2mex0hWdTikPst/ZLULxaZIs9Eq19W+Vsntczdg9J8aqeEXNeJFfH51JBb49Jx4hkOwAjhm8B5kgp2RZ59M4vStUhRw/T8z4a1NntY/DBuNQmhsgcee/WMhURmosGBA0MjQuz05SXTF3mhDFeq1o0WXF4PoTWIuE0IwV5xbNSvYpc5dyCO+qmFNTdh8cc5v6pZvO6NM11AV0fOWFRPk5E0BCR1sUH3d43Ab8L0Rn8jNwS0R/Hj2itzT2c3tPDb+DDcWmqixqJcHh9ZPeU4YZwmuiI1trDr+PT7HR10Gvz63HVuoa5BSrorTHpGJksAzC8bCN868zhNWXnI+Wg5XcO0Uh+TmiGPOONQ9X4y+4K1cJuLsRxP/Tqv4eQJf9OApjhkddHd08f3F6OV0KIVPWwhrXHlE6xSt5zlheGR4R5rld392G2o6B/NK8g254LIS4i8thd1vQ9G94ZNcKkRlypnCNVZpO3CsKhzZJIi9Xx0vAUDGmvKlirPGjrfJ8nt9ZhFLhB9x0efgeti/PNZKzTYjUsmZiu6ivuiwMZbkihBb/ltBGCIQUdlVKy7/QJhzMeCnU1o0McrZmTOJ9mp6GLz1Dv8/x5RznmH69VRWtz0YP38JDZRAzxbWpMj/ex00tERtRK7yL7QWNlRGEbh0Uw5XpySDtc0d2nDI811JchUoDyX9XNh8edWvCF5hUk5XOcvKRFrA1ZRLRgbmh4dWQKnttXpV6fpBVHDjy691Agbur0ZA/+OiQZpyWzWwjONbAiunJGhOU5yMiP/z4jSVX6v95UonIRn8HD+mBMKrr4DQe6rnD6LG67Qs3uJUsTHhXiqKCz+eotK3WGmOZCHDfCZ88dm6qg9h+3l6mhlehXVyKNjAq9q38iZjkt+BO2bc/RNDw1L6c+jHzpmWkxDjtPg/oop0bVOxSYaeOWvn4FILhmbSjG4ojuccRw5cstKehBAH+6dUsp5kW8qxOpJB4eebgOcbqi0psLaS6lQgqI3NftpybB7zAmfHn3N7ZtX6tp2ov0vGdCg4pU5PSsOLzqzK6pxR81CNJrTaB9aFiY0JXexbEqV0Fvjk7D2BSYMLx80fmIlLIXrODedSVSvzLiXZ1oY6MVD2znwd4KE7Wm3fQtw1CByetGcMhlQJIaEwPkIUCws3oIZvDYvlo9gQM3zE0uA7F0UrpiIbiIbflfre30fZw5WuAPX5XhzW8cQleh1VPinTfxgH+3pKDf8E2C1tgEKoDJO9JruDGGG1oQc8yUjnG4rlcC+iTqpHlKoWlU/nMceJdSjgawhvnk42M1yIo3kBqroXeiF0NTlZftA+R+SMpix4PDj0KvghBZpo0uVNCByqCK+QpcjErD+BRuKIY56JDk/LcZPLCnRk+avjyv0UsB0Uri/Sw4Iw+EMjBSsBgelOLBzB5+nNfZfYXWfh/Q7uJvRvAHMyDlF3UQgx7dXoZYQ1NcXlqsgeyOsTTKenBWAjYhbxxs6YemG3B+EGQY5xo4ekbPZF7j/OEcR0FzW1IQmeCPommI5iyPnkQlURgqhxU26Y3JHeNwXhcfsuL4/p9pQTdIzfP9ngPuc6SU3AU7mo0bgCYrXg/Hi2dETrHyXVa+HS2l5Ft21+6usMBuhMtidE/UECdlDYSggk6oV1psa893Qb3rlCW54ZepouXg37l3d0aAfzL/cNSYZcT0LvEYnuqyvnIrIChHo/dbZYjDbPxslSFLAfGUEIIcZ3gppTpvd6zLqweOVZuI0TUVDRgSOzjVy5yWFKSmTNn6vv2LxlMx7jdEMtiZcbR6h/kdmh7nkIlctlUCiLnQNL7Xs7W5g6mrq+sTExNDg6gM9eE5xFEM4HhLL4pJKYdwvg5msCsgg4AwFceueyptKZ/XNO3pkIdqkPaXVdAGjfwkt1FTzeXveCAN7QYNp/gMDEzxYFhaLAaneaH8xTY5hrvasu1/5ebmzuvcuXOTn8KRUpLZ5sQpWVD+EgvfAKEcBWQ1mjUK554XYFvnw7YEhAhCSr6pYULTv2R6aklBAwC5Y3uJief2VyqtEoHGG5rT/4nVVN+EPaCsBB0pkT0gyyyDpq+HEB8DWNTSa/PNbbgt/yal5NkxyzI90VRVdI3+HSFpmyuk0MeTeGXnkspgrE/0aGgfyxxqoJPPQGe/BxxcDYtiBiQ042to2mfsZwkheGA/ywr9NhJlIBekZBFqOrZ5kgCFhYUJqampbAWzp9LCsgDLrgB/t0foByDkdkB1UrdFv5j0s0j1Ax8qpfxdqP/U8h1mIABN5EEYhyHELgBUBv87IAS98/9utUhA19TUZMXFxc0AcCZbIqG5A+YFvhvEMEQXVm4s6Jon6VKzA053dTI46OH8hMARhbwa5OCbboU/9e8//BRH8j9mLdQoDqqNCwAAAABJRU5ErkJggg=="},Jq4h:function(Re,te,v){Re.exports=v.p+"static/qrcode.2267e4d5.png"},K2GJ:function(Re,te,v){var Z=v("fW2E"),K=v("gut8"),I=K.ContextCachedBy,k=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],_=function(t){this.extendFrom(t,!1)};function O(t,h,s){var i=h.x==null?0:h.x,u=h.x2==null?1:h.x2,d=h.y==null?0:h.y,f=h.y2==null?0:h.y2;h.global||(i=i*s.width+s.x,u=u*s.width+s.x,d=d*s.height+s.y,f=f*s.height+s.y),i=isNaN(i)?0:i,u=isNaN(u)?1:u,d=isNaN(d)?0:d,f=isNaN(f)?0:f;var o=t.createLinearGradient(i,d,u,f);return o}function M(t,h,s){var i=s.width,u=s.height,d=Math.min(i,u),f=h.x==null?.5:h.x,o=h.y==null?.5:h.y,c=h.r==null?.5:h.r;h.global||(f=f*i+s.x,o=o*u+s.y,c=c*d);var E=t.createRadialGradient(f,o,0,f,o,c);return E}_.prototype={constructor:_,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(t,h,s){var i=this,u=s&&s.style,d=!u||t.__attrCachedBy!==I.STYLE_BIND;t.__attrCachedBy=I.STYLE_BIND;for(var f=0;f<k.length;f++){var o=k[f],c=o[0];(d||i[c]!==u[c])&&(t[c]=Z(t,c,i[c]||o[1]))}if((d||i.fill!==u.fill)&&(t.fillStyle=i.fill),(d||i.stroke!==u.stroke)&&(t.strokeStyle=i.stroke),(d||i.opacity!==u.opacity)&&(t.globalAlpha=i.opacity==null?1:i.opacity),(d||i.blend!==u.blend)&&(t.globalCompositeOperation=i.blend||"source-over"),this.hasStroke()){var E=i.lineWidth;t.lineWidth=E/(this.strokeNoScale&&h&&h.getLineScale?h.getLineScale():1)}},hasFill:function(){var t=this.fill;return t!=null&&t!=="none"},hasStroke:function(){var t=this.stroke;return t!=null&&t!=="none"&&this.lineWidth>0},extendFrom:function(t,h){if(t)for(var s in t)t.hasOwnProperty(s)&&(h===!0||(h===!1?!this.hasOwnProperty(s):t[s]!=null))&&(this[s]=t[s])},set:function(t,h){typeof t=="string"?this[t]=h:this.extendFrom(t,!0)},clone:function(){var t=new this.constructor;return t.extendFrom(this,!0),t},getGradient:function(t,h,s){for(var i=h.type==="radial"?M:O,u=i(t,h,s),d=h.colorStops,f=0;f<d.length;f++)u.addColorStop(d[f].offset,d[f].color);return u}};for(var x=_.prototype,n=0;n<k.length;n++){var p=k[n];p[0]in x||(x[p[0]]=p[1])}_.getGradient=x.getGradient;var a=_;Re.exports=a},LPTA:function(Re,te){var v=1;typeof window!="undefined"&&(v=Math.max(window.devicePixelRatio||1,1));var Z=0,K=v;te.debugMode=Z,te.devicePixelRatio=K},LSTS:function(Re,te,v){"use strict";Object.defineProperty(te,"__esModule",{value:!0});var Z=function(){function t(h,s){for(var i=0;i<s.length;i++){var u=s[i];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(h,u.key,u)}}return function(h,s,i){return s&&t(h.prototype,s),i&&t(h,i),h}}(),K=v("q1tI"),I=O(K),k=v("17x9"),_=O(k);function O(t){return t&&t.__esModule?t:{default:t}}function M(t,h){var s={};for(var i in t){if(h.indexOf(i)>=0)continue;if(!Object.prototype.hasOwnProperty.call(t,i))continue;s[i]=t[i]}return s}function x(t,h){if(!(t instanceof h))throw new TypeError("Cannot call a class as a function")}function n(t,h){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:t}function p(t,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);t.prototype=Object.create(h&&h.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(t,h):t.__proto__=h)}var a=function(t){p(h,t);function h(s){x(this,h);var i=n(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,s));return i.scrollListener=i.scrollListener.bind(i),i.eventListenerOptions=i.eventListenerOptions.bind(i),i.mousewheelListener=i.mousewheelListener.bind(i),i}return Z(h,[{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 i=this.getParentElement(this.scrollComponent);i.scrollTop=i.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var i=!1,u={get passive(){i=!0}};try{document.addEventListener("test",null,u),document.removeEventListener("test",null,u)}catch(d){}return i}},{key:"eventListenerOptions",value:function(){var i=this.props.useCapture;return this.isPassiveSupported()&&(i={useCapture:this.props.useCapture,passive:!0}),i}},{key:"setDefaultLoader",value:function(i){this.defaultLoader=i}},{key:"detachMousewheelListener",value:function(){var i=window;this.props.useWindow===!1&&(i=this.scrollComponent.parentNode),i.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var i=window;this.props.useWindow===!1&&(i=this.getParentElement(this.scrollComponent)),i.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),i.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(i){var u=this.props.getScrollParent&&this.props.getScrollParent();return u!=null?u:i&&i.parentNode}},{key:"filterProps",value:function(i){return i}},{key:"attachScrollListener",value:function(){var i=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!i)return;var u=window;this.props.useWindow===!1&&(u=i),u.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),u.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),u.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}},{key:"mousewheelListener",value:function(i){i.deltaY===1&&!this.isPassiveSupported()&&i.preventDefault()}},{key:"scrollListener",value:function(){var i=this.scrollComponent,u=window,d=this.getParentElement(i),f=void 0;if(this.props.useWindow){var o=document.documentElement||document.body.parentNode||document.body,c=u.pageYOffset!==void 0?u.pageYOffset:o.scrollTop;this.props.isReverse?f=c:f=this.calculateOffset(i,c)}else this.props.isReverse?f=d.scrollTop:f=i.scrollHeight-d.scrollTop-d.clientHeight;f<Number(this.props.threshold)&&i&&i.offsetParent!==null&&(this.detachScrollListener(),this.beforeScrollHeight=d.scrollHeight,this.beforeScrollTop=d.scrollTop,typeof this.props.loadMore=="function"&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(i,u){return i?this.calculateTopPosition(i)+(i.offsetHeight-u-window.innerHeight):0}},{key:"calculateTopPosition",value:function(i){return i?i.offsetTop+this.calculateTopPosition(i.offsetParent):0}},{key:"render",value:function(){var i=this,u=this.filterProps(this.props),d=u.children,f=u.element,o=u.hasMore,c=u.initialLoad,E=u.isReverse,B=u.loader,w=u.loadMore,P=u.pageStart,C=u.ref,b=u.threshold,l=u.useCapture,A=u.useWindow,g=u.getScrollParent,T=M(u,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]);T.ref=function(y){i.scrollComponent=y,C&&C(y)};var m=[d];return o&&(B?E?m.unshift(B):m.push(B):this.defaultLoader&&(E?m.unshift(this.defaultLoader):m.push(this.defaultLoader))),I.default.createElement(f,T,m)}}]),h}(K.Component);a.propTypes={children:_.default.node.isRequired,element:_.default.node,hasMore:_.default.bool,initialLoad:_.default.bool,isReverse:_.default.bool,loader:_.default.node,loadMore:_.default.func.isRequired,pageStart:_.default.number,ref:_.default.func,getScrollParent:_.default.func,threshold:_.default.number,useCapture:_.default.bool,useWindow:_.default.bool},a.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},te.default=a,Re.exports=te.default},LZjx:function(Re,te){Re.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAYCAYAAAD+vg1LAAAAAXNSR0IArs4c6QAAAgpJREFUSA3VVT1LHFEUPXdnPxUVU6TwB9j5hQZsElxECBgMgkIaU/kjJH8gmPQ2goWkMSSNWoSA7pIuKGxCmiSkFlQM6JpFd3fm5rzgzs6Ob3CywSKPYd7Mu+ecufe+e+cBMcduSTd2Svo6JhzJuEAFxgTgFW8IPVkhafz0An1VF11RtDsdyBrbzwouojBpB+WeLA6g+JjkLUNglnNOPXREkU7OfUskBgnUqZMVQcYPbXSZ+VPM+/Q2Hij2dn9J5gw10QY/FuX/E7aWWy4FPH8MdP+pg+jIz1gfzzaBSvU6xirsMEEsL/TkrhOCKykHcPztD1pgb5DzS+Dpeivwb99ubfOsqTDe5fuZihtyzG5F4bs9FqvwXTb2y1k7Ibw6vQIclsOrETk+IvDJ2s0em6qwiZrPWD02hh/H5t7+uLXNaworau37d8UU+K3SFBa8/1dh/i59jZa+GX2hi+JhhueE/8/NJNHZ14WRhCBtPuwpqgdllC7r+OU7oqhQaGtvSVYbay3CjcXGXPiiY14N7wjqlgQWeNIoPLxSQZnd/HBiRPYa2PAcKVz8rPddF9sEpCk6nx+WbUPmUTZN+TeMqqYOHk0OyoewqHm3ChdLes9VFGlVHgUzk0OyGyQXP2meKdmk1ZEUHuQHZD9oN8/NzQtYXEEvRb85DqbCogY2MSwFRjHFlHyVOrGW8RupGIelwwS0iwAAAABJRU5ErkJggg=="},LdHM:function(Re,te,v){"use strict";v.d(te,"b",function(){return c}),v.d(te,"a",function(){return B});var Z=v("1OyB"),K=v("vuIU"),I=v("Ji7U"),k=v("LK+K"),_=v("q1tI"),O=v("rePB"),M=v("Ff2n"),x=v("ODXe"),n=v("4IlW"),p=v("bX4T"),a=v("YrtM"),t=v("TSYQ"),h=v.n(t),s=v("+nKL"),i=v("8OUc"),u=function(z,Q){var $=z.prefixCls,ee=z.id,fe=z.flattenOptions,Ae=z.childrenAsData,ce=z.values,ie=z.searchValue,be=z.multiple,se=z.defaultActiveFirstOption,me=z.height,le=z.itemHeight,ge=z.notFoundContent,ae=z.open,pe=z.menuItemSelectedIcon,Me=z.virtual,xe=z.onSelect,Ke=z.onToggleOpen,tt=z.onActiveValue,he=z.onScroll,Se=z.onMouseEnter,Ue="".concat($,"-item"),Ne=Object(a.a)(function(){return fe},[ae,fe],function(vt,Ze){return Ze[0]&&vt[1]!==Ze[1]}),ct=_.useRef(null),mt=function(Ze){Ze.preventDefault()},Rt=function(Ze){ct.current&&ct.current.scrollTo({index:Ze})},ht=function(Ze){for(var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,He=Ne.length,we=0;we<He;we+=1){var Le=(Ze+we*ke+He)%He,Pe=Ne[Le],We=Pe.group,Xe=Pe.data;if(!We&&!Xe.disabled)return Le}return-1},Ut=_.useState(function(){return ht(0)}),zt=Object(x.a)(Ut,2),ze=zt[0],Ve=zt[1],Et=function(Ze){Ve(Ze);var ke=Ne[Ze];if(!ke){tt(null,-1);return}tt(ke.data.value,Ze)};_.useEffect(function(){Et(se!==!1?ht(0):-1)},[Ne.length,ie]),_.useEffect(function(){var vt=setTimeout(function(){if(!be&&ae&&ce.size===1){var Ze=Array.from(ce)[0],ke=Ne.findIndex(function(He){var we=He.data;return we.value===Ze});Et(ke),Rt(ke)}});return function(){return clearTimeout(vt)}},[ae]);var Ot=function(Ze){Ze!==void 0&&xe(Ze,{selected:!ce.has(Ze)}),be||Ke(!1)};if(_.useImperativeHandle(Q,function(){return{onKeyDown:function(Ze){var ke=Ze.which;switch(ke){case n.a.UP:case n.a.DOWN:{var He=0;if(ke===n.a.UP?He=-1:ke===n.a.DOWN&&(He=1),He!==0){var we=ht(ze+He,He);Rt(we),Et(we)}break}case n.a.ENTER:{var Le=Ne[ze];Le&&!Le.data.disabled?Ot(Le.data.value):Ot(void 0),ae&&Ze.preventDefault();break}case n.a.ESC:Ke(!1)}},onKeyUp:function(){},scrollTo:function(Ze){Rt(Ze)}}}),Ne.length===0)return _.createElement("div",{role:"listbox",id:"".concat(ee,"_list"),className:"".concat(Ue,"-empty"),onMouseDown:mt},ge);function ut(vt){var Ze=Ne[vt];if(!Ze)return null;var ke=Ze.data||{},He=ke.value,we=ke.label,Le=ke.children,Pe=Object(p.a)(ke,!0),We=Ae?Le:we;return Ze?_.createElement("div",Object.assign({"aria-label":typeof We=="string"?We:null},Pe,{key:vt,role:"option",id:"".concat(ee,"_list_").concat(vt),"aria-selected":ce.has(He)}),He):null}return _.createElement(_.Fragment,null,_.createElement("div",{role:"listbox",id:"".concat(ee,"_list"),style:{height:0,width:0,overflow:"hidden"}},ut(ze-1),ut(ze),ut(ze+1)),_.createElement(s.a,{itemKey:"key",ref:ct,data:Ne,height:me,itemHeight:le,fullHeight:!1,onMouseDown:mt,onScroll:he,virtual:Me,onMouseEnter:Se},function(vt,Ze){var ke,He=vt.group,we=vt.groupOption,Le=vt.data,Pe=Le.label,We=Le.key;if(He)return _.createElement("div",{className:h()(Ue,"".concat(Ue,"-group"))},Pe!==void 0?Pe:We);var Xe=Le.disabled,gt=Le.value,Lt=Le.title,en=Le.children,Zt=Le.style,xt=Le.className,Ct=Object(M.a)(Le,["disabled","value","title","children","style","className"]),pt=ce.has(gt),Je="".concat(Ue,"-option"),Qe=h()(Ue,Je,xt,(ke={},Object(O.a)(ke,"".concat(Je,"-grouped"),we),Object(O.a)(ke,"".concat(Je,"-active"),ze===Ze&&!Xe),Object(O.a)(ke,"".concat(Je,"-disabled"),Xe),Object(O.a)(ke,"".concat(Je,"-selected"),pt),ke)),Oe=Ae?en:Pe,je=!pe||typeof pe=="function"||pt;return _.createElement("div",Object.assign({},Ct,{"aria-selected":pt,className:Qe,title:Lt,onMouseMove:function(){if(ze===Ze||Xe)return;Et(Ze)},onClick:function(){Xe||Ot(gt)},style:Zt}),_.createElement("div",{className:"".concat(Je,"-content")},Oe||gt),_.isValidElement(pe)||pt,je&&_.createElement(i.a,{className:"".concat(Ue,"-option-state"),customizeIcon:pe,customizeIconProps:{isSelected:pt}},pt?"\u2713":null))}))},d=_.forwardRef(u);d.displayName="OptionList";var f=d,o=function(){return null};o.isSelectOption=!0;var c=o,E=function(){return null};E.isSelectOptGroup=!0;var B=E,w=v("VTBJ"),P=v("Zm9Q");function C(R){var z=R.key,Q=R.props,$=Q.children,ee=Q.value,fe=Object(M.a)(Q,["children","value"]);return Object(w.a)({key:z,value:ee!==void 0?ee:z,children:$},fe)}function b(R){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Object(P.a)(R).map(function(Q,$){if(!_.isValidElement(Q)||!Q.type)return null;var ee=Q.type.isSelectOptGroup,fe=Q.key,Ae=Q.props,ce=Ae.children,ie=Object(M.a)(Ae,["children"]);return z||!ee?C(Q):Object(w.a)(Object(w.a)({key:"__RC_SELECT_GRP__".concat(fe===null?$:fe,"__"),label:fe},ie),{},{options:b(ce)})}).filter(function(Q){return Q})}var l=v("2Qr1"),A=v("qNPg"),g=v("U8pU"),T=v("Kwbf"),m=v("WKfj");function y(R){var z=R.mode,Q=R.options,$=R.children,ee=R.backfill,fe=R.allowClear,Ae=R.placeholder,ce=R.getInputElement,ie=R.showSearch,be=R.onSearch,se=R.defaultOpen,me=R.autoFocus,le=R.labelInValue,ge=R.value,ae=R.inputValue,pe=R.optionLabelProp,Me=z==="multiple"||z==="tags",xe=ie!==void 0?ie:Me||z==="combobox",Ke=Q||b($);if(Object(T.a)(z!=="tags"||Ke.every(function(Ue){return!Ue.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),z==="tags"||z==="combobox"){var tt=Ke.some(function(Ue){return Ue.options?Ue.options.some(function(Ne){return typeof("value"in Ne?Ne.value:Ne.key)=="number"}):typeof("value"in Ue?Ue.value:Ue.key)=="number"});Object(T.a)(!tt,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(T.a)(z!=="combobox"||!pe,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(T.a)(z==="combobox"||!ee,"`backfill` only works with `combobox` mode."),Object(T.a)(z==="combobox"||!ce,"`getInputElement` only work with `combobox` mode."),Object(T.b)(z!=="combobox"||!ce||!fe||!Ae,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),be&&!xe&&z!=="combobox"&&z!=="tags"&&Object(T.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(T.b)(!se||me,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),ge!=null){var he=Object(m.d)(ge);Object(T.a)(!le||he.every(function(Ue){return Object(g.a)(Ue)==="object"&&("key"in Ue||"value"in Ue)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(T.a)(!Me||Array.isArray(ge),"`value` should be array when `mode` is `multiple` or `tags`")}if($){var Se=null;Object(P.a)($).some(function(Ue){if(!_.isValidElement(Ue)||!Ue.type)return!1;var Ne=Ue.type;if(Ne.isSelectOption)return!1;if(Ne.isSelectOptGroup){var ct=Object(P.a)(Ue.props.children).every(function(mt){return!_.isValidElement(mt)||!Ue.type||mt.type.isSelectOption?!0:(Se=mt.type,!1)});return!ct}return Se=Ne,!0}),Se&&Object(T.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Se.displayName||Se.name||Se,"`.")),Object(T.a)(ae===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var U=y,N=Object(A.a)({prefixCls:"rc-select",components:{optionList:f},convertChildrenToData:b,flattenOptions:l.d,getLabeledValue:l.e,filterOptions:l.b,isValueDisabled:l.g,findValueOption:l.c,warningProps:U,fillOptionsWithMissingValue:l.a}),S=function(R){Object(I.a)(Q,R);var z=Object(k.a)(Q);function Q(){var $;return Object(Z.a)(this,Q),$=z.apply(this,arguments),$.selectRef=_.createRef(),$.focus=function(){$.selectRef.current.focus()},$.blur=function(){$.selectRef.current.blur()},$}return Object(K.a)(Q,[{key:"render",value:function(){return _.createElement(N,Object.assign({ref:this.selectRef},this.props))}}]),Q}(_.Component);S.Option=c,S.OptGroup=B;var H=S,F=te.c=H},M8RZ:function(Re,te,v){"use strict";v.d(te,"a",function(){return n});var Z=v("fWQN"),K=v("mtLc"),I=v("yKVA"),k=v("879j"),_=v("q1tI"),O=v.n(_),M=v("i8i4"),x=v.n(M),n=function(p){Object(I.a)(t,p);var a=Object(k.a)(t);function t(h){var s;Object(Z.a)(this,t),s=a.call(this,h);var i=window.document;return s.node=i.createElement("div"),i.body.appendChild(s.node),s}return Object(K.a)(t,[{key:"render",value:function(){var s=this.props.children;return Object(M.createPortal)(s,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),t}(O.a.Component)},MEGo:function(Re,te,v){var Z=v("4fz+"),K=v("Dagg"),I=v("dqUG"),k=v("2fw6"),_=v("x6Kt"),O=v("rmlV"),M=v("yxFR"),x=v("y+Vt"),n=v("h7HQ"),p=v("1Jh7"),a=v("SKnc"),t=v("K2GJ"),h=v("Fofx"),s=v("NC18"),i=s.createFromString,u=v("bYtY"),d=u.isString,f=u.extend,o=u.defaults,c=u.trim,E=u.each,B=/[\s,]+/;function w(Q){if(d(Q)){var $=new DOMParser;Q=$.parseFromString(Q,"text/xml")}for(Q.nodeType===9&&(Q=Q.firstChild);Q.nodeName.toLowerCase()!=="svg"||Q.nodeType!==1;)Q=Q.nextSibling;return Q}function P(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}P.prototype.parse=function(Q,$){$=$||{};var ee=w(Q);if(!ee)throw new Error("Illegal svg");var fe=new Z;this._root=fe;var Ae=ee.getAttribute("viewBox")||"",ce=parseFloat(ee.getAttribute("width")||$.width),ie=parseFloat(ee.getAttribute("height")||$.height);isNaN(ce)&&(ce=null),isNaN(ie)&&(ie=null),m(ee,fe,null,!0);for(var be=ee.firstChild;be;)this._parseNode(be,fe),be=be.nextSibling;var se,me;if(Ae){var le=c(Ae).split(B);le.length>=4&&(se={x:parseFloat(le[0]||0),y:parseFloat(le[1]||0),width:parseFloat(le[2]),height:parseFloat(le[3])})}if(se&&ce!=null&&ie!=null&&(me=R(se,ce,ie),!$.ignoreViewBox)){var ge=fe;fe=new Z,fe.add(ge),ge.scale=me.scale.slice(),ge.position=me.position.slice()}return!$.ignoreRootClip&&ce!=null&&ie!=null&&fe.setClipPath(new _({shape:{x:0,y:0,width:ce,height:ie}})),{root:fe,width:ce,height:ie,viewBoxRect:se,viewBoxTransform:me}},P.prototype._parseNode=function(Q,$){var ee=Q.nodeName.toLowerCase();ee==="defs"?this._isDefine=!0:ee==="text"&&(this._isText=!0);var fe;if(this._isDefine){var Ae=b[ee];if(Ae){var ce=Ae.call(this,Q),ie=Q.getAttribute("id");ie&&(this._defs[ie]=ce)}}else{var Ae=C[ee];Ae&&(fe=Ae.call(this,Q,$),$.add(fe))}for(var be=Q.firstChild;be;)be.nodeType===1&&this._parseNode(be,fe),be.nodeType===3&&this._isText&&this._parseText(be,fe),be=be.nextSibling;ee==="defs"?this._isDefine=!1:ee==="text"&&(this._isText=!1)},P.prototype._parseText=function(Q,$){if(Q.nodeType===1){var ee=Q.getAttribute("dx")||0,fe=Q.getAttribute("dy")||0;this._textX+=parseFloat(ee),this._textY+=parseFloat(fe)}var Ae=new I({style:{text:Q.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});A($,Ae),m(Q,Ae,this._defs);var ce=Ae.style.fontSize;ce&&ce<9&&(Ae.style.fontSize=9,Ae.scale=Ae.scale||[1,1],Ae.scale[0]*=ce/9,Ae.scale[1]*=ce/9);var ie=Ae.getBoundingRect();return this._textX+=ie.width,$.add(Ae),Ae};var C={g:function(Q,$){var ee=new Z;return A($,ee),m(Q,ee,this._defs),ee},rect:function(Q,$){var ee=new _;return A($,ee),m(Q,ee,this._defs),ee.setShape({x:parseFloat(Q.getAttribute("x")||0),y:parseFloat(Q.getAttribute("y")||0),width:parseFloat(Q.getAttribute("width")||0),height:parseFloat(Q.getAttribute("height")||0)}),ee},circle:function(Q,$){var ee=new k;return A($,ee),m(Q,ee,this._defs),ee.setShape({cx:parseFloat(Q.getAttribute("cx")||0),cy:parseFloat(Q.getAttribute("cy")||0),r:parseFloat(Q.getAttribute("r")||0)}),ee},line:function(Q,$){var ee=new M;return A($,ee),m(Q,ee,this._defs),ee.setShape({x1:parseFloat(Q.getAttribute("x1")||0),y1:parseFloat(Q.getAttribute("y1")||0),x2:parseFloat(Q.getAttribute("x2")||0),y2:parseFloat(Q.getAttribute("y2")||0)}),ee},ellipse:function(Q,$){var ee=new O;return A($,ee),m(Q,ee,this._defs),ee.setShape({cx:parseFloat(Q.getAttribute("cx")||0),cy:parseFloat(Q.getAttribute("cy")||0),rx:parseFloat(Q.getAttribute("rx")||0),ry:parseFloat(Q.getAttribute("ry")||0)}),ee},polygon:function(Q,$){var ee=Q.getAttribute("points");ee&&(ee=g(ee));var fe=new n({shape:{points:ee||[]}});return A($,fe),m(Q,fe,this._defs),fe},polyline:function(Q,$){var ee=new x;A($,ee),m(Q,ee,this._defs);var fe=Q.getAttribute("points");fe&&(fe=g(fe));var Ae=new p({shape:{points:fe||[]}});return Ae},image:function(Q,$){var ee=new K;return A($,ee),m(Q,ee,this._defs),ee.setStyle({image:Q.getAttribute("xlink:href"),x:Q.getAttribute("x"),y:Q.getAttribute("y"),width:Q.getAttribute("width"),height:Q.getAttribute("height")}),ee},text:function(Q,$){var ee=Q.getAttribute("x")||0,fe=Q.getAttribute("y")||0,Ae=Q.getAttribute("dx")||0,ce=Q.getAttribute("dy")||0;this._textX=parseFloat(ee)+parseFloat(Ae),this._textY=parseFloat(fe)+parseFloat(ce);var ie=new Z;return A($,ie),m(Q,ie,this._defs),ie},tspan:function(Q,$){var ee=Q.getAttribute("x"),fe=Q.getAttribute("y");ee!=null&&(this._textX=parseFloat(ee)),fe!=null&&(this._textY=parseFloat(fe));var Ae=Q.getAttribute("dx")||0,ce=Q.getAttribute("dy")||0,ie=new Z;return A($,ie),m(Q,ie,this._defs),this._textX+=Ae,this._textY+=ce,ie},path:function(Q,$){var ee=Q.getAttribute("d")||"",fe=i(ee);return A($,fe),m(Q,fe,this._defs),fe}},b={lineargradient:function(Q){var $=parseInt(Q.getAttribute("x1")||0,10),ee=parseInt(Q.getAttribute("y1")||0,10),fe=parseInt(Q.getAttribute("x2")||10,10),Ae=parseInt(Q.getAttribute("y2")||0,10),ce=new a($,ee,fe,Ae);return l(Q,ce),ce},radialgradient:function(Q){}};function l(Q,$){for(var ee=Q.firstChild;ee;){if(ee.nodeType===1){var fe=ee.getAttribute("offset");fe.indexOf("%")>0?fe=parseInt(fe,10)/100:fe?fe=parseFloat(fe):fe=0;var Ae=ee.getAttribute("stop-color")||"#000000";$.addColorStop(fe,Ae)}ee=ee.nextSibling}}function A(Q,$){Q&&Q.__inheritedStyle&&($.__inheritedStyle||($.__inheritedStyle={}),o($.__inheritedStyle,Q.__inheritedStyle))}function g(Q){for(var $=c(Q).split(B),ee=[],fe=0;fe<$.length;fe+=2){var Ae=parseFloat($[fe]),ce=parseFloat($[fe+1]);ee.push([Ae,ce])}return ee}var T={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 m(Q,$,ee,fe){var Ae=$.__inheritedStyle||{},ce=$.type==="text";if(Q.nodeType===1&&(S(Q,$),f(Ae,F(Q)),!fe)){for(var ie in T)if(T.hasOwnProperty(ie)){var be=Q.getAttribute(ie);be!=null&&(Ae[T[ie]]=be)}}var se=ce?"textFill":"fill",me=ce?"textStroke":"stroke";$.style=$.style||new t;var le=$.style;Ae.fill!=null&&le.set(se,U(Ae.fill,ee)),Ae.stroke!=null&&le.set(me,U(Ae.stroke,ee)),E(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(ge){var ae=ge==="lineWidth"&&ce?"textStrokeWidth":ge;Ae[ge]!=null&&le.set(ae,parseFloat(Ae[ge]))}),(!Ae.textBaseline||Ae.textBaseline==="auto")&&(Ae.textBaseline="alphabetic"),Ae.textBaseline==="alphabetic"&&(Ae.textBaseline="bottom"),Ae.textAlign==="start"&&(Ae.textAlign="left"),Ae.textAlign==="end"&&(Ae.textAlign="right"),E(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign","textBaseline"],function(ge){Ae[ge]!=null&&le.set(ge,Ae[ge])}),Ae.lineDash&&($.style.lineDash=c(Ae.lineDash).split(B)),le[me]&&le[me]!=="none"&&($[me]=!0),$.__inheritedStyle=Ae}var y=/url\(\s*#(.*?)\)/;function U(Q,$){var ee=$&&Q&&Q.match(y);if(ee){var fe=c(ee[1]),Ae=$[fe];return Ae}return Q}var N=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g;function S(Q,$){var ee=Q.getAttribute("transform");if(ee){ee=ee.replace(/,/g," ");var fe=null,Ae=[];ee.replace(N,function(se,me,le){Ae.push(me,le)});for(var ce=Ae.length-1;ce>0;ce-=2){var ie=Ae[ce],be=Ae[ce-1];fe=fe||h.create();switch(be){case"translate":ie=c(ie).split(B),h.translate(fe,fe,[parseFloat(ie[0]),parseFloat(ie[1]||0)]);break;case"scale":ie=c(ie).split(B),h.scale(fe,fe,[parseFloat(ie[0]),parseFloat(ie[1]||ie[0])]);break;case"rotate":ie=c(ie).split(B),h.rotate(fe,fe,parseFloat(ie[0]));break;case"skew":ie=c(ie).split(B),console.warn("Skew transform is not supported yet");break;case"matrix":var ie=c(ie).split(B);fe[0]=parseFloat(ie[0]),fe[1]=parseFloat(ie[1]),fe[2]=parseFloat(ie[2]),fe[3]=parseFloat(ie[3]),fe[4]=parseFloat(ie[4]),fe[5]=parseFloat(ie[5]);break}}$.setLocalTransform(fe)}}var H=/([^\s:;]+)\s*:\s*([^:;]+)/g;function F(Q){var $=Q.getAttribute("style"),ee={};if(!$)return ee;var fe={};H.lastIndex=0;for(var Ae;(Ae=H.exec($))!=null;)fe[Ae[1]]=Ae[2];for(var ce in T)T.hasOwnProperty(ce)&&fe[ce]!=null&&(ee[T[ce]]=fe[ce]);return ee}function R(Q,$,ee){var fe=$/Q.width,Ae=ee/Q.height,ce=Math.min(fe,Ae),ie=[ce,ce],be=[-(Q.x+Q.width/2)*ce+$/2,-(Q.y+Q.height/2)*ce+ee/2];return{scale:ie,position:be}}function z(Q,$){var ee=new P;return ee.parse(Q,$)}te.parseXML=w,te.makeViewBoxTransform=R,te.parseSVG=z},MI8n:function(Re,te,v){"use strict";v.d(te,"c",function(){return _}),v.d(te,"b",function(){return n}),v.d(te,"e",function(){return p}),v.d(te,"a",function(){return a}),v.d(te,"d",function(){return t}),v.d(te,"f",function(){return h});var Z=v("/cxE"),K=v("pmY6"),I=v("24hK"),k=v("5Y4S"),_;(function(s){s.None=()=>K.a.None;function i(y){return(U,N=null,S)=>{let H=!1,F;return F=y(R=>H?void 0:(F?F.dispose():H=!0,U.call(N,R)),null,S),H&&F.dispose(),F}}s.once=i;function u(y,U){return B((N,S=null,H)=>y(F=>N.call(S,U(F)),null,H))}s.map=u;function d(y,U){return B((N,S=null,H)=>y(F=>{U(F),N.call(S,F)},null,H))}s.forEach=d;function f(y,U){return B((N,S=null,H)=>y(F=>U(F)&&N.call(S,F),null,H))}s.filter=f;function o(y){return y}s.signal=o;function c(...y){return(U,N=null,S)=>Object(K.e)(...y.map(H=>H(F=>U.call(N,F),null,S)))}s.any=c;function E(y,U,N){let S=N;return u(y,H=>(S=U(S,H),S))}s.reduce=E;function B(y){let U;const N=new n({onFirstListenerAdd(){U=y(N.fire,N)},onLastListenerRemove(){U.dispose()}});return N.event}function w(y,U,N=100,S=!1,H){let F,R,z,Q=0;const $=new n({leakWarningThreshold:H,onFirstListenerAdd(){F=y(ee=>{Q++,R=U(R,ee),S&&!z&&($.fire(R),R=void 0),clearTimeout(z),z=setTimeout(()=>{const fe=R;R=void 0,z=void 0,(!S||Q>1)&&$.fire(fe),Q=0},N)})},onLastListenerRemove(){F.dispose()}});return $.event}s.debounce=w;function P(y,U=(N,S)=>N===S){let N=!0,S;return f(y,H=>{const F=N||!U(H,S);return N=!1,S=H,F})}s.latch=P;function C(y,U){return[s.filter(y,U),s.filter(y,N=>!U(N))]}s.split=C;function b(y,U=!1,N=[]){let S=N.slice(),H=y(z=>{S?S.push(z):R.fire(z)});const F=()=>{S&&S.forEach(z=>R.fire(z)),S=null},R=new n({onFirstListenerAdd(){H||(H=y(z=>R.fire(z)))},onFirstListenerDidAdd(){S&&(U?setTimeout(F):F())},onLastListenerRemove(){H&&H.dispose(),H=null}});return R.event}s.buffer=b;class l{constructor(y){this.event=y}map(y){return new l(u(this.event,y))}forEach(y){return new l(d(this.event,y))}filter(y){return new l(f(this.event,y))}reduce(y,U){return new l(E(this.event,y,U))}latch(){return new l(P(this.event))}debounce(y,U=100,N=!1,S){return new l(w(this.event,y,U,N,S))}on(y,U,N){return this.event(y,U,N)}once(y,U,N){return i(this.event)(y,U,N)}}function A(y){return new l(y)}s.chain=A;function g(y,U,N=S=>S){const S=(...z)=>R.fire(N(...z)),H=()=>y.on(U,S),F=()=>y.removeListener(U,S),R=new n({onFirstListenerAdd:H,onLastListenerRemove:F});return R.event}s.fromNodeEventEmitter=g;function T(y,U,N=S=>S){const S=(...z)=>R.fire(N(...z)),H=()=>y.addEventListener(U,S),F=()=>y.removeEventListener(U,S),R=new n({onFirstListenerAdd:H,onLastListenerRemove:F});return R.event}s.fromDOMEventEmitter=T;function m(y){return new Promise(U=>i(y)(U))}s.toPromise=m})(_||(_={}));class O{constructor(s){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${s}_${O._idPool++}`}start(s){this._stopWatch=new k.a(!0),this._listenerCount=s}stop(){if(this._stopWatch){const s=this._stopWatch.elapsed();this._elapsedOverall+=s,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${s.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}O._idPool=0;let M=-1;class x{constructor(s,i=Math.random().toString(18).slice(2,5)){this.customThreshold=s,this.name=i,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(s){let i=M;if(typeof this.customThreshold=="number"&&(i=this.customThreshold),i<=0||s<i)return;this._stacks||(this._stacks=new Map);const u=new Error().stack.split(`
|
|
`).slice(3).join(`
|
|
`),d=this._stacks.get(u)||0;if(this._stacks.set(u,d+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=i*.5;let f,o=0;for(const[c,E]of this._stacks)(!f||o<E)&&(f=c,o=E);console.warn(`[${this.name}] potential listener LEAK detected, having ${s} listeners already. MOST frequent listener (${o}):`),console.warn(f)}return()=>{const f=this._stacks.get(u)||0;this._stacks.set(u,f-1)}}}class n{constructor(s){var i;this._disposed=!1,this._options=s,this._leakageMon=M>0?new x(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=((i=this._options)===null||i===void 0?void 0:i._profName)?new O(this._options._profName):void 0}get event(){return this._event||(this._event=(s,i,u)=>{var d;this._listeners||(this._listeners=new I.a);const f=this._listeners.isEmpty();f&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const o=this._listeners.push(i?[s,i]:s);f&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,s,i);const c=(d=this._leakageMon)===null||d===void 0?void 0:d.check(this._listeners.size),E=Object(K.i)(()=>{if(c&&c(),!this._disposed&&(o(),this._options&&this._options.onLastListenerRemove)){const B=this._listeners&&!this._listeners.isEmpty();B||this._options.onLastListenerRemove(this)}});return u instanceof K.b?u.add(E):Array.isArray(u)&&u.push(E),E}),this._event}fire(s){var i,u;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new I.a);for(let d of this._listeners)this._deliveryQueue.push([d,s]);for((i=this._perfMon)===null||i===void 0||i.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[d,f]=this._deliveryQueue.shift();try{typeof d=="function"?d.call(void 0,f):d[0].call(d[1],f)}catch(o){Object(Z.f)(o)}}(u=this._perfMon)===null||u===void 0||u.stop()}}dispose(){var s,i,u,d,f;this._disposed||(this._disposed=!0,(s=this._listeners)===null||s===void 0||s.clear(),(i=this._deliveryQueue)===null||i===void 0||i.clear(),(d=(u=this._options)===null||u===void 0?void 0:u.onLastListenerRemove)===null||d===void 0||d.call(u),(f=this._leakageMon)===null||f===void 0||f.dispose())}}class p extends n{constructor(s){super(s);this._isPaused=0,this._eventQueue=new I.a,this._mergeFn=s==null?void 0:s.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const s=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(s))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(s){this._listeners&&(this._isPaused!==0?this._eventQueue.push(s):super.fire(s))}}class a extends p{constructor(s){var i;super(s);this._delay=(i=s.delay)!==null&&i!==void 0?i:100}fire(s){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(s)}}class t{constructor(){this.buffers=[]}wrapEvent(s){return(i,u,d)=>s(f=>{const o=this.buffers[this.buffers.length-1];o?o.push(()=>i.call(u,f)):i.call(u,f)},void 0,d)}bufferEvents(s){const i=[];this.buffers.push(i);const u=s();return this.buffers.pop(),i.forEach(d=>d()),u}}class h{constructor(){this.listening=!1,this.inputEvent=_.None,this.inputEventListener=K.a.None,this.emitter=new n({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(s){this.inputEvent=s,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=s(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},MKOG:function(Re,te,v){var Z=v("bYtY"),K=v("YH21"),I=K.Dispatcher,k=v("mLcG"),_=v("Bq2U"),O=function(x){x=x||{},this.stage=x.stage||{},this.onframe=x.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,I.call(this)};O.prototype={constructor:O,addClip:function(x){this._clips.push(x)},addAnimator:function(x){x.animation=this;for(var n=x.getClips(),p=0;p<n.length;p++)this.addClip(n[p])},removeClip:function(x){var n=Z.indexOf(this._clips,x);n>=0&&this._clips.splice(n,1)},removeAnimator:function(x){for(var n=x.getClips(),p=0;p<n.length;p++)this.removeClip(n[p]);x.animation=null},_update:function(){for(var x=new Date().getTime()-this._pausedTime,n=x-this._time,p=this._clips,a=p.length,t=[],h=[],s=0;s<a;s++){var i=p[s],u=i.step(x,n);u&&(t.push(u),h.push(i))}for(var s=0;s<a;)p[s]._needsRemove?(p[s]=p[a-1],p.pop(),a--):s++;a=t.length;for(var s=0;s<a;s++)h[s].fire(t[s]);this._time=x,this.onframe(n),this.trigger("frame",n),this.stage.update&&this.stage.update()},_startLoop:function(){var x=this;this._running=!0;function n(){x._running&&(k(n),!x._paused&&x._update())}k(n)},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(x,n){n=n||{};var p=new _(x,n.loop,n.getter,n.setter);return this.addAnimator(p),p}},Z.mixin(O,I);var M=O;Re.exports=M},MKdu:function(Re,te,v){Re.exports=v.p+"static/fsz.c0b87223.svg"},MNsG:function(Re,te,v){"use strict";(function(Z,K){v.d(te,"b",function(){return u}),v.d(te,"i",function(){return c}),v.d(te,"f",function(){return E}),v.d(te,"d",function(){return B}),v.d(te,"g",function(){return w}),v.d(te,"h",function(){return P}),v.d(te,"c",function(){return C}),v.d(te,"k",function(){return b}),v.d(te,"j",function(){return l}),v.d(te,"a",function(){return A}),v.d(te,"e",function(){return m});var I;const k="en";let _=!1,O=!1,M=!1,x=!1,n=!1,p=!1,a=!1,t,h=k,s,i;const u=typeof self=="object"?self:typeof Z=="object"?Z:{};let d;typeof u.vscode!="undefined"&&typeof u.vscode.process!="undefined"?d=u.vscode.process:typeof K!="undefined"&&(d=K);const f=typeof((I=d==null?void 0:d.versions)===null||I===void 0?void 0:I.electron)=="string"&&d.type==="renderer";if(typeof navigator=="object"&&!f)i=navigator.userAgent,_=i.indexOf("Windows")>=0,O=i.indexOf("Macintosh")>=0,a=(i.indexOf("Macintosh")>=0||i.indexOf("iPad")>=0||i.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,M=i.indexOf("Linux")>=0,p=!0,t=navigator.language,h=t;else if(typeof d=="object"){_=d.platform==="win32",O=d.platform==="darwin",M=d.platform==="linux",x=M&&!!d.env.SNAP&&!!d.env.SNAP_REVISION,t=k,h=k;const y=d.env.VSCODE_NLS_CONFIG;if(y)try{const U=JSON.parse(y),N=U.availableLanguages["*"];t=U.locale,h=N||k,s=U._translationsConfigFile}catch(U){}n=!0}else console.error("Unable to resolve platform.");let o=0;O?o=1:_?o=3:M&&(o=2);const c=_,E=O,B=M,w=n,P=p,C=a,b=i,l=function(){if(u.setImmediate)return u.setImmediate.bind(u);if(typeof u.postMessage=="function"&&!u.importScripts){let N=[];u.addEventListener("message",H=>{if(H.data&&H.data.vscodeSetImmediateId)for(let F=0,R=N.length;F<R;F++){const z=N[F];if(z.id===H.data.vscodeSetImmediateId){N.splice(F,1),z.callback();return}}});let S=0;return H=>{const F=++S;N.push({id:F,callback:H}),u.postMessage({vscodeSetImmediateId:F},"*")}}if(typeof(d==null?void 0:d.nextTick)=="function")return d.nextTick.bind(d);const U=Promise.resolve();return N=>U.then(N)}(),A=O||a?2:_?1:3;let g=!0,T=!1;function m(){if(!T){T=!0;const y=new Uint8Array(2);y[0]=1,y[1]=2;const U=new Uint16Array(y.buffer);g=U[0]===(2<<8)+1}return g}}).call(this,v("IyRk"),v("Q2Ig"))},MPMw:function(Re,te,v){Re.exports=v.p+"static/xly.53dde837.png"},N0LK:function(Re,te,v){"use strict";v.d(te,"C",function(){return Z}),v.d(te,"v",function(){return I}),v.d(te,"s",function(){return k}),v.d(te,"t",function(){return _}),v.d(te,"U",function(){return O}),v.d(te,"J",function(){return M}),v.d(te,"O",function(){return x}),v.d(te,"p",function(){return n}),v.d(te,"T",function(){return p}),v.d(te,"q",function(){return a}),v.d(te,"N",function(){return t}),v.d(te,"M",function(){return h}),v.d(te,"Q",function(){return s}),v.d(te,"u",function(){return i}),v.d(te,"x",function(){return u}),v.d(te,"I",function(){return d}),v.d(te,"f",function(){return f}),v.d(te,"h",function(){return o}),v.d(te,"g",function(){return c}),v.d(te,"i",function(){return E}),v.d(te,"G",function(){return B}),v.d(te,"H",function(){return w}),v.d(te,"r",function(){return P}),v.d(te,"R",function(){return C}),v.d(te,"d",function(){return b}),v.d(te,"e",function(){return l}),v.d(te,"E",function(){return A}),v.d(te,"F",function(){return g}),v.d(te,"j",function(){return T}),v.d(te,"z",function(){return m}),v.d(te,"K",function(){return U}),v.d(te,"L",function(){return N}),v.d(te,"m",function(){return H}),v.d(te,"k",function(){return R}),v.d(te,"A",function(){return Q}),v.d(te,"a",function(){return $}),v.d(te,"n",function(){return ee}),v.d(te,"l",function(){return fe}),v.d(te,"D",function(){return Ae}),v.d(te,"B",function(){return ce}),v.d(te,"b",function(){return ie}),v.d(te,"S",function(){return be}),v.d(te,"o",function(){return se}),v.d(te,"P",function(){return me}),v.d(te,"w",function(){return le}),v.d(te,"c",function(){return ge}),v.d(te,"y",function(){return Me});function Z(he){return!he||typeof he!="string"?!0:he.trim().length===0}const K=/{(\d+)}/g;function I(he,...Se){return Se.length===0?he:he.replace(K,function(Ue,Ne){const ct=parseInt(Ne,10);return isNaN(ct)||ct<0||ct>=Se.length?Ue:Se[ct]})}function k(he){return he.replace(/[<>&]/g,function(Se){switch(Se){case"<":return"<";case">":return">";case"&":return"&";default:return Se}})}function _(he){return he.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function O(he,Se=" "){const Ue=M(he,Se);return x(Ue,Se)}function M(he,Se){if(!he||!Se)return he;const Ue=Se.length;if(Ue===0||he.length===0)return he;let Ne=0;for(;he.indexOf(Se,Ne)===Ne;)Ne=Ne+Ue;return he.substring(Ne)}function x(he,Se){if(!he||!Se)return he;const Ue=Se.length,Ne=he.length;if(Ue===0||Ne===0)return he;let ct=Ne,mt=-1;for(;!(mt=he.lastIndexOf(Se,ct-1),mt===-1||mt+Ue!==ct);){if(mt===0)return"";ct=mt}return he.substring(0,ct)}function n(he){return he.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function p(he){return he.replace(/\*/g,"")}function a(he,Se,Ue={}){if(!he)throw new Error("Cannot create regex from empty string");Se||(he=_(he)),Ue.wholeWord&&(/\B/.test(he.charAt(0))||(he="\\b"+he),/\B/.test(he.charAt(he.length-1))||(he=he+"\\b"));let Ne="";return Ue.global&&(Ne+="g"),Ue.matchCase||(Ne+="i"),Ue.multiline&&(Ne+="m"),Ue.unicode&&(Ne+="u"),new RegExp(he,Ne)}function t(he){if(he.source==="^"||he.source==="^$"||he.source==="$"||he.source==="^\\s*$")return!1;const Se=he.exec("");return!!(Se&&he.lastIndex===0)}function h(he){return(he.global?"g":"")+(he.ignoreCase?"i":"")+(he.multiline?"m":"")+(he.unicode?"u":"")}function s(he){return he.split(/\r\n|\r|\n/)}function i(he){for(let Se=0,Ue=he.length;Se<Ue;Se++){const Ne=he.charCodeAt(Se);if(Ne!==32&&Ne!==9)return Se}return-1}function u(he,Se=0,Ue=he.length){for(let Ne=Se;Ne<Ue;Ne++){const ct=he.charCodeAt(Ne);if(ct!==32&&ct!==9)return he.substring(Se,Ne)}return he.substring(Se,Ue)}function d(he,Se=he.length-1){for(let Ue=Se;Ue>=0;Ue--){const Ne=he.charCodeAt(Ue);if(Ne!==32&&Ne!==9)return Ue}return-1}function f(he,Se){return he<Se?-1:he>Se?1:0}function o(he,Se,Ue=0,Ne=he.length,ct=0,mt=Se.length){for(;Ue<Ne&&ct<mt;Ue++,ct++){let Ut=he.charCodeAt(Ue),zt=Se.charCodeAt(ct);if(Ut<zt)return-1;if(Ut>zt)return 1}const Rt=Ne-Ue,ht=mt-ct;return Rt<ht?-1:Rt>ht?1:0}function c(he,Se){return E(he,Se,0,he.length,0,Se.length)}function E(he,Se,Ue=0,Ne=he.length,ct=0,mt=Se.length){for(;Ue<Ne&&ct<mt;Ue++,ct++){let Ut=he.charCodeAt(Ue),zt=Se.charCodeAt(ct);if(Ut===zt)continue;if(Ut>=128||zt>=128)return o(he.toLowerCase(),Se.toLowerCase(),Ue,Ne,ct,mt);B(Ut)&&(Ut-=32),B(zt)&&(zt-=32);const ze=Ut-zt;if(ze===0)continue;return ze}const Rt=Ne-Ue,ht=mt-ct;return Rt<ht?-1:Rt>ht?1:0}function B(he){return he>=97&&he<=122}function w(he){return he>=65&&he<=90}function P(he,Se){return he.length===Se.length&&E(he,Se)===0}function C(he,Se){const Ue=Se.length;return Se.length>he.length?!1:E(he,Se,0,Ue)===0}function b(he,Se){let Ue,Ne=Math.min(he.length,Se.length);for(Ue=0;Ue<Ne;Ue++)if(he.charCodeAt(Ue)!==Se.charCodeAt(Ue))return Ue;return Ne}function l(he,Se){let Ue,Ne=Math.min(he.length,Se.length);const ct=he.length-1,mt=Se.length-1;for(Ue=0;Ue<Ne;Ue++)if(he.charCodeAt(ct-Ue)!==Se.charCodeAt(mt-Ue))return Ue;return Ne}function A(he){return 55296<=he&&he<=56319}function g(he){return 56320<=he&&he<=57343}function T(he,Se){return(he-55296<<10)+(Se-56320)+65536}function m(he,Se,Ue){const Ne=he.charCodeAt(Ue);if(A(Ne)&&Ue+1<Se){const ct=he.charCodeAt(Ue+1);if(g(ct))return T(Ne,ct)}return Ne}function y(he,Se){const Ue=he.charCodeAt(Se-1);if(g(Ue)&&Se>1){const Ne=he.charCodeAt(Se-2);if(A(Ne))return T(Ne,Ue)}return Ue}function U(he,Se){const Ue=ae.getInstance(),Ne=Se,ct=he.length,mt=m(he,ct,Se);Se+=mt>=65536?2:1;let Rt=Ue.getGraphemeBreakType(mt);for(;Se<ct;){const ht=m(he,ct,Se),Ut=Ue.getGraphemeBreakType(ht);if(ge(Rt,Ut))break;Se+=ht>=65536?2:1,Rt=Ut}return Se-Ne}function N(he,Se){const Ue=ae.getInstance(),Ne=Se,ct=y(he,Se);Se-=ct>=65536?2:1;let mt=Ue.getGraphemeBreakType(ct);for(;Se>0;){const Rt=y(he,Se),ht=Ue.getGraphemeBreakType(Rt);if(ge(ht,mt))break;Se-=Rt>=65536?2:1,mt=ht}return Ne-Se}const S=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function H(he){return S.test(he)}const F=/(?:[\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 R(he){return F.test(he)}const z=/^[\t\n\r\x20-\x7E]*$/;function Q(he){return z.test(he)}const $=/[\u2028\u2029]/;function ee(he){return $.test(he)}function fe(he){for(let Se=0,Ue=he.length;Se<Ue;Se++)if(Ae(he.charCodeAt(Se)))return!0;return!1}function Ae(he){return he=+he,he>=11904&&he<=55215||he>=63744&&he<=64255||he>=65281&&he<=65374}function ce(he){return he>=127462&&he<=127487||he===8986||he===8987||he===9200||he===9203||he>=9728&&he<=10175||he===11088||he===11093||he>=127744&&he<=128591||he>=128640&&he<=128764||he>=128992&&he<=129003||he>=129280&&he<=129535||he>=129648&&he<=129750}const ie=String.fromCharCode(65279);function be(he){return!!(he&&he.length>0&&he.charCodeAt(0)===65279)}function se(he,Se=!1){return he?(Se&&(he=he.replace(/\\./g,"")),he.toLowerCase()!==he):!1}function me(he){const Se=90-65+1;return he=he%(2*Se),he<Se?String.fromCharCode(97+he):String.fromCharCode(65+he-Se)}function le(he){const Se=ae.getInstance();return Se.getGraphemeBreakType(he)}function ge(he,Se){return he===0?Se!==5&&Se!==7:he===2&&Se===3?!1:he===4||he===2||he===3||(Se===4||Se===2||Se===3)?!0:he===8&&(Se===8||Se===9||Se===11||Se===12)||((he===11||he===9)&&(Se===9||Se===10)||((he===12||he===10)&&Se===10||(Se===5||Se===13||(Se===7||(he===1||he===13&&Se===14)))))?!1:!(he===6&&Se===6)}class ae{constructor(){this._data=pe()}static getInstance(){return ae._INSTANCE||(ae._INSTANCE=new ae),ae._INSTANCE}getGraphemeBreakType(he){if(he<32)return he===10?3:he===13?2:4;if(he<127)return 0;const Se=this._data,Ue=Se.length/3;let Ne=1;for(;Ne<=Ue;)if(he<Se[3*Ne])Ne=2*Ne;else if(he>Se[3*Ne+1])Ne=2*Ne+1;else return Se[3*Ne+2];return 0}}ae._INSTANCE=null;function pe(){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 Me(he,Se){if(he===0)return 0;const Ue=xe(he,Se);if(Ue!==void 0)return Ue;const Ne=y(Se,he);return he-=Ke(Ne),he}function xe(he,Se){let Ue=y(Se,he);for(he-=Ke(Ue);tt(Ue)||Ue===65039||Ue===8419;){if(he===0)return;Ue=y(Se,he),he-=Ke(Ue)}if(!ce(Ue))return;if(he>=0){const Ne=y(Se,he);Ne===8205&&(he-=Ke(Ne))}return he}function Ke(he){return he>=65536?2:1}function tt(he){return 127995<=he&&he<=127999}},NC18:function(Re,te,v){var Z=v("y+Vt"),K=v("IMiH"),I=v("7oTu"),k=Math.sqrt,_=Math.sin,O=Math.cos,M=Math.PI,x=function(o){return Math.sqrt(o[0]*o[0]+o[1]*o[1])},n=function(o,c){return(o[0]*c[0]+o[1]*c[1])/(x(o)*x(c))},p=function(o,c){return(o[0]*c[1]<o[1]*c[0]?-1:1)*Math.acos(n(o,c))};function a(o,c,E,B,w,P,C,b,l,A,g){var T=l*(M/180),m=O(T)*(o-E)/2+_(T)*(c-B)/2,y=-1*_(T)*(o-E)/2+O(T)*(c-B)/2,U=m*m/(C*C)+y*y/(b*b);U>1&&(C*=k(U),b*=k(U));var N=(w===P?-1:1)*k((C*C*(b*b)-C*C*(y*y)-b*b*(m*m))/(C*C*(y*y)+b*b*(m*m)))||0,S=N*C*y/b,H=N*-b*m/C,F=(o+E)/2+O(T)*S-_(T)*H,R=(c+B)/2+_(T)*S+O(T)*H,z=p([1,0],[(m-S)/C,(y-H)/b]),Q=[(m-S)/C,(y-H)/b],$=[(-1*m-S)/C,(-1*y-H)/b],ee=p(Q,$);n(Q,$)<=-1&&(ee=M),n(Q,$)>=1&&(ee=0),P===0&&ee>0&&(ee=ee-2*M),P===1&&ee<0&&(ee=ee+2*M),g.addData(A,F,R,C,b,z,ee,T,P)}var t=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,h=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function s(o){if(!o)return new K;for(var c=0,E=0,B=c,w=E,P,C=new K,b=K.CMD,l=o.match(t),A=0;A<l.length;A++){for(var g=l[A],T=g.charAt(0),m,y=g.match(h)||[],U=y.length,N=0;N<U;N++)y[N]=parseFloat(y[N]);for(var S=0;S<U;){var H,F,R,z,Q,$,ee,fe=c,Ae=E;switch(T){case"l":c+=y[S++],E+=y[S++],m=b.L,C.addData(m,c,E);break;case"L":c=y[S++],E=y[S++],m=b.L,C.addData(m,c,E);break;case"m":c+=y[S++],E+=y[S++],m=b.M,C.addData(m,c,E),B=c,w=E,T="l";break;case"M":c=y[S++],E=y[S++],m=b.M,C.addData(m,c,E),B=c,w=E,T="L";break;case"h":c+=y[S++],m=b.L,C.addData(m,c,E);break;case"H":c=y[S++],m=b.L,C.addData(m,c,E);break;case"v":E+=y[S++],m=b.L,C.addData(m,c,E);break;case"V":E=y[S++],m=b.L,C.addData(m,c,E);break;case"C":m=b.C,C.addData(m,y[S++],y[S++],y[S++],y[S++],y[S++],y[S++]),c=y[S-2],E=y[S-1];break;case"c":m=b.C,C.addData(m,y[S++]+c,y[S++]+E,y[S++]+c,y[S++]+E,y[S++]+c,y[S++]+E),c+=y[S-2],E+=y[S-1];break;case"S":H=c,F=E;var ce=C.len(),ie=C.data;P===b.C&&(H+=c-ie[ce-4],F+=E-ie[ce-3]),m=b.C,fe=y[S++],Ae=y[S++],c=y[S++],E=y[S++],C.addData(m,H,F,fe,Ae,c,E);break;case"s":H=c,F=E;var ce=C.len(),ie=C.data;P===b.C&&(H+=c-ie[ce-4],F+=E-ie[ce-3]),m=b.C,fe=c+y[S++],Ae=E+y[S++],c+=y[S++],E+=y[S++],C.addData(m,H,F,fe,Ae,c,E);break;case"Q":fe=y[S++],Ae=y[S++],c=y[S++],E=y[S++],m=b.Q,C.addData(m,fe,Ae,c,E);break;case"q":fe=y[S++]+c,Ae=y[S++]+E,c+=y[S++],E+=y[S++],m=b.Q,C.addData(m,fe,Ae,c,E);break;case"T":H=c,F=E;var ce=C.len(),ie=C.data;P===b.Q&&(H+=c-ie[ce-4],F+=E-ie[ce-3]),c=y[S++],E=y[S++],m=b.Q,C.addData(m,H,F,c,E);break;case"t":H=c,F=E;var ce=C.len(),ie=C.data;P===b.Q&&(H+=c-ie[ce-4],F+=E-ie[ce-3]),c+=y[S++],E+=y[S++],m=b.Q,C.addData(m,H,F,c,E);break;case"A":R=y[S++],z=y[S++],Q=y[S++],$=y[S++],ee=y[S++],fe=c,Ae=E,c=y[S++],E=y[S++],m=b.A,a(fe,Ae,c,E,$,ee,R,z,Q,m,C);break;case"a":R=y[S++],z=y[S++],Q=y[S++],$=y[S++],ee=y[S++],fe=c,Ae=E,c+=y[S++],E+=y[S++],m=b.A,a(fe,Ae,c,E,$,ee,R,z,Q,m,C);break}}(T==="z"||T==="Z")&&(m=b.Z,C.addData(m),c=B,E=w),P=m}return C.toStatic(),C}function i(o,c){var E=s(o);return c=c||{},c.buildPath=function(B){if(B.setData){B.setData(E.data);var w=B.getContext();w&&B.rebuildPath(w)}else{var w=B;E.rebuildPath(w)}},c.applyTransform=function(B){I(E,B),this.dirty(!0)},c}function u(o,c){return new Z(i(o,c))}function d(o,c){return Z.extend(i(o,c))}function f(o,c){for(var E=[],B=o.length,w=0;w<B;w++){var P=o[w];P.path||P.createPathProxy(),P.__dirtyPath&&P.buildPath(P.path,P.shape,!0),E.push(P.path)}var C=new Z(c);return C.createPathProxy(),C.buildPath=function(b){b.appendPath(E);var l=b.getContext();l&&b.rebuildPath(l)},C}te.createFromString=u,te.extendFromString=d,te.mergePath=f},NLgs:function(Re,te,v){"use strict";v.d(te,"e",function(){return c}),v.d(te,"f",function(){return E}),v.d(te,"d",function(){return w}),v.d(te,"c",function(){return P}),v.d(te,"a",function(){return C}),v.d(te,"b",function(){return b});var Z=v("miYZ"),K=v("tsqr"),I=v("9og8"),k=v("2qtc"),_=v("kLXV"),O=v("WmNS"),M=v.n(O),x=v("q1tI"),n=v.n(x),p=v("9kvl"),a=v("xKgJ"),t=v("1vsH"),h=v("RCxd"),s=v("yTi+"),i=v.n(s),u=v("1ZF9"),d=v.n(u),f=v("NoGO"),o=v.n(f),c=function(A){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!!(E(A)&&B(g))},E=function(A){return Object(a.p)()?!0:(A({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},B=function(){var A,g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,T=Object(p.c)()._store.getState(),m=T.user;return(A=m.userInfo)!==null&&A!==void 0&&A.profile_completed?!0:(_.a.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:g?"\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(){p.d.push("/account/profile/edit")}}),!1)},w=function(){var A,g=Object(p.c)()._store.getState(),T=g.user;return(A=T.userInfo)!==null&&A!==void 0&&A.professional_certification?!0:(_.a.confirm({title:"\u63D0\u793A",centered:!0,content:n.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(t.S)("/account/certification")}}),!1)},P=function(){return Object(a.a)()?!0:(_.a.warning({centered:!0,width:530,title:"\u63D0\u793A",content:n.a.createElement("div",{className:"tc",style:{marginLeft:-38}},n.a.createElement("p",null,"\u626B\u7801\u52A0\u5934\u6B4C\u52A9\u6559\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"),n.a.createElement("img",{src:o.a,width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1)},C=function(A,g){return A?!0:(_.a.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:n.a.createElement("div",null,n.a.createElement("p",null,g||"\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"),n.a.createElement("div",{style:{marginLeft:"110px"}},n.a.createElement("img",{src:d.a,width:200}),n.a.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(t.S)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1)},b=function(A){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",T=Object(p.c)()._store.getState(),m=T.shixunsDetail.detail;return(m==null?void 0:m.public)===2||(m==null?void 0:m.public)===1||(m==null?void 0:m.shixun_status)===3?(_.a.info({centered:!0,icon:n.a.createElement(h.a,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:n.a.createElement("div",{className:"tc",style:{marginLeft:-38}},n.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},n.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",(m==null?void 0:m.public)===2?"\u5DF2\u516C\u5F00":(m==null?void 0:m.public)===1?"\u5F85\u5BA1\u6838":"\u5DF2\u5173\u95ED","\uFF0C",g,"\u3002"),n.a.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),n.a.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:i.a,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0):(m==null?void 0:m.shixun_status)===2?(_.a.confirm({centered:!0,icon:n.a.createElement(h.a,null),title:"\u63D0\u793A",content:n.a.createElement("div",null,n.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",g,"\u3002"),n.a.createElement("br",null),n.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(){_.a.confirm({width:440,centered:!0,icon:n.a.createElement(h.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 U=Object(I.a)(M.a.mark(function S(){var H;return M.a.wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return R.next=2,A({type:"shixunsDetail/cancelRelease",payload:{id:m==null?void 0:m.identifier}});case 2:H=R.sent,H.status!==401&&(K.b.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),A({type:"shixunsDetail/getShixunsDetail",payload:{id:m==null?void 0:m.identifier}}),A({type:"practiceSetting/getCommonData",payload:{id:m==null?void 0:m.identifier}}));case 4:case"end":return R.stop()}},S)}));function N(){return U.apply(this,arguments)}return N}()})}}),!0):!1}},Nddv:function(Re,te,v){Re.exports=v.p+"static/sz.d6b17ad9.svg"},Nmxd:function(Re,te){Re.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+A5TbIx6uvizoKJNUVxDhlA1COkKLis5Wgq2bZmOVj62LCSlIS2m4Q77SF8BZkJd667nPzM71LSqLrExC94k2bJbqk+Im65xQIzr7wmA9RUFcTDIQtJWQDaB3A5lT+ur34bFRJ8WbdV1VRAowGB5wTagCdFF29BOAxSzAjbkTiWrZWU+oCSJgTScwCV1K8m7rPyfe9acAcgeaVFsIHjXD7ptyYxw/vqq5ZMHcHGOZvaE7OfTvindf97CQ3bRkgorXDodiRUiYDuhYlZAeDe6zKxuTJ1j34awDC8u0XD7hht4RuwkctxvOxlFWyYFJ7jUDnC7UHU1iz7qurxBlmDlrxlb5Pl5z8iC8LIVuHmjoueEtqjvddBwDa6JWHCQlnwyjjAu7wtxjPRK+4Ta7Y6XPskpvDqJLUdoMdTWTJOX9kWs+2bL9pN89U3GTdn3WKKxpvTmRuWglmPpKOtK91IiQ73vvJFL/YCa5UbLaVaDzXXTP2p4tmjvGREYnbruOgrn7MwKvlEg9gvLpG1E2000ntKNh5O82EznQobvkVF9S732LIgus6rg0RHTNCsdYJA7oWB7jLJdlOIxzfUwwbTHY+zSy+ccldAkbtRjimThroCYAzA46bqUl6JmxOh+IH8mbq1K65NXLuIIAnymqAMQbyNRrhtvT0qkQgqe4lRof7RHKdEe6Y9XEe0NVDBLzsnrMwcmbp/rOs8lXPQtzODHhY+/9LEq0aCcV0M22wX21jge5yiwdwGVW+RuPZnGUVM9FkP+NlYesaIFcJ8s+TLM9UQDwY1JYOx6Y3QPLXRpNqPzEiHpJfBOAD8KgHjoJQs3VIh+Kzlj3zDCzp63zEJ8QgCHeXW4AnPsZvGSkbLjR3/DCT5/+3vD7lTkl0bQHRPk9PrVxg5q1GpL3gZkvpLaZU93qW8r/dYhJiw3DTNudbTFMPb1lf5xIpxHEQ7i/XA7XFw/hZSLlmqLn094flLqWZzNzcZikO/JvbrCTkJjub3rYMZJ8YgwJJbSuBK7zRTb3pUGwfCGznTdk3MMm2tG/vIvL7tpJE1G3vlCeMMcYCvTye2TfSvP2qHeFTMY4NTI9Sek8AJFewlCGi7IEPc/JycmWYOUVCJMHitNmYOQF7NjAzmTK8v5Z/N4/biEYI1BN46riNeeTGvEazx21Ao5DmcRs5QHfV6UbQ+3GbvwHH7EQQahyMxwAAAABJRU5ErkJggg=="},NoGO:function(Re,te,v){Re.exports=v.p+"static/newqrcode.d852fdfc.png"},NohK:function(Re,te,v){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.default=void 0;var Z=function(I){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,_=null;return function(){for(var O=this,M=arguments.length,x=new Array(M),n=0;n<M;n++)x[n]=arguments[n];clearTimeout(_),_=setTimeout(function(){I.apply(O,x)},k)}};te.default=Z},NvD2:function(Re,te,v){"use strict";v.d(te,"a",function(){return O});var Z=v("Kwbf");function K(M,x){var n=new Set;return M.forEach(function(p){x.has(p)||n.add(p)}),n}function I(M){var x=M||{},n=x.disabled,p=x.disableCheckbox,a=x.checkable;return!!(n||p)||a===!1}function k(M,x,n,p){for(var a=new Set(M),t=new Set,h=0;h<=n;h+=1){var s=x.get(h)||new Set;s.forEach(function(f){var o=f.key,c=f.node,E=f.children,B=E===void 0?[]:E;a.has(o)&&!p(c)&&B.filter(function(w){return!p(w.node)}).forEach(function(w){a.add(w.key)})})}for(var i=new Set,u=n;u>=0;u-=1){var d=x.get(u)||new Set;d.forEach(function(f){var o=f.parent,c=f.node;if(p(c)||!f.parent||i.has(f.parent.key))return;if(p(f.parent.node)){i.add(o.key);return}var E=!0,B=!1;(o.children||[]).filter(function(w){return!p(w.node)}).forEach(function(w){var P=w.key,C=a.has(P);E&&!C&&(E=!1),!B&&(C||t.has(P))&&(B=!0)}),E&&a.add(o.key),B&&t.add(o.key),i.add(o.key)})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(K(t,a))}}function _(M,x,n,p,a){for(var t=new Set(M),h=new Set(x),s=0;s<=p;s+=1){var i=n.get(s)||new Set;i.forEach(function(o){var c=o.key,E=o.node,B=o.children,w=B===void 0?[]:B;!t.has(c)&&!h.has(c)&&!a(E)&&w.filter(function(P){return!a(P.node)}).forEach(function(P){t.delete(P.key)})})}h=new Set;for(var u=new Set,d=p;d>=0;d-=1){var f=n.get(d)||new Set;f.forEach(function(o){var c=o.parent,E=o.node;if(a(E)||!o.parent||u.has(o.parent.key))return;if(a(o.parent.node)){u.add(c.key);return}var B=!0,w=!1;(c.children||[]).filter(function(P){return!a(P.node)}).forEach(function(P){var C=P.key,b=t.has(C);B&&!b&&(B=!1),!w&&(b||h.has(C))&&(w=!0)}),B||t.delete(c.key),w&&h.add(c.key),u.add(c.key)})}return{checkedKeys:Array.from(t),halfCheckedKeys:Array.from(K(h,t))}}function O(M,x,n,p){var a=[],t;p?t=p:t=I;var h=new Set(M.filter(function(d){var f=!!n[d];return f||a.push(d),f})),s=new Map,i=0;Object.keys(n).forEach(function(d){var f=n[d],o=f.level,c=s.get(o);c||(c=new Set,s.set(o,c)),c.add(f),i=Math.max(i,o)}),Object(Z.a)(!a.length,"Tree missing follow keys: ".concat(a.slice(0,100).map(function(d){return"'".concat(d,"'")}).join(", ")));var u;return x===!0?u=k(h,s,i,t):u=_(h,x.halfCheckedKeys,s,i,t),u}},OC45:function(Re,te,v){Re.exports={applyPublicContainer:"applyPublicContainer___3sK8L",applyPublicContent:"applyPublicContent___3Hye1",spin:"spin___3-Uh7",tips:"tips___3d-sF",action:"action___3Uny2"}},OLES:function(Re,te,v){"use strict";var Z=v("U8pU"),K=v("VTBJ"),I=v("Ff2n"),k=v("q1tI"),_=v("uciX"),O=v("7ixt"),M=function(h){var s=h.overlay,i=h.prefixCls,u=h.id,d=h.overlayInnerStyle;return k.createElement("div",{className:"".concat(i,"-inner"),id:u,role:"tooltip",style:d},typeof s=="function"?s():s)},x=M,n=function(h,s){var i=h.overlayClassName,u=h.trigger,d=u===void 0?["hover"]:u,f=h.mouseEnterDelay,o=f===void 0?0:f,c=h.mouseLeaveDelay,E=c===void 0?.1:c,B=h.overlayStyle,w=h.prefixCls,P=w===void 0?"rc-tooltip":w,C=h.children,b=h.onVisibleChange,l=h.afterVisibleChange,A=h.transitionName,g=h.animation,T=h.placement,m=T===void 0?"right":T,y=h.align,U=y===void 0?{}:y,N=h.destroyTooltipOnHide,S=N===void 0?!1:N,H=h.defaultVisible,F=h.getTooltipContainer,R=h.overlayInnerStyle,z=Object(I.a)(h,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),Q=Object(k.useRef)(null);Object(k.useImperativeHandle)(s,function(){return Q.current});var $=Object(K.a)({},z);"visible"in h&&($.popupVisible=h.visible);var ee=function(){var be=h.arrowContent,se=be===void 0?null:be,me=h.overlay,le=h.id;return[k.createElement("div",{className:"".concat(P,"-arrow"),key:"arrow"},se),k.createElement(x,{key:"content",prefixCls:P,id:le,overlay:me,overlayInnerStyle:R})]},fe=!1,Ae=!1;if(typeof S=="boolean")fe=S;else if(S&&Object(Z.a)(S)==="object"){var ce=S.keepParent;fe=ce===!0,Ae=ce===!1}return k.createElement(_.a,Object.assign({popupClassName:i,prefixCls:P,popup:ee,action:d,builtinPlacements:O.a,popupPlacement:m,ref:Q,popupAlign:U,getPopupContainer:F,onPopupVisibleChange:b,afterPopupVisibleChange:l,popupTransitionName:A,popupAnimation:g,defaultPopupVisible:H,destroyPopupOnHide:fe,autoDestroy:Ae,mouseLeaveDelay:E,popupStyle:B,mouseEnterDelay:o},$),C)},p=Object(k.forwardRef)(n),a=te.a=p},OS9S:function(Re,te,v){var Z=v("bYtY"),K=Z.inherits,I=v("Gev7"),k=v("mFDi");function _(x){I.call(this,x),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}_.prototype.incremental=!0,_.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},_.prototype.addDisplayable=function(x,n){n?this._temporaryDisplayables.push(x):this._displayables.push(x),this.dirty()},_.prototype.addDisplayables=function(x,n){n=n||!1;for(var p=0;p<x.length;p++)this.addDisplayable(x[p],n)},_.prototype.eachPendingDisplayable=function(x){for(var n=this._cursor;n<this._displayables.length;n++)x&&x(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)x&&x(this._temporaryDisplayables[n])},_.prototype.update=function(){this.updateTransform();for(var x=this._cursor;x<this._displayables.length;x++){var n=this._displayables[x];n.parent=this,n.update(),n.parent=null}for(var x=0;x<this._temporaryDisplayables.length;x++){var n=this._temporaryDisplayables[x];n.parent=this,n.update(),n.parent=null}},_.prototype.brush=function(x,n){for(var p=this._cursor;p<this._displayables.length;p++){var a=this._displayables[p];a.beforeBrush&&a.beforeBrush(x),a.brush(x,p===this._cursor?null:this._displayables[p-1]),a.afterBrush&&a.afterBrush(x)}this._cursor=p;for(var p=0;p<this._temporaryDisplayables.length;p++){var a=this._temporaryDisplayables[p];a.beforeBrush&&a.beforeBrush(x),a.brush(x,p===0?null:this._temporaryDisplayables[p-1]),a.afterBrush&&a.afterBrush(x)}this._temporaryDisplayables=[],this.notClear=!0};var O=[];_.prototype.getBoundingRect=function(){if(!this._rect){for(var x=new k(Infinity,Infinity,-Infinity,-Infinity),n=0;n<this._displayables.length;n++){var p=this._displayables[n],a=p.getBoundingRect().clone();p.needLocalTransform()&&a.applyTransform(p.getLocalTransform(O)),x.union(a)}this._rect=x}return this._rect},_.prototype.contain=function(x,n){var p=this.transformCoordToLocal(x,n),a=this.getBoundingRect();if(a.contain(p[0],p[1]))for(var t=0;t<this._displayables.length;t++){var h=this._displayables[t];if(h.contain(x,n))return!0}return!1},K(_,I);var M=_;Re.exports=M},OZM5:function(Re,te,v){"use strict";v.d(te,"b",function(){return p}),v.d(te,"a",function(){return a}),v.d(te,"k",function(){return t}),v.d(te,"h",function(){return h}),v.d(te,"i",function(){return s}),v.d(te,"g",function(){return i}),v.d(te,"c",function(){return u}),v.d(te,"d",function(){return d}),v.d(te,"j",function(){return c}),v.d(te,"e",function(){return E}),v.d(te,"f",function(){return B});var Z=v("KQm4"),K=v("U8pU"),I=v("Ff2n"),k=v("q1tI"),_=v.n(k),O=v("Kwbf"),M=v("WaYH"),x=.25,n=2;function p(w,P){var C=w.slice(),b=C.indexOf(P);return b>=0&&C.splice(b,1),C}function a(w,P){var C=w.slice();return C.indexOf(P)===-1&&C.push(P),C}function t(w){return w.split("-")}function h(w,P){return"".concat(w,"-").concat(P)}function s(w){return w&&w.type&&w.type.isTreeNode}function i(w,P){var C=[w],b=P[w];function l(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];A.forEach(function(g){var T=g.key,m=g.children;C.push(T),l(m)})}return l(b.children),C}function u(w,P){var C=w.clientY,b=P.selectHandle.getBoundingClientRect(),l=b.top,A=b.bottom,g=b.height,T=Math.max(g*x,n);return C<=l+T?-1:C>=A-T?1:0}function d(w,P){if(!w)return;var C=P.multiple;return C?w.slice():w.length?[w[0]]:w}var f=function(P){return P};function o(w,P){if(!w)return[];var C=P||{},b=C.processProps,l=b===void 0?f:b,A=Array.isArray(w)?w:[w];return A.map(function(g){var T=g.children,m=Object(I.a)(g,["children"]),y=o(T,P);return _.a.createElement(M.a,Object.assign({},l(m)),y)})}function c(w){if(!w)return null;var P;if(Array.isArray(w))P={checkedKeys:w,halfCheckedKeys:void 0};else if(Object(K.a)(w)==="object")P={checkedKeys:w.checked||void 0,halfCheckedKeys:w.halfChecked||void 0};else return Object(O.a)(!1,"`checkedKeys` is not an array or an object"),null;return P}function E(w,P){var C=new Set;function b(l){if(C.has(l))return;var A=P[l];if(!A)return;C.add(l);var g=A.parent,T=A.node;if(T.disabled)return;g&&b(g.key)}return(w||[]).forEach(function(l){b(l)}),Object(Z.a)(C)}function B(w){var P={};return Object.keys(w).forEach(function(C){(C.startsWith("data-")||C.startsWith("aria-"))&&(P[C]=w[C])}),P}},Ohmc:function(Re,te,v){Re.exports=v.p+"static/certificate.fc32dc1b.jpg"},OljG:function(Re,te,v){Re.exports=v.p+"static/banner.4c45dd73.png"},Ot1p:function(Re,te,v){"use strict";var Z=v("2qtc"),K=v("kLXV"),I=v("rAM+"),k=v("miYZ"),_=v("tsqr"),O=v("9og8"),M=v("tJVT"),x=v("jrin"),n=v("WmNS"),p=v.n(n),a=v("q1tI"),t=v.n(a),h=v("VrN/"),s=v.n(h),i=v("bdgK"),u=v("p77/"),d=v("Bd2K"),f=v("ELLl"),o=v("19Vz"),c=v("lZu9"),E=v("+NIl"),B=v("kSUc"),w=v("9Bee"),P=function(Xe){var gt=Xe.value,Lt=gt===void 0?"":gt,en=Xe.className,Zt=Xe.showTextOnly,xt=Xe.showLines,Ct=Xe.style,pt=Ct===void 0?{}:Ct,Je=Object(a.useMemo)(function(){return""},[Lt]);return t.a.createElement(t.a.Fragment,null,t.a.createElement("div",{dangerouslySetInnerHTML:{__html:Je}}))},C=v("0Owb"),b=v("dejd"),l=v("C+DQ"),A=v("1vsH"),g=v("m3rI"),T=[{title:"\u7C97\u4F53",icon:"icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"icon-sum",actionName:"inline-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"icon-picture",actionName:"upload-image"},{title:"\u8868\u683C",icon:"icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"icon-eraser",actionName:"eraser"}];function m(Xe){var gt=Xe.onActionCallback,Lt=Xe.title,en=Xe.icon,Zt=Xe.actionName,xt=Xe.className,Ct=xt===void 0?"":xt,pt=Xe.children;function Je(){gt(Zt)}return t.a.createElement("a",{title:Lt,className:Ct,onClick:Je},t.a.createElement("i",{className:"md-iconfont ".concat(en)}),pt)}var y=function(Xe){var gt=Xe.watch,Lt=Xe.showNullButton,en=Xe.onActionCallback,Zt=Xe.fullScreen,xt=Xe.insertTemp,Ct=Xe.hidetoolBar,pt=Xe.uuid,Je=Xe.setOpenPhones;console.log("link:","".concat(location.origin,"/upload.html?_educoder_session_login=").concat(Object(A.F)("_educoder_session_login"),"&_educoder_session=").concat(Object(A.F)("_educoder_session"),"&key=").concat(pt,"&api=").concat(encodeURIComponent(g.a.PROXY_SERVER)));var Qe=[].concat(T,[{title:"".concat(gt?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(gt?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return t.a.createElement("ul",{className:"markdown-toolbar-container"},!Ct&&Qe.map(function(Oe,je){return t.a.createElement("li",{key:je},Oe.actionName?t.a.createElement(m,Object(C.a)({},Oe,{onActionCallback:en})):t.a.createElement("span",{className:"v-line"}))}),Lt?t.a.createElement("li",null,t.a.createElement(m,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:en},t.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,xt&&t.a.createElement("li",null,t.a.createElement(m,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(xt),onActionCallback:en},t.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),t.a.createElement("li",{className:"btn-full-screen"},t.a.createElement(m,{icon:"".concat(Zt?"icon-shrink":"icon-enlarge"),title:Zt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:en})))},U=v("M8RZ"),N=v("+L6B"),S=v("2/Rp"),H=v("y8nQ"),F=v("Vl3Y"),R=v("5NDa"),z=v("5rEg"),Q={labelCol:{span:4},wrapperCol:{span:20}},$=function(Xe){var gt=Xe.callback,Lt=Xe.onCancel;function en(Zt){gt(Zt)}return t.a.createElement(F.a,Object(C.a)({},Q,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:en}),t.a.createElement(F.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},t.a.createElement(z.a,null)),t.a.createElement(F.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},t.a.createElement(z.a,null)),t.a.createElement("div",{className:"flex-container flex-end"},t.a.createElement(S.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),t.a.createElement(S.a,{type:"ghost",onClick:Lt},"\u53D6\u6D88")))},ee=v("7ahc"),fe=v("HmJG"),Ae=v("BjJ7"),ce=F.a.useForm,ie={width:280,marginRight:10},be={labelCol:{span:5},wrapperCol:{span:19}},se=function(Xe){var gt=Xe.callback,Lt=Xe.onCancel,en=ce(),Zt=Object(M.a)(en,1),xt=Zt[0];function Ct(Qe){gt(Qe)}function pt(Qe,Oe){if(Qe.status===-1){_.b.error(Qe.message);return}xt.setFieldsValue({src:"/api/attachments/".concat(Qe.id),type:Oe.type})}function Je(Qe){var Oe=Qe.target.files[0];le(Oe,pt)}return t.a.createElement(F.a,Object(C.a)({form:xt},be,{className:"upload-image-panel",onFinish:Ct}),t.a.createElement(F.a.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},t.a.createElement("div",{className:"flex-container"},t.a.createElement(F.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},t.a.createElement(z.a,{style:ie})),t.a.createElement(me,{onFileChange:Je}))),t.a.createElement(F.a.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},t.a.createElement(z.a,{style:{width:264}})),t.a.createElement(F.a.Item,{style:{textAlign:"right"}},t.a.createElement(S.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),t.a.createElement(S.a,{type:"ghost",onClick:Lt},"\u53D6\u6D88")))};function me(Xe){var gt=Xe.onFileChange;return t.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",t.a.createElement("input",{type:"file",onChange:gt}))}function le(Xe,gt){if(!Xe)throw new String("\u6CA1\u6709\u6587\u4EF6");var Lt=new FormData;Lt.append("editormd-image-file",Xe),Lt.append("file_param_name","editormd-image-file"),Lt.append("byxhr","true");var en=new window.XMLHttpRequest;en.withCredentials=!0,en.addEventListener("load",function(Zt){gt(JSON.parse(Zt.target.responseText),Xe)},!1),en.addEventListener("error",function(Zt){console.error(Zt)},!1),en.open("POST","".concat(Ae.a,"/api/attachments.json")),en.send(Lt)}var ge=v("giR+"),ae=v("fyUT"),pe=v("7Kak"),Me=v("9yH6"),xe=Me.a.Group,Ke={margin:"0 8px"},tt=function(Xe){var gt=Xe.callback,Lt=Xe.onCancel;function en(Zt){gt(Zt)}return t.a.createElement(F.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:en},t.a.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},t.a.createElement("span",{style:Ke},"\u5355\u5143\u683C\u6570\uFF1A"),t.a.createElement("span",{style:Ke},"\u884C\u6570"),t.a.createElement(F.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},t.a.createElement(ae.a,null)),t.a.createElement("span",{style:Ke},"\u5217\u6570"),t.a.createElement(F.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},t.a.createElement(ae.a,null))),t.a.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},t.a.createElement("span",{style:Ke},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),t.a.createElement(F.a.Item,{name:"align"},t.a.createElement(xe,null,t.a.createElement(Me.a,{value:"default"},t.a.createElement("i",{className:"fa fa-align-justify"})),t.a.createElement(Me.a,{value:"left"},t.a.createElement("i",{className:"fa fa-align-left"})),t.a.createElement(Me.a,{value:"center"},t.a.createElement("i",{className:"fa fa-align-center"})),t.a.createElement(Me.a,{value:"right"},t.a.createElement("i",{className:"fa fa-align-right"}))))),t.a.createElement("div",{className:"flex-container flex-end"},t.a.createElement(S.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),t.a.createElement(S.a,{type:"ghost",onClick:Lt},"\u53D6\u6D88")))},he=v("ErOA"),Se=v("7Cbv"),Ue="link",Ne="upload-image",ct="code-block",mt="add-table",Rt="------------",ht={default:Rt,left:":".concat(Rt),center:":".concat(Rt,":"),right:"".concat(Rt,":")},Ut=v("9VGf"),zt,ze;function Ve(){}var Et=0,Ot=1e4,ut="\u2581",vt=`
|
|
**\u6A21\u677F\u6807\u9898**
|
|
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`;function Ze(Xe){return/^\d+$/.test(Xe)?"".concat(Xe,"px"):Xe}var ke=navigator.platform.toUpperCase().indexOf("MAC")>=0,He=ke?"Cmd":"Ctrl",we=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"],Le=(zt={},Object(x.a)(zt,He+"-B","bold"),Object(x.a)(zt,He+"-I","italic"),zt),Pe=(ze={},Object(x.a)(ze,Ue,"\u6DFB\u52A0\u94FE\u63A5"),Object(x.a)(ze,ct,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(x.a)(ze,Ne,"\u6DFB\u52A0\u6587\u4EF6"),Object(x.a)(ze,mt,"\u6DFB\u52A0\u8868\u683C"),ze),We=te.a=function(Xe){var gt=Xe.defaultValue,Lt=gt===void 0?"":gt,en=Xe.onChange,Zt=Xe.width,xt=Zt===void 0?"100%":Zt,Ct=Xe.height,pt=Ct===void 0?400:Ct,Je=Xe.miniToolbar,Qe=Je===void 0?!1:Je,Oe=Xe.isFocus,je=Oe===void 0?!1:Oe,St=Xe.watch,bt=Xe.insertTemp,Dt=Xe.mode,Ht=Dt===void 0?"markdown":Dt,_t=Xe.id,Gt=_t===void 0?"markdown-editor-id":_t,kt=Xe.showResizeBar,fn=kt===void 0?!1:kt,mn=Xe.noStorage,Tr=mn===void 0?!1:mn,Mr=Xe.showNullButton,kr=Mr===void 0?!1:Mr,Un=Xe.hidetoolBar,Ra=Un===void 0?!1:Un,Xr=Xe.fullScreen,aa=Xr===void 0?!1:Xr,Kr=Xe.onBlur,_a=Xe.onCMBeforeChange,di=Xe.onFullScreen,Ei=Xe.className,_e=Ei===void 0?"":Ei,Ie=Xe.disablePaste,Ye=Ie===void 0?!1:Ie,yt=Xe.placeholder,Xt=yt===void 0?"":yt,sn=Xe.values,re=sn===void 0?"":sn,W=Object(a.useState)(null),V=Object(M.a)(W,2),ne=V[0],ve=V[1],oe=Object(a.useState)(Lt),et=Object(M.a)(oe,2),Qt=et[0],dn=et[1],Cn=Object(a.useState)(St),Jt=Object(M.a)(Cn,2),Vn=Jt[0],Xn=Jt[1],lr=Object(a.useState)(aa),Rr=Object(M.a)(lr,2),qr=Rr[0],zr=Rr[1],Ca=Object(a.useState)(""),Dr=Object(M.a)(Ca,2),ya=Dr[0],ka=Dr[1],fi=Object(a.useState)(0),Ka=Object(M.a)(fi,2),qa=Ka[0],Si=Ka[1],pi=Object(a.useState)(pt),ui=Object(M.a)(pi,2),mi=ui[0],_i=ui[1],ai=Object(a.useState)(!1),Hi=Object(M.a)(ai,2),Yi=Hi[0],$r=Hi[1],ua=Object(a.useRef)(Object(Se.a)()),Pr=Object(a.useRef)(!1),ca=Object(a.useRef)(),Jr=Object(a.useRef)(),ri=Object(a.useRef)(),pa=Object(a.useRef)(),mo=Object(a.useRef)(),Di=function(){var mr=Object(O.a)(p.a.mark(function Vr(){var ur,oa;return p.a.wrap(function(ei){for(;;)switch(ei.prev=ei.next){case 0:return ei.next=2,Object(he.a)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:ua.current}});case 2:oa=ei.sent,oa!=null&&(ur=oa.attachments)!==null&&ur!==void 0&&ur.length&&(console.log("cm:",ne,Jr),oa.attachments.map(function(Ba){Ba.content_type.indexOf("image")>-1?ne.replaceSelection(".concat(Ba.content_type,")")):Ba.content_type.indexOf("video")>-1?ne.replaceSelection('<video width="100%" controls src="'.concat(g.a.API_SERVER,"/api/attachments/").concat(data.id,'"></video>')):Ba.content_type.indexOf("pdf")>-1?ne.replaceSelection('<a href="'.concat(g.a.API_SERVER,"/api/attachments/").concat(Ba.id,"?type=").concat(Ba.content_type,'&disposition=inline" target="_blank">').concat(Ba.name,"</a>")):ne.replaceSelection("[".concat(Ba.name,"](").concat(g.a.API_SERVER,"/api/attachments/").concat(Ba.id,"?type=").concat(Ba.content_type,")"))}));case 4:case"end":return ei.stop()}},Vr)}));return function(){return mr.apply(this,arguments)}}();Object(a.useEffect)(function(){dn(re),ne==null||ne.setValue(re)},[re]),Object(a.useEffect)(function(){di==null||di(qr)},[qr]),Object(a.useEffect)(function(){if(Jr.current){var mr=s.a.fromTextArea(Jr.current,{mode:Ht,lineNumbers:!Qe,lineWrapping:!0,value:Lt,autoCloseTags:!0,autoCloseBrackets:!0});je&&mr.focus();function Vr(ur,oa){if(Ye){oa.preventDefault();return}var wa=oa.clipboardData;if(wa){var ei=wa.types.toString(),Ba=wa.items;if(ei==="Files"||wa.types.indexOf("Files")>-1){if(oa.preventDefault(),Ht=="stex")return;try{var Ni,Ma=Ba[1];((Ni=Ba[0])===null||Ni===void 0?void 0:Ni.kind)==="file"&&(Ma=Ba[0]);var xa=Ma.getAsFile(),Po=xa.name.split(".").pop();le(xa,function(Za){if(Za.id){var ro,so,To;(xa==null||((ro=xa.type)===null||ro===void 0)?void 0:ro.indexOf("image"))>-1?mr.replaceSelection(".concat(Za.content_type,")")):(xa==null||((so=xa.type)===null||so===void 0)?void 0:so.indexOf("video"))>-1?mr.replaceSelection('<video width="100%" controls src="'.concat(g.a.API_SERVER,"/api/attachments/").concat(Za.id,'"></video>')):(xa==null||((To=xa.type)===null||To===void 0)?void 0:To.indexOf("pdf"))>-1?mr.replaceSelection('<a href="'.concat(g.a.API_SERVER,"/api/attachments/").concat(Za.id,"?type=").concat(xa.type,'&disposition=inline" target="_blank">').concat(xa.name,"</a>")):we.includes(Po)?mr.replaceSelection('<a href="'.concat(g.a.API_SERVER,"/api/attachments/").concat(Za.id,'?type=office&disposition=inline" target="_blank">').concat(xa.name,"</a>")):mr.replaceSelection("[".concat(xa.name,"](").concat(g.a.API_SERVER,"/api/attachments/").concat(Za.id,"?type=").concat(Za.content_type,")"))}else(Za==null?void 0:Za.status)===401&&(document.location.href="/user/login")})}catch(Za){_.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return mr.on("paste",Vr),mr.on("dragleave",function(ur,oa){ri.current.classList.remove("mouse-hover-md")}),mr.on("dragover",function(ur,oa){ri.current.classList.add("mouse-hover-md")}),mr.on("drop",function(ur,oa){ri.current.classList.add("mouse-hover-md");var wa;if(wa=oa.dataTransfer.files,wa.length>0){oa.preventDefault(),oa.stopPropagation();for(var ei=function(Ma){var xa=wa[Ma],Po=xa.name.split(".").pop();le(xa,function(Za){if(Za.id){var ro,so,To;(xa==null||((ro=xa.type)===null||ro===void 0)?void 0:ro.indexOf("image"))>-1?mr.replaceSelection(".concat(Za.content_type,")")):(xa==null||((so=xa.type)===null||so===void 0)?void 0:so.indexOf("video"))>-1?mr.replaceSelection('<video width="100%" controls src="'.concat(g.a.API_SERVER,"/api/attachments/").concat(Za.id,'"></video>')):(xa==null||((To=xa.type)===null||To===void 0)?void 0:To.indexOf("pdf"))>-1?mr.replaceSelection('<a href="'.concat(g.a.API_SERVER,"/api/attachments/").concat(Za.id,"?type=").concat(xa.type,'&disposition=inline" target="_blank">').concat(xa.name,"</a>")):we.includes(Po)?mr.replaceSelection('<a href="'.concat(g.a.API_SERVER,"/api/attachments/").concat(Za.id,'?type=office&disposition=inline" target="_blank">').concat(xa.name,"</a>")):mr.replaceSelection("[".concat(xa.name,"](").concat(g.a.API_SERVER,"/api/attachments/").concat(Za.id,"?type=").concat(Za.content_type,")"))}else(Za==null?void 0:Za.status)===401&&(document.location.href="/user/login")})},Ba=0;Ba<wa.length;Ba++)ei(Ba)}}),ve(mr),function(){mr.off("paste",Vr)}}},[]);var ci=Object(a.useCallback)(function(){if(ri.current)try{}catch(mr){console.log(mr,"---- to set md editor body height")}},[mi,ri,qr]);Object(a.useEffect)(function(){function mr(){var ur=new i.default(function(oa){var wa=Object(I.a)(oa),ei;try{for(wa.s();!(ei=wa.n()).done;){var Ba=ei.value;(Ba.target.offsetHeight>0||Ba.target.offsetWidth>0)&&(ci(),ne.setSize("100%","100%"),ne.refresh())}}catch(Ni){wa.e(Ni)}finally{wa.f()}});return ur.observe(Jr.current.parentElement),ur}if(ne){var Vr=mr();return function(){Vr.unobserve(Jr.current.parentElement)}}},[ne,ci]),Object(a.useEffect)(function(){if(ne){for(var mr=[],Vr=function(){var Ba=oa[ur];wa=Object(M.a)(Ba,2);var Ni=wa[0],Ma=wa[1],xa=Object(x.a)({},Ni,function(){Wo(Ma)});mr.push(xa),ne.addKeyMap(xa)},ur=0,oa=Object.entries(Le);ur<oa.length;ur++){var wa;Vr()}return ca.current=setInterval(function(){Pr.current&&Di()},4e3),function(){clearInterval(ca.current);var ei=Object(I.a)(mr),Ba;try{for(ei.s();!(Ba=ei.n()).done;){var Ni=Ba.value;ne.removeKeyMap(Ni)}}catch(Ma){ei.e(Ma)}finally{ei.f()}}}},[ne]),Object(a.useEffect)(function(){aa!==qr&&zr(aa)},[aa]),Object(Ut.a)(function(){if(!Tr&&qa>0){var mr=new Date().getTime(),Vr=window.sessionStorage.getItem(Gt);mr>=qa+Ot&&(!Vr||Vr!==Qt)&&(window.sessionStorage.setItem(Gt,Qt),$r(!0))}},Ot),Object(a.useEffect)(function(){Xn(St)},[ne,St]),Object(a.useEffect)(function(){ne&&(je&&ne.focus())},[ne,je]),Object(a.useEffect)(function(){if(Vn&&ne){var mr=ne.getScrollerElement();function Vr(ur){var oa=ur.target;if(mo.current){var wa=oa.scrollTop/oa.scrollHeight;mo.current.scrollTop=mo.current.scrollHeight*wa}}return mr.addEventListener("scroll",Vr),function(){mr.removeEventListener("scroll",Vr)}}},[ne,Vn]),Object(a.useEffect)(function(){if(ne&&_a){function mr(Vr,ur){_a(Vr,ur)}return ne.on("beforeChange",mr),function(){ne.off("beforeChange",mr)}}},[ne,_a]),Object(a.useEffect)(function(){if(ne&&Kr){function mr(){Kr(ne.getValue())}return ne.on("blur",mr),function(){ne.off("blur",mr)}}},[ne,Kr]),Object(a.useEffect)(function(){if(ne){function mr(Vr){var ur=Vr.getValue();dn(ur),Si(new Date().getTime()),Vr.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),en&&en(ur)}return ne.on("change",mr),function(){ne.off("change",mr)}}},[ne,en]),Object(a.useEffect)(function(){ne&&(Lt==null?(ne.setValue(""),dn("")):Lt!==ne.getValue()&&(ne.setValue(Lt),dn(Lt),ne.setCursor(ne.lineCount(),0)))},[ne,Lt]);var Wo=Object(a.useCallback)(function(mr){var Vr=ne.getCursor(),ur=ne.getSelection(),oa=ur.split(`
|
|
`);switch(mr){case"bold":return ne.replaceSelection("**"+ur+"**"),ur===""&&ne.setCursor(Vr.line,Vr.ch+2),ne.focus();case"italic":return ne.replaceSelection("*"+ur+"*"),ur===""&&ne.setCursor(Vr.line,Vr.ch+1),ne.focus();case"code":return ne.replaceSelection("`"+ur+"`"),ur===""&&ne.setCursor(Vr.line,Vr.ch+1),ne.focus();case"inline-latex":return ne.replaceSelection("`$$"+ur+"$$`"),ur===""&&ne.setCursor(Vr.line,Vr.ch+3),ne.focus();case"latex":return ne.replaceSelection("```latex\n"+ur+"\n```"),ne.setCursor(Vr.line+1,ur.length+1),ne.focus();case"line-break":return ne.replaceSelection(`<br/>
|
|
`),ne.focus();case"list-ul":return ur===""?ne.replaceSelection("- "+ur):ne.replaceSelection(oa.map(function(wa){return wa===""?"":"- ".concat(wa)}).join(`
|
|
`)),ne.focus();case"list-ol":return ur===""?ne.replaceSelection("1. "+ur):ne.replaceSelection(oa.map(function(wa,ei){return wa===""?"":"".concat(ei+1,". ").concat(wa)}).join(`
|
|
`)),ne.focus();case"add-null-ch":return ur===""&&ne.setCursor(Vr.line,Vr.ch+1),ne.replaceSelection(ut),ne.focus();case"inster-template-1":return ur===""&&ne.setCursor(Vr.line,Vr.ch),ne.replaceSelection(vt),ne.focus();case"eraser":return ne.setValue(""),ne.focus();case"trigger-watch":return Xn(!Vn),ne.focus();case"trigger-full-screen":return zr(!qr),ne.focus();case Ue:ka(Ue);return;case ct:ka(ct);return;case Ne:ka(Ne);return;case mt:ka(mt);return;default:throw new Error}},[ne,Vn,qr]),Mo=Object(a.useCallback)(function(mr){ka("");switch(ya){case Ue:var Vr=mr.title,ur=mr.link;return ne.replaceSelection("[".concat(Vr,"](").concat(ur,")")),ne.focus();case ct:var oa=mr.language,wa=mr.content;return ne.replaceSelection(["```"+oa,wa,"```"].join(`
|
|
`)),ne.focus();case Ne:var ei=mr.src,Ba=mr.alt;return Ba?ne.replaceSelection(".concat(ei,' "').concat(Ba,'" )')):ne.replaceSelection("")),ne.focus();case mt:for(var Ni=mr.row,Ma=mr.col,xa=mr.align,Po=`
|
|
`,Za=0;Za<Ni;Za++){for(var ro=[],so=[],To=0;To<Ma;To++)Za===1&&so.push(ht[xa]),ro.push(" ");Za===1&&(Po+="| ".concat(so.join(" | "),` |
|
|
`)),Po+="| ".concat(ro.join(Ma===1?"":" | "),` |
|
|
`)}return ne.replaceSelection(Po+`
|
|
`),ne.focus();default:throw new Error}},[ne,ya]),ii=Object(a.useMemo)(function(){switch(ya){case Ue:return t.a.createElement($,{callback:Mo,onCancel:go});case ct:return t.a.createElement(ee.b,{callback:Mo,onCancel:go});case Ne:return t.a.createElement(se,{callback:Mo,onCancel:go});case mt:return t.a.createElement(tt,{callback:Mo,onCancel:go});default:return null}},[ya]);function go(){ka("")}Object(a.useEffect)(function(){if(pa.current){var mr=pa.current,Vr=!1,ur=0;function oa(Ba){Vr=!0,ur=Ba.pageY}function wa(){Vr=!1}function ei(Ba){if(Vr){var Ni=Ba.pageY-ur;Ni<0&&(Ni=0),Ni>300&&(Ni=300);var Ma=pt+Ni+"px";_i(Ma)}}return mr.addEventListener("mousedown",oa),document.addEventListener("mousemove",ei),document.addEventListener("mouseup",wa),function(){mr.removeEventListener("mousedown",oa),document.removeEventListener("mousemove",ei),document.removeEventListener("mouseup",wa)}}},[ne,pa]),Object(a.useEffect)(function(){_i(pt)},[pt]);var no=Ze(xt),hs=Ze(mi),xo={width:no,height:hs},Cs=Object(a.useMemo)(function(){if(qa){var mr=new Date(qa),Vr=mr.getHours(),ur=mr.getMinutes(),oa=mr.getSeconds();return Vr=Vr<10?"0"+Vr:Vr,ur=ur<10?"0"+ur:ur,oa=oa<10?"0"+oa:oa,"".concat(Vr,":").concat(ur,":").concat(oa)}return 0},[qa]);function ws(){window.sessionStorage.removeItem(Gt),$r(!1),Si(0)}function ho(){$r(!1),Si(0),ne.setValue(window.sessionStorage.getItem(Gt))}function As(mr,Vr){var ur=ne.getValue();ur=ur.replace(mr,Vr),dn(ur),ne==null||ne.setValue(ur)}return t.a.createElement(a.Fragment,null,t.a.createElement("div",{className:"markdown-editor-wrapper",ref:ri},t.a.createElement("div",{className:"markdown-editor-container ".concat(_e," ").concat(Vn?"on-preview":""," ").concat(Qe?"mini":""," ").concat(qr?"full-screen":""),style:xo},t.a.createElement(y,{insertTemp:bt,watch:Vn,fullScreen:qr,showNullButton:kr,onActionCallback:Wo,hidetoolBar:Ra,uuid:ua.current,setOpenPhones:function(){Pr.current=!0}}),t.a.createElement("div",{className:"markdown-editor-body"},t.a.createElement("div",{className:"codemirror-container"},t.a.createElement("textarea",{ref:Jr,placeholder:Xt})),Vn?t.a.createElement("div",{ref:mo,className:"preview-container"},Ht==="stex"&&t.a.createElement(P,{value:Qt}),Ht!=="stex"&&t.a.createElement(w.a,{edit:!0,value:Qt,replaces:As})):null))),fn?t.a.createElement("a",{ref:pa,className:"editor-resize"}):null,t.a.createElement(U.a,null,Pe[ya]?t.a.createElement(K.a,{centered:!0,title:Pe[ya],visible:!0,onCancel:go,footer:null,className:"markdown-popup-form"},ii):null))}},P47w:function(Re,te,v){var Z=v("hydK"),K=Z.createElement,I=v("IMiH"),k=v("mFDi"),_=v("Fofx"),O=v("6GrX"),M=v("pzxd"),x=v("dqUG"),n=I.CMD,p=Array.prototype.join,a="none",t=Math.round,h=Math.sin,s=Math.cos,i=Math.PI,u=Math.PI*2,d=180/i,f=1e-4;function o(Q){return t(Q*1e4)/1e4}function c(Q){return Q<f&&Q>-f}function E(Q,$){var ee=$?Q.textFill:Q.fill;return ee!=null&&ee!==a}function B(Q,$){var ee=$?Q.textStroke:Q.stroke;return ee!=null&&ee!==a}function w(Q,$){$&&P(Q,"transform","matrix("+p.call($,",")+")")}function P(Q,$,ee){(!ee||ee.type!=="linear"&&ee.type!=="radial")&&Q.setAttribute($,ee)}function C(Q,$,ee){Q.setAttributeNS("http://www.w3.org/1999/xlink",$,ee)}function b(Q,$,ee,fe){if(E($,ee)){var Ae=ee?$.textFill:$.fill;Ae=Ae==="transparent"?a:Ae,P(Q,"fill",Ae),P(Q,"fill-opacity",$.fillOpacity!=null?$.fillOpacity*$.opacity:$.opacity)}else P(Q,"fill",a);if(B($,ee)){var ce=ee?$.textStroke:$.stroke;ce=ce==="transparent"?a:ce,P(Q,"stroke",ce);var ie=ee?$.textStrokeWidth:$.lineWidth,be=!ee&&$.strokeNoScale?fe.getLineScale():1;P(Q,"stroke-width",ie/be),P(Q,"paint-order",ee?"stroke":"fill"),P(Q,"stroke-opacity",$.strokeOpacity!=null?$.strokeOpacity:$.opacity);var se=$.lineDash;se?(P(Q,"stroke-dasharray",$.lineDash.join(",")),P(Q,"stroke-dashoffset",t($.lineDashOffset||0))):P(Q,"stroke-dasharray",""),$.lineCap&&P(Q,"stroke-linecap",$.lineCap),$.lineJoin&&P(Q,"stroke-linejoin",$.lineJoin),$.miterLimit&&P(Q,"stroke-miterlimit",$.miterLimit)}else P(Q,"stroke",a)}function l(Q){for(var $=[],ee=Q.data,fe=Q.len(),Ae=0;Ae<fe;){var ce=ee[Ae++],ie="",be=0;switch(ce){case n.M:ie="M",be=2;break;case n.L:ie="L",be=2;break;case n.Q:ie="Q",be=4;break;case n.C:ie="C",be=6;break;case n.A:var se=ee[Ae++],me=ee[Ae++],le=ee[Ae++],ge=ee[Ae++],ae=ee[Ae++],pe=ee[Ae++],Me=ee[Ae++],xe=ee[Ae++],Ke=Math.abs(pe),tt=c(Ke-u)||(xe?pe>=u:-pe>=u),he=pe>0?pe%u:pe%u+u,Se=!1;tt?Se=!0:c(Ke)?Se=!1:Se=he>=i===!!xe;var Ue=o(se+le*s(ae)),Ne=o(me+ge*h(ae));tt&&(xe?pe=u-1e-4:pe=-u+1e-4,Se=!0,Ae===9&&$.push("M",Ue,Ne));var ct=o(se+le*s(ae+pe)),mt=o(me+ge*h(ae+pe));$.push("A",o(le),o(ge),t(Me*d),+Se,+xe,ct,mt);break;case n.Z:ie="Z";break;case n.R:var ct=o(ee[Ae++]),mt=o(ee[Ae++]),Rt=o(ee[Ae++]),ht=o(ee[Ae++]);$.push("M",ct,mt,"L",ct+Rt,mt,"L",ct+Rt,mt+ht,"L",ct,mt+ht,"L",ct,mt);break}ie&&$.push(ie);for(var Ut=0;Ut<be;Ut++)$.push(o(ee[Ae++]))}return $.join(" ")}var A={};A.brush=function(Q){var $=Q.style,ee=Q.__svgEl;ee||(ee=K("path"),Q.__svgEl=ee),Q.path||Q.createPathProxy();var fe=Q.path;if(Q.__dirtyPath){fe.beginPath(),fe.subPixelOptimize=!1,Q.buildPath(fe,Q.shape),Q.__dirtyPath=!1;var Ae=l(fe);Ae.indexOf("NaN")<0&&P(ee,"d",Ae)}b(ee,$,!1,Q),w(ee,Q.transform),$.text!=null?S(Q,Q.getBoundingRect()):z(Q)};var g={};g.brush=function(Q){var $=Q.style,ee=$.image;if(ee instanceof HTMLImageElement){var fe=ee.src;ee=fe}if(!ee)return;var Ae=$.x||0,ce=$.y||0,ie=$.width,be=$.height,se=Q.__svgEl;se||(se=K("image"),Q.__svgEl=se),ee!==Q.__imageSrc&&(C(se,"href",ee),Q.__imageSrc=ee),P(se,"width",ie),P(se,"height",be),P(se,"x",Ae),P(se,"y",ce),w(se,Q.transform),$.text!=null?S(Q,Q.getBoundingRect()):z(Q)};var T={},m=new k,y={},U=[],N={left:"start",right:"end",center:"middle",middle:"middle"},S=function(Q,$){var ee=Q.style,fe=Q.transform,Ae=Q instanceof x||ee.transformText;Q.__dirty&&M.normalizeTextStyle(ee,!0);var ce=ee.text;if(ce!=null&&(ce+=""),!M.needDrawText(ce,ee))return;ce==null&&(ce=""),!Ae&&fe&&(m.copy($),m.applyTransform(fe),$=m);var ie=Q.__textSvgEl;ie||(ie=K("text"),Q.__textSvgEl=ie);var be=ie.style,se=ee.font||O.DEFAULT_FONT,me=ie.__computedFont;se!==ie.__styleFont&&(be.font=ie.__styleFont=se,me=ie.__computedFont=be.font);var le=ee.textPadding,ge=ee.textLineHeight,ae=Q.__textCotentBlock;(!ae||Q.__dirtyText)&&(ae=Q.__textCotentBlock=O.parsePlainText(ce,me,le,ge,ee.truncate));var pe=ae.outerHeight,Me=ae.lineHeight;M.getBoxPosition(y,Q,ee,$);var xe=y.baseX,Ke=y.baseY,tt=y.textAlign||"left",he=y.textVerticalAlign;H(ie,Ae,fe,ee,$,xe,Ke);var Se=O.adjustTextY(Ke,pe,he),Ue=xe,Ne=Se;le&&(Ue=F(xe,tt,le),Ne+=le[0]),Ne+=Me/2,b(ie,ee,!0,Q);var ct=ae.canCacheByTextString,mt=Q.__tspanList||(Q.__tspanList=[]),Rt=mt.length;if(ct&&Q.__canCacheByTextString&&Q.__text===ce){if(Q.__dirtyText&&Rt)for(var ht=0;ht<Rt;++ht)R(mt[ht],tt,Ue,Ne+ht*Me)}else{Q.__text=ce,Q.__canCacheByTextString=ct;for(var Ut=ae.lines,zt=Ut.length,ht=0;ht<zt;ht++){var ze=mt[ht],Ve=Ut[ht];ze?ze.__zrText!==Ve&&(ze.innerHTML="",ze.appendChild(document.createTextNode(Ve))):(ze=mt[ht]=K("tspan"),ie.appendChild(ze),ze.appendChild(document.createTextNode(Ve))),R(ze,tt,Ue,Ne+ht*Me)}if(Rt>zt){for(;ht<Rt;ht++)ie.removeChild(mt[ht]);mt.length=zt}}};function H(Q,$,ee,fe,Ae,ce,ie){_.identity(U),$&&ee&&_.copy(U,ee);var be=fe.textRotation;if(Ae&&be){var se=fe.textOrigin;se==="center"?(ce=Ae.width/2+Ae.x,ie=Ae.height/2+Ae.y):se&&(ce=se[0]+Ae.x,ie=se[1]+Ae.y),U[4]-=ce,U[5]-=ie,_.rotate(U,U,be),U[4]+=ce,U[5]+=ie}w(Q,U)}function F(Q,$,ee){return $==="right"?Q-ee[1]:$==="center"?Q+ee[3]/2-ee[1]/2:Q+ee[3]}function R(Q,$,ee,fe){P(Q,"dominant-baseline","middle"),P(Q,"text-anchor",N[$]),P(Q,"x",ee),P(Q,"y",fe)}function z(Q){Q&&Q.__textSvgEl&&(Q.__textSvgEl.parentNode&&Q.__textSvgEl.parentNode.removeChild(Q.__textSvgEl),Q.__textSvgEl=null,Q.__tspanList=[],Q.__text=null)}T.drawRectText=S,T.brush=function(Q){var $=Q.style;$.text!=null?S(Q,!1):z(Q)},te.path=A,te.image=g,te.text=T},P4Qj:function(Re,te,v){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.removeSensor=te.getSensor=void 0;var Z=k(v("chpo")),K=v("FxDU"),I=v("24YM");function k(x){return x&&x.__esModule?x:{default:x}}var _={},O=function(n){var p=n.getAttribute(I.SizeSensorId);if(p&&_[p])return _[p];var a=(0,Z.default)();n.setAttribute(I.SizeSensorId,a);var t=(0,K.createSensor)(n);return _[a]=t,t};te.getSensor=O;var M=function(n){var p=n.element.getAttribute(I.SizeSensorId);n.element.removeAttribute(I.SizeSensorId),n.destroy(),p&&_[p]&&delete _[p]};te.removeSensor=M},P5Jw:function(Re,te,v){"use strict";var Z=v("rHrb"),K=Z.CopyToClipboard;K.CopyToClipboard=K,Re.exports=K},QBsz:function(Re,te){var v=typeof Float32Array=="undefined"?Array:Float32Array;function Z(b,l){var A=new v(2);return b==null&&(b=0),l==null&&(l=0),A[0]=b,A[1]=l,A}function K(b,l){return b[0]=l[0],b[1]=l[1],b}function I(b){var l=new v(2);return l[0]=b[0],l[1]=b[1],l}function k(b,l,A){return b[0]=l,b[1]=A,b}function _(b,l,A){return b[0]=l[0]+A[0],b[1]=l[1]+A[1],b}function O(b,l,A,g){return b[0]=l[0]+A[0]*g,b[1]=l[1]+A[1]*g,b}function M(b,l,A){return b[0]=l[0]-A[0],b[1]=l[1]-A[1],b}function x(b){return Math.sqrt(p(b))}var n=x;function p(b){return b[0]*b[0]+b[1]*b[1]}var a=p;function t(b,l,A){return b[0]=l[0]*A[0],b[1]=l[1]*A[1],b}function h(b,l,A){return b[0]=l[0]/A[0],b[1]=l[1]/A[1],b}function s(b,l){return b[0]*l[0]+b[1]*l[1]}function i(b,l,A){return b[0]=l[0]*A,b[1]=l[1]*A,b}function u(b,l){var A=x(l);return A===0?(b[0]=0,b[1]=0):(b[0]=l[0]/A,b[1]=l[1]/A),b}function d(b,l){return Math.sqrt((b[0]-l[0])*(b[0]-l[0])+(b[1]-l[1])*(b[1]-l[1]))}var f=d;function o(b,l){return(b[0]-l[0])*(b[0]-l[0])+(b[1]-l[1])*(b[1]-l[1])}var c=o;function E(b,l){return b[0]=-l[0],b[1]=-l[1],b}function B(b,l,A,g){return b[0]=l[0]+g*(A[0]-l[0]),b[1]=l[1]+g*(A[1]-l[1]),b}function w(b,l,A){var g=l[0],T=l[1];return b[0]=A[0]*g+A[2]*T+A[4],b[1]=A[1]*g+A[3]*T+A[5],b}function P(b,l,A){return b[0]=Math.min(l[0],A[0]),b[1]=Math.min(l[1],A[1]),b}function C(b,l,A){return b[0]=Math.max(l[0],A[0]),b[1]=Math.max(l[1],A[1]),b}te.create=Z,te.copy=K,te.clone=I,te.set=k,te.add=_,te.scaleAndAdd=O,te.sub=M,te.len=x,te.length=n,te.lenSquare=p,te.lengthSquare=a,te.mul=t,te.div=h,te.dot=s,te.scale=i,te.normalize=u,te.distance=d,te.dist=f,te.distanceSquare=o,te.distSquare=c,te.negate=E,te.lerp=B,te.applyTransform=w,te.min=P,te.max=C},"QO+J":function(Re,te,v){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.createSensor=void 0;var Z=I(v("NohK")),K=v("24YM");function I(_){return _&&_.__esModule?_:{default:_}}var k=function(O){var M=void 0,x=[],n=function(){getComputedStyle(O).position==="static"&&(O.style.position="relative");var i=document.createElement("object");return i.onload=function(){i.contentDocument.defaultView.addEventListener("resize",p),p()},i.style.display="block",i.style.position="absolute",i.style.top="0",i.style.left="0",i.style.height="100%",i.style.width="100%",i.style.overflow="hidden",i.style.pointerEvents="none",i.style.zIndex="-1",i.style.opacity="0",i.setAttribute("class",K.SensorClassName),i.setAttribute("tabindex",K.SensorTabIndex),i.type="text/html",O.appendChild(i),i.data="about:blank",i},p=(0,Z.default)(function(){x.forEach(function(s){s(O)})}),a=function(i){M||(M=n()),x.indexOf(i)===-1&&x.push(i)},t=function(){M&&M.parentNode&&(M.contentDocument&&M.contentDocument.defaultView.removeEventListener("resize",p),M.parentNode.removeChild(M),M=void 0,x=[])},h=function(i){var u=x.indexOf(i);u!==-1&&x.splice(u,1),x.length===0&&M&&t()};return{element:O,bind:a,destroy:t,unbind:h}};te.createSensor=k},QcdW:function(Re,te,v){},Qe9p:function(Re,te,v){var Z=v("1RvN"),K={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 I(l){return l=Math.round(l),l<0?0:l>255?255:l}function k(l){return l=Math.round(l),l<0?0:l>360?360:l}function _(l){return l<0?0:l>1?1:l}function O(l){return l.length&&l.charAt(l.length-1)==="%"?I(parseFloat(l)/100*255):I(parseInt(l,10))}function M(l){return l.length&&l.charAt(l.length-1)==="%"?_(parseFloat(l)/100):_(parseFloat(l))}function x(l,A,g){return g<0?g+=1:g>1&&(g-=1),g*6<1?l+(A-l)*g*6:g*2<1?A:g*3<2?l+(A-l)*(2/3-g)*6:l}function n(l,A,g){return l+(A-l)*g}function p(l,A,g,T,m){return l[0]=A,l[1]=g,l[2]=T,l[3]=m,l}function a(l,A){return l[0]=A[0],l[1]=A[1],l[2]=A[2],l[3]=A[3],l}var t=new Z(20),h=null;function s(l,A){h&&a(h,A),h=t.put(l,h||A.slice())}function i(l,A){if(!l)return;A=A||[];var g=t.get(l);if(g)return a(A,g);l=l+"";var T=l.replace(/ /g,"").toLowerCase();if(T in K)return a(A,K[T]),s(l,A),A;if(T.charAt(0)==="#"){if(T.length===4){var m=parseInt(T.substr(1),16);if(!(m>=0&&m<=4095)){p(A,0,0,0,1);return}return p(A,(m&3840)>>4|(m&3840)>>8,m&240|(m&240)>>4,m&15|(m&15)<<4,1),s(l,A),A}else if(T.length===7){var m=parseInt(T.substr(1),16);if(!(m>=0&&m<=16777215)){p(A,0,0,0,1);return}return p(A,(m&16711680)>>16,(m&65280)>>8,m&255,1),s(l,A),A}return}var y=T.indexOf("("),U=T.indexOf(")");if(y!==-1&&U+1===T.length){var N=T.substr(0,y),S=T.substr(y+1,U-(y+1)).split(","),H=1;switch(N){case"rgba":if(S.length!==4){p(A,0,0,0,1);return}H=M(S.pop());case"rgb":if(S.length!==3){p(A,0,0,0,1);return}return p(A,O(S[0]),O(S[1]),O(S[2]),H),s(l,A),A;case"hsla":if(S.length!==4){p(A,0,0,0,1);return}return S[3]=M(S[3]),u(S,A),s(l,A),A;case"hsl":if(S.length!==3){p(A,0,0,0,1);return}return u(S,A),s(l,A),A;default:return}}p(A,0,0,0,1);return}function u(l,A){var g=(parseFloat(l[0])%360+360)%360/360,T=M(l[1]),m=M(l[2]),y=m<=.5?m*(T+1):m+T-m*T,U=m*2-y;return A=A||[],p(A,I(x(U,y,g+1/3)*255),I(x(U,y,g)*255),I(x(U,y,g-1/3)*255),1),l.length===4&&(A[3]=l[3]),A}function d(l){if(!l)return;var A=l[0]/255,g=l[1]/255,T=l[2]/255,m=Math.min(A,g,T),y=Math.max(A,g,T),U=y-m,N=(y+m)/2,S,H;if(U===0)S=0,H=0;else{N<.5?H=U/(y+m):H=U/(2-y-m);var F=((y-A)/6+U/2)/U,R=((y-g)/6+U/2)/U,z=((y-T)/6+U/2)/U;A===y?S=z-R:g===y?S=1/3+F-z:T===y&&(S=2/3+R-F),S<0&&(S+=1),S>1&&(S-=1)}var Q=[S*360,H,N];return l[3]!=null&&Q.push(l[3]),Q}function f(l,A){var g=i(l);if(g){for(var T=0;T<3;T++)A<0?g[T]=g[T]*(1-A)|0:g[T]=(255-g[T])*A+g[T]|0,g[T]>255?g[T]=255:l[T]<0&&(g[T]=0);return b(g,g.length===4?"rgba":"rgb")}}function o(l){var A=i(l);if(A)return((1<<24)+(A[0]<<16)+(A[1]<<8)+ +A[2]).toString(16).slice(1)}function c(l,A,g){if(!(A&&A.length)||!(l>=0&&l<=1))return;g=g||[];var T=l*(A.length-1),m=Math.floor(T),y=Math.ceil(T),U=A[m],N=A[y],S=T-m;return g[0]=I(n(U[0],N[0],S)),g[1]=I(n(U[1],N[1],S)),g[2]=I(n(U[2],N[2],S)),g[3]=_(n(U[3],N[3],S)),g}var E=c;function B(l,A,g){if(!(A&&A.length)||!(l>=0&&l<=1))return;var T=l*(A.length-1),m=Math.floor(T),y=Math.ceil(T),U=i(A[m]),N=i(A[y]),S=T-m,H=b([I(n(U[0],N[0],S)),I(n(U[1],N[1],S)),I(n(U[2],N[2],S)),_(n(U[3],N[3],S))],"rgba");return g?{color:H,leftIndex:m,rightIndex:y,value:T}:H}var w=B;function P(l,A,g,T){if(l=i(l),l)return l=d(l),A!=null&&(l[0]=k(A)),g!=null&&(l[1]=M(g)),T!=null&&(l[2]=M(T)),b(u(l),"rgba")}function C(l,A){if(l=i(l),l&&A!=null)return l[3]=_(A),b(l,"rgba")}function b(l,A){if(!l||!l.length)return;var g=l[0]+","+l[1]+","+l[2];return(A==="rgba"||A==="hsva"||A==="hsla")&&(g+=","+l[3]),A+"("+g+")"}te.parse=i,te.lift=f,te.toHex=o,te.fastLerp=c,te.fastMapToColor=E,te.lerp=B,te.mapToColor=w,te.modifyHSL=P,te.modifyAlpha=C,te.stringify=b},QuXc:function(Re,te){var v=function(K){this.colorStops=K||[]};v.prototype={constructor:v,addColorStop:function(K,I){this.colorStops.push({offset:K,color:I})}};var Z=v;Re.exports=Z},RDYZ:function(Re,te,v){var Z=v("dMvE");function K(k){this._target=k.target,this._life=k.life||1e3,this._delay=k.delay||0,this._initialized=!1,this.loop=k.loop==null?!1:k.loop,this.gap=k.gap||0,this.easing=k.easing||"Linear",this.onframe=k.onframe,this.ondestroy=k.ondestroy,this.onrestart=k.onrestart,this._pausedTime=0,this._paused=!1}K.prototype={constructor:K,step:function(k,_){if(this._initialized||(this._startTime=k+this._delay,this._initialized=!0),this._paused){this._pausedTime+=_;return}var O=(k-this._startTime-this._pausedTime)/this._life;if(O<0)return;O=Math.min(O,1);var M=this.easing,x=typeof M=="string"?Z[M]:M,n=typeof x=="function"?x(O):O;return this.fire("frame",n),O===1?this.loop?(this.restart(k),"restart"):(this._needsRemove=!0,"destroy"):null},restart:function(k){var _=(k-this._startTime-this._pausedTime)%this._life;this._startTime=k-_+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(k,_){k="on"+k,this[k]&&this[k](this._target,_)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var I=K;Re.exports=I},RMFE:function(Re,te){Re.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWgAAAFyCAYAAADYqEAoAAAAAXNSR0IArs4c6QAADetJREFUeAHt1jFqXUEQRUHLaP9b/jZObmYU9MAJSlGDxNBUPw76+vz9+eWHAAECBHICv3MbWYgAAQIE/gkItA+BAAECUQGBjh7GWgQIEBBo3wABAgSiAgIdPYy1CBAgINC+AQIECEQFBDp6GGsRIEBAoH0DBAgQiAoIdPQw1iJAgIBA+wYIECAQFRDo6GGsRYAAAYH2DRAgQCAqINDRw1iLAAECAu0bIECAQFRAoKOHsRYBAgQE2jdAgACBqIBARw9jLQIECAi0b4AAAQJRAYGOHsZaBAgQEGjfAAECBKICAh09jLUIECAg0L4BAgQIRAUEOnoYaxEgQECgfQMECBCICgh09DDWIkCAgED7BggQIBAVEOjoYaxFgAABgfYNECBAICog0NHDWIsAAQIC7RsgQIBAVECgo4exFgECBATaN0CAAIGogEBHD2MtAgQICLRvgAABAlEBgY4exloECBAQaN8AAQIEogICHT2MtQgQICDQvgECBAhEBQQ6ehhrESBAQKB9AwQIEIgKCHT0MNYiQICAQPsGCBAgEBUQ6OhhrEWAAAGB9g0QIEAgKiDQ0cNYiwABAgLtGyBAgEBUQKCjh7EWAQIEBNo3QIAAgaiAQEcPYy0CBAh8/5Tg6+vrp3/q7wgQIEDgPwKfz+c/v92v/Ac9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICXz/dJvP5/PTP/V3BAgQIHAg4D/oA0RPECBA4IWAQL9Q9SYBAgQOBAT6ANETBAgQeCEg0C9UvUmAAIEDAYE+QPQEAQIEXggI9AtVbxIgQOBAQKAPED1BgACBFwIC/ULVmwQIEDgQEOgDRE8QIEDghYBAv1D1JgECBA4EBPoA0RMECBB4ISDQL1S9SYAAgQMBgT5A9AQBAgReCAj0C1VvEiBA4EBAoA8QPUGAAIEXAgL9QtWbBAgQOBAQ6ANETxAgQOCFgEC/UPUmAQIEDgQE+gDREwQIEHghINAvVL1JgACBAwGBPkD0BAECBF4ICPQLVW8SIEDgQECgDxA9QYAAgRcCAv1C1ZsECBA4EBDoA0RPECBA4IWAQL9Q9SYBAgQOBAT6ANETBAgQeCEg0C9UvUmAAIEDAYE+QPQEAQIEXggI9AtVbxIgQOBAQKAPED1BgACBFwIC/ULVmwQIEDgQEOgDRE8QIEDghYBAv1D1JgECBA4EBPoA0RMECBB4ISDQL1S9SYAAgQMBgT5A9AQBAgReCAj0C1VvEiBA4EBAoA8QPUGAAIEXAgL9QtWbBAgQOBAQ6ANETxAgQOCFgEC/UPUmAQIEDgQE+gDREwQIEHghINAvVL1JgACBAwGBPkD0BAECBF4ICPQLVW8SIEDgQECgDxA9QYAAgRcCAv1C1ZsECBA4EBDoA0RPECBA4IXAH7PYDOHnuk1pAAAAAElFTkSuQmCC"},RXMa:function(Re,te,v){var Z=v("y+Vt"),K=Z.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(I,k){var _=k.cx,O=k.cy,M=Math.PI*2;I.moveTo(_+k.r,O),I.arc(_,O,k.r,0,M,!1),I.moveTo(_+k.r0,O),I.arc(_,O,k.r0,0,M,!0)}});Re.exports=K},RotF:function(Re,te,v){Re.exports=v("LSTS")},RxwV:function(Re,te,v){"use strict";var Z=v("q1tI"),K=v("uciX"),I=v("2W6z"),k=v.n(I),_=v("4IlW"),O=v("uK0f"),M=v.n(O);function x(ie,be){if(ie===be)return!0;if(!ie||!be)return!1;var se=ie.length;if(be.length!==se)return!1;for(var me=0;me<se;me++)if(ie[me]!==be[me])return!1;return!0}function n(ie){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?n=function(se){return typeof se}:n=function(se){return se&&typeof Symbol=="function"&&se.constructor===Symbol&&se!==Symbol.prototype?"symbol":typeof se},n(ie)}function p(ie,be){if(!(ie instanceof be))throw new TypeError("Cannot call a class as a function")}function a(ie,be){for(var se=0;se<be.length;se++){var me=be[se];me.enumerable=me.enumerable||!1,me.configurable=!0,"value"in me&&(me.writable=!0),Object.defineProperty(ie,me.key,me)}}function t(ie,be,se){return be&&a(ie.prototype,be),se&&a(ie,se),ie}function h(ie,be){if(typeof be!="function"&&be!==null)throw new TypeError("Super expression must either be null or a function");ie.prototype=Object.create(be&&be.prototype,{constructor:{value:ie,writable:!0,configurable:!0}}),be&&s(ie,be)}function s(ie,be){return s=Object.setPrototypeOf||function(me,le){return me.__proto__=le,me},s(ie,be)}function i(ie){var be=f();return function(){var se=o(ie),me;if(be){var le=o(this).constructor;me=Reflect.construct(se,arguments,le)}else me=se.apply(this,arguments);return u(this,me)}}function u(ie,be){return be&&(n(be)==="object"||typeof be=="function")?be:d(ie)}function d(ie){if(ie===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ie}function f(){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(ie){return!1}}function o(ie){return o=Object.setPrototypeOf?Object.getPrototypeOf:function(se){return se.__proto__||Object.getPrototypeOf(se)},o(ie)}var c=function(){var ie=function(be){h(me,be);var se=i(me);function me(){var le;return p(this,me),le=se.apply(this,arguments),le.menuItems={},le.saveMenuItem=function(ge){return function(ae){le.menuItems[ge]=ae}},le}return t(me,[{key:"componentDidMount",value:function(){this.scrollActiveItemToView()}},{key:"componentDidUpdate",value:function(ge){!ge.visible&&this.props.visible&&this.scrollActiveItemToView()}},{key:"getFieldName",value:function(ge){var ae=this.props,pe=ae.fieldNames,Me=ae.defaultFieldNames;return pe[ge]||Me[ge]}},{key:"getOption",value:function(ge,ae){var pe=this.props,Me=pe.prefixCls,xe=pe.expandTrigger,Ke=pe.expandIcon,tt=pe.loadingIcon,he=this.props.onSelect.bind(this,ge,ae),Se=this.props.onItemDoubleClick.bind(this,ge,ae),Ue={onClick:he,onDoubleClick:Se},Ne="".concat(Me,"-menu-item"),ct=null,mt=ge[this.getFieldName("children")]&&ge[this.getFieldName("children")].length>0;(mt||ge.isLeaf===!1)&&(Ne+=" ".concat(Me,"-menu-item-expand"),ge.loading||(ct=Z.createElement("span",{className:"".concat(Me,"-menu-item-expand-icon")},Ke))),xe==="hover"&&(mt||ge.isLeaf===!1)&&(Ue={onMouseEnter:this.delayOnSelect.bind(this,he),onMouseLeave:this.delayOnSelect.bind(this),onClick:he}),this.isActiveOption(ge,ae)&&(Ne+=" ".concat(Me,"-menu-item-active"),Ue.ref=this.saveMenuItem(ae)),ge.disabled&&(Ne+=" ".concat(Me,"-menu-item-disabled"));var Rt=null;ge.loading&&(Ne+=" ".concat(Me,"-menu-item-loading"),Rt=tt||null);var ht="";return"title"in ge?ht=ge.title:typeof ge[this.getFieldName("label")]=="string"&&(ht=ge[this.getFieldName("label")]),Z.createElement("li",Object.assign({key:ge[this.getFieldName("value")],className:Ne,title:ht},Ue,{role:"menuitem",onMouseDown:function(zt){return zt.preventDefault()}}),ge[this.getFieldName("label")],ct,Rt)}},{key:"getActiveOptions",value:function(ge){var ae=this,pe=this.props.options,Me=ge||this.props.activeValue;return M()(pe,function(xe,Ke){return xe[ae.getFieldName("value")]===Me[Ke]},{childrenKeyName:this.getFieldName("children")})}},{key:"getShowOptions",value:function(){var ge=this,ae=this.props.options,pe=this.getActiveOptions().map(function(Me){return Me[ge.getFieldName("children")]}).filter(function(Me){return!!Me});return pe.unshift(ae),pe}},{key:"delayOnSelect",value:function(ge){for(var ae=this,pe=arguments.length,Me=new Array(pe>1?pe-1:0),xe=1;xe<pe;xe++)Me[xe-1]=arguments[xe];this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null),typeof ge=="function"&&(this.delayTimer=window.setTimeout(function(){ge(Me),ae.delayTimer=null},150))}},{key:"scrollActiveItemToView",value:function(){for(var ge=this.getShowOptions().length,ae=0;ae<ge;ae++){var pe=this.menuItems[ae];pe&&pe.parentElement&&(pe.parentElement.scrollTop=pe.offsetTop)}}},{key:"isActiveOption",value:function(ge,ae){var pe=this.props.activeValue,Me=pe===void 0?[]:pe;return Me[ae]===ge[this.getFieldName("value")]}},{key:"render",value:function(){var ge=this,ae=this.props,pe=ae.prefixCls,Me=ae.dropdownMenuColumnStyle;return Z.createElement("div",null,this.getShowOptions().map(function(xe,Ke){return Z.createElement("ul",{className:"".concat(pe,"-menu"),key:Ke,style:Me},xe.map(function(tt){return ge.getOption(tt,Ke)}))}))}}]),me}(Z.Component);return ie.defaultProps={options:[],value:[],activeValue:[],onSelect:function(){},prefixCls:"rc-cascader-menus",visible:!1,expandTrigger:"click"},ie}(),E=c,B={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}}},w=B;function P(ie){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?P=function(se){return typeof se}:P=function(se){return se&&typeof Symbol=="function"&&se.constructor===Symbol&&se!==Symbol.prototype?"symbol":typeof se},P(ie)}function C(ie,be){if(ie==null)return{};var se=b(ie,be),me,le;if(Object.getOwnPropertySymbols){var ge=Object.getOwnPropertySymbols(ie);for(le=0;le<ge.length;le++){if(me=ge[le],be.indexOf(me)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(ie,me))continue;se[me]=ie[me]}}return se}function b(ie,be){if(ie==null)return{};var se={},me=Object.keys(ie),le,ge;for(ge=0;ge<me.length;ge++){if(le=me[ge],be.indexOf(le)>=0)continue;se[le]=ie[le]}return se}function l(ie){return m(ie)||T(ie)||g(ie)||A()}function A(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function g(ie,be){if(!ie)return;if(typeof ie=="string")return y(ie,be);var se=Object.prototype.toString.call(ie).slice(8,-1);if(se==="Object"&&ie.constructor&&(se=ie.constructor.name),se==="Map"||se==="Set")return Array.from(ie);if(se==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(se))return y(ie,be)}function T(ie){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(ie))return Array.from(ie)}function m(ie){if(Array.isArray(ie))return y(ie)}function y(ie,be){(be==null||be>ie.length)&&(be=ie.length);for(var se=0,me=new Array(be);se<be;se++)me[se]=ie[se];return me}function U(ie,be){if(!(ie instanceof be))throw new TypeError("Cannot call a class as a function")}function N(ie,be){for(var se=0;se<be.length;se++){var me=be[se];me.enumerable=me.enumerable||!1,me.configurable=!0,"value"in me&&(me.writable=!0),Object.defineProperty(ie,me.key,me)}}function S(ie,be,se){return be&&N(ie.prototype,be),se&&N(ie,se),ie}function H(ie,be){if(typeof be!="function"&&be!==null)throw new TypeError("Super expression must either be null or a function");ie.prototype=Object.create(be&&be.prototype,{constructor:{value:ie,writable:!0,configurable:!0}}),be&&F(ie,be)}function F(ie,be){return F=Object.setPrototypeOf||function(me,le){return me.__proto__=le,me},F(ie,be)}function R(ie){var be=$();return function(){var se=ee(ie),me;if(be){var le=ee(this).constructor;me=Reflect.construct(se,arguments,le)}else me=se.apply(this,arguments);return z(this,me)}}function z(ie,be){return be&&(P(be)==="object"||typeof be=="function")?be:Q(ie)}function Q(ie){if(ie===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ie}function $(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(ie){return!1}}function ee(ie){return ee=Object.setPrototypeOf?Object.getPrototypeOf:function(se){return se.__proto__||Object.getPrototypeOf(se)},ee(ie)}var fe=function(){var ie=function(be){H(me,be);var se=R(me);function me(le){var ge;U(this,me),ge=se.call(this,le),ge.setPopupVisible=function(pe){var Me=ge.state.value;"popupVisible"in ge.props||ge.setState({popupVisible:pe}),pe&&!ge.state.popupVisible&&ge.setState({activeValue:Me}),ge.props.onPopupVisibleChange(pe)},ge.handleChange=function(pe,Me,xe){var Ke=Me.visible;(xe.type!=="keydown"||xe.keyCode===_.a.ENTER)&&(ge.props.onChange(pe.map(function(tt){return tt[ge.getFieldName("value")]}),pe),ge.setPopupVisible(Ke))},ge.handlePopupVisibleChange=function(pe){ge.setPopupVisible(pe)},ge.handleMenuSelect=function(pe,Me,xe){var Ke=ge.trigger.getRootDomNode();Ke&&Ke.focus&&Ke.focus();var tt=ge.props,he=tt.changeOnSelect,Se=tt.loadData,Ue=tt.expandTrigger;if(!pe||pe.disabled)return;var Ne=ge.state.activeValue;Ne=Ne.slice(0,Me+1),Ne[Me]=pe[ge.getFieldName("value")];var ct=ge.getActiveOptions(Ne);if(pe.isLeaf===!1&&!pe[ge.getFieldName("children")]&&Se){he&&ge.handleChange(ct,{visible:!0},xe),ge.setState({activeValue:Ne}),Se(ct);return}var mt={};!pe[ge.getFieldName("children")]||!pe[ge.getFieldName("children")].length?(ge.handleChange(ct,{visible:!1},xe),mt.value=Ne):he&&(xe.type==="click"||xe.type==="keydown")&&(Ue==="hover"?ge.handleChange(ct,{visible:!1},xe):ge.handleChange(ct,{visible:!0},xe),mt.value=Ne),mt.activeValue=Ne,("value"in ge.props||xe.type==="keydown"&&xe.keyCode!==_.a.ENTER)&&delete mt.value,ge.setState(mt)},ge.handleItemDoubleClick=function(){var pe=ge.props.changeOnSelect;pe&&ge.setPopupVisible(!1)},ge.handleKeyDown=function(pe){var Me=ge.props.children;if(Me&&Me.props.onKeyDown){Me.props.onKeyDown(pe);return}var xe=l(ge.state.activeValue),Ke=xe.length-1<0?0:xe.length-1,tt=ge.getCurrentLevelOptions(),he=tt.map(function(ct){return ct[ge.getFieldName("value")]}).indexOf(xe[Ke]);if(pe.keyCode!==_.a.DOWN&&pe.keyCode!==_.a.UP&&pe.keyCode!==_.a.LEFT&&pe.keyCode!==_.a.RIGHT&&pe.keyCode!==_.a.ENTER&&pe.keyCode!==_.a.SPACE&&pe.keyCode!==_.a.BACKSPACE&&pe.keyCode!==_.a.ESC&&pe.keyCode!==_.a.TAB)return;if(!ge.state.popupVisible&&pe.keyCode!==_.a.BACKSPACE&&pe.keyCode!==_.a.LEFT&&pe.keyCode!==_.a.RIGHT&&pe.keyCode!==_.a.ESC&&pe.keyCode!==_.a.TAB){ge.setPopupVisible(!0);return}if(pe.keyCode===_.a.DOWN||pe.keyCode===_.a.UP){pe.preventDefault();var Se=he;Se!==-1?pe.keyCode===_.a.DOWN?(Se+=1,Se=Se>=tt.length?0:Se):(Se-=1,Se=Se<0?tt.length-1:Se):Se=0,xe[Ke]=tt[Se][ge.getFieldName("value")]}else if(pe.keyCode===_.a.LEFT||pe.keyCode===_.a.BACKSPACE)pe.preventDefault(),xe.splice(xe.length-1,1);else if(pe.keyCode===_.a.RIGHT)pe.preventDefault(),tt[he]&&tt[he][ge.getFieldName("children")]&&xe.push(tt[he][ge.getFieldName("children")][0][ge.getFieldName("value")]);else if(pe.keyCode===_.a.ESC||pe.keyCode===_.a.TAB){ge.setPopupVisible(!1);return}(!xe||xe.length===0)&&ge.setPopupVisible(!1);var Ue=ge.getActiveOptions(xe),Ne=Ue[Ue.length-1];ge.handleMenuSelect(Ne,Ue.length-1,pe),ge.props.onKeyDown&&ge.props.onKeyDown(pe)},ge.saveTrigger=function(pe){ge.trigger=pe};var ae=[];return"value"in le?ae=le.value||[]:"defaultValue"in le&&(ae=le.defaultValue||[]),k()(!("filedNames"in le),"`filedNames` of Cascader is a typo usage and deprecated, please use `fieldNames` instead."),ge.state={popupVisible:le.popupVisible,activeValue:ae,value:ae,prevProps:le},ge.defaultFieldNames={label:"label",value:"value",children:"children"},ge}return S(me,[{key:"getPopupDOMNode",value:function(){return this.trigger.getPopupDomNode()}},{key:"getFieldName",value:function(ge){var ae=this.defaultFieldNames,pe=this.props,Me=pe.fieldNames,xe=pe.filedNames;return"filedNames"in this.props?xe[ge]||ae[ge]:Me[ge]||ae[ge]}},{key:"getFieldNames",value:function(){var ge=this.props,ae=ge.fieldNames,pe=ge.filedNames;return"filedNames"in this.props?pe:ae}},{key:"getCurrentLevelOptions",value:function(){var ge=this,ae=this.props.options,pe=ae===void 0?[]:ae,Me=this.state.activeValue,xe=Me===void 0?[]:Me,Ke=M()(pe,function(tt,he){return tt[ge.getFieldName("value")]===xe[he]},{childrenKeyName:this.getFieldName("children")});return Ke[Ke.length-2]?Ke[Ke.length-2][this.getFieldName("children")]:l(pe).filter(function(tt){return!tt.disabled})}},{key:"getActiveOptions",value:function(ge){var ae=this;return M()(this.props.options||[],function(pe,Me){return pe[ae.getFieldName("value")]===ge[Me]},{childrenKeyName:this.getFieldName("children")})}},{key:"render",value:function(){var ge=this.props,ae=ge.prefixCls,pe=ge.transitionName,Me=ge.popupClassName,xe=ge.options,Ke=xe===void 0?[]:xe,tt=ge.disabled,he=ge.builtinPlacements,Se=ge.popupPlacement,Ue=ge.children,Ne=ge.dropdownRender,ct=C(ge,["prefixCls","transitionName","popupClassName","options","disabled","builtinPlacements","popupPlacement","children","dropdownRender"]),mt=Z.createElement("div",null),Rt="";Ke&&Ke.length>0?mt=Z.createElement(E,Object.assign({},this.props,{fieldNames:this.getFieldNames(),defaultFieldNames:this.defaultFieldNames,activeValue:this.state.activeValue,onSelect:this.handleMenuSelect,onItemDoubleClick:this.handleItemDoubleClick,visible:this.state.popupVisible})):Rt=" ".concat(ae,"-menus-empty");var ht=mt;return Ne&&(ht=Ne(mt)),Z.createElement(K.a,Object.assign({ref:this.saveTrigger},ct,{popupPlacement:Se,builtinPlacements:he,popupTransitionName:pe,action:tt?[]:["click"],popupVisible:tt?!1:this.state.popupVisible,onPopupVisibleChange:this.handlePopupVisibleChange,prefixCls:"".concat(ae,"-menus"),popupClassName:Me+Rt,popup:ht}),Z.cloneElement(Ue,{onKeyDown:this.handleKeyDown,tabIndex:tt?void 0:0}))}}],[{key:"getDerivedStateFromProps",value:function(ge,ae){var pe=ae.prevProps,Me=pe===void 0?{}:pe,xe={prevProps:ge};return"value"in ge&&!x(Me.value,ge.value)&&(xe.value=ge.value||[],"loadData"in ge||(xe.activeValue=ge.value||[])),"popupVisible"in ge&&(xe.popupVisible=ge.popupVisible),xe}}]),me}(Z.Component);return ie.defaultProps={onChange:function(){},onPopupVisibleChange:function(){},disabled:!1,transitionName:"",prefixCls:"rc-cascader",popupClassName:"",popupPlacement:"bottomLeft",builtinPlacements:w,expandTrigger:"click",fieldNames:{label:"label",value:"value",children:"children"},expandIcon:">"},ie}(),Ae=fe,ce=te.a=Ae},"SA+Z":function(Re,te,v){var Z=v("wTVA"),K=v("EbDI"),I=v("ZhPi"),k=v("wkBT");function _(O){return Z(O)||K(O)||I(O)||k()}Re.exports=_,Re.exports.__esModule=!0,Re.exports.default=Re.exports},SJMd:function(Re,te){/**
|
|
* @license
|
|
* Copyright (C) 2006 Google Inc.
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/var v,Z,K,I=!1,k,_;window.PR_SHOULD_USE_CONTINUATION=!0;var O,M;(function(){var x=window,n=["break,continue,do,else,for,if,return,while"],p=[n,"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"],a=[p,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],t=[a,"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"],h=[a,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],s=[a,"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"],i="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",u=[a,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],d="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",f=[n,"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"],o=[n,"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"],c=[n,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],E=[t,s,h,u,d,f,o,c],B=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,w="str",P="kwd",C="com",b="typ",l="lit",A="pun",g="pln",T="tag",m="dec",y="src",U="atn",N="atv",S="nocode",H="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function F(xe){for(var Ke=0,tt=!1,he=!1,Se=0,Ue=xe.length;Se<Ue;++Se){var Ne=xe[Se];if(Ne.ignoreCase)he=!0;else if(/[a-z]/i.test(Ne.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){tt=!0,he=!1;break}}var ct={b:8,t:9,n:10,v:11,f:12,r:13};function mt(ze){var Ve=ze.charCodeAt(0);if(Ve!==92)return Ve;var Et=ze.charAt(1);return Ve=ct[Et],Ve||("0"<=Et&&Et<="7"?parseInt(ze.substring(1),8):Et==="u"||Et==="x"?parseInt(ze.substring(2),16):ze.charCodeAt(1))}function Rt(ze){if(ze<32)return(ze<16?"\\x0":"\\x")+ze.toString(16);var Ve=String.fromCharCode(ze);return Ve==="\\"||Ve==="-"||Ve==="]"||Ve==="^"?"\\"+Ve:Ve}function ht(ze){var Ve=ze.substring(1,ze.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")),Et=[],Ot=Ve[0]==="^",ut=["["];Ot&&ut.push("^");for(var vt=Ot?1:0,Ze=Ve.length;vt<Ze;++vt){var ke=Ve[vt];if(/\\[bdsw]/i.test(ke))ut.push(ke);else{var He=mt(ke),we;vt+2<Ze&&Ve[vt+1]==="-"?(we=mt(Ve[vt+2]),vt+=2):we=He,Et.push([He,we]),we<65||He>122||(we<65||He>90||Et.push([Math.max(65,He)|32,Math.min(we,90)|32]),we<97||He>122||Et.push([Math.max(97,He)&~32,Math.min(we,122)&~32]))}}Et.sort(function(Xe,gt){return Xe[0]-gt[0]||gt[1]-Xe[1]});for(var Le=[],Pe=[],vt=0;vt<Et.length;++vt){var We=Et[vt];We[0]<=Pe[1]+1?Pe[1]=Math.max(Pe[1],We[1]):Le.push(Pe=We)}for(var vt=0;vt<Le.length;++vt){var We=Le[vt];ut.push(Rt(We[0])),We[1]>We[0]&&(We[1]+1>We[0]&&ut.push("-"),ut.push(Rt(We[1])))}return ut.push("]"),ut.join("")}function Ut(ze){for(var Ve=ze.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")),Et=Ve.length,Ot=[],ut=0,vt=0;ut<Et;++ut){var Ze=Ve[ut];if(Ze==="(")++vt;else if(Ze.charAt(0)==="\\"){var ke=+Ze.substring(1);ke&&(ke<=vt?Ot[ke]=-1:Ve[ut]=Rt(ke))}}for(var ut=1;ut<Ot.length;++ut)Ot[ut]===-1&&(Ot[ut]=++Ke);for(var ut=0,vt=0;ut<Et;++ut){var Ze=Ve[ut];if(Ze==="(")++vt,Ot[vt]||(Ve[ut]="(?:");else if(Ze.charAt(0)==="\\"){var ke=+Ze.substring(1);ke&&ke<=vt&&(Ve[ut]="\\"+Ot[ke])}}for(var ut=0;ut<Et;++ut)Ve[ut]==="^"&&Ve[ut+1]!=="^"&&(Ve[ut]="");if(ze.ignoreCase&&tt)for(var ut=0;ut<Et;++ut){var Ze=Ve[ut],He=Ze.charAt(0);Ze.length>=2&&He==="["?Ve[ut]=ht(Ze):He!=="\\"&&(Ve[ut]=Ze.replace(/[a-zA-Z]/g,function(Pe){var We=Pe.charCodeAt(0);return"["+String.fromCharCode(We&~32,We|32)+"]"}))}return Ve.join("")}for(var zt=[],Se=0,Ue=xe.length;Se<Ue;++Se){var Ne=xe[Se];if(Ne.global||Ne.multiline)throw new Error(""+Ne);zt.push("(?:"+Ut(Ne)+")")}return new RegExp(zt.join("|"),he?"gi":"g")}function R(xe,Ke){var tt=/(?:^|\s)nocode(?:\s|$)/,he=[],Se=0,Ue=[],Ne=0;function ct(mt){var Rt=mt.nodeType;if(Rt==1){if(tt.test(mt.className))return;for(var ht=mt.firstChild;ht;ht=ht.nextSibling)ct(ht);var Ut=mt.nodeName.toLowerCase();(Ut==="br"||Ut==="li")&&(he[Ne]=`
|
|
`,Ue[Ne<<1]=Se++,Ue[Ne++<<1|1]=mt)}else if(Rt==3||Rt==4){var zt=mt.nodeValue;zt.length&&(Ke?zt=zt.replace(/\r\n?/g,`
|
|
`):zt=zt.replace(/[ \t\r\n]+/g," "),he[Ne]=zt,Ue[Ne<<1]=Se,Se+=zt.length,Ue[Ne++<<1|1]=mt)}}return ct(xe),{sourceCode:he.join("").replace(/\n$/,""),spans:Ue}}function z(xe,Ke,tt,he,Se){if(!tt)return;var Ue={sourceNode:xe,pre:1,langExtension:null,numberLines:null,sourceCode:tt,spans:null,basePos:Ke,decorations:null};he(Ue),Se.push.apply(Se,Ue.decorations)}var Q=/\S/;function $(xe){for(var Ke=void 0,tt=xe.firstChild;tt;tt=tt.nextSibling){var he=tt.nodeType;Ke=he===1?Ke?xe:tt:he===3&&Q.test(tt.nodeValue)?xe:Ke}return Ke===xe?void 0:Ke}function ee(xe,Ke){var tt={},he;(function(){for(var Ne=xe.concat(Ke),ct=[],mt={},Rt=0,ht=Ne.length;Rt<ht;++Rt){var Ut=Ne[Rt],zt=Ut[3];if(zt)for(var ze=zt.length;--ze>=0;)tt[zt.charAt(ze)]=Ut;var Ve=Ut[1],Et=""+Ve;mt.hasOwnProperty(Et)||(ct.push(Ve),mt[Et]=null)}ct.push(/[\0-\uffff]/),he=F(ct)})();var Se=Ke.length,Ue=function(Ne){for(var ct=Ne.sourceCode,mt=Ne.basePos,Rt=Ne.sourceNode,ht=[mt,g],Ut=0,zt=ct.match(he)||[],ze={},Ve=0,Et=zt.length;Ve<Et;++Ve){var Ot=zt[Ve],ut=ze[Ot],vt=void 0,Ze;if(typeof ut=="string")Ze=!1;else{var ke=tt[Ot.charAt(0)];if(ke)vt=Ot.match(ke[1]),ut=ke[0];else{for(var He=0;He<Se;++He)if(ke=Ke[He],vt=Ot.match(ke[1]),vt){ut=ke[0];break}vt||(ut=g)}Ze=ut.length>=5&&ut.substring(0,5)==="lang-",Ze&&!(vt&&typeof vt[1]=="string")&&(Ze=!1,ut=y),Ze||(ze[Ot]=ut)}var we=Ut;if(Ut+=Ot.length,!Ze)ht.push(mt+we,ut);else{var Le=vt[1],Pe=Ot.indexOf(Le),We=Pe+Le.length;vt[2]&&(We=Ot.length-vt[2].length,Pe=We-Le.length);var Xe=ut.substring(5);z(Rt,mt+we,Ot.substring(0,Pe),Ue,ht),z(Rt,mt+we+Pe,Le,me(Xe,Le),ht),z(Rt,mt+we+We,Ot.substring(We),Ue,ht)}}Ne.decorations=ht};return Ue}function fe(xe){var Ke=[],tt=[];xe.tripleQuotedStrings?Ke.push([w,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):xe.multiLineStrings?Ke.push([w,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):Ke.push([w,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),xe.verbatimStrings&&tt.push([w,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var he=xe.hashComments;he&&(xe.cStyleComments?(he>1?Ke.push([C,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):Ke.push([C,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),tt.push([w,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):Ke.push([C,/^#[^\r\n]*/,null,"#"])),xe.cStyleComments&&(tt.push([C,/^\/\/[^\r\n]*/,null]),tt.push([C,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var Se=xe.regexLiterals;if(Se){var Ue=Se>1?"":`
|
|
\r`,Ne=Ue?".":"[\\S\\s]",ct="/(?=[^/*"+Ue+"])(?:[^/\\x5B\\x5C"+Ue+"]|\\x5C"+Ne+"|\\x5B(?:[^\\x5C\\x5D"+Ue+"]|\\x5C"+Ne+")*(?:\\x5D|$))+/";tt.push(["lang-regex",RegExp("^"+H+"("+ct+")")])}var mt=xe.types;mt&&tt.push([b,mt]);var Rt=(""+xe.keywords).replace(/^ | $/g,"");Rt.length&&tt.push([P,new RegExp("^(?:"+Rt.replace(/[\s,]+/g,"|")+")\\b"),null]),Ke.push([g,/^\s+/,null,` \r
|
|
\xA0`]);var ht="^.[^\\s\\w.$@'\"`/\\\\]*";return xe.regexLiterals&&(ht+="(?!s*/)"),tt.push([l,/^@[a-z_$][a-z_$@0-9]*/i,null],[b,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[g,/^[a-z_$][a-z_$@0-9]*/i,null],[l,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[g,/^\\[\s\S]?/,null],[A,new RegExp(ht),null]),ee(Ke,tt)}var Ae=fe({keywords:E,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function ce(xe,Ke,tt){for(var he=/(?:^|\s)nocode(?:\s|$)/,Se=/\r\n?|\n/,Ue=xe.ownerDocument,Ne=Ue.createElement("li");xe.firstChild;)Ne.appendChild(xe.firstChild);var ct=[Ne];function mt(Ve){var Et=Ve.nodeType;if(Et==1&&!he.test(Ve.className))if(Ve.nodeName==="br")Rt(Ve),Ve.parentNode&&Ve.parentNode.removeChild(Ve);else for(var Ot=Ve.firstChild;Ot;Ot=Ot.nextSibling)mt(Ot);else if((Et==3||Et==4)&&tt){var ut=Ve.nodeValue,vt=ut.match(Se);if(vt){var Ze=ut.substring(0,vt.index);Ve.nodeValue=Ze;var ke=ut.substring(vt.index+vt[0].length);if(ke){var He=Ve.parentNode;He.insertBefore(Ue.createTextNode(ke),Ve.nextSibling)}Rt(Ve),Ze||Ve.parentNode.removeChild(Ve)}}}function Rt(Ve){for(;!Ve.nextSibling;)if(Ve=Ve.parentNode,!Ve)return;function Et(vt,Ze){var ke=Ze?vt.cloneNode(!1):vt,He=vt.parentNode;if(He){var we=Et(He,1),Le=vt.nextSibling;we.appendChild(ke);for(var Pe=Le;Pe;Pe=Le)Le=Pe.nextSibling,we.appendChild(Pe)}return ke}for(var Ot=Et(Ve.nextSibling,0),ut;(ut=Ot.parentNode)&&ut.nodeType===1;)Ot=ut;ct.push(Ot)}for(var ht=0;ht<ct.length;++ht)mt(ct[ht]);Ke===(Ke|0)&&ct[0].setAttribute("value",Ke);var Ut=Ue.createElement("ol");Ut.className="linenums";for(var zt=Math.max(0,Ke-1|0)||0,ht=0,ze=ct.length;ht<ze;++ht)Ne=ct[ht],Ne.className="L"+(ht+zt)%10,Ne.firstChild||Ne.appendChild(Ue.createTextNode("\xA0")),Ut.appendChild(Ne);xe.appendChild(Ut)}function ie(xe){var Ke=/\bMSIE\s(\d+)/.exec(navigator.userAgent);Ke=Ke&&+Ke[1]<=8;var tt=/\n/g,he=xe.sourceCode,Se=he.length,Ue=0,Ne=xe.spans,ct=Ne.length,mt=0,Rt=xe.decorations,ht=Rt.length,Ut=0;Rt[ht]=Se;var zt,ze;for(ze=zt=0;ze<ht;)Rt[ze]!==Rt[ze+2]?(Rt[zt++]=Rt[ze++],Rt[zt++]=Rt[ze++]):ze+=2;for(ht=zt,ze=zt=0;ze<ht;){for(var Ve=Rt[ze],Et=Rt[ze+1],Ot=ze+2;Ot+2<=ht&&Rt[Ot+1]===Et;)Ot+=2;Rt[zt++]=Ve,Rt[zt++]=Et,ze=Ot}ht=Rt.length=zt;var ut=xe.sourceNode,vt="";ut&&(vt=ut.style.display,ut.style.display="none");try{for(var Ze=null;mt<ct;){var ke=Ne[mt],He=Ne[mt+2]||Se,we=Rt[Ut+2]||Se,Ot=Math.min(He,we),Le=Ne[mt+1],Pe;if(Le.nodeType!==1&&(Pe=he.substring(Ue,Ot))){Ke&&(Pe=Pe.replace(tt,"\r")),Le.nodeValue=Pe;var We=Le.ownerDocument,Xe=We.createElement("span");Xe.className=Rt[Ut+1];var gt=Le.parentNode;gt.replaceChild(Xe,Le),Xe.appendChild(Le),Ue<He&&(Ne[mt+1]=Le=We.createTextNode(he.substring(Ot,He)),gt.insertBefore(Le,Xe.nextSibling))}Ue=Ot,Ue>=He&&(mt+=2),Ue>=we&&(Ut+=2)}}finally{ut&&(ut.style.display=vt)}}var be={};function se(xe,Ke){for(var tt=Ke.length;--tt>=0;){var he=Ke[tt];be.hasOwnProperty(he)?x.console&&console.warn("cannot override language handler %s",he):be[he]=xe}}function me(xe,Ke){return xe&&be.hasOwnProperty(xe)||(xe=/^\s*</.test(Ke)?"default-markup":"default-code"),be[xe]}se(Ae,["default-code"]),se(ee([],[[g,/^[^<?]+/],[m,/^<!\w[^>]*(?:>|$)/],[C,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[A,/^(?:<[%?]|[%?]>)/],["lang-",/^<xmp\b[^>]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^<script\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),se(ee([[g,/^[\s]+/,null,` \r
|
|
`],[N,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[T,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[U,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[A,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),se(ee([],[[N,/^[\s\S]+/]]),["uq.val"]),se(fe({keywords:t,hashComments:!0,cStyleComments:!0,types:B}),["c","cc","cpp","cxx","cyc","m"]),se(fe({keywords:"null,true,false"}),["json"]),se(fe({keywords:s,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:B}),["cs"]),se(fe({keywords:h,cStyleComments:!0}),["java"]),se(fe({keywords:c,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),se(fe({keywords:f,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),se(fe({keywords:d,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),se(fe({keywords:o,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),se(fe({keywords:u,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),se(fe({keywords:i,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),se(ee([],[[w,/^[\s\S]+/]]),["regex"]);function le(xe){var Ke=xe.langExtension;try{var tt=R(xe.sourceNode,xe.pre),he=tt.sourceCode;xe.sourceCode=he,xe.spans=tt.spans,xe.basePos=0,me(Ke,he)(xe),ie(xe)}catch(Se){x.console&&console.log(Se&&Se.stack||Se)}}function ge(xe,Ke,tt){var he=tt||!1,Se=Ke||null,Ue=document.createElement("div");Ue.innerHTML="<pre>"+xe+"</pre>",Ue=Ue.firstChild,he&&ce(Ue,he,!0);var Ne={langExtension:Se,numberLines:he,sourceNode:Ue,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return le(Ne),Ue.innerHTML}function ae(xe,Ke){var tt=Ke||document.body,he=tt.ownerDocument||document;function Se(ke){return tt.getElementsByTagName(ke)}for(var Ue=[Se("pre"),Se("code"),Se("xmp")],Ne=[],ct=0;ct<Ue.length;++ct)for(var mt=0,Rt=Ue[ct].length;mt<Rt;++mt)Ne.push(Ue[ct][mt]);Ue=null;var ht=Date;ht.now||(ht={now:function(){return+new Date}});var Ut=0,zt=/\blang(?:uage)?-([\w.]+)(?!\S)/,ze=/\bprettyprint\b/,Ve=/\bprettyprinted\b/,Et=/pre|xmp/i,Ot=/^code$/i,ut=/^(?:pre|code|xmp)$/i,vt={};function Ze(){for(var ke=x.PR_SHOULD_USE_CONTINUATION?ht.now()+250:Infinity;Ut<Ne.length&&ht.now()<ke;Ut++){for(var He=Ne[Ut],we=vt,Le=He;Le=Le.previousSibling;){var Pe=Le.nodeType,We=(Pe===7||Pe===8)&&Le.nodeValue;if(We?!/^\??prettify\b/.test(We):Pe!==3||/\S/.test(Le.nodeValue))break;if(We){we={},We.replace(/\b(\w+)=([\w:.%+-]+)/g,function(St,bt,Dt){we[bt]=Dt});break}}var Xe=He.className;if((we!==vt||ze.test(Xe))&&!Ve.test(Xe)){for(var gt=!1,Lt=He.parentNode;Lt;Lt=Lt.parentNode){var en=Lt.tagName;if(ut.test(en)&&Lt.className&&ze.test(Lt.className)){gt=!0;break}}if(!gt){He.className+=" prettyprinted";var Zt=we.lang;if(!Zt){Zt=Xe.match(zt);var xt;!Zt&&(xt=$(He))&&Ot.test(xt.tagName)&&(Zt=xt.className.match(zt)),Zt&&(Zt=Zt[1])}var Ct;if(Et.test(He.tagName))Ct=1;else{var pt=He.currentStyle,Je=he.defaultView,Qe=pt?pt.whiteSpace:Je&&Je.getComputedStyle?Je.getComputedStyle(He,null).getPropertyValue("white-space"):0;Ct=Qe&&Qe.substring(0,3)==="pre"}var Oe=we.linenums;(Oe=Oe==="true"||+Oe)||(Oe=Xe.match(/\blinenums\b(?::(\d+))?/),Oe=Oe?Oe[1]&&Oe[1].length?+Oe[1]:!0:!1),Oe&&ce(He,Oe,Ct);var je={langExtension:Zt,sourceNode:He,numberLines:Oe,pre:Ct,sourceCode:null,basePos:null,spans:null,decorations:null};le(je)}}}Ut<Ne.length?x.setTimeout(Ze,250):typeof xe=="function"&&xe()}Ze()}var pe=x.PR={createSimpleLexer:ee,registerLangHandler:se,sourceDecorator:fe,PR_ATTRIB_NAME:U,PR_ATTRIB_VALUE:N,PR_COMMENT:C,PR_DECLARATION:m,PR_KEYWORD:P,PR_LITERAL:l,PR_NOCODE:S,PR_PLAIN:g,PR_PUNCTUATION:A,PR_SOURCE:y,PR_STRING:w,PR_TAG:T,PR_TYPE:b,prettyPrintOne:I?x.prettyPrintOne=ge:O=ge,prettyPrint:M=I?x.prettyPrint=ae:M=ae},Me=x.define;typeof Me=="function"&&Me.amd&&Me("google-code-prettify",[],function(){return pe})})()},SKnc:function(Re,te,v){var Z=v("bYtY"),K=v("QuXc"),I=function(_,O,M,x,n,p){this.x=_==null?0:_,this.y=O==null?0:O,this.x2=M==null?1:M,this.y2=x==null?0:x,this.type="linear",this.global=p||!1,K.call(this,n)};I.prototype={constructor:I},Z.inherits(I,K);var k=I;Re.exports=k},SMhR:function(Re,te){Re.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAcYAAAHGCAYAAADuYispAAAAAklEQVR4AewaftIAABHTSURBVO3BQY4cy5IEQdNA3//KNo2/8NU8XzCQyCpSReivSJKk/zmRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNH7yMiB/s7a5AWTTNhsgN9pmA2TTNp8MyI22uQHkv7TNDSCbttkAudE2bwJyo22eBGTTNhsgf7O2ecuJJEkaJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpPGTD9c2nwzIk9pmA2TTNjeAPAnIpm1uANm0zQbIDSBPAXIDyKZtPhmQG22zAfLN2uaTAflUJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpHEiSZLGT74ckCe1zZOAbNpm0zYbIDfaZgPkRts8qW1utM0GyKZtntI2GyBPArJpmw2QTds8CcimbW4A+WRAntQ23+pEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0viJXtU2T2qbDZA3Adm0zZOAbNpm0zYbIJu2+VZtswGyaZsbbbMBsmmbDZBN29xoG32mE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjJ3oVkCe1zZPaZgNk0zYbIJu2eRKQJwF5S9vcAPIkIJu2uQFk0zY32kbf6USSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnS+MmXa5t/WdtsgGza5psB+WRt8xQgN4DcaJtv1jYbIDfa5pO1jf5/J5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpHEiSZLGTz4ckH9Z22yAbNpmA2TTNhsgm7bZANm0zQbIpm02QDZtswFyA8h/aZsbbbMBsmmbDZBN22yAbNpmA2TTNhsgm7bZALkBZNM2N4Doz5xIkqRxIkmSxokkSRonkiRpnEiSpHEiSZLGiSRJGvRX9LGAvKltNkA2bXMDyJvaZgNk0zZPAfLN2mYD5EbbPAnIk9pG7ziRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNH7y4YBs2uYGkE3bbIBs2mYD5Ebb/Mva5klAbgB5S9tsgGza5gaQDZBN2zwJyJPaZgNkA2TTNhsgN9pmA2TTNt/qRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdKgv/IPA3KjbW4AeVLb3ADyzdrmBpAntc2nAnKjbTZANm1zA8gna5sNkH9Z27zlRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdL4yZcDcqNtbgDZtM2mbTZANm1zA8imbTZANm1zA8iTgGza5gaQpwDZtM2NttkAudE2b2qbDZAbbbMB8qa20f/vRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdL4ycuA3GibDZANkBttswHyJCA32uZJQDZt8yQgTwKyaZsNkD/VNk8CsmmbDZA3tc0GyI222QDZtM0NIJu2eRKQTdt8qxNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ4yf/uLbZANkA2bTNDSBPAnKjbd7UNhsgN4Bs2uZG27wFyKZtbrTNBsimbW4AudE2N9pmA+RG29wAsmmbJwHZtM1bTiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNn3w5IJu2udE2N4DcaJsbQDZtswGyAfIvA7Jpmz8F5EbbPAnIpm1uANm0zZuAbNpm0zYbIBsgm7a5AeRJbfOpTiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNn3y4ttkAuQFk0zYbIDfa5gaQN7XNk4A8qW02QG4A+VNtswHyzdpmA+RJbfMkIJu2eVPbbIBs2uZvdSJJksaJJEkaJ5IkaZxIkqRxIkmSxokkSRonkiRp/ERX2kb/DcimbW4AuQFk0zYbIDfa5i1t8yYgm7a50TYbIN+sbW4A2bTNk4Bs2uYtJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpHEiSZLGT/5yQDZtswHypLbZAHlT29xomw2QTdvcAHIDyKdqmze1zZuAvKltNkCeBOSTAflWJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpHEiSZIG/ZUPBuRG22yAbNrmBpAbbbMBcqNtNkA2bbMBsmmbDZBN2zwJyFvaZgNk0zYbIDfaZgNk0zYbIG9qm08GZNM2GyCbttkA2bTNtzqRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNH7yMiBPAvIkIN8MyA0gm7bZALkB5Elt8yQgf6pt9N/aZgPkTUA2bbNpmycB+VedSJKkcSJJksaJJEkaJ5IkaZxIkqRxIkmSxokkSRr0V/5iQDZt882AbNrmBpBN22yAbNpmA+RG2zwJyKZt/hSQTds8CcimbW4A2bTNk4B8s7bZALnRNhsgm7bZANm0zVtOJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI2ffDggm7bZtM0GyJvaZgPkBpBN2zypbTZAbrTNBsimbZ4E5ClAbrTNNwOyaZsbbXMDyI222QDZtM0GyAbIDSCbtvlUJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpHEiSZIG/ZV/GJAbbbMB8qa22QDZtM0GyKZtbgDZtM0NIJu22QC50Tb/BciNttkAeVLbbIDcaJsNkE3bbIA8qW02QN7UNv+qE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjJy8DcqNt3gTkkwH5ZECeBOSTAXkKkE3bbIA8qW2e1DY32mYDZNM2GyD6TCeSJGmcSJKkcSJJksaJJEkaJ5IkaZxIkqRxIkmSxk++HJBN29xomycB2bTNm4Bs2mYD5JsBudE2TwGyaZsNkCcBudE2N4C8CciNtnkSkBtAbrTNpzqRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNH7ysrb5ZkA2bXMDyI22eRKQTds8CcimbTZANm2zAXIDyH9pmye1zQbIpm02QG4A+WRtswHyJCCbtnlT23yrE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0vjJy4A8qW2e1DZvapsbQDZtswFyA8imbTZtc6Nt3tQ2TwGyaZtN22yA3GibDZBN22yAPAnIm9rmSUA2bbMBcqNt3nIiSZLGiSRJGieSJGmcSJKkcSJJksaJJEkaJ5IkadBf+WBANm2zAfLN2mYD5Ebb3AByo202QPSOttkA2bTNm4Bs2uYGEP25tvlUJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpHEiSZIG/ZUXAbnRNjeA3GibG0ButM03A/LJ2mYDZNM2fwrIJ2ubG0A2bXMDyI22uQFk0zY3gNxomxtANm3zrU4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkDforLwKyaZsNkE3bPAnIpm02QJ7UNk8CcqNtNkButM0GyJPaZgPkT7XNBsiNttkA+Ze1zQ0gN9pmA+RNbbMBsmmbt5xIkqRxIkmSxokkSRonkiRpnEiSpHEiSZLGiSRJGvRX/mJANm3zzYDcaJsbQG60zQ0gm7a5AeRJbfMWIE9qmw2QG22zAXKjbTZANm2zAfKktrkB5E1t85YTSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeMnLwOyaZsbbbMB8qa2udE2GyBvapsNkE3bbNrmTW2zAbIB8l/a5kltswHypLZ5U9s8CciNtnkSkE3b/KtOJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI2fvKxtbgDZtM2NtvlmbbMB8iQgTwKyaZsNkG8F5Elt8yYgm7Z5EpBN2zwJyCcDcqNtPtWJJEkaJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpPGTDwdk0zY32uYGkE3b3ACyaZtP1jZvArJpmw2QDZBN22yA/Bcgm7bZALkB5Ebb6L8B2bTNDSCbttkAudE2GyCbtnnLiSRJGieSJGmcSJKkcSJJksaJJEkaJ5IkaZxIkqRBf+UvBmTTNhsgm7a5AeSTtc2TgNxomw2QG22zAbJpmz8F5EbbbIC8qW2+GZBN2zwJyKZtNkButM0GyI22ecuJJEkaJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpEF/5UVAbrTNk4DcaJsNkG/WNk8C8qS22QDZtM0GyKZtPhWQN7XNk4Bs2mYD5Elt8yQgN9rmb3UiSZLGiSRJGieSJGmcSJKkcSJJksaJJEkaJ5IkadBfeRGQN7XNk4Bs2uabAdm0zQbIm9rmUwHZtM0GyI222QB5U9tsgDypbZ4EZNM2bwKyaZtvdSJJksaJJEkaJ5IkaZxIkqRxIkmSxokkSRonkiRp/OTDtc0GyJOA3GibDZAbbXMDyKZtntQ23wzIjbb5L21zo21uALnRNhsgn6xtNkA2bfMmIG8CsmmbT3UiSZLGiSRJGieSJGmcSJKkcSJJksaJJEkaJ5IkadBf+WBANm2zAbJpmw2QTdv8y4DcaJsbQDZtswFyo202QDZt8xQgm7a5AeRG23wzIDfa5k1ANm1zA8iNtnnLiSRJGieSJGmcSJKkcSJJksaJJEkaJ5IkaZxIkqTxk79c2zwJyI222QDZtM2TgGzaZgNkA+RNbbMBcqNtNkD+VNvcALJpmzcB2bTNBsimbT4ZkE3bvAnIpm2+1YkkSRonkiRpnEiSpHEiSZLGiSRJGieSJGmcSJKkQX/lgwF5Uts8CciNtrkB5EltcwPIjbbZANm0zQbIp2qbJwHZtM0NIG9qmzcB2bTNBsiNttkAeVLbfKoTSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSYP+youAPKltngRk0zY3gGza5klAntQ2N4A8qW02QL5V22yAfLK22QC50TYbIJu22QD5Zm2zAXKjbd5yIkmSxokkSRonkiRpnEiSpHEiSZLGiSRJGieSJGnQX9FrgGzaZgNk0zYbIDfaZgNk0zYbIJu22QDZtM0NIJu2eQqQG21zA8imbTZANm3zJiBvapsnAbnRNn+rE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjJy8D8jdrm03b3GibDZA3tc2NtnkSkDcB+S9tc6NtntQ2N9rmBpAbbXOjbW4AuQFk0zZPAnKjbT7ViSRJGieSJGmcSJKkcSJJksaJJEkaJ5IkaZxIkqTxkw/XNp8MyJOAbNrmRts8CcimbT5Z22yA3GibpwDZtM0NIJ+sbTZAbgB5U9s8qW02QDZt861OJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI2ffDkgT2qbJwF5UttsgLwJyJPa5gaQG0De0jY3gGza5gaQG22zAXKjbZ4EZAPkTUBuANm0zac6kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjR+ole1zZvaZgPkRtvcAPIkIJu22QDZtM3fCsiNttkAudE2TwKyaZtN22yAbNrmBpAbbbMBsgGyaZu3nEiSpHEiSZLGiSRJGieSJGmcSJKkcSJJksaJJEkaP9FHA3KjbTZAngRk0zafDMiTgPyptrkB5Eltc6Nt3gTkTW1zA8imbZ7UNt/qRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdL4yZdrm28G5JO1zQ0gN9pmA2QDZNM2GyCbtrnRNk8BcqNtNkA2QN7UNhsgTwKyaZsNkE3bvAnIjbb5VCeSJGmcSJKkcSJJksaJJEkaJ5IkaZxIkqRxIkmSBv2VFwH5m7XNk4Bs2uZJQJ7UNjeA3GibTwXkRttsgNxomw2QG22zAXKjbW4AeVLbbIDcaJsNkCe1zVtOJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJA36K5Ik6X9OJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ4/8ATrCgy9kbxW8AAAAASUVORK5CYII="},SUKs:function(Re,te,v){var Z=v("LPTA"),K=Z.debugMode,I=function(){};K===1&&(I=console.error);var k=I;Re.exports=k},Sj9i:function(Re,te,v){var Z=v("QBsz"),K=Z.create,I=Z.distSquare,k=Math.pow,_=Math.sqrt,O=1e-8,M=1e-4,x=_(3),n=1/3,p=K(),a=K(),t=K();function h(l){return l>-O&&l<O}function s(l){return l>O||l<-O}function i(l,A,g,T,m){var y=1-m;return y*y*(y*l+3*m*A)+m*m*(m*T+3*y*g)}function u(l,A,g,T,m){var y=1-m;return 3*(((A-l)*y+2*(g-A)*m)*y+(T-g)*m*m)}function d(l,A,g,T,m,y){var U=T+3*(A-g)-l,N=3*(g-A*2+l),S=3*(A-l),H=l-m,F=N*N-3*U*S,R=N*S-9*U*H,z=S*S-3*N*H,Q=0;if(h(F)&&h(R))if(h(N))y[0]=0;else{var $=-S/N;$>=0&&$<=1&&(y[Q++]=$)}else{var ee=R*R-4*F*z;if(h(ee)){var fe=R/F,$=-N/U+fe,Ae=-fe/2;$>=0&&$<=1&&(y[Q++]=$),Ae>=0&&Ae<=1&&(y[Q++]=Ae)}else if(ee>0){var ce=_(ee),ie=F*N+1.5*U*(-R+ce),be=F*N+1.5*U*(-R-ce);ie<0?ie=-k(-ie,n):ie=k(ie,n),be<0?be=-k(-be,n):be=k(be,n);var $=(-N-(ie+be))/(3*U);$>=0&&$<=1&&(y[Q++]=$)}else{var se=(2*F*N-3*U*R)/(2*_(F*F*F)),me=Math.acos(se)/3,le=_(F),ge=Math.cos(me),$=(-N-2*le*ge)/(3*U),Ae=(-N+le*(ge+x*Math.sin(me)))/(3*U),ae=(-N+le*(ge-x*Math.sin(me)))/(3*U);$>=0&&$<=1&&(y[Q++]=$),Ae>=0&&Ae<=1&&(y[Q++]=Ae),ae>=0&&ae<=1&&(y[Q++]=ae)}}return Q}function f(l,A,g,T,m){var y=6*g-12*A+6*l,U=9*A+3*T-3*l-9*g,N=3*A-3*l,S=0;if(h(U)){if(s(y)){var H=-N/y;H>=0&&H<=1&&(m[S++]=H)}}else{var F=y*y-4*U*N;if(h(F))m[0]=-y/(2*U);else if(F>0){var R=_(F),H=(-y+R)/(2*U),z=(-y-R)/(2*U);H>=0&&H<=1&&(m[S++]=H),z>=0&&z<=1&&(m[S++]=z)}}return S}function o(l,A,g,T,m,y){var U=(A-l)*m+l,N=(g-A)*m+A,S=(T-g)*m+g,H=(N-U)*m+U,F=(S-N)*m+N,R=(F-H)*m+H;y[0]=l,y[1]=U,y[2]=H,y[3]=R,y[4]=R,y[5]=F,y[6]=S,y[7]=T}function c(l,A,g,T,m,y,U,N,S,H,F){var R,z=.005,Q=Infinity,$,ee,fe,Ae;p[0]=S,p[1]=H;for(var ce=0;ce<1;ce+=.05)a[0]=i(l,g,m,U,ce),a[1]=i(A,T,y,N,ce),fe=I(p,a),fe<Q&&(R=ce,Q=fe);Q=Infinity;for(var ie=0;ie<32&&!(z<M);ie++)$=R-z,ee=R+z,a[0]=i(l,g,m,U,$),a[1]=i(A,T,y,N,$),fe=I(a,p),$>=0&&fe<Q?(R=$,Q=fe):(t[0]=i(l,g,m,U,ee),t[1]=i(A,T,y,N,ee),Ae=I(t,p),ee<=1&&Ae<Q?(R=ee,Q=Ae):z*=.5);return F&&(F[0]=i(l,g,m,U,R),F[1]=i(A,T,y,N,R)),_(Q)}function E(l,A,g,T){var m=1-T;return m*(m*l+2*T*A)+T*T*g}function B(l,A,g,T){return 2*((1-T)*(A-l)+T*(g-A))}function w(l,A,g,T,m){var y=l-2*A+g,U=2*(A-l),N=l-T,S=0;if(h(y)){if(s(U)){var H=-N/U;H>=0&&H<=1&&(m[S++]=H)}}else{var F=U*U-4*y*N;if(h(F)){var H=-U/(2*y);H>=0&&H<=1&&(m[S++]=H)}else if(F>0){var R=_(F),H=(-U+R)/(2*y),z=(-U-R)/(2*y);H>=0&&H<=1&&(m[S++]=H),z>=0&&z<=1&&(m[S++]=z)}}return S}function P(l,A,g){var T=l+g-2*A;return T===0?.5:(l-A)/T}function C(l,A,g,T,m){var y=(A-l)*T+l,U=(g-A)*T+A,N=(U-y)*T+y;m[0]=l,m[1]=y,m[2]=N,m[3]=N,m[4]=U,m[5]=g}function b(l,A,g,T,m,y,U,N,S){var H,F=.005,R=Infinity;p[0]=U,p[1]=N;for(var z=0;z<1;z+=.05){a[0]=E(l,g,m,z),a[1]=E(A,T,y,z);var Q=I(p,a);Q<R&&(H=z,R=Q)}R=Infinity;for(var $=0;$<32&&!(F<M);$++){var ee=H-F,fe=H+F;a[0]=E(l,g,m,ee),a[1]=E(A,T,y,ee);var Q=I(a,p);if(ee>=0&&Q<R)H=ee,R=Q;else{t[0]=E(l,g,m,fe),t[1]=E(A,T,y,fe);var Ae=I(t,p);fe<=1&&Ae<R?(H=fe,R=Ae):F*=.5}}return S&&(S[0]=E(l,g,m,H),S[1]=E(A,T,y,H)),_(R)}te.cubicAt=i,te.cubicDerivativeAt=u,te.cubicRootAt=d,te.cubicExtrema=f,te.cubicSubdivide=o,te.cubicProjectPoint=c,te.quadraticAt=E,te.quadraticDerivativeAt=B,te.quadraticRootAt=w,te.quadraticExtremum=P,te.quadraticSubdivide=C,te.quadraticProjectPoint=b},SqI9:function(Re,te,v){var Z=v("y+Vt"),K=v("iXp4"),I=Z.extend({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:Math.PI*2,clockwise:!0},brush:K(Z.prototype.brush),buildPath:function(k,_){var O=_.cx,M=_.cy,x=Math.max(_.r0||0,0),n=Math.max(_.r,0),p=_.startAngle,a=_.endAngle,t=_.clockwise,h=Math.cos(p),s=Math.sin(p);k.moveTo(h*x+O,s*x+M),k.lineTo(h*n+O,s*n+M),k.arc(O,M,n,p,a,!t),k.lineTo(Math.cos(a)*x+O,Math.sin(a)*x+M),x!==0&&k.arc(O,M,x,a,p,t),k.closePath()}});Re.exports=I},SrGk:function(Re,te,v){var Z=v("hydK"),K=Z.createElement,I=v("bYtY"),k=v("y+Vt"),_=v("Dagg"),O=v("dqUG"),M=v("P47w"),x=M.path,n=M.image,p=M.text,a="0",t="1";function h(i,u,d,f,o){this._zrId=i,this._svgRoot=u,this._tagNames=typeof d=="string"?[d]:d,this._markLabel=f,this._domName=o||"_dom",this.nextId=0}h.prototype.createElement=K,h.prototype.getDefs=function(i){var u=this._svgRoot,d=this._svgRoot.getElementsByTagName("defs");return d.length===0?i?(d=u.insertBefore(this.createElement("defs"),u.firstChild),d.contains||(d.contains=function(f){var o=d.children;if(!o)return!1;for(var c=o.length-1;c>=0;--c)if(o[c]===f)return!0;return!1}),d):null:d[0]},h.prototype.update=function(i,u){if(!i)return;var d=this.getDefs(!1);if(i[this._domName]&&d.contains(i[this._domName]))typeof u=="function"&&u(i);else{var f=this.add(i);f&&(i[this._domName]=f)}},h.prototype.addDom=function(i){var u=this.getDefs(!0);u.appendChild(i)},h.prototype.removeDom=function(i){var u=this.getDefs(!1);u&&i[this._domName]&&(u.removeChild(i[this._domName]),i[this._domName]=null)},h.prototype.getDoms=function(){var i=this.getDefs(!1);if(!i)return[];var u=[];return I.each(this._tagNames,function(d){var f=i.getElementsByTagName(d);u=u.concat([].slice.call(f))}),u},h.prototype.markAllUnused=function(){var i=this.getDoms(),u=this;I.each(i,function(d){d[u._markLabel]=a})},h.prototype.markUsed=function(i){i&&(i[this._markLabel]=t)},h.prototype.removeUnused=function(){var i=this.getDefs(!1);if(!i)return;var u=this.getDoms(),d=this;I.each(u,function(f){f[d._markLabel]!==t&&i.removeChild(f)})},h.prototype.getSvgProxy=function(i){return i instanceof k?x:i instanceof _?n:i instanceof O?p:x},h.prototype.getTextSvgElement=function(i){return i.__textSvgEl},h.prototype.getSvgElement=function(i){return i.__svgEl};var s=h;Re.exports=s},T6xi:function(Re,te,v){var Z=v("YgsL"),K=v("nCxF");function I(k,_,O){var M=_.points,x=_.smooth;if(M&&M.length>=2){if(x&&x!=="spline"){var n=K(M,x,O,_.smoothConstraint);k.moveTo(M[0][0],M[0][1]);for(var p=M.length,a=0;a<(O?p:p-1);a++){var t=n[a*2],h=n[a*2+1],s=M[(a+1)%p];k.bezierCurveTo(t[0],t[1],h[0],h[1],s[0],s[1])}}else{x==="spline"&&(M=Z(M,O)),k.moveTo(M[0][0],M[0][1]);for(var a=1,i=M.length;a<i;a++)k.lineTo(M[a][0],M[a][1])}O&&k.closePath()}}te.buildPath=I},T8No:function(Re,te,v){"use strict";v.d(te,"a",function(){return M}),v.d(te,"e",function(){return x}),v.d(te,"c",function(){return A}),v.d(te,"b",function(){return g}),v.d(te,"d",function(){return T}),v.d(te,"f",function(){return U});var Z=v("MNsG"),K=v("N0LK"),I=v("Cg/j");let k=Z.k||"";const _=new Map;_.set("false",!1),_.set("true",!0),_.set("isMac",Z.f),_.set("isLinux",Z.d),_.set("isWindows",Z.i),_.set("isWeb",Z.h),_.set("isMacNative",Z.f&&!Z.h),_.set("isEdge",k.indexOf("Edg/")>=0),_.set("isFirefox",k.indexOf("Firefox")>=0),_.set("isChrome",k.indexOf("Chrome")>=0),_.set("isSafari",k.indexOf("Safari")>=0);const O=Object.prototype.hasOwnProperty;class M{static has(S){return t.create(S)}static equals(S,H){return h.create(S,H)}static regex(S,H){return w.create(S,H)}static not(S){return d.create(S)}static and(...S){return b.create(S,null)}static or(...S){return l.create(S,null,!0)}static deserialize(S,H=!1){return S?this._deserializeOrExpression(S,H):void 0}static _deserializeOrExpression(S,H){let F=S.split("||");return l.create(F.map(R=>this._deserializeAndExpression(R,H)),null,!0)}static _deserializeAndExpression(S,H){let F=S.split("&&");return b.create(F.map(R=>this._deserializeOne(R,H)),null)}static _deserializeOne(S,H){if(S=S.trim(),S.indexOf("!=")>=0){let F=S.split("!=");return u.create(F[0].trim(),this._deserializeValue(F[1],H))}if(S.indexOf("==")>=0){let F=S.split("==");return h.create(F[0].trim(),this._deserializeValue(F[1],H))}if(S.indexOf("=~")>=0){let F=S.split("=~");return w.create(F[0].trim(),this._deserializeRegexValue(F[1],H))}if(S.indexOf(" in ")>=0){let F=S.split(" in ");return s.create(F[0].trim(),F[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(S)){const F=S.split(">=");return c.create(F[0].trim(),F[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(S)){const F=S.split(">");return o.create(F[0].trim(),F[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(S)){const F=S.split("<=");return B.create(F[0].trim(),F[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(S)){const F=S.split("<");return E.create(F[0].trim(),F[1].trim())}return/^\!\s*/.test(S)?d.create(S.substr(1).trim()):t.create(S)}static _deserializeValue(S,H){if(S=S.trim(),S==="true")return!0;if(S==="false")return!1;let F=/^'([^']*)'$/.exec(S);return F?F[1].trim():S}static _deserializeRegexValue(S,H){if(Object(K.C)(S)){if(H)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let F=S.indexOf("/"),R=S.lastIndexOf("/");if(F===R||F<0){if(H)throw new Error(`bad regexp-value '${S}', missing /-enclosure`);return console.warn(`bad regexp-value '${S}', missing /-enclosure`),null}let z=S.slice(F+1,R),Q=S[R+1]==="i"?"i":"";try{return new RegExp(z,Q)}catch($){if(H)throw new Error(`bad regexp-value '${S}', parse error: ${$}`);return console.warn(`bad regexp-value '${S}', parse error: ${$}`),null}}}function x(S,H){const F=S?S.substituteConstants():void 0,R=H?H.substituteConstants():void 0;return!F&&!R?!0:!F||!R?!1:F.equals(R)}function n(S,H){return S.cmp(H)}class p{constructor(){this.type=0}cmp(S){return this.type-S.type}equals(S){return S.type===this.type}substituteConstants(){return this}evaluate(S){return!1}serialize(){return"false"}keys(){return[]}negate(){return a.INSTANCE}}p.INSTANCE=new p;class a{constructor(){this.type=1}cmp(S){return this.type-S.type}equals(S){return S.type===this.type}substituteConstants(){return this}evaluate(S){return!0}serialize(){return"true"}keys(){return[]}negate(){return p.INSTANCE}}a.INSTANCE=new a;class t{constructor(S,H){this.key=S,this.negated=H,this.type=2}static create(S,H=null){const F=_.get(S);return typeof F=="boolean"?F?a.INSTANCE:p.INSTANCE:new t(S,H)}cmp(S){return S.type!==this.type?this.type-S.type:m(this.key,S.key)}equals(S){return S.type===this.type?this.key===S.key:!1}substituteConstants(){const S=_.get(this.key);return typeof S=="boolean"?S?a.INSTANCE:p.INSTANCE:this}evaluate(S){return!!S.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=d.create(this.key,this)),this.negated}}class h{constructor(S,H,F){this.key=S,this.value=H,this.negated=F,this.type=4}static create(S,H,F=null){if(typeof H=="boolean")return H?t.create(S,F):d.create(S,F);const R=_.get(S);if(typeof R=="boolean"){const z=R?"true":"false";return H===z?a.INSTANCE:p.INSTANCE}return new h(S,H,F)}cmp(S){return S.type!==this.type?this.type-S.type:y(this.key,this.value,S.key,S.value)}equals(S){return S.type===this.type?this.key===S.key&&this.value===S.value:!1}substituteConstants(){const S=_.get(this.key);if(typeof S=="boolean"){const H=S?"true":"false";return this.value===H?a.INSTANCE:p.INSTANCE}return this}evaluate(S){return S.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=u.create(this.key,this.value,this)),this.negated}}class s{constructor(S,H){this.key=S,this.valueKey=H,this.type=10,this.negated=null}static create(S,H){return new s(S,H)}cmp(S){return S.type!==this.type?this.type-S.type:y(this.key,this.valueKey,S.key,S.valueKey)}equals(S){return S.type===this.type?this.key===S.key&&this.valueKey===S.valueKey:!1}substituteConstants(){return this}evaluate(S){const H=S.getValue(this.valueKey),F=S.getValue(this.key);return Array.isArray(H)?H.indexOf(F)>=0:typeof F=="string"&&typeof H=="object"&&H!==null?O.call(H,F):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=i.create(this)),this.negated}}class i{constructor(S){this._actual=S,this.type=11}static create(S){return new i(S)}cmp(S){return S.type!==this.type?this.type-S.type:this._actual.cmp(S._actual)}equals(S){return S.type===this.type?this._actual.equals(S._actual):!1}substituteConstants(){return this}evaluate(S){return!this._actual.evaluate(S)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class u{constructor(S,H,F){this.key=S,this.value=H,this.negated=F,this.type=5}static create(S,H,F=null){if(typeof H=="boolean")return H?d.create(S,F):t.create(S,F);const R=_.get(S);if(typeof R=="boolean"){const z=R?"true":"false";return H===z?p.INSTANCE:a.INSTANCE}return new u(S,H,F)}cmp(S){return S.type!==this.type?this.type-S.type:y(this.key,this.value,S.key,S.value)}equals(S){return S.type===this.type?this.key===S.key&&this.value===S.value:!1}substituteConstants(){const S=_.get(this.key);if(typeof S=="boolean"){const H=S?"true":"false";return this.value===H?p.INSTANCE:a.INSTANCE}return this}evaluate(S){return S.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=h.create(this.key,this.value,this)),this.negated}}class d{constructor(S,H){this.key=S,this.negated=H,this.type=3}static create(S,H=null){const F=_.get(S);return typeof F=="boolean"?F?p.INSTANCE:a.INSTANCE:new d(S,H)}cmp(S){return S.type!==this.type?this.type-S.type:m(this.key,S.key)}equals(S){return S.type===this.type?this.key===S.key:!1}substituteConstants(){const S=_.get(this.key);return typeof S=="boolean"?S?p.INSTANCE:a.INSTANCE:this}evaluate(S){return!S.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=t.create(this.key,this)),this.negated}}function f(S,H){if(typeof S=="string"){const F=parseFloat(S);isNaN(F)||(S=F)}return typeof S=="string"||typeof S=="number"?H(S):p.INSTANCE}class o{constructor(S,H,F){this.key=S,this.value=H,this.negated=F,this.type=12}static create(S,H,F=null){return f(H,R=>new o(S,R,F))}cmp(S){return S.type!==this.type?this.type-S.type:y(this.key,this.value,S.key,S.value)}equals(S){return S.type===this.type?this.key===S.key&&this.value===S.value:!1}substituteConstants(){return this}evaluate(S){return typeof this.value=="string"?!1:parseFloat(S.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=B.create(this.key,this.value,this)),this.negated}}class c{constructor(S,H,F){this.key=S,this.value=H,this.negated=F,this.type=13}static create(S,H,F=null){return f(H,R=>new c(S,R,F))}cmp(S){return S.type!==this.type?this.type-S.type:y(this.key,this.value,S.key,S.value)}equals(S){return S.type===this.type?this.key===S.key&&this.value===S.value:!1}substituteConstants(){return this}evaluate(S){return typeof this.value=="string"?!1:parseFloat(S.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=E.create(this.key,this.value,this)),this.negated}}class E{constructor(S,H,F){this.key=S,this.value=H,this.negated=F,this.type=14}static create(S,H,F=null){return f(H,R=>new E(S,R,F))}cmp(S){return S.type!==this.type?this.type-S.type:y(this.key,this.value,S.key,S.value)}equals(S){return S.type===this.type?this.key===S.key&&this.value===S.value:!1}substituteConstants(){return this}evaluate(S){return typeof this.value=="string"?!1:parseFloat(S.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=c.create(this.key,this.value,this)),this.negated}}class B{constructor(S,H,F){this.key=S,this.value=H,this.negated=F,this.type=15}static create(S,H,F=null){return f(H,R=>new B(S,R,F))}cmp(S){return S.type!==this.type?this.type-S.type:y(this.key,this.value,S.key,S.value)}equals(S){return S.type===this.type?this.key===S.key&&this.value===S.value:!1}substituteConstants(){return this}evaluate(S){return typeof this.value=="string"?!1:parseFloat(S.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=o.create(this.key,this.value,this)),this.negated}}class w{constructor(S,H){this.key=S,this.regexp=H,this.type=7,this.negated=null}static create(S,H){return new w(S,H)}cmp(S){if(S.type!==this.type)return this.type-S.type;if(this.key<S.key)return-1;if(this.key>S.key)return 1;const H=this.regexp?this.regexp.source:"",F=S.regexp?S.regexp.source:"";return H<F?-1:H>F?1:0}equals(S){if(S.type===this.type){const H=this.regexp?this.regexp.source:"",F=S.regexp?S.regexp.source:"";return this.key===S.key&&H===F}return!1}substituteConstants(){return this}evaluate(S){let H=S.getValue(this.key);return this.regexp?this.regexp.test(H):!1}serialize(){const S=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${S}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=P.create(this)),this.negated}}class P{constructor(S){this._actual=S,this.type=8}static create(S){return new P(S)}cmp(S){return S.type!==this.type?this.type-S.type:this._actual.cmp(S._actual)}equals(S){return S.type===this.type?this._actual.equals(S._actual):!1}substituteConstants(){return this}evaluate(S){return!this._actual.evaluate(S)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function C(S){let H=null;for(let F=0,R=S.length;F<R;F++){const z=S[F].substituteConstants();if(S[F]!==z&&H===null){H=[];for(let Q=0;Q<F;Q++)H[Q]=S[Q]}H!==null&&(H[F]=z)}return H===null?S:H}class b{constructor(S,H){this.expr=S,this.negated=H,this.type=6}static create(S,H){return b._normalizeArr(S,H)}cmp(S){if(S.type!==this.type)return this.type-S.type;if(this.expr.length<S.expr.length)return-1;if(this.expr.length>S.expr.length)return 1;for(let H=0,F=this.expr.length;H<F;H++){const R=n(this.expr[H],S.expr[H]);if(R!==0)return R}return 0}equals(S){if(S.type===this.type){if(this.expr.length!==S.expr.length)return!1;for(let H=0,F=this.expr.length;H<F;H++)if(!this.expr[H].equals(S.expr[H]))return!1;return!0}return!1}substituteConstants(){const S=C(this.expr);return S===this.expr?this:b.create(S,this.negated)}evaluate(S){for(let H=0,F=this.expr.length;H<F;H++)if(!this.expr[H].evaluate(S))return!1;return!0}static _normalizeArr(S,H){const F=[];let R=!1;for(const z of S){if(!z)continue;if(z.type===1){R=!0;continue}if(z.type===0)return p.INSTANCE;if(z.type===6){F.push(...z.expr);continue}F.push(z)}if(F.length===0&&R)return a.INSTANCE;if(F.length===0)return;if(F.length===1)return F[0];F.sort(n);for(let z=1;z<F.length;z++)F[z-1].equals(F[z])&&(F.splice(z,1),z--);if(F.length===1)return F[0];for(;F.length>1;){const z=F[F.length-1];if(z.type!==9)break;F.pop();const Q=F.pop(),$=F.length===0,ee=l.create(z.expr.map(fe=>b.create([fe,Q],null)),null,$);ee&&(F.push(ee),F.sort(n))}return F.length===1?F[0]:new b(F,H)}serialize(){return this.expr.map(S=>S.serialize()).join(" && ")}keys(){const S=[];for(let H of this.expr)S.push(...H.keys());return S}negate(){if(!this.negated){const S=[];for(let H of this.expr)S.push(H.negate());this.negated=l.create(S,this,!0)}return this.negated}}class l{constructor(S,H){this.expr=S,this.negated=H,this.type=9}static create(S,H,F){return l._normalizeArr(S,H,F)}cmp(S){if(S.type!==this.type)return this.type-S.type;if(this.expr.length<S.expr.length)return-1;if(this.expr.length>S.expr.length)return 1;for(let H=0,F=this.expr.length;H<F;H++){const R=n(this.expr[H],S.expr[H]);if(R!==0)return R}return 0}equals(S){if(S.type===this.type){if(this.expr.length!==S.expr.length)return!1;for(let H=0,F=this.expr.length;H<F;H++)if(!this.expr[H].equals(S.expr[H]))return!1;return!0}return!1}substituteConstants(){const S=C(this.expr);return S===this.expr?this:l.create(S,this.negated,!1)}evaluate(S){for(let H=0,F=this.expr.length;H<F;H++)if(this.expr[H].evaluate(S))return!0;return!1}static _normalizeArr(S,H,F){let R=[],z=!1;if(S){for(let Q=0,$=S.length;Q<$;Q++){const ee=S[Q];if(!ee)continue;if(ee.type===0){z=!0;continue}if(ee.type===1)return a.INSTANCE;if(ee.type===9){R=R.concat(ee.expr);continue}R.push(ee)}if(R.length===0&&z)return p.INSTANCE;R.sort(n)}if(R.length===0)return;if(R.length===1)return R[0];for(let Q=1;Q<R.length;Q++)R[Q-1].equals(R[Q])&&(R.splice(Q,1),Q--);if(R.length===1)return R[0];if(F){for(let Q=0;Q<R.length;Q++)for(let $=Q+1;$<R.length;$++)U(R[Q],R[$])&&(R.splice($,1),$--);if(R.length===1)return R[0]}return new l(R,H)}serialize(){return this.expr.map(S=>S.serialize()).join(" || ")}keys(){const S=[];for(let H of this.expr)S.push(...H.keys());return S}negate(){if(!this.negated){let S=[];for(let H of this.expr)S.push(H.negate());for(;S.length>1;){const H=S.shift(),F=S.shift(),R=[];for(const Q of N(H))for(const $ of N(F))R.push(b.create([Q,$],null));const z=S.length===0;S.unshift(l.create(R,null,z))}this.negated=S[0]}return this.negated}}class A extends t{constructor(S,H,F){super(S,null);this._defaultValue=H,typeof F=="object"?A._info.push(Object.assign(Object.assign({},F),{key:S})):F!==!0&&A._info.push({key:S,description:F,type:H!=null?typeof H:void 0})}static all(){return A._info.values()}bindTo(S){return S.createKey(this.key,this._defaultValue)}getValue(S){return S.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(S){return h.create(this.key,S)}}A._info=[];const g=Object(I.c)("contextKeyService"),T="setContext";function m(S,H){return S<H?-1:S>H?1:0}function y(S,H,F,R){return S<F?-1:S>F?1:H<R?-1:H>R?1:0}function U(S,H){if(H.type===6&&S.type!==9&&S.type!==6){for(const z of H.expr)if(S.equals(z))return!0}const F=S.negate(),R=N(F).concat(N(H));R.sort(n);for(let z=0;z<R.length;z++){const Q=R[z],$=Q.negate();for(let ee=z+1;ee<R.length;ee++){const fe=R[ee];if($.equals(fe))return!0}}return!1}function N(S){return S.type===9?S.expr:[S]}},TGq3:function(Re,te,v){Re.exports=v.p+"static/lockclose.365036e8.svg"},TXwP:function(Re,te,v){var Z,K;(function(){var I;(function(){"use strict";var _=[,,function(n){function p(h){this.__parent=h,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}p.prototype.clone_empty=function(){var h=new p(this.__parent);return h.set_indent(this.__indent_count,this.__alignment_count),h},p.prototype.item=function(h){return h<0?this.__items[this.__items.length+h]:this.__items[h]},p.prototype.has_match=function(h){for(var s=this.__items.length-1;s>=0;s--)if(this.__items[s].match(h))return!0;return!1},p.prototype.set_indent=function(h,s){this.is_empty()&&(this.__indent_count=h||0,this.__alignment_count=s||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},p.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},p.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},p.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var h=this.__parent.current_line;return h.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),h.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),h.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,h.__items[0]===" "&&(h.__items.splice(0,1),h.__character_count-=1),!0}return!1},p.prototype.is_empty=function(){return this.__items.length===0},p.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},p.prototype.push=function(h){this.__items.push(h);var s=h.lastIndexOf(`
|
|
`);s!==-1?this.__character_count=h.length-s:this.__character_count+=h.length},p.prototype.pop=function(){var h=null;return this.is_empty()||(h=this.__items.pop(),this.__character_count-=h.length),h},p.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},p.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},p.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},p.prototype.toString=function(){var h="";return this.is_empty()?this.__parent.indent_empty_lines&&(h=this.__parent.get_indent_string(this.__indent_count)):(h=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),h+=this.__items.join("")),h};function a(h,s){this.__cache=[""],this.__indent_size=h.indent_size,this.__indent_string=h.indent_char,h.indent_with_tabs||(this.__indent_string=new Array(h.indent_size+1).join(h.indent_char)),s=s||"",h.indent_level>0&&(s=new Array(h.indent_level+1).join(this.__indent_string)),this.__base_string=s,this.__base_string_length=s.length}a.prototype.get_indent_size=function(h,s){var i=this.__base_string_length;return s=s||0,h<0&&(i=0),i+=h*this.__indent_size,i+=s,i},a.prototype.get_indent_string=function(h,s){var i=this.__base_string;return s=s||0,h<0&&(h=0,i=""),s+=h*this.__indent_size,this.__ensure_cache(s),i+=this.__cache[s],i},a.prototype.__ensure_cache=function(h){for(;h>=this.__cache.length;)this.__add_column()},a.prototype.__add_column=function(){var h=this.__cache.length,s=0,i="";this.__indent_size&&h>=this.__indent_size&&(s=Math.floor(h/this.__indent_size),h-=s*this.__indent_size,i=new Array(s+1).join(this.__indent_string)),h&&(i+=new Array(h+1).join(" ")),this.__cache.push(i)};function t(h,s){this.__indent_cache=new a(h,s),this.raw=!1,this._end_with_newline=h.end_with_newline,this.indent_size=h.indent_size,this.wrap_line_length=h.wrap_line_length,this.indent_empty_lines=h.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new p(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}t.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},t.prototype.get_line_number=function(){return this.__lines.length},t.prototype.get_indent_string=function(h,s){return this.__indent_cache.get_indent_string(h,s)},t.prototype.get_indent_size=function(h,s){return this.__indent_cache.get_indent_size(h,s)},t.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},t.prototype.add_new_line=function(h){return this.is_empty()||!h&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},t.prototype.get_code=function(h){this.trim(!0);var s=this.current_line.pop();s&&(s[s.length-1]===`
|
|
`&&(s=s.replace(/\n+$/g,"")),this.current_line.push(s)),this._end_with_newline&&this.__add_outputline();var i=this.__lines.join(`
|
|
`);return h!==`
|
|
`&&(i=i.replace(/[\n]/g,h)),i},t.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},t.prototype.set_indent=function(h,s){return h=h||0,s=s||0,this.next_line.set_indent(h,s),this.__lines.length>1?(this.current_line.set_indent(h,s),!0):(this.current_line.set_indent(),!1)},t.prototype.add_raw_token=function(h){for(var s=0;s<h.newlines;s++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(h.whitespace_before),this.current_line.push(h.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},t.prototype.add_token=function(h){this.__add_space_before_token(),this.current_line.push(h),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},t.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(" "))},t.prototype.remove_indent=function(h){for(var s=this.__lines.length;h<s;)this.__lines[h]._remove_indent(),h++;this.current_line._remove_wrap_indent()},t.prototype.trim=function(h){for(h=h===void 0?!1:h,this.current_line.trim();h&&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},t.prototype.just_added_newline=function(){return this.current_line.is_empty()},t.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},t.prototype.ensure_empty_line_above=function(h,s){for(var i=this.__lines.length-2;i>=0;){var u=this.__lines[i];if(u.is_empty())break;if(u.item(0).indexOf(h)!==0&&u.item(-1)!==s){this.__lines.splice(i+1,0,new p(this)),this.previous_line=this.__lines[this.__lines.length-2];break}i--}},n.exports.Output=t},,,,function(n){function p(h,s){this.raw_options=a(h,s),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php","smarty"],["auto"])}p.prototype._get_array=function(h,s){var i=this.raw_options[h],u=s||[];return typeof i=="object"?i!==null&&typeof i.concat=="function"&&(u=i.concat()):typeof i=="string"&&(u=i.split(/[^a-zA-Z0-9_\/\-]+/)),u},p.prototype._get_boolean=function(h,s){var i=this.raw_options[h],u=i===void 0?!!s:!!i;return u},p.prototype._get_characters=function(h,s){var i=this.raw_options[h],u=s||"";return typeof i=="string"&&(u=i.replace(/\\r/,"\r").replace(/\\n/,`
|
|
`).replace(/\\t/," ")),u},p.prototype._get_number=function(h,s){var i=this.raw_options[h];s=parseInt(s,10),isNaN(s)&&(s=0);var u=parseInt(i,10);return isNaN(u)&&(u=s),u},p.prototype._get_selection=function(h,s,i){var u=this._get_selection_list(h,s,i);if(u.length!==1)throw new Error("Invalid Option Value: The option '"+h+`' can only be one of the following values:
|
|
`+s+`
|
|
You passed in: '`+this.raw_options[h]+"'");return u[0]},p.prototype._get_selection_list=function(h,s,i){if(!s||s.length===0)throw new Error("Selection list cannot be empty.");if(i=i||[s[0]],!this._is_valid_selection(i,s))throw new Error("Invalid Default Value!");var u=this._get_array(h,i);if(!this._is_valid_selection(u,s))throw new Error("Invalid Option Value: The option '"+h+`' can contain only the following values:
|
|
`+s+`
|
|
You passed in: '`+this.raw_options[h]+"'");return u},p.prototype._is_valid_selection=function(h,s){return h.length&&s.length&&!h.some(function(i){return s.indexOf(i)===-1})};function a(h,s){var i={};h=t(h);var u;for(u in h)u!==s&&(i[u]=h[u]);if(s&&h[s])for(u in h[s])i[u]=h[s][u];return i}function t(h){var s={},i;for(i in h){var u=i.replace(/-/g,"_");s[u]=h[i]}return s}n.exports.Options=p,n.exports.normalizeOpts=t,n.exports.mergeOpts=a},,function(n){var p=RegExp.prototype.hasOwnProperty("sticky");function a(t){this.__input=t||"",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 t=null;return this.hasNext()&&(t=this.__input.charAt(this.__position),this.__position+=1),t},a.prototype.peek=function(t){var h=null;return t=t||0,t+=this.__position,t>=0&&t<this.__input_length&&(h=this.__input.charAt(t)),h},a.prototype.__match=function(t,h){t.lastIndex=h;var s=t.exec(this.__input);return s&&!(p&&t.sticky)&&(s.index!==h&&(s=null)),s},a.prototype.test=function(t,h){return h=h||0,h+=this.__position,h>=0&&h<this.__input_length?!!this.__match(t,h):!1},a.prototype.testChar=function(t,h){var s=this.peek(h);return t.lastIndex=0,s!==null&&t.test(s)},a.prototype.match=function(t){var h=this.__match(t,this.__position);return h?this.__position+=h[0].length:h=null,h},a.prototype.read=function(t,h,s){var i="",u;return t&&(u=this.match(t),u&&(i+=u[0])),h&&(u||!t)&&(i+=this.readUntil(h,s)),i},a.prototype.readUntil=function(t,h){var s="",i=this.__position;t.lastIndex=this.__position;var u=t.exec(this.__input);return u?(i=u.index,h&&(i+=u[0].length)):i=this.__input_length,s=this.__input.substring(this.__position,i),this.__position=i,s},a.prototype.readUntilAfter=function(t){return this.readUntil(t,!0)},a.prototype.get_regexp=function(t,h){var s=null,i="g";return h&&p&&(i="y"),typeof t=="string"&&t!==""?s=new RegExp(t,i):t&&(s=new RegExp(t.source,i)),s},a.prototype.get_literal_regexp=function(t){return RegExp(t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},a.prototype.peekUntilAfter=function(t){var h=this.__position,s=this.readUntilAfter(t);return this.__position=h,s},a.prototype.lookBack=function(t){var h=this.__position-1;return h>=t.length&&this.__input.substring(h-t.length,h).toLowerCase()===t},n.exports.InputScanner=a},,,,,function(n){function p(a,t){a=typeof a=="string"?a:a.source,t=typeof t=="string"?t:t.source,this.__directives_block_pattern=new RegExp(a+/ beautify( \w+[:]\w+)+ /.source+t,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(a+/\sbeautify\signore:end\s/.source+t,"g")}p.prototype.get_directives=function(a){if(!a.match(this.__directives_block_pattern))return null;var t={};this.__directive_pattern.lastIndex=0;for(var h=this.__directive_pattern.exec(a);h;)t[h[1]]=h[2],h=this.__directive_pattern.exec(a);return t},p.prototype.readIgnored=function(a){return a.readUntilAfter(this.__directives_end_ignore_pattern)},n.exports.Directives=p},,function(n,p,a){var t=a(16).Beautifier,h=a(17).Options;function s(i,u){var d=new t(i,u);return d.beautify()}n.exports=s,n.exports.defaultOptions=function(){return new h}},function(n,p,a){var t=a(17).Options,h=a(2).Output,s=a(8).InputScanner,i=a(13).Directives,u=new i(/\/\*/,/\*\//),d=/\r\n|[\r\n]/,f=/\r\n|[\r\n]/g,o=/\s/,c=/(?:\s|\n)+/g,E=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,B=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function w(P,C){this._source_text=P||"",this._options=new t(C),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"]}w.prototype.eatString=function(P){var C="";for(this._ch=this._input.next();this._ch;){if(C+=this._ch,this._ch==="\\")C+=this._input.next();else if(P.indexOf(this._ch)!==-1||this._ch===`
|
|
`)break;this._ch=this._input.next()}return C},w.prototype.eatWhitespace=function(P){for(var C=o.test(this._input.peek()),b=0;o.test(this._input.peek());)this._ch=this._input.next(),P&&this._ch===`
|
|
`&&((b===0||b<this._options.max_preserve_newlines)&&(b++,this._output.add_new_line(!0)));return C},w.prototype.foundNestedPseudoClass=function(){for(var P=0,C=1,b=this._input.peek(C);b;){if(b==="{")return!0;if(b==="(")P+=1;else if(b===")"){if(P===0)return!1;P-=1}else if(b===";"||b==="}")return!1;C++,b=this._input.peek(C)}return!1},w.prototype.print_string=function(P){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(P)},w.prototype.preserveSingleSpace=function(P){P&&(this._output.space_before_token=!0)},w.prototype.indent=function(){this._indentLevel++},w.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},w.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var P=this._source_text,C=this._options.eol;C==="auto"&&(C=`
|
|
`,P&&d.test(P||"")&&(C=P.match(d)[0])),P=P.replace(f,`
|
|
`);var b=P.match(/^[\t ]*/)[0];this._output=new h(this._options,b),this._input=new s(P),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var l=0,A=!1,g=!1,T=!1,m=!1,y=!1,U=!1,N=this._ch,S=!1,H,F,R;H=this._input.read(c),F=H!=="",R=N,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),N=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var z=this._input.read(E),Q=u.get_directives(z);Q&&Q.ignore==="start"&&(z+=u.readIgnored(this._input)),this.print_string(z),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(B)),this.eatWhitespace(!0);else if(this._ch==="@"||this._ch==="$")if(this.preserveSingleSpace(F),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var $=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);$.match(/[ :]$/)&&($=this.eatString(": ").replace(/\s$/,""),this.print_string($),this._output.space_before_token=!0),$=$.replace(/\s$/,""),$==="extend"?m=!0:$==="import"&&(y=!0),$ in this.NESTED_AT_RULE?(this._nestedLevel+=1,$ in this.CONDITIONAL_GROUP_RULE&&(T=!0)):!A&&l===0&&$.indexOf(":")!==-1&&(g=!0,this.indent())}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(F),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")g&&(g=!1,this.outdent()),T?(T=!1,A=this._indentLevel>=this._nestedLevel):A=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&A&&(this._output.previous_line&&this._output.previous_line.item(-1)!=="{"&&this._output.ensure_empty_line_above("/",",")),this._output.space_before_token=!0,this._options.brace_style==="expand"?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(R==="("?this._output.space_before_token=!1:R!==","&&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(),R==="{"&&this._output.trim(!0),y=!1,m=!1,g&&(this.outdent(),g=!1),this.print_string(this._ch),A=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&(this._input.peek()!=="}"&&this._output.add_new_line(!0)),this._input.peek()===")"&&(this._output.trim(!0),this._options.brace_style==="expand"&&this._output.add_new_line(!0));else if(this._ch===":"){for(var ee=0;ee<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;ee++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[ee])){S=!0;break}(A||T)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!m&&l===0?(this.print_string(":"),g||(g=!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 fe=R==='"'||R==="'";this.preserveSingleSpace(fe||F),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")S=!1,l===0?(g&&(this.outdent(),g=!1),m=!1,y=!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(),l++,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(")")),l&&(l--,this.outdent()));else{var Ae=!1;this._input.lookBack("with")&&(Ae=!0),this.preserveSingleSpace(F||Ae),this.print_string(this._ch),g&&R==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),U=!0):(this.eatWhitespace(),l++,this.indent())}else if(this._ch===")")l&&(l--,this.outdent()),U&&this._input.peek()===";"&&this._options.selector_separator_newline&&(U=!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&&(!g||U)&&l===0&&!y&&!m?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!g&&l===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&&o.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(F),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),o.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 ce=R==='"'||R==="'";this.preserveSingleSpace(ce||F),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
|
|
`&&S&&this._output.add_new_line()}var ie=this._output.get_code(C);return ie},n.exports.Beautifier=w},function(n,p,a){var t=a(6).Options;function h(s){t.call(this,s,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var i=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||i;var u=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var d=0;d<u.length;d++)u[d]!=="expand"?this.brace_style="collapse":this.brace_style=u[d]}h.prototype=new t,n.exports.Options=h}],O={};function M(n){var p=O[n];if(p!==void 0)return p.exports;var a=O[n]={exports:{}};return _[n](a,a.exports,M),a.exports}var x=M(15);I=x})();var k=I;!(Z=[],K=function(){return{css_beautify:k}}.apply(te,Z),K!==void 0&&(Re.exports=K))})()},UZu5:function(Re,te,v){},Vhoy:function(Re,te,v){"use strict";v.d(te,"d",function(){return k}),v.d(te,"e",function(){return _}),v.d(te,"c",function(){return O}),v.d(te,"b",function(){return M}),v.d(te,"a",function(){return x});var Z=v("MI8n");class K{constructor(){this._icons=new Map,this._onDidRegister=new Z.b}add(n){const p=this._icons.get(n.id);p?n.description?p.description=n.description:console.error(`Duplicate registration of codicon ${n.id}`):(this._icons.set(n.id,n),this._onDidRegister.fire(n))}get(n){return this._icons.get(n)}get all(){return this._icons.values()}get onDidRegister(){return this._onDidRegister.event}}const I=new K,k=I;function _(n,p){return new M(n,p)}function O(n){return n?n.replace(/\$\((.*?)\)/g,(p,a)=>` ${a} `).trim():""}class M{constructor(n,p,a){this.id=n,this.definition=p,this.description=a,I.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var x;(function(n){n.iconNameSegment="[A-Za-z0-9]+",n.iconNameExpression="[A-Za-z0-9\\-]+",n.iconModifierExpression="~[A-Za-z]+";const p=new RegExp(`^(${n.iconNameExpression})(${n.iconModifierExpression})?$`);function a(s){if(s instanceof M)return["codicon","codicon-"+s.id];const i=p.exec(s.id);if(!i)return a(M.error);let[,u,d]=i;const f=["codicon","codicon-"+u];return d&&f.push("codicon-modifier-"+d.substr(1)),f}n.asClassNameArray=a;function t(s){return a(s).join(" ")}n.asClassName=t;function h(s){return"."+a(s).join(".")}n.asCSSSelector=h})(x||(x={})),function(n){n.add=new n("add",{fontCharacter:"\\ea60"}),n.plus=new n("plus",n.add.definition),n.gistNew=new n("gist-new",n.add.definition),n.repoCreate=new n("repo-create",n.add.definition),n.lightbulb=new n("lightbulb",{fontCharacter:"\\ea61"}),n.lightBulb=new n("light-bulb",{fontCharacter:"\\ea61"}),n.repo=new n("repo",{fontCharacter:"\\ea62"}),n.repoDelete=new n("repo-delete",{fontCharacter:"\\ea62"}),n.gistFork=new n("gist-fork",{fontCharacter:"\\ea63"}),n.repoForked=new n("repo-forked",{fontCharacter:"\\ea63"}),n.gitPullRequest=new n("git-pull-request",{fontCharacter:"\\ea64"}),n.gitPullRequestAbandoned=new n("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),n.recordKeys=new n("record-keys",{fontCharacter:"\\ea65"}),n.keyboard=new n("keyboard",{fontCharacter:"\\ea65"}),n.tag=new n("tag",{fontCharacter:"\\ea66"}),n.tagAdd=new n("tag-add",{fontCharacter:"\\ea66"}),n.tagRemove=new n("tag-remove",{fontCharacter:"\\ea66"}),n.person=new n("person",{fontCharacter:"\\ea67"}),n.personFollow=new n("person-follow",{fontCharacter:"\\ea67"}),n.personOutline=new n("person-outline",{fontCharacter:"\\ea67"}),n.personFilled=new n("person-filled",{fontCharacter:"\\ea67"}),n.gitBranch=new n("git-branch",{fontCharacter:"\\ea68"}),n.gitBranchCreate=new n("git-branch-create",{fontCharacter:"\\ea68"}),n.gitBranchDelete=new n("git-branch-delete",{fontCharacter:"\\ea68"}),n.sourceControl=new n("source-control",{fontCharacter:"\\ea68"}),n.mirror=new n("mirror",{fontCharacter:"\\ea69"}),n.mirrorPublic=new n("mirror-public",{fontCharacter:"\\ea69"}),n.star=new n("star",{fontCharacter:"\\ea6a"}),n.starAdd=new n("star-add",{fontCharacter:"\\ea6a"}),n.starDelete=new n("star-delete",{fontCharacter:"\\ea6a"}),n.starEmpty=new n("star-empty",{fontCharacter:"\\ea6a"}),n.comment=new n("comment",{fontCharacter:"\\ea6b"}),n.commentAdd=new n("comment-add",{fontCharacter:"\\ea6b"}),n.alert=new n("alert",{fontCharacter:"\\ea6c"}),n.warning=new n("warning",{fontCharacter:"\\ea6c"}),n.search=new n("search",{fontCharacter:"\\ea6d"}),n.searchSave=new n("search-save",{fontCharacter:"\\ea6d"}),n.logOut=new n("log-out",{fontCharacter:"\\ea6e"}),n.signOut=new n("sign-out",{fontCharacter:"\\ea6e"}),n.logIn=new n("log-in",{fontCharacter:"\\ea6f"}),n.signIn=new n("sign-in",{fontCharacter:"\\ea6f"}),n.eye=new n("eye",{fontCharacter:"\\ea70"}),n.eyeUnwatch=new n("eye-unwatch",{fontCharacter:"\\ea70"}),n.eyeWatch=new n("eye-watch",{fontCharacter:"\\ea70"}),n.circleFilled=new n("circle-filled",{fontCharacter:"\\ea71"}),n.primitiveDot=new n("primitive-dot",{fontCharacter:"\\ea71"}),n.closeDirty=new n("close-dirty",{fontCharacter:"\\ea71"}),n.debugBreakpoint=new n("debug-breakpoint",{fontCharacter:"\\ea71"}),n.debugBreakpointDisabled=new n("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),n.debugHint=new n("debug-hint",{fontCharacter:"\\ea71"}),n.primitiveSquare=new n("primitive-square",{fontCharacter:"\\ea72"}),n.edit=new n("edit",{fontCharacter:"\\ea73"}),n.pencil=new n("pencil",{fontCharacter:"\\ea73"}),n.info=new n("info",{fontCharacter:"\\ea74"}),n.issueOpened=new n("issue-opened",{fontCharacter:"\\ea74"}),n.gistPrivate=new n("gist-private",{fontCharacter:"\\ea75"}),n.gitForkPrivate=new n("git-fork-private",{fontCharacter:"\\ea75"}),n.lock=new n("lock",{fontCharacter:"\\ea75"}),n.mirrorPrivate=new n("mirror-private",{fontCharacter:"\\ea75"}),n.close=new n("close",{fontCharacter:"\\ea76"}),n.removeClose=new n("remove-close",{fontCharacter:"\\ea76"}),n.x=new n("x",{fontCharacter:"\\ea76"}),n.repoSync=new n("repo-sync",{fontCharacter:"\\ea77"}),n.sync=new n("sync",{fontCharacter:"\\ea77"}),n.clone=new n("clone",{fontCharacter:"\\ea78"}),n.desktopDownload=new n("desktop-download",{fontCharacter:"\\ea78"}),n.beaker=new n("beaker",{fontCharacter:"\\ea79"}),n.microscope=new n("microscope",{fontCharacter:"\\ea79"}),n.vm=new n("vm",{fontCharacter:"\\ea7a"}),n.deviceDesktop=new n("device-desktop",{fontCharacter:"\\ea7a"}),n.file=new n("file",{fontCharacter:"\\ea7b"}),n.fileText=new n("file-text",{fontCharacter:"\\ea7b"}),n.more=new n("more",{fontCharacter:"\\ea7c"}),n.ellipsis=new n("ellipsis",{fontCharacter:"\\ea7c"}),n.kebabHorizontal=new n("kebab-horizontal",{fontCharacter:"\\ea7c"}),n.mailReply=new n("mail-reply",{fontCharacter:"\\ea7d"}),n.reply=new n("reply",{fontCharacter:"\\ea7d"}),n.organization=new n("organization",{fontCharacter:"\\ea7e"}),n.organizationFilled=new n("organization-filled",{fontCharacter:"\\ea7e"}),n.organizationOutline=new n("organization-outline",{fontCharacter:"\\ea7e"}),n.newFile=new n("new-file",{fontCharacter:"\\ea7f"}),n.fileAdd=new n("file-add",{fontCharacter:"\\ea7f"}),n.newFolder=new n("new-folder",{fontCharacter:"\\ea80"}),n.fileDirectoryCreate=new n("file-directory-create",{fontCharacter:"\\ea80"}),n.trash=new n("trash",{fontCharacter:"\\ea81"}),n.trashcan=new n("trashcan",{fontCharacter:"\\ea81"}),n.history=new n("history",{fontCharacter:"\\ea82"}),n.clock=new n("clock",{fontCharacter:"\\ea82"}),n.folder=new n("folder",{fontCharacter:"\\ea83"}),n.fileDirectory=new n("file-directory",{fontCharacter:"\\ea83"}),n.symbolFolder=new n("symbol-folder",{fontCharacter:"\\ea83"}),n.logoGithub=new n("logo-github",{fontCharacter:"\\ea84"}),n.markGithub=new n("mark-github",{fontCharacter:"\\ea84"}),n.github=new n("github",{fontCharacter:"\\ea84"}),n.terminal=new n("terminal",{fontCharacter:"\\ea85"}),n.console=new n("console",{fontCharacter:"\\ea85"}),n.repl=new n("repl",{fontCharacter:"\\ea85"}),n.zap=new n("zap",{fontCharacter:"\\ea86"}),n.symbolEvent=new n("symbol-event",{fontCharacter:"\\ea86"}),n.error=new n("error",{fontCharacter:"\\ea87"}),n.stop=new n("stop",{fontCharacter:"\\ea87"}),n.variable=new n("variable",{fontCharacter:"\\ea88"}),n.symbolVariable=new n("symbol-variable",{fontCharacter:"\\ea88"}),n.array=new n("array",{fontCharacter:"\\ea8a"}),n.symbolArray=new n("symbol-array",{fontCharacter:"\\ea8a"}),n.symbolModule=new n("symbol-module",{fontCharacter:"\\ea8b"}),n.symbolPackage=new n("symbol-package",{fontCharacter:"\\ea8b"}),n.symbolNamespace=new n("symbol-namespace",{fontCharacter:"\\ea8b"}),n.symbolObject=new n("symbol-object",{fontCharacter:"\\ea8b"}),n.symbolMethod=new n("symbol-method",{fontCharacter:"\\ea8c"}),n.symbolFunction=new n("symbol-function",{fontCharacter:"\\ea8c"}),n.symbolConstructor=new n("symbol-constructor",{fontCharacter:"\\ea8c"}),n.symbolBoolean=new n("symbol-boolean",{fontCharacter:"\\ea8f"}),n.symbolNull=new n("symbol-null",{fontCharacter:"\\ea8f"}),n.symbolNumeric=new n("symbol-numeric",{fontCharacter:"\\ea90"}),n.symbolNumber=new n("symbol-number",{fontCharacter:"\\ea90"}),n.symbolStructure=new n("symbol-structure",{fontCharacter:"\\ea91"}),n.symbolStruct=new n("symbol-struct",{fontCharacter:"\\ea91"}),n.symbolParameter=new n("symbol-parameter",{fontCharacter:"\\ea92"}),n.symbolTypeParameter=new n("symbol-type-parameter",{fontCharacter:"\\ea92"}),n.symbolKey=new n("symbol-key",{fontCharacter:"\\ea93"}),n.symbolText=new n("symbol-text",{fontCharacter:"\\ea93"}),n.symbolReference=new n("symbol-reference",{fontCharacter:"\\ea94"}),n.goToFile=new n("go-to-file",{fontCharacter:"\\ea94"}),n.symbolEnum=new n("symbol-enum",{fontCharacter:"\\ea95"}),n.symbolValue=new n("symbol-value",{fontCharacter:"\\ea95"}),n.symbolRuler=new n("symbol-ruler",{fontCharacter:"\\ea96"}),n.symbolUnit=new n("symbol-unit",{fontCharacter:"\\ea96"}),n.activateBreakpoints=new n("activate-breakpoints",{fontCharacter:"\\ea97"}),n.archive=new n("archive",{fontCharacter:"\\ea98"}),n.arrowBoth=new n("arrow-both",{fontCharacter:"\\ea99"}),n.arrowDown=new n("arrow-down",{fontCharacter:"\\ea9a"}),n.arrowLeft=new n("arrow-left",{fontCharacter:"\\ea9b"}),n.arrowRight=new n("arrow-right",{fontCharacter:"\\ea9c"}),n.arrowSmallDown=new n("arrow-small-down",{fontCharacter:"\\ea9d"}),n.arrowSmallLeft=new n("arrow-small-left",{fontCharacter:"\\ea9e"}),n.arrowSmallRight=new n("arrow-small-right",{fontCharacter:"\\ea9f"}),n.arrowSmallUp=new n("arrow-small-up",{fontCharacter:"\\eaa0"}),n.arrowUp=new n("arrow-up",{fontCharacter:"\\eaa1"}),n.bell=new n("bell",{fontCharacter:"\\eaa2"}),n.bold=new n("bold",{fontCharacter:"\\eaa3"}),n.book=new n("book",{fontCharacter:"\\eaa4"}),n.bookmark=new n("bookmark",{fontCharacter:"\\eaa5"}),n.debugBreakpointConditionalUnverified=new n("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),n.debugBreakpointConditional=new n("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),n.debugBreakpointConditionalDisabled=new n("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),n.debugBreakpointDataUnverified=new n("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),n.debugBreakpointData=new n("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),n.debugBreakpointDataDisabled=new n("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),n.debugBreakpointLogUnverified=new n("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),n.debugBreakpointLog=new n("debug-breakpoint-log",{fontCharacter:"\\eaab"}),n.debugBreakpointLogDisabled=new n("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),n.briefcase=new n("briefcase",{fontCharacter:"\\eaac"}),n.broadcast=new n("broadcast",{fontCharacter:"\\eaad"}),n.browser=new n("browser",{fontCharacter:"\\eaae"}),n.bug=new n("bug",{fontCharacter:"\\eaaf"}),n.calendar=new n("calendar",{fontCharacter:"\\eab0"}),n.caseSensitive=new n("case-sensitive",{fontCharacter:"\\eab1"}),n.check=new n("check",{fontCharacter:"\\eab2"}),n.checklist=new n("checklist",{fontCharacter:"\\eab3"}),n.chevronDown=new n("chevron-down",{fontCharacter:"\\eab4"}),n.dropDownButton=new n("drop-down-button",n.chevronDown.definition),n.chevronLeft=new n("chevron-left",{fontCharacter:"\\eab5"}),n.chevronRight=new n("chevron-right",{fontCharacter:"\\eab6"}),n.chevronUp=new n("chevron-up",{fontCharacter:"\\eab7"}),n.chromeClose=new n("chrome-close",{fontCharacter:"\\eab8"}),n.chromeMaximize=new n("chrome-maximize",{fontCharacter:"\\eab9"}),n.chromeMinimize=new n("chrome-minimize",{fontCharacter:"\\eaba"}),n.chromeRestore=new n("chrome-restore",{fontCharacter:"\\eabb"}),n.circleOutline=new n("circle-outline",{fontCharacter:"\\eabc"}),n.debugBreakpointUnverified=new n("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),n.circleSlash=new n("circle-slash",{fontCharacter:"\\eabd"}),n.circuitBoard=new n("circuit-board",{fontCharacter:"\\eabe"}),n.clearAll=new n("clear-all",{fontCharacter:"\\eabf"}),n.clippy=new n("clippy",{fontCharacter:"\\eac0"}),n.closeAll=new n("close-all",{fontCharacter:"\\eac1"}),n.cloudDownload=new n("cloud-download",{fontCharacter:"\\eac2"}),n.cloudUpload=new n("cloud-upload",{fontCharacter:"\\eac3"}),n.code=new n("code",{fontCharacter:"\\eac4"}),n.collapseAll=new n("collapse-all",{fontCharacter:"\\eac5"}),n.colorMode=new n("color-mode",{fontCharacter:"\\eac6"}),n.commentDiscussion=new n("comment-discussion",{fontCharacter:"\\eac7"}),n.compareChanges=new n("compare-changes",{fontCharacter:"\\eafd"}),n.creditCard=new n("credit-card",{fontCharacter:"\\eac9"}),n.dash=new n("dash",{fontCharacter:"\\eacc"}),n.dashboard=new n("dashboard",{fontCharacter:"\\eacd"}),n.database=new n("database",{fontCharacter:"\\eace"}),n.debugContinue=new n("debug-continue",{fontCharacter:"\\eacf"}),n.debugDisconnect=new n("debug-disconnect",{fontCharacter:"\\ead0"}),n.debugPause=new n("debug-pause",{fontCharacter:"\\ead1"}),n.debugRestart=new n("debug-restart",{fontCharacter:"\\ead2"}),n.debugStart=new n("debug-start",{fontCharacter:"\\ead3"}),n.debugStepInto=new n("debug-step-into",{fontCharacter:"\\ead4"}),n.debugStepOut=new n("debug-step-out",{fontCharacter:"\\ead5"}),n.debugStepOver=new n("debug-step-over",{fontCharacter:"\\ead6"}),n.debugStop=new n("debug-stop",{fontCharacter:"\\ead7"}),n.debug=new n("debug",{fontCharacter:"\\ead8"}),n.deviceCameraVideo=new n("device-camera-video",{fontCharacter:"\\ead9"}),n.deviceCamera=new n("device-camera",{fontCharacter:"\\eada"}),n.deviceMobile=new n("device-mobile",{fontCharacter:"\\eadb"}),n.diffAdded=new n("diff-added",{fontCharacter:"\\eadc"}),n.diffIgnored=new n("diff-ignored",{fontCharacter:"\\eadd"}),n.diffModified=new n("diff-modified",{fontCharacter:"\\eade"}),n.diffRemoved=new n("diff-removed",{fontCharacter:"\\eadf"}),n.diffRenamed=new n("diff-renamed",{fontCharacter:"\\eae0"}),n.diff=new n("diff",{fontCharacter:"\\eae1"}),n.discard=new n("discard",{fontCharacter:"\\eae2"}),n.editorLayout=new n("editor-layout",{fontCharacter:"\\eae3"}),n.emptyWindow=new n("empty-window",{fontCharacter:"\\eae4"}),n.exclude=new n("exclude",{fontCharacter:"\\eae5"}),n.extensions=new n("extensions",{fontCharacter:"\\eae6"}),n.eyeClosed=new n("eye-closed",{fontCharacter:"\\eae7"}),n.fileBinary=new n("file-binary",{fontCharacter:"\\eae8"}),n.fileCode=new n("file-code",{fontCharacter:"\\eae9"}),n.fileMedia=new n("file-media",{fontCharacter:"\\eaea"}),n.filePdf=new n("file-pdf",{fontCharacter:"\\eaeb"}),n.fileSubmodule=new n("file-submodule",{fontCharacter:"\\eaec"}),n.fileSymlinkDirectory=new n("file-symlink-directory",{fontCharacter:"\\eaed"}),n.fileSymlinkFile=new n("file-symlink-file",{fontCharacter:"\\eaee"}),n.fileZip=new n("file-zip",{fontCharacter:"\\eaef"}),n.files=new n("files",{fontCharacter:"\\eaf0"}),n.filter=new n("filter",{fontCharacter:"\\eaf1"}),n.flame=new n("flame",{fontCharacter:"\\eaf2"}),n.foldDown=new n("fold-down",{fontCharacter:"\\eaf3"}),n.foldUp=new n("fold-up",{fontCharacter:"\\eaf4"}),n.fold=new n("fold",{fontCharacter:"\\eaf5"}),n.folderActive=new n("folder-active",{fontCharacter:"\\eaf6"}),n.folderOpened=new n("folder-opened",{fontCharacter:"\\eaf7"}),n.gear=new n("gear",{fontCharacter:"\\eaf8"}),n.gift=new n("gift",{fontCharacter:"\\eaf9"}),n.gistSecret=new n("gist-secret",{fontCharacter:"\\eafa"}),n.gist=new n("gist",{fontCharacter:"\\eafb"}),n.gitCommit=new n("git-commit",{fontCharacter:"\\eafc"}),n.gitCompare=new n("git-compare",{fontCharacter:"\\eafd"}),n.gitMerge=new n("git-merge",{fontCharacter:"\\eafe"}),n.githubAction=new n("github-action",{fontCharacter:"\\eaff"}),n.githubAlt=new n("github-alt",{fontCharacter:"\\eb00"}),n.globe=new n("globe",{fontCharacter:"\\eb01"}),n.grabber=new n("grabber",{fontCharacter:"\\eb02"}),n.graph=new n("graph",{fontCharacter:"\\eb03"}),n.gripper=new n("gripper",{fontCharacter:"\\eb04"}),n.heart=new n("heart",{fontCharacter:"\\eb05"}),n.home=new n("home",{fontCharacter:"\\eb06"}),n.horizontalRule=new n("horizontal-rule",{fontCharacter:"\\eb07"}),n.hubot=new n("hubot",{fontCharacter:"\\eb08"}),n.inbox=new n("inbox",{fontCharacter:"\\eb09"}),n.issueClosed=new n("issue-closed",{fontCharacter:"\\eba4"}),n.issueReopened=new n("issue-reopened",{fontCharacter:"\\eb0b"}),n.issues=new n("issues",{fontCharacter:"\\eb0c"}),n.italic=new n("italic",{fontCharacter:"\\eb0d"}),n.jersey=new n("jersey",{fontCharacter:"\\eb0e"}),n.json=new n("json",{fontCharacter:"\\eb0f"}),n.kebabVertical=new n("kebab-vertical",{fontCharacter:"\\eb10"}),n.key=new n("key",{fontCharacter:"\\eb11"}),n.law=new n("law",{fontCharacter:"\\eb12"}),n.lightbulbAutofix=new n("lightbulb-autofix",{fontCharacter:"\\eb13"}),n.linkExternal=new n("link-external",{fontCharacter:"\\eb14"}),n.link=new n("link",{fontCharacter:"\\eb15"}),n.listOrdered=new n("list-ordered",{fontCharacter:"\\eb16"}),n.listUnordered=new n("list-unordered",{fontCharacter:"\\eb17"}),n.liveShare=new n("live-share",{fontCharacter:"\\eb18"}),n.loading=new n("loading",{fontCharacter:"\\eb19"}),n.location=new n("location",{fontCharacter:"\\eb1a"}),n.mailRead=new n("mail-read",{fontCharacter:"\\eb1b"}),n.mail=new n("mail",{fontCharacter:"\\eb1c"}),n.markdown=new n("markdown",{fontCharacter:"\\eb1d"}),n.megaphone=new n("megaphone",{fontCharacter:"\\eb1e"}),n.mention=new n("mention",{fontCharacter:"\\eb1f"}),n.milestone=new n("milestone",{fontCharacter:"\\eb20"}),n.mortarBoard=new n("mortar-board",{fontCharacter:"\\eb21"}),n.move=new n("move",{fontCharacter:"\\eb22"}),n.multipleWindows=new n("multiple-windows",{fontCharacter:"\\eb23"}),n.mute=new n("mute",{fontCharacter:"\\eb24"}),n.noNewline=new n("no-newline",{fontCharacter:"\\eb25"}),n.note=new n("note",{fontCharacter:"\\eb26"}),n.octoface=new n("octoface",{fontCharacter:"\\eb27"}),n.openPreview=new n("open-preview",{fontCharacter:"\\eb28"}),n.package_=new n("package",{fontCharacter:"\\eb29"}),n.paintcan=new n("paintcan",{fontCharacter:"\\eb2a"}),n.pin=new n("pin",{fontCharacter:"\\eb2b"}),n.play=new n("play",{fontCharacter:"\\eb2c"}),n.run=new n("run",{fontCharacter:"\\eb2c"}),n.plug=new n("plug",{fontCharacter:"\\eb2d"}),n.preserveCase=new n("preserve-case",{fontCharacter:"\\eb2e"}),n.preview=new n("preview",{fontCharacter:"\\eb2f"}),n.project=new n("project",{fontCharacter:"\\eb30"}),n.pulse=new n("pulse",{fontCharacter:"\\eb31"}),n.question=new n("question",{fontCharacter:"\\eb32"}),n.quote=new n("quote",{fontCharacter:"\\eb33"}),n.radioTower=new n("radio-tower",{fontCharacter:"\\eb34"}),n.reactions=new n("reactions",{fontCharacter:"\\eb35"}),n.references=new n("references",{fontCharacter:"\\eb36"}),n.refresh=new n("refresh",{fontCharacter:"\\eb37"}),n.regex=new n("regex",{fontCharacter:"\\eb38"}),n.remoteExplorer=new n("remote-explorer",{fontCharacter:"\\eb39"}),n.remote=new n("remote",{fontCharacter:"\\eb3a"}),n.remove=new n("remove",{fontCharacter:"\\eb3b"}),n.replaceAll=new n("replace-all",{fontCharacter:"\\eb3c"}),n.replace=new n("replace",{fontCharacter:"\\eb3d"}),n.repoClone=new n("repo-clone",{fontCharacter:"\\eb3e"}),n.repoForcePush=new n("repo-force-push",{fontCharacter:"\\eb3f"}),n.repoPull=new n("repo-pull",{fontCharacter:"\\eb40"}),n.repoPush=new n("repo-push",{fontCharacter:"\\eb41"}),n.report=new n("report",{fontCharacter:"\\eb42"}),n.requestChanges=new n("request-changes",{fontCharacter:"\\eb43"}),n.rocket=new n("rocket",{fontCharacter:"\\eb44"}),n.rootFolderOpened=new n("root-folder-opened",{fontCharacter:"\\eb45"}),n.rootFolder=new n("root-folder",{fontCharacter:"\\eb46"}),n.rss=new n("rss",{fontCharacter:"\\eb47"}),n.ruby=new n("ruby",{fontCharacter:"\\eb48"}),n.saveAll=new n("save-all",{fontCharacter:"\\eb49"}),n.saveAs=new n("save-as",{fontCharacter:"\\eb4a"}),n.save=new n("save",{fontCharacter:"\\eb4b"}),n.screenFull=new n("screen-full",{fontCharacter:"\\eb4c"}),n.screenNormal=new n("screen-normal",{fontCharacter:"\\eb4d"}),n.searchStop=new n("search-stop",{fontCharacter:"\\eb4e"}),n.server=new n("server",{fontCharacter:"\\eb50"}),n.settingsGear=new n("settings-gear",{fontCharacter:"\\eb51"}),n.settings=new n("settings",{fontCharacter:"\\eb52"}),n.shield=new n("shield",{fontCharacter:"\\eb53"}),n.smiley=new n("smiley",{fontCharacter:"\\eb54"}),n.sortPrecedence=new n("sort-precedence",{fontCharacter:"\\eb55"}),n.splitHorizontal=new n("split-horizontal",{fontCharacter:"\\eb56"}),n.splitVertical=new n("split-vertical",{fontCharacter:"\\eb57"}),n.squirrel=new n("squirrel",{fontCharacter:"\\eb58"}),n.starFull=new n("star-full",{fontCharacter:"\\eb59"}),n.starHalf=new n("star-half",{fontCharacter:"\\eb5a"}),n.symbolClass=new n("symbol-class",{fontCharacter:"\\eb5b"}),n.symbolColor=new n("symbol-color",{fontCharacter:"\\eb5c"}),n.symbolConstant=new n("symbol-constant",{fontCharacter:"\\eb5d"}),n.symbolEnumMember=new n("symbol-enum-member",{fontCharacter:"\\eb5e"}),n.symbolField=new n("symbol-field",{fontCharacter:"\\eb5f"}),n.symbolFile=new n("symbol-file",{fontCharacter:"\\eb60"}),n.symbolInterface=new n("symbol-interface",{fontCharacter:"\\eb61"}),n.symbolKeyword=new n("symbol-keyword",{fontCharacter:"\\eb62"}),n.symbolMisc=new n("symbol-misc",{fontCharacter:"\\eb63"}),n.symbolOperator=new n("symbol-operator",{fontCharacter:"\\eb64"}),n.symbolProperty=new n("symbol-property",{fontCharacter:"\\eb65"}),n.wrench=new n("wrench",{fontCharacter:"\\eb65"}),n.wrenchSubaction=new n("wrench-subaction",{fontCharacter:"\\eb65"}),n.symbolSnippet=new n("symbol-snippet",{fontCharacter:"\\eb66"}),n.tasklist=new n("tasklist",{fontCharacter:"\\eb67"}),n.telescope=new n("telescope",{fontCharacter:"\\eb68"}),n.textSize=new n("text-size",{fontCharacter:"\\eb69"}),n.threeBars=new n("three-bars",{fontCharacter:"\\eb6a"}),n.thumbsdown=new n("thumbsdown",{fontCharacter:"\\eb6b"}),n.thumbsup=new n("thumbsup",{fontCharacter:"\\eb6c"}),n.tools=new n("tools",{fontCharacter:"\\eb6d"}),n.triangleDown=new n("triangle-down",{fontCharacter:"\\eb6e"}),n.triangleLeft=new n("triangle-left",{fontCharacter:"\\eb6f"}),n.triangleRight=new n("triangle-right",{fontCharacter:"\\eb70"}),n.triangleUp=new n("triangle-up",{fontCharacter:"\\eb71"}),n.twitter=new n("twitter",{fontCharacter:"\\eb72"}),n.unfold=new n("unfold",{fontCharacter:"\\eb73"}),n.unlock=new n("unlock",{fontCharacter:"\\eb74"}),n.unmute=new n("unmute",{fontCharacter:"\\eb75"}),n.unverified=new n("unverified",{fontCharacter:"\\eb76"}),n.verified=new n("verified",{fontCharacter:"\\eb77"}),n.versions=new n("versions",{fontCharacter:"\\eb78"}),n.vmActive=new n("vm-active",{fontCharacter:"\\eb79"}),n.vmOutline=new n("vm-outline",{fontCharacter:"\\eb7a"}),n.vmRunning=new n("vm-running",{fontCharacter:"\\eb7b"}),n.watch=new n("watch",{fontCharacter:"\\eb7c"}),n.whitespace=new n("whitespace",{fontCharacter:"\\eb7d"}),n.wholeWord=new n("whole-word",{fontCharacter:"\\eb7e"}),n.window=new n("window",{fontCharacter:"\\eb7f"}),n.wordWrap=new n("word-wrap",{fontCharacter:"\\eb80"}),n.zoomIn=new n("zoom-in",{fontCharacter:"\\eb81"}),n.zoomOut=new n("zoom-out",{fontCharacter:"\\eb82"}),n.listFilter=new n("list-filter",{fontCharacter:"\\eb83"}),n.listFlat=new n("list-flat",{fontCharacter:"\\eb84"}),n.listSelection=new n("list-selection",{fontCharacter:"\\eb85"}),n.selection=new n("selection",{fontCharacter:"\\eb85"}),n.listTree=new n("list-tree",{fontCharacter:"\\eb86"}),n.debugBreakpointFunctionUnverified=new n("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),n.debugBreakpointFunction=new n("debug-breakpoint-function",{fontCharacter:"\\eb88"}),n.debugBreakpointFunctionDisabled=new n("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),n.debugStackframeActive=new n("debug-stackframe-active",{fontCharacter:"\\eb89"}),n.debugStackframeDot=new n("debug-stackframe-dot",{fontCharacter:"\\eb8a"}),n.debugStackframe=new n("debug-stackframe",{fontCharacter:"\\eb8b"}),n.debugStackframeFocused=new n("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),n.debugBreakpointUnsupported=new n("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),n.symbolString=new n("symbol-string",{fontCharacter:"\\eb8d"}),n.debugReverseContinue=new n("debug-reverse-continue",{fontCharacter:"\\eb8e"}),n.debugStepBack=new n("debug-step-back",{fontCharacter:"\\eb8f"}),n.debugRestartFrame=new n("debug-restart-frame",{fontCharacter:"\\eb90"}),n.callIncoming=new n("call-incoming",{fontCharacter:"\\eb92"}),n.callOutgoing=new n("call-outgoing",{fontCharacter:"\\eb93"}),n.menu=new n("menu",{fontCharacter:"\\eb94"}),n.expandAll=new n("expand-all",{fontCharacter:"\\eb95"}),n.feedback=new n("feedback",{fontCharacter:"\\eb96"}),n.groupByRefType=new n("group-by-ref-type",{fontCharacter:"\\eb97"}),n.ungroupByRefType=new n("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),n.account=new n("account",{fontCharacter:"\\eb99"}),n.bellDot=new n("bell-dot",{fontCharacter:"\\eb9a"}),n.debugConsole=new n("debug-console",{fontCharacter:"\\eb9b"}),n.library=new n("library",{fontCharacter:"\\eb9c"}),n.output=new n("output",{fontCharacter:"\\eb9d"}),n.runAll=new n("run-all",{fontCharacter:"\\eb9e"}),n.syncIgnored=new n("sync-ignored",{fontCharacter:"\\eb9f"}),n.pinned=new n("pinned",{fontCharacter:"\\eba0"}),n.githubInverted=new n("github-inverted",{fontCharacter:"\\eba1"}),n.debugAlt=new n("debug-alt",{fontCharacter:"\\eb91"}),n.serverProcess=new n("server-process",{fontCharacter:"\\eba2"}),n.serverEnvironment=new n("server-environment",{fontCharacter:"\\eba3"}),n.pass=new n("pass",{fontCharacter:"\\eba4"}),n.stopCircle=new n("stop-circle",{fontCharacter:"\\eba5"}),n.playCircle=new n("play-circle",{fontCharacter:"\\eba6"}),n.record=new n("record",{fontCharacter:"\\eba7"}),n.debugAltSmall=new n("debug-alt-small",{fontCharacter:"\\eba8"}),n.vmConnect=new n("vm-connect",{fontCharacter:"\\eba9"}),n.cloud=new n("cloud",{fontCharacter:"\\ebaa"}),n.merge=new n("merge",{fontCharacter:"\\ebab"}),n.exportIcon=new n("export",{fontCharacter:"\\ebac"}),n.graphLeft=new n("graph-left",{fontCharacter:"\\ebad"}),n.magnet=new n("magnet",{fontCharacter:"\\ebae"}),n.notebook=new n("notebook",{fontCharacter:"\\ebaf"}),n.redo=new n("redo",{fontCharacter:"\\ebb0"}),n.checkAll=new n("check-all",{fontCharacter:"\\ebb1"}),n.pinnedDirty=new n("pinned-dirty",{fontCharacter:"\\ebb2"}),n.passFilled=new n("pass-filled",{fontCharacter:"\\ebb3"}),n.circleLargeFilled=new n("circle-large-filled",{fontCharacter:"\\ebb4"}),n.circleLargeOutline=new n("circle-large-outline",{fontCharacter:"\\ebb5"}),n.combine=new n("combine",{fontCharacter:"\\ebb6"}),n.gather=new n("gather",{fontCharacter:"\\ebb6"}),n.table=new n("table",{fontCharacter:"\\ebb7"}),n.variableGroup=new n("variable-group",{fontCharacter:"\\ebb8"}),n.typeHierarchy=new n("type-hierarchy",{fontCharacter:"\\ebb9"}),n.typeHierarchySub=new n("type-hierarchy-sub",{fontCharacter:"\\ebba"}),n.typeHierarchySuper=new n("type-hierarchy-super",{fontCharacter:"\\ebbb"}),n.gitPullRequestCreate=new n("git-pull-request-create",{fontCharacter:"\\ebbc"}),n.runAbove=new n("run-above",{fontCharacter:"\\ebbd"}),n.runBelow=new n("run-below",{fontCharacter:"\\ebbe"}),n.notebookTemplate=new n("notebook-template",{fontCharacter:"\\ebbf"}),n.debugRerun=new n("debug-rerun",{fontCharacter:"\\ebc0"}),n.workspaceTrusted=new n("workspace-trusted",{fontCharacter:"\\ebc1"}),n.workspaceUntrusted=new n("workspace-untrusted",{fontCharacter:"\\ebc2"}),n.workspaceUnspecified=new n("workspace-unspecified",{fontCharacter:"\\ebc3"}),n.terminalCmd=new n("terminal-cmd",{fontCharacter:"\\ebc4"}),n.terminalDebian=new n("terminal-debian",{fontCharacter:"\\ebc5"}),n.terminalLinux=new n("terminal-linux",{fontCharacter:"\\ebc6"}),n.terminalPowershell=new n("terminal-powershell",{fontCharacter:"\\ebc7"}),n.terminalTmux=new n("terminal-tmux",{fontCharacter:"\\ebc8"}),n.terminalUbuntu=new n("terminal-ubuntu",{fontCharacter:"\\ebc9"}),n.terminalBash=new n("terminal-bash",{fontCharacter:"\\ebca"}),n.arrowSwap=new n("arrow-swap",{fontCharacter:"\\ebcb"}),n.copy=new n("copy",{fontCharacter:"\\ebcc"}),n.personAdd=new n("person-add",{fontCharacter:"\\ebcd"}),n.filterFilled=new n("filter-filled",{fontCharacter:"\\ebce"}),n.wand=new n("wand",{fontCharacter:"\\ebcf"}),n.debugLineByLine=new n("debug-line-by-line",{fontCharacter:"\\ebd0"}),n.inspect=new n("inspect",{fontCharacter:"\\ebd1"}),n.layers=new n("layers",{fontCharacter:"\\ebd2"}),n.layersDot=new n("layers-dot",{fontCharacter:"\\ebd3"}),n.layersActive=new n("layers-active",{fontCharacter:"\\ebd4"}),n.compass=new n("compass",{fontCharacter:"\\ebd5"}),n.compassDot=new n("compass-dot",{fontCharacter:"\\ebd6"}),n.compassActive=new n("compass-active",{fontCharacter:"\\ebd7"}),n.azure=new n("azure",{fontCharacter:"\\ebd8"}),n.issueDraft=new n("issue-draft",{fontCharacter:"\\ebd9"}),n.gitPullRequestClosed=new n("git-pull-request-closed",{fontCharacter:"\\ebda"}),n.gitPullRequestDraft=new n("git-pull-request-draft",{fontCharacter:"\\ebdb"}),n.debugAll=new n("debug-all",{fontCharacter:"\\ebdc"}),n.debugCoverage=new n("debug-coverage",{fontCharacter:"\\ebdd"}),n.runErrors=new n("run-errors",{fontCharacter:"\\ebde"}),n.folderLibrary=new n("folder-library",{fontCharacter:"\\ebdf"}),n.debugContinueSmall=new n("debug-continue-small",{fontCharacter:"\\ebe0"}),n.beakerStop=new n("beaker-stop",{fontCharacter:"\\ebe1"}),n.graphLine=new n("graph-line",{fontCharacter:"\\ebe2"}),n.graphScatter=new n("graph-scatter",{fontCharacter:"\\ebe3"}),n.pieChart=new n("pie-chart",{fontCharacter:"\\ebe4"}),n.bracket=new n("bracket",n.json.definition),n.bracketDot=new n("bracket-dot",{fontCharacter:"\\ebe5"}),n.bracketError=new n("bracket-error",{fontCharacter:"\\ebe6"}),n.lockSmall=new n("lock-small",{fontCharacter:"\\ebe7"}),n.azureDevops=new n("azure-devops",{fontCharacter:"\\ebe8"}),n.verifiedFilled=new n("verified-filled",{fontCharacter:"\\ebe9"})}(M||(M={}))},VlDO:function(Re,te,v){Re.exports={flex_box_center:"flex_box_center___3v0of",flex_space_between:"flex_space_between___2ON3P",flex_box_vertical_center:"flex_box_vertical_center___1dze4",flex_box_center_end:"flex_box_center_end___VPAo5",flex_box_column:"flex_box_column___2f1aL",icons:"icons___hbWcc",shixuns:"shixuns___ed3FZ",buttons:"buttons___7shdA",addStage:"addStage___4vVUv",color4CA:"color4CA___1C3hM",color204:"color204___37f6U",completed:"completed___3Qqbj",actionTabs:"actionTabs___1GrUM",tab:"tab___3Ipqh",s1:"s1___3EKnf",s2:"s2___2nrm0",tabActive:"tabActive___24bZy",learn:"learn___HaTK4",labelContainer:"labelContainer___IVQXc",text:"text___z1m4c",tag:"tag___8gKDz","tagsList-content":"tagsList-content___YxKUD"}},VpOo:function(Re,te){function v(Z,K){var I=K.x,k=K.y,_=K.width,O=K.height,M=K.r,x,n,p,a;_<0&&(I=I+_,_=-_),O<0&&(k=k+O,O=-O),typeof M=="number"?x=n=p=a=M:M instanceof Array?M.length===1?x=n=p=a=M[0]:M.length===2?(x=p=M[0],n=a=M[1]):M.length===3?(x=M[0],n=a=M[1],p=M[2]):(x=M[0],n=M[1],p=M[2],a=M[3]):x=n=p=a=0;var t;x+n>_&&(t=x+n,x*=_/t,n*=_/t),p+a>_&&(t=p+a,p*=_/t,a*=_/t),n+p>O&&(t=n+p,n*=O/t,p*=O/t),x+a>O&&(t=x+a,x*=O/t,a*=O/t),Z.moveTo(I+x,k),Z.lineTo(I+_-n,k),n!==0&&Z.arc(I+_-n,k+n,n,-Math.PI/2,0),Z.lineTo(I+_,k+O-p),p!==0&&Z.arc(I+_-p,k+O-p,p,0,Math.PI/2),Z.lineTo(I+a,k+O),a!==0&&Z.arc(I+a,k+O-a,a,Math.PI/2,Math.PI),Z.lineTo(I,k+x),x!==0&&Z.arc(I+x,k+x,x,Math.PI,Math.PI*1.5)}te.buildPath=v},"VrN/":function(Re,te,v){(function(Z,K){Re.exports=K()})(this,function(){"use strict";var Z=navigator.userAgent,K=navigator.platform,I=/gecko\/\d/i.test(Z),k=/MSIE \d/.test(Z),_=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Z),O=/Edge\/(\d+)/.exec(Z),M=k||_||O,x=M&&(k?document.documentMode||6:+(O||_)[1]),n=!O&&/WebKit\//.test(Z),p=n&&/Qt\/\d+\.\d+/.test(Z),a=!O&&/Chrome\//.test(Z),t=/Opera\//.test(Z),h=/Apple Computer/.test(navigator.vendor),s=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Z),i=/PhantomJS/.test(Z),u=!O&&/AppleWebKit/.test(Z)&&/Mobile\/\w+/.test(Z),d=/Android/.test(Z),f=u||d||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Z),o=u||/Mac/.test(K),c=/\bCrOS\b/.test(Z),E=/win/i.test(K),B=t&&Z.match(/Version\/(\d*\.\d*)/);B&&(B=Number(B[1])),B&&B>=15&&(t=!1,n=!0);var w=o&&(p||t&&(B==null||B<12.11)),P=I||M&&x>=9;function C(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var b=function(e,r){var L=e.className,D=C(r).exec(L);if(D){var j=L.slice(D.index+D[0].length);e.className=L.slice(0,D.index)+(j?D[1]+j:"")}};function l(e){for(var r=e.childNodes.length;r>0;--r)e.removeChild(e.firstChild);return e}function A(e,r){return l(e).appendChild(r)}function g(e,r,L,D){var j=document.createElement(e);if(L&&(j.className=L),D&&(j.style.cssText=D),typeof r=="string")j.appendChild(document.createTextNode(r));else if(r)for(var q=0;q<r.length;++q)j.appendChild(r[q]);return j}function T(e,r,L,D){var j=g(e,r,L,D);return j.setAttribute("role","presentation"),j}var m;document.createRange?m=function(e,r,L,D){var j=document.createRange();return j.setEnd(D||e,L),j.setStart(e,r),j}:m=function(e,r,L){var D=document.body.createTextRange();try{D.moveToElementText(e.parentNode)}catch(j){return D}return D.collapse(!0),D.moveEnd("character",L),D.moveStart("character",r),D};function y(e,r){if(r.nodeType==3&&(r=r.parentNode),e.contains)return e.contains(r);do if(r.nodeType==11&&(r=r.host),r==e)return!0;while(r=r.parentNode)}function U(){var e;try{e=document.activeElement}catch(r){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function N(e,r){var L=e.className;C(r).test(L)||(e.className+=(L?" ":"")+r)}function S(e,r){for(var L=e.split(" "),D=0;D<L.length;D++)L[D]&&!C(L[D]).test(r)&&(r+=" "+L[D]);return r}var H=function(e){e.select()};u?H=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:M&&(H=function(e){try{e.select()}catch(r){}});function F(e){var r=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,r)}}function R(e,r,L){r||(r={});for(var D in e)e.hasOwnProperty(D)&&(L!==!1||!r.hasOwnProperty(D))&&(r[D]=e[D]);return r}function z(e,r,L,D,j){r==null&&(r=e.search(/[^\s\u00a0]/),r==-1&&(r=e.length));for(var q=D||0,ue=j||0;;){var ye=e.indexOf(" ",q);if(ye<0||ye>=r)return ue+(r-q);ue+=ye-q,ue+=L-ue%L,q=ye+1}}var Q=function(){this.id=null,this.f=null,this.time=0,this.handler=F(this.onTimeout,this)};Q.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},Q.prototype.set=function(e,r){this.f=r;var L=+new Date+e;(!this.id||L<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=L)};function $(e,r){for(var L=0;L<e.length;++L)if(e[L]==r)return L;return-1}var ee=50,fe={toString:function(){return"CodeMirror.Pass"}},Ae={scroll:!1},ce={origin:"*mouse"},ie={origin:"+move"};function be(e,r,L){for(var D=0,j=0;;){var q=e.indexOf(" ",D);q==-1&&(q=e.length);var ue=q-D;if(q==e.length||j+ue>=r)return D+Math.min(ue,r-j);if(j+=q-D,j+=L-j%L,D=q+1,j>=r)return D}}var se=[""];function me(e){for(;se.length<=e;)se.push(le(se)+" ");return se[e]}function le(e){return e[e.length-1]}function ge(e,r){for(var L=[],D=0;D<e.length;D++)L[D]=r(e[D],D);return L}function ae(e,r,L){for(var D=0,j=L(r);D<e.length&&L(e[D])<=j;)D++;e.splice(D,0,r)}function pe(){}function Me(e,r){var L;return Object.create?L=Object.create(e):(pe.prototype=e,L=new pe),r&&R(r,L),L}var xe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Ke(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||xe.test(e))}function tt(e,r){return r?r.source.indexOf("\\w")>-1&&Ke(e)?!0:r.test(e):Ke(e)}function he(e){for(var r in e)if(e.hasOwnProperty(r)&&e[r])return!1;return!0}var Se=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Ue(e){return e.charCodeAt(0)>=768&&Se.test(e)}function Ne(e,r,L){for(;(L<0?r>0:r<e.length)&&Ue(e.charAt(r));)r+=L;return r}function ct(e,r,L){for(var D=r>L?-1:1;;){if(r==L)return r;var j=(r+L)/2,q=D<0?Math.ceil(j):Math.floor(j);if(q==r)return e(q)?r:L;e(q)?L=q:r=q+D}}function mt(e,r,L,D){if(!e)return D(r,L,"ltr",0);for(var j=!1,q=0;q<e.length;++q){var ue=e[q];(ue.from<L&&ue.to>r||r==L&&ue.to==r)&&(D(Math.max(ue.from,r),Math.min(ue.to,L),ue.level==1?"rtl":"ltr",q),j=!0)}j||D(r,L,"ltr")}var Rt=null;function ht(e,r,L){var D;Rt=null;for(var j=0;j<e.length;++j){var q=e[j];if(q.from<r&&q.to>r)return j;q.to==r&&(q.from!=q.to&&L=="before"?D=j:Rt=j),q.from==r&&(q.from!=q.to&&L!="before"?D=j:Rt=j)}return D!=null?D:Rt}var Ut=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",r="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function L(De){return De<=247?e.charAt(De):1424<=De&&De<=1524?"R":1536<=De&&De<=1785?r.charAt(De-1536):1774<=De&&De<=2220?"r":8192<=De&&De<=8203?"w":De==8204?"b":"L"}var D=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,j=/[stwN]/,q=/[LRr]/,ue=/[Lb1n]/,ye=/[1n]/;function Ee(De,ot,At){this.level=De,this.from=ot,this.to=At}return function(De,ot){var At=ot=="ltr"?"L":"R";if(De.length==0||ot=="ltr"&&!D.test(De))return!1;for(var Nt=De.length,Pt=[],hn=0;hn<Nt;++hn)Pt.push(L(De.charCodeAt(hn)));for(var bn=0,Fn=At;bn<Nt;++bn){var Zn=Pt[bn];Zn=="m"?Pt[bn]=Fn:Fn=Zn}for(var sr=0,$n=At;sr<Nt;++sr){var br=Pt[sr];br=="1"&&$n=="r"?Pt[sr]="n":q.test(br)&&($n=br,br=="r"&&(Pt[sr]="R"))}for(var Zr=1,Hr=Pt[0];Zr<Nt-1;++Zr){var Fa=Pt[Zr];Fa=="+"&&Hr=="1"&&Pt[Zr+1]=="1"?Pt[Zr]="1":Fa==","&&Hr==Pt[Zr+1]&&(Hr=="1"||Hr=="n")&&(Pt[Zr]=Hr),Hr=Fa}for(var ji=0;ji<Nt;++ji){var Co=Pt[ji];if(Co==",")Pt[ji]="N";else if(Co=="%"){var oo=void 0;for(oo=ji+1;oo<Nt&&Pt[oo]=="%";++oo);for(var ds=ji&&Pt[ji-1]=="!"||oo<Nt&&Pt[oo]=="1"?"1":"N",Qo=ji;Qo<oo;++Qo)Pt[Qo]=ds;ji=oo-1}}for(var po=0,Ko=At;po<Nt;++po){var Lo=Pt[po];Ko=="L"&&Lo=="1"?Pt[po]="L":q.test(Lo)&&(Ko=Lo)}for(var zn=0;zn<Nt;++zn)if(j.test(Pt[zn])){var qi=void 0;for(qi=zn+1;qi<Nt&&j.test(Pt[qi]);++qi);for(var eo=(zn?Pt[zn-1]:At)=="L",to=(qi<Nt?Pt[qi]:At)=="L",Dl=eo==to?eo?"L":"R":At,ni=zn;ni<qi;++ni)Pt[ni]=Dl;zn=qi-1}for(var Va=[],Es,wo=0;wo<Nt;)if(ue.test(Pt[wo])){var Ll=wo;for(++wo;wo<Nt&&ue.test(Pt[wo]);++wo);Va.push(new Ee(0,Ll,wo))}else{var al=wo,zs=Va.length,Cl=ot=="rtl"?1:0;for(++wo;wo<Nt&&Pt[wo]!="L";++wo);for(var Jo=al;Jo<wo;)if(ye.test(Pt[Jo])){al<Jo&&(Va.splice(zs,0,new Ee(1,al,Jo)),zs+=Cl);var wl=Jo;for(++Jo;Jo<wo&&ye.test(Pt[Jo]);++Jo);Va.splice(zs,0,new Ee(2,wl,Jo)),zs+=Cl,al=Jo}else++Jo;al<wo&&Va.splice(zs,0,new Ee(1,al,wo))}return ot=="ltr"&&(Va[0].level==1&&(Es=De.match(/^\s+/))&&(Va[0].from=Es[0].length,Va.unshift(new Ee(0,0,Es[0].length))),le(Va).level==1&&(Es=De.match(/\s+$/))&&(le(Va).to-=Es[0].length,Va.push(new Ee(0,Nt-Es[0].length,Nt)))),ot=="rtl"?Va.reverse():Va}}();function zt(e,r){var L=e.order;return L==null&&(L=e.order=Ut(e.text,r)),L}var ze=[],Ve=function(e,r,L){if(e.addEventListener)e.addEventListener(r,L,!1);else if(e.attachEvent)e.attachEvent("on"+r,L);else{var D=e._handlers||(e._handlers={});D[r]=(D[r]||ze).concat(L)}};function Et(e,r){return e._handlers&&e._handlers[r]||ze}function Ot(e,r,L){if(e.removeEventListener)e.removeEventListener(r,L,!1);else if(e.detachEvent)e.detachEvent("on"+r,L);else{var D=e._handlers,j=D&&D[r];if(j){var q=$(j,L);q>-1&&(D[r]=j.slice(0,q).concat(j.slice(q+1)))}}}function ut(e,r){var L=Et(e,r);if(!L.length)return;for(var D=Array.prototype.slice.call(arguments,2),j=0;j<L.length;++j)L[j].apply(null,D)}function vt(e,r,L){return typeof r=="string"&&(r={type:r,preventDefault:function(){this.defaultPrevented=!0}}),ut(e,L||r.type,e,r),Pe(r)||r.codemirrorIgnore}function Ze(e){var r=e._handlers&&e._handlers.cursorActivity;if(!r)return;for(var L=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),D=0;D<r.length;++D)$(L,r[D])==-1&&L.push(r[D])}function ke(e,r){return Et(e,r).length>0}function He(e){e.prototype.on=function(r,L){Ve(this,r,L)},e.prototype.off=function(r,L){Ot(this,r,L)}}function we(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Le(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Pe(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function We(e){we(e),Le(e)}function Xe(e){return e.target||e.srcElement}function gt(e){var r=e.which;return r==null&&(e.button&1?r=1:e.button&2?r=3:e.button&4&&(r=2)),o&&e.ctrlKey&&r==1&&(r=3),r}var Lt=function(){if(M&&x<9)return!1;var e=g("div");return"draggable"in e||"dragDrop"in e}(),en;function Zt(e){if(en==null){var r=g("span","\u200B");A(e,g("span",[r,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(en=r.offsetWidth<=1&&r.offsetHeight>2&&!(M&&x<8))}var L=en?g("span","\u200B"):g("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return L.setAttribute("cm-text",""),L}var xt;function Ct(e){if(xt!=null)return xt;var r=A(e,document.createTextNode("A\u062EA")),L=m(r,0,1).getBoundingClientRect(),D=m(r,1,2).getBoundingClientRect();return l(e),!L||L.left==L.right?!1:xt=D.right-L.right<3}var pt=`
|
|
|
|
b`.split(/\n/).length!=3?function(e){for(var r=0,L=[],D=e.length;r<=D;){var j=e.indexOf(`
|
|
`,r);j==-1&&(j=e.length);var q=e.slice(r,e.charAt(j-1)=="\r"?j-1:j),ue=q.indexOf("\r");ue!=-1?(L.push(q.slice(0,ue)),r+=ue+1):(L.push(q),r=j+1)}return L}:function(e){return e.split(/\r\n?|\n/)},Je=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(r){return!1}}:function(e){var r;try{r=e.ownerDocument.selection.createRange()}catch(L){}return!r||r.parentElement()!=e?!1:r.compareEndPoints("StartToEnd",r)!=0},Qe=function(){var e=g("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Oe=null;function je(e){if(Oe!=null)return Oe;var r=A(e,g("span","x")),L=r.getBoundingClientRect(),D=m(r,0,1).getBoundingClientRect();return Oe=Math.abs(L.left-D.left)>1}var St={},bt={};function Dt(e,r){arguments.length>2&&(r.dependencies=Array.prototype.slice.call(arguments,2)),St[e]=r}function Ht(e,r){bt[e]=r}function _t(e){if(typeof e=="string"&&bt.hasOwnProperty(e))e=bt[e];else if(e&&typeof e.name=="string"&&bt.hasOwnProperty(e.name)){var r=bt[e.name];typeof r=="string"&&(r={name:r}),e=Me(r,e),e.name=r.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return _t("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return _t("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Gt(e,r){r=_t(r);var L=St[r.name];if(!L)return Gt(e,"text/plain");var D=L(e,r);if(kt.hasOwnProperty(r.name)){var j=kt[r.name];for(var q in j){if(!j.hasOwnProperty(q))continue;D.hasOwnProperty(q)&&(D["_"+q]=D[q]),D[q]=j[q]}}if(D.name=r.name,r.helperType&&(D.helperType=r.helperType),r.modeProps)for(var ue in r.modeProps)D[ue]=r.modeProps[ue];return D}var kt={};function fn(e,r){var L=kt.hasOwnProperty(e)?kt[e]:kt[e]={};R(r,L)}function mn(e,r){if(r===!0)return r;if(e.copyState)return e.copyState(r);var L={};for(var D in r){var j=r[D];j instanceof Array&&(j=j.concat([])),L[D]=j}return L}function Tr(e,r){for(var L;e.innerMode&&!(L=e.innerMode(r),!L||L.mode==e);)r=L.state,e=L.mode;return L||{mode:e,state:r}}function Mr(e,r,L){return e.startState?e.startState(r,L):!0}var kr=function(e,r,L){this.pos=this.start=0,this.string=e,this.tabSize=r||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=L};kr.prototype.eol=function(){return this.pos>=this.string.length},kr.prototype.sol=function(){return this.pos==this.lineStart},kr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},kr.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},kr.prototype.eat=function(e){var r=this.string.charAt(this.pos),L;if(typeof e=="string"?L=r==e:L=r&&(e.test?e.test(r):e(r)),L)return++this.pos,r},kr.prototype.eatWhile=function(e){for(var r=this.pos;this.eat(e););return this.pos>r},kr.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},kr.prototype.skipToEnd=function(){this.pos=this.string.length},kr.prototype.skipTo=function(e){var r=this.string.indexOf(e,this.pos);if(r>-1)return this.pos=r,!0},kr.prototype.backUp=function(e){this.pos-=e},kr.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=z(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?z(this.string,this.lineStart,this.tabSize):0)},kr.prototype.indentation=function(){return z(this.string,null,this.tabSize)-(this.lineStart?z(this.string,this.lineStart,this.tabSize):0)},kr.prototype.match=function(e,r,L){if(typeof e=="string"){var D=function(ue){return L?ue.toLowerCase():ue},j=this.string.substr(this.pos,e.length);if(D(j)==D(e))return r!==!1&&(this.pos+=e.length),!0}else{var q=this.string.slice(this.pos).match(e);return q&&q.index>0?null:(q&&r!==!1&&(this.pos+=q[0].length),q)}},kr.prototype.current=function(){return this.string.slice(this.start,this.pos)},kr.prototype.hideFirstChars=function(e,r){this.lineStart+=e;try{return r()}finally{this.lineStart-=e}},kr.prototype.lookAhead=function(e){var r=this.lineOracle;return r&&r.lookAhead(e)},kr.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function Un(e,r){if(r-=e.first,r<0||r>=e.size)throw new Error("There is no line "+(r+e.first)+" in the document.");for(var L=e;!L.lines;)for(var D=0;;++D){var j=L.children[D],q=j.chunkSize();if(r<q){L=j;break}r-=q}return L.lines[r]}function Ra(e,r,L){var D=[],j=r.line;return e.iter(r.line,L.line+1,function(q){var ue=q.text;j==L.line&&(ue=ue.slice(0,L.ch)),j==r.line&&(ue=ue.slice(r.ch)),D.push(ue),++j}),D}function Xr(e,r,L){var D=[];return e.iter(r,L,function(j){D.push(j.text)}),D}function aa(e,r){var L=r-e.height;if(L)for(var D=e;D;D=D.parent)D.height+=L}function Kr(e){if(e.parent==null)return null;for(var r=e.parent,L=$(r.lines,e),D=r.parent;D;r=D,D=D.parent)for(var j=0;!(D.children[j]==r);++j)L+=D.children[j].chunkSize();return L+r.first}function _a(e,r){var L=e.first;e:do{for(var D=0;D<e.children.length;++D){var j=e.children[D],q=j.height;if(r<q){e=j;continue e}r-=q,L+=j.chunkSize()}return L}while(!e.lines);for(var ue=0;ue<e.lines.length;++ue){var ye=e.lines[ue],Ee=ye.height;if(r<Ee)break;r-=Ee}return L+ue}function di(e,r){return r>=e.first&&r<e.first+e.size}function Ei(e,r){return String(e.lineNumberFormatter(r+e.firstLineNumber))}function _e(e,r,L){if(L===void 0&&(L=null),!(this instanceof _e))return new _e(e,r,L);this.line=e,this.ch=r,this.sticky=L}function Ie(e,r){return e.line-r.line||e.ch-r.ch}function Ye(e,r){return e.sticky==r.sticky&&Ie(e,r)==0}function yt(e){return _e(e.line,e.ch)}function Xt(e,r){return Ie(e,r)<0?r:e}function sn(e,r){return Ie(e,r)<0?e:r}function re(e,r){return Math.max(e.first,Math.min(r,e.first+e.size-1))}function W(e,r){if(r.line<e.first)return _e(e.first,0);var L=e.first+e.size-1;return r.line>L?_e(L,Un(e,L).text.length):V(r,Un(e,r.line).text.length)}function V(e,r){var L=e.ch;return L==null||L>r?_e(e.line,r):L<0?_e(e.line,0):e}function ne(e,r){for(var L=[],D=0;D<r.length;D++)L[D]=W(e,r[D]);return L}var ve=function(e,r){this.state=e,this.lookAhead=r},oe=function(e,r,L,D){this.state=r,this.doc=e,this.line=L,this.maxLookAhead=D||0,this.baseTokens=null,this.baseTokenPos=1};oe.prototype.lookAhead=function(e){var r=this.doc.getLine(this.line+e);return r!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),r},oe.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var r=this.baseTokens[this.baseTokenPos+1];return{type:r&&r.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},oe.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},oe.fromSaved=function(e,r,L){return r instanceof ve?new oe(e,mn(e.mode,r.state),L,r.lookAhead):new oe(e,mn(e.mode,r),L)},oe.prototype.save=function(e){var r=e!==!1?mn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ve(r,this.maxLookAhead):r};function et(e,r,L,D){var j=[e.state.modeGen],q={};qr(e,r.text,e.doc.mode,L,function(De,ot){return j.push(De,ot)},q,D);for(var ue=L.state,ye=function(De){L.baseTokens=j;var ot=e.state.overlays[De],At=1,Nt=0;L.state=!0,qr(e,r.text,ot.mode,L,function(Pt,hn){for(var bn=At;Nt<Pt;){var Fn=j[At];Fn>Pt&&j.splice(At,1,Pt,j[At+1],Fn),At+=2,Nt=Math.min(Pt,Fn)}if(!hn)return;if(ot.opaque)j.splice(bn,At-bn,Pt,"overlay "+hn),At=bn+2;else for(;bn<At;bn+=2){var Zn=j[bn+1];j[bn+1]=(Zn?Zn+" ":"")+"overlay "+hn}},q),L.state=ue,L.baseTokens=null,L.baseTokenPos=1},Ee=0;Ee<e.state.overlays.length;++Ee)ye(Ee);return{styles:j,classes:q.bgClass||q.textClass?q:null}}function Qt(e,r,L){if(!r.styles||r.styles[0]!=e.state.modeGen){var D=dn(e,Kr(r)),j=r.text.length>e.options.maxHighlightLength&&mn(e.doc.mode,D.state),q=et(e,r,D);j&&(D.state=j),r.stateAfter=D.save(!j),r.styles=q.styles,q.classes?r.styleClasses=q.classes:r.styleClasses&&(r.styleClasses=null),L===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return r.styles}function dn(e,r,L){var D=e.doc,j=e.display;if(!D.mode.startState)return new oe(D,!0,r);var q=zr(e,r,L),ue=q>D.first&&Un(D,q-1).stateAfter,ye=ue?oe.fromSaved(D,ue,q):new oe(D,Mr(D.mode),q);return D.iter(q,r,function(Ee){Cn(e,Ee.text,ye);var De=ye.line;Ee.stateAfter=De==r-1||De%5==0||De>=j.viewFrom&&De<j.viewTo?ye.save():null,ye.nextLine()}),L&&(D.modeFrontier=ye.line),ye}function Cn(e,r,L,D){var j=e.doc.mode,q=new kr(r,e.options.tabSize,L);for(q.start=q.pos=D||0,r==""&&Jt(j,L.state);!q.eol();)Vn(j,q,L.state),q.start=q.pos}function Jt(e,r){if(e.blankLine)return e.blankLine(r);if(!e.innerMode)return;var L=Tr(e,r);if(L.mode.blankLine)return L.mode.blankLine(L.state)}function Vn(e,r,L,D){for(var j=0;j<10;j++){D&&(D[0]=Tr(e,L).mode);var q=e.token(r,L);if(r.pos>r.start)return q}throw new Error("Mode "+e.name+" failed to advance stream.")}var Xn=function(e,r,L){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=r||null,this.state=L};function lr(e,r,L,D){var j=e.doc,q=j.mode,ue;r=W(j,r);var ye=Un(j,r.line),Ee=dn(e,r.line,L),De=new kr(ye.text,e.options.tabSize,Ee),ot;for(D&&(ot=[]);(D||De.pos<r.ch)&&!De.eol();)De.start=De.pos,ue=Vn(q,De,Ee.state),D&&ot.push(new Xn(De,ue,mn(j.mode,Ee.state)));return D?ot:new Xn(De,ue,Ee.state)}function Rr(e,r){if(e)for(;;){var L=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!L)break;e=e.slice(0,L.index)+e.slice(L.index+L[0].length);var D=L[1]?"bgClass":"textClass";r[D]==null?r[D]=L[2]:new RegExp("(?:^|\\s)"+L[2]+"(?:$|\\s)").test(r[D])||(r[D]+=" "+L[2])}return e}function qr(e,r,L,D,j,q,ue){var ye=L.flattenSpans;ye==null&&(ye=e.options.flattenSpans);var Ee=0,De=null,ot=new kr(r,e.options.tabSize,D),At,Nt=e.options.addModeClass&&[null];for(r==""&&Rr(Jt(L,D.state),q);!ot.eol();){if(ot.pos>e.options.maxHighlightLength?(ye=!1,ue&&Cn(e,r,D,ot.pos),ot.pos=r.length,At=null):At=Rr(Vn(L,ot,D.state,Nt),q),Nt){var Pt=Nt[0].name;Pt&&(At="m-"+(At?Pt+" "+At:Pt))}if(!ye||De!=At){for(;Ee<ot.start;)Ee=Math.min(ot.start,Ee+5e3),j(Ee,De);De=At}ot.start=ot.pos}for(;Ee<ot.pos;){var hn=Math.min(ot.pos,Ee+5e3);j(hn,De),Ee=hn}}function zr(e,r,L){for(var D,j,q=e.doc,ue=L?-1:r-(e.doc.mode.innerMode?1e3:100),ye=r;ye>ue;--ye){if(ye<=q.first)return q.first;var Ee=Un(q,ye-1),De=Ee.stateAfter;if(De&&(!L||ye+(De instanceof ve?De.lookAhead:0)<=q.modeFrontier))return ye;var ot=z(Ee.text,null,e.options.tabSize);(j==null||D>ot)&&(j=ye-1,D=ot)}return j}function Ca(e,r){if(e.modeFrontier=Math.min(e.modeFrontier,r),e.highlightFrontier<r-10)return;for(var L=e.first,D=r-1;D>L;D--){var j=Un(e,D).stateAfter;if(j&&(!(j instanceof ve)||D+j.lookAhead<r)){L=D+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,L)}var Dr=!1,ya=!1;function ka(){Dr=!0}function fi(){ya=!0}function Ka(e,r,L){this.marker=e,this.from=r,this.to=L}function qa(e,r){if(e)for(var L=0;L<e.length;++L){var D=e[L];if(D.marker==r)return D}}function Si(e,r){for(var L,D=0;D<e.length;++D)e[D]!=r&&(L||(L=[])).push(e[D]);return L}function pi(e,r){e.markedSpans=e.markedSpans?e.markedSpans.concat([r]):[r],r.marker.attachLine(e)}function ui(e,r,L){var D;if(e)for(var j=0;j<e.length;++j){var q=e[j],ue=q.marker,ye=q.from==null||(ue.inclusiveLeft?q.from<=r:q.from<r);if(ye||q.from==r&&ue.type=="bookmark"&&(!L||!q.marker.insertLeft)){var Ee=q.to==null||(ue.inclusiveRight?q.to>=r:q.to>r);(D||(D=[])).push(new Ka(ue,q.from,Ee?null:q.to))}}return D}function mi(e,r,L){var D;if(e)for(var j=0;j<e.length;++j){var q=e[j],ue=q.marker,ye=q.to==null||(ue.inclusiveRight?q.to>=r:q.to>r);if(ye||q.from==r&&ue.type=="bookmark"&&(!L||q.marker.insertLeft)){var Ee=q.from==null||(ue.inclusiveLeft?q.from<=r:q.from<r);(D||(D=[])).push(new Ka(ue,Ee?null:q.from-r,q.to==null?null:q.to-r))}}return D}function _i(e,r){if(r.full)return null;var L=di(e,r.from.line)&&Un(e,r.from.line).markedSpans,D=di(e,r.to.line)&&Un(e,r.to.line).markedSpans;if(!L&&!D)return null;var j=r.from.ch,q=r.to.ch,ue=Ie(r.from,r.to)==0,ye=ui(L,j,ue),Ee=mi(D,q,ue),De=r.text.length==1,ot=le(r.text).length+(De?j:0);if(ye)for(var At=0;At<ye.length;++At){var Nt=ye[At];if(Nt.to==null){var Pt=qa(Ee,Nt.marker);Pt?De&&(Nt.to=Pt.to==null?null:Pt.to+ot):Nt.to=j}}if(Ee)for(var hn=0;hn<Ee.length;++hn){var bn=Ee[hn];if(bn.to!=null&&(bn.to+=ot),bn.from==null){var Fn=qa(ye,bn.marker);Fn||(bn.from=ot,De&&(ye||(ye=[])).push(bn))}else bn.from+=ot,De&&(ye||(ye=[])).push(bn)}ye&&(ye=ai(ye)),Ee&&Ee!=ye&&(Ee=ai(Ee));var Zn=[ye];if(!De){var sr=r.text.length-2,$n;if(sr>0&&ye)for(var br=0;br<ye.length;++br)ye[br].to==null&&($n||($n=[])).push(new Ka(ye[br].marker,null,null));for(var Zr=0;Zr<sr;++Zr)Zn.push($n);Zn.push(Ee)}return Zn}function ai(e){for(var r=0;r<e.length;++r){var L=e[r];L.from!=null&&L.from==L.to&&L.marker.clearWhenEmpty!==!1&&e.splice(r--,1)}return e.length?e:null}function Hi(e,r,L){var D=null;if(e.iter(r.line,L.line+1,function(Pt){if(Pt.markedSpans)for(var hn=0;hn<Pt.markedSpans.length;++hn){var bn=Pt.markedSpans[hn].marker;bn.readOnly&&(!D||$(D,bn)==-1)&&(D||(D=[])).push(bn)}}),!D)return null;for(var j=[{from:r,to:L}],q=0;q<D.length;++q)for(var ue=D[q],ye=ue.find(0),Ee=0;Ee<j.length;++Ee){var De=j[Ee];if(Ie(De.to,ye.from)<0||Ie(De.from,ye.to)>0)continue;var ot=[Ee,1],At=Ie(De.from,ye.from),Nt=Ie(De.to,ye.to);(At<0||!ue.inclusiveLeft&&!At)&&ot.push({from:De.from,to:ye.from}),(Nt>0||!ue.inclusiveRight&&!Nt)&&ot.push({from:ye.to,to:De.to}),j.splice.apply(j,ot),Ee+=ot.length-3}return j}function Yi(e){var r=e.markedSpans;if(!r)return;for(var L=0;L<r.length;++L)r[L].marker.detachLine(e);e.markedSpans=null}function $r(e,r){if(!r)return;for(var L=0;L<r.length;++L)r[L].marker.attachLine(e);e.markedSpans=r}function ua(e){return e.inclusiveLeft?-1:0}function Pr(e){return e.inclusiveRight?1:0}function ca(e,r){var L=e.lines.length-r.lines.length;if(L!=0)return L;var D=e.find(),j=r.find(),q=Ie(D.from,j.from)||ua(e)-ua(r);if(q)return-q;var ue=Ie(D.to,j.to)||Pr(e)-Pr(r);return ue||r.id-e.id}function Jr(e,r){var L=ya&&e.markedSpans,D;if(L)for(var j=void 0,q=0;q<L.length;++q)j=L[q],j.marker.collapsed&&(r?j.from:j.to)==null&&(!D||ca(D,j.marker)<0)&&(D=j.marker);return D}function ri(e){return Jr(e,!0)}function pa(e){return Jr(e,!1)}function mo(e,r){var L=ya&&e.markedSpans,D;if(L)for(var j=0;j<L.length;++j){var q=L[j];q.marker.collapsed&&(q.from==null||q.from<r)&&(q.to==null||q.to>r)&&(!D||ca(D,q.marker)<0)&&(D=q.marker)}return D}function Di(e,r,L,D,j){var q=Un(e,r),ue=ya&&q.markedSpans;if(ue)for(var ye=0;ye<ue.length;++ye){var Ee=ue[ye];if(!Ee.marker.collapsed)continue;var De=Ee.marker.find(0),ot=Ie(De.from,L)||ua(Ee.marker)-ua(j),At=Ie(De.to,D)||Pr(Ee.marker)-Pr(j);if(ot>=0&&At<=0||ot<=0&&At>=0)continue;if(ot<=0&&(Ee.marker.inclusiveRight&&j.inclusiveLeft?Ie(De.to,L)>=0:Ie(De.to,L)>0)||ot>=0&&(Ee.marker.inclusiveRight&&j.inclusiveLeft?Ie(De.from,D)<=0:Ie(De.from,D)<0))return!0}}function ci(e){for(var r;r=ri(e);)e=r.find(-1,!0).line;return e}function Wo(e){for(var r;r=pa(e);)e=r.find(1,!0).line;return e}function Mo(e){for(var r,L;r=pa(e);)e=r.find(1,!0).line,(L||(L=[])).push(e);return L}function ii(e,r){var L=Un(e,r),D=ci(L);return L==D?r:Kr(D)}function go(e,r){if(r>e.lastLine())return r;var L=Un(e,r),D;if(!no(e,L))return r;for(;D=pa(L);)L=D.find(1,!0).line;return Kr(L)+1}function no(e,r){var L=ya&&r.markedSpans;if(L)for(var D=void 0,j=0;j<L.length;++j){if(D=L[j],!D.marker.collapsed)continue;if(D.from==null)return!0;if(D.marker.widgetNode)continue;if(D.from==0&&D.marker.inclusiveLeft&&hs(e,r,D))return!0}}function hs(e,r,L){if(L.to==null){var D=L.marker.find(1,!0);return hs(e,D.line,qa(D.line.markedSpans,L.marker))}if(L.marker.inclusiveRight&&L.to==r.text.length)return!0;for(var j=void 0,q=0;q<r.markedSpans.length;++q)if(j=r.markedSpans[q],j.marker.collapsed&&!j.marker.widgetNode&&j.from==L.to&&(j.to==null||j.to!=L.from)&&(j.marker.inclusiveLeft||L.marker.inclusiveRight)&&hs(e,r,j))return!0}function xo(e){e=ci(e);for(var r=0,L=e.parent,D=0;D<L.lines.length;++D){var j=L.lines[D];if(j==e)break;r+=j.height}for(var q=L.parent;q;L=q,q=L.parent)for(var ue=0;ue<q.children.length;++ue){var ye=q.children[ue];if(ye==L)break;r+=ye.height}return r}function Cs(e){if(e.height==0)return 0;for(var r=e.text.length,L,D=e;L=ri(D);){var j=L.find(0,!0);D=j.from.line,r+=j.from.ch-j.to.ch}for(D=e;L=pa(D);){var q=L.find(0,!0);r-=D.text.length-q.from.ch,D=q.to.line,r+=D.text.length-q.to.ch}return r}function ws(e){var r=e.display,L=e.doc;r.maxLine=Un(L,L.first),r.maxLineLength=Cs(r.maxLine),r.maxLineChanged=!0,L.iter(function(D){var j=Cs(D);j>r.maxLineLength&&(r.maxLineLength=j,r.maxLine=D)})}var ho=function(e,r,L){this.text=e,$r(this,r),this.height=L?L(this):1};ho.prototype.lineNo=function(){return Kr(this)},He(ho);function As(e,r,L,D){e.text=r,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Yi(e),$r(e,L);var j=D?D(e):1;j!=e.height&&aa(e,j)}function mr(e){e.parent=null,Yi(e)}var Vr={},ur={};function oa(e,r){if(!e||/^\s*$/.test(e))return null;var L=r.addModeClass?ur:Vr;return L[e]||(L[e]=e.replace(/\S+/g,"cm-$&"))}function wa(e,r){var L=T("span",null,null,n?"padding-right: .1px":null),D={pre:T("pre",[L],"CodeMirror-line"),content:L,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};r.measure={};for(var j=0;j<=(r.rest?r.rest.length:0);j++){var q=j?r.rest[j-1]:r.line,ue=void 0;D.pos=0,D.addToken=Ba,Ct(e.display.measure)&&(ue=zt(q,e.doc.direction))&&(D.addToken=Ma(D.addToken,ue)),D.map=[];var ye=r!=e.display.externalMeasured&&Kr(q);Po(q,D,Qt(e,q,ye)),q.styleClasses&&(q.styleClasses.bgClass&&(D.bgClass=S(q.styleClasses.bgClass,D.bgClass||"")),q.styleClasses.textClass&&(D.textClass=S(q.styleClasses.textClass,D.textClass||""))),D.map.length==0&&D.map.push(0,0,D.content.appendChild(Zt(e.display.measure))),j==0?(r.measure.map=D.map,r.measure.cache={}):((r.measure.maps||(r.measure.maps=[])).push(D.map),(r.measure.caches||(r.measure.caches=[])).push({}))}if(n){var Ee=D.content.lastChild;(/\bcm-tab\b/.test(Ee.className)||Ee.querySelector&&Ee.querySelector(".cm-tab"))&&(D.content.className="cm-tab-wrap-hack")}return ut(e,"renderLine",e,r.line,D.pre),D.pre.className&&(D.textClass=S(D.pre.className,D.textClass||"")),D}function ei(e){var r=g("span","\u2022","cm-invalidchar");return r.title="\\u"+e.charCodeAt(0).toString(16),r.setAttribute("aria-label",r.title),r}function Ba(e,r,L,D,j,q,ue){if(!r)return;var ye=e.splitSpaces?Ni(r,e.trailingSpace):r,Ee=e.cm.state.specialChars,De=!1,ot;if(!Ee.test(r))e.col+=r.length,ot=document.createTextNode(ye),e.map.push(e.pos,e.pos+r.length,ot),M&&x<9&&(De=!0),e.pos+=r.length;else{ot=document.createDocumentFragment();for(var At=0;;){Ee.lastIndex=At;var Nt=Ee.exec(r),Pt=Nt?Nt.index-At:r.length-At;if(Pt){var hn=document.createTextNode(ye.slice(At,At+Pt));M&&x<9?ot.appendChild(g("span",[hn])):ot.appendChild(hn),e.map.push(e.pos,e.pos+Pt,hn),e.col+=Pt,e.pos+=Pt}if(!Nt)break;At+=Pt+1;var bn=void 0;if(Nt[0]==" "){var Fn=e.cm.options.tabSize,Zn=Fn-e.col%Fn;bn=ot.appendChild(g("span",me(Zn),"cm-tab")),bn.setAttribute("role","presentation"),bn.setAttribute("cm-text"," "),e.col+=Zn}else Nt[0]=="\r"||Nt[0]==`
|
|
`?(bn=ot.appendChild(g("span",Nt[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),bn.setAttribute("cm-text",Nt[0]),e.col+=1):(bn=e.cm.options.specialCharPlaceholder(Nt[0]),bn.setAttribute("cm-text",Nt[0]),M&&x<9?ot.appendChild(g("span",[bn])):ot.appendChild(bn),e.col+=1);e.map.push(e.pos,e.pos+1,bn),e.pos++}}if(e.trailingSpace=ye.charCodeAt(r.length-1)==32,L||D||j||De||q||ue){var sr=L||"";D&&(sr+=D),j&&(sr+=j);var $n=g("span",[ot],sr,q);if(ue)for(var br in ue)ue.hasOwnProperty(br)&&br!="style"&&br!="class"&&$n.setAttribute(br,ue[br]);return e.content.appendChild($n)}e.content.appendChild(ot)}function Ni(e,r){if(e.length>1&&!/ /.test(e))return e;for(var L=r,D="",j=0;j<e.length;j++){var q=e.charAt(j);q==" "&&L&&(j==e.length-1||e.charCodeAt(j+1)==32)&&(q="\xA0"),D+=q,L=q==" "}return D}function Ma(e,r){return function(L,D,j,q,ue,ye,Ee){j=j?j+" cm-force-border":"cm-force-border";for(var De=L.pos,ot=De+D.length;;){for(var At=void 0,Nt=0;Nt<r.length&&!(At=r[Nt],At.to>De&&At.from<=De);Nt++);if(At.to>=ot)return e(L,D,j,q,ue,ye,Ee);e(L,D.slice(0,At.to-De),j,q,null,ye,Ee),q=null,D=D.slice(At.to-De),De=At.to}}}function xa(e,r,L,D){var j=!D&&L.widgetNode;j&&e.map.push(e.pos,e.pos+r,j),!D&&e.cm.display.input.needsContentAttribute&&(j||(j=e.content.appendChild(document.createElement("span"))),j.setAttribute("cm-marker",L.id)),j&&(e.cm.display.input.setUneditable(j),e.content.appendChild(j)),e.pos+=r,e.trailingSpace=!1}function Po(e,r,L){var D=e.markedSpans,j=e.text,q=0;if(!D){for(var ue=1;ue<L.length;ue+=2)r.addToken(r,j.slice(q,q=L[ue]),oa(L[ue+1],r.cm.options));return}for(var ye=j.length,Ee=0,De=1,ot="",At,Nt,Pt=0,hn,bn,Fn,Zn,sr;;){if(Pt==Ee){hn=bn=Fn=Nt="",sr=null,Zn=null,Pt=Infinity;for(var $n=[],br=void 0,Zr=0;Zr<D.length;++Zr){var Hr=D[Zr],Fa=Hr.marker;if(Fa.type=="bookmark"&&Hr.from==Ee&&Fa.widgetNode)$n.push(Fa);else if(Hr.from<=Ee&&(Hr.to==null||Hr.to>Ee||Fa.collapsed&&Hr.to==Ee&&Hr.from==Ee)){if(Hr.to!=null&&Hr.to!=Ee&&Pt>Hr.to&&(Pt=Hr.to,bn=""),Fa.className&&(hn+=" "+Fa.className),Fa.css&&(Nt=(Nt?Nt+";":"")+Fa.css),Fa.startStyle&&Hr.from==Ee&&(Fn+=" "+Fa.startStyle),Fa.endStyle&&Hr.to==Pt&&(br||(br=[])).push(Fa.endStyle,Hr.to),Fa.title&&((sr||(sr={})).title=Fa.title),Fa.attributes)for(var ji in Fa.attributes)(sr||(sr={}))[ji]=Fa.attributes[ji];Fa.collapsed&&(!Zn||ca(Zn.marker,Fa)<0)&&(Zn=Hr)}else Hr.from>Ee&&Pt>Hr.from&&(Pt=Hr.from)}if(br)for(var Co=0;Co<br.length;Co+=2)br[Co+1]==Pt&&(bn+=" "+br[Co]);if(!Zn||Zn.from==Ee)for(var oo=0;oo<$n.length;++oo)xa(r,0,$n[oo]);if(Zn&&(Zn.from||0)==Ee){if(xa(r,(Zn.to==null?ye+1:Zn.to)-Ee,Zn.marker,Zn.from==null),Zn.to==null)return;Zn.to==Ee&&(Zn=!1)}}if(Ee>=ye)break;for(var ds=Math.min(ye,Pt);;){if(ot){var Qo=Ee+ot.length;if(!Zn){var po=Qo>ds?ot.slice(0,ds-Ee):ot;r.addToken(r,po,At?At+hn:hn,Fn,Ee+po.length==Pt?bn:"",Nt,sr)}if(Qo>=ds){ot=ot.slice(ds-Ee),Ee=ds;break}Ee=Qo,Fn=""}ot=j.slice(q,q=L[De++]),At=oa(L[De++],r.cm.options)}}}function Za(e,r,L){this.line=r,this.rest=Mo(r),this.size=this.rest?Kr(le(this.rest))-L+1:1,this.node=this.text=null,this.hidden=no(e,r)}function ro(e,r,L){for(var D=[],j,q=r;q<L;q=j){var ue=new Za(e.doc,Un(e.doc,q),q);j=q+ue.size,D.push(ue)}return D}var so=null;function To(e){so?so.ops.push(e):e.ownsGroup=so={ops:[e],delayedCallbacks:[]}}function Vs(e){var r=e.delayedCallbacks,L=0;do{for(;L<r.length;L++)r[L].call(null);for(var D=0;D<e.ops.length;D++){var j=e.ops[D];if(j.cursorActivityHandlers)for(;j.cursorActivityCalled<j.cursorActivityHandlers.length;)j.cursorActivityHandlers[j.cursorActivityCalled++].call(null,j.cm)}}while(L<r.length)}function ti(e,r){var L=e.ownsGroup;if(!L)return;try{Vs(L)}finally{so=null,r(L)}}var Sa=null;function Ia(e,r){var L=Et(e,r);if(!L.length)return;var D=Array.prototype.slice.call(arguments,2),j;so?j=so.delayedCallbacks:Sa?j=Sa:(j=Sa=[],setTimeout(Eo,0));for(var q=function(ye){j.push(function(){return L[ye].apply(null,D)})},ue=0;ue<L.length;++ue)q(ue)}function Eo(){var e=Sa;Sa=null;for(var r=0;r<e.length;++r)e[r]()}function xs(e,r,L,D){for(var j=0;j<r.changes.length;j++){var q=r.changes[j];q=="text"?il(e,r):q=="gutter"?Js(e,r,L,D):q=="class"?ml(e,r):q=="widget"&&Ps(e,r,D)}r.changes=null}function Ts(e){return e.node==e.text&&(e.node=g("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),M&&x<8&&(e.node.style.zIndex=2)),e.node}function Xs(e,r){var L=r.bgClass?r.bgClass+" "+(r.line.bgClass||""):r.line.bgClass;if(L&&(L+=" CodeMirror-linebackground"),r.background)L?r.background.className=L:(r.background.parentNode.removeChild(r.background),r.background=null);else if(L){var D=Ts(r);r.background=D.insertBefore(g("div",null,L),D.firstChild),e.display.input.setUneditable(r.background)}}function Ys(e,r){var L=e.display.externalMeasured;return L&&L.line==r.line?(e.display.externalMeasured=null,r.measure=L.measure,L.built):wa(e,r)}function il(e,r){var L=r.text.className,D=Ys(e,r);r.text==r.node&&(r.node=D.pre),r.text.parentNode.replaceChild(D.pre,r.text),r.text=D.pre,D.bgClass!=r.bgClass||D.textClass!=r.textClass?(r.bgClass=D.bgClass,r.textClass=D.textClass,ml(e,r)):L&&(r.text.className=L)}function ml(e,r){Xs(e,r),r.line.wrapClass?Ts(r).className=r.line.wrapClass:r.node!=r.text&&(r.node.className="");var L=r.textClass?r.textClass+" "+(r.line.textClass||""):r.line.textClass;r.text.className=L||""}function Js(e,r,L,D){if(r.gutter&&(r.node.removeChild(r.gutter),r.gutter=null),r.gutterBackground&&(r.node.removeChild(r.gutterBackground),r.gutterBackground=null),r.line.gutterClass){var j=Ts(r);r.gutterBackground=g("div",null,"CodeMirror-gutter-background "+r.line.gutterClass,"left: "+(e.options.fixedGutter?D.fixedPos:-D.gutterTotalWidth)+"px; width: "+D.gutterTotalWidth+"px"),e.display.input.setUneditable(r.gutterBackground),j.insertBefore(r.gutterBackground,r.text)}var q=r.line.gutterMarkers;if(e.options.lineNumbers||q){var ue=Ts(r),ye=r.gutter=g("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?D.fixedPos:-D.gutterTotalWidth)+"px");if(e.display.input.setUneditable(ye),ue.insertBefore(ye,r.text),r.line.gutterClass&&(ye.className+=" "+r.line.gutterClass),e.options.lineNumbers&&(!q||!q["CodeMirror-linenumbers"])&&(r.lineNumber=ye.appendChild(g("div",Ei(e.options,L),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+D.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),q)for(var Ee=0;Ee<e.display.gutterSpecs.length;++Ee){var De=e.display.gutterSpecs[Ee].className,ot=q.hasOwnProperty(De)&&q[De];ot&&ye.appendChild(g("div",[ot],"CodeMirror-gutter-elt","left: "+D.gutterLeft[De]+"px; width: "+D.gutterWidth[De]+"px"))}}}function Ps(e,r,L){r.alignable&&(r.alignable=null);for(var D=C("CodeMirror-linewidget"),j=r.node.firstChild,q=void 0;j;j=q)q=j.nextSibling,D.test(j.className)&&r.node.removeChild(j);Us(e,r,L)}function gl(e,r,L,D){var j=Ys(e,r);return r.text=r.node=j.pre,j.bgClass&&(r.bgClass=j.bgClass),j.textClass&&(r.textClass=j.textClass),ml(e,r),Js(e,r,L,D),Us(e,r,D),r.node}function Us(e,r,L){if(Ns(e,r.line,r,L,!0),r.rest)for(var D=0;D<r.rest.length;D++)Ns(e,r.rest[D],r,L,!1)}function Ns(e,r,L,D,j){if(!r.widgets)return;for(var q=Ts(L),ue=0,ye=r.widgets;ue<ye.length;++ue){var Ee=ye[ue],De=g("div",[Ee.node],"CodeMirror-linewidget"+(Ee.className?" "+Ee.className:""));Ee.handleMouseEvents||De.setAttribute("cm-ignore-events","true"),gi(Ee,De,L,D),e.display.input.setUneditable(De),j&&Ee.above?q.insertBefore(De,L.gutter||L.text):q.appendChild(De),Ia(Ee,"redraw")}}function gi(e,r,L,D){if(e.noHScroll){(L.alignable||(L.alignable=[])).push(r);var j=D.wrapperWidth;r.style.left=D.fixedPos+"px",e.coverGutter||(j-=D.gutterTotalWidth,r.style.paddingLeft=D.gutterTotalWidth+"px"),r.style.width=j+"px"}e.coverGutter&&(r.style.zIndex=5,r.style.position="relative",e.noHScroll||(r.style.marginLeft=-D.gutterTotalWidth+"px"))}function Hs(e){if(e.height!=null)return e.height;var r=e.doc.cm;if(!r)return 0;if(!y(document.body,e.node)){var L="position: relative;";e.coverGutter&&(L+="margin-left: -"+r.display.gutters.offsetWidth+"px;"),e.noHScroll&&(L+="width: "+r.display.wrapper.clientWidth+"px;"),A(r.display.measure,g("div",[e.node],null,L))}return e.height=e.node.parentNode.offsetHeight}function $o(e,r){for(var L=Xe(r);L!=e.wrapper;L=L.parentNode)if(!L||L.nodeType==1&&L.getAttribute("cm-ignore-events")=="true"||L.parentNode==e.sizer&&L!=e.mover)return!0}function ol(e){return e.lineSpace.offsetTop}function $e(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function ft(e){if(e.cachedPaddingH)return e.cachedPaddingH;var r=A(e.measure,g("pre","x","CodeMirror-line-like")),L=window.getComputedStyle?window.getComputedStyle(r):r.currentStyle,D={left:parseInt(L.paddingLeft),right:parseInt(L.paddingRight)};return!isNaN(D.left)&&!isNaN(D.right)&&(e.cachedPaddingH=D),D}function wt(e){return ee-e.display.nativeBarWidth}function nt(e){return e.display.scroller.clientWidth-wt(e)-e.display.barWidth}function Te(e){return e.display.scroller.clientHeight-wt(e)-e.display.barHeight}function Ge(e,r,L){var D=e.options.lineWrapping,j=D&&nt(e);if(!r.measure.heights||D&&r.measure.width!=j){var q=r.measure.heights=[];if(D){r.measure.width=j;for(var ue=r.text.firstChild.getClientRects(),ye=0;ye<ue.length-1;ye++){var Ee=ue[ye],De=ue[ye+1];Math.abs(Ee.bottom-De.bottom)>2&&q.push((Ee.bottom+De.top)/2-L.top)}}q.push(L.bottom-L.top)}}function Be(e,r,L){if(e.line==r)return{map:e.measure.map,cache:e.measure.cache};for(var D=0;D<e.rest.length;D++)if(e.rest[D]==r)return{map:e.measure.maps[D],cache:e.measure.caches[D]};for(var j=0;j<e.rest.length;j++)if(Kr(e.rest[j])>L)return{map:e.measure.maps[j],cache:e.measure.caches[j],before:!0}}function it(e,r){r=ci(r);var L=Kr(r),D=e.display.externalMeasured=new Za(e.doc,r,L);D.lineN=L;var j=D.built=wa(e,D);return D.text=j.pre,A(e.display.lineMeasure,j.pre),D}function st(e,r,L,D){return Mt(e,dt(e,r),L,D)}function Tt(e,r){if(r>=e.display.viewFrom&&r<e.display.viewTo)return e.display.view[rr(e,r)];var L=e.display.externalMeasured;if(L&&r>=L.lineN&&r<L.lineN+L.size)return L}function dt(e,r){var L=Kr(r),D=Tt(e,L);D&&!D.text?D=null:D&&D.changes&&(xs(e,D,L,Kn(e)),e.curOp.forceUpdate=!0),D||(D=it(e,r));var j=Be(D,r,L);return{line:r,view:D,rect:null,map:j.map,cache:j.cache,before:j.before,hasHeights:!1}}function Mt(e,r,L,D,j){r.before&&(L=-1);var q=L+(D||""),ue;return r.cache.hasOwnProperty(q)?ue=r.cache[q]:(r.rect||(r.rect=r.view.text.getBoundingClientRect()),r.hasHeights||(Ge(e,r.view,r.rect),r.hasHeights=!0),ue=Bt(e,r,L,D),ue.bogus||(r.cache[q]=ue)),{left:ue.left,right:ue.right,top:j?ue.rtop:ue.top,bottom:j?ue.rbottom:ue.bottom}}var tn={left:0,right:0,top:0,bottom:0};function lt(e,r,L){for(var D,j,q,ue,ye,Ee,De=0;De<e.length;De+=3)if(ye=e[De],Ee=e[De+1],r<ye?(j=0,q=1,ue="left"):r<Ee?(j=r-ye,q=j+1):(De==e.length-3||r==Ee&&e[De+3]>r)&&(q=Ee-ye,j=q-1,r>=Ee&&(ue="right")),j!=null){if(D=e[De+2],ye==Ee&&L==(D.insertLeft?"left":"right")&&(ue=L),L=="left"&&j==0)for(;De&&e[De-2]==e[De-3]&&e[De-1].insertLeft;)D=e[(De-=3)+2],ue="left";if(L=="right"&&j==Ee-ye)for(;De<e.length-3&&e[De+3]==e[De+4]&&!e[De+5].insertLeft;)D=e[(De+=3)+2],ue="right";break}return{node:D,start:j,end:q,collapse:ue,coverStart:ye,coverEnd:Ee}}function qe(e,r){var L=tn;if(r=="left")for(var D=0;D<e.length&&!((L=e[D]).left!=L.right);D++);else for(var j=e.length-1;j>=0&&!((L=e[j]).left!=L.right);j--);return L}function Bt(e,r,L,D){var j=lt(r.map,L,D),q=j.node,ue=j.start,ye=j.end,Ee=j.collapse,De;if(q.nodeType==3){for(var ot=0;ot<4;ot++){for(;ue&&Ue(r.line.text.charAt(j.coverStart+ue));)--ue;for(;j.coverStart+ye<j.coverEnd&&Ue(r.line.text.charAt(j.coverStart+ye));)++ye;if(M&&x<9&&ue==0&&ye==j.coverEnd-j.coverStart?De=q.parentNode.getBoundingClientRect():De=qe(m(q,ue,ye).getClientRects(),D),De.left||De.right||ue==0)break;ye=ue,ue=ue-1,Ee="right"}M&&x<11&&(De=$t(e.display.measure,De))}else{ue>0&&(Ee=D="right");var At;e.options.lineWrapping&&(At=q.getClientRects()).length>1?De=At[D=="right"?At.length-1:0]:De=q.getBoundingClientRect()}if(M&&x<9&&!ue&&(!De||!De.left&&!De.right)){var Nt=q.parentNode.getClientRects()[0];Nt?De={left:Nt.left,right:Nt.left+yn(e.display),top:Nt.top,bottom:Nt.bottom}:De=tn}for(var Pt=De.top-r.rect.top,hn=De.bottom-r.rect.top,bn=(Pt+hn)/2,Fn=r.view.measure.heights,Zn=0;Zn<Fn.length-1&&!(bn<Fn[Zn]);Zn++);var sr=Zn?Fn[Zn-1]:0,$n=Fn[Zn],br={left:(Ee=="right"?De.right:De.left)-r.rect.left,right:(Ee=="left"?De.left:De.right)-r.rect.left,top:sr,bottom:$n};return!De.left&&!De.right&&(br.bogus=!0),e.options.singleCursorHeightPerLine||(br.rtop=Pt,br.rbottom=hn),br}function $t(e,r){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!je(e))return r;var L=screen.logicalXDPI/screen.deviceXDPI,D=screen.logicalYDPI/screen.deviceYDPI;return{left:r.left*L,right:r.right*L,top:r.top*D,bottom:r.bottom*D}}function cn(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var r=0;r<e.rest.length;r++)e.measure.caches[r]={}}function Kt(e){e.display.externalMeasure=null,l(e.display.lineMeasure);for(var r=0;r<e.display.view.length;r++)cn(e.display.view[r])}function _n(e){Kt(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function rn(){return a&&d?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function jt(){return a&&d?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function An(e){var r=0;if(e.widgets)for(var L=0;L<e.widgets.length;++L)e.widgets[L].above&&(r+=Hs(e.widgets[L]));return r}function qt(e,r,L,D,j){if(!j){var q=An(r);L.top+=q,L.bottom+=q}if(D=="line")return L;D||(D="local");var ue=xo(r);if(D=="local"?ue+=ol(e.display):ue-=e.display.viewOffset,D=="page"||D=="window"){var ye=e.display.lineSpace.getBoundingClientRect();ue+=ye.top+(D=="window"?0:jt());var Ee=ye.left+(D=="window"?0:rn());L.left+=Ee,L.right+=Ee}return L.top+=ue,L.bottom+=ue,L}function En(e,r,L){if(L=="div")return r;var D=r.left,j=r.top;if(L=="page")D-=rn(),j-=jt();else if(L=="local"||!L){var q=e.display.sizer.getBoundingClientRect();D+=q.left,j+=q.top}var ue=e.display.lineSpace.getBoundingClientRect();return{left:D-ue.left,top:j-ue.top}}function kn(e,r,L,D,j){return D||(D=Un(e.doc,r.line)),qt(e,D,st(e,D,r.ch,j),L)}function Yt(e,r,L,D,j,q){D=D||Un(e.doc,r.line),j||(j=dt(e,D));function ue(hn,bn){var Fn=Mt(e,j,hn,bn?"right":"left",q);return bn?Fn.left=Fn.right:Fn.right=Fn.left,qt(e,D,Fn,L)}var ye=zt(D,e.doc.direction),Ee=r.ch,De=r.sticky;if(Ee>=D.text.length?(Ee=D.text.length,De="before"):Ee<=0&&(Ee=0,De="after"),!ye)return ue(De=="before"?Ee-1:Ee,De=="before");function ot(hn,bn,Fn){var Zn=ye[bn],sr=Zn.level==1;return ue(Fn?hn-1:hn,sr!=Fn)}var At=ht(ye,Ee,De),Nt=Rt,Pt=ot(Ee,At,De=="before");return Nt!=null&&(Pt.other=ot(Ee,Nt,De!="before")),Pt}function wn(e,r){var L=0;r=W(e.doc,r),e.options.lineWrapping||(L=yn(e.display)*r.ch);var D=Un(e.doc,r.line),j=xo(D)+ol(e.display);return{left:L,right:L,top:j,bottom:j+D.height}}function ln(e,r,L,D,j){var q=_e(e,r,L);return q.xRel=j,D&&(q.outside=D),q}function xn(e,r,L){var D=e.doc;if(L+=e.display.viewOffset,L<0)return ln(D.first,0,null,-1,-1);var j=_a(D,L),q=D.first+D.size-1;if(j>q)return ln(D.first+D.size-1,Un(D,q).text.length,null,1,1);r<0&&(r=0);for(var ue=Un(D,j);;){var ye=hr(e,ue,j,r,L),Ee=mo(ue,ye.ch+(ye.xRel>0||ye.outside>0?1:0));if(!Ee)return ye;var De=Ee.find(1);if(De.line==j)return De;ue=Un(D,j=De.line)}}function an(e,r,L,D){D-=An(r);var j=r.text.length,q=ct(function(ue){return Mt(e,L,ue-1).bottom<=D},j,0);return j=ct(function(ue){return Mt(e,L,ue).top>D},q,j),{begin:q,end:j}}function Vt(e,r,L,D){L||(L=dt(e,r));var j=qt(e,r,Mt(e,L,D),"line").top;return an(e,r,L,j)}function Sn(e,r,L,D){return e.bottom<=L?!1:e.top>L?!0:(D?e.left:e.right)>r}function hr(e,r,L,D,j){j-=xo(r);var q=dt(e,r),ue=An(r),ye=0,Ee=r.text.length,De=!0,ot=zt(r,e.doc.direction);if(ot){var At=(e.options.lineWrapping?Dn:pn)(e,r,L,q,ot,D,j);De=At.level!=1,ye=De?At.from:At.to-1,Ee=De?At.to:At.from-1}var Nt=null,Pt=null,hn=ct(function(Zr){var Hr=Mt(e,q,Zr);return Hr.top+=ue,Hr.bottom+=ue,Sn(Hr,D,j,!1)?(Hr.top<=j&&Hr.left<=D&&(Nt=Zr,Pt=Hr),!0):!1},ye,Ee),bn,Fn,Zn=!1;if(Pt){var sr=D-Pt.left<Pt.right-D,$n=sr==De;hn=Nt+($n?0:1),Fn=$n?"after":"before",bn=sr?Pt.left:Pt.right}else{!De&&(hn==Ee||hn==ye)&&hn++,Fn=hn==0?"after":hn==r.text.length?"before":Mt(e,q,hn-(De?1:0)).bottom+ue<=j==De?"after":"before";var br=Yt(e,_e(L,hn,Fn),"line",r,q);bn=br.left,Zn=j<br.top?-1:j>=br.bottom?1:0}return hn=Ne(r.text,hn,1),ln(L,hn,Fn,Zn,D-bn)}function pn(e,r,L,D,j,q,ue){var ye=ct(function(At){var Nt=j[At],Pt=Nt.level!=1;return Sn(Yt(e,_e(L,Pt?Nt.to:Nt.from,Pt?"before":"after"),"line",r,D),q,ue,!0)},0,j.length-1),Ee=j[ye];if(ye>0){var De=Ee.level!=1,ot=Yt(e,_e(L,De?Ee.from:Ee.to,De?"after":"before"),"line",r,D);Sn(ot,q,ue,!0)&&ot.top>ue&&(Ee=j[ye-1])}return Ee}function Dn(e,r,L,D,j,q,ue){var ye=an(e,r,D,ue),Ee=ye.begin,De=ye.end;/\s/.test(r.text.charAt(De-1))&&De--;for(var ot=null,At=null,Nt=0;Nt<j.length;Nt++){var Pt=j[Nt];if(Pt.from>=De||Pt.to<=Ee)continue;var hn=Pt.level!=1,bn=Mt(e,D,hn?Math.min(De,Pt.to)-1:Math.max(Ee,Pt.from)).right,Fn=bn<q?q-bn+1e9:bn-q;(!ot||At>Fn)&&(ot=Pt,At=Fn)}return ot||(ot=j[j.length-1]),ot.from<Ee&&(ot={from:Ee,to:ot.to,level:ot.level}),ot.to>De&&(ot={from:ot.from,to:De,level:ot.level}),ot}var Nn;function Gn(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Nn==null){Nn=g("pre",null,"CodeMirror-line-like");for(var r=0;r<49;++r)Nn.appendChild(document.createTextNode("x")),Nn.appendChild(g("br"));Nn.appendChild(document.createTextNode("x"))}A(e.measure,Nn);var L=Nn.offsetHeight/50;return L>3&&(e.cachedTextHeight=L),l(e.measure),L||1}function yn(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var r=g("span","xxxxxxxxxx"),L=g("pre",[r],"CodeMirror-line-like");A(e.measure,L);var D=r.getBoundingClientRect(),j=(D.right-D.left)/10;return j>2&&(e.cachedCharWidth=j),j||10}function Kn(e){for(var r=e.display,L={},D={},j=r.gutters.clientLeft,q=r.gutters.firstChild,ue=0;q;q=q.nextSibling,++ue){var ye=e.display.gutterSpecs[ue].className;L[ye]=q.offsetLeft+q.clientLeft+j,D[ye]=q.clientWidth}return{fixedPos:or(r),gutterTotalWidth:r.gutters.offsetWidth,gutterLeft:L,gutterWidth:D,wrapperWidth:r.wrapper.clientWidth}}function or(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function gr(e){var r=Gn(e.display),L=e.options.lineWrapping,D=L&&Math.max(5,e.display.scroller.clientWidth/yn(e.display)-3);return function(j){if(no(e.doc,j))return 0;var q=0;if(j.widgets)for(var ue=0;ue<j.widgets.length;ue++)j.widgets[ue].height&&(q+=j.widgets[ue].height);return L?q+(Math.ceil(j.text.length/D)||1)*r:q+r}}function Ur(e){var r=e.doc,L=gr(e);r.iter(function(D){var j=L(D);j!=D.height&&aa(D,j)})}function er(e,r,L,D){var j=e.display;if(!L&&Xe(r).getAttribute("cm-not-content")=="true")return null;var q,ue,ye=j.lineSpace.getBoundingClientRect();try{q=r.clientX-ye.left,ue=r.clientY-ye.top}catch(At){return null}var Ee=xn(e,q,ue),De;if(D&&Ee.xRel>0&&(De=Un(e.doc,Ee.line).text).length==Ee.ch){var ot=z(De,De.length,e.options.tabSize)-De.length;Ee=_e(Ee.line,Math.max(0,Math.round((q-ft(e.display).left)/yn(e.display))-ot))}return Ee}function rr(e,r){if(r>=e.display.viewTo)return null;if(r-=e.display.viewFrom,r<0)return null;for(var L=e.display.view,D=0;D<L.length;D++)if(r-=L[D].size,r<0)return D}function Lr(e,r,L,D){r==null&&(r=e.doc.first),L==null&&(L=e.doc.first+e.doc.size),D||(D=0);var j=e.display;if(D&&L<j.viewTo&&(j.updateLineNumbers==null||j.updateLineNumbers>r)&&(j.updateLineNumbers=r),e.curOp.viewChanged=!0,r>=j.viewTo)ya&&ii(e.doc,r)<j.viewTo&&_r(e);else if(L<=j.viewFrom)ya&&go(e.doc,L+D)>j.viewFrom?_r(e):(j.viewFrom+=D,j.viewTo+=D);else if(r<=j.viewFrom&&L>=j.viewTo)_r(e);else if(r<=j.viewFrom){var q=sa(e,L,L+D,1);q?(j.view=j.view.slice(q.index),j.viewFrom=q.lineN,j.viewTo+=D):_r(e)}else if(L>=j.viewTo){var ue=sa(e,r,r,-1);ue?(j.view=j.view.slice(0,ue.index),j.viewTo=ue.lineN):_r(e)}else{var ye=sa(e,r,r,-1),Ee=sa(e,L,L+D,1);ye&&Ee?(j.view=j.view.slice(0,ye.index).concat(ro(e,ye.lineN,Ee.lineN)).concat(j.view.slice(Ee.index)),j.viewTo+=D):_r(e)}var De=j.externalMeasured;De&&(L<De.lineN?De.lineN+=D:r<De.lineN+De.size&&(j.externalMeasured=null))}function Er(e,r,L){e.curOp.viewChanged=!0;var D=e.display,j=e.display.externalMeasured;if(j&&r>=j.lineN&&r<j.lineN+j.size&&(D.externalMeasured=null),r<D.viewFrom||r>=D.viewTo)return;var q=D.view[rr(e,r)];if(q.node==null)return;var ue=q.changes||(q.changes=[]);$(ue,L)==-1&&ue.push(L)}function _r(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function sa(e,r,L,D){var j=rr(e,r),q,ue=e.display.view;if(!ya||L==e.doc.first+e.doc.size)return{index:j,lineN:L};for(var ye=e.display.viewFrom,Ee=0;Ee<j;Ee++)ye+=ue[Ee].size;if(ye!=r){if(D>0){if(j==ue.length-1)return null;q=ye+ue[j].size-r,j++}else q=ye-r;r+=q,L+=q}for(;ii(e.doc,L)!=L;){if(j==(D<0?0:ue.length-1))return null;L+=D*ue[j-(D<0?1:0)].size,j+=D}return{index:j,lineN:L}}function ta(e,r,L){var D=e.display,j=D.view;j.length==0||r>=D.viewTo||L<=D.viewFrom?(D.view=ro(e,r,L),D.viewFrom=r):(D.viewFrom>r?D.view=ro(e,r,D.viewFrom).concat(D.view):D.viewFrom<r&&(D.view=D.view.slice(rr(e,r))),D.viewFrom=r,D.viewTo<L?D.view=D.view.concat(ro(e,D.viewTo,L)):D.viewTo>L&&(D.view=D.view.slice(0,rr(e,L)))),D.viewTo=L}function tr(e){for(var r=e.display.view,L=0,D=0;D<r.length;D++){var j=r[D];!j.hidden&&(!j.node||j.changes)&&++L}return L}function vr(e){e.display.input.showSelection(e.display.input.prepareSelection())}function ja(e,r){r===void 0&&(r=!0);for(var L=e.doc,D={},j=D.cursors=document.createDocumentFragment(),q=D.selection=document.createDocumentFragment(),ue=0;ue<L.sel.ranges.length;ue++){if(!r&&ue==L.sel.primIndex)continue;var ye=L.sel.ranges[ue];if(ye.from().line>=e.display.viewTo||ye.to().line<e.display.viewFrom)continue;var Ee=ye.empty();(Ee||e.options.showCursorWhenSelecting)&&ia(e,ye.head,j),Ee||vn(e,ye,q)}return D}function ia(e,r,L){var D=Yt(e,r,"div",null,null,!e.options.singleCursorHeightPerLine),j=L.appendChild(g("div","\xA0","CodeMirror-cursor"));if(j.style.left=D.left+"px",j.style.top=D.top+"px",j.style.height=Math.max(0,D.bottom-D.top)*e.options.cursorHeight+"px",D.other){var q=L.appendChild(g("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));q.style.display="",q.style.left=D.other.left+"px",q.style.top=D.other.top+"px",q.style.height=(D.other.bottom-D.other.top)*.85+"px"}}function Yn(e,r){return e.top-r.top||e.left-r.left}function vn(e,r,L){var D=e.display,j=e.doc,q=document.createDocumentFragment(),ue=ft(e.display),ye=ue.left,Ee=Math.max(D.sizerWidth,nt(e)-D.sizer.offsetLeft)-ue.right,De=j.direction=="ltr";function ot($n,br,Zr,Hr){br<0&&(br=0),br=Math.round(br),Hr=Math.round(Hr),q.appendChild(g("div",null,"CodeMirror-selected","position: absolute; left: "+$n+`px;
|
|
top: `+br+"px; width: "+(Zr==null?Ee-$n:Zr)+`px;
|
|
height: `+(Hr-br)+"px"))}function At($n,br,Zr){var Hr=Un(j,$n),Fa=Hr.text.length,ji,Co;function oo(po,Ko){return kn(e,_e($n,po),"div",Hr,Ko)}function ds(po,Ko,Lo){var zn=Vt(e,Hr,null,po),qi=Ko=="ltr"==(Lo=="after")?"left":"right",eo=Lo=="after"?zn.begin:zn.end-(/\s/.test(Hr.text.charAt(zn.end-1))?2:1);return oo(eo,qi)[qi]}var Qo=zt(Hr,j.direction);return mt(Qo,br||0,Zr==null?Fa:Zr,function(po,Ko,Lo,zn){var qi=Lo=="ltr",eo=oo(po,qi?"left":"right"),to=oo(Ko-1,qi?"right":"left"),Dl=br==null&&po==0,ni=Zr==null&&Ko==Fa,Va=zn==0,Es=!Qo||zn==Qo.length-1;if(to.top-eo.top<=3){var wo=(De?Dl:ni)&&Va,Ll=(De?ni:Dl)&&Es,al=wo?ye:(qi?eo:to).left,zs=Ll?Ee:(qi?to:eo).right;ot(al,eo.top,zs-al,eo.bottom)}else{var Cl,Jo,wl,Eu;qi?(Cl=De&&Dl&&Va?ye:eo.left,Jo=De?Ee:ds(po,Lo,"before"),wl=De?ye:ds(Ko,Lo,"after"),Eu=De&&ni&&Es?Ee:to.right):(Cl=De?ds(po,Lo,"before"):ye,Jo=!De&&Dl&&Va?Ee:eo.right,wl=!De&&ni&&Es?ye:to.left,Eu=De?ds(Ko,Lo,"after"):Ee),ot(Cl,eo.top,Jo-Cl,eo.bottom),eo.bottom<to.top&&ot(ye,eo.bottom,null,to.top),ot(wl,to.top,Eu-wl,to.bottom)}(!ji||Yn(eo,ji)<0)&&(ji=eo),Yn(to,ji)<0&&(ji=to),(!Co||Yn(eo,Co)<0)&&(Co=eo),Yn(to,Co)<0&&(Co=to)}),{start:ji,end:Co}}var Nt=r.from(),Pt=r.to();if(Nt.line==Pt.line)At(Nt.line,Nt.ch,Pt.ch);else{var hn=Un(j,Nt.line),bn=Un(j,Pt.line),Fn=ci(hn)==ci(bn),Zn=At(Nt.line,Nt.ch,Fn?hn.text.length+1:null).end,sr=At(Pt.line,Fn?0:null,Pt.ch).start;Fn&&(Zn.top<sr.top-2?(ot(Zn.right,Zn.top,null,Zn.bottom),ot(ye,sr.top,sr.left,sr.bottom)):ot(Zn.right,Zn.top,sr.left-Zn.right,Zn.bottom)),Zn.bottom<sr.top&&ot(ye,Zn.bottom,null,sr.top)}L.appendChild(q)}function yr(e){if(!e.state.focused)return;var r=e.display;clearInterval(r.blinker);var L=!0;r.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?r.blinker=setInterval(function(){e.hasFocus()||fr(e),r.cursorDiv.style.visibility=(L=!L)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(r.cursorDiv.style.visibility="hidden")}function oi(e){e.state.focused||(e.display.input.focus(),Ir(e))}function Cr(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,fr(e))},100)}function Ir(e,r){if(e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),e.options.readOnly=="nocursor")return;e.state.focused||(ut(e,"focus",e,r),e.state.focused=!0,N(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),n&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),yr(e)}function fr(e,r){if(e.state.delayingBlurEvent)return;e.state.focused&&(ut(e,"blur",e,r),e.state.focused=!1,b(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150)}function ar(e){for(var r=e.display,L=r.lineDiv.offsetTop,D=0;D<r.view.length;D++){var j=r.view[D],q=e.options.lineWrapping,ue=void 0,ye=0;if(j.hidden)continue;if(M&&x<8){var Ee=j.node.offsetTop+j.node.offsetHeight;ue=Ee-L,L=Ee}else{var De=j.node.getBoundingClientRect();ue=De.bottom-De.top,!q&&j.text.firstChild&&(ye=j.text.firstChild.getBoundingClientRect().right-De.left-1)}var ot=j.line.height-ue;if((ot>.005||ot<-.005)&&(aa(j.line,ue),Ln(j.line),j.rest))for(var At=0;At<j.rest.length;At++)Ln(j.rest[At]);if(ye>e.display.sizerWidth){var Nt=Math.ceil(ye/yn(e.display));Nt>e.display.maxLineLength&&(e.display.maxLineLength=Nt,e.display.maxLine=j.line,e.display.maxLineChanged=!0)}}}function Ln(e){if(e.widgets)for(var r=0;r<e.widgets.length;++r){var L=e.widgets[r],D=L.node.parentNode;D&&(L.height=D.offsetHeight)}}function Mn(e,r,L){var D=L&&L.top!=null?Math.max(0,L.top):e.scroller.scrollTop;D=Math.floor(D-ol(e));var j=L&&L.bottom!=null?L.bottom:D+e.wrapper.clientHeight,q=_a(r,D),ue=_a(r,j);if(L&&L.ensure){var ye=L.ensure.from.line,Ee=L.ensure.to.line;ye<q?(q=ye,ue=_a(r,xo(Un(r,ye))+e.wrapper.clientHeight)):Math.min(Ee,r.lastLine())>=ue&&(q=_a(r,xo(Un(r,Ee))-e.wrapper.clientHeight),ue=Ee)}return{from:q,to:Math.max(ue,q+1)}}function gn(e,r){if(vt(e,"scrollCursorIntoView"))return;var L=e.display,D=L.sizer.getBoundingClientRect(),j=null;if(r.top+D.top<0?j=!0:r.bottom+D.top>(window.innerHeight||document.documentElement.clientHeight)&&(j=!1),j!=null&&!i){var q=g("div","\u200B",null,`position: absolute;
|
|
top: `+(r.top-L.viewOffset-ol(e.display))+`px;
|
|
height: `+(r.bottom-r.top+wt(e)+L.barHeight)+`px;
|
|
left: `+r.left+"px; width: "+Math.max(2,r.right-r.left)+"px;");e.display.lineSpace.appendChild(q),q.scrollIntoView(j),e.display.lineSpace.removeChild(q)}}function qn(e,r,L,D){D==null&&(D=0);var j;!e.options.lineWrapping&&r==L&&(r=r.ch?_e(r.line,r.sticky=="before"?r.ch-1:r.ch,"after"):r,L=r.sticky=="before"?_e(r.line,r.ch+1,"before"):r);for(var q=0;q<5;q++){var ue=!1,ye=Yt(e,r),Ee=!L||L==r?ye:Yt(e,L);j={left:Math.min(ye.left,Ee.left),top:Math.min(ye.top,Ee.top)-D,right:Math.max(ye.left,Ee.left),bottom:Math.max(ye.bottom,Ee.bottom)+D};var De=cr(e,j),ot=e.doc.scrollTop,At=e.doc.scrollLeft;if(De.scrollTop!=null&&(Da(e,De.scrollTop),Math.abs(e.doc.scrollTop-ot)>1&&(ue=!0)),De.scrollLeft!=null&&(Qr(e,De.scrollLeft),Math.abs(e.doc.scrollLeft-At)>1&&(ue=!0)),!ue)break}return j}function na(e,r){var L=cr(e,r);L.scrollTop!=null&&Da(e,L.scrollTop),L.scrollLeft!=null&&Qr(e,L.scrollLeft)}function cr(e,r){var L=e.display,D=Gn(e.display);r.top<0&&(r.top=0);var j=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:L.scroller.scrollTop,q=Te(e),ue={};r.bottom-r.top>q&&(r.bottom=r.top+q);var ye=e.doc.height+$e(L),Ee=r.top<D,De=r.bottom>ye-D;if(r.top<j)ue.scrollTop=Ee?0:r.top;else if(r.bottom>j+q){var ot=Math.min(r.top,(De?ye:r.bottom)-q);ot!=j&&(ue.scrollTop=ot)}var At=e.options.fixedGutter?0:L.gutters.offsetWidth,Nt=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:L.scroller.scrollLeft-At,Pt=nt(e)-L.gutters.offsetWidth,hn=r.right-r.left>Pt;return hn&&(r.right=r.left+Pt),r.left<10?ue.scrollLeft=0:r.left<Nt?ue.scrollLeft=Math.max(0,r.left+At-(hn?0:10)):r.right>Pt+Nt-3&&(ue.scrollLeft=r.right+(hn?0:10)-Pt),ue}function jr(e,r){if(r==null)return;ha(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+r}function Pa(e){ha(e);var r=e.getCursor();e.curOp.scrollToPos={from:r,to:r,margin:e.options.cursorScrollMargin}}function da(e,r,L){(r!=null||L!=null)&&ha(e),r!=null&&(e.curOp.scrollLeft=r),L!=null&&(e.curOp.scrollTop=L)}function ba(e,r){ha(e),e.curOp.scrollToPos=r}function ha(e){var r=e.curOp.scrollToPos;if(r){e.curOp.scrollToPos=null;var L=wn(e,r.from),D=wn(e,r.to);Ta(e,L,D,r.margin)}}function Ta(e,r,L,D){var j=cr(e,{left:Math.min(r.left,L.left),top:Math.min(r.top,L.top)-D,right:Math.max(r.right,L.right),bottom:Math.max(r.bottom,L.bottom)+D});da(e,j.scrollLeft,j.scrollTop)}function Da(e,r){if(Math.abs(e.doc.scrollTop-r)<2)return;I||yo(e,{top:r}),Ua(e,r,!0),I&&yo(e),vo(e,100)}function Ua(e,r,L){if(r=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,r)),e.display.scroller.scrollTop==r&&!L)return;e.doc.scrollTop=r,e.display.scrollbars.setScrollTop(r),e.display.scroller.scrollTop!=r&&(e.display.scroller.scrollTop=r)}function Qr(e,r,L,D){if(r=Math.max(0,Math.min(r,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(L?r==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-r)<2)&&!D)return;e.doc.scrollLeft=r,la(e),e.display.scroller.scrollLeft!=r&&(e.display.scroller.scrollLeft=r),e.display.scrollbars.setScrollLeft(r)}function Wa(e){var r=e.display,L=r.gutters.offsetWidth,D=Math.round(e.doc.height+$e(e.display));return{clientHeight:r.scroller.clientHeight,viewHeight:r.wrapper.clientHeight,scrollWidth:r.scroller.scrollWidth,clientWidth:r.scroller.clientWidth,viewWidth:r.wrapper.clientWidth,barLeft:e.options.fixedGutter?L:0,docHeight:D,scrollHeight:D+wt(e)+r.barHeight,nativeBarWidth:r.nativeBarWidth,gutterWidth:L}}var Ea=function(e,r,L){this.cm=L;var D=this.vert=g("div",[g("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),j=this.horiz=g("div",[g("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");D.tabIndex=j.tabIndex=-1,e(D),e(j),Ve(D,"scroll",function(){D.clientHeight&&r(D.scrollTop,"vertical")}),Ve(j,"scroll",function(){j.clientWidth&&r(j.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,M&&x<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ea.prototype.update=function(e){var r=e.scrollWidth>e.clientWidth+1,L=e.scrollHeight>e.clientHeight+1,D=e.nativeBarWidth;if(L){this.vert.style.display="block",this.vert.style.bottom=r?D+"px":"0";var j=e.viewHeight-(r?D:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+j)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(r){this.horiz.style.display="block",this.horiz.style.right=L?D+"px":"0",this.horiz.style.left=e.barLeft+"px";var q=e.viewWidth-e.barLeft-(L?D:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+q)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(D==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:L?D:0,bottom:r?D:0}},Ea.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ea.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ea.prototype.zeroWidthHack=function(){var e=o&&!s?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Q,this.disableVert=new Q},Ea.prototype.enableZeroWidthBar=function(e,r,L){e.style.pointerEvents="auto";function D(){var j=e.getBoundingClientRect(),q=L=="vert"?document.elementFromPoint(j.right-1,(j.top+j.bottom)/2):document.elementFromPoint((j.right+j.left)/2,j.bottom-1);q!=e?e.style.pointerEvents="none":r.set(1e3,D)}r.set(1e3,D)},Ea.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var za=function(){};za.prototype.update=function(){return{bottom:0,right:0}},za.prototype.setScrollLeft=function(){},za.prototype.setScrollTop=function(){},za.prototype.clear=function(){};function hi(e,r){r||(r=Wa(e));var L=e.display.barWidth,D=e.display.barHeight;Ji(e,r);for(var j=0;j<4&&L!=e.display.barWidth||D!=e.display.barHeight;j++)L!=e.display.barWidth&&e.options.lineWrapping&&ar(e),Ji(e,Wa(e)),L=e.display.barWidth,D=e.display.barHeight}function Ji(e,r){var L=e.display,D=L.scrollbars.update(r);L.sizer.style.paddingRight=(L.barWidth=D.right)+"px",L.sizer.style.paddingBottom=(L.barHeight=D.bottom)+"px",L.heightForcer.style.borderBottom=D.bottom+"px solid transparent",D.right&&D.bottom?(L.scrollbarFiller.style.display="block",L.scrollbarFiller.style.height=D.bottom+"px",L.scrollbarFiller.style.width=D.right+"px"):L.scrollbarFiller.style.display="",D.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(L.gutterFiller.style.display="block",L.gutterFiller.style.height=D.bottom+"px",L.gutterFiller.style.width=r.gutterWidth+"px"):L.gutterFiller.style.display=""}var Li={native:Ea,null:za};function Ci(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&b(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Li[e.options.scrollbarStyle](function(r){e.display.wrapper.insertBefore(r,e.display.scrollbarFiller),Ve(r,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),r.setAttribute("cm-not-content","true")},function(r,L){L=="horizontal"?Qr(e,r):Da(e,r)},e),e.display.scrollbars.addClass&&N(e.display.wrapper,e.display.scrollbars.addClass)}var Uo=0;function Ao(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Uo},To(e.curOp)}function _o(e){var r=e.curOp;r&&ti(r,function(L){for(var D=0;D<L.ops.length;D++)L.ops[D].cm.curOp=null;as(L)})}function as(e){for(var r=e.ops,L=0;L<r.length;L++)fs(r[L]);for(var D=0;D<r.length;D++)is(r[D]);for(var j=0;j<r.length;j++)os(r[j]);for(var q=0;q<r.length;q++)So(r[q]);for(var ue=0;ue<r.length;ue++)ps(r[ue])}function fs(e){var r=e.cm,L=r.display;ss(r),e.updateMaxLine&&ws(r),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<L.viewFrom||e.scrollToPos.to.line>=L.viewTo)||L.maxLineChanged&&r.options.lineWrapping,e.update=e.mustUpdate&&new Ki(r,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function is(e){e.updatedDisplay=e.mustUpdate&&fo(e.cm,e.update)}function os(e){var r=e.cm,L=r.display;e.updatedDisplay&&ar(r),e.barMeasure=Wa(r),L.maxLineChanged&&!r.options.lineWrapping&&(e.adjustWidthTo=st(r,L.maxLine,L.maxLine.text.length).left+3,r.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(L.scroller.clientWidth,L.sizer.offsetLeft+e.adjustWidthTo+wt(r)+r.display.barWidth),e.maxScrollLeft=Math.max(0,L.sizer.offsetLeft+e.adjustWidthTo-nt(r))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=L.input.prepareSelection())}function So(e){var r=e.cm;e.adjustWidthTo!=null&&(r.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<r.doc.scrollLeft&&Qr(r,Math.min(r.display.scroller.scrollLeft,e.maxScrollLeft),!0),r.display.maxLineChanged=!1);var L=e.focus&&e.focus==U();e.preparedSelection&&r.display.input.showSelection(e.preparedSelection,L),(e.updatedDisplay||e.startHeight!=r.doc.height)&&hi(r,e.barMeasure),e.updatedDisplay&&Oa(r,e.barMeasure),e.selectionChanged&&yr(r),r.state.focused&&e.updateInput&&r.display.input.reset(e.typing),L&&oi(e.cm)}function ps(e){var r=e.cm,L=r.display,D=r.doc;if(e.updatedDisplay&&zo(r,e.update),L.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(L.wheelStartX=L.wheelStartY=null),e.scrollTop!=null&&Ua(r,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&Qr(r,e.scrollLeft,!0,!0),e.scrollToPos){var j=qn(r,W(D,e.scrollToPos.from),W(D,e.scrollToPos.to),e.scrollToPos.margin);gn(r,j)}var q=e.maybeHiddenMarkers,ue=e.maybeUnhiddenMarkers;if(q)for(var ye=0;ye<q.length;++ye)q[ye].lines.length||ut(q[ye],"hide");if(ue)for(var Ee=0;Ee<ue.length;++Ee)ue[Ee].lines.length&&ut(ue[Ee],"unhide");L.wrapper.offsetHeight&&(D.scrollTop=r.display.scroller.scrollTop),e.changeObjs&&ut(r,"changes",r,e.changeObjs),e.update&&e.update.finish()}function Qi(e,r){if(e.curOp)return r();Ao(e);try{return r()}finally{_o(e)}}function Aa(e,r){return function(){if(e.curOp)return r.apply(e,arguments);Ao(e);try{return r.apply(e,arguments)}finally{_o(e)}}}function wi(e){return function(){if(this.curOp)return e.apply(this,arguments);Ao(this);try{return e.apply(this,arguments)}finally{_o(this)}}}function vi(e){return function(){var r=this.cm;if(!r||r.curOp)return e.apply(this,arguments);Ao(r);try{return e.apply(this,arguments)}finally{_o(r)}}}function vo(e,r){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(r,F(uo,e))}function uo(e){var r=e.doc;if(r.highlightFrontier>=e.display.viewTo)return;var L=+new Date+e.options.workTime,D=dn(e,r.highlightFrontier),j=[];r.iter(D.line,Math.min(r.first+r.size,e.display.viewTo+500),function(q){if(D.line>=e.display.viewFrom){var ue=q.styles,ye=q.text.length>e.options.maxHighlightLength?mn(r.mode,D.state):null,Ee=et(e,q,D,!0);ye&&(D.state=ye),q.styles=Ee.styles;var De=q.styleClasses,ot=Ee.classes;ot?q.styleClasses=ot:De&&(q.styleClasses=null);for(var At=!ue||ue.length!=q.styles.length||De!=ot&&(!De||!ot||De.bgClass!=ot.bgClass||De.textClass!=ot.textClass),Nt=0;!At&&Nt<ue.length;++Nt)At=ue[Nt]!=q.styles[Nt];At&&j.push(D.line),q.stateAfter=D.save(),D.nextLine()}else q.text.length<=e.options.maxHighlightLength&&Cn(e,q.text,D),q.stateAfter=D.line%5==0?D.save():null,D.nextLine();if(+new Date>L)return vo(e,e.options.workDelay),!0}),r.highlightFrontier=D.line,r.modeFrontier=Math.max(r.modeFrontier,D.line),j.length&&Qi(e,function(){for(var q=0;q<j.length;q++)Er(e,j[q],"text")})}var Ki=function(e,r,L){var D=e.display;this.viewport=r,this.visible=Mn(D,e.doc,r),this.editorIsHidden=!D.wrapper.offsetWidth,this.wrapperHeight=D.wrapper.clientHeight,this.wrapperWidth=D.wrapper.clientWidth,this.oldDisplayWidth=nt(e),this.force=L,this.dims=Kn(e),this.events=[]};Ki.prototype.signal=function(e,r){ke(e,r)&&this.events.push(arguments)},Ki.prototype.finish=function(){for(var e=0;e<this.events.length;e++)ut.apply(null,this.events[e])};function ss(e){var r=e.display;!r.scrollbarsClipped&&r.scroller.offsetWidth&&(r.nativeBarWidth=r.scroller.offsetWidth-r.scroller.clientWidth,r.heightForcer.style.height=wt(e)+"px",r.sizer.style.marginBottom=-r.nativeBarWidth+"px",r.sizer.style.borderRightWidth=wt(e)+"px",r.scrollbarsClipped=!0)}function ls(e){if(e.hasFocus())return null;var r=U();if(!r||!y(e.display.lineDiv,r))return null;var L={activeElt:r};if(window.getSelection){var D=window.getSelection();D.anchorNode&&D.extend&&y(e.display.lineDiv,D.anchorNode)&&(L.anchorNode=D.anchorNode,L.anchorOffset=D.anchorOffset,L.focusNode=D.focusNode,L.focusOffset=D.focusOffset)}return L}function qo(e){if(!e||!e.activeElt||e.activeElt==U())return;if(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&y(document.body,e.anchorNode)&&y(document.body,e.focusNode)){var r=window.getSelection(),L=document.createRange();L.setEnd(e.anchorNode,e.anchorOffset),L.collapse(!1),r.removeAllRanges(),r.addRange(L),r.extend(e.focusNode,e.focusOffset)}}function fo(e,r){var L=e.display,D=e.doc;if(r.editorIsHidden)return _r(e),!1;if(!r.force&&r.visible.from>=L.viewFrom&&r.visible.to<=L.viewTo&&(L.updateLineNumbers==null||L.updateLineNumbers>=L.viewTo)&&L.renderedView==L.view&&tr(e)==0)return!1;xi(e)&&(_r(e),r.dims=Kn(e));var j=D.first+D.size,q=Math.max(r.visible.from-e.options.viewportMargin,D.first),ue=Math.min(j,r.visible.to+e.options.viewportMargin);L.viewFrom<q&&q-L.viewFrom<20&&(q=Math.max(D.first,L.viewFrom)),L.viewTo>ue&&L.viewTo-ue<20&&(ue=Math.min(j,L.viewTo)),ya&&(q=ii(e.doc,q),ue=go(e.doc,ue));var ye=q!=L.viewFrom||ue!=L.viewTo||L.lastWrapHeight!=r.wrapperHeight||L.lastWrapWidth!=r.wrapperWidth;ta(e,q,ue),L.viewOffset=xo(Un(e.doc,L.viewFrom)),e.display.mover.style.top=L.viewOffset+"px";var Ee=tr(e);if(!ye&&Ee==0&&!r.force&&L.renderedView==L.view&&(L.updateLineNumbers==null||L.updateLineNumbers>=L.viewTo))return!1;var De=ls(e);return Ee>4&&(L.lineDiv.style.display="none"),es(e,L.updateLineNumbers,r.dims),Ee>4&&(L.lineDiv.style.display=""),L.renderedView=L.view,qo(De),l(L.cursorDiv),l(L.selectionDiv),L.gutters.style.height=L.sizer.style.minHeight=0,ye&&(L.lastWrapHeight=r.wrapperHeight,L.lastWrapWidth=r.wrapperWidth,vo(e,400)),L.updateLineNumbers=null,!0}function zo(e,r){for(var L=r.viewport,D=!0;;D=!1){if(!D||!e.options.lineWrapping||r.oldDisplayWidth==nt(e)){if(L&&L.top!=null&&(L={top:Math.min(e.doc.height+$e(e.display)-Te(e),L.top)}),r.visible=Mn(e.display,e.doc,L),r.visible.from>=e.display.viewFrom&&r.visible.to<=e.display.viewTo)break}else D&&(r.visible=Mn(e.display,e.doc,L));if(!fo(e,r))break;ar(e);var j=Wa(e);vr(e),hi(e,j),Oa(e,j),r.force=!1}r.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(r.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function yo(e,r){var L=new Ki(e,r);if(fo(e,L)){ar(e),zo(e,L);var D=Wa(e);vr(e),hi(e,D),Oa(e,D),L.finish()}}function es(e,r,L){var D=e.display,j=e.options.lineNumbers,q=D.lineDiv,ue=q.firstChild;function ye(hn){var bn=hn.nextSibling;return n&&o&&e.display.currentWheelTarget==hn?hn.style.display="none":hn.parentNode.removeChild(hn),bn}for(var Ee=D.view,De=D.viewFrom,ot=0;ot<Ee.length;ot++){var At=Ee[ot];if(!At.hidden)if(!At.node||At.node.parentNode!=q){var Nt=gl(e,At,De,L);q.insertBefore(Nt,ue)}else{for(;ue!=At.node;)ue=ye(ue);var Pt=j&&r!=null&&r<=De&&At.lineNumber;At.changes&&($(At.changes,"gutter")>-1&&(Pt=!1),xs(e,At,De,L)),Pt&&(l(At.lineNumber),At.lineNumber.appendChild(document.createTextNode(Ei(e.options,De)))),ue=At.node.nextSibling}De+=At.size}for(;ue;)ue=ye(ue)}function Go(e){var r=e.gutters.offsetWidth;e.sizer.style.marginLeft=r+"px"}function Oa(e,r){e.display.sizer.style.minHeight=r.docHeight+"px",e.display.heightForcer.style.top=r.docHeight+"px",e.display.gutters.style.height=r.docHeight+e.display.barHeight+wt(e)+"px"}function la(e){var r=e.display,L=r.view;if(!r.alignWidgets&&(!r.gutters.firstChild||!e.options.fixedGutter))return;for(var D=or(r)-r.scroller.scrollLeft+e.doc.scrollLeft,j=r.gutters.offsetWidth,q=D+"px",ue=0;ue<L.length;ue++)if(!L[ue].hidden){e.options.fixedGutter&&(L[ue].gutter&&(L[ue].gutter.style.left=q),L[ue].gutterBackground&&(L[ue].gutterBackground.style.left=q));var ye=L[ue].alignable;if(ye)for(var Ee=0;Ee<ye.length;Ee++)ye[Ee].style.left=q}e.options.fixedGutter&&(r.gutters.style.left=D+j+"px")}function xi(e){if(!e.options.lineNumbers)return!1;var r=e.doc,L=Ei(e.options,r.first+r.size-1),D=e.display;if(L.length!=D.lineNumChars){var j=D.measure.appendChild(g("div",[g("div",L)],"CodeMirror-linenumber CodeMirror-gutter-elt")),q=j.firstChild.offsetWidth,ue=j.offsetWidth-q;return D.lineGutter.style.width="",D.lineNumInnerWidth=Math.max(q,D.lineGutter.offsetWidth-ue)+1,D.lineNumWidth=D.lineNumInnerWidth+ue,D.lineNumChars=D.lineNumInnerWidth?L.length:-1,D.lineGutter.style.width=D.lineNumWidth+"px",Go(e.display),!0}return!1}function Zi(e,r){for(var L=[],D=!1,j=0;j<e.length;j++){var q=e[j],ue=null;if(typeof q!="string"&&(ue=q.style,q=q.className),q=="CodeMirror-linenumbers")if(r)D=!0;else continue;L.push({className:q,style:ue})}return r&&!D&&L.push({className:"CodeMirror-linenumbers",style:null}),L}function Oo(e){var r=e.gutters,L=e.gutterSpecs;l(r),e.lineGutter=null;for(var D=0;D<L.length;++D){var j=L[D],q=j.className,ue=j.style,ye=r.appendChild(g("div",null,"CodeMirror-gutter "+q));ue&&(ye.style.cssText=ue),q=="CodeMirror-linenumbers"&&(e.lineGutter=ye,ye.style.width=(e.lineNumWidth||1)+"px")}r.style.display=L.length?"":"none",Go(e)}function co(e){Oo(e.display),Lr(e),la(e)}function No(e,r,L,D){var j=this;this.input=L,j.scrollbarFiller=g("div",null,"CodeMirror-scrollbar-filler"),j.scrollbarFiller.setAttribute("cm-not-content","true"),j.gutterFiller=g("div",null,"CodeMirror-gutter-filler"),j.gutterFiller.setAttribute("cm-not-content","true"),j.lineDiv=T("div",null,"CodeMirror-code"),j.selectionDiv=g("div",null,null,"position: relative; z-index: 1"),j.cursorDiv=g("div",null,"CodeMirror-cursors"),j.measure=g("div",null,"CodeMirror-measure"),j.lineMeasure=g("div",null,"CodeMirror-measure"),j.lineSpace=T("div",[j.measure,j.lineMeasure,j.selectionDiv,j.cursorDiv,j.lineDiv],null,"position: relative; outline: none");var q=T("div",[j.lineSpace],"CodeMirror-lines");j.mover=g("div",[q],null,"position: relative"),j.sizer=g("div",[j.mover],"CodeMirror-sizer"),j.sizerWidth=null,j.heightForcer=g("div",null,null,"position: absolute; height: "+ee+"px; width: 1px;"),j.gutters=g("div",null,"CodeMirror-gutters"),j.lineGutter=null,j.scroller=g("div",[j.sizer,j.heightForcer,j.gutters],"CodeMirror-scroll"),j.scroller.setAttribute("tabIndex","-1"),j.wrapper=g("div",[j.scrollbarFiller,j.gutterFiller,j.scroller],"CodeMirror"),M&&x<8&&(j.gutters.style.zIndex=-1,j.scroller.style.paddingRight=0),!n&&!(I&&f)&&(j.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(j.wrapper):e(j.wrapper)),j.viewFrom=j.viewTo=r.first,j.reportedViewFrom=j.reportedViewTo=r.first,j.view=[],j.renderedView=null,j.externalMeasured=null,j.viewOffset=0,j.lastWrapHeight=j.lastWrapWidth=0,j.updateLineNumbers=null,j.nativeBarWidth=j.barHeight=j.barWidth=0,j.scrollbarsClipped=!1,j.lineNumWidth=j.lineNumInnerWidth=j.lineNumChars=null,j.alignWidgets=!1,j.cachedCharWidth=j.cachedTextHeight=j.cachedPaddingH=null,j.maxLine=null,j.maxLineLength=0,j.maxLineChanged=!1,j.wheelDX=j.wheelDY=j.wheelStartX=j.wheelStartY=null,j.shift=!1,j.selForContextMenu=null,j.activeTouch=null,j.gutterSpecs=Zi(D.gutters,D.lineNumbers),Oo(j),L.init(j)}var Wi=0,Ai=null;M?Ai=-.53:I?Ai=15:a?Ai=-.7:h&&(Ai=-1/3);function Vo(e){var r=e.wheelDeltaX,L=e.wheelDeltaY;return r==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(r=e.detail),L==null&&e.detail&&e.axis==e.VERTICAL_AXIS?L=e.detail:L==null&&(L=e.wheelDelta),{x:r,y:L}}function Pn(e){var r=Vo(e);return r.x*=Ai,r.y*=Ai,r}function ts(e,r){var L=Vo(r),D=L.x,j=L.y,q=e.display,ue=q.scroller,ye=ue.scrollWidth>ue.clientWidth,Ee=ue.scrollHeight>ue.clientHeight;if(!(D&&ye||j&&Ee))return;if(j&&o&&n){e:for(var De=r.target,ot=q.view;De!=ue;De=De.parentNode)for(var At=0;At<ot.length;At++)if(ot[At].node==De){e.display.currentWheelTarget=De;break e}}if(D&&!I&&!t&&Ai!=null){j&&Ee&&Da(e,Math.max(0,ue.scrollTop+j*Ai)),Qr(e,Math.max(0,ue.scrollLeft+D*Ai)),(!j||j&&Ee)&&we(r),q.wheelStartX=null;return}if(j&&Ai!=null){var Nt=j*Ai,Pt=e.doc.scrollTop,hn=Pt+q.wrapper.clientHeight;Nt<0?Pt=Math.max(0,Pt+Nt-50):hn=Math.min(e.doc.height,hn+Nt+50),yo(e,{top:Pt,bottom:hn})}Wi<20&&(q.wheelStartX==null?(q.wheelStartX=ue.scrollLeft,q.wheelStartY=ue.scrollTop,q.wheelDX=D,q.wheelDY=j,setTimeout(function(){if(q.wheelStartX==null)return;var bn=ue.scrollLeft-q.wheelStartX,Fn=ue.scrollTop-q.wheelStartY,Zn=Fn&&q.wheelDY&&Fn/q.wheelDY||bn&&q.wheelDX&&bn/q.wheelDX;if(q.wheelStartX=q.wheelStartY=null,!Zn)return;Ai=(Ai*Wi+Zn)/(Wi+1),++Wi},200)):(q.wheelDX+=D,q.wheelDY+=j))}var lo=function(e,r){this.ranges=e,this.primIndex=r};lo.prototype.primary=function(){return this.ranges[this.primIndex]},lo.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var r=0;r<this.ranges.length;r++){var L=this.ranges[r],D=e.ranges[r];if(!Ye(L.anchor,D.anchor)||!Ye(L.head,D.head))return!1}return!0},lo.prototype.deepCopy=function(){for(var e=[],r=0;r<this.ranges.length;r++)e[r]=new Ha(yt(this.ranges[r].anchor),yt(this.ranges[r].head));return new lo(e,this.primIndex)},lo.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},lo.prototype.contains=function(e,r){r||(r=e);for(var L=0;L<this.ranges.length;L++){var D=this.ranges[L];if(Ie(r,D.from())>=0&&Ie(e,D.to())<=0)return L}return-1};var Ha=function(e,r){this.anchor=e,this.head=r};Ha.prototype.from=function(){return sn(this.anchor,this.head)},Ha.prototype.to=function(){return Xt(this.anchor,this.head)},Ha.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Fi(e,r,L){var D=e&&e.options.selectionsMayTouch,j=r[L];r.sort(function(Nt,Pt){return Ie(Nt.from(),Pt.from())}),L=$(r,j);for(var q=1;q<r.length;q++){var ue=r[q],ye=r[q-1],Ee=Ie(ye.to(),ue.from());if(D&&!ue.empty()?Ee>0:Ee>=0){var De=sn(ye.from(),ue.from()),ot=Xt(ye.to(),ue.to()),At=ye.empty()?ue.from()==ue.head:ye.from()==ye.head;q<=L&&--L,r.splice(--q,2,new Ha(At?ot:De,At?De:ot))}}return new lo(r,L)}function Ti(e,r){return new lo([new Ha(e,r||e)],0)}function Ro(e){return e.text?_e(e.from.line+e.text.length-1,le(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Oi(e,r){if(Ie(e,r.from)<0)return e;if(Ie(e,r.to)<=0)return Ro(r);var L=e.line+r.text.length-(r.to.line-r.from.line)-1,D=e.ch;return e.line==r.to.line&&(D+=Ro(r).ch-r.to.ch),_e(L,D)}function Fo(e,r){for(var L=[],D=0;D<e.sel.ranges.length;D++){var j=e.sel.ranges[D];L.push(new Ha(Oi(j.anchor,r),Oi(j.head,r)))}return Fi(e.cm,L,e.sel.primIndex)}function ns(e,r,L){return e.line==r.line?_e(L.line,e.ch-r.ch+L.ch):_e(L.line+(e.line-r.line),e.ch)}function ms(e,r,L){for(var D=[],j=_e(e.first,0),q=j,ue=0;ue<r.length;ue++){var ye=r[ue],Ee=ns(ye.from,j,q),De=ns(Ro(ye),j,q);if(j=ye.to,q=De,L=="around"){var ot=e.sel.ranges[ue],At=Ie(ot.head,ot.anchor)<0;D[ue]=new Ha(At?De:Ee,At?Ee:De)}else D[ue]=new Ha(Ee,Ee)}return new lo(D,e.sel.primIndex)}function Xo(e){e.doc.mode=Gt(e.options,e.doc.modeOption),Ss(e)}function Ss(e){e.doc.iter(function(r){r.stateAfter&&(r.stateAfter=null),r.styles&&(r.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,vo(e,100),e.state.modeGen++,e.curOp&&Lr(e)}function Fs(e,r){return r.from.ch==0&&r.to.ch==0&&le(r.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function On(e,r,L,D){function j(sr){return L?L[sr]:null}function q(sr,$n,br){As(sr,$n,br,D),Ia(sr,"change",sr,r)}function ue(sr,$n){for(var br=[],Zr=sr;Zr<$n;++Zr)br.push(new ho(De[Zr],j(Zr),D));return br}var ye=r.from,Ee=r.to,De=r.text,ot=Un(e,ye.line),At=Un(e,Ee.line),Nt=le(De),Pt=j(De.length-1),hn=Ee.line-ye.line;if(r.full)e.insert(0,ue(0,De.length)),e.remove(De.length,e.size-De.length);else if(Fs(e,r)){var bn=ue(0,De.length-1);q(At,At.text,Pt),hn&&e.remove(ye.line,hn),bn.length&&e.insert(ye.line,bn)}else if(ot==At)if(De.length==1)q(ot,ot.text.slice(0,ye.ch)+Nt+ot.text.slice(Ee.ch),Pt);else{var Fn=ue(1,De.length-1);Fn.push(new ho(Nt+ot.text.slice(Ee.ch),Pt,D)),q(ot,ot.text.slice(0,ye.ch)+De[0],j(0)),e.insert(ye.line+1,Fn)}else if(De.length==1)q(ot,ot.text.slice(0,ye.ch)+De[0]+At.text.slice(Ee.ch),j(0)),e.remove(ye.line+1,hn);else{q(ot,ot.text.slice(0,ye.ch)+De[0],j(0)),q(At,Nt+At.text.slice(Ee.ch),Pt);var Zn=ue(1,De.length-1);hn>1&&e.remove(ye.line+1,hn-1),e.insert(ye.line+1,Zn)}Ia(e,"change",e,r)}function nr(e,r,L){function D(j,q,ue){if(j.linked)for(var ye=0;ye<j.linked.length;++ye){var Ee=j.linked[ye];if(Ee.doc==q)continue;var De=ue&&Ee.sharedHist;if(L&&!De)continue;r(Ee.doc,De),D(Ee.doc,j,De)}}D(e,null,!0)}function Wt(e,r){if(r.cm)throw new Error("This document is already in use.");e.doc=r,r.cm=e,Ur(e),Xo(e),on(e),e.options.lineWrapping||ws(e),e.options.mode=r.modeOption,Lr(e)}function on(e){(e.doc.direction=="rtl"?N:b)(e.display.lineDiv,"CodeMirror-rtl")}function Tn(e){Qi(e,function(){on(e),Lr(e)})}function Hn(e){this.done=[],this.undone=[],this.undoDepth=Infinity,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e||1}function jn(e,r){var L={from:yt(r.from),to:Ro(r),text:Ra(e,r.from,r.to)};return si(e,L,r.from.line,r.to.line+1),nr(e,function(D){return si(D,L,r.from.line,r.to.line+1)},!0),L}function pr(e){for(;e.length;){var r=le(e);if(r.ranges)e.pop();else break}}function dr(e,r){if(r)return pr(e.done),le(e.done);if(e.done.length&&!le(e.done).ranges)return le(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),le(e.done)}function Bn(e,r,L,D){var j=e.history;j.undone.length=0;var q=+new Date,ue,ye;if((j.lastOp==D||j.lastOrigin==r.origin&&r.origin&&(r.origin.charAt(0)=="+"&&j.lastModTime>q-(e.cm?e.cm.options.historyEventDelay:500)||r.origin.charAt(0)=="*"))&&(ue=dr(j,j.lastOp==D)))ye=le(ue.changes),Ie(r.from,r.to)==0&&Ie(r.from,ye.to)==0?ye.to=Ro(r):ue.changes.push(jn(e,r));else{var Ee=le(j.done);for((!Ee||!Ee.ranges)&&ir(e.sel,j.done),ue={changes:[jn(e,r)],generation:j.generation},j.done.push(ue);j.done.length>j.undoDepth;)j.done.shift(),j.done[0].ranges||j.done.shift()}j.done.push(L),j.generation=++j.maxGeneration,j.lastModTime=j.lastSelTime=q,j.lastOp=j.lastSelOp=D,j.lastOrigin=j.lastSelOrigin=r.origin,ye||ut(e,"historyAdded")}function Yr(e,r,L,D){var j=r.charAt(0);return j=="*"||j=="+"&&L.ranges.length==D.ranges.length&&L.somethingSelected()==D.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Ri(e,r,L,D){var j=e.history,q=D&&D.origin;L==j.lastSelOp||q&&j.lastSelOrigin==q&&(j.lastModTime==j.lastSelTime&&j.lastOrigin==q||Yr(e,q,le(j.done),r))?j.done[j.done.length-1]=r:ir(r,j.done),j.lastSelTime=+new Date,j.lastSelOrigin=q,j.lastSelOp=L,D&&D.clearRedo!==!1&&pr(j.undone)}function ir(e,r){var L=le(r);L&&L.ranges&&L.equals(e)||r.push(e)}function si(e,r,L,D){var j=r["spans_"+e.id],q=0;e.iter(Math.max(e.first,L),Math.min(e.first+e.size,D),function(ue){ue.markedSpans&&((j||(j=r["spans_"+e.id]={}))[q]=ue.markedSpans),++q})}function ao(e){if(!e)return null;for(var r,L=0;L<e.length;++L)e[L].marker.explicitlyCleared?r||(r=e.slice(0,L)):r&&r.push(e[L]);return r?r.length?r:null:e}function zi(e,r){var L=r["spans_"+e.id];if(!L)return null;for(var D=[],j=0;j<r.text.length;++j)D.push(ao(L[j]));return D}function Wn(e,r){var L=zi(e,r),D=_i(e,r);if(!L)return D;if(!D)return L;for(var j=0;j<L.length;++j){var q=L[j],ue=D[j];if(q&&ue){e:for(var ye=0;ye<ue.length;++ye){for(var Ee=ue[ye],De=0;De<q.length;++De)if(q[De].marker==Ee.marker)continue e;q.push(Ee)}}else ue&&(L[j]=ue)}return L}function Qa(e,r,L){for(var D=[],j=0;j<e.length;++j){var q=e[j];if(q.ranges){D.push(L?lo.prototype.deepCopy.call(q):q);continue}var ue=q.changes,ye=[];D.push({changes:ye});for(var Ee=0;Ee<ue.length;++Ee){var De=ue[Ee],ot=void 0;if(ye.push({from:De.from,to:De.to,text:De.text}),r)for(var At in De)(ot=At.match(/^spans_(\d+)$/))&&($(r,Number(ot[1]))>-1&&(le(ye)[At]=De[At],delete De[At]))}}return D}function Gi(e,r,L,D){if(D){var j=e.anchor;if(L){var q=Ie(r,j)<0;q!=Ie(L,j)<0?(j=r,r=L):q!=Ie(r,L)<0&&(r=L)}return new Ha(j,r)}else return new Ha(L||r,r)}function li(e,r,L,D,j){j==null&&(j=e.cm&&(e.cm.display.shift||e.extend)),ki(e,new lo([Gi(e.sel.primary(),r,L,j)],0),D)}function io(e,r,L){for(var D=[],j=e.cm&&(e.cm.display.shift||e.extend),q=0;q<e.sel.ranges.length;q++)D[q]=Gi(e.sel.ranges[q],r[q],null,j);var ue=Fi(e.cm,D,e.sel.primIndex);ki(e,ue,L)}function Yo(e,r,L,D){var j=e.sel.ranges.slice(0);j[r]=L,ki(e,Fi(e.cm,j,e.sel.primIndex),D)}function ko(e,r,L,D){ki(e,Ti(r,L),D)}function jo(e,r,L){var D={ranges:r.ranges,update:function(j){this.ranges=[];for(var q=0;q<j.length;q++)this.ranges[q]=new Ha(W(e,j[q].anchor),W(e,j[q].head))},origin:L&&L.origin};return ut(e,"beforeSelectionChange",e,D),e.cm&&ut(e.cm,"beforeSelectionChange",e.cm,D),D.ranges!=r.ranges?Fi(e.cm,D.ranges,D.ranges.length-1):r}function gs(e,r,L){var D=e.history.done,j=le(D);j&&j.ranges?(D[D.length-1]=r,sl(e,r,L)):ki(e,r,L)}function ki(e,r,L){sl(e,r,L),Ri(e,e.sel,e.cm?e.cm.curOp.id:NaN,L)}function sl(e,r,L){(ke(e,"beforeSelectionChange")||e.cm&&ke(e.cm,"beforeSelectionChange"))&&(r=jo(e,r,L));var D=L&&L.bias||(Ie(r.primary().head,e.sel.primary().head)<0?-1:1);vl(e,ks(e,r,D,!0)),!(L&&L.scroll===!1)&&e.cm&&Pa(e.cm)}function vl(e,r){if(r.equals(e.sel))return;e.sel=r,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,Ze(e.cm)),Ia(e,"cursorActivity",e)}function Os(e){vl(e,ks(e,e.sel,null,!1))}function ks(e,r,L,D){for(var j,q=0;q<r.ranges.length;q++){var ue=r.ranges[q],ye=r.ranges.length==e.sel.ranges.length&&e.sel.ranges[q],Ee=ll(e,ue.anchor,ye&&ye.anchor,L,D),De=ll(e,ue.head,ye&&ye.head,L,D);(j||Ee!=ue.anchor||De!=ue.head)&&(j||(j=r.ranges.slice(0,q)),j[q]=new Ha(Ee,De))}return j?Fi(e.cm,j,r.primIndex):r}function us(e,r,L,D,j){var q=Un(e,r.line);if(q.markedSpans)for(var ue=0;ue<q.markedSpans.length;++ue){var ye=q.markedSpans[ue],Ee=ye.marker,De="selectLeft"in Ee?!Ee.selectLeft:Ee.inclusiveLeft,ot="selectRight"in Ee?!Ee.selectRight:Ee.inclusiveRight;if((ye.from==null||(De?ye.from<=r.ch:ye.from<r.ch))&&(ye.to==null||(ot?ye.to>=r.ch:ye.to>r.ch))){if(j&&(ut(Ee,"beforeCursorEnter"),Ee.explicitlyCleared))if(q.markedSpans){--ue;continue}else break;if(!Ee.atomic)continue;if(L){var At=Ee.find(D<0?1:-1),Nt=void 0;if((D<0?ot:De)&&(At=ul(e,At,-D,At&&At.line==r.line?q:null)),At&&At.line==r.line&&(Nt=Ie(At,L))&&(D<0?Nt<0:Nt>0))return us(e,At,r,D,j)}var Pt=Ee.find(D<0?-1:1);return(D<0?De:ot)&&(Pt=ul(e,Pt,D,Pt.line==r.line?q:null)),Pt?us(e,Pt,r,D,j):null}}return r}function ll(e,r,L,D,j){var q=D||1,ue=us(e,r,L,q,j)||!j&&us(e,r,L,q,!0)||us(e,r,L,-q,j)||!j&&us(e,r,L,-q,!0);return ue||(e.cantEdit=!0,_e(e.first,0))}function ul(e,r,L,D){return L<0&&r.ch==0?r.line>e.first?W(e,_e(r.line-1)):null:L>0&&r.ch==(D||Un(e,r.line)).text.length?r.line<e.first+e.size-1?_e(r.line+1,0):null:new _e(r.line,r.ch+L)}function Sl(e){e.setSelection(_e(e.firstLine(),0),_e(e.lastLine()),Ae)}function Zs(e,r,L){var D={canceled:!1,from:r.from,to:r.to,text:r.text,origin:r.origin,cancel:function(){return D.canceled=!0}};return L&&(D.update=function(j,q,ue,ye){j&&(D.from=W(e,j)),q&&(D.to=W(e,q)),ue&&(D.text=ue),ye!==void 0&&(D.origin=ye)}),ut(e,"beforeChange",e,D),e.cm&&ut(e.cm,"beforeChange",e.cm,D),D.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:D.from,to:D.to,text:D.text,origin:D.origin}}function rs(e,r,L){if(e.cm){if(!e.cm.curOp)return Aa(e.cm,rs)(e,r,L);if(e.cm.state.suppressEdits)return}if((ke(e,"beforeChange")||e.cm&&ke(e.cm,"beforeChange"))&&(r=Zs(e,r,!0),!r))return;var D=Dr&&!L&&Hi(e,r.from,r.to);if(D)for(var j=D.length-1;j>=0;--j)cl(e,{from:D[j].from,to:D[j].to,text:j?[""]:r.text,origin:r.origin});else cl(e,r)}function cl(e,r){if(r.text.length==1&&r.text[0]==""&&Ie(r.from,r.to)==0)return;var L=Fo(e,r);Bn(e,r,L,e.cm?e.cm.curOp.id:NaN),qs(e,r,L,_i(e,r));var D=[];nr(e,function(j,q){!q&&$(D,j.history)==-1&&(Bs(j.history,r),D.push(j.history)),qs(j,r,null,_i(j,r))})}function Qs(e,r,L){var D=e.cm&&e.cm.state.suppressEdits;if(D&&!L)return;for(var j=e.history,q,ue=e.sel,ye=r=="undo"?j.done:j.undone,Ee=r=="undo"?j.undone:j.done,De=0;De<ye.length&&!(q=ye[De],L?q.ranges&&!q.equals(e.sel):!q.ranges);De++);if(De==ye.length)return;for(j.lastOrigin=j.lastSelOrigin=null;;)if(q=ye.pop(),q.ranges){if(ir(q,Ee),L&&!q.equals(e.sel)){ki(e,q,{clearRedo:!1});return}ue=q}else if(D){ye.push(q);return}else break;var ot=[];ir(ue,Ee),Ee.push({changes:ot,generation:j.generation}),j.generation=q.generation||++j.maxGeneration;for(var At=ke(e,"beforeChange")||e.cm&&ke(e.cm,"beforeChange"),Nt=function(bn){var Fn=q.changes[bn];if(Fn.origin=r,At&&!Zs(e,Fn,!1))return ye.length=0,{};ot.push(jn(e,Fn));var Zn=bn?Fo(e,Fn):le(ye);qs(e,Fn,Zn,Wn(e,Fn)),!bn&&e.cm&&e.cm.scrollIntoView({from:Fn.from,to:Ro(Fn)});var sr=[];nr(e,function($n,br){!br&&$(sr,$n.history)==-1&&(Bs($n.history,Fn),sr.push($n.history)),qs($n,Fn,null,Wn($n,Fn))})},Pt=q.changes.length-1;Pt>=0;--Pt){var hn=Nt(Pt);if(hn)return hn.v}}function $s(e,r){if(r==0)return;if(e.first+=r,e.sel=new lo(ge(e.sel.ranges,function(j){return new Ha(_e(j.anchor.line+r,j.anchor.ch),_e(j.head.line+r,j.head.ch))}),e.sel.primIndex),e.cm){Lr(e.cm,e.first,e.first-r,r);for(var L=e.cm.display,D=L.viewFrom;D<L.viewTo;D++)Er(e.cm,D,"gutter")}}function qs(e,r,L,D){if(e.cm&&!e.cm.curOp)return Aa(e.cm,qs)(e,r,L,D);if(r.to.line<e.first){$s(e,r.text.length-1-(r.to.line-r.from.line));return}if(r.from.line>e.lastLine())return;if(r.from.line<e.first){var j=r.text.length-1-(e.first-r.from.line);$s(e,j),r={from:_e(e.first,0),to:_e(r.to.line+j,r.to.ch),text:[le(r.text)],origin:r.origin}}var q=e.lastLine();r.to.line>q&&(r={from:r.from,to:_e(q,Un(e,q).text.length),text:[r.text[0]],origin:r.origin}),r.removed=Ra(e,r.from,r.to),L||(L=Fo(e,r)),e.cm?yl(e.cm,r,D):On(e,r,D),sl(e,L,Ae),e.cantEdit&&ll(e,_e(e.firstLine(),0))&&(e.cantEdit=!1)}function yl(e,r,L){var D=e.doc,j=e.display,q=r.from,ue=r.to,ye=!1,Ee=q.line;e.options.lineWrapping||(Ee=Kr(ci(Un(D,q.line))),D.iter(Ee,ue.line+1,function(Pt){if(Pt==j.maxLine)return ye=!0,!0})),D.sel.contains(r.from,r.to)>-1&&Ze(e),On(D,r,L,gr(e)),e.options.lineWrapping||(D.iter(Ee,q.line+r.text.length,function(Pt){var hn=Cs(Pt);hn>j.maxLineLength&&(j.maxLine=Pt,j.maxLineLength=hn,j.maxLineChanged=!0,ye=!1)}),ye&&(e.curOp.updateMaxLine=!0)),Ca(D,q.line),vo(e,400);var De=r.text.length-(ue.line-q.line)-1;r.full?Lr(e):q.line==ue.line&&r.text.length==1&&!Fs(e.doc,r)?Er(e,q.line,"text"):Lr(e,q.line,ue.line+1,De);var ot=ke(e,"changes"),At=ke(e,"change");if(At||ot){var Nt={from:q,to:ue,text:r.text,removed:r.removed,origin:r.origin};At&&Ia(e,"change",e,Nt),ot&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(Nt)}e.display.selForContextMenu=null}function Rs(e,r,L,D,j){var q;D||(D=L),Ie(D,L)<0&&(q=[D,L],L=q[0],D=q[1]),typeof r=="string"&&(r=e.splitLines(r)),rs(e,{from:L,to:D,text:r,origin:j})}function Ol(e,r,L,D){L<e.line?e.line+=D:r<e.line&&(e.line=r,e.ch=0)}function vs(e,r,L,D){for(var j=0;j<e.length;++j){var q=e[j],ue=!0;if(q.ranges){q.copied||(q=e[j]=q.deepCopy(),q.copied=!0);for(var ye=0;ye<q.ranges.length;ye++)Ol(q.ranges[ye].anchor,r,L,D),Ol(q.ranges[ye].head,r,L,D);continue}for(var Ee=0;Ee<q.changes.length;++Ee){var De=q.changes[Ee];if(L<De.from.line)De.from=_e(De.from.line+D,De.from.ch),De.to=_e(De.to.line+D,De.to.ch);else if(r<=De.to.line){ue=!1;break}}ue||(e.splice(0,j+1),j=0)}}function Bs(e,r){var L=r.from.line,D=r.to.line,j=r.text.length-(D-L)-1;vs(e.done,L,D,j),vs(e.undone,L,D,j)}function Ks(e,r,L,D){var j=r,q=r;return typeof r=="number"?q=Un(e,re(e,r)):j=Kr(r),j==null?null:(D(q,j)&&e.cm&&Er(e.cm,j,L),q)}function Is(e){this.lines=e,this.parent=null;for(var r=0,L=0;L<e.length;++L)e[L].parent=this,r+=e[L].height;this.height=r}Is.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,r){for(var L=e,D=e+r;L<D;++L){var j=this.lines[L];this.height-=j.height,mr(j),Ia(j,"delete")}this.lines.splice(e,r)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,r,L){this.height+=L,this.lines=this.lines.slice(0,e).concat(r).concat(this.lines.slice(e));for(var D=0;D<r.length;++D)r[D].parent=this},iterN:function(e,r,L){for(var D=e+r;e<D;++e)if(L(this.lines[e]))return!0}};function ea(e){this.children=e;for(var r=0,L=0,D=0;D<e.length;++D){var j=e[D];r+=j.chunkSize(),L+=j.height,j.parent=this}this.size=r,this.height=L,this.parent=null}ea.prototype={chunkSize:function(){return this.size},removeInner:function(e,r){this.size-=r;for(var L=0;L<this.children.length;++L){var D=this.children[L],j=D.chunkSize();if(e<j){var q=Math.min(r,j-e),ue=D.height;if(D.removeInner(e,q),this.height-=ue-D.height,j==q&&(this.children.splice(L--,1),D.parent=null),(r-=q)==0)break;e=0}else e-=j}if(this.size-r<25&&(this.children.length>1||!(this.children[0]instanceof Is))){var ye=[];this.collapse(ye),this.children=[new Is(ye)],this.children[0].parent=this}},collapse:function(e){for(var r=0;r<this.children.length;++r)this.children[r].collapse(e)},insertInner:function(e,r,L){this.size+=r.length,this.height+=L;for(var D=0;D<this.children.length;++D){var j=this.children[D],q=j.chunkSize();if(e<=q){if(j.insertInner(e,r,L),j.lines&&j.lines.length>50){for(var ue=j.lines.length%25+25,ye=ue;ye<j.lines.length;){var Ee=new Is(j.lines.slice(ye,ye+=25));j.height-=Ee.height,this.children.splice(++D,0,Ee),Ee.parent=this}j.lines=j.lines.slice(0,ue),this.maybeSpill()}break}e-=q}},maybeSpill:function(){if(this.children.length<=10)return;var e=this;do{var r=e.children.splice(e.children.length-5,5),L=new ea(r);if(e.parent){e.size-=L.size,e.height-=L.height;var j=$(e.parent.children,e);e.parent.children.splice(j+1,0,L)}else{var D=new ea(e.children);D.parent=e,e.children=[D,L],e=D}L.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()},iterN:function(e,r,L){for(var D=0;D<this.children.length;++D){var j=this.children[D],q=j.chunkSize();if(e<q){var ue=Math.min(r,q-e);if(j.iterN(e,ue,L))return!0;if((r-=ue)==0)break;e=0}else e-=q}}};var Fr=function(e,r,L){if(L)for(var D in L)L.hasOwnProperty(D)&&(this[D]=L[D]);this.doc=e,this.node=r};Fr.prototype.clear=function(){var e=this.doc.cm,r=this.line.widgets,L=this.line,D=Kr(L);if(D==null||!r)return;for(var j=0;j<r.length;++j)r[j]==this&&r.splice(j--,1);r.length||(L.widgets=null);var q=Hs(this);aa(L,Math.max(0,L.height-q)),e&&(Qi(e,function(){Ga(e,L,-q),Er(e,D,"widget")}),Ia(e,"lineWidgetCleared",e,this,D))},Fr.prototype.changed=function(){var e=this,r=this.height,L=this.doc.cm,D=this.line;this.height=null;var j=Hs(this)-r;if(!j)return;no(this.doc,D)||aa(D,D.height+j),L&&Qi(L,function(){L.curOp.forceUpdate=!0,Ga(L,D,j),Ia(L,"lineWidgetChanged",L,e,Kr(D))})},He(Fr);function Ga(e,r,L){xo(r)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&jr(e,L)}function Wr(e,r,L,D){var j=new Fr(e,L,D),q=e.cm;return q&&j.noHScroll&&(q.display.alignWidgets=!0),Ks(e,r,"widget",function(ue){var ye=ue.widgets||(ue.widgets=[]);if(j.insertAt==null?ye.push(j):ye.splice(Math.min(ye.length-1,Math.max(0,j.insertAt)),0,j),j.line=ue,q&&!no(e,ue)){var Ee=xo(ue)<e.scrollTop;aa(ue,ue.height+Hs(j)),Ee&&jr(q,j.height),q.curOp.forceUpdate=!0}return!0}),q&&Ia(q,"lineWidgetAdded",q,j,typeof r=="number"?r:Kr(r)),j}var ma=0,ga=function(e,r){this.lines=[],this.type=r,this.doc=e,this.id=++ma};ga.prototype.clear=function(){if(this.explicitlyCleared)return;var e=this.doc.cm,r=e&&!e.curOp;if(r&&Ao(e),ke(this,"clear")){var L=this.find();L&&Ia(this,"clear",L.from,L.to)}for(var D=null,j=null,q=0;q<this.lines.length;++q){var ue=this.lines[q],ye=qa(ue.markedSpans,this);e&&!this.collapsed?Er(e,Kr(ue),"text"):e&&(ye.to!=null&&(j=Kr(ue)),ye.from!=null&&(D=Kr(ue))),ue.markedSpans=Si(ue.markedSpans,ye),ye.from==null&&this.collapsed&&!no(this.doc,ue)&&e&&aa(ue,Gn(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var Ee=0;Ee<this.lines.length;++Ee){var De=ci(this.lines[Ee]),ot=Cs(De);ot>e.display.maxLineLength&&(e.display.maxLine=De,e.display.maxLineLength=ot,e.display.maxLineChanged=!0)}D!=null&&e&&this.collapsed&&Lr(e,D,j+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Os(e.doc)),e&&Ia(e,"markerCleared",e,this,D,j),r&&_o(e),this.parent&&this.parent.clear()},ga.prototype.find=function(e,r){e==null&&this.type=="bookmark"&&(e=1);for(var L,D,j=0;j<this.lines.length;++j){var q=this.lines[j],ue=qa(q.markedSpans,this);if(ue.from!=null&&(L=_e(r?q:Kr(q),ue.from),e==-1))return L;if(ue.to!=null&&(D=_e(r?q:Kr(q),ue.to),e==1))return D}return L&&{from:L,to:D}},ga.prototype.changed=function(){var e=this,r=this.find(-1,!0),L=this,D=this.doc.cm;if(!r||!D)return;Qi(D,function(){var j=r.line,q=Kr(r.line),ue=Tt(D,q);if(ue&&(cn(ue),D.curOp.selectionChanged=D.curOp.forceUpdate=!0),D.curOp.updateMaxLine=!0,!no(L.doc,j)&&L.height!=null){var ye=L.height;L.height=null;var Ee=Hs(L)-ye;Ee&&aa(j,j.height+Ee)}Ia(D,"markerChanged",D,e)})},ga.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var r=this.doc.cm.curOp;(!r.maybeHiddenMarkers||$(r.maybeHiddenMarkers,this)==-1)&&(r.maybeUnhiddenMarkers||(r.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},ga.prototype.detachLine=function(e){if(this.lines.splice($(this.lines,e),1),!this.lines.length&&this.doc.cm){var r=this.doc.cm.curOp;(r.maybeHiddenMarkers||(r.maybeHiddenMarkers=[])).push(this)}},He(ga);function Na(e,r,L,D,j){if(D&&D.shared)return Vi(e,r,L,D,j);if(e.cm&&!e.cm.curOp)return Aa(e.cm,Na)(e,r,L,D,j);var q=new ga(e,j),ue=Ie(r,L);if(D&&R(D,q,!1),ue>0||ue==0&&q.clearWhenEmpty!==!1)return q;if(q.replacedWith&&(q.collapsed=!0,q.widgetNode=T("span",[q.replacedWith],"CodeMirror-widget"),D.handleMouseEvents||q.widgetNode.setAttribute("cm-ignore-events","true"),D.insertLeft&&(q.widgetNode.insertLeft=!0)),q.collapsed){if(Di(e,r.line,r,L,q)||r.line!=L.line&&Di(e,L.line,r,L,q))throw new Error("Inserting collapsed marker partially overlapping an existing one");fi()}q.addToHistory&&Bn(e,{from:r,to:L,origin:"markText"},e.sel,NaN);var ye=r.line,Ee=e.cm,De;if(e.iter(ye,L.line+1,function(At){Ee&&q.collapsed&&!Ee.options.lineWrapping&&ci(At)==Ee.display.maxLine&&(De=!0),q.collapsed&&ye!=r.line&&aa(At,0),pi(At,new Ka(q,ye==r.line?r.ch:null,ye==L.line?L.ch:null)),++ye}),q.collapsed&&e.iter(r.line,L.line+1,function(At){no(e,At)&&aa(At,0)}),q.clearOnEnter&&Ve(q,"beforeCursorEnter",function(){return q.clear()}),q.readOnly&&(ka(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),q.collapsed&&(q.id=++ma,q.atomic=!0),Ee){if(De&&(Ee.curOp.updateMaxLine=!0),q.collapsed)Lr(Ee,r.line,L.line+1);else if(q.className||q.startStyle||q.endStyle||q.css||q.attributes||q.title)for(var ot=r.line;ot<=L.line;ot++)Er(Ee,ot,"text");q.atomic&&Os(Ee.doc),Ia(Ee,"markerAdded",Ee,q)}return q}var La=function(e,r){this.markers=e,this.primary=r;for(var L=0;L<e.length;++L)e[L].parent=this};La.prototype.clear=function(){if(this.explicitlyCleared)return;this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();Ia(this,"clear")},La.prototype.find=function(e,r){return this.primary.find(e,r)},He(La);function Vi(e,r,L,D,j){D=R(D),D.shared=!1;var q=[Na(e,r,L,D,j)],ue=q[0],ye=D.widgetNode;return nr(e,function(Ee){ye&&(D.widgetNode=ye.cloneNode(!0)),q.push(Na(Ee,W(Ee,r),W(Ee,L),D,j));for(var De=0;De<Ee.linked.length;++De)if(Ee.linked[De].isParent)return;ue=le(q)}),new La(q,ue)}function $a(e){return e.findMarks(_e(e.first,0),e.clipPos(_e(e.lastLine())),function(r){return r.parent})}function ys(e,r){for(var L=0;L<r.length;L++){var D=r[L],j=D.find(),q=e.clipPos(j.from),ue=e.clipPos(j.to);if(Ie(q,ue)){var ye=Na(e,q,ue,D.primary,D.primary.type);D.markers.push(ye),ye.parent=D}}}function Rn(e){for(var r=function(D){var j=e[D],q=[j.primary.doc];nr(j.primary.doc,function(Ee){return q.push(Ee)});for(var ue=0;ue<j.markers.length;ue++){var ye=j.markers[ue];$(q,ye.doc)==-1&&(ye.parent=null,j.markers.splice(ue--,1))}},L=0;L<e.length;L++)r(L)}var xr=0,In=function(e,r,L,D,j){if(!(this instanceof In))return new In(e,r,L,D,j);L==null&&(L=0),ea.call(this,[new Is([new ho("",null)])]),this.first=L,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=L;var q=_e(L,0);this.sel=Ti(q),this.history=new Hn(null),this.id=++xr,this.modeOption=r,this.lineSep=D,this.direction=j=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),On(this,{from:q,to:q,text:e}),ki(this,Ti(q),Ae)};In.prototype=Me(ea.prototype,{constructor:In,iter:function(e,r,L){L?this.iterN(e-this.first,r-e,L):this.iterN(this.first,this.first+this.size,e)},insert:function(e,r){for(var L=0,D=0;D<r.length;++D)L+=r[D].height;this.insertInner(e-this.first,r,L)},remove:function(e,r){this.removeInner(e-this.first,r)},getValue:function(e){var r=Xr(this,this.first,this.first+this.size);return e===!1?r:r.join(e||this.lineSeparator())},setValue:vi(function(e){var r=_e(this.first,0),L=this.first+this.size-1;rs(this,{from:r,to:_e(L,Un(this,L).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&da(this.cm,0,0),ki(this,Ti(r),Ae)}),replaceRange:function(e,r,L,D){r=W(this,r),L=L?W(this,L):r,Rs(this,e,r,L,D)},getRange:function(e,r,L){var D=Ra(this,W(this,e),W(this,r));return L===!1?D:D.join(L||this.lineSeparator())},getLine:function(e){var r=this.getLineHandle(e);return r&&r.text},getLineHandle:function(e){if(di(this,e))return Un(this,e)},getLineNumber:function(e){return Kr(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=Un(this,e)),ci(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return W(this,e)},getCursor:function(e){var r=this.sel.primary(),L;return e==null||e=="head"?L=r.head:e=="anchor"?L=r.anchor:e=="end"||e=="to"||e===!1?L=r.to():L=r.from(),L},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:vi(function(e,r,L){ko(this,W(this,typeof e=="number"?_e(e,r||0):e),null,L)}),setSelection:vi(function(e,r,L){ko(this,W(this,e),W(this,r||e),L)}),extendSelection:vi(function(e,r,L){li(this,W(this,e),r&&W(this,r),L)}),extendSelections:vi(function(e,r){io(this,ne(this,e),r)}),extendSelectionsBy:vi(function(e,r){var L=ge(this.sel.ranges,e);io(this,ne(this,L),r)}),setSelections:vi(function(e,r,L){if(!e.length)return;for(var D=[],j=0;j<e.length;j++)D[j]=new Ha(W(this,e[j].anchor),W(this,e[j].head));r==null&&(r=Math.min(e.length-1,this.sel.primIndex)),ki(this,Fi(this.cm,D,r),L)}),addSelection:vi(function(e,r,L){var D=this.sel.ranges.slice(0);D.push(new Ha(W(this,e),W(this,r||e))),ki(this,Fi(this.cm,D,D.length-1),L)}),getSelection:function(e){for(var r=this.sel.ranges,L,D=0;D<r.length;D++){var j=Ra(this,r[D].from(),r[D].to());L=L?L.concat(j):j}return e===!1?L:L.join(e||this.lineSeparator())},getSelections:function(e){for(var r=[],L=this.sel.ranges,D=0;D<L.length;D++){var j=Ra(this,L[D].from(),L[D].to());e!==!1&&(j=j.join(e||this.lineSeparator())),r[D]=j}return r},replaceSelection:function(e,r,L){for(var D=[],j=0;j<this.sel.ranges.length;j++)D[j]=e;this.replaceSelections(D,r,L||"+input")},replaceSelections:vi(function(e,r,L){for(var D=[],j=this.sel,q=0;q<j.ranges.length;q++){var ue=j.ranges[q];D[q]={from:ue.from(),to:ue.to(),text:this.splitLines(e[q]),origin:L}}for(var ye=r&&r!="end"&&ms(this,D,r),Ee=D.length-1;Ee>=0;Ee--)rs(this,D[Ee]);ye?gs(this,ye):this.cm&&Pa(this.cm)}),undo:vi(function(){Qs(this,"undo")}),redo:vi(function(){Qs(this,"redo")}),undoSelection:vi(function(){Qs(this,"undo",!0)}),redoSelection:vi(function(){Qs(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,r=0,L=0,D=0;D<e.done.length;D++)e.done[D].ranges||++r;for(var j=0;j<e.undone.length;j++)e.undone[j].ranges||++L;return{undo:r,redo:L}},clearHistory:function(){var e=this;this.history=new Hn(this.history.maxGeneration),nr(this,function(r){return r.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Qa(this.history.done),undone:Qa(this.history.undone)}},setHistory:function(e){var r=this.history=new Hn(this.history.maxGeneration);r.done=Qa(e.done.slice(0),null,!0),r.undone=Qa(e.undone.slice(0),null,!0)},setGutterMarker:vi(function(e,r,L){return Ks(this,e,"gutter",function(D){var j=D.gutterMarkers||(D.gutterMarkers={});return j[r]=L,!L&&he(j)&&(D.gutterMarkers=null),!0})}),clearGutter:vi(function(e){var r=this;this.iter(function(L){L.gutterMarkers&&L.gutterMarkers[e]&&Ks(r,L,"gutter",function(){return L.gutterMarkers[e]=null,he(L.gutterMarkers)&&(L.gutterMarkers=null),!0})})}),lineInfo:function(e){var r;if(typeof e=="number"){if(!di(this,e))return null;if(r=e,e=Un(this,e),!e)return null}else if(r=Kr(e),r==null)return null;return{line:r,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:vi(function(e,r,L){return Ks(this,e,r=="gutter"?"gutter":"class",function(D){var j=r=="text"?"textClass":r=="background"?"bgClass":r=="gutter"?"gutterClass":"wrapClass";if(!D[j])D[j]=L;else{if(C(L).test(D[j]))return!1;D[j]+=" "+L}return!0})}),removeLineClass:vi(function(e,r,L){return Ks(this,e,r=="gutter"?"gutter":"class",function(D){var j=r=="text"?"textClass":r=="background"?"bgClass":r=="gutter"?"gutterClass":"wrapClass",q=D[j];if(q)if(L==null)D[j]=null;else{var ue=q.match(C(L));if(!ue)return!1;var ye=ue.index+ue[0].length;D[j]=q.slice(0,ue.index)+(!ue.index||ye==q.length?"":" ")+q.slice(ye)||null}else return!1;return!0})}),addLineWidget:vi(function(e,r,L){return Wr(this,e,r,L)}),removeLineWidget:function(e){e.clear()},markText:function(e,r,L){return Na(this,W(this,e),W(this,r),L,L&&L.type||"range")},setBookmark:function(e,r){var L={replacedWith:r&&(r.nodeType==null?r.widget:r),insertLeft:r&&r.insertLeft,clearWhenEmpty:!1,shared:r&&r.shared,handleMouseEvents:r&&r.handleMouseEvents};return e=W(this,e),Na(this,e,e,L,"bookmark")},findMarksAt:function(e){e=W(this,e);var r=[],L=Un(this,e.line).markedSpans;if(L)for(var D=0;D<L.length;++D){var j=L[D];(j.from==null||j.from<=e.ch)&&(j.to==null||j.to>=e.ch)&&r.push(j.marker.parent||j.marker)}return r},findMarks:function(e,r,L){e=W(this,e),r=W(this,r);var D=[],j=e.line;return this.iter(e.line,r.line+1,function(q){var ue=q.markedSpans;if(ue)for(var ye=0;ye<ue.length;ye++){var Ee=ue[ye];!(Ee.to!=null&&j==e.line&&e.ch>=Ee.to||Ee.from==null&&j!=e.line||Ee.from!=null&&j==r.line&&Ee.from>=r.ch)&&(!L||L(Ee.marker))&&D.push(Ee.marker.parent||Ee.marker)}++j}),D},getAllMarks:function(){var e=[];return this.iter(function(r){var L=r.markedSpans;if(L)for(var D=0;D<L.length;++D)L[D].from!=null&&e.push(L[D].marker)}),e},posFromIndex:function(e){var r,L=this.first,D=this.lineSeparator().length;return this.iter(function(j){var q=j.text.length+D;if(q>e)return r=e,!0;e-=q,++L}),W(this,_e(L,r))},indexFromPos:function(e){e=W(this,e);var r=e.ch;if(e.line<this.first||e.ch<0)return 0;var L=this.lineSeparator().length;return this.iter(this.first,e.line,function(D){r+=D.text.length+L}),r},copy:function(e){var r=new In(Xr(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return r.scrollTop=this.scrollTop,r.scrollLeft=this.scrollLeft,r.sel=this.sel,r.extend=!1,e&&(r.history.undoDepth=this.history.undoDepth,r.setHistory(this.getHistory())),r},linkedDoc:function(e){e||(e={});var r=this.first,L=this.first+this.size;e.from!=null&&e.from>r&&(r=e.from),e.to!=null&&e.to<L&&(L=e.to);var D=new In(Xr(this,r,L),e.mode||this.modeOption,r,this.lineSep,this.direction);return e.sharedHist&&(D.history=this.history),(this.linked||(this.linked=[])).push({doc:D,sharedHist:e.sharedHist}),D.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],ys(D,$a(this)),D},unlinkDoc:function(e){if(e instanceof Xi&&(e=e.doc),this.linked)for(var r=0;r<this.linked.length;++r){var L=this.linked[r];if(L.doc!=e)continue;this.linked.splice(r,1),e.unlinkDoc(this),Rn($a(this));break}if(e.history==this.history){var D=[e.id];nr(e,function(j){return D.push(j.id)},!0),e.history=new Hn(null),e.history.done=Qa(this.history.done,D),e.history.undone=Qa(this.history.undone,D)}},iterLinkedDocs:function(e){nr(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):pt(e)},lineSeparator:function(){return this.lineSep||`
|
|
`},setDirection:vi(function(e){if(e!="rtl"&&(e="ltr"),e==this.direction)return;this.direction=e,this.iter(function(r){return r.order=null}),this.cm&&Tn(this.cm)})}),In.prototype.eachLine=In.prototype.iter;var Gr=0;function Jn(e){var r=this;if(fa(r),vt(r,e)||$o(r.display,e))return;we(e),M&&(Gr=+new Date);var L=er(r,e,!0),D=e.dataTransfer.files;if(!L||r.isReadOnly())return;if(D&&D.length&&window.FileReader&&window.File)for(var j=D.length,q=Array(j),ue=0,ye=function(){++ue==j&&Aa(r,function(){L=W(r.doc,L);var Pt={from:L,to:L,text:r.doc.splitLines(q.filter(function(hn){return hn!=null}).join(r.doc.lineSeparator())),origin:"paste"};rs(r.doc,Pt),gs(r.doc,Ti(W(r.doc,L),W(r.doc,Ro(Pt))))})()},Ee=function(Pt,hn){if(r.options.allowDropFileTypes&&$(r.options.allowDropFileTypes,Pt.type)==-1){ye();return}var bn=new FileReader;bn.onerror=function(){return ye()},bn.onload=function(){var Fn=bn.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Fn)){ye();return}q[hn]=Fn,ye()},bn.readAsText(Pt)},De=0;De<D.length;De++)Ee(D[De],De);else{if(r.state.draggingText&&r.doc.sel.contains(L)>-1){r.state.draggingText(e),setTimeout(function(){return r.display.input.focus()},20);return}try{var ot=e.dataTransfer.getData("Text");if(ot){var At;if(r.state.draggingText&&!r.state.draggingText.copy&&(At=r.listSelections()),sl(r.doc,Ti(L,L)),At)for(var Nt=0;Nt<At.length;++Nt)Rs(r.doc,"",At[Nt].anchor,At[Nt].head,"drag");r.replaceSelection(ot,"around","paste"),r.display.input.focus()}}catch(Pt){}}}function ra(e,r){if(M&&(!e.state.draggingText||+new Date-Gr<100)){We(r);return}if(vt(e,r)||$o(e.display,r))return;if(r.dataTransfer.setData("Text",e.getSelection()),r.dataTransfer.effectAllowed="copyMove",r.dataTransfer.setDragImage&&!h){var L=g("img",null,null,"position: fixed; left: 0; top: 0;");L.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",t&&(L.width=L.height=1,e.display.wrapper.appendChild(L),L._top=L.offsetTop),r.dataTransfer.setDragImage(L,0,0),t&&L.parentNode.removeChild(L)}}function Nr(e,r){var L=er(e,r);if(!L)return;var D=document.createDocumentFragment();ia(e,L,D),e.display.dragCursor||(e.display.dragCursor=g("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),A(e.display.dragCursor,D)}function fa(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function yi(e){if(!document.getElementsByClassName)return;for(var r=document.getElementsByClassName("CodeMirror"),L=[],D=0;D<r.length;D++){var j=r[D].CodeMirror;j&&L.push(j)}L.length&&L[0].operation(function(){for(var q=0;q<L.length;q++)e(L[q])})}var Ya=!1;function Bo(){if(Ya)return;Ho(),Ya=!0}function Ho(){var e;Ve(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,yi(el)},100))}),Ve(window,"blur",function(){return yi(fr)})}function el(e){var r=e.display;r.cachedCharWidth=r.cachedTextHeight=r.cachedPaddingH=null,r.scrollbarsClipped=!1,e.setSize()}for(var Io={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Do=0;Do<10;Do++)Io[Do+48]=Io[Do+96]=String(Do);for(var cs=65;cs<=90;cs++)Io[cs]=String.fromCharCode(cs);for(var dl=1;dl<=12;dl++)Io[dl+111]=Io[dl+63235]="F"+dl;var Ds={};Ds.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Ds.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Ds.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Ds.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Ds.default=o?Ds.macDefault:Ds.pcDefault;function Rl(e){var r=e.split(/-(?!$)/);e=r[r.length-1];for(var L,D,j,q,ue=0;ue<r.length-1;ue++){var ye=r[ue];if(/^(cmd|meta|m)$/i.test(ye))q=!0;else if(/^a(lt)?$/i.test(ye))L=!0;else if(/^(c|ctrl|control)$/i.test(ye))D=!0;else if(/^s(hift)?$/i.test(ye))j=!0;else throw new Error("Unrecognized modifier name: "+ye)}return L&&(e="Alt-"+e),D&&(e="Ctrl-"+e),q&&(e="Cmd-"+e),j&&(e="Shift-"+e),e}function Cu(e){var r={};for(var L in e)if(e.hasOwnProperty(L)){var D=e[L];if(/^(name|fallthrough|(de|at)tach)$/.test(L))continue;if(D=="..."){delete e[L];continue}for(var j=ge(L.split(" "),Rl),q=0;q<j.length;q++){var ue=void 0,ye=void 0;q==j.length-1?(ye=j.join(" "),ue=D):(ye=j.slice(0,q+1).join(" "),ue="...");var Ee=r[ye];if(!Ee)r[ye]=ue;else if(Ee!=ue)throw new Error("Inconsistent bindings for "+ye)}delete e[L]}for(var De in r)e[De]=r[De];return e}function bs(e,r,L,D){r=bo(r);var j=r.call?r.call(e,D):r[e];if(j===!1)return"nothing";if(j==="...")return"multi";if(j!=null&&L(j))return"handled";if(r.fallthrough){if(Object.prototype.toString.call(r.fallthrough)!="[object Array]")return bs(e,r.fallthrough,L,D);for(var q=0;q<r.fallthrough.length;q++){var ue=bs(e,r.fallthrough[q],L,D);if(ue)return ue}}}function wu(e){var r=typeof e=="string"?e:Io[e.keyCode];return r=="Ctrl"||r=="Alt"||r=="Shift"||r=="Mod"}function Zl(e,r,L){var D=e;return r.altKey&&D!="Alt"&&(e="Alt-"+e),(w?r.metaKey:r.ctrlKey)&&D!="Ctrl"&&(e="Ctrl-"+e),(w?r.ctrlKey:r.metaKey)&&D!="Mod"&&(e="Cmd-"+e),!L&&r.shiftKey&&D!="Shift"&&(e="Shift-"+e),e}function cu(e,r){if(t&&e.keyCode==34&&e.char)return!1;var L=Io[e.keyCode];return L==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(L=e.code),Zl(L,e,r))}function bo(e){return typeof e=="string"?Ds[e]:e}function Ws(e,r){for(var L=e.doc.sel.ranges,D=[],j=0;j<L.length;j++){for(var q=r(L[j]);D.length&&Ie(q.from,le(D).to)<=0;){var ue=D.pop();if(Ie(ue.from,q.from)<0){q.from=ue.from;break}}D.push(q)}Qi(e,function(){for(var ye=D.length-1;ye>=0;ye--)Rs(e.doc,"",D[ye].from,D[ye].to,"+delete");Pa(e)})}function du(e,r,L){var D=Ne(e.text,r+L,L);return D<0||D>e.text.length?null:D}function hu(e,r,L){var D=du(e,r.ch,L);return D==null?null:new _e(r.line,D,L<0?"after":"before")}function $l(e,r,L,D,j){if(e){r.doc.direction=="rtl"&&(j=-j);var q=zt(L,r.doc.direction);if(q){var ue=j<0?le(q):q[0],ye=j<0==(ue.level==1),Ee=ye?"after":"before",De;if(ue.level>0||r.doc.direction=="rtl"){var ot=dt(r,L);De=j<0?L.text.length-1:0;var At=Mt(r,ot,De).top;De=ct(function(Nt){return Mt(r,ot,Nt).top==At},j<0==(ue.level==1)?ue.from:ue.to-1,De),Ee=="before"&&(De=du(L,De,1))}else De=j<0?ue.to:ue.from;return new _e(D,De,Ee)}}return new _e(D,j<0?L.text.length:0,j<0?"before":"after")}function Au(e,r,L,D){var j=zt(r,e.doc.direction);if(!j)return hu(r,L,D);L.ch>=r.text.length?(L.ch=r.text.length,L.sticky="before"):L.ch<=0&&(L.ch=0,L.sticky="after");var q=ht(j,L.ch,L.sticky),ue=j[q];if(e.doc.direction=="ltr"&&ue.level%2==0&&(D>0?ue.to>L.ch:ue.from<L.ch))return hu(r,L,D);var ye=function(Zn,sr){return du(r,Zn instanceof _e?Zn.ch:Zn,sr)},Ee,De=function(Zn){return e.options.lineWrapping?(Ee=Ee||dt(e,r),Vt(e,r,Ee,Zn)):{begin:0,end:r.text.length}},ot=De(L.sticky=="before"?ye(L,-1):L.ch);if(e.doc.direction=="rtl"||ue.level==1){var At=ue.level==1==D<0,Nt=ye(L,At?1:-1);if(Nt!=null&&(At?Nt<=ue.to&&Nt<=ot.end:Nt>=ue.from&&Nt>=ot.begin)){var Pt=At?"before":"after";return new _e(L.line,Nt,Pt)}}var hn=function(Zn,sr,$n){for(var br=function(ji,Co){return Co?new _e(L.line,ye(ji,1),"before"):new _e(L.line,ji,"after")};Zn>=0&&Zn<j.length;Zn+=sr){var Zr=j[Zn],Hr=sr>0==(Zr.level!=1),Fa=Hr?$n.begin:ye($n.end,-1);if(Zr.from<=Fa&&Fa<Zr.to)return br(Fa,Hr);if(Fa=Hr?Zr.from:ye(Zr.to,-1),$n.begin<=Fa&&Fa<$n.end)return br(Fa,Hr)}},bn=hn(q+D,D,ot);if(bn)return bn;var Fn=D>0?ot.end:ye(ot.begin,-1);return Fn!=null&&!(D>0&&Fn==r.text.length)&&(bn=hn(D>0?0:j.length-1,D,De(Fn)),bn)?bn:null}var Fl={selectAll:Sl,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),Ae)},killLine:function(e){return Ws(e,function(r){if(r.empty()){var L=Un(e.doc,r.head.line).text.length;return r.head.ch==L&&r.head.line<e.lastLine()?{from:r.head,to:_e(r.head.line+1,0)}:{from:r.head,to:_e(r.head.line,L)}}else return{from:r.from(),to:r.to()}})},deleteLine:function(e){return Ws(e,function(r){return{from:_e(r.from().line,0),to:W(e.doc,_e(r.to().line+1,0))}})},delLineLeft:function(e){return Ws(e,function(r){return{from:_e(r.from().line,0),to:r.from()}})},delWrappedLineLeft:function(e){return Ws(e,function(r){var L=e.charCoords(r.head,"div").top+5,D=e.coordsChar({left:0,top:L},"div");return{from:D,to:r.from()}})},delWrappedLineRight:function(e){return Ws(e,function(r){var L=e.charCoords(r.head,"div").top+5,D=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:L},"div");return{from:r.from(),to:D}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(_e(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(_e(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(r){return xu(e,r.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(r){return Tu(e,r.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(r){return Xu(e,r.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(r){var L=e.cursorCoords(r.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:L},"div")},ie)},goLineLeft:function(e){return e.extendSelectionsBy(function(r){var L=e.cursorCoords(r.head,"div").top+5;return e.coordsChar({left:0,top:L},"div")},ie)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(r){var L=e.cursorCoords(r.head,"div").top+5,D=e.coordsChar({left:0,top:L},"div");return D.ch<e.getLine(D.line).search(/\S/)?Tu(e,r.head):D},ie)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection(" ")},insertSoftTab:function(e){for(var r=[],L=e.listSelections(),D=e.options.tabSize,j=0;j<L.length;j++){var q=L[j].from(),ue=z(e.getLine(q.line),q.ch,D);r.push(me(D-ue%D))}e.replaceSelections(r)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Qi(e,function(){for(var r=e.listSelections(),L=[],D=0;D<r.length;D++){if(!r[D].empty())continue;var j=r[D].head,q=Un(e.doc,j.line).text;if(q){if(j.ch==q.length&&(j=new _e(j.line,j.ch-1)),j.ch>0)j=new _e(j.line,j.ch+1),e.replaceRange(q.charAt(j.ch-1)+q.charAt(j.ch-2),_e(j.line,j.ch-2),j,"+transpose");else if(j.line>e.doc.first){var ue=Un(e.doc,j.line-1).text;ue&&(j=new _e(j.line,1),e.replaceRange(q.charAt(0)+e.doc.lineSeparator()+ue.charAt(ue.length-1),_e(j.line-1,ue.length-1),j,"+transpose"))}}L.push(new Ha(j,j))}e.setSelections(L)})},newlineAndIndent:function(e){return Qi(e,function(){for(var r=e.listSelections(),L=r.length-1;L>=0;L--)e.replaceRange(e.doc.lineSeparator(),r[L].anchor,r[L].head,"+input");r=e.listSelections();for(var D=0;D<r.length;D++)e.indentLine(r[D].from().line,null,!0);Pa(e)})},openLine:function(e){return e.replaceSelection(`
|
|
`,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function xu(e,r){var L=Un(e.doc,r),D=ci(L);return D!=L&&(r=Kr(D)),$l(!0,e,D,r,1)}function Xu(e,r){var L=Un(e.doc,r),D=Wo(L);return D!=L&&(r=Kr(D)),$l(!0,e,L,r,-1)}function Tu(e,r){var L=xu(e,r.line),D=Un(e.doc,L.line),j=zt(D,e.doc.direction);if(!j||j[0].level==0){var q=Math.max(L.ch,D.text.search(/\S/)),ue=r.line==L.line&&r.ch<=q&&r.ch;return _e(L.line,ue?0:q,L.sticky)}return L}function ql(e,r,L){if(typeof r=="string"&&(r=Fl[r],!r))return!1;e.display.input.ensurePolled();var D=e.display.shift,j=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),L&&(e.display.shift=!1),j=r(e)!=fe}finally{e.display.shift=D,e.state.suppressEdits=!1}return j}function Yu(e,r,L){for(var D=0;D<e.state.keyMaps.length;D++){var j=bs(r,e.state.keyMaps[D],L,e);if(j)return j}return e.options.extraKeys&&bs(r,e.options.extraKeys,L,e)||bs(r,e.options.keyMap,L,e)}var Ju=new Q;function kl(e,r,L,D){var j=e.state.keySeq;if(j){if(wu(r))return"handled";if(/\'$/.test(r)?e.state.keySeq=null:Ju.set(50,function(){e.state.keySeq==j&&(e.state.keySeq=null,e.display.input.reset())}),fu(e,j+" "+r,L,D))return!0}return fu(e,r,L,D)}function fu(e,r,L,D){var j=Yu(e,r,D);return j=="multi"&&(e.state.keySeq=r),j=="handled"&&Ia(e,"keyHandled",e,r,L),(j=="handled"||j=="multi")&&(we(L),yr(e)),!!j}function pu(e,r){var L=cu(r,!0);return L?r.shiftKey&&!e.state.keySeq?kl(e,"Shift-"+L,r,function(D){return ql(e,D,!0)})||kl(e,L,r,function(D){if(typeof D=="string"?/^go[A-Z]/.test(D):D.motion)return ql(e,D)}):kl(e,L,r,function(D){return ql(e,D)}):!1}function Su(e,r,L){return kl(e,"'"+L+"'",r,function(D){return ql(e,D,!0)})}var eu=null;function tu(e){var r=this;if(e.target&&e.target!=r.display.input.getField())return;if(r.curOp.focus=U(),vt(r,e))return;M&&x<11&&e.keyCode==27&&(e.returnValue=!1);var L=e.keyCode;r.display.shift=L==16||e.shiftKey;var D=pu(r,e);t&&(eu=D?L:null,!D&&L==88&&!Qe&&(o?e.metaKey:e.ctrlKey)&&r.replaceSelection("",null,"cut")),I&&!o&&!D&&L==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),L==18&&!/\bCodeMirror-crosshair\b/.test(r.display.lineDiv.className)&&Zu(r)}function Zu(e){var r=e.display.lineDiv;N(r,"CodeMirror-crosshair");function L(D){(D.keyCode==18||!D.altKey)&&(b(r,"CodeMirror-crosshair"),Ot(document,"keyup",L),Ot(document,"mouseover",L))}Ve(document,"keyup",L),Ve(document,"mouseover",L)}function Ou(e){e.keyCode==16&&(this.doc.sel.shift=!1),vt(this,e)}function Ru(e){var r=this;if(e.target&&e.target!=r.display.input.getField())return;if($o(r.display,e)||vt(r,e)||e.ctrlKey&&!e.altKey||o&&e.metaKey)return;var L=e.keyCode,D=e.charCode;if(t&&L==eu){eu=null,we(e);return}if(t&&(!e.which||e.which<10)&&pu(r,e))return;var j=String.fromCharCode(D==null?L:D);if(j=="\b")return;if(Su(r,e,j))return;r.display.input.onKeyPress(e)}var $u=400,Bl=function(e,r,L){this.time=e,this.pos=r,this.button=L};Bl.prototype.compare=function(e,r,L){return this.time+$u>e&&Ie(r,this.pos)==0&&L==this.button};var hl,jl;function Bu(e,r){var L=+new Date;return jl&&jl.compare(L,e,r)?(hl=jl=null,"triple"):hl&&hl.compare(L,e,r)?(jl=new Bl(L,e,r),hl=null,"double"):(hl=new Bl(L,e,r),jl=null,"single")}function nu(e){var r=this,L=r.display;if(vt(r,e)||L.activeTouch&&L.input.supportsTouch())return;if(L.input.ensurePolled(),L.shift=e.shiftKey,$o(L,e)){n||(L.scroller.draggable=!1,setTimeout(function(){return L.scroller.draggable=!0},100));return}if(mu(r,e))return;var D=er(r,e),j=gt(e),q=D?Bu(D,j):"single";if(window.focus(),j==1&&r.state.selectingText&&r.state.selectingText(e),D&&Iu(r,j,D,q,e))return;j==1?D?Lu(r,D,q,e):Xe(e)==L.scroller&&we(e):j==2?(D&&li(r.doc,D),setTimeout(function(){return L.input.focus()},20)):j==3&&(P?r.display.input.onContextMenu(e):Cr(r))}function Iu(e,r,L,D,j){var q="Click";return D=="double"?q="Double"+q:D=="triple"&&(q="Triple"+q),q=(r==1?"Left":r==2?"Middle":"Right")+q,kl(e,Zl(q,j),j,function(ue){if(typeof ue=="string"&&(ue=Fl[ue]),!ue)return!1;var ye=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),ye=ue(e,L)!=fe}finally{e.state.suppressEdits=!1}return ye})}function Du(e,r,L){var D=e.getOption("configureMouse"),j=D?D(e,r,L):{};if(j.unit==null){var q=c?L.shiftKey&&L.metaKey:L.altKey;j.unit=q?"rectangle":r=="single"?"char":r=="double"?"word":"line"}return(j.extend==null||e.doc.extend)&&(j.extend=e.doc.extend||L.shiftKey),j.addNew==null&&(j.addNew=o?L.metaKey:L.ctrlKey),j.moveOnDrag==null&&(j.moveOnDrag=!(o?L.altKey:L.ctrlKey)),j}function Lu(e,r,L,D){M?setTimeout(F(oi,e),0):e.curOp.focus=U();var j=Du(e,L,D),q=e.doc.sel,ue;e.options.dragDrop&&Lt&&!e.isReadOnly()&&L=="single"&&(ue=q.contains(r))>-1&&(Ie((ue=q.ranges[ue]).from(),r)<0||r.xRel>0)&&(Ie(ue.to(),r)>0||r.xRel<0)?qu(e,D,r,j):Mu(e,D,r,j)}function qu(e,r,L,D){var j=e.display,q=!1,ue=Aa(e,function(De){n&&(j.scroller.draggable=!1),e.state.draggingText=!1,Ot(j.wrapper.ownerDocument,"mouseup",ue),Ot(j.wrapper.ownerDocument,"mousemove",ye),Ot(j.scroller,"dragstart",Ee),Ot(j.scroller,"drop",ue),q||(we(De),D.addNew||li(e.doc,L,null,null,D.extend),n&&!h||M&&x==9?setTimeout(function(){j.wrapper.ownerDocument.body.focus({preventScroll:!0}),j.input.focus()},20):j.input.focus())}),ye=function(De){q=q||Math.abs(r.clientX-De.clientX)+Math.abs(r.clientY-De.clientY)>=10},Ee=function(){return q=!0};n&&(j.scroller.draggable=!0),e.state.draggingText=ue,ue.copy=!D.moveOnDrag,j.scroller.dragDrop&&j.scroller.dragDrop(),Ve(j.wrapper.ownerDocument,"mouseup",ue),Ve(j.wrapper.ownerDocument,"mousemove",ye),Ve(j.scroller,"dragstart",Ee),Ve(j.scroller,"drop",ue),Cr(e),setTimeout(function(){return j.input.focus()},20)}function Hl(e,r,L){if(L=="char")return new Ha(r,r);if(L=="word")return e.findWordAt(r);if(L=="line")return new Ha(_e(r.line,0),W(e.doc,_e(r.line+1,0)));var D=L(e,r);return new Ha(D.from,D.to)}function Mu(e,r,L,D){var j=e.display,q=e.doc;we(r);var ue,ye,Ee=q.sel,De=Ee.ranges;if(D.addNew&&!D.extend?(ye=q.sel.contains(L),ye>-1?ue=De[ye]:ue=new Ha(L,L)):(ue=q.sel.primary(),ye=q.sel.primIndex),D.unit=="rectangle")D.addNew||(ue=new Ha(L,L)),L=er(e,r,!0,!0),ye=-1;else{var ot=Hl(e,L,D.unit);D.extend?ue=Gi(ue,ot.anchor,ot.head,D.extend):ue=ot}D.addNew?ye==-1?(ye=De.length,ki(q,Fi(e,De.concat([ue]),ye),{scroll:!1,origin:"*mouse"})):De.length>1&&De[ye].empty()&&D.unit=="char"&&!D.extend?(ki(q,Fi(e,De.slice(0,ye).concat(De.slice(ye+1)),0),{scroll:!1,origin:"*mouse"}),Ee=q.sel):Yo(q,ye,ue,ce):(ye=0,ki(q,new lo([ue],0),ce),Ee=q.sel);var At=L;function Nt($n){if(Ie(At,$n)==0)return;if(At=$n,D.unit=="rectangle"){for(var br=[],Zr=e.options.tabSize,Hr=z(Un(q,L.line).text,L.ch,Zr),Fa=z(Un(q,$n.line).text,$n.ch,Zr),ji=Math.min(Hr,Fa),Co=Math.max(Hr,Fa),oo=Math.min(L.line,$n.line),ds=Math.min(e.lastLine(),Math.max(L.line,$n.line));oo<=ds;oo++){var Qo=Un(q,oo).text,po=be(Qo,ji,Zr);ji==Co?br.push(new Ha(_e(oo,po),_e(oo,po))):Qo.length>po&&br.push(new Ha(_e(oo,po),_e(oo,be(Qo,Co,Zr))))}br.length||br.push(new Ha(L,L)),ki(q,Fi(e,Ee.ranges.slice(0,ye).concat(br),ye),{origin:"*mouse",scroll:!1}),e.scrollIntoView($n)}else{var Ko=ue,Lo=Hl(e,$n,D.unit),zn=Ko.anchor,qi;Ie(Lo.anchor,zn)>0?(qi=Lo.head,zn=sn(Ko.from(),Lo.anchor)):(qi=Lo.anchor,zn=Xt(Ko.to(),Lo.head));var eo=Ee.ranges.slice(0);eo[ye]=Pu(e,new Ha(W(q,zn),qi)),ki(q,Fi(e,eo,ye),ce)}}var Pt=j.wrapper.getBoundingClientRect(),hn=0;function bn($n){var br=++hn,Zr=er(e,$n,!0,D.unit=="rectangle");if(!Zr)return;if(Ie(Zr,At)!=0){e.curOp.focus=U(),Nt(Zr);var Hr=Mn(j,q);(Zr.line>=Hr.to||Zr.line<Hr.from)&&setTimeout(Aa(e,function(){hn==br&&bn($n)}),150)}else{var Fa=$n.clientY<Pt.top?-20:$n.clientY>Pt.bottom?20:0;Fa&&setTimeout(Aa(e,function(){if(hn!=br)return;j.scroller.scrollTop+=Fa,bn($n)}),50)}}function Fn($n){e.state.selectingText=!1,hn=Infinity,$n&&(we($n),j.input.focus()),Ot(j.wrapper.ownerDocument,"mousemove",Zn),Ot(j.wrapper.ownerDocument,"mouseup",sr),q.history.lastSelOrigin=null}var Zn=Aa(e,function($n){$n.buttons===0||!gt($n)?Fn($n):bn($n)}),sr=Aa(e,Fn);e.state.selectingText=sr,Ve(j.wrapper.ownerDocument,"mousemove",Zn),Ve(j.wrapper.ownerDocument,"mouseup",sr)}function Pu(e,r){var L=r.anchor,D=r.head,j=Un(e.doc,L.line);if(Ie(L,D)==0&&L.sticky==D.sticky)return r;var q=zt(j);if(!q)return r;var ue=ht(q,L.ch,L.sticky),ye=q[ue];if(ye.from!=L.ch&&ye.to!=L.ch)return r;var Ee=ue+(ye.from==L.ch==(ye.level!=1)?0:1);if(Ee==0||Ee==q.length)return r;var De;if(D.line!=L.line)De=(D.line-L.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var ot=ht(q,D.ch,D.sticky),At=ot-ue||(D.ch-L.ch)*(ye.level==1?-1:1);ot==Ee-1||ot==Ee?De=At<0:De=At>0}var Nt=q[Ee+(De?-1:0)],Pt=De==(Nt.level==1),hn=Pt?Nt.from:Nt.to,bn=Pt?"after":"before";return L.ch==hn&&L.sticky==bn?r:new Ha(new _e(L.line,hn,bn),D)}function Uu(e,r,L,D){var j,q;if(r.touches)j=r.touches[0].clientX,q=r.touches[0].clientY;else try{j=r.clientX,q=r.clientY}catch(Nt){return!1}if(j>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;D&&we(r);var ue=e.display,ye=ue.lineDiv.getBoundingClientRect();if(q>ye.bottom||!ke(e,L))return Pe(r);q-=ye.top-ue.viewOffset;for(var Ee=0;Ee<e.display.gutterSpecs.length;++Ee){var De=ue.gutters.childNodes[Ee];if(De&&De.getBoundingClientRect().right>=j){var ot=_a(e.doc,q),At=e.display.gutterSpecs[Ee];return ut(e,L,e,ot,At.className,r),Pe(r)}}}function mu(e,r){return Uu(e,r,"gutterClick",!0)}function gu(e,r){if($o(e.display,r)||Il(e,r))return;if(vt(e,r,"contextmenu"))return;P||e.display.input.onContextMenu(r)}function Il(e,r){return ke(e,"gutterContextMenu")?Uu(e,r,"gutterContextMenu",!1):!1}function ru(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),_n(e)}var tl={toString:function(){return"CodeMirror.Init"}},Nu={},au={};function ec(e){var r=e.optionHandlers;function L(D,j,q,ue){e.defaults[D]=j,q&&(r[D]=ue?function(ye,Ee,De){De!=tl&&q(ye,Ee,De)}:q)}e.defineOption=L,e.Init=tl,L("value","",function(D,j){return D.setValue(j)},!0),L("mode",null,function(D,j){D.doc.modeOption=j,Xo(D)},!0),L("indentUnit",2,Xo,!0),L("indentWithTabs",!1),L("smartIndent",!0),L("tabSize",4,function(D){Ss(D),_n(D),Lr(D)},!0),L("lineSeparator",null,function(D,j){if(D.doc.lineSep=j,!j)return;var q=[],ue=D.doc.first;D.doc.iter(function(Ee){for(var De=0;;){var ot=Ee.text.indexOf(j,De);if(ot==-1)break;De=ot+j.length,q.push(_e(ue,ot))}ue++});for(var ye=q.length-1;ye>=0;ye--)Rs(D.doc,j,q[ye],_e(q[ye].line,q[ye].ch+j.length))}),L("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(D,j,q){D.state.specialChars=new RegExp(j.source+(j.test(" ")?"":"| "),"g"),q!=tl&&D.refresh()}),L("specialCharPlaceholder",ei,function(D){return D.refresh()},!0),L("electricChars",!0),L("inputStyle",f?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),L("spellcheck",!1,function(D,j){return D.getInputField().spellcheck=j},!0),L("autocorrect",!1,function(D,j){return D.getInputField().autocorrect=j},!0),L("autocapitalize",!1,function(D,j){return D.getInputField().autocapitalize=j},!0),L("rtlMoveVisually",!E),L("wholeLineUpdateBefore",!0),L("theme","default",function(D){ru(D),co(D)},!0),L("keyMap","default",function(D,j,q){var ue=bo(j),ye=q!=tl&&bo(q);ye&&ye.detach&&ye.detach(D,ue),ue.attach&&ue.attach(D,ye||null)}),L("extraKeys",null),L("configureMouse",null),L("lineWrapping",!1,Fu,!0),L("gutters",[],function(D,j){D.display.gutterSpecs=Zi(j,D.options.lineNumbers),co(D)},!0),L("fixedGutter",!0,function(D,j){D.display.gutters.style.left=j?or(D.display)+"px":"0",D.refresh()},!0),L("coverGutterNextToScrollbar",!1,function(D){return hi(D)},!0),L("scrollbarStyle","native",function(D){Ci(D),hi(D),D.display.scrollbars.setScrollTop(D.doc.scrollTop),D.display.scrollbars.setScrollLeft(D.doc.scrollLeft)},!0),L("lineNumbers",!1,function(D,j){D.display.gutterSpecs=Zi(D.options.gutters,j),co(D)},!0),L("firstLineNumber",1,co,!0),L("lineNumberFormatter",function(D){return D},co,!0),L("showCursorWhenSelecting",!1,vr,!0),L("resetSelectionOnContextMenu",!0),L("lineWiseCopyCut",!0),L("pasteLinesPerSelection",!0),L("selectionsMayTouch",!1),L("readOnly",!1,function(D,j){j=="nocursor"&&(fr(D),D.display.input.blur()),D.display.input.readOnlyChanged(j)}),L("screenReaderLabel",null,function(D,j){j=j===""?null:j,D.display.input.screenReaderLabelChanged(j)}),L("disableInput",!1,function(D,j){j||D.display.input.reset()},!0),L("dragDrop",!0,tc),L("allowDropFileTypes",null),L("cursorBlinkRate",530),L("cursorScrollMargin",0),L("cursorHeight",1,vr,!0),L("singleCursorHeightPerLine",!0,vr,!0),L("workTime",100),L("workDelay",100),L("flattenSpans",!0,Ss,!0),L("addModeClass",!1,Ss,!0),L("pollInterval",100),L("undoDepth",200,function(D,j){return D.doc.history.undoDepth=j}),L("historyEventDelay",1250),L("viewportMargin",10,function(D){return D.refresh()},!0),L("maxHighlightLength",1e4,Ss,!0),L("moveInputWithCursor",!0,function(D,j){j||D.display.input.resetPosition()}),L("tabindex",null,function(D,j){return D.display.input.getField().tabIndex=j||""}),L("autofocus",null),L("direction","ltr",function(D,j){return D.doc.setDirection(j)},!0),L("phrases",null)}function tc(e,r,L){var D=L&&L!=tl;if(!r!=!D){var j=e.display.dragFunctions,q=r?Ve:Ot;q(e.display.scroller,"dragstart",j.start),q(e.display.scroller,"dragenter",j.enter),q(e.display.scroller,"dragover",j.over),q(e.display.scroller,"dragleave",j.leave),q(e.display.scroller,"drop",j.drop)}}function Fu(e){e.options.lineWrapping?(N(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(b(e.display.wrapper,"CodeMirror-wrap"),ws(e)),Ur(e),Lr(e),_n(e),setTimeout(function(){return hi(e)},100)}function Xi(e,r){var L=this;if(!(this instanceof Xi))return new Xi(e,r);this.options=r=r?R(r):{},R(Nu,r,!1);var D=r.value;typeof D=="string"?D=new In(D,r.mode,null,r.lineSeparator,r.direction):r.mode&&(D.modeOption=r.mode),this.doc=D;var j=new Xi.inputStyles[r.inputStyle](this),q=this.display=new No(e,D,j,r);q.wrapper.CodeMirror=this,ru(this),r.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ci(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new Q,keySeq:null,specialChars:null},r.autofocus&&!f&&q.input.focus(),M&&x<11&&setTimeout(function(){return L.display.input.reset(!0)},20),ku(this),Bo(),Ao(this),this.curOp.forceUpdate=!0,Wt(this,D),r.autofocus&&!f||this.hasFocus()?setTimeout(function(){L.hasFocus()&&!L.state.focused&&Ir(L)},20):fr(this);for(var ue in au)au.hasOwnProperty(ue)&&au[ue](this,r[ue],tl);xi(this),r.finishInit&&r.finishInit(this);for(var ye=0;ye<iu.length;++ye)iu[ye](this);_o(this),n&&r.lineWrapping&&getComputedStyle(q.lineDiv).textRendering=="optimizelegibility"&&(q.lineDiv.style.textRendering="auto")}Xi.defaults=Nu,Xi.optionHandlers=au;function ku(e){var r=e.display;Ve(r.scroller,"mousedown",Aa(e,nu)),M&&x<11?Ve(r.scroller,"dblclick",Aa(e,function(Ee){if(vt(e,Ee))return;var De=er(e,Ee);if(!De||mu(e,Ee)||$o(e.display,Ee))return;we(Ee);var ot=e.findWordAt(De);li(e.doc,ot.anchor,ot.head)})):Ve(r.scroller,"dblclick",function(Ee){return vt(e,Ee)||we(Ee)}),Ve(r.scroller,"contextmenu",function(Ee){return gu(e,Ee)}),Ve(r.input.getField(),"contextmenu",function(Ee){r.scroller.contains(Ee.target)||gu(e,Ee)});var L,D={end:0};function j(){r.activeTouch&&(L=setTimeout(function(){return r.activeTouch=null},1e3),D=r.activeTouch,D.end=+new Date)}function q(Ee){if(Ee.touches.length!=1)return!1;var De=Ee.touches[0];return De.radiusX<=1&&De.radiusY<=1}function ue(Ee,De){if(De.left==null)return!0;var ot=De.left-Ee.left,At=De.top-Ee.top;return ot*ot+At*At>20*20}Ve(r.scroller,"touchstart",function(Ee){if(!vt(e,Ee)&&!q(Ee)&&!mu(e,Ee)){r.input.ensurePolled(),clearTimeout(L);var De=+new Date;r.activeTouch={start:De,moved:!1,prev:De-D.end<=300?D:null},Ee.touches.length==1&&(r.activeTouch.left=Ee.touches[0].pageX,r.activeTouch.top=Ee.touches[0].pageY)}}),Ve(r.scroller,"touchmove",function(){r.activeTouch&&(r.activeTouch.moved=!0)}),Ve(r.scroller,"touchend",function(Ee){var De=r.activeTouch;if(De&&!$o(r,Ee)&&De.left!=null&&!De.moved&&new Date-De.start<300){var ot=e.coordsChar(r.activeTouch,"page"),At;!De.prev||ue(De,De.prev)?At=new Ha(ot,ot):!De.prev.prev||ue(De,De.prev.prev)?At=e.findWordAt(ot):At=new Ha(_e(ot.line,0),W(e.doc,_e(ot.line+1,0))),e.setSelection(At.anchor,At.head),e.focus(),we(Ee)}j()}),Ve(r.scroller,"touchcancel",j),Ve(r.scroller,"scroll",function(){r.scroller.clientHeight&&(Da(e,r.scroller.scrollTop),Qr(e,r.scroller.scrollLeft,!0),ut(e,"scroll",e))}),Ve(r.scroller,"mousewheel",function(Ee){return ts(e,Ee)}),Ve(r.scroller,"DOMMouseScroll",function(Ee){return ts(e,Ee)}),Ve(r.wrapper,"scroll",function(){return r.wrapper.scrollTop=r.wrapper.scrollLeft=0}),r.dragFunctions={enter:function(Ee){vt(e,Ee)||We(Ee)},over:function(Ee){vt(e,Ee)||(Nr(e,Ee),We(Ee))},start:function(Ee){return ra(e,Ee)},drop:Aa(e,Jn),leave:function(Ee){vt(e,Ee)||fa(e)}};var ye=r.input.getField();Ve(ye,"keyup",function(Ee){return Ou.call(e,Ee)}),Ve(ye,"keydown",Aa(e,tu)),Ve(ye,"keypress",Aa(e,Ru)),Ve(ye,"focus",function(Ee){return Ir(e,Ee)}),Ve(ye,"blur",function(Ee){return fr(e,Ee)})}var iu=[];Xi.defineInitHook=function(e){return iu.push(e)};function bl(e,r,L,D){var j=e.doc,q;L==null&&(L="add"),L=="smart"&&(j.mode.indent?q=dn(e,r).state:L="prev");var ue=e.options.tabSize,ye=Un(j,r),Ee=z(ye.text,null,ue);ye.stateAfter&&(ye.stateAfter=null);var De=ye.text.match(/^\s*/)[0],ot;if(!D&&!/\S/.test(ye.text))ot=0,L="not";else if(L=="smart"&&(ot=j.mode.indent(q,ye.text.slice(De.length),ye.text),ot==fe||ot>150)){if(!D)return;L="prev"}L=="prev"?r>j.first?ot=z(Un(j,r-1).text,null,ue):ot=0:L=="add"?ot=Ee+e.options.indentUnit:L=="subtract"?ot=Ee-e.options.indentUnit:typeof L=="number"&&(ot=Ee+L),ot=Math.max(0,ot);var At="",Nt=0;if(e.options.indentWithTabs)for(var Pt=Math.floor(ot/ue);Pt;--Pt)Nt+=ue,At+=" ";if(Nt<ot&&(At+=me(ot-Nt)),At!=De)return Rs(j,At,_e(r,0),_e(r,De.length),"+input"),ye.stateAfter=null,!0;for(var hn=0;hn<j.sel.ranges.length;hn++){var bn=j.sel.ranges[hn];if(bn.head.line==r&&bn.head.ch<De.length){var Fn=_e(r,De.length);Yo(j,hn,new Ha(Fn,Fn));break}}}var Ls=null;function Ql(e){Ls=e}function vu(e,r,L,D,j){var q=e.doc;e.display.shift=!1,D||(D=q.sel);var ue=+new Date-200,ye=j=="paste"||e.state.pasteIncoming>ue,Ee=pt(r),De=null;if(ye&&D.ranges.length>1)if(Ls&&Ls.text.join(`
|
|
`)==r){if(D.ranges.length%Ls.text.length==0){De=[];for(var ot=0;ot<Ls.text.length;ot++)De.push(q.splitLines(Ls.text[ot]))}}else Ee.length==D.ranges.length&&e.options.pasteLinesPerSelection&&(De=ge(Ee,function(Zn){return[Zn]}));for(var At=e.curOp.updateInput,Nt=D.ranges.length-1;Nt>=0;Nt--){var Pt=D.ranges[Nt],hn=Pt.from(),bn=Pt.to();Pt.empty()&&(L&&L>0?hn=_e(hn.line,hn.ch-L):e.state.overwrite&&!ye?bn=_e(bn.line,Math.min(Un(q,bn.line).text.length,bn.ch+le(Ee).length)):ye&&Ls&&Ls.lineWise&&Ls.text.join(`
|
|
`)==Ee.join(`
|
|
`)&&(hn=bn=_e(hn.line,0)));var Fn={from:hn,to:bn,text:De?De[Nt%De.length]:Ee,origin:j||(ye?"paste":e.state.cutIncoming>ue?"cut":"+input")};rs(e.doc,Fn),Ia(e,"inputRead",e,Fn)}r&&!ye&&Wl(e,r),Pa(e),e.curOp.updateInput<2&&(e.curOp.updateInput=At),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Kl(e,r){var L=e.clipboardData&&e.clipboardData.getData("Text");if(L)return e.preventDefault(),!r.isReadOnly()&&!r.options.disableInput&&Qi(r,function(){return vu(r,L,0,null,"paste")}),!0}function Wl(e,r){if(!e.options.electricChars||!e.options.smartIndent)return;for(var L=e.doc.sel,D=L.ranges.length-1;D>=0;D--){var j=L.ranges[D];if(j.head.ch>100||D&&L.ranges[D-1].head.line==j.head.line)continue;var q=e.getModeAt(j.head),ue=!1;if(q.electricChars){for(var ye=0;ye<q.electricChars.length;ye++)if(r.indexOf(q.electricChars.charAt(ye))>-1){ue=bl(e,j.head.line,"smart");break}}else q.electricInput&&(q.electricInput.test(Un(e.doc,j.head.line).text.slice(0,j.head.ch))&&(ue=bl(e,j.head.line,"smart")));ue&&Ia(e,"electricInput",e,j.head.line)}}function yu(e){for(var r=[],L=[],D=0;D<e.doc.sel.ranges.length;D++){var j=e.doc.sel.ranges[D].head.line,q={anchor:_e(j,0),head:_e(j+1,0)};L.push(q),r.push(e.getRange(q.anchor,q.head))}return{text:r,ranges:L}}function bu(e,r,L,D){e.setAttribute("autocorrect",L?"":"off"),e.setAttribute("autocapitalize",D?"":"off"),e.setAttribute("spellcheck",!!r)}function ju(){var e=g("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),r=g("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return n?e.style.width="1000px":e.setAttribute("wrap","off"),u&&(e.style.border="1px solid black"),bu(e),r}function Hu(e){var r=e.optionHandlers,L=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(D,j){var q=this.options,ue=q[D];if(q[D]==j&&D!="mode")return;q[D]=j,r.hasOwnProperty(D)&&Aa(this,r[D])(this,j,ue),ut(this,"optionChange",this,D)},getOption:function(D){return this.options[D]},getDoc:function(){return this.doc},addKeyMap:function(D,j){this.state.keyMaps[j?"push":"unshift"](bo(D))},removeKeyMap:function(D){for(var j=this.state.keyMaps,q=0;q<j.length;++q)if(j[q]==D||j[q].name==D)return j.splice(q,1),!0},addOverlay:wi(function(D,j){var q=D.token?D:e.getMode(this.options,D);if(q.startState)throw new Error("Overlays may not be stateful.");ae(this.state.overlays,{mode:q,modeSpec:D,opaque:j&&j.opaque,priority:j&&j.priority||0},function(ue){return ue.priority}),this.state.modeGen++,Lr(this)}),removeOverlay:wi(function(D){for(var j=this.state.overlays,q=0;q<j.length;++q){var ue=j[q].modeSpec;if(ue==D||typeof D=="string"&&ue.name==D){j.splice(q,1),this.state.modeGen++,Lr(this);return}}}),indentLine:wi(function(D,j,q){typeof j!="string"&&typeof j!="number"&&(j==null?j=this.options.smartIndent?"smart":"prev":j=j?"add":"subtract"),di(this.doc,D)&&bl(this,D,j,q)}),indentSelection:wi(function(D){for(var j=this.doc.sel.ranges,q=-1,ue=0;ue<j.length;ue++){var ye=j[ue];if(ye.empty())ye.head.line>q&&(bl(this,ye.head.line,D,!0),q=ye.head.line,ue==this.doc.sel.primIndex&&Pa(this));else{var Ee=ye.from(),De=ye.to(),ot=Math.max(q,Ee.line);q=Math.min(this.lastLine(),De.line-(De.ch?0:1))+1;for(var At=ot;At<q;++At)bl(this,At,D);var Nt=this.doc.sel.ranges;Ee.ch==0&&j.length==Nt.length&&Nt[ue].from().ch>0&&Yo(this.doc,ue,new Ha(Ee,Nt[ue].to()),Ae)}}}),getTokenAt:function(D,j){return lr(this,D,j)},getLineTokens:function(D,j){return lr(this,_e(D),j,!0)},getTokenTypeAt:function(D){D=W(this.doc,D);var j=Qt(this,Un(this.doc,D.line)),q=0,ue=(j.length-1)/2,ye=D.ch,Ee;if(ye==0)Ee=j[2];else for(;;){var De=q+ue>>1;if((De?j[De*2-1]:0)>=ye)ue=De;else if(j[De*2+1]<ye)q=De+1;else{Ee=j[De*2+2];break}}var ot=Ee?Ee.indexOf("overlay "):-1;return ot<0?Ee:ot==0?null:Ee.slice(0,ot-1)},getModeAt:function(D){var j=this.doc.mode;return j.innerMode?e.innerMode(j,this.getTokenAt(D).state).mode:j},getHelper:function(D,j){return this.getHelpers(D,j)[0]},getHelpers:function(D,j){var q=[];if(!L.hasOwnProperty(j))return q;var ue=L[j],ye=this.getModeAt(D);if(typeof ye[j]=="string")ue[ye[j]]&&q.push(ue[ye[j]]);else if(ye[j])for(var Ee=0;Ee<ye[j].length;Ee++){var De=ue[ye[j][Ee]];De&&q.push(De)}else ye.helperType&&ue[ye.helperType]?q.push(ue[ye.helperType]):ue[ye.name]&&q.push(ue[ye.name]);for(var ot=0;ot<ue._global.length;ot++){var At=ue._global[ot];At.pred(ye,this)&&$(q,At.val)==-1&&q.push(At.val)}return q},getStateAfter:function(D,j){var q=this.doc;return D=re(q,D==null?q.first+q.size-1:D),dn(this,D+1,j).state},cursorCoords:function(D,j){var q,ue=this.doc.sel.primary();return D==null?q=ue.head:typeof D=="object"?q=W(this.doc,D):q=D?ue.from():ue.to(),Yt(this,q,j||"page")},charCoords:function(D,j){return kn(this,W(this.doc,D),j||"page")},coordsChar:function(D,j){return D=En(this,D,j||"page"),xn(this,D.left,D.top)},lineAtHeight:function(D,j){return D=En(this,{top:D,left:0},j||"page").top,_a(this.doc,D+this.display.viewOffset)},heightAtLine:function(D,j,q){var ue=!1,ye;if(typeof D=="number"){var Ee=this.doc.first+this.doc.size-1;D<this.doc.first?D=this.doc.first:D>Ee&&(D=Ee,ue=!0),ye=Un(this.doc,D)}else ye=D;return qt(this,ye,{top:0,left:0},j||"page",q||ue).top+(ue?this.doc.height-xo(ye):0)},defaultTextHeight:function(){return Gn(this.display)},defaultCharWidth:function(){return yn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(D,j,q,ue,ye){var Ee=this.display;D=Yt(this,W(this.doc,D));var De=D.bottom,ot=D.left;if(j.style.position="absolute",j.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(j),Ee.sizer.appendChild(j),ue=="over")De=D.top;else if(ue=="above"||ue=="near"){var At=Math.max(Ee.wrapper.clientHeight,this.doc.height),Nt=Math.max(Ee.sizer.clientWidth,Ee.lineSpace.clientWidth);(ue=="above"||D.bottom+j.offsetHeight>At)&&D.top>j.offsetHeight?De=D.top-j.offsetHeight:D.bottom+j.offsetHeight<=At&&(De=D.bottom),ot+j.offsetWidth>Nt&&(ot=Nt-j.offsetWidth)}j.style.top=De+"px",j.style.left=j.style.right="",ye=="right"?(ot=Ee.sizer.clientWidth-j.offsetWidth,j.style.right="0px"):(ye=="left"?ot=0:ye=="middle"&&(ot=(Ee.sizer.clientWidth-j.offsetWidth)/2),j.style.left=ot+"px"),q&&na(this,{left:ot,top:De,right:ot+j.offsetWidth,bottom:De+j.offsetHeight})},triggerOnKeyDown:wi(tu),triggerOnKeyPress:wi(Ru),triggerOnKeyUp:Ou,triggerOnMouseDown:wi(nu),execCommand:function(D){if(Fl.hasOwnProperty(D))return Fl[D].call(null,this)},triggerElectric:wi(function(D){Wl(this,D)}),findPosH:function(D,j,q,ue){var ye=1;j<0&&(ye=-1,j=-j);for(var Ee=W(this.doc,D),De=0;De<j&&!(Ee=ou(this.doc,Ee,ye,q,ue),Ee.hitSide);++De);return Ee},moveH:wi(function(D,j){var q=this;this.extendSelectionsBy(function(ue){return q.display.shift||q.doc.extend||ue.empty()?ou(q.doc,ue.head,D,j,q.options.rtlMoveVisually):D<0?ue.from():ue.to()},ie)}),deleteH:wi(function(D,j){var q=this.doc.sel,ue=this.doc;q.somethingSelected()?ue.replaceSelection("",null,"+delete"):Ws(this,function(ye){var Ee=ou(ue,ye.head,D,j,!1);return D<0?{from:Ee,to:ye.head}:{from:ye.head,to:Ee}})}),findPosV:function(D,j,q,ue){var ye=1,Ee=ue;j<0&&(ye=-1,j=-j);for(var De=W(this.doc,D),ot=0;ot<j;++ot){var At=Yt(this,De,"div");if(Ee==null?Ee=At.left:At.left=Ee,De=Qu(this,At,ye,q),De.hitSide)break}return De},moveV:wi(function(D,j){var q=this,ue=this.doc,ye=[],Ee=!this.display.shift&&!ue.extend&&ue.sel.somethingSelected();if(ue.extendSelectionsBy(function(ot){if(Ee)return D<0?ot.from():ot.to();var At=Yt(q,ot.head,"div");ot.goalColumn!=null&&(At.left=ot.goalColumn),ye.push(At.left);var Nt=Qu(q,At,D,j);return j=="page"&&ot==ue.sel.primary()&&jr(q,kn(q,Nt,"div").top-At.top),Nt},ie),ye.length)for(var De=0;De<ue.sel.ranges.length;De++)ue.sel.ranges[De].goalColumn=ye[De]}),findWordAt:function(D){var j=this.doc,q=Un(j,D.line).text,ue=D.ch,ye=D.ch;if(q){var Ee=this.getHelper(D,"wordChars");(D.sticky=="before"||ye==q.length)&&ue?--ue:++ye;for(var De=q.charAt(ue),ot=tt(De,Ee)?function(At){return tt(At,Ee)}:/\s/.test(De)?function(At){return/\s/.test(At)}:function(At){return!/\s/.test(At)&&!tt(At)};ue>0&&ot(q.charAt(ue-1));)--ue;for(;ye<q.length&&ot(q.charAt(ye));)++ye}return new Ha(_e(D.line,ue),_e(D.line,ye))},toggleOverwrite:function(D){if(D!=null&&D==this.state.overwrite)return;(this.state.overwrite=!this.state.overwrite)?N(this.display.cursorDiv,"CodeMirror-overwrite"):b(this.display.cursorDiv,"CodeMirror-overwrite"),ut(this,"overwriteToggle",this,this.state.overwrite)},hasFocus:function(){return this.display.input.getField()==U()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:wi(function(D,j){da(this,D,j)}),getScrollInfo:function(){var D=this.display.scroller;return{left:D.scrollLeft,top:D.scrollTop,height:D.scrollHeight-wt(this)-this.display.barHeight,width:D.scrollWidth-wt(this)-this.display.barWidth,clientHeight:Te(this),clientWidth:nt(this)}},scrollIntoView:wi(function(D,j){D==null?(D={from:this.doc.sel.primary().head,to:null},j==null&&(j=this.options.cursorScrollMargin)):typeof D=="number"?D={from:_e(D,0),to:null}:D.from==null&&(D={from:D,to:null}),D.to||(D.to=D.from),D.margin=j||0,D.from.line!=null?ba(this,D):Ta(this,D.from,D.to,D.margin)}),setSize:wi(function(D,j){var q=this,ue=function(Ee){return typeof Ee=="number"||/^\d+$/.test(String(Ee))?Ee+"px":Ee};D!=null&&(this.display.wrapper.style.width=ue(D)),j!=null&&(this.display.wrapper.style.height=ue(j)),this.options.lineWrapping&&Kt(this);var ye=this.display.viewFrom;this.doc.iter(ye,this.display.viewTo,function(Ee){if(Ee.widgets){for(var De=0;De<Ee.widgets.length;De++)if(Ee.widgets[De].noHScroll){Er(q,ye,"widget");break}}++ye}),this.curOp.forceUpdate=!0,ut(this,"refresh",this)}),operation:function(D){return Qi(this,D)},startOperation:function(){return Ao(this)},endOperation:function(){return _o(this)},refresh:wi(function(){var D=this.display.cachedTextHeight;Lr(this),this.curOp.forceUpdate=!0,_n(this),da(this,this.doc.scrollLeft,this.doc.scrollTop),Go(this.display),(D==null||Math.abs(D-Gn(this.display))>.5||this.options.lineWrapping)&&Ur(this),ut(this,"refresh",this)}),swapDoc:wi(function(D){var j=this.doc;return j.cm=null,this.state.selectingText&&this.state.selectingText(),Wt(this,D),_n(this),this.display.input.reset(),da(this,D.scrollLeft,D.scrollTop),this.curOp.forceScroll=!0,Ia(this,"swapDoc",this,j),j}),phrase:function(D){var j=this.options.phrases;return j&&Object.prototype.hasOwnProperty.call(j,D)?j[D]:D},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},He(e),e.registerHelper=function(D,j,q){L.hasOwnProperty(D)||(L[D]=e[D]={_global:[]}),L[D][j]=q},e.registerGlobalHelper=function(D,j,q,ue){e.registerHelper(D,j,ue),L[D]._global.push({pred:q,val:ue})}}function ou(e,r,L,D,j){var q=r,ue=L,ye=Un(e,r.line),Ee=j&&e.direction=="rtl"?-L:L;function De(){var sr=r.line+Ee;return sr<e.first||sr>=e.first+e.size?!1:(r=new _e(sr,r.ch,r.sticky),ye=Un(e,sr))}function ot(sr){var $n;if(D=="codepoint"){var br=ye.text.charCodeAt(r.ch+(D>0?0:-1));isNaN(br)?$n=null:$n=new _e(r.line,Math.max(0,Math.min(ye.text.length,r.ch+L*(br>=55296&&br<56320?2:1))),-L)}else j?$n=Au(e.cm,ye,r,L):$n=hu(ye,r,L);if($n==null)if(!sr&&De())r=$l(j,e.cm,ye,r.line,Ee);else return!1;else r=$n;return!0}if(D=="char"||D=="codepoint")ot();else if(D=="column")ot(!0);else if(D=="word"||D=="group")for(var At=null,Nt=D=="group",Pt=e.cm&&e.cm.getHelper(r,"wordChars"),hn=!0;!(L<0&&!ot(!hn));hn=!1){var bn=ye.text.charAt(r.ch)||`
|
|
`,Fn=tt(bn,Pt)?"w":Nt&&bn==`
|
|
`?"n":!Nt||/\s/.test(bn)?null:"p";if(Nt&&!hn&&!Fn&&(Fn="s"),At&&At!=Fn){L<0&&(L=1,ot(),r.sticky="after");break}if(Fn&&(At=Fn),L>0&&!ot(!hn))break}var Zn=ll(e,r,q,ue,!0);return Ye(q,Zn)&&(Zn.hitSide=!0),Zn}function Qu(e,r,L,D){var j=e.doc,q=r.left,ue;if(D=="page"){var ye=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Ee=Math.max(ye-.5*Gn(e.display),3);ue=(L>0?r.bottom:r.top)+L*Ee}else D=="line"&&(ue=L>0?r.bottom+3:r.top-3);for(var De;!(De=xn(e,q,ue),!De.outside);){if(L<0?ue<=0:ue>=j.height){De.hitSide=!0;break}ue+=L*5}return De}var Bi=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Q,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Bi.prototype.init=function(e){var r=this,L=this,D=L.cm,j=L.div=e.lineDiv;bu(j,D.options.spellcheck,D.options.autocorrect,D.options.autocapitalize);function q(ye){for(var Ee=ye.target;Ee;Ee=Ee.parentNode){if(Ee==j)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Ee.className))break}return!1}Ve(j,"paste",function(ye){if(!q(ye)||vt(D,ye)||Kl(ye,D))return;x<=11&&setTimeout(Aa(D,function(){return r.updateFromDOM()}),20)}),Ve(j,"compositionstart",function(ye){r.composing={data:ye.data,done:!1}}),Ve(j,"compositionupdate",function(ye){r.composing||(r.composing={data:ye.data,done:!1})}),Ve(j,"compositionend",function(ye){r.composing&&(ye.data!=r.composing.data&&r.readFromDOMSoon(),r.composing.done=!0)}),Ve(j,"touchstart",function(){return L.forceCompositionEnd()}),Ve(j,"input",function(){r.composing||r.readFromDOMSoon()});function ue(ye){if(!q(ye)||vt(D,ye))return;if(D.somethingSelected())Ql({lineWise:!1,text:D.getSelections()}),ye.type=="cut"&&D.replaceSelection("",null,"cut");else if(D.options.lineWiseCopyCut){var Ee=yu(D);Ql({lineWise:!0,text:Ee.text}),ye.type=="cut"&&D.operation(function(){D.setSelections(Ee.ranges,0,Ae),D.replaceSelection("",null,"cut")})}else return;if(ye.clipboardData){ye.clipboardData.clearData();var De=Ls.text.join(`
|
|
`);if(ye.clipboardData.setData("Text",De),ye.clipboardData.getData("Text")==De){ye.preventDefault();return}}var ot=ju(),At=ot.firstChild;D.display.lineSpace.insertBefore(ot,D.display.lineSpace.firstChild),At.value=Ls.text.join(`
|
|
`);var Nt=document.activeElement;H(At),setTimeout(function(){D.display.lineSpace.removeChild(ot),Nt.focus(),Nt==j&&L.showPrimarySelection()},50)}Ve(j,"copy",ue),Ve(j,"cut",ue)},Bi.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Bi.prototype.prepareSelection=function(){var e=ja(this.cm,!1);return e.focus=document.activeElement==this.div,e},Bi.prototype.showSelection=function(e,r){if(!e||!this.cm.display.view.length)return;(e.focus||r)&&this.showPrimarySelection(),this.showMultipleSelections(e)},Bi.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Bi.prototype.showPrimarySelection=function(){var e=this.getSelection(),r=this.cm,L=r.doc.sel.primary(),D=L.from(),j=L.to();if(r.display.viewTo==r.display.viewFrom||D.line>=r.display.viewTo||j.line<r.display.viewFrom){e.removeAllRanges();return}var q=nl(r,e.anchorNode,e.anchorOffset),ue=nl(r,e.focusNode,e.focusOffset);if(q&&!q.bad&&ue&&!ue.bad&&Ie(sn(q,ue),D)==0&&Ie(Xt(q,ue),j)==0)return;var ye=r.display.view,Ee=D.line>=r.display.viewFrom&&El(r,D)||{node:ye[0].measure.map[2],offset:0},De=j.line<r.display.viewTo&&El(r,j);if(!De){var ot=ye[ye.length-1].measure,At=ot.maps?ot.maps[ot.maps.length-1]:ot.map;De={node:At[At.length-1],offset:At[At.length-2]-At[At.length-3]}}if(!Ee||!De){e.removeAllRanges();return}var Nt=e.rangeCount&&e.getRangeAt(0),Pt;try{Pt=m(Ee.node,Ee.offset,De.offset,De.node)}catch(hn){}Pt&&(!I&&r.state.focused?(e.collapse(Ee.node,Ee.offset),Pt.collapsed||(e.removeAllRanges(),e.addRange(Pt))):(e.removeAllRanges(),e.addRange(Pt)),Nt&&e.anchorNode==null?e.addRange(Nt):I&&this.startGracePeriod()),this.rememberSelection()},Bi.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},Bi.prototype.showMultipleSelections=function(e){A(this.cm.display.cursorDiv,e.cursors),A(this.cm.display.selectionDiv,e.selection)},Bi.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Bi.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var r=e.getRangeAt(0).commonAncestorContainer;return y(this.div,r)},Bi.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Bi.prototype.blur=function(){this.div.blur()},Bi.prototype.getField=function(){return this.div},Bi.prototype.supportsTouch=function(){return!0},Bi.prototype.receivedFocus=function(){var e=this;this.selectionInEditor()?this.pollSelection():Qi(this.cm,function(){return e.cm.curOp.selectionChanged=!0});function r(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,r))}this.polling.set(this.cm.options.pollInterval,r)},Bi.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Bi.prototype.pollSelection=function(){if(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())return;var e=this.getSelection(),r=this.cm;if(d&&a&&this.cm.display.gutterSpecs.length&&Ku(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(this.composing)return;this.rememberSelection();var L=nl(r,e.anchorNode,e.anchorOffset),D=nl(r,e.focusNode,e.focusOffset);L&&D&&Qi(r,function(){ki(r.doc,Ti(L,D),Ae),(L.bad||D.bad)&&(r.curOp.selectionChanged=!0)})},Bi.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,r=e.display,L=e.doc.sel.primary(),D=L.from(),j=L.to();if(D.ch==0&&D.line>e.firstLine()&&(D=_e(D.line-1,Un(e.doc,D.line-1).length)),j.ch==Un(e.doc,j.line).text.length&&j.line<e.lastLine()&&(j=_e(j.line+1,0)),D.line<r.viewFrom||j.line>r.viewTo-1)return!1;var q,ue,ye;D.line==r.viewFrom||(q=rr(e,D.line))==0?(ue=Kr(r.view[0].line),ye=r.view[0].node):(ue=Kr(r.view[q].line),ye=r.view[q-1].node.nextSibling);var Ee=rr(e,j.line),De,ot;if(Ee==r.view.length-1?(De=r.viewTo-1,ot=r.lineDiv.lastChild):(De=Kr(r.view[Ee+1].line)-1,ot=r.view[Ee+1].node.previousSibling),!ye)return!1;for(var At=e.doc.splitLines(_l(e,ye,ot,ue,De)),Nt=Ra(e.doc,_e(ue,0),_e(De,Un(e.doc,De).text.length));At.length>1&&Nt.length>1;)if(le(At)==le(Nt))At.pop(),Nt.pop(),De--;else if(At[0]==Nt[0])At.shift(),Nt.shift(),ue++;else break;for(var Pt=0,hn=0,bn=At[0],Fn=Nt[0],Zn=Math.min(bn.length,Fn.length);Pt<Zn&&bn.charCodeAt(Pt)==Fn.charCodeAt(Pt);)++Pt;for(var sr=le(At),$n=le(Nt),br=Math.min(sr.length-(At.length==1?Pt:0),$n.length-(Nt.length==1?Pt:0));hn<br&&sr.charCodeAt(sr.length-hn-1)==$n.charCodeAt($n.length-hn-1);)++hn;if(At.length==1&&Nt.length==1&&ue==D.line)for(;Pt&&Pt>D.ch&&sr.charCodeAt(sr.length-hn-1)==$n.charCodeAt($n.length-hn-1);)Pt--,hn++;At[At.length-1]=sr.slice(0,sr.length-hn).replace(/^\u200b+/,""),At[0]=At[0].slice(Pt).replace(/\u200b+$/,"");var Zr=_e(ue,Pt),Hr=_e(De,Nt.length?le(Nt).length-hn:0);if(At.length>1||At[0]||Ie(Zr,Hr))return Rs(e.doc,At,Zr,Hr,"+input"),!0},Bi.prototype.ensurePolled=function(){this.forceCompositionEnd()},Bi.prototype.reset=function(){this.forceCompositionEnd()},Bi.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},Bi.prototype.readFromDOMSoon=function(){var e=this;if(this.readDOMTimeout!=null)return;this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80)},Bi.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Qi(this.cm,function(){return Lr(e.cm)})},Bi.prototype.setUneditable=function(e){e.contentEditable="false"},Bi.prototype.onKeyPress=function(e){if(e.charCode==0||this.composing)return;e.preventDefault(),this.cm.isReadOnly()||Aa(this.cm,vu)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0)},Bi.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},Bi.prototype.onContextMenu=function(){},Bi.prototype.resetPosition=function(){},Bi.prototype.needsContentAttribute=!0;function El(e,r){var L=Tt(e,r.line);if(!L||L.hidden)return null;var D=Un(e.doc,r.line),j=Be(L,D,r.line),q=zt(D,e.doc.direction),ue="left";if(q){var ye=ht(q,r.ch);ue=ye%2?"right":"left"}var Ee=lt(j.map,r.ch,ue);return Ee.offset=Ee.collapse=="right"?Ee.end:Ee.start,Ee}function Ku(e){for(var r=e;r;r=r.parentNode)if(/CodeMirror-gutter-wrapper/.test(r.className))return!0;return!1}function $i(e,r){return r&&(e.bad=!0),e}function _l(e,r,L,D,j){var q="",ue=!1,ye=e.doc.lineSeparator(),Ee=!1;function De(Pt){return function(hn){return hn.id==Pt}}function ot(){ue&&(q+=ye,Ee&&(q+=ye),ue=Ee=!1)}function At(Pt){Pt&&(ot(),q+=Pt)}function Nt(Pt){if(Pt.nodeType==1){var hn=Pt.getAttribute("cm-text");if(hn){At(hn);return}var bn=Pt.getAttribute("cm-marker"),Fn;if(bn){var Zn=e.findMarks(_e(D,0),_e(j+1,0),De(+bn));Zn.length&&(Fn=Zn[0].find(0))&&At(Ra(e.doc,Fn.from,Fn.to).join(ye));return}if(Pt.getAttribute("contenteditable")=="false")return;var sr=/^(pre|div|p|li|table|br)$/i.test(Pt.nodeName);if(!/^br$/i.test(Pt.nodeName)&&Pt.textContent.length==0)return;sr&&ot();for(var $n=0;$n<Pt.childNodes.length;$n++)Nt(Pt.childNodes[$n]);/^(pre|p)$/i.test(Pt.nodeName)&&(Ee=!0),sr&&(ue=!0)}else Pt.nodeType==3&&At(Pt.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;!(Nt(r),r==L);)r=r.nextSibling,Ee=!1;return q}function nl(e,r,L){var D;if(r==e.display.lineDiv){if(D=e.display.lineDiv.childNodes[L],!D)return $i(e.clipPos(_e(e.display.viewTo-1)),!0);r=null,L=0}else for(D=r;;D=D.parentNode){if(!D||D==e.display.lineDiv)return null;if(D.parentNode&&D.parentNode==e.display.lineDiv)break}for(var j=0;j<e.display.view.length;j++){var q=e.display.view[j];if(q.node==D)return Al(q,r,L)}}function Al(e,r,L){var D=e.text.firstChild,j=!1;if(!r||!y(D,r))return $i(_e(Kr(e.line),0),!0);if(r==D&&(j=!0,r=D.childNodes[L],L=0,!r)){var q=e.rest?le(e.rest):e.line;return $i(_e(Kr(q),q.text.length),j)}var ue=r.nodeType==3?r:null,ye=r;for(!ue&&r.childNodes.length==1&&r.firstChild.nodeType==3&&(ue=r.firstChild,L&&(L=ue.nodeValue.length));ye.parentNode!=D;)ye=ye.parentNode;var Ee=e.measure,De=Ee.maps;function ot(Fn,Zn,sr){for(var $n=-1;$n<(De?De.length:0);$n++)for(var br=$n<0?Ee.map:De[$n],Zr=0;Zr<br.length;Zr+=3){var Hr=br[Zr+2];if(Hr==Fn||Hr==Zn){var Fa=Kr($n<0?e.line:e.rest[$n]),ji=br[Zr]+sr;return(sr<0||Hr!=Fn)&&(ji=br[Zr+(sr?1:0)]),_e(Fa,ji)}}}var At=ot(ue,ye,L);if(At)return $i(At,j);for(var Nt=ye.nextSibling,Pt=ue?ue.nodeValue.length-L:0;Nt;Nt=Nt.nextSibling){if(At=ot(Nt,Nt.firstChild,0),At)return $i(_e(At.line,At.ch-Pt),j);Pt+=Nt.textContent.length}for(var hn=ye.previousSibling,bn=L;hn;hn=hn.previousSibling){if(At=ot(hn,hn.firstChild,-1),At)return $i(_e(At.line,At.ch+bn),j);bn+=hn.textContent.length}}var Mi=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new Q,this.hasSelection=!1,this.composing=null};Mi.prototype.init=function(e){var r=this,L=this,D=this.cm;this.createField(e);var j=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),u&&(j.style.width="0px"),Ve(j,"input",function(){M&&x>=9&&r.hasSelection&&(r.hasSelection=null),L.poll()}),Ve(j,"paste",function(ue){if(vt(D,ue)||Kl(ue,D))return;D.state.pasteIncoming=+new Date,L.fastPoll()});function q(ue){if(vt(D,ue))return;if(D.somethingSelected())Ql({lineWise:!1,text:D.getSelections()});else if(D.options.lineWiseCopyCut){var ye=yu(D);Ql({lineWise:!0,text:ye.text}),ue.type=="cut"?D.setSelections(ye.ranges,null,Ae):(L.prevInput="",j.value=ye.text.join(`
|
|
`),H(j))}else return;ue.type=="cut"&&(D.state.cutIncoming=+new Date)}Ve(j,"cut",q),Ve(j,"copy",q),Ve(e.scroller,"paste",function(ue){if($o(e,ue)||vt(D,ue))return;if(!j.dispatchEvent){D.state.pasteIncoming=+new Date,L.focus();return}var ye=new Event("paste");ye.clipboardData=ue.clipboardData,j.dispatchEvent(ye)}),Ve(e.lineSpace,"selectstart",function(ue){$o(e,ue)||we(ue)}),Ve(j,"compositionstart",function(){var ue=D.getCursor("from");L.composing&&L.composing.range.clear(),L.composing={start:ue,range:D.markText(ue,D.getCursor("to"),{className:"CodeMirror-composing"})}}),Ve(j,"compositionend",function(){L.composing&&(L.poll(),L.composing.range.clear(),L.composing=null)})},Mi.prototype.createField=function(e){this.wrapper=ju(),this.textarea=this.wrapper.firstChild},Mi.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Mi.prototype.prepareSelection=function(){var e=this.cm,r=e.display,L=e.doc,D=ja(e);if(e.options.moveInputWithCursor){var j=Yt(e,L.sel.primary().head,"div"),q=r.wrapper.getBoundingClientRect(),ue=r.lineDiv.getBoundingClientRect();D.teTop=Math.max(0,Math.min(r.wrapper.clientHeight-10,j.top+ue.top-q.top)),D.teLeft=Math.max(0,Math.min(r.wrapper.clientWidth-10,j.left+ue.left-q.left))}return D},Mi.prototype.showSelection=function(e){var r=this.cm,L=r.display;A(L.cursorDiv,e.cursors),A(L.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Mi.prototype.reset=function(e){if(this.contextMenuPending||this.composing)return;var r=this.cm;if(r.somethingSelected()){this.prevInput="";var L=r.getSelection();this.textarea.value=L,r.state.focused&&H(this.textarea),M&&x>=9&&(this.hasSelection=L)}else e||(this.prevInput=this.textarea.value="",M&&x>=9&&(this.hasSelection=null))},Mi.prototype.getField=function(){return this.textarea},Mi.prototype.supportsTouch=function(){return!1},Mi.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!f||U()!=this.textarea))try{this.textarea.focus()}catch(e){}},Mi.prototype.blur=function(){this.textarea.blur()},Mi.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Mi.prototype.receivedFocus=function(){this.slowPoll()},Mi.prototype.slowPoll=function(){var e=this;if(this.pollingFast)return;this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Mi.prototype.fastPoll=function(){var e=!1,r=this;r.pollingFast=!0;function L(){var D=r.poll();!D&&!e?(e=!0,r.polling.set(60,L)):(r.pollingFast=!1,r.slowPoll())}r.polling.set(20,L)},Mi.prototype.poll=function(){var e=this,r=this.cm,L=this.textarea,D=this.prevInput;if(this.contextMenuPending||!r.state.focused||Je(L)&&!D&&!this.composing||r.isReadOnly()||r.options.disableInput||r.state.keySeq)return!1;var j=L.value;if(j==D&&!r.somethingSelected())return!1;if(M&&x>=9&&this.hasSelection===j||o&&/[\uf700-\uf7ff]/.test(j))return r.display.input.reset(),!1;if(r.doc.sel==r.display.selForContextMenu){var q=j.charCodeAt(0);if(q==8203&&!D&&(D="\u200B"),q==8666)return this.reset(),this.cm.execCommand("undo")}for(var ue=0,ye=Math.min(D.length,j.length);ue<ye&&D.charCodeAt(ue)==j.charCodeAt(ue);)++ue;return Qi(r,function(){vu(r,j.slice(ue),D.length-ue,null,e.composing?"*compose":null),j.length>1e3||j.indexOf(`
|
|
`)>-1?L.value=e.prevInput="":e.prevInput=j,e.composing&&(e.composing.range.clear(),e.composing.range=r.markText(e.composing.start,r.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Mi.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Mi.prototype.onKeyPress=function(){M&&x>=9&&(this.hasSelection=null),this.fastPoll()},Mi.prototype.onContextMenu=function(e){var r=this,L=r.cm,D=L.display,j=r.textarea;r.contextMenuPending&&r.contextMenuPending();var q=er(L,e),ue=D.scroller.scrollTop;if(!q||t)return;var ye=L.options.resetSelectionOnContextMenu;ye&&L.doc.sel.contains(q)==-1&&Aa(L,ki)(L.doc,Ti(q),Ae);var Ee=j.style.cssText,De=r.wrapper.style.cssText,ot=r.wrapper.offsetParent.getBoundingClientRect();r.wrapper.style.cssText="position: static",j.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
top: `+(e.clientY-ot.top-5)+"px; left: "+(e.clientX-ot.left-5)+`px;
|
|
z-index: 1000; background: `+(M?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var At;n&&(At=window.scrollY),D.input.focus(),n&&window.scrollTo(null,At),D.input.reset(),L.somethingSelected()||(j.value=r.prevInput=" "),r.contextMenuPending=Pt,D.selForContextMenu=L.doc.sel,clearTimeout(D.detectingSelectAll);function Nt(){if(j.selectionStart!=null){var bn=L.somethingSelected(),Fn="\u200B"+(bn?j.value:"");j.value="\u21DA",j.value=Fn,r.prevInput=bn?"":"\u200B",j.selectionStart=1,j.selectionEnd=Fn.length,D.selForContextMenu=L.doc.sel}}function Pt(){if(r.contextMenuPending!=Pt)return;if(r.contextMenuPending=!1,r.wrapper.style.cssText=De,j.style.cssText=Ee,M&&x<9&&D.scrollbars.setScrollTop(D.scroller.scrollTop=ue),j.selectionStart!=null){(!M||M&&x<9)&&Nt();var bn=0,Fn=function(){D.selForContextMenu==L.doc.sel&&j.selectionStart==0&&j.selectionEnd>0&&r.prevInput=="\u200B"?Aa(L,Sl)(L):bn++<10?D.detectingSelectAll=setTimeout(Fn,500):(D.selForContextMenu=null,D.input.reset())};D.detectingSelectAll=setTimeout(Fn,200)}}if(M&&x>=9&&Nt(),P){We(e);var hn=function(){Ot(window,"mouseup",hn),setTimeout(Pt,20)};Ve(window,"mouseup",hn)}else setTimeout(Pt,50)},Mi.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Mi.prototype.setUneditable=function(){},Mi.prototype.needsContentAttribute=!1;function zl(e,r){if(r=r?R(r):{},r.value=e.value,!r.tabindex&&e.tabIndex&&(r.tabindex=e.tabIndex),!r.placeholder&&e.placeholder&&(r.placeholder=e.placeholder),r.autofocus==null){var L=U();r.autofocus=L==e||e.getAttribute("autofocus")!=null&&L==document.body}function D(){e.value=ye.getValue()}var j;if(e.form&&(Ve(e.form,"submit",D),!r.leaveSubmitMethodAlone)){var q=e.form;j=q.submit;try{var ue=q.submit=function(){D(),q.submit=j,q.submit(),q.submit=ue}}catch(Ee){}}r.finishInit=function(Ee){Ee.save=D,Ee.getTextArea=function(){return e},Ee.toTextArea=function(){Ee.toTextArea=isNaN,D(),e.parentNode.removeChild(Ee.getWrapperElement()),e.style.display="",e.form&&(Ot(e.form,"submit",D),!r.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=j))}},e.style.display="none";var ye=Xi(function(Ee){return e.parentNode.insertBefore(Ee,e.nextSibling)},r);return ye}function rl(e){e.off=Ot,e.on=Ve,e.wheelEventPixels=Pn,e.Doc=In,e.splitLines=pt,e.countColumn=z,e.findColumn=be,e.isWordChar=Ke,e.Pass=fe,e.signal=ut,e.Line=ho,e.changeEnd=Ro,e.scrollbarModel=Li,e.Pos=_e,e.cmpPos=Ie,e.modes=St,e.mimeModes=bt,e.resolveMode=_t,e.getMode=Gt,e.modeExtensions=kt,e.extendMode=fn,e.copyState=mn,e.startState=Mr,e.innerMode=Tr,e.commands=Fl,e.keyMap=Ds,e.keyName=cu,e.isModifierKey=wu,e.lookupKey=bs,e.normalizeKeyMap=Cu,e.StringStream=kr,e.SharedTextMarker=La,e.TextMarker=ga,e.LineWidget=Fr,e.e_preventDefault=we,e.e_stopPropagation=Le,e.e_stop=We,e.addClass=N,e.contains=y,e.rmClass=b,e.keyNames=Io}ec(Xi),Hu(Xi);var Wu="iter insert remove copy getEditor constructor".split(" ");for(var Gl in In.prototype)In.prototype.hasOwnProperty(Gl)&&$(Wu,Gl)<0&&(Xi.prototype[Gl]=function(e){return function(){return e.apply(this.doc,arguments)}}(In.prototype[Gl]));return He(In),Xi.inputStyles={textarea:Mi,contenteditable:Bi},Xi.defineMode=function(e){!Xi.defaults.mode&&e!="null"&&(Xi.defaults.mode=e),Dt.apply(this,arguments)},Xi.defineMIME=Ht,Xi.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Xi.defineMIME("text/plain","null"),Xi.defineExtension=function(e,r){Xi.prototype[e]=r},Xi.defineDocExtension=function(e,r){In.prototype[e]=r},Xi.fromTextArea=zl,rl(Xi),Xi.version="5.58.2",Xi})},W6BS:function(Re,te){Re.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAVs0lEQVRoQ+2aa6xlZ3nff++677Xv+9zPHM/YHo+xwQ4E14GKKESkiFsSM8bYQBIEkaBEAkqbRmo/9FulSoX2Qz9GVVQJqUJBhKKA1KRJCIlowwdDDDa+jOd65syc275f1v1d1fOufYYE2ZhJZKRWXjOjvffaa6/1/p//8/yfyzuqLMuS/48P9RrA/8fZfY3B2yXQBHQpf185tBUK+SvH8uV2H/eK1/+jGfwRIBC5ks/Vq/yplq2Wqz+B/ONg5LNlrlz+Qhnot373iih+wgX/YIAivrJgjTKA9BKcYa/Uy/MnUEpD0S2AyzdKkMslZYklbwVYWZpXQSygrSVoc+4fcPzUAKtsom4xpIGiLCkMZbJGs1LkvOHPfJbrhRX5/CM/NDwJZlXiqBKlc7AEjg1aI2iVDXZpoeS9AFXlkmV1W8z+VACLE7dbMiWLE2CFADLgqig6SakCSs4jizcvAvBHMVkqxxhKkePqAs8S1mxyLUxqw6AYKLdtbMtGINpiKKUM07bc96dk9BUBykIFoNYVC/JewMkCDDh18p0so6w+GzfT+FoWC7Yl11curQpFVCoyJQsvDThP6crNdVldi0KLcwogyzJGssVrxYWXAOWzwWg84eXd92UByoK0WHEJqBCA4oC6ChstYHRJIW6lZHWQlsoYQH6rypyOLZ5Xuahx3NIi1TAvLBIcHIlUw8rfcWFLFmzhmPBUxi0NKIRdAVi5qmPAL88LrS9z/AigmHBpCcOaCIUA1BVj4ma6LCi1FkjLBZRoVRrLR9piXjhkysI2mqJxhY2lQUrDjG3iVv5k5YmgyHI1ngLPBqfUxg21nC5LbGUhHJbGUPKu8hTbUthKGcZP3Palks3fY/BECQVQLoDk0QWURYFVFuTaNudtS+Pb8mCNZcQEYmMQi8KymCSQGLJLIx7zKCFKi1uuJNZvNXxDvLBVszUtW5xSm0WL8Mh9hV0xoGFfKRItVzjYJmaFSQtHAFqVwY3i/pi7Kl2e6N9SOJaxkJk4q0CmqcZVBaGtybFY5OIaCscqKqsaUYBE6LYU08Jimi/dxrIYjudM5ynCohzCyvZaw3iCLEviqW3ntDxR1SreTDCbQ1OI65c2qZKQsY0RKlUVFoVxWcsS5DLdnHisKk6iX1iTeBOXlNgqK4kXxmTdgapAVlWKYpKLsuVYykSJictxVtKPNMq1K0saFiym8wWzKKkiSnKeDSud9i1llOe0XE3PrUTMLEmerys1zpVEYCVWIjqVS1aGEjYlJKrvKvYrAVoWGcKgxIkBYmKuurlRTuOqmkIrdCEOJ8qpyIuc/iInL7R5oAEoOVEXRv0cx8HyHBZxZAySJilplqFE8i3bGLHXqZvFlEp4qOJOKM6zrJKkUuN7Lp6t8GxxxcqIEtfCsnFNw1yViuQuxlVNbJ6AFNUuSjEUmbFWBfJEZITF6rywalW5ryyJc21czpSSy/RmErpSFIU2bJWWRRTFVcqwHPOdo3I8HbO60mVi1Y31qwqmYkN+Ox5Nl/Kv2V7t4DhWJWoSfZZFzy3whTUJCxNA4m02meVWgAWcASr31Kgk1+XJwitfl3ykDaPyWdzTiIeW9xKDBWlREkkgVmloWTdWorBIcwajiTlryZOkJClSVDRARUN0HvPut7+NuarxbD8hKqrEbcJTjDePTfiJiKy267iOu8yBot6KrgC0xWMkHiUMSiNsri2GqAoCCYETJlWU6VJcRpiTxUp6yMU1JQ7lPMJKFZvGXUXic4ijtKodxY7KIs8LFlFElC4rEbFwFsGsTzk74sbNI/70UsQDd67zyXe9mSKes3XnnVxZKK7sz8yzxcWWkWMW3mk3cB1xzyqXmtRg2LRMvMn13tItxXVFeBwJF0kfAlIqHgEoYPJSJFjyU0kugITJQlVgTYo4UVlFlmvyRFxUtNliMl2wWLqlZTuUyZxkvE/Wv8rFG2P+aq/g/yR1Um+dT53L+MyvvoUXD2esFGPO7qyhWqs8f3PGMMEsrCpQFM1miOvYOLbCtW2U5EgKE2+uFANWWamnI6AroTEKWyocAxDULClKEXsBUrEkqlm5ZxQXZLkIx7INEoYtG5NC4qxSYsthOJ+RZZp8MSUeXGF84wYv7A74q8OSZ4Yp+dadnGpYvKkW88vr8L5feQffGyo8yyU/usIDpwJ2du7gRuJyaRBRaI1rKxqdLkVekC5mzIaHnFnv4DRWsFWBrWxciTeTSKRIKAlcSTlV2hG3NwAnaVFKjFUsanItLiklmMUsTsky0dOTvk5R2DapUaXCKKhtW+xd36W/+zyH13Z5+uox3+6XXKWH17D4OTfi/tWQerLg2qjgvtNNPvbrv8K1m4c49R5Huk6jHtCY3eTcVkh9ZZtn+xnXb+4zH+9x/cJFJkf7BI7iNz78OO3tc9xc5NSEIaEsLxhNMpo1m9W2Z0SryqXiriVqnIjICIPaMJMLuKIqdhdJsgQoNQMMo4RUa0rbMbknGRxwcOUZLj73It/dnfA3U8U4Vpzq+Lxho8YOBcPpnCuJy1z5lG6Dd52Gjzx+nmf6BSvJDWppjFrZ5jj2qLs5O/6cuzZX+fZ3nuS//+GXTBz11k/R7K7yofe/lzu21om8JoeLAlvUM8lJC00YWKw0PcNelUbEVUvUKClLkf7MKKcxyDIdWEQnDJYWgac4mMdEGYz3d7n5/JNcuHCZJ/cWPD0u0Y7L2Y0G9wXgZDHXJhl7sUWSlnTXemzVYcsvOde1eeyD57kwUEROm3h0zE4zJcgXxO0dJrGibo24by0kmy/4ytf+mJuHx3RX1njiA49gez5NV+H1Nrl0nOFIzyhdia/otURxJVVonGUNqwaxLiVXSb4TIalctYrJJMlMvSe+/fyFF/iDL/1PvLCGH+3zv184Znde0Gp1eF3PYtWF/qzg4njBOLOot2qcabqc8nNCzyaKNLtzhwd26nzqo49xae+ItZpN4nWIW6tMR2N27DmBnTMPegwjm1P1jJ265vf/4IvYrsfjH3iUYPUU2XxA09J47TVujIQQi1oAnaazLCGlIKjKctWP88pFDbglwEK0o2oFnn3+Al/6+p/x7aeukRSKaf8Kd6+vMCngbCekKHN2+ykHixw3CNgRUC2bhl0yTkpuTguGqkFpe4jCvn1b87GPfYQfzBp0VETQ32WzV6OwA7LmNkk8o82Y0C4ZuqvU0hHf/PrXSCn5zQ9+AK97iv7xDVp1H0+VtFpdrs5sfNun2zzpMERdq/e3AIqWSCKXMksi8LtPP88Xv/a/+NZTV8nckE5vlWQ8ZHF4kbee7nF5EHMwzU2SXW/4nGo51FyYRQV7EfQz1whVqFLarQYbtYL1oGDdhw9/8AOo+ip7WY3RPKPXaaCm+3TtCK/WQNfXiZKYlrWg6RR8+ctfQyv40KPncbobFOni1vjEL2Ka7R6TMsCWErEs8BwIPZMt/w5AuUNZ8L3v/5D/9kd/yp8/dY1ZaRHW5IeKmhdiJxGL4R4bjYBpUrDTklbHYZzAzUXJsLDNA9qBzXrDZTVMWbczPJWT5jAvA+qBy71ntui26txz5gy9nTNE3gr9eY5da6KSEV0VmfxXNnqo6JBvfPUbaKX4yGOP0tjc4ehgn3araepbycV2HtNqNJmoJnkSUQsCVpoOlkwNbrmoFMXzOe/55L/nuVFCKwywpf6TYrdWJ2h2SKcT5jee5+c26xzNcg4XmrEWkCVrocVGqFi1clyVkOUpi8Iz8ZSqOkVjg6y+wYP+DX73n3+YZy5cZTE6IjoesNkOWNvcpLW6Req0SLyAdD6l5cQ0SPnDr3wdbdt86PwjWO0ViiTC93ziNMb1fMosMa+DhUWjXqfmO6w07R8HqEgWc9772f/M1cEY31Km0pdaUqoL16uhkgXp+AYrgccwKdgKNWtuQSiAsoJRDlOrSeT2SFtr0tNj1+u4cUJYU0S5zZnkAr/z6c8xi2BnewWdxswnxyz6+4wPbtDwLLa3t2msbuGvbZH29/jjr3wV7Xg88egjhJtnGPf3qbmeSc8iMKpIsL0ax4uSXqtJ4Dn0mnZVthkGpZBGkUYR7/7MF7g6nOJL3yWjBNfFDgLCRodiPjYJ/RdWC/L5hJG2megaU7tDFrSw7Rp23aNt2fRaHuuhzXY7pBfa3H/XFg/9k7dw/dJz2BtneXFvhvbq6DwhsApWuy08pyAeDTjcvUg02SdUDmfvOcuf/OW3cJ2Ax87/GrG3SjQfs73eIY1j07WUeY7teAwSixWpX215vsx8LNQgLpbdBESLiPd++j9ydTjDcaW6kxYILFtUyiFfLJiOD+gGAX4yZNy+h17DpRf6bPd8tkOHjW6dhqcME4WCRZwxj1LuP3c373/fO43r1ms1U8DPEs3hLGV3MKe/kM8JUvkHrk27XuNo90W+9T++SKfbpdXu8eivvYeodZpo2qfu26gix5f8kEZYtscwdel1mqau3Oh4+I6NGsZSqkFSwmgScf53/xPX+hPDoJQ7ruPg+QFOo0OnXKDGN7h7Z53NsKTVWaHpS5uSsUil77N5dnfI6TWfb//wiMZaB3824Wri8W/Pv4kHf+k9PHPtJg+tWBzqBmE559RaD6U1YehXRUSiORhF9Oea4+Njvvnl368YWVvn8fe/jwNrnWgyYLXbrCZudombx3h+jWHqGE+QY7O9BDgyAEtSA3DB+c99gWujObbkQXFyS4avVWvyxBtabDUcRrOUSVS1TtcOI06thTy1N+EX7+rx/Rsj3nhmhfF0SiMMaDnC4oI3PvB6nnjsPP3RhHbD5zD2IBkztQLy+QisOg07QzkO6w1PujrT9gyPjti7ecizL77Im99wP/vuafJkTCusUeYyJbDwSHFdj1R5rHVbpszcarumWVaTWGpRTYZiNIt55LNf4NJghGu7ph0x/ZhfpxO43FeLqXslea6o+VIO2SRFSTdUHExj1kOPZ/s59/U8vrM7YbXXppgOuZGF/Kt338tb3/M437uyyy+s+xxlLr4V0wzqFDqiXu9CnphFinpHmSbRBTXXIQzrXHnuaXScct2/h2S+T7veQBUpjhuaKYHjunhByEq3bXjZ7Mj9S9Q0LctqyFRw4dI1/sV/+K8cLyK6niKwLZM0m3aKVh5d1yJzfKJE5iZVz9Wf5ex0PK4Mc16/6nBtmnNn1zV5re471FTGPNE8/MbX8Vsf/U1GozHtekA/d3CKiKT0ydMZuRXg6oyFVrQ8mftUfZ909rWgxqXnnyXPUi6rM+hE7tEwY/6isPDLBa4XENbrZqxhpgwWPHimi5qnupQkOhsN+czv/TuSLEZJ01qYmbXpEeVGMq5r1VxKp40uJcFKV20xiXN6fsneXHNHy+IHfYsHVkue2Yuot+t48Zy9LOR33nGGdz72cf724lUe2nA50CENEiyvgU6m1MI6vjTctk3o2qSZNN/g26IZFrsXLpDGC75nvw4VjWj5MrbQxvA15vhuwFqnUc1mtAzKSt567ypqkelSW4pR/5hPfvbfEEuBbfYKSjKkMpFZSEGuLDphCH6DPNfVwMjCjCg6gc0gUWzVUo5ih9VAM4+1WV1YZIzTkrf9/Dk+8clPMZjO6dUcxri42YKs9CjSOTpo4Ocps1yKe5uiyMhKaXxdiiJl/9JFoijiyDmFThY4gWcmfalWODrFdXy2N1bJZcBVajNyfMu5VVSSlbJlwHH/iI9/4tNMU/BktKRcclVgaRtLi2UVnaAOQYM0l8FrhrJtJqliJdDsRTZ3hylPj33e0Em51M+pd3uEi0P2dIPf/qen+PWPfoKnL+/x4JrPXuYTFlMIOuTRGK/eoVbGLAqLRijViSbTOTU3QArR65dfZL6IcdbvIs1TdocF3bpPJ3RMzGWzASvr22C7ZpIn/x6+W+LUzPXgsN/nN574CEmSUtrVjo4lvaFTYDlSiSt6Gx1Cv0vhxliJTe6UlEnN7CRpw7QiLmVvopoOoF0sO2MclfzSm+/hM//y95guUtpShARtnCJmEeUoFeM1mziZJo4WeEHN7EUUSUpk73P95vfZvTYAvUa+ukGez9g7njPqF7Rd6RwKiugKi/llHMfHsnwzZG76ddTBwWGZZinD4YjPfvpzTGYzijwxsxBJxt07MlpnE1RmYbuKQG+iuhP0wEe1c+ILr8d2UhOrWldjDKu7TznaJFjbZX58Cqt2mTfd+y5+6+Nv53jyIr3mvYRunX5ymZ71MK6q4Qc+cVYwi2IaNR/PtdGpx7Xoqzx3+CeE84d54NR5IYhWo8Zf/s03+Oo3/wtrvW1Ct0PgrhA6K9TcDqV2jSAJc+rzn/98OZ1Ol/MVl7IsiOOINM0YTw4ZRJeJ9ZDpZEzQ9fGKDexmRJkVqMBn+twOyo5pNJsEYcjx8QG9h55kcel1hGcvMnvhHGrlBR66/1f55X+2zQvX/5q13r2QOQzzH/Lz7X/NYfEAvaZiePOQsrfOSnJIOwiNmz23+xccHr3AweGc8RjCIOD05lksakyjIzrBnRRimNmYXGdmHTs7pzh37pypadW1a9dKqRgODg7Y399nMhmTZZm5ecIxUTpgkR4yiQ+IFhPiLCeOZpSFB3GTXDdwdIv17hmarR4//MGT3PGL+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="},W6us:function(Re,te){Re.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAYAAACpSkzOAAAAAXNSR0IArs4c6QAAAv9JREFUSA2dVV1IVEEU/s7sqkuiUAahgREkQVjmS0FEBRWELz1Yj5ZSJBEaVm8RBOFbQSZIQUU9hFT4EqRuBdIP0oOia5lIZBRZoBWYy+a6O3M6s3DxXrurez1wOeee+b7zzZ05dwYIaD0x3dk9rNsD0hAOSgBjDwHTQXmBhZgwB7A8wcwjFI1xYYiw7sA2mshWJqRUHSkkso3b/LMPXJHOw9eaCko6OOUE1muY1pQx490xPuLOO3HZLV7b8BJz9X1QNnbybt8zok/plBlHwlxw5z1CIajbIMwQm87no1xugZeZVVkbN5S28YD5i2mTxmDmkdjm1t/geoux2O5hrpY9vCnhJOWrBzbnmOyr12T5Kg3M8UixunSyF8WJeXQxY7cX5X0jwmvZu9rH+5CeZXMxn1TH4uX/T8gpsfkOF83E0S8zrHRyS3rCu5Iwdo2eobgfzrN0bsCfWVzLWcQSGVt/p4WTxXy/aEM7b0wafBRyKAvPP03QBQoVX5ro82JA+MUYl+h5bKIwkge3IEZELCK1gUVsZZlYhgtcZWmQ6Ai2y5fk6VUYU6mkeaVZv02n9FDviD5m8TJYbf1KzOFGY6bFsB60tSmhn4SJ1HnA7JTZJCMR9TRTnFGyEhE315B6KHUjIhxWpPrCh6qoVwD2WTDCLxFemVmuWE0VfRPX6hTx7TrRGHIAQX02rq+QdE6XbJQOKmI5Ga4P0VfIticx7vrgl0xZjl9rW5KvkB1Yk4dzMsP3Ns7JBFtcBGksf8sqZI+Swnzsl3PsjT91IWsxFjt+gmYXst4oq5CFfTpNU43N2BtSaJBig16q/G+Ss2MWY7GLx93v0ua5W+YOSiFzfUAutu+N9DNXdk5C5R28Op1GnRQtcBc2QFwV4L4ILnnjWo7nKncXccc6jcPGoM2dc2Kex4TEUec9m8/pi44+4lD/FHbInxVxF9KM+I+zGLAHsTvvF+ck5BBLr3OL3KRNcjyxNMGVyWa654wt53NaOqeIzColcVL+L1nJTOwMLev/AaJkF76u7DFoAAAAAElFTkSuQmCC"},WPnJ:function(Re,te,v){Re.exports={"sort-list-panel":"sort-list-panel___3NFo7","sort-list-tip":"sort-list-tip___1C7gJ","ant-drawer-content":"ant-drawer-content___z72s9","dragging-li":"dragging-li___2fI-b","task-list-container":"task-list-container___O3FkA",imgradius:"imgradius___2naxh",directionItemWrap:"directionItemWrap___12VCj",groupActionWrap:"groupActionWrap___3JLr9",teamHeight:"teamHeight___1JFgn",divHeight:"divHeight___3DCc8"}},WaYH:function(Re,te,v){"use strict";var Z=v("rePB"),K=v("Ff2n"),I=v("VTBJ"),k=v("1OyB"),_=v("vuIU"),O=v("JX7q"),M=v("Ji7U"),x=v("LK+K"),n=v("q1tI"),p=v("TSYQ"),a=v.n(p),t=v("sboe"),h=v("OZM5"),s=function(P){var C=P.prefixCls,b=P.level,l=P.isStart,A=P.isEnd;if(!b)return null;for(var g="".concat(C,"-indent-unit"),T=[],m=0;m<b;m+=1){var y;T.push(n.createElement("span",{key:m,className:a()(g,(y={},Object(Z.a)(y,"".concat(g,"-start"),l[m+1]),Object(Z.a)(y,"".concat(g,"-end"),A[m+1]),Object(Z.a)(y,"".concat(g,"-end-first-level"),!m&&A[0]),y))}))}return n.createElement("span",{"aria-hidden":"true",className:"".concat(C,"-indent")},T)},i=s,u=v("815F"),d="open",f="close",o="---",c=function(w){Object(M.a)(C,w);var P=Object(x.a)(C);function C(){var b;return Object(k.a)(this,C),b=P.apply(this,arguments),b.state={dragNodeHighlight:!1},b.onSelectorClick=function(l){var A=b.props.context.onNodeClick;A(l,Object(u.b)(b.props)),b.isSelectable()?b.onSelect(l):b.onCheck(l)},b.onSelectorDoubleClick=function(l){var A=b.props.context.onNodeDoubleClick;A(l,Object(u.b)(b.props))},b.onSelect=function(l){if(b.isDisabled())return;var A=b.props.context.onNodeSelect;l.preventDefault(),A(l,Object(u.b)(b.props))},b.onCheck=function(l){if(b.isDisabled())return;var A=b.props,g=A.disableCheckbox,T=A.checked,m=b.props.context.onNodeCheck;if(!b.isCheckable()||g)return;l.preventDefault();var y=!T;m(l,Object(u.b)(b.props),y)},b.onMouseEnter=function(l){var A=b.props.context.onNodeMouseEnter;A(l,Object(u.b)(b.props))},b.onMouseLeave=function(l){var A=b.props.context.onNodeMouseLeave;A(l,Object(u.b)(b.props))},b.onContextMenu=function(l){var A=b.props.context.onNodeContextMenu;A(l,Object(u.b)(b.props))},b.onDragStart=function(l){var A=b.props.context.onNodeDragStart;l.stopPropagation(),b.setState({dragNodeHighlight:!0}),A(l,Object(O.a)(b));try{l.dataTransfer.setData("text/plain","")}catch(g){}},b.onDragEnter=function(l){var A=b.props.context.onNodeDragEnter;l.preventDefault(),l.stopPropagation(),A(l,Object(O.a)(b))},b.onDragOver=function(l){var A=b.props.context.onNodeDragOver;l.preventDefault(),l.stopPropagation(),A(l,Object(O.a)(b))},b.onDragLeave=function(l){var A=b.props.context.onNodeDragLeave;l.stopPropagation(),A(l,Object(O.a)(b))},b.onDragEnd=function(l){var A=b.props.context.onNodeDragEnd;l.stopPropagation(),b.setState({dragNodeHighlight:!1}),A(l,Object(O.a)(b))},b.onDrop=function(l){var A=b.props.context.onNodeDrop;l.preventDefault(),l.stopPropagation(),b.setState({dragNodeHighlight:!1}),A(l,Object(O.a)(b))},b.onExpand=function(l){var A=b.props.context.onNodeExpand;A(l,Object(u.b)(b.props))},b.setSelectHandle=function(l){b.selectHandle=l},b.getNodeState=function(){var l=b.props.expanded;return b.isLeaf()?null:l?d:f},b.hasChildren=function(){var l=b.props.eventKey,A=b.props.context.keyEntities,g=A[l]||{},T=g.children;return!!(T||[]).length},b.isLeaf=function(){var l=b.props,A=l.isLeaf,g=l.loaded,T=b.props.context.loadData,m=b.hasChildren();return A===!1?!1:A||!T&&!m||T&&g&&!m},b.isDisabled=function(){var l=b.props.disabled,A=b.props.context.disabled;return!!(A||l)},b.isCheckable=function(){var l=b.props.checkable,A=b.props.context.checkable;return!A||l===!1?!1:A},b.syncLoadData=function(l){var A=l.expanded,g=l.loading,T=l.loaded,m=b.props.context,y=m.loadData,U=m.onNodeLoad;if(g)return;y&&A&&!b.isLeaf()&&(!b.hasChildren()&&!T&&U(Object(u.b)(b.props)))},b.renderSwitcher=function(){var l=b.props,A=l.expanded,g=l.switcherIcon,T=b.props.context,m=T.prefixCls,y=T.switcherIcon,U=g||y;if(b.isLeaf())return n.createElement("span",{className:a()("".concat(m,"-switcher"),"".concat(m,"-switcher-noop"))},typeof U=="function"?U(Object(I.a)(Object(I.a)({},b.props),{},{isLeaf:!0})):U);var N=a()("".concat(m,"-switcher"),"".concat(m,"-switcher_").concat(A?d:f));return n.createElement("span",{onClick:b.onExpand,className:N},typeof U=="function"?U(Object(I.a)(Object(I.a)({},b.props),{},{isLeaf:!1})):U)},b.renderCheckbox=function(){var l=b.props,A=l.checked,g=l.halfChecked,T=l.disableCheckbox,m=b.props.context.prefixCls,y=b.isDisabled(),U=b.isCheckable();if(!U)return null;var N=typeof U!="boolean"?U:null;return n.createElement("span",{className:a()("".concat(m,"-checkbox"),A&&"".concat(m,"-checkbox-checked"),!A&&g&&"".concat(m,"-checkbox-indeterminate"),(y||T)&&"".concat(m,"-checkbox-disabled")),onClick:b.onCheck},N)},b.renderIcon=function(){var l=b.props.loading,A=b.props.context.prefixCls;return n.createElement("span",{className:a()("".concat(A,"-iconEle"),"".concat(A,"-icon__").concat(b.getNodeState()||"docu"),l&&"".concat(A,"-icon_loading"))})},b.renderSelector=function(){var l=b.state.dragNodeHighlight,A=b.props,g=A.title,T=A.selected,m=A.icon,y=A.loading,U=A.data,N=b.props.context,S=N.prefixCls,H=N.showIcon,F=N.icon,R=N.draggable,z=N.loadData,Q=N.titleRender,$=b.isDisabled(),ee="".concat(S,"-node-content-wrapper"),fe;if(H){var Ae=m||F;fe=Ae?n.createElement("span",{className:a()("".concat(S,"-iconEle"),"".concat(S,"-icon__customize"))},typeof Ae=="function"?Ae(b.props):Ae):b.renderIcon()}else z&&y&&(fe=b.renderIcon());var ce;typeof g=="function"?ce=g(U):Q?ce=Q(U):ce=g;var ie=n.createElement("span",{className:"".concat(S,"-title")},ce);return n.createElement("span",{ref:b.setSelectHandle,title:typeof g=="string"?g:"",className:a()("".concat(ee),"".concat(ee,"-").concat(b.getNodeState()||"normal"),!$&&(T||l)&&"".concat(S,"-node-selected"),!$&&R&&"draggable"),draggable:!$&&R||void 0,"aria-grabbed":!$&&R||void 0,onMouseEnter:b.onMouseEnter,onMouseLeave:b.onMouseLeave,onContextMenu:b.onContextMenu,onClick:b.onSelectorClick,onDoubleClick:b.onSelectorDoubleClick,onDragStart:R?b.onDragStart:void 0},fe,ie)},b}return Object(_.a)(C,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var l=this.props.selectable,A=this.props.context.selectable;return typeof l=="boolean"?l:A}},{key:"render",value:function(){var l,A=this.props,g=A.eventKey,T=A.className,m=A.style,y=A.dragOver,U=A.dragOverGapTop,N=A.dragOverGapBottom,S=A.isLeaf,H=A.isStart,F=A.isEnd,R=A.expanded,z=A.selected,Q=A.checked,$=A.halfChecked,ee=A.loading,fe=A.domRef,Ae=A.active,ce=A.onMouseMove,ie=Object(K.a)(A,["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","onMouseMove"]),be=this.props.context,se=be.prefixCls,me=be.filterTreeNode,le=be.draggable,ge=be.keyEntities,ae=this.isDisabled(),pe=Object(h.f)(ie),Me=ge[g]||{},xe=Me.level,Ke=F[F.length-1];return n.createElement("div",Object.assign({ref:fe,className:a()(T,"".concat(se,"-treenode"),(l={},Object(Z.a)(l,"".concat(se,"-treenode-disabled"),ae),Object(Z.a)(l,"".concat(se,"-treenode-switcher-").concat(R?"open":"close"),!S),Object(Z.a)(l,"".concat(se,"-treenode-checkbox-checked"),Q),Object(Z.a)(l,"".concat(se,"-treenode-checkbox-indeterminate"),$),Object(Z.a)(l,"".concat(se,"-treenode-selected"),z),Object(Z.a)(l,"".concat(se,"-treenode-loading"),ee),Object(Z.a)(l,"".concat(se,"-treenode-active"),Ae),Object(Z.a)(l,"".concat(se,"-treenode-leaf-last"),Ke),Object(Z.a)(l,"drag-over",!ae&&y),Object(Z.a)(l,"drag-over-gap-top",!ae&&U),Object(Z.a)(l,"drag-over-gap-bottom",!ae&&N),Object(Z.a)(l,"filter-node",me&&me(Object(u.b)(this.props))),l)),style:m,onDragEnter:le?this.onDragEnter:void 0,onDragOver:le?this.onDragOver:void 0,onDragLeave:le?this.onDragLeave:void 0,onDrop:le?this.onDrop:void 0,onDragEnd:le?this.onDragEnd:void 0,onMouseMove:ce},pe),n.createElement(i,{prefixCls:se,level:xe,isStart:H,isEnd:F}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),C}(n.Component),E=function(P){return n.createElement(t.a.Consumer,null,function(C){return n.createElement(c,Object.assign({},P,{context:C}))})};E.displayName="TreeNode",E.defaultProps={title:o},E.isTreeNode=1;var B=te.a=E},Xmg4:function(Re,te,v){var Z=v("bYtY"),K=v("LPTA"),I=K.devicePixelRatio,k=v("K2GJ"),_=v("3C/r");function O(){return!1}function M(p,a,t){var h=Z.createCanvas(),s=a.getWidth(),i=a.getHeight(),u=h.style;return u&&(u.position="absolute",u.left=0,u.top=0,u.width=s+"px",u.height=i+"px",h.setAttribute("data-zr-dom-id",p)),h.width=s*t,h.height=i*t,h}var x=function(p,a,t){var h;t=t||I,typeof p=="string"?h=M(p,a,t):Z.isObject(p)&&(h=p,p=h.id),this.id=p,this.dom=h;var s=h.style;s&&(h.onselectstart=O,s["-webkit-user-select"]="none",s["user-select"]="none",s["-webkit-touch-callout"]="none",s["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",s.padding=0,s.margin=0,s["border-width"]=0),this.domBack=null,this.ctxBack=null,this.painter=a,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=t};x.prototype={constructor:x,__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 p=this.dpr;this.domBack=M("back-"+this.id,this.painter,p),this.ctxBack=this.domBack.getContext("2d"),p!==1&&this.ctxBack.scale(p,p)},resize:function(p,a){var t=this.dpr,h=this.dom,s=h.style,i=this.domBack;s&&(s.width=p+"px",s.height=a+"px"),h.width=p*t,h.height=a*t,i&&(i.width=p*t,i.height=a*t,t!==1&&this.ctxBack.scale(t,t))},clear:function(p,a){var t=this.dom,h=this.ctx,s=t.width,i=t.height,a=a||this.clearColor,u=this.motionBlur&&!p,d=this.lastFrameAlpha,f=this.dpr;if(u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(t,0,0,s/f,i/f)),h.clearRect(0,0,s,i),a&&a!=="transparent"){var o;a.colorStops?(o=a.__canvasGradient||k.getGradient(h,a,{x:0,y:0,width:s,height:i}),a.__canvasGradient=o):a.image&&(o=_.prototype.getCanvasPattern.call(a,h)),h.save(),h.fillStyle=o||a,h.fillRect(0,0,s,i),h.restore()}if(u){var c=this.domBack;h.save(),h.globalAlpha=d,h.drawImage(c,0,0,s,i),h.restore()}}};var n=x;Re.exports=n},Xnb7:function(Re,te,v){var Z=v("1RvN"),K=new Z(50);function I(M){if(typeof M=="string"){var x=K.get(M);return x&&x.image}else return M}function k(M,x,n,p,a){if(M)if(typeof M=="string"){if(x&&x.__zrImageSrc===M||!n)return x;var t=K.get(M),h={hostEl:n,cb:p,cbPayload:a};return t?(x=t.image,!O(x)&&t.pending.push(h)):(x=new Image,x.onload=x.onerror=_,K.put(M,x.__cachedImgObj={image:x,pending:[h]}),x.src=x.__zrImageSrc=M),x}else return M;else return x}function _(){var M=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var x=0;x<M.pending.length;x++){var n=M.pending[x],p=n.cb;p&&p(this,n.cbPayload),n.hostEl.dirty()}M.pending.length=0}function O(M){return M&&M.width&&M.height}te.findExistImage=I,te.createOrUpdateImage=k,te.isImageReady=O},Xsq0:function(Re,te,v){Re.exports=v.p+"static/mainbanner.0a951716.jpg"},XzQ7:function(Re,te,v){Re.exports={flex_box_center:"flex_box_center___N67ls",flex_space_between:"flex_space_between___2XYCO",flex_box_vertical_center:"flex_box_vertical_center___1LsqB",flex_box_center_end:"flex_box_center_end___3WDUW",flex_box_column:"flex_box_column___MIvMP",bg:"bg___1FRP8",wrap:"wrap___3ESp_",content:"content___2BtE3",wrapTabs:"wrapTabs___1HFCe",intro:"intro___3Wt0Q",introTitle:"introTitle___3vQWN"}},Y1PL:function(Re,te,v){"use strict";v.r(te),v.d(te,"ResizableTextArea",function(){return $});var Z=v("wx14"),K=v("1OyB"),I=v("vuIU"),k=v("Ji7U"),_=v("LK+K"),O=v("q1tI"),M=v("VTBJ"),x=v("rePB"),n=v("Zm9Q"),p=v("Kwbf"),a=v("c+Xe"),t=v("m+aA"),h=v("bdgK"),s=new Map;function i(Ae){Ae.forEach(function(ce){var ie,be=ce.target;(ie=s.get(be))===null||ie===void 0||ie.forEach(function(se){return se(be)})})}var u=new h.default(i),d=null,f=null;function o(Ae,ce){s.has(Ae)||(s.set(Ae,new Set),u.observe(Ae)),s.get(Ae).add(ce)}function c(Ae,ce){s.has(Ae)&&(s.get(Ae).delete(ce),s.get(Ae).size||(u.unobserve(Ae),s.delete(Ae)))}var E=function(Ae){Object(k.a)(ie,Ae);var ce=Object(_.a)(ie);function ie(){return Object(K.a)(this,ie),ce.apply(this,arguments)}return Object(I.a)(ie,[{key:"render",value:function(){return this.props.children}}]),ie}(O.Component),B=O.createContext(null);function w(Ae){var ce=Ae.children,ie=Ae.onBatchResize,be=O.useRef(0),se=O.useRef([]),me=O.useContext(B),le=O.useCallback(function(ge,ae,pe){be.current+=1;var Me=be.current;se.current.push({size:ge,element:ae,data:pe}),Promise.resolve().then(function(){Me===be.current&&(ie==null||ie(se.current),se.current=[])}),me==null||me(ge,ae,pe)},[ie,me]);return O.createElement(B.Provider,{value:le},ce)}function P(Ae){var ce=Ae.children,ie=Ae.disabled,be=O.useRef(null),se=O.useRef(null),me=O.useContext(B),le=O.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),ge=O.isValidElement(ce)&&Object(a.c)(ce),ae=ge?ce.ref:null,pe=O.useMemo(function(){return Object(a.a)(ae,be)},[ae,be]),Me=O.useRef(Ae);Me.current=Ae;var xe=O.useCallback(function(Ke){var tt=Me.current,he=tt.onResize,Se=tt.data,Ue=Ke.getBoundingClientRect(),Ne=Ue.width,ct=Ue.height,mt=Ke.offsetWidth,Rt=Ke.offsetHeight,ht=Math.floor(Ne),Ut=Math.floor(ct);if(le.current.width!==ht||le.current.height!==Ut||le.current.offsetWidth!==mt||le.current.offsetHeight!==Rt){var zt={width:ht,height:Ut,offsetWidth:mt,offsetHeight:Rt};le.current=zt;var ze=mt===Math.round(Ne)?Ne:mt,Ve=Rt===Math.round(ct)?ct:Rt,Et=Object(M.a)(Object(M.a)({},zt),{},{offsetWidth:ze,offsetHeight:Ve});me==null||me(Et,Ke,Se),he&&Promise.resolve().then(function(){he(Et,Ke)})}},[]);return O.useEffect(function(){var Ke=Object(t.a)(be.current)||Object(t.a)(se.current);return Ke&&!ie&&o(Ke,xe),function(){return c(Ke,xe)}},[be.current,ie]),O.createElement(E,{ref:se},ge?O.cloneElement(ce,{ref:pe}):ce)}var C="rc-observer-key";function b(Ae){var ce=Ae.children,ie=Object(n.a)(ce);return ie.map(function(be,se){var me=(be==null?void 0:be.key)||"".concat(C,"-").concat(se);return O.createElement(P,Object(Z.a)({},Ae,{key:me}),be)})}b.Collection=w;var l=b,A=v("bT9E"),g=v("TSYQ"),T=v.n(g),m=`
|
|
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
|
|
`,y=["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"],U={},N;function S(Ae){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ie=Ae.getAttribute("id")||Ae.getAttribute("data-reactid")||Ae.getAttribute("name");if(ce&&U[ie])return U[ie];var be=window.getComputedStyle(Ae),se=be.getPropertyValue("box-sizing")||be.getPropertyValue("-moz-box-sizing")||be.getPropertyValue("-webkit-box-sizing"),me=parseFloat(be.getPropertyValue("padding-bottom"))+parseFloat(be.getPropertyValue("padding-top")),le=parseFloat(be.getPropertyValue("border-bottom-width"))+parseFloat(be.getPropertyValue("border-top-width")),ge=y.map(function(pe){return"".concat(pe,":").concat(be.getPropertyValue(pe))}).join(";"),ae={sizingStyle:ge,paddingSize:me,borderSize:le,boxSizing:se};return ce&&ie&&(U[ie]=ae),ae}function H(Ae){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,be=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;N||(N=document.createElement("textarea"),N.setAttribute("tab-index","-1"),N.setAttribute("aria-hidden","true"),document.body.appendChild(N)),Ae.getAttribute("wrap")?N.setAttribute("wrap",Ae.getAttribute("wrap")):N.removeAttribute("wrap");var se=S(Ae,ce),me=se.paddingSize,le=se.borderSize,ge=se.boxSizing,ae=se.sizingStyle;N.setAttribute("style","".concat(ae,";").concat(m)),N.value=Ae.value||Ae.placeholder||"";var pe=Number.MIN_SAFE_INTEGER,Me=Number.MAX_SAFE_INTEGER,xe=N.scrollHeight,Ke;if(ge==="border-box"?xe+=le:ge==="content-box"&&(xe-=me),ie!==null||be!==null){N.value=" ";var tt=N.scrollHeight-me;ie!==null&&(pe=tt*ie,ge==="border-box"&&(pe=pe+me+le),xe=Math.max(pe,xe)),be!==null&&(Me=tt*be,ge==="border-box"&&(Me=Me+me+le),Ke=xe>Me?"":"hidden",xe=Math.min(Me,xe))}return{height:xe,minHeight:pe,maxHeight:Me,overflowY:Ke,resize:"none"}}var F=v("Gytx"),R=v.n(F),z;(function(Ae){Ae[Ae.NONE=0]="NONE",Ae[Ae.RESIZING=1]="RESIZING",Ae[Ae.RESIZED=2]="RESIZED"})(z||(z={}));var Q=function(Ae){Object(k.a)(ie,Ae);var ce=Object(_.a)(ie);function ie(be){var se;return Object(K.a)(this,ie),se=ce.call(this,be),se.nextFrameActionId=void 0,se.resizeFrameId=void 0,se.textArea=void 0,se.saveTextArea=function(me){se.textArea=me},se.handleResize=function(me){var le=se.state.resizeStatus,ge=se.props,ae=ge.autoSize,pe=ge.onResize;if(le!==z.NONE)return;typeof pe=="function"&&pe(me),ae&&se.resizeOnNextFrame()},se.resizeOnNextFrame=function(){cancelAnimationFrame(se.nextFrameActionId),se.nextFrameActionId=requestAnimationFrame(se.resizeTextarea)},se.resizeTextarea=function(){var me=se.props.autoSize;if(!me||!se.textArea)return;var le=me.minRows,ge=me.maxRows,ae=H(se.textArea,!1,le,ge);se.setState({textareaStyles:ae,resizeStatus:z.RESIZING},function(){cancelAnimationFrame(se.resizeFrameId),se.resizeFrameId=requestAnimationFrame(function(){se.setState({resizeStatus:z.RESIZED},function(){se.resizeFrameId=requestAnimationFrame(function(){se.setState({resizeStatus:z.NONE}),se.fixFirefoxAutoScroll()})})})})},se.renderTextArea=function(){var me=se.props,le=me.prefixCls,ge=le===void 0?"rc-textarea":le,ae=me.autoSize,pe=me.onResize,Me=me.className,xe=me.disabled,Ke=se.state,tt=Ke.textareaStyles,he=Ke.resizeStatus,Se=Object(A.a)(se.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),Ue=T()(ge,Me,Object(x.a)({},"".concat(ge,"-disabled"),xe));"value"in Se&&(Se.value=Se.value||"");var Ne=Object(M.a)(Object(M.a)(Object(M.a)({},se.props.style),tt),he===z.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return O.createElement(l,{onResize:se.handleResize,disabled:!(ae||pe)},O.createElement("textarea",Object(Z.a)({},Se,{className:Ue,style:Ne,ref:se.saveTextArea})))},se.state={textareaStyles:{},resizeStatus:z.NONE},se}return Object(I.a)(ie,[{key:"componentDidUpdate",value:function(se){(se.value!==this.props.value||!R()(se.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var se=this.textArea.selectionStart,me=this.textArea.selectionEnd;this.textArea.setSelectionRange(se,me)}}catch(le){}}},{key:"render",value:function(){return this.renderTextArea()}}]),ie}(O.Component),$=Q,ee=function(Ae){Object(k.a)(ie,Ae);var ce=Object(_.a)(ie);function ie(be){var se;Object(K.a)(this,ie),se=ce.call(this,be),se.resizableTextArea=void 0,se.focus=function(){se.resizableTextArea.textArea.focus()},se.saveTextArea=function(le){se.resizableTextArea=le},se.handleChange=function(le){var ge=se.props.onChange;se.setValue(le.target.value,function(){se.resizableTextArea.resizeTextarea()}),ge&&ge(le)},se.handleKeyDown=function(le){var ge=se.props,ae=ge.onPressEnter,pe=ge.onKeyDown;le.keyCode===13&&ae&&ae(le),pe&&pe(le)};var me=typeof be.value=="undefined"||be.value===null?be.defaultValue:be.value;return se.state={value:me},se}return Object(I.a)(ie,[{key:"setValue",value:function(se,me){"value"in this.props||this.setState({value:se},me)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return O.createElement($,Object(Z.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(se){return"value"in se?{value:se.value}:null}}]),ie}(O.Component),fe=te.default=ee},YH21:function(Re,te,v){var Z=v("H6uX");te.Dispatcher=Z;var K=v("ItGF"),I=v("Ze12"),k=I.isCanvasEl,_=I.transformCoordWithViewport,O=typeof window!="undefined"&&!!window.addEventListener,M=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,x=[];function n(f,o,c,E){return c=c||{},E||!K.canvasSupported?p(f,o,c):K.browser.firefox&&o.layerX!=null&&o.layerX!==o.offsetX?(c.zrX=o.layerX,c.zrY=o.layerY):o.offsetX!=null?(c.zrX=o.offsetX,c.zrY=o.offsetY):p(f,o,c),c}function p(f,o,c){if(K.domSupported&&f.getBoundingClientRect){var E=o.clientX,B=o.clientY;if(k(f)){var w=f.getBoundingClientRect();c.zrX=E-w.left,c.zrY=B-w.top;return}else if(_(x,f,E,B)){c.zrX=x[0],c.zrY=x[1];return}}c.zrX=c.zrY=0}function a(f){return f||window.event}function t(f,o,c){if(o=a(o),o.zrX!=null)return o;var E=o.type,B=E&&E.indexOf("touch")>=0;if(!B)n(f,o,o,c),o.zrDelta=o.wheelDelta?o.wheelDelta/120:-(o.detail||0)/3;else{var w=E!=="touchend"?o.targetTouches[0]:o.changedTouches[0];w&&n(f,w,o,c)}var P=o.button;return o.which==null&&P!==void 0&&M.test(o.type)&&(o.which=P&1?1:P&2?3:P&4?2:0),o}function h(f,o,c,E){O?f.addEventListener(o,c,E):f.attachEvent("on"+o,c)}function s(f,o,c,E){O?f.removeEventListener(o,c,E):f.detachEvent("on"+o,c)}var i=O?function(f){f.preventDefault(),f.stopPropagation(),f.cancelBubble=!0}:function(f){f.returnValue=!1,f.cancelBubble=!0};function u(f){return f.which===2||f.which===3}function d(f){return f.which>1}te.clientToLocal=n,te.getNativeEvent=a,te.normalizeEvent=t,te.addEventListener=h,te.removeEventListener=s,te.stop=i,te.isMiddleOrRightButtonOnMouseUpDown=u,te.notLeftMouse=d},"Ye+n":function(Re,te,v){Re.exports={advertisementModal:"advertisementModal___2ZrRs",bodyHeight:"bodyHeight___3x6vP"}},YgsL:function(Re,te,v){var Z=v("QBsz"),K=Z.distance;function I(_,O,M,x,n,p,a){var t=(M-_)*.5,h=(x-O)*.5;return(2*(O-M)+t+h)*a+(-3*(O-M)-2*t-h)*p+t*n+O}function k(_,O){for(var M=_.length,x=[],n=0,p=1;p<M;p++)n+=K(_[p-1],_[p]);var a=n/2;a=a<M?M:a;for(var p=0;p<a;p++){var t=p/(a-1)*(O?M:M-1),h=Math.floor(t),s=t-h,i,u=_[h%M],d,f;O?(i=_[(h-1+M)%M],d=_[(h+1)%M],f=_[(h+2)%M]):(i=_[h===0?h:h-1],d=_[h>M-2?M-1:h+1],f=_[h>M-3?M-1:h+2]);var o=s*s,c=s*o;x.push([I(i[0],u[0],d[0],f[0],s,o,c),I(i[1],u[1],d[1],f[1],s,o,c)])}return x}Re.exports=k},ZKmM:function(Re,te,v){Re.exports=v.p+"static/yc.ac1ebb9c.svg"},ZW9T:function(Re,te,v){"use strict";v.d(te,"a",function(){return F});var Z=v("k1fw"),K=v("oBTY"),I=v("miYZ"),k=v("tsqr"),_=v("rAM+"),O=v("tJVT"),M=v("PpiC"),x=v("q1tI"),n=v.n(x),p=v("bdgK"),a=v("9og8"),t=v("WmNS"),h=v.n(t),s={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},i={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"]},u={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(`
|
|
`)}]},d={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(`
|
|
`)}]},f=v("5VLF"),o=v.n(f),c={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"]}},E=function(z,Q){return Q.map(function($){return{label:$,kind:z.languages.CompletionItemKind.Keyword,insertText:$}})},B=function(z){return Object.keys(c.tables).map(function(Q){return{label:Q,kind:z.languages.CompletionItemKind.Variable,insertText:Q}})},w=function(z,Q){var $=c.tables[z];return $?$.map(function(ee){return{label:ee,kind:Q.languages.CompletionItemKind.Field,insertText:ee}}):[]};function P(R,z,Q,$,ee){var fe=z.getWordUntilPosition(Q),Ae={startLineNumber:Q.lineNumber,endLineNumber:Q.lineNumber,startColumn:fe.startColumn,endColumn:fe.endColumn},ce=$.map(function(ie){return{label:ie,kind:R.languages.CompletionItemKind.Keyword,insertText:ie,insertTextRules:R.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ae}});return ee.map(function(ie){ce.push(Object(Z.a)(Object(Z.a)({},ie),{},{range:Ae}))}),ce}var C=function(R){c.languages.map(function(ee){return R.languages.registerDocumentFormattingEditProvider(ee,{provideDocumentFormattingEdits:function(Ae,ce,ie){return Object(a.a)(h.a.mark(function be(){var se;return h.a.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return se=o()(Ae.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}),le.abrupt("return",[{range:Ae.getFullModelRange(),text:se}]);case 2:case"end":return le.stop()}},be)}))()}}),ee});var z=u.quickKey.map(function(ee){return{label:ee.label,kind:R.languages.CompletionItemKind.Method,insertText:ee.content,insertTextRules:R.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),Q=d.quickKey.map(function(ee){return{label:ee.label,kind:R.languages.CompletionItemKind.Method,insertText:ee.content,insertTextRules:R.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),$=i.quickKey.map(function(ee){return{label:ee.label,kind:R.languages.CompletionItemKind.Method,insertText:ee.content,insertTextRules:R.languages.CompletionItemInsertTextRule.InsertAsSnippet}});R.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(fe,Ae){var ce=fe.getWordUntilPosition(Ae),ie={startLineNumber:Ae.lineNumber,endLineNumber:Ae.lineNumber,startColumn:ce.startColumn,endColumn:ce.endColumn},be=fe.getLineContent(Ae.lineNumber).substring(ce.startColumn-2,ce.endColumn);return{suggestions:[].concat(Object(K.a)(u.keywords.map(function(se){return{label:se,kind:R.languages.CompletionItemKind.Function,documentation:se,insertText:se,insertTextRules:R.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ie}})),Object(K.a)(u.quickKey.map(function(se){return{label:se.label,kind:R.languages.CompletionItemKind.Function,documentation:se.content,insertText:be.startsWith("#")?se.content.replace(/#/,""):se.content,insertTextRules:R.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ie}})))}}}),R.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(fe,Ae){var ce=fe.getWordUntilPosition(Ae),ie={startLineNumber:Ae.lineNumber,endLineNumber:Ae.lineNumber,startColumn:ce.startColumn,endColumn:ce.endColumn};return{suggestions:Object(K.a)(s.keywords.map(function(be){return{label:be,kind:R.languages.CompletionItemKind.Function,documentation:be,insertText:be,insertTextRules:R.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ie}}))}}}),R.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(fe,Ae){var ce=fe.getWordUntilPosition(Ae),ie={startLineNumber:Ae.lineNumber,endLineNumber:Ae.lineNumber,startColumn:ce.startColumn,endColumn:ce.endColumn},be=fe.getLineContent(Ae.lineNumber).substring(ce.startColumn-2,ce.endColumn);return{suggestions:[].concat(Object(K.a)(i.keywords.map(function(se){return{label:se,kind:R.languages.CompletionItemKind.Function,documentation:se,insertText:se,insertTextRules:R.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ie}})),Object(K.a)(i.quickKey.map(function(se){return{label:se.label,kind:R.languages.CompletionItemKind.Function,documentation:se.content,insertText:be.startsWith("#")?se.content.replace(/#/,""):se.content,insertTextRules:R.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ie}})))}}}),R.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(fe,Ae){var ce=fe.getWordUntilPosition(Ae),ie={startLineNumber:Ae.lineNumber,endLineNumber:Ae.lineNumber,startColumn:ce.startColumn,endColumn:ce.endColumn},be=fe.getLineContent(Ae.lineNumber).substring(ce.startColumn-2,ce.endColumn);return{suggestions:[].concat(Object(K.a)(d.keywords.map(function(se){return{label:se,kind:R.languages.CompletionItemKind.Function,documentation:se,insertText:se,insertTextRules:R.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ie}})),Object(K.a)(d.quickKey.map(function(se){return{label:se.label,kind:R.languages.CompletionItemKind.Function,documentation:se.content,insertText:be.startsWith("#")?se.content.replace(/#/,""):se.content,insertTextRules:R.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ie}})))}}})},b="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002",l=v("fjLI"),A=v("LvDl"),g=v("+ua5");function T(R){return/^\d+$/.test(R)?"".concat(R,"px"):R}function m(){}var y=!1,U={"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 N(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],z=R;if(Array.isArray(R)){for(var Q=0;Q<R.length;Q++){var $=U[R[Q]];if($)return $}return z[0]}return U[z]||z}var S=null,H=te.b=function(R){var z=R.width,Q=z===void 0?"100%":z,$=R.height,ee=$===void 0?"100%":$,fe=R.value,Ae=R.language,ce=Ae===void 0?"javascript":Ae,ie=R.style,be=ie===void 0?{}:ie,se=R.options,me=se===void 0?{}:se,le=R.overrideServices,ge=le===void 0?{}:le,ae=R.theme,pe=ae===void 0?"vs-dark":ae,Me=R.onEditBlur,xe=R.onSave,Ke=R.autoHeight,tt=Ke===void 0?!1:Ke,he=R.forbidCopy,Se=he===void 0?!1:he,Ue=R.onChange,Ne=Ue===void 0?m:Ue,ct=R.editorDidMount,mt=ct===void 0?m:ct,Rt=R.onFocus,ht=Rt===void 0?m:Rt,Ut=R.filename,zt=Ut===void 0?"educoder.txt":Ut,ze=R.errorLine,Ve=R.errorContent,Et=Ve===void 0?"":Ve,Ot=Object(M.a)(R,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","filename","errorLine","errorContent"]),ut=Object(x.useRef)(),vt=Object(x.useRef)({}),Ze=Object(x.useRef)(),ke=Object(x.useRef)(),He=Object(x.useRef)(!1),we=Object(x.useRef)(),Le=Object(x.useState)(!1),Pe=Object(O.a)(Le,2),We=Pe[0],Xe=Pe[1];function gt(){var kt;return ut.current&&(kt=new p.default(function(fn){var mn=Object(_.a)(fn),Tr;try{for(mn.s();!(Tr=mn.n()).done;){var Mr=Tr.value;(Mr.target.offsetHeight>0||Mr.target.offsetWidth>0)&&vt.current.instance.layout()}}catch(kr){mn.e(kr)}finally{mn.f()}}),kt.observe(ut.current)),kt}function Lt(){k.b.warn(decodeURIComponent(b))}var en=function(){var fn=vt.current.instance;if(fe!=null&&fn&&We){var mn=fn.getModel();mn&&fe!==mn.getValue()&&(y=!0,mn.setValue(fe),fn.layout(),y=!1)}};Object(x.useEffect)(function(){ke.current&&clearTimeout(ke.current),ke.current=setTimeout(function(){en()},500)},[fe,We,vt.current]),Object(x.useEffect)(function(){if(ze&&vt.current&&vt.current.instance){var kt=vt.current.instance;kt.changeViewZones(function(mn){var Tr=document.createElement("div");Tr.style.padding="10px 20px",Tr.style.width="calc(100% - 20px)",Tr.className="my-error-line-wrp",Tr.innerHTML=Et,mn.addZone({afterLineNumber:ze||11,heightInLines:3,domNode:Tr})});var fn={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}};kt.addOverlayWidget(fn),kt.revealPositionInCenter({lineNumber:20,column:1})}},[ze,vt.current,We]);function Zt(){var kt=vt.current.instance;if(kt){var fn=kt.getSelection(),mn=vt.current.pastePos||{},Tr=new S.Range(mn.startLineNumber||fn.endLineNumber,mn.startColumn||fn.endColumn,mn.endLineNumber||fn.endLineNumber,mn.endColumn||fn.endColumn);setTimeout(function(){kt.executeEdits("",[{range:Tr,text:""}])},300)}}function xt(kt){(window.navigator.platform.match("Mac")?kt.metaKey:kt.ctrlKey)&&kt.keyCode==83&&(kt.preventDefault(),xe())}var Ct=function(){if(tt&&vt.current.instance){var fn=vt.current.instance.getContentHeight();_t(fn<ee?ee:fn)}else _t(ee)};function pt(kt){var fn=document.createEvent("MouseEvents");fn.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),kt.dispatchEvent(fn)}function Je(kt,fn){var mn=window.URL||window.webkitURL||window,Tr=new Blob([fn]),Mr=document.createElementNS("http://www.w3.org/1999/xhtml","a");Mr.href=mn.createObjectURL(Tr),Mr.download=kt,pt(Mr)}Object(x.useEffect)(function(){Ct()},[Ct]),Object(x.useEffect)(function(){ut.current&&!We&&Promise.all([v.e(15),v.e(27)]).then(v.t.bind(null,"M/lh",7)).then(function(kt){try{S=kt,vt.current.instance=S.editor.create(ut.current,{value:fe,language:N(ce),theme:pe,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},ge);var fn=vt.current.instance,mn=l.d._menuItems,Tr=Object(K.a)(mn).find(function(Xr){return Xr[0]._debugName=="EditorContext"}),Mr=Tr[1],kr=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Un=function(aa,Kr){var _a=aa._first;do{var di,Ei,_e=Kr.includes((di=_a.element)===null||di===void 0||((Ei=di.command)===null||Ei===void 0)?void 0:Ei.id);_e&&aa._remove(_a)}while(_a=_a.next)};if(mt(fn,S),setTimeout(function(){Ct(),vt.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:function(){Je(zt||"educoder.txt",fn.getValue())}}),fn.getDomNode().addEventListener("input",function(){Ze.current.autoFormat&&fn.getAction("editor.action.formatDocument").run()})},500),vt.current.subscription=fn.onDidChangeModelContent(function(Xr){He.current?clearTimeout(we.current):(Ct(),Ne(fn.getValue(),Xr)),we.current=setTimeout(function(){He.current=!1},500)}),window.Monaco||C(S,N(ce)),Se&&(Un(Mr,kr),ut.current.classList.add("noCopyPaste"),fn.onKeyDown(function(Xr){var aa=Xr.keyCode,Kr=Xr.ctrlKey,_a=Xr.metaKey;(aa===33||aa===52)&&(_a||Kr)&&(Lt(),Xr.preventDefault())})),window.Monaco=S,Me&&fn.onDidBlurEditorWidget(function(){Me(fn.getValue())}),ht&&fn.onDidFocusEditorText(function(){ht(fn.getValue())}),Se){fn.addCommand(S.KeyMod.CtrlCmd|S.KeyCode.KEY_V,function(){return Lt(),null}),fn.onDidPaste(function(Xr){vt.current.pastePos=Xr});try{window.addEventListener("paste",Zt)}catch(Xr){}}var Ra=gt();return Xe(!0),function(){var Xr=vt.current.instance;Xr.dispose();var aa=Xr.getModel();aa&&aa.dispose(),vt.current.subscription&&vt.current.subscription.dispose(),Se&&window.removeEventListener("paste",Zt),Ra.unobserve(ut.current)}}catch(Xr){}})},[]),Object(x.useEffect)(function(){var kt=vt.current.instance;if(kt&&We)return document.addEventListener("keydown",xt,!1),function(){document.removeEventListener("keydown",xt)}},[xe,We]),Object(x.useEffect)(function(){var kt=vt.current.instance;if(kt&&We){var fn=N(ce);S.editor.setModelLanguage(kt.getModel(),fn),console.log("language:",ce,kt.getModel(),fn)}},[ce,We]),Object(x.useEffect)(function(){var kt=vt.current.instance;kt&&We&&S.editor.setTheme(pe)},[pe,We]),Object(x.useEffect)(function(){var kt=vt.current.instance;Ze.current=me,kt&&We&&(kt.updateOptions(Object(Z.a)({},me)),setTimeout(function(){kt.getModel().updateOptions(Object(Z.a)({},me))},200))},[JSON.stringify(me),We]),Object(x.useEffect)(function(){var kt=vt.current.instance;kt&&We&&kt.layout()},[Q,ee,We]);var Qe=Object(x.useState)(T(Q)),Oe=Object(O.a)(Qe,2),je=Oe[0],St=Oe[1],bt=Object(x.useState)(T(ee)),Dt=Object(O.a)(bt,2),Ht=Dt[0],_t=Dt[1],Gt=Object(Z.a)(Object(Z.a)({},be),{},{width:je,height:Ht});return n.a.createElement("div",{className:"my-monaco-editor",ref:ut,style:Gt})};function F(R){var z=R.width,Q=z===void 0?"100%":z,$=R.height,ee=$===void 0?"100%":$,fe=R.original,Ae=R.modified,ce=R.language,ie=R.options,be=ie===void 0?{}:ie,se=Object(x.useRef)(),me=Object(x.useState)(null),le=Object(O.a)(me,2),ge=le[0],ae=le[1];function pe(tt){var he;return se.current&&(he=new p.default(function(Se){var Ue=Object(_.a)(Se),Ne;try{for(Ue.s();!(Ne=Ue.n()).done;){var ct=Ne.value;(ct.target.offsetHeight>0||ct.target.offsetWidth>0)&&tt.layout()}}catch(mt){Ue.e(mt)}finally{Ue.f()}}),he.observe(se.current)),he}Object(x.useEffect)(function(){se.current&&Promise.all([v.e(15),v.e(27)]).then(v.t.bind(null,"M/lh",7)).then(function(tt){S=tt;var he=S.editor.createDiffEditor(se.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},be),{},{wordWrap:!0}));ae(he);var Se=pe(he);return function(){he.dispose();var Ue=he.getModel();Ue&&Ue.dispose(),Se.unobserve(se.current)}})},[]),Object(x.useEffect)(function(){ge&&ge.setModel({original:S.editor.createModel(fe,ce),modified:S.editor.createModel(Ae,ce)})},[fe,Ae,ce,ge]);var Me=T(Q),xe=T(ee),Ke={width:Me,height:xe};return n.a.createElement("div",{className:"my-diff-editor",ref:se,style:Ke})}},Ze12:function(Re,te,v){var Z=v("ItGF"),K=v("hOwI"),I=K.buildTransformer,k="___zrEVENTSAVED",_=[];function O(a,t,h,s,i){return M(_,t,s,i,!0)&&M(a,h,_[0],_[1])}function M(a,t,h,s,i){if(t.getBoundingClientRect&&Z.domSupported&&!p(t)){var u=t[k]||(t[k]={}),d=x(t,u),f=n(d,u,i);if(f)return f(a,h,s),!0}return!1}function x(a,t){var h=t.markers;if(h)return h;h=t.markers=[];for(var s=["left","right"],i=["top","bottom"],u=0;u<4;u++){var d=document.createElement("div"),f=d.style,o=u%2,c=(u>>1)%2;f.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",s[o]+":0",i[c]+":0",s[1-o]+":auto",i[1-c]+":auto",""].join("!important;"),a.appendChild(d),h.push(d)}return h}function n(a,t,h){for(var s=h?"invTrans":"trans",i=t[s],u=t.srcCoords,d=!0,f=[],o=[],c=0;c<4;c++){var E=a[c].getBoundingClientRect(),B=2*c,w=E.left,P=E.top;f.push(w,P),d=d&&u&&w===u[B]&&P===u[B+1],o.push(a[c].offsetLeft,a[c].offsetTop)}return d&&i?i:(t.srcCoords=f,t[s]=h?I(o,f):I(f,o))}function p(a){return a.nodeName.toUpperCase()==="CANVAS"}te.transformLocalCoord=O,te.transformCoordWithViewport=M,te.isCanvasEl=p},ZpRC:function(Re,te,v){"use strict";function Z(a){return typeof a=="object"&&a!=null&&a.nodeType===1}function K(a,t){return(!t||a!=="hidden")&&a!=="visible"&&a!=="clip"}function I(a,t){if(a.clientHeight<a.scrollHeight||a.clientWidth<a.scrollWidth){var h=getComputedStyle(a,null);return K(h.overflowY,t)||K(h.overflowX,t)||function(s){var i=function(u){if(!u.ownerDocument||!u.ownerDocument.defaultView)return null;try{return u.ownerDocument.defaultView.frameElement}catch(d){return null}}(s);return!!i&&(i.clientHeight<s.scrollHeight||i.clientWidth<s.scrollWidth)}(a)}return!1}function k(a,t,h,s,i,u,d,f){return u<a&&d>t||u>a&&d<t?0:u<=a&&f<=h||d>=t&&f>=h?u-a-s:d>t&&f<h||u<a&&f>h?d-t+i:0}var _=function(a,t){var h=window,s=t.scrollMode,i=t.block,u=t.inline,d=t.boundary,f=t.skipOverflowHiddenElements,o=typeof d=="function"?d:function(tt){return tt!==d};if(!Z(a))throw new TypeError("Invalid target");for(var c=document.scrollingElement||document.documentElement,E=[],B=a;Z(B)&&o(B);){if((B=B.parentElement)===c){E.push(B);break}B!=null&&B===document.body&&I(B)&&!I(document.documentElement)||B!=null&&I(B,f)&&E.push(B)}for(var w=h.visualViewport?h.visualViewport.width:innerWidth,P=h.visualViewport?h.visualViewport.height:innerHeight,C=window.scrollX||pageXOffset,b=window.scrollY||pageYOffset,l=a.getBoundingClientRect(),A=l.height,g=l.width,T=l.top,m=l.right,y=l.bottom,U=l.left,N=i==="start"||i==="nearest"?T:i==="end"?y:T+A/2,S=u==="center"?U+g/2:u==="end"?m:U,H=[],F=0;F<E.length;F++){var R=E[F],z=R.getBoundingClientRect(),Q=z.height,$=z.width,ee=z.top,fe=z.right,Ae=z.bottom,ce=z.left;if(s==="if-needed"&&T>=0&&U>=0&&y<=P&&m<=w&&T>=ee&&y<=Ae&&U>=ce&&m<=fe)return H;var ie=getComputedStyle(R),be=parseInt(ie.borderLeftWidth,10),se=parseInt(ie.borderTopWidth,10),me=parseInt(ie.borderRightWidth,10),le=parseInt(ie.borderBottomWidth,10),ge=0,ae=0,pe="offsetWidth"in R?R.offsetWidth-R.clientWidth-be-me:0,Me="offsetHeight"in R?R.offsetHeight-R.clientHeight-se-le:0;if(c===R)ge=i==="start"?N:i==="end"?N-P:i==="nearest"?k(b,b+P,P,se,le,b+N,b+N+A,A):N-P/2,ae=u==="start"?S:u==="center"?S-w/2:u==="end"?S-w:k(C,C+w,w,be,me,C+S,C+S+g,g),ge=Math.max(0,ge+b),ae=Math.max(0,ae+C);else{ge=i==="start"?N-ee-se:i==="end"?N-Ae+le+Me:i==="nearest"?k(ee,Ae,Q,se,le+Me,N,N+A,A):N-(ee+Q/2)+Me/2,ae=u==="start"?S-ce-be:u==="center"?S-(ce+$/2)+pe/2:u==="end"?S-fe+me+pe:k(ce,fe,$,be,me+pe,S,S+g,g);var xe=R.scrollLeft,Ke=R.scrollTop;N+=Ke-(ge=Math.max(0,Math.min(Ke+ge,R.scrollHeight-Q+Me))),S+=xe-(ae=Math.max(0,Math.min(xe+ae,R.scrollWidth-$+pe)))}H.push({el:R,top:ge,left:ae})}return H};function O(a){return a===Object(a)&&Object.keys(a).length!==0}function M(a,t){t===void 0&&(t="auto");var h="scrollBehavior"in document.body.style;a.forEach(function(s){var i=s.el,u=s.top,d=s.left;i.scroll&&h?i.scroll({top:u,left:d,behavior:t}):(i.scrollTop=u,i.scrollLeft=d)})}function x(a){return a===!1?{block:"end",inline:"nearest"}:O(a)?a:{block:"start",inline:"nearest"}}function n(a,t){var h=!a.ownerDocument.documentElement.contains(a);if(O(t)&&typeof t.behavior=="function")return t.behavior(h?[]:_(a,t));if(h)return;var s=x(t);return M(_(a,s),s.behavior)}var p=te.a=n},Zss7:function(Re,te,v){var Z;(function(K){var I=/^\s+/,k=/\s+$/,_=0,O=K.round,M=K.min,x=K.max,n=K.random;function p(le,ge){if(le=le||"",ge=ge||{},le instanceof p)return le;if(!(this instanceof p))return new p(le,ge);var ae=a(le);this._originalInput=le,this._r=ae.r,this._g=ae.g,this._b=ae.b,this._a=ae.a,this._roundA=O(100*this._a)/100,this._format=ge.format||ae.format,this._gradientType=ge.gradientType,this._r<1&&(this._r=O(this._r)),this._g<1&&(this._g=O(this._g)),this._b<1&&(this._b=O(this._b)),this._ok=ae.ok,this._tc_id=_++}p.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 le=this.toRgb();return(le.r*299+le.g*587+le.b*114)/1e3},getLuminance:function(){var le=this.toRgb(),ge,ae,pe,Me,xe,Ke;return ge=le.r/255,ae=le.g/255,pe=le.b/255,ge<=.03928?Me=ge/12.92:Me=K.pow((ge+.055)/1.055,2.4),ae<=.03928?xe=ae/12.92:xe=K.pow((ae+.055)/1.055,2.4),pe<=.03928?Ke=pe/12.92:Ke=K.pow((pe+.055)/1.055,2.4),.2126*Me+.7152*xe+.0722*Ke},setAlpha:function(le){return this._a=H(le),this._roundA=O(100*this._a)/100,this},toHsv:function(){var le=i(this._r,this._g,this._b);return{h:le.h*360,s:le.s,v:le.v,a:this._a}},toHsvString:function(){var le=i(this._r,this._g,this._b),ge=O(le.h*360),ae=O(le.s*100),pe=O(le.v*100);return this._a==1?"hsv("+ge+", "+ae+"%, "+pe+"%)":"hsva("+ge+", "+ae+"%, "+pe+"%, "+this._roundA+")"},toHsl:function(){var le=h(this._r,this._g,this._b);return{h:le.h*360,s:le.s,l:le.l,a:this._a}},toHslString:function(){var le=h(this._r,this._g,this._b),ge=O(le.h*360),ae=O(le.s*100),pe=O(le.l*100);return this._a==1?"hsl("+ge+", "+ae+"%, "+pe+"%)":"hsla("+ge+", "+ae+"%, "+pe+"%, "+this._roundA+")"},toHex:function(le){return d(this._r,this._g,this._b,le)},toHexString:function(le){return"#"+this.toHex(le)},toHex8:function(le){return f(this._r,this._g,this._b,this._a,le)},toHex8String:function(le){return"#"+this.toHex8(le)},toRgb:function(){return{r:O(this._r),g:O(this._g),b:O(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+O(this._r)+", "+O(this._g)+", "+O(this._b)+")":"rgba("+O(this._r)+", "+O(this._g)+", "+O(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:O(F(this._r,255)*100)+"%",g:O(F(this._g,255)*100)+"%",b:O(F(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+O(F(this._r,255)*100)+"%, "+O(F(this._g,255)*100)+"%, "+O(F(this._b,255)*100)+"%)":"rgba("+O(F(this._r,255)*100)+"%, "+O(F(this._g,255)*100)+"%, "+O(F(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:N[d(this._r,this._g,this._b,!0)]||!1},toFilter:function(le){var ge="#"+o(this._r,this._g,this._b,this._a),ae=ge,pe=this._gradientType?"GradientType = 1, ":"";if(le){var Me=p(le);ae="#"+o(Me._r,Me._g,Me._b,Me._a)}return"progid:DXImageTransform.Microsoft.gradient("+pe+"startColorstr="+ge+",endColorstr="+ae+")"},toString:function(le){var ge=!!le;le=le||this._format;var ae=!1,pe=this._a<1&&this._a>=0,Me=!ge&&pe&&(le==="hex"||le==="hex6"||le==="hex3"||le==="hex4"||le==="hex8"||le==="name");return Me?le==="name"&&this._a===0?this.toName():this.toRgbString():(le==="rgb"&&(ae=this.toRgbString()),le==="prgb"&&(ae=this.toPercentageRgbString()),(le==="hex"||le==="hex6")&&(ae=this.toHexString()),le==="hex3"&&(ae=this.toHexString(!0)),le==="hex4"&&(ae=this.toHex8String(!0)),le==="hex8"&&(ae=this.toHex8String()),le==="name"&&(ae=this.toName()),le==="hsl"&&(ae=this.toHslString()),le==="hsv"&&(ae=this.toHsvString()),ae||this.toHexString())},clone:function(){return p(this.toString())},_applyModification:function(le,ge){var ae=le.apply(null,[this].concat([].slice.call(ge)));return this._r=ae._r,this._g=ae._g,this._b=ae._b,this.setAlpha(ae._a),this},lighten:function(){return this._applyModification(w,arguments)},brighten:function(){return this._applyModification(P,arguments)},darken:function(){return this._applyModification(C,arguments)},desaturate:function(){return this._applyModification(c,arguments)},saturate:function(){return this._applyModification(E,arguments)},greyscale:function(){return this._applyModification(B,arguments)},spin:function(){return this._applyModification(b,arguments)},_applyCombination:function(le,ge){return le.apply(null,[this].concat([].slice.call(ge)))},analogous:function(){return this._applyCombination(m,arguments)},complement:function(){return this._applyCombination(l,arguments)},monochromatic:function(){return this._applyCombination(y,arguments)},splitcomplement:function(){return this._applyCombination(T,arguments)},triad:function(){return this._applyCombination(A,arguments)},tetrad:function(){return this._applyCombination(g,arguments)}},p.fromRatio=function(le,ge){if(typeof le=="object"){var ae={};for(var pe in le)le.hasOwnProperty(pe)&&(pe==="a"?ae[pe]=le[pe]:ae[pe]=fe(le[pe]));le=ae}return p(le,ge)};function a(le){var ge={r:0,g:0,b:0},ae=1,pe=null,Me=null,xe=null,Ke=!1,tt=!1;return typeof le=="string"&&(le=se(le)),typeof le=="object"&&(be(le.r)&&be(le.g)&&be(le.b)?(ge=t(le.r,le.g,le.b),Ke=!0,tt=String(le.r).substr(-1)==="%"?"prgb":"rgb"):be(le.h)&&be(le.s)&&be(le.v)?(pe=fe(le.s),Me=fe(le.v),ge=u(le.h,pe,Me),Ke=!0,tt="hsv"):be(le.h)&&be(le.s)&&be(le.l)&&(pe=fe(le.s),xe=fe(le.l),ge=s(le.h,pe,xe),Ke=!0,tt="hsl"),le.hasOwnProperty("a")&&(ae=le.a)),ae=H(ae),{ok:Ke,format:le.format||tt,r:M(255,x(ge.r,0)),g:M(255,x(ge.g,0)),b:M(255,x(ge.b,0)),a:ae}}function t(le,ge,ae){return{r:F(le,255)*255,g:F(ge,255)*255,b:F(ae,255)*255}}function h(le,ge,ae){le=F(le,255),ge=F(ge,255),ae=F(ae,255);var pe=x(le,ge,ae),Me=M(le,ge,ae),xe,Ke,tt=(pe+Me)/2;if(pe==Me)xe=Ke=0;else{var he=pe-Me;Ke=tt>.5?he/(2-pe-Me):he/(pe+Me);switch(pe){case le:xe=(ge-ae)/he+(ge<ae?6:0);break;case ge:xe=(ae-le)/he+2;break;case ae:xe=(le-ge)/he+4;break}xe/=6}return{h:xe,s:Ke,l:tt}}function s(le,ge,ae){var pe,Me,xe;le=F(le,360),ge=F(ge,100),ae=F(ae,100);function Ke(Se,Ue,Ne){return Ne<0&&(Ne+=1),Ne>1&&(Ne-=1),Ne<1/6?Se+(Ue-Se)*6*Ne:Ne<1/2?Ue:Ne<2/3?Se+(Ue-Se)*(2/3-Ne)*6:Se}if(ge===0)pe=Me=xe=ae;else{var tt=ae<.5?ae*(1+ge):ae+ge-ae*ge,he=2*ae-tt;pe=Ke(he,tt,le+1/3),Me=Ke(he,tt,le),xe=Ke(he,tt,le-1/3)}return{r:pe*255,g:Me*255,b:xe*255}}function i(le,ge,ae){le=F(le,255),ge=F(ge,255),ae=F(ae,255);var pe=x(le,ge,ae),Me=M(le,ge,ae),xe,Ke,tt=pe,he=pe-Me;if(Ke=pe===0?0:he/pe,pe==Me)xe=0;else{switch(pe){case le:xe=(ge-ae)/he+(ge<ae?6:0);break;case ge:xe=(ae-le)/he+2;break;case ae:xe=(le-ge)/he+4;break}xe/=6}return{h:xe,s:Ke,v:tt}}function u(le,ge,ae){le=F(le,360)*6,ge=F(ge,100),ae=F(ae,100);var pe=K.floor(le),Me=le-pe,xe=ae*(1-ge),Ke=ae*(1-Me*ge),tt=ae*(1-(1-Me)*ge),he=pe%6,Se=[ae,Ke,xe,xe,tt,ae][he],Ue=[tt,ae,ae,Ke,xe,xe][he],Ne=[xe,xe,tt,ae,ae,Ke][he];return{r:Se*255,g:Ue*255,b:Ne*255}}function d(le,ge,ae,pe){var Me=[ee(O(le).toString(16)),ee(O(ge).toString(16)),ee(O(ae).toString(16))];return pe&&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[0].charAt(0)+Me[1].charAt(0)+Me[2].charAt(0):Me.join("")}function f(le,ge,ae,pe,Me){var xe=[ee(O(le).toString(16)),ee(O(ge).toString(16)),ee(O(ae).toString(16)),ee(Ae(pe))];return Me&&xe[0].charAt(0)==xe[0].charAt(1)&&xe[1].charAt(0)==xe[1].charAt(1)&&xe[2].charAt(0)==xe[2].charAt(1)&&xe[3].charAt(0)==xe[3].charAt(1)?xe[0].charAt(0)+xe[1].charAt(0)+xe[2].charAt(0)+xe[3].charAt(0):xe.join("")}function o(le,ge,ae,pe){var Me=[ee(Ae(pe)),ee(O(le).toString(16)),ee(O(ge).toString(16)),ee(O(ae).toString(16))];return Me.join("")}p.equals=function(le,ge){return!le||!ge?!1:p(le).toRgbString()==p(ge).toRgbString()},p.random=function(){return p.fromRatio({r:n(),g:n(),b:n()})};function c(le,ge){ge=ge===0?0:ge||10;var ae=p(le).toHsl();return ae.s-=ge/100,ae.s=R(ae.s),p(ae)}function E(le,ge){ge=ge===0?0:ge||10;var ae=p(le).toHsl();return ae.s+=ge/100,ae.s=R(ae.s),p(ae)}function B(le){return p(le).desaturate(100)}function w(le,ge){ge=ge===0?0:ge||10;var ae=p(le).toHsl();return ae.l+=ge/100,ae.l=R(ae.l),p(ae)}function P(le,ge){ge=ge===0?0:ge||10;var ae=p(le).toRgb();return ae.r=x(0,M(255,ae.r-O(255*-(ge/100)))),ae.g=x(0,M(255,ae.g-O(255*-(ge/100)))),ae.b=x(0,M(255,ae.b-O(255*-(ge/100)))),p(ae)}function C(le,ge){ge=ge===0?0:ge||10;var ae=p(le).toHsl();return ae.l-=ge/100,ae.l=R(ae.l),p(ae)}function b(le,ge){var ae=p(le).toHsl(),pe=(ae.h+ge)%360;return ae.h=pe<0?360+pe:pe,p(ae)}function l(le){var ge=p(le).toHsl();return ge.h=(ge.h+180)%360,p(ge)}function A(le){var ge=p(le).toHsl(),ae=ge.h;return[p(le),p({h:(ae+120)%360,s:ge.s,l:ge.l}),p({h:(ae+240)%360,s:ge.s,l:ge.l})]}function g(le){var ge=p(le).toHsl(),ae=ge.h;return[p(le),p({h:(ae+90)%360,s:ge.s,l:ge.l}),p({h:(ae+180)%360,s:ge.s,l:ge.l}),p({h:(ae+270)%360,s:ge.s,l:ge.l})]}function T(le){var ge=p(le).toHsl(),ae=ge.h;return[p(le),p({h:(ae+72)%360,s:ge.s,l:ge.l}),p({h:(ae+216)%360,s:ge.s,l:ge.l})]}function m(le,ge,ae){ge=ge||6,ae=ae||30;var pe=p(le).toHsl(),Me=360/ae,xe=[p(le)];for(pe.h=(pe.h-(Me*ge>>1)+720)%360;--ge;)pe.h=(pe.h+Me)%360,xe.push(p(pe));return xe}function y(le,ge){ge=ge||6;for(var ae=p(le).toHsv(),pe=ae.h,Me=ae.s,xe=ae.v,Ke=[],tt=1/ge;ge--;)Ke.push(p({h:pe,s:Me,v:xe})),xe=(xe+tt)%1;return Ke}p.mix=function(le,ge,ae){ae=ae===0?0:ae||50;var pe=p(le).toRgb(),Me=p(ge).toRgb(),xe=ae/100,Ke={r:(Me.r-pe.r)*xe+pe.r,g:(Me.g-pe.g)*xe+pe.g,b:(Me.b-pe.b)*xe+pe.b,a:(Me.a-pe.a)*xe+pe.a};return p(Ke)},p.readability=function(le,ge){var ae=p(le),pe=p(ge);return(K.max(ae.getLuminance(),pe.getLuminance())+.05)/(K.min(ae.getLuminance(),pe.getLuminance())+.05)},p.isReadable=function(le,ge,ae){var pe=p.readability(le,ge),Me,xe;xe=!1,Me=me(ae);switch(Me.level+Me.size){case"AAsmall":case"AAAlarge":xe=pe>=4.5;break;case"AAlarge":xe=pe>=3;break;case"AAAsmall":xe=pe>=7;break}return xe},p.mostReadable=function(le,ge,ae){var pe=null,Me=0,xe,Ke,tt,he;ae=ae||{},Ke=ae.includeFallbackColors,tt=ae.level,he=ae.size;for(var Se=0;Se<ge.length;Se++)xe=p.readability(le,ge[Se]),xe>Me&&(Me=xe,pe=p(ge[Se]));return p.isReadable(le,pe,{level:tt,size:he})||!Ke?pe:(ae.includeFallbackColors=!1,p.mostReadable(le,["#fff","#000"],ae))};var U=p.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"},N=p.hexNames=S(U);function S(le){var ge={};for(var ae in le)le.hasOwnProperty(ae)&&(ge[le[ae]]=ae);return ge}function H(le){return le=parseFloat(le),(isNaN(le)||le<0||le>1)&&(le=1),le}function F(le,ge){Q(le)&&(le="100%");var ae=$(le);return le=M(ge,x(0,parseFloat(le))),ae&&(le=parseInt(le*ge,10)/100),K.abs(le-ge)<1e-6?1:le%ge/parseFloat(ge)}function R(le){return M(1,x(0,le))}function z(le){return parseInt(le,16)}function Q(le){return typeof le=="string"&&le.indexOf(".")!=-1&&parseFloat(le)===1}function $(le){return typeof le=="string"&&le.indexOf("%")!=-1}function ee(le){return le.length==1?"0"+le:""+le}function fe(le){return le<=1&&(le=le*100+"%"),le}function Ae(le){return K.round(parseFloat(le)*255).toString(16)}function ce(le){return z(le)/255}var ie=function(){var le="[-\\+]?\\d+%?",ge="[-\\+]?\\d*\\.\\d+%?",ae="(?:"+ge+")|(?:"+le+")",pe="[\\s|\\(]+("+ae+")[,|\\s]+("+ae+")[,|\\s]+("+ae+")\\s*\\)?",Me="[\\s|\\(]+("+ae+")[,|\\s]+("+ae+")[,|\\s]+("+ae+")[,|\\s]+("+ae+")\\s*\\)?";return{CSS_UNIT:new RegExp(ae),rgb:new RegExp("rgb"+pe),rgba:new RegExp("rgba"+Me),hsl:new RegExp("hsl"+pe),hsla:new RegExp("hsla"+Me),hsv:new RegExp("hsv"+pe),hsva:new RegExp("hsva"+Me),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 be(le){return!!ie.CSS_UNIT.exec(le)}function se(le){le=le.replace(I,"").replace(k,"").toLowerCase();var ge=!1;if(U[le])le=U[le],ge=!0;else if(le=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var ae;return(ae=ie.rgb.exec(le))?{r:ae[1],g:ae[2],b:ae[3]}:(ae=ie.rgba.exec(le))?{r:ae[1],g:ae[2],b:ae[3],a:ae[4]}:(ae=ie.hsl.exec(le))?{h:ae[1],s:ae[2],l:ae[3]}:(ae=ie.hsla.exec(le))?{h:ae[1],s:ae[2],l:ae[3],a:ae[4]}:(ae=ie.hsv.exec(le))?{h:ae[1],s:ae[2],v:ae[3]}:(ae=ie.hsva.exec(le))?{h:ae[1],s:ae[2],v:ae[3],a:ae[4]}:(ae=ie.hex8.exec(le))?{r:z(ae[1]),g:z(ae[2]),b:z(ae[3]),a:ce(ae[4]),format:ge?"name":"hex8"}:(ae=ie.hex6.exec(le))?{r:z(ae[1]),g:z(ae[2]),b:z(ae[3]),format:ge?"name":"hex"}:(ae=ie.hex4.exec(le))?{r:z(ae[1]+""+ae[1]),g:z(ae[2]+""+ae[2]),b:z(ae[3]+""+ae[3]),a:ce(ae[4]+""+ae[4]),format:ge?"name":"hex8"}:(ae=ie.hex3.exec(le))?{r:z(ae[1]+""+ae[1]),g:z(ae[2]+""+ae[2]),b:z(ae[3]+""+ae[3]),format:ge?"name":"hex"}:!1}function me(le){var ge,ae;return le=le||{level:"AA",size:"small"},ge=(le.level||"AA").toUpperCase(),ae=(le.size||"small").toLowerCase(),ge!=="AA"&&ge!=="AAA"&&(ge="AA"),ae!=="small"&&ae!=="large"&&(ae="small"),{level:ge,size:ae}}Re.exports?Re.exports=p:!(Z=function(){return p}.call(te,v,te,Re),Z!==void 0&&(Re.exports=Z))})(Math)},"a+yL":function(Re,te,v){Re.exports={search:"search___t0h96",btn:"btn___t2oDx"}},aKvl:function(Re,te,v){var Z=v("Sj9i"),K=Z.quadraticProjectPoint;function I(k,_,O,M,x,n,p,a,t){if(p===0)return!1;var h=p;if(t>_+h&&t>M+h&&t>n+h||t<_-h&&t<M-h&&t<n-h||a>k+h&&a>O+h&&a>x+h||a<k-h&&a<O-h&&a<x-h)return!1;var s=K(k,_,O,M,x,n,a,t,null);return s<=h/2}te.containStroke=I},aX58:function(Re,te,v){var Z=v("3gBT"),K=v("ItGF"),I=v("bYtY"),k=v("0s+r"),_=v("r6Bn"),O=v("7SHv"),M=v("MKOG"),x=v("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 n=!K.canvasSupported,p={canvas:O},a={},t="4.3.1";function h(o,c){var E=new f(Z(),o,c);return a[E.id]=E,E}function s(o){if(o)o.dispose();else{for(var c in a)a.hasOwnProperty(c)&&a[c].dispose();a={}}return this}function i(o){return a[o]}function u(o,c){p[o]=c}function d(o){delete a[o]}var f=function(o,c,E){E=E||{},this.dom=c,this.id=o;var B=this,w=new _,P=E.renderer;if(n){if(!p.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");P="vml"}else(!P||!p[P])&&(P="canvas");var C=new p[P](c,w,E,o);this.storage=w,this.painter=C;var b=!K.node&&!K.worker?new x(C.getViewportRoot(),C.root):null;this.handler=new k(w,C,b,C.root),this.animation=new M({stage:{update:I.bind(this.flush,this)}}),this.animation.start(),this._needsRefresh;var l=w.delFromStorage,A=w.addToStorage;w.delFromStorage=function(g){l.call(w,g),g&&g.removeSelfFromZr(B)},w.addToStorage=function(g){A.call(w,g),g.addSelfToZr(B)}};f.prototype={constructor:f,getId:function(){return this.id},add:function(o){this.storage.addRoot(o),this._needsRefresh=!0},remove:function(o){this.storage.delRoot(o),this._needsRefresh=!0},configLayer:function(o,c){this.painter.configLayer&&this.painter.configLayer(o,c),this._needsRefresh=!0},setBackgroundColor:function(o){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(o),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 o;this._needsRefresh&&(o=!0,this.refreshImmediately()),this._needsRefreshHover&&(o=!0,this.refreshHoverImmediately()),o&&this.trigger("rendered")},addHover:function(o,c){if(this.painter.addHover){var E=this.painter.addHover(o,c);return this.refreshHover(),E}},removeHover:function(o){this.painter.removeHover&&(this.painter.removeHover(o),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(o){o=o||{},this.painter.resize(o.width,o.height),this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},pathToImage:function(o,c){return this.painter.pathToImage(o,c)},setCursorStyle:function(o){this.handler.setCursorStyle(o)},findHover:function(o,c){return this.handler.findHover(o,c)},on:function(o,c,E){this.handler.on(o,c,E)},off:function(o,c){this.handler.off(o,c)},trigger:function(o,c){this.handler.trigger(o,c)},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,d(this.id)}},te.version=t,te.init=h,te.dispose=s,te.getInstance=i,te.registerPainter=u},bT9E:function(Re,te,v){"use strict";v.d(te,"a",function(){return K});var Z=v("VTBJ");function K(I,k){var _=Object(Z.a)({},I);return Array.isArray(k)&&k.forEach(function(O){delete _[O]}),_}},bYtY:function(Re,te){var v={"[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},K=Object.prototype.toString,I=Array.prototype,k=I.forEach,_=I.filter,O=I.slice,M=I.map,x=I.reduce,n={};function p(ae,pe){ae==="createCanvas"&&(d=null),n[ae]=pe}function a(ae){if(ae==null||typeof ae!="object")return ae;var pe=ae,Me=K.call(ae);if(Me==="[object Array]"){if(!be(ae)){pe=[];for(var xe=0,Ke=ae.length;xe<Ke;xe++)pe[xe]=a(ae[xe])}}else if(Z[Me]){if(!be(ae)){var tt=ae.constructor;if(ae.constructor.from)pe=tt.from(ae);else{pe=new tt(ae.length);for(var xe=0,Ke=ae.length;xe<Ke;xe++)pe[xe]=a(ae[xe])}}}else if(!v[Me]&&!be(ae)&&!H(ae)){pe={};for(var he in ae)ae.hasOwnProperty(he)&&(pe[he]=a(ae[he]))}return pe}function t(ae,pe,Me){if(!U(pe)||!U(ae))return Me?a(pe):ae;for(var xe in pe)if(pe.hasOwnProperty(xe)){var Ke=ae[xe],tt=pe[xe];U(tt)&&U(Ke)&&!T(tt)&&!T(Ke)&&!H(tt)&&!H(Ke)&&!N(tt)&&!N(Ke)&&!be(tt)&&!be(Ke)?t(Ke,tt,Me):(Me||!(xe in ae))&&(ae[xe]=a(pe[xe],!0))}return ae}function h(ae,pe){for(var Me=ae[0],xe=1,Ke=ae.length;xe<Ke;xe++)Me=t(Me,ae[xe],pe);return Me}function s(ae,pe){for(var Me in pe)pe.hasOwnProperty(Me)&&(ae[Me]=pe[Me]);return ae}function i(ae,pe,Me){for(var xe in pe)pe.hasOwnProperty(xe)&&(Me?pe[xe]!=null:ae[xe]==null)&&(ae[xe]=pe[xe]);return ae}var u=function(){return n.createCanvas()};n.createCanvas=function(){return document.createElement("canvas")};var d;function f(){return d||(d=u().getContext("2d")),d}function o(ae,pe){if(ae){if(ae.indexOf)return ae.indexOf(pe);for(var Me=0,xe=ae.length;Me<xe;Me++)if(ae[Me]===pe)return Me}return-1}function c(ae,pe){var Me=ae.prototype;function xe(){}xe.prototype=pe.prototype,ae.prototype=new xe;for(var Ke in Me)Me.hasOwnProperty(Ke)&&(ae.prototype[Ke]=Me[Ke]);ae.prototype.constructor=ae,ae.superClass=pe}function E(ae,pe,Me){ae="prototype"in ae?ae.prototype:ae,pe="prototype"in pe?pe.prototype:pe,i(ae,pe,Me)}function B(ae){return ae?typeof ae=="string"?!1:typeof ae.length=="number":void 0}function w(ae,pe,Me){if(!(ae&&pe))return;if(ae.forEach&&ae.forEach===k)ae.forEach(pe,Me);else if(ae.length===+ae.length)for(var xe=0,Ke=ae.length;xe<Ke;xe++)pe.call(Me,ae[xe],xe,ae);else for(var tt in ae)ae.hasOwnProperty(tt)&&pe.call(Me,ae[tt],tt,ae)}function P(ae,pe,Me){if(!(ae&&pe))return;if(ae.map&&ae.map===M)return ae.map(pe,Me);for(var xe=[],Ke=0,tt=ae.length;Ke<tt;Ke++)xe.push(pe.call(Me,ae[Ke],Ke,ae));return xe}function C(ae,pe,Me,xe){if(!(ae&&pe))return;if(ae.reduce&&ae.reduce===x)return ae.reduce(pe,Me,xe);for(var Ke=0,tt=ae.length;Ke<tt;Ke++)Me=pe.call(xe,Me,ae[Ke],Ke,ae);return Me}function b(ae,pe,Me){if(!(ae&&pe))return;if(ae.filter&&ae.filter===_)return ae.filter(pe,Me);for(var xe=[],Ke=0,tt=ae.length;Ke<tt;Ke++)pe.call(Me,ae[Ke],Ke,ae)&&xe.push(ae[Ke]);return xe}function l(ae,pe,Me){if(!(ae&&pe))return;for(var xe=0,Ke=ae.length;xe<Ke;xe++)if(pe.call(Me,ae[xe],xe,ae))return ae[xe]}function A(ae,pe){var Me=O.call(arguments,2);return function(){return ae.apply(pe,Me.concat(O.call(arguments)))}}function g(ae){var pe=O.call(arguments,1);return function(){return ae.apply(this,pe.concat(O.call(arguments)))}}function T(ae){return K.call(ae)==="[object Array]"}function m(ae){return typeof ae=="function"}function y(ae){return K.call(ae)==="[object String]"}function U(ae){var pe=typeof ae;return pe==="function"||!!ae&&pe==="object"}function N(ae){return!!v[K.call(ae)]}function S(ae){return!!Z[K.call(ae)]}function H(ae){return typeof ae=="object"&&typeof ae.nodeType=="number"&&typeof ae.ownerDocument=="object"}function F(ae){return ae!==ae}function R(ae){for(var pe=0,Me=arguments.length;pe<Me;pe++)if(arguments[pe]!=null)return arguments[pe]}function z(ae,pe){return ae!=null?ae:pe}function Q(ae,pe,Me){return ae!=null?ae:pe!=null?pe:Me}function $(){return Function.call.apply(O,arguments)}function ee(ae){if(typeof ae=="number")return[ae,ae,ae,ae];var pe=ae.length;return pe===2?[ae[0],ae[1],ae[0],ae[1]]:pe===3?[ae[0],ae[1],ae[2],ae[1]]:ae}function fe(ae,pe){if(!ae)throw new Error(pe)}function Ae(ae){return ae==null?null:typeof ae.trim=="function"?ae.trim():ae.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var ce="__ec_primitive__";function ie(ae){ae[ce]=!0}function be(ae){return ae[ce]}function se(ae){var pe=T(ae);this.data={};var Me=this;ae instanceof se?ae.each(xe):ae&&w(ae,xe);function xe(Ke,tt){pe?Me.set(Ke,tt):Me.set(tt,Ke)}}se.prototype={constructor:se,get:function(ae){return this.data.hasOwnProperty(ae)?this.data[ae]:null},set:function(ae,pe){return this.data[ae]=pe},each:function(ae,pe){pe!==void 0&&(ae=A(ae,pe));for(var Me in this.data)this.data.hasOwnProperty(Me)&&ae(this.data[Me],Me)},removeKey:function(ae){delete this.data[ae]}};function me(ae){return new se(ae)}function le(ae,pe){for(var Me=new ae.constructor(ae.length+pe.length),xe=0;xe<ae.length;xe++)Me[xe]=ae[xe];var Ke=ae.length;for(xe=0;xe<pe.length;xe++)Me[xe+Ke]=pe[xe];return Me}function ge(){}te.$override=p,te.clone=a,te.merge=t,te.mergeAll=h,te.extend=s,te.defaults=i,te.createCanvas=u,te.getContext=f,te.indexOf=o,te.inherits=c,te.mixin=E,te.isArrayLike=B,te.each=w,te.map=P,te.reduce=C,te.filter=b,te.find=l,te.bind=A,te.curry=g,te.isArray=T,te.isFunction=m,te.isString=y,te.isObject=U,te.isBuiltInObject=N,te.isTypedArray=S,te.isDom=H,te.eqNaN=F,te.retrieve=R,te.retrieve2=z,te.retrieve3=Q,te.slice=$,te.normalizeCssArray=ee,te.assert=fe,te.trim=Ae,te.setAsPrimitive=ie,te.isPrimitive=be,te.createHashMap=me,te.concatArray=le,te.noop=ge},biw7:function(Re,te,v){"use strict";var Z=v("q1tI"),K=v.n(Z),I=Z.createContext(null);te.a=I},c5Ni:function(Re,te,v){},cCSd:function(Re,te,v){Re.exports={flex_box_center:"flex_box_center___3Q6yG",flex_space_between:"flex_space_between___S_CUk",flex_box_vertical_center:"flex_box_vertical_center___2Gdbl",flex_box_center_end:"flex_box_center_end___1xrL5",flex_box_column:"flex_box_column___16e2L",wrp:"wrp___3ZwBI",drawer:"drawer___1PTh9",menu:"menu___DFNiI",actived:"actived___1sNU9",actived2:"actived2___2BWt2",listItem:"listItem___1ylrh",info:"info___F7JZE",title:"title___2kNmP",titleLeft:"titleLeft___1h-DH",titleRight:"titleRight___hT8FM",search:"search___1KEgc",description:"description___31f06",menuCourse:"menuCourse___3RVET"}},cRFk:function(Re,te,v){Re.exports=v.p+"static/RepositoryNoneData.828085a8.png"},chpo:function(Re,te,v){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.default=void 0;var Z=1,K=function(){return"".concat(Z++)};te.default=K},crp1:function(Re,te,v){"use strict";v.d(te,"b",function(){return je}),v.d(te,"a",function(){return Ht});var Z={},K=function(_e,Ie,Ye,yt,Xt){var sn=Z[Ie]||(Z[Ie]=URL.createObjectURL(new Blob([_e],{type:"text/javascript"}))),re=new Worker(sn);return re.onerror=function(W){return Xt(W.error,null)},re.onmessage=function(W){return Xt(null,W.data)},re.postMessage(Ye,yt),re},I=Uint8Array,k=Uint16Array,_=Uint32Array,O=new I([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),M=new I([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),x=new I([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),n=function(_e,Ie){for(var Ye=new k(31),yt=0;yt<31;++yt)Ye[yt]=Ie+=1<<_e[yt-1];for(var Xt=new _(Ye[30]),yt=1;yt<30;++yt)for(var sn=Ye[yt];sn<Ye[yt+1];++sn)Xt[sn]=sn-Ye[yt]<<5|yt;return[Ye,Xt]},p=n(O,2),a=p[0],t=p[1];a[28]=258,t[258]=28;for(var h=n(M,0),s=h[0],i=h[1],u=new k(32768),d=0;d<32768;++d){var f=(d&43690)>>>1|(d&21845)<<1;f=(f&52428)>>>2|(f&13107)<<2,f=(f&61680)>>>4|(f&3855)<<4,u[d]=((f&65280)>>>8|(f&255)<<8)>>>1}for(var o=function(_e,Ie,Ye){for(var yt=_e.length,Xt=0,sn=new k(Ie);Xt<yt;++Xt)++sn[_e[Xt]-1];var re=new k(Ie);for(Xt=0;Xt<Ie;++Xt)re[Xt]=re[Xt-1]+sn[Xt-1]<<1;var W;if(Ye){W=new k(1<<Ie);var V=15-Ie;for(Xt=0;Xt<yt;++Xt)if(_e[Xt])for(var ne=Xt<<4|_e[Xt],ve=Ie-_e[Xt],oe=re[_e[Xt]-1]++<<ve,et=oe|(1<<ve)-1;oe<=et;++oe)W[u[oe]>>>V]=ne}else for(W=new k(yt),Xt=0;Xt<yt;++Xt)W[Xt]=u[re[_e[Xt]-1]++]>>>15-_e[Xt];return W},c=new I(288),d=0;d<144;++d)c[d]=8;for(var d=144;d<256;++d)c[d]=9;for(var d=256;d<280;++d)c[d]=7;for(var d=280;d<288;++d)c[d]=8;for(var E=new I(32),d=0;d<32;++d)E[d]=5;var B=o(c,9,0),w=o(c,9,1),P=o(E,5,0),C=o(E,5,1),b=function(_e){for(var Ie=_e[0],Ye=1;Ye<_e.length;++Ye)_e[Ye]>Ie&&(Ie=_e[Ye]);return Ie},l=function(_e,Ie,Ye){var yt=Ie/8>>0;return(_e[yt]|_e[yt+1]<<8)>>>(Ie&7)&Ye},A=function(_e,Ie){var Ye=Ie/8>>0;return(_e[Ye]|_e[Ye+1]<<8|_e[Ye+2]<<16)>>>(Ie&7)},g=function(_e){return(_e/8>>0)+(_e&7&&1)},T=function(_e,Ie,Ye){(Ie==null||Ie<0)&&(Ie=0),(Ye==null||Ye>_e.length)&&(Ye=_e.length);var yt=new(_e instanceof k?k:_e instanceof _?_:I)(Ye-Ie);return yt.set(_e.subarray(Ie,Ye)),yt},m=function(_e,Ie,Ye){var yt=_e.length,Xt=!Ie||Ye,sn=!Ye||Ye.i;Ye||(Ye={}),Ie||(Ie=new I(yt*3));var re=function(Jr){var ri=Ie.length;if(Jr>ri){var pa=new I(Math.max(ri*2,Jr));pa.set(Ie),Ie=pa}},W=Ye.f||0,V=Ye.p||0,ne=Ye.b||0,ve=Ye.l,oe=Ye.d,et=Ye.m,Qt=Ye.n,dn=yt*8;do{if(!ve){Ye.f=W=l(_e,V,1);var Cn=l(_e,V+1,3);if(V+=3,Cn)if(Cn==1)ve=w,oe=C,et=9,Qt=5;else if(Cn==2){var lr=l(_e,V,31)+257,Rr=l(_e,V+10,15)+4,qr=lr+l(_e,V+5,31)+1;V+=14;for(var zr=new I(qr),Ca=new I(19),Dr=0;Dr<Rr;++Dr)Ca[x[Dr]]=l(_e,V+Dr*3,7);V+=Rr*3;var ya=b(Ca),ka=(1<<ya)-1;if(!sn&&V+qr*(ya+7)>dn)break;for(var fi=o(Ca,ya,1),Dr=0;Dr<qr;){var Ka=fi[l(_e,V,ka)];V+=Ka&15;var Jt=Ka>>>4;if(Jt<16)zr[Dr++]=Jt;else{var qa=0,Si=0;for(Jt==16?(Si=3+l(_e,V,3),V+=2,qa=zr[Dr-1]):Jt==17?(Si=3+l(_e,V,7),V+=3):Jt==18&&(Si=11+l(_e,V,127),V+=7);Si--;)zr[Dr++]=qa}}var pi=zr.subarray(0,lr),ui=zr.subarray(lr);et=b(pi),Qt=b(ui),ve=o(pi,et,1),oe=o(ui,Qt,1)}else throw"invalid block type";else{var Jt=g(V)+4,Vn=_e[Jt-4]|_e[Jt-3]<<8,Xn=Jt+Vn;if(Xn>yt){if(sn)throw"unexpected EOF";break}Xt&&re(ne+Vn),Ie.set(_e.subarray(Jt,Xn),ne),Ye.b=ne+=Vn,Ye.p=V=Xn*8;continue}if(V>dn)throw"unexpected EOF"}Xt&&re(ne+131072);for(var mi=(1<<et)-1,_i=(1<<Qt)-1,ai=et+Qt+18;sn||V+ai<dn;){var qa=ve[A(_e,V)&mi],Hi=qa>>>4;if(V+=qa&15,V>dn)throw"unexpected EOF";if(!qa)throw"invalid length/literal";if(Hi<256)Ie[ne++]=Hi;else if(Hi==256){ve=null;break}else{var Yi=Hi-254;if(Hi>264){var Dr=Hi-257,$r=O[Dr];Yi=l(_e,V,(1<<$r)-1)+a[Dr],V+=$r}var ua=oe[A(_e,V)&_i],Pr=ua>>>4;if(!ua)throw"invalid distance";V+=ua&15;var ui=s[Pr];if(Pr>3){var $r=M[Pr];ui+=A(_e,V)&(1<<$r)-1,V+=$r}if(V>dn)throw"unexpected EOF";Xt&&re(ne+131072);for(var ca=ne+Yi;ne<ca;ne+=4)Ie[ne]=Ie[ne-ui],Ie[ne+1]=Ie[ne+1-ui],Ie[ne+2]=Ie[ne+2-ui],Ie[ne+3]=Ie[ne+3-ui];ne=ca}}Ye.l=ve,Ye.p=V,Ye.b=ne,ve&&(W=1,Ye.m=et,Ye.d=oe,Ye.n=Qt)}while(!W);return ne==Ie.length?Ie:T(Ie,0,ne)},y=function(_e,Ie,Ye){Ye<<=Ie&7;var yt=Ie/8>>0;_e[yt]|=Ye,_e[yt+1]|=Ye>>>8},U=function(_e,Ie,Ye){Ye<<=Ie&7;var yt=Ie/8>>0;_e[yt]|=Ye,_e[yt+1]|=Ye>>>8,_e[yt+2]|=Ye>>>16},N=function(_e,Ie){for(var Ye=[],yt=0;yt<_e.length;++yt)_e[yt]&&Ye.push({s:yt,f:_e[yt]});var Xt=Ye.length,sn=Ye.slice();if(!Xt)return[new I(0),0];if(Xt==1){var re=new I(Ye[0].s+1);return re[Ye[0].s]=1,[re,1]}Ye.sort(function(qr,zr){return qr.f-zr.f}),Ye.push({s:-1,f:25001});var W=Ye[0],V=Ye[1],ne=0,ve=1,oe=2;for(Ye[0]={s:-1,f:W.f+V.f,l:W,r:V};ve!=Xt-1;)W=Ye[Ye[ne].f<Ye[oe].f?ne++:oe++],V=Ye[ne!=ve&&Ye[ne].f<Ye[oe].f?ne++:oe++],Ye[ve++]={s:-1,f:W.f+V.f,l:W,r:V};for(var et=sn[0].s,yt=1;yt<Xt;++yt)sn[yt].s>et&&(et=sn[yt].s);var Qt=new k(et+1),dn=S(Ye[ve-1],Qt,0);if(dn>Ie){var yt=0,Cn=0,Jt=dn-Ie,Vn=1<<Jt;for(sn.sort(function(zr,Ca){return Qt[Ca.s]-Qt[zr.s]||zr.f-Ca.f});yt<Xt;++yt){var Xn=sn[yt].s;if(Qt[Xn]>Ie)Cn+=Vn-(1<<dn-Qt[Xn]),Qt[Xn]=Ie;else break}for(Cn>>>=Jt;Cn>0;){var lr=sn[yt].s;Qt[lr]<Ie?Cn-=1<<Ie-Qt[lr]++-1:++yt}for(;yt>=0&&Cn;--yt){var Rr=sn[yt].s;Qt[Rr]==Ie&&(--Qt[Rr],++Cn)}dn=Ie}return[new I(Qt),dn]},S=function(_e,Ie,Ye){return _e.s==-1?Math.max(S(_e.l,Ie,Ye+1),S(_e.r,Ie,Ye+1)):Ie[_e.s]=Ye},H=function(_e){for(var Ie=_e.length;Ie&&!_e[--Ie];);for(var Ye=new k(++Ie),yt=0,Xt=_e[0],sn=1,re=function(V){Ye[yt++]=V},W=1;W<=Ie;++W)if(_e[W]==Xt&&W!=Ie)++sn;else{if(!Xt&&sn>2){for(;sn>138;sn-=138)re(32754);sn>2&&(re(sn>10?sn-11<<5|28690:sn-3<<5|12305),sn=0)}else if(sn>3){for(re(Xt),--sn;sn>6;sn-=6)re(8304);sn>2&&(re(sn-3<<5|8208),sn=0)}for(;sn--;)re(Xt);sn=1,Xt=_e[W]}return[Ye.subarray(0,yt),Ie]},F=function(_e,Ie){for(var Ye=0,yt=0;yt<Ie.length;++yt)Ye+=_e[yt]*Ie[yt];return Ye},R=function(_e,Ie,Ye){var yt=Ye.length,Xt=g(Ie+2);_e[Xt]=yt&255,_e[Xt+1]=yt>>>8,_e[Xt+2]=_e[Xt]^255,_e[Xt+3]=_e[Xt+1]^255;for(var sn=0;sn<yt;++sn)_e[Xt+sn+4]=Ye[sn];return(Xt+4+yt)*8},z=function(_e,Ie,Ye,yt,Xt,sn,re,W,V,ne,ve){y(Ie,ve++,Ye),++Xt[256];for(var oe=N(Xt,15),et=oe[0],Qt=oe[1],dn=N(sn,15),Cn=dn[0],Jt=dn[1],Vn=H(et),Xn=Vn[0],lr=Vn[1],Rr=H(Cn),qr=Rr[0],zr=Rr[1],Ca=new k(19),Dr=0;Dr<Xn.length;++Dr)Ca[Xn[Dr]&31]++;for(var Dr=0;Dr<qr.length;++Dr)Ca[qr[Dr]&31]++;for(var ya=N(Ca,7),ka=ya[0],fi=ya[1],Ka=19;Ka>4&&!ka[x[Ka-1]];--Ka);var qa=ne+5<<3,Si=F(Xt,c)+F(sn,E)+re,pi=F(Xt,et)+F(sn,Cn)+re+14+3*Ka+F(Ca,ka)+(2*Ca[16]+3*Ca[17]+7*Ca[18]);if(qa<=Si&&qa<=pi)return R(Ie,ve,_e.subarray(V,V+ne));var ui,mi,_i,ai;if(y(Ie,ve,1+(pi<Si)),ve+=2,pi<Si){ui=o(et,Qt,0),mi=et,_i=o(Cn,Jt,0),ai=Cn;var Hi=o(ka,fi,0);y(Ie,ve,lr-257),y(Ie,ve+5,zr-1),y(Ie,ve+10,Ka-4),ve+=14;for(var Dr=0;Dr<Ka;++Dr)y(Ie,ve+3*Dr,ka[x[Dr]]);ve+=3*Ka;for(var Yi=[Xn,qr],$r=0;$r<2;++$r)for(var ua=Yi[$r],Dr=0;Dr<ua.length;++Dr){var Pr=ua[Dr]&31;y(Ie,ve,Hi[Pr]),ve+=ka[Pr],Pr>15&&(y(Ie,ve,ua[Dr]>>>5&127),ve+=ua[Dr]>>>12)}}else ui=B,mi=c,_i=P,ai=E;for(var Dr=0;Dr<W;++Dr)if(yt[Dr]>255){var Pr=yt[Dr]>>>18&31;U(Ie,ve,ui[Pr+257]),ve+=mi[Pr+257],Pr>7&&(y(Ie,ve,yt[Dr]>>>23&31),ve+=O[Pr]);var ca=yt[Dr]&31;U(Ie,ve,_i[ca]),ve+=ai[ca],ca>3&&(U(Ie,ve,yt[Dr]>>>5&8191),ve+=M[ca])}else U(Ie,ve,ui[yt[Dr]]),ve+=mi[yt[Dr]];return U(Ie,ve,ui[256]),ve+mi[256]},Q=new _([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),$=new I(0),ee=function(_e,Ie,Ye,yt,Xt,sn){var re=_e.length,W=new I(yt+re+5*(1+Math.floor(re/7e3))+Xt),V=W.subarray(yt,W.length-Xt),ne=0;if(!Ie||re<8)for(var ve=0;ve<=re;ve+=65535){var oe=ve+65535;oe<re?ne=R(V,ne,_e.subarray(ve,oe)):(V[ve]=sn,ne=R(V,ne,_e.subarray(ve,re)))}else{for(var et=Q[Ie-1],Qt=et>>>13,dn=et&8191,Cn=(1<<Ye)-1,Jt=new k(32768),Vn=new k(Cn+1),Xn=Math.ceil(Ye/3),lr=2*Xn,Rr=function(ii){return(_e[ii]^_e[ii+1]<<Xn^_e[ii+2]<<lr)&Cn},qr=new _(25e3),zr=new k(288),Ca=new k(32),Dr=0,ya=0,ve=0,ka=0,fi=0,Ka=0;ve<re;++ve){var qa=Rr(ve),Si=ve&32767,pi=Vn[qa];if(Jt[Si]=pi,Vn[qa]=Si,fi<=ve){var ui=re-ve;if((Dr>7e3||ka>24576)&&ui>423){ne=z(_e,V,0,qr,zr,Ca,ya,ka,Ka,ve-Ka,ne),ka=Dr=ya=0,Ka=ve;for(var mi=0;mi<286;++mi)zr[mi]=0;for(var mi=0;mi<30;++mi)Ca[mi]=0}var _i=2,ai=0,Hi=dn,Yi=Si-pi&32767;if(ui>2&&qa==Rr(ve-Yi))for(var $r=Math.min(Qt,ui)-1,ua=Math.min(32767,ve),Pr=Math.min(258,ui);Yi<=ua&&--Hi&&Si!=pi;){if(_e[ve+_i]==_e[ve+_i-Yi]){for(var ca=0;ca<Pr&&_e[ve+ca]==_e[ve+ca-Yi];++ca);if(ca>_i){if(_i=ca,ai=Yi,ca>$r)break;for(var Jr=Math.min(Yi,ca-2),ri=0,mi=0;mi<Jr;++mi){var pa=ve-Yi+mi+32768&32767,mo=Jt[pa],Di=pa-mo+32768&32767;Di>ri&&(ri=Di,pi=pa)}}}Si=pi,pi=Jt[Si],Yi+=Si-pi+32768&32767}if(ai){qr[ka++]=268435456|t[_i]<<18|i[ai];var ci=t[_i]&31,Wo=i[ai]&31;ya+=O[ci]+M[Wo],++zr[257+ci],++Ca[Wo],fi=ve+_i,++Dr}else qr[ka++]=_e[ve],++zr[_e[ve]]}}ne=z(_e,V,sn,qr,zr,Ca,ya,ka,Ka,ve-Ka,ne),sn||(ne=R(V,ne,$))}return T(W,0,yt+g(ne)+Xt)},fe=function(){for(var _e=new _(256),Ie=0;Ie<256;++Ie){for(var Ye=Ie,yt=9;--yt;)Ye=(Ye&1&&3988292384)^Ye>>>1;_e[Ie]=Ye}return _e}(),Ae=function(){var _e=4294967295;return{p:function(Ie){for(var Ye=_e,yt=0;yt<Ie.length;++yt)Ye=fe[Ye&255^Ie[yt]]^Ye>>>8;_e=Ye},d:function(){return _e^4294967295}}},ce=function(){var _e=1,Ie=0;return{p:function(Ye){for(var yt=_e,Xt=Ie,sn=Ye.length,re=0;re!=sn;){for(var W=Math.min(re+5552,sn);re<W;++re)yt+=Ye[re],Xt+=yt;yt%=65521,Xt%=65521}_e=yt,Ie=Xt},d:function(){return(_e>>>8<<16|(Ie&255)<<8|Ie>>>8)+((_e&255)<<23)*2}}},ie=function(_e,Ie,Ye,yt,Xt){return ee(_e,Ie.level==null?6:Ie.level,Ie.mem==null?Math.ceil(Math.max(8,Math.min(13,Math.log(_e.length)))*1.5):12+Ie.mem,Ye,yt,!Xt)},be=function(_e,Ie){var Ye={};for(var yt in _e)Ye[yt]=_e[yt];for(var yt in Ie)Ye[yt]=Ie[yt];return Ye},se=function(_e,Ie,Ye){for(var yt=_e(),Xt=_e.toString(),sn=Xt.slice(Xt.indexOf("[")+1,Xt.lastIndexOf("]")).replace(/ /g,"").split(","),re=0;re<yt.length;++re){var W=yt[re],V=sn[re];if(typeof W=="function"){Ie+=";"+V+"=";var ne=W.toString();if(W.prototype)if(ne.indexOf("[native code]")!=-1){var ve=ne.indexOf(" ",8)+1;Ie+=ne.slice(ve,ne.indexOf("(",ve))}else{Ie+=ne;for(var oe in W.prototype)Ie+=";"+V+".prototype."+oe+"="+W.prototype[oe].toString()}else Ie+=ne}else Ye[V]=W}return[Ie,Ye]},me=[],le=function(_e){var Ie=[];for(var Ye in _e)(_e[Ye]instanceof I||_e[Ye]instanceof k||_e[Ye]instanceof _)&&Ie.push((_e[Ye]=new _e[Ye].constructor(_e[Ye])).buffer);return Ie},ge=function(_e,Ie,Ye,yt){var Xt;if(!me[Ye]){for(var sn="",re={},W=_e.length-1,V=0;V<W;++V)Xt=se(_e[V],sn,re),sn=Xt[0],re=Xt[1];me[Ye]=se(_e[W],sn,re)}var ne=be({},me[Ye][1]);return K(me[Ye][0]+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+Ie.toString()+"}",Ye,ne,le(ne),yt)},ae=function(){return[I,k,_,O,M,x,a,s,w,C,u,o,b,l,A,g,T,m,We,he,Se]},pe=function(){return[I,k,_,O,M,x,t,i,B,c,P,E,u,Q,$,o,y,U,N,S,H,F,R,z,g,T,ee,ie,He,he]},Me=function(){return[Ut,Ve,ht,Ae,fe]},xe=function(){return[zt,ze]},Ke=function(){return[Et,ht,ce]},tt=function(){return[Ot]},he=function(_e){return postMessage(_e,[_e.buffer])},Se=function(_e){return _e&&_e.size&&new I(_e.size)},Ue=function(_e,Ie,Ye,yt,Xt,sn){var re=ge(Ye,yt,Xt,function(W,V){re.terminate(),sn(W,V)});return Ie.consume||(_e=new I(_e)),re.postMessage([_e,Ie],[_e.buffer]),function(){re.terminate()}},Ne=function(_e){return _e.ondata=function(Ie,Ye){return postMessage([Ie,Ye],[Ie.buffer])},function(Ie){return _e.push(Ie.data[0],Ie.data[1])}},ct=function(_e,Ie,Ye,yt,Xt){var sn,re=ge(_e,yt,Xt,function(W,V){W?(re.terminate(),Ie.ondata.call(Ie,W)):(V[1]&&re.terminate(),Ie.ondata.call(Ie,W,V[0],V[1]))});re.postMessage(Ye),Ie.push=function(W,V){if(sn)throw"stream finished";if(!Ie.ondata)throw"no stream handler";re.postMessage([W,sn=V],[W.buffer])},Ie.terminate=function(){re.terminate()}},mt=function(_e,Ie){return _e[Ie]|_e[Ie+1]<<8},Rt=function(_e,Ie){return(_e[Ie]|_e[Ie+1]<<8|_e[Ie+2]<<16)+(_e[Ie+3]<<23)*2},ht=function(_e,Ie,Ye){for(;Ye;++Ie)_e[Ie]=Ye,Ye>>>=8},Ut=function(_e,Ie){var Ye=Ie.filename;if(_e[0]=31,_e[1]=139,_e[2]=8,_e[8]=Ie.level<2?4:Ie.level==9?2:0,_e[9]=3,Ie.mtime!=0&&ht(_e,4,Math.floor(new Date(Ie.mtime||Date.now())/1e3)),Ye){_e[3]=8;for(var yt=0;yt<=Ye.length;++yt)_e[yt+10]=Ye.charCodeAt(yt)}},zt=function(_e){if(_e[0]!=31||_e[1]!=139||_e[2]!=8)throw"invalid gzip data";var Ie=_e[3],Ye=10;Ie&4&&(Ye+=_e[10]|(_e[11]<<8)+2);for(var yt=(Ie>>3&1)+(Ie>>4&1);yt>0;yt-=!_e[Ye++]);return Ye+(Ie&2)},ze=function(_e){var Ie=_e.length;return(_e[Ie-4]|_e[Ie-3]<<8|_e[Ie-2]<<16)+2*(_e[Ie-1]<<23)},Ve=function(_e){return 10+(_e.filename&&_e.filename.length+1||0)},Et=function(_e,Ie){var Ye=Ie.level,yt=Ye==0?0:Ye<6?1:Ye==9?3:2;_e[0]=120,_e[1]=yt<<6|(yt?32-2*yt:1)},Ot=function(_e){if((_e[0]&15)!=8||_e[0]>>>4>7||(_e[0]<<8|_e[1])%31)throw"invalid zlib data";if(_e[1]&32)throw"invalid zlib data: preset dictionaries not supported"};function ut(_e,Ie){return!Ie&&typeof _e=="function"&&(Ie=_e,_e={}),this.ondata=Ie,_e}var vt=function(){function _e(Ie,Ye){!Ye&&typeof Ie=="function"&&(Ye=Ie,Ie={}),this.ondata=Ye,this.o=Ie||{}}return _e.prototype.p=function(Ie,Ye){this.ondata(ie(Ie,this.o,0,0,!Ye),Ye)},_e.prototype.push=function(Ie,Ye){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";this.d=Ye,this.p(Ie,Ye||!1)},_e}(),Ze=function(){function _e(Ie,Ye){ct([pe,function(){return[Ne,vt]}],this,ut.call(this,Ie,Ye),function(yt){var Xt=new vt(yt.data);onmessage=Ne(Xt)},6)}return _e}();function ke(_e,Ie,Ye){if(Ye||(Ye=Ie,Ie={}),typeof Ye!="function")throw"no callback";return Ue(_e,Ie,[pe],function(yt){return he(He(yt.data[0],yt.data[1]))},0,Ye)}function He(_e,Ie){return Ie===void 0&&(Ie={}),ie(_e,Ie,0,0)}var we=function(){function _e(Ie){this.s={},this.p=new I(0),this.ondata=Ie}return _e.prototype.e=function(Ie){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";var Ye=this.p.length,yt=new I(Ye+Ie.length);yt.set(this.p),yt.set(Ie,Ye),this.p=yt},_e.prototype.c=function(Ie){this.d=this.s.i=Ie||!1;var Ye=this.s.b,yt=m(this.p,this.o,this.s);this.ondata(T(yt,Ye,this.s.b),this.d),this.o=T(yt,this.s.b-32768),this.s.b=this.o.length,this.p=T(this.p,this.s.p/8>>0),this.s.p&=7},_e.prototype.push=function(Ie,Ye){this.e(Ie),this.c(Ye)},_e}(),Le=function(){function _e(Ie){this.ondata=Ie,ct([ae,function(){return[Ne,we]}],this,0,function(){var Ye=new we;onmessage=Ne(Ye)},7)}return _e}();function Pe(_e,Ie,Ye){if(Ye||(Ye=Ie,Ie={}),typeof Ye!="function")throw"no callback";return Ue(_e,Ie,[ae],function(yt){return he(We(yt.data[0],Se(yt.data[1])))},1,Ye)}function We(_e,Ie){return m(_e,Ie)}var Xe=function(){function _e(Ie,Ye){this.c=Ae(),this.l=0,this.v=1,vt.call(this,Ie,Ye)}return _e.prototype.push=function(Ie,Ye){vt.prototype.push.call(this,Ie,Ye)},_e.prototype.p=function(Ie,Ye){this.c.p(Ie),this.l+=Ie.length;var yt=ie(Ie,this.o,this.v&&Ve(this.o),Ye&&8,!Ye);this.v&&(Ut(yt,this.o),this.v=0),Ye&&(ht(yt,yt.length-8,this.c.d()),ht(yt,yt.length-4,this.l)),this.ondata(yt,Ye)},_e}(),gt=function(){function _e(Ie,Ye){ct([pe,Me,function(){return[Ne,vt,Xe]}],this,ut.call(this,Ie,Ye),function(yt){var Xt=new Xe(yt.data);onmessage=Ne(Xt)},8)}return _e}();function Lt(_e,Ie,Ye){if(Ye||(Ye=Ie,Ie={}),typeof Ye!="function")throw"no callback";return Ue(_e,Ie,[pe,Me,function(){return[en]}],function(yt){return he(en(yt.data[0],yt.data[1]))},2,Ye)}function en(_e,Ie){Ie===void 0&&(Ie={});var Ye=Ae(),yt=_e.length;Ye.p(_e);var Xt=ie(_e,Ie,Ve(Ie),8),sn=Xt.length;return Ut(Xt,Ie),ht(Xt,sn-8,Ye.d()),ht(Xt,sn-4,yt),Xt}var Zt=function(){function _e(Ie){this.v=1,we.call(this,Ie)}return _e.prototype.push=function(Ie,Ye){if(we.prototype.e.call(this,Ie),this.v){var yt=zt(this.p);if(yt>=this.p.length&&!Ye)return;this.p=this.p.subarray(yt),this.v=0}if(Ye){if(this.p.length<8)throw"invalid gzip stream";this.p=this.p.subarray(0,-8)}we.prototype.c.call(this,Ye)},_e}(),xt=function(){function _e(Ie){this.ondata=Ie,ct([ae,xe,function(){return[Ne,we,Zt]}],this,0,function(){var Ye=new Zt;onmessage=Ne(Ye)},9)}return _e}();function Ct(_e,Ie,Ye){if(Ye||(Ye=Ie,Ie={}),typeof Ye!="function")throw"no callback";return Ue(_e,Ie,[ae,xe,function(){return[pt]}],function(yt){return he(pt(yt.data[0]))},3,Ye)}function pt(_e,Ie){return m(_e.subarray(zt(_e),-8),Ie||new I(ze(_e)))}var Je=function(){function _e(Ie,Ye){this.c=ce(),this.v=1,vt.call(this,Ie,Ye)}return _e.prototype.push=function(Ie,Ye){vt.prototype.push.call(this,Ie,Ye)},_e.prototype.p=function(Ie,Ye){this.c.p(Ie);var yt=ie(Ie,this.o,this.v&&2,Ye&&4,!Ye);this.v&&(Et(yt,this.o),this.v=0),Ye&&ht(yt,yt.length-4,this.c.d()),this.ondata(yt,Ye)},_e}(),Qe=function(){function _e(Ie,Ye){ct([pe,Ke,function(){return[Ne,vt,Je]}],this,ut.call(this,Ie,Ye),function(yt){var Xt=new Je(yt.data);onmessage=Ne(Xt)},10)}return _e}();function Oe(_e,Ie,Ye){if(Ye||(Ye=Ie,Ie={}),typeof Ye!="function")throw"no callback";return Ue(_e,Ie,[pe,Ke,function(){return[je]}],function(yt){return he(je(yt.data[0],yt.data[1]))},4,Ye)}function je(_e,Ie){Ie===void 0&&(Ie={});var Ye=ce();Ye.p(_e);var yt=ie(_e,Ie,2,4);return Et(yt,Ie),ht(yt,yt.length-4,Ye.d()),yt}var St=function(){function _e(Ie){this.v=1,we.call(this,Ie)}return _e.prototype.push=function(Ie,Ye){if(we.prototype.e.call(this,Ie),this.v){if(this.p.length<2&&!Ye)return;this.p=this.p.subarray(2),this.v=0}if(Ye){if(this.p.length<4)throw"invalid zlib stream";this.p=this.p.subarray(0,-4)}we.prototype.c.call(this,Ye)},_e}(),bt=function(){function _e(Ie){this.ondata=Ie,ct([ae,tt,function(){return[Ne,we,St]}],this,0,function(){var Ye=new St;onmessage=Ne(Ye)},11)}return _e}();function Dt(_e,Ie,Ye){if(Ye||(Ye=Ie,Ie={}),typeof Ye!="function")throw"no callback";return Ue(_e,Ie,[ae,tt,function(){return[Ht]}],function(yt){return he(Ht(yt.data[0],Se(yt.data[1])))},5,Ye)}function Ht(_e,Ie){return m((Ot(_e),_e.subarray(2,-4)),Ie)}var _t=function(){function _e(Ie){this.G=Zt,this.I=we,this.Z=St,this.ondata=Ie}return _e.prototype.push=function(Ie,Ye){if(!this.ondata)throw"no stream handler";if(this.s)this.s.push(Ie,Ye);else{if(this.p&&this.p.length){var yt=new I(this.p.length+Ie.length);yt.set(this.p),yt.set(Ie,this.p.length)}else this.p=Ie;if(this.p.length>2){var Xt=this,sn=function(){Xt.ondata.apply(Xt,arguments)};this.s=this.p[0]==31&&this.p[1]==139&&this.p[2]==8?new this.G(sn):(this.p[0]&15)!=8||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(sn):new this.Z(sn),this.s.push(this.p,Ye),this.p=null}}},_e}(),Gt=function(){function _e(Ie){this.G=xt,this.I=Le,this.Z=bt,this.ondata=Ie}return _e.prototype.push=function(Ie,Ye){_t.prototype.push.call(this,Ie,Ye)},_e}();function kt(_e,Ie,Ye){if(Ye||(Ye=Ie,Ie={}),typeof Ye!="function")throw"no callback";return _e[0]==31&&_e[1]==139&&_e[2]==8?Ct(_e,Ie,Ye):(_e[0]&15)!=8||_e[0]>>4>7||(_e[0]<<8|_e[1])%31?Pe(_e,Ie,Ye):Dt(_e,Ie,Ye)}function fn(_e,Ie){return _e[0]==31&&_e[1]==139&&_e[2]==8?pt(_e,Ie):(_e[0]&15)!=8||_e[0]>>4>7||(_e[0]<<8|_e[1])%31?We(_e,Ie):Ht(_e,Ie)}var mn=function(_e,Ie,Ye,yt){for(var Xt in _e){var sn=_e[Xt],re=Ie+Xt;sn instanceof I?Ye[re]=[sn,yt]:Array.isArray(sn)?Ye[re]=[sn[0],be(yt,sn[1])]:mn(sn,re+"/",Ye,yt)}};function Tr(_e,Ie){var Ye=_e.length;if(!Ie&&typeof TextEncoder!="undefined")return new TextEncoder().encode(_e);for(var yt=new I(_e.length+(_e.length>>>1)),Xt=0,sn=function(ne){yt[Xt++]=ne},re=0;re<Ye;++re){if(Xt+5>yt.length){var W=new I(Xt+8+(Ye-re<<1));W.set(yt),yt=W}var V=_e.charCodeAt(re);V<128||Ie?sn(V):V<2048?(sn(192|V>>>6),sn(128|V&63)):V>55295&&V<57344?(V=65536+(V&1023<<10)|_e.charCodeAt(++re)&1023,sn(240|V>>>18),sn(128|V>>>12&63),sn(128|V>>>6&63),sn(128|V&63)):(sn(224|V>>>12),sn(128|V>>>6&63),sn(128|V&63))}return T(yt,0,Xt)}function Mr(_e,Ie){var Ye="";if(!Ie&&typeof TextDecoder!="undefined")return new TextDecoder().decode(_e);for(var yt=0;yt<_e.length;){var Xt=_e[yt++];Xt<128||Ie?Ye+=String.fromCharCode(Xt):Xt<224?Ye+=String.fromCharCode((Xt&31)<<6|_e[yt++]&63):Xt<240?Ye+=String.fromCharCode((Xt&15)<<12|(_e[yt++]&63)<<6|_e[yt++]&63):(Xt=((Xt&15)<<18|(_e[yt++]&63)<<12|(_e[yt++]&63)<<6|_e[yt++]&63)-65536,Ye+=String.fromCharCode(55296|Xt>>10,56320|Xt&1023))}return Ye}var kr=function(_e,Ie){return Ie+30+mt(_e,Ie+26)+mt(_e,Ie+28)},Un=function(_e,Ie,Ye){var yt=mt(_e,Ie+28),Xt=Mr(_e.subarray(Ie+46,Ie+46+yt),!(mt(_e,Ie+8)&2048)),sn=Ie+46+yt,re=Ye?Ra(_e,sn):[Rt(_e,Ie+20),Rt(_e,Ie+24),Rt(_e,Ie+42)],W=re[0],V=re[1],ne=re[2];return[mt(_e,Ie+10),W,V,Xt,sn+mt(_e,Ie+30)+mt(_e,Ie+32),ne]},Ra=function(_e,Ie){for(;mt(_e,Ie)!=1;Ie+=4+mt(_e,Ie+2));return[Rt(_e,Ie+12),Rt(_e,Ie+4),Rt(_e,Ie+20)]},Xr=function(_e,Ie,Ye,yt,Xt,sn,re,W,V,ne){var ve=sn.length,oe=yt.length;ht(_e,Ie,V!=null?33639248:67324752),Ie+=4,V!=null&&(_e[Ie]=20,Ie+=2),_e[Ie]=20,Ie+=2,_e[Ie++]=ne==8&&(W.level==1?6:W.level<6?4:W.level==9?2:0),_e[Ie++]=re&&8,_e[Ie]=ne,Ie+=2;var et=new Date(W.mtime||Date.now()),Qt=et.getFullYear()-1980;if(Qt<0||Qt>119)throw"date not in range 1980-2099";ht(_e,Ie,(Qt<<24)*2|et.getMonth()+1<<21|et.getDate()<<16|et.getHours()<<11|et.getMinutes()<<5|et.getSeconds()>>>1),Ie+=4,ht(_e,Ie,Ye),ht(_e,Ie+4,oe),ht(_e,Ie+8,Xt),ht(_e,Ie+12,ve),Ie+=16,V!=null&&(ht(_e,Ie+=10,V),Ie+=4),_e.set(sn,Ie),Ie+=ve,V==null&&_e.set(yt,Ie)},aa=function(_e,Ie,Ye,yt,Xt){ht(_e,Ie,101010256),ht(_e,Ie+8,Ye),ht(_e,Ie+10,Ye),ht(_e,Ie+12,yt),ht(_e,Ie+16,Xt)};function Kr(_e,Ie,Ye){if(Ye||(Ye=Ie,Ie={}),typeof Ye!="function")throw"no callback";var yt={};mn(_e,"",yt,Ie);var Xt=Object.keys(yt),sn=Xt.length,re=0,W=0,V=sn,ne=new Array(sn),ve=[],oe=function(){for(var Cn=0;Cn<ve.length;++Cn)ve[Cn]()},et=function(){var Cn=new I(W+22),Jt=re,Vn=W-re;W=0;for(var Xn=0;Xn<V;++Xn){var lr=ne[Xn];try{Xr(Cn,W,lr.c,lr.d,lr.m,lr.n,lr.u,lr.p,null,lr.t),Xr(Cn,re,lr.c,lr.d,lr.m,lr.n,lr.u,lr.p,W,lr.t),re+=46+lr.n.length,W+=30+lr.n.length+lr.d.length}catch(Rr){return Ye(Rr,null)}}aa(Cn,re,ne.length,Vn,Jt),Ye(null,Cn)};sn||et();for(var Qt=function(Cn){var Jt=Xt[Cn],Vn=yt[Jt],Xn=Vn[0],lr=Vn[1],Rr=Ae(),qr=Xn.length;Rr.p(Xn);var zr=Tr(Jt),Ca=zr.length,Dr=lr.level==0?0:8,ya=function(ka,fi){if(ka)oe(),Ye(ka,null);else{var Ka=fi.length;ne[Cn]={t:Dr,d:fi,m:qr,c:Rr.d(),u:Jt.length!=Ka,n:zr,p:lr},re+=30+Ca+Ka,W+=76+2*Ca+Ka,--sn||et()}};if(zr.length>65535&&ya("filename too long",null),!Dr)ya(null,Xn);else if(qr<16e4)try{ya(null,He(Xn,lr))}catch(ka){ya(ka,null)}else ve.push(ke(Xn,lr,ya))},dn=0;dn<V;++dn)Qt(dn);return oe}function _a(_e,Ie){Ie===void 0&&(Ie={});var Ye={},yt=[];mn(_e,"",Ye,Ie);var Xt=0,sn=0;for(var re in Ye){var W=Ye[re],V=W[0],ne=W[1],ve=ne.level==0?0:8,oe=Tr(re),et=oe.length;if(oe.length>65535)throw"filename too long";var Qt=ve?He(V,ne):V,dn=Qt.length,Cn=Ae();Cn.p(V),yt.push({t:ve,d:Qt,m:V.length,c:Cn.d(),u:re.length!=et,n:oe,o:Xt,p:ne}),Xt+=30+et+dn,sn+=76+2*et+dn}for(var Jt=new I(sn+22),Vn=Xt,Xn=sn-Xt,lr=0;lr<yt.length;++lr){var Rr=yt[lr];Xr(Jt,Rr.o,Rr.c,Rr.d,Rr.m,Rr.n,Rr.u,Rr.p,null,Rr.t),Xr(Jt,Xt,Rr.c,Rr.d,Rr.m,Rr.n,Rr.u,Rr.p,Rr.o,Rr.t),Xt+=46+Rr.n.length}return aa(Jt,Xt,yt.length,Xn,Vn),Jt}function di(_e,Ie){if(typeof Ie!="function")throw"no callback";for(var Ye=[],yt=function(){for(var et=0;et<Ye.length;++et)Ye[et]()},Xt={},sn=_e.length-22;Rt(_e,sn)!=101010256;--sn)if(!sn||_e.length-sn>65558){Ie("invalid zip file",null);return}var re=mt(_e,sn+8);re||Ie(null,{});var W=re,V=Rt(_e,sn+16),ne=V==4294967295;if(ne){if(sn=Rt(_e,sn-12),Rt(_e,sn)!=101075792)throw"invalid zip file";W=re=Rt(_e,sn+32),V=Rt(_e,sn+48)}for(var ve=function(et){var Qt=Un(_e,V,ne),dn=Qt[0],Cn=Qt[1],Jt=Qt[2],Vn=Qt[3],Xn=Qt[4],lr=Qt[5],Rr=kr(_e,lr);V=Xn;var qr=function(Ca,Dr){Ca?(yt(),Ie(Ca,null)):(Xt[Vn]=Dr,--re||Ie(null,Xt))};if(!dn)qr(null,T(_e,Rr,Rr+Cn));else if(dn==8){var zr=_e.subarray(Rr,Rr+Cn);if(Cn<32e4)try{qr(null,We(zr,new I(Jt)))}catch(Ca){qr(Ca,null)}else Ye.push(Pe(zr,{size:Jt},qr))}else qr("unknown compression type "+dn,null)},oe=0;oe<W;++oe)ve(oe);return yt}function Ei(_e){for(var Ie={},Ye=_e.length-22;Rt(_e,Ye)!=101010256;--Ye)if(!Ye||_e.length-Ye>65558)throw"invalid zip file";var yt=mt(_e,Ye+8);if(!yt)return{};var Xt=Rt(_e,Ye+16),sn=Xt==4294967295;if(sn){if(Ye=Rt(_e,Ye-12),Rt(_e,Ye)!=101075792)throw"invalid zip file";yt=Rt(_e,Ye+32),Xt=Rt(_e,Ye+48)}for(var re=0;re<yt;++re){var W=Un(_e,Xt,sn),V=W[0],ne=W[1],ve=W[2],oe=W[3],et=W[4],Qt=W[5],dn=kr(_e,Qt);if(Xt=et,!V)Ie[oe]=T(_e,dn,dn+ne);else if(V==8)Ie[oe]=We(_e.subarray(dn,dn+ne),new I(ve));else throw"unknown compression type "+V}return Ie}},csWT:function(Re,te,v){Re.exports=v.p+"static/choose.4ad1045f.svg"},dMvE:function(Re,te){var v={linear:function(K){return K},quadraticIn:function(K){return K*K},quadraticOut:function(K){return K*(2-K)},quadraticInOut:function(K){return(K*=2)<1?.5*K*K:-.5*(--K*(K-2)-1)},cubicIn:function(K){return K*K*K},cubicOut:function(K){return--K*K*K+1},cubicInOut:function(K){return(K*=2)<1?.5*K*K*K:.5*((K-=2)*K*K+2)},quarticIn:function(K){return K*K*K*K},quarticOut:function(K){return 1- --K*K*K*K},quarticInOut:function(K){return(K*=2)<1?.5*K*K*K*K:-.5*((K-=2)*K*K*K-2)},quinticIn:function(K){return K*K*K*K*K},quinticOut:function(K){return--K*K*K*K*K+1},quinticInOut:function(K){return(K*=2)<1?.5*K*K*K*K*K:.5*((K-=2)*K*K*K*K+2)},sinusoidalIn:function(K){return 1-Math.cos(K*Math.PI/2)},sinusoidalOut:function(K){return Math.sin(K*Math.PI/2)},sinusoidalInOut:function(K){return .5*(1-Math.cos(Math.PI*K))},exponentialIn:function(K){return K===0?0:Math.pow(1024,K-1)},exponentialOut:function(K){return K===1?1:1-Math.pow(2,-10*K)},exponentialInOut:function(K){return K===0?0:K===1?1:(K*=2)<1?.5*Math.pow(1024,K-1):.5*(-Math.pow(2,-10*(K-1))+2)},circularIn:function(K){return 1-Math.sqrt(1-K*K)},circularOut:function(K){return Math.sqrt(1- --K*K)},circularInOut:function(K){return(K*=2)<1?-.5*(Math.sqrt(1-K*K)-1):.5*(Math.sqrt(1-(K-=2)*K)+1)},elasticIn:function(K){var I,k=.1,_=.4;return K===0?0:K===1?1:(!k||k<1?(k=1,I=_/4):I=_*Math.asin(1/k)/(2*Math.PI),-(k*Math.pow(2,10*(K-=1))*Math.sin((K-I)*(2*Math.PI)/_)))},elasticOut:function(K){var I,k=.1,_=.4;return K===0?0:K===1?1:(!k||k<1?(k=1,I=_/4):I=_*Math.asin(1/k)/(2*Math.PI),k*Math.pow(2,-10*K)*Math.sin((K-I)*(2*Math.PI)/_)+1)},elasticInOut:function(K){var I,k=.1,_=.4;return K===0?0:K===1?1:(!k||k<1?(k=1,I=_/4):I=_*Math.asin(1/k)/(2*Math.PI),(K*=2)<1?-.5*(k*Math.pow(2,10*(K-=1))*Math.sin((K-I)*(2*Math.PI)/_)):k*Math.pow(2,-10*(K-=1))*Math.sin((K-I)*(2*Math.PI)/_)*.5+1)},backIn:function(K){var I=1.70158;return K*K*((I+1)*K-I)},backOut:function(K){var I=1.70158;return--K*K*((I+1)*K+I)+1},backInOut:function(K){var I=1.70158*1.525;return(K*=2)<1?.5*(K*K*((I+1)*K-I)):.5*((K-=2)*K*((I+1)*K+I)+2)},bounceIn:function(K){return 1-v.bounceOut(1-K)},bounceOut:function(K){return K<1/2.75?7.5625*K*K:K<2/2.75?7.5625*(K-=1.5/2.75)*K+.75:K<2.5/2.75?7.5625*(K-=2.25/2.75)*K+.9375:7.5625*(K-=2.625/2.75)*K+.984375},bounceInOut:function(K){return K<.5?v.bounceIn(K*2)*.5:v.bounceOut(K*2-1)*.5+.5}},Z=v;Re.exports=Z},dejd:function(Re,te,v){},djh8:function(Re,te,v){Re.exports=v.p+"static/qrCode.d852fdfc.png"},dmUQ:function(Re,te,v){"use strict";var Z=v("Ff2n"),K=v("rePB"),I=v("1OyB"),k=v("vuIU"),_=v("Ji7U"),O=v("md7G"),M=v("foSv"),x=v("q1tI"),n=v.n(x),p=v("TSYQ"),a=v.n(p),t=v("4IlW");function h(A,g){var T=Object.keys(A);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(A);g&&(m=m.filter(function(y){return Object.getOwnPropertyDescriptor(A,y).enumerable})),T.push.apply(T,m)}return T}function s(A){for(var g=1;g<arguments.length;g++){var T=arguments[g]!=null?arguments[g]:{};g%2?h(Object(T),!0).forEach(function(m){Object(K.a)(A,m,T[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(T)):h(Object(T)).forEach(function(m){Object.defineProperty(A,m,Object.getOwnPropertyDescriptor(T,m))})}return A}function i(A){var g=u();return function(){var m=Object(M.a)(A),y;if(g){var U=Object(M.a)(this).constructor;y=Reflect.construct(m,arguments,U)}else y=m.apply(this,arguments);return Object(O.a)(this,y)}}function u(){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(A){return!1}}function d(){}function f(A){A.preventDefault()}var o=function(g){return g.replace(/[^\w.-]+/g,"")},c=200,E=600,B=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,w=function(g){return g!=null},P=function(g,T){return T===g||typeof T=="number"&&typeof g=="number"&&isNaN(T)&&isNaN(g)},C=function(A){Object(_.a)(T,A);var g=i(T);function T(m){var y;Object(I.a)(this,T),y=g.call(this,m),y.onKeyDown=function(S){var H=y.props,F=H.onKeyDown,R=H.onPressEnter;if(S.keyCode===t.a.UP){var z=y.getRatio(S);y.up(S,z,null),y.stop()}else if(S.keyCode===t.a.DOWN){var Q=y.getRatio(S);y.down(S,Q,null),y.stop()}else S.keyCode===t.a.ENTER&&R&&R(S);if(y.recordCursorPosition(),y.lastKeyCode=S.keyCode,F){for(var $=arguments.length,ee=new Array($>1?$-1:0),fe=1;fe<$;fe++)ee[fe-1]=arguments[fe];F.apply(void 0,[S].concat(ee))}},y.onKeyUp=function(S){var H=y.props.onKeyUp;if(y.stop(),y.recordCursorPosition(),H){for(var F=arguments.length,R=new Array(F>1?F-1:0),z=1;z<F;z++)R[z-1]=arguments[z];H.apply(void 0,[S].concat(R))}},y.onChange=function(S){var H=y.props.onChange;y.state.focused&&(y.inputting=!0),y.rawInput=y.props.parser(y.getValueFromEvent(S)),y.setState({inputValue:y.rawInput}),H(y.toNumber(y.rawInput))},y.onMouseUp=function(){var S=y.props.onMouseUp;y.recordCursorPosition(),S&&S.apply(void 0,arguments)},y.onFocus=function(){var S;y.setState({focused:!0}),(S=y.props).onFocus.apply(S,arguments)},y.onBlur=function(){var S=y.props.onBlur;y.inputting=!1,y.setState({focused:!1});var H=y.getCurrentValidValue(y.state.inputValue),F=y.setValue(H,d);if(S){var R=y.input.value,z=y.getInputDisplayValue({focus:!1,value:F});y.input.value=z&&Number(z),S.apply(void 0,arguments),y.input.value=R}},y.getRatio=function(S){var H=1;return S.metaKey||S.ctrlKey?H=.1:S.shiftKey&&(H=10),H},y.getFullNum=function(S){return isNaN(S)?S:/e/i.test(String(S))?Number(S).toFixed(18).replace(/\.?0+$/,""):S},y.getPrecision=function(S){if(w(y.props.precision))return y.props.precision;var H=String(S);if(H.indexOf("e-")>=0)return parseInt(H.slice(H.indexOf("e-")+2),10);var F=0;return H.indexOf(".")>=0&&(F=H.length-H.indexOf(".")-1),F},y.getInputDisplayValue=function(S){var H=S||y.state,F=H.focused,R=H.inputValue,z=H.value,Q;F?Q=R:Q=y.toPrecisionAsStep(z),Q==null&&(Q="");var $=y.formatWrapper(Q);return w(y.props.decimalSeparator)&&($=$.toString().replace(".",y.props.decimalSeparator)),$},y.recordCursorPosition=function(){try{y.cursorStart=y.input.selectionStart,y.cursorEnd=y.input.selectionEnd,y.currentValue=y.input.value,y.cursorBefore=y.input.value.substring(0,y.cursorStart),y.cursorAfter=y.input.value.substring(y.cursorEnd)}catch(S){}},y.restoreByAfter=function(S){if(S===void 0)return!1;var H=y.input.value,F=H.lastIndexOf(S);if(F===-1)return!1;var R=y.cursorBefore.length;return y.lastKeyCode===t.a.DELETE&&y.cursorBefore.charAt(R-1)===S[0]?(y.fixCaret(R,R),!0):F+S.length===H.length?(y.fixCaret(F,F),!0):!1},y.partRestoreByAfter=function(S){return S===void 0?!1:Array.prototype.some.call(S,function(H,F){var R=S.substring(F);return y.restoreByAfter(R)})},y.isNotCompleteNumber=function(S){return isNaN(S)||S===""||S===null||S&&S.toString().indexOf(".")===S.toString().length-1},y.stop=function(){y.autoStepTimer&&clearTimeout(y.autoStepTimer)},y.down=function(S,H,F){y.pressingUpOrDown=!0,y.step("down",S,H,F)},y.up=function(S,H,F){y.pressingUpOrDown=!0,y.step("up",S,H,F)},y.saveInput=function(S){y.input=S};var U=m.value;U===void 0&&(U=m.defaultValue),y.state={focused:m.autoFocus};var N=y.getValidValue(y.toNumber(U));return y.state=s(s({},y.state),{},{inputValue:y.toPrecisionAsStep(N),value:N}),y}return Object(k.a)(T,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(y){var U=this.props,N=U.value,S=U.onChange,H=U.max,F=U.min,R=this.state.focused;if(y){if(!P(y.value,N)||!P(y.max,H)||!P(y.min,F)){var z=R?N:this.getValidValue(N),Q;this.pressingUpOrDown?Q=z:this.inputting?Q=this.rawInput:Q=this.toPrecisionAsStep(z),this.setState({value:z,inputValue:Q})}var $="value"in this.props?N:this.state.value;"max"in this.props&&y.max!==H&&typeof $=="number"&&$>H&&S&&S(H),"min"in this.props&&y.min!==F&&typeof $=="number"&&$<F&&S&&S(F)}try{if(this.cursorStart!==void 0&&this.state.focused){if(!this.partRestoreByAfter(this.cursorAfter)&&this.state.value!==this.props.value){var ee=this.cursorStart+1;this.cursorAfter?this.lastKeyCode===t.a.BACKSPACE?ee=this.cursorStart-1:this.lastKeyCode===t.a.DELETE&&(ee=this.cursorStart):ee=this.input.value.length,this.fixCaret(ee,ee)}else if(this.currentValue===this.input.value)switch(this.lastKeyCode){case t.a.BACKSPACE:this.fixCaret(this.cursorStart-1,this.cursorStart-1);break;case t.a.DELETE:this.fixCaret(this.cursorStart+1,this.cursorStart+1);break;default:}}}catch(fe){}if(this.lastKeyCode=null,!this.pressingUpOrDown)return;this.props.focusOnUpDown&&this.state.focused&&(document.activeElement!==this.input&&this.focus())}},{key:"componentWillUnmount",value:function(){this.stop()}},{key:"getCurrentValidValue",value:function(y){var U=y;return U===""?U="":this.isNotCompleteNumber(parseFloat(U))?U=this.state.value:U=this.getValidValue(U),this.toNumber(U)}},{key:"getValueFromEvent",value:function(y){var U=y.target.value.trim().replace(/。/g,".");return w(this.props.decimalSeparator)&&(U=U.replace(this.props.decimalSeparator,".")),U}},{key:"getValidValue",value:function(y){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.props.min,N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,S=parseFloat(y);return isNaN(S)?y:(S<U&&(S=U),S>N&&(S=N),S)}},{key:"setValue",value:function(y,U){var N=this.props.precision,S=this.isNotCompleteNumber(parseFloat(y))?null:parseFloat(y),H=this.state.value,F=H===void 0?null:H,R=this.state.inputValue,z=R===void 0?null:R,Q=typeof S=="number"?S.toFixed(N):"".concat(S),$=S!==F||Q!=="".concat(z);return"value"in this.props?(z=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:z},U)):this.setState({value:S,inputValue:this.toPrecisionAsStep(y)},U),$&&this.props.onChange(S),S}},{key:"getMaxPrecision",value:function(y){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,N=this.props,S=N.precision,H=N.step;if(w(S))return S;var F=this.getPrecision(U),R=this.getPrecision(H),z=this.getPrecision(y);return y?Math.max(z,F+R):F+R}},{key:"getPrecisionFactor",value:function(y){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,N=this.getMaxPrecision(y,U);return Math.pow(10,N)}},{key:"focus",value:function(){this.input.focus(),this.recordCursorPosition()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"formatWrapper",value:function(y){return this.props.formatter?this.props.formatter(y):y}},{key:"toPrecisionAsStep",value:function(y){if(this.isNotCompleteNumber(y)||y==="")return y;var U=Math.abs(this.getMaxPrecision(y));return isNaN(U)?y.toString():Number(y).toFixed(U)}},{key:"toNumber",value:function(y){var U=this.props.precision,N=this.state.focused,S=y&&y.length>16&&N;return this.isNotCompleteNumber(y)||S?y:w(U)?Math.round(y*Math.pow(10,U))/Math.pow(10,U):Number(y)}},{key:"upStep",value:function(y,U){var N=this.props.step,S=this.getPrecisionFactor(y,U),H=Math.abs(this.getMaxPrecision(y,U)),F=((S*y+S*N*U)/S).toFixed(H);return this.toNumber(F)}},{key:"downStep",value:function(y,U){var N=this.props.step,S=this.getPrecisionFactor(y,U),H=Math.abs(this.getMaxPrecision(y,U)),F=((S*y-S*N*U)/S).toFixed(H);return this.toNumber(F)}},{key:"step",value:function(y,U){var N=this,S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,H=arguments.length>3?arguments[3]:void 0;this.stop(),U&&(U.persist(),U.preventDefault());var F=this.props;if(F.disabled)return;var R=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(R))return;var z=this["".concat(y,"Step")](R,S),Q=z>F.max||z<F.min;if(z>F.max?z=F.max:z<F.min&&(z=F.min),this.setValue(z,null),this.setState({focused:!0},function(){N.pressingUpOrDown=!1}),Q)return;this.autoStepTimer=setTimeout(function(){N[y](U,S,!0)},H?c:E)}},{key:"fixCaret",value:function(y,U){if(y===void 0||U===void 0||!this.input||!this.input.value)return;try{var N=this.input.selectionStart,S=this.input.selectionEnd;(y!==N||U!==S)&&this.input.setSelectionRange(y,U)}catch(H){}}},{key:"render",value:function(){var y,U=this.props,N=U.prefixCls,S=U.disabled,H=U.readOnly,F=U.useTouch,R=U.autoComplete,z=U.upHandler,Q=U.downHandler,$=U.className,ee=U.max,fe=U.min,Ae=U.style,ce=U.title,ie=U.onMouseEnter,be=U.onMouseLeave,se=U.onMouseOver,me=U.onMouseOut,le=U.required,ge=U.onClick,ae=U.tabIndex,pe=U.type,Me=U.placeholder,xe=U.id,Ke=U.inputMode,tt=U.pattern,he=U.step,Se=U.maxLength,Ue=U.autoFocus,Ne=U.name,ct=U.onPaste,mt=U.onInput,Rt=Object(Z.a)(U,["prefixCls","disabled","readOnly","useTouch","autoComplete","upHandler","downHandler","className","max","min","style","title","onMouseEnter","onMouseLeave","onMouseOver","onMouseOut","required","onClick","tabIndex","type","placeholder","id","inputMode","pattern","step","maxLength","autoFocus","name","onPaste","onInput"]),ht=this.state,Ut=ht.value,zt=ht.focused,ze=a()(N,(y={},Object(K.a)(y,$,!!$),Object(K.a)(y,"".concat(N,"-disabled"),S),Object(K.a)(y,"".concat(N,"-focused"),zt),y)),Ve={};Object.keys(Rt).forEach(function(We){(We.substr(0,5)==="data-"||We.substr(0,5)==="aria-"||We==="role")&&(Ve[We]=Rt[We])});var Et=!H&&!S,Ot=this.getInputDisplayValue(null),ut=(Ut||Ut===0)&&(isNaN(Ut)||Number(Ut)>=ee),vt=(Ut||Ut===0)&&(isNaN(Ut)||Number(Ut)<=fe),Ze=ut||S||H,ke=vt||S||H,He=a()("".concat(N,"-handler"),"".concat(N,"-handler-up"),Object(K.a)({},"".concat(N,"-handler-up-disabled"),Ze)),we=a()("".concat(N,"-handler"),"".concat(N,"-handler-down"),Object(K.a)({},"".concat(N,"-handler-down-disabled"),ke)),Le=F?{onTouchStart:Ze?d:this.up,onTouchEnd:this.stop}:{onMouseDown:Ze?d:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},Pe=F?{onTouchStart:ke?d:this.down,onTouchEnd:this.stop}:{onMouseDown:ke?d:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return n.a.createElement("div",{className:ze,style:Ae,title:ce,onMouseEnter:ie,onMouseLeave:be,onMouseOver:se,onMouseOut:me,onFocus:function(){return null},onBlur:function(){return null}},n.a.createElement("div",{className:"".concat(N,"-handler-wrap")},n.a.createElement("span",Object.assign({unselectable:"on"},Le,{role:"button","aria-label":"Increase Value","aria-disabled":Ze,className:He}),z||n.a.createElement("span",{unselectable:"on",className:"".concat(N,"-handler-up-inner"),onClick:f})),n.a.createElement("span",Object.assign({unselectable:"on"},Pe,{role:"button","aria-label":"Decrease Value","aria-disabled":ke,className:we}),Q||n.a.createElement("span",{unselectable:"on",className:"".concat(N,"-handler-down-inner"),onClick:f}))),n.a.createElement("div",{className:"".concat(N,"-input-wrap")},n.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":fe,"aria-valuemax":ee,"aria-valuenow":Ut,required:le,type:pe,placeholder:Me,onPaste:ct,onClick:ge,onMouseUp:this.onMouseUp,className:"".concat(N,"-input"),tabIndex:ae,autoComplete:R,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:Et?this.onKeyDown:d,onKeyUp:Et?this.onKeyUp:d,autoFocus:Ue,maxLength:Se,readOnly:H,disabled:S,max:ee,min:fe,step:he,name:Ne,title:ce,id:xe,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(Ot),pattern:tt,inputMode:Ke,onInput:mt},Ve))))}}]),T}(n.a.Component);C.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:B,min:-B,step:1,style:{},onChange:d,onKeyDown:d,onPressEnter:d,onFocus:d,onBlur:d,parser:o,required:!1,autoComplete:"off"};var b=C,l=te.a=b},dqUG:function(Re,te,v){var Z=v("Gev7"),K=v("bYtY"),I=v("6GrX"),k=v("pzxd"),_=v("gut8"),O=_.ContextCachedBy,M=function(n){Z.call(this,n)};M.prototype={constructor:M,type:"text",brush:function(n,p){var a=this.style;this.__dirty&&k.normalizeTextStyle(a,!0),a.fill=a.stroke=a.shadowBlur=a.shadowColor=a.shadowOffsetX=a.shadowOffsetY=null;var t=a.text;if(t!=null&&(t+=""),!k.needDrawText(t,a)){n.__attrCachedBy=O.NONE;return}this.setTransform(n),k.renderText(this,n,t,a,null,p),this.restoreTransform(n)},getBoundingRect:function(){var n=this.style;if(this.__dirty&&k.normalizeTextStyle(n,!0),!this._rect){var p=n.text;p!=null?p+="":p="";var a=I.getBoundingRect(n.text+"",n.font,n.textAlign,n.textVerticalAlign,n.textPadding,n.textLineHeight,n.rich);if(a.x+=n.x||0,a.y+=n.y||0,k.getStroke(n.textStroke,n.textStrokeWidth)){var t=n.textStrokeWidth;a.x-=t/2,a.y-=t/2,a.width+=t,a.height+=t}this._rect=a}return this._rect}},K.inherits(M,Z);var x=M;Re.exports=x},dwhp:function(Re,te,v){},eqIj:function(Re,te,v){Re.exports=v.p+"static/ys.bff91b04.svg"},fAei:function(Re,te,v){"use strict";v.d(te,"a",function(){return c.a});var Z=v("rePB"),K=v("VTBJ"),I=v("KQm4"),k=v("1OyB"),_=v("vuIU"),O=v("Ji7U"),M=v("LK+K"),x=v("q1tI"),n=v("4IlW"),p=v("Kwbf"),a=v("TSYQ"),t=v.n(a),h=v("sboe"),s=v("OZM5"),i=v("815F"),u=v("ODXe"),d=v("Ff2n"),f=v("+nKL"),o=v("8XRh"),c=v("WaYH"),E=function(fe,Ae){var ce=fe.className,ie=fe.style,be=fe.motion,se=fe.motionNodes,me=fe.motionType,le=fe.onMotionStart,ge=fe.onMotionEnd,ae=fe.active,pe=fe.treeNodeRequiredProps,Me=Object(d.a)(fe,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),xe=x.useState(!0),Ke=Object(u.a)(xe,2),tt=Ke[0],he=Ke[1],Se=x.useContext(h.a),Ue=Se.prefixCls,Ne=x.useRef(!1),ct=function(){Ne.current||ge(),Ne.current=!0};return Object(x.useEffect)(function(){se&&me==="hide"&&tt&&he(!1)},[se]),Object(x.useEffect)(function(){return se&&le(),function(){se&&ct()}},[]),se?x.createElement(o.default,Object.assign({ref:Ae,visible:tt},be,{motionAppear:me==="show",onAppearEnd:ct,onLeaveEnd:ct}),function(mt,Rt){var ht=mt.className,Ut=mt.style;return x.createElement("div",{ref:Rt,className:t()("".concat(Ue,"-treenode-motion"),ht),style:Ut},se.map(function(zt){var ze=zt.data,Ve=ze.key,Et=Object(d.a)(ze,["key"]),Ot=zt.isStart,ut=zt.isEnd;delete Et.children;var vt=Object(i.f)(Ve,pe);return x.createElement(c.a,Object.assign({},Et,vt,{active:ae,data:zt.data,key:Ve,isStart:Ot,isEnd:ut}))}))}):x.createElement(c.a,Object.assign({domRef:Ae,className:ce,style:ie},Me,{active:ae}))};E.displayName="MotionTreeNode";var B=x.forwardRef(E),w=B;function P(){var ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Ae=ee.length,ce=fe.length;if(Math.abs(Ae-ce)!==1)return{add:!1,key:null};function ie(be,se){var me=new Map;be.forEach(function(ge){me.set(ge,!0)});var le=se.filter(function(ge){return!me.has(ge)});return le.length===1?le[0]:null}return Ae<ce?{add:!0,key:ie(ee,fe)}:{add:!1,key:ie(fe,ee)}}function C(ee,fe,Ae){var ce=ee.findIndex(function(me){var le=me.data;return le.key===Ae}),ie=ee[ce+1],be=fe.findIndex(function(me){var le=me.data;return le.key===Ae});if(ie){var se=fe.findIndex(function(me){var le=me.data;return le.key===ie.data.key});return fe.slice(be+1,se)}return fe.slice(be+1)}var b={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},l=function(){},A="RC_TREE_MOTION_".concat(Math.random()),g={key:A},T={key:A,level:0,index:0,pos:"0",node:g},m={parent:null,children:[],pos:T.pos,data:g,isStart:[],isEnd:[]};function y(ee,fe,Ae,ce){return fe===!1||!Ae?ee:ee.slice(0,Math.ceil(Ae/ce)+1)}function U(ee){var fe=ee.data.key,Ae=ee.pos;return Object(i.e)(fe,Ae)}function N(ee){for(var fe=String(ee.data.key),Ae=ee;Ae.parent;)Ae=Ae.parent,fe="".concat(Ae.data.key," > ").concat(fe);return fe}var S=function(fe,Ae){var ce=fe.prefixCls,ie=fe.data,be=fe.selectable,se=fe.checkable,me=fe.expandedKeys,le=fe.selectedKeys,ge=fe.checkedKeys,ae=fe.loadedKeys,pe=fe.loadingKeys,Me=fe.halfCheckedKeys,xe=fe.keyEntities,Ke=fe.disabled,tt=fe.dragging,he=fe.dragOverNodeKey,Se=fe.dropPosition,Ue=fe.motion,Ne=fe.height,ct=fe.itemHeight,mt=fe.virtual,Rt=fe.focusable,ht=fe.activeItem,Ut=fe.focused,zt=fe.tabIndex,ze=fe.onKeyDown,Ve=fe.onFocus,Et=fe.onBlur,Ot=fe.onActiveChange,ut=fe.onListChangeStart,vt=fe.onListChangeEnd,Ze=Object(d.a)(fe,["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"]),ke=x.useRef(null);x.useImperativeHandle(Ae,function(){return{scrollTo:function(fn){ke.current.scrollTo(fn)}}});var He=x.useState(me),we=Object(u.a)(He,2),Le=we[0],Pe=we[1],We=x.useState(ie),Xe=Object(u.a)(We,2),gt=Xe[0],Lt=Xe[1],en=x.useState(ie),Zt=Object(u.a)(en,2),xt=Zt[0],Ct=Zt[1],pt=x.useState([]),Je=Object(u.a)(pt,2),Qe=Je[0],Oe=Je[1],je=x.useState(null),St=Object(u.a)(je,2),bt=St[0],Dt=St[1];function Ht(){Lt(ie),Ct(ie),Oe([]),Dt(null),vt()}x.useEffect(function(){Pe(me);var kt=P(Le,me);if(kt.key!==null)if(kt.add){var fn=gt.findIndex(function(Ra){var Xr=Ra.data.key;return Xr===kt.key}),mn=y(C(gt,ie,kt.key),mt,Ne,ct),Tr=gt.slice();Tr.splice(fn+1,0,m),Ct(Tr),Oe(mn),Dt("show")}else{var Mr=ie.findIndex(function(Ra){var Xr=Ra.data.key;return Xr===kt.key}),kr=y(C(ie,gt,kt.key),mt,Ne,ct),Un=ie.slice();Un.splice(Mr+1,0,m),Ct(Un),Oe(kr),Dt("hide")}else gt!==ie&&(Lt(ie),Ct(ie))},[me,ie]),x.useEffect(function(){tt||Ht()},[tt]);var _t=Ue?xt:ie,Gt={expandedKeys:me,selectedKeys:le,loadedKeys:ae,loadingKeys:pe,checkedKeys:ge,halfCheckedKeys:Me,dragOverNodeKey:he,dropPosition:Se,keyEntities:xe};return x.createElement(x.Fragment,null,Ut&&ht&&x.createElement("span",{style:b,"aria-live":"assertive"},N(ht)),x.createElement("div",{role:"tree"},x.createElement("input",{style:b,disabled:Rt===!1||Ke,tabIndex:Rt!==!1?zt:null,onKeyDown:ze,onFocus:Ve,onBlur:Et,value:"",onChange:l})),x.createElement(f.a,Object.assign({},Ze,{data:_t,itemKey:U,height:Ne,fullHeight:!1,virtual:mt,itemHeight:ct,prefixCls:"".concat(ce,"-list"),ref:ke}),function(kt){var fn=kt.pos,mn=kt.data,Tr=mn.key,Mr=Object(d.a)(mn,["key"]),kr=kt.isStart,Un=kt.isEnd,Ra=Object(i.e)(Tr,fn);delete Mr.children;var Xr=Object(i.f)(Ra,Gt);return x.createElement(w,Object.assign({},Mr,Xr,{active:ht&&Tr===ht.data.key,pos:fn,data:kt.data,isStart:kr,isEnd:Un,motion:Ue,motionNodes:Tr===A?Qe:null,motionType:bt,onMotionStart:ut,onMotionEnd:Ht,treeNodeRequiredProps:Gt,onMouseMove:function(){Ot(null)}}))}))},H=x.forwardRef(S);H.displayName="NodeList";var F=H,R=v("NvD2"),z=function(ee){Object(O.a)(Ae,ee);var fe=Object(M.a)(Ae);function Ae(){var ce;return Object(k.a)(this,Ae),ce=fe.apply(this,arguments),ce.destroyed=!1,ce.state={keyEntities:{},selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],dragging:!1,dragNodesKeys:[],dragOverNodeKey:null,dropPosition:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null},ce.listRef=x.createRef(),ce.onNodeDragStart=function(ie,be){var se=ce.state,me=se.expandedKeys,le=se.keyEntities,ge=ce.props.onDragStart,ae=be.props.eventKey;ce.dragNode=be;var pe=Object(s.b)(me,ae);ce.setState({dragging:!0,dragNodesKeys:Object(s.g)(ae,le)}),ce.setExpandedKeys(pe),ge&&ge({event:ie,node:Object(i.b)(be.props)})},ce.onNodeDragEnter=function(ie,be){var se=ce.state,me=se.expandedKeys,le=se.keyEntities,ge=se.dragNodesKeys,ae=ce.props.onDragEnter,pe=be.props,Me=pe.pos,xe=pe.eventKey;if(!ce.dragNode||ge.indexOf(xe)!==-1)return;var Ke=Object(s.c)(ie,be);if(ce.dragNode.props.eventKey===xe&&Ke===0){ce.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){ce.setState({dragOverNodeKey:xe,dropPosition:Ke}),ce.delayedDragEnterLogic||(ce.delayedDragEnterLogic={}),Object.keys(ce.delayedDragEnterLogic).forEach(function(tt){clearTimeout(ce.delayedDragEnterLogic[tt])}),ce.delayedDragEnterLogic[Me]=window.setTimeout(function(){if(!ce.state.dragging)return;var tt=Object(I.a)(me),he=le[xe];he&&(he.children||[]).length&&(tt=Object(s.a)(me,xe)),"expandedKeys"in ce.props||ce.setExpandedKeys(tt),ae&&ae({event:ie,node:Object(i.b)(be.props),expandedKeys:tt})},400)},0)},ce.onNodeDragOver=function(ie,be){var se=ce.state.dragNodesKeys,me=ce.props.onDragOver,le=be.props.eventKey;if(se.indexOf(le)!==-1)return;if(ce.dragNode&&le===ce.state.dragOverNodeKey){var ge=Object(s.c)(ie,be);if(ge===ce.state.dropPosition)return;ce.setState({dropPosition:ge})}me&&me({event:ie,node:Object(i.b)(be.props)})},ce.onNodeDragLeave=function(ie,be){var se=ce.props.onDragLeave;ce.setState({dragOverNodeKey:""}),se&&se({event:ie,node:Object(i.b)(be.props)})},ce.onNodeDragEnd=function(ie,be){var se=ce.props.onDragEnd;ce.setState({dragOverNodeKey:""}),ce.cleanDragState(),se&&se({event:ie,node:Object(i.b)(be.props)}),ce.dragNode=null},ce.onNodeDrop=function(ie,be){var se=ce.state,me=se.dragNodesKeys,le=me===void 0?[]:me,ge=se.dropPosition,ae=ce.props.onDrop,pe=be.props,Me=pe.eventKey,xe=pe.pos;if(ce.setState({dragOverNodeKey:""}),ce.cleanDragState(),le.indexOf(Me)!==-1){Object(p.a)(!1,"Can not drop to dragNode(include it's children node)");return}var Ke=Object(s.k)(xe),tt={event:ie,node:Object(i.b)(be.props),dragNode:ce.dragNode?Object(i.b)(ce.dragNode.props):null,dragNodesKeys:le.slice(),dropPosition:ge+Number(Ke[Ke.length-1]),dropToGap:!1};ge!==0&&(tt.dropToGap=!0),ae&&ae(tt),ce.dragNode=null},ce.cleanDragState=function(){var ie=ce.state.dragging;ie&&ce.setState({dragging:!1})},ce.onNodeClick=function(ie,be){var se=ce.props.onClick;se&&se(ie,be)},ce.onNodeDoubleClick=function(ie,be){var se=ce.props.onDoubleClick;se&&se(ie,be)},ce.onNodeSelect=function(ie,be){var se=ce.state.selectedKeys,me=ce.state.keyEntities,le=ce.props,ge=le.onSelect,ae=le.multiple,pe=be.selected,Me=be.key,xe=!pe;xe?ae?se=Object(s.a)(se,Me):se=[Me]:se=Object(s.b)(se,Me);var Ke=se.map(function(tt){var he=me[tt];return he?he.node:null}).filter(function(tt){return tt});ce.setUncontrolledState({selectedKeys:se}),ge&&ge(se,{event:"select",selected:xe,node:be,selectedNodes:Ke,nativeEvent:ie.nativeEvent})},ce.onNodeCheck=function(ie,be,se){var me=ce.state,le=me.keyEntities,ge=me.checkedKeys,ae=me.halfCheckedKeys,pe=ce.props,Me=pe.checkStrictly,xe=pe.onCheck,Ke=be.key,tt,he={event:"check",node:be,checked:se,nativeEvent:ie.nativeEvent};if(Me){var Se=se?Object(s.a)(ge,Ke):Object(s.b)(ge,Ke),Ue=Object(s.b)(ae,Ke);tt={checked:Se,halfChecked:Ue},he.checkedNodes=Se.map(function(Ut){return le[Ut]}).filter(function(Ut){return Ut}).map(function(Ut){return Ut.node}),ce.setUncontrolledState({checkedKeys:Se})}else{var Ne=Object(R.a)([].concat(Object(I.a)(ge),[Ke]),!0,le),ct=Ne.checkedKeys,mt=Ne.halfCheckedKeys;if(!se){var Rt=new Set(ct);Rt.delete(Ke);var ht=Object(R.a)(Array.from(Rt),{checked:!1,halfCheckedKeys:mt},le);ct=ht.checkedKeys,mt=ht.halfCheckedKeys}tt=ct,he.checkedNodes=[],he.checkedNodesPositions=[],he.halfCheckedKeys=mt,ct.forEach(function(Ut){var zt=le[Ut];if(!zt)return;var ze=zt.node,Ve=zt.pos;he.checkedNodes.push(ze),he.checkedNodesPositions.push({node:ze,pos:Ve})}),ce.setUncontrolledState({checkedKeys:ct},!1,{halfCheckedKeys:mt})}xe&&xe(tt,he)},ce.onNodeLoad=function(ie){return new Promise(function(be){ce.setState(function(se){var me=se.loadedKeys,le=me===void 0?[]:me,ge=se.loadingKeys,ae=ge===void 0?[]:ge,pe=ce.props,Me=pe.loadData,xe=pe.onLoad,Ke=ie.key;if(!Me||le.indexOf(Ke)!==-1||ae.indexOf(Ke)!==-1)return{};var tt=Me(ie);return tt.then(function(){var he=ce.state,Se=he.loadedKeys,Ue=he.loadingKeys,Ne=Object(s.a)(Se,Ke),ct=Object(s.b)(Ue,Ke);xe&&xe(Ne,{event:"load",node:ie}),ce.setUncontrolledState({loadedKeys:Ne}),ce.setState({loadingKeys:ct}),be()}),{loadingKeys:Object(s.a)(ae,Ke)}})})},ce.onNodeMouseEnter=function(ie,be){var se=ce.props.onMouseEnter;se&&se({event:ie,node:be})},ce.onNodeMouseLeave=function(ie,be){var se=ce.props.onMouseLeave;se&&se({event:ie,node:be})},ce.onNodeContextMenu=function(ie,be){var se=ce.props.onRightClick;se&&(ie.preventDefault(),se({event:ie,node:be}))},ce.onFocus=function(){var ie=ce.props.onFocus;ce.setState({focused:!0}),ie&&ie.apply(void 0,arguments)},ce.onBlur=function(){var ie=ce.props.onBlur;ce.setState({focused:!1}),ce.onActiveChange(null),ie&&ie.apply(void 0,arguments)},ce.getTreeNodeRequiredProps=function(){var ie=ce.state,be=ie.expandedKeys,se=ie.selectedKeys,me=ie.loadedKeys,le=ie.loadingKeys,ge=ie.checkedKeys,ae=ie.halfCheckedKeys,pe=ie.dragOverNodeKey,Me=ie.dropPosition,xe=ie.keyEntities;return{expandedKeys:be||[],selectedKeys:se||[],loadedKeys:me||[],loadingKeys:le||[],checkedKeys:ge||[],halfCheckedKeys:ae||[],dragOverNodeKey:pe,dropPosition:Me,keyEntities:xe}},ce.setExpandedKeys=function(ie){var be=ce.state.treeData,se=Object(i.d)(be,ie);ce.setUncontrolledState({expandedKeys:ie,flattenNodes:se},!0)},ce.onNodeExpand=function(ie,be){var se=ce.state.expandedKeys,me=ce.state.listChanging,le=ce.props,ge=le.onExpand,ae=le.loadData,pe=be.key,Me=be.expanded;if(me)return;var xe=se.indexOf(pe),Ke=!Me;if(Object(p.a)(Me&&xe!==-1||!Me&&xe===-1,"Expand state not sync with index check"),Ke?se=Object(s.a)(se,pe):se=Object(s.b)(se,pe),ce.setExpandedKeys(se),ge&&ge(se,{node:be,expanded:Ke,nativeEvent:ie.nativeEvent}),Ke&&ae){var tt=ce.onNodeLoad(be);tt&&tt.then(function(){var he=Object(i.d)(ce.state.treeData,se);ce.setUncontrolledState({flattenNodes:he})})}},ce.onListChangeStart=function(){ce.setUncontrolledState({listChanging:!0})},ce.onListChangeEnd=function(){setTimeout(function(){ce.setUncontrolledState({listChanging:!1})})},ce.onActiveChange=function(ie){var be=ce.state.activeKey,se=ce.props.onActiveChange;if(be===ie)return;ce.setState({activeKey:ie}),ie!==null&&ce.scrollTo({key:ie}),se&&se(ie)},ce.getActiveItem=function(){var ie=ce.state,be=ie.activeKey,se=ie.flattenNodes;return be===null?null:se.find(function(me){var le=me.data.key;return le===be})||null},ce.offsetActiveKey=function(ie){var be=ce.state,se=be.flattenNodes,me=be.activeKey,le=se.findIndex(function(pe){var Me=pe.data.key;return Me===me});le===-1&&ie<0&&(le=se.length),le=(le+ie+se.length)%se.length;var ge=se[le];if(ge){var ae=ge.data.key;ce.onActiveChange(ae)}else ce.onActiveChange(null)},ce.onKeyDown=function(ie){var be=ce.state,se=be.activeKey,me=be.expandedKeys,le=be.checkedKeys,ge=ce.props,ae=ge.onKeyDown,pe=ge.checkable,Me=ge.selectable;switch(ie.which){case n.a.UP:{ce.offsetActiveKey(-1),ie.preventDefault();break}case n.a.DOWN:{ce.offsetActiveKey(1),ie.preventDefault();break}}var xe=ce.getActiveItem();if(xe&&xe.data){var Ke=ce.getTreeNodeRequiredProps(),tt=xe.data.isLeaf===!1||!!(xe.data.children||[]).length,he=Object(i.b)(Object(K.a)(Object(K.a)({},Object(i.f)(se,Ke)),{},{data:xe.data,active:!0}));switch(ie.which){case n.a.LEFT:{tt&&me.includes(se)?ce.onNodeExpand({},he):xe.parent&&ce.onActiveChange(xe.parent.data.key),ie.preventDefault();break}case n.a.RIGHT:{tt&&!me.includes(se)?ce.onNodeExpand({},he):xe.children&&xe.children.length&&ce.onActiveChange(xe.children[0].data.key),ie.preventDefault();break}case n.a.ENTER:case n.a.SPACE:{pe&&!he.disabled&&he.checkable!==!1&&!he.disableCheckbox?ce.onNodeCheck({},he,!le.includes(se)):!pe&&Me&&!he.disabled&&he.selectable!==!1&&ce.onNodeSelect({},he);break}}}ae&&ae(ie)},ce.setUncontrolledState=function(ie){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(ce.destroyed)return;var me=!1,le=!0,ge={};Object.keys(ie).forEach(function(ae){if(ae in ce.props){le=!1;return}me=!0,ge[ae]=ie[ae]}),me&&(!be||le)&&ce.setState(Object(K.a)(Object(K.a)({},ge),se))},ce.scrollTo=function(ie){ce.listRef.current.scrollTo(ie)},ce}return Object(_.a)(Ae,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var ie,be=this.state,se=be.focused,me=be.flattenNodes,le=be.keyEntities,ge=be.dragging,ae=be.activeKey,pe=this.props,Me=pe.prefixCls,xe=pe.className,Ke=pe.style,tt=pe.showLine,he=pe.focusable,Se=pe.tabIndex,Ue=Se===void 0?0:Se,Ne=pe.selectable,ct=pe.showIcon,mt=pe.icon,Rt=pe.switcherIcon,ht=pe.draggable,Ut=pe.checkable,zt=pe.checkStrictly,ze=pe.disabled,Ve=pe.motion,Et=pe.loadData,Ot=pe.filterTreeNode,ut=pe.height,vt=pe.itemHeight,Ze=pe.virtual,ke=pe.titleRender,He=pe.onContextMenu,we=Object(s.f)(this.props);return x.createElement(h.a.Provider,{value:{prefixCls:Me,selectable:Ne,showIcon:ct,icon:mt,switcherIcon:Rt,draggable:ht,checkable:Ut,checkStrictly:zt,disabled:ze,keyEntities:le,loadData:Et,filterTreeNode:Ot,titleRender:ke,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},x.createElement("div",{className:t()(Me,xe,(ie={},Object(Z.a)(ie,"".concat(Me,"-show-line"),tt),Object(Z.a)(ie,"".concat(Me,"-focused"),se),Object(Z.a)(ie,"".concat(Me,"-active-focused"),ae!==null),ie))},x.createElement(F,Object.assign({ref:this.listRef,prefixCls:Me,style:Ke,data:me,disabled:ze,selectable:Ne,checkable:!!Ut,motion:Ve,dragging:ge,height:ut,itemHeight:vt,virtual:Ze,focusable:he,focused:se,tabIndex:Ue,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:He},this.getTreeNodeRequiredProps(),we))))}}],[{key:"getDerivedStateFromProps",value:function(ie,be){var se=be.prevProps,me={prevProps:ie};function le(mt){return!se&&mt in ie||se&&se[mt]!==ie[mt]}var ge;if(le("treeData")?ge=ie.treeData:le("children")&&(Object(p.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),ge=Object(i.c)(ie.children)),ge){me.treeData=ge;var ae=Object(i.a)(ge);me.keyEntities=Object(K.a)(Object(Z.a)({},A,T),ae.keyEntities)}var pe=me.keyEntities||be.keyEntities;if(le("expandedKeys")||se&&le("autoExpandParent"))me.expandedKeys=ie.autoExpandParent||!se&&ie.defaultExpandParent?Object(s.e)(ie.expandedKeys,pe):ie.expandedKeys;else if(!se&&ie.defaultExpandAll){var Me=Object(K.a)({},pe);delete Me[A],me.expandedKeys=Object.keys(Me).map(function(mt){return Me[mt].key})}else!se&&ie.defaultExpandedKeys&&(me.expandedKeys=ie.autoExpandParent||ie.defaultExpandParent?Object(s.e)(ie.defaultExpandedKeys,pe):ie.defaultExpandedKeys);if(me.expandedKeys||delete me.expandedKeys,ge||me.expandedKeys){var xe=Object(i.d)(ge||be.treeData,me.expandedKeys||be.expandedKeys);me.flattenNodes=xe}if(ie.selectable&&(le("selectedKeys")?me.selectedKeys=Object(s.d)(ie.selectedKeys,ie):!se&&ie.defaultSelectedKeys&&(me.selectedKeys=Object(s.d)(ie.defaultSelectedKeys,ie))),ie.checkable){var Ke;if(le("checkedKeys")?Ke=Object(s.j)(ie.checkedKeys)||{}:!se&&ie.defaultCheckedKeys?Ke=Object(s.j)(ie.defaultCheckedKeys)||{}:ge&&(Ke=Object(s.j)(ie.checkedKeys)||{checkedKeys:be.checkedKeys,halfCheckedKeys:be.halfCheckedKeys}),Ke){var tt=Ke,he=tt.checkedKeys,Se=he===void 0?[]:he,Ue=tt.halfCheckedKeys,Ne=Ue===void 0?[]:Ue;if(!ie.checkStrictly){var ct=Object(R.a)(Se,!0,pe);Se=ct.checkedKeys,Ne=ct.halfCheckedKeys}me.checkedKeys=Se,me.halfCheckedKeys=Ne}}return le("loadedKeys")&&(me.loadedKeys=ie.loadedKeys),me}}]),Ae}(x.Component);z.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[]},z.TreeNode=c.a;var Q=z,$=te.b=Q},fW2E:function(Re,te){var v={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1};function Z(K,I,k){return v.hasOwnProperty(I)?k*=K.dpr:k}Re.exports=Z},fXAG:function(Re,te,v){"use strict";v.d(te,"j",function(){return Z}),v.d(te,"i",function(){return K}),v.d(te,"k",function(){return I}),v.d(te,"eb",function(){return k}),v.d(te,"o",function(){return _}),v.d(te,"S",function(){return O}),v.d(te,"fb",function(){return M}),v.d(te,"u",function(){return x}),v.d(te,"v",function(){return n}),v.d(te,"cb",function(){return p}),v.d(te,"A",function(){return a}),v.d(te,"m",function(){return t}),v.d(te,"Y",function(){return h}),v.d(te,"s",function(){return s}),v.d(te,"N",function(){return i}),v.d(te,"bb",function(){return u}),v.d(te,"db",function(){return d}),v.d(te,"l",function(){return f}),v.d(te,"Q",function(){return o}),v.d(te,"ab",function(){return c}),v.d(te,"x",function(){return E}),v.d(te,"z",function(){return B}),v.d(te,"X",function(){return w}),v.d(te,"b",function(){return P}),v.d(te,"H",function(){return C}),v.d(te,"a",function(){return b}),v.d(te,"c",function(){return A}),v.d(te,"P",function(){return g}),v.d(te,"g",function(){return T}),v.d(te,"t",function(){return m}),v.d(te,"Z",function(){return y}),v.d(te,"y",function(){return U}),v.d(te,"B",function(){return N}),v.d(te,"f",function(){return S}),v.d(te,"e",function(){return H}),v.d(te,"W",function(){return F}),v.d(te,"h",function(){return R}),v.d(te,"d",function(){return z}),v.d(te,"R",function(){return $}),v.d(te,"n",function(){return ee}),v.d(te,"F",function(){return fe}),v.d(te,"I",function(){return Ae}),v.d(te,"D",function(){return ce}),v.d(te,"E",function(){return ie}),v.d(te,"C",function(){return be}),v.d(te,"G",function(){return se}),v.d(te,"U",function(){return me}),v.d(te,"q",function(){return le}),v.d(te,"r",function(){return ge}),v.d(te,"V",function(){return ae}),v.d(te,"T",function(){return pe}),v.d(te,"p",function(){return Me}),v.d(te,"M",function(){return xe}),v.d(te,"L",function(){return Ke}),v.d(te,"J",function(){return tt}),v.d(te,"K",function(){return he}),v.d(te,"O",function(){return Se}),v.d(te,"w",function(){return Ue});var Z="FETCH_TASK_START",K="FETCH_TASK_FAILURE",I="FETCH_TASK_SUCCESS",k="UPDATE_TASK_DATA",_="HIDE_EVALUATE_RESULT",O="SHOW_EVALUATE_RESULT",M="UPDATE_TIMESTRAP",x="MOVE_X",n="MOVE_Y",p="TRIGGER_RIGHT_PANEL_MASK ",a="SET_ACTIVE_INDEX",t="GET_TASK_LIST",h="SHOW_TASK_LIST",s="HIDE_TASK_LIST",i="SET_TASK_STAR",u="TRIGGER_ENLARGE_UNITY3D ",d="TRIGGER_TAB_FIXED ",f="GET_DISCUSSES",o="SHOW_DISCUSSES_LOADING",c="TOP_OR_DOWN_DISCUSS",E="PLUS_DISCUSS",B="SET_ACTION_TYPE",w="SHOW_REWARD_DIALOG",P="CANCEL_REWARD_DIALOG",C="SET_REWARD",b="ACTIVE_DISCUSS_INDEX",l="CREATE_DISCUSS",A="DISABLE_DISCUSS",g="SHOW_ANSWER_LOADING",T="FETCH_ANSWER_INFO",m="HIGH_TIP_MODAL",y="SHOW_TIP_MODAL",U="SELECT_UNLOCK_ANSWER",N="SET_CHOOSE_ANSWERS",S="EVAL_CHOOSE_START",H="EVAL_CHOOSE_END",F="SHOW_REP_loading",R="FETCH_REP_CONTENT",z="EDIT_REP_CONTENT",Q="SET_REP_PATH",$="SHOW_EVALUATE_LOADING",ee="HIDE_EVALUATE_LOADING",fe="SET_EVALUATE_MESSAGE",Ae="SET_SHOW_DIR",ce="SET_EDITOR_SETTING",ie="SET_EDITOR_THEME",be="SET_EDITOR_FONTSIZE",se="SET_REPOS",me="SHOW_PATH_LIST",le="HIDE_PATH_LIST",ge="HIDE_PICTURE_VIEW",ae="SHOW_PICTURE_VIEW",pe="SHOW_NOTICE",Me="HIDE_NOTICE",xe="SET_TAB_INDEX",Ke="SET_SSH_TABS",tt="SET_SSH_CONFIGDATA",he="SET_SSH_CONFIGDATAARR",Se="SET_VNC_LOADING ",Ue="ON_TAB_TO_SPACE "},fcSX:function(Re,te,v){"use strict";var Z=v("Ff2n"),K=v("1OyB"),I=v("vuIU"),k=v("Ji7U"),_=v("md7G"),O=v("foSv"),M=v("1W/9"),x=v("q1tI"),n=v("rePB"),p=v("JX7q"),a=v("TSYQ"),t=v.n(a),h=v("qx4F"),s=v("4IlW");function i(S){return Array.isArray(S)?S:[S]}var u={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},d=Object.keys(u).filter(function(S){if(typeof document=="undefined")return!1;var H=document.getElementsByTagName("html")[0];return S in(H?H.style:{})})[0],f=u[d];function o(S,H,F,R){S.addEventListener?S.addEventListener(H,F,R):S.attachEvent&&S.attachEvent("on".concat(H),F)}function c(S,H,F,R){S.removeEventListener?S.removeEventListener(H,F,R):S.attachEvent&&S.detachEvent("on".concat(H),F)}function E(S,H){var F=typeof S=="function"?S(H):S;return Array.isArray(F)?F.length===2?F:[F[0],F[1]]:[F]}var B=function(H){return!isNaN(parseFloat(H))&&isFinite(H)},w=!(typeof window!="undefined"&&window.document&&window.document.createElement),P=function S(H,F,R,z){if(!F||F===document||F instanceof Document)return!1;if(F===H.parentNode)return!0;var Q=Math.max(Math.abs(R),Math.abs(z))===Math.abs(z),$=Math.max(Math.abs(R),Math.abs(z))===Math.abs(R),ee=F.scrollHeight-F.clientHeight,fe=F.scrollWidth-F.clientWidth,Ae=document.defaultView.getComputedStyle(F),ce=Ae.overflowY==="auto"||Ae.overflowY==="scroll",ie=Ae.overflowX==="auto"||Ae.overflowX==="scroll",be=ee&&ce,se=fe&&ie;return Q&&(!be||be&&(F.scrollTop>=ee&&z<0||F.scrollTop<=0&&z>0))||$&&(!se||se&&(F.scrollLeft>=fe&&R<0||F.scrollLeft<=0&&R>0))?S(H,F.parentNode,R,z):!1};function C(S){var H=b();return function(){var R=Object(O.a)(S),z;if(H){var Q=Object(O.a)(this).constructor;z=Reflect.construct(R,arguments,Q)}else z=R.apply(this,arguments);return Object(_.a)(this,z)}}function b(){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(S){return!1}}var l={},A=function(S){Object(k.a)(F,S);var H=C(F);function F(R){var z;return Object(K.a)(this,F),z=H.call(this,R),z.domFocus=function(){z.dom&&z.dom.focus()},z.removeStartHandler=function(Q){if(Q.touches.length>1)return;z.startPos={x:Q.touches[0].clientX,y:Q.touches[0].clientY}},z.removeMoveHandler=function(Q){if(Q.changedTouches.length>1)return;var $=Q.currentTarget,ee=Q.changedTouches[0].clientX-z.startPos.x,fe=Q.changedTouches[0].clientY-z.startPos.y;($===z.maskDom||$===z.handlerDom||$===z.contentDom&&P($,Q.target,ee,fe))&&Q.cancelable&&Q.preventDefault()},z.transitionEnd=function(Q){var $=Q.target;c($,f,z.transitionEnd),$.style.transition=""},z.onKeyDown=function(Q){if(Q.keyCode===s.a.ESC){var $=z.props.onClose;Q.stopPropagation(),$&&$(Q)}},z.onWrapperTransitionEnd=function(Q){var $=z.props,ee=$.open,fe=$.afterVisibleChange;Q.target===z.contentWrapper&&Q.propertyName.match(/transform$/)&&(z.dom.style.transition="",!ee&&z.getCurrentDrawerSome()&&(document.body.style.overflowX="",z.maskDom&&(z.maskDom.style.left="",z.maskDom.style.width="")),fe&&fe(!!ee))},z.openLevelTransition=function(){var Q=z.props,$=Q.open,ee=Q.width,fe=Q.height,Ae=z.getHorizontalBoolAndPlacementName(),ce=Ae.isHorizontal,ie=Ae.placementName,be=z.contentDom?z.contentDom.getBoundingClientRect()[ce?"width":"height"]:0,se=(ce?ee:fe)||be;z.setLevelAndScrolling($,ie,se)},z.setLevelTransform=function(Q,$,ee,fe){var Ae=z.props,ce=Ae.placement,ie=Ae.levelMove,be=Ae.duration,se=Ae.ease,me=Ae.showMask;z.levelDom.forEach(function(le){le.style.transition="transform ".concat(be," ").concat(se),o(le,f,z.transitionEnd);var ge=Q?ee:0;if(ie){var ae=E(ie,{target:le,open:Q});ge=Q?ae[0]:ae[1]||0}var pe=typeof ge=="number"?"".concat(ge,"px"):ge,Me=ce==="left"||ce==="top"?pe:"-".concat(pe);Me=me&&ce==="right"&&fe?"calc(".concat(Me," + ").concat(fe,"px)"):Me,le.style.transform=ge?"".concat($,"(").concat(Me,")"):""})},z.setLevelAndScrolling=function(Q,$,ee){var fe=z.props.onChange;if(!w){var Ae=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?Object(h.a)(!0):0;z.setLevelTransform(Q,$,ee,Ae),z.toggleScrollingToDrawerAndBody(Ae)}fe&&fe(Q)},z.toggleScrollingToDrawerAndBody=function(Q){var $=z.props,ee=$.getOpenCount,fe=$.getContainer,Ae=$.showMask,ce=$.open,ie=fe&&fe(),be=ee&&ee();if(ie&&ie.parentNode===document.body&&Ae){var se=["touchstart"],me=[document.body,z.maskDom,z.handlerDom,z.contentDom];ce&&document.body.style.overflow!=="hidden"?(Q&&z.addScrollingEffect(Q),be===1&&(document.body.style.overflow="hidden"),document.body.style.touchAction="none",me.forEach(function(le,ge){if(!le)return;o(le,se[ge]||"touchmove",ge?z.removeMoveHandler:z.removeStartHandler,z.passive)})):z.getCurrentDrawerSome()&&(be||(document.body.style.overflow=""),document.body.style.touchAction="",Q&&z.remScrollingEffect(Q),me.forEach(function(le,ge){if(!le)return;c(le,se[ge]||"touchmove",ge?z.removeMoveHandler:z.removeStartHandler,z.passive)}))}},z.addScrollingEffect=function(Q){var $=z.props,ee=$.placement,fe=$.duration,Ae=$.ease,ce=$.getOpenCount,ie=$.switchScrollingEffect,be=ce&&ce();be===1&&ie();var se="width ".concat(fe," ").concat(Ae),me="transform ".concat(fe," ").concat(Ae);z.dom.style.transition="none";switch(ee){case"right":z.dom.style.transform="translateX(-".concat(Q,"px)");break;case"top":case"bottom":z.dom.style.width="calc(100% - ".concat(Q,"px)"),z.dom.style.transform="translateZ(0)";break;default:break}clearTimeout(z.timeout),z.timeout=setTimeout(function(){z.dom&&(z.dom.style.transition="".concat(me,",").concat(se),z.dom.style.width="",z.dom.style.transform="")})},z.remScrollingEffect=function(Q){var $=z.props,ee=$.placement,fe=$.duration,Ae=$.ease,ce=$.getOpenCount,ie=$.switchScrollingEffect,be=ce&&ce();be||ie(!0),d&&(document.body.style.overflowX="hidden"),z.dom.style.transition="none";var se,me="width ".concat(fe," ").concat(Ae),le="transform ".concat(fe," ").concat(Ae);switch(ee){case"left":{z.dom.style.width="100%",me="width 0s ".concat(Ae," ").concat(fe);break}case"right":{z.dom.style.transform="translateX(".concat(Q,"px)"),z.dom.style.width="100%",me="width 0s ".concat(Ae," ").concat(fe),z.maskDom&&(z.maskDom.style.left="-".concat(Q,"px"),z.maskDom.style.width="calc(100% + ".concat(Q,"px)"));break}case"top":case"bottom":{z.dom.style.width="calc(100% + ".concat(Q,"px)"),z.dom.style.height="100%",z.dom.style.transform="translateZ(0)",se="height 0s ".concat(Ae," ").concat(fe);break}default:break}clearTimeout(z.timeout),z.timeout=setTimeout(function(){z.dom&&(z.dom.style.transition="".concat(le,",").concat(se?"".concat(se,","):"").concat(me),z.dom.style.transform="",z.dom.style.width="",z.dom.style.height="")})},z.getCurrentDrawerSome=function(){return!Object.keys(l).some(function(Q){return l[Q]})},z.getLevelDom=function(Q){var $=Q.level,ee=Q.getContainer;if(w)return;var fe=ee&&ee(),Ae=fe?fe.parentNode:null;if(z.levelDom=[],$==="all"){var ce=Ae?Array.prototype.slice.call(Ae.children):[];ce.forEach(function(ie){ie.nodeName!=="SCRIPT"&&ie.nodeName!=="STYLE"&&ie.nodeName!=="LINK"&&ie!==fe&&z.levelDom.push(ie)})}else $&&i($).forEach(function(ie){document.querySelectorAll(ie).forEach(function(be){z.levelDom.push(be)})})},z.getHorizontalBoolAndPlacementName=function(){var Q=z.props.placement,$=Q==="left"||Q==="right",ee="translate".concat($?"X":"Y");return{isHorizontal:$,placementName:ee}},z.state={_self:Object(p.a)(z)},z}return Object(I.a)(F,[{key:"componentDidMount",value:function(){var z=this;if(!w){var Q=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Q=!0,null}}))}catch(ce){}this.passive=Q?{passive:!1}:!1}var $=this.props,ee=$.open,fe=$.getContainer,Ae=fe&&fe();this.drawerId="drawer_id_".concat(Number((Date.now()+Math.random()).toString().replace(".",Math.round(Math.random()*9).toString())).toString(16)),this.getLevelDom(this.props),ee&&(Ae&&Ae.parentNode===document.body&&(l[this.drawerId]=ee),this.openLevelTransition(),this.forceUpdate(function(){z.domFocus()}))}},{key:"componentDidUpdate",value:function(z){var Q=this.props,$=Q.open,ee=Q.getContainer,fe=ee&&ee();$!==z.open&&($&&this.domFocus(),fe&&fe.parentNode===document.body&&(l[this.drawerId]=!!$),this.openLevelTransition())}},{key:"componentWillUnmount",value:function(){var z=this.props,Q=z.getOpenCount,$=z.open,ee=z.switchScrollingEffect,fe=typeof Q=="function"&&Q();delete l[this.drawerId],$&&(this.setLevelTransform(!1),document.body.style.touchAction=""),fe||(document.body.style.overflow="",ee(!0))}},{key:"render",value:function(){var z,Q=this,$=this.props,ee=$.className,fe=$.children,Ae=$.style,ce=$.width,ie=$.height,be=$.defaultOpen,se=$.open,me=$.prefixCls,le=$.placement,ge=$.level,ae=$.levelMove,pe=$.ease,Me=$.duration,xe=$.getContainer,Ke=$.handler,tt=$.onChange,he=$.afterVisibleChange,Se=$.showMask,Ue=$.maskClosable,Ne=$.maskStyle,ct=$.onClose,mt=$.onHandleClick,Rt=$.keyboard,ht=$.getOpenCount,Ut=$.switchScrollingEffect,zt=Object(Z.a)($,["className","children","style","width","height","defaultOpen","open","prefixCls","placement","level","levelMove","ease","duration","getContainer","handler","onChange","afterVisibleChange","showMask","maskClosable","maskStyle","onClose","onHandleClick","keyboard","getOpenCount","switchScrollingEffect"]),ze=this.dom?se:!1,Ve=t()(me,(z={},Object(n.a)(z,"".concat(me,"-").concat(le),!0),Object(n.a)(z,"".concat(me,"-open"),ze),Object(n.a)(z,ee||"",!!ee),Object(n.a)(z,"no-mask",!Se),z)),Et=this.getHorizontalBoolAndPlacementName(),Ot=Et.placementName,ut=le==="left"||le==="top"?"-100%":"100%",vt=ze?"":"".concat(Ot,"(").concat(ut,")"),Ze=Ke&&x.cloneElement(Ke,{onClick:function(He){Ke.props.onClick&&Ke.props.onClick(),mt&&mt(He)},ref:function(He){Q.handlerDom=He}});return x.createElement("div",Object.assign({},zt,{tabIndex:-1,className:Ve,style:Ae,ref:function(He){Q.dom=He},onKeyDown:ze&&Rt?this.onKeyDown:void 0,onTransitionEnd:this.onWrapperTransitionEnd}),Se&&x.createElement("div",{className:"".concat(me,"-mask"),onClick:Ue?ct:void 0,style:Ne,ref:function(He){Q.maskDom=He}}),x.createElement("div",{className:"".concat(me,"-content-wrapper"),style:{transform:vt,msTransform:vt,width:B(ce)?"".concat(ce,"px"):ce,height:B(ie)?"".concat(ie,"px"):ie},ref:function(He){Q.contentWrapper=He}},x.createElement("div",{className:"".concat(me,"-content"),ref:function(He){Q.contentDom=He},onTouchStart:ze&&Se?this.removeStartHandler:void 0,onTouchMove:ze&&Se?this.removeMoveHandler:void 0},fe),Ze))}}],[{key:"getDerivedStateFromProps",value:function(z,Q){var $=Q.prevProps,ee=Q._self,fe={prevProps:z};if($!==void 0){var Ae=z.placement,ce=z.level;Ae!==$.placement&&(ee.contentDom=null),ce!==$.level&&ee.getLevelDom(z)}return fe}}]),F}(x.Component);A.defaultProps={switchScrollingEffect:function(){}};var g=A;function T(S){var H=m();return function(){var R=Object(O.a)(S),z;if(H){var Q=Object(O.a)(this).constructor;z=Reflect.construct(R,arguments,Q)}else z=R.apply(this,arguments);return Object(_.a)(this,z)}}function m(){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(S){return!1}}var y=function(S){Object(k.a)(F,S);var H=T(F);function F(R){var z;Object(K.a)(this,F),z=H.call(this,R),z.onHandleClick=function($){var ee=z.props,fe=ee.onHandleClick,Ae=ee.open;if(fe&&fe($),typeof Ae=="undefined"){var ce=z.state.open;z.setState({open:!ce})}},z.onClose=function($){var ee=z.props,fe=ee.onClose,Ae=ee.open;fe&&fe($),typeof Ae=="undefined"&&z.setState({open:!1})};var Q=typeof R.open!="undefined"?R.open:!!R.defaultOpen;return z.state={open:Q},"onMaskClick"in R&&console.warn("`onMaskClick` are removed, please use `onClose` instead."),z}return Object(I.a)(F,[{key:"render",value:function(){var z=this,Q=this.props,$=Q.defaultOpen,ee=Q.getContainer,fe=Q.wrapperClassName,Ae=Q.forceRender,ce=Q.handler,ie=Object(Z.a)(Q,["defaultOpen","getContainer","wrapperClassName","forceRender","handler"]),be=this.state.open;if(!ee)return x.createElement("div",{className:fe,ref:function(le){z.dom=le}},x.createElement(g,Object.assign({},ie,{open:be,handler:ce,getContainer:function(){return z.dom},onClose:this.onClose,onHandleClick:this.onHandleClick})));var se=!!ce||Ae;return x.createElement(M.a,{visible:be,forceRender:se,getContainer:ee,wrapperClassName:fe},function(me){var le=me.visible,ge=me.afterClose,ae=Object(Z.a)(me,["visible","afterClose"]);return x.createElement(g,Object.assign({},ie,ae,{open:le!==void 0?le:be,afterVisibleChange:ge!==void 0?ge:ie.afterVisibleChange,handler:ce,onClose:z.onClose,onHandleClick:z.onHandleClick}))})}}],[{key:"getDerivedStateFromProps",value:function(z,Q){var $=Q.prevProps,ee={prevProps:z};return typeof $!="undefined"&&z.open!==$.open&&(ee.open=z.open),ee}}]),F}(x.Component);y.defaultProps={prefixCls:"drawer",placement:"left",getContainer:"body",defaultOpen:!1,level:"all",duration:".3s",ease:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",onChange:function(){},afterVisibleChange:function(){},handler:x.createElement("div",{className:"drawer-handle"},x.createElement("i",{className:"drawer-handle-icon"})),showMask:!0,maskClosable:!0,maskStyle:{},wrapperClassName:"",className:"",keyboard:!0,forceRender:!1};var U=y,N=te.a=U},fjLI:function(Re,te,v){"use strict";v.d(te,"f",function(){return h}),v.d(te,"b",function(){return s}),v.d(te,"a",function(){return i}),v.d(te,"d",function(){return u}),v.d(te,"e",function(){return d}),v.d(te,"c",function(){return f});var Z=v("8HAY"),K=v("Vhoy"),I=v("MI8n"),k=v("JYp7"),_=v("pmY6"),O=v("24hK"),M=v("nnTU"),x=v("T8No"),n=v("Cg/j"),p=v("t9D7"),a=function(o,c,E,B){var w=arguments.length,P=w<3?c:B===null?B=Object.getOwnPropertyDescriptor(c,E):B,C;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")P=Reflect.decorate(o,c,E,B);else for(var b=o.length-1;b>=0;b--)(C=o[b])&&(P=(w<3?C(P):w>3?C(c,E,P):C(c,E))||P);return w>3&&P&&Object.defineProperty(c,E,P),P},t=function(o,c){return function(E,B){c(E,B,o)}};function h(o){return o.command!==void 0}class s{constructor(o){this.id=s._idPool++,this._debugName=o}}s._idPool=0,s.CommandPalette=new s("CommandPalette"),s.EditorContext=new s("EditorContext"),s.SimpleEditorContext=new s("SimpleEditorContext"),s.EditorContextCopy=new s("EditorContextCopy"),s.EditorContextPeek=new s("EditorContextPeek"),s.MenubarEditMenu=new s("MenubarEditMenu"),s.MenubarCopy=new s("MenubarCopy"),s.MenubarGoMenu=new s("MenubarGoMenu"),s.MenubarSelectionMenu=new s("MenubarSelectionMenu"),s.InlineCompletionsActions=new s("InlineCompletionsActions");const i=Object(n.c)("menuService"),u=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new I.b,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:o=>o===s.CommandPalette}}addCommand(o){return this.addCommands(k.a.single(o))}addCommands(o){for(const c of o)this._commands.set(c.id,c);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),Object(_.i)(()=>{let c=!1;for(const E of o)c=this._commands.delete(E.id)||c;c&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(o){return this._commands.get(o)}getCommands(){const o=new Map;return this._commands.forEach((c,E)=>o.set(E,c)),o}appendMenuItem(o,c){return this.appendMenuItems(k.a.single({id:o,item:c}))}appendMenuItems(o){const c=new Set,E=new O.a;for(const{id:B,item:w}of o){let P=this._menuItems.get(B);P||(P=new O.a,this._menuItems.set(B,P)),E.push(P.push(w)),c.add(B)}return this._onDidChangeMenu.fire(c),Object(_.i)(()=>{if(E.size>0){for(let B of E)B();this._onDidChangeMenu.fire(c),E.clear()}})}getMenuItems(o){let c;return this._menuItems.has(o)?c=[...this._menuItems.get(o)]:c=[],o===s.CommandPalette&&this._appendImplicitItems(c),c}_appendImplicitItems(o){const c=new Set;for(const E of o)h(E)&&(c.add(E.command.id),E.alt&&c.add(E.alt.id));this._commands.forEach((E,B)=>{c.has(B)||o.push({command:E})})}};class d extends Z.e{constructor(o,c,E,B){super(`submenuitem.${o.submenu.id}`,typeof o.title=="string"?o.title:o.title.value,[],"submenu");this.item=o,this._menuService=c,this._contextKeyService=E,this._options=B}get actions(){const o=[],c=this._menuService.createMenu(this.item.submenu,this._contextKeyService),E=c.getActions(this._options);c.dispose();for(const[,B]of E)B.length>0&&(o.push(...B),o.push(new Z.d));return o.length&&o.pop(),o}}let f=class o{constructor(c,E,B,w,P){var C,b;if(this._commandService=P,this.id=c.id,this.label=(B==null?void 0:B.renderShortTitle)&&c.shortTitle?typeof c.shortTitle=="string"?c.shortTitle:c.shortTitle.value:typeof c.title=="string"?c.title:c.title.value,this.tooltip=(b=typeof c.tooltip=="string"?c.tooltip:(C=c.tooltip)===null||C===void 0?void 0:C.value)!==null&&b!==void 0?b:"",this.enabled=!c.precondition||w.contextMatchesRules(c.precondition),this.checked=void 0,c.toggled){const l=c.toggled.condition?c.toggled:{condition:c.toggled};this.checked=w.contextMatchesRules(l.condition),this.checked&&l.tooltip&&(this.tooltip=typeof l.tooltip=="string"?l.tooltip:l.tooltip.value),l.title&&(this.label=typeof l.title=="string"?l.title:l.title.value)}this.item=c,this.alt=E?new o(E,void 0,B,w,P):void 0,this._options=B,p.d.isThemeIcon(c.icon)&&(this.class=K.a.asClassName(c.icon))}dispose(){}run(...c){var E,B;let w=[];return((E=this._options)===null||E===void 0?void 0:E.arg)&&(w=[...w,this._options.arg]),((B=this._options)===null||B===void 0?void 0:B.shouldForwardArgs)&&(w=[...w,...c]),this._commandService.executeCommand(this.id,...w)}};f=a([t(3,x.b),t(4,M.b)],f)},fyJ8:function(Re,te,v){"use strict";var Z=v("rePB"),K=v("VTBJ"),I=v("Ff2n"),k=v("U8pU"),_=v("q1tI"),O=v.n(_),M=v("TSYQ"),x=v.n(M),n=v("c+Xe"),p=v("sR1s");function a(u){return u&&Object(k.a)(u)==="object"&&!Array.isArray(u)&&!_.isValidElement(u)}function t(u){return typeof u=="string"?!0:Object(n.c)(u)}function h(u,d){var f,o=u.prefixCls,c=u.className,E=u.record,B=u.index,w=u.dataIndex,P=u.render,C=u.children,b=u.component,l=b===void 0?"td":b,A=u.colSpan,g=u.rowSpan,T=u.fixLeft,m=u.fixRight,y=u.firstFixLeft,U=u.lastFixLeft,N=u.firstFixRight,S=u.lastFixRight,H=u.appendNode,F=u.additionalProps,R=F===void 0?{}:F,z=u.ellipsis,Q=u.align,$=u.rowType,ee=u.isSticky,fe="".concat(o,"-cell"),Ae,ce;if(C)ce=C;else{var ie=Object(p.b)(E,w);if(ce=ie,P){var be=P(ie,E,B);a(be)?(ce=be.children,Ae=be.props):ce=be}}Object(k.a)(ce)==="object"&&!Array.isArray(ce)&&!_.isValidElement(ce)&&(ce=null),z&&(U||N)&&(ce=_.createElement("span",{className:"".concat(fe,"-content")},ce));var se=Ae||{},me=se.colSpan,le=se.rowSpan,ge=se.style,ae=se.className,pe=Object(I.a)(se,["colSpan","rowSpan","style","className"]),Me=me!==void 0?me:A,xe=le!==void 0?le:g;if(Me===0||xe===0)return null;var Ke={},tt=typeof T=="number",he=typeof m=="number";tt&&(Ke.position="sticky",Ke.left=T),he&&(Ke.position="sticky",Ke.right=m);var Se={};Q&&(Se.textAlign=Q);var Ue,Ne=z===!0?{showTitle:!0}:z;Ne&&(Ne.showTitle||$==="header")&&(typeof ce=="string"||typeof ce=="number"?Ue=ce.toString():_.isValidElement(ce)&&typeof ce.props.children=="string"&&(Ue=ce.props.children));var ct=Object(K.a)(Object(K.a)(Object(K.a)({title:Ue},pe),R),{},{colSpan:Me&&Me!==1?Me:null,rowSpan:xe&&xe!==1?xe:null,className:x()(fe,c,(f={},Object(Z.a)(f,"".concat(fe,"-fix-left"),tt),Object(Z.a)(f,"".concat(fe,"-fix-left-first"),y),Object(Z.a)(f,"".concat(fe,"-fix-left-last"),U),Object(Z.a)(f,"".concat(fe,"-fix-right"),he),Object(Z.a)(f,"".concat(fe,"-fix-right-first"),N),Object(Z.a)(f,"".concat(fe,"-fix-right-last"),S),Object(Z.a)(f,"".concat(fe,"-ellipsis"),z),Object(Z.a)(f,"".concat(fe,"-with-append"),H),Object(Z.a)(f,"".concat(fe,"-fix-sticky"),(tt||he)&&ee),f),R.className,ae),style:Object(K.a)(Object(K.a)(Object(K.a)(Object(K.a)({},R.style),Se),Ke),ge),ref:t(l)?d:null});return _.createElement(l,Object.assign({},ct),H,ce)}var s=_.forwardRef(h);s.displayName="Cell";var i=_.memo(s,function(u,d){return d.shouldCellUpdate?!d.shouldCellUpdate(d.record,u.record):!1});te.a=i},gut8:function(Re,te){var v={NONE:0,STYLE_BIND:1,PLAIN_TEXT:2},Z=9;te.ContextCachedBy=v,te.WILL_BE_RESTORED=Z},"h/US":function(Re,te,v){"use strict";var Z=v("DZo9"),K=v("8z0m"),I=v("miYZ"),k=v("tsqr"),_=v("+L6B"),O=v("2/Rp"),M=v("tJVT"),x=v("q1tI"),n=v.n(x),p=v("z7Xi"),a=v("jN4g"),t=v("m3rI"),h=v("w8Aa"),s=v.n(h),i=function(d){var f=d.value,o=d.onChange,c=d.getFileProgress,E=Object(x.useState)(!1),B=Object(M.a)(E,2),w=B[0],P=B[1],C=n.a.createElement(O.a,{loading:w,icon:n.a.createElement(p.a,null)},"\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6"),b=function(){return n.a.createElement("div",{className:s.a.img},n.a.createElement("img",{src:t.a.API_SERVER+"/api/attachments/"+f,alt:"avatar",style:{width:288}}),n.a.createElement("div",null,n.a.createElement(a.a,{onClick:function(){return o("")},style:{fontSize:"16px",color:"red"}})))},l=function(g){if(c&&c(g),g.file.status==="uploading"){P(!0);return}if(g.file.status==="done"){var T,m,y,U;if(P(!1),g.file.status==="done"&&((T=g.file)===null||T===void 0||((m=T.response)===null||m===void 0)?void 0:m.status)===-1){var N,S;k.b.error((N=g.file)===null||N===void 0||((S=N.response)===null||S===void 0)?void 0:S.message);return}o(g==null||((y=g.file)===null||y===void 0||((U=y.response)===null||U===void 0))?void 0:U.id)}};return n.a.createElement(n.a.Fragment,null,f?b():n.a.createElement("div",null,n.a.createElement(K.a,{withCredentials:!0,name:"file",showUploadList:!1,action:"".concat(t.a.API_SERVER,"/api/attachments.json"),onChange:l,accept:"image/*"},C),n.a.createElement("div",{className:"mt20 c-light-black"},"\u8BF4\u660E\uFF1A\u652F\u6301\u4E0A\u4F20jpg/png\u7B49\u683C\u5F0F\u6587\u4EF6\uFF0C\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC72M,\u5EFA\u8BAE\u4F7F\u7528288*158\u50CF\u7D20\uFF1B"),n.a.createElement("div",{className:"c-light-black"},"\u5982\u4E0D\u4E0A\u4F20\uFF0C\u9ED8\u8BA4\u4F7F\u7528\u7CFB\u7EDF\u56FE\u7247\u3002")))};te.a=i},h78n:function(Re,te,v){"use strict";v.d(te,"a",function(){return y});var Z=v("q1tI"),K=v.n(Z),I=v("TSYQ"),k=v.n(I),_={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},O=function(S){var H=S.map(function(){return Object(Z.useRef)()}),F=Object(Z.useRef)();return Object(Z.useEffect)(function(){var R=Date.now(),z=!1;Object.keys(H).forEach(function(Q){var $=H[Q].current;if(!$)return;z=!0;var ee=$.style;ee.transitionDuration=".3s, .3s, .3s, .06s",F.current&&R-F.current<100&&(ee.transitionDuration="0s, 0s")}),z&&(F.current=Date.now())}),[H]};function M(){return M=Object.assign||function(N){for(var S=1;S<arguments.length;S++){var H=arguments[S];for(var F in H)Object.prototype.hasOwnProperty.call(H,F)&&(N[F]=H[F])}return N},M.apply(this,arguments)}function x(N,S){return h(N)||t(N,S)||p(N,S)||n()}function n(){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 p(N,S){if(!N)return;if(typeof N=="string")return a(N,S);var H=Object.prototype.toString.call(N).slice(8,-1);if(H==="Object"&&N.constructor&&(H=N.constructor.name),H==="Map"||H==="Set")return Array.from(N);if(H==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(H))return a(N,S)}function a(N,S){(S==null||S>N.length)&&(S=N.length);for(var H=0,F=new Array(S);H<S;H++)F[H]=N[H];return F}function t(N,S){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(N)))return;var H=[],F=!0,R=!1,z=void 0;try{for(var Q=N[Symbol.iterator](),$;!(F=($=Q.next()).done)&&!(H.push($.value),S&&H.length===S);F=!0);}catch(ee){R=!0,z=ee}finally{try{!F&&Q.return!=null&&Q.return()}finally{if(R)throw z}}return H}function h(N){if(Array.isArray(N))return N}function s(N,S){if(N==null)return{};var H=i(N,S),F,R;if(Object.getOwnPropertySymbols){var z=Object.getOwnPropertySymbols(N);for(R=0;R<z.length;R++){if(F=z[R],S.indexOf(F)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(N,F))continue;H[F]=N[F]}}return H}function i(N,S){if(N==null)return{};var H={},F=Object.keys(N),R,z;for(z=0;z<F.length;z++){if(R=F[z],S.indexOf(R)>=0)continue;H[R]=N[R]}return H}var u=function(S){var H=S.className,F=S.percent,R=S.prefixCls,z=S.strokeColor,Q=S.strokeLinecap,$=S.strokeWidth,ee=S.style,fe=S.trailColor,Ae=S.trailWidth,ce=S.transition,ie=s(S,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete ie.gapPosition;var be=Array.isArray(F)?F:[F],se=Array.isArray(z)?z:[z],me=O(be),le=x(me,1),ge=le[0],ae=$/2,pe=100-$/2,Me="M ".concat(Q==="round"?ae:0,",").concat(ae,`
|
|
L `).concat(Q==="round"?pe:100,",").concat(ae),xe="0 0 100 ".concat($),Ke=0;return K.a.createElement("svg",M({className:k()("".concat(R,"-line"),H),viewBox:xe,preserveAspectRatio:"none",style:ee},ie),K.a.createElement("path",{className:"".concat(R,"-line-trail"),d:Me,strokeLinecap:Q,stroke:fe,strokeWidth:Ae||$,fillOpacity:"0"}),be.map(function(tt,he){var Se={strokeDasharray:"".concat(tt,"px, 100px"),strokeDashoffset:"-".concat(Ke,"px"),transition:ce||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Ue=se[he]||se[se.length-1];return Ke+=tt,K.a.createElement("path",{key:he,className:"".concat(R,"-line-path"),d:Me,strokeLinecap:Q,stroke:Ue,strokeWidth:$,fillOpacity:"0",ref:ge[he],style:Se})}))};u.defaultProps=_;var d=u;function f(){return f=Object.assign||function(N){for(var S=1;S<arguments.length;S++){var H=arguments[S];for(var F in H)Object.prototype.hasOwnProperty.call(H,F)&&(N[F]=H[F])}return N},f.apply(this,arguments)}function o(N,S){return P(N)||w(N,S)||E(N,S)||c()}function c(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function E(N,S){if(!N)return;if(typeof N=="string")return B(N,S);var H=Object.prototype.toString.call(N).slice(8,-1);if(H==="Object"&&N.constructor&&(H=N.constructor.name),H==="Map"||H==="Set")return Array.from(N);if(H==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(H))return B(N,S)}function B(N,S){(S==null||S>N.length)&&(S=N.length);for(var H=0,F=new Array(S);H<S;H++)F[H]=N[H];return F}function w(N,S){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(N)))return;var H=[],F=!0,R=!1,z=void 0;try{for(var Q=N[Symbol.iterator](),$;!(F=($=Q.next()).done)&&!(H.push($.value),S&&H.length===S);F=!0);}catch(ee){R=!0,z=ee}finally{try{!F&&Q.return!=null&&Q.return()}finally{if(R)throw z}}return H}function P(N){if(Array.isArray(N))return N}function C(N,S){if(N==null)return{};var H=b(N,S),F,R;if(Object.getOwnPropertySymbols){var z=Object.getOwnPropertySymbols(N);for(R=0;R<z.length;R++){if(F=z[R],S.indexOf(F)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(N,F))continue;H[F]=N[F]}}return H}function b(N,S){if(N==null)return{};var H={},F=Object.keys(N),R,z;for(z=0;z<F.length;z++){if(R=F[z],S.indexOf(R)>=0)continue;H[R]=N[R]}return H}var l=0;function A(N){return+N.replace("%","")}function g(N){return Array.isArray(N)?N:[N]}function T(N,S,H,F){var R=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,z=arguments.length>5?arguments[5]:void 0,Q=50-F/2,$=0,ee=-Q,fe=0,Ae=-2*Q;switch(z){case"left":$=-Q,ee=0,fe=2*Q,Ae=0;break;case"right":$=Q,ee=0,fe=-2*Q,Ae=0;break;case"bottom":ee=Q,Ae=2*Q;break;default:}var ce="M 50,50 m ".concat($,",").concat(ee,`
|
|
a `).concat(Q,",").concat(Q," 0 1 1 ").concat(fe,",").concat(-Ae,`
|
|
a `).concat(Q,",").concat(Q," 0 1 1 ").concat(-fe,",").concat(Ae),ie=Math.PI*2*Q,be={stroke:H,strokeDasharray:"".concat(S/100*(ie-R),"px ").concat(ie,"px"),strokeDashoffset:"-".concat(R/2+N/100*(ie-R),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:ce,pathStyle:be}}var m=function(S){var H=S.prefixCls,F=S.strokeWidth,R=S.trailWidth,z=S.gapDegree,Q=S.gapPosition,$=S.trailColor,ee=S.strokeLinecap,fe=S.style,Ae=S.className,ce=S.strokeColor,ie=S.percent,be=C(S,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),se=Object(Z.useMemo)(function(){return l+=1,l},[]),me=T(0,100,$,F,z,Q),le=me.pathString,ge=me.pathStyle,ae=g(ie),pe=g(ce),Me=pe.find(function(Se){return Object.prototype.toString.call(Se)==="[object Object]"}),xe=O(ae),Ke=o(xe,1),tt=Ke[0],he=function(){var Ue=0;return ae.map(function(Ne,ct){var mt=pe[ct]||pe[pe.length-1],Rt=Object.prototype.toString.call(mt)==="[object Object]"?"url(#".concat(H,"-gradient-").concat(se,")"):"",ht=T(Ue,Ne,mt,F,z,Q);return Ue+=Ne,K.a.createElement("path",{key:ct,className:"".concat(H,"-circle-path"),d:ht.pathString,stroke:Rt,strokeLinecap:ee,strokeWidth:F,opacity:Ne===0?0:1,fillOpacity:"0",style:ht.pathStyle,ref:tt[ct]})})};return K.a.createElement("svg",f({className:k()("".concat(H,"-circle"),Ae),viewBox:"0 0 100 100",style:fe},be),Me&&K.a.createElement("defs",null,K.a.createElement("linearGradient",{id:"".concat(H,"-gradient-").concat(se),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(Me).sort(function(Se,Ue){return A(Se)-A(Ue)}).map(function(Se,Ue){return K.a.createElement("stop",{key:Ue,offset:Se,stopColor:Me[Se]})}))),K.a.createElement("path",{className:"".concat(H,"-circle-trail"),d:le,stroke:$,strokeLinecap:ee,strokeWidth:R||F,fillOpacity:"0",style:ge}),he().reverse())};m.defaultProps=_;var y=m,U={Line:d,Circle:y}},h7HQ:function(Re,te,v){var Z=v("y+Vt"),K=v("T6xi"),I=Z.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(k,_){K.buildPath(k,_,!0)}});Re.exports=I},hOwI:function(Re,te){var v=Math.log(2);function Z(I,k,_,O,M,x){var n=O+"-"+M,p=I.length;if(x.hasOwnProperty(n))return x[n];if(k===1){var a=Math.round(Math.log((1<<p)-1&~M)/v);return I[_][a]}for(var t=O|1<<_,h=_+1;O&1<<h;)h++;for(var s=0,i=0,u=0;i<p;i++){var d=1<<i;d&M||(s+=(u%2?-1:1)*I[_][i]*Z(I,k-1,h,t,M|d,x),u++)}return x[n]=s,s}function K(I,k){var _=[[I[0],I[1],1,0,0,0,-k[0]*I[0],-k[0]*I[1]],[0,0,0,I[0],I[1],1,-k[1]*I[0],-k[1]*I[1]],[I[2],I[3],1,0,0,0,-k[2]*I[2],-k[2]*I[3]],[0,0,0,I[2],I[3],1,-k[3]*I[2],-k[3]*I[3]],[I[4],I[5],1,0,0,0,-k[4]*I[4],-k[4]*I[5]],[0,0,0,I[4],I[5],1,-k[5]*I[4],-k[5]*I[5]],[I[6],I[7],1,0,0,0,-k[6]*I[6],-k[6]*I[7]],[0,0,0,I[6],I[7],1,-k[7]*I[6],-k[7]*I[7]]],O={},M=Z(_,8,0,0,0,O);if(M===0)return;for(var x=[],n=0;n<8;n++)for(var p=0;p<8;p++)x[p]==null&&(x[p]=0),x[p]+=((n+p)%2?-1:1)*Z(_,7,n===0?1:0,1<<n,1<<p,O)/M*k[n];return function(a,t,h){var s=t*x[6]+h*x[7]+1;a[0]=(t*x[0]+h*x[1]+x[2])/s,a[1]=(t*x[3]+h*x[4]+x[5])/s}}te.buildTransformer=K},hW8S:function(Re,te,v){"use strict";v.d(te,"a",function(){return k}),v.d(te,"c",function(){return _}),v.d(te,"b",function(){return O});var Z=v("VTBJ"),K=v("Ff2n"),I=v("Kwbf"),k="RC_TABLE_INTERNAL_COL_DEFINE";function _(M){var x=M.expandable,n=Object(K.a)(M,["expandable"]);return"expandable"in M?Object(Z.a)(Object(Z.a)({},n),x):n}function O(M){return Object.keys(M).reduce(function(x,n){return(n.substr(0,5)==="data-"||n.substr(0,5)==="aria-")&&(x[n]=M[n]),x},{})}},hX1E:function(Re,te){var v=Math.PI*2;function Z(K){return K%=v,K<0&&(K+=v),K}te.normalizeRadian=Z},ho57:function(Re,te){Re.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAO9JREFUOBFj3H//P8ePj//a/jMyRDH8/y/uZcDCyAAEoZP//QfRxAHG54yMDIv+izHUsYANY/hfyECCdkxL/kv+/89QzviKkYGFgZEhGpdhEvwMDJNiwQ6Gm5G3+D/Di49wLgoDaGgc0///QIdSDfyXZKKaWVCDiDLwxUeQN4kLZBZ8LgSGCcP2i/8Zlh6HqIq2/A9MCPh0MAAjBQ94+YmBYf5hhAJkNkIUlUWUl1G14OeNGog/fIiRHQ1DYkIJvxomRgbG5/iVkCLL+BxoIMMiUrTgUwsqtVlkWZnqHv/+Bypj44BZXxKfBtxyiCoAAHADSWb7p5YAAAAAAElFTkSuQmCC"},hydK:function(Re,te){var v="http://www.w3.org/2000/svg";function Z(K){return document.createElementNS(v,K)}te.createElement=Z},hyiK:function(Re,te){function v(Z,K,I,k,_,O){if(O>K&&O>k||O<K&&O<k)return 0;if(k===K)return 0;var M=k<K?1:-1,x=(O-K)/(k-K);(x===1||x===0)&&(M=k<K?.5:-.5);var n=x*(I-Z)+Z;return n===_?Infinity:n>_?M:0}Re.exports=v},iXp4:function(Re,te,v){var Z=v("ItGF"),K=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];function I(k){return Z.browser.ie&&Z.browser.version>=11?function(){var _=this.__clipPaths,O=this.style,M;if(_)for(var x=0;x<_.length;x++){var n=_[x],p=n&&n.shape,a=n&&n.type;if(p&&(a==="sector"&&p.startAngle===p.endAngle||a==="rect"&&(!p.width||!p.height))){for(var t=0;t<K.length;t++)K[t][2]=O[K[t][0]],O[K[t][0]]=K[t][1];M=!0;break}}if(k.apply(this,arguments),M)for(var t=0;t<K.length;t++)O[K[t][0]]=K[t][2]}:k}Re.exports=I},ic2d:function(Re,te,v){"use strict";v.d(te,"a",function(){return k});var Z=v("FWmy"),K=v("746U");class I{constructor(){this.data=new Map}add(_,O){Z.a(K.l(_)),Z.a(K.k(O)),Z.a(!this.data.has(_),"There is already an extension with this id"),this.data.set(_,O)}as(_){return this.data.get(_)||null}}const k=new I},ie49:function(Re,te,v){Re.exports={brief:"brief___29L5W",contentTitle:"contentTitle___2wPLj",content:"content___2MAv3",tips:"tips___3qmPX",antdTable:"antdTable___o4ScH",tableCell:"tableCell___24I9Y",antdModal:"antdModal___1nRWw"}},j5sG:function(Re,te,v){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.createSensor=void 0;var Z=K(v("NohK"));function K(k){return k&&k.__esModule?k:{default:k}}var I=function(_){var O=void 0,M=[],x=(0,Z.default)(function(){M.forEach(function(h){h(_)})}),n=function(){var s=new ResizeObserver(x);return s.observe(_),x(),s},p=function(s){O||(O=n()),M.indexOf(s)===-1&&M.push(s)},a=function(){O.disconnect(),M=[],O=void 0},t=function(s){var i=M.indexOf(s);i!==-1&&M.splice(i,1),M.length===0&&O&&a()};return{element:_,bind:p,destroy:a,unbind:t}};te.createSensor=I},jTL6:function(Re,te,v){var Z=v("y+Vt"),K=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(I,k){var _=k.cx,O=k.cy,M=Math.max(k.r,0),x=k.startAngle,n=k.endAngle,p=k.clockwise,a=Math.cos(x),t=Math.sin(x);I.moveTo(a*M+_,t*M+O),I.arc(_,O,M,x,n,!p)}});Re.exports=K},jZGp:function(Re,te,v){"use strict";var Z=v("ozfa"),K=v("MJZm"),I=v("14J3"),k=v("BMrR"),_=v("+L6B"),O=v("2/Rp"),M=v("k1fw"),x=v("jCWc"),n=v("kPKH"),p=v("5Dmo"),a=v("3S7+"),t=v("miYZ"),h=v("tsqr"),s=v("9og8"),i=v("2qtc"),u=v("kLXV"),d=v("oBTY"),f=v("tJVT"),o=v("PpiC"),c=v("OaEy"),E=v("2fM7"),B=v("WmNS"),w=v.n(B),P=v("q1tI"),C=v.n(P),b=v("Ty5D"),l=v("9kvl"),A=v("Fvcw"),g=v("Mgx3"),T=v("1vsH"),m=v("qdXH"),y=v("V0Rq"),U=v("HBuW"),N=v("Dols"),S=v.n(N),H=v("LvDl"),F=v.n(H),R=v("8Skl"),z=v("UESt"),Q=v("NLgs"),$=v("m3rI"),ee=E.a.Option,fe=function(ce){var ie=ce.pathsDetail,be=ce.globalSetting,se=ce.user,me=ce.loading,le=ce.visibleType,ge=ce.updateSort,ae=ce.isPaths,pe=ce.dispatch,Me=Object(o.a)(ce,["pathsDetail","globalSetting","user","loading","visibleType","updateSort","isPaths","dispatch"]),xe=Object(P.useState)([]),Ke=Object(f.a)(xe,2),tt=Ke[0],he=Ke[1],Se=Object(P.useState)([]),Ue=Object(f.a)(Se,2),Ne=Ue[0],ct=Ue[1],mt=Object(b.i)(),Rt=Object(P.useState)([]),ht=Object(f.a)(Rt,2),Ut=ht[0],zt=ht[1],ze=Object(P.useState)({}),Ve=Object(f.a)(ze,2),Et=Ve[0],Ot=Ve[1];Object(P.useEffect)(function(){if(Me.data&&!Object(H.isEqual)(Me.data,Ut)){Ne=[];var Zt=JSON.parse(JSON.stringify(Me.data));Pe(Zt,0),zt(Object(d.a)(Zt)),le!="All"?he(Object(d.a)(Ne)):he([])}},[JSON.stringify(Me.data),le]),Object(P.useEffect)(function(){var Zt,xt,Ct;if((Zt=ie.detail)!==null&&Zt!==void 0&&Zt.has_start){var pt,Je,Qe=(pt=ie.detail)===null||pt===void 0||((Je=pt.courses)===null||Je===void 0)?void 0:Je.findIndex(function(Gt){var kt;return parseInt((kt=Gt.course_status)===null||kt===void 0?void 0:kt.status)===1});Ct=Qe>-1?Qe:0}else{var Oe,je,St,bt,Dt,Ht=(Oe=ie.detail)===null||Oe===void 0||((je=Oe.courses)===null||je===void 0||((St=je.map(function(Gt){var kt;return parseInt((kt=Gt.course_status)===null||kt===void 0?void 0:kt.status)}))===null||St===void 0))?void 0:St.lastIndexOf(2);Ct=Ht>-1?Ht:0,Ht=(bt=ie.detail)===null||bt===void 0||((Dt=bt.courses)===null||Dt===void 0)?void 0:Dt.findIndex(function(Gt){var kt;return parseInt((kt=Gt.course_status)===null||kt===void 0?void 0:kt.status)===0}),Ct=Ht>-1?Ht:Ct}if((xt=ie.detail)!==null&&xt!==void 0&&xt.courses){var _t;Ot(((_t=ie.detail)===null||_t===void 0?void 0:_t.courses[Ct])||{})}},[ie.detail]);var ut=function(xt,Ct){u.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u5B9A\u5220\u9664\u8BE5\u5B9E\u8BAD\u5417\uFF1F",onOk:function(){}})},vt=function(xt){u.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u5B9A\u5220\u9664\u8BE5\u7AE0\u8282\u5417\uFF1F",onOk:function(){var Ct=Object(s.a)(w.a.mark(function Je(){return w.a.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:case"end":return Oe.stop()}},Je)}));function pt(){return Ct.apply(this,arguments)}return pt}()})},Ze=function(){var Zt=Object(s.a)(w.a.mark(function xt(Ct,pt){var Je;return w.a.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:if(pe({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF0C\u8BF7\u7A0D\u540E..."}}),!pt){Oe.next=7;break}return Oe.next=4,Object(U.D)({id:Ct});case 4:Oe.t0=Oe.sent,Oe.next=10;break;case 7:return Oe.next=9,Object(U.E)({id:Ct});case 9:Oe.t0=Oe.sent;case 10:if(Je=Oe.t0,pe({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),!(Je!=null&&Je.game_identifier||Je!=null&&Je.identifier)){Oe.next=15;break}return Object(T.S)(pt?"/tasks/".concat(Je==null?void 0:Je.identifier,"/jupyter"):"/tasks/".concat(Je.game_identifier,"?subject_id=").concat(mt.pathId||"")),Oe.abrupt("return");case 15:(Je==null?void 0:Je.status)===-3?Object(T.q)():(Je==null?void 0:Je.status)===2?ke(Je==null?void 0:Je.message):(Je==null?void 0:Je.status)===3&&He(Je==null?void 0:Je.message);case 16:case"end":return Oe.stop()}},xt)}));return function(Ct,pt){return Zt.apply(this,arguments)}}(),ke=function Zt(xt){var Ct;xt=(Ct=xt)!==null&&Ct!==void 0&&Ct.includes(".json")?xt:"".concat(xt,".json"),u.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:C.a.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:function(){var pt=Object(s.a)(w.a.mark(function Qe(){var Oe,je;return w.a.wrap(function(bt){for(;;)switch(bt.prev=bt.next){case 0:return bt.next=2,Object(y.T)({url:xt});case 2:if(Oe=bt.sent,Oe){bt.next=5;break}return bt.abrupt("return");case 5:return h.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),bt.next=8,Object(U.E)({id:Oe.shixun_identifier});case 8:if(je=bt.sent,!(je!=null&&je.game_identifier)){bt.next=12;break}return Object(T.S)("/tasks/".concat(je.game_identifier)),bt.abrupt("return");case 12:(je==null?void 0:je.status)===2?Zt(je==null?void 0:je.message):(je==null?void 0:je.status)===3&&He(je==null?void 0:je.message);case 13:case"end":return bt.stop()}},Qe)}));function Je(){return pt.apply(this,arguments)}return Je}()})},He=function(xt){u.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:C.a.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",xt,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},we=function(xt){console.log("onDragEnter:",xt)},Le=function(){var Zt=Object(s.a)(w.a.mark(function xt(Ct){var pt,Je,Qe,Oe,je,St,bt,Dt,Ht;return w.a.wrap(function(Gt){for(;;)switch(Gt.prev=Gt.next){case 0:if(console.log("onDrop:",Ct),pt=Ct.node.props.eventKey,Je=Ct.dragNode.props.eventKey,Qe=Ct.node.props.pos.split("-"),Oe=Ct.dropPosition-Number(Qe[Qe.length-1]),!(Qe.length>2&&!Ct.node.dragOverGapBottom&&!Ct.node.dragOverGapTop)){Gt.next=7;break}return Gt.abrupt("return",!1);case 7:if(!(Ct.node.dragOver&&Ct.dragNodesKeys.length>1)){Gt.next=9;break}return Gt.abrupt("return",!1);case 9:if(!(Qe.length>2&&Ct.dragNodesKeys.length>1)){Gt.next=11;break}return Gt.abrupt("return",!1);case 11:return je=function kt(fn,mn,Tr){for(var Mr=0;Mr<fn.length;Mr++){if(fn[Mr].key===mn)return Tr(fn[Mr],Mr,fn);fn[Mr].children&&kt(fn[Mr].children,mn,Tr)}},St=Object(d.a)(Ut),je(St,Je,function(kt,fn,mn){mn.splice(fn,1),bt=kt}),Ct.dropToGap?(Ct.node.props.children||[]).length>0&&Ct.node.props.expanded&&Oe===1?je(St,pt,function(kt){kt.children=kt.children||[],kt.children.unshift(bt)}):(je(St,pt,function(kt,fn,mn){Dt=mn,Ht=fn}),Oe===-1?Dt.splice(Ht,0,bt):Dt.splice(Ht+1,0,bt)):je(St,pt,function(kt){kt.children=kt.children||[],kt.children.unshift(bt)}),Gt.next=17,ge({stage_id:Me.stage_id,list:St});case 17:Pe(St,0,0,!0),console.log("data:",St),zt(Object(d.a)(St)),he([].concat(Object(d.a)(tt),[Ct.node.key]));case 21:case"end":return Gt.stop()}},xt)}));return function(Ct){return Zt.apply(this,arguments)}}(),Pe=function Zt(xt,Ct,pt,Je){Ct=Ct||0,xt.map(function(Qe,Oe){try{var je;return Qe.key2=Ct+1+"-"+(Oe+1),Qe.key3=Me.index+1+"-"+(Oe+1),Qe.title="",Je||(Qe.key=Ct+1+"-"+(Oe+1)),Ct?Qe.index=pt+"-"+(Oe+1):Qe.index=Qe.key3,(je=Qe.children)!==null&&je!==void 0&&je.length&&(Ne.push(Qe.key2),Zt(Qe.children,Qe.key2,Qe.index,Je)),Qe}catch(St){}})},We=function(xt){var Ct=xt.learning_status,pt=xt.name,Je=(Ct==null?void 0:Ct[0])==="can"&&(Ct==null?void 0:Ct[1])==="try";return Je?C.a.createElement("div",{className:S.a.learn},C.a.createElement("span",{className:S.a.name},pt),C.a.createElement("span",{className:S.a.sign},"\u514D\u8D39\u8BD5\u5B66")):pt},Xe=function(xt){if(le!=="All")return;tt.includes(xt)?he(tt.filter(function(Ct){return Ct!=xt})):he(tt.concat(xt))},gt=function(){var Zt=Object(s.a)(w.a.mark(function xt(Ct){return w.a.wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:if(Object(Q.e)(pe,!0)){Je.next=2;break}return Je.abrupt("return");case 2:if(!(Ct!=null&&Ct.need_authorize)){Je.next=5;break}return Object(Q.a)(!1),Je.abrupt("return");case 5:if(!(Et!=null&&Et.course_id)){Je.next=8;break}return Je.next=8,Object(g.L)({id:Et==null?void 0:Et.course_id});case 8:Ze(Ct.identifier,Ct.is_jupyter||Ct.is_jupyter_lab);case 9:case"end":return Je.stop()}},xt)}));return function(Ct){return Zt.apply(this,arguments)}}(),Lt=function(){var Zt=Object(s.a)(w.a.mark(function xt(Ct){var pt,Je,Qe,Oe,je,St;return w.a.wrap(function(Dt){for(;;)switch(Dt.prev=Dt.next){case 0:if(Object(Q.e)(pe)){Dt.next=2;break}return Dt.abrupt("return");case 2:if(!(!((pt=se.userInfo)!==null&&pt!==void 0&&pt.admin)&&!((Je=se.userInfo)!==null&&Je!==void 0&&Je.business)&&!Ct.can_view&&Ct.item_type!=="Attachment")){Dt.next=4;break}return Dt.abrupt("return",u.a.info({centered:!0,width:400,okText:"\u77E5\u9053\u5566",icon:null,content:C.a.createElement("div",{className:"tc font14"},"\u5F53\u524D\u89C6\u9891\u4E3A\u521B\u5EFA\u8005\u6240\u5C5E\u5355\u4F4D\u5185\u90E8\u6559\u5B66\u8D44\u6599\uFF0C\u5916\u5355\u4F4D\u7528\u6237\u65E0\u89C2\u770B\u6743\u9650")}));case 4:Ct.link&&Object(m.n)({is_f:1,id:Ct.id,point:0,total:0}),je=Me!=null&&Me.course_id?"course_id=".concat(Me==null?void 0:Me.course_id):"subject_id=".concat(mt.pathId||Me.subject_id),St=Ct==null||((Qe=Ct.name)===null||Qe===void 0)?void 0:Qe.substr(Ct==null||((Oe=Ct.name)===null||Oe===void 0)?void 0:Oe.lastIndexOf(".")),St.toUpperCase()===".ZIP"?Object(T.v)(Ct.name,$.a.API_SERVER+Ct.url):Object(T.S)(Ct.link||"/video/".concat(Ct.id,"?").concat(je));case 8:case"end":return Dt.stop()}},xt)}));return function(Ct){return Zt.apply(this,arguments)}}(),en=function(xt){var Ct;return xt.item_type==="Shixun"?xt.is_all_choice?Ct=C.a.createElement(a.a,{title:"\u9009\u62E9\u9898"},C.a.createElement("i",{className:"iconfont icon-xuanzeti3 c-lake-blue font20"})):Ct=C.a.createElement(a.a,{title:"\u5B9E\u8BAD\u9898"},C.a.createElement("i",{className:"iconfont icon-shixunti2 c-light-primary font20"})):xt.item_type==="VideoItem"?Ct=C.a.createElement("i",{className:"iconfont icon-shipin2 c-purple-8C1 font20"}):xt.item_type==="StageCatalog"?Ct=C.a.createElement("i",{className:"iconfont icon-kongbai c-brilliant-blue font20"}):Ct=C.a.createElement("i",{className:"iconfont icon-kejian1 c-cyan-blue font20"}),Ct;xt.item_type==="Shixun"||xt.item_type==="StageCatalog"};return C.a.createElement(C.a.Fragment,null,C.a.createElement(K.a,{className:S.a.tree,disabled:Me.disabled,expandedKeys:Object(d.a)(tt),draggable:!0,onDragEnter:we,onDrop:Le,onExpand:Xe,blockNode:!0,titleRender:function(xt){var Ct,pt,Je,Qe=xt;if(Qe.item_type!==le&&le!=="All")return null;var Oe=xt.index.slice(0,1)==="1",je=(xt==null||((Ct=xt.learning_status)===null||Ct===void 0)?void 0:Ct[0])==="can";return C.a.createElement(k.a,{align:"middle",className:"font14",onClick:function(){return Xe(Qe.key)}},C.a.createElement(n.a,{flex:"30px"},en(xt)),C.a.createElement(n.a,{flex:"1",className:"c-grey-333"},Me.cust_seq&&C.a.createElement("span",{className:"mr10"},xt.index),xt.item_type!=="Attachment"&&We(xt),xt.item_type==="Attachment"&&C.a.createElement("a",{target:"_blank",onClick:Object(s.a)(w.a.mark(function St(){var bt;return w.a.wrap(function(Ht){for(;;)switch(Ht.prev=Ht.next){case 0:if(Object(Q.e)(pe)){Ht.next=2;break}return Ht.abrupt("return");case 2:if(!(Et!=null&&Et.course_id)){Ht.next=6;break}return Ht.next=5,Object(g.L)({id:Et==null?void 0:Et.course_id});case 5:bt=Ht.sent;case 6:Ht.t0=xt.item_type,Ht.next=Ht.t0==="Attachment"?9:Ht.t0==="VideoItem"?11:Ht.t0==="Shixun"?13:15;break;case 9:return Lt(Qe),Ht.abrupt("break",15);case 11:return Lt(xt),Ht.abrupt("break",15);case 13:return gt(xt),Ht.abrupt("break",15);case 15:case"end":return Ht.stop()}},St)}))},xt.name),xt.item_type==="Shixun"&&xt.is_unity_3d&&C.a.createElement("span",{style:{background:"#a300d8",color:"#fff",borderRadius:"13px",marginLeft:"5px",width:"68px",height:"20px",display:"inline-block",textAlign:"center",fontSize:"12px"}},"\u865A\u62DF\u4EFF\u771F"),xt.item_type==="Shixun"&&xt.is_jupyter_lab&&C.a.createElement("span",{style:{background:"#ff6802",color:"#fff",borderRadius:"13px",marginLeft:"5px",width:"76px",height:"20px",display:"inline-block",textAlign:"center",fontSize:"12px"}},"JupyterLab"),xt.item_type==="Shixun"&&xt.is_jupyter&&C.a.createElement("span",{style:{background:"#ff6802",color:"#fff",borderRadius:"13px",marginLeft:"5px",width:"112px",height:"20px",display:"inline-block",textAlign:"center",fontSize:"12px"}},"Jupyter Notebook"),!!((pt=xt.schools)!==null&&pt!==void 0&&pt.length)&&C.a.createElement(a.a,{title:"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u9762\u5411\u6307\u5B9A\u5355\u4F4D\u5F00\u653E"},C.a.createElement("i",{className:"iconfont icon-zhidinggongkai1 ml10 c-orange",style:{transform:"translateY(1px)",display:"inline-block"}})),xt.item_type==="Shixun"&&!!(xt!=null&&xt.finished_challenges_count)&&C.a.createElement(a.a,{title:"\u5B8C\u6210\u5EA6:".concat(Math.round((xt==null?void 0:xt.finished_challenges_count)/(xt==null?void 0:xt.challenges_count)*100),"%")},C.a.createElement("i",{className:"iconfont icon-a-wanchengdu100 ml10 ".concat((xt==null?void 0:xt.finished_challenges_count)-(xt==null?void 0:xt.challenges_count)===0?"c-light-green":"c-grey-333"),style:{transform:"translateY(1px)",display:"inline-block"}}))),!Me.disabled&&C.a.createElement("aside",{style:{color:"#0152d9",fontSize:"14px",marginRight:"20px"}},"\u62D6\u52A8\u53EF\u4EE5\u6539\u53D8\u9879\u76EE\u663E\u793A\u987A\u5E8F"),C.a.createElement(n.a,{className:"tr"},(Qe.item_type==="VideoItem"||(Qe==null?void 0:Qe.item_type)==="Attachment"||(Qe==null?void 0:Qe.item_type)==="StageCatalog")&&!Me.disabled&&C.a.createElement(a.a,{title:"\u7F16\u8F91"},C.a.createElement("span",{onClick:function(){Me.editVidoItem(Object(M.a)({stage_id:Me.stage_id},Qe))},style:{color:"#ccc",marginRight:"10px"}},C.a.createElement(A.a,null))),!Me.disabled&&C.a.createElement(C.a.Fragment,null,C.a.createElement(a.a,{title:"\u5220\u9664"},C.a.createElement("span",{onClick:function(){Me.deleteStages({id:Qe.stage_item_id,stage_id:Me.stage_id})},className:"iconfont icon-shanchu c-grey-c"}))),Me.showVideoPlay&&Me.disabled&&Qe.item_type==="VideoItem"&&je&&C.a.createElement("aside",null,ae&&C.a.createElement(O.a,{className:"mr10",type:"primary",onClick:Object(s.a)(w.a.mark(function St(){return w.a.wrap(function(Dt){for(;;)switch(Dt.prev=Dt.next){case 0:if(Object(Q.e)(pe)){Dt.next=2;break}return Dt.abrupt("return");case 2:pe({type:"shixunsDetail/setActionTabs",payload:{key:"Stage-SendModal",params:{id:Qe.stage_item_id,title:"\u89C6\u9891"}}});case 3:case"end":return Dt.stop()}},St)}))},"\u53D1\u9001"),C.a.createElement(O.a,{type:"primary",onClick:Object(s.a)(w.a.mark(function St(){return w.a.wrap(function(Dt){for(;;)switch(Dt.prev=Dt.next){case 0:Lt(Qe);case 1:case"end":return Dt.stop()}},St)}))},Qe.last_point>0?"\u7EE7\u7EED\u5B66\u4E60":"\u5F00\u59CB\u5B66\u4E60")),(Qe.allow_visit||Qe.to_be_built||!Qe.shixun_status)&&Me.disabled&&Qe.item_type==="Shixun"&&je&&C.a.createElement("aside",null,ae&&!Qe.shixun_status&&C.a.createElement(O.a,{className:"ml10",type:"primary",onClick:Object(s.a)(w.a.mark(function St(){return w.a.wrap(function(Dt){for(;;)switch(Dt.prev=Dt.next){case 0:if(Object(Q.e)(pe)){Dt.next=2;break}return Dt.abrupt("return");case 2:pe({type:"shixunsDetail/setActionTabs",payload:{key:"Stage-SendModal",params:{id:Qe.stage_item_id,title:"\u5B9E\u8BAD",is_jupyter:Qe==null?void 0:Qe.is_jupyter,identifier:Qe==null?void 0:Qe.identifier}}});case 3:case"end":return Dt.stop()}},St)}))},"\u53D1\u9001"),C.a.createElement(O.a,{className:"ml10",type:"primary",onClick:Object(s.a)(w.a.mark(function St(){return w.a.wrap(function(Dt){for(;;)switch(Dt.prev=Dt.next){case 0:if(Object(Q.e)(pe)){Dt.next=2;break}return Dt.abrupt("return");case 2:if(!(Et!=null&&Et.course_id)){Dt.next=5;break}return Dt.next=5,Object(g.L)({id:Et==null?void 0:Et.course_id});case 5:window.open("/shixuns/".concat(Qe.identifier,"/challenges"));case 6:case"end":return Dt.stop()}},St)}))},"\u67E5\u770B\u8BE6\u60C5"),!Qe.shixun_status&&C.a.createElement(O.a,{className:"ml10",type:"primary",onClick:Object(s.a)(w.a.mark(function St(){return w.a.wrap(function(Dt){for(;;)switch(Dt.prev=Dt.next){case 0:gt(Qe);case 1:case"end":return Dt.stop()}},St)}))},Qe!=null&&Qe.need_authorize?"\u9700\u6388\u6743":xt!=null&&xt.finished_challenges_count?(xt==null?void 0:xt.finished_challenges_count)-(xt==null?void 0:xt.challenges_count)===0?"\u518D\u6B21\u5B9E\u6218":"\u7EE7\u7EED\u5B9E\u6218":"\u5F00\u59CB\u5B9E\u6218")),Me.disabled&&Qe.shixun_status==="\u6682\u672A\u516C\u5F00"&&C.a.createElement("span",{className:"".concat(S.a.color204," ml5")},"\u6682\u672A\u53D1\u5E03"),Qe.shixun_status==="\u5DF2\u5220\u9664"&&C.a.createElement("span",{className:"".concat(S.a.color204," ml5")},"\u5DF2\u5220\u9664"),Me.disabled&&Qe.item_type==="Shixun"&&!!Qe.challenges_count&&C.a.createElement("span",{className:"exper\u02C6iment-number ml5 c-grey-999"},"\u5B9E\u9A8C\u6570 ",Qe.challenges_count),le==="All"&&!!((Je=xt.children)!==null&&Je!==void 0&&Je.length)&&C.a.createElement("span",{className:"ml10"},tt.includes(xt.key)?C.a.createElement(R.a,null):C.a.createElement(z.a,null))))},treeData:Ut}))};te.a=Object(l.a)(function(Ae){var ce=Ae.pathsDetail,ie=Ae.loading,be=Ae.user,se=Ae.globalSetting;return{pathsDetail:ce,globalSetting:se,user:be,loading:ie.effects}})(fe)},ji0R:function(Re,te,v){Re.exports=v.p+"static/douyu.3e6df9ee.jpg"},juDX:function(Re,te,v){v("P47w");var Z=v("aX58"),K=Z.registerPainter,I=v("3CBa");K("svg",I)},k3GJ:function(Re,te,v){"use strict";v.d(te,"a",function(){return gl});var Z=v("rePB"),K=v("ODXe"),I=v("Ff2n"),k=v("VTBJ"),_=v("q1tI"),O=v("TSYQ"),M=v.n(O),x=v("Zm9Q"),n=v("6cGi"),p=v("KQm4"),a=v("xEkU"),t=v.n(a),h=v("t23M");function s($e){var ft=Object(_.useRef)(),wt=Object(_.useRef)(!1);function nt(){for(var Te=arguments.length,Ge=new Array(Te),Be=0;Be<Te;Be++)Ge[Be]=arguments[Be];wt.current||(t.a.cancel(ft.current),ft.current=t()(function(){$e.apply(void 0,Ge)}))}return Object(_.useEffect)(function(){return function(){wt.current=!0,t.a.cancel(ft.current)}},[]),nt}function i($e){var ft=Object(_.useRef)([]),wt=Object(_.useState)({}),nt=Object(K.a)(wt,2),Te=nt[1],Ge=Object(_.useRef)(typeof $e=="function"?$e():$e),Be=s(function(){var st=Ge.current;ft.current.forEach(function(Tt){st=Tt(st)}),ft.current=[],Ge.current=st,Te({})});function it(st){ft.current.push(st),Be()}return[Ge.current,it]}var u=v("4IlW");function d($e,ft){var wt,nt=$e.prefixCls,Te=$e.id,Ge=$e.active,Be=$e.rtl,it=$e.tab,st=it.key,Tt=it.tab,dt=it.disabled,Mt=it.closeIcon,tn=$e.tabBarGutter,lt=$e.tabPosition,qe=$e.closable,Bt=$e.renderWrapper,$t=$e.removeAriaLabel,cn=$e.editable,Kt=$e.onClick,_n=$e.onRemove,rn=$e.onFocus,jt="".concat(nt,"-tab");_.useEffect(function(){return _n},[]);var An={};lt==="top"||lt==="bottom"?An[Be?"marginLeft":"marginRight"]=tn:An.marginBottom=tn;var qt=cn&&qe!==!1&&!dt;function En(wn){if(dt)return;Kt(wn)}function kn(wn){wn.preventDefault(),wn.stopPropagation(),cn.onEdit("remove",{key:st,event:wn})}var Yt=_.createElement("div",{key:st,ref:ft,className:M()(jt,(wt={},Object(Z.a)(wt,"".concat(jt,"-with-remove"),qt),Object(Z.a)(wt,"".concat(jt,"-active"),Ge),Object(Z.a)(wt,"".concat(jt,"-disabled"),dt),wt)),style:An,onClick:En},_.createElement("div",{role:"tab","aria-selected":Ge,id:Te&&"".concat(Te,"-tab-").concat(st),className:"".concat(jt,"-btn"),"aria-controls":Te&&"".concat(Te,"-panel-").concat(st),"aria-disabled":dt,tabIndex:dt?null:0,onClick:function(ln){ln.stopPropagation(),En(ln)},onKeyDown:function(ln){[u.a.SPACE,u.a.ENTER].includes(ln.which)&&(ln.preventDefault(),En(ln))},onFocus:rn},Tt),qt&&_.createElement("button",{type:"button","aria-label":$t||"remove",tabIndex:0,className:"".concat(jt,"-remove"),onClick:function(ln){ln.stopPropagation(),kn(ln)}},Mt||cn.removeIcon||"\xD7"));return Bt&&(Yt=Bt(Yt)),Yt}var f=_.forwardRef(d),o={width:0,height:0,left:0,top:0};function c($e,ft,wt){return Object(_.useMemo)(function(){for(var nt,Te=new Map,Ge=ft.get((nt=$e[0])===null||nt===void 0?void 0:nt.key)||o,Be=Ge.left+Ge.width,it=0;it<$e.length;it+=1){var st=$e[it].key,Tt=ft.get(st);if(!Tt){var dt;Tt=ft.get((dt=$e[it-1])===null||dt===void 0?void 0:dt.key)||o}var Mt=Te.get(st)||Object(k.a)({},Tt);Mt.right=Be-Mt.left-Mt.width,Te.set(st,Mt)}return Te},[$e.map(function(nt){return nt.key}).join("_"),ft,wt])}var E={width:0,height:0,left:0,top:0,right:0};function B($e,ft,wt,nt,Te){var Ge=Te.tabs,Be=Te.tabPosition,it=Te.rtl,st,Tt,dt;["top","bottom"].includes(Be)?(st="width",Tt=it?"right":"left",dt=Math.abs(ft.left)):(st="height",Tt="top",dt=-ft.top);var Mt=ft[st],tn=wt[st],lt=nt[st],qe=Mt;return tn+lt>Mt&&(qe=Mt-lt),Object(_.useMemo)(function(){if(!Ge.length)return[0,0];for(var Bt=Ge.length,$t=Bt,cn=0;cn<Bt;cn+=1){var Kt=$e.get(Ge[cn].key)||E;if(Kt[Tt]+Kt[st]>dt+qe){$t=cn-1;break}}for(var _n=0,rn=Bt-1;rn>=0;rn-=1){var jt=$e.get(Ge[rn].key)||E;if(jt[Tt]<dt){_n=rn+1;break}}return[_n,$t]},[$e,dt,qe,Be,Ge.map(function(Bt){return Bt.key}).join("_"),it])}var w=v("wx14"),P=v("1OyB"),C=v("vuIU"),b=v("JX7q"),l=v("Ji7U"),A=v("LK+K"),g=v("I8Z2"),T=v("bT9E"),m=v("2GS6"),y=v("Gytx"),U=v.n(y),N=v("U8pU"),S=/iPhone/i,H=/iPod/i,F=/iPad/i,R=/\bAndroid(?:.+)Mobile\b/i,z=/Android/i,Q=/\bAndroid(?:.+)SD4930UR\b/i,$=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,ee=/Windows Phone/i,fe=/\bWindows(?:.+)ARM\b/i,Ae=/BlackBerry/i,ce=/BB10/i,ie=/Opera Mini/i,be=/\b(CriOS|Chrome)(?:.+)Mobile/i,se=/Mobile(?:.+)Firefox\b/i;function me($e,ft){return $e.test(ft)}function le($e){var ft=$e||(typeof navigator!="undefined"?navigator.userAgent:""),wt=(ft||"").split("[FBAN");if(typeof wt[1]!="undefined"){var nt=wt,Te=Object(K.a)(nt,1);ft=Te[0]}if(wt=ft.split("Twitter"),typeof wt[1]!="undefined"){var Ge=wt,Be=Object(K.a)(Ge,1);ft=Be[0]}var it={apple:{phone:me(S,ft)&&!me(ee,ft),ipod:me(H,ft),tablet:!me(S,ft)&&me(F,ft)&&!me(ee,ft),device:(me(S,ft)||me(H,ft)||me(F,ft))&&!me(ee,ft)},amazon:{phone:me(Q,ft),tablet:!me(Q,ft)&&me($,ft),device:me(Q,ft)||me($,ft)},android:{phone:!me(ee,ft)&&me(Q,ft)||!me(ee,ft)&&me(R,ft),tablet:!me(ee,ft)&&!me(Q,ft)&&!me(R,ft)&&(me($,ft)||me(z,ft)),device:!me(ee,ft)&&(me(Q,ft)||me($,ft)||me(R,ft)||me(z,ft))||me(/\bokhttp\b/i,ft)},windows:{phone:me(ee,ft),tablet:me(fe,ft),device:me(ee,ft)||me(fe,ft)},other:{blackberry:me(Ae,ft),blackberry10:me(ce,ft),opera:me(ie,ft),firefox:me(se,ft),chrome:me(be,ft),device:me(Ae,ft)||me(ce,ft)||me(ie,ft)||me(se,ft)||me(be,ft)},any:null,phone:null,tablet:null};return it.any=it.apple.device||it.android.device||it.windows.device||it.other.device,it.phone=it.apple.phone||it.android.phone||it.windows.phone,it.tablet=it.apple.tablet||it.android.tablet||it.windows.tablet,it}var ge=Object(k.a)(Object(k.a)({},le()),{},{isMobile:le}),ae=ge;function pe(){}function Me($e,ft,wt){var nt=ft||"";return $e.key||"".concat(nt,"item_").concat(wt)}function xe($e){return"".concat($e,"-menu-")}function Ke($e,ft){var wt=-1;_.Children.forEach($e,function(nt){wt+=1,nt&&nt.type&&nt.type.isMenuItemGroup?_.Children.forEach(nt.props.children,function(Te){wt+=1,ft(Te,wt)}):ft(nt,wt)})}function tt($e,ft,wt){if(!$e||wt.find)return;_.Children.forEach($e,function(nt){if(nt){var Te=nt.type;if(!Te||!(Te.isSubMenu||Te.isMenuItem||Te.isMenuItemGroup))return;ft.indexOf(nt.key)!==-1?wt.find=!0:nt.props.children&&tt(nt.props.children,ft,wt)}})}var he=["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"],Se=function(ft){var wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,nt=ft&&typeof ft.getBoundingClientRect=="function"&&ft.getBoundingClientRect().width;if(nt){if(wt){var Te=getComputedStyle(ft),Ge=Te.marginLeft,Be=Te.marginRight;nt+=+Ge.replace("px","")+ +Be.replace("px","")}nt=+nt.toFixed(6)}return nt||0},Ue=function(ft,wt,nt){ft&&Object(N.a)(ft.style)==="object"&&(ft.style[wt]=nt)},Ne=function(){return ae.any},ct=v("bdgK"),mt=v("i8i4"),Rt=v.n(mt),ht=v("wgJM"),Ut=v("l4aY"),zt=v("m+aA"),ze=v("c+Xe"),Ve=v("zT1h"),Et=v("QC+M");function Ot($e,ft,wt){return wt?$e[0]===ft[0]:$e[0]===ft[0]&&$e[1]===ft[1]}function ut($e,ft,wt){var nt=$e[ft]||{};return Object(k.a)(Object(k.a)({},nt),wt)}function vt($e,ft,wt,nt){for(var Te=wt.points,Ge=Object.keys($e),Be=0;Be<Ge.length;Be+=1){var it=Ge[Be];if(Ot($e[it].points,Te,nt))return"".concat(ft,"-placement-").concat(it)}return""}var Ze=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var $e=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($e)||/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($e==null?void 0:$e.substr(0,4)))},ke=v("MNnm");function He($e,ft){var wt={};return wt[$e.toLowerCase()]=ft.toLowerCase(),wt["Webkit".concat($e)]="webkit".concat(ft),wt["Moz".concat($e)]="moz".concat(ft),wt["ms".concat($e)]="MS".concat(ft),wt["O".concat($e)]="o".concat(ft.toLowerCase()),wt}function we($e,ft){var wt={animationend:He("Animation","AnimationEnd"),transitionend:He("Transition","TransitionEnd")};return $e&&("AnimationEvent"in ft||delete wt.animationend.animation,"TransitionEvent"in ft||delete wt.transitionend.transition),wt}var Le=we(Object(ke.a)(),typeof window!="undefined"?window:{}),Pe={};if(Object(ke.a)()){var We=document.createElement("div");Pe=We.style}var Xe={};function gt($e){if(Xe[$e])return Xe[$e];var ft=Le[$e];if(ft)for(var wt=Object.keys(ft),nt=wt.length,Te=0;Te<nt;Te+=1){var Ge=wt[Te];if(Object.prototype.hasOwnProperty.call(ft,Ge)&&Ge in Pe)return Xe[$e]=ft[Ge],Xe[$e]}return""}var Lt=gt("animationend"),en=gt("transitionend"),Zt=!!(Lt&&en),xt=Lt||"animationend",Ct=en||"transitionend";function pt($e,ft){if(!$e)return null;if(Object(N.a)($e)==="object"){var wt=ft.replace(/-\w/g,function(nt){return nt[1].toUpperCase()});return $e[wt]}return"".concat($e,"-").concat(ft)}var Je="none",Qe="appear",Oe="enter",je="leave",St="none",bt="prepare",Dt="start",Ht="active",_t="end";function Gt($e){var ft=Object(_.useRef)(!1),wt=Object(_.useState)($e),nt=Object(K.a)(wt,2),Te=nt[0],Ge=nt[1];function Be(it){ft.current||Ge(it)}return Object(_.useEffect)(function(){return function(){ft.current=!0}},[]),[Te,Be]}var kt=Object(ke.a)()?_.useLayoutEffect:_.useEffect,fn=kt,mn=function(){var $e=_.useRef(null);function ft(){ht.a.cancel($e.current)}function wt(nt){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;ft();var Ge=Object(ht.a)(function(){Te<=1?nt({isCanceled:function(){return Ge!==$e.current}}):wt(nt,Te-1)});$e.current=Ge}return _.useEffect(function(){return function(){ft()}},[]),[wt,ft]},Tr=[bt,Dt,Ht,_t],Mr=!1,kr=!0;function Un($e){return $e===Ht||$e===_t}var Ra=function($e,ft){var wt=_.useState(St),nt=Object(K.a)(wt,2),Te=nt[0],Ge=nt[1],Be=mn(),it=Object(K.a)(Be,2),st=it[0],Tt=it[1];function dt(){Ge(bt)}return fn(function(){if(Te!==St&&Te!==_t){var Mt=Tr.indexOf(Te),tn=Tr[Mt+1],lt=ft(Te);lt===Mr?Ge(tn):st(function(qe){function Bt(){if(qe.isCanceled())return;Ge(tn)}lt===!0?Bt():Promise.resolve(lt).then(Bt)})}},[$e,Te]),_.useEffect(function(){return function(){Tt()}},[]),[dt,Te]},Xr=function($e){var ft=Object(_.useRef)(),wt=Object(_.useRef)($e);wt.current=$e;var nt=_.useCallback(function(Be){wt.current(Be)},[]);function Te(Be){Be&&(Be.removeEventListener(Ct,nt),Be.removeEventListener(xt,nt))}function Ge(Be){ft.current&&ft.current!==Be&&Te(ft.current),Be&&Be!==ft.current&&(Be.addEventListener(Ct,nt),Be.addEventListener(xt,nt),ft.current=Be)}return _.useEffect(function(){return function(){Te(ft.current)}},[]),[Ge,Te]};function aa($e,ft,wt,nt){var Te=nt.motionEnter,Ge=Te===void 0?!0:Te,Be=nt.motionAppear,it=Be===void 0?!0:Be,st=nt.motionLeave,Tt=st===void 0?!0:st,dt=nt.motionDeadline,Mt=nt.motionLeaveImmediately,tn=nt.onAppearPrepare,lt=nt.onEnterPrepare,qe=nt.onLeavePrepare,Bt=nt.onAppearStart,$t=nt.onEnterStart,cn=nt.onLeaveStart,Kt=nt.onAppearActive,_n=nt.onEnterActive,rn=nt.onLeaveActive,jt=nt.onAppearEnd,An=nt.onEnterEnd,qt=nt.onLeaveEnd,En=nt.onVisibleChanged,kn=Gt(),Yt=Object(K.a)(kn,2),wn=Yt[0],ln=Yt[1],xn=Gt(Je),an=Object(K.a)(xn,2),Vt=an[0],Sn=an[1],hr=Gt(null),pn=Object(K.a)(hr,2),Dn=pn[0],Nn=pn[1],Gn=Object(_.useRef)(!1),yn=Object(_.useRef)(null),Kn=Object(_.useRef)(!1),or=Object(_.useRef)(null);function gr(){var Yn=wt();return Yn||or.current}var Ur=Object(_.useRef)(!1);function er(Yn){var vn=gr();if(Yn&&!Yn.deadline&&Yn.target!==vn)return;var yr;Vt===Qe&&Ur.current?yr=jt==null?void 0:jt(vn,Yn):Vt===Oe&&Ur.current?yr=An==null?void 0:An(vn,Yn):Vt===je&&Ur.current&&(yr=qt==null?void 0:qt(vn,Yn)),yr!==!1&&!Kn.current&&(Sn(Je),Nn(null))}var rr=Xr(er),Lr=Object(K.a)(rr,1),Er=Lr[0],_r=_.useMemo(function(){var Yn,vn,yr;switch(Vt){case"appear":return Yn={},Object(Z.a)(Yn,bt,tn),Object(Z.a)(Yn,Dt,Bt),Object(Z.a)(Yn,Ht,Kt),Yn;case"enter":return vn={},Object(Z.a)(vn,bt,lt),Object(Z.a)(vn,Dt,$t),Object(Z.a)(vn,Ht,_n),vn;case"leave":return yr={},Object(Z.a)(yr,bt,qe),Object(Z.a)(yr,Dt,cn),Object(Z.a)(yr,Ht,rn),yr;default:return{}}},[Vt]),sa=Ra(Vt,function(Yn){if(Yn===bt){var vn=_r[bt];return vn?vn(gr()):Mr}if(vr in _r){var yr;Nn(((yr=_r[vr])===null||yr===void 0?void 0:yr.call(_r,gr(),null))||null)}return vr===Ht&&(Er(gr()),dt>0&&(clearTimeout(yn.current),yn.current=setTimeout(function(){er({deadline:!0})},dt))),kr}),ta=Object(K.a)(sa,2),tr=ta[0],vr=ta[1],ja=Un(vr);Ur.current=ja,fn(function(){ln(ft);var Yn=Gn.current;if(Gn.current=!0,!$e)return;var vn;!Yn&&ft&&it&&(vn=Qe),Yn&&ft&&Ge&&(vn=Oe),(Yn&&!ft&&Tt||!Yn&&Mt&&!ft&&Tt)&&(vn=je),vn&&(Sn(vn),tr())},[ft]),Object(_.useEffect)(function(){(Vt===Qe&&!it||Vt===Oe&&!Ge||Vt===je&&!Tt)&&Sn(Je)},[it,Ge,Tt]),Object(_.useEffect)(function(){return function(){clearTimeout(yn.current),Kn.current=!0}},[]),Object(_.useEffect)(function(){wn!==void 0&&Vt===Je&&(En==null||En(wn))},[wn,Vt]);var ia=Dn;return _r[bt]&&vr===Dt&&(ia=Object(k.a)({transition:"none"},ia)),[Vt,vr,ia,wn!=null?wn:ft]}var Kr=function($e){Object(l.a)(wt,$e);var ft=Object(A.a)(wt);function wt(){return Object(P.a)(this,wt),ft.apply(this,arguments)}return Object(C.a)(wt,[{key:"render",value:function(){return this.props.children}}]),wt}(_.Component),_a=Kr;function di($e){var ft=$e;Object(N.a)($e)==="object"&&(ft=$e.transitionSupport);function wt(Te){return!!(Te.motionName&&ft)}var nt=_.forwardRef(function(Te,Ge){var Be=Te.visible,it=Be===void 0?!0:Be,st=Te.removeOnLeave,Tt=st===void 0?!0:st,dt=Te.forceRender,Mt=Te.children,tn=Te.motionName,lt=Te.leavedClassName,qe=Te.eventProps,Bt=wt(Te),$t=Object(_.useRef)(),cn=Object(_.useRef)();function Kt(){try{return Object(zt.a)($t.current||cn.current)}catch(Sn){return null}}var _n=aa(Bt,it,Kt,Te),rn=Object(K.a)(_n,4),jt=rn[0],An=rn[1],qt=rn[2],En=rn[3],kn=_.useRef(En);En&&(kn.current=!0);var Yt=Object(_.useRef)(Ge);Yt.current=Ge;var wn=_.useCallback(function(Sn){$t.current=Sn,Object(ze.b)(Yt.current,Sn)},[]),ln,xn=Object(k.a)(Object(k.a)({},qe),{},{visible:it});if(!Mt)ln=null;else if(jt===Je||!wt(Te))En?ln=Mt(Object(k.a)({},xn),wn):!Tt&&kn.current?ln=Mt(Object(k.a)(Object(k.a)({},xn),{},{className:lt}),wn):dt?ln=Mt(Object(k.a)(Object(k.a)({},xn),{},{style:{display:"none"}}),wn):ln=null;else{var an,Vt;An===bt?Vt="prepare":Un(An)?Vt="active":An===Dt&&(Vt="start"),ln=Mt(Object(k.a)(Object(k.a)({},xn),{},{className:M()(pt(tn,jt),(an={},Object(Z.a)(an,pt(tn,"".concat(jt,"-").concat(Vt)),Vt),Object(Z.a)(an,tn,typeof tn=="string"),an)),style:qt}),wn)}return _.createElement(_a,{ref:cn},ln)});return nt.displayName="CSSMotion",nt}var Ei=di(Zt),_e="add",Ie="keep",Ye="remove",yt="removed";function Xt($e){var ft;return $e&&Object(N.a)($e)==="object"&&"key"in $e?ft=$e:ft={key:$e},Object(k.a)(Object(k.a)({},ft),{},{key:String(ft.key)})}function sn(){var $e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return $e.map(Xt)}function re(){var $e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],wt=[],nt=0,Te=ft.length,Ge=sn($e),Be=sn(ft);Ge.forEach(function(Tt){for(var dt=!1,Mt=nt;Mt<Te;Mt+=1){var tn=Be[Mt];if(tn.key===Tt.key){nt<Mt&&(wt=wt.concat(Be.slice(nt,Mt).map(function(lt){return Object(k.a)(Object(k.a)({},lt),{},{status:_e})})),nt=Mt),wt.push(Object(k.a)(Object(k.a)({},tn),{},{status:Ie})),nt+=1,dt=!0;break}}dt||wt.push(Object(k.a)(Object(k.a)({},Tt),{},{status:Ye}))}),nt<Te&&(wt=wt.concat(Be.slice(nt).map(function(Tt){return Object(k.a)(Object(k.a)({},Tt),{},{status:_e})})));var it={};wt.forEach(function(Tt){var dt=Tt.key;it[dt]=(it[dt]||0)+1});var st=Object.keys(it).filter(function(Tt){return it[Tt]>1});return st.forEach(function(Tt){wt=wt.filter(function(dt){var Mt=dt.key,tn=dt.status;return Mt!==Tt||tn!==Ye}),wt.forEach(function(dt){dt.key===Tt&&(dt.status=Ie)})}),wt}var W=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function V($e){var ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ei,wt=function(nt){Object(l.a)(Ge,nt);var Te=Object(A.a)(Ge);function Ge(){var Be;return Object(P.a)(this,Ge),Be=Te.apply(this,arguments),Be.state={keyEntities:[]},Be.removeKey=function(it){Be.setState(function(st){var Tt=st.keyEntities;return{keyEntities:Tt.map(function(dt){return dt.key!==it?dt:Object(k.a)(Object(k.a)({},dt),{},{status:yt})})}})},Be}return Object(C.a)(Ge,[{key:"render",value:function(){var it=this,st=this.state.keyEntities,Tt=this.props,dt=Tt.component,Mt=Tt.children,tn=Tt.onVisibleChanged,lt=Object(I.a)(Tt,["component","children","onVisibleChanged"]),qe=dt||_.Fragment,Bt={};return W.forEach(function($t){Bt[$t]=lt[$t],delete lt[$t]}),delete lt.keys,_.createElement(qe,lt,st.map(function($t){var cn=$t.status,Kt=Object(I.a)($t,["status"]),_n=cn===_e||cn===Ie;return _.createElement(ft,Object(w.a)({},Bt,{key:Kt.key,visible:_n,eventProps:Kt,onVisibleChanged:function(jt){tn==null||tn(jt,{key:Kt.key}),jt||it.removeKey(Kt.key)}}),Mt)}))}}],[{key:"getDerivedStateFromProps",value:function(it,st){var Tt=it.keys,dt=st.keyEntities,Mt=sn(Tt),tn=re(dt,Mt);return{keyEntities:tn.filter(function(lt){var qe=dt.find(function(Bt){var $t=Bt.key;return lt.key===$t});return!(qe&&qe.status===yt&<.status===Ye)})}}}]),Ge}(_.Component);return wt.defaultProps={component:"div"},wt}var ne=V(Zt),ve=Ei;function oe($e){var ft=$e.prefixCls,wt=$e.motion,nt=$e.animation,Te=$e.transitionName;return wt||(nt?{motionName:"".concat(ft,"-").concat(nt)}:Te?{motionName:Te}:null)}function et($e){var ft=$e.prefixCls,wt=$e.visible,nt=$e.zIndex,Te=$e.mask,Ge=$e.maskMotion,Be=$e.maskAnimation,it=$e.maskTransitionName;if(!Te)return null;var st={};return(Ge||it||Be)&&(st=Object(k.a)({motionAppear:!0},oe({motion:Ge,prefixCls:ft,transitionName:it,animation:Be}))),_.createElement(ve,Object(w.a)({},st,{visible:wt,removeOnLeave:!0}),function(Tt){var dt=Tt.className;return _.createElement("div",{style:{zIndex:nt},className:M()("".concat(ft,"-mask"),dt)})})}var Qt=v("9mu1"),dn=v("o0o1"),Cn=v.n(dn),Jt=v("HaE+"),Vn=["measure","align",null,"motion"],Xn=function($e,ft){var wt=Object(_.useState)(null),nt=Object(K.a)(wt,2),Te=nt[0],Ge=nt[1],Be=Object(_.useRef)(),it=Object(_.useRef)(!1);function st(Mt){it.current||Ge(Mt)}function Tt(){ht.a.cancel(Be.current)}function dt(Mt){Tt(),Be.current=Object(ht.a)(function(){st(function(tn){switch(Te){case"align":return"motion";case"motion":return"stable";default:}return tn}),Mt==null||Mt()})}return Object(_.useEffect)(function(){st("measure")},[$e]),Object(_.useEffect)(function(){switch(Te){case"measure":ft();break;default:}Te&&(Be.current=Object(ht.a)(Object(Jt.a)(Cn.a.mark(function Mt(){var tn,lt;return Cn.a.wrap(function(Bt){for(;;)switch(Bt.prev=Bt.next){case 0:tn=Vn.indexOf(Te),lt=Vn[tn+1],lt&&tn!==-1&&st(lt);case 3:case"end":return Bt.stop()}},Mt)}))))},[Te]),Object(_.useEffect)(function(){return function(){it.current=!0,Tt()}},[]),[Te,dt]},lr=function($e){var ft=_.useState({width:0,height:0}),wt=Object(K.a)(ft,2),nt=wt[0],Te=wt[1];function Ge(it){Te({width:it.offsetWidth,height:it.offsetHeight})}var Be=_.useMemo(function(){var it={};if($e){var st=nt.width,Tt=nt.height;$e.indexOf("height")!==-1&&Tt?it.height=Tt:$e.indexOf("minHeight")!==-1&&Tt&&(it.minHeight=Tt),$e.indexOf("width")!==-1&&st?it.width=st:$e.indexOf("minWidth")!==-1&&st&&(it.minWidth=st)}return it},[$e,nt]);return[Be,Ge]},Rr=_.forwardRef(function($e,ft){var wt=$e.visible,nt=$e.prefixCls,Te=$e.className,Ge=$e.style,Be=$e.children,it=$e.zIndex,st=$e.stretch,Tt=$e.destroyPopupOnHide,dt=$e.forceRender,Mt=$e.align,tn=$e.point,lt=$e.getRootDomNode,qe=$e.getClassNameFromAlign,Bt=$e.onAlign,$t=$e.onMouseEnter,cn=$e.onMouseLeave,Kt=$e.onMouseDown,_n=$e.onTouchStart,rn=Object(_.useRef)(),jt=Object(_.useRef)(),An=Object(_.useState)(),qt=Object(K.a)(An,2),En=qt[0],kn=qt[1],Yt=lr(st),wn=Object(K.a)(Yt,2),ln=wn[0],xn=wn[1];function an(){st&&xn(lt())}var Vt=Xn(wt,an),Sn=Object(K.a)(Vt,2),hr=Sn[0],pn=Sn[1],Dn=Object(_.useRef)();function Nn(){return tn||lt}function Gn(){var rr;(rr=rn.current)===null||rr===void 0||rr.forceAlign()}function yn(rr,Lr){var Er=qe(Lr);En!==Er&&kn(Er),hr==="align"&&(En!==Er?Promise.resolve().then(function(){Gn()}):pn(function(){var _r;(_r=Dn.current)===null||_r===void 0||_r.call(Dn)}),Bt==null||Bt(rr,Lr))}var Kn=Object(k.a)({},oe($e));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(rr){var Lr=Kn[rr];Kn[rr]=function(Er,_r){return pn(),Lr==null?void 0:Lr(Er,_r)}});function or(){return new Promise(function(rr){Dn.current=rr})}_.useEffect(function(){!Kn.motionName&&hr==="motion"&&pn()},[Kn.motionName,hr]),_.useImperativeHandle(ft,function(){return{forceAlign:Gn,getElement:function(){return jt.current}}});var gr=Object(k.a)(Object(k.a)({},ln),{},{zIndex:it,opacity:hr==="motion"||hr==="stable"||!wt?void 0:0,pointerEvents:hr==="stable"?void 0:"none"},Ge),Ur=!0;(Mt==null?void 0:Mt.points)&&(hr==="align"||hr==="stable")&&(Ur=!1);var er=Be;return _.Children.count(Be)>1&&(er=_.createElement("div",{className:"".concat(nt,"-content")},Be)),_.createElement(ve,Object(w.a)({visible:wt,ref:jt,leavedClassName:"".concat(nt,"-hidden")},Kn,{onAppearPrepare:or,onEnterPrepare:or,removeOnLeave:Tt,forceRender:dt}),function(rr,Lr){var Er=rr.className,_r=rr.style,sa=M()(nt,Te,En,Er);return _.createElement(Qt.a,{target:Nn(),key:"popup",ref:rn,monitorWindowResize:!0,disabled:Ur,align:Mt,onAlign:yn},_.createElement("div",{ref:Lr,className:sa,onMouseEnter:$t,onMouseLeave:cn,onMouseDownCapture:Kt,onTouchStartCapture:_n,style:Object(k.a)(Object(k.a)({},_r),gr)},er))})});Rr.displayName="PopupInner";var qr=Rr,zr=_.forwardRef(function($e,ft){var wt=$e.prefixCls,nt=$e.visible,Te=$e.zIndex,Ge=$e.children,Be=$e.mobile;Be=Be===void 0?{}:Be;var it=Be.popupClassName,st=Be.popupStyle,Tt=Be.popupMotion,dt=Tt===void 0?{}:Tt,Mt=Be.popupRender,tn=_.useRef();_.useImperativeHandle(ft,function(){return{forceAlign:function(){},getElement:function(){return tn.current}}});var lt=Object(k.a)({zIndex:Te},st),qe=Ge;return _.Children.count(Ge)>1&&(qe=_.createElement("div",{className:"".concat(wt,"-content")},Ge)),Mt&&(qe=Mt(qe)),_.createElement(ve,Object(w.a)({visible:nt,ref:tn,removeOnLeave:!0},dt),function(Bt,$t){var cn=Bt.className,Kt=Bt.style,_n=M()(wt,it,cn);return _.createElement("div",{ref:$t,className:_n,style:Object(k.a)(Object(k.a)({},Kt),lt)},qe)})});zr.displayName="MobilePopupInner";var Ca=zr,Dr=["visible","mobile"],ya=_.forwardRef(function($e,ft){var wt=$e.visible,nt=$e.mobile,Te=Object(I.a)($e,Dr),Ge=Object(_.useState)(wt),Be=Object(K.a)(Ge,2),it=Be[0],st=Be[1],Tt=Object(_.useState)(!1),dt=Object(K.a)(Tt,2),Mt=dt[0],tn=dt[1],lt=Object(k.a)(Object(k.a)({},Te),{},{visible:it});Object(_.useEffect)(function(){st(wt),wt&&nt&&tn(Ze())},[wt,nt]);var qe=Mt?_.createElement(Ca,Object(w.a)({},lt,{mobile:nt,ref:ft})):_.createElement(qr,Object(w.a)({},lt,{ref:ft}));return _.createElement("div",null,_.createElement(et,lt),qe)});ya.displayName="Popup";var ka=ya,fi=_.createContext(null),Ka=fi;function qa(){}function Si(){return""}function pi($e){return $e?$e.ownerDocument:window.document}var ui=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function mi($e){var ft=function(wt){Object(l.a)(Te,wt);var nt=Object(A.a)(Te);function Te(Ge){var Be;Object(P.a)(this,Te),Be=nt.call(this,Ge),Be.popupRef=_.createRef(),Be.triggerRef=_.createRef(),Be.attachId=void 0,Be.clickOutsideHandler=void 0,Be.touchOutsideHandler=void 0,Be.contextMenuOutsideHandler1=void 0,Be.contextMenuOutsideHandler2=void 0,Be.mouseDownTimeout=void 0,Be.focusTime=void 0,Be.preClickTime=void 0,Be.preTouchTime=void 0,Be.delayTimer=void 0,Be.hasPopupMouseDown=void 0,Be.onMouseEnter=function(st){var Tt=Be.props.mouseEnterDelay;Be.fireEvents("onMouseEnter",st),Be.delaySetPopupVisible(!0,Tt,Tt?null:st)},Be.onMouseMove=function(st){Be.fireEvents("onMouseMove",st),Be.setPoint(st)},Be.onMouseLeave=function(st){Be.fireEvents("onMouseLeave",st),Be.delaySetPopupVisible(!1,Be.props.mouseLeaveDelay)},Be.onPopupMouseEnter=function(){Be.clearDelayTimer()},Be.onPopupMouseLeave=function(st){var Tt;if(st.relatedTarget&&!st.relatedTarget.setTimeout&&Object(Ut.a)((Tt=Be.popupRef.current)===null||Tt===void 0?void 0:Tt.getElement(),st.relatedTarget))return;Be.delaySetPopupVisible(!1,Be.props.mouseLeaveDelay)},Be.onFocus=function(st){Be.fireEvents("onFocus",st),Be.clearDelayTimer(),Be.isFocusToShow()&&(Be.focusTime=Date.now(),Be.delaySetPopupVisible(!0,Be.props.focusDelay))},Be.onMouseDown=function(st){Be.fireEvents("onMouseDown",st),Be.preClickTime=Date.now()},Be.onTouchStart=function(st){Be.fireEvents("onTouchStart",st),Be.preTouchTime=Date.now()},Be.onBlur=function(st){Be.fireEvents("onBlur",st),Be.clearDelayTimer(),Be.isBlurToHide()&&Be.delaySetPopupVisible(!1,Be.props.blurDelay)},Be.onContextMenu=function(st){st.preventDefault(),Be.fireEvents("onContextMenu",st),Be.setPopupVisible(!0,st)},Be.onContextMenuClose=function(){Be.isContextMenuToShow()&&Be.close()},Be.onClick=function(st){if(Be.fireEvents("onClick",st),Be.focusTime){var Tt;if(Be.preClickTime&&Be.preTouchTime?Tt=Math.min(Be.preClickTime,Be.preTouchTime):Be.preClickTime?Tt=Be.preClickTime:Be.preTouchTime&&(Tt=Be.preTouchTime),Math.abs(Tt-Be.focusTime)<20)return;Be.focusTime=0}Be.preClickTime=0,Be.preTouchTime=0,Be.isClickToShow()&&(Be.isClickToHide()||Be.isBlurToHide())&&st&&st.preventDefault&&st.preventDefault();var dt=!Be.state.popupVisible;(Be.isClickToHide()&&!dt||dt&&Be.isClickToShow())&&Be.setPopupVisible(!Be.state.popupVisible,st)},Be.onPopupMouseDown=function(){if(Be.hasPopupMouseDown=!0,clearTimeout(Be.mouseDownTimeout),Be.mouseDownTimeout=window.setTimeout(function(){Be.hasPopupMouseDown=!1},0),Be.context){var st;(st=Be.context).onPopupMouseDown.apply(st,arguments)}},Be.onDocumentClick=function(st){if(Be.props.mask&&!Be.props.maskClosable)return;var Tt=st.target,dt=Be.getRootDomNode(),Mt=Be.getPopupDomNode();(!Object(Ut.a)(dt,Tt)||Be.isContextMenuOnly())&&!Object(Ut.a)(Mt,Tt)&&!Be.hasPopupMouseDown&&Be.close()},Be.getRootDomNode=function(){var st=Be.props.getTriggerDOMNode;if(st)return st(Be.triggerRef.current);try{var Tt=Object(zt.a)(Be.triggerRef.current);if(Tt)return Tt}catch(dt){}return Rt.a.findDOMNode(Object(b.a)(Be))},Be.getPopupClassNameFromAlign=function(st){var Tt=[],dt=Be.props,Mt=dt.popupPlacement,tn=dt.builtinPlacements,lt=dt.prefixCls,qe=dt.alignPoint,Bt=dt.getPopupClassNameFromAlign;return Mt&&tn&&Tt.push(vt(tn,lt,st,qe)),Bt&&Tt.push(Bt(st)),Tt.join(" ")},Be.getComponent=function(){var st=Be.props,Tt=st.prefixCls,dt=st.destroyPopupOnHide,Mt=st.popupClassName,tn=st.onPopupAlign,lt=st.popupMotion,qe=st.popupAnimation,Bt=st.popupTransitionName,$t=st.popupStyle,cn=st.mask,Kt=st.maskAnimation,_n=st.maskTransitionName,rn=st.maskMotion,jt=st.zIndex,An=st.popup,qt=st.stretch,En=st.alignPoint,kn=st.mobile,Yt=st.forceRender,wn=Be.state,ln=wn.popupVisible,xn=wn.point,an=Be.getPopupAlign(),Vt={};return Be.isMouseEnterToShow()&&(Vt.onMouseEnter=Be.onPopupMouseEnter),Be.isMouseLeaveToHide()&&(Vt.onMouseLeave=Be.onPopupMouseLeave),Vt.onMouseDown=Be.onPopupMouseDown,Vt.onTouchStart=Be.onPopupMouseDown,_.createElement(ka,Object(w.a)({prefixCls:Tt,destroyPopupOnHide:dt,visible:ln,point:En&&xn,className:Mt,align:an,onAlign:tn,animation:qe,getClassNameFromAlign:Be.getPopupClassNameFromAlign},Vt,{stretch:qt,getRootDomNode:Be.getRootDomNode,style:$t,mask:cn,zIndex:jt,transitionName:Bt,maskAnimation:Kt,maskTransitionName:_n,maskMotion:rn,ref:Be.popupRef,motion:lt,mobile:kn,forceRender:Yt}),typeof An=="function"?An():An)},Be.attachParent=function(st){ht.a.cancel(Be.attachId);var Tt=Be.props,dt=Tt.getPopupContainer,Mt=Tt.getDocument,tn=Be.getRootDomNode(),lt;dt?(tn||dt.length===0)&&(lt=dt(tn)):lt=Mt(Be.getRootDomNode()).body,lt?lt.appendChild(st):Be.attachId=Object(ht.a)(function(){Be.attachParent(st)})},Be.getContainer=function(){var st=Be.props.getDocument,Tt=st(Be.getRootDomNode()).createElement("div");return Tt.style.position="absolute",Tt.style.top="0",Tt.style.left="0",Tt.style.width="100%",Be.attachParent(Tt),Tt},Be.setPoint=function(st){var Tt=Be.props.alignPoint;if(!Tt||!st)return;Be.setState({point:{pageX:st.pageX,pageY:st.pageY}})},Be.handlePortalUpdate=function(){Be.state.prevPopupVisible!==Be.state.popupVisible&&Be.props.afterPopupVisibleChange(Be.state.popupVisible)},Be.triggerContextValue={onPopupMouseDown:Be.onPopupMouseDown};var it;return"popupVisible"in Ge?it=!!Ge.popupVisible:it=!!Ge.defaultPopupVisible,Be.state={prevPopupVisible:it,popupVisible:it},ui.forEach(function(st){Be["fire".concat(st)]=function(Tt){Be.fireEvents(st,Tt)}}),Be}return Object(C.a)(Te,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Be=this.props,it=this.state;if(it.popupVisible){var st;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(st=Be.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(Ve.a)(st,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(st=st||Be.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(Ve.a)(st,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(st=st||Be.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(Ve.a)(st,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(Ve.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),ht.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var Be;return((Be=this.popupRef.current)===null||Be===void 0?void 0:Be.getElement())||null}},{key:"getPopupAlign",value:function(){var Be=this.props,it=Be.popupPlacement,st=Be.popupAlign,Tt=Be.builtinPlacements;return it&&Tt?ut(Tt,it,st):st}},{key:"setPopupVisible",value:function(Be,it){var st=this.props.alignPoint,Tt=this.state.popupVisible;this.clearDelayTimer(),Tt!==Be&&("popupVisible"in this.props||this.setState({popupVisible:Be,prevPopupVisible:Tt}),this.props.onPopupVisibleChange(Be)),st&&it&&Be&&this.setPoint(it)}},{key:"delaySetPopupVisible",value:function(Be,it,st){var Tt=this,dt=it*1e3;if(this.clearDelayTimer(),dt){var Mt=st?{pageX:st.pageX,pageY:st.pageY}:null;this.delayTimer=window.setTimeout(function(){Tt.setPopupVisible(Be,Mt),Tt.clearDelayTimer()},dt)}else this.setPopupVisible(Be,st)}},{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(Be){var it=this.props.children.props,st=this.props;return it[Be]&&st[Be]?this["fire".concat(Be)]:it[Be]||st[Be]}},{key:"isClickToShow",value:function(){var Be=this.props,it=Be.action,st=Be.showAction;return it.indexOf("click")!==-1||st.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var Be=this.props.action;return Be==="contextMenu"||Be.length===1&&Be[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var Be=this.props,it=Be.action,st=Be.showAction;return it.indexOf("contextMenu")!==-1||st.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var Be=this.props,it=Be.action,st=Be.hideAction;return it.indexOf("click")!==-1||st.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var Be=this.props,it=Be.action,st=Be.showAction;return it.indexOf("hover")!==-1||st.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var Be=this.props,it=Be.action,st=Be.hideAction;return it.indexOf("hover")!==-1||st.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var Be=this.props,it=Be.action,st=Be.showAction;return it.indexOf("focus")!==-1||st.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var Be=this.props,it=Be.action,st=Be.hideAction;return it.indexOf("focus")!==-1||st.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var Be;(Be=this.popupRef.current)===null||Be===void 0||Be.forceAlign()}}},{key:"fireEvents",value:function(Be,it){var st=this.props.children.props[Be];st&&st(it);var Tt=this.props[Be];Tt&&Tt(it)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var Be=this.state.popupVisible,it=this.props,st=it.children,Tt=it.forceRender,dt=it.alignPoint,Mt=it.className,tn=it.autoDestroy,lt=_.Children.only(st),qe={key:"trigger"};this.isContextMenuToShow()?qe.onContextMenu=this.onContextMenu:qe.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(qe.onClick=this.onClick,qe.onMouseDown=this.onMouseDown,qe.onTouchStart=this.onTouchStart):(qe.onClick=this.createTwoChains("onClick"),qe.onMouseDown=this.createTwoChains("onMouseDown"),qe.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(qe.onMouseEnter=this.onMouseEnter,dt&&(qe.onMouseMove=this.onMouseMove)):qe.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?qe.onMouseLeave=this.onMouseLeave:qe.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(qe.onFocus=this.onFocus,qe.onBlur=this.onBlur):(qe.onFocus=this.createTwoChains("onFocus"),qe.onBlur=this.createTwoChains("onBlur"));var Bt=M()(lt&<.props&<.props.className,Mt);Bt&&(qe.className=Bt);var $t=Object(k.a)({},qe);Object(ze.c)(lt)&&($t.ref=Object(ze.a)(this.triggerRef,lt.ref));var cn=_.cloneElement(lt,$t),Kt;return(Be||this.popupRef.current||Tt)&&(Kt=_.createElement($e,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!Be&&tn&&(Kt=null),_.createElement(Ka.Provider,{value:this.triggerContextValue},cn,Kt)}}],[{key:"getDerivedStateFromProps",value:function(Be,it){var st=Be.popupVisible,Tt={};return st!==void 0&&it.popupVisible!==st&&(Tt.popupVisible=st,Tt.prevPopupVisible=it.popupVisible),Tt}}]),Te}(_.Component);return ft.contextType=Ka,ft.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Si,getDocument:pi,onPopupVisibleChange:qa,afterPopupVisibleChange:qa,onPopupAlign:qa,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},ft}var _i=mi(Et.a),ai={adjustX:1,adjustY:1},Hi={topLeft:{points:["bl","tl"],overflow:ai,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ai,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:ai,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:ai,offset:[4,0]}},Yi={topLeft:{points:["bl","tl"],overflow:ai,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ai,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:ai,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:ai,offset:[4,0]}},$r=Hi,ua=0,Pr={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},ca=function(ft,wt,nt){var Te=xe(wt),Ge=ft.getState();ft.setState({defaultActiveFirst:Object(k.a)(Object(k.a)({},Ge.defaultActiveFirst),{},Object(Z.a)({},Te,nt))})},Jr=function($e){Object(l.a)(wt,$e);var ft=Object(A.a)(wt);function wt(nt){var Te;Object(P.a)(this,wt),Te=ft.call(this,nt),Te.onDestroy=function(dt){Te.props.onDestroy(dt)},Te.onKeyDown=function(dt){var Mt=dt.keyCode,tn=Te.menuInstance,lt=Te.props.store,qe=Te.getVisible();if(Mt===u.a.ENTER)return Te.onTitleClick(dt),ca(lt,Te.props.eventKey,!0),!0;if(Mt===u.a.RIGHT)return qe?tn.onKeyDown(dt):(Te.triggerOpenChange(!0),ca(lt,Te.props.eventKey,!0)),!0;if(Mt===u.a.LEFT){var Bt;if(qe)Bt=tn.onKeyDown(dt);else return;return Bt||(Te.triggerOpenChange(!1),Bt=!0),Bt}return qe&&(Mt===u.a.UP||Mt===u.a.DOWN)?tn.onKeyDown(dt):void 0},Te.onOpenChange=function(dt){Te.props.onOpenChange(dt)},Te.onPopupVisibleChange=function(dt){Te.triggerOpenChange(dt,dt?"mouseenter":"mouseleave")},Te.onMouseEnter=function(dt){var Mt=Te.props,tn=Mt.eventKey,lt=Mt.onMouseEnter,qe=Mt.store;ca(qe,Te.props.eventKey,!1),lt({key:tn,domEvent:dt})},Te.onMouseLeave=function(dt){var Mt=Te.props,tn=Mt.parentMenu,lt=Mt.eventKey,qe=Mt.onMouseLeave;tn.subMenuInstance=Object(b.a)(Te),qe({key:lt,domEvent:dt})},Te.onTitleMouseEnter=function(dt){var Mt=Te.props,tn=Mt.eventKey,lt=Mt.onItemHover,qe=Mt.onTitleMouseEnter;lt({key:tn,hover:!0}),qe({key:tn,domEvent:dt})},Te.onTitleMouseLeave=function(dt){var Mt=Te.props,tn=Mt.parentMenu,lt=Mt.eventKey,qe=Mt.onItemHover,Bt=Mt.onTitleMouseLeave;tn.subMenuInstance=Object(b.a)(Te),qe({key:lt,hover:!1}),Bt({key:lt,domEvent:dt})},Te.onTitleClick=function(dt){var Mt=Object(b.a)(Te),tn=Mt.props;if(tn.onTitleClick({key:tn.eventKey,domEvent:dt}),tn.triggerSubMenuAction==="hover")return;Te.triggerOpenChange(!Te.getVisible(),"click"),ca(tn.store,Te.props.eventKey,!1)},Te.onSubMenuClick=function(dt){typeof Te.props.onClick=="function"&&Te.props.onClick(Te.addKeyPath(dt))},Te.onSelect=function(dt){Te.props.onSelect(dt)},Te.onDeselect=function(dt){Te.props.onDeselect(dt)},Te.getPrefixCls=function(){return"".concat(Te.props.rootPrefixCls,"-submenu")},Te.getActiveClassName=function(){return"".concat(Te.getPrefixCls(),"-active")},Te.getDisabledClassName=function(){return"".concat(Te.getPrefixCls(),"-disabled")},Te.getSelectedClassName=function(){return"".concat(Te.getPrefixCls(),"-selected")},Te.getOpenClassName=function(){return"".concat(Te.props.rootPrefixCls,"-submenu-open")},Te.getVisible=function(){return Te.state.isOpen},Te.getMode=function(){return Te.state.mode},Te.saveMenuInstance=function(dt){Te.menuInstance=dt},Te.addKeyPath=function(dt){return Object(k.a)(Object(k.a)({},dt),{},{keyPath:(dt.keyPath||[]).concat(Te.props.eventKey)})},Te.triggerOpenChange=function(dt,Mt){var tn=Te.props.eventKey,lt=function(){Te.onOpenChange({key:tn,item:Object(b.a)(Te),trigger:Mt,open:dt})};Mt==="mouseenter"?Te.mouseenterTimeout=setTimeout(function(){lt()},0):lt()},Te.isChildrenSelected=function(){var dt={find:!1};return tt(Te.props.children,Te.props.selectedKeys,dt),dt.find},Te.isInlineMode=function(){return Te.getMode()==="inline"},Te.adjustWidth=function(){if(!Te.subMenuTitle||!Te.menuInstance)return;var dt=mt.findDOMNode(Te.menuInstance);if(dt.offsetWidth>=Te.subMenuTitle.offsetWidth)return;dt.style.minWidth="".concat(Te.subMenuTitle.offsetWidth,"px")},Te.saveSubMenuTitle=function(dt){Te.subMenuTitle=dt},Te.getBaseProps=function(){var dt=Object(b.a)(Te),Mt=dt.props,tn=Te.getMode();return{mode:tn==="horizontal"?"vertical":tn,visible:Te.getVisible(),level:Mt.level+1,inlineIndent:Mt.inlineIndent,focusable:!1,onClick:Te.onSubMenuClick,onSelect:Te.onSelect,onDeselect:Te.onDeselect,onDestroy:Te.onDestroy,selectedKeys:Mt.selectedKeys,eventKey:"".concat(Mt.eventKey,"-menu-"),openKeys:Mt.openKeys,motion:Mt.motion,onOpenChange:Te.onOpenChange,subMenuOpenDelay:Mt.subMenuOpenDelay,parentMenu:Object(b.a)(Te),subMenuCloseDelay:Mt.subMenuCloseDelay,forceSubMenuRender:Mt.forceSubMenuRender,triggerSubMenuAction:Mt.triggerSubMenuAction,builtinPlacements:Mt.builtinPlacements,defaultActiveFirst:Mt.store.getState().defaultActiveFirst[xe(Mt.eventKey)],multiple:Mt.multiple,prefixCls:Mt.rootPrefixCls,id:Te.internalMenuId,manualRef:Te.saveMenuInstance,itemIcon:Mt.itemIcon,expandIcon:Mt.expandIcon,direction:Mt.direction}},Te.getMotion=function(dt,Mt){var tn=Object(b.a)(Te),lt=tn.haveRendered,qe=Te.props,Bt=qe.motion,$t=qe.rootPrefixCls,cn=Object(k.a)(Object(k.a)({},Bt),{},{leavedClassName:"".concat($t,"-hidden"),removeOnLeave:!1,motionAppear:lt||!Mt||dt!=="inline"});return cn};var Ge=nt.store,Be=nt.eventKey,it=Ge.getState(),st=it.defaultActiveFirst;Te.isRootMenu=!1;var Tt=!1;return st&&(Tt=st[Be]),ca(Ge,Be,Tt),Te.state={mode:nt.mode,isOpen:nt.isOpen},Te}return Object(C.a)(wt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Te=this,Ge=this.props,Be=Ge.mode,it=Ge.parentMenu,st=Ge.manualRef,Tt=Ge.isOpen,dt=function(){Te.setState({mode:Be,isOpen:Tt})},Mt=Tt!==this.state.isOpen,tn=Be!==this.state.mode;if((tn||Mt)&&(ht.a.cancel(this.updateStateRaf),tn?this.updateStateRaf=Object(ht.a)(dt):dt()),st&&st(this),Be!=="horizontal"||!(it==null?void 0:it.isRootMenu)||!Tt)return;this.minWidthTimeout=setTimeout(function(){return Te.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var Te=this.props,Ge=Te.onDestroy,Be=Te.eventKey;Ge&&Ge(Be),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),ht.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(Te,Ge){var Be=this.getBaseProps();return _.createElement(ws,Object(w.a)({},Be,{id:this.internalMenuId,className:Te,style:Ge}),this.props.children)}},{key:"renderChildren",value:function(){var Te=this,Ge=this.getBaseProps(),Be=Ge.mode,it=Ge.visible,st=Ge.forceSubMenuRender,Tt=Ge.direction,dt=this.getMotion(Be,it);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||it||st,!this.haveOpened)return _.createElement("div",null);var Mt=M()("".concat(Ge.prefixCls,"-sub"),Object(Z.a)({},"".concat(Ge.prefixCls,"-rtl"),Tt==="rtl"));return this.isInlineMode()?_.createElement(ve,Object(w.a)({visible:Ge.visible,forceRender:st},dt),function(tn){var lt=tn.className,qe=tn.style,Bt=M()(Mt,lt);return Te.renderPopupMenu(Bt,qe)}):this.renderPopupMenu(Mt)}},{key:"render",value:function(){var Te,Ge,Be,it=Object(k.a)({},this.props),st=this.getVisible(),Tt=this.getPrefixCls(),dt=this.isInlineMode(),Mt=this.getMode(),tn=M()(Tt,"".concat(Tt,"-").concat(Mt),(Te={},Object(Z.a)(Te,it.className,!!it.className),Object(Z.a)(Te,this.getOpenClassName(),st),Object(Z.a)(Te,this.getActiveClassName(),it.active||st&&!dt),Object(Z.a)(Te,this.getDisabledClassName(),it.disabled),Object(Z.a)(Te,this.getSelectedClassName(),this.isChildrenSelected()),Te));this.internalMenuId||(it.eventKey?this.internalMenuId="".concat(it.eventKey,"$Menu"):(ua+=1,this.internalMenuId="$__$".concat(ua,"$Menu")));var lt={},qe={},Bt={};it.disabled||(lt={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},qe={onClick:this.onTitleClick},Bt={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var $t={},cn=it.direction,Kt=cn==="rtl";dt&&(Kt?$t.paddingRight=it.inlineIndent*it.level:$t.paddingLeft=it.inlineIndent*it.level);var _n={};this.getVisible()&&(_n={"aria-owns":this.internalMenuId});var rn=null;Mt!=="horizontal"&&(rn=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(rn=_.createElement(this.props.expandIcon,Object(k.a)({},this.props))));var jt=_.createElement("div",Object(w.a)({ref:this.saveSubMenuTitle,style:$t,className:"".concat(Tt,"-title"),role:"button"},Bt,qe,{"aria-expanded":st},_n,{"aria-haspopup":"true",title:typeof it.title=="string"?it.title:void 0}),it.title,rn||_.createElement("i",{className:"".concat(Tt,"-arrow")})),An=this.renderChildren(),qt=((Ge=it.parentMenu)===null||Ge===void 0?void 0:Ge.isRootMenu)?it.parentMenu.props.getPopupContainer:function(Nn){return Nn.parentNode},En=Pr[Mt],kn=it.popupOffset?{offset:it.popupOffset}:{},Yt=M()((Be={},Object(Z.a)(Be,it.popupClassName,it.popupClassName&&!dt),Object(Z.a)(Be,"".concat(Tt,"-rtl"),Kt),Be)),wn=it.disabled,ln=it.triggerSubMenuAction,xn=it.subMenuOpenDelay,an=it.forceSubMenuRender,Vt=it.subMenuCloseDelay,Sn=it.builtinPlacements;he.forEach(function(Nn){return delete it[Nn]}),delete it.onClick;var hr=Kt?Object(k.a)(Object(k.a)({},Yi),Sn):Object(k.a)(Object(k.a)({},Hi),Sn);delete it.direction;var pn=this.getBaseProps(),Dn=dt?null:this.getMotion(pn.mode,pn.visible);return _.createElement("li",Object(w.a)({},it,lt,{className:tn,role:"menuitem"}),_.createElement(_i,{prefixCls:Tt,popupClassName:M()("".concat(Tt,"-popup"),Yt),getPopupContainer:qt,builtinPlacements:hr,popupPlacement:En,popupVisible:dt?!1:st,popupAlign:kn,popup:dt?null:An,action:wn||dt?[]:[ln],mouseEnterDelay:xn,mouseLeaveDelay:Vt,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:an,popupMotion:Dn},jt),dt?An:null)}}]),wt}(_.Component);Jr.defaultProps={onMouseEnter:pe,onMouseLeave:pe,onTitleMouseEnter:pe,onTitleMouseLeave:pe,onTitleClick:pe,manualRef:pe,mode:"vertical",title:""};var ri=Object(g.b)(function($e,ft){var wt=$e.openKeys,nt=$e.activeKey,Te=$e.selectedKeys,Ge=ft.eventKey,Be=ft.subMenuKey;return{isOpen:wt.indexOf(Ge)>-1,active:nt[Be]===Ge,selectedKeys:Te}})(Jr);ri.isSubMenu=!0;var pa=ri,mo="menuitem-overflowed",Di=.5,ci=function($e){Object(l.a)(wt,$e);var ft=Object(A.a)(wt);function wt(){var nt;return Object(P.a)(this,wt),nt=ft.apply(this,arguments),nt.resizeObserver=null,nt.mutationObserver=null,nt.originalTotalWidth=0,nt.overflowedItems=[],nt.menuItemSizes=[],nt.cancelFrameId=null,nt.state={lastVisibleIndex:void 0},nt.childRef=_.createRef(),nt.getMenuItemNodes=function(){var Te=nt.props.prefixCls,Ge=nt.childRef.current;return Ge?[].slice.call(Ge.children).filter(function(Be){return Be.className.split(" ").indexOf("".concat(Te,"-overflowed-submenu"))<0}):[]},nt.getOverflowedSubMenuItem=function(Te,Ge,Be){var it=nt.props,st=it.overflowedIndicator,Tt=it.level,dt=it.mode,Mt=it.prefixCls,tn=it.theme;if(Tt!==1||dt!=="horizontal")return null;var lt=nt.props.children[0],qe=lt.props,Bt=qe.children,$t=qe.title,cn=qe.style,Kt=Object(I.a)(qe,["children","title","style"]),_n=Object(k.a)({},cn),rn="".concat(Te,"-overflowed-indicator"),jt="".concat(Te,"-overflowed-indicator");Ge.length===0&&Be!==!0?_n=Object(k.a)(Object(k.a)({},_n),{},{display:"none"}):Be&&(_n=Object(k.a)(Object(k.a)({},_n),{},{visibility:"hidden",position:"absolute"}),rn="".concat(rn,"-placeholder"),jt="".concat(jt,"-placeholder"));var An=tn?"".concat(Mt,"-").concat(tn):"",qt={};return he.forEach(function(En){Kt[En]!==void 0&&(qt[En]=Kt[En])}),_.createElement(pa,Object(w.a)({title:st,className:"".concat(Mt,"-overflowed-submenu"),popupClassName:An},qt,{key:rn,eventKey:jt,disabled:!1,style:_n}),Ge)},nt.setChildrenWidthAndResize=function(){if(nt.props.mode!=="horizontal")return;var Te=nt.childRef.current;if(!Te)return;var Ge=Te.children;if(!Ge||Ge.length===0)return;var Be=Te.children[Ge.length-1];Ue(Be,"display","inline-block");var it=nt.getMenuItemNodes(),st=it.filter(function(Tt){return Tt.className.split(" ").indexOf(mo)>=0});st.forEach(function(Tt){Ue(Tt,"display","inline-block")}),nt.menuItemSizes=it.map(function(Tt){return Se(Tt,!0)}),st.forEach(function(Tt){Ue(Tt,"display","none")}),nt.overflowedIndicatorWidth=Se(Te.children[Te.children.length-1],!0),nt.originalTotalWidth=nt.menuItemSizes.reduce(function(Tt,dt){return Tt+dt},0),nt.handleResize(),Ue(Be,"display","none")},nt.handleResize=function(){if(nt.props.mode!=="horizontal")return;var Te=nt.childRef.current;if(!Te)return;var Ge=Se(Te);nt.overflowedItems=[];var Be=0,it;nt.originalTotalWidth>Ge+Di&&(it=-1,nt.menuItemSizes.forEach(function(st){Be+=st,Be+nt.overflowedIndicatorWidth<=Ge&&(it+=1)})),nt.setState({lastVisibleIndex:it})},nt}return Object(C.a)(wt,[{key:"componentDidMount",value:function(){var Te=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Ge=this.childRef.current;if(!Ge)return;this.resizeObserver=new ct.default(function(Be){Be.forEach(function(){var it=Te.cancelFrameId;cancelAnimationFrame(it),Te.cancelFrameId=requestAnimationFrame(Te.setChildrenWidthAndResize)})}),[].slice.call(Ge.children).concat(Ge).forEach(function(Be){Te.resizeObserver.observe(Be)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){Te.resizeObserver.disconnect(),[].slice.call(Ge.children).concat(Ge).forEach(function(Be){Te.resizeObserver.observe(Be)}),Te.setChildrenWidthAndResize()}),this.mutationObserver.observe(Ge,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(Te){var Ge=this,Be=this.state.lastVisibleIndex;return(Te||[]).reduce(function(it,st,Tt){var dt=st;if(Ge.props.mode==="horizontal"){var Mt=Ge.getOverflowedSubMenuItem(st.props.eventKey,[]);Be!==void 0&&Ge.props.className.indexOf("".concat(Ge.props.prefixCls,"-root"))!==-1&&(Tt>Be&&(dt=_.cloneElement(st,{style:{display:"none"},eventKey:"".concat(st.props.eventKey,"-hidden"),className:"".concat(mo)})),Tt===Be+1&&(Ge.overflowedItems=Te.slice(Be+1).map(function(lt){return _.cloneElement(lt,{key:lt.props.eventKey,mode:"vertical-left"})}),Mt=Ge.getOverflowedSubMenuItem(st.props.eventKey,Ge.overflowedItems)));var tn=[].concat(Object(p.a)(it),[Mt,dt]);return Tt===Te.length-1&&tn.push(Ge.getOverflowedSubMenuItem(st.props.eventKey,[],!0)),tn}return[].concat(Object(p.a)(it),[dt])},[])}},{key:"render",value:function(){var Te=this.props,Ge=Te.visible,Be=Te.prefixCls,it=Te.overflowedIndicator,st=Te.mode,Tt=Te.level,dt=Te.tag,Mt=Te.children,tn=Te.theme,lt=Object(I.a)(Te,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),qe=dt;return _.createElement(qe,Object(w.a)({ref:this.childRef},lt),this.renderChildren(Mt))}}]),wt}(_.Component);ci.defaultProps={tag:"div",className:""};var Wo=ci;function Mo($e){return $e.length?$e.every(function(ft){return!!ft.props.disabled}):!0}function ii($e,ft,wt){var nt=$e.getState();$e.setState({activeKey:Object(k.a)(Object(k.a)({},nt.activeKey),{},Object(Z.a)({},ft,wt))})}function go($e){return $e.eventKey||"0-menu-"}function no($e,ft){var wt=ft,nt=$e.children,Te=$e.eventKey;if(wt){var Ge;if(Ke(nt,function(Be,it){Be&&Be.props&&!Be.props.disabled&&wt===Me(Be,Te,it)&&(Ge=!0)}),Ge)return wt}return wt=null,$e.defaultActiveFirst&&Ke(nt,function(Be,it){!wt&&Be&&!Be.props.disabled&&(wt=Me(Be,Te,it))}),wt}function hs($e){if(!$e)return;var ft=this.instanceArray.indexOf($e);ft!==-1?this.instanceArray[ft]=$e:this.instanceArray.push($e)}var xo=function($e){Object(l.a)(wt,$e);var ft=Object(A.a)(wt);function wt(nt){var Te;return Object(P.a)(this,wt),Te=ft.call(this,nt),Te.onKeyDown=function(Ge,Be){var it=Ge.keyCode,st;if(Te.getFlatInstanceArray().forEach(function(dt){dt&&dt.props.active&&dt.onKeyDown&&(st=dt.onKeyDown(Ge))}),st)return 1;var Tt=null;return(it===u.a.UP||it===u.a.DOWN)&&(Tt=Te.step(it===u.a.UP?-1:1)),Tt?(Ge.preventDefault(),ii(Te.props.store,go(Te.props),Tt.props.eventKey),typeof Be=="function"&&Be(Tt),1):void 0},Te.onItemHover=function(Ge){var Be=Ge.key,it=Ge.hover;ii(Te.props.store,go(Te.props),it?Be:null)},Te.onDeselect=function(Ge){Te.props.onDeselect(Ge)},Te.onSelect=function(Ge){Te.props.onSelect(Ge)},Te.onClick=function(Ge){Te.props.onClick(Ge)},Te.onOpenChange=function(Ge){Te.props.onOpenChange(Ge)},Te.onDestroy=function(Ge){Te.props.onDestroy(Ge)},Te.getFlatInstanceArray=function(){return Te.instanceArray},Te.step=function(Ge){var Be=Te.getFlatInstanceArray(),it=Te.props.store.getState().activeKey[go(Te.props)],st=Be.length;if(!st)return null;Ge<0&&(Be=Be.concat().reverse());var Tt=-1;if(Be.every(function(lt,qe){return lt&<.props.eventKey===it?(Tt=qe,!1):!0}),!Te.props.defaultActiveFirst&&Tt!==-1&&Mo(Be.slice(Tt,st-1)))return;var dt=(Tt+1)%st,Mt=dt;do{var tn=Be[Mt];if(!tn||tn.props.disabled)Mt=(Mt+1)%st;else return tn}while(Mt!==dt);return null},Te.renderCommonMenuItem=function(Ge,Be,it){var st=Te.props.store.getState(),Tt=Object(b.a)(Te),dt=Tt.props,Mt=Me(Ge,dt.eventKey,Be),tn=Ge.props;if(!tn||typeof Ge.type=="string")return Ge;var lt=Mt===st.activeKey,qe=Object(k.a)(Object(k.a)({mode:tn.mode||dt.mode,level:dt.level,inlineIndent:dt.inlineIndent,renderMenuItem:Te.renderMenuItem,rootPrefixCls:dt.prefixCls,index:Be,parentMenu:dt.parentMenu,manualRef:tn.disabled?void 0:Object(m.a)(Ge.ref,hs.bind(Object(b.a)(Te))),eventKey:Mt,active:!tn.disabled&<,multiple:dt.multiple,onClick:function($t){(tn.onClick||pe)($t),Te.onClick($t)},onItemHover:Te.onItemHover,motion:dt.motion,subMenuOpenDelay:dt.subMenuOpenDelay,subMenuCloseDelay:dt.subMenuCloseDelay,forceSubMenuRender:dt.forceSubMenuRender,onOpenChange:Te.onOpenChange,onDeselect:Te.onDeselect,onSelect:Te.onSelect,builtinPlacements:dt.builtinPlacements,itemIcon:tn.itemIcon||Te.props.itemIcon,expandIcon:tn.expandIcon||Te.props.expandIcon},it),{},{direction:dt.direction});return(dt.mode==="inline"||Ne())&&(qe.triggerSubMenuAction="click"),_.cloneElement(Ge,Object(k.a)(Object(k.a)({},qe),{},{key:Mt||Be}))},Te.renderMenuItem=function(Ge,Be,it){if(!Ge)return null;var st=Te.props.store.getState(),Tt={openKeys:st.openKeys,selectedKeys:st.selectedKeys,triggerSubMenuAction:Te.props.triggerSubMenuAction,subMenuKey:it};return Te.renderCommonMenuItem(Ge,Be,Tt)},nt.store.setState({activeKey:Object(k.a)(Object(k.a)({},nt.store.getState().activeKey),{},Object(Z.a)({},nt.eventKey,no(nt,nt.activeKey)))}),Te.instanceArray=[],Te}return Object(C.a)(wt,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(Te){return this.props.visible||Te.visible||this.props.className!==Te.className||!U()(this.props.style,Te.style)}},{key:"componentDidUpdate",value:function(Te){var Ge=this.props,Be="activeKey"in Ge?Ge.activeKey:Ge.store.getState().activeKey[go(Ge)],it=no(Ge,Be);if(it!==Be)ii(Ge.store,go(Ge),it);else if("activeKey"in Te){var st=no(Te,Te.activeKey);it!==st&&ii(Ge.store,go(Ge),it)}}},{key:"render",value:function(){var Te=this,Ge=Object(w.a)({},this.props);this.instanceArray=[];var Be=M()(Ge.prefixCls,Ge.className,"".concat(Ge.prefixCls,"-").concat(Ge.mode)),it={className:Be,role:Ge.role||"menu"};Ge.id&&(it.id=Ge.id),Ge.focusable&&(it.tabIndex=0,it.onKeyDown=this.onKeyDown);var st=Ge.prefixCls,Tt=Ge.eventKey,dt=Ge.visible,Mt=Ge.level,tn=Ge.mode,lt=Ge.overflowedIndicator,qe=Ge.theme;return he.forEach(function(Bt){return delete Ge[Bt]}),delete Ge.onClick,_.createElement(Wo,Object(w.a)({},Ge,{prefixCls:st,mode:tn,tag:"ul",level:Mt,theme:qe,visible:dt,overflowedIndicator:lt},it),Object(x.a)(Ge.children).map(function(Bt,$t){return Te.renderMenuItem(Bt,$t,Tt||"0-menu-")}))}}]),wt}(_.Component);xo.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:pe};var Cs=Object(g.b)()(xo),ws=Cs,ho=v("Kwbf");function As($e,ft,wt){var nt=$e.prefixCls,Te=$e.motion,Ge=$e.defaultMotions,Be=Ge===void 0?{}:Ge,it=$e.openAnimation,st=$e.openTransitionName,Tt=ft.switchingModeFromInline;if(Te)return Te;if(Object(N.a)(it)==="object"&&it)Object(ho.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof it=="string")return{motionName:"".concat(nt,"-open-").concat(it)};if(st)return{motionName:st};var dt=Be[wt];return dt||(Tt?null:Be.other)}var mr=function($e){Object(l.a)(wt,$e);var ft=Object(A.a)(wt);function wt(nt){var Te;Object(P.a)(this,wt),Te=ft.call(this,nt),Te.onSelect=function(it){var st=Object(b.a)(Te),Tt=st.props;if(Tt.selectable){var dt=Te.store.getState(),Mt=dt.selectedKeys,tn=it.key;Tt.multiple?Mt=Mt.concat([tn]):Mt=[tn],"selectedKeys"in Tt||Te.store.setState({selectedKeys:Mt}),Tt.onSelect(Object(k.a)(Object(k.a)({},it),{},{selectedKeys:Mt}))}},Te.onClick=function(it){var st=Te.getRealMenuMode(),Tt=Object(b.a)(Te),dt=Tt.store,Mt=Tt.props.onOpenChange;st!=="inline"&&!("openKeys"in Te.props)&&(dt.setState({openKeys:[]}),Mt([])),Te.props.onClick(it)},Te.onKeyDown=function(it,st){Te.innerMenu.getWrappedInstance().onKeyDown(it,st)},Te.onOpenChange=function(it){var st=Object(b.a)(Te),Tt=st.props,dt=Te.store.getState().openKeys.concat(),Mt=!1,tn=function(qe){var Bt=!1;if(qe.open)Bt=dt.indexOf(qe.key)===-1,Bt&&dt.push(qe.key);else{var $t=dt.indexOf(qe.key);Bt=$t!==-1,Bt&&dt.splice($t,1)}Mt=Mt||Bt};Array.isArray(it)?it.forEach(tn):tn(it),Mt&&("openKeys"in Te.props||Te.store.setState({openKeys:dt}),Tt.onOpenChange(dt))},Te.onDeselect=function(it){var st=Object(b.a)(Te),Tt=st.props;if(Tt.selectable){var dt=Te.store.getState().selectedKeys.concat(),Mt=it.key,tn=dt.indexOf(Mt);tn!==-1&&dt.splice(tn,1),"selectedKeys"in Tt||Te.store.setState({selectedKeys:dt}),Tt.onDeselect(Object(k.a)(Object(k.a)({},it),{},{selectedKeys:dt}))}},Te.onMouseEnter=function(it){Te.restoreModeVerticalFromInline();var st=Te.props.onMouseEnter;st&&st(it)},Te.onTransitionEnd=function(it){var st=it.propertyName==="width"&&it.target===it.currentTarget,Tt=it.target.className,dt=Object.prototype.toString.call(Tt)==="[object SVGAnimatedString]"?Tt.animVal:Tt,Mt=it.propertyName==="font-size"&&dt.indexOf("anticon")>=0;(st||Mt)&&Te.restoreModeVerticalFromInline()},Te.setInnerMenu=function(it){Te.innerMenu=it},Te.isRootMenu=!0;var Ge=nt.defaultSelectedKeys,Be=nt.defaultOpenKeys;return"selectedKeys"in nt&&(Ge=nt.selectedKeys||[]),"openKeys"in nt&&(Be=nt.openKeys||[]),Te.store=Object(g.c)({selectedKeys:Ge,openKeys:Be,activeKey:{"0-menu-":no(nt,nt.activeKey)}}),Te.state={switchingModeFromInline:!1,prevProps:nt,inlineOpenKeys:[],store:Te.store},Te}return Object(C.a)(wt,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(Te){var Ge=this.props,Be=Ge.siderCollapsed,it=Ge.inlineCollapsed,st=Ge.onOpenChange;(!Te.inlineCollapsed&&it||!Te.siderCollapsed&&Be)&&st([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var Te=this.props.collapsedWidth,Ge=this.store,Be=this.prevOpenKeys,it=this.getInlineCollapsed()&&(Te===0||Te==="0"||Te==="0px");it?(this.prevOpenKeys=Ge.getState().openKeys.concat(),this.store.setState({openKeys:[]})):Be&&(this.store.setState({openKeys:Be}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var Te=this.props.mode,Ge=this.state.switchingModeFromInline,Be=this.getInlineCollapsed();return Ge&&Be?"inline":Be?"vertical":Te}},{key:"getInlineCollapsed",value:function(){var Te=this.props,Ge=Te.inlineCollapsed,Be=Te.siderCollapsed;return Be!==void 0?Be:Ge}},{key:"restoreModeVerticalFromInline",value:function(){var Te=this.state.switchingModeFromInline;Te&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var Te=Object(k.a)({},Object(T.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),Ge=this.getRealMenuMode();return Te.className+=" ".concat(Te.prefixCls,"-root"),Te.direction==="rtl"&&(Te.className+=" ".concat(Te.prefixCls,"-rtl")),Te=Object(k.a)(Object(k.a)({},Te),{},{mode:Ge,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:As(this.props,this.state,Ge)}),delete Te.openAnimation,delete Te.openTransitionName,_.createElement(g.a,{store:this.store},_.createElement(ws,Object(w.a)({},Te,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(Te,Ge){var Be=Ge.prevProps,it=Ge.store,st=it.getState(),Tt={},dt={prevProps:Te};return Be.mode==="inline"&&Te.mode!=="inline"&&(dt.switchingModeFromInline=!0),"openKeys"in Te?Tt.openKeys=Te.openKeys||[]:((Te.inlineCollapsed&&!Be.inlineCollapsed||Te.siderCollapsed&&!Be.siderCollapsed)&&(dt.switchingModeFromInline=!0,dt.inlineOpenKeys=st.openKeys,Tt.openKeys=[]),(!Te.inlineCollapsed&&Be.inlineCollapsed||!Te.siderCollapsed&&Be.siderCollapsed)&&(Tt.openKeys=Ge.inlineOpenKeys,dt.inlineOpenKeys=[])),Object.keys(Tt).length&&it.setState(Tt),dt}}]),wt}(_.Component);mr.defaultProps={selectable:!0,onClick:pe,onSelect:pe,onOpenChange:pe,onDeselect:pe,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:_.createElement("span",null,"\xB7\xB7\xB7")};var Vr=mr,ur=function($e){Object(l.a)(wt,$e);var ft=Object(A.a)(wt);function wt(){var nt;return Object(P.a)(this,wt),nt=ft.apply(this,arguments),nt.onKeyDown=function(Te){var Ge=Te.keyCode;return Ge===u.a.ENTER?(nt.onClick(Te),!0):void 0},nt.onMouseLeave=function(Te){var Ge=nt.props,Be=Ge.eventKey,it=Ge.onItemHover,st=Ge.onMouseLeave;it({key:Be,hover:!1}),st({key:Be,domEvent:Te})},nt.onMouseEnter=function(Te){var Ge=nt.props,Be=Ge.eventKey,it=Ge.onItemHover,st=Ge.onMouseEnter;it({key:Be,hover:!0}),st({key:Be,domEvent:Te})},nt.onClick=function(Te){var Ge=nt.props,Be=Ge.eventKey,it=Ge.multiple,st=Ge.onClick,Tt=Ge.onSelect,dt=Ge.onDeselect,Mt=Ge.isSelected,tn={key:Be,keyPath:[Be],item:Object(b.a)(nt),domEvent:Te};st(tn),it?Mt?dt(tn):Tt(tn):Mt||Tt(tn)},nt.saveNode=function(Te){nt.node=Te},nt}return Object(C.a)(wt,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var Te=this.props;Te.onDestroy&&Te.onDestroy(Te.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var Te,Ge=Object(k.a)({},this.props),Be=M()(this.getPrefixCls(),Ge.className,(Te={},Object(Z.a)(Te,this.getActiveClassName(),!Ge.disabled&&Ge.active),Object(Z.a)(Te,this.getSelectedClassName(),Ge.isSelected),Object(Z.a)(Te,this.getDisabledClassName(),Ge.disabled),Te)),it=Object(k.a)(Object(k.a)({},Ge.attribute),{},{title:typeof Ge.title=="string"?Ge.title:void 0,className:Be,role:Ge.role||"menuitem","aria-disabled":Ge.disabled});Ge.role==="option"?it=Object(k.a)(Object(k.a)({},it),{},{role:"option","aria-selected":Ge.isSelected}):(Ge.role===null||Ge.role==="none")&&(it.role="none");var st={onClick:Ge.disabled?null:this.onClick,onMouseLeave:Ge.disabled?null:this.onMouseLeave,onMouseEnter:Ge.disabled?null:this.onMouseEnter},Tt=Object(k.a)({},Ge.style);Ge.mode==="inline"&&(Ge.direction==="rtl"?Tt.paddingRight=Ge.inlineIndent*Ge.level:Tt.paddingLeft=Ge.inlineIndent*Ge.level),he.forEach(function(Mt){return delete Ge[Mt]}),delete Ge.direction;var dt=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(dt=_.createElement(this.props.itemIcon,this.props)),_.createElement("li",Object(w.a)({},Object(T.a)(Ge,["onClick","onMouseEnter","onMouseLeave","onSelect"]),it,st,{style:Tt,ref:this.saveNode}),Ge.children,dt)}}]),wt}(_.Component);ur.isMenuItem=!0,ur.defaultProps={onSelect:pe,onMouseEnter:pe,onMouseLeave:pe,manualRef:pe};var oa=Object(g.b)(function($e,ft){var wt=$e.activeKey,nt=$e.selectedKeys,Te=ft.eventKey,Ge=ft.subMenuKey;return{active:wt[Ge]===Te,isSelected:Array.isArray(nt)?nt.indexOf(Te)!==-1:nt===Te}})(ur),wa=oa,ei=function($e){Object(l.a)(wt,$e);var ft=Object(A.a)(wt);function wt(){var nt;return Object(P.a)(this,wt),nt=ft.apply(this,arguments),nt.renderInnerMenuItem=function(Te){var Ge=nt.props,Be=Ge.renderMenuItem,it=Ge.index;return Be(Te,it,nt.props.subMenuKey)},nt}return Object(C.a)(wt,[{key:"render",value:function(){var Te=Object(w.a)({},this.props),Ge=Te.className,Be=Ge===void 0?"":Ge,it=Te.rootPrefixCls,st="".concat(it,"-item-group-title"),Tt="".concat(it,"-item-group-list"),dt=Te.title,Mt=Te.children;return he.forEach(function(tn){return delete Te[tn]}),delete Te.direction,_.createElement("li",Object(w.a)({},Te,{onClick:function(lt){return lt.stopPropagation()},className:"".concat(Be," ").concat(it,"-item-group")}),_.createElement("div",{className:st,title:typeof dt=="string"?dt:void 0},dt),_.createElement("ul",{className:Tt},_.Children.map(Mt,this.renderInnerMenuItem)))}}]),wt}(_.Component);ei.isMenuItemGroup=!0,ei.defaultProps={disabled:!0};var Ba=ei,Ni=function(ft){var wt=ft.className,nt=ft.rootPrefixCls,Te=ft.style;return _.createElement("li",{className:"".concat(wt," ").concat(nt,"-item-divider"),style:Te})};Ni.defaultProps={disabled:!0,className:"",style:{}};var Ma=Ni,xa=Vr,Po=v("eDIo");function Za($e,ft){var wt=$e.prefixCls,nt=$e.editable,Te=$e.locale,Ge=$e.style;return!nt||nt.showAdd===!1?null:_.createElement("button",{ref:ft,type:"button",className:"".concat(wt,"-nav-add"),style:Ge,"aria-label":(Te==null?void 0:Te.addAriaLabel)||"Add tab",onClick:function(it){nt.onEdit("add",{event:it})}},nt.addIcon||"+")}var ro=_.forwardRef(Za);function so($e,ft){var wt=$e.prefixCls,nt=$e.id,Te=$e.tabs,Ge=$e.locale,Be=$e.mobile,it=$e.moreIcon,st=it===void 0?"More":it,Tt=$e.moreTransitionName,dt=$e.style,Mt=$e.className,tn=$e.editable,lt=$e.tabBarGutter,qe=$e.rtl,Bt=$e.onTabClick,$t=Object(_.useState)(!1),cn=Object(K.a)($t,2),Kt=cn[0],_n=cn[1],rn=Object(_.useState)(null),jt=Object(K.a)(rn,2),An=jt[0],qt=jt[1],En="".concat(nt,"-more-popup"),kn="".concat(wt,"-dropdown"),Yt=An!==null?"".concat(En,"-").concat(An):null,wn=Ge==null?void 0:Ge.dropdownAriaLabel,ln=_.createElement(xa,{onClick:function(Dn){var Nn=Dn.key,Gn=Dn.domEvent;Bt(Nn,Gn),_n(!1)},id:En,tabIndex:-1,role:"listbox","aria-activedescendant":Yt,selectedKeys:[An],"aria-label":wn!==void 0?wn:"expanded dropdown"},Te.map(function(pn){return _.createElement(wa,{key:pn.key,id:"".concat(En,"-").concat(pn.key),role:"option","aria-controls":nt&&"".concat(nt,"-panel-").concat(pn.key),disabled:pn.disabled},pn.tab)}));function xn(pn){for(var Dn=Te.filter(function(or){return!or.disabled}),Nn=Dn.findIndex(function(or){return or.key===An})||0,Gn=Dn.length,yn=0;yn<Gn;yn+=1){Nn=(Nn+pn+Gn)%Gn;var Kn=Dn[Nn];if(!Kn.disabled){qt(Kn.key);return}}}function an(pn){var Dn=pn.which;if(!Kt){[u.a.DOWN,u.a.SPACE,u.a.ENTER].includes(Dn)&&(_n(!0),pn.preventDefault());return}switch(Dn){case u.a.UP:xn(-1),pn.preventDefault();break;case u.a.DOWN:xn(1),pn.preventDefault();break;case u.a.ESC:_n(!1);break;case u.a.SPACE:case u.a.ENTER:An!==null&&Bt(An,pn);break}}Object(_.useEffect)(function(){var pn=document.getElementById(Yt);pn&&pn.scrollIntoView&&pn.scrollIntoView(!1)},[An]),Object(_.useEffect)(function(){Kt||qt(null)},[Kt]);var Vt=Object(Z.a)({},qe?"marginLeft":"marginRight",lt);Te.length||(Vt.visibility="hidden",Vt.order=1);var Sn=M()(Object(Z.a)({},"".concat(kn,"-rtl"),qe)),hr=Be?null:_.createElement(Po.a,{prefixCls:kn,overlay:ln,trigger:["hover"],visible:Kt,transitionName:Tt,onVisibleChange:_n,overlayClassName:Sn,mouseEnterDelay:.1,mouseLeaveDelay:.1},_.createElement("button",{type:"button",className:"".concat(wt,"-nav-more"),style:Vt,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":En,id:"".concat(nt,"-more"),"aria-expanded":Kt,onKeyDown:an},st));return _.createElement("div",{className:M()("".concat(wt,"-nav-operations"),Mt),style:dt,ref:ft},hr,_.createElement(ro,{prefixCls:wt,locale:Ge,editable:tn}))}var To=_.forwardRef(so),Vs=Object(_.createContext)(null),ti=.1,Sa=.01,Ia=20,Eo=Math.pow(.995,Ia);function xs(){var $e=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($e)||/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($e.substr(0,4)))}function Ts($e,ft){var wt=Object(_.useState)(),nt=Object(K.a)(wt,2),Te=nt[0],Ge=nt[1],Be=Object(_.useState)(0),it=Object(K.a)(Be,2),st=it[0],Tt=it[1],dt=Object(_.useState)(0),Mt=Object(K.a)(dt,2),tn=Mt[0],lt=Mt[1],qe=Object(_.useState)(),Bt=Object(K.a)(qe,2),$t=Bt[0],cn=Bt[1],Kt=Object(_.useRef)();function _n(wn){var ln=wn.touches[0],xn=ln.screenX,an=ln.screenY;Ge({x:xn,y:an}),window.clearInterval(Kt.current)}function rn(wn){if(!Te)return;wn.preventDefault();var ln=wn.touches[0],xn=ln.screenX,an=ln.screenY;Ge({x:xn,y:an});var Vt=xn-Te.x,Sn=an-Te.y;ft(Vt,Sn);var hr=Date.now();Tt(hr),lt(hr-st),cn({x:Vt,y:Sn})}function jt(){if(!Te)return;if(Ge(null),cn(null),$t){var wn=$t.x/tn,ln=$t.y/tn,xn=Math.abs(wn),an=Math.abs(ln);if(Math.max(xn,an)<ti)return;var Vt=wn,Sn=ln;Kt.current=window.setInterval(function(){if(Math.abs(Vt)<Sa&&Math.abs(Sn)<Sa){window.clearInterval(Kt.current);return}Vt*=Eo,Sn*=Eo,ft(Vt*Ia,Sn*Ia)},Ia)}}var An=Object(_.useRef)(0),qt=Object(_.useRef)(!1),En=Object(_.useRef)();function kn(wn){var ln=wn.deltaX,xn=wn.deltaY,an=0,Vt=Math.abs(ln),Sn=Math.abs(xn);Vt===Sn?an=En.current==="x"?ln:xn:Vt>Sn?(an=ln,En.current="x"):(an=xn,En.current="y");var hr=Date.now();hr-An.current>100&&(qt.current=!1),(ft(-an,-an)||qt.current)&&(wn.preventDefault(),qt.current=!0),An.current=hr}var Yt=Object(_.useRef)(null);Yt.current={onTouchStart:_n,onTouchMove:rn,onTouchEnd:jt,onWheel:kn},_.useEffect(function(){function wn(Vt){Yt.current.onTouchStart(Vt)}function ln(Vt){Yt.current.onTouchMove(Vt)}function xn(Vt){Yt.current.onTouchEnd(Vt)}function an(Vt){Yt.current.onWheel(Vt)}return document.addEventListener("touchmove",ln,{passive:!1}),document.addEventListener("touchend",xn,{passive:!1}),$e.current.addEventListener("touchstart",wn,{passive:!1}),$e.current.addEventListener("wheel",an),function(){document.removeEventListener("touchmove",ln),document.removeEventListener("touchend",xn)}},[])}function Xs(){var $e=Object(_.useRef)(new Map);function ft(nt){return $e.current.has(nt)||$e.current.set(nt,_.createRef()),$e.current.get(nt)}function wt(nt){$e.current.delete(nt)}return[ft,wt]}function Ys($e,ft){var wt=_.useRef($e),nt=_.useState({}),Te=Object(K.a)(nt,2),Ge=Te[1];function Be(it){var st=typeof it=="function"?it(wt.current):it;st!==wt.current&&ft(st,wt.current),wt.current=st,Ge({})}return[wt.current,Be]}var il=function(ft){var wt=ft.position,nt=ft.prefixCls,Te=ft.extra;if(!Te)return null;var Ge,Be=Te;return wt==="right"&&(Ge=Be.right||!Be.left&&Be||null),wt==="left"&&(Ge=Be.left||null),Ge?_.createElement("div",{className:"".concat(nt,"-extra-content")},Ge):null};function ml($e,ft){var wt,nt=_.useContext(Vs),Te=nt.prefixCls,Ge=nt.tabs,Be=$e.className,it=$e.style,st=$e.id,Tt=$e.animated,dt=$e.activeKey,Mt=$e.rtl,tn=$e.extra,lt=$e.editable,qe=$e.locale,Bt=$e.tabPosition,$t=$e.tabBarGutter,cn=$e.children,Kt=$e.onTabClick,_n=$e.onTabScroll,rn=Object(_.useRef)(),jt=Object(_.useRef)(),An=Object(_.useRef)(),qt=Object(_.useRef)(),En=Xs(),kn=Object(K.a)(En,2),Yt=kn[0],wn=kn[1],ln=Bt==="top"||Bt==="bottom",xn=Ys(0,function(Oa,la){ln&&_n&&_n({direction:Oa>la?"left":"right"})}),an=Object(K.a)(xn,2),Vt=an[0],Sn=an[1],hr=Ys(0,function(Oa,la){!ln&&_n&&_n({direction:Oa>la?"top":"bottom"})}),pn=Object(K.a)(hr,2),Dn=pn[0],Nn=pn[1],Gn=Object(_.useState)(0),yn=Object(K.a)(Gn,2),Kn=yn[0],or=yn[1],gr=Object(_.useState)(0),Ur=Object(K.a)(gr,2),er=Ur[0],rr=Ur[1],Lr=Object(_.useState)(0),Er=Object(K.a)(Lr,2),_r=Er[0],sa=Er[1],ta=Object(_.useState)(0),tr=Object(K.a)(ta,2),vr=tr[0],ja=tr[1],ia=Object(_.useState)(null),Yn=Object(K.a)(ia,2),vn=Yn[0],yr=Yn[1],oi=Object(_.useState)(null),Cr=Object(K.a)(oi,2),Ir=Cr[0],fr=Cr[1],ar=Object(_.useState)(0),Ln=Object(K.a)(ar,2),Mn=Ln[0],gn=Ln[1],qn=Object(_.useState)(0),na=Object(K.a)(qn,2),cr=na[0],jr=na[1],Pa=i(new Map),da=Object(K.a)(Pa,2),ba=da[0],ha=da[1],Ta=c(Ge,ba,Kn),Da="".concat(Te,"-nav-operations-hidden"),Ua=0,Qr=0;ln?Mt?(Ua=0,Qr=Math.max(0,Kn-vn)):(Ua=Math.min(0,vn-Kn),Qr=0):(Ua=Math.min(0,Ir-er),Qr=0);function Wa(Oa){return Oa<Ua?[Ua,!1]:Oa>Qr?[Qr,!1]:[Oa,!0]}var Ea=Object(_.useRef)(),za=Object(_.useState)(),hi=Object(K.a)(za,2),Ji=hi[0],Li=hi[1];function Ci(){Li(Date.now())}function Uo(){window.clearTimeout(Ea.current)}Ts(rn,function(Oa,la){var xi=!1;function Zi(Oo,co){Oo(function(No){var Wi=Wa(No+co),Ai=Object(K.a)(Wi,2),Vo=Ai[0],Pn=Ai[1];return xi=Pn,Vo})}if(ln){if(vn>=Kn)return xi;Zi(Sn,Oa)}else{if(Ir>=er)return xi;Zi(Nn,la)}return Uo(),Ci(),xi}),Object(_.useEffect)(function(){return Uo(),Ji&&(Ea.current=window.setTimeout(function(){Li(0)},100)),Uo},[Ji]);function Ao(){var Oa=arguments.length>0&&arguments[0]!==void 0?arguments[0]:dt,la=Ta.get(Oa);if(!la)return;if(ln){var xi=Vt;Mt?la.right<Vt?xi=la.right:la.right+la.width>Vt+vn&&(xi=la.right+la.width-vn):la.left<-Vt?xi=-la.left:la.left+la.width>-Vt+vn&&(xi=-(la.left+la.width-vn)),Nn(0),Sn(Wa(xi)[0])}else{var Zi=Dn;la.top<-Dn?Zi=-la.top:la.top+la.height>-Dn+Ir&&(Zi=-(la.top+la.height-Ir)),Sn(0),Nn(Wa(Zi)[0])}}var _o=B(Ta,{width:vn,height:Ir,left:Vt,top:Dn},{width:_r,height:vr},{width:Mn,height:cr},Object(k.a)(Object(k.a)({},$e),{},{tabs:Ge})),as=Object(K.a)(_o,2),fs=as[0],is=as[1],os=Ge.map(function(Oa){var la=Oa.key;return _.createElement(f,{id:st,prefixCls:Te,key:la,rtl:Mt,tab:Oa,closable:Oa.closable,editable:lt,active:la===dt,tabPosition:Bt,tabBarGutter:$t,renderWrapper:cn,removeAriaLabel:qe==null?void 0:qe.removeAriaLabel,ref:Yt(la),onClick:function(Zi){Kt(la,Zi)},onRemove:function(){wn(la)},onFocus:function(){Ao(la),Ci(),Mt||(rn.current.scrollLeft=0),rn.current.scrollTop=0}})}),So=s(function(){var Oa,la,xi,Zi,Oo,co,No,Wi,Ai,Vo=((Oa=rn.current)===null||Oa===void 0?void 0:Oa.offsetWidth)||0,Pn=((la=rn.current)===null||la===void 0?void 0:la.offsetHeight)||0,ts=((xi=qt.current)===null||xi===void 0?void 0:xi.offsetWidth)||0,lo=((Zi=qt.current)===null||Zi===void 0?void 0:Zi.offsetHeight)||0,Ha=((Oo=An.current)===null||Oo===void 0?void 0:Oo.offsetWidth)||0,Fi=((co=An.current)===null||co===void 0?void 0:co.offsetHeight)||0;yr(Vo),fr(Pn),gn(ts),jr(lo);var Ti=(((No=jt.current)===null||No===void 0?void 0:No.offsetWidth)||0)-ts,Ro=(((Wi=jt.current)===null||Wi===void 0?void 0:Wi.offsetHeight)||0)-lo;or(Ti),rr(Ro);var Oi=(Ai=An.current)===null||Ai===void 0?void 0:Ai.className.includes(Da);sa(Ti-(Oi?0:Ha)),ja(Ro-(Oi?0:Fi)),ha(function(){var Fo=new Map;return Ge.forEach(function(ns){var ms=ns.key,Xo=Yt(ms).current;Xo&&Fo.set(ms,{width:Xo.offsetWidth,height:Xo.offsetHeight,left:Xo.offsetLeft,top:Xo.offsetTop})}),Fo})}),ps=Ge.slice(0,fs),Qi=Ge.slice(is+1),Aa=[].concat(Object(p.a)(ps),Object(p.a)(Qi)),wi=Object(_.useState)(),vi=Object(K.a)(wi,2),vo=vi[0],uo=vi[1],Ki=Ta.get(dt),ss=Object(_.useRef)();function ls(){t.a.cancel(ss.current)}Object(_.useEffect)(function(){var Oa={};return Ki&&(ln?(Mt?Oa.right=Ki.right:Oa.left=Ki.left,Oa.width=Ki.width):(Oa.top=Ki.top,Oa.height=Ki.height)),ls(),ss.current=t()(function(){uo(Oa)}),ls},[Ki,ln,Mt]),Object(_.useEffect)(function(){Ao()},[dt,Ki,Ta,ln]),Object(_.useEffect)(function(){So()},[Mt,$t,dt,Ge.map(function(Oa){return Oa.key}).join("_")]);var qo=!!Aa.length,fo="".concat(Te,"-nav-wrap"),zo,yo,es,Go;return ln?Mt?(yo=Vt>0,zo=Vt+vn<Kn):(zo=Vt<0,yo=-Vt+vn<Kn):(es=Dn<0,Go=-Dn+Ir<er),_.createElement("div",{ref:ft,role:"tablist",className:M()("".concat(Te,"-nav"),Be),style:it,onKeyDown:function(){Ci()}},_.createElement(il,{position:"left",extra:tn,prefixCls:Te}),_.createElement(h.a,{onResize:So},_.createElement("div",{className:M()(fo,(wt={},Object(Z.a)(wt,"".concat(fo,"-ping-left"),zo),Object(Z.a)(wt,"".concat(fo,"-ping-right"),yo),Object(Z.a)(wt,"".concat(fo,"-ping-top"),es),Object(Z.a)(wt,"".concat(fo,"-ping-bottom"),Go),wt)),ref:rn},_.createElement(h.a,{onResize:So},_.createElement("div",{ref:jt,className:"".concat(Te,"-nav-list"),style:{transform:"translate(".concat(Vt,"px, ").concat(Dn,"px)"),transition:Ji?"none":void 0}},os,_.createElement(ro,{ref:qt,prefixCls:Te,locale:qe,editable:lt,style:{visibility:qo?"hidden":null}}),_.createElement("div",{className:M()("".concat(Te,"-ink-bar"),Object(Z.a)({},"".concat(Te,"-ink-bar-animated"),Tt.inkBar)),style:vo}))))),_.createElement(To,Object.assign({},$e,{ref:An,prefixCls:Te,tabs:Aa,className:!qo&&Da})),_.createElement(il,{position:"right",extra:tn,prefixCls:Te}))}var Js=_.forwardRef(ml);function Ps($e){var ft=$e.id,wt=$e.activeKey,nt=$e.animated,Te=$e.tabPosition,Ge=$e.rtl,Be=$e.destroyInactiveTabPane,it=_.useContext(Vs),st=it.prefixCls,Tt=it.tabs,dt=nt.tabPane,Mt=Tt.findIndex(function(tn){return tn.key===wt});return _.createElement("div",{className:M()("".concat(st,"-content-holder"))},_.createElement("div",{className:M()("".concat(st,"-content"),"".concat(st,"-content-").concat(Te),Object(Z.a)({},"".concat(st,"-content-animated"),dt)),style:Mt&&dt?Object(Z.a)({},Ge?"marginRight":"marginLeft","-".concat(Mt,"00%")):null},Tt.map(function(tn){return _.cloneElement(tn.node,{key:tn.key,prefixCls:st,tabKey:tn.key,id:ft,animated:dt,active:tn.key===wt,destroyInactiveTabPane:Be})})))}function gl($e){var ft=$e.prefixCls,wt=$e.forceRender,nt=$e.className,Te=$e.style,Ge=$e.id,Be=$e.active,it=$e.animated,st=$e.destroyInactiveTabPane,Tt=$e.tabKey,dt=$e.children,Mt=_.useState(wt),tn=Object(K.a)(Mt,2),lt=tn[0],qe=tn[1];_.useEffect(function(){Be?qe(!0):st&&qe(!1)},[Be,st]);var Bt={};return Be||(it?(Bt.visibility="hidden",Bt.height=0,Bt.overflowY="hidden"):Bt.display="none"),_.createElement("div",{id:Ge&&"".concat(Ge,"-panel-").concat(Tt),role:"tabpanel",tabIndex:Be?0:-1,"aria-labelledby":Ge&&"".concat(Ge,"-tab-").concat(Tt),"aria-hidden":!Be,style:Object(k.a)(Object(k.a)({},Bt),Te),className:M()("".concat(ft,"-tabpane"),Be&&"".concat(ft,"-tabpane-active"),nt)},(Be||lt||wt)&&dt)}var Us=0;function Ns($e){return Object(x.a)($e).map(function(ft){if(_.isValidElement(ft)){var wt=ft.key!==void 0?String(ft.key):void 0;return Object(k.a)(Object(k.a)({key:wt},ft.props),{},{node:ft})}return null}).filter(function(ft){return ft})}function gi($e,ft){var wt,nt=$e.id,Te=$e.prefixCls,Ge=Te===void 0?"rc-tabs":Te,Be=$e.className,it=$e.children,st=$e.direction,Tt=$e.activeKey,dt=$e.defaultActiveKey,Mt=$e.editable,tn=$e.animated,lt=$e.tabPosition,qe=lt===void 0?"top":lt,Bt=$e.tabBarGutter,$t=$e.tabBarStyle,cn=$e.tabBarExtraContent,Kt=$e.locale,_n=$e.moreIcon,rn=$e.moreTransitionName,jt=$e.destroyInactiveTabPane,An=$e.renderTabBar,qt=$e.onChange,En=$e.onTabClick,kn=$e.onTabScroll,Yt=Object(I.a)($e,["id","prefixCls","className","children","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll"]),wn=Ns(it),ln=st==="rtl",xn;tn===!1?xn={inkBar:!1,tabPane:!1}:xn=Object(k.a)({inkBar:!0,tabPane:!1},tn!==!0?tn:null);var an=Object(_.useState)(!1),Vt=Object(K.a)(an,2),Sn=Vt[0],hr=Vt[1];Object(_.useEffect)(function(){hr(xs())},[]);var pn=Object(n.a)(function(){var vr;return(vr=wn[0])===null||vr===void 0?void 0:vr.key},{value:Tt,defaultValue:dt}),Dn=Object(K.a)(pn,2),Nn=Dn[0],Gn=Dn[1],yn=Object(_.useState)(function(){return wn.findIndex(function(vr){return vr.key===Nn})}),Kn=Object(K.a)(yn,2),or=Kn[0],gr=Kn[1];Object(_.useEffect)(function(){var vr=wn.findIndex(function(ia){return ia.key===Nn});if(vr===-1){var ja;vr=Math.max(0,Math.min(or,wn.length-1)),Gn((ja=wn[vr])===null||ja===void 0?void 0:ja.key)}gr(vr)},[wn.map(function(vr){return vr.key}).join("_"),Nn,or]);var Ur=Object(n.a)(null,{value:nt}),er=Object(K.a)(Ur,2),rr=er[0],Lr=er[1],Er=qe;Sn&&!["left","right"].includes(qe)&&(Er="top"),Object(_.useEffect)(function(){nt||(Lr("rc-tabs-".concat(Us)),Us+=1)},[]);function _r(vr,ja){En==null||En(vr,ja),Gn(vr),qt==null||qt(vr)}var sa={id:rr,activeKey:Nn,animated:xn,tabPosition:Er,rtl:ln,mobile:Sn},ta,tr=Object(k.a)(Object(k.a)({},sa),{},{editable:Mt,locale:Kt,moreIcon:_n,moreTransitionName:rn,tabBarGutter:Bt,onTabClick:_r,onTabScroll:kn,extra:cn,style:$t,panes:it});return An?ta=An(tr,Js):ta=_.createElement(Js,Object.assign({},tr)),_.createElement(Vs.Provider,{value:{tabs:wn,prefixCls:Ge}},_.createElement("div",Object.assign({ref:ft,id:nt,className:M()(Ge,"".concat(Ge,"-").concat(Er),(wt={},Object(Z.a)(wt,"".concat(Ge,"-mobile"),Sn),Object(Z.a)(wt,"".concat(Ge,"-editable"),Mt),Object(Z.a)(wt,"".concat(Ge,"-rtl"),ln),wt),Be)},Yt),ta,_.createElement(Ps,Object.assign({destroyInactiveTabPane:jt},sa,{animated:xn}))))}var Hs=_.forwardRef(gi);Hs.TabPane=gl;var $o=Hs,ol=te.b=$o},"kNP/":function(Re,te,v){Re.exports={wrap:"wrap___2juS_",title:"title___2CLX2",radioWrap:"radioWrap___1FMiJ",checkboxWrap:"checkboxWrap___dPm6N",radio:"radio___2vIMS",colorFF0000:"colorFF0000___2Bu8m",pagination:"pagination___2bx8C",createMkdir:"createMkdir___2Zwt9",tree:"tree___2NdBt"}},kPWJ:function(Re,te,v){Re.exports=v.p+"static/question.cb52bef9.gif"},kPYp:function(Re,te){Re.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAF8AAAAUCAYAAADr0+FaAAANEklEQVRYR8WZe5RX1XXHP/vce3/zHoaXgFp5DQyOQLRgUTEtDW1qYyVmZUGNklRdiRpKE3lHfPyc4TngIBgfC0wx1ixt1NRWal2kotbE2lbRiCIISBCGhzDAvGd+87v37K5z5zfDzMCM46pr9fw1a+45+5zz3fvs/d3fn4yr1F8Do0UIUb74UFR8Gm3IO/Wf8MThat7mOYnaDZUmNUF/htpWLlePK4xwCcoQICHQbOGoKDuM4U1p5r0Px1DNrDPrezzQs+qNPUh/o4xXj6tRJhlhGEqeQNrCCYXdGvGfFt5JNHLoozJp7WyvdI0OtR4LEK7CstUIWyJLTSRcLfCnvlAiUKSgCEfV8o6NeMVE/G53itOUiXX3Sxcx2ov4qhG+qjBWoFChWYUqIt6VgFeblR0H5lEL0oGyjKvU1yHezPviyHdZ0Ro180basvD398n77svIFTokK5vrgW8LTELJRwgA6bTSHcaBckot/yWGX2YZtv5untT0dJ7SpOZrAX9mLTeIYarAIIQEYLrZTQNNFj7A8rx6/GrPfDncPmdihV6Y9nkA+Ot4nrIXaDSGElH6KfjdzpBSpVo8ttVU8Xitx/7hw/imWmYD4wXy6Iqjje9mOGYj/uX0bjYf/5nsaLcpY9fqDZ5hNTD8/wi+27bB+CzfOVcqSiq0BMPdRpiBUNANmHNvJUQo1ZFls0lTuXupnOw+0UVamMsCz+eHCuf3MWgUjZ3w76kUZQeW8j4iOnadXmCUNQI3xvsIbl7bX70MEdKpFLutcCA7iz/BxvfrfY2hNVXDb2v2s/TkU/Lf8SZXrtOcUxFfF8P1AiNVSYj0aihUGOoCu/vFFVpQlpmQX1iflQg3dMxxR1OaVHERfUIglXFKf6AIIbs97SnUq7I5VFZ+skiOt+NwSVIHpAu4wwgLBAZ04COkUGoytusEAhUGi9APyO+UTlWVfyPkrt0/kQ8y4FcI3NQF6zYnNAEn1VKtQuAJg1XiPRPOnnggFmwmicTIC/VqOa5wCiFHhCFGGGAtnkNUBGyaLVGKJXvvZXe8ZlpS/UP5DAh8cgPt8nTP8n+LZbS7vIHpdH2WzcBzUZp1njCTgB/HacYNQxS1sluFF4zwmgpHEpa09ckOleGkuUaEa70sRmrU4fgGG7L8VBOPnCiThgvXaU5ByE14rAGcwxA/vsxha3lJPF4ylv0mpCVKYBCGRRFXm5BvedlMcEEVgyY0hSHP+nn8XZiin1G6gu+At3watfC0l8MWIk5GBs+0UhxZbvSyuM545Gvn+ijYsIU9GvKkyeLVIOBUypIwKSbSyt94RUxHCeIgMNRFEauaDBt6fSrdkS+p0MnisUpgGtIlH7rc9nOU8pQyPmF4XGBY5v2G6RRvtp7irkFjeGf7bYTuyXfYVpUhi8gtLOCaoJA1KKPaL2aVHXjM+XievFm6Ti+JlE0GrupIDMqRps+4z6vh+f3DqHcF8MyZVSbdhl9lKCm8gBVBPn+pNq43qHBSlTujgNeDkJUo3+3Iw9BYF3F3i7K5eonUd9hLqhm2lz/IG8OaYADflgjPndMBGHkcqD3B4mMn+Gc2iaszbSOpZtDbFBdN4uFgINOJMAqOjGxLW77bJ/BHJDU7kcfXjOEeEa7s9NzdM65WeNK0sC5dQGjSrPDgB+1zVNiRqmbh7wO2dQWnm2tv0+C8Zq7rfxkbjOEC3AsQmtSyYnc9q8cW8kMDSYHB7saqHGs+xvLgQ36272VJ9Zajh92ukwtH8JCXxxWajvFSC1sjZYEPC0W4pT3RG3jj0xQ/qF8qe86ymVRTbLg2KOQxLBdkvkdWeLoR7qyaL6fOWqMqI+9jZvYAHsEyKP7eVtj//HPBn5bU7CP9uN4oi4GvSFdGcRhhgybYvHuunByzXqd4IZtEmNi2BzZSklrPQ/vKpK43gOJvEzWvZDZrvYCb1ZIDhBZeyE3xt01ZrDRwc5zqhCiyPNtaxZwD63tmRe37jbhZs/1i5iQKSGpIYeZs+7HcKYYZwPfb50bwSK2l/LNOtabzuUet0TGB4VdGmJD5f0qFiro6Ko7cL65OnDVcxjA+zwDFmY9H/TY62/OYuFbzQphthXIRzus8U4kLy10DhGfemi8u3zOuUv9K4Km4gLaF14kIbty7SF75XOAzE0rW6iwxPBxHOFiUt0Plx77HvSjXZiLntI0o/3iJrO+bXZWSCibh8QsjlMRnE06IZYWjiEgb+CLo6RQrm1t4oKbs3E4dnNSh/fLYkvCZHNtRmppDysOAh6oyOHQ/0+i1Ot6HZzyPS1TjunvcRFzVI/gZjn6rKPORzHNps+ro4A6F5aaef+1oXFSl9EFmqvIEkBunBstea5i9Z778T99AgnFr1dWTp0S4sO1u7ETj1LCItiLvEu1RQn6ya7H8Q5/tJnWEzecFz+PSDPtxKWIdMMJFvkNEDHq4iuU1dVSySWrPZXvkeh2SHfEi8EfGQBTRWFdLecLw0IEyaTnXmovX6ng1PC3CeNeuifCZCeP+5OxRXKEXGp95hrgouAjsGBZ+KxHLTCOvd+0YVUrXMUMVB0j70z4cRty0b7H8R19BKqnUGQY20kZnXU1511rm+R5LFa7J2KmOQpJ7lsijfbU7brVOwOcfRSiNIxaqjbBaLeNc5HeAf5DlNQ1fAPyQxoY6yv0vA/xxq3QEAcvFMCumR2eG476vRsKCPQvY0blNbp9y8Xr9YxvyhBFGZS4YRSFzCot4YvvtnVhAT4hN0mDsDSz1PRaoUuCYgcLWAO4IYbXAdzLNTGgtmz5exNxzneMs80n1i7P4TpDLOokY5KiWKlXAYhG+1iXyPw/8FTokO7tT5H8p4CfVlBbyFassFeE6IKvTJRqt5QVfWLVzoXzUE3bOcZpgjYGZmfTgmpBt0UkW71vJe70CNVO9QZbLBl7J3xufCY7tZJq29UPrufdIAYtNG1j9XEqzyq7mwyw+eIiXO2tJ5zrbebfoqKIxVPr5zNB03AOoVd6KWpkbJJwDubXPkf9lgz9powaNdUw1HveqMrUz8Erc6W0OI9bvW8T+Lhy9+003alDcyPd8pVKIu0uHU2O6medaPmP5oZ/KJ+d03DT1i6cy2eSzzE8wTV0P4agS7DeWH+1aJC+VPKhTRXlUNMOkhEhb2d58jLsPHuYNnusqmrXvM2i2DisazeKgkFsRCp1dFRpUWGYifolQDnzv/wV8p5XYfP5CPMpRLu0GzlGrrB9g+Gltbdwc9Dhyzke3HyEqzmKgn2CDSCxWuShzmk86XcvrErDR+vxGsqhNnESbwHiFDJYGvi4+3w8KmEK6Q/azqjzWYLjP8efipBb6eSwQj6XtnbVJQNTEzqiVjZ7PlpYWjuWCbR2ImFYKwkamGMstWf3jBivXVW91+lHIG4W5zKxpJbu9w+0r+CPW6NBcjxcVLo8Lbl/TjvCMmFjRPVNwix/Q0kDiAuc6xy6qoAqHULaKpVGlZ9WzLQtwysLbrR5vZaco1SDO0a6ixzbFgLUcUdhllE+d5OpSiIXhpq0IDnShHrMkSClsM5YluxbJh7HHVWXCaka2BpQb4Vsxo2pr192C084uzq5y2mk7GEaIk4SFi1xHlUmDroC/Z5V79iyUlztrOw58l45OVbMsFbLudEUPbGeFDsnJjsFvYzt9Bf9cbKe0Ui8DnlYY1z2sXcETzfSavdMKB0OI4/7C42EtD5tcLhef+w1c0U0DcpYcXXUauYOus8Mdns1W2eIpy3Y18FGXrjipZmzAMLIoM4ZZQqwmdh7Oaltv3E0id1lMlR1hRJnk8PK+H0mqu7DmHBDB4vw6HtneQ8N06YNalIp4HmF6X8EfV6ljRfk5EmNxJvIdn09ksdYIs7oV2d7h7uGrhUOEzP14ibzoNgXmC3wjQx3dbwZdwM6YcbHpNJFDKjxr4dHOunv3rcY9rANNC7dbR4WFkbhIP7ddFxSxTK3Cr0nzgFMz2+05Su37saTsWJRVS5VnuHnnAnmtp8vPnKne+1NY4jlZwtDfWpob6ijzhQ098fyLVmn/bJ97PMPtQJ5r8Dxck5VUMyqXP0wEzEHjNFHQR438rPPZtuyiKpTtmsdjrji7SGmJmBJrGYZSlIsyfYD7oaJVlVqEAwbejSJeafR5t6dOsfOGTuXMTTHeBExHmCzCaDTurLPEFWOlXqFKlI+s8prfwG92lnXVXkoq9HwTcD/KdSp8mGrmyVSaf+pJJmjff/gKHZaTxR3G8E1rKWyoY4MvbOwJfIdIcSUX+8Ic1yg6yT6Eb7Q1Wc4BORRk+RQZQ2DD3n8Y+Lwn4edT/cEcOd0xL6nmyn5knWghPzuL7JQQJMC0umjzafUbaG5J0XigjFSfeHuHYZXSJIH0Iz+VJtczBL6H58pLZAhTaVqKCmnYfoSWc4l6Tko/nscg8clvMtQPyOFUn/oRVCauJZcs+jeHJFLHOX1wFTW9MkEnyg0kP2EpitJ4+YVU/S8v1xqrW4H9MAAAAABJRU5ErkJggg=="},kSUc:function(Re,te,v){},"kaH+":function(Re,te,v){"use strict";var Z=v("+L6B"),K=v("2/Rp"),I=v("tJVT"),k=v("q1tI"),_=v.n(k),O=v("UZu5"),M=v.n(O),x=v("dhSg"),n=v("rLCj"),p=v("dF/Y"),a=v("4i/N");te.a=function(){var t=Object(k.useState)(""),h=Object(I.a)(t,2),s=h[0],i=h[1],u=Object(k.useState)(0),d=Object(I.a)(u,2),f=d[0],o=d[1],c=Object(k.useRef)("");Object(k.useEffect)(function(){var l=x.a.subscribe("preview-image",function(A){i(A),document.body.style.overflow="hidden"});return l},[]),Object(k.useEffect)(function(){return document.addEventListener("keydown",E),function(){document.removeEventListener("keydown",E)}},[]),Object(k.useEffect)(function(){c.current=s},[s]);function E(l){l.keyCode==27&&c.current&&B()}function B(){document.body.style.overflow="auto",i("")}function w(){o(f+90)}var P=Object(k.useRef)(),C=Object(k.useRef)(),b=function(A){(A.nativeEvent.target===P.current||A.nativeEvent.target===C.current)&&B()};return _.a.createElement(k.Fragment,null,s?_.a.createElement("div",{className:"image-preview-container",ref:P,onClick:b},_.a.createElement("div",{className:"button-group"},_.a.createElement(K.a,{onClick:w},"\u65CB\u8F6C",_.a.createElement(n.a,null)),_.a.createElement(K.a,{href:s},"\u4E0B\u8F7D",_.a.createElement(p.a,null)),_.a.createElement(K.a,{onClick:B},"\u5173\u95ED",_.a.createElement(a.a,null))),_.a.createElement("div",{className:"preview-wrp-group",ref:C},_.a.createElement("img",{className:"image-preview",src:s,alt:"\u9884\u89C8\u5927\u56FE",style:{transform:"rotate(".concat(f,"deg)")}}))):null)}},kwm0:function(Re,te,v){Re.exports={modal:"modal___1jX7c",uploadWrap:"uploadWrap___3-sVK",upload:"upload___2LemY",uploadLink:"uploadLink___j9Fsx",fileProgress:"fileProgress___11p3K",fileCancel:"fileCancel___3Mx9l",videoName:"videoName___2a-ZN",contentItem:"contentItem___1gUuj","tagsList-content":"tagsList-content___3Yj4d"}},l2Kq:function(Re,te,v){Re.exports=v.p+"static/match_ad.24dc22fd.jpg"},lZu9:function(Re,te,v){(function(Z){Z(v("VrN/"),v("1eCo"),v("8EBN"))})(function(Z){"use strict";Z.defineMode("markdown",function(K,I){var k=Z.getMode(K,"text/html"),_=k.name=="null";function O(F){if(Z.findModeByName){var R=Z.findModeByName(F);R&&(F=R.mime||R.mimes[0])}var z=Z.getMode(K,F);return z.name=="null"?null:z}I.highlightFormatting===void 0&&(I.highlightFormatting=!1),I.maxBlockquoteDepth===void 0&&(I.maxBlockquoteDepth=0),I.taskLists===void 0&&(I.taskLists=!1),I.strikethrough===void 0&&(I.strikethrough=!1),I.emoji===void 0&&(I.emoji=!1),I.fencedCodeBlockHighlighting===void 0&&(I.fencedCodeBlockHighlighting=!0),I.fencedCodeBlockDefaultMode===void 0&&(I.fencedCodeBlockDefaultMode="text/plain"),I.xml===void 0&&(I.xml=!0),I.tokenTypeOverrides===void 0&&(I.tokenTypeOverrides={});var M={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var x in M)M.hasOwnProperty(x)&&I.tokenTypeOverrides[x]&&(M[x]=I.tokenTypeOverrides[x]);var n=/^([*\-_])(?:\s*\1){2,}\s*$/,p=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,a=/^\[(x| )\](?=\s)/i,t=I.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,h=/^ {0,3}(?:\={1,}|-{2,})\s*$/,s=/^[^#!\[\]*_\\<>` "'(~:]+/,i=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,u=/^\s*\[[^\]]+?\]:.*$/,d=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,f=" ";function o(F,R,z){return R.f=R.inline=z,z(F,R)}function c(F,R,z){return R.f=R.block=z,z(F,R)}function E(F){return!F||!/\S/.test(F.string)}function B(F){if(F.linkTitle=!1,F.linkHref=!1,F.linkText=!1,F.em=!1,F.strong=!1,F.strikethrough=!1,F.quote=0,F.indentedCode=!1,F.f==P){var R=_;if(!R){var z=Z.innerMode(k,F.htmlState);R=z.mode.name=="xml"&&z.state.tagStart===null&&!z.state.context&&z.state.tokenize.isInText}R&&(F.f=A,F.block=w,F.htmlState=null)}return F.trailingSpace=0,F.trailingSpaceNewLine=!1,F.prevLine=F.thisLine,F.thisLine={stream:null},null}function w(F,R){var z=F.column()===R.indentation,Q=E(R.prevLine.stream),$=R.indentedCode,ee=R.prevLine.hr,fe=R.list!==!1,Ae=(R.listStack[R.listStack.length-1]||0)+3;R.indentedCode=!1;var ce=R.indentation;if(R.indentationDiff===null&&(R.indentationDiff=R.indentation,fe)){for(R.list=null;ce<R.listStack[R.listStack.length-1];)R.listStack.pop(),R.listStack.length?R.indentation=R.listStack[R.listStack.length-1]:R.list=!1;R.list!==!1&&(R.indentationDiff=ce-R.listStack[R.listStack.length-1])}var ie=!Q&&!ee&&!R.prevLine.header&&(!fe||!$)&&!R.prevLine.fencedCodeEnd,be=(R.list===!1||ee||Q)&&R.indentation<=Ae&&F.match(n),se=null;if(R.indentationDiff>=4&&($||R.prevLine.fencedCodeEnd||R.prevLine.header||Q))return F.skipToEnd(),R.indentedCode=!0,M.code;if(F.eatSpace())return null;if(z&&R.indentation<=Ae&&(se=F.match(t))&&se[1].length<=6)return R.quote=0,R.header=se[1].length,R.thisLine.header=!0,I.highlightFormatting&&(R.formatting="header"),R.f=R.inline,b(R);if(R.indentation<=Ae&&F.eat(">"))return R.quote=z?1:R.quote+1,I.highlightFormatting&&(R.formatting="quote"),F.eatSpace(),b(R);if(!be&&!R.setext&&z&&R.indentation<=Ae&&(se=F.match(p))){var me=se[1]?"ol":"ul";return R.indentation=ce+F.current().length,R.list=!0,R.quote=0,R.listStack.push(R.indentation),R.em=!1,R.strong=!1,R.code=!1,R.strikethrough=!1,I.taskLists&&F.match(a,!1)&&(R.taskList=!0),R.f=R.inline,I.highlightFormatting&&(R.formatting=["list","list-"+me]),b(R)}else{if(z&&R.indentation<=Ae&&(se=F.match(i,!0)))return R.quote=0,R.fencedEndRE=new RegExp(se[1]+"+ *$"),R.localMode=I.fencedCodeBlockHighlighting&&O(se[2]||I.fencedCodeBlockDefaultMode),R.localMode&&(R.localState=Z.startState(R.localMode)),R.f=R.block=C,I.highlightFormatting&&(R.formatting="code-block"),R.code=-1,b(R);if(R.setext||(!ie||!fe)&&!R.quote&&R.list===!1&&!R.code&&!be&&!u.test(F.string)&&(se=F.lookAhead(1))&&(se=se.match(h)))return R.setext?(R.header=R.setext,R.setext=0,F.skipToEnd(),I.highlightFormatting&&(R.formatting="header")):(R.header=se[0].charAt(0)=="="?1:2,R.setext=R.header),R.thisLine.header=!0,R.f=R.inline,b(R);if(be)return F.skipToEnd(),R.hr=!0,R.thisLine.hr=!0,M.hr;if(F.peek()==="[")return o(F,R,U)}return o(F,R,R.inline)}function P(F,R){var z=k.token(F,R.htmlState);if(!_){var Q=Z.innerMode(k,R.htmlState);(Q.mode.name=="xml"&&Q.state.tagStart===null&&!Q.state.context&&Q.state.tokenize.isInText||R.md_inside&&F.current().indexOf(">")>-1)&&(R.f=A,R.block=w,R.htmlState=null)}return z}function C(F,R){var z=R.listStack[R.listStack.length-1]||0,Q=R.indentation<z,$=z+3;if(R.fencedEndRE&&R.indentation<=$&&(Q||F.match(R.fencedEndRE))){I.highlightFormatting&&(R.formatting="code-block");var ee;return Q||(ee=b(R)),R.localMode=R.localState=null,R.block=w,R.f=A,R.fencedEndRE=null,R.code=0,R.thisLine.fencedCodeEnd=!0,Q?c(F,R,R.block):ee}else return R.localMode?R.localMode.token(F,R.localState):(F.skipToEnd(),M.code)}function b(F){var R=[];if(F.formatting){R.push(M.formatting),typeof F.formatting=="string"&&(F.formatting=[F.formatting]);for(var z=0;z<F.formatting.length;z++)R.push(M.formatting+"-"+F.formatting[z]),F.formatting[z]==="header"&&R.push(M.formatting+"-"+F.formatting[z]+"-"+F.header),F.formatting[z]==="quote"&&(!I.maxBlockquoteDepth||I.maxBlockquoteDepth>=F.quote?R.push(M.formatting+"-"+F.formatting[z]+"-"+F.quote):R.push("error"))}if(F.taskOpen)return R.push("meta"),R.length?R.join(" "):null;if(F.taskClosed)return R.push("property"),R.length?R.join(" "):null;if(F.linkHref?R.push(M.linkHref,"url"):(F.strong&&R.push(M.strong),F.em&&R.push(M.em),F.strikethrough&&R.push(M.strikethrough),F.emoji&&R.push(M.emoji),F.linkText&&R.push(M.linkText),F.code&&R.push(M.code),F.image&&R.push(M.image),F.imageAltText&&R.push(M.imageAltText,"link"),F.imageMarker&&R.push(M.imageMarker)),F.header&&R.push(M.header,M.header+"-"+F.header),F.quote&&(R.push(M.quote),!I.maxBlockquoteDepth||I.maxBlockquoteDepth>=F.quote?R.push(M.quote+"-"+F.quote):R.push(M.quote+"-"+I.maxBlockquoteDepth)),F.list!==!1){var Q=(F.listStack.length-1)%3;Q?Q===1?R.push(M.list2):R.push(M.list3):R.push(M.list1)}return F.trailingSpaceNewLine?R.push("trailing-space-new-line"):F.trailingSpace&&R.push("trailing-space-"+(F.trailingSpace%2?"a":"b")),R.length?R.join(" "):null}function l(F,R){return F.match(s,!0)?b(R):void 0}function A(F,R){var z=R.text(F,R);if(typeof z!="undefined")return z;if(R.list)return R.list=null,b(R);if(R.taskList){var Q=F.match(a,!0)[1]===" ";return Q?R.taskOpen=!0:R.taskClosed=!0,I.highlightFormatting&&(R.formatting="task"),R.taskList=!1,b(R)}if(R.taskOpen=!1,R.taskClosed=!1,R.header&&F.match(/^#+$/,!0))return I.highlightFormatting&&(R.formatting="header"),b(R);var $=F.next();if(R.linkTitle){R.linkTitle=!1;var ee=$;$==="("&&(ee=")"),ee=(ee+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var fe="^\\s*(?:[^"+ee+"\\\\]+|\\\\\\\\|\\\\.)"+ee;if(F.match(new RegExp(fe),!0))return M.linkHref}if($==="`"){var Ae=R.formatting;I.highlightFormatting&&(R.formatting="code"),F.eatWhile("`");var ce=F.current().length;if(R.code==0&&(!R.quote||ce==1))return R.code=ce,b(R);if(ce==R.code){var ie=b(R);return R.code=0,ie}else return R.formatting=Ae,b(R)}else if(R.code)return b(R);if($==="\\"&&(F.next(),I.highlightFormatting)){var be=b(R),se=M.formatting+"-escape";return be?be+" "+se:se}if($==="!"&&F.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return R.imageMarker=!0,R.image=!0,I.highlightFormatting&&(R.formatting="image"),b(R);if($==="["&&R.imageMarker&&F.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return R.imageMarker=!1,R.imageAltText=!0,I.highlightFormatting&&(R.formatting="image"),b(R);if($==="]"&&R.imageAltText){I.highlightFormatting&&(R.formatting="image");var be=b(R);return R.imageAltText=!1,R.image=!1,R.inline=R.f=T,be}if($==="["&&!R.image)return R.linkText&&F.match(/^.*?\]/)||(R.linkText=!0,I.highlightFormatting&&(R.formatting="link")),b(R);if($==="]"&&R.linkText){I.highlightFormatting&&(R.formatting="link");var be=b(R);return R.linkText=!1,R.inline=R.f=F.match(/\(.*?\)| ?\[.*?\]/,!1)?T:A,be}if($==="<"&&F.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){R.f=R.inline=g,I.highlightFormatting&&(R.formatting="link");var be=b(R);return be?be+=" ":be="",be+M.linkInline}if($==="<"&&F.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){R.f=R.inline=g,I.highlightFormatting&&(R.formatting="link");var be=b(R);return be?be+=" ":be="",be+M.linkEmail}if(I.xml&&$==="<"&&F.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var me=F.string.indexOf(">",F.pos);if(me!=-1){var le=F.string.substring(F.start,me);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(le)&&(R.md_inside=!0)}return F.backUp(1),R.htmlState=Z.startState(k),c(F,R,P)}if(I.xml&&$==="<"&&F.match(/^\/\w*?>/))return R.md_inside=!1,"tag";if($==="*"||$==="_"){for(var ge=1,ae=F.pos==1?" ":F.string.charAt(F.pos-2);ge<3&&F.eat($);)ge++;var pe=F.peek()||" ",Me=!/\s/.test(pe)&&(!d.test(pe)||/\s/.test(ae)||d.test(ae)),xe=!/\s/.test(ae)&&(!d.test(ae)||/\s/.test(pe)||d.test(pe)),Ke=null,tt=null;if(ge%2&&(!R.em&&Me&&($==="*"||!xe||d.test(ae))?Ke=!0:R.em==$&&xe&&($==="*"||!Me||d.test(pe))&&(Ke=!1)),ge>1&&(!R.strong&&Me&&($==="*"||!xe||d.test(ae))?tt=!0:R.strong==$&&xe&&($==="*"||!Me||d.test(pe))&&(tt=!1)),tt!=null||Ke!=null){I.highlightFormatting&&(R.formatting=Ke==null?"strong":tt==null?"em":"strong em"),Ke===!0&&(R.em=$),tt===!0&&(R.strong=$);var ie=b(R);return Ke===!1&&(R.em=!1),tt===!1&&(R.strong=!1),ie}}else if($===" "&&(F.eat("*")||F.eat("_"))){if(F.peek()===" ")return b(R);F.backUp(1)}if(I.strikethrough){if($==="~"&&F.eatWhile($)){if(R.strikethrough){I.highlightFormatting&&(R.formatting="strikethrough");var ie=b(R);return R.strikethrough=!1,ie}else if(F.match(/^[^\s]/,!1))return R.strikethrough=!0,I.highlightFormatting&&(R.formatting="strikethrough"),b(R)}else if($===" "&&F.match(/^~~/,!0)){if(F.peek()===" ")return b(R);F.backUp(2)}}if(I.emoji&&$===":"&&F.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){R.emoji=!0,I.highlightFormatting&&(R.formatting="emoji");var he=b(R);return R.emoji=!1,he}return $===" "&&(F.match(/^ +$/,!1)?R.trailingSpace++:R.trailingSpace&&(R.trailingSpaceNewLine=!0)),b(R)}function g(F,R){var z=F.next();if(z===">"){R.f=R.inline=A,I.highlightFormatting&&(R.formatting="link");var Q=b(R);return Q?Q+=" ":Q="",Q+M.linkInline}return F.match(/^[^>]+/,!0),M.linkInline}function T(F,R){if(F.eatSpace())return null;var z=F.next();return z==="("||z==="["?(R.f=R.inline=y(z==="("?")":"]"),I.highlightFormatting&&(R.formatting="link-string"),R.linkHref=!0,b(R)):"error"}var m={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function y(F){return function(R,z){var Q=R.next();if(Q===F){z.f=z.inline=A,I.highlightFormatting&&(z.formatting="link-string");var $=b(z);return z.linkHref=!1,$}return R.match(m[F]),z.linkHref=!0,b(z)}}function U(F,R){return F.match(/^([^\]\\]|\\.)*\]:/,!1)?(R.f=N,F.next(),I.highlightFormatting&&(R.formatting="link"),R.linkText=!0,b(R)):o(F,R,A)}function N(F,R){if(F.match(/^\]:/,!0)){R.f=R.inline=S,I.highlightFormatting&&(R.formatting="link");var z=b(R);return R.linkText=!1,z}return F.match(/^([^\]\\]|\\.)+/,!0),M.linkText}function S(F,R){return F.eatSpace()?null:(F.match(/^[^\s]+/,!0),F.peek()===void 0?R.linkTitle=!0:F.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),R.f=R.inline=A,M.linkHref+" url")}var H={startState:function(){return{f:w,prevLine:{stream:null},thisLine:{stream:null},block:w,htmlState:null,indentation:0,inline:A,text:l,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(F){return{f:F.f,prevLine:F.prevLine,thisLine:F.thisLine,block:F.block,htmlState:F.htmlState&&Z.copyState(k,F.htmlState),indentation:F.indentation,localMode:F.localMode,localState:F.localMode?Z.copyState(F.localMode,F.localState):null,inline:F.inline,text:F.text,formatting:!1,linkText:F.linkText,linkTitle:F.linkTitle,linkHref:F.linkHref,code:F.code,em:F.em,strong:F.strong,strikethrough:F.strikethrough,emoji:F.emoji,header:F.header,setext:F.setext,hr:F.hr,taskList:F.taskList,list:F.list,listStack:F.listStack.slice(0),quote:F.quote,indentedCode:F.indentedCode,trailingSpace:F.trailingSpace,trailingSpaceNewLine:F.trailingSpaceNewLine,md_inside:F.md_inside,fencedEndRE:F.fencedEndRE}},token:function(F,R){if(R.formatting=!1,F!=R.thisLine.stream){if(R.header=0,R.hr=!1,F.match(/^\s*$/,!0))return B(R),null;if(R.prevLine=R.thisLine,R.thisLine={stream:F},R.taskList=!1,R.trailingSpace=0,R.trailingSpaceNewLine=!1,!R.localState&&(R.f=R.block,R.f!=P)){var z=F.match(/^\s*/,!0)[0].replace(/\t/g,f).length;if(R.indentation=z,R.indentationDiff=null,z>0)return null}}return R.f(F,R)},innerMode:function(F){return F.block==P?{state:F.htmlState,mode:k}:F.localState?{state:F.localState,mode:F.localMode}:{state:F,mode:H}},indent:function(F,R,z){return F.block==P&&k.indent?k.indent(F.htmlState,R,z):F.localState&&F.localMode.indent?F.localMode.indent(F.localState,R,z):Z.Pass},blankLine:B,getType:b,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return H},"xml"),Z.defineMIME("text/markdown","markdown"),Z.defineMIME("text/x-markdown","markdown")})},loD1:function(Re,te){function v(Z,K,I,k,_,O,M){if(_===0)return!1;var x=_,n=0,p=Z;if(M>K+x&&M>k+x||M<K-x&&M<k-x||O>Z+x&&O>I+x||O<Z-x&&O<I-x)return!1;if(Z!==I)n=(K-k)/(Z-I),p=(Z*k-I*K)/(Z-I);else return Math.abs(O-Z)<=x/2;var a=n*O-M+p,t=a*a/(n*n+1);return t<=x/2*x/2}te.containStroke=v},lseA:function(Re,te,v){Re.exports={"sort-list-panel":"sort-list-panel___3v1zo","sort-list-tip":"sort-list-tip___ZU19v","ant-drawer-content":"ant-drawer-content___1OfCe","dragging-li":"dragging-li___BZnL9","task-list-container":"task-list-container___1s_AZ",imgradius:"imgradius___1FGzg",directionItemWrap:"directionItemWrap___3LaaO",groupActionWrap:"groupActionWrap___swDtd",bottomdiv:"bottomdiv___1t3po",ml3:"ml3___hQDDB"}},lzim:function(Re,te,v){"use strict";var Z=v("E7E6"),K=v.n(Z);v.d(te,"w",function(){return K.a});var I=v("/GNS"),k=v.n(I);v.d(te,"v",function(){return k.a});var _=v("FOrL"),O=v.n(_);v.d(te,"q",function(){return O.a});var M=v("HpTS"),x=v.n(M);v.d(te,"x",function(){return x.a});var n=v("tWlo"),p=v.n(n);v.d(te,"a",function(){return p.a});var a=v("7ZXX"),t=v.n(a);v.d(te,"l",function(){return t.a});var h=v("GABl"),s=v.n(h);v.d(te,"e",function(){return s.a});var i=v("onxn"),u=v.n(i);v.d(te,"n",function(){return u.a});var d=v("nKGa"),f=v.n(d);v.d(te,"m",function(){return f.a});var o=v("4qgm"),c=v.n(o);v.d(te,"z",function(){return c.a});var E=v("JeFH"),B=v.n(E);v.d(te,"b",function(){return B.a});var w=v("ji0R"),P=v.n(w);v.d(te,"i",function(){return P.a});var C=v("W6BS"),b=v.n(C);v.d(te,"A",function(){return b.a});var l=v("kPYp"),A=v.n(l);v.d(te,"B",function(){return A.a});var g=v("nukY"),T=v.n(g),m=v("4u4S"),y=v.n(m),U=v("yslc"),N=v.n(U),S=v("l2Kq"),H=v.n(S),F=v("RMFE"),R=v.n(F);v.d(te,"o",function(){return R.a});var z=v("TGq3"),Q=v.n(z),$=v("SMhR"),ee=v.n($);v.d(te,"y",function(){return ee.a});var fe=v("8/bI"),Ae=v.n(fe);v.d(te,"j",function(){return Ae.a});var ce=v("JWDV"),ie=v.n(ce),be=v("Xsq0"),se=v.n(be);v.d(te,"p",function(){return se.a});var me=v("Ohmc"),le=v.n(me);v.d(te,"c",function(){return le.a});var ge=v("csWT"),ae=v.n(ge);v.d(te,"d",function(){return ae.a});var pe=v("7v3h"),Me=v.n(pe);v.d(te,"k",function(){return Me.a});var xe=v("cRFk"),Ke=v.n(xe);v.d(te,"u",function(){return Ke.a});var tt=v("kPWJ"),he=v.n(tt);v.d(te,"t",function(){return he.a});var Se=v("qgvg"),Ue=v.n(Se);v.d(te,"r",function(){return Ue.a});var Ne=v("FPkq"),ct=v.n(Ne);v.d(te,"s",function(){return ct.a});var mt=v("A/g1"),Rt=v.n(mt);v.d(te,"f",function(){return Rt.a});var ht=v("Nmxd"),Ut=v.n(ht);v.d(te,"g",function(){return Ut.a});var zt=v("5D2P"),ze=v.n(zt);v.d(te,"h",function(){return ze.a});var Ve=v("djh8"),Et=v.n(Ve),Ot=v("Jq4h"),ut=v.n(Ot)},mFDi:function(Re,te,v){var Z=v("QBsz"),K=v("Fofx"),I=Z.applyTransform,k=Math.min,_=Math.max;function O(x,n,p,a){p<0&&(x=x+p,p=-p),a<0&&(n=n+a,a=-a),this.x=x,this.y=n,this.width=p,this.height=a}O.prototype={constructor:O,union:function(x){var n=k(x.x,this.x),p=k(x.y,this.y);this.width=_(x.x+x.width,this.x+this.width)-n,this.height=_(x.y+x.height,this.y+this.height)-p,this.x=n,this.y=p},applyTransform:function(){var x=[],n=[],p=[],a=[];return function(t){if(!t)return;x[0]=p[0]=this.x,x[1]=a[1]=this.y,n[0]=a[0]=this.x+this.width,n[1]=p[1]=this.y+this.height,I(x,x,t),I(n,n,t),I(p,p,t),I(a,a,t),this.x=k(x[0],n[0],p[0],a[0]),this.y=k(x[1],n[1],p[1],a[1]);var h=_(x[0],n[0],p[0],a[0]),s=_(x[1],n[1],p[1],a[1]);this.width=h-this.x,this.height=s-this.y}}(),calculateTransform:function(x){var n=this,p=x.width/n.width,a=x.height/n.height,t=K.create();return K.translate(t,t,[-n.x,-n.y]),K.scale(t,t,[p,a]),K.translate(t,t,[x.x,x.y]),t},intersect:function(x){if(!x)return!1;x instanceof O||(x=O.create(x));var n=this,p=n.x,a=n.x+n.width,t=n.y,h=n.y+n.height,s=x.x,i=x.x+x.width,u=x.y,d=x.y+x.height;return!(a<s||i<p||h<u||d<t)},contain:function(x,n){var p=this;return x>=p.x&&x<=p.x+p.width&&n>=p.y&&n<=p.y+p.height},clone:function(){return new O(this.x,this.y,this.width,this.height)},copy:function(x){this.x=x.x,this.y=x.y,this.width=x.width,this.height=x.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},O.create=function(x){return new O(x.x,x.y,x.width,x.height)};var M=O;Re.exports=M},mLcG:function(Re,te){var v=typeof window!="undefined"&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(Z){setTimeout(Z,16)};Re.exports=v},n1HI:function(Re,te,v){var Z=v("hX1E"),K=Z.normalizeRadian,I=Math.PI*2;function k(_,O,M,x,n,p,a,t,h){if(a===0)return!1;var s=a;t-=_,h-=O;var i=Math.sqrt(t*t+h*h);if(i-s>M||i+s<M)return!1;if(Math.abs(x-n)%I<1e-4)return!0;if(p){var u=x;x=K(n),n=K(u)}else x=K(x),n=K(n);x>n&&(n+=I);var d=Math.atan2(h,t);return d<0&&(d+=I),d>=x&&d<=n||d+I>=x&&d+I<=n}te.containStroke=k},n6Mw:function(Re,te,v){var Z=v("SrGk"),K=v("bYtY"),I=v("Fofx");function k(O,M){Z.call(this,O,M,"clipPath","__clippath_in_use__")}K.inherits(k,Z),k.prototype.update=function(O){var M=this.getSvgElement(O);M&&this.updateDom(M,O.__clipPaths,!1);var x=this.getTextSvgElement(O);x&&this.updateDom(x,O.__clipPaths,!0),this.markUsed(O)},k.prototype.updateDom=function(O,M,x){if(M&&M.length>0){var n=this.getDefs(!0),p=M[0],a,t,h=x?"_textDom":"_dom";p[h]?(t=p[h].getAttribute("id"),a=p[h],n.contains(a)||n.appendChild(a)):(t="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,a=this.createElement("clipPath"),a.setAttribute("id",t),n.appendChild(a),p[h]=a);var s=this.getSvgProxy(p);if(p.transform&&p.parent.invTransform&&!x){var i=Array.prototype.slice.call(p.transform);I.mul(p.transform,p.parent.invTransform,p.transform),s.brush(p),p.transform=i}else s.brush(p);var u=this.getSvgElement(p);a.innerHTML="",a.appendChild(u.cloneNode()),O.setAttribute("clip-path","url(#"+t+")"),M.length>1&&this.updateDom(a,M.slice(1),x)}else O&&O.setAttribute("clip-path","none")},k.prototype.markUsed=function(O){var M=this;O.__clipPaths&&K.each(O.__clipPaths,function(x){x._dom&&Z.prototype.markUsed.call(M,x._dom),x._textDom&&Z.prototype.markUsed.call(M,x._textDom)})};var _=k;Re.exports=_},n6Qo:function(Re,te,v){"use strict";v.d(te,"a",function(){return x});var Z=v("q1tI"),K=v("biw7"),I=v("fyJ8");function k(n){var p=n.className,a=n.index,t=n.children,h=n.colSpan,s=n.rowSpan,i=Z.useContext(K.a),u=i.prefixCls,d=i.fixedInfoList,f=d[a];return Z.createElement(I.a,Object.assign({className:p,index:a,component:"td",prefixCls:u,record:null,dataIndex:null,render:function(){return{children:t,props:{colSpan:h,rowSpan:s}}}},f))}function _(n){return Z.createElement("tr",Object.assign({},n))}function O(n){var p=n.children,a=Z.useContext(K.a),t=a.prefixCls;return Z.createElement("tfoot",{className:"".concat(t,"-summary")},p)}var M=te.b=O,x={Cell:k,Row:_}},nCxF:function(Re,te,v){var Z=v("QBsz"),K=Z.min,I=Z.max,k=Z.scale,_=Z.distance,O=Z.add,M=Z.clone,x=Z.sub;function n(p,a,t,h){var s=[],i=[],u=[],d=[],f,o,c,E;if(h){c=[Infinity,Infinity],E=[-Infinity,-Infinity];for(var B=0,w=p.length;B<w;B++)K(c,c,p[B]),I(E,E,p[B]);K(c,c,h[0]),I(E,E,h[1])}for(var B=0,w=p.length;B<w;B++){var P=p[B];if(t)f=p[B?B-1:w-1],o=p[(B+1)%w];else if(B===0||B===w-1){s.push(M(p[B]));continue}else f=p[B-1],o=p[B+1];x(i,o,f),k(i,i,a);var C=_(P,f),b=_(P,o),l=C+b;l!==0&&(C/=l,b/=l),k(u,i,-C),k(d,i,b);var A=O([],P,u),g=O([],P,d);h&&(I(A,A,c),K(A,A,E),I(g,g,c),K(g,g,E)),s.push(A),s.push(g)}return t&&s.push(s.shift()),s}Re.exports=n},nEHx:function(Re,te,v){"use strict";v.d(te,"a",function(){return Z});var Z;(function(K){K.DARK="dark",K.LIGHT="light",K.HIGH_CONTRAST="hc"})(Z||(Z={}))},nKGa:function(Re,te,v){Re.exports=v.p+"static/export_exercise-template.f7655c19.png"},nPnh:function(Re,te){var v=Math.round;function Z(k,_,O){if(!_)return;var M=_.x1,x=_.x2,n=_.y1,p=_.y2;k.x1=M,k.x2=x,k.y1=n,k.y2=p;var a=O&&O.lineWidth;if(!a)return;v(M*2)===v(x*2)&&(k.x1=k.x2=I(M,a,!0)),v(n*2)===v(p*2)&&(k.y1=k.y2=I(n,a,!0))}function K(k,_,O){if(!_)return;var M=_.x,x=_.y,n=_.width,p=_.height;k.x=M,k.y=x,k.width=n,k.height=p;var a=O&&O.lineWidth;if(!a)return;k.x=I(M,a,!0),k.y=I(x,a,!0),k.width=Math.max(I(M+n,a,!1)-k.x,n===0?0:1),k.height=Math.max(I(x+p,a,!1)-k.y,p===0?0:1)}function I(k,_,O){if(!_)return k;var M=v(k*2);return(M+v(_))%2===0?M/2:(M+(O?1:-1))/2}te.subPixelOptimizeLine=Z,te.subPixelOptimizeRect=K,te.subPixelOptimize=I},ni6a:function(Re,te,v){var Z=v("pzxd"),K=v("mFDi"),I=v("gut8"),k=I.WILL_BE_RESTORED,_=new K,O=function(){};O.prototype={constructor:O,drawRectText:function(x,n){var p=this.style;n=p.textRect||n,this.__dirty&&Z.normalizeTextStyle(p,!0);var a=p.text;if(a!=null&&(a+=""),!Z.needDrawText(a,p))return;x.save();var t=this.transform;p.transformText?this.setTransform(x):t&&(_.copy(n),_.applyTransform(t),n=_),Z.renderText(this,x,a,p,n,k),x.restore()}};var M=O;Re.exports=M},nnTU:function(Re,te,v){"use strict";v.d(te,"b",function(){return M}),v.d(te,"a",function(){return x});var Z=v("MI8n"),K=v("JYp7"),I=v("pmY6"),k=v("24hK"),_=v("746U"),O=v("Cg/j");const M=Object(O.c)("commandService"),x=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Z.b,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(n,p){if(!n)throw new Error("invalid command");if(typeof n=="string"){if(!p)throw new Error("invalid command");return this.registerCommand({id:n,handler:p})}if(n.description){const i=[];for(let d of n.description.args)i.push(d.constraint);const u=n.handler;n.handler=function(d,...f){return Object(_.o)(f,i),u(d,...f)}}const{id:a}=n;let t=this._commands.get(a);t||(t=new k.a,this._commands.set(a,t));let h=t.unshift(n),s=Object(I.i)(()=>{h();const i=this._commands.get(a);(i==null?void 0:i.isEmpty())&&this._commands.delete(a)});return this._onDidRegisterCommand.fire(a),s}registerCommandAlias(n,p){return x.registerCommand(n,(a,...t)=>a.get(M).executeCommand(p,...t))}getCommand(n){const p=this._commands.get(n);return!p||p.isEmpty()?void 0:K.a.first(p)}getCommands(){const n=new Map;for(const p of this._commands.keys()){const a=this.getCommand(p);a&&n.set(p,a)}return n}};x.registerCommand("noop",()=>{})},nukY:function(Re,te){Re.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALoAAABSCAYAAADjGc4eAAAMkklEQVR4Xu2dWWwcSRnHv7Yd577v+74vkgWEQCAEy6IVWuCB62GVICFIYkcsvMC+LW8LL7BIiTiEhCweInjgPrRCC2KBJTBVYzm24yRO4ty3kziJj9ie+tC/d9oaT2b67ume7irJsjdbVf19X/266quvjjaEEG8w8yukk7ZAii1gMHODEOK3RPRSivXUqmXcAgb07+jomDk2NvYPZn4u4/bQ6qfUAiboSEKI5cz8XyJanVJdtVoZtsAE6EXYdzPzv4hoToZtolVPoQUmgV6E/QVm/hMRNaVQX61SRi3wDOiwg5Tya0qpn2TUJlrtFFqgIujFnv27zPztFOqsVcqgBaqCzsyGlPJXzPy5DNpFq5wyC1QFHXr29fVN6+/v/zszfyBlemt1MmYBW9Bhi3w+v7hQKJwkog0Zs41WN0UWcAS96K9vI6J3mHl+inTXqmTIAq5Ahz1yudxHDcN4k5mbM2QfrWpKLOAa9CLsB4ioLSW6azUyZAFPoBdh/w4RvZYhG2lVU2ABz6AXYf8FEb2cAv21ChmxgC/Qu7q6moeHh/9KRB/JiJ20mnVuAV+gQ+fu7u4FQ0ND/yGiLXVuAy1+BizgG/Ri2HEjEZ1k5kUZsJVWsY4tEAh06N3e3v7B8fHxt4hoWh3bIRbRm5qaaHx83NOzDcMg/DCz+RNlamhoMKtXSkX5mJrUHRh0SCml/CIzn8D+mJpInYKHNDY20p49e2hoaIguX75MIyMjrrRatWoVLVu2jJ48eUJnzpxxVcZPpunTp9POnTvNot3d3TQ8POynmsSUCQ1MIcSrzPx6YjSrIMiSJUvM3jCK9PTpU3r48KHrqhcvXkxr166lQqFAp06dMn+7SRp0N1Z6Nk+orS6E+Bkzf8WfKNGX2rdvH6EnjSINDAxQb2+v66p37NhBM2bMoNu3b9PVq1ddl9OguzbVpIyhgs7MTUKIvxDR8/7EibbU1q1byfI7w3pSc3MzTZkyhbyADsABOnzsrq4uwmhgJYw406ZVn+4sXbqUFi1aZLo8fX19VdUYHR2dNEqsWbOG5sxxf0ISckydOtWsH/J5mQ88ePCArl+/HpaJQ6knVNAhkRBiLjP/m4jedfBSntatW2eC5wV0QAc3CkBcuHBhkoWslyCo2S5dukT37t2bqGbTpk00b968oNW6Ko/n4vlJSqGDDuXy+fza4tbeZUlSNgpZvIKOSMvu3btNF+rs2bP0+PHjmoA+e/Zsc+RxmzBSwU1CunbtGmGEcJswAgwODrrNXpN8kYBehP29SincFTOjJprE9BCvoK9evZrgfgBwgG4lRDkA4/37923dhJUrV5qjAUA6d+5cVa0REvTibpRXpKMuHoDK5XKfMQzj17gNzEOxSLMi2oFGBCj9/f2Bn+UFdPSSu3btMiM/PT09pp9tpS1btpg+NEC/ePFiVbn0ZNRfk0XWo1viSCm/oZT6gT/xwi+1ceNGmj9/vum/huFHegHdylv+bPTkmCijF8bk1M5NCAo63Be87E4JLhZGDqQ7d+64WtiCXl5cHCcZwvz/kYMOYXO53DEiag1TcL91xQU6IilYgLFgHhsbM1VA775t2zaaOXMm3bp1y/SH7VJQ0MOa7FaSsdKcw287hV2uJqAzc6OU8nfM/KmwFfBaXxygoxcFzAjXwWXCD/4G/HBnADu2AnR2dpohQfw33KtKCf79woULzZXKauFF9KrVthaUgo4Frmp+PCbLVjjy0aNHtgtaGCGRMg86jNDV1TVreHj4bSLa5xXOMPPHBfrevXtt1cA2gLt375p58BIgMuM3YVTA6FAplYLe0dFB1shSntftZBTrEvv379eglxown8+vKBQKuMj03bhVDMkCHT1ntUb2IhZ6a/R+TnF0PBe9J0Jv2NeC3wsWLJiIoGByaiUNupcWcJe3Jq5LGex7C4XCP4lotjsRw81lgR5ureQIeqUec/v27aabgs1Z5XHnICu4drsNdY8edsvb1CelfEkp9fsaPnLiURboiGNbrkIYcmB0KF/8sasXkGMC6nWvS1BZNehBLeihvJTy+0qpb3ooElrWsH10P4JhQomFI7gwp0+frul+71LQ8aJX6/0RXsSkFwnrDXb75qEPkp6MltAgpXxZKYXD1bGkuEFHL46YOVwWgIF95aUJ/jn8d4AGWb0mLDjZjVQ6vOjVoj7ySymfU0rhQwOxnUaKE3RMXOGyIKRoRUbwN8J41g8gx8QU/46DGV6TUyweMlg9cKW6EfLE5i+EKCEDkvU3wpF2B0TwgpXuxPQqe5T5azYZ7ejoWDI6Oiri/nRMXKADGjwbPTr8eUADuK2tsFYj49/Pnz8/CfQbN244Roiw2one2gl0O5gwiuBFxG/E6LHjEQn77NevX2/G0vESej3+FyXAbuuuCehCCGybe4uZP+xWsKjyRQ06lvkBK8KNpYsxGzZsMMOJ5Qk+MtwX5Ec5q0cs7dGxkOTUU1rbcP2CDlcK+22wHQFbIxAFKj1Kh7g6dMCEG5vJgmwYi6pt7eqtFeg/YubDcShY/swoQUc8HaeYkDDJLN20hYkdXgIAi3/HyiZ+A5xKE8Jago5QJiCGy2KNKJUWjHD0DyMHZMao4/b4XxLaPXLQpZRfVUr9NAnKQoYoQS9d6ClfdbRO77s9UV8r0OGmbN682XSpADDcFMhYbWUULgxeWvjqyOs00iSl3SMFHVdhFAoFfEggMTfwRgn63LlzTWgwrEspfbWxdXgbk0ZrMhqV6zJr1izT98YLCvcJLon1ItptAbBsCF/9ypUr5tbipKfIQC8u96O1E3XKKErQcQ0FdhfCLcEVEW4TelW8JHAdMEHFSincgqhAh4sFOXEEEC9WJVfEDnSUwXFAa7sv3B3s1QljS4Vbm3nNFwnovb29UwcGBt5m5vd7FSjq/NbQiyEXPWWYCfFxTOawwGJ3cBm9NVwFREkANv4uvYYDL0kUoOMZmBDjlJIVOqw2eXWzqQsvCoCHj4/e/ebNm+be9SROVCMBXQjxc2b+cpgQhVXX8uXLzYZGQiMDyqCHBQCFtUEL9QLy0tNL6EFxiAFA46fS2U1MTHFYGr0jRoRSHx2ugdPEzwpVVgIXgANKjDhWOBNgIrpS7S4aN6BDV7ysGCWtemFLAI9DGEkCPnTQhRBfZ+YfhgVm2PWgQRA2C7Jpyk4mDN84JVQKJsAu36aLfPCL4TYAtvKXLcwFoxUrVhB+kAAfXhwsWNm5Gm5BR52wJerHQpQ1MiH2j5+kpFBBx+dfiAjXSSf6q9PwhzHkli/WBGkUAARocRlRpevbcPDCOnQBwJ1GkVLQnfaaQG7499CnUo8OEPFyA2zI5+aEvhfQLbuhDEKQSNjekMoeHVdcKKVEPd2sC5cCvW3Qa+qsfeZhNmzY4UXo6WWy6Ad0C3jY1cnVCtKp+CkbSo8uhJhRvLToPX6E0GUqW8Dy5d0ACrjQcwMwt7F6O7sHuakrie0ZCui5XO4EEX0piQpqmbQFYIHAoOdyuW8R0fe0ObUFkmyBQKBLKT/JzH9O0gVFSTa2li0+C/gGXUq5iZn/p78mHV/j6Se7t4Av0ItXV5zMyo257s2pcybVAp5Bx+dbpJS4T/GzSVVKy6UtUG4Bz6BLKV9TSuHr0TppC9SNBTyBXrwd9zf6o1x1075a0KIFXIMupdyulMItW7FcPKRbTFsgiAVcgd7e3j6vUCggwrI5yMN0WW2BuCzgCDpi5EKIPxLRi3EJqZ+rLRDUAo6gCyFeZ+ZXgz5Il9cWiNMCtqBLKb+glPplnALqZ2sLhGGBqqDn8/m9Sql30v6xrTCMqOtIvgUqgt7T07NwcHAQe8vXJV8FLaG2gLMFngEdX3+WUr7JzB9zLq5zaAvUhwWeAV0I8QYzv1If4msptQXcWWAS6Llc7gARtbkrqnNpC9SPBSZAb29vf9/4+Dg+phXblc71YzYtab1ZwAS9s7Nz6cjICK50ju0jWvVmOC1vfVnAKF7pjPsRP1RfomtptQXcWwB7y3+slDrkvojOqS1QfxZw3AJQfyppibNkgWPHjrGDvsowjMMa9CxRkUJdHUAfNwzjQGtr6wkNegobP0sq2YD+1DCMz7e2tv4B9tCgZ4mKFOpaBfTBxsbGTx85cuRvlsoa9BQ2fpZUqgD6w4aGhhdbWlpwS8VE0qBniYoU6loKumEYdxobG184fPhwR7mqGvQUNn6WVCoB/VpDQ8PzLS0tZyvpr0HPEhUp1LUI+gUi+vjRo0cvV1NRg57Cxs+SSsePH+9qamr6xKFDh27a6a1BzxIVKdS1ra1t4cGDB/udVPs/YIoD4AHLutsAAAAASUVORK5CYII="},onxn:function(Re,te){Re.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAQFElEQVRoQ71aCXRUVZr+7ttqr6yVPSRASCBIVFBUWgUURZFW7FYa9Xhc2lHWGdM9bYszaqa1tcUFV9RRu3V6etw4DQJqY4MDLUJQEQIYEsieqspW2Wp/9ZY7570ia1VIRXH+cyo59e6/3O/+//3vf/9XBGeR8sr/lipS6QpKyMUApoOiGISmgBIbJZSAwkdA+ihQB0JqCPAVy3K7Op5Z3Hm2pkF+qKKiik/sfV7lF5SSOwF6MSiYiekklBAcIqDvmAzkLy1/WNo7MfmR3N8bUF75fpOInnIK+iClsP2QSQzIEiAIBk8L9uwN7ooLgt9H54QBUUqJo3zHrZTgSVDkfx+jY8lcaqgDJ0awl5S6KGXWezYu+W9CCJ2IjQkByvzXnZNlRXoPlM4dywghBJRhwBACkNPRp1nRpqX/p6CqJq2Cqqr+XSdFgVGg2DRlG85FE7Y6i/Bs6NqvZdZwc9uz1zUnCiouIPrBzaxr9+Eb816v2zygKONXO+apKrZSUEeMcg0AwwAMB8JMaI2iABUFqihC7e0HMQr43YwDuGvqd/B2yni0bn7/X6W5i47J5aUC1K1pL9V5zwQurnXXqmnrKMX8vNdO3aQJp//641ug0D9RUMOgMs0BLBf9aN44C0RlGbKrHVSW8OCsY1hXVg0qq6issStfdOQ+ssrw+VKVKtfnPHvSM2aEjB6gFQuMzjaXi4AazclJOcWR391LqbphiI+AcGwMkDsNO7DCvBNFllYc8J6L273/8b0gamEot7WDhsJ4+JxDWHleva6ntQl0c2PRK/fYv1zESOwjjicPb463v2KW1rWyeIVK1Xc1JSeZ3E+XG35zDUB1PsKwYHgeGOaROVw13nI8jmxr9Chp6MvHPM9boDTB7K1SqH4/wLIgRgMIy4JTJZCudgR8Et77yW5cNrlb193WotLaOn7TvOn9a8KuwIbs3x/77ehViwHkXDntY0rpEo1RDPF0m3AB+b11OViOxSS2B4WcGy7GgXopH4u5SryVXwGek3W9vrAVs5zvIUSNCXtH6eiE4vNH+QkBa7fBEvRg2/kfoaOHxfrm+dh67R6k2RWdpaNeUpSWnu0ZZUk3BI93Xpy98eRXw43FAGpdWdQDihRR5CAGObCciu6kZGSrPeAhg+EU8FYRooVBRnonBENkUN8jrlV4PfjzhMFojHJ7Z9RDo6jQ7MOuqz8GI0r4pCEHN14Y9ZJGx48xvpIMP1V8kj91UuEksvzDKNrTiXSQsW3l9EKZyo2yxCDoF8ALCkxmKZpu4xBhVKQVt8FoD8EXtmCac0vioTagT8twEUlP21pSoOEwVH9AH51u7cFn132mlx5UoWCMrP5cSxQNDcQ9dQrNDhxsvzvj6eq34wNaVTRfVrEn4DOA52UIxkHgY656xsxWCBYR3zpn4drQxgl5ZyxmLQw1kMQg4IXCHfhZWUcMq9QnUc7MyqLb70m7/6ucuIDcq4uuFsPMTm2Q4/XT78zEqMid06DnCNfRPDyl3In3rQvGk5rQON/pxndXvQPeFCdMFJVSFaR/f9tVuRtP7IoJuTdWL69YLH/7aKLHCmeKIGtWiz7BhsqpCPeb4DVYEGSMCDEGeIkZzX6CPRkLcdhaOiEgA8xUkvGY5V3cPts1pnyoumdn+kPfXhMD6G+rrvDOVFsSLjQNSUE4Sty6obovihEJCjFGWwMEp4QcPFbym9gJaftGkvVUDZ4bO6z7G3Fw8fsjxhm5DyqXrD+TOoL9yfft178M+nHL6ut+eYFS++ZEltGYHEB6cZsu0vR1IYI91hhxr92B59hF2Jty0YgxqlJIzS16MtCJZSEUThpxxg0IqIEgjs99EbZhS82Fm6EIGaCMCUpARvCLnsys1452DgL6ZtUFTZlqX8FEAAmWMDJmOnWR9upcBKRS8JmZYA0GRDo7YJ5RisaICTc0XhajVnK69Yw2nBizGVx2ZiwoSvGu4xVcXDSU3tlIGxjZC8lcohe+3kr3kuynqj/VAblWlZSoqlIzETAaLyPIyDmvSRfz+yZDmXH/CBWHGv24o+VCRNSRVYMWZrp34hCbngY2OWlohFJI7jaszjqIh35SO/ickXog+I4jnKotFkH4uKc87d+PPK8DqrnvnA0WhOME+fgQM85pgWCOQFUIvBkPg5jSIPZ78W8n87HNnxdXgVavqZ5uqMEgqBx7NLBJdrCOdF02V2xFyN2LkqR+/M+SL4cB6oPR+w3CyXOhsnaEjvc+rnSJL+uAjq46vzZF9RWPP/1YDrPDi9TJ0TouJBbgSPhnuKlrCeRo+TcuKX1eKJ7Y4pmxmEFMZsy2tOH53C245dvFOHCTfqLoxEQ8MPqOIGKeAtk0Be3HfO8a3L07CS2/xNQa9PgIaPQYTpQIhS27V/8wbPSSpv3NOvX30QVIjEbZ5dYvd2xaKrR9IzW3gkpSDB9jEFCcKWP35e/huf8twK8WDt3zWLEdBv9xyIIDEdu5qK0UD2T2dewl7lXT57QR2xcZSq8pUSysICFtWrteIYym0rrN6KbRdBqPNCBSQ3TfaZlNSwKyM5r6RxPhOORmCTi44G30dipISWcx0IJhRRcM/hNQWTPCyfPwx12Oqhulb+qJc/W08/YyZQcul6oSKpEZXkZGqROsQUbEZ0QkJKCLSQHHS8g2dyGv6dMzrou2Z6SmxG7UhGFgNhOcXKbfZoau8QD4QA34sFO/2ASs83Hb3690bmL+XKUH+r7VlyoFSntCF5i0Ei1cAPexPB2MxHBYWvAHRAiHEtKMWnrmzK8VoFJT/AwXbyVYQtFy24cxQ8a+A2CUaBHbTS/BVftWeLcbX9pD+stnpvqCooeOWVMP6RKsISQVeNBwYCqoEsVfaSvFese9iUarvsqRxkZApYB2WYyzd4YrM3MyTq34a/SRKgKMAVAjMPf+Y5DtSM9CPHBsofQn05+3E+fKaUsppdsTmVFSvgc+jxV97uge0arxzcnzsdGstx4SJqXfCzAMWLMJES38ztCoKrL3Y+/1OwFVAhvphGLMBRd2QggMHZsvVK8A2yurNwpVbxDXyuInVao+mMhsUqe1oeXbfKgyp4MxmiRECI8Pci7BxuAt42a3eDbktg6ogWjoxKOrspx4e9F+ECUAPliPiPUcGPv2g1GjVYa2Fk/sW4E7hEOUIeSfNQ99Fqb8IgMi4x4cyYWdaDk8CRyvwGwdSrPZcxrwlW8WVnieQHhYY2hgggKVcD5biwuEE+hV7NitXIgONTUaRYEANFDxaEnqCUxNjuDBebVgpG4I/mrI5skQ/EPeURQWbYcmR8UJt5A4VxY9U8vm/0ux3Dp2uXvamjW7D+01mbDYIiDMUJzY87phz+lFQDThma478Mfg9RBIBD/lvsQ91q0oSWkAyw1VBIrCYFPHL/B44Jd6X05u17wUBGuzQfH5BrEdvHQjZJKEwgIruHArhEAtVNYIRhmqASNBAzqP50MFQ+0mcyrpXD2zaC+Zcvhi+URsqTxq2QzJAfg67BAMCiglGN6ltWT0w57bA5ZXoltCyzKnfa7IDJQID6oS/TkryPrnmuZXcEQqiXrqdJNRckWrd42ci9dDMJoh2UrAB2rBh1tjHBnw2NDbkIlDaqG47I1dRt3kf629uW6hdHjqePtIO4PkCA+GUIRD2gQBg0kGM8xbnEkEZ5T0LKh95AgHVeJ0MLLM6DIKyyJgMeAJ2y3Yq84eMkspIvWN+neWKOi6dh1UzgbRPgeC5yA4MuS9AaGexgwEu+x4UVlU8/Sbr83QAf1l3c+3XB6pWjYeoBHjFAj4DVBkogPSukMsR4e8RgFF1QAQKArRi1eNGq3ZeCr5VtQKsX1+rfzRyiCN1k/ZhQdKPoDC2NDdkA9HQfXwduDgVNqqChAOG7EC5U9/9Z8rH9CtfLL2p8tmSSe2TAiQ3ncnCAd5SJHxz2TKMnjVcQM+NM8f04zS3QOlt08fPzr/CeSbmxAJGOBzp+il1miSRQ7tVYXYJp5DH7Xeled5+Qa3Dkhrztd+XiNaaGhiBeppC5LEIBLmdW+NJonlsN86E8+lrICXGbtcVMPhwZou19iDo/PXQxF5hPvM0K762hVlNPW7UuF1pWFdeEXfR+88lqKND85g59orj5RKzedO1EvD+ZtIJt4WFiNV9qGdS8XXxhL0MPaEVMqdXVC90T2yvWwj5mXVwHMqG9aMfphTY88pLfG0VxVgu68MIc5Sef8b710yAtDna69cPU1qfiUh62dgOspNwUOWe9DGRM+ZRGmKtw62Xieuzq5Ceckn6D6ZCXNaAAZ7CLwp1jthrwnHvpuBfXIRvcZY+3Tpa1V6n3vQQ7RiAXe409/nUPosiU5iLL4QMaCeycFxbjK+4Gehkp8xpkoGKubKNdjgfwP9ioA8iweqyMKW1acDMaX64yaDzpocrHbdhg227YqBKMvyXju1YwQg7cvuNVfcXyy3nJ32J4AAMeFz4Tzs4mejgclBO5sCCoJ0tR9TVTeWipXIUz2YLrfoffMBsmb1InlSNwLdVljSYvveWqJ49OtbYGZlepehMpyXnZdKKvbop+2IXUwrKpjDHR93OdTeicVLgi6VwUJ7t89ijK4sQ2HP6dGrDm2PhLotetiNpgPVZXi741I8aN0t80R9Pv/VU4P9kJi0VLnm8iU5cvsOAu1Y//8jLZMlF3SBN0ZrRNFnBG8RRxza2utYf3syDjWVoIjV30Z8kzc7aR6579BgYRl30tvXLH7rPLn+7h8bjlZ5mFP9MDt8EMxD13lt4lpb2ZQc0qegnTeyyKOv2QE5FO3OSgzvFjjporyX6qKNwdMU/6UxpWTfmsuOFCrtZT8WKMKqyJkdbfSPpn5nql4XamMamN5GB0TvUK4KE6HbTqS5ma+eahgtO2ZY9fx2TlKtVziZp3Zl/FigUiZ3wOIYWZ/52pLR35oOU6oPtuw+dNdl6QfsAHmYlMZcEpiXsak6tnQY70bWubrUepjkNJTKTbGv8s8SSlOaD5Z0LwhL4XWmQvSa42rWrgf7+Fn7byVVV5KX6mLbTWcKueEa6etz+M+OphwqlZtmnSUME1bjJyb6vOmm8tc3PvrCeMIJZTLt5zBb1i59tUxuvDeRm+14RscbD1IB9Uo6ZnHRfp2XsX4489Ujy8eT08YTAjSg6Plf333p9HDLpzPlpnEvg4kYH83TrZrxcugy7IkU4SnrdszlW6AS5iOzndzu2FAbexmKY2RCgDR5zVsfrFm2YSrc92cqveNe2xMF9pk4HZvFMmQwflxrqMZFXKub49R1+ZtOne5hJaZpwoAG1GpXjhf/YXuxTK37pyLFPZSGErM7JleYCPVGRN7kreaXsp45OnY7aAwN3xvQcH1b1y65VabMwzMU5zQ79bMKmLHLm2GCEXC0jUkVRSLUF6hdW62c8n7WyzXHfsianBVAg16rqGCOerYt+E4tuOIbviR3suK+cBp1Zdpp0GRVRfZl4/XHD7AzTpnYSFWB0vHlzS2TDiz/cPn4vx2YAML/AxiD3K8wfl5pAAAAAElFTkSuQmCC"},osHv:function(Re,te,v){(function(Z){Z(v("VrN/"))})(function(Z){"use strict";var K=Z.Pos;function I(d,f){return d.line-f.line||d.ch-f.ch}var k="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",_=k+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",O=new RegExp("<(/?)(["+k+"]["+_+"]*)","g");function M(d,f,o,c){this.line=f,this.ch=o,this.cm=d,this.text=d.getLine(f),this.min=c?Math.max(c.from,d.firstLine()):d.firstLine(),this.max=c?Math.min(c.to-1,d.lastLine()):d.lastLine()}function x(d,f){var o=d.cm.getTokenTypeAt(K(d.line,f));return o&&/\btag\b/.test(o)}function n(d){return d.line>=d.max?void 0:(d.ch=0,d.text=d.cm.getLine(++d.line),!0)}function p(d){return d.line<=d.min?void 0:(d.text=d.cm.getLine(--d.line),d.ch=d.text.length,!0)}function a(d){for(;;){var f=d.text.indexOf(">",d.ch);if(f==-1){if(n(d))continue;return}if(!x(d,f+1)){d.ch=f+1;continue}var o=d.text.lastIndexOf("/",f),c=o>-1&&!/\S/.test(d.text.slice(o+1,f));return d.ch=f+1,c?"selfClose":"regular"}}function t(d){for(;;){var f=d.ch?d.text.lastIndexOf("<",d.ch-1):-1;if(f==-1){if(p(d))continue;return}if(!x(d,f+1)){d.ch=f;continue}O.lastIndex=f,d.ch=f;var o=O.exec(d.text);if(o&&o.index==f)return o}}function h(d){for(;;){O.lastIndex=d.ch;var f=O.exec(d.text);if(!f){if(n(d))continue;return}if(!x(d,f.index+1)){d.ch=f.index+1;continue}return d.ch=f.index+f[0].length,f}}function s(d){for(;;){var f=d.ch?d.text.lastIndexOf(">",d.ch-1):-1;if(f==-1){if(p(d))continue;return}if(!x(d,f+1)){d.ch=f;continue}var o=d.text.lastIndexOf("/",f),c=o>-1&&!/\S/.test(d.text.slice(o+1,f));return d.ch=f+1,c?"selfClose":"regular"}}function i(d,f){for(var o=[];;){var c=h(d),E,B=d.line,w=d.ch-(c?c[0].length:0);if(!c||!(E=a(d)))return;if(E=="selfClose")continue;if(c[1]){for(var P=o.length-1;P>=0;--P)if(o[P]==c[2]){o.length=P;break}if(P<0&&(!f||f==c[2]))return{tag:c[2],from:K(B,w),to:K(d.line,d.ch)}}else o.push(c[2])}}function u(d,f){for(var o=[];;){var c=s(d);if(!c)return;if(c=="selfClose"){t(d);continue}var E=d.line,B=d.ch,w=t(d);if(!w)return;if(w[1])o.push(w[2]);else{for(var P=o.length-1;P>=0;--P)if(o[P]==w[2]){o.length=P;break}if(P<0&&(!f||f==w[2]))return{tag:w[2],from:K(d.line,d.ch),to:K(E,B)}}}}Z.registerHelper("fold","xml",function(d,f){for(var o=new M(d,f.line,0);;){var c=h(o);if(!c||o.line!=f.line)return;var E=a(o);if(!E)return;if(!c[1]&&E!="selfClose"){var B=K(o.line,o.ch),w=i(o,c[2]);return w&&I(w.from,B)>0?{from:B,to:w.from}:null}}}),Z.findMatchingTag=function(d,f,o){var c=new M(d,f.line,f.ch,o);if(c.text.indexOf(">")==-1&&c.text.indexOf("<")==-1)return;var E=a(c),B=E&&K(c.line,c.ch),w=E&&t(c);if(!E||!w||I(c,f)>0)return;var P={from:K(c.line,c.ch),to:B,tag:w[2]};return E=="selfClose"?{open:P,close:null,at:"open"}:w[1]?{open:u(c,w[2]),close:P,at:"close"}:(c=new M(d,B.line,B.ch,o),{open:P,close:i(c,w[2]),at:"open"})},Z.findEnclosingTag=function(d,f,o,c){for(var E=new M(d,f.line,f.ch,o);;){var B=u(E,c);if(!B)break;var w=new M(d,f.line,f.ch,o),P=i(w,B.tag);if(P)return{open:B,close:P}}},Z.scanForClosingTag=function(d,f,o,c){var E=new M(d,f.line,f.ch,c?{from:0,to:c}:null);return i(E,o)}})},p5ED:function(Re,te,v){"use strict";var Z=v("+L6B"),K=v("2/Rp"),I=v("5Dmo"),k=v("3S7+"),_=v("k1fw"),O=v("tJVT"),M=v("q1tI"),x=v.n(M),n=v("vHTk"),p=v.n(n),a=v("yEEn"),t=v("ZW9T"),h=v("1vsH");te.a=function(s){var i=s.name,u=s.data,d=s.theme,f=s.type,o=s.filename,c=s.monacoEditor,E=s.className,B=s.style,w=s.close,P=s.onClose,C=s.hasMask,b=Object(M.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),l=Object(O.a)(b,2),A=l[0],g=l[1],T=Object(M.useState)(""),m=Object(O.a)(T,2),y=m[0],U=m[1],N,S=1024*1024,H=10*S,F=Object(M.useRef)();f==="office"&&(N=Object(h.T)(u).filesize,N>H&&(f="other")),o&&(c.filename=o),Object(M.useEffect)(function(){var Q,$,ee=(Q=document.cookie)===null||Q===void 0||(($=Q.replace(/\s/g,""))===null||$===void 0)?void 0:$.split(";");ee==null||ee.map(function(fe){var Ae=fe.split("=");Ae[0]==="_educoder_session"&&U(Ae[1])})},[]);var R=function(){if(u.startsWith("http")||u.startsWith("/")){z();return}Object(h.z)(o||"educoder",u,o)},z=function(){Object(h.x)(o||i,u)};return console.log("data:",u,"fileanme:",o," name:",i),x.a.createElement("div",{style:Object(_.a)({},B||{}),className:"".concat(C&&p.a.bgBlack," ").concat(f?p.a.wrp:"hide")},w&&x.a.createElement("div",{className:p.a.close,ref:F},x.a.createElement(k.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return F.current}},x.a.createElement("span",{onClick:z},x.a.createElement("i",{className:"icon-quxiaozhiding"}))),x.a.createElement(k.a,{title:"\u5173\u95ED",getPopupContainer:function(){return F.current}},x.a.createElement("span",{className:"",onClick:P},x.a.createElement("i",{className:"icon-guanbi1"})))),x.a.createElement("div",{className:"".concat(p.a[E]," ").concat(E," ").concat(p.a.monaco," ").concat(f==="txt"?"show":"hide")},f==="txt"&&x.a.createElement(t.b,c)),f==="audio"&&x.a.createElement("audio",{src:"".concat(u!=null&&u.startsWith("/")||(u==null?void 0:u.indexOf("https://"))>-1?u:"data:audio/mp3;base64,").concat(u),autoPlay:!0}),f==="video"&&x.a.createElement(x.a.Fragment,null,u!=null&&u.startsWith("/")?x.a.createElement("video",{controls:!0,src:"".concat(u),autoPlay:!0}):x.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(u),autoPlay:!0})),f==="html"&&x.a.createElement("iframe",{src:u+"&disposition=inline"}),f==="pdf"&&x.a.createElement("embed",{className:p.a.embed,src:u}),f==="image"&&x.a.createElement(x.a.Fragment,null,x.a.createElement("img",{src:"".concat(u!=null&&u.startsWith("/")||(u==null?void 0:u.indexOf("https://"))>-1?"":"data:image/png;base64,").concat(u)})),f==="other"&&x.a.createElement("div",null,x.a.createElement(K.a,{type:"primary",size:"large",onClick:R},x.a.createElement(a.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),(f==="download"||f==="office")&&x.a.createElement(K.a,{type:"primary",size:"large",onClick:R},x.a.createElement(a.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},"p77/":function(Re,te,v){},pmY6:function(Re,te,v){"use strict";v.d(te,"h",function(){return p}),v.d(te,"g",function(){return t}),v.d(te,"f",function(){return h}),v.d(te,"e",function(){return s}),v.d(te,"i",function(){return i}),v.d(te,"b",function(){return u}),v.d(te,"a",function(){return d}),v.d(te,"d",function(){return f}),v.d(te,"c",function(){return o});var Z=v("C/vA"),K=v("JYp7");const I=!1;let k=null;function _(c){k=c}if(I){const c="__is_disposable_tracked__";_(new class{trackDisposable(E){const B=new Error("Potentially leaked disposable").stack;setTimeout(()=>{E[c]||console.log(B)},3e3)}setParent(E,B){if(E&&E!==d.None)try{E[c]=!0}catch(w){}}markAsDisposed(E){if(E&&E!==d.None)try{E[c]=!0}catch(B){}}markAsSingleton(E){}})}function O(c){return k==null||k.trackDisposable(c),c}function M(c){k==null||k.markAsDisposed(c)}function x(c,E){k==null||k.setParent(c,E)}function n(c,E){if(!k)return;for(const B of c)k.setParent(B,E)}function p(c){return k==null||k.markAsSingleton(c),c}class a extends Error{constructor(c){super(`Encountered errors while disposing of store. Errors: [${c.join(", ")}]`);this.errors=c}}function t(c){return typeof c.dispose=="function"&&c.dispose.length===0}function h(c){if(K.a.is(c)){let E=[];for(const B of c)if(B)try{B.dispose()}catch(w){E.push(w)}if(E.length===1)throw E[0];if(E.length>1)throw new a(E);return Array.isArray(c)?[]:c}else if(c)return c.dispose(),c}function s(...c){const E=i(()=>h(c));return n(c,E),E}function i(c){const E=O({dispose:Object(Z.a)(()=>{M(E),c()})});return E}class u{constructor(){this._toDispose=new Set,this._isDisposed=!1,O(this)}dispose(){if(this._isDisposed)return;M(this),this._isDisposed=!0,this.clear()}clear(){try{h(this._toDispose.values())}finally{this._toDispose.clear()}}add(c){if(!c)return c;if(c===this)throw new Error("Cannot register a disposable on itself!");return x(c,this),this._isDisposed?u.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(c),c}}u.DISABLE_DISPOSED_WARNING=!1;class d{constructor(){this._store=new u,O(this),x(this._store,this)}dispose(){M(this),this._store.dispose()}_register(c){if(c===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(c)}}d.None=Object.freeze({dispose(){}});class f{constructor(){this._isDisposed=!1,O(this)}get value(){return this._isDisposed?void 0:this._value}set value(c){var E;if(this._isDisposed||c===this._value)return;(E=this._value)===null||E===void 0||E.dispose(),c&&x(c,this),this._value=c}clear(){this.value=void 0}dispose(){var c;this._isDisposed=!0,M(this),(c=this._value)===null||c===void 0||c.dispose(),this._value=void 0}clearAndLeak(){const c=this._value;return this._value=void 0,c&&x(c,null),c}}class o{constructor(c){this.object=c}dispose(){}}},psGv:function(Re,te,v){var Z,K;(function(){var I;(function(){"use strict";var M=[,,function(a){function t(i){this.__parent=i,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=[]}t.prototype.clone_empty=function(){var i=new t(this.__parent);return i.set_indent(this.__indent_count,this.__alignment_count),i},t.prototype.item=function(i){return i<0?this.__items[this.__items.length+i]:this.__items[i]},t.prototype.has_match=function(i){for(var u=this.__items.length-1;u>=0;u--)if(this.__items[u].match(i))return!0;return!1},t.prototype.set_indent=function(i,u){this.is_empty()&&(this.__indent_count=i||0,this.__alignment_count=u||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},t.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)},t.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},t.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var i=this.__parent.current_line;return i.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),i.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),i.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,i.__items[0]===" "&&(i.__items.splice(0,1),i.__character_count-=1),!0}return!1},t.prototype.is_empty=function(){return this.__items.length===0},t.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},t.prototype.push=function(i){this.__items.push(i);var u=i.lastIndexOf(`
|
|
`);u!==-1?this.__character_count=i.length-u:this.__character_count+=i.length},t.prototype.pop=function(){var i=null;return this.is_empty()||(i=this.__items.pop(),this.__character_count-=i.length),i},t.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},t.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},t.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},t.prototype.toString=function(){var i="";return this.is_empty()?this.__parent.indent_empty_lines&&(i=this.__parent.get_indent_string(this.__indent_count)):(i=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),i+=this.__items.join("")),i};function h(i,u){this.__cache=[""],this.__indent_size=i.indent_size,this.__indent_string=i.indent_char,i.indent_with_tabs||(this.__indent_string=new Array(i.indent_size+1).join(i.indent_char)),u=u||"",i.indent_level>0&&(u=new Array(i.indent_level+1).join(this.__indent_string)),this.__base_string=u,this.__base_string_length=u.length}h.prototype.get_indent_size=function(i,u){var d=this.__base_string_length;return u=u||0,i<0&&(d=0),d+=i*this.__indent_size,d+=u,d},h.prototype.get_indent_string=function(i,u){var d=this.__base_string;return u=u||0,i<0&&(i=0,d=""),u+=i*this.__indent_size,this.__ensure_cache(u),d+=this.__cache[u],d},h.prototype.__ensure_cache=function(i){for(;i>=this.__cache.length;)this.__add_column()},h.prototype.__add_column=function(){var i=this.__cache.length,u=0,d="";this.__indent_size&&i>=this.__indent_size&&(u=Math.floor(i/this.__indent_size),i-=u*this.__indent_size,d=new Array(u+1).join(this.__indent_string)),i&&(d+=new Array(i+1).join(" ")),this.__cache.push(d)};function s(i,u){this.__indent_cache=new h(i,u),this.raw=!1,this._end_with_newline=i.end_with_newline,this.indent_size=i.indent_size,this.wrap_line_length=i.wrap_line_length,this.indent_empty_lines=i.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new t(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}s.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},s.prototype.get_line_number=function(){return this.__lines.length},s.prototype.get_indent_string=function(i,u){return this.__indent_cache.get_indent_string(i,u)},s.prototype.get_indent_size=function(i,u){return this.__indent_cache.get_indent_size(i,u)},s.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},s.prototype.add_new_line=function(i){return this.is_empty()||!i&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},s.prototype.get_code=function(i){this.trim(!0);var u=this.current_line.pop();u&&(u[u.length-1]===`
|
|
`&&(u=u.replace(/\n+$/g,"")),this.current_line.push(u)),this._end_with_newline&&this.__add_outputline();var d=this.__lines.join(`
|
|
`);return i!==`
|
|
`&&(d=d.replace(/[\n]/g,i)),d},s.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},s.prototype.set_indent=function(i,u){return i=i||0,u=u||0,this.next_line.set_indent(i,u),this.__lines.length>1?(this.current_line.set_indent(i,u),!0):(this.current_line.set_indent(),!1)},s.prototype.add_raw_token=function(i){for(var u=0;u<i.newlines;u++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(i.whitespace_before),this.current_line.push(i.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},s.prototype.add_token=function(i){this.__add_space_before_token(),this.current_line.push(i),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},s.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},s.prototype.remove_indent=function(i){for(var u=this.__lines.length;i<u;)this.__lines[i]._remove_indent(),i++;this.current_line._remove_wrap_indent()},s.prototype.trim=function(i){for(i=i===void 0?!1:i,this.current_line.trim();i&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},s.prototype.just_added_newline=function(){return this.current_line.is_empty()},s.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},s.prototype.ensure_empty_line_above=function(i,u){for(var d=this.__lines.length-2;d>=0;){var f=this.__lines[d];if(f.is_empty())break;if(f.item(0).indexOf(i)!==0&&f.item(-1)!==u){this.__lines.splice(d+1,0,new t(this)),this.previous_line=this.__lines[this.__lines.length-2];break}d--}},a.exports.Output=s},function(a){function t(h,s,i,u){this.type=h,this.text=s,this.comments_before=null,this.newlines=i||0,this.whitespace_before=u||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}a.exports.Token=t},,,function(a){function t(i,u){this.raw_options=h(i,u),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"])}t.prototype._get_array=function(i,u){var d=this.raw_options[i],f=u||[];return typeof d=="object"?d!==null&&typeof d.concat=="function"&&(f=d.concat()):typeof d=="string"&&(f=d.split(/[^a-zA-Z0-9_\/\-]+/)),f},t.prototype._get_boolean=function(i,u){var d=this.raw_options[i],f=d===void 0?!!u:!!d;return f},t.prototype._get_characters=function(i,u){var d=this.raw_options[i],f=u||"";return typeof d=="string"&&(f=d.replace(/\\r/,"\r").replace(/\\n/,`
|
|
`).replace(/\\t/," ")),f},t.prototype._get_number=function(i,u){var d=this.raw_options[i];u=parseInt(u,10),isNaN(u)&&(u=0);var f=parseInt(d,10);return isNaN(f)&&(f=u),f},t.prototype._get_selection=function(i,u,d){var f=this._get_selection_list(i,u,d);if(f.length!==1)throw new Error("Invalid Option Value: The option '"+i+`' can only be one of the following values:
|
|
`+u+`
|
|
You passed in: '`+this.raw_options[i]+"'");return f[0]},t.prototype._get_selection_list=function(i,u,d){if(!u||u.length===0)throw new Error("Selection list cannot be empty.");if(d=d||[u[0]],!this._is_valid_selection(d,u))throw new Error("Invalid Default Value!");var f=this._get_array(i,d);if(!this._is_valid_selection(f,u))throw new Error("Invalid Option Value: The option '"+i+`' can contain only the following values:
|
|
`+u+`
|
|
You passed in: '`+this.raw_options[i]+"'");return f},t.prototype._is_valid_selection=function(i,u){return i.length&&u.length&&!i.some(function(d){return u.indexOf(d)===-1})};function h(i,u){var d={};i=s(i);var f;for(f in i)f!==u&&(d[f]=i[f]);if(u&&i[u])for(f in i[u])d[f]=i[u][f];return d}function s(i){var u={},d;for(d in i){var f=d.replace(/-/g,"_");u[f]=i[d]}return u}a.exports.Options=t,a.exports.normalizeOpts=s,a.exports.mergeOpts=h},,function(a){var t=RegExp.prototype.hasOwnProperty("sticky");function h(s){this.__input=s||"",this.__input_length=this.__input.length,this.__position=0}h.prototype.restart=function(){this.__position=0},h.prototype.back=function(){this.__position>0&&(this.__position-=1)},h.prototype.hasNext=function(){return this.__position<this.__input_length},h.prototype.next=function(){var s=null;return this.hasNext()&&(s=this.__input.charAt(this.__position),this.__position+=1),s},h.prototype.peek=function(s){var i=null;return s=s||0,s+=this.__position,s>=0&&s<this.__input_length&&(i=this.__input.charAt(s)),i},h.prototype.__match=function(s,i){s.lastIndex=i;var u=s.exec(this.__input);return u&&!(t&&s.sticky)&&(u.index!==i&&(u=null)),u},h.prototype.test=function(s,i){return i=i||0,i+=this.__position,i>=0&&i<this.__input_length?!!this.__match(s,i):!1},h.prototype.testChar=function(s,i){var u=this.peek(i);return s.lastIndex=0,u!==null&&s.test(u)},h.prototype.match=function(s){var i=this.__match(s,this.__position);return i?this.__position+=i[0].length:i=null,i},h.prototype.read=function(s,i,u){var d="",f;return s&&(f=this.match(s),f&&(d+=f[0])),i&&(f||!s)&&(d+=this.readUntil(i,u)),d},h.prototype.readUntil=function(s,i){var u="",d=this.__position;s.lastIndex=this.__position;var f=s.exec(this.__input);return f?(d=f.index,i&&(d+=f[0].length)):d=this.__input_length,u=this.__input.substring(this.__position,d),this.__position=d,u},h.prototype.readUntilAfter=function(s){return this.readUntil(s,!0)},h.prototype.get_regexp=function(s,i){var u=null,d="g";return i&&t&&(d="y"),typeof s=="string"&&s!==""?u=new RegExp(s,d):s&&(u=new RegExp(s.source,d)),u},h.prototype.get_literal_regexp=function(s){return RegExp(s.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},h.prototype.peekUntilAfter=function(s){var i=this.__position,u=this.readUntilAfter(s);return this.__position=i,u},h.prototype.lookBack=function(s){var i=this.__position-1;return i>=s.length&&this.__input.substring(i-s.length,i).toLowerCase()===s},a.exports.InputScanner=h},function(a,t,h){var s=h(8).InputScanner,i=h(3).Token,u=h(10).TokenStream,d=h(11).WhitespacePattern,f={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},o=function(c,E){this._input=new s(c),this._options=E||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new d(this._input)};o.prototype.tokenize=function(){this._input.restart(),this.__tokens=new u,this._reset();for(var c,E=new i(f.START,""),B=null,w=[],P=new u;E.type!==f.EOF;){for(c=this._get_next_token(E,B);this._is_comment(c);)P.add(c),c=this._get_next_token(E,B);P.isEmpty()||(c.comments_before=P,P=new u),c.parent=B,this._is_opening(c)?(w.push(B),B=c):B&&this._is_closing(c,B)&&(c.opened=B,B.closed=c,B=w.pop(),c.parent=B),c.previous=E,E.next=c,this.__tokens.add(c),E=c}return this.__tokens},o.prototype._is_first_token=function(){return this.__tokens.isEmpty()},o.prototype._reset=function(){},o.prototype._get_next_token=function(c,E){this._readWhitespace();var B=this._input.read(/.+/g);return B?this._create_token(f.RAW,B):this._create_token(f.EOF,"")},o.prototype._is_comment=function(c){return!1},o.prototype._is_opening=function(c){return!1},o.prototype._is_closing=function(c,E){return!1},o.prototype._create_token=function(c,E){var B=new i(c,E,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return B},o.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},a.exports.Tokenizer=o,a.exports.TOKEN=f},function(a){function t(h){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=h}t.prototype.restart=function(){this.__position=0},t.prototype.isEmpty=function(){return this.__tokens_length===0},t.prototype.hasNext=function(){return this.__position<this.__tokens_length},t.prototype.next=function(){var h=null;return this.hasNext()&&(h=this.__tokens[this.__position],this.__position+=1),h},t.prototype.peek=function(h){var s=null;return h=h||0,h+=this.__position,h>=0&&h<this.__tokens_length&&(s=this.__tokens[h]),s},t.prototype.add=function(h){this.__parent_token&&(h.parent=this.__parent_token),this.__tokens.push(h),this.__tokens_length+=1},a.exports.TokenStream=t},function(a,t,h){var s=h(12).Pattern;function i(u,d){s.call(this,u,d),d?this._line_regexp=this._input.get_regexp(d._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}i.prototype=new s,i.prototype.__set_whitespace_patterns=function(u,d){u+="\\t ",d+="\\n\\r",this._match_pattern=this._input.get_regexp("["+u+d+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+d+"]")},i.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var u=this._input.read(this._match_pattern);if(u===" ")this.whitespace_before_token=" ";else if(u){var d=this.__split(this._newline_regexp,u);this.newline_count=d.length-1,this.whitespace_before_token=d[this.newline_count]}return u},i.prototype.matching=function(u,d){var f=this._create();return f.__set_whitespace_patterns(u,d),f._update(),f},i.prototype._create=function(){return new i(this._input,this)},i.prototype.__split=function(u,d){u.lastIndex=0;for(var f=0,o=[],c=u.exec(d);c;)o.push(d.substring(f,c.index)),f=c.index+c[0].length,c=u.exec(d);return f<d.length?o.push(d.substring(f,d.length)):o.push(""),o},a.exports.WhitespacePattern=i},function(a){function t(h,s){this._input=h,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,s&&(this._starting_pattern=this._input.get_regexp(s._starting_pattern,!0),this._match_pattern=this._input.get_regexp(s._match_pattern,!0),this._until_pattern=this._input.get_regexp(s._until_pattern),this._until_after=s._until_after)}t.prototype.read=function(){var h=this._input.read(this._starting_pattern);return(!this._starting_pattern||h)&&(h+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),h},t.prototype.read_match=function(){return this._input.match(this._match_pattern)},t.prototype.until_after=function(h){var s=this._create();return s._until_after=!0,s._until_pattern=this._input.get_regexp(h),s._update(),s},t.prototype.until=function(h){var s=this._create();return s._until_after=!1,s._until_pattern=this._input.get_regexp(h),s._update(),s},t.prototype.starting_with=function(h){var s=this._create();return s._starting_pattern=this._input.get_regexp(h,!0),s._update(),s},t.prototype.matching=function(h){var s=this._create();return s._match_pattern=this._input.get_regexp(h,!0),s._update(),s},t.prototype._create=function(){return new t(this._input,this)},t.prototype._update=function(){},a.exports.Pattern=t},function(a){function t(h,s){h=typeof h=="string"?h:h.source,s=typeof s=="string"?s:s.source,this.__directives_block_pattern=new RegExp(h+/ beautify( \w+[:]\w+)+ /.source+s,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(h+/\sbeautify\signore:end\s/.source+s,"g")}t.prototype.get_directives=function(h){if(!h.match(this.__directives_block_pattern))return null;var s={};this.__directive_pattern.lastIndex=0;for(var i=this.__directive_pattern.exec(h);i;)s[i[1]]=i[2],i=this.__directive_pattern.exec(h);return s},t.prototype.readIgnored=function(h){return h.readUntilAfter(this.__directives_end_ignore_pattern)},a.exports.Directives=t},function(a,t,h){var s=h(12).Pattern,i={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1};function u(d,f){s.call(this,d,f),this.__template_pattern=null,this._disabled=Object.assign({},i),this._excluded=Object.assign({},i),f&&(this.__template_pattern=this._input.get_regexp(f.__template_pattern),this._excluded=Object.assign(this._excluded,f._excluded),this._disabled=Object.assign(this._disabled,f._disabled));var o=new s(d);this.__patterns={handlebars_comment:o.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:o.starting_with(/{{{/).until_after(/}}}/),handlebars:o.starting_with(/{{/).until_after(/}}/),php:o.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:o.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:o.starting_with(/{%/).until_after(/%}/),django_value:o.starting_with(/{{/).until_after(/}}/),django_comment:o.starting_with(/{#/).until_after(/#}/),smarty:o.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:o.starting_with(/{\*/).until_after(/\*}/),smarty_literal:o.starting_with(/{literal}/).until_after(/{\/literal}/)}}u.prototype=new s,u.prototype._create=function(){return new u(this._input,this)},u.prototype._update=function(){this.__set_templated_pattern()},u.prototype.disable=function(d){var f=this._create();return f._disabled[d]=!0,f._update(),f},u.prototype.read_options=function(d){var f=this._create();for(var o in i)f._disabled[o]=d.templating.indexOf(o)===-1;return f._update(),f},u.prototype.exclude=function(d){var f=this._create();return f._excluded[d]=!0,f._update(),f},u.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 f=this._read_template();f;)this._match_pattern?f+=this._input.read(this._match_pattern):f+=this._input.readUntil(this.__template_pattern),d+=f,f=this._read_template();return this._until_after&&(d+=this._input.readUntilAfter(this._until_pattern)),d},u.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("|")+")")},u.prototype._read_template=function(){var d="",f=this._input.peek();if(f==="<"){var o=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&o==="?"&&(d=d||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&o==="%"&&(d=d||this.__patterns.erb.read())}else f==="{"&&(!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},a.exports.TemplatablePattern=u},,,,function(a,t,h){var s=h(19).Beautifier,i=h(20).Options;function u(d,f,o,c){var E=new s(d,f,o,c);return E.beautify()}a.exports=u,a.exports.defaultOptions=function(){return new i}},function(a,t,h){var s=h(20).Options,i=h(2).Output,u=h(21).Tokenizer,d=h(21).TOKEN,f=/\r\n|[\r\n]/,o=/\r\n|[\r\n]/g,c=function(T,m){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=T.max_preserve_newlines,this.preserve_newlines=T.preserve_newlines,this._output=new i(T,m)};c.prototype.current_line_has_match=function(T){return this._output.current_line.has_match(T)},c.prototype.set_space_before_token=function(T,m){this._output.space_before_token=T,this._output.non_breaking_space=m},c.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},c.prototype.add_raw_token=function(T){this._output.add_raw_token(T)},c.prototype.print_preserved_newlines=function(T){var m=0;T.type!==d.TEXT&&T.previous.type!==d.TEXT&&(m=T.newlines?1:0),this.preserve_newlines&&(m=T.newlines<this.max_preserve_newlines+1?T.newlines:this.max_preserve_newlines+1);for(var y=0;y<m;y++)this.print_newline(y>0);return m!==0},c.prototype.traverse_whitespace=function(T){return T.whitespace_before||T.newlines?(this.print_preserved_newlines(T)||(this._output.space_before_token=!0),!0):!1},c.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},c.prototype.print_newline=function(T){this._output.add_new_line(T)},c.prototype.print_token=function(T){T.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(T.text))},c.prototype.indent=function(){this.indent_level++},c.prototype.get_full_indent=function(T){return T=this.indent_level+(T||0),T<1?"":this._output.get_indent_string(T)};var E=function(T){for(var m=null,y=T.next;y.type!==d.EOF&&T.closed!==y;){if(y.type===d.ATTRIBUTE&&y.text==="type"){y.next&&y.next.type===d.EQUALS&&y.next.next&&y.next.next.type===d.VALUE&&(m=y.next.next.text);break}y=y.next}return m},B=function(T,m){var y=null,U=null;return m.closed?(T==="script"?y="text/javascript":T==="style"&&(y="text/css"),y=E(m)||y,y.search("text/css")>-1?U="css":y.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?U="javascript":y.search(/(text|application|dojo)\/(x-)?(html)/)>-1?U="html":y.search(/test\/null/)>-1&&(U="null"),U):null};function w(T,m){return m.indexOf(T)!==-1}function P(T,m,y){this.parent=T||null,this.tag=m?m.tag_name:"",this.indent_level=y||0,this.parser_token=m||null}function C(T){this._printer=T,this._current_frame=null}C.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},C.prototype.record_tag=function(T){var m=new P(this._current_frame,T,this._printer.indent_level);this._current_frame=m},C.prototype._try_pop_frame=function(T){var m=null;return T&&(m=T.parser_token,this._printer.indent_level=T.indent_level,this._current_frame=T.parent),m},C.prototype._get_frame=function(T,m){for(var y=this._current_frame;y&&!(T.indexOf(y.tag)!==-1);){if(m&&m.indexOf(y.tag)!==-1){y=null;break}y=y.parent}return y},C.prototype.try_pop=function(T,m){var y=this._get_frame([T],m);return this._try_pop_frame(y)},C.prototype.indent_to_tag=function(T){var m=this._get_frame(T);m&&(this._printer.indent_level=m.indent_level)};function b(T,m,y,U){this._source_text=T||"",m=m||{},this._js_beautify=y,this._css_beautify=U,this._tag_stack=null;var N=new s(m,"html");this._options=N,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"}b.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var T=this._source_text,m=this._options.eol;this._options.eol==="auto"&&(m=`
|
|
`,T&&f.test(T)&&(m=T.match(f)[0])),T=T.replace(o,`
|
|
`);var y=T.match(/^[\t ]*/)[0],U={text:"",type:""},N=new l,S=new c(this._options,y),H=new u(T,this._options).tokenize();this._tag_stack=new C(S);for(var F=null,R=H.next();R.type!==d.EOF;)R.type===d.TAG_OPEN||R.type===d.COMMENT?(F=this._handle_tag_open(S,R,N,U),N=F):R.type===d.ATTRIBUTE||R.type===d.EQUALS||R.type===d.VALUE||R.type===d.TEXT&&!N.tag_complete?F=this._handle_inside_tag(S,R,N,H):R.type===d.TAG_CLOSE?F=this._handle_tag_close(S,R,N):R.type===d.TEXT?F=this._handle_text(S,R,N):S.add_raw_token(R),U=F,R=H.next();var z=S._output.get_code(m);return z},b.prototype._handle_tag_close=function(T,m,y){var U={text:m.text,type:m.type};return T.alignment_size=0,y.tag_complete=!0,T.set_space_before_token(m.newlines||m.whitespace_before!=="",!0),y.is_unformatted?T.add_raw_token(m):(y.tag_start_char==="<"&&(T.set_space_before_token(m.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&y.has_wrapped_attrs&&T.print_newline(!1)),T.print_token(m)),y.indent_content&&!(y.is_unformatted||y.is_content_unformatted)&&(T.indent(),y.indent_content=!1),!y.is_inline_element&&!(y.is_unformatted||y.is_content_unformatted)&&T.set_wrap_point(),U},b.prototype._handle_inside_tag=function(T,m,y,U){var N=y.has_wrapped_attrs,S={text:m.text,type:m.type};if(T.set_space_before_token(m.newlines||m.whitespace_before!=="",!0),y.is_unformatted)T.add_raw_token(m);else if(y.tag_start_char==="{"&&m.type===d.TEXT)T.print_preserved_newlines(m)?(m.newlines=0,T.add_raw_token(m)):T.print_token(m);else{if(m.type===d.ATTRIBUTE?(T.set_space_before_token(!0),y.attr_count+=1):(m.type===d.EQUALS||m.type===d.VALUE&&m.previous.type===d.EQUALS)&&T.set_space_before_token(!1),m.type===d.ATTRIBUTE&&y.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(T.traverse_whitespace(m),N=N||m.newlines!==0),this._is_wrap_attributes_force)){var H=y.attr_count>1;if(this._is_wrap_attributes_force_expand_multiline&&y.attr_count===1){var F=!0,R=0,z;do{if(z=U.peek(R),z.type===d.ATTRIBUTE){F=!1;break}R+=1}while(R<4&&z.type!==d.EOF&&z.type!==d.TAG_CLOSE);H=!F}H&&(T.print_newline(!1),N=!0)}T.print_token(m),N=N||T.previous_token_wrapped(),y.has_wrapped_attrs=N}return S},b.prototype._handle_text=function(T,m,y){var U={text:m.text,type:"TK_CONTENT"};return y.custom_beautifier_name?this._print_custom_beatifier_text(T,m,y):y.is_unformatted||y.is_content_unformatted?T.add_raw_token(m):(T.traverse_whitespace(m),T.print_token(m)),U},b.prototype._print_custom_beatifier_text=function(T,m,y){var U=this;if(m.text!==""){var N=m.text,S,H=1,F="",R="";y.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?S=this._js_beautify:y.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?S=this._css_beautify:y.custom_beautifier_name==="html"&&(S=function(Ae,ce){var ie=new b(Ae,ce,U._js_beautify,U._css_beautify);return ie.beautify()}),this._options.indent_scripts==="keep"?H=0:this._options.indent_scripts==="separate"&&(H=-T.indent_level);var z=T.get_full_indent(H);if(N=N.replace(/\n[ \t]*$/,""),y.custom_beautifier_name!=="html"&&N[0]==="<"&&N.match(/^(<!--|<!\[CDATA\[)/)){var Q=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(N);if(!Q){T.add_raw_token(m);return}F=z+Q[1]+`
|
|
`,N=Q[4],Q[5]&&(R=z+Q[5]),N=N.replace(/\n[ \t]*$/,""),(Q[2]||Q[3].indexOf(`
|
|
`)!==-1)&&(Q=Q[3].match(/[ \t]+$/),Q&&(m.whitespace_before=Q[0]))}if(N)if(S){var $=function(){this.eol=`
|
|
`};$.prototype=this._options.raw_options;var ee=new $;N=S(z+N,ee)}else{var fe=m.whitespace_before;fe&&(N=N.replace(new RegExp(`
|
|
(`+fe+")?","g"),`
|
|
`)),N=z+N.replace(/\n/g,`
|
|
`+z)}F&&(N?N=F+N+`
|
|
`+R:N=F+R),T.print_newline(!1),N&&(m.text=N,m.whitespace_before="",m.newlines=0,T.add_raw_token(m),T.print_newline(!0))}},b.prototype._handle_tag_open=function(T,m,y,U){var N=this._get_tag_open_token(m);return(y.is_unformatted||y.is_content_unformatted)&&!y.is_empty_element&&m.type===d.TAG_OPEN&&m.text.indexOf("</")===0?(T.add_raw_token(m),N.start_tag_token=this._tag_stack.try_pop(N.tag_name)):(T.traverse_whitespace(m),this._set_tag_position(T,m,N,y,U),N.is_inline_element||T.set_wrap_point(),T.print_token(m)),(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(N.alignment_size=m.text.length+1),!N.tag_complete&&!N.is_unformatted&&(T.alignment_size=N.alignment_size),N};var l=function(T,m){if(this.parent=T||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="",!m)this.tag_complete=!0;else{var y;this.tag_start_char=m.text[0],this.text=m.text,this.tag_start_char==="<"?(y=m.text.match(/^<([^\s>]*)/),this.tag_check=y?y[1]:""):(y=m.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=y?y[1]:"",(m.text.startsWith("{{#>")||m.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&m.next!==null?this.tag_check=m.next.text.split(" ")[0]:this.tag_check=m.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),m.type===d.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||m.closed&&m.closed.text==="/>";var U=2;this.tag_start_char==="{"&&this.text.length>=3&&(this.text.charAt(2)==="~"&&(U=3)),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(U)))}};b.prototype._get_tag_open_token=function(T){var m=new l(this._tag_stack.get_parser_token(),T);return m.alignment_size=this._options.wrap_attributes_indent_size,m.is_end_tag=m.is_end_tag||w(m.tag_check,this._options.void_elements),m.is_empty_element=m.tag_complete||m.is_start_tag&&m.is_end_tag,m.is_unformatted=!m.tag_complete&&w(m.tag_check,this._options.unformatted),m.is_content_unformatted=!m.is_empty_element&&w(m.tag_check,this._options.content_unformatted),m.is_inline_element=w(m.tag_name,this._options.inline)||m.tag_name.includes("-")||m.tag_start_char==="{",m},b.prototype._set_tag_position=function(T,m,y,U,N){if(y.is_empty_element||(y.is_end_tag?y.start_tag_token=this._tag_stack.try_pop(y.tag_name):(this._do_optional_end_element(y)&&(y.is_inline_element||T.print_newline(!1)),this._tag_stack.record_tag(y),(y.tag_name==="script"||y.tag_name==="style")&&!(y.is_unformatted||y.is_content_unformatted)&&(y.custom_beautifier_name=B(y.tag_check,m)))),w(y.tag_check,this._options.extra_liners)&&(T.print_newline(!1),T._output.just_added_blankline()||T.print_newline(!0)),y.is_empty_element){if(y.tag_start_char==="{"&&y.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),y.indent_content=!0;var S=T.current_line_has_match(/{{#if/);S||T.print_newline(!1)}y.tag_name==="!--"&&N.type===d.TAG_CLOSE&&U.is_end_tag&&y.text.indexOf(`
|
|
`)===-1||(y.is_inline_element||y.is_unformatted||T.print_newline(!1),this._calcluate_parent_multiline(T,y))}else if(y.is_end_tag){var H=!1;H=y.start_tag_token&&y.start_tag_token.multiline_content,H=H||!y.is_inline_element&&!(U.is_inline_element||U.is_unformatted)&&!(N.type===d.TAG_CLOSE&&y.start_tag_token===U)&&N.type!=="TK_CONTENT",(y.is_content_unformatted||y.is_unformatted)&&(H=!1),H&&T.print_newline(!1)}else y.indent_content=!y.custom_beautifier_name,y.tag_start_char==="<"&&(y.tag_name==="html"?y.indent_content=this._options.indent_inner_html:y.tag_name==="head"?y.indent_content=this._options.indent_head_inner_html:y.tag_name==="body"&&(y.indent_content=this._options.indent_body_inner_html)),!(y.is_inline_element||y.is_unformatted)&&(N.type!=="TK_CONTENT"||y.is_content_unformatted)&&T.print_newline(!1),this._calcluate_parent_multiline(T,y)},b.prototype._calcluate_parent_multiline=function(T,m){m.parent&&T._output.just_added_newline()&&!((m.is_inline_element||m.is_unformatted)&&m.parent.is_inline_element)&&(m.parent.multiline_content=!0)};var A=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","nav","ol","p","pre","section","table","ul"],g=["a","audio","del","ins","map","noscript","video"];b.prototype._do_optional_end_element=function(T){var m=null;if(T.is_empty_element||!T.is_start_tag||!T.parent)return;if(T.tag_name==="body")m=m||this._tag_stack.try_pop("head");else if(T.tag_name==="li")m=m||this._tag_stack.try_pop("li",["ol","ul"]);else if(T.tag_name==="dd"||T.tag_name==="dt")m=m||this._tag_stack.try_pop("dt",["dl"]),m=m||this._tag_stack.try_pop("dd",["dl"]);else if(T.parent.tag_name==="p"&&A.indexOf(T.tag_name)!==-1){var y=T.parent.parent;(!y||g.indexOf(y.tag_name)===-1)&&(m=m||this._tag_stack.try_pop("p"))}else T.tag_name==="rp"||T.tag_name==="rt"?(m=m||this._tag_stack.try_pop("rt",["ruby","rtc"]),m=m||this._tag_stack.try_pop("rp",["ruby","rtc"])):T.tag_name==="optgroup"?m=m||this._tag_stack.try_pop("optgroup",["select"]):T.tag_name==="option"?m=m||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):T.tag_name==="colgroup"?m=m||this._tag_stack.try_pop("caption",["table"]):T.tag_name==="thead"?(m=m||this._tag_stack.try_pop("caption",["table"]),m=m||this._tag_stack.try_pop("colgroup",["table"])):T.tag_name==="tbody"||T.tag_name==="tfoot"?(m=m||this._tag_stack.try_pop("caption",["table"]),m=m||this._tag_stack.try_pop("colgroup",["table"]),m=m||this._tag_stack.try_pop("thead",["table"]),m=m||this._tag_stack.try_pop("tbody",["table"])):T.tag_name==="tr"?(m=m||this._tag_stack.try_pop("caption",["table"]),m=m||this._tag_stack.try_pop("colgroup",["table"]),m=m||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(T.tag_name==="th"||T.tag_name==="td")&&(m=m||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),m=m||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return T.parent=this._tag_stack.get_parser_token(),m},a.exports.Beautifier=b},function(a,t,h){var s=h(6).Options;function i(u){s.call(this,u,"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"])}i.prototype=new s,a.exports.Options=i},function(a,t,h){var s=h(9).Tokenizer,i=h(9).TOKEN,u=h(13).Directives,d=h(14).TemplatablePattern,f=h(12).Pattern,o={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:i.START,RAW:i.RAW,EOF:i.EOF},c=new u(/<\!--/,/-->/),E=function(B,w){s.call(this,B,w),this._current_tag_name="";var P=new d(this._input).read_options(this._options),C=new f(this._input);if(this.__patterns={word:P.until(/[\n\r\t <]/),single_quote:P.until_after(/'/),double_quote:P.until_after(/"/),attribute:P.until(/[\n\r\t =>]|\/>/),element_name:P.until(/[\n\r\t >\/]/),handlebars_comment:C.starting_with(/{{!--/).until_after(/--}}/),handlebars:C.starting_with(/{{/).until_after(/}}/),handlebars_open:C.until(/[\n\r\t }]/),handlebars_raw_close:C.until(/}}/),comment:C.starting_with(/<!--/).until_after(/-->/),cdata:C.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:C.starting_with(/<!\[/).until_after(/]>/),processing:C.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 b=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=C.matching(b).until_after(b)}};E.prototype=new s,E.prototype._is_comment=function(B){return!1},E.prototype._is_opening=function(B){return B.type===o.TAG_OPEN},E.prototype._is_closing=function(B,w){return B.type===o.TAG_CLOSE&&w&&((B.text===">"||B.text==="/>")&&w.text[0]==="<"||B.text==="}}"&&w.text[0]==="{"&&w.text[1]==="{")},E.prototype._reset=function(){this._current_tag_name=""},E.prototype._get_next_token=function(B,w){var P=null;this._readWhitespace();var C=this._input.peek();return C===null?this._create_token(o.EOF,""):(P=P||this._read_open_handlebars(C,w),P=P||this._read_attribute(C,B,w),P=P||this._read_close(C,w),P=P||this._read_raw_content(C,B,w),P=P||this._read_content_word(C),P=P||this._read_comment_or_cdata(C),P=P||this._read_processing(C),P=P||this._read_open(C,w),P=P||this._create_token(o.UNKNOWN,this._input.next()),P)},E.prototype._read_comment_or_cdata=function(B){var w=null,P=null,C=null;if(B==="<"){var b=this._input.peek(1);b==="!"&&(P=this.__patterns.comment.read(),P?(C=c.get_directives(P),C&&C.ignore==="start"&&(P+=c.readIgnored(this._input))):P=this.__patterns.cdata.read()),P&&(w=this._create_token(o.COMMENT,P),w.directives=C)}return w},E.prototype._read_processing=function(B){var w=null,P=null,C=null;if(B==="<"){var b=this._input.peek(1);(b==="!"||b==="?")&&(P=this.__patterns.conditional_comment.read(),P=P||this.__patterns.processing.read()),P&&(w=this._create_token(o.COMMENT,P),w.directives=C)}return w},E.prototype._read_open=function(B,w){var P=null,C=null;return w||B==="<"&&(P=this._input.next(),this._input.peek()==="/"&&(P+=this._input.next()),P+=this.__patterns.element_name.read(),C=this._create_token(o.TAG_OPEN,P)),C},E.prototype._read_open_handlebars=function(B,w){var P=null,C=null;return w||this._options.indent_handlebars&&B==="{"&&this._input.peek(1)==="{"&&(this._input.peek(2)==="!"?(P=this.__patterns.handlebars_comment.read(),P=P||this.__patterns.handlebars.read(),C=this._create_token(o.COMMENT,P)):(P=this.__patterns.handlebars_open.read(),C=this._create_token(o.TAG_OPEN,P))),C},E.prototype._read_close=function(B,w){var P=null,C=null;return w&&(w.text[0]==="<"&&(B===">"||B==="/"&&this._input.peek(1)===">")?(P=this._input.next(),B==="/"&&(P+=this._input.next()),C=this._create_token(o.TAG_CLOSE,P)):w.text[0]==="{"&&B==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),C=this._create_token(o.TAG_CLOSE,"}}"))),C},E.prototype._read_attribute=function(B,w,P){var C=null,b="";if(P&&P.text[0]==="<")if(B==="=")C=this._create_token(o.EQUALS,this._input.next());else if(B==='"'||B==="'"){var l=this._input.next();B==='"'?l+=this.__patterns.double_quote.read():l+=this.__patterns.single_quote.read(),C=this._create_token(o.VALUE,l)}else b=this.__patterns.attribute.read(),b&&(w.type===o.EQUALS?C=this._create_token(o.VALUE,b):C=this._create_token(o.ATTRIBUTE,b));return C},E.prototype._is_content_unformatted=function(B){return this._options.void_elements.indexOf(B)===-1&&(this._options.content_unformatted.indexOf(B)!==-1||this._options.unformatted.indexOf(B)!==-1)},E.prototype._read_raw_content=function(B,w,P){var C="";if(P&&P.text[0]==="{")C=this.__patterns.handlebars_raw_close.read();else if(w.type===o.TAG_CLOSE&&w.opened.text[0]==="<"&&w.text[0]!=="/"){var b=w.opened.text.substr(1).toLowerCase();if(b==="script"||b==="style"){var l=this._read_comment_or_cdata(B);if(l)return l.type=o.TEXT,l;C=this._input.readUntil(new RegExp("</"+b+"[\\n\\r\\t ]*?>","ig"))}else this._is_content_unformatted(b)&&(C=this._input.readUntil(new RegExp("</"+b+"[\\n\\r\\t ]*?>","ig")))}return C?this._create_token(o.TEXT,C):null},E.prototype._read_content_word=function(B){var w="";if(this._options.unformatted_content_delimiter&&(B===this._options.unformatted_content_delimiter[0]&&(w=this.__patterns.unformatted_content_delimiter.read())),w||(w=this.__patterns.word.read()),w)return this._create_token(o.TEXT,w)},a.exports.Tokenizer=E,a.exports.TOKEN=o}],x={};function n(a){var t=x[a];if(t!==void 0)return t.exports;var h=x[a]={exports:{}};return M[a](h,h.exports,n),h.exports}var p=n(18);I=p})();var k=I;if(!0)!(Z=[v,v("6UM0"),v("TXwP")],K=function(M){var x=v("6UM0"),n=v("TXwP");return{html_beautify:function(p,a){return k(p,a,x.js_beautify,n.css_beautify)}}}.apply(te,Z),K!==void 0&&(Re.exports=K));else var _,O})()},pzxd:function(Re,te,v){var Z=v("bYtY"),K=Z.retrieve2,I=Z.retrieve3,k=Z.each,_=Z.normalizeCssArray,O=Z.isString,M=Z.isObject,x=v("6GrX"),n=v("VpOo"),p=v("Xnb7"),a=v("fW2E"),t=v("gut8"),h=t.ContextCachedBy,s=t.WILL_BE_RESTORED,i=x.DEFAULT_FONT,u={left:1,right:1,center:1},d={top:1,bottom:1,middle:1},f=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]],o={},c={};function E(z){return B(z),k(z.rich,B),z}function B(z){if(z){z.font=x.makeFont(z);var Q=z.textAlign;Q==="middle"&&(Q="center"),z.textAlign=Q==null||u[Q]?Q:"left";var $=z.textVerticalAlign||z.textBaseline;$==="center"&&($="middle"),z.textVerticalAlign=$==null||d[$]?$:"top";var ee=z.textPadding;ee&&(z.textPadding=_(z.textPadding))}}function w(z,Q,$,ee,fe,Ae){ee.rich?C(z,Q,$,ee,fe,Ae):P(z,Q,$,ee,fe,Ae)}function P(z,Q,$,ee,fe,Ae){"use strict";var ce=g(ee),ie,be=!1,se=Q.__attrCachedBy===h.PLAIN_TEXT;Ae!==s?(Ae&&(ie=Ae.style,be=!ce&&se&&ie),Q.__attrCachedBy=ce?h.NONE:h.PLAIN_TEXT):se&&(Q.__attrCachedBy=h.NONE);var me=ee.font||i;(!be||me!==(ie.font||i))&&(Q.font=me);var le=z.__computedFont;z.__styleFont!==me&&(z.__styleFont=me,le=z.__computedFont=Q.font);var ge=ee.textPadding,ae=ee.textLineHeight,pe=z.__textCotentBlock;(!pe||z.__dirtyText)&&(pe=z.__textCotentBlock=x.parsePlainText($,le,ge,ae,ee.truncate));var Me=pe.outerHeight,xe=pe.lines,Ke=pe.lineHeight,tt=y(c,z,ee,fe),he=tt.baseX,Se=tt.baseY,Ue=tt.textAlign||"left",Ne=tt.textVerticalAlign;l(Q,ee,fe,he,Se);var ct=x.adjustTextY(Se,Me,Ne),mt=he,Rt=ct;if(ce||ge){var ht=x.getWidth($,le),Ut=ht;ge&&(Ut+=ge[1]+ge[3]);var zt=x.adjustTextX(he,Ut,Ue);ce&&T(z,Q,ee,zt,ct,Ut,Me),ge&&(mt=F(he,Ue,ge),Rt+=ge[0])}Q.textAlign=Ue,Q.textBaseline="middle",Q.globalAlpha=ee.opacity||1;for(var ze=0;ze<f.length;ze++){var Ve=f[ze],Et=Ve[0],Ot=Ve[1],ut=ee[Et];(!be||ut!==ie[Et])&&(Q[Ot]=a(Q,Ot,ut||Ve[2]))}Rt+=Ke/2;var vt=ee.textStrokeWidth,Ze=be?ie.textStrokeWidth:null,ke=!be||vt!==Ze,He=!be||ke||ee.textStroke!==ie.textStroke,we=N(ee.textStroke,vt),Le=S(ee.textFill);if(we&&(ke&&(Q.lineWidth=vt),He&&(Q.strokeStyle=we)),Le&&((!be||ee.textFill!==ie.textFill)&&(Q.fillStyle=Le)),xe.length===1)we&&Q.strokeText(xe[0],mt,Rt),Le&&Q.fillText(xe[0],mt,Rt);else for(var ze=0;ze<xe.length;ze++)we&&Q.strokeText(xe[ze],mt,Rt),Le&&Q.fillText(xe[ze],mt,Rt),Rt+=Ke}function C(z,Q,$,ee,fe,Ae){Ae!==s&&(Q.__attrCachedBy=h.NONE);var ce=z.__textCotentBlock;(!ce||z.__dirtyText)&&(ce=z.__textCotentBlock=x.parseRichText($,ee)),b(z,Q,ce,ee,fe)}function b(z,Q,$,ee,fe){var Ae=$.width,ce=$.outerWidth,ie=$.outerHeight,be=ee.textPadding,se=y(c,z,ee,fe),me=se.baseX,le=se.baseY,ge=se.textAlign,ae=se.textVerticalAlign;l(Q,ee,fe,me,le);var pe=x.adjustTextX(me,ce,ge),Me=x.adjustTextY(le,ie,ae),xe=pe,Ke=Me;be&&(xe+=be[3],Ke+=be[0]);var tt=xe+Ae;g(ee)&&T(z,Q,ee,pe,Me,ce,ie);for(var he=0;he<$.lines.length;he++){for(var Se=$.lines[he],Ue=Se.tokens,Ne=Ue.length,ct=Se.lineHeight,mt=Se.width,Rt=0,ht=xe,Ut=tt,zt=Ne-1,ze;Rt<Ne&&(ze=Ue[Rt],!ze.textAlign||ze.textAlign==="left");)A(z,Q,ze,ee,ct,Ke,ht,"left"),mt-=ze.width,ht+=ze.width,Rt++;for(;zt>=0&&(ze=Ue[zt],ze.textAlign==="right");)A(z,Q,ze,ee,ct,Ke,Ut,"right"),mt-=ze.width,Ut-=ze.width,zt--;for(ht+=(Ae-(ht-xe)-(tt-Ut)-mt)/2;Rt<=zt;)ze=Ue[Rt],A(z,Q,ze,ee,ct,Ke,ht+ze.width/2,"center"),ht+=ze.width,Rt++;Ke+=ct}}function l(z,Q,$,ee,fe){if($&&Q.textRotation){var Ae=Q.textOrigin;Ae==="center"?(ee=$.width/2+$.x,fe=$.height/2+$.y):Ae&&(ee=Ae[0]+$.x,fe=Ae[1]+$.y),z.translate(ee,fe),z.rotate(-Q.textRotation),z.translate(-ee,-fe)}}function A(z,Q,$,ee,fe,Ae,ce,ie){var be=ee.rich[$.styleName]||{};be.text=$.text;var se=$.textVerticalAlign,me=Ae+fe/2;se==="top"?me=Ae+$.height/2:se==="bottom"&&(me=Ae+fe-$.height/2),!$.isLineHolder&&g(be)&&T(z,Q,be,ie==="right"?ce-$.width:ie==="center"?ce-$.width/2:ce,me-$.height/2,$.width,$.height);var le=$.textPadding;le&&(ce=F(ce,ie,le),me-=$.height/2-le[2]-$.textHeight/2),U(Q,"shadowBlur",I(be.textShadowBlur,ee.textShadowBlur,0)),U(Q,"shadowColor",be.textShadowColor||ee.textShadowColor||"transparent"),U(Q,"shadowOffsetX",I(be.textShadowOffsetX,ee.textShadowOffsetX,0)),U(Q,"shadowOffsetY",I(be.textShadowOffsetY,ee.textShadowOffsetY,0)),U(Q,"textAlign",ie),U(Q,"textBaseline","middle"),U(Q,"font",$.font||i);var ge=N(be.textStroke||ee.textStroke,pe),ae=S(be.textFill||ee.textFill),pe=K(be.textStrokeWidth,ee.textStrokeWidth);ge&&(U(Q,"lineWidth",pe),U(Q,"strokeStyle",ge),Q.strokeText($.text,ce,me)),ae&&(U(Q,"fillStyle",ae),Q.fillText($.text,ce,me))}function g(z){return!!(z.textBackgroundColor||z.textBorderWidth&&z.textBorderColor)}function T(z,Q,$,ee,fe,Ae,ce){var ie=$.textBackgroundColor,be=$.textBorderWidth,se=$.textBorderColor,me=O(ie);if(U(Q,"shadowBlur",$.textBoxShadowBlur||0),U(Q,"shadowColor",$.textBoxShadowColor||"transparent"),U(Q,"shadowOffsetX",$.textBoxShadowOffsetX||0),U(Q,"shadowOffsetY",$.textBoxShadowOffsetY||0),me||be&&se){Q.beginPath();var le=$.textBorderRadius;le?n.buildPath(Q,{x:ee,y:fe,width:Ae,height:ce,r:le}):Q.rect(ee,fe,Ae,ce),Q.closePath()}if(me)if(U(Q,"fillStyle",ie),$.fillOpacity!=null){var ge=Q.globalAlpha;Q.globalAlpha=$.fillOpacity*$.opacity,Q.fill(),Q.globalAlpha=ge}else Q.fill();else if(M(ie)){var ae=ie.image;ae=p.createOrUpdateImage(ae,null,z,m,ie),ae&&p.isImageReady(ae)&&Q.drawImage(ae,ee,fe,Ae,ce)}if(be&&se)if(U(Q,"lineWidth",be),U(Q,"strokeStyle",se),$.strokeOpacity!=null){var ge=Q.globalAlpha;Q.globalAlpha=$.strokeOpacity*$.opacity,Q.stroke(),Q.globalAlpha=ge}else Q.stroke()}function m(z,Q){Q.image=z}function y(z,Q,$,ee){var fe=$.x||0,Ae=$.y||0,ce=$.textAlign,ie=$.textVerticalAlign;if(ee){var be=$.textPosition;if(be instanceof Array)fe=ee.x+H(be[0],ee.width),Ae=ee.y+H(be[1],ee.height);else{var se=Q&&Q.calculateTextPosition?Q.calculateTextPosition(o,$,ee):x.calculateTextPosition(o,$,ee);fe=se.x,Ae=se.y,ce=ce||se.textAlign,ie=ie||se.textVerticalAlign}var me=$.textOffset;me&&(fe+=me[0],Ae+=me[1])}return z=z||{},z.baseX=fe,z.baseY=Ae,z.textAlign=ce,z.textVerticalAlign=ie,z}function U(z,Q,$){return z[Q]=a(z,Q,$),z[Q]}function N(z,Q){return z==null||Q<=0||z==="transparent"||z==="none"?null:z.image||z.colorStops?"#000":z}function S(z){return z==null||z==="none"?null:z.image||z.colorStops?"#000":z}function H(z,Q){return typeof z=="string"?z.lastIndexOf("%")>=0?parseFloat(z)/100*Q:parseFloat(z):z}function F(z,Q,$){return Q==="right"?z-$[1]:Q==="center"?z+$[3]/2-$[1]/2:z+$[3]}function R(z,Q){return z!=null&&(z||Q.textBackgroundColor||Q.textBorderWidth&&Q.textBorderColor||Q.textPadding)}te.normalizeTextStyle=E,te.renderText=w,te.getBoxPosition=y,te.getStroke=N,te.getFill=S,te.parsePercent=H,te.needDrawText=R},qH13:function(Re,te,v){var Z=v("ItGF"),K=v("QBsz"),I=K.applyTransform,k=v("mFDi"),_=v("Qe9p"),O=v("6GrX"),M=v("pzxd"),x=v("ni6a"),n=v("Gev7"),p=v("Dagg"),a=v("dqUG"),t=v("y+Vt"),h=v("IMiH"),s=v("QuXc"),i=v("06Qe"),u=h.CMD,d=Math.round,f=Math.sqrt,o=Math.abs,c=Math.cos,E=Math.sin,B=Math.max;if(!Z.canvasSupported){var w=",",P="progid:DXImageTransform.Microsoft",C=21600,b=C/2,l=1e5,A=1e3,g=function(he){he.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",he.coordsize=C+","+C,he.coordorigin="0,0"},T=function(he){return String(he).replace(/&/g,"&").replace(/"/g,""")},m=function(he,Se,Ue){return"rgb("+[he,Se,Ue].join(",")+")"},y=function(he,Se){Se&&he&&Se.parentNode!==he&&he.appendChild(Se)},U=function(he,Se){Se&&he&&Se.parentNode===he&&he.removeChild(Se)},N=function(he,Se,Ue){return(parseFloat(he)||0)*l+(parseFloat(Se)||0)*A+Ue},S=M.parsePercent,H=function(he,Se,Ue){var Ne=_.parse(Se);Ue=+Ue,isNaN(Ue)&&(Ue=1),Ne&&(he.color=m(Ne[0],Ne[1],Ne[2]),he.opacity=Ue*Ne[3])},F=function(he){var Se=_.parse(he);return[m(Se[0],Se[1],Se[2]),Se[3]]},R=function(he,Se,Ue){var Ne=Se.fill;if(Ne!=null)if(Ne instanceof s){var ct,mt=0,Rt=[0,0],ht=0,Ut=1,zt=Ue.getBoundingRect(),ze=zt.width,Ve=zt.height;if(Ne.type==="linear"){ct="gradient";var Et=Ue.transform,Ot=[Ne.x*ze,Ne.y*Ve],ut=[Ne.x2*ze,Ne.y2*Ve];Et&&(I(Ot,Ot,Et),I(ut,ut,Et));var vt=ut[0]-Ot[0],Ze=ut[1]-Ot[1];mt=Math.atan2(vt,Ze)*180/Math.PI,mt<0&&(mt+=360),mt<1e-6&&(mt=0)}else{ct="gradientradial";var Ot=[Ne.x*ze,Ne.y*Ve],Et=Ue.transform,ke=Ue.scale,He=ze,we=Ve;Rt=[(Ot[0]-zt.x)/He,(Ot[1]-zt.y)/we],Et&&I(Ot,Ot,Et),He/=ke[0]*C,we/=ke[1]*C;var Le=B(He,we);ht=2*0/Le,Ut=2*Ne.r/Le-ht}var Pe=Ne.colorStops.slice();Pe.sort(function(Qe,Oe){return Qe.offset-Oe.offset});for(var We=Pe.length,Xe=[],gt=[],Lt=0;Lt<We;Lt++){var en=Pe[Lt],Zt=F(en.color);gt.push(en.offset*Ut+ht+" "+Zt[0]),(Lt===0||Lt===We-1)&&Xe.push(Zt)}if(We>=2){var xt=Xe[0][0],Ct=Xe[1][0],pt=Xe[0][1]*Se.opacity,Je=Xe[1][1]*Se.opacity;he.type=ct,he.method="none",he.focus="100%",he.angle=mt,he.color=xt,he.color2=Ct,he.colors=gt.join(","),he.opacity=Je,he.opacity2=pt}ct==="radial"&&(he.focusposition=Rt.join(","))}else H(he,Ne,Se.opacity)},z=function(he,Se){Se.lineDash&&(he.dashstyle=Se.lineDash.join(" ")),Se.stroke!=null&&!(Se.stroke instanceof s)&&H(he,Se.stroke,Se.opacity)},Q=function(he,Se,Ue,Ne){var ct=Se==="fill",mt=he.getElementsByTagName(Se)[0];Ue[Se]!=null&&Ue[Se]!=="none"&&(ct||!ct&&Ue.lineWidth)?(he[ct?"filled":"stroked"]="true",Ue[Se]instanceof s&&U(he,mt),mt||(mt=i.createNode(Se)),ct?R(mt,Ue,Ne):z(mt,Ue),y(he,mt)):(he[ct?"filled":"stroked"]="false",U(he,mt))},$=[[],[],[]],ee=function(he,Se){var Ue=u.M,Ne=u.C,ct=u.L,mt=u.A,Rt=u.Q,ht=[],Ut,zt,ze,Ve,Et,Ot,ut=he.data,vt=he.len();for(Ve=0;Ve<vt;){ze=ut[Ve++],zt="",Ut=0;switch(ze){case Ue:zt=" m ",Ut=1,Et=ut[Ve++],Ot=ut[Ve++],$[0][0]=Et,$[0][1]=Ot;break;case ct:zt=" l ",Ut=1,Et=ut[Ve++],Ot=ut[Ve++],$[0][0]=Et,$[0][1]=Ot;break;case Rt:case Ne:zt=" c ",Ut=3;var Ze=ut[Ve++],ke=ut[Ve++],He=ut[Ve++],we=ut[Ve++],Le,Pe;ze===Rt?(Le=He,Pe=we,He=(He+2*Ze)/3,we=(we+2*ke)/3,Ze=(Et+2*Ze)/3,ke=(Ot+2*ke)/3):(Le=ut[Ve++],Pe=ut[Ve++]),$[0][0]=Ze,$[0][1]=ke,$[1][0]=He,$[1][1]=we,$[2][0]=Le,$[2][1]=Pe,Et=Le,Ot=Pe;break;case mt:var We=0,Xe=0,gt=1,Lt=1,en=0;Se&&(We=Se[4],Xe=Se[5],gt=f(Se[0]*Se[0]+Se[1]*Se[1]),Lt=f(Se[2]*Se[2]+Se[3]*Se[3]),en=Math.atan2(-Se[1]/Lt,Se[0]/gt));var Zt=ut[Ve++],xt=ut[Ve++],Ct=ut[Ve++],pt=ut[Ve++],Je=ut[Ve++]+en,Qe=ut[Ve++]+Je+en;Ve++;var Oe=ut[Ve++],je=Zt+c(Je)*Ct,St=xt+E(Je)*pt,Ze=Zt+c(Qe)*Ct,ke=xt+E(Qe)*pt,bt=Oe?" wa ":" at ";Math.abs(je-Ze)<1e-4&&(Math.abs(Qe-Je)>.01?Oe&&(je+=270/C):Math.abs(St-xt)<1e-4?Oe&&je<Zt||!Oe&&je>Zt?ke-=270/C:ke+=270/C:Oe&&St<xt||!Oe&&St>xt?Ze+=270/C:Ze-=270/C),ht.push(bt,d(((Zt-Ct)*gt+We)*C-b),w,d(((xt-pt)*Lt+Xe)*C-b),w,d(((Zt+Ct)*gt+We)*C-b),w,d(((xt+pt)*Lt+Xe)*C-b),w,d((je*gt+We)*C-b),w,d((St*Lt+Xe)*C-b),w,d((Ze*gt+We)*C-b),w,d((ke*Lt+Xe)*C-b)),Et=Ze,Ot=ke;break;case u.R:var Dt=$[0],Ht=$[1];Dt[0]=ut[Ve++],Dt[1]=ut[Ve++],Ht[0]=Dt[0]+ut[Ve++],Ht[1]=Dt[1]+ut[Ve++],Se&&(I(Dt,Dt,Se),I(Ht,Ht,Se)),Dt[0]=d(Dt[0]*C-b),Ht[0]=d(Ht[0]*C-b),Dt[1]=d(Dt[1]*C-b),Ht[1]=d(Ht[1]*C-b),ht.push(" m ",Dt[0],w,Dt[1]," l ",Ht[0],w,Dt[1]," l ",Ht[0],w,Ht[1]," l ",Dt[0],w,Ht[1]);break;case u.Z:ht.push(" x ")}if(Ut>0){ht.push(zt);for(var _t=0;_t<Ut;_t++){var Gt=$[_t];Se&&I(Gt,Gt,Se),ht.push(d(Gt[0]*C-b),w,d(Gt[1]*C-b),_t<Ut-1?w:"")}}}return ht.join("")};t.prototype.brushVML=function(he){var Se=this.style,Ue=this._vmlEl;Ue||(Ue=i.createNode("shape"),g(Ue),this._vmlEl=Ue),Q(Ue,"fill",Se,this),Q(Ue,"stroke",Se,this);var Ne=this.transform,ct=Ne!=null,mt=Ue.getElementsByTagName("stroke")[0];if(mt){var Rt=Se.lineWidth;if(ct&&!Se.strokeNoScale){var ht=Ne[0]*Ne[3]-Ne[1]*Ne[2];Rt*=f(o(ht))}mt.weight=Rt+"px"}var Ut=this.path||(this.path=new h);this.__dirtyPath&&(Ut.beginPath(),Ut.subPixelOptimize=!1,this.buildPath(Ut,this.shape),Ut.toStatic(),this.__dirtyPath=!1),Ue.path=ee(Ut,this.transform),Ue.style.zIndex=N(this.zlevel,this.z,this.z2),y(he,Ue),Se.text!=null?this.drawRectText(he,this.getBoundingRect()):this.removeRectText(he)},t.prototype.onRemove=function(he){U(he,this._vmlEl),this.removeRectText(he)},t.prototype.onAdd=function(he){y(he,this._vmlEl),this.appendRectText(he)};var fe=function(he){return typeof he=="object"&&he.tagName&&he.tagName.toUpperCase()==="IMG"};p.prototype.brushVML=function(he){var Se=this.style,Ue=Se.image,Ne,ct;if(fe(Ue)){var mt=Ue.src;if(mt===this._imageSrc)Ne=this._imageWidth,ct=this._imageHeight;else{var Rt=Ue.runtimeStyle,ht=Rt.width,Ut=Rt.height;Rt.width="auto",Rt.height="auto",Ne=Ue.width,ct=Ue.height,Rt.width=ht,Rt.height=Ut,this._imageSrc=mt,this._imageWidth=Ne,this._imageHeight=ct}Ue=mt}else Ue===this._imageSrc&&(Ne=this._imageWidth,ct=this._imageHeight);if(!Ue)return;var zt=Se.x||0,ze=Se.y||0,Ve=Se.width,Et=Se.height,Ot=Se.sWidth,ut=Se.sHeight,vt=Se.sx||0,Ze=Se.sy||0,ke=Ot&&ut,He=this._vmlEl;He||(He=i.doc.createElement("div"),g(He),this._vmlEl=He);var we=He.style,Le=!1,Pe,We=1,Xe=1;if(this.transform&&(Pe=this.transform,We=f(Pe[0]*Pe[0]+Pe[1]*Pe[1]),Xe=f(Pe[2]*Pe[2]+Pe[3]*Pe[3]),Le=Pe[1]||Pe[2]),Le){var gt=[zt,ze],Lt=[zt+Ve,ze],en=[zt,ze+Et],Zt=[zt+Ve,ze+Et];I(gt,gt,Pe),I(Lt,Lt,Pe),I(en,en,Pe),I(Zt,Zt,Pe);var xt=B(gt[0],Lt[0],en[0],Zt[0]),Ct=B(gt[1],Lt[1],en[1],Zt[1]),pt=[];pt.push("M11=",Pe[0]/We,w,"M12=",Pe[2]/Xe,w,"M21=",Pe[1]/We,w,"M22=",Pe[3]/Xe,w,"Dx=",d(zt*We+Pe[4]),w,"Dy=",d(ze*Xe+Pe[5])),we.padding="0 "+d(xt)+"px "+d(Ct)+"px 0",we.filter=P+".Matrix("+pt.join("")+", SizingMethod=clip)"}else Pe&&(zt=zt*We+Pe[4],ze=ze*Xe+Pe[5]),we.filter="",we.left=d(zt)+"px",we.top=d(ze)+"px";var Je=this._imageEl,Qe=this._cropEl;Je||(Je=i.doc.createElement("div"),this._imageEl=Je);var Oe=Je.style;if(ke){if(Ne&&ct)Oe.width=d(We*Ne*Ve/Ot)+"px",Oe.height=d(Xe*ct*Et/ut)+"px";else{var je=new Image,St=this;je.onload=function(){je.onload=null,Ne=je.width,ct=je.height,Oe.width=d(We*Ne*Ve/Ot)+"px",Oe.height=d(Xe*ct*Et/ut)+"px",St._imageWidth=Ne,St._imageHeight=ct,St._imageSrc=Ue},je.src=Ue}Qe||(Qe=i.doc.createElement("div"),Qe.style.overflow="hidden",this._cropEl=Qe);var bt=Qe.style;bt.width=d((Ve+vt*Ve/Ot)*We),bt.height=d((Et+Ze*Et/ut)*Xe),bt.filter=P+".Matrix(Dx="+-vt*Ve/Ot*We+",Dy="+-Ze*Et/ut*Xe+")",Qe.parentNode||He.appendChild(Qe),Je.parentNode!==Qe&&Qe.appendChild(Je)}else Oe.width=d(We*Ve)+"px",Oe.height=d(Xe*Et)+"px",He.appendChild(Je),Qe&&Qe.parentNode&&(He.removeChild(Qe),this._cropEl=null);var Dt="",Ht=Se.opacity;Ht<1&&(Dt+=".Alpha(opacity="+d(Ht*100)+") "),Dt+=P+".AlphaImageLoader(src="+Ue+", SizingMethod=scale)",Oe.filter=Dt,He.style.zIndex=N(this.zlevel,this.z,this.z2),y(he,He),Se.text!=null&&this.drawRectText(he,this.getBoundingRect())},p.prototype.onRemove=function(he){U(he,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText(he)},p.prototype.onAdd=function(he){y(he,this._vmlEl),this.appendRectText(he)};var Ae="normal",ce={},ie=0,be=100,se=document.createElement("div"),me=function(he){var Se=ce[he];if(!Se){ie>be&&(ie=0,ce={});var Ue=se.style,Ne;try{Ue.font=he,Ne=Ue.fontFamily.split(",")[0]}catch(ct){}Se={style:Ue.fontStyle||Ae,variant:Ue.fontVariant||Ae,weight:Ue.fontWeight||Ae,size:parseFloat(Ue.fontSize||12)|0,family:Ne||"Microsoft YaHei"},ce[he]=Se,ie++}return Se},le;O.$override("measureText",function(he,Se){var Ue=i.doc;le||(le=Ue.createElement("div"),le.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",i.doc.body.appendChild(le));try{le.style.font=Se}catch(Ne){}return le.innerHTML="",le.appendChild(Ue.createTextNode(he)),{width:le.offsetWidth}});for(var ge=new k,ae=function(he,Se,Ue,Ne){var ct=this.style;this.__dirty&&M.normalizeTextStyle(ct,!0);var mt=ct.text;if(mt!=null&&(mt+=""),!mt)return;if(ct.rich){var Rt=O.parseRichText(mt,ct);mt=[];for(var ht=0;ht<Rt.lines.length;ht++){for(var Ut=Rt.lines[ht].tokens,zt=[],ze=0;ze<Ut.length;ze++)zt.push(Ut[ze].text);mt.push(zt.join(""))}mt=mt.join(`
|
|
`)}var Ve,Et,Ot=ct.textAlign,ut=ct.textVerticalAlign,vt=me(ct.font),Ze=vt.style+" "+vt.variant+" "+vt.weight+" "+vt.size+'px "'+vt.family+'"';Ue=Ue||O.getBoundingRect(mt,Ze,Ot,ut,ct.textPadding,ct.textLineHeight);var ke=this.transform;if(ke&&!Ne&&(ge.copy(Se),ge.applyTransform(ke),Se=ge),Ne)Ve=Se.x,Et=Se.y;else{var He=ct.textPosition;if(He instanceof Array)Ve=Se.x+S(He[0],Se.width),Et=Se.y+S(He[1],Se.height),Ot=Ot||"left";else{var we=this.calculateTextPosition?this.calculateTextPosition({},ct,Se):O.calculateTextPosition({},ct,Se);Ve=we.x,Et=we.y,Ot=Ot||we.textAlign,ut=ut||we.textVerticalAlign}}Ve=O.adjustTextX(Ve,Ue.width,Ot),Et=O.adjustTextY(Et,Ue.height,ut),Et+=Ue.height/2;var Le=i.createNode,Pe=this._textVmlEl,We,Xe,gt;Pe?(gt=Pe.firstChild,We=gt.nextSibling,Xe=We.nextSibling):(Pe=Le("line"),We=Le("path"),Xe=Le("textpath"),gt=Le("skew"),Xe.style["v-text-align"]="left",g(Pe),We.textpathok=!0,Xe.on=!0,Pe.from="0 0",Pe.to="1000 0.05",y(Pe,gt),y(Pe,We),y(Pe,Xe),this._textVmlEl=Pe);var Lt=[Ve,Et],en=Pe.style;ke&&Ne?(I(Lt,Lt,ke),gt.on=!0,gt.matrix=ke[0].toFixed(3)+w+ke[2].toFixed(3)+w+ke[1].toFixed(3)+w+ke[3].toFixed(3)+",0,0",gt.offset=(d(Lt[0])||0)+","+(d(Lt[1])||0),gt.origin="0 0",en.left="0px",en.top="0px"):(gt.on=!1,en.left=d(Ve)+"px",en.top=d(Et)+"px"),Xe.string=T(mt);try{Xe.style.font=Ze}catch(Zt){}Q(Pe,"fill",{fill:ct.textFill,opacity:ct.opacity},this),Q(Pe,"stroke",{stroke:ct.textStroke,opacity:ct.opacity,lineDash:ct.lineDash||null},this),Pe.style.zIndex=N(this.zlevel,this.z,this.z2),y(he,Pe)},pe=function(he){U(he,this._textVmlEl),this._textVmlEl=null},Me=function(he){y(he,this._textVmlEl)},xe=[x,n,p,t,a],Ke=0;Ke<xe.length;Ke++){var tt=xe[Ke].prototype;tt.drawRectText=ae,tt.removeRectText=pe,tt.appendRectText=Me}a.prototype.brushVML=function(he){var Se=this.style;Se.text!=null?this.drawRectText(he,{x:Se.x||0,y:Se.y||0,width:0,height:0},this.getBoundingRect(),!0):this.removeRectText(he)},a.prototype.onRemove=function(he){this.removeRectText(he)},a.prototype.onAdd=function(he){this.appendRectText(he)}}},qgvg:function(Re,te){Re.exports="data:image/gif;base64,R0lGODlhFAAQAOZVAD6Q33p6ezZto2VnaW5vcDuCxiYvNysvM1tdXzNij5eXlyg0QTA0OExOUWZnaS8zN19hYzFYf0Oi/Sg1QoeHh2JjZWZoaTdzrTRmljl5tzFZgDBWez6P3Tl4tjl8uzdxqWBiYys/VCUqL39/gHV2dy4yNScyPDJeiEpNTzk8P0CX6jc7PiYuNWlqaywwNDZtojAzNytDWScrLitAVUGb8Xl6eoWFhTp+wDNgjWRmZ4+QkFdZWzo9QIODgyo/Uzh3syg0QCczPmprbTRllW9wcSotMVJUVjZupDuEylBSVUGb8kxPUZGRkTd0rUGc82JkZUKe9j2M1zg7P4iIiEOj/yUpLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/wtYTVAgRGF0YVhNUDw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6N0U3Nzk1NkY5QkRGMTFFQUIzQzFDQjY5MEVFODZDMDciIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6N0U3Nzk1NzA5QkRGMTFFQUIzQzFDQjY5MEVFODZDMDciPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo3RTc3OTU2RDlCREYxMUVBQjNDMUNCNjkwRUU4NkMwNyIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo3RTc3OTU2RTlCREYxMUVBQjNDMUNCNjkwRUU4NkMwNyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PgH//v38+/r5+Pf29fTz8vHw7+7t7Ovq6ejn5uXk4+Lh4N/e3dzb2tnY19bV1NPS0dDPzs3My8rJyMfGxcTDwsHAv769vLu6ubi3trW0s7KxsK+urayrqqmop6alpKOioaCfnp2cm5qZmJeWlZSTkpGQj46NjIuKiYiHhoWEg4KBgH9+fXx7enl4d3Z1dHNycXBvbm1sa2ppaGdmZWRjYmFgX15dXFtaWVhXVlVUU1JRUE9OTUxLSklIR0ZFRENCQUA/Pj08Ozo5ODc2NTQzMjEwLy4tLCsqKSgnJiUkIyIhIB8eHRwbGhkYFxYVFBMSERAPDg0MCwoJCAcGBQQDAgEAACH5BAUyAFUALAAAAAAUABAAAAd5gFWCg4RSLoSIiVUPFlNEhAwDCIoyST1TUwGCBwM6AweJPCSYmJpVCAMMgykgFRUtFKSlilVCsreZtAS4sqaJu7yzisDBvhAKyBDEvL6Iy7jNhA7BwoklKA0NRiO30bRFOzakpqiqtItPsTWbA0wWoOcrOUuEMA6TgQAh+QQFMgBVACwAAAAAFAAQAAAHeIBVgoOEISaEiIlVExlUSIQLAgmKIidOVFQAggYCNAIGiTFRmJiaVQkCC4MzHxcXHhKkpYpVN7K3mbQFuLKmibu8s4rAwb4YpBjEvL6IyrjMhB3BwolBGxEROCq30LQsQ1CkpqiqtItNsRybAkpHoOY+PxqEQC+TgQA7"},r6Bn:function(Re,te,v){var Z=v("bYtY"),K=v("ItGF"),I=v("4fz+"),k=v("BPZU");function _(x,n){return x.zlevel===n.zlevel?x.z===n.z?x.z2-n.z2:x.z-n.z:x.zlevel-n.zlevel}var O=function(){this._roots=[],this._displayList=[],this._displayListLen=0};O.prototype={constructor:O,traverse:function(x,n){for(var p=0;p<this._roots.length;p++)this._roots[p].traverse(x,n)},getDisplayList:function(x,n){return n=n||!1,x&&this.updateDisplayList(n),this._displayList},updateDisplayList:function(x){this._displayListLen=0;for(var n=this._roots,p=this._displayList,a=0,t=n.length;a<t;a++)this._updateAndAddDisplayable(n[a],null,x);p.length=this._displayListLen,K.canvasSupported&&k(p,_)},_updateAndAddDisplayable:function(x,n,p){if(x.ignore&&!p)return;x.beforeUpdate(),x.__dirty&&x.update(),x.afterUpdate();var a=x.clipPath;if(a){n?n=n.slice():n=[];for(var t=a,h=x;t;)t.parent=h,t.updateTransform(),n.push(t),h=t,t=t.clipPath}if(x.isGroup){for(var s=x._children,i=0;i<s.length;i++){var u=s[i];x.__dirty&&(u.__dirty=!0),this._updateAndAddDisplayable(u,n,p)}x.__dirty=!1}else x.__clipPaths=n,this._displayList[this._displayListLen++]=x},addRoot:function(x){if(x.__storage===this)return;x instanceof I&&x.addChildrenToStorage(this),this.addToStorage(x),this._roots.push(x)},delRoot:function(x){if(x==null){for(var n=0;n<this._roots.length;n++){var p=this._roots[n];p instanceof I&&p.delChildrenFromStorage(this)}this._roots=[],this._displayList=[],this._displayListLen=0;return}if(x instanceof Array){for(var n=0,a=x.length;n<a;n++)this.delRoot(x[n]);return}var t=Z.indexOf(this._roots,x);t>=0&&(this.delFromStorage(x),this._roots.splice(t,1),x instanceof I&&x.delChildrenFromStorage(this))},addToStorage:function(x){return x&&(x.__storage=this,x.dirty(!1)),this},delFromStorage:function(x){return x&&(x.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:_};var M=O;Re.exports=M},rA99:function(Re,te,v){var Z=v("y+Vt"),K=v("QBsz"),I=v("Sj9i"),k=I.quadraticSubdivide,_=I.cubicSubdivide,O=I.quadraticAt,M=I.cubicAt,x=I.quadraticDerivativeAt,n=I.cubicDerivativeAt,p=[];function a(h,s,i){var u=h.cpx2,d=h.cpy2;return u===null||d===null?[(i?n:M)(h.x1,h.cpx1,h.cpx2,h.x2,s),(i?n:M)(h.y1,h.cpy1,h.cpy2,h.y2,s)]:[(i?x:O)(h.x1,h.cpx1,h.x2,s),(i?x:O)(h.y1,h.cpy1,h.y2,s)]}var t=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(h,s){var i=s.x1,u=s.y1,d=s.x2,f=s.y2,o=s.cpx1,c=s.cpy1,E=s.cpx2,B=s.cpy2,w=s.percent;if(w===0)return;h.moveTo(i,u),E==null||B==null?(w<1&&(k(i,o,d,w,p),o=p[1],d=p[2],k(u,c,f,w,p),c=p[1],f=p[2]),h.quadraticCurveTo(o,c,d,f)):(w<1&&(_(i,o,E,d,w,p),o=p[1],E=p[2],d=p[3],_(u,c,B,f,w,p),c=p[1],B=p[2],f=p[3]),h.bezierCurveTo(o,c,E,B,d,f))},pointAt:function(h){return a(this.shape,h,!1)},tangentAt:function(h){var s=a(this.shape,h,!0);return K.normalize(s,s)}});Re.exports=t},"rAM+":function(Re,te,v){"use strict";v.d(te,"a",function(){return K});var Z=v("Qw5x");function K(I,k){var _;if(typeof Symbol=="undefined"||I[Symbol.iterator]==null){if(Array.isArray(I)||(_=Object(Z.a)(I))||k&&I&&typeof I.length=="number"){_&&(I=_);var O=0,M=function(){};return{s:M,n:function(){return O>=I.length?{done:!0}:{done:!1,value:I[O++]}},e:function(t){throw t},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 x=!0,n=!1,p;return{s:function(){_=I[Symbol.iterator]()},n:function(){var t=_.next();return x=t.done,t},e:function(t){n=!0,p=t},f:function(){try{!x&&_.return!=null&&_.return()}finally{if(n)throw p}}}}},rHrb:function(Re,te,v){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.CopyToClipboard=void 0;var Z=I(v("q1tI")),K=I(v("+QRC"));function I(o){return o&&o.__esModule?o:{default:o}}function k(o){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?k=function(E){return typeof E}:k=function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E},k(o)}function _(o,c){var E=Object.keys(o);if(Object.getOwnPropertySymbols){var B=Object.getOwnPropertySymbols(o);c&&(B=B.filter(function(w){return Object.getOwnPropertyDescriptor(o,w).enumerable})),E.push.apply(E,B)}return E}function O(o){for(var c=1;c<arguments.length;c++){var E=arguments[c]!=null?arguments[c]:{};c%2?_(E,!0).forEach(function(B){d(o,B,E[B])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(E)):_(E).forEach(function(B){Object.defineProperty(o,B,Object.getOwnPropertyDescriptor(E,B))})}return o}function M(o,c){if(o==null)return{};var E=x(o,c),B,w;if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(o);for(w=0;w<P.length;w++){if(B=P[w],c.indexOf(B)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(o,B))continue;E[B]=o[B]}}return E}function x(o,c){if(o==null)return{};var E={},B=Object.keys(o),w,P;for(P=0;P<B.length;P++){if(w=B[P],c.indexOf(w)>=0)continue;E[w]=o[w]}return E}function n(o,c){if(!(o instanceof c))throw new TypeError("Cannot call a class as a function")}function p(o,c){for(var E=0;E<c.length;E++){var B=c[E];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(o,B.key,B)}}function a(o,c,E){return c&&p(o.prototype,c),E&&p(o,E),o}function t(o,c){return c&&(k(c)==="object"||typeof c=="function")?c:s(o)}function h(o){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(E){return E.__proto__||Object.getPrototypeOf(E)},h(o)}function s(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function i(o,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(c&&c.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),c&&u(o,c)}function u(o,c){return u=Object.setPrototypeOf||function(B,w){return B.__proto__=w,B},u(o,c)}function d(o,c,E){return c in o?Object.defineProperty(o,c,{value:E,enumerable:!0,configurable:!0,writable:!0}):o[c]=E,o}var f=function(o){i(c,o);function c(){var E,B;n(this,c);for(var w=arguments.length,P=new Array(w),C=0;C<w;C++)P[C]=arguments[C];return B=t(this,(E=h(c)).call.apply(E,[this].concat(P))),d(s(B),"onClick",function(b){var l=B.props,A=l.text,g=l.onCopy,T=l.children,m=l.options,y=Z.default.Children.only(T),U=(0,K.default)(A,m);g&&g(A,U),y&&y.props&&typeof y.props.onClick=="function"&&y.props.onClick(b)}),B}return a(c,[{key:"render",value:function(){var B=this.props,w=B.text,P=B.onCopy,C=B.options,b=B.children,l=M(B,["text","onCopy","options","children"]),A=Z.default.Children.only(b);return Z.default.cloneElement(A,O({},l,{onClick:this.onClick}))}}]),c}(Z.default.PureComponent);te.CopyToClipboard=f,d(f,"defaultProps",{onCopy:void 0,options:void 0})},rUJ1:function(Re,te){const v=/[&<>"']/,Z=/[&<>"']/g,K=/[<>"']|&(?!#?\w+;)/,I=/[<>"']|&(?!#?\w+;)/g,k={"&":"&","<":"<",">":">",'"':""","'":"'"},_=C=>k[C];function O(C,b){if(b){if(v.test(C))return C.replace(Z,_)}else if(K.test(C))return C.replace(I,_);return C}const M=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function x(C){return C.replace(M,(b,l)=>(l=l.toLowerCase(),l==="colon"?":":l.charAt(0)==="#"?l.charAt(1)==="x"?String.fromCharCode(parseInt(l.substring(2),16)):String.fromCharCode(+l.substring(1)):""))}const n=/(^|[^\[])\^/g;function p(C,b){C=C.source||C,b=b||"";const l={replace:(A,g)=>(g=g.source||g,g=g.replace(n,"$1"),C=C.replace(A,g),l),getRegex:()=>new RegExp(C,b)};return l}const a=/[^\w:]/g,t=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function h(C,b,l){if(C){let A;try{A=decodeURIComponent(x(l)).replace(a,"").toLowerCase()}catch(g){return null}if(A.indexOf("javascript:")===0||A.indexOf("vbscript:")===0||A.indexOf("data:")===0)return null}b&&!t.test(l)&&(l=f(b,l));try{l=encodeURI(l).replace(/%25/g,"%")}catch(A){return null}return l}const s={},i=/^[^:]+:\/*[^/]*$/,u=/^([^:]+:)[\s\S]*$/,d=/^([^:]+:\/*[^/]*)[\s\S]*$/;function f(C,b){s[" "+C]||(i.test(C)?s[" "+C]=C+"/":s[" "+C]=B(C,"/",!0)),C=s[" "+C];const l=C.indexOf(":")===-1;return b.substring(0,2)==="//"?l?b:C.replace(u,"$1")+b:b.charAt(0)==="/"?l?b:C.replace(d,"$1")+b:C+b}const o={exec:function(){}};function c(C){let b=1,l,A;for(;b<arguments.length;b++){l=arguments[b];for(A in l)Object.prototype.hasOwnProperty.call(l,A)&&(C[A]=l[A])}return C}function E(C,b){const l=C.replace(/\|/g,(T,m,y)=>{let U=!1,N=m;for(;--N>=0&&y[N]==="\\";)U=!U;return U?"|":" |"}),A=l.split(/ \|/);let g=0;if(A.length>b)A.splice(b);else for(;A.length<b;)A.push("");for(;g<A.length;g++)A[g]=A[g].trim().replace(/\\\|/g,"|");return A}function B(C,b,l){const A=C.length;if(A===0)return"";let g=0;for(;g<A;){const T=C.charAt(A-g-1);if(T===b&&!l)g++;else if(T!==b&&l)g++;else break}return C.substr(0,A-g)}function w(C,b){if(C.indexOf(b[1])===-1)return-1;const l=C.length;let A=0,g=0;for(;g<l;g++)if(C[g]==="\\")g++;else if(C[g]===b[0])A++;else if(C[g]===b[1]&&(A--,A<0))return g;return-1}function P(C){C&&C.sanitize&&!C.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")}Re.exports={escape:O,unescape:x,edit:p,cleanUrl:h,resolveUrl:f,noopTest:o,merge:c,splitCells:E,rtrim:B,findClosingBracket:w,checkSanitizeDeprecation:P}},rmlV:function(Re,te,v){var Z=v("y+Vt"),K=Z.extend({type:"ellipse",shape:{cx:0,cy:0,rx:0,ry:0},buildPath:function(I,k){var _=.5522848,O=k.cx,M=k.cy,x=k.rx,n=k.ry,p=x*_,a=n*_;I.moveTo(O-x,M),I.bezierCurveTo(O-x,M-a,O-p,M-n,O,M-n),I.bezierCurveTo(O+p,M-n,O+x,M-a,O+x,M),I.bezierCurveTo(O+x,M+a,O+p,M+n,O,M+n),I.bezierCurveTo(O-p,M+n,O-x,M+a,O-x,M),I.closePath()}});Re.exports=K},sBCT:function(Re,te,v){"use strict";var Z=v("+BJd"),K=v("mr32"),I=v("oBTY"),k=v("0Owb"),_=v("MXD1"),O=v("CFYs"),M=v("k1fw"),x=v("9og8"),n=v("2qtc"),p=v("kLXV"),a=v("miYZ"),t=v("tsqr"),h=v("y8nQ"),s=v("Vl3Y"),i=v("tJVT"),u=v("5NDa"),d=v("5rEg"),f=v("WmNS"),o=v.n(f),c=v("q1tI"),E=v.n(c),B=v("Ty5D"),w=v("55Ip"),P=v("9kvl"),C=v("kwm0"),b=v.n(C),l=v("h/US"),A=v("xKgJ"),g=v("9+Du"),T=d.a.TextArea,m=1024,y=function(N){var S,H,F=N.user,R=N.globalSetting,z=N.loading,Q=N.dispatch,$=N.visible,ee=N.editData,fe=N.onCancel,Ae=fe===void 0?function(){}:fe,ce=N.onOk,ie=ce===void 0?function(){}:ce,be=N.queryParams,se=be===void 0?{}:be,me=Object(B.i)(),le=s.a.useForm(),ge=Object(i.a)(le,1),ae=ge[0],pe=Object(c.useState)([]),Me=Object(i.a)(pe,2),xe=Me[0],Ke=Me[1],tt=Object(c.useState)(!1),he=Object(i.a)(tt,2),Se=he[0],Ue=he[1],Ne=Object(c.useRef)(),ct=Object(c.useState)(),mt=Object(i.a)(ct,2),Rt=mt[0],ht=mt[1],Ut=Object(c.useState)(!1),zt=Object(i.a)(Ut,2),ze=zt[0],Ve=zt[1],Et=Object(c.useState)(!1),Ot=Object(i.a)(Et,2),ut=Ot[0],vt=Ot[1],Ze=Object(A.v)()?3:1;Object(c.useEffect)(function(){var pt,Je,Qe,Oe;if(!$)return;if(!ee)return;Ve(ee.is_link),ht(ee.link),!ee.is_link&&Ke([{name:ee==null||((pt=ee.video_item)===null||pt===void 0)?void 0:pt.file_name,loaded:100,videoId:ee==null||((Je=ee.video_item)===null||Je===void 0)?void 0:Je.video_id}]),en((ee==null||((Qe=ee.tags)===null||Qe===void 0)?void 0:Qe.map(function(je){return je==null?void 0:je.name}))||[]),ae.setFieldsValue({name:ee.name,description:ee.description,attachment_id:ee==null||((Oe=ee.video)===null||Oe===void 0)?void 0:Oe.attachment_id})},[ee,$]);var ke=function(Je){Ve(!1);var Qe=Je.name.toLowerCase();return Qe&&Qe.indexOf(".avi")==-1&&Qe.indexOf(".flv")==-1&&Qe.indexOf(".f4v")==-1&&Qe.indexOf(".m4v")==-1&&Qe.indexOf(".mov")==-1&&Qe.indexOf(".mp4")==-1&&Qe.indexOf(".rmvb")==-1&&Qe.indexOf(".swf")==-1&&Qe.indexOf(".webm")==-1&&Qe.indexOf(".wmv")==-1?(t.b.info("\u4E0D\u652F\u6301\u7684\u89C6\u9891\u683C\u5F0F"),!0):Je.size>m*Ze*1024*1024?(t.b.info("\u89C6\u9891\u5927\u5C0F\u8D85\u8FC7".concat(Ze,"G")),!0):xe!=null&&xe.find(function(Oe){return Oe.name===Je.name})?(t.b.info("\u4F60\u4E0D\u80FD\u4E0A\u4F20\u540C\u4E00\u4E2A\u89C6\u9891\u6587\u4EF6\u540D\u79F0\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u3002"),!0):!1},He=function(Je,Qe){p.a.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:E.a.createElement("div",{className:"tc"},"\u60A8\u786E\u8BA4\u8981",Qe?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20","\u8BE5\u89C6\u9891\u5417\uFF1F"),onOk:function(){Qe?Ke([]):(Ne.current.cancel(),Ke([]))}})},we=function(){var pt=Object(x.a)(o.a.mark(function Je(){var Qe,Oe;return o.a.wrap(function(St){for(;;)switch(St.prev=St.next){case 0:return St.next=2,ae.validateFields();case 2:if(!(!ze&&!(xe!=null&&xe.length)||ze&&!Rt)){St.next=5;break}return t.b.info("\u8BF7\u5148\u4E0A\u4F20\u89C6\u9891\u6216\u8005\u6DFB\u52A0\u5916\u94FE"),St.abrupt("return");case 5:return vt(!0),Qe=ze?{link:Rt}:{video_id:xe==null?void 0:xe[0].videoId},St.next=9,ie(Object(M.a)(Object(M.a)(Object(M.a)({},Qe),se),{name:ae.getFieldValue("name"),attachment_id:ae.getFieldValue("attachment_id"),description:ae.getFieldValue("description"),tags:Lt}));case 9:Oe=St.sent,vt(!1),Oe.id&&Le();case 12:case"end":return St.stop()}},Je)}));return function(){return pt.apply(this,arguments)}}(),Le=function(){ae.resetFields(),Ke([]),ht(null),en([]),Ve(null)},Pe=function(){Ae(),Le()},We=function(){var Je,Qe,Oe,je,St;return E.a.createElement(E.a.Fragment,null,!ze&&!!(xe!=null&&xe.length)&&E.a.createElement("div",{className:b.a.fileProgress},(xe==null||((Je=xe[0])===null||Je===void 0)?void 0:Je.loaded)==100?E.a.createElement("div",{className:"".concat(b.a.videoName," font14")},xe==null||((Qe=xe[0])===null||Qe===void 0)?void 0:Qe.name):E.a.createElement(O.a,{style:{width:"80%"},percent:xe==null||((Oe=xe[0])===null||Oe===void 0)?void 0:Oe.loaded,status:(xe==null||((je=xe[0])===null||je===void 0)?void 0:je.loaded)==100?"normal":"active"}),E.a.createElement("div",{className:b.a.fileCancel,onClick:function(){var Dt,Ht;return He(xe==null||((Dt=xe[0])===null||Dt===void 0)?void 0:Dt.name,(xe==null||((Ht=xe[0])===null||Ht===void 0)?void 0:Ht.loaded)==100)}},(xe==null||((St=xe[0])===null||St===void 0)?void 0:St.loaded)===100?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20")),E.a.createElement("div",{className:b.a.uploadWrap,style:{display:xe!=null&&xe.length?"none":"flex"}},E.a.createElement(g.a,Object(k.a)({},Ct,{ref:Ne}),E.a.createElement("div",{className:b.a.upload},E.a.createElement("i",{className:"iconfont icon-shangchuanshipin1 mr5"}),"\u4E0A\u4F20\u89C6\u9891")),E.a.createElement("label",{className:"".concat(b.a.upload," ").concat(b.a.uploadLink),onClick:function(){return Ve(!0)}},E.a.createElement("i",{className:"iconfont icon-lianjie1 mr5"}),"\u6DFB\u52A0\u5916\u94FE")),ze&&E.a.createElement(d.a,{className:"mt5",placeholder:"\u8BF7\u8F93\u5165\u89C6\u9891\u94FE\u63A5",value:Rt,onChange:function(Dt){return ht(Dt.target.value)}}))},Xe=Object(c.useState)([]),gt=Object(i.a)(Xe,2),Lt=gt[0],en=gt[1],Zt=function(Je){if(Je.key=="Enter"){var Qe=ae.getFieldValue("tag");if(ae.setFieldsValue({tag:""}),!Qe){t.b.info("\u6807\u7B7E\u4E0D\u80FD\u4E3A\u7A7A");return}if(Lt.filter(function(Oe){return Oe===Qe}).length>0){t.b.info("\u5DF2\u6709\u76F8\u540C\u540D\u79F0\u6807\u7B7E");return}Lt.push(Qe),en(Object(I.a)(Lt))}},xt=function(Je,Qe){Je.preventDefault(),en(Object(I.a)(Lt.filter(function(Oe){return Oe!=Qe})))},Ct={accept:".mkv, .flv, .f4v, .rmvb, .swf, video/mp4,video/x-m4v,video/flv,video/f4v,video/rmvb,video/swf,video/*",onBefore:ke,onBeginInitFile:function(Je){Ke([{name:Je.filename,loaded:0}])},onComplete:function(Je){Ke([{name:Je.filename,loaded:Je.percent,videoId:Je.id}])},onError:function(){Ke([])},onProgress:function(Je){Ke([{name:Je.filename,loaded:Je.percent}])},chunkSize:1024*1024*2,options:{user_id:F==null||((S=F.userInfo)===null||S===void 0)?void 0:S.user_id}};return E.a.createElement(p.a,{centered:!0,maskClosable:!1,title:ee?"\u7F16\u8F91\u89C6\u9891\u9879\u76EE":"\u65B0\u5EFA\u89C6\u9891\u9879\u76EE",width:740,className:b.a.modal,visible:$,confirmLoading:ut,onOk:we,onCancel:Pe},E.a.createElement(s.a,{form:ae},E.a.createElement(s.a.Item,{label:"\u9879\u76EE\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0"}]},E.a.createElement(d.a,{maxLength:40,placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC740\u5B57\u7684\u9879\u76EE\u540D\u79F0"})),E.a.createElement(s.a.Item,{label:"\u9879\u76EE\u5185\u5BB9",name:"content",className:b.a.contentItem},We()),E.a.createElement(s.a.Item,{name:"attachment_id",label:"\u4E0A\u4F20\u5C01\u9762\u56FE:"},E.a.createElement(l.a,{getFileProgress:function(Je){if(Je.file.status==="uploading"){vt(!0);return}Je.file.status==="done"&&vt(!1)}})),E.a.createElement(s.a.Item,{label:"\u9879\u76EE\u7B80\u4ECB",name:"description",className:"ml8"},E.a.createElement(T,{rows:5,maxLength:800,placeholder:"\u8BF7\u8F93\u5165\u672C\u89C6\u9891\u7B80\u4ECB\uFF0C\u6700\u591A\u4E0D\u8D85\u8FC7800\u5B57"})),E.a.createElement(s.a.Item,{label:"\u77E5\u8BC6\u6807\u7B7E",name:"tag",className:"ml8"},E.a.createElement(d.a,{onKeyUp:Zt})),E.a.createElement("div",{className:b.a["tagsList-content"]},Lt.map(function(pt,Je){return E.a.createElement(K.a,{key:Je+pt,closable:!0,onClose:function(Oe){xt(Oe,pt)}},pt)})),E.a.createElement("div",{className:"c-grey-999"},E.a.createElement("div",null,"\u6CE8\u610F\uFF1A"),E.a.createElement("div",null,"1\u3001\u4E0A\u4F20\u89C6\u9891\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F",E.a.createElement(w.a,{to:"/users/".concat((H=F.userInfo)===null||H===void 0?void 0:H.login,"/videos/protocol"),target:"_blank",className:b.a.colorBlue},"\u4E0A\u4F20\u5185\u5BB9\u534F\u8BAE"),"\uFF0C\u4E0D\u5F97\u4E0A\u4F20\u672A\u7ECF\u4ED6\u4EBA\u6388\u6743\u7684\u4F5C\u54C1\uFF1B"),E.a.createElement("div",null,"2\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC7",Ze,"G\uFF1B"),E.a.createElement("div",null,"3\u3001\u652F\u6301\u6587\u4EF6\u683C\u5F0F\uFF1Aavi\u3001flv\u3001f4v\u3001m4v\u3001mov\u3001mp4\u3001rmvb\u3001swf\u3001webm\u3001wmv\uFF1B"),E.a.createElement("div",null,"4\u3001\u5982\u679C\u89C6\u9891\u6765\u81EA\u4E8E\u5916\u90E8\u94FE\u63A5\uFF0C\u672C\u7F51\u7AD9\u4E0D\u63D0\u4F9B\u64AD\u653E\u9875\u9762\uFF0C\u65E0\u6CD5\u63D0\u4F9B\u7EDF\u8BA1\u6570\u636E\u3002"))))};te.a=Object(P.a)(function(U){var N=U.user,S=U.loading,H=U.globalSetting;return{user:N,globalSetting:H,loading:S}})(y)},sR1s:function(Re,te,v){"use strict";v.d(te,"b",function(){return k}),v.d(te,"a",function(){return _}),v.d(te,"c",function(){return O}),v.d(te,"d",function(){return M});var Z=v("U8pU"),K="RC_TABLE_KEY";function I(x){return x==null?[]:Array.isArray(x)?x:[x]}function k(x,n){if(!n&&typeof n!="number")return x;for(var p=I(n),a=x,t=0;t<p.length;t+=1){if(!a)return null;var h=p[t];a=a[h]}return a}function _(x){var n=[],p={};return x.forEach(function(a){for(var t=a||{},h=t.key,s=t.dataIndex,i=h||I(s).join("-")||K;p[i];)i="".concat(i,"_next");p[i]=!0,n.push(i)}),n}function O(){var x={};function n(h,s){s&&Object.keys(s).forEach(function(i){var u=s[i];u&&Object(Z.a)(u)==="object"?(h[i]=h[i]||{},n(h[i],u)):h[i]=u})}for(var p=arguments.length,a=new Array(p),t=0;t<p;t++)a[t]=arguments[t];return a.forEach(function(h){n(x,h)}),x}function M(x){return x!=null}},"sW+o":function(Re,te,v){var Z=v("SrGk"),K=v("bYtY"),I=v("SUKs"),k=v("Qe9p");function _(M,x){Z.call(this,M,x,["linearGradient","radialGradient"],"__gradient_in_use__")}K.inherits(_,Z),_.prototype.addWithoutUpdate=function(M,x){if(x&&x.style){var n=this;K.each(["fill","stroke"],function(p){if(x.style[p]&&(x.style[p].type==="linear"||x.style[p].type==="radial")){var a=x.style[p],t=n.getDefs(!0),h;a._dom?(h=a._dom,t.contains(a._dom)||n.addDom(h)):h=n.add(a),n.markUsed(x);var s=h.getAttribute("id");M.setAttribute(p,"url(#"+s+")")}})}},_.prototype.add=function(M){var x;if(M.type==="linear")x=this.createElement("linearGradient");else if(M.type==="radial")x=this.createElement("radialGradient");else return I("Illegal gradient type."),null;return M.id=M.id||this.nextId++,x.setAttribute("id","zr"+this._zrId+"-gradient-"+M.id),this.updateDom(M,x),this.addDom(x),x},_.prototype.update=function(M){var x=this;Z.prototype.update.call(this,M,function(){var n=M.type,p=M._dom.tagName;n==="linear"&&p==="linearGradient"||n==="radial"&&p==="radialGradient"?x.updateDom(M,M._dom):(x.removeDom(M),x.add(M))})},_.prototype.updateDom=function(M,x){if(M.type==="linear")x.setAttribute("x1",M.x),x.setAttribute("y1",M.y),x.setAttribute("x2",M.x2),x.setAttribute("y2",M.y2);else if(M.type==="radial")x.setAttribute("cx",M.x),x.setAttribute("cy",M.y),x.setAttribute("r",M.r);else{I("Illegal gradient type.");return}M.global?x.setAttribute("gradientUnits","userSpaceOnUse"):x.setAttribute("gradientUnits","objectBoundingBox"),x.innerHTML="";for(var n=M.colorStops,p=0,a=n.length;p<a;++p){var t=this.createElement("stop");t.setAttribute("offset",n[p].offset*100+"%");var h=n[p].color;if(h.indexOf("rgba">-1)){var s=k.parse(h)[3],i=k.toHex(h);t.setAttribute("stop-color","#"+i),t.setAttribute("stop-opacity",s)}else t.setAttribute("stop-color",n[p].color);x.appendChild(t)}M._dom=x},_.prototype.markUsed=function(M){if(M.style){var x=M.style.fill;x&&x._dom&&Z.prototype.markUsed.call(this,x._dom),x=M.style.stroke,x&&x._dom&&Z.prototype.markUsed.call(this,x._dom)}};var O=_;Re.exports=O},sboe:function(Re,te,v){"use strict";v.d(te,"a",function(){return I});var Z=v("q1tI"),K=v.n(Z),I=Z.createContext(null)},t23M:function(Re,te,v){"use strict";var Z=v("VTBJ"),K=v("1OyB"),I=v("vuIU"),k=v("Ji7U"),_=v("LK+K"),O=v("q1tI"),M=v.n(O),x=v("m+aA"),n=v("Zm9Q"),p=v("Kwbf"),a=v("c+Xe"),t=v("bdgK"),h="rc-observer-key",s=function(i){Object(k.a)(d,i);var u=Object(_.a)(d);function d(){var f;return Object(K.a)(this,d),f=u.apply(this,arguments),f.resizeObserver=null,f.childNode=null,f.currentElement=null,f.state={width:0,height:0,offsetHeight:0,offsetWidth:0},f.onResize=function(o){var c=f.props.onResize,E=o[0].target,B=E.getBoundingClientRect(),w=B.width,P=B.height,C=E.offsetWidth,b=E.offsetHeight,l=Math.floor(w),A=Math.floor(P);if(f.state.width!==l||f.state.height!==A||f.state.offsetWidth!==C||f.state.offsetHeight!==b){var g={width:l,height:A,offsetWidth:C,offsetHeight:b};f.setState(g),c&&Promise.resolve().then(function(){c(Object(Z.a)(Object(Z.a)({},g),{},{offsetWidth:C,offsetHeight:b}))})}},f.setChildNode=function(o){f.childNode=o},f}return Object(I.a)(d,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var o=this.props.disabled;if(o){this.destroyObserver();return}var c=Object(x.a)(this.childNode||this),E=c!==this.currentElement;E&&(this.destroyObserver(),this.currentElement=c),!this.resizeObserver&&c&&(this.resizeObserver=new t.default(this.onResize),this.resizeObserver.observe(c))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var o=this.props.children,c=Object(n.a)(o);if(c.length>1)Object(p.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(c.length===0)return Object(p.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var E=c[0];if(O.isValidElement(E)&&Object(a.c)(E)){var B=E.ref;c[0]=O.cloneElement(E,{ref:Object(a.a)(B,this.setChildNode)})}return c.length===1?c[0]:c.map(function(w,P){return!O.isValidElement(w)||"key"in w&&w.key!==null?w:O.cloneElement(w,{key:"".concat(h,"-").concat(P)})})}}]),d}(O.Component);s.displayName="ResizeObserver",te.a=s},t9D7:function(Re,te,v){"use strict";v.d(te,"b",function(){return M}),v.d(te,"g",function(){return n}),v.d(te,"d",function(){return p}),v.d(te,"e",function(){return a}),v.d(te,"a",function(){return t}),v.d(te,"f",function(){return i}),v.d(te,"c",function(){return u});var Z=v("Vhoy"),K=v("MI8n"),I=v("pmY6"),k=v("Cg/j"),_=v("ic2d"),O=v("nEHx");const M=Object(k.c)("themeService");var x;(function(d){function f(o){return o&&typeof o=="object"&&typeof o.id=="string"}d.isThemeColor=f})(x||(x={}));function n(d){return{id:d}}var p;(function(d){function f(P){return P&&typeof P=="object"&&typeof P.id=="string"&&(typeof P.color=="undefined"||x.isThemeColor(P.color))}d.isThemeIcon=f;const o=new RegExp(`^\\$\\((${Z.a.iconNameExpression}(?:${Z.a.iconModifierExpression})?)\\)$`);function c(P){const C=o.exec(P);if(!C)return;let[,b]=C;return{id:b}}d.fromString=c;function E(P,C){let b=P.id;const l=b.lastIndexOf("~");return l!==-1&&(b=b.substring(0,l)),C&&(b=`${b}~${C}`),{id:b}}d.modify=E;function B(P,C){var b,l;return P.id===C.id&&((b=P.color)===null||b===void 0?void 0:b.id)===((l=C.color)===null||l===void 0?void 0:l.id)}d.isEqual=B;function w(P,C){return{id:P.id,color:C?n(C):void 0}}d.asThemeIcon=w,d.asClassNameArray=Z.a.asClassNameArray,d.asClassName=Z.a.asClassName,d.asCSSSelector=Z.a.asCSSSelector})(p||(p={}));function a(d){switch(d){case O.a.DARK:return"vs-dark";case O.a.HIGH_CONTRAST:return"hc-black";default:return"vs"}}const t={ThemingContribution:"base.contributions.theming"};class h{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new K.b}onColorThemeChange(d){return this.themingParticipants.push(d),this.onThemingParticipantAddedEmitter.fire(d),Object(I.i)(()=>{const f=this.themingParticipants.indexOf(d);this.themingParticipants.splice(f,1)})}getThemingParticipants(){return this.themingParticipants}}let s=new h;_.a.add(t.ThemingContribution,s);function i(d){return s.onColorThemeChange(d)}class u extends I.a{constructor(d){super();this.themeService=d,this.theme=d.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(f=>this.onThemeChange(f)))}onThemeChange(d){this.theme=d,this.updateStyles()}updateStyles(){}}},tWlo:function(Re,te){Re.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkVCNENBMTM0OENGMTExRTk4NzNCRkMxMzdBMjc5MEY5IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkVCNENBMTM1OENGMTExRTk4NzNCRkMxMzdBMjc5MEY5Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6RUI0Q0ExMzI4Q0YxMTFFOTg3M0JGQzEzN0EyNzkwRjkiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6RUI0Q0ExMzM4Q0YxMTFFOTg3M0JGQzEzN0EyNzkwRjkiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7p3KzkAAAFvElEQVR42sRae0ybVRQ/peVRaFce8pwgj1Je5TFsEHGbMAkzmqiJyba4hYh/LJlxiRr9Z0aNGv8xvhKTGckM2zKWmGEgU7MsPnCZIrKBjMcKY9BCBMqjjEcLtFDwHPZVC12h934f8yS/P6Dfud/5nXvvueec+8neOPEuSCAxiDJEMSITkYKIRoQJv9sREwgTogfRjGhEjIt9sUKEbhSiEvEC4mGEbJNngxGRiAzEk8L/VhGtiPOIswgrjxEBHDrxiE8Qg4hPEYYtjPclMkGXxhhCfIFI2E4CNFtvIm4hXvdYHlJIKOIVRK/wjkCpCaQjWhAfIVSwfaIS3kHvypaKwLOI64hdcP+kAPEn4jmxBI4ivkXsgPsvNBt1gg1cBI4hvkLI4f8TuWDDMdYw+owQFdh3Y6gSCnL1oNOmQnxcHAQHB8HCwiLMzM7C8KgFjD23oN9khtXVVZZhyZZhxEV/CGQhalk9r1AoYO9jxfBokQGCgoK8SBHi42LBsCsfJq1TcOnHn+F2v4llJsimIoRx3Q8le0o9/6bwdRmRxGJ8ZEQ4vHjkEORkZYBcLvdrlvL0OeBwOuDv4RF/X0Ne2Y34GrHiaw+8ishnMT4tNRmOVlVCTPQDzKfY/vJ9kJWpY1Ej217ztYnpFHyH6UjGJXH4wPOgVIZw7VAi8XRFOSjkTKv1bc8T25PACdZDan95mV9LZjNRq1Wg02lZw+tbGwnQ/L/EMooyJASSkxIliZUp7ONUCTb/S+AI2cTqOZlMJgmBcI2GVUUp2LyOAJMwxvHN04EAnqQYDrsJUDFSyKrtdC5JRmDR4eBRoxokgQjs48nn5+fnJSNgt3ONRTaXEYFHeLSXlpd5Peclk1Yrr6ohQKhhuWR6ekYSAiOWMV7VDCKg5Z0/uwTLaNnlAssYd22fTgRieTRz9dmQlpIsmgCdwuWle3nVY4mAmkczLCxUsk0cEaHhVVUH8GqOT0xKRmB6ZpZX1UkE5ng0zeYhsNntkhBgqAs2yhwR4AoBrpUVaO/oEm38nelp6B/gJnCHCNzm1f79jxaWgsRLbDY7XKj/Dlb405I+ItDDqz2/sACnTp9DEqNc+qfO1MLwyKiYCewNEPov3EK+G59k39BOp3Nt+YiUViLQKNjBH8sV7EXNivhslgb4xb2J28SMtMSRmbrwBBYpZPOI+xw4J2aka23tzB4VETrdct6zoCECC7wjjWIy1tbewZT//9R4RYzxZOtZTwK0C2vEjHjT2Ov3sx2d3TA7ZxPzuhrB5nVdiQ8pNPPvKP+XkEjjbYKtXm0VOpHe5x01KDDI72dFtmI+EGz1IkDyOeIvnlETH/T/digqKoLXeLLts3UNgY0REXGQZpmpqtCmrjV1/ZWcrEzIzEhnTtwQhwQb/5vNDc1dkinak4gDsMUFSEhwMJQ9vhueqihnWhYBMhnokYRGowGLZRwcW9fWLsGxTV6HqA8F6sMfR5z0qiDUKsjQpoEuPQ1SsSILVPDd1FJTrDA/Fwry9NDX1w9dxh7MSs2+ytTjcI+7gc0IkHwpMD+JnpbnZGdCXk4WPJSUKFlHzj0bGTrtGqhZNjJqgQHzIHRjWMbzhd7/MqLaZxqzxfjVFU+UjhcZCs+gp7f9nowcszMhfg17SoptSKDyym9N9cbePt8O2GrQ5pbrDRMTkwbe6MQpN6hfFRUVWa+Qb+7je23ideLAtPdGZ/cUZpw1iTsTFtFLJcBwEc2RIryHqELvW2q/qQPT4JA4AmupL5aP/Saza8A0eDU2Jvr0DrWaNkEe3L32kULmhXV+cHHR8cOvV5tcDd9f8qvm9ouAW2Zm5yhpm5uwWi9HRoRXq1UqC9zt08cDe391VUiJPyaPo+F1zddaZy80XFyLRv52v2ViPrehiJSvz6Z7rthQpZI+t6E+K91yuj+3UXnkL+7PbYxCFdiIKfgYdTcohHZ23QTnEntd8Y8AAwCTubpzlq2wWAAAAABJRU5ErkJggg=="},u3os:function(Re,te,v){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.ver=te.clear=te.bind=void 0;var Z=v("P4Qj"),K=function(O,M){var x=(0,Z.getSensor)(O);return x.bind(M),function(){x.unbind(M)}};te.bind=K;var I=function(O){var M=(0,Z.getSensor)(O);(0,Z.removeSensor)(M)};te.clear=I;var k="1.0.1";te.ver=k},uK0f:function(Re,te,v){(function(Z,K){Re.exports=K()})(this,function(){"use strict";function Z(K,I,k){k=k||{},k.childrenKeyName=k.childrenKeyName||"children";var _=K||[],O=[],M=0;do{var x=_.filter(function(n){return I(n,M)})[0];if(!x)break;O.push(x),_=x[k.childrenKeyName]||[],M+=1}while(_.length>0);return O}return Z})},uRQ9:function(Re,te,v){Re.exports={flex_box_center:"flex_box_center___1iLgt",flex_space_between:"flex_space_between___3p7p-",flex_box_vertical_center:"flex_box_vertical_center___3FnaF",flex_box_center_end:"flex_box_center_end___XIPip",flex_box_column:"flex_box_column___3ji4d",certificate:"certificate___3Sn4A",actionsBtns:"actionsBtns___30qsn"}},ulZh:function(Re,te,v){typeof window!="undefined"&&function(K,I){Re.exports=I()}(this,function(){return function(Z){var K={};function I(k){if(K[k])return K[k].exports;var _=K[k]={i:k,l:!1,exports:{}};return Z[k].call(_.exports,_,_.exports,I),_.l=!0,_.exports}return I.m=Z,I.c=K,I.d=function(k,_,O){I.o(k,_)||Object.defineProperty(k,_,{enumerable:!0,get:O})},I.r=function(k){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(k,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(k,"__esModule",{value:!0})},I.t=function(k,_){if(_&1&&(k=I(k)),_&8)return k;if(_&4&&typeof k=="object"&&k&&k.__esModule)return k;var O=Object.create(null);if(I.r(O),Object.defineProperty(O,"default",{enumerable:!0,value:k}),_&2&&typeof k!="string")for(var M in k)I.d(O,M,function(x){return k[x]}.bind(null,M));return O},I.n=function(k){var _=k&&k.__esModule?function(){return k.default}:function(){return k};return I.d(_,"a",_),_},I.o=function(k,_){return Object.prototype.hasOwnProperty.call(k,_)},I.p="/dist/",I(I.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":function(Z,K,I){"use strict";var k=Object.prototype.hasOwnProperty,_="~";function O(){}Object.create&&(O.prototype=Object.create(null),new O().__proto__||(_=!1));function M(a,t,h){this.fn=a,this.context=t,this.once=h||!1}function x(a,t,h,s,i){if(typeof h!="function")throw new TypeError("The listener must be a function");var u=new M(h,s||a,i),d=_?_+t:t;return a._events[d]?a._events[d].fn?a._events[d]=[a._events[d],u]:a._events[d].push(u):(a._events[d]=u,a._eventsCount++),a}function n(a,t){--a._eventsCount===0?a._events=new O:delete a._events[t]}function p(){this._events=new O,this._eventsCount=0}p.prototype.eventNames=function(){var t=[],h,s;if(this._eventsCount===0)return t;for(s in h=this._events)k.call(h,s)&&t.push(_?s.slice(1):s);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(h)):t},p.prototype.listeners=function(t){var h=_?_+t:t,s=this._events[h];if(!s)return[];if(s.fn)return[s.fn];for(var i=0,u=s.length,d=new Array(u);i<u;i++)d[i]=s[i].fn;return d},p.prototype.listenerCount=function(t){var h=_?_+t:t,s=this._events[h];return s?s.fn?1:s.length:0},p.prototype.emit=function(t,h,s,i,u,d){var f=_?_+t:t;if(!this._events[f])return!1;var o=this._events[f],c=arguments.length,E,B;if(o.fn){o.once&&this.removeListener(t,o.fn,void 0,!0);switch(c){case 1:return o.fn.call(o.context),!0;case 2:return o.fn.call(o.context,h),!0;case 3:return o.fn.call(o.context,h,s),!0;case 4:return o.fn.call(o.context,h,s,i),!0;case 5:return o.fn.call(o.context,h,s,i,u),!0;case 6:return o.fn.call(o.context,h,s,i,u,d),!0}for(B=1,E=new Array(c-1);B<c;B++)E[B-1]=arguments[B];o.fn.apply(o.context,E)}else{var w=o.length,P;for(B=0;B<w;B++){o[B].once&&this.removeListener(t,o[B].fn,void 0,!0);switch(c){case 1:o[B].fn.call(o[B].context);break;case 2:o[B].fn.call(o[B].context,h);break;case 3:o[B].fn.call(o[B].context,h,s);break;case 4:o[B].fn.call(o[B].context,h,s,i);break;default:if(!E)for(P=1,E=new Array(c-1);P<c;P++)E[P-1]=arguments[P];o[B].fn.apply(o[B].context,E)}}}return!0},p.prototype.on=function(t,h,s){return x(this,t,h,s,!1)},p.prototype.once=function(t,h,s){return x(this,t,h,s,!0)},p.prototype.removeListener=function(t,h,s,i){var u=_?_+t:t;if(!this._events[u])return this;if(!h)return n(this,u),this;var d=this._events[u];if(d.fn)d.fn===h&&(!i||d.once)&&(!s||d.context===s)&&n(this,u);else{for(var f=0,o=[],c=d.length;f<c;f++)(d[f].fn!==h||i&&!d[f].once||s&&d[f].context!==s)&&o.push(d[f]);o.length?this._events[u]=o.length===1?o[0]:o:n(this,u)}return this},p.prototype.removeAllListeners=function(t){var h;return t?(h=_?_+t:t,this._events[h]&&n(this,h)):(this._events=new O,this._eventsCount=0),this},p.prototype.off=p.prototype.removeListener,p.prototype.addListener=p.prototype.on,p.prefixed=_,p.EventEmitter=p,Z.exports=p},"./node_modules/url-toolkit/src/url-toolkit.js":function(Z,K,I){(function(k){var _=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/?#]*\/)*[^;?#]*)?(;[^?#]*)?(\?[^#]*)?(#[^]*)?$/,O=/^([^\/?#]*)([^]*)$/,M=/(?:\/|^)\.(?=\/)/g,x=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,n={buildAbsoluteURL:function(p,a,t){if(t=t||{},p=p.trim(),a=a.trim(),!a){if(!t.alwaysNormalize)return p;var h=n.parseURL(p);if(!h)throw new Error("Error trying to parse base URL.");return h.path=n.normalizePath(h.path),n.buildURLFromParts(h)}var s=n.parseURL(a);if(!s)throw new Error("Error trying to parse relative URL.");if(s.scheme)return t.alwaysNormalize?(s.path=n.normalizePath(s.path),n.buildURLFromParts(s)):a;var i=n.parseURL(p);if(!i)throw new Error("Error trying to parse base URL.");if(!i.netLoc&&i.path&&i.path[0]!=="/"){var u=O.exec(i.path);i.netLoc=u[1],i.path=u[2]}i.netLoc&&!i.path&&(i.path="/");var d={scheme:i.scheme,netLoc:s.netLoc,path:null,params:s.params,query:s.query,fragment:s.fragment};if(!s.netLoc&&(d.netLoc=i.netLoc,s.path[0]!=="/"))if(!s.path)d.path=i.path,s.params||(d.params=i.params,s.query||(d.query=i.query));else{var f=i.path,o=f.substring(0,f.lastIndexOf("/")+1)+s.path;d.path=n.normalizePath(o)}return d.path===null&&(d.path=t.alwaysNormalize?n.normalizePath(s.path):s.path),n.buildURLFromParts(d)},parseURL:function(p){var a=_.exec(p);return a?{scheme:a[1]||"",netLoc:a[2]||"",path:a[3]||"",params:a[4]||"",query:a[5]||"",fragment:a[6]||""}:null},normalizePath:function(p){for(p=p.split("").reverse().join("").replace(M,"");p.length!==(p=p.replace(x,"")).length;);return p.split("").reverse().join("")},buildURLFromParts:function(p){return p.scheme+p.netLoc+p.path+p.params+p.query+p.fragment}};Z.exports=n})(this)},"./node_modules/webworkify-webpack/index.js":function(Z,K,I){function k(t){var h={};function s(u){if(h[u])return h[u].exports;var d=h[u]={i:u,l:!1,exports:{}};return t[u].call(d.exports,d,d.exports,s),d.l=!0,d.exports}s.m=t,s.c=h,s.i=function(u){return u},s.d=function(u,d,f){s.o(u,d)||Object.defineProperty(u,d,{configurable:!1,enumerable:!0,get:f})},s.r=function(u){Object.defineProperty(u,"__esModule",{value:!0})},s.n=function(u){var d=u&&u.__esModule?function(){return u.default}:function(){return u};return s.d(d,"a",d),d},s.o=function(u,d){return Object.prototype.hasOwnProperty.call(u,d)},s.p="/",s.oe=function(u){throw console.error(u),u};var i=s(s.s=ENTRY_MODULE);return i.default||i}var _="[\\.|\\-|\\+|\\w|/|@]+",O="\\(\\s*(/\\*.*?\\*/)?\\s*.*?("+_+").*?\\)";function M(t){return(t+"").replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}function x(t){return!isNaN(1*t)}function n(t,h,s){var i={};i[s]=[];var u=h.toString(),d=u.match(/^function\s?\w*\(\w+,\s*\w+,\s*(\w+)\)/);if(!d)return i;for(var f=d[1],o=new RegExp("(\\\\n|\\W)"+M(f)+O,"g"),c;c=o.exec(u);){if(c[3]==="dll-reference")continue;i[s].push(c[3])}for(o=new RegExp("\\("+M(f)+'\\("(dll-reference\\s('+_+'))"\\)\\)'+O,"g");c=o.exec(u);)t[c[2]]||(i[s].push(c[1]),t[c[2]]=I(c[1]).m),i[c[2]]=i[c[2]]||[],i[c[2]].push(c[4]);for(var E=Object.keys(i),B=0;B<E.length;B++)for(var w=0;w<i[E[B]].length;w++)x(i[E[B]][w])&&(i[E[B]][w]=1*i[E[B]][w]);return i}function p(t){var h=Object.keys(t);return h.reduce(function(s,i){return s||t[i].length>0},!1)}function a(t,h){for(var s={main:[h]},i={main:[]},u={main:{}};p(s);)for(var d=Object.keys(s),f=0;f<d.length;f++){var o=d[f],c=s[o],E=c.pop();if(u[o]=u[o]||{},u[o][E]||!t[o][E])continue;u[o][E]=!0,i[o]=i[o]||[],i[o].push(E);for(var B=n(t,t[o][E],o),w=Object.keys(B),P=0;P<w.length;P++)s[w[P]]=s[w[P]]||[],s[w[P]]=s[w[P]].concat(B[w[P]])}return i}Z.exports=function(t,h){h=h||{};var s={main:I.m},i=h.all?{main:Object.keys(s.main)}:a(s,t),u="";Object.keys(i).filter(function(E){return E!=="main"}).forEach(function(E){for(var B=0;i[E][B];)B++;i[E].push(B),s[E][B]="(function(module, exports, __webpack_require__) { module.exports = __webpack_require__; })",u=u+"var "+E+" = ("+k.toString().replace("ENTRY_MODULE",JSON.stringify(B))+")({"+i[E].map(function(w){return""+JSON.stringify(w)+": "+s[E][w].toString()}).join(",")+`});
|
|
`}),u=u+"new (("+k.toString().replace("ENTRY_MODULE",JSON.stringify(t))+")({"+i.main.map(function(E){return""+JSON.stringify(E)+": "+s.main[E].toString()}).join(",")+"}))(self);";var d=new window.Blob([u],{type:"text/javascript"});if(h.bare)return d;var f=window.URL||window.webkitURL||window.mozURL||window.msURL,o=f.createObjectURL(d),c=new window.Worker(o);return c.objectURL=o,c}},"./src/config.ts":function(Z,K,I){"use strict";I.r(K),I.d(K,"hlsDefaultConfig",function(){return P}),I.d(K,"mergeConfig",function(){return b}),I.d(K,"enableStreamingMode",function(){return l});var k=I("./src/controller/abr-controller.ts"),_=I("./src/controller/audio-stream-controller.ts"),O=I("./src/controller/audio-track-controller.ts"),M=I("./src/controller/subtitle-stream-controller.ts"),x=I("./src/controller/subtitle-track-controller.ts"),n=I("./src/controller/buffer-controller.ts"),p=I("./src/controller/timeline-controller.ts"),a=I("./src/controller/cap-level-controller.ts"),t=I("./src/controller/fps-controller.ts"),h=I("./src/controller/eme-controller.ts"),s=I("./src/controller/cmcd-controller.ts"),i=I("./src/utils/xhr-loader.ts"),u=I("./src/utils/fetch-loader.ts"),d=I("./src/utils/cues.ts"),f=I("./src/utils/mediakeys-helper.ts"),o=I("./src/utils/logger.ts");function c(){return c=Object.assign||function(A){for(var g=1;g<arguments.length;g++){var T=arguments[g];for(var m in T)Object.prototype.hasOwnProperty.call(T,m)&&(A[m]=T[m])}return A},c.apply(this,arguments)}function E(A,g){var T=Object.keys(A);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(A);g&&(m=m.filter(function(y){return Object.getOwnPropertyDescriptor(A,y).enumerable})),T.push.apply(T,m)}return T}function B(A){for(var g=1;g<arguments.length;g++){var T=arguments[g]!=null?arguments[g]:{};g%2?E(Object(T),!0).forEach(function(m){w(A,m,T[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(T)):E(Object(T)).forEach(function(m){Object.defineProperty(A,m,Object.getOwnPropertyDescriptor(T,m))})}return A}function w(A,g,T){return g in A?Object.defineProperty(A,g,{value:T,enumerable:!0,configurable:!0,writable:!0}):A[g]=T,A}var P=B(B({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:i.default,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:k.default,bufferController:n.default,capLevelController:a.default,fpsController:t.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:f.requestMediaKeySystemAccess,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0},C()),{},{subtitleStreamController:M.SubtitleStreamController,subtitleTrackController:x.default,timelineController:p.TimelineController,audioStreamController:_.default,audioTrackController:O.default,emeController:h.default,cmcdController:s.default});function C(){return{cueHandler:d.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 b(A,g){if((g.liveSyncDurationCount||g.liveMaxLatencyDurationCount)&&(g.liveSyncDuration||g.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(g.liveMaxLatencyDurationCount!==void 0&&(g.liveSyncDurationCount===void 0||g.liveMaxLatencyDurationCount<=g.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(g.liveMaxLatencyDuration!==void 0&&(g.liveSyncDuration===void 0||g.liveMaxLatencyDuration<=g.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');return c({},A,g)}function l(A){var g=A.loader;if(g!==u.default&&g!==i.default)o.logger.log("[config]: Custom loader detected, cannot enable progressive streaming"),A.progressive=!1;else{var T=Object(u.fetchSupported)();T&&(A.loader=u.default,A.progressive=!0,A.enableSoftwareAES=!0,o.logger.log("[config]: Progressive streaming enabled, using FetchLoader"))}}},"./src/controller/abr-controller.ts":function(Z,K,I){"use strict";I.r(K);var k=I("./src/polyfills/number.ts"),_=I("./src/utils/ewma-bandwidth-estimator.ts"),O=I("./src/events.ts"),M=I("./src/utils/buffer-helper.ts"),x=I("./src/errors.ts"),n=I("./src/types/loader.ts"),p=I("./src/utils/logger.ts");function a(s,i){for(var u=0;u<i.length;u++){var d=i[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(s,d.key,d)}}function t(s,i,u){return i&&a(s.prototype,i),u&&a(s,u),s}var h=function(){function s(u){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=u;var d=u.config;this.bwEstimator=new _.default(d.abrEwmaSlowVoD,d.abrEwmaFastVoD,d.abrEwmaDefaultEstimate),this.registerListeners()}var i=s.prototype;return i.registerListeners=function(){var d=this.hls;d.on(O.Events.FRAG_LOADING,this.onFragLoading,this),d.on(O.Events.FRAG_LOADED,this.onFragLoaded,this),d.on(O.Events.FRAG_BUFFERED,this.onFragBuffered,this),d.on(O.Events.LEVEL_LOADED,this.onLevelLoaded,this),d.on(O.Events.ERROR,this.onError,this)},i.unregisterListeners=function(){var d=this.hls;d.off(O.Events.FRAG_LOADING,this.onFragLoading,this),d.off(O.Events.FRAG_LOADED,this.onFragLoaded,this),d.off(O.Events.FRAG_BUFFERED,this.onFragBuffered,this),d.off(O.Events.LEVEL_LOADED,this.onLevelLoaded,this),d.off(O.Events.ERROR,this.onError,this)},i.destroy=function(){this.unregisterListeners(),this.clearTimer(),this.hls=this.onCheck=null,this.fragCurrent=this.partCurrent=null},i.onFragLoading=function(d,f){var o=f.frag;if(o.type===n.PlaylistLevelType.MAIN&&!this.timer){var c;this.fragCurrent=o,this.partCurrent=(c=f.part)!=null?c:null,this.timer=self.setInterval(this.onCheck,100)}},i.onLevelLoaded=function(d,f){var o=this.hls.config;f.details.live?this.bwEstimator.update(o.abrEwmaSlowLive,o.abrEwmaFastLive):this.bwEstimator.update(o.abrEwmaSlowVoD,o.abrEwmaFastVoD)},i._abandonRulesCheck=function(){var d=this.fragCurrent,f=this.partCurrent,o=this.hls,c=o.autoLevelEnabled,E=o.config,B=o.media;if(!d||!B)return;var w=f?f.stats:d.stats,P=f?f.duration:d.duration;if(w.aborted){p.logger.warn("frag loader destroy or aborted, disarm abandonRules"),this.clearTimer(),this._nextAutoLevel=-1;return}if(!c||B.paused||!B.playbackRate||!B.readyState)return;var C=performance.now()-w.loading.start,b=Math.abs(B.playbackRate);if(C<=500*P/b)return;var l=o.levels,A=o.minAutoLevel,g=l[d.level],T=w.total||Math.max(w.loaded,Math.round(P*g.maxBitrate/8)),m=Math.max(1,w.bwEstimate?w.bwEstimate/8:w.loaded*1e3/C),y=(T-w.loaded)/m,U=B.currentTime,N=(M.BufferHelper.bufferInfo(B,U,E.maxBufferHole).end-U)/b;if(N>=2*P/b||y<=N)return;var S=Number.POSITIVE_INFINITY,H;for(H=d.level-1;H>A;H--){var F=l[H].maxBitrate;if(S=P*F/(8*.8*m),S<N)break}if(S>=y)return;var R=this.bwEstimator.getEstimate();p.logger.warn("Fragment "+d.sn+(f?" part "+f.index:"")+" of level "+d.level+" is loading too slowly and will cause an underbuffer; aborting and switching to level "+H+`
|
|
Current BW estimate: `+(Object(k.isFiniteNumber)(R)?(R/1024).toFixed(3):"Unknown")+` Kb/s
|
|
Estimated load time for current fragment: `+y.toFixed(3)+` s
|
|
Estimated load time for the next fragment: `+S.toFixed(3)+` s
|
|
Time to underbuffer: `+N.toFixed(3)+" s"),o.nextLoadLevel=H,this.bwEstimator.sample(C,w.loaded),this.clearTimer(),d.loader&&(this.fragCurrent=this.partCurrent=null,d.loader.abort()),o.trigger(O.Events.FRAG_LOAD_EMERGENCY_ABORTED,{frag:d,part:f,stats:w})},i.onFragLoaded=function(d,f){var o=f.frag,c=f.part;if(o.type===n.PlaylistLevelType.MAIN&&Object(k.isFiniteNumber)(o.sn)){var E=c?c.stats:o.stats,B=c?c.duration:o.duration;if(this.clearTimer(),this.lastLoadedFragLevel=o.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var w=this.hls.levels[o.level],P=(w.loaded?w.loaded.bytes:0)+E.loaded,C=(w.loaded?w.loaded.duration:0)+B;w.loaded={bytes:P,duration:C},w.realBitrate=Math.round(8*P/C)}if(o.bitrateTest){var b={stats:E,frag:o,part:c,id:o.type};this.onFragBuffered(O.Events.FRAG_BUFFERED,b),o.bitrateTest=!1}}},i.onFragBuffered=function(d,f){var o=f.frag,c=f.part,E=c?c.stats:o.stats;if(E.aborted)return;if(o.type!==n.PlaylistLevelType.MAIN||o.sn==="initSegment")return;var B=E.parsing.end-E.loading.start;this.bwEstimator.sample(B,E.loaded),E.bwEstimate=this.bwEstimator.getEstimate(),o.bitrateTest?this.bitrateTestDelay=B/1e3:this.bitrateTestDelay=0},i.onError=function(d,f){switch(f.details){case x.ErrorDetails.FRAG_LOAD_ERROR:case x.ErrorDetails.FRAG_LOAD_TIMEOUT:this.clearTimer();break;default:break}},i.clearTimer=function(){self.clearInterval(this.timer),this.timer=void 0},i.getNextABRAutoLevel=function(){var d=this.fragCurrent,f=this.partCurrent,o=this.hls,c=o.maxAutoLevel,E=o.config,B=o.minAutoLevel,w=o.media,P=f?f.duration:d?d.duration:0,C=w?w.currentTime:0,b=w&&w.playbackRate!==0?Math.abs(w.playbackRate):1,l=this.bwEstimator?this.bwEstimator.getEstimate():E.abrEwmaDefaultEstimate,A=(M.BufferHelper.bufferInfo(w,C,E.maxBufferHole).end-C)/b,g=this.findBestLevel(l,B,c,A,E.abrBandWidthFactor,E.abrBandWidthUpFactor);if(g>=0)return g;p.logger.trace((A?"rebuffering expected":"buffer is empty")+", finding optimal quality level");var T=P?Math.min(P,E.maxStarvationDelay):E.maxStarvationDelay,m=E.abrBandWidthFactor,y=E.abrBandWidthUpFactor;if(!A){var U=this.bitrateTestDelay;if(U){var N=P?Math.min(P,E.maxLoadingDelay):E.maxLoadingDelay;T=N-U,p.logger.trace("bitrate test took "+Math.round(1e3*U)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*T)+" ms"),m=y=1}}return g=this.findBestLevel(l,B,c,A+T,m,y),Math.max(g,0)},i.findBestLevel=function(d,f,o,c,E,B){for(var w,P=this.fragCurrent,C=this.partCurrent,b=this.lastLoadedFragLevel,l=this.hls.levels,A=l[b],g=!!(A!=null&&(w=A.details)!==null&&w!==void 0&&w.live),T=A==null?void 0:A.codecSet,m=C?C.duration:P?P.duration:0,y=o;y>=f;y--){var U=l[y];if(!U||T&&U.codecSet!==T)continue;var N=U.details,S=(C?N==null?void 0:N.partTarget:N==null?void 0:N.averagetargetduration)||m,H=void 0;y<=b?H=E*d:H=B*d;var F=l[y].maxBitrate,R=F*S/H;if(p.logger.trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: "+y+"/"+Math.round(H)+"/"+F+"/"+S+"/"+c+"/"+R),H>F&&(!R||g&&!this.bitrateTestDelay||R<c))return y}return-1},t(s,[{key:"nextAutoLevel",get:function(){var d=this._nextAutoLevel,f=this.bwEstimator;if(d!==-1&&(!f||!f.canEstimate()))return d;var o=this.getNextABRAutoLevel();return d!==-1&&(o=Math.min(d,o)),o},set:function(d){this._nextAutoLevel=d}}]),s}();K.default=h},"./src/controller/audio-stream-controller.ts":function(Z,K,I){"use strict";I.r(K);var k=I("./src/polyfills/number.ts"),_=I("./src/controller/base-stream-controller.ts"),O=I("./src/events.ts"),M=I("./src/utils/buffer-helper.ts"),x=I("./src/controller/fragment-tracker.ts"),n=I("./src/types/level.ts"),p=I("./src/types/loader.ts"),a=I("./src/loader/fragment.ts"),t=I("./src/demux/chunk-cache.ts"),h=I("./src/demux/transmuxer-interface.ts"),s=I("./src/types/transmuxer.ts"),i=I("./src/controller/fragment-finders.ts"),u=I("./src/utils/discontinuities.ts"),d=I("./src/errors.ts"),f=I("./src/utils/logger.ts");function o(){return o=Object.assign||function(P){for(var C=1;C<arguments.length;C++){var b=arguments[C];for(var l in b)Object.prototype.hasOwnProperty.call(b,l)&&(P[l]=b[l])}return P},o.apply(this,arguments)}function c(P,C){P.prototype=Object.create(C.prototype),P.prototype.constructor=P,E(P,C)}function E(P,C){return E=Object.setPrototypeOf||function(l,A){return l.__proto__=A,l},E(P,C)}var B=100,w=function(P){c(C,P);function C(l,A){var g;return g=P.call(this,l,A,"[audio-stream-controller]")||this,g.videoBuffer=null,g.videoTrackCC=-1,g.waitingVideoCC=-1,g.audioSwitch=!1,g.trackId=-1,g.waitingData=null,g.mainDetails=null,g.bufferFlushed=!1,g._registerListeners(),g}var b=C.prototype;return b.onHandlerDestroying=function(){this._unregisterListeners(),this.mainDetails=null},b._registerListeners=function(){var A=this.hls;A.on(O.Events.MEDIA_ATTACHED,this.onMediaAttached,this),A.on(O.Events.MEDIA_DETACHING,this.onMediaDetaching,this),A.on(O.Events.MANIFEST_LOADING,this.onManifestLoading,this),A.on(O.Events.LEVEL_LOADED,this.onLevelLoaded,this),A.on(O.Events.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),A.on(O.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),A.on(O.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),A.on(O.Events.ERROR,this.onError,this),A.on(O.Events.BUFFER_RESET,this.onBufferReset,this),A.on(O.Events.BUFFER_CREATED,this.onBufferCreated,this),A.on(O.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),A.on(O.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),A.on(O.Events.FRAG_BUFFERED,this.onFragBuffered,this)},b._unregisterListeners=function(){var A=this.hls;A.off(O.Events.MEDIA_ATTACHED,this.onMediaAttached,this),A.off(O.Events.MEDIA_DETACHING,this.onMediaDetaching,this),A.off(O.Events.MANIFEST_LOADING,this.onManifestLoading,this),A.off(O.Events.LEVEL_LOADED,this.onLevelLoaded,this),A.off(O.Events.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),A.off(O.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),A.off(O.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),A.off(O.Events.ERROR,this.onError,this),A.off(O.Events.BUFFER_RESET,this.onBufferReset,this),A.off(O.Events.BUFFER_CREATED,this.onBufferCreated,this),A.off(O.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),A.off(O.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),A.off(O.Events.FRAG_BUFFERED,this.onFragBuffered,this)},b.onInitPtsFound=function(A,g){var T=g.frag,m=g.id,y=g.initPTS;if(m==="main"){var U=T.cc;this.initPTS[T.cc]=y,this.log("InitPTS for cc: "+U+" found from main: "+y),this.videoTrackCC=U,this.state===_.State.WAITING_INIT_PTS&&this.tick()}},b.startLoad=function(A){if(!this.levels){this.startPosition=A,this.state=_.State.STOPPED;return}var g=this.lastCurrentTime;this.stopLoad(),this.setInterval(B),this.fragLoadError=0,g>0&&A===-1?(this.log("Override startPosition with lastCurrentTime @"+g.toFixed(3)),this.state=_.State.IDLE):(this.loadedmetadata=!1,this.state=_.State.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=A,this.tick()},b.doTick=function(){switch(this.state){case _.State.IDLE:this.doTickIdle();break;case _.State.WAITING_TRACK:{var A,g=this.levels,T=this.trackId,m=g==null||((A=g[T])===null||A===void 0)?void 0:A.details;if(m){if(this.waitForCdnTuneIn(m))break;this.state=_.State.WAITING_INIT_PTS}break}case _.State.FRAG_LOADING_WAITING_RETRY:{var y,U=performance.now(),N=this.retryDate;(!N||U>=N||(y=this.media)!==null&&y!==void 0&&y.seeking)&&(this.log("RetryDate reached, switch back to IDLE state"),this.state=_.State.IDLE);break}case _.State.WAITING_INIT_PTS:{var S=this.waitingData;if(S){var H=S.frag,F=S.part,R=S.cache,z=S.complete;if(this.initPTS[H.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=_.State.FRAG_LOADING;var Q=R.flush(),$={frag:H,part:F,payload:Q,networkDetails:null};this._handleFragmentLoadProgress($),z&&P.prototype._handleFragmentLoadComplete.call(this,$)}else if(this.videoTrackCC!==this.waitingVideoCC)f.logger.log("Waiting fragment cc ("+H.cc+") cancelled because video is at cc "+this.videoTrackCC),this.clearWaitingFragment();else{var ee=this.getLoadPosition(),fe=M.BufferHelper.bufferInfo(this.mediaBuffer,ee,this.config.maxBufferHole),Ae=Object(i.fragmentWithinToleranceTest)(fe.end,this.config.maxFragLookUpTolerance,H);Ae<0&&(f.logger.log("Waiting fragment cc ("+H.cc+") @ "+H.start+" cancelled because another fragment at "+fe.end+" is needed"),this.clearWaitingFragment())}}else this.state=_.State.IDLE}}this.onTickEnd()},b.clearWaitingFragment=function(){var A=this.waitingData;A&&(this.fragmentTracker.removeFragment(A.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=_.State.IDLE)},b.onTickEnd=function(){var A=this.media;if(!A||!A.readyState)return;var g=this.mediaBuffer?this.mediaBuffer:A,T=g.buffered;!this.loadedmetadata&&T.length&&(this.loadedmetadata=!0),this.lastCurrentTime=A.currentTime},b.doTickIdle=function(){var A,g,T=this.hls,m=this.levels,y=this.media,U=this.trackId,N=T.config;if(!m||!m[U])return;if(!y&&(this.startFragRequested||!N.startFragPrefetch))return;var S=m[U],H=S.details;if(!H||H.live&&this.levelLastLoaded!==U||this.waitForCdnTuneIn(H)){this.state=_.State.WAITING_TRACK;return}this.bufferFlushed&&(this.bufferFlushed=!1,this.afterBufferFlushed(this.mediaBuffer?this.mediaBuffer:this.media,a.ElementaryStreamTypes.AUDIO,p.PlaylistLevelType.AUDIO));var F=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,p.PlaylistLevelType.AUDIO);if(F===null)return;var R=F.len,z=this.getMaxBufferLength(),Q=this.audioSwitch;if(R>=z&&!Q)return;if(!Q&&this._streamEnded(F,H)){T.trigger(O.Events.BUFFER_EOS,{type:"audio"}),this.state=_.State.ENDED;return}var $=H.fragments,ee=$[0].start,fe=F.end;if(Q){var Ae=this.getLoadPosition();fe=Ae,H.PTSKnown&&Ae<ee&&((F.end>ee||F.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),y.currentTime=ee+.05))}var ce=this.getNextFragment(fe,H);if(!ce){this.bufferFlushed=!0;return}((A=ce.decryptdata)===null||A===void 0?void 0:A.keyFormat)==="identity"&&!((g=ce.decryptdata)!==null&&g!==void 0&&g.key)?this.loadKey(ce,H):this.loadFragment(ce,H,fe)},b.getMaxBufferLength=function(){var A=P.prototype.getMaxBufferLength.call(this),g=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,p.PlaylistLevelType.MAIN);return g===null?A:Math.max(A,g.len)},b.onMediaDetaching=function(){this.videoBuffer=null,P.prototype.onMediaDetaching.call(this)},b.onAudioTracksUpdated=function(A,g){var T=g.audioTracks;this.resetTransmuxer(),this.levels=T.map(function(m){return new n.Level(m)})},b.onAudioTrackSwitching=function(A,g){var T=!!g.url;this.trackId=g.id;var m=this.fragCurrent;m!=null&&m.loader&&m.loader.abort(),this.fragCurrent=null,this.clearWaitingFragment(),T?this.setInterval(B):this.resetTransmuxer(),T?(this.audioSwitch=!0,this.state=_.State.IDLE):this.state=_.State.STOPPED,this.tick()},b.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=!1},b.onLevelLoaded=function(A,g){this.mainDetails=g.details},b.onAudioTrackLoaded=function(A,g){var T,m=this.levels,y=g.details,U=g.id;if(!m){this.warn("Audio tracks were reset while loading level "+U);return}this.log("Track "+U+" loaded ["+y.startSN+","+y.endSN+"],duration:"+y.totalduration);var N=m[U],S=0;if(y.live||(T=N.details)!==null&&T!==void 0&&T.live){var H=this.mainDetails;if(y.fragments[0]||(y.deltaUpdateFailed=!0),y.deltaUpdateFailed||!H)return;!N.details&&y.hasProgramDateTime&&H.hasProgramDateTime?(Object(u.alignMediaPlaylistByPDT)(y,H),S=y.fragments[0].start):S=this.alignPlaylists(y,N.details)}N.details=y,this.levelLastLoaded=U,!this.startFragRequested&&(this.mainDetails||!y.live)&&this.setStartPosition(N.details,S),this.state===_.State.WAITING_TRACK&&!this.waitForCdnTuneIn(y)&&(this.state=_.State.IDLE),this.tick()},b._handleFragmentLoadProgress=function(A){var g,T=A.frag,m=A.part,y=A.payload,U=this.config,N=this.trackId,S=this.levels;if(!S){this.warn("Audio tracks were reset while fragment load was in progress. Fragment "+T.sn+" of level "+T.level+" will not be buffered");return}var H=S[N];console.assert(H,"Audio track is defined on fragment load progress");var F=H.details;console.assert(F,"Audio track details are defined on fragment load progress");var R=U.defaultAudioCodec||H.audioCodec||"mp4a.40.2",z=this.transmuxer;z||(z=this.transmuxer=new h.default(this.hls,p.PlaylistLevelType.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));var Q=this.initPTS[T.cc],$=(g=T.initSegment)===null||g===void 0?void 0:g.data;if(Q!==void 0){var ee=!1,fe=m?m.index:-1,Ae=fe!==-1,ce=new s.ChunkMetadata(T.level,T.sn,T.stats.chunkCount,y.byteLength,fe,Ae);z.push(y,$,R,"",T,m,F.totalduration,ee,ce,Q)}else{f.logger.log("Unknown video PTS for cc "+T.cc+", waiting for video PTS before demuxing audio frag "+T.sn+" of ["+F.startSN+" ,"+F.endSN+"],track "+N);var ie=this.waitingData=this.waitingData||{frag:T,part:m,cache:new t.default,complete:!1},be=ie.cache;be.push(new Uint8Array(y)),this.waitingVideoCC=this.videoTrackCC,this.state=_.State.WAITING_INIT_PTS}},b._handleFragmentLoadComplete=function(A){if(this.waitingData){this.waitingData.complete=!0;return}P.prototype._handleFragmentLoadComplete.call(this,A)},b.onBufferReset=function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1},b.onBufferCreated=function(A,g){var T=g.tracks.audio;T&&(this.mediaBuffer=T.buffer),g.tracks.video&&(this.videoBuffer=g.tracks.video.buffer)},b.onFragBuffered=function(A,g){var T=g.frag,m=g.part;if(T.type!==p.PlaylistLevelType.AUDIO)return;if(this.fragContextChanged(T)){this.warn("Fragment "+T.sn+(m?" p: "+m.index:"")+" of level "+T.level+" finished buffering, but was aborted. state: "+this.state+", audioSwitch: "+this.audioSwitch);return}T.sn!=="initSegment"&&(this.fragPrevious=T,this.audioSwitch&&(this.audioSwitch=!1,this.hls.trigger(O.Events.AUDIO_TRACK_SWITCHED,{id:this.trackId}))),this.fragBufferedComplete(T,m)},b.onError=function(A,g){switch(g.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(p.PlaylistLevelType.AUDIO,g);break;case d.ErrorDetails.AUDIO_TRACK_LOAD_ERROR:case d.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:this.state!==_.State.ERROR&&this.state!==_.State.STOPPED&&(this.state=g.fatal?_.State.ERROR:_.State.IDLE,this.warn(g.details+" while loading frag, switching to "+this.state+" state"));break;case d.ErrorDetails.BUFFER_FULL_ERROR:if(g.parent==="audio"&&(this.state===_.State.PARSING||this.state===_.State.PARSED)){var T=!0,m=this.getFwdBufferInfo(this.mediaBuffer,p.PlaylistLevelType.AUDIO);m&&m.len>.5&&(T=!this.reduceMaxBufferLength(m.len)),T&&(this.warn("Buffer full error also media.currentTime is not buffered, flush audio buffer"),this.fragCurrent=null,P.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.resetLoadingState()}break;default:break}},b.onBufferFlushed=function(A,g){var T=g.type;T===a.ElementaryStreamTypes.AUDIO&&(this.bufferFlushed=!0)},b._handleTransmuxComplete=function(A){var g,T="audio",m=this.hls,y=A.remuxResult,U=A.chunkMeta,N=this.getCurrentContext(U);if(!N){this.warn("The loading context changed while buffering fragment "+U.sn+" of level "+U.level+". This chunk will not be buffered."),this.resetLiveStartWhenNotLoaded(U.level);return}var S=N.frag,H=N.part,F=y.audio,R=y.text,z=y.id3,Q=y.initSegment;if(this.fragContextChanged(S))return;if(this.state=_.State.PARSING,this.audioSwitch&&F&&this.completeAudioSwitch(),Q!=null&&Q.tracks&&(this._bufferInitSegment(Q.tracks,S,U),m.trigger(O.Events.FRAG_PARSING_INIT_SEGMENT,{frag:S,id:T,tracks:Q.tracks})),F){var $=F.startPTS,ee=F.endPTS,fe=F.startDTS,Ae=F.endDTS;H&&(H.elementaryStreams[a.ElementaryStreamTypes.AUDIO]={startPTS:$,endPTS:ee,startDTS:fe,endDTS:Ae}),S.setElementaryStreamInfo(a.ElementaryStreamTypes.AUDIO,$,ee,fe,Ae),this.bufferFragmentData(F,S,H,U)}if(z!=null&&(g=z.samples)!==null&&g!==void 0&&g.length){var ce=o({frag:S,id:T},z);m.trigger(O.Events.FRAG_PARSING_METADATA,ce)}if(R){var ie=o({frag:S,id:T},R);m.trigger(O.Events.FRAG_PARSING_USERDATA,ie)}},b._bufferInitSegment=function(A,g,T){if(this.state!==_.State.PARSING)return;A.video&&delete A.video;var m=A.audio;if(!m)return;m.levelCodec=m.codec,m.id="audio",this.log("Init audio buffer, container:"+m.container+", codecs[parsed]=["+m.codec+"]"),this.hls.trigger(O.Events.BUFFER_CODECS,A);var y=m.initSegment;if(y!=null&&y.byteLength){var U={type:"audio",frag:g,part:null,chunkMeta:T,parent:g.type,data:y};this.hls.trigger(O.Events.BUFFER_APPENDING,U)}this.tick()},b.loadFragment=function(A,g,T){var m=this.fragmentTracker.getState(A);this.fragCurrent=A,(this.audioSwitch||m===x.FragmentState.NOT_LOADED||m===x.FragmentState.PARTIAL)&&(A.sn==="initSegment"?this._loadInitSegment(A):g.live&&!Object(k.isFiniteNumber)(this.initPTS[A.cc])?(this.log("Waiting for video PTS in continuity counter "+A.cc+" of live stream before loading audio fragment "+A.sn+" of level "+this.trackId),this.state=_.State.WAITING_INIT_PTS):(this.startFragRequested=!0,P.prototype.loadFragment.call(this,A,g,T)))},b.completeAudioSwitch=function(){var A=this.hls,g=this.media,T=this.trackId;g&&(this.log("Switching audio track : flushing all audio"),P.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.audioSwitch=!1,A.trigger(O.Events.AUDIO_TRACK_SWITCHED,{id:T})},C}(_.default);K.default=w},"./src/controller/audio-track-controller.ts":function(Z,K,I){"use strict";I.r(K);var k=I("./src/events.ts"),_=I("./src/errors.ts"),O=I("./src/controller/base-playlist-controller.ts"),M=I("./src/types/loader.ts");function x(h,s){for(var i=0;i<s.length;i++){var u=s[i];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(h,u.key,u)}}function n(h,s,i){return s&&x(h.prototype,s),i&&x(h,i),h}function p(h,s){h.prototype=Object.create(s.prototype),h.prototype.constructor=h,a(h,s)}function a(h,s){return a=Object.setPrototypeOf||function(u,d){return u.__proto__=d,u},a(h,s)}var t=function(h){p(s,h);function s(u){var d;return d=h.call(this,u,"[audio-track-controller]")||this,d.tracks=[],d.groupId=null,d.tracksInGroup=[],d.trackId=-1,d.trackName="",d.selectDefaultTrack=!0,d.registerListeners(),d}var i=s.prototype;return i.registerListeners=function(){var d=this.hls;d.on(k.Events.MANIFEST_LOADING,this.onManifestLoading,this),d.on(k.Events.MANIFEST_PARSED,this.onManifestParsed,this),d.on(k.Events.LEVEL_LOADING,this.onLevelLoading,this),d.on(k.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),d.on(k.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),d.on(k.Events.ERROR,this.onError,this)},i.unregisterListeners=function(){var d=this.hls;d.off(k.Events.MANIFEST_LOADING,this.onManifestLoading,this),d.off(k.Events.MANIFEST_PARSED,this.onManifestParsed,this),d.off(k.Events.LEVEL_LOADING,this.onLevelLoading,this),d.off(k.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),d.off(k.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),d.off(k.Events.ERROR,this.onError,this)},i.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,h.prototype.destroy.call(this)},i.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.trackName="",this.selectDefaultTrack=!0},i.onManifestParsed=function(d,f){this.tracks=f.audioTracks||[]},i.onAudioTrackLoaded=function(d,f){var o=f.id,c=f.details,E=this.tracksInGroup[o];if(!E){this.warn("Invalid audio track id "+o);return}var B=E.details;E.details=f.details,this.log("audioTrack "+o+" loaded ["+c.startSN+"-"+c.endSN+"]"),o===this.trackId&&(this.retryCount=0,this.playlistLoaded(o,f,B))},i.onLevelLoading=function(d,f){this.switchLevel(f.level)},i.onLevelSwitching=function(d,f){this.switchLevel(f.level)},i.switchLevel=function(d){var f=this.hls.levels[d];if(!(f!=null&&f.audioGroupIds))return;var o=f.audioGroupIds[f.urlId];if(this.groupId!==o){this.groupId=o;var c=this.tracks.filter(function(B){return!o||B.groupId===o});this.selectDefaultTrack&&!c.some(function(B){return B.default})&&(this.selectDefaultTrack=!1),this.tracksInGroup=c;var E={audioTracks:c};this.log("Updating audio tracks, "+c.length+' track(s) found in "'+o+'" group-id'),this.hls.trigger(k.Events.AUDIO_TRACKS_UPDATED,E),this.selectInitialTrack()}},i.onError=function(d,f){if(h.prototype.onError.call(this,d,f),f.fatal||!f.context)return;f.context.type===M.PlaylistContextType.AUDIO_TRACK&&f.context.id===this.trackId&&f.context.groupId===this.groupId&&this.retryLoadingOrFail(f)},i.setAudioTrack=function(d){var f=this.tracksInGroup;if(d<0||d>=f.length){this.warn("Invalid id passed to audio-track controller");return}this.clearTimer();var o=f[this.trackId];this.log("Now switching to audio-track index "+d);var c=f[d],E=c.id,B=c.groupId,w=B===void 0?"":B,P=c.name,C=c.type,b=c.url;if(this.trackId=d,this.trackName=P,this.selectDefaultTrack=!1,this.hls.trigger(k.Events.AUDIO_TRACK_SWITCHING,{id:E,groupId:w,name:P,type:C,url:b}),c.details&&!c.details.live)return;var l=this.switchParams(c.url,o==null?void 0:o.details);this.loadPlaylist(l)},i.selectInitialTrack=function(){var d=this.tracksInGroup;console.assert(d.length,"Initial audio track should be selected when tracks are known");var f=this.trackName,o=this.findTrackId(f)||this.findTrackId();o!==-1?this.setAudioTrack(o):(this.warn("No track found for running audio group-ID: "+this.groupId),this.hls.trigger(k.Events.ERROR,{type:_.ErrorTypes.MEDIA_ERROR,details:_.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,fatal:!0}))},i.findTrackId=function(d){for(var f=this.tracksInGroup,o=0;o<f.length;o++){var c=f[o];if((!this.selectDefaultTrack||c.default)&&(!d||d===c.name))return c.id}return-1},i.loadPlaylist=function(d){var f=this.tracksInGroup[this.trackId];if(this.shouldLoadTrack(f)){var o=f.id,c=f.groupId,E=f.url;if(d)try{E=d.addDirectives(E)}catch(B){this.warn("Could not construct new URL with HLS Delivery Directives: "+B)}this.log("loading audio-track playlist for id: "+o),this.clearTimer(),this.hls.trigger(k.Events.AUDIO_TRACK_LOADING,{url:E,id:o,groupId:c,deliveryDirectives:d||null})}},n(s,[{key:"audioTracks",get:function(){return this.tracksInGroup}},{key:"audioTrack",get:function(){return this.trackId},set:function(d){this.selectDefaultTrack=!1,this.setAudioTrack(d)}}]),s}(O.default);K.default=t},"./src/controller/base-playlist-controller.ts":function(Z,K,I){"use strict";I.r(K),I.d(K,"default",function(){return n});var k=I("./src/polyfills/number.ts"),_=I("./src/types/level.ts"),O=I("./src/controller/level-helper.ts"),M=I("./src/utils/logger.ts"),x=I("./src/errors.ts"),n=function(){function p(t,h){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,h+":"),this.warn=M.logger.warn.bind(M.logger,h+":"),this.hls=t}var a=p.prototype;return a.destroy=function(){this.clearTimer(),this.hls=this.log=this.warn=null},a.onError=function(h,s){s.fatal&&s.type===x.ErrorTypes.NETWORK_ERROR&&this.clearTimer()},a.clearTimer=function(){clearTimeout(this.timer),this.timer=-1},a.startLoad=function(){this.canLoad=!0,this.retryCount=0,this.loadPlaylist()},a.stopLoad=function(){this.canLoad=!1,this.clearTimer()},a.switchParams=function(h,s){var i=s==null?void 0:s.renditionReports;if(i)for(var u=0;u<i.length;u++){var d=i[u],f=""+d.URI;if(f===h.substr(-f.length)){var o=parseInt(d["LAST-MSN"]),c=parseInt(d["LAST-PART"]);if(s&&this.hls.config.lowLatencyMode){var E=Math.min(s.age-s.partTarget,s.targetduration);c!==void 0&&E>s.partTarget&&(c+=1)}if(Object(k.isFiniteNumber)(o))return new _.HlsUrlParameters(o,Object(k.isFiniteNumber)(c)?c:void 0,_.HlsSkip.No)}}},a.loadPlaylist=function(h){},a.shouldLoadTrack=function(h){return this.canLoad&&h&&!!h.url&&(!h.details||h.details.live)},a.playlistLoaded=function(h,s,i){var u=this,d=s.details,f=s.stats,o=f.loading.end?Math.max(0,self.performance.now()-f.loading.end):0;if(d.advancedDateTime=Date.now()-o,d.live||i!=null&&i.live){if(d.reloaded(i),i&&this.log("live playlist "+h+" "+(d.advanced?"REFRESHED "+d.lastPartSn+"-"+d.lastPartIndex:"MISSED")),i&&d.fragments.length>0&&Object(O.mergeDetails)(i,d),!this.canLoad||!d.live)return;var c,E=void 0,B=void 0;if(d.canBlockReload&&d.endSN&&d.advanced){var w=this.hls.config.lowLatencyMode,P=d.lastPartSn,C=d.endSN,b=d.lastPartIndex,l=b!==-1,A=P===C,g=w?0:b;l?(E=A?C+1:P,B=A?g:b+1):E=C+1;var T=d.age,m=T+d.ageHeader,y=Math.min(m-d.partTarget,d.targetduration*1.5);if(y>0){if(i&&y>i.tuneInGoal)this.warn("CDN Tune-in goal increased from: "+i.tuneInGoal+" to: "+y+" with playlist age: "+d.age),y=0;else{var U=Math.floor(y/d.targetduration);if(E+=U,B!==void 0){var N=Math.round(y%d.targetduration/d.partTarget);B+=N}this.log("CDN Tune-in age: "+d.ageHeader+"s last advanced "+T.toFixed(2)+"s goal: "+y+" skip sn "+U+" to part "+B)}d.tuneInGoal=y}if(c=this.getDeliveryDirectives(d,s.deliveryDirectives,E,B),w||!A){this.loadPlaylist(c);return}}else c=this.getDeliveryDirectives(d,s.deliveryDirectives,E,B);var S=Object(O.computeReloadInterval)(d,f);E!==void 0&&d.canBlockReload&&(S-=d.partTarget||1),this.log("reload live playlist "+h+" in "+Math.round(S)+" ms"),this.timer=self.setTimeout(function(){return u.loadPlaylist(c)},S)}else this.clearTimer()},a.getDeliveryDirectives=function(h,s,i,u){var d=Object(_.getSkipValue)(h,i);return s!=null&&s.skip&&h.deltaUpdateFailed&&(i=s.msn,u=s.part,d=_.HlsSkip.No),new _.HlsUrlParameters(i,u,d)},a.retryLoadingOrFail=function(h){var s=this,i=this.hls.config,u=this.retryCount<i.levelLoadingMaxRetry;if(u){var d;if(this.retryCount++,h.details.indexOf("LoadTimeOut")>-1&&(d=h.context)!==null&&d!==void 0&&d.deliveryDirectives)this.warn("retry playlist loading #"+this.retryCount+' after "'+h.details+'"'),this.loadPlaylist();else{var f=Math.min(Math.pow(2,this.retryCount)*i.levelLoadingRetryDelay,i.levelLoadingMaxRetryTimeout);this.timer=self.setTimeout(function(){return s.loadPlaylist()},f),this.warn("retry playlist loading #"+this.retryCount+" in "+f+' ms after "'+h.details+'"')}}else this.warn('cannot recover from error "'+h.details+'"'),this.clearTimer(),h.fatal=!0;return u},p}()},"./src/controller/base-stream-controller.ts":function(Z,K,I){"use strict";I.r(K),I.d(K,"State",function(){return C}),I.d(K,"default",function(){return b});var k=I("./src/polyfills/number.ts"),_=I("./src/task-loop.ts"),O=I("./src/controller/fragment-tracker.ts"),M=I("./src/utils/buffer-helper.ts"),x=I("./src/utils/logger.ts"),n=I("./src/events.ts"),p=I("./src/errors.ts"),a=I("./src/types/transmuxer.ts"),t=I("./src/utils/mp4-tools.ts"),h=I("./src/utils/discontinuities.ts"),s=I("./src/controller/fragment-finders.ts"),i=I("./src/controller/level-helper.ts"),u=I("./src/loader/fragment-loader.ts"),d=I("./src/crypt/decrypter.ts"),f=I("./src/utils/time-ranges.ts"),o=I("./src/types/loader.ts");function c(l,A){for(var g=0;g<A.length;g++){var T=A[g];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(l,T.key,T)}}function E(l,A,g){return A&&c(l.prototype,A),g&&c(l,g),l}function B(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function w(l,A){l.prototype=Object.create(A.prototype),l.prototype.constructor=l,P(l,A)}function P(l,A){return P=Object.setPrototypeOf||function(T,m){return T.__proto__=m,T},P(l,A)}var C={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"},b=function(l){w(A,l);function A(T,m,y){var U;return U=l.call(this)||this,U.hls=void 0,U.fragPrevious=null,U.fragCurrent=null,U.fragmentTracker=void 0,U.transmuxer=null,U._state=C.STOPPED,U.media=void 0,U.mediaBuffer=void 0,U.config=void 0,U.bitrateTest=!1,U.lastCurrentTime=0,U.nextLoadPosition=0,U.startPosition=0,U.loadedmetadata=!1,U.fragLoadError=0,U.retryDate=0,U.levels=null,U.fragmentLoader=void 0,U.levelLastLoaded=null,U.startFragRequested=!1,U.decrypter=void 0,U.initPTS=[],U.onvseeking=null,U.onvended=null,U.logPrefix="",U.log=void 0,U.warn=void 0,U.logPrefix=y,U.log=x.logger.log.bind(x.logger,y+":"),U.warn=x.logger.warn.bind(x.logger,y+":"),U.hls=T,U.fragmentLoader=new u.default(T.config),U.fragmentTracker=m,U.config=T.config,U.decrypter=new d.default(T,T.config),T.on(n.Events.KEY_LOADED,U.onKeyLoaded,B(U)),U}var g=A.prototype;return g.doTick=function(){this.onTickEnd()},g.onTickEnd=function(){},g.startLoad=function(m){},g.stopLoad=function(){this.fragmentLoader.abort();var m=this.fragCurrent;m&&this.fragmentTracker.removeFragment(m),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=C.STOPPED},g._streamEnded=function(m,y){var U=this.fragCurrent,N=this.fragmentTracker;if(!y.live&&U&&U.sn===y.endSN&&!m.nextStart){var S=N.getState(U);return S===O.FragmentState.PARTIAL||S===O.FragmentState.OK}return!1},g.onMediaAttached=function(m,y){var U=this.media=this.mediaBuffer=y.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),U.addEventListener("seeking",this.onvseeking),U.addEventListener("ended",this.onvended);var N=this.config;this.levels&&N.autoStartLoad&&this.state===C.STOPPED&&this.startLoad(N.startPosition)},g.onMediaDetaching=function(){var m=this.media;m!=null&&m.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),m&&(m.removeEventListener("seeking",this.onvseeking),m.removeEventListener("ended",this.onvended),this.onvseeking=this.onvended=null),this.media=this.mediaBuffer=null,this.loadedmetadata=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()},g.onMediaSeeking=function(){var m=this.config,y=this.fragCurrent,U=this.media,N=this.mediaBuffer,S=this.state,H=U?U.currentTime:0,F=M.BufferHelper.bufferInfo(N||U,H,m.maxBufferHole);if(this.log("media seeking to "+(Object(k.isFiniteNumber)(H)?H.toFixed(3):H)+", state: "+S),S===C.ENDED)this.resetLoadingState();else if(y&&!F.len){var R=m.maxFragLookUpTolerance,z=y.start-R,Q=y.start+y.duration+R,$=H>Q;(H<z||$)&&($&&y.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),y.loader.abort()),this.resetLoadingState())}U&&(this.lastCurrentTime=H),!this.loadedmetadata&&!F.len&&(this.nextLoadPosition=this.startPosition=H),this.tickImmediate()},g.onMediaEnded=function(){this.startPosition=this.lastCurrentTime=0},g.onKeyLoaded=function(m,y){if(this.state!==C.KEY_LOADING||y.frag!==this.fragCurrent||!this.levels)return;this.state=C.IDLE;var U=this.levels[y.frag.level].details;U&&this.loadFragment(y.frag,U,y.frag.start)},g.onHandlerDestroying=function(){this.stopLoad(),l.prototype.onHandlerDestroying.call(this)},g.onHandlerDestroyed=function(){this.state=C.STOPPED,this.hls.off(n.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,l.prototype.onHandlerDestroyed.call(this)},g.loadKey=function(m,y){this.log("Loading key for "+m.sn+" of ["+y.startSN+"-"+y.endSN+"], "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+m.level),this.state=C.KEY_LOADING,this.fragCurrent=m,this.hls.trigger(n.Events.KEY_LOADING,{frag:m})},g.loadFragment=function(m,y,U){this._loadFragForPlayback(m,y,U)},g._loadFragForPlayback=function(m,y,U){var N=this,S=function(F){if(N.fragContextChanged(m)){N.warn("Fragment "+m.sn+(F.part?" p: "+F.part.index:"")+" of level "+m.level+" was dropped during download."),N.fragmentTracker.removeFragment(m);return}m.stats.chunkCount++,N._handleFragmentLoadProgress(F)};this._doFragLoad(m,y,U,S).then(function(H){if(!H)return;N.fragLoadError=0;var F=N.state;if(N.fragContextChanged(m)){(F===C.FRAG_LOADING||F===C.BACKTRACKING||!N.fragCurrent&&F===C.PARSING)&&(N.fragmentTracker.removeFragment(m),N.state=C.IDLE);return}if("payload"in H&&(N.log("Loaded fragment "+m.sn+" of level "+m.level),N.hls.trigger(n.Events.FRAG_LOADED,H),N.state===C.BACKTRACKING)){N.fragmentTracker.backtrack(m,H),N.resetFragmentLoading(m);return}N._handleFragmentLoadComplete(H)}).catch(function(H){N.warn(H),N.resetFragmentLoading(m)})},g.flushMainBuffer=function(m,y,U){if(U===void 0&&(U=null),!(m-y))return;var N={startOffset:m,endOffset:y,type:U};this.fragLoadError=0,this.hls.trigger(n.Events.BUFFER_FLUSHING,N)},g._loadInitSegment=function(m){var y=this;this._doFragLoad(m).then(function(U){if(!U||y.fragContextChanged(m)||!y.levels)throw new Error("init load aborted");return U}).then(function(U){var N=y.hls,S=U.payload,H=m.decryptdata;if(S&&S.byteLength>0&&H&&H.key&&H.iv&&H.method==="AES-128"){var F=self.performance.now();return y.decrypter.webCryptoDecrypt(new Uint8Array(S),H.key.buffer,H.iv.buffer).then(function(R){var z=self.performance.now();return N.trigger(n.Events.FRAG_DECRYPTED,{frag:m,payload:R,stats:{tstart:F,tdecrypt:z}}),U.payload=R,U})}return U}).then(function(U){var N=y.fragCurrent,S=y.hls,H=y.levels;if(!H)throw new Error("init load aborted, missing levels");var F=H[m.level].details;console.assert(F,"Level details are defined when init segment is loaded");var R=m.stats;y.state=C.IDLE,y.fragLoadError=0,m.data=new Uint8Array(U.payload),R.parsing.start=R.buffering.start=self.performance.now(),R.parsing.end=R.buffering.end=self.performance.now(),U.frag===N&&S.trigger(n.Events.FRAG_BUFFERED,{stats:R,frag:N,part:null,id:m.type}),y.tick()}).catch(function(U){y.warn(U),y.resetFragmentLoading(m)})},g.fragContextChanged=function(m){var y=this.fragCurrent;return!m||!y||m.level!==y.level||m.sn!==y.sn||m.urlId!==y.urlId},g.fragBufferedComplete=function(m,y){var U=this.mediaBuffer?this.mediaBuffer:this.media;this.log("Buffered "+m.type+" sn: "+m.sn+(y?" part: "+y.index:"")+" of "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+m.level+" "+f.default.toString(M.BufferHelper.getBuffered(U))),this.state=C.IDLE,this.tick()},g._handleFragmentLoadComplete=function(m){var y=this.transmuxer;if(!y)return;var U=m.frag,N=m.part,S=m.partsLoaded,H=!S||S.length===0||S.some(function(R){return!R}),F=new a.ChunkMetadata(U.level,U.sn,U.stats.chunkCount+1,0,N?N.index:-1,!H);y.flush(F)},g._handleFragmentLoadProgress=function(m){},g._doFragLoad=function(m,y,U,N){var S=this;if(U===void 0&&(U=null),!this.levels)throw new Error("frag load aborted, missing levels");if(U=Math.max(m.start,U||0),this.config.lowLatencyMode&&y){var H=y.partList;if(H&&N){U>m.end&&y.fragmentHint&&(m=y.fragmentHint);var F=this.getNextPart(H,m,U);if(F>-1){var R=H[F];return this.log("Loading part sn: "+m.sn+" p: "+R.index+" cc: "+m.cc+" of playlist ["+y.startSN+"-"+y.endSN+"] parts [0-"+F+"-"+(H.length-1)+"] "+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+m.level+", target: "+parseFloat(U.toFixed(3))),this.nextLoadPosition=R.start+R.duration,this.state=C.FRAG_LOADING,this.hls.trigger(n.Events.FRAG_LOADING,{frag:m,part:H[F],targetBufferTime:U}),this.doFragPartsLoad(m,H,F,N).catch(function(z){return S.handleFragLoadError(z)})}else if(!m.url||this.loadedEndOfParts(H,U))return Promise.resolve(null)}}return this.log("Loading fragment "+m.sn+" cc: "+m.cc+" "+(y?"of ["+y.startSN+"-"+y.endSN+"] ":"")+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+m.level+", target: "+parseFloat(U.toFixed(3))),Object(k.isFiniteNumber)(m.sn)&&!this.bitrateTest&&(this.nextLoadPosition=m.start+m.duration),this.state=C.FRAG_LOADING,this.hls.trigger(n.Events.FRAG_LOADING,{frag:m,targetBufferTime:U}),this.fragmentLoader.load(m,N).catch(function(z){return S.handleFragLoadError(z)})},g.doFragPartsLoad=function(m,y,U,N){var S=this;return new Promise(function(H,F){var R=[],z=function Q($){var ee=y[$];S.fragmentLoader.loadPart(m,ee,N).then(function(fe){R[ee.index]=fe;var Ae=fe.part;S.hls.trigger(n.Events.FRAG_LOADED,fe);var ce=y[$+1];if(ce&&ce.fragment===m)Q($+1);else return H({frag:m,part:Ae,partsLoaded:R})}).catch(F)};z(U)})},g.handleFragLoadError=function(m){var y=m.data;return y&&y.details===p.ErrorDetails.INTERNAL_ABORTED?this.handleFragLoadAborted(y.frag,y.part):this.hls.trigger(n.Events.ERROR,y),null},g._handleTransmuxerFlush=function(m){var y=this.getCurrentContext(m);if(!y||this.state!==C.PARSING){this.fragCurrent||(this.state=C.IDLE);return}var U=y.frag,N=y.part,S=y.level,H=self.performance.now();U.stats.parsing.end=H,N&&(N.stats.parsing.end=H),this.updateLevelTiming(U,N,S,m.partial)},g.getCurrentContext=function(m){var y=this.levels,U=m.level,N=m.sn,S=m.part;if(!y||!y[U])return this.warn("Levels object was unset while buffering fragment "+N+" of level "+U+". The current chunk will not be buffered."),null;var H=y[U],F=S>-1?Object(i.getPartWith)(H,N,S):null,R=F?F.fragment:Object(i.getFragmentWithSN)(H,N,this.fragCurrent);return R?{frag:R,part:F,level:H}:null},g.bufferFragmentData=function(m,y,U,N){if(!m||this.state!==C.PARSING)return;var S=m.data1,H=m.data2,F=S;if(S&&H&&(F=Object(t.appendUint8Array)(S,H)),!F||!F.length)return;var R={type:m.type,frag:y,part:U,chunkMeta:N,parent:y.type,data:F};this.hls.trigger(n.Events.BUFFER_APPENDING,R),m.dropped&&m.independent&&!U&&this.flushBufferGap(y)},g.flushBufferGap=function(m){var y=this.media;if(!y)return;if(!M.BufferHelper.isBuffered(y,y.currentTime)){this.flushMainBuffer(0,m.start);return}var U=y.currentTime,N=M.BufferHelper.bufferInfo(y,U,0),S=m.duration,H=Math.min(this.config.maxFragLookUpTolerance*2,S*.25),F=Math.max(Math.min(m.start-H,N.end-H),U+H);m.start-F>H&&this.flushMainBuffer(F,m.start)},g.getFwdBufferInfo=function(m,y){var U=this.config,N=this.getLoadPosition();if(!Object(k.isFiniteNumber)(N))return null;var S=M.BufferHelper.bufferInfo(m,N,U.maxBufferHole);if(S.len===0&&S.nextStart!==void 0){var H=this.fragmentTracker.getBufferedFrag(N,y);if(H&&S.nextStart<H.end)return M.BufferHelper.bufferInfo(m,N,Math.max(S.nextStart,U.maxBufferHole))}return S},g.getMaxBufferLength=function(m){var y=this.config,U;return m?U=Math.max(8*y.maxBufferSize/m,y.maxBufferLength):U=y.maxBufferLength,Math.min(U,y.maxMaxBufferLength)},g.reduceMaxBufferLength=function(m){var y=this.config,U=m||y.maxBufferLength;return y.maxMaxBufferLength>=U?(y.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to "+y.maxMaxBufferLength+"s"),!0):!1},g.getNextFragment=function(m,y){var U,N,S=y.fragments,H=S.length;if(!H)return null;var F=this.config,R=S[0].start,z;if(y.live){var Q=F.initialLiveManifestSize;if(H<Q)return this.warn("Not enough fragments to start playback (have: "+H+", need: "+Q+")"),null;!y.PTSKnown&&!this.startFragRequested&&this.startPosition===-1&&(z=this.getInitialLiveFragment(y,S),this.startPosition=z?this.hls.liveSyncPosition||z.start:m)}else m<=R&&(z=S[0]);if(!z){var $=F.lowLatencyMode?y.partEnd:y.fragmentEnd;z=this.getFragmentAtPosition(m,$,y)}return(U=z)!==null&&U!==void 0&&U.initSegment&&!((N=z)!==null&&N!==void 0&&N.initSegment.data)&&!this.bitrateTest&&(z=z.initSegment),z},g.getNextPart=function(m,y,U){for(var N=-1,S=!1,H=!0,F=0,R=m.length;F<R;F++){var z=m[F];if(H=H&&!z.independent,N>-1&&U<z.start)break;var Q=z.loaded;!Q&&(S||z.independent||H)&&z.fragment===y&&(N=F),S=Q}return N},g.loadedEndOfParts=function(m,y){var U=m[m.length-1];return U&&y>U.start&&U.loaded},g.getInitialLiveFragment=function(m,y){var U=this.fragPrevious,N=null;if(U){if(m.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: "+U.programDateTime),N=Object(s.findFragmentByPDT)(y,U.endProgramDateTime,this.config.maxFragLookUpTolerance)),!N){var S=U.sn+1;if(S>=m.startSN&&S<=m.endSN){var H=y[S-m.startSN];U.cc===H.cc&&(N=H,this.log("Live playlist, switching playlist, load frag with next SN: "+N.sn))}N||(N=Object(s.findFragWithCC)(y,U.cc),N&&this.log("Live playlist, switching playlist, load frag with same CC: "+N.sn))}}else{var F=this.hls.liveSyncPosition;F!==null&&(N=this.getFragmentAtPosition(F,this.bitrateTest?m.fragmentEnd:m.edge,m))}return N},g.getFragmentAtPosition=function(m,y,U){var N=this.config,S=this.fragPrevious,H=U.fragments,F=U.endSN,R=U.fragmentHint,z=N.maxFragLookUpTolerance,Q=!!(N.lowLatencyMode&&U.partList&&R);Q&&R&&!this.bitrateTest&&(H=H.concat(R),F=R.sn);var $;if(m<y){var ee=m>y-z?0:z;$=Object(s.findFragmentByPTS)(S,H,m,ee)}else $=H[H.length-1];if($){var fe=$.sn-U.startSN,Ae=S&&$.level===S.level,ce=H[fe+1],ie=this.fragmentTracker.getState($);if(ie===O.FragmentState.BACKTRACKED){$=null;for(var be=fe;H[be]&&this.fragmentTracker.getState(H[be])===O.FragmentState.BACKTRACKED;)S?$=H[be--]:$=H[--be];$||($=ce)}else S&&$.sn===S.sn&&!Q&&(Ae&&($.sn<F&&this.fragmentTracker.getState(ce)!==O.FragmentState.OK?(this.log("SN "+$.sn+" just loaded, load next one: "+ce.sn),$=ce):$=null))}return $},g.synchronizeToLiveEdge=function(m){var y=this.config,U=this.media;if(!U)return;var N=this.hls.liveSyncPosition,S=U.currentTime,H=m.fragments[0].start,F=m.edge,R=S>=H-y.maxFragLookUpTolerance&&S<=F;if(N!==null&&U.duration>N&&(S<N||!R)){var z=y.liveMaxLatencyDuration!==void 0?y.liveMaxLatencyDuration:y.liveMaxLatencyDurationCount*m.targetduration;(!R&&U.readyState<4||S<F-z)&&(this.loadedmetadata||(this.nextLoadPosition=N),U.readyState&&(this.warn("Playback: "+S.toFixed(3)+" is located too far from the end of live sliding playlist: "+F+", reset currentTime to : "+N.toFixed(3)),U.currentTime=N))}},g.alignPlaylists=function(m,y){var U=this.levels,N=this.levelLastLoaded,S=this.fragPrevious,H=N!==null?U[N]:null,F=m.fragments.length;if(!F)return this.warn("No fragments in live playlist"),0;var R=m.fragments[0].start,z=!y,Q=m.alignedSliding&&Object(k.isFiniteNumber)(R);if(z||!Q&&!R){Object(h.alignStream)(S,H,m);var $=m.fragments[0].start;return this.log("Live playlist sliding: "+$.toFixed(2)+" start-sn: "+(y?y.startSN:"na")+"->"+m.startSN+" prev-sn: "+(S?S.sn:"na")+" fragments: "+F),$}return R},g.waitForCdnTuneIn=function(m){var y=3;return m.live&&m.canBlockReload&&m.tuneInGoal>Math.max(m.partHoldBack,m.partTarget*y)},g.setStartPosition=function(m,y){var U=this.startPosition;if(U<y&&(U=-1),U===-1||this.lastCurrentTime===-1){var N=m.startTimeOffset;Object(k.isFiniteNumber)(N)?(U=y+N,N<0&&(U+=m.totalduration),U=Math.min(Math.max(y,U),y+m.totalduration),this.log("Start time offset "+N+" found in playlist, adjust startPosition to "+U),this.startPosition=U):m.live?U=this.hls.liveSyncPosition||y:this.startPosition=U=0,this.lastCurrentTime=U}this.nextLoadPosition=U},g.getLoadPosition=function(){var m=this.media,y=0;return this.loadedmetadata&&m?y=m.currentTime:this.nextLoadPosition&&(y=this.nextLoadPosition),y},g.handleFragLoadAborted=function(m,y){this.transmuxer&&m.sn!=="initSegment"&&m.stats.aborted&&(this.warn("Fragment "+m.sn+(y?" part"+y.index:"")+" of level "+m.level+" was aborted"),this.resetFragmentLoading(m))},g.resetFragmentLoading=function(m){(!this.fragCurrent||!this.fragContextChanged(m))&&(this.state=C.IDLE)},g.onFragmentOrKeyLoadError=function(m,y){if(y.fatal)return;var U=y.frag;if(!U||U.type!==m)return;var N=this.fragCurrent;console.assert(N&&U.sn===N.sn&&U.level===N.level&&U.urlId===N.urlId,"Frag load error must match current frag to retry");var S=this.config;if(this.fragLoadError+1<=S.fragLoadingMaxRetry){if(this.resetLiveStartWhenNotLoaded(U.level))return;var H=Math.min(Math.pow(2,this.fragLoadError)*S.fragLoadingRetryDelay,S.fragLoadingMaxRetryTimeout);this.warn("Fragment "+U.sn+" of "+m+" "+U.level+" failed to load, retrying in "+H+"ms"),this.retryDate=self.performance.now()+H,this.fragLoadError++,this.state=C.FRAG_LOADING_WAITING_RETRY}else y.levelRetry?(m===o.PlaylistLevelType.AUDIO&&(this.fragCurrent=null),this.fragLoadError=0,this.state=C.IDLE):(x.logger.error(y.details+" reaches max retry, redispatch as fatal ..."),y.fatal=!0,this.hls.stopLoad(),this.state=C.ERROR)},g.afterBufferFlushed=function(m,y,U){if(!m)return;var N=M.BufferHelper.getBuffered(m);this.fragmentTracker.detectEvictedFragments(y,N,U),this.state===C.ENDED&&this.resetLoadingState()},g.resetLoadingState=function(){this.fragCurrent=null,this.fragPrevious=null,this.state=C.IDLE},g.resetLiveStartWhenNotLoaded=function(m){if(!this.loadedmetadata){this.startFragRequested=!1;var y=this.levels?this.levels[m].details:null;if(y!=null&&y.live)return this.startPosition=-1,this.setStartPosition(y,0),this.resetLoadingState(),!0;this.nextLoadPosition=this.startPosition}return!1},g.updateLevelTiming=function(m,y,U,N){var S=this,H=U.details;console.assert(!!H,"level.details must be defined");var F=Object.keys(m.elementaryStreams).reduce(function(R,z){var Q=m.elementaryStreams[z];if(Q){var $=Q.endPTS-Q.startPTS;if($<=0)return S.warn("Could not parse fragment "+m.sn+" "+z+" duration reliably ("+$+") resetting transmuxer to fallback to playlist timing"),S.resetTransmuxer(),R||!1;var ee=N?0:Object(i.updateFragPTSDTS)(H,m,Q.startPTS,Q.endPTS,Q.startDTS,Q.endDTS);return S.hls.trigger(n.Events.LEVEL_PTS_UPDATED,{details:H,level:U,drift:ee,type:z,frag:m,start:Q.startPTS,end:Q.endPTS}),!0}return R},!1);F?(this.state=C.PARSED,this.hls.trigger(n.Events.FRAG_PARSED,{frag:m,part:y})):this.resetLoadingState()},g.resetTransmuxer=function(){this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null)},E(A,[{key:"state",get:function(){return this._state},set:function(m){var y=this._state;y!==m&&(this._state=m,this.log(y+"->"+m))}}]),A}(_.default)},"./src/controller/buffer-controller.ts":function(Z,K,I){"use strict";I.r(K),I.d(K,"default",function(){return s});var k=I("./src/polyfills/number.ts"),_=I("./src/events.ts"),O=I("./src/utils/logger.ts"),M=I("./src/errors.ts"),x=I("./src/utils/buffer-helper.ts"),n=I("./src/utils/mediasource-helper.ts"),p=I("./src/loader/fragment.ts"),a=I("./src/controller/buffer-operation-queue.ts"),t=Object(n.getMediaSource)(),h=/([ha]vc.)(?:\.[^.,]+)+/,s=function(){function i(d){var f=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 o=f.hls,c=f.media,E=f.mediaSource;O.logger.log("[buffer-controller]: Media source opened"),c&&(f.updateMediaElementDuration(),o.trigger(_.Events.MEDIA_ATTACHED,{media:c})),E&&E.removeEventListener("sourceopen",f._onMediaSourceOpen),f.checkPendingTracks()},this._onMediaSourceClose=function(){O.logger.log("[buffer-controller]: Media source closed")},this._onMediaSourceEnded=function(){O.logger.log("[buffer-controller]: Media source ended")},this.hls=d,this._initSourceBuffer(),this.registerListeners()}var u=i.prototype;return u.hasSourceTypes=function(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0},u.destroy=function(){this.unregisterListeners(),this.details=null},u.registerListeners=function(){var f=this.hls;f.on(_.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),f.on(_.Events.MEDIA_DETACHING,this.onMediaDetaching,this),f.on(_.Events.MANIFEST_PARSED,this.onManifestParsed,this),f.on(_.Events.BUFFER_RESET,this.onBufferReset,this),f.on(_.Events.BUFFER_APPENDING,this.onBufferAppending,this),f.on(_.Events.BUFFER_CODECS,this.onBufferCodecs,this),f.on(_.Events.BUFFER_EOS,this.onBufferEos,this),f.on(_.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),f.on(_.Events.LEVEL_UPDATED,this.onLevelUpdated,this),f.on(_.Events.FRAG_PARSED,this.onFragParsed,this),f.on(_.Events.FRAG_CHANGED,this.onFragChanged,this)},u.unregisterListeners=function(){var f=this.hls;f.off(_.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),f.off(_.Events.MEDIA_DETACHING,this.onMediaDetaching,this),f.off(_.Events.MANIFEST_PARSED,this.onManifestParsed,this),f.off(_.Events.BUFFER_RESET,this.onBufferReset,this),f.off(_.Events.BUFFER_APPENDING,this.onBufferAppending,this),f.off(_.Events.BUFFER_CODECS,this.onBufferCodecs,this),f.off(_.Events.BUFFER_EOS,this.onBufferEos,this),f.off(_.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),f.off(_.Events.LEVEL_UPDATED,this.onLevelUpdated,this),f.off(_.Events.FRAG_PARSED,this.onFragParsed,this),f.off(_.Events.FRAG_CHANGED,this.onFragChanged,this)},u._initSourceBuffer=function(){this.sourceBuffer={},this.operationQueue=new a.default(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]}},u.onManifestParsed=function(f,o){var c=2;(o.audio&&!o.video||!o.altAudio)&&(c=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=c,this.details=null,O.logger.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")},u.onMediaAttaching=function(f,o){var c=this.media=o.media;if(c&&t){var E=this.mediaSource=new t;E.addEventListener("sourceopen",this._onMediaSourceOpen),E.addEventListener("sourceended",this._onMediaSourceEnded),E.addEventListener("sourceclose",this._onMediaSourceClose),c.src=self.URL.createObjectURL(E),this._objectUrl=c.src}},u.onMediaDetaching=function(){var f=this.media,o=this.mediaSource,c=this._objectUrl;if(o){if(O.logger.log("[buffer-controller]: media source detaching"),o.readyState==="open")try{o.endOfStream()}catch(E){O.logger.warn("[buffer-controller]: onMediaDetaching: "+E.message+" while calling endOfStream")}this.onBufferReset(),o.removeEventListener("sourceopen",this._onMediaSourceOpen),o.removeEventListener("sourceended",this._onMediaSourceEnded),o.removeEventListener("sourceclose",this._onMediaSourceClose),f&&(c&&self.URL.revokeObjectURL(c),f.src===c?(f.removeAttribute("src"),f.load()):O.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(_.Events.MEDIA_DETACHED,void 0)},u.onBufferReset=function(){var f=this;this.getSourceBufferTypes().forEach(function(o){var c=f.sourceBuffer[o];try{c&&(f.removeBufferListeners(o),f.mediaSource&&f.mediaSource.removeSourceBuffer(c),f.sourceBuffer[o]=void 0)}catch(E){O.logger.warn("[buffer-controller]: Failed to reset the "+o+" buffer",E)}}),this._initSourceBuffer()},u.onBufferCodecs=function(f,o){var c=this,E=this.getSourceBufferTypes().length;if(Object.keys(o).forEach(function(B){if(E){var w=c.tracks[B];if(w&&typeof w.buffer.changeType=="function"){var P=o[B],C=P.codec,b=P.levelCodec,l=P.container,A=(w.levelCodec||w.codec).replace(h,"$1"),g=(b||C).replace(h,"$1");if(A!==g){var T=l+";codecs="+(b||C);c.appendChangeType(B,T)}}}else c.pendingTracks[B]=o[B]}),E)return;this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()},u.appendChangeType=function(f,o){var c=this,E=this.operationQueue,B={execute:function(){var P=c.sourceBuffer[f];P&&(O.logger.log("[buffer-controller]: changing "+f+" sourceBuffer type to "+o),P.changeType(o)),E.shiftAndExecuteNext(f)},onStart:function(){},onComplete:function(){},onError:function(P){O.logger.warn("[buffer-controller]: Failed to change "+f+" SourceBuffer type",P)}};E.append(B,f)},u.onBufferAppending=function(f,o){var c=this,E=this.hls,B=this.operationQueue,w=this.tracks,P=o.data,C=o.type,b=o.frag,l=o.part,A=o.chunkMeta,g=A.buffering[C],T=self.performance.now();g.start=T;var m=b.stats.buffering,y=l?l.stats.buffering:null;m.start===0&&(m.start=T),y&&y.start===0&&(y.start=T);var U=w.audio,N=C==="audio"&&A.id===1&&(U==null?void 0:U.container)==="audio/mpeg",S={execute:function(){if(g.executeStart=self.performance.now(),N){var F=c.sourceBuffer[C];if(F){var R=b.start-F.timestampOffset;Math.abs(R)>=.1&&(O.logger.log("[buffer-controller]: Updating audio SourceBuffer timestampOffset to "+b.start+" (delta: "+R+") sn: "+b.sn+")"),F.timestampOffset=b.start)}}c.appendExecutor(P,C)},onStart:function(){},onComplete:function(){var F=self.performance.now();g.executeEnd=g.end=F,m.first===0&&(m.first=F),y&&y.first===0&&(y.first=F);var R=c.sourceBuffer,z={};for(var Q in R)z[Q]=x.BufferHelper.getBuffered(R[Q]);c.appendError=0,c.hls.trigger(_.Events.BUFFER_APPENDED,{type:C,frag:b,part:l,chunkMeta:A,parent:b.type,timeRanges:z})},onError:function(F){O.logger.error("[buffer-controller]: Error encountered while trying to append to the "+C+" SourceBuffer",F);var R={type:M.ErrorTypes.MEDIA_ERROR,parent:b.type,details:M.ErrorDetails.BUFFER_APPEND_ERROR,err:F,fatal:!1};F.code===DOMException.QUOTA_EXCEEDED_ERR?R.details=M.ErrorDetails.BUFFER_FULL_ERROR:(c.appendError++,R.details=M.ErrorDetails.BUFFER_APPEND_ERROR,c.appendError>E.config.appendErrorMaxRetry&&(O.logger.error("[buffer-controller]: Failed "+E.config.appendErrorMaxRetry+" times to append segment in sourceBuffer"),R.fatal=!0)),E.trigger(_.Events.ERROR,R)}};B.append(S,C)},u.onBufferFlushing=function(f,o){var c=this,E=this.operationQueue,B=function(P){return{execute:c.removeExecutor.bind(c,P,o.startOffset,o.endOffset),onStart:function(){},onComplete:function(){c.hls.trigger(_.Events.BUFFER_FLUSHED,{type:P})},onError:function(b){O.logger.warn("[buffer-controller]: Failed to remove from "+P+" SourceBuffer",b)}}};o.type?E.append(B(o.type),o.type):this.getSourceBufferTypes().forEach(function(w){E.append(B(w),w)})},u.onFragParsed=function(f,o){var c=this,E=o.frag,B=o.part,w=[],P=B?B.elementaryStreams:E.elementaryStreams;P[p.ElementaryStreamTypes.AUDIOVIDEO]?w.push("audiovideo"):(P[p.ElementaryStreamTypes.AUDIO]&&w.push("audio"),P[p.ElementaryStreamTypes.VIDEO]&&w.push("video"));var C=function(){var l=self.performance.now();E.stats.buffering.end=l,B&&(B.stats.buffering.end=l);var A=B?B.stats:E.stats;c.hls.trigger(_.Events.FRAG_BUFFERED,{frag:E,part:B,stats:A,id:E.type})};w.length===0&&O.logger.warn("Fragments must have at least one ElementaryStreamType set. type: "+E.type+" level: "+E.level+" sn: "+E.sn),this.blockBuffers(C,w)},u.onFragChanged=function(f,o){this.flushBackBuffer()},u.onBufferEos=function(f,o){var c=this,E=this.getSourceBufferTypes().reduce(function(B,w){var P=c.sourceBuffer[w];return(!o.type||o.type===w)&&(P&&!P.ended&&(P.ended=!0,O.logger.log("[buffer-controller]: "+w+" sourceBuffer now EOS"))),B&&!!(!P||P.ended)},!0);E&&this.blockBuffers(function(){var B=c.mediaSource;if(!B||B.readyState!=="open")return;B.endOfStream()})},u.onLevelUpdated=function(f,o){var c=o.details;if(!c.fragments.length)return;this.details=c,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration()},u.flushBackBuffer=function(){var f=this.hls,o=this.details,c=this.media,E=this.sourceBuffer;if(!c||o===null)return;var B=this.getSourceBufferTypes();if(!B.length)return;var w=o.live&&f.config.liveBackBufferLength!==null?f.config.liveBackBufferLength:f.config.backBufferLength;if(!Object(k.isFiniteNumber)(w)||w<0)return;var P=c.currentTime,C=o.levelTargetDuration,b=Math.max(w,C),l=Math.floor(P/C)*C-b;B.forEach(function(A){var g=E[A];if(g){var T=x.BufferHelper.getBuffered(g);T.length>0&&l>T.start(0)&&(f.trigger(_.Events.BACK_BUFFER_REACHED,{bufferEnd:l}),o.live&&f.trigger(_.Events.LIVE_BACK_BUFFER_REACHED,{bufferEnd:l}),f.trigger(_.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:l,type:A}))}})},u.updateMediaElementDuration=function(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;var f=this.details,o=this.hls,c=this.media,E=this.mediaSource,B=f.fragments[0].start+f.totalduration,w=c.duration,P=Object(k.isFiniteNumber)(E.duration)?E.duration:0;f.live&&o.config.liveDurationInfinity?(O.logger.log("[buffer-controller]: Media Source duration is set to Infinity"),E.duration=Infinity,this.updateSeekableRange(f)):(B>P&&B>w||!Object(k.isFiniteNumber)(w))&&(O.logger.log("[buffer-controller]: Updating Media Source duration to "+B.toFixed(3)),E.duration=B)},u.updateSeekableRange=function(f){var o=this.mediaSource,c=f.fragments,E=c.length;if(E&&f.live&&o!==null&&o!==void 0&&o.setLiveSeekableRange){var B=Math.max(0,c[0].start),w=Math.max(B,B+f.totalduration);o.setLiveSeekableRange(B,w)}},u.checkPendingTracks=function(){var f=this.bufferCodecEventsExpected,o=this.operationQueue,c=this.pendingTracks,E=Object.keys(c).length;if(E&&!f||E===2){this.createSourceBuffers(c),this.pendingTracks={};var B=this.getSourceBufferTypes();if(B.length===0){this.hls.trigger(_.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}B.forEach(function(w){o.executeNext(w)})}},u.createSourceBuffers=function(f){var o=this.sourceBuffer,c=this.mediaSource;if(!c)throw Error("createSourceBuffers called when mediaSource was null");var E=0;for(var B in f)if(!o[B]){var w=f[B];if(!w)throw Error("source buffer exists for track "+B+", however track does not");var P=w.levelCodec||w.codec,C=w.container+";codecs="+P;O.logger.log("[buffer-controller]: creating sourceBuffer("+C+")");try{var b=o[B]=c.addSourceBuffer(C),l=B;this.addBufferListener(l,"updatestart",this._onSBUpdateStart),this.addBufferListener(l,"updateend",this._onSBUpdateEnd),this.addBufferListener(l,"error",this._onSBUpdateError),this.tracks[B]={buffer:b,codec:P,container:w.container,levelCodec:w.levelCodec,id:w.id},E++}catch(A){O.logger.error("[buffer-controller]: error while trying to add sourceBuffer: "+A.message),this.hls.trigger(_.Events.ERROR,{type:M.ErrorTypes.MEDIA_ERROR,details:M.ErrorDetails.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:A,mimeType:C})}}E&&this.hls.trigger(_.Events.BUFFER_CREATED,{tracks:this.tracks})},u._onSBUpdateStart=function(f){var o=this.operationQueue,c=o.current(f);c.onStart()},u._onSBUpdateEnd=function(f){var o=this.operationQueue,c=o.current(f);c.onComplete(),o.shiftAndExecuteNext(f)},u._onSBUpdateError=function(f,o){O.logger.error("[buffer-controller]: "+f+" SourceBuffer error",o),this.hls.trigger(_.Events.ERROR,{type:M.ErrorTypes.MEDIA_ERROR,details:M.ErrorDetails.BUFFER_APPENDING_ERROR,fatal:!1});var c=this.operationQueue.current(f);c&&c.onError(o)},u.removeExecutor=function(f,o,c){var E=this.media,B=this.mediaSource,w=this.operationQueue,P=this.sourceBuffer,C=P[f];if(!E||!B||!C){O.logger.warn("[buffer-controller]: Attempting to remove from the "+f+" SourceBuffer, but it does not exist"),w.shiftAndExecuteNext(f);return}var b=Object(k.isFiniteNumber)(E.duration)?E.duration:Infinity,l=Object(k.isFiniteNumber)(B.duration)?B.duration:Infinity,A=Math.max(0,o),g=Math.min(c,b,l);g>A?(O.logger.log("[buffer-controller]: Removing ["+A+","+g+"] from the "+f+" SourceBuffer"),console.assert(!C.updating,f+" sourceBuffer must not be updating"),C.remove(A,g)):w.shiftAndExecuteNext(f)},u.appendExecutor=function(f,o){var c=this.operationQueue,E=this.sourceBuffer,B=E[o];if(!B){O.logger.warn("[buffer-controller]: Attempting to append to the "+o+" SourceBuffer, but it does not exist"),c.shiftAndExecuteNext(o);return}B.ended=!1,console.assert(!B.updating,o+" sourceBuffer must not be updating"),B.appendBuffer(f)},u.blockBuffers=function(f,o){var c=this;if(o===void 0&&(o=this.getSourceBufferTypes()),!o.length){O.logger.log("[buffer-controller]: Blocking operation requested, but no SourceBuffers exist"),Promise.resolve(f);return}var E=this.operationQueue,B=o.map(function(w){return E.appendBlocker(w)});Promise.all(B).then(function(){f(),o.forEach(function(w){var P=c.sourceBuffer[w];(!P||!P.updating)&&E.shiftAndExecuteNext(w)})})},u.getSourceBufferTypes=function(){return Object.keys(this.sourceBuffer)},u.addBufferListener=function(f,o,c){var E=this.sourceBuffer[f];if(!E)return;var B=c.bind(this,f);this.listeners[f].push({event:o,listener:B}),E.addEventListener(o,B)},u.removeBufferListeners=function(f){var o=this.sourceBuffer[f];if(!o)return;this.listeners[f].forEach(function(c){o.removeEventListener(c.event,c.listener)})},i}()},"./src/controller/buffer-operation-queue.ts":function(Z,K,I){"use strict";I.r(K),I.d(K,"default",function(){return _});var k=I("./src/utils/logger.ts"),_=function(){function O(x){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=x}var M=O.prototype;return M.append=function(n,p){var a=this.queues[p];a.push(n),a.length===1&&this.buffers[p]&&this.executeNext(p)},M.insertAbort=function(n,p){var a=this.queues[p];a.unshift(n),this.executeNext(p)},M.appendBlocker=function(n){var p,a=new Promise(function(h){p=h}),t={execute:p,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(t,n),a},M.executeNext=function(n){var p=this.buffers,a=this.queues,t=p[n],h=a[n];if(h.length){var s=h[0];try{s.execute()}catch(i){k.logger.warn("[buffer-operation-queue]: Unhandled exception executing the current operation"),s.onError(i),(!t||!t.updating)&&(h.shift(),this.executeNext(n))}}},M.shiftAndExecuteNext=function(n){this.queues[n].shift(),this.executeNext(n)},M.current=function(n){return this.queues[n][0]},O}()},"./src/controller/cap-level-controller.ts":function(Z,K,I){"use strict";I.r(K);var k=I("./src/events.ts");function _(x,n){for(var p=0;p<n.length;p++){var a=n[p];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(x,a.key,a)}}function O(x,n,p){return n&&_(x.prototype,n),p&&_(x,p),x}var M=function(){function x(p){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=p,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}var n=x.prototype;return n.setStreamController=function(a){this.streamController=a},n.destroy=function(){this.unregisterListener(),this.hls.config.capLevelToPlayerSize&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null},n.registerListeners=function(){var a=this.hls;a.on(k.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),a.on(k.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),a.on(k.Events.MANIFEST_PARSED,this.onManifestParsed,this),a.on(k.Events.BUFFER_CODECS,this.onBufferCodecs,this),a.on(k.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},n.unregisterListener=function(){var a=this.hls;a.off(k.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),a.off(k.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),a.off(k.Events.MANIFEST_PARSED,this.onManifestParsed,this),a.off(k.Events.BUFFER_CODECS,this.onBufferCodecs,this),a.off(k.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},n.onFpsDropLevelCapping=function(a,t){x.isLevelAllowed(t.droppedLevel,this.restrictedLevels)&&this.restrictedLevels.push(t.droppedLevel)},n.onMediaAttaching=function(a,t){this.media=t.media instanceof HTMLVideoElement?t.media:null},n.onManifestParsed=function(a,t){var h=this.hls;this.restrictedLevels=[],this.firstLevel=t.firstLevel,h.config.capLevelToPlayerSize&&t.video&&this.startCapping()},n.onBufferCodecs=function(a,t){var h=this.hls;h.config.capLevelToPlayerSize&&t.video&&this.startCapping()},n.onMediaDetaching=function(){this.stopCapping()},n.detectPlayerSize=function(){if(this.media&&this.mediaHeight>0&&this.mediaWidth>0){var a=this.hls.levels;if(a.length){var t=this.hls;t.autoLevelCapping=this.getMaxLevel(a.length-1),t.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=t.autoLevelCapping}}},n.getMaxLevel=function(a){var t=this,h=this.hls.levels;if(!h.length)return-1;var s=h.filter(function(i,u){return x.isLevelAllowed(u,t.restrictedLevels)&&u<=a});return this.clientRect=null,x.getMaxLevelByMediaSize(s,this.mediaWidth,this.mediaHeight)},n.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()},n.stopCapping=function(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)},n.getDimensions=function(){if(this.clientRect)return this.clientRect;var a=this.media,t={width:0,height:0};if(a){var h=a.getBoundingClientRect();t.width=h.width,t.height=h.height,!t.width&&!t.height&&(t.width=h.right-h.left||a.width||0,t.height=h.bottom-h.top||a.height||0)}return this.clientRect=t,t},x.isLevelAllowed=function(a,t){return t===void 0&&(t=[]),t.indexOf(a)===-1},x.getMaxLevelByMediaSize=function(a,t,h){if(!a||!a.length)return-1;for(var s=function(o,c){return c?o.width!==c.width||o.height!==c.height:!0},i=a.length-1,u=0;u<a.length;u+=1){var d=a[u];if((d.width>=t||d.height>=h)&&s(d,a[u+1])){i=u;break}}return i},O(x,[{key:"mediaWidth",get:function(){return this.getDimensions().width*x.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*x.contentScaleFactor}}],[{key:"contentScaleFactor",get:function(){var a=1;try{a=self.devicePixelRatio}catch(t){}return a}}]),x}();K.default=M},"./src/controller/cmcd-controller.ts":function(Z,K,I){"use strict";I.r(K),I.d(K,"default",function(){return s});var k=I("./src/events.ts"),_=I("./src/types/cmcd.ts"),O=I("./src/utils/buffer-helper.ts"),M=I("./src/utils/logger.ts");function x(i,u){for(var d=0;d<u.length;d++){var f=u[d];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(i,f.key,f)}}function n(i,u,d){return u&&x(i.prototype,u),d&&x(i,d),i}function p(i,u){var d=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(d)return(d=d.call(i)).next.bind(d);if(Array.isArray(i)||(d=a(i))||u&&i&&typeof i.length=="number"){d&&(i=d);var f=0;return function(){return f>=i.length?{done:!0}:{done:!1,value:i[f++]}}}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 a(i,u){if(!i)return;if(typeof i=="string")return t(i,u);var d=Object.prototype.toString.call(i).slice(8,-1);if(d==="Object"&&i.constructor&&(d=i.constructor.name),d==="Map"||d==="Set")return Array.from(i);if(d==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d))return t(i,u)}function t(i,u){(u==null||u>i.length)&&(u=i.length);for(var d=0,f=new Array(u);d<u;d++)f[d]=i[d];return f}function h(){return h=Object.assign||function(i){for(var u=1;u<arguments.length;u++){var d=arguments[u];for(var f in d)Object.prototype.hasOwnProperty.call(d,f)&&(i[f]=d[f])}return i},h.apply(this,arguments)}var s=function(){function i(d){var f=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(){f.initialized&&(f.starved=!0),f.buffering=!0},this.onPlaying=function(){f.initialized||(f.initialized=!0),f.buffering=!1},this.applyPlaylistData=function(E){try{f.apply(E,{ot:_.CMCDObjectType.MANIFEST,su:!f.initialized})}catch(B){M.logger.warn("Could not generate manifest CMCD data.",B)}},this.applyFragmentData=function(E){try{var B=E.frag,w=f.hls.levels[B.level],P=f.getObjectType(B),C={d:B.duration*1e3,ot:P};(P===_.CMCDObjectType.VIDEO||P===_.CMCDObjectType.AUDIO||P==_.CMCDObjectType.MUXED)&&(C.br=w.bitrate/1e3,C.tb=f.getTopBandwidth(P),C.bl=f.getBufferLength(P)),f.apply(E,C)}catch(b){M.logger.warn("Could not generate segment CMCD data.",b)}},this.hls=d;var o=this.config=d.config,c=o.cmcd;c!=null&&(o.pLoader=this.createPlaylistLoader(),o.fLoader=this.createFragmentLoader(),this.sid=c.sessionId||i.uuid(),this.cid=c.contentId,this.useHeaders=c.useHeaders===!0,this.registerListeners())}var u=i.prototype;return u.registerListeners=function(){var f=this.hls;f.on(k.Events.MEDIA_ATTACHED,this.onMediaAttached,this),f.on(k.Events.MEDIA_DETACHED,this.onMediaDetached,this),f.on(k.Events.BUFFER_CREATED,this.onBufferCreated,this)},u.unregisterListeners=function(){var f=this.hls;f.off(k.Events.MEDIA_ATTACHED,this.onMediaAttached,this),f.off(k.Events.MEDIA_DETACHED,this.onMediaDetached,this),f.off(k.Events.BUFFER_CREATED,this.onBufferCreated,this),this.onMediaDetached()},u.destroy=function(){this.unregisterListeners(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null},u.onMediaAttached=function(f,o){this.media=o.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)},u.onMediaDetached=function(){if(!this.media)return;this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null},u.onBufferCreated=function(f,o){var c,E;this.audioBuffer=(c=o.tracks.audio)===null||c===void 0?void 0:c.buffer,this.videoBuffer=(E=o.tracks.video)===null||E===void 0?void 0:E.buffer},u.createData=function(){var f;return{v:_.CMCDVersion,sf:_.CMCDStreamingFormat.HLS,sid:this.sid,cid:this.cid,pr:(f=this.media)===null||f===void 0?void 0:f.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}},u.apply=function(f,o){o===void 0&&(o={}),h(o,this.createData());var c=o.ot===_.CMCDObjectType.INIT||o.ot===_.CMCDObjectType.VIDEO||o.ot===_.CMCDObjectType.MUXED;if(this.starved&&c&&(o.bs=!0,o.su=!0,this.starved=!1),o.su==null&&(o.su=this.buffering),this.useHeaders){var E=i.toHeaders(o);if(!Object.keys(E).length)return;f.headers||(f.headers={}),h(f.headers,E)}else{var B=i.toQuery(o);if(!B)return;f.url=i.appendQueryToUri(f.url,B)}},u.getObjectType=function(f){var o=f.type;return o==="subtitle"?_.CMCDObjectType.TIMED_TEXT:f.sn==="initSegment"?_.CMCDObjectType.INIT:o==="audio"?_.CMCDObjectType.AUDIO:o==="main"?this.hls.audioTracks.length?_.CMCDObjectType.VIDEO:_.CMCDObjectType.MUXED:void 0},u.getTopBandwidth=function(f){for(var o=0,c=f===_.CMCDObjectType.AUDIO?this.hls.audioTracks:this.hls.levels,E=p(c),B;!(B=E()).done;){var w=B.value;w.bitrate>o&&(o=w.bitrate)}return o>0?o:NaN},u.getBufferLength=function(f){var o=this.hls.media,c=f===_.CMCDObjectType.AUDIO?this.audioBuffer:this.videoBuffer;if(!c||!o)return NaN;var E=O.BufferHelper.bufferInfo(c,o.currentTime,this.config.maxBufferHole);return E.len*1e3},u.createPlaylistLoader=function(){var f=this.config.pLoader,o=this.applyPlaylistData,c=f||this.config.loader;return function(){function E(w){this.loader=void 0,this.loader=new c(w)}var B=E.prototype;return B.destroy=function(){this.loader.destroy()},B.abort=function(){this.loader.abort()},B.load=function(P,C,b){o(P),this.loader.load(P,C,b)},n(E,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),E}()},u.createFragmentLoader=function(){var f=this.config.fLoader,o=this.applyFragmentData,c=f||this.config.loader;return function(){function E(w){this.loader=void 0,this.loader=new c(w)}var B=E.prototype;return B.destroy=function(){this.loader.destroy()},B.abort=function(){this.loader.abort()},B.load=function(P,C,b){o(P),this.loader.load(P,C,b)},n(E,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),E}()},i.uuid=function(){var f=URL.createObjectURL(new Blob),o=f.toString();return URL.revokeObjectURL(f),o.substr(o.lastIndexOf("/")+1)},i.serialize=function(f){for(var o=[],c=function(N){return!Number.isNaN(N)&&N!=null&&N!==""&&N!==!1},E=function(N){return Math.round(N)},B=function(N){return E(N/100)*100},w=function(N){return encodeURIComponent(N)},P={br:E,d:E,bl:B,dl:B,mtp:B,nor:w,rtp:B,tb:E},C=Object.keys(f||{}).sort(),b=p(C),l;!(l=b()).done;){var A=l.value,g=f[A];if(!c(g))continue;if(A==="v"&&g===1)continue;if(A=="pr"&&g===1)continue;var T=P[A];T&&(g=T(g));var m=typeof g,y=void 0;A==="ot"||A==="sf"||A==="st"?y=A+"="+g:m==="boolean"?y=A:m==="number"?y=A+"="+g:y=A+"="+JSON.stringify(g),o.push(y)}return o.join(",")},i.toHeaders=function(f){for(var o=Object.keys(f),c={},E=["Object","Request","Session","Status"],B=[{},{},{},{}],w={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},P=0,C=o;P<C.length;P++){var b=C[P],l=w[b]!=null?w[b]:1;B[l][b]=f[b]}for(var A=0;A<B.length;A++){var g=i.serialize(B[A]);g&&(c["CMCD-"+E[A]]=g)}return c},i.toQuery=function(f){return"CMCD="+encodeURIComponent(i.serialize(f))},i.appendQueryToUri=function(f,o){if(!o)return f;var c=f.includes("?")?"&":"?";return""+f+c+o},i}()},"./src/controller/eme-controller.ts":function(Z,K,I){"use strict";I.r(K);var k=I("./src/events.ts"),_=I("./src/errors.ts"),O=I("./src/utils/logger.ts"),M=I("./src/utils/mediakeys-helper.ts");function x(s,i){for(var u=0;u<i.length;u++){var d=i[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(s,d.key,d)}}function n(s,i,u){return i&&x(s.prototype,i),u&&x(s,u),s}var p=3,a=function(i,u,d){var f={audioCapabilities:[],videoCapabilities:[]};return i.forEach(function(o){f.audioCapabilities.push({contentType:'audio/mp4; codecs="'+o+'"',robustness:d.audioRobustness||""})}),u.forEach(function(o){f.videoCapabilities.push({contentType:'video/mp4; codecs="'+o+'"',robustness:d.videoRobustness||""})}),[f]},t=function(i,u,d,f){switch(i){case M.KeySystems.WIDEVINE:return a(u,d,f);default:throw new Error("Unknown key-system: "+i)}},h=function(){function s(u){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=u,this._config=u.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 i=s.prototype;return i.destroy=function(){this._unregisterListeners(),this.hls=this._onMediaEncrypted=null,this._requestMediaKeySystemAccess=null},i._registerListeners=function(){this.hls.on(k.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(k.Events.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(k.Events.MANIFEST_PARSED,this.onManifestParsed,this)},i._unregisterListeners=function(){this.hls.off(k.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(k.Events.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(k.Events.MANIFEST_PARSED,this.onManifestParsed,this)},i.getLicenseServerUrl=function(d){switch(d){case M.KeySystems.WIDEVINE:if(!this._widevineLicenseUrl)break;return this._widevineLicenseUrl}throw new Error('no license server URL configured for key-system "'+d+'"')},i._attemptKeySystemAccess=function(d,f,o){var c=this,E=t(d,f,o,this._drmSystemOptions);O.logger.log("Requesting encrypted media key-system access");var B=this.requestMediaKeySystemAccess(d,E);this.mediaKeysPromise=B.then(function(w){return c._onMediaKeySystemAccessObtained(d,w)}),B.catch(function(w){O.logger.error('Failed to obtain key-system "'+d+'" access:',w)})},i._onMediaKeySystemAccessObtained=function(d,f){var o=this;O.logger.log('Access for key-system "'+d+'" obtained');var c={mediaKeysSessionInitialized:!1,mediaKeySystemAccess:f,mediaKeySystemDomain:d};this._mediaKeysList.push(c);var E=Promise.resolve().then(function(){return f.createMediaKeys()}).then(function(B){return c.mediaKeys=B,O.logger.log('Media-keys created for key-system "'+d+'"'),o._onMediaKeysCreated(),B});return E.catch(function(B){O.logger.error("Failed to create media-keys:",B)}),E},i._onMediaKeysCreated=function(){var d=this;this._mediaKeysList.forEach(function(f){f.mediaKeysSession||(f.mediaKeysSession=f.mediaKeys.createSession(),d._onNewMediaKeySession(f.mediaKeysSession))})},i._onNewMediaKeySession=function(d){var f=this;O.logger.log("New key-system session "+d.sessionId),d.addEventListener("message",function(o){f._onKeySessionMessage(d,o.message)},!1)},i._onKeySessionMessage=function(d,f){O.logger.log("Got EME message event, creating license request"),this._requestLicense(f,function(o){O.logger.log("Received license data (length: "+(o&&o.byteLength)+"), updating key-session"),d.update(o)})},i.onMediaEncrypted=function(d){var f=this;if(O.logger.log('Media is encrypted using "'+d.initDataType+'" init data type'),!this.mediaKeysPromise){O.logger.error("Fatal: Media is encrypted but no CDM access or no keys have been requested"),this.hls.trigger(k.Events.ERROR,{type:_.ErrorTypes.KEY_SYSTEM_ERROR,details:_.ErrorDetails.KEY_SYSTEM_NO_KEYS,fatal:!0});return}var o=function(E){if(!f._media)return;f._attemptSetMediaKeys(E),f._generateRequestWithPreferredKeySession(d.initDataType,d.initData)};this.mediaKeysPromise.then(o).catch(o)},i._attemptSetMediaKeys=function(d){if(!this._media)throw new Error("Attempted to set mediaKeys without first attaching a media element");if(!this._hasSetMediaKeys){var f=this._mediaKeysList[0];if(!f||!f.mediaKeys){O.logger.error("Fatal: Media is encrypted but no CDM access or no keys have been obtained yet"),this.hls.trigger(k.Events.ERROR,{type:_.ErrorTypes.KEY_SYSTEM_ERROR,details:_.ErrorDetails.KEY_SYSTEM_NO_KEYS,fatal:!0});return}O.logger.log("Setting keys for encrypted media"),this._media.setMediaKeys(f.mediaKeys),this._hasSetMediaKeys=!0}},i._generateRequestWithPreferredKeySession=function(d,f){var o=this,c=this._mediaKeysList[0];if(!c){O.logger.error("Fatal: Media is encrypted but not any key-system access has been obtained yet"),this.hls.trigger(k.Events.ERROR,{type:_.ErrorTypes.KEY_SYSTEM_ERROR,details:_.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}if(c.mediaKeysSessionInitialized){O.logger.warn("Key-Session already initialized but requested again");return}var E=c.mediaKeysSession;if(!E){O.logger.error("Fatal: Media is encrypted but no key-session existing"),this.hls.trigger(k.Events.ERROR,{type:_.ErrorTypes.KEY_SYSTEM_ERROR,details:_.ErrorDetails.KEY_SYSTEM_NO_SESSION,fatal:!0});return}if(!f){O.logger.warn("Fatal: initData required for generating a key session is null"),this.hls.trigger(k.Events.ERROR,{type:_.ErrorTypes.KEY_SYSTEM_ERROR,details:_.ErrorDetails.KEY_SYSTEM_NO_INIT_DATA,fatal:!0});return}O.logger.log('Generating key-session request for "'+d+'" init data type'),c.mediaKeysSessionInitialized=!0,E.generateRequest(d,f).then(function(){O.logger.debug("Key-session generation succeeded")}).catch(function(B){O.logger.error("Error generating key-session request:",B),o.hls.trigger(k.Events.ERROR,{type:_.ErrorTypes.KEY_SYSTEM_ERROR,details:_.ErrorDetails.KEY_SYSTEM_NO_SESSION,fatal:!1})})},i._createLicenseXhr=function(d,f,o){var c=new XMLHttpRequest;c.responseType="arraybuffer",c.onreadystatechange=this._onLicenseRequestReadyStageChange.bind(this,c,d,f,o);var E=this._licenseXhrSetup;if(E)try{E.call(this.hls,c,d),E=void 0}catch(B){O.logger.error(B)}try{c.readyState||c.open("POST",d,!0),E&&E.call(this.hls,c,d)}catch(B){throw new Error("issue setting up KeySystem license XHR "+B)}return c},i._onLicenseRequestReadyStageChange=function(d,f,o,c){switch(d.readyState){case 4:if(d.status===200){this._requestLicenseFailureCount=0,O.logger.log("License request succeeded");var E=d.response,B=this._licenseResponseCallback;if(B)try{E=B.call(this.hls,d,f)}catch(P){O.logger.error(P)}c(E)}else{if(O.logger.error("License Request XHR failed ("+f+"). Status: "+d.status+" ("+d.statusText+")"),this._requestLicenseFailureCount++,this._requestLicenseFailureCount>p){this.hls.trigger(k.Events.ERROR,{type:_.ErrorTypes.KEY_SYSTEM_ERROR,details:_.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0});return}var w=p-this._requestLicenseFailureCount+1;O.logger.warn("Retrying license request, "+w+" attempts left"),this._requestLicense(o,c)}break}},i._generateLicenseRequestChallenge=function(d,f){switch(d.mediaKeySystemDomain){case M.KeySystems.WIDEVINE:return f}throw new Error("unsupported key-system: "+d.mediaKeySystemDomain)},i._requestLicense=function(d,f){O.logger.log("Requesting content license for key-system");var o=this._mediaKeysList[0];if(!o){O.logger.error("Fatal error: Media is encrypted but no key-system access has been obtained yet"),this.hls.trigger(k.Events.ERROR,{type:_.ErrorTypes.KEY_SYSTEM_ERROR,details:_.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}try{var c=this.getLicenseServerUrl(o.mediaKeySystemDomain),E=this._createLicenseXhr(c,d,f);O.logger.log("Sending license request to URL: "+c);var B=this._generateLicenseRequestChallenge(o,d);E.send(B)}catch(w){O.logger.error("Failure requesting DRM license: "+w),this.hls.trigger(k.Events.ERROR,{type:_.ErrorTypes.KEY_SYSTEM_ERROR,details:_.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0})}},i.onMediaAttached=function(d,f){if(!this._emeEnabled)return;var o=f.media;this._media=o,o.addEventListener("encrypted",this._onMediaEncrypted)},i.onMediaDetached=function(){var d=this._media,f=this._mediaKeysList;if(!d)return;d.removeEventListener("encrypted",this._onMediaEncrypted),this._media=null,this._mediaKeysList=[],Promise.all(f.map(function(o){if(o.mediaKeysSession)return o.mediaKeysSession.close().catch(function(){})})).then(function(){return d.setMediaKeys(null)}).catch(function(){})},i.onManifestParsed=function(d,f){if(!this._emeEnabled)return;var o=f.levels.map(function(E){return E.audioCodec}).filter(function(E){return!!E}),c=f.levels.map(function(E){return E.videoCodec}).filter(function(E){return!!E});this._attemptKeySystemAccess(M.KeySystems.WIDEVINE,o,c)},n(s,[{key:"requestMediaKeySystemAccess",get:function(){if(!this._requestMediaKeySystemAccess)throw new Error("No requestMediaKeySystemAccess function configured");return this._requestMediaKeySystemAccess}}]),s}();K.default=h},"./src/controller/fps-controller.ts":function(Z,K,I){"use strict";I.r(K);var k=I("./src/events.ts"),_=I("./src/utils/logger.ts"),O=function(){function M(n){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=n,this.registerListeners()}var x=M.prototype;return x.setStreamController=function(p){this.streamController=p},x.registerListeners=function(){this.hls.on(k.Events.MEDIA_ATTACHING,this.onMediaAttaching,this)},x.unregisterListeners=function(){this.hls.off(k.Events.MEDIA_ATTACHING,this.onMediaAttaching)},x.destroy=function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null},x.onMediaAttaching=function(p,a){var t=this.hls.config;if(t.capLevelOnFPSDrop){var h=a.media instanceof self.HTMLVideoElement?a.media:null;this.media=h,h&&typeof h.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),t.fpsDroppedMonitoringPeriod)}},x.checkFPS=function(p,a,t){var h=performance.now();if(a){if(this.lastTime){var s=h-this.lastTime,i=t-this.lastDroppedFrames,u=a-this.lastDecodedFrames,d=1e3*i/s,f=this.hls;if(f.trigger(k.Events.FPS_DROP,{currentDropped:i,currentDecoded:u,totalDroppedFrames:t}),d>0&&i>f.config.fpsDroppedMonitoringThreshold*u){var o=f.currentLevel;_.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+o),o>0&&(f.autoLevelCapping===-1||f.autoLevelCapping>=o)&&(o=o-1,f.trigger(k.Events.FPS_DROP_LEVEL_CAPPING,{level:o,droppedLevel:f.currentLevel}),f.autoLevelCapping=o,this.streamController.nextLevelSwitch())}}this.lastTime=h,this.lastDroppedFrames=t,this.lastDecodedFrames=a}},x.checkFPSInterval=function(){var p=this.media;if(p)if(this.isVideoPlaybackQualityAvailable){var a=p.getVideoPlaybackQuality();this.checkFPS(p,a.totalVideoFrames,a.droppedVideoFrames)}else this.checkFPS(p,p.webkitDecodedFrameCount,p.webkitDroppedFrameCount)},M}();K.default=O},"./src/controller/fragment-finders.ts":function(Z,K,I){"use strict";I.r(K),I.d(K,"findFragmentByPDT",function(){return O}),I.d(K,"findFragmentByPTS",function(){return M}),I.d(K,"fragmentWithinToleranceTest",function(){return x}),I.d(K,"pdtWithinToleranceTest",function(){return n}),I.d(K,"findFragWithCC",function(){return p});var k=I("./src/polyfills/number.ts"),_=I("./src/utils/binary-search.ts");function O(a,t,h){if(t===null||!Array.isArray(a)||!a.length||!Object(k.isFiniteNumber)(t))return null;var s=a[0].programDateTime;if(t<(s||0))return null;var i=a[a.length-1].endProgramDateTime;if(t>=(i||0))return null;h=h||0;for(var u=0;u<a.length;++u){var d=a[u];if(n(t,h,d))return d}return null}function M(a,t,h,s){h===void 0&&(h=0),s===void 0&&(s=0);var i=null;if(a?i=t[a.sn-t[0].sn+1]||null:h===0&&t[0].start===0&&(i=t[0]),i&&x(h,s,i)===0)return i;var u=_.default.search(t,x.bind(null,h,s));return u||i}function x(a,t,h){a===void 0&&(a=0),t===void 0&&(t=0);var s=Math.min(t,h.duration+(h.deltaPTS?h.deltaPTS:0));return h.start+h.duration-s<=a?1:h.start-s>a&&h.start?-1:0}function n(a,t,h){var s=Math.min(t,h.duration+(h.deltaPTS?h.deltaPTS:0))*1e3,i=h.endProgramDateTime||0;return i-s>a}function p(a,t){return _.default.search(a,function(h){return h.cc<t?1:h.cc>t?-1:0})}},"./src/controller/fragment-tracker.ts":function(Z,K,I){"use strict";I.r(K),I.d(K,"FragmentState",function(){return O}),I.d(K,"FragmentTracker",function(){return M});var k=I("./src/events.ts"),_=I("./src/types/loader.ts"),O;(function(p){p.NOT_LOADED="NOT_LOADED",p.BACKTRACKED="BACKTRACKED",p.APPENDING="APPENDING",p.PARTIAL="PARTIAL",p.OK="OK"})(O||(O={}));var M=function(){function p(t){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=t,this._registerListeners()}var a=p.prototype;return a._registerListeners=function(){var h=this.hls;h.on(k.Events.BUFFER_APPENDED,this.onBufferAppended,this),h.on(k.Events.FRAG_BUFFERED,this.onFragBuffered,this),h.on(k.Events.FRAG_LOADED,this.onFragLoaded,this)},a._unregisterListeners=function(){var h=this.hls;h.off(k.Events.BUFFER_APPENDED,this.onBufferAppended,this),h.off(k.Events.FRAG_BUFFERED,this.onFragBuffered,this),h.off(k.Events.FRAG_LOADED,this.onFragLoaded,this)},a.destroy=function(){this._unregisterListeners(),this.fragments=this.timeRanges=null},a.getAppendedFrag=function(h,s){if(s===_.PlaylistLevelType.MAIN){var i=this.activeFragment,u=this.activeParts;if(!i)return null;if(u)for(var d=u.length;d--;){var f=u[d],o=f?f.end:i.appendedPTS;if(f.start<=h&&o!==void 0&&h<=o)return d>9&&(this.activeParts=u.slice(d-9)),f}else if(i.start<=h&&i.appendedPTS!==void 0&&h<=i.appendedPTS)return i}return this.getBufferedFrag(h,s)},a.getBufferedFrag=function(h,s){for(var i=this.fragments,u=Object.keys(i),d=u.length;d--;){var f=i[u[d]];if((f==null?void 0:f.body.type)===s&&f.buffered){var o=f.body;if(o.start<=h&&h<=o.end)return o}}return null},a.detectEvictedFragments=function(h,s,i){var u=this;Object.keys(this.fragments).forEach(function(d){var f=u.fragments[d];if(!f)return;if(!f.buffered){f.body.type===i&&u.removeFragment(f.body);return}var o=f.range[h];if(!o)return;o.time.some(function(c){var E=!u.isTimeBuffered(c.startPTS,c.endPTS,s);return E&&u.removeFragment(f.body),E})})},a.detectPartialFragments=function(h){var s=this,i=this.timeRanges,u=h.frag,d=h.part;if(!i||u.sn==="initSegment")return;var f=n(u),o=this.fragments[f];if(!o)return;Object.keys(i).forEach(function(c){var E=u.elementaryStreams[c];if(!E)return;var B=i[c],w=d!==null||E.partial===!0;o.range[c]=s.getBufferedTimes(u,d,w,B)}),o.backtrack=o.loaded=null,Object.keys(o.range).length?o.buffered=!0:this.removeFragment(o.body)},a.fragBuffered=function(h){var s=n(h),i=this.fragments[s];i&&(i.backtrack=i.loaded=null,i.buffered=!0)},a.getBufferedTimes=function(h,s,i,u){for(var d={time:[],partial:i},f=s?s.start:h.start,o=s?s.end:h.end,c=h.minEndPTS||o,E=h.maxStartPTS||f,B=0;B<u.length;B++){var w=u.start(B)-this.bufferPadding,P=u.end(B)+this.bufferPadding;if(E>=w&&c<=P){d.time.push({startPTS:Math.max(f,u.start(B)),endPTS:Math.min(o,u.end(B))});break}else if(f<P&&o>w)d.partial=!0,d.time.push({startPTS:Math.max(f,u.start(B)),endPTS:Math.min(o,u.end(B))});else if(o<=w)break}return d},a.getPartialFragment=function(h){var s=null,i,u,d,f=0,o=this.bufferPadding,c=this.fragments;return Object.keys(c).forEach(function(E){var B=c[E];if(!B)return;x(B)&&(u=B.body.start-o,d=B.body.end+o,h>=u&&h<=d&&(i=Math.min(h-u,d-h),f<=i&&(s=B.body,f=i)))}),s},a.getState=function(h){var s=n(h),i=this.fragments[s];return i?i.buffered?x(i)?O.PARTIAL:O.OK:i.backtrack?O.BACKTRACKED:O.APPENDING:O.NOT_LOADED},a.backtrack=function(h,s){var i=n(h),u=this.fragments[i];if(!u||u.backtrack)return null;var d=u.backtrack=s||u.loaded;return u.loaded=null,d},a.getBacktrackData=function(h){var s=n(h),i=this.fragments[s];if(i){var u,d=i.backtrack;if(d!=null&&(u=d.payload)!==null&&u!==void 0&&u.byteLength)return d;this.removeFragment(h)}return null},a.isTimeBuffered=function(h,s,i){for(var u,d,f=0;f<i.length;f++){if(u=i.start(f)-this.bufferPadding,d=i.end(f)+this.bufferPadding,h>=u&&s<=d)return!0;if(s<=u)return!1}return!1},a.onFragLoaded=function(h,s){var i=s.frag,u=s.part;if(i.sn==="initSegment"||i.bitrateTest||u)return;var d=n(i);this.fragments[d]={body:i,loaded:s,backtrack:null,buffered:!1,range:Object.create(null)}},a.onBufferAppended=function(h,s){var i=this,u=s.frag,d=s.part,f=s.timeRanges;if(u.type===_.PlaylistLevelType.MAIN)if(this.activeFragment=u,d){var o=this.activeParts;o||(this.activeParts=o=[]),o.push(d)}else this.activeParts=null;this.timeRanges=f,Object.keys(f).forEach(function(c){var E=f[c];if(i.detectEvictedFragments(c,E),!d)for(var B=0;B<E.length;B++)u.appendedPTS=Math.max(E.end(B),u.appendedPTS||0)})},a.onFragBuffered=function(h,s){this.detectPartialFragments(s)},a.hasFragment=function(h){var s=n(h);return!!this.fragments[s]},a.removeFragmentsInRange=function(h,s,i){var u=this;Object.keys(this.fragments).forEach(function(d){var f=u.fragments[d];if(!f)return;if(f.buffered){var o=f.body;o.type===i&&o.start<s&&o.end>h&&u.removeFragment(o)}})},a.removeFragment=function(h){var s=n(h);h.stats.loaded=0,h.clearElementaryStreamInfo(),delete this.fragments[s]},a.removeAllFragments=function(){this.fragments=Object.create(null),this.activeFragment=null,this.activeParts=null},p}();function x(p){var a,t;return p.buffered&&(((a=p.range.video)===null||a===void 0?void 0:a.partial)||((t=p.range.audio)===null||t===void 0?void 0:t.partial))}function n(p){return p.type+"_"+p.level+"_"+p.urlId+"_"+p.sn}},"./src/controller/gap-controller.ts":function(Z,K,I){"use strict";I.r(K),I.d(K,"STALL_MINIMUM_DURATION_MS",function(){return x}),I.d(K,"MAX_START_GAP_JUMP",function(){return n}),I.d(K,"SKIP_BUFFER_HOLE_STEP_SECONDS",function(){return p}),I.d(K,"SKIP_BUFFER_RANGE_START",function(){return a}),I.d(K,"default",function(){return t});var k=I("./src/utils/buffer-helper.ts"),_=I("./src/errors.ts"),O=I("./src/events.ts"),M=I("./src/utils/logger.ts"),x=250,n=2,p=.1,a=.05,t=function(){function h(i,u,d,f){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=i,this.media=u,this.fragmentTracker=d,this.hls=f}var s=h.prototype;return s.destroy=function(){this.hls=this.fragmentTracker=this.media=null},s.poll=function(u){var d=this.config,f=this.media,o=this.stalled,c=f.currentTime,E=f.seeking,B=this.seeking&&!E,w=!this.seeking&&E;if(this.seeking=E,c!==u){if(this.moved=!0,o!==null){if(this.stallReported){var P=self.performance.now()-o;M.logger.warn("playback not stuck anymore @"+c+", after "+Math.round(P)+"ms"),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}return}if((w||B)&&(this.stalled=null),f.paused||f.ended||f.playbackRate===0||!k.BufferHelper.getBuffered(f).length)return;var C=k.BufferHelper.bufferInfo(f,c,0),b=C.len>0,l=C.nextStart||0;if(!b&&!l)return;if(E){var A=C.len>n,g=!l||l-c>n&&!this.fragmentTracker.getPartialFragment(c);if(A||g)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var T,m=Math.max(l,C.start||0)-c,y=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,U=y==null||((T=y.details)===null||T===void 0)?void 0:T.live,N=U?y.details.targetduration*2:n;if(m>0&&m<=N){this._trySkipBufferHole(null);return}}var S=self.performance.now();if(o===null){this.stalled=S;return}var H=S-o;!E&&H>=x&&this._reportStall(C.len);var F=k.BufferHelper.bufferInfo(f,c,d.maxBufferHole);this._tryFixBufferStall(F,H)},s._tryFixBufferStall=function(u,d){var f=this.config,o=this.fragmentTracker,c=this.media,E=c.currentTime,B=o.getPartialFragment(E);if(B){var w=this._trySkipBufferHole(B);if(w)return}u.len>f.maxBufferHole&&d>f.highBufferWatchdogPeriod*1e3&&(M.logger.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())},s._reportStall=function(u){var d=this.hls,f=this.media,o=this.stallReported;o||(this.stallReported=!0,M.logger.warn("Playback stalling at @"+f.currentTime+" due to low buffer (buffer="+u+")"),d.trigger(O.Events.ERROR,{type:_.ErrorTypes.MEDIA_ERROR,details:_.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!1,buffer:u}))},s._trySkipBufferHole=function(u){for(var d=this.config,f=this.hls,o=this.media,c=o.currentTime,E=0,B=k.BufferHelper.getBuffered(o),w=0;w<B.length;w++){var P=B.start(w);if(c+d.maxBufferHole>=E&&c<P){var C=Math.max(P+a,o.currentTime+p);return M.logger.warn("skipping hole, adjusting currentTime from "+c+" to "+C),this.moved=!0,this.stalled=null,o.currentTime=C,u&&f.trigger(O.Events.ERROR,{type:_.ErrorTypes.MEDIA_ERROR,details:_.ErrorDetails.BUFFER_SEEK_OVER_HOLE,fatal:!1,reason:"fragment loaded with buffer holes, seeking from "+c+" to "+C,frag:u}),C}E=B.end(w)}return 0},s._tryNudgeBuffer=function(){var u=this.config,d=this.hls,f=this.media,o=f.currentTime,c=(this.nudgeRetry||0)+1;if(this.nudgeRetry=c,c<u.nudgeMaxRetry){var E=o+c*u.nudgeOffset;M.logger.warn("Nudging 'currentTime' from "+o+" to "+E),f.currentTime=E,d.trigger(O.Events.ERROR,{type:_.ErrorTypes.MEDIA_ERROR,details:_.ErrorDetails.BUFFER_NUDGE_ON_STALL,fatal:!1})}else M.logger.error("Playhead still not moving while enough data buffered @"+o+" after "+u.nudgeMaxRetry+" nudges"),d.trigger(O.Events.ERROR,{type:_.ErrorTypes.MEDIA_ERROR,details:_.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!0})},h}()},"./src/controller/id3-track-controller.ts":function(Z,K,I){"use strict";I.r(K);var k=I("./src/events.ts"),_=I("./src/utils/texttrack-utils.ts"),O=I("./src/demux/id3.ts"),M=.25,x=function(){function n(a){this.hls=void 0,this.id3Track=null,this.media=null,this.hls=a,this._registerListeners()}var p=n.prototype;return p.destroy=function(){this._unregisterListeners()},p._registerListeners=function(){var t=this.hls;t.on(k.Events.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(k.Events.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(k.Events.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),t.on(k.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},p._unregisterListeners=function(){var t=this.hls;t.off(k.Events.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(k.Events.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(k.Events.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),t.off(k.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},p.onMediaAttached=function(t,h){this.media=h.media},p.onMediaDetaching=function(){if(!this.id3Track)return;Object(_.clearCurrentCues)(this.id3Track),this.id3Track=null,this.media=null},p.getID3Track=function(t){if(!this.media)return;for(var h=0;h<t.length;h++){var s=t[h];if(s.kind==="metadata"&&s.label==="id3")return Object(_.sendAddTrackEvent)(s,this.media),s}return this.media.addTextTrack("metadata","id3")},p.onFragParsingMetadata=function(t,h){if(!this.media)return;var s=h.frag,i=h.samples;this.id3Track||(this.id3Track=this.getID3Track(this.media.textTracks),this.id3Track.mode="hidden");for(var u=self.WebKitDataCue||self.VTTCue||self.TextTrackCue,d=0;d<i.length;d++){var f=O.getID3Frames(i[d].data);if(f){var o=i[d].pts,c=d<i.length-1?i[d+1].pts:s.end,E=c-o;E<=0&&(c=o+M);for(var B=0;B<f.length;B++){var w=f[B];if(!O.isTimeStampFrame(w)){var P=new u(o,c,"");P.value=w,this.id3Track.addCue(P)}}}}},p.onBufferFlushing=function(t,h){var s=h.startOffset,i=h.endOffset,u=h.type;if(!u||u==="audio"){var d=this.id3Track;d&&Object(_.removeCuesInRange)(d,s,i)}},n}();K.default=x},"./src/controller/latency-controller.ts":function(Z,K,I){"use strict";I.r(K),I.d(K,"default",function(){return n});var k=I("./src/errors.ts"),_=I("./src/events.ts"),O=I("./src/utils/logger.ts");function M(p,a){for(var t=0;t<a.length;t++){var h=a[t];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(p,h.key,h)}}function x(p,a,t){return a&&M(p.prototype,a),t&&M(p,t),p}var n=function(){function p(t){var h=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 h.timeupdate()},this.hls=t,this.config=t.config,this.registerListeners()}var a=p.prototype;return a.destroy=function(){this.unregisterListeners(),this.onMediaDetaching(),this.levelDetails=null,this.hls=this.timeupdateHandler=null},a.registerListeners=function(){this.hls.on(_.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(_.Events.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.on(_.Events.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(_.Events.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.on(_.Events.ERROR,this.onError,this)},a.unregisterListeners=function(){this.hls.off(_.Events.MEDIA_ATTACHED,this.onMediaAttached),this.hls.off(_.Events.MEDIA_DETACHING,this.onMediaDetaching),this.hls.off(_.Events.MANIFEST_LOADING,this.onManifestLoading),this.hls.off(_.Events.LEVEL_UPDATED,this.onLevelUpdated),this.hls.off(_.Events.ERROR,this.onError)},a.onMediaAttached=function(h,s){this.media=s.media,this.media.addEventListener("timeupdate",this.timeupdateHandler)},a.onMediaDetaching=function(){this.media&&(this.media.removeEventListener("timeupdate",this.timeupdateHandler),this.media=null)},a.onManifestLoading=function(){this.levelDetails=null,this._latency=null,this.stallCount=0},a.onLevelUpdated=function(h,s){var i=s.details;this.levelDetails=i,i.advanced&&this.timeupdate(),!i.live&&this.media&&this.media.removeEventListener("timeupdate",this.timeupdateHandler)},a.onError=function(h,s){if(s.details!==k.ErrorDetails.BUFFER_STALLED_ERROR)return;this.stallCount++,O.logger.warn("[playback-rate-controller]: Stall detected, adjusting target latency")},a.timeupdate=function(){var h=this.media,s=this.levelDetails;if(!h||!s)return;this.currentTime=h.currentTime;var i=this.computeLatency();if(i===null)return;this._latency=i;var u=this.config,d=u.lowLatencyMode,f=u.maxLiveSyncPlaybackRate;if(!d||f===1)return;var o=this.targetLatency;if(o===null)return;var c=i-o,E=Math.min(this.maxLatency,o+s.targetduration),B=c<E;if(s.live&&B&&c>.05&&this.forwardBufferLength>1){var w=Math.min(2,Math.max(1,f)),P=Math.round(2/(1+Math.exp(-.75*c-this.edgeStalled))*20)/20;h.playbackRate=Math.min(w,Math.max(1,P))}else h.playbackRate!==1&&h.playbackRate!==0&&(h.playbackRate=1)},a.estimateLiveEdge=function(){var h=this.levelDetails;return h===null?null:h.edge+h.age},a.computeLatency=function(){var h=this.estimateLiveEdge();return h===null?null:h-this.currentTime},x(p,[{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var h=this.config,s=this.levelDetails;return h.liveMaxLatencyDuration!==void 0?h.liveMaxLatencyDuration:s?h.liveMaxLatencyDurationCount*s.targetduration:0}},{key:"targetLatency",get:function(){var h=this.levelDetails;if(h===null)return null;var s=h.holdBack,i=h.partHoldBack,u=h.targetduration,d=this.config,f=d.liveSyncDuration,o=d.liveSyncDurationCount,c=d.lowLatencyMode,E=this.hls.userConfig,B=c&&i||s;(E.liveSyncDuration||E.liveSyncDurationCount||B===0)&&(B=f!==void 0?f:o*u);var w=u,P=1;return B+Math.min(this.stallCount*P,w)}},{key:"liveSyncPosition",get:function(){var h=this.estimateLiveEdge(),s=this.targetLatency,i=this.levelDetails;if(h===null||s===null||i===null)return null;var u=i.edge,d=h-s-this.edgeStalled,f=u-i.totalduration,o=u-(this.config.lowLatencyMode&&i.partTarget||i.targetduration);return Math.min(Math.max(f,d),o)}},{key:"drift",get:function(){var h=this.levelDetails;return h===null?1:h.drift}},{key:"edgeStalled",get:function(){var h=this.levelDetails;if(h===null)return 0;var s=(this.config.lowLatencyMode&&h.partTarget||h.targetduration)*3;return Math.max(h.age-s,0)}},{key:"forwardBufferLength",get:function(){var h=this.media,s=this.levelDetails;if(!h||!s)return 0;var i=h.buffered.length;return i?h.buffered.end(i-1):s.edge-this.currentTime}}]),p}()},"./src/controller/level-controller.ts":function(Z,K,I){"use strict";I.r(K),I.d(K,"default",function(){return d});var k=I("./src/types/level.ts"),_=I("./src/events.ts"),O=I("./src/errors.ts"),M=I("./src/utils/codecs.ts"),x=I("./src/controller/level-helper.ts"),n=I("./src/controller/base-playlist-controller.ts"),p=I("./src/types/loader.ts");function a(){return a=Object.assign||function(f){for(var o=1;o<arguments.length;o++){var c=arguments[o];for(var E in c)Object.prototype.hasOwnProperty.call(c,E)&&(f[E]=c[E])}return f},a.apply(this,arguments)}function t(f,o){for(var c=0;c<o.length;c++){var E=o[c];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(f,E.key,E)}}function h(f,o,c){return o&&t(f.prototype,o),c&&t(f,c),f}function s(f,o){f.prototype=Object.create(o.prototype),f.prototype.constructor=f,i(f,o)}function i(f,o){return i=Object.setPrototypeOf||function(E,B){return E.__proto__=B,E},i(f,o)}var u=/chrome|firefox/.test(navigator.userAgent.toLowerCase()),d=function(f){s(o,f);function o(E){var B;return B=f.call(this,E,"[level-controller]")||this,B._levels=[],B._firstLevel=-1,B._startLevel=void 0,B.currentLevelIndex=-1,B.manualLevelIndex=-1,B.onParsedComplete=void 0,B._registerListeners(),B}var c=o.prototype;return c._registerListeners=function(){var B=this.hls;B.on(_.Events.MANIFEST_LOADED,this.onManifestLoaded,this),B.on(_.Events.LEVEL_LOADED,this.onLevelLoaded,this),B.on(_.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),B.on(_.Events.FRAG_LOADED,this.onFragLoaded,this),B.on(_.Events.ERROR,this.onError,this)},c._unregisterListeners=function(){var B=this.hls;B.off(_.Events.MANIFEST_LOADED,this.onManifestLoaded,this),B.off(_.Events.LEVEL_LOADED,this.onLevelLoaded,this),B.off(_.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),B.off(_.Events.FRAG_LOADED,this.onFragLoaded,this),B.off(_.Events.ERROR,this.onError,this)},c.destroy=function(){this._unregisterListeners(),this.manualLevelIndex=-1,this._levels.length=0,f.prototype.destroy.call(this)},c.startLoad=function(){var B=this._levels;B.forEach(function(w){w.loadError=0}),f.prototype.startLoad.call(this)},c.onManifestLoaded=function(B,w){var P=[],C=[],b=[],l,A={},g,T=!1,m=!1,y=!1;if(w.levels.forEach(function(H){var F=H.attrs;T=T||!!(H.width&&H.height),m=m||!!H.videoCodec,y=y||!!H.audioCodec,u&&H.audioCodec&&H.audioCodec.indexOf("mp4a.40.34")!==-1&&(H.audioCodec=void 0);var R=H.bitrate+"-"+H.attrs.RESOLUTION+"-"+H.attrs.CODECS;g=A[R],g?g.url.push(H.url):(g=new k.Level(H),A[R]=g,P.push(g)),F&&(F.AUDIO&&Object(x.addGroupId)(g,"audio",F.AUDIO),F.SUBTITLES&&Object(x.addGroupId)(g,"text",F.SUBTITLES))}),(T||m)&&y&&(P=P.filter(function(H){var F=H.videoCodec,R=H.width,z=H.height;return!!F||!!(R&&z)})),P=P.filter(function(H){var F=H.audioCodec,R=H.videoCodec;return(!F||Object(M.isCodecSupportedInMp4)(F,"audio"))&&(!R||Object(M.isCodecSupportedInMp4)(R,"video"))}),w.audioTracks&&(C=w.audioTracks.filter(function(H){return!H.audioCodec||Object(M.isCodecSupportedInMp4)(H.audioCodec,"audio")}),Object(x.assignTrackIdsByGroup)(C)),w.subtitles&&(b=w.subtitles,Object(x.assignTrackIdsByGroup)(b)),P.length>0){l=P[0].bitrate,P.sort(function(H,F){return H.bitrate-F.bitrate}),this._levels=P;for(var U=0;U<P.length;U++)if(P[U].bitrate===l){this._firstLevel=U,this.log("manifest loaded, "+P.length+" level(s) found, first bitrate: "+l);break}var N=y&&!m,S={levels:P,audioTracks:C,subtitleTracks:b,firstLevel:this._firstLevel,stats:w.stats,audio:y,video:m,altAudio:!N&&C.some(function(H){return!!H.url})};this.hls.trigger(_.Events.MANIFEST_PARSED,S),(this.hls.config.autoStartLoad||this.hls.forceStartLoad)&&this.hls.startLoad(this.hls.config.startPosition)}else this.hls.trigger(_.Events.ERROR,{type:O.ErrorTypes.MEDIA_ERROR,details:O.ErrorDetails.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:w.url,reason:"no level with compatible codecs found in manifest"})},c.onError=function(B,w){if(f.prototype.onError.call(this,B,w),w.fatal)return;var P=w.context,C=this._levels[this.currentLevelIndex];if(P&&(P.type===p.PlaylistContextType.AUDIO_TRACK&&C.audioGroupIds&&P.groupId===C.audioGroupIds[C.urlId]||P.type===p.PlaylistContextType.SUBTITLE_TRACK&&C.textGroupIds&&P.groupId===C.textGroupIds[C.urlId])){this.redundantFailover(this.currentLevelIndex);return}var b=!1,l=!0,A;switch(w.details){case O.ErrorDetails.FRAG_LOAD_ERROR:case O.ErrorDetails.FRAG_LOAD_TIMEOUT:case O.ErrorDetails.KEY_LOAD_ERROR:case O.ErrorDetails.KEY_LOAD_TIMEOUT:if(w.frag){var g=this._levels[w.frag.level];g?(g.fragmentError++,g.fragmentError>this.hls.config.fragLoadingMaxRetry&&(A=w.frag.level)):A=w.frag.level}break;case O.ErrorDetails.LEVEL_LOAD_ERROR:case O.ErrorDetails.LEVEL_LOAD_TIMEOUT:P&&(P.deliveryDirectives&&(l=!1),A=P.level),b=!0;break;case O.ErrorDetails.REMUX_ALLOC_ERROR:A=w.level,b=!0;break}A!==void 0&&this.recoverLevel(w,A,b,l)},c.recoverLevel=function(B,w,P,C){var b=B.details,l=this._levels[w];if(l.loadError++,P){var A=this.retryLoadingOrFail(B);if(A)B.levelRetry=!0;else{this.currentLevelIndex=-1;return}}if(C){var g=l.url.length;if(g>1&&l.loadError<g)B.levelRetry=!0,this.redundantFailover(w);else if(this.manualLevelIndex===-1){var T=w===0?this._levels.length-1:w-1;this.currentLevelIndex!==T&&this._levels[T].loadError===0&&(this.warn(b+": switch to "+T),B.levelRetry=!0,this.hls.nextAutoLevel=T)}}},c.redundantFailover=function(B){var w=this._levels[B],P=w.url.length;if(P>1){var C=(w.urlId+1)%P;this.warn("Switching to redundant URL-id "+C),this._levels.forEach(function(b){b.urlId=C}),this.level=B}},c.onFragLoaded=function(B,w){var P=w.frag;if(P!==void 0&&P.type===p.PlaylistLevelType.MAIN){var C=this._levels[P.level];C!==void 0&&(C.fragmentError=0,C.loadError=0)}},c.onLevelLoaded=function(B,w){var P,C=w.level,b=w.details,l=this._levels[C];if(!l){var A;this.warn("Invalid level index "+C),(A=w.deliveryDirectives)!==null&&A!==void 0&&A.skip&&(b.deltaUpdateFailed=!0);return}C===this.currentLevelIndex?(l.fragmentError===0&&(l.loadError=0,this.retryCount=0),this.playlistLoaded(C,w,l.details)):(P=w.deliveryDirectives)!==null&&P!==void 0&&P.skip&&(b.deltaUpdateFailed=!0)},c.onAudioTrackSwitched=function(B,w){var P=this.hls.levels[this.currentLevelIndex];if(!P)return;if(P.audioGroupIds){for(var C=-1,b=this.hls.audioTracks[w.id].groupId,l=0;l<P.audioGroupIds.length;l++)if(P.audioGroupIds[l]===b){C=l;break}C!==P.urlId&&(P.urlId=C,this.startLoad())}},c.loadPlaylist=function(B){var w=this.currentLevelIndex,P=this._levels[w];if(this.canLoad&&P&&P.url.length>0){var C=P.urlId,b=P.url[C];if(B)try{b=B.addDirectives(b)}catch(l){this.warn("Could not construct new URL with HLS Delivery Directives: "+l)}this.log("Attempt loading level index "+w+(B?" at sn "+B.msn+" part "+B.part:"")+" with URL-id "+C+" "+b),this.clearTimer(),this.hls.trigger(_.Events.LEVEL_LOADING,{url:b,level:w,id:C,deliveryDirectives:B||null})}},c.removeLevel=function(B,w){var P=function(l,A){return A!==w},C=this._levels.filter(function(b,l){return l!==B?!0:b.url.length>1&&w!==void 0?(b.url=b.url.filter(P),b.audioGroupIds&&(b.audioGroupIds=b.audioGroupIds.filter(P)),b.textGroupIds&&(b.textGroupIds=b.textGroupIds.filter(P)),b.urlId=0,!0):!1}).map(function(b,l){var A=b.details;return A!=null&&A.fragments&&A.fragments.forEach(function(g){g.level=l}),b});this._levels=C,this.hls.trigger(_.Events.LEVELS_UPDATED,{levels:C})},h(o,[{key:"levels",get:function(){return this._levels.length===0?null:this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(B){var w,P=this._levels;if(P.length===0)return;if(this.currentLevelIndex===B&&(w=P[B])!==null&&w!==void 0&&w.details)return;if(B<0||B>=P.length){var C=B<0;if(this.hls.trigger(_.Events.ERROR,{type:O.ErrorTypes.OTHER_ERROR,details:O.ErrorDetails.LEVEL_SWITCH_ERROR,level:B,fatal:C,reason:"invalid level idx"}),C)return;B=Math.min(B,P.length-1)}this.clearTimer();var b=this.currentLevelIndex,l=P[b],A=P[B];this.log("switching to level "+B+" from "+b),this.currentLevelIndex=B;var g=a({},A,{level:B,maxBitrate:A.maxBitrate,uri:A.uri,urlId:A.urlId});delete g._urlId,this.hls.trigger(_.Events.LEVEL_SWITCHING,g);var T=A.details;if(!T||T.live){var m=this.switchParams(A.uri,l==null?void 0:l.details);this.loadPlaylist(m)}}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(B){this.manualLevelIndex=B,this._startLevel===void 0&&(this._startLevel=B),B!==-1&&(this.level=B)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(B){this._firstLevel=B}},{key:"startLevel",get:function(){if(this._startLevel===void 0){var B=this.hls.config.startLevel;return B!==void 0?B:this._firstLevel}else return this._startLevel},set:function(B){this._startLevel=B}},{key:"nextLoadLevel",get:function(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(B){this.level=B,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=B)}}]),o}(n.default)},"./src/controller/level-helper.ts":function(Z,K,I){"use strict";I.r(K),I.d(K,"addGroupId",function(){return O}),I.d(K,"assignTrackIdsByGroup",function(){return M}),I.d(K,"updatePTS",function(){return x}),I.d(K,"updateFragPTSDTS",function(){return p}),I.d(K,"mergeDetails",function(){return a}),I.d(K,"mapPartIntersection",function(){return t}),I.d(K,"mapFragmentIntersection",function(){return h}),I.d(K,"adjustSliding",function(){return s}),I.d(K,"addSliding",function(){return i}),I.d(K,"computeReloadInterval",function(){return u}),I.d(K,"getFragmentWithSN",function(){return d}),I.d(K,"getPartWith",function(){return f});var k=I("./src/polyfills/number.ts"),_=I("./src/utils/logger.ts");function O(o,c,E){switch(c){case"audio":o.audioGroupIds||(o.audioGroupIds=[]),o.audioGroupIds.push(E);break;case"text":o.textGroupIds||(o.textGroupIds=[]),o.textGroupIds.push(E);break}}function M(o){var c={};o.forEach(function(E){var B=E.groupId||"";E.id=c[B]=c[B]||0,c[B]++})}function x(o,c,E){var B=o[c],w=o[E];n(B,w)}function n(o,c){var E=c.startPTS;if(Object(k.isFiniteNumber)(E)){var B=0,w;c.sn>o.sn?(B=E-o.start,w=o):(B=o.start-E,w=c),w.duration!==B&&(w.duration=B)}else if(c.sn>o.sn){var P=o.cc===c.cc;P&&o.minEndPTS?c.start=o.start+(o.minEndPTS-o.start):c.start=o.start+o.duration}else c.start=Math.max(o.start-c.duration,0)}function p(o,c,E,B,w,P){var C=B-E;C<=0&&(_.logger.warn("Fragment should have a positive duration",c),B=E+c.duration,P=w+c.duration);var b=E,l=B,A=c.startPTS,g=c.endPTS;if(Object(k.isFiniteNumber)(A)){var T=Math.abs(A-E);Object(k.isFiniteNumber)(c.deltaPTS)?c.deltaPTS=Math.max(T,c.deltaPTS):c.deltaPTS=T,b=Math.max(E,A),E=Math.min(E,A),w=Math.min(w,c.startDTS),l=Math.min(B,g),B=Math.max(B,g),P=Math.max(P,c.endDTS)}c.duration=B-E;var m=E-c.start;c.appendedPTS=B,c.start=c.startPTS=E,c.maxStartPTS=b,c.startDTS=w,c.endPTS=B,c.minEndPTS=l,c.endDTS=P;var y=c.sn;if(!o||y<o.startSN||y>o.endSN)return 0;var U,N=y-o.startSN,S=o.fragments;for(S[N]=c,U=N;U>0;U--)n(S[U],S[U-1]);for(U=N;U<S.length-1;U++)n(S[U],S[U+1]);return o.fragmentHint&&n(S[S.length-1],o.fragmentHint),o.PTSKnown=o.alignedSliding=!0,m}function a(o,c){for(var E=null,B=o.fragments,w=B.length-1;w>=0;w--){var P=B[w].initSegment;if(P){E=P;break}}o.fragmentHint&&delete o.fragmentHint.endPTS;var C=0,b;if(h(o,c,function(U,N){U.relurl&&(C=U.cc-N.cc),Object(k.isFiniteNumber)(U.startPTS)&&Object(k.isFiniteNumber)(U.endPTS)&&(N.start=N.startPTS=U.startPTS,N.startDTS=U.startDTS,N.appendedPTS=U.appendedPTS,N.maxStartPTS=U.maxStartPTS,N.endPTS=U.endPTS,N.endDTS=U.endDTS,N.minEndPTS=U.minEndPTS,N.duration=U.endPTS-U.startPTS,N.duration&&(b=N),c.PTSKnown=c.alignedSliding=!0),N.elementaryStreams=U.elementaryStreams,N.loader=U.loader,N.stats=U.stats,N.urlId=U.urlId,U.initSegment&&(N.initSegment=U.initSegment,E=U.initSegment)}),E){var l=c.fragmentHint?c.fragments.concat(c.fragmentHint):c.fragments;l.forEach(function(U){var N;(!U.initSegment||U.initSegment.relurl===((N=E)===null||N===void 0?void 0:N.relurl))&&(U.initSegment=E)})}if(c.skippedSegments&&(c.deltaUpdateFailed=c.fragments.some(function(U){return!U}),c.deltaUpdateFailed)){_.logger.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var A=c.skippedSegments;A--;)c.fragments.shift();c.startSN=c.fragments[0].sn,c.startCC=c.fragments[0].cc}var g=c.fragments;if(C){_.logger.warn("discontinuity sliding from playlist, take drift into account");for(var T=0;T<g.length;T++)g[T].cc+=C}c.skippedSegments&&(c.startCC=c.fragments[0].cc),t(o.partList,c.partList,function(U,N){N.elementaryStreams=U.elementaryStreams,N.stats=U.stats}),b?p(c,b,b.startPTS,b.endPTS,b.startDTS,b.endDTS):s(o,c),g.length&&(c.totalduration=c.edge-g[0].start),c.driftStartTime=o.driftStartTime,c.driftStart=o.driftStart;var m=c.advancedDateTime;if(c.advanced&&m){var y=c.edge;c.driftStart||(c.driftStartTime=m,c.driftStart=y),c.driftEndTime=m,c.driftEnd=y}else c.driftEndTime=o.driftEndTime,c.driftEnd=o.driftEnd,c.advancedDateTime=o.advancedDateTime}function t(o,c,E){if(o&&c)for(var B=0,w=0,P=o.length;w<=P;w++){var C=o[w],b=c[w+B];C&&b&&C.index===b.index&&C.fragment.sn===b.fragment.sn?E(C,b):B--}}function h(o,c,E){for(var B=c.skippedSegments,w=Math.max(o.startSN,c.startSN)-c.startSN,P=(o.fragmentHint?1:0)+(B?c.endSN:Math.min(o.endSN,c.endSN))-c.startSN,C=c.startSN-o.startSN,b=c.fragmentHint?c.fragments.concat(c.fragmentHint):c.fragments,l=o.fragmentHint?o.fragments.concat(o.fragmentHint):o.fragments,A=w;A<=P;A++){var g=l[C+A],T=b[A];B&&!T&&A<B&&(T=c.fragments[A]=g),g&&T&&E(g,T)}}function s(o,c){var E=c.startSN+c.skippedSegments-o.startSN,B=o.fragments;if(E<0||E>=B.length)return;i(c,B[E].start)}function i(o,c){if(c){for(var E=o.fragments,B=o.skippedSegments;B<E.length;B++)E[B].start+=c;o.fragmentHint&&(o.fragmentHint.start+=c)}}function u(o,c){var E=1e3*o.levelTargetDuration,B=E/2,w=o.age,P=w>0&&w<E*3,C=c.loading.end-c.loading.start,b,l=o.availabilityDelay;if(o.updated===!1)if(P){var A=333*o.misses;b=Math.max(Math.min(B,C*2),A),o.availabilityDelay=(o.availabilityDelay||0)+b}else b=B;else P?(l=Math.min(l||E/2,w),o.availabilityDelay=l,b=l+E-w):b=E-C;return Math.round(b)}function d(o,c,E){if(!o||!o.details)return null;var B=o.details,w=B.fragments[c-B.startSN];return w||(w=B.fragmentHint,w&&w.sn===c?w:c<B.startSN&&E&&E.sn===c?E:null)}function f(o,c,E){if(!o||!o.details)return null;var B=o.details.partList;if(B)for(var w=B.length;w--;){var P=B[w];if(P.index===E&&P.fragment.sn===c)return P}return null}},"./src/controller/stream-controller.ts":function(Z,K,I){"use strict";I.r(K),I.d(K,"default",function(){return B});var k=I("./src/polyfills/number.ts"),_=I("./src/controller/base-stream-controller.ts"),O=I("./src/is-supported.ts"),M=I("./src/events.ts"),x=I("./src/utils/buffer-helper.ts"),n=I("./src/controller/fragment-tracker.ts"),p=I("./src/types/loader.ts"),a=I("./src/loader/fragment.ts"),t=I("./src/demux/transmuxer-interface.ts"),h=I("./src/types/transmuxer.ts"),s=I("./src/controller/gap-controller.ts"),i=I("./src/errors.ts"),u=I("./src/utils/logger.ts");function d(w,P){for(var C=0;C<P.length;C++){var b=P[C];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(w,b.key,b)}}function f(w,P,C){return P&&d(w.prototype,P),C&&d(w,C),w}function o(w,P){w.prototype=Object.create(P.prototype),w.prototype.constructor=w,c(w,P)}function c(w,P){return c=Object.setPrototypeOf||function(b,l){return b.__proto__=l,b},c(w,P)}var E=100,B=function(w){o(P,w);function P(b,l){var A;return A=w.call(this,b,l,"[stream-controller]")||this,A.audioCodecSwap=!1,A.gapController=null,A.level=-1,A._forceStartLoad=!1,A.altAudio=!1,A.audioOnly=!1,A.fragPlaying=null,A.onvplaying=null,A.onvseeked=null,A.fragLastKbps=0,A.stalled=!1,A.couldBacktrack=!1,A.audioCodecSwitch=!1,A.videoBuffer=null,A._registerListeners(),A}var C=P.prototype;return C._registerListeners=function(){var l=this.hls;l.on(M.Events.MEDIA_ATTACHED,this.onMediaAttached,this),l.on(M.Events.MEDIA_DETACHING,this.onMediaDetaching,this),l.on(M.Events.MANIFEST_LOADING,this.onManifestLoading,this),l.on(M.Events.MANIFEST_PARSED,this.onManifestParsed,this),l.on(M.Events.LEVEL_LOADING,this.onLevelLoading,this),l.on(M.Events.LEVEL_LOADED,this.onLevelLoaded,this),l.on(M.Events.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),l.on(M.Events.ERROR,this.onError,this),l.on(M.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),l.on(M.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),l.on(M.Events.BUFFER_CREATED,this.onBufferCreated,this),l.on(M.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),l.on(M.Events.LEVELS_UPDATED,this.onLevelsUpdated,this),l.on(M.Events.FRAG_BUFFERED,this.onFragBuffered,this)},C._unregisterListeners=function(){var l=this.hls;l.off(M.Events.MEDIA_ATTACHED,this.onMediaAttached,this),l.off(M.Events.MEDIA_DETACHING,this.onMediaDetaching,this),l.off(M.Events.MANIFEST_LOADING,this.onManifestLoading,this),l.off(M.Events.MANIFEST_PARSED,this.onManifestParsed,this),l.off(M.Events.LEVEL_LOADED,this.onLevelLoaded,this),l.off(M.Events.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),l.off(M.Events.ERROR,this.onError,this),l.off(M.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),l.off(M.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),l.off(M.Events.BUFFER_CREATED,this.onBufferCreated,this),l.off(M.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),l.off(M.Events.LEVELS_UPDATED,this.onLevelsUpdated,this),l.off(M.Events.FRAG_BUFFERED,this.onFragBuffered,this)},C.onHandlerDestroying=function(){this._unregisterListeners(),this.onMediaDetaching()},C.startLoad=function(l){if(this.levels){var A=this.lastCurrentTime,g=this.hls;if(this.stopLoad(),this.setInterval(E),this.level=-1,this.fragLoadError=0,!this.startFragRequested){var T=g.startLevel;T===-1&&(g.config.testBandwidth?(T=0,this.bitrateTest=!0):T=g.nextAutoLevel),this.level=g.nextLoadLevel=T,this.loadedmetadata=!1}A>0&&l===-1&&(this.log("Override startPosition with lastCurrentTime @"+A.toFixed(3)),l=A),this.state=_.State.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=l,this.tick()}else this._forceStartLoad=!0,this.state=_.State.STOPPED},C.stopLoad=function(){this._forceStartLoad=!1,w.prototype.stopLoad.call(this)},C.doTick=function(){switch(this.state){case _.State.IDLE:this.doTickIdle();break;case _.State.WAITING_LEVEL:{var l,A=this.levels,g=this.level,T=A==null||((l=A[g])===null||l===void 0)?void 0:l.details;if(T&&(!T.live||this.levelLastLoaded===this.level)){if(this.waitForCdnTuneIn(T))break;this.state=_.State.IDLE;break}break}case _.State.FRAG_LOADING_WAITING_RETRY:{var m,y=self.performance.now(),U=this.retryDate;(!U||y>=U||(m=this.media)!==null&&m!==void 0&&m.seeking)&&(this.log("retryDate reached, switch back to IDLE state"),this.state=_.State.IDLE)}break;default:break}this.onTickEnd()},C.onTickEnd=function(){w.prototype.onTickEnd.call(this),this.checkBuffer(),this.checkFragmentChanged()},C.doTickIdle=function(){var l,A,g=this.hls,T=this.levelLastLoaded,m=this.levels,y=this.media,U=g.config,N=g.nextLoadLevel;if(T===null||!y&&(this.startFragRequested||!U.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;if(!m||!m[N])return;var S=m[N];this.level=g.nextLoadLevel=N;var H=S.details;if(!H||this.state===_.State.WAITING_LEVEL||H.live&&this.levelLastLoaded!==N){this.state=_.State.WAITING_LEVEL;return}var F=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:y,p.PlaylistLevelType.MAIN);if(F===null)return;var R=F.len,z=this.getMaxBufferLength(S.maxBitrate);if(R>=z)return;if(this._streamEnded(F,H)){var Q={};this.altAudio&&(Q.type="video"),this.hls.trigger(M.Events.BUFFER_EOS,Q),this.state=_.State.ENDED;return}var $=F.end,ee=this.getNextFragment($,H);if(this.couldBacktrack&&!this.fragPrevious&&ee&&ee.sn!=="initSegment"){var fe=ee.sn-H.startSN;fe>1&&(ee=H.fragments[fe-1],this.fragmentTracker.removeFragment(ee))}if(ee&&this.fragmentTracker.getState(ee)===n.FragmentState.OK&&this.nextLoadPosition>$){var Ae=this.audioOnly&&!this.altAudio?a.ElementaryStreamTypes.AUDIO:a.ElementaryStreamTypes.VIDEO;this.afterBufferFlushed(y,Ae,p.PlaylistLevelType.MAIN),ee=this.getNextFragment(this.nextLoadPosition,H)}if(!ee)return;ee.initSegment&&!ee.initSegment.data&&!this.bitrateTest&&(ee=ee.initSegment),((l=ee.decryptdata)===null||l===void 0?void 0:l.keyFormat)==="identity"&&!((A=ee.decryptdata)!==null&&A!==void 0&&A.key)?this.loadKey(ee,H):this.loadFragment(ee,H,$)},C.loadFragment=function(l,A,g){var T,m=this.fragmentTracker.getState(l);if(this.fragCurrent=l,m===n.FragmentState.BACKTRACKED){var y=this.fragmentTracker.getBacktrackData(l);if(y){this._handleFragmentLoadProgress(y),this._handleFragmentLoadComplete(y);return}else m=n.FragmentState.NOT_LOADED}m===n.FragmentState.NOT_LOADED||m===n.FragmentState.PARTIAL?l.sn==="initSegment"?this._loadInitSegment(l):this.bitrateTest?(l.bitrateTest=!0,this.log("Fragment "+l.sn+" of level "+l.level+" is being downloaded to test bitrate and will not be buffered"),this._loadBitrateTestFrag(l)):(this.startFragRequested=!0,w.prototype.loadFragment.call(this,l,A,g)):m===n.FragmentState.APPENDING?this.reduceMaxBufferLength(l.duration)&&this.fragmentTracker.removeFragment(l):((T=this.media)===null||T===void 0?void 0:T.buffered.length)===0&&this.fragmentTracker.removeAllFragments()},C.getAppendedFrag=function(l){var A=this.fragmentTracker.getAppendedFrag(l,p.PlaylistLevelType.MAIN);return A&&"fragment"in A?A.fragment:A},C.getBufferedFrag=function(l){return this.fragmentTracker.getBufferedFrag(l,p.PlaylistLevelType.MAIN)},C.followingBufferedFrag=function(l){return l?this.getBufferedFrag(l.end+.5):null},C.immediateLevelSwitch=function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},C.nextLevelSwitch=function(){var l=this.levels,A=this.media;if(A!=null&&A.readyState){var g,T=this.getAppendedFrag(A.currentTime);if(T&&T.start>1&&this.flushMainBuffer(0,T.start-1),!A.paused&&l){var m=this.hls.nextLoadLevel,y=l[m],U=this.fragLastKbps;U&&this.fragCurrent?g=this.fragCurrent.duration*y.maxBitrate/(1e3*U)+1:g=0}else g=0;var N=this.getBufferedFrag(A.currentTime+g);if(N){var S=this.followingBufferedFrag(N);if(S){this.abortCurrentFrag();var H=S.maxStartPTS?S.maxStartPTS:S.start,F=S.duration,R=Math.max(N.end,H+Math.min(Math.max(F-this.config.maxFragLookUpTolerance,F*.5),F*.75));this.flushMainBuffer(R,Number.POSITIVE_INFINITY)}}}},C.abortCurrentFrag=function(){var l=this.fragCurrent;this.fragCurrent=null,l!=null&&l.loader&&l.loader.abort(),this.state===_.State.KEY_LOADING&&(this.state=_.State.IDLE),this.nextLoadPosition=this.getLoadPosition()},C.flushMainBuffer=function(l,A){w.prototype.flushMainBuffer.call(this,l,A,this.altAudio?"video":null)},C.onMediaAttached=function(l,A){w.prototype.onMediaAttached.call(this,l,A);var g=A.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),g.addEventListener("playing",this.onvplaying),g.addEventListener("seeked",this.onvseeked),this.gapController=new s.default(this.config,g,this.fragmentTracker,this.hls)},C.onMediaDetaching=function(){var l=this.media;l&&(l.removeEventListener("playing",this.onvplaying),l.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),w.prototype.onMediaDetaching.call(this)},C.onMediaPlaying=function(){this.tick()},C.onMediaSeeked=function(){var l=this.media,A=l?l.currentTime:null;Object(k.isFiniteNumber)(A)&&this.log("Media seeked to "+A.toFixed(3)),this.tick()},C.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},C.onManifestParsed=function(l,A){var g=!1,T=!1,m;A.levels.forEach(function(y){m=y.audioCodec,m&&(m.indexOf("mp4a.40.2")!==-1&&(g=!0),m.indexOf("mp4a.40.5")!==-1&&(T=!0))}),this.audioCodecSwitch=g&&T&&!Object(O.changeTypeSupported)(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=A.levels,this.startFragRequested=!1},C.onLevelLoading=function(l,A){var g=this.levels;if(!g||this.state!==_.State.IDLE)return;var T=g[A.level];(!T.details||T.details.live&&this.levelLastLoaded!==A.level||this.waitForCdnTuneIn(T.details))&&(this.state=_.State.WAITING_LEVEL)},C.onLevelLoaded=function(l,A){var g,T=this.levels,m=A.level,y=A.details,U=y.totalduration;if(!T){this.warn("Levels were reset while loading level "+m);return}this.log("Level "+m+" loaded ["+y.startSN+","+y.endSN+"], cc ["+y.startCC+", "+y.endCC+"] duration:"+U);var N=this.fragCurrent;N&&(this.state===_.State.FRAG_LOADING||this.state===_.State.FRAG_LOADING_WAITING_RETRY)&&(N.level!==A.level&&N.loader&&(this.state=_.State.IDLE,N.loader.abort()));var S=T[m],H=0;if(y.live||(g=S.details)!==null&&g!==void 0&&g.live){if(y.fragments[0]||(y.deltaUpdateFailed=!0),y.deltaUpdateFailed)return;H=this.alignPlaylists(y,S.details)}if(S.details=y,this.levelLastLoaded=m,this.hls.trigger(M.Events.LEVEL_UPDATED,{details:y,level:m}),this.state===_.State.WAITING_LEVEL){if(this.waitForCdnTuneIn(y))return;this.state=_.State.IDLE}this.startFragRequested?y.live&&this.synchronizeToLiveEdge(y):this.setStartPosition(y,H),this.tick()},C._handleFragmentLoadProgress=function(l){var A,g=l.frag,T=l.part,m=l.payload,y=this.levels;if(!y){this.warn("Levels were reset while fragment load was in progress. Fragment "+g.sn+" of level "+g.level+" will not be buffered");return}var U=y[g.level],N=U.details;if(!N){this.warn("Dropping fragment "+g.sn+" of level "+g.level+" after level details were reset");return}var S=U.videoCodec,H=N.PTSKnown||!N.live,F=(A=g.initSegment)===null||A===void 0?void 0:A.data,R=this._getAudioCodec(U),z=this.transmuxer=this.transmuxer||new t.default(this.hls,p.PlaylistLevelType.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),Q=T?T.index:-1,$=Q!==-1,ee=new h.ChunkMetadata(g.level,g.sn,g.stats.chunkCount,m.byteLength,Q,$),fe=this.initPTS[g.cc];z.push(m,F,R,S,g,T,N.totalduration,H,ee,fe)},C.onAudioTrackSwitching=function(l,A){var g=this.altAudio,T=!!A.url,m=A.id;if(!T){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var y=this.fragCurrent;y!=null&&y.loader&&(this.log("Switching to main audio track, cancel main fragment load"),y.loader.abort()),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();var U=this.hls;g&&U.trigger(M.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),U.trigger(M.Events.AUDIO_TRACK_SWITCHED,{id:m})}},C.onAudioTrackSwitched=function(l,A){var g=A.id,T=!!this.hls.audioTracks[g].url;if(T){var m=this.videoBuffer;m&&this.mediaBuffer!==m&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=m)}this.altAudio=T,this.tick()},C.onBufferCreated=function(l,A){var g=A.tracks,T,m,y=!1;for(var U in g){var N=g[U];if(N.id==="main"){if(m=U,T=N,U==="video"){var S=g[U];S&&(this.videoBuffer=S.buffer)}}else y=!0}y&&T?(this.log("Alternate track found, use "+m+".buffered to schedule main fragment loading"),this.mediaBuffer=T.buffer):this.mediaBuffer=this.media},C.onFragBuffered=function(l,A){var g=A.frag,T=A.part;if(g&&g.type!==p.PlaylistLevelType.MAIN)return;if(this.fragContextChanged(g)){this.warn("Fragment "+g.sn+(T?" p: "+T.index:"")+" of level "+g.level+" finished buffering, but was aborted. state: "+this.state),this.state===_.State.PARSED&&(this.state=_.State.IDLE);return}var m=T?T.stats:g.stats;this.fragLastKbps=Math.round(8*m.total/(m.buffering.end-m.loading.first)),g.sn!=="initSegment"&&(this.fragPrevious=g),this.fragBufferedComplete(g,T)},C.onError=function(l,A){switch(A.details){case i.ErrorDetails.FRAG_LOAD_ERROR:case i.ErrorDetails.FRAG_LOAD_TIMEOUT:case i.ErrorDetails.KEY_LOAD_ERROR:case i.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(p.PlaylistLevelType.MAIN,A);break;case i.ErrorDetails.LEVEL_LOAD_ERROR:case i.ErrorDetails.LEVEL_LOAD_TIMEOUT:this.state!==_.State.ERROR&&(A.fatal?(this.warn(""+A.details),this.state=_.State.ERROR):!A.levelRetry&&this.state===_.State.WAITING_LEVEL&&(this.state=_.State.IDLE));break;case i.ErrorDetails.BUFFER_FULL_ERROR:if(A.parent==="main"&&(this.state===_.State.PARSING||this.state===_.State.PARSED)){var g=!0,T=this.getFwdBufferInfo(this.media,p.PlaylistLevelType.MAIN);T&&T.len>.5&&(g=!this.reduceMaxBufferLength(T.len)),g&&(this.warn("buffer full error also media.currentTime is not buffered, flush main"),this.immediateLevelSwitch()),this.resetLoadingState()}break;default:break}},C.checkBuffer=function(){var l=this.media,A=this.gapController;if(!l||!A||!l.readyState)return;var g=x.BufferHelper.getBuffered(l);!this.loadedmetadata&&g.length?(this.loadedmetadata=!0,this.seekToStartPos()):A.poll(this.lastCurrentTime),this.lastCurrentTime=l.currentTime},C.onFragLoadEmergencyAborted=function(){this.state=_.State.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()},C.onBufferFlushed=function(l,A){var g=A.type;if(g!==a.ElementaryStreamTypes.AUDIO||this.audioOnly&&!this.altAudio){var T=(g===a.ElementaryStreamTypes.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(T,g,p.PlaylistLevelType.MAIN)}},C.onLevelsUpdated=function(l,A){this.levels=A.levels},C.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},C.seekToStartPos=function(){var l=this.media,A=l.currentTime,g=this.startPosition;if(g>=0&&A<g){if(l.seeking){u.logger.log("could not seek to "+g+", already seeking at "+A);return}var T=x.BufferHelper.getBuffered(l),m=T.length?T.start(0):0,y=m-g;y>0&&(y<this.config.maxBufferHole||y<this.config.maxFragLookUpTolerance)&&(u.logger.log("adjusting start position by "+y+" to match buffer start"),g+=y,this.startPosition=g),this.log("seek to target start position "+g+" from current time "+A),l.currentTime=g}},C._getAudioCodec=function(l){var A=this.config.defaultAudioCodec||l.audioCodec;return this.audioCodecSwap&&A&&(this.log("Swapping audio codec"),A.indexOf("mp4a.40.5")!==-1?A="mp4a.40.2":A="mp4a.40.5"),A},C._loadBitrateTestFrag=function(l){var A=this;this._doFragLoad(l).then(function(g){var T=A.hls;if(!g||T.nextLoadLevel||A.fragContextChanged(l))return;A.fragLoadError=0,A.state=_.State.IDLE,A.startFragRequested=!1,A.bitrateTest=!1;var m=l.stats;m.parsing.start=m.parsing.end=m.buffering.start=m.buffering.end=self.performance.now(),T.trigger(M.Events.FRAG_LOADED,g)})},C._handleTransmuxComplete=function(l){var A,g="main",T=this.hls,m=l.remuxResult,y=l.chunkMeta,U=this.getCurrentContext(y);if(!U){this.warn("The loading context changed while buffering fragment "+y.sn+" of level "+y.level+". This chunk will not be buffered."),this.resetLiveStartWhenNotLoaded(y.level);return}var N=U.frag,S=U.part,H=U.level,F=m.video,R=m.text,z=m.id3,Q=m.initSegment,$=this.altAudio?void 0:m.audio;if(this.fragContextChanged(N))return;if(this.state=_.State.PARSING,Q){Q.tracks&&(this._bufferInitSegment(H,Q.tracks,N,y),T.trigger(M.Events.FRAG_PARSING_INIT_SEGMENT,{frag:N,id:g,tracks:Q.tracks}));var ee=Q.initPTS,fe=Q.timescale;Object(k.isFiniteNumber)(ee)&&(this.initPTS[N.cc]=ee,T.trigger(M.Events.INIT_PTS_FOUND,{frag:N,id:g,initPTS:ee,timescale:fe}))}if(F&&m.independent!==!1){if(H.details){var Ae=F.startPTS,ce=F.endPTS,ie=F.startDTS,be=F.endDTS;if(S)S.elementaryStreams[F.type]={startPTS:Ae,endPTS:ce,startDTS:ie,endDTS:be};else if(F.firstKeyFrame&&F.independent&&(this.couldBacktrack=!0),F.dropped&&F.independent){var se=this.getLoadPosition()+this.config.maxBufferHole;if(se<Ae){this.backtrack(N);return}N.setElementaryStreamInfo(F.type,N.start,ce,N.start,be,!0)}N.setElementaryStreamInfo(F.type,Ae,ce,ie,be),this.bufferFragmentData(F,N,S,y)}}else if(m.independent===!1){this.backtrack(N);return}if($){var me=$.startPTS,le=$.endPTS,ge=$.startDTS,ae=$.endDTS;S&&(S.elementaryStreams[a.ElementaryStreamTypes.AUDIO]={startPTS:me,endPTS:le,startDTS:ge,endDTS:ae}),N.setElementaryStreamInfo(a.ElementaryStreamTypes.AUDIO,me,le,ge,ae),this.bufferFragmentData($,N,S,y)}if(z!=null&&(A=z.samples)!==null&&A!==void 0&&A.length){var pe={frag:N,id:g,samples:z.samples};T.trigger(M.Events.FRAG_PARSING_METADATA,pe)}if(R){var Me={frag:N,id:g,samples:R.samples};T.trigger(M.Events.FRAG_PARSING_USERDATA,Me)}},C._bufferInitSegment=function(l,A,g,T){var m=this;if(this.state!==_.State.PARSING)return;this.audioOnly=!!A.audio&&!A.video,this.altAudio&&!this.audioOnly&&delete A.audio;var y=A.audio,U=A.video,N=A.audiovideo;if(y){var S=l.audioCodec,H=navigator.userAgent.toLowerCase();this.audioCodecSwitch&&(S&&(S.indexOf("mp4a.40.5")!==-1?S="mp4a.40.2":S="mp4a.40.5"),y.metadata.channelCount!==1&&H.indexOf("firefox")===-1&&(S="mp4a.40.5")),H.indexOf("android")!==-1&&y.container!=="audio/mpeg"&&(S="mp4a.40.2",this.log("Android: force audio codec to "+S)),l.audioCodec&&l.audioCodec!==S&&this.log('Swapping manifest audio codec "'+l.audioCodec+'" for "'+S+'"'),y.levelCodec=S,y.id="main",this.log("Init audio buffer, container:"+y.container+", codecs[selected/level/parsed]=["+(S||"")+"/"+(l.audioCodec||"")+"/"+y.codec+"]")}U&&(U.levelCodec=l.videoCodec,U.id="main",this.log("Init video buffer, container:"+U.container+", codecs[level/parsed]=["+(l.videoCodec||"")+"/"+U.codec+"]")),N&&this.log("Init audiovideo buffer, container:"+N.container+", codecs[level/parsed]=["+(l.attrs.CODECS||"")+"/"+N.codec+"]"),this.hls.trigger(M.Events.BUFFER_CODECS,A),Object.keys(A).forEach(function(F){var R=A[F],z=R.initSegment;z!=null&&z.byteLength&&m.hls.trigger(M.Events.BUFFER_APPENDING,{type:F,data:z,frag:g,part:null,chunkMeta:T,parent:g.type})}),this.tick()},C.backtrack=function(l){this.couldBacktrack=!0,this.resetTransmuxer(),this.flushBufferGap(l);var A=this.fragmentTracker.backtrack(l);this.fragPrevious=null,this.nextLoadPosition=l.start,A?this.resetFragmentLoading(l):this.state=_.State.BACKTRACKING},C.checkFragmentChanged=function(){var l=this.media,A=null;if(l&&l.readyState>1&&l.seeking===!1){var g=l.currentTime;if(x.BufferHelper.isBuffered(l,g)?A=this.getAppendedFrag(g):x.BufferHelper.isBuffered(l,g+.1)&&(A=this.getAppendedFrag(g+.1)),A){var T=this.fragPlaying,m=A.level;(!T||A.sn!==T.sn||T.level!==m||A.urlId!==T.urlId)&&(this.hls.trigger(M.Events.FRAG_CHANGED,{frag:A}),(!T||T.level!==m)&&this.hls.trigger(M.Events.LEVEL_SWITCHED,{level:m}),this.fragPlaying=A)}}},f(P,[{key:"nextLevel",get:function(){var l=this.nextBufferedFrag;return l?l.level:-1}},{key:"currentLevel",get:function(){var l=this.media;if(l){var A=this.getAppendedFrag(l.currentTime);if(A)return A.level}return-1}},{key:"nextBufferedFrag",get:function(){var l=this.media;if(l){var A=this.getAppendedFrag(l.currentTime);return this.followingBufferedFrag(A)}else return null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}]),P}(_.default)},"./src/controller/subtitle-stream-controller.ts":function(Z,K,I){"use strict";I.r(K),I.d(K,"SubtitleStreamController",function(){return o});var k=I("./src/events.ts"),_=I("./src/utils/logger.ts"),O=I("./src/utils/buffer-helper.ts"),M=I("./src/controller/fragment-finders.ts"),x=I("./src/utils/discontinuities.ts"),n=I("./src/controller/level-helper.ts"),p=I("./src/controller/fragment-tracker.ts"),a=I("./src/controller/base-stream-controller.ts"),t=I("./src/types/loader.ts"),h=I("./src/types/level.ts");function s(c,E){for(var B=0;B<E.length;B++){var w=E[B];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(c,w.key,w)}}function i(c,E,B){return E&&s(c.prototype,E),B&&s(c,B),c}function u(c,E){c.prototype=Object.create(E.prototype),c.prototype.constructor=c,d(c,E)}function d(c,E){return d=Object.setPrototypeOf||function(w,P){return w.__proto__=P,w},d(c,E)}var f=500,o=function(c){u(E,c);function E(w,P){var C;return C=c.call(this,w,P,"[subtitle-stream-controller]")||this,C.levels=[],C.currentTrackId=-1,C.tracksBuffered=[],C.mainDetails=null,C._registerListeners(),C}var B=E.prototype;return B.onHandlerDestroying=function(){this._unregisterListeners(),this.mainDetails=null},B._registerListeners=function(){var P=this.hls;P.on(k.Events.MEDIA_ATTACHED,this.onMediaAttached,this),P.on(k.Events.MEDIA_DETACHING,this.onMediaDetaching,this),P.on(k.Events.MANIFEST_LOADING,this.onManifestLoading,this),P.on(k.Events.LEVEL_LOADED,this.onLevelLoaded,this),P.on(k.Events.ERROR,this.onError,this),P.on(k.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),P.on(k.Events.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),P.on(k.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),P.on(k.Events.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),P.on(k.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},B._unregisterListeners=function(){var P=this.hls;P.off(k.Events.MEDIA_ATTACHED,this.onMediaAttached,this),P.off(k.Events.MEDIA_DETACHING,this.onMediaDetaching,this),P.off(k.Events.MANIFEST_LOADING,this.onManifestLoading,this),P.off(k.Events.LEVEL_LOADED,this.onLevelLoaded,this),P.off(k.Events.ERROR,this.onError,this),P.off(k.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),P.off(k.Events.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),P.off(k.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),P.off(k.Events.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),P.off(k.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},B.startLoad=function(){this.stopLoad(),this.state=a.State.IDLE,this.setInterval(f),this.tick()},B.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments()},B.onLevelLoaded=function(P,C){this.mainDetails=C.details},B.onSubtitleFragProcessed=function(P,C){var b=C.frag,l=C.success;if(this.fragPrevious=b,this.state=a.State.IDLE,!l)return;var A=this.tracksBuffered[this.currentTrackId];if(!A)return;for(var g,T=b.start,m=0;m<A.length;m++)if(T>=A[m].start&&T<=A[m].end){g=A[m];break}var y=b.start+b.duration;g?g.end=y:(g={start:T,end:y},A.push(g)),this.fragmentTracker.fragBuffered(b)},B.onBufferFlushing=function(P,C){var b=C.startOffset,l=C.endOffset;if(b===0&&l!==Number.POSITIVE_INFINITY){var A=this.currentTrackId,g=this.levels;if(!g.length||!g[A]||!g[A].details)return;var T=g[A].details,m=T.targetduration,y=l-m;if(y<=0)return;C.endOffsetSubtitles=Math.max(0,y),this.tracksBuffered.forEach(function(U){for(var N=0;N<U.length;){if(U[N].end<=y){U.shift();continue}else if(U[N].start<y)U[N].start=y;else break;N++}}),this.fragmentTracker.removeFragmentsInRange(b,y,t.PlaylistLevelType.SUBTITLE)}},B.onError=function(P,C){var b,l=C.frag;if(!l||l.type!==t.PlaylistLevelType.SUBTITLE)return;(b=this.fragCurrent)!==null&&b!==void 0&&b.loader&&this.fragCurrent.loader.abort(),this.state=a.State.IDLE},B.onSubtitleTracksUpdated=function(P,C){var b=this,l=C.subtitleTracks;this.tracksBuffered=[],this.levels=l.map(function(A){return new h.Level(A)}),this.fragmentTracker.removeAllFragments(),this.fragPrevious=null,this.levels.forEach(function(A){b.tracksBuffered[A.id]=[]}),this.mediaBuffer=null},B.onSubtitleTrackSwitch=function(P,C){if(this.currentTrackId=C.id,!this.levels.length||this.currentTrackId===-1){this.clearInterval();return}var b=this.levels[this.currentTrackId];b!=null&&b.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,b&&this.setInterval(f)},B.onSubtitleTrackLoaded=function(P,C){var b,l=C.details,A=C.id,g=this.currentTrackId,T=this.levels;if(!T.length)return;var m=T[g];if(A>=T.length||A!==g||!m)return;if(this.mediaBuffer=this.mediaBufferTimeRanges,l.live||(b=m.details)!==null&&b!==void 0&&b.live){var y=this.mainDetails;if(l.deltaUpdateFailed||!y)return;var U=y.fragments[0];if(!m.details)l.hasProgramDateTime&&y.hasProgramDateTime?Object(x.alignMediaPlaylistByPDT)(l,y):U&&Object(n.addSliding)(l,U.start);else{var N=this.alignPlaylists(l,m.details);N===0&&U&&Object(n.addSliding)(l,U.start)}}if(m.details=l,this.levelLastLoaded=A,this.tick(),l.live&&!this.fragCurrent&&this.media&&this.state===a.State.IDLE){var S=Object(M.findFragmentByPTS)(null,l.fragments,this.media.currentTime,0);S||(this.warn("Subtitle playlist not aligned with playback"),m.details=void 0)}},B._handleFragmentLoadComplete=function(P){var C=P.frag,b=P.payload,l=C.decryptdata,A=this.hls;if(this.fragContextChanged(C))return;if(b&&b.byteLength>0&&l&&l.key&&l.iv&&l.method==="AES-128"){var g=performance.now();this.decrypter.webCryptoDecrypt(new Uint8Array(b),l.key.buffer,l.iv.buffer).then(function(T){var m=performance.now();A.trigger(k.Events.FRAG_DECRYPTED,{frag:C,payload:T,stats:{tstart:g,tdecrypt:m}})})}},B.doTick=function(){if(!this.media){this.state=a.State.IDLE;return}if(this.state===a.State.IDLE){var P,C=this.currentTrackId,b=this.levels;if(!b.length||!b[C]||!b[C].details)return;var l=b[C].details,A=l.targetduration,g=this.config,T=this.media,m=O.BufferHelper.bufferedInfo(this.mediaBufferTimeRanges,T.currentTime-A,g.maxBufferHole),y=m.end,U=m.len,N=this.getMaxBufferLength()+A;if(U>N)return;console.assert(l,"Subtitle track details are defined on idle subtitle stream controller tick");var S=l.fragments,H=S.length,F=l.edge,R,z=this.fragPrevious;if(y<F){var Q=g.maxFragLookUpTolerance;z&&l.hasProgramDateTime&&(R=Object(M.findFragmentByPDT)(S,z.endProgramDateTime,Q)),R||(R=Object(M.findFragmentByPTS)(z,S,y,Q),!R&&z&&z.start<S[0].start&&(R=S[0]))}else R=S[H-1];(P=R)!==null&&P!==void 0&&P.encrypted?(_.logger.log("Loading key for "+R.sn),this.state=a.State.KEY_LOADING,this.hls.trigger(k.Events.KEY_LOADING,{frag:R})):R&&this.fragmentTracker.getState(R)===p.FragmentState.NOT_LOADED&&this.loadFragment(R,l,y)}},B.loadFragment=function(P,C,b){this.fragCurrent=P,c.prototype.loadFragment.call(this,P,C,b)},i(E,[{key:"mediaBufferTimeRanges",get:function(){return this.tracksBuffered[this.currentTrackId]||[]}}]),E}(a.default)},"./src/controller/subtitle-track-controller.ts":function(Z,K,I){"use strict";I.r(K);var k=I("./src/events.ts"),_=I("./src/utils/texttrack-utils.ts"),O=I("./src/controller/base-playlist-controller.ts"),M=I("./src/types/loader.ts");function x(s,i){for(var u=0;u<i.length;u++){var d=i[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(s,d.key,d)}}function n(s,i,u){return i&&x(s.prototype,i),u&&x(s,u),s}function p(s,i){s.prototype=Object.create(i.prototype),s.prototype.constructor=s,a(s,i)}function a(s,i){return a=Object.setPrototypeOf||function(d,f){return d.__proto__=f,d},a(s,i)}var t=function(s){p(i,s);function i(d){var f;return f=s.call(this,d,"[subtitle-track-controller]")||this,f.media=null,f.tracks=[],f.groupId=null,f.tracksInGroup=[],f.trackId=-1,f.selectDefaultTrack=!0,f.queuedDefaultTrack=-1,f.trackChangeListener=function(){return f.onTextTracksChanged()},f.asyncPollTrackChange=function(){return f.pollTrackChange(0)},f.useTextTrackPolling=!1,f.subtitlePollingInterval=-1,f.subtitleDisplay=!0,f.registerListeners(),f}var u=i.prototype;return u.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.trackChangeListener=this.asyncPollTrackChange=null,s.prototype.destroy.call(this)},u.registerListeners=function(){var f=this.hls;f.on(k.Events.MEDIA_ATTACHED,this.onMediaAttached,this),f.on(k.Events.MEDIA_DETACHING,this.onMediaDetaching,this),f.on(k.Events.MANIFEST_LOADING,this.onManifestLoading,this),f.on(k.Events.MANIFEST_PARSED,this.onManifestParsed,this),f.on(k.Events.LEVEL_LOADING,this.onLevelLoading,this),f.on(k.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),f.on(k.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),f.on(k.Events.ERROR,this.onError,this)},u.unregisterListeners=function(){var f=this.hls;f.off(k.Events.MEDIA_ATTACHED,this.onMediaAttached,this),f.off(k.Events.MEDIA_DETACHING,this.onMediaDetaching,this),f.off(k.Events.MANIFEST_LOADING,this.onManifestLoading,this),f.off(k.Events.MANIFEST_PARSED,this.onManifestParsed,this),f.off(k.Events.LEVEL_LOADING,this.onLevelLoading,this),f.off(k.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),f.off(k.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),f.off(k.Events.ERROR,this.onError,this)},u.onMediaAttached=function(f,o){if(this.media=o.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)},u.pollTrackChange=function(f){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.trackChangeListener,f)},u.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 f=h(this.media.textTracks);f.forEach(function(o){Object(_.clearCurrentCues)(o)}),this.subtitleTrack=-1,this.media=null},u.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.selectDefaultTrack=!0},u.onManifestParsed=function(f,o){this.tracks=o.subtitleTracks},u.onSubtitleTrackLoaded=function(f,o){var c=o.id,E=o.details,B=this.trackId,w=this.tracksInGroup[B];if(!w){this.warn("Invalid subtitle track id "+c);return}var P=w.details;w.details=o.details,this.log("subtitle track "+c+" loaded ["+E.startSN+"-"+E.endSN+"]"),c===this.trackId&&(this.retryCount=0,this.playlistLoaded(c,o,P))},u.onLevelLoading=function(f,o){this.switchLevel(o.level)},u.onLevelSwitching=function(f,o){this.switchLevel(o.level)},u.switchLevel=function(f){var o=this.hls.levels[f];if(!(o!=null&&o.textGroupIds))return;var c=o.textGroupIds[o.urlId];if(this.groupId!==c){var E=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0,B=this.tracks.filter(function(C){return!c||C.groupId===c});this.tracksInGroup=B;var w=this.findTrackId(E==null?void 0:E.name)||this.findTrackId();this.groupId=c;var P={subtitleTracks:B};this.log("Updating subtitle tracks, "+B.length+' track(s) found in "'+c+'" group-id'),this.hls.trigger(k.Events.SUBTITLE_TRACKS_UPDATED,P),w!==-1&&this.setSubtitleTrack(w,E)}},u.findTrackId=function(f){for(var o=this.tracksInGroup,c=0;c<o.length;c++){var E=o[c];if((!this.selectDefaultTrack||E.default)&&(!f||f===E.name))return E.id}return-1},u.onError=function(f,o){if(s.prototype.onError.call(this,f,o),o.fatal||!o.context)return;o.context.type===M.PlaylistContextType.SUBTITLE_TRACK&&o.context.id===this.trackId&&o.context.groupId===this.groupId&&this.retryLoadingOrFail(o)},u.loadPlaylist=function(f){var o=this.tracksInGroup[this.trackId];if(this.shouldLoadTrack(o)){var c=o.id,E=o.groupId,B=o.url;if(f)try{B=f.addDirectives(B)}catch(w){this.warn("Could not construct new URL with HLS Delivery Directives: "+w)}this.log("Loading subtitle playlist for id "+c),this.hls.trigger(k.Events.SUBTITLE_TRACK_LOADING,{url:B,id:c,groupId:E,deliveryDirectives:f||null})}},u.toggleTrackModes=function(f){var o=this,c=this.media,E=this.subtitleDisplay,B=this.trackId;if(!c)return;var w=h(c.textTracks),P=w.filter(function(l){return l.groupId===o.groupId});if(f===-1)[].slice.call(w).forEach(function(l){l.mode="disabled"});else{var C=P[B];C&&(C.mode="disabled")}var b=P[f];b&&(b.mode=E?"showing":"hidden")},u.setSubtitleTrack=function(f,o){var c,E=this.tracksInGroup;if(!this.media){this.queuedDefaultTrack=f;return}if(this.trackId!==f&&this.toggleTrackModes(f),this.trackId===f&&(f===-1||(c=E[f])!==null&&c!==void 0&&c.details)||f<-1||f>=E.length)return;this.clearTimer();var B=E[f];if(this.log("Switching to subtitle track "+f),this.trackId=f,B){var w=B.id,P=B.groupId,C=P===void 0?"":P,b=B.name,l=B.type,A=B.url;this.hls.trigger(k.Events.SUBTITLE_TRACK_SWITCH,{id:w,groupId:C,name:b,type:l,url:A});var g=this.switchParams(B.url,o==null?void 0:o.details);this.loadPlaylist(g)}else this.hls.trigger(k.Events.SUBTITLE_TRACK_SWITCH,{id:f})},u.onTextTracksChanged=function(){if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;for(var f=-1,o=h(this.media.textTracks),c=0;c<o.length;c++)if(o[c].mode==="hidden")f=c;else if(o[c].mode==="showing"){f=c;break}this.subtitleTrack!==f&&(this.subtitleTrack=f)},n(i,[{key:"subtitleTracks",get:function(){return this.tracksInGroup}},{key:"subtitleTrack",get:function(){return this.trackId},set:function(f){this.selectDefaultTrack=!1;var o=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0;this.setSubtitleTrack(f,o)}}]),i}(O.default);function h(s){for(var i=[],u=0;u<s.length;u++){var d=s[u];d.kind==="subtitles"&&d.label&&i.push(s[u])}return i}K.default=t},"./src/controller/timeline-controller.ts":function(Z,K,I){"use strict";I.r(K),I.d(K,"TimelineController",function(){return h});var k=I("./src/polyfills/number.ts"),_=I("./src/events.ts"),O=I("./src/utils/cea-608-parser.ts"),M=I("./src/utils/output-filter.ts"),x=I("./src/utils/webvtt-parser.ts"),n=I("./src/utils/texttrack-utils.ts"),p=I("./src/utils/imsc1-ttml-parser.ts"),a=I("./src/types/loader.ts"),t=I("./src/utils/logger.ts"),h=function(){function d(o){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=u(),this.captionsProperties=void 0,this.hls=o,this.config=o.config,this.Cues=o.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 c=new M.default(this,"textTrack1"),E=new M.default(this,"textTrack2"),B=new M.default(this,"textTrack3"),w=new M.default(this,"textTrack4");this.cea608Parser1=new O.default(1,c,E),this.cea608Parser2=new O.default(3,B,w)}o.on(_.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),o.on(_.Events.MEDIA_DETACHING,this.onMediaDetaching,this),o.on(_.Events.MANIFEST_LOADING,this.onManifestLoading,this),o.on(_.Events.MANIFEST_LOADED,this.onManifestLoaded,this),o.on(_.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),o.on(_.Events.FRAG_LOADING,this.onFragLoading,this),o.on(_.Events.FRAG_LOADED,this.onFragLoaded,this),o.on(_.Events.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),o.on(_.Events.FRAG_DECRYPTED,this.onFragDecrypted,this),o.on(_.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),o.on(_.Events.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),o.on(_.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)}var f=d.prototype;return f.destroy=function(){var c=this.hls;c.off(_.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),c.off(_.Events.MEDIA_DETACHING,this.onMediaDetaching,this),c.off(_.Events.MANIFEST_LOADING,this.onManifestLoading,this),c.off(_.Events.MANIFEST_LOADED,this.onManifestLoaded,this),c.off(_.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),c.off(_.Events.FRAG_LOADING,this.onFragLoading,this),c.off(_.Events.FRAG_LOADED,this.onFragLoaded,this),c.off(_.Events.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),c.off(_.Events.FRAG_DECRYPTED,this.onFragDecrypted,this),c.off(_.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),c.off(_.Events.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),c.off(_.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.cea608Parser1=this.cea608Parser2=null},f.addCues=function(c,E,B,w,P){for(var C=!1,b=P.length;b--;){var l=P[b],A=i(l[0],l[1],E,B);if(A>=0&&(l[0]=Math.min(l[0],E),l[1]=Math.max(l[1],B),C=!0,A/(B-E)>.5))return}if(C||P.push([E,B]),this.config.renderTextTracksNatively){var g=this.captionsTracks[c];this.Cues.newCue(g,E,B,w)}else{var T=this.Cues.newCue(null,E,B,w);this.hls.trigger(_.Events.CUES_PARSED,{type:"captions",cues:T,track:c})}},f.onInitPtsFound=function(c,E){var B=this,w=E.frag,P=E.id,C=E.initPTS,b=E.timescale,l=this.unparsedVttFrags;P==="main"&&(this.initPTS[w.cc]=C,this.timescale[w.cc]=b),l.length&&(this.unparsedVttFrags=[],l.forEach(function(A){B.onFragLoaded(_.Events.FRAG_LOADED,A)}))},f.getExistingTrack=function(c){var E=this.media;if(E)for(var B=0;B<E.textTracks.length;B++){var w=E.textTracks[B];if(w[c])return w}return null},f.createCaptionsTrack=function(c){this.config.renderTextTracksNatively?this.createNativeTrack(c):this.createNonNativeTrack(c)},f.createNativeTrack=function(c){if(this.captionsTracks[c])return;var E=this.captionsProperties,B=this.captionsTracks,w=this.media,P=E[c],C=P.label,b=P.languageCode,l=this.getExistingTrack(c);if(l)B[c]=l,Object(n.clearCurrentCues)(B[c]),Object(n.sendAddTrackEvent)(B[c],w);else{var A=this.createTextTrack("captions",C,b);A&&(A[c]=!0,B[c]=A)}},f.createNonNativeTrack=function(c){if(this.nonNativeCaptionsTracks[c])return;var E=this.captionsProperties[c];if(!E)return;var B=E.label,w={_id:c,label:B,kind:"captions",default:E.media?!!E.media.default:!1,closedCaptions:E.media};this.nonNativeCaptionsTracks[c]=w,this.hls.trigger(_.Events.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[w]})},f.createTextTrack=function(c,E,B){var w=this.media;return w?w.addTextTrack(c,E,B):void 0},f.onMediaAttaching=function(c,E){this.media=E.media,this._cleanTracks()},f.onMediaDetaching=function(){var c=this.captionsTracks;Object.keys(c).forEach(function(E){Object(n.clearCurrentCues)(c[E]),delete c[E]}),this.nonNativeCaptionsTracks={}},f.onManifestLoading=function(){this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=u(),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())},f._cleanTracks=function(){var c=this.media;if(!c)return;var E=c.textTracks;if(E)for(var B=0;B<E.length;B++)Object(n.clearCurrentCues)(E[B])},f.onSubtitleTracksUpdated=function(c,E){var B=this;this.textTracks=[];var w=E.subtitleTracks||[],P=w.some(function(A){return A.textCodec===p.IMSC1_CODEC});if(this.config.enableWebVTT||P&&this.config.enableIMSC1){var C=this.tracks&&w&&this.tracks.length===w.length;if(this.tracks=w||[],this.config.renderTextTracksNatively){var b=this.media?this.media.textTracks:[];this.tracks.forEach(function(A,g){var T;if(g<b.length){for(var m=null,y=0;y<b.length;y++)if(s(b[y],A)){m=b[y];break}m&&(T=m)}T?Object(n.clearCurrentCues)(T):(T=B.createTextTrack("subtitles",A.name,A.lang),T&&(T.mode="disabled")),T&&(T.groupId=A.groupId,B.textTracks.push(T))})}else if(!C&&this.tracks&&this.tracks.length){var l=this.tracks.map(function(A){return{label:A.name,kind:A.type.toLowerCase(),default:A.default,subtitleTrack:A}});this.hls.trigger(_.Events.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:l})}}},f.onManifestLoaded=function(c,E){var B=this;this.config.enableCEA708Captions&&E.captions&&E.captions.forEach(function(w){var P=/(?:CC|SERVICE)([1-4])/.exec(w.instreamId);if(!P)return;var C="textTrack"+P[1],b=B.captionsProperties[C];if(!b)return;b.label=w.name,w.lang&&(b.languageCode=w.lang),b.media=w})},f.onFragLoading=function(c,E){var B=this.cea608Parser1,w=this.cea608Parser2,P=this.lastSn,C=this.lastPartIndex;if(!this.enabled||!(B&&w))return;if(E.frag.type===a.PlaylistLevelType.MAIN){var b,l,A=E.frag.sn,g=(b=E==null||((l=E.part)===null||l===void 0)?void 0:l.index)!=null?b:-1;A===P+1||A===P&&g===C+1||(B.reset(),w.reset()),this.lastSn=A,this.lastPartIndex=g}},f.onFragLoaded=function(c,E){var B=E.frag,w=E.payload,P=this.initPTS,C=this.unparsedVttFrags;if(B.type===a.PlaylistLevelType.SUBTITLE)if(w.byteLength){if(!Object(k.isFiniteNumber)(P[B.cc])){C.push(E),P.length&&this.hls.trigger(_.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:B,error:new Error("Missing initial subtitle PTS")});return}var b=B.decryptdata;if(b==null||b.key==null||b.method!=="AES-128"){var l=this.tracks[B.level],A=this.vttCCs;A[B.cc]||(A[B.cc]={start:B.start,prevCC:this.prevCC,new:!0},this.prevCC=B.cc),l&&l.textCodec===p.IMSC1_CODEC?this._parseIMSC1(B,w):this._parseVTTs(B,w,A)}}else this.hls.trigger(_.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:B,error:new Error("Empty subtitle payload")})},f._parseIMSC1=function(c,E){var B=this,w=this.hls;Object(p.parseIMSC1)(E,this.initPTS[c.cc],this.timescale[c.cc],function(P){B._appendCues(P,c.level),w.trigger(_.Events.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:c})},function(P){t.logger.log("Failed to parse IMSC1: "+P),w.trigger(_.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:c,error:P})})},f._parseVTTs=function(c,E,B){var w=this,P=this.hls;Object(x.parseWebVTT)(E,this.initPTS[c.cc],this.timescale[c.cc],B,c.cc,c.start,function(C){w._appendCues(C,c.level),P.trigger(_.Events.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:c})},function(C){w._fallbackToIMSC1(c,E),t.logger.log("Failed to parse VTT cue: "+C),P.trigger(_.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:c,error:C})})},f._fallbackToIMSC1=function(c,E){var B=this,w=this.tracks[c.level];w.textCodec||Object(p.parseIMSC1)(E,this.initPTS[c.cc],this.timescale[c.cc],function(){w.textCodec=p.IMSC1_CODEC,B._parseIMSC1(c,E)},function(){w.textCodec="wvtt"})},f._appendCues=function(c,E){var B=this.hls;if(this.config.renderTextTracksNatively){var w=this.textTracks[E];if(w.mode==="disabled")return;c.forEach(function(b){return Object(n.addCueToTrack)(w,b)})}else{var P=this.tracks[E],C=P.default?"default":"subtitles"+E;B.trigger(_.Events.CUES_PARSED,{type:"subtitles",cues:c,track:C})}},f.onFragDecrypted=function(c,E){var B=E.frag;if(B.type===a.PlaylistLevelType.SUBTITLE){if(!Object(k.isFiniteNumber)(this.initPTS[B.cc])){this.unparsedVttFrags.push(E);return}this.onFragLoaded(_.Events.FRAG_LOADED,E)}},f.onSubtitleTracksCleared=function(){this.tracks=[],this.captionsTracks={}},f.onFragParsingUserdata=function(c,E){var B=this.cea608Parser1,w=this.cea608Parser2;if(!this.enabled||!(B&&w))return;for(var P=0;P<E.samples.length;P++){var C=E.samples[P].bytes;if(C){var b=this.extractCea608Data(C);B.addData(E.samples[P].pts,b[0]),w.addData(E.samples[P].pts,b[1])}}},f.onBufferFlushing=function(c,E){var B=E.startOffset,w=E.endOffset,P=E.endOffsetSubtitles,C=E.type,b=this.media;if(!b||b.currentTime<w)return;if(!C||C==="video"){var l=this.captionsTracks;Object.keys(l).forEach(function(g){return Object(n.removeCuesInRange)(l[g],B,w)})}if(this.config.renderTextTracksNatively&&(B===0&&P!==void 0)){var A=this.textTracks;Object.keys(A).forEach(function(g){return Object(n.removeCuesInRange)(A[g],B,P)})}},f.extractCea608Data=function(c){for(var E=c[0]&31,B=2,w=[[],[]],P=0;P<E;P++){var C=c[B++],b=127&c[B++],l=127&c[B++],A=(4&C)!==0,g=3&C;if(b===0&&l===0)continue;A&&((g===0||g===1)&&(w[g].push(b),w[g].push(l)))}return w},d}();function s(d,f){return d&&d.label===f.name&&!(d.textTrack1||d.textTrack2)}function i(d,f,o,c){return Math.min(f,c)-Math.max(d,o)}function u(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!1}}}},"./src/crypt/aes-crypto.ts":function(Z,K,I){"use strict";I.r(K),I.d(K,"default",function(){return k});var k=function(){function _(M,x){this.subtle=void 0,this.aesIV=void 0,this.subtle=M,this.aesIV=x}var O=_.prototype;return O.decrypt=function(x,n){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},n,x)},_}()},"./src/crypt/aes-decryptor.ts":function(Z,K,I){"use strict";I.r(K),I.d(K,"removePadding",function(){return _}),I.d(K,"default",function(){return O});var k=I("./src/utils/typed-array.ts");function _(M){var x=M.byteLength,n=x&&new DataView(M.buffer).getUint8(x-1);return n?Object(k.sliceUint8)(M,0,x-n):M}var O=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 x=M.prototype;return x.uint8ArrayToUint32Array_=function(p){for(var a=new DataView(p),t=new Uint32Array(4),h=0;h<4;h++)t[h]=a.getUint32(h*4);return t},x.initTable=function(){var p=this.sBox,a=this.invSBox,t=this.subMix,h=t[0],s=t[1],i=t[2],u=t[3],d=this.invSubMix,f=d[0],o=d[1],c=d[2],E=d[3],B=new Uint32Array(256),w=0,P=0,C=0;for(C=0;C<256;C++)C<128?B[C]=C<<1:B[C]=C<<1^283;for(C=0;C<256;C++){var b=P^P<<1^P<<2^P<<3^P<<4;b=b>>>8^b&255^99,p[w]=b,a[b]=w;var l=B[w],A=B[l],g=B[A],T=B[b]*257^b*16843008;h[w]=T<<24|T>>>8,s[w]=T<<16|T>>>16,i[w]=T<<8|T>>>24,u[w]=T,T=g*16843009^A*65537^l*257^w*16843008,f[b]=T<<24|T>>>8,o[b]=T<<16|T>>>16,c[b]=T<<8|T>>>24,E[b]=T,w?(w=l^B[B[B[g^l]]],P^=B[B[P]]):w=P=1}},x.expandKey=function(p){for(var a=this.uint8ArrayToUint32Array_(p),t=!0,h=0;h<a.length&&t;)t=a[h]===this.key[h],h++;if(t)return;this.key=a;var s=this.keySize=a.length;if(s!==4&&s!==6&&s!==8)throw new Error("Invalid aes key size="+s);var i=this.ksRows=(s+6+1)*4,u,d,f=this.keySchedule=new Uint32Array(i),o=this.invKeySchedule=new Uint32Array(i),c=this.sBox,E=this.rcon,B=this.invSubMix,w=B[0],P=B[1],C=B[2],b=B[3],l,A;for(u=0;u<i;u++){if(u<s){l=f[u]=a[u];continue}A=l,u%s===0?(A=A<<8|A>>>24,A=c[A>>>24]<<24|c[A>>>16&255]<<16|c[A>>>8&255]<<8|c[A&255],A^=E[u/s|0]<<24):s>6&&u%s===4&&(A=c[A>>>24]<<24|c[A>>>16&255]<<16|c[A>>>8&255]<<8|c[A&255]),f[u]=l=(f[u-s]^A)>>>0}for(d=0;d<i;d++)u=i-d,d&3?A=f[u]:A=f[u-4],d<4||u<=4?o[d]=A:o[d]=w[c[A>>>24]]^P[c[A>>>16&255]]^C[c[A>>>8&255]]^b[c[A&255]],o[d]=o[d]>>>0},x.networkToHostOrderSwap=function(p){return p<<24|(p&65280)<<8|(p&16711680)>>8|p>>>24},x.decrypt=function(p,a,t){for(var h=this.keySize+6,s=this.invKeySchedule,i=this.invSBox,u=this.invSubMix,d=u[0],f=u[1],o=u[2],c=u[3],E=this.uint8ArrayToUint32Array_(t),B=E[0],w=E[1],P=E[2],C=E[3],b=new Int32Array(p),l=new Int32Array(b.length),A,g,T,m,y,U,N,S,H,F,R,z,Q,$,ee=this.networkToHostOrderSwap;a<b.length;){for(H=ee(b[a]),F=ee(b[a+1]),R=ee(b[a+2]),z=ee(b[a+3]),y=H^s[0],U=z^s[1],N=R^s[2],S=F^s[3],Q=4,$=1;$<h;$++)A=d[y>>>24]^f[U>>16&255]^o[N>>8&255]^c[S&255]^s[Q],g=d[U>>>24]^f[N>>16&255]^o[S>>8&255]^c[y&255]^s[Q+1],T=d[N>>>24]^f[S>>16&255]^o[y>>8&255]^c[U&255]^s[Q+2],m=d[S>>>24]^f[y>>16&255]^o[U>>8&255]^c[N&255]^s[Q+3],y=A,U=g,N=T,S=m,Q=Q+4;A=i[y>>>24]<<24^i[U>>16&255]<<16^i[N>>8&255]<<8^i[S&255]^s[Q],g=i[U>>>24]<<24^i[N>>16&255]<<16^i[S>>8&255]<<8^i[y&255]^s[Q+1],T=i[N>>>24]<<24^i[S>>16&255]<<16^i[y>>8&255]<<8^i[U&255]^s[Q+2],m=i[S>>>24]<<24^i[y>>16&255]<<16^i[U>>8&255]<<8^i[N&255]^s[Q+3],l[a]=ee(A^B),l[a+1]=ee(m^w),l[a+2]=ee(T^P),l[a+3]=ee(g^C),B=H,w=F,P=R,C=z,a=a+4}return l.buffer},M}()},"./src/crypt/decrypter.ts":function(Z,K,I){"use strict";I.r(K),I.d(K,"default",function(){return a});var k=I("./src/crypt/aes-crypto.ts"),_=I("./src/crypt/fast-aes-key.ts"),O=I("./src/crypt/aes-decryptor.ts"),M=I("./src/utils/logger.ts"),x=I("./src/utils/mp4-tools.ts"),n=I("./src/utils/typed-array.ts"),p=16,a=function(){function t(s,i,u){var d=u===void 0?{}:u,f=d.removePKCS7Padding,o=f===void 0?!0:f;if(this.logEnabled=!0,this.observer=void 0,this.config=void 0,this.removePKCS7Padding=void 0,this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null,this.observer=s,this.config=i,this.removePKCS7Padding=o,o)try{var c=self.crypto;c&&(this.subtle=c.subtle||c.webkitSubtle)}catch(E){}this.subtle===null&&(this.config.enableSoftwareAES=!0)}var h=t.prototype;return h.destroy=function(){this.observer=null},h.isSync=function(){return this.config.enableSoftwareAES},h.flush=function(){var i=this.currentResult;if(!i){this.reset();return}var u=new Uint8Array(i);return this.reset(),this.removePKCS7Padding?Object(O.removePadding)(u):u},h.reset=function(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)},h.decrypt=function(i,u,d,f){if(this.config.enableSoftwareAES){this.softwareDecrypt(new Uint8Array(i),u,d);var o=this.flush();o&&f(o.buffer)}else this.webCryptoDecrypt(new Uint8Array(i),u,d).then(f)},h.softwareDecrypt=function(i,u,d){var f=this.currentIV,o=this.currentResult,c=this.remainderData;this.logOnce("JS AES decrypt"),c&&(i=Object(x.appendUint8Array)(c,i),this.remainderData=null);var E=this.getValidChunk(i);if(!E.length)return null;f&&(d=f);var B=this.softwareDecrypter;B||(B=this.softwareDecrypter=new O.default),B.expandKey(u);var w=o;return this.currentResult=B.decrypt(E.buffer,0,d),this.currentIV=Object(n.sliceUint8)(E,-16).buffer,w||null},h.webCryptoDecrypt=function(i,u,d){var f=this,o=this.subtle;return(this.key!==u||!this.fastAesKey)&&(this.key=u,this.fastAesKey=new _.default(o,u)),this.fastAesKey.expandKey().then(function(c){if(!o)return Promise.reject(new Error("web crypto not initialized"));var E=new k.default(o,d);return E.decrypt(i.buffer,c)}).catch(function(c){return f.onWebCryptoError(c,i,u,d)})},h.onWebCryptoError=function(i,u,d,f){return M.logger.warn("[decrypter.ts]: WebCrypto Error, disable WebCrypto API:",i),this.config.enableSoftwareAES=!0,this.logEnabled=!0,this.softwareDecrypt(u,d,f)},h.getValidChunk=function(i){var u=i,d=i.length-i.length%p;return d!==i.length&&(u=Object(n.sliceUint8)(i,0,d),this.remainderData=Object(n.sliceUint8)(i,d)),u},h.logOnce=function(i){if(!this.logEnabled)return;M.logger.log("[decrypter.ts]: "+i),this.logEnabled=!1},t}()},"./src/crypt/fast-aes-key.ts":function(Z,K,I){"use strict";I.r(K),I.d(K,"default",function(){return k});var k=function(){function _(M,x){this.subtle=void 0,this.key=void 0,this.subtle=M,this.key=x}var O=_.prototype;return O.expandKey=function(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])},_}()},"./src/demux/aacdemuxer.ts":function(Z,K,I){"use strict";I.r(K);var k=I("./src/demux/base-audio-demuxer.ts"),_=I("./src/demux/adts.ts"),O=I("./src/utils/logger.ts"),M=I("./src/demux/id3.ts");function x(a,t){a.prototype=Object.create(t.prototype),a.prototype.constructor=a,n(a,t)}function n(a,t){return n=Object.setPrototypeOf||function(s,i){return s.__proto__=i,s},n(a,t)}var p=function(a){x(t,a);function t(s,i){var u;return u=a.call(this)||this,u.observer=void 0,u.config=void 0,u.observer=s,u.config=i,u}var h=t.prototype;return h.resetInitSegment=function(i,u,d){a.prototype.resetInitSegment.call(this,i,u,d),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!0,samples:[],manifestCodec:i,duration:d,inputTimeScale:9e4,dropped:0}},t.probe=function(i){if(!i)return!1;for(var u=M.getID3Data(i,0)||[],d=u.length,f=i.length;d<f;d++)if(_.probe(i,d))return O.logger.log("ADTS sync word found !"),!0;return!1},h.canParse=function(i,u){return _.canParse(i,u)},h.appendFrame=function(i,u,d){_.initTrackConfig(i,this.observer,u,d,i.manifestCodec);var f=_.appendFrame(i,u,d,this.initPTS,this.frameIndex);if(f&&f.missing===0)return f},t}(k.default);p.minProbeByteLength=9,K.default=p},"./src/demux/adts.ts":function(Z,K,I){"use strict";I.r(K),I.d(K,"getAudioConfig",function(){return M}),I.d(K,"isHeaderPattern",function(){return x}),I.d(K,"getHeaderLength",function(){return n}),I.d(K,"getFullFrameLength",function(){return p}),I.d(K,"canGetFrameLength",function(){return a}),I.d(K,"isHeader",function(){return t}),I.d(K,"canParse",function(){return h}),I.d(K,"probe",function(){return s}),I.d(K,"initTrackConfig",function(){return i}),I.d(K,"getFrameDuration",function(){return u}),I.d(K,"parseFrameHeader",function(){return d}),I.d(K,"appendFrame",function(){return f});var k=I("./src/utils/logger.ts"),_=I("./src/errors.ts"),O=I("./src/events.ts");function M(o,c,E,B){var w,P,C,b,l=navigator.userAgent.toLowerCase(),A=B,g=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];w=((c[E+2]&192)>>>6)+1;var T=(c[E+2]&60)>>>2;if(T>g.length-1){o.trigger(O.Events.ERROR,{type:_.ErrorTypes.MEDIA_ERROR,details:_.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+T});return}return C=(c[E+2]&1)<<2,C|=(c[E+3]&192)>>>6,k.logger.log("manifest codec:"+B+", ADTS type:"+w+", samplingIndex:"+T),/firefox/i.test(l)?T>=6?(w=5,b=new Array(4),P=T-3):(w=2,b=new Array(2),P=T):l.indexOf("android")!==-1?(w=2,b=new Array(2),P=T):(w=5,b=new Array(4),B&&(B.indexOf("mp4a.40.29")!==-1||B.indexOf("mp4a.40.5")!==-1)||!B&&T>=6?P=T-3:((B&&B.indexOf("mp4a.40.2")!==-1&&(T>=6&&C===1||/vivaldi/i.test(l))||!B&&C===1)&&(w=2,b=new Array(2)),P=T)),b[0]=w<<3,b[0]|=(T&14)>>1,b[1]|=(T&1)<<7,b[1]|=C<<3,w===5&&(b[1]|=(P&14)>>1,b[2]=(P&1)<<7,b[2]|=2<<2,b[3]=0),{config:b,samplerate:g[T],channelCount:C,codec:"mp4a.40."+w,manifestCodec:A}}function x(o,c){return o[c]===255&&(o[c+1]&246)===240}function n(o,c){return o[c+1]&1?7:9}function p(o,c){return(o[c+3]&3)<<11|o[c+4]<<3|(o[c+5]&224)>>>5}function a(o,c){return c+5<o.length}function t(o,c){return c+1<o.length&&x(o,c)}function h(o,c){return a(o,c)&&x(o,c)&&p(o,c)<=o.length-c}function s(o,c){if(t(o,c)){var E=n(o,c);if(c+E>=o.length)return!1;var B=p(o,c);if(B<=E)return!1;var w=c+B;return w===o.length||t(o,w)}return!1}function i(o,c,E,B,w){if(!o.samplerate){var P=M(c,E,B,w);if(!P)return;o.config=P.config,o.samplerate=P.samplerate,o.channelCount=P.channelCount,o.codec=P.codec,o.manifestCodec=P.manifestCodec,k.logger.log("parsed codec:"+o.codec+", rate:"+P.samplerate+", channels:"+P.channelCount)}}function u(o){return 1024*9e4/o}function d(o,c,E,B,w){var P=n(o,c),C=p(o,c);if(C-=P,C>0){var b=E+B*w;return{headerLength:P,frameLength:C,stamp:b}}}function f(o,c,E,B,w){var P=u(o.samplerate),C=d(c,E,B,w,P);if(C){var b=C.frameLength,l=C.headerLength,A=C.stamp,g=l+b,T=Math.max(0,E+g-c.length),m;T?(m=new Uint8Array(g-l),m.set(c.subarray(E+l,c.length),0)):m=c.subarray(E+l,E+g);var y={unit:m,pts:A};return T||o.samples.push(y),{sample:y,length:g,missing:T}}}},"./src/demux/base-audio-demuxer.ts":function(Z,K,I){"use strict";I.r(K),I.d(K,"initPTSFn",function(){return p});var k=I("./src/polyfills/number.ts"),_=I("./src/demux/id3.ts"),O=I("./src/demux/dummy-demuxed-track.ts"),M=I("./src/utils/mp4-tools.ts"),x=I("./src/utils/typed-array.ts"),n=function(){function a(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.initPTS=null}var t=a.prototype;return t.resetInitSegment=function(s,i,u){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}},t.resetTimeStamp=function(){},t.resetContiguity=function(){},t.canParse=function(s,i){return!1},t.appendFrame=function(s,i,u){},t.demux=function(s,i){this.cachedData&&(s=Object(M.appendUint8Array)(this.cachedData,s),this.cachedData=null);var u=_.getID3Data(s,0),d=u?u.length:0,f,o,c=this._audioTrack,E=this._id3Track,B=u?_.getTimeStamp(u):void 0,w=s.length;for((this.frameIndex===0||this.initPTS===null)&&(this.initPTS=p(B,i)),u&&u.length>0&&E.samples.push({pts:this.initPTS,dts:this.initPTS,data:u}),o=this.initPTS;d<w;){if(this.canParse(s,d)){var P=this.appendFrame(c,s,d);P?(this.frameIndex++,o=P.sample.pts,d+=P.length,f=d):d=w}else _.canParse(s,d)?(u=_.getID3Data(s,d),E.samples.push({pts:o,dts:o,data:u}),d+=u.length,f=d):d++;if(d===w&&f!==w){var C=Object(x.sliceUint8)(s,f);this.cachedData?this.cachedData=Object(M.appendUint8Array)(this.cachedData,C):this.cachedData=C}}return{audioTrack:c,avcTrack:Object(O.dummyTrack)(),id3Track:E,textTrack:Object(O.dummyTrack)()}},t.demuxSampleAes=function(s,i,u){return Promise.reject(new Error("["+this+"] This demuxer does not support Sample-AES decryption"))},t.flush=function(s){var i=this.cachedData;return i&&(this.cachedData=null,this.demux(i,0)),this.frameIndex=0,{audioTrack:this._audioTrack,avcTrack:Object(O.dummyTrack)(),id3Track:this._id3Track,textTrack:Object(O.dummyTrack)()}},t.destroy=function(){},a}(),p=function(t,h){return Object(k.isFiniteNumber)(t)?t*90:h*9e4};K.default=n},"./src/demux/chunk-cache.ts":function(Z,K,I){"use strict";I.r(K),I.d(K,"default",function(){return k});var k=function(){function O(){this.chunks=[],this.dataLength=0}var M=O.prototype;return M.push=function(n){this.chunks.push(n),this.dataLength+=n.length},M.flush=function(){var n=this.chunks,p=this.dataLength,a;if(n.length)n.length===1?a=n[0]:a=_(n,p);else return new Uint8Array(0);return this.reset(),a},M.reset=function(){this.chunks.length=0,this.dataLength=0},O}();function _(O,M){for(var x=new Uint8Array(M),n=0,p=0;p<O.length;p++){var a=O[p];x.set(a,n),n+=a.length}return x}},"./src/demux/dummy-demuxed-track.ts":function(Z,K,I){"use strict";I.r(K),I.d(K,"dummyTrack",function(){return k});function k(){return{type:"",id:-1,pid:-1,inputTimeScale:9e4,sequenceNumber:-1,samples:[],dropped:0}}},"./src/demux/exp-golomb.ts":function(Z,K,I){"use strict";I.r(K);var k=I("./src/utils/logger.ts"),_=function(){function O(x){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=x,this.bytesAvailable=x.byteLength,this.word=0,this.bitsAvailable=0}var M=O.prototype;return M.loadWord=function(){var n=this.data,p=this.bytesAvailable,a=n.byteLength-p,t=new Uint8Array(4),h=Math.min(4,p);if(h===0)throw new Error("no bytes available");t.set(n.subarray(a,a+h)),this.word=new DataView(t.buffer).getUint32(0),this.bitsAvailable=h*8,this.bytesAvailable-=h},M.skipBits=function(n){var p;this.bitsAvailable>n?(this.word<<=n,this.bitsAvailable-=n):(n-=this.bitsAvailable,p=n>>3,n-=p>>3,this.bytesAvailable-=p,this.loadWord(),this.word<<=n,this.bitsAvailable-=n)},M.readBits=function(n){var p=Math.min(this.bitsAvailable,n),a=this.word>>>32-p;return n>32&&k.logger.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=p,this.bitsAvailable>0?this.word<<=p:this.bytesAvailable>0&&this.loadWord(),p=n-p,p>0&&this.bitsAvailable?a<<p|this.readBits(p):a},M.skipLZ=function(){var n;for(n=0;n<this.bitsAvailable;++n)if((this.word&2147483648>>>n)!==0)return this.word<<=n,this.bitsAvailable-=n,n;return this.loadWord(),n+this.skipLZ()},M.skipUEG=function(){this.skipBits(1+this.skipLZ())},M.skipEG=function(){this.skipBits(1+this.skipLZ())},M.readUEG=function(){var n=this.skipLZ();return this.readBits(n+1)-1},M.readEG=function(){var n=this.readUEG();return 1&n?1+n>>>1:-1*(n>>>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(n){for(var p=8,a=8,t,h=0;h<n;h++)a!==0&&(t=this.readEG(),a=(p+t+256)%256),p=a===0?p:a},M.readSPS=function(){var n=0,p=0,a=0,t=0,h,s,i,u=this.readUByte.bind(this),d=this.readBits.bind(this),f=this.readUEG.bind(this),o=this.readBoolean.bind(this),c=this.skipBits.bind(this),E=this.skipEG.bind(this),B=this.skipUEG.bind(this),w=this.skipScalingList.bind(this);u();var P=u();if(d(5),c(3),u(),B(),P===100||P===110||P===122||P===244||P===44||P===83||P===86||P===118||P===128){var C=f();if(C===3&&c(1),B(),B(),c(1),o())for(s=C!==3?8:12,i=0;i<s;i++)o()&&(i<6?w(16):w(64))}B();var b=f();if(b===0)f();else if(b===1)for(c(1),E(),E(),h=f(),i=0;i<h;i++)E();B(),c(1);var l=f(),A=f(),g=d(1);g===0&&c(1),c(1),o()&&(n=f(),p=f(),a=f(),t=f());var T=[1,1];if(o()&&o()){var m=u();switch(m){case 1:T=[1,1];break;case 2:T=[12,11];break;case 3:T=[10,11];break;case 4:T=[16,11];break;case 5:T=[40,33];break;case 6:T=[24,11];break;case 7:T=[20,11];break;case 8:T=[32,11];break;case 9:T=[80,33];break;case 10:T=[18,11];break;case 11:T=[15,11];break;case 12:T=[64,33];break;case 13:T=[160,99];break;case 14:T=[4,3];break;case 15:T=[3,2];break;case 16:T=[2,1];break;case 255:{T=[u()<<8|u(),u()<<8|u()];break}}}return{width:Math.ceil((l+1)*16-n*2-p*2),height:(2-g)*(A+1)*16-(g?2:4)*(a+t),pixelRatio:T}},M.readSliceType=function(){return this.readUByte(),this.readUEG(),this.readUEG()},O}();K.default=_},"./src/demux/id3.ts":function(Z,K,I){"use strict";I.r(K),I.d(K,"isHeader",function(){return k}),I.d(K,"isFooter",function(){return _}),I.d(K,"getID3Data",function(){return O}),I.d(K,"canParse",function(){return x}),I.d(K,"getTimeStamp",function(){return n}),I.d(K,"isTimeStampFrame",function(){return p}),I.d(K,"getID3Frames",function(){return t}),I.d(K,"decodeFrame",function(){return h}),I.d(K,"utf8ArrayToStr",function(){return f}),I.d(K,"testables",function(){return o});var k=function(w,P){return P+10<=w.length&&(w[P]===73&&w[P+1]===68&&w[P+2]===51&&(w[P+3]<255&&w[P+4]<255&&(w[P+6]<128&&w[P+7]<128&&w[P+8]<128&&w[P+9]<128)))},_=function(w,P){return P+10<=w.length&&(w[P]===51&&w[P+1]===68&&w[P+2]===73&&(w[P+3]<255&&w[P+4]<255&&(w[P+6]<128&&w[P+7]<128&&w[P+8]<128&&w[P+9]<128)))},O=function(w,P){for(var C=P,b=0;k(w,P);){b+=10;var l=M(w,P+6);b+=l,_(w,P+10)&&(b+=10),P+=b}return b>0?w.subarray(C,C+b):void 0},M=function(w,P){var C=0;return C=(w[P]&127)<<21,C|=(w[P+1]&127)<<14,C|=(w[P+2]&127)<<7,C|=w[P+3]&127,C},x=function(w,P){return k(w,P)&&M(w,P+6)+10<=w.length-P},n=function(w){for(var P=t(w),C=0;C<P.length;C++){var b=P[C];if(p(b))return d(b)}return},p=function(w){return w&&w.key==="PRIV"&&w.info==="com.apple.streaming.transportStreamTimestamp"},a=function(w){var P=String.fromCharCode(w[0],w[1],w[2],w[3]),C=M(w,4),b=10;return{type:P,size:C,data:w.subarray(b,b+C)}},t=function(w){for(var P=0,C=[];k(w,P);){var b=M(w,P+6);P+=10;for(var l=P+b;P+8<l;){var A=a(w.subarray(P)),g=h(A);g&&C.push(g),P+=A.size+10}_(w,P)&&(P+=10)}return C},h=function(w){return w.type==="PRIV"?s(w):w.type[0]==="W"?u(w):i(w)},s=function(w){if(w.size<2)return;var P=f(w.data,!0),C=new Uint8Array(w.data.subarray(P.length+1));return{key:w.type,info:P,data:C.buffer}},i=function(w){if(w.size<2)return;if(w.type==="TXXX"){var P=1,C=f(w.data.subarray(P),!0);P+=C.length+1;var b=f(w.data.subarray(P));return{key:w.type,info:C,data:b}}var l=f(w.data.subarray(1));return{key:w.type,data:l}},u=function(w){if(w.type==="WXXX"){if(w.size<2)return;var P=1,C=f(w.data.subarray(P),!0);P+=C.length+1;var b=f(w.data.subarray(P));return{key:w.type,info:C,data:b}}var l=f(w.data);return{key:w.type,data:l}},d=function(w){if(w.data.byteLength===8){var P=new Uint8Array(w.data),C=P[3]&1,b=(P[4]<<23)+(P[5]<<15)+(P[6]<<7)+P[7];return b/=45,C&&(b+=4772185884e-2),Math.round(b)}return},f=function(w,P){P===void 0&&(P=!1);var C=E();if(C){var b=C.decode(w);if(P){var l=b.indexOf("\0");return l!==-1?b.substring(0,l):b}return b.replace(/\0/g,"")}for(var A=w.length,g,T,m,y="",U=0;U<A;){if(g=w[U++],g===0&&P)return y;if(g===0||g===3)continue;switch(g>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:y+=String.fromCharCode(g);break;case 12:case 13:T=w[U++],y+=String.fromCharCode((g&31)<<6|T&63);break;case 14:T=w[U++],m=w[U++],y+=String.fromCharCode((g&15)<<12|(T&63)<<6|(m&63)<<0);break;default:}}return y},o={decodeTextFrame:i},c;function E(){return!c&&typeof self.TextDecoder!="undefined"&&(c=new self.TextDecoder("utf-8")),c}},"./src/demux/mp3demuxer.ts":function(Z,K,I){"use strict";I.r(K);var k=I("./src/demux/base-audio-demuxer.ts"),_=I("./src/demux/id3.ts"),O=I("./src/utils/logger.ts"),M=I("./src/demux/mpegaudio.ts");function x(a,t){a.prototype=Object.create(t.prototype),a.prototype.constructor=a,n(a,t)}function n(a,t){return n=Object.setPrototypeOf||function(s,i){return s.__proto__=i,s},n(a,t)}var p=function(a){x(t,a);function t(){return a.apply(this,arguments)||this}var h=t.prototype;return h.resetInitSegment=function(i,u,d){a.prototype.resetInitSegment.call(this,i,u,d),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!1,samples:[],manifestCodec:i,duration:d,inputTimeScale:9e4,dropped:0}},t.probe=function(i){if(!i)return!1;for(var u=_.getID3Data(i,0)||[],d=u.length,f=i.length;d<f;d++)if(M.probe(i,d))return O.logger.log("MPEG Audio sync word found !"),!0;return!1},h.canParse=function(i,u){return M.canParse(i,u)},h.appendFrame=function(i,u,d){return this.initPTS===null?void 0:M.appendFrame(i,u,d,this.initPTS,this.frameIndex)},t}(k.default);p.minProbeByteLength=4,K.default=p},"./src/demux/mp4demuxer.ts":function(Z,K,I){"use strict";I.r(K);var k=I("./src/utils/mp4-tools.ts"),_=I("./src/demux/dummy-demuxed-track.ts"),O=function(){function M(n,p){this.remainderData=null,this.config=void 0,this.config=p}var x=M.prototype;return x.resetTimeStamp=function(){},x.resetInitSegment=function(){},x.resetContiguity=function(){},M.probe=function(p){return Object(k.findBox)({data:p,start:0,end:Math.min(p.length,16384)},["moof"]).length>0},x.demux=function(p){var a=p,t=Object(_.dummyTrack)();if(this.config.progressive){this.remainderData&&(a=Object(k.appendUint8Array)(this.remainderData,p));var h=Object(k.segmentValidRange)(a);this.remainderData=h.remainder,t.samples=h.valid||new Uint8Array}else t.samples=a;return{audioTrack:Object(_.dummyTrack)(),avcTrack:t,id3Track:Object(_.dummyTrack)(),textTrack:Object(_.dummyTrack)()}},x.flush=function(){var p=Object(_.dummyTrack)();return p.samples=this.remainderData||new Uint8Array,this.remainderData=null,{audioTrack:Object(_.dummyTrack)(),avcTrack:p,id3Track:Object(_.dummyTrack)(),textTrack:Object(_.dummyTrack)()}},x.demuxSampleAes=function(p,a,t){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))},x.destroy=function(){},M}();O.minProbeByteLength=1024,K.default=O},"./src/demux/mpegaudio.ts":function(Z,K,I){"use strict";I.r(K),I.d(K,"appendFrame",function(){return n}),I.d(K,"parseHeader",function(){return p}),I.d(K,"isHeaderPattern",function(){return a}),I.d(K,"isHeader",function(){return t}),I.d(K,"canParse",function(){return h}),I.d(K,"probe",function(){return s});var k=null,_=[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],O=[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]],x=[0,1,1,4];function n(i,u,d,f,o){if(d+24>u.length)return;var c=p(u,d);if(c&&d+c.frameLength<=u.length){var E=c.samplesPerFrame*9e4/c.sampleRate,B=f+o*E,w={unit:u.subarray(d,d+c.frameLength),pts:B,dts:B};return i.config=[],i.channelCount=c.channelCount,i.samplerate=c.sampleRate,i.samples.push(w),{sample:w,length:c.frameLength,missing:0}}}function p(i,u){var d=i[u+1]>>3&3,f=i[u+1]>>1&3,o=i[u+2]>>4&15,c=i[u+2]>>2&3;if(d!==1&&o!==0&&o!==15&&c!==3){var E=i[u+2]>>1&1,B=i[u+3]>>6,w=d===3?3-f:f===3?3:4,P=_[w*14+o-1]*1e3,C=d===3?0:d===2?1:2,b=O[C*3+c],l=B===3?1:2,A=M[d][f],g=x[f],T=A*8*g,m=Math.floor(A*P/b+E)*g;if(k===null){var y=navigator.userAgent||"",U=y.match(/Chrome\/(\d+)/i);k=U?parseInt(U[1]):0}var N=!!k&&k<=87;return N&&f===2&&P>=224e3&&B===0&&(i[u+3]=i[u+3]|128),{sampleRate:b,channelCount:l,frameLength:m,samplesPerFrame:T}}}function a(i,u){return i[u]===255&&(i[u+1]&224)===224&&(i[u+1]&6)!==0}function t(i,u){return u+1<i.length&&a(i,u)}function h(i,u){var d=4;return a(i,u)&&d<=i.length-u}function s(i,u){if(u+1<i.length&&a(i,u)){var d=4,f=p(i,u),o=d;f!=null&&f.frameLength&&(o=f.frameLength);var c=u+o;return c===i.length||t(i,c)}return!1}},"./src/demux/sample-aes.ts":function(Z,K,I){"use strict";I.r(K);var k=I("./src/crypt/decrypter.ts"),_=I("./src/demux/tsdemuxer.ts"),O=function(){function M(n,p,a){this.keyData=void 0,this.decrypter=void 0,this.keyData=a,this.decrypter=new k.default(n,p,{removePKCS7Padding:!1})}var x=M.prototype;return x.decryptBuffer=function(p,a){this.decrypter.decrypt(p,this.keyData.key.buffer,this.keyData.iv.buffer,a)},x.decryptAacSample=function(p,a,t,h){var s=p[a].unit,i=s.subarray(16,s.length-s.length%16),u=i.buffer.slice(i.byteOffset,i.byteOffset+i.length),d=this;this.decryptBuffer(u,function(f){var o=new Uint8Array(f);s.set(o,16),h||d.decryptAacSamples(p,a+1,t)})},x.decryptAacSamples=function(p,a,t){for(;;a++){if(a>=p.length){t();return}if(p[a].unit.length<32)continue;var h=this.decrypter.isSync();if(this.decryptAacSample(p,a,t,h),!h)return}},x.getAvcEncryptedData=function(p){for(var a=Math.floor((p.length-48)/160)*16+16,t=new Int8Array(a),h=0,s=32;s<=p.length-16;s+=160,h+=16)t.set(p.subarray(s,s+16),h);return t},x.getAvcDecryptedUnit=function(p,a){for(var t=new Uint8Array(a),h=0,s=32;s<=p.length-16;s+=160,h+=16)p.set(t.subarray(h,h+16),s);return p},x.decryptAvcSample=function(p,a,t,h,s,i){var u=Object(_.discardEPB)(s.data),d=this.getAvcEncryptedData(u),f=this;this.decryptBuffer(d.buffer,function(o){s.data=f.getAvcDecryptedUnit(u,o),i||f.decryptAvcSamples(p,a,t+1,h)})},x.decryptAvcSamples=function(p,a,t,h){if(p instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;a++,t=0){if(a>=p.length){h();return}for(var s=p[a].units;!(t>=s.length);t++){var i=s[t];if(i.data.length<=48||i.type!==1&&i.type!==5)continue;var u=this.decrypter.isSync();if(this.decryptAvcSample(p,a,t,h,i,u),!u)return}}},M}();K.default=O},"./src/demux/transmuxer-interface.ts":function(Z,K,I){"use strict";I.r(K),I.d(K,"default",function(){return s});var k=I("./node_modules/webworkify-webpack/index.js"),_=I.n(k),O=I("./src/events.ts"),M=I("./src/demux/transmuxer.ts"),x=I("./src/utils/logger.ts"),n=I("./src/errors.ts"),p=I("./src/utils/mediasource-helper.ts"),a=I("./node_modules/eventemitter3/index.js"),t=I.n(a),h=Object(p.getMediaSource)()||{isTypeSupported:function(){return!1}},s=function(){function i(d,f,o,c){var E=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=d,this.id=f,this.onTransmuxComplete=o,this.onFlush=c;var B=d.config,w=function(A,g){g=g||{},g.frag=E.frag,g.id=E.id,d.trigger(A,g)};this.observer=new a.EventEmitter,this.observer.on(O.Events.FRAG_DECRYPTED,w),this.observer.on(O.Events.ERROR,w);var P={mp4:h.isTypeSupported("video/mp4"),mpeg:h.isTypeSupported("audio/mpeg"),mp3:h.isTypeSupported('audio/mp4; codecs="mp3"')},C=navigator.vendor;if(B.enableWorker&&typeof Worker!="undefined"){x.logger.log("demuxing in webworker");var b;try{b=this.worker=k("./src/demux/transmuxer-worker.ts"),this.onwmsg=this.onWorkerMessage.bind(this),b.addEventListener("message",this.onwmsg),b.onerror=function(l){d.trigger(O.Events.ERROR,{type:n.ErrorTypes.OTHER_ERROR,details:n.ErrorDetails.INTERNAL_EXCEPTION,fatal:!0,event:"demuxerWorker",error:new Error(l.message+" ("+l.filename+":"+l.lineno+")")})},b.postMessage({cmd:"init",typeSupported:P,vendor:C,id:f,config:JSON.stringify(B)})}catch(l){x.logger.warn("Error in worker:",l),x.logger.error("Error while initializing DemuxerWorker, fallback to inline"),b&&self.URL.revokeObjectURL(b.objectURL),this.transmuxer=new M.default(this.observer,P,B,C,f),this.worker=null}}else this.transmuxer=new M.default(this.observer,P,B,C,f)}var u=i.prototype;return u.destroy=function(){var f=this.worker;if(f)f.removeEventListener("message",this.onwmsg),f.terminate(),this.worker=null;else{var o=this.transmuxer;o&&(o.destroy(),this.transmuxer=null)}var c=this.observer;c&&c.removeAllListeners(),this.observer=null},u.push=function(f,o,c,E,B,w,P,C,b,l){var A=this;b.transmuxing.start=self.performance.now();var g=this.transmuxer,T=this.worker,m=w?w.start:B.start,y=B.decryptdata,U=this.frag,N=!(U&&B.cc===U.cc),S=!(U&&b.level===U.level),H=U?b.sn-U.sn:-1,F=this.part?b.part-this.part.index:1,R=!S&&(H===1||H===0&&F===1),z=self.performance.now();(S||H||B.stats.parsing.start===0)&&(B.stats.parsing.start=z),w&&(F||!R)&&(w.stats.parsing.start=z);var Q=new M.TransmuxState(N,R,C,S,m);if(!R||N){x.logger.log("[transmuxer-interface, "+B.type+"]: Starting new transmux session for sn: "+b.sn+" p: "+b.part+" level: "+b.level+" id: "+b.id+`
|
|
discontinuity: `+N+`
|
|
trackSwitch: `+S+`
|
|
contiguous: `+R+`
|
|
accurateTimeOffset: `+C+`
|
|
timeOffset: `+m);var $=new M.TransmuxConfig(c,E,o,P,l);this.configureTransmuxer($)}if(this.frag=B,this.part=w,T)T.postMessage({cmd:"demux",data:f,decryptdata:y,chunkMeta:b,state:Q},f instanceof ArrayBuffer?[f]:[]);else if(g){var ee=g.push(f,y,b,Q);Object(M.isPromise)(ee)?ee.then(function(fe){A.handleTransmuxComplete(fe)}):this.handleTransmuxComplete(ee)}},u.flush=function(f){var o=this;f.transmuxing.start=self.performance.now();var c=this.transmuxer,E=this.worker;if(E)E.postMessage({cmd:"flush",chunkMeta:f});else if(c){var B=c.flush(f);Object(M.isPromise)(B)?B.then(function(w){o.handleFlushResult(w,f)}):this.handleFlushResult(B,f)}},u.handleFlushResult=function(f,o){var c=this;f.forEach(function(E){c.handleTransmuxComplete(E)}),this.onFlush(o)},u.onWorkerMessage=function(f){var o=f.data,c=this.hls;switch(o.event){case"init":{self.URL.revokeObjectURL(this.worker.objectURL);break}case"transmuxComplete":{this.handleTransmuxComplete(o.data);break}case"flush":{this.onFlush(o.data);break}default:{o.data=o.data||{},o.data.frag=this.frag,o.data.id=this.id,c.trigger(o.event,o.data);break}}},u.configureTransmuxer=function(f){var o=this.worker,c=this.transmuxer;o?o.postMessage({cmd:"configure",config:f}):c&&c.configure(f)},u.handleTransmuxComplete=function(f){f.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(f)},i}()},"./src/demux/transmuxer-worker.ts":function(Z,K,I){"use strict";I.r(K),I.d(K,"default",function(){return n});var k=I("./src/demux/transmuxer.ts"),_=I("./src/events.ts"),O=I("./src/utils/logger.ts"),M=I("./node_modules/eventemitter3/index.js"),x=I.n(M);function n(s){var i=new M.EventEmitter,u=function(f,o){s.postMessage({event:f,data:o})};i.on(_.Events.FRAG_DECRYPTED,u),i.on(_.Events.ERROR,u),s.addEventListener("message",function(d){var f=d.data;switch(f.cmd){case"init":{var o=JSON.parse(f.config);s.transmuxer=new k.default(i,f.typeSupported,o,f.vendor,f.id),Object(O.enableLogs)(o.debug),u("init",null);break}case"configure":{s.transmuxer.configure(f.config);break}case"demux":{var c=s.transmuxer.push(f.data,f.decryptdata,f.chunkMeta,f.state);Object(k.isPromise)(c)?c.then(function(w){p(s,w)}):p(s,c);break}case"flush":{var E=f.chunkMeta,B=s.transmuxer.flush(E);Object(k.isPromise)(B)?B.then(function(w){t(s,w,E)}):t(s,B,E);break}default:break}})}function p(s,i){if(h(i.remuxResult))return;var u=[],d=i.remuxResult,f=d.audio,o=d.video;f&&a(u,f),o&&a(u,o),s.postMessage({event:"transmuxComplete",data:i},u)}function a(s,i){i.data1&&s.push(i.data1.buffer),i.data2&&s.push(i.data2.buffer)}function t(s,i,u){i.forEach(function(d){p(s,d)}),s.postMessage({event:"flush",data:u})}function h(s){return!s.audio&&!s.video&&!s.text&&!s.id3&&!s.initSegment}},"./src/demux/transmuxer.ts":function(Z,K,I){"use strict";I.r(K),I.d(K,"default",function(){return o}),I.d(K,"isPromise",function(){return B}),I.d(K,"TransmuxConfig",function(){return w}),I.d(K,"TransmuxState",function(){return P});var k=I("./src/events.ts"),_=I("./src/errors.ts"),O=I("./src/crypt/decrypter.ts"),M=I("./src/demux/aacdemuxer.ts"),x=I("./src/demux/mp4demuxer.ts"),n=I("./src/demux/tsdemuxer.ts"),p=I("./src/demux/mp3demuxer.ts"),a=I("./src/remux/mp4-remuxer.ts"),t=I("./src/remux/passthrough-remuxer.ts"),h=I("./src/demux/chunk-cache.ts"),s=I("./src/utils/mp4-tools.ts"),i=I("./src/utils/logger.ts"),u;try{u=self.performance.now.bind(self.performance)}catch(C){i.logger.debug("Unable to use Performance API on this environment"),u=self.Date.now}var d=[{demux:n.default,remux:a.default},{demux:x.default,remux:t.default},{demux:M.default,remux:a.default},{demux:p.default,remux:a.default}],f=1024;d.forEach(function(C){var b=C.demux;f=Math.max(f,b.minProbeByteLength)});var o=function(){function C(l,A,g,T,m){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 h.default,this.observer=l,this.typeSupported=A,this.config=g,this.vendor=T,this.id=m}var b=C.prototype;return b.configure=function(A){this.transmuxConfig=A,this.decrypter&&this.decrypter.reset()},b.push=function(A,g,T,m){var y=this,U=T.transmuxing;U.executeStart=u();var N=new Uint8Array(A),S=this.cache,H=this.config,F=this.currentTransmuxState,R=this.transmuxConfig;m&&(this.currentTransmuxState=m);var z=c(N,g);if(z&&z.method==="AES-128"){var Q=this.getDecrypter();if(H.enableSoftwareAES){var $=Q.softwareDecrypt(N,z.key.buffer,z.iv.buffer);if(!$)return U.executeEnd=u(),E(T);N=new Uint8Array($)}else return this.decryptionPromise=Q.webCryptoDecrypt(N,z.key.buffer,z.iv.buffer).then(function(Ke){var tt=y.push(Ke,null,T);return y.decryptionPromise=null,tt}),this.decryptionPromise}var ee=m||F,fe=ee.contiguous,Ae=ee.discontinuity,ce=ee.trackSwitch,ie=ee.accurateTimeOffset,be=ee.timeOffset,se=R.audioCodec,me=R.videoCodec,le=R.defaultInitPts,ge=R.duration,ae=R.initSegmentData;if((Ae||ce)&&this.resetInitSegment(ae,se,me,ge),Ae&&this.resetInitialTimestamp(le),fe||this.resetContiguity(),this.needsProbing(N,Ae,ce)){if(S.dataLength){var pe=S.flush();N=Object(s.appendUint8Array)(pe,N)}this.configureTransmuxer(N,R)}var Me=this.transmux(N,z,be,ie,T),xe=this.currentTransmuxState;return xe.contiguous=!0,xe.discontinuity=!1,xe.trackSwitch=!1,U.executeEnd=u(),Me},b.flush=function(A){var g=this,T=A.transmuxing;T.executeStart=u();var m=this.decrypter,y=this.cache,U=this.currentTransmuxState,N=this.decryptionPromise;if(N)return N.then(function(){return g.flush(A)});var S=[],H=U.timeOffset;if(m){var F=m.flush();F&&S.push(this.push(F,null,A))}var R=y.dataLength;y.reset();var z=this.demuxer,Q=this.remuxer;if(!z||!Q)return R>=f&&this.observer.emit(k.Events.ERROR,k.Events.ERROR,{type:_.ErrorTypes.MEDIA_ERROR,details:_.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"}),T.executeEnd=u(),[E(A)];var $=z.flush(H);return B($)?$.then(function(ee){return g.flushRemux(S,ee,A),S}):(this.flushRemux(S,$,A),S)},b.flushRemux=function(A,g,T){var m=g.audioTrack,y=g.avcTrack,U=g.id3Track,N=g.textTrack,S=this.currentTransmuxState,H=S.accurateTimeOffset,F=S.timeOffset;i.logger.log("[transmuxer.ts]: Flushed fragment "+T.sn+(T.part>-1?" p: "+T.part:"")+" of level "+T.level);var R=this.remuxer.remux(m,y,U,N,F,H,!0,this.id);A.push({remuxResult:R,chunkMeta:T}),T.transmuxing.executeEnd=u()},b.resetInitialTimestamp=function(A){var g=this.demuxer,T=this.remuxer;if(!g||!T)return;g.resetTimeStamp(A),T.resetTimeStamp(A)},b.resetContiguity=function(){var A=this.demuxer,g=this.remuxer;if(!A||!g)return;A.resetContiguity(),g.resetNextTimestamp()},b.resetInitSegment=function(A,g,T,m){var y=this.demuxer,U=this.remuxer;if(!y||!U)return;y.resetInitSegment(g,T,m),U.resetInitSegment(A,g,T)},b.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},b.transmux=function(A,g,T,m,y){var U;return g&&g.method==="SAMPLE-AES"?U=this.transmuxSampleAes(A,g,T,m,y):U=this.transmuxUnencrypted(A,T,m,y),U},b.transmuxUnencrypted=function(A,g,T,m){var y=this.demuxer.demux(A,g,!1,!this.config.progressive),U=y.audioTrack,N=y.avcTrack,S=y.id3Track,H=y.textTrack,F=this.remuxer.remux(U,N,S,H,g,T,!1,this.id);return{remuxResult:F,chunkMeta:m}},b.transmuxSampleAes=function(A,g,T,m,y){var U=this;return this.demuxer.demuxSampleAes(A,g,T).then(function(N){var S=U.remuxer.remux(N.audioTrack,N.avcTrack,N.id3Track,N.textTrack,T,m,!1,U.id);return{remuxResult:S,chunkMeta:y}})},b.configureTransmuxer=function(A,g){for(var T=this.config,m=this.observer,y=this.typeSupported,U=this.vendor,N=g.audioCodec,S=g.defaultInitPts,H=g.duration,F=g.initSegmentData,R=g.videoCodec,z,Q=0,$=d.length;Q<$;Q++)if(d[Q].demux.probe(A)){z=d[Q];break}z||(i.logger.warn("Failed to find demuxer by probing frag, treating as mp4 passthrough"),z={demux:x.default,remux:t.default});var ee=this.demuxer,fe=this.remuxer,Ae=z.remux,ce=z.demux;(!fe||!(fe instanceof Ae))&&(this.remuxer=new Ae(m,T,y,U)),(!ee||!(ee instanceof ce))&&(this.demuxer=new ce(m,T,y),this.probe=ce.probe),this.resetInitSegment(F,N,R,H),this.resetInitialTimestamp(S)},b.needsProbing=function(A,g,T){return!this.demuxer||!this.remuxer||g||T},b.getDecrypter=function(){var A=this.decrypter;return A||(A=this.decrypter=new O.default(this.observer,this.config)),A},C}();function c(C,b){var l=null;return C.byteLength>0&&b!=null&&b.key!=null&&b.iv!==null&&b.method!=null&&(l=b),l}var E=function(b){return{remuxResult:{},chunkMeta:b}};function B(C){return"then"in C&&C.then instanceof Function}var w=function(b,l,A,g,T){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=b,this.videoCodec=l,this.initSegmentData=A,this.duration=g,this.defaultInitPts=T},P=function(b,l,A,g,T){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.discontinuity=b,this.contiguous=l,this.accurateTimeOffset=A,this.trackSwitch=g,this.timeOffset=T}},"./src/demux/tsdemuxer.ts":function(Z,K,I){"use strict";I.r(K),I.d(K,"discardEPB",function(){return E});var k=I("./src/demux/adts.ts"),_=I("./src/demux/mpegaudio.ts"),O=I("./src/demux/exp-golomb.ts"),M=I("./src/demux/id3.ts"),x=I("./src/demux/sample-aes.ts"),n=I("./src/events.ts"),p=I("./src/utils/mp4-tools.ts"),a=I("./src/utils/logger.ts"),t=I("./src/errors.ts"),h={video:1,audio:2,id3:3,text:4},s=function(){function B(P,C,b){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=P,this.config=C,this.typeSupported=b}B.probe=function(C){var b=B.syncOffset(C);return b<0?!1:(b&&a.logger.warn("MPEG2-TS detected but first sync word found @ offset "+b+", junk ahead ?"),!0)},B.syncOffset=function(C){for(var b=Math.min(1e3,C.length-3*188),l=0;l<b;){if(C[l]===71&&C[l+188]===71&&C[l+2*188]===71)return l;l++}return-1},B.createTrack=function(C,b){return{container:C==="video"||C==="audio"?"video/mp2t":void 0,type:C,id:h[C],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:C==="audio"?b:void 0}};var w=B.prototype;return w.resetInitSegment=function(C,b,l){this.pmtParsed=!1,this._pmtId=-1,this._avcTrack=B.createTrack("video",l),this._audioTrack=B.createTrack("audio",l),this._id3Track=B.createTrack("id3",l),this._txtTrack=B.createTrack("text",l),this._audioTrack.isAAC=!0,this.aacOverFlow=null,this.aacLastPTS=null,this.avcSample=null,this.audioCodec=C,this.videoCodec=b,this._duration=l},w.resetTimeStamp=function(){},w.resetContiguity=function(){var C=this._audioTrack,b=this._avcTrack,l=this._id3Track;C&&(C.pesData=null),b&&(b.pesData=null),l&&(l.pesData=null),this.aacOverFlow=null,this.aacLastPTS=null},w.demux=function(C,b,l,A){l===void 0&&(l=!1),A===void 0&&(A=!1),l||(this.sampleAes=null);var g,T=this._avcTrack,m=this._audioTrack,y=this._id3Track,U=T.pid,N=T.pesData,S=m.pid,H=y.pid,F=m.pesData,R=y.pesData,z=!1,Q=this.pmtParsed,$=this._pmtId,ee=C.length;if(this.remainderData&&(C=Object(p.appendUint8Array)(this.remainderData,C),ee=C.length,this.remainderData=null),ee<188&&!A)return this.remainderData=C,{audioTrack:m,avcTrack:T,id3Track:y,textTrack:this._txtTrack};var fe=Math.max(0,B.syncOffset(C));ee-=(ee+fe)%188,ee<C.byteLength&&!A&&(this.remainderData=new Uint8Array(C.buffer,ee,C.buffer.byteLength-ee));for(var Ae=fe;Ae<ee;Ae+=188)if(C[Ae]===71){var ce=!!(C[Ae+1]&64),ie=((C[Ae+1]&31)<<8)+C[Ae+2],be=(C[Ae+3]&48)>>4,se=void 0;if(be>1){if(se=Ae+5+C[Ae+4],se===Ae+188)continue}else se=Ae+4;switch(ie){case U:ce&&(N&&(g=f(N))&&this.parseAVCPES(g,!1),N={data:[],size:0}),N&&(N.data.push(C.subarray(se,Ae+188)),N.size+=Ae+188-se);break;case S:ce&&(F&&(g=f(F))&&(m.isAAC?this.parseAACPES(g):this.parseMPEGPES(g)),F={data:[],size:0}),F&&(F.data.push(C.subarray(se,Ae+188)),F.size+=Ae+188-se);break;case H:ce&&(R&&(g=f(R))&&this.parseID3PES(g),R={data:[],size:0}),R&&(R.data.push(C.subarray(se,Ae+188)),R.size+=Ae+188-se);break;case 0:ce&&(se+=C[se]+1),$=this._pmtId=u(C,se);break;case $:{ce&&(se+=C[se]+1);var me=d(C,se,this.typeSupported.mpeg===!0||this.typeSupported.mp3===!0,l);U=me.avc,U>0&&(T.pid=U),S=me.audio,S>0&&(m.pid=S,m.isAAC=me.isAAC),H=me.id3,H>0&&(y.pid=H),z&&!Q&&(a.logger.log("reparse from beginning"),z=!1,Ae=fe-188),Q=this.pmtParsed=!0;break}case 17:case 8191:break;default:z=!0;break}}else this.observer.emit(n.Events.ERROR,n.Events.ERROR,{type:t.ErrorTypes.MEDIA_ERROR,details:t.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});T.pesData=N,m.pesData=F,y.pesData=R;var le={audioTrack:m,avcTrack:T,id3Track:y,textTrack:this._txtTrack};return A&&this.extractRemainingSamples(le),le},w.flush=function(){var C=this.remainderData;this.remainderData=null;var b;return C?b=this.demux(C,-1,!1,!0):b={audioTrack:this._audioTrack,avcTrack:this._avcTrack,textTrack:this._txtTrack,id3Track:this._id3Track},this.extractRemainingSamples(b),this.sampleAes?this.decrypt(b,this.sampleAes):b},w.extractRemainingSamples=function(C){var b=C.audioTrack,l=C.avcTrack,A=C.id3Track,g=l.pesData,T=b.pesData,m=A.pesData,y;g&&(y=f(g))?(this.parseAVCPES(y,!0),l.pesData=null):l.pesData=g,T&&(y=f(T))?(b.isAAC?this.parseAACPES(y):this.parseMPEGPES(y),b.pesData=null):(T!=null&&T.size&&a.logger.log("last AAC PES packet truncated,might overlap between fragments"),b.pesData=T),m&&(y=f(m))?(this.parseID3PES(y),A.pesData=null):A.pesData=m},w.demuxSampleAes=function(C,b,l){var A=this.demux(C,l,!0,!this.config.progressive),g=this.sampleAes=new x.default(this.observer,this.config,b);return this.decrypt(A,g)},w.decrypt=function(C,b){return new Promise(function(l){var A=C.audioTrack,g=C.avcTrack;A.samples&&A.isAAC?b.decryptAacSamples(A.samples,0,function(){g.samples?b.decryptAvcSamples(g.samples,0,0,function(){l(C)}):l(C)}):g.samples&&b.decryptAvcSamples(g.samples,0,0,function(){l(C)})})},w.destroy=function(){this._initPTS=this._initDTS=null,this._duration=0},w.parseAVCPES=function(C,b){var l=this,A=this._avcTrack,g=this.parseAVCNALu(C.data),T=!1,m=this.avcSample,y,U=!1;C.data=null,m&&g.length&&!A.audFound&&(o(m,A),m=this.avcSample=i(!1,C.pts,C.dts,"")),g.forEach(function(N){switch(N.type){case 1:{y=!0,m||(m=l.avcSample=i(!0,C.pts,C.dts,"")),T&&(m.debug+="NDR "),m.frame=!0;var S=N.data;if(U&&S.length>4){var H=new O.default(S).readSliceType();(H===2||H===4||H===7||H===9)&&(m.key=!0)}break}case 5:y=!0,m||(m=l.avcSample=i(!0,C.pts,C.dts,"")),T&&(m.debug+="IDR "),m.key=!0,m.frame=!0;break;case 6:{y=!0,T&&m&&(m.debug+="SEI ");var F=new O.default(E(N.data));F.readUByte();for(var R=0,z=0,Q=!1,$=0;!Q&&F.bytesAvailable>1;){R=0;do $=F.readUByte(),R+=$;while($===255);z=0;do $=F.readUByte(),z+=$;while($===255);if(R===4&&F.bytesAvailable!==0){Q=!0;var ee=F.readUByte();if(ee===181){var fe=F.readUShort();if(fe===49){var Ae=F.readUInt();if(Ae===1195456820){var ce=F.readUByte();if(ce===3){for(var ie=F.readUByte(),be=F.readUByte(),se=31&ie,me=[ie,be],le=0;le<se;le++)me.push(F.readUByte()),me.push(F.readUByte()),me.push(F.readUByte());c(l._txtTrack.samples,{type:3,pts:C.pts,bytes:me})}}}}}else if(R===5&&F.bytesAvailable!==0){if(Q=!0,z>16){for(var ge=[],ae=0;ae<16;ae++)ge.push(F.readUByte().toString(16)),(ae===3||ae===5||ae===7||ae===9)&&ge.push("-");for(var pe=z-16,Me=new Uint8Array(pe),xe=0;xe<pe;xe++)Me[xe]=F.readUByte();c(l._txtTrack.samples,{pts:C.pts,payloadType:R,uuid:ge.join(""),userData:Object(M.utf8ArrayToStr)(Me),userDataBytes:Me})}}else if(z<F.bytesAvailable)for(var Ke=0;Ke<z;Ke++)F.readUByte()}break}case 7:if(y=!0,U=!0,T&&m&&(m.debug+="SPS "),!A.sps){var tt=new O.default(N.data),he=tt.readSPS();A.width=he.width,A.height=he.height,A.pixelRatio=he.pixelRatio,A.sps=[N.data],A.duration=l._duration;for(var Se=N.data.subarray(1,4),Ue="avc1.",Ne=0;Ne<3;Ne++){var ct=Se[Ne].toString(16);ct.length<2&&(ct="0"+ct),Ue+=ct}A.codec=Ue}break;case 8:y=!0,T&&m&&(m.debug+="PPS "),A.pps||(A.pps=[N.data]);break;case 9:y=!1,A.audFound=!0,m&&o(m,A),m=l.avcSample=i(!1,C.pts,C.dts,T?"AUD ":"");break;case 12:y=!1;break;default:y=!1,m&&(m.debug+="unknown NAL "+N.type+" ");break}if(m&&y){var mt=m.units;mt.push(N)}}),b&&m&&(o(m,A),this.avcSample=null)},w.getLastNalUnit=function(){var C,b=this.avcSample,l;if(!b||b.units.length===0){var A=this._avcTrack.samples;b=A[A.length-1]}if((C=b)!==null&&C!==void 0&&C.units){var g=b.units;l=g[g.length-1]}return l},w.parseAVCNALu=function(C){var b=C.byteLength,l=this._avcTrack,A=l.naluState||0,g=A,T=[],m=0,y,U,N,S=-1,H=0;for(A===-1&&(S=0,H=C[0]&31,A=0,m=1);m<b;){if(y=C[m++],!A){A=y?0:1;continue}if(A===1){A=y?0:2;continue}if(!y)A=3;else if(y===1){if(S>=0){var F={data:C.subarray(S,m-A-1),type:H};T.push(F)}else{var R=this.getLastNalUnit();if(R&&(g&&m<=4-g&&(R.state&&(R.data=R.data.subarray(0,R.data.byteLength-g))),U=m-A-1,U>0)){var z=new Uint8Array(R.data.byteLength+U);z.set(R.data,0),z.set(C.subarray(0,U),R.data.byteLength),R.data=z,R.state=0}}m<b?(N=C[m]&31,S=m,H=N,A=0):A=-1}else A=0}if(S>=0&&A>=0){var Q={data:C.subarray(S,b),type:H,state:A};T.push(Q)}if(T.length===0){var $=this.getLastNalUnit();if($){var ee=new Uint8Array($.data.byteLength+C.byteLength);ee.set($.data,0),ee.set(C,$.data.byteLength),$.data=ee}}return l.naluState=A,T},w.parseAACPES=function(C){var b=0,l=this._audioTrack,A=this.aacOverFlow,g=C.data;if(A){this.aacOverFlow=null;var T=A.sample.unit.byteLength,m=Math.min(A.missing,T),y=T-m;A.sample.unit.set(g.subarray(0,m),y),l.samples.push(A.sample),b=A.missing}var U,N;for(U=b,N=g.length;U<N-1&&!k.isHeader(g,U);U++);if(U!==b){var S,H;if(U<N-1?(S="AAC PES did not start with ADTS header,offset:"+U,H=!1):(S="no ADTS header found in AAC PES",H=!0),a.logger.warn("parsing error:"+S),this.observer.emit(n.Events.ERROR,n.Events.ERROR,{type:t.ErrorTypes.MEDIA_ERROR,details:t.ErrorDetails.FRAG_PARSING_ERROR,fatal:H,reason:S}),H)return}k.initTrackConfig(l,this.observer,g,U,this.audioCodec);var F;if(C.pts!==void 0)F=C.pts;else if(A){var R=k.getFrameDuration(l.samplerate);F=A.sample.pts+R}else{a.logger.warn("[tsdemuxer]: AAC PES unknown PTS");return}for(var z=0;U<N;)if(k.isHeader(g,U)){if(U+5<N){var Q=k.appendFrame(l,g,U,F,z);if(Q)if(Q.missing)this.aacOverFlow=Q;else{U+=Q.length,z++;continue}}break}else U++},w.parseMPEGPES=function(C){var b=C.data,l=b.length,A=0,g=0,T=C.pts;if(T===void 0){a.logger.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;g<l;)if(_.isHeader(b,g)){var m=_.appendFrame(this._audioTrack,b,g,T,A);if(m)g+=m.length,A++;else break}else g++},w.parseID3PES=function(C){if(C.pts===void 0){a.logger.warn("[tsdemuxer]: ID3 PES unknown PTS");return}this._id3Track.samples.push(C)},B}();s.minProbeByteLength=188;function i(B,w,P,C){return{key:B,frame:!1,pts:w,dts:P,units:[],debug:C,length:0}}function u(B,w){return(B[w+10]&31)<<8|B[w+11]}function d(B,w,P,C){var b={audio:-1,avc:-1,id3:-1,isAAC:!0},l=(B[w+1]&15)<<8|B[w+2],A=w+3+l-4,g=(B[w+10]&15)<<8|B[w+11];for(w+=12+g;w<A;){var T=(B[w+1]&31)<<8|B[w+2];switch(B[w]){case 207:if(!C){a.logger.log("ADTS AAC with AES-128-CBC frame encryption found in unencrypted stream");break}case 15:b.audio===-1&&(b.audio=T);break;case 21:b.id3===-1&&(b.id3=T);break;case 219:if(!C){a.logger.log("H.264 with AES-128-CBC slice encryption found in unencrypted stream");break}case 27:b.avc===-1&&(b.avc=T);break;case 3:case 4:P?b.audio===-1&&(b.audio=T,b.isAAC=!1):a.logger.log("MPEG audio found, not supported in this browser");break;case 36:a.logger.warn("Unsupported HEVC stream type found");break;default:break}w+=((B[w+3]&15)<<8|B[w+4])+5}return b}function f(B){var w=0,P,C,b,l,A,g=B.data;if(!B||B.size===0)return null;for(;g[0].length<19&&g.length>1;){var T=new Uint8Array(g[0].length+g[1].length);T.set(g[0]),T.set(g[1],g[0].length),g[0]=T,g.splice(1,1)}P=g[0];var m=(P[0]<<16)+(P[1]<<8)+P[2];if(m===1){if(C=(P[4]<<8)+P[5],C&&C>B.size-6)return null;var y=P[7];y&192&&(l=(P[9]&14)*536870912+(P[10]&255)*4194304+(P[11]&254)*16384+(P[12]&255)*128+(P[13]&254)/2,y&64?(A=(P[14]&14)*536870912+(P[15]&255)*4194304+(P[16]&254)*16384+(P[17]&255)*128+(P[18]&254)/2,l-A>60*9e4&&(a.logger.warn(Math.round((l-A)/9e4)+"s delta between PTS and DTS, align them"),l=A)):A=l),b=P[8];var U=b+9;if(B.size<=U)return null;B.size-=U;for(var N=new Uint8Array(B.size),S=0,H=g.length;S<H;S++){P=g[S];var F=P.byteLength;if(U)if(U>F){U-=F;continue}else P=P.subarray(U),F-=U,U=0;N.set(P,w),w+=F}return C&&(C-=b+3),{data:N,pts:l,dts:A,len:C}}return null}function o(B,w){if(B.units.length&&B.frame){if(B.pts===void 0){var P=w.samples,C=P.length;if(C){var b=P[C-1];B.pts=b.pts,B.dts=b.dts}else{w.dropped++;return}}w.samples.push(B)}B.debug.length&&a.logger.log(B.pts+"/"+B.dts+":"+B.debug)}function c(B,w){var P=B.length;if(P>0){if(w.pts>=B[P-1].pts)B.push(w);else for(var C=P-1;C>=0;C--)if(w.pts<B[C].pts){B.splice(C,0,w);break}}else B.push(w)}function E(B){for(var w=B.byteLength,P=[],C=1;C<w-2;)B[C]===0&&B[C+1]===0&&B[C+2]===3?(P.push(C+2),C+=2):C++;if(P.length===0)return B;var b=w-P.length,l=new Uint8Array(b),A=0;for(C=0;C<b;A++,C++)A===P[0]&&(A++,P.shift()),l[C]=B[A];return l}K.default=s},"./src/errors.ts":function(Z,K,I){"use strict";I.r(K),I.d(K,"ErrorTypes",function(){return k}),I.d(K,"ErrorDetails",function(){return _});var k;(function(O){O.NETWORK_ERROR="networkError",O.MEDIA_ERROR="mediaError",O.KEY_SYSTEM_ERROR="keySystemError",O.MUX_ERROR="muxError",O.OTHER_ERROR="otherError"})(k||(k={}));var _;(function(O){O.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",O.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",O.KEY_SYSTEM_NO_SESSION="keySystemNoSession",O.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",O.KEY_SYSTEM_NO_INIT_DATA="keySystemNoInitData",O.MANIFEST_LOAD_ERROR="manifestLoadError",O.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",O.MANIFEST_PARSING_ERROR="manifestParsingError",O.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",O.LEVEL_EMPTY_ERROR="levelEmptyError",O.LEVEL_LOAD_ERROR="levelLoadError",O.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",O.LEVEL_SWITCH_ERROR="levelSwitchError",O.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",O.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",O.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",O.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",O.FRAG_LOAD_ERROR="fragLoadError",O.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",O.FRAG_DECRYPT_ERROR="fragDecryptError",O.FRAG_PARSING_ERROR="fragParsingError",O.REMUX_ALLOC_ERROR="remuxAllocError",O.KEY_LOAD_ERROR="keyLoadError",O.KEY_LOAD_TIMEOUT="keyLoadTimeOut",O.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",O.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",O.BUFFER_APPEND_ERROR="bufferAppendError",O.BUFFER_APPENDING_ERROR="bufferAppendingError",O.BUFFER_STALLED_ERROR="bufferStalledError",O.BUFFER_FULL_ERROR="bufferFullError",O.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",O.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",O.INTERNAL_EXCEPTION="internalException",O.INTERNAL_ABORTED="aborted",O.UNKNOWN="unknown"})(_||(_={}))},"./src/events.ts":function(Z,K,I){"use strict";I.r(K),I.d(K,"Events",function(){return k});var k;(function(_){_.MEDIA_ATTACHING="hlsMediaAttaching",_.MEDIA_ATTACHED="hlsMediaAttached",_.MEDIA_DETACHING="hlsMediaDetaching",_.MEDIA_DETACHED="hlsMediaDetached",_.BUFFER_RESET="hlsBufferReset",_.BUFFER_CODECS="hlsBufferCodecs",_.BUFFER_CREATED="hlsBufferCreated",_.BUFFER_APPENDING="hlsBufferAppending",_.BUFFER_APPENDED="hlsBufferAppended",_.BUFFER_EOS="hlsBufferEos",_.BUFFER_FLUSHING="hlsBufferFlushing",_.BUFFER_FLUSHED="hlsBufferFlushed",_.MANIFEST_LOADING="hlsManifestLoading",_.MANIFEST_LOADED="hlsManifestLoaded",_.MANIFEST_PARSED="hlsManifestParsed",_.LEVEL_SWITCHING="hlsLevelSwitching",_.LEVEL_SWITCHED="hlsLevelSwitched",_.LEVEL_LOADING="hlsLevelLoading",_.LEVEL_LOADED="hlsLevelLoaded",_.LEVEL_UPDATED="hlsLevelUpdated",_.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",_.LEVELS_UPDATED="hlsLevelsUpdated",_.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",_.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",_.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",_.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",_.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",_.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",_.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",_.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",_.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",_.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",_.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",_.CUES_PARSED="hlsCuesParsed",_.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",_.INIT_PTS_FOUND="hlsInitPtsFound",_.FRAG_LOADING="hlsFragLoading",_.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",_.FRAG_LOADED="hlsFragLoaded",_.FRAG_DECRYPTED="hlsFragDecrypted",_.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",_.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",_.FRAG_PARSING_METADATA="hlsFragParsingMetadata",_.FRAG_PARSED="hlsFragParsed",_.FRAG_BUFFERED="hlsFragBuffered",_.FRAG_CHANGED="hlsFragChanged",_.FPS_DROP="hlsFpsDrop",_.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",_.ERROR="hlsError",_.DESTROYING="hlsDestroying",_.KEY_LOADING="hlsKeyLoading",_.KEY_LOADED="hlsKeyLoaded",_.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",_.BACK_BUFFER_REACHED="hlsBackBufferReached"})(k||(k={}))},"./src/hls.ts":function(Z,K,I){"use strict";I.r(K),I.d(K,"default",function(){return B});var k=I("./node_modules/url-toolkit/src/url-toolkit.js"),_=I.n(k),O=I("./src/loader/playlist-loader.ts"),M=I("./src/loader/key-loader.ts"),x=I("./src/controller/id3-track-controller.ts"),n=I("./src/controller/latency-controller.ts"),p=I("./src/controller/level-controller.ts"),a=I("./src/controller/fragment-tracker.ts"),t=I("./src/controller/stream-controller.ts"),h=I("./src/is-supported.ts"),s=I("./src/utils/logger.ts"),i=I("./src/config.ts"),u=I("./node_modules/eventemitter3/index.js"),d=I.n(u),f=I("./src/events.ts"),o=I("./src/errors.ts");function c(w,P){for(var C=0;C<P.length;C++){var b=P[C];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(w,b.key,b)}}function E(w,P,C){return P&&c(w.prototype,P),C&&c(w,C),w}var B=function(){w.isSupported=function(){return Object(h.isSupported)()};function w(C){C===void 0&&(C={}),this.config=void 0,this.userConfig=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new u.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 b=this.config=Object(i.mergeConfig)(w.DefaultConfig,C);this.userConfig=C,Object(s.enableLogs)(b.debug),this._autoLevelCapping=-1,b.progressive&&Object(i.enableStreamingMode)(b);var l=b.abrController,A=b.bufferController,g=b.capLevelController,T=b.fpsController,m=this.abrController=new l(this),y=this.bufferController=new A(this),U=this.capLevelController=new g(this),N=new T(this),S=new O.default(this),H=new M.default(this),F=new x.default(this),R=this.levelController=new p.default(this),z=new a.FragmentTracker(this),Q=this.streamController=new t.default(this,z);U.setStreamController(Q),N.setStreamController(Q);var $=[R,Q];this.networkControllers=$;var ee=[S,H,m,y,U,N,F,z];this.audioTrackController=this.createController(b.audioTrackController,null,$),this.createController(b.audioStreamController,z,$),this.subtitleTrackController=this.createController(b.subtitleTrackController,null,$),this.createController(b.subtitleStreamController,z,$),this.createController(b.timelineController,null,ee),this.emeController=this.createController(b.emeController,null,ee),this.cmcdController=this.createController(b.cmcdController,null,ee),this.latencyController=this.createController(n.default,null,ee),this.coreComponents=ee}var P=w.prototype;return P.createController=function(b,l,A){if(b){var g=l?new b(this,l):new b(this);return A&&A.push(g),g}return null},P.on=function(b,l,A){A===void 0&&(A=this),this._emitter.on(b,l,A)},P.once=function(b,l,A){A===void 0&&(A=this),this._emitter.once(b,l,A)},P.removeAllListeners=function(b){this._emitter.removeAllListeners(b)},P.off=function(b,l,A,g){A===void 0&&(A=this),this._emitter.off(b,l,A,g)},P.listeners=function(b){return this._emitter.listeners(b)},P.emit=function(b,l,A){return this._emitter.emit(b,l,A)},P.trigger=function(b,l){if(this.config.debug)return this.emit(b,b,l);try{return this.emit(b,b,l)}catch(A){s.logger.error("An internal error happened while handling event "+b+'. Error message: "'+A.message+'". Here is a stacktrace:',A),this.trigger(f.Events.ERROR,{type:o.ErrorTypes.OTHER_ERROR,details:o.ErrorDetails.INTERNAL_EXCEPTION,fatal:!1,event:b,error:A})}return!1},P.listenerCount=function(b){return this._emitter.listenerCount(b)},P.destroy=function(){s.logger.log("destroy"),this.trigger(f.Events.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this.url=null,this.networkControllers.forEach(function(b){return b.destroy()}),this.networkControllers.length=0,this.coreComponents.forEach(function(b){return b.destroy()}),this.coreComponents.length=0},P.attachMedia=function(b){s.logger.log("attachMedia"),this._media=b,this.trigger(f.Events.MEDIA_ATTACHING,{media:b})},P.detachMedia=function(){s.logger.log("detachMedia"),this.trigger(f.Events.MEDIA_DETACHING,void 0),this._media=null},P.loadSource=function(b){this.stopLoad();var l=this.media,A=this.url,g=this.url=k.buildAbsoluteURL(self.location.href,b,{alwaysNormalize:!0});s.logger.log("loadSource:"+g),l&&A&&A!==g&&this.bufferController.hasSourceTypes()&&(this.detachMedia(),this.attachMedia(l)),this.trigger(f.Events.MANIFEST_LOADING,{url:b})},P.startLoad=function(b){b===void 0&&(b=-1),s.logger.log("startLoad("+b+")"),this.networkControllers.forEach(function(l){l.startLoad(b)})},P.stopLoad=function(){s.logger.log("stopLoad"),this.networkControllers.forEach(function(b){b.stopLoad()})},P.swapAudioCodec=function(){s.logger.log("swapAudioCodec"),this.streamController.swapAudioCodec()},P.recoverMediaError=function(){s.logger.log("recoverMediaError");var b=this._media;this.detachMedia(),b&&this.attachMedia(b)},P.removeLevel=function(b,l){l===void 0&&(l=0),this.levelController.removeLevel(b,l)},E(w,[{key:"levels",get:function(){var b=this.levelController.levels;return b||[]}},{key:"currentLevel",get:function(){return this.streamController.currentLevel},set:function(b){s.logger.log("set currentLevel:"+b),this.loadLevel=b,this.abrController.clearTimer(),this.streamController.immediateLevelSwitch()}},{key:"nextLevel",get:function(){return this.streamController.nextLevel},set:function(b){s.logger.log("set nextLevel:"+b),this.levelController.manualLevel=b,this.streamController.nextLevelSwitch()}},{key:"loadLevel",get:function(){return this.levelController.level},set:function(b){s.logger.log("set loadLevel:"+b),this.levelController.manualLevel=b}},{key:"nextLoadLevel",get:function(){return this.levelController.nextLoadLevel},set:function(b){this.levelController.nextLoadLevel=b}},{key:"firstLevel",get:function(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)},set:function(b){s.logger.log("set firstLevel:"+b),this.levelController.firstLevel=b}},{key:"startLevel",get:function(){return this.levelController.startLevel},set:function(b){s.logger.log("set startLevel:"+b),b!==-1&&(b=Math.max(b,this.minAutoLevel)),this.levelController.startLevel=b}},{key:"capLevelToPlayerSize",get:function(){return this.config.capLevelToPlayerSize},set:function(b){var l=!!b;l!==this.config.capLevelToPlayerSize&&(l?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=l)}},{key:"autoLevelCapping",get:function(){return this._autoLevelCapping},set:function(b){this._autoLevelCapping!==b&&(s.logger.log("set autoLevelCapping:"+b),this._autoLevelCapping=b)}},{key:"bandwidthEstimate",get:function(){var b=this.abrController.bwEstimator;return b?b.getEstimate():NaN}},{key:"autoLevelEnabled",get:function(){return this.levelController.manualLevel===-1}},{key:"manualLevel",get:function(){return this.levelController.manualLevel}},{key:"minAutoLevel",get:function(){var b=this.levels,l=this.config.minAutoBitrate;if(!b)return 0;for(var A=b.length,g=0;g<A;g++)if(b[g].maxBitrate>l)return g;return 0}},{key:"maxAutoLevel",get:function(){var b=this.levels,l=this.autoLevelCapping,A;return l===-1&&b&&b.length?A=b.length-1:A=l,A}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(b){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,b)}},{key:"audioTracks",get:function(){var b=this.audioTrackController;return b?b.audioTracks:[]}},{key:"audioTrack",get:function(){var b=this.audioTrackController;return b?b.audioTrack:-1},set:function(b){var l=this.audioTrackController;l&&(l.audioTrack=b)}},{key:"subtitleTracks",get:function(){var b=this.subtitleTrackController;return b?b.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var b=this.subtitleTrackController;return b?b.subtitleTrack:-1},set:function(b){var l=this.subtitleTrackController;l&&(l.subtitleTrack=b)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var b=this.subtitleTrackController;return b?b.subtitleDisplay:!1},set:function(b){var l=this.subtitleTrackController;l&&(l.subtitleDisplay=b)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(b){this.config.lowLatencyMode=b}},{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 f.Events}},{key:"ErrorTypes",get:function(){return o.ErrorTypes}},{key:"ErrorDetails",get:function(){return o.ErrorDetails}},{key:"DefaultConfig",get:function(){return w.defaultConfig?w.defaultConfig:i.hlsDefaultConfig},set:function(b){w.defaultConfig=b}}]),w}();B.defaultConfig=void 0},"./src/is-supported.ts":function(Z,K,I){"use strict";I.r(K),I.d(K,"isSupported",function(){return O}),I.d(K,"changeTypeSupported",function(){return M});var k=I("./src/utils/mediasource-helper.ts");function _(){return self.SourceBuffer||self.WebKitSourceBuffer}function O(){var x=Object(k.getMediaSource)();if(!x)return!1;var n=_(),p=x&&typeof x.isTypeSupported=="function"&&x.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),a=!n||n.prototype&&typeof n.prototype.appendBuffer=="function"&&typeof n.prototype.remove=="function";return!!p&&!!a}function M(){var x,n=_();return typeof(n==null||((x=n.prototype)===null||x===void 0)?void 0:x.changeType)=="function"}},"./src/loader/fragment-loader.ts":function(Z,K,I){"use strict";I.r(K),I.d(K,"default",function(){return s}),I.d(K,"LoadError",function(){return u});var k=I("./src/polyfills/number.ts"),_=I("./src/errors.ts");function O(d,f){d.prototype=Object.create(f.prototype),d.prototype.constructor=d,a(d,f)}function M(d){var f=typeof Map=="function"?new Map:void 0;return M=function(c){if(c===null||!p(c))return c;if(typeof c!="function")throw new TypeError("Super expression must either be null or a function");if(typeof f!="undefined"){if(f.has(c))return f.get(c);f.set(c,E)}function E(){return x(c,arguments,t(this).constructor)}return E.prototype=Object.create(c.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),a(E,c)},M(d)}function x(d,f,o){return n()?x=Reflect.construct:x=function(E,B,w){var P=[null];P.push.apply(P,B);var C=Function.bind.apply(E,P),b=new C;return w&&a(b,w.prototype),b},x.apply(null,arguments)}function n(){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(d){return!1}}function p(d){return Function.toString.call(d).indexOf("[native code]")!==-1}function a(d,f){return a=Object.setPrototypeOf||function(c,E){return c.__proto__=E,c},a(d,f)}function t(d){return t=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)},t(d)}var h=Math.pow(2,17),s=function(){function d(o){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=o}var f=d.prototype;return f.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},f.abort=function(){this.loader&&this.loader.abort()},f.load=function(c,E){var B=this,w=c.url;if(!w)return Promise.reject(new u({type:_.ErrorTypes.NETWORK_ERROR,details:_.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:c,networkDetails:null},"Fragment does not have a "+(w?"part list":"url")));this.abort();var P=this.config,C=P.fLoader,b=P.loader;return new Promise(function(l,A){B.loader&&B.loader.destroy();var g=B.loader=c.loader=C?new C(P):new b(P),T=i(c),m={timeout:P.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:P.fragLoadingMaxRetryTimeout,highWaterMark:h};c.stats=g.stats,g.load(T,m,{onSuccess:function(U,N,S,H){B.resetLoader(c,g),l({frag:c,part:null,payload:U.data,networkDetails:H})},onError:function(U,N,S){B.resetLoader(c,g),A(new u({type:_.ErrorTypes.NETWORK_ERROR,details:_.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:c,response:U,networkDetails:S}))},onAbort:function(U,N,S){B.resetLoader(c,g),A(new u({type:_.ErrorTypes.NETWORK_ERROR,details:_.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:c,networkDetails:S}))},onTimeout:function(U,N,S){B.resetLoader(c,g),A(new u({type:_.ErrorTypes.NETWORK_ERROR,details:_.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:c,networkDetails:S}))},onProgress:function(U,N,S,H){E&&E({frag:c,part:null,payload:S,networkDetails:H})}})})},f.loadPart=function(c,E,B){var w=this;this.abort();var P=this.config,C=P.fLoader,b=P.loader;return new Promise(function(l,A){w.loader&&w.loader.destroy();var g=w.loader=c.loader=C?new C(P):new b(P),T=i(c,E),m={timeout:P.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:P.fragLoadingMaxRetryTimeout,highWaterMark:h};E.stats=g.stats,g.load(T,m,{onSuccess:function(U,N,S,H){w.resetLoader(c,g),w.updateStatsFromPart(c,E);var F={frag:c,part:E,payload:U.data,networkDetails:H};B(F),l(F)},onError:function(U,N,S){w.resetLoader(c,g),A(new u({type:_.ErrorTypes.NETWORK_ERROR,details:_.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:c,part:E,response:U,networkDetails:S}))},onAbort:function(U,N,S){c.stats.aborted=E.stats.aborted,w.resetLoader(c,g),A(new u({type:_.ErrorTypes.NETWORK_ERROR,details:_.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:c,part:E,networkDetails:S}))},onTimeout:function(U,N,S){w.resetLoader(c,g),A(new u({type:_.ErrorTypes.NETWORK_ERROR,details:_.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:c,part:E,networkDetails:S}))}})})},f.updateStatsFromPart=function(c,E){var B=c.stats,w=E.stats,P=w.total;if(B.loaded+=w.loaded,P){var C=Math.round(c.duration/E.duration),b=Math.min(Math.round(B.loaded/P),C),l=C-b,A=l*Math.round(B.loaded/b);B.total=B.loaded+A}else B.total=Math.max(B.loaded,B.total);var g=B.loading,T=w.loading;g.start?g.first+=T.first-T.start:(g.start=T.start,g.first=T.first),g.end=T.end},f.resetLoader=function(c,E){c.loader=null,this.loader===E&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),E.destroy()},d}();function i(d,f){f===void 0&&(f=null);var o=f||d,c={frag:d,part:f,responseType:"arraybuffer",url:o.url,headers:{},rangeStart:0,rangeEnd:0},E=o.byteRangeStartOffset,B=o.byteRangeEndOffset;return Object(k.isFiniteNumber)(E)&&Object(k.isFiniteNumber)(B)&&(c.rangeStart=E,c.rangeEnd=B),c}var u=function(d){O(f,d);function f(o){for(var c,E=arguments.length,B=new Array(E>1?E-1:0),w=1;w<E;w++)B[w-1]=arguments[w];return c=d.call.apply(d,[this].concat(B))||this,c.data=void 0,c.data=o,c}return f}(M(Error))},"./src/loader/fragment.ts":function(Z,K,I){"use strict";I.r(K),I.d(K,"ElementaryStreamTypes",function(){return s}),I.d(K,"BaseSegment",function(){return i}),I.d(K,"Fragment",function(){return u}),I.d(K,"Part",function(){return d});var k=I("./src/polyfills/number.ts"),_=I("./node_modules/url-toolkit/src/url-toolkit.js"),O=I.n(_),M=I("./src/utils/logger.ts"),x=I("./src/loader/level-key.ts"),n=I("./src/loader/load-stats.ts");function p(f,o){f.prototype=Object.create(o.prototype),f.prototype.constructor=f,a(f,o)}function a(f,o){return a=Object.setPrototypeOf||function(E,B){return E.__proto__=B,E},a(f,o)}function t(f,o){for(var c=0;c<o.length;c++){var E=o[c];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(f,E.key,E)}}function h(f,o,c){return o&&t(f.prototype,o),c&&t(f,c),f}var s;(function(f){f.AUDIO="audio",f.VIDEO="video",f.AUDIOVIDEO="audiovideo"})(s||(s={}));var i=function(){function f(c){var E;this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams=(E={},E[s.AUDIO]=null,E[s.VIDEO]=null,E[s.AUDIOVIDEO]=null,E),this.baseurl=c}var o=f.prototype;return o.setByteRange=function(E,B){var w=E.split("@",2),P=[];w.length===1?P[0]=B?B.byteRangeEndOffset:0:P[0]=parseInt(w[1]),P[1]=parseInt(w[0])+P[0],this._byteRange=P},h(f,[{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(_.buildAbsoluteURL)(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""},set:function(E){this._url=E}}]),f}(),u=function(f){p(o,f);function o(E,B){var w;return w=f.call(this,B)||this,w._decryptdata=null,w.rawProgramDateTime=null,w.programDateTime=null,w.tagList=[],w.duration=0,w.sn=0,w.levelkey=void 0,w.type=void 0,w.loader=null,w.level=-1,w.cc=0,w.startPTS=void 0,w.endPTS=void 0,w.appendedPTS=void 0,w.startDTS=void 0,w.endDTS=void 0,w.start=0,w.deltaPTS=void 0,w.maxStartPTS=void 0,w.minEndPTS=void 0,w.stats=new n.LoadStats,w.urlId=0,w.data=void 0,w.bitrateTest=!1,w.title=null,w.initSegment=null,w.type=E,w}var c=o.prototype;return c.createInitializationVector=function(B){for(var w=new Uint8Array(16),P=12;P<16;P++)w[P]=B>>8*(15-P)&255;return w},c.setDecryptDataFromLevelKey=function(B,w){var P=B;return(B==null?void 0:B.method)==="AES-128"&&B.uri&&!B.iv&&(P=x.LevelKey.fromURI(B.uri),P.method=B.method,P.iv=this.createInitializationVector(w),P.keyFormat="identity"),P},c.setElementaryStreamInfo=function(B,w,P,C,b,l){l===void 0&&(l=!1);var A=this.elementaryStreams,g=A[B];if(!g){A[B]={startPTS:w,endPTS:P,startDTS:C,endDTS:b,partial:l};return}g.startPTS=Math.min(g.startPTS,w),g.endPTS=Math.max(g.endPTS,P),g.startDTS=Math.min(g.startDTS,C),g.endDTS=Math.max(g.endDTS,b)},c.clearElementaryStreamInfo=function(){var B=this.elementaryStreams;B[s.AUDIO]=null,B[s.VIDEO]=null,B[s.AUDIOVIDEO]=null},h(o,[{key:"decryptdata",get:function(){if(!this.levelkey&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkey){var B=this.sn;typeof B!="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'),B=0),this._decryptdata=this.setDecryptDataFromLevelKey(this.levelkey,B)}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(this.programDateTime===null)return null;if(!Object(k.isFiniteNumber)(this.programDateTime))return null;var B=Object(k.isFiniteNumber)(this.duration)?this.duration:0;return this.programDateTime+B*1e3}},{key:"encrypted",get:function(){var B;return!!((B=this.decryptdata)!==null&&B!==void 0&&B.keyFormat&&this.decryptdata.uri)}}]),o}(i),d=function(f){p(o,f);function o(c,E,B,w,P){var C;C=f.call(this,B)||this,C.fragOffset=0,C.duration=0,C.gap=!1,C.independent=!1,C.relurl=void 0,C.fragment=void 0,C.index=void 0,C.stats=new n.LoadStats,C.duration=c.decimalFloatingPoint("DURATION"),C.gap=c.bool("GAP"),C.independent=c.bool("INDEPENDENT"),C.relurl=c.enumeratedString("URI"),C.fragment=E,C.index=w;var b=c.enumeratedString("BYTERANGE");return b&&C.setByteRange(b,P),P&&(C.fragOffset=P.fragOffset+P.duration),C}return h(o,[{key:"start",get:function(){return this.fragment.start+this.fragOffset}},{key:"end",get:function(){return this.start+this.duration}},{key:"loaded",get:function(){var E=this.elementaryStreams;return!!(E.audio||E.video||E.audiovideo)}}]),o}(i)},"./src/loader/key-loader.ts":function(Z,K,I){"use strict";I.r(K),I.d(K,"default",function(){return M});var k=I("./src/events.ts"),_=I("./src/errors.ts"),O=I("./src/utils/logger.ts"),M=function(){function x(p){this.hls=void 0,this.loaders={},this.decryptkey=null,this.decrypturl=null,this.hls=p,this._registerListeners()}var n=x.prototype;return n._registerListeners=function(){this.hls.on(k.Events.KEY_LOADING,this.onKeyLoading,this)},n._unregisterListeners=function(){this.hls.off(k.Events.KEY_LOADING,this.onKeyLoading)},n.destroy=function(){this._unregisterListeners();for(var a in this.loaders){var t=this.loaders[a];t&&t.destroy()}this.loaders={}},n.onKeyLoading=function(a,t){var h=t.frag,s=h.type,i=this.loaders[s];if(!h.decryptdata){O.logger.warn("Missing decryption data on fragment in onKeyLoading");return}var u=h.decryptdata.uri;if(u!==this.decrypturl||this.decryptkey===null){var d=this.hls.config;if(i&&(O.logger.warn("abort previous key loader for type:"+s),i.abort()),!u){O.logger.warn("key uri is falsy");return}var f=d.loader,o=h.loader=this.loaders[s]=new f(d);this.decrypturl=u,this.decryptkey=null;var c={url:u,frag:h,responseType:"arraybuffer"},E={timeout:d.fragLoadingTimeOut,maxRetry:0,retryDelay:d.fragLoadingRetryDelay,maxRetryDelay:d.fragLoadingMaxRetryTimeout,highWaterMark:0},B={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};o.load(c,E,B)}else this.decryptkey&&(h.decryptdata.key=this.decryptkey,this.hls.trigger(k.Events.KEY_LOADED,{frag:h}))},n.loadsuccess=function(a,t,h){var s=h.frag;if(!s.decryptdata){O.logger.error("after key load, decryptdata unset");return}this.decryptkey=s.decryptdata.key=new Uint8Array(a.data),s.loader=null,delete this.loaders[s.type],this.hls.trigger(k.Events.KEY_LOADED,{frag:s})},n.loaderror=function(a,t){var h=t.frag,s=h.loader;s&&s.abort(),delete this.loaders[h.type],this.hls.trigger(k.Events.ERROR,{type:_.ErrorTypes.NETWORK_ERROR,details:_.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:h,response:a})},n.loadtimeout=function(a,t){var h=t.frag,s=h.loader;s&&s.abort(),delete this.loaders[h.type],this.hls.trigger(k.Events.ERROR,{type:_.ErrorTypes.NETWORK_ERROR,details:_.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:h})},x}()},"./src/loader/level-details.ts":function(Z,K,I){"use strict";I.r(K),I.d(K,"LevelDetails",function(){return x});var k=I("./src/polyfills/number.ts");function _(n,p){for(var a=0;a<p.length;a++){var t=p[a];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(n,t.key,t)}}function O(n,p,a){return p&&_(n.prototype,p),a&&_(n,a),n}var M=10,x=function(){function n(a){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=a}var p=n.prototype;return p.reloaded=function(t){if(!t){this.advanced=!0,this.updated=!0;return}var h=this.lastPartSn-t.lastPartSn,s=this.lastPartIndex-t.lastPartIndex;this.updated=this.endSN!==t.endSN||!!s||!!h,this.advanced=this.endSN>t.endSN||h>0||h===0&&s>0,this.updated||this.advanced?this.misses=Math.floor(t.misses*.6):this.misses=t.misses+1,this.availabilityDelay=t.availabilityDelay},O(n,[{key:"hasProgramDateTime",get:function(){return this.fragments.length?Object(k.isFiniteNumber)(this.fragments[this.fragments.length-1].programDateTime):!1}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||M}},{key:"drift",get:function(){var t=this.driftEndTime-this.driftStartTime;if(t>0){var h=this.driftEnd-this.driftStart;return h*1e3/t}return 1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var t;return(t=this.partList)!==null&&t!==void 0&&t.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var t;return(t=this.fragments)!==null&&t!==void 0&&t.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 t;return(t=this.partList)!==null&&t!==void 0&&t.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var t;return(t=this.partList)!==null&&t!==void 0&&t.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),n}()},"./src/loader/level-key.ts":function(Z,K,I){"use strict";I.r(K),I.d(K,"LevelKey",function(){return x});var k=I("./node_modules/url-toolkit/src/url-toolkit.js"),_=I.n(k);function O(n,p){for(var a=0;a<p.length;a++){var t=p[a];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(n,t.key,t)}}function M(n,p,a){return p&&O(n.prototype,p),a&&O(n,a),n}var x=function(){n.fromURL=function(a,t){return new n(a,t)},n.fromURI=function(a){return new n(a)};function n(p,a){this._uri=null,this.method=null,this.keyFormat=null,this.keyFormatVersions=null,this.keyID=null,this.key=null,this.iv=null,a?this._uri=Object(k.buildAbsoluteURL)(p,a,{alwaysNormalize:!0}):this._uri=p}return M(n,[{key:"uri",get:function(){return this._uri}}]),n}()},"./src/loader/load-stats.ts":function(Z,K,I){"use strict";I.r(K),I.d(K,"LoadStats",function(){return k});var k=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,K,I){"use strict";I.r(K),I.d(K,"default",function(){return o});var k=I("./src/polyfills/number.ts"),_=I("./node_modules/url-toolkit/src/url-toolkit.js"),O=I.n(_),M=I("./src/loader/fragment.ts"),x=I("./src/loader/level-details.ts"),n=I("./src/loader/level-key.ts"),p=I("./src/utils/attr-list.ts"),a=I("./src/utils/logger.ts"),t=I("./src/utils/codecs.ts"),h=/#EXT-X-STREAM-INF:([^\r\n]*)(?:[\r\n](?:#[^\r\n]*)?)*([^\r\n]+)|#EXT-X-SESSION-DATA:([^\r\n]*)[\r\n]+/g,s=/#EXT-X-MEDIA:(.*)/g,i=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[\S ]*)/.source,/#EXT-X-BYTERANGE:*(.+)/.source,/#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/#.*/.source].join("|"),"g"),u=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("|")),d=/\.(mp4|m4s|m4v|m4a)$/i;function f(P){var C,b;return d.test((C=(b=_.parseURL(P))===null||b===void 0?void 0:b.path)!=null?C:"")}var o=function(){function P(){}return P.findGroup=function(b,l){for(var A=0;A<b.length;A++){var g=b[A];if(g.id===l)return g}},P.convertAVC1ToAVCOTI=function(b){var l=b.split(".");if(l.length>2){var A=l.shift()+".";return A+=parseInt(l.shift()).toString(16),A+=("000"+parseInt(l.shift()).toString(16)).substr(-4),A}return b},P.resolve=function(b,l){return _.buildAbsoluteURL(l,b,{alwaysNormalize:!0})},P.parseMasterPlaylist=function(b,l){var A=[],g={},T=!1;h.lastIndex=0;for(var m;(m=h.exec(b))!=null;)if(m[1]){var y=new p.AttrList(m[1]),U={attrs:y,bitrate:y.decimalInteger("AVERAGE-BANDWIDTH")||y.decimalInteger("BANDWIDTH"),name:y.NAME,url:P.resolve(m[2],l)},N=y.decimalResolution("RESOLUTION");N&&(U.width=N.width,U.height=N.height),c((y.CODECS||"").split(/[ ,]+/).filter(function(H){return H}),U),U.videoCodec&&U.videoCodec.indexOf("avc1")!==-1&&(U.videoCodec=P.convertAVC1ToAVCOTI(U.videoCodec)),A.push(U)}else if(m[3]){var S=new p.AttrList(m[3]);S["DATA-ID"]&&(T=!0,g[S["DATA-ID"]]=S)}return{levels:A,sessionData:T?g:null}},P.parseMasterPlaylistMedia=function(b,l,A,g){g===void 0&&(g=[]);var T,m=[],y=0;for(s.lastIndex=0;(T=s.exec(b))!==null;){var U=new p.AttrList(T[1]);if(U.TYPE===A){var N={attrs:U,bitrate:0,id:y++,groupId:U["GROUP-ID"],instreamId:U["INSTREAM-ID"],name:U.NAME||U.LANGUAGE||"",type:A,default:U.bool("DEFAULT"),autoselect:U.bool("AUTOSELECT"),forced:U.bool("FORCED"),lang:U.LANGUAGE,url:U.URI?P.resolve(U.URI,l):""};if(g.length){var S=P.findGroup(g,N.groupId)||g[0];E(N,S,"audioCodec"),E(N,S,"textCodec")}m.push(N)}}return m},P.parseLevelPlaylist=function(b,l,A,g,T){var m=new x.LevelDetails(l),y=m.fragments,U=null,N=0,S=0,H=0,F=0,R=null,z=new M.Fragment(g,l),Q,$,ee,fe=-1,Ae=!1;for(i.lastIndex=0,m.m3u8=b;(Q=i.exec(b))!==null;){Ae&&(Ae=!1,z=new M.Fragment(g,l),z.start=H,z.sn=N,z.cc=F,z.level=A,U&&(z.initSegment=U,z.rawProgramDateTime=U.rawProgramDateTime));var ce=Q[1];if(ce){z.duration=parseFloat(ce);var ie=(" "+Q[2]).slice(1);z.title=ie||null,z.tagList.push(ie?["INF",ce,ie]:["INF",ce])}else if(Q[3])Object(k.isFiniteNumber)(z.duration)&&(z.start=H,ee&&(z.levelkey=ee),z.sn=N,z.level=A,z.cc=F,z.urlId=T,y.push(z),z.relurl=(" "+Q[3]).slice(1),w(z,R),R=z,H+=z.duration,N++,S=0,Ae=!0);else if(Q[4]){var be=(" "+Q[4]).slice(1);R?z.setByteRange(be,R):z.setByteRange(be)}else if(Q[5])z.rawProgramDateTime=(" "+Q[5]).slice(1),z.tagList.push(["PROGRAM-DATE-TIME",z.rawProgramDateTime]),fe===-1&&(fe=y.length);else{if(Q=Q[0].match(u),!Q){a.logger.warn("No matches on slow regex match for level playlist!");continue}for($=1;$<Q.length&&!(typeof Q[$]!="undefined");$++);var se=(" "+Q[$]).slice(1),me=(" "+Q[$+1]).slice(1),le=Q[$+2]?(" "+Q[$+2]).slice(1):"";switch(se){case"PLAYLIST-TYPE":m.type=me.toUpperCase();break;case"MEDIA-SEQUENCE":N=m.startSN=parseInt(me);break;case"SKIP":{var ge=new p.AttrList(me),ae=ge.decimalInteger("SKIPPED-SEGMENTS");if(Object(k.isFiniteNumber)(ae)){m.skippedSegments=ae;for(var pe=ae;pe--;)y.unshift(null);N+=ae}var Me=ge.enumeratedString("RECENTLY-REMOVED-DATERANGES");Me&&(m.recentlyRemovedDateranges=Me.split(" "));break}case"TARGETDURATION":m.targetduration=parseFloat(me);break;case"VERSION":m.version=parseInt(me);break;case"EXTM3U":break;case"ENDLIST":m.live=!1;break;case"#":(me||le)&&z.tagList.push(le?[me,le]:[me]);break;case"DIS":F++;case"GAP":z.tagList.push([se]);break;case"BITRATE":z.tagList.push([se,me]);break;case"DISCONTINUITY-SEQ":F=parseInt(me);break;case"KEY":{var xe,Ke=new p.AttrList(me),tt=Ke.enumeratedString("METHOD"),he=Ke.URI,Se=Ke.hexadecimalInteger("IV"),Ue=Ke.enumeratedString("KEYFORMATVERSIONS"),Ne=Ke.enumeratedString("KEYID"),ct=(xe=Ke.enumeratedString("KEYFORMAT"))!=null?xe:"identity",mt=["com.apple.streamingkeydelivery","com.microsoft.playready","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed","com.widevine"];if(mt.indexOf(ct)>-1){a.logger.warn("Keyformat "+ct+" is not supported from the manifest");continue}else if(ct!=="identity")continue;tt&&(ee=n.LevelKey.fromURL(l,he),he&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(tt)>=0&&(ee.method=tt,ee.keyFormat=ct,Ne&&(ee.keyID=Ne),Ue&&(ee.keyFormatVersions=Ue),ee.iv=Se));break}case"START":{var Rt=new p.AttrList(me),ht=Rt.decimalFloatingPoint("TIME-OFFSET");Object(k.isFiniteNumber)(ht)&&(m.startTimeOffset=ht);break}case"MAP":{var Ut=new p.AttrList(me);z.relurl=Ut.URI,Ut.BYTERANGE&&z.setByteRange(Ut.BYTERANGE),z.level=A,z.sn="initSegment",ee&&(z.levelkey=ee),z.initSegment=null,U=z,Ae=!0;break}case"SERVER-CONTROL":{var zt=new p.AttrList(me);m.canBlockReload=zt.bool("CAN-BLOCK-RELOAD"),m.canSkipUntil=zt.optionalFloat("CAN-SKIP-UNTIL",0),m.canSkipDateRanges=m.canSkipUntil>0&&zt.bool("CAN-SKIP-DATERANGES"),m.partHoldBack=zt.optionalFloat("PART-HOLD-BACK",0),m.holdBack=zt.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var ze=new p.AttrList(me);m.partTarget=ze.decimalFloatingPoint("PART-TARGET");break}case"PART":{var Ve=m.partList;Ve||(Ve=m.partList=[]);var Et=S>0?Ve[Ve.length-1]:void 0,Ot=S++,ut=new M.Part(new p.AttrList(me),z,l,Ot,Et);Ve.push(ut),z.duration+=ut.duration;break}case"PRELOAD-HINT":{var vt=new p.AttrList(me);m.preloadHint=vt;break}case"RENDITION-REPORT":{var Ze=new p.AttrList(me);m.renditionReports=m.renditionReports||[],m.renditionReports.push(Ze);break}default:a.logger.warn("line parsed but not handled: "+Q);break}}}R&&!R.relurl?(y.pop(),H-=R.duration,m.partList&&(m.fragmentHint=R)):m.partList&&(w(z,R),z.cc=F,m.fragmentHint=z);var ke=y.length,He=y[0],we=y[ke-1];if(H+=m.skippedSegments*m.targetduration,H>0&&ke&&we){m.averagetargetduration=H/ke;var Le=we.sn;m.endSN=Le!=="initSegment"?Le:0,He&&(m.startCC=He.cc,He.initSegment||m.fragments.every(function(Pe){return Pe.relurl&&f(Pe.relurl)})&&(a.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),z=new M.Fragment(g,l),z.relurl=we.relurl,z.level=A,z.sn="initSegment",He.initSegment=z,m.needSidxRanges=!0))}else m.endSN=0,m.startCC=0;return m.fragmentHint&&(H+=m.fragmentHint.duration),m.totalduration=H,m.endCC=F,fe>0&&B(y,fe),m},P}();function c(P,C){["video","audio","text"].forEach(function(b){var l=P.filter(function(g){return Object(t.isCodecType)(g,b)});if(l.length){var A=l.filter(function(g){return g.lastIndexOf("avc1",0)===0||g.lastIndexOf("mp4a",0)===0});C[b+"Codec"]=A.length>0?A[0]:l[0],P=P.filter(function(g){return l.indexOf(g)===-1})}}),C.unknownCodecs=P}function E(P,C,b){var l=C[b];l&&(P[b]=l)}function B(P,C){for(var b=P[C],l=C;l--;){var A=P[l];if(!A)return;A.programDateTime=b.programDateTime-A.duration*1e3,b=A}}function w(P,C){P.rawProgramDateTime?P.programDateTime=Date.parse(P.rawProgramDateTime):C!=null&&C.programDateTime&&(P.programDateTime=C.endProgramDateTime),Object(k.isFiniteNumber)(P.programDateTime)||(P.programDateTime=null,P.rawProgramDateTime=null)}},"./src/loader/playlist-loader.ts":function(Z,K,I){"use strict";I.r(K);var k=I("./src/polyfills/number.ts"),_=I("./src/events.ts"),O=I("./src/errors.ts"),M=I("./src/utils/logger.ts"),x=I("./src/utils/mp4-tools.ts"),n=I("./src/loader/m3u8-parser.ts"),p=I("./src/types/loader.ts"),a=I("./src/utils/attr-list.ts");function t(i){var u=i.type;switch(u){case p.PlaylistContextType.AUDIO_TRACK:return p.PlaylistLevelType.AUDIO;case p.PlaylistContextType.SUBTITLE_TRACK:return p.PlaylistLevelType.SUBTITLE;default:return p.PlaylistLevelType.MAIN}}function h(i,u){var d=i.url;return(d===void 0||d.indexOf("data:")===0)&&(d=u.url),d}var s=function(){function i(d){this.hls=void 0,this.loaders=Object.create(null),this.hls=d,this.registerListeners()}var u=i.prototype;return u.registerListeners=function(){var f=this.hls;f.on(_.Events.MANIFEST_LOADING,this.onManifestLoading,this),f.on(_.Events.LEVEL_LOADING,this.onLevelLoading,this),f.on(_.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),f.on(_.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},u.unregisterListeners=function(){var f=this.hls;f.off(_.Events.MANIFEST_LOADING,this.onManifestLoading,this),f.off(_.Events.LEVEL_LOADING,this.onLevelLoading,this),f.off(_.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),f.off(_.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},u.createInternalLoader=function(f){var o=this.hls.config,c=o.pLoader,E=o.loader,B=c||E,w=new B(o);return f.loader=w,this.loaders[f.type]=w,w},u.getInternalLoader=function(f){return this.loaders[f.type]},u.resetInternalLoader=function(f){this.loaders[f]&&delete this.loaders[f]},u.destroyInternalLoaders=function(){for(var f in this.loaders){var o=this.loaders[f];o&&o.destroy(),this.resetInternalLoader(f)}},u.destroy=function(){this.unregisterListeners(),this.destroyInternalLoaders()},u.onManifestLoading=function(f,o){var c=o.url;this.load({id:null,groupId:null,level:0,responseType:"text",type:p.PlaylistContextType.MANIFEST,url:c,deliveryDirectives:null})},u.onLevelLoading=function(f,o){var c=o.id,E=o.level,B=o.url,w=o.deliveryDirectives;this.load({id:c,groupId:null,level:E,responseType:"text",type:p.PlaylistContextType.LEVEL,url:B,deliveryDirectives:w})},u.onAudioTrackLoading=function(f,o){var c=o.id,E=o.groupId,B=o.url,w=o.deliveryDirectives;this.load({id:c,groupId:E,level:null,responseType:"text",type:p.PlaylistContextType.AUDIO_TRACK,url:B,deliveryDirectives:w})},u.onSubtitleTrackLoading=function(f,o){var c=o.id,E=o.groupId,B=o.url,w=o.deliveryDirectives;this.load({id:c,groupId:E,level:null,responseType:"text",type:p.PlaylistContextType.SUBTITLE_TRACK,url:B,deliveryDirectives:w})},u.load=function(f){var o,c=this.hls.config,E=this.getInternalLoader(f);if(E){var B=E.context;if(B&&B.url===f.url){M.logger.trace("[playlist-loader]: playlist request ongoing");return}M.logger.log("[playlist-loader]: aborting previous loader for type: "+f.type),E.abort()}var w,P,C,b;switch(f.type){case p.PlaylistContextType.MANIFEST:w=c.manifestLoadingMaxRetry,P=c.manifestLoadingTimeOut,C=c.manifestLoadingRetryDelay,b=c.manifestLoadingMaxRetryTimeout;break;case p.PlaylistContextType.LEVEL:case p.PlaylistContextType.AUDIO_TRACK:case p.PlaylistContextType.SUBTITLE_TRACK:w=0,P=c.levelLoadingTimeOut;break;default:w=c.levelLoadingMaxRetry,P=c.levelLoadingTimeOut,C=c.levelLoadingRetryDelay,b=c.levelLoadingMaxRetryTimeout;break}if(E=this.createInternalLoader(f),(o=f.deliveryDirectives)!==null&&o!==void 0&&o.part){var l;if(f.type===p.PlaylistContextType.LEVEL&&f.level!==null?l=this.hls.levels[f.level].details:f.type===p.PlaylistContextType.AUDIO_TRACK&&f.id!==null?l=this.hls.audioTracks[f.id].details:f.type===p.PlaylistContextType.SUBTITLE_TRACK&&f.id!==null&&(l=this.hls.subtitleTracks[f.id].details),l){var A=l.partTarget,g=l.targetduration;A&&g&&(P=Math.min(Math.max(A*3,g*.8)*1e3,P))}}var T={timeout:P,maxRetry:w,retryDelay:C,maxRetryDelay:b,highWaterMark:0},m={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};E.load(f,T,m)},u.loadsuccess=function(f,o,c,E){if(E===void 0&&(E=null),c.isSidxRequest){this.handleSidxRequest(f,c),this.handlePlaylistLoaded(f,o,c,E);return}this.resetInternalLoader(c.type);var B=f.data;if(B.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(f,c,"no EXTM3U delimiter",E);return}o.parsing.start=performance.now(),B.indexOf("#EXTINF:")>0||B.indexOf("#EXT-X-TARGETDURATION:")>0?this.handleTrackOrLevelPlaylist(f,o,c,E):this.handleMasterPlaylist(f,o,c,E)},u.loaderror=function(f,o,c){c===void 0&&(c=null),this.handleNetworkError(o,c,!1,f)},u.loadtimeout=function(f,o,c){c===void 0&&(c=null),this.handleNetworkError(o,c,!0)},u.handleMasterPlaylist=function(f,o,c,E){var B=this.hls,w=f.data,P=h(f,c),C=n.default.parseMasterPlaylist(w,P),b=C.levels,l=C.sessionData;if(!b.length){this.handleManifestParsingError(f,c,"no level found in manifest",E);return}var A=b.map(function(N){return{id:N.attrs.AUDIO,audioCodec:N.audioCodec}}),g=b.map(function(N){return{id:N.attrs.SUBTITLES,textCodec:N.textCodec}}),T=n.default.parseMasterPlaylistMedia(w,P,"AUDIO",A),m=n.default.parseMasterPlaylistMedia(w,P,"SUBTITLES",g),y=n.default.parseMasterPlaylistMedia(w,P,"CLOSED-CAPTIONS");if(T.length){var U=T.some(function(N){return!N.url});!U&&b[0].audioCodec&&!b[0].attrs.AUDIO&&(M.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),T.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new a.AttrList({}),bitrate:0,url:""}))}B.trigger(_.Events.MANIFEST_LOADED,{levels:b,audioTracks:T,subtitles:m,captions:y,url:P,stats:o,networkDetails:E,sessionData:l})},u.handleTrackOrLevelPlaylist=function(f,o,c,E){var B=this.hls,w=c.id,P=c.level,C=c.type,b=h(f,c),l=Object(k.isFiniteNumber)(w)?w:0,A=Object(k.isFiniteNumber)(P)?P:l,g=t(c),T=n.default.parseLevelPlaylist(f.data,b,A,g,l);if(!T.fragments.length){B.trigger(_.Events.ERROR,{type:O.ErrorTypes.NETWORK_ERROR,details:O.ErrorDetails.LEVEL_EMPTY_ERROR,fatal:!1,url:b,reason:"no fragments found in level",level:typeof c.level=="number"?c.level:void 0});return}if(C===p.PlaylistContextType.MANIFEST){var m={attrs:new a.AttrList({}),bitrate:0,details:T,name:"",url:b};B.trigger(_.Events.MANIFEST_LOADED,{levels:[m],audioTracks:[],url:b,stats:o,networkDetails:E,sessionData:null})}if(o.parsing.end=performance.now(),T.needSidxRanges){var y,U=(y=T.fragments[0].initSegment)===null||y===void 0?void 0:y.url;this.load({url:U,isSidxRequest:!0,type:C,level:P,levelDetails:T,id:w,groupId:null,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer",deliveryDirectives:null});return}c.levelDetails=T,this.handlePlaylistLoaded(f,o,c,E)},u.handleSidxRequest=function(f,o){var c=Object(x.parseSegmentIndex)(new Uint8Array(f.data));if(!c)return;var E=c.references,B=o.levelDetails;E.forEach(function(w,P){var C=w.info,b=B.fragments[P];b.byteRange.length===0&&b.setByteRange(String(1+C.end-C.start)+"@"+String(C.start)),b.initSegment&&b.initSegment.setByteRange(String(c.moovEndOffset)+"@0")})},u.handleManifestParsingError=function(f,o,c,E){this.hls.trigger(_.Events.ERROR,{type:O.ErrorTypes.NETWORK_ERROR,details:O.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:o.type===p.PlaylistContextType.MANIFEST,url:f.url,reason:c,response:f,context:o,networkDetails:E})},u.handleNetworkError=function(f,o,c,E){c===void 0&&(c=!1),M.logger.warn("[playlist-loader]: A network "+(c?"timeout":"error")+" occurred while loading "+f.type+" level: "+f.level+" id: "+f.id+' group-id: "'+f.groupId+'"');var B=O.ErrorDetails.UNKNOWN,w=!1,P=this.getInternalLoader(f);switch(f.type){case p.PlaylistContextType.MANIFEST:B=c?O.ErrorDetails.MANIFEST_LOAD_TIMEOUT:O.ErrorDetails.MANIFEST_LOAD_ERROR,w=!0;break;case p.PlaylistContextType.LEVEL:B=c?O.ErrorDetails.LEVEL_LOAD_TIMEOUT:O.ErrorDetails.LEVEL_LOAD_ERROR,w=!1;break;case p.PlaylistContextType.AUDIO_TRACK:B=c?O.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:O.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,w=!1;break;case p.PlaylistContextType.SUBTITLE_TRACK:B=c?O.ErrorDetails.SUBTITLE_TRACK_LOAD_TIMEOUT:O.ErrorDetails.SUBTITLE_LOAD_ERROR,w=!1;break}P&&this.resetInternalLoader(f.type);var C={type:O.ErrorTypes.NETWORK_ERROR,details:B,fatal:w,url:f.url,loader:P,context:f,networkDetails:o};E&&(C.response=E),this.hls.trigger(_.Events.ERROR,C)},u.handlePlaylistLoaded=function(f,o,c,E){var B=c.type,w=c.level,P=c.id,C=c.groupId,b=c.loader,l=c.levelDetails,A=c.deliveryDirectives;if(!(l!=null&&l.targetduration)){this.handleManifestParsingError(f,c,"invalid target duration",E);return}if(!b)return;l.live&&(b.getCacheAge&&(l.ageHeader=b.getCacheAge()||0),(!b.getCacheAge||isNaN(l.ageHeader))&&(l.ageHeader=0));switch(B){case p.PlaylistContextType.MANIFEST:case p.PlaylistContextType.LEVEL:this.hls.trigger(_.Events.LEVEL_LOADED,{details:l,level:w||0,id:P||0,stats:o,networkDetails:E,deliveryDirectives:A});break;case p.PlaylistContextType.AUDIO_TRACK:this.hls.trigger(_.Events.AUDIO_TRACK_LOADED,{details:l,id:P||0,groupId:C||"",stats:o,networkDetails:E,deliveryDirectives:A});break;case p.PlaylistContextType.SUBTITLE_TRACK:this.hls.trigger(_.Events.SUBTITLE_TRACK_LOADED,{details:l,id:P||0,groupId:C||"",stats:o,networkDetails:E,deliveryDirectives:A});break}},i}();K.default=s},"./src/polyfills/number.ts":function(Z,K,I){"use strict";I.r(K),I.d(K,"isFiniteNumber",function(){return k}),I.d(K,"MAX_SAFE_INTEGER",function(){return _});var k=Number.isFinite||function(O){return typeof O=="number"&&isFinite(O)},_=Number.MAX_SAFE_INTEGER||9007199254740991},"./src/remux/aac-helper.ts":function(Z,K,I){"use strict";I.r(K);var k=function(){function _(){}return _.getSilentFrame=function(M,x){switch(M){case"mp4a.40.2":if(x===1)return new Uint8Array([0,200,0,128,35,128]);if(x===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(x===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(x===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(x===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(x===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(x===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(x===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(x===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},_}();K.default=k},"./src/remux/mp4-generator.ts":function(Z,K,I){"use strict";I.r(K);var k=Math.pow(2,32)-1,_=function(){function O(){}return O.init=function(){O.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 x;for(x in O.types)O.types.hasOwnProperty(x)&&(O.types[x]=[x.charCodeAt(0),x.charCodeAt(1),x.charCodeAt(2),x.charCodeAt(3)]);var n=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]),p=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]);O.HDLR_TYPES={video:n,audio:p};var a=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),t=new Uint8Array([0,0,0,0,0,0,0,0]);O.STTS=O.STSC=O.STCO=t,O.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),O.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),O.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),O.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var h=new Uint8Array([105,115,111,109]),s=new Uint8Array([97,118,99,49]),i=new Uint8Array([0,0,0,1]);O.FTYP=O.box(O.types.ftyp,h,i,h,s),O.DINF=O.box(O.types.dinf,O.box(O.types.dref,a))},O.box=function(x){for(var n=8,p=arguments.length,a=new Array(p>1?p-1:0),t=1;t<p;t++)a[t-1]=arguments[t];for(var h=a.length,s=h;h--;)n+=a[h].byteLength;var i=new Uint8Array(n);for(i[0]=n>>24&255,i[1]=n>>16&255,i[2]=n>>8&255,i[3]=n&255,i.set(x,4),h=0,n=8;h<s;h++)i.set(a[h],n),n+=a[h].byteLength;return i},O.hdlr=function(x){return O.box(O.types.hdlr,O.HDLR_TYPES[x])},O.mdat=function(x){return O.box(O.types.mdat,x)},O.mdhd=function(x,n){n*=x;var p=Math.floor(n/(k+1)),a=Math.floor(n%(k+1));return O.box(O.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,x>>24&255,x>>16&255,x>>8&255,x&255,p>>24,p>>16&255,p>>8&255,p&255,a>>24,a>>16&255,a>>8&255,a&255,85,196,0,0]))},O.mdia=function(x){return O.box(O.types.mdia,O.mdhd(x.timescale,x.duration),O.hdlr(x.type),O.minf(x))},O.mfhd=function(x){return O.box(O.types.mfhd,new Uint8Array([0,0,0,0,x>>24,x>>16&255,x>>8&255,x&255]))},O.minf=function(x){return x.type==="audio"?O.box(O.types.minf,O.box(O.types.smhd,O.SMHD),O.DINF,O.stbl(x)):O.box(O.types.minf,O.box(O.types.vmhd,O.VMHD),O.DINF,O.stbl(x))},O.moof=function(x,n,p){return O.box(O.types.moof,O.mfhd(x),O.traf(p,n))},O.moov=function(x){for(var n=x.length,p=[];n--;)p[n]=O.trak(x[n]);return O.box.apply(null,[O.types.moov,O.mvhd(x[0].timescale,x[0].duration)].concat(p).concat(O.mvex(x)))},O.mvex=function(x){for(var n=x.length,p=[];n--;)p[n]=O.trex(x[n]);return O.box.apply(null,[O.types.mvex].concat(p))},O.mvhd=function(x,n){n*=x;var p=Math.floor(n/(k+1)),a=Math.floor(n%(k+1)),t=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,x>>24&255,x>>16&255,x>>8&255,x&255,p>>24,p>>16&255,p>>8&255,p&255,a>>24,a>>16&255,a>>8&255,a&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 O.box(O.types.mvhd,t)},O.sdtp=function(x){var n=x.samples||[],p=new Uint8Array(4+n.length),a,t;for(a=0;a<n.length;a++)t=n[a].flags,p[a+4]=t.dependsOn<<4|t.isDependedOn<<2|t.hasRedundancy;return O.box(O.types.sdtp,p)},O.stbl=function(x){return O.box(O.types.stbl,O.stsd(x),O.box(O.types.stts,O.STTS),O.box(O.types.stsc,O.STSC),O.box(O.types.stsz,O.STSZ),O.box(O.types.stco,O.STCO))},O.avc1=function(x){var n=[],p=[],a,t,h;for(a=0;a<x.sps.length;a++)t=x.sps[a],h=t.byteLength,n.push(h>>>8&255),n.push(h&255),n=n.concat(Array.prototype.slice.call(t));for(a=0;a<x.pps.length;a++)t=x.pps[a],h=t.byteLength,p.push(h>>>8&255),p.push(h&255),p=p.concat(Array.prototype.slice.call(t));var s=O.box(O.types.avcC,new Uint8Array([1,n[3],n[4],n[5],252|3,224|x.sps.length].concat(n).concat([x.pps.length]).concat(p))),i=x.width,u=x.height,d=x.pixelRatio[0],f=x.pixelRatio[1];return O.box(O.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,i>>8&255,i&255,u>>8&255,u&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),s,O.box(O.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),O.box(O.types.pasp,new Uint8Array([d>>24,d>>16&255,d>>8&255,d&255,f>>24,f>>16&255,f>>8&255,f&255])))},O.esds=function(x){var n=x.config.length;return new Uint8Array([0,0,0,0,3,23+n,0,1,0,4,15+n,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([n]).concat(x.config).concat([6,1,2]))},O.mp4a=function(x){var n=x.samplerate;return O.box(O.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,x.channelCount,0,16,0,0,0,0,n>>8&255,n&255,0,0]),O.box(O.types.esds,O.esds(x)))},O.mp3=function(x){var n=x.samplerate;return O.box(O.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,x.channelCount,0,16,0,0,0,0,n>>8&255,n&255,0,0]))},O.stsd=function(x){return x.type==="audio"?!x.isAAC&&x.codec==="mp3"?O.box(O.types.stsd,O.STSD,O.mp3(x)):O.box(O.types.stsd,O.STSD,O.mp4a(x)):O.box(O.types.stsd,O.STSD,O.avc1(x))},O.tkhd=function(x){var n=x.id,p=x.duration*x.timescale,a=x.width,t=x.height,h=Math.floor(p/(k+1)),s=Math.floor(p%(k+1));return O.box(O.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,n>>24&255,n>>16&255,n>>8&255,n&255,0,0,0,0,h>>24,h>>16&255,h>>8&255,h&255,s>>24,s>>16&255,s>>8&255,s&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,a>>8&255,a&255,0,0,t>>8&255,t&255,0,0]))},O.traf=function(x,n){var p=O.sdtp(x),a=x.id,t=Math.floor(n/(k+1)),h=Math.floor(n%(k+1));return O.box(O.types.traf,O.box(O.types.tfhd,new Uint8Array([0,0,0,0,a>>24,a>>16&255,a>>8&255,a&255])),O.box(O.types.tfdt,new Uint8Array([1,0,0,0,t>>24,t>>16&255,t>>8&255,t&255,h>>24,h>>16&255,h>>8&255,h&255])),O.trun(x,p.length+16+20+8+16+8+8),p)},O.trak=function(x){return x.duration=x.duration||4294967295,O.box(O.types.trak,O.tkhd(x),O.mdia(x))},O.trex=function(x){var n=x.id;return O.box(O.types.trex,new Uint8Array([0,0,0,0,n>>24,n>>16&255,n>>8&255,n&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},O.trun=function(x,n){var p=x.samples||[],a=p.length,t=12+16*a,h=new Uint8Array(t),s,i,u,d,f,o;for(n+=8+t,h.set([0,0,15,1,a>>>24&255,a>>>16&255,a>>>8&255,a&255,n>>>24&255,n>>>16&255,n>>>8&255,n&255],0),s=0;s<a;s++)i=p[s],u=i.duration,d=i.size,f=i.flags,o=i.cts,h.set([u>>>24&255,u>>>16&255,u>>>8&255,u&255,d>>>24&255,d>>>16&255,d>>>8&255,d&255,f.isLeading<<2|f.dependsOn,f.isDependedOn<<6|f.hasRedundancy<<4|f.paddingValue<<1|f.isNonSync,f.degradPrio&240<<8,f.degradPrio&15,o>>>24&255,o>>>16&255,o>>>8&255,o&255],12+16*s);return O.box(O.types.trun,h)},O.initSegment=function(x){O.types||O.init();var n=O.moov(x),p=new Uint8Array(O.FTYP.byteLength+n.byteLength);return p.set(O.FTYP),p.set(n,O.FTYP.byteLength),p},O}();_.types=void 0,_.HDLR_TYPES=void 0,_.STTS=void 0,_.STSC=void 0,_.STCO=void 0,_.STSZ=void 0,_.VMHD=void 0,_.SMHD=void 0,_.STSD=void 0,_.FTYP=void 0,_.DINF=void 0,K.default=_},"./src/remux/mp4-remuxer.ts":function(Z,K,I){"use strict";I.r(K),I.d(K,"default",function(){return o}),I.d(K,"normalizePts",function(){return c});var k=I("./src/polyfills/number.ts"),_=I("./src/remux/aac-helper.ts"),O=I("./src/remux/mp4-generator.ts"),M=I("./src/events.ts"),x=I("./src/errors.ts"),n=I("./src/utils/logger.ts"),p=I("./src/types/loader.ts"),a=I("./src/utils/timescale-conversion.ts");function t(){return t=Object.assign||function(P){for(var C=1;C<arguments.length;C++){var b=arguments[C];for(var l in b)Object.prototype.hasOwnProperty.call(b,l)&&(P[l]=b[l])}return P},t.apply(this,arguments)}var h=10*1e3,s=1024,i=1152,u=null,d=null,f=!1,o=function(){function P(b,l,A,g){if(g===void 0&&(g=""),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=b,this.config=l,this.typeSupported=A,this.ISGenerated=!1,u===null){var T=navigator.userAgent||"",m=T.match(/Chrome\/(\d+)/i);u=m?parseInt(m[1]):0}if(d===null){var y=navigator.userAgent.match(/Safari\/(\d+)/i);d=y?parseInt(y[1]):0}f=!!u&&u<75||!!d&&d<600}var C=P.prototype;return C.destroy=function(){},C.resetTimeStamp=function(l){n.logger.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=l},C.resetNextTimestamp=function(){n.logger.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1},C.resetInitSegment=function(){n.logger.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1},C.getVideoStartPts=function(l){var A=!1,g=l.reduce(function(T,m){var y=m.pts-T;return y<-4294967296?(A=!0,c(T,m.pts)):y>0?T:m.pts},l[0].pts);return A&&n.logger.debug("PTS rollover detected"),g},C.remux=function(l,A,g,T,m,y,U,N){var S,H,F,R,z,Q,$=m,ee=m,fe=l.pid>-1,Ae=A.pid>-1,ce=A.samples.length,ie=l.samples.length>0,be=ce>1,se=(!fe||ie)&&(!Ae||be)||this.ISGenerated||U;if(se){this.ISGenerated||(F=this.generateIS(l,A,m));var me=this.isVideoContiguous,le=-1;if(be&&(le=E(A.samples),!me&&this.config.forceKeyFrameOnDiscontinuity))if(Q=!0,le>0){n.logger.warn("[mp4-remuxer]: Dropped "+le+" out of "+ce+" video samples due to a missing keyframe");var ge=this.getVideoStartPts(A.samples);A.samples=A.samples.slice(le),A.dropped+=le,ee+=(A.samples[0].pts-ge)/(A.timescale||9e4)}else le===-1&&(n.logger.warn("[mp4-remuxer]: No keyframe found out of "+ce+" video samples"),Q=!1);if(this.ISGenerated){if(ie&&be){var ae=this.getVideoStartPts(A.samples),pe=c(l.samples[0].pts,ae)-ae,Me=pe/A.inputTimeScale;$+=Math.max(0,Me),ee+=Math.max(0,-Me)}if(ie){if(l.samplerate||(n.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),F=this.generateIS(l,A,m)),H=this.remuxAudio(l,$,this.isAudioContiguous,y,Ae||be||N===p.PlaylistLevelType.AUDIO?ee:void 0),be){var xe=H?H.endPTS-H.startPTS:0;A.inputTimeScale||(n.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),F=this.generateIS(l,A,m)),S=this.remuxVideo(A,ee,me,xe)}}else be&&(S=this.remuxVideo(A,ee,me,0));S&&(S.firstKeyFrame=le,S.independent=le!==-1)}}return this.ISGenerated&&(g.samples.length&&(z=this.remuxID3(g,m)),T.samples.length&&(R=this.remuxText(T,m))),{audio:H,video:S,initSegment:F,independent:Q,text:R,id3:z}},C.generateIS=function(l,A,g){var T=l.samples,m=A.samples,y=this.typeSupported,U={},N=!Object(k.isFiniteNumber)(this._initPTS),S="audio/mp4",H,F,R;if(N&&(H=F=Infinity),l.config&&T.length&&(l.timescale=l.samplerate,l.isAAC||(y.mpeg?(S="audio/mpeg",l.codec=""):y.mp3&&(l.codec="mp3")),U.audio={id:"audio",container:S,codec:l.codec,initSegment:!l.isAAC&&y.mpeg?new Uint8Array(0):O.default.initSegment([l]),metadata:{channelCount:l.channelCount}},N&&(R=l.inputTimeScale,H=F=T[0].pts-Math.round(R*g))),A.sps&&A.pps&&m.length&&(A.timescale=A.inputTimeScale,U.video={id:"main",container:"video/mp4",codec:A.codec,initSegment:O.default.initSegment([A]),metadata:{width:A.width,height:A.height}},N)){R=A.inputTimeScale;var z=this.getVideoStartPts(m),Q=Math.round(R*g);F=Math.min(F,c(m[0].dts,z)-Q),H=Math.min(H,z-Q)}if(Object.keys(U).length)return this.ISGenerated=!0,N&&(this._initPTS=H,this._initDTS=F),{tracks:U,initPTS:H,timescale:R}},C.remuxVideo=function(l,A,g,T){var m=l.inputTimeScale,y=l.samples,U=[],N=y.length,S=this._initPTS,H=this.nextAvcDts,F=8,R,z,Q,$=Number.POSITIVE_INFINITY,ee=Number.NEGATIVE_INFINITY,fe=0,Ae=!1;if(!g||H===null){var ce=A*m,ie=y[0].pts-c(y[0].dts,y[0].pts);H=ce-ie}for(var be=0;be<N;be++){var se=y[be];if(se.pts=c(se.pts-S,H),se.dts=c(se.dts-S,H),se.dts>se.pts){var me=9e4*.2;fe=Math.max(Math.min(fe,se.pts-se.dts),-1*me)}se.dts<y[be>0?be-1:be].dts&&(Ae=!0)}Ae&&y.sort(function(Ct,pt){var Je=Ct.dts-pt.dts,Qe=Ct.pts-pt.pts;return Je||Qe}),z=y[0].dts,Q=y[y.length-1].dts;var le=Math.round((Q-z)/(N-1));if(fe<0){if(fe<le*-2){n.logger.warn("PTS < DTS detected in video samples, offsetting DTS from PTS by "+Object(a.toMsFromMpegTsClock)(-le,!0)+" ms");for(var ge=fe,ae=0;ae<N;ae++)y[ae].dts=ge=Math.max(ge,y[ae].pts-le),y[ae].pts=Math.max(ge,y[ae].pts)}else{n.logger.warn("PTS < DTS detected in video samples, shifting DTS by "+Object(a.toMsFromMpegTsClock)(fe,!0)+" ms to overcome this issue");for(var pe=0;pe<N;pe++)y[pe].dts=y[pe].dts+fe}z=y[0].dts}if(g){var Me=z-H,xe=Me>le,Ke=Me<-1;if(xe||Ke){xe?n.logger.warn("AVC: "+Object(a.toMsFromMpegTsClock)(Me,!0)+" ms ("+Me+"dts) hole between fragments detected, filling it"):n.logger.warn("AVC: "+Object(a.toMsFromMpegTsClock)(-Me,!0)+" ms ("+Me+"dts) overlapping between fragments detected"),z=H;var tt=y[0].pts-Me;y[0].dts=z,y[0].pts=tt,n.logger.log("Video: First PTS/DTS adjusted: "+Object(a.toMsFromMpegTsClock)(tt,!0)+"/"+Object(a.toMsFromMpegTsClock)(z,!0)+", delta: "+Object(a.toMsFromMpegTsClock)(Me,!0)+" ms")}}f&&(z=Math.max(0,z));for(var he=0,Se=0,Ue=0;Ue<N;Ue++){for(var Ne=y[Ue],ct=Ne.units,mt=ct.length,Rt=0,ht=0;ht<mt;ht++)Rt+=ct[ht].data.length;Se+=Rt,he+=mt,Ne.length=Rt,Ne.dts=Math.max(Ne.dts,z),Ne.pts=Math.max(Ne.pts,Ne.dts,0),$=Math.min(Ne.pts,$),ee=Math.max(Ne.pts,ee)}Q=y[N-1].dts;var Ut=Se+4*he+8,zt;try{zt=new Uint8Array(Ut)}catch(Ct){this.observer.emit(M.Events.ERROR,M.Events.ERROR,{type:x.ErrorTypes.MUX_ERROR,details:x.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:Ut,reason:"fail allocating video mdat "+Ut});return}var ze=new DataView(zt.buffer);ze.setUint32(0,Ut),zt.set(O.default.types.mdat,4);for(var Ve=0;Ve<N;Ve++){for(var Et=y[Ve],Ot=Et.units,ut=0,vt=0,Ze=Ot.length;vt<Ze;vt++){var ke=Ot[vt],He=ke.data,we=ke.data.byteLength;ze.setUint32(F,we),F+=4,zt.set(He,F),F+=we,ut+=4+we}if(Ve<N-1)R=y[Ve+1].dts-Et.dts;else{var Le=this.config,Pe=Et.dts-y[Ve>0?Ve-1:Ve].dts;if(Le.stretchShortVideoTrack&&this.nextAudioPts!==null){var We=Math.floor(Le.maxBufferHole*m),Xe=(T?$+T*m:this.nextAudioPts)-Et.pts;Xe>We?(R=Xe-Pe,R<0&&(R=Pe),n.logger.log("[mp4-remuxer]: It is approximately "+Xe/90+" ms to the next segment; using duration "+R/90+" ms for the last video frame.")):R=Pe}else R=Pe}var gt=Math.round(Et.pts-Et.dts);U.push(new B(Et.key,R,ut,gt))}if(U.length&&u&&u<70){var Lt=U[0].flags;Lt.dependsOn=2,Lt.isNonSync=0}console.assert(R!==void 0,"mp4SampleDuration must be computed"),this.nextAvcDts=H=Q+R,this.isVideoContiguous=!0;var en=O.default.moof(l.sequenceNumber++,z,t({},l,{samples:U})),Zt="video",xt={data1:en,data2:zt,startPTS:$/m,endPTS:(ee+R)/m,startDTS:z/m,endDTS:H/m,type:Zt,hasAudio:!1,hasVideo:!0,nb:U.length,dropped:l.dropped};return l.samples=[],l.dropped=0,console.assert(zt.length,"MDAT length must not be zero"),xt},C.remuxAudio=function(l,A,g,T,m){var y=l.inputTimeScale,U=l.samplerate?l.samplerate:y,N=y/U,S=l.isAAC?s:i,H=S*N,F=this._initPTS,R=!l.isAAC&&this.typeSupported.mpeg,z=[],Q=l.samples,$=R?0:8,ee=this.nextAudioPts||-1,fe=A*y;if(this.isAudioContiguous=g=g||Q.length&&ee>0&&(T&&Math.abs(fe-ee)<9e3||Math.abs(c(Q[0].pts-F,fe)-ee)<20*H),Q.forEach(function(He){He.pts=c(He.pts-F,fe)}),!g||ee<0){if(Q=Q.filter(function(He){return He.pts>=0}),!Q.length)return;m===0?ee=0:T?ee=Math.max(0,fe):ee=Q[0].pts}if(l.isAAC)for(var Ae=m!==void 0,ce=this.config.maxAudioFramesDrift,ie=0,be=ee;ie<Q.length;ie++){var se=Q[ie],me=se.pts,le=me-be,ge=Math.abs(1e3*le/y);if(le<=-ce*H&&Ae)ie===0&&(n.logger.warn("Audio frame @ "+(me/y).toFixed(3)+"s overlaps nextAudioPts by "+Math.round(1e3*le/y)+" ms."),this.nextAudioPts=ee=be=me);else if(le>=ce*H&&ge<h&&Ae){var ae=Math.round(le/H);be=me-ae*H,be<0&&(ae--,be+=H),ie===0&&(this.nextAudioPts=ee=be),n.logger.warn("[mp4-remuxer]: Injecting "+ae+" audio frame @ "+(be/y).toFixed(3)+"s due to "+Math.round(1e3*le/y)+" ms gap.");for(var pe=0;pe<ae;pe++){var Me=Math.max(be,0),xe=_.default.getSilentFrame(l.manifestCodec||l.codec,l.channelCount);xe||(n.logger.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),xe=se.unit.subarray()),Q.splice(ie,0,{unit:xe,pts:Me}),be+=H,ie++}}se.pts=be,be+=H}for(var Ke=null,tt=null,he,Se=0,Ue=Q.length;Ue--;)Se+=Q[Ue].unit.byteLength;for(var Ne=0,ct=Q.length;Ne<ct;Ne++){var mt=Q[Ne],Rt=mt.unit,ht=mt.pts;if(tt!==null){var Ut=z[Ne-1];Ut.duration=Math.round((ht-tt)/N)}else if(g&&l.isAAC&&(ht=ee),Ke=ht,Se>0){Se+=$;try{he=new Uint8Array(Se)}catch(He){this.observer.emit(M.Events.ERROR,M.Events.ERROR,{type:x.ErrorTypes.MUX_ERROR,details:x.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:Se,reason:"fail allocating audio mdat "+Se});return}if(!R){var zt=new DataView(he.buffer);zt.setUint32(0,Se),he.set(O.default.types.mdat,4)}}else return;he.set(Rt,$);var ze=Rt.byteLength;$+=ze,z.push(new B(!0,S,ze,0)),tt=ht}var Ve=z.length;if(!Ve)return;var Et=z[z.length-1];this.nextAudioPts=ee=tt+N*Et.duration;var Ot=R?new Uint8Array(0):O.default.moof(l.sequenceNumber++,Ke/N,t({},l,{samples:z}));l.samples=[];var ut=Ke/y,vt=ee/y,Ze="audio",ke={data1:Ot,data2:he,startPTS:ut,endPTS:vt,startDTS:ut,endDTS:vt,type:Ze,hasAudio:!0,hasVideo:!1,nb:Ve};return this.isAudioContiguous=!0,console.assert(he.length,"MDAT length must not be zero"),ke},C.remuxEmptyAudio=function(l,A,g,T){var m=l.inputTimeScale,y=l.samplerate?l.samplerate:m,U=m/y,N=this.nextAudioPts,S=(N!==null?N:T.startDTS*m)+this._initDTS,H=T.endDTS*m+this._initDTS,F=U*s,R=Math.ceil((H-S)/F),z=_.default.getSilentFrame(l.manifestCodec||l.codec,l.channelCount);if(n.logger.warn("[mp4-remuxer]: remux empty Audio"),!z){n.logger.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var Q=[],$=0;$<R;$++){var ee=S+$*F;Q.push({unit:z,pts:ee,dts:ee})}return l.samples=Q,this.remuxAudio(l,A,g,!1)},C.remuxID3=function(l,A){var g=l.samples.length;if(!g)return;for(var T=l.inputTimeScale,m=this._initPTS,y=this._initDTS,U=0;U<g;U++){var N=l.samples[U];N.pts=c(N.pts-m,A*T)/T,N.dts=c(N.dts-y,A*T)/T}var S=l.samples;return l.samples=[],{samples:S}},C.remuxText=function(l,A){var g=l.samples.length;if(!g)return;for(var T=l.inputTimeScale,m=this._initPTS,y=0;y<g;y++){var U=l.samples[y];U.pts=c(U.pts-m,A*T)/T}l.samples.sort(function(S,H){return S.pts-H.pts});var N=l.samples;return l.samples=[],{samples:N}},P}();function c(P,C){var b;if(C===null)return P;for(C<P?b=-8589934592:b=8589934592;Math.abs(P-C)>4294967296;)P+=b;return P}function E(P){for(var C=0;C<P.length;C++)if(P[C].key)return C;return-1}var B=function(C,b,l,A){this.size=void 0,this.duration=void 0,this.cts=void 0,this.flags=void 0,this.duration=b,this.size=l,this.cts=A,this.flags=new w(C)},w=function(C){this.isLeading=0,this.isDependedOn=0,this.hasRedundancy=0,this.degradPrio=0,this.dependsOn=1,this.isNonSync=1,this.dependsOn=C?2:1,this.isNonSync=C?0:1}},"./src/remux/passthrough-remuxer.ts":function(Z,K,I){"use strict";I.r(K);var k=I("./src/polyfills/number.ts"),_=I("./src/utils/mp4-tools.ts"),O=I("./src/loader/fragment.ts"),M=I("./src/utils/logger.ts"),x=function(){function a(){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 t=a.prototype;return t.destroy=function(){},t.resetTimeStamp=function(s){this.initPTS=s,this.lastEndDTS=null},t.resetNextTimestamp=function(){this.lastEndDTS=null},t.resetInitSegment=function(s,i,u){this.audioCodec=i,this.videoCodec=u,this.generateInitSegment(s),this.emitInitSegment=!0},t.generateInitSegment=function(s){var i=this.audioCodec,u=this.videoCodec;if(!s||!s.byteLength){this.initTracks=void 0,this.initData=void 0;return}var d=this.initData=Object(_.parseInitSegment)(s);i||(i=p(d.audio,O.ElementaryStreamTypes.AUDIO)),u||(u=p(d.video,O.ElementaryStreamTypes.VIDEO));var f={};d.audio&&d.video?f.audiovideo={container:"video/mp4",codec:i+","+u,initSegment:s,id:"main"}:d.audio?f.audio={container:"audio/mp4",codec:i,initSegment:s,id:"audio"}:d.video?f.video={container:"video/mp4",codec:u,initSegment:s,id:"main"}:M.logger.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=f},t.remux=function(s,i,u,d,f){var o=this.initPTS,c=this.lastEndDTS,E={audio:void 0,video:void 0,text:d,id3:u,initSegment:void 0};Object(k.isFiniteNumber)(c)||(c=this.lastEndDTS=f||0);var B=i.samples;if(!B||!B.length)return E;var w={initPTS:void 0,timescale:1},P=this.initData;if((!P||!P.length)&&(this.generateInitSegment(B),P=this.initData),!P||!P.length)return M.logger.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),E;this.emitInitSegment&&(w.tracks=this.initTracks,this.emitInitSegment=!1),Object(k.isFiniteNumber)(o)||(this.initPTS=w.initPTS=o=n(P,B,c));var C=Object(_.getDuration)(B,P),b=c,l=C+b;Object(_.offsetStartDTS)(P,B,o),C>0?this.lastEndDTS=l:(M.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var A=!!P.audio,g=!!P.video,T="";A&&(T+="audio"),g&&(T+="video");var m={data1:B,startPTS:b,startDTS:b,endPTS:l,endDTS:l,type:T,hasAudio:A,hasVideo:g,nb:1,dropped:0};return E.audio=m.type==="audio"?m:void 0,E.video=m.type!=="audio"?m:void 0,E.text=d,E.id3=u,E.initSegment=w,E},a}(),n=function(t,h,s){return Object(_.getStartDTS)(t,h)-s};function p(a,t){var h=a==null?void 0:a.codec;return h&&h.length>4?h:h==="hvc1"?"hvc1.1.c.L120.90":h==="av01"?"av01.0.04M.08":h==="avc1"||t===O.ElementaryStreamTypes.VIDEO?"avc1.42e01e":"mp4a.40.5"}K.default=x},"./src/task-loop.ts":function(Z,K,I){"use strict";I.r(K),I.d(K,"default",function(){return k});var k=function(){function _(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var O=_.prototype;return O.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},O.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},O.onHandlerDestroyed=function(){},O.hasInterval=function(){return!!this._tickInterval},O.hasNextTick=function(){return!!this._tickTimer},O.setInterval=function(x){return this._tickInterval?!1:(this._tickInterval=self.setInterval(this._boundTick,x),!0)},O.clearInterval=function(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1},O.clearNextTick=function(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1},O.tick=function(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},O.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},O.doTick=function(){},_}()},"./src/types/cmcd.ts":function(Z,K,I){"use strict";I.r(K),I.d(K,"CMCDVersion",function(){return k}),I.d(K,"CMCDObjectType",function(){return _}),I.d(K,"CMCDStreamingFormat",function(){return O}),I.d(K,"CMCDStreamType",function(){return M});var k=1,_;(function(x){x.MANIFEST="m",x.AUDIO="a",x.VIDEO="v",x.MUXED="av",x.INIT="i",x.CAPTION="c",x.TIMED_TEXT="tt",x.KEY="k",x.OTHER="o"})(_||(_={}));var O;(function(x){x.DASH="d",x.HLS="h",x.SMOOTH="s",x.OTHER="o"})(O||(O={}));var M;(function(x){x.VOD="v",x.LIVE="l"})(M||(M={}))},"./src/types/level.ts":function(Z,K,I){"use strict";I.r(K),I.d(K,"HlsSkip",function(){return O}),I.d(K,"getSkipValue",function(){return M}),I.d(K,"HlsUrlParameters",function(){return x}),I.d(K,"Level",function(){return n});function k(p,a){for(var t=0;t<a.length;t++){var h=a[t];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(p,h.key,h)}}function _(p,a,t){return a&&k(p.prototype,a),t&&k(p,t),p}var O;(function(p){p.No="",p.Yes="YES",p.v2="v2"})(O||(O={}));function M(p,a){var t=p.canSkipUntil,h=p.canSkipDateRanges,s=p.endSN,i=a!==void 0?a-s:0;return t&&i<t?h?O.v2:O.Yes:O.No}var x=function(){function p(t,h,s){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=t,this.part=h,this.skip=s}var a=p.prototype;return a.addDirectives=function(h){var s=new self.URL(h);return this.msn!==void 0&&s.searchParams.set("_HLS_msn",this.msn.toString()),this.part!==void 0&&s.searchParams.set("_HLS_part",this.part.toString()),this.skip&&s.searchParams.set("_HLS_skip",this.skip),s.toString()},p}(),n=function(){function p(a){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=[a.url],this.attrs=a.attrs,this.bitrate=a.bitrate,a.details&&(this.details=a.details),this.id=a.id||0,this.name=a.name,this.width=a.width||0,this.height=a.height||0,this.audioCodec=a.audioCodec,this.videoCodec=a.videoCodec,this.unknownCodecs=a.unknownCodecs,this.codecSet=[a.videoCodec,a.audioCodec].filter(function(t){return t}).join(",").replace(/\.[^.,]+/g,"")}return _(p,[{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(t){var h=t%this.url.length;this._urlId!==h&&(this.details=void 0,this._urlId=h)}}]),p}()},"./src/types/loader.ts":function(Z,K,I){"use strict";I.r(K),I.d(K,"PlaylistContextType",function(){return k}),I.d(K,"PlaylistLevelType",function(){return _});var k;(function(O){O.MANIFEST="manifest",O.LEVEL="level",O.AUDIO_TRACK="audioTrack",O.SUBTITLE_TRACK="subtitleTrack"})(k||(k={}));var _;(function(O){O.MAIN="main",O.AUDIO="audio",O.SUBTITLE="subtitle"})(_||(_={}))},"./src/types/transmuxer.ts":function(Z,K,I){"use strict";I.r(K),I.d(K,"ChunkMetadata",function(){return k});var k=function(M,x,n,p,a,t){p===void 0&&(p=0),a===void 0&&(a=-1),t===void 0&&(t=!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=_(),this.buffering={audio:_(),video:_(),audiovideo:_()},this.level=M,this.sn=x,this.id=n,this.size=p,this.part=a,this.partial=t};function _(){return{start:0,executeStart:0,executeEnd:0,end:0}}},"./src/utils/attr-list.ts":function(Z,K,I){"use strict";I.r(K),I.d(K,"AttrList",function(){return O});var k=/^(\d+)x(\d+)$/,_=/\s*(.+?)\s*=((?:\".*?\")|.*?)(?:,|$)/g,O=function(){function M(n){typeof n=="string"&&(n=M.parseAttrList(n));for(var p in n)n.hasOwnProperty(p)&&(this[p]=n[p])}var x=M.prototype;return x.decimalInteger=function(p){var a=parseInt(this[p],10);return a>Number.MAX_SAFE_INTEGER?Infinity:a},x.hexadecimalInteger=function(p){if(this[p]){var a=(this[p]||"0x").slice(2);a=(a.length&1?"0":"")+a;for(var t=new Uint8Array(a.length/2),h=0;h<a.length/2;h++)t[h]=parseInt(a.slice(h*2,h*2+2),16);return t}else return null},x.hexadecimalIntegerAsNumber=function(p){var a=parseInt(this[p],16);return a>Number.MAX_SAFE_INTEGER?Infinity:a},x.decimalFloatingPoint=function(p){return parseFloat(this[p])},x.optionalFloat=function(p,a){var t=this[p];return t?parseFloat(t):a},x.enumeratedString=function(p){return this[p]},x.bool=function(p){return this[p]==="YES"},x.decimalResolution=function(p){var a=k.exec(this[p]);return a===null?void 0:{width:parseInt(a[1],10),height:parseInt(a[2],10)}},M.parseAttrList=function(p){var a,t={},h='"';for(_.lastIndex=0;(a=_.exec(p))!==null;){var s=a[2];s.indexOf(h)===0&&s.lastIndexOf(h)===s.length-1&&(s=s.slice(1,-1)),t[a[1]]=s}return t},M}()},"./src/utils/binary-search.ts":function(Z,K,I){"use strict";I.r(K);var k={search:function(O,M){for(var x=0,n=O.length-1,p=null,a=null;x<=n;){p=(x+n)/2|0,a=O[p];var t=M(a);if(t>0)x=p+1;else if(t<0)n=p-1;else return a}return null}};K.default=k},"./src/utils/buffer-helper.ts":function(Z,K,I){"use strict";I.r(K),I.d(K,"BufferHelper",function(){return O});var k=I("./src/utils/logger.ts"),_={length:0,start:function(){return 0},end:function(){return 0}},O=function(){function M(){}return M.isBuffered=function(n,p){try{if(n){for(var a=M.getBuffered(n),t=0;t<a.length;t++)if(p>=a.start(t)&&p<=a.end(t))return!0}}catch(h){}return!1},M.bufferInfo=function(n,p,a){try{if(n){var t=M.getBuffered(n),h=[],s;for(s=0;s<t.length;s++)h.push({start:t.start(s),end:t.end(s)});return this.bufferedInfo(h,p,a)}}catch(i){}return{len:0,start:p,end:p,nextStart:void 0}},M.bufferedInfo=function(n,p,a){p=Math.max(0,p),n.sort(function(w,P){var C=w.start-P.start;return C||P.end-w.end});var t=[];if(a)for(var h=0;h<n.length;h++){var s=t.length;if(s){var i=t[s-1].end;n[h].start-i<a?n[h].end>i&&(t[s-1].end=n[h].end):t.push(n[h])}else t.push(n[h])}else t=n;for(var u=0,d,f=p,o=p,c=0;c<t.length;c++){var E=t[c].start,B=t[c].end;if(p+a>=E&&p<B)f=E,o=B,u=o-p;else if(p+a<E){d=E;break}}return{len:u,start:f||0,end:o||0,nextStart:d}},M.getBuffered=function(n){try{return n.buffered}catch(p){return k.logger.log("failed to get media.buffered",p),_}},M}()},"./src/utils/cea-608-parser.ts":function(Z,K,I){"use strict";I.r(K),I.d(K,"Row",function(){return o}),I.d(K,"CaptionScreen",function(){return c});var k=I("./src/utils/logger.ts"),_={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},O=function(l){var A=l;return _.hasOwnProperty(l)&&(A=_[l]),String.fromCharCode(A)},M=15,x=100,n={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},p={17:2,18:4,21:6,22:8,23:10,19:13,20:15},a={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},t={25:2,26:4,29:6,30:8,31:10,27:13,28:15},h=["white","green","blue","cyan","red","yellow","magenta","black","transparent"],s;(function(b){b[b.ERROR=0]="ERROR",b[b.TEXT=1]="TEXT",b[b.WARNING=2]="WARNING",b[b.INFO=2]="INFO",b[b.DEBUG=3]="DEBUG",b[b.DATA=3]="DATA"})(s||(s={}));var i=function(){function b(){this.time=null,this.verboseLevel=s.ERROR}var l=b.prototype;return l.log=function(g,T){this.verboseLevel>=g&&k.logger.log(this.time+" ["+g+"] "+T)},b}(),u=function(l){for(var A=[],g=0;g<l.length;g++)A.push(l[g].toString(16));return A},d=function(){function b(A,g,T,m,y){this.foreground=void 0,this.underline=void 0,this.italics=void 0,this.background=void 0,this.flash=void 0,this.foreground=A||"white",this.underline=g||!1,this.italics=T||!1,this.background=m||"black",this.flash=y||!1}var l=b.prototype;return l.reset=function(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1},l.setStyles=function(g){for(var T=["foreground","underline","italics","background","flash"],m=0;m<T.length;m++){var y=T[m];g.hasOwnProperty(y)&&(this[y]=g[y])}},l.isDefault=function(){return this.foreground==="white"&&!this.underline&&!this.italics&&this.background==="black"&&!this.flash},l.equals=function(g){return this.foreground===g.foreground&&this.underline===g.underline&&this.italics===g.italics&&this.background===g.background&&this.flash===g.flash},l.copy=function(g){this.foreground=g.foreground,this.underline=g.underline,this.italics=g.italics,this.background=g.background,this.flash=g.flash},l.toString=function(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash},b}(),f=function(){function b(A,g,T,m,y,U){this.uchar=void 0,this.penState=void 0,this.uchar=A||" ",this.penState=new d(g,T,m,y,U)}var l=b.prototype;return l.reset=function(){this.uchar=" ",this.penState.reset()},l.setChar=function(g,T){this.uchar=g,this.penState.copy(T)},l.setPenState=function(g){this.penState.copy(g)},l.equals=function(g){return this.uchar===g.uchar&&this.penState.equals(g.penState)},l.copy=function(g){this.uchar=g.uchar,this.penState.copy(g.penState)},l.isEmpty=function(){return this.uchar===" "&&this.penState.isDefault()},b}(),o=function(){function b(A){this.chars=void 0,this.pos=void 0,this.currPenState=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chars=[];for(var g=0;g<x;g++)this.chars.push(new f);this.logger=A,this.pos=0,this.currPenState=new d}var l=b.prototype;return l.equals=function(g){for(var T=!0,m=0;m<x;m++)if(!this.chars[m].equals(g.chars[m])){T=!1;break}return T},l.copy=function(g){for(var T=0;T<x;T++)this.chars[T].copy(g.chars[T])},l.isEmpty=function(){for(var g=!0,T=0;T<x;T++)if(!this.chars[T].isEmpty()){g=!1;break}return g},l.setCursor=function(g){this.pos!==g&&(this.pos=g),this.pos<0?(this.logger.log(s.DEBUG,"Negative cursor position "+this.pos),this.pos=0):this.pos>x&&(this.logger.log(s.DEBUG,"Too large cursor position "+this.pos),this.pos=x)},l.moveCursor=function(g){var T=this.pos+g;if(g>1)for(var m=this.pos+1;m<T+1;m++)this.chars[m].setPenState(this.currPenState);this.setCursor(T)},l.backSpace=function(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)},l.insertChar=function(g){g>=144&&this.backSpace();var T=O(g);if(this.pos>=x){this.logger.log(s.ERROR,"Cannot insert "+g.toString(16)+" ("+T+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(T,this.currPenState),this.moveCursor(1)},l.clearFromPos=function(g){var T;for(T=g;T<x;T++)this.chars[T].reset()},l.clear=function(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()},l.clearToEndOfRow=function(){this.clearFromPos(this.pos)},l.getTextString=function(){for(var g=[],T=!0,m=0;m<x;m++){var y=this.chars[m].uchar;y!==" "&&(T=!1),g.push(y)}return T?"":g.join("")},l.setPenStyles=function(g){this.currPenState.setStyles(g);var T=this.chars[this.pos];T.setPenState(this.currPenState)},b}(),c=function(){function b(A){this.rows=void 0,this.currRow=void 0,this.nrRollUpRows=void 0,this.lastOutputScreen=void 0,this.logger=void 0,this.rows=[];for(var g=0;g<M;g++)this.rows.push(new o(A));this.logger=A,this.currRow=M-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.reset()}var l=b.prototype;return l.reset=function(){for(var g=0;g<M;g++)this.rows[g].clear();this.currRow=M-1},l.equals=function(g){for(var T=!0,m=0;m<M;m++)if(!this.rows[m].equals(g.rows[m])){T=!1;break}return T},l.copy=function(g){for(var T=0;T<M;T++)this.rows[T].copy(g.rows[T])},l.isEmpty=function(){for(var g=!0,T=0;T<M;T++)if(!this.rows[T].isEmpty()){g=!1;break}return g},l.backSpace=function(){var g=this.rows[this.currRow];g.backSpace()},l.clearToEndOfRow=function(){var g=this.rows[this.currRow];g.clearToEndOfRow()},l.insertChar=function(g){var T=this.rows[this.currRow];T.insertChar(g)},l.setPen=function(g){var T=this.rows[this.currRow];T.setPenStyles(g)},l.moveCursor=function(g){var T=this.rows[this.currRow];T.moveCursor(g)},l.setCursor=function(g){this.logger.log(s.INFO,"setCursor: "+g);var T=this.rows[this.currRow];T.setCursor(g)},l.setPAC=function(g){this.logger.log(s.INFO,"pacData = "+JSON.stringify(g));var T=g.row-1;if(this.nrRollUpRows&&T<this.nrRollUpRows-1&&(T=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==T){for(var m=0;m<M;m++)this.rows[m].clear();var y=this.currRow+1-this.nrRollUpRows,U=this.lastOutputScreen;if(U){var N=U.rows[y].cueStartTime,S=this.logger.time;if(N&&S!==null&&N<S)for(var H=0;H<this.nrRollUpRows;H++)this.rows[T-this.nrRollUpRows+H+1].copy(U.rows[y+H])}}this.currRow=T;var F=this.rows[this.currRow];if(g.indent!==null){var R=g.indent,z=Math.max(R-1,0);F.setCursor(g.indent),g.color=F.chars[z].penState.foreground}var Q={foreground:g.color,underline:g.underline,italics:g.italics,background:"black",flash:!1};this.setPen(Q)},l.setBkgData=function(g){this.logger.log(s.INFO,"bkgData = "+JSON.stringify(g)),this.backSpace(),this.setPen(g),this.insertChar(32)},l.setRollUpRows=function(g){this.nrRollUpRows=g},l.rollUp=function(){if(this.nrRollUpRows===null){this.logger.log(s.DEBUG,"roll_up but nrRollUpRows not set yet");return}this.logger.log(s.TEXT,this.getDisplayText());var g=this.currRow+1-this.nrRollUpRows,T=this.rows.splice(g,1)[0];T.clear(),this.rows.splice(this.currRow,0,T),this.logger.log(s.INFO,"Rolling up")},l.getDisplayText=function(g){g=g||!1;for(var T=[],m="",y=-1,U=0;U<M;U++){var N=this.rows[U].getTextString();N&&(y=U+1,g?T.push("Row "+y+": '"+N+"'"):T.push(N.trim()))}return T.length>0&&(g?m="["+T.join(" | ")+"]":m=T.join(`
|
|
`)),m},l.getTextAndFormat=function(){return this.rows},b}(),E=function(){function b(A,g,T){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=A,this.outputFilter=g,this.mode=null,this.verbose=0,this.displayedMemory=new c(T),this.nonDisplayedMemory=new c(T),this.lastOutputScreen=new c(T),this.currRollUpRow=this.displayedMemory.rows[M-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=T}var l=b.prototype;return l.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},l.getHandler=function(){return this.outputFilter},l.setHandler=function(g){this.outputFilter=g},l.setPAC=function(g){this.writeScreen.setPAC(g)},l.setBkgData=function(g){this.writeScreen.setBkgData(g)},l.setMode=function(g){if(g===this.mode)return;this.mode=g,this.logger.log(s.INFO,"MODE="+g),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=g},l.insertChars=function(g){for(var T=0;T<g.length;T++)this.writeScreen.insertChar(g[T]);var m=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(s.INFO,m+": "+this.writeScreen.getDisplayText(!0)),(this.mode==="MODE_PAINT-ON"||this.mode==="MODE_ROLL-UP")&&(this.logger.log(s.TEXT,"DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())},l.ccRCL=function(){this.logger.log(s.INFO,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")},l.ccBS=function(){if(this.logger.log(s.INFO,"BS - BackSpace"),this.mode==="MODE_TEXT")return;this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate()},l.ccAOF=function(){},l.ccAON=function(){},l.ccDER=function(){this.logger.log(s.INFO,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()},l.ccRU=function(g){this.logger.log(s.INFO,"RU("+g+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(g)},l.ccFON=function(){this.logger.log(s.INFO,"FON - Flash On"),this.writeScreen.setPen({flash:!0})},l.ccRDC=function(){this.logger.log(s.INFO,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")},l.ccTR=function(){this.logger.log(s.INFO,"TR"),this.setMode("MODE_TEXT")},l.ccRTD=function(){this.logger.log(s.INFO,"RTD"),this.setMode("MODE_TEXT")},l.ccEDM=function(){this.logger.log(s.INFO,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)},l.ccCR=function(){this.logger.log(s.INFO,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)},l.ccENM=function(){this.logger.log(s.INFO,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()},l.ccEOC=function(){if(this.logger.log(s.INFO,"EOC - End Of Caption"),this.mode==="MODE_POP-ON"){var g=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=g,this.writeScreen=this.nonDisplayedMemory,this.logger.log(s.TEXT,"DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate(!0)},l.ccTO=function(g){this.logger.log(s.INFO,"TO("+g+") - Tab Offset"),this.writeScreen.moveCursor(g)},l.ccMIDROW=function(g){var T={flash:!1};if(T.underline=g%2===1,T.italics=g>=46,T.italics)T.foreground="white";else{var m=Math.floor(g/2)-16,y=["white","green","blue","cyan","red","yellow","magenta"];T.foreground=y[m]}this.logger.log(s.INFO,"MIDROW: "+JSON.stringify(T)),this.writeScreen.setPen(T)},l.outputDataUpdate=function(g){g===void 0&&(g=!1);var T=this.logger.time;if(T===null)return;this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=T:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,T,this.lastOutputScreen),g&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:T),this.lastOutputScreen.copy(this.displayedMemory))},l.cueSplitAtTime=function(g){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,g,this.displayedMemory),this.cueStartTime=g))},b}(),B=function(){function b(A,g,T){this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var m=new i;this.channels=[null,new E(A,g,m),new E(A+1,T,m)],this.cmdHistory=C(),this.logger=m}var l=b.prototype;return l.getHandler=function(g){return this.channels[g].getHandler()},l.setHandler=function(g,T){this.channels[g].setHandler(T)},l.addData=function(g,T){var m,y,U,N=!1;this.logger.time=g;for(var S=0;S<T.length;S+=2){if(y=T[S]&127,U=T[S+1]&127,y===0&&U===0)continue;if(this.logger.log(s.DATA,"["+u([T[S],T[S+1]])+"] -> ("+u([y,U])+")"),m=this.parseCmd(y,U),m||(m=this.parseMidrow(y,U)),m||(m=this.parsePAC(y,U)),m||(m=this.parseBackgroundAttributes(y,U)),!m&&(N=this.parseChars(y,U),N)){var H=this.currentChannel;if(H&&H>0){var F=this.channels[H];F.insertChars(N)}else this.logger.log(s.WARNING,"No channel found yet. TEXT-MODE?")}!m&&!N&&this.logger.log(s.WARNING,"Couldn't parse cleaned data "+u([y,U])+" orig: "+u([T[S],T[S+1]]))}},l.parseCmd=function(g,T){var m=this.cmdHistory,y=(g===20||g===28||g===21||g===29)&&T>=32&&T<=47,U=(g===23||g===31)&&T>=33&&T<=35;if(!(y||U))return!1;if(P(g,T,m))return w(null,null,m),this.logger.log(s.DEBUG,"Repeated command ("+u([g,T])+") is dropped"),!0;var N=g===20||g===21||g===23?1:2,S=this.channels[N];return g===20||g===21||g===28||g===29?T===32?S.ccRCL():T===33?S.ccBS():T===34?S.ccAOF():T===35?S.ccAON():T===36?S.ccDER():T===37?S.ccRU(2):T===38?S.ccRU(3):T===39?S.ccRU(4):T===40?S.ccFON():T===41?S.ccRDC():T===42?S.ccTR():T===43?S.ccRTD():T===44?S.ccEDM():T===45?S.ccCR():T===46?S.ccENM():T===47&&S.ccEOC():S.ccTO(T-32),w(g,T,m),this.currentChannel=N,!0},l.parseMidrow=function(g,T){var m=0;if((g===17||g===25)&&T>=32&&T<=47){if(g===17?m=1:m=2,m!==this.currentChannel)return this.logger.log(s.ERROR,"Mismatch channel in midrow parsing"),!1;var y=this.channels[m];return y?(y.ccMIDROW(T),this.logger.log(s.DEBUG,"MIDROW ("+u([g,T])+")"),!0):!1}return!1},l.parsePAC=function(g,T){var m,y=this.cmdHistory,U=(g>=17&&g<=23||g>=25&&g<=31)&&T>=64&&T<=127,N=(g===16||g===24)&&T>=64&&T<=95;if(!(U||N))return!1;if(P(g,T,y))return w(null,null,y),!0;var S=g<=23?1:2;T>=64&&T<=95?m=S===1?n[g]:a[g]:m=S===1?p[g]:t[g];var H=this.channels[S];return H?(H.setPAC(this.interpretPAC(m,T)),w(g,T,y),this.currentChannel=S,!0):!1},l.interpretPAC=function(g,T){var m,y={color:null,italics:!1,indent:null,underline:!1,row:g};return T>95?m=T-96:m=T-64,y.underline=(m&1)===1,m<=13?y.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(m/2)]:m<=15?(y.italics=!0,y.color="white"):y.indent=Math.floor((m-16)/2)*4,y},l.parseChars=function(g,T){var m,y=null,U=null;if(g>=25?(m=2,U=g-8):(m=1,U=g),U>=17&&U<=19){var N;U===17?N=T+80:U===18?N=T+112:N=T+144,this.logger.log(s.INFO,"Special char '"+O(N)+"' in channel "+m),y=[N]}else g>=32&&g<=127&&(y=T===0?[g]:[g,T]);if(y){var S=u(y);this.logger.log(s.DEBUG,"Char codes = "+S.join(",")),w(g,T,this.cmdHistory)}return y},l.parseBackgroundAttributes=function(g,T){var m=(g===16||g===24)&&T>=32&&T<=47,y=(g===23||g===31)&&T>=45&&T<=47;if(!(m||y))return!1;var U,N={};g===16||g===24?(U=Math.floor((T-32)/2),N.background=h[U],T%2===1&&(N.background=N.background+"_semi")):T===45?N.background="transparent":(N.foreground="black",T===47&&(N.underline=!0));var S=g<=23?1:2,H=this.channels[S];return H.setBkgData(N),w(g,T,this.cmdHistory),!0},l.reset=function(){for(var g=0;g<Object.keys(this.channels).length;g++){var T=this.channels[g];T&&T.reset()}this.cmdHistory=C()},l.cueSplitAtTime=function(g){for(var T=0;T<this.channels.length;T++){var m=this.channels[T];m&&m.cueSplitAtTime(g)}},b}();function w(b,l,A){A.a=b,A.b=l}function P(b,l,A){return A.a===b&&A.b===l}function C(){return{a:null,b:null}}K.default=B},"./src/utils/codecs.ts":function(Z,K,I){"use strict";I.r(K),I.d(K,"isCodecType",function(){return _}),I.d(K,"isCodecSupportedInMp4",function(){return O});var k={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 _(M,x){var n=k[x];return!!n&&n[M.slice(0,4)]===!0}function O(M,x){return MediaSource.isTypeSupported((x||"video")+'/mp4;codecs="'+M+'"')}},"./src/utils/cues.ts":function(Z,K,I){"use strict";I.r(K);var k=I("./src/utils/vttparser.ts"),_=I("./src/utils/webvtt-parser.ts"),O=I("./src/utils/texttrack-utils.ts"),M=/\s/,x={newCue:function(p,a,t,h){for(var s=[],i,u,d,f,o,c=self.VTTCue||self.TextTrackCue,E=0;E<h.rows.length;E++)if(i=h.rows[E],d=!0,f=0,o="",!i.isEmpty()){for(var B=0;B<i.chars.length;B++)M.test(i.chars[B].uchar)&&d?f++:(o+=i.chars[B].uchar,d=!1);i.cueStartTime=a,a===t&&(t+=1e-4),f>=16?f--:f++;var w=Object(k.fixLineBreaks)(o.trim()),P=Object(_.generateCueId)(a,t,w);(!p||!p.cues||!p.cues.getCueById(P))&&(u=new c(a,t,w),u.id=P,u.line=E+1,u.align="left",u.position=10+Math.min(80,Math.floor(f*8/32)*10),s.push(u))}return p&&s.length&&(s.sort(function(C,b){return C.line==="auto"||b.line==="auto"?0:C.line>8&&b.line>8?b.line-C.line:C.line-b.line}),s.forEach(function(C){return Object(O.addCueToTrack)(p,C)})),s}};K.default=x},"./src/utils/discontinuities.ts":function(Z,K,I){"use strict";I.r(K),I.d(K,"findFirstFragWithCC",function(){return M}),I.d(K,"shouldAlignOnDiscontinuities",function(){return x}),I.d(K,"findDiscontinuousReferenceFrag",function(){return n}),I.d(K,"adjustSlidingStart",function(){return a}),I.d(K,"alignStream",function(){return t}),I.d(K,"alignPDT",function(){return s}),I.d(K,"alignFragmentByPDTDelta",function(){return i}),I.d(K,"alignMediaPlaylistByPDT",function(){return u});var k=I("./src/polyfills/number.ts"),_=I("./src/utils/logger.ts"),O=I("./src/controller/level-helper.ts");function M(d,f){for(var o=null,c=0,E=d.length;c<E;c++){var B=d[c];if(B&&B.cc===f){o=B;break}}return o}function x(d,f,o){return!!(f.details&&(o.endCC>o.startCC||d&&d.cc<o.startCC))}function n(d,f){var o=d.fragments,c=f.fragments;if(!c.length||!o.length){_.logger.log("No fragments to align");return}var E=M(o,c[0].cc);if(!E||E&&!E.startPTS){_.logger.log("No frag in previous level to align on");return}return E}function p(d,f){if(d){var o=d.start+f;d.start=d.startPTS=o,d.endPTS=o+d.duration}}function a(d,f){for(var o=f.fragments,c=0,E=o.length;c<E;c++)p(o[c],d);f.fragmentHint&&p(f.fragmentHint,d),f.alignedSliding=!0}function t(d,f,o){if(!f)return;h(d,o,f),!o.alignedSliding&&f.details&&s(o,f.details),!o.alignedSliding&&f.details&&!o.skippedSegments&&Object(O.adjustSliding)(f.details,o)}function h(d,f,o){if(x(d,o,f)){var c=n(o.details,f);c&&Object(k.isFiniteNumber)(c.start)&&(_.logger.log("Adjusting PTS using last level due to CC increase within current level "+f.url),a(c.start,f))}}function s(d,f){if(!f.fragments.length||!d.hasProgramDateTime||!f.hasProgramDateTime)return;var o=f.fragments[0].programDateTime,c=d.fragments[0].programDateTime,E=(c-o)/1e3+f.fragments[0].start;E&&Object(k.isFiniteNumber)(E)&&(_.logger.log("Adjusting PTS using programDateTime delta "+(c-o)+"ms, sliding:"+E.toFixed(3)+" "+d.url+" "),a(E,d))}function i(d,f){var o=d.programDateTime;if(!o)return;var c=(o-f)/1e3;d.start=d.startPTS=c,d.endPTS=c+d.duration}function u(d,f){if(!f.fragments.length||!d.hasProgramDateTime||!f.hasProgramDateTime)return;var o=f.fragments[0].programDateTime,c=f.fragments[0].start,E=o-c*1e3;d.fragments.forEach(function(B){i(B,E)}),d.fragmentHint&&i(d.fragmentHint,E),d.alignedSliding=!0}},"./src/utils/ewma-bandwidth-estimator.ts":function(Z,K,I){"use strict";I.r(K);var k=I("./src/utils/ewma.ts"),_=function(){function O(x,n,p){this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultEstimate_=p,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new k.default(x),this.fast_=new k.default(n)}var M=O.prototype;return M.update=function(n,p){var a=this.slow_,t=this.fast_;this.slow_.halfLife!==n&&(this.slow_=new k.default(n,a.getEstimate(),a.getTotalWeight())),this.fast_.halfLife!==p&&(this.fast_=new k.default(p,t.getEstimate(),t.getTotalWeight()))},M.sample=function(n,p){n=Math.max(n,this.minDelayMs_);var a=8*p,t=n/1e3,h=a/t;this.fast_.sample(t,h),this.slow_.sample(t,h)},M.canEstimate=function(){var n=this.fast_;return n&&n.getTotalWeight()>=this.minWeight_},M.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},M.destroy=function(){},O}();K.default=_},"./src/utils/ewma.ts":function(Z,K,I){"use strict";I.r(K);var k=function(){function _(M,x,n){x===void 0&&(x=0),n===void 0&&(n=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_=x,this.totalWeight_=n}var O=_.prototype;return O.sample=function(x,n){var p=Math.pow(this.alpha_,x);this.estimate_=n*(1-p)+p*this.estimate_,this.totalWeight_+=x},O.getTotalWeight=function(){return this.totalWeight_},O.getEstimate=function(){if(this.alpha_){var x=1-Math.pow(this.alpha_,this.totalWeight_);if(x)return this.estimate_/x}return this.estimate_},_}();K.default=k},"./src/utils/fetch-loader.ts":function(Z,K,I){"use strict";I.r(K),I.d(K,"fetchSupported",function(){return i});var k=I("./src/polyfills/number.ts"),_=I("./src/loader/load-stats.ts"),O=I("./src/demux/chunk-cache.ts");function M(c,E){c.prototype=Object.create(E.prototype),c.prototype.constructor=c,t(c,E)}function x(c){var E=typeof Map=="function"?new Map:void 0;return x=function(w){if(w===null||!a(w))return w;if(typeof w!="function")throw new TypeError("Super expression must either be null or a function");if(typeof E!="undefined"){if(E.has(w))return E.get(w);E.set(w,P)}function P(){return n(w,arguments,h(this).constructor)}return P.prototype=Object.create(w.prototype,{constructor:{value:P,enumerable:!1,writable:!0,configurable:!0}}),t(P,w)},x(c)}function n(c,E,B){return p()?n=Reflect.construct:n=function(P,C,b){var l=[null];l.push.apply(l,C);var A=Function.bind.apply(P,l),g=new A;return b&&t(g,b.prototype),g},n.apply(null,arguments)}function p(){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(c){return!1}}function a(c){return Function.toString.call(c).indexOf("[native code]")!==-1}function t(c,E){return t=Object.setPrototypeOf||function(w,P){return w.__proto__=P,w},t(c,E)}function h(c){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(B){return B.__proto__||Object.getPrototypeOf(B)},h(c)}function s(){return s=Object.assign||function(c){for(var E=1;E<arguments.length;E++){var B=arguments[E];for(var w in B)Object.prototype.hasOwnProperty.call(B,w)&&(c[w]=B[w])}return c},s.apply(this,arguments)}function i(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(c){}return!1}var u=function(){function c(B){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=B.fetchSetup||f,this.controller=new self.AbortController,this.stats=new _.LoadStats}var E=c.prototype;return E.destroy=function(){this.loader=this.callbacks=null,this.abortInternal()},E.abortInternal=function(){var w=this.response;(!w||!w.ok)&&(this.stats.aborted=!0,this.controller.abort())},E.abort=function(){var w;this.abortInternal(),(w=this.callbacks)!==null&&w!==void 0&&w.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)},E.load=function(w,P,C){var b=this,l=this.stats;if(l.loading.start)throw new Error("Loader can only be used once.");l.loading.start=self.performance.now();var A=d(w,this.controller.signal),g=C.onProgress,T=w.responseType==="arraybuffer",m=T?"byteLength":"length";this.context=w,this.config=P,this.callbacks=C,this.request=this.fetchSetup(w,A),self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(function(){b.abortInternal(),C.onTimeout(l,w,b.response)},P.timeout),self.fetch(this.request).then(function(y){if(b.response=b.loader=y,!y.ok){var U=y.status,N=y.statusText;throw new o(N||"fetch, bad network response",U,y)}return l.loading.first=Math.max(self.performance.now(),l.loading.start),l.total=parseInt(y.headers.get("Content-Length")||"0"),g&&Object(k.isFiniteNumber)(P.highWaterMark)?b.loadProgressively(y,l,w,P.highWaterMark,g):T?y.arrayBuffer():y.text()}).then(function(y){var U=b.response;self.clearTimeout(b.requestTimeout),l.loading.end=Math.max(self.performance.now(),l.loading.first),l.loaded=l.total=y[m];var N={url:U.url,data:y};g&&!Object(k.isFiniteNumber)(P.highWaterMark)&&g(l,w,y,U),C.onSuccess(N,l,w,U)}).catch(function(y){if(self.clearTimeout(b.requestTimeout),l.aborted)return;var U=y.code||0;C.onError({code:U,text:y.message},w,y.details)})},E.getCacheAge=function(){var w=null;if(this.response){var P=this.response.headers.get("age");w=P?parseFloat(P):null}return w},E.loadProgressively=function(w,P,C,b,l){b===void 0&&(b=0);var A=new O.default,g=w.body.getReader(),T=function m(){return g.read().then(function(y){if(y.done)return A.dataLength&&l(P,C,A.flush(),w),Promise.resolve(new ArrayBuffer(0));var U=y.value,N=U.length;return P.loaded+=N,N<b||A.dataLength?(A.push(U),A.dataLength>=b&&l(P,C,A.flush(),w)):l(P,C,U,w),m()}).catch(function(){return Promise.reject()})};return T()},c}();function d(c,E){var B={method:"GET",mode:"cors",credentials:"same-origin",signal:E,headers:new self.Headers(s({},c.headers))};return c.rangeEnd&&B.headers.set("Range","bytes="+c.rangeStart+"-"+String(c.rangeEnd-1)),B}function f(c,E){return new self.Request(c.url,E)}var o=function(c){M(E,c);function E(B,w,P){var C;return C=c.call(this,B)||this,C.code=void 0,C.details=void 0,C.code=w,C.details=P,C}return E}(x(Error));K.default=u},"./src/utils/imsc1-ttml-parser.ts":function(Z,K,I){"use strict";I.r(K),I.d(K,"IMSC1_CODEC",function(){return a}),I.d(K,"parseIMSC1",function(){return i});var k=I("./src/utils/mp4-tools.ts"),_=I("./src/utils/vttparser.ts"),O=I("./src/utils/vttcue.ts"),M=I("./src/demux/id3.ts"),x=I("./src/utils/timescale-conversion.ts"),n=I("./src/utils/webvtt-parser.ts");function p(){return p=Object.assign||function(b){for(var l=1;l<arguments.length;l++){var A=arguments[l];for(var g in A)Object.prototype.hasOwnProperty.call(A,g)&&(b[g]=A[g])}return b},p.apply(this,arguments)}var a="stpp.ttml.im1t",t=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,h=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,s={left:"start",center:"center",right:"end",start:"start",end:"end"};function i(b,l,A,g,T){var m=Object(k.findBox)(new Uint8Array(b),["mdat"]);if(m.length===0){T(new Error("Could not parse IMSC1 mdat"));return}var y=m[0],U=Object(M.utf8ArrayToStr)(new Uint8Array(b,y.start,y.end-y.start)),N=Object(x.toTimescaleFromScale)(l,1,A);try{g(u(U,N))}catch(S){T(S)}}function u(b,l){var A=new DOMParser,g=A.parseFromString(b,"text/xml"),T=g.getElementsByTagName("tt")[0];if(!T)throw new Error("Invalid ttml");var m={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},y=Object.keys(m).reduce(function(F,R){return F[R]=T.getAttribute("ttp:"+R)||m[R],F},{}),U=T.getAttribute("xml:space")!=="preserve",N=f(d(T,"styling","style")),S=f(d(T,"layout","region")),H=d(T,"body","[begin]");return[].map.call(H,function(F){var R=o(F,U);if(!R||!F.hasAttribute("begin"))return null;var z=w(F.getAttribute("begin"),y),Q=w(F.getAttribute("dur"),y),$=w(F.getAttribute("end"),y);if(z===null)throw B(F);if($===null){if(Q===null)throw B(F);$=z+Q}var ee=new O.default(z-l,$-l,R);ee.id=Object(n.generateCueId)(ee.startTime,ee.endTime,ee.text);var fe=S[F.getAttribute("region")],Ae=N[F.getAttribute("style")];ee.position=10,ee.size=80;var ce=c(fe,Ae),ie=ce.textAlign;if(ie){var be=s[ie];be&&(ee.lineAlign=be),ee.align=ie}return p(ee,ce),ee}).filter(function(F){return F!==null})}function d(b,l,A){var g=b.getElementsByTagName(l)[0];return g?[].slice.call(g.querySelectorAll(A)):[]}function f(b){return b.reduce(function(l,A){var g=A.getAttribute("xml:id");return g&&(l[g]=A),l},{})}function o(b,l){return[].slice.call(b.childNodes).reduce(function(A,g,T){var m;return g.nodeName==="br"&&T?A+`
|
|
`:(m=g.childNodes)!==null&&m!==void 0&&m.length?o(g,l):l?A+g.textContent.trim().replace(/\s+/g," "):A+g.textContent},"")}function c(b,l){var A="http://www.w3.org/ns/ttml#styling",g=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"];return g.reduce(function(T,m){var y=E(l,A,m)||E(b,A,m);return y&&(T[m]=y),T},{})}function E(b,l,A){return b.hasAttributeNS(l,A)?b.getAttributeNS(l,A):null}function B(b){return new Error("Could not parse ttml timestamp "+b)}function w(b,l){if(!b)return null;var A=Object(_.parseTimeStamp)(b);return A===null&&(t.test(b)?A=P(b,l):h.test(b)&&(A=C(b,l))),A}function P(b,l){var A=t.exec(b),g=(A[4]|0)+(A[5]|0)/l.subFrameRate;return(A[1]|0)*3600+(A[2]|0)*60+(A[3]|0)+g/l.frameRate}function C(b,l){var A=h.exec(b),g=Number(A[1]),T=A[2];switch(T){case"h":return g*3600;case"m":return g*60;case"ms":return g*1e3;case"f":return g/l.frameRate;case"t":return g/l.tickRate}return g}},"./src/utils/logger.ts":function(Z,K,I){"use strict";I.r(K),I.d(K,"enableLogs",function(){return n}),I.d(K,"logger",function(){return p});var k=function(){},_={trace:k,debug:k,log:k,warn:k,info:k,error:k},O=_;function M(a){var t=self.console[a];return t?t.bind(self.console,"["+a+"] >"):k}function x(a){for(var t=arguments.length,h=new Array(t>1?t-1:0),s=1;s<t;s++)h[s-1]=arguments[s];h.forEach(function(i){O[i]=a[i]?a[i].bind(a):M(i)})}function n(a){if(self.console&&a===!0||typeof a=="object"){x(a,"debug","log","info","warn","error");try{O.log()}catch(t){O=_}}else O=_}var p=O},"./src/utils/mediakeys-helper.ts":function(Z,K,I){"use strict";I.r(K),I.d(K,"KeySystems",function(){return k}),I.d(K,"requestMediaKeySystemAccess",function(){return _});var k;(function(O){O.WIDEVINE="com.widevine.alpha",O.PLAYREADY="com.microsoft.playready"})(k||(k={}));var _=function(){return typeof self!="undefined"&&self.navigator&&self.navigator.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null}()},"./src/utils/mediasource-helper.ts":function(Z,K,I){"use strict";I.r(K),I.d(K,"getMediaSource",function(){return k});function k(){return self.MediaSource||self.WebKitMediaSource}},"./src/utils/mp4-tools.ts":function(Z,K,I){"use strict";I.r(K),I.d(K,"bin2str",function(){return x}),I.d(K,"readUint16",function(){return n}),I.d(K,"readUint32",function(){return p}),I.d(K,"writeUint32",function(){return a}),I.d(K,"findBox",function(){return t}),I.d(K,"parseSegmentIndex",function(){return h}),I.d(K,"parseInitSegment",function(){return s}),I.d(K,"getStartDTS",function(){return i}),I.d(K,"getDuration",function(){return u}),I.d(K,"computeRawDurationFromSamples",function(){return d}),I.d(K,"offsetStartDTS",function(){return f}),I.d(K,"segmentValidRange",function(){return o}),I.d(K,"appendUint8Array",function(){return c});var k=I("./src/utils/typed-array.ts"),_=I("./src/loader/fragment.ts"),O=Math.pow(2,32)-1,M=[].push;function x(E){return String.fromCharCode.apply(null,E)}function n(E,B){"data"in E&&(B+=E.start,E=E.data);var w=E[B]<<8|E[B+1];return w<0?65536+w:w}function p(E,B){"data"in E&&(B+=E.start,E=E.data);var w=E[B]<<24|E[B+1]<<16|E[B+2]<<8|E[B+3];return w<0?4294967296+w:w}function a(E,B,w){"data"in E&&(B+=E.start,E=E.data),E[B]=w>>24,E[B+1]=w>>16&255,E[B+2]=w>>8&255,E[B+3]=w&255}function t(E,B){var w=[];if(!B.length)return w;var P,C,b;"data"in E?(P=E.data,C=E.start,b=E.end):(P=E,C=0,b=P.byteLength);for(var l=C;l<b;){var A=p(P,l),g=x(P.subarray(l+4,l+8)),T=A>1?l+A:b;if(g===B[0])if(B.length===1)w.push({data:P,start:l+8,end:T});else{var m=t({data:P,start:l+8,end:T},B.slice(1));m.length&&M.apply(w,m)}l=T}return w}function h(E){var B=t(E,["moov"]),w=B[0],P=w?w.end:null,C=t(E,["sidx"]);if(!C||!C[0])return null;var b=[],l=C[0],A=l.data[0],g=A===0?8:16,T=p(l,g);g+=4;var m=0,y=0;A===0?g+=8:g+=16,g+=2;var U=l.end+y,N=n(l,g);g+=2;for(var S=0;S<N;S++){var H=g,F=p(l,H);H+=4;var R=F&2147483647,z=(F&2147483648)>>>31;if(z===1)return console.warn("SIDX has hierarchical references (not supported)"),null;var Q=p(l,H);H+=4,b.push({referenceSize:R,subsegmentDuration:Q,info:{duration:Q/T,start:U,end:U+R-1}}),U+=R,H+=4,g=H}return{earliestPresentationTime:m,timescale:T,version:A,referencesCount:N,references:b,moovEndOffset:P}}function s(E){for(var B=[],w=t(E,["moov","trak"]),P=0;P<w.length;P++){var C=w[P],b=t(C,["tkhd"])[0];if(b){var l=b.data[b.start],A=l===0?12:20,g=p(b,A),T=t(C,["mdia","mdhd"])[0];if(T){l=T.data[T.start],A=l===0?12:20;var m=p(T,A),y=t(C,["mdia","hdlr"])[0];if(y){var U=x(y.data.subarray(y.start+8,y.start+12)),N={soun:_.ElementaryStreamTypes.AUDIO,vide:_.ElementaryStreamTypes.VIDEO}[U];if(N){var S=t(C,["mdia","minf","stbl","stsd"])[0],H=void 0;S&&(H=x(S.data.subarray(S.start+12,S.start+16))),B[g]={timescale:m,type:N},B[N]={timescale:m,id:g,codec:H}}}}}}var F=t(E,["moov","mvex","trex"]);return F.forEach(function(R){var z=p(R,4),Q=B[z];Q&&(Q.default={duration:p(R,12),flags:p(R,20)})}),B}function i(E,B){return t(B,["moof","traf"]).reduce(function(w,P){var C=t(P,["tfdt"])[0],b=C.data[C.start],l=t(P,["tfhd"]).reduce(function(A,g){var T=p(g,4),m=E[T];if(m){var y=p(C,4);b===1&&(y*=Math.pow(2,32),y+=p(C,8));var U=m.timescale||9e4,N=y/U;if(isFinite(N)&&(A===null||N<A))return N}return A},null);return l!==null&&isFinite(l)&&(w===null||l<w)?l:w},null)||0}function u(E,B){for(var w=0,P=0,C=0,b=t(E,["moof","traf"]),l=0;l<b.length;l++){var A=b[l],g=t(A,["tfhd"])[0],T=p(g,4),m=B[T];if(!m)continue;var y=m.default,U=p(g,0)|(y==null?void 0:y.flags),N=y==null?void 0:y.duration;U&8&&(U&2?N=p(g,12):N=p(g,8));for(var S=m.timescale||9e4,H=t(A,["trun"]),F=0;F<H.length;F++){if(N){var R=p(H[F],4);w=N*R}else w=d(H[F]);m.type===_.ElementaryStreamTypes.VIDEO?P+=w/S:m.type===_.ElementaryStreamTypes.AUDIO&&(C+=w/S)}}if(P===0&&C===0){var z=h(E);if(z!=null&&z.references)return z.references.reduce(function(Q,$){return Q+$.info.duration||0},0)}return P||C}function d(E){var B=p(E,0),w=8;B&1&&(w+=4),B&4&&(w+=4);for(var P=0,C=p(E,4),b=0;b<C;b++){if(B&256){var l=p(E,w);P+=l,w+=4}B&512&&(w+=4),B&1024&&(w+=4),B&2048&&(w+=4)}return P}function f(E,B,w){t(B,["moof","traf"]).forEach(function(P){t(P,["tfhd"]).forEach(function(C){var b=p(C,4),l=E[b];if(!l)return;var A=l.timescale||9e4;t(P,["tfdt"]).forEach(function(g){var T=g.data[g.start],m=p(g,4);if(T===0)a(g,4,m-w*A);else{m*=Math.pow(2,32),m+=p(g,8),m-=w*A,m=Math.max(m,0);var y=Math.floor(m/(O+1)),U=Math.floor(m%(O+1));a(g,4,y),a(g,8,U)}})})})}function o(E){var B={valid:null,remainder:null},w=t(E,["moof"]);if(w){if(w.length<2)return B.remainder=E,B}else return B;var P=w[w.length-1];return B.valid=Object(k.sliceUint8)(E,0,P.start-8),B.remainder=Object(k.sliceUint8)(E,P.start-8),B}function c(E,B){var w=new Uint8Array(E.length+B.length);return w.set(E),w.set(B,E.length),w}},"./src/utils/output-filter.ts":function(Z,K,I){"use strict";I.r(K),I.d(K,"default",function(){return k});var k=function(){function _(M,x){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=M,this.trackName=x}var O=_.prototype;return O.dispatchCue=function(){if(this.startTime===null)return;this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null},O.newCue=function(x,n,p){(this.startTime===null||this.startTime>x)&&(this.startTime=x),this.endTime=n,this.screen=p,this.timelineController.createCaptionsTrack(this.trackName)},O.reset=function(){this.cueRanges=[]},_}()},"./src/utils/texttrack-utils.ts":function(Z,K,I){"use strict";I.r(K),I.d(K,"sendAddTrackEvent",function(){return _}),I.d(K,"addCueToTrack",function(){return O}),I.d(K,"clearCurrentCues",function(){return M}),I.d(K,"removeCuesInRange",function(){return x}),I.d(K,"getCuesInRange",function(){return p});var k=I("./src/utils/logger.ts");function _(a,t){var h;try{h=new Event("addtrack")}catch(s){h=document.createEvent("Event"),h.initEvent("addtrack",!1,!1)}h.track=a,t.dispatchEvent(h)}function O(a,t){var h=a.mode;if(h==="disabled"&&(a.mode="hidden"),a.cues&&!a.cues.getCueById(t.id))try{if(a.addCue(t),!a.cues.getCueById(t.id))throw new Error("addCue is failed for: "+t)}catch(i){k.logger.debug("[texttrack-utils]: "+i);var s=new self.TextTrackCue(t.startTime,t.endTime,t.text);s.id=t.id,a.addCue(s)}h==="disabled"&&(a.mode=h)}function M(a){var t=a.mode;if(t==="disabled"&&(a.mode="hidden"),a.cues)for(var h=a.cues.length;h--;)a.removeCue(a.cues[h]);t==="disabled"&&(a.mode=t)}function x(a,t,h){var s=a.mode;if(s==="disabled"&&(a.mode="hidden"),a.cues&&a.cues.length>0)for(var i=p(a.cues,t,h),u=0;u<i.length;u++)a.removeCue(i[u]);s==="disabled"&&(a.mode=s)}function n(a,t){if(t<a[0].startTime)return 0;var h=a.length-1;if(t>a[h].endTime)return-1;for(var s=0,i=h;s<=i;){var u=Math.floor((i+s)/2);if(t<a[u].startTime)i=u-1;else if(t>a[u].startTime&&s<h)s=u+1;else return u}return a[s].startTime-t<t-a[i].startTime?s:i}function p(a,t,h){var s=[],i=n(a,t);if(i>-1)for(var u=i,d=a.length;u<d;u++){var f=a[u];if(f.startTime>=t&&f.endTime<=h)s.push(f);else if(f.startTime>h)return s}return s}},"./src/utils/time-ranges.ts":function(Z,K,I){"use strict";I.r(K);var k={toString:function(O){for(var M="",x=O.length,n=0;n<x;n++)M+="["+O.start(n).toFixed(3)+","+O.end(n).toFixed(3)+"]";return M}};K.default=k},"./src/utils/timescale-conversion.ts":function(Z,K,I){"use strict";I.r(K),I.d(K,"toTimescaleFromBase",function(){return _}),I.d(K,"toTimescaleFromScale",function(){return O}),I.d(K,"toMsFromMpegTsClock",function(){return M}),I.d(K,"toMpegTsClockFromTimescale",function(){return x});var k=9e4;function _(n,p,a,t){a===void 0&&(a=1),t===void 0&&(t=!1);var h=n*p*a;return t?Math.round(h):h}function O(n,p,a,t){return a===void 0&&(a=1),t===void 0&&(t=!1),_(n,p,1/a,t)}function M(n,p){return p===void 0&&(p=!1),_(n,1e3,1/k,p)}function x(n,p){return p===void 0&&(p=1),_(n,k,1/p)}},"./src/utils/typed-array.ts":function(Z,K,I){"use strict";I.r(K),I.d(K,"sliceUint8",function(){return k});function k(_,O,M){return Uint8Array.prototype.slice?_.slice(O,M):new Uint8Array(Array.prototype.slice.call(_,O,M))}},"./src/utils/vttcue.ts":function(Z,K,I){"use strict";I.r(K),K.default=function(){if(typeof self!="undefined"&&self.VTTCue)return self.VTTCue;var k=["","lr","rl"],_=["start","middle","end","left","right"];function O(a,t){if(typeof t!="string")return!1;if(!Array.isArray(a))return!1;var h=t.toLowerCase();return~a.indexOf(h)?h:!1}function M(a){return O(k,a)}function x(a){return O(_,a)}function n(a){for(var t=arguments.length,h=new Array(t>1?t-1:0),s=1;s<t;s++)h[s-1]=arguments[s];for(var i=1;i<arguments.length;i++){var u=arguments[i];for(var d in u)a[d]=u[d]}return a}function p(a,t,h){var s=this,i={enumerable:!0};s.hasBeenReset=!1;var u="",d=!1,f=a,o=t,c=h,E=null,B="",w=!0,P="auto",C="start",b=50,l="middle",A=50,g="middle";Object.defineProperty(s,"id",n({},i,{get:function(){return u},set:function(m){u=""+m}})),Object.defineProperty(s,"pauseOnExit",n({},i,{get:function(){return d},set:function(m){d=!!m}})),Object.defineProperty(s,"startTime",n({},i,{get:function(){return f},set:function(m){if(typeof m!="number")throw new TypeError("Start time must be set to a number.");f=m,this.hasBeenReset=!0}})),Object.defineProperty(s,"endTime",n({},i,{get:function(){return o},set:function(m){if(typeof m!="number")throw new TypeError("End time must be set to a number.");o=m,this.hasBeenReset=!0}})),Object.defineProperty(s,"text",n({},i,{get:function(){return c},set:function(m){c=""+m,this.hasBeenReset=!0}})),Object.defineProperty(s,"region",n({},i,{get:function(){return E},set:function(m){E=m,this.hasBeenReset=!0}})),Object.defineProperty(s,"vertical",n({},i,{get:function(){return B},set:function(m){var y=M(m);if(y===!1)throw new SyntaxError("An invalid or illegal string was specified.");B=y,this.hasBeenReset=!0}})),Object.defineProperty(s,"snapToLines",n({},i,{get:function(){return w},set:function(m){w=!!m,this.hasBeenReset=!0}})),Object.defineProperty(s,"line",n({},i,{get:function(){return P},set:function(m){if(typeof m!="number"&&m!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");P=m,this.hasBeenReset=!0}})),Object.defineProperty(s,"lineAlign",n({},i,{get:function(){return C},set:function(m){var y=x(m);if(!y)throw new SyntaxError("An invalid or illegal string was specified.");C=y,this.hasBeenReset=!0}})),Object.defineProperty(s,"position",n({},i,{get:function(){return b},set:function(m){if(m<0||m>100)throw new Error("Position must be between 0 and 100.");b=m,this.hasBeenReset=!0}})),Object.defineProperty(s,"positionAlign",n({},i,{get:function(){return l},set:function(m){var y=x(m);if(!y)throw new SyntaxError("An invalid or illegal string was specified.");l=y,this.hasBeenReset=!0}})),Object.defineProperty(s,"size",n({},i,{get:function(){return A},set:function(m){if(m<0||m>100)throw new Error("Size must be between 0 and 100.");A=m,this.hasBeenReset=!0}})),Object.defineProperty(s,"align",n({},i,{get:function(){return g},set:function(m){var y=x(m);if(!y)throw new SyntaxError("An invalid or illegal string was specified.");g=y,this.hasBeenReset=!0}})),s.displayState=void 0}return p.prototype.getCueAsHTML=function(){var a=self.WebVTT;return a.convertCueToDOMTree(self,this.text)},p}()},"./src/utils/vttparser.ts":function(Z,K,I){"use strict";I.r(K),I.d(K,"parseTimeStamp",function(){return O}),I.d(K,"fixLineBreaks",function(){return t}),I.d(K,"VTTParser",function(){return h});var k=I("./src/utils/vttcue.ts"),_=function(){function s(){}var i=s.prototype;return i.decode=function(d,f){if(!d)return"";if(typeof d!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(d))},s}();function O(s){function i(d,f,o,c){return(d|0)*3600+(f|0)*60+(o|0)+parseFloat(c||0)}var u=s.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return u?parseFloat(u[2])>59?i(u[2],u[3],0,u[4]):i(u[1],u[2],u[3],u[4]):null}var M=function(){function s(){this.values=Object.create(null)}var i=s.prototype;return i.set=function(d,f){!this.get(d)&&f!==""&&(this.values[d]=f)},i.get=function(d,f,o){return o?this.has(d)?this.values[d]:f[o]:this.has(d)?this.values[d]:f},i.has=function(d){return d in this.values},i.alt=function(d,f,o){for(var c=0;c<o.length;++c)if(f===o[c]){this.set(d,f);break}},i.integer=function(d,f){/^-?\d+$/.test(f)&&this.set(d,parseInt(f,10))},i.percent=function(d,f){if(/^([\d]{1,3})(\.[\d]*)?%$/.test(f)){var o=parseFloat(f);if(o>=0&&o<=100)return this.set(d,o),!0}return!1},s}();function x(s,i,u,d){var f=d?s.split(d):[s];for(var o in f){if(typeof f[o]!="string")continue;var c=f[o].split(u);if(c.length!==2)continue;var E=c[0],B=c[1];i(E,B)}}var n=new k.default(0,0,""),p=n.align==="middle"?"middle":"center";function a(s,i,u){var d=s;function f(){var E=O(s);if(E===null)throw new Error("Malformed timestamp: "+d);return s=s.replace(/^[^\sa-zA-Z-]+/,""),E}function o(E,B){var w=new M;x(E,function(b,l){var A;switch(b){case"region":for(var g=u.length-1;g>=0;g--)if(u[g].id===l){w.set(b,u[g].region);break}break;case"vertical":w.alt(b,l,["rl","lr"]);break;case"line":A=l.split(","),w.integer(b,A[0]),w.percent(b,A[0])&&w.set("snapToLines",!1),w.alt(b,A[0],["auto"]),A.length===2&&w.alt("lineAlign",A[1],["start",p,"end"]);break;case"position":A=l.split(","),w.percent(b,A[0]),A.length===2&&w.alt("positionAlign",A[1],["start",p,"end","line-left","line-right","auto"]);break;case"size":w.percent(b,l);break;case"align":w.alt(b,l,["start",p,"end","left","right"]);break}},/:/,/\s/),B.region=w.get("region",null),B.vertical=w.get("vertical","");var P=w.get("line","auto");P==="auto"&&n.line===-1&&(P=-1),B.line=P,B.lineAlign=w.get("lineAlign","start"),B.snapToLines=w.get("snapToLines",!0),B.size=w.get("size",100),B.align=w.get("align",p);var C=w.get("position","auto");C==="auto"&&n.position===50&&(C=B.align==="start"||B.align==="left"?0:B.align==="end"||B.align==="right"?100:50),B.position=C}function c(){s=s.replace(/^\s+/,"")}if(c(),i.startTime=f(),c(),s.substr(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+d);s=s.substr(3),c(),i.endTime=f(),c(),o(s,i)}function t(s){return s.replace(/<br(?: \/)?>/gi,`
|
|
`)}var h=function(){function s(){this.state="INITIAL",this.buffer="",this.decoder=new _,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}var i=s.prototype;return i.parse=function(d){var f=this;d&&(f.buffer+=f.decoder.decode(d,{stream:!0}));function o(){var C=f.buffer,b=0;for(C=t(C);b<C.length&&C[b]!=="\r"&&C[b]!==`
|
|
`;)++b;var l=C.substr(0,b);return C[b]==="\r"&&++b,C[b]===`
|
|
`&&++b,f.buffer=C.substr(b),l}function c(C){x(C,function(b,l){},/:/)}try{var E="";if(f.state==="INITIAL"){if(!/\r\n|\n/.test(f.buffer))return this;E=o();var B=E.match(/^()?WEBVTT([ \t].*)?$/);if(!B||!B[0])throw new Error("Malformed WebVTT signature.");f.state="HEADER"}for(var w=!1;f.buffer;){if(!/\r\n|\n/.test(f.buffer))return this;w?w=!1:E=o();switch(f.state){case"HEADER":/:/.test(E)?c(E):E||(f.state="ID");continue;case"NOTE":E||(f.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(E)){f.state="NOTE";break}if(!E)continue;if(f.cue=new k.default(0,0,""),f.state="CUE",E.indexOf("-->")===-1){f.cue.id=E;continue}case"CUE":if(!f.cue){f.state="BADCUE";continue}try{a(E,f.cue,f.regionList)}catch(C){f.cue=null,f.state="BADCUE";continue}f.state="CUETEXT";continue;case"CUETEXT":{var P=E.indexOf("-->")!==-1;if(!E||P&&(w=!0)){f.oncue&&f.cue&&f.oncue(f.cue),f.cue=null,f.state="ID";continue}if(f.cue===null)continue;f.cue.text&&(f.cue.text+=`
|
|
`),f.cue.text+=E}continue;case"BADCUE":E||(f.state="ID")}}}catch(C){f.state==="CUETEXT"&&f.cue&&f.oncue&&f.oncue(f.cue),f.cue=null,f.state=f.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this},i.flush=function(){var d=this;try{if((d.cue||d.state==="HEADER")&&(d.buffer+=`
|
|
|
|
`,d.parse()),d.state==="INITIAL"||d.state==="BADWEBVTT")throw new Error("Malformed WebVTT signature.")}catch(f){d.onparsingerror&&d.onparsingerror(f)}return d.onflush&&d.onflush(),this},s}()},"./src/utils/webvtt-parser.ts":function(Z,K,I){"use strict";I.r(K),I.d(K,"generateCueId",function(){return h}),I.d(K,"parseWebVTT",function(){return i});var k=I("./src/polyfills/number.ts"),_=I("./src/utils/vttparser.ts"),O=I("./src/demux/id3.ts"),M=I("./src/utils/timescale-conversion.ts"),x=I("./src/remux/mp4-remuxer.ts"),n=/\r\n|\n\r|\n|\r/g,p=function(d,f,o){return o===void 0&&(o=0),d.substr(o,f.length)===f},a=function(d){var f=parseInt(d.substr(-3)),o=parseInt(d.substr(-6,2)),c=parseInt(d.substr(-9,2)),E=d.length>9?parseInt(d.substr(0,d.indexOf(":"))):0;if(!Object(k.isFiniteNumber)(f)||!Object(k.isFiniteNumber)(o)||!Object(k.isFiniteNumber)(c)||!Object(k.isFiniteNumber)(E))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+d);return f+=1e3*o,f+=60*1e3*c,f+=60*60*1e3*E,f},t=function(d){for(var f=5381,o=d.length;o;)f=f*33^d.charCodeAt(--o);return(f>>>0).toString()};function h(u,d,f){return t(u.toString())+t(d.toString())+t(f)}var s=function(d,f,o){var c=d[f],E=d[c.prevCC];if(!E||!E.new&&c.new){d.ccOffset=d.presentationOffset=c.start,c.new=!1;return}for(;(B=E)!==null&&B!==void 0&&B.new;){var B;d.ccOffset+=c.start-E.start,c.new=!1,c=E,E=d[c.prevCC]}d.presentationOffset=o};function i(u,d,f,o,c,E,B,w){var P=new _.VTTParser,C=Object(O.utf8ArrayToStr)(new Uint8Array(u)).trim().replace(n,`
|
|
`).split(`
|
|
`),b=[],l=Object(M.toMpegTsClockFromTimescale)(d,f),A="00:00.000",g=0,T=0,m,y=!0,U=!1;P.oncue=function(N){var S=o[c],H=o.ccOffset,F=(g-l)/9e4;if(S!=null&&S.new&&(T!==void 0?H=o.ccOffset=S.start:s(o,c,F)),F&&(H=F-o.presentationOffset),U){var R=N.endTime-N.startTime,z=Object(x.normalizePts)((N.startTime+H-T)*9e4,E*9e4)/9e4;N.startTime=z,N.endTime=z+R}var Q=N.text.trim();N.text=decodeURIComponent(encodeURIComponent(Q)),N.id||(N.id=h(N.startTime,N.endTime,Q)),N.endTime>0&&b.push(N)},P.onparsingerror=function(N){m=N},P.onflush=function(){if(m){w(m);return}B(b)},C.forEach(function(N){if(y)if(p(N,"X-TIMESTAMP-MAP=")){y=!1,U=!0,N.substr(16).split(",").forEach(function(S){p(S,"LOCAL:")?A=S.substr(6):p(S,"MPEGTS:")&&(g=parseInt(S.substr(7)))});try{T=a(A)/1e3}catch(S){U=!1,m=S}return}else N===""&&(y=!1);P.parse(N+`
|
|
`)}),P.flush()}},"./src/utils/xhr-loader.ts":function(Z,K,I){"use strict";I.r(K);var k=I("./src/utils/logger.ts"),_=I("./src/loader/load-stats.ts"),O=/^age:\s*[\d.]+\s*$/m,M=function(){function x(p){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=p?p.xhrSetup:null,this.stats=new _.LoadStats,this.retryDelay=0}var n=x.prototype;return n.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null},n.abortInternal=function(){var a=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),a&&(a.onreadystatechange=null,a.onprogress=null,a.readyState!==4&&(this.stats.aborted=!0,a.abort()))},n.abort=function(){var a;this.abortInternal(),(a=this.callbacks)!==null&&a!==void 0&&a.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},n.load=function(a,t,h){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=a,this.config=t,this.callbacks=h,this.retryDelay=t.retryDelay,this.loadInternal()},n.loadInternal=function(){var a=this.config,t=this.context;if(!a)return;var h=this.loader=new self.XMLHttpRequest,s=this.stats;s.loading.first=0,s.loaded=0;var i=this.xhrSetup;try{if(i)try{i(h,t.url)}catch(f){h.open("GET",t.url,!0),i(h,t.url)}h.readyState||h.open("GET",t.url,!0);var u=this.context.headers;if(u)for(var d in u)h.setRequestHeader(d,u[d])}catch(f){this.callbacks.onError({code:h.status,text:f.message},t,h);return}t.rangeEnd&&h.setRequestHeader("Range","bytes="+t.rangeStart+"-"+(t.rangeEnd-1)),h.onreadystatechange=this.readystatechange.bind(this),h.onprogress=this.loadprogress.bind(this),h.responseType=t.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),a.timeout),h.send()},n.readystatechange=function(){var a=this.context,t=this.loader,h=this.stats;if(!a||!t)return;var s=t.readyState,i=this.config;if(h.aborted)return;if(s>=2)if(self.clearTimeout(this.requestTimeout),h.loading.first===0&&(h.loading.first=Math.max(self.performance.now(),h.loading.start)),s===4){t.onreadystatechange=null,t.onprogress=null;var u=t.status;if(u>=200&&u<300){h.loading.end=Math.max(self.performance.now(),h.loading.first);var d,f;if(a.responseType==="arraybuffer"?(d=t.response,f=d.byteLength):(d=t.responseText,f=d.length),h.loaded=h.total=f,!this.callbacks)return;var o=this.callbacks.onProgress;if(o&&o(h,a,d,t),!this.callbacks)return;var c={url:t.responseURL,data:d};this.callbacks.onSuccess(c,h,a,t)}else h.retry>=i.maxRetry||u>=400&&u<499?(k.logger.error(u+" while loading "+a.url),this.callbacks.onError({code:u,text:t.statusText},a,t)):(k.logger.warn(u+" while loading "+a.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,i.maxRetryDelay),h.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),i.timeout)},n.loadtimeout=function(){k.logger.warn("timeout while loading "+this.context.url);var a=this.callbacks;a&&(this.abortInternal(),a.onTimeout(this.stats,this.context,this.loader))},n.loadprogress=function(a){var t=this.stats;t.loaded=a.loaded,a.lengthComputable&&(t.total=a.total)},n.getCacheAge=function(){var a=null;if(this.loader&&O.test(this.loader.getAllResponseHeaders())){var t=this.loader.getResponseHeader("age");a=t?parseFloat(t):null}return a},x}();K.default=M}}).default})},vHTk:function(Re,te,v){Re.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},vKoX:function(Re,te,v){var Z=v("SrGk"),K=v("bYtY");function I(O,M){Z.call(this,O,M,["filter"],"__filter_in_use__","_shadowDom")}K.inherits(I,Z),I.prototype.addWithoutUpdate=function(O,M){if(M&&k(M.style)){var x;if(M._shadowDom){x=M._shadowDom;var n=this.getDefs(!0);n.contains(M._shadowDom)||this.addDom(x)}else x=this.add(M);this.markUsed(M);var p=x.getAttribute("id");O.style.filter="url(#"+p+")"}},I.prototype.add=function(O){var M=this.createElement("filter");return O._shadowDomId=O._shadowDomId||this.nextId++,M.setAttribute("id","zr"+this._zrId+"-shadow-"+O._shadowDomId),this.updateDom(O,M),this.addDom(M),M},I.prototype.update=function(O,M){var x=M.style;if(k(x)){var n=this;Z.prototype.update.call(this,M,function(){n.updateDom(M,M._shadowDom)})}else this.remove(O,M)},I.prototype.remove=function(O,M){M._shadowDomId!=null&&(this.removeDom(O),O.style.filter="")},I.prototype.updateDom=function(O,M){var x=M.getElementsByTagName("feDropShadow");x.length===0?x=this.createElement("feDropShadow"):x=x[0];var n=O.style,p=O.scale&&O.scale[0]||1,a=O.scale&&O.scale[1]||1,t,h,s,i;if(n.shadowBlur||n.shadowOffsetX||n.shadowOffsetY)t=n.shadowOffsetX||0,h=n.shadowOffsetY||0,s=n.shadowBlur,i=n.shadowColor;else if(n.textShadowBlur)t=n.textShadowOffsetX||0,h=n.textShadowOffsetY||0,s=n.textShadowBlur,i=n.textShadowColor;else{this.removeDom(M,n);return}x.setAttribute("dx",t/p),x.setAttribute("dy",h/a),x.setAttribute("flood-color",i);var u=s/2/p,d=s/2/a,f=u+" "+d;x.setAttribute("stdDeviation",f),M.setAttribute("x","-100%"),M.setAttribute("y","-100%"),M.setAttribute("width",Math.ceil(s/2*200)+"%"),M.setAttribute("height",Math.ceil(s/2*200)+"%"),M.appendChild(x),O._shadowDom=M},I.prototype.markUsed=function(O){O._shadowDom&&Z.prototype.markUsed.call(this,O._shadowDom)};function k(O){return O&&(O.shadowBlur||O.shadowOffsetX||O.shadowOffsetY||O.textShadowBlur||O.textShadowOffsetX||O.textShadowOffsetY)}var _=I;Re.exports=_},vUf6:function(Re,te,v){Re.exports=v.p+"static/xxtj.38a4bc0a.svg"},vWvF:function(Re,te,v){var Z=v("Bq2U"),K=v("SUKs"),I=v("bYtY"),k=I.isString,_=I.isFunction,O=I.isObject,M=I.isArrayLike,x=I.indexOf,n=function(){this.animators=[]};n.prototype={constructor:n,animate:function(s,i){var u,d=!1,f=this,o=this.__zr;if(s){var c=s.split("."),E=f;d=c[0]==="shape";for(var B=0,w=c.length;B<w;B++){if(!E)continue;E=E[c[B]]}E&&(u=E)}else u=f;if(!u){K('Property "'+s+'" is not existed in element '+f.id);return}var P=f.animators,C=new Z(u,i);return C.during(function(b){f.dirty(d)}).done(function(){P.splice(x(P,C),1)}),P.push(C),o&&o.animation.addAnimator(C),C},stopAnimation:function(s){for(var i=this.animators,u=i.length,d=0;d<u;d++)i[d].stop(s);return i.length=0,this},animateTo:function(s,i,u,d,f,o){p(this,s,i,u,d,f,o)},animateFrom:function(s,i,u,d,f,o){p(this,s,i,u,d,f,o,!0)}};function p(s,i,u,d,f,o,c,E){k(d)?(o=f,f=d,d=0):_(f)?(o=f,f="linear",d=0):_(d)?(o=d,d=0):_(u)?(o=u,u=500):u||(u=500),s.stopAnimation(),a(s,"",s,i,u,d,E);var B=s.animators.slice(),w=B.length;function P(){w--,w||o&&o()}w||o&&o();for(var C=0;C<B.length;C++)B[C].done(P).start(f,c)}function a(s,i,u,d,f,o,c){var E={},B=0;for(var w in d){if(!d.hasOwnProperty(w))continue;u[w]!=null?O(d[w])&&!M(d[w])?a(s,i?i+"."+w:w,u[w],d[w],f,o,c):(c?(E[w]=u[w],t(s,i,w,d[w])):E[w]=d[w],B++):d[w]!=null&&!c&&t(s,i,w,d[w])}B>0&&s.animate(i,!1).when(f==null?500:f,E).delay(o||0)}function t(s,i,u,d){if(!i)s.attr(u,d);else{var f={};f[i]={},f[i][u]=d,s.attr(f)}}var h=n;Re.exports=h},vef1:function(Re,te,v){Re.exports={upload:"upload___3GNI5"}},vkP9:function(Re,te,v){"use strict";var Z=v("+L6B"),K=v("2/Rp"),I=v("5NDa"),k=v("5rEg"),_=v("y8nQ"),O=v("Vl3Y"),M=v("tJVT"),x=v("q1tI"),n=v.n(x),p=v("a+yL"),a=v.n(p),t=function(s){var i=s.value,u=s.onChange,d=O.a.useForm(),f=Object(M.a)(d,1),o=f[0];Object(x.useEffect)(function(){i&&o.setFieldsValue(i)},i);var c=function(B){u(B)};return n.a.createElement("div",{className:a.a.search},n.a.createElement(O.a,{className:a.a.formWrap,colon:!1,form:o,size:"large",layout:"inline",onFinish:c},n.a.createElement(O.a.Item,{label:"\u5B9E\u8BAD\u4FE1\u606F",name:"keyword",initialValue:""},n.a.createElement(k.a,{style:{width:280,height:40}})),n.a.createElement(O.a.Item,{label:"\u5B66\u6821/\u5355\u4F4D",name:"schools",initialValue:"",style:{margin:"0 40px"}},n.a.createElement(k.a,{style:{width:280,height:40}})),n.a.createElement(O.a.Item,{label:"\u521B\u5EFA\u8005",name:"creator",initialValue:""},n.a.createElement(k.a,{style:{width:200,height:40}})),n.a.createElement(K.a,{className:a.a.btn,type:"primary",htmlType:"submit"},"\u641C\u7D22")))};te.a=t},w8Aa:function(Re,te,v){Re.exports={img:"img___3e4yQ"}},wCXF:function(Re,te,v){"use strict";v.d(te,"a",function(){return Rt});var Z=v("rePB"),K=v("VTBJ"),I=v("KQm4"),k=v("U8pU"),_=v("ODXe"),O=v("q1tI"),M=v("TSYQ"),x=v.n(M),n=v("Gytx"),p=v.n(n),a=v("Kwbf"),t=v("t23M"),h=v("qx4F"),s=v("6eGT"),i=v("IBYe"),u=v("Ff2n"),d=v("c+Xe"),f=v("fyJ8"),o=v("biw7");function c(ze,Ve,Et,Ot,ut){var vt=Et[ze]||{},Ze=Et[Ve]||{},ke,He;vt.fixed==="left"?ke=Ot.left[ze]:Ze.fixed==="right"&&(He=Ot.right[Ve]);var we=!1,Le=!1,Pe=!1,We=!1,Xe=Et[Ve+1],gt=Et[ze-1];if(ut==="rtl"){if(ke!==void 0){var Lt=gt&>.fixed==="left";We=!Lt}else if(He!==void 0){var en=Xe&&Xe.fixed==="right";Pe=!en}}else if(ke!==void 0){var Zt=Xe&&Xe.fixed==="left";we=!Zt}else if(He!==void 0){var xt=gt&>.fixed==="right";Le=!xt}return{fixLeft:ke,fixRight:He,lastFixLeft:we,firstFixRight:Le,lastFixRight:Pe,firstFixLeft:We,isSticky:Ot.isSticky}}var E=v("sR1s");function B(ze){var Ve=ze.cells,Et=ze.stickyOffsets,Ot=ze.flattenColumns,ut=ze.rowComponent,vt=ze.cellComponent,Ze=ze.onHeaderRow,ke=ze.index,He=O.useContext(o.a),we=He.prefixCls,Le=He.direction,Pe;Ze&&(Pe=Ze(Ve.map(function(Xe){return Xe.column}),ke));var We=Object(E.a)(Ve.map(function(Xe){return Xe.column}));return O.createElement(ut,Object.assign({},Pe),Ve.map(function(Xe,gt){var Lt=Xe.column,en=c(Xe.colStart,Xe.colEnd,Ot,Et,Le),Zt;return Lt&&Lt.onHeaderCell&&(Zt=Xe.column.onHeaderCell(Lt)),O.createElement(f.a,Object.assign({},Xe,{ellipsis:Lt.ellipsis,align:Lt.align,component:vt,prefixCls:we,key:We[gt]},en,{additionalProps:Zt,rowType:"header"}))}))}B.displayName="HeaderRow";var w=B;function P(ze){var Ve=[];function Et(Ze,ke){var He=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Ve[He]=Ve[He]||[];var we=ke,Le=Ze.filter(Boolean).map(function(Pe){var We={key:Pe.key,className:Pe.className||"",children:Pe.title,column:Pe,colStart:we},Xe=1,gt=Pe.children;return gt&>.length>0&&(Xe=Et(gt,we,He+1).reduce(function(Lt,en){return Lt+en},0),We.hasSubColumns=!0),"colSpan"in Pe&&(Xe=Pe.colSpan),"rowSpan"in Pe&&(We.rowSpan=Pe.rowSpan),We.colSpan=Xe,We.colEnd=We.colStart+Xe-1,Ve[He].push(We),we+=Xe,Xe});return Le}Et(ze,0);for(var Ot=Ve.length,ut=function(ke){Ve[ke].forEach(function(He){!("rowSpan"in He)&&!He.hasSubColumns&&(He.rowSpan=Ot-ke)})},vt=0;vt<Ot;vt+=1)ut(vt);return Ve}function C(ze){var Ve=ze.stickyOffsets,Et=ze.columns,Ot=ze.flattenColumns,ut=ze.onHeaderRow,vt=O.useContext(o.a),Ze=vt.prefixCls,ke=vt.getComponent,He=O.useMemo(function(){return P(Et)},[Et]),we=ke(["header","wrapper"],"thead"),Le=ke(["header","row"],"tr"),Pe=ke(["header","cell"],"th");return O.createElement(we,{className:"".concat(Ze,"-thead")},He.map(function(We,Xe){var gt=O.createElement(w,{key:Xe,flattenColumns:Ot,cells:We,stickyOffsets:Ve,rowComponent:Le,cellComponent:Pe,onHeaderRow:ut,index:Xe});return gt}))}var b=C,l=v("hW8S");function A(ze){for(var Ve=ze.colWidths,Et=ze.columns,Ot=ze.columCount,ut=[],vt=Ot||Et.length,Ze=!1,ke=vt-1;ke>=0;ke-=1){var He=Ve[ke],we=Et&&Et[ke],Le=we&&we[l.a];(He||Le||Ze)&&(ut.unshift(O.createElement("col",Object.assign({key:ke,style:{width:He,minWidth:He}},Le))),Ze=!0)}return O.createElement("colgroup",null,ut)}var g=A;function T(ze,Ve){return Object(O.useMemo)(function(){for(var Et=[],Ot=0;Ot<Ve;Ot+=1){var ut=ze[Ot];if(ut!==void 0)Et[Ot]=ut;else return null}return Et},[ze.join("_"),Ve])}var m=O.forwardRef(function(ze,Ve){var Et=ze.noData,Ot=ze.columns,ut=ze.flattenColumns,vt=ze.colWidths,Ze=ze.columCount,ke=ze.stickyOffsets,He=ze.direction,we=ze.fixHeader,Le=ze.offsetHeader,Pe=ze.stickyClassName,We=ze.onScroll,Xe=Object(u.a)(ze,["noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","offsetHeader","stickyClassName","onScroll"]),gt=O.useContext(o.a),Lt=gt.prefixCls,en=gt.scrollbarSize,Zt=gt.isSticky,xt=Zt&&!we?0:en,Ct=O.useRef(null),pt=O.useCallback(function(Dt){Object(d.b)(Ve,Dt),Object(d.b)(Ct,Dt)},[]);O.useEffect(function(){var Dt;function Ht(_t){var Gt=_t.currentTarget,kt=_t.deltaX;kt&&(We({currentTarget:Gt,scrollLeft:Gt.scrollLeft+kt}),_t.preventDefault())}return(Dt=Ct.current)===null||Dt===void 0||Dt.addEventListener("wheel",Ht),function(){var _t;(_t=Ct.current)===null||_t===void 0||_t.removeEventListener("wheel",Ht)}},[]);var Je=ut[ut.length-1],Qe={fixed:Je?Je.fixed:null,onHeaderCell:function(){return{className:"".concat(Lt,"-cell-scrollbar")}}},Oe=Object(O.useMemo)(function(){return xt?[].concat(Object(I.a)(Ot),[Qe]):Ot},[xt,Ot]),je=Object(O.useMemo)(function(){return xt?[].concat(Object(I.a)(ut),[Qe]):ut},[xt,ut]),St=Object(O.useMemo)(function(){var Dt=ke.right,Ht=ke.left;return Object(K.a)(Object(K.a)({},ke),{},{left:He==="rtl"?[].concat(Object(I.a)(Ht.map(function(_t){return _t+xt})),[0]):Ht,right:He==="rtl"?Dt:[].concat(Object(I.a)(Dt.map(function(_t){return _t+xt})),[0]),isSticky:Zt})},[xt,ke,Zt]),bt=T(vt,Ze);return O.createElement("div",{style:Object(K.a)({overflow:"hidden"},Zt?{top:Le}:{}),ref:pt,className:x()("".concat(Lt,"-header"),Object(Z.a)({},Pe,!!Pe))},O.createElement("table",{style:{tableLayout:"fixed",visibility:Et||bt?null:"hidden"}},O.createElement(g,{colWidths:bt?[].concat(Object(I.a)(bt),[xt]):[],columCount:Ze+1,columns:je}),O.createElement(b,Object.assign({},Xe,{stickyOffsets:St,columns:Oe,flattenColumns:je}))))});m.displayName="FixedHeader";var y=m,U=O.createContext(null),N=U;function S(ze){var Ve=ze.prefixCls,Et=ze.children,Ot=ze.component,ut=ze.cellComponent,vt=ze.fixHeader,Ze=ze.fixColumn,ke=ze.horizonScroll,He=ze.className,we=ze.expanded,Le=ze.componentWidth,Pe=ze.colSpan,We=O.useContext(o.a),Xe=We.scrollbarSize;return O.useMemo(function(){var gt=Et;return Ze&&(gt=O.createElement("div",{style:{width:Le-(vt?Xe:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Ve,"-expanded-row-fixed")},gt)),O.createElement(Ot,{className:He,style:{display:we?null:"none"}},O.createElement(f.a,{component:ut,prefixCls:Ve,colSpan:Pe},gt))},[Et,Ot,vt,ke,He,we,Le,Pe,Xe])}var H=S;function F(ze){var Ve=ze.className,Et=ze.style,Ot=ze.record,ut=ze.index,vt=ze.rowKey,Ze=ze.getRowKey,ke=ze.rowExpandable,He=ze.expandedKeys,we=ze.onRow,Le=ze.indent,Pe=Le===void 0?0:Le,We=ze.rowComponent,Xe=ze.cellComponent,gt=ze.childrenColumnName,Lt=O.useContext(o.a),en=Lt.prefixCls,Zt=Lt.fixedInfoList,xt=O.useContext(N),Ct=xt.fixHeader,pt=xt.fixColumn,Je=xt.horizonScroll,Qe=xt.componentWidth,Oe=xt.flattenColumns,je=xt.expandableType,St=xt.expandRowByClick,bt=xt.onTriggerExpand,Dt=xt.rowClassName,Ht=xt.expandedRowClassName,_t=xt.indentSize,Gt=xt.expandIcon,kt=xt.expandedRowRender,fn=xt.expandIconColumnIndex,mn=O.useState(!1),Tr=Object(_.a)(mn,2),Mr=Tr[0],kr=Tr[1],Un=He&&He.has(ze.recordKey);O.useEffect(function(){Un&&kr(!0)},[Un]);var Ra=je==="row"&&(!ke||ke(Ot)),Xr=je==="nest",aa=gt&&Ot&&Ot[gt],Kr=Ra||Xr,_a;we&&(_a=we(Ot,ut));var di=function(W){if(St&&Kr&&bt(Ot,W),_a&&_a.onClick){for(var V,ne=arguments.length,ve=new Array(ne>1?ne-1:0),oe=1;oe<ne;oe++)ve[oe-1]=arguments[oe];(V=_a).onClick.apply(V,[W].concat(ve))}},Ei;typeof Dt=="string"?Ei=Dt:typeof Dt=="function"&&(Ei=Dt(Ot,ut,Pe));var _e=Object(E.a)(Oe),Ie=O.createElement(We,Object.assign({},_a,{"data-row-key":vt,className:x()(Ve,"".concat(en,"-row"),"".concat(en,"-row-level-").concat(Pe),Ei,_a&&_a.className),style:Object(K.a)(Object(K.a)({},Et),_a?_a.style:null),onClick:di}),Oe.map(function(re,W){var V=re.render,ne=re.dataIndex,ve=re.className,oe=_e[W],et=Zt[W],Qt;W===(fn||0)&&Xr&&(Qt=O.createElement(O.Fragment,null,O.createElement("span",{style:{paddingLeft:"".concat(_t*Pe,"px")},className:"".concat(en,"-row-indent indent-level-").concat(Pe)}),Gt({prefixCls:en,expanded:Un,expandable:aa,record:Ot,onExpand:bt})));var dn;return re.onCell&&(dn=re.onCell(Ot,ut)),O.createElement(f.a,Object.assign({className:ve,ellipsis:re.ellipsis,align:re.align,component:Xe,prefixCls:en,key:oe,record:Ot,index:ut,dataIndex:ne,render:V,shouldCellUpdate:re.shouldCellUpdate},et,{appendNode:Qt,additionalProps:dn}))})),Ye;if(Ra&&(Mr||Un)){var yt=kt(Ot,ut,Pe+1,Un),Xt=Ht&&Ht(Ot,ut,Pe);Ye=O.createElement(H,{expanded:Un,className:x()("".concat(en,"-expanded-row"),"".concat(en,"-expanded-row-level-").concat(Pe+1),Xt),prefixCls:en,fixHeader:Ct,fixColumn:pt,horizonScroll:Je,component:We,componentWidth:Qe,cellComponent:Xe,colSpan:Oe.length},yt)}var sn;return aa&&Un&&(sn=(Ot[gt]||[]).map(function(re,W){var V=Ze(re,W);return O.createElement(F,Object.assign({},ze,{key:V,rowKey:V,record:re,recordKey:V,index:W,indent:Pe+1}))})),O.createElement(O.Fragment,null,Ie,Ye,sn)}F.displayName="BodyRow";var R=F,z=O.createContext(null),Q=z;function $(ze){var Ve=ze.columnKey,Et=ze.onColumnResize,Ot=O.useRef();return O.useEffect(function(){Ot.current&&Et(Ve,Ot.current.offsetWidth)},[]),O.createElement(t.a,{onResize:function(vt){var Ze=vt.offsetWidth;Et(Ve,Ze)}},O.createElement("td",{ref:Ot,style:{padding:0,border:0,height:0}},O.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function ee(ze){var Ve=ze.data,Et=ze.getRowKey,Ot=ze.measureColumnWidth,ut=ze.expandedKeys,vt=ze.onRow,Ze=ze.rowExpandable,ke=ze.emptyNode,He=ze.childrenColumnName,we=O.useContext(Q),Le=we.onColumnResize,Pe=O.useContext(o.a),We=Pe.prefixCls,Xe=Pe.getComponent,gt=O.useContext(N),Lt=gt.fixHeader,en=gt.horizonScroll,Zt=gt.flattenColumns,xt=gt.componentWidth;return O.useMemo(function(){var Ct=Xe(["body","wrapper"],"tbody"),pt=Xe(["body","row"],"tr"),Je=Xe(["body","cell"],"td"),Qe;Ve.length?Qe=Ve.map(function(je,St){var bt=Et(je,St);return O.createElement(R,{key:bt,rowKey:bt,record:je,recordKey:bt,index:St,rowComponent:pt,cellComponent:Je,expandedKeys:ut,onRow:vt,getRowKey:Et,rowExpandable:Ze,childrenColumnName:He})}):Qe=O.createElement(H,{expanded:!0,className:"".concat(We,"-placeholder"),prefixCls:We,fixHeader:Lt,fixColumn:en,horizonScroll:en,component:pt,componentWidth:xt,cellComponent:Je,colSpan:Zt.length},ke);var Oe=Object(E.a)(Zt);return O.createElement(Ct,{className:"".concat(We,"-tbody")},Ot&&O.createElement("tr",{"aria-hidden":"true",className:"".concat(We,"-measure-row"),style:{height:0}},Oe.map(function(je){return O.createElement($,{key:je,columnKey:je,onColumnResize:Le})})),Qe)},[Ve,We,vt,Ot,ut,Et,Xe,xt,ke,Zt])}var fe=O.memo(ee);fe.displayName="Body";var Ae=fe,ce=v("wRmb"),ie=v("xEkU"),be=v.n(ie);function se(ze){var Ve=Object(O.useRef)(ze),Et=Object(O.useState)({}),Ot=Object(_.a)(Et,2),ut=Ot[1],vt=Object(O.useRef)(null),Ze=Object(O.useRef)([]);function ke(He){vt.current===null&&(Ze.current=[],vt.current=be()(function(){Ze.current.forEach(function(we){Ve.current=we(Ve.current)}),vt.current=null,ut({})})),Ze.current.push(He)}return Object(O.useEffect)(function(){return function(){be.a.cancel(vt.current)}},[]),[Ve.current,ke]}function me(ze){var Ve=Object(O.useRef)(ze),Et=Object(O.useRef)(null);function Ot(){window.clearTimeout(Et.current)}function ut(Ze){Ve.current=Ze,Ot(),Et.current=window.setTimeout(function(){Ve.current=null,Et.current=null},100)}function vt(){return Ve.current}return Object(O.useEffect)(function(){return Ot},[]),[ut,vt]}function le(ze,Ve,Et){var Ot=Object(O.useMemo)(function(){for(var ut=[],vt=[],Ze=0,ke=0,He=0;He<Ve;He+=1)if(Et==="rtl"){vt[He]=ke,ke+=ze[He]||0;var we=Ve-He-1;ut[we]=Ze,Ze+=ze[we]||0}else{ut[He]=Ze,Ze+=ze[He]||0;var Le=Ve-He-1;vt[Le]=ke,ke+=ze[Le]||0}return{left:ut,right:vt}},[ze,Ve,Et]);return Ot}var ge=le;function ae(ze){var Ve=ze.className,Et=ze.children;return O.createElement("div",{className:Ve},Et)}var pe=ae,Me=v("n6Qo");function xe(ze){var Ve,Et=ze.prefixCls,Ot=ze.record,ut=ze.onExpand,vt=ze.expanded,Ze=ze.expandable,ke="".concat(Et,"-row-expand-icon");if(!Ze)return O.createElement("span",{className:x()(ke,"".concat(Et,"-row-spaced"))});var He=function(Le){ut(Ot,Le),Le.stopPropagation()};return O.createElement("span",{className:x()(ke,(Ve={},Object(Z.a)(Ve,"".concat(Et,"-row-expanded"),vt),Object(Z.a)(Ve,"".concat(Et,"-row-collapsed"),!vt),Ve)),onClick:He})}function Ke(ze,Ve,Et){var Ot=[];function ut(vt){(vt||[]).forEach(function(Ze,ke){Ot.push(Ve(Ze,ke)),ut(Ze[Et])})}return ut(ze),Ot}var tt=v("zT1h"),he=v("y0+3"),Se=function(Ve,Et){var Ot,ut,vt=Ve.scrollBodyRef,Ze=Ve.onScroll,ke=Ve.offsetScroll,He=O.useContext(o.a),we=He.prefixCls,Le=((Ot=vt.current)===null||Ot===void 0?void 0:Ot.scrollWidth)||0,Pe=((ut=vt.current)===null||ut===void 0?void 0:ut.clientWidth)||0,We=Le&&Pe*(Pe/Le),Xe=O.useRef(),gt=se({scrollLeft:0,isHiddenScrollBar:!1}),Lt=Object(_.a)(gt,2),en=Lt[0],Zt=Lt[1],xt=O.useRef({delta:0,x:0}),Ct=O.useState(!1),pt=Object(_.a)(Ct,2),Je=pt[0],Qe=pt[1],Oe=function(){Qe(!1)},je=function(_t){_t.persist(),xt.current.delta=_t.pageX-en.scrollLeft,xt.current.x=0,Qe(!0),_t.preventDefault()},St=function(_t){var Gt,kt=_t||((Gt=window)===null||Gt===void 0?void 0:Gt.event),fn=kt.buttons;if(!Je||fn===0){Je&&Qe(!1);return}var mn=xt.current.x+_t.pageX-xt.current.x-xt.current.delta;mn<=0&&(mn=0),mn+We>=Pe&&(mn=Pe-We),Ze({scrollLeft:mn/Pe*(Le+2)}),xt.current.x=_t.pageX},bt=function(){var _t=Object(he.b)(vt.current).top,Gt=_t+vt.current.offsetHeight,kt=document.documentElement.scrollTop+window.innerHeight;Gt-Object(h.a)()<=kt||_t>=kt-ke?Zt(function(fn){return Object(K.a)(Object(K.a)({},fn),{},{isHiddenScrollBar:!0})}):Zt(function(fn){return Object(K.a)(Object(K.a)({},fn),{},{isHiddenScrollBar:!1})})},Dt=function(_t){Zt(function(Gt){return Object(K.a)(Object(K.a)({},Gt),{},{scrollLeft:_t/Le*Pe||0})})};return O.useImperativeHandle(Et,function(){return{setScrollLeft:Dt}}),O.useEffect(function(){var Ht=Object(tt.a)(document.body,"mouseup",Oe,!1),_t=Object(tt.a)(document.body,"mousemove",St,!1);return bt(),function(){Ht.remove(),_t.remove()}},[We,Je]),O.useEffect(function(){var Ht=Object(tt.a)(window,"scroll",bt,!1),_t=Object(tt.a)(window,"resize",bt,!1);return function(){Ht.remove(),_t.remove()}},[]),O.useEffect(function(){en.isHiddenScrollBar||Zt(function(Ht){var _t,Gt;return Object(K.a)(Object(K.a)({},Ht),{},{scrollLeft:vt.current.scrollLeft/((_t=vt.current)===null||_t===void 0?void 0:_t.scrollWidth)*((Gt=vt.current)===null||Gt===void 0?void 0:Gt.clientWidth)})})},[en.isHiddenScrollBar]),Le<=Pe||!We||en.isHiddenScrollBar?null:O.createElement("div",{style:{height:Object(h.a)(),width:Pe,bottom:ke},className:"".concat(we,"-sticky-scroll")},O.createElement("div",{onMouseDown:je,ref:Xe,className:x()("".concat(we,"-sticky-scroll-bar"),Object(Z.a)({},"".concat(we,"-sticky-scroll-bar-active"),Je)),style:{width:"".concat(We,"px"),transform:"translate3d(".concat(en.scrollLeft,"px, 0, 0)")}}))},Ue=O.forwardRef(Se);function Ne(ze,Ve){return O.useMemo(function(){var Et=!!ze;return{isSticky:Et,stickyClassName:Et?"".concat(Ve,"-sticky-header"):"",offsetHeader:Object(k.a)(ze)==="object"&&ze.offsetHeader||0,offsetScroll:Object(k.a)(ze)==="object"&&ze.offsetScroll||0}},[ze,Ve])}var ct=[],mt={},Rt="rc-table-internal-hook",ht=O.memo(function(ze){var Ve=ze.children;return Ve},function(ze,Ve){return p()(ze.props,Ve.props)?ze.pingLeft!==Ve.pingLeft||ze.pingRight!==Ve.pingRight:!1});function Ut(ze){var Ve,Et=ze.prefixCls,Ot=ze.className,ut=ze.rowClassName,vt=ze.style,Ze=ze.data,ke=ze.rowKey,He=ze.scroll,we=ze.tableLayout,Le=ze.direction,Pe=ze.title,We=ze.footer,Xe=ze.summary,gt=ze.id,Lt=ze.showHeader,en=ze.components,Zt=ze.emptyText,xt=ze.onRow,Ct=ze.onHeaderRow,pt=ze.internalHooks,Je=ze.transformColumns,Qe=ze.internalRefs,Oe=ze.sticky,je=Ze||ct,St=!!je.length,bt=O.useState(0),Dt=Object(_.a)(bt,2),Ht=Dt[0],_t=Dt[1];O.useEffect(function(){_t(Object(h.a)())});var Gt=O.useMemo(function(){return Object(E.c)(en,{})},[en]),kt=O.useCallback(function(ti,Sa){return Object(E.b)(Gt,ti)||Sa},[Gt]),fn=O.useMemo(function(){return typeof ke=="function"?ke:function(ti){var Sa=ti&&ti[ke];return Sa}},[ke]),mn=Object(l.c)(ze),Tr=mn.expandIcon,Mr=mn.expandedRowKeys,kr=mn.defaultExpandedRowKeys,Un=mn.defaultExpandAllRows,Ra=mn.expandedRowRender,Xr=mn.onExpand,aa=mn.onExpandedRowsChange,Kr=mn.expandRowByClick,_a=mn.rowExpandable,di=mn.expandIconColumnIndex,Ei=mn.expandedRowClassName,_e=mn.childrenColumnName,Ie=mn.indentSize,Ye=Tr||xe,yt=_e||"children",Xt=O.useMemo(function(){return Ra?"row":ze.expandable&&pt===Rt&&ze.expandable.__PARENT_RENDER_ICON__||je.some(function(ti){return ti&&Object(k.a)(ti)==="object"&&ti[yt]})?"nest":!1},[!!Ra,je]),sn=O.useState(function(){return kr||(Un?Ke(je,fn,yt):[])}),re=Object(_.a)(sn,2),W=re[0],V=re[1],ne=O.useMemo(function(){return new Set(Mr||W||[])},[Mr,W]),ve=O.useCallback(function(ti){var Sa=fn(ti,je.indexOf(ti)),Ia,Eo=ne.has(Sa);Eo?(ne.delete(Sa),Ia=Object(I.a)(ne)):Ia=[].concat(Object(I.a)(ne),[Sa]),V(Ia),Xr&&Xr(!Eo,ti),aa&&aa(Ia)},[fn,ne,je,Xr,aa]),oe=O.useState(0),et=Object(_.a)(oe,2),Qt=et[0],dn=et[1],Cn=Object(ce.b)(Object(K.a)(Object(K.a)(Object(K.a)({},ze),mn),{},{expandable:!!Ra,expandedKeys:ne,getRowKey:fn,onTriggerExpand:ve,expandIcon:Ye,expandIconColumnIndex:di,direction:Le}),pt===Rt?Je:null),Jt=Object(_.a)(Cn,2),Vn=Jt[0],Xn=Jt[1],lr=O.useMemo(function(){return{columns:Vn,flattenColumns:Xn}},[Vn,Xn]),Rr=O.useRef(),qr=O.useRef(),zr=O.useRef(),Ca=O.useState(!1),Dr=Object(_.a)(Ca,2),ya=Dr[0],ka=Dr[1],fi=O.useState(!1),Ka=Object(_.a)(fi,2),qa=Ka[0],Si=Ka[1],pi=se(new Map),ui=Object(_.a)(pi,2),mi=ui[0],_i=ui[1],ai=Object(E.a)(Xn),Hi=ai.map(function(ti){return mi.get(ti)}),Yi=O.useMemo(function(){return Hi},[Hi.join("_")]),$r=ge(Yi,Xn.length,Le),ua=He&&Object(E.d)(He.y),Pr=He&&Object(E.d)(He.x),ca=Pr&&Xn.some(function(ti){var Sa=ti.fixed;return Sa}),Jr=O.useRef(),ri=Ne(Oe,Et),pa=ri.isSticky,mo=ri.offsetHeader,Di=ri.offsetScroll,ci=ri.stickyClassName,Wo,Mo,ii;ua&&(Mo={overflowY:"scroll",maxHeight:He.y}),Pr&&(Wo={overflowX:"auto"},ua||(Mo={overflowY:"hidden"}),ii={width:He.x===!0?"auto":He.x,minWidth:"100%"});var go=O.useCallback(function(ti,Sa){_i(function(Ia){var Eo=new Map(Ia);return Eo.set(ti,Sa),Eo})},[]),no=me(null),hs=Object(_.a)(no,2),xo=hs[0],Cs=hs[1];function ws(ti,Sa){if(!Sa)return;typeof Sa=="function"?Sa(ti):Sa.scrollLeft!==ti&&(Sa.scrollLeft=ti)}var ho=function(Sa){var Ia=Sa.currentTarget,Eo=Sa.scrollLeft,xs=typeof Eo=="number"?Eo:Ia.scrollLeft,Ts=Ia||mt;if(!Cs()||Cs()===Ts){var Xs;xo(Ts),ws(xs,qr.current),ws(xs,zr.current),ws(xs,(Xs=Jr.current)===null||Xs===void 0?void 0:Xs.setScrollLeft)}if(Ia){var Ys=Ia.scrollWidth,il=Ia.clientWidth;ka(xs>0),Si(xs<Ys-il)}},As=function(){zr.current&&ho({currentTarget:zr.current})},mr=function(Sa){var Ia=Sa.width;As(),dn(Rr.current?Rr.current.offsetWidth:Ia)};O.useEffect(function(){return As},[]),O.useEffect(function(){Pr&&As()},[Pr]),O.useEffect(function(){pt===Rt&&Qe&&(Qe.body.current=zr.current)});var Vr=kt(["table"],"table"),ur=O.useMemo(function(){return we||(ca?He.x==="max-content"?"auto":"fixed":ua||Xn.some(function(ti){var Sa=ti.ellipsis;return Sa})?"fixed":"auto")},[ua,ca,Xn,we]),oa,wa={colWidths:Yi,columCount:Xn.length,stickyOffsets:$r,onHeaderRow:Ct,fixHeader:ua},ei=O.useMemo(function(){return St?null:typeof Zt=="function"?Zt():Zt},[St,Zt]),Ba=O.createElement(Ae,{data:je,measureColumnWidth:ua||Pr||pa,expandedKeys:ne,rowExpandable:_a,getRowKey:fn,onRow:xt,emptyNode:ei,childrenColumnName:yt}),Ni=O.createElement(g,{colWidths:Xn.map(function(ti){var Sa=ti.width;return Sa}),columns:Xn}),Ma=Xe&&O.createElement(Me.b,null,Xe(je)),xa=kt(["body"]);if(ua||pa){var Po;typeof xa=="function"?(Po=xa(je,{scrollbarSize:Ht,ref:zr,onScroll:ho}),wa.colWidths=Xn.map(function(ti,Sa){var Ia=ti.width,Eo=Sa===Vn.length-1?Ia-Ht:Ia;return typeof Eo=="number"&&!Number.isNaN(Eo)?Eo:(Object(a.a)(!1,"When use `components.body` with render props. Each column should have a fixed value."),0)})):Po=O.createElement("div",{style:Object(K.a)(Object(K.a)({},Wo),Mo),onScroll:ho,ref:zr,className:x()("".concat(Et,"-body"))},O.createElement(Vr,{style:Object(K.a)(Object(K.a)({},ii),{},{tableLayout:ur})},Ni,Ba,Ma),pa&&O.createElement(Ue,{ref:Jr,offsetScroll:Di,scrollBodyRef:zr,onScroll:ho})),oa=O.createElement(O.Fragment,null,Lt!==!1&&O.createElement(y,Object.assign({noData:!je.length},wa,lr,{direction:Le,offsetHeader:mo,stickyClassName:ci,ref:qr,onScroll:ho})),Po)}else oa=O.createElement("div",{style:Object(K.a)(Object(K.a)({},Wo),Mo),className:x()("".concat(Et,"-content")),onScroll:ho,ref:zr},O.createElement(Vr,{style:Object(K.a)(Object(K.a)({},ii),{},{tableLayout:ur})},Ni,Lt!==!1&&O.createElement(b,Object.assign({},wa,lr)),Ba,Ma));var Za=Object(l.b)(ze),ro=O.createElement("div",Object.assign({className:x()(Et,Ot,(Ve={},Object(Z.a)(Ve,"".concat(Et,"-rtl"),Le==="rtl"),Object(Z.a)(Ve,"".concat(Et,"-ping-left"),ya),Object(Z.a)(Ve,"".concat(Et,"-ping-right"),qa),Object(Z.a)(Ve,"".concat(Et,"-layout-fixed"),we==="fixed"),Object(Z.a)(Ve,"".concat(Et,"-fixed-header"),ua),Object(Z.a)(Ve,"".concat(Et,"-fixed-column"),ca),Object(Z.a)(Ve,"".concat(Et,"-scroll-horizontal"),Pr),Object(Z.a)(Ve,"".concat(Et,"-has-fix-left"),Xn[0]&&Xn[0].fixed),Object(Z.a)(Ve,"".concat(Et,"-has-fix-right"),Xn[Xn.length-1]&&Xn[Xn.length-1].fixed==="right"),Ve)),style:vt,id:gt,ref:Rr},Za),O.createElement(ht,{pingLeft:ya,pingRight:qa,props:Object(K.a)(Object(K.a)({},ze),{},{stickyOffsets:$r,mergedExpandedKeys:ne})},Pe&&O.createElement(pe,{className:"".concat(Et,"-title")},Pe(je)),O.createElement("div",{className:"".concat(Et,"-container")},oa),We&&O.createElement(pe,{className:"".concat(Et,"-footer")},We(je))));Pr&&(ro=O.createElement(t.a,{onResize:mr},ro));var so=O.useMemo(function(){return{prefixCls:Et,getComponent:kt,scrollbarSize:Ht,direction:Le,fixedInfoList:Xn.map(function(ti,Sa){return c(Sa,Sa,Xn,$r,Le)}),isSticky:pa}},[Et,kt,Ht,Le,Xn,$r,Le,pa]),To=O.useMemo(function(){return Object(K.a)(Object(K.a)({},lr),{},{tableLayout:ur,rowClassName:ut,expandedRowClassName:Ei,componentWidth:Qt,fixHeader:ua,fixColumn:ca,horizonScroll:Pr,expandIcon:Ye,expandableType:Xt,expandRowByClick:Kr,expandedRowRender:Ra,onTriggerExpand:ve,expandIconColumnIndex:di,indentSize:Ie})},[lr,ur,ut,Ei,Qt,ua,ca,Pr,Ye,Xt,Kr,Ra,ve,di,Ie]),Vs=O.useMemo(function(){return{onColumnResize:go}},[go]);return O.createElement(o.a.Provider,{value:so},O.createElement(N.Provider,{value:To},O.createElement(Q.Provider,{value:Vs},ro)))}Ut.Column=i.a,Ut.ColumnGroup=s.a,Ut.Summary=Me.a,Ut.defaultProps={rowKey:"key",prefixCls:"rc-table",emptyText:function(){return"No Data"}};var zt=te.b=Ut},wOnQ:function(Re,te,v){/*!
|
|
* html2canvas 1.4.1 <https://html2canvas.hertzen.com>
|
|
* Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
|
|
* Released under MIT License
|
|
*/(function(Z,K){Re.exports=K()})(this,function(){"use strict";/*! *****************************************************************************
|
|
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(X,G){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(J,Y){J.__proto__=Y}||function(J,Y){for(var de in Y)Object.prototype.hasOwnProperty.call(Y,de)&&(J[de]=Y[de])},Z(X,G)};function K(X,G){if(typeof G!="function"&&G!==null)throw new TypeError("Class extends value "+String(G)+" is not a constructor or null");Z(X,G);function J(){this.constructor=X}X.prototype=G===null?Object.create(G):(J.prototype=G.prototype,new J)}var I=function(){return I=Object.assign||function(G){for(var J,Y=1,de=arguments.length;Y<de;Y++){J=arguments[Y];for(var Ce in J)Object.prototype.hasOwnProperty.call(J,Ce)&&(G[Ce]=J[Ce])}return G},I.apply(this,arguments)};function k(X,G,J,Y){function de(Ce){return Ce instanceof J?Ce:new J(function(Fe){Fe(Ce)})}return new(J||(J=Promise))(function(Ce,Fe){function at(Ft){try{It(Y.next(Ft))}catch(nn){Fe(nn)}}function rt(Ft){try{It(Y.throw(Ft))}catch(nn){Fe(nn)}}function It(Ft){Ft.done?Ce(Ft.value):de(Ft.value).then(at,rt)}It((Y=Y.apply(X,G||[])).next())})}function _(X,G){var J={label:0,sent:function(){if(Ce[0]&1)throw Ce[1];return Ce[1]},trys:[],ops:[]},Y,de,Ce,Fe;return Fe={next:at(0),throw:at(1),return:at(2)},typeof Symbol=="function"&&(Fe[Symbol.iterator]=function(){return this}),Fe;function at(It){return function(Ft){return rt([It,Ft])}}function rt(It){if(Y)throw new TypeError("Generator is already executing.");for(;J;)try{if(Y=1,de&&(Ce=It[0]&2?de.return:It[0]?de.throw||((Ce=de.return)&&Ce.call(de),0):de.next)&&!(Ce=Ce.call(de,It[1])).done)return Ce;(de=0,Ce)&&(It=[It[0]&2,Ce.value]);switch(It[0]){case 0:case 1:Ce=It;break;case 4:return J.label++,{value:It[1],done:!1};case 5:J.label++,de=It[1],It=[0];continue;case 7:It=J.ops.pop(),J.trys.pop();continue;default:if(!(Ce=J.trys,Ce=Ce.length>0&&Ce[Ce.length-1])&&(It[0]===6||It[0]===2)){J=0;continue}if(It[0]===3&&(!Ce||It[1]>Ce[0]&&It[1]<Ce[3])){J.label=It[1];break}if(It[0]===6&&J.label<Ce[1]){J.label=Ce[1],Ce=It;break}if(Ce&&J.label<Ce[2]){J.label=Ce[2],J.ops.push(It);break}Ce[2]&&J.ops.pop(),J.trys.pop();continue}It=G.call(X,J)}catch(Ft){It=[6,Ft],de=0}finally{Y=Ce=0}if(It[0]&5)throw It[1];return{value:It[0]?It[1]:void 0,done:!0}}}function O(X,G,J){if(J||arguments.length===2)for(var Y=0,de=G.length,Ce;Y<de;Y++)(Ce||!(Y in G))&&(Ce||(Ce=Array.prototype.slice.call(G,0,Y)),Ce[Y]=G[Y]);return X.concat(Ce||G)}for(var M=function(){function X(G,J,Y,de){this.left=G,this.top=J,this.width=Y,this.height=de}return X.prototype.add=function(G,J,Y,de){return new X(this.left+G,this.top+J,this.width+Y,this.height+de)},X.fromClientRect=function(G,J){return new X(J.left+G.windowBounds.left,J.top+G.windowBounds.top,J.width,J.height)},X.fromDOMRectList=function(G,J){var Y=Array.from(J).find(function(de){return de.width!==0});return Y?new X(Y.left+G.windowBounds.left,Y.top+G.windowBounds.top,Y.width,Y.height):X.EMPTY},X.EMPTY=new X(0,0,0,0),X}(),x=function(X,G){return M.fromClientRect(X,G.getBoundingClientRect())},n=function(X){var G=X.body,J=X.documentElement;if(!G||!J)throw new Error("Unable to get document size");var Y=Math.max(Math.max(G.scrollWidth,J.scrollWidth),Math.max(G.offsetWidth,J.offsetWidth),Math.max(G.clientWidth,J.clientWidth)),de=Math.max(Math.max(G.scrollHeight,J.scrollHeight),Math.max(G.offsetHeight,J.offsetHeight),Math.max(G.clientHeight,J.clientHeight));return new M(0,0,Y,de)},p=function(X){for(var G=[],J=0,Y=X.length;J<Y;){var de=X.charCodeAt(J++);if(de>=55296&&de<=56319&&J<Y){var Ce=X.charCodeAt(J++);(Ce&64512)===56320?G.push(((de&1023)<<10)+(Ce&1023)+65536):(G.push(de),J--)}else G.push(de)}return G},a=function(){for(var X=[],G=0;G<arguments.length;G++)X[G]=arguments[G];if(String.fromCodePoint)return String.fromCodePoint.apply(String,X);var J=X.length;if(!J)return"";for(var Y=[],de=-1,Ce="";++de<J;){var Fe=X[de];Fe<=65535?Y.push(Fe):(Fe-=65536,Y.push((Fe>>10)+55296,Fe%1024+56320)),(de+1===J||Y.length>16384)&&(Ce+=String.fromCharCode.apply(String,Y),Y.length=0)}return Ce},t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),s=0;s<t.length;s++)h[t.charCodeAt(s)]=s;for(var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),d=0;d<i.length;d++)u[i.charCodeAt(d)]=d;for(var f=function(X){var G=X.length*.75,J=X.length,Y,de=0,Ce,Fe,at,rt;X[X.length-1]==="="&&(G--,X[X.length-2]==="="&&G--);var It=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(G):new Array(G),Ft=Array.isArray(It)?It:new Uint8Array(It);for(Y=0;Y<J;Y+=4)Ce=u[X.charCodeAt(Y)],Fe=u[X.charCodeAt(Y+1)],at=u[X.charCodeAt(Y+2)],rt=u[X.charCodeAt(Y+3)],Ft[de++]=Ce<<2|Fe>>4,Ft[de++]=(Fe&15)<<4|at>>2,Ft[de++]=(at&3)<<6|rt&63;return It},o=function(X){for(var G=X.length,J=[],Y=0;Y<G;Y+=2)J.push(X[Y+1]<<8|X[Y]);return J},c=function(X){for(var G=X.length,J=[],Y=0;Y<G;Y+=4)J.push(X[Y+3]<<24|X[Y+2]<<16|X[Y+1]<<8|X[Y]);return J},E=5,B=6+5,w=2,P=B-E,C=65536>>E,b=1<<E,l=b-1,A=1024>>E,g=C+A,T=g,m=2048>>6,y=T+m,U=65536>>B,N=1<<P,S=N-1,H=function(X,G,J){return X.slice?X.slice(G,J):new Uint16Array(Array.prototype.slice.call(X,G,J))},F=function(X,G,J){return X.slice?X.slice(G,J):new Uint32Array(Array.prototype.slice.call(X,G,J))},R=function(X,G){var J=f(X),Y=Array.isArray(J)?c(J):new Uint32Array(J),de=Array.isArray(J)?o(J):new Uint16Array(J),Ce=24,Fe=H(de,Ce/2,Y[4]/2),at=Y[5]===2?H(de,(Ce+Y[4])/2):F(Y,Math.ceil((Ce+Y[4])/4));return new z(Y[0],Y[1],Y[2],Y[3],Fe,at)},z=function(){function X(G,J,Y,de,Ce,Fe){this.initialValue=G,this.errorValue=J,this.highStart=Y,this.highValueIndex=de,this.index=Ce,this.data=Fe}return X.prototype.get=function(G){var J;if(G>=0){if(G<55296||G>56319&&G<=65535)return J=this.index[G>>E],J=(J<<w)+(G&l),this.data[J];if(G<=65535)return J=this.index[C+(G-55296>>E)],J=(J<<w)+(G&l),this.data[J];if(G<this.highStart)return J=y-U+(G>>B),J=this.index[J],J+=G>>E&S,J=this.index[J],J=(J<<w)+(G&l),this.data[J];if(G<=1114111)return this.data[this.highValueIndex]}return this.errorValue},X}(),Q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),ee=0;ee<Q.length;ee++)$[Q.charCodeAt(ee)]=ee;var fe="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",Ae=50,ce=1,ie=2,be=3,se=4,me=5,le=7,ge=8,ae=9,pe=10,Me=11,xe=12,Ke=13,tt=14,he=15,Se=16,Ue=17,Ne=18,ct=19,mt=20,Rt=21,ht=22,Ut=23,zt=24,ze=25,Ve=26,Et=27,Ot=28,ut=29,vt=30,Ze=31,ke=32,He=33,we=34,Le=35,Pe=36,We=37,Xe=38,gt=39,Lt=40,en=41,Zt=42,xt=43,Ct=[9001,65288],pt="!",Je="\xD7",Qe="\xF7",Oe=R(fe),je=[vt,Pe],St=[ce,ie,be,me],bt=[pe,ge],Dt=[Et,Ve],Ht=St.concat(bt),_t=[Xe,gt,Lt,we,Le],Gt=[he,Ke],kt=function(X,G){G===void 0&&(G="strict");var J=[],Y=[],de=[];return X.forEach(function(Ce,Fe){var at=Oe.get(Ce);if(at>Ae?(de.push(!0),at-=Ae):de.push(!1),["normal","auto","loose"].indexOf(G)!==-1&&[8208,8211,12316,12448].indexOf(Ce)!==-1)return Y.push(Fe),J.push(Se);if(at===se||at===Me){if(Fe===0)return Y.push(Fe),J.push(vt);var rt=J[Fe-1];return Ht.indexOf(rt)===-1?(Y.push(Y[Fe-1]),J.push(rt)):(Y.push(Fe),J.push(vt))}if(Y.push(Fe),at===Ze)return J.push(G==="strict"?Rt:We);if(at===Zt)return J.push(vt);if(at===ut)return J.push(vt);if(at===xt)return Ce>=131072&&Ce<=196605||Ce>=196608&&Ce<=262141?J.push(We):J.push(vt);J.push(at)}),[Y,J,de]},fn=function(X,G,J,Y){var de=Y[J];if(Array.isArray(X)?X.indexOf(de)!==-1:X===de)for(var Ce=J;Ce<=Y.length;){Ce++;var Fe=Y[Ce];if(Fe===G)return!0;if(Fe!==pe)break}if(de===pe)for(var Ce=J;Ce>0;){Ce--;var at=Y[Ce];if(Array.isArray(X)?X.indexOf(at)!==-1:X===at)for(var rt=J;rt<=Y.length;){rt++;var Fe=Y[rt];if(Fe===G)return!0;if(Fe!==pe)break}if(at!==pe)break}return!1},mn=function(X,G){for(var J=X;J>=0;){var Y=G[J];if(Y===pe)J--;else return Y}return 0},Tr=function(X,G,J,Y,de){if(J[Y]===0)return Je;var Ce=Y-1;if(Array.isArray(de)&&de[Ce]===!0)return Je;var Fe=Ce-1,at=Ce+1,rt=G[Ce],It=Fe>=0?G[Fe]:0,Ft=G[at];if(rt===ie&&Ft===be)return Je;if(St.indexOf(rt)!==-1)return pt;if(St.indexOf(Ft)!==-1)return Je;if(bt.indexOf(Ft)!==-1)return Je;if(mn(Ce,G)===ge)return Qe;if(Oe.get(X[Ce])===Me)return Je;if((rt===ke||rt===He)&&Oe.get(X[at])===Me)return Je;if(rt===le||Ft===le)return Je;if(rt===ae)return Je;if([pe,Ke,he].indexOf(rt)===-1&&Ft===ae)return Je;if([Ue,Ne,ct,zt,Ot].indexOf(Ft)!==-1)return Je;if(mn(Ce,G)===ht)return Je;if(fn(Ut,ht,Ce,G))return Je;if(fn([Ue,Ne],Rt,Ce,G))return Je;if(fn(xe,xe,Ce,G))return Je;if(rt===pe)return Qe;if(rt===Ut||Ft===Ut)return Je;if(Ft===Se||rt===Se)return Qe;if([Ke,he,Rt].indexOf(Ft)!==-1||rt===tt)return Je;if(It===Pe&&Gt.indexOf(rt)!==-1)return Je;if(rt===Ot&&Ft===Pe)return Je;if(Ft===mt)return Je;if(je.indexOf(Ft)!==-1&&rt===ze||je.indexOf(rt)!==-1&&Ft===ze)return Je;if(rt===Et&&[We,ke,He].indexOf(Ft)!==-1||[We,ke,He].indexOf(rt)!==-1&&Ft===Ve)return Je;if(je.indexOf(rt)!==-1&&Dt.indexOf(Ft)!==-1||Dt.indexOf(rt)!==-1&&je.indexOf(Ft)!==-1)return Je;if([Et,Ve].indexOf(rt)!==-1&&(Ft===ze||[ht,he].indexOf(Ft)!==-1&&G[at+1]===ze)||[ht,he].indexOf(rt)!==-1&&Ft===ze||rt===ze&&[ze,Ot,zt].indexOf(Ft)!==-1)return Je;if([ze,Ot,zt,Ue,Ne].indexOf(Ft)!==-1)for(var nn=Ce;nn>=0;){var un=G[nn];if(un===ze)return Je;if([Ot,zt].indexOf(un)!==-1)nn--;else break}if([Et,Ve].indexOf(Ft)!==-1)for(var nn=[Ue,Ne].indexOf(rt)!==-1?Fe:Ce;nn>=0;){var un=G[nn];if(un===ze)return Je;if([Ot,zt].indexOf(un)!==-1)nn--;else break}if(Xe===rt&&[Xe,gt,we,Le].indexOf(Ft)!==-1||[gt,we].indexOf(rt)!==-1&&[gt,Lt].indexOf(Ft)!==-1||[Lt,Le].indexOf(rt)!==-1&&Ft===Lt)return Je;if(_t.indexOf(rt)!==-1&&[mt,Ve].indexOf(Ft)!==-1||_t.indexOf(Ft)!==-1&&rt===Et)return Je;if(je.indexOf(rt)!==-1&&je.indexOf(Ft)!==-1)return Je;if(rt===zt&&je.indexOf(Ft)!==-1)return Je;if(je.concat(ze).indexOf(rt)!==-1&&Ft===ht&&Ct.indexOf(X[at])===-1||je.concat(ze).indexOf(Ft)!==-1&&rt===Ne)return Je;if(rt===en&&Ft===en){for(var Sr=J[Ce],Qn=1;Sr>0&&(Sr--,G[Sr]===en);)Qn++;if(Qn%2!==0)return Je}return rt===ke&&Ft===He?Je:Qe},Mr=function(X,G){G||(G={lineBreak:"normal",wordBreak:"normal"});var J=kt(X,G.lineBreak),Y=J[0],de=J[1],Ce=J[2];(G.wordBreak==="break-all"||G.wordBreak==="break-word")&&(de=de.map(function(at){return[ze,vt,Zt].indexOf(at)!==-1?We:at}));var Fe=G.wordBreak==="keep-all"?Ce.map(function(at,rt){return at&&X[rt]>=19968&&X[rt]<=40959}):void 0;return[Y,de,Fe]},kr=function(){function X(G,J,Y,de){this.codePoints=G,this.required=J===pt,this.start=Y,this.end=de}return X.prototype.slice=function(){return a.apply(void 0,this.codePoints.slice(this.start,this.end))},X}(),Un=function(X,G){var J=p(X),Y=Mr(J,G),de=Y[0],Ce=Y[1],Fe=Y[2],at=J.length,rt=0,It=0;return{next:function(){if(It>=at)return{done:!0,value:null};for(var Ft=Je;It<at&&(Ft=Tr(J,Ce,de,++It,Fe))===Je;);if(Ft!==Je||It===at){var nn=new kr(J,Ft,rt,It);return rt=It,{value:nn,done:!1}}return{done:!0,value:null}}}},Ra=1<<0,Xr=1<<1,aa=1<<2,Kr=1<<3,_a=10,di=47,Ei=92,_e=9,Ie=32,Ye=34,yt=61,Xt=35,sn=36,re=37,W=39,V=40,ne=41,ve=95,oe=45,et=33,Qt=60,dn=62,Cn=64,Jt=91,Vn=93,Xn=61,lr=123,Rr=63,qr=125,zr=124,Ca=126,Dr=128,ya=65533,ka=42,fi=43,Ka=44,qa=58,Si=59,pi=46,ui=0,mi=8,_i=11,ai=14,Hi=31,Yi=127,$r=-1,ua=48,Pr=97,ca=101,Jr=102,ri=117,pa=122,mo=65,Di=69,ci=70,Wo=85,Mo=90,ii=function(X){return X>=ua&&X<=57},go=function(X){return X>=55296&&X<=57343},no=function(X){return ii(X)||X>=mo&&X<=ci||X>=Pr&&X<=Jr},hs=function(X){return X>=Pr&&X<=pa},xo=function(X){return X>=mo&&X<=Mo},Cs=function(X){return hs(X)||xo(X)},ws=function(X){return X>=Dr},ho=function(X){return X===_a||X===_e||X===Ie},As=function(X){return Cs(X)||ws(X)||X===ve},mr=function(X){return As(X)||ii(X)||X===oe},Vr=function(X){return X>=ui&&X<=mi||X===_i||X>=ai&&X<=Hi||X===Yi},ur=function(X,G){return X!==Ei?!1:G!==_a},oa=function(X,G,J){return X===oe?As(G)||ur(G,J):As(X)?!0:!!(X===Ei&&ur(X,G))},wa=function(X,G,J){return X===fi||X===oe?ii(G)?!0:G===pi&&ii(J):X===pi?ii(G):ii(X)},ei=function(X){var G=0,J=1;(X[G]===fi||X[G]===oe)&&(X[G]===oe&&(J=-1),G++);for(var Y=[];ii(X[G]);)Y.push(X[G++]);var de=Y.length?parseInt(a.apply(void 0,Y),10):0;X[G]===pi&&G++;for(var Ce=[];ii(X[G]);)Ce.push(X[G++]);var Fe=Ce.length,at=Fe?parseInt(a.apply(void 0,Ce),10):0;(X[G]===Di||X[G]===ca)&&G++;var rt=1;(X[G]===fi||X[G]===oe)&&(X[G]===oe&&(rt=-1),G++);for(var It=[];ii(X[G]);)It.push(X[G++]);var Ft=It.length?parseInt(a.apply(void 0,It),10):0;return J*(de+at*Math.pow(10,-Fe))*Math.pow(10,rt*Ft)},Ba={type:2},Ni={type:3},Ma={type:4},xa={type:13},Po={type:8},Za={type:21},ro={type:9},so={type:10},To={type:11},Vs={type:12},ti={type:14},Sa={type:23},Ia={type:1},Eo={type:25},xs={type:24},Ts={type:26},Xs={type:27},Ys={type:28},il={type:29},ml={type:31},Js={type:32},Ps=function(){function X(){this._value=[]}return X.prototype.write=function(G){this._value=this._value.concat(p(G))},X.prototype.read=function(){for(var G=[],J=this.consumeToken();J!==Js;)G.push(J),J=this.consumeToken();return G},X.prototype.consumeToken=function(){var G=this.consumeCodePoint();switch(G){case Ye:return this.consumeStringToken(Ye);case Xt:var J=this.peekCodePoint(0),Y=this.peekCodePoint(1),de=this.peekCodePoint(2);if(mr(J)||ur(Y,de)){var Ce=oa(J,Y,de)?Xr:Ra,Fe=this.consumeName();return{type:5,value:Fe,flags:Ce}}break;case sn:if(this.peekCodePoint(0)===yt)return this.consumeCodePoint(),xa;break;case W:return this.consumeStringToken(W);case V:return Ba;case ne:return Ni;case ka:if(this.peekCodePoint(0)===yt)return this.consumeCodePoint(),ti;break;case fi:if(wa(G,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(G),this.consumeNumericToken();break;case Ka:return Ma;case oe:var at=G,rt=this.peekCodePoint(0),It=this.peekCodePoint(1);if(wa(at,rt,It))return this.reconsumeCodePoint(G),this.consumeNumericToken();if(oa(at,rt,It))return this.reconsumeCodePoint(G),this.consumeIdentLikeToken();if(rt===oe&&It===dn)return this.consumeCodePoint(),this.consumeCodePoint(),xs;break;case pi:if(wa(G,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(G),this.consumeNumericToken();break;case di:if(this.peekCodePoint(0)===ka)for(this.consumeCodePoint();;){var Ft=this.consumeCodePoint();if(Ft===ka&&(Ft=this.consumeCodePoint(),Ft===di))return this.consumeToken();if(Ft===$r)return this.consumeToken()}break;case qa:return Ts;case Si:return Xs;case Qt:if(this.peekCodePoint(0)===et&&this.peekCodePoint(1)===oe&&this.peekCodePoint(2)===oe)return this.consumeCodePoint(),this.consumeCodePoint(),Eo;break;case Cn:var nn=this.peekCodePoint(0),un=this.peekCodePoint(1),Sr=this.peekCodePoint(2);if(oa(nn,un,Sr)){var Fe=this.consumeName();return{type:7,value:Fe}}break;case Jt:return Ys;case Ei:if(ur(G,this.peekCodePoint(0)))return this.reconsumeCodePoint(G),this.consumeIdentLikeToken();break;case Vn:return il;case Xn:if(this.peekCodePoint(0)===yt)return this.consumeCodePoint(),Po;break;case lr:return To;case qr:return Vs;case ri:case Wo:var Qn=this.peekCodePoint(0),Ar=this.peekCodePoint(1);return Qn===fi&&(no(Ar)||Ar===Rr)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(G),this.consumeIdentLikeToken();case zr:if(this.peekCodePoint(0)===yt)return this.consumeCodePoint(),ro;if(this.peekCodePoint(0)===zr)return this.consumeCodePoint(),Za;break;case Ca:if(this.peekCodePoint(0)===yt)return this.consumeCodePoint(),so;break;case $r:return Js}return ho(G)?(this.consumeWhiteSpace(),ml):ii(G)?(this.reconsumeCodePoint(G),this.consumeNumericToken()):As(G)?(this.reconsumeCodePoint(G),this.consumeIdentLikeToken()):{type:6,value:a(G)}},X.prototype.consumeCodePoint=function(){var G=this._value.shift();return typeof G=="undefined"?-1:G},X.prototype.reconsumeCodePoint=function(G){this._value.unshift(G)},X.prototype.peekCodePoint=function(G){return G>=this._value.length?-1:this._value[G]},X.prototype.consumeUnicodeRangeToken=function(){for(var G=[],J=this.consumeCodePoint();no(J)&&G.length<6;)G.push(J),J=this.consumeCodePoint();for(var Y=!1;J===Rr&&G.length<6;)G.push(J),J=this.consumeCodePoint(),Y=!0;if(Y){var de=parseInt(a.apply(void 0,G.map(function(rt){return rt===Rr?ua:rt})),16),Ce=parseInt(a.apply(void 0,G.map(function(rt){return rt===Rr?ci:rt})),16);return{type:30,start:de,end:Ce}}var Fe=parseInt(a.apply(void 0,G),16);if(this.peekCodePoint(0)===oe&&no(this.peekCodePoint(1))){this.consumeCodePoint(),J=this.consumeCodePoint();for(var at=[];no(J)&&at.length<6;)at.push(J),J=this.consumeCodePoint();var Ce=parseInt(a.apply(void 0,at),16);return{type:30,start:Fe,end:Ce}}else return{type:30,start:Fe,end:Fe}},X.prototype.consumeIdentLikeToken=function(){var G=this.consumeName();return G.toLowerCase()==="url"&&this.peekCodePoint(0)===V?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===V?(this.consumeCodePoint(),{type:19,value:G}):{type:20,value:G}},X.prototype.consumeUrlToken=function(){var G=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===$r)return{type:22,value:""};var J=this.peekCodePoint(0);if(J===W||J===Ye){var Y=this.consumeStringToken(this.consumeCodePoint());return Y.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===$r||this.peekCodePoint(0)===ne)?(this.consumeCodePoint(),{type:22,value:Y.value}):(this.consumeBadUrlRemnants(),Sa)}for(;;){var de=this.consumeCodePoint();if(de===$r||de===ne)return{type:22,value:a.apply(void 0,G)};if(ho(de))return this.consumeWhiteSpace(),this.peekCodePoint(0)===$r||this.peekCodePoint(0)===ne?(this.consumeCodePoint(),{type:22,value:a.apply(void 0,G)}):(this.consumeBadUrlRemnants(),Sa);if(de===Ye||de===W||de===V||Vr(de))return this.consumeBadUrlRemnants(),Sa;if(de===Ei)if(ur(de,this.peekCodePoint(0)))G.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Sa;else G.push(de)}},X.prototype.consumeWhiteSpace=function(){for(;ho(this.peekCodePoint(0));)this.consumeCodePoint()},X.prototype.consumeBadUrlRemnants=function(){for(;;){var G=this.consumeCodePoint();if(G===ne||G===$r)return;ur(G,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},X.prototype.consumeStringSlice=function(G){for(var J=5e4,Y="";G>0;){var de=Math.min(J,G);Y+=a.apply(void 0,this._value.splice(0,de)),G-=de}return this._value.shift(),Y},X.prototype.consumeStringToken=function(G){var J="",Y=0;do{var de=this._value[Y];if(de===$r||de===void 0||de===G)return J+=this.consumeStringSlice(Y),{type:0,value:J};if(de===_a)return this._value.splice(0,Y),Ia;if(de===Ei){var Ce=this._value[Y+1];Ce!==$r&&Ce!==void 0&&(Ce===_a?(J+=this.consumeStringSlice(Y),Y=-1,this._value.shift()):ur(de,Ce)&&(J+=this.consumeStringSlice(Y),J+=a(this.consumeEscapedCodePoint()),Y=-1))}Y++}while(!0)},X.prototype.consumeNumber=function(){var G=[],J=aa,Y=this.peekCodePoint(0);for((Y===fi||Y===oe)&&G.push(this.consumeCodePoint());ii(this.peekCodePoint(0));)G.push(this.consumeCodePoint());Y=this.peekCodePoint(0);var de=this.peekCodePoint(1);if(Y===pi&&ii(de))for(G.push(this.consumeCodePoint(),this.consumeCodePoint()),J=Kr;ii(this.peekCodePoint(0));)G.push(this.consumeCodePoint());Y=this.peekCodePoint(0),de=this.peekCodePoint(1);var Ce=this.peekCodePoint(2);if((Y===Di||Y===ca)&&((de===fi||de===oe)&&ii(Ce)||ii(de)))for(G.push(this.consumeCodePoint(),this.consumeCodePoint()),J=Kr;ii(this.peekCodePoint(0));)G.push(this.consumeCodePoint());return[ei(G),J]},X.prototype.consumeNumericToken=function(){var G=this.consumeNumber(),J=G[0],Y=G[1],de=this.peekCodePoint(0),Ce=this.peekCodePoint(1),Fe=this.peekCodePoint(2);if(oa(de,Ce,Fe)){var at=this.consumeName();return{type:15,number:J,flags:Y,unit:at}}return de===re?(this.consumeCodePoint(),{type:16,number:J,flags:Y}):{type:17,number:J,flags:Y}},X.prototype.consumeEscapedCodePoint=function(){var G=this.consumeCodePoint();if(no(G)){for(var J=a(G);no(this.peekCodePoint(0))&&J.length<6;)J+=a(this.consumeCodePoint());ho(this.peekCodePoint(0))&&this.consumeCodePoint();var Y=parseInt(J,16);return Y===0||go(Y)||Y>1114111?ya:Y}return G===$r?ya:G},X.prototype.consumeName=function(){for(var G="";;){var J=this.consumeCodePoint();if(mr(J))G+=a(J);else if(ur(J,this.peekCodePoint(0)))G+=a(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(J),G}},X}(),gl=function(){function X(G){this._tokens=G}return X.create=function(G){var J=new Ps;return J.write(G),new X(J.read())},X.parseValue=function(G){return X.create(G).parseComponentValue()},X.parseValues=function(G){return X.create(G).parseComponentValues()},X.prototype.parseComponentValue=function(){for(var G=this.consumeToken();G.type===31;)G=this.consumeToken();if(G.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(G);var J=this.consumeComponentValue();do G=this.consumeToken();while(G.type===31);if(G.type===32)return J;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},X.prototype.parseComponentValues=function(){for(var G=[];;){var J=this.consumeComponentValue();if(J.type===32)return G;G.push(J),G.push()}},X.prototype.consumeComponentValue=function(){var G=this.consumeToken();switch(G.type){case 11:case 28:case 2:return this.consumeSimpleBlock(G.type);case 19:return this.consumeFunction(G)}return G},X.prototype.consumeSimpleBlock=function(G){for(var J={type:G,values:[]},Y=this.consumeToken();;){if(Y.type===32||wt(Y,G))return J;this.reconsumeToken(Y),J.values.push(this.consumeComponentValue()),Y=this.consumeToken()}},X.prototype.consumeFunction=function(G){for(var J={name:G.value,values:[],type:18};;){var Y=this.consumeToken();if(Y.type===32||Y.type===3)return J;this.reconsumeToken(Y),J.values.push(this.consumeComponentValue())}},X.prototype.consumeToken=function(){var G=this._tokens.shift();return typeof G=="undefined"?Js:G},X.prototype.reconsumeToken=function(G){this._tokens.unshift(G)},X}(),Us=function(X){return X.type===15},Ns=function(X){return X.type===17},gi=function(X){return X.type===20},Hs=function(X){return X.type===0},$o=function(X,G){return gi(X)&&X.value===G},ol=function(X){return X.type!==31},$e=function(X){return X.type!==31&&X.type!==4},ft=function(X){var G=[],J=[];return X.forEach(function(Y){if(Y.type===4){if(J.length===0)throw new Error("Error parsing function args, zero tokens for arg");G.push(J),J=[];return}Y.type!==31&&J.push(Y)}),J.length&&G.push(J),G},wt=function(X,G){return G===11&&X.type===12||G===28&&X.type===29?!0:G===2&&X.type===3},nt=function(X){return X.type===17||X.type===15},Te=function(X){return X.type===16||nt(X)},Ge=function(X){return X.length>1?[X[0],X[1]]:[X[0]]},Be={type:17,number:0,flags:aa},it={type:16,number:50,flags:aa},st={type:16,number:100,flags:aa},Tt=function(X,G,J){var Y=X[0],de=X[1];return[dt(Y,G),dt(typeof de!="undefined"?de:Y,J)]},dt=function(X,G){if(X.type===16)return X.number/100*G;if(Us(X))switch(X.unit){case"rem":case"em":return 16*X.number;case"px":default:return X.number}return X.number},Mt="deg",tn="grad",lt="rad",qe="turn",Bt={name:"angle",parse:function(X,G){if(G.type===15)switch(G.unit){case Mt:return Math.PI*G.number/180;case tn:return Math.PI/200*G.number;case lt:return G.number;case qe:return Math.PI*2*G.number}throw new Error("Unsupported angle type")}},$t=function(X){return X.type===15&&(X.unit===Mt||X.unit===tn||X.unit===lt||X.unit===qe)},cn=function(X){var G=X.filter(gi).map(function(J){return J.value}).join(" ");switch(G){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Be,Be];case"to top":case"bottom":return Kt(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Be,st];case"to right":case"left":return Kt(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[st,st];case"to bottom":case"top":return Kt(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[st,Be];case"to left":case"right":return Kt(270)}return 0},Kt=function(X){return Math.PI*X/180},_n={name:"color",parse:function(X,G){if(G.type===18){var J=wn[G.name];if(typeof J=="undefined")throw new Error('Attempting to parse an unsupported color function "'+G.name+'"');return J(X,G.values)}if(G.type===5){if(G.value.length===3){var Y=G.value.substring(0,1),de=G.value.substring(1,2),Ce=G.value.substring(2,3);return An(parseInt(Y+Y,16),parseInt(de+de,16),parseInt(Ce+Ce,16),1)}if(G.value.length===4){var Y=G.value.substring(0,1),de=G.value.substring(1,2),Ce=G.value.substring(2,3),Fe=G.value.substring(3,4);return An(parseInt(Y+Y,16),parseInt(de+de,16),parseInt(Ce+Ce,16),parseInt(Fe+Fe,16)/255)}if(G.value.length===6){var Y=G.value.substring(0,2),de=G.value.substring(2,4),Ce=G.value.substring(4,6);return An(parseInt(Y,16),parseInt(de,16),parseInt(Ce,16),1)}if(G.value.length===8){var Y=G.value.substring(0,2),de=G.value.substring(2,4),Ce=G.value.substring(4,6),Fe=G.value.substring(6,8);return An(parseInt(Y,16),parseInt(de,16),parseInt(Ce,16),parseInt(Fe,16)/255)}}if(G.type===20){var at=xn[G.value.toUpperCase()];if(typeof at!="undefined")return at}return xn.TRANSPARENT}},rn=function(X){return(255&X)===0},jt=function(X){var G=255&X,J=255&X>>8,Y=255&X>>16,de=255&X>>24;return G<255?"rgba("+de+","+Y+","+J+","+G/255+")":"rgb("+de+","+Y+","+J+")"},An=function(X,G,J,Y){return(X<<24|G<<16|J<<8|Math.round(Y*255)<<0)>>>0},qt=function(X,G){if(X.type===17)return X.number;if(X.type===16){var J=G===3?1:255;return G===3?X.number/100*J:Math.round(X.number/100*J)}return 0},En=function(X,G){var J=G.filter($e);if(J.length===3){var Y=J.map(qt),de=Y[0],Ce=Y[1],Fe=Y[2];return An(de,Ce,Fe,1)}if(J.length===4){var at=J.map(qt),de=at[0],Ce=at[1],Fe=at[2],rt=at[3];return An(de,Ce,Fe,rt)}return 0};function kn(X,G,J){return J<0&&(J+=1),J>=1&&(J-=1),J<1/6?(G-X)*J*6+X:J<1/2?G:J<2/3?(G-X)*6*(2/3-J)+X:X}var Yt=function(X,G){var J=G.filter($e),Y=J[0],de=J[1],Ce=J[2],Fe=J[3],at=(Y.type===17?Kt(Y.number):Bt.parse(X,Y))/(Math.PI*2),rt=Te(de)?de.number/100:0,It=Te(Ce)?Ce.number/100:0,Ft=typeof Fe!="undefined"&&Te(Fe)?dt(Fe,1):1;if(rt===0)return An(It*255,It*255,It*255,1);var nn=It<=.5?It*(rt+1):It+rt-It*rt,un=It*2-nn,Sr=kn(un,nn,at+1/3),Qn=kn(un,nn,at),Ar=kn(un,nn,at-1/3);return An(Sr*255,Qn*255,Ar*255,Ft)},wn={hsl:Yt,hsla:Yt,rgb:En,rgba:En},ln=function(X,G){return _n.parse(X,gl.create(G).parseComponentValue())},xn={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},an={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(X,G){return G.map(function(J){if(gi(J))switch(J.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Vt={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Sn=function(X,G){var J=_n.parse(X,G[0]),Y=G[1];return Y&&Te(Y)?{color:J,stop:Y}:{color:J,stop:null}},hr=function(X,G){var J=X[0],Y=X[X.length-1];J.stop===null&&(J.stop=Be),Y.stop===null&&(Y.stop=st);for(var de=[],Ce=0,Fe=0;Fe<X.length;Fe++){var at=X[Fe].stop;if(at!==null){var rt=dt(at,G);rt>Ce?de.push(rt):de.push(Ce),Ce=rt}else de.push(null)}for(var It=null,Fe=0;Fe<de.length;Fe++){var Ft=de[Fe];if(Ft===null)It===null&&(It=Fe);else if(It!==null){for(var nn=Fe-It,un=de[It-1],Sr=(Ft-un)/(nn+1),Qn=1;Qn<=nn;Qn++)de[It+Qn-1]=Sr*Qn;It=null}}return X.map(function(Ar,va){var wr=Ar.color;return{color:wr,stop:Math.max(Math.min(1,de[va]/G),0)}})},pn=function(X,G,J){var Y=G/2,de=J/2,Ce=dt(X[0],G)-Y,Fe=de-dt(X[1],J);return(Math.atan2(Fe,Ce)+Math.PI*2)%(Math.PI*2)},Dn=function(X,G,J){var Y=typeof X=="number"?X:pn(X,G,J),de=Math.abs(G*Math.sin(Y))+Math.abs(J*Math.cos(Y)),Ce=G/2,Fe=J/2,at=de/2,rt=Math.sin(Y-Math.PI/2)*at,It=Math.cos(Y-Math.PI/2)*at;return[de,Ce-It,Ce+It,Fe-rt,Fe+rt]},Nn=function(X,G){return Math.sqrt(X*X+G*G)},Gn=function(X,G,J,Y,de){var Ce=[[0,0],[0,G],[X,0],[X,G]];return Ce.reduce(function(Fe,at){var rt=at[0],It=at[1],Ft=Nn(J-rt,Y-It);return(de?Ft<Fe.optimumDistance:Ft>Fe.optimumDistance)?{optimumCorner:at,optimumDistance:Ft}:Fe},{optimumDistance:de?Infinity:-Infinity,optimumCorner:null}).optimumCorner},yn=function(X,G,J,Y,de){var Ce=0,Fe=0;switch(X.size){case 0:X.shape===0?Ce=Fe=Math.min(Math.abs(G),Math.abs(G-Y),Math.abs(J),Math.abs(J-de)):X.shape===1&&(Ce=Math.min(Math.abs(G),Math.abs(G-Y)),Fe=Math.min(Math.abs(J),Math.abs(J-de)));break;case 2:if(X.shape===0)Ce=Fe=Math.min(Nn(G,J),Nn(G,J-de),Nn(G-Y,J),Nn(G-Y,J-de));else if(X.shape===1){var at=Math.min(Math.abs(J),Math.abs(J-de))/Math.min(Math.abs(G),Math.abs(G-Y)),rt=Gn(Y,de,G,J,!0),It=rt[0],Ft=rt[1];Ce=Nn(It-G,(Ft-J)/at),Fe=at*Ce}break;case 1:X.shape===0?Ce=Fe=Math.max(Math.abs(G),Math.abs(G-Y),Math.abs(J),Math.abs(J-de)):X.shape===1&&(Ce=Math.max(Math.abs(G),Math.abs(G-Y)),Fe=Math.max(Math.abs(J),Math.abs(J-de)));break;case 3:if(X.shape===0)Ce=Fe=Math.max(Nn(G,J),Nn(G,J-de),Nn(G-Y,J),Nn(G-Y,J-de));else if(X.shape===1){var at=Math.max(Math.abs(J),Math.abs(J-de))/Math.max(Math.abs(G),Math.abs(G-Y)),nn=Gn(Y,de,G,J,!1),It=nn[0],Ft=nn[1];Ce=Nn(It-G,(Ft-J)/at),Fe=at*Ce}break}return Array.isArray(X.size)&&(Ce=dt(X.size[0],Y),Fe=X.size.length===2?dt(X.size[1],de):Ce),[Ce,Fe]},Kn=function(X,G){var J=Kt(180),Y=[];return ft(G).forEach(function(de,Ce){if(Ce===0){var Fe=de[0];if(Fe.type===20&&Fe.value==="to"){J=cn(de);return}else if($t(Fe)){J=Bt.parse(X,Fe);return}}var at=Sn(X,de);Y.push(at)}),{angle:J,stops:Y,type:1}},or=function(X,G){var J=Kt(180),Y=[];return ft(G).forEach(function(de,Ce){if(Ce===0){var Fe=de[0];if(Fe.type===20&&["top","left","right","bottom"].indexOf(Fe.value)!==-1){J=cn(de);return}else if($t(Fe)){J=(Bt.parse(X,Fe)+Kt(270))%Kt(360);return}}var at=Sn(X,de);Y.push(at)}),{angle:J,stops:Y,type:1}},gr=function(X,G){var J=Kt(180),Y=[],de=1,Ce=0,Fe=3,at=[];return ft(G).forEach(function(rt,It){var Ft=rt[0];if(It===0){if(gi(Ft)&&Ft.value==="linear"){de=1;return}else if(gi(Ft)&&Ft.value==="radial"){de=2;return}}if(Ft.type===18){if(Ft.name==="from"){var nn=_n.parse(X,Ft.values[0]);Y.push({stop:Be,color:nn})}else if(Ft.name==="to"){var nn=_n.parse(X,Ft.values[0]);Y.push({stop:st,color:nn})}else if(Ft.name==="color-stop"){var un=Ft.values.filter($e);if(un.length===2){var nn=_n.parse(X,un[1]),Sr=un[0];Ns(Sr)&&Y.push({stop:{type:16,number:Sr.number*100,flags:Sr.flags},color:nn})}}}}),de===1?{angle:(J+Kt(180))%Kt(360),stops:Y,type:de}:{size:Fe,shape:Ce,stops:Y,position:at,type:de}},Ur="closest-side",er="farthest-side",rr="closest-corner",Lr="farthest-corner",Er="circle",_r="ellipse",sa="cover",ta="contain",tr=function(X,G){var J=0,Y=3,de=[],Ce=[];return ft(G).forEach(function(Fe,at){var rt=!0;if(at===0){var It=!1;rt=Fe.reduce(function(nn,un){if(It)if(gi(un))switch(un.value){case"center":return Ce.push(it),nn;case"top":case"left":return Ce.push(Be),nn;case"right":case"bottom":return Ce.push(st),nn}else(Te(un)||nt(un))&&Ce.push(un);else if(gi(un))switch(un.value){case Er:return J=0,!1;case _r:return J=1,!1;case"at":return It=!0,!1;case Ur:return Y=0,!1;case sa:case er:return Y=1,!1;case ta:case rr:return Y=2,!1;case Lr:return Y=3,!1}else if(nt(un)||Te(un))return Array.isArray(Y)||(Y=[]),Y.push(un),!1;return nn},rt)}if(rt){var Ft=Sn(X,Fe);de.push(Ft)}}),{size:Y,shape:J,stops:de,position:Ce,type:2}},vr=function(X,G){var J=0,Y=3,de=[],Ce=[];return ft(G).forEach(function(Fe,at){var rt=!0;if(at===0?rt=Fe.reduce(function(Ft,nn){if(gi(nn))switch(nn.value){case"center":return Ce.push(it),!1;case"top":case"left":return Ce.push(Be),!1;case"right":case"bottom":return Ce.push(st),!1}else if(Te(nn)||nt(nn))return Ce.push(nn),!1;return Ft},rt):at===1&&(rt=Fe.reduce(function(Ft,nn){if(gi(nn))switch(nn.value){case Er:return J=0,!1;case _r:return J=1,!1;case ta:case Ur:return Y=0,!1;case er:return Y=1,!1;case rr:return Y=2,!1;case sa:case Lr:return Y=3,!1}else if(nt(nn)||Te(nn))return Array.isArray(Y)||(Y=[]),Y.push(nn),!1;return Ft},rt)),rt){var It=Sn(X,Fe);de.push(It)}}),{size:Y,shape:J,stops:de,position:Ce,type:2}},ja=function(X){return X.type===1},ia=function(X){return X.type===2},Yn={name:"image",parse:function(X,G){if(G.type===22){var J={url:G.value,type:0};return X.cache.addImage(G.value),J}if(G.type===18){var Y=yr[G.name];if(typeof Y=="undefined")throw new Error('Attempting to parse an unsupported image function "'+G.name+'"');return Y(X,G.values)}throw new Error("Unsupported image type "+G.type)}};function vn(X){return!(X.type===20&&X.value==="none")&&(X.type!==18||!!yr[X.name])}var yr={"linear-gradient":Kn,"-moz-linear-gradient":or,"-ms-linear-gradient":or,"-o-linear-gradient":or,"-webkit-linear-gradient":or,"radial-gradient":tr,"-moz-radial-gradient":vr,"-ms-radial-gradient":vr,"-o-radial-gradient":vr,"-webkit-radial-gradient":vr,"-webkit-gradient":gr},oi={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(X,G){if(G.length===0)return[];var J=G[0];return J.type===20&&J.value==="none"?[]:G.filter(function(Y){return $e(Y)&&vn(Y)}).map(function(Y){return Yn.parse(X,Y)})}},Cr={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(X,G){return G.map(function(J){if(gi(J))switch(J.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Ir={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(X,G){return ft(G).map(function(J){return J.filter(Te)}).map(Ge)}},fr={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(X,G){return ft(G).map(function(J){return J.filter(gi).map(function(Y){return Y.value}).join(" ")}).map(ar)}},ar=function(X){switch(X){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},Ln;(function(X){X.AUTO="auto",X.CONTAIN="contain",X.COVER="cover"})(Ln||(Ln={}));var Mn={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(X,G){return ft(G).map(function(J){return J.filter(gn)})}},gn=function(X){return gi(X)||Te(X)},qn=function(X){return{name:"border-"+X+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},na=qn("top"),cr=qn("right"),jr=qn("bottom"),Pa=qn("left"),da=function(X){return{name:"border-radius-"+X,initialValue:"0 0",prefix:!1,type:1,parse:function(G,J){return Ge(J.filter(Te))}}},ba=da("top-left"),ha=da("top-right"),Ta=da("bottom-right"),Da=da("bottom-left"),Ua=function(X){return{name:"border-"+X+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(G,J){switch(J){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},Qr=Ua("top"),Wa=Ua("right"),Ea=Ua("bottom"),za=Ua("left"),hi=function(X){return{name:"border-"+X+"-width",initialValue:"0",type:0,prefix:!1,parse:function(G,J){return Us(J)?J.number:0}}},Ji=hi("top"),Li=hi("right"),Ci=hi("bottom"),Uo=hi("left"),Ao={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},_o={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(X,G){switch(G){case"rtl":return 1;case"ltr":default:return 0}}},as={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(X,G){return G.filter(gi).reduce(function(J,Y){return J|fs(Y.value)},0)}},fs=function(X){switch(X){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},is={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(X,G){switch(G){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},os={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(X,G){return G.type===20&&G.value==="normal"?0:G.type===17||G.type===15?G.number:0}},So;(function(X){X.NORMAL="normal",X.STRICT="strict"})(So||(So={}));var ps={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(X,G){switch(G){case"strict":return So.STRICT;case"normal":default:return So.NORMAL}}},Qi={name:"line-height",initialValue:"normal",prefix:!1,type:4},Aa=function(X,G){return gi(X)&&X.value==="normal"?1.2*G:X.type===17?G*X.number:Te(X)?dt(X,G):G},wi={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(X,G){return G.type===20&&G.value==="none"?null:Yn.parse(X,G)}},vi={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(X,G){switch(G){case"inside":return 0;case"outside":default:return 1}}},vo={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(X,G){switch(G){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},uo=function(X){return{name:"margin-"+X,initialValue:"0",prefix:!1,type:4}},Ki=uo("top"),ss=uo("right"),ls=uo("bottom"),qo=uo("left"),fo={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(X,G){return G.filter(gi).map(function(J){switch(J.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},zo={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(X,G){switch(G){case"break-word":return"break-word";case"normal":default:return"normal"}}},yo=function(X){return{name:"padding-"+X,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},es=yo("top"),Go=yo("right"),Oa=yo("bottom"),la=yo("left"),xi={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(X,G){switch(G){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},Zi={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(X,G){switch(G){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Oo={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(X,G){return G.length===1&&$o(G[0],"none")?[]:ft(G).map(function(J){for(var Y={color:xn.TRANSPARENT,offsetX:Be,offsetY:Be,blur:Be},de=0,Ce=0;Ce<J.length;Ce++){var Fe=J[Ce];nt(Fe)?(de===0?Y.offsetX=Fe:de===1?Y.offsetY=Fe:Y.blur=Fe,de++):Y.color=_n.parse(X,Fe)}return Y})}},co={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(X,G){switch(G){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},No={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(X,G){if(G.type===20&&G.value==="none")return null;if(G.type===18){var J=Vo[G.name];if(typeof J=="undefined")throw new Error('Attempting to parse an unsupported transform function "'+G.name+'"');return J(G.values)}return null}},Wi=function(X){var G=X.filter(function(J){return J.type===17}).map(function(J){return J.number});return G.length===6?G:null},Ai=function(X){var G=X.filter(function(rt){return rt.type===17}).map(function(rt){return rt.number}),J=G[0],Y=G[1];G[2],G[3];var de=G[4],Ce=G[5];G[6],G[7],G[8],G[9],G[10],G[11];var Fe=G[12],at=G[13];return G[14],G[15],G.length===16?[J,Y,de,Ce,Fe,at]:null},Vo={matrix:Wi,matrix3d:Ai},Pn={type:16,number:50,flags:aa},ts=[Pn,Pn],lo={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(X,G){var J=G.filter(Te);return J.length!==2?ts:[J[0],J[1]]}},Ha={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(X,G){switch(G){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},Fi;(function(X){X.NORMAL="normal",X.BREAK_ALL="break-all",X.KEEP_ALL="keep-all"})(Fi||(Fi={}));for(var Ti={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(X,G){switch(G){case"break-all":return Fi.BREAK_ALL;case"keep-all":return Fi.KEEP_ALL;case"normal":default:return Fi.NORMAL}}},Ro={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(X,G){if(G.type===20)return{auto:!0,order:0};if(Ns(G))return{auto:!1,order:G.number};throw new Error("Invalid z-index number parsed")}},Oi={name:"time",parse:function(X,G){if(G.type===15)switch(G.unit.toLowerCase()){case"s":return 1e3*G.number;case"ms":return G.number}throw new Error("Unsupported time type")}},Fo={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(X,G){return Ns(G)?G.number:1}},ns={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},ms={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(X,G){return G.filter(gi).map(function(J){switch(J.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(J){return J!==0})}},Xo={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(X,G){var J=[],Y=[];return G.forEach(function(de){switch(de.type){case 20:case 0:J.push(de.value);break;case 17:J.push(de.number.toString());break;case 4:Y.push(J.join(" ")),J.length=0;break}}),J.length&&Y.push(J.join(" ")),Y.map(function(de){return de.indexOf(" ")===-1?de:"'"+de+"'"})}},Ss={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},Fs={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(X,G){if(Ns(G))return G.number;if(gi(G))switch(G.value){case"bold":return 700;case"normal":default:return 400}return 400}},On={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(X,G){return G.filter(gi).map(function(J){return J.value})}},nr={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(X,G){switch(G){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},Wt=function(X,G){return(X&G)!==0},on={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(X,G){if(G.length===0)return[];var J=G[0];return J.type===20&&J.value==="none"?[]:G}},Tn={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(X,G){if(G.length===0)return null;var J=G[0];if(J.type===20&&J.value==="none")return null;for(var Y=[],de=G.filter(ol),Ce=0;Ce<de.length;Ce++){var Fe=de[Ce],at=de[Ce+1];if(Fe.type===20){var rt=at&&Ns(at)?at.number:1;Y.push({counter:Fe.value,increment:rt})}}return Y}},Hn={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(X,G){if(G.length===0)return[];for(var J=[],Y=G.filter(ol),de=0;de<Y.length;de++){var Ce=Y[de],Fe=Y[de+1];if(gi(Ce)&&Ce.value!=="none"){var at=Fe&&Ns(Fe)?Fe.number:0;J.push({counter:Ce.value,reset:at})}}return J}},jn={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(X,G){return G.filter(Us).map(function(J){return Oi.parse(X,J)})}},pr={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(X,G){if(G.length===0)return null;var J=G[0];if(J.type===20&&J.value==="none")return null;var Y=[],de=G.filter(Hs);if(de.length%2!==0)return null;for(var Ce=0;Ce<de.length;Ce+=2){var Fe=de[Ce].value,at=de[Ce+1].value;Y.push({open:Fe,close:at})}return Y}},dr=function(X,G,J){if(!X)return"";var Y=X[Math.min(G,X.length-1)];return Y?J?Y.open:Y.close:""},Bn={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(X,G){return G.length===1&&$o(G[0],"none")?[]:ft(G).map(function(J){for(var Y={color:255,offsetX:Be,offsetY:Be,blur:Be,spread:Be,inset:!1},de=0,Ce=0;Ce<J.length;Ce++){var Fe=J[Ce];$o(Fe,"inset")?Y.inset=!0:nt(Fe)?(de===0?Y.offsetX=Fe:de===1?Y.offsetY=Fe:de===2?Y.blur=Fe:Y.spread=Fe,de++):Y.color=_n.parse(X,Fe)}return Y})}},Yr={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(X,G){var J=[0,1,2],Y=[];return G.filter(gi).forEach(function(de){switch(de.value){case"stroke":Y.push(1);break;case"fill":Y.push(0);break;case"markers":Y.push(2);break}}),J.forEach(function(de){Y.indexOf(de)===-1&&Y.push(de)}),Y}},Ri={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},ir={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(X,G){return Us(G)?G.number:0}},si=function(){function X(G,J){var Y,de;this.animationDuration=Wn(G,jn,J.animationDuration),this.backgroundClip=Wn(G,an,J.backgroundClip),this.backgroundColor=Wn(G,Vt,J.backgroundColor),this.backgroundImage=Wn(G,oi,J.backgroundImage),this.backgroundOrigin=Wn(G,Cr,J.backgroundOrigin),this.backgroundPosition=Wn(G,Ir,J.backgroundPosition),this.backgroundRepeat=Wn(G,fr,J.backgroundRepeat),this.backgroundSize=Wn(G,Mn,J.backgroundSize),this.borderTopColor=Wn(G,na,J.borderTopColor),this.borderRightColor=Wn(G,cr,J.borderRightColor),this.borderBottomColor=Wn(G,jr,J.borderBottomColor),this.borderLeftColor=Wn(G,Pa,J.borderLeftColor),this.borderTopLeftRadius=Wn(G,ba,J.borderTopLeftRadius),this.borderTopRightRadius=Wn(G,ha,J.borderTopRightRadius),this.borderBottomRightRadius=Wn(G,Ta,J.borderBottomRightRadius),this.borderBottomLeftRadius=Wn(G,Da,J.borderBottomLeftRadius),this.borderTopStyle=Wn(G,Qr,J.borderTopStyle),this.borderRightStyle=Wn(G,Wa,J.borderRightStyle),this.borderBottomStyle=Wn(G,Ea,J.borderBottomStyle),this.borderLeftStyle=Wn(G,za,J.borderLeftStyle),this.borderTopWidth=Wn(G,Ji,J.borderTopWidth),this.borderRightWidth=Wn(G,Li,J.borderRightWidth),this.borderBottomWidth=Wn(G,Ci,J.borderBottomWidth),this.borderLeftWidth=Wn(G,Uo,J.borderLeftWidth),this.boxShadow=Wn(G,Bn,J.boxShadow),this.color=Wn(G,Ao,J.color),this.direction=Wn(G,_o,J.direction),this.display=Wn(G,as,J.display),this.float=Wn(G,is,J.cssFloat),this.fontFamily=Wn(G,Xo,J.fontFamily),this.fontSize=Wn(G,Ss,J.fontSize),this.fontStyle=Wn(G,nr,J.fontStyle),this.fontVariant=Wn(G,On,J.fontVariant),this.fontWeight=Wn(G,Fs,J.fontWeight),this.letterSpacing=Wn(G,os,J.letterSpacing),this.lineBreak=Wn(G,ps,J.lineBreak),this.lineHeight=Wn(G,Qi,J.lineHeight),this.listStyleImage=Wn(G,wi,J.listStyleImage),this.listStylePosition=Wn(G,vi,J.listStylePosition),this.listStyleType=Wn(G,vo,J.listStyleType),this.marginTop=Wn(G,Ki,J.marginTop),this.marginRight=Wn(G,ss,J.marginRight),this.marginBottom=Wn(G,ls,J.marginBottom),this.marginLeft=Wn(G,qo,J.marginLeft),this.opacity=Wn(G,Fo,J.opacity);var Ce=Wn(G,fo,J.overflow);this.overflowX=Ce[0],this.overflowY=Ce[Ce.length>1?1:0],this.overflowWrap=Wn(G,zo,J.overflowWrap),this.paddingTop=Wn(G,es,J.paddingTop),this.paddingRight=Wn(G,Go,J.paddingRight),this.paddingBottom=Wn(G,Oa,J.paddingBottom),this.paddingLeft=Wn(G,la,J.paddingLeft),this.paintOrder=Wn(G,Yr,J.paintOrder),this.position=Wn(G,Zi,J.position),this.textAlign=Wn(G,xi,J.textAlign),this.textDecorationColor=Wn(G,ns,(Y=J.textDecorationColor)!==null&&Y!==void 0?Y:J.color),this.textDecorationLine=Wn(G,ms,(de=J.textDecorationLine)!==null&&de!==void 0?de:J.textDecoration),this.textShadow=Wn(G,Oo,J.textShadow),this.textTransform=Wn(G,co,J.textTransform),this.transform=Wn(G,No,J.transform),this.transformOrigin=Wn(G,lo,J.transformOrigin),this.visibility=Wn(G,Ha,J.visibility),this.webkitTextStrokeColor=Wn(G,Ri,J.webkitTextStrokeColor),this.webkitTextStrokeWidth=Wn(G,ir,J.webkitTextStrokeWidth),this.wordBreak=Wn(G,Ti,J.wordBreak),this.zIndex=Wn(G,Ro,J.zIndex)}return X.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},X.prototype.isTransparent=function(){return rn(this.backgroundColor)},X.prototype.isTransformed=function(){return this.transform!==null},X.prototype.isPositioned=function(){return this.position!==0},X.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},X.prototype.isFloating=function(){return this.float!==0},X.prototype.isInlineLevel=function(){return Wt(this.display,4)||Wt(this.display,33554432)||Wt(this.display,268435456)||Wt(this.display,536870912)||Wt(this.display,67108864)||Wt(this.display,134217728)},X}(),ao=function(){function X(G,J){this.content=Wn(G,on,J.content),this.quotes=Wn(G,pr,J.quotes)}return X}(),zi=function(){function X(G,J){this.counterIncrement=Wn(G,Tn,J.counterIncrement),this.counterReset=Wn(G,Hn,J.counterReset)}return X}(),Wn=function(X,G,J){var Y=new Ps,de=J!==null&&typeof J!="undefined"?J.toString():G.initialValue;Y.write(de);var Ce=new gl(Y.read());switch(G.type){case 2:var Fe=Ce.parseComponentValue();return G.parse(X,gi(Fe)?Fe.value:G.initialValue);case 0:return G.parse(X,Ce.parseComponentValue());case 1:return G.parse(X,Ce.parseComponentValues());case 4:return Ce.parseComponentValue();case 3:switch(G.format){case"angle":return Bt.parse(X,Ce.parseComponentValue());case"color":return _n.parse(X,Ce.parseComponentValue());case"image":return Yn.parse(X,Ce.parseComponentValue());case"length":var at=Ce.parseComponentValue();return nt(at)?at:Be;case"length-percentage":var rt=Ce.parseComponentValue();return Te(rt)?rt:Be;case"time":return Oi.parse(X,Ce.parseComponentValue())}break}},Qa="data-html2canvas-debug",Gi=function(X){var G=X.getAttribute(Qa);switch(G){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},li=function(X,G){var J=Gi(X);return J===1||G===J},io=function(){function X(G,J){if(this.context=G,this.textNodes=[],this.elements=[],this.flags=0,li(J,3))debugger;this.styles=new si(G,window.getComputedStyle(J,null)),ru(J)&&(this.styles.animationDuration.some(function(Y){return Y>0})&&(J.style.animationDuration="0s"),this.styles.transform!==null&&(J.style.transform="none")),this.bounds=x(this.context,J),li(J,4)&&(this.flags|=16)}return X}(),Yo="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",ko="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",jo=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),gs=0;gs<ko.length;gs++)jo[ko.charCodeAt(gs)]=gs;for(var ki=function(X){var G=X.length*.75,J=X.length,Y,de=0,Ce,Fe,at,rt;X[X.length-1]==="="&&(G--,X[X.length-2]==="="&&G--);var It=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(G):new Array(G),Ft=Array.isArray(It)?It:new Uint8Array(It);for(Y=0;Y<J;Y+=4)Ce=jo[X.charCodeAt(Y)],Fe=jo[X.charCodeAt(Y+1)],at=jo[X.charCodeAt(Y+2)],rt=jo[X.charCodeAt(Y+3)],Ft[de++]=Ce<<2|Fe>>4,Ft[de++]=(Fe&15)<<4|at>>2,Ft[de++]=(at&3)<<6|rt&63;return It},sl=function(X){for(var G=X.length,J=[],Y=0;Y<G;Y+=2)J.push(X[Y+1]<<8|X[Y]);return J},vl=function(X){for(var G=X.length,J=[],Y=0;Y<G;Y+=4)J.push(X[Y+3]<<24|X[Y+2]<<16|X[Y+1]<<8|X[Y]);return J},Os=5,ks=6+5,us=2,ll=ks-Os,ul=65536>>Os,Sl=1<<Os,Zs=Sl-1,rs=1024>>Os,cl=ul+rs,Qs=cl,$s=2048>>6,qs=Qs+$s,yl=65536>>ks,Rs=1<<ll,Ol=Rs-1,vs=function(X,G,J){return X.slice?X.slice(G,J):new Uint16Array(Array.prototype.slice.call(X,G,J))},Bs=function(X,G,J){return X.slice?X.slice(G,J):new Uint32Array(Array.prototype.slice.call(X,G,J))},Ks=function(X,G){var J=ki(X),Y=Array.isArray(J)?vl(J):new Uint32Array(J),de=Array.isArray(J)?sl(J):new Uint16Array(J),Ce=24,Fe=vs(de,Ce/2,Y[4]/2),at=Y[5]===2?vs(de,(Ce+Y[4])/2):Bs(Y,Math.ceil((Ce+Y[4])/4));return new Is(Y[0],Y[1],Y[2],Y[3],Fe,at)},Is=function(){function X(G,J,Y,de,Ce,Fe){this.initialValue=G,this.errorValue=J,this.highStart=Y,this.highValueIndex=de,this.index=Ce,this.data=Fe}return X.prototype.get=function(G){var J;if(G>=0){if(G<55296||G>56319&&G<=65535)return J=this.index[G>>Os],J=(J<<us)+(G&Zs),this.data[J];if(G<=65535)return J=this.index[ul+(G-55296>>Os)],J=(J<<us)+(G&Zs),this.data[J];if(G<this.highStart)return J=qs-yl+(G>>ks),J=this.index[J],J+=G>>Os&Ol,J=this.index[J],J=(J<<us)+(G&Zs),this.data[J];if(G<=1114111)return this.data[this.highValueIndex]}return this.errorValue},X}(),ea="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Fr=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Ga=0;Ga<ea.length;Ga++)Fr[ea.charCodeAt(Ga)]=Ga;var Wr=1,ma=2,ga=3,Na=4,La=5,Vi=7,$a=8,ys=9,Rn=10,xr=11,In=12,Gr=13,Jn=14,ra=15,Nr=function(X){for(var G=[],J=0,Y=X.length;J<Y;){var de=X.charCodeAt(J++);if(de>=55296&&de<=56319&&J<Y){var Ce=X.charCodeAt(J++);(Ce&64512)===56320?G.push(((de&1023)<<10)+(Ce&1023)+65536):(G.push(de),J--)}else G.push(de)}return G},fa=function(){for(var X=[],G=0;G<arguments.length;G++)X[G]=arguments[G];if(String.fromCodePoint)return String.fromCodePoint.apply(String,X);var J=X.length;if(!J)return"";for(var Y=[],de=-1,Ce="";++de<J;){var Fe=X[de];Fe<=65535?Y.push(Fe):(Fe-=65536,Y.push((Fe>>10)+55296,Fe%1024+56320)),(de+1===J||Y.length>16384)&&(Ce+=String.fromCharCode.apply(String,Y),Y.length=0)}return Ce},yi=Ks(Yo),Ya="\xD7",Bo="\xF7",Ho=function(X){return yi.get(X)},el=function(X,G,J){var Y=J-2,de=G[Y],Ce=G[J-1],Fe=G[J];if(Ce===ma&&Fe===ga)return Ya;if(Ce===ma||Ce===ga||Ce===Na)return Bo;if(Fe===ma||Fe===ga||Fe===Na)return Bo;if(Ce===$a&&[$a,ys,xr,In].indexOf(Fe)!==-1)return Ya;if((Ce===xr||Ce===ys)&&(Fe===ys||Fe===Rn))return Ya;if((Ce===In||Ce===Rn)&&Fe===Rn)return Ya;if(Fe===Gr||Fe===La)return Ya;if(Fe===Vi)return Ya;if(Ce===Wr)return Ya;if(Ce===Gr&&Fe===Jn){for(;de===La;)de=G[--Y];if(de===Jn)return Ya}if(Ce===ra&&Fe===ra){for(var at=0;de===ra;)at++,de=G[--Y];if(at%2===0)return Ya}return Bo},Io=function(X){var G=Nr(X),J=G.length,Y=0,de=0,Ce=G.map(Ho);return{next:function(){if(Y>=J)return{done:!0,value:null};for(var Fe=Ya;Y<J&&(Fe=el(G,Ce,++Y))===Ya;);if(Fe!==Ya||Y===J){var at=fa.apply(null,G.slice(de,Y));return de=Y,{value:at,done:!1}}return{done:!0,value:null}}}},Do=function(X){for(var G=Io(X),J=[],Y;!(Y=G.next()).done;)Y.value&&J.push(Y.value.slice());return J},cs=function(X){var G=123;if(X.createRange){var J=X.createRange();if(J.getBoundingClientRect){var Y=X.createElement("boundtest");Y.style.height=G+"px",Y.style.display="block",X.body.appendChild(Y),J.selectNode(Y);var de=J.getBoundingClientRect(),Ce=Math.round(de.height);if(X.body.removeChild(Y),Ce===G)return!0}}return!1},dl=function(X){var G=X.createElement("boundtest");G.style.width="50px",G.style.display="block",G.style.fontSize="12px",G.style.letterSpacing="0px",G.style.wordSpacing="0px",X.body.appendChild(G);var J=X.createRange();G.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";var Y=G.firstChild,de=p(Y.data).map(function(rt){return a(rt)}),Ce=0,Fe={},at=de.every(function(rt,It){J.setStart(Y,Ce),J.setEnd(Y,Ce+rt.length);var Ft=J.getBoundingClientRect();Ce+=rt.length;var nn=Ft.x>Fe.x||Ft.y>Fe.y;return Fe=Ft,It===0?!0:nn});return X.body.removeChild(G),at},Ds=function(){return typeof new Image().crossOrigin!="undefined"},Rl=function(){return typeof new XMLHttpRequest().responseType=="string"},Cu=function(X){var G=new Image,J=X.createElement("canvas"),Y=J.getContext("2d");if(!Y)return!1;G.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{Y.drawImage(G,0,0),J.toDataURL()}catch(de){return!1}return!0},bs=function(X){return X[0]===0&&X[1]===255&&X[2]===0&&X[3]===255},wu=function(X){var G=X.createElement("canvas"),J=100;G.width=J,G.height=J;var Y=G.getContext("2d");if(!Y)return Promise.reject(!1);Y.fillStyle="rgb(0, 255, 0)",Y.fillRect(0,0,J,J);var de=new Image,Ce=G.toDataURL();de.src=Ce;var Fe=Zl(J,J,0,0,de);return Y.fillStyle="red",Y.fillRect(0,0,J,J),cu(Fe).then(function(at){Y.drawImage(at,0,0);var rt=Y.getImageData(0,0,J,J).data;Y.fillStyle="red",Y.fillRect(0,0,J,J);var It=X.createElement("div");return It.style.backgroundImage="url("+Ce+")",It.style.height=J+"px",bs(rt)?cu(Zl(J,J,0,0,It)):Promise.reject(!1)}).then(function(at){return Y.drawImage(at,0,0),bs(Y.getImageData(0,0,J,J).data)}).catch(function(){return!1})},Zl=function(X,G,J,Y,de){var Ce="http://www.w3.org/2000/svg",Fe=document.createElementNS(Ce,"svg"),at=document.createElementNS(Ce,"foreignObject");return Fe.setAttributeNS(null,"width",X.toString()),Fe.setAttributeNS(null,"height",G.toString()),at.setAttributeNS(null,"width","100%"),at.setAttributeNS(null,"height","100%"),at.setAttributeNS(null,"x",J.toString()),at.setAttributeNS(null,"y",Y.toString()),at.setAttributeNS(null,"externalResourcesRequired","true"),Fe.appendChild(at),at.appendChild(de),Fe},cu=function(X){return new Promise(function(G,J){var Y=new Image;Y.onload=function(){return G(Y)},Y.onerror=J,Y.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(X))})},bo={get SUPPORT_RANGE_BOUNDS(){var X=cs(document);return Object.defineProperty(bo,"SUPPORT_RANGE_BOUNDS",{value:X}),X},get SUPPORT_WORD_BREAKING(){var X=bo.SUPPORT_RANGE_BOUNDS&&dl(document);return Object.defineProperty(bo,"SUPPORT_WORD_BREAKING",{value:X}),X},get SUPPORT_SVG_DRAWING(){var X=Cu(document);return Object.defineProperty(bo,"SUPPORT_SVG_DRAWING",{value:X}),X},get SUPPORT_FOREIGNOBJECT_DRAWING(){var X=typeof Array.from=="function"&&typeof window.fetch=="function"?wu(document):Promise.resolve(!1);return Object.defineProperty(bo,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:X}),X},get SUPPORT_CORS_IMAGES(){var X=Ds();return Object.defineProperty(bo,"SUPPORT_CORS_IMAGES",{value:X}),X},get SUPPORT_RESPONSE_TYPE(){var X=Rl();return Object.defineProperty(bo,"SUPPORT_RESPONSE_TYPE",{value:X}),X},get SUPPORT_CORS_XHR(){var X="withCredentials"in new XMLHttpRequest;return Object.defineProperty(bo,"SUPPORT_CORS_XHR",{value:X}),X},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var X=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty(bo,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:X}),X}},Ws=function(){function X(G,J){this.text=G,this.bounds=J}return X}(),du=function(X,G,J,Y){var de=xu(G,J),Ce=[],Fe=0;return de.forEach(function(at){if(J.textDecorationLine.length||at.trim().length>0)if(bo.SUPPORT_RANGE_BOUNDS){var rt=$l(Y,Fe,at.length).getClientRects();if(rt.length>1){var It=Au(at),Ft=0;It.forEach(function(un){Ce.push(new Ws(un,M.fromDOMRectList(X,$l(Y,Ft+Fe,un.length).getClientRects()))),Ft+=un.length})}else Ce.push(new Ws(at,M.fromDOMRectList(X,rt)))}else{var nn=Y.splitText(at.length);Ce.push(new Ws(at,hu(X,Y))),Y=nn}else bo.SUPPORT_RANGE_BOUNDS||(Y=Y.splitText(at.length));Fe+=at.length}),Ce},hu=function(X,G){var J=G.ownerDocument;if(J){var Y=J.createElement("html2canvaswrapper");Y.appendChild(G.cloneNode(!0));var de=G.parentNode;if(de){de.replaceChild(Y,G);var Ce=x(X,Y);return Y.firstChild&&de.replaceChild(Y.firstChild,Y),Ce}}return M.EMPTY},$l=function(X,G,J){var Y=X.ownerDocument;if(!Y)throw new Error("Node has no owner document");var de=Y.createRange();return de.setStart(X,G),de.setEnd(X,G+J),de},Au=function(X){if(bo.SUPPORT_NATIVE_TEXT_SEGMENTATION){var G=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(G.segment(X)).map(function(J){return J.segment})}return Do(X)},Fl=function(X,G){if(bo.SUPPORT_NATIVE_TEXT_SEGMENTATION){var J=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(J.segment(X)).map(function(Y){return Y.segment})}return Tu(X,G)},xu=function(X,G){return G.letterSpacing!==0?Au(X):Fl(X,G)},Xu=[32,160,4961,65792,65793,4153,4241],Tu=function(X,G){for(var J=Un(X,{lineBreak:G.lineBreak,wordBreak:G.overflowWrap==="break-word"?"break-word":G.wordBreak}),Y=[],de,Ce=function(){if(de.value){var Fe=de.value.slice(),at=p(Fe),rt="";at.forEach(function(It){Xu.indexOf(It)===-1?rt+=a(It):(rt.length&&Y.push(rt),Y.push(a(It)),rt="")}),rt.length&&Y.push(rt)}};!(de=J.next()).done;)Ce();return Y},ql=function(){function X(G,J,Y){this.text=Yu(J.data,Y.textTransform),this.textBounds=du(G,this.text,Y,J)}return X}(),Yu=function(X,G){switch(G){case 1:return X.toLowerCase();case 3:return X.replace(Ju,kl);case 2:return X.toUpperCase();default:return X}},Ju=/(^|\s|:|-|\(|\))([a-z])/g,kl=function(X,G,J){return X.length>0?G+J.toUpperCase():X},fu=function(X){K(G,X);function G(J,Y){var de=X.call(this,J,Y)||this;return de.src=Y.currentSrc||Y.src,de.intrinsicWidth=Y.naturalWidth,de.intrinsicHeight=Y.naturalHeight,de.context.cache.addImage(de.src),de}return G}(io),pu=function(X){K(G,X);function G(J,Y){var de=X.call(this,J,Y)||this;return de.canvas=Y,de.intrinsicWidth=Y.width,de.intrinsicHeight=Y.height,de}return G}(io),Su=function(X){K(G,X);function G(J,Y){var de=X.call(this,J,Y)||this,Ce=new XMLSerializer,Fe=x(J,Y);return Y.setAttribute("width",Fe.width+"px"),Y.setAttribute("height",Fe.height+"px"),de.svg="data:image/svg+xml,"+encodeURIComponent(Ce.serializeToString(Y)),de.intrinsicWidth=Y.width.baseVal.value,de.intrinsicHeight=Y.height.baseVal.value,de.context.cache.addImage(de.svg),de}return G}(io),eu=function(X){K(G,X);function G(J,Y){var de=X.call(this,J,Y)||this;return de.value=Y.value,de}return G}(io),tu=function(X){K(G,X);function G(J,Y){var de=X.call(this,J,Y)||this;return de.start=Y.start,de.reversed=typeof Y.reversed=="boolean"&&Y.reversed===!0,de}return G}(io),Zu=[{type:15,flags:0,unit:"px",number:3}],Ou=[{type:16,flags:0,number:50}],Ru=function(X){return X.width>X.height?new M(X.left+(X.width-X.height)/2,X.top,X.height,X.height):X.width<X.height?new M(X.left,X.top+(X.height-X.width)/2,X.width,X.width):X},$u=function(X){var G=X.type===jl?new Array(X.value.length+1).join("\u2022"):X.value;return G.length===0?X.placeholder||"":G},Bl="checkbox",hl="radio",jl="password",Bu=707406591,nu=function(X){K(G,X);function G(J,Y){var de=X.call(this,J,Y)||this;de.type=Y.type.toLowerCase(),de.checked=Y.checked,de.value=$u(Y),(de.type===Bl||de.type===hl)&&(de.styles.backgroundColor=3739148031,de.styles.borderTopColor=de.styles.borderRightColor=de.styles.borderBottomColor=de.styles.borderLeftColor=2779096575,de.styles.borderTopWidth=de.styles.borderRightWidth=de.styles.borderBottomWidth=de.styles.borderLeftWidth=1,de.styles.borderTopStyle=de.styles.borderRightStyle=de.styles.borderBottomStyle=de.styles.borderLeftStyle=1,de.styles.backgroundClip=[0],de.styles.backgroundOrigin=[0],de.bounds=Ru(de.bounds));switch(de.type){case Bl:de.styles.borderTopRightRadius=de.styles.borderTopLeftRadius=de.styles.borderBottomRightRadius=de.styles.borderBottomLeftRadius=Zu;break;case hl:de.styles.borderTopRightRadius=de.styles.borderTopLeftRadius=de.styles.borderBottomRightRadius=de.styles.borderBottomLeftRadius=Ou;break}return de}return G}(io),Iu=function(X){K(G,X);function G(J,Y){var de=X.call(this,J,Y)||this,Ce=Y.options[Y.selectedIndex||0];return de.value=Ce&&Ce.text||"",de}return G}(io),Du=function(X){K(G,X);function G(J,Y){var de=X.call(this,J,Y)||this;return de.value=Y.value,de}return G}(io),Lu=function(X){K(G,X);function G(J,Y){var de=X.call(this,J,Y)||this;de.src=Y.src,de.width=parseInt(Y.width,10)||0,de.height=parseInt(Y.height,10)||0,de.backgroundColor=de.styles.backgroundColor;try{if(Y.contentWindow&&Y.contentWindow.document&&Y.contentWindow.document.documentElement){de.tree=Pu(J,Y.contentWindow.document.documentElement);var Ce=Y.contentWindow.document.documentElement?ln(J,getComputedStyle(Y.contentWindow.document.documentElement).backgroundColor):xn.TRANSPARENT,Fe=Y.contentWindow.document.body?ln(J,getComputedStyle(Y.contentWindow.document.body).backgroundColor):xn.TRANSPARENT;de.backgroundColor=rn(Ce)?rn(Fe)?de.styles.backgroundColor:Fe:Ce}}catch(at){}return de}return G}(io),qu=["OL","UL","MENU"],Hl=function(X,G,J,Y){for(var de=G.firstChild,Ce=void 0;de;de=Ce)if(Ce=de.nextSibling,gu(de)&&de.data.trim().length>0)J.textNodes.push(new ql(X,de,J.styles));else if(Il(de))if(yu(de)&&de.assignedNodes)de.assignedNodes().forEach(function(at){return Hl(X,at,J,Y)});else{var Fe=Mu(X,de);Fe.styles.isVisible()&&(Uu(de,Fe,Y)?Fe.flags|=4:mu(Fe.styles)&&(Fe.flags|=2),qu.indexOf(de.tagName)!==-1&&(Fe.flags|=8),J.elements.push(Fe),de.slot,de.shadowRoot?Hl(X,de.shadowRoot,Fe,Y):!Kl(de)&&!Fu(de)&&!Wl(de)&&Hl(X,de,Fe,Y))}},Mu=function(X,G){return bl(G)?new fu(X,G):ku(G)?new pu(X,G):Fu(G)?new Su(X,G):Nu(G)?new eu(X,G):au(G)?new tu(X,G):ec(G)?new nu(X,G):Wl(G)?new Iu(X,G):Kl(G)?new Du(X,G):Ls(G)?new Lu(X,G):new io(X,G)},Pu=function(X,G){var J=Mu(X,G);return J.flags|=4,Hl(X,G,J,J),J},Uu=function(X,G,J){return G.styles.isPositionedWithZIndex()||G.styles.opacity<1||G.styles.isTransformed()||Xi(X)&&J.styles.isTransparent()},mu=function(X){return X.isPositioned()||X.isFloating()},gu=function(X){return X.nodeType===Node.TEXT_NODE},Il=function(X){return X.nodeType===Node.ELEMENT_NODE},ru=function(X){return Il(X)&&typeof X.style!="undefined"&&!tl(X)},tl=function(X){return typeof X.className=="object"},Nu=function(X){return X.tagName==="LI"},au=function(X){return X.tagName==="OL"},ec=function(X){return X.tagName==="INPUT"},tc=function(X){return X.tagName==="HTML"},Fu=function(X){return X.tagName==="svg"},Xi=function(X){return X.tagName==="BODY"},ku=function(X){return X.tagName==="CANVAS"},iu=function(X){return X.tagName==="VIDEO"},bl=function(X){return X.tagName==="IMG"},Ls=function(X){return X.tagName==="IFRAME"},Ql=function(X){return X.tagName==="STYLE"},vu=function(X){return X.tagName==="SCRIPT"},Kl=function(X){return X.tagName==="TEXTAREA"},Wl=function(X){return X.tagName==="SELECT"},yu=function(X){return X.tagName==="SLOT"},bu=function(X){return X.tagName.indexOf("-")>0},ju=function(){function X(){this.counters={}}return X.prototype.getCounterValue=function(G){var J=this.counters[G];return J&&J.length?J[J.length-1]:1},X.prototype.getCounterValues=function(G){var J=this.counters[G];return J||[]},X.prototype.pop=function(G){var J=this;G.forEach(function(Y){return J.counters[Y].pop()})},X.prototype.parse=function(G){var J=this,Y=G.counterIncrement,de=G.counterReset,Ce=!0;Y!==null&&Y.forEach(function(at){var rt=J.counters[at.counter];rt&&at.increment!==0&&(Ce=!1,rt.length||rt.push(1),rt[Math.max(0,rt.length-1)]+=at.increment)});var Fe=[];return Ce&&de.forEach(function(at){var rt=J.counters[at.counter];Fe.push(at.counter),rt||(rt=J.counters[at.counter]=[]),rt.push(at.reset)}),Fe},X}(),Hu={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},ou={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u0554","\u0553","\u0552","\u0551","\u0550","\u054F","\u054E","\u054D","\u054C","\u054B","\u054A","\u0549","\u0548","\u0547","\u0546","\u0545","\u0544","\u0543","\u0542","\u0541","\u0540","\u053F","\u053E","\u053D","\u053C","\u053B","\u053A","\u0539","\u0538","\u0537","\u0536","\u0535","\u0534","\u0533","\u0532","\u0531"]},Qu={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["\u05D9\u05F3","\u05D8\u05F3","\u05D7\u05F3","\u05D6\u05F3","\u05D5\u05F3","\u05D4\u05F3","\u05D3\u05F3","\u05D2\u05F3","\u05D1\u05F3","\u05D0\u05F3","\u05EA","\u05E9","\u05E8","\u05E7","\u05E6","\u05E4","\u05E2","\u05E1","\u05E0","\u05DE","\u05DC","\u05DB","\u05D9\u05D8","\u05D9\u05D7","\u05D9\u05D6","\u05D8\u05D6","\u05D8\u05D5","\u05D9","\u05D8","\u05D7","\u05D6","\u05D5","\u05D4","\u05D3","\u05D2","\u05D1","\u05D0"]},Bi={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u10F5","\u10F0","\u10EF","\u10F4","\u10EE","\u10ED","\u10EC","\u10EB","\u10EA","\u10E9","\u10E8","\u10E7","\u10E6","\u10E5","\u10E4","\u10F3","\u10E2","\u10E1","\u10E0","\u10DF","\u10DE","\u10DD","\u10F2","\u10DC","\u10DB","\u10DA","\u10D9","\u10D8","\u10D7","\u10F1","\u10D6","\u10D5","\u10D4","\u10D3","\u10D2","\u10D1","\u10D0"]},El=function(X,G,J,Y,de,Ce){return X<G||X>J?L(X,de,Ce.length>0):Y.integers.reduce(function(Fe,at,rt){for(;X>=at;)X-=at,Fe+=Y.values[rt];return Fe},"")+Ce},Ku=function(X,G,J,Y){var de="";do J||X--,de=Y(X)+de,X/=G;while(X*G>=G);return de},$i=function(X,G,J,Y,de){var Ce=J-G+1;return(X<0?"-":"")+(Ku(Math.abs(X),Ce,Y,function(Fe){return a(Math.floor(Fe%Ce)+G)})+de)},_l=function(X,G,J){J===void 0&&(J=". ");var Y=G.length;return Ku(Math.abs(X),Y,!1,function(de){return G[Math.floor(de%Y)]})+J},nl=1<<0,Al=1<<1,Mi=1<<2,zl=1<<3,rl=function(X,G,J,Y,de,Ce){if(X<-9999||X>9999)return L(X,4,de.length>0);var Fe=Math.abs(X),at=de;if(Fe===0)return G[0]+at;for(var rt=0;Fe>0&&rt<=4;rt++){var It=Fe%10;It===0&&Wt(Ce,nl)&&at!==""?at=G[It]+at:It>1||It===1&&rt===0||It===1&&rt===1&&Wt(Ce,Al)||It===1&&rt===1&&Wt(Ce,Mi)&&X>100||It===1&&rt>1&&Wt(Ce,zl)?at=G[It]+(rt>0?J[rt-1]:"")+at:It===1&&rt>0&&(at=J[rt-1]+at),Fe=Math.floor(Fe/10)}return(X<0?Y:"")+at},Wu="\u5341\u767E\u5343\u842C",Gl="\u62FE\u4F70\u4EDF\u842C",e="\u30DE\u30A4\u30CA\u30B9",r="\uB9C8\uC774\uB108\uC2A4",L=function(X,G,J){var Y=J?". ":"",de=J?"\u3001":"",Ce=J?", ":"",Fe=J?" ":"";switch(G){case 0:return"\u2022"+Fe;case 1:return"\u25E6"+Fe;case 2:return"\u25FE"+Fe;case 5:var at=$i(X,48,57,!0,Y);return at.length<4?"0"+at:at;case 4:return _l(X,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",de);case 6:return El(X,1,3999,Hu,3,Y).toLowerCase();case 7:return El(X,1,3999,Hu,3,Y);case 8:return $i(X,945,969,!1,Y);case 9:return $i(X,97,122,!1,Y);case 10:return $i(X,65,90,!1,Y);case 11:return $i(X,1632,1641,!0,Y);case 12:case 49:return El(X,1,9999,ou,3,Y);case 35:return El(X,1,9999,ou,3,Y).toLowerCase();case 13:return $i(X,2534,2543,!0,Y);case 14:case 30:return $i(X,6112,6121,!0,Y);case 15:return _l(X,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",de);case 16:return _l(X,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",de);case 17:case 48:return rl(X,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Wu,"\u8CA0",de,Al|Mi|zl);case 47:return rl(X,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",Gl,"\u8CA0",de,nl|Al|Mi|zl);case 42:return rl(X,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Wu,"\u8D1F",de,Al|Mi|zl);case 41:return rl(X,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",Gl,"\u8D1F",de,nl|Al|Mi|zl);case 26:return rl(X,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",e,de,0);case 25:return rl(X,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",e,de,nl|Al|Mi);case 31:return rl(X,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",r,Ce,nl|Al|Mi);case 33:return rl(X,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",r,Ce,0);case 32:return rl(X,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",r,Ce,nl|Al|Mi);case 18:return $i(X,2406,2415,!0,Y);case 20:return El(X,1,19999,Bi,3,Y);case 21:return $i(X,2790,2799,!0,Y);case 22:return $i(X,2662,2671,!0,Y);case 22:return El(X,1,10999,Qu,3,Y);case 23:return _l(X,"\u3042\u3044\u3046\u3048\u304A\u304B\u304D\u304F\u3051\u3053\u3055\u3057\u3059\u305B\u305D\u305F\u3061\u3064\u3066\u3068\u306A\u306B\u306C\u306D\u306E\u306F\u3072\u3075\u3078\u307B\u307E\u307F\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308A\u308B\u308C\u308D\u308F\u3090\u3091\u3092\u3093");case 24:return _l(X,"\u3044\u308D\u306F\u306B\u307B\u3078\u3068\u3061\u308A\u306C\u308B\u3092\u308F\u304B\u3088\u305F\u308C\u305D\u3064\u306D\u306A\u3089\u3080\u3046\u3090\u306E\u304A\u304F\u3084\u307E\u3051\u3075\u3053\u3048\u3066\u3042\u3055\u304D\u3086\u3081\u307F\u3057\u3091\u3072\u3082\u305B\u3059");case 27:return $i(X,3302,3311,!0,Y);case 28:return _l(X,"\u30A2\u30A4\u30A6\u30A8\u30AA\u30AB\u30AD\u30AF\u30B1\u30B3\u30B5\u30B7\u30B9\u30BB\u30BD\u30BF\u30C1\u30C4\u30C6\u30C8\u30CA\u30CB\u30CC\u30CD\u30CE\u30CF\u30D2\u30D5\u30D8\u30DB\u30DE\u30DF\u30E0\u30E1\u30E2\u30E4\u30E6\u30E8\u30E9\u30EA\u30EB\u30EC\u30ED\u30EF\u30F0\u30F1\u30F2\u30F3",de);case 29:return _l(X,"\u30A4\u30ED\u30CF\u30CB\u30DB\u30D8\u30C8\u30C1\u30EA\u30CC\u30EB\u30F2\u30EF\u30AB\u30E8\u30BF\u30EC\u30BD\u30C4\u30CD\u30CA\u30E9\u30E0\u30A6\u30F0\u30CE\u30AA\u30AF\u30E4\u30DE\u30B1\u30D5\u30B3\u30A8\u30C6\u30A2\u30B5\u30AD\u30E6\u30E1\u30DF\u30B7\u30F1\u30D2\u30E2\u30BB\u30B9",de);case 34:return $i(X,3792,3801,!0,Y);case 37:return $i(X,6160,6169,!0,Y);case 38:return $i(X,4160,4169,!0,Y);case 39:return $i(X,2918,2927,!0,Y);case 40:return $i(X,1776,1785,!0,Y);case 43:return $i(X,3046,3055,!0,Y);case 44:return $i(X,3174,3183,!0,Y);case 45:return $i(X,3664,3673,!0,Y);case 46:return $i(X,3872,3881,!0,Y);case 3:default:return $i(X,48,57,!0,Y)}},D="data-html2canvas-ignore",j=function(){function X(G,J,Y){if(this.context=G,this.options=Y,this.scrolledElements=[],this.referenceElement=J,this.counters=new ju,this.quoteDepth=0,!J.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(J.ownerDocument.documentElement,!1)}return X.prototype.toIFrame=function(G,J){var Y=this,de=ue(G,J);if(!de.contentWindow)return Promise.reject("Unable to find iframe window");var Ce=G.defaultView.pageXOffset,Fe=G.defaultView.pageYOffset,at=de.contentWindow,rt=at.document,It=De(de).then(function(){return k(Y,void 0,void 0,function(){var Ft,nn;return _(this,function(un){switch(un.label){case 0:return this.scrolledElements.forEach(hn),at&&(at.scrollTo(J.left,J.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(at.scrollY!==J.top||at.scrollX!==J.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(at.scrollX-J.left,at.scrollY-J.top,0,0))),Ft=this.options.onclone,nn=this.clonedReferenceElement,typeof nn=="undefined"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:rt.fonts&&rt.fonts.ready?[4,rt.fonts.ready]:[3,2];case 1:un.sent(),un.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Ee(rt)]:[3,4];case 3:un.sent(),un.label=4;case 4:return typeof Ft=="function"?[2,Promise.resolve().then(function(){return Ft(rt,nn)}).then(function(){return de})]:[2,de]}})})});return rt.open(),rt.write(Nt(document.doctype)+"<html></html>"),Pt(this.referenceElement.ownerDocument,Ce,Fe),rt.replaceChild(rt.adoptNode(this.documentElement),rt.documentElement),rt.close(),It},X.prototype.createElementClone=function(G){if(li(G,2))debugger;if(ku(G))return this.createCanvasClone(G);if(iu(G))return this.createVideoClone(G);if(Ql(G))return this.createStyleClone(G);var J=G.cloneNode(!1);return bl(J)&&(bl(G)&&G.currentSrc&&G.currentSrc!==G.src&&(J.src=G.currentSrc,J.srcset=""),J.loading==="lazy"&&(J.loading="eager")),bu(J)?this.createCustomElementClone(J):J},X.prototype.createCustomElementClone=function(G){var J=document.createElement("html2canvascustomelement");return At(G.style,J),J},X.prototype.createStyleClone=function(G){try{var J=G.sheet;if(J&&J.cssRules){var Y=[].slice.call(J.cssRules,0).reduce(function(Ce,Fe){return Fe&&typeof Fe.cssText=="string"?Ce+Fe.cssText:Ce},""),de=G.cloneNode(!1);return de.textContent=Y,de}}catch(Ce){if(this.context.logger.error("Unable to access cssRules property",Ce),Ce.name!=="SecurityError")throw Ce}return G.cloneNode(!1)},X.prototype.createCanvasClone=function(G){var J;if(this.options.inlineImages&&G.ownerDocument){var Y=G.ownerDocument.createElement("img");try{return Y.src=G.toDataURL(),Y}catch(It){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",G)}}var de=G.cloneNode(!1);try{de.width=G.width,de.height=G.height;var Ce=G.getContext("2d"),Fe=de.getContext("2d");if(Fe)if(!this.options.allowTaint&&Ce)Fe.putImageData(Ce.getImageData(0,0,G.width,G.height),0,0);else{var at=(J=G.getContext("webgl2"))!==null&&J!==void 0?J:G.getContext("webgl");if(at){var rt=at.getContextAttributes();(rt==null?void 0:rt.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",G)}Fe.drawImage(G,0,0)}return de}catch(It){this.context.logger.info("Unable to clone canvas as it is tainted",G)}return de},X.prototype.createVideoClone=function(G){var J=G.ownerDocument.createElement("canvas");J.width=G.offsetWidth,J.height=G.offsetHeight;var Y=J.getContext("2d");try{return Y&&(Y.drawImage(G,0,0,J.width,J.height),this.options.allowTaint||Y.getImageData(0,0,J.width,J.height)),J}catch(Ce){this.context.logger.info("Unable to clone video as it is tainted",G)}var de=G.ownerDocument.createElement("canvas");return de.width=G.offsetWidth,de.height=G.offsetHeight,de},X.prototype.appendChildNode=function(G,J,Y){(!Il(J)||!vu(J)&&!J.hasAttribute(D)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(J)))&&((!this.options.copyStyles||!Il(J)||!Ql(J))&&G.appendChild(this.cloneNode(J,Y)))},X.prototype.cloneChildNodes=function(G,J,Y){for(var de=this,Ce=G.shadowRoot?G.shadowRoot.firstChild:G.firstChild;Ce;Ce=Ce.nextSibling)if(Il(Ce)&&yu(Ce)&&typeof Ce.assignedNodes=="function"){var Fe=Ce.assignedNodes();Fe.length&&Fe.forEach(function(at){return de.appendChildNode(J,at,Y)})}else this.appendChildNode(J,Ce,Y)},X.prototype.cloneNode=function(G,J){if(gu(G))return document.createTextNode(G.data);if(!G.ownerDocument)return G.cloneNode(!1);var Y=G.ownerDocument.defaultView;if(Y&&Il(G)&&(ru(G)||tl(G))){var de=this.createElementClone(G);de.style.transitionProperty="none";var Ce=Y.getComputedStyle(G),Fe=Y.getComputedStyle(G,":before"),at=Y.getComputedStyle(G,":after");this.referenceElement===G&&ru(de)&&(this.clonedReferenceElement=de),Xi(de)&&br(de);var rt=this.counters.parse(new zi(this.context,Ce)),It=this.resolvePseudoContent(G,de,Fe,q.BEFORE);bu(G)&&(J=!0),iu(G)||this.cloneChildNodes(G,de,J),It&&de.insertBefore(It,de.firstChild);var Ft=this.resolvePseudoContent(G,de,at,q.AFTER);return Ft&&de.appendChild(Ft),this.counters.pop(rt),(Ce&&(this.options.copyStyles||tl(G))&&!Ls(G)||J)&&At(Ce,de),(G.scrollTop!==0||G.scrollLeft!==0)&&this.scrolledElements.push([de,G.scrollLeft,G.scrollTop]),(Kl(G)||Wl(G))&&(Kl(de)||Wl(de))&&(de.value=G.value),de}return G.cloneNode(!1)},X.prototype.resolvePseudoContent=function(G,J,Y,de){var Ce=this;if(!Y)return;var Fe=Y.content,at=J.ownerDocument;if(!at||!Fe||Fe==="none"||Fe==="-moz-alt-content"||Y.display==="none")return;this.counters.parse(new zi(this.context,Y));var rt=new ao(this.context,Y),It=at.createElement("html2canvaspseudoelement");At(Y,It),rt.content.forEach(function(nn){if(nn.type===0)It.appendChild(at.createTextNode(nn.value));else if(nn.type===22){var un=at.createElement("img");un.src=nn.value,un.style.opacity="1",It.appendChild(un)}else if(nn.type===18){if(nn.name==="attr"){var Sr=nn.values.filter(gi);Sr.length&&It.appendChild(at.createTextNode(G.getAttribute(Sr[0].value)||""))}else if(nn.name==="counter"){var Qn=nn.values.filter($e),Ar=Qn[0],va=Qn[1];if(Ar&&gi(Ar)){var wr=Ce.counters.getCounterValue(Ar.value),Br=va&&gi(va)?vo.parse(Ce.context,va.value):3;It.appendChild(at.createTextNode(L(wr,Br,!1)))}}else if(nn.name==="counters"){var bi=nn.values.filter($e),Ar=bi[0],Ja=bi[1],va=bi[2];if(Ar&&gi(Ar)){var Pi=Ce.counters.getCounterValues(Ar.value),Or=va&&gi(va)?vo.parse(Ce.context,va.value):3,Ii=Ja&&Ja.type===0?Ja.value:"",Ui=Pi.map(function(_s){return L(_s,Or,!1)}).join(Ii);It.appendChild(at.createTextNode(Ui))}}}else if(nn.type===20)switch(nn.value){case"open-quote":It.appendChild(at.createTextNode(dr(rt.quotes,Ce.quoteDepth++,!0)));break;case"close-quote":It.appendChild(at.createTextNode(dr(rt.quotes,--Ce.quoteDepth,!1)));break;default:It.appendChild(at.createTextNode(nn.value))}}),It.className=Zn+" "+sr;var Ft=de===q.BEFORE?" "+Zn:" "+sr;return tl(J)?J.className.baseValue+=Ft:J.className+=Ft,It},X.destroy=function(G){return G.parentNode?(G.parentNode.removeChild(G),!0):!1},X}(),q;(function(X){X[X.BEFORE=0]="BEFORE",X[X.AFTER=1]="AFTER"})(q||(q={}));var ue=function(X,G){var J=X.createElement("iframe");return J.className="html2canvas-container",J.style.visibility="hidden",J.style.position="fixed",J.style.left="-10000px",J.style.top="0px",J.style.border="0",J.width=G.width.toString(),J.height=G.height.toString(),J.scrolling="no",J.setAttribute(D,"true"),X.body.appendChild(J),J},ye=function(X){return new Promise(function(G){if(X.complete){G();return}if(!X.src){G();return}X.onload=G,X.onerror=G})},Ee=function(X){return Promise.all([].slice.call(X.images,0).map(ye))},De=function(X){return new Promise(function(G,J){var Y=X.contentWindow;if(!Y)return J("No window assigned for iframe");var de=Y.document;Y.onload=X.onload=function(){Y.onload=X.onload=null;var Ce=setInterval(function(){de.body.childNodes.length>0&&de.readyState==="complete"&&(clearInterval(Ce),G(X))},50)}})},ot=["all","d","content"],At=function(X,G){for(var J=X.length-1;J>=0;J--){var Y=X.item(J);ot.indexOf(Y)===-1&&G.style.setProperty(Y,X.getPropertyValue(Y))}return G},Nt=function(X){var G="";return X&&(G+="<!DOCTYPE ",X.name&&(G+=X.name),X.internalSubset&&(G+=X.internalSubset),X.publicId&&(G+='"'+X.publicId+'"'),X.systemId&&(G+='"'+X.systemId+'"'),G+=">"),G},Pt=function(X,G,J){X&&X.defaultView&&(G!==X.defaultView.pageXOffset||J!==X.defaultView.pageYOffset)&&X.defaultView.scrollTo(G,J)},hn=function(X){var G=X[0],J=X[1],Y=X[2];G.scrollLeft=J,G.scrollTop=Y},bn=":before",Fn=":after",Zn="___html2canvas___pseudoelement_before",sr="___html2canvas___pseudoelement_after",$n=`{
|
|
content: "" !important;
|
|
display: none !important;
|
|
}`,br=function(X){Zr(X,"."+Zn+bn+$n+`
|
|
.`+sr+Fn+$n)},Zr=function(X,G){var J=X.ownerDocument;if(J){var Y=J.createElement("style");Y.textContent=G,X.appendChild(Y)}},Hr=function(){function X(){}return X.getOrigin=function(G){var J=X._link;return J?(J.href=G,J.href=J.href,J.protocol+J.hostname+J.port):"about:blank"},X.isSameOrigin=function(G){return X.getOrigin(G)===X._origin},X.setContext=function(G){X._link=G.document.createElement("a"),X._origin=X.getOrigin(G.location.href)},X._origin="about:blank",X}(),Fa=function(){function X(G,J){this.context=G,this._options=J,this._cache={}}return X.prototype.addImage=function(G){var J=Promise.resolve();return this.has(G)||(Ko(G)||ds(G))&&(this._cache[G]=this.loadImage(G)).catch(function(){}),J},X.prototype.match=function(G){return this._cache[G]},X.prototype.loadImage=function(G){return k(this,void 0,void 0,function(){var J,Y,de,Ce,Fe=this;return _(this,function(at){switch(at.label){case 0:return J=Hr.isSameOrigin(G),Y=!Qo(G)&&this._options.useCORS===!0&&bo.SUPPORT_CORS_IMAGES&&!J,de=!Qo(G)&&!J&&!Ko(G)&&typeof this._options.proxy=="string"&&bo.SUPPORT_CORS_XHR&&!Y,!J&&this._options.allowTaint===!1&&!Qo(G)&&!Ko(G)&&!de&&!Y?[2]:(Ce=G,de?[4,this.proxy(Ce)]:[3,2]);case 1:Ce=at.sent(),at.label=2;case 2:return this.context.logger.debug("Added image "+G.substring(0,256)),[4,new Promise(function(rt,It){var Ft=new Image;Ft.onload=function(){return rt(Ft)},Ft.onerror=It,(po(Ce)||Y)&&(Ft.crossOrigin="anonymous"),Ft.src=Ce,Ft.complete===!0&&setTimeout(function(){return rt(Ft)},500),Fe._options.imageTimeout>0&&setTimeout(function(){return It("Timed out ("+Fe._options.imageTimeout+"ms) loading image")},Fe._options.imageTimeout)})];case 3:return[2,at.sent()]}})})},X.prototype.has=function(G){return typeof this._cache[G]!="undefined"},X.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},X.prototype.proxy=function(G){var J=this,Y=this._options.proxy;if(!Y)throw new Error("No proxy defined");var de=G.substring(0,256);return new Promise(function(Ce,Fe){var at=bo.SUPPORT_RESPONSE_TYPE?"blob":"text",rt=new XMLHttpRequest;rt.onload=function(){if(rt.status===200)if(at==="text")Ce(rt.response);else{var nn=new FileReader;nn.addEventListener("load",function(){return Ce(nn.result)},!1),nn.addEventListener("error",function(un){return Fe(un)},!1),nn.readAsDataURL(rt.response)}else Fe("Failed to proxy resource "+de+" with status code "+rt.status)},rt.onerror=Fe;var It=Y.indexOf("?")>-1?"&":"?";if(rt.open("GET",""+Y+It+"url="+encodeURIComponent(G)+"&responseType="+at),at!=="text"&&rt instanceof XMLHttpRequest&&(rt.responseType=at),J._options.imageTimeout){var Ft=J._options.imageTimeout;rt.timeout=Ft,rt.ontimeout=function(){return Fe("Timed out ("+Ft+"ms) proxying "+de)}}rt.send()})},X}(),ji=/^data:image\/svg\+xml/i,Co=/^data:image\/.*;base64,/i,oo=/^data:image\/.*/i,ds=function(X){return bo.SUPPORT_SVG_DRAWING||!Lo(X)},Qo=function(X){return oo.test(X)},po=function(X){return Co.test(X)},Ko=function(X){return X.substr(0,4)==="blob"},Lo=function(X){return X.substr(-3).toLowerCase()==="svg"||ji.test(X)},zn=function(){function X(G,J){this.type=0,this.x=G,this.y=J}return X.prototype.add=function(G,J){return new X(this.x+G,this.y+J)},X}(),qi=function(X,G,J){return new zn(X.x+(G.x-X.x)*J,X.y+(G.y-X.y)*J)},eo=function(){function X(G,J,Y,de){this.type=1,this.start=G,this.startControl=J,this.endControl=Y,this.end=de}return X.prototype.subdivide=function(G,J){var Y=qi(this.start,this.startControl,G),de=qi(this.startControl,this.endControl,G),Ce=qi(this.endControl,this.end,G),Fe=qi(Y,de,G),at=qi(de,Ce,G),rt=qi(Fe,at,G);return J?new X(this.start,Y,Fe,rt):new X(rt,at,Ce,this.end)},X.prototype.add=function(G,J){return new X(this.start.add(G,J),this.startControl.add(G,J),this.endControl.add(G,J),this.end.add(G,J))},X.prototype.reverse=function(){return new X(this.end,this.endControl,this.startControl,this.start)},X}(),to=function(X){return X.type===1},Dl=function(){function X(G){var J=G.styles,Y=G.bounds,de=Tt(J.borderTopLeftRadius,Y.width,Y.height),Ce=de[0],Fe=de[1],at=Tt(J.borderTopRightRadius,Y.width,Y.height),rt=at[0],It=at[1],Ft=Tt(J.borderBottomRightRadius,Y.width,Y.height),nn=Ft[0],un=Ft[1],Sr=Tt(J.borderBottomLeftRadius,Y.width,Y.height),Qn=Sr[0],Ar=Sr[1],va=[];va.push((Ce+rt)/Y.width),va.push((Qn+nn)/Y.width),va.push((Fe+Ar)/Y.height),va.push((It+un)/Y.height);var wr=Math.max.apply(Math,va);wr>1&&(Ce/=wr,Fe/=wr,rt/=wr,It/=wr,nn/=wr,un/=wr,Qn/=wr,Ar/=wr);var Br=Y.width-rt,bi=Y.height-un,Ja=Y.width-nn,Pi=Y.height-Ar,Or=J.borderTopWidth,Ii=J.borderRightWidth,Ui=J.borderBottomWidth,Xa=J.borderLeftWidth,Ms=dt(J.paddingTop,G.bounds.width),_s=dt(J.paddingRight,G.bounds.width),js=dt(J.paddingBottom,G.bounds.width),Zo=dt(J.paddingLeft,G.bounds.width);this.topLeftBorderDoubleOuterBox=Ce>0||Fe>0?Va(Y.left+Xa/3,Y.top+Or/3,Ce-Xa/3,Fe-Or/3,ni.TOP_LEFT):new zn(Y.left+Xa/3,Y.top+Or/3),this.topRightBorderDoubleOuterBox=Ce>0||Fe>0?Va(Y.left+Br,Y.top+Or/3,rt-Ii/3,It-Or/3,ni.TOP_RIGHT):new zn(Y.left+Y.width-Ii/3,Y.top+Or/3),this.bottomRightBorderDoubleOuterBox=nn>0||un>0?Va(Y.left+Ja,Y.top+bi,nn-Ii/3,un-Ui/3,ni.BOTTOM_RIGHT):new zn(Y.left+Y.width-Ii/3,Y.top+Y.height-Ui/3),this.bottomLeftBorderDoubleOuterBox=Qn>0||Ar>0?Va(Y.left+Xa/3,Y.top+Pi,Qn-Xa/3,Ar-Ui/3,ni.BOTTOM_LEFT):new zn(Y.left+Xa/3,Y.top+Y.height-Ui/3),this.topLeftBorderDoubleInnerBox=Ce>0||Fe>0?Va(Y.left+Xa*2/3,Y.top+Or*2/3,Ce-Xa*2/3,Fe-Or*2/3,ni.TOP_LEFT):new zn(Y.left+Xa*2/3,Y.top+Or*2/3),this.topRightBorderDoubleInnerBox=Ce>0||Fe>0?Va(Y.left+Br,Y.top+Or*2/3,rt-Ii*2/3,It-Or*2/3,ni.TOP_RIGHT):new zn(Y.left+Y.width-Ii*2/3,Y.top+Or*2/3),this.bottomRightBorderDoubleInnerBox=nn>0||un>0?Va(Y.left+Ja,Y.top+bi,nn-Ii*2/3,un-Ui*2/3,ni.BOTTOM_RIGHT):new zn(Y.left+Y.width-Ii*2/3,Y.top+Y.height-Ui*2/3),this.bottomLeftBorderDoubleInnerBox=Qn>0||Ar>0?Va(Y.left+Xa*2/3,Y.top+Pi,Qn-Xa*2/3,Ar-Ui*2/3,ni.BOTTOM_LEFT):new zn(Y.left+Xa*2/3,Y.top+Y.height-Ui*2/3),this.topLeftBorderStroke=Ce>0||Fe>0?Va(Y.left+Xa/2,Y.top+Or/2,Ce-Xa/2,Fe-Or/2,ni.TOP_LEFT):new zn(Y.left+Xa/2,Y.top+Or/2),this.topRightBorderStroke=Ce>0||Fe>0?Va(Y.left+Br,Y.top+Or/2,rt-Ii/2,It-Or/2,ni.TOP_RIGHT):new zn(Y.left+Y.width-Ii/2,Y.top+Or/2),this.bottomRightBorderStroke=nn>0||un>0?Va(Y.left+Ja,Y.top+bi,nn-Ii/2,un-Ui/2,ni.BOTTOM_RIGHT):new zn(Y.left+Y.width-Ii/2,Y.top+Y.height-Ui/2),this.bottomLeftBorderStroke=Qn>0||Ar>0?Va(Y.left+Xa/2,Y.top+Pi,Qn-Xa/2,Ar-Ui/2,ni.BOTTOM_LEFT):new zn(Y.left+Xa/2,Y.top+Y.height-Ui/2),this.topLeftBorderBox=Ce>0||Fe>0?Va(Y.left,Y.top,Ce,Fe,ni.TOP_LEFT):new zn(Y.left,Y.top),this.topRightBorderBox=rt>0||It>0?Va(Y.left+Br,Y.top,rt,It,ni.TOP_RIGHT):new zn(Y.left+Y.width,Y.top),this.bottomRightBorderBox=nn>0||un>0?Va(Y.left+Ja,Y.top+bi,nn,un,ni.BOTTOM_RIGHT):new zn(Y.left+Y.width,Y.top+Y.height),this.bottomLeftBorderBox=Qn>0||Ar>0?Va(Y.left,Y.top+Pi,Qn,Ar,ni.BOTTOM_LEFT):new zn(Y.left,Y.top+Y.height),this.topLeftPaddingBox=Ce>0||Fe>0?Va(Y.left+Xa,Y.top+Or,Math.max(0,Ce-Xa),Math.max(0,Fe-Or),ni.TOP_LEFT):new zn(Y.left+Xa,Y.top+Or),this.topRightPaddingBox=rt>0||It>0?Va(Y.left+Math.min(Br,Y.width-Ii),Y.top+Or,Br>Y.width+Ii?0:Math.max(0,rt-Ii),Math.max(0,It-Or),ni.TOP_RIGHT):new zn(Y.left+Y.width-Ii,Y.top+Or),this.bottomRightPaddingBox=nn>0||un>0?Va(Y.left+Math.min(Ja,Y.width-Xa),Y.top+Math.min(bi,Y.height-Ui),Math.max(0,nn-Ii),Math.max(0,un-Ui),ni.BOTTOM_RIGHT):new zn(Y.left+Y.width-Ii,Y.top+Y.height-Ui),this.bottomLeftPaddingBox=Qn>0||Ar>0?Va(Y.left+Xa,Y.top+Math.min(Pi,Y.height-Ui),Math.max(0,Qn-Xa),Math.max(0,Ar-Ui),ni.BOTTOM_LEFT):new zn(Y.left+Xa,Y.top+Y.height-Ui),this.topLeftContentBox=Ce>0||Fe>0?Va(Y.left+Xa+Zo,Y.top+Or+Ms,Math.max(0,Ce-(Xa+Zo)),Math.max(0,Fe-(Or+Ms)),ni.TOP_LEFT):new zn(Y.left+Xa+Zo,Y.top+Or+Ms),this.topRightContentBox=rt>0||It>0?Va(Y.left+Math.min(Br,Y.width+Xa+Zo),Y.top+Or+Ms,Br>Y.width+Xa+Zo?0:rt-Xa+Zo,It-(Or+Ms),ni.TOP_RIGHT):new zn(Y.left+Y.width-(Ii+_s),Y.top+Or+Ms),this.bottomRightContentBox=nn>0||un>0?Va(Y.left+Math.min(Ja,Y.width-(Xa+Zo)),Y.top+Math.min(bi,Y.height+Or+Ms),Math.max(0,nn-(Ii+_s)),un-(Ui+js),ni.BOTTOM_RIGHT):new zn(Y.left+Y.width-(Ii+_s),Y.top+Y.height-(Ui+js)),this.bottomLeftContentBox=Qn>0||Ar>0?Va(Y.left+Xa+Zo,Y.top+Pi,Math.max(0,Qn-(Xa+Zo)),Ar-(Ui+js),ni.BOTTOM_LEFT):new zn(Y.left+Xa+Zo,Y.top+Y.height-(Ui+js))}return X}(),ni;(function(X){X[X.TOP_LEFT=0]="TOP_LEFT",X[X.TOP_RIGHT=1]="TOP_RIGHT",X[X.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",X[X.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(ni||(ni={}));var Va=function(X,G,J,Y,de){var Ce=4*((Math.sqrt(2)-1)/3),Fe=J*Ce,at=Y*Ce,rt=X+J,It=G+Y;switch(de){case ni.TOP_LEFT:return new eo(new zn(X,It),new zn(X,It-at),new zn(rt-Fe,G),new zn(rt,G));case ni.TOP_RIGHT:return new eo(new zn(X,G),new zn(X+Fe,G),new zn(rt,It-at),new zn(rt,It));case ni.BOTTOM_RIGHT:return new eo(new zn(rt,G),new zn(rt,G+at),new zn(X+Fe,It),new zn(X,It));case ni.BOTTOM_LEFT:default:return new eo(new zn(rt,It),new zn(rt-Fe,It),new zn(X,G+at),new zn(X,G))}},Es=function(X){return[X.topLeftBorderBox,X.topRightBorderBox,X.bottomRightBorderBox,X.bottomLeftBorderBox]},wo=function(X){return[X.topLeftContentBox,X.topRightContentBox,X.bottomRightContentBox,X.bottomLeftContentBox]},Ll=function(X){return[X.topLeftPaddingBox,X.topRightPaddingBox,X.bottomRightPaddingBox,X.bottomLeftPaddingBox]},al=function(){function X(G,J,Y){this.offsetX=G,this.offsetY=J,this.matrix=Y,this.type=0,this.target=2|4}return X}(),zs=function(){function X(G,J){this.path=G,this.target=J,this.type=1}return X}(),Cl=function(){function X(G){this.opacity=G,this.type=2,this.target=2|4}return X}(),Jo=function(X){return X.type===0},wl=function(X){return X.type===1},Eu=function(X){return X.type===2},ac=function(X,G){return X.length===G.length?X.some(function(J,Y){return J===G[Y]}):!1},hc=function(X,G,J,Y,de){return X.map(function(Ce,Fe){switch(Fe){case 0:return Ce.add(G,J);case 1:return Ce.add(G+Y,J);case 2:return Ce.add(G+Y,J+de);case 3:return Ce.add(G,J+de)}return Ce})},ic=function(){function X(G){this.element=G,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return X}(),oc=function(){function X(G,J){if(this.container=G,this.parent=J,this.effects=[],this.curves=new Dl(this.container),this.container.styles.opacity<1&&this.effects.push(new Cl(this.container.styles.opacity)),this.container.styles.transform!==null){var Y=this.container.bounds.left+this.container.styles.transformOrigin[0].number,de=this.container.bounds.top+this.container.styles.transformOrigin[1].number,Ce=this.container.styles.transform;this.effects.push(new al(Y,de,Ce))}if(this.container.styles.overflowX!==0){var Fe=Es(this.curves),at=Ll(this.curves);ac(Fe,at)?this.effects.push(new zs(Fe,2|4)):(this.effects.push(new zs(Fe,2)),this.effects.push(new zs(at,4)))}}return X.prototype.getEffects=function(G){for(var J=[2,3].indexOf(this.container.styles.position)===-1,Y=this.parent,de=this.effects.slice(0);Y;){var Ce=Y.effects.filter(function(rt){return!wl(rt)});if(J||Y.container.styles.position!==0||!Y.parent){if(de.unshift.apply(de,Ce),J=[2,3].indexOf(Y.container.styles.position)===-1,Y.container.styles.overflowX!==0){var Fe=Es(Y.curves),at=Ll(Y.curves);ac(Fe,at)||de.unshift(new zs(at,2|4))}}else de.unshift.apply(de,Ce);Y=Y.parent}return de.filter(function(rt){return Wt(rt.target,G)})},X}(),nc=function(X,G,J,Y){X.container.elements.forEach(function(de){var Ce=Wt(de.flags,4),Fe=Wt(de.flags,2),at=new oc(de,X);Wt(de.styles.display,2048)&&Y.push(at);var rt=Wt(de.flags,8)?[]:Y;if(Ce||Fe){var It=Ce||de.styles.isPositioned()?J:G,Ft=new ic(at);if(de.styles.isPositioned()||de.styles.opacity<1||de.styles.isTransformed()){var nn=de.styles.zIndex.order;if(nn<0){var un=0;It.negativeZIndex.some(function(Qn,Ar){return nn>Qn.element.container.styles.zIndex.order?(un=Ar,!1):un>0}),It.negativeZIndex.splice(un,0,Ft)}else if(nn>0){var Sr=0;It.positiveZIndex.some(function(Qn,Ar){return nn>=Qn.element.container.styles.zIndex.order?(Sr=Ar+1,!1):Sr>0}),It.positiveZIndex.splice(Sr,0,Ft)}else It.zeroOrAutoZIndexOrTransformedOrOpacity.push(Ft)}else de.styles.isFloating()?It.nonPositionedFloats.push(Ft):It.nonPositionedInlineLevel.push(Ft);nc(at,Ft,Ce?Ft:J,rt)}else de.styles.isInlineLevel()?G.inlineLevel.push(at):G.nonInlineLevel.push(at),nc(at,G,J,rt);Wt(de.flags,8)&&sc(de,rt)})},sc=function(X,G){for(var J=X instanceof tu?X.start:1,Y=X instanceof tu?X.reversed:!1,de=0;de<G.length;de++){var Ce=G[de];Ce.container instanceof eu&&typeof Ce.container.value=="number"&&Ce.container.value!==0&&(J=Ce.container.value),Ce.listValue=L(J,Ce.container.styles.listStyleType,!0),J+=Y?-1:1}},Ac=function(X){var G=new oc(X,null),J=new ic(G),Y=[];return nc(G,J,J,Y),sc(G.container,Y),J},lc=function(X,G){switch(G){case 0:return Gs(X.topLeftBorderBox,X.topLeftPaddingBox,X.topRightBorderBox,X.topRightPaddingBox);case 1:return Gs(X.topRightBorderBox,X.topRightPaddingBox,X.bottomRightBorderBox,X.bottomRightPaddingBox);case 2:return Gs(X.bottomRightBorderBox,X.bottomRightPaddingBox,X.bottomLeftBorderBox,X.bottomLeftPaddingBox);case 3:default:return Gs(X.bottomLeftBorderBox,X.bottomLeftPaddingBox,X.topLeftBorderBox,X.topLeftPaddingBox)}},fc=function(X,G){switch(G){case 0:return Gs(X.topLeftBorderBox,X.topLeftBorderDoubleOuterBox,X.topRightBorderBox,X.topRightBorderDoubleOuterBox);case 1:return Gs(X.topRightBorderBox,X.topRightBorderDoubleOuterBox,X.bottomRightBorderBox,X.bottomRightBorderDoubleOuterBox);case 2:return Gs(X.bottomRightBorderBox,X.bottomRightBorderDoubleOuterBox,X.bottomLeftBorderBox,X.bottomLeftBorderDoubleOuterBox);case 3:default:return Gs(X.bottomLeftBorderBox,X.bottomLeftBorderDoubleOuterBox,X.topLeftBorderBox,X.topLeftBorderDoubleOuterBox)}},pc=function(X,G){switch(G){case 0:return Gs(X.topLeftBorderDoubleInnerBox,X.topLeftPaddingBox,X.topRightBorderDoubleInnerBox,X.topRightPaddingBox);case 1:return Gs(X.topRightBorderDoubleInnerBox,X.topRightPaddingBox,X.bottomRightBorderDoubleInnerBox,X.bottomRightPaddingBox);case 2:return Gs(X.bottomRightBorderDoubleInnerBox,X.bottomRightPaddingBox,X.bottomLeftBorderDoubleInnerBox,X.bottomLeftPaddingBox);case 3:default:return Gs(X.bottomLeftBorderDoubleInnerBox,X.bottomLeftPaddingBox,X.topLeftBorderDoubleInnerBox,X.topLeftPaddingBox)}},mc=function(X,G){switch(G){case 0:return zu(X.topLeftBorderStroke,X.topRightBorderStroke);case 1:return zu(X.topRightBorderStroke,X.bottomRightBorderStroke);case 2:return zu(X.bottomRightBorderStroke,X.bottomLeftBorderStroke);case 3:default:return zu(X.bottomLeftBorderStroke,X.topLeftBorderStroke)}},zu=function(X,G){var J=[];return to(X)?J.push(X.subdivide(.5,!1)):J.push(X),to(G)?J.push(G.subdivide(.5,!0)):J.push(G),J},Gs=function(X,G,J,Y){var de=[];return to(X)?de.push(X.subdivide(.5,!1)):de.push(X),to(J)?de.push(J.subdivide(.5,!0)):de.push(J),to(Y)?de.push(Y.subdivide(.5,!0).reverse()):de.push(Y),to(G)?de.push(G.subdivide(.5,!1).reverse()):de.push(G),de},uc=function(X){var G=X.bounds,J=X.styles;return G.add(J.borderLeftWidth,J.borderTopWidth,-(J.borderRightWidth+J.borderLeftWidth),-(J.borderTopWidth+J.borderBottomWidth))},Gu=function(X){var G=X.styles,J=X.bounds,Y=dt(G.paddingLeft,J.width),de=dt(G.paddingRight,J.width),Ce=dt(G.paddingTop,J.width),Fe=dt(G.paddingBottom,J.width);return J.add(Y+G.borderLeftWidth,Ce+G.borderTopWidth,-(G.borderRightWidth+G.borderLeftWidth+Y+de),-(G.borderTopWidth+G.borderBottomWidth+Ce+Fe))},gc=function(X,G){return X===0?G.bounds:X===2?Gu(G):uc(G)},vc=function(X,G){return X===0?G.bounds:X===2?Gu(G):uc(G)},rc=function(X,G,J){var Y=gc(lu(X.styles.backgroundOrigin,G),X),de=vc(lu(X.styles.backgroundClip,G),X),Ce=yc(lu(X.styles.backgroundSize,G),J,Y),Fe=Ce[0],at=Ce[1],rt=Tt(lu(X.styles.backgroundPosition,G),Y.width-Fe,Y.height-at),It=bc(lu(X.styles.backgroundRepeat,G),rt,Ce,Y,de),Ft=Math.round(Y.left+rt[0]),nn=Math.round(Y.top+rt[1]);return[It,Ft,nn,Fe,at]},su=function(X){return gi(X)&&X.value===Ln.AUTO},Vu=function(X){return typeof X=="number"},yc=function(X,G,J){var Y=G[0],de=G[1],Ce=G[2],Fe=X[0],at=X[1];if(!Fe)return[0,0];if(Te(Fe)&&at&&Te(at))return[dt(Fe,J.width),dt(at,J.height)];var rt=Vu(Ce);if(gi(Fe)&&(Fe.value===Ln.CONTAIN||Fe.value===Ln.COVER)){if(Vu(Ce)){var It=J.width/J.height;return It<Ce!==(Fe.value===Ln.COVER)?[J.width,J.width/Ce]:[J.height*Ce,J.height]}return[J.width,J.height]}var Ft=Vu(Y),nn=Vu(de),un=Ft||nn;if(su(Fe)&&(!at||su(at))){if(Ft&&nn)return[Y,de];if(!rt&&!un)return[J.width,J.height];if(un&&rt){var Sr=Ft?Y:de*Ce,Qn=nn?de:Y/Ce;return[Sr,Qn]}var Ar=Ft?Y:J.width,va=nn?de:J.height;return[Ar,va]}if(rt){var wr=0,Br=0;return Te(Fe)?wr=dt(Fe,J.width):Te(at)&&(Br=dt(at,J.height)),su(Fe)?wr=Br*Ce:(!at||su(at))&&(Br=wr/Ce),[wr,Br]}var bi=null,Ja=null;if(Te(Fe)?bi=dt(Fe,J.width):at&&Te(at)&&(Ja=dt(at,J.height)),bi!==null&&(!at||su(at))&&(Ja=Ft&&nn?bi/Y*de:J.height),Ja!==null&&su(Fe)&&(bi=Ft&&nn?Ja/de*Y:J.width),bi!==null&&Ja!==null)return[bi,Ja];throw new Error("Unable to calculate background-size for element")},lu=function(X,G){var J=X[G];return typeof J=="undefined"?X[0]:J},bc=function(X,G,J,Y,de){var Ce=G[0],Fe=G[1],at=J[0],rt=J[1];switch(X){case 2:return[new zn(Math.round(Y.left),Math.round(Y.top+Fe)),new zn(Math.round(Y.left+Y.width),Math.round(Y.top+Fe)),new zn(Math.round(Y.left+Y.width),Math.round(rt+Y.top+Fe)),new zn(Math.round(Y.left),Math.round(rt+Y.top+Fe))];case 3:return[new zn(Math.round(Y.left+Ce),Math.round(Y.top)),new zn(Math.round(Y.left+Ce+at),Math.round(Y.top)),new zn(Math.round(Y.left+Ce+at),Math.round(Y.height+Y.top)),new zn(Math.round(Y.left+Ce),Math.round(Y.height+Y.top))];case 1:return[new zn(Math.round(Y.left+Ce),Math.round(Y.top+Fe)),new zn(Math.round(Y.left+Ce+at),Math.round(Y.top+Fe)),new zn(Math.round(Y.left+Ce+at),Math.round(Y.top+Fe+rt)),new zn(Math.round(Y.left+Ce),Math.round(Y.top+Fe+rt))];default:return[new zn(Math.round(de.left),Math.round(de.top)),new zn(Math.round(de.left+de.width),Math.round(de.top)),new zn(Math.round(de.left+de.width),Math.round(de.height+de.top)),new zn(Math.round(de.left),Math.round(de.height+de.top))]}},Ec="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",cc="Hidden Text",_c=function(){function X(G){this._data={},this._document=G}return X.prototype.parseMetrics=function(G,J){var Y=this._document.createElement("div"),de=this._document.createElement("img"),Ce=this._document.createElement("span"),Fe=this._document.body;Y.style.visibility="hidden",Y.style.fontFamily=G,Y.style.fontSize=J,Y.style.margin="0",Y.style.padding="0",Y.style.whiteSpace="nowrap",Fe.appendChild(Y),de.src=Ec,de.width=1,de.height=1,de.style.margin="0",de.style.padding="0",de.style.verticalAlign="baseline",Ce.style.fontFamily=G,Ce.style.fontSize=J,Ce.style.margin="0",Ce.style.padding="0",Ce.appendChild(this._document.createTextNode(cc)),Y.appendChild(Ce),Y.appendChild(de);var at=de.offsetTop-Ce.offsetTop+2;Y.removeChild(Ce),Y.appendChild(this._document.createTextNode(cc)),Y.style.lineHeight="normal",de.style.verticalAlign="super";var rt=de.offsetTop-Y.offsetTop+2;return Fe.removeChild(Y),{baseline:at,middle:rt}},X.prototype.getMetrics=function(G,J){var Y=G+" "+J;return typeof this._data[Y]=="undefined"&&(this._data[Y]=this.parseMetrics(G,J)),this._data[Y]},X}(),dc=function(){function X(G,J){this.context=G,this.options=J}return X}(),Cc=1e4,wc=function(X){K(G,X);function G(J,Y){var de=X.call(this,J,Y)||this;return de._activeEffects=[],de.canvas=Y.canvas?Y.canvas:document.createElement("canvas"),de.ctx=de.canvas.getContext("2d"),Y.canvas||(de.canvas.width=Math.floor(Y.width*Y.scale),de.canvas.height=Math.floor(Y.height*Y.scale),de.canvas.style.width=Y.width+"px",de.canvas.style.height=Y.height+"px"),de.fontMetrics=new _c(document),de.ctx.scale(de.options.scale,de.options.scale),de.ctx.translate(-Y.x,-Y.y),de.ctx.textBaseline="bottom",de._activeEffects=[],de.context.logger.debug("Canvas renderer initialized ("+Y.width+"x"+Y.height+") with scale "+Y.scale),de}return G.prototype.applyEffects=function(J){for(var Y=this;this._activeEffects.length;)this.popEffect();J.forEach(function(de){return Y.applyEffect(de)})},G.prototype.applyEffect=function(J){this.ctx.save(),Eu(J)&&(this.ctx.globalAlpha=J.opacity),Jo(J)&&(this.ctx.translate(J.offsetX,J.offsetY),this.ctx.transform(J.matrix[0],J.matrix[1],J.matrix[2],J.matrix[3],J.matrix[4],J.matrix[5]),this.ctx.translate(-J.offsetX,-J.offsetY)),wl(J)&&(this.path(J.path),this.ctx.clip()),this._activeEffects.push(J)},G.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},G.prototype.renderStack=function(J){return k(this,void 0,void 0,function(){var Y;return _(this,function(de){switch(de.label){case 0:return Y=J.element.container.styles,Y.isVisible()?[4,this.renderStackContent(J)]:[3,2];case 1:de.sent(),de.label=2;case 2:return[2]}})})},G.prototype.renderNode=function(J){return k(this,void 0,void 0,function(){return _(this,function(Y){switch(Y.label){case 0:if(Wt(J.container.flags,16))debugger;return J.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(J)]:[3,3];case 1:return Y.sent(),[4,this.renderNodeContent(J)];case 2:Y.sent(),Y.label=3;case 3:return[2]}})})},G.prototype.renderTextWithLetterSpacing=function(J,Y,de){var Ce=this;if(Y===0)this.ctx.fillText(J.text,J.bounds.left,J.bounds.top+de);else{var Fe=Au(J.text);Fe.reduce(function(at,rt){return Ce.ctx.fillText(rt,at,J.bounds.top+de),at+Ce.ctx.measureText(rt).width},J.bounds.left)}},G.prototype.createFontStyle=function(J){var Y=J.fontVariant.filter(function(Fe){return Fe==="normal"||Fe==="small-caps"}).join(""),de=Rc(J.fontFamily).join(", "),Ce=Us(J.fontSize)?""+J.fontSize.number+J.fontSize.unit:J.fontSize.number+"px";return[[J.fontStyle,Y,J.fontWeight,Ce,de].join(" "),de,Ce]},G.prototype.renderTextNode=function(J,Y){return k(this,void 0,void 0,function(){var de,Ce,Fe,at,rt,It,Ft,nn,un=this;return _(this,function(Sr){return de=this.createFontStyle(Y),Ce=de[0],Fe=de[1],at=de[2],this.ctx.font=Ce,this.ctx.direction=Y.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",rt=this.fontMetrics.getMetrics(Fe,at),It=rt.baseline,Ft=rt.middle,nn=Y.paintOrder,J.textBounds.forEach(function(Qn){nn.forEach(function(Ar){switch(Ar){case 0:un.ctx.fillStyle=jt(Y.color),un.renderTextWithLetterSpacing(Qn,Y.letterSpacing,It);var va=Y.textShadow;va.length&&Qn.text.trim().length&&(va.slice(0).reverse().forEach(function(wr){un.ctx.shadowColor=jt(wr.color),un.ctx.shadowOffsetX=wr.offsetX.number*un.options.scale,un.ctx.shadowOffsetY=wr.offsetY.number*un.options.scale,un.ctx.shadowBlur=wr.blur.number,un.renderTextWithLetterSpacing(Qn,Y.letterSpacing,It)}),un.ctx.shadowColor="",un.ctx.shadowOffsetX=0,un.ctx.shadowOffsetY=0,un.ctx.shadowBlur=0),Y.textDecorationLine.length&&(un.ctx.fillStyle=jt(Y.textDecorationColor||Y.color),Y.textDecorationLine.forEach(function(wr){switch(wr){case 1:un.ctx.fillRect(Qn.bounds.left,Math.round(Qn.bounds.top+It),Qn.bounds.width,1);break;case 2:un.ctx.fillRect(Qn.bounds.left,Math.round(Qn.bounds.top),Qn.bounds.width,1);break;case 3:un.ctx.fillRect(Qn.bounds.left,Math.ceil(Qn.bounds.top+Ft),Qn.bounds.width,1);break}}));break;case 1:Y.webkitTextStrokeWidth&&Qn.text.trim().length&&(un.ctx.strokeStyle=jt(Y.webkitTextStrokeColor),un.ctx.lineWidth=Y.webkitTextStrokeWidth,un.ctx.lineJoin=window.chrome?"miter":"round",un.ctx.strokeText(Qn.text,Qn.bounds.left,Qn.bounds.top+It)),un.ctx.strokeStyle="",un.ctx.lineWidth=0,un.ctx.lineJoin="miter";break}})}),[2]})})},G.prototype.renderReplacedElement=function(J,Y,de){if(de&&J.intrinsicWidth>0&&J.intrinsicHeight>0){var Ce=Gu(J),Fe=Ll(Y);this.path(Fe),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(de,0,0,J.intrinsicWidth,J.intrinsicHeight,Ce.left,Ce.top,Ce.width,Ce.height),this.ctx.restore()}},G.prototype.renderNodeContent=function(J){return k(this,void 0,void 0,function(){var Y,de,Ce,Fe,at,rt,It,It,Ft,nn,un,Sr,Qn,Ar,va,wr,Br,bi,Ja,It,Pi,Qn,wr;return _(this,function(Or){switch(Or.label){case 0:this.applyEffects(J.getEffects(4)),Y=J.container,de=J.curves,Ce=Y.styles,Fe=0,at=Y.textNodes,Or.label=1;case 1:return Fe<at.length?(rt=at[Fe],[4,this.renderTextNode(rt,Ce)]):[3,4];case 2:Or.sent(),Or.label=3;case 3:return Fe++,[3,1];case 4:if(!(Y instanceof fu))return[3,8];Or.label=5;case 5:return Or.trys.push([5,7,,8]),[4,this.context.cache.match(Y.src)];case 6:return It=Or.sent(),this.renderReplacedElement(Y,de,It),[3,8];case 7:return Or.sent(),this.context.logger.error("Error loading image "+Y.src),[3,8];case 8:if(Y instanceof pu&&this.renderReplacedElement(Y,de,Y.canvas),!(Y instanceof Su))return[3,12];Or.label=9;case 9:return Or.trys.push([9,11,,12]),[4,this.context.cache.match(Y.svg)];case 10:return It=Or.sent(),this.renderReplacedElement(Y,de,It),[3,12];case 11:return Or.sent(),this.context.logger.error("Error loading svg "+Y.svg.substring(0,255)),[3,12];case 12:return Y instanceof Lu&&Y.tree?(Ft=new G(this.context,{scale:this.options.scale,backgroundColor:Y.backgroundColor,x:0,y:0,width:Y.width,height:Y.height}),[4,Ft.render(Y.tree)]):[3,14];case 13:nn=Or.sent(),Y.width&&Y.height&&this.ctx.drawImage(nn,0,0,Y.width,Y.height,Y.bounds.left,Y.bounds.top,Y.bounds.width,Y.bounds.height),Or.label=14;case 14:if(Y instanceof nu&&(un=Math.min(Y.bounds.width,Y.bounds.height),Y.type===Bl?Y.checked&&(this.ctx.save(),this.path([new zn(Y.bounds.left+un*.39363,Y.bounds.top+un*.79),new zn(Y.bounds.left+un*.16,Y.bounds.top+un*.5549),new zn(Y.bounds.left+un*.27347,Y.bounds.top+un*.44071),new zn(Y.bounds.left+un*.39694,Y.bounds.top+un*.5649),new zn(Y.bounds.left+un*.72983,Y.bounds.top+un*.23),new zn(Y.bounds.left+un*.84,Y.bounds.top+un*.34085),new zn(Y.bounds.left+un*.39363,Y.bounds.top+un*.79)]),this.ctx.fillStyle=jt(Bu),this.ctx.fill(),this.ctx.restore()):Y.type===hl&&(Y.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(Y.bounds.left+un/2,Y.bounds.top+un/2,un/4,0,Math.PI*2,!0),this.ctx.fillStyle=jt(Bu),this.ctx.fill(),this.ctx.restore()))),xc(Y)&&Y.value.length){Sr=this.createFontStyle(Ce),Qn=Sr[0],Ar=Sr[1],va=this.fontMetrics.getMetrics(Qn,Ar).baseline,this.ctx.font=Qn,this.ctx.fillStyle=jt(Ce.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Sc(Y.styles.textAlign),wr=Gu(Y),Br=0;switch(Y.styles.textAlign){case 1:Br+=wr.width/2;break;case 2:Br+=wr.width;break}bi=wr.add(Br,0,0,-wr.height/2+1),this.ctx.save(),this.path([new zn(wr.left,wr.top),new zn(wr.left+wr.width,wr.top),new zn(wr.left+wr.width,wr.top+wr.height),new zn(wr.left,wr.top+wr.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Ws(Y.value,bi),Ce.letterSpacing,va),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Wt(Y.styles.display,2048))return[3,20];if(!(Y.styles.listStyleImage!==null))return[3,19];if(Ja=Y.styles.listStyleImage,!(Ja.type===0))return[3,18];It=void 0,Pi=Ja.url,Or.label=15;case 15:return Or.trys.push([15,17,,18]),[4,this.context.cache.match(Pi)];case 16:return It=Or.sent(),this.ctx.drawImage(It,Y.bounds.left-(It.width+10),Y.bounds.top),[3,18];case 17:return Or.sent(),this.context.logger.error("Error loading list-style-image "+Pi),[3,18];case 18:return[3,20];case 19:J.listValue&&Y.styles.listStyleType!==-1&&(Qn=this.createFontStyle(Ce)[0],this.ctx.font=Qn,this.ctx.fillStyle=jt(Ce.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",wr=new M(Y.bounds.left,Y.bounds.top+dt(Y.styles.paddingTop,Y.bounds.width),Y.bounds.width,Aa(Ce.lineHeight,Ce.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Ws(J.listValue,wr),Ce.letterSpacing,Aa(Ce.lineHeight,Ce.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),Or.label=20;case 20:return[2]}})})},G.prototype.renderStackContent=function(J){return k(this,void 0,void 0,function(){var Y,de,Ce,Fe,at,Ce,rt,It,Ce,Ft,nn,Ce,un,Sr,Ce,Qn,Ar,Ce,va,wr,Ce;return _(this,function(Br){switch(Br.label){case 0:if(Wt(J.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(J.element)];case 1:Br.sent(),Y=0,de=J.negativeZIndex,Br.label=2;case 2:return Y<de.length?(Ce=de[Y],[4,this.renderStack(Ce)]):[3,5];case 3:Br.sent(),Br.label=4;case 4:return Y++,[3,2];case 5:return[4,this.renderNodeContent(J.element)];case 6:Br.sent(),Fe=0,at=J.nonInlineLevel,Br.label=7;case 7:return Fe<at.length?(Ce=at[Fe],[4,this.renderNode(Ce)]):[3,10];case 8:Br.sent(),Br.label=9;case 9:return Fe++,[3,7];case 10:rt=0,It=J.nonPositionedFloats,Br.label=11;case 11:return rt<It.length?(Ce=It[rt],[4,this.renderStack(Ce)]):[3,14];case 12:Br.sent(),Br.label=13;case 13:return rt++,[3,11];case 14:Ft=0,nn=J.nonPositionedInlineLevel,Br.label=15;case 15:return Ft<nn.length?(Ce=nn[Ft],[4,this.renderStack(Ce)]):[3,18];case 16:Br.sent(),Br.label=17;case 17:return Ft++,[3,15];case 18:un=0,Sr=J.inlineLevel,Br.label=19;case 19:return un<Sr.length?(Ce=Sr[un],[4,this.renderNode(Ce)]):[3,22];case 20:Br.sent(),Br.label=21;case 21:return un++,[3,19];case 22:Qn=0,Ar=J.zeroOrAutoZIndexOrTransformedOrOpacity,Br.label=23;case 23:return Qn<Ar.length?(Ce=Ar[Qn],[4,this.renderStack(Ce)]):[3,26];case 24:Br.sent(),Br.label=25;case 25:return Qn++,[3,23];case 26:va=0,wr=J.positiveZIndex,Br.label=27;case 27:return va<wr.length?(Ce=wr[va],[4,this.renderStack(Ce)]):[3,30];case 28:Br.sent(),Br.label=29;case 29:return va++,[3,27];case 30:return[2]}})})},G.prototype.mask=function(J){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(J.slice(0).reverse()),this.ctx.closePath()},G.prototype.path=function(J){this.ctx.beginPath(),this.formatPath(J),this.ctx.closePath()},G.prototype.formatPath=function(J){var Y=this;J.forEach(function(de,Ce){var Fe=to(de)?de.start:de;Ce===0?Y.ctx.moveTo(Fe.x,Fe.y):Y.ctx.lineTo(Fe.x,Fe.y),to(de)&&Y.ctx.bezierCurveTo(de.startControl.x,de.startControl.y,de.endControl.x,de.endControl.y,de.end.x,de.end.y)})},G.prototype.renderRepeat=function(J,Y,de,Ce){this.path(J),this.ctx.fillStyle=Y,this.ctx.translate(de,Ce),this.ctx.fill(),this.ctx.translate(-de,-Ce)},G.prototype.resizeImage=function(J,Y,de){var Ce;if(J.width===Y&&J.height===de)return J;var Fe=(Ce=this.canvas.ownerDocument)!==null&&Ce!==void 0?Ce:document,at=Fe.createElement("canvas");at.width=Math.max(1,Y),at.height=Math.max(1,de);var rt=at.getContext("2d");return rt.drawImage(J,0,0,J.width,J.height,0,0,Y,de),at},G.prototype.renderBackgroundImage=function(J){return k(this,void 0,void 0,function(){var Y,de,Ce,Fe,at,rt;return _(this,function(It){switch(It.label){case 0:Y=J.styles.backgroundImage.length-1,de=function(Ft){var nn,un,Sr,Qn,Ar,va,wr,Br,bi,Ja,Qn,Ar,va,wr,Br,Pi,Or,Ii,Ui,Xa,Ms,_s,js,Zo,bi,fl,Qn,Ml,Pl,wr,Br,Ul,Ar,va,Vl,pl,Nl,Xl,Yl,xl,Jl,Tl;return _(this,function(uu){switch(uu.label){case 0:if(!(Ft.type===0))return[3,5];nn=void 0,un=Ft.url,uu.label=1;case 1:return uu.trys.push([1,3,,4]),[4,Ce.context.cache.match(un)];case 2:return nn=uu.sent(),[3,4];case 3:return uu.sent(),Ce.context.logger.error("Error loading background-image "+un),[3,4];case 4:return nn&&(Sr=rc(J,Y,[nn.width,nn.height,nn.width/nn.height]),Qn=Sr[0],Ar=Sr[1],va=Sr[2],wr=Sr[3],Br=Sr[4],bi=Ce.ctx.createPattern(Ce.resizeImage(nn,wr,Br),"repeat"),Ce.renderRepeat(Qn,bi,Ar,va)),[3,6];case 5:ja(Ft)?(Ja=rc(J,Y,[null,null,null]),Qn=Ja[0],Ar=Ja[1],va=Ja[2],wr=Ja[3],Br=Ja[4],Pi=Dn(Ft.angle,wr,Br),Or=Pi[0],Ii=Pi[1],Ui=Pi[2],Xa=Pi[3],Ms=Pi[4],_s=document.createElement("canvas"),_s.width=wr,_s.height=Br,js=_s.getContext("2d"),Zo=js.createLinearGradient(Ii,Xa,Ui,Ms),hr(Ft.stops,Or).forEach(function(_u){return Zo.addColorStop(_u.stop,jt(_u.color))}),js.fillStyle=Zo,js.fillRect(0,0,wr,Br),wr>0&&Br>0&&(bi=Ce.ctx.createPattern(_s,"repeat"),Ce.renderRepeat(Qn,bi,Ar,va))):ia(Ft)&&(fl=rc(J,Y,[null,null,null]),Qn=fl[0],Ml=fl[1],Pl=fl[2],wr=fl[3],Br=fl[4],Ul=Ft.position.length===0?[it]:Ft.position,Ar=dt(Ul[0],wr),va=dt(Ul[Ul.length-1],Br),Vl=yn(Ft,Ar,va,wr,Br),pl=Vl[0],Nl=Vl[1],pl>0&&Nl>0&&(Xl=Ce.ctx.createRadialGradient(Ml+Ar,Pl+va,0,Ml+Ar,Pl+va,pl),hr(Ft.stops,pl*2).forEach(function(_u){return Xl.addColorStop(_u.stop,jt(_u.color))}),Ce.path(Qn),Ce.ctx.fillStyle=Xl,pl!==Nl?(Yl=J.bounds.left+.5*J.bounds.width,xl=J.bounds.top+.5*J.bounds.height,Jl=Nl/pl,Tl=1/Jl,Ce.ctx.save(),Ce.ctx.translate(Yl,xl),Ce.ctx.transform(1,0,0,Jl,0,0),Ce.ctx.translate(-Yl,-xl),Ce.ctx.fillRect(Ml,Tl*(Pl-xl)+xl,wr,Br*Tl),Ce.ctx.restore()):Ce.ctx.fill())),uu.label=6;case 6:return Y--,[2]}})},Ce=this,Fe=0,at=J.styles.backgroundImage.slice(0).reverse(),It.label=1;case 1:return Fe<at.length?(rt=at[Fe],[5,de(rt)]):[3,4];case 2:It.sent(),It.label=3;case 3:return Fe++,[3,1];case 4:return[2]}})})},G.prototype.renderSolidBorder=function(J,Y,de){return k(this,void 0,void 0,function(){return _(this,function(Ce){return this.path(lc(de,Y)),this.ctx.fillStyle=jt(J),this.ctx.fill(),[2]})})},G.prototype.renderDoubleBorder=function(J,Y,de,Ce){return k(this,void 0,void 0,function(){var Fe,at;return _(this,function(rt){switch(rt.label){case 0:return Y<3?[4,this.renderSolidBorder(J,de,Ce)]:[3,2];case 1:return rt.sent(),[2];case 2:return Fe=fc(Ce,de),this.path(Fe),this.ctx.fillStyle=jt(J),this.ctx.fill(),at=pc(Ce,de),this.path(at),this.ctx.fill(),[2]}})})},G.prototype.renderNodeBackgroundAndBorders=function(J){return k(this,void 0,void 0,function(){var Y,de,Ce,Fe,at,rt,It,Ft,nn=this;return _(this,function(un){switch(un.label){case 0:return this.applyEffects(J.getEffects(2)),Y=J.container.styles,de=!rn(Y.backgroundColor)||Y.backgroundImage.length,Ce=[{style:Y.borderTopStyle,color:Y.borderTopColor,width:Y.borderTopWidth},{style:Y.borderRightStyle,color:Y.borderRightColor,width:Y.borderRightWidth},{style:Y.borderBottomStyle,color:Y.borderBottomColor,width:Y.borderBottomWidth},{style:Y.borderLeftStyle,color:Y.borderLeftColor,width:Y.borderLeftWidth}],Fe=Tc(lu(Y.backgroundClip,0),J.curves),de||Y.boxShadow.length?(this.ctx.save(),this.path(Fe),this.ctx.clip(),rn(Y.backgroundColor)||(this.ctx.fillStyle=jt(Y.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(J.container)]):[3,2];case 1:un.sent(),this.ctx.restore(),Y.boxShadow.slice(0).reverse().forEach(function(Sr){nn.ctx.save();var Qn=Es(J.curves),Ar=Sr.inset?0:Cc,va=hc(Qn,-Ar+(Sr.inset?1:-1)*Sr.spread.number,(Sr.inset?1:-1)*Sr.spread.number,Sr.spread.number*(Sr.inset?-2:2),Sr.spread.number*(Sr.inset?-2:2));Sr.inset?(nn.path(Qn),nn.ctx.clip(),nn.mask(va)):(nn.mask(Qn),nn.ctx.clip(),nn.path(va)),nn.ctx.shadowOffsetX=Sr.offsetX.number+Ar,nn.ctx.shadowOffsetY=Sr.offsetY.number,nn.ctx.shadowColor=jt(Sr.color),nn.ctx.shadowBlur=Sr.blur.number,nn.ctx.fillStyle=Sr.inset?jt(Sr.color):"rgba(0,0,0,1)",nn.ctx.fill(),nn.ctx.restore()}),un.label=2;case 2:at=0,rt=0,It=Ce,un.label=3;case 3:return rt<It.length?(Ft=It[rt],Ft.style!==0&&!rn(Ft.color)&&Ft.width>0?Ft.style===2?[4,this.renderDashedDottedBorder(Ft.color,Ft.width,at,J.curves,2)]:[3,5]:[3,11]):[3,13];case 4:return un.sent(),[3,11];case 5:return Ft.style===3?[4,this.renderDashedDottedBorder(Ft.color,Ft.width,at,J.curves,3)]:[3,7];case 6:return un.sent(),[3,11];case 7:return Ft.style===4?[4,this.renderDoubleBorder(Ft.color,Ft.width,at,J.curves)]:[3,9];case 8:return un.sent(),[3,11];case 9:return[4,this.renderSolidBorder(Ft.color,at,J.curves)];case 10:un.sent(),un.label=11;case 11:at++,un.label=12;case 12:return rt++,[3,3];case 13:return[2]}})})},G.prototype.renderDashedDottedBorder=function(J,Y,de,Ce,Fe){return k(this,void 0,void 0,function(){var at,rt,It,Ft,nn,un,Sr,Qn,Ar,va,wr,Br,bi,Ja,Pi,Or,Pi,Or;return _(this,function(Ii){return this.ctx.save(),at=mc(Ce,de),rt=lc(Ce,de),Fe===2&&(this.path(rt),this.ctx.clip()),to(rt[0])?(It=rt[0].start.x,Ft=rt[0].start.y):(It=rt[0].x,Ft=rt[0].y),to(rt[1])?(nn=rt[1].end.x,un=rt[1].end.y):(nn=rt[1].x,un=rt[1].y),de===0||de===2?Sr=Math.abs(It-nn):Sr=Math.abs(Ft-un),this.ctx.beginPath(),Fe===3?this.formatPath(at):this.formatPath(rt.slice(0,2)),Qn=Y<3?Y*3:Y*2,Ar=Y<3?Y*2:Y,Fe===3&&(Qn=Y,Ar=Y),va=!0,Sr<=Qn*2?va=!1:Sr<=Qn*2+Ar?(wr=Sr/(2*Qn+Ar),Qn*=wr,Ar*=wr):(Br=Math.floor((Sr+Ar)/(Qn+Ar)),bi=(Sr-Br*Qn)/(Br-1),Ja=(Sr-(Br+1)*Qn)/Br,Ar=Ja<=0||Math.abs(Ar-bi)<Math.abs(Ar-Ja)?bi:Ja),va&&(Fe===3?this.ctx.setLineDash([0,Qn+Ar]):this.ctx.setLineDash([Qn,Ar])),Fe===3?(this.ctx.lineCap="round",this.ctx.lineWidth=Y):this.ctx.lineWidth=Y*2+1.1,this.ctx.strokeStyle=jt(J),this.ctx.stroke(),this.ctx.setLineDash([]),Fe===2&&(to(rt[0])&&(Pi=rt[3],Or=rt[0],this.ctx.beginPath(),this.formatPath([new zn(Pi.end.x,Pi.end.y),new zn(Or.start.x,Or.start.y)]),this.ctx.stroke()),to(rt[1])&&(Pi=rt[1],Or=rt[2],this.ctx.beginPath(),this.formatPath([new zn(Pi.end.x,Pi.end.y),new zn(Or.start.x,Or.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},G.prototype.render=function(J){return k(this,void 0,void 0,function(){var Y;return _(this,function(de){switch(de.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=jt(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),Y=Ac(J),[4,this.renderStack(Y)];case 1:return de.sent(),this.applyEffects([]),[2,this.canvas]}})})},G}(dc),xc=function(X){return X instanceof Du||X instanceof Iu?!0:X instanceof nu&&X.type!==hl&&X.type!==Bl},Tc=function(X,G){switch(X){case 0:return Es(G);case 2:return wo(G);case 1:default:return Ll(G)}},Sc=function(X){switch(X){case 1:return"center";case 2:return"right";case 0:default:return"left"}},Oc=["-apple-system","system-ui"],Rc=function(X){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?X.filter(function(G){return Oc.indexOf(G)===-1}):X},Bc=function(X){K(G,X);function G(J,Y){var de=X.call(this,J,Y)||this;return de.canvas=Y.canvas?Y.canvas:document.createElement("canvas"),de.ctx=de.canvas.getContext("2d"),de.options=Y,de.canvas.width=Math.floor(Y.width*Y.scale),de.canvas.height=Math.floor(Y.height*Y.scale),de.canvas.style.width=Y.width+"px",de.canvas.style.height=Y.height+"px",de.ctx.scale(de.options.scale,de.options.scale),de.ctx.translate(-Y.x,-Y.y),de.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+Y.width+"x"+Y.height+" at "+Y.x+","+Y.y+") with scale "+Y.scale),de}return G.prototype.render=function(J){return k(this,void 0,void 0,function(){var Y,de;return _(this,function(Ce){switch(Ce.label){case 0:return Y=Zl(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,J),[4,Ic(Y)];case 1:return de=Ce.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=jt(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(de,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},G}(dc),Ic=function(X){return new Promise(function(G,J){var Y=new Image;Y.onload=function(){G(Y)},Y.onerror=J,Y.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(X))})},Dc=function(){function X(G){var J=G.id,Y=G.enabled;this.id=J,this.enabled=Y,this.start=Date.now()}return X.prototype.debug=function(){for(var G=[],J=0;J<arguments.length;J++)G[J]=arguments[J];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,O([this.id,this.getTime()+"ms"],G)):this.info.apply(this,G))},X.prototype.getTime=function(){return Date.now()-this.start},X.prototype.info=function(){for(var G=[],J=0;J<arguments.length;J++)G[J]=arguments[J];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.info=="function"&&console.info.apply(console,O([this.id,this.getTime()+"ms"],G)))},X.prototype.warn=function(){for(var G=[],J=0;J<arguments.length;J++)G[J]=arguments[J];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,O([this.id,this.getTime()+"ms"],G)):this.info.apply(this,G))},X.prototype.error=function(){for(var G=[],J=0;J<arguments.length;J++)G[J]=arguments[J];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.error=="function"?console.error.apply(console,O([this.id,this.getTime()+"ms"],G)):this.info.apply(this,G))},X.instances={},X}(),Lc=function(){function X(G,J){var Y;this.windowBounds=J,this.instanceName="#"+X.instanceCount++,this.logger=new Dc({id:this.instanceName,enabled:G.logging}),this.cache=(Y=G.cache)!==null&&Y!==void 0?Y:new Fa(this,G)}return X.instanceCount=1,X}(),Mc=function(X,G){return G===void 0&&(G={}),Pc(X,G)};typeof window!="undefined"&&Hr.setContext(window);var Pc=function(X,G){return k(void 0,void 0,void 0,function(){var J,Y,de,Ce,Fe,at,rt,It,Ft,nn,un,Sr,Qn,Ar,va,wr,Br,bi,Ja,Pi,Or,Ii,Or,Ui,Xa,Ms,_s,js,Zo,fl,Ml,Pl,Ul,Vl,pl,Nl,Xl,Yl,xl,Jl;return _(this,function(Tl){switch(Tl.label){case 0:if(!X||typeof X!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(J=X.ownerDocument,!J)throw new Error("Element is not attached to a Document");if(Y=J.defaultView,!Y)throw new Error("Document is not attached to a Window");return de={allowTaint:(Ui=G.allowTaint)!==null&&Ui!==void 0?Ui:!1,imageTimeout:(Xa=G.imageTimeout)!==null&&Xa!==void 0?Xa:15e3,proxy:G.proxy,useCORS:(Ms=G.useCORS)!==null&&Ms!==void 0?Ms:!1},Ce=I({logging:(_s=G.logging)!==null&&_s!==void 0?_s:!0,cache:G.cache},de),Fe={windowWidth:(js=G.windowWidth)!==null&&js!==void 0?js:Y.innerWidth,windowHeight:(Zo=G.windowHeight)!==null&&Zo!==void 0?Zo:Y.innerHeight,scrollX:(fl=G.scrollX)!==null&&fl!==void 0?fl:Y.pageXOffset,scrollY:(Ml=G.scrollY)!==null&&Ml!==void 0?Ml:Y.pageYOffset},at=new M(Fe.scrollX,Fe.scrollY,Fe.windowWidth,Fe.windowHeight),rt=new Lc(Ce,at),It=(Pl=G.foreignObjectRendering)!==null&&Pl!==void 0?Pl:!1,Ft={allowTaint:(Ul=G.allowTaint)!==null&&Ul!==void 0?Ul:!1,onclone:G.onclone,ignoreElements:G.ignoreElements,inlineImages:It,copyStyles:It},rt.logger.debug("Starting document clone with size "+at.width+"x"+at.height+" scrolled to "+-at.left+","+-at.top),nn=new j(rt,X,Ft),un=nn.clonedReferenceElement,un?[4,nn.toIFrame(J,at)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return Sr=Tl.sent(),Qn=Xi(un)||tc(un)?n(un.ownerDocument):x(rt,un),Ar=Qn.width,va=Qn.height,wr=Qn.left,Br=Qn.top,bi=Uc(rt,un,G.backgroundColor),Ja={canvas:G.canvas,backgroundColor:bi,scale:(pl=(Vl=G.scale)!==null&&Vl!==void 0?Vl:Y.devicePixelRatio)!==null&&pl!==void 0?pl:1,x:((Nl=G.x)!==null&&Nl!==void 0?Nl:0)+wr,y:((Xl=G.y)!==null&&Xl!==void 0?Xl:0)+Br,width:(Yl=G.width)!==null&&Yl!==void 0?Yl:Math.ceil(Ar),height:(xl=G.height)!==null&&xl!==void 0?xl:Math.ceil(va)},It?(rt.logger.debug("Document cloned, using foreign object rendering"),Or=new Bc(rt,Ja),[4,Or.render(un)]):[3,3];case 2:return Pi=Tl.sent(),[3,5];case 3:return rt.logger.debug("Document cloned, element located at "+wr+","+Br+" with size "+Ar+"x"+va+" using computed rendering"),rt.logger.debug("Starting DOM parsing"),Ii=Pu(rt,un),bi===Ii.styles.backgroundColor&&(Ii.styles.backgroundColor=xn.TRANSPARENT),rt.logger.debug("Starting renderer for element at "+Ja.x+","+Ja.y+" with size "+Ja.width+"x"+Ja.height),Or=new wc(rt,Ja),[4,Or.render(Ii)];case 4:Pi=Tl.sent(),Tl.label=5;case 5:return((Jl=G.removeContainer)!==null&&Jl!==void 0?Jl:!0)&&(j.destroy(Sr)||rt.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),rt.logger.debug("Finished rendering"),[2,Pi]}})})},Uc=function(X,G,J){var Y=G.ownerDocument,de=Y.documentElement?ln(X,getComputedStyle(Y.documentElement).backgroundColor):xn.TRANSPARENT,Ce=Y.body?ln(X,getComputedStyle(Y.body).backgroundColor):xn.TRANSPARENT,Fe=typeof J=="string"?ln(X,J):J===null?xn.TRANSPARENT:4294967295;return G===Y.documentElement?rn(de)?rn(Ce)?Fe:Ce:de:Fe};return Mc})},wRmb:function(Re,te,v){"use strict";v.d(te,"a",function(){return p});var Z=v("rePB"),K=v("KQm4"),I=v("VTBJ"),k=v("Ff2n"),_=v("q1tI"),O=v.n(_),M=v("Kwbf"),x=v("Zm9Q"),n=v("hW8S");function p(i){return Object(x.a)(i).filter(function(u){return _.isValidElement(u)}).map(function(u){var d=u.key,f=u.props,o=f.children,c=Object(k.a)(f,["children"]),E=Object(I.a)({key:d},c);return o&&(E.children=p(o)),E})}function a(i){return i.reduce(function(u,d){var f=d.fixed,o=f===!0?"left":f,c=d.children;return c&&c.length>0?[].concat(Object(K.a)(u),Object(K.a)(a(c).map(function(E){return Object(I.a)({fixed:o},E)}))):[].concat(Object(K.a)(u),[Object(I.a)(Object(I.a)({},d),{},{fixed:o})])},[])}function t(i){for(var u=!0,d=0;d<i.length;d+=1){var f=i[d];if(u&&f.fixed!=="left")u=!1;else if(!u&&f.fixed==="left"){Object(M.a)(!1,"Index ".concat(d-1," of `columns` missing `fixed='left'` prop."));break}}for(var o=!0,c=i.length-1;c>=0;c-=1){var E=i[c];if(o&&E.fixed!=="right")o=!1;else if(!o&&E.fixed==="right"){Object(M.a)(!1,"Index ".concat(c+1," of `columns` missing `fixed='right'` prop."));break}}}function h(i){return i.map(function(u){var d=u.fixed,f=Object(k.a)(u,["fixed"]),o=d;return d==="left"?o="right":d==="right"&&(o="left"),Object(I.a)({fixed:o},f)})}function s(i,u){var d=i.prefixCls,f=i.columns,o=i.children,c=i.expandable,E=i.expandedKeys,B=i.getRowKey,w=i.onTriggerExpand,P=i.expandIcon,C=i.rowExpandable,b=i.expandIconColumnIndex,l=i.direction,A=i.expandRowByClick,g=_.useMemo(function(){return f||p(o)},[f,o]),T=_.useMemo(function(){if(c){var U,N=b||0,S=g[N],H=(U={},Object(Z.a)(U,n.a,{className:"".concat(d,"-expand-icon-col")}),Object(Z.a)(U,"title",""),Object(Z.a)(U,"fixed",S?S.fixed:null),Object(Z.a)(U,"className","".concat(d,"-row-expand-icon-cell")),Object(Z.a)(U,"render",function(z,Q,$){var ee=B(Q,$),fe=E.has(ee),Ae=C?C(Q):!0,ce=P({prefixCls:d,expanded:fe,expandable:Ae,record:Q,onExpand:w});return A?_.createElement("span",{onClick:function(be){return be.stopPropagation()}},ce):ce}),U),F=g.slice();return N>=0&&F.splice(N,0,H),F}return g},[c,g,B,E,P,l]),m=_.useMemo(function(){var U=T;return u&&(U=u(U)),U.length||(U=[{render:function(){return null}}]),U},[u,T,l]),y=_.useMemo(function(){return l==="rtl"?h(a(m)):a(m)},[m,l]);return[m,y]}te.b=s},wYyv:function(Re,te,v){"use strict";const Z=(I,k,_)=>{const O=k<0?I.length+k:k;if(O>=0&&O<I.length){const M=_<0?I.length+_:_,[x]=I.splice(k,1);I.splice(M,0,x)}},K=(I,k,_)=>(I=[...I],Z(I,k,_),I);Re.exports=K,Re.exports.mutate=Z},wzkS:function(Re,te,v){"use strict";v.d(te,"c",function(){return _}),v.d(te,"b",function(){return O}),v.d(te,"d",function(){return M}),v.d(te,"a",function(){return n}),v.d(te,"e",function(){return p});var Z=v("9og8"),K=v("WmNS"),I=v.n(K),k=v("ErOA");function _(a){return Object(k.c)("libraries/".concat(a,".json"))}function O(){return Object(k.c)("library_tags.json")}function M(a){return x.apply(this,arguments)}function x(){return x=Object(Z.a)(I.a.mark(function a(t){var h;return I.a.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,Object(k.b)("attachments/".concat(t,".json"));case 2:return h=i.sent,i.abrupt("return",h.status===0);case 4:case"end":return i.stop()}},a)})),x.apply(this,arguments)}function n(a){return Object(k.f)("libraries.json",a)}function p(a,t){return Object(k.g)("libraries/".concat(a,".json"),t)}},x6Kt:function(Re,te,v){var Z=v("y+Vt"),K=v("VpOo"),I=v("nPnh"),k=I.subPixelOptimizeRect,_={},O=Z.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(M,x){var n,p,a,t;this.subPixelOptimize?(k(_,x,this.style),n=_.x,p=_.y,a=_.width,t=_.height,_.r=x.r,x=_):(n=x.x,p=x.y,a=x.width,t=x.height),x.r?K.buildPath(M,x):M.rect(n,p,a,t),M.closePath();return}});Re.exports=O},"y+Vt":function(Re,te,v){var Z=v("Gev7"),K=v("bYtY"),I=v("IMiH"),k=v("2DNl"),_=v("3C/r"),O=_.prototype.getCanvasPattern,M=Math.abs,x=new I(!0);function n(a){Z.call(this,a),this.path=null}n.prototype={constructor:n,type:"path",__dirtyPath:!0,strokeContainThreshold:5,segmentIgnoreThreshold:0,subPixelOptimize:!1,brush:function(a,t){var h=this.style,s=this.path||x,i=h.hasStroke(),u=h.hasFill(),d=h.fill,f=h.stroke,o=u&&!!d.colorStops,c=i&&!!f.colorStops,E=u&&!!d.image,B=i&&!!f.image;if(h.bind(a,this,t),this.setTransform(a),this.__dirty){var w;o&&(w=w||this.getBoundingRect(),this._fillGradient=h.getGradient(a,d,w)),c&&(w=w||this.getBoundingRect(),this._strokeGradient=h.getGradient(a,f,w))}o?a.fillStyle=this._fillGradient:E&&(a.fillStyle=O.call(d,a)),c?a.strokeStyle=this._strokeGradient:B&&(a.strokeStyle=O.call(f,a));var P=h.lineDash,C=h.lineDashOffset,b=!!a.setLineDash,l=this.getGlobalScale();if(s.setScale(l[0],l[1],this.segmentIgnoreThreshold),this.__dirtyPath||P&&!b&&i?(s.beginPath(a),P&&!b&&(s.setLineDash(P),s.setLineDashOffset(C)),this.buildPath(s,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(a.beginPath(),this.path.rebuildPath(a)),u)if(h.fillOpacity!=null){var A=a.globalAlpha;a.globalAlpha=h.fillOpacity*h.opacity,s.fill(a),a.globalAlpha=A}else s.fill(a);if(P&&b&&(a.setLineDash(P),a.lineDashOffset=C),i)if(h.strokeOpacity!=null){var A=a.globalAlpha;a.globalAlpha=h.strokeOpacity*h.opacity,s.stroke(a),a.globalAlpha=A}else s.stroke(a);P&&b&&a.setLineDash([]),h.text!=null&&(this.restoreTransform(a),this.drawRectText(a,this.getBoundingRect()))},buildPath:function(a,t,h){},createPathProxy:function(){this.path=new I},getBoundingRect:function(){var a=this._rect,t=this.style,h=!a;if(h){var s=this.path;s||(s=this.path=new I),this.__dirtyPath&&(s.beginPath(),this.buildPath(s,this.shape,!1)),a=s.getBoundingRect()}if(this._rect=a,t.hasStroke()){var i=this._rectWithStroke||(this._rectWithStroke=a.clone());if(this.__dirty||h){i.copy(a);var u=t.lineWidth,d=t.strokeNoScale?this.getLineScale():1;t.hasFill()||(u=Math.max(u,this.strokeContainThreshold||4)),d>1e-10&&(i.width+=u/d,i.height+=u/d,i.x-=u/d/2,i.y-=u/d/2)}return i}return a},contain:function(a,t){var h=this.transformCoordToLocal(a,t),s=this.getBoundingRect(),i=this.style;if(a=h[0],t=h[1],s.contain(a,t)){var u=this.path.data;if(i.hasStroke()){var d=i.lineWidth,f=i.strokeNoScale?this.getLineScale():1;if(f>1e-10&&(i.hasFill()||(d=Math.max(d,this.strokeContainThreshold)),k.containStroke(u,d/f,a,t)))return!0}if(i.hasFill())return k.contain(u,a,t)}return!1},dirty:function(a){a==null&&(a=!0),a&&(this.__dirtyPath=a,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(a){return this.animate("shape",a)},attrKV:function(a,t){a==="shape"?(this.setShape(t),this.__dirtyPath=!0,this._rect=null):Z.prototype.attrKV.call(this,a,t)},setShape:function(a,t){var h=this.shape;if(h){if(K.isObject(a))for(var s in a)a.hasOwnProperty(s)&&(h[s]=a[s]);else h[a]=t;this.dirty(!0)}return this},getLineScale:function(){var a=this.transform;return a&&M(a[0]-1)>1e-10&&M(a[3]-1)>1e-10?Math.sqrt(M(a[0]*a[3]-a[2]*a[1])):1}},n.extend=function(a){var t=function(s){n.call(this,s),a.style&&this.style.extendFrom(a.style,!1);var i=a.shape;if(i){this.shape=this.shape||{};var u=this.shape;for(var d in i)!u.hasOwnProperty(d)&&i.hasOwnProperty(d)&&(u[d]=i[d])}a.init&&a.init.call(this,s)};K.inherits(t,n);for(var h in a)h!=="style"&&h!=="shape"&&(t.prototype[h]=a[h]);return t},K.inherits(n,Z);var p=n;Re.exports=p},"y0+3":function(Re,te,v){"use strict";v.d(te,"a",function(){return a}),v.d(te,"b",function(){return h});var Z=/margin|padding|width|height|max|min|offset/,K={left:!0,top:!0},I={cssFloat:1,styleFloat:1,float:1};function k(s){return s.nodeType===1?s.ownerDocument.defaultView.getComputedStyle(s,null):{}}function _(s,i,u){if(i=i.toLowerCase(),u==="auto"){if(i==="height")return s.offsetHeight;if(i==="width")return s.offsetWidth}return i in K||(K[i]=Z.test(i)),K[i]?parseFloat(u)||0:u}function O(s,i){var u=arguments.length,d=k(s);return i=I[i]?"cssFloat"in s.style?"cssFloat":"styleFloat":i,u===1?d:_(s,i,d[i]||s.style[i])}function M(s,i,u){var d=arguments.length;if(i=I[i]?"cssFloat"in s.style?"cssFloat":"styleFloat":i,d===3)return typeof u=="number"&&Z.test(i)&&(u="".concat(u,"px")),s.style[i]=u,u;for(var f in i)i.hasOwnProperty(f)&&M(s,f,i[f]);return k(s)}function x(s){return s===document.body?document.documentElement.clientWidth:s.offsetWidth}function n(s){return s===document.body?window.innerHeight||document.documentElement.clientHeight:s.offsetHeight}function p(){var s=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),i=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:s,height:i}}function a(){var s=document.documentElement.clientWidth,i=window.innerHeight||document.documentElement.clientHeight;return{width:s,height:i}}function t(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function h(s){var i=s.getBoundingClientRect(),u=document.documentElement;return{left:i.left+(window.pageXOffset||u.scrollLeft)-(u.clientLeft||document.body.clientLeft||0),top:i.top+(window.pageYOffset||u.scrollTop)-(u.clientTop||document.body.clientTop||0)}}},"y1J/":function(Re,te,v){Re.exports=v.p+"static/yz.688d901a.png"},y23F:function(Re,te){function v(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this)}v.prototype={constructor:v,_dragStart:function(I){for(var k=I.target;k&&!k.draggable;)k=k.parent;k&&(this._draggingTarget=k,k.dragging=!0,this._x=I.offsetX,this._y=I.offsetY,this.dispatchToElement(Z(k,I),"dragstart",I.event))},_drag:function(I){var k=this._draggingTarget;if(k){var _=I.offsetX,O=I.offsetY,M=_-this._x,x=O-this._y;this._x=_,this._y=O,k.drift(M,x,I),this.dispatchToElement(Z(k,I),"drag",I.event);var n=this.findHover(_,O,k).target,p=this._dropTarget;this._dropTarget=n,k!==n&&(p&&n!==p&&this.dispatchToElement(Z(p,I),"dragleave",I.event),n&&n!==p&&this.dispatchToElement(Z(n,I),"dragenter",I.event))}},_dragEnd:function(I){var k=this._draggingTarget;k&&(k.dragging=!1),this.dispatchToElement(Z(k,I),"dragend",I.event),this._dropTarget&&this.dispatchToElement(Z(this._dropTarget,I),"drop",I.event),this._draggingTarget=null,this._dropTarget=null}};function Z(I,k){return{target:I,topTarget:k&&k.topTarget}}var K=v;Re.exports=K},y5JW:function(Re,te,v){"use strict";v.d(te,"c",function(){return u}),v.d(te,"a",function(){return d});var Z=v("DZo9"),K=v("8z0m"),I=v("+L6B"),k=v("2/Rp"),_=v("9og8"),O=v("miYZ"),M=v("tsqr"),x=v("k1fw"),n=v("oBTY"),p=v("WmNS"),a=v.n(p),t=v("q1tI"),h=v.n(t),s=v("m3rI"),i=v("wzkS"),u="\u3000\u3000";function d(f){var o=["Bytes","KB","MB","GB","TB"];if(f==0)return"0 Byte";var c=parseInt(""+Math.floor(Math.log(f)/Math.log(1024)),10);return(f/Math.pow(1024,c)).toFixed(1)+" "+o[c]}te.b=function(f){var o=f.value,c=o===void 0?[]:o,E=f.action,B=f.onChange,w=f.className,P=f.maxSize,C=P===void 0?150:P,b=f.title,l=b===void 0?"\u6587\u4EF6\u4E0A\u4F20":b,A=f.accept,g=A===void 0?null:A,T={multiple:!1,fileList:c,accept:g,withCredentials:!0,beforeUpload:function(U){var N=U.size/1024/1024;return!0},action:"".concat(s.a.API_SERVER,"/api/attachments.json"),onChange:function(U){var N,S,H=Object(n.a)(U.fileList);if(H=H.map(function(z){return z.name.indexOf(u)===-1&&(z.name="".concat(z.name).concat(u).concat(d(z.size))),Object(x.a)({},z)}),U.file.status==="done"&&((N=U.file)===null||N===void 0||((S=N.response)===null||S===void 0)?void 0:S.status)===-1){var F,R;M.b.error((F=U.file)===null||F===void 0||((R=F.response)===null||R===void 0)?void 0:R.message),B([]);return}B(H)},onRemove:function(){var y=Object(_.a)(a.a.mark(function N(S){var H,F,R;return a.a.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:if(H=S.size/1024/1024,!(S.status==="uploading")){Q.next=3;break}return Q.abrupt("return",!0);case 3:if(H<C){Q.next=7;break}return Q.abrupt("return",!0);case 7:if(F=S.response?S.response.id:S.uid,!F){Q.next=15;break}return Q.next=11,Object(i.d)(S.response?S.response.id:S.id);case 11:return R=Q.sent,Q.abrupt("return",R);case 15:return Q.abrupt("return",!0);case 16:case"end":return Q.stop()}},N)}));function U(N){return y.apply(this,arguments)}return U}()};function m(y){y.preventDefault(),y.stopPropagation()}return h.a.createElement("div",{className:"single-upload ".concat(w||"")},h.a.createElement(K.a,T,h.a.createElement(k.a,{type:"primary",title:c.length>0?"\u6BCF\u6B21\u53EA\u80FD\u4E0A\u4F20\u4E00\u4E2A\u8D44\u6E90\uFF0C \u5220\u9664\u4E0B\u9762\u8D44\u6E90\u53EF\u91CD\u65B0\u4E0A\u4F20 ":"",disabled:c.length>0,ghost:!0},l),h.a.createElement("span",{onClick:m,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",C,"M)"," ")))}},"yTi+":function(Re,te,v){Re.exports=v.p+"static/AssistantCode3.fdd8db3c.jpeg"},yslc:function(Re,te){Re.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALoAAABSCAYAAADjGc4eAAAOHklEQVR4Xu1dCXQURRr+emZyTO6D3BCEgKCInCKeK3IoiyIqlxLyQBRBV8DNhCCrS3Z9Cq66KOoi68ECKocCcutTLhUERM1MEpBLEuQmQMKEnDNd+6onEzKTuXqmJ5l0V/EeL+mp+qu+r77UVP1V9TcHffZbIJgOlhgDMmaAA8lTwVDxJQh5UMY4GTSFM8AJ+PW6cIDsBEEfhfPB4MuUAYvQaTowOwV1NXtB0E6mWBksBTNwTeiUBENud/CmHwBEKZgTBl2GDNgKnQIsyBkCM9kEEI0M8TJICmWgqdCFkT17MngsUignDLYMGXAsdAo0XzcPILkyxMwgKZAB50InhIMhZxUIGalAXhhkmTHgXOgU6PG8UFwxbgdBf5nhZnAUxoBroVMyjryQgMraPSDoqDBuGFwZMeBe6MLi9IWuIHW7QUisjLAzKApiwDOhC25H3T3g8TUICVYQPwyqTBjwXOgUsD4nC4RfIhPsDIaCGBAndEHsujwQMkdBHDGoMmBAvNAtPvZlAMmUAX4GQSEMeCf0wrxgmCu+ASF3K4QnBrOVM+Cd0Cnoorw4mIw/guD6Vs4Ba74CGPBe6IInJicDZn4PgDYK4IpBbMUM+CZ0Qey5t4M3bwUhoa2YB4dNT1CHIzkoEkZzDYrrLtvkCeU0aBsULTw7WntRbtARoQrGbWHtBVw/Vpaggq9t1Rh9F7qwOM0ZA45fDgJp7PmJ0i4hCegU3AabjAc9qmF24r14JeXP+MZ4GEN+/69NmVvD0rGn8zThWYghF7XE7JFN+0wL0x5BQfVZLL60D1XE5JUNfxTqEZqC/C7Zgumeh96EvvqMP6ppNpvSCTM/ZxbAz222lousqGtIAnZkPIMETThmndmM1y/scGvB30KfFNcPH7YbLbRjwokVWHJ5v/CzltMgWq112z5HGXgQnDdVeFW2cSEmdFcU6nUfgpBJPrPsBwPhqmCsSM/EA9E3CtaXXPoJk09+4XIk9qfQrwuKhaFLNiLVodh7tQS3HX0HpB735Lj+WNTOu0Ojl0yViC/6u88MMqG7opDkaWCo2AJCBvnMtB8MqMFhQdoIPNPmDsH6+vIijCxegjrwDmvzl9BV4LAtYwr+FJEBEzHj1iML8EvVqYY2MKFL3/nSTV2sbTuWGw2jaReAbtI3VxqLuQkDMC91mGBsXXkhRhUvFcQeBBViNWENlcxocxdeSBqInRXHMLpkmU3lfbRtsbnjk8KzdgdetvlmKDVdBZ1COEuvJA/F7KSBwsfPnVyLdy9Suq6lOLUWafULXbGITYTHwZrzYos1yc9GdE8oPJDdHnXcHhCS7En2lsgzJ2kw8pLvA094YaG5teIoBoRnYFunqT43J6koz+E8mX6jLGz7KJ6KtxzvpwvQJ/5Y5XN9nhp4NLo7empTPcqepIlsaOcHF/fgnMnoUbmi6nNYUZbvUd7mzCT9iG5tfcHMvjDzOwFybYhsTmQe1PVGygPClOGzsl+F3P4UOl0jrGyfiWFRljXCBjptKlnqtbfGA3hNsixLfwyZsf4N3bO6zCDgCrTkP6FTpAbdQyBYA0JUgQbcUXvoiEsFaU26hHvwUvJgbK84ihHHF9sU6RvWDlszpgjPEgr/biNYI19jM3FJ0kRgY4dJoGVo+rxMj3ElnzasDai/flBkZ3xeZoDJyXpBCv6sQj9XZ4TBjbswUhWC/uEWP/qeqyWgmFylm0KTkRIUBWUKnTKj180AIfOl6KjmtiHVYnRB6gg8l3Cn0Pz/lO7CtFNfwtzoT2HtdRMwIvom6KtOo8/h+TafSYnZKnT6h2a/5rCvR+wcfUm7sciK66tgoVMG87PfBfCslJ3WHLZeTByEl1Pux8byA3iw+GObKsVsGD0U1Q2fpj8uuDOt0ySrsYmxt+Dj9DHCrxNPrMD/6n3p/sDHhO4PVhvbJKvU0O9bBxCLq6MFUhgX5LBWOlVwtqv5r5RhyEkcgE8v/4LME595LXQ6HUoPimniDWnsS6dz9uHFi4V1gtWb4wtNtL2rywtsTDCh+8Kop2UL8yJgNn4Hgl6eFpEqHz23Yez+qkNzruaUH7QdhSfjbxWmG8+eWuu10B1VTH3p2zOm4O6IDFw0XUW3Q6/jnKkCAyM64dv6ub8v+McUL8Oqcj0Tej0D/l2M2vfUbzNTUcPvBSFtfelEsWW9FfoX7bPwaMzNmHtuK2af3SKp0F9NHir46GkaXbwUn5cbhJ/bqMNwW/h1biF2CI7D22kjhHxTT67GqbpymzI/V57EadMVJvQWETqttDC3B8zm70FIpNvelDAD3YRpnGa0uVvwqFhHdDrnzoztbZNneFQ3pAfHClv0P1X9YfMZ9TOPiukhPFtYuhtmO2/JS2e+Qhlf3QSBBirBl06/KWj61ngYg+0OjHkCu/Fisctv83C4ptRtMTZ1cUuRxBn0ugdByHqJrYoyNytxAOamDGsQ+oTYvlicPlaUDVeZ6W7pSbtRlrrsVrUfj/ujujYU/eTyzxh/YrnoehsLvetvr+FQzQW3NpjQ3VIkcYb8nH8D/PMSWxVlzl7o9Oz1hLhbGmwkayIxPLobCCH4+NK+Ji6/RE2E4BKk6aOLe5t8PuvMJlw2VzXYS9VEYVPHSeipTROemQkPNacCE7qobvM6c/PO0WkzC3SZMBPbgyNeN9/7gvZCt7f0z6T7hKkNPedyz7GFTSoS4168MSQJX3V8Cu2CYwQ7b5zfgdSgKDwe21sSoYudurANI+9141lJQ3YfEO6HQLiN5ErodIe05MYXhYNVT5xYicWXf/JJ6COiumFth4m4aq7BpJOrsLJMD+sGixQjulihe9ZZ3uVS7s6olS+9LhEg+wPl1TGuhP5A1A3Y0GESKvla0ANajq6RiRnRqddnb+dpGFvyiXCbiKaWFPrB6nNYXe/lcSZnsYe6Hoq6Cd21KQrfGSWLgmA4Qu+V3uXdOCF9KWdCp/7tbzOexoCITlh2aT+y/ljhsHIxQqcGgjm1zcZUSwqdHQGQXk8Wi/qchSC85QRUgCRnQl/UdiQmx/cXFqF3HX0PuyqLJRG6vZGWEPro6B7opU2Dofo0lrs5Siv2rMuo6JvRW9sWBdVnmhxzCIQu9/9i1KB7CjyxvVkcAMgdCb3xhYi/nlqP+aXfOW2p2BE9EIQuhnaxQhdjuyXy+lfollAY2wMxAq/14oV18RSvDsPxG2YLdzgXXPge00+vc9kfTOgtIVfv6/Sf0C3b/T8H4i2jJ+P64d20RxCi0qCGN2FMyTKsu1KEx2J6CrudI4uXurwKR+lmQvdedC1R0j9CP7IgBFdL6Pd+v5YA5arO+anDMSPBEjKyzFyFGLVWuE73t7NbMO/8dtAtek8uP3QLScJH9aEq7jz6nkdlGrerJeboYvqCTV08YSs/m17HmeBJ1ubMMy6mFz5pP06ocvaZzZh3fhueib8d76Q9DI7jsPzyr5hz9mscqXV/bsTXdvsqdHo5e//1M4RmeOpHF9NmJnR3bOl100DI2+6yNffnnYPb4Jfrn0eEOgTvl+7G1FNrGppA/wDoOZcgTi08O1pTiiM1F3DWZASNk0JHeHq7nm7b09v99H4//Z+O/nQbX8OpoIZKKB/CqaFVBWFdeRHWXil0CtNTodPIBF1DE1HF16GSr0MVqQM9M5OXPAQT4/oJ4TKSi/6Bi+ZKSSllQndFJ339ixnfBOJbp3dkTBXiqNDNkt6H56PaLvxbL20q5iQNAT2xSEd3X9PQ3z/AV8ZDkgj9SvdXEKpyfHHEemHD1/bal2dCd8YoDXFRCxpTLSAj6/YMTRVu7tAYLs584xRatCoUPbSp6BqSiFi1FtHqUISpgqHmOGHUpiM4PSKg4jjQf87S9FNf4oqLC8WejujU/u5Of2lyRp1e1th85SDevLDTL3ERmdAd9ezpvDCcr9gFkJ5SjyxS2qMiLndwRlzKOjy1Ra/RxWvChdtF9pF67W3QIwR0Z7VxKjdX++0SNa2HXgAZG2O5DLai7FeUSjw18pQnqfL5/h1NW6LXLQch0h3mlgods8MYqGfAd6EbcmaC519jjDIGApkB34Sen3sfOPPm1hKgKJA7grXNvwx4L/SiWZ1gMu1jb5P2bwcx69Iw4J3QaegKk5G+uyhgI+ZKQw+zIhcGxAudEA56Hd1tscRaYIkx0AoYEC90vW4OCMlrBdhYExkDDQyIE7oQHZesDfSXcrH+ZQzYM+C50Atm3gBeiLLVrIGHWJcxBqRgwDOhH8+LQXnFPoB0lqJSZoMx0NwMuBc6yVPBULERhAxt7sax+hgDUjHgXuiG7LngMUuqCpkdxkBLMOBa6AW60TCTlS3RMFYnY0BKBpwLnUa9NZl3B/LLtqQkgtmSNwOOhX7whXjU1NKz5e4DdcubH4ZOJgw0Fbrl7c9fg5B7ZYKRwWAMOLgio89+CwTTGTeMATkxYDui63OyQPglcgLIsDAGKAPXhF6YfQvM3HeBENKZdQ1jQGoGLEIvmJ0EvnZ/c79ES2owzB5jwBkDHGhIZ/2R7QC5g9HEGJArAxzyde8D5Gm5AmS4GAO2c3TGB2OgFTLALR1KA6e5SByvUpEp7s+6tELwrMnKYcCl0DmYVOCyzOM3L2dCV44mZInUhdBrVFCPMmdt3MCmLrLsemWBcih0DlfVBMNNWVu2WdlgI7qydCE7tE2FzpVpVOqhdZkbaJSKhsSELruuVxYgG6FzOK+Bekjd+I16exaY0JWlC9mhbRA6h5PBCBpUM369w1jdTOiy63plAaoX+rEQNTewetzmEmfomdCVpQvZoeWWDi3UctrBlePXnHHpTZcdcgZIUQxErnk43vjI2ovuQP8faDGikjbF4FsAAAAASUVORK5CYII="},yxFR:function(Re,te,v){var Z=v("y+Vt"),K=v("nPnh"),I=K.subPixelOptimizeLine,k={},_=Z.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(O,M){var x,n,p,a;this.subPixelOptimize?(I(k,M,this.style),x=k.x1,n=k.y1,p=k.x2,a=k.y2):(x=M.x1,n=M.y1,p=M.x2,a=M.y2);var t=M.percent;if(t===0)return;O.moveTo(x,n),t<1&&(p=x*(1-t)+p*t,a=n*(1-t)+a*t),O.lineTo(p,a)},pointAt:function(O){var M=this.shape;return[M.x1*(1-O)+M.x2*O,M.y1*(1-O)+M.y2*O]}});Re.exports=_},zarK:function(Re,te,v){var Z=v("YH21"),K=Z.addEventListener,I=Z.removeEventListener,k=Z.normalizeEvent,_=Z.getNativeEvent,O=v("bYtY"),M=v("H6uX"),x=v("ItGF"),n=300,p=x.domSupported,a=function(){var y=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],U=["touchstart","touchend","touchmove"],N={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},S=O.map(y,function(H){var F=H.replace("mouse","pointer");return N.hasOwnProperty(F)?F:H});return{mouse:y,touch:U,pointer:S}}(),t={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]};function h(y){return y==="mousewheel"&&x.browser.firefox?"DOMMouseScroll":y}function s(y){var U=y.pointerType;return U==="pen"||U==="touch"}function i(y){y.touching=!0,y.touchTimer!=null&&(clearTimeout(y.touchTimer),y.touchTimer=null),y.touchTimer=setTimeout(function(){y.touching=!1,y.touchTimer=null},700)}function u(y){y&&(y.zrByTouch=!0)}function d(y,U){return k(y.dom,new o(y,U),!0)}function f(y,U){for(var N=U,S=!1;N&&N.nodeType!==9&&!(S=N.domBelongToZr||N!==U&&N===y.painterRoot);)N=N.parentNode;return S}function o(y,U){this.type=U.type,this.target=this.currentTarget=y.dom,this.pointerType=U.pointerType,this.clientX=U.clientX,this.clientY=U.clientY}var c=o.prototype;c.stopPropagation=c.stopImmediatePropagation=c.preventDefault=O.noop;var E={mousedown:function(y){y=k(this.dom,y),this._mayPointerCapture=[y.zrX,y.zrY],this.trigger("mousedown",y)},mousemove:function(y){y=k(this.dom,y);var U=this._mayPointerCapture;U&&(y.zrX!==U[0]||y.zrY!==U[1])&&l(this,!0),this.trigger("mousemove",y)},mouseup:function(y){y=k(this.dom,y),l(this,!1),this.trigger("mouseup",y)},mouseout:function(y){y=k(this.dom,y),this._pointerCapturing&&(y.zrEventControl="no_globalout");var U=y.toElement||y.relatedTarget;y.zrIsToLocalDOM=f(this,U),this.trigger("mouseout",y)},touchstart:function(y){y=k(this.dom,y),u(y),this._lastTouchMoment=new Date,this.handler.processGesture(y,"start"),E.mousemove.call(this,y),E.mousedown.call(this,y)},touchmove:function(y){y=k(this.dom,y),u(y),this.handler.processGesture(y,"change"),E.mousemove.call(this,y)},touchend:function(y){y=k(this.dom,y),u(y),this.handler.processGesture(y,"end"),E.mouseup.call(this,y),+new Date-this._lastTouchMoment<n&&E.click.call(this,y)},pointerdown:function(y){E.mousedown.call(this,y)},pointermove:function(y){s(y)||E.mousemove.call(this,y)},pointerup:function(y){E.mouseup.call(this,y)},pointerout:function(y){s(y)||E.mouseout.call(this,y)}};O.each(["click","mousewheel","dblclick","contextmenu"],function(y){E[y]=function(U){U=k(this.dom,U),this.trigger(y,U)}});var B={pointermove:function(y){s(y)||B.mousemove.call(this,y)},pointerup:function(y){B.mouseup.call(this,y)},mousemove:function(y){this.trigger("mousemove",y)},mouseup:function(y){var U=this._pointerCapturing;l(this,!1),this.trigger("mouseup",y),U&&(y.zrEventControl="only_globalout",this.trigger("mouseout",y))}};function w(y,U){var N=U.domHandlers;x.pointerEventsSupported?O.each(a.pointer,function(S){C(U,S,function(H){N[S].call(y,H)})}):(x.touchEventsSupported&&O.each(a.touch,function(S){C(U,S,function(H){N[S].call(y,H),i(U)})}),O.each(a.mouse,function(S){C(U,S,function(H){H=_(H),U.touching||N[S].call(y,H)})}))}function P(y,U){x.pointerEventsSupported?O.each(t.pointer,N):x.touchEventsSupported||O.each(t.mouse,N);function N(S){function H(F){F=_(F),f(y,F.target)||(F=d(y,F),U.domHandlers[S].call(y,F))}C(U,S,H,{capture:!0})}}function C(y,U,N,S){y.mounted[U]=N,y.listenerOpts[U]=S,K(y.domTarget,h(U),N,S)}function b(y){var U=y.mounted;for(var N in U)U.hasOwnProperty(N)&&I(y.domTarget,h(N),U[N],y.listenerOpts[N]);y.mounted={}}function l(y,U){if(y._mayPointerCapture=null,p&&y._pointerCapturing^U){y._pointerCapturing=U;var N=y._globalHandlerScope;U?P(y,N):b(N)}}function A(y,U){this.domTarget=y,this.domHandlers=U,this.mounted={},this.listenerOpts={},this.touchTimer=null,this.touching=!1}function g(y,U){M.call(this),this.dom=y,this.painterRoot=U,this._localHandlerScope=new A(y,E),p&&(this._globalHandlerScope=new A(document,B)),this._pointerCapturing=!1,this._mayPointerCapture=null,w(this,this._localHandlerScope)}var T=g.prototype;T.dispose=function(){b(this._localHandlerScope),p&&b(this._globalHandlerScope)},T.setCursor=function(y){this.dom.style&&(this.dom.style.cursor=y||"default")},O.mixin(g,M);var m=g;Re.exports=m}}]);
|