(()=>{var mx=Object.create;var Ko=Object.defineProperty;var gx=Object.getOwnPropertyDescriptor;var vx=Object.getOwnPropertyNames;var yx=Object.getPrototypeOf,bx=Object.prototype.hasOwnProperty;var Rc=i=>Ko(i,"__esModule",{value:!0});var xx=(i,t)=>()=>(i&&(t=i(i=0)),t);var Fe=(i,t)=>()=>(t||i((t={exports:{}}).exports,t),t.exports),wx=(i,t)=>{Rc(i);for(var n in t)Ko(i,n,{get:t[n],enumerable:!0})},kx=(i,t,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of vx(t))!bx.call(i,l)&&l!=="default"&&Ko(i,l,{get:()=>t[l],enumerable:!(n=gx(t,l))||n.enumerable});return i},St=i=>kx(Rc(Ko(i!=null?mx(yx(i)):{},"default",i&&i.__esModule&&"default"in i?{get:()=>i.default,enumerable:!0}:{value:i,enumerable:!0})),i);var At=Fe((Ys,Xs)=>{(function(i,t){typeof Ys=="object"&&typeof Xs!="undefined"?Xs.exports=t():typeof define=="function"&&define.amd?define(t):(i=i||self,i.CodeMirror=t())})(Ys,function(){"use strict";var i=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(i),l=/MSIE \d/.test(i),c=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(i),d=/Edge\/(\d+)/.exec(i),a=l||c||d,h=a&&(l?document.documentMode||6:+(d||c)[1]),f=!d&&/WebKit\//.test(i),p=f&&/Qt\/\d+\.\d+/.test(i),y=!d&&/Chrome\//.test(i),g=/Opera\//.test(i),v=/Apple Computer/.test(navigator.vendor),b=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(i),k=/PhantomJS/.test(i),_=v&&(/Mobile\/\w+/.test(i)||navigator.maxTouchPoints>2),w=/Android/.test(i),I=_||w||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(i),S=_||/Mac/.test(t),R=/\bCrOS\b/.test(i),O=/win/i.test(t),U=g&&i.match(/Version\/(\d*\.\d*)/);U&&(U=Number(U[1])),U&&U>=15&&(g=!1,f=!0);var $=S&&(p||g&&(U==null||U<12.11)),J=n||a&&h>=9;function K(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var X=function(e,r){var s=e.className,o=K(r).exec(s);if(o){var u=s.slice(o.index+o[0].length);e.className=s.slice(0,o.index)+(u?o[1]+u:"")}};function G(e){for(var r=e.childNodes.length;r>0;--r)e.removeChild(e.firstChild);return e}function q(e,r){return G(e).appendChild(r)}function T(e,r,s,o){var u=document.createElement(e);if(s&&(u.className=s),o&&(u.style.cssText=o),typeof r=="string")u.appendChild(document.createTextNode(r));else if(r)for(var m=0;m=r)return x+(r-m);x+=E-m,x+=s-x%s,m=E+1}}var Pe=function(){this.id=null,this.f=null,this.time=0,this.handler=W(this.onTimeout,this)};Pe.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},Pe.prototype.set=function(e,r){this.f=r;var s=+new Date+e;(!this.id||s=r)return o+Math.min(x,r-u);if(u+=m-o,u+=s-u%s,o=m+1,u>=r)return o}}var at=[""];function gt(e){for(;at.length<=e;)at.push(Re(at)+" ");return at[e]}function Re(e){return e[e.length-1]}function Ie(e,r){for(var s=[],o=0;o"\x80"&&(e.toUpperCase()!=e.toLowerCase()||Qe.test(e))}function Y(e,r){return r?r.source.indexOf("\\w")>-1&&_e(e)?!0:r.test(e):_e(e)}function fe(e){for(var r in e)if(e.hasOwnProperty(r)&&e[r])return!1;return!0}var le=/[\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 it(e){return e.charCodeAt(0)>=768&&le.test(e)}function Ne(e,r,s){for(;(s<0?r>0:rs?-1:1;;){if(r==s)return r;var u=(r+s)/2,m=o<0?Math.ceil(u):Math.floor(u);if(m==r)return e(m)?r:s;e(m)?s=m:r=m+o}}function Ye(e,r,s,o){if(!e)return o(r,s,"ltr",0);for(var u=!1,m=0;mr||r==s&&x.to==r)&&(o(Math.max(x.from,r),Math.min(x.to,s),x.level==1?"rtl":"ltr",m),u=!0)}u||o(r,s,"ltr")}var Je=null;function We(e,r,s){var o;Je=null;for(var u=0;ur)return u;m.to==r&&(m.from!=m.to&&s=="before"?o=u:Je=u),m.from==r&&(m.from!=m.to&&s!="before"?o=u:Je=u)}return o!=null?o:Je}var qt=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",r="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function s(L){return L<=247?e.charAt(L):1424<=L&&L<=1524?"R":1536<=L&&L<=1785?r.charAt(L-1536):1774<=L&&L<=2220?"r":8192<=L&&L<=8203?"w":L==8204?"b":"L"}var o=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,u=/[stwN]/,m=/[LRr]/,x=/[Lb1n]/,E=/[1n]/;function C(L,V,Q){this.level=L,this.from=V,this.to=Q}return function(L,V){var Q=V=="ltr"?"L":"R";if(L.length==0||V=="ltr"&&!o.test(L))return!1;for(var ce=L.length,ae=[],ye=0;ye-1&&(o[r]=u.slice(0,m).concat(u.slice(m+1)))}}}function rt(e,r){var s=Mt(e,r);if(!!s.length)for(var o=Array.prototype.slice.call(arguments,2),u=0;u0}function Kt(e){e.prototype.on=function(r,s){lt(this,r,s)},e.prototype.off=function(r,s){pt(this,r,s)}}function kt(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function st(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Ht(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Ir(e){kt(e),st(e)}function dr(e){return e.target||e.srcElement}function hr(e){var r=e.which;return r==null&&(e.button&1?r=1:e.button&2?r=3:e.button&4&&(r=2)),S&&e.ctrlKey&&r==1&&(r=3),r}var $r=function(){if(a&&h<9)return!1;var e=T("div");return"draggable"in e||"dragDrop"in e}(),zt;function yr(e){if(zt==null){var r=T("span","\u200B");q(e,T("span",[r,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(zt=r.offsetWidth<=1&&r.offsetHeight>2&&!(a&&h<8))}var s=zt?T("span","\u200B"):T("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return s.setAttribute("cm-text",""),s}var sr;function Zt(e){if(sr!=null)return sr;var r=q(e,document.createTextNode("A\u062EA")),s=j(r,0,1).getBoundingClientRect(),o=j(r,1,2).getBoundingClientRect();return G(e),!s||s.left==s.right?!1:sr=o.right-s.right<3}var ne=` b`.split(/\n/).length!=3?function(e){for(var r=0,s=[],o=e.length;r<=o;){var u=e.indexOf(` `,r);u==-1&&(u=e.length);var m=e.slice(r,e.charAt(u-1)=="\r"?u-1:u),x=m.indexOf("\r");x!=-1?(s.push(m.slice(0,x)),r+=x+1):(s.push(m),r=u+1)}return s}:function(e){return e.split(/\r\n?|\n/)},ie=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(s){}return!r||r.parentElement()!=e?!1:r.compareEndPoints("StartToEnd",r)!=0},Z=function(){var e=T("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),re=null;function P(e){if(re!=null)return re;var r=q(e,T("span","x")),s=r.getBoundingClientRect(),o=j(r,0,1).getBoundingClientRect();return re=Math.abs(s.left-o.left)>1}var N={},ee={};function ue(e,r){arguments.length>2&&(r.dependencies=Array.prototype.slice.call(arguments,2)),N[e]=r}function pe(e,r){ee[e]=r}function ge(e){if(typeof e=="string"&&ee.hasOwnProperty(e))e=ee[e];else if(e&&typeof e.name=="string"&&ee.hasOwnProperty(e.name)){var r=ee[e.name];typeof r=="string"&&(r={name:r}),e=He(r,e),e.name=r.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return ge("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return ge("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Le(e,r){r=ge(r);var s=N[r.name];if(!s)return Le(e,"text/plain");var o=s(e,r);if(Me.hasOwnProperty(r.name)){var u=Me[r.name];for(var m in u)!u.hasOwnProperty(m)||(o.hasOwnProperty(m)&&(o["_"+m]=o[m]),o[m]=u[m])}if(o.name=r.name,r.helperType&&(o.helperType=r.helperType),r.modeProps)for(var x in r.modeProps)o[x]=r.modeProps[x];return o}var Me={};function Se(e,r){var s=Me.hasOwnProperty(e)?Me[e]:Me[e]={};M(r,s)}function Ke(e,r){if(r===!0)return r;if(e.copyState)return e.copyState(r);var s={};for(var o in r){var u=r[o];u instanceof Array&&(u=u.concat([])),s[o]=u}return s}function _t(e,r){for(var s;e.innerMode&&(s=e.innerMode(r),!(!s||s.mode==e));)r=s.state,e=s.mode;return s||{mode:e,state:r}}function mt(e,r,s){return e.startState?e.startState(r,s):!0}var H=function(e,r,s){this.pos=this.start=0,this.string=e,this.tabSize=r||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=s};H.prototype.eol=function(){return this.pos>=this.string.length},H.prototype.sol=function(){return this.pos==this.lineStart},H.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},H.prototype.next=function(){if(this.posr},H.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},H.prototype.skipToEnd=function(){this.pos=this.string.length},H.prototype.skipTo=function(e){var r=this.string.indexOf(e,this.pos);if(r>-1)return this.pos=r,!0},H.prototype.backUp=function(e){this.pos-=e},H.prototype.column=function(){return this.lastColumnPos0?null:(m&&r!==!1&&(this.pos+=m[0].length),m)}},H.prototype.current=function(){return this.string.slice(this.start,this.pos)},H.prototype.hideFirstChars=function(e,r){this.lineStart+=e;try{return r()}finally{this.lineStart-=e}},H.prototype.lookAhead=function(e){var r=this.lineOracle;return r&&r.lookAhead(e)},H.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function oe(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 s=e;!s.lines;)for(var o=0;;++o){var u=s.children[o],m=u.chunkSize();if(r=e.first&&rs?xe(s,oe(e,s).text.length):Vt(r,oe(e,r.line).text.length)}function Vt(e,r){var s=e.ch;return s==null||s>r?xe(e.line,r):s<0?xe(e.line,0):e}function Fr(e,r){for(var s=[],o=0;othis.maxLookAhead&&(this.maxLookAhead=e),r},Vr.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}},Vr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Vr.fromSaved=function(e,r,s){return r instanceof Wn?new Vr(e,Ke(e.mode,r.state),s,r.lookAhead):new Vr(e,Ke(e.mode,r),s)},Vr.prototype.save=function(e){var r=e!==!1?Ke(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Wn(r,this.maxLookAhead):r};function zl(e,r,s,o){var u=[e.state.modeGen],m={};Ul(e,r.text,e.doc.mode,s,function(L,V){return u.push(L,V)},m,o);for(var x=s.state,E=function(L){s.baseTokens=u;var V=e.state.overlays[L],Q=1,ce=0;s.state=!0,Ul(e,r.text,V.mode,s,function(ae,ye){for(var Te=Q;ceae&&u.splice(Q,1,ae,u[Q+1],Oe),Q+=2,ce=Math.min(ae,Oe)}if(!!ye)if(V.opaque)u.splice(Te,Q-Te,ae,"overlay "+ye),Q=Te+2;else for(;Tee.options.maxHighlightLength&&Ke(e.doc.mode,o.state),m=zl(e,r,o);u&&(o.state=u),r.stateAfter=o.save(!u),r.styles=m.styles,m.classes?r.styleClasses=m.classes:r.styleClasses&&(r.styleClasses=null),s===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return r.styles}function Ei(e,r,s){var o=e.doc,u=e.display;if(!o.mode.startState)return new Vr(o,!0,r);var m=vy(e,r,s),x=m>o.first&&oe(o,m-1).stateAfter,E=x?Vr.fromSaved(o,x,m):new Vr(o,mt(o.mode),m);return o.iter(m,r,function(C){Ba(e,C.text,E);var L=E.line;C.stateAfter=L==r-1||L%5==0||L>=u.viewFrom&&Lr.start)return m}throw new Error("Mode "+e.name+" failed to advance stream.")}var ql=function(e,r,s){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=r||null,this.state=s};function jl(e,r,s,o){var u=e.doc,m=u.mode,x;r=Xe(u,r);var E=oe(u,r.line),C=Ei(e,r.line,s),L=new H(E.text,e.options.tabSize,C),V;for(o&&(V=[]);(o||L.pose.options.maxHighlightLength?(E=!1,x&&Ba(e,r,o,V.pos),V.pos=r.length,Q=null):Q=$l(qa(s,V,o.state,ce),m),ce){var ae=ce[0].name;ae&&(Q="m-"+(Q?ae+" "+Q:ae))}if(!E||L!=Q){for(;Cx;--E){if(E<=m.first)return m.first;var C=oe(m,E-1),L=C.stateAfter;if(L&&(!s||E+(L instanceof Wn?L.lookAhead:0)<=m.modeFrontier))return E;var V=we(C.text,null,e.options.tabSize);(u==null||o>V)&&(u=E-1,o=V)}return u}function yy(e,r){if(e.modeFrontier=Math.min(e.modeFrontier,r),!(e.highlightFrontiers;o--){var u=oe(e,o).stateAfter;if(u&&(!(u instanceof Wn)||o+u.lookAhead=r:m.to>r);(o||(o=[])).push(new bo(x,m.from,C?null:m.to))}}return o}function Sy(e,r,s){var o;if(e)for(var u=0;u=r:m.to>r);if(E||m.from==r&&x.type=="bookmark"&&(!s||m.marker.insertLeft)){var C=m.from==null||(x.inclusiveLeft?m.from<=r:m.from0&&E)for(var nt=0;nt0)){var V=[C,1],Q=D(L.from,E.from),ce=D(L.to,E.to);(Q<0||!x.inclusiveLeft&&!Q)&&V.push({from:L.from,to:E.from}),(ce>0||!x.inclusiveRight&&!ce)&&V.push({from:E.to,to:L.to}),u.splice.apply(u,V),C+=V.length-3}}return u}function Gl(e){var r=e.markedSpans;if(!!r){for(var s=0;sr)&&(!o||$a(o,m.marker)<0)&&(o=m.marker)}return o}function Xl(e,r,s,o,u){var m=oe(e,r),x=an&&m.markedSpans;if(x)for(var E=0;E=0&&Q<=0||V<=0&&Q>=0)&&(V<=0&&(C.marker.inclusiveRight&&u.inclusiveLeft?D(L.to,s)>=0:D(L.to,s)>0)||V>=0&&(C.marker.inclusiveRight&&u.inclusiveLeft?D(L.from,o)<=0:D(L.from,o)<0)))return!0}}}function Yr(e){for(var r;r=Yl(e);)e=r.find(-1,!0).line;return e}function Ty(e){for(var r;r=ko(e);)e=r.find(1,!0).line;return e}function Ay(e){for(var r,s;r=ko(e);)e=r.find(1,!0).line,(s||(s=[])).push(e);return s}function Ua(e,r){var s=oe(e,r),o=Yr(s);return s==o?r:Ve(o)}function Zl(e,r){if(r>e.lastLine())return r;var s=oe(e,r),o;if(!mn(e,s))return r;for(;o=ko(s);)s=o.find(1,!0).line;return Ve(s)+1}function mn(e,r){var s=an&&r.markedSpans;if(s){for(var o=void 0,u=0;ur.maxLineLength&&(r.maxLineLength=u,r.maxLine=o)})}var Gn=function(e,r,s){this.text=e,Kl(this,r),this.height=s?s(this):1};Gn.prototype.lineNo=function(){return Ve(this)},Kt(Gn);function Ly(e,r,s,o){e.text=r,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Gl(e),Kl(e,s);var u=o?o(e):1;u!=e.height&&Ae(e,u)}function Dy(e){e.parent=null,Gl(e)}var Iy={},Fy={};function Ql(e,r){if(!e||/^\s*$/.test(e))return null;var s=r.addModeClass?Fy:Iy;return s[e]||(s[e]=e.replace(/\S+/g,"cm-$&"))}function Jl(e,r){var s=A("span",null,null,f?"padding-right: .1px":null),o={pre:A("pre",[s],"CodeMirror-line"),content:s,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};r.measure={};for(var u=0;u<=(r.rest?r.rest.length:0);u++){var m=u?r.rest[u-1]:r.line,x=void 0;o.pos=0,o.addToken=Oy,Zt(e.display.measure)&&(x=Lt(m,e.doc.direction))&&(o.addToken=Ry(o.addToken,x)),o.map=[];var E=r!=e.display.externalMeasured&&Ve(m);zy(m,o,Nl(e,m,E)),m.styleClasses&&(m.styleClasses.bgClass&&(o.bgClass=se(m.styleClasses.bgClass,o.bgClass||"")),m.styleClasses.textClass&&(o.textClass=se(m.styleClasses.textClass,o.textClass||""))),o.map.length==0&&o.map.push(0,0,o.content.appendChild(yr(e.display.measure))),u==0?(r.measure.map=o.map,r.measure.cache={}):((r.measure.maps||(r.measure.maps=[])).push(o.map),(r.measure.caches||(r.measure.caches=[])).push({}))}if(f){var C=o.content.lastChild;(/\bcm-tab\b/.test(C.className)||C.querySelector&&C.querySelector(".cm-tab"))&&(o.content.className="cm-tab-wrap-hack")}return rt(e,"renderLine",e,r.line,o.pre),o.pre.className&&(o.textClass=se(o.pre.className,o.textClass||"")),o}function My(e){var r=T("span","\u2022","cm-invalidchar");return r.title="\\u"+e.charCodeAt(0).toString(16),r.setAttribute("aria-label",r.title),r}function Oy(e,r,s,o,u,m,x){if(!!r){var E=e.splitSpaces?Py(r,e.trailingSpace):r,C=e.cm.state.specialChars,L=!1,V;if(!C.test(r))e.col+=r.length,V=document.createTextNode(E),e.map.push(e.pos,e.pos+r.length,V),a&&h<9&&(L=!0),e.pos+=r.length;else{V=document.createDocumentFragment();for(var Q=0;;){C.lastIndex=Q;var ce=C.exec(r),ae=ce?ce.index-Q:r.length-Q;if(ae){var ye=document.createTextNode(E.slice(Q,Q+ae));a&&h<9?V.appendChild(T("span",[ye])):V.appendChild(ye),e.map.push(e.pos,e.pos+ae,ye),e.col+=ae,e.pos+=ae}if(!ce)break;Q+=ae+1;var Te=void 0;if(ce[0]==" "){var Oe=e.cm.options.tabSize,je=Oe-e.col%Oe;Te=V.appendChild(T("span",gt(je),"cm-tab")),Te.setAttribute("role","presentation"),Te.setAttribute("cm-text"," "),e.col+=je}else ce[0]=="\r"||ce[0]==` `?(Te=V.appendChild(T("span",ce[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Te.setAttribute("cm-text",ce[0]),e.col+=1):(Te=e.cm.options.specialCharPlaceholder(ce[0]),Te.setAttribute("cm-text",ce[0]),a&&h<9?V.appendChild(T("span",[Te])):V.appendChild(Te),e.col+=1);e.map.push(e.pos,e.pos+1,Te),e.pos++}}if(e.trailingSpace=E.charCodeAt(r.length-1)==32,s||o||u||L||m||x){var tt=s||"";o&&(tt+=o),u&&(tt+=u);var $e=T("span",[V],tt,m);if(x)for(var nt in x)x.hasOwnProperty(nt)&&nt!="style"&&nt!="class"&&$e.setAttribute(nt,x[nt]);return e.content.appendChild($e)}e.content.appendChild(V)}}function Py(e,r){if(e.length>1&&!/ /.test(e))return e;for(var s=r,o="",u=0;uL&&Q.from<=L));ce++);if(Q.to>=V)return e(s,o,u,m,x,E,C);e(s,o.slice(0,Q.to-L),u,m,null,E,C),m=null,o=o.slice(Q.to-L),L=Q.to}}}function eu(e,r,s,o){var u=!o&&s.widgetNode;u&&e.map.push(e.pos,e.pos+r,u),!o&&e.cm.display.input.needsContentAttribute&&(u||(u=e.content.appendChild(document.createElement("span"))),u.setAttribute("cm-marker",s.id)),u&&(e.cm.display.input.setUneditable(u),e.content.appendChild(u)),e.pos+=r,e.trailingSpace=!1}function zy(e,r,s){var o=e.markedSpans,u=e.text,m=0;if(!o){for(var x=1;xC||vt.collapsed&&ut.to==C&&ut.from==C)){if(ut.to!=null&&ut.to!=C&&ae>ut.to&&(ae=ut.to,Te=""),vt.className&&(ye+=" "+vt.className),vt.css&&(ce=(ce?ce+";":"")+vt.css),vt.startStyle&&ut.from==C&&(Oe+=" "+vt.startStyle),vt.endStyle&&ut.to==ae&&(nt||(nt=[])).push(vt.endStyle,ut.to),vt.title&&((tt||(tt={})).title=vt.title),vt.attributes)for(var Pt in vt.attributes)(tt||(tt={}))[Pt]=vt.attributes[Pt];vt.collapsed&&(!je||$a(je.marker,vt)<0)&&(je=ut)}else ut.from>C&&ae>ut.from&&(ae=ut.from)}if(nt)for(var ir=0;ir=E)break;for(var Lr=Math.min(E,ae);;){if(V){var Sr=C+V.length;if(!je){var Yt=Sr>Lr?V.slice(0,Lr-C):V;r.addToken(r,Yt,Q?Q+ye:ye,Oe,C+Yt.length==ae?Te:"",ce,tt)}if(Sr>=Lr){V=V.slice(Lr-C),C=Lr;break}C=Sr,Oe=""}V=u.slice(m,m=s[L++]),Q=Ql(s[L++],r.cm.options)}}}function tu(e,r,s){this.line=r,this.rest=Ay(r),this.size=this.rest?Ve(Re(this.rest))-s+1:1,this.node=this.text=null,this.hidden=mn(e,r)}function So(e,r,s){for(var o=[],u,m=r;m2&&m.push((C.bottom+L.top)/2-s.top)}}m.push(s.bottom-s.top)}}function lu(e,r,s){if(e.line==r)return{map:e.measure.map,cache:e.measure.cache};for(var o=0;os)return{map:e.measure.maps[u],cache:e.measure.caches[u],before:!0}}function Vy(e,r){r=Yr(r);var s=Ve(r),o=e.display.externalMeasured=new tu(e.doc,r,s);o.lineN=s;var u=o.built=Jl(e,o);return o.text=u.pre,q(e.display.lineMeasure,u.pre),o}function uu(e,r,s,o){return Zr(e,Vn(e,r),s,o)}function Ya(e,r){if(r>=e.display.viewFrom&&r=s.lineN&&rr)&&(m=C-E,u=m-1,r>=C&&(x="right")),u!=null){if(o=e[L+2],E==C&&s==(o.insertLeft?"left":"right")&&(x=s),s=="left"&&u==0)for(;L&&e[L-2]==e[L-3]&&e[L-1].insertLeft;)o=e[(L-=3)+2],x="left";if(s=="right"&&u==C-E)for(;L=0&&(s=e[u]).left==s.right;u--);return s}function Xy(e,r,s,o){var u=fu(r.map,s,o),m=u.node,x=u.start,E=u.end,C=u.collapse,L;if(m.nodeType==3){for(var V=0;V<4;V++){for(;x&&it(r.line.text.charAt(u.coverStart+x));)--x;for(;u.coverStart+E0&&(C=o="right");var Q;e.options.lineWrapping&&(Q=m.getClientRects()).length>1?L=Q[o=="right"?Q.length-1:0]:L=m.getBoundingClientRect()}if(a&&h<9&&!x&&(!L||!L.left&&!L.right)){var ce=m.parentNode.getClientRects()[0];ce?L={left:ce.left,right:ce.left+Xn(e.display),top:ce.top,bottom:ce.bottom}:L=cu}for(var ae=L.top-r.rect.top,ye=L.bottom-r.rect.top,Te=(ae+ye)/2,Oe=r.view.measure.heights,je=0;je=o.text.length?(C=o.text.length,L="before"):C<=0&&(C=0,L="after"),!E)return x(L=="before"?C-1:C,L=="before");function V(ye,Te,Oe){var je=E[Te],tt=je.level==1;return x(Oe?ye-1:ye,tt!=Oe)}var Q=We(E,C,L),ce=Je,ae=V(C,Q,L=="before");return ce!=null&&(ae.other=V(C,ce,L!="before")),ae}function vu(e,r){var s=0;r=Xe(e.doc,r),e.options.lineWrapping||(s=Xn(e.display)*r.ch);var o=oe(e.doc,r.line),u=sn(o)+Eo(e.display);return{left:s,right:s,top:u,bottom:u+o.height}}function Qa(e,r,s,o,u){var m=xe(e,r,s);return m.xRel=u,o&&(m.outside=o),m}function Ja(e,r,s){var o=e.doc;if(s+=e.display.viewOffset,s<0)return Qa(o.first,0,null,-1,-1);var u=et(o,s),m=o.first+o.size-1;if(u>m)return Qa(o.first+o.size-1,oe(o,m).text.length,null,1,1);r<0&&(r=0);for(var x=oe(o,u);;){var E=Qy(e,x,u,r,s),C=Cy(x,E.ch+(E.xRel>0||E.outside>0?1:0));if(!C)return E;var L=C.find(1);if(L.line==u)return L;x=oe(o,u=L.line)}}function yu(e,r,s,o){o-=Xa(r);var u=r.text.length,m=ot(function(x){return Zr(e,s,x-1).bottom<=o},u,0);return u=ot(function(x){return Zr(e,s,x).top>o},m,u),{begin:m,end:u}}function bu(e,r,s,o){s||(s=Vn(e,r));var u=Co(e,r,Zr(e,s,o),"line").top;return yu(e,r,s,u)}function es(e,r,s,o){return e.bottom<=s?!1:e.top>s?!0:(o?e.left:e.right)>r}function Qy(e,r,s,o,u){u-=sn(r);var m=Vn(e,r),x=Xa(r),E=0,C=r.text.length,L=!0,V=Lt(r,e.doc.direction);if(V){var Q=(e.options.lineWrapping?eb:Jy)(e,r,s,m,V,o,u);L=Q.level!=1,E=L?Q.from:Q.to-1,C=L?Q.to:Q.from-1}var ce=null,ae=null,ye=ot(function(ct){var ut=Zr(e,m,ct);return ut.top+=x,ut.bottom+=x,es(ut,o,u,!1)?(ut.top<=u&&ut.left<=o&&(ce=ct,ae=ut),!0):!1},E,C),Te,Oe,je=!1;if(ae){var tt=o-ae.left=nt.bottom?1:0}return ye=Ne(r.text,ye,1),Qa(s,ye,Oe,je,o-Te)}function Jy(e,r,s,o,u,m,x){var E=ot(function(Q){var ce=u[Q],ae=ce.level!=1;return es(Ur(e,xe(s,ae?ce.to:ce.from,ae?"before":"after"),"line",r,o),m,x,!0)},0,u.length-1),C=u[E];if(E>0){var L=C.level!=1,V=Ur(e,xe(s,L?C.from:C.to,L?"after":"before"),"line",r,o);es(V,m,x,!0)&&V.top>x&&(C=u[E-1])}return C}function eb(e,r,s,o,u,m,x){var E=yu(e,r,o,x),C=E.begin,L=E.end;/\s/.test(r.text.charAt(L-1))&&L--;for(var V=null,Q=null,ce=0;ce=L||ae.to<=C)){var ye=ae.level!=1,Te=Zr(e,o,ye?Math.min(L,ae.to)-1:Math.max(C,ae.from)).right,Oe=TeOe)&&(V=ae,Q=Oe)}}return V||(V=u[u.length-1]),V.fromL&&(V={from:V.from,to:L,level:V.level}),V}var Ln;function Yn(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Ln==null){Ln=T("pre",null,"CodeMirror-line-like");for(var r=0;r<49;++r)Ln.appendChild(document.createTextNode("x")),Ln.appendChild(T("br"));Ln.appendChild(document.createTextNode("x"))}q(e.measure,Ln);var s=Ln.offsetHeight/50;return s>3&&(e.cachedTextHeight=s),G(e.measure),s||1}function Xn(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var r=T("span","xxxxxxxxxx"),s=T("pre",[r],"CodeMirror-line-like");q(e.measure,s);var o=r.getBoundingClientRect(),u=(o.right-o.left)/10;return u>2&&(e.cachedCharWidth=u),u||10}function ts(e){for(var r=e.display,s={},o={},u=r.gutters.clientLeft,m=r.gutters.firstChild,x=0;m;m=m.nextSibling,++x){var E=e.display.gutterSpecs[x].className;s[E]=m.offsetLeft+m.clientLeft+u,o[E]=m.clientWidth}return{fixedPos:rs(r),gutterTotalWidth:r.gutters.offsetWidth,gutterLeft:s,gutterWidth:o,wrapperWidth:r.wrapper.clientWidth}}function rs(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function xu(e){var r=Yn(e.display),s=e.options.lineWrapping,o=s&&Math.max(5,e.display.scroller.clientWidth/Xn(e.display)-3);return function(u){if(mn(e.doc,u))return 0;var m=0;if(u.widgets)for(var x=0;x0&&(L=oe(e.doc,C.line).text).length==C.ch){var V=we(L,L.length,e.options.tabSize)-L.length;C=xe(C.line,Math.max(0,Math.round((m-su(e.display).left)/Xn(e.display))-V))}return C}function In(e,r){if(r>=e.display.viewTo||(r-=e.display.viewFrom,r<0))return null;for(var s=e.display.view,o=0;or)&&(u.updateLineNumbers=r),e.curOp.viewChanged=!0,r>=u.viewTo)an&&Ua(e.doc,r)u.viewFrom?vn(e):(u.viewFrom+=o,u.viewTo+=o);else if(r<=u.viewFrom&&s>=u.viewTo)vn(e);else if(r<=u.viewFrom){var m=To(e,s,s+o,1);m?(u.view=u.view.slice(m.index),u.viewFrom=m.lineN,u.viewTo+=o):vn(e)}else if(s>=u.viewTo){var x=To(e,r,r,-1);x?(u.view=u.view.slice(0,x.index),u.viewTo=x.lineN):vn(e)}else{var E=To(e,r,r,-1),C=To(e,s,s+o,1);E&&C?(u.view=u.view.slice(0,E.index).concat(So(e,E.lineN,C.lineN)).concat(u.view.slice(C.index)),u.viewTo+=o):vn(e)}var L=u.externalMeasured;L&&(s=u.lineN&&r=o.viewTo)){var m=o.view[In(e,r)];if(m.node!=null){var x=m.changes||(m.changes=[]);ve(x,s)==-1&&x.push(s)}}}function vn(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function To(e,r,s,o){var u=In(e,r),m,x=e.display.view;if(!an||s==e.doc.first+e.doc.size)return{index:u,lineN:s};for(var E=e.display.viewFrom,C=0;C0){if(u==x.length-1)return null;m=E+x[u].size-r,u++}else m=E-r;r+=m,s+=m}for(;Ua(e.doc,s)!=s;){if(u==(o<0?0:x.length-1))return null;s+=o*x[u-(o<0?1:0)].size,u+=o}return{index:u,lineN:s}}function tb(e,r,s){var o=e.display,u=o.view;u.length==0||r>=o.viewTo||s<=o.viewFrom?(o.view=So(e,r,s),o.viewFrom=r):(o.viewFrom>r?o.view=So(e,r,o.viewFrom).concat(o.view):o.viewFroms&&(o.view=o.view.slice(0,In(e,s)))),o.viewTo=s}function wu(e){for(var r=e.display.view,s=0,o=0;o=e.display.viewTo||E.to().line0?r.blinker=setInterval(function(){e.hasFocus()||Zn(e),r.cursorDiv.style.visibility=(s=!s)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(r.cursorDiv.style.visibility="hidden")}}function Su(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||as(e))}function os(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Zn(e))},100)}function as(e,r){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(rt(e,"focus",e,r),e.state.focused=!0,z(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),f&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),is(e))}function Zn(e,r){e.state.delayingBlurEvent||(e.state.focused&&(rt(e,"blur",e,r),e.state.focused=!1,X(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Lo(e){for(var r=e.display,s=r.lineDiv.offsetTop,o=0;o.005||V<-.005)&&(Ae(u.line,x),Eu(u.line),u.rest))for(var Q=0;Qe.display.sizerWidth){var ce=Math.ceil(E/Xn(e.display));ce>e.display.maxLineLength&&(e.display.maxLineLength=ce,e.display.maxLine=u.line,e.display.maxLineChanged=!0)}}}}function Eu(e){if(e.widgets)for(var r=0;r=x&&(m=et(r,sn(oe(r,C))-e.wrapper.clientHeight),x=C)}return{from:m,to:Math.max(x,m+1)}}function nb(e,r){if(!wt(e,"scrollCursorIntoView")){var s=e.display,o=s.sizer.getBoundingClientRect(),u=null;if(r.top+o.top<0?u=!0:r.bottom+o.top>(window.innerHeight||document.documentElement.clientHeight)&&(u=!1),u!=null&&!k){var m=T("div","\u200B",null,`position: absolute; top: `+(r.top-s.viewOffset-Eo(e.display))+`px; height: `+(r.bottom-r.top+Xr(e)+s.barHeight)+`px; left: `+r.left+"px; width: "+Math.max(2,r.right-r.left)+"px;");e.display.lineSpace.appendChild(m),m.scrollIntoView(u),e.display.lineSpace.removeChild(m)}}}function ib(e,r,s,o){o==null&&(o=0);var u;!e.options.lineWrapping&&r==s&&(s=r.sticky=="before"?xe(r.line,r.ch+1,"before"):r,r=r.ch?xe(r.line,r.sticky=="before"?r.ch-1:r.ch,"after"):r);for(var m=0;m<5;m++){var x=!1,E=Ur(e,r),C=!s||s==r?E:Ur(e,s);u={left:Math.min(E.left,C.left),top:Math.min(E.top,C.top)-o,right:Math.max(E.left,C.left),bottom:Math.max(E.bottom,C.bottom)+o};var L=ss(e,u),V=e.doc.scrollTop,Q=e.doc.scrollLeft;if(L.scrollTop!=null&&(Mi(e,L.scrollTop),Math.abs(e.doc.scrollTop-V)>1&&(x=!0)),L.scrollLeft!=null&&(Fn(e,L.scrollLeft),Math.abs(e.doc.scrollLeft-Q)>1&&(x=!0)),!x)break}return u}function ob(e,r){var s=ss(e,r);s.scrollTop!=null&&Mi(e,s.scrollTop),s.scrollLeft!=null&&Fn(e,s.scrollLeft)}function ss(e,r){var s=e.display,o=Yn(e.display);r.top<0&&(r.top=0);var u=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:s.scroller.scrollTop,m=Va(e),x={};r.bottom-r.top>m&&(r.bottom=r.top+m);var E=e.doc.height+Ka(s),C=r.topE-o;if(r.topu+m){var V=Math.min(r.top,(L?E:r.bottom)-m);V!=u&&(x.scrollTop=V)}var Q=e.options.fixedGutter?0:s.gutters.offsetWidth,ce=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:s.scroller.scrollLeft-Q,ae=An(e)-s.gutters.offsetWidth,ye=r.right-r.left>ae;return ye&&(r.right=r.left+ae),r.left<10?x.scrollLeft=0:r.leftae+ce-3&&(x.scrollLeft=r.right+(ye?0:10)-ae),x}function ls(e,r){r!=null&&(Io(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+r)}function Qn(e){Io(e);var r=e.getCursor();e.curOp.scrollToPos={from:r,to:r,margin:e.options.cursorScrollMargin}}function Fi(e,r,s){(r!=null||s!=null)&&Io(e),r!=null&&(e.curOp.scrollLeft=r),s!=null&&(e.curOp.scrollTop=s)}function ab(e,r){Io(e),e.curOp.scrollToPos=r}function Io(e){var r=e.curOp.scrollToPos;if(r){e.curOp.scrollToPos=null;var s=vu(e,r.from),o=vu(e,r.to);Cu(e,s,o,r.margin)}}function Cu(e,r,s,o){var u=ss(e,{left:Math.min(r.left,s.left),top:Math.min(r.top,s.top)-o,right:Math.max(r.right,s.right),bottom:Math.max(r.bottom,s.bottom)+o});Fi(e,u.scrollLeft,u.scrollTop)}function Mi(e,r){Math.abs(e.doc.scrollTop-r)<2||(n||cs(e,{top:r}),Tu(e,r,!0),n&&cs(e),Ri(e,100))}function Tu(e,r,s){r=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,r)),!(e.display.scroller.scrollTop==r&&!s)&&(e.doc.scrollTop=r,e.display.scrollbars.setScrollTop(r),e.display.scroller.scrollTop!=r&&(e.display.scroller.scrollTop=r))}function Fn(e,r,s,o){r=Math.max(0,Math.min(r,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((s?r==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-r)<2)&&!o)&&(e.doc.scrollLeft=r,Fu(e),e.display.scroller.scrollLeft!=r&&(e.display.scroller.scrollLeft=r),e.display.scrollbars.setScrollLeft(r))}function Oi(e){var r=e.display,s=r.gutters.offsetWidth,o=Math.round(e.doc.height+Ka(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?s:0,docHeight:o,scrollHeight:o+Xr(e)+r.barHeight,nativeBarWidth:r.nativeBarWidth,gutterWidth:s}}var Mn=function(e,r,s){this.cm=s;var o=this.vert=T("div",[T("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),u=this.horiz=T("div",[T("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");o.tabIndex=u.tabIndex=-1,e(o),e(u),lt(o,"scroll",function(){o.clientHeight&&r(o.scrollTop,"vertical")}),lt(u,"scroll",function(){u.clientWidth&&r(u.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,a&&h<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Mn.prototype.update=function(e){var r=e.scrollWidth>e.clientWidth+1,s=e.scrollHeight>e.clientHeight+1,o=e.nativeBarWidth;if(s){this.vert.style.display="block",this.vert.style.bottom=r?o+"px":"0";var u=e.viewHeight-(r?o:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+u)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(r){this.horiz.style.display="block",this.horiz.style.right=s?o+"px":"0",this.horiz.style.left=e.barLeft+"px";var m=e.viewWidth-e.barLeft-(s?o:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+m)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(o==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:s?o:0,bottom:r?o:0}},Mn.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Mn.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Mn.prototype.zeroWidthHack=function(){var e=S&&!b?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Pe,this.disableVert=new Pe},Mn.prototype.enableZeroWidthBar=function(e,r,s){e.style.pointerEvents="auto";function o(){var u=e.getBoundingClientRect(),m=s=="vert"?document.elementFromPoint(u.right-1,(u.top+u.bottom)/2):document.elementFromPoint((u.right+u.left)/2,u.bottom-1);m!=e?e.style.pointerEvents="none":r.set(1e3,o)}r.set(1e3,o)},Mn.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Pi=function(){};Pi.prototype.update=function(){return{bottom:0,right:0}},Pi.prototype.setScrollLeft=function(){},Pi.prototype.setScrollTop=function(){},Pi.prototype.clear=function(){};function Jn(e,r){r||(r=Oi(e));var s=e.display.barWidth,o=e.display.barHeight;Au(e,r);for(var u=0;u<4&&s!=e.display.barWidth||o!=e.display.barHeight;u++)s!=e.display.barWidth&&e.options.lineWrapping&&Lo(e),Au(e,Oi(e)),s=e.display.barWidth,o=e.display.barHeight}function Au(e,r){var s=e.display,o=s.scrollbars.update(r);s.sizer.style.paddingRight=(s.barWidth=o.right)+"px",s.sizer.style.paddingBottom=(s.barHeight=o.bottom)+"px",s.heightForcer.style.borderBottom=o.bottom+"px solid transparent",o.right&&o.bottom?(s.scrollbarFiller.style.display="block",s.scrollbarFiller.style.height=o.bottom+"px",s.scrollbarFiller.style.width=o.right+"px"):s.scrollbarFiller.style.display="",o.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(s.gutterFiller.style.display="block",s.gutterFiller.style.height=o.bottom+"px",s.gutterFiller.style.width=r.gutterWidth+"px"):s.gutterFiller.style.display=""}var Lu={native:Mn,null:Pi};function Du(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&X(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Lu[e.options.scrollbarStyle](function(r){e.display.wrapper.insertBefore(r,e.display.scrollbarFiller),lt(r,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),r.setAttribute("cm-not-content","true")},function(r,s){s=="horizontal"?Fn(e,r):Mi(e,r)},e),e.display.scrollbars.addClass&&z(e.display.wrapper,e.display.scrollbars.addClass)}var sb=0;function On(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:++sb,markArrays:null},Ny(e.curOp)}function Pn(e){var r=e.curOp;r&&qy(r,function(s){for(var o=0;o=s.viewTo)||s.maxLineChanged&&r.options.lineWrapping,e.update=e.mustUpdate&&new Fo(r,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function cb(e){e.updatedDisplay=e.mustUpdate&&us(e.cm,e.update)}function fb(e){var r=e.cm,s=r.display;e.updatedDisplay&&Lo(r),e.barMeasure=Oi(r),s.maxLineChanged&&!r.options.lineWrapping&&(e.adjustWidthTo=uu(r,s.maxLine,s.maxLine.text.length).left+3,r.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(s.scroller.clientWidth,s.sizer.offsetLeft+e.adjustWidthTo+Xr(r)+r.display.barWidth),e.maxScrollLeft=Math.max(0,s.sizer.offsetLeft+e.adjustWidthTo-An(r))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=s.input.prepareSelection())}function db(e){var r=e.cm;e.adjustWidthTo!=null&&(r.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)){var s=+new Date+e.options.workTime,o=Ei(e,r.highlightFrontier),u=[];r.iter(o.line,Math.min(r.first+r.size,e.display.viewTo+500),function(m){if(o.line>=e.display.viewFrom){var x=m.styles,E=m.text.length>e.options.maxHighlightLength?Ke(r.mode,o.state):null,C=zl(e,m,o,!0);E&&(o.state=E),m.styles=C.styles;var L=m.styleClasses,V=C.classes;V?m.styleClasses=V:L&&(m.styleClasses=null);for(var Q=!x||x.length!=m.styles.length||L!=V&&(!L||!V||L.bgClass!=V.bgClass||L.textClass!=V.textClass),ce=0;!Q&&ces)return Ri(e,e.options.workDelay),!0}),r.highlightFrontier=o.line,r.modeFrontier=Math.max(r.modeFrontier,o.line),u.length&&Ar(e,function(){for(var m=0;m=s.viewFrom&&r.visible.to<=s.viewTo&&(s.updateLineNumbers==null||s.updateLineNumbers>=s.viewTo)&&s.renderedView==s.view&&wu(e)==0)return!1;Mu(e)&&(vn(e),r.dims=ts(e));var u=o.first+o.size,m=Math.max(r.visible.from-e.options.viewportMargin,o.first),x=Math.min(u,r.visible.to+e.options.viewportMargin);s.viewFromx&&s.viewTo-x<20&&(x=Math.min(u,s.viewTo)),an&&(m=Ua(e.doc,m),x=Zl(e.doc,x));var E=m!=s.viewFrom||x!=s.viewTo||s.lastWrapHeight!=r.wrapperHeight||s.lastWrapWidth!=r.wrapperWidth;tb(e,m,x),s.viewOffset=sn(oe(e.doc,s.viewFrom)),e.display.mover.style.top=s.viewOffset+"px";var C=wu(e);if(!E&&C==0&&!r.force&&s.renderedView==s.view&&(s.updateLineNumbers==null||s.updateLineNumbers>=s.viewTo))return!1;var L=gb(e);return C>4&&(s.lineDiv.style.display="none"),yb(e,s.updateLineNumbers,r.dims),C>4&&(s.lineDiv.style.display=""),s.renderedView=s.view,vb(L),G(s.cursorDiv),G(s.selectionDiv),s.gutters.style.height=s.sizer.style.minHeight=0,E&&(s.lastWrapHeight=r.wrapperHeight,s.lastWrapWidth=r.wrapperWidth,Ri(e,400)),s.updateLineNumbers=null,!0}function Iu(e,r){for(var s=r.viewport,o=!0;;o=!1){if(!o||!e.options.lineWrapping||r.oldDisplayWidth==An(e)){if(s&&s.top!=null&&(s={top:Math.min(e.doc.height+Ka(e.display)-Va(e),s.top)}),r.visible=Do(e.display,e.doc,s),r.visible.from>=e.display.viewFrom&&r.visible.to<=e.display.viewTo)break}else o&&(r.visible=Do(e.display,e.doc,s));if(!us(e,r))break;Lo(e);var u=Oi(e);Ii(e),Jn(e,u),ds(e,u),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 cs(e,r){var s=new Fo(e,r);if(us(e,s)){Lo(e),Iu(e,s);var o=Oi(e);Ii(e),Jn(e,o),ds(e,o),s.finish()}}function yb(e,r,s){var o=e.display,u=e.options.lineNumbers,m=o.lineDiv,x=m.firstChild;function E(ye){var Te=ye.nextSibling;return f&&S&&e.display.currentWheelTarget==ye?ye.style.display="none":ye.parentNode.removeChild(ye),Te}for(var C=o.view,L=o.viewFrom,V=0;V-1&&(ae=!1),ru(e,Q,L,s)),ae&&(G(Q.lineNumber),Q.lineNumber.appendChild(document.createTextNode(Dt(e.options,L)))),x=Q.node.nextSibling}L+=Q.size}for(;x;)x=E(x)}function fs(e){var r=e.gutters.offsetWidth;e.sizer.style.marginLeft=r+"px",tr(e,"gutterChanged",e)}function ds(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+Xr(e)+"px"}function Fu(e){var r=e.display,s=r.view;if(!(!r.alignWidgets&&(!r.gutters.firstChild||!e.options.fixedGutter))){for(var o=rs(r)-r.scroller.scrollLeft+e.doc.scrollLeft,u=r.gutters.offsetWidth,m=o+"px",x=0;xx.clientWidth,C=x.scrollHeight>x.clientHeight;if(!!(o&&E||u&&C)){if(u&&S&&f){e:for(var L=r.target,V=m.view;L!=x;L=L.parentNode)for(var Q=0;Q=0&&D(e,o.to())<=0)return s}return-1};var Tt=function(e,r){this.anchor=e,this.head=r};Tt.prototype.from=function(){return ft(this.anchor,this.head)},Tt.prototype.to=function(){return De(this.anchor,this.head)},Tt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Hr(e,r,s){var o=e&&e.options.selectionsMayTouch,u=r[s];r.sort(function(ce,ae){return D(ce.from(),ae.from())}),s=ve(r,u);for(var m=1;m0:C>=0){var L=ft(E.from(),x.from()),V=De(E.to(),x.to()),Q=E.empty()?x.from()==x.head:E.from()==E.head;m<=s&&--s,r.splice(--m,2,new Tt(Q?V:L,Q?L:V))}}return new Or(r,s)}function yn(e,r){return new Or([new Tt(e,r||e)],0)}function bn(e){return e.text?xe(e.from.line+e.text.length-1,Re(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function zu(e,r){if(D(e,r.from)<0)return e;if(D(e,r.to)<=0)return bn(r);var s=e.line+r.text.length-(r.to.line-r.from.line)-1,o=e.ch;return e.line==r.to.line&&(o+=bn(r).ch-r.to.ch),xe(s,o)}function ps(e,r){for(var s=[],o=0;o1&&e.remove(E.line+1,ye-1),e.insert(E.line+1,je)}tr(e,"change",e,r)}function xn(e,r,s){function o(u,m,x){if(u.linked)for(var E=0;E1&&!e.done[e.done.length-2].ranges)return e.done.pop(),Re(e.done)}function Uu(e,r,s,o){var u=e.history;u.undone.length=0;var m=+new Date,x,E;if((u.lastOp==o||u.lastOrigin==r.origin&&r.origin&&(r.origin.charAt(0)=="+"&&u.lastModTime>m-(e.cm?e.cm.options.historyEventDelay:500)||r.origin.charAt(0)=="*"))&&(x=_b(u,u.lastOp==o)))E=Re(x.changes),D(r.from,r.to)==0&&D(r.from,E.to)==0?E.to=bn(r):x.changes.push(vs(e,r));else{var C=Re(u.done);for((!C||!C.ranges)&&Po(e.sel,u.done),x={changes:[vs(e,r)],generation:u.generation},u.done.push(x);u.done.length>u.undoDepth;)u.done.shift(),u.done[0].ranges||u.done.shift()}u.done.push(s),u.generation=++u.maxGeneration,u.lastModTime=u.lastSelTime=m,u.lastOp=u.lastSelOp=o,u.lastOrigin=u.lastSelOrigin=r.origin,E||rt(e,"historyAdded")}function Sb(e,r,s,o){var u=r.charAt(0);return u=="*"||u=="+"&&s.ranges.length==o.ranges.length&&s.somethingSelected()==o.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Eb(e,r,s,o){var u=e.history,m=o&&o.origin;s==u.lastSelOp||m&&u.lastSelOrigin==m&&(u.lastModTime==u.lastSelTime&&u.lastOrigin==m||Sb(e,m,Re(u.done),r))?u.done[u.done.length-1]=r:Po(r,u.done),u.lastSelTime=+new Date,u.lastSelOrigin=m,u.lastSelOp=s,o&&o.clearRedo!==!1&&$u(u.undone)}function Po(e,r){var s=Re(r);s&&s.ranges&&s.equals(e)||r.push(e)}function Hu(e,r,s,o){var u=r["spans_"+e.id],m=0;e.iter(Math.max(e.first,s),Math.min(e.first+e.size,o),function(x){x.markedSpans&&((u||(u=r["spans_"+e.id]={}))[m]=x.markedSpans),++m})}function Cb(e){if(!e)return null;for(var r,s=0;s-1&&(Re(E)[Q]=L[Q],delete L[Q])}}return o}function ys(e,r,s,o){if(o){var u=e.anchor;if(s){var m=D(r,u)<0;m!=D(s,u)<0?(u=r,r=s):m!=D(r,s)<0&&(r=s)}return new Tt(u,r)}else return new Tt(s||r,r)}function Ro(e,r,s,o,u){u==null&&(u=e.cm&&(e.cm.display.shift||e.extend)),pr(e,new Or([ys(e.sel.primary(),r,s,u)],0),o)}function Gu(e,r,s){for(var o=[],u=e.cm&&(e.cm.display.shift||e.extend),m=0;m=r.ch:E.to>r.ch))){if(u&&(rt(C,"beforeCursorEnter"),C.explicitlyCleared))if(m.markedSpans){--x;continue}else break;if(!C.atomic)continue;if(s){var Q=C.find(o<0?1:-1),ce=void 0;if((o<0?V:L)&&(Q=Qu(e,Q,-o,Q&&Q.line==r.line?m:null)),Q&&Q.line==r.line&&(ce=D(Q,s))&&(o<0?ce<0:ce>0))return ti(e,Q,r,o,u)}var ae=C.find(o<0?-1:1);return(o<0?L:V)&&(ae=Qu(e,ae,o,ae.line==r.line?m:null)),ae?ti(e,ae,r,o,u):null}}return r}function No(e,r,s,o,u){var m=o||1,x=ti(e,r,s,m,u)||!u&&ti(e,r,s,m,!0)||ti(e,r,s,-m,u)||!u&&ti(e,r,s,-m,!0);return x||(e.cantEdit=!0,xe(e.first,0))}function Qu(e,r,s,o){return s<0&&r.ch==0?r.line>e.first?Xe(e,xe(r.line-1)):null:s>0&&r.ch==(o||oe(e,r.line)).text.length?r.line=0;--u)tc(e,{from:o[u].from,to:o[u].to,text:u?[""]:r.text,origin:r.origin});else tc(e,r)}}function tc(e,r){if(!(r.text.length==1&&r.text[0]==""&&D(r.from,r.to)==0)){var s=ps(e,r);Uu(e,r,s,e.cm?e.cm.curOp.id:NaN),Bi(e,r,s,ja(e,r));var o=[];xn(e,function(u,m){!m&&ve(o,u.history)==-1&&(oc(u.history,r),o.push(u.history)),Bi(u,r,null,ja(u,r))})}}function Bo(e,r,s){var o=e.cm&&e.cm.state.suppressEdits;if(!(o&&!s)){for(var u=e.history,m,x=e.sel,E=r=="undo"?u.done:u.undone,C=r=="undo"?u.undone:u.done,L=0;L=0;--ae){var ye=ce(ae);if(ye)return ye.v}}}}function rc(e,r){if(r!=0&&(e.first+=r,e.sel=new Or(Ie(e.sel.ranges,function(u){return new Tt(xe(u.anchor.line+r,u.anchor.ch),xe(u.head.line+r,u.head.ch))}),e.sel.primIndex),e.cm)){kr(e.cm,e.first,e.first-r,r);for(var s=e.cm.display,o=s.viewFrom;oe.lastLine())){if(r.from.linem&&(r={from:r.from,to:xe(m,oe(e,m).text.length),text:[r.text[0]],origin:r.origin}),r.removed=he(e,r.from,r.to),s||(s=ps(e,r)),e.cm?Lb(e.cm,r,o):gs(e,r,o),zo(e,s,qe),e.cantEdit&&No(e,xe(e.firstLine(),0))&&(e.cantEdit=!1)}}function Lb(e,r,s){var o=e.doc,u=e.display,m=r.from,x=r.to,E=!1,C=m.line;e.options.lineWrapping||(C=Ve(Yr(oe(o,m.line))),o.iter(C,x.line+1,function(ae){if(ae==u.maxLine)return E=!0,!0})),o.sel.contains(r.from,r.to)>-1&&fr(e),gs(o,r,s,xu(e)),e.options.lineWrapping||(o.iter(C,m.line+r.text.length,function(ae){var ye=_o(ae);ye>u.maxLineLength&&(u.maxLine=ae,u.maxLineLength=ye,u.maxLineChanged=!0,E=!1)}),E&&(e.curOp.updateMaxLine=!0)),yy(o,m.line),Ri(e,400);var L=r.text.length-(x.line-m.line)-1;r.full?kr(e):m.line==x.line&&r.text.length==1&&!Bu(e.doc,r)?gn(e,m.line,"text"):kr(e,m.line,x.line+1,L);var V=Et(e,"changes"),Q=Et(e,"change");if(Q||V){var ce={from:m,to:x,text:r.text,removed:r.removed,origin:r.origin};Q&&tr(e,"change",e,ce),V&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(ce)}e.display.selForContextMenu=null}function ni(e,r,s,o,u){var m;o||(o=s),D(o,s)<0&&(m=[o,s],s=m[0],o=m[1]),typeof r=="string"&&(r=e.splitLines(r)),ri(e,{from:s,to:o,text:r,origin:u})}function nc(e,r,s,o){s1||!(this.children[0]instanceof ji))){var E=[];this.collapse(E),this.children=[new ji(E)],this.children[0].parent=this}},collapse:function(e){for(var r=0;r50){for(var x=u.lines.length%25+25,E=x;E10);e.parent.maybeSpill()}},iterN:function(e,r,s){for(var o=0;oe.display.maxLineLength&&(e.display.maxLine=L,e.display.maxLineLength=V,e.display.maxLineChanged=!0)}o!=null&&e&&this.collapsed&&kr(e,o,u+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Xu(e.doc)),e&&tr(e,"markerCleared",e,this,o,u),r&&Pn(e),this.parent&&this.parent.clear()}},wn.prototype.find=function(e,r){e==null&&this.type=="bookmark"&&(e=1);for(var s,o,u=0;u0||x==0&&m.clearWhenEmpty!==!1)return m;if(m.replacedWith&&(m.collapsed=!0,m.widgetNode=A("span",[m.replacedWith],"CodeMirror-widget"),o.handleMouseEvents||m.widgetNode.setAttribute("cm-ignore-events","true"),o.insertLeft&&(m.widgetNode.insertLeft=!0)),m.collapsed){if(Xl(e,r.line,r,s,m)||r.line!=s.line&&Xl(e,s.line,r,s,m))throw new Error("Inserting collapsed marker partially overlapping an existing one");xy()}m.addToHistory&&Uu(e,{from:r,to:s,origin:"markText"},e.sel,NaN);var E=r.line,C=e.cm,L;if(e.iter(E,s.line+1,function(Q){C&&m.collapsed&&!C.options.lineWrapping&&Yr(Q)==C.display.maxLine&&(L=!0),m.collapsed&&E!=r.line&&Ae(Q,0),ky(Q,new bo(m,E==r.line?r.ch:null,E==s.line?s.ch:null),e.cm&&e.cm.curOp),++E}),m.collapsed&&e.iter(r.line,s.line+1,function(Q){mn(e,Q)&&Ae(Q,0)}),m.clearOnEnter&<(m,"beforeCursorEnter",function(){return m.clear()}),m.readOnly&&(by(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),m.collapsed&&(m.id=++sc,m.atomic=!0),C){if(L&&(C.curOp.updateMaxLine=!0),m.collapsed)kr(C,r.line,s.line+1);else if(m.className||m.startStyle||m.endStyle||m.css||m.attributes||m.title)for(var V=r.line;V<=s.line;V++)gn(C,V,"text");m.atomic&&Xu(C.doc),tr(C,"markerAdded",C,m)}return m}var Hi=function(e,r){this.markers=e,this.primary=r;for(var s=0;s=0;C--)ri(this,o[C]);E?Vu(this,E):this.cm&&Qn(this.cm)}),undo:nr(function(){Bo(this,"undo")}),redo:nr(function(){Bo(this,"redo")}),undoSelection:nr(function(){Bo(this,"undo",!0)}),redoSelection:nr(function(){Bo(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,r=0,s=0,o=0;o=e.ch)&&r.push(u.marker.parent||u.marker)}return r},findMarks:function(e,r,s){e=Xe(this,e),r=Xe(this,r);var o=[],u=e.line;return this.iter(e.line,r.line+1,function(m){var x=m.markedSpans;if(x)for(var E=0;E=C.to||C.from==null&&u!=e.line||C.from!=null&&u==r.line&&C.from>=r.ch)&&(!s||s(C.marker))&&o.push(C.marker.parent||C.marker)}++u}),o},getAllMarks:function(){var e=[];return this.iter(function(r){var s=r.markedSpans;if(s)for(var o=0;oe)return r=e,!0;e-=m,++s}),Xe(this,xe(s,r))},indexFromPos:function(e){e=Xe(this,e);var r=e.ch;if(e.liner&&(r=e.from),e.to!=null&&e.to-1){r.state.draggingText(e),setTimeout(function(){return r.display.input.focus()},20);return}try{var V=e.dataTransfer.getData("Text");if(V){var Q;if(r.state.draggingText&&!r.state.draggingText.copy&&(Q=r.listSelections()),zo(r.doc,yn(s,s)),Q)for(var ce=0;ce=0;E--)ni(e.doc,"",o[E].from,o[E].to,"+delete");Qn(e)})}function xs(e,r,s){var o=Ne(e.text,r+s,s);return o<0||o>e.text.length?null:o}function ws(e,r,s){var o=xs(e,r.ch,s);return o==null?null:new xe(r.line,o,s<0?"after":"before")}function ks(e,r,s,o,u){if(e){r.doc.direction=="rtl"&&(u=-u);var m=Lt(s,r.doc.direction);if(m){var x=u<0?Re(m):m[0],E=u<0==(x.level==1),C=E?"after":"before",L;if(x.level>0||r.doc.direction=="rtl"){var V=Vn(r,s);L=u<0?s.text.length-1:0;var Q=Zr(r,V,L).top;L=ot(function(ce){return Zr(r,V,ce).top==Q},u<0==(x.level==1)?x.from:x.to-1,L),C=="before"&&(L=xs(s,L,1))}else L=u<0?x.to:x.from;return new xe(o,L,C)}}return new xe(o,u<0?s.text.length:0,u<0?"before":"after")}function Ub(e,r,s,o){var u=Lt(r,e.doc.direction);if(!u)return ws(r,s,o);s.ch>=r.text.length?(s.ch=r.text.length,s.sticky="before"):s.ch<=0&&(s.ch=0,s.sticky="after");var m=We(u,s.ch,s.sticky),x=u[m];if(e.doc.direction=="ltr"&&x.level%2==0&&(o>0?x.to>s.ch:x.from=x.from&&ce>=V.begin)){var ae=Q?"before":"after";return new xe(s.line,ce,ae)}}var ye=function(je,tt,$e){for(var nt=function(Pt,ir){return ir?new xe(s.line,E(Pt,1),"before"):new xe(s.line,Pt,"after")};je>=0&&je0==(ct.level!=1),vt=ut?$e.begin:E($e.end,-1);if(ct.from<=vt&&vt0?V.end:E(V.begin,-1);return Oe!=null&&!(o>0&&Oe==r.text.length)&&(Te=ye(o>0?0:u.length-1,o,L(Oe)),Te)?Te:null}var Ki={selectAll:Ju,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),qe)},killLine:function(e){return ai(e,function(r){if(r.empty()){var s=oe(e.doc,r.head.line).text.length;return r.head.ch==s&&r.head.line0)u=new xe(u.line,u.ch+1),e.replaceRange(m.charAt(u.ch-1)+m.charAt(u.ch-2),xe(u.line,u.ch-2),u,"+transpose");else if(u.line>e.doc.first){var x=oe(e.doc,u.line-1).text;x&&(u=new xe(u.line,1),e.replaceRange(m.charAt(0)+e.doc.lineSeparator()+x.charAt(x.length-1),xe(u.line-1,x.length-1),u,"+transpose"))}}s.push(new Tt(u,u))}e.setSelections(s)})},newlineAndIndent:function(e){return Ar(e,function(){for(var r=e.listSelections(),s=r.length-1;s>=0;s--)e.replaceRange(e.doc.lineSeparator(),r[s].anchor,r[s].head,"+input");r=e.listSelections();for(var o=0;oe&&D(r,this.pos)==0&&s==this.button};var Yi,Xi;function Xb(e,r){var s=+new Date;return Xi&&Xi.compare(s,e,r)?(Yi=Xi=null,"triple"):Yi&&Yi.compare(s,e,r)?(Xi=new Ss(s,e,r),Yi=null,"double"):(Yi=new Ss(s,e,r),Xi=null,"single")}function _c(e){var r=this,s=r.display;if(!(wt(r,e)||s.activeTouch&&s.input.supportsTouch())){if(s.input.ensurePolled(),s.shift=e.shiftKey,ln(s,e)){f||(s.scroller.draggable=!1,setTimeout(function(){return s.scroller.draggable=!0},100));return}if(!Es(r,e)){var o=Dn(r,e),u=hr(e),m=o?Xb(o,u):"single";window.focus(),u==1&&r.state.selectingText&&r.state.selectingText(e),!(o&&Zb(r,u,o,m,e))&&(u==1?o?Jb(r,o,m,e):dr(e)==s.scroller&&kt(e):u==2?(o&&Ro(r.doc,o),setTimeout(function(){return s.input.focus()},20)):u==3&&(J?r.display.input.onContextMenu(e):os(r)))}}}function Zb(e,r,s,o,u){var m="Click";return o=="double"?m="Double"+m:o=="triple"&&(m="Triple"+m),m=(r==1?"Left":r==2?"Middle":"Right")+m,Vi(e,pc(m,u),u,function(x){if(typeof x=="string"&&(x=Ki[x]),!x)return!1;var E=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),E=x(e,s)!=ze}finally{e.state.suppressEdits=!1}return E})}function Qb(e,r,s){var o=e.getOption("configureMouse"),u=o?o(e,r,s):{};if(u.unit==null){var m=R?s.shiftKey&&s.metaKey:s.altKey;u.unit=m?"rectangle":r=="single"?"char":r=="double"?"word":"line"}return(u.extend==null||e.doc.extend)&&(u.extend=e.doc.extend||s.shiftKey),u.addNew==null&&(u.addNew=S?s.metaKey:s.ctrlKey),u.moveOnDrag==null&&(u.moveOnDrag=!(S?s.altKey:s.ctrlKey)),u}function Jb(e,r,s,o){a?setTimeout(W(Su,e),0):e.curOp.focus=F();var u=Qb(e,s,o),m=e.doc.sel,x;e.options.dragDrop&&$r&&!e.isReadOnly()&&s=="single"&&(x=m.contains(r))>-1&&(D((x=m.ranges[x]).from(),r)<0||r.xRel>0)&&(D(x.to(),r)>0||r.xRel<0)?ex(e,o,r,u):tx(e,o,r,u)}function ex(e,r,s,o){var u=e.display,m=!1,x=rr(e,function(L){f&&(u.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:os(e)),pt(u.wrapper.ownerDocument,"mouseup",x),pt(u.wrapper.ownerDocument,"mousemove",E),pt(u.scroller,"dragstart",C),pt(u.scroller,"drop",x),m||(kt(L),o.addNew||Ro(e.doc,s,null,null,o.extend),f&&!v||a&&h==9?setTimeout(function(){u.wrapper.ownerDocument.body.focus({preventScroll:!0}),u.input.focus()},20):u.input.focus())}),E=function(L){m=m||Math.abs(r.clientX-L.clientX)+Math.abs(r.clientY-L.clientY)>=10},C=function(){return m=!0};f&&(u.scroller.draggable=!0),e.state.draggingText=x,x.copy=!o.moveOnDrag,lt(u.wrapper.ownerDocument,"mouseup",x),lt(u.wrapper.ownerDocument,"mousemove",E),lt(u.scroller,"dragstart",C),lt(u.scroller,"drop",x),e.state.delayingBlurEvent=!0,setTimeout(function(){return u.input.focus()},20),u.scroller.dragDrop&&u.scroller.dragDrop()}function Sc(e,r,s){if(s=="char")return new Tt(r,r);if(s=="word")return e.findWordAt(r);if(s=="line")return new Tt(xe(r.line,0),Xe(e.doc,xe(r.line+1,0)));var o=s(e,r);return new Tt(o.from,o.to)}function tx(e,r,s,o){a&&os(e);var u=e.display,m=e.doc;kt(r);var x,E,C=m.sel,L=C.ranges;if(o.addNew&&!o.extend?(E=m.sel.contains(s),E>-1?x=L[E]:x=new Tt(s,s)):(x=m.sel.primary(),E=m.sel.primIndex),o.unit=="rectangle")o.addNew||(x=new Tt(s,s)),s=Dn(e,r,!0,!0),E=-1;else{var V=Sc(e,s,o.unit);o.extend?x=ys(x,V.anchor,V.head,o.extend):x=V}o.addNew?E==-1?(E=L.length,pr(m,Hr(e,L.concat([x]),E),{scroll:!1,origin:"*mouse"})):L.length>1&&L[E].empty()&&o.unit=="char"&&!o.extend?(pr(m,Hr(e,L.slice(0,E).concat(L.slice(E+1)),0),{scroll:!1,origin:"*mouse"}),C=m.sel):bs(m,E,x,me):(E=0,pr(m,new Or([x],0),me),C=m.sel);var Q=s;function ce($e){if(D(Q,$e)!=0)if(Q=$e,o.unit=="rectangle"){for(var nt=[],ct=e.options.tabSize,ut=we(oe(m,s.line).text,s.ch,ct),vt=we(oe(m,$e.line).text,$e.ch,ct),Pt=Math.min(ut,vt),ir=Math.max(ut,vt),Bt=Math.min(s.line,$e.line),Lr=Math.min(e.lastLine(),Math.max(s.line,$e.line));Bt<=Lr;Bt++){var Sr=oe(m,Bt).text,Yt=Ue(Sr,Pt,ct);Pt==ir?nt.push(new Tt(xe(Bt,Yt),xe(Bt,Yt))):Sr.length>Yt&&nt.push(new Tt(xe(Bt,Yt),xe(Bt,Ue(Sr,ir,ct))))}nt.length||nt.push(new Tt(s,s)),pr(m,Hr(e,C.ranges.slice(0,E).concat(nt),E),{origin:"*mouse",scroll:!1}),e.scrollIntoView($e)}else{var Er=x,lr=Sc(e,$e,o.unit),Qt=Er.anchor,Xt;D(lr.anchor,Qt)>0?(Xt=lr.head,Qt=ft(Er.from(),lr.anchor)):(Xt=lr.anchor,Qt=De(Er.to(),lr.head));var jt=C.ranges.slice(0);jt[E]=rx(e,new Tt(Xe(m,Qt),Xt)),pr(m,Hr(e,jt,E),me)}}var ae=u.wrapper.getBoundingClientRect(),ye=0;function Te($e){var nt=++ye,ct=Dn(e,$e,!0,o.unit=="rectangle");if(!!ct)if(D(ct,Q)!=0){e.curOp.focus=F(),ce(ct);var ut=Do(u,m);(ct.line>=ut.to||ct.lineae.bottom?20:0;vt&&setTimeout(rr(e,function(){ye==nt&&(u.scroller.scrollTop+=vt,Te($e))}),50)}}function Oe($e){e.state.selectingText=!1,ye=Infinity,$e&&(kt($e),u.input.focus()),pt(u.wrapper.ownerDocument,"mousemove",je),pt(u.wrapper.ownerDocument,"mouseup",tt),m.history.lastSelOrigin=null}var je=rr(e,function($e){$e.buttons===0||!hr($e)?Oe($e):Te($e)}),tt=rr(e,Oe);e.state.selectingText=tt,lt(u.wrapper.ownerDocument,"mousemove",je),lt(u.wrapper.ownerDocument,"mouseup",tt)}function rx(e,r){var s=r.anchor,o=r.head,u=oe(e.doc,s.line);if(D(s,o)==0&&s.sticky==o.sticky)return r;var m=Lt(u);if(!m)return r;var x=We(m,s.ch,s.sticky),E=m[x];if(E.from!=s.ch&&E.to!=s.ch)return r;var C=x+(E.from==s.ch==(E.level!=1)?0:1);if(C==0||C==m.length)return r;var L;if(o.line!=s.line)L=(o.line-s.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var V=We(m,o.ch,o.sticky),Q=V-x||(o.ch-s.ch)*(E.level==1?-1:1);V==C-1||V==C?L=Q<0:L=Q>0}var ce=m[C+(L?-1:0)],ae=L==(ce.level==1),ye=ae?ce.from:ce.to,Te=ae?"after":"before";return s.ch==ye&&s.sticky==Te?r:new Tt(new xe(s.line,ye,Te),o)}function Ec(e,r,s,o){var u,m;if(r.touches)u=r.touches[0].clientX,m=r.touches[0].clientY;else try{u=r.clientX,m=r.clientY}catch(ce){return!1}if(u>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;o&&kt(r);var x=e.display,E=x.lineDiv.getBoundingClientRect();if(m>E.bottom||!Et(e,s))return Ht(r);m-=E.top-x.viewOffset;for(var C=0;C=u){var V=et(e.doc,m),Q=e.display.gutterSpecs[C];return rt(e,s,e,V,Q.className,r),Ht(r)}}}function Es(e,r){return Ec(e,r,"gutterClick",!0)}function Cc(e,r){ln(e.display,r)||nx(e,r)||wt(e,r,"contextmenu")||J||e.display.input.onContextMenu(r)}function nx(e,r){return Et(e,"gutterContextMenu")?Ec(e,r,"gutterContextMenu",!1):!1}function Tc(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Di(e)}var si={toString:function(){return"CodeMirror.Init"}},Ac={},Uo={};function ix(e){var r=e.optionHandlers;function s(o,u,m,x){e.defaults[o]=u,m&&(r[o]=x?function(E,C,L){L!=si&&m(E,C,L)}:m)}e.defineOption=s,e.Init=si,s("value","",function(o,u){return o.setValue(u)},!0),s("mode",null,function(o,u){o.doc.modeOption=u,ms(o)},!0),s("indentUnit",2,ms,!0),s("indentWithTabs",!1),s("smartIndent",!0),s("tabSize",4,function(o){Ni(o),Di(o),kr(o)},!0),s("lineSeparator",null,function(o,u){if(o.doc.lineSep=u,!!u){var m=[],x=o.doc.first;o.doc.iter(function(C){for(var L=0;;){var V=C.text.indexOf(u,L);if(V==-1)break;L=V+u.length,m.push(xe(x,V))}x++});for(var E=m.length-1;E>=0;E--)ni(o.doc,u,m[E],xe(m[E].line,m[E].ch+u.length))}}),s("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(o,u,m){o.state.specialChars=new RegExp(u.source+(u.test(" ")?"":"| "),"g"),m!=si&&o.refresh()}),s("specialCharPlaceholder",My,function(o){return o.refresh()},!0),s("electricChars",!0),s("inputStyle",I?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),s("spellcheck",!1,function(o,u){return o.getInputField().spellcheck=u},!0),s("autocorrect",!1,function(o,u){return o.getInputField().autocorrect=u},!0),s("autocapitalize",!1,function(o,u){return o.getInputField().autocapitalize=u},!0),s("rtlMoveVisually",!O),s("wholeLineUpdateBefore",!0),s("theme","default",function(o){Tc(o),zi(o)},!0),s("keyMap","default",function(o,u,m){var x=jo(u),E=m!=si&&jo(m);E&&E.detach&&E.detach(o,x),x.attach&&x.attach(o,E||null)}),s("extraKeys",null),s("configureMouse",null),s("lineWrapping",!1,ax,!0),s("gutters",[],function(o,u){o.display.gutterSpecs=hs(u,o.options.lineNumbers),zi(o)},!0),s("fixedGutter",!0,function(o,u){o.display.gutters.style.left=u?rs(o.display)+"px":"0",o.refresh()},!0),s("coverGutterNextToScrollbar",!1,function(o){return Jn(o)},!0),s("scrollbarStyle","native",function(o){Du(o),Jn(o),o.display.scrollbars.setScrollTop(o.doc.scrollTop),o.display.scrollbars.setScrollLeft(o.doc.scrollLeft)},!0),s("lineNumbers",!1,function(o,u){o.display.gutterSpecs=hs(o.options.gutters,u),zi(o)},!0),s("firstLineNumber",1,zi,!0),s("lineNumberFormatter",function(o){return o},zi,!0),s("showCursorWhenSelecting",!1,Ii,!0),s("resetSelectionOnContextMenu",!0),s("lineWiseCopyCut",!0),s("pasteLinesPerSelection",!0),s("selectionsMayTouch",!1),s("readOnly",!1,function(o,u){u=="nocursor"&&(Zn(o),o.display.input.blur()),o.display.input.readOnlyChanged(u)}),s("screenReaderLabel",null,function(o,u){u=u===""?null:u,o.display.input.screenReaderLabelChanged(u)}),s("disableInput",!1,function(o,u){u||o.display.input.reset()},!0),s("dragDrop",!0,ox),s("allowDropFileTypes",null),s("cursorBlinkRate",530),s("cursorScrollMargin",0),s("cursorHeight",1,Ii,!0),s("singleCursorHeightPerLine",!0,Ii,!0),s("workTime",100),s("workDelay",100),s("flattenSpans",!0,Ni,!0),s("addModeClass",!1,Ni,!0),s("pollInterval",100),s("undoDepth",200,function(o,u){return o.doc.history.undoDepth=u}),s("historyEventDelay",1250),s("viewportMargin",10,function(o){return o.refresh()},!0),s("maxHighlightLength",1e4,Ni,!0),s("moveInputWithCursor",!0,function(o,u){u||o.display.input.resetPosition()}),s("tabindex",null,function(o,u){return o.display.input.getField().tabIndex=u||""}),s("autofocus",null),s("direction","ltr",function(o,u){return o.doc.setDirection(u)},!0),s("phrases",null)}function ox(e,r,s){var o=s&&s!=si;if(!r!=!o){var u=e.display.dragFunctions,m=r?lt:pt;m(e.display.scroller,"dragstart",u.start),m(e.display.scroller,"dragenter",u.enter),m(e.display.scroller,"dragover",u.over),m(e.display.scroller,"dragleave",u.leave),m(e.display.scroller,"drop",u.drop)}}function ax(e){e.options.lineWrapping?(z(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(X(e.display.wrapper,"CodeMirror-wrap"),Wa(e)),ns(e),kr(e),Di(e),setTimeout(function(){return Jn(e)},100)}function Nt(e,r){var s=this;if(!(this instanceof Nt))return new Nt(e,r);this.options=r=r?M(r):{},M(Ac,r,!1);var o=r.value;typeof o=="string"?o=new _r(o,r.mode,null,r.lineSeparator,r.direction):r.mode&&(o.modeOption=r.mode),this.doc=o;var u=new Nt.inputStyles[r.inputStyle](this),m=this.display=new bb(e,o,u,r);m.wrapper.CodeMirror=this,Tc(this),r.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Du(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 Pe,keySeq:null,specialChars:null},r.autofocus&&!I&&m.input.focus(),a&&h<11&&setTimeout(function(){return s.display.input.reset(!0)},20),sx(this),Nb(),On(this),this.curOp.forceUpdate=!0,qu(this,o),r.autofocus&&!I||this.hasFocus()?setTimeout(function(){s.hasFocus()&&!s.state.focused&&as(s)},20):Zn(this);for(var x in Uo)Uo.hasOwnProperty(x)&&Uo[x](this,r[x],si);Mu(this),r.finishInit&&r.finishInit(this);for(var E=0;E20*20}lt(r.scroller,"touchstart",function(C){if(!wt(e,C)&&!m(C)&&!Es(e,C)){r.input.ensurePolled(),clearTimeout(s);var L=+new Date;r.activeTouch={start:L,moved:!1,prev:L-o.end<=300?o:null},C.touches.length==1&&(r.activeTouch.left=C.touches[0].pageX,r.activeTouch.top=C.touches[0].pageY)}}),lt(r.scroller,"touchmove",function(){r.activeTouch&&(r.activeTouch.moved=!0)}),lt(r.scroller,"touchend",function(C){var L=r.activeTouch;if(L&&!ln(r,C)&&L.left!=null&&!L.moved&&new Date-L.start<300){var V=e.coordsChar(r.activeTouch,"page"),Q;!L.prev||x(L,L.prev)?Q=new Tt(V,V):!L.prev.prev||x(L,L.prev.prev)?Q=e.findWordAt(V):Q=new Tt(xe(V.line,0),Xe(e.doc,xe(V.line+1,0))),e.setSelection(Q.anchor,Q.head),e.focus(),kt(C)}u()}),lt(r.scroller,"touchcancel",u),lt(r.scroller,"scroll",function(){r.scroller.clientHeight&&(Mi(e,r.scroller.scrollTop),Fn(e,r.scroller.scrollLeft,!0),rt(e,"scroll",e))}),lt(r.scroller,"mousewheel",function(C){return Ru(e,C)}),lt(r.scroller,"DOMMouseScroll",function(C){return Ru(e,C)}),lt(r.wrapper,"scroll",function(){return r.wrapper.scrollTop=r.wrapper.scrollLeft=0}),r.dragFunctions={enter:function(C){wt(e,C)||Ir(C)},over:function(C){wt(e,C)||(zb(e,C),Ir(C))},start:function(C){return Rb(e,C)},drop:rr(e,Pb),leave:function(C){wt(e,C)||cc(e)}};var E=r.input.getField();lt(E,"keyup",function(C){return wc.call(e,C)}),lt(E,"keydown",rr(e,xc)),lt(E,"keypress",rr(e,kc)),lt(E,"focus",function(C){return as(e,C)}),lt(E,"blur",function(C){return Zn(e,C)})}var Cs=[];Nt.defineInitHook=function(e){return Cs.push(e)};function Zi(e,r,s,o){var u=e.doc,m;s==null&&(s="add"),s=="smart"&&(u.mode.indent?m=Ei(e,r).state:s="prev");var x=e.options.tabSize,E=oe(u,r),C=we(E.text,null,x);E.stateAfter&&(E.stateAfter=null);var L=E.text.match(/^\s*/)[0],V;if(!o&&!/\S/.test(E.text))V=0,s="not";else if(s=="smart"&&(V=u.mode.indent(m,E.text.slice(L.length),E.text),V==ze||V>150)){if(!o)return;s="prev"}s=="prev"?r>u.first?V=we(oe(u,r-1).text,null,x):V=0:s=="add"?V=C+e.options.indentUnit:s=="subtract"?V=C-e.options.indentUnit:typeof s=="number"&&(V=C+s),V=Math.max(0,V);var Q="",ce=0;if(e.options.indentWithTabs)for(var ae=Math.floor(V/x);ae;--ae)ce+=x,Q+=" ";if(cex,C=ne(r),L=null;if(E&&o.ranges.length>1)if(Wr&&Wr.text.join(` `)==r){if(o.ranges.length%Wr.text.length==0){L=[];for(var V=0;V=0;ce--){var ae=o.ranges[ce],ye=ae.from(),Te=ae.to();ae.empty()&&(s&&s>0?ye=xe(ye.line,ye.ch-s):e.state.overwrite&&!E?Te=xe(Te.line,Math.min(oe(m,Te.line).text.length,Te.ch+Re(C).length)):E&&Wr&&Wr.lineWise&&Wr.text.join(` `)==C.join(` `)&&(ye=Te=xe(ye.line,0)));var Oe={from:ye,to:Te,text:L?L[ce%L.length]:C,origin:u||(E?"paste":e.state.cutIncoming>x?"cut":"+input")};ri(e.doc,Oe),tr(e,"inputRead",e,Oe)}r&&!E&&Dc(e,r),Qn(e),e.curOp.updateInput<2&&(e.curOp.updateInput=Q),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Lc(e,r){var s=e.clipboardData&&e.clipboardData.getData("Text");if(s)return e.preventDefault(),!r.isReadOnly()&&!r.options.disableInput&&Ar(r,function(){return Ts(r,s,0,null,"paste")}),!0}function Dc(e,r){if(!(!e.options.electricChars||!e.options.smartIndent))for(var s=e.doc.sel,o=s.ranges.length-1;o>=0;o--){var u=s.ranges[o];if(!(u.head.ch>100||o&&s.ranges[o-1].head.line==u.head.line)){var m=e.getModeAt(u.head),x=!1;if(m.electricChars){for(var E=0;E-1){x=Zi(e,u.head.line,"smart");break}}else m.electricInput&&m.electricInput.test(oe(e.doc,u.head.line).text.slice(0,u.head.ch))&&(x=Zi(e,u.head.line,"smart"));x&&tr(e,"electricInput",e,u.head.line)}}}function Ic(e){for(var r=[],s=[],o=0;om&&(Zi(this,E.head.line,o,!0),m=E.head.line,x==this.doc.sel.primIndex&&Qn(this));else{var C=E.from(),L=E.to(),V=Math.max(m,C.line);m=Math.min(this.lastLine(),L.line-(L.ch?0:1))+1;for(var Q=V;Q0&&bs(this.doc,x,new Tt(C,ce[x].to()),qe)}}}),getTokenAt:function(o,u){return jl(this,o,u)},getLineTokens:function(o,u){return jl(this,xe(o),u,!0)},getTokenTypeAt:function(o){o=Xe(this.doc,o);var u=Nl(this,oe(this.doc,o.line)),m=0,x=(u.length-1)/2,E=o.ch,C;if(E==0)C=u[2];else for(;;){var L=m+x>>1;if((L?u[L*2-1]:0)>=E)x=L;else if(u[L*2+1]C&&(o=C,x=!0),E=oe(this.doc,o)}else E=o;return Co(this,E,{top:0,left:0},u||"page",m||x).top+(x?this.doc.height-sn(E):0)},defaultTextHeight:function(){return Yn(this.display)},defaultCharWidth:function(){return Xn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(o,u,m,x,E){var C=this.display;o=Ur(this,Xe(this.doc,o));var L=o.bottom,V=o.left;if(u.style.position="absolute",u.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(u),C.sizer.appendChild(u),x=="over")L=o.top;else if(x=="above"||x=="near"){var Q=Math.max(C.wrapper.clientHeight,this.doc.height),ce=Math.max(C.sizer.clientWidth,C.lineSpace.clientWidth);(x=="above"||o.bottom+u.offsetHeight>Q)&&o.top>u.offsetHeight?L=o.top-u.offsetHeight:o.bottom+u.offsetHeight<=Q&&(L=o.bottom),V+u.offsetWidth>ce&&(V=ce-u.offsetWidth)}u.style.top=L+"px",u.style.left=u.style.right="",E=="right"?(V=C.sizer.clientWidth-u.offsetWidth,u.style.right="0px"):(E=="left"?V=0:E=="middle"&&(V=(C.sizer.clientWidth-u.offsetWidth)/2),u.style.left=V+"px"),m&&ob(this,{left:V,top:L,right:V+u.offsetWidth,bottom:L+u.offsetHeight})},triggerOnKeyDown:br(xc),triggerOnKeyPress:br(kc),triggerOnKeyUp:wc,triggerOnMouseDown:br(_c),execCommand:function(o){if(Ki.hasOwnProperty(o))return Ki[o].call(null,this)},triggerElectric:br(function(o){Dc(this,o)}),findPosH:function(o,u,m,x){var E=1;u<0&&(E=-1,u=-u);for(var C=Xe(this.doc,o),L=0;L0&&V(m.charAt(x-1));)--x;for(;E.5||this.options.lineWrapping)&&ns(this),rt(this,"refresh",this)}),swapDoc:br(function(o){var u=this.doc;return u.cm=null,this.state.selectingText&&this.state.selectingText(),qu(this,o),Di(this),this.display.input.reset(),Fi(this,o.scrollLeft,o.scrollTop),this.curOp.forceScroll=!0,tr(this,"swapDoc",this,u),u}),phrase:function(o){var u=this.options.phrases;return u&&Object.prototype.hasOwnProperty.call(u,o)?u[o]:o},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}},Kt(e),e.registerHelper=function(o,u,m){s.hasOwnProperty(o)||(s[o]=e[o]={_global:[]}),s[o][u]=m},e.registerGlobalHelper=function(o,u,m,x){e.registerHelper(o,u,x),s[o]._global.push({pred:m,val:x})}}function As(e,r,s,o,u){var m=r,x=s,E=oe(e,r.line),C=u&&e.direction=="rtl"?-s:s;function L(){var tt=r.line+C;return tt=e.first+e.size?!1:(r=new xe(tt,r.ch,r.sticky),E=oe(e,tt))}function V(tt){var $e;if(o=="codepoint"){var nt=E.text.charCodeAt(r.ch+(s>0?0:-1));if(isNaN(nt))$e=null;else{var ct=s>0?nt>=55296&&nt<56320:nt>=56320&&nt<57343;$e=new xe(r.line,Math.max(0,Math.min(E.text.length,r.ch+s*(ct?2:1))),-s)}}else u?$e=Ub(e.cm,E,r,s):$e=ws(E,r,s);if($e==null)if(!tt&&L())r=ks(u,e.cm,E,r.line,C);else return!1;else r=$e;return!0}if(o=="char"||o=="codepoint")V();else if(o=="column")V(!0);else if(o=="word"||o=="group")for(var Q=null,ce=o=="group",ae=e.cm&&e.cm.getHelper(r,"wordChars"),ye=!0;!(s<0&&!V(!ye));ye=!1){var Te=E.text.charAt(r.ch)||` `,Oe=Y(Te,ae)?"w":ce&&Te==` `?"n":!ce||/\s/.test(Te)?null:"p";if(ce&&!ye&&!Oe&&(Oe="s"),Q&&Q!=Oe){s<0&&(s=1,V(),r.sticky="after");break}if(Oe&&(Q=Oe),s>0&&!V(!ye))break}var je=No(e,r,m,x,!0);return B(m,je)&&(je.hitSide=!0),je}function Oc(e,r,s,o){var u=e.doc,m=r.left,x;if(o=="page"){var E=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),C=Math.max(E-.5*Yn(e.display),3);x=(s>0?r.bottom:r.top)+s*C}else o=="line"&&(x=s>0?r.bottom+3:r.top-3);for(var L;L=Ja(e,m,x),!!L.outside;){if(s<0?x<=0:x>=u.height){L.hitSide=!0;break}x+=s*5}return L}var Ot=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Pe,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Ot.prototype.init=function(e){var r=this,s=this,o=s.cm,u=s.div=e.lineDiv;u.contentEditable=!0,Fc(u,o.options.spellcheck,o.options.autocorrect,o.options.autocapitalize);function m(E){for(var C=E.target;C;C=C.parentNode){if(C==u)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(C.className))break}return!1}lt(u,"paste",function(E){!m(E)||wt(o,E)||Lc(E,o)||h<=11&&setTimeout(rr(o,function(){return r.updateFromDOM()}),20)}),lt(u,"compositionstart",function(E){r.composing={data:E.data,done:!1}}),lt(u,"compositionupdate",function(E){r.composing||(r.composing={data:E.data,done:!1})}),lt(u,"compositionend",function(E){r.composing&&(E.data!=r.composing.data&&r.readFromDOMSoon(),r.composing.done=!0)}),lt(u,"touchstart",function(){return s.forceCompositionEnd()}),lt(u,"input",function(){r.composing||r.readFromDOMSoon()});function x(E){if(!(!m(E)||wt(o,E))){if(o.somethingSelected())Ho({lineWise:!1,text:o.getSelections()}),E.type=="cut"&&o.replaceSelection("",null,"cut");else if(o.options.lineWiseCopyCut){var C=Ic(o);Ho({lineWise:!0,text:C.text}),E.type=="cut"&&o.operation(function(){o.setSelections(C.ranges,0,qe),o.replaceSelection("",null,"cut")})}else return;if(E.clipboardData){E.clipboardData.clearData();var L=Wr.text.join(` `);if(E.clipboardData.setData("Text",L),E.clipboardData.getData("Text")==L){E.preventDefault();return}}var V=Mc(),Q=V.firstChild;o.display.lineSpace.insertBefore(V,o.display.lineSpace.firstChild),Q.value=Wr.text.join(` `);var ce=F();be(Q),setTimeout(function(){o.display.lineSpace.removeChild(V),ce.focus(),ce==u&&s.showPrimarySelection()},50)}}lt(u,"copy",x),lt(u,"cut",x)},Ot.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Ot.prototype.prepareSelection=function(){var e=ku(this.cm,!1);return e.focus=F()==this.div,e},Ot.prototype.showSelection=function(e,r){!e||!this.cm.display.view.length||((e.focus||r)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Ot.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ot.prototype.showPrimarySelection=function(){var e=this.getSelection(),r=this.cm,s=r.doc.sel.primary(),o=s.from(),u=s.to();if(r.display.viewTo==r.display.viewFrom||o.line>=r.display.viewTo||u.line=r.display.viewFrom&&Pc(r,o)||{node:E[0].measure.map[2],offset:0},L=u.linee.firstLine()&&(o=xe(o.line-1,oe(e.doc,o.line-1).length)),u.ch==oe(e.doc,u.line).text.length&&u.liner.viewTo-1)return!1;var m,x,E;o.line==r.viewFrom||(m=In(e,o.line))==0?(x=Ve(r.view[0].line),E=r.view[0].node):(x=Ve(r.view[m].line),E=r.view[m-1].node.nextSibling);var C=In(e,u.line),L,V;if(C==r.view.length-1?(L=r.viewTo-1,V=r.lineDiv.lastChild):(L=Ve(r.view[C+1].line)-1,V=r.view[C+1].node.previousSibling),!E)return!1;for(var Q=e.doc.splitLines(cx(e,E,V,x,L)),ce=he(e.doc,xe(x,0),xe(L,oe(e.doc,L).text.length));Q.length>1&&ce.length>1;)if(Re(Q)==Re(ce))Q.pop(),ce.pop(),L--;else if(Q[0]==ce[0])Q.shift(),ce.shift(),x++;else break;for(var ae=0,ye=0,Te=Q[0],Oe=ce[0],je=Math.min(Te.length,Oe.length);aeo.ch&&tt.charCodeAt(tt.length-ye-1)==$e.charCodeAt($e.length-ye-1);)ae--,ye++;Q[Q.length-1]=tt.slice(0,tt.length-ye).replace(/^\u200b+/,""),Q[0]=Q[0].slice(ae).replace(/\u200b+$/,"");var ct=xe(x,ae),ut=xe(L,ce.length?Re(ce).length-ye:0);if(Q.length>1||Q[0]||D(ct,ut))return ni(e.doc,Q,ct,ut,"+input"),!0},Ot.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ot.prototype.reset=function(){this.forceCompositionEnd()},Ot.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ot.prototype.readFromDOMSoon=function(){var e=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80))},Ot.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Ar(this.cm,function(){return kr(e.cm)})},Ot.prototype.setUneditable=function(e){e.contentEditable="false"},Ot.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||rr(this.cm,Ts)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},Ot.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},Ot.prototype.onContextMenu=function(){},Ot.prototype.resetPosition=function(){},Ot.prototype.needsContentAttribute=!0;function Pc(e,r){var s=Ya(e,r.line);if(!s||s.hidden)return null;var o=oe(e.doc,r.line),u=lu(s,o,r.line),m=Lt(o,e.doc.direction),x="left";if(m){var E=We(m,r.ch);x=E%2?"right":"left"}var C=fu(u.map,r.ch,x);return C.offset=C.collapse=="right"?C.end:C.start,C}function ux(e){for(var r=e;r;r=r.parentNode)if(/CodeMirror-gutter-wrapper/.test(r.className))return!0;return!1}function li(e,r){return r&&(e.bad=!0),e}function cx(e,r,s,o,u){var m="",x=!1,E=e.doc.lineSeparator(),C=!1;function L(ae){return function(ye){return ye.id==ae}}function V(){x&&(m+=E,C&&(m+=E),x=C=!1)}function Q(ae){ae&&(V(),m+=ae)}function ce(ae){if(ae.nodeType==1){var ye=ae.getAttribute("cm-text");if(ye){Q(ye);return}var Te=ae.getAttribute("cm-marker"),Oe;if(Te){var je=e.findMarks(xe(o,0),xe(u+1,0),L(+Te));je.length&&(Oe=je[0].find(0))&&Q(he(e.doc,Oe.from,Oe.to).join(E));return}if(ae.getAttribute("contenteditable")=="false")return;var tt=/^(pre|div|p|li|table|br)$/i.test(ae.nodeName);if(!/^br$/i.test(ae.nodeName)&&ae.textContent.length==0)return;tt&&V();for(var $e=0;$e=9&&r.hasSelection&&(r.hasSelection=null),s.poll()}),lt(u,"paste",function(x){wt(o,x)||Lc(x,o)||(o.state.pasteIncoming=+new Date,s.fastPoll())});function m(x){if(!wt(o,x)){if(o.somethingSelected())Ho({lineWise:!1,text:o.getSelections()});else if(o.options.lineWiseCopyCut){var E=Ic(o);Ho({lineWise:!0,text:E.text}),x.type=="cut"?o.setSelections(E.ranges,null,qe):(s.prevInput="",u.value=E.text.join(` `),be(u))}else return;x.type=="cut"&&(o.state.cutIncoming=+new Date)}}lt(u,"cut",m),lt(u,"copy",m),lt(e.scroller,"paste",function(x){if(!(ln(e,x)||wt(o,x))){if(!u.dispatchEvent){o.state.pasteIncoming=+new Date,s.focus();return}var E=new Event("paste");E.clipboardData=x.clipboardData,u.dispatchEvent(E)}}),lt(e.lineSpace,"selectstart",function(x){ln(e,x)||kt(x)}),lt(u,"compositionstart",function(){var x=o.getCursor("from");s.composing&&s.composing.range.clear(),s.composing={start:x,range:o.markText(x,o.getCursor("to"),{className:"CodeMirror-composing"})}}),lt(u,"compositionend",function(){s.composing&&(s.poll(),s.composing.range.clear(),s.composing=null)})},Wt.prototype.createField=function(e){this.wrapper=Mc(),this.textarea=this.wrapper.firstChild},Wt.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Wt.prototype.prepareSelection=function(){var e=this.cm,r=e.display,s=e.doc,o=ku(e);if(e.options.moveInputWithCursor){var u=Ur(e,s.sel.primary().head,"div"),m=r.wrapper.getBoundingClientRect(),x=r.lineDiv.getBoundingClientRect();o.teTop=Math.max(0,Math.min(r.wrapper.clientHeight-10,u.top+x.top-m.top)),o.teLeft=Math.max(0,Math.min(r.wrapper.clientWidth-10,u.left+x.left-m.left))}return o},Wt.prototype.showSelection=function(e){var r=this.cm,s=r.display;q(s.cursorDiv,e.cursors),q(s.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Wt.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing)){var r=this.cm;if(r.somethingSelected()){this.prevInput="";var s=r.getSelection();this.textarea.value=s,r.state.focused&&be(this.textarea),a&&h>=9&&(this.hasSelection=s)}else e||(this.prevInput=this.textarea.value="",a&&h>=9&&(this.hasSelection=null))}},Wt.prototype.getField=function(){return this.textarea},Wt.prototype.supportsTouch=function(){return!1},Wt.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!I||F()!=this.textarea))try{this.textarea.focus()}catch(e){}},Wt.prototype.blur=function(){this.textarea.blur()},Wt.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Wt.prototype.receivedFocus=function(){this.slowPoll()},Wt.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Wt.prototype.fastPoll=function(){var e=!1,r=this;r.pollingFast=!0;function s(){var o=r.poll();!o&&!e?(e=!0,r.polling.set(60,s)):(r.pollingFast=!1,r.slowPoll())}r.polling.set(20,s)},Wt.prototype.poll=function(){var e=this,r=this.cm,s=this.textarea,o=this.prevInput;if(this.contextMenuPending||!r.state.focused||ie(s)&&!o&&!this.composing||r.isReadOnly()||r.options.disableInput||r.state.keySeq)return!1;var u=s.value;if(u==o&&!r.somethingSelected())return!1;if(a&&h>=9&&this.hasSelection===u||S&&/[\uf700-\uf7ff]/.test(u))return r.display.input.reset(),!1;if(r.doc.sel==r.display.selForContextMenu){var m=u.charCodeAt(0);if(m==8203&&!o&&(o="\u200B"),m==8666)return this.reset(),this.cm.execCommand("undo")}for(var x=0,E=Math.min(o.length,u.length);x1e3||u.indexOf(` `)>-1?s.value=e.prevInput="":e.prevInput=u,e.composing&&(e.composing.range.clear(),e.composing.range=r.markText(e.composing.start,r.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Wt.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Wt.prototype.onKeyPress=function(){a&&h>=9&&(this.hasSelection=null),this.fastPoll()},Wt.prototype.onContextMenu=function(e){var r=this,s=r.cm,o=s.display,u=r.textarea;r.contextMenuPending&&r.contextMenuPending();var m=Dn(s,e),x=o.scroller.scrollTop;if(!m||g)return;var E=s.options.resetSelectionOnContextMenu;E&&s.doc.sel.contains(m)==-1&&rr(s,pr)(s.doc,yn(m),qe);var C=u.style.cssText,L=r.wrapper.style.cssText,V=r.wrapper.offsetParent.getBoundingClientRect();r.wrapper.style.cssText="position: static",u.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(e.clientY-V.top-5)+"px; left: "+(e.clientX-V.left-5)+`px; z-index: 1000; background: `+(a?"rgba(255, 255, 255, .05)":"transparent")+`; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Q;f&&(Q=window.scrollY),o.input.focus(),f&&window.scrollTo(null,Q),o.input.reset(),s.somethingSelected()||(u.value=r.prevInput=" "),r.contextMenuPending=ae,o.selForContextMenu=s.doc.sel,clearTimeout(o.detectingSelectAll);function ce(){if(u.selectionStart!=null){var Te=s.somethingSelected(),Oe="\u200B"+(Te?u.value:"");u.value="\u21DA",u.value=Oe,r.prevInput=Te?"":"\u200B",u.selectionStart=1,u.selectionEnd=Oe.length,o.selForContextMenu=s.doc.sel}}function ae(){if(r.contextMenuPending==ae&&(r.contextMenuPending=!1,r.wrapper.style.cssText=L,u.style.cssText=C,a&&h<9&&o.scrollbars.setScrollTop(o.scroller.scrollTop=x),u.selectionStart!=null)){(!a||a&&h<9)&&ce();var Te=0,Oe=function(){o.selForContextMenu==s.doc.sel&&u.selectionStart==0&&u.selectionEnd>0&&r.prevInput=="\u200B"?rr(s,Ju)(s):Te++<10?o.detectingSelectAll=setTimeout(Oe,500):(o.selForContextMenu=null,o.input.reset())};o.detectingSelectAll=setTimeout(Oe,200)}}if(a&&h>=9&&ce(),J){Ir(e);var ye=function(){pt(window,"mouseup",ye),setTimeout(ae,20)};lt(window,"mouseup",ye)}else setTimeout(ae,50)},Wt.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Wt.prototype.setUneditable=function(){},Wt.prototype.needsContentAttribute=!1;function dx(e,r){if(r=r?M(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 s=F();r.autofocus=s==e||e.getAttribute("autofocus")!=null&&s==document.body}function o(){e.value=E.getValue()}var u;if(e.form&&(lt(e.form,"submit",o),!r.leaveSubmitMethodAlone)){var m=e.form;u=m.submit;try{var x=m.submit=function(){o(),m.submit=u,m.submit(),m.submit=x}}catch(C){}}r.finishInit=function(C){C.save=o,C.getTextArea=function(){return e},C.toTextArea=function(){C.toTextArea=isNaN,o(),e.parentNode.removeChild(C.getWrapperElement()),e.style.display="",e.form&&(pt(e.form,"submit",o),!r.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=u))}},e.style.display="none";var E=Nt(function(C){return e.parentNode.insertBefore(C,e.nextSibling)},r);return E}function hx(e){e.off=pt,e.on=lt,e.wheelEventPixels=xb,e.Doc=_r,e.splitLines=ne,e.countColumn=we,e.findColumn=Ue,e.isWordChar=_e,e.Pass=ze,e.signal=rt,e.Line=Gn,e.changeEnd=bn,e.scrollbarModel=Lu,e.Pos=xe,e.cmpPos=D,e.modes=N,e.mimeModes=ee,e.resolveMode=ge,e.getMode=Le,e.modeExtensions=Me,e.extendMode=Se,e.copyState=Ke,e.startState=mt,e.innerMode=_t,e.commands=Ki,e.keyMap=un,e.keyName=mc,e.isModifierKey=hc,e.lookupKey=oi,e.normalizeKeyMap=$b,e.StringStream=H,e.SharedTextMarker=Hi,e.TextMarker=wn,e.LineWidget=Ui,e.e_preventDefault=kt,e.e_stopPropagation=st,e.e_stop=Ir,e.addClass=z,e.contains=te,e.rmClass=X,e.keyNames=kn}ix(Nt),lx(Nt);var px="iter insert remove copy getEditor constructor".split(" ");for(var Go in _r.prototype)_r.prototype.hasOwnProperty(Go)&&ve(px,Go)<0&&(Nt.prototype[Go]=function(e){return function(){return e.apply(this.doc,arguments)}}(_r.prototype[Go]));return Kt(_r),Nt.inputStyles={textarea:Wt,contenteditable:Ot},Nt.defineMode=function(e){!Nt.defaults.mode&&e!="null"&&(Nt.defaults.mode=e),ue.apply(this,arguments)},Nt.defineMIME=pe,Nt.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Nt.defineMIME("text/plain","null"),Nt.defineExtension=function(e,r){Nt.prototype[e]=r},Nt.defineDocExtension=function(e,r){_r.prototype[e]=r},Nt.fromTextArea=dx,hx(Nt),Nt.version="5.61.1",Nt})});var Qs=Fe((fo,Zs)=>{(function(i,t){typeof fo=="object"&&typeof Zs=="object"?Zs.exports=t():typeof define=="function"&&define.amd?define([],t):typeof fo=="object"?fo.ClipboardJS=t():i.ClipboardJS=t()})(fo,function(){return t={134:function(l,c,d){"use strict";d.d(c,{default:function(){return S}});var c=d(279),a=d.n(c),c=d(370),h=d.n(c),c=d(817),f=d.n(c);function p(R){return(p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(O){return typeof O}:function(O){return O&&typeof Symbol=="function"&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O})(R)}function y(R,O){for(var U=0;U{(function(i){typeof Mf=="object"&&typeof Of=="object"?i(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("css",function(K,X){var G=X.inline;X.propertyKeywords||(X=i.resolveMode("text/css"));var q=K.indentUnit,T=X.tokenHooks,A=X.documentTypes||{},j=X.mediaTypes||{},te=X.mediaFeatures||{},F=X.mediaValueKeywords||{},z=X.propertyKeywords||{},se=X.nonStandardPropertyKeywords||{},be=X.fontProperties||{},W=X.counterDescriptors||{},M=X.colorKeywords||{},we=X.valueKeywords||{},Pe=X.allowNested,ve=X.lineComment,Ee=X.supportsAtComponent===!0,ze=K.highlightNonStandardPropertyKeywords!==!1,qe,me;function ke(Y,fe){return qe=fe,Y}function Ue(Y,fe){var le=Y.next();if(T[le]){var it=T[le](Y,fe);if(it!==!1)return it}if(le=="@")return Y.eatWhile(/[\w\\\-]/),ke("def",Y.current());if(le=="="||(le=="~"||le=="|")&&Y.eat("="))return ke(null,"compare");if(le=='"'||le=="'")return fe.tokenize=at(le),fe.tokenize(Y,fe);if(le=="#")return Y.eatWhile(/[\w\\\-]/),ke("atom","hash");if(le=="!")return Y.match(/^\s*\w*/),ke("keyword","important");if(/\d/.test(le)||le=="."&&Y.eat(/\d/))return Y.eatWhile(/[\w.%]/),ke("number","unit");if(le==="-"){if(/[\d.]/.test(Y.peek()))return Y.eatWhile(/[\w.%]/),ke("number","unit");if(Y.match(/^-[\w\\\-]*/))return Y.eatWhile(/[\w\\\-]/),Y.match(/^\s*:/,!1)?ke("variable-2","variable-definition"):ke("variable-2","variable");if(Y.match(/^\w+-/))return ke("meta","meta")}else return/[,+>*\/]/.test(le)?ke(null,"select-op"):le=="."&&Y.match(/^-?[_a-z][_a-z0-9-]*/i)?ke("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(le)?ke(null,le):Y.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(Y.current())&&(fe.tokenize=gt),ke("variable callee","variable")):/[\w\\\-]/.test(le)?(Y.eatWhile(/[\w\\\-]/),ke("property","word")):ke(null,null)}function at(Y){return function(fe,le){for(var it=!1,Ne;(Ne=fe.next())!=null;){if(Ne==Y&&!it){Y==")"&&fe.backUp(1);break}it=!it&&Ne=="\\"}return(Ne==Y||!it&&Y!=")")&&(le.tokenize=null),ke("string","string")}}function gt(Y,fe){return Y.next(),Y.match(/^\s*[\"\')]/,!1)?fe.tokenize=null:fe.tokenize=at(")"),ke(null,"(")}function Re(Y,fe,le){this.type=Y,this.indent=fe,this.prev=le}function Ie(Y,fe,le,it){return Y.context=new Re(le,fe.indentation()+(it===!1?0:q),Y.context),le}function Be(Y){return Y.context.prev&&(Y.context=Y.context.prev),Y.context.type}function Ge(Y,fe,le){return _e[le.context.type](Y,fe,le)}function He(Y,fe,le,it){for(var Ne=it||1;Ne>0;Ne--)le.context=le.context.prev;return Ge(Y,fe,le)}function Qe(Y){var fe=Y.current().toLowerCase();we.hasOwnProperty(fe)?me="atom":M.hasOwnProperty(fe)?me="keyword":me="variable"}var _e={};return _e.top=function(Y,fe,le){if(Y=="{")return Ie(le,fe,"block");if(Y=="}"&&le.context.prev)return Be(le);if(Ee&&/@component/i.test(Y))return Ie(le,fe,"atComponentBlock");if(/^@(-moz-)?document$/i.test(Y))return Ie(le,fe,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(Y))return Ie(le,fe,"atBlock");if(/^@(font-face|counter-style)/i.test(Y))return le.stateArg=Y,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(Y))return"keyframes";if(Y&&Y.charAt(0)=="@")return Ie(le,fe,"at");if(Y=="hash")me="builtin";else if(Y=="word")me="tag";else{if(Y=="variable-definition")return"maybeprop";if(Y=="interpolation")return Ie(le,fe,"interpolation");if(Y==":")return"pseudo";if(Pe&&Y=="(")return Ie(le,fe,"parens")}return le.context.type},_e.block=function(Y,fe,le){if(Y=="word"){var it=fe.current().toLowerCase();return z.hasOwnProperty(it)?(me="property","maybeprop"):se.hasOwnProperty(it)?(me=ze?"string-2":"property","maybeprop"):Pe?(me=fe.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(me+=" error","maybeprop")}else return Y=="meta"?"block":!Pe&&(Y=="hash"||Y=="qualifier")?(me="error","block"):_e.top(Y,fe,le)},_e.maybeprop=function(Y,fe,le){return Y==":"?Ie(le,fe,"prop"):Ge(Y,fe,le)},_e.prop=function(Y,fe,le){if(Y==";")return Be(le);if(Y=="{"&&Pe)return Ie(le,fe,"propBlock");if(Y=="}"||Y=="{")return He(Y,fe,le);if(Y=="(")return Ie(le,fe,"parens");if(Y=="hash"&&!/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(fe.current()))me+=" error";else if(Y=="word")Qe(fe);else if(Y=="interpolation")return Ie(le,fe,"interpolation");return"prop"},_e.propBlock=function(Y,fe,le){return Y=="}"?Be(le):Y=="word"?(me="property","maybeprop"):le.context.type},_e.parens=function(Y,fe,le){return Y=="{"||Y=="}"?He(Y,fe,le):Y==")"?Be(le):Y=="("?Ie(le,fe,"parens"):Y=="interpolation"?Ie(le,fe,"interpolation"):(Y=="word"&&Qe(fe),"parens")},_e.pseudo=function(Y,fe,le){return Y=="meta"?"pseudo":Y=="word"?(me="variable-3",le.context.type):Ge(Y,fe,le)},_e.documentTypes=function(Y,fe,le){return Y=="word"&&A.hasOwnProperty(fe.current())?(me="tag",le.context.type):_e.atBlock(Y,fe,le)},_e.atBlock=function(Y,fe,le){if(Y=="(")return Ie(le,fe,"atBlock_parens");if(Y=="}"||Y==";")return He(Y,fe,le);if(Y=="{")return Be(le)&&Ie(le,fe,Pe?"block":"top");if(Y=="interpolation")return Ie(le,fe,"interpolation");if(Y=="word"){var it=fe.current().toLowerCase();it=="only"||it=="not"||it=="and"||it=="or"?me="keyword":j.hasOwnProperty(it)?me="attribute":te.hasOwnProperty(it)?me="property":F.hasOwnProperty(it)?me="keyword":z.hasOwnProperty(it)?me="property":se.hasOwnProperty(it)?me=ze?"string-2":"property":we.hasOwnProperty(it)?me="atom":M.hasOwnProperty(it)?me="keyword":me="error"}return le.context.type},_e.atComponentBlock=function(Y,fe,le){return Y=="}"?He(Y,fe,le):Y=="{"?Be(le)&&Ie(le,fe,Pe?"block":"top",!1):(Y=="word"&&(me="error"),le.context.type)},_e.atBlock_parens=function(Y,fe,le){return Y==")"?Be(le):Y=="{"||Y=="}"?He(Y,fe,le,2):_e.atBlock(Y,fe,le)},_e.restricted_atBlock_before=function(Y,fe,le){return Y=="{"?Ie(le,fe,"restricted_atBlock"):Y=="word"&&le.stateArg=="@counter-style"?(me="variable","restricted_atBlock_before"):Ge(Y,fe,le)},_e.restricted_atBlock=function(Y,fe,le){return Y=="}"?(le.stateArg=null,Be(le)):Y=="word"?(le.stateArg=="@font-face"&&!be.hasOwnProperty(fe.current().toLowerCase())||le.stateArg=="@counter-style"&&!W.hasOwnProperty(fe.current().toLowerCase())?me="error":me="property","maybeprop"):"restricted_atBlock"},_e.keyframes=function(Y,fe,le){return Y=="word"?(me="variable","keyframes"):Y=="{"?Ie(le,fe,"top"):Ge(Y,fe,le)},_e.at=function(Y,fe,le){return Y==";"?Be(le):Y=="{"||Y=="}"?He(Y,fe,le):(Y=="word"?me="tag":Y=="hash"&&(me="builtin"),"at")},_e.interpolation=function(Y,fe,le){return Y=="}"?Be(le):Y=="{"||Y==";"?He(Y,fe,le):(Y=="word"?me="variable":Y!="variable"&&Y!="("&&Y!=")"&&(me="error"),"interpolation")},{startState:function(Y){return{tokenize:null,state:G?"block":"top",stateArg:null,context:new Re(G?"block":"top",Y||0,null)}},token:function(Y,fe){if(!fe.tokenize&&Y.eatSpace())return null;var le=(fe.tokenize||Ue)(Y,fe);return le&&typeof le=="object"&&(qe=le[1],le=le[0]),me=le,qe!="comment"&&(fe.state=_e[fe.state](qe,Y,fe)),me},indent:function(Y,fe){var le=Y.context,it=fe&&fe.charAt(0),Ne=le.indent;return le.type=="prop"&&(it=="}"||it==")")&&(le=le.prev),le.prev&&(it=="}"&&(le.type=="block"||le.type=="top"||le.type=="interpolation"||le.type=="restricted_atBlock")?(le=le.prev,Ne=le.indent):(it==")"&&(le.type=="parens"||le.type=="atBlock_parens")||it=="{"&&(le.type=="at"||le.type=="atBlock"))&&(Ne=Math.max(0,le.indent-q))),Ne},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:ve,fold:"brace"}});function t(K){for(var X={},G=0;G{(function(i){typeof Pf=="object"&&typeof Rf=="object"?i(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";function t(F,z,se,be,W,M){this.indented=F,this.column=z,this.type=se,this.info=be,this.align=W,this.prev=M}function n(F,z,se,be){var W=F.indented;return F.context&&F.context.type=="statement"&&se!="statement"&&(W=F.context.indented),F.context=new t(W,z,se,be,null,F.context)}function l(F){var z=F.context.type;return(z==")"||z=="]"||z=="}")&&(F.indented=F.context.indented),F.context=F.context.prev}function c(F,z,se){if(z.prevToken=="variable"||z.prevToken=="type"||/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(F.string.slice(0,se))||z.typeAtEndOfLine&&F.column()==F.indentation())return!0}function d(F){for(;;){if(!F||F.type=="top")return!0;if(F.type=="}"&&F.prev.info!="namespace")return!1;F=F.prev}}i.defineMode("clike",function(F,z){var se=F.indentUnit,be=z.statementIndentUnit||se,W=z.dontAlignCalls,M=z.keywords||{},we=z.types||{},Pe=z.builtin||{},ve=z.blockKeywords||{},Ee=z.defKeywords||{},ze=z.atoms||{},qe=z.hooks||{},me=z.multiLineStrings,ke=z.indentStatements!==!1,Ue=z.indentSwitch!==!1,at=z.namespaceSeparator,gt=z.isPunctuationChar||/[\[\]{}\(\),;\:\.]/,Re=z.numberStart||/[\d\.]/,Ie=z.number||/^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i,Be=z.isOperatorChar||/[+\-*&%=<>!?|\/]/,Ge=z.isIdentifierChar||/[\w\$_\xa1-\uffff]/,He=z.isReservedIdentifier||!1,Qe,_e;function Y(Ne,ot){var Ye=Ne.next();if(qe[Ye]){var Je=qe[Ye](Ne,ot);if(Je!==!1)return Je}if(Ye=='"'||Ye=="'")return ot.tokenize=fe(Ye),ot.tokenize(Ne,ot);if(Re.test(Ye)){if(Ne.backUp(1),Ne.match(Ie))return"number";Ne.next()}if(gt.test(Ye))return Qe=Ye,null;if(Ye=="/"){if(Ne.eat("*"))return ot.tokenize=le,le(Ne,ot);if(Ne.eat("/"))return Ne.skipToEnd(),"comment"}if(Be.test(Ye)){for(;!Ne.match(/^\/[\/*]/,!1)&&Ne.eat(Be););return"operator"}if(Ne.eatWhile(Ge),at)for(;Ne.match(at);)Ne.eatWhile(Ge);var We=Ne.current();return h(M,We)?(h(ve,We)&&(Qe="newstatement"),h(Ee,We)&&(_e=!0),"keyword"):h(we,We)?"type":h(Pe,We)||He&&He(We)?(h(ve,We)&&(Qe="newstatement"),"builtin"):h(ze,We)?"atom":"variable"}function fe(Ne){return function(ot,Ye){for(var Je=!1,We,qt=!1;(We=ot.next())!=null;){if(We==Ne&&!Je){qt=!0;break}Je=!Je&&We=="\\"}return(qt||!(Je||me))&&(Ye.tokenize=null),"string"}}function le(Ne,ot){for(var Ye=!1,Je;Je=Ne.next();){if(Je=="/"&&Ye){ot.tokenize=null;break}Ye=Je=="*"}return"comment"}function it(Ne,ot){z.typeFirstDefinitions&&Ne.eol()&&d(ot.context)&&(ot.typeAtEndOfLine=c(Ne,ot,Ne.pos))}return{startState:function(Ne){return{tokenize:null,context:new t((Ne||0)-se,0,"top",null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(Ne,ot){var Ye=ot.context;if(Ne.sol()&&(Ye.align==null&&(Ye.align=!1),ot.indented=Ne.indentation(),ot.startOfLine=!0),Ne.eatSpace())return it(Ne,ot),null;Qe=_e=null;var Je=(ot.tokenize||Y)(Ne,ot);if(Je=="comment"||Je=="meta")return Je;if(Ye.align==null&&(Ye.align=!0),Qe==";"||Qe==":"||Qe==","&&Ne.match(/^\s*(?:\/\/.*)?$/,!1))for(;ot.context.type=="statement";)l(ot);else if(Qe=="{")n(ot,Ne.column(),"}");else if(Qe=="[")n(ot,Ne.column(),"]");else if(Qe=="(")n(ot,Ne.column(),")");else if(Qe=="}"){for(;Ye.type=="statement";)Ye=l(ot);for(Ye.type=="}"&&(Ye=l(ot));Ye.type=="statement";)Ye=l(ot)}else Qe==Ye.type?l(ot):ke&&((Ye.type=="}"||Ye.type=="top")&&Qe!=";"||Ye.type=="statement"&&Qe=="newstatement")&&n(ot,Ne.column(),"statement",Ne.current());if(Je=="variable"&&(ot.prevToken=="def"||z.typeFirstDefinitions&&c(Ne,ot,Ne.start)&&d(ot.context)&&Ne.match(/^\s*\(/,!1))&&(Je="def"),qe.token){var We=qe.token(Ne,ot,Je);We!==void 0&&(Je=We)}return Je=="def"&&z.styleDefs===!1&&(Je="variable"),ot.startOfLine=!1,ot.prevToken=_e?"def":Je||Qe,it(Ne,ot),Je},indent:function(Ne,ot){if(Ne.tokenize!=Y&&Ne.tokenize!=null||Ne.typeAtEndOfLine)return i.Pass;var Ye=Ne.context,Je=ot&&ot.charAt(0),We=Je==Ye.type;if(Ye.type=="statement"&&Je=="}"&&(Ye=Ye.prev),z.dontIndentStatements)for(;Ye.type=="statement"&&z.dontIndentStatements.test(Ye.info);)Ye=Ye.prev;if(qe.indent){var qt=qe.indent(Ne,Ye,ot,se);if(typeof qt=="number")return qt}var Lt=Ye.prev&&Ye.prev.info=="switch";if(z.allmanIndentation&&/[{(]/.test(Je)){for(;Ye.type!="top"&&Ye.type!="}";)Ye=Ye.prev;return Ye.indented}return Ye.type=="statement"?Ye.indented+(Je=="{"?0:be):Ye.align&&(!W||Ye.type!=")")?Ye.column+(We?0:1):Ye.type==")"&&!We?Ye.indented+be:Ye.indented+(We?0:se)+(!We&&Lt&&!/^(?:case|default)\b/.test(ot)?se:0)},electricInput:Ue?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"brace"}});function a(F){for(var z={},se=F.split(" "),be=0;be!?|\/#:@]/,hooks:{"@":function(F){return F.eatWhile(/[\w\$_]/),"meta"},'"':function(F,z){return F.match('""')?(z.tokenize=q,z.tokenize(F,z)):!1},"'":function(F){return F.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},"=":function(F,z){var se=z.context;return se.type=="}"&&se.align&&F.eat(">")?(z.context=new t(se.indented,se.column,se.type,se.info,null,se.prev),"operator"):!1},"/":function(F,z){return F.eat("*")?(z.tokenize=T(1),z.tokenize(F,z)):!1}},modeProps:{closeBrackets:{pairs:'()[]{}""',triples:'"'}}});function A(F){return function(z,se){for(var be=!1,W,M=!1;!z.eol();){if(!F&&!be&&z.match('"')){M=!0;break}if(F&&z.match('"""')){M=!0;break}W=z.next(),!be&&W=="$"&&z.match("{")&&z.skipTo("}"),be=!be&&W=="\\"&&!F}return(M||!F)&&(se.tokenize=null),"string"}}G("text/x-kotlin",{name:"clike",keywords:a("package as typealias class interface this super val operator var fun for is in This throw return annotation break continue object if else while do try when !in !is as? file import where by get set abstract enum open inner override private public internal protected catch finally out final vararg reified dynamic companion constructor init sealed field property receiver param sparam lateinit data inline noinline tailrec external annotation crossinline const operator infix suspend actual expect setparam value"),types:a("Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void Annotation Any BooleanArray ByteArray Char CharArray DeprecationLevel DoubleArray Enum FloatArray Function Int IntArray Lazy LazyThreadSafetyMode LongArray Nothing ShortArray Unit"),intendSwitch:!1,indentStatements:!1,multiLineStrings:!0,number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,blockKeywords:a("catch class do else finally for if where try while enum"),defKeywords:a("class val var object interface fun"),atoms:a("true false null this"),hooks:{"@":function(F){return F.eatWhile(/[\w\$_]/),"meta"},"*":function(F,z){return z.prevToken=="."?"variable":"operator"},'"':function(F,z){return z.tokenize=A(F.match('""')),z.tokenize(F,z)},"/":function(F,z){return F.eat("*")?(z.tokenize=T(1),z.tokenize(F,z)):!1},indent:function(F,z,se,be){var W=se&&se.charAt(0);if((F.prevToken=="}"||F.prevToken==")")&&se=="")return F.indented;if(F.prevToken=="operator"&&se!="}"&&F.context.type!="}"||F.prevToken=="variable"&&W=="."||(F.prevToken=="}"||F.prevToken==")")&&W==".")return be*2+z.indented;if(z.align&&z.type=="}")return z.indented+(F.context.type==(se||"").charAt(0)?0:be)}},modeProps:{closeBrackets:{triples:'"'}}}),G(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:a("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),types:a("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:a("for while do if else struct"),builtin:a("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),atoms:a("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TextureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),indentSwitch:!1,hooks:{"#":S},modeProps:{fold:["brace","include"]}}),G("text/x-nesc",{name:"clike",keywords:a(f+" as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),types:k,blockKeywords:a(w),atoms:a("null true false"),hooks:{"#":S},modeProps:{fold:["brace","include"]}}),G("text/x-objectivec",{name:"clike",keywords:a(f+" "+y),types:_,builtin:a(g),blockKeywords:a(w+" @synthesize @try @catch @finally @autoreleasepool @synchronized"),defKeywords:a(I+" @interface @implementation @protocol @class"),dontIndentStatements:/^@.*$/,typeFirstDefinitions:!0,atoms:a("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:O,hooks:{"#":S,"*":R},modeProps:{fold:["brace","include"]}}),G("text/x-objectivec++",{name:"clike",keywords:a(f+" "+y+" "+p),types:_,builtin:a(g),blockKeywords:a(w+" @synthesize @try @catch @finally @autoreleasepool @synchronized class try catch"),defKeywords:a(I+" @interface @implementation @protocol @class class namespace"),dontIndentStatements:/^@.*$|^template$/,typeFirstDefinitions:!0,atoms:a("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:O,hooks:{"#":S,"*":R,u:$,U:$,L:$,R:$,"0":U,"1":U,"2":U,"3":U,"4":U,"5":U,"6":U,"7":U,"8":U,"9":U,token:function(F,z,se){if(se=="variable"&&F.peek()=="("&&(z.prevToken==";"||z.prevToken==null||z.prevToken=="}")&&J(F.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),G("text/x-squirrel",{name:"clike",keywords:a("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),types:k,blockKeywords:a("case catch class else for foreach if switch try while"),defKeywords:a("function local class"),typeFirstDefinitions:!0,atoms:a("true false null"),hooks:{"#":S},modeProps:{fold:["brace","include"]}});var j=null;function te(F){return function(z,se){for(var be=!1,W,M=!1;!z.eol();){if(!be&&z.match('"')&&(F=="single"||z.match('""'))){M=!0;break}if(!be&&z.match("``")){j=te(F),M=!0;break}W=z.next(),be=F=="single"&&!be&&W=="\\"}return M&&(se.tokenize=null),"string"}}G("text/x-ceylon",{name:"clike",keywords:a("abstracts alias assembly assert assign break case catch class continue dynamic else exists extends finally for function given if import in interface is let module new nonempty object of out outer package return satisfies super switch then this throw try value void while"),types:function(F){var z=F.charAt(0);return z===z.toUpperCase()&&z!==z.toLowerCase()},blockKeywords:a("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:a("class dynamic function interface module object package value"),builtin:a("abstract actual aliased annotation by default deprecated doc final formal late license native optional sealed see serializable shared suppressWarnings tagged throws variable"),isPunctuationChar:/[\[\]{}\(\),;\:\.`]/,isOperatorChar:/[+\-*&%=<>!?|^~:\/]/,numberStart:/[\d#$]/,number:/^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,multiLineStrings:!0,typeFirstDefinitions:!0,atoms:a("true false null larger smaller equal empty finished"),indentSwitch:!1,styleDefs:!1,hooks:{"@":function(F){return F.eatWhile(/[\w\$_]/),"meta"},'"':function(F,z){return z.tokenize=te(F.match('""')?"triple":"single"),z.tokenize(F,z)},"`":function(F,z){return!j||!F.match("`")?!1:(z.tokenize=j,j=null,z.tokenize(F,z))},"'":function(F){return F.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},token:function(F,z,se){if((se=="variable"||se=="type")&&z.prevToken==".")return"variable-2"}},modeProps:{fold:["brace","import"],closeBrackets:{triples:'"'}}})})});var Bf=Fe((zf,Nf)=>{(function(i){typeof zf=="object"&&typeof Nf=="object"?i(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("diff",function(){var t={"+":"positive","-":"negative","@":"meta"};return{token:function(n){var l=n.string.search(/[\t ]+?$/);if(!n.sol()||l===0)return n.skipToEnd(),("error "+(t[n.string.charAt(0)]||"")).replace(/ $/,"");var c=t[n.peek()]||n.skipToEnd();return l===-1?n.skipToEnd():n.pos=l,c}}}),i.defineMIME("text/x-diff","diff")})});var $f=Fe((qf,jf)=>{(function(i){typeof qf=="object"&&typeof jf=="object"?i(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("fortran",function(){function t(p){for(var y={},g=0;g\/\:]/,a=new RegExp("(.and.|.or.|.eq.|.lt.|.le.|.gt.|.ge.|.ne.|.not.|.eqv.|.neqv.)","i");function h(p,y){if(p.match(a))return"operator";var g=p.next();if(g=="!")return p.skipToEnd(),"comment";if(g=='"'||g=="'")return y.tokenize=f(g),y.tokenize(p,y);if(/[\[\]\(\),]/.test(g))return null;if(/\d/.test(g))return p.eatWhile(/[\w\.]/),"number";if(d.test(g))return p.eatWhile(d),"operator";p.eatWhile(/[\w\$_]/);var v=p.current().toLowerCase();return n.hasOwnProperty(v)?"keyword":l.hasOwnProperty(v)||c.hasOwnProperty(v)?"builtin":"variable"}function f(p){return function(y,g){for(var v=!1,b,k=!1;(b=y.next())!=null;){if(b==p&&!v){k=!0;break}v=!v&&b=="\\"}return(k||!v)&&(g.tokenize=null),"string"}}return{startState:function(){return{tokenize:null}},token:function(p,y){if(p.eatSpace())return null;var g=(y.tokenize||h)(p,y);return g=="comment"||g=="meta",g}}}),i.defineMIME("text/x-fortran","fortran")})});var Wf=Fe((Uf,Hf)=>{(function(i){typeof Uf=="object"&&typeof Hf=="object"?i(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("go",function(t){var n=t.indentUnit,l={break:!0,case:!0,chan:!0,const:!0,continue:!0,default:!0,defer:!0,else:!0,fallthrough:!0,for:!0,func:!0,go:!0,goto:!0,if:!0,import:!0,interface:!0,map:!0,package:!0,range:!0,return:!0,select:!0,struct:!0,switch:!0,type:!0,var:!0,bool:!0,byte:!0,complex64:!0,complex128:!0,float32:!0,float64:!0,int8:!0,int16:!0,int32:!0,int64:!0,string:!0,uint8:!0,uint16:!0,uint32:!0,uint64:!0,int:!0,uint:!0,uintptr:!0,error:!0,rune:!0},c={true:!0,false:!0,iota:!0,nil:!0,append:!0,cap:!0,close:!0,complex:!0,copy:!0,delete:!0,imag:!0,len:!0,make:!0,new:!0,panic:!0,print:!0,println:!0,real:!0,recover:!0},d=/[+\-*&^%:=<>!|\/]/,a;function h(b,k){var _=b.next();if(_=='"'||_=="'"||_=="`")return k.tokenize=f(_),k.tokenize(b,k);if(/[\d\.]/.test(_))return _=="."?b.match(/^[0-9]+([eE][\-+]?[0-9]+)?/):_=="0"?b.match(/^[xX][0-9a-fA-F]+/)||b.match(/^0[0-7]+/):b.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/),"number";if(/[\[\]{}\(\),;\:\.]/.test(_))return a=_,null;if(_=="/"){if(b.eat("*"))return k.tokenize=p,p(b,k);if(b.eat("/"))return b.skipToEnd(),"comment"}if(d.test(_))return b.eatWhile(d),"operator";b.eatWhile(/[\w\$_\xa1-\uffff]/);var w=b.current();return l.propertyIsEnumerable(w)?((w=="case"||w=="default")&&(a="case"),"keyword"):c.propertyIsEnumerable(w)?"atom":"variable"}function f(b){return function(k,_){for(var w=!1,I,S=!1;(I=k.next())!=null;){if(I==b&&!w){S=!0;break}w=!w&&b!="`"&&I=="\\"}return(S||!(w||b=="`"))&&(_.tokenize=h),"string"}}function p(b,k){for(var _=!1,w;w=b.next();){if(w=="/"&&_){k.tokenize=h;break}_=w=="*"}return"comment"}function y(b,k,_,w,I){this.indented=b,this.column=k,this.type=_,this.align=w,this.prev=I}function g(b,k,_){return b.context=new y(b.indented,k,_,null,b.context)}function v(b){if(!!b.context.prev){var k=b.context.type;return(k==")"||k=="]"||k=="}")&&(b.indented=b.context.indented),b.context=b.context.prev}}return{startState:function(b){return{tokenize:null,context:new y((b||0)-n,0,"top",!1),indented:0,startOfLine:!0}},token:function(b,k){var _=k.context;if(b.sol()&&(_.align==null&&(_.align=!1),k.indented=b.indentation(),k.startOfLine=!0,_.type=="case"&&(_.type="}")),b.eatSpace())return null;a=null;var w=(k.tokenize||h)(b,k);return w=="comment"||(_.align==null&&(_.align=!0),a=="{"?g(k,b.column(),"}"):a=="["?g(k,b.column(),"]"):a=="("?g(k,b.column(),")"):a=="case"?_.type="case":(a=="}"&&_.type=="}"||a==_.type)&&v(k),k.startOfLine=!1),w},indent:function(b,k){if(b.tokenize!=h&&b.tokenize!=null)return i.Pass;var _=b.context,w=k&&k.charAt(0);if(_.type=="case"&&/^(?:case|default)\b/.test(k))return b.context.type="}",_.indented;var I=w==_.type;return _.align?_.column+(I?0:1):_.indented+(I?0:n)},electricChars:"{}):",closeBrackets:"()[]{}''\"\"``",fold:"brace",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}}),i.defineMIME("text/x-go","go")})});var Vf=Fe((Gf,Kf)=>{(function(i){typeof Gf=="object"&&typeof Kf=="object"?i(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("haskell",function(t,n){function l(S,R,O){return R(O),O(S,R)}var c=/[a-z_]/,d=/[A-Z]/,a=/\d/,h=/[0-9A-Fa-f]/,f=/[0-7]/,p=/[a-z_A-Z0-9'\xa1-\uffff]/,y=/[-!#$%&*+.\/<=>?@\\^|~:]/,g=/[(),;[\]`{}]/,v=/[ \t\v\f]/;function b(S,R){if(S.eatWhile(v))return null;var O=S.next();if(g.test(O)){if(O=="{"&&S.eat("-")){var U="comment";return S.eat("#")&&(U="meta"),l(S,R,k(U,1))}return null}if(O=="'")return S.eat("\\"),S.next(),S.eat("'")?"string":"string error";if(O=='"')return l(S,R,_);if(d.test(O))return S.eatWhile(p),S.eat(".")?"qualifier":"variable-2";if(c.test(O))return S.eatWhile(p),"variable";if(a.test(O)){if(O=="0"){if(S.eat(/[xX]/))return S.eatWhile(h),"integer";if(S.eat(/[oO]/))return S.eatWhile(f),"number"}S.eatWhile(a);var U="number";return S.match(/^\.\d+/)&&(U="number"),S.eat(/[eE]/)&&(U="number",S.eat(/[-+]/),S.eatWhile(a)),U}if(O=="."&&S.eat("."))return"keyword";if(y.test(O)){if(O=="-"&&S.eat(/-/)&&(S.eatWhile(/-/),!S.eat(y)))return S.skipToEnd(),"comment";var U="variable";return O==":"&&(U="variable-2"),S.eatWhile(y),U}return"error"}function k(S,R){return R==0?b:function(O,U){for(var $=R;!O.eol();){var J=O.next();if(J=="{"&&O.eat("-"))++$;else if(J=="-"&&O.eat("}")&&(--$,$==0))return U(b),S}return U(k(S,$)),S}}function _(S,R){for(;!S.eol();){var O=S.next();if(O=='"')return R(b),"string";if(O=="\\"){if(S.eol()||S.eat(v))return R(w),"string";S.eat("&")||S.next()}}return R(b),"string error"}function w(S,R){return S.eat("\\")?l(S,R,_):(S.next(),R(b),"error")}var I=function(){var S={};function R($){return function(){for(var J=0;J","@","~","=>"),R("builtin")("!!","$!","$","&&","+","++","-",".","/","/=","<","<*","<=","<$>","<*>","=<<","==",">",">=",">>",">>=","^","^^","||","*","*>","**"),R("builtin")("Applicative","Bool","Bounded","Char","Double","EQ","Either","Enum","Eq","False","FilePath","Float","Floating","Fractional","Functor","GT","IO","IOError","Int","Integer","Integral","Just","LT","Left","Maybe","Monad","Nothing","Num","Ord","Ordering","Rational","Read","ReadS","Real","RealFloat","RealFrac","Right","Show","ShowS","String","True"),R("builtin")("abs","acos","acosh","all","and","any","appendFile","asTypeOf","asin","asinh","atan","atan2","atanh","break","catch","ceiling","compare","concat","concatMap","const","cos","cosh","curry","cycle","decodeFloat","div","divMod","drop","dropWhile","either","elem","encodeFloat","enumFrom","enumFromThen","enumFromThenTo","enumFromTo","error","even","exp","exponent","fail","filter","flip","floatDigits","floatRadix","floatRange","floor","fmap","foldl","foldl1","foldr","foldr1","fromEnum","fromInteger","fromIntegral","fromRational","fst","gcd","getChar","getContents","getLine","head","id","init","interact","ioError","isDenormalized","isIEEE","isInfinite","isNaN","isNegativeZero","iterate","last","lcm","length","lex","lines","log","logBase","lookup","map","mapM","mapM_","max","maxBound","maximum","maybe","min","minBound","minimum","mod","negate","not","notElem","null","odd","or","otherwise","pi","pred","print","product","properFraction","pure","putChar","putStr","putStrLn","quot","quotRem","read","readFile","readIO","readList","readLn","readParen","reads","readsPrec","realToFrac","recip","rem","repeat","replicate","return","reverse","round","scaleFloat","scanl","scanl1","scanr","scanr1","seq","sequence","sequence_","show","showChar","showList","showParen","showString","shows","showsPrec","significand","signum","sin","sinh","snd","span","splitAt","sqrt","subtract","succ","sum","tail","take","takeWhile","tan","tanh","toEnum","toInteger","toRational","truncate","uncurry","undefined","unlines","until","unwords","unzip","unzip3","userError","words","writeFile","zip","zip3","zipWith","zipWith3");var O=n.overrideKeywords;if(O)for(var U in O)O.hasOwnProperty(U)&&(S[U]=O[U]);return S}();return{startState:function(){return{f:b}},copyState:function(S){return{f:S.f}},token:function(S,R){var O=R.f(S,function($){R.f=$}),U=S.current();return I.hasOwnProperty(U)?I[U]:O},blockCommentStart:"{-",blockCommentEnd:"-}",lineComment:"--"}}),i.defineMIME("text/x-haskell","haskell")})});var ba=Fe((Yf,Xf)=>{(function(i){typeof Yf=="object"&&typeof Xf=="object"?i(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";var t={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},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};i.defineMode("xml",function(l,c){var d=l.indentUnit,a={},h=c.htmlMode?t:n;for(var f in h)a[f]=h[f];for(var f in c)a[f]=c[f];var p,y;function g(T,A){function j(z){return A.tokenize=z,z(T,A)}var te=T.next();if(te=="<")return T.eat("!")?T.eat("[")?T.match("CDATA[")?j(k("atom","]]>")):null:T.match("--")?j(k("comment","-->")):T.match("DOCTYPE",!0,!0)?(T.eatWhile(/[\w\._\-]/),j(_(1))):null:T.eat("?")?(T.eatWhile(/[\w\._\-]/),A.tokenize=k("meta","?>"),"meta"):(p=T.eat("/")?"closeTag":"openTag",A.tokenize=v,"tag bracket");if(te=="&"){var F;return T.eat("#")?T.eat("x")?F=T.eatWhile(/[a-fA-F\d]/)&&T.eat(";"):F=T.eatWhile(/[\d]/)&&T.eat(";"):F=T.eatWhile(/[\w\.\-:]/)&&T.eat(";"),F?"atom":"error"}else return T.eatWhile(/[^&<]/),null}g.isInText=!0;function v(T,A){var j=T.next();if(j==">"||j=="/"&&T.eat(">"))return A.tokenize=g,p=j==">"?"endTag":"selfcloseTag","tag bracket";if(j=="=")return p="equals",null;if(j=="<"){A.tokenize=g,A.state=R,A.tagName=A.tagStart=null;var te=A.tokenize(T,A);return te?te+" tag error":"tag error"}else return/[\'\"]/.test(j)?(A.tokenize=b(j),A.stringStartCol=T.column(),A.tokenize(T,A)):(T.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function b(T){var A=function(j,te){for(;!j.eol();)if(j.next()==T){te.tokenize=v;break}return"string"};return A.isInAttribute=!0,A}function k(T,A){return function(j,te){for(;!j.eol();){if(j.match(A)){te.tokenize=g;break}j.next()}return T}}function _(T){return function(A,j){for(var te;(te=A.next())!=null;){if(te=="<")return j.tokenize=_(T+1),j.tokenize(A,j);if(te==">")if(T==1){j.tokenize=g;break}else return j.tokenize=_(T-1),j.tokenize(A,j)}return"meta"}}function w(T,A,j){this.prev=T.context,this.tagName=A||"",this.indent=T.indented,this.startOfLine=j,(a.doNotIndent.hasOwnProperty(A)||T.context&&T.context.noIndent)&&(this.noIndent=!0)}function I(T){T.context&&(T.context=T.context.prev)}function S(T,A){for(var j;;){if(!T.context||(j=T.context.tagName,!a.contextGrabbers.hasOwnProperty(j)||!a.contextGrabbers[j].hasOwnProperty(A)))return;I(T)}}function R(T,A,j){return T=="openTag"?(j.tagStart=A.column(),O):T=="closeTag"?U:R}function O(T,A,j){return T=="word"?(j.tagName=A.current(),y="tag",K):a.allowMissingTagName&&T=="endTag"?(y="tag bracket",K(T,A,j)):(y="error",O)}function U(T,A,j){if(T=="word"){var te=A.current();return j.context&&j.context.tagName!=te&&a.implicitlyClosed.hasOwnProperty(j.context.tagName)&&I(j),j.context&&j.context.tagName==te||a.matchClosing===!1?(y="tag",$):(y="tag error",J)}else return a.allowMissingTagName&&T=="endTag"?(y="tag bracket",$(T,A,j)):(y="error",J)}function $(T,A,j){return T!="endTag"?(y="error",$):(I(j),R)}function J(T,A,j){return y="error",$(T,A,j)}function K(T,A,j){if(T=="word")return y="attribute",X;if(T=="endTag"||T=="selfcloseTag"){var te=j.tagName,F=j.tagStart;return j.tagName=j.tagStart=null,T=="selfcloseTag"||a.autoSelfClosers.hasOwnProperty(te)?S(j,te):(S(j,te),j.context=new w(j,te,F==j.indented)),R}return y="error",K}function X(T,A,j){return T=="equals"?G:(a.allowMissing||(y="error"),K(T,A,j))}function G(T,A,j){return T=="string"?q:T=="word"&&a.allowUnquoted?(y="string",K):(y="error",K(T,A,j))}function q(T,A,j){return T=="string"?q:K(T,A,j)}return{startState:function(T){var A={tokenize:g,state:R,indented:T||0,tagName:null,tagStart:null,context:null};return T!=null&&(A.baseIndent=T),A},token:function(T,A){if(!A.tagName&&T.sol()&&(A.indented=T.indentation()),T.eatSpace())return null;p=null;var j=A.tokenize(T,A);return(j||p)&&j!="comment"&&(y=null,A.state=A.state(p||j,T,A),y&&(j=y=="error"?j+" error":y)),j},indent:function(T,A,j){var te=T.context;if(T.tokenize.isInAttribute)return T.tagStart==T.indented?T.stringStartCol+1:T.indented+d;if(te&&te.noIndent)return i.Pass;if(T.tokenize!=v&&T.tokenize!=g)return j?j.match(/^(\s*)/)[0].length:0;if(T.tagName)return a.multilineTagIndentPastTag!==!1?T.tagStart+T.tagName.length+2:T.tagStart+d*(a.multilineTagIndentFactor||1);if(a.alignCDATA&&/$/,blockCommentStart:"",configuration:a.htmlMode?"html":"xml",helperType:a.htmlMode?"html":"xml",skipAttribute:function(T){T.state==G&&(T.state=K)},xmlCurrentTag:function(T){return T.tagName?{name:T.tagName,close:T.type=="closeTag"}:null},xmlCurrentContext:function(T){for(var A=[],j=T.context;j;j=j.prev)A.push(j.tagName);return A.reverse()}}}),i.defineMIME("text/xml","xml"),i.defineMIME("application/xml","xml"),i.mimeModes.hasOwnProperty("text/html")||i.defineMIME("text/html",{name:"xml",htmlMode:!0})})});var tl=Fe((Zf,Qf)=>{(function(i){typeof Zf=="object"&&typeof Qf=="object"?i(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("javascript",function(t,n){var l=t.indentUnit,c=n.statementIndent,d=n.jsonld,a=n.json||d,h=n.trackScope!==!1,f=n.typescript,p=n.wordCharacters||/[\w$\xa1-\uffff]/,y=function(){function D(Vt){return{type:Vt,style:"keyword"}}var B=D("keyword a"),de=D("keyword b"),De=D("keyword c"),ft=D("keyword d"),xt=D("operator"),Xe={type:"atom",style:"atom"};return{if:D("if"),while:B,with:B,else:de,do:de,try:de,finally:de,return:ft,break:ft,continue:ft,new:D("new"),delete:De,void:De,throw:De,debugger:D("debugger"),var:D("var"),const:D("var"),let:D("var"),function:D("function"),catch:D("catch"),for:D("for"),switch:D("switch"),case:D("case"),default:D("default"),in:xt,typeof:xt,instanceof:xt,true:Xe,false:Xe,null:Xe,undefined:Xe,NaN:Xe,Infinity:Xe,this:D("this"),class:D("class"),super:D("atom"),yield:De,export:D("export"),import:D("import"),extends:De,await:De}}(),g=/[+\-*&%=<>!?|~^@]/,v=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function b(D){for(var B=!1,de,De=!1;(de=D.next())!=null;){if(!B){if(de=="/"&&!De)return;de=="["?De=!0:De&&de=="]"&&(De=!1)}B=!B&&de=="\\"}}var k,_;function w(D,B,de){return k=D,_=de,B}function I(D,B){var de=D.next();if(de=='"'||de=="'")return B.tokenize=S(de),B.tokenize(D,B);if(de=="."&&D.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return w("number","number");if(de=="."&&D.match(".."))return w("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(de))return w(de);if(de=="="&&D.eat(">"))return w("=>","operator");if(de=="0"&&D.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return w("number","number");if(/\d/.test(de))return D.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),w("number","number");if(de=="/")return D.eat("*")?(B.tokenize=R,R(D,B)):D.eat("/")?(D.skipToEnd(),w("comment","comment")):xe(D,B,1)?(b(D),D.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),w("regexp","string-2")):(D.eat("="),w("operator","operator",D.current()));if(de=="`")return B.tokenize=O,O(D,B);if(de=="#"&&D.peek()=="!")return D.skipToEnd(),w("meta","meta");if(de=="#"&&D.eatWhile(p))return w("variable","property");if(de=="<"&&D.match("!--")||de=="-"&&D.match("->")&&!/\S/.test(D.string.slice(0,D.start)))return D.skipToEnd(),w("comment","comment");if(g.test(de))return(de!=">"||!B.lexical||B.lexical.type!=">")&&(D.eat("=")?(de=="!"||de=="=")&&D.eat("="):/[<>*+\-|&?]/.test(de)&&(D.eat(de),de==">"&&D.eat(de))),de=="?"&&D.eat(".")?w("."):w("operator","operator",D.current());if(p.test(de)){D.eatWhile(p);var De=D.current();if(B.lastType!="."){if(y.propertyIsEnumerable(De)){var ft=y[De];return w(ft.type,ft.style,De)}if(De=="async"&&D.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return w("async","keyword",De)}return w("variable","variable",De)}}function S(D){return function(B,de){var De=!1,ft;if(d&&B.peek()=="@"&&B.match(v))return de.tokenize=I,w("jsonld-keyword","meta");for(;(ft=B.next())!=null&&!(ft==D&&!De);)De=!De&&ft=="\\";return De||(de.tokenize=I),w("string","string")}}function R(D,B){for(var de=!1,De;De=D.next();){if(De=="/"&&de){B.tokenize=I;break}de=De=="*"}return w("comment","comment")}function O(D,B){for(var de=!1,De;(De=D.next())!=null;){if(!de&&(De=="`"||De=="$"&&D.eat("{"))){B.tokenize=I;break}de=!de&&De=="\\"}return w("quasi","string-2",D.current())}var U="([{}])";function $(D,B){B.fatArrowAt&&(B.fatArrowAt=null);var de=D.string.indexOf("=>",D.start);if(!(de<0)){if(f){var De=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(D.string.slice(D.start,de));De&&(de=De.index)}for(var ft=0,xt=!1,Xe=de-1;Xe>=0;--Xe){var Vt=D.string.charAt(Xe),Fr=U.indexOf(Vt);if(Fr>=0&&Fr<3){if(!ft){++Xe;break}if(--ft==0){Vt=="("&&(xt=!0);break}}else if(Fr>=3&&Fr<6)++ft;else if(p.test(Vt))xt=!0;else if(/["'\/`]/.test(Vt))for(;;--Xe){if(Xe==0)return;var Wn=D.string.charAt(Xe-1);if(Wn==Vt&&D.string.charAt(Xe-2)!="\\"){Xe--;break}}else if(xt&&!ft){++Xe;break}}xt&&!ft&&(B.fatArrowAt=Xe)}}var J={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function K(D,B,de,De,ft,xt){this.indented=D,this.column=B,this.type=de,this.prev=ft,this.info=xt,De!=null&&(this.align=De)}function X(D,B){if(!h)return!1;for(var de=D.localVars;de;de=de.next)if(de.name==B)return!0;for(var De=D.context;De;De=De.prev)for(var de=De.vars;de;de=de.next)if(de.name==B)return!0}function G(D,B,de,De,ft){var xt=D.cc;for(q.state=D,q.stream=ft,q.marked=null,q.cc=xt,q.style=B,D.lexical.hasOwnProperty("align")||(D.lexical.align=!0);;){var Xe=xt.length?xt.pop():a?ke:qe;if(Xe(de,De)){for(;xt.length&&xt[xt.length-1].lex;)xt.pop()();return q.marked?q.marked:de=="variable"&&X(D,De)?"variable-2":B}}}var q={state:null,column:null,marked:null,cc:null};function T(){for(var D=arguments.length-1;D>=0;D--)q.cc.push(arguments[D])}function A(){return T.apply(null,arguments),!0}function j(D,B){for(var de=B;de;de=de.next)if(de.name==D)return!0;return!1}function te(D){var B=q.state;if(q.marked="def",!!h){if(B.context){if(B.lexical.info=="var"&&B.context&&B.context.block){var de=F(D,B.context);if(de!=null){B.context=de;return}}else if(!j(D,B.localVars)){B.localVars=new be(D,B.localVars);return}}n.globalVars&&!j(D,B.globalVars)&&(B.globalVars=new be(D,B.globalVars))}}function F(D,B){if(B)if(B.block){var de=F(D,B.prev);return de?de==B.prev?B:new se(de,B.vars,!0):null}else return j(D,B.vars)?B:new se(B.prev,new be(D,B.vars),!1);else return null}function z(D){return D=="public"||D=="private"||D=="protected"||D=="abstract"||D=="readonly"}function se(D,B,de){this.prev=D,this.vars=B,this.block=de}function be(D,B){this.name=D,this.next=B}var W=new be("this",new be("arguments",null));function M(){q.state.context=new se(q.state.context,q.state.localVars,!1),q.state.localVars=W}function we(){q.state.context=new se(q.state.context,q.state.localVars,!0),q.state.localVars=null}function Pe(){q.state.localVars=q.state.context.vars,q.state.context=q.state.context.prev}Pe.lex=!0;function ve(D,B){var de=function(){var De=q.state,ft=De.indented;if(De.lexical.type=="stat")ft=De.lexical.indented;else for(var xt=De.lexical;xt&&xt.type==")"&&xt.align;xt=xt.prev)ft=xt.indented;De.lexical=new K(ft,q.stream.column(),D,null,De.lexical,B)};return de.lex=!0,de}function Ee(){var D=q.state;D.lexical.prev&&(D.lexical.type==")"&&(D.indented=D.lexical.indented),D.lexical=D.lexical.prev)}Ee.lex=!0;function ze(D){function B(de){return de==D?A():D==";"||de=="}"||de==")"||de=="]"?T():A(B)}return B}function qe(D,B){return D=="var"?A(ve("vardef",B),$r,ze(";"),Ee):D=="keyword a"?A(ve("form"),at,qe,Ee):D=="keyword b"?A(ve("form"),qe,Ee):D=="keyword d"?q.stream.match(/^\s*$/,!1)?A():A(ve("stat"),Re,ze(";"),Ee):D=="debugger"?A(ze(";")):D=="{"?A(ve("}"),we,Lt,Ee,Pe):D==";"?A():D=="if"?(q.state.lexical.info=="else"&&q.state.cc[q.state.cc.length-1]==Ee&&q.state.cc.pop()(),A(ve("form"),at,qe,Ee,ie)):D=="function"?A(N):D=="for"?A(ve("form"),we,Z,qe,Pe,Ee):D=="class"||f&&B=="interface"?(q.marked="keyword",A(ve("form",D=="class"?D:B),Le,Ee)):D=="variable"?f&&B=="declare"?(q.marked="keyword",A(qe)):f&&(B=="module"||B=="enum"||B=="type")&&q.stream.match(/^\s*\w/,!1)?(q.marked="keyword",B=="enum"?A(et):B=="type"?A(ue,ze("operator"),rt,ze(";")):A(ve("form"),zt,ze("{"),ve("}"),Lt,Ee,Ee)):f&&B=="namespace"?(q.marked="keyword",A(ve("form"),ke,qe,Ee)):f&&B=="abstract"?(q.marked="keyword",A(qe)):A(ve("stat"),it):D=="switch"?A(ve("form"),at,ze("{"),ve("}","switch"),we,Lt,Ee,Ee,Pe):D=="case"?A(ke,ze(":")):D=="default"?A(ze(":")):D=="catch"?A(ve("form"),M,me,qe,Ee,Pe):D=="export"?A(ve("stat"),_t,Ee):D=="import"?A(ve("stat"),H,Ee):D=="async"?A(qe):B=="@"?A(ke,qe):T(ve("stat"),ke,ze(";"),Ee)}function me(D){if(D=="(")return A(pe,ze(")"))}function ke(D,B){return gt(D,B,!1)}function Ue(D,B){return gt(D,B,!0)}function at(D){return D!="("?T():A(ve(")"),Re,ze(")"),Ee)}function gt(D,B,de){if(q.state.fatArrowAt==q.stream.start){var De=de?_e:Qe;if(D=="(")return A(M,ve(")"),We(pe,")"),Ee,ze("=>"),De,Pe);if(D=="variable")return T(M,zt,ze("=>"),De,Pe)}var ft=de?Be:Ie;return J.hasOwnProperty(D)?A(ft):D=="function"?A(N,ft):D=="class"||f&&B=="interface"?(q.marked="keyword",A(ve("form"),ge,Ee)):D=="keyword c"||D=="async"?A(de?Ue:ke):D=="("?A(ve(")"),Re,ze(")"),Ee,ft):D=="operator"||D=="spread"?A(de?Ue:ke):D=="["?A(ve("]"),Ve,Ee,ft):D=="{"?qt(ot,"}",null,ft):D=="quasi"?T(Ge,ft):D=="new"?A(Y(de)):A()}function Re(D){return D.match(/[;\}\)\],]/)?T():T(ke)}function Ie(D,B){return D==","?A(Re):Be(D,B,!1)}function Be(D,B,de){var De=de==!1?Ie:Be,ft=de==!1?ke:Ue;if(D=="=>")return A(M,de?_e:Qe,Pe);if(D=="operator")return/\+\+|--/.test(B)||f&&B=="!"?A(De):f&&B=="<"&&q.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?A(ve(">"),We(rt,">"),Ee,De):B=="?"?A(ke,ze(":"),ft):A(ft);if(D=="quasi")return T(Ge,De);if(D!=";"){if(D=="(")return qt(Ue,")","call",De);if(D==".")return A(Ne,De);if(D=="[")return A(ve("]"),Re,ze("]"),Ee,De);if(f&&B=="as")return q.marked="keyword",A(rt,De);if(D=="regexp")return q.state.lastType=q.marked="operator",q.stream.backUp(q.stream.pos-q.stream.start-1),A(ft)}}function Ge(D,B){return D!="quasi"?T():B.slice(B.length-2)!="${"?A(Ge):A(ke,He)}function He(D){if(D=="}")return q.marked="string-2",q.state.tokenize=O,A(Ge)}function Qe(D){return $(q.stream,q.state),T(D=="{"?qe:ke)}function _e(D){return $(q.stream,q.state),T(D=="{"?qe:Ue)}function Y(D){return function(B){return B=="."?A(D?le:fe):B=="variable"&&f?A(Ir,D?Be:Ie):T(D?Ue:ke)}}function fe(D,B){if(B=="target")return q.marked="keyword",A(Ie)}function le(D,B){if(B=="target")return q.marked="keyword",A(Be)}function it(D){return D==":"?A(Ee,qe):T(Ie,ze(";"),Ee)}function Ne(D){if(D=="variable")return q.marked="property",A()}function ot(D,B){if(D=="async")return q.marked="property",A(ot);if(D=="variable"||q.style=="keyword"){if(q.marked="property",B=="get"||B=="set")return A(Ye);var de;return f&&q.state.fatArrowAt==q.stream.start&&(de=q.stream.match(/^\s*:\s*/,!1))&&(q.state.fatArrowAt=q.stream.pos+de[0].length),A(Je)}else{if(D=="number"||D=="string")return q.marked=d?"property":q.style+" property",A(Je);if(D=="jsonld-keyword")return A(Je);if(f&&z(B))return q.marked="keyword",A(ot);if(D=="[")return A(ke,cr,ze("]"),Je);if(D=="spread")return A(Ue,Je);if(B=="*")return q.marked="keyword",A(ot);if(D==":")return T(Je)}}function Ye(D){return D!="variable"?T(Je):(q.marked="property",A(N))}function Je(D){if(D==":")return A(Ue);if(D=="(")return T(N)}function We(D,B,de){function De(ft,xt){if(de?de.indexOf(ft)>-1:ft==","){var Xe=q.state.lexical;return Xe.info=="call"&&(Xe.pos=(Xe.pos||0)+1),A(function(Vt,Fr){return Vt==B||Fr==B?T():T(D)},De)}return ft==B||xt==B?A():de&&de.indexOf(";")>-1?T(D):A(ze(B))}return function(ft,xt){return ft==B||xt==B?A():T(D,De)}}function qt(D,B,de){for(var De=3;De"),rt);if(D=="quasi")return T(Kt,Ht)}function wt(D){if(D=="=>")return A(rt)}function fr(D){return D.match(/[\}\)\]]/)?A():D==","||D==";"?A(fr):T(Et,fr)}function Et(D,B){if(D=="variable"||q.style=="keyword")return q.marked="property",A(Et);if(B=="?"||D=="number"||D=="string")return A(Et);if(D==":")return A(rt);if(D=="[")return A(ze("variable"),lt,ze("]"),Et);if(D=="(")return T(ee,Et);if(!D.match(/[;\}\)\],]/))return A()}function Kt(D,B){return D!="quasi"?T():B.slice(B.length-2)!="${"?A(Kt):A(rt,kt)}function kt(D){if(D=="}")return q.marked="string-2",q.state.tokenize=O,A(Kt)}function st(D,B){return D=="variable"&&q.stream.match(/^\s*[?:]/,!1)||B=="?"?A(st):D==":"?A(rt):D=="spread"?A(st):T(rt)}function Ht(D,B){if(B=="<")return A(ve(">"),We(rt,">"),Ee,Ht);if(B=="|"||D=="."||B=="&")return A(rt);if(D=="[")return A(rt,ze("]"),Ht);if(B=="extends"||B=="implements")return q.marked="keyword",A(rt);if(B=="?")return A(rt,ze(":"),rt)}function Ir(D,B){if(B=="<")return A(ve(">"),We(rt,">"),Ee,Ht)}function dr(){return T(rt,hr)}function hr(D,B){if(B=="=")return A(rt)}function $r(D,B){return B=="enum"?(q.marked="keyword",A(et)):T(zt,cr,Zt,ne)}function zt(D,B){if(f&&z(B))return q.marked="keyword",A(zt);if(D=="variable")return te(B),A();if(D=="spread")return A(zt);if(D=="[")return qt(sr,"]");if(D=="{")return qt(yr,"}")}function yr(D,B){return D=="variable"&&!q.stream.match(/^\s*:/,!1)?(te(B),A(Zt)):(D=="variable"&&(q.marked="property"),D=="spread"?A(zt):D=="}"?T():D=="["?A(ke,ze("]"),ze(":"),yr):A(ze(":"),zt,Zt))}function sr(){return T(zt,Zt)}function Zt(D,B){if(B=="=")return A(Ue)}function ne(D){if(D==",")return A($r)}function ie(D,B){if(D=="keyword b"&&B=="else")return A(ve("form","else"),qe,Ee)}function Z(D,B){if(B=="await")return A(Z);if(D=="(")return A(ve(")"),re,Ee)}function re(D){return D=="var"?A($r,P):D=="variable"?A(P):T(P)}function P(D,B){return D==")"?A():D==";"?A(P):B=="in"||B=="of"?(q.marked="keyword",A(ke,P)):T(ke,P)}function N(D,B){if(B=="*")return q.marked="keyword",A(N);if(D=="variable")return te(B),A(N);if(D=="(")return A(M,ve(")"),We(pe,")"),Ee,Mt,qe,Pe);if(f&&B=="<")return A(ve(">"),We(dr,">"),Ee,N)}function ee(D,B){if(B=="*")return q.marked="keyword",A(ee);if(D=="variable")return te(B),A(ee);if(D=="(")return A(M,ve(")"),We(pe,")"),Ee,Mt,Pe);if(f&&B=="<")return A(ve(">"),We(dr,">"),Ee,ee)}function ue(D,B){if(D=="keyword"||D=="variable")return q.marked="type",A(ue);if(B=="<")return A(ve(">"),We(dr,">"),Ee)}function pe(D,B){return B=="@"&&A(ke,pe),D=="spread"?A(pe):f&&z(B)?(q.marked="keyword",A(pe)):f&&D=="this"?A(cr,Zt):T(zt,cr,Zt)}function ge(D,B){return D=="variable"?Le(D,B):Me(D,B)}function Le(D,B){if(D=="variable")return te(B),A(Me)}function Me(D,B){if(B=="<")return A(ve(">"),We(dr,">"),Ee,Me);if(B=="extends"||B=="implements"||f&&D==",")return B=="implements"&&(q.marked="keyword"),A(f?rt:ke,Me);if(D=="{")return A(ve("}"),Se,Ee)}function Se(D,B){if(D=="async"||D=="variable"&&(B=="static"||B=="get"||B=="set"||f&&z(B))&&q.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return q.marked="keyword",A(Se);if(D=="variable"||q.style=="keyword")return q.marked="property",A(Ke,Se);if(D=="number"||D=="string")return A(Ke,Se);if(D=="[")return A(ke,cr,ze("]"),Ke,Se);if(B=="*")return q.marked="keyword",A(Se);if(f&&D=="(")return T(ee,Se);if(D==";"||D==",")return A(Se);if(D=="}")return A();if(B=="@")return A(ke,Se)}function Ke(D,B){if(B=="!"||B=="?")return A(Ke);if(D==":")return A(rt,Zt);if(B=="=")return A(Ue);var de=q.state.lexical.prev,De=de&&de.info=="interface";return T(De?ee:N)}function _t(D,B){return B=="*"?(q.marked="keyword",A(Ae,ze(";"))):B=="default"?(q.marked="keyword",A(ke,ze(";"))):D=="{"?A(We(mt,"}"),Ae,ze(";")):T(qe)}function mt(D,B){if(B=="as")return q.marked="keyword",A(ze("variable"));if(D=="variable")return T(Ue,mt)}function H(D){return D=="string"?A():D=="("?T(ke):D=="."?T(Ie):T(oe,he,Ae)}function oe(D,B){return D=="{"?qt(oe,"}"):(D=="variable"&&te(B),B=="*"&&(q.marked="keyword"),A(Ce))}function he(D){if(D==",")return A(oe,he)}function Ce(D,B){if(B=="as")return q.marked="keyword",A(oe)}function Ae(D,B){if(B=="from")return q.marked="keyword",A(ke)}function Ve(D){return D=="]"?A():T(We(Ue,"]"))}function et(){return T(ve("form"),zt,ze("{"),ve("}"),We(bt,"}"),Ee,Ee)}function bt(){return T(zt,Zt)}function Dt(D,B){return D.lastType=="operator"||D.lastType==","||g.test(B.charAt(0))||/[,.]/.test(B.charAt(0))}function xe(D,B,de){return B.tokenize==I&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(B.lastType)||B.lastType=="quasi"&&/\{\s*$/.test(D.string.slice(0,D.pos-(de||0)))}return{startState:function(D){var B={tokenize:I,lastType:"sof",cc:[],lexical:new K((D||0)-l,0,"block",!1),localVars:n.localVars,context:n.localVars&&new se(null,null,!1),indented:D||0};return n.globalVars&&typeof n.globalVars=="object"&&(B.globalVars=n.globalVars),B},token:function(D,B){if(D.sol()&&(B.lexical.hasOwnProperty("align")||(B.lexical.align=!1),B.indented=D.indentation(),$(D,B)),B.tokenize!=R&&D.eatSpace())return null;var de=B.tokenize(D,B);return k=="comment"?de:(B.lastType=k=="operator"&&(_=="++"||_=="--")?"incdec":k,G(B,de,k,_,D))},indent:function(D,B){if(D.tokenize==R||D.tokenize==O)return i.Pass;if(D.tokenize!=I)return 0;var de=B&&B.charAt(0),De=D.lexical,ft;if(!/^\s*else\b/.test(B))for(var xt=D.cc.length-1;xt>=0;--xt){var Xe=D.cc[xt];if(Xe==Ee)De=De.prev;else if(Xe!=ie&&Xe!=Pe)break}for(;(De.type=="stat"||De.type=="form")&&(de=="}"||(ft=D.cc[D.cc.length-1])&&(ft==Ie||ft==Be)&&!/^[,\.=+\-*:?[\(]/.test(B));)De=De.prev;c&&De.type==")"&&De.prev.type=="stat"&&(De=De.prev);var Vt=De.type,Fr=de==Vt;return Vt=="vardef"?De.indented+(D.lastType=="operator"||D.lastType==","?De.info.length+1:0):Vt=="form"&&de=="{"?De.indented:Vt=="form"?De.indented+l:Vt=="stat"?De.indented+(Dt(D,B)?c||l:0):De.info=="switch"&&!Fr&&n.doubleIndentSwitch!=!1?De.indented+(/^(?:case|default)\b/.test(B)?l:2*l):De.align?De.column+(Fr?0:1):De.indented+(Fr?0:l)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:a?null:"/*",blockCommentEnd:a?null:"*/",blockCommentContinue:a?null:" * ",lineComment:a?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:a?"json":"javascript",jsonldMode:d,jsonMode:a,expressionAllowed:xe,skipExpression:function(D){G(D,"atom","atom","true",new i.StringStream("",2,null))}}}),i.registerHelper("wordChars","javascript",/[\w$]/),i.defineMIME("text/javascript","javascript"),i.defineMIME("text/ecmascript","javascript"),i.defineMIME("application/javascript","javascript"),i.defineMIME("application/x-javascript","javascript"),i.defineMIME("application/ecmascript","javascript"),i.defineMIME("application/json",{name:"javascript",json:!0}),i.defineMIME("application/x-json",{name:"javascript",json:!0}),i.defineMIME("application/manifest+json",{name:"javascript",json:!0}),i.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),i.defineMIME("text/typescript",{name:"javascript",typescript:!0}),i.defineMIME("application/typescript",{name:"javascript",typescript:!0})})});var rl=Fe((Jf,ed)=>{(function(i){typeof Jf=="object"&&typeof ed=="object"?i(At(),ba(),tl(),Js()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../xml/xml","../javascript/javascript","../css/css"],i):i(CodeMirror)})(function(i){"use strict";var t={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function n(p,y,g){var v=p.current(),b=v.search(y);return b>-1?p.backUp(v.length-b):v.match(/<\/?$/)&&(p.backUp(v.length),p.match(y,!1)||p.match(v)),g}var l={};function c(p){var y=l[p];return y||(l[p]=new RegExp("\\s+"+p+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function d(p,y){var g=p.match(c(y));return g?/^\s*(.*?)\s*$/.exec(g[2])[1]:""}function a(p,y){return new RegExp((y?"^":"")+"","i")}function h(p,y){for(var g in p)for(var v=y[g]||(y[g]=[]),b=p[g],k=b.length-1;k>=0;k--)v.unshift(b[k])}function f(p,y){for(var g=0;g=0;_--)v.script.unshift(["type",k[_].matches,k[_].mode]);function w(I,S){var R=g.token(I,S.htmlState),O=/\btag\b/.test(R),U;if(O&&!/[<>\s\/]/.test(I.current())&&(U=S.htmlState.tagName&&S.htmlState.tagName.toLowerCase())&&v.hasOwnProperty(U))S.inTag=U+" ";else if(S.inTag&&O&&/>$/.test(I.current())){var $=/^([\S]+) (.*)/.exec(S.inTag);S.inTag=null;var J=I.current()==">"&&f(v[$[1]],$[2]),K=i.getMode(p,J),X=a($[1],!0),G=a($[1],!1);S.token=function(q,T){return q.match(X,!1)?(T.token=w,T.localState=T.localMode=null,null):n(q,G,T.localMode.token(q,T.localState))},S.localMode=K,S.localState=i.startState(K,g.indent(S.htmlState,"",""))}else S.inTag&&(S.inTag+=I.current(),I.eol()&&(S.inTag+=" "));return R}return{startState:function(){var I=i.startState(g);return{token:w,inTag:null,localMode:null,localState:null,htmlState:I}},copyState:function(I){var S;return I.localState&&(S=i.copyState(I.localMode,I.localState)),{token:I.token,inTag:I.inTag,localMode:I.localMode,localState:S,htmlState:i.copyState(g,I.htmlState)}},token:function(I,S){return S.token(I,S)},indent:function(I,S,R){return!I.localMode||/^\s*<\//.test(S)?g.indent(I.htmlState,S,R):I.localMode.indent?I.localMode.indent(I.localState,S,R):i.Pass},innerMode:function(I){return{state:I.localState||I.htmlState,mode:I.localMode||g}}}},"xml","javascript","css"),i.defineMIME("text/html","htmlmixed")})});var nd=Fe((td,rd)=>{(function(i){typeof td=="object"&&typeof rd=="object"?i(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("julia",function(t,n){function l(F,z){return typeof z=="undefined"&&(z="\\b"),new RegExp("^(("+F.join(")|(")+"))"+z)}var c="\\\\[0-7]{1,3}",d="\\\\x[A-Fa-f0-9]{1,2}",a=`\\\\[abefnrtv0%?'"\\\\]`,h="([^\\u0027\\u005C\\uD800-\\uDFFF]|[\\uD800-\\uDFFF][\\uDC00-\\uDFFF])",f=n.operators||l(["[<>]:","[<>=]=","<<=?",">>>?=?","=>","->","\\/\\/","[\\\\%*+\\-<>!=\\/^|&\\u00F7\\u22BB]=?","\\?","\\$","~",":","\\u00D7","\\u2208","\\u2209","\\u220B","\\u220C","\\u2218","\\u221A","\\u221B","\\u2229","\\u222A","\\u2260","\\u2264","\\u2265","\\u2286","\\u2288","\\u228A","\\u22C5","\\b(in|isa)\\b(?!.?\\()"],""),p=n.delimiters||/^[;,()[\]{}]/,y=n.identifiers||/^[_A-Za-z\u00A1-\u2217\u2219-\uFFFF][\w\u00A1-\u2217\u2219-\uFFFF]*!*/,g=l([c,d,a,h],"'"),v=["begin","function","type","struct","immutable","let","macro","for","while","quote","if","else","elseif","try","finally","catch","do"],b=["end","else","elseif","catch","finally"],k=["if","else","elseif","while","for","begin","let","end","do","try","catch","finally","return","break","continue","global","local","const","export","import","importall","using","function","where","macro","module","baremodule","struct","type","mutable","immutable","quote","typealias","abstract","primitive","bitstype"],_=["true","false","nothing","NaN","Inf"];i.registerHelper("hintWords","julia",k.concat(_));var w=l(v),I=l(b),S=l(k),R=l(_),O=/^@[_A-Za-z][\w]*/,U=/^:[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/,$=/^(`|([_A-Za-z\u00A1-\uFFFF]*"("")?))/;function J(F){return F.nestedArrays>0}function K(F){return F.nestedGenerators>0}function X(F,z){return typeof z=="undefined"&&(z=0),F.scopes.length<=z?null:F.scopes[F.scopes.length-(z+1)]}function G(F,z){if(F.match("#=",!1))return z.tokenize=T,z.tokenize(F,z);var se=z.leavingExpr;if(F.sol()&&(se=!1),z.leavingExpr=!1,se&&F.match(/^'+/))return"operator";if(F.match(/\.{4,}/))return"error";if(F.match(/\.{1,3}/))return"operator";if(F.eatSpace())return null;var be=F.peek();if(be==="#")return F.skipToEnd(),"comment";if(be==="["&&(z.scopes.push("["),z.nestedArrays++),be==="("&&(z.scopes.push("("),z.nestedGenerators++),J(z)&&be==="]"){for(;z.scopes.length&&X(z)!=="[";)z.scopes.pop();z.scopes.pop(),z.nestedArrays--,z.leavingExpr=!0}if(K(z)&&be===")"){for(;z.scopes.length&&X(z)!=="(";)z.scopes.pop();z.scopes.pop(),z.nestedGenerators--,z.leavingExpr=!0}if(J(z)){if(z.lastToken=="end"&&F.match(":"))return"operator";if(F.match("end"))return"number"}var W;if((W=F.match(w,!1))&&z.scopes.push(W[0]),F.match(I,!1)&&z.scopes.pop(),F.match(/^::(?![:\$])/))return z.tokenize=q,z.tokenize(F,z);if(!se&&F.match(U)||F.match(/:([<>]:|<<=?|>>>?=?|->|\/\/|\.{2,3}|[\.\\%*+\-<>!\/^|&]=?|[~\?\$])/))return"builtin";if(F.match(f))return"operator";if(F.match(/^\.?\d/,!1)){var M=RegExp(/^im\b/),we=!1;if(F.match(/^0x\.[0-9a-f_]+p[\+\-]?[_\d]+/i)&&(we=!0),F.match(/^0x[0-9a-f_]+/i)&&(we=!0),F.match(/^0b[01_]+/i)&&(we=!0),F.match(/^0o[0-7_]+/i)&&(we=!0),F.match(/^(?:(?:\d[_\d]*)?\.(?!\.)(?:\d[_\d]*)?|\d[_\d]*\.(?!\.)(?:\d[_\d]*))?([Eef][\+\-]?[_\d]+)?/i)&&(we=!0),F.match(/^\d[_\d]*(e[\+\-]?\d+)?/i)&&(we=!0),we)return F.match(M),z.leavingExpr=!0,"number"}if(F.match("'"))return z.tokenize=A,z.tokenize(F,z);if(F.match($))return z.tokenize=j(F.current()),z.tokenize(F,z);if(F.match(O))return"meta";if(F.match(p))return null;if(F.match(S))return"keyword";if(F.match(R))return"builtin";var Pe=z.isDefinition||z.lastToken=="function"||z.lastToken=="macro"||z.lastToken=="type"||z.lastToken=="struct"||z.lastToken=="immutable";return F.match(y)?Pe?F.peek()==="."?(z.isDefinition=!0,"variable"):(z.isDefinition=!1,"def"):(z.leavingExpr=!0,"variable"):(F.next(),"error")}function q(F,z){return F.match(/.*?(?=[,;{}()=\s]|$)/),F.match("{")?z.nestedParameters++:F.match("}")&&z.nestedParameters>0&&z.nestedParameters--,z.nestedParameters>0?F.match(/.*?(?={|})/)||F.next():z.nestedParameters==0&&(z.tokenize=G),"builtin"}function T(F,z){return F.match("#=")&&z.nestedComments++,F.match(/.*?(?=(#=|=#))/)||F.skipToEnd(),F.match("=#")&&(z.nestedComments--,z.nestedComments==0&&(z.tokenize=G)),"comment"}function A(F,z){var se=!1,be;if(F.match(g))se=!0;else if(be=F.match(/\\u([a-f0-9]{1,4})(?=')/i)){var W=parseInt(be[1],16);(W<=55295||W>=57344)&&(se=!0,F.next())}else if(be=F.match(/\\U([A-Fa-f0-9]{5,8})(?=')/)){var W=parseInt(be[1],16);W<=1114111&&(se=!0,F.next())}return se?(z.leavingExpr=!0,z.tokenize=G,"string"):(F.match(/^[^']+(?=')/)||F.skipToEnd(),F.match("'")&&(z.tokenize=G),"error")}function j(F){F.substr(-3)==='"""'?F='"""':F.substr(-1)==='"'&&(F='"');function z(se,be){if(se.eat("\\"))se.next();else{if(se.match(F))return be.tokenize=G,be.leavingExpr=!0,"string";se.eat(/[`"]/)}return se.eatWhile(/[^\\`"]/),"string"}return z}var te={startState:function(){return{tokenize:G,scopes:[],lastToken:null,leavingExpr:!1,isDefinition:!1,nestedArrays:0,nestedComments:0,nestedGenerators:0,nestedParameters:0,firstParenPos:-1}},token:function(F,z){var se=z.tokenize(F,z),be=F.current();return be&&se&&(z.lastToken=be),se},indent:function(F,z){var se=0;return(z==="]"||z===")"||/^end\b/.test(z)||/^else/.test(z)||/^catch\b/.test(z)||/^elseif\b/.test(z)||/^finally/.test(z))&&(se=-1),(F.scopes.length+se)*t.indentUnit},electricInput:/\b(end|else|catch|finally)\b/,blockCommentStart:"#=",blockCommentEnd:"=#",lineComment:"#",closeBrackets:'()[]{}""',fold:"indent"};return te}),i.defineMIME("text/x-julia","julia")})});var ad=Fe((id,od)=>{(function(i){typeof id=="object"&&typeof od=="object"?i(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("lua",function(t,n){var l=t.indentUnit;function c(w){return new RegExp("^(?:"+w.join("|")+")","i")}function d(w){return new RegExp("^(?:"+w.join("|")+")$","i")}var a=d(n.specials||[]),h=d(["_G","_VERSION","assert","collectgarbage","dofile","error","getfenv","getmetatable","ipairs","load","loadfile","loadstring","module","next","pairs","pcall","print","rawequal","rawget","rawset","require","select","setfenv","setmetatable","tonumber","tostring","type","unpack","xpcall","coroutine.create","coroutine.resume","coroutine.running","coroutine.status","coroutine.wrap","coroutine.yield","debug.debug","debug.getfenv","debug.gethook","debug.getinfo","debug.getlocal","debug.getmetatable","debug.getregistry","debug.getupvalue","debug.setfenv","debug.sethook","debug.setlocal","debug.setmetatable","debug.setupvalue","debug.traceback","close","flush","lines","read","seek","setvbuf","write","io.close","io.flush","io.input","io.lines","io.open","io.output","io.popen","io.read","io.stderr","io.stdin","io.stdout","io.tmpfile","io.type","io.write","math.abs","math.acos","math.asin","math.atan","math.atan2","math.ceil","math.cos","math.cosh","math.deg","math.exp","math.floor","math.fmod","math.frexp","math.huge","math.ldexp","math.log","math.log10","math.max","math.min","math.modf","math.pi","math.pow","math.rad","math.random","math.randomseed","math.sin","math.sinh","math.sqrt","math.tan","math.tanh","os.clock","os.date","os.difftime","os.execute","os.exit","os.getenv","os.remove","os.rename","os.setlocale","os.time","os.tmpname","package.cpath","package.loaded","package.loaders","package.loadlib","package.path","package.preload","package.seeall","string.byte","string.char","string.dump","string.find","string.format","string.gmatch","string.gsub","string.len","string.lower","string.match","string.rep","string.reverse","string.sub","string.upper","table.concat","table.insert","table.maxn","table.remove","table.sort"]),f=d(["and","break","elseif","false","nil","not","or","return","true","function","end","if","then","else","do","while","repeat","until","for","in","local"]),p=d(["function","if","repeat","do","\\(","{"]),y=d(["end","until","\\)","}"]),g=c(["end","until","\\)","}","else","elseif"]);function v(w){for(var I=0;w.eat("=");)++I;return w.eat("["),I}function b(w,I){var S=w.next();return S=="-"&&w.eat("-")?w.eat("[")&&w.eat("[")?(I.cur=k(v(w),"comment"))(w,I):(w.skipToEnd(),"comment"):S=='"'||S=="'"?(I.cur=_(S))(w,I):S=="["&&/[\[=]/.test(w.peek())?(I.cur=k(v(w),"string"))(w,I):/\d/.test(S)?(w.eatWhile(/[\w.%]/),"number"):/[\w_]/.test(S)?(w.eatWhile(/[\w\\\-_.]/),"variable"):null}function k(w,I){return function(S,R){for(var O=null,U;(U=S.next())!=null;)if(O==null)U=="]"&&(O=0);else if(U=="=")++O;else if(U=="]"&&O==w){R.cur=b;break}else O=null;return I}}function _(w){return function(I,S){for(var R=!1,O;(O=I.next())!=null&&!(O==w&&!R);)R=!R&&O=="\\";return R||(S.cur=b),"string"}}return{startState:function(w){return{basecol:w||0,indentDepth:0,cur:b}},token:function(w,I){if(w.eatSpace())return null;var S=I.cur(w,I),R=w.current();return S=="variable"&&(f.test(R)?S="keyword":h.test(R)?S="builtin":a.test(R)&&(S="variable-2")),S!="comment"&&S!="string"&&(p.test(R)?++I.indentDepth:y.test(R)&&--I.indentDepth),S},indent:function(w,I){var S=g.test(I);return w.basecol+l*(w.indentDepth-(S?1:0))},electricInput:/^\s*(?:end|until|else|\)|\})$/,lineComment:"--",blockCommentStart:"--[[",blockCommentEnd:"]]"}}),i.defineMIME("text/x-lua","lua")})});var ud=Fe((sd,ld)=>{(function(i){typeof sd=="object"&&typeof ld=="object"?i(At()):typeof define=="function"&&define.amd?define(["../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.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"],alias:["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 t=0;t-1&&l.substring(a+1,l.length);if(h)return i.findModeByExtension(h)},i.findModeByName=function(l){l=l.toLowerCase();for(var c=0;c{(function(i){typeof cd=="object"&&typeof fd=="object"?i(At(),ba(),ud()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../xml/xml","../meta"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("markdown",function(t,n){var l=i.getMode(t,"text/html"),c=l.name=="null";function d(W){if(i.findModeByName){var M=i.findModeByName(W);M&&(W=M.mime||M.mimes[0])}var we=i.getMode(t,W);return we.name=="null"?null:we}n.highlightFormatting===void 0&&(n.highlightFormatting=!1),n.maxBlockquoteDepth===void 0&&(n.maxBlockquoteDepth=0),n.taskLists===void 0&&(n.taskLists=!1),n.strikethrough===void 0&&(n.strikethrough=!1),n.emoji===void 0&&(n.emoji=!1),n.fencedCodeBlockHighlighting===void 0&&(n.fencedCodeBlockHighlighting=!0),n.fencedCodeBlockDefaultMode===void 0&&(n.fencedCodeBlockDefaultMode="text/plain"),n.xml===void 0&&(n.xml=!0),n.tokenTypeOverrides===void 0&&(n.tokenTypeOverrides={});var a={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 h in a)a.hasOwnProperty(h)&&n.tokenTypeOverrides[h]&&(a[h]=n.tokenTypeOverrides[h]);var f=/^([*\-_])(?:\s*\1){2,}\s*$/,p=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,y=/^\[(x| )\](?=\s)/i,g=n.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,v=/^ {0,3}(?:\={1,}|-{2,})\s*$/,b=/^[^#!\[\]*_\\<>` "'(~:]+/,k=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,_=/^\s*\[[^\]]+?\]:.*$/,w=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,I=" ";function S(W,M,we){return M.f=M.inline=we,we(W,M)}function R(W,M,we){return M.f=M.block=we,we(W,M)}function O(W){return!W||!/\S/.test(W.string)}function U(W){if(W.linkTitle=!1,W.linkHref=!1,W.linkText=!1,W.em=!1,W.strong=!1,W.strikethrough=!1,W.quote=0,W.indentedCode=!1,W.f==J){var M=c;if(!M){var we=i.innerMode(l,W.htmlState);M=we.mode.name=="xml"&&we.state.tagStart===null&&!we.state.context&&we.state.tokenize.isInText}M&&(W.f=q,W.block=$,W.htmlState=null)}return W.trailingSpace=0,W.trailingSpaceNewLine=!1,W.prevLine=W.thisLine,W.thisLine={stream:null},null}function $(W,M){var we=W.column()===M.indentation,Pe=O(M.prevLine.stream),ve=M.indentedCode,Ee=M.prevLine.hr,ze=M.list!==!1,qe=(M.listStack[M.listStack.length-1]||0)+3;M.indentedCode=!1;var me=M.indentation;if(M.indentationDiff===null&&(M.indentationDiff=M.indentation,ze)){for(M.list=null;me=4&&(ve||M.prevLine.fencedCodeEnd||M.prevLine.header||Pe))return W.skipToEnd(),M.indentedCode=!0,a.code;if(W.eatSpace())return null;if(we&&M.indentation<=qe&&(at=W.match(g))&&at[1].length<=6)return M.quote=0,M.header=at[1].length,M.thisLine.header=!0,n.highlightFormatting&&(M.formatting="header"),M.f=M.inline,X(M);if(M.indentation<=qe&&W.eat(">"))return M.quote=we?1:M.quote+1,n.highlightFormatting&&(M.formatting="quote"),W.eatSpace(),X(M);if(!Ue&&!M.setext&&we&&M.indentation<=qe&&(at=W.match(p))){var gt=at[1]?"ol":"ul";return M.indentation=me+W.current().length,M.list=!0,M.quote=0,M.listStack.push(M.indentation),M.em=!1,M.strong=!1,M.code=!1,M.strikethrough=!1,n.taskLists&&W.match(y,!1)&&(M.taskList=!0),M.f=M.inline,n.highlightFormatting&&(M.formatting=["list","list-"+gt]),X(M)}else{if(we&&M.indentation<=qe&&(at=W.match(k,!0)))return M.quote=0,M.fencedEndRE=new RegExp(at[1]+"+ *$"),M.localMode=n.fencedCodeBlockHighlighting&&d(at[2]||n.fencedCodeBlockDefaultMode),M.localMode&&(M.localState=i.startState(M.localMode)),M.f=M.block=K,n.highlightFormatting&&(M.formatting="code-block"),M.code=-1,X(M);if(M.setext||(!ke||!ze)&&!M.quote&&M.list===!1&&!M.code&&!Ue&&!_.test(W.string)&&(at=W.lookAhead(1))&&(at=at.match(v)))return M.setext?(M.header=M.setext,M.setext=0,W.skipToEnd(),n.highlightFormatting&&(M.formatting="header")):(M.header=at[0].charAt(0)=="="?1:2,M.setext=M.header),M.thisLine.header=!0,M.f=M.inline,X(M);if(Ue)return W.skipToEnd(),M.hr=!0,M.thisLine.hr=!0,a.hr;if(W.peek()==="[")return S(W,M,F)}return S(W,M,M.inline)}function J(W,M){var we=l.token(W,M.htmlState);if(!c){var Pe=i.innerMode(l,M.htmlState);(Pe.mode.name=="xml"&&Pe.state.tagStart===null&&!Pe.state.context&&Pe.state.tokenize.isInText||M.md_inside&&W.current().indexOf(">")>-1)&&(M.f=q,M.block=$,M.htmlState=null)}return we}function K(W,M){var we=M.listStack[M.listStack.length-1]||0,Pe=M.indentation=W.quote?M.push(a.formatting+"-"+W.formatting[we]+"-"+W.quote):M.push("error"))}if(W.taskOpen)return M.push("meta"),M.length?M.join(" "):null;if(W.taskClosed)return M.push("property"),M.length?M.join(" "):null;if(W.linkHref?M.push(a.linkHref,"url"):(W.strong&&M.push(a.strong),W.em&&M.push(a.em),W.strikethrough&&M.push(a.strikethrough),W.emoji&&M.push(a.emoji),W.linkText&&M.push(a.linkText),W.code&&M.push(a.code),W.image&&M.push(a.image),W.imageAltText&&M.push(a.imageAltText,"link"),W.imageMarker&&M.push(a.imageMarker)),W.header&&M.push(a.header,a.header+"-"+W.header),W.quote&&(M.push(a.quote),!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=W.quote?M.push(a.quote+"-"+W.quote):M.push(a.quote+"-"+n.maxBlockquoteDepth)),W.list!==!1){var Pe=(W.listStack.length-1)%3;Pe?Pe===1?M.push(a.list2):M.push(a.list3):M.push(a.list1)}return W.trailingSpaceNewLine?M.push("trailing-space-new-line"):W.trailingSpace&&M.push("trailing-space-"+(W.trailingSpace%2?"a":"b")),M.length?M.join(" "):null}function G(W,M){if(W.match(b,!0))return X(M)}function q(W,M){var we=M.text(W,M);if(typeof we!="undefined")return we;if(M.list)return M.list=null,X(M);if(M.taskList){var Pe=W.match(y,!0)[1]===" ";return Pe?M.taskOpen=!0:M.taskClosed=!0,n.highlightFormatting&&(M.formatting="task"),M.taskList=!1,X(M)}if(M.taskOpen=!1,M.taskClosed=!1,M.header&&W.match(/^#+$/,!0))return n.highlightFormatting&&(M.formatting="header"),X(M);var ve=W.next();if(M.linkTitle){M.linkTitle=!1;var Ee=ve;ve==="("&&(Ee=")"),Ee=(Ee+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var ze="^\\s*(?:[^"+Ee+"\\\\]+|\\\\\\\\|\\\\.)"+Ee;if(W.match(new RegExp(ze),!0))return a.linkHref}if(ve==="`"){var qe=M.formatting;n.highlightFormatting&&(M.formatting="code"),W.eatWhile("`");var me=W.current().length;if(M.code==0&&(!M.quote||me==1))return M.code=me,X(M);if(me==M.code){var ke=X(M);return M.code=0,ke}else return M.formatting=qe,X(M)}else if(M.code)return X(M);if(ve==="\\"&&(W.next(),n.highlightFormatting)){var Ue=X(M),at=a.formatting+"-escape";return Ue?Ue+" "+at:at}if(ve==="!"&&W.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return M.imageMarker=!0,M.image=!0,n.highlightFormatting&&(M.formatting="image"),X(M);if(ve==="["&&M.imageMarker&&W.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return M.imageMarker=!1,M.imageAltText=!0,n.highlightFormatting&&(M.formatting="image"),X(M);if(ve==="]"&&M.imageAltText){n.highlightFormatting&&(M.formatting="image");var Ue=X(M);return M.imageAltText=!1,M.image=!1,M.inline=M.f=A,Ue}if(ve==="["&&!M.image)return M.linkText&&W.match(/^.*?\]/)||(M.linkText=!0,n.highlightFormatting&&(M.formatting="link")),X(M);if(ve==="]"&&M.linkText){n.highlightFormatting&&(M.formatting="link");var Ue=X(M);return M.linkText=!1,M.inline=M.f=W.match(/\(.*?\)| ?\[.*?\]/,!1)?A:q,Ue}if(ve==="<"&&W.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){M.f=M.inline=T,n.highlightFormatting&&(M.formatting="link");var Ue=X(M);return Ue?Ue+=" ":Ue="",Ue+a.linkInline}if(ve==="<"&&W.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){M.f=M.inline=T,n.highlightFormatting&&(M.formatting="link");var Ue=X(M);return Ue?Ue+=" ":Ue="",Ue+a.linkEmail}if(n.xml&&ve==="<"&&W.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var gt=W.string.indexOf(">",W.pos);if(gt!=-1){var Re=W.string.substring(W.start,gt);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Re)&&(M.md_inside=!0)}return W.backUp(1),M.htmlState=i.startState(l),R(W,M,J)}if(n.xml&&ve==="<"&&W.match(/^\/\w*?>/))return M.md_inside=!1,"tag";if(ve==="*"||ve==="_"){for(var Ie=1,Be=W.pos==1?" ":W.string.charAt(W.pos-2);Ie<3&&W.eat(ve);)Ie++;var Ge=W.peek()||" ",He=!/\s/.test(Ge)&&(!w.test(Ge)||/\s/.test(Be)||w.test(Be)),Qe=!/\s/.test(Be)&&(!w.test(Be)||/\s/.test(Ge)||w.test(Ge)),_e=null,Y=null;if(Ie%2&&(!M.em&&He&&(ve==="*"||!Qe||w.test(Be))?_e=!0:M.em==ve&&Qe&&(ve==="*"||!He||w.test(Ge))&&(_e=!1)),Ie>1&&(!M.strong&&He&&(ve==="*"||!Qe||w.test(Be))?Y=!0:M.strong==ve&&Qe&&(ve==="*"||!He||w.test(Ge))&&(Y=!1)),Y!=null||_e!=null){n.highlightFormatting&&(M.formatting=_e==null?"strong":Y==null?"em":"strong em"),_e===!0&&(M.em=ve),Y===!0&&(M.strong=ve);var ke=X(M);return _e===!1&&(M.em=!1),Y===!1&&(M.strong=!1),ke}}else if(ve===" "&&(W.eat("*")||W.eat("_"))){if(W.peek()===" ")return X(M);W.backUp(1)}if(n.strikethrough){if(ve==="~"&&W.eatWhile(ve)){if(M.strikethrough){n.highlightFormatting&&(M.formatting="strikethrough");var ke=X(M);return M.strikethrough=!1,ke}else if(W.match(/^[^\s]/,!1))return M.strikethrough=!0,n.highlightFormatting&&(M.formatting="strikethrough"),X(M)}else if(ve===" "&&W.match("~~",!0)){if(W.peek()===" ")return X(M);W.backUp(2)}}if(n.emoji&&ve===":"&&W.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){M.emoji=!0,n.highlightFormatting&&(M.formatting="emoji");var fe=X(M);return M.emoji=!1,fe}return ve===" "&&(W.match(/^ +$/,!1)?M.trailingSpace++:M.trailingSpace&&(M.trailingSpaceNewLine=!0)),X(M)}function T(W,M){var we=W.next();if(we===">"){M.f=M.inline=q,n.highlightFormatting&&(M.formatting="link");var Pe=X(M);return Pe?Pe+=" ":Pe="",Pe+a.linkInline}return W.match(/^[^>]+/,!0),a.linkInline}function A(W,M){if(W.eatSpace())return null;var we=W.next();return we==="("||we==="["?(M.f=M.inline=te(we==="("?")":"]"),n.highlightFormatting&&(M.formatting="link-string"),M.linkHref=!0,X(M)):"error"}var j={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function te(W){return function(M,we){var Pe=M.next();if(Pe===W){we.f=we.inline=q,n.highlightFormatting&&(we.formatting="link-string");var ve=X(we);return we.linkHref=!1,ve}return M.match(j[W]),we.linkHref=!0,X(we)}}function F(W,M){return W.match(/^([^\]\\]|\\.)*\]:/,!1)?(M.f=z,W.next(),n.highlightFormatting&&(M.formatting="link"),M.linkText=!0,X(M)):S(W,M,q)}function z(W,M){if(W.match("]:",!0)){M.f=M.inline=se,n.highlightFormatting&&(M.formatting="link");var we=X(M);return M.linkText=!1,we}return W.match(/^([^\]\\]|\\.)+/,!0),a.linkText}function se(W,M){return W.eatSpace()?null:(W.match(/^[^\s]+/,!0),W.peek()===void 0?M.linkTitle=!0:W.match(/^(?:\s+(?:"(?:[^"\\]|\\.)+"|'(?:[^'\\]|\\.)+'|\((?:[^)\\]|\\.)+\)))?/,!0),M.f=M.inline=q,a.linkHref+" url")}var be={startState:function(){return{f:$,prevLine:{stream:null},thisLine:{stream:null},block:$,htmlState:null,indentation:0,inline:q,text:G,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(W){return{f:W.f,prevLine:W.prevLine,thisLine:W.thisLine,block:W.block,htmlState:W.htmlState&&i.copyState(l,W.htmlState),indentation:W.indentation,localMode:W.localMode,localState:W.localMode?i.copyState(W.localMode,W.localState):null,inline:W.inline,text:W.text,formatting:!1,linkText:W.linkText,linkTitle:W.linkTitle,linkHref:W.linkHref,code:W.code,em:W.em,strong:W.strong,strikethrough:W.strikethrough,emoji:W.emoji,header:W.header,setext:W.setext,hr:W.hr,taskList:W.taskList,list:W.list,listStack:W.listStack.slice(0),quote:W.quote,indentedCode:W.indentedCode,trailingSpace:W.trailingSpace,trailingSpaceNewLine:W.trailingSpaceNewLine,md_inside:W.md_inside,fencedEndRE:W.fencedEndRE}},token:function(W,M){if(M.formatting=!1,W!=M.thisLine.stream){if(M.header=0,M.hr=!1,W.match(/^\s*$/,!0))return U(M),null;if(M.prevLine=M.thisLine,M.thisLine={stream:W},M.taskList=!1,M.trailingSpace=0,M.trailingSpaceNewLine=!1,!M.localState&&(M.f=M.block,M.f!=J)){var we=W.match(/^\s*/,!0)[0].replace(/\t/g,I).length;if(M.indentation=we,M.indentationDiff=null,we>0)return null}}return M.f(W,M)},innerMode:function(W){return W.block==J?{state:W.htmlState,mode:l}:W.localState?{state:W.localState,mode:W.localMode}:{state:W,mode:be}},indent:function(W,M,we){return W.block==J&&l.indent?l.indent(W.htmlState,M,we):W.localState&&W.localMode.indent?W.localMode.indent(W.localState,M,we):i.Pass},blankLine:U,getType:X,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return be},"xml"),i.defineMIME("text/markdown","markdown"),i.defineMIME("text/x-markdown","markdown")})});var md=Fe((hd,pd)=>{(function(i){typeof hd=="object"&&typeof pd=="object"?i(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("mllike",function(t,n){var l={as:"keyword",do:"keyword",else:"keyword",end:"keyword",exception:"keyword",fun:"keyword",functor:"keyword",if:"keyword",in:"keyword",include:"keyword",let:"keyword",of:"keyword",open:"keyword",rec:"keyword",struct:"keyword",then:"keyword",type:"keyword",val:"keyword",while:"keyword",with:"keyword"},c=n.extraWords||{};for(var d in c)c.hasOwnProperty(d)&&(l[d]=n.extraWords[d]);var a=[];for(var h in l)a.push(h);i.registerHelper("hintWords","mllike",a);function f(v,b){var k=v.next();if(k==='"')return b.tokenize=p,b.tokenize(v,b);if(k==="{"&&v.eat("|"))return b.longString=!0,b.tokenize=g,b.tokenize(v,b);if(k==="("&&v.eat("*"))return b.commentLevel++,b.tokenize=y,b.tokenize(v,b);if(k==="~"||k==="?")return v.eatWhile(/\w/),"variable-2";if(k==="`")return v.eatWhile(/\w/),"quote";if(k==="/"&&n.slashComments&&v.eat("/"))return v.skipToEnd(),"comment";if(/\d/.test(k))return k==="0"&&v.eat(/[bB]/)&&v.eatWhile(/[01]/),k==="0"&&v.eat(/[xX]/)&&v.eatWhile(/[0-9a-fA-F]/),k==="0"&&v.eat(/[oO]/)?v.eatWhile(/[0-7]/):(v.eatWhile(/[\d_]/),v.eat(".")&&v.eatWhile(/[\d]/),v.eat(/[eE]/)&&v.eatWhile(/[\d\-+]/)),"number";if(/[+\-*&%=<>!?|@\.~:]/.test(k))return"operator";if(/[\w\xa1-\uffff]/.test(k)){v.eatWhile(/[\w\xa1-\uffff]/);var _=v.current();return l.hasOwnProperty(_)?l[_]:"variable"}return null}function p(v,b){for(var k,_=!1,w=!1;(k=v.next())!=null;){if(k==='"'&&!w){_=!0;break}w=!w&&k==="\\"}return _&&!w&&(b.tokenize=f),"string"}function y(v,b){for(var k,_;b.commentLevel>0&&(_=v.next())!=null;)k==="("&&_==="*"&&b.commentLevel++,k==="*"&&_===")"&&b.commentLevel--,k=_;return b.commentLevel<=0&&(b.tokenize=f),"comment"}function g(v,b){for(var k,_;b.longString&&(_=v.next())!=null;)k==="|"&&_==="}"&&(b.longString=!1),k=_;return b.longString||(b.tokenize=f),"string"}return{startState:function(){return{tokenize:f,commentLevel:0,longString:!1}},token:function(v,b){return v.eatSpace()?null:b.tokenize(v,b)},blockCommentStart:"(*",blockCommentEnd:"*)",lineComment:n.slashComments?"//":null}}),i.defineMIME("text/x-ocaml",{name:"mllike",extraWords:{and:"keyword",assert:"keyword",begin:"keyword",class:"keyword",constraint:"keyword",done:"keyword",downto:"keyword",external:"keyword",function:"keyword",initializer:"keyword",lazy:"keyword",match:"keyword",method:"keyword",module:"keyword",mutable:"keyword",new:"keyword",nonrec:"keyword",object:"keyword",private:"keyword",sig:"keyword",to:"keyword",try:"keyword",value:"keyword",virtual:"keyword",when:"keyword",raise:"builtin",failwith:"builtin",true:"builtin",false:"builtin",asr:"builtin",land:"builtin",lor:"builtin",lsl:"builtin",lsr:"builtin",lxor:"builtin",mod:"builtin",or:"builtin",raise_notrace:"builtin",trace:"builtin",exit:"builtin",print_string:"builtin",print_endline:"builtin",int:"type",float:"type",bool:"type",char:"type",string:"type",unit:"type",List:"builtin"}}),i.defineMIME("text/x-fsharp",{name:"mllike",extraWords:{abstract:"keyword",assert:"keyword",base:"keyword",begin:"keyword",class:"keyword",default:"keyword",delegate:"keyword","do!":"keyword",done:"keyword",downcast:"keyword",downto:"keyword",elif:"keyword",extern:"keyword",finally:"keyword",for:"keyword",function:"keyword",global:"keyword",inherit:"keyword",inline:"keyword",interface:"keyword",internal:"keyword",lazy:"keyword","let!":"keyword",match:"keyword",member:"keyword",module:"keyword",mutable:"keyword",namespace:"keyword",new:"keyword",null:"keyword",override:"keyword",private:"keyword",public:"keyword","return!":"keyword",return:"keyword",select:"keyword",static:"keyword",to:"keyword",try:"keyword",upcast:"keyword","use!":"keyword",use:"keyword",void:"keyword",when:"keyword","yield!":"keyword",yield:"keyword",atomic:"keyword",break:"keyword",checked:"keyword",component:"keyword",const:"keyword",constraint:"keyword",constructor:"keyword",continue:"keyword",eager:"keyword",event:"keyword",external:"keyword",fixed:"keyword",method:"keyword",mixin:"keyword",object:"keyword",parallel:"keyword",process:"keyword",protected:"keyword",pure:"keyword",sealed:"keyword",tailcall:"keyword",trait:"keyword",virtual:"keyword",volatile:"keyword",List:"builtin",Seq:"builtin",Map:"builtin",Set:"builtin",Option:"builtin",int:"builtin",string:"builtin",not:"builtin",true:"builtin",false:"builtin",raise:"builtin",failwith:"builtin"},slashComments:!0}),i.defineMIME("text/x-sml",{name:"mllike",extraWords:{abstype:"keyword",and:"keyword",andalso:"keyword",case:"keyword",datatype:"keyword",fn:"keyword",handle:"keyword",infix:"keyword",infixr:"keyword",local:"keyword",nonfix:"keyword",op:"keyword",orelse:"keyword",raise:"keyword",withtype:"keyword",eqtype:"keyword",sharing:"keyword",sig:"keyword",signature:"keyword",structure:"keyword",where:"keyword",true:"keyword",false:"keyword",int:"builtin",real:"builtin",string:"builtin",char:"builtin",bool:"builtin"},slashComments:!0})})});var yd=Fe((gd,vd)=>{(function(i){typeof gd=="object"&&typeof vd=="object"?i(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("nginx",function(t){function n(b){for(var k={},_=b.split(" "),w=0;w<_.length;++w)k[_[w]]=!0;return k}var l=n("break return rewrite set accept_mutex accept_mutex_delay access_log add_after_body add_before_body add_header addition_types aio alias allow ancient_browser ancient_browser_value auth_basic auth_basic_user_file auth_http auth_http_header auth_http_timeout autoindex autoindex_exact_size autoindex_localtime charset charset_types client_body_buffer_size client_body_in_file_only client_body_in_single_buffer client_body_temp_path client_body_timeout client_header_buffer_size client_header_timeout client_max_body_size connection_pool_size create_full_put_path daemon dav_access dav_methods debug_connection debug_points default_type degradation degrade deny devpoll_changes devpoll_events directio directio_alignment empty_gif env epoll_events error_log eventport_events expires fastcgi_bind fastcgi_buffer_size fastcgi_buffers fastcgi_busy_buffers_size fastcgi_cache fastcgi_cache_key fastcgi_cache_methods fastcgi_cache_min_uses fastcgi_cache_path fastcgi_cache_use_stale fastcgi_cache_valid fastcgi_catch_stderr fastcgi_connect_timeout fastcgi_hide_header fastcgi_ignore_client_abort fastcgi_ignore_headers fastcgi_index fastcgi_intercept_errors fastcgi_max_temp_file_size fastcgi_next_upstream fastcgi_param fastcgi_pass_header fastcgi_pass_request_body fastcgi_pass_request_headers fastcgi_read_timeout fastcgi_send_lowat fastcgi_send_timeout fastcgi_split_path_info fastcgi_store fastcgi_store_access fastcgi_temp_file_write_size fastcgi_temp_path fastcgi_upstream_fail_timeout fastcgi_upstream_max_fails flv geoip_city geoip_country google_perftools_profiles gzip gzip_buffers gzip_comp_level gzip_disable gzip_hash gzip_http_version gzip_min_length gzip_no_buffer gzip_proxied gzip_static gzip_types gzip_vary gzip_window if_modified_since ignore_invalid_headers image_filter image_filter_buffer image_filter_jpeg_quality image_filter_transparency imap_auth imap_capabilities imap_client_buffer index ip_hash keepalive_requests keepalive_timeout kqueue_changes kqueue_events large_client_header_buffers limit_conn limit_conn_log_level limit_rate limit_rate_after limit_req limit_req_log_level limit_req_zone limit_zone lingering_time lingering_timeout lock_file log_format log_not_found log_subrequest map_hash_bucket_size map_hash_max_size master_process memcached_bind memcached_buffer_size memcached_connect_timeout memcached_next_upstream memcached_read_timeout memcached_send_timeout memcached_upstream_fail_timeout memcached_upstream_max_fails merge_slashes min_delete_depth modern_browser modern_browser_value msie_padding msie_refresh multi_accept open_file_cache open_file_cache_errors open_file_cache_events open_file_cache_min_uses open_file_cache_valid open_log_file_cache output_buffers override_charset perl perl_modules perl_require perl_set pid pop3_auth pop3_capabilities port_in_redirect postpone_gzipping postpone_output protocol proxy proxy_bind proxy_buffer proxy_buffer_size proxy_buffering proxy_buffers proxy_busy_buffers_size proxy_cache proxy_cache_key proxy_cache_methods proxy_cache_min_uses proxy_cache_path proxy_cache_use_stale proxy_cache_valid proxy_connect_timeout proxy_headers_hash_bucket_size proxy_headers_hash_max_size proxy_hide_header proxy_ignore_client_abort proxy_ignore_headers proxy_intercept_errors proxy_max_temp_file_size proxy_method proxy_next_upstream proxy_pass_error_message proxy_pass_header proxy_pass_request_body proxy_pass_request_headers proxy_read_timeout proxy_redirect proxy_send_lowat proxy_send_timeout proxy_set_body proxy_set_header proxy_ssl_session_reuse proxy_store proxy_store_access proxy_temp_file_write_size proxy_temp_path proxy_timeout proxy_upstream_fail_timeout proxy_upstream_max_fails random_index read_ahead real_ip_header recursive_error_pages request_pool_size reset_timedout_connection resolver resolver_timeout rewrite_log rtsig_overflow_events rtsig_overflow_test rtsig_overflow_threshold rtsig_signo satisfy secure_link_secret send_lowat send_timeout sendfile sendfile_max_chunk server_name_in_redirect server_names_hash_bucket_size server_names_hash_max_size server_tokens set_real_ip_from smtp_auth smtp_capabilities smtp_client_buffer smtp_greeting_delay so_keepalive source_charset ssi ssi_ignore_recycled_buffers ssi_min_file_chunk ssi_silent_errors ssi_types ssi_value_length ssl ssl_certificate ssl_certificate_key ssl_ciphers ssl_client_certificate ssl_crl ssl_dhparam ssl_engine ssl_prefer_server_ciphers ssl_protocols ssl_session_cache ssl_session_timeout ssl_verify_client ssl_verify_depth starttls stub_status sub_filter sub_filter_once sub_filter_types tcp_nodelay tcp_nopush thread_stack_size timeout timer_resolution types_hash_bucket_size types_hash_max_size underscores_in_headers uninitialized_variable_warn use user userid userid_domain userid_expires userid_mark userid_name userid_p3p userid_path userid_service valid_referers variables_hash_bucket_size variables_hash_max_size worker_connections worker_cpu_affinity worker_priority worker_processes worker_rlimit_core worker_rlimit_nofile worker_rlimit_sigpending worker_threads working_directory xclient xml_entities xslt_stylesheet xslt_typesdrew@li229-23"),c=n("http mail events server types location upstream charset_map limit_except if geo map"),d=n("include root server server_name listen internal proxy_pass memcached_pass fastcgi_pass try_files"),a=t.indentUnit,h;function f(b,k){return h=k,b}function p(b,k){b.eatWhile(/[\w\$_]/);var _=b.current();if(l.propertyIsEnumerable(_))return"keyword";if(c.propertyIsEnumerable(_))return"variable-2";if(d.propertyIsEnumerable(_))return"string-2";var w=b.next();if(w=="@")return b.eatWhile(/[\w\\\-]/),f("meta",b.current());if(w=="/"&&b.eat("*"))return k.tokenize=y,y(b,k);if(w=="<"&&b.eat("!"))return k.tokenize=g,g(b,k);if(w=="=")f(null,"compare");else return(w=="~"||w=="|")&&b.eat("=")?f(null,"compare"):w=='"'||w=="'"?(k.tokenize=v(w),k.tokenize(b,k)):w=="#"?(b.skipToEnd(),f("comment","comment")):w=="!"?(b.match(/^\s*\w*/),f("keyword","important")):/\d/.test(w)?(b.eatWhile(/[\w.%]/),f("number","unit")):/[,.+>*\/]/.test(w)?f(null,"select-op"):/[;{}:\[\]]/.test(w)?f(null,w):(b.eatWhile(/[\w\\\-]/),f("variable","variable"))}function y(b,k){for(var _=!1,w;(w=b.next())!=null;){if(_&&w=="/"){k.tokenize=p;break}_=w=="*"}return f("comment","comment")}function g(b,k){for(var _=0,w;(w=b.next())!=null;){if(_>=2&&w==">"){k.tokenize=p;break}_=w=="-"?_+1:0}return f("comment","comment")}function v(b){return function(k,_){for(var w=!1,I;(I=k.next())!=null&&!(I==b&&!w);)w=!w&&I=="\\";return w||(_.tokenize=p),f("string","string")}}return{startState:function(b){return{tokenize:p,baseIndent:b||0,stack:[]}},token:function(b,k){if(b.eatSpace())return null;h=null;var _=k.tokenize(b,k),w=k.stack[k.stack.length-1];return h=="hash"&&w=="rule"?_="atom":_=="variable"&&(w=="rule"?_="number":(!w||w=="@media{")&&(_="tag")),w=="rule"&&/^[\{\};]$/.test(h)&&k.stack.pop(),h=="{"?w=="@media"?k.stack[k.stack.length-1]="@media{":k.stack.push("{"):h=="}"?k.stack.pop():h=="@media"?k.stack.push("@media"):w=="{"&&h!="comment"&&k.stack.push("rule"),_},indent:function(b,k){var _=b.stack.length;return/^\}/.test(k)&&(_-=b.stack[b.stack.length-1]=="rule"?2:1),b.baseIndent+_*a},electricChars:"}"}}),i.defineMIME("text/x-nginx-conf","nginx")})});var wd=Fe((bd,xd)=>{(function(i){typeof bd=="object"&&typeof xd=="object"?i(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("perl",function(){var d={"->":4,"++":4,"--":4,"**":4,"=~":4,"!~":4,"*":4,"/":4,"%":4,x:4,"+":4,"-":4,".":4,"<<":4,">>":4,"<":4,">":4,"<=":4,">=":4,lt:4,gt:4,le:4,ge:4,"==":4,"!=":4,"<=>":4,eq:4,ne:4,cmp:4,"~~":4,"&":4,"|":4,"^":4,"&&":4,"||":4,"//":4,"..":4,"...":4,"?":4,":":4,"=":4,"+=":4,"-=":4,"*=":4,",":4,"=>":4,"::":4,not:4,and:4,or:4,xor:4,BEGIN:[5,1],END:[5,1],PRINT:[5,1],PRINTF:[5,1],GETC:[5,1],READ:[5,1],READLINE:[5,1],DESTROY:[5,1],TIE:[5,1],TIEHANDLE:[5,1],UNTIE:[5,1],STDIN:5,STDIN_TOP:5,STDOUT:5,STDOUT_TOP:5,STDERR:5,STDERR_TOP:5,$ARG:5,$_:5,"@ARG":5,"@_":5,$LIST_SEPARATOR:5,'$"':5,$PROCESS_ID:5,$PID:5,$$:5,$REAL_GROUP_ID:5,$GID:5,"$(":5,$EFFECTIVE_GROUP_ID:5,$EGID:5,"$)":5,$PROGRAM_NAME:5,$0:5,$SUBSCRIPT_SEPARATOR:5,$SUBSEP:5,"$;":5,$REAL_USER_ID:5,$UID:5,"$<":5,$EFFECTIVE_USER_ID:5,$EUID:5,"$>":5,$a:5,$b:5,$COMPILING:5,"$^C":5,$DEBUGGING:5,"$^D":5,"${^ENCODING}":5,$ENV:5,"%ENV":5,$SYSTEM_FD_MAX:5,"$^F":5,"@F":5,"${^GLOBAL_PHASE}":5,"$^H":5,"%^H":5,"@INC":5,"%INC":5,$INPLACE_EDIT:5,"$^I":5,"$^M":5,$OSNAME:5,"$^O":5,"${^OPEN}":5,$PERLDB:5,"$^P":5,$SIG:5,"%SIG":5,$BASETIME:5,"$^T":5,"${^TAINT}":5,"${^UNICODE}":5,"${^UTF8CACHE}":5,"${^UTF8LOCALE}":5,$PERL_VERSION:5,"$^V":5,"${^WIN32_SLOPPY_STAT}":5,$EXECUTABLE_NAME:5,"$^X":5,$1:5,$MATCH:5,"$&":5,"${^MATCH}":5,$PREMATCH:5,"$`":5,"${^PREMATCH}":5,$POSTMATCH:5,"$'":5,"${^POSTMATCH}":5,$LAST_PAREN_MATCH:5,"$+":5,$LAST_SUBMATCH_RESULT:5,"$^N":5,"@LAST_MATCH_END":5,"@+":5,"%LAST_PAREN_MATCH":5,"%+":5,"@LAST_MATCH_START":5,"@-":5,"%LAST_MATCH_START":5,"%-":5,$LAST_REGEXP_CODE_RESULT:5,"$^R":5,"${^RE_DEBUG_FLAGS}":5,"${^RE_TRIE_MAXBUF}":5,$ARGV:5,"@ARGV":5,ARGV:5,ARGVOUT:5,$OUTPUT_FIELD_SEPARATOR:5,$OFS:5,"$,":5,$INPUT_LINE_NUMBER:5,$NR:5,"$.":5,$INPUT_RECORD_SEPARATOR:5,$RS:5,"$/":5,$OUTPUT_RECORD_SEPARATOR:5,$ORS:5,"$\\":5,$OUTPUT_AUTOFLUSH:5,"$|":5,$ACCUMULATOR:5,"$^A":5,$FORMAT_FORMFEED:5,"$^L":5,$FORMAT_PAGE_NUMBER:5,"$%":5,$FORMAT_LINES_LEFT:5,"$-":5,$FORMAT_LINE_BREAK_CHARACTERS:5,"$:":5,$FORMAT_LINES_PER_PAGE:5,"$=":5,$FORMAT_TOP_NAME:5,"$^":5,$FORMAT_NAME:5,"$~":5,"${^CHILD_ERROR_NATIVE}":5,$EXTENDED_OS_ERROR:5,"$^E":5,$EXCEPTIONS_BEING_CAUGHT:5,"$^S":5,$WARNING:5,"$^W":5,"${^WARNING_BITS}":5,$OS_ERROR:5,$ERRNO:5,"$!":5,"%OS_ERROR":5,"%ERRNO":5,"%!":5,$CHILD_ERROR:5,"$?":5,$EVAL_ERROR:5,"$@":5,$OFMT:5,"$#":5,"$*":5,$ARRAY_BASE:5,"$[":5,$OLD_PERL_VERSION:5,"$]":5,if:[1,1],elsif:[1,1],else:[1,1],while:[1,1],unless:[1,1],for:[1,1],foreach:[1,1],abs:1,accept:1,alarm:1,atan2:1,bind:1,binmode:1,bless:1,bootstrap:1,break:1,caller:1,chdir:1,chmod:1,chomp:1,chop:1,chown:1,chr:1,chroot:1,close:1,closedir:1,connect:1,continue:[1,1],cos:1,crypt:1,dbmclose:1,dbmopen:1,default:1,defined:1,delete:1,die:1,do:1,dump:1,each:1,endgrent:1,endhostent:1,endnetent:1,endprotoent:1,endpwent:1,endservent:1,eof:1,eval:1,exec:1,exists:1,exit:1,exp:1,fcntl:1,fileno:1,flock:1,fork:1,format:1,formline:1,getc:1,getgrent:1,getgrgid:1,getgrnam:1,gethostbyaddr:1,gethostbyname:1,gethostent:1,getlogin:1,getnetbyaddr:1,getnetbyname:1,getnetent:1,getpeername:1,getpgrp:1,getppid:1,getpriority:1,getprotobyname:1,getprotobynumber:1,getprotoent:1,getpwent:1,getpwnam:1,getpwuid:1,getservbyname:1,getservbyport:1,getservent:1,getsockname:1,getsockopt:1,given:1,glob:1,gmtime:1,goto:1,grep:1,hex:1,import:1,index:1,int:1,ioctl:1,join:1,keys:1,kill:1,last:1,lc:1,lcfirst:1,length:1,link:1,listen:1,local:2,localtime:1,lock:1,log:1,lstat:1,m:null,map:1,mkdir:1,msgctl:1,msgget:1,msgrcv:1,msgsnd:1,my:2,new:1,next:1,no:1,oct:1,open:1,opendir:1,ord:1,our:2,pack:1,package:1,pipe:1,pop:1,pos:1,print:1,printf:1,prototype:1,push:1,q:null,qq:null,qr:null,quotemeta:null,qw:null,qx:null,rand:1,read:1,readdir:1,readline:1,readlink:1,readpipe:1,recv:1,redo:1,ref:1,rename:1,require:1,reset:1,return:1,reverse:1,rewinddir:1,rindex:1,rmdir:1,s:null,say:1,scalar:1,seek:1,seekdir:1,select:1,semctl:1,semget:1,semop:1,send:1,setgrent:1,sethostent:1,setnetent:1,setpgrp:1,setpriority:1,setprotoent:1,setpwent:1,setservent:1,setsockopt:1,shift:1,shmctl:1,shmget:1,shmread:1,shmwrite:1,shutdown:1,sin:1,sleep:1,socket:1,socketpair:1,sort:1,splice:1,split:1,sprintf:1,sqrt:1,srand:1,stat:1,state:1,study:1,sub:1,substr:1,symlink:1,syscall:1,sysopen:1,sysread:1,sysseek:1,system:1,syswrite:1,tell:1,telldir:1,tie:1,tied:1,time:1,times:1,tr:null,truncate:1,uc:1,ucfirst:1,umask:1,undef:1,unlink:1,unpack:1,unshift:1,untie:1,use:1,utime:1,values:1,vec:1,wait:1,waitpid:1,wantarray:1,warn:1,when:1,write:1,y:null},a="string-2",h=/[goseximacplud]/;function f(g,v,b,k,_){return v.chain=null,v.style=null,v.tail=null,v.tokenize=function(w,I){for(var S=!1,R,O=0;R=w.next();){if(R===b[O]&&!S)return b[++O]!==void 0?(I.chain=b[O],I.style=k,I.tail=_):_&&w.eatWhile(_),I.tokenize=y,k;S=!S&&R=="\\"}return k},v.tokenize(g,v)}function p(g,v,b){return v.tokenize=function(k,_){return k.string==b&&(_.tokenize=y),k.skipToEnd(),"string"},v.tokenize(g,v)}function y(g,v){if(g.eatSpace())return null;if(v.chain)return f(g,v,v.chain,v.style,v.tail);if(g.match(/^\-?[\d\.]/,!1)&&g.match(/^(\-?(\d*\.\d+(e[+-]?\d+)?|\d+\.\d*)|0x[\da-fA-F]+|0b[01]+|\d+(e[+-]?\d+)?)/))return"number";if(g.match(/^<<(?=[_a-zA-Z])/))return g.eatWhile(/\w/),p(g,v,g.current().substr(2));if(g.sol()&&g.match(/^\=item(?!\w)/))return p(g,v,"=cut");var b=g.next();if(b=='"'||b=="'"){if(n(g,3)=="<<"+b){var k=g.pos;g.eatWhile(/\w/);var _=g.current().substr(1);if(_&&g.eat(b))return p(g,v,_);g.pos=k}return f(g,v,[b],"string")}if(b=="q"){var w=t(g,-2);if(!(w&&/\w/.test(w))){if(w=t(g,0),w=="x"){if(w=t(g,1),w=="(")return c(g,2),f(g,v,[")"],a,h);if(w=="[")return c(g,2),f(g,v,["]"],a,h);if(w=="{")return c(g,2),f(g,v,["}"],a,h);if(w=="<")return c(g,2),f(g,v,[">"],a,h);if(/[\^'"!~\/]/.test(w))return c(g,1),f(g,v,[g.eat(w)],a,h)}else if(w=="q"){if(w=t(g,1),w=="(")return c(g,2),f(g,v,[")"],"string");if(w=="[")return c(g,2),f(g,v,["]"],"string");if(w=="{")return c(g,2),f(g,v,["}"],"string");if(w=="<")return c(g,2),f(g,v,[">"],"string");if(/[\^'"!~\/]/.test(w))return c(g,1),f(g,v,[g.eat(w)],"string")}else if(w=="w"){if(w=t(g,1),w=="(")return c(g,2),f(g,v,[")"],"bracket");if(w=="[")return c(g,2),f(g,v,["]"],"bracket");if(w=="{")return c(g,2),f(g,v,["}"],"bracket");if(w=="<")return c(g,2),f(g,v,[">"],"bracket");if(/[\^'"!~\/]/.test(w))return c(g,1),f(g,v,[g.eat(w)],"bracket")}else if(w=="r"){if(w=t(g,1),w=="(")return c(g,2),f(g,v,[")"],a,h);if(w=="[")return c(g,2),f(g,v,["]"],a,h);if(w=="{")return c(g,2),f(g,v,["}"],a,h);if(w=="<")return c(g,2),f(g,v,[">"],a,h);if(/[\^'"!~\/]/.test(w))return c(g,1),f(g,v,[g.eat(w)],a,h)}else if(/[\^'"!~\/(\[{<]/.test(w)){if(w=="(")return c(g,1),f(g,v,[")"],"string");if(w=="[")return c(g,1),f(g,v,["]"],"string");if(w=="{")return c(g,1),f(g,v,["}"],"string");if(w=="<")return c(g,1),f(g,v,[">"],"string");if(/[\^'"!~\/]/.test(w))return f(g,v,[g.eat(w)],"string")}}}if(b=="m"){var w=t(g,-2);if(!(w&&/\w/.test(w))&&(w=g.eat(/[(\[{<\^'"!~\/]/),w)){if(/[\^'"!~\/]/.test(w))return f(g,v,[w],a,h);if(w=="(")return f(g,v,[")"],a,h);if(w=="[")return f(g,v,["]"],a,h);if(w=="{")return f(g,v,["}"],a,h);if(w=="<")return f(g,v,[">"],a,h)}}if(b=="s"){var w=/[\/>\]})\w]/.test(t(g,-2));if(!w&&(w=g.eat(/[(\[{<\^'"!~\/]/),w))return w=="["?f(g,v,["]","]"],a,h):w=="{"?f(g,v,["}","}"],a,h):w=="<"?f(g,v,[">",">"],a,h):w=="("?f(g,v,[")",")"],a,h):f(g,v,[w,w],a,h)}if(b=="y"){var w=/[\/>\]})\w]/.test(t(g,-2));if(!w&&(w=g.eat(/[(\[{<\^'"!~\/]/),w))return w=="["?f(g,v,["]","]"],a,h):w=="{"?f(g,v,["}","}"],a,h):w=="<"?f(g,v,[">",">"],a,h):w=="("?f(g,v,[")",")"],a,h):f(g,v,[w,w],a,h)}if(b=="t"){var w=/[\/>\]})\w]/.test(t(g,-2));if(!w&&(w=g.eat("r"),w&&(w=g.eat(/[(\[{<\^'"!~\/]/),w)))return w=="["?f(g,v,["]","]"],a,h):w=="{"?f(g,v,["}","}"],a,h):w=="<"?f(g,v,[">",">"],a,h):w=="("?f(g,v,[")",")"],a,h):f(g,v,[w,w],a,h)}if(b=="`")return f(g,v,[b],"variable-2");if(b=="/")return/~\s*$/.test(n(g))?f(g,v,[b],a,h):"operator";if(b=="$"){var k=g.pos;if(g.eatWhile(/\d/)||g.eat("{")&&g.eatWhile(/\d/)&&g.eat("}"))return"variable-2";g.pos=k}if(/[$@%]/.test(b)){var k=g.pos;if(g.eat("^")&&g.eat(/[A-Z]/)||!/[@$%&]/.test(t(g,-2))&&g.eat(/[=|\\\-#?@;:&`~\^!\[\]*'"$+.,\/<>()]/)){var w=g.current();if(d[w])return"variable-2"}g.pos=k}if(/[$@%&]/.test(b)&&(g.eatWhile(/[\w$]/)||g.eat("{")&&g.eatWhile(/[\w$]/)&&g.eat("}"))){var w=g.current();return d[w]?"variable-2":"variable"}if(b=="#"&&t(g,-2)!="$")return g.skipToEnd(),"comment";if(/[:+\-\^*$&%@=<>!?|\/~\.]/.test(b)){var k=g.pos;if(g.eatWhile(/[:+\-\^*$&%@=<>!?|\/~\.]/),d[g.current()])return"operator";g.pos=k}if(b=="_"&&g.pos==1){if(l(g,6)=="_END__")return f(g,v,["\0"],"comment");if(l(g,7)=="_DATA__")return f(g,v,["\0"],"variable-2");if(l(g,7)=="_C__")return f(g,v,["\0"],"string")}if(/\w/.test(b)){var k=g.pos;if(t(g,-2)=="{"&&(t(g,0)=="}"||g.eatWhile(/\w/)&&t(g,0)=="}"))return"string";g.pos=k}if(/[A-Z]/.test(b)){var I=t(g,-2),k=g.pos;if(g.eatWhile(/[A-Z_]/),/[\da-z]/.test(t(g,0)))g.pos=k;else{var w=d[g.current()];return w?(w[1]&&(w=w[0]),I!=":"?w==1?"keyword":w==2?"def":w==3?"atom":w==4?"operator":w==5?"variable-2":"meta":"meta"):"meta"}}if(/[a-zA-Z_]/.test(b)){var I=t(g,-2);g.eatWhile(/\w/);var w=d[g.current()];return w?(w[1]&&(w=w[0]),I!=":"?w==1?"keyword":w==2?"def":w==3?"atom":w==4?"operator":w==5?"variable-2":"meta":"meta"):"meta"}return null}return{startState:function(){return{tokenize:y,chain:null,style:null,tail:null}},token:function(g,v){return(v.tokenize||y)(g,v)},lineComment:"#"}}),i.registerHelper("wordChars","perl",/[\w$]/),i.defineMIME("text/x-perl","perl");function t(d,a){return d.string.charAt(d.pos+(a||0))}function n(d,a){if(a){var h=d.pos-a;return d.string.substr(h>=0?h:0,a)}else return d.string.substr(0,d.pos-1)}function l(d,a){var h=d.string.length,f=h-d.pos+1;return d.string.substr(d.pos,a&&a=(f=d.string.length-1)?d.pos=f:d.pos=h}})});var Sd=Fe((kd,_d)=>{(function(i){typeof kd=="object"&&typeof _d=="object"?i(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("pascal",function(){function t(p){for(var y={},g=p.split(" "),v=0;v!?|\/]/;function d(p,y){var g=p.next();if(g=="#"&&y.startOfLine)return p.skipToEnd(),"meta";if(g=='"'||g=="'")return y.tokenize=a(g),y.tokenize(p,y);if(g=="("&&p.eat("*"))return y.tokenize=h,h(p,y);if(g=="{")return y.tokenize=f,f(p,y);if(/[\[\]\(\),;\:\.]/.test(g))return null;if(/\d/.test(g))return p.eatWhile(/[\w\.]/),"number";if(g=="/"&&p.eat("/"))return p.skipToEnd(),"comment";if(c.test(g))return p.eatWhile(c),"operator";p.eatWhile(/[\w\$_]/);var v=p.current();return n.propertyIsEnumerable(v)?"keyword":l.propertyIsEnumerable(v)?"atom":"variable"}function a(p){return function(y,g){for(var v=!1,b,k=!1;(b=y.next())!=null;){if(b==p&&!v){k=!0;break}v=!v&&b=="\\"}return(k||!v)&&(g.tokenize=null),"string"}}function h(p,y){for(var g=!1,v;v=p.next();){if(v==")"&&g){y.tokenize=null;break}g=v=="*"}return"comment"}function f(p,y){for(var g;g=p.next();)if(g=="}"){y.tokenize=null;break}return"comment"}return{startState:function(){return{tokenize:null}},token:function(p,y){if(p.eatSpace())return null;var g=(y.tokenize||d)(p,y);return g=="comment"||g=="meta",g},electricChars:"{}"}}),i.defineMIME("text/x-pascal","pascal")})});var Td=Fe((Ed,Cd)=>{(function(i){typeof Ed=="object"&&typeof Cd=="object"?i(At(),rl(),el()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../htmlmixed/htmlmixed","../clike/clike"],i):i(CodeMirror)})(function(i){"use strict";function t(p){for(var y={},g=p.split(" "),v=0;v\w/,!1)&&(y.tokenize=n([[["->",null]],[[/[\w]+/,"variable"]]],g,v)),"variable-2";for(var b=!1;!p.eol()&&(b||v===!1||!p.match("{$",!1)&&!p.match(/^(\$[a-zA-Z_][a-zA-Z0-9_]*|\$\{)/,!1));){if(!b&&p.match(g)){y.tokenize=null,y.tokStack.pop(),y.tokStack.pop();break}b=p.next()=="\\"&&!b}return"string"}var d="abstract and array as break case catch class clone const continue declare default do else elseif enddeclare endfor endforeach endif endswitch endwhile extends final for foreach function global goto if implements interface instanceof namespace new or private protected public static switch throw trait try use var while xor die echo empty exit eval include include_once isset list require require_once return print unset __halt_compiler self static parent yield insteadof finally",a="true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__",h="func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage memory_get_peak_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents file_put_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists array_intersect_key array_combine array_column pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once json_decode json_encode json_last_error json_last_error_msg curl_close curl_copy_handle curl_errno curl_error curl_escape curl_exec curl_file_create curl_getinfo curl_init curl_multi_add_handle curl_multi_close curl_multi_exec curl_multi_getcontent curl_multi_info_read curl_multi_init curl_multi_remove_handle curl_multi_select curl_multi_setopt curl_multi_strerror curl_pause curl_reset curl_setopt_array curl_setopt curl_share_close curl_share_init curl_share_setopt curl_strerror curl_unescape curl_version mysqli_affected_rows mysqli_autocommit mysqli_change_user mysqli_character_set_name mysqli_close mysqli_commit mysqli_connect_errno mysqli_connect_error mysqli_connect mysqli_data_seek mysqli_debug mysqli_dump_debug_info mysqli_errno mysqli_error_list mysqli_error mysqli_fetch_all mysqli_fetch_array mysqli_fetch_assoc mysqli_fetch_field_direct mysqli_fetch_field mysqli_fetch_fields mysqli_fetch_lengths mysqli_fetch_object mysqli_fetch_row mysqli_field_count mysqli_field_seek mysqli_field_tell mysqli_free_result mysqli_get_charset mysqli_get_client_info mysqli_get_client_stats mysqli_get_client_version mysqli_get_connection_stats mysqli_get_host_info mysqli_get_proto_info mysqli_get_server_info mysqli_get_server_version mysqli_info mysqli_init mysqli_insert_id mysqli_kill mysqli_more_results mysqli_multi_query mysqli_next_result mysqli_num_fields mysqli_num_rows mysqli_options mysqli_ping mysqli_prepare mysqli_query mysqli_real_connect mysqli_real_escape_string mysqli_real_query mysqli_reap_async_query mysqli_refresh mysqli_rollback mysqli_select_db mysqli_set_charset mysqli_set_local_infile_default mysqli_set_local_infile_handler mysqli_sqlstate mysqli_ssl_set mysqli_stat mysqli_stmt_init mysqli_store_result mysqli_thread_id mysqli_thread_safe mysqli_use_result mysqli_warning_count";i.registerHelper("hintWords","php",[d,a,h].join(" ").split(" ")),i.registerHelper("wordChars","php",/[\w$]/);var f={name:"clike",helperType:"php",keywords:t(d),blockKeywords:t("catch do else elseif for foreach if switch try while finally"),defKeywords:t("class function interface namespace trait"),atoms:t(a),builtin:t(h),multiLineStrings:!0,hooks:{$:function(p){return p.eatWhile(/[\w\$_]/),"variable-2"},"<":function(p,y){var g;if(g=p.match(/^<<\s*/)){var v=p.eat(/['"]/);p.eatWhile(/[\w\.]/);var b=p.current().slice(g[0].length+(v?2:1));if(v&&p.eat(v),b)return(y.tokStack||(y.tokStack=[])).push(b,0),y.tokenize=l(b,v!="'"),"string"}return!1},"#":function(p){for(;!p.eol()&&!p.match("?>",!1);)p.next();return"comment"},"/":function(p){if(p.eat("/")){for(;!p.eol()&&!p.match("?>",!1);)p.next();return"comment"}return!1},'"':function(p,y){return(y.tokStack||(y.tokStack=[])).push('"',0),y.tokenize=l('"'),"string"},"{":function(p,y){return y.tokStack&&y.tokStack.length&&y.tokStack[y.tokStack.length-1]++,!1},"}":function(p,y){return y.tokStack&&y.tokStack.length>0&&!--y.tokStack[y.tokStack.length-1]&&(y.tokenize=l(y.tokStack[y.tokStack.length-2])),!1}}};i.defineMode("php",function(p,y){var g=i.getMode(p,y&&y.htmlMode||"text/html"),v=i.getMode(p,f);function b(k,_){var w=_.curMode==v;if(k.sol()&&_.pending&&_.pending!='"'&&_.pending!="'"&&(_.pending=null),w)return w&&_.php.tokenize==null&&k.match("?>")?(_.curMode=g,_.curState=_.html,_.php.context.prev||(_.php=null),"meta"):v.token(k,_.curState);if(k.match(/^<\?\w*/))return _.curMode=v,_.php||(_.php=i.startState(v,g.indent(_.html,"",""))),_.curState=_.php,"meta";if(_.pending=='"'||_.pending=="'"){for(;!k.eol()&&k.next()!=_.pending;);var I="string"}else if(_.pending&&k.pos<_.pending.end){k.pos=_.pending.end;var I=_.pending.style}else var I=g.token(k,_.curState);_.pending&&(_.pending=null);var S=k.current(),R=S.search(/<\?/),O;return R!=-1&&(I=="string"&&(O=S.match(/[\'\"]$/))&&!/\?>/.test(S)?_.pending=O[0]:_.pending={end:k.pos,style:I},k.backUp(S.length-R)),I}return{startState:function(){var k=i.startState(g),_=y.startOpen?i.startState(v):null;return{html:k,php:_,curMode:y.startOpen?v:g,curState:y.startOpen?_:k,pending:null}},copyState:function(k){var _=k.html,w=i.copyState(g,_),I=k.php,S=I&&i.copyState(v,I),R;return k.curMode==g?R=w:R=S,{html:w,php:S,curMode:k.curMode,curState:R,pending:k.pending}},token:b,indent:function(k,_,w){return k.curMode!=v&&/^\s*<\//.test(_)||k.curMode==v&&/^\?>/.test(_)?g.indent(k.html,_,w):k.curMode.indent(k.curState,_,w)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",innerMode:function(k){return{state:k.curState,mode:k.curMode}}}},"htmlmixed","clike"),i.defineMIME("application/x-httpd-php","php"),i.defineMIME("application/x-httpd-php-open",{name:"php",startOpen:!0}),i.defineMIME("text/x-php",f)})});var Dd=Fe((Ad,Ld)=>{(function(i){"use strict";typeof Ad=="object"&&typeof Ld=="object"?i(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(window.CodeMirror)})(function(i){"use strict";i.defineMode("powershell",function(){function t(T,A){A=A||{};for(var j=A.prefix!==void 0?A.prefix:"^",te=A.suffix!==void 0?A.suffix:"\\b",F=0;F/,f=t([a,h],{suffix:""}),p=/^((0x[\da-f]+)|((\d+\.\d+|\d\.|\.\d+|\d+)(e[\+\-]?\d+)?))[ld]?([kmgtp]b)?/i,y=/^[A-Za-z\_][A-Za-z\-\_\d]*\b/,g=/[A-Z]:|%|\?/i,v=t([/Add-(Computer|Content|History|Member|PSSnapin|Type)/,/Checkpoint-Computer/,/Clear-(Content|EventLog|History|Host|Item(Property)?|Variable)/,/Compare-Object/,/Complete-Transaction/,/Connect-PSSession/,/ConvertFrom-(Csv|Json|SecureString|StringData)/,/Convert-Path/,/ConvertTo-(Csv|Html|Json|SecureString|Xml)/,/Copy-Item(Property)?/,/Debug-Process/,/Disable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/,/Disconnect-PSSession/,/Enable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/,/(Enter|Exit)-PSSession/,/Export-(Alias|Clixml|Console|Counter|Csv|FormatData|ModuleMember|PSSession)/,/ForEach-Object/,/Format-(Custom|List|Table|Wide)/,new RegExp("Get-(Acl|Alias|AuthenticodeSignature|ChildItem|Command|ComputerRestorePoint|Content|ControlPanelItem|Counter|Credential|Culture|Date|Event|EventLog|EventSubscriber|ExecutionPolicy|FormatData|Help|History|Host|HotFix|Item|ItemProperty|Job|Location|Member|Module|PfxCertificate|Process|PSBreakpoint|PSCallStack|PSDrive|PSProvider|PSSession|PSSessionConfiguration|PSSnapin|Random|Service|TraceSource|Transaction|TypeData|UICulture|Unique|Variable|Verb|WinEvent|WmiObject)"),/Group-Object/,/Import-(Alias|Clixml|Counter|Csv|LocalizedData|Module|PSSession)/,/ImportSystemModules/,/Invoke-(Command|Expression|History|Item|RestMethod|WebRequest|WmiMethod)/,/Join-Path/,/Limit-EventLog/,/Measure-(Command|Object)/,/Move-Item(Property)?/,new RegExp("New-(Alias|Event|EventLog|Item(Property)?|Module|ModuleManifest|Object|PSDrive|PSSession|PSSessionConfigurationFile|PSSessionOption|PSTransportOption|Service|TimeSpan|Variable|WebServiceProxy|WinEvent)"),/Out-(Default|File|GridView|Host|Null|Printer|String)/,/Pause/,/(Pop|Push)-Location/,/Read-Host/,/Receive-(Job|PSSession)/,/Register-(EngineEvent|ObjectEvent|PSSessionConfiguration|WmiEvent)/,/Remove-(Computer|Event|EventLog|Item(Property)?|Job|Module|PSBreakpoint|PSDrive|PSSession|PSSnapin|TypeData|Variable|WmiObject)/,/Rename-(Computer|Item(Property)?)/,/Reset-ComputerMachinePassword/,/Resolve-Path/,/Restart-(Computer|Service)/,/Restore-Computer/,/Resume-(Job|Service)/,/Save-Help/,/Select-(Object|String|Xml)/,/Send-MailMessage/,new RegExp("Set-(Acl|Alias|AuthenticodeSignature|Content|Date|ExecutionPolicy|Item(Property)?|Location|PSBreakpoint|PSDebug|PSSessionConfiguration|Service|StrictMode|TraceSource|Variable|WmiInstance)"),/Show-(Command|ControlPanelItem|EventLog)/,/Sort-Object/,/Split-Path/,/Start-(Job|Process|Service|Sleep|Transaction|Transcript)/,/Stop-(Computer|Job|Process|Service|Transcript)/,/Suspend-(Job|Service)/,/TabExpansion2/,/Tee-Object/,/Test-(ComputerSecureChannel|Connection|ModuleManifest|Path|PSSessionConfigurationFile)/,/Trace-Command/,/Unblock-File/,/Undo-Transaction/,/Unregister-(Event|PSSessionConfiguration)/,/Update-(FormatData|Help|List|TypeData)/,/Use-Transaction/,/Wait-(Event|Job|Process)/,/Where-Object/,/Write-(Debug|Error|EventLog|Host|Output|Progress|Verbose|Warning)/,/cd|help|mkdir|more|oss|prompt/,/ac|asnp|cat|cd|chdir|clc|clear|clhy|cli|clp|cls|clv|cnsn|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|dnsn|ebp/,/echo|epal|epcsv|epsn|erase|etsn|exsn|fc|fl|foreach|ft|fw|gal|gbp|gc|gci|gcm|gcs|gdr|ghy|gi|gjb|gl|gm|gmo|gp|gps/,/group|gsn|gsnp|gsv|gu|gv|gwmi|h|history|icm|iex|ihy|ii|ipal|ipcsv|ipmo|ipsn|irm|ise|iwmi|iwr|kill|lp|ls|man|md/,/measure|mi|mount|move|mp|mv|nal|ndr|ni|nmo|npssc|nsn|nv|ogv|oh|popd|ps|pushd|pwd|r|rbp|rcjb|rcsn|rd|rdr|ren|ri/,/rjb|rm|rmdir|rmo|rni|rnp|rp|rsn|rsnp|rujb|rv|rvpa|rwmi|sajb|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls/,/sort|sp|spjb|spps|spsv|start|sujb|sv|swmi|tee|trcm|type|where|wjb|write/],{prefix:"",suffix:""}),b=t([/[$?^_]|Args|ConfirmPreference|ConsoleFileName|DebugPreference|Error|ErrorActionPreference|ErrorView|ExecutionContext/,/FormatEnumerationLimit|Home|Host|Input|MaximumAliasCount|MaximumDriveCount|MaximumErrorCount|MaximumFunctionCount/,/MaximumHistoryCount|MaximumVariableCount|MyInvocation|NestedPromptLevel|OutputEncoding|Pid|Profile|ProgressPreference/,/PSBoundParameters|PSCommandPath|PSCulture|PSDefaultParameterValues|PSEmailServer|PSHome|PSScriptRoot|PSSessionApplicationName/,/PSSessionConfigurationName|PSSessionOption|PSUICulture|PSVersionTable|Pwd|ShellId|StackTrace|VerbosePreference/,/WarningPreference|WhatIfPreference/,/Event|EventArgs|EventSubscriber|Sender/,/Matches|Ofs|ForEach|LastExitCode|PSCmdlet|PSItem|PSSenderInfo|This/,/true|false|null/],{prefix:"\\$",suffix:""}),k=t([g,v,b],{suffix:n}),_={keyword:c,number:p,operator:f,builtin:k,punctuation:d,identifier:y};function w(T,A){var j=A.returnStack[A.returnStack.length-1];if(j&&j.shouldReturnFrom(A))return A.tokenize=j.tokenize,A.returnStack.pop(),A.tokenize(T,A);if(T.eatSpace())return null;if(T.eat("("))return A.bracketNesting+=1,"punctuation";if(T.eat(")"))return A.bracketNesting-=1,"punctuation";for(var te in _)if(T.match(_[te]))return te;var F=T.next();if(F==="'")return I(T,A);if(F==="$")return K(T,A);if(F==='"')return S(T,A);if(F==="<"&&T.eat("#"))return A.tokenize=J,J(T,A);if(F==="#")return T.skipToEnd(),"comment";if(F==="@"){var z=T.eat(/["']/);if(z&&T.eol())return A.tokenize=G,A.startQuote=z[0],G(T,A);if(T.eol())return"error";if(T.peek().match(/[({]/))return"punctuation";if(T.peek().match(l))return K(T,A)}return"error"}function I(T,A){for(var j;(j=T.peek())!=null;)if(T.next(),j==="'"&&!T.eat("'"))return A.tokenize=w,"string";return"error"}function S(T,A){for(var j;(j=T.peek())!=null;){if(j==="$")return A.tokenize=R,"string";if(T.next(),j==="`"){T.next();continue}if(j==='"'&&!T.eat('"'))return A.tokenize=w,"string"}return"error"}function R(T,A){return $(T,A,S)}function O(T,A){return A.tokenize=G,A.startQuote='"',G(T,A)}function U(T,A){return $(T,A,O)}function $(T,A,j){if(T.match("$(")){var te=A.bracketNesting;return A.returnStack.push({shouldReturnFrom:function(F){return F.bracketNesting===te},tokenize:j}),A.tokenize=w,A.bracketNesting+=1,"punctuation"}else return T.next(),A.returnStack.push({shouldReturnFrom:function(){return!0},tokenize:j}),A.tokenize=K,A.tokenize(T,A)}function J(T,A){for(var j=!1,te;(te=T.next())!=null;){if(j&&te==">"){A.tokenize=w;break}j=te==="#"}return"comment"}function K(T,A){var j=T.peek();return T.eat("{")?(A.tokenize=X,X(T,A)):j!=null&&j.match(l)?(T.eatWhile(l),A.tokenize=w,"variable-2"):(A.tokenize=w,"error")}function X(T,A){for(var j;(j=T.next())!=null;)if(j==="}"){A.tokenize=w;break}return"variable-2"}function G(T,A){var j=A.startQuote;if(T.sol()&&T.match(new RegExp(j+"@")))A.tokenize=w;else if(j==='"')for(;!T.eol();){var te=T.peek();if(te==="$")return A.tokenize=U,"string";T.next(),te==="`"&&T.next()}else T.skipToEnd();return"string"}var q={startState:function(){return{returnStack:[],bracketNesting:0,tokenize:w}},token:function(T,A){return A.tokenize(T,A)},blockCommentStart:"<#",blockCommentEnd:"#>",lineComment:"#",fold:"brace"};return q}),i.defineMIME("application/x-powershell","powershell")})});var Md=Fe((Id,Fd)=>{(function(i){typeof Id=="object"&&typeof Fd=="object"?i(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("properties",function(){return{token:function(t,n){var l=t.sol()||n.afterSection,c=t.eol();if(n.afterSection=!1,l&&(n.nextMultiline?(n.inMultiline=!0,n.nextMultiline=!1):n.position="def"),c&&!n.nextMultiline&&(n.inMultiline=!1,n.position="def"),l)for(;t.eatSpace(););var d=t.next();return l&&(d==="#"||d==="!"||d===";")?(n.position="comment",t.skipToEnd(),"comment"):l&&d==="["?(n.afterSection=!0,t.skipTo("]"),t.eat("]"),"header"):d==="="||d===":"?(n.position="quote",null):(d==="\\"&&n.position==="quote"&&t.eol()&&(n.nextMultiline=!0),n.position)},startState:function(){return{position:"def",nextMultiline:!1,inMultiline:!1,afterSection:!1}}}}),i.defineMIME("text/x-properties","properties"),i.defineMIME("text/x-ini","properties")})});var Rd=Fe((Od,Pd)=>{(function(i){typeof Od=="object"&&typeof Pd=="object"?i(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";function t(h){return new RegExp("^(("+h.join(")|(")+"))\\b")}var n=t(["and","or","not","is"]),l=["as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","lambda","pass","raise","return","try","while","with","yield","in"],c=["abs","all","any","bin","bool","bytearray","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip","__import__","NotImplemented","Ellipsis","__debug__"];i.registerHelper("hintWords","python",l.concat(c));function d(h){return h.scopes[h.scopes.length-1]}i.defineMode("python",function(h,f){for(var p="error",y=f.delimiters||f.singleDelimiters||/^[\(\)\[\]\{\}@,:`=;\.\\]/,g=[f.singleOperators,f.doubleOperators,f.doubleDelimiters,f.tripleDelimiters,f.operators||/^([-+*/%\/&|^]=?|[<>=]+|\/\/=?|\*\*=?|!=|[~!@]|\.\.\.)/],v=0;vz?X(te):se0&&q(j,te)&&(be+=" "+p),be}}return $(j,te)}function $(j,te,F){if(j.eatSpace())return null;if(!F&&j.match(/^#.*/))return"comment";if(j.match(/^[0-9\.]/,!1)){var z=!1;if(j.match(/^[\d_]*\.\d+(e[\+\-]?\d+)?/i)&&(z=!0),j.match(/^[\d_]+\.\d*/)&&(z=!0),j.match(/^\.\d+/)&&(z=!0),z)return j.eat(/J/i),"number";var se=!1;if(j.match(/^0x[0-9a-f_]+/i)&&(se=!0),j.match(/^0b[01_]+/i)&&(se=!0),j.match(/^0o[0-7_]+/i)&&(se=!0),j.match(/^[1-9][\d_]*(e[\+\-]?[\d_]+)?/)&&(j.eat(/J/i),se=!0),j.match(/^0(?![\dx])/i)&&(se=!0),se)return j.eat(/L/i),"number"}if(j.match(S)){var be=j.current().toLowerCase().indexOf("f")!==-1;return be?(te.tokenize=J(j.current(),te.tokenize),te.tokenize(j,te)):(te.tokenize=K(j.current(),te.tokenize),te.tokenize(j,te))}for(var W=0;W=0;)j=j.substr(1);var F=j.length==1,z="string";function se(W){return function(M,we){var Pe=$(M,we,!0);return Pe=="punctuation"&&(M.current()=="{"?we.tokenize=se(W+1):M.current()=="}"&&(W>1?we.tokenize=se(W-1):we.tokenize=be)),Pe}}function be(W,M){for(;!W.eol();)if(W.eatWhile(/[^'"\{\}\\]/),W.eat("\\")){if(W.next(),F&&W.eol())return z}else{if(W.match(j))return M.tokenize=te,z;if(W.match("{{"))return z;if(W.match("{",!1))return M.tokenize=se(0),W.current()?z:M.tokenize(W,M);if(W.match("}}"))return z;if(W.match("}"))return p;W.eat(/['"]/)}if(F){if(f.singleLineStringErrors)return p;M.tokenize=te}return z}return be.isString=!0,be}function K(j,te){for(;"rubf".indexOf(j.charAt(0).toLowerCase())>=0;)j=j.substr(1);var F=j.length==1,z="string";function se(be,W){for(;!be.eol();)if(be.eatWhile(/[^'"\\]/),be.eat("\\")){if(be.next(),F&&be.eol())return z}else{if(be.match(j))return W.tokenize=te,z;be.eat(/['"]/)}if(F){if(f.singleLineStringErrors)return p;W.tokenize=te}return z}return se.isString=!0,se}function X(j){for(;d(j).type!="py";)j.scopes.pop();j.scopes.push({offset:d(j).offset+h.indentUnit,type:"py",align:null})}function G(j,te,F){var z=j.match(/^[\s\[\{\(]*(?:#|$)/,!1)?null:j.column()+1;te.scopes.push({offset:te.indent+b,type:F,align:z})}function q(j,te){for(var F=j.indentation();te.scopes.length>1&&d(te).offset>F;){if(d(te).type!="py")return!0;te.scopes.pop()}return d(te).offset!=F}function T(j,te){j.sol()&&(te.beginningOfLine=!0);var F=te.tokenize(j,te),z=j.current();if(te.beginningOfLine&&z=="@")return j.match(I,!1)?"meta":w?"operator":p;if(/\S/.test(z)&&(te.beginningOfLine=!1),(F=="variable"||F=="builtin")&&te.lastToken=="meta"&&(F="meta"),(z=="pass"||z=="return")&&(te.dedent+=1),z=="lambda"&&(te.lambda=!0),z==":"&&!te.lambda&&d(te).type=="py"&&j.match(/^\s*(?:#|$)/,!1)&&X(te),z.length==1&&!/string|comment/.test(F)){var se="[({".indexOf(z);if(se!=-1&&G(j,te,"])}".slice(se,se+1)),se="])}".indexOf(z),se!=-1)if(d(te).type==z)te.indent=te.scopes.pop().offset-b;else return p}return te.dedent>0&&j.eol()&&d(te).type=="py"&&(te.scopes.length>1&&te.scopes.pop(),te.dedent-=1),F}var A={startState:function(j){return{tokenize:U,scopes:[{offset:j||0,type:"py",align:null}],indent:j||0,lastToken:null,lambda:!1,dedent:0}},token:function(j,te){var F=te.errorToken;F&&(te.errorToken=!1);var z=T(j,te);return z&&z!="comment"&&(te.lastToken=z=="keyword"||z=="punctuation"?j.current():z),z=="punctuation"&&(z=null),j.eol()&&te.lambda&&(te.lambda=!1),F?z+" "+p:z},indent:function(j,te){if(j.tokenize!=U)return j.tokenize.isString?i.Pass:0;var F=d(j),z=F.type==te.charAt(0);return F.align!=null?F.align-(z?1:0):F.offset-(z?b:0)},electricInput:/^\s*[\}\]\)]$/,closeBrackets:{triples:`'"`},lineComment:"#",fold:"indent"};return A}),i.defineMIME("text/x-python","python");var a=function(h){return h.split(" ")};i.defineMIME("text/x-cython",{name:"python",extra_keywords:a("by cdef cimport cpdef ctypedef enum except extern gil include nogil property public readonly struct union DEF IF ELIF ELSE")})})});var Bd=Fe((zd,Nd)=>{(function(i){typeof zd=="object"&&typeof Nd=="object"?i(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";function t(f){for(var p={},y=0,g=f.length;y]/)?(S.eat(/[\<\>]/),"atom"):S.eat(/[\+\-\*\/\&\|\:\!]/)?"atom":S.eat(/[a-zA-Z$@_\xa1-\uffff]/)?(S.eatWhile(/[\w$\xa1-\uffff]/),S.eat(/[\?\!\=]/),"atom"):"operator";if(O=="@"&&S.match(/^@?[a-zA-Z_\xa1-\uffff]/))return S.eat("@"),S.eatWhile(/[\w\xa1-\uffff]/),"variable-2";if(O=="$")return S.eat(/[a-zA-Z_]/)?S.eatWhile(/[\w]/):S.eat(/\d/)?S.eat(/\d/):S.next(),"variable-3";if(/[a-zA-Z_\xa1-\uffff]/.test(O))return S.eatWhile(/[\w\xa1-\uffff]/),S.eat(/[\?\!]/),S.eat(":")?"atom":"ident";if(O=="|"&&(R.varList||R.lastTok=="{"||R.lastTok=="do"))return p="|",null;if(/[\(\)\[\]{}\\;]/.test(O))return p=O,null;if(O=="-"&&S.eat(">"))return"arrow";if(/[=+\-\/*:\.^%<>~|]/.test(O)){var X=S.eatWhile(/[=+\-\/*:\.^%<>~|]/);return O=="."&&!X&&(p="."),"operator"}else return null}}}function v(S){for(var R=S.pos,O=0,U,$=!1,J=!1;(U=S.next())!=null;)if(J)J=!1;else{if("[{(".indexOf(U)>-1)O++;else if("]})".indexOf(U)>-1){if(O--,O<0)break}else if(U=="/"&&O==0){$=!0;break}J=U=="\\"}return S.backUp(S.pos-R),$}function b(S){return S||(S=1),function(R,O){if(R.peek()=="}"){if(S==1)return O.tokenize.pop(),O.tokenize[O.tokenize.length-1](R,O);O.tokenize[O.tokenize.length-1]=b(S-1)}else R.peek()=="{"&&(O.tokenize[O.tokenize.length-1]=b(S+1));return g(R,O)}}function k(){var S=!1;return function(R,O){return S?(O.tokenize.pop(),O.tokenize[O.tokenize.length-1](R,O)):(S=!0,g(R,O))}}function _(S,R,O,U){return function($,J){var K=!1,X;for(J.context.type==="read-quoted-paused"&&(J.context=J.context.prev,$.eat("}"));(X=$.next())!=null;){if(X==S&&(U||!K)){J.tokenize.pop();break}if(O&&X=="#"&&!K){if($.eat("{")){S=="}"&&(J.context={prev:J.context,type:"read-quoted-paused"}),J.tokenize.push(b());break}else if(/[@\$]/.test($.peek())){J.tokenize.push(k());break}}K=!K&&X=="\\"}return R}}function w(S,R){return function(O,U){return R&&O.eatSpace(),O.match(S)?U.tokenize.pop():O.skipToEnd(),"string"}}function I(S,R){return S.sol()&&S.match("=end")&&S.eol()&&R.tokenize.pop(),S.skipToEnd(),"comment"}return{startState:function(){return{tokenize:[g],indented:0,context:{type:"top",indented:-f.indentUnit},continuedLine:!1,lastTok:null,varList:!1}},token:function(S,R){p=null,S.sol()&&(R.indented=S.indentation());var O=R.tokenize[R.tokenize.length-1](S,R),U,$=p;if(O=="ident"){var J=S.current();O=R.lastTok=="."?"property":l.propertyIsEnumerable(S.current())?"keyword":/^[A-Z]/.test(J)?"tag":R.lastTok=="def"||R.lastTok=="class"||R.varList?"def":"variable",O=="keyword"&&($=J,c.propertyIsEnumerable(J)?U="indent":d.propertyIsEnumerable(J)?U="dedent":((J=="if"||J=="unless")&&S.column()==S.indentation()||J=="do"&&R.context.indented{(function(i){typeof qd=="object"&&typeof jd=="object"?i(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineSimpleMode=function(y,g){i.defineMode(y,function(v){return i.simpleMode(v,g)})},i.simpleMode=function(y,g){t(g,"start");var v={},b=g.meta||{},k=!1;for(var _ in g)if(_!=b&&g.hasOwnProperty(_))for(var w=v[_]=[],I=g[_],S=0;S2&&R.token&&typeof R.token!="string"){for(var $=2;$-1)return i.Pass;var _=v.indent.length-1,w=y[v.state];e:for(;;){for(var I=0;I{(function(i){typeof Ud=="object"&&typeof Hd=="object"?i(At(),$d()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../../addon/mode/simple"],i):i(CodeMirror)})(function(i){"use strict";i.defineSimpleMode("rust",{start:[{regex:/b?"/,token:"string",next:"string"},{regex:/b?r"/,token:"string",next:"string_raw"},{regex:/b?r#+"/,token:"string",next:"string_raw_hash"},{regex:/'(?:[^'\\]|\\(?:[nrt0'"]|x[\da-fA-F]{2}|u\{[\da-fA-F]{6}\}))'/,token:"string-2"},{regex:/b'(?:[^']|\\(?:['\\nrt0]|x[\da-fA-F]{2}))'/,token:"string-2"},{regex:/(?:(?:[0-9][0-9_]*)(?:(?:[Ee][+-]?[0-9_]+)|\.[0-9_]+(?:[Ee][+-]?[0-9_]+)?)(?:f32|f64)?)|(?:0(?:b[01_]+|(?:o[0-7_]+)|(?:x[0-9a-fA-F_]+))|(?:[0-9][0-9_]*))(?:u8|u16|u32|u64|i8|i16|i32|i64|isize|usize)?/,token:"number"},{regex:/(let(?:\s+mut)?|fn|enum|mod|struct|type|union)(\s+)([a-zA-Z_][a-zA-Z0-9_]*)/,token:["keyword",null,"def"]},{regex:/(?:abstract|alignof|as|async|await|box|break|continue|const|crate|do|dyn|else|enum|extern|fn|for|final|if|impl|in|loop|macro|match|mod|move|offsetof|override|priv|proc|pub|pure|ref|return|self|sizeof|static|struct|super|trait|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,token:"keyword"},{regex:/\b(?:Self|isize|usize|char|bool|u8|u16|u32|u64|f16|f32|f64|i8|i16|i32|i64|str|Option)\b/,token:"atom"},{regex:/\b(?:true|false|Some|None|Ok|Err)\b/,token:"builtin"},{regex:/\b(fn)(\s+)([a-zA-Z_][a-zA-Z0-9_]*)/,token:["keyword",null,"def"]},{regex:/#!?\[.*\]/,token:"meta"},{regex:/\/\/.*/,token:"comment"},{regex:/\/\*/,token:"comment",next:"comment"},{regex:/[-+\/*=<>!]+/,token:"operator"},{regex:/[a-zA-Z_]\w*!/,token:"variable-3"},{regex:/[a-zA-Z_]\w*/,token:"variable"},{regex:/[\{\[\(]/,indent:!0},{regex:/[\}\]\)]/,dedent:!0}],string:[{regex:/"/,token:"string",next:"start"},{regex:/(?:[^\\"]|\\(?:.|$))*/,token:"string"}],string_raw:[{regex:/"/,token:"string",next:"start"},{regex:/[^"]*/,token:"string"}],string_raw_hash:[{regex:/"#+/,token:"string",next:"start"},{regex:/(?:[^"]|"(?!#))*/,token:"string"}],comment:[{regex:/.*?\*\//,token:"comment",next:"start"},{regex:/.*/,token:"comment"}],meta:{dontIndentStates:["comment"],electricInput:/^\s*\}$/,blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",fold:"brace"}}),i.defineMIME("text/x-rustsrc","rust"),i.defineMIME("text/rust","rust")})});var Vd=Fe((Gd,Kd)=>{(function(i){typeof Gd=="object"&&typeof Kd=="object"?i(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("shell",function(){var t={};function n(v,b){for(var k=0;k1&&v.eat("$");var k=v.next();return/['"({]/.test(k)?(b.tokens[0]=h(k,k=="("?"quote":k=="{"?"def":"string"),g(v,b)):(/\d/.test(k)||v.eatWhile(/\w/),b.tokens.shift(),"def")};function y(v){return function(b,k){return b.sol()&&b.string==v&&k.tokens.shift(),b.skipToEnd(),"string-2"}}function g(v,b){return(b.tokens[0]||a)(v,b)}return{startState:function(){return{tokens:[]}},token:function(v,b){return g(v,b)},closeBrackets:"()[]{}''\"\"``",lineComment:"#",fold:"brace"}}),i.defineMIME("text/x-sh","shell"),i.defineMIME("application/x-sh","shell")})});var Zd=Fe((Yd,Xd)=>{(function(i){typeof Yd=="object"&&typeof Xd=="object"?i(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("sql",function(f,p){var y=p.client||{},g=p.atoms||{false:!0,true:!0,null:!0},v=p.builtin||a(h),b=p.keywords||a(d),k=p.operatorChars||/^[*+\-%<>!=&|~^\/]/,_=p.support||{},w=p.hooks||{},I=p.dateSQL||{date:!0,time:!0,timestamp:!0},S=p.backslashStringEscapes!==!1,R=p.brackets||/^[\{}\(\)\[\]]/,O=p.punctuation||/^[;.,:]/;function U(G,q){var T=G.next();if(w[T]){var A=w[T](G,q);if(A!==!1)return A}if(_.hexNumber&&(T=="0"&&G.match(/^[xX][0-9a-fA-F]+/)||(T=="x"||T=="X")&&G.match(/^'[0-9a-fA-F]+'/)))return"number";if(_.binaryNumber&&((T=="b"||T=="B")&&G.match(/^'[01]+'/)||T=="0"&&G.match(/^b[01]+/)))return"number";if(T.charCodeAt(0)>47&&T.charCodeAt(0)<58)return G.match(/^[0-9]*(\.[0-9]+)?([eE][-+]?[0-9]+)?/),_.decimallessFloat&&G.match(/^\.(?!\.)/),"number";if(T=="?"&&(G.eatSpace()||G.eol()||G.eat(";")))return"variable-3";if(T=="'"||T=='"'&&_.doubleQuote)return q.tokenize=$(T),q.tokenize(G,q);if((_.nCharCast&&(T=="n"||T=="N")||_.charsetCast&&T=="_"&&G.match(/[a-z][a-z0-9]*/i))&&(G.peek()=="'"||G.peek()=='"'))return"keyword";if(_.escapeConstant&&(T=="e"||T=="E")&&(G.peek()=="'"||G.peek()=='"'&&_.doubleQuote))return q.tokenize=function(te,F){return(F.tokenize=$(te.next(),!0))(te,F)},"keyword";if(_.commentSlashSlash&&T=="/"&&G.eat("/"))return G.skipToEnd(),"comment";if(_.commentHash&&T=="#"||T=="-"&&G.eat("-")&&(!_.commentSpaceRequired||G.eat(" ")))return G.skipToEnd(),"comment";if(T=="/"&&G.eat("*"))return q.tokenize=J(1),q.tokenize(G,q);if(T=="."){if(_.zerolessFloat&&G.match(/^(?:\d+(?:e[+-]?\d+)?)/i))return"number";if(G.match(/^\.+/))return null;if(_.ODBCdotTable&&G.match(/^[\w\d_$#]+/))return"variable-2"}else{if(k.test(T))return G.eatWhile(k),"operator";if(R.test(T))return"bracket";if(O.test(T))return G.eatWhile(O),"punctuation";if(T=="{"&&(G.match(/^( )*(d|D|t|T|ts|TS)( )*'[^']*'( )*}/)||G.match(/^( )*(d|D|t|T|ts|TS)( )*"[^"]*"( )*}/)))return"number";G.eatWhile(/^[_\w\d]/);var j=G.current().toLowerCase();return I.hasOwnProperty(j)&&(G.match(/^( )+'[^']*'/)||G.match(/^( )+"[^"]*"/))?"number":g.hasOwnProperty(j)?"atom":v.hasOwnProperty(j)?"builtin":b.hasOwnProperty(j)?"keyword":y.hasOwnProperty(j)?"string-2":null}}function $(G,q){return function(T,A){for(var j=!1,te;(te=T.next())!=null;){if(te==G&&!j){A.tokenize=U;break}j=(S||q)&&!j&&te=="\\"}return"string"}}function J(G){return function(q,T){var A=q.match(/^.*?(\/\*|\*\/)/);return A?A[1]=="/*"?T.tokenize=J(G+1):G>1?T.tokenize=J(G-1):T.tokenize=U:q.skipToEnd(),"comment"}}function K(G,q,T){q.context={prev:q.context,indent:G.indentation(),col:G.column(),type:T}}function X(G){G.indent=G.context.indent,G.context=G.context.prev}return{startState:function(){return{tokenize:U,context:null}},token:function(G,q){if(G.sol()&&q.context&&q.context.align==null&&(q.context.align=!1),q.tokenize==U&&G.eatSpace())return null;var T=q.tokenize(G,q);if(T=="comment")return T;q.context&&q.context.align==null&&(q.context.align=!0);var A=G.current();return A=="("?K(G,q,")"):A=="["?K(G,q,"]"):q.context&&q.context.type==A&&X(q),T},indent:function(G,q){var T=G.context;if(!T)return i.Pass;var A=q.charAt(0)==T.type;return T.align?T.col+(A?0:1):T.indent+(A?0:f.indentUnit)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:_.commentSlashSlash?"//":_.commentHash?"#":"--",closeBrackets:"()[]{}''\"\"``"}});function t(f){for(var p;(p=f.next())!=null;)if(p=="`"&&!f.eat("`"))return"variable-2";return f.backUp(f.current().length-1),f.eatWhile(/\w/)?"variable-2":null}function n(f){for(var p;(p=f.next())!=null;)if(p=='"'&&!f.eat('"'))return"variable-2";return f.backUp(f.current().length-1),f.eatWhile(/\w/)?"variable-2":null}function l(f){return f.eat("@")&&(f.match("session."),f.match("local."),f.match("global.")),f.eat("'")?(f.match(/^.*'/),"variable-2"):f.eat('"')?(f.match(/^.*"/),"variable-2"):f.eat("`")?(f.match(/^.*`/),"variable-2"):f.match(/^[0-9a-zA-Z$\.\_]+/)?"variable-2":null}function c(f){return f.eat("N")?"atom":f.match(/^[a-zA-Z.#!?]/)?"variable-2":null}var d="alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit ";function a(f){for(var p={},y=f.split(" "),g=0;g!=^\&|\/]/,brackets:/^[\{}\(\)]/,punctuation:/^[;.,:/]/,backslashStringEscapes:!1,dateSQL:a("date datetimeoffset datetime2 smalldatetime datetime time"),hooks:{"@":l}}),i.defineMIME("text/x-mysql",{name:"sql",client:a("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:a(d+"accessible action add after algorithm all analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general get global grant grants group group_concat handler hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show signal slave slow smallint snapshot soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:a("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:a("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:a("date time timestamp"),support:a("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":l,"`":t,"\\":c}}),i.defineMIME("text/x-mariadb",{name:"sql",client:a("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:a(d+"accessible action add after algorithm all always analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general generated get global grant grants group groupby_concat handler hard hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password persistent phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show shutdown signal slave slow smallint snapshot soft soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views virtual warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:a("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:a("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:a("date time timestamp"),support:a("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":l,"`":t,"\\":c}}),i.defineMIME("text/x-sqlite",{name:"sql",client:a("auth backup bail binary changes check clone databases dbinfo dump echo eqp exit explain fullschema headers help import imposter indexes iotrace limit lint load log mode nullvalue once open output print prompt quit read restore save scanstats schema separator session shell show stats system tables testcase timeout timer trace vfsinfo vfslist vfsname width"),keywords:a(d+"abort action add after all analyze attach autoincrement before begin cascade case cast check collate column commit conflict constraint cross current_date current_time current_timestamp database default deferrable deferred detach each else end escape except exclusive exists explain fail for foreign full glob if ignore immediate index indexed initially inner instead intersect isnull key left limit match natural no notnull null of offset outer plan pragma primary query raise recursive references regexp reindex release rename replace restrict right rollback row savepoint temp temporary then to transaction trigger unique using vacuum view virtual when with without"),builtin:a("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text clob bigint int int2 int8 integer float double char varchar date datetime year unsigned signed numeric real"),atoms:a("null current_date current_time current_timestamp"),operatorChars:/^[*+\-%<>!=&|/~]/,dateSQL:a("date time timestamp datetime"),support:a("decimallessFloat zerolessFloat"),identifierQuote:'"',hooks:{"@":l,":":l,"?":l,$:l,'"':n,"`":t}}),i.defineMIME("text/x-cassandra",{name:"sql",client:{},keywords:a("add all allow alter and any apply as asc authorize batch begin by clustering columnfamily compact consistency count create custom delete desc distinct drop each_quorum exists filtering from grant if in index insert into key keyspace keyspaces level limit local_one local_quorum modify nan norecursive nosuperuser not of on one order password permission permissions primary quorum rename revoke schema select set storage superuser table three to token truncate ttl two type unlogged update use user users using values where with writetime"),builtin:a("ascii bigint blob boolean counter decimal double float frozen inet int list map static text timestamp timeuuid tuple uuid varchar varint"),atoms:a("false true infinity NaN"),operatorChars:/^[<>=]/,dateSQL:{},support:a("commentSlashSlash decimallessFloat"),hooks:{}}),i.defineMIME("text/x-plsql",{name:"sql",client:a("appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define describe echo editfile embedded escape exec execute feedback flagger flush heading headsep instance linesize lno loboffset logsource long longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar release repfooter repheader serveroutput shiftinout show showmode size spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout time timing trimout trimspool ttitle underline verify version wrap"),keywords:a("abort accept access add all alter and any array arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body boolean by case cast char char_base check close cluster clusters colauth column comment commit compress connect connected constant constraint crash create current currval cursor data_base database date dba deallocate debugoff debugon decimal declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry escape exception exception_init exchange exclusive exists exit external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging long loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base object of off offline on online only open option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw read rebuild record ref references refresh release rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate session set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work"),builtin:a("abs acos add_months ascii asin atan atan2 average bfile bfilename bigserial bit blob ceil character chartorowid chr clob concat convert cos cosh count dec decode deref dual dump dup_val_on_index empty error exp false float floor found glb greatest hextoraw initcap instr instrb int integer isopen last_day least length lengthb ln lower lpad ltrim lub make_ref max min mlslabel mod months_between natural naturaln nchar nclob new_time next_day nextval nls_charset_decl_len nls_charset_id nls_charset_name nls_initcap nls_lower nls_sort nls_upper nlssort no_data_found notfound null number numeric nvarchar2 nvl others power rawtohex real reftohex round rowcount rowidtochar rowtype rpad rtrim serial sign signtype sin sinh smallint soundex sqlcode sqlerrm sqrt stddev string substr substrb sum sysdate tan tanh to_char text to_date to_label to_multi_byte to_number to_single_byte translate true trunc uid unlogged upper user userenv varchar varchar2 variance varying vsize xml"),operatorChars:/^[*\/+\-%<>!=~]/,dateSQL:a("date time timestamp"),support:a("doubleQuote nCharCast zerolessFloat binaryNumber hexNumber")}),i.defineMIME("text/x-hive",{name:"sql",keywords:a("select alter $elem$ $key$ $value$ add after all analyze and archive as asc before between binary both bucket buckets by cascade case cast change cluster clustered clusterstatus collection column columns comment compute concatenate continue create cross cursor data database databases dbproperties deferred delete delimited desc describe directory disable distinct distribute drop else enable end escaped exclusive exists explain export extended external fetch fields fileformat first format formatted from full function functions grant group having hold_ddltime idxproperties if import in index indexes inpath inputdriver inputformat insert intersect into is items join keys lateral left like limit lines load local location lock locks mapjoin materialized minus msck no_drop nocompress not of offline on option or order out outer outputdriver outputformat overwrite partition partitioned partitions percent plus preserve procedure purge range rcfile read readonly reads rebuild recordreader recordwriter recover reduce regexp rename repair replace restrict revoke right rlike row schema schemas semi sequencefile serde serdeproperties set shared show show_database sort sorted ssl statistics stored streamtable table tables tablesample tblproperties temporary terminated textfile then tmp to touch transform trigger unarchive undo union uniquejoin unlock update use using utc utc_tmestamp view when where while with admin authorization char compact compactions conf cube current current_date current_timestamp day decimal defined dependency directories elem_type exchange file following for grouping hour ignore inner interval jar less logical macro minute month more none noscan over owner partialscan preceding pretty principals protection reload rewrite role roles rollup rows second server sets skewed transactions truncate unbounded unset uri user values window year"),builtin:a("bool boolean long timestamp tinyint smallint bigint int float double date datetime unsigned string array struct map uniontype key_type utctimestamp value_type varchar"),atoms:a("false true null unknown"),operatorChars:/^[*+\-%<>!=]/,dateSQL:a("date timestamp"),support:a("ODBCdotTable doubleQuote binaryNumber hexNumber")}),i.defineMIME("text/x-pgsql",{name:"sql",client:a("source"),keywords:a(d+"a abort abs absent absolute access according action ada add admin after aggregate alias all allocate also alter always analyse analyze and any are array array_agg array_max_cardinality as asc asensitive assert assertion assignment asymmetric at atomic attach attribute attributes authorization avg backward base64 before begin begin_frame begin_partition bernoulli between bigint binary bit bit_length blob blocked bom boolean both breadth by c cache call called cardinality cascade cascaded case cast catalog catalog_name ceil ceiling chain char char_length character character_length character_set_catalog character_set_name character_set_schema characteristics characters check checkpoint class class_origin clob close cluster coalesce cobol collate collation collation_catalog collation_name collation_schema collect column column_name columns command_function command_function_code comment comments commit committed concurrently condition condition_number configuration conflict connect connection connection_name constant constraint constraint_catalog constraint_name constraint_schema constraints constructor contains content continue control conversion convert copy corr corresponding cost count covar_pop covar_samp create cross csv cube cume_dist current current_catalog current_date current_default_transform_group current_path current_role current_row current_schema current_time current_timestamp current_transform_group_for_type current_user cursor cursor_name cycle data database datalink datatype date datetime_interval_code datetime_interval_precision day db deallocate debug dec decimal declare default defaults deferrable deferred defined definer degree delete delimiter delimiters dense_rank depends depth deref derived desc describe descriptor detach detail deterministic diagnostics dictionary disable discard disconnect dispatch distinct dlnewcopy dlpreviouscopy dlurlcomplete dlurlcompleteonly dlurlcompletewrite dlurlpath dlurlpathonly dlurlpathwrite dlurlscheme dlurlserver dlvalue do document domain double drop dump dynamic dynamic_function dynamic_function_code each element else elseif elsif empty enable encoding encrypted end end_frame end_partition endexec enforced enum equals errcode error escape event every except exception exclude excluding exclusive exec execute exists exit exp explain expression extension external extract false family fetch file filter final first first_value flag float floor following for force foreach foreign fortran forward found frame_row free freeze from fs full function functions fusion g general generated get global go goto grant granted greatest group grouping groups handler having header hex hierarchy hint hold hour id identity if ignore ilike immediate immediately immutable implementation implicit import in include including increment indent index indexes indicator info inherit inherits initially inline inner inout input insensitive insert instance instantiable instead int integer integrity intersect intersection interval into invoker is isnull isolation join k key key_member key_type label lag language large last last_value lateral lead leading leakproof least left length level library like like_regex limit link listen ln load local localtime localtimestamp location locator lock locked log logged loop lower m map mapping match matched materialized max max_cardinality maxvalue member merge message message_length message_octet_length message_text method min minute minvalue mod mode modifies module month more move multiset mumps name names namespace national natural nchar nclob nesting new next nfc nfd nfkc nfkd nil no none normalize normalized not nothing notice notify notnull nowait nth_value ntile null nullable nullif nulls number numeric object occurrences_regex octet_length octets of off offset oids old on only open operator option options or order ordering ordinality others out outer output over overlaps overlay overriding owned owner p pad parallel parameter parameter_mode parameter_name parameter_ordinal_position parameter_specific_catalog parameter_specific_name parameter_specific_schema parser partial partition pascal passing passthrough password path percent percent_rank percentile_cont percentile_disc perform period permission pg_context pg_datatype_name pg_exception_context pg_exception_detail pg_exception_hint placing plans pli policy portion position position_regex power precedes preceding precision prepare prepared preserve primary print_strict_params prior privileges procedural procedure procedures program public publication query quote raise range rank read reads real reassign recheck recovery recursive ref references referencing refresh regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy regr_syy reindex relative release rename repeatable replace replica requiring reset respect restart restore restrict result result_oid return returned_cardinality returned_length returned_octet_length returned_sqlstate returning returns reverse revoke right role rollback rollup routine routine_catalog routine_name routine_schema routines row row_count row_number rows rowtype rule savepoint scale schema schema_name schemas scope scope_catalog scope_name scope_schema scroll search second section security select selective self sensitive sequence sequences serializable server server_name session session_user set setof sets share show similar simple size skip slice smallint snapshot some source space specific specific_name specifictype sql sqlcode sqlerror sqlexception sqlstate sqlwarning sqrt stable stacked standalone start state statement static statistics stddev_pop stddev_samp stdin stdout storage strict strip structure style subclass_origin submultiset subscription substring substring_regex succeeds sum symmetric sysid system system_time system_user t table table_name tables tablesample tablespace temp template temporary text then ties time timestamp timezone_hour timezone_minute to token top_level_count trailing transaction transaction_active transactions_committed transactions_rolled_back transform transforms translate translate_regex translation treat trigger trigger_catalog trigger_name trigger_schema trim trim_array true truncate trusted type types uescape unbounded uncommitted under unencrypted union unique unknown unlink unlisten unlogged unnamed unnest until untyped update upper uri usage use_column use_variable user user_defined_type_catalog user_defined_type_code user_defined_type_name user_defined_type_schema using vacuum valid validate validator value value_of values var_pop var_samp varbinary varchar variable_conflict variadic varying verbose version versioning view views volatile warning when whenever where while whitespace width_bucket window with within without work wrapper write xml xmlagg xmlattributes xmlbinary xmlcast xmlcomment xmlconcat xmldeclaration xmldocument xmlelement xmlexists xmlforest xmliterate xmlnamespaces xmlparse xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltext xmlvalidate year yes zone"),builtin:a("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:a("false true null unknown"),operatorChars:/^[*\/+\-%<>!=&|^\/#@?~]/,backslashStringEscapes:!1,dateSQL:a("date time timestamp"),support:a("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast escapeConstant")}),i.defineMIME("text/x-gql",{name:"sql",keywords:a("ancestor and asc by contains desc descendant distinct from group has in is limit offset on order select superset where"),atoms:a("false true"),builtin:a("blob datetime first key __key__ string integer double boolean null"),operatorChars:/^[*+\-%<>!=]/}),i.defineMIME("text/x-gpsql",{name:"sql",client:a("source"),keywords:a("abort absolute access action active add admin after aggregate all also alter always analyse analyze and any array as asc assertion assignment asymmetric at authorization backward before begin between bigint binary bit boolean both by cache called cascade cascaded case cast chain char character characteristics check checkpoint class close cluster coalesce codegen collate column comment commit committed concurrency concurrently configuration connection constraint constraints contains content continue conversion copy cost cpu_rate_limit create createdb createexttable createrole createuser cross csv cube current current_catalog current_date current_role current_schema current_time current_timestamp current_user cursor cycle data database day deallocate dec decimal declare decode default defaults deferrable deferred definer delete delimiter delimiters deny desc dictionary disable discard distinct distributed do document domain double drop dxl each else enable encoding encrypted end enum errors escape every except exchange exclude excluding exclusive execute exists explain extension external extract false family fetch fields filespace fill filter first float following for force foreign format forward freeze from full function global grant granted greatest group group_id grouping handler hash having header hold host hour identity if ignore ilike immediate immutable implicit in including inclusive increment index indexes inherit inherits initially inline inner inout input insensitive insert instead int integer intersect interval into invoker is isnull isolation join key language large last leading least left level like limit list listen load local localtime localtimestamp location lock log login mapping master match maxvalue median merge minute minvalue missing mode modifies modify month move name names national natural nchar new newline next no nocreatedb nocreateexttable nocreaterole nocreateuser noinherit nologin none noovercommit nosuperuser not nothing notify notnull nowait null nullif nulls numeric object of off offset oids old on only operator option options or order ordered others out outer over overcommit overlaps overlay owned owner parser partial partition partitions passing password percent percentile_cont percentile_disc placing plans position preceding precision prepare prepared preserve primary prior privileges procedural procedure protocol queue quote randomly range read readable reads real reassign recheck recursive ref references reindex reject relative release rename repeatable replace replica reset resource restart restrict returning returns revoke right role rollback rollup rootpartition row rows rule savepoint scatter schema scroll search second security segment select sequence serializable session session_user set setof sets share show similar simple smallint some split sql stable standalone start statement statistics stdin stdout storage strict strip subpartition subpartitions substring superuser symmetric sysid system table tablespace temp template temporary text then threshold ties time timestamp to trailing transaction treat trigger trim true truncate trusted type unbounded uncommitted unencrypted union unique unknown unlisten until update user using vacuum valid validation validator value values varchar variadic varying verbose version view volatile web when where whitespace window with within without work writable write xml xmlattributes xmlconcat xmlelement xmlexists xmlforest xmlparse xmlpi xmlroot xmlserialize year yes zone"),builtin:a("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:a("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:a("date time timestamp"),support:a("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast")}),i.defineMIME("text/x-sparksql",{name:"sql",keywords:a("add after all alter analyze and anti archive array as asc at between bucket buckets by cache cascade case cast change clear cluster clustered codegen collection column columns comment commit compact compactions compute concatenate cost create cross cube current current_date current_timestamp database databases data dbproperties defined delete delimited deny desc describe dfs directories distinct distribute drop else end escaped except exchange exists explain export extended external false fields fileformat first following for format formatted from full function functions global grant group grouping having if ignore import in index indexes inner inpath inputformat insert intersect interval into is items join keys last lateral lazy left like limit lines list load local location lock locks logical macro map minus msck natural no not null nulls of on optimize option options or order out outer outputformat over overwrite partition partitioned partitions percent preceding principals purge range recordreader recordwriter recover reduce refresh regexp rename repair replace reset restrict revoke right rlike role roles rollback rollup row rows schema schemas select semi separated serde serdeproperties set sets show skewed sort sorted start statistics stored stratify struct table tables tablesample tblproperties temp temporary terminated then to touch transaction transactions transform true truncate unarchive unbounded uncache union unlock unset use using values view when where window with"),builtin:a("tinyint smallint int bigint boolean float double string binary timestamp decimal array map struct uniontype delimited serde sequencefile textfile rcfile inputformat outputformat"),atoms:a("false true null"),operatorChars:/^[*\/+\-%<>!=~&|^]/,dateSQL:a("date time timestamp"),support:a("ODBCdotTable doubleQuote zerolessFloat")}),i.defineMIME("text/x-esper",{name:"sql",client:a("source"),keywords:a("alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit after all and as at asc avedev avg between by case cast coalesce count create current_timestamp day days delete define desc distinct else end escape events every exists false first from full group having hour hours in inner insert instanceof into irstream is istream join last lastweekday left limit like max match_recognize matches median measures metadatasql min minute minutes msec millisecond milliseconds not null offset on or order outer output partition pattern prev prior regexp retain-union retain-intersection right rstream sec second seconds select set some snapshot sql stddev sum then true unidirectional until update variable weekday when where window"),builtin:{},atoms:a("false true null"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:a("time"),support:a("decimallessFloat zerolessFloat binaryNumber hexNumber")})})});var eh=Fe((Qd,Jd)=>{(function(i){typeof Qd=="object"&&typeof Jd=="object"?i(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("toml",function(){return{startState:function(){return{inString:!1,stringType:"",lhs:!0,inArray:0}},token:function(t,n){if(!n.inString&&(t.peek()=='"'||t.peek()=="'")&&(n.stringType=t.peek(),t.next(),n.inString=!0),t.sol()&&n.inArray===0&&(n.lhs=!0),n.inString){for(;n.inString&&!t.eol();)t.peek()===n.stringType?(t.next(),n.inString=!1):t.peek()==="\\"?(t.next(),t.next()):t.match(/^.[^\\\"\']*/);return n.lhs?"property string":"string"}else{if(n.inArray&&t.peek()==="]")return t.next(),n.inArray--,"bracket";if(n.lhs&&t.peek()==="["&&t.skipTo("]"))return t.next(),t.peek()==="]"&&t.next(),"atom";if(t.peek()==="#")return t.skipToEnd(),"comment";if(t.eatSpace())return null;if(n.lhs&&t.eatWhile(function(l){return l!="="&&l!=" "}))return"property";if(n.lhs&&t.peek()==="=")return t.next(),n.lhs=!1,null;if(!n.lhs&&t.match(/^\d\d\d\d[\d\-\:\.T]*Z/))return"atom";if(!n.lhs&&(t.match("true")||t.match("false")))return"atom";if(!n.lhs&&t.peek()==="[")return n.inArray++,t.next(),"bracket";if(!n.lhs&&t.match(/^\-?\d+(?:\.\d+)?/))return"number";t.eatSpace()||t.next()}return null}}}),i.defineMIME("text/x-toml","toml")})});var nh=Fe((th,rh)=>{(function(i){typeof th=="object"&&typeof rh=="object"?i(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("vbscript",function(t,n){var l="error";function c(me){return new RegExp("^(("+me.join(")|(")+"))\\b","i")}var d=new RegExp("^[\\+\\-\\*/&\\\\\\^<>=]"),a=new RegExp("^((<>)|(<=)|(>=))"),h=new RegExp("^[\\.,]"),f=new RegExp("^[\\(\\)]"),p=new RegExp("^[A-Za-z][_A-Za-z0-9]*"),y=["class","sub","select","while","if","function","property","with","for"],g=["else","elseif","case"],v=["next","loop","wend"],b=c(["and","or","not","xor","is","mod","eqv","imp"]),k=["dim","redim","then","until","randomize","byval","byref","new","property","exit","in","const","private","public","get","set","let","stop","on error resume next","on error goto 0","option explicit","call","me"],_=["true","false","nothing","empty","null"],w=["abs","array","asc","atn","cbool","cbyte","ccur","cdate","cdbl","chr","cint","clng","cos","csng","cstr","date","dateadd","datediff","datepart","dateserial","datevalue","day","escape","eval","execute","exp","filter","formatcurrency","formatdatetime","formatnumber","formatpercent","getlocale","getobject","getref","hex","hour","inputbox","instr","instrrev","int","fix","isarray","isdate","isempty","isnull","isnumeric","isobject","join","lbound","lcase","left","len","loadpicture","log","ltrim","rtrim","trim","maths","mid","minute","month","monthname","msgbox","now","oct","replace","rgb","right","rnd","round","scriptengine","scriptenginebuildversion","scriptenginemajorversion","scriptengineminorversion","second","setlocale","sgn","sin","space","split","sqr","strcomp","string","strreverse","tan","time","timer","timeserial","timevalue","typename","ubound","ucase","unescape","vartype","weekday","weekdayname","year"],I=["vbBlack","vbRed","vbGreen","vbYellow","vbBlue","vbMagenta","vbCyan","vbWhite","vbBinaryCompare","vbTextCompare","vbSunday","vbMonday","vbTuesday","vbWednesday","vbThursday","vbFriday","vbSaturday","vbUseSystemDayOfWeek","vbFirstJan1","vbFirstFourDays","vbFirstFullWeek","vbGeneralDate","vbLongDate","vbShortDate","vbLongTime","vbShortTime","vbObjectError","vbOKOnly","vbOKCancel","vbAbortRetryIgnore","vbYesNoCancel","vbYesNo","vbRetryCancel","vbCritical","vbQuestion","vbExclamation","vbInformation","vbDefaultButton1","vbDefaultButton2","vbDefaultButton3","vbDefaultButton4","vbApplicationModal","vbSystemModal","vbOK","vbCancel","vbAbort","vbRetry","vbIgnore","vbYes","vbNo","vbCr","VbCrLf","vbFormFeed","vbLf","vbNewLine","vbNullChar","vbNullString","vbTab","vbVerticalTab","vbUseDefault","vbTrue","vbFalse","vbEmpty","vbNull","vbInteger","vbLong","vbSingle","vbDouble","vbCurrency","vbDate","vbString","vbObject","vbError","vbBoolean","vbVariant","vbDataObject","vbDecimal","vbByte","vbArray"],S=["WScript","err","debug","RegExp"],R=["description","firstindex","global","helpcontext","helpfile","ignorecase","length","number","pattern","source","value","count"],O=["clear","execute","raise","replace","test","write","writeline","close","open","state","eof","update","addnew","end","createobject","quit"],U=["server","response","request","session","application"],$=["buffer","cachecontrol","charset","contenttype","expires","expiresabsolute","isclientconnected","pics","status","clientcertificate","cookies","form","querystring","servervariables","totalbytes","contents","staticobjects","codepage","lcid","sessionid","timeout","scripttimeout"],J=["addheader","appendtolog","binarywrite","end","flush","redirect","binaryread","remove","removeall","lock","unlock","abandon","getlasterror","htmlencode","mappath","transfer","urlencode"],K=O.concat(R);S=S.concat(I),t.isASP&&(S=S.concat(U),K=K.concat(J,$));var X=c(k),G=c(_),q=c(w),T=c(S),A=c(K),j='"',te=c(y),F=c(g),z=c(v),se=c(["end"]),be=c(["do"]),W=c(["on error resume next","exit"]),M=c(["rem"]);function we(me,ke){ke.currentIndent++}function Pe(me,ke){ke.currentIndent--}function ve(me,ke){if(me.eatSpace())return"space";var Ue=me.peek();if(Ue==="'"||me.match(M))return me.skipToEnd(),"comment";if(me.match(/^((&H)|(&O))?[0-9\.]/i,!1)&&!me.match(/^((&H)|(&O))?[0-9\.]+[a-z_]/i,!1)){var at=!1;if((me.match(/^\d*\.\d+/i)||me.match(/^\d+\.\d*/)||me.match(/^\.\d+/))&&(at=!0),at)return me.eat(/J/i),"number";var gt=!1;if(me.match(/^&H[0-9a-f]+/i)||me.match(/^&O[0-7]+/i)?gt=!0:me.match(/^[1-9]\d*F?/)?(me.eat(/J/i),gt=!0):me.match(/^0(?![\dx])/i)&&(gt=!0),gt)return me.eat(/L/i),"number"}return me.match(j)?(ke.tokenize=Ee(me.current()),ke.tokenize(me,ke)):me.match(a)||me.match(d)||me.match(b)?"operator":me.match(h)?null:me.match(f)?"bracket":me.match(W)?(ke.doInCurrentLine=!0,"keyword"):me.match(be)?(we(me,ke),ke.doInCurrentLine=!0,"keyword"):me.match(te)?(ke.doInCurrentLine?ke.doInCurrentLine=!1:we(me,ke),"keyword"):me.match(F)?"keyword":me.match(se)?(Pe(me,ke),Pe(me,ke),"keyword"):me.match(z)?(ke.doInCurrentLine?ke.doInCurrentLine=!1:Pe(me,ke),"keyword"):me.match(X)?"keyword":me.match(G)?"atom":me.match(A)?"variable-2":me.match(q)?"builtin":me.match(T)?"variable-2":me.match(p)?"variable":(me.next(),l)}function Ee(me){var ke=me.length==1,Ue="string";return function(at,gt){for(;!at.eol();){if(at.eatWhile(/[^'"]/),at.match(me))return gt.tokenize=ve,Ue;at.eat(/['"]/)}if(ke){if(n.singleLineStringErrors)return l;gt.tokenize=ve}return Ue}}function ze(me,ke){var Ue=ke.tokenize(me,ke),at=me.current();return at==="."?(Ue=ke.tokenize(me,ke),at=me.current(),Ue&&(Ue.substr(0,8)==="variable"||Ue==="builtin"||Ue==="keyword")?((Ue==="builtin"||Ue==="keyword")&&(Ue="variable"),K.indexOf(at.substr(1))>-1&&(Ue="variable-2"),Ue):l):Ue}var qe={electricChars:"dDpPtTfFeE ",startState:function(){return{tokenize:ve,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:!1,ignoreKeyword:!1}},token:function(me,ke){me.sol()&&(ke.currentIndent+=ke.nextLineIndent,ke.nextLineIndent=0,ke.doInCurrentLine=0);var Ue=ze(me,ke);return ke.lastToken={style:Ue,content:me.current()},Ue==="space"&&(Ue=null),Ue},indent:function(me,ke){var Ue=ke.replace(/^\s+|\s+$/g,"");return Ue.match(z)||Ue.match(se)||Ue.match(F)?t.indentUnit*(me.currentIndent-1):me.currentIndent<0?0:me.currentIndent*t.indentUnit}};return qe}),i.defineMIME("text/vbscript","vbscript")})});var ah=Fe((ih,oh)=>{(function(i){typeof ih=="object"&&typeof oh=="object"?i(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("yaml",function(){var t=["true","false","on","off","yes","no"],n=new RegExp("\\b(("+t.join(")|(")+"))$","i");return{token:function(l,c){var d=l.peek(),a=c.escaped;if(c.escaped=!1,d=="#"&&(l.pos==0||/\s/.test(l.string.charAt(l.pos-1))))return l.skipToEnd(),"comment";if(l.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/))return"string";if(c.literal&&l.indentation()>c.keyCol)return l.skipToEnd(),"string";if(c.literal&&(c.literal=!1),l.sol()){if(c.keyCol=0,c.pair=!1,c.pairStart=!1,l.match("---")||l.match("..."))return"def";if(l.match(/\s*-\s+/))return"meta"}if(l.match(/^(\{|\}|\[|\])/))return d=="{"?c.inlinePairs++:d=="}"?c.inlinePairs--:d=="["?c.inlineList++:c.inlineList--,"meta";if(c.inlineList>0&&!a&&d==",")return l.next(),"meta";if(c.inlinePairs>0&&!a&&d==",")return c.keyCol=0,c.pair=!1,c.pairStart=!1,l.next(),"meta";if(c.pairStart){if(l.match(/^\s*(\||\>)\s*/))return c.literal=!0,"meta";if(l.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i))return"variable-2";if(c.inlinePairs==0&&l.match(/^\s*-?[0-9\.\,]+\s?$/)||c.inlinePairs>0&&l.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/))return"number";if(l.match(n))return"keyword"}return!c.pair&&l.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^,\[\]{}#&*!|>'"%@`])[^#]*?(?=\s*:($|\s))/)?(c.pair=!0,c.keyCol=l.indentation(),"atom"):c.pair&&l.match(/^:\s*/)?(c.pairStart=!0,"meta"):(c.pairStart=!1,c.escaped=d=="\\",l.next(),null)},startState:function(){return{pair:!1,pairStart:!1,keyCol:0,inlinePairs:0,inlineList:0,literal:!1,escaped:!1}},lineComment:"#",fold:"indent"}}),i.defineMIME("text/x-yaml","yaml"),i.defineMIME("text/yaml","yaml")})});var uh=Fe((sh,lh)=>{(function(i){typeof sh=="object"&&typeof lh=="object"?i(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineOption("scrollPastEnd",!1,function(l,c,d){d&&d!=i.Init&&(l.off("change",t),l.off("refresh",n),l.display.lineSpace.parentNode.style.paddingBottom="",l.state.scrollPastEndPadding=null),c&&(l.on("change",t),l.on("refresh",n),n(l))});function t(l,c){i.changeEnd(c).line==l.lastLine()&&n(l)}function n(l){var c="";if(l.lineCount()>1){var d=l.display.scroller.clientHeight-30,a=l.getLineHandle(l.lastLine()).height;c=d-a+"px"}l.state.scrollPastEndPadding!=c&&(l.state.scrollPastEndPadding=c,l.display.lineSpace.parentNode.style.paddingBottom=c,l.off("refresh",n),l.setSize(),l.on("refresh",n))}})});var Th=Fe((ka,il)=>{(function(t,n){if(typeof ka=="object"&&typeof il=="object")il.exports=n();else if(typeof define=="function"&&define.amd)define([],n);else{var l=n();for(var c in l)(typeof ka=="object"?ka:t)[c]=l[c]}})(self,function(){return function(){var i={3099:function(c){c.exports=function(d){if(typeof d!="function")throw TypeError(String(d)+" is not a function");return d}},6077:function(c,d,a){var h=a(111);c.exports=function(f){if(!h(f)&&f!==null)throw TypeError("Can't set "+String(f)+" as a prototype");return f}},1223:function(c,d,a){var h=a(5112),f=a(30),p=a(3070),y=h("unscopables"),g=Array.prototype;g[y]==null&&p.f(g,y,{configurable:!0,value:f(null)}),c.exports=function(v){g[y][v]=!0}},1530:function(c,d,a){"use strict";var h=a(8710).charAt;c.exports=function(f,p,y){return p+(y?h(f,p).length:1)}},5787:function(c){c.exports=function(d,a,h){if(!(d instanceof a))throw TypeError("Incorrect "+(h?h+" ":"")+"invocation");return d}},9670:function(c,d,a){var h=a(111);c.exports=function(f){if(!h(f))throw TypeError(String(f)+" is not an object");return f}},4019:function(c){c.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},260:function(c,d,a){"use strict";var h=a(4019),f=a(9781),p=a(7854),y=a(111),g=a(6656),v=a(648),b=a(8880),k=a(1320),_=a(3070).f,w=a(9518),I=a(7674),S=a(5112),R=a(9711),O=p.Int8Array,U=O&&O.prototype,$=p.Uint8ClampedArray,J=$&&$.prototype,K=O&&w(O),X=U&&w(U),G=Object.prototype,q=G.isPrototypeOf,T=S("toStringTag"),A=R("TYPED_ARRAY_TAG"),j=h&&!!I&&v(p.opera)!=="Opera",te=!1,F,z={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},se={BigInt64Array:8,BigUint64Array:8},be=function(ze){if(!y(ze))return!1;var qe=v(ze);return qe==="DataView"||g(z,qe)||g(se,qe)},W=function(Ee){if(!y(Ee))return!1;var ze=v(Ee);return g(z,ze)||g(se,ze)},M=function(Ee){if(W(Ee))return Ee;throw TypeError("Target is not a typed array")},we=function(Ee){if(I){if(q.call(K,Ee))return Ee}else for(var ze in z)if(g(z,F)){var qe=p[ze];if(qe&&(Ee===qe||q.call(qe,Ee)))return Ee}throw TypeError("Target is not a typed array constructor")},Pe=function(Ee,ze,qe){if(!!f){if(qe)for(var me in z){var ke=p[me];ke&&g(ke.prototype,Ee)&&delete ke.prototype[Ee]}(!X[Ee]||qe)&&k(X,Ee,qe?ze:j&&U[Ee]||ze)}},ve=function(Ee,ze,qe){var me,ke;if(!!f){if(I){if(qe)for(me in z)ke=p[me],ke&&g(ke,Ee)&&delete ke[Ee];if(!K[Ee]||qe)try{return k(K,Ee,qe?ze:j&&O[Ee]||ze)}catch(Ue){}else return}for(me in z)ke=p[me],ke&&(!ke[Ee]||qe)&&k(ke,Ee,ze)}};for(F in z)p[F]||(j=!1);if((!j||typeof K!="function"||K===Function.prototype)&&(K=function(){throw TypeError("Incorrect invocation")},j))for(F in z)p[F]&&I(p[F],K);if((!j||!X||X===G)&&(X=K.prototype,j))for(F in z)p[F]&&I(p[F].prototype,X);if(j&&w(J)!==X&&I(J,X),f&&!g(X,T)){te=!0,_(X,T,{get:function(){return y(this)?this[A]:void 0}});for(F in z)p[F]&&b(p[F],A,F)}c.exports={NATIVE_ARRAY_BUFFER_VIEWS:j,TYPED_ARRAY_TAG:te&&A,aTypedArray:M,aTypedArrayConstructor:we,exportTypedArrayMethod:Pe,exportTypedArrayStaticMethod:ve,isView:be,isTypedArray:W,TypedArray:K,TypedArrayPrototype:X}},3331:function(c,d,a){"use strict";var h=a(7854),f=a(9781),p=a(4019),y=a(8880),g=a(2248),v=a(7293),b=a(5787),k=a(9958),_=a(7466),w=a(7067),I=a(1179),S=a(9518),R=a(7674),O=a(8006).f,U=a(3070).f,$=a(1285),J=a(8003),K=a(9909),X=K.get,G=K.set,q="ArrayBuffer",T="DataView",A="prototype",j="Wrong length",te="Wrong index",F=h[q],z=F,se=h[T],be=se&&se[A],W=Object.prototype,M=h.RangeError,we=I.pack,Pe=I.unpack,ve=function(_e){return[_e&255]},Ee=function(_e){return[_e&255,_e>>8&255]},ze=function(_e){return[_e&255,_e>>8&255,_e>>16&255,_e>>24&255]},qe=function(_e){return _e[3]<<24|_e[2]<<16|_e[1]<<8|_e[0]},me=function(_e){return we(_e,23,4)},ke=function(_e){return we(_e,52,8)},Ue=function(_e,Y){U(_e[A],Y,{get:function(){return X(this)[Y]}})},at=function(_e,Y,fe,le){var it=w(fe),Ne=X(_e);if(it+Y>Ne.byteLength)throw M(te);var ot=X(Ne.buffer).bytes,Ye=it+Ne.byteOffset,Je=ot.slice(Ye,Ye+Y);return le?Je:Je.reverse()},gt=function(_e,Y,fe,le,it,Ne){var ot=w(fe),Ye=X(_e);if(ot+Y>Ye.byteLength)throw M(te);for(var Je=X(Ye.buffer).bytes,We=ot+Ye.byteOffset,qt=le(+it),Lt=0;Ltit)throw M("Wrong offset");if(le=le===void 0?it-Ne:_(le),Ne+le>it)throw M(j);G(this,{buffer:Y,byteLength:le,byteOffset:Ne}),f||(this.buffer=Y,this.byteLength=le,this.byteOffset=Ne)},f&&(Ue(z,"byteLength"),Ue(se,"buffer"),Ue(se,"byteLength"),Ue(se,"byteOffset")),g(se[A],{getInt8:function(Y){return at(this,1,Y)[0]<<24>>24},getUint8:function(Y){return at(this,1,Y)[0]},getInt16:function(Y){var fe=at(this,2,Y,arguments.length>1?arguments[1]:void 0);return(fe[1]<<8|fe[0])<<16>>16},getUint16:function(Y){var fe=at(this,2,Y,arguments.length>1?arguments[1]:void 0);return fe[1]<<8|fe[0]},getInt32:function(Y){return qe(at(this,4,Y,arguments.length>1?arguments[1]:void 0))},getUint32:function(Y){return qe(at(this,4,Y,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(Y){return Pe(at(this,4,Y,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(Y){return Pe(at(this,8,Y,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(Y,fe){gt(this,1,Y,ve,fe)},setUint8:function(Y,fe){gt(this,1,Y,ve,fe)},setInt16:function(Y,fe){gt(this,2,Y,Ee,fe,arguments.length>2?arguments[2]:void 0)},setUint16:function(Y,fe){gt(this,2,Y,Ee,fe,arguments.length>2?arguments[2]:void 0)},setInt32:function(Y,fe){gt(this,4,Y,ze,fe,arguments.length>2?arguments[2]:void 0)},setUint32:function(Y,fe){gt(this,4,Y,ze,fe,arguments.length>2?arguments[2]:void 0)},setFloat32:function(Y,fe){gt(this,4,Y,me,fe,arguments.length>2?arguments[2]:void 0)},setFloat64:function(Y,fe){gt(this,8,Y,ke,fe,arguments.length>2?arguments[2]:void 0)}});else{if(!v(function(){F(1)})||!v(function(){new F(-1)})||v(function(){return new F,new F(1.5),new F(NaN),F.name!=q})){z=function(Y){return b(this,z),new F(w(Y))};for(var Re=z[A]=F[A],Ie=O(F),Be=0,Ge;Ie.length>Be;)(Ge=Ie[Be++])in z||y(z,Ge,F[Ge]);Re.constructor=z}R&&S(be)!==W&&R(be,W);var He=new se(new z(2)),Qe=be.setInt8;He.setInt8(0,2147483648),He.setInt8(1,2147483649),(He.getInt8(0)||!He.getInt8(1))&&g(be,{setInt8:function(Y,fe){Qe.call(this,Y,fe<<24>>24)},setUint8:function(Y,fe){Qe.call(this,Y,fe<<24>>24)}},{unsafe:!0})}J(z,q),J(se,T),c.exports={ArrayBuffer:z,DataView:se}},1048:function(c,d,a){"use strict";var h=a(7908),f=a(1400),p=a(7466),y=Math.min;c.exports=[].copyWithin||function(v,b){var k=h(this),_=p(k.length),w=f(v,_),I=f(b,_),S=arguments.length>2?arguments[2]:void 0,R=y((S===void 0?_:f(S,_))-I,_-w),O=1;for(I0;)I in k?k[w]=k[I]:delete k[w],w+=O,I+=O;return k}},1285:function(c,d,a){"use strict";var h=a(7908),f=a(1400),p=a(7466);c.exports=function(g){for(var v=h(this),b=p(v.length),k=arguments.length,_=f(k>1?arguments[1]:void 0,b),w=k>2?arguments[2]:void 0,I=w===void 0?b:f(w,b);I>_;)v[_++]=g;return v}},8533:function(c,d,a){"use strict";var h=a(2092).forEach,f=a(9341),p=f("forEach");c.exports=p?[].forEach:function(g){return h(this,g,arguments.length>1?arguments[1]:void 0)}},8457:function(c,d,a){"use strict";var h=a(9974),f=a(7908),p=a(3411),y=a(7659),g=a(7466),v=a(6135),b=a(1246);c.exports=function(_){var w=f(_),I=typeof this=="function"?this:Array,S=arguments.length,R=S>1?arguments[1]:void 0,O=R!==void 0,U=b(w),$=0,J,K,X,G,q,T;if(O&&(R=h(R,S>2?arguments[2]:void 0,2)),U!=null&&!(I==Array&&y(U)))for(G=U.call(w),q=G.next,K=new I;!(X=q.call(G)).done;$++)T=O?p(G,R,[X.value,$],!0):X.value,v(K,$,T);else for(J=g(w.length),K=new I(J);J>$;$++)T=O?R(w[$],$):w[$],v(K,$,T);return K.length=$,K}},1318:function(c,d,a){var h=a(5656),f=a(7466),p=a(1400),y=function(g){return function(v,b,k){var _=h(v),w=f(_.length),I=p(k,w),S;if(g&&b!=b){for(;w>I;)if(S=_[I++],S!=S)return!0}else for(;w>I;I++)if((g||I in _)&&_[I]===b)return g||I||0;return!g&&-1}};c.exports={includes:y(!0),indexOf:y(!1)}},2092:function(c,d,a){var h=a(9974),f=a(8361),p=a(7908),y=a(7466),g=a(5417),v=[].push,b=function(k){var _=k==1,w=k==2,I=k==3,S=k==4,R=k==6,O=k==7,U=k==5||R;return function($,J,K,X){for(var G=p($),q=f(G),T=h(J,K,3),A=y(q.length),j=0,te=X||g,F=_?te($,A):w||O?te($,0):void 0,z,se;A>j;j++)if((U||j in q)&&(z=q[j],se=T(z,j,G),k))if(_)F[j]=se;else if(se)switch(k){case 3:return!0;case 5:return z;case 6:return j;case 2:v.call(F,z)}else switch(k){case 4:return!1;case 7:v.call(F,z)}return R?-1:I||S?S:F}};c.exports={forEach:b(0),map:b(1),filter:b(2),some:b(3),every:b(4),find:b(5),findIndex:b(6),filterOut:b(7)}},6583:function(c,d,a){"use strict";var h=a(5656),f=a(9958),p=a(7466),y=a(9341),g=Math.min,v=[].lastIndexOf,b=!!v&&1/[1].lastIndexOf(1,-0)<0,k=y("lastIndexOf"),_=b||!k;c.exports=_?function(I){if(b)return v.apply(this,arguments)||0;var S=h(this),R=p(S.length),O=R-1;for(arguments.length>1&&(O=g(O,f(arguments[1]))),O<0&&(O=R+O);O>=0;O--)if(O in S&&S[O]===I)return O||0;return-1}:v},1194:function(c,d,a){var h=a(7293),f=a(5112),p=a(7392),y=f("species");c.exports=function(g){return p>=51||!h(function(){var v=[],b=v.constructor={};return b[y]=function(){return{foo:1}},v[g](Boolean).foo!==1})}},9341:function(c,d,a){"use strict";var h=a(7293);c.exports=function(f,p){var y=[][f];return!!y&&h(function(){y.call(null,p||function(){throw 1},1)})}},3671:function(c,d,a){var h=a(3099),f=a(7908),p=a(8361),y=a(7466),g=function(v){return function(b,k,_,w){h(k);var I=f(b),S=p(I),R=y(I.length),O=v?R-1:0,U=v?-1:1;if(_<2)for(;;){if(O in S){w=S[O],O+=U;break}if(O+=U,v?O<0:R<=O)throw TypeError("Reduce of empty array with no initial value")}for(;v?O>=0:R>O;O+=U)O in S&&(w=k(w,S[O],O,I));return w}};c.exports={left:g(!1),right:g(!0)}},5417:function(c,d,a){var h=a(111),f=a(3157),p=a(5112),y=p("species");c.exports=function(g,v){var b;return f(g)&&(b=g.constructor,typeof b=="function"&&(b===Array||f(b.prototype))?b=void 0:h(b)&&(b=b[y],b===null&&(b=void 0))),new(b===void 0?Array:b)(v===0?0:v)}},3411:function(c,d,a){var h=a(9670),f=a(9212);c.exports=function(p,y,g,v){try{return v?y(h(g)[0],g[1]):y(g)}catch(b){throw f(p),b}}},7072:function(c,d,a){var h=a(5112),f=h("iterator"),p=!1;try{var y=0,g={next:function(){return{done:!!y++}},return:function(){p=!0}};g[f]=function(){return this},Array.from(g,function(){throw 2})}catch(v){}c.exports=function(v,b){if(!b&&!p)return!1;var k=!1;try{var _={};_[f]=function(){return{next:function(){return{done:k=!0}}}},v(_)}catch(w){}return k}},4326:function(c){var d={}.toString;c.exports=function(a){return d.call(a).slice(8,-1)}},648:function(c,d,a){var h=a(1694),f=a(4326),p=a(5112),y=p("toStringTag"),g=f(function(){return arguments}())=="Arguments",v=function(b,k){try{return b[k]}catch(_){}};c.exports=h?f:function(b){var k,_,w;return b===void 0?"Undefined":b===null?"Null":typeof(_=v(k=Object(b),y))=="string"?_:g?f(k):(w=f(k))=="Object"&&typeof k.callee=="function"?"Arguments":w}},9920:function(c,d,a){var h=a(6656),f=a(3887),p=a(1236),y=a(3070);c.exports=function(g,v){for(var b=f(v),k=y.f,_=p.f,w=0;w=74)&&(v=f.match(/Chrome\/(\d+)/),v&&(b=v[1]))),c.exports=b&&+b},748:function(c){c.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(c,d,a){var h=a(7854),f=a(1236).f,p=a(8880),y=a(1320),g=a(3505),v=a(9920),b=a(4705);c.exports=function(k,_){var w=k.target,I=k.global,S=k.stat,R,O,U,$,J,K;if(I?O=h:S?O=h[w]||g(w,{}):O=(h[w]||{}).prototype,O)for(U in _){if(J=_[U],k.noTargetGet?(K=f(O,U),$=K&&K.value):$=O[U],R=b(I?U:w+(S?".":"#")+U,k.forced),!R&&$!==void 0){if(typeof J==typeof $)continue;v(J,$)}(k.sham||$&&$.sham)&&p(J,"sham",!0),y(O,U,J,k)}}},7293:function(c){c.exports=function(d){try{return!!d()}catch(a){return!0}}},7007:function(c,d,a){"use strict";a(4916);var h=a(1320),f=a(7293),p=a(5112),y=a(2261),g=a(8880),v=p("species"),b=!f(function(){var S=/./;return S.exec=function(){var R=[];return R.groups={a:"7"},R},"".replace(S,"$")!=="7"}),k=function(){return"a".replace(/./,"$0")==="$0"}(),_=p("replace"),w=function(){return/./[_]?/./[_]("a","$0")==="":!1}(),I=!f(function(){var S=/(?:)/,R=S.exec;S.exec=function(){return R.apply(this,arguments)};var O="ab".split(S);return O.length!==2||O[0]!=="a"||O[1]!=="b"});c.exports=function(S,R,O,U){var $=p(S),J=!f(function(){var A={};return A[$]=function(){return 7},""[S](A)!=7}),K=J&&!f(function(){var A=!1,j=/a/;return S==="split"&&(j={},j.constructor={},j.constructor[v]=function(){return j},j.flags="",j[$]=/./[$]),j.exec=function(){return A=!0,null},j[$](""),!A});if(!J||!K||S==="replace"&&!(b&&k&&!w)||S==="split"&&!I){var X=/./[$],G=O($,""[S],function(A,j,te,F,z){return j.exec===y?J&&!z?{done:!0,value:X.call(j,te,F)}:{done:!0,value:A.call(te,j,F)}:{done:!1}},{REPLACE_KEEPS_$0:k,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:w}),q=G[0],T=G[1];h(String.prototype,S,q),h(RegExp.prototype,$,R==2?function(A,j){return T.call(A,this,j)}:function(A){return T.call(A,this)})}U&&g(RegExp.prototype[$],"sham",!0)}},9974:function(c,d,a){var h=a(3099);c.exports=function(f,p,y){if(h(f),p===void 0)return f;switch(y){case 0:return function(){return f.call(p)};case 1:return function(g){return f.call(p,g)};case 2:return function(g,v){return f.call(p,g,v)};case 3:return function(g,v,b){return f.call(p,g,v,b)}}return function(){return f.apply(p,arguments)}}},5005:function(c,d,a){var h=a(857),f=a(7854),p=function(y){return typeof y=="function"?y:void 0};c.exports=function(y,g){return arguments.length<2?p(h[y])||p(f[y]):h[y]&&h[y][g]||f[y]&&f[y][g]}},1246:function(c,d,a){var h=a(648),f=a(7497),p=a(5112),y=p("iterator");c.exports=function(g){if(g!=null)return g[y]||g["@@iterator"]||f[h(g)]}},8554:function(c,d,a){var h=a(9670),f=a(1246);c.exports=function(p){var y=f(p);if(typeof y!="function")throw TypeError(String(p)+" is not iterable");return h(y.call(p))}},647:function(c,d,a){var h=a(7908),f=Math.floor,p="".replace,y=/\$([$&'`]|\d\d?|<[^>]*>)/g,g=/\$([$&'`]|\d\d?)/g;c.exports=function(v,b,k,_,w,I){var S=k+v.length,R=_.length,O=g;return w!==void 0&&(w=h(w),O=y),p.call(I,O,function(U,$){var J;switch($.charAt(0)){case"$":return"$";case"&":return v;case"`":return b.slice(0,k);case"'":return b.slice(S);case"<":J=w[$.slice(1,-1)];break;default:var K=+$;if(K===0)return U;if(K>R){var X=f(K/10);return X===0?U:X<=R?_[X-1]===void 0?$.charAt(1):_[X-1]+$.charAt(1):U}J=_[K-1]}return J===void 0?"":J})}},7854:function(c,d,a){var h=function(f){return f&&f.Math==Math&&f};c.exports=h(typeof globalThis=="object"&&globalThis)||h(typeof window=="object"&&window)||h(typeof self=="object"&&self)||h(typeof a.g=="object"&&a.g)||function(){return this}()||Function("return this")()},6656:function(c){var d={}.hasOwnProperty;c.exports=function(a,h){return d.call(a,h)}},3501:function(c){c.exports={}},490:function(c,d,a){var h=a(5005);c.exports=h("document","documentElement")},4664:function(c,d,a){var h=a(9781),f=a(7293),p=a(317);c.exports=!h&&!f(function(){return Object.defineProperty(p("div"),"a",{get:function(){return 7}}).a!=7})},1179:function(c){var d=Math.abs,a=Math.pow,h=Math.floor,f=Math.log,p=Math.LN2,y=function(v,b,k){var _=new Array(k),w=k*8-b-1,I=(1<>1,R=b===23?a(2,-24)-a(2,-77):0,O=v<0||v===0&&1/v<0?1:0,U=0,$,J,K;for(v=d(v),v!=v||v===Infinity?(J=v!=v?1:0,$=I):($=h(f(v)/p),v*(K=a(2,-$))<1&&($--,K*=2),$+S>=1?v+=R/K:v+=R*a(2,1-S),v*K>=2&&($++,K/=2),$+S>=I?(J=0,$=I):$+S>=1?(J=(v*K-1)*a(2,b),$=$+S):(J=v*a(2,S-1)*a(2,b),$=0));b>=8;_[U++]=J&255,J/=256,b-=8);for($=$<0;_[U++]=$&255,$/=256,w-=8);return _[--U]|=O*128,_},g=function(v,b){var k=v.length,_=k*8-b-1,w=(1<<_)-1,I=w>>1,S=_-7,R=k-1,O=v[R--],U=O&127,$;for(O>>=7;S>0;U=U*256+v[R],R--,S-=8);for($=U&(1<<-S)-1,U>>=-S,S+=b;S>0;$=$*256+v[R],R--,S-=8);if(U===0)U=1-I;else{if(U===w)return $?NaN:O?-Infinity:Infinity;$=$+a(2,b),U=U-I}return(O?-1:1)*$*a(2,U-b)};c.exports={pack:y,unpack:g}},8361:function(c,d,a){var h=a(7293),f=a(4326),p="".split;c.exports=h(function(){return!Object("z").propertyIsEnumerable(0)})?function(y){return f(y)=="String"?p.call(y,""):Object(y)}:Object},9587:function(c,d,a){var h=a(111),f=a(7674);c.exports=function(p,y,g){var v,b;return f&&typeof(v=y.constructor)=="function"&&v!==g&&h(b=v.prototype)&&b!==g.prototype&&f(p,b),p}},2788:function(c,d,a){var h=a(5465),f=Function.toString;typeof h.inspectSource!="function"&&(h.inspectSource=function(p){return f.call(p)}),c.exports=h.inspectSource},9909:function(c,d,a){var h=a(8536),f=a(7854),p=a(111),y=a(8880),g=a(6656),v=a(5465),b=a(6200),k=a(3501),_=f.WeakMap,w,I,S,R=function(G){return S(G)?I(G):w(G,{})},O=function(G){return function(q){var T;if(!p(q)||(T=I(q)).type!==G)throw TypeError("Incompatible receiver, "+G+" required");return T}};if(h){var U=v.state||(v.state=new _),$=U.get,J=U.has,K=U.set;w=function(G,q){return q.facade=G,K.call(U,G,q),q},I=function(G){return $.call(U,G)||{}},S=function(G){return J.call(U,G)}}else{var X=b("state");k[X]=!0,w=function(G,q){return q.facade=G,y(G,X,q),q},I=function(G){return g(G,X)?G[X]:{}},S=function(G){return g(G,X)}}c.exports={set:w,get:I,has:S,enforce:R,getterFor:O}},7659:function(c,d,a){var h=a(5112),f=a(7497),p=h("iterator"),y=Array.prototype;c.exports=function(g){return g!==void 0&&(f.Array===g||y[p]===g)}},3157:function(c,d,a){var h=a(4326);c.exports=Array.isArray||function(p){return h(p)=="Array"}},4705:function(c,d,a){var h=a(7293),f=/#|\.prototype\./,p=function(k,_){var w=g[y(k)];return w==b?!0:w==v?!1:typeof _=="function"?h(_):!!_},y=p.normalize=function(k){return String(k).replace(f,".").toLowerCase()},g=p.data={},v=p.NATIVE="N",b=p.POLYFILL="P";c.exports=p},111:function(c){c.exports=function(d){return typeof d=="object"?d!==null:typeof d=="function"}},1913:function(c){c.exports=!1},7850:function(c,d,a){var h=a(111),f=a(4326),p=a(5112),y=p("match");c.exports=function(g){var v;return h(g)&&((v=g[y])!==void 0?!!v:f(g)=="RegExp")}},9212:function(c,d,a){var h=a(9670);c.exports=function(f){var p=f.return;if(p!==void 0)return h(p.call(f)).value}},3383:function(c,d,a){"use strict";var h=a(7293),f=a(9518),p=a(8880),y=a(6656),g=a(5112),v=a(1913),b=g("iterator"),k=!1,_=function(){return this},w,I,S;[].keys&&(S=[].keys(),"next"in S?(I=f(f(S)),I!==Object.prototype&&(w=I)):k=!0);var R=w==null||h(function(){var O={};return w[b].call(O)!==O});R&&(w={}),(!v||R)&&!y(w,b)&&p(w,b,_),c.exports={IteratorPrototype:w,BUGGY_SAFARI_ITERATORS:k}},7497:function(c){c.exports={}},133:function(c,d,a){var h=a(7293);c.exports=!!Object.getOwnPropertySymbols&&!h(function(){return!String(Symbol())})},590:function(c,d,a){var h=a(7293),f=a(5112),p=a(1913),y=f("iterator");c.exports=!h(function(){var g=new URL("b?a=1&b=2&c=3","http://a"),v=g.searchParams,b="";return g.pathname="c%20d",v.forEach(function(k,_){v.delete("b"),b+=_+k}),p&&!g.toJSON||!v.sort||g.href!=="http://a/c%20d?a=1&c=3"||v.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!v[y]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("http://\u0442\u0435\u0441\u0442").host!=="xn--e1aybc"||new URL("http://a#\u0431").hash!=="#%D0%B1"||b!=="a1c3"||new URL("http://x",void 0).host!=="x"})},8536:function(c,d,a){var h=a(7854),f=a(2788),p=h.WeakMap;c.exports=typeof p=="function"&&/native code/.test(f(p))},1574:function(c,d,a){"use strict";var h=a(9781),f=a(7293),p=a(1956),y=a(5181),g=a(5296),v=a(7908),b=a(8361),k=Object.assign,_=Object.defineProperty;c.exports=!k||f(function(){if(h&&k({b:1},k(_({},"a",{enumerable:!0,get:function(){_(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var w={},I={},S=Symbol(),R="abcdefghijklmnopqrst";return w[S]=7,R.split("").forEach(function(O){I[O]=O}),k({},w)[S]!=7||p(k({},I)).join("")!=R})?function(I,S){for(var R=v(I),O=arguments.length,U=1,$=y.f,J=g.f;O>U;)for(var K=b(arguments[U++]),X=$?p(K).concat($(K)):p(K),G=X.length,q=0,T;G>q;)T=X[q++],(!h||J.call(K,T))&&(R[T]=K[T]);return R}:k},30:function(c,d,a){var h=a(9670),f=a(6048),p=a(748),y=a(3501),g=a(490),v=a(317),b=a(6200),k=">",_="<",w="prototype",I="script",S=b("IE_PROTO"),R=function(){},O=function(X){return _+I+k+X+_+"/"+I+k},U=function(X){X.write(O("")),X.close();var G=X.parentWindow.Object;return X=null,G},$=function(){var X=v("iframe"),G="java"+I+":",q;return X.style.display="none",g.appendChild(X),X.src=String(G),q=X.contentWindow.document,q.open(),q.write(O("document.F=Object")),q.close(),q.F},J,K=function(){try{J=document.domain&&new ActiveXObject("htmlfile")}catch(G){}K=J?U(J):$();for(var X=p.length;X--;)delete K[w][p[X]];return K()};y[S]=!0,c.exports=Object.create||function(G,q){var T;return G!==null?(R[w]=h(G),T=new R,R[w]=null,T[S]=G):T=K(),q===void 0?T:f(T,q)}},6048:function(c,d,a){var h=a(9781),f=a(3070),p=a(9670),y=a(1956);c.exports=h?Object.defineProperties:function(v,b){p(v);for(var k=y(b),_=k.length,w=0,I;_>w;)f.f(v,I=k[w++],b[I]);return v}},3070:function(c,d,a){var h=a(9781),f=a(4664),p=a(9670),y=a(7593),g=Object.defineProperty;d.f=h?g:function(b,k,_){if(p(b),k=y(k,!0),p(_),f)try{return g(b,k,_)}catch(w){}if("get"in _||"set"in _)throw TypeError("Accessors not supported");return"value"in _&&(b[k]=_.value),b}},1236:function(c,d,a){var h=a(9781),f=a(5296),p=a(9114),y=a(5656),g=a(7593),v=a(6656),b=a(4664),k=Object.getOwnPropertyDescriptor;d.f=h?k:function(w,I){if(w=y(w),I=g(I,!0),b)try{return k(w,I)}catch(S){}if(v(w,I))return p(!f.f.call(w,I),w[I])}},8006:function(c,d,a){var h=a(6324),f=a(748),p=f.concat("length","prototype");d.f=Object.getOwnPropertyNames||function(g){return h(g,p)}},5181:function(c,d){d.f=Object.getOwnPropertySymbols},9518:function(c,d,a){var h=a(6656),f=a(7908),p=a(6200),y=a(8544),g=p("IE_PROTO"),v=Object.prototype;c.exports=y?Object.getPrototypeOf:function(b){return b=f(b),h(b,g)?b[g]:typeof b.constructor=="function"&&b instanceof b.constructor?b.constructor.prototype:b instanceof Object?v:null}},6324:function(c,d,a){var h=a(6656),f=a(5656),p=a(1318).indexOf,y=a(3501);c.exports=function(g,v){var b=f(g),k=0,_=[],w;for(w in b)!h(y,w)&&h(b,w)&&_.push(w);for(;v.length>k;)h(b,w=v[k++])&&(~p(_,w)||_.push(w));return _}},1956:function(c,d,a){var h=a(6324),f=a(748);c.exports=Object.keys||function(y){return h(y,f)}},5296:function(c,d){"use strict";var a={}.propertyIsEnumerable,h=Object.getOwnPropertyDescriptor,f=h&&!a.call({1:2},1);d.f=f?function(y){var g=h(this,y);return!!g&&g.enumerable}:a},7674:function(c,d,a){var h=a(9670),f=a(6077);c.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var p=!1,y={},g;try{g=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,g.call(y,[]),p=y instanceof Array}catch(v){}return function(b,k){return h(b),f(k),p?g.call(b,k):b.__proto__=k,b}}():void 0)},288:function(c,d,a){"use strict";var h=a(1694),f=a(648);c.exports=h?{}.toString:function(){return"[object "+f(this)+"]"}},3887:function(c,d,a){var h=a(5005),f=a(8006),p=a(5181),y=a(9670);c.exports=h("Reflect","ownKeys")||function(v){var b=f.f(y(v)),k=p.f;return k?b.concat(k(v)):b}},857:function(c,d,a){var h=a(7854);c.exports=h},2248:function(c,d,a){var h=a(1320);c.exports=function(f,p,y){for(var g in p)h(f,g,p[g],y);return f}},1320:function(c,d,a){var h=a(7854),f=a(8880),p=a(6656),y=a(3505),g=a(2788),v=a(9909),b=v.get,k=v.enforce,_=String(String).split("String");(c.exports=function(w,I,S,R){var O=R?!!R.unsafe:!1,U=R?!!R.enumerable:!1,$=R?!!R.noTargetGet:!1,J;if(typeof S=="function"&&(typeof I=="string"&&!p(S,"name")&&f(S,"name",I),J=k(S),J.source||(J.source=_.join(typeof I=="string"?I:""))),w===h){U?w[I]=S:y(I,S);return}else O?!$&&w[I]&&(U=!0):delete w[I];U?w[I]=S:f(w,I,S)})(Function.prototype,"toString",function(){return typeof this=="function"&&b(this).source||g(this)})},7651:function(c,d,a){var h=a(4326),f=a(2261);c.exports=function(p,y){var g=p.exec;if(typeof g=="function"){var v=g.call(p,y);if(typeof v!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return v}if(h(p)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return f.call(p,y)}},2261:function(c,d,a){"use strict";var h=a(7066),f=a(2999),p=RegExp.prototype.exec,y=String.prototype.replace,g=p,v=function(){var w=/a/,I=/b*/g;return p.call(w,"a"),p.call(I,"a"),w.lastIndex!==0||I.lastIndex!==0}(),b=f.UNSUPPORTED_Y||f.BROKEN_CARET,k=/()??/.exec("")[1]!==void 0,_=v||k||b;_&&(g=function(I){var S=this,R,O,U,$,J=b&&S.sticky,K=h.call(S),X=S.source,G=0,q=I;return J&&(K=K.replace("y",""),K.indexOf("g")===-1&&(K+="g"),q=String(I).slice(S.lastIndex),S.lastIndex>0&&(!S.multiline||S.multiline&&I[S.lastIndex-1]!==` `)&&(X="(?: "+X+")",q=" "+q,G++),O=new RegExp("^(?:"+X+")",K)),k&&(O=new RegExp("^"+X+"$(?!\\s)",K)),v&&(R=S.lastIndex),U=p.call(J?O:S,q),J?U?(U.input=U.input.slice(G),U[0]=U[0].slice(G),U.index=S.lastIndex,S.lastIndex+=U[0].length):S.lastIndex=0:v&&U&&(S.lastIndex=S.global?U.index+U[0].length:R),k&&U&&U.length>1&&y.call(U[0],O,function(){for($=1;$=_?y?"":void 0:(w=b.charCodeAt(k),w<55296||w>56319||k+1===_||(I=b.charCodeAt(k+1))<56320||I>57343?y?b.charAt(k):w:y?b.slice(k,k+2):(w-55296<<10)+(I-56320)+65536)}};c.exports={codeAt:p(!1),charAt:p(!0)}},3197:function(c){"use strict";var d=2147483647,a=36,h=1,f=26,p=38,y=700,g=72,v=128,b="-",k=/[^\0-\u007E]/,_=/[.\u3002\uFF0E\uFF61]/g,w="Overflow: input needs wider integers to process",I=a-h,S=Math.floor,R=String.fromCharCode,O=function(K){for(var X=[],G=0,q=K.length;G=55296&&T<=56319&&G>1,K+=S(K/X);K>I*f>>1;q+=a)K=S(K/I);return S(q+(I+1)*K/(K+p))},J=function(K){var X=[];K=O(K);var G=K.length,q=v,T=0,A=g,j,te;for(j=0;j=q&&teS((d-T)/be))throw RangeError(w);for(T+=(se-q)*be,q=se,j=0;jd)throw RangeError(w);if(te==q){for(var W=T,M=a;;M+=a){var we=M<=A?h:M>=A+f?f:M-A;if(W0?a:d)(h)}},7466:function(c,d,a){var h=a(9958),f=Math.min;c.exports=function(p){return p>0?f(h(p),9007199254740991):0}},7908:function(c,d,a){var h=a(4488);c.exports=function(f){return Object(h(f))}},4590:function(c,d,a){var h=a(3002);c.exports=function(f,p){var y=h(f);if(y%p)throw RangeError("Wrong offset");return y}},3002:function(c,d,a){var h=a(9958);c.exports=function(f){var p=h(f);if(p<0)throw RangeError("The argument can't be less than 0");return p}},7593:function(c,d,a){var h=a(111);c.exports=function(f,p){if(!h(f))return f;var y,g;if(p&&typeof(y=f.toString)=="function"&&!h(g=y.call(f))||typeof(y=f.valueOf)=="function"&&!h(g=y.call(f))||!p&&typeof(y=f.toString)=="function"&&!h(g=y.call(f)))return g;throw TypeError("Can't convert object to primitive value")}},1694:function(c,d,a){var h=a(5112),f=h("toStringTag"),p={};p[f]="z",c.exports=String(p)==="[object z]"},9843:function(c,d,a){"use strict";var h=a(2109),f=a(7854),p=a(9781),y=a(3832),g=a(260),v=a(3331),b=a(5787),k=a(9114),_=a(8880),w=a(7466),I=a(7067),S=a(4590),R=a(7593),O=a(6656),U=a(648),$=a(111),J=a(30),K=a(7674),X=a(8006).f,G=a(7321),q=a(2092).forEach,T=a(6340),A=a(3070),j=a(1236),te=a(9909),F=a(9587),z=te.get,se=te.set,be=A.f,W=j.f,M=Math.round,we=f.RangeError,Pe=v.ArrayBuffer,ve=v.DataView,Ee=g.NATIVE_ARRAY_BUFFER_VIEWS,ze=g.TYPED_ARRAY_TAG,qe=g.TypedArray,me=g.TypedArrayPrototype,ke=g.aTypedArrayConstructor,Ue=g.isTypedArray,at="BYTES_PER_ELEMENT",gt="Wrong length",Re=function(_e,Y){for(var fe=0,le=Y.length,it=new(ke(_e))(le);le>fe;)it[fe]=Y[fe++];return it},Ie=function(_e,Y){be(_e,Y,{get:function(){return z(this)[Y]}})},Be=function(_e){var Y;return _e instanceof Pe||(Y=U(_e))=="ArrayBuffer"||Y=="SharedArrayBuffer"},Ge=function(_e,Y){return Ue(_e)&&typeof Y!="symbol"&&Y in _e&&String(+Y)==String(Y)},He=function(Y,fe){return Ge(Y,fe=R(fe,!0))?k(2,Y[fe]):W(Y,fe)},Qe=function(Y,fe,le){return Ge(Y,fe=R(fe,!0))&&$(le)&&O(le,"value")&&!O(le,"get")&&!O(le,"set")&&!le.configurable&&(!O(le,"writable")||le.writable)&&(!O(le,"enumerable")||le.enumerable)?(Y[fe]=le.value,Y):be(Y,fe,le)};p?(Ee||(j.f=He,A.f=Qe,Ie(me,"buffer"),Ie(me,"byteOffset"),Ie(me,"byteLength"),Ie(me,"length")),h({target:"Object",stat:!0,forced:!Ee},{getOwnPropertyDescriptor:He,defineProperty:Qe}),c.exports=function(_e,Y,fe){var le=_e.match(/\d+$/)[0]/8,it=_e+(fe?"Clamped":"")+"Array",Ne="get"+_e,ot="set"+_e,Ye=f[it],Je=Ye,We=Je&&Je.prototype,qt={},Lt=function(Mt,pt){var rt=z(Mt);return rt.view[Ne](pt*le+rt.byteOffset,!0)},cr=function(Mt,pt,rt){var wt=z(Mt);fe&&(rt=(rt=M(rt))<0?0:rt>255?255:rt&255),wt.view[ot](pt*le+wt.byteOffset,rt,!0)},lt=function(Mt,pt){be(Mt,pt,{get:function(){return Lt(this,pt)},set:function(rt){return cr(this,pt,rt)},enumerable:!0})};Ee?y&&(Je=Y(function(Mt,pt,rt,wt){return b(Mt,Je,it),F(function(){return $(pt)?Be(pt)?wt!==void 0?new Ye(pt,S(rt,le),wt):rt!==void 0?new Ye(pt,S(rt,le)):new Ye(pt):Ue(pt)?Re(Je,pt):G.call(Je,pt):new Ye(I(pt))}(),Mt,Je)}),K&&K(Je,qe),q(X(Ye),function(Mt){Mt in Je||_(Je,Mt,Ye[Mt])}),Je.prototype=We):(Je=Y(function(Mt,pt,rt,wt){b(Mt,Je,it);var fr=0,Et=0,Kt,kt,st;if(!$(pt))st=I(pt),kt=st*le,Kt=new Pe(kt);else if(Be(pt)){Kt=pt,Et=S(rt,le);var Ht=pt.byteLength;if(wt===void 0){if(Ht%le||(kt=Ht-Et,kt<0))throw we(gt)}else if(kt=w(wt)*le,kt+Et>Ht)throw we(gt);st=kt/le}else return Ue(pt)?Re(Je,pt):G.call(Je,pt);for(se(Mt,{buffer:Kt,byteOffset:Et,byteLength:kt,length:st,view:new ve(Kt)});frv;)k[v]=y[v++];return k}},7321:function(c,d,a){var h=a(7908),f=a(7466),p=a(1246),y=a(7659),g=a(9974),v=a(260).aTypedArrayConstructor;c.exports=function(k){var _=h(k),w=arguments.length,I=w>1?arguments[1]:void 0,S=I!==void 0,R=p(_),O,U,$,J,K,X;if(R!=null&&!y(R))for(K=R.call(_),X=K.next,_=[];!(J=X.call(K)).done;)_.push(J.value);for(S&&w>2&&(I=g(I,arguments[2],2)),U=f(_.length),$=new(v(this))(U),O=0;U>O;O++)$[O]=S?I(_[O],O):_[O];return $}},9711:function(c){var d=0,a=Math.random();c.exports=function(h){return"Symbol("+String(h===void 0?"":h)+")_"+(++d+a).toString(36)}},3307:function(c,d,a){var h=a(133);c.exports=h&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},5112:function(c,d,a){var h=a(7854),f=a(2309),p=a(6656),y=a(9711),g=a(133),v=a(3307),b=f("wks"),k=h.Symbol,_=v?k:k&&k.withoutSetter||y;c.exports=function(w){return p(b,w)||(g&&p(k,w)?b[w]=k[w]:b[w]=_("Symbol."+w)),b[w]}},1361:function(c){c.exports=` \v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},8264:function(c,d,a){"use strict";var h=a(2109),f=a(7854),p=a(3331),y=a(6340),g="ArrayBuffer",v=p[g],b=f[g];h({global:!0,forced:b!==v},{ArrayBuffer:v}),y(g)},2222:function(c,d,a){"use strict";var h=a(2109),f=a(7293),p=a(3157),y=a(111),g=a(7908),v=a(7466),b=a(6135),k=a(5417),_=a(1194),w=a(5112),I=a(7392),S=w("isConcatSpreadable"),R=9007199254740991,O="Maximum allowed index exceeded",U=I>=51||!f(function(){var X=[];return X[S]=!1,X.concat()[0]!==X}),$=_("concat"),J=function(X){if(!y(X))return!1;var G=X[S];return G!==void 0?!!G:p(X)},K=!U||!$;h({target:"Array",proto:!0,forced:K},{concat:function(G){var q=g(this),T=k(q,0),A=0,j,te,F,z,se;for(j=-1,F=arguments.length;jR)throw TypeError(O);for(te=0;te=R)throw TypeError(O);b(T,A++,se)}return T.length=A,T}})},7327:function(c,d,a){"use strict";var h=a(2109),f=a(2092).filter,p=a(1194),y=p("filter");h({target:"Array",proto:!0,forced:!y},{filter:function(v){return f(this,v,arguments.length>1?arguments[1]:void 0)}})},2772:function(c,d,a){"use strict";var h=a(2109),f=a(1318).indexOf,p=a(9341),y=[].indexOf,g=!!y&&1/[1].indexOf(1,-0)<0,v=p("indexOf");h({target:"Array",proto:!0,forced:g||!v},{indexOf:function(k){return g?y.apply(this,arguments)||0:f(this,k,arguments.length>1?arguments[1]:void 0)}})},6992:function(c,d,a){"use strict";var h=a(5656),f=a(1223),p=a(7497),y=a(9909),g=a(654),v="Array Iterator",b=y.set,k=y.getterFor(v);c.exports=g(Array,"Array",function(_,w){b(this,{type:v,target:h(_),index:0,kind:w})},function(){var _=k(this),w=_.target,I=_.kind,S=_.index++;return!w||S>=w.length?(_.target=void 0,{value:void 0,done:!0}):I=="keys"?{value:S,done:!1}:I=="values"?{value:w[S],done:!1}:{value:[S,w[S]],done:!1}},"values"),p.Arguments=p.Array,f("keys"),f("values"),f("entries")},1249:function(c,d,a){"use strict";var h=a(2109),f=a(2092).map,p=a(1194),y=p("map");h({target:"Array",proto:!0,forced:!y},{map:function(v){return f(this,v,arguments.length>1?arguments[1]:void 0)}})},7042:function(c,d,a){"use strict";var h=a(2109),f=a(111),p=a(3157),y=a(1400),g=a(7466),v=a(5656),b=a(6135),k=a(5112),_=a(1194),w=_("slice"),I=k("species"),S=[].slice,R=Math.max;h({target:"Array",proto:!0,forced:!w},{slice:function(U,$){var J=v(this),K=g(J.length),X=y(U,K),G=y($===void 0?K:$,K),q,T,A;if(p(J)&&(q=J.constructor,typeof q=="function"&&(q===Array||p(q.prototype))?q=void 0:f(q)&&(q=q[I],q===null&&(q=void 0)),q===Array||q===void 0))return S.call(J,X,G);for(T=new(q===void 0?Array:q)(R(G-X,0)),A=0;XS)throw TypeError(R);for(A=v(J,T),j=0;jK-T+q;j--)delete J[j-1]}else if(q>T)for(j=K-T;j>X;j--)te=j+T-1,F=j+q-1,te in J?J[F]=J[te]:delete J[F];for(j=0;j=_.length?{value:void 0,done:!0}:(I=h(_,w),k.index+=I.length,{value:I,done:!1})})},4723:function(c,d,a){"use strict";var h=a(7007),f=a(9670),p=a(7466),y=a(4488),g=a(1530),v=a(7651);h("match",1,function(b,k,_){return[function(I){var S=y(this),R=I==null?void 0:I[b];return R!==void 0?R.call(I,S):new RegExp(I)[b](String(S))},function(w){var I=_(k,w,this);if(I.done)return I.value;var S=f(w),R=String(this);if(!S.global)return v(S,R);var O=S.unicode;S.lastIndex=0;for(var U=[],$=0,J;(J=v(S,R))!==null;){var K=String(J[0]);U[$]=K,K===""&&(S.lastIndex=g(R,p(S.lastIndex),O)),$++}return $===0?null:U}]})},5306:function(c,d,a){"use strict";var h=a(7007),f=a(9670),p=a(7466),y=a(9958),g=a(4488),v=a(1530),b=a(647),k=a(7651),_=Math.max,w=Math.min,I=function(S){return S===void 0?S:String(S)};h("replace",2,function(S,R,O,U){var $=U.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,J=U.REPLACE_KEEPS_$0,K=$?"$":"$0";return[function(G,q){var T=g(this),A=G==null?void 0:G[S];return A!==void 0?A.call(G,T,q):R.call(String(T),G,q)},function(X,G){if(!$&&J||typeof G=="string"&&G.indexOf(K)===-1){var q=O(R,X,this,G);if(q.done)return q.value}var T=f(X),A=String(this),j=typeof G=="function";j||(G=String(G));var te=T.global;if(te){var F=T.unicode;T.lastIndex=0}for(var z=[];;){var se=k(T,A);if(se===null||(z.push(se),!te))break;var be=String(se[0]);be===""&&(T.lastIndex=v(A,p(T.lastIndex),F))}for(var W="",M=0,we=0;we=M&&(W+=A.slice(M,ve)+ke,M=ve+Pe.length)}return W+A.slice(M)}]})},3123:function(c,d,a){"use strict";var h=a(7007),f=a(7850),p=a(9670),y=a(4488),g=a(6707),v=a(1530),b=a(7466),k=a(7651),_=a(2261),w=a(7293),I=[].push,S=Math.min,R=4294967295,O=!w(function(){return!RegExp(R,"y")});h("split",2,function(U,$,J){var K;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?K=function(X,G){var q=String(y(this)),T=G===void 0?R:G>>>0;if(T===0)return[];if(X===void 0)return[q];if(!f(X))return $.call(q,X,T);for(var A=[],j=(X.ignoreCase?"i":"")+(X.multiline?"m":"")+(X.unicode?"u":"")+(X.sticky?"y":""),te=0,F=new RegExp(X.source,j+"g"),z,se,be;(z=_.call(F,q))&&(se=F.lastIndex,!(se>te&&(A.push(q.slice(te,z.index)),z.length>1&&z.index=T)));)F.lastIndex===z.index&&F.lastIndex++;return te===q.length?(be||!F.test(""))&&A.push(""):A.push(q.slice(te)),A.length>T?A.slice(0,T):A}:"0".split(void 0,0).length?K=function(X,G){return X===void 0&&G===0?[]:$.call(this,X,G)}:K=$,[function(G,q){var T=y(this),A=G==null?void 0:G[U];return A!==void 0?A.call(G,T,q):K.call(String(T),G,q)},function(X,G){var q=J(K,X,this,G,K!==$);if(q.done)return q.value;var T=p(X),A=String(this),j=g(T,RegExp),te=T.unicode,F=(T.ignoreCase?"i":"")+(T.multiline?"m":"")+(T.unicode?"u":"")+(O?"y":"g"),z=new j(O?T:"^(?:"+T.source+")",F),se=G===void 0?R:G>>>0;if(se===0)return[];if(A.length===0)return k(z,A)===null?[A]:[];for(var be=0,W=0,M=[];W2?arguments[2]:void 0)})},8927:function(c,d,a){"use strict";var h=a(260),f=a(2092).every,p=h.aTypedArray,y=h.exportTypedArrayMethod;y("every",function(v){return f(p(this),v,arguments.length>1?arguments[1]:void 0)})},3105:function(c,d,a){"use strict";var h=a(260),f=a(1285),p=h.aTypedArray,y=h.exportTypedArrayMethod;y("fill",function(v){return f.apply(p(this),arguments)})},5035:function(c,d,a){"use strict";var h=a(260),f=a(2092).filter,p=a(3074),y=h.aTypedArray,g=h.exportTypedArrayMethod;g("filter",function(b){var k=f(y(this),b,arguments.length>1?arguments[1]:void 0);return p(this,k)})},7174:function(c,d,a){"use strict";var h=a(260),f=a(2092).findIndex,p=h.aTypedArray,y=h.exportTypedArrayMethod;y("findIndex",function(v){return f(p(this),v,arguments.length>1?arguments[1]:void 0)})},4345:function(c,d,a){"use strict";var h=a(260),f=a(2092).find,p=h.aTypedArray,y=h.exportTypedArrayMethod;y("find",function(v){return f(p(this),v,arguments.length>1?arguments[1]:void 0)})},2846:function(c,d,a){"use strict";var h=a(260),f=a(2092).forEach,p=h.aTypedArray,y=h.exportTypedArrayMethod;y("forEach",function(v){f(p(this),v,arguments.length>1?arguments[1]:void 0)})},4731:function(c,d,a){"use strict";var h=a(260),f=a(1318).includes,p=h.aTypedArray,y=h.exportTypedArrayMethod;y("includes",function(v){return f(p(this),v,arguments.length>1?arguments[1]:void 0)})},7209:function(c,d,a){"use strict";var h=a(260),f=a(1318).indexOf,p=h.aTypedArray,y=h.exportTypedArrayMethod;y("indexOf",function(v){return f(p(this),v,arguments.length>1?arguments[1]:void 0)})},6319:function(c,d,a){"use strict";var h=a(7854),f=a(260),p=a(6992),y=a(5112),g=y("iterator"),v=h.Uint8Array,b=p.values,k=p.keys,_=p.entries,w=f.aTypedArray,I=f.exportTypedArrayMethod,S=v&&v.prototype[g],R=!!S&&(S.name=="values"||S.name==null),O=function(){return b.call(w(this))};I("entries",function(){return _.call(w(this))}),I("keys",function(){return k.call(w(this))}),I("values",O,!R),I(g,O,!R)},8867:function(c,d,a){"use strict";var h=a(260),f=h.aTypedArray,p=h.exportTypedArrayMethod,y=[].join;p("join",function(v){return y.apply(f(this),arguments)})},7789:function(c,d,a){"use strict";var h=a(260),f=a(6583),p=h.aTypedArray,y=h.exportTypedArrayMethod;y("lastIndexOf",function(v){return f.apply(p(this),arguments)})},3739:function(c,d,a){"use strict";var h=a(260),f=a(2092).map,p=a(6707),y=h.aTypedArray,g=h.aTypedArrayConstructor,v=h.exportTypedArrayMethod;v("map",function(k){return f(y(this),k,arguments.length>1?arguments[1]:void 0,function(_,w){return new(g(p(_,_.constructor)))(w)})})},4483:function(c,d,a){"use strict";var h=a(260),f=a(3671).right,p=h.aTypedArray,y=h.exportTypedArrayMethod;y("reduceRight",function(v){return f(p(this),v,arguments.length,arguments.length>1?arguments[1]:void 0)})},9368:function(c,d,a){"use strict";var h=a(260),f=a(3671).left,p=h.aTypedArray,y=h.exportTypedArrayMethod;y("reduce",function(v){return f(p(this),v,arguments.length,arguments.length>1?arguments[1]:void 0)})},2056:function(c,d,a){"use strict";var h=a(260),f=h.aTypedArray,p=h.exportTypedArrayMethod,y=Math.floor;p("reverse",function(){for(var v=this,b=f(v).length,k=y(b/2),_=0,w;_1?arguments[1]:void 0,1),S=this.length,R=y(w),O=f(R.length),U=0;if(O+I>S)throw RangeError("Wrong length");for(;UO;)$[O]=S[O++];return $},k)},7462:function(c,d,a){"use strict";var h=a(260),f=a(2092).some,p=h.aTypedArray,y=h.exportTypedArrayMethod;y("some",function(v){return f(p(this),v,arguments.length>1?arguments[1]:void 0)})},3824:function(c,d,a){"use strict";var h=a(260),f=h.aTypedArray,p=h.exportTypedArrayMethod,y=[].sort;p("sort",function(v){return y.call(f(this),v)})},5021:function(c,d,a){"use strict";var h=a(260),f=a(7466),p=a(1400),y=a(6707),g=h.aTypedArray,v=h.exportTypedArrayMethod;v("subarray",function(k,_){var w=g(this),I=w.length,S=p(k,I);return new(y(w,w.constructor))(w.buffer,w.byteOffset+S*w.BYTES_PER_ELEMENT,f((_===void 0?I:p(_,I))-S))})},2974:function(c,d,a){"use strict";var h=a(7854),f=a(260),p=a(7293),y=h.Int8Array,g=f.aTypedArray,v=f.exportTypedArrayMethod,b=[].toLocaleString,k=[].slice,_=!!y&&p(function(){b.call(new y(1))}),w=p(function(){return[1,2].toLocaleString()!=new y([1,2]).toLocaleString()})||!p(function(){y.prototype.toLocaleString.call([1,2])});v("toLocaleString",function(){return b.apply(_?k.call(g(this)):g(this),arguments)},w)},5016:function(c,d,a){"use strict";var h=a(260).exportTypedArrayMethod,f=a(7293),p=a(7854),y=p.Uint8Array,g=y&&y.prototype||{},v=[].toString,b=[].join;f(function(){v.call({})})&&(v=function(){return b.call(this)});var k=g.toString!=v;h("toString",v,k)},2472:function(c,d,a){var h=a(9843);h("Uint8",function(f){return function(y,g,v){return f(this,y,g,v)}})},4747:function(c,d,a){var h=a(7854),f=a(8324),p=a(8533),y=a(8880);for(var g in f){var v=h[g],b=v&&v.prototype;if(b&&b.forEach!==p)try{y(b,"forEach",p)}catch(k){b.forEach=p}}},3948:function(c,d,a){var h=a(7854),f=a(8324),p=a(6992),y=a(8880),g=a(5112),v=g("iterator"),b=g("toStringTag"),k=p.values;for(var _ in f){var w=h[_],I=w&&w.prototype;if(I){if(I[v]!==k)try{y(I,v,k)}catch(R){I[v]=k}if(I[b]||y(I,b,_),f[_]){for(var S in p)if(I[S]!==p[S])try{y(I,S,p[S])}catch(R){I[S]=p[S]}}}}},1637:function(c,d,a){"use strict";a(6992);var h=a(2109),f=a(5005),p=a(590),y=a(1320),g=a(2248),v=a(8003),b=a(4994),k=a(9909),_=a(5787),w=a(6656),I=a(9974),S=a(648),R=a(9670),O=a(111),U=a(30),$=a(9114),J=a(8554),K=a(1246),X=a(5112),G=f("fetch"),q=f("Headers"),T=X("iterator"),A="URLSearchParams",j=A+"Iterator",te=k.set,F=k.getterFor(A),z=k.getterFor(j),se=/\+/g,be=Array(4),W=function(Re){return be[Re-1]||(be[Re-1]=RegExp("((?:%[\\da-f]{2}){"+Re+"})","gi"))},M=function(Re){try{return decodeURIComponent(Re)}catch(Ie){return Re}},we=function(Re){var Ie=Re.replace(se," "),Be=4;try{return decodeURIComponent(Ie)}catch(Ge){for(;Be;)Ie=Ie.replace(W(Be--),M);return Ie}},Pe=/[!'()~]|%20/g,ve={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},Ee=function(Re){return ve[Re]},ze=function(Re){return encodeURIComponent(Re).replace(Pe,Ee)},qe=function(Re,Ie){if(Ie)for(var Be=Ie.split("&"),Ge=0,He,Qe;Ge0?arguments[0]:void 0,Be=this,Ge=[],He,Qe,_e,Y,fe,le,it,Ne,ot;if(te(Be,{type:A,entries:Ge,updateURL:function(){},updateSearchParams:me}),Ie!==void 0)if(O(Ie))if(He=K(Ie),typeof He=="function")for(Qe=He.call(Ie),_e=Qe.next;!(Y=_e.call(Qe)).done;){if(fe=J(R(Y.value)),le=fe.next,(it=le.call(fe)).done||(Ne=le.call(fe)).done||!le.call(fe).done)throw TypeError("Expected sequence with length 2");Ge.push({key:it.value+"",value:Ne.value+""})}else for(ot in Ie)w(Ie,ot)&&Ge.push({key:ot,value:Ie[ot]+""});else qe(Ge,typeof Ie=="string"?Ie.charAt(0)==="?"?Ie.slice(1):Ie:Ie+"")},gt=at.prototype;g(gt,{append:function(Ie,Be){ke(arguments.length,2);var Ge=F(this);Ge.entries.push({key:Ie+"",value:Be+""}),Ge.updateURL()},delete:function(Re){ke(arguments.length,1);for(var Ie=F(this),Be=Ie.entries,Ge=Re+"",He=0;HeHe.key){Be.splice(Qe,0,He);break}Qe===_e&&Be.push(He)}Ie.updateURL()},forEach:function(Ie){for(var Be=F(this).entries,Ge=I(Ie,arguments.length>1?arguments[1]:void 0,3),He=0,Qe;He1&&(Ge=arguments[1],O(Ge)&&(He=Ge.body,S(He)===A&&(Qe=Ge.headers?new q(Ge.headers):new q,Qe.has("content-type")||Qe.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),Ge=U(Ge,{body:$(0,String(He)),headers:$(0,Qe)}))),Be.push(Ge)),G.apply(this,Be)}}),c.exports={URLSearchParams:at,getState:F}},285:function(c,d,a){"use strict";a(8783);var h=a(2109),f=a(9781),p=a(590),y=a(7854),g=a(6048),v=a(1320),b=a(5787),k=a(6656),_=a(1574),w=a(8457),I=a(8710).codeAt,S=a(3197),R=a(8003),O=a(1637),U=a(9909),$=y.URL,J=O.URLSearchParams,K=O.getState,X=U.set,G=U.getterFor("URL"),q=Math.floor,T=Math.pow,A="Invalid authority",j="Invalid scheme",te="Invalid host",F="Invalid port",z=/[A-Za-z]/,se=/[\d+-.A-Za-z]/,be=/\d/,W=/^(0x|0X)/,M=/^[0-7]+$/,we=/^\d+$/,Pe=/^[\dA-Fa-f]+$/,ve=/[\u0000\t\u000A\u000D #%/:?@[\\]]/,Ee=/[\u0000\t\u000A\u000D #/:?@[\\]]/,ze=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,qe=/[\t\u000A\u000D]/g,me,ke=function(H,oe){var he,Ce,Ae;if(oe.charAt(0)=="["){if(oe.charAt(oe.length-1)!="]"||(he=at(oe.slice(1,-1)),!he))return te;H.host=he}else if(Y(H)){if(oe=S(oe),ve.test(oe)||(he=Ue(oe),he===null))return te;H.host=he}else{if(Ee.test(oe))return te;for(he="",Ce=w(oe),Ae=0;Ae4)return H;for(Ce=[],Ae=0;Ae1&&Ve.charAt(0)=="0"&&(et=W.test(Ve)?16:8,Ve=Ve.slice(et==8?1:2)),Ve==="")bt=0;else{if(!(et==10?we:et==8?M:Pe).test(Ve))return H;bt=parseInt(Ve,et)}Ce.push(bt)}for(Ae=0;Ae=T(256,5-he))return null}else if(bt>255)return null;for(Dt=Ce.pop(),Ae=0;Ae6))return;for(bt=0;de();){if(Dt=null,bt>0)if(de()=="."&&bt<4)Ae++;else return;if(!be.test(de()))return;for(;be.test(de());){if(xe=parseInt(de(),10),Dt===null)Dt=xe;else{if(Dt==0)return;Dt=Dt*10+xe}if(Dt>255)return;Ae++}oe[he]=oe[he]*256+Dt,bt++,(bt==2||bt==4)&&he++}if(bt!=4)return;break}else if(de()==":"){if(Ae++,!de())return}else if(de())return;oe[he++]=Ve}if(Ce!==null)for(D=he-Ce,he=7;he!=0&&D>0;)B=oe[he],oe[he--]=oe[Ce+D-1],oe[Ce+--D]=B;else if(he!=8)return;return oe},gt=function(H){for(var oe=null,he=1,Ce=null,Ae=0,Ve=0;Ve<8;Ve++)H[Ve]!==0?(Ae>he&&(oe=Ce,he=Ae),Ce=null,Ae=0):(Ce===null&&(Ce=Ve),++Ae);return Ae>he&&(oe=Ce,he=Ae),oe},Re=function(H){var oe,he,Ce,Ae;if(typeof H=="number"){for(oe=[],he=0;he<4;he++)oe.unshift(H%256),H=q(H/256);return oe.join(".")}else if(typeof H=="object"){for(oe="",Ce=gt(H),he=0;he<8;he++)Ae&&H[he]===0||(Ae&&(Ae=!1),Ce===he?(oe+=he?":":"::",Ae=!0):(oe+=H[he].toString(16),he<7&&(oe+=":")));return"["+oe+"]"}return H},Ie={},Be=_({},Ie,{" ":1,'"':1,"<":1,">":1,"`":1}),Ge=_({},Be,{"#":1,"?":1,"{":1,"}":1}),He=_({},Ge,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Qe=function(H,oe){var he=I(H,0);return he>32&&he<127&&!k(oe,H)?H:encodeURIComponent(H)},_e={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Y=function(H){return k(_e,H.scheme)},fe=function(H){return H.username!=""||H.password!=""},le=function(H){return!H.host||H.cannotBeABaseURL||H.scheme=="file"},it=function(H,oe){var he;return H.length==2&&z.test(H.charAt(0))&&((he=H.charAt(1))==":"||!oe&&he=="|")},Ne=function(H){var oe;return H.length>1&&it(H.slice(0,2))&&(H.length==2||(oe=H.charAt(2))==="/"||oe==="\\"||oe==="?"||oe==="#")},ot=function(H){var oe=H.path,he=oe.length;he&&(H.scheme!="file"||he!=1||!it(oe[0],!0))&&oe.pop()},Ye=function(H){return H==="."||H.toLowerCase()==="%2e"},Je=function(H){return H=H.toLowerCase(),H===".."||H==="%2e."||H===".%2e"||H==="%2e%2e"},We={},qt={},Lt={},cr={},lt={},Mt={},pt={},rt={},wt={},fr={},Et={},Kt={},kt={},st={},Ht={},Ir={},dr={},hr={},$r={},zt={},yr={},sr=function(H,oe,he,Ce){var Ae=he||We,Ve=0,et="",bt=!1,Dt=!1,xe=!1,D,B,de,De;for(he||(H.scheme="",H.username="",H.password="",H.host=null,H.port=null,H.path=[],H.query=null,H.fragment=null,H.cannotBeABaseURL=!1,oe=oe.replace(ze,"")),oe=oe.replace(qe,""),D=w(oe);Ve<=D.length;){switch(B=D[Ve],Ae){case We:if(B&&z.test(B))et+=B.toLowerCase(),Ae=qt;else{if(he)return j;Ae=Lt;continue}break;case qt:if(B&&(se.test(B)||B=="+"||B=="-"||B=="."))et+=B.toLowerCase();else if(B==":"){if(he&&(Y(H)!=k(_e,et)||et=="file"&&(fe(H)||H.port!==null)||H.scheme=="file"&&!H.host))return;if(H.scheme=et,he){Y(H)&&_e[H.scheme]==H.port&&(H.port=null);return}et="",H.scheme=="file"?Ae=st:Y(H)&&Ce&&Ce.scheme==H.scheme?Ae=cr:Y(H)?Ae=rt:D[Ve+1]=="/"?(Ae=lt,Ve++):(H.cannotBeABaseURL=!0,H.path.push(""),Ae=$r)}else{if(he)return j;et="",Ae=Lt,Ve=0;continue}break;case Lt:if(!Ce||Ce.cannotBeABaseURL&&B!="#")return j;if(Ce.cannotBeABaseURL&&B=="#"){H.scheme=Ce.scheme,H.path=Ce.path.slice(),H.query=Ce.query,H.fragment="",H.cannotBeABaseURL=!0,Ae=yr;break}Ae=Ce.scheme=="file"?st:Mt;continue;case cr:if(B=="/"&&D[Ve+1]=="/")Ae=wt,Ve++;else{Ae=Mt;continue}break;case lt:if(B=="/"){Ae=fr;break}else{Ae=hr;continue}case Mt:if(H.scheme=Ce.scheme,B==me)H.username=Ce.username,H.password=Ce.password,H.host=Ce.host,H.port=Ce.port,H.path=Ce.path.slice(),H.query=Ce.query;else if(B=="/"||B=="\\"&&Y(H))Ae=pt;else if(B=="?")H.username=Ce.username,H.password=Ce.password,H.host=Ce.host,H.port=Ce.port,H.path=Ce.path.slice(),H.query="",Ae=zt;else if(B=="#")H.username=Ce.username,H.password=Ce.password,H.host=Ce.host,H.port=Ce.port,H.path=Ce.path.slice(),H.query=Ce.query,H.fragment="",Ae=yr;else{H.username=Ce.username,H.password=Ce.password,H.host=Ce.host,H.port=Ce.port,H.path=Ce.path.slice(),H.path.pop(),Ae=hr;continue}break;case pt:if(Y(H)&&(B=="/"||B=="\\"))Ae=wt;else if(B=="/")Ae=fr;else{H.username=Ce.username,H.password=Ce.password,H.host=Ce.host,H.port=Ce.port,Ae=hr;continue}break;case rt:if(Ae=wt,B!="/"||et.charAt(Ve+1)!="/")continue;Ve++;break;case wt:if(B!="/"&&B!="\\"){Ae=fr;continue}break;case fr:if(B=="@"){bt&&(et="%40"+et),bt=!0,de=w(et);for(var ft=0;ft65535)return F;H.port=Y(H)&&Vt===_e[H.scheme]?null:Vt,et=""}if(he)return;Ae=dr;continue}else return F;break;case st:if(H.scheme="file",B=="/"||B=="\\")Ae=Ht;else if(Ce&&Ce.scheme=="file")if(B==me)H.host=Ce.host,H.path=Ce.path.slice(),H.query=Ce.query;else if(B=="?")H.host=Ce.host,H.path=Ce.path.slice(),H.query="",Ae=zt;else if(B=="#")H.host=Ce.host,H.path=Ce.path.slice(),H.query=Ce.query,H.fragment="",Ae=yr;else{Ne(D.slice(Ve).join(""))||(H.host=Ce.host,H.path=Ce.path.slice(),ot(H)),Ae=hr;continue}else{Ae=hr;continue}break;case Ht:if(B=="/"||B=="\\"){Ae=Ir;break}Ce&&Ce.scheme=="file"&&!Ne(D.slice(Ve).join(""))&&(it(Ce.path[0],!0)?H.path.push(Ce.path[0]):H.host=Ce.host),Ae=hr;continue;case Ir:if(B==me||B=="/"||B=="\\"||B=="?"||B=="#"){if(!he&&it(et))Ae=hr;else if(et==""){if(H.host="",he)return;Ae=dr}else{if(De=ke(H,et),De)return De;if(H.host=="localhost"&&(H.host=""),he)return;et="",Ae=dr}continue}else et+=B;break;case dr:if(Y(H)){if(Ae=hr,B!="/"&&B!="\\")continue}else if(!he&&B=="?")H.query="",Ae=zt;else if(!he&&B=="#")H.fragment="",Ae=yr;else if(B!=me&&(Ae=hr,B!="/"))continue;break;case hr:if(B==me||B=="/"||B=="\\"&&Y(H)||!he&&(B=="?"||B=="#")){if(Je(et)?(ot(H),B!="/"&&!(B=="\\"&&Y(H))&&H.path.push("")):Ye(et)?B!="/"&&!(B=="\\"&&Y(H))&&H.path.push(""):(H.scheme=="file"&&!H.path.length&&it(et)&&(H.host&&(H.host=""),et=et.charAt(0)+":"),H.path.push(et)),et="",H.scheme=="file"&&(B==me||B=="?"||B=="#"))for(;H.path.length>1&&H.path[0]==="";)H.path.shift();B=="?"?(H.query="",Ae=zt):B=="#"&&(H.fragment="",Ae=yr)}else et+=Qe(B,Ge);break;case $r:B=="?"?(H.query="",Ae=zt):B=="#"?(H.fragment="",Ae=yr):B!=me&&(H.path[0]+=Qe(B,Ie));break;case zt:!he&&B=="#"?(H.fragment="",Ae=yr):B!=me&&(B=="'"&&Y(H)?H.query+="%27":B=="#"?H.query+="%23":H.query+=Qe(B,Ie));break;case yr:B!=me&&(H.fragment+=Qe(B,Be));break}Ve++}},Zt=function(oe){var he=b(this,Zt,"URL"),Ce=arguments.length>1?arguments[1]:void 0,Ae=String(oe),Ve=X(he,{type:"URL"}),et,bt;if(Ce!==void 0){if(Ce instanceof Zt)et=G(Ce);else if(bt=sr(et={},String(Ce)),bt)throw TypeError(bt)}if(bt=sr(Ve,Ae,null,et),bt)throw TypeError(bt);var Dt=Ve.searchParams=new J,xe=K(Dt);xe.updateSearchParams(Ve.query),xe.updateURL=function(){Ve.query=String(Dt)||null},f||(he.href=ie.call(he),he.origin=Z.call(he),he.protocol=re.call(he),he.username=P.call(he),he.password=N.call(he),he.host=ee.call(he),he.hostname=ue.call(he),he.port=pe.call(he),he.pathname=ge.call(he),he.search=Le.call(he),he.searchParams=Me.call(he),he.hash=Se.call(he))},ne=Zt.prototype,ie=function(){var H=G(this),oe=H.scheme,he=H.username,Ce=H.password,Ae=H.host,Ve=H.port,et=H.path,bt=H.query,Dt=H.fragment,xe=oe+":";return Ae!==null?(xe+="//",fe(H)&&(xe+=he+(Ce?":"+Ce:"")+"@"),xe+=Re(Ae),Ve!==null&&(xe+=":"+Ve)):oe=="file"&&(xe+="//"),xe+=H.cannotBeABaseURL?et[0]:et.length?"/"+et.join("/"):"",bt!==null&&(xe+="?"+bt),Dt!==null&&(xe+="#"+Dt),xe},Z=function(){var H=G(this),oe=H.scheme,he=H.port;if(oe=="blob")try{return new URL(oe.path[0]).origin}catch(Ce){return"null"}return oe=="file"||!Y(H)?"null":oe+"://"+Re(H.host)+(he!==null?":"+he:"")},re=function(){return G(this).scheme+":"},P=function(){return G(this).username},N=function(){return G(this).password},ee=function(){var H=G(this),oe=H.host,he=H.port;return oe===null?"":he===null?Re(oe):Re(oe)+":"+he},ue=function(){var H=G(this).host;return H===null?"":Re(H)},pe=function(){var H=G(this).port;return H===null?"":String(H)},ge=function(){var H=G(this),oe=H.path;return H.cannotBeABaseURL?oe[0]:oe.length?"/"+oe.join("/"):""},Le=function(){var H=G(this).query;return H?"?"+H:""},Me=function(){return G(this).searchParams},Se=function(){var H=G(this).fragment;return H?"#"+H:""},Ke=function(H,oe){return{get:H,set:oe,configurable:!0,enumerable:!0}};if(f&&g(ne,{href:Ke(ie,function(H){var oe=G(this),he=String(H),Ce=sr(oe,he);if(Ce)throw TypeError(Ce);K(oe.searchParams).updateSearchParams(oe.query)}),origin:Ke(Z),protocol:Ke(re,function(H){var oe=G(this);sr(oe,String(H)+":",We)}),username:Ke(P,function(H){var oe=G(this),he=w(String(H));if(!le(oe)){oe.username="";for(var Ce=0;Ce=ne.length?{done:!0}:{done:!1,value:ne[re++]}},e:function(ge){throw ge},f:P}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var N=!0,ee=!1,ue;return{s:function(){Z=ne[Symbol.iterator]()},n:function(){var ge=Z.next();return N=ge.done,ge},e:function(ge){ee=!0,ue=ge},f:function(){try{!N&&Z.return!=null&&Z.return()}finally{if(ee)throw ue}}}}function Ie(ne,ie){if(!!ne){if(typeof ne=="string")return Be(ne,ie);var Z=Object.prototype.toString.call(ne).slice(8,-1);if(Z==="Object"&&ne.constructor&&(Z=ne.constructor.name),Z==="Map"||Z==="Set")return Array.from(ne);if(Z==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Z))return Be(ne,ie)}}function Be(ne,ie){(ie==null||ie>ne.length)&&(ie=ne.length);for(var Z=0,re=new Array(ie);Z1?P-1:0),ee=1;ee=ne.length?{done:!0}:{done:!1,value:ne[re++]}},e:function(ge){throw ge},f:P}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var N=!0,ee=!1,ue;return{s:function(){Z=ne[Symbol.iterator]()},n:function(){var ge=Z.next();return N=ge.done,ge},e:function(ge){ee=!0,ue=ge},f:function(){try{!N&&Z.return!=null&&Z.return()}finally{if(ee)throw ue}}}}function it(ne,ie){if(!!ne){if(typeof ne=="string")return Ne(ne,ie);var Z=Object.prototype.toString.call(ne).slice(8,-1);if(Z==="Object"&&ne.constructor&&(Z=ne.constructor.name),Z==="Map"||Z==="Set")return Array.from(ne);if(Z==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Z))return Ne(ne,ie)}}function Ne(ne,ie){(ie==null||ie>ne.length)&&(ie=ne.length);for(var Z=0,re=new Array(ie);Z'),this.element.appendChild(ie));var N=ie.getElementsByTagName("span")[0];return N&&(N.textContent!=null?N.textContent=this.options.dictFallbackMessage:N.innerText!=null&&(N.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(ie,Z,re,P){var N={srcX:0,srcY:0,srcWidth:ie.width,srcHeight:ie.height},ee=ie.width/ie.height;Z==null&&re==null?(Z=N.srcWidth,re=N.srcHeight):Z==null?Z=re*ee:re==null&&(re=Z/ee),Z=Math.min(Z,N.srcWidth),re=Math.min(re,N.srcHeight);var ue=Z/re;if(N.srcWidth>Z||N.srcHeight>re)if(P==="crop")ee>ue?(N.srcHeight=ie.height,N.srcWidth=N.srcHeight*ue):(N.srcWidth=ie.width,N.srcHeight=N.srcWidth/ue);else if(P==="contain")ee>ue?re=Z/ee:Z=re*ee;else throw new Error("Unknown resizeMethod '".concat(P,"'"));return N.srcX=(ie.width-N.srcWidth)/2,N.srcY=(ie.height-N.srcHeight)/2,N.trgWidth=Z,N.trgHeight=re,N},transformFile:function(ie,Z){return(this.options.resizeWidth||this.options.resizeHeight)&&ie.type.match(/image.*/)?this.resizeImage(ie,this.options.resizeWidth,this.options.resizeHeight,this.options.resizeMethod,Z):Z(ie)},previewTemplate:fe,drop:function(ie){return this.element.classList.remove("dz-drag-hover")},dragstart:function(ie){},dragend:function(ie){return this.element.classList.remove("dz-drag-hover")},dragenter:function(ie){return this.element.classList.add("dz-drag-hover")},dragover:function(ie){return this.element.classList.add("dz-drag-hover")},dragleave:function(ie){return this.element.classList.remove("dz-drag-hover")},paste:function(ie){},reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(ie){var Z=this;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer&&!this.options.disablePreviews){ie.previewElement=st.createElement(this.options.previewTemplate.trim()),ie.previewTemplate=ie.previewElement,this.previewsContainer.appendChild(ie.previewElement);var re=le(ie.previewElement.querySelectorAll("[data-dz-name]"),!0),P;try{for(re.s();!(P=re.n()).done;){var N=P.value;N.textContent=ie.name}}catch(Se){re.e(Se)}finally{re.f()}var ee=le(ie.previewElement.querySelectorAll("[data-dz-size]"),!0),ue;try{for(ee.s();!(ue=ee.n()).done;)N=ue.value,N.innerHTML=this.filesize(ie.size)}catch(Se){ee.e(Se)}finally{ee.f()}this.options.addRemoveLinks&&(ie._removeLink=st.createElement(''.concat(this.options.dictRemoveFile,"")),ie.previewElement.appendChild(ie._removeLink));var pe=function(Ke){return Ke.preventDefault(),Ke.stopPropagation(),ie.status===st.UPLOADING?st.confirm(Z.options.dictCancelUploadConfirmation,function(){return Z.removeFile(ie)}):Z.options.dictRemoveFileConfirmation?st.confirm(Z.options.dictRemoveFileConfirmation,function(){return Z.removeFile(ie)}):Z.removeFile(ie)},ge=le(ie.previewElement.querySelectorAll("[data-dz-remove]"),!0),Le;try{for(ge.s();!(Le=ge.n()).done;){var Me=Le.value;Me.addEventListener("click",pe)}}catch(Se){ge.e(Se)}finally{ge.f()}}},removedfile:function(ie){return ie.previewElement!=null&&ie.previewElement.parentNode!=null&&ie.previewElement.parentNode.removeChild(ie.previewElement),this._updateMaxFilesReachedClass()},thumbnail:function(ie,Z){if(ie.previewElement){ie.previewElement.classList.remove("dz-file-preview");var re=le(ie.previewElement.querySelectorAll("[data-dz-thumbnail]"),!0),P;try{for(re.s();!(P=re.n()).done;){var N=P.value;N.alt=ie.name,N.src=Z}}catch(ee){re.e(ee)}finally{re.f()}return setTimeout(function(){return ie.previewElement.classList.add("dz-image-preview")},1)}},error:function(ie,Z){if(ie.previewElement){ie.previewElement.classList.add("dz-error"),typeof Z!="string"&&Z.error&&(Z=Z.error);var re=le(ie.previewElement.querySelectorAll("[data-dz-errormessage]"),!0),P;try{for(re.s();!(P=re.n()).done;){var N=P.value;N.textContent=Z}}catch(ee){re.e(ee)}finally{re.f()}}},errormultiple:function(){},processing:function(ie){if(ie.previewElement&&(ie.previewElement.classList.add("dz-processing"),ie._removeLink))return ie._removeLink.innerHTML=this.options.dictCancelUpload},processingmultiple:function(){},uploadprogress:function(ie,Z,re){if(ie.previewElement){var P=le(ie.previewElement.querySelectorAll("[data-dz-uploadprogress]"),!0),N;try{for(P.s();!(N=P.n()).done;){var ee=N.value;ee.nodeName==="PROGRESS"?ee.value=Z:ee.style.width="".concat(Z,"%")}}catch(ue){P.e(ue)}finally{P.f()}}},totaluploadprogress:function(){},sending:function(){},sendingmultiple:function(){},success:function(ie){if(ie.previewElement)return ie.previewElement.classList.add("dz-success")},successmultiple:function(){},canceled:function(ie){return this.emit("error",ie,this.options.dictUploadCanceled)},canceledmultiple:function(){},complete:function(ie){if(ie._removeLink&&(ie._removeLink.innerHTML=this.options.dictRemoveFile),ie.previewElement)return ie.previewElement.classList.add("dz-complete")},completemultiple:function(){},maxfilesexceeded:function(){},maxfilesreached:function(){},queuecomplete:function(){},addedfiles:function(){}},Ye=ot;function Je(ne){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Je=function(Z){return typeof Z}:Je=function(Z){return Z&&typeof Symbol=="function"&&Z.constructor===Symbol&&Z!==Symbol.prototype?"symbol":typeof Z},Je(ne)}function We(ne,ie){var Z;if(typeof Symbol=="undefined"||ne[Symbol.iterator]==null){if(Array.isArray(ne)||(Z=qt(ne))||ie&&ne&&typeof ne.length=="number"){Z&&(ne=Z);var re=0,P=function(){};return{s:P,n:function(){return re>=ne.length?{done:!0}:{done:!1,value:ne[re++]}},e:function(ge){throw ge},f:P}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var N=!0,ee=!1,ue;return{s:function(){Z=ne[Symbol.iterator]()},n:function(){var ge=Z.next();return N=ge.done,ge},e:function(ge){ee=!0,ue=ge},f:function(){try{!N&&Z.return!=null&&Z.return()}finally{if(ee)throw ue}}}}function qt(ne,ie){if(!!ne){if(typeof ne=="string")return Lt(ne,ie);var Z=Object.prototype.toString.call(ne).slice(8,-1);if(Z==="Object"&&ne.constructor&&(Z=ne.constructor.name),Z==="Map"||Z==="Set")return Array.from(ne);if(Z==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Z))return Lt(ne,ie)}}function Lt(ne,ie){(ie==null||ie>ne.length)&&(ie=ne.length);for(var Z=0,re=new Array(ie);Z"))),this.clickableElements.length){var N=function Me(){P.hiddenFileInput&&P.hiddenFileInput.parentNode.removeChild(P.hiddenFileInput),P.hiddenFileInput=document.createElement("input"),P.hiddenFileInput.setAttribute("type","file"),(P.options.maxFiles===null||P.options.maxFiles>1)&&P.hiddenFileInput.setAttribute("multiple","multiple"),P.hiddenFileInput.className="dz-hidden-input",P.options.acceptedFiles!==null&&P.hiddenFileInput.setAttribute("accept",P.options.acceptedFiles),P.options.capture!==null&&P.hiddenFileInput.setAttribute("capture",P.options.capture),P.hiddenFileInput.setAttribute("tabindex","-1"),P.hiddenFileInput.style.visibility="hidden",P.hiddenFileInput.style.position="absolute",P.hiddenFileInput.style.top="0",P.hiddenFileInput.style.left="0",P.hiddenFileInput.style.height="0",P.hiddenFileInput.style.width="0",Z.getElement(P.options.hiddenInputContainer,"hiddenInputContainer").appendChild(P.hiddenFileInput),P.hiddenFileInput.addEventListener("change",function(){var Se=P.hiddenFileInput.files;if(Se.length){var Ke=We(Se,!0),_t;try{for(Ke.s();!(_t=Ke.n()).done;){var mt=_t.value;P.addFile(mt)}}catch(H){Ke.e(H)}finally{Ke.f()}}P.emit("addedfiles",Se),Me()})};N()}this.URL=window.URL!==null?window.URL:window.webkitURL;var ee=We(this.events,!0),ue;try{for(ee.s();!(ue=ee.n()).done;){var pe=ue.value;this.on(pe,this.options[pe])}}catch(Me){ee.e(Me)}finally{ee.f()}this.on("uploadprogress",function(){return P.updateTotalUploadProgress()}),this.on("removedfile",function(){return P.updateTotalUploadProgress()}),this.on("canceled",function(Me){return P.emit("complete",Me)}),this.on("complete",function(Me){if(P.getAddedFiles().length===0&&P.getUploadingFiles().length===0&&P.getQueuedFiles().length===0)return setTimeout(function(){return P.emit("queuecomplete")},0)});var ge=function(Se){if(Se.dataTransfer.types){for(var Ke=0;Ke")),ee+='');var ue=Z.createElement(ee);return this.element.tagName!=="FORM"?(N=Z.createElement('
')),N.appendChild(ue)):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),N!=null?N:ue}},{key:"getExistingFallback",value:function(){for(var P=function(Le){var Me=We(Le,!0),Se;try{for(Me.s();!(Se=Me.n()).done;){var Ke=Se.value;if(/(^| )fallback($| )/.test(Ke.className))return Ke}}catch(_t){Me.e(_t)}finally{Me.f()}},N=0,ee=["div","form"];N0){for(var ue=["tb","gb","mb","kb","b"],pe=0;pe=Le){N=P/Math.pow(this.options.filesizeBase,4-pe),ee=ge;break}}N=Math.round(10*N)/10}return"".concat(N," ").concat(this.options.dictFileSizeUnits[ee])}},{key:"_updateMaxFilesReachedClass",value:function(){return this.options.maxFiles!=null&&this.getAcceptedFiles().length>=this.options.maxFiles?(this.getAcceptedFiles().length===this.options.maxFiles&&this.emit("maxfilesreached",this.files),this.element.classList.add("dz-max-files-reached")):this.element.classList.remove("dz-max-files-reached")}},{key:"drop",value:function(P){if(!!P.dataTransfer){this.emit("drop",P);for(var N=[],ee=0;ee0){var Se=We(Me,!0),Ke;try{for(Se.s();!(Ke=Se.n()).done;){var _t=Ke.value;_t.isFile?_t.file(function(mt){if(!(ee.options.ignoreHiddenFiles&&mt.name.substring(0,1)==="."))return mt.fullPath="".concat(N,"/").concat(mt.name),ee.addFile(mt)}):_t.isDirectory&&ee._addFilesFromDirectory(_t,"".concat(N,"/").concat(_t.name))}}catch(mt){Se.e(mt)}finally{Se.f()}Le()}return null},pe)};return ge()}},{key:"accept",value:function(P,N){this.options.maxFilesize&&P.size>this.options.maxFilesize*1024*1024?N(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(P.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):Z.isValidFile(P,this.options.acceptedFiles)?this.options.maxFiles!=null&&this.getAcceptedFiles().length>=this.options.maxFiles?(N(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",P)):this.options.accept.call(this,P,N):N(this.options.dictInvalidFileType)}},{key:"addFile",value:function(P){var N=this;P.upload={uuid:Z.uuidv4(),progress:0,total:P.size,bytesSent:0,filename:this._renameFile(P)},this.files.push(P),P.status=Z.ADDED,this.emit("addedfile",P),this._enqueueThumbnail(P),this.accept(P,function(ee){ee?(P.accepted=!1,N._errorProcessing([P],ee)):(P.accepted=!0,N.options.autoQueue&&N.enqueueFile(P)),N._updateMaxFilesReachedClass()})}},{key:"enqueueFiles",value:function(P){var N=We(P,!0),ee;try{for(N.s();!(ee=N.n()).done;){var ue=ee.value;this.enqueueFile(ue)}}catch(pe){N.e(pe)}finally{N.f()}return null}},{key:"enqueueFile",value:function(P){var N=this;if(P.status===Z.ADDED&&P.accepted===!0){if(P.status=Z.QUEUED,this.options.autoProcessQueue)return setTimeout(function(){return N.processQueue()},0)}else throw new Error("This file can't be queued because it has already been processed or was rejected.")}},{key:"_enqueueThumbnail",value:function(P){var N=this;if(this.options.createImageThumbnails&&P.type.match(/image.*/)&&P.size<=this.options.maxThumbnailFilesize*1024*1024)return this._thumbnailQueue.push(P),setTimeout(function(){return N._processThumbnailQueue()},0)}},{key:"_processThumbnailQueue",value:function(){var P=this;if(!(this._processingThumbnail||this._thumbnailQueue.length===0)){this._processingThumbnail=!0;var N=this._thumbnailQueue.shift();return this.createThumbnail(N,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,!0,function(ee){return P.emit("thumbnail",N,ee),P._processingThumbnail=!1,P._processThumbnailQueue()})}}},{key:"removeFile",value:function(P){if(P.status===Z.UPLOADING&&this.cancelUpload(P),this.files=Ht(this.files,P),this.emit("removedfile",P),this.files.length===0)return this.emit("reset")}},{key:"removeAllFiles",value:function(P){P==null&&(P=!1);var N=We(this.files.slice(),!0),ee;try{for(N.s();!(ee=N.n()).done;){var ue=ee.value;(ue.status!==Z.UPLOADING||P)&&this.removeFile(ue)}}catch(pe){N.e(pe)}finally{N.f()}return null}},{key:"resizeImage",value:function(P,N,ee,ue,pe){var ge=this;return this.createThumbnail(P,N,ee,ue,!0,function(Le,Me){if(Me==null)return pe(P);var Se=ge.options.resizeMimeType;Se==null&&(Se=P.type);var Ke=Me.toDataURL(Se,ge.options.resizeQuality);return(Se==="image/jpeg"||Se==="image/jpg")&&(Ke=$r.restore(P.dataURL,Ke)),pe(Z.dataURItoBlob(Ke))})}},{key:"createThumbnail",value:function(P,N,ee,ue,pe,ge){var Le=this,Me=new FileReader;Me.onload=function(){if(P.dataURL=Me.result,P.type==="image/svg+xml"){ge!=null&&ge(Me.result);return}Le.createThumbnailFromUrl(P,N,ee,ue,pe,ge)},Me.readAsDataURL(P)}},{key:"displayExistingFile",value:function(P,N,ee,ue){var pe=this,ge=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0;if(this.emit("addedfile",P),this.emit("complete",P),!ge)this.emit("thumbnail",P,N),ee&&ee();else{var Le=function(Se){pe.emit("thumbnail",P,Se),ee&&ee()};P.dataURL=N,this.createThumbnailFromUrl(P,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.resizeMethod,this.options.fixOrientation,Le,ue)}}},{key:"createThumbnailFromUrl",value:function(P,N,ee,ue,pe,ge,Le){var Me=this,Se=document.createElement("img");return Le&&(Se.crossOrigin=Le),pe=getComputedStyle(document.body).imageOrientation=="from-image"?!1:pe,Se.onload=function(){var Ke=function(mt){return mt(1)};return typeof EXIF!="undefined"&&EXIF!==null&&pe&&(Ke=function(mt){return EXIF.getData(Se,function(){return mt(EXIF.getTag(this,"Orientation"))})}),Ke(function(_t){P.width=Se.width,P.height=Se.height;var mt=Me.options.resize.call(Me,P,N,ee,ue),H=document.createElement("canvas"),oe=H.getContext("2d");switch(H.width=mt.trgWidth,H.height=mt.trgHeight,_t>4&&(H.width=mt.trgHeight,H.height=mt.trgWidth),_t){case 2:oe.translate(H.width,0),oe.scale(-1,1);break;case 3:oe.translate(H.width,H.height),oe.rotate(Math.PI);break;case 4:oe.translate(0,H.height),oe.scale(1,-1);break;case 5:oe.rotate(.5*Math.PI),oe.scale(1,-1);break;case 6:oe.rotate(.5*Math.PI),oe.translate(0,-H.width);break;case 7:oe.rotate(.5*Math.PI),oe.translate(H.height,-H.width),oe.scale(-1,1);break;case 8:oe.rotate(-.5*Math.PI),oe.translate(-H.height,0);break}hr(oe,Se,mt.srcX!=null?mt.srcX:0,mt.srcY!=null?mt.srcY:0,mt.srcWidth,mt.srcHeight,mt.trgX!=null?mt.trgX:0,mt.trgY!=null?mt.trgY:0,mt.trgWidth,mt.trgHeight);var he=H.toDataURL("image/png");if(ge!=null)return ge(he,H)})},ge!=null&&(Se.onerror=ge),Se.src=P.dataURL}},{key:"processQueue",value:function(){var P=this.options.parallelUploads,N=this.getUploadingFiles().length,ee=N;if(!(N>=P)){var ue=this.getQueuedFiles();if(ue.length>0){if(this.options.uploadMultiple)return this.processFiles(ue.slice(0,P-N));for(;ee1?N-1:0),ue=1;ueN.options.chunkSize),P[0].upload.totalChunkCount=Math.ceil(ue.size/N.options.chunkSize)}if(P[0].upload.chunked){var pe=P[0],ge=ee[0],Le=0;pe.upload.chunks=[];var Me=function(){for(var H=0;pe.upload.chunks[H]!==void 0;)H++;if(!(H>=pe.upload.totalChunkCount)){Le++;var oe=H*N.options.chunkSize,he=Math.min(oe+N.options.chunkSize,ge.size),Ce={name:N._getParamName(0),data:ge.webkitSlice?ge.webkitSlice(oe,he):ge.slice(oe,he),filename:pe.upload.filename,chunkIndex:H};pe.upload.chunks[H]={file:pe,index:H,dataBlock:Ce,status:Z.UPLOADING,progress:0,retries:0},N._uploadData(P,[Ce])}};if(pe.upload.finishedChunkUpload=function(mt,H){var oe=!0;mt.status=Z.SUCCESS,mt.dataBlock=null,mt.xhr=null;for(var he=0;he1?N-1:0),ue=1;ue=ee;ue?N++:N--)P[N]=ie.charCodeAt(N);return new Blob([re],{type:Z})};var Ht=function(ie,Z){return ie.filter(function(re){return re!==Z}).map(function(re){return re})},Ir=function(ie){return ie.replace(/[\-_](\w)/g,function(Z){return Z.charAt(1).toUpperCase()})};st.createElement=function(ne){var ie=document.createElement("div");return ie.innerHTML=ne,ie.childNodes[0]},st.elementInside=function(ne,ie){if(ne===ie)return!0;for(;ne=ne.parentNode;)if(ne===ie)return!0;return!1},st.getElement=function(ne,ie){var Z;if(typeof ne=="string"?Z=document.querySelector(ne):ne.nodeType!=null&&(Z=ne),Z==null)throw new Error("Invalid `".concat(ie,"` option provided. Please provide a CSS selector or a plain HTML element."));return Z},st.getElements=function(ne,ie){var Z,re;if(ne instanceof Array){re=[];try{var P=We(ne,!0),N;try{for(P.s();!(N=P.n()).done;)Z=N.value,re.push(this.getElement(Z,ie))}catch(pe){P.e(pe)}finally{P.f()}}catch(pe){re=null}}else if(typeof ne=="string"){re=[];var ee=We(document.querySelectorAll(ne),!0),ue;try{for(ee.s();!(ue=ee.n()).done;)Z=ue.value,re.push(Z)}catch(pe){ee.e(pe)}finally{ee.f()}}else ne.nodeType!=null&&(re=[ne]);if(re==null||!re.length)throw new Error("Invalid `".concat(ie,"` option provided. Please provide a CSS selector, a plain HTML element or a list of those."));return re},st.confirm=function(ne,ie,Z){if(window.confirm(ne))return ie();if(Z!=null)return Z()},st.isValidFile=function(ne,ie){if(!ie)return!0;ie=ie.split(",");var Z=ne.type,re=Z.replace(/\/.*$/,""),P=We(ie,!0),N;try{for(P.s();!(N=P.n()).done;){var ee=N.value;if(ee=ee.trim(),ee.charAt(0)==="."){if(ne.name.toLowerCase().indexOf(ee.toLowerCase(),ne.name.length-ee.length)!==-1)return!0}else if(/\/\*$/.test(ee)){if(re===ee.replace(/\/.*$/,""))return!0}else if(Z===ee)return!0}}catch(ue){P.e(ue)}finally{P.f()}return!1},typeof jQuery!="undefined"&&jQuery!==null&&(jQuery.fn.dropzone=function(ne){return this.each(function(){return new st(this,ne)})}),st.ADDED="added",st.QUEUED="queued",st.ACCEPTED=st.QUEUED,st.UPLOADING="uploading",st.PROCESSING=st.UPLOADING,st.CANCELED="canceled",st.ERROR="error",st.SUCCESS="success";var dr=function(ie){var Z=ie.naturalWidth,re=ie.naturalHeight,P=document.createElement("canvas");P.width=1,P.height=re;var N=P.getContext("2d");N.drawImage(ie,0,0);for(var ee=N.getImageData(1,0,1,re),ue=ee.data,pe=0,ge=re,Le=re;Le>pe;){var Me=ue[(Le-1)*4+3];Me===0?ge=Le:pe=Le,Le=ge+pe>>1}var Se=Le/re;return Se===0?1:Se},hr=function(ie,Z,re,P,N,ee,ue,pe,ge,Le){var Me=dr(Z);return ie.drawImage(Z,re,P,N,ee,ue,pe,ge,Le/Me)},$r=function(){function ne(){cr(this,ne)}return Mt(ne,null,[{key:"initClass",value:function(){this.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}},{key:"encode64",value:function(Z){for(var re="",P=void 0,N=void 0,ee="",ue=void 0,pe=void 0,ge=void 0,Le="",Me=0;P=Z[Me++],N=Z[Me++],ee=Z[Me++],ue=P>>2,pe=(P&3)<<4|N>>4,ge=(N&15)<<2|ee>>6,Le=ee&63,isNaN(N)?ge=Le=64:isNaN(ee)&&(Le=64),re=re+this.KEY_STR.charAt(ue)+this.KEY_STR.charAt(pe)+this.KEY_STR.charAt(ge)+this.KEY_STR.charAt(Le),P=N=ee="",ue=pe=ge=Le="",MeZ.length)break}return P}},{key:"decode64",value:function(Z){var re="",P=void 0,N=void 0,ee="",ue=void 0,pe=void 0,ge=void 0,Le="",Me=0,Se=[],Ke=/[^A-Za-z0-9\+\/\=]/g;for(Ke.exec(Z)&&console.warn(`There were invalid base64 characters in the input text. Valid base64 characters are A-Z, a-z, 0-9, '+', '/',and '=' Expect errors in decoding.`),Z=Z.replace(/[^A-Za-z0-9\+\/\=]/g,"");ue=this.KEY_STR.indexOf(Z.charAt(Me++)),pe=this.KEY_STR.indexOf(Z.charAt(Me++)),ge=this.KEY_STR.indexOf(Z.charAt(Me++)),Le=this.KEY_STR.indexOf(Z.charAt(Me++)),P=ue<<2|pe>>4,N=(pe&15)<<4|ge>>2,ee=(ge&3)<<6|Le,Se.push(P),ge!==64&&Se.push(N),Le!==64&&Se.push(ee),P=N=ee="",ue=pe=ge=Le="",Me{h0.exports={Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",amp:"&",AMP:"&",andand:"\u2A55",And:"\u2A53",and:"\u2227",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angmsd:"\u2221",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",apacir:"\u2A6F",ap:"\u2248",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250C",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252C",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxhu:"\u2534",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxul:"\u2518",boxuL:"\u255B",boxUl:"\u255C",boxUL:"\u255D",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255A",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253C",boxvH:"\u256A",boxVh:"\u256B",boxVH:"\u256C",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251C",boxvR:"\u255E",boxVr:"\u255F",boxVR:"\u2560",bprime:"\u2035",breve:"\u02D8",Breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",Bscr:"\u212C",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsolb:"\u29C5",bsol:"\\",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",cap:"\u2229",Cap:"\u22D2",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",CenterDot:"\xB7",cfr:"\u{1D520}",Cfr:"\u212D",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cir:"\u25CB",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",conint:"\u222E",Conint:"\u222F",ContourIntegral:"\u222E",copf:"\u{1D554}",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xA9",COPY:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",cross:"\u2717",Cross:"\u2A2F",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cupbrcap:"\u2A48",cupcap:"\u2A46",CupCap:"\u224D",cup:"\u222A",Cup:"\u22D3",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",Darr:"\u21A1",dArr:"\u21D3",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",ddagger:"\u2021",ddarr:"\u21CA",DD:"\u2145",dd:"\u2146",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",diamond:"\u22C4",Diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrowBar:"\u2913",downarrow:"\u2193",DownArrow:"\u2193",Downarrow:"\u21D3",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVectorBar:"\u2956",DownLeftVector:"\u21BD",DownRightTeeVector:"\u295F",DownRightVectorBar:"\u2957",DownRightVector:"\u21C1",DownTeeArrow:"\u21A7",DownTee:"\u22A4",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",Ecirc:"\xCA",ecirc:"\xEA",ecir:"\u2256",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",edot:"\u0117",eDot:"\u2251",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",escr:"\u212F",Escr:"\u2130",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",forall:"\u2200",ForAll:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",Fscr:"\u2131",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",ge:"\u2265",gE:"\u2267",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",gescc:"\u2AA9",ges:"\u2A7E",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",gg:"\u226B",Gg:"\u22D9",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gla:"\u2AA5",gl:"\u2277",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gnE:"\u2269",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gt:">",GT:">",Gt:"\u226B",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",harrcir:"\u2948",harr:"\u2194",hArr:"\u21D4",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",Hfr:"\u210C",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",Hopf:"\u210D",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\u{1D4BD}",Hscr:"\u210B",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",Ifr:"\u2111",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",Im:"\u2111",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",incare:"\u2105",in:"\u2208",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",intcal:"\u22BA",int:"\u222B",Int:"\u222C",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",Iscr:"\u2110",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",lang:"\u27E8",Lang:"\u27EA",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",larrb:"\u21E4",larrbfs:"\u291F",larr:"\u2190",Larr:"\u219E",lArr:"\u21D0",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",latail:"\u2919",lAtail:"\u291B",lat:"\u2AAB",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lBarr:"\u290E",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27E8",LeftArrowBar:"\u21E4",leftarrow:"\u2190",LeftArrow:"\u2190",Leftarrow:"\u21D0",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVectorBar:"\u2959",LeftDownVector:"\u21C3",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTeeArrow:"\u21A4",LeftTee:"\u22A3",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangleBar:"\u29CF",LeftTriangle:"\u22B2",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVectorBar:"\u2958",LeftUpVector:"\u21BF",LeftVectorBar:"\u2952",LeftVector:"\u21BC",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",lescc:"\u2AA8",les:"\u2A7D",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",llarr:"\u21C7",ll:"\u226A",Ll:"\u22D8",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoustache:"\u23B0",lmoust:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lnE:"\u2268",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftrightarrow:"\u27F7",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longmapsto:"\u27FC",longrightarrow:"\u27F6",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",Lscr:"\u2112",lsh:"\u21B0",Lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",lt:"<",LT:"<",Lt:"\u226A",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midast:"*",midcir:"\u2AF0",mid:"\u2223",middot:"\xB7",minusb:"\u229F",minus:"\u2212",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",Mscr:"\u2133",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natural:"\u266E",naturals:"\u2115",natur:"\u266E",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21D7",nearrow:"\u2197",ne:"\u2260",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:` `,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangle:"\u22EB",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",nprec:"\u2280",npreceq:"\u2AAF\u0338",npre:"\u2AAF\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",Ocirc:"\xD4",ocirc:"\xF4",ocir:"\u229A",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",orarr:"\u21BB",Or:"\u2A54",or:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",otimesas:"\u2A36",Otimes:"\u2A37",otimes:"\u2297",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",para:"\xB6",parallel:"\u2225",par:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plus:"+",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",popf:"\u{1D561}",Popf:"\u2119",pound:"\xA3",prap:"\u2AB7",Pr:"\u2ABB",pr:"\u227A",prcue:"\u227C",precapprox:"\u2AB7",prec:"\u227A",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",pre:"\u2AAF",prE:"\u2AB3",precsim:"\u227E",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportional:"\u221D",Proportion:"\u2237",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",Qopf:"\u211A",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',QUOT:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",Rang:"\u27EB",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarr:"\u2192",Rarr:"\u21A0",rArr:"\u21D2",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",rAtail:"\u291C",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rBarr:"\u290F",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",Re:"\u211C",rect:"\u25AD",reg:"\xAE",REG:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",Rfr:"\u211C",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrowBar:"\u21E5",rightarrow:"\u2192",RightArrow:"\u2192",Rightarrow:"\u21D2",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVectorBar:"\u2955",RightDownVector:"\u21C2",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTeeArrow:"\u21A6",RightTee:"\u22A2",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangleBar:"\u29D0",RightTriangle:"\u22B3",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVectorBar:"\u2954",RightUpVector:"\u21BE",RightVectorBar:"\u2953",RightVector:"\u21C0",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoustache:"\u23B1",rmoust:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",Ropf:"\u211D",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",rscr:"\u{1D4C7}",Rscr:"\u211B",rsh:"\u21B1",Rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",Sc:"\u2ABC",sc:"\u227B",sccue:"\u227D",sce:"\u2AB0",scE:"\u2AB4",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdotb:"\u22A1",sdot:"\u22C5",sdote:"\u2A66",searhk:"\u2925",searr:"\u2198",seArr:"\u21D8",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",solbar:"\u233F",solb:"\u29C4",sol:"/",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",square:"\u25A1",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squ:"\u25A1",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",Sub:"\u22D0",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",Subset:"\u22D0",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succapprox:"\u2AB8",succ:"\u227B",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",sum:"\u2211",Sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",Sup:"\u22D1",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",Supset:"\u22D1",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21D9",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",tilde:"\u02DC",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",timesbar:"\u2A31",timesb:"\u22A0",times:"\xD7",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",topbot:"\u2336",topcir:"\u2AF1",top:"\u22A4",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",uarr:"\u2191",Uarr:"\u219F",uArr:"\u21D1",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrowBar:"\u2912",uparrow:"\u2191",UpArrow:"\u2191",Uparrow:"\u21D1",UpArrowDownArrow:"\u21C5",updownarrow:"\u2195",UpDownArrow:"\u2195",Updownarrow:"\u21D5",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03C5",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTeeArrow:"\u21A5",UpTee:"\u22A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",vArr:"\u21D5",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vBar:"\u2AE8",Vbar:"\u2AEB",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",vdash:"\u22A2",vDash:"\u22A8",Vdash:"\u22A9",VDash:"\u22AB",Vdashl:"\u2AE6",veebar:"\u22BB",vee:"\u2228",Vee:"\u22C1",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",Wedge:"\u22C0",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xharr:"\u27F7",xhArr:"\u27FA",Xi:"\u039E",xi:"\u03BE",xlarr:"\u27F5",xlArr:"\u27F8",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrarr:"\u27F6",xrArr:"\u27F9",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",yuml:"\xFF",Yuml:"\u0178",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",zfr:"\u{1D537}",Zfr:"\u2128",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",Zopf:"\u2124",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}});var ol=Fe((FS,rp)=>{"use strict";rp.exports=tp()});var _a=Fe((MS,np)=>{np.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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\u09FD\u0A76\u0AF0\u0C84\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-\u2E4E\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]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/});var ap=Fe((OS,op)=>{"use strict";var ip={};function p0(i){var t,n,l=ip[i];if(l)return l;for(l=ip[i]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?l.push(n):l.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t=55296&&d<=57343){if(d>=55296&&d<=56319&&l+1=56320&&a<=57343)){f+=encodeURIComponent(i[l]+i[l+1]),l++;continue}f+="%EF%BF%BD";continue}f+=encodeURIComponent(i[l])}return f}Sa.defaultChars=";/?:@&=+$,-_.!~*'()#";Sa.componentChars="-_.!~*'()";op.exports=Sa});var up=Fe((PS,lp)=>{"use strict";var sp={};function m0(i){var t,n,l=sp[i];if(l)return l;for(l=sp[i]=[],t=0;t<128;t++)n=String.fromCharCode(t),l.push(n);for(t=0;t=55296&&y<=57343?g+="\uFFFD\uFFFD\uFFFD":g+=String.fromCharCode(y),c+=6;continue}if((a&248)==240&&c+91114111?g+="\uFFFD\uFFFD\uFFFD\uFFFD":(y-=65536,g+=String.fromCharCode(55296+(y>>10),56320+(y&1023))),c+=9;continue}g+="\uFFFD"}return g})}Ea.defaultChars=";/?:@&=+$,#";Ea.componentChars="";lp.exports=Ea});var fp=Fe((RS,cp)=>{"use strict";cp.exports=function(t){var n="";return n+=t.protocol||"",n+=t.slashes?"//":"",n+=t.auth?t.auth+"@":"",t.hostname&&t.hostname.indexOf(":")!==-1?n+="["+t.hostname+"]":n+=t.hostname||"",n+=t.port?":"+t.port:"",n+=t.pathname||"",n+=t.search||"",n+=t.hash||"",n}});var yp=Fe((zS,vp)=>{"use strict";function Ca(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var g0=/^([a-z0-9.+-]+:)/i,v0=/:[0-9]*$/,y0=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,b0=["<",">",'"',"`"," ","\r",` `," "],x0=["{","}","|","\\","^","`"].concat(b0),w0=["'"].concat(x0),dp=["%","/","?",";","#"].concat(w0),hp=["/","?","#"],k0=255,pp=/^[+a-z0-9A-Z_-]{0,63}$/,_0=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,mp={javascript:!0,"javascript:":!0},gp={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function S0(i,t){if(i&&i instanceof Ca)return i;var n=new Ca;return n.parse(i,t),n}Ca.prototype.parse=function(i,t){var n,l,c,d,a,h=i;if(h=h.trim(),!t&&i.split("#").length===1){var f=y0.exec(h);if(f)return this.pathname=f[1],f[2]&&(this.search=f[2]),this}var p=g0.exec(h);if(p&&(p=p[0],c=p.toLowerCase(),this.protocol=p,h=h.substr(p.length)),(t||p||h.match(/^\/\/[^@\/]+@[^@\/]+/))&&(a=h.substr(0,2)==="//",a&&!(p&&mp[p])&&(h=h.substr(2),this.slashes=!0)),!mp[p]&&(a||p&&!gp[p])){var y=-1;for(n=0;n127?I+="x":I+=w[S];if(!I.match(pp)){var O=_.slice(0,n),U=_.slice(n+1),$=w.match(_0);$&&(O.push($[1]),U.unshift($[2])),U.length&&(h=U.join(".")+h),this.hostname=O.join(".");break}}}}this.hostname.length>k0&&(this.hostname=""),k&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var J=h.indexOf("#");J!==-1&&(this.hash=h.substr(J),h=h.slice(0,J));var K=h.indexOf("?");return K!==-1&&(this.search=h.substr(K),h=h.slice(0,K)),h&&(this.pathname=h),gp[c]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Ca.prototype.parseHost=function(i){var t=v0.exec(i);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),i=i.substr(0,i.length-t.length)),i&&(this.hostname=i)};vp.exports=S0});var al=Fe((NS,ho)=>{"use strict";ho.exports.encode=ap();ho.exports.decode=up();ho.exports.format=fp();ho.exports.parse=yp()});var sl=Fe((BS,bp)=>{bp.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/});var ll=Fe((qS,xp)=>{xp.exports=/[\0-\x1F\x7F-\x9F]/});var kp=Fe((jS,wp)=>{wp.exports=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/});var ul=Fe(($S,_p)=>{_p.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/});var Sp=Fe(bi=>{"use strict";bi.Any=sl();bi.Cc=ll();bi.Cf=kp();bi.P=_a();bi.Z=ul()});var Ft=Fe(ar=>{"use strict";function E0(i){return Object.prototype.toString.call(i)}function C0(i){return E0(i)==="[object String]"}var T0=Object.prototype.hasOwnProperty;function Ep(i,t){return T0.call(i,t)}function A0(i){var t=Array.prototype.slice.call(arguments,1);return t.forEach(function(n){if(!!n){if(typeof n!="object")throw new TypeError(n+"must be object");Object.keys(n).forEach(function(l){i[l]=n[l]})}}),i}function L0(i,t,n){return[].concat(i.slice(0,t),n,i.slice(t+1))}function Cp(i){return!(i>=55296&&i<=57343||i>=64976&&i<=65007||(i&65535)==65535||(i&65535)==65534||i>=0&&i<=8||i===11||i>=14&&i<=31||i>=127&&i<=159||i>1114111)}function Tp(i){if(i>65535){i-=65536;var t=55296+(i>>10),n=56320+(i&1023);return String.fromCharCode(t,n)}return String.fromCharCode(i)}var Ap=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,D0=/&([a-z#][a-z0-9]{1,31});/gi,I0=new RegExp(Ap.source+"|"+D0.source,"gi"),F0=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,Lp=ol();function M0(i,t){var n=0;return Ep(Lp,t)?Lp[t]:t.charCodeAt(0)===35&&F0.test(t)&&(n=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10),Cp(n))?Tp(n):i}function O0(i){return i.indexOf("\\")<0?i:i.replace(Ap,"$1")}function P0(i){return i.indexOf("\\")<0&&i.indexOf("&")<0?i:i.replace(I0,function(t,n,l){return n||M0(t,l)})}var R0=/[&<>"]/,z0=/[&<>"]/g,N0={"&":"&","<":"<",">":">",'"':"""};function B0(i){return N0[i]}function q0(i){return R0.test(i)?i.replace(z0,B0):i}var j0=/[.?*+^$[\]\\(){}|-]/g;function $0(i){return i.replace(j0,"\\$&")}function U0(i){switch(i){case 9:case 32:return!0}return!1}function H0(i){if(i>=8192&&i<=8202)return!0;switch(i){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var W0=_a();function G0(i){return W0.test(i)}function K0(i){switch(i){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function V0(i){return i=i.trim().replace(/\s+/g," "),"\u1E9E".toLowerCase()==="\u1E7E"&&(i=i.replace(/ẞ/g,"\xDF")),i.toLowerCase().toUpperCase()}ar.lib={};ar.lib.mdurl=al();ar.lib.ucmicro=Sp();ar.assign=A0;ar.isString=C0;ar.has=Ep;ar.unescapeMd=O0;ar.unescapeAll=P0;ar.isValidEntityCode=Cp;ar.fromCodePoint=Tp;ar.escapeHtml=q0;ar.arrayReplaceAt=L0;ar.isSpace=U0;ar.isWhiteSpace=H0;ar.isMdAsciiPunct=K0;ar.isPunctChar=G0;ar.escapeRE=$0;ar.normalizeReference=V0});var Ip=Fe((WS,Dp)=>{"use strict";Dp.exports=function(t,n,l){var c,d,a,h,f=-1,p=t.posMax,y=t.pos;for(t.pos=n+1,c=1;t.pos{"use strict";var Fp=Ft().unescapeAll;Mp.exports=function(t,n,l){var c,d,a=0,h=n,f={ok:!1,pos:0,lines:0,str:""};if(t.charCodeAt(n)===60){for(n++;n32))return f;if(c===41){if(d===0)break;d--}n++}return h===n||d!==0||(f.str=Fp(t.slice(h,n)),f.lines=a,f.pos=n,f.ok=!0),f}});var Rp=Fe((KS,Pp)=>{"use strict";var Y0=Ft().unescapeAll;Pp.exports=function(t,n,l){var c,d,a=0,h=n,f={ok:!1,pos:0,lines:0,str:""};if(n>=l||(d=t.charCodeAt(n),d!==34&&d!==39&&d!==40))return f;for(n++,d===40&&(d=41);n{"use strict";Ta.parseLinkLabel=Ip();Ta.parseLinkDestination=Op();Ta.parseLinkTitle=Rp()});var Bp=Fe((YS,Np)=>{"use strict";var X0=Ft().assign,Z0=Ft().unescapeAll,$n=Ft().escapeHtml,tn={};tn.code_inline=function(i,t,n,l,c){var d=i[t];return""+$n(i[t].content)+""};tn.code_block=function(i,t,n,l,c){var d=i[t];return""+$n(i[t].content)+` `};tn.fence=function(i,t,n,l,c){var d=i[t],a=d.info?Z0(d.info).trim():"",h="",f="",p,y,g,v,b;return a&&(g=a.split(/(\s+)/g),h=g[0],f=g.slice(2).join("")),n.highlight?p=n.highlight(d.content,h,f)||$n(d.content):p=$n(d.content),p.indexOf(""+p+` `):"
"+p+`
`};tn.image=function(i,t,n,l,c){var d=i[t];return d.attrs[d.attrIndex("alt")][1]=c.renderInlineAsText(d.children,n,l),c.renderToken(i,t,n)};tn.hardbreak=function(i,t,n){return n.xhtmlOut?`
`:`
`};tn.softbreak=function(i,t,n){return n.breaks?n.xhtmlOut?`
`:`
`:` `};tn.text=function(i,t){return $n(i[t].content)};tn.html_block=function(i,t){return i[t].content};tn.html_inline=function(i,t){return i[t].content};function xi(){this.rules=X0({},tn)}xi.prototype.renderAttrs=function(t){var n,l,c;if(!t.attrs)return"";for(c="",n=0,l=t.attrs.length;n `:">",d)};xi.prototype.renderInline=function(i,t,n){for(var l,c="",d=this.rules,a=0,h=i.length;a{"use strict";function Kr(){this.__rules__=[],this.__cache__=null}Kr.prototype.__find__=function(i){for(var t=0;t{"use strict";var Q0=/\r\n?|\n/g,J0=/\0/g;jp.exports=function(t){var n;n=t.src.replace(Q0,` `),n=n.replace(J0,"\uFFFD"),t.src=n}});var Hp=Fe((QS,Up)=>{"use strict";Up.exports=function(t){var n;t.inlineMode?(n=new t.Token("inline","",0),n.content=t.src,n.map=[0,1],n.children=[],t.tokens.push(n)):t.md.block.parse(t.src,t.md,t.env,t.tokens)}});var Gp=Fe((JS,Wp)=>{"use strict";Wp.exports=function(t){var n=t.tokens,l,c,d;for(c=0,d=n.length;c{"use strict";var ew=Ft().arrayReplaceAt;function tw(i){return/^\s]/i.test(i)}function rw(i){return/^<\/a\s*>/i.test(i)}Kp.exports=function(t){var n,l,c,d,a,h,f,p,y,g,v,b,k,_,w,I,S=t.tokens,R;if(!!t.md.options.linkify){for(l=0,c=S.length;l=0;n--){if(h=d[n],h.type==="link_close"){for(n--;d[n].level!==h.level&&d[n].type!=="link_open";)n--;continue}if(h.type==="html_inline"&&(tw(h.content)&&k>0&&k--,rw(h.content)&&k++),!(k>0)&&h.type==="text"&&t.md.linkify.test(h.content)){for(y=h.content,R=t.md.linkify.match(y),f=[],b=h.level,v=0,p=0;pv&&(a=new t.Token("text","",0),a.content=y.slice(v,g),a.level=b,f.push(a)),a=new t.Token("link_open","a",1),a.attrs=[["href",w]],a.level=b++,a.markup="linkify",a.info="auto",f.push(a),a=new t.Token("text","",0),a.content=I,a.level=b,f.push(a),a=new t.Token("link_close","a",-1),a.level=--b,a.markup="linkify",a.info="auto",f.push(a),v=R[p].lastIndex);v{"use strict";var Yp=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,nw=/\((c|tm|r|p)\)/i,iw=/\((c|tm|r|p)\)/ig,ow={c:"\xA9",r:"\xAE",p:"\xA7",tm:"\u2122"};function aw(i,t){return ow[t.toLowerCase()]}function sw(i){var t,n,l=0;for(t=i.length-1;t>=0;t--)n=i[t],n.type==="text"&&!l&&(n.content=n.content.replace(iw,aw)),n.type==="link_open"&&n.info==="auto"&&l--,n.type==="link_close"&&n.info==="auto"&&l++}function lw(i){var t,n,l=0;for(t=i.length-1;t>=0;t--)n=i[t],n.type==="text"&&!l&&Yp.test(n.content)&&(n.content=n.content.replace(/\+-/g,"\xB1").replace(/\.{2,}/g,"\u2026").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1\u2014").replace(/(^|\s)--(?=\s|$)/mg,"$1\u2013").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1\u2013")),n.type==="link_open"&&n.info==="auto"&&l--,n.type==="link_close"&&n.info==="auto"&&l++}Xp.exports=function(t){var n;if(!!t.md.options.typographer)for(n=t.tokens.length-1;n>=0;n--)t.tokens[n].type==="inline"&&(nw.test(t.tokens[n].content)&&sw(t.tokens[n].children),Yp.test(t.tokens[n].content)&&lw(t.tokens[n].children))}});var im=Fe((r1,nm)=>{"use strict";var Qp=Ft().isWhiteSpace,Jp=Ft().isPunctChar,em=Ft().isMdAsciiPunct,uw=/['"]/,tm=/['"]/g,rm="\u2019";function La(i,t,n){return i.substr(0,t)+n+i.substr(t+1)}function cw(i,t){var n,l,c,d,a,h,f,p,y,g,v,b,k,_,w,I,S,R,O,U,$;for(O=[],n=0;n=0&&!(O[S].level<=f);S--);if(O.length=S+1,l.type!=="text")continue;c=l.content,a=0,h=c.length;e:for(;a=0)y=c.charCodeAt(d.index-1);else for(S=n-1;S>=0&&!(i[S].type==="softbreak"||i[S].type==="hardbreak");S--)if(!!i[S].content){y=i[S].content.charCodeAt(i[S].content.length-1);break}if(g=32,a=48&&y<=57&&(I=w=!1),w&&I&&(w=v,I=b),!w&&!I){R&&(l.content=La(l.content,d.index,rm));continue}if(I){for(S=O.length-1;S>=0&&(p=O[S],!(O[S].level=0;n--)t.tokens[n].type!=="inline"||!uw.test(t.tokens[n].content)||cw(t.tokens[n].children,t)}});var Da=Fe((n1,om)=>{"use strict";function wi(i,t,n){this.type=i,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}wi.prototype.attrIndex=function(t){var n,l,c;if(!this.attrs)return-1;for(n=this.attrs,l=0,c=n.length;l=0&&(l=this.attrs[n][1]),l};wi.prototype.attrJoin=function(t,n){var l=this.attrIndex(t);l<0?this.attrPush([t,n]):this.attrs[l][1]=this.attrs[l][1]+" "+n};om.exports=wi});var lm=Fe((i1,sm)=>{"use strict";var fw=Da();function am(i,t,n){this.src=i,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}am.prototype.Token=fw;sm.exports=am});var cm=Fe((o1,um)=>{"use strict";var dw=Aa(),cl=[["normalize",$p()],["block",Hp()],["inline",Gp()],["linkify",Vp()],["replacements",Zp()],["smartquotes",im()]];function fl(){this.ruler=new dw;for(var i=0;i{"use strict";var dl=Ft().isSpace;function hl(i,t){var n=i.bMarks[t]+i.tShift[t],l=i.eMarks[t];return i.src.substr(n,l-n)}function fm(i){var t=[],n=0,l=i.length,c,d=!1,a=0,h="";for(c=i.charCodeAt(n);nl||(y=n+1,t.sCount[y]=4||(h=t.bMarks[y]+t.tShift[y],h>=t.eMarks[y])||(U=t.src.charCodeAt(h++),U!==124&&U!==45&&U!==58)||h>=t.eMarks[y]||($=t.src.charCodeAt(h++),$!==124&&$!==45&&$!==58&&!dl($))||U===45&&dl($))return!1;for(;h=4||(g=fm(a),g.length&&g[0]===""&&g.shift(),g.length&&g[g.length-1]===""&&g.pop(),v=g.length,v===0||v!==k.length))return!1;if(c)return!0;for(S=t.parentType,t.parentType="table",O=t.md.block.ruler.getRules("blockquote"),b=t.push("table_open","table",1),b.map=w=[n,0],b=t.push("thead_open","thead",1),b.map=[n,n+1],b=t.push("tr_open","tr",1),b.map=[n,n+1],f=0;f=4)break;for(g=fm(a),g.length&&g[0]===""&&g.shift(),g.length&&g[g.length-1]===""&&g.pop(),y===n+2&&(b=t.push("tbody_open","tbody",1),b.map=I=[n+2,0]),b=t.push("tr_open","tr",1),b.map=[y,y+1],f=0;f{"use strict";pm.exports=function(t,n,l){var c,d,a;if(t.sCount[n]-t.blkIndent<4)return!1;for(d=c=n+1;c=4){c++,d=c;continue}break}return t.line=d,a=t.push("code_block","code",0),a.content=t.getLines(n,d,4+t.blkIndent,!0),a.map=[n,t.line],!0}});var vm=Fe((l1,gm)=>{"use strict";gm.exports=function(t,n,l,c){var d,a,h,f,p,y,g,v=!1,b=t.bMarks[n]+t.tShift[n],k=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4||b+3>k||(d=t.src.charCodeAt(b),d!==126&&d!==96)||(p=b,b=t.skipChars(b,d),a=b-p,a<3)||(g=t.src.slice(p,b),h=t.src.slice(b,k),d===96&&h.indexOf(String.fromCharCode(d))>=0))return!1;if(c)return!0;for(f=n;f++,!(f>=l||(b=p=t.bMarks[f]+t.tShift[f],k=t.eMarks[f],b=4)&&(b=t.skipChars(b,d),!(b-p{"use strict";var ym=Ft().isSpace;bm.exports=function(t,n,l,c){var d,a,h,f,p,y,g,v,b,k,_,w,I,S,R,O,U,$,J,K,X=t.lineMax,G=t.bMarks[n]+t.tShift[n],q=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4||t.src.charCodeAt(G++)!==62)return!1;if(c)return!0;for(f=b=t.sCount[n]+1,t.src.charCodeAt(G)===32?(G++,f++,b++,d=!1,O=!0):t.src.charCodeAt(G)===9?(O=!0,(t.bsCount[n]+b)%4==3?(G++,f++,b++,d=!1):d=!0):O=!1,k=[t.bMarks[n]],t.bMarks[n]=G;G=q,S=[t.sCount[n]],t.sCount[n]=b-f,R=[t.tShift[n]],t.tShift[n]=G-t.bMarks[n],$=t.md.block.ruler.getRules("blockquote"),I=t.parentType,t.parentType="blockquote",v=n+1;v=q));v++){if(t.src.charCodeAt(G++)===62&&!K){for(f=b=t.sCount[v]+1,t.src.charCodeAt(G)===32?(G++,f++,b++,d=!1,O=!0):t.src.charCodeAt(G)===9?(O=!0,(t.bsCount[v]+b)%4==3?(G++,f++,b++,d=!1):d=!0):O=!1,k.push(t.bMarks[v]),t.bMarks[v]=G;G=q,_.push(t.bsCount[v]),t.bsCount[v]=t.sCount[v]+1+(O?1:0),S.push(t.sCount[v]),t.sCount[v]=b-f,R.push(t.tShift[v]),t.tShift[v]=G-t.bMarks[v];continue}if(y)break;for(U=!1,h=0,p=$.length;h",J.map=g=[n,0],t.md.block.tokenize(t,n,v),J=t.push("blockquote_close","blockquote",-1),J.markup=">",t.lineMax=X,t.parentType=I,g[1]=t.line,h=0;h{"use strict";var hw=Ft().isSpace;wm.exports=function(t,n,l,c){var d,a,h,f,p=t.bMarks[n]+t.tShift[n],y=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4||(d=t.src.charCodeAt(p++),d!==42&&d!==45&&d!==95))return!1;for(a=1;p{"use strict";var _m=Ft().isSpace;function Sm(i,t){var n,l,c,d;return l=i.bMarks[t]+i.tShift[t],c=i.eMarks[t],n=i.src.charCodeAt(l++),n!==42&&n!==45&&n!==43||l=d||(n=i.src.charCodeAt(c++),n<48||n>57))return-1;for(;;){if(c>=d)return-1;if(n=i.src.charCodeAt(c++),n>=48&&n<=57){if(c-l>=10)return-1;continue}if(n===41||n===46)break;return-1}return c=4||t.listIndent>=0&&t.sCount[n]-t.listIndent>=4&&t.sCount[n]=t.blkIndent&&(z=!0),(q=Em(t,n))>=0){if(g=!0,A=t.bMarks[n]+t.tShift[n],I=Number(t.src.substr(A,q-A-1)),z&&I!==1)return!1}else if((q=Sm(t,n))>=0)g=!1;else return!1;if(z&&t.skipSpaces(q)>=t.eMarks[n])return!1;if(w=t.src.charCodeAt(q-1),c)return!0;for(_=t.tokens.length,g?(F=t.push("ordered_list_open","ol",1),I!==1&&(F.attrs=[["start",I]])):F=t.push("bullet_list_open","ul",1),F.map=k=[n,0],F.markup=String.fromCharCode(w),R=n,T=!1,te=t.md.block.ruler.getRules("list"),$=t.parentType,t.parentType="list";R=S?p=1:p=O-y,p>4&&(p=1),f=y+p,F=t.push("list_item_open","li",1),F.markup=String.fromCharCode(w),F.map=v=[n,0],X=t.tight,K=t.tShift[n],J=t.sCount[n],U=t.listIndent,t.listIndent=t.blkIndent,t.blkIndent=f,t.tight=!0,t.tShift[n]=a-t.bMarks[n],t.sCount[n]=O,a>=S&&t.isEmpty(n+1)?t.line=Math.min(t.line+2,l):t.md.block.tokenize(t,n,l,!0),(!t.tight||T)&&(se=!1),T=t.line-n>1&&t.isEmpty(t.line-1),t.blkIndent=t.listIndent,t.listIndent=U,t.tShift[n]=K,t.sCount[n]=J,t.tight=X,F=t.push("list_item_close","li",-1),F.markup=String.fromCharCode(w),R=n=t.line,v[1]=R,a=t.bMarks[n],R>=l||t.sCount[R]=4)break;for(j=!1,h=0,b=te.length;h{"use strict";var mw=Ft().normalizeReference,Ia=Ft().isSpace;Am.exports=function(t,n,l,c){var d,a,h,f,p,y,g,v,b,k,_,w,I,S,R,O,U=0,$=t.bMarks[n]+t.tShift[n],J=t.eMarks[n],K=n+1;if(t.sCount[n]-t.blkIndent>=4||t.src.charCodeAt($)!==91)return!1;for(;++$3)&&!(t.sCount[K]<0)){for(S=!1,y=0,g=R.length;y{"use strict";Dm.exports=["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","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]});var ml=Fe((p1,pl)=>{"use strict";var gw="[a-zA-Z_:][a-zA-Z0-9:._-]*",vw="[^\"'=<>`\\x00-\\x20]+",yw="'[^']*'",bw='"[^"]*"',xw="(?:"+vw+"|"+yw+"|"+bw+")",ww="(?:\\s+"+gw+"(?:\\s*=\\s*"+xw+")?)",Fm="<[A-Za-z][A-Za-z0-9\\-]*"+ww+"*\\s*\\/?>",Mm="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",kw="|",_w="<[?][\\s\\S]*?[?]>",Sw="]*>",Ew="",Cw=new RegExp("^(?:"+Fm+"|"+Mm+"|"+kw+"|"+_w+"|"+Sw+"|"+Ew+")"),Tw=new RegExp("^(?:"+Fm+"|"+Mm+")");pl.exports.HTML_TAG_RE=Cw;pl.exports.HTML_OPEN_CLOSE_TAG_RE=Tw});var Pm=Fe((m1,Om)=>{"use strict";var Aw=Im(),Lw=ml().HTML_OPEN_CLOSE_TAG_RE,ki=[[/^<(script|pre|style)(?=(\s|>|$))/i,/<\/(script|pre|style)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(Lw.source+"\\s*$"),/^$/,!1]];Om.exports=function(t,n,l,c){var d,a,h,f,p=t.bMarks[n]+t.tShift[n],y=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4||!t.md.options.html||t.src.charCodeAt(p)!==60)return!1;for(f=t.src.slice(p,y),d=0;d{"use strict";var Rm=Ft().isSpace;zm.exports=function(t,n,l,c){var d,a,h,f,p=t.bMarks[n]+t.tShift[n],y=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4||(d=t.src.charCodeAt(p),d!==35||p>=y))return!1;for(a=1,d=t.src.charCodeAt(++p);d===35&&p6||pp&&Rm(t.src.charCodeAt(h-1))&&(y=h),t.line=n+1,f=t.push("heading_open","h"+String(a),1),f.markup="########".slice(0,a),f.map=[n,t.line],f=t.push("inline","",0),f.content=t.src.slice(p,y).trim(),f.map=[n,t.line],f.children=[],f=t.push("heading_close","h"+String(a),-1),f.markup="########".slice(0,a)),!0)}});var qm=Fe((v1,Bm)=>{"use strict";Bm.exports=function(t,n,l){var c,d,a,h,f,p,y,g,v,b=n+1,k,_=t.md.block.ruler.getRules("paragraph");if(t.sCount[n]-t.blkIndent>=4)return!1;for(k=t.parentType,t.parentType="paragraph";b3)){if(t.sCount[b]>=t.blkIndent&&(p=t.bMarks[b]+t.tShift[b],y=t.eMarks[b],p=y)))){g=v===61?1:2;break}if(!(t.sCount[b]<0)){for(d=!1,a=0,h=_.length;a{"use strict";jm.exports=function(t,n){var l,c,d,a,h,f,p=n+1,y=t.md.block.ruler.getRules("paragraph"),g=t.lineMax;for(f=t.parentType,t.parentType="paragraph";p3)&&!(t.sCount[p]<0)){for(c=!1,d=0,a=y.length;d{"use strict";var Um=Da(),Fa=Ft().isSpace;function rn(i,t,n,l){var c,d,a,h,f,p,y,g;for(this.src=i,this.md=t,this.env=n,this.tokens=l,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",d=this.src,g=!1,a=h=p=y=0,f=d.length;h0&&this.level++,this.tokens.push(l),l};rn.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]};rn.prototype.skipEmptyLines=function(t){for(var n=this.lineMax;tn;)if(!Fa(this.src.charCodeAt(--t)))return t+1;return t};rn.prototype.skipChars=function(t,n){for(var l=this.src.length;tl;)if(n!==this.src.charCodeAt(--t))return t+1;return t};rn.prototype.getLines=function(t,n,l,c){var d,a,h,f,p,y,g,v=t;if(t>=n)return"";for(y=new Array(n-t),d=0;vl?y[d]=new Array(a-l+1).join(" ")+this.src.slice(f,p):y[d]=this.src.slice(f,p)}return y.join("")};rn.prototype.Token=Um;Hm.exports=rn});var Km=Fe((x1,Gm)=>{"use strict";var Dw=Aa(),Ma=[["table",hm(),["paragraph","reference"]],["code",mm()],["fence",vm(),["paragraph","reference","blockquote","list"]],["blockquote",xm(),["paragraph","reference","blockquote","list"]],["hr",km(),["paragraph","reference","blockquote","list"]],["list",Tm(),["paragraph","reference","blockquote"]],["reference",Lm()],["html_block",Pm(),["paragraph","reference","blockquote"]],["heading",Nm(),["paragraph","reference","blockquote"]],["lheading",qm()],["paragraph",$m()]];function Oa(){this.ruler=new Dw;for(var i=0;i=n||i.sCount[h]=p){i.line=n;break}for(c=0;c{"use strict";function Iw(i){switch(i){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}Vm.exports=function(t,n){for(var l=t.pos;l{"use strict";var Fw=Ft().isSpace;Xm.exports=function(t,n){var l,c,d=t.pos;if(t.src.charCodeAt(d)!==10)return!1;for(l=t.pending.length-1,c=t.posMax,n||(l>=0&&t.pending.charCodeAt(l)===32?l>=1&&t.pending.charCodeAt(l-1)===32?(t.pending=t.pending.replace(/ +$/,""),t.push("hardbreak","br",0)):(t.pending=t.pending.slice(0,-1),t.push("softbreak","br",0)):t.push("softbreak","br",0)),d++;d{"use strict";var Mw=Ft().isSpace,gl=[];for(var Qm=0;Qm<256;Qm++)gl.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(i){gl[i.charCodeAt(0)]=1});Jm.exports=function(t,n){var l,c=t.pos,d=t.posMax;if(t.src.charCodeAt(c)!==92)return!1;if(c++,c{"use strict";tg.exports=function(t,n){var l,c,d,a,h,f,p,y,g=t.pos,v=t.src.charCodeAt(g);if(v!==96)return!1;for(l=g,g++,c=t.posMax;g{"use strict";vl.exports.tokenize=function(t,n){var l,c,d,a,h,f=t.pos,p=t.src.charCodeAt(f);if(n||p!==126||(c=t.scanDelims(t.pos,!0),a=c.length,h=String.fromCharCode(p),a<2))return!1;for(a%2&&(d=t.push("text","",0),d.content=h,a--),l=0;l{"use strict";bl.exports.tokenize=function(t,n){var l,c,d,a=t.pos,h=t.src.charCodeAt(a);if(n||h!==95&&h!==42)return!1;for(c=t.scanDelims(t.pos,h===42),l=0;l=0;n--)l=t[n],!(l.marker!==95&&l.marker!==42)&&l.end!==-1&&(c=t[l.end],h=n>0&&t[n-1].end===l.end+1&&t[n-1].token===l.token-1&&t[l.end+1].token===c.token+1&&t[n-1].marker===l.marker,a=String.fromCharCode(l.marker),d=i.tokens[l.token],d.type=h?"strong_open":"em_open",d.tag=h?"strong":"em",d.nesting=1,d.markup=h?a+a:a,d.content="",d=i.tokens[c.token],d.type=h?"strong_close":"em_close",d.tag=h?"strong":"em",d.nesting=-1,d.markup=h?a+a:a,d.content="",h&&(i.tokens[t[n-1].token].content="",i.tokens[t[l.end+1].token].content="",n--))}bl.exports.postProcess=function(t){var n,l=t.tokens_meta,c=t.tokens_meta.length;for(ig(t,t.delimiters),n=0;n{"use strict";var Ow=Ft().normalizeReference,wl=Ft().isSpace;og.exports=function(t,n){var l,c,d,a,h,f,p,y,g,v="",b="",k=t.pos,_=t.posMax,w=t.pos,I=!0;if(t.src.charCodeAt(t.pos)!==91||(h=t.pos+1,a=t.md.helpers.parseLinkLabel(t,t.pos,!0),a<0))return!1;if(f=a+1,f<_&&t.src.charCodeAt(f)===40){for(I=!1,f++;f<_&&(c=t.src.charCodeAt(f),!(!wl(c)&&c!==10));f++);if(f>=_)return!1;if(w=f,p=t.md.helpers.parseLinkDestination(t.src,f,t.posMax),p.ok){for(v=t.md.normalizeLink(p.str),t.md.validateLink(v)?f=p.pos:v="",w=f;f<_&&(c=t.src.charCodeAt(f),!(!wl(c)&&c!==10));f++);if(p=t.md.helpers.parseLinkTitle(t.src,f,t.posMax),f<_&&w!==f&&p.ok)for(b=p.str,f=p.pos;f<_&&(c=t.src.charCodeAt(f),!(!wl(c)&&c!==10));f++);}(f>=_||t.src.charCodeAt(f)!==41)&&(I=!0),f++}if(I){if(typeof t.env.references=="undefined")return!1;if(f<_&&t.src.charCodeAt(f)===91?(w=f+1,f=t.md.helpers.parseLinkLabel(t,f),f>=0?d=t.src.slice(w,f++):f=a+1):f=a+1,d||(d=t.src.slice(h,a)),y=t.env.references[Ow(d)],!y)return t.pos=k,!1;v=y.href,b=y.title}return n||(t.pos=h,t.posMax=a,g=t.push("link_open","a",1),g.attrs=l=[["href",v]],b&&l.push(["title",b]),t.md.inline.tokenize(t),g=t.push("link_close","a",-1)),t.pos=f,t.posMax=_,!0}});var lg=Fe((A1,sg)=>{"use strict";var Pw=Ft().normalizeReference,kl=Ft().isSpace;sg.exports=function(t,n){var l,c,d,a,h,f,p,y,g,v,b,k,_,w="",I=t.pos,S=t.posMax;if(t.src.charCodeAt(t.pos)!==33||t.src.charCodeAt(t.pos+1)!==91||(f=t.pos+2,h=t.md.helpers.parseLinkLabel(t,t.pos+1,!1),h<0))return!1;if(p=h+1,p=S)return!1;for(_=p,g=t.md.helpers.parseLinkDestination(t.src,p,t.posMax),g.ok&&(w=t.md.normalizeLink(g.str),t.md.validateLink(w)?p=g.pos:w=""),_=p;p=S||t.src.charCodeAt(p)!==41)return t.pos=I,!1;p++}else{if(typeof t.env.references=="undefined")return!1;if(p=0?a=t.src.slice(_,p++):p=h+1):p=h+1,a||(a=t.src.slice(f,h)),y=t.env.references[Pw(a)],!y)return t.pos=I,!1;w=y.href,v=y.title}return n||(d=t.src.slice(f,h),t.md.inline.parse(d,t.md,t.env,k=[]),b=t.push("image","img",0),b.attrs=l=[["src",w],["alt",""]],b.children=k,b.content=d,v&&l.push(["title",v])),t.pos=p,t.posMax=S,!0}});var cg=Fe((L1,ug)=>{"use strict";var Rw=/^([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])?)*)$/,zw=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/;ug.exports=function(t,n){var l,c,d,a,h,f,p=t.pos;if(t.src.charCodeAt(p)!==60)return!1;for(h=t.pos,f=t.posMax;;){if(++p>=f||(a=t.src.charCodeAt(p),a===60))return!1;if(a===62)break}return l=t.src.slice(h+1,p),zw.test(l)?(c=t.md.normalizeLink(l),t.md.validateLink(c)?(n||(d=t.push("link_open","a",1),d.attrs=[["href",c]],d.markup="autolink",d.info="auto",d=t.push("text","",0),d.content=t.md.normalizeLinkText(l),d=t.push("link_close","a",-1),d.markup="autolink",d.info="auto"),t.pos+=l.length+2,!0):!1):Rw.test(l)?(c=t.md.normalizeLink("mailto:"+l),t.md.validateLink(c)?(n||(d=t.push("link_open","a",1),d.attrs=[["href",c]],d.markup="autolink",d.info="auto",d=t.push("text","",0),d.content=t.md.normalizeLinkText(l),d=t.push("link_close","a",-1),d.markup="autolink",d.info="auto"),t.pos+=l.length+2,!0):!1):!1}});var dg=Fe((D1,fg)=>{"use strict";var Nw=ml().HTML_TAG_RE;function Bw(i){var t=i|32;return t>=97&&t<=122}fg.exports=function(t,n){var l,c,d,a,h=t.pos;return!t.md.options.html||(d=t.posMax,t.src.charCodeAt(h)!==60||h+2>=d)||(l=t.src.charCodeAt(h+1),l!==33&&l!==63&&l!==47&&!Bw(l))||(c=t.src.slice(h).match(Nw),!c)?!1:(n||(a=t.push("html_inline","",0),a.content=t.src.slice(h,h+c[0].length)),t.pos+=c[0].length,!0)}});var gg=Fe((I1,mg)=>{"use strict";var hg=ol(),qw=Ft().has,jw=Ft().isValidEntityCode,pg=Ft().fromCodePoint,$w=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Uw=/^&([a-z][a-z0-9]{1,31});/i;mg.exports=function(t,n){var l,c,d,a=t.pos,h=t.posMax;if(t.src.charCodeAt(a)!==38)return!1;if(a+1{"use strict";function vg(i,t){var n,l,c,d,a,h,f,p,y={},g=t.length;for(n=0;na;l-=d.jump+1)if(d=t[l],d.marker===c.marker&&d.open&&d.end<0&&(f=!1,(d.close||c.open)&&(d.length+c.length)%3==0&&(d.length%3!=0||c.length%3!=0)&&(f=!0),!f)){p=l>0&&!t[l-1].open?t[l-1].jump+1:0,c.jump=n-l+p,c.open=!1,d.end=n,d.jump=p,d.close=!1,h=-1;break}h!==-1&&(y[c.marker][(c.length||0)%3]=h)}}yg.exports=function(t){var n,l=t.tokens_meta,c=t.tokens_meta.length;for(vg(t,t.delimiters),n=0;n{"use strict";xg.exports=function(t){var n,l,c=0,d=t.tokens,a=t.tokens.length;for(n=l=0;n0&&c++,d[n].type==="text"&&n+1{"use strict";var _l=Da(),kg=Ft().isWhiteSpace,_g=Ft().isPunctChar,Sg=Ft().isMdAsciiPunct;function po(i,t,n,l){this.src=i,this.env=n,this.md=t,this.tokens=l,this.tokens_meta=Array(l.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1}po.prototype.pushPending=function(){var i=new _l("text","",0);return i.content=this.pending,i.level=this.pendingLevel,this.tokens.push(i),this.pending="",i};po.prototype.push=function(i,t,n){this.pending&&this.pushPending();var l=new _l(i,t,n),c=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),l.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],c={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(l),this.tokens_meta.push(c),l};po.prototype.scanDelims=function(i,t){var n=i,l,c,d,a,h,f,p,y,g,v=!0,b=!0,k=this.posMax,_=this.src.charCodeAt(i);for(l=i>0?this.src.charCodeAt(i-1):32;n{"use strict";var Tg=Aa(),Sl=[["text",Ym()],["newline",Zm()],["escape",eg()],["backticks",rg()],["strikethrough",yl().tokenize],["emphasis",xl().tokenize],["link",ag()],["image",lg()],["autolink",cg()],["html_inline",dg()],["entity",gg()]],El=[["balance_pairs",bg()],["strikethrough",yl().postProcess],["emphasis",xl().postProcess],["text_collapse",wg()]];function mo(){var i;for(this.ruler=new Tg,i=0;i=d)break;continue}i.pending+=i.src[i.pos++]}i.pending&&i.pushPending()};mo.prototype.parse=function(i,t,n,l){var c,d,a,h=new this.State(i,t,n,l);for(this.tokenize(h),d=this.ruler2.getRules(""),a=d.length,c=0;c{"use strict";Dg.exports=function(i){var t={};t.src_Any=sl().source,t.src_Cc=ll().source,t.src_Z=ul().source,t.src_P=_a().source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");var n="[><\uFF5C]";return t.src_pseudo_letter="(?:(?!"+n+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+n+"|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]).|"+(i&&i["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+t.src_ZCc+").|\\!+(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|"+t.src_ZPCc+"))((?![$+<=>^`|\uFF5C])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|"+t.src_ZPCc+"))((?![$+<=>^`|\uFF5C])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}});var zg=Fe((z1,Rg)=>{"use strict";function Cl(i){var t=Array.prototype.slice.call(arguments,1);return t.forEach(function(n){!n||Object.keys(n).forEach(function(l){i[l]=n[l]})}),i}function Pa(i){return Object.prototype.toString.call(i)}function Hw(i){return Pa(i)==="[object String]"}function Ww(i){return Pa(i)==="[object Object]"}function Gw(i){return Pa(i)==="[object RegExp]"}function Fg(i){return Pa(i)==="[object Function]"}function Kw(i){return i.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var Mg={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Vw(i){return Object.keys(i||{}).reduce(function(t,n){return t||Mg.hasOwnProperty(n)},!1)}var Yw={"http:":{validate:function(i,t,n){var l=i.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(l)?l.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(i,t,n){var l=i.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(l)?t>=3&&i[t-3]===":"||t>=3&&i[t-3]==="/"?0:l.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(i,t,n){var l=i.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(l)?l.match(n.re.mailto)[0].length:0}}},Xw="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",Zw="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");function Qw(i){i.__index__=-1,i.__text_cache__=""}function Jw(i){return function(t,n){var l=t.slice(n);return i.test(l)?l.match(i)[0].length:0}}function Og(){return function(i,t){t.normalize(i)}}function Ra(i){var t=i.re=Ig()(i.__opts__),n=i.__tlds__.slice();i.onCompile(),i.__tlds_replaced__||n.push(Xw),n.push(t.src_xn),t.src_tlds=n.join("|");function l(h){return h.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(l(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(l(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(l(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(l(t.tpl_host_fuzzy_test),"i");var c=[];i.__compiled__={};function d(h,f){throw new Error('(LinkifyIt) Invalid schema "'+h+'": '+f)}Object.keys(i.__schemas__).forEach(function(h){var f=i.__schemas__[h];if(f!==null){var p={validate:null,link:null};if(i.__compiled__[h]=p,Ww(f)){Gw(f.validate)?p.validate=Jw(f.validate):Fg(f.validate)?p.validate=f.validate:d(h,f),Fg(f.normalize)?p.normalize=f.normalize:f.normalize?d(h,f):p.normalize=Og();return}if(Hw(f)){c.push(h);return}d(h,f)}}),c.forEach(function(h){!i.__compiled__[i.__schemas__[h]]||(i.__compiled__[h].validate=i.__compiled__[i.__schemas__[h]].validate,i.__compiled__[h].normalize=i.__compiled__[i.__schemas__[h]].normalize)}),i.__compiled__[""]={validate:null,normalize:Og()};var a=Object.keys(i.__compiled__).filter(function(h){return h.length>0&&i.__compiled__[h]}).map(Kw).join("|");i.re.schema_test=RegExp("(^|(?!_)(?:[><\uFF5C]|"+t.src_ZPCc+"))("+a+")","i"),i.re.schema_search=RegExp("(^|(?!_)(?:[><\uFF5C]|"+t.src_ZPCc+"))("+a+")","ig"),i.re.pretest=RegExp("("+i.re.schema_test.source+")|("+i.re.host_fuzzy_test.source+")|@","i"),Qw(i)}function ek(i,t){var n=i.__index__,l=i.__last_index__,c=i.__text_cache__.slice(n,l);this.schema=i.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=l+t,this.raw=c,this.text=c,this.url=c}function Pg(i,t){var n=new ek(i,t);return i.__compiled__[n.schema].normalize(n,i),n}function qr(i,t){if(!(this instanceof qr))return new qr(i,t);t||Vw(i)&&(t=i,i={}),this.__opts__=Cl({},Mg,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Cl({},Yw,i),this.__compiled__={},this.__tlds__=Zw,this.__tlds_replaced__=!1,this.re={},Ra(this)}qr.prototype.add=function(t,n){return this.__schemas__[t]=n,Ra(this),this};qr.prototype.set=function(t){return this.__opts__=Cl(this.__opts__,t),this};qr.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;var n,l,c,d,a,h,f,p,y;if(this.re.schema_test.test(t)){for(f=this.re.schema_search,f.lastIndex=0;(n=f.exec(t))!==null;)if(d=this.testSchemaAt(t,n[2],f.lastIndex),d){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+d;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(p=t.search(this.re.host_fuzzy_test),p>=0&&(this.__index__<0||p=0&&(c=t.match(this.re.email_fuzzy))!==null&&(a=c.index+c[1].length,h=c.index+c[0].length,(this.__index__<0||athis.__last_index__)&&(this.__schema__="mailto:",this.__index__=a,this.__last_index__=h))),this.__index__>=0};qr.prototype.pretest=function(t){return this.re.pretest.test(t)};qr.prototype.testSchemaAt=function(t,n,l){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,l,this):0};qr.prototype.match=function(t){var n=0,l=[];this.__index__>=0&&this.__text_cache__===t&&(l.push(Pg(this,n)),n=this.__last_index__);for(var c=n?t.slice(n):t;this.test(c);)l.push(Pg(this,n)),c=c.slice(this.__last_index__),n+=this.__last_index__;return l.length?l:null};qr.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(l,c,d){return l!==d[c-1]}).reverse(),Ra(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,Ra(this),this)};qr.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};qr.prototype.onCompile=function(){};Rg.exports=qr});var Kg={};wx(Kg,{decode:()=>Il,default:()=>ck,encode:()=>Fl,toASCII:()=>Gg,toUnicode:()=>Wg,ucs2decode:()=>Dl,ucs2encode:()=>$g});function Un(i){throw new RangeError(ak[i])}function sk(i,t){let n=[],l=i.length;for(;l--;)n[l]=t(i[l]);return n}function jg(i,t){let n=i.split("@"),l="";n.length>1&&(l=n[0]+"@",i=n[1]),i=i.replace(ok,".");let c=i.split("."),d=sk(c,t).join(".");return l+d}function Dl(i){let t=[],n=0,l=i.length;for(;n=55296&&c<=56319&&n{"use strict";_i=2147483647,nn=36,Tl=1,go=26,tk=38,rk=700,Ng=72,Bg=128,qg="-",nk=/^xn--/,ik=/[^\0-\x7E]/,ok=/[\x2E\u3002\uFF0E\uFF61]/g,ak={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Al=nn-Tl,on=Math.floor,Ll=String.fromCharCode;$g=i=>String.fromCodePoint(...i),lk=function(i){return i-48<10?i-22:i-65<26?i-65:i-97<26?i-97:nn},Ug=function(i,t){return i+22+75*(i<26)-((t!=0)<<5)},Hg=function(i,t,n){let l=0;for(i=n?on(i/rk):i>>1,i+=on(i/t);i>Al*go>>1;l+=nn)i=on(i/Al);return on(l+(Al+1)*i/(i+tk))},Il=function(i){let t=[],n=i.length,l=0,c=Bg,d=Ng,a=i.lastIndexOf(qg);a<0&&(a=0);for(let h=0;h=128&&Un("not-basic"),t.push(i.charCodeAt(h));for(let h=a>0?a+1:0;h=n&&Un("invalid-input");let v=lk(i.charCodeAt(h++));(v>=nn||v>on((_i-l)/y))&&Un("overflow"),l+=v*y;let b=g<=d?Tl:g>=d+go?go:g-d;if(von(_i/k)&&Un("overflow"),y*=k}let p=t.length+1;d=Hg(l-f,p,f==0),on(l/p)>_i-c&&Un("overflow"),c+=on(l/p),l%=p,t.splice(l++,0,c)}return String.fromCodePoint(...t)},Fl=function(i){let t=[];i=Dl(i);let n=i.length,l=Bg,c=0,d=Ng;for(let f of i)f<128&&t.push(Ll(f));let a=t.length,h=a;for(a&&t.push(qg);h=l&&yon((_i-c)/p)&&Un("overflow"),c+=(f-l)*p,l=f;for(let y of i)if(y_i&&Un("overflow"),y==l){let g=c;for(let v=nn;;v+=nn){let b=v<=d?Tl:v>=d+go?go:v-d;if(g{"use strict";Yg.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}});var Qg=Fe((B1,Zg)=>{"use strict";Zg.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}}});var ev=Fe((q1,Jg)=>{"use strict";Jg.exports={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","text_collapse"]}}}});var iv=Fe((j1,nv)=>{"use strict";var vo=Ft(),fk=zp(),dk=Bp(),hk=cm(),pk=Km(),mk=Lg(),gk=zg(),Hn=al(),tv=(Vg(),Kg),vk={default:Xg(),zero:Qg(),commonmark:ev()},yk=/^(vbscript|javascript|file|data):/,bk=/^data:image\/(gif|png|jpeg|webp);/;function xk(i){var t=i.trim().toLowerCase();return yk.test(t)?!!bk.test(t):!0}var rv=["http:","https:","mailto:"];function wk(i){var t=Hn.parse(i,!0);if(t.hostname&&(!t.protocol||rv.indexOf(t.protocol)>=0))try{t.hostname=tv.toASCII(t.hostname)}catch(n){}return Hn.encode(Hn.format(t))}function kk(i){var t=Hn.parse(i,!0);if(t.hostname&&(!t.protocol||rv.indexOf(t.protocol)>=0))try{t.hostname=tv.toUnicode(t.hostname)}catch(n){}return Hn.decode(Hn.format(t),Hn.decode.defaultChars+"%")}function jr(i,t){if(!(this instanceof jr))return new jr(i,t);t||vo.isString(i)||(t=i||{},i="default"),this.inline=new mk,this.block=new pk,this.core=new hk,this.renderer=new dk,this.linkify=new gk,this.validateLink=xk,this.normalizeLink=wk,this.normalizeLinkText=kk,this.utils=vo,this.helpers=vo.assign({},fk),this.options={},this.configure(i),t&&this.set(t)}jr.prototype.set=function(i){return vo.assign(this.options,i),this};jr.prototype.configure=function(i){var t=this,n;if(vo.isString(i)&&(n=i,i=vk[n],!i))throw new Error('Wrong `markdown-it` preset "'+n+'", check name');if(!i)throw new Error("Wrong `markdown-it` preset, can't be empty");return i.options&&t.set(i.options),i.components&&Object.keys(i.components).forEach(function(l){i.components[l].rules&&t[l].ruler.enableOnly(i.components[l].rules),i.components[l].rules2&&t[l].ruler2.enableOnly(i.components[l].rules2)}),this};jr.prototype.enable=function(i,t){var n=[];Array.isArray(i)||(i=[i]),["core","block","inline"].forEach(function(c){n=n.concat(this[c].ruler.enable(i,!0))},this),n=n.concat(this.inline.ruler2.enable(i,!0));var l=i.filter(function(c){return n.indexOf(c)<0});if(l.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+l);return this};jr.prototype.disable=function(i,t){var n=[];Array.isArray(i)||(i=[i]),["core","block","inline"].forEach(function(c){n=n.concat(this[c].ruler.disable(i,!0))},this),n=n.concat(this.inline.ruler2.disable(i,!0));var l=i.filter(function(c){return n.indexOf(c)<0});if(l.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+l);return this};jr.prototype.use=function(i){var t=[this].concat(Array.prototype.slice.call(arguments,1));return i.apply(i,t),this};jr.prototype.parse=function(i,t){if(typeof i!="string")throw new Error("Input data should be a String");var n=new this.core.State(i,this,t);return this.core.process(n),n.tokens};jr.prototype.render=function(i,t){return t=t||{},this.renderer.render(this.parse(i,t),this.options,t)};jr.prototype.parseInline=function(i,t){var n=new this.core.State(i,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens};jr.prototype.renderInline=function(i,t){return t=t||{},this.renderer.render(this.parseInline(i,t),this.options,t)};nv.exports=jr});var av=Fe(($1,ov)=>{"use strict";ov.exports=iv()});var fv=Fe((U1,cv)=>{var Ml=!0,sv=!1,lv=!1;cv.exports=function(i,t){t&&(Ml=!t.enabled,sv=!!t.label,lv=!!t.labelAfter),i.core.ruler.after("inline","github-task-lists",function(n){for(var l=n.tokens,c=2;c=0;l--)if(i[l].level===n)return l;return-1}function Sk(i,t){return Dk(i[t])&&Ik(i[t-1])&&Fk(i[t-2])&&Mk(i[t])}function Ek(i,t){if(i.children.unshift(Ck(i,t)),i.children[1].content=i.children[1].content.slice(3),i.content=i.content.slice(3),sv)if(lv){i.children.pop();var n="task-item-"+Math.ceil(Math.random()*(1e4*1e3)-1e3);i.children[0].content=i.children[0].content.slice(0,-1)+' id="'+n+'">',i.children.push(Lk(i.content,n,t))}else i.children.unshift(Tk(t)),i.children.push(Ak(t))}function Ck(i,t){var n=new t("html_inline","",0),l=Ml?' disabled="" ':"";return i.content.indexOf("[ ] ")===0?n.content='':(i.content.indexOf("[x] ")===0||i.content.indexOf("[X] ")===0)&&(n.content=''),n}function Tk(i){var t=new i("html_inline","",0);return t.content="",t}function Lk(i,t,n){var l=new n("html_inline","",0);return l.content='",l.attrs=[{for:t}],l}function Dk(i){return i.type==="inline"}function Ik(i){return i.type==="paragraph_open"}function Fk(i){return i.type==="list_item_open"}function Mk(i){return i.content.indexOf("[ ] ")===0||i.content.indexOf("[x] ")===0||i.content.indexOf("[X] ")===0}});var Qi={},_x=[];function Vo(i,t){if(_x.push({name:i,data:t}),typeof Qi[i]=="undefined")return this;let n=Qi[i];for(let l=0;lVo("success",i),error:i=>Vo("error",i),showValidationErrors:Cx};async function Tx(i,t={}){return Nc(i,{method:"GET",params:t})}async function Ax(i,t=null){return Yo("POST",i,t)}async function Lx(i,t=null){return Yo("PUT",i,t)}async function Dx(i,t=null){return Yo("PATCH",i,t)}async function Ix(i,t=null){return Yo("DELETE",i,t)}async function Yo(i,t,n=null){let l={method:i,body:n};return typeof n=="object"&&!(n instanceof FormData)&&(l.headers={"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},l.body=JSON.stringify(n)),n instanceof FormData&&i!=="post"&&(n.append("_method",i),l.method="post"),Nc(t,l)}async function Nc(i,t={}){if(i.startsWith("http")||(i=window.baseUrl(i)),t.params){let a=new URL(i);for(let h of Object.keys(t.params)){let f=t.params[h];typeof f!="undefined"&&f!==null&&a.searchParams.set(h,f)}i=a.toString()}let n=document.querySelector("meta[name=token]").getAttribute("content");t=Object.assign({},t,{credentials:"same-origin"}),t.headers=Object.assign({},t.headers||{},{baseURL:window.baseUrl(""),"X-CSRF-TOKEN":n});let l=await fetch(i,t),d={data:await Fx(l),headers:l.headers,redirected:l.redirected,status:l.status,statusText:l.statusText,url:l.url,original:l};if(!l.ok)throw d;return d}async function Fx(i){if(i.status===204)return null;let n=(i.headers.get("Content-Type")||"").split(";")[0].split("/").pop();return n==="javascript"||n==="json"?await i.json():await i.text()}var Bc={get:Tx,post:Ax,put:Lx,patch:Dx,delete:Ix};var qc=class{constructor(t){this.store=new Map,this.parseTranslations()}parseTranslations(){let t=document.querySelectorAll('meta[name="translation"]');for(let n of t){let l=n.getAttribute("key"),c=n.getAttribute("value");this.store.set(l,c)}}get(t,n){let l=this.getTransText(t);return this.performReplacements(l,n)}getPlural(t,n,l){let c=this.getTransText(t);return this.parsePlural(c,n,l)}parsePlural(t,n,l){let c=t.split("|"),d=/^{([0-9]+)}/,a=/^\[([0-9]+),([0-9*]+)]/,h=null;for(let f of c){let p=f.match(d);if(p!==null&&Number(p[1])===n){h=f.replace(d,"").trim();break}let y=f.match(a);if(y!==null&&Number(y[1])<=n&&(y[2]==="*"||Number(y[2])>=n)){h=f.replace(a,"").trim();break}}return h===null&&c.length>1&&(h=n===1?c[0]:c[1]),h===null&&(h=c[0]),this.performReplacements(h,l)}getTransText(t){let n=this.store.get(t);return n===void 0&&console.warn(`Translation with key "${t}" does not exist`),n}performReplacements(t,n){if(!n)return t;let l=t.match(/:([\S]+)/g);return l===null||l.forEach(c=>{let d=c.substring(1);typeof n[d]!="undefined"&&(t=t.replace(c,n[d]))}),t}},jc=qc;function Xo(i,t){let n=document.querySelectorAll(i);for(let l of n)t(l)}function Zo(i,t,n){for(let l of t)i.addEventListener(l,n)}function Rt(i,t){Array.isArray(i)||(i=[i]);for(let n of i)n.addEventListener("click",t),n.addEventListener("keydown",l=>{(l.key==="Enter"||l.key===" ")&&(l.preventDefault(),t(l))})}function Qo(i,t){Array.isArray(i)||(i=[i]);let n=l=>{l.key==="Enter"&&t(l)};i.forEach(l=>l.addEventListener("keypress",n))}function $t(i,t,n,l){i.addEventListener(n,function(c){let d=c.target.closest(t);d&&l.call(d,c,d)})}function $c(i,t){let n=document.querySelectorAll(i);t=t.toLowerCase();for(let l of n)if(l.textContent.toLowerCase().includes(t))return l;return null}function Ji(i){i.innerHTML='
'}function Uc(i){let t=i.querySelectorAll(".loading-container");for(let n of t)n.remove()}function Jo(i,t,n){let l;return function(){let c=this,d=arguments,a=function(){l=null,n||i.apply(c,d)},h=n&&!l;clearTimeout(l),l=setTimeout(a,t),h&&i.apply(c,d)}}function eo(i){if(!i)return;i.scrollIntoView({behavior:"smooth"});let t=document.getElementById("custom-styles").getAttribute("data-color-light"),n=window.getComputedStyle(i).getPropertyValue("background-color");i.style.backgroundColor=t,setTimeout(()=>{i.classList.add("selectFade"),i.style.backgroundColor=n},10),setTimeout(()=>{i.classList.remove("selectFade"),i.style.backgroundColor=""},3e3)}function Hc(i){return i.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function Wc(){let i=()=>((1+Math.random())*65536|0).toString(16).substring(1);return i()+i()+"-"+i()+"-"+i()+"-"+i()+"-"+i()+i()+i()}var Gc=class{setup(){this.modelRow=this.$refs.model,this.addButton=this.$refs.add,this.removeSelector=this.$opts.removeSelector,this.rowSelector=this.$opts.rowSelector,this.setupListeners()}setupListeners(){this.addButton.addEventListener("click",this.add.bind(this)),$t(this.$el,this.removeSelector,"click",t=>{t.target.closest(this.rowSelector).remove()})}add(){let t=this.modelRow.cloneNode(!0);t.classList.remove("hidden"),this.setClonedInputNames(t),this.modelRow.parentNode.insertBefore(t,this.modelRow),window.components.init(t)}setClonedInputNames(t){let n=Wc(),l=t.querySelectorAll('[name*="randrowid"]');for(let c of l)c.name=c.name.split("randrowid").join(n)}},Kc=Gc;var Vc=class{setup(){this.row=this.$el,this.url=this.$opts.url,this.deleteButtons=this.$manyRefs.delete,Rt(this.deleteButtons,this.runDelete.bind(this))}runDelete(){this.row.style.opacity="0.7",this.row.style.pointerEvents="none",window.$http.delete(this.url).then(t=>{typeof t.data=="object"&&t.data.message&&window.$events.emit("success",t.data.message),this.row.remove()}).catch(t=>{this.row.style.opacity=null,this.row.style.pointerEvents=null})}},Yc=Vc;var Xc=class{setup(){this.container=this.$el,this.responseContainer=this.container,this.url=this.$opts.url,this.method=this.$opts.method||"post",this.successMessage=this.$opts.successMessage,this.submitButtons=this.$manyRefs.submit||[],this.$opts.responseContainer&&(this.responseContainer=this.container.closest(this.$opts.responseContainer)),this.setupListeners()}setupListeners(){if(this.container.tagName==="FORM"){this.container.addEventListener("submit",this.submitRealForm.bind(this));return}Qo(this.container,t=>{this.submitFakeForm(),t.preventDefault()}),this.submitButtons.forEach(t=>Rt(t,this.submitFakeForm.bind(this)))}submitFakeForm(){let t=new FormData,n=this.container.querySelectorAll("[name]");for(let l of n)t.append(l.getAttribute("name"),l.value);this.submit(t)}submitRealForm(t){t.preventDefault();let n=new FormData(this.container);this.submit(n)}async submit(t){this.responseContainer.style.opacity="0.7",this.responseContainer.style.pointerEvents="none";try{let n=await window.$http[this.method.toLowerCase()](this.url,t);this.$emit("success",{formData:t}),this.responseContainer.innerHTML=n.data,this.successMessage&&window.$events.emit("success",this.successMessage)}catch(n){this.responseContainer.innerHTML=n.data}window.components.init(this.responseContainer),this.responseContainer.style.opacity=null,this.responseContainer.style.pointerEvents=null}},Zc=Xc;var Qc=class{setup(){this.container=this.$el,this.pageId=this.$opts.pageId,this.editContainer=this.$refs.editContainer,this.listContainer=this.$refs.listContainer,this.mainTabs=this.$refs.mainTabs,this.list=this.$refs.list,this.setupListeners()}setupListeners(){let t=this.reloadList.bind(this);this.container.addEventListener("dropzone-success",t),this.container.addEventListener("ajax-form-success",t),this.container.addEventListener("sortable-list-sort",n=>{this.updateOrder(n.detail.ids)}),this.container.addEventListener("event-emit-select-edit",n=>{this.startEdit(n.detail.id)}),this.container.addEventListener("event-emit-select-edit-back",n=>{this.stopEdit()}),this.container.addEventListener("event-emit-select-insert",n=>{let l=n.target.closest("[data-drag-content]").getAttribute("data-drag-content"),c=JSON.parse(l);window.$events.emit("editor::insert",{html:c["text/html"],markdown:c["text/plain"]})})}reloadList(){this.stopEdit(),this.mainTabs.components.tabs.show("items"),window.$http.get(`/attachments/get/page/${this.pageId}`).then(t=>{this.list.innerHTML=t.data,window.components.init(this.list)})}updateOrder(t){window.$http.put(`/attachments/sort/page/${this.pageId}`,{order:t}).then(n=>{window.$events.emit("success",n.data.message)})}async startEdit(t){this.editContainer.classList.remove("hidden"),this.listContainer.classList.add("hidden"),Ji(this.editContainer);let n=await window.$http.get(`/attachments/edit/${t}`);this.editContainer.innerHTML=n.data,window.components.init(this.editContainer)}stopEdit(){this.editContainer.classList.add("hidden"),this.listContainer.classList.remove("hidden")}},Jc=Qc;var ef=class{setup(){this.container=this.$el,this.setupListeners()}setupListeners(){let t=n=>n.key==="Control"||n.key==="Meta";window.addEventListener("keydown",n=>{t(n)&&this.addOpenQueryToLinks()},{passive:!0}),window.addEventListener("keyup",n=>{t(n)&&this.removeOpenQueryFromLinks()},{passive:!0})}addOpenQueryToLinks(){let t=this.container.querySelectorAll("a.attachment-file");for(let n of t)n.href.split("?")[1]!=="open=true"&&(n.href=n.href+"?open=true",n.setAttribute("target","_blank"))}removeOpenQueryFromLinks(){let t=this.container.querySelectorAll("a.attachment-file");for(let n of t)n.href=n.href.split("?")[0],n.removeAttribute("target")}},tf=ef;var Is={},rf=class{setup(){this.parent=this.$el.parentElement,this.container=this.$el,this.type=this.$opts.type,this.url=this.$opts.url,this.input=this.$refs.input,this.list=this.$refs.list,this.lastPopulated=0,this.setupListeners()}setupListeners(){this.input.addEventListener("input",this.requestSuggestions.bind(this)),this.input.addEventListener("focus",this.requestSuggestions.bind(this)),this.input.addEventListener("keydown",t=>{t.key==="Tab"&&this.hideSuggestions()}),this.input.addEventListener("blur",this.hideSuggestionsIfFocusedLost.bind(this)),this.container.addEventListener("keydown",this.containerKeyDown.bind(this)),$t(this.list,"button","click",(t,n)=>{this.selectSuggestion(n.textContent)}),$t(this.list,"button","keydown",(t,n)=>{t.key==="Enter"&&this.selectSuggestion(n.textContent)})}selectSuggestion(t){this.input.value=t,this.lastPopulated=Date.now(),this.input.focus(),this.input.dispatchEvent(new Event("input",{bubbles:!0})),this.input.dispatchEvent(new Event("change",{bubbles:!0})),this.hideSuggestions()}containerKeyDown(t){t.key==="Enter"&&t.preventDefault(),!this.list.classList.contains("hidden")&&(t.key==="ArrowDown"?(this.moveFocus(!0),t.preventDefault()):t.key==="ArrowUp"?(this.moveFocus(!1),t.preventDefault()):t.key==="Escape"&&(this.hideSuggestions(),t.preventDefault()))}moveFocus(t=!0){let n=Array.from(this.container.querySelectorAll("input,button")),l=n.indexOf(document.activeElement),c=n[l+(t?1:-1)];c&&c.focus()}async requestSuggestions(){if(Date.now()-this.lastPopulated<50)return;let t=this.getNameFilterIfNeeded(),n=this.input.value.slice(0,3).toLowerCase(),l=await this.loadSuggestions(n,t),c=l.slice(0,6);n.length>0&&(c=l.filter(d=>d.toLowerCase().includes(n)).slice(0,6)),this.displaySuggestions(c)}getNameFilterIfNeeded(){return this.type!=="value"?null:this.parent.querySelector("input").value}async loadSuggestions(t,n=null){let l={search:t,name:n},c=`${this.url}:${JSON.stringify(l)}`;if(Is[c])return Is[c];let d=await window.$http.get(this.url,l);return Is[c]=d.data,d.data}displaySuggestions(t){if(t.length===0)return this.hideSuggestions();this.list.innerHTML=t.map(n=>`
  • `).join(""),this.list.style.display="block";for(let n of this.list.querySelectorAll("button"))n.addEventListener("blur",this.hideSuggestionsIfFocusedLost.bind(this))}hideSuggestions(){this.list.style.display="none"}hideSuggestionsIfFocusedLost(t){this.container.contains(t.relatedTarget)||this.hideSuggestions()}},nf=rf;var of=class{constructor(t){if(this.elem=t,this.targetElem=document.getElementById("header"),this.showing=!1,this.breakPoint=1200,document.body.classList.contains("flexbox")){this.elem.style.display="none";return}this.elem.addEventListener("click",this.scrollToTop.bind(this)),window.addEventListener("scroll",this.onPageScroll.bind(this))}onPageScroll(){let t=document.documentElement.scrollTop||document.body.scrollTop||0;!this.showing&&t>this.breakPoint?(this.elem.style.display="block",this.showing=!0,setTimeout(()=>{this.elem.style.opacity=.4},1)):this.showing&&t{this.elem.style.display="none"},500))}scrollToTop(){let t=this.targetElem.getBoundingClientRect().top,n=document.documentElement.scrollTop?document.documentElement:document.body,l=300,c=Date.now(),d=this.targetElem.getBoundingClientRect().top;function a(){let h=1-(Date.now()-c)/l,f=Math.abs(h*d);h>0?(n.scrollTop=f,requestAnimationFrame(a.bind(this))):n.scrollTop=t}requestAnimationFrame(a.bind(this))}},af=of;function ea(i){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ea=function(t){return typeof t}:ea=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ea(i)}function Mx(i,t,n){return t in i?Object.defineProperty(i,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):i[t]=n,i}function fn(){return fn=Object.assign||function(i){for(var t=1;t=0)&&(n[c]=i[c]);return n}function Px(i,t){if(i==null)return{};var n=Ox(i,t),l,c;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(i);for(c=0;c=0)&&(!Object.prototype.propertyIsEnumerable.call(i,l)||(n[l]=i[l]))}return n}var Rx="1.13.0";function dn(i){if(typeof window!="undefined"&&window.navigator)return!!navigator.userAgent.match(i)}var hn=dn(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),to=dn(/Edge/i),sf=dn(/firefox/i),ro=dn(/safari/i)&&!dn(/chrome/i)&&!dn(/android/i),lf=dn(/iP(ad|od|hone)/i),zx=dn(/chrome/i)&&dn(/android/i),uf={capture:!1,passive:!1};function It(i,t,n){i.addEventListener(t,n,!hn&&uf)}function Ct(i,t,n){i.removeEventListener(t,n,!hn&&uf)}function ta(i,t){if(!!t){if(t[0]===">"&&(t=t.substring(1)),i)try{if(i.matches)return i.matches(t);if(i.msMatchesSelector)return i.msMatchesSelector(t);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(t)}catch(n){return!1}return!1}}function Nx(i){return i.host&&i!==document&&i.host.nodeType?i.host:i.parentNode}function Jr(i,t,n,l){if(i){n=n||document;do{if(t!=null&&(t[0]===">"?i.parentNode===n&&ta(i,t):ta(i,t))||l&&i===n)return i;if(i===n)break}while(i=Nx(i))}return null}var cf=/\s+/g;function Pr(i,t,n){if(i&&t)if(i.classList)i.classList[n?"add":"remove"](t);else{var l=(" "+i.className+" ").replace(cf," ").replace(" "+t+" "," ");i.className=(l+(n?" "+t:"")).replace(cf," ")}}function dt(i,t,n){var l=i&&i.style;if(l){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(i,""):i.currentStyle&&(n=i.currentStyle),t===void 0?n:n[t];!(t in l)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),l[t]=n+(typeof n=="string"?"":"px")}}function fi(i,t){var n="";if(typeof i=="string")n=i;else do{var l=dt(i,"transform");l&&l!=="none"&&(n=l+" "+n)}while(!t&&(i=i.parentNode));var c=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return c&&new c(n)}function ff(i,t,n){if(i){var l=i.getElementsByTagName(t),c=0,d=l.length;if(n)for(;c=d:a=c<=d,!a)return l;if(l===en())break;l=En(l,!1)}return!1}function ra(i,t,n){for(var l=0,c=0,d=i.children;c2&&arguments[2]!==void 0?arguments[2]:{},c=l.evt,d=Px(l,["evt"]);io.pluginEvent.bind(ht)(t,n,Sn({dragEl:Ze,parentEl:Jt,ghostEl:yt,rootEl:Ut,nextEl:Nn,lastDownEl:na,cloneEl:Gt,cloneHidden:Cn,dragStarted:ao,putSortable:vr,activeSortable:ht.active,originalEvent:c,oldIndex:hi,oldDraggableIndex:oo,newIndex:zr,newDraggableIndex:Tn,hideGhostForTarget:_f,unhideGhostForTarget:Sf,cloneNowHidden:function(){Cn=!0},cloneNowShown:function(){Cn=!1},dispatchSortableEvent:function(h){Tr({sortable:n,name:h,originalEvent:c})}},d))};function Tr(i){Wx(Sn({putSortable:vr,cloneEl:Gt,targetEl:Ze,rootEl:Ut,oldIndex:hi,oldDraggableIndex:oo,newIndex:zr,newDraggableIndex:Tn},i))}var Ze,Jt,yt,Ut,Nn,na,Gt,Cn,hi,zr,oo,Tn,ia,vr,pi=!1,oa=!1,aa=[],Bn,Gr,Ps,Rs,vf,yf,ao,mi,so,lo=!1,sa=!1,la,wr,zs=[],Ns=!1,ua=[],ca=typeof document!="undefined",fa=lf,bf=to||hn?"cssFloat":"float",Gx=ca&&!zx&&!lf&&"draggable"in document.createElement("div"),xf=function(){if(!!ca){if(hn)return!1;var i=document.createElement("x");return i.style.cssText="pointer-events:auto",i.style.pointerEvents==="auto"}}(),wf=function(t,n){var l=dt(t),c=parseInt(l.width)-parseInt(l.paddingLeft)-parseInt(l.paddingRight)-parseInt(l.borderLeftWidth)-parseInt(l.borderRightWidth),d=ra(t,0,n),a=ra(t,1,n),h=d&&dt(d),f=a&&dt(a),p=h&&parseInt(h.marginLeft)+parseInt(h.marginRight)+gr(d).width,y=f&&parseInt(f.marginLeft)+parseInt(f.marginRight)+gr(a).width;if(l.display==="flex")return l.flexDirection==="column"||l.flexDirection==="column-reverse"?"vertical":"horizontal";if(l.display==="grid")return l.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(d&&h.float&&h.float!=="none"){var g=h.float==="left"?"left":"right";return a&&(f.clear==="both"||f.clear===g)?"vertical":"horizontal"}return d&&(h.display==="block"||h.display==="flex"||h.display==="table"||h.display==="grid"||p>=c&&l[bf]==="none"||a&&l[bf]==="none"&&p+y>c)?"vertical":"horizontal"},Kx=function(t,n,l){var c=l?t.left:t.top,d=l?t.right:t.bottom,a=l?t.width:t.height,h=l?n.left:n.top,f=l?n.right:n.bottom,p=l?n.width:n.height;return c===h||d===f||c+a/2===h+p/2},Vx=function(t,n){var l;return aa.some(function(c){if(!Fs(c)){var d=gr(c),a=c[Rr].options.emptyInsertThreshold,h=t>=d.left-a&&t<=d.right+a,f=n>=d.top-a&&n<=d.bottom+a;if(a&&h&&f)return l=c}}),l},kf=function(t){function n(d,a){return function(h,f,p,y){var g=h.options.group.name&&f.options.group.name&&h.options.group.name===f.options.group.name;if(d==null&&(a||g))return!0;if(d==null||d===!1)return!1;if(a&&d==="clone")return d;if(typeof d=="function")return n(d(h,f,p,y),a)(h,f,p,y);var v=(a?h:f).options.group.name;return d===!0||typeof d=="string"&&d===v||d.join&&d.indexOf(v)>-1}}var l={},c=t.group;(!c||ea(c)!="object")&&(c={name:c}),l.name=c.name,l.checkPull=n(c.pull,!0),l.checkPut=n(c.put),l.revertClone=c.revertClone,t.group=l},_f=function(){!xf&&yt&&dt(yt,"display","none")},Sf=function(){!xf&&yt&&dt(yt,"display","")};ca&&document.addEventListener("click",function(i){if(oa)return i.preventDefault(),i.stopPropagation&&i.stopPropagation(),i.stopImmediatePropagation&&i.stopImmediatePropagation(),oa=!1,!1},!0);var qn=function(t){if(Ze){t=t.touches?t.touches[0]:t;var n=Vx(t.clientX,t.clientY);if(n){var l={};for(var c in t)t.hasOwnProperty(c)&&(l[c]=t[c]);l.target=l.rootEl=n,l.preventDefault=void 0,l.stopPropagation=void 0,n[Rr]._onDragOver(l)}}},Yx=function(t){Ze&&Ze.parentNode[Rr]._isOutsideThisEl(t.target)};function ht(i,t){if(!(i&&i.nodeType&&i.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(i));this.el=i,this.options=t=fn({},t),i[Rr]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(i.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return wf(i,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(a,h){a.setData("Text",h.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:ht.supportPointer!==!1&&"PointerEvent"in window&&!ro,emptyInsertThreshold:5};io.initializePlugins(this,i,n);for(var l in n)!(l in t)&&(t[l]=n[l]);kf(t);for(var c in this)c.charAt(0)==="_"&&typeof this[c]=="function"&&(this[c]=this[c].bind(this));this.nativeDraggable=t.forceFallback?!1:Gx,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?It(i,"pointerdown",this._onTapStart):(It(i,"mousedown",this._onTapStart),It(i,"touchstart",this._onTapStart)),this.nativeDraggable&&(It(i,"dragover",this),It(i,"dragenter",this)),aa.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),fn(this,$x())}ht.prototype={constructor:ht,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(mi=null)},_getDirection:function(t,n){return typeof this.options.direction=="function"?this.options.direction.call(this,t,n,Ze):this.options.direction},_onTapStart:function(t){if(!!t.cancelable){var n=this,l=this.el,c=this.options,d=c.preventOnFilter,a=t.type,h=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,f=(h||t).target,p=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||f,y=c.filter;if(r0(l),!Ze&&!(/mousedown|pointerdown/.test(a)&&t.button!==0||c.disabled)&&!p.isContentEditable&&!(!this.nativeDraggable&&ro&&f&&f.tagName.toUpperCase()==="SELECT")&&(f=Jr(f,c.draggable,l,!1),!(f&&f.animated)&&na!==f)){if(hi=Br(f),oo=Br(f,c.draggable),typeof y=="function"){if(y.call(this,t,f,this)){Tr({sortable:n,rootEl:p,name:"filter",targetEl:f,toEl:l,fromEl:l}),Dr("filter",n,{evt:t}),d&&t.cancelable&&t.preventDefault();return}}else if(y&&(y=y.split(",").some(function(g){if(g=Jr(p,g.trim(),l,!1),g)return Tr({sortable:n,rootEl:g,name:"filter",targetEl:f,fromEl:l,toEl:l}),Dr("filter",n,{evt:t}),!0}),y)){d&&t.cancelable&&t.preventDefault();return}c.handle&&!Jr(p,c.handle,l,!1)||this._prepareDragStart(t,h,f)}}},_prepareDragStart:function(t,n,l){var c=this,d=c.el,a=c.options,h=d.ownerDocument,f;if(l&&!Ze&&l.parentNode===d){var p=gr(l);if(Ut=d,Ze=l,Jt=Ze.parentNode,Nn=Ze.nextSibling,na=l,ia=a.group,ht.dragged=Ze,Bn={target:Ze,clientX:(n||t).clientX,clientY:(n||t).clientY},vf=Bn.clientX-p.left,yf=Bn.clientY-p.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,Ze.style["will-change"]="all",f=function(){if(Dr("delayEnded",c,{evt:t}),ht.eventCanceled){c._onDrop();return}c._disableDelayedDragEvents(),!sf&&c.nativeDraggable&&(Ze.draggable=!0),c._triggerDragStart(t,n),Tr({sortable:c,name:"choose",originalEvent:t}),Pr(Ze,a.chosenClass,!0)},a.ignore.split(",").forEach(function(y){ff(Ze,y.trim(),qs)}),It(h,"dragover",qn),It(h,"mousemove",qn),It(h,"touchmove",qn),It(h,"mouseup",c._onDrop),It(h,"touchend",c._onDrop),It(h,"touchcancel",c._onDrop),sf&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Ze.draggable=!0),Dr("delayStart",this,{evt:t}),a.delay&&(!a.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(to||hn))){if(ht.eventCanceled){this._onDrop();return}It(h,"mouseup",c._disableDelayedDrag),It(h,"touchend",c._disableDelayedDrag),It(h,"touchcancel",c._disableDelayedDrag),It(h,"mousemove",c._delayedDragTouchMoveHandler),It(h,"touchmove",c._delayedDragTouchMoveHandler),a.supportPointer&&It(h,"pointermove",c._delayedDragTouchMoveHandler),c._dragStartTimer=setTimeout(f,a.delay)}else f()}},_delayedDragTouchMoveHandler:function(t){var n=t.touches?t.touches[0]:t;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Ze&&qs(Ze),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;Ct(t,"mouseup",this._disableDelayedDrag),Ct(t,"touchend",this._disableDelayedDrag),Ct(t,"touchcancel",this._disableDelayedDrag),Ct(t,"mousemove",this._delayedDragTouchMoveHandler),Ct(t,"touchmove",this._delayedDragTouchMoveHandler),Ct(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||t.pointerType=="touch"&&t,!this.nativeDraggable||n?this.options.supportPointer?It(document,"pointermove",this._onTouchMove):n?It(document,"touchmove",this._onTouchMove):It(document,"mousemove",this._onTouchMove):(It(Ze,"dragend",this),It(Ut,"dragstart",this._onDragStart));try{document.selection?da(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch(l){}},_dragStarted:function(t,n){if(pi=!1,Ut&&Ze){Dr("dragStarted",this,{evt:n}),this.nativeDraggable&&It(document,"dragover",Yx);var l=this.options;!t&&Pr(Ze,l.dragClass,!1),Pr(Ze,l.ghostClass,!0),ht.active=this,t&&this._appendGhost(),Tr({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(Gr){this._lastX=Gr.clientX,this._lastY=Gr.clientY,_f();for(var t=document.elementFromPoint(Gr.clientX,Gr.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(Gr.clientX,Gr.clientY),t!==n);)n=t;if(Ze.parentNode[Rr]._isOutsideThisEl(t),n)do{if(n[Rr]){var l=void 0;if(l=n[Rr]._onDragOver({clientX:Gr.clientX,clientY:Gr.clientY,target:t,rootEl:n}),l&&!this.options.dragoverBubble)break}t=n}while(n=n.parentNode);Sf()}},_onTouchMove:function(t){if(Bn){var n=this.options,l=n.fallbackTolerance,c=n.fallbackOffset,d=t.touches?t.touches[0]:t,a=yt&&fi(yt,!0),h=yt&&a&&a.a,f=yt&&a&&a.d,p=fa&&wr&&hf(wr),y=(d.clientX-Bn.clientX+c.x)/(h||1)+(p?p[0]-zs[0]:0)/(h||1),g=(d.clientY-Bn.clientY+c.y)/(f||1)+(p?p[1]-zs[1]:0)/(f||1);if(!ht.active&&!pi){if(l&&Math.max(Math.abs(d.clientX-this._lastX),Math.abs(d.clientY-this._lastY))=0&&(Tr({rootEl:Jt,name:"add",toEl:Jt,fromEl:Ut,originalEvent:t}),Tr({sortable:this,name:"remove",toEl:Jt,originalEvent:t}),Tr({rootEl:Jt,name:"sort",toEl:Jt,fromEl:Ut,originalEvent:t}),Tr({sortable:this,name:"sort",toEl:Jt,originalEvent:t})),vr&&vr.save()):zr!==hi&&zr>=0&&(Tr({sortable:this,name:"update",toEl:Jt,originalEvent:t}),Tr({sortable:this,name:"sort",toEl:Jt,originalEvent:t})),ht.active&&((zr==null||zr===-1)&&(zr=hi,Tn=oo),Tr({sortable:this,name:"end",toEl:Jt,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){Dr("nulling",this),Ut=Ze=Jt=yt=Nn=Gt=na=Cn=Bn=Gr=ao=zr=Tn=hi=oo=mi=so=vr=ia=ht.dragged=ht.ghost=ht.clone=ht.active=null,ua.forEach(function(t){t.checked=!0}),ua.length=Ps=Rs=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":Ze&&(this._onDragOver(t),Xx(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],n,l=this.el.children,c=0,d=l.length,a=this.options;cl.right+c||i.clientX<=l.right&&i.clientY>l.bottom&&i.clientX>=l.left:i.clientX>l.right&&i.clientY>l.top||i.clientX<=l.right&&i.clientY>l.bottom+c}function Jx(i,t,n,l,c,d,a,h){var f=l?i.clientY:i.clientX,p=l?n.height:n.width,y=l?n.top:n.left,g=l?n.bottom:n.right,v=!1;if(!a){if(h&&lay+p*d/2:fg-la)return-so}else if(f>y+p*(1-c)/2&&fg-p*d/2)?f>y+p/2?1:-1:0}function e0(i){return Br(Ze){let d=c.target.closest(".sort-box-options [data-sort]");if(!d)return;c.preventDefault();let a=d.closest(".sort-box").querySelectorAll("ul"),h=d.getAttribute("data-sort");n=t===h?!n:!1;let f=Tf[h];n&&l.includes(h)&&(f=function(p,y){return 0-Tf[h](p,y)});for(let p of a)Array.from(p.children).filter(g=>g.matches("li")).sort(f).forEach(g=>{p.appendChild(g)});t=h,this.updateMapInput()})}bookSelect(t){if(this.elem.querySelector(`[data-type="book"][data-id="${t.id}"]`)!==null)return;let l=t.link+"/sort-item";window.$http.get(l).then(c=>{let d=document.createElement("div");d.innerHTML=c.data;let a=d.children[0];this.sortContainer.append(a),this.setupBookSortable(a)})}setupBookSortable(t){let n=[t.querySelector(".sort-list")];n.push(...t.querySelectorAll(".entity-list-item + ul"));let l={name:"book",pull:["book","chapter"],put:["book","chapter"]},c={name:"chapter",pull:["book","chapter"],put:function(d,a,h){return h.getAttribute("data-type")==="page"}};for(let d of n)new gi(d,{group:d.classList.contains("sort-list")?l:c,animation:150,fallbackOnBody:!0,swapThreshold:.65,onSort:this.updateMapInput.bind(this),dragClass:"bg-white",ghostClass:"primary-background-light",multiDrag:!0,multiDragKey:"CTRL",selectedClass:"sortable-selected"})}updateMapInput(){let t=this.buildEntityMap();this.input.value=JSON.stringify(t)}buildEntityMap(){let t=[],n=this.elem.querySelectorAll(".sort-list");for(let l of n){let c=l.closest('[data-type="book"]').getAttribute("data-id"),d=Array.from(l.children).filter(a=>a.matches('[data-type="page"], [data-type="chapter"]'));for(let a=0;a{n&&n()})}function ga(i,t=400,n=null){ya(i),va(i,{opacity:["1","0"]},t,()=>{i.style.display="none",n&&n()})}function vi(i,t=400){ya(i);let n=i.getBoundingClientRect().height,l=getComputedStyle(i),c=l.getPropertyValue("padding-top"),d=l.getPropertyValue("padding-bottom"),a={height:[`${n}px`,"0px"],overflow:["hidden","hidden"],paddingTop:[c,"0px"],paddingBottom:[d,"0px"]};va(i,a,t,()=>{i.style.display="none"})}function yi(i,t=400){ya(i),i.style.display="block";let n=i.getBoundingClientRect().height,l=getComputedStyle(i),c=l.getPropertyValue("padding-top"),d=l.getPropertyValue("padding-bottom"),a={height:["0px",`${n}px`],overflow:["hidden","hidden"],paddingTop:["0px",c],paddingBottom:["0px",d]};va(i,a,t)}function va(i,t,n=400,l=null){let c=Object.keys(t);for(let a of c)i.style[a]=t[a][0];let d=()=>{for(let a of c)i.style[a]=null;i.style.transition=null,i.removeEventListener("transitionend",d),ma.delete(i),l&&l()};setTimeout(()=>{i.style.transition=`all ease-in-out ${n}ms`;for(let a of c)i.style[a]=t[a][1];i.addEventListener("transitionend",d),ma.set(i,d)},15)}function ya(i){ma.has(i)&&ma.get(i)()}var If=class{constructor(t){this.elem=t,this.isOpen=t.classList.contains("open"),t.addEventListener("click",this.click.bind(this))}open(){let t=this.elem.parentNode.querySelector(".inset-list");this.elem.classList.add("open"),this.elem.setAttribute("aria-expanded","true"),yi(t,240)}close(){let t=this.elem.parentNode.querySelector(".inset-list");this.elem.classList.remove("open"),this.elem.setAttribute("aria-expanded","false"),vi(t,240)}click(t){t.preventDefault(),this.isOpen?this.close():this.open(),this.isOpen=!this.isOpen}},Ff=If;var jn=St(At()),ch=St(Qs()),__=St(Js()),S_=St(el()),E_=St(Bf()),C_=St($f()),T_=St(Wf()),A_=St(Vf()),L_=St(rl()),D_=St(tl()),I_=St(nd()),F_=St(ad()),M_=St(dd()),O_=St(md()),P_=St(yd()),R_=St(wd()),z_=St(Sd()),N_=St(Td()),B_=St(Dd()),q_=St(Md()),j_=St(Rd()),$_=St(Bd()),U_=St(Wd()),H_=St(Vd()),W_=St(Zd()),G_=St(eh()),K_=St(nh()),V_=St(ba()),Y_=St(ah()),X_=St(uh()),nl={css:"css",c:"text/x-csrc",java:"text/x-java",scala:"text/x-scala",kotlin:"text/x-kotlin","c++":"text/x-c++src","c#":"text/x-csharp",csharp:"text/x-csharp",diff:"diff",for:"fortran",fortran:"fortran",go:"go",haskell:"haskell",hs:"haskell",html:"htmlmixed",ini:"properties",javascript:"javascript",json:{name:"javascript",json:!0},js:"javascript",jl:"julia",julia:"julia",lua:"lua",md:"markdown",mdown:"markdown",markdown:"markdown",ml:"mllike",nginx:"nginx",perl:"perl",pl:"perl",powershell:"powershell",properties:"properties",ocaml:"mllike",pascal:"text/x-pascal",pas:"text/x-pascal",php:i=>i.includes("/gi,` `);let n=i.textContent.trimEnd(),l="";if(t!==null){let d=t.className.replace("language-","");l=xa(d,n)}let c=(0,jn.default)(function(d){i.parentNode.replaceChild(d,i)},{value:n,mode:l,lineNumbers:!0,lineWrapping:!1,theme:wa(),readOnly:!0});a0(c)}function a0(i){let t='',n=document.createElement("div");n.classList.add("CodeMirror-copy"),n.innerHTML=t,i.display.wrapper.appendChild(n),new ch.default(n,{text:function(c){return i.getValue()}}).on("success",c=>{n.classList.add("success"),setTimeout(()=>{n.classList.remove("success")},240)})}function xa(i,t){i=i.trim().replace(/^\./g,"").toLowerCase();let n=typeof nl[i];return n==="undefined"?"":n==="function"?nl[i](t):nl[i]}function wa(){let i=document.documentElement.classList.contains("dark-mode");return window.codeTheme||(i?"darcula":"default")}function s0(i){let t=i.ownerDocument,n=i.querySelector("code"),l=(i.className||"").replace("language-","");l===""&&n&&(l=(n.className||"").replace("language-","")),i.innerHTML=i.innerHTML.replace(//gi,` `);let c=i.textContent,d=t.createElement("div"),a=t.createElement("textarea");d.className="CodeMirrorContainer",d.setAttribute("data-lang",l),d.setAttribute("dir","ltr"),a.style.display="none",i.parentNode.replaceChild(d,i),d.appendChild(a),d.contentEditable=!1,a.textContent=c;let h=(0,jn.default)(function(f){d.appendChild(f)},{value:c,mode:xa(l,c),lineNumbers:!0,lineWrapping:!1,theme:wa(),readOnly:!0});return{wrap:d,editor:h}}function l0(i,t){let n=i.textContent;return(0,jn.default)(function(l){i.parentNode.insertBefore(l,i),i.style.display="none"},{value:n,mode:xa(t,n),lineNumbers:!0,lineWrapping:!1,theme:wa()})}function u0(i,t,n){i.setOption("mode",xa(t,n))}function c0(i,t){i.setValue(t),setTimeout(()=>{dh(i)},10)}function dh(i){i.refresh()}function f0(i){let n={value:i.textContent,mode:"markdown",lineNumbers:!0,lineWrapping:!0,theme:wa(),scrollPastEnd:!0};return window.$events.emitPublic(i,"editor-markdown-cm::pre-init",{config:n}),(0,jn.default)(function(l){i.parentNode.insertBefore(l,i),i.style.display="none"},n)}function d0(){return jn.default.keyMap.default==jn.default.keyMap.macDefault?"Cmd":"Ctrl"}var ur={highlight:i0,highlightWithin:o0,wysiwygView:s0,popupEditor:l0,setMode:u0,setContent:c0,updateLayout:dh,markdownEditor:f0,getMetaKey:d0};var hh=class{setup(){this.container=this.$refs.container,this.popup=this.$el,this.editorInput=this.$refs.editor,this.languageLinks=this.$manyRefs.languageLink,this.saveButton=this.$refs.saveButton,this.languageInput=this.$refs.languageInput,this.historyDropDown=this.$refs.historyDropDown,this.historyList=this.$refs.historyList,this.callback=null,this.editor=null,this.history={},this.historyKey="code_history",this.setupListeners()}setupListeners(){this.container.addEventListener("keydown",t=>{t.ctrlKey&&t.key==="Enter"&&this.save()}),Rt(this.languageLinks,t=>{let n=t.target.dataset.lang;this.languageInput.value=n,this.updateEditorMode(n)}),Qo(this.languageInput,t=>this.save()),Rt(this.saveButton,t=>this.save()),$t(this.historyList,"button","click",(t,n)=>{t.preventDefault();let l=n.dataset.time;this.editor&&this.editor.setValue(this.history[l])})}save(){this.callback&&this.callback(this.editor.getValue(),this.languageInput.value),this.hide()}open(t,n,l){this.languageInput.value=n,this.callback=l,this.show(),this.updateEditorMode(n),ur.setContent(this.editor,t)}show(){this.editor||(this.editor=ur.popupEditor(this.editorInput,this.languageInput.value)),this.loadHistory(),this.popup.components.popup.show(()=>{ur.updateLayout(this.editor),this.editor.focus()},()=>{this.addHistory()})}hide(){this.popup.components.popup.hide(),this.addHistory()}updateEditorMode(t){ur.setMode(this.editor,t,this.editor.getValue())}loadHistory(){this.history=JSON.parse(window.sessionStorage.getItem(this.historyKey)||"{}");let t=Object.keys(this.history).reverse();this.historyDropDown.classList.toggle("hidden",t.length===0),this.historyList.innerHTML=t.map(n=>{let l=new Date(parseInt(n)).toLocaleTimeString();return`
  • `}).join("")}addHistory(){if(!this.editor)return;let t=this.editor.getValue();if(!t)return;let n=Object.keys(this.history).pop();if(this.history[n]===t)return;this.history[String(Date.now())]=t;let l=JSON.stringify(this.history);window.sessionStorage.setItem(this.historyKey,l)}},ph=hh;var mh=class{constructor(t){ur.highlightWithin(t)}},gh=mh;var vh=class{constructor(t){this.elem=t,this.trigger=t.querySelector("[collapsible-trigger]"),this.content=t.querySelector("[collapsible-content]"),!!this.trigger&&(this.trigger.addEventListener("click",this.toggle.bind(this)),this.openIfContainsError())}open(){this.elem.classList.add("open"),this.trigger.setAttribute("aria-expanded","true"),yi(this.content,300)}close(){this.elem.classList.remove("open"),this.trigger.setAttribute("aria-expanded","false"),vi(this.content,300)}toggle(){this.elem.classList.contains("open")?this.close():this.open()}openIfContainsError(){this.content.querySelector(".text-neg.text-small")&&this.open()}},yh=vh;var bh=class{constructor(t){this.elem=t,this.checkbox=t.querySelector("input[type=checkbox]"),this.display=t.querySelector('[role="checkbox"]'),this.checkbox.addEventListener("change",this.stateChange.bind(this)),this.elem.addEventListener("keydown",this.onKeyDown.bind(this))}onKeyDown(t){(t.keyCode===32||t.keyCode===13)&&(t.preventDefault(),this.toggle())}toggle(){this.checkbox.checked=!this.checkbox.checked,this.checkbox.dispatchEvent(new Event("change")),this.stateChange()}stateChange(){let t=this.checkbox.checked?"true":"false";this.display.setAttribute("aria-checked",t)}},xh=bh;var wh=class{constructor(t){this.elem=t,this.dealtWith=!1,t.addEventListener("toggle",this.onToggle.bind(this))}onToggle(){this.dealtWith||(ur.highlightWithin(this.elem),this.dealtWith=!0)}},kh=wh;var _h=class{setup(){this.container=this.$el,this.menu=this.$refs.menu,this.toggle=this.$refs.toggle,this.moveMenu=this.$opts.moveMenu,this.bubbleEscapes=this.$opts.bubbleEscapes==="true",this.direction=document.dir==="rtl"?"right":"left",this.body=document.body,this.showing=!1,this.setupListeners(),this.hide=this.hide.bind(this)}show(t=null){this.hideAll(),this.menu.style.display="block",this.menu.classList.add("anim","menuIn"),this.toggle.setAttribute("aria-expanded","true"),this.moveMenu&&(this.rect=this.menu.getBoundingClientRect(),this.body.appendChild(this.menu),this.menu.style.position="fixed",this.direction==="right"?this.menu.style.right=`${this.rect.right-this.rect.width}px`:this.menu.style.left=`${this.rect.left}px`,this.menu.style.top=`${this.rect.top}px`,this.menu.style.width=`${this.rect.width}px`),this.menu.addEventListener("mouseleave",this.hide.bind(this)),window.addEventListener("click",c=>{this.menu.contains(c.target)||this.hide()});let n=this.menu.querySelector("input");n!==null&&n.focus(),this.showing=!0;let l=new Event("show");this.container.dispatchEvent(l),t&&t.stopPropagation()}hideAll(){for(let t of window.components.dropdown)t.hide()}hide(){this.menu.style.display="none",this.menu.classList.remove("anim","menuIn"),this.toggle.setAttribute("aria-expanded","false"),this.moveMenu&&(this.menu.style.position="",this.menu.style[this.direction]="",this.menu.style.top="",this.menu.style.width="",this.container.appendChild(this.menu)),this.showing=!1}getFocusable(){return Array.from(this.menu.querySelectorAll("[tabindex],[href],button,input:not([type=hidden])"))}focusNext(){let t=this.getFocusable(),l=t.indexOf(document.activeElement)+1;l>=t.length&&(l=0),t[l].focus()}focusPrevious(){let t=this.getFocusable(),l=t.indexOf(document.activeElement)-1;l<0&&(l=t.length-1),t[l].focus()}setupListeners(){this.container.addEventListener("click",n=>{Array.from(this.menu.querySelectorAll("a")).includes(n.target)&&this.hide()}),Rt(this.toggle,n=>{n.stopPropagation(),this.show(n),n instanceof KeyboardEvent&&this.focusNext()});let t=n=>{n.key==="ArrowDown"||n.key==="ArrowRight"?(this.focusNext(),n.preventDefault()):n.key==="ArrowUp"||n.key==="ArrowLeft"?(this.focusPrevious(),n.preventDefault()):n.key==="Escape"&&(this.hide(),this.toggle.focus(),this.bubbleEscapes||n.stopPropagation())};this.container.addEventListener("keydown",t),this.moveMenu&&this.menu.addEventListener("keydown",t),this.menu.addEventListener("keydown ",n=>{n.key==="Enter"&&(n.preventDefault(),n.stopPropagation(),this.hide())})}},Sh=_h;var Eh=class{setup(){this.elem=this.$el,this.searchInput=this.$refs.searchInput,this.loadingElem=this.$refs.loading,this.listContainerElem=this.$refs.listContainer,this.localSearchSelector=this.$opts.localSearchSelector,this.url=this.$opts.url,this.elem.addEventListener("show",this.onShow.bind(this)),this.searchInput.addEventListener("input",this.onSearch.bind(this)),this.runAjaxSearch=Jo(this.runAjaxSearch,300,!1)}onShow(){this.loadList()}onSearch(){let t=this.searchInput.value.toLowerCase().trim();this.localSearchSelector?this.runLocalSearch(t):(this.toggleLoading(!0),this.runAjaxSearch(t))}runAjaxSearch(t){this.loadList(t)}runLocalSearch(t){let n=this.listContainerElem.querySelectorAll(this.localSearchSelector);for(let l of n){let c=!t||l.textContent.toLowerCase().includes(t);l.style.display=c?"flex":"none",l.classList.toggle("hidden",!c)}}async loadList(t=""){this.listContainerElem.innerHTML="",this.toggleLoading(!0);try{let n=await window.$http.get(this.getAjaxUrl(t));this.listContainerElem.innerHTML=n.data}catch(n){console.error(n)}this.toggleLoading(!1),this.localSearchSelector&&this.onSearch()}getAjaxUrl(t=null){if(!t)return this.url;let n=this.url.includes("?")?"&":"?";return`${this.url}${n}search=${encodeURIComponent(t)}`}toggleLoading(t=!1){this.loadingElem.style.display=t?"block":"none"}},Ch=Eh;var Ah=St(Th());var Lh=class{setup(){this.container=this.$el,this.url=this.$opts.url,this.successMessage=this.$opts.successMessage,this.removeMessage=this.$opts.removeMessage,this.uploadLimitMessage=this.$opts.uploadLimitMessage,this.timeoutMessage=this.$opts.timeoutMessage;let t=this;this.dz=new Ah.default(this.container,{addRemoveLinks:!0,dictRemoveFile:this.removeMessage,timeout:Number(window.uploadTimeout)||6e4,maxFilesize:Number(window.uploadLimit)||256,url:this.url,withCredentials:!0,init(){this.dz=this,this.dz.on("sending",t.onSending.bind(t)),this.dz.on("success",t.onSuccess.bind(t)),this.dz.on("error",t.onError.bind(t))}})}onSending(t,n,l){let c=window.document.querySelector("meta[name=token]").getAttribute("content");l.append("_token",c),n.ontimeout=d=>{this.dz.emit("complete",t),this.dz.emit("error",t,this.timeoutMessage)}}onSuccess(t,n){this.$emit("success",{file:t,data:n}),this.successMessage&&window.$events.emit("success",this.successMessage),ga(t.previewElement,800,()=>{this.dz.removeFile(t)})}onError(t,n,l){this.$emit("error",{file:t,errorMessage:n,xhr:l});let c=d=>{let a=t.previewElement.querySelector("[data-dz-errormessage]");a.textContent=d};l&&l.status===413?c(this.uploadLimitMessage):n.file&&c(n.file)}removeAll(){this.dz.removeAllFiles(!0)}},Dh=Lh;var Ih=class{constructor(t){this.elem=t,this.buttons=t.querySelectorAll("[toolbox-tab-button]"),this.contentElements=t.querySelectorAll("[toolbox-tab-content]"),this.toggleButton=t.querySelector("[toolbox-toggle]"),this.toggleButton.addEventListener("click",this.toggle.bind(this)),this.elem.addEventListener("click",n=>{let l=n.target.closest("[toolbox-tab-button]");if(l===null)return;let c=l.getAttribute("toolbox-tab-button");this.setActiveTab(c,!0)}),this.setActiveTab(this.contentElements[0].getAttribute("toolbox-tab-content"))}toggle(){this.elem.classList.toggle("open");let t=this.elem.classList.contains("open")?"true":"false";this.toggleButton.setAttribute("aria-expanded",t)}setActiveTab(t,n=!1){for(let l=0,c=this.buttons.length;l{t.preventDefault(),this.runSearch()}),Rt(this.clearButton,this.clearSearch.bind(this))}runSearch(){let t=this.searchInput.value.trim();if(t.length===0)return this.clearSearch();this.searchView.classList.remove("hidden"),this.contentView.classList.add("hidden"),this.loadingBlock.classList.remove("hidden");let n=window.baseUrl(`/search/${this.entityType}/${this.entityId}`);window.$http.get(n,{term:t}).then(l=>{this.searchResults.innerHTML=l.data}).catch(console.error).then(()=>{this.loadingBlock.classList.add("hidden")})}clearSearch(){this.searchView.classList.add("hidden"),this.contentView.classList.remove("hidden"),this.loadingBlock.classList.add("hidden"),this.searchInput.value=""}},Rh=Ph;var zh=class{setup(){this.elem=this.$el,this.entityTypes=this.$opts.entityTypes||"page,book,chapter",this.entityPermission=this.$opts.entityPermission||"view",this.input=this.$refs.input,this.searchInput=this.$refs.search,this.loading=this.$refs.loading,this.resultsContainer=this.$refs.results,this.addButton=this.$refs.add,this.search="",this.lastClick=0,this.selectedItemData=null,this.setupListeners(),this.showLoading(),this.initialLoad()}setupListeners(){this.elem.addEventListener("click",this.onClick.bind(this));let t=0;this.searchInput.addEventListener("input",n=>{t=Date.now(),this.showLoading(),setTimeout(()=>{Date.now()-t<199||this.searchEntities(this.searchInput.value)},200)}),this.searchInput.addEventListener("keydown",n=>{n.keyCode===13&&n.preventDefault()}),this.addButton&&this.addButton.addEventListener("click",n=>{this.selectedItemData&&(this.confirmSelection(this.selectedItemData),this.unselectAll())}),$t(this.$el,"[data-entity-type]","keydown",(n,l)=>{if(n.ctrlKey&&n.code==="Enter"){let c=this.$el.closest("form");if(c){c.submit(),n.preventDefault();return}}n.code==="ArrowDown"&&this.focusAdjacent(!0),n.code==="ArrowUp"&&this.focusAdjacent(!1)}),this.searchInput.addEventListener("keydown",n=>{n.code==="ArrowDown"&&this.focusAdjacent(!0)})}focusAdjacent(t=!0){let n=Array.from(this.resultsContainer.querySelectorAll("[data-entity-type]")),l=n.indexOf(document.activeElement),c=n[l+(t?1:-1)]||n[0];c&&c.focus()}showLoading(){this.loading.style.display="block",this.resultsContainer.style.display="none"}hideLoading(){this.loading.style.display="none",this.resultsContainer.style.display="block"}initialLoad(){window.$http.get(this.searchUrl()).then(t=>{this.resultsContainer.innerHTML=t.data,this.hideLoading()})}searchUrl(){return`/ajax/search/entities?types=${encodeURIComponent(this.entityTypes)}&permission=${encodeURIComponent(this.entityPermission)}`}searchEntities(t){this.input.value="";let n=`${this.searchUrl()}&term=${encodeURIComponent(t)}`;window.$http.get(n).then(l=>{this.resultsContainer.innerHTML=l.data,this.hideLoading()})}isDoubleClick(){let t=Date.now(),n=t-this.lastClick<300;return this.lastClick=t,n}onClick(t){let n=t.target.closest("[data-entity-type]");n&&(t.preventDefault(),t.stopPropagation(),this.selectItem(n))}selectItem(t){let n=this.isDoubleClick(),l=t.getAttribute("data-entity-type"),c=t.getAttribute("data-entity-id"),d=!t.classList.contains("selected")||n;this.unselectAll(),this.input.value=d?`${l}:${c}`:"";let a=t.getAttribute("href"),h=t.querySelector(".entity-list-item-name").textContent,f={id:Number(c),name:h,link:a};d?(t.classList.add("selected"),this.selectedItemData=f):window.$events.emit("entity-select-change",null),!(!n&&!d)&&(n&&this.confirmSelection(f),d&&window.$events.emit("entity-select-change",f))}confirmSelection(t){window.$events.emit("entity-select-confirm",t)}unselectAll(){let t=this.elem.querySelectorAll(".selected");for(let n of t)n.classList.remove("selected","primary-background");this.selectedItemData=null}},Nh=zh;var Bh=class{setup(){this.elem=this.$el,this.selectButton=this.$refs.select,window.EntitySelectorPopup=this,this.callback=null,this.selection=null,this.selectButton.addEventListener("click",this.onSelectButtonClick.bind(this)),window.$events.listen("entity-select-change",this.onSelectionChange.bind(this)),window.$events.listen("entity-select-confirm",this.onSelectionConfirm.bind(this))}show(t){this.callback=t,this.elem.components.popup.show()}hide(){this.elem.components.popup.hide()}onSelectButtonClick(){this.hide(),this.selection!==null&&this.callback&&this.callback(this.selection)}onSelectionConfirm(t){this.hide(),this.callback&&t&&this.callback(t)}onSelectionChange(t){this.selection=t,t===null?this.selectButton.setAttribute("disabled","true"):this.selectButton.removeAttribute("disabled")}},qh=Bh;var jh=class{setup(){this.container=this.$el,this.name=this.$opts.name,Rt(this.$el,()=>{this.$emit(this.name,this.$opts)})}},$h=jh;var Uh=class{constructor(t){this.elem=t,this.isOpen=t.getAttribute("expand-toggle-is-open")==="yes",this.updateEndpoint=t.getAttribute("expand-toggle-update-endpoint"),this.selector=t.getAttribute("expand-toggle"),t.addEventListener("click",this.click.bind(this))}open(t){yi(t,200)}close(t){vi(t,200)}click(t){t.preventDefault();let n=document.querySelectorAll(this.selector);for(let l of n)this.isOpen?this.close(l):this.open(l);this.isOpen=!this.isOpen,this.updateSystemAjax(this.isOpen)}updateSystemAjax(t){window.$http.patch(this.updateEndpoint,{expand:t?"true":"false"})}},Hh=Uh;var Wh=class{setup(){this.elem=this.$el,this.toggleButton=this.$refs.toggle,this.menu=this.$refs.menu,this.open=!1,this.toggleButton.addEventListener("click",this.onToggle.bind(this)),this.onWindowClick=this.onWindowClick.bind(this),this.onKeyDown=this.onKeyDown.bind(this)}onToggle(t){this.open=!this.open,this.menu.classList.toggle("show",this.open),this.toggleButton.setAttribute("aria-expanded",this.open?"true":"false"),this.open?(this.elem.addEventListener("keydown",this.onKeyDown),window.addEventListener("click",this.onWindowClick)):(this.elem.removeEventListener("keydown",this.onKeyDown),window.removeEventListener("click",this.onWindowClick)),t.stopPropagation()}onKeyDown(t){t.code==="Escape"&&this.onToggle(t)}onWindowClick(t){this.onToggle(t)}},Gh=Wh;var Kh=class{constructor(t){this.elem=t,this.typeControl=t.querySelector('[name="setting-app-homepage-type"]'),this.pagePickerContainer=t.querySelector("[page-picker-container]"),this.typeControl.addEventListener("change",this.controlPagePickerVisibility.bind(this)),this.controlPagePickerVisibility()}controlPagePickerVisibility(){let t=this.typeControl.value==="page";this.pagePickerContainer.style.display=t?"block":"none"}},Vh=Kh;var Yh=class{setup(){this.uploadedTo=this.$opts.uploadedTo,this.container=this.$el,this.popupEl=this.$refs.popup,this.searchForm=this.$refs.searchForm,this.searchInput=this.$refs.searchInput,this.cancelSearch=this.$refs.cancelSearch,this.listContainer=this.$refs.listContainer,this.filterTabs=this.$manyRefs.filterTabs,this.selectButton=this.$refs.selectButton,this.formContainer=this.$refs.formContainer,this.dropzoneContainer=this.$refs.dropzoneContainer,this.type="gallery",this.lastSelected={},this.lastSelectedTime=0,this.callback=null,this.resetState=()=>{this.hasData=!1,this.page=1,this.filter="all"},this.resetState(),this.setupListeners(),window.ImageManager=this}setupListeners(){Rt(this.filterTabs,t=>{this.resetAll(),this.filter=t.target.dataset.filter,this.setActiveFilterTab(this.filter),this.loadGallery()}),this.searchForm.addEventListener("submit",t=>{this.resetListView(),this.loadGallery(),t.preventDefault()}),Rt(this.cancelSearch,t=>{this.resetListView(),this.resetSearchView(),this.loadGallery(),this.cancelSearch.classList.remove("active")}),this.searchInput.addEventListener("input",t=>{this.cancelSearch.classList.toggle("active",this.searchInput.value.trim())}),$t(this.listContainer,".load-more","click",async t=>{Ji(t.target),this.page++,await this.loadGallery(),t.target.remove()}),this.listContainer.addEventListener("event-emit-select-image",this.onImageSelectEvent.bind(this)),Rt(this.selectButton,()=>{this.callback&&this.callback(this.lastSelected),this.hide()}),$t(this.formContainer,"#image-manager-delete","click",t=>{this.lastSelected&&this.loadImageEditForm(this.lastSelected.id,!0)}),this.formContainer.addEventListener("ajax-form-success",this.refreshGallery.bind(this)),this.container.addEventListener("dropzone-success",this.refreshGallery.bind(this))}show(t,n="gallery"){this.resetAll(),this.callback=t,this.type=n,this.popupEl.components.popup.show(),this.dropzoneContainer.classList.toggle("hidden",n!=="gallery"),this.hasData||(this.loadGallery(),this.hasData=!0)}hide(){this.popupEl.components.popup.hide()}async loadGallery(){let t={page:this.page,search:this.searchInput.value||null,uploaded_to:this.uploadedTo,filter_type:this.filter==="all"?null:this.filter},{data:n}=await window.$http.get(`images/${this.type}`,t);this.addReturnedHtmlElementsToList(n),Uc(this.listContainer)}addReturnedHtmlElementsToList(t){let n=document.createElement("div");n.innerHTML=t,window.components.init(n);for(let l of[...n.children])this.listContainer.appendChild(l)}setActiveFilterTab(t){this.filterTabs.forEach(l=>l.classList.remove("selected"));let n=this.filterTabs.find(l=>l.dataset.filter===t);n&&n.classList.add("selected")}resetAll(){this.resetState(),this.resetListView(),this.resetSearchView(),this.resetEditForm(),this.setActiveFilterTab("all"),this.selectButton.classList.add("hidden")}resetSearchView(){this.searchInput.value=""}resetEditForm(){this.formContainer.innerHTML=""}resetListView(){Ji(this.listContainer),this.page=1}refreshGallery(){this.resetListView(),this.loadGallery()}onImageSelectEvent(t){let n=JSON.parse(t.detail.data),l=n&&n.id===this.lastSelected.id&&Date.now()-this.lastSelectedTime<400,c=t.target.classList.contains("selected");[...this.listContainer.querySelectorAll(".selected")].forEach(d=>{d.classList.remove("selected")}),c?this.resetEditForm():(t.target.classList.add("selected"),this.loadImageEditForm(n.id)),this.selectButton.classList.toggle("hidden",c),l&&this.callback&&(this.callback(n),this.hide()),this.lastSelected=n,this.lastSelectedTime=Date.now()}async loadImageEditForm(t,n=!1){n||(this.formContainer.innerHTML="");let l=n?{delete:!0}:{},{data:c}=await window.$http.get(`/images/edit/${t}`,l);this.formContainer.innerHTML=c,window.components.init(this.formContainer)}},Xh=Yh;var Zh=class{constructor(t){this.elem=t,this.imageElem=t.querySelector("img"),this.imageInput=t.querySelector("input[type=file]"),this.resetInput=t.querySelector("input[data-reset-input]"),this.removeInput=t.querySelector("input[data-remove-input]"),this.defaultImage=t.getAttribute("data-default-image"),t.querySelector('button[data-action="reset-image"]').addEventListener("click",this.reset.bind(this));let l=t.querySelector('button[data-action="remove-image"]');l&&l.addEventListener("click",this.removeImage.bind(this)),this.imageInput.addEventListener("change",this.fileInputChange.bind(this))}fileInputChange(){this.resetInput.setAttribute("disabled","disabled"),this.removeInput&&this.removeInput.setAttribute("disabled","disabled");for(let t of this.imageInput.files)this.imageElem.src=window.URL.createObjectURL(t);this.imageElem.classList.remove("none")}reset(){this.imageInput.value="",this.imageElem.src=this.defaultImage,this.resetInput.removeAttribute("disabled"),this.removeInput&&this.removeInput.setAttribute("disabled","disabled"),this.imageElem.classList.remove("none")}removeImage(){this.imageInput.value="",this.imageElem.classList.add("none"),this.removeInput.removeAttribute("disabled"),this.resetInput.setAttribute("disabled","disabled")}},Qh=Zh;var Jh=class{constructor(t){this.elem=t,this.menu=t.querySelector("ul"),this.sortInput=t.querySelector('[name="sort"]'),this.orderInput=t.querySelector('[name="order"]'),this.form=t.querySelector("form"),this.menu.addEventListener("click",n=>{n.target.closest("[data-sort-value]")!==null&&this.sortOptionClick(n)}),this.elem.addEventListener("click",n=>{n.target.closest("[data-sort-dir]")!==null&&this.sortDirectionClick(n)})}sortOptionClick(t){let n=t.target.closest("[data-sort-value]");this.sortInput.value=n.getAttribute("data-sort-value"),t.preventDefault(),this.form.submit()}sortDirectionClick(t){let l=this.orderInput.value==="asc"?"desc":"asc";this.orderInput.value=l,t.preventDefault(),this.form.submit()}},ep=Jh;var gv=St(av()),vv=St(fv());var dv=class{constructor(t){this.data=t}hasItems(){return Boolean(this.data)&&Boolean(this.data.types)&&this.data.types.length>0}containsTabularData(){let t=this.data.getData("text/rtf");return t&&t.includes("\\trowd")}getImages(){let t=this.data.types,n=this.data.files,l=[];for(let c of t)if(c.includes("image")){let d=this.data.getData(c);l.push(d.getAsFile())}for(let c of n)c.type.includes("image")&&l.push(c);return l}},yo=dv;var pn=null,Ol,Pl,Rl;function Ok(i,t,n){Pl=t,Rl=n,pn=document.createElement("iframe"),pn.setAttribute("frameborder","0"),window.addEventListener("message",hv),pn.setAttribute("src",i),pn.setAttribute("class","fullscreen"),pn.style.backgroundColor="#FFFFFF",document.body.appendChild(pn),Ol=new URL(i).origin}function Pk(){pv()}function hv(i){if(!i.data||i.data.length<1||i.origin!==Ol)return;let t=JSON.parse(i.data);t.event==="init"?Nk():t.event==="exit"?pv():t.event==="save"?zk(t):t.event==="export"&&Rk(t)}function Rk(i){Rl&&Rl(i.data)}function zk(i){mv({action:"export",format:"xmlpng",xml:i.xml,spin:"Updating drawing"})}function Nk(){!Pl||Pl().then(i=>{mv({action:"load",autosave:1,xml:i})})}function pv(){window.removeEventListener("message",hv),pn&&document.body.removeChild(pn)}function mv(i){pn.contentWindow.postMessage(JSON.stringify(i),Ol)}async function Bk(i,t){let n={image:i,uploaded_to:t};return(await window.$http.post(window.baseUrl("/images/drawio"),n)).data}async function qk(i){return`data:image/png;base64,${(await window.$http.get(window.baseUrl(`/images/drawio/base64/${i}`))).data.content}`}var Nr={show:Ok,close:Pk,upload:Bk,load:qk};var yv=class{setup(){this.elem=this.$el,this.pageId=this.$opts.pageId,this.textDirection=this.$opts.textDirection,this.imageUploadErrorText=this.$opts.imageUploadErrorText,this.serverUploadLimitText=this.$opts.serverUploadLimitText,this.markdown=new gv.default({html:!0}),this.markdown.use(vv.default,{label:!0}),this.display=this.elem.querySelector(".markdown-display"),this.displayStylesLoaded=!1,this.input=this.elem.querySelector("textarea"),this.cm=ur.markdownEditor(this.input),this.onMarkdownScroll=this.onMarkdownScroll.bind(this);let t=()=>{this.displayDoc=this.display.contentDocument,this.init()};this.display.contentDocument.readyState==="complete"?t():this.display.addEventListener("load",t.bind(this)),window.$events.emitPublic(this.elem,"editor-markdown::setup",{markdownIt:this.markdown,displayEl:this.display,codeMirrorInstance:this.cm})}init(){let t=0;this.displayDoc.addEventListener("click",c=>{let d=Date.now()-t<300,a=c.target.closest("a");if(a!==null){c.preventDefault(),window.open(a.getAttribute("href"));return}let h=c.target.closest("[drawio-diagram]");if(h!==null&&d){this.actionEditDrawing(h);return}t=Date.now()}),this.elem.addEventListener("click",c=>{let d=c.target.closest("button[data-action]");if(d===null)return;let a=d.getAttribute("data-action");if(a==="insertImage"&&this.actionInsertImage(),a==="insertLink"&&this.actionShowLinkSelector(),a==="insertDrawing"&&(c.ctrlKey||c.metaKey)){this.actionShowImageManager();return}a==="insertDrawing"&&this.actionStartDrawing(),a==="fullscreen"&&this.actionFullScreen()}),this.elem.addEventListener("click",c=>{let d=c.target.closest(".editor-toolbar-label");if(!d)return;let a=this.elem.querySelectorAll(".markdown-editor-wrap");for(let h of a)h.classList.remove("active");d.closest(".markdown-editor-wrap").classList.add("active")}),window.$events.listen("editor-markdown-update",c=>{this.cm.setValue(c),this.updateAndRender()}),this.codeMirrorSetup(),this.listenForBookStackEditorEvents();let l=new URL(window.location).searchParams.get("content-text");l&&this.scrollToText(l)}updateAndRender(){let t=this.cm.getValue();this.input.value=t;let n=this.markdown.render(t);window.$events.emit("editor-html-change",n),window.$events.emit("editor-markdown-change",t),this.displayDoc.body.className="page-content",this.displayDoc.body.innerHTML=n,this.loadStylesIntoDisplay()}loadStylesIntoDisplay(){if(this.displayStylesLoaded)return;this.displayDoc.documentElement.classList.add("markdown-editor-display"),document.documentElement.classList.contains("dark-mode")&&(this.displayDoc.documentElement.style.backgroundColor="#222",this.displayDoc.documentElement.classList.add("dark-mode")),this.displayDoc.head.innerHTML="";let t=document.head.querySelectorAll("style,link[rel=stylesheet]");for(let n of t){let l=n.cloneNode(!0);this.displayDoc.head.appendChild(l)}this.displayStylesLoaded=!0}onMarkdownScroll(t){let n=this.displayDoc.body.children;if(n.length<=t)return;(t===-1?n[n.length-1]:n[t]).scrollIntoView({block:"start",inline:"nearest",behavior:"smooth"})}codeMirrorSetup(){let t=this.cm,n=this;t.setOption("direction","ltr");let l=ur.getMetaKey(),c={};c[`${l}-Alt-I`]=function(v){let k=`![${v.getSelection()}](http://)`,_=v.getCursor("from");v.replaceSelection(k),v.setCursor(_.line,_.ch+k.length-1)},c[`${l}-S`]=v=>{window.$events.emit("editor-save-draft")},c[`${l}-Enter`]=v=>{window.$events.emit("editor-save-page")},c[`Shift-${l}-K`]=v=>{this.actionShowLinkSelector()},c[`${l}-K`]=v=>{g()},c[`${l}-1`]=v=>{h("##")},c[`${l}-2`]=v=>{h("###")},c[`${l}-3`]=v=>{h("####")},c[`${l}-4`]=v=>{h("#####")},c[`${l}-5`]=v=>{h("")},c[`${l}-d`]=v=>{h("")},c[`${l}-6`]=v=>{h(">")},c[`${l}-q`]=v=>{h(">")},c[`${l}-7`]=v=>{p("\n```\n","\n```")},c[`${l}-8`]=v=>{p("`","`")},c[`Shift-${l}-E`]=v=>{p("`","`")},c[`${l}-9`]=v=>{p('

    ',"

    ")},t.setOption("extraKeys",c),t.on("change",(v,b)=>{this.updateAndRender()});let d=Jo(v=>{let b=v.getScrollInfo();if(b.top+b.clientHeight===b.height){this.onMarkdownScroll(-1);return}let _=v.lineAtHeight(b.top,"local"),w=v.getRange({line:0,ch:null},{line:_,ch:null}),R=new DOMParser().parseFromString(this.markdown.render(w),"text/html").documentElement.querySelectorAll("body > *");this.onMarkdownScroll(R.length)},100);t.on("scroll",v=>{d(v)}),t.on("paste",(v,b)=>{let k=new yo(b.clipboardData||b.dataTransfer);if(!k.hasItems()||k.containsTabularData())return;let _=k.getImages();for(let w of _)y(w)}),t.on("drop",(v,b)=>{let k=b.dataTransfer.getData("bookstack/template");if(k){let w=v.coordsChar({left:b.pageX,top:b.pageY});v.setCursor(w),b.preventDefault(),window.$http.get(`/templates/${k}`).then(I=>{let S=I.data.markdown||I.data.html;v.replaceSelection(S)})}let _=new yo(b.dataTransfer);if(_.hasItems()&&_.getImages().length>0){let w=v.coordsChar({left:b.pageX,top:b.pageY});v.setCursor(w),b.stopPropagation(),b.preventDefault();let I=_.getImages();for(let S of I)y(S)}});function a(v,b){let k=t.getValue(),_=t.listSelections();t.setValue(k.replace(v,b)),t.setSelections(_)}function h(v){let b=t.getCursor(),k=t.getLine(b.line),_=k.length,w=k.split(" ")[0];if(w===v){k=k.replace(`${v} `,""),t.replaceRange(k,{line:b.line,ch:0},{line:b.line,ch:_}),t.setCursor({line:b.line,ch:b.ch-(v.length+1)});return}let I=/^[#>`]/.test(w),S=0;I?(S=v.length-w.length,k=k.replace(w,v).trim()):v!==""&&(S=v.length+1,k=v+" "+k),t.replaceRange(k,{line:b.line,ch:0},{line:b.line,ch:_}),t.setCursor({line:b.line,ch:b.ch+S})}function f(v,b){let k=t.getCursor(),_=t.getLine(k.line),w=_.length,I=_;_.indexOf(v)===0&&_.slice(-b.length)===b?I=_.slice(v.length,_.length-b.length):I=`${v}${_}${b}`,t.replaceRange(I,{line:k.line,ch:0},{line:k.line,ch:w}),t.setCursor({line:k.line,ch:k.ch+v.length})}function p(v,b){let k=t.getSelection();if(k==="")return f(v,b);let _=k,w=0,I=0;k.indexOf(v)===0&&k.slice(-b.length)===b?(_=k.slice(v.length,k.length-b.length),I=-(b.length+v.length)):(_=`${v}${k}${b}`,I=v.length+b.length);let S=t.listSelections()[0];t.replaceSelection(_);let R=S.head.ch<=S.anchor.ch;S.head.ch+=R?w:I,S.anchor.ch+=R?I:w,t.setSelections([S])}function y(v){if(v===null||v.type.indexOf("image")!==0)return;let b="png";if(v.name){let U=v.name.match(/\.(.+)$/);U.length>1&&(b=U[1])}let k="image-"+Math.random().toString(16).slice(2),_=window.baseUrl(`/loading.gif#upload${k}`),w=t.getSelection(),I=`![${w}](${_})`,S=t.getCursor();t.replaceSelection(I),t.setCursor({line:S.line,ch:S.ch+w.length+3});let R="image-"+Date.now()+"."+b,O=new FormData;O.append("file",v,R),O.append("uploaded_to",n.pageId),window.$http.post("/images/gallery",O).then(U=>{let $=`[![${w}](${U.data.thumbs.display})](${U.data.url})`;a(I,$)}).catch(U=>{window.$events.emit("error",n.imageUploadErrorText),a(I,w),console.log(U)})}function g(){let v=t.getCursor("from"),b=t.getSelection()||"",k=`[${b}]()`;t.focus(),t.replaceSelection(k);let _=b===""?-3:-1;t.setCursor(v.line,v.ch+k.length+_)}this.updateAndRender()}actionInsertImage(){let t=this.cm.getCursor("from");window.ImageManager.show(n=>{let l=this.cm.getSelection(),c="[!["+(l||n.name)+"]("+n.thumbs.display+")]("+n.url+")";this.cm.focus(),this.cm.replaceSelection(c),this.cm.setCursor(t.line,t.ch+c.length)},"gallery")}actionShowImageManager(){let t=this.cm.getCursor("from");window.ImageManager.show(n=>{this.insertDrawing(n,t)},"drawio")}actionShowLinkSelector(){let t=this.cm.getCursor("from");window.EntitySelectorPopup.show(n=>{let c=`[${this.cm.getSelection()||n.name}](${n.link})`;this.cm.focus(),this.cm.replaceSelection(c),this.cm.setCursor(t.line,t.ch+c.length)})}getDrawioUrl(){let t=document.querySelector("[drawio-url]");return t?t.getAttribute("drawio-url"):!1}actionStartDrawing(){let t=this.getDrawioUrl();if(!t)return;let n=this.cm.getCursor("from");Nr.show(t,()=>Promise.resolve(""),l=>{let c={image:l,uploaded_to:Number(this.pageId)};window.$http.post("/images/drawio",c).then(d=>{this.insertDrawing(d.data,n),Nr.close()}).catch(d=>{this.handleDrawingUploadError(d)})})}insertDrawing(t,n){let l=`
    `;this.cm.focus(),this.cm.replaceSelection(l),this.cm.setCursor(n.line,n.ch+l.length)}actionEditDrawing(t){let n=this.getDrawioUrl();if(!n)return;let l=this.cm.getCursor("from"),c=t.getAttribute("drawio-diagram");Nr.show(n,()=>Nr.load(c),d=>{let a={image:d,uploaded_to:Number(this.pageId)};window.$http.post("/images/drawio",a).then(h=>{let f=`
    `,p=this.cm.getValue().split(` `).map(y=>y.indexOf(`drawio-diagram="${c}"`)!==-1?f:y).join(` `);this.cm.setValue(p),this.cm.setCursor(l),this.cm.focus(),Nr.close()}).catch(h=>{this.handleDrawingUploadError(h)})})}handleDrawingUploadError(t){t.status===413?window.$events.emit("error",this.serverUploadLimitText):window.$events.emit("error",this.imageUploadErrorText),console.log(t)}actionFullScreen(){let t=this.elem.classList.contains("fullscreen");this.elem.classList.toggle("fullscreen",!t),document.body.classList.toggle("markdown-fullscreen",!t)}scrollToText(t){if(!t)return;let l=this.cm.getValue().split(/\r?\n/),c=l.findIndex(d=>d&&d.indexOf(t)!==-1);c!==-1&&(this.cm.scrollIntoView({line:c},200),this.cm.focus(),this.cm.setCursor({line:c,char:l[c].length}))}listenForBookStackEditorEvents(){function t({html:n,markdown:l}){return l||n}window.$events.listen("editor::replace",n=>{let l=t(n);this.cm.setValue(l)}),window.$events.listen("editor::append",n=>{let l=this.cm.getCursor("from"),c=t(n),d=this.cm.getValue()+` `+c;this.cm.setValue(d),this.cm.setCursor(l.line,l.ch)}),window.$events.listen("editor::prepend",n=>{let l=this.cm.getCursor("from"),c=t(n),d=c+` `+this.cm.getValue();this.cm.setValue(d);let a=c.split(` `).length;this.cm.setCursor(l.line+a,l.ch)}),window.$events.listen("editor::insert",n=>{let l=t(n);this.cm.replaceSelection(l)}),window.$events.listen("editor::focus",()=>{this.cm.focus()})}},bv=yv;var xv=class{constructor(t){this.elem=t,this.inviteOption=t.querySelector("input[name=send_invite]"),this.inviteOption&&(this.inviteOption.addEventListener("change",this.inviteOptionChange.bind(this)),this.inviteOptionChange())}inviteOptionChange(){let t=this.inviteOption.value==="true",n=this.elem.querySelectorAll("input[type=password]");for(let c of n)c.disabled=t;let l=this.elem.querySelector("#password-input-container");l&&(l.style.display=t?"none":"block")}},wv=xv;var kv=class{constructor(t){this.elem=t,this.type=t.getAttribute("notification"),this.textElem=t.querySelector("span"),this.autohide=this.elem.hasAttribute("data-autohide"),this.elem.style.display="grid",window.$events.listen(this.type,n=>{this.show(n)}),t.addEventListener("click",this.hide.bind(this)),t.hasAttribute("data-show")&&setTimeout(()=>this.show(this.textElem.textContent),100),this.hideCleanup=this.hideCleanup.bind(this)}show(t=""){if(this.elem.removeEventListener("transitionend",this.hideCleanup),this.textElem.textContent=t,this.elem.style.display="grid",setTimeout(()=>{this.elem.classList.add("showing")},1),this.autohide){let n=t.split(" ").length,l=Math.max(2e3,1e3+250*n);setTimeout(this.hide.bind(this),l)}}hide(){this.elem.classList.remove("showing"),this.elem.addEventListener("transitionend",this.hideCleanup)}hideCleanup(){this.elem.style.display="none",this.elem.removeEventListener("transitionend",this.hideCleanup)}},_v=kv;var Sv=class{setup(){this.removeButton=this.$refs.remove,this.showButton=this.$refs.show,this.input=this.$refs.input,this.setupListeners()}setupListeners(){Rt(this.removeButton,()=>{this.input.value="",this.input.classList.add("hidden"),this.removeButton.classList.add("hidden"),this.showButton.classList.remove("hidden")}),Rt(this.showButton,()=>{this.input.classList.remove("hidden"),this.removeButton.classList.remove("hidden"),this.showButton.classList.add("hidden")})}},Ev=Sv;var Cv=class{setup(){this.elem=this.$el,this.pageId=Number(this.$opts.pageId),this.container=this.$refs.commentContainer,this.formContainer=this.$refs.formContainer,this.commentCountBar=this.$refs.commentCountBar,this.addButtonContainer=this.$refs.addButtonContainer,this.replyToRow=this.$refs.replyToRow,this.updatedText=this.$opts.updatedText,this.deletedText=this.$opts.deletedText,this.createdText=this.$opts.createdText,this.countText=this.$opts.countText,this.editingComment=null,this.parentId=null,this.formContainer&&(this.form=this.formContainer.querySelector("form"),this.formInput=this.form.querySelector("textarea"),this.form.addEventListener("submit",this.saveComment.bind(this))),this.elem.addEventListener("click",this.handleAction.bind(this)),this.elem.addEventListener("submit",this.updateComment.bind(this))}handleAction(t){let n=t.target.closest("[action]");if(t.target.matches('a[href^="#"]')){let d=t.target.href.split("#")[1];eo(document.querySelector("#"+d))}if(n===null)return;t.preventDefault();let l=n.getAttribute("action"),c=n.closest("[comment]");l==="edit"&&this.editComment(c),l==="closeUpdateForm"&&this.closeUpdateForm(),l==="delete"&&this.deleteComment(c),l==="addComment"&&this.showForm(),l==="hideForm"&&this.hideForm(),l==="reply"&&this.setReply(c),l==="remove-reply-to"&&this.removeReplyTo()}closeUpdateForm(){!this.editingComment||(this.editingComment.querySelector("[comment-content]").style.display="block",this.editingComment.querySelector("[comment-edit-container]").style.display="none")}editComment(t){this.hideForm(),this.editingComment&&this.closeUpdateForm(),t.querySelector("[comment-content]").style.display="none",t.querySelector("[comment-edit-container]").style.display="block";let n=t.querySelector("[comment-edit-container] textarea"),l=n.value.split(` `).length;n.style.height=l*20+40+"px",this.editingComment=t}updateComment(t){let n=t.target;t.preventDefault();let c={text:n.querySelector("textarea").value,parent_id:this.parentId||null};this.showLoading(n);let d=this.editingComment.getAttribute("comment");window.$http.put(`/comment/${d}`,c).then(a=>{let h=document.createElement("div");h.innerHTML=a.data,this.editingComment.innerHTML=h.children[0].innerHTML,window.$events.success(this.updatedText),window.components.init(this.editingComment),this.closeUpdateForm(),this.editingComment=null}).catch(window.$events.showValidationErrors).then(()=>{this.hideLoading(n)})}deleteComment(t){let n=t.getAttribute("comment");this.showLoading(t.querySelector("[comment-content]")),window.$http.delete(`/comment/${n}`).then(l=>{t.parentNode.removeChild(t),window.$events.success(this.deletedText),this.updateCount(),this.hideForm()})}saveComment(t){t.preventDefault(),t.stopPropagation();let l={text:this.formInput.value,parent_id:this.parentId||null};this.showLoading(this.form),window.$http.post(`/comment/${this.pageId}`,l).then(c=>{let d=document.createElement("div");d.innerHTML=c.data;let a=d.children[0];this.container.appendChild(a),window.components.init(a),window.$events.success(this.createdText),this.resetForm(),this.updateCount()}).catch(c=>{window.$events.showValidationErrors(c),this.hideLoading(this.form)})}updateCount(){let t=this.container.children.length;this.elem.querySelector("[comments-title]").textContent=window.trans_plural(this.countText,t,{count:t})}resetForm(){this.formInput.value="",this.formContainer.appendChild(this.form),this.hideForm(),this.removeReplyTo(),this.hideLoading(this.form)}showForm(){this.formContainer.style.display="block",this.formContainer.parentNode.style.display="block",this.addButtonContainer.style.display="none",this.formInput.focus(),this.formInput.scrollIntoView({behavior:"smooth"})}hideForm(){this.formContainer.style.display="none",this.formContainer.parentNode.style.display="none",this.getCommentCount()>0?this.elem.appendChild(this.addButtonContainer):this.commentCountBar.appendChild(this.addButtonContainer),this.addButtonContainer.style.display="block"}getCommentCount(){return this.elem.querySelectorAll(".comment-box[comment]").length}setReply(t){this.showForm(),this.parentId=Number(t.getAttribute("local-id")),this.replyToRow.style.display="block";let n=this.replyToRow.querySelector("a");n.textContent=`#${this.parentId}`,n.href=`#comment${this.parentId}`}removeReplyTo(){this.parentId=null,this.replyToRow.style.display="none"}showLoading(t){let n=t.querySelectorAll(".form-group");for(let l of n)l.style.display="none";t.querySelector(".form-group.loading").style.display="block"}hideLoading(t){let n=t.querySelectorAll(".form-group");for(let l of n)l.style.display="block";t.querySelector(".form-group.loading").style.display="none"}},Tv=Cv;var Av=St(Qs());var Lv=class{constructor(t){if(this.elem=t,this.pageId=t.getAttribute("page-display"),ur.highlight(),this.setupPointer(),this.setupNavHighlighting(),this.setupDetailsCodeBlockRefresh(),window.location.hash){let l=window.location.hash.replace(/\%20/g," ").substr(1);this.goToText(l)}let n=document.querySelector(".sidebar-page-nav");n&&$t(n,"a","click",(l,c)=>{l.preventDefault(),window.components["tri-layout"][0].showContent();let d=c.getAttribute("href").substr(1);this.goToText(d),window.history.pushState(null,null,"#"+d)})}goToText(t){let n=document.getElementById(t);if(Xo(".page-content [data-highlighted]",l=>{l.removeAttribute("data-highlighted"),l.style.backgroundColor=null}),n!==null)eo(n);else{let l=$c(".page-content > div > *",t);l&&eo(l)}}setupPointer(){let t=document.getElementById("pointer");if(!t)return;t=t.parentNode.removeChild(t);let n=t.querySelector("div.pointer"),l=!1,c=!1,d=!0,a="";$t(t,"input","click",(f,p)=>{p.select(),f.stopPropagation()}),Zo(t,["click","focus"],f=>{f.stopPropagation()}),$t(t,"span.icon","click",(f,p)=>{f.stopPropagation(),d=!d,p.querySelector('[data-icon="include"]').style.display=d?"none":"inline",p.querySelector('[data-icon="link"]').style.display=d?"inline":"none",h()}),new Av.default(t.querySelector("button")),Zo(document.body,["click","focus"],f=>{!l||c||(t=t.parentElement.removeChild(t),l=!1)});let h=f=>{let p=d?window.baseUrl(`/link/${this.pageId}#${a}`):`{{@${this.pageId}#${a}}}`;d&&!p.startsWith("http")&&(p=window.location.protocol+"//"+window.location.host+p),t.querySelector("input").value=p;let y=t.querySelector("#pointer-edit");if(y&&f){let g=y.dataset.editHref,v=f.id,b=f.textContent&&f.textContent.substring(0,50);y.href=`${g}?content-id=${v}&content-text=${encodeURIComponent(b)}`}};Xo('.page-content [id^="bkmrk"]',f=>{Zo(f,["mouseup","keyup"],p=>{p.stopPropagation(),window.getSelection().toString().length!==0&&(a=f.id,h(f),f.parentNode.insertBefore(t,f),t.style.display="block",l=!0,c=!0,requestAnimationFrame(()=>{let g=f.getBoundingClientRect(),v=p.pageX-g.left-164;v<0&&(v=0);let b=v/g.width*100;n.style.left=b+"%",setTimeout(()=>{c=!1},100)}))})})}setupNavHighlighting(){if(!("IntersectionObserver"in window)||!("IntersectionObserverEntry"in window)||!("intersectionRatio"in window.IntersectionObserverEntry.prototype))return;let t=document.querySelector(".sidebar-page-nav"),n=document.querySelector(".page-content").querySelectorAll("h1, h2, h3, h4, h5, h6");n.length>0&&t!==null&&l(n);function l(a){let h={rootMargin:"0px 0px 0px 0px",threshold:1},f=new IntersectionObserver(c,h);for(let p of a)f.observe(p)}function c(a,h){for(let f of a){let p=f.intersectionRatio===1;d(f.target.id,p)}}function d(a,h){Xo('a[href="#'+a+'"]',f=>{f.closest("li").classList.toggle("current-heading",h)})}}setupDetailsCodeBlockRefresh(){let t=l=>{[...l.target.querySelectorAll(".CodeMirror")].forEach(d=>d.CodeMirror&&d.CodeMirror.refresh())};[...this.elem.querySelectorAll("details")].forEach(l=>l.addEventListener("toggle",t))}},Dv=Lv;function Iv(i){let t=new Date(i*1e3),n=t.getHours(),l=t.getMinutes();return`${(n>9?"":"0")+n}:${(l>9?"":"0")+l}`}var Fv=class{setup(){this.draftsEnabled=this.$opts.draftsEnabled==="true",this.editorType=this.$opts.editorType,this.pageId=Number(this.$opts.pageId),this.isNewDraft=this.$opts.pageNewDraft==="true",this.hasDefaultTitle=this.$opts.hasDefaultTitle||!1,this.container=this.$el,this.titleElem=this.$refs.titleContainer.querySelector("input"),this.saveDraftButton=this.$refs.saveDraft,this.discardDraftButton=this.$refs.discardDraft,this.discardDraftWrap=this.$refs.discardDraftWrap,this.draftDisplay=this.$refs.draftDisplay,this.draftDisplayIcon=this.$refs.draftDisplayIcon,this.changelogInput=this.$refs.changelogInput,this.changelogDisplay=this.$refs.changelogDisplay,this.draftText=this.$opts.draftText,this.autosaveFailText=this.$opts.autosaveFailText,this.editingPageText=this.$opts.editingPageText,this.draftDiscardedText=this.$opts.draftDiscardedText,this.setChangelogText=this.$opts.setChangelogText,this.editorHTML="",this.editorMarkdown="",this.autoSave={interval:null,frequency:3e4,last:0},this.pageId!==0&&this.draftsEnabled&&window.setTimeout(()=>{this.startAutoSave()},1e3),this.draftDisplay.innerHTML=this.draftText,this.setupListeners(),this.setInitialFocus()}setupListeners(){window.$events.listen("editor-save-draft",this.saveDraft.bind(this)),window.$events.listen("editor-save-page",this.savePage.bind(this)),window.$events.listen("editor-html-change",t=>{this.editorHTML=t}),window.$events.listen("editor-markdown-change",t=>{this.editorMarkdown=t}),this.changelogInput.addEventListener("change",this.updateChangelogDisplay.bind(this)),Rt(this.saveDraftButton,this.saveDraft.bind(this)),Rt(this.discardDraftButton,this.discardDraft.bind(this))}setInitialFocus(){if(this.hasDefaultTitle)return this.titleElem.select();window.setTimeout(()=>{window.$events.emit("editor::focus","")},500)}startAutoSave(){let t=this.titleElem.value.trim()+"::"+this.editorHTML;this.autoSaveInterval=window.setInterval(()=>{if(Date.now()-this.autoSave.last{this.draftDisplayIcon.classList.remove("visible")},2e3)}async discardDraft(){let t;try{t=await window.$http.get(`/ajax/page/${this.pageId}`)}catch(n){return console.error(n)}this.autoSave.interval&&window.clearInterval(this.autoSave.interval),this.draftDisplay.innerText=this.editingPageText,this.toggleDiscardDraftVisibility(!1),window.$events.emit("editor-html-update",t.data.html||""),window.$events.emit("editor-markdown-update",t.data.markdown||t.data.html),this.titleElem.value=t.data.name,window.setTimeout(()=>{this.startAutoSave()},1e3),window.$events.emit("success",this.draftDiscardedText)}updateChangelogDisplay(){let t=this.changelogInput.value.trim();t.length===0?t=this.setChangelogText:t.length>16&&(t=t.slice(0,16)+"..."),this.changelogDisplay.innerText=t}toggleDiscardDraftVisibility(t){this.discardDraftWrap.classList.toggle("hidden",!t)}},Mv=Fv;var Ov=class{constructor(t){this.elem=t,this.input=t.querySelector("input"),this.resetButton=t.querySelector("[page-picker-reset]"),this.selectButton=t.querySelector("[page-picker-select]"),this.display=t.querySelector("[page-picker-display]"),this.defaultDisplay=t.querySelector("[page-picker-default]"),this.buttonSep=t.querySelector("span.sep"),this.value=this.input.value,this.setupListeners()}setupListeners(){this.selectButton.addEventListener("click",this.showPopup.bind(this)),this.display.parentElement.addEventListener("click",this.showPopup.bind(this)),this.resetButton.addEventListener("click",t=>{this.setValue("","")})}showPopup(){window.EntitySelectorPopup.show(t=>{this.setValue(t.id,t.name)})}setValue(t,n){this.value=t,this.input.value=t,this.controlView(n)}controlView(t){let n=this.value&&this.value!==0;if(za(this.resetButton,n),za(this.buttonSep,n),za(this.defaultDisplay,!n),za(this.display,n),n){let l=this.getAssetIdFromVal();this.display.textContent=`#${l}, ${t}`,this.display.href=window.baseUrl(`/link/${l}`)}}getAssetIdFromVal(){return Number(this.value)}};function za(i,t){let n=i.tagName==="BUTTON"||i.tagName==="SPAN"?"inline-block":"block";i.style.display=t?n:"none"}var Pv=Ov;var Rv=class{constructor(t){this.container=t,t.querySelector("[permissions-table-toggle-all]").addEventListener("click",this.toggleAllClick.bind(this));let l=t.querySelectorAll("[permissions-table-toggle-all-in-row]");for(let d of l)d.addEventListener("click",this.toggleRowClick.bind(this));let c=t.querySelectorAll("[permissions-table-toggle-all-in-column]");for(let d of c)d.addEventListener("click",this.toggleColumnClick.bind(this))}toggleAllClick(t){t.preventDefault(),this.toggleAllInElement(this.container)}toggleRowClick(t){t.preventDefault(),this.toggleAllInElement(t.target.closest("tr"))}toggleColumnClick(t){t.preventDefault();let n=t.target.closest("th,td"),l=Array.from(n.parentElement.children).indexOf(n),c=n.closest("table").querySelectorAll("tr"),d=[];for(let a of c){let h=a.children[l];h&&d.push(...h.querySelectorAll("input[type=checkbox]"))}this.toggleAllInputs(d)}toggleAllInElement(t){let n=t.querySelectorAll("input[type=checkbox]");this.toggleAllInputs(n)}toggleAllInputs(t){let n=t.length>0?t[0].checked:!1;for(let l of t)l.checked=!n,l.dispatchEvent(new Event("change"))}},zv=Rv;var Nv=class{setup(){this.container=this.$el,this.hideButtons=this.$manyRefs.hide||[],this.onkeyup=null,this.onHide=null,this.setupListeners()}setupListeners(){let t=null;this.container.addEventListener("mousedown",n=>{t=n.target}),this.container.addEventListener("click",n=>{if(n.target===this.container&&t===this.container)return this.hide()}),Rt(this.hideButtons,n=>this.hide())}hide(t=null){ga(this.container,240,t),this.onkeyup&&(window.removeEventListener("keyup",this.onkeyup),this.onkeyup=null),this.onHide&&this.onHide()}show(t=null,n=null){Df(this.container,240,t),this.onkeyup=l=>{l.key==="Escape"&&this.hide()},window.addEventListener("keyup",this.onkeyup),this.onHide=n}},Bv=Nv;var qv=class{constructor(t){this.elem=t,this.colorInput=t.querySelector("input[type=color]"),this.lightColorInput=t.querySelector('input[name="setting-app-color-light"]'),this.resetButton=t.querySelector("[setting-app-color-picker-reset]"),this.defaultButton=t.querySelector("[setting-app-color-picker-default]"),this.colorInput.addEventListener("change",this.updateColor.bind(this)),this.colorInput.addEventListener("input",this.updateColor.bind(this)),this.resetButton.addEventListener("click",n=>{this.colorInput.value=this.colorInput.dataset.current,this.updateColor()}),this.defaultButton.addEventListener("click",n=>{this.colorInput.value=this.colorInput.dataset.default,this.updateColor()})}updateColor(){let t=this.colorInput.value,n=this.hexToRgb(t),l="rgba("+[n.r,n.g,n.b,"0.15"].join(",")+")";this.lightColorInput.value=l;let c=document.getElementById("custom-styles"),d=c.getAttribute("data-color"),a=c.getAttribute("data-color-light");c.innerHTML=c.innerHTML.split(d).join(t),c.innerHTML=c.innerHTML.split(a).join(l),c.setAttribute("data-color",t),c.setAttribute("data-color-light",l)}hexToRgb(t){let n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return{r:n?parseInt(n[1],16):0,g:n?parseInt(n[2],16):0,b:n?parseInt(n[3],16):0}}},jv=qv;var $v=class{constructor(t){this.elem=t,this.colorInput=t.querySelector("input[type=color]"),this.resetButton=t.querySelector("[setting-color-picker-reset]"),this.defaultButton=t.querySelector("[setting-color-picker-default]"),this.resetButton.addEventListener("click",n=>{this.colorInput.value=this.colorInput.dataset.current}),this.defaultButton.addEventListener("click",n=>{this.colorInput.value=this.colorInput.dataset.default})}},Uv=$v;var Hv=class{constructor(t){this.elem=t,this.input=document.getElementById("books-input"),this.shelfBooksList=t.querySelector("[shelf-sort-assigned-books]"),this.initSortable(),this.setupListeners()}initSortable(){let t=this.elem.querySelectorAll(".scroll-box");for(let n of t)new gi(n,{group:"shelf-books",ghostClass:"primary-background-light",animation:150,onSort:this.onChange.bind(this)})}setupListeners(){this.elem.addEventListener("click",t=>{let n=t.target.closest(".scroll-box-item:not(.instruction)");n&&(t.preventDefault(),this.sortItemClick(n))})}sortItemClick(t){let n=this.elem.querySelectorAll(".scroll-box"),l=Array.from(n).filter(c=>t.parentElement!==c);l.length>0&&l[0].appendChild(t),this.onChange()}onChange(){let t=Array.from(this.shelfBooksList.querySelectorAll("[data-id]"));this.input.value=t.map(n=>n.getAttribute("data-id")).join(",")}},Wv=Hv;var Gv=class{constructor(t){this.elem=t,this.toggleElem=t.querySelector(".sidebar-toggle"),this.toggleElem.addEventListener("click",this.toggle.bind(this))}toggle(t=!0){this.elem.classList.toggle("open")}},Kv=Gv;var Vv=class{setup(){this.container=this.$el,this.handleSelector=this.$opts.handleSelector;let t=new gi(this.container,{handle:this.handleSelector,animation:150,onSort:()=>{this.$emit("sort",{ids:t.toArray()})},setData(n,l){let c=l.getAttribute("data-drag-content");if(c){let d=JSON.parse(c);for(let[a,h]of Object.entries(d))n.setData(a,h)}},revertOnSpill:!0,dropBubble:!0,dragoverBubble:!1})}},Yv=Vv;var Xv=class{setup(){this.$el.addEventListener("change",()=>{let t=this.$el.closest("form");t&&t.submit()})}},Zv=Xv;var Qv=class{setup(){this.tabContentsByName={},this.tabButtonsByName={},this.allContents=[],this.allButtons=[];for(let[t,n]of Object.entries(this.$manyRefs||{})){if(t.startsWith("toggle")){let l=t.replace("toggle","").toLowerCase();Rt(n,c=>this.show(l)),this.allButtons.push(...n),this.tabButtonsByName[l]=n}if(t.startsWith("content")){let l=t.replace("content","").toLowerCase();this.tabContentsByName[l]=n,this.allContents.push(...n)}}}show(t){this.allContents.forEach(c=>{c.classList.add("hidden"),c.classList.remove("selected")}),this.allButtons.forEach(c=>c.classList.remove("selected"));let n=this.tabContentsByName[t]||[],l=this.tabButtonsByName[t]||[];n.length>0&&(n.forEach(c=>{c.classList.remove("hidden"),c.classList.add("selected")}),l.forEach(c=>c.classList.add("selected")))}},Jv=Qv;var ey=class{setup(){this.addRemoveComponentEl=this.$refs.addRemove,this.container=this.$el,this.rowSelector=this.$opts.rowSelector,this.setupListeners()}setupListeners(){this.container.addEventListener("change",t=>{let n=this.addRemoveComponentEl.components["add-remove-rows"];this.hasEmptyRows()||n.add()})}hasEmptyRows(){return[...this.container.querySelectorAll(this.rowSelector)].find(l=>[...l.querySelectorAll("input")].filter(c=>c.value).length===0)!==void 0}},ty=ey;var ry=class{constructor(t){this.elem=t,this.list=t.querySelector("[template-manager-list]"),this.searching=!1,$t(this.elem,"[template-action]","click",this.handleTemplateActionClick.bind(this)),$t(this.elem,".pagination a","click",this.handlePaginationClick.bind(this)),$t(this.elem,".template-item-content","click",this.handleTemplateItemClick.bind(this)),$t(this.elem,".template-item","dragstart",this.handleTemplateItemDragStart.bind(this)),this.setupSearchBox()}handleTemplateItemClick(t,n){let l=n.closest("[template-id]").getAttribute("template-id");this.insertTemplate(l,"replace")}handleTemplateItemDragStart(t,n){let l=n.closest("[template-id]").getAttribute("template-id");t.dataTransfer.setData("bookstack/template",l),t.dataTransfer.setData("text/plain",l)}handleTemplateActionClick(t,n){t.stopPropagation();let l=n.getAttribute("template-action"),c=n.closest("[template-id]").getAttribute("template-id");this.insertTemplate(c,l)}async insertTemplate(t,n="replace"){let l=await window.$http.get(`/templates/${t}`),c="editor::"+n;window.$events.emit(c,l.data)}async handlePaginationClick(t,n){t.preventDefault();let l=n.getAttribute("href"),c=await window.$http.get(l);this.list.innerHTML=c.data}setupSearchBox(){let t=this.elem.querySelector(".search-box");if(!t)return;let n=t.querySelector("input"),l=t.querySelector("button"),c=t.querySelector("button.search-box-cancel");async function d(){let a=n.value,h=await window.$http.get("/templates",{search:a});c.style.display=a?"block":"none",this.list.innerHTML=h.data}d=d.bind(this),t.addEventListener("keypress",a=>{a.key==="Enter"&&(a.preventDefault(),d())}),l.addEventListener("click",a=>{d()}),c.addEventListener("click",a=>{n.value="",d()})}},ny=ry;var iy=class{constructor(t){this.elem=t,this.input=t.querySelector("input[type=hidden]"),this.checkbox=t.querySelector("input[type=checkbox]"),this.checkbox.addEventListener("change",this.stateChange.bind(this))}stateChange(){this.input.value=this.checkbox.checked?"true":"false";let t=new Event("change");this.input.dispatchEvent(t)}},oy=iy;var ay=class{setup(){this.container=this.$refs.container,this.tabs=this.$manyRefs.tab,this.lastLayoutType="none",this.onDestroy=null,this.scrollCache={content:0,info:0},this.lastTabShown="content",this.mobileTabClick=this.mobileTabClick.bind(this),this.updateLayout(),window.addEventListener("resize",t=>{this.updateLayout()},{passive:!0})}updateLayout(){let t="tablet";window.innerWidth<=1e3&&(t="mobile"),window.innerWidth>=1400&&(t="desktop"),t!==this.lastLayoutType&&(this.onDestroy&&(this.onDestroy(),this.onDestroy=null),t==="desktop"?this.setupDesktop():t==="mobile"&&this.setupMobile(),this.lastLayoutType=t)}setupMobile(){for(let t of this.tabs)t.addEventListener("click",this.mobileTabClick);this.onDestroy=()=>{for(let t of this.tabs)t.removeEventListener("click",this.mobileTabClick)}}setupDesktop(){}mobileTabClick(t){let n=t.target.dataset.tab;this.showTab(n)}showContent(){this.showTab("content",!1)}showTab(t,n=!0){this.scrollCache[this.lastTabShown]=document.documentElement.scrollTop;for(let c of this.tabs){let d=c.dataset.tab===t;c.setAttribute("aria-selected",d?"true":"false")}let l=t==="info";if(this.container.classList.toggle("show-info",l),n){let d=document.querySelector("header").getBoundingClientRect().bottom;document.documentElement.scrollTop=this.scrollCache[t]||d,setTimeout(()=>{document.documentElement.scrollTop=this.scrollCache[t]||d},50)}this.lastTabShown=t}},sy=ay;var ly=class{setup(){this.input=this.$refs.input,this.userInfoContainer=this.$refs.userInfo,this.hide=this.$el.components.dropdown.hide,$t(this.$el,"a.dropdown-search-item","click",this.selectUser.bind(this))}selectUser(t,n){t.preventDefault();let l=n.getAttribute("data-id");this.input.value=l,this.userInfoContainer.innerHTML=n.innerHTML,this.input.dispatchEvent(new Event("change",{bubbles:!0})),this.hide()}},uy=ly;function cy(i,t,n){let l=new yo(i.clipboardData||i.dataTransfer);if(!l.hasItems()||l.containsTabularData())return;let c=l.getImages();for(let d of c){let a="image-"+Math.random().toString(16).slice(2),h=window.baseUrl("/loading.gif");i.preventDefault(),setTimeout(()=>{t.insertContent(`

    `),jk(d,n).then(f=>{let p=f.name.replace(/"/g,""),y=`${p}`,g=t.dom.create("a",{target:"_blank",href:f.url},y);t.dom.replace(g,a)}).catch(f=>{t.dom.remove(a),window.$events.emit("error",n.imageUploadErrorText),console.log(f)})},10)}}async function jk(i,t){if(i===null||i.type.indexOf("image")!==0)throw new Error("Not an image file");let n="png";if(i.name){let a=i.name.match(/\.(.+)$/);a.length>1&&(n=a[1])}let l="image-"+Date.now()+"."+n,c=new FormData;return c.append("file",i,l),c.append("uploaded_to",t.pageId),(await window.$http.post(window.baseUrl("/images/gallery"),c)).data}function $k(i){for(let t=1;t<5;t++)i.shortcuts.add("meta+"+t,"",["FormatBlock",!1,"h"+(t+1)]);i.shortcuts.add("meta+5","",["FormatBlock",!1,"p"]),i.shortcuts.add("meta+d","",["FormatBlock",!1,"p"]),i.shortcuts.add("meta+6","",["FormatBlock",!1,"blockquote"]),i.shortcuts.add("meta+q","",["FormatBlock",!1,"blockquote"]),i.shortcuts.add("meta+7","",["codeeditor",!1,"pre"]),i.shortcuts.add("meta+e","",["codeeditor",!1,"pre"]),i.shortcuts.add("meta+8","",["FormatBlock",!1,"code"]),i.shortcuts.add("meta+shift+E","",["FormatBlock",!1,"code"]),i.shortcuts.add("meta+S","",()=>{window.$events.emit("editor-save-draft")}),i.shortcuts.add("meta+13","",()=>{window.$events.emit("editor-save-page")}),i.shortcuts.add("meta+9","",function(){let t=i.selection.getNode(),n=t?t.closest(".callout"):null,l=["info","success","warning","danger"],d=(l.findIndex(h=>n&&n.classList.contains(h))+1)%l.length,a=l[d];i.formatter.apply("callout"+a)})}function Uk(i){window.$http.get(window.baseUrl("/custom-head-content")).then(t=>{if(!t.data)return;let n=i.getDoc().querySelector("head");n.innerHTML+=t.data})}function Hk(){function i(l){return l.className==="CodeMirrorContainer"}function t(l){let c=l.selection.getNode();if(!i(c)){let h=l.selection.getNode().textContent;window.components.first("code-editor").open(h,"",(f,p)=>{let y=document.createElement("div");y.innerHTML=`
    `,y.querySelector("code").innerText=f,l.formatter.toggle("pre");let g=l.selection.getNode();l.dom.setHTML(g,y.querySelector("pre").innerHTML),l.fire("SetContent"),l.focus()});return}let d=c.hasAttribute("data-lang")?c.getAttribute("data-lang"):"",a=c.querySelector("textarea").textContent;window.components.first("code-editor").open(a,d,(h,f)=>{let y=c.querySelector(".CodeMirror").CodeMirror;y&&(ur.setContent(y,h),ur.setMode(y,f,h));let g=c.querySelector("textarea");g&&(g.textContent=h),c.setAttribute("data-lang",f),l.focus()})}function n(l){let d=l.querySelector("textarea").textContent,a=l.getAttribute("data-lang");l.removeAttribute("contentEditable");let h=document.createElement("pre"),f=document.createElement("code");f.classList.add(`language-${a}`),f.textContent=d,h.appendChild(f),l.parentElement.replaceChild(h,l)}window.tinymce.PluginManager.add("codeeditor",function(l,c){let d=l.$;l.addButton("codeeditor",{text:"Code block",icon:!1,cmd:"codeeditor"}),l.addCommand("codeeditor",()=>{t(l)}),l.on("PreProcess",function(h){d("div.CodeMirrorContainer",h.node).each((f,p)=>{n(p)})}),l.on("dblclick",h=>{let f=l.selection.getNode();!i(f)||t(l)});function a(){d(".CodeMirrorContainer").filter((f,p)=>typeof p.querySelector(".CodeMirror").CodeMirror=="undefined").each((f,p)=>{n(p)}),d("body > pre").filter((f,p)=>p.contentEditable!=="false").each((f,p)=>{ur.wysiwygView(p)})}l.on("init",function(){l.undoManager.transact(function(){a()}),setTimeout(()=>{l.on("SetContent",()=>{setTimeout(a,100)})},200)})})}function Wk(i,t,n,l){let c=null,d=null;function a(g){return g.hasAttribute("drawio-diagram")}function h(g,v=null){c=g,d=v,window.ImageManager.show(function(b){if(v){let k=v.querySelector("img");c.dom.setAttrib(k,"src",b.url),c.dom.setAttrib(v,"drawio-diagram",b.id)}else{let k=`
    `;c.insertContent(k)}},"drawio")}function f(g,v=null){c=g,d=v,Nr.show(i,y,p)}async function p(g){let v="image-"+Math.random().toString(16).slice(2),b=window.baseUrl("/loading.gif"),k=_=>{_.status===413?window.$events.emit("error",l.serverUploadLimitText):window.$events.emit("error",l.imageUploadErrorText),console.log(_)};if(d){Nr.close();let _=d.querySelector("img");try{let w=await Nr.upload(g,n);c.dom.setAttrib(_,"src",w.url),c.dom.setAttrib(d,"drawio-diagram",w.id)}catch(w){k(w)}return}setTimeout(async()=>{c.insertContent(`
    `),Nr.close();try{let _=await Nr.upload(g,n);c.dom.setAttrib(v,"src",_.url),c.dom.get(v).parentNode.setAttribute("drawio-diagram",_.id)}catch(_){c.dom.remove(v),k(_)}},5)}function y(){if(!d)return Promise.resolve("");let g=d.getAttribute("drawio-diagram");return Nr.load(g)}window.tinymce.PluginManager.add("drawio",function(g,v){g.addCommand("drawio",()=>{let b=g.selection.getNode();f(g,a(b)?b:null)}),g.addButton("drawio",{type:"splitbutton",tooltip:"Drawing",image:`data:image/svg+xml;base64,${btoa(` `)}`,cmd:"drawio",menu:[{text:"Drawing Manager",onclick(){let b=g.selection.getNode();h(g,a(b)?b:null)}}]}),g.on("dblclick",b=>{let k=g.selection.getNode();!a(k)||f(g,k)}),g.on("SetContent",function(){let b=g.$("body > div[drawio-diagram]");!b.length||g.undoManager.transact(function(){b.each((k,_)=>{_.setAttribute("contenteditable","false")})})})})}function Gk(){window.tinymce.PluginManager.add("customhr",function(i){i.addCommand("InsertHorizontalRule",function(){let t=document.createElement("hr"),n=i.selection.getNode();n.parentNode.insertBefore(t,n)}),i.addButton("hr",{icon:"hr",tooltip:"Horizontal line",cmd:"InsertHorizontalRule"}),i.addMenuItem("hr",{icon:"hr",text:"Horizontal line",cmd:"InsertHorizontalRule",context:"insert"})})}function Kk(i){window.$events.listen("editor::replace",({html:t})=>{i.setContent(t)}),window.$events.listen("editor::append",({html:t})=>{let n=i.getContent()+t;i.setContent(n)}),window.$events.listen("editor::prepend",({html:t})=>{let n=t+i.getContent();i.setContent(n)}),window.$events.listen("editor::insert",({html:t})=>{i.insertContent(t)}),window.$events.listen("editor::focus",()=>{i.focus()})}var fy=class{setup(){this.elem=this.$el,this.pageId=this.$opts.pageId,this.textDirection=this.$opts.textDirection,this.imageUploadErrorText=this.$opts.imageUploadErrorText,this.serverUploadLimitText=this.$opts.serverUploadLimitText,this.isDarkMode=document.documentElement.classList.contains("dark-mode"),this.plugins="image imagetools table textcolor paste link autolink fullscreen code customhr autosave lists codeeditor media",this.loadPlugins(),this.tinyMceConfig=this.getTinyMceConfig(),window.$events.emitPublic(this.elem,"editor-tinymce::pre-init",{config:this.tinyMceConfig}),window.tinymce.init(this.tinyMceConfig)}loadPlugins(){Hk(),Gk();let t=document.querySelector("[drawio-url]");if(t){let n=t.getAttribute("drawio-url");Wk(n,this.isDarkMode,this.pageId,this),this.plugins+=" drawio"}this.textDirection==="rtl"&&(this.plugins+=" directionality")}getToolBar(){return`undo redo | styleselect | bold italic underline strikethrough superscript subscript | forecolor backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | table image-insert link hr drawio media | removeformat code ${this.textDirection==="rtl"?"ltr rtl":""} fullscreen`}getTinyMceConfig(){let t=this;return{selector:"#html-editor",content_css:[window.baseUrl("/dist/styles.css")],branding:!1,skin:this.isDarkMode?"dark":"lightgray",body_class:"page-content",browser_spellcheck:!0,relative_urls:!1,directionality:this.textDirection,remove_script_host:!1,document_base_url:window.baseUrl("/"),end_container_on_empty_block:!0,statusbar:!1,menubar:!1,paste_data_images:!1,extended_valid_elements:"pre[*],svg[*],div[drawio-diagram]",automatic_uploads:!1,valid_children:"-div[p|h1|h2|h3|h4|h5|h6|blockquote],+div[pre],+div[img]",plugins:this.plugins,imagetools_toolbar:"imageoptions",toolbar:this.getToolBar(),content_style:`html, body, html.dark-mode {background: ${this.isDarkMode?"#222":"#fff"};} body {padding-left: 15px !important; padding-right: 15px !important; margin:0!important; margin-left:auto!important;margin-right:auto!important;}`,style_formats:[{title:"Header Large",format:"h2"},{title:"Header Medium",format:"h3"},{title:"Header Small",format:"h4"},{title:"Header Tiny",format:"h5"},{title:"Paragraph",format:"p",exact:!0,classes:""},{title:"Blockquote",format:"blockquote"},{title:"Code Block",icon:"code",cmd:"codeeditor",format:"codeeditor"},{title:"Inline Code",icon:"code",inline:"code"},{title:"Callouts",items:[{title:"Info",format:"calloutinfo"},{title:"Success",format:"calloutsuccess"},{title:"Warning",format:"calloutwarning"},{title:"Danger",format:"calloutdanger"}]}],style_formats_merge:!1,media_alt_source:!1,media_poster:!1,formats:{codeeditor:{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div"},alignleft:{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img",classes:"align-left"},aligncenter:{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img",classes:"align-center"},alignright:{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img",classes:"align-right"},calloutsuccess:{block:"p",exact:!0,attributes:{class:"callout success"}},calloutinfo:{block:"p",exact:!0,attributes:{class:"callout info"}},calloutwarning:{block:"p",exact:!0,attributes:{class:"callout warning"}},calloutdanger:{block:"p",exact:!0,attributes:{class:"callout danger"}}},file_browser_callback:function(n,l,c,d){c==="file"&&window.EntitySelectorPopup.show(function(a){let h=d.document.getElementById(n);h.value=a.link;let p=h.closest(".mce-form").querySelectorAll("input");p[1].value||(p[1].value=a.name),p[2].value=a.name}),c==="image"&&window.ImageManager.show(function(a){if(d.document.getElementById(n).value=a.url,"createEvent"in document){let f=document.createEvent("HTMLEvents");f.initEvent("change",!1,!0),d.document.getElementById(n).dispatchEvent(f)}else d.document.getElementById(n).fireEvent("onchange");let h=``;h+=`${a.name}`,h+="",d.tinyMCE.activeEditor.execCommand("mceInsertContent",!1,h)},"gallery")},paste_preprocess:function(n,l){l.content.indexOf('{l();let p=new URL(window.location).searchParams.get("content-id");p&&c(p);let g=n.getContainer().querySelectorAll(".mce-btn");for(let v of g)v.addEventListener("touchstart",b=>{b.stopPropagation()});window.editor=n});function l(){let f=n.getContent();t.isDarkMode&&n.contentDocument.documentElement.classList.add("dark-mode"),window.$events.emit("editor-html-change",f)}function c(f){let p=n.dom.get(encodeURIComponent(f).replace(/!/g,"%21"));!p||(p.scrollIntoView(),n.selection.select(p,!0),n.selection.collapse(!1),n.focus())}Kk(n),window.$events.listen("editor-html-update",f=>{n.setContent(f),n.selection.select(n.getBody(),!0),n.selection.collapse(!1),l(f)}),$k(n);let d,a;function h(f){return f&&!!(f.textContent||f.innerText)}n.on("dragstart",function(){let f=n.selection.getNode();f.nodeName==="IMG"&&(d=n.dom.getParent(f,".mceTemp"),!d&&f.parentNode.nodeName==="A"&&!h(f.parentNode)&&(d=f.parentNode)),f.hasAttribute("contenteditable")&&f.getAttribute("contenteditable")==="false"&&(a=f)}),n.on("drop",function(f){let p=n.dom,y=tinymce.dom.RangeUtils.getCaretRangeFromPoint(f.clientX,f.clientY,n.getDoc()),g=f.dataTransfer&&f.dataTransfer.getData("bookstack/template");g&&(f.preventDefault(),window.$http.get(`/templates/${g}`).then(v=>{n.selection.setRng(y),n.undoManager.transact(function(){n.execCommand("mceInsertContent",!1,v.data.html)})})),p.getParent(y.startContainer,".mceTemp")?f.preventDefault():d&&(f.preventDefault(),n.undoManager.transact(function(){n.selection.setRng(y),n.selection.setNode(d),p.remove(d)})),!f.isDefaultPrevented()&&a&&(f.preventDefault(),n.undoManager.transact(function(){let v=n.selection.getNode(),b=n.selection.getRng(),k=v.closest("body > *");b.startOffset>b.startContainer.length/2?n.$(k).after(a):n.$(k).before(a)})),f.isDefaultPrevented()||cy(f,n,t),d=null}),n.addButton("image-insert",{title:"My title",icon:"image",tooltip:"Insert an image",onclick:function(){window.ImageManager.show(function(f){let p=``;p+=`${f.name}`,p+="",n.execCommand("mceInsertContent",!1,p)},"gallery")}}),n.on("paste",f=>cy(f,n,t)),window.$events.emitPublic(t.elem,"editor-tinymce::setup",{editor:n})}}}},dy=fy;var hy={"add-remove-rows":Kc,"ajax-delete-row":Yc,"ajax-form":Zc,attachments:Jc,"attachments-list":tf,"auto-suggest":nf,"back-to-top":af,"book-sort":Lf,"chapter-toggle":Ff,"code-editor":ph,"code-highlighter":gh,collapsible:yh,"custom-checkbox":xh,"details-highlighter":kh,dropdown:Sh,"dropdown-search":Ch,dropzone:Dh,"editor-toolbox":Fh,"entity-permissions-editor":Oh,"entity-search":Rh,"entity-selector":Nh,"entity-selector-popup":qh,"event-emit-select":$h,"expand-toggle":Hh,"header-mobile-toggle":Gh,"homepage-control":Vh,"image-manager":Xh,"image-picker":Qh,index:Na,"list-sort-control":ep,"markdown-editor":bv,"new-user-password":wv,notification:_v,"optional-input":Ev,"page-comments":Tv,"page-display":Dv,"page-editor":Mv,"page-picker":Pv,"permissions-table":zv,popup:Bv,"setting-app-color-picker":jv,"setting-color-picker":Uv,"shelf-sort":Wv,sidebar:Kv,"sortable-list":Yv,"submit-on-change":Zv,tabs:Jv,"tag-manager":ty,"template-manager":ny,"toggle-switch":oy,"tri-layout":sy,"user-select":uy,"wysiwyg-editor":dy};window.components={};function Vk(i,t){let n=t.querySelectorAll(`[${i}]`);for(let l=0,c=n.length;l{a.from=l;let h=new CustomEvent(`${i}-${d}`,{bubbles:!0,detail:a});l.$el.dispatchEvent(h)},typeof l.setup=="function"&&l.setup()}catch(c){console.error("Failed to create component",c,i,t)}typeof window.components[i]=="undefined"&&(window.components[i]=[]),window.components[i].push(l),typeof t.components=="undefined"&&(t.components={}),t.components[i]=l}function Yk(i,t){let n={},l={},c=`${i}@`,d=`[refs*="${c}"]`,a=[...t.querySelectorAll(d)];t.matches(d)&&a.push(t);for(let h of a){let f=h.getAttribute("refs").split(" ").filter(p=>p.startsWith(c)).map(p=>p.replace(c,"")).map(my);for(let p of f)n[p]=h,typeof l[p]=="undefined"&&(l[p]=[]),l[p].push(h)}return{refs:n,manyRefs:l}}function Xk(i,t){let n={},l=`option:${i}:`;for(let{name:c,value:d}of t.attributes)if(c.startsWith(l)){let a=c.replace(l,"");n[my(a)]=d||""}return n}function my(i){let t=l=>l.slice(0,1).toUpperCase()+l.slice(1),n=i.split("-");return n[0]+n.slice(1).map(t).join("")}function gy(i){typeof i=="undefined"&&(i=document);for(let n of Object.keys(hy))Vk(n,i);let t=i.querySelectorAll("[component],[components]");for(let n of t){let l=`${n.getAttribute("component")||""} ${n.getAttribute("components")}`.toLowerCase().split(" ").filter(Boolean);for(let c of l)py(c,n)}}window.components.init=gy;window.components.first=i=>(window.components[i]||[null])[0];var Na=gy;window.baseUrl=function(i){let t=document.querySelector('meta[name="base-url"]').getAttribute("content");return t[t.length-1]==="/"&&(t=t.slice(0,t.length-1)),i[0]==="/"&&(i=i.slice(1)),t+"/"+i};window.$http=Bc;window.$events=zc;var Si=new jc;window.trans=Si.get.bind(Si);window.trans_choice=Si.getPlural.bind(Si);window.trans_plural=Si.parsePlural.bind(Si);Na();})(); /*! * clipboard.js v2.0.8 * https://clipboardjs.com/ * * Licensed MIT © Zeno Rocha */ /**! * Sortable 1.13.0 * @author RubaXa * @author owenm * @license MIT */ //# sourceMappingURL=app.js.map