BookStack/public/dist/app.js

72 lines
769 KiB
JavaScript
Raw Normal View History

(()=>{var dx=Object.create;var Ko=Object.defineProperty;var hx=Object.getOwnPropertyDescriptor;var px=Object.getOwnPropertyNames;var mx=Object.getPrototypeOf,gx=Object.prototype.hasOwnProperty;var vx=i=>Ko(i,"__esModule",{value:!0});var yx=(i,t)=>()=>(i&&(t=i(i=0)),t),Fe=(i,t)=>()=>(t||i((t={exports:{}}).exports,t),t.exports),bx=(i,t)=>{for(var n in t)Ko(i,n,{get:t[n],enumerable:!0})},xx=(i,t,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of px(t))!gx.call(i,l)&&l!=="default"&&Ko(i,l,{get:()=>t[l],enumerable:!(n=hx(t,l))||n.enumerable});return i},St=i=>xx(vx(Ko(i!=null?dx(mx(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.length;++m)u.appendChild(r[m]);return u}function A(e,r,s,o){var u=T(e,r,s,o);return u.setAttribute("role","presentation"),u}var j;document.createRange?j=function(e,r,s,o){var u=document.createRange();return u.setEnd(o||e,s),u.setStart(e,r),u}:j=function(e,r,s){var o=document.body.createTextRange();try{o.moveToElementText(e.parentNode)}catch(u){return o}return o.collapse(!0),o.moveEnd("character",s),o.moveStart("character",r),o};function te(e,r){if(r.nodeType==3&&(r=r.parentNode),e.contains)return e.contains(r);do if(r.nodeType==11&&(r=r.host),r==e)return!0;while(r=r.parentNode)}function F(){var e;try{e=document.activeElement}catch(r){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function z(e,r){var s=e.className;K(r).test(s)||(e.className+=(s?" ":"")+r)}function se(e,r){for(var s=e.split(" "),o=0;o<s.length;o++)s[o]&&!K(s[o]).test(r)&&(r+=" "+s[o]);return r}var be=function(e){e.select()};_?be=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(be=function(e){try{e.select()}catch(r){}});function W(e){var r=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,r)}}function M(e,r,s){r||(r={});for(var o in e)e.hasOwnProperty(o)&&(s!==!1||!r.hasOwnProperty(o))&&(r[o]=e[o]);return r}function we(e,r,s,o,u){r==null&&(r=e.search(/[^\s\u00a0]/),r==-1&&(r=e.length));for(var m=o||0,x=u||0;;){var E=e.indexOf(" ",m);if(E<0||E>=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<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=s)};function ve(e,r){for(var s=0;s<e.length;++s)if(e[s]==r)return s;return-1}var Ee=50,ze={to
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.pos<this.string.length)return this.string.charAt(this.pos++)},H.prototype.eat=function(e){var r=this.string.charAt(this.pos),s;if(typeof e=="string"?s=r==e:s=r&&(e.test?e.test(r):e(r)),s)return++this.pos,r},H.prototype.eatWhile=function(e){for(var r=this.pos;this.eat(e););return this.pos>r},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.lastColumnPos<this.start&&(this.lastColumnValue=we(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?we(this.string,this.lineStart,this.tabSize):0)},H.prototype.indentation=function(){return we(this.string,null,this.tabSize)-(this.lineStart?we(this.string,this.lineStart,this.tabSize):0)},H.prototype.match=function(e,r,s){if(typeof e=="string"){var o=function(x){return s?x.toLowerCase():x},u=this.string.substr(this.pos,e.length);if(o(u)==o(e))return r!==!1&&(this.pos+=e.length),!0}else{var m=this.string.slice(this.pos).match(e);return m&&m.index>0?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.baseToke
`?(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 Fy(e,r){if(e.length>1&&!/ /.test(e))return e;for(var s=r,o="",u=0;u<e.length;u++){var m=e.charAt(u);m==" "&&s&&(u==e.length-1||e.charCodeAt(u+1)==32)&&(m="\xA0"),o+=m,s=m==" "}return o}function My(e,r){return function(s,o,u,m,x,E,C){u=u?u+" cm-force-border":"cm-force-border";for(var L=s.pos,V=L+o.length;;){for(var Q=void 0,ce=0;ce<r.length&&(Q=r[ce],!(Q.to>L&&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 Oy(e,r,s){var o=e.markedSpans,u=e.text,m=0;if(!o){for(var x=1;x<s.length;x+=2)r.addToken(r,u.slice(m,m=s[x]),Ql(s[x+1],r.cm.options));return}for(var E=u.length,C=0,L=1,V="",Q,ce,ae=0,ye,Te,Oe,je,tt;;){if(ae==C){ye=Te=Oe=ce="",tt=null,je=null,ae=Infinity;for(var $e=[],nt=void 0,ct=0;ct<o.length;++ct){var ut=o[ct],vt=ut.marker;if(vt.type=="bookmark"&&ut.from==C&&vt.widgetNode)$e.push(vt);else if(ut.from<=C&&(ut.to==null||ut.to>C||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<nt.length;ir+=2)nt[ir+1]==ae&&(Te+=" "+nt[ir]);if(!je||je.from==C)for(var Bt=0;Bt<$e.length;++Bt)eu(r,0,$e[Bt]);if(je&&(je.from||0)==C){if(eu(r,(je.to==null?E+1:je.to)-C,je.marker,je.from==null),je.to==null)return;je.to==C&&(je=!1)}}if(C>=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=Ey(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;m<s;m=u){var x=new tu(e.doc,oe(e.doc,m),m);u=m+x.size,o.push(x)}return o}var Kn=null;function Py(e){Kn?Kn.ops.push(e):e.ownsGroup=Kn={ops:[e],delayedCallbacks:[]}}function Ry(e){var r=e.delayedCallbacks,s=0;do{for(;s<r.length;s++)r[s].call(null);for(var o=0;o<e.ops.length;o++){var u=e.ops[o];if(u.cursorActivityHandlers)for(;u.cursorActivityCalled<u.cursorActivityHandlers.length;)u.cursorActivityHandlers[u.cursorActivityCalled++].call(null,u.cm)}}while(s<r.length)}function zy(e,r){var s=e.ownsGroup;if(!!s)try{Ry(s)}finally{Kn=null,r(s)}}var Ti=null;function tr(e,r){var s=Mt(e,r);if(!!s.length){var o=Array.prototype.slice.call(arguments,2),u;Kn?u=Kn.delayedCallbacks:Ti?u=Ti:(u=Ti=[],setTimeout(Ny,0));for(var m=function(E){u.push(function(){return s[E].apply(null,o)})},x=0;x<s.length;++x)m(x)}}function Ny(){var e=Ti;Ti=null;for(var r=0;r<e.length;++r)e[r]()}function ru(e,r,s,o){for(var u=0;u<r.changes.length;u++){var m=r.changes[u];m=="text"?qy(e,r):m=="gutter"?iu(e,r,s,o):m=="class"?Ga(e,r):m=="widget"&&jy(e,r,o)}r.changes=null}function Ai(e){return e.node==e.text&&(e.node
top: `+nt+"px; width: "+(ct==null?C-$e:ct)+`px;
height: `+(ut-nt)+"px"))}function Q($e,nt,ct){var ut=oe(u,$e),vt=ut.text.length,Pt,ir;function Bt(Yt,Er){return Za(e,xe($e,Yt),"div",ut,Er)}function Lr(Yt,Er,lr){var Qt=bu(e,ut,null,Yt),Xt=Er=="ltr"==(lr=="after")?"left":"right",jt=lr=="after"?Qt.begin:Qt.end-(/\s/.test(ut.text.charAt(Qt.end-1))?2:1);return Bt(jt,Xt)[Xt]}var Sr=Lt(ut,u.direction);return Ye(Sr,nt||0,ct==null?vt:ct,function(Yt,Er,lr,Qt){var Xt=lr=="ltr",jt=Bt(Yt,Xt?"left":"right"),Cr=Bt(Er-1,Xt?"right":"left"),ui=nt==null&&Yt==0,_n=ct==null&&Er==vt,mr=Qt==0,Qr=!Sr||Qt==Sr.length-1;if(Cr.top-jt.top<=3){var or=(L?ui:_n)&&mr,Ls=(L?_n:ui)&&Qr,cn=or?E:(Xt?jt:Cr).left,Rn=Ls?C:(Xt?Cr:jt).right;V(cn,jt.top,Rn-cn,jt.bottom)}else{var zn,xr,ci,Ds;Xt?(zn=L&&ui&&mr?E:jt.left,xr=L?C:Lr(Yt,lr,"before"),ci=L?E:Lr(Er,lr,"after"),Ds=L&&_n&&Qr?C:Cr.right):(zn=L?Lr(Yt,lr,"before"):E,xr=!L&&ui&&mr?C:jt.right,ci=!L&&_n&&Qr?E:Cr.left,Ds=L?Lr(Er,lr,"after"):C),V(zn,jt.top,xr-zn,jt.bottom),jt.bottom<Cr.top&&V(E,jt.bottom,null,Cr.top),V(ci,Cr.top,Ds-ci,Cr.bottom)}(!Pt||Ao(jt,Pt)<0)&&(Pt=jt),Ao(Cr,Pt)<0&&(Pt=Cr),(!ir||Ao(jt,ir)<0)&&(ir=jt),Ao(Cr,ir)<0&&(ir=Cr)}),{start:Pt,end:ir}}var ce=r.from(),ae=r.to();if(ce.line==ae.line)Q(ce.line,ce.ch,ae.ch);else{var ye=oe(u,ce.line),Te=oe(u,ae.line),Oe=Yr(ye)==Yr(Te),je=Q(ce.line,ce.ch,Oe?ye.text.length+1:null).end,tt=Q(ae.line,Oe?0:null,ae.ch).start;Oe&&(je.top<tt.top-2?(V(je.right,je.top,null,je.bottom),V(E,tt.top,tt.left,tt.bottom)):V(je.right,je.top,tt.left-je.right,je.bottom)),je.bottom<tt.top&&V(E,je.bottom,null,tt.top)}s.appendChild(m)}function is(e){if(!!e.state.focused){var r=e.display;clearInterval(r.blinker);var s=!0;r.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?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<r.view.length;o++){var u=r.view[o],m=e.options.lineWrapping,x=void 0,E=0;if(!u.hidden){if(a&&h<8){var C=u.node.offsetTop+u.node.offsetHeight;x=C-s,s=C}else{var L=u.node.getBoundingClientRect();x=L.bottom-L.top,!m&&u.text.firstChild&&(E=u.text.firstChild.getBoundingClientRect().right-L.left-1)}var V=u.line.height-x;if((V>.005||V<-.005)&&(Ae(u.line,x),Eu(u.line),u.rest))for(var Q=0;Q<u.rest.length;Q++)Eu(u.rest[Q]);if(E>e.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<e.widgets.length;++r){var s=e.widgets[r],o=s.node.parentNode;o&&(s.height=o.offsetHeight)}}function Do(e,r,s){var o=s&&s.top!=null?Math.max(0,s.top):e.scroller.scrollTop;o=Math.floor(o-Eo(e));var u=s&&s.bottom!=null?s.bottom:o+e.wrapper.clientHeight,m=et(r,o),x=et(r,u);if(s&&s.ensure){var E=s.ensure.from.line,C=s.ensure.to.line;E<m?(m=E,x=et(r,sn(oe(r,E))+e.wrapper.clientHeight)):Math.min(C,r.lastLine())>=x&&(m=et(r,sn(oe(r,C))-e.wrapper.clientHeight),x=C)}return{from:m,to:Math.max(x,m+1)}}function eb(e,r){if(!wt(e,"scrollCursorIntoView")){var s=e.display,o=s.sizer.getBoundingClientRect(),u
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 tb(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 rb(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.top<o,L=r.bottom>E-o;if(r.top<u)x.scrollTop=C?0:r.top;else if(r.bottom>u+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.left<ce?x.scrollLeft=Math.max(0,r.left+Q-(ye?0:10)):r.right>ae+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 nb(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.firs
`},setDirection:nr(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(r){return r.order=null}),this.cm&&bb(this.cm))})}),_r.prototype.eachLine=_r.prototype.iter;var uc=0;function Fb(e){var r=this;if(cc(r),!(wt(r,e)||ln(r.display,e))){kt(e),a&&(uc=+new Date);var s=Dn(r,e,!0),o=e.dataTransfer.files;if(!(!s||r.isReadOnly()))if(o&&o.length&&window.FileReader&&window.File)for(var u=o.length,m=Array(u),x=0,E=function(){++x==u&&rr(r,function(){s=Xe(r.doc,s);var ae={from:s,to:s,text:r.doc.splitLines(m.filter(function(ye){return ye!=null}).join(r.doc.lineSeparator())),origin:"paste"};ri(r.doc,ae),Vu(r.doc,yn(Xe(r.doc,s),Xe(r.doc,bn(ae))))})()},C=function(ae,ye){if(r.options.allowDropFileTypes&&ve(r.options.allowDropFileTypes,ae.type)==-1){E();return}var Te=new FileReader;Te.onerror=function(){return E()},Te.onload=function(){var Oe=Te.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Oe)){E();return}m[ye]=Oe,E()},Te.readAsText(ae)},L=0;L<o.length;L++)C(o[L],L);else{if(r.state.draggingText&&r.doc.sel.contains(s)>-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<Q.length;++ce)ni(r.doc,"",Q[ce].anchor,Q[ce].head,"drag");r.replaceSelection(V,"around","paste"),r.display.input.focus()}}catch(ae){}}}}function Mb(e,r){if(a&&(!e.state.draggingText||+new Date-uc<100)){Ir(r);return}if(!(wt(e,r)||ln(e.display,r))&&(r.dataTransfer.setData("Text",e.getSelection()),r.dataTransfer.effectAllowed="copyMove",r.dataTransfer.setDragImage&&!v)){var s=T("img",null,null,"position: fixed; left: 0; top: 0;");s.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",g&&(s.width=s.height=1,e.display.wrapper.appendChild(s),s._top=s.offsetTop),r.dataTransfer.setDragImage(s,0,0),g&&s.parentNode.removeChild(s)}}function Ob(e,r){var s=Dn(e,r);if(!!s){var o=document.createDocumentFragment();_u(e,s,o),e.display.dragCursor||(e.display.dragCursor=T("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),q(e.display.dragCursor,o)}}function cc(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function fc(e){if(!!document.getElementsByClassName){for(var r=document.getElementsByClassName("CodeMirror"),s=[],o=0;o<r.length;o++){var u=r[o].CodeMirror;u&&s.push(u)}s.length&&s[0].operation(function(){for(var m=0;m<s.length;m++)e(s[m])})}}var dc=!1;function Pb(){dc||(Rb(),dc=!0)}function Rb(){var e;lt(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,fc(zb)},100))}),lt(window,"blur",function(){return fc(Zn)})}function zb(e){var r=e.display;r.cachedCharWidth=r.cachedTextHeight=r.cachedPaddingH=null,r.scrollbarsClipped=!1,e.setSize()}for(var kn={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Wi=0;Wi<10;Wi++)kn[Wi+48]=kn[Wi+96]=String(Wi);for(var qo=65;qo<=90;qo++)kn[qo]=String.fromCharCode(qo);for(var Gi=1;Gi<=12;Gi++)kn[Gi+111]=kn[Gi+63235]="F"+Gi;var un={};un.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},un.pcDefault={"Ctrl-A":"selectAll","C
`,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function gc(e,r){var s=oe(e.doc,r),o=Yr(s);return o!=s&&(r=Ve(o)),ks(!0,e,o,r,1)}function jb(e,r){var s=oe(e.doc,r),o=Sy(s);return o!=s&&(r=Ve(o)),ks(!0,e,s,r,-1)}function vc(e,r){var s=gc(e,r.line),o=oe(e.doc,s.line),u=Lt(o,e.doc.direction);if(!u||u[0].level==0){var m=Math.max(s.ch,o.text.search(/\S/)),x=r.line==s.line&&r.ch<=m&&r.ch;return xe(s.line,x?0:m,s.sticky)}return s}function $o(e,r,s){if(typeof r=="string"&&(r=Ki[r],!r))return!1;e.display.input.ensurePolled();var o=e.display.shift,u=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),s&&(e.display.shift=!1),u=r(e)!=ze}finally{e.display.shift=o,e.state.suppressEdits=!1}return u}function $b(e,r,s){for(var o=0;o<e.state.keyMaps.length;o++){var u=oi(r,e.state.keyMaps[o],s,e);if(u)return u}return e.options.extraKeys&&oi(r,e.options.extraKeys,s,e)||oi(r,e.options.keyMap,s,e)}var Ub=new Pe;function Vi(e,r,s,o){var u=e.state.keySeq;if(u){if(hc(r))return"handled";if(/\'$/.test(r)?e.state.keySeq=null:Ub.set(50,function(){e.state.keySeq==u&&(e.state.keySeq=null,e.display.input.reset())}),yc(e,u+" "+r,s,o))return!0}return yc(e,r,s,o)}function yc(e,r,s,o){var u=$b(e,r,o);return u=="multi"&&(e.state.keySeq=r),u=="handled"&&tr(e,"keyHandled",e,r,s),(u=="handled"||u=="multi")&&(kt(s),is(e)),!!u}function bc(e,r){var s=mc(r,!0);return s?r.shiftKey&&!e.state.keySeq?Vi(e,"Shift-"+s,r,function(o){return $o(e,o,!0)})||Vi(e,s,r,function(o){if(typeof o=="string"?/^go[A-Z]/.test(o):o.motion)return $o(e,o)}):Vi(e,s,r,function(o){return $o(e,o)}):!1}function Hb(e,r,s){return Vi(e,"'"+s+"'",r,function(o){return $o(e,o,!0)})}var _s=null;function xc(e){var r=this;if(!(e.target&&e.target!=r.display.input.getField())&&(r.curOp.focus=F(),!wt(r,e))){a&&h<11&&e.keyCode==27&&(e.returnValue=!1);var s=e.keyCode;r.display.shift=s==16||e.shiftKey;var o=bc(r,e);g&&(_s=o?s:null,!o&&s==88&&!Z&&(S?e.metaKey:e.ctrlKey)&&r.replaceSelection("",null,"cut")),n&&!S&&!o&&s==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),s==18&&!/\bCodeMirror-crosshair\b/.test(r.display.lineDiv.className)&&Wb(r)}}function Wb(e){var r=e.display.lineDiv;z(r,"CodeMirror-crosshair");function s(o){(o.keyCode==18||!o.altKey)&&(X(r,"CodeMirror-crosshair"),pt(document,"keyup",s),pt(document,"mouseover",s))}lt(document,"keyup",s),lt(document,"mouseover",s)}function wc(e){e.keyCode==16&&(this.doc.sel.shift=!1),wt(this,e)}function kc(e){var r=this;if(!(e.target&&e.target!=r.display.input.getField())&&!(ln(r.display,e)||wt(r,e)||e.ctrlKey&&!e.altKey||S&&e.metaKey)){var s=e.keyCode,o=e.charCode;if(g&&s==_s){_s=null,kt(e);return}if(!(g&&(!e.which||e.which<10)&&bc(r,e))){var u=String.fromCharCode(o==null?s:o);u!="\b"&&(Hb(r,e,u)||r.display.input.onKeyPress(e))}}}var Gb=400,Ss=function(e,r,s){this.time=e,this.pos=r,this.button=s};Ss.prototype.compare=function(e,r,s){return this.time+Gb>e&&D(r,this.pos)==0&&s==this.button};var Yi,Xi;function Kb(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?Kb(o,u):"single";window.focus(),u==1&&r.state.selectingText&&r.state.selectingText(e),!(o&&Vb(r,u,o,m,e))&&(u==1?o?Xb(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 Vb(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 Yb(e,r,s){var o=e.getOption("configureMouse"),u=o?o(e,r,s):{};if(u.unit
`)==r){if(o.ranges.length%Wr.text.length==0){L=[];for(var V=0;V<Wr.text.length;V++)L.push(m.splitLines(Wr.text[V]))}}else C.length==o.ranges.length&&e.options.pasteLinesPerSelection&&(L=Ie(C,function(je){return[je]}));for(var Q=e.curOp.updateInput,ce=o.ranges.length-1;ce>=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<m.electricChars.length;E++)if(r.indexOf(m.electricChars.charAt(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;o<e.doc.sel.ranges.length;o++){var u=e.doc.sel.ranges[o].head.line,m={anchor:xe(u,0),head:xe(u+1,0)};s.push(m),r.push(e.getRange(m.anchor,m.head))}return{text:r,ranges:s}}function Fc(e,r,s,o){e.setAttribute("autocorrect",s?"":"off"),e.setAttribute("autocapitalize",o?"":"off"),e.setAttribute("spellcheck",!!r)}function Mc(){var e=T("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),r=T("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return f?e.style.width="1000px":e.setAttribute("wrap","off"),_&&(e.style.border="1px solid black"),Fc(e),r}function ox(e){var r=e.optionHandlers,s=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(o,u){var m=this.options,x=m[o];m[o]==u&&o!="mode"||(m[o]=u,r.hasOwnProperty(o)&&rr(this,r[o])(this,u,x),rt(this,"optionChange",this,o))},getOption:function(o){return this.options[o]},getDoc:function(){return this.doc},addKeyMap:function(o,u){this.state.keyMaps[u?"push":"unshift"](jo(o))},removeKeyMap:function(o){for(var u=this.state.keyMaps,m=0;m<u.length;++m)if(u[m]==o||u[m].name==o)return u.splice(m,1),!0},addOverlay:br(function(o,u){var m=o.token?o:e.getMode(this.options,o);if(m.startState)throw new Error("Overlays may not be stateful.");Be(this.state.overlays,{mode:m,modeSpec:o,opaque:u&&u.opaque,priority:u&&u.priority||0},function(x){return x.priority}),this.state.modeGen++,kr(this)}),removeOverlay:br(function(o){for(var u=this.state.overlays,m=0;m<u.length;++m){var x=u[m].modeSpec;if(x==o||typeof o=="string"&&x.name==o){u.splice(m,1),this.state.modeGen++,kr(this);return}}}),indentLine:br(function(o,u,m){typeof u!="string"&&typeof u!="number"&&(u==null?u=this.options.smartIndent?"smart":"prev":u=u?"add":"subtract"),bt(this.doc,o)&&Zi(this,o,u,m)}),indentSelection:br(function(o){for(var u=this.doc.sel.ranges,m=-1,x=0;x<u.length;x++){var E=u[x];if(E.empty())E.head.line>m&&(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;Q<m;++Q)Zi(this,Q,o);var ce=this.doc.sel.ranges;C.ch==0&&u.length==ce.length&&ce[x].from().ch>0&&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]<E)m=L+1;else{C=u[L*2+2];break}}var V=C?C.indexOf("overlay "):-1;return V<0?C:V==0?null:C.slice(0,V-1)},getModeAt:function(o){var u=this.doc.mode;return u.innerMode?e.innerMode(u,this.getTokenAt(o).state).mode:u},getHelper:function(o,u){return this.getHelpers(o,u)[0]},getHelpers:function(o,u){var m=[];if(!s.hasOwnProperty(u))return m;var x=s[u],E=this.getModeAt(o);if(typeof E[u]=="string")x[E[u]]&&m.push(x[E[u]]);els
`,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){e.removeAllRanges();return}var m=Wo(r,e.anchorNode,e.anchorOffset),x=Wo(r,e.focusNode,e.focusOffset);if(!(m&&!m.bad&&x&&!x.bad&&D(ft(m,x),o)==0&&D(De(m,x),u)==0)){var E=r.display.view,C=o.line>=r.display.viewFrom&&Pc(r,o)||{node:E[0].measure.map[2],offset:0},L=u.line<r.display.viewTo&&Pc(r,u);if(!L){var V=E[E.length-1].measure,Q=V.maps?V.maps[V.maps.length-1]:V.map;L={node:Q[Q.length-1],offset:Q[Q.length-2]-Q[Q.length-3]}}if(!C||!L){e.removeAllRanges();return}var ce=e.rangeCount&&e.getRangeAt(0),ae;try{ae=j(C.node,C.offset,L.offset,L.node)}catch(ye){}ae&&(!n&&r.state.focused?(e.collapse(C.node,C.offset),ae.collapsed||(e.removeAllRanges(),e.addRange(ae))):(e.removeAllRanges(),e.addRange(ae)),ce&&e.anchorNode==null?e.addRange(ce):n&&this.startGracePeriod()),this.rememberSelection()}},Ot.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},Ot.prototype.showMultipleSelections=function(e){q(this.cm.display.cursorDiv,e.cursors),q(this.cm.display.selectionDiv,e.selection)},Ot.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Ot.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var r=e.getRangeAt(0).commonAncestorContainer;return te(this.div,r)},Ot.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||F()!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Ot.prototype.blur=function(){this.div.blur()},Ot.prototype.getField=function(){return this.div},Ot.prototype.supportsTouch=function(){return!0},Ot.prototype.receivedFocus=function(){var e=this;this.selectionInEditor()?this.pollSelection():Ar(this.cm,function(){return e.cm.curOp.selectionChanged=!0});function r(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,r))}this.polling.set(this.cm.options.pollInterval,r)},Ot.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Ot.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var e=this.getSelection(),r=this.cm;if(w&&y&&this.cm.display.gutterSpecs.length&&ax(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var s=Wo(r,e.anchorNode,e.anchorOffset),o=Wo(r,e.focusNode,e.focusOffset);s&&o&&Ar(r,function(){pr(r.doc,yn(s,o),qe),(s.bad||o.bad)&&(r.curOp.selectionChanged=!0)})}}},Ot.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,r=e.display,s=e.doc.sel.primary(),o=s.from(),u=s.to();if(o.ch==0&&o.line>e.firstLine()&&(o=xe(o.line-1,oe(e.doc,o.line-1).length)),u.ch==oe(e.doc,u.line).text.length&&u.line<e.lastLine()&&(u=xe(u.line+1,0)
`),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);x<E&&o.charCodeAt(x)==u.charCodeAt(x);)++x;return Ar(r,function(){Ts(r,u.slice(x),o.length-x,null,e.composing?"*compose":null),u.length>1e3||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 ux(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 cx(e){e.off=pt,e.on=lt,e.wheelEventPixels=vb,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=Bb,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}tx(Nt),ox(Nt);var fx="iter insert remove copy getEditor constructor".split(" ");for(var Go in _r.prototype)_r.prototype.hasOwnProperty(Go)&&ve(fx,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=ux,cx(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
`)&&(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;$<arguments.length-2;$++)arguments[$]===void 0&&(U[$]=void 0)}),U}),c.exports=g},7066:function(c,d,a){"use strict";var h=a(9670);c.exports=function(){var f=h(this),p="";return f.global&&(p+="g"),f.ignoreCase&&(p+="i"),f.multiline&&(p+="m"),f.dotAll&&(p+="s"),f.unicode&&(p+="u"),f.sticky&&(p+="y"),p}},2999:function(c,d,a){"use strict";var h=a(7293);function f(p,y){return RegExp(p,y)}d.UNSUPPORTED_Y=h(function(){var p=f("a","y");return p.lastIndex=2,p.exec("abcd")!=null}),d.BROKEN_CARET=h(function(){var p=f("^r","gy");return p.lastIndex=2,p.exec("str")!=null})},4488:function(c){c.exports=function(d){if(d==null)throw TypeError("Can't call method on "+d);return d}},3505:function(c,d,a){var h=a(7854),f=a(8880);c.exports=function(p,y){try{f(h,p,y)}catch(g){h[p]=y}return y}},6340:function(c,d,a){"use strict";var h=a(5005),f=a(3070),p=a(5112),y=a(9781),g=p("species");c.exports=function(v){var b=h(v),k=f.f;y&&b&&!b[g]&&k(b,g,{configurable:!0,get:function(){return this}})}},8003:function(c,d,a){var h=a(3070).f,f=a(6656),p=a(5112),y=p("toStringTag");c.exports=function(g,v,b){g&&!f(g=b?g:g.prototype,y)&&h(g,y,{configurable:!0,value:v})}},6200:function(c,d,a){var h=a(2309),f=a(9711),p=h("keys");c.exports=function(y){return p[y]||(p[y]=f(y))}},5465:function(c,d,a){var h=a(7854),f=a(3505),p="__core-js_shared__",y=h[p]||f(p,{});c.exports=y},2309:function(c,d,a){var h=a(1913),f=a(5465);(c.exports=function(p,y){return f[p]||(f[p]=y!==void 0?y:{})})("versions",[]).push({version:"3.9.0",mode:h?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},6707:function(c,d,a){var h=a(9670),f=a(3099),p=a(5112),y=p("species");c.exports=function(g,v){var b=h(g).constructor,k;return b===void 0||(k=h(b)[y])==null?v:f(k)}},8710:function(c,d,a){var h=a(9958),f=a(4488),p=function(y){return function(g,v){var b=String(f(g)),k=h(v),_=b.length,w,I;return k<0||k>=_?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<q;){var T=K.charCodeAt(G++);if(T>=55296&&T<=56319&&G<q){var A=K.charCodeAt(G++);(A&64512)==56320?X.push(((T&1023)<<10)+(A&1023)+65536):(X.push(T),G--)}else X.push(T)}return X},U=function(K){return K+22+75*(K<26)},$=function(K,X,G){var q=0;for(K=G?S(K/y):K>>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<K.length;j++)te=K[j],te<128&&X.push(R(te));var F=X.length,z=F;for(F&&X.push(b);z<G;){var se=d;for(j=0;j<K.length;j++)te=K[j],te>=q&&te<se&&(se=te);var be=z+1;if(se-q>S((d-T)/be))throw RangeError(w);for(T+=(se-q)*be,q=se,j=0;j<K.length;j++){if(te=K[j],te<q&&++T>d)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(W<we)break;var Pe=W-we,ve=a-we;X.push(R(U(we+Pe%ve))),W=S(Pe/ve)}X.push(R(U(W))),A=$(T,be,z==F),T=0,++z}}++T,++q}return X.join("")};c.exports=function(K){var X=[],G=K.toLowerCase().replace(_,".").split("."),q,T;for(q=0;q<G.length;q++)T=G[q],X.push(k.test(T)?"xn--"+J(T):T);return X.join(".")}},6091:function(c,d,a){var h=a(7293),f=a(1361),p="\u200B\x85\u180E";c.exports=function(y){return h(function(){return!!f[y]()||p[y]()!=p||f[y].name!==y})}},3111:function(c,d,a){var h=a(4488),f=a(1361),p="["+f+"]",y=RegExp("^"+p+p+"*"),g=RegExp(p+p+"*$"),v=function(b){return function(k){var _=String(h(k));return b&1&&(_=_.replace(y,"")),b&2&&(_=_.replace(g,"")),_}};c.export
\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;j<F;j++)if(se=j===-1?q:arguments[j],J(se)){if(z=v(se.length),A+z>R)throw TypeError(O);for(te=0;te<z;te++,A++)te in se&&b(T,A,se[te])}else{if(A>=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;X<G;X++,A++)X in J&&b(T,A,J[X]);return T.length=A,T}})},561:function(c,d,a){"use strict";var h=a(2109),f=a(1400),p=a(9958),y=a(7466),g=a(7908),v=a(5417),b=a(6135),k=a(1194),_=k("splice"),w=Math.max,I=Math.min,S=9007199254740991,R="Maximum allowed length exceeded";h({target:"Array",proto:!0,forced:!_},{splice:function(U,$){var J=g(this),K=y(J.length),X=f(U,K),G=arguments.length,q,T,A,j,te,F;if(G===0?q=T=0:G===1?(q=0,T=K-X):(q=G-2,T=I(w(p($),0),K-X)),K+q-T>S)throw TypeError(R);for(A=v(J,T),j=0;j<T;j++)te=X+j,te in J&&b(A,j,J[te]);if(A.length=T,q<T){for(j=X;j<K-T;j++)te=j+T,F=j+q,te in J?J[F]=J[te]:delete J[F];for(j=K;j>K-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<q;j++)J[j+X]=arguments[j+2];return J.length=K-T+q,A}})},8309:function(c,d,a){var h=a(9781),f=a(3070).f,p=Function.prototype,y=p.toString,g=/^\s*function ([^ (]*)/,v="name";h&&!(v in p)&&f(p,v,{configurable:!0,get:function(){try{return y.call(this).match(g)[1]}catch(b){return""}}})},489:function(c,d,a){var h=a(2109),f=a(7293),p=a(7908),y=a(9518),g=a(8544),v=f(function(){y(1)});h({target:"Object",stat:!0,forced:v,sham:!g},{getPrototypeOf:function(k){return y(p(k))}})},1539:function(c,d,a){var h=a(1694),f=a(1320),p=a(288);h||f(Object.prototype,"toString",p,{unsafe:!0})},4916:function(c,d,a){"use strict";var h=a(2109),f=a(2261);h({target:"RegExp",proto:!0,forced:/./.exec!=
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);Z<ie;Z++)re[Z]=ne[Z];return re}function Ge(ne,ie){if(!(ne instanceof ie))throw new TypeError("Cannot call a class as a function")}function He(ne,ie){for(var Z=0;Z<ie.length;Z++){var re=ie[Z];re.enumerable=re.enumerable||!1,re.configurable=!0,"value"in re&&(re.writable=!0),Object.defineProperty(ne,re.key,re)}}function Qe(ne,ie,Z){return ie&&He(ne.prototype,ie),Z&&He(ne,Z),ne}var _e=function(){function ne(){Ge(this,ne)}return Qe(ne,[{key:"on",value:function(Z,re){return this._callbacks=this._callbacks||{},this._callbacks[Z]||(this._callbacks[Z]=[]),this._callbacks[Z].push(re),this}},{key:"emit",value:function(Z){this._callbacks=this._callbacks||{};for(var re=this._callbacks[Z],P=arguments.length,N=new Array(P>1?P-1:0),ee=1;ee<P;ee++)N[ee-1]=arguments[ee];if(re){var ue=Re(re,!0),pe;try{for(ue.s();!(pe=ue.n()).done;){var ge=pe.value;ge.apply(this,N)}}catch(Le){ue.e(Le)}finally{ue.f()}}return this.element&&this.element.dispatchEvent(this.makeEvent("dropzone:"+Z,{args:N})),this}},{key:"makeEvent",value:function(Z,re){var P={bubbles:!0,cancelable:!0,detail:re};if(typeof window.CustomEvent=="function")return new CustomEvent(Z,P);var N=document.createEvent("CustomEvent");return N.initCustomEvent(Z,P.bubbles,P.cancelable,P.detail),N}},{key:"off",value:function(Z,re){if(!this._callbacks||arguments.length===0)return this._callbacks={},this;var P=this._callbacks[Z];if(!P)return this;if(arguments.length===1)return delete this._callbacks[Z],this;for(var N=0;N<P.length;N++){var ee=P[N];if(ee===re){P.splice(N,1);break}}return this}}]),ne}(),Y='<div class="dz-preview dz-file-preview"> <div class="dz-image"><img data-dz-thumbnail/></div> <div class="dz-details"> <div class="dz-size"><span data-dz-size></span></div> <div class="dz-filename"><span data-dz-name></span></div> </div> <div class="dz-progress"> <span class="dz-upload" data-dz-uploadprogress></span> </div> <div class="dz-error-message"><span data-dz-errormessage></span></div> <div class="dz-success-mark"> <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>Check</title> <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <path d="M23.5,31.8431458 L17.5852419,25.9283877 C16.0248253,24.3679711 13.4910294,24.366835 11.9289322,25.9289322 C10.3700136,27.4878508 10.3665912,30.0234455 11.9283877,31.5852419 L20.4147581,40.0716123 C20.5133999,40.1702541 20.6159315,40.2626649 20.7218615,40.3488435 C22.2835669,41.8725651 24.794234,41.8626202 26.3461564,40.3106978 L43.3106978,23.3461564 C44.8771021,21.7797521 44.8758057,19.2483887 43.3137085,17.6862915 C41.7547899,16.1273729 39.2176035,16.1255422 37.6538436,17.6893022 L23.5,31.8431458 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" stroke-opacity="0.198794158" stroke="#747474" fill-opacity="0.816519475" fill="#FFFFFF"></path> </g> </svg> </div> <div class="dz-error-mark"> <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>Error</title> <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <g stroke="#747474" stroke-opacity="0.198794158" fill="#FFFFFF" fill-opacity="0.816519475"> <path d="M32.6568542,29 L38.3106978,23.3461564 C39.877102
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<ie;Z++)re[Z]=ne[Z];return re}var ot={url:null,method:"post",withCredentials:!1,timeout:null,parallelUploads:2,uploadMultiple:!1,chunking:!1,forceChunking:!1,chunkSize:2e6,parallelChunkUploads:!1,retryChunks:!1,retryChunksLimit:3,maxFilesize:256,paramName:"file",createImageThumbnails:!0,maxThumbnailFilesize:10,thumbnailWidth:120,thumbnailHeight:120,thumbnailMethod:"crop",resizeWidth:null,resizeHeight:null,resizeMimeType:null,resizeQuality:.8,resizeMethod:"contain",filesizeBase:1e3,maxFiles:null,headers:null,clickable:!0,ignoreHiddenFiles:!0,acceptedFiles:null,acceptedMimeTypes:null,autoProcessQueue:!0,autoQueue:!0,addRemoveLinks:!1,previewsContainer:null,disablePreviews:!1,hiddenInputContainer:"body",capture:null,renameFilename:null,renameFile:null,forceFallback:!1,dictDefaultMessage:"Drop files here to upload",dictFallbackMessage:"Your browser does not support drag'n'drop file uploads.",dictFallbackText:"Please use the fallback form below to upload your files like in the olden days.",dictFileTooBig:"File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.",dictInvalidFileType:"You can't upload files of this type.",dictResponseError:"Server responded with {{statusCode}} code.",dictCancelUpload:"Cancel upload",dictUploadCanceled:"Upload canceled.",dictCancelUploadConfirmation:"Are you sure you want to cancel this upload?",dictRemoveFile:"Remove file",dictRemoveFileConfirmation:null,dictMaxFilesExceeded:"You can not upload any more files.",dictFileSizeUnits:{tb:"TB",gb:"GB",mb:"MB",kb:"KB",b:"b"},init:function(){},params:function(ie,Z,re){if(re)return{dzuuid:re.file.upload.uuid,dzchunkindex:re.index,dztotalfilesize:re.file.size,dzchunksize:this.options.chunkSize,dztotalchunkcount:re.file.upload.totalChunkCount,dzchunkbyteoffset:re.index*this.options.chunkSize}},accept:function(ie,Z){return Z()},chunksUploaded:function(ie,Z){Z()},fallback:function(){var ie;this.element.className="".concat(this.element.className," dz-browser-not-supported");var Z=le(this.element.getElementsByTagName("div"),!0),re;try{for(Z.s();!(re=Z.n()).done;){var P=re.value;if(/(^| )dz-message($| )/.test(P.className)){ie=P,P.className="dz-message";break}}}catch(ee){Z.e(ee)}finally{Z.f()}ie||(ie=st.createElement('<div class="dz-message"><span></span></div>'),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:f
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<ie;Z++)re[Z]=ne[Z];return re}function cr(ne,ie){if(!(ne instanceof ie))throw new TypeError("Cannot call a class as a function")}function lt(ne,ie){for(var Z=0;Z<ie.length;Z++){var re=ie[Z];re.enumerable=re.enumerable||!1,re.configurable=!0,"value"in re&&(re.writable=!0),Object.defineProperty(ne,re.key,re)}}function Mt(ne,ie,Z){return ie&&lt(ne.prototype,ie),Z&&lt(ne,Z),ne}function pt(ne,ie){if(typeof ie!="function"&&ie!==null)throw new TypeError("Super expression must either be null or a function");ne.prototype=Object.create(ie&&ie.prototype,{constructor:{value:ne,writable:!0,configurable:!0}}),ie&&rt(ne,ie)}function rt(ne,ie){return rt=Object.setPrototypeOf||function(re,P){return re.__proto__=P,re},rt(ne,ie)}function wt(ne){var ie=Kt();return function(){var re=kt(ne),P;if(ie){var N=kt(this).constructor;P=Reflect.construct(re,arguments,N)}else P=re.apply(this,arguments);return fr(this,P)}}function fr(ne,ie){return ie&&(Je(ie)==="object"||typeof ie=="function")?ie:Et(ne)}function Et(ne){if(ne===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ne}function Kt(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(ne){return!1}}function kt(ne){return kt=Object.setPrototypeOf?Object.getPrototypeOf:function(Z){return Z.__proto__||Object.getPrototypeOf(Z)},kt(ne)}var st=function(ne){pt(Z,ne);var ie=wt(Z);function Z(re,P){var N;cr(this,Z),N=ie.call(this);var ee,ue;if(N.element=re,N.version=Z.version,N.clickableElements=[],N.listeners=[],N.files=[],typeof N.element=="string"&&(N.element=document.querySelector(N.element)),!N.element||N.element.nodeType==null)throw new Error("Invalid dropzone element.");if(N.element.dropzone)throw new Error("Dropzone already attached.");Z.instances.push(Et(N)),N.element.dropzone=Et(N);var pe=(ue=Z.optionsForElement(N.element))!=null?ue:{};if(N.options=Z.extend({},Ye,pe,P!=null?P:{}),N.options.previewTemplate=N.options.previewTemplate.replace(/\n*/g,""),N.options.forceFallback||!Z.isBrowserSupported())return fr(N,N.options.fallback.call(Et(N)));if(N.options.url==null&&(N.options.url=N.element.getAttribute("action")),!N.options.url)throw new Error("No URL provided.");if(N.options.acceptedFiles&&N.options.acceptedMimeTypes)throw new Error("You can't provide both 'acceptedFiles' and 'acceptedMimeTypes'. 'acceptedMimeTypes' is deprecated.");if(N.options.uploadMultiple&&N.options.chunking)throw new Error("You cannot set both: uploadMultiple and chunking.");return N.options.acceptedMimeTypes&&(N.options.acceptedFiles=N.options.acceptedMimeTypes,delete N.options.acceptedMimeTypes),N.options.renameFilename!=null&&(N.options.renameFile=function(ge){return N.options.renameFilename.call(Et(N),ge.name,ge)}),typeof N.options.method=="string"&&(N.options.method=N.options.method.toUpperCase()),(ee=N.getExistingFallback())&&ee.parentNode&&ee.parentNode.removeChild(ee),N.options.previewsContainer!==!1&&(N.options.previewsContainer?N.previewsContainer=Z.getElement(N.options.previewsContainer,"previewsContainer"):N.previewsContainer=N.element),N.options.clickable&&(N.options.clickable===!0?N.clickableElements=[N.element]:N.clickableElements=Z.getElements(N.options.clickable,"clickable")),N.init(),N}return Mt(Z,[{key:"getAcce
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<Z.length;);return Se}}]),ne}();$r.initClass();var zt=function(ie,Z){var re=!1,P=!0,N=ie.document,ee=N.documentElement,ue=N.addEventListener?"addEventListener":"attachEvent",pe=N.addEventListener?"removeEventListener":"detachEvent",ge=N.addEventListener?"":"on",Le=function Se(Ke){if(!(Ke.type==="readystatechange"&&N.readyState!=="complete")&&((Ke.type==="load"?ie:N)[pe](ge+Ke.type,Se,!1),!re&&(re=!0)))return Z.call(ie,Ke.type||Ke)},Me=function Se(){try{ee.doScroll("left")}catch(Ke){setTimeout(Se,50);return}return Le("poll")};if(N.readyState!=="complete"){if(N.createEventObject&&ee.doScroll){try{P=!ie.frameElement}catch(Se){}P&&Me()}return N[ue](ge+"DOMContentLoaded",Le,!1),N[ue](ge+"readystatechange",Le,!1),ie[ue](ge+"load",Le,!1)}};st._autoDiscoverFunction=function(){if(st.autoDiscover)return st.discover()},zt(window,st._autoDiscoverFunction);function yr(ne,ie){return typeof ne!="undefined"&&ne!==null?ie(ne):void 0}function sr(ne,ie,Z){if(typeof ne!="undefined"&&ne!==null&&typeof ne[ie]=="function")return Z(ne,ie)}window.Dropzone=st;var Zt=st}(),l}()})});var Qh=Fe((AS,f0)=>{f0.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
`,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:"\u01
`," "],y0=["{","}","|","\\","^","`"].concat(v0),b0=["'"].concat(y0),up=["%","/","?",";","#"].concat(b0),cp=["/","?","#"],x0=255,fp=/^[+a-z0-9A-Z_-]{0,63}$/,w0=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,dp={javascript:!0,"javascript:":!0},hp={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function k0(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=g0.exec(h);if(f)return this.pathname=f[1],f[2]&&(this.search=f[2]),this}var p=p0.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&&dp[p])&&(h=h.substr(2),this.slashes=!0)),!dp[p]&&(a||p&&!hp[p])){var y=-1;for(n=0;n<cp.length;n++)d=h.indexOf(cp[n]),d!==-1&&(y===-1||d<y)&&(y=d);var g,v;for(y===-1?v=h.lastIndexOf("@"):v=h.lastIndexOf("@",y),v!==-1&&(g=h.slice(0,v),h=h.slice(v+1),this.auth=g),y=-1,n=0;n<up.length;n++)d=h.indexOf(up[n]),d!==-1&&(y===-1||d<y)&&(y=d);y===-1&&(y=h.length),h[y-1]===":"&&y--;var b=h.slice(0,y);h=h.slice(y),this.parseHost(b),this.hostname=this.hostname||"";var k=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!k){var _=this.hostname.split(/\./);for(n=0,l=_.length;n<l;n++){var w=_[n];if(!!w&&!w.match(fp)){for(var I="",S=0,R=w.length;S<R;S++)w.charCodeAt(S)>127?I+="x":I+=w[S];if(!I.match(fp)){var O=_.slice(0,n),U=_.slice(n+1),$=w.match(w0);$&&(O.push($[1]),U.unshift($[2])),U.length&&(h=U.join(".")+h),this.hostname=O.join(".");break}}}}this.hostname.length>x0&&(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),hp[c]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Ca.prototype.parseHost=function(i){var t=m0.exec(i);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),i=i.substr(0,i.length-t.length)),i&&(this.hostname=i)};pp.exports=k0});var al=Fe((PS,ho)=>{"use strict";ho.exports.encode=np();ho.exports.decode=ap();ho.exports.format=lp();ho.exports.parse=mp()});var sl=Fe((RS,gp)=>{gp.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/});var ll=Fe((zS,vp)=>{vp.exports=/[\0-\x1F\x7F-\x9F]/});var bp=Fe((NS,yp)=>{yp.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((BS,xp)=>{xp.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/});var wp=Fe(bi=>{"use strict";bi.Any=sl();bi.Cc=ll();bi.Cf=bp();bi.P=_a();bi.Z=ul()});var Ft=Fe(ar=>{"use strict";function _0(i){return Object.prototype.toString.call(i)}function S0(i){return _0(i)==="[object String]"}var E0=Object.prototype.hasOwnProperty;function kp(i,t){return E0.call(i,t)}function C0(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 T0(i,t,n){return[].concat(i.slice(0,t),n,i.slice(t+1))}function _p(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 Sp(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 Ep=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,A0=/&([a-z#][a-z0-9]{1,31});/gi,L0=new RegExp(Ep.source+"|"+A0.source,"gi"),D0=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,Cp=ol();function I0(i,t){var n=0;return kp(Cp,t)?Cp[t]:t.charCodeAt(0)===35&&D0.test(t)&&(n=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10),_p(n))?Sp(n):i}function F0(i){return i.indexOf("\\")<0?i:i.replace(Ep,"$1")}function M0(i){return i.
`};tn.fence=function(i,t,n,l,c){var d=i[t],a=d.info?Y0(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("<pre")===0?p+`
`:a?(y=d.attrIndex("class"),v=d.attrs?d.attrs.slice():[],y<0?v.push(["class",n.langPrefix+h]):(v[y]=v[y].slice(),v[y][1]+=" "+n.langPrefix+h),b={attrs:v},"<pre><code"+c.renderAttrs(b)+">"+p+`</code></pre>
`):"<pre><code"+c.renderAttrs(d)+">"+p+`</code></pre>
`};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?`<br />
`:`<br>
`};tn.softbreak=function(i,t,n){return n.breaks?n.xhtmlOut?`<br />
`:`<br>
`:`
`};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=V0({},tn)}xi.prototype.renderAttrs=function(t){var n,l,c;if(!t.attrs)return"";for(c="",n=0,l=t.attrs.length;n<l;n++)c+=" "+$n(t.attrs[n][0])+'="'+$n(t.attrs[n][1])+'"';return c};xi.prototype.renderToken=function(t,n,l){var c,d="",a=!1,h=t[n];return h.hidden?"":(h.block&&h.nesting!==-1&&n&&t[n-1].hidden&&(d+=`
`),d+=(h.nesting===-1?"</":"<")+h.tag,d+=this.renderAttrs(h),h.nesting===0&&l.xhtmlOut&&(d+=" /"),h.block&&(a=!0,h.nesting===1&&n+1<t.length&&(c=t[n+1],(c.type==="inline"||c.hidden||c.nesting===-1&&c.tag===h.tag)&&(a=!1))),d+=a?`>
`:">",d)};xi.prototype.renderInline=function(i,t,n){for(var l,c="",d=this.rules,a=0,h=i.length;a<h;a++)l=i[a].type,typeof d[l]!="undefined"?c+=d[l](i,a,t,n,this):c+=this.renderToken(i,a,t);return c};xi.prototype.renderInlineAsText=function(i,t,n){for(var l="",c=0,d=i.length;c<d;c++)i[c].type==="text"?l+=i[c].content:i[c].type==="image"?l+=this.renderInlineAsText(i[c].children,t,n):i[c].type==="softbreak"&&(l+=`
`);return l};xi.prototype.render=function(i,t,n){var l,c,d,a="",h=this.rules;for(l=0,c=i.length;l<c;l++)d=i[l].type,d==="inline"?a+=this.renderInline(i[l].children,t,n):typeof h[d]!="undefined"?a+=h[i[l].type](i,l,t,n,this):a+=this.renderToken(i,l,t,n);return a};Pp.exports=xi});var Aa=Fe((KS,zp)=>{"use strict";function Kr(){this.__rules__=[],this.__cache__=null}Kr.prototype.__find__=function(i){for(var t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===i)return t;return-1};Kr.prototype.__compile__=function(){var i=this,t=[""];i.__rules__.forEach(function(n){!n.enabled||n.alt.forEach(function(l){t.indexOf(l)<0&&t.push(l)})}),i.__cache__={},t.forEach(function(n){i.__cache__[n]=[],i.__rules__.forEach(function(l){!l.enabled||n&&l.alt.indexOf(n)<0||i.__cache__[n].push(l.fn)})})};Kr.prototype.at=function(i,t,n){var l=this.__find__(i),c=n||{};if(l===-1)throw new Error("Parser rule not found: "+i);this.__rules__[l].fn=t,this.__rules__[l].alt=c.alt||[],this.__cache__=null};Kr.prototype.before=function(i,t,n,l){var c=this.__find__(i),d=l||{};if(c===-1)throw new Error("Parser rule not found: "+i);this.__rules__.splice(c,0,{name:t,enabled:!0,fn:n,alt:d.alt||[]}),this.__cache__=null};Kr.prototype.after=function(i,t,n,l){var c=this.__find__(i),d=l||{};if(c===-1)throw new Error("Parser rule not found: "+i);this.__rules__.splice(c+1,0,{name:t,enabled:!0,fn:n,alt:d.alt||[]}),this.__cache__=null};Kr.prototype.push=function(i,t,n){var l=n||{};this.__rules__.push({name:i,enabled:!0,fn:t,alt:l.alt||[]}),this.__cache__=null};Kr.prototype.enable=function(i,t){Array.isArray(i)||(i=[i]);var n=[];return i.forEach(function(l){var c=this.__find__(l);if(c<0){if(t)return;throw new Error("Rules manager: invalid rule name "+l)}this.__rules__[c].enabled=!0,n.push(l)},this),this.__cache__=null,n};Kr.prototype.enableOnly=function(i,t){Array.isArray(i)||(i=[i]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(i,t)};Kr.prototype.disable=function(i,t){Array.isArray(i)||(i=[i]);var n=[];return i.forEach(function(l){var c=this.__find__(l);if(c<0){if(t)return;throw new Error("Rules manager: invalid rule name "+l)}this.__rules__[c].enabled=!1,n.push(l)},this),this.__cache__=null,n};Kr.prototype.getRules=function(i){return this.__cache__===null&&this.__compile__(),this.__cache__[i]||[]};zp.exports=Kr});var Bp=Fe((VS,Np)=>{"use strict";var X0=/\r\n?|\n/g,Z0=/\0/g;Np.exports=function(t){var n;n=t.src.replace(X0,`
`),n=n.replace(Z0,"\uFFFD"),t.src=n}});var jp=Fe((YS,qp)=>{"use strict";qp.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 Up=Fe((XS,$p)=>{"use strict";$p.exports=function(t){var n=t.tokens,l,c,d;for(c=0,d=n.length;c<d;c++)l=n[c],l.type==="inline"&&t.md.inline.parse(l.content,t.md,t.env,l.children)}});var Wp=Fe((ZS,Hp)=>{"use strict";var Q0=Ft().arrayReplaceAt;function J0(i){return/^<a[>\s]/i.test(i)}function ew(i){return/^<\/a\s*>/i.test(i)}Hp.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<c;l++)if(!(S[l].type!=="inline"||!t.md.linkify.pretest(S[l].content)))for(d=S[l].children,k=0,n=d.length-1;n>=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"&&(J0(h.content)&&k>0&&k--,ew(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;p<R.length;p++)_=R[p].url,w=t.md.normalizeLink(_),!!t.md.validateLink(w)&&(I=R[p].text,R[p].schema?R[p].schema==="mailto:"&&!/^mailto:/i.test(I)?I=t.md.normalizeLinkText("mailto:"+I).replace(/^mailto:/,""):I=t.md.normalizeLinkText(I):I=t.md.normalizeLinkText("http://"+I).replace(/^http:\/\//,""),g=R[p].index,g>v&&(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<y.length&&(a=new t.Token("text","",0),a.content=y.slice(v),a.level=b,f.push(a)),S[l].children=d=Q0(d,n,f)}}}}});var Vp=Fe((QS,Kp)=>{"use strict";var Gp=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,tw=/\((c|tm|r|p)\)/i,rw=/\((c|tm|r|p)\)/ig,nw={c:"\xA9",r:"\xAE",p:"\xA7",tm:"\u2122"};function iw(i,t){return nw[t.toLowerCase()]}function ow(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(rw,iw)),n.type==="link_open"&&n.info==="auto"&&l--,n.type==="link_close"&&n.info==="auto"&&l++}function aw(i){var t,n,l=0;for(t=i.length-1;t>=0;t--)n=i[t],n.type==="text"&&!l&&Gp.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++}Kp.exports=function(t){var n;if(!!t.md.options.typographer)for(n=t.tokens.length-1;n>=0;n--)t.tokens[n].type==="inline"&&(tw.test(t.tokens[n].content)&&ow(t.tokens[n].children),Gp.test(t.tokens[n].content)&&aw(t.tokens[n].children))}});var tm=Fe((JS,em)=>{"use strict";var Yp=Ft().isWhiteSpace,Xp=Ft().isPunctChar,Zp=Ft().isMdAsciiPunct,sw=/['"]/,Qp=/['"]/g,Jp="\u2019";function La(i,t,n){return i.substr(0,t)+n+i.substr(t+1)}function lw(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<i.length;n++){for(l=i[n],f=i[n].level,S=O.length-1;S>=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<h&&(Qp.lastIndex=a,d=Qp.exec(c),!!d);){if(w=I=!0,a=d.index+1,R=d[0]==="'",y=32,d.index-1>=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<h)g=c.charCodeAt(a);else for(S=n+1;S<i.length&&!(i[S].type==="softbreak"||i[S].type==="hardbreak");S++)if(!!i[S].content){g=i[S].content.charCodeAt(0);break}if(v=Zp(y)||Xp(String.fromCharCode(y)),b=Zp(g)||Xp(String.fromCharCode(g)),k=Yp(y),_=Yp(g),_?w=!1:b&&(k||v||(w=!1)),k?I=!1:v&&(_||b||(I=!1)),g===34&&d[0]==='"'&&y>=48&&y<=57&&(I=w=!1),w&&I&&(w=v,I=b),!w&&!I){R&&(l.content=La(l.co
`);Vo("error",t)}}var Rc={emit:Vo,emitPublic:_x,listen:kx,success:i=>Vo("success",i),error:i=>Vo("error",i),showValidationErrors:Sx};async function Ex(i,t={}){return zc(i,{method:"GET",params:t})}async function Cx(i,t=null){return Yo("POST",i,t)}async function Tx(i,t=null){return Yo("PUT",i,t)}async function Ax(i,t=null){return Yo("PATCH",i,t)}async function Lx(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"),zc(t,l)}async function zc(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 Dx(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 Dx(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 Nc={get:Ex,post:Cx,put:Tx,patch:Ax,delete:Lx};var Bc=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}},qc=Bc;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 jc(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='<div class="loading-container"><div></div><div></div><div></div></div>'}function $c(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 Uc(i){return i.replace(/&/g,"
`);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});i0(c)}function i0(i){let t='<svg viewBox="0 0 24 24" width="16" height="16" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h24v24H0z" fill="none"/><path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"/></svg>',n=document.createElement("div");n.classList.add("CodeMirror-copy"),n.innerHTML=t,i.display.wrapper.appendChild(n),new sh.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 o0(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(/<br\s*[\/]?>/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 a0(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 s0(i,t,n){i.setOption("mode",xa(t,n))}function l0(i,t){i.setValue(t),setTimeout(()=>{uh(i)},10)}function uh(i){i.refresh()}function u0(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 c0(){return jn.default.keyMap.default==jn.default.keyMap.macDefault?"Cmd":"Ctrl"}var ur={highlight:r0,highlightWithin:n0,wysiwygView:o0,popupEditor:a0,setMode:s0,setContent:l0,updateLayout:uh,markdownEditor:u0,getMetaKey:c0};var ch=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`<li><button type="button" data-time="${n}">${l}</button></li>`}).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)}},fh=ch;var dh=class{constructor(t){ur.highlightWithin(t)}},hh=dh;var ph=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()}},mh=ph;var gh=class{constructor(t){this.elem=t,this.checkbox=t.que
`).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()})}},gv=mv;var vv=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")}},yv=vv;var bv=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)}},xv=bv;var wv=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")})}},kv=wv;var _v=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"}},Sv=_v;var Ev=St(Qs());var Cv=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=jc(".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"
<path d="M23 7V1h-6v2H7V1H1v6h2v10H1v6h6v-2h10v2h6v-6h-2V7h2zM3 3h2v2H3V3zm2 18H3v-2h2v2zm12-2H7v-2H5V7h2V5h10v2h2v10h-2v2zm4 2h-2v-2h2v2zM19 5V3h2v2h-2zm-5.27 9h-3.49l-.73 2H7.89l3.4-9h1.4l3.41 9h-1.63l-.74-2zm-3.04-1.26h2.61L12 8.91l-1.31 3.83z"/>
<path d="M0 0h24v24H0z" fill="none"/>
</svg>`)}`,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 Hk(){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 Wk(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 ly=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(){$k(),Hk();let t=document.querySelector("[drawio-url]");if(t){let n=t.getAttribute("drawio-url");Uk(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,h
2019-08-31 09:16:14 -04:00
/*!
* clipboard.js v2.0.8
* https://clipboardjs.com/
*
2019-08-31 09:16:14 -04:00
* Licensed MIT © Zeno Rocha
*/
/**!
* Sortable 1.13.0
* @author RubaXa <trash@rubaxa.org>
* @author owenm <owen23355@gmail.com>
* @license MIT
*/
//# sourceMappingURL=app.js.map