2021-04-19 17:26:19 -04:00
( ( ) => { var Go = Object . defineProperty , pb = Object . prototype . hasOwnProperty , Me = ( n , t ) => ( ) => ( t || ( t = { exports : { } } , n ( t . exports , t ) ) , t . exports ) , Rc = n => Go ( n , "__esModule" , { value : ! 0 } ) , mb = ( n , t ) => { Rc ( n ) ; for ( var i in t ) Go ( n , i , { get : t [ i ] , enumerable : ! 0 } ) } , gb = ( n , t ) => { if ( Rc ( n ) , typeof t == "object" || typeof t == "function" ) for ( let i in t ) ! pb . call ( n , i ) && i !== "default" && Go ( n , i , { get : ( ) => t [ i ] , enumerable : ! 0 } ) ; return n } , St = n => n && n . _ _esModule ? n : gb ( Go ( { } , "default" , { value : n , enumerable : ! 0 } ) , n ) ; var At = Me ( ( Is , Ls ) => { ( function ( n , t ) { typeof Is == "object" && typeof Ls != "undefined" ? Ls . exports = t ( ) : typeof define == "function" && define . amd ? define ( t ) : ( n = n || self , n . CodeMirror = t ( ) ) } ) ( Is , function ( ) { "use strict" ; var n = navigator . userAgent , t = navigator . platform , i = /gecko\/\d/i . test ( n ) , u = /MSIE \d/ . test ( n ) , c = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/ . exec ( n ) , h = /Edge\/(\d+)/ . exec ( n ) , a = u || c || h , d = a && ( u ? document . documentMode || 6 : + ( h || c ) [ 1 ] ) , f = ! h && /WebKit\// . test ( n ) , p = f && /Qt\/\d+\.\d+/ . test ( n ) , y = ! h && /Chrome\// . test ( n ) , m = /Opera\// . test ( n ) , v = /Apple Computer/ . test ( navigator . vendor ) , b = /Mac OS X 1\d\D([8-9]|\d\d)\D/ . test ( n ) , S = /PhantomJS/ . test ( n ) , E = v && ( /Mobile\/\w+/ . test ( n ) || navigator . maxTouchPoints > 2 ) , x = /Android/ . test ( n ) , D = E || x || /webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i . test ( n ) , C = E || /Mac/ . test ( t ) , N = /\bCrOS\b/ . test ( n ) , R = /win/i . test ( t ) , H = m && n . match ( /Version\/(\d*\.\d*)/ ) ; H && ( H = Number ( H [ 1 ] ) ) , H && H >= 15 && ( m = ! 1 , f = ! 0 ) ; var j = C && ( p || m && ( H == null || H < 12.11 ) ) , J = i || a && d >= 9 ; function W ( e ) { return new RegExp ( "(^|\\s)" + e + "(?:$|\\s)\\s*" ) } var Y = function ( e , r ) { var s = e . className , o = W ( r ) . exec ( s ) ; if ( o ) { var l = s . slice ( o . index + o [ 0 ] . length ) ; e . className = s . slice ( 0 , o . index ) + ( l ? o [ 1 ] + l : "" ) } } ; function M ( e ) { for ( var r = e . childNodes . length ; r > 0 ; -- r ) e . removeChild ( e . firstChild ) ; return e } function K ( e , r ) { return M ( e ) . appendChild ( r ) } function k ( e , r , s , o ) { var l = document . createElement ( e ) ; if ( s && ( l . className = s ) , o && ( l . style . cssText = o ) , typeof r == "string" ) l . appendChild ( document . createTextNode ( r ) ) ; else if ( r ) for ( var g = 0 ; g < r . length ; ++ g ) l . appendChild ( r [ g ] ) ; return l } function G ( e , r , s , o ) { var l = k ( e , r , s , o ) ; return l . setAttribute ( "role" , "presentation" ) , l } var B ; document . createRange ? B = function ( e , r , s , o ) { var l = document . createRange ( ) ; return l . setEnd ( o || e , s ) , l . setStart ( e , r ) , l } : B = function ( e , r , s ) { var o = document . body . createTextRange ( ) ; try { o . moveToElementText ( e . parentNode ) } catch ( l ) { return o } return o . collapse ( ! 0 ) , o . moveEnd ( "character" , s ) , o . moveStart ( "character" , r ) , o } ; function re ( 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 I ( ) { 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 P ( e , r ) { var s = e . className ; W ( r ) . test ( s ) || ( e . className += ( s ? " " : "" ) + r ) } function le ( e , r ) { for ( var s = e . split ( " " ) , o = 0 ; o < s . length ; o ++ ) s [ o ] && ! W ( s [ o ] ) . test ( r ) && ( r += " " + s [ o ] ) ; return r } var ke = function ( e ) { e . select ( ) } ; E ? ke = function ( e ) { e . selectionStart = 0 , e . selectionEnd = e . value . length } : a && ( ke = function ( e ) { try { e . select ( ) } catch ( r ) { } } ) ; function q ( e ) { var r = Array . prototype . slice . call ( arguments , 1 ) ; return function ( ) { return e . apply ( null , r ) } } function L ( 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 xe ( e , r , s , o , l ) { r == null && ( r = e . search ( /[^\s\u00a0]/ ) , r == - 1 && ( r = e . length ) ) ; for ( var g = o || 0 , w = l || 0 ; ; ) { var _ = e . indexOf ( " " , g ) ; if ( _ < 0 || _ >= r ) return w + ( r - g ) ; w += _ - g , w += s - w % s , g = _ + 1 } } var Se = function ( ) { this . id = null , this . f = null , this . time = 0 , this . handler = q ( this . onTimeout , this ) } ; Se . prototype . onTimeout = function ( e ) { e . id = 0 , e . time <= + new Date ? e . f ( ) : setTimeout ( e . handler , e . time - + new Date ) } , Se . 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 be ( e , r ) { for ( var s = 0 ; s < e . length ; ++ s ) if ( e [ s ] == r ) return s ; return - 1 } var Fe = 50 , Xe = { toString : function ( ) { return "CodeMirror.Pass" } } , nt = { scroll : ! 1 } , fe = { origin : "*mouse" } , Ae = { origin : "+move" } ; function Qe ( e , r , s ) { for ( var o = 0 , l = 0 ; ; ) { var g = e . indexOf ( " " , o ) ; g == - 1 && ( g = e . length ) ; var w = g - o ; if ( g == e . length || l + w >= r ) return o + Math . min ( w , r - l ) ; if ( l += g - o , l +
2020-09-20 05:33:18 -04:00
2021-04-09 16:18:32 -04:00
b ` .split(/ \n /).length!=3?function(e){for(var r=0,s=[],o=e.length;r<=o;){var l=e.indexOf( `
2021-04-19 17:26:19 -04:00
` ,r);l==-1&&(l=e.length);var g=e.slice(r,e.charAt(l-1)==" \r "?l-1:l),w=g.indexOf(" \r ");w!=-1?(s.push(g.slice(0,w)),r+=w+1):(s.push(g),r=l+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=k("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),ne=null;function O(e){if(ne!=null)return ne;var r=K(e,k("span","x")),s=r.getBoundingClientRect(),o=B(r,0,1).getBoundingClientRect();return ne=Math.abs(s.left-o.left)>1}var z={},te={};function ce(e,r){arguments.length>2&&(r.dependencies=Array.prototype.slice.call(arguments,2)),z[e]=r}function ye(e,r){te[e]=r}function me(e){if(typeof e=="string"&&te.hasOwnProperty(e))e=te[e];else if(e&&typeof e.name=="string"&&te.hasOwnProperty(e.name)){var r=te[e.name];typeof r=="string"&&(r={name:r}),e=je(r,e),e.name=r.name}else{if(typeof e=="string"&&/^[ \w \- ]+ \/ [ \w \- ]+ \+ xml $ /.test(e))return me("application/xml");if(typeof e=="string"&&/^[ \w \- ]+ \/ [ \w \- ]+ \+ json $ /.test(e))return me("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Te(e,r){r=me(r);var s=z[r.name];if(!s)return Te(e,"text/plain");var o=s(e,r);if(Oe.hasOwnProperty(r.name)){var l=Oe[r.name];for(var g in l){if(!l.hasOwnProperty(g))continue;o.hasOwnProperty(g)&&(o["_"+g]=o[g]),o[g]=l[g]}}if(o.name=r.name,r.helperType&&(o.helperType=r.helperType),r.modeProps)for(var w in r.modeProps)o[w]=r.modeProps[w];return o}var Oe={};function De(e,r){var s=Oe.hasOwnProperty(e)?Oe[e]:Oe[e]={};L(r,s)}function Ye(e,r){if(r===!0)return r;if(e.copyState)return e.copyState(r);var s={};for(var o in r){var l=r[o];l instanceof Array&&(l=l.concat([])),s[o]=l}return s}function xt(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 gt(e,r,s){return e.startState?e.startState(r,s):!0}var U=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};U.prototype.eol=function(){return this.pos>=this.string.length},U.prototype.sol=function(){return this.pos==this.lineStart},U.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},U.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},U.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},U.prototype.eatWhile=function(e){for(var r=this.pos;this.eat(e););return this.pos>r},U.prototype.eatSpace=function(){for(var e=this.pos;/[ \s \u 00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},U.prototype.skipToEnd=function(){this.pos=this.string.length},U.prototype.skipTo=function(e){var r=this.string.indexOf(e,this.pos);if(r>-1)return this.pos=r,!0},U.prototype.backUp=function(e){this.pos-=e},U.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=xe(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?xe(this.string,this.lineStart,this.tabSize):0)},U.prototype.indentation=function(){return xe(this.string,null,this.tabSize)-(this.lineStart?xe(this.string,this.lineStart,this.tabSize):0)},U.prototype.match=function(e,r,s){if(typeof e=="string"){var o=function(w){return s?w.toLowerCase():w},l=this.string.substr(this.pos,e.length);if(o(l)==o(e))return r!==!1&&(this.pos+=e.length),!0}else{var g=this.string.slice(this.pos).match(e);return g&&g.index>0?null:(g&&r!==!1&&(this.pos+=g[0].length),g)}},U.prototype.current=function(){return this.string.slice(this.start,this.pos)},U.prototype.hideFirstChars=function(e,r){this.lineStart+=e;try{return r()}finally{this.lineStart-=e}},U.prototype.lookAhead=function(e){var r=this.lineOracle;return r&&r.lookAhead(e)},U.prototype
` ?(_e= $ .appendChild(k("span",de[0]==" \r "?"␍":"","cm-invalidchar")),_e.setAttribute("cm-text",de[0]),e.col+=1):(_e=e.cm.options.specialCharPlaceholder(de[0]),_e.setAttribute("cm-text",de[0]),a&&d<9? $ .appendChild(k("span",[_e])): $ .appendChild(_e),e.col+=1);e.map.push(e.pos,e.pos+1,_e),e.pos++}}if(e.trailingSpace=_.charCodeAt(r.length-1)==32,s||o||l||T||g||w){var Ze=s||"";o&&(Ze+=o),l&&(Ze+=l);var Ue=k("span",[ $ ],Ze,g);if(w)for(var et in w)w.hasOwnProperty(et)&&et!="style"&&et!="class"&&Ue.setAttribute(et,w[et]);return e.content.appendChild(Ue)}e.content.appendChild( $ )}function Rv(e,r){if(e.length>1&&!/ /.test(e))return e;for(var s=r,o="",l=0;l<e.length;l++){var g=e.charAt(l);g==" "&&s&&(l==e.length-1||e.charCodeAt(l+1)==32)&&(g=" "),o+=g,s=g==" "}return o}function Ov(e,r){return function(s,o,l,g,w,_,A){l=l?l+" cm-force-border":"cm-force-border";for(var T=s.pos, $ =T+o.length;;){for(var Q=void 0,de=0;de<r.length&&!(Q=r[de],Q.to>T&&Q.from<=T);de++);if(Q.to>= $ )return e(s,o,l,g,w,_,A);e(s,o.slice(0,Q.to-T),l,g,null,_,A),g=null,o=o.slice(Q.to-T),T=Q.to}}}function Ql(e,r,s,o){var l=!o&&s.widgetNode;l&&e.map.push(e.pos,e.pos+r,l),!o&&e.cm.display.input.needsContentAttribute&&(l||(l=e.content.appendChild(document.createElement("span"))),l.setAttribute("cm-marker",s.id)),l&&(e.cm.display.input.setUneditable(l),e.content.appendChild(l)),e.pos+=r,e.trailingSpace=!1}function Pv(e,r,s){var o=e.markedSpans,l=e.text,g=0;if(!o){for(var w=1;w<s.length;w+=2)r.addToken(r,l.slice(g,g=s[w]),Yl(s[w+1],r.cm.options));return}for(var _=l.length,A=0,T=1, $ ="",Q,de,se=0,we,_e,Re,qe,Ze;;){if(se==A){we=_e=Re=de="",Ze=null,qe=null,se=Infinity;for(var Ue=[],et=void 0,ct=0;ct<o.length;++ct){var ut=o[ct],yt=ut.marker;if(yt.type=="bookmark"&&ut.from==A&&yt.widgetNode)Ue.push(yt);else if(ut.from<=A&&(ut.to==null||ut.to>A||yt.collapsed&&ut.to==A&&ut.from==A)){if(ut.to!=null&&ut.to!=A&&se>ut.to&&(se=ut.to,_e=""),yt.className&&(we+=" "+yt.className),yt.css&&(de=(de?de+";":"")+yt.css),yt.startStyle&&ut.from==A&&(Re+=" "+yt.startStyle),yt.endStyle&&ut.to==se&&(et||(et=[])).push(yt.endStyle,ut.to),yt.title&&((Ze||(Ze={})).title=yt.title),yt.attributes)for(var Mt in yt.attributes)(Ze||(Ze={}))[Mt]=yt.attributes[Mt];yt.collapsed&&(!qe||qa(qe.marker,yt)<0)&&(qe=ut)}else ut.from>A&&se>ut.from&&(se=ut.from)}if(et)for(var rr=0;rr<et.length;rr+=2)et[rr+1]==se&&(_e+=" "+et[rr]);if(!qe||qe.from==A)for(var Bt=0;Bt<Ue.length;++Bt)Ql(r,0,Ue[Bt]);if(qe&&(qe.from||0)==A){if(Ql(r,(qe.to==null?_+1:qe.to)-A,qe.marker,qe.from==null),qe.to==null)return;qe.to==A&&(qe=!1)}}if(A>=_)break;for(var Tr=Math.min(_,se);;){if( $ ){var xr=A+ $ .length;if(!qe){var Kt=xr>Tr? $ .slice(0,Tr-A): $ ;r.addToken(r,Kt,Q?Q+we:we,Re,A+Kt.length==se?_e:"",de,Ze)}if(xr>=Tr){ $ = $ .slice(Tr-A),A=Tr;break}A=xr,Re=""} $ =l.slice(g,g=s[T++]),Q=Yl(s[T++],r.cm.options)}}}function Jl(e,r,s){this.line=r,this.rest=Av(r),this.size=this.rest?We(Pe(this.rest))-s+1:1,this.node=this.text=null,this.hidden=hn(e,r)}function So(e,r,s){for(var o=[],l,g=r;g<s;g=l){var w=new Jl(e.doc,ae(e.doc,g),g);l=g+w.size,o.push(w)}return o}var Hn=null;function Nv(e){Hn?Hn.ops.push(e):e.ownsGroup=Hn={ops:[e],delayedCallbacks:[]}}function zv(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 l=e.ops[o];if(l.cursorActivityHandlers)for(;l.cursorActivityCalled<l.cursorActivityHandlers.length;)l.cursorActivityHandlers[l.cursorActivityCalled++].call(null,l.cm)}}while(s<r.length)}function Bv(e,r){var s=e.ownsGroup;if(!s)return;try{zv(s)}finally{Hn=null,r(s)}}var Ci=null;function ar(e,r){var s=Ft(e,r);if(!s.length)return;var o=Array.prototype.slice.call(arguments,2),l;Hn?l=Hn.delayedCallbacks:Ci?l=Ci:(l=Ci=[],setTimeout(jv,0));for(var g=function(_){l.push(function(){return s[_].apply(null,o)})},w=0;w<s.length;++w)g(w)}function jv(){var e=Ci;Ci=null;for(var r=0;r<e.length;++r)e[r]()}function eu(e,r,s,o){for(var l=0;l<r.changes.length;l++){var g=r.changes[l];g=="text"?Uv(e,r):g=="gutter"?ru(e,r,s,o):g=="class"? $ a(e,r):g=="widget"&&Hv(e,r,o)}r.changes=null}function _i(e){return e.node==e.text&&(e.node=
2021-04-09 16:18:32 -04:00
top : ` +et+"px; width: "+(ct==null?A-Ue:ct)+ ` px ;
2021-04-19 17:26:19 -04:00
height : ` +(ut-et)+"px"))}function Q(Ue,et,ct){var ut=ae(l,Ue),yt=ut.text.length,Mt,rr;function Bt(Kt,kr){return Ya(e,ee(Ue,Kt),"div",ut,kr)}function Tr(Kt,kr,sr){var Xt=vu(e,ut,null,Kt),Vt=kr=="ltr"==(sr=="after")?"left":"right",jt=sr=="after"?Xt.begin:Xt.end-(/ \s /.test(ut.text.charAt(Xt.end-1))?2:1);return Bt(jt,Vt)[Vt]}var xr=Et(ut,l.direction);return He(xr,et||0,ct==null?yt:ct,function(Kt,kr,sr,Xt){var Vt=sr=="ltr",jt=Bt(Kt,Vt?"left":"right"),Sr=Bt(kr-1,Vt?"right":"left"),oi=et==null&&Kt==0,xn=ct==null&&kr==yt,cr=Xt==0,Xr=!xr||Xt==xr.length-1;if(Sr.top-jt.top<=3){var nr=(T?oi:xn)&&cr,Ts=(T?xn:oi)&&Xr,ln=nr?_:(Vt?jt:Sr).left,Rn=Ts?A:(Vt?Sr:jt).right; $ (ln,jt.top,Rn-ln,jt.bottom)}else{var On,mr,ai,Ds;Vt?(On=T&&oi&&cr?_:jt.left,mr=T?A:Tr(Kt,sr,"before"),ai=T?_:Tr(kr,sr,"after"),Ds=T&&xn&&Xr?A:Sr.right):(On=T?Tr(Kt,sr,"before"):_,mr=!T&&oi&&cr?A:jt.right,ai=!T&&xn&&Xr?_:Sr.left,Ds=T?Tr(kr,sr,"after"):A), $ (On,jt.top,mr-On,jt.bottom),jt.bottom<Sr.top&& $ (_,jt.bottom,null,Sr.top), $ (ai,Sr.top,Ds-ai,Sr.bottom)}(!Mt||Ao(jt,Mt)<0)&&(Mt=jt),Ao(Sr,Mt)<0&&(Mt=Sr),(!rr||Ao(jt,rr)<0)&&(rr=jt),Ao(Sr,rr)<0&&(rr=Sr)}),{start:Mt,end:rr}}var de=r.from(),se=r.to();if(de.line==se.line)Q(de.line,de.ch,se.ch);else{var we=ae(l,de.line),_e=ae(l,se.line),Re=Gr(we)==Gr(_e),qe=Q(de.line,de.ch,Re?we.text.length+1:null).end,Ze=Q(se.line,Re?0:null,se.ch).start;Re&&(qe.top<Ze.top-2?( $ (qe.right,qe.top,null,qe.bottom), $ (_,Ze.top,Ze.left,Ze.bottom)): $ (qe.right,qe.top,Ze.left-qe.right,qe.bottom)),qe.bottom<Ze.top&& $ (_,qe.bottom,null,Ze.top)}s.appendChild(g)}function ns(e){if(!e.state.focused)return;var r=e.display;clearInterval(r.blinker);var s=!0;r.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?r.blinker=setInterval(function(){e.hasFocus()||Kn(e),r.cursorDiv.style.visibility=(s=!s)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(r.cursorDiv.style.visibility="hidden")}function ku(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||os(e))}function is(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Kn(e))},100)}function os(e,r){if(e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly=="nocursor")return;e.state.focused||(ht(e,"focus",e,r),e.state.focused=!0,P(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()),ns(e)}function Kn(e,r){if(e.state.delayingBlurEvent)return;e.state.focused&&(ht(e,"blur",e,r),e.state.focused=!1,Y(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150)}function To(e){for(var r=e.display,s=r.lineDiv.offsetTop,o=0;o<r.view.length;o++){var l=r.view[o],g=e.options.lineWrapping,w=void 0,_=0;if(l.hidden)continue;if(a&&d<8){var A=l.node.offsetTop+l.node.offsetHeight;w=A-s,s=A}else{var T=l.node.getBoundingClientRect();w=T.bottom-T.top,!g&&l.text.firstChild&&(_=l.text.firstChild.getBoundingClientRect().right-T.left-1)}var $ =l.line.height-w;if(( $ >.005|| $ <-.005)&&(Ie(l.line,w),Su(l.line),l.rest))for(var Q=0;Q<l.rest.length;Q++)Su(l.rest[Q]);if(_>e.display.sizerWidth){var de=Math.ceil(_/Gn(e.display));de>e.display.maxLineLength&&(e.display.maxLineLength=de,e.display.maxLine=l.line,e.display.maxLineChanged=!0)}}}function Su(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 l=s&&s.bottom!=null?s.bottom:o+e.wrapper.clientHeight,g=Ve(r,o),w=Ve(r,l);if(s&&s.ensure){var _=s.ensure.from.line,A=s.ensure.to.line;_<g?(g=_,w=Ve(r,on(ae(r,_))+e.wrapper.clientHeight)):Math.min(A,r.lastLine())>=w&&(g=Ve(r,on(ae(r,A))-e.wrapper.clientHeight),w=A)}return{from:g,to:Math.max(w,g+1)}}function ry(e,r){if(wt(e,"scrollCursorIntoView"))return;var s=e.display,o=s.si
2021-04-09 16:18:32 -04:00
top : ` +(r.top-s.viewOffset-Eo(e.display))+ ` px ;
height : ` +(r.bottom-r.top+Kr(e)+s.barHeight)+ ` px ;
2021-04-19 17:26:19 -04:00
left : ` +r.left+"px; width: "+Math.max(2,r.right-r.left)+"px;");e.display.lineSpace.appendChild(g),g.scrollIntoView(l),e.display.lineSpace.removeChild(g)}}function ny(e,r,s,o){o==null&&(o=0);var l;!e.options.lineWrapping&&r==s&&(r=r.ch?ee(r.line,r.sticky=="before"?r.ch-1:r.ch,"after"):r,s=r.sticky=="before"?ee(r.line,r.ch+1,"before"):r);for(var g=0;g<5;g++){var w=!1,_=jr(e,r),A=!s||s==r?_:jr(e,s);l={left:Math.min(_.left,A.left),top:Math.min(_.top,A.top)-o,right:Math.max(_.left,A.left),bottom:Math.max(_.bottom,A.bottom)+o};var T=as(e,l), $ =e.doc.scrollTop,Q=e.doc.scrollLeft;if(T.scrollTop!=null&&(Li(e,T.scrollTop),Math.abs(e.doc.scrollTop- $ )>1&&(w=!0)),T.scrollLeft!=null&&(In(e,T.scrollLeft),Math.abs(e.doc.scrollLeft-Q)>1&&(w=!0)),!w)break}return l}function iy(e,r){var s=as(e,r);s.scrollTop!=null&&Li(e,s.scrollTop),s.scrollLeft!=null&&In(e,s.scrollLeft)}function as(e,r){var s=e.display,o= $ n(e.display);r.top<0&&(r.top=0);var l=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:s.scroller.scrollTop,g=Ka(e),w={};r.bottom-r.top>g&&(r.bottom=r.top+g);var _=e.doc.height+Ga(s),A=r.top<o,T=r.bottom>_-o;if(r.top<l)w.scrollTop=A?0:r.top;else if(r.bottom>l+g){var $ =Math.min(r.top,(T?_:r.bottom)-g); $ !=l&&(w.scrollTop= $ )}var Q=e.options.fixedGutter?0:s.gutters.offsetWidth,de=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:s.scroller.scrollLeft-Q,se=_n(e)-s.gutters.offsetWidth,we=r.right-r.left>se;return we&&(r.right=r.left+se),r.left<10?w.scrollLeft=0:r.left<de?w.scrollLeft=Math.max(0,r.left+Q-(we?0:10)):r.right>se+de-3&&(w.scrollLeft=r.right+(we?0:10)-se),w}function ss(e,r){if(r==null)return;Io(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+r}function Vn(e){Io(e);var r=e.getCursor();e.curOp.scrollToPos={from:r,to:r,margin:e.options.cursorScrollMargin}}function Ii(e,r,s){(r!=null||s!=null)&&Io(e),r!=null&&(e.curOp.scrollLeft=r),s!=null&&(e.curOp.scrollTop=s)}function oy(e,r){Io(e),e.curOp.scrollToPos=r}function Io(e){var r=e.curOp.scrollToPos;if(r){e.curOp.scrollToPos=null;var s=mu(e,r.from),o=mu(e,r.to);Eu(e,s,o,r.margin)}}function Eu(e,r,s,o){var l=as(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});Ii(e,l.scrollLeft,l.scrollTop)}function Li(e,r){if(Math.abs(e.doc.scrollTop-r)<2)return;i||us(e,{top:r}),Cu(e,r,!0),i&&us(e),Ri(e,100)}function Cu(e,r,s){if(r=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,r)),e.display.scroller.scrollTop==r&&!s)return;e.doc.scrollTop=r,e.display.scrollbars.setScrollTop(r),e.display.scroller.scrollTop!=r&&(e.display.scroller.scrollTop=r)}function In(e,r,s,o){if(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)return;e.doc.scrollLeft=r,Iu(e),e.display.scroller.scrollLeft!=r&&(e.display.scroller.scrollLeft=r),e.display.scrollbars.setScrollLeft(r)}function Fi(e){var r=e.display,s=r.gutters.offsetWidth,o=Math.round(e.doc.height+Ga(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+Kr(e)+r.barHeight,nativeBarWidth:r.nativeBarWidth,gutterWidth:s}}var Ln=function(e,r,s){this.cm=s;var o=this.vert=k("div",[k("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),l=this.horiz=k("div",[k("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");o.tabIndex=l.tabIndex=-1,e(o),e(l),st(o,"scroll",function(){o.clientHeight&&r(o.scrollTop,"vertical")}),st(l,"scroll",function(){l.clientWidth&&r(l.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,a&&d<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ln.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 l=e.viewHeight-(
` },setDirection:tr(function(e){if(e!="rtl"&&(e="ltr"),e==this.direction)return;this.direction=e,this.iter(function(r){return r.order=null}),this.cm&&xy(this.cm)})}),wr.prototype.eachLine=wr.prototype.iter;var sc=0;function Ry(e){var r=this;if(lc(r),wt(r,e)||an(r.display,e))return;kt(e),a&&(sc=+new Date);var s=Tn(r,e,!0),o=e.dataTransfer.files;if(!s||r.isReadOnly())return;if(o&&o.length&&window.FileReader&&window.File)for(var l=o.length,g=Array(l),w=0,_=function(){++w==l&&er(r,function(){s=dt(r.doc,s);var se={from:s,to:s,text:r.doc.splitLines(g.filter(function(we){return we!=null}).join(r.doc.lineSeparator())),origin:"paste"};Qn(r.doc,se),Gu(r.doc,gn(dt(r.doc,s),dt(r.doc,vn(se))))})()},A=function(se,we){if(r.options.allowDropFileTypes&&be(r.options.allowDropFileTypes,se.type)==-1){_();return}var _e=new FileReader;_e.onerror=function(){return _()},_e.onload=function(){var Re=_e.result;if(/[ \x 00- \x 08 \x 0e- \x 1f]{2}/.test(Re)){_();return}g[we]=Re,_()},_e.readAsText(se)},T=0;T<o.length;T++)A(o[T],T);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 $ =e.dataTransfer.getData("Text");if( $ ){var Q;if(r.state.draggingText&&!r.state.draggingText.copy&&(Q=r.listSelections()),Po(r.doc,gn(s,s)),Q)for(var de=0;de<Q.length;++de)Jn(r.doc,"",Q[de].anchor,Q[de].head,"drag");r.replaceSelection( $ ,"around","paste"),r.display.input.focus()}}catch(se){}}}function Oy(e,r){if(a&&(!e.state.draggingText||+new Date-sc<100)){vr(r);return}if(wt(e,r)||an(e.display,r))return;if(r.dataTransfer.setData("Text",e.getSelection()),r.dataTransfer.effectAllowed="copyMove",r.dataTransfer.setDragImage&&!v){var s=k("img",null,null,"position: fixed; left: 0; top: 0;");s.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",m&&(s.width=s.height=1,e.display.wrapper.appendChild(s),s._top=s.offsetTop),r.dataTransfer.setDragImage(s,0,0),m&&s.parentNode.removeChild(s)}}function Py(e,r){var s=Tn(e,r);if(!s)return;var o=document.createDocumentFragment();xu(e,s,o),e.display.dragCursor||(e.display.dragCursor=k("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),K(e.display.dragCursor,o)}function lc(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function uc(e){if(!document.getElementsByClassName)return;for(var r=document.getElementsByClassName("CodeMirror"),s=[],o=0;o<r.length;o++){var l=r[o].CodeMirror;l&&s.push(l)}s.length&&s[0].operation(function(){for(var g=0;g<s.length;g++)e(s[g])})}var cc=!1;function Ny(){if(cc)return;zy(),cc=!0}function zy(){var e;st(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,uc(By)},100))}),st(window,"blur",function(){return uc(Kn)})}function By(e){var r=e.display;r.cachedCharWidth=r.cachedTextHeight=r.cachedPaddingH=null,r.scrollbarsClipped=!1,e.setSize()}for(var wn={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 "},Hi=0;Hi<10;Hi++)wn[Hi+48]=wn[Hi+96]=String(Hi);for(var Bo=65;Bo<=90;Bo++)wn[Bo]=String.fromCharCode(Bo);for(var Wi=1;Wi<=12;Wi++)wn[Wi+111]=wn[Wi+63235]=" F "+Wi;var sn={};sn.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 " } , sn . pc
` ,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function pc(e,r){var s=ae(e.doc,r),o=Gr(s);return o!=s&&(r=We(o)),xs(!0,e,o,r,1)}function Hy(e,r){var s=ae(e.doc,r),o=_v(s);return o!=s&&(r=We(o)),xs(!0,e,s,r,-1)}function mc(e,r){var s=pc(e,r.line),o=ae(e.doc,s.line),l=Et(o,e.doc.direction);if(!l||l[0].level==0){var g=Math.max(s.ch,o.text.search(/ \S /)),w=r.line==s.line&&r.ch<=g&&r.ch;return ee(s.line,w?0:g,s.sticky)}return s}function qo(e,r,s){if(typeof r=="string"&&(r= $ i[r],!r))return!1;e.display.input.ensurePolled();var o=e.display.shift,l=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),s&&(e.display.shift=!1),l=r(e)!=Xe}finally{e.display.shift=o,e.state.suppressEdits=!1}return l}function Wy(e,r,s){for(var o=0;o<e.state.keyMaps.length;o++){var l=ti(r,e.state.keyMaps[o],s,e);if(l)return l}return e.options.extraKeys&&ti(r,e.options.extraKeys,s,e)||ti(r,e.options.keyMap,s,e)}var $ y=new Se;function Gi(e,r,s,o){var l=e.state.keySeq;if(l){if(dc(r))return"handled";if(/ \' $ /.test(r)?e.state.keySeq=null: $ y.set(50,function(){e.state.keySeq==l&&(e.state.keySeq=null,e.display.input.reset())}),gc(e,l+" "+r,s,o))return!0}return gc(e,r,s,o)}function gc(e,r,s,o){var l=Wy(e,r,o);return l=="multi"&&(e.state.keySeq=r),l=="handled"&&ar(e,"keyHandled",e,r,s),(l=="handled"||l=="multi")&&(kt(s),ns(e)),!!l}function vc(e,r){var s=hc(r,!0);return s?r.shiftKey&&!e.state.keySeq?Gi(e,"Shift-"+s,r,function(o){return qo(e,o,!0)})||Gi(e,s,r,function(o){if(typeof o=="string"?/^go[A-Z]/.test(o):o.motion)return qo(e,o)}):Gi(e,s,r,function(o){return qo(e,o)}):!1}function Gy(e,r,s){return Gi(e,"'"+s+"'",r,function(o){return qo(e,o,!0)})}var ks=null;function yc(e){var r=this;if(e.target&&e.target!=r.display.input.getField())return;if(r.curOp.focus=I(),wt(r,e))return;a&&d<11&&e.keyCode==27&&(e.returnValue=!1);var s=e.keyCode;r.display.shift=s==16||e.shiftKey;var o=vc(r,e);m&&(ks=o?s:null,!o&&s==88&&!Z&&(C?e.metaKey:e.ctrlKey)&&r.replaceSelection("",null,"cut")),i&&!C&&!o&&s==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),s==18&&!/ \b CodeMirror-crosshair \b /.test(r.display.lineDiv.className)&&Ky(r)}function Ky(e){var r=e.display.lineDiv;P(r,"CodeMirror-crosshair");function s(o){(o.keyCode==18||!o.altKey)&&(Y(r,"CodeMirror-crosshair"),Je(document,"keyup",s),Je(document,"mouseover",s))}st(document,"keyup",s),st(document,"mouseover",s)}function bc(e){e.keyCode==16&&(this.doc.sel.shift=!1),wt(this,e)}function wc(e){var r=this;if(e.target&&e.target!=r.display.input.getField())return;if(an(r.display,e)||wt(r,e)||e.ctrlKey&&!e.altKey||C&&e.metaKey)return;var s=e.keyCode,o=e.charCode;if(m&&s==ks){ks=null,kt(e);return}if(m&&(!e.which||e.which<10)&&vc(r,e))return;var l=String.fromCharCode(o==null?s:o);if(l==" \b ")return;if(Gy(r,e,l))return;r.display.input.onKeyPress(e)}var Vy=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+Vy>e&&pe(r,this.pos)==0&&s==this.button};var Ki,Vi;function Xy(e,r){var s=+new Date;return Vi&&Vi.compare(s,e,r)?(Ki=Vi=null,"triple"):Ki&&Ki.compare(s,e,r)?(Vi=new Ss(s,e,r),Ki=null,"double"):(Ki=new Ss(s,e,r),Vi=null,"single")}function xc(e){var r=this,s=r.display;if(wt(r,e)||s.activeTouch&&s.input.supportsTouch())return;if(s.input.ensurePolled(),s.shift=e.shiftKey,an(s,e)){f||(s.scroller.draggable=!1,setTimeout(function(){return s.scroller.draggable=!0},100));return}if(Es(r,e))return;var o=Tn(r,e),l=or(e),g=o?Xy(o,l):"single";if(window.focus(),l==1&&r.state.selectingText&&r.state.selectingText(e),o&&Yy(r,l,o,g,e))return;l==1?o?Qy(r,o,g,e):Nt(e)==s.scroller&&kt(e):l==2?(o&&Oo(r.doc,o),setTimeout(function(){return s.input.focus()},20)):l==3&&(J?r.display.input.onContextMenu(e):is(r))}function Yy(e,r,s,o,l){var g="Click";return o=="double"?g="Double"+g:o=="triple"&&(g="Triple"+g),g=(r==1?"Left":r==2?"Middle":"Right")+g,Gi(e,fc(g,l),l,function(w){if(typeof w=="string"&&(w= $ i[w]),!w)return!1;var _=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),_=w(e,s)!=Xe}finally{e.state.suppressEdits=!1}return _})}function Zy(e,r,s){var o=e.getOptio
2021-04-09 16:18:32 -04:00
` )==r){if(o.ranges.length%Ur.text.length==0){T=[];for(var $ =0; $ <Ur.text.length; $ ++)T.push(g.splitLines(Ur.text[ $ ]))}}else A.length==o.ranges.length&&e.options.pasteLinesPerSelection&&(T=Le(A,function(qe){return[qe]}));for(var Q=e.curOp.updateInput,de=o.ranges.length-1;de>=0;de--){var se=o.ranges[de],we=se.from(),_e=se.to();se.empty()&&(s&&s>0?we=ee(we.line,we.ch-s):e.state.overwrite&&!_?_e=ee(_e.line,Math.min(ae(g,_e.line).text.length,_e.ch+Pe(A).length)):_&&Ur&&Ur.lineWise&&Ur.text.join( `
` )==A.join( `
2021-04-19 17:26:19 -04:00
` )&&(we=_e=ee(we.line,0)));var Re={from:we,to:_e,text:T?T[de%T.length]:A,origin:l||(_?"paste":e.state.cutIncoming>w?"cut":"+input")};Qn(e.doc,Re),ar(e,"inputRead",e,Re)}r&&!_&&Tc(e,r),Vn(e),e.curOp.updateInput<2&&(e.curOp.updateInput=Q),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Ac(e,r){var s=e.clipboardData&&e.clipboardData.getData("Text");if(s)return e.preventDefault(),!r.isReadOnly()&&!r.options.disableInput&&Ar(r,function(){return _s(r,s,0,null,"paste")}),!0}function Tc(e,r){if(!e.options.electricChars||!e.options.smartIndent)return;for(var s=e.doc.sel,o=s.ranges.length-1;o>=0;o--){var l=s.ranges[o];if(l.head.ch>100||o&&s.ranges[o-1].head.line==l.head.line)continue;var g=e.getModeAt(l.head),w=!1;if(g.electricChars){for(var _=0;_<g.electricChars.length;_++)if(r.indexOf(g.electricChars.charAt(_))>-1){w=Xi(e,l.head.line,"smart");break}}else g.electricInput&&(g.electricInput.test(ae(e.doc,l.head.line).text.slice(0,l.head.ch))&&(w=Xi(e,l.head.line,"smart")));w&&ar(e,"electricInput",e,l.head.line)}}function Dc(e){for(var r=[],s=[],o=0;o<e.doc.sel.ranges.length;o++){var l=e.doc.sel.ranges[o].head.line,g={anchor:ee(l,0),head:ee(l+1,0)};s.push(g),r.push(e.getRange(g.anchor,g.head))}return{text:r,ranges:s}}function Ic(e,r,s,o){e.setAttribute("autocorrect",s?"":"off"),e.setAttribute("autocapitalize",o?"":"off"),e.setAttribute("spellcheck",!!r)}function Lc(){var e=k("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),r=k("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return f?e.style.width="1000px":e.setAttribute("wrap","off"),E&&(e.style.border="1px solid black"),Ic(e),r}function sb(e){var r=e.optionHandlers,s=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(o,l){var g=this.options,w=g[o];if(g[o]==l&&o!="mode")return;g[o]=l,r.hasOwnProperty(o)&&er(this,r[o])(this,l,w),ht(this,"optionChange",this,o)},getOption:function(o){return this.options[o]},getDoc:function(){return this.doc},addKeyMap:function(o,l){this.state.keyMaps[l?"push":"unshift"](jo(o))},removeKeyMap:function(o){for(var l=this.state.keyMaps,g=0;g<l.length;++g)if(l[g]==o||l[g].name==o)return l.splice(g,1),!0},addOverlay:pr(function(o,l){var g=o.token?o:e.getMode(this.options,o);if(g.startState)throw new Error("Overlays may not be stateful.");Be(this.state.overlays,{mode:g,modeSpec:o,opaque:l&&l.opaque,priority:l&&l.priority||0},function(w){return w.priority}),this.state.modeGen++,br(this)}),removeOverlay:pr(function(o){for(var l=this.state.overlays,g=0;g<l.length;++g){var w=l[g].modeSpec;if(w==o||typeof o=="string"&&w.name==o){l.splice(g,1),this.state.modeGen++,br(this);return}}}),indentLine:pr(function(o,l,g){typeof l!="string"&&typeof l!="number"&&(l==null?l=this.options.smartIndent?"smart":"prev":l=l?"add":"subtract"),F(this.doc,o)&&Xi(this,o,l,g)}),indentSelection:pr(function(o){for(var l=this.doc.sel.ranges,g=-1,w=0;w<l.length;w++){var _=l[w];if(_.empty())_.head.line>g&&(Xi(this,_.head.line,o,!0),g=_.head.line,w==this.doc.sel.primIndex&&Vn(this));else{var A=_.from(),T=_.to(), $ =Math.max(g,A.line);g=Math.min(this.lastLine(),T.line-(T.ch?0:1))+1;for(var Q= $ ;Q<g;++Q)Xi(this,Q,o);var de=this.doc.sel.ranges;A.ch==0&&l.length==de.length&&de[w].from().ch>0&&ys(this.doc,w,new _t(A,de[w].to()),nt)}}}),getTokenAt:function(o,l){return Bl(this,o,l)},getLineTokens:function(o,l){return Bl(this,ee(o),l,!0)},getTokenTypeAt:function(o){o=dt(this.doc,o);var l=Pl(this,ae(this.doc,o.line)),g=0,w=(l.length-1)/2,_=o.ch,A;if(_==0)A=l[2];else for(;;){var T=g+w>>1;if((T?l[T*2-1]:0)>=_)w=T;else if(l[T*2+1]<_)g=T+1;else{A=l[T*2+2];break}}var $ =A?A.indexOf("overlay "):-1;return $ <0?A: $ ==0?null:A.slice(0, $ -1)},getModeAt:function(o){var l=this.doc.mode;return l.innerMode?e.innerMode(l,this.getTokenAt(o).state).mode:l},getHelper:function(o,l){return this.getHelpers(o,l)[0]},getHelpers:function(o,l){var g=[];if(!s.hasOwnProperty(l))return g;var w=s[l],_=this.getModeAt(o);if(typeof _[l]=="string")w[_[l]]&&g.p
2021-04-09 16:18:32 -04:00
` ,Re=V(_e,se)?"w":de&&_e== `
` ?"n":!de||/ \s /.test(_e)?null:"p";if(de&&!we&&!Re&&(Re="s"),Q&&Q!=Re){s<0&&(s=1, $ (),r.sticky="after");break}if(Re&&(Q=Re),s>0&&! $ (!we))break}var qe=No(e,r,g,w,!0);return ge(g,qe)&&(qe.hitSide=!0),qe}function Fc(e,r,s,o){var l=e.doc,g=r.left,w;if(o=="page"){var _=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),A=Math.max(_-.5* $ n(e.display),3);w=(s>0?r.bottom:r.top)+s*A}else o=="line"&&(w=s>0?r.bottom+3:r.top-3);for(var T;!(T=Qa(e,g,w),!T.outside);){if(s<0?w<=0:w>=l.height){T.hitSide=!0;break}w+=s*5}return T}var Lt=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Se,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Lt.prototype.init=function(e){var r=this,s=this,o=s.cm,l=s.div=e.lineDiv;l.contentEditable=!0,Ic(l,o.options.spellcheck,o.options.autocorrect,o.options.autocapitalize);function g(_){for(var A=_.target;A;A=A.parentNode){if(A==l)return!0;if(/ \b CodeMirror-(?:line)?widget \b /.test(A.className))break}return!1}st(l,"paste",function(_){if(!g(_)||wt(o,_)||Ac(_,o))return;d<=11&&setTimeout(er(o,function(){return r.updateFromDOM()}),20)}),st(l,"compositionstart",function(_){r.composing={data:_.data,done:!1}}),st(l,"compositionupdate",function(_){r.composing||(r.composing={data:_.data,done:!1})}),st(l,"compositionend",function(_){r.composing&&(_.data!=r.composing.data&&r.readFromDOMSoon(),r.composing.done=!0)}),st(l,"touchstart",function(){return s.forceCompositionEnd()}),st(l,"input",function(){r.composing||r.readFromDOMSoon()});function w(_){if(!g(_)||wt(o,_))return;if(o.somethingSelected())Ho({lineWise:!1,text:o.getSelections()}),_.type=="cut"&&o.replaceSelection("",null,"cut");else if(o.options.lineWiseCopyCut){var A=Dc(o);Ho({lineWise:!0,text:A.text}),_.type=="cut"&&o.operation(function(){o.setSelections(A.ranges,0,nt),o.replaceSelection("",null,"cut")})}else return;if(_.clipboardData){_.clipboardData.clearData();var T=Ur.text.join( `
` );if(_.clipboardData.setData("Text",T),_.clipboardData.getData("Text")==T){_.preventDefault();return}}var $ =Lc(),Q= $ .firstChild;o.display.lineSpace.insertBefore( $ ,o.display.lineSpace.firstChild),Q.value=Ur.text.join( `
2021-04-19 17:26:19 -04:00
` );var de=document.activeElement;ke(Q),setTimeout(function(){o.display.lineSpace.removeChild( $ ),de.focus(),de==l&&s.showPrimarySelection()},50)}st(l,"copy",w),st(l,"cut",w)},Lt.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Lt.prototype.prepareSelection=function(){var e=wu(this.cm,!1);return e.focus=document.activeElement==this.div,e},Lt.prototype.showSelection=function(e,r){if(!e||!this.cm.display.view.length)return;(e.focus||r)&&this.showPrimarySelection(),this.showMultipleSelections(e)},Lt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Lt.prototype.showPrimarySelection=function(){var e=this.getSelection(),r=this.cm,s=r.doc.sel.primary(),o=s.from(),l=s.to();if(r.display.viewTo==r.display.viewFrom||o.line>=r.display.viewTo||l.line<r.display.viewFrom){e.removeAllRanges();return}var g=Wo(r,e.anchorNode,e.anchorOffset),w=Wo(r,e.focusNode,e.focusOffset);if(g&&!g.bad&&w&&!w.bad&&pe(zt(g,w),o)==0&&pe(vt(g,w),l)==0)return;var _=r.display.view,A=o.line>=r.display.viewFrom&&Mc(r,o)||{node:_[0].measure.map[2],offset:0},T=l.line<r.display.viewTo&&Mc(r,l);if(!T){var $ =_[_.length-1].measure,Q= $ .maps? $ .maps[ $ .maps.length-1]: $ .map;T={node:Q[Q.length-1],offset:Q[Q.length-2]-Q[Q.length-3]}}if(!A||!T){e.removeAllRanges();return}var de=e.rangeCount&&e.getRangeAt(0),se;try{se=B(A.node,A.offset,T.offset,T.node)}catch(we){}se&&(!i&&r.state.focused?(e.collapse(A.node,A.offset),se.collapsed||(e.removeAllRanges(),e.addRange(se))):(e.removeAllRanges(),e.addRange(se)),de&&e.anchorNode==null?e.addRange(de):i&&this.startGracePeriod()),this.rememberSelection()},Lt.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)},Lt.prototype.showMultipleSelections=function(e){K(this.cm.display.cursorDiv,e.cursors),K(this.cm.display.selectionDiv,e.selection)},Lt.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Lt.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var r=e.getRangeAt(0).commonAncestorContainer;return re(this.div,r)},Lt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Lt.prototype.blur=function(){this.div.blur()},Lt.prototype.getField=function(){return this.div},Lt.prototype.supportsTouch=function(){return!0},Lt.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)},Lt.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Lt.prototype.pollSelection=function(){if(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())return;var e=this.getSelection(),r=this.cm;if(x&&y&&this.cm.display.gutterSpecs.length&&lb(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(this.composing)return;this.rememberSelection();var s=Wo(r,e.anchorNode,e.anchorOffset),o=Wo(r,e.focusNode,e.focusOffset);s&&o&&Ar(r,function(){ur(r.doc,gn(s,o),nt),(s.bad||o.bad)&&(r.curOp.selectionChanged=!0)})},Lt.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(),l=s.to();if(o.ch==0&&o.line>e.firstLine()&&(o=ee(o.line-1,ae(e.doc,o.line-1).length)),l
2021-04-09 16:18:32 -04:00
` ),ke(l))}else return;w.type=="cut"&&(o.state.cutIncoming=+new Date)}st(l,"cut",g),st(l,"copy",g),st(e.scroller,"paste",function(w){if(an(e,w)||wt(o,w))return;if(!l.dispatchEvent){o.state.pasteIncoming=+new Date,s.focus();return}var _=new Event("paste");_.clipboardData=w.clipboardData,l.dispatchEvent(_)}),st(e.lineSpace,"selectstart",function(w){an(e,w)||kt(w)}),st(l,"compositionstart",function(){var w=o.getCursor("from");s.composing&&s.composing.range.clear(),s.composing={start:w,range:o.markText(w,o.getCursor("to"),{className:"CodeMirror-composing"})}}),st(l,"compositionend",function(){s.composing&&(s.poll(),s.composing.range.clear(),s.composing=null)})}, $ t.prototype.createField=function(e){this.wrapper=Lc(),this.textarea=this.wrapper.firstChild}, $ t.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")}, $ t.prototype.prepareSelection=function(){var e=this.cm,r=e.display,s=e.doc,o=wu(e);if(e.options.moveInputWithCursor){var l=jr(e,s.sel.primary().head,"div"),g=r.wrapper.getBoundingClientRect(),w=r.lineDiv.getBoundingClientRect();o.teTop=Math.max(0,Math.min(r.wrapper.clientHeight-10,l.top+w.top-g.top)),o.teLeft=Math.max(0,Math.min(r.wrapper.clientWidth-10,l.left+w.left-g.left))}return o}, $ t.prototype.showSelection=function(e){var r=this.cm,s=r.display;K(s.cursorDiv,e.cursors),K(s.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")}, $ t.prototype.reset=function(e){if(this.contextMenuPending||this.composing)return;var r=this.cm;if(r.somethingSelected()){this.prevInput="";var s=r.getSelection();this.textarea.value=s,r.state.focused&&ke(this.textarea),a&&d>=9&&(this.hasSelection=s)}else e||(this.prevInput=this.textarea.value="",a&&d>=9&&(this.hasSelection=null))}, $ t.prototype.getField=function(){return this.textarea}, $ t.prototype.supportsTouch=function(){return!1}, $ t.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!D||I()!=this.textarea))try{this.textarea.focus()}catch(e){}}, $ t.prototype.blur=function(){this.textarea.blur()}, $ t.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0}, $ t.prototype.receivedFocus=function(){this.slowPoll()}, $ t.prototype.slowPoll=function(){var e=this;if(this.pollingFast)return;this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})}, $ t.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)}, $ t.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 l=s.value;if(l==o&&!r.somethingSelected())return!1;if(a&&d>=9&&this.hasSelection===l||C&&/[ \u f700- \u f7ff]/.test(l))return r.display.input.reset(),!1;if(r.doc.sel==r.display.selForContextMenu){var g=l.charCodeAt(0);if(g==8203&&!o&&(o=" "),g==8666)return this.reset(),this.cm.execCommand("undo")}for(var w=0,_=Math.min(o.length,l.length);w<_&&o.charCodeAt(w)==l.charCodeAt(w);)++w;return Ar(r,function(){_s(r,l.slice(w),o.length-w,null,e.composing?"*compose":null),l.length>1e3||l.indexOf( `
` )>-1?s.value=e.prevInput="":e.prevInput=l,e.composing&&(e.composing.range.clear(),e.composing.range=r.markText(e.composing.start,r.getCursor("to"),{className:"CodeMirror-composing"}))}),!0}, $ t.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)}, $ t.prototype.onKeyPress=function(){a&&d>=9&&(this.hasSelection=null),this.fastPoll()}, $ t.prototype.onContextMenu=function(e){var r=this,s=r.cm,o=s.display,l=r.textarea;r.contextMenuPending&&r.contextMenuPending();var g=Tn(s,e),w=o.scroller.scrollTop;if(!g||m)return;var _=s.options.resetSelectionOnContextMenu;_&&s.doc.sel.contains(g)==-1&&er(s,ur)(s.doc,gn(g),nt);var A=l.style.cssText,T=r.wrapper.style.cssText, $ =r.wrapper.offsetParent.getBoundingClientRect();r.wrapper.style.cssText="position: static",l.style.cssText= ` position : absolute ; width : 30 px ; height : 30 px ;
top : ` +(e.clientY- $ .top-5)+"px; left: "+(e.clientX- $ .left-5)+ ` px ;
z - index : 1000 ; background : ` +(a?"rgba(255, 255, 255, .05)":"transparent")+ ` ;
2021-04-19 17:26:19 -04:00
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()||(l.value=r.prevInput=" "),r.contextMenuPending=se,o.selForContextMenu=s.doc.sel,clearTimeout(o.detectingSelectAll);function de(){if(l.selectionStart!=null){var _e=s.somethingSelected(),Re=" "+(_e?l.value:"");l.value="⇚",l.value=Re,r.prevInput=_e?"":" ",l.selectionStart=1,l.selectionEnd=Re.length,o.selForContextMenu=s.doc.sel}}function se(){if(r.contextMenuPending!=se)return;if(r.contextMenuPending=!1,r.wrapper.style.cssText=T,l.style.cssText=A,a&&d<9&&o.scrollbars.setScrollTop(o.scroller.scrollTop=w),l.selectionStart!=null){(!a||a&&d<9)&&de();var _e=0,Re=function(){o.selForContextMenu==s.doc.sel&&l.selectionStart==0&&l.selectionEnd>0&&r.prevInput==" "?er(s,Zu)(s):_e++<10?o.detectingSelectAll=setTimeout(Re,500):(o.selForContextMenu=null,o.input.reset())};o.detectingSelectAll=setTimeout(Re,200)}}if(a&&d>=9&&de(),J){vr(e);var we=function(){Je(window,"mouseup",we),setTimeout(se,20)};st(window,"mouseup",we)}else setTimeout(se,50)}, $ t.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e}, $ t.prototype.setUneditable=function(){}, $ t.prototype.needsContentAttribute=!1;function db(e,r){if(r=r?L(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=I();r.autofocus=s==e||e.getAttribute("autofocus")!=null&&s==document.body}function o(){e.value=_.getValue()}var l;if(e.form&&(st(e.form,"submit",o),!r.leaveSubmitMethodAlone)){var g=e.form;l=g.submit;try{var w=g.submit=function(){o(),g.submit=l,g.submit(),g.submit=w}}catch(A){}}r.finishInit=function(A){A.save=o,A.getTextArea=function(){return e},A.toTextArea=function(){A.toTextArea=isNaN,o(),e.parentNode.removeChild(A.getWrapperElement()),e.style.display="",e.form&&(Je(e.form,"submit",o),!r.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=l))}},e.style.display="none";var _=Pt(function(A){return e.parentNode.insertBefore(A,e.nextSibling)},r);return _}function fb(e){e.off=Je,e.on=st,e.wheelEventPixels=by,e.Doc=wr,e.splitLines=oe,e.countColumn=xe,e.findColumn=Qe,e.isWordChar=Ee,e.Pass=Xe,e.signal=ht,e.Line=Un,e.changeEnd=vn,e.scrollbarModel=Au,e.Pos=ee,e.cmpPos=pe,e.modes=z,e.mimeModes=te,e.resolveMode=me,e.getMode=Te,e.modeExtensions=Oe,e.extendMode=De,e.copyState=Ye,e.startState=gt,e.innerMode=xt,e.commands= $ i,e.keyMap=sn,e.keyName=hc,e.isModifierKey=dc,e.lookupKey=ti,e.normalizeKeyMap=qy,e.StringStream=U,e.SharedTextMarker=Ui,e.TextMarker=bn,e.LineWidget=qi,e.e_preventDefault=kt,e.e_stopPropagation=at,e.e_stop=vr,e.addClass=P,e.contains=re,e.rmClass=Y,e.keyNames=wn}nb(Pt),sb(Pt);var hb="iter insert remove copy getEditor constructor".split(" ");for(var $ o in wr.prototype)wr.prototype.hasOwnProperty( $ o)&&be(hb, $ o)<0&&(Pt.prototype[ $ o]=function(e){return function(){return e.apply(this.doc,arguments)}}(wr.prototype[ $ o]));return Ot(wr),Pt.inputStyles={textarea: $ t,contenteditable:Lt},Pt.defineMode=function(e){!Pt.defaults.mode&&e!="null"&&(Pt.defaults.mode=e),ce.apply(this,arguments)},Pt.defineMIME=ye,Pt.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Pt.defineMIME("text/plain","null"),Pt.defineExtension=function(e,r){Pt.prototype[e]=r},Pt.defineDocExtension=function(e,r){wr.prototype[e]=r},Pt.fromTextArea=db,fb(Pt),Pt.version="5.60.0",Pt})});var Ms=Me((Yi,Fs)=>{!function(n,t){typeof Yi=="object"&&typeof Fs=="object"?Fs.exports=t():typeof define=="function"&&define.amd?define([],t):typeof Yi=="object"?Yi.ClipboardJS=t():n.ClipboardJS=t()}(Yi,function(){return t={134:function(u,c,h){"use strict";h.d(c,{default:function(){return C}});var c=h(279),a=h.n(c),c=h(370),d=h.n(c),c=h(817),f=h.n(c);function p(N){return(p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(R){return typeof R}:function(R){return R&&typeof Symbol=="function"&&R.
2021-04-09 16:18:32 -04:00
` )&&(Y="(?: "+Y+")",K=" "+K,M++),R=new RegExp("^(?:"+Y+")",W)),S&&(R=new RegExp("^"+Y+" $ (?! \\ s)",W)),v&&(N=C.lastIndex),H=p.call(J?R:C,K),J?H?(H.input=H.input.slice(M),H[0]=H[0].slice(M),H.index=C.lastIndex,C.lastIndex+=H[0].length):C.lastIndex=0:v&&H&&(C.lastIndex=C.global?H.index+H[0].length:N),S&&H&&H.length>1&&y.call(H[0],R,function(){for(j=1;j<arguments.length-2;j++)arguments[j]===void 0&&(H[j]=void 0)}),H}),c.exports=m},7066:function(c,h,a){"use strict";var d=a(9670);c.exports=function(){var f=d(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,h,a){"use strict";var d=a(7293);function f(p,y){return RegExp(p,y)}h.UNSUPPORTED_Y=d(function(){var p=f("a","y");return p.lastIndex=2,p.exec("abcd")!=null}),h.BROKEN_CARET=d(function(){var p=f("^r","gy");return p.lastIndex=2,p.exec("str")!=null})},4488:function(c){c.exports=function(h){if(h==null)throw TypeError("Can't call method on "+h);return h}},3505:function(c,h,a){var d=a(7854),f=a(8880);c.exports=function(p,y){try{f(d,p,y)}catch(m){d[p]=y}return y}},6340:function(c,h,a){"use strict";var d=a(5005),f=a(3070),p=a(5112),y=a(9781),m=p("species");c.exports=function(v){var b=d(v),S=f.f;y&&b&&!b[m]&&S(b,m,{configurable:!0,get:function(){return this}})}},8003:function(c,h,a){var d=a(3070).f,f=a(6656),p=a(5112),y=p("toStringTag");c.exports=function(m,v,b){m&&!f(m=b?m:m.prototype,y)&&d(m,y,{configurable:!0,value:v})}},6200:function(c,h,a){var d=a(2309),f=a(9711),p=d("keys");c.exports=function(y){return p[y]||(p[y]=f(y))}},5465:function(c,h,a){var d=a(7854),f=a(3505),p="__core-js_shared__",y=d[p]||f(p,{});c.exports=y},2309:function(c,h,a){var d=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:d?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},6707:function(c,h,a){var d=a(9670),f=a(3099),p=a(5112),y=p("species");c.exports=function(m,v){var b=d(m).constructor,S;return b===void 0||(S=d(b)[y])==null?v:f(S)}},8710:function(c,h,a){var d=a(9958),f=a(4488),p=function(y){return function(m,v){var b=String(f(m)),S=d(v),E=b.length,x,D;return S<0||S>=E?y?"":void 0:(x=b.charCodeAt(S),x<55296||x>56319||S+1===E||(D=b.charCodeAt(S+1))<56320||D>57343?y?b.charAt(S):x:y?b.slice(S,S+2):(x-55296<<10)+(D-56320)+65536)}};c.exports={codeAt:p(!1),charAt:p(!0)}},3197:function(c){"use strict";var h=2147483647,a=36,d=1,f=26,p=38,y=700,m=72,v=128,b="-",S=/[^ \0 - \u 007E]/,E=/[. \u 3002 \u FF0E \u FF61]/g,x="Overflow: input needs wider integers to process",D=a-d,C=Math.floor,N=String.fromCharCode,R=function(W){for(var Y=[],M=0,K=W.length;M<K;){var k=W.charCodeAt(M++);if(k>=55296&&k<=56319&&M<K){var G=W.charCodeAt(M++);(G&64512)==56320?Y.push(((k&1023)<<10)+(G&1023)+65536):(Y.push(k),M--)}else Y.push(k)}return Y},H=function(W){return W+22+75*(W<26)},j=function(W,Y,M){var K=0;for(W=M?C(W/y):W>>1,W+=C(W/Y);W>D*f>>1;K+=a)W=C(W/D);return C(K+(D+1)*W/(W+p))},J=function(W){var Y=[];W=R(W);var M=W.length,K=v,k=0,G=m,B,re;for(B=0;B<W.length;B++)re=W[B],re<128&&Y.push(N(re));var I=Y.length,P=I;for(I&&Y.push(b);P<M;){var le=h;for(B=0;B<W.length;B++)re=W[B],re>=K&&re<le&&(le=re);var ke=P+1;if(le-K>C((h-k)/ke))throw RangeError(x);for(k+=(le-K)*ke,K=le,B=0;B<W.length;B++){if(re=W[B],re<K&&++k>h)throw RangeError(x);if(re==K){for(var q=k,L=a;;L+=a){var xe=L<=G?d:L>=G+f?f:L-G;if(q<xe)break;var Se=q-xe,be=a-xe;Y.push(N(H(xe+Se%be))),q=C(Se/be)}Y.push(N(H(q))),G=j(k,ke,P==I),k=0,++P}}++k,++K}return Y.join("")};c.exports=function(W){var Y=[],M=W.toLowerCase().replace(E,".").split("."),K,k;for(K=0;K<M.length;K++)k=M[K],Y.push(S.test(k)?"xn--"+J(k):k);return Y.join(".")}},6091:function(c,h,a){var d=a(7293),f=a(1361),p="
";c.exports=function(y){return d(function(){return!!f[y]()||p[y]()!=p||f[y].name!==y})}},3111:function(c,h,a){var d=a(4488),f=a(1361),p="["+f+"]",y=RegExp("^"+p+p+"*"),m=RegExp(p+p+"* $ "),v=function(b){return function(S){var E=String(d(S));return b&1&&(E=E.replace(y,"")),b&2&&(E=E.replace(m,"")),E}};c.exports={start:v
\ v \ f \ r \u2028\u2029 ` },8264:function(c,h,a){"use strict";var d=a(2109),f=a(7854),p=a(3331),y=a(6340),m="ArrayBuffer",v=p[m],b=f[m];d({global:!0,forced:b!==v},{ArrayBuffer:v}),y(m)},2222:function(c,h,a){"use strict";var d=a(2109),f=a(7293),p=a(3157),y=a(111),m=a(7908),v=a(7466),b=a(6135),S=a(5417),E=a(1194),x=a(5112),D=a(7392),C=x("isConcatSpreadable"),N=9007199254740991,R="Maximum allowed index exceeded",H=D>=51||!f(function(){var Y=[];return Y[C]=!1,Y.concat()[0]!==Y}),j=E("concat"),J=function(Y){if(!y(Y))return!1;var M=Y[C];return M!==void 0?!!M:p(Y)},W=!H||!j;d({target:"Array",proto:!0,forced:W},{concat:function(M){var K=m(this),k=S(K,0),G=0,B,re,I,P,le;for(B=-1,I=arguments.length;B<I;B++)if(le=B===-1?K:arguments[B],J(le)){if(P=v(le.length),G+P>N)throw TypeError(R);for(re=0;re<P;re++,G++)re in le&&b(k,G,le[re])}else{if(G>=N)throw TypeError(R);b(k,G++,le)}return k.length=G,k}})},7327:function(c,h,a){"use strict";var d=a(2109),f=a(2092).filter,p=a(1194),y=p("filter");d({target:"Array",proto:!0,forced:!y},{filter:function(v){return f(this,v,arguments.length>1?arguments[1]:void 0)}})},2772:function(c,h,a){"use strict";var d=a(2109),f=a(1318).indexOf,p=a(9341),y=[].indexOf,m=!!y&&1/[1].indexOf(1,-0)<0,v=p("indexOf");d({target:"Array",proto:!0,forced:m||!v},{indexOf:function(S){return m?y.apply(this,arguments)||0:f(this,S,arguments.length>1?arguments[1]:void 0)}})},6992:function(c,h,a){"use strict";var d=a(5656),f=a(1223),p=a(7497),y=a(9909),m=a(654),v="Array Iterator",b=y.set,S=y.getterFor(v);c.exports=m(Array,"Array",function(E,x){b(this,{type:v,target:d(E),index:0,kind:x})},function(){var E=S(this),x=E.target,D=E.kind,C=E.index++;return!x||C>=x.length?(E.target=void 0,{value:void 0,done:!0}):D=="keys"?{value:C,done:!1}:D=="values"?{value:x[C],done:!1}:{value:[C,x[C]],done:!1}},"values"),p.Arguments=p.Array,f("keys"),f("values"),f("entries")},1249:function(c,h,a){"use strict";var d=a(2109),f=a(2092).map,p=a(1194),y=p("map");d({target:"Array",proto:!0,forced:!y},{map:function(v){return f(this,v,arguments.length>1?arguments[1]:void 0)}})},7042:function(c,h,a){"use strict";var d=a(2109),f=a(111),p=a(3157),y=a(1400),m=a(7466),v=a(5656),b=a(6135),S=a(5112),E=a(1194),x=E("slice"),D=S("species"),C=[].slice,N=Math.max;d({target:"Array",proto:!0,forced:!x},{slice:function(H,j){var J=v(this),W=m(J.length),Y=y(H,W),M=y(j===void 0?W:j,W),K,k,G;if(p(J)&&(K=J.constructor,typeof K=="function"&&(K===Array||p(K.prototype))?K=void 0:f(K)&&(K=K[D],K===null&&(K=void 0)),K===Array||K===void 0))return C.call(J,Y,M);for(k=new(K===void 0?Array:K)(N(M-Y,0)),G=0;Y<M;Y++,G++)Y in J&&b(k,G,J[Y]);return k.length=G,k}})},561:function(c,h,a){"use strict";var d=a(2109),f=a(1400),p=a(9958),y=a(7466),m=a(7908),v=a(5417),b=a(6135),S=a(1194),E=S("splice"),x=Math.max,D=Math.min,C=9007199254740991,N="Maximum allowed length exceeded";d({target:"Array",proto:!0,forced:!E},{splice:function(H,j){var J=m(this),W=y(J.length),Y=f(H,W),M=arguments.length,K,k,G,B,re,I;if(M===0?K=k=0:M===1?(K=0,k=W-Y):(K=M-2,k=D(x(p(j),0),W-Y)),W+K-k>C)throw TypeError(N);for(G=v(J,k),B=0;B<k;B++)re=Y+B,re in J&&b(G,B,J[re]);if(G.length=k,K<k){for(B=Y;B<W-k;B++)re=B+k,I=B+K,re in J?J[I]=J[re]:delete J[I];for(B=W;B>W-k+K;B--)delete J[B-1]}else if(K>k)for(B=W-k;B>Y;B--)re=B+k-1,I=B+K-1,re in J?J[I]=J[re]:delete J[I];for(B=0;B<K;B++)J[B+Y]=arguments[B+2];return J.length=W-k+K,G}})},8309:function(c,h,a){var d=a(9781),f=a(3070).f,p=Function.prototype,y=p.toString,m=/^ \s *function ([^ (]*)/,v="name";d&&!(v in p)&&f(p,v,{configurable:!0,get:function(){try{return y.call(this).match(m)[1]}catch(b){return""}}})},489:function(c,h,a){var d=a(2109),f=a(7293),p=a(7908),y=a(9518),m=a(8544),v=f(function(){y(1)});d({target:"Object",stat:!0,forced:v,sham:!m},{getPrototypeOf:function(S){return y(p(S))}})},1539:function(c,h,a){var d=a(1694),f=a(1320),p=a(288);d||f(Object.prototype,"toString",p,{unsafe:!0})},4916:function(c,h,a){"use strict";var d=a(2109),f=a(2261);d({target:"RegExp",proto:!0,forced:/./.exec!==f},{exec:f})},9714:function(c,h,a){"use strict";v
In order to be iterable , non - array objects must have a [ Symbol . iterator ] ( ) method . ` )}var z=!0,te=!1,ce;return{s:function(){Z=oe[Symbol.iterator]()},n:function(){var me=Z.next();return z=me.done,me},e:function(me){te=!0,ce=me},f:function(){try{!z&&Z.return!=null&&Z.return()}finally{if(te)throw ce}}}}function Le(oe,ie){if(!oe)return;if(typeof oe=="string")return Be(oe,ie);var Z=Object.prototype.toString.call(oe).slice(8,-1);if(Z==="Object"&&oe.constructor&&(Z=oe.constructor.name),Z==="Map"||Z==="Set")return Array.from(oe);if(Z==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array $ /.test(Z))return Be(oe,ie)}function Be(oe,ie){(ie==null||ie>oe.length)&&(ie=oe.length);for(var Z=0,ne=new Array(ie);Z<ie;Z++)ne[Z]=oe[Z];return ne}function Ke(oe,ie){if(!(oe instanceof ie))throw new TypeError("Cannot call a class as a function")}function je(oe,ie){for(var Z=0;Z<ie.length;Z++){var ne=ie[Z];ne.enumerable=ne.enumerable||!1,ne.configurable=!0,"value"in ne&&(ne.writable=!0),Object.defineProperty(oe,ne.key,ne)}}function Ge(oe,ie,Z){return ie&&je(oe.prototype,ie),Z&&je(oe,Z),oe}var Ee=function(){function oe(){Ke(this,oe)}return Ge(oe,[{key:"on",value:function(Z,ne){return this._callbacks=this._callbacks||{},this._callbacks[Z]||(this._callbacks[Z]=[]),this._callbacks[Z].push(ne),this}},{key:"emit",value:function(Z){this._callbacks=this._callbacks||{};for(var ne=this._callbacks[Z],O=arguments.length,z=new Array(O>1?O-1:0),te=1;te<O;te++)z[te-1]=arguments[te];if(ne){var ce=Pe(ne,!0),ye;try{for(ce.s();!(ye=ce.n()).done;){var me=ye.value;me.apply(this,z)}}catch(Te){ce.e(Te)}finally{ce.f()}}return this.element&&this.element.dispatchEvent(this.makeEvent("dropzone:"+Z,{args:z})),this}},{key:"makeEvent",value:function(Z,ne){var O={bubbles:!0,cancelable:!0,detail:ne};if(typeof window.CustomEvent=="function")return new CustomEvent(Z,O);var z=document.createEvent("CustomEvent");return z.initCustomEvent(Z,O.bubbles,O.cancelable,O.detail),z}},{key:"off",value:function(Z,ne){if(!this._callbacks||arguments.length===0)return this._callbacks={},this;var O=this._callbacks[Z];if(!O)return this;if(arguments.length===1)return delete this._callbacks[Z],this;for(var z=0;z<O.length;z++){var te=O[z];if(te===ne){O.splice(z,1);break}}return this}}]),oe}(),V='<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.87
In order to be iterable , non - array objects must have a [ Symbol . iterator ] ( ) method . ` )}var z=!0,te=!1,ce;return{s:function(){Z=oe[Symbol.iterator]()},n:function(){var me=Z.next();return z=me.done,me},e:function(me){te=!0,ce=me},f:function(){try{!z&&Z.return!=null&&Z.return()}finally{if(te)throw ce}}}}function rt(oe,ie){if(!oe)return;if(typeof oe=="string")return Ne(oe,ie);var Z=Object.prototype.toString.call(oe).slice(8,-1);if(Z==="Object"&&oe.constructor&&(Z=oe.constructor.name),Z==="Map"||Z==="Set")return Array.from(oe);if(Z==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array $ /.test(Z))return Ne(oe,ie)}function Ne(oe,ie){(ie==null||ie>oe.length)&&(ie=oe.length);for(var Z=0,ne=new Array(ie);Z<ie;Z++)ne[Z]=oe[Z];return ne}var it={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,ne){if(ne)return{dzuuid:ne.file.upload.uuid,dzchunkindex:ne.index,dztotalfilesize:ne.file.size,dzchunksize:this.options.chunkSize,dztotalchunkcount:ne.file.upload.totalChunkCount,dzchunkbyteoffset:ne.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=ue(this.element.getElementsByTagName("div"),!0),ne;try{for(Z.s();!(ne=Z.n()).done;){var O=ne.value;if(/(^| )dz-message( $ | )/.test(O.className)){ie=O,O.className="dz-message";break}}}catch(te){Z.e(te)}finally{Z.f()}ie||(ie=at.createElement('<div class="dz-message"><span></span></div>'),this.element.appendChild(ie));var z=ie.getElementsByTagName("span")[0];return z&&(z.textContent!=null?z.textContent=this.options.dictFallbackMessage:z.innerText!=null&&(z.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(ie,Z,ne,O){var z={srcX:0,srcY:0,srcWidth:ie.width,srcHeight:ie.height},te=ie.width/ie.height;Z==null&&ne==null?(Z=z.srcWidth,ne=z.srcHeight):Z==null?Z=ne*te:ne==null&&(ne=Z/te),Z=Math.min(Z,z.srcWidth),ne=Math.min(ne,z.srcHeight);var ce=Z/ne;if(z.srcWidth>Z||z.srcHeight>ne)if(O==="crop")te>ce?(z.srcHeight=ie.height,z.srcWidth=z.srcHeight*ce):(z.srcWidth=ie.width,z.srcHeight=z.srcWidth/ce);else if(O==="contain")te>ce?ne=Z/te:Z=ne*te;else throw new Error("Unknown resizeMethod '".concat(O,"'"));return z.srcX=(ie.width-z.srcWidth)/2,z.srcY=(ie.height-z.srcHeight)/2,z.trgWidth=Z,z.trgHeight=ne,z},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)},previewTempla
In order to be iterable , non - array objects must have a [ Symbol . iterator ] ( ) method . ` )}var z=!0,te=!1,ce;return{s:function(){Z=oe[Symbol.iterator]()},n:function(){var me=Z.next();return z=me.done,me},e:function(me){te=!0,ce=me},f:function(){try{!z&&Z.return!=null&&Z.return()}finally{if(te)throw ce}}}}function Ht(oe,ie){if(!oe)return;if(typeof oe=="string")return Et(oe,ie);var Z=Object.prototype.toString.call(oe).slice(8,-1);if(Z==="Object"&&oe.constructor&&(Z=oe.constructor.name),Z==="Map"||Z==="Set")return Array.from(oe);if(Z==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array $ /.test(Z))return Et(oe,ie)}function Et(oe,ie){(ie==null||ie>oe.length)&&(ie=oe.length);for(var Z=0,ne=new Array(ie);Z<ie;Z++)ne[Z]=oe[Z];return ne}function Pr(oe,ie){if(!(oe instanceof ie))throw new TypeError("Cannot call a class as a function")}function st(oe,ie){for(var Z=0;Z<ie.length;Z++){var ne=ie[Z];ne.enumerable=ne.enumerable||!1,ne.configurable=!0,"value"in ne&&(ne.writable=!0),Object.defineProperty(oe,ne.key,ne)}}function Ft(oe,ie,Z){return ie&&st(oe.prototype,ie),Z&&st(oe,Z),oe}function Je(oe,ie){if(typeof ie!="function"&&ie!==null)throw new TypeError("Super expression must either be null or a function");oe.prototype=Object.create(ie&&ie.prototype,{constructor:{value:oe,writable:!0,configurable:!0}}),ie&&ht(oe,ie)}function ht(oe,ie){return ht=Object.setPrototypeOf||function(ne,O){return ne.__proto__=O,ne},ht(oe,ie)}function wt(oe){var ie=Ot();return function(){var ne=kt(oe),O;if(ie){var z=kt(this).constructor;O=Reflect.construct(ne,arguments,z)}else O=ne.apply(this,arguments);return Qt(this,O)}}function Qt(oe,ie){return ie&&(ze(ie)==="object"||typeof ie=="function")?ie:Tt(oe)}function Tt(oe){if(oe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return oe}function Ot(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(oe){return!1}}function kt(oe){return kt=Object.setPrototypeOf?Object.getPrototypeOf:function(Z){return Z.__proto__||Object.getPrototypeOf(Z)},kt(oe)}var at=function(oe){Je(Z,oe);var ie=wt(Z);function Z(ne,O){var z;Pr(this,Z),z=ie.call(this);var te,ce;if(z.element=ne,z.version=Z.version,z.clickableElements=[],z.listeners=[],z.files=[],typeof z.element=="string"&&(z.element=document.querySelector(z.element)),!z.element||z.element.nodeType==null)throw new Error("Invalid dropzone element.");if(z.element.dropzone)throw new Error("Dropzone already attached.");Z.instances.push(Tt(z)),z.element.dropzone=Tt(z);var ye=(ce=Z.optionsForElement(z.element))!=null?ce:{};if(z.options=Z.extend({},He,ye,O!=null?O:{}),z.options.previewTemplate=z.options.previewTemplate.replace(/ \n */g,""),z.options.forceFallback||!Z.isBrowserSupported())return Qt(z,z.options.fallback.call(Tt(z)));if(z.options.url==null&&(z.options.url=z.element.getAttribute("action")),!z.options.url)throw new Error("No URL provided.");if(z.options.acceptedFiles&&z.options.acceptedMimeTypes)throw new Error("You can't provide both 'acceptedFiles' and 'acceptedMimeTypes'. 'acceptedMimeTypes' is deprecated.");if(z.options.uploadMultiple&&z.options.chunking)throw new Error("You cannot set both: uploadMultiple and chunking.");return z.options.acceptedMimeTypes&&(z.options.acceptedFiles=z.options.acceptedMimeTypes,delete z.options.acceptedMimeTypes),z.options.renameFilename!=null&&(z.options.renameFile=function(me){return z.options.renameFilename.call(Tt(z),me.name,me)}),typeof z.options.method=="string"&&(z.options.method=z.options.method.toUpperCase()),(te=z.getExistingFallback())&&te.parentNode&&te.parentNode.removeChild(te),z.options.previewsContainer!==!1&&(z.options.previewsContainer?z.previewsContainer=Z.getElement(z.options.previewsContainer,"previewsContainer"):z.previewsContainer=z.element),z.options.clickable&&(z.options.clickable===!0?z.clickableElements=[z.element]:z.clickableElements=Z.getElements(z.options.clickable,"clickable")),z.init(),z}return Ft(Z
2020-09-20 05:33:18 -04:00
Valid base64 characters are A - Z , a - z , 0 - 9 , '+' , '/' , and '='
2021-04-19 17:26:19 -04:00
Expect errors in decoding . ` ),Z=Z.replace(/[^A-Za-z0-9 \+ \/ \= ]/g,"");!(ce=this.KEY_STR.indexOf(Z.charAt(Oe++)),ye=this.KEY_STR.indexOf(Z.charAt(Oe++)),me=this.KEY_STR.indexOf(Z.charAt(Oe++)),Te=this.KEY_STR.indexOf(Z.charAt(Oe++)),O=ce<<2|ye>>4,z=(ye&15)<<4|me>>2,te=(me&3)<<6|Te,De.push(O),me!==64&&De.push(z),Te!==64&&De.push(te),O=z=te="",ce=ye=me=Te="",!(Oe<Z.length)););return De}}]),oe}();rn.initClass();var Wt=function(ie,Z){var ne=!1,O=!0,z=ie.document,te=z.documentElement,ce=z.addEventListener?"addEventListener":"attachEvent",ye=z.addEventListener?"removeEventListener":"detachEvent",me=z.addEventListener?"":"on",Te=function De(Ye){if(Ye.type==="readystatechange"&&z.readyState!=="complete")return;if((Ye.type==="load"?ie:z)[ye](me+Ye.type,De,!1),!ne&&(ne=!0))return Z.call(ie,Ye.type||Ye)},Oe=function De(){try{te.doScroll("left")}catch(Ye){setTimeout(De,50);return}return Te("poll")};if(z.readyState!=="complete"){if(z.createEventObject&&te.doScroll){try{O=!ie.frameElement}catch(De){}O&&Oe()}return z[ce](me+"DOMContentLoaded",Te,!1),z[ce](me+"readystatechange",Te,!1),ie[ce](me+"load",Te,!1)}};at._autoDiscoverFunction=function(){if(at.autoDiscover)return at.discover()},Wt(window,at._autoDiscoverFunction);function yr(oe,ie){return typeof oe!="undefined"&&oe!==null?ie(oe):void 0}function Jt(oe,ie,Z){return typeof oe!="undefined"&&oe!==null&&typeof oe[ie]=="function"?Z(oe,ie):void 0}window.Dropzone=at;var _r=at}(),u}()})});var mf=Me((Wk,pf)=>{pf.exports={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´ ",Acy:"А ",acy:"а ",AElig:"Æ",aelig:"æ",af:" ",Afr:"𝔄 ",afr:"𝔞 ",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α ",alpha:"α ",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸 ",aopf:"𝕒 ",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:" ",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜 ",ascr:"𝒶 ",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵ ",backsim:"∽",backsimeq:"⋍",Backslash:"∖ ",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б ",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ ",Bernoullis:"ℬ ",Beta:"Β ",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅 ",bfr:"𝔟 ",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃ ",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁ ",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹 ",bopf:"𝕓 ",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵ ",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷 ",Bscr:"ℬ ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:" \\ ",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"
` ,nexist:"∄",nexists:"∄",Nfr:"𝔑 ",nfr:"𝔫 ",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:" ",NonBreakingSpace:" ",nopf:"𝕟 ",Nopf:"ℕ ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩 ",nscr:"𝓃 ",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν ",nu:"ν ",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О ",ocy:"о ",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒 ",ofr:"𝔬 ",ogon:"˛ ",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο ",omicron:"ο ",omid:"⦶",ominus:"⊖",Oopf:"𝕆 ",oopf:"𝕠 ",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘ ",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨ ",ord:"⩝",order:"ℴ ",orderof:"ℴ ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪 ",oscr:"ℴ ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п"
` ," "],Sb=["{","}","|"," \\ ","^"," ` "].concat(kb),Eb=[" '"].concat(Sb),Af=["%","/","?",";","#"].concat(Eb),Tf=["/","?","#"],Cb=255,Df=/^[+a-z0-9A-Z_-]{0,63}$/,_b=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,If={javascript:!0,"javascript:":!0},Lf={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Ab(n,t){if(n&&n instanceof Qo)return n;var i=new Qo;return i.parse(n,t),i}Qo.prototype.parse=function(n,t){var i,u,c,h,a,d=n;if(d=d.trim(),!t&&n.split("#").length===1){var f=xb.exec(d);if(f)return this.pathname=f[1],f[2]&&(this.search=f[2]),this}var p=bb.exec(d);if(p&&(p=p[0],c=p.toLowerCase(),this.protocol=p,d=d.substr(p.length)),(t||p||d.match(/^\/\/[^@\/]+@[^@\/]+/))&&(a=d.substr(0,2)==="//",a&&!(p&&If[p])&&(d=d.substr(2),this.slashes=!0)),!If[p]&&(a||p&&!Lf[p])){var y=-1;for(i=0;i<Tf.length;i++)h=d.indexOf(Tf[i]),h!==-1&&(y===-1||h<y)&&(y=h);var m,v;for(y===-1?v=d.lastIndexOf("@"):v=d.lastIndexOf("@",y),v!==-1&&(m=d.slice(0,v),d=d.slice(v+1),this.auth=m),y=-1,i=0;i<Af.length;i++)h=d.indexOf(Af[i]),h!==-1&&(y===-1||h<y)&&(y=h);y===-1&&(y=d.length),d[y-1]===":"&&y--;var b=d.slice(0,y);d=d.slice(y),this.parseHost(b),this.hostname=this.hostname||"";var S=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!S){var E=this.hostname.split(/\./);for(i=0,u=E.length;i<u;i++){var x=E[i];if(!x)continue;if(!x.match(Df)){for(var D="",C=0,N=x.length;C<N;C++)x.charCodeAt(C)>127?D+="x":D+=x[C];if(!D.match(Df)){var R=E.slice(0,i),H=E.slice(i+1),j=x.match(_b);j&&(R.push(j[1]),H.unshift(j[2])),H.length&&(d=H.join(".")+d),this.hostname=R.join(".");break}}}}this.hostname.length>Cb&&(this.hostname=""),S&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var J=d.indexOf("#");J!==-1&&(this.hash=d.substr(J),d=d.slice(0,J));var W=d.indexOf("?");return W!==-1&&(this.search=d.substr(W),d=d.slice(0,W)),d&&(this.pathname=d),Lf[c]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Qo.prototype.parseHost=function(n){var t=wb.exec(n);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),n=n.substr(0,n.length-t.length)),n&&(this.hostname=n)};_f.exports=Ab});var js=Me((Zk,Zi)=>{"use strict";Zi.exports.encode=wf();Zi.exports.decode=Sf();Zi.exports.format=Cf();Zi.exports.parse=Ff()});var qs=Me((Qk,Mf)=>{Mf.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/});var Us=Me((Jk,Rf)=>{Rf.exports=/[\0-\x1F\x7F-\x9F]/});var Pf=Me((e2,Of)=>{Of.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 Hs=Me((t2,Nf)=>{Nf.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/});var zf=Me(si=>{"use strict";si.Any=qs();si.Cc=Us();si.Cf=Pf();si.P=Xo();si.Z=Hs()});var Dt=Me(ir=>{"use strict";function Tb(n){return Object.prototype.toString.call(n)}function Db(n){return Tb(n)==="[object String]"}var Ib=Object.prototype.hasOwnProperty;function Bf(n,t){return Ib.call(n,t)}function Lb(n){var t=Array.prototype.slice.call(arguments,1);return t.forEach(function(i){if(!i)return;if(typeof i!="object")throw new TypeError(i+"must be object");Object.keys(i).forEach(function(u){n[u]=i[u]})}),n}function Fb(n,t,i){return[].concat(n.slice(0,t),i,n.slice(t+1))}function jf(n){return n>=55296&&n<=57343||(n>=64976&&n<=65007||((n&65535)===65535||(n&65535)===65534||(n>=0&&n<=8||(n===11||(n>=14&&n<=31||n>=127&&n<=159)))))?!1:!(n>1114111)}function qf(n){if(n>65535){n-=65536;var t=55296+(n>>10),i=56320+(n&1023);return String.fromCharCode(t,i)}return String.fromCharCode(n)}var Uf=/\\([!"#$%&' ( ) * + , \ - . \ / : ; <= > ? @ [ \ \ \ ] ^ _ ` {|}~])/g,Mb=/&([a-z#][a-z0-9]{1,31});/gi,Rb=new RegExp(Uf.source+"|"+Mb.source,"gi"),Ob=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,Hf=Bs();function Pb(n,t){var i=0;return Bf(Hf,t)?Hf[t]:t.charCodeAt(0)===35&&Ob.test(t)&&(i=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10),jf(i))?qf(i):n}function Nb(n){return n.indexOf(" \\ ")<0?n:n.replace(Uf,"
` };Yr.fence=function(n,t,i,u,c){var h=n[t],a=h.info?ew(h.info).trim():"",d="",f,p,y,m;return a&&(d=a.split(/ \s +/g)[0]),i.highlight?f=i.highlight(h.content,d)||Pn(h.content):f=Pn(h.content),f.indexOf("<pre")===0?f+ `
2021-04-09 16:18:32 -04:00
` :a?(p=h.attrIndex("class"),y=h.attrs?h.attrs.slice():[],p<0?y.push(["class",i.langPrefix+d]):y[p][1]+=" "+i.langPrefix+d,m={attrs:y},"<pre><code"+c.renderAttrs(m)+">"+f+ ` < / c o d e > < / p r e >
` ):"<pre><code"+c.renderAttrs(h)+">"+f+ ` < / c o d e > < / p r e >
` };Yr.image=function(n,t,i,u,c){var h=n[t];return h.attrs[h.attrIndex("alt")][1]=c.renderInlineAsText(h.children,i,u),c.renderToken(n,t,i)};Yr.hardbreak=function(n,t,i){return i.xhtmlOut? ` < br / >
2020-09-20 05:33:18 -04:00
` : ` < br >
2021-04-09 16:18:32 -04:00
` };Yr.softbreak=function(n,t,i){return i.breaks?i.xhtmlOut? ` < br / >
2020-09-20 05:33:18 -04:00
` : ` < br >
` : `
2021-04-19 17:26:19 -04:00
` };Yr.text=function(n,t){return Pn(n[t].content)};Yr.html_block=function(n,t){return n[t].content};Yr.html_inline=function(n,t){return n[t].content};function li(){this.rules=Jb({},Yr)}li.prototype.renderAttrs=function(t){var i,u,c;if(!t.attrs)return"";for(c="",i=0,u=t.attrs.length;i<u;i++)c+=" "+Pn(t.attrs[i][0])+'="'+Pn(t.attrs[i][1])+'"';return c};li.prototype.renderToken=function(t,i,u){var c,h="",a=!1,d=t[i];return d.hidden?"":(d.block&&d.nesting!==-1&&i&&t[i-1].hidden&&(h+= `
2021-04-09 16:18:32 -04:00
` ),h+=(d.nesting===-1?"</":"<")+d.tag,h+=this.renderAttrs(d),d.nesting===0&&u.xhtmlOut&&(h+=" /"),d.block&&(a=!0,d.nesting===1&&(i+1<t.length&&(c=t[i+1],(c.type==="inline"||c.hidden||c.nesting===-1&&c.tag===d.tag)&&(a=!1)))),h+=a? ` >
2021-04-19 17:26:19 -04:00
` :">",h)};li.prototype.renderInline=function(n,t,i){for(var u,c="",h=this.rules,a=0,d=n.length;a<d;a++)u=n[a].type,typeof h[u]!="undefined"?c+=h[u](n,a,t,i,this):c+=this.renderToken(n,a,t);return c};li.prototype.renderInlineAsText=function(n,t,i){for(var u="",c=0,h=n.length;c<h;c++)n[c].type==="text"?u+=n[c].content:n[c].type==="image"&&(u+=this.renderInlineAsText(n[c].children,t,i));return u};li.prototype.render=function(n,t,i){var u,c,h,a="",d=this.rules;for(u=0,c=n.length;u<c;u++)h=n[u].type,h==="inline"?a+=this.renderInline(n[u].children,t,i):typeof d[h]!="undefined"?a+=d[n[u].type](n,u,t,i,this):a+=this.renderToken(n,u,t,i);return a};Qf.exports=li});var ea=Me((u2,eh)=>{"use strict";function Hr(){this.__rules__=[],this.__cache__=null}Hr.prototype.__find__=function(n){for(var t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===n)return t;return-1};Hr.prototype.__compile__=function(){var n=this,t=[""];n.__rules__.forEach(function(i){if(!i.enabled)return;i.alt.forEach(function(u){t.indexOf(u)<0&&t.push(u)})}),n.__cache__={},t.forEach(function(i){n.__cache__[i]=[],n.__rules__.forEach(function(u){if(!u.enabled)return;if(i&&u.alt.indexOf(i)<0)return;n.__cache__[i].push(u.fn)})})};Hr.prototype.at=function(n,t,i){var u=this.__find__(n),c=i||{};if(u===-1)throw new Error("Parser rule not found: "+n);this.__rules__[u].fn=t,this.__rules__[u].alt=c.alt||[],this.__cache__=null};Hr.prototype.before=function(n,t,i,u){var c=this.__find__(n),h=u||{};if(c===-1)throw new Error("Parser rule not found: "+n);this.__rules__.splice(c,0,{name:t,enabled:!0,fn:i,alt:h.alt||[]}),this.__cache__=null};Hr.prototype.after=function(n,t,i,u){var c=this.__find__(n),h=u||{};if(c===-1)throw new Error("Parser rule not found: "+n);this.__rules__.splice(c+1,0,{name:t,enabled:!0,fn:i,alt:h.alt||[]}),this.__cache__=null};Hr.prototype.push=function(n,t,i){var u=i||{};this.__rules__.push({name:n,enabled:!0,fn:t,alt:u.alt||[]}),this.__cache__=null};Hr.prototype.enable=function(n,t){Array.isArray(n)||(n=[n]);var i=[];return n.forEach(function(u){var c=this.__find__(u);if(c<0){if(t)return;throw new Error("Rules manager: invalid rule name "+u)}this.__rules__[c].enabled=!0,i.push(u)},this),this.__cache__=null,i};Hr.prototype.enableOnly=function(n,t){Array.isArray(n)||(n=[n]),this.__rules__.forEach(function(i){i.enabled=!1}),this.enable(n,t)};Hr.prototype.disable=function(n,t){Array.isArray(n)||(n=[n]);var i=[];return n.forEach(function(u){var c=this.__find__(u);if(c<0){if(t)return;throw new Error("Rules manager: invalid rule name "+u)}this.__rules__[c].enabled=!1,i.push(u)},this),this.__cache__=null,i};Hr.prototype.getRules=function(n){return this.__cache__===null&&this.__compile__(),this.__cache__[n]||[]};eh.exports=Hr});var rh=Me((c2,th)=>{"use strict";var tw=/ \r \n ?| \n /g,rw=/ \0 /g;th.exports=function(t){var i;i=t.src.replace(tw, `
` ),i=i.replace(rw,"<22> "),t.src=i}});var ih=Me((d2,nh)=>{"use strict";nh.exports=function(t){var i;t.inlineMode?(i=new t.Token("inline","",0),i.content=t.src,i.map=[0,1],i.children=[],t.tokens.push(i)):t.md.block.parse(t.src,t.md,t.env,t.tokens)}});var ah=Me((f2,oh)=>{"use strict";oh.exports=function(t){var i=t.tokens,u,c,h;for(c=0,h=i.length;c<h;c++)u=i[c],u.type==="inline"&&t.md.inline.parse(u.content,t.md,t.env,u.children)}});var lh=Me((h2,sh)=>{"use strict";var nw=Dt().arrayReplaceAt;function iw(n){return/^<a[> \s ]/i.test(n)}function ow(n){return/^< \/ a \s *>/i.test(n)}sh.exports=function(t){var i,u,c,h,a,d,f,p,y,m,v,b,S,E,x,D,C=t.tokens,N;if(!t.md.options.linkify)return;for(u=0,c=C.length;u<c;u++){if(C[u].type!=="inline"||!t.md.linkify.pretest(C[u].content))continue;for(h=C[u].children,S=0,i=h.length-1;i>=0;i--){if(d=h[i],d.type==="link_close"){for(i--;h[i].level!==d.level&&h[i].type!=="link_open";)i--;continue}if(d.type==="html_inline"&&(iw(d.content)&&S>0&&S--,ow(d.content)&&S++),S>0)continue;if(d.type==="text"&&t.md.linkify.test(d.content)){for(y=d.content,N=t.md.linkify.match(y),f=[],b=d.level,v=0,p=0;p<N.length;p++){if(E=N[p].url,x=t.md.normalizeLink(E),!t.md.validateLink(x))continue;D=N[p].text,N[p].schema?N[p].schema==="mailto:"&&!/^mailto:/i.test(D)?D=t.md.normalizeLinkText("mailto:"+D).replace(/^mailto:/,""):D=t.md.normalizeLinkText(D):D=t.md.normalizeLinkText("http://"+D).replace(/^http: \/ \/ /,""),m=N[p].index,m>v&&(a=new t.Token("text","",0),a.content=y.slice(v,m),a.level=b,f.push(a)),a=new t.Token("link_open","a",1),a.attrs=[["href",x]],a.level=b++,a.markup="linkify",a.info="auto",f.push(a),a=new t.Token("text","",0),a.content=D,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=N[p].lastIndex}v<y.length&&(a=new t.Token("text","",0),a.content=y.slice(v),a.level=b,f.push(a)),C[u].children=h=nw(h,i,f)}}}}});var dh=Me((p2,uh)=>{"use strict";var ch=/ \+ -| \. \. | \? \? \? \? |!!!!|,,|--/,aw=/ \( (c|tm|r|p) \) /i,sw=/ \( (c|tm|r|p) \) /ig,lw={c:"©",r:"®",p:"§",tm:"™"};function uw(n,t){return lw[t.toLowerCase()]}function cw(n){var t,i,u=0;for(t=n.length-1;t>=0;t--)i=n[t],i.type==="text"&&!u&&(i.content=i.content.replace(sw,uw)),i.type==="link_open"&&i.info==="auto"&&u--,i.type==="link_close"&&i.info==="auto"&&u++}function dw(n){var t,i,u=0;for(t=n.length-1;t>=0;t--)i=n[t],i.type==="text"&&!u&&(ch.test(i.content)&&(i.content=i.content.replace(/ \+ -/g,"±").replace(/ \. {2,}/g,"…").replace(/([?!])…/g," $ 1..").replace(/([?!]){4,}/g," $ 1 $ 1 $ 1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]| $ )/mg," $ 1—").replace(/(^| \s )--(?= \s | $ )/mg," $ 1– ").replace(/(^|[^- \s ])--(?=[^- \s ]| $ )/mg," $ 1– "))),i.type==="link_open"&&i.info==="auto"&&u--,i.type==="link_close"&&i.info==="auto"&&u++}uh.exports=function(t){var i;if(!t.md.options.typographer)return;for(i=t.tokens.length-1;i>=0;i--){if(t.tokens[i].type!=="inline")continue;aw.test(t.tokens[i].content)&&cw(t.tokens[i].children),ch.test(t.tokens[i].content)&&dw(t.tokens[i].children)}}});var yh=Me((m2,fh)=>{"use strict";var hh=Dt().isWhiteSpace,ph=Dt().isPunctChar,mh=Dt().isMdAsciiPunct,fw=/['"]/,gh=/['"]/g,vh="’ ";function ta(n,t,i){return n.substr(0,t)+i+n.substr(t+1)}function hw(n,t){var i,u,c,h,a,d,f,p,y,m,v,b,S,E,x,D,C,N,R,H,j;for(R=[],i=0;i<n.length;i++){for(u=n[i],f=n[i].level,C=R.length-1;C>=0&&!(R[C].level<=f);C--);if(R.length=C+1,u.type!=="text")continue;c=u.content,a=0,d=c.length;e:for(;a<d&&!(gh.lastIndex=a,h=gh.exec(c),!h);){if(x=D=!0,a=h.index+1,N=h[0]==="'",y=32,h.index-1>=0)y=c.charCodeAt(h.index-1);else for(C=i-1;C>=0&&!(n[C].type==="softbreak"||n[C].type==="hardbreak");C--){if(!n[C].content)continue;y=n[C].content.charCodeAt(n[C].content.length-1);break}if(m=32,a<d)m=c.charCodeAt(a);else for(C=i+1;C<n.length&&!(n[C].type==="softbreak"||n[C].type==="hardbreak");C++){if(!n[C].content)continue;m=n[C].content.charCodeAt(0);break}if(v=mh(y)||ph(String.fromCharCode(y)),b=mh(m)||ph(String.fromCharCode(m)),S=hh(y),E=hh(m),E?x=!1:b&&(S||v||(x=!1)),S?D=!1:v&&(E||b||(D=!1)),m===34&&h[0]==='"'&&(y>=48&&y<=57&&(D=x=!1)),x&&D&&(x
` );ua("error",t)}}var Am={emit:ua,emitPublic:Bx,listen:zx,success:n=>ua("success",n),error:n=>ua("error",n),showValidationErrors:jx};async function qx(n,t={}){return Tm(n,{method:"GET",params:t})}async function Ux(n,t=null){return ca("POST",n,t)}async function Hx(n,t=null){return ca("PUT",n,t)}async function Wx(n,t=null){return ca("PATCH",n,t)}async function $ x(n,t=null){return ca("DELETE",n,t)}async function ca(n,t,i=null){const u={method:n,body:i};return typeof i=="object"&&!(i instanceof FormData)&&(u.headers={"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},u.body=JSON.stringify(i)),i instanceof FormData&&n!=="post"&&(i.append("_method",n),u.method="post"),Tm(t,u)}async function Tm(n,t={}){if(n.startsWith("http")||(n=window.baseUrl(n)),t.params){const a=new URL(n);for(let d of Object.keys(t.params)){const f=t.params[d];typeof f!="undefined"&&f!==null&&a.searchParams.set(d,f)}n=a.toString()}const i=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":i});const u=await fetch(n,t),c=await Gx(u),h={data:c,headers:u.headers,redirected:u.redirected,status:u.status,statusText:u.statusText,url:u.url,original:u};if(!u.ok)throw h;return h}async function Gx(n){if(n.status===204)return null;const t=n.headers.get("Content-Type")||"",i=t.split(";")[0].split("/").pop();return i==="javascript"||i==="json"?await n.json():await n.text()}var Dm={get:qx,post:Ux,put:Hx,patch:Wx,delete: $ x};class Kx{constructor(n){this.store=new Map,this.parseTranslations()}parseTranslations(){const n=document.querySelectorAll('meta[name="translation"]');for(let t of n){const i=t.getAttribute("key"),u=t.getAttribute("value");this.store.set(i,u)}}get(n,t){const i=this.getTransText(n);return this.performReplacements(i,t)}getPlural(n,t,i){const u=this.getTransText(n);return this.parsePlural(u,t,i)}parsePlural(n,t,i){const u=n.split("|"),c=/^{([0-9]+)}/,h=/^ \[ ([0-9]+),([0-9*]+)]/;let a=null;for(let d of u){const f=d.match(c);if(f!==null&&Number(f[1])===t){a=d.replace(c,"").trim();break}const p=d.match(h);if(p!==null){const y=Number(p[1]);if(y<=t&&(p[2]==="*"||Number(p[2])>=t)){a=d.replace(h,"").trim();break}}}return a===null&&u.length>1&&(a=t===1?u[0]:u[1]),a===null&&(a=u[0]),this.performReplacements(a,i)}getTransText(n){const t=this.store.get(n);return t===void 0&&console.warn( ` Translation with key "${n}" does not exist ` ),t}performReplacements(n,t){if(!t)return n;const i=n.match(/:([ \S ]+)/g);return i===null||i.forEach(u=>{const c=u.substring(1);if(typeof t[c]=="undefined")return;n=n.replace(u,t[c])}),n}}var Im=Kx;function da(n,t){const i=document.querySelectorAll(n);for(let u of i)t(u)}function fa(n,t,i){for(let u of t)n.addEventListener(u,i)}function Rt(n,t){Array.isArray(n)||(n=[n]);for(const i of n)i.addEventListener("click",t),i.addEventListener("keydown",u=>{(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),t(u))})}function ha(n,t){Array.isArray(n)||(n=[n]);const i=u=>{u.key==="Enter"&&t(u)};n.forEach(u=>u.addEventListener("keypress",i))}function qt(n,t,i,u){n.addEventListener(i,function(c){const h=c.target.closest(t);h&&u.call(h,c,h)})}function Lm(n,t){const i=document.querySelectorAll(n);t=t.toLowerCase();for(let u of i)if(u.textContent.toLowerCase().includes(t))return u;return null}function no(n){n.innerHTML='<div class="loading-container"><div></div><div></div><div></div></div>'}function Fm(n){const t=n.querySelectorAll(".loading-container");for(const i of t)i.remove()}function pa(n,t,i){let u;return function(){const c=this,h=arguments,a=function(){u=null,i||n.apply(c,h)},d=i&&!u;clearTimeout(u),u=setTimeout(a,t),d&&n.apply(c,h)}}function io(n){if(!n)return;n.scrollIntoView({behavior:"smooth"});const t=document.getElementById("custom-styles").getAttribute("data-color-light"),i=window.getComputedStyle(n).getPropertyValue("background-color");n.style.backgroundColor=t,setTimeout(()=>{n.classList.add("selectFade"),n.style.backgroundColor=i},10),setTimeout(()=>{n.classList.remove("sele
` );const i=n.textContent.trimEnd();let u="";if(t!==null){const h=t.className.replace("language-","");u=Ra(h,i)}const c=qn.default(function(h){n.parentNode.replaceChild(h,n)},{value:i,mode:u,lineNumbers:!0,lineWrapping:!1,theme:Oa(),readOnly:!0});D0(c)}function D0(n){const 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>',i=document.createElement("div");i.classList.add("CodeMirror-copy"),i.innerHTML=t,n.display.wrapper.appendChild(i);const u=new dg.default(i,{text:function(c){return n.getValue()}});u.on("success",c=>{i.classList.add("success"),setTimeout(()=>{i.classList.remove("success")},240)})}function Ra(n,t){n=n.trim().replace(/^ \. /g,"").toLowerCase();const i=typeof Ll[n];return i==="undefined"?"":i==="function"?Ll[n](t):Ll[n]}function Oa(){const n=document.documentElement.classList.contains("dark-mode");return window.codeTheme||(n?"darcula":"default")}function I0(n){const t=n.ownerDocument,i=n.querySelector("code");let u=(n.className||"").replace("language-","");u===""&&i&&(u=(i.className||"").replace("language-","")),n.innerHTML=n.innerHTML.replace(/<br \s *[ \/ ]?>/gi, `
` );const c=n.textContent,h=t.createElement("div"),a=t.createElement("textarea");h.className="CodeMirrorContainer",h.setAttribute("data-lang",u),h.setAttribute("dir","ltr"),a.style.display="none",n.parentNode.replaceChild(h,n),h.appendChild(a),h.contentEditable=!1,a.textContent=c;let d=qn.default(function(f){h.appendChild(f)},{value:c,mode:Ra(u,c),lineNumbers:!0,lineWrapping:!1,theme:Oa(),readOnly:!0});return{wrap:h,editor:d}}function L0(n,t){const i=n.textContent;return qn.default(function(u){n.parentNode.insertBefore(u,n),n.style.display="none"},{value:i,mode:Ra(t,i),lineNumbers:!0,lineWrapping:!1,theme:Oa()})}function F0(n,t,i){n.setOption("mode",Ra(t,i))}function M0(n,t){n.setValue(t),setTimeout(()=>{hg(n)},10)}function hg(n){n.refresh()}function R0(n){const t=n.textContent,i={value:t,mode:"markdown",lineNumbers:!0,lineWrapping:!0,theme:Oa(),scrollPastEnd:!0};return window. $ events.emitPublic(n,"editor-markdown-cm::pre-init",{config:i}),qn.default(function(u){n.parentNode.insertBefore(u,n),n.style.display="none"},i)}function O0(){let n=qn.default.keyMap.default==qn.default.keyMap.macDefault;return n?"Cmd":"Ctrl"}var lr={highlight:A0,highlightWithin:T0,wysiwygView:I0,popupEditor:L0,setMode:F0,setContent:M0,updateLayout:hg,markdownEditor:R0,getMetaKey:O0};class P0{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",n=>{n.ctrlKey&&n.key==="Enter"&&this.save()}),Rt(this.languageLinks,n=>{const t=n.target.dataset.lang;this.languageInput.value=t,this.updateEditorMode(t)}),ha(this.languageInput,n=>this.save()),Rt(this.saveButton,n=>this.save()),qt(this.historyList,"button","click",(n,t)=>{n.preventDefault();const i=t.dataset.time;this.editor&&this.editor.setValue(this.history[i])})}save(){this.callback&&this.callback(this.editor.getValue(),this.languageInput.value),this.hide()}open(n,t,i){this.languageInput.value=t,this.callback=i,this.show(),this.updateEditorMode(t),lr.setContent(this.editor,n)}show(){this.editor||(this.editor=lr.popupEditor(this.editorInput,this.languageInput.value)),this.loadHistory(),this.popup.components.popup.show(()=>{lr.updateLayout(this.editor),this.editor.focus()},()=>{this.addHistory()})}hide(){this.popup.components.popup.hide(),this.addHistory()}updateEditorMode(n){lr.setMode(this.editor,n,this.editor.getValue())}loadHistory(){this.history=JSON.parse(window.sessionStorage.getItem(this.historyKey)||"{}");const n=Object.keys(this.history).reverse();this.historyDropDown.classList.toggle("hidden",n.length===0),this.historyList.innerHTML=n.map(t=>{const i=new Date(parseInt(t)).toLocaleTimeString();return ` < li > < button type = "button" data - time = "${t}" > $ { i } < / b u t t o n > < / l i > ` } ) . j o i n ( " " ) } a d d H i s t o r y ( ) { i f ( ! t h i s . e d i t o r ) r e t u r n ; c o n s t n = t h i s . e d i t o r . g e t V a l u e ( ) ; i f ( ! n ) r e t u r n ; c o n s t t = O b j e c t . k e y s ( t h i s . h i s t o r y ) . p o p ( ) ; i f ( t h i s . h i s t o r y [ t ] = = = n ) r e t u r n ; t h i s . h i s t o r y [ S t r i n g ( D a t e . n o w ( ) ) ] = n ; c o n s t i = J S O N . s t r i n g i f y ( t h i s . h i s t o r y ) ; w i n d o w . s e s s i o n S t o r a g e . s e t I t e m ( t h i s . h i s t o r y K e y , i ) } } v a r p g = P 0 ; c l a s s N 0 { c o n s t r u c t o r ( n ) { l r . h i g h l i g h t W i t h i n ( n ) } } v a r m g = N 0 ; c l a s s z 0 { c o n s t r u c t o r ( n ) { i f ( t h i s . e l e m = n , t h i s . t r i g g e r = n . q u e r y S e l e c t o r ( " [ c o l l a p s i b l e - t r i g g e r ] " ) , t h i s . c o n t e n t = n . q u e r y S e l e c t o r ( " [ c o l l a p s i b l e - c o n t e n t ] " ) , ! t h i s . t r i g g e r ) r e t u r n ; t h i s . t r i g g e r . a d d E v e n t L i s t e n e r ( " c l i c k " , t h i s . t o g g l e . b i n d ( t h i s ) ) , t h i s . o p e n I f C o n t a i n s E r r o r ( ) } o p e n ( ) { t h i s . e l e m . c l a s s L i s t . a d d ( " o p e n " ) , t h i s . t r i g g e r . s e t A t t r i b u t e ( " a r i a - e x p a n d e d " , " t r u e " ) , w i ( t h i s . c o n t e n t , 3 0 0 ) } c l o s e ( ) { t h i s . e l e m . c l a s s L i s t . r e m o v e ( " o p e n " ) , t h i s . t r i g g e r . s e t A t t r i b u t e ( " a r i a - e x p a n d e d " , " f a l s e " ) , b i ( t h i s . c o n t e n t , 3 0 0 ) } t o g g l e ( ) { t h i s . e l e m . c l a s s L i s t . c o n t a i n s ( " o p e n " ) ? t h i s . c l o s e ( ) : t h i s . o p e n ( ) } o p e n I f C o n t a i n s E r r o r ( ) { c o n s t n = t h i s . c o n t e n t . q u e r y S e l e c t o r ( " . t e x t - n e g . t e x t - s m a l l " ) ; n & & t h i s . o p e n ( ) } } v a r g g = z 0 ; c l a s s B 0 { c o n s t r u c t o r ( n ) { t
2021-04-09 16:18:32 -04:00
` ).map(p=>p.indexOf( ` drawio - diagram = "${u}" ` )!==-1?d:p).join( `
` );this.cm.setValue(f),this.cm.setCursor(i),this.cm.focus(),Or.close()}).catch(a=>{window. $ events.emit("error",this.imageUploadErrorText),console.log(a)})})}actionFullScreen(){const n=this.elem.classList.contains("fullscreen");this.elem.classList.toggle("fullscreen",!n),document.body.classList.toggle("markdown-fullscreen",!n)}scrollToText(n){if(!n)return;const t=this.cm.getValue(),i=t.split(/ \r ? \n /);let u=i.findIndex(c=>c&&c.indexOf(n)!==-1);if(u===-1)return;this.cm.scrollIntoView({line:u},200),this.cm.focus(),this.cm.setCursor({line:u,char:i[u].length})}listenForBookStackEditorEvents(){function n({html:t,markdown:i}){return i||t}window. $ events.listen("editor::replace",t=>{const i=n(t);this.cm.setValue(i)}),window. $ events.listen("editor::append",t=>{const i=this.cm.getCursor("from"),u=n(t),c=this.cm.getValue()+ `
` +u;this.cm.setValue(c),this.cm.setCursor(i.line,i.ch)}),window. $ events.listen("editor::prepend",t=>{const i=this.cm.getCursor("from"),u=n(t),c=u+ `
` +this.cm.getValue();this.cm.setValue(c);const h=u.split( `
2021-04-19 17:26:19 -04:00
` ).length;this.cm.setCursor(i.line+h,i.ch)}),window. $ events.listen("editor::insert",t=>{const i=n(t);this.cm.replaceSelection(i)}),window. $ events.listen("editor::focus",()=>{this.cm.focus()})}}var jg=ck;class dk{constructor(n){this.elem=n,this.inviteOption=n.querySelector("input[name=send_invite]"),this.inviteOption&&(this.inviteOption.addEventListener("change",this.inviteOptionChange.bind(this)),this.inviteOptionChange())}inviteOptionChange(){const n=this.inviteOption.value==="true",t=this.elem.querySelectorAll("input[type=password]");for(const u of t)u.disabled=n;const i=this.elem.querySelector("#password-input-container");i&&(i.style.display=n?"none":"block")}}var qg=dk;class fk{constructor(n){this.elem=n,this.type=n.getAttribute("notification"),this.textElem=n.querySelector("span"),this.autohide=this.elem.hasAttribute("data-autohide"),this.elem.style.display="grid",window. $ events.listen(this.type,t=>{this.show(t)}),n.addEventListener("click",this.hide.bind(this)),n.hasAttribute("data-show")&&setTimeout(()=>this.show(this.textElem.textContent),100),this.hideCleanup=this.hideCleanup.bind(this)}show(n=""){if(this.elem.removeEventListener("transitionend",this.hideCleanup),this.textElem.textContent=n,this.elem.style.display="grid",setTimeout(()=>{this.elem.classList.add("showing")},1),this.autohide){const t=n.split(" ").length,i=Math.max(2e3,1e3+250*t);setTimeout(this.hide.bind(this),i)}}hide(){this.elem.classList.remove("showing"),this.elem.addEventListener("transitionend",this.hideCleanup)}hideCleanup(){this.elem.style.display="none",this.elem.removeEventListener("transitionend",this.hideCleanup)}}var Ug=fk;class hk{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")})}}var Hg=hk;class pk{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(n){let t=n.target.closest("[action]");if(n.target.matches('a[href^="#"]')){const c=n.target.href.split("#")[1];io(document.querySelector("#"+c))}if(t===null)return;n.preventDefault();const i=t.getAttribute("action"),u=t.closest("[comment]");i==="edit"&&this.editComment(u),i==="closeUpdateForm"&&this.closeUpdateForm(),i==="delete"&&this.deleteComment(u),i==="addComment"&&this.showForm(),i==="hideForm"&&this.hideForm(),i==="reply"&&this.setReply(u),i==="remove-reply-to"&&this.removeReplyTo()}closeUpdateForm(){if(!this.editingComment)return;this.editingComment.querySelector("[comment-content]").style.display="block",this.editingComment.querySelector("[comment-edit-container]").style.display="none"}editComment(n){this.hideForm(),this.editingComment&&this.closeUpdateForm(),n.querySelector("[comment-content]").style.display="none",n.querySelector("[comment-edit-container]").style.display="block";let t=n.querySelector("[comment-edit-container] textarea"),i=t.value.split( `
` ).length;t.style.height=i*20+40+"px",this.editingComment=n}updateComment(n){let t=n.target;n.preventDefault();let i=t.querySelector("textarea").value,u={text:i,parent_id:this.parentId||null};this.showLoading(t);let c=this.editingComment.getAttribute("comment");window. $ http.put( ` / comment / $ { c } ` ,u).then(h=>{let a=document.createElement("div");a.innerHTML=h.data,this.editingComment.innerHTML=a.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(t)})}deleteComment(n){let t=n.getAttribute("comment");this.showLoading(n.querySelector("[comment-content]")),window. $ http.delete( ` / comment / $ { t } ` ).then(i=>{n.parentNode.removeChild(n),window. $ events.success(this.deletedText),this.updateCount(),this.hideForm()})}saveComment(n){n.preventDefault(),n.stopPropagation();let t=this.formInput.value,i={text:t,parent_id:this.parentId||null};this.showLoading(this.form),window. $ http.post( ` / comment / $ { this . pageId } ` ,i).then(u=>{let c=document.createElement("div");c.innerHTML=u.data;let h=c.children[0];this.container.appendChild(h),window.components.init(h),window. $ events.success(this.createdText),this.resetForm(),this.updateCount()}).catch(u=>{window. $ events.showValidationErrors(u),this.hideLoading(this.form)})}updateCount(){let n=this.container.children.length;this.elem.querySelector("[comments-title]").textContent=window.trans_plural(this.countText,n,{count:n})}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(n){this.showForm(),this.parentId=Number(n.getAttribute("local-id")),this.replyToRow.style.display="block";const t=this.replyToRow.querySelector("a");t.textContent= ` # $ { this . parentId } ` ,t.href= ` # comment$ { this . parentId } ` }removeReplyTo(){this.parentId=null,this.replyToRow.style.display="none"}showLoading(n){const t=n.querySelectorAll(".form-group");for(let i of t)i.style.display="none";n.querySelector(".form-group.loading").style.display="block"}hideLoading(n){const t=n.querySelectorAll(".form-group");for(let i of t)i.style.display="block";n.querySelector(".form-group.loading").style.display="none"}}var Wg=pk;const $ g=St(Ms());class mk{constructor(n){if(this.elem=n,this.pageId=n.getAttribute("page-display"),lr.highlight(),this.setupPointer(),this.setupNavHighlighting(),this.setupDetailsCodeBlockRefresh(),window.location.hash){let i=window.location.hash.replace(/ \% 20/g," ").substr(1);this.goToText(i)}const t=document.querySelector(".sidebar-page-nav");t&&qt(t,"a","click",(i,u)=>{i.preventDefault(),window.components["tri-layout"][0].showContent();const c=u.getAttribute("href").substr(1);this.goToText(c),window.history.pushState(null,null,"#"+c)})}goToText(n){const t=document.getElementById(n);if(da(".page-content [data-highlighted]",i=>{i.removeAttribute("data-highlighted"),i.style.backgroundColor=null}),t!==null)io(t);else{const i=Lm(".page-content > div > *",n);i&&io(i)}}setupPointer(){let n=document.getElementById("pointer");if(!n)return;n=n.parentNode.removeChild(n);const t=n.querySelector("div.pointer");let i=!1,u=!1,c=!0,h="";qt(n,"input","click",(d,f)=>{f.select(),d.stopPropagation()}),fa(n,["click","focus"],d=>{d.stopPropagation()}),qt(n,"span.icon","click",(d,f)=>{d.stopPropagation(),c=!c,f.querySelector('[data-icon="include"]').style.display=c?"none":"inline",f.querySelector('[data-icon="link
2020-09-20 05:33:18 -04:00
< 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" / >
2021-04-19 17:26:19 -04:00
< /svg>`)}`,cmd:"drawio",menu:[{text:"Drawing Manager",onclick(){let b=m.selection.getNode();d(m,a(b)?b:null)}}]}),m.on("dblclick",b=>{let S=m.selection.getNode();if(!a(S))return;f(m,S)}),m.on("SetContent",function(){const b=m.$("body > div[drawio-diagram]");if(!b.length)return;m.undoManager.transact(function(){b.each((S,E)=>{E.setAttribute("contenteditable","false")})})})})}function Nk(){window.tinymce.PluginManager.add("customhr",function(n){n.addCommand("InsertHorizontalRule",function(){let t=document.createElement("hr"),i=n.selection.getNode(),u=i.parentNode;u.insertBefore(t,i)}),n.addButton("hr",{icon:"hr",tooltip:"Horizontal line",cmd:"InsertHorizontalRule"}),n.addMenuItem("hr",{icon:"hr",text:"Horizontal line",cmd:"InsertHorizontalRule",context:"insert"})})}function zk(n){window.$events.listen("editor::replace",({html:t})=>{n.setContent(t)}),window.$events.listen("editor::append",({html:t})=>{const i=n.getContent()+t;n.setContent(i)}),window.$events.listen("editor::prepend",({html:t})=>{const i=t+n.getContent();n.setContent(i)}),window.$events.listen("editor::insert",({html:t})=>{n.insertContent(t)}),window.$events.listen("editor::focus",()=>{n.focus()})}class Bk{setup(){this.elem=this.$el,this.pageId=this.$opts.pageId,this.textDirection=this.$opts.textDirection,this.imageUploadErrorText=this.$opts.imageUploadErrorText,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(){Ok(),Nk();const n=document.querySelector("[drawio-url]");if(n){const t=n.getAttribute("drawio-url");Pk(t,this.isDarkMode,this.pageId,this),this.plugins+=" drawio"}this.textDirection==="rtl"&&(this.plugins+=" directionality")}getToolBar(){const n=this.textDirection==="rtl"?"ltr rtl":"";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 ${n} fullscreen`}getTinyMceConfig(){const n=this;return{selector:"#html-editor",content_css:[window.baseUrl("/dist/styles.css")],branding:!1,skin:this.isDarkMode?"dark":"lightgray",body_class:"page-content",browser_spellcheck:!0,relative_urls:!1,directionality:this.textDirection,remove_script_host:!1,document_base_url:window.baseUrl("/ "),end_container_on_empty_block:!0,statusbar:!1,menubar:!1,paste_data_images:!1,extended_valid_elements:" pre [ * ] , svg [ * ] , div [ drawio - diagram ] ",automatic_uploads:!1,valid_children:" - div [ p | h1 | h2 | h3 | h4 | h5 | h6 | blockquote ] , + div [ pre ] , + div [ img ] ",plugins:this.plugins,imagetools_toolbar:" imageoptions ",toolbar:this.getToolBar(),content_style:`html, body, html.dark-mode {background: ${this.isDarkMode?" # 222 ":" # fff "};} body {padding-left: 15px !important; padding-right: 15px !important; margin:0!important; margin-left:auto!important;margin-right:auto!important;}`,style_formats:[{title:" Header Large ",format:" h2 "},{title:" Header Medium ",format:" h3 "},{title:" Header Small ",format:" h4 "},{title:" Header Tiny ",format:" h5 "},{title:" Paragraph ",format:" p ",exact:!0,classes:" "},{title:" Blockquote ",format:" blockquote "},{title:" Code Block ",icon:" code ",cmd:" codeeditor ",format:" codeeditor "},{title:" Inline Code ",icon:" code ",inline:" code "},{title:" Callouts ",items:[{title:" Info ",format:" calloutinfo "},{title:" Success ",format:" calloutsuccess "},{title:" Warning ",format:" calloutwarning "},{title:" Danger ",format:" calloutdanger "}]}],style_formats_merge:!1,media_alt_source:!1,media_poster:!1,formats:{codeeditor:{selector:" p , h1 , h2 , h3 , h4 , h5 , h6 , td , th , div "},alignleft:{selector:" p , h1 , h2 , h3 , h4 , h5 , h6 , td , th , div , ul , ol , li , table , img ",classes:" align - left "},aligncenter:{selector:" p , h1 , h2 , h3 , h4 , h5 , h6 , td , th , div , ul , ol , li , table , img ",classes:" align - center "},alignright:{selector:" p , h1 , h2 , h3 , h4 , h5 , h6 , td ,
2019-08-31 09:16:14 -04:00
/ * !
2021-04-09 16:18:32 -04:00
* clipboard . js v2 . 0.8
2020-03-14 18:31:42 -04:00
* https : //clipboardjs.com/
2021-04-09 16:18:32 -04:00
*
2019-08-31 09:16:14 -04:00
* Licensed MIT © Zeno Rocha
* /
2021-04-09 16:18:32 -04:00
/ * * !
* Sortable 1.13 . 0
* @ author RubaXa < trash @ rubaxa . org >
* @ author owenm < owen23355 @ gmail . com >
* @ license MIT
* /
2020-09-20 05:33:18 -04:00
//# sourceMappingURL=app.js.map