2021-09-01 05:07:53 +08:00
( ( ) => { var bx = Object . create ; var Yo = Object . defineProperty ; var xx = Object . getOwnPropertyDescriptor ; var wx = Object . getOwnPropertyNames ; var kx = Object . getPrototypeOf , _x = Object . prototype . hasOwnProperty ; var zc = i => Yo ( i , "__esModule" , { value : ! 0 } ) ; var Sx = ( i , t ) => ( ) => ( i && ( t = i ( i = 0 ) ) , t ) ; var Me = ( i , t ) => ( ) => ( t || i ( ( t = { exports : { } } ) . exports , t ) , t . exports ) , Ex = ( i , t ) => { zc ( i ) ; for ( var n in t ) Yo ( i , n , { get : t [ n ] , enumerable : ! 0 } ) } , Cx = ( i , t , n ) => { if ( t && typeof t == "object" || typeof t == "function" ) for ( let l of wx ( t ) ) ! _x . call ( i , l ) && l !== "default" && Yo ( i , l , { get : ( ) => t [ l ] , enumerable : ! ( n = xx ( t , l ) ) || n . enumerable } ) ; return i } , _t = i => Cx ( zc ( Yo ( i != null ? bx ( kx ( i ) ) : { } , "default" , i && i . _ _esModule && "default" in i ? { get : ( ) => i . default , enumerable : ! 0 } : { value : i , enumerable : ! 0 } ) ) , i ) ; var Tt = Me ( ( Ys , Xs ) => { ( function ( i , t ) { typeof Ys == "object" && typeof Xs != "undefined" ? Xs . exports = t ( ) : typeof define == "function" && define . amd ? define ( t ) : ( i = i || self , i . CodeMirror = t ( ) ) } ) ( Ys , function ( ) { "use strict" ; var i = navigator . userAgent , t = navigator . platform , n = /gecko\/\d/i . test ( i ) , l = /MSIE \d/ . test ( i ) , c = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/ . exec ( i ) , f = /Edge\/(\d+)/ . exec ( i ) , a = l || c || f , h = a && ( l ? document . documentMode || 6 : + ( f || c ) [ 1 ] ) , d = ! f && /WebKit\// . test ( i ) , p = d && /Qt\/\d+\.\d+/ . test ( i ) , y = ! f && /Chrome\// . test ( i ) , g = /Opera\// . test ( i ) , v = /Apple Computer/ . test ( navigator . vendor ) , b = /Mac OS X 1\d\D([8-9]|\d\d)\D/ . test ( i ) , k = /PhantomJS/ . test ( i ) , S = v && ( /Mobile\/\w+/ . test ( i ) || navigator . maxTouchPoints > 2 ) , w = /Android/ . test ( i ) , F = S || w || /webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i . test ( i ) , _ = S || /Mac/ . test ( t ) , P = /\bCrOS\b/ . test ( i ) , O = /win/i . test ( t ) , H = g && i . match ( /Version\/(\d*\.\d*)/ ) ; H && ( H = Number ( H [ 1 ] ) ) , H && H >= 15 && ( g = ! 1 , d = ! 0 ) ; var U = _ && ( p || g && ( H == null || H < 12.11 ) ) , J = n || a && h >= 9 ; function G ( e ) { return new RegExp ( "(^|\\s)" + e + "(?:$|\\s)\\s*" ) } var Y = function ( e , r ) { var s = e . className , o = G ( r ) . exec ( s ) ; if ( o ) { var u = s . slice ( o . index + o [ 0 ] . length ) ; e . className = s . slice ( 0 , o . index ) + ( u ? o [ 1 ] + u : "" ) } } ; function K ( e ) { for ( var r = e . childNodes . length ; r > 0 ; -- r ) e . removeChild ( e . firstChild ) ; return e } function q ( e , r ) { return K ( e ) . appendChild ( r ) } function T ( e , r , s , o ) { var u = document . createElement ( e ) ; if ( s && ( u . className = s ) , o && ( u . style . cssText = o ) , typeof r == "string" ) u . appendChild ( document . createTextNode ( r ) ) ; else if ( r ) for ( var m = 0 ; m < r . length ; ++ m ) u . appendChild ( r [ m ] ) ; return u } function A ( e , r , s , o ) { var u = T ( e , r , s , o ) ; return u . setAttribute ( "role" , "presentation" ) , u } var $ ; document . createRange ? $ = function ( e , r , s , o ) { var u = document . createRange ( ) ; return u . setEnd ( o || e , s ) , u . setStart ( e , r ) , u } : $ = function ( e , r , s ) { var o = document . body . createTextRange ( ) ; try { o . moveToElementText ( e . parentNode ) } catch ( u ) { return o } return o . collapse ( ! 0 ) , o . moveEnd ( "character" , s ) , o . moveStart ( "character" , r ) , o } ; function te ( e , r ) { if ( r . nodeType == 3 && ( r = r . parentNode ) , e . contains ) return e . contains ( r ) ; do if ( r . nodeType == 11 && ( r = r . host ) , r == e ) return ! 0 ; while ( r = r . parentNode ) } function j ( ) { var e ; try { e = document . activeElement } catch ( r ) { e = document . body || null } for ( ; e && e . shadowRoot && e . shadowRoot . activeElement ; ) e = e . shadowRoot . activeElement ; return e } function N ( e , r ) { var s = e . className ; G ( r ) . test ( s ) || ( e . className += ( s ? " " : "" ) + r ) } function oe ( e , r ) { for ( var s = e . split ( " " ) , o = 0 ; o < s . length ; o ++ ) s [ o ] && ! G ( s [ o ] ) . test ( r ) && ( r += " " + s [ o ] ) ; return r } var ae = function ( e ) { e . select ( ) } ; S ? ae = function ( e ) { e . selectionStart = 0 , e . selectionEnd = e . value . length } : a && ( ae = function ( e ) { try { e . select ( ) } catch ( r ) { } } ) ; function M ( 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 ye ( e , r , s , o , u ) { r == null && ( r = e . search ( /[^\s\u00a0]/ ) , r == - 1 && ( r = e . length ) ) ; for ( var m = o || 0 , x = u || 0 ; ; ) { var E = e . indexOf ( " " , m ) ; if ( E < 0 || E >= r ) return x + ( r - m ) ; x += E - m , x += s - x % s , m = E + 1 } } var Fe = function ( ) { this . id = null , this . f = null , this . time = 0 , this . handler = M ( this . onTimeout , this ) } ; Fe . prototype . onTimeout = function ( e ) { e . id = 0 , e . time <= + new Date ? e . f ( ) : setTimeout ( e . handler , e . time - + new Date ) } , Fe . 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 _e
2020-09-20 17:33:18 +08:00
2021-05-30 23:17:56 +08:00
b ` .split(/ \n /).length!=3?function(e){for(var r=0,s=[],o=e.length;r<=o;){var u=e.indexOf( `
2021-09-01 05:07:53 +08:00
` ,r);u==-1&&(u=e.length);var m=e.slice(r,e.charAt(u-1)==" \r "?u-1:u),x=m.indexOf(" \r ");x!=-1?(s.push(m.slice(0,x)),r+=x+1):(s.push(m),r=u+1)}return s}:function(e){return e.split(/ \r \n ?| \n /)},ie=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(r){return!1}}:function(e){var r;try{r=e.ownerDocument.selection.createRange()}catch(s){}return!r||r.parentElement()!=e?!1:r.compareEndPoints("StartToEnd",r)!=0},Z=function(){var e=T("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),re=null;function R(e){if(re!=null)return re;var r=q(e,T("span","x")),s=r.getBoundingClientRect(),o= $ (r,0,1).getBoundingClientRect();return re=Math.abs(s.left-o.left)>1}var z={},ee={};function ce(e,r){arguments.length>2&&(r.dependencies=Array.prototype.slice.call(arguments,2)),z[e]=r}function me(e,r){ee[e]=r}function ve(e){if(typeof e=="string"&&ee.hasOwnProperty(e))e=ee[e];else if(e&&typeof e.name=="string"&&ee.hasOwnProperty(e.name)){var r=ee[e.name];typeof r=="string"&&(r={name:r}),e=He(r,e),e.name=r.name}else{if(typeof e=="string"&&/^[ \w \- ]+ \/ [ \w \- ]+ \+ xml $ /.test(e))return ve("application/xml");if(typeof e=="string"&&/^[ \w \- ]+ \/ [ \w \- ]+ \+ json $ /.test(e))return ve("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Le(e,r){r=ve(r);var s=z[r.name];if(!s)return Le(e,"text/plain");var o=s(e,r);if(Oe.hasOwnProperty(r.name)){var u=Oe[r.name];for(var m in u)!u.hasOwnProperty(m)||(o.hasOwnProperty(m)&&(o["_"+m]=o[m]),o[m]=u[m])}if(o.name=r.name,r.helperType&&(o.helperType=r.helperType),r.modeProps)for(var x in r.modeProps)o[x]=r.modeProps[x];return o}var Oe={};function Ee(e,r){var s=Oe.hasOwnProperty(e)?Oe[e]:Oe[e]={};L(r,s)}function Ve(e,r){if(r===!0)return r;if(e.copyState)return e.copyState(r);var s={};for(var o in r){var u=r[o];u instanceof Array&&(u=u.concat([])),s[o]=u}return s}function St(e,r){for(var s;e.innerMode&&(s=e.innerMode(r),!(!s||s.mode==e));)r=s.state,e=s.mode;return s||{mode:e,state:r}}function mt(e,r,s){return e.startState?e.startState(r,s):!0}var W=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};W.prototype.eol=function(){return this.pos>=this.string.length},W.prototype.sol=function(){return this.pos==this.lineStart},W.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},W.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},W.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},W.prototype.eatWhile=function(e){for(var r=this.pos;this.eat(e););return this.pos>r},W.prototype.eatSpace=function(){for(var e=this.pos;/[ \s \u 00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},W.prototype.skipToEnd=function(){this.pos=this.string.length},W.prototype.skipTo=function(e){var r=this.string.indexOf(e,this.pos);if(r>-1)return this.pos=r,!0},W.prototype.backUp=function(e){this.pos-=e},W.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=ye(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?ye(this.string,this.lineStart,this.tabSize):0)},W.prototype.indentation=function(){return ye(this.string,null,this.tabSize)-(this.lineStart?ye(this.string,this.lineStart,this.tabSize):0)},W.prototype.match=function(e,r,s){if(typeof e=="string"){var o=function(x){return s?x.toLowerCase():x},u=this.string.substr(this.pos,e.length);if(o(u)==o(e))return r!==!1&&(this.pos+=e.length),!0}else{var m=this.string.slice(this.pos).match(e);return m&&m.index>0?null:(m&&r!==!1&&(this.pos+=m[0].length),m)}},W.prototype.current=function(){return this.string.slice(this.start,this.pos)},W.prototype.hideFirstChars=function(e,r){this.lineStart+=e;try{return r()}finally{this.lineStart-=e}},W.prototype.lookAhead=function(e){var r=this.lineOracle;return r&&r.lookAhead(e)},W.prototype.baseToke
` ?(Te=V.appendChild(T("span",fe[0]==" \r "?" \u 240D":" \u 2424","cm-invalidchar")),Te.setAttribute("cm-text",fe[0]),e.col+=1):(Te=e.cm.options.specialCharPlaceholder(fe[0]),Te.setAttribute("cm-text",fe[0]),a&&h<9?V.appendChild(T("span",[Te])):V.appendChild(Te),e.col+=1);e.map.push(e.pos,e.pos+1,Te),e.pos++}}if(e.trailingSpace=E.charCodeAt(r.length-1)==32,s||o||u||D||m||x){var tt=s||"";o&&(tt+=o),u&&(tt+=u);var $ e=T("span",[V],tt,m);if(x)for(var nt in x)x.hasOwnProperty(nt)&&nt!="style"&&nt!="class"&& $ e.setAttribute(nt,x[nt]);return e.content.appendChild( $ e)}e.content.appendChild(V)}}function By(e,r){if(e.length>1&&!/ /.test(e))return e;for(var s=r,o="",u=0;u<e.length;u++){var m=e.charAt(u);m==" "&&s&&(u==e.length-1||e.charCodeAt(u+1)==32)&&(m=" \x A0"),o+=m,s=m==" "}return o}function qy(e,r){return function(s,o,u,m,x,E,C){u=u?u+" cm-force-border":"cm-force-border";for(var D=s.pos,V=D+o.length;;){for(var Q=void 0,fe=0;fe<r.length&&(Q=r[fe],!(Q.to>D&&Q.from<=D));fe++);if(Q.to>=V)return e(s,o,u,m,x,E,C);e(s,o.slice(0,Q.to-D),u,m,null,E,C),m=null,o=o.slice(Q.to-D),D=Q.to}}}function tu(e,r,s,o){var u=!o&&s.widgetNode;u&&e.map.push(e.pos,e.pos+r,u),!o&&e.cm.display.input.needsContentAttribute&&(u||(u=e.content.appendChild(document.createElement("span"))),u.setAttribute("cm-marker",s.id)),u&&(e.cm.display.input.setUneditable(u),e.content.appendChild(u)),e.pos+=r,e.trailingSpace=!1}function jy(e,r,s){var o=e.markedSpans,u=e.text,m=0;if(!o){for(var x=1;x<s.length;x+=2)r.addToken(r,u.slice(m,m=s[x]),Jl(s[x+1],r.cm.options));return}for(var E=u.length,C=0,D=1,V="",Q,fe,le=0,xe,Te,Pe,je,tt;;){if(le==C){xe=Te=Pe=fe="",tt=null,je=null,le=1/0;for(var $ e=[],nt=void 0,ct=0;ct<o.length;++ct){var ut=o[ct],vt=ut.marker;if(vt.type=="bookmark"&&ut.from==C&&vt.widgetNode) $ e.push(vt);else if(ut.from<=C&&(ut.to==null||ut.to>C||vt.collapsed&&ut.to==C&&ut.from==C)){if(ut.to!=null&&ut.to!=C&&le>ut.to&&(le=ut.to,Te=""),vt.className&&(xe+=" "+vt.className),vt.css&&(fe=(fe?fe+";":"")+vt.css),vt.startStyle&&ut.from==C&&(Pe+=" "+vt.startStyle),vt.endStyle&&ut.to==le&&(nt||(nt=[])).push(vt.endStyle,ut.to),vt.title&&((tt||(tt={})).title=vt.title),vt.attributes)for(var Pt in vt.attributes)(tt||(tt={}))[Pt]=vt.attributes[Pt];vt.collapsed&&(!je||Ha(je.marker,vt)<0)&&(je=ut)}else ut.from>C&&le>ut.from&&(le=ut.from)}if(nt)for(var ir=0;ir<nt.length;ir+=2)nt[ir+1]==le&&(Te+=" "+nt[ir]);if(!je||je.from==C)for(var Bt=0;Bt< $ e.length;++Bt)tu(r,0, $ e[Bt]);if(je&&(je.from||0)==C){if(tu(r,(je.to==null?E+1:je.to)-C,je.marker,je.from==null),je.to==null)return;je.to==C&&(je=!1)}}if(C>=E)break;for(var Lr=Math.min(E,le);;){if(V){var Sr=C+V.length;if(!je){var Xt=Sr>Lr?V.slice(0,Lr-C):V;r.addToken(r,Xt,Q?Q+xe:xe,Pe,C+Xt.length==le?Te:"",fe,tt)}if(Sr>=Lr){V=V.slice(Lr-C),C=Lr;break}C=Sr,Pe=""}V=u.slice(m,m=s[D++]),Q=Jl(s[D++],r.cm.options)}}}function ru(e,r,s){this.line=r,this.rest=Fy(r),this.size=this.rest?Ye(Re(this.rest))-s+1:1,this.node=this.text=null,this.hidden=gn(e,r)}function Eo(e,r,s){for(var o=[],u,m=r;m<s;m=u){var x=new ru(e.doc,se(e.doc,m),m);u=m+x.size,o.push(x)}return o}var Kn=null;function $ y(e){Kn?Kn.ops.push(e):e.ownsGroup=Kn={ops:[e],delayedCallbacks:[]}}function Uy(e){var r=e.delayedCallbacks,s=0;do{for(;s<r.length;s++)r[s].call(null);for(var o=0;o<e.ops.length;o++){var u=e.ops[o];if(u.cursorActivityHandlers)for(;u.cursorActivityCalled<u.cursorActivityHandlers.length;)u.cursorActivityHandlers[u.cursorActivityCalled++].call(null,u.cm)}}while(s<r.length)}function Hy(e,r){var s=e.ownsGroup;if(!!s)try{Uy(s)}finally{Kn=null,r(s)}}var Ai=null;function tr(e,r){var s=Mt(e,r);if(!!s.length){var o=Array.prototype.slice.call(arguments,2),u;Kn?u=Kn.delayedCallbacks:Ai?u=Ai:(u=Ai=[],setTimeout(Wy,0));for(var m=function(E){u.push(function(){return s[E].apply(null,o)})},x=0;x<s.length;++x)m(x)}}function Wy(){var e=Ai;Ai=null;for(var r=0;r<e.length;++r)e[r]()}function nu(e,r,s,o){for(var u=0;u<r.changes.length;u++){var m=r.changes[u];m=="text"?Ky(e,r):m=="gutter"?ou(e,r,s,o):m=="class"?Va(e,r):m=="widget"&&Vy(e,r,o)}r.changes=null}function Li(e){return e.node==e.text&&(e.node=T("d
2021-05-30 23:17:56 +08:00
top : ` +nt+"px; width: "+(ct==null?C- $ e:ct)+ ` px ;
2021-09-01 05:07:53 +08:00
height : ` +(ut-nt)+"px"))}function Q( $ e,nt,ct){var ut=se(u, $ e),vt=ut.text.length,Pt,ir;function Bt(Xt,Er){return Ao(e,we( $ e,Xt),"div",ut,Er)}function Lr(Xt,Er,ur){var Jt=xu(e,ut,null,Xt),Zt=Er=="ltr"==(ur=="after")?"left":"right", $ t=ur=="after"?Jt.begin:Jt.end-(/ \s /.test(ut.text.charAt(Jt.end-1))?2:1);return Bt( $ t,Zt)[Zt]}var Sr=Lt(ut,u.direction);return Xe(Sr,nt||0,ct==null?vt:ct,function(Xt,Er,ur,Jt){var Zt=ur=="ltr", $ t=Bt(Xt,Zt?"left":"right"),Cr=Bt(Er-1,Zt?"right":"left"),ui=nt==null&&Xt==0,Sn=ct==null&&Er==vt,gr=Jt==0,Qr=!Sr||Jt==Sr.length-1;if(Cr.top- $ t.top<=3){var or=(D?ui:Sn)&&gr,Ds=(D?Sn:ui)&&Qr,fn=or?E:(Zt? $ t:Cr).left,Rn=Ds?C:(Zt?Cr: $ t).right;V(fn, $ t.top,Rn-fn, $ t.bottom)}else{var zn,xr,ci,Is;Zt?(zn=D&&ui&&gr?E: $ t.left,xr=D?C:Lr(Xt,ur,"before"),ci=D?E:Lr(Er,ur,"after"),Is=D&&Sn&&Qr?C:Cr.right):(zn=D?Lr(Xt,ur,"before"):E,xr=!D&&ui&&gr?C: $ t.right,ci=!D&&Sn&&Qr?E:Cr.left,Is=D?Lr(Er,ur,"after"):C),V(zn, $ t.top,xr-zn, $ t.bottom), $ t.bottom<Cr.top&&V(E, $ t.bottom,null,Cr.top),V(ci,Cr.top,Is-ci,Cr.bottom)}(!Pt||Do( $ t,Pt)<0)&&(Pt= $ t),Do(Cr,Pt)<0&&(Pt=Cr),(!ir||Do( $ t,ir)<0)&&(ir= $ t),Do(Cr,ir)<0&&(ir=Cr)}),{start:Pt,end:ir}}var fe=r.from(),le=r.to();if(fe.line==le.line)Q(fe.line,fe.ch,le.ch);else{var xe=se(u,fe.line),Te=se(u,le.line),Pe=Yr(xe)==Yr(Te),je=Q(fe.line,fe.ch,Pe?xe.text.length+1:null).end,tt=Q(le.line,Pe?0:null,le.ch).start;Pe&&(je.top<tt.top-2?(V(je.right,je.top,null,je.bottom),V(E,tt.top,tt.left,tt.bottom)):V(je.right,je.top,tt.left-je.right,je.bottom)),je.bottom<tt.top&&V(E,je.bottom,null,tt.top)}s.appendChild(m)}function os(e){if(!!e.state.focused){var r=e.display;clearInterval(r.blinker);var s=!0;r.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?r.blinker=setInterval(function(){e.hasFocus()||Zn(e),r.cursorDiv.style.visibility=(s=!s)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(r.cursorDiv.style.visibility="hidden")}}function Eu(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||ss(e))}function as(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Zn(e))},100)}function ss(e,r){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(rt(e,"focus",e,r),e.state.focused=!0,N(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),d&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),os(e))}function Zn(e,r){e.state.delayingBlurEvent||(e.state.focused&&(rt(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 Io(e){for(var r=e.display,s=r.lineDiv.offsetTop,o=0;o<r.view.length;o++){var u=r.view[o],m=e.options.lineWrapping,x=void 0,E=0;if(!u.hidden){if(a&&h<8){var C=u.node.offsetTop+u.node.offsetHeight;x=C-s,s=C}else{var D=u.node.getBoundingClientRect();x=D.bottom-D.top,!m&&u.text.firstChild&&(E=u.text.firstChild.getBoundingClientRect().right-D.left-1)}var V=u.line.height-x;if((V>.005||V<-.005)&&(Ae(u.line,x),Cu(u.line),u.rest))for(var Q=0;Q<u.rest.length;Q++)Cu(u.rest[Q]);if(E>e.display.sizerWidth){var fe=Math.ceil(E/Xn(e.display));fe>e.display.maxLineLength&&(e.display.maxLineLength=fe,e.display.maxLine=u.line,e.display.maxLineChanged=!0)}}}}function Cu(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 Fo(e,r,s){var o=s&&s.top!=null?Math.max(0,s.top):e.scroller.scrollTop;o=Math.floor(o-Co(e));var u=s&&s.bottom!=null?s.bottom:o+e.wrapper.clientHeight,m=et(r,o),x=et(r,u);if(s&&s.ensure){var E=s.ensure.from.line,C=s.ensure.to.line;E<m?(m=E,x=et(r,ln(se(r,E))+e.wrapper.clientHeight)):Math.min(C,r.lastLine())>=x&&(m=et(r,ln(se(r,C))-e.wrapper.clientHeight),x=C)}return{from:m,to:Math.max(x,m+1)}}function sb(e,r){if(!wt(e,"scrollCursorIntoView")){var s=e.display,o=s.sizer.getBoundingClientRect(),u
top : ` +(r.top-s.viewOffset-Co(e.display))+ ` px ;
2021-05-30 23:17:56 +08:00
height : ` +(r.bottom-r.top+Xr(e)+s.barHeight)+ ` px ;
2021-09-01 05:07:53 +08:00
left : ` +r.left+"px; width: "+Math.max(2,r.right-r.left)+"px;");e.display.lineSpace.appendChild(m),m.scrollIntoView(u),e.display.lineSpace.removeChild(m)}}}function lb(e,r,s,o){o==null&&(o=0);var u;!e.options.lineWrapping&&r==s&&(s=r.sticky=="before"?we(r.line,r.ch+1,"before"):r,r=r.ch?we(r.line,r.sticky=="before"?r.ch-1:r.ch,"after"):r);for(var m=0;m<5;m++){var x=!1,E=Ur(e,r),C=!s||s==r?E:Ur(e,s);u={left:Math.min(E.left,C.left),top:Math.min(E.top,C.top)-o,right:Math.max(E.left,C.left),bottom:Math.max(E.bottom,C.bottom)+o};var D=ls(e,u),V=e.doc.scrollTop,Q=e.doc.scrollLeft;if(D.scrollTop!=null&&(Oi(e,D.scrollTop),Math.abs(e.doc.scrollTop-V)>1&&(x=!0)),D.scrollLeft!=null&&(Fn(e,D.scrollLeft),Math.abs(e.doc.scrollLeft-Q)>1&&(x=!0)),!x)break}return u}function ub(e,r){var s=ls(e,r);s.scrollTop!=null&&Oi(e,s.scrollTop),s.scrollLeft!=null&&Fn(e,s.scrollLeft)}function ls(e,r){var s=e.display,o=Yn(e.display);r.top<0&&(r.top=0);var u=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:s.scroller.scrollTop,m=Xa(e),x={};r.bottom-r.top>m&&(r.bottom=r.top+m);var E=e.doc.height+Ya(s),C=r.top<o,D=r.bottom>E-o;if(r.top<u)x.scrollTop=C?0:r.top;else if(r.bottom>u+m){var V=Math.min(r.top,(D?E:r.bottom)-m);V!=u&&(x.scrollTop=V)}var Q=e.options.fixedGutter?0:s.gutters.offsetWidth,fe=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:s.scroller.scrollLeft-Q,le=An(e)-s.gutters.offsetWidth,xe=r.right-r.left>le;return xe&&(r.right=r.left+le),r.left<10?x.scrollLeft=0:r.left<fe?x.scrollLeft=Math.max(0,r.left+Q-(xe?0:10)):r.right>le+fe-3&&(x.scrollLeft=r.right+(xe?0:10)-le),x}function us(e,r){r!=null&&(Mo(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+r)}function Qn(e){Mo(e);var r=e.getCursor();e.curOp.scrollToPos={from:r,to:r,margin:e.options.cursorScrollMargin}}function Mi(e,r,s){(r!=null||s!=null)&&Mo(e),r!=null&&(e.curOp.scrollLeft=r),s!=null&&(e.curOp.scrollTop=s)}function cb(e,r){Mo(e),e.curOp.scrollToPos=r}function Mo(e){var r=e.curOp.scrollToPos;if(r){e.curOp.scrollToPos=null;var s=yu(e,r.from),o=yu(e,r.to);Tu(e,s,o,r.margin)}}function Tu(e,r,s,o){var u=ls(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});Mi(e,u.scrollLeft,u.scrollTop)}function Oi(e,r){Math.abs(e.doc.scrollTop-r)<2||(n||fs(e,{top:r}),Au(e,r,!0),n&&fs(e),zi(e,100))}function Au(e,r,s){r=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,r)),!(e.display.scroller.scrollTop==r&&!s)&&(e.doc.scrollTop=r,e.display.scrollbars.setScrollTop(r),e.display.scroller.scrollTop!=r&&(e.display.scroller.scrollTop=r))}function Fn(e,r,s,o){r=Math.max(0,Math.min(r,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((s?r==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-r)<2)&&!o)&&(e.doc.scrollLeft=r,Mu(e),e.display.scroller.scrollLeft!=r&&(e.display.scroller.scrollLeft=r),e.display.scrollbars.setScrollLeft(r))}function Pi(e){var r=e.display,s=r.gutters.offsetWidth,o=Math.round(e.doc.height+Ya(e.display));return{clientHeight:r.scroller.clientHeight,viewHeight:r.wrapper.clientHeight,scrollWidth:r.scroller.scrollWidth,clientWidth:r.scroller.clientWidth,viewWidth:r.wrapper.clientWidth,barLeft:e.options.fixedGutter?s:0,docHeight:o,scrollHeight:o+Xr(e)+r.barHeight,nativeBarWidth:r.nativeBarWidth,gutterWidth:s}}var Mn=function(e,r,s){this.cm=s;var o=this.vert=T("div",[T("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),u=this.horiz=T("div",[T("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");o.tabIndex=u.tabIndex=-1,e(o),e(u),lt(o,"scroll",function(){o.clientHeight&&r(o.scrollTop,"vertical")}),lt(u,"scroll",function(){u.clientWidth&&r(u.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,a&&h<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Mn.prototype.update=function(e){var r=e.scrollWidth>e.clientWidth+1,s=e.scrollHeight>e.clientHeight+1,o=e.nativeBarWidth;if(s){this.vert.style.display="block",this.vert.style.bottom=r?o+"px":"0";var u=e.viewHeight-(r?o:0);this.vert.firs
` },setDirection:nr(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(r){return r.order=null}),this.cm&&Cb(this.cm))})}),_r.prototype.eachLine=_r.prototype.iter;var cc=0;function Bb(e){var r=this;if(fc(r),!(wt(r,e)||un(r.display,e))){kt(e),a&&(cc=+new Date);var s=Dn(r,e,!0),o=e.dataTransfer.files;if(!(!s||r.isReadOnly()))if(o&&o.length&&window.FileReader&&window.File)for(var u=o.length,m=Array(u),x=0,E=function(){++x==u&&rr(r,function(){s=Ze(r.doc,s);var le={from:s,to:s,text:r.doc.splitLines(m.filter(function(xe){return xe!=null}).join(r.doc.lineSeparator())),origin:"paste"};ri(r.doc,le),Yu(r.doc,bn(Ze(r.doc,s),Ze(r.doc,xn(le))))})()},C=function(le,xe){if(r.options.allowDropFileTypes&&be(r.options.allowDropFileTypes,le.type)==-1){E();return}var Te=new FileReader;Te.onerror=function(){return E()},Te.onload=function(){var Pe=Te.result;if(/[ \x 00- \x 08 \x 0e- \x 1f]{2}/.test(Pe)){E();return}m[xe]=Pe,E()},Te.readAsText(le)},D=0;D<o.length;D++)C(o[D],D);else{if(r.state.draggingText&&r.doc.sel.contains(s)>-1){r.state.draggingText(e),setTimeout(function(){return r.display.input.focus()},20);return}try{var V=e.dataTransfer.getData("Text");if(V){var Q;if(r.state.draggingText&&!r.state.draggingText.copy&&(Q=r.listSelections()),Bo(r.doc,bn(s,s)),Q)for(var fe=0;fe<Q.length;++fe)ni(r.doc,"",Q[fe].anchor,Q[fe].head,"drag");r.replaceSelection(V,"around","paste"),r.display.input.focus()}}catch(le){}}}}function qb(e,r){if(a&&(!e.state.draggingText||+new Date-cc<100)){Ir(r);return}if(!(wt(e,r)||un(e.display,r))&&(r.dataTransfer.setData("Text",e.getSelection()),r.dataTransfer.effectAllowed="copyMove",r.dataTransfer.setDragImage&&!v)){var s=T("img",null,null,"position: fixed; left: 0; top: 0;");s.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",g&&(s.width=s.height=1,e.display.wrapper.appendChild(s),s._top=s.offsetTop),r.dataTransfer.setDragImage(s,0,0),g&&s.parentNode.removeChild(s)}}function jb(e,r){var s=Dn(e,r);if(!!s){var o=document.createDocumentFragment();Su(e,s,o),e.display.dragCursor||(e.display.dragCursor=T("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),q(e.display.dragCursor,o)}}function fc(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function dc(e){if(!!document.getElementsByClassName){for(var r=document.getElementsByClassName("CodeMirror"),s=[],o=0;o<r.length;o++){var u=r[o].CodeMirror;u&&s.push(u)}s.length&&s[0].operation(function(){for(var m=0;m<s.length;m++)e(s[m])})}}var hc=!1;function $ b(){hc||(Ub(),hc=!0)}function Ub(){var e;lt(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,dc(Hb)},100))}),lt(window,"blur",function(){return dc(Zn)})}function Hb(e){var r=e.display;r.cachedCharWidth=r.cachedTextHeight=r.cachedPaddingH=null,r.scrollbarsClipped=!1,e.setSize()}for(var _n={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 "},Gi=0;Gi<10;Gi++)_n[Gi+48]=_n[Gi+96]=String(Gi);for(var $o=65;$o<=90;$o++)_n[$o]=String.fromCharCode($o);for(var Ki=1;Ki<=12;Ki++)_n[Ki+111]=_n[Ki+63235]=" F "+Ki;var cn={};cn.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 "},cn.pcDefault={" Ctrl - A ":" selectAll "," C
` ,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function vc(e,r){var s=se(e.doc,r),o=Yr(s);return o!=s&&(r=Ye(o)),_s(!0,e,o,r,1)}function Vb(e,r){var s=se(e.doc,r),o=Iy(s);return o!=s&&(r=Ye(o)),_s(!0,e,s,r,-1)}function yc(e,r){var s=vc(e,r.line),o=se(e.doc,s.line),u=Lt(o,e.doc.direction);if(!u||u[0].level==0){var m=Math.max(s.ch,o.text.search(/ \S /)),x=r.line==s.line&&r.ch<=m&&r.ch;return we(s.line,x?0:m,s.sticky)}return s}function Ho(e,r,s){if(typeof r=="string"&&(r=Vi[r],!r))return!1;e.display.input.ensurePolled();var o=e.display.shift,u=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),s&&(e.display.shift=!1),u=r(e)!=ze}finally{e.display.shift=o,e.state.suppressEdits=!1}return u}function Yb(e,r,s){for(var o=0;o<e.state.keyMaps.length;o++){var u=oi(r,e.state.keyMaps[o],s,e);if(u)return u}return e.options.extraKeys&&oi(r,e.options.extraKeys,s,e)||oi(r,e.options.keyMap,s,e)}var Xb=new Fe;function Yi(e,r,s,o){var u=e.state.keySeq;if(u){if(pc(r))return"handled";if(/ \' $ /.test(r)?e.state.keySeq=null:Xb.set(50,function(){e.state.keySeq==u&&(e.state.keySeq=null,e.display.input.reset())}),bc(e,u+" "+r,s,o))return!0}return bc(e,r,s,o)}function bc(e,r,s,o){var u=Yb(e,r,o);return u=="multi"&&(e.state.keySeq=r),u=="handled"&&tr(e,"keyHandled",e,r,s),(u=="handled"||u=="multi")&&(kt(s),os(e)),!!u}function xc(e,r){var s=gc(r,!0);return s?r.shiftKey&&!e.state.keySeq?Yi(e,"Shift-"+s,r,function(o){return Ho(e,o,!0)})||Yi(e,s,r,function(o){if(typeof o=="string"?/^go[A-Z]/.test(o):o.motion)return Ho(e,o)}):Yi(e,s,r,function(o){return Ho(e,o)}):!1}function Zb(e,r,s){return Yi(e,"'"+s+"'",r,function(o){return Ho(e,o,!0)})}var Ss=null;function wc(e){var r=this;if(!(e.target&&e.target!=r.display.input.getField())&&(r.curOp.focus=j(),!wt(r,e))){a&&h<11&&e.keyCode==27&&(e.returnValue=!1);var s=e.keyCode;r.display.shift=s==16||e.shiftKey;var o=xc(r,e);g&&(Ss=o?s:null,!o&&s==88&&!Z&&(_?e.metaKey:e.ctrlKey)&&r.replaceSelection("",null,"cut")),n&&!_&&!o&&s==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),s==18&&!/ \b CodeMirror-crosshair \b /.test(r.display.lineDiv.className)&&Qb(r)}}function Qb(e){var r=e.display.lineDiv;N(r,"CodeMirror-crosshair");function s(o){(o.keyCode==18||!o.altKey)&&(Y(r,"CodeMirror-crosshair"),pt(document,"keyup",s),pt(document,"mouseover",s))}lt(document,"keyup",s),lt(document,"mouseover",s)}function kc(e){e.keyCode==16&&(this.doc.sel.shift=!1),wt(this,e)}function _c(e){var r=this;if(!(e.target&&e.target!=r.display.input.getField())&&!(un(r.display,e)||wt(r,e)||e.ctrlKey&&!e.altKey||_&&e.metaKey)){var s=e.keyCode,o=e.charCode;if(g&&s==Ss){Ss=null,kt(e);return}if(!(g&&(!e.which||e.which<10)&&xc(r,e))){var u=String.fromCharCode(o==null?s:o);u!=" \b "&&(Zb(r,e,u)||r.display.input.onKeyPress(e))}}}var Jb=400,Es=function(e,r,s){this.time=e,this.pos=r,this.button=s};Es.prototype.compare=function(e,r,s){return this.time+Jb>e&&I(r,this.pos)==0&&s==this.button};var Xi,Zi;function ex(e,r){var s=+new Date;return Zi&&Zi.compare(s,e,r)?(Xi=Zi=null,"triple"):Xi&&Xi.compare(s,e,r)?(Zi=new Es(s,e,r),Xi=null,"double"):(Xi=new Es(s,e,r),Zi=null,"single")}function Sc(e){var r=this,s=r.display;if(!(wt(r,e)||s.activeTouch&&s.input.supportsTouch())){if(s.input.ensurePolled(),s.shift=e.shiftKey,un(s,e)){d||(s.scroller.draggable=!1,setTimeout(function(){return s.scroller.draggable=!0},100));return}if(!Cs(r,e)){var o=Dn(r,e),u=pr(e),m=o?ex(o,u):"single";window.focus(),u==1&&r.state.selectingText&&r.state.selectingText(e),!(o&&tx(r,u,o,m,e))&&(u==1?o?nx(r,o,m,e):hr(e)==s.scroller&&kt(e):u==2?(o&&No(r.doc,o),setTimeout(function(){return s.input.focus()},20)):u==3&&(J?r.display.input.onContextMenu(e):as(r)))}}}function tx(e,r,s,o,u){var m="Click";return o=="double"?m="Double"+m:o=="triple"&&(m="Triple"+m),m=(r==1?"Left":r==2?"Middle":"Right")+m,Yi(e,mc(m,u),u,function(x){if(typeof x=="string"&&(x=Vi[x]),!x)return!1;var E=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),E=x(e,s)!=ze}finally{e.state.suppressEdits=!1}return E})}function rx(e,r,s){var o=e.getOption("configureMouse"),u=o?o(e,r,s):{};if(u.unit
` )==r){if(o.ranges.length%Wr.text.length==0){D=[];for(var V=0;V<Wr.text.length;V++)D.push(m.splitLines(Wr.text[V]))}}else C.length==o.ranges.length&&e.options.pasteLinesPerSelection&&(D=Ie(C,function(je){return[je]}));for(var Q=e.curOp.updateInput,fe=o.ranges.length-1;fe>=0;fe--){var le=o.ranges[fe],xe=le.from(),Te=le.to();le.empty()&&(s&&s>0?xe=we(xe.line,xe.ch-s):e.state.overwrite&&!E?Te=we(Te.line,Math.min(se(m,Te.line).text.length,Te.ch+Re(C).length)):E&&Wr&&Wr.lineWise&&Wr.text.join( `
2021-05-30 23:17:56 +08:00
` )==C.join( `
2021-09-01 05:07:53 +08:00
` )&&(xe=Te=we(xe.line,0)));var Pe={from:xe,to:Te,text:D?D[fe%D.length]:C,origin:u||(E?"paste":e.state.cutIncoming>x?"cut":"+input")};ri(e.doc,Pe),tr(e,"inputRead",e,Pe)}r&&!E&&Ic(e,r),Qn(e),e.curOp.updateInput<2&&(e.curOp.updateInput=Q),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Dc(e,r){var s=e.clipboardData&&e.clipboardData.getData("Text");if(s)return e.preventDefault(),!r.isReadOnly()&&!r.options.disableInput&&Ar(r,function(){return As(r,s,0,null,"paste")}),!0}function Ic(e,r){if(!(!e.options.electricChars||!e.options.smartIndent))for(var s=e.doc.sel,o=s.ranges.length-1;o>=0;o--){var u=s.ranges[o];if(!(u.head.ch>100||o&&s.ranges[o-1].head.line==u.head.line)){var m=e.getModeAt(u.head),x=!1;if(m.electricChars){for(var E=0;E<m.electricChars.length;E++)if(r.indexOf(m.electricChars.charAt(E))>-1){x=Qi(e,u.head.line,"smart");break}}else m.electricInput&&m.electricInput.test(se(e.doc,u.head.line).text.slice(0,u.head.ch))&&(x=Qi(e,u.head.line,"smart"));x&&tr(e,"electricInput",e,u.head.line)}}}function Fc(e){for(var r=[],s=[],o=0;o<e.doc.sel.ranges.length;o++){var u=e.doc.sel.ranges[o].head.line,m={anchor:we(u,0),head:we(u+1,0)};s.push(m),r.push(e.getRange(m.anchor,m.head))}return{text:r,ranges:s}}function Mc(e,r,s,o){e.setAttribute("autocorrect",s?"":"off"),e.setAttribute("autocapitalize",o?"":"off"),e.setAttribute("spellcheck",!!r)}function Oc(){var e=T("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),r=T("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return d?e.style.width="1000px":e.setAttribute("wrap","off"),S&&(e.style.border="1px solid black"),Mc(e),r}function dx(e){var r=e.optionHandlers,s=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(o,u){var m=this.options,x=m[o];m[o]==u&&o!="mode"||(m[o]=u,r.hasOwnProperty(o)&&rr(this,r[o])(this,u,x),rt(this,"optionChange",this,o))},getOption:function(o){return this.options[o]},getDoc:function(){return this.doc},addKeyMap:function(o,u){this.state.keyMaps[u?"push":"unshift"](Uo(o))},removeKeyMap:function(o){for(var u=this.state.keyMaps,m=0;m<u.length;++m)if(u[m]==o||u[m].name==o)return u.splice(m,1),!0},addOverlay:br(function(o,u){var m=o.token?o:e.getMode(this.options,o);if(m.startState)throw new Error("Overlays may not be stateful.");Be(this.state.overlays,{mode:m,modeSpec:o,opaque:u&&u.opaque,priority:u&&u.priority||0},function(x){return x.priority}),this.state.modeGen++,kr(this)}),removeOverlay:br(function(o){for(var u=this.state.overlays,m=0;m<u.length;++m){var x=u[m].modeSpec;if(x==o||typeof o=="string"&&x.name==o){u.splice(m,1),this.state.modeGen++,kr(this);return}}}),indentLine:br(function(o,u,m){typeof u!="string"&&typeof u!="number"&&(u==null?u=this.options.smartIndent?"smart":"prev":u=u?"add":"subtract"),bt(this.doc,o)&&Qi(this,o,u,m)}),indentSelection:br(function(o){for(var u=this.doc.sel.ranges,m=-1,x=0;x<u.length;x++){var E=u[x];if(E.empty())E.head.line>m&&(Qi(this,E.head.line,o,!0),m=E.head.line,x==this.doc.sel.primIndex&&Qn(this));else{var C=E.from(),D=E.to(),V=Math.max(m,C.line);m=Math.min(this.lastLine(),D.line-(D.ch?0:1))+1;for(var Q=V;Q<m;++Q)Qi(this,Q,o);var fe=this.doc.sel.ranges;C.ch==0&&u.length==fe.length&&fe[x].from().ch>0&&xs(this.doc,x,new At(C,fe[x].to()),qe)}}}),getTokenAt:function(o,u){return $ l(this,o,u)},getLineTokens:function(o,u){return $ l(this,we(o),u,!0)},getTokenTypeAt:function(o){o=Ze(this.doc,o);var u=Bl(this,se(this.doc,o.line)),m=0,x=(u.length-1)/2,E=o.ch,C;if(E==0)C=u[2];else for(;;){var D=m+x>>1;if((D?u[D*2-1]:0)>=E)x=D;else if(u[D*2+1]<E)m=D+1;else{C=u[D*2+2];break}}var V=C?C.indexOf("overlay "):-1;return V<0?C:V==0?null:C.slice(0,V-1)},getModeAt:function(o){var u=this.doc.mode;return u.innerMode?e.innerMode(u,this.getTokenAt(o).state).mode:u},getHelper:function(o,u){return this.getHelpers(o,u)[0]},getHelpers:function(o,u){var m=[];if(!s.hasOwnProperty(u))return m;var x=s[u],E=this.getModeAt(o);if(typeof E[u]=="string")x[E[u]]&&m.push(x[E[u]]);els
` ,Pe=X(Te,le)?"w":fe&&Te== `
` ?"n":!fe||/ \s /.test(Te)?null:"p";if(fe&&!xe&&!Pe&&(Pe="s"),Q&&Q!=Pe){s<0&&(s=1,V(),r.sticky="after");break}if(Pe&&(Q=Pe),s>0&&!V(!xe))break}var je=qo(e,r,m,x,!0);return B(m,je)&&(je.hitSide=!0),je}function Pc(e,r,s,o){var u=e.doc,m=r.left,x;if(o=="page"){var E=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),C=Math.max(E-.5*Yn(e.display),3);x=(s>0?r.bottom:r.top)+s*C}else o=="line"&&(x=s>0?r.bottom+3:r.top-3);for(var D;D=es(e,m,x),!!D.outside;){if(s<0?x<=0:x>=u.height){D.hitSide=!0;break}x+=s*5}return D}var Ot=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Fe,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Ot.prototype.init=function(e){var r=this,s=this,o=s.cm,u=s.div=e.lineDiv;u.contentEditable=!0,Mc(u,o.options.spellcheck,o.options.autocorrect,o.options.autocapitalize);function m(E){for(var C=E.target;C;C=C.parentNode){if(C==u)return!0;if(/ \b CodeMirror-(?:line)?widget \b /.test(C.className))break}return!1}lt(u,"paste",function(E){!m(E)||wt(o,E)||Dc(E,o)||h<=11&&setTimeout(rr(o,function(){return r.updateFromDOM()}),20)}),lt(u,"compositionstart",function(E){r.composing={data:E.data,done:!1}}),lt(u,"compositionupdate",function(E){r.composing||(r.composing={data:E.data,done:!1})}),lt(u,"compositionend",function(E){r.composing&&(E.data!=r.composing.data&&r.readFromDOMSoon(),r.composing.done=!0)}),lt(u,"touchstart",function(){return s.forceCompositionEnd()}),lt(u,"input",function(){r.composing||r.readFromDOMSoon()});function x(E){if(!(!m(E)||wt(o,E))){if(o.somethingSelected())Go({lineWise:!1,text:o.getSelections()}),E.type=="cut"&&o.replaceSelection("",null,"cut");else if(o.options.lineWiseCopyCut){var C=Fc(o);Go({lineWise:!0,text:C.text}),E.type=="cut"&&o.operation(function(){o.setSelections(C.ranges,0,qe),o.replaceSelection("",null,"cut")})}else return;if(E.clipboardData){E.clipboardData.clearData();var D=Wr.text.join( `
` );if(E.clipboardData.setData("Text",D),E.clipboardData.getData("Text")==D){E.preventDefault();return}}var V=Oc(),Q=V.firstChild;o.display.lineSpace.insertBefore(V,o.display.lineSpace.firstChild),Q.value=Wr.text.join( `
` );var fe=j();ae(Q),setTimeout(function(){o.display.lineSpace.removeChild(V),fe.focus(),fe==u&&s.showPrimarySelection()},50)}}lt(u,"copy",x),lt(u,"cut",x)},Ot.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Ot.prototype.prepareSelection=function(){var e=_u(this.cm,!1);return e.focus=j()==this.div,e},Ot.prototype.showSelection=function(e,r){!e||!this.cm.display.view.length||((e.focus||r)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Ot.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ot.prototype.showPrimarySelection=function(){var e=this.getSelection(),r=this.cm,s=r.doc.sel.primary(),o=s.from(),u=s.to();if(r.display.viewTo==r.display.viewFrom||o.line>=r.display.viewTo||u.line<r.display.viewFrom){e.removeAllRanges();return}var m=Ko(r,e.anchorNode,e.anchorOffset),x=Ko(r,e.focusNode,e.focusOffset);if(!(m&&!m.bad&&x&&!x.bad&&I(ft(m,x),o)==0&&I(De(m,x),u)==0)){var E=r.display.view,C=o.line>=r.display.viewFrom&&Rc(r,o)||{node:E[0].measure.map[2],offset:0},D=u.line<r.display.viewTo&&Rc(r,u);if(!D){var V=E[E.length-1].measure,Q=V.maps?V.maps[V.maps.length-1]:V.map;D={node:Q[Q.length-1],offset:Q[Q.length-2]-Q[Q.length-3]}}if(!C||!D){e.removeAllRanges();return}var fe=e.rangeCount&&e.getRangeAt(0),le;try{le= $ (C.node,C.offset,D.offset,D.node)}catch(xe){}le&&(!n&&r.state.focused?(e.collapse(C.node,C.offset),le.collapsed||(e.removeAllRanges(),e.addRange(le))):(e.removeAllRanges(),e.addRange(le)),fe&&e.anchorNode==null?e.addRange(fe):n&&this.startGracePeriod()),this.rememberSelection()}},Ot.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},Ot.prototype.showMultipleSelections=function(e){q(this.cm.display.cursorDiv,e.cursors),q(this.cm.display.selectionDiv,e.selection)},Ot.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Ot.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var r=e.getRangeAt(0).commonAncestorContainer;return te(this.div,r)},Ot.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||j()!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Ot.prototype.blur=function(){this.div.blur()},Ot.prototype.getField=function(){return this.div},Ot.prototype.supportsTouch=function(){return!0},Ot.prototype.receivedFocus=function(){var e=this;this.selectionInEditor()?this.pollSelection():Ar(this.cm,function(){return e.cm.curOp.selectionChanged=!0});function r(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,r))}this.polling.set(this.cm.options.pollInterval,r)},Ot.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Ot.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var e=this.getSelection(),r=this.cm;if(w&&y&&this.cm.display.gutterSpecs.length&&hx(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var s=Ko(r,e.anchorNode,e.anchorOffset),o=Ko(r,e.focusNode,e.focusOffset);s&&o&&Ar(r,function(){mr(r.doc,bn(s,o),qe),(s.bad||o.bad)&&(r.curOp.selectionChanged=!0)})}}},Ot.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,r=e.display,s=e.doc.sel.primary(),o=s.from(),u=s.to();if(o.ch==0&&o.line>e.firstLine()&&(o=we(o.line-1,se(e.doc,o.line-1).length)),u.ch==se(e.doc,u.line).text.length&&u.line<e.lastLine()&&(u=we(u.line+1,0)
` ),ae(u))}else return;x.type=="cut"&&(o.state.cutIncoming=+new Date)}}lt(u,"cut",m),lt(u,"copy",m),lt(e.scroller,"paste",function(x){if(!(un(e,x)||wt(o,x))){if(!u.dispatchEvent){o.state.pasteIncoming=+new Date,s.focus();return}var E=new Event("paste");E.clipboardData=x.clipboardData,u.dispatchEvent(E)}}),lt(e.lineSpace,"selectstart",function(x){un(e,x)||kt(x)}),lt(u,"compositionstart",function(){var x=o.getCursor("from");s.composing&&s.composing.range.clear(),s.composing={start:x,range:o.markText(x,o.getCursor("to"),{className:"CodeMirror-composing"})}}),lt(u,"compositionend",function(){s.composing&&(s.poll(),s.composing.range.clear(),s.composing=null)})},Wt.prototype.createField=function(e){this.wrapper=Oc(),this.textarea=this.wrapper.firstChild},Wt.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Wt.prototype.prepareSelection=function(){var e=this.cm,r=e.display,s=e.doc,o=_u(e);if(e.options.moveInputWithCursor){var u=Ur(e,s.sel.primary().head,"div"),m=r.wrapper.getBoundingClientRect(),x=r.lineDiv.getBoundingClientRect();o.teTop=Math.max(0,Math.min(r.wrapper.clientHeight-10,u.top+x.top-m.top)),o.teLeft=Math.max(0,Math.min(r.wrapper.clientWidth-10,u.left+x.left-m.left))}return o},Wt.prototype.showSelection=function(e){var r=this.cm,s=r.display;q(s.cursorDiv,e.cursors),q(s.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Wt.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing)){var r=this.cm;if(r.somethingSelected()){this.prevInput="";var s=r.getSelection();this.textarea.value=s,r.state.focused&&ae(this.textarea),a&&h>=9&&(this.hasSelection=s)}else e||(this.prevInput=this.textarea.value="",a&&h>=9&&(this.hasSelection=null))}},Wt.prototype.getField=function(){return this.textarea},Wt.prototype.supportsTouch=function(){return!1},Wt.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!F||j()!=this.textarea))try{this.textarea.focus()}catch(e){}},Wt.prototype.blur=function(){this.textarea.blur()},Wt.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Wt.prototype.receivedFocus=function(){this.slowPoll()},Wt.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Wt.prototype.fastPoll=function(){var e=!1,r=this;r.pollingFast=!0;function s(){var o=r.poll();!o&&!e?(e=!0,r.polling.set(60,s)):(r.pollingFast=!1,r.slowPoll())}r.polling.set(20,s)},Wt.prototype.poll=function(){var e=this,r=this.cm,s=this.textarea,o=this.prevInput;if(this.contextMenuPending||!r.state.focused||ie(s)&&!o&&!this.composing||r.isReadOnly()||r.options.disableInput||r.state.keySeq)return!1;var u=s.value;if(u==o&&!r.somethingSelected())return!1;if(a&&h>=9&&this.hasSelection===u||_&&/[ \u f700- \u f7ff]/.test(u))return r.display.input.reset(),!1;if(r.doc.sel==r.display.selForContextMenu){var m=u.charCodeAt(0);if(m==8203&&!o&&(o=" \u 200B"),m==8666)return this.reset(),this.cm.execCommand("undo")}for(var x=0,E=Math.min(o.length,u.length);x<E&&o.charCodeAt(x)==u.charCodeAt(x);)++x;return Ar(r,function(){As(r,u.slice(x),o.length-x,null,e.composing?"*compose":null),u.length>1e3||u.indexOf( `
` )>-1?s.value=e.prevInput="":e.prevInput=u,e.composing&&(e.composing.range.clear(),e.composing.range=r.markText(e.composing.start,r.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Wt.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Wt.prototype.onKeyPress=function(){a&&h>=9&&(this.hasSelection=null),this.fastPoll()},Wt.prototype.onContextMenu=function(e){var r=this,s=r.cm,o=s.display,u=r.textarea;r.contextMenuPending&&r.contextMenuPending();var m=Dn(s,e),x=o.scroller.scrollTop;if(!m||g)return;var E=s.options.resetSelectionOnContextMenu;E&&s.doc.sel.contains(m)==-1&&rr(s,mr)(s.doc,bn(m),qe);var C=u.style.cssText,D=r.wrapper.style.cssText,V=r.wrapper.offsetParent.getBoundingClientRect();r.wrapper.style.cssText="position: static",u.style.cssText= ` position : absolute ; width : 30 px ; height : 30 px ;
2021-05-30 23:17:56 +08:00
top : ` +(e.clientY-V.top-5)+"px; left: "+(e.clientX-V.left-5)+ ` px ;
2021-04-10 04:18:32 +08:00
z - index : 1000 ; background : ` +(a?"rgba(255, 255, 255, .05)":"transparent")+ ` ;
2021-09-01 05:07:53 +08:00
outline : none ; border - width : 0 ; outline : none ; overflow : hidden ; opacity : . 05 ; filter : alpha ( opacity = 5 ) ; ` ;var Q;d&&(Q=window.scrollY),o.input.focus(),d&&window.scrollTo(null,Q),o.input.reset(),s.somethingSelected()||(u.value=r.prevInput=" "),r.contextMenuPending=le,o.selForContextMenu=s.doc.sel,clearTimeout(o.detectingSelectAll);function fe(){if(u.selectionStart!=null){var Te=s.somethingSelected(),Pe=" \u 200B"+(Te?u.value:"");u.value=" \u 21DA",u.value=Pe,r.prevInput=Te?"":" \u 200B",u.selectionStart=1,u.selectionEnd=Pe.length,o.selForContextMenu=s.doc.sel}}function le(){if(r.contextMenuPending==le&&(r.contextMenuPending=!1,r.wrapper.style.cssText=D,u.style.cssText=C,a&&h<9&&o.scrollbars.setScrollTop(o.scroller.scrollTop=x),u.selectionStart!=null)){(!a||a&&h<9)&&fe();var Te=0,Pe=function(){o.selForContextMenu==s.doc.sel&&u.selectionStart==0&&u.selectionEnd>0&&r.prevInput==" \u 200B"?rr(s,ec)(s):Te++<10?o.detectingSelectAll=setTimeout(Pe,500):(o.selForContextMenu=null,o.input.reset())};o.detectingSelectAll=setTimeout(Pe,200)}}if(a&&h>=9&&fe(),J){Ir(e);var xe=function(){pt(window,"mouseup",xe),setTimeout(le,20)};lt(window,"mouseup",xe)}else setTimeout(le,50)},Wt.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Wt.prototype.setUneditable=function(){},Wt.prototype.needsContentAttribute=!1;function gx(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=j();r.autofocus=s==e||e.getAttribute("autofocus")!=null&&s==document.body}function o(){e.value=E.getValue()}var u;if(e.form&&(lt(e.form,"submit",o),!r.leaveSubmitMethodAlone)){var m=e.form;u=m.submit;try{var x=m.submit=function(){o(),m.submit=u,m.submit(),m.submit=x}}catch(C){}}r.finishInit=function(C){C.save=o,C.getTextArea=function(){return e},C.toTextArea=function(){C.toTextArea=isNaN,o(),e.parentNode.removeChild(C.getWrapperElement()),e.style.display="",e.form&&(pt(e.form,"submit",o),!r.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=u))}},e.style.display="none";var E=Nt(function(C){return e.parentNode.insertBefore(C,e.nextSibling)},r);return E}function vx(e){e.off=pt,e.on=lt,e.wheelEventPixels=Sb,e.Doc=_r,e.splitLines=ne,e.countColumn=ye,e.findColumn=Ue,e.isWordChar=Se,e.Pass=ze,e.signal=rt,e.Line=Gn,e.changeEnd=xn,e.scrollbarModel=Du,e.Pos=we,e.cmpPos=I,e.modes=z,e.mimeModes=ee,e.resolveMode=ve,e.getMode=Le,e.modeExtensions=Oe,e.extendMode=Ee,e.copyState=Ve,e.startState=mt,e.innerMode=St,e.commands=Vi,e.keyMap=cn,e.keyName=gc,e.isModifierKey=pc,e.lookupKey=oi,e.normalizeKeyMap=Gb,e.StringStream=W,e.SharedTextMarker=Wi,e.TextMarker=kn,e.LineWidget=Hi,e.e_preventDefault=kt,e.e_stopPropagation=st,e.e_stop=Ir,e.addClass=N,e.contains=te,e.rmClass=Y,e.keyNames=_n}lx(Nt),dx(Nt);var yx="iter insert remove copy getEditor constructor".split(" ");for(var Vo in _r.prototype)_r.prototype.hasOwnProperty(Vo)&&be(yx,Vo)<0&&(Nt.prototype[Vo]=function(e){return function(){return e.apply(this.doc,arguments)}}(_r.prototype[Vo]));return Vt(_r),Nt.inputStyles={textarea:Wt,contenteditable:Ot},Nt.defineMode=function(e){!Nt.defaults.mode&&e!="null"&&(Nt.defaults.mode=e),ce.apply(this,arguments)},Nt.defineMIME=me,Nt.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Nt.defineMIME("text/plain","null"),Nt.defineExtension=function(e,r){Nt.prototype[e]=r},Nt.defineDocExtension=function(e,r){_r.prototype[e]=r},Nt.fromTextArea=gx,vx(Nt),Nt.version="5.62.3",Nt})});var Qs=Me((ho,Zs)=>{(function(i,t){typeof ho=="object"&&typeof Zs=="object"?Zs.exports=t():typeof define=="function"&&define.amd?define([],t):typeof ho=="object"?ho.ClipboardJS=t():i.ClipboardJS=t()})(ho,function(){return t={134:function(l,c,f){"use strict";f.d(c,{default:function(){return _}});var c=f(279),a=f.n(c),c=f(370),h=f.n(c),c=f(817),d=f.n(c);function p(P){return(p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(O){return typeof O}:function(O){return O&&typeof Symbol=="function
` )&&(Y="(?: "+Y+")",q=" "+q,K++),O=new RegExp("^(?:"+Y+")",G)),k&&(O=new RegExp("^"+Y+" $ (?! \\ s)",G)),v&&(P=_.lastIndex),H=p.call(J?O:_,q),J?H?(H.input=H.input.slice(K),H[0]=H[0].slice(K),H.index=_.lastIndex,_.lastIndex+=H[0].length):_.lastIndex=0:v&&H&&(_.lastIndex=_.global?H.index+H[0].length:P),k&&H&&H.length>1&&y.call(H[0],O,function(){for(U=1;U<arguments.length-2;U++)arguments[U]===void 0&&(H[U]=void 0)}),H}),c.exports=g},7066:function(c,f,a){"use strict";var h=a(9670);c.exports=function(){var d=h(this),p="";return d.global&&(p+="g"),d.ignoreCase&&(p+="i"),d.multiline&&(p+="m"),d.dotAll&&(p+="s"),d.unicode&&(p+="u"),d.sticky&&(p+="y"),p}},2999:function(c,f,a){"use strict";var h=a(7293);function d(p,y){return RegExp(p,y)}f.UNSUPPORTED_Y=h(function(){var p=d("a","y");return p.lastIndex=2,p.exec("abcd")!=null}),f.BROKEN_CARET=h(function(){var p=d("^r","gy");return p.lastIndex=2,p.exec("str")!=null})},4488:function(c){c.exports=function(f){if(f==null)throw TypeError("Can't call method on "+f);return f}},3505:function(c,f,a){var h=a(7854),d=a(8880);c.exports=function(p,y){try{d(h,p,y)}catch(g){h[p]=y}return y}},6340:function(c,f,a){"use strict";var h=a(5005),d=a(3070),p=a(5112),y=a(9781),g=p("species");c.exports=function(v){var b=h(v),k=d.f;y&&b&&!b[g]&&k(b,g,{configurable:!0,get:function(){return this}})}},8003:function(c,f,a){var h=a(3070).f,d=a(6656),p=a(5112),y=p("toStringTag");c.exports=function(g,v,b){g&&!d(g=b?g:g.prototype,y)&&h(g,y,{configurable:!0,value:v})}},6200:function(c,f,a){var h=a(2309),d=a(9711),p=h("keys");c.exports=function(y){return p[y]||(p[y]=d(y))}},5465:function(c,f,a){var h=a(7854),d=a(3505),p="__core-js_shared__",y=h[p]||d(p,{});c.exports=y},2309:function(c,f,a){var h=a(1913),d=a(5465);(c.exports=function(p,y){return d[p]||(d[p]=y!==void 0?y:{})})("versions",[]).push({version:"3.9.0",mode:h?"pure":"global",copyright:" \x A9 2021 Denis Pushkarev (zloirock.ru)"})},6707:function(c,f,a){var h=a(9670),d=a(3099),p=a(5112),y=p("species");c.exports=function(g,v){var b=h(g).constructor,k;return b===void 0||(k=h(b)[y])==null?v:d(k)}},8710:function(c,f,a){var h=a(9958),d=a(4488),p=function(y){return function(g,v){var b=String(d(g)),k=h(v),S=b.length,w,F;return k<0||k>=S?y?"":void 0:(w=b.charCodeAt(k),w<55296||w>56319||k+1===S||(F=b.charCodeAt(k+1))<56320||F>57343?y?b.charAt(k):w:y?b.slice(k,k+2):(w-55296<<10)+(F-56320)+65536)}};c.exports={codeAt:p(!1),charAt:p(!0)}},3197:function(c){"use strict";var f=2147483647,a=36,h=1,d=26,p=38,y=700,g=72,v=128,b="-",k=/[^ \0 - \u 007E]/,S=/[. \u 3002 \u FF0E \u FF61]/g,w="Overflow: input needs wider integers to process",F=a-h,_=Math.floor,P=String.fromCharCode,O=function(G){for(var Y=[],K=0,q=G.length;K<q;){var T=G.charCodeAt(K++);if(T>=55296&&T<=56319&&K<q){var A=G.charCodeAt(K++);(A&64512)==56320?Y.push(((T&1023)<<10)+(A&1023)+65536):(Y.push(T),K--)}else Y.push(T)}return Y},H=function(G){return G+22+75*(G<26)},U=function(G,Y,K){var q=0;for(G=K?_(G/y):G>>1,G+=_(G/Y);G>F*d>>1;q+=a)G=_(G/F);return _(q+(F+1)*G/(G+p))},J=function(G){var Y=[];G=O(G);var K=G.length,q=v,T=0,A=g, $ ,te;for( $ =0; $ <G.length; $ ++)te=G[ $ ],te<128&&Y.push(P(te));var j=Y.length,N=j;for(j&&Y.push(b);N<K;){var oe=f;for( $ =0; $ <G.length; $ ++)te=G[ $ ],te>=q&&te<oe&&(oe=te);var ae=N+1;if(oe-q>_((f-T)/ae))throw RangeError(w);for(T+=(oe-q)*ae,q=oe, $ =0; $ <G.length; $ ++){if(te=G[ $ ],te<q&&++T>f)throw RangeError(w);if(te==q){for(var M=T,L=a;;L+=a){var ye=L<=A?h:L>=A+d?d:L-A;if(M<ye)break;var Fe=M-ye,be=a-ye;Y.push(P(H(ye+Fe%be))),M=_(Fe/be)}Y.push(P(H(M))),A=U(T,ae,N==j),T=0,++N}}++T,++q}return Y.join("")};c.exports=function(G){var Y=[],K=G.toLowerCase().replace(S,".").split("."),q,T;for(q=0;q<K.length;q++)T=K[q],Y.push(k.test(T)?"xn--"+J(T):T);return Y.join(".")}},6091:function(c,f,a){var h=a(7293),d=a(1361),p=" \u 200B \x 85 \u 180E";c.exports=function(y){return h(function(){return!!d[y]()||p[y]()!=p||d[y].name!==y})}},3111:function(c,f,a){var h=a(4488),d=a(1361),p="["+d+"]",y=RegExp("^"+p+p+"*"),g=RegExp(p+p+"* $ "),v=function(b){return function(k){var S=String(h(k));return b&1&&(S=S.replace(y,"")),b&2&&(S=S.replace(g,"")),S}};c.export
\ v \ f \ r \ xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF ` },8264:function(c,f,a){"use strict";var h=a(2109),d=a(7854),p=a(3331),y=a(6340),g="ArrayBuffer",v=p[g],b=d[g];h({global:!0,forced:b!==v},{ArrayBuffer:v}),y(g)},2222:function(c,f,a){"use strict";var h=a(2109),d=a(7293),p=a(3157),y=a(111),g=a(7908),v=a(7466),b=a(6135),k=a(5417),S=a(1194),w=a(5112),F=a(7392),_=w("isConcatSpreadable"),P=9007199254740991,O="Maximum allowed index exceeded",H=F>=51||!d(function(){var Y=[];return Y[_]=!1,Y.concat()[0]!==Y}),U=S("concat"),J=function(Y){if(!y(Y))return!1;var K=Y[_];return K!==void 0?!!K:p(Y)},G=!H||!U;h({target:"Array",proto:!0,forced:G},{concat:function(K){var q=g(this),T=k(q,0),A=0, $ ,te,j,N,oe;for( $ =-1,j=arguments.length; $ <j; $ ++)if(oe= $ ===-1?q:arguments[ $ ],J(oe)){if(N=v(oe.length),A+N>P)throw TypeError(O);for(te=0;te<N;te++,A++)te in oe&&b(T,A,oe[te])}else{if(A>=P)throw TypeError(O);b(T,A++,oe)}return T.length=A,T}})},7327:function(c,f,a){"use strict";var h=a(2109),d=a(2092).filter,p=a(1194),y=p("filter");h({target:"Array",proto:!0,forced:!y},{filter:function(v){return d(this,v,arguments.length>1?arguments[1]:void 0)}})},2772:function(c,f,a){"use strict";var h=a(2109),d=a(1318).indexOf,p=a(9341),y=[].indexOf,g=!!y&&1/[1].indexOf(1,-0)<0,v=p("indexOf");h({target:"Array",proto:!0,forced:g||!v},{indexOf:function(k){return g?y.apply(this,arguments)||0:d(this,k,arguments.length>1?arguments[1]:void 0)}})},6992:function(c,f,a){"use strict";var h=a(5656),d=a(1223),p=a(7497),y=a(9909),g=a(654),v="Array Iterator",b=y.set,k=y.getterFor(v);c.exports=g(Array,"Array",function(S,w){b(this,{type:v,target:h(S),index:0,kind:w})},function(){var S=k(this),w=S.target,F=S.kind,_=S.index++;return!w||_>=w.length?(S.target=void 0,{value:void 0,done:!0}):F=="keys"?{value:_,done:!1}:F=="values"?{value:w[_],done:!1}:{value:[_,w[_]],done:!1}},"values"),p.Arguments=p.Array,d("keys"),d("values"),d("entries")},1249:function(c,f,a){"use strict";var h=a(2109),d=a(2092).map,p=a(1194),y=p("map");h({target:"Array",proto:!0,forced:!y},{map:function(v){return d(this,v,arguments.length>1?arguments[1]:void 0)}})},7042:function(c,f,a){"use strict";var h=a(2109),d=a(111),p=a(3157),y=a(1400),g=a(7466),v=a(5656),b=a(6135),k=a(5112),S=a(1194),w=S("slice"),F=k("species"),_=[].slice,P=Math.max;h({target:"Array",proto:!0,forced:!w},{slice:function(H,U){var J=v(this),G=g(J.length),Y=y(H,G),K=y(U===void 0?G:U,G),q,T,A;if(p(J)&&(q=J.constructor,typeof q=="function"&&(q===Array||p(q.prototype))?q=void 0:d(q)&&(q=q[F],q===null&&(q=void 0)),q===Array||q===void 0))return _.call(J,Y,K);for(T=new(q===void 0?Array:q)(P(K-Y,0)),A=0;Y<K;Y++,A++)Y in J&&b(T,A,J[Y]);return T.length=A,T}})},561:function(c,f,a){"use strict";var h=a(2109),d=a(1400),p=a(9958),y=a(7466),g=a(7908),v=a(5417),b=a(6135),k=a(1194),S=k("splice"),w=Math.max,F=Math.min,_=9007199254740991,P="Maximum allowed length exceeded";h({target:"Array",proto:!0,forced:!S},{splice:function(H,U){var J=g(this),G=y(J.length),Y=d(H,G),K=arguments.length,q,T,A, $ ,te,j;if(K===0?q=T=0:K===1?(q=0,T=G-Y):(q=K-2,T=F(w(p(U),0),G-Y)),G+q-T>_)throw TypeError(P);for(A=v(J,T), $ =0; $ <T; $ ++)te=Y+ $ ,te in J&&b(A, $ ,J[te]);if(A.length=T,q<T){for( $ =Y; $ <G-T; $ ++)te= $ +T,j= $ +q,te in J?J[j]=J[te]:delete J[j];for( $ =G; $ >G-T+q; $ --)delete J[ $ -1]}else if(q>T)for( $ =G-T; $ >Y; $ --)te= $ +T-1,j= $ +q-1,te in J?J[j]=J[te]:delete J[j];for( $ =0; $ <q; $ ++)J[ $ +Y]=arguments[ $ +2];return J.length=G-T+q,A}})},8309:function(c,f,a){var h=a(9781),d=a(3070).f,p=Function.prototype,y=p.toString,g=/^ \s *function ([^ (]*)/,v="name";h&&!(v in p)&&d(p,v,{configurable:!0,get:function(){try{return y.call(this).match(g)[1]}catch(b){return""}}})},489:function(c,f,a){var h=a(2109),d=a(7293),p=a(7908),y=a(9518),g=a(8544),v=d(function(){y(1)});h({target:"Object",stat:!0,forced:v,sham:!g},{getPrototypeOf:function(k){return y(p(k))}})},1539:function(c,f,a){var h=a(1694),d=a(1320),p=a(288);h||d(Object.prototype,"toString",p,{unsafe:!0})},4916:function(c,f,a){"use strict";var h=a(2109),d=a(2261);h({target:"RegExp",proto:!0,forced:/./.exec!=
In order to be iterable , non - array objects must have a [ Symbol . iterator ] ( ) method . ` )}var z=!0,ee=!1,ce;return{s:function(){Z=ne[Symbol.iterator]()},n:function(){var ve=Z.next();return z=ve.done,ve},e:function(ve){ee=!0,ce=ve},f:function(){try{!z&&Z.return!=null&&Z.return()}finally{if(ee)throw ce}}}}function Ie(ne,ie){if(!!ne){if(typeof ne=="string")return Be(ne,ie);var Z=Object.prototype.toString.call(ne).slice(8,-1);if(Z==="Object"&&ne.constructor&&(Z=ne.constructor.name),Z==="Map"||Z==="Set")return Array.from(ne);if(Z==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array $ /.test(Z))return Be(ne,ie)}}function Be(ne,ie){(ie==null||ie>ne.length)&&(ie=ne.length);for(var Z=0,re=new Array(ie);Z<ie;Z++)re[Z]=ne[Z];return re}function Ke(ne,ie){if(!(ne instanceof ie))throw new TypeError("Cannot call a class as a function")}function He(ne,ie){for(var Z=0;Z<ie.length;Z++){var re=ie[Z];re.enumerable=re.enumerable||!1,re.configurable=!0,"value"in re&&(re.writable=!0),Object.defineProperty(ne,re.key,re)}}function Qe(ne,ie,Z){return ie&&He(ne.prototype,ie),Z&&He(ne,Z),ne}var Se=function(){function ne(){Ke(this,ne)}return Qe(ne,[{key:"on",value:function(Z,re){return this._callbacks=this._callbacks||{},this._callbacks[Z]||(this._callbacks[Z]=[]),this._callbacks[Z].push(re),this}},{key:"emit",value:function(Z){this._callbacks=this._callbacks||{};for(var re=this._callbacks[Z],R=arguments.length,z=new Array(R>1?R-1:0),ee=1;ee<R;ee++)z[ee-1]=arguments[ee];if(re){var ce=Re(re,!0),me;try{for(ce.s();!(me=ce.n()).done;){var ve=me.value;ve.apply(this,z)}}catch(Le){ce.e(Le)}finally{ce.f()}}return this.element&&this.element.dispatchEvent(this.makeEvent("dropzone:"+Z,{args:z})),this}},{key:"makeEvent",value:function(Z,re){var R={bubbles:!0,cancelable:!0,detail:re};if(typeof window.CustomEvent=="function")return new CustomEvent(Z,R);var z=document.createEvent("CustomEvent");return z.initCustomEvent(Z,R.bubbles,R.cancelable,R.detail),z}},{key:"off",value:function(Z,re){if(!this._callbacks||arguments.length===0)return this._callbacks={},this;var R=this._callbacks[Z];if(!R)return this;if(arguments.length===1)return delete this._callbacks[Z],this;for(var z=0;z<R.length;z++){var ee=R[z];if(ee===re){R.splice(z,1);break}}return this}}]),ne}(),X='<div class="dz-preview dz-file-preview"> <div class="dz-image"><img data-dz-thumbnail/></div> <div class="dz-details"> <div class="dz-size"><span data-dz-size></span></div> <div class="dz-filename"><span data-dz-name></span></div> </div> <div class="dz-progress"> <span class="dz-upload" data-dz-uploadprogress></span> </div> <div class="dz-error-message"><span data-dz-errormessage></span></div> <div class="dz-success-mark"> <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>Check</title> <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <path d="M23.5,31.8431458 L17.5852419,25.9283877 C16.0248253,24.3679711 13.4910294,24.366835 11.9289322,25.9289322 C10.3700136,27.4878508 10.3665912,30.0234455 11.9283877,31.5852419 L20.4147581,40.0716123 C20.5133999,40.1702541 20.6159315,40.2626649 20.7218615,40.3488435 C22.2835669,41.8725651 24.794234,41.8626202 26.3461564,40.3106978 L43.3106978,23.3461564 C44.8771021,21.7797521 44.8758057,19.2483887 43.3137085,17.6862915 C41.7547899,16.1273729 39.2176035,16.1255422 37.6538436,17.6893022 L23.5,31.8431458 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" stroke-opacity="0.198794158" stroke="#747474" fill-opacity="0.816519475" fill="#FFFFFF"></path> </g> </svg> </div> <div class="dz-error-mark"> <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>Error</title> <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <g stroke="#747474" stroke-opacity="0.198794158" fill="#FFFFFF" fill-opacity="0.816519475"> <path d="M32.6568542,29 L38.3106978,23.3461564 C39.877102
In order to be iterable , non - array objects must have a [ Symbol . iterator ] ( ) method . ` )}var z=!0,ee=!1,ce;return{s:function(){Z=ne[Symbol.iterator]()},n:function(){var ve=Z.next();return z=ve.done,ve},e:function(ve){ee=!0,ce=ve},f:function(){try{!z&&Z.return!=null&&Z.return()}finally{if(ee)throw ce}}}}function it(ne,ie){if(!!ne){if(typeof ne=="string")return Ne(ne,ie);var Z=Object.prototype.toString.call(ne).slice(8,-1);if(Z==="Object"&&ne.constructor&&(Z=ne.constructor.name),Z==="Map"||Z==="Set")return Array.from(ne);if(Z==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array $ /.test(Z))return Ne(ne,ie)}}function Ne(ne,ie){(ie==null||ie>ne.length)&&(ie=ne.length);for(var Z=0,re=new Array(ie);Z<ie;Z++)re[Z]=ne[Z];return re}var ot={url:null,method:"post",withCredentials:!1,timeout:null,parallelUploads:2,uploadMultiple:!1,chunking:!1,forceChunking:!1,chunkSize:2e6,parallelChunkUploads:!1,retryChunks:!1,retryChunksLimit:3,maxFilesize:256,paramName:"file",createImageThumbnails:!0,maxThumbnailFilesize:10,thumbnailWidth:120,thumbnailHeight:120,thumbnailMethod:"crop",resizeWidth:null,resizeHeight:null,resizeMimeType:null,resizeQuality:.8,resizeMethod:"contain",filesizeBase:1e3,maxFiles:null,headers:null,clickable:!0,ignoreHiddenFiles:!0,acceptedFiles:null,acceptedMimeTypes:null,autoProcessQueue:!0,autoQueue:!0,addRemoveLinks:!1,previewsContainer:null,disablePreviews:!1,hiddenInputContainer:"body",capture:null,renameFilename:null,renameFile:null,forceFallback:!1,dictDefaultMessage:"Drop files here to upload",dictFallbackMessage:"Your browser does not support drag'n'drop file uploads.",dictFallbackText:"Please use the fallback form below to upload your files like in the olden days.",dictFileTooBig:"File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.",dictInvalidFileType:"You can't upload files of this type.",dictResponseError:"Server responded with {{statusCode}} code.",dictCancelUpload:"Cancel upload",dictUploadCanceled:"Upload canceled.",dictCancelUploadConfirmation:"Are you sure you want to cancel this upload?",dictRemoveFile:"Remove file",dictRemoveFileConfirmation:null,dictMaxFilesExceeded:"You can not upload any more files.",dictFileSizeUnits:{tb:"TB",gb:"GB",mb:"MB",kb:"KB",b:"b"},init:function(){},params:function(ie,Z,re){if(re)return{dzuuid:re.file.upload.uuid,dzchunkindex:re.index,dztotalfilesize:re.file.size,dzchunksize:this.options.chunkSize,dztotalchunkcount:re.file.upload.totalChunkCount,dzchunkbyteoffset:re.index*this.options.chunkSize}},accept:function(ie,Z){return Z()},chunksUploaded:function(ie,Z){Z()},fallback:function(){var ie;this.element.className="".concat(this.element.className," dz-browser-not-supported");var Z=ue(this.element.getElementsByTagName("div"),!0),re;try{for(Z.s();!(re=Z.n()).done;){var R=re.value;if(/(^| )dz-message( $ | )/.test(R.className)){ie=R,R.className="dz-message";break}}}catch(ee){Z.e(ee)}finally{Z.f()}ie||(ie=st.createElement('<div class="dz-message"><span></span></div>'),this.element.appendChild(ie));var 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,re,R){var z={srcX:0,srcY:0,srcWidth:ie.width,srcHeight:ie.height},ee=ie.width/ie.height;Z==null&&re==null?(Z=z.srcWidth,re=z.srcHeight):Z==null?Z=re*ee:re==null&&(re=Z/ee),Z=Math.min(Z,z.srcWidth),re=Math.min(re,z.srcHeight);var ce=Z/re;if(z.srcWidth>Z||z.srcHeight>re)if(R==="crop")ee>ce?(z.srcHeight=ie.height,z.srcWidth=z.srcHeight*ce):(z.srcWidth=ie.width,z.srcHeight=z.srcWidth/ce);else if(R==="contain")ee>ce?re=Z/ee:Z=re*ee;else throw new Error("Unknown resizeMethod '".concat(R,"'"));return z.srcX=(ie.width-z.srcWidth)/2,z.srcY=(ie.height-z.srcHeight)/2,z.trgWidth=Z,z.trgHeight=re,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)},previewTemplate:d
In order to be iterable , non - array objects must have a [ Symbol . iterator ] ( ) method . ` )}var z=!0,ee=!1,ce;return{s:function(){Z=ne[Symbol.iterator]()},n:function(){var ve=Z.next();return z=ve.done,ve},e:function(ve){ee=!0,ce=ve},f:function(){try{!z&&Z.return!=null&&Z.return()}finally{if(ee)throw ce}}}}function jt(ne,ie){if(!!ne){if(typeof ne=="string")return Lt(ne,ie);var Z=Object.prototype.toString.call(ne).slice(8,-1);if(Z==="Object"&&ne.constructor&&(Z=ne.constructor.name),Z==="Map"||Z==="Set")return Array.from(ne);if(Z==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array $ /.test(Z))return Lt(ne,ie)}}function Lt(ne,ie){(ie==null||ie>ne.length)&&(ie=ne.length);for(var Z=0,re=new Array(ie);Z<ie;Z++)re[Z]=ne[Z];return re}function fr(ne,ie){if(!(ne instanceof ie))throw new TypeError("Cannot call a class as a function")}function lt(ne,ie){for(var Z=0;Z<ie.length;Z++){var re=ie[Z];re.enumerable=re.enumerable||!1,re.configurable=!0,"value"in re&&(re.writable=!0),Object.defineProperty(ne,re.key,re)}}function Mt(ne,ie,Z){return ie&<(ne.prototype,ie),Z&<(ne,Z),ne}function pt(ne,ie){if(typeof ie!="function"&&ie!==null)throw new TypeError("Super expression must either be null or a function");ne.prototype=Object.create(ie&&ie.prototype,{constructor:{value:ne,writable:!0,configurable:!0}}),ie&&rt(ne,ie)}function rt(ne,ie){return rt=Object.setPrototypeOf||function(re,R){return re.__proto__=R,re},rt(ne,ie)}function wt(ne){var ie=Vt();return function(){var re=kt(ne),R;if(ie){var z=kt(this).constructor;R=Reflect.construct(re,arguments,z)}else R=re.apply(this,arguments);return dr(this,R)}}function dr(ne,ie){return ie&&(Je(ie)==="object"||typeof ie=="function")?ie:Et(ne)}function Et(ne){if(ne===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ne}function Vt(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(ne){return!1}}function kt(ne){return kt=Object.setPrototypeOf?Object.getPrototypeOf:function(Z){return Z.__proto__||Object.getPrototypeOf(Z)},kt(ne)}var st=function(ne){pt(Z,ne);var ie=wt(Z);function Z(re,R){var z;fr(this,Z),z=ie.call(this);var ee,ce;if(z.element=re,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(Et(z)),z.element.dropzone=Et(z);var me=(ce=Z.optionsForElement(z.element))!=null?ce:{};if(z.options=Z.extend({},Xe,me,R!=null?R:{}),z.options.previewTemplate=z.options.previewTemplate.replace(/ \n */g,""),z.options.forceFallback||!Z.isBrowserSupported())return dr(z,z.options.fallback.call(Et(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(ve){return z.options.renameFilename.call(Et(z),ve.name,ve)}),typeof z.options.method=="string"&&(z.options.method=z.options.method.toUpperCase()),(ee=z.getExistingFallback())&&ee.parentNode&&ee.parentNode.removeChild(ee),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 Mt(Z,[{key:"getAcce
2020-09-20 17:33:18 +08:00
Valid base64 characters are A - Z , a - z , 0 - 9 , '+' , '/' , and '='
2021-09-01 05:07:53 +08:00
Expect errors in decoding . ` ),Z=Z.replace(/[^A-Za-z0-9 \+ \/ \= ]/g,"");ce=this.KEY_STR.indexOf(Z.charAt(Oe++)),me=this.KEY_STR.indexOf(Z.charAt(Oe++)),ve=this.KEY_STR.indexOf(Z.charAt(Oe++)),Le=this.KEY_STR.indexOf(Z.charAt(Oe++)),R=ce<<2|me>>4,z=(me&15)<<4|ve>>2,ee=(ve&3)<<6|Le,Ee.push(R),ve!==64&&Ee.push(z),Le!==64&&Ee.push(ee),R=z=ee="",ce=me=ve=Le="",Oe<Z.length;);return Ee}}]),ne}(); $ r.initClass();var zt=function(ie,Z){var re=!1,R=!0,z=ie.document,ee=z.documentElement,ce=z.addEventListener?"addEventListener":"attachEvent",me=z.addEventListener?"removeEventListener":"detachEvent",ve=z.addEventListener?"":"on",Le=function Ee(Ve){if(!(Ve.type==="readystatechange"&&z.readyState!=="complete")&&((Ve.type==="load"?ie:z)[me](ve+Ve.type,Ee,!1),!re&&(re=!0)))return Z.call(ie,Ve.type||Ve)},Oe=function Ee(){try{ee.doScroll("left")}catch(Ve){setTimeout(Ee,50);return}return Le("poll")};if(z.readyState!=="complete"){if(z.createEventObject&&ee.doScroll){try{R=!ie.frameElement}catch(Ee){}R&&Oe()}return z[ce](ve+"DOMContentLoaded",Le,!1),z[ce](ve+"readystatechange",Le,!1),ie[ce](ve+"load",Le,!1)}};st._autoDiscoverFunction=function(){if(st.autoDiscover)return st.discover()},zt(window,st._autoDiscoverFunction);function yr(ne,ie){return typeof ne!="undefined"&&ne!==null?ie(ne):void 0}function lr(ne,ie,Z){if(typeof ne!="undefined"&&ne!==null&&typeof ne[ie]=="function")return Z(ne,ie)}window.Dropzone=st;var Qt=st}(),l}()})});var ap=Me((NS,b0)=>{b0.exports={Aacute:" \x C1",aacute:" \x E1",Abreve:" \u 0102",abreve:" \u 0103",ac:" \u 223E",acd:" \u 223F",acE:" \u 223E \u 0333",Acirc:" \x C2",acirc:" \x E2",acute:" \x B4",Acy:" \u 0410",acy:" \u 0430",AElig:" \x C6",aelig:" \x E6",af:" \u 2061",Afr:" \u {1D504}",afr:" \u {1D51E}",Agrave:" \x C0",agrave:" \x E0",alefsym:" \u 2135",aleph:" \u 2135",Alpha:" \u 0391",alpha:" \u 03B1",Amacr:" \u 0100",amacr:" \u 0101",amalg:" \u 2A3F",amp:"&",AMP:"&",andand:" \u 2A55",And:" \u 2A53",and:" \u 2227",andd:" \u 2A5C",andslope:" \u 2A58",andv:" \u 2A5A",ang:" \u 2220",ange:" \u 29A4",angle:" \u 2220",angmsdaa:" \u 29A8",angmsdab:" \u 29A9",angmsdac:" \u 29AA",angmsdad:" \u 29AB",angmsdae:" \u 29AC",angmsdaf:" \u 29AD",angmsdag:" \u 29AE",angmsdah:" \u 29AF",angmsd:" \u 2221",angrt:" \u 221F",angrtvb:" \u 22BE",angrtvbd:" \u 299D",angsph:" \u 2222",angst:" \x C5",angzarr:" \u 237C",Aogon:" \u 0104",aogon:" \u 0105",Aopf:" \u {1D538}",aopf:" \u {1D552}",apacir:" \u 2A6F",ap:" \u 2248",apE:" \u 2A70",ape:" \u 224A",apid:" \u 224B",apos:"'",ApplyFunction:" \u 2061",approx:" \u 2248",approxeq:" \u 224A",Aring:" \x C5",aring:" \x E5",Ascr:" \u {1D49C}",ascr:" \u {1D4B6}",Assign:" \u 2254",ast:"*",asymp:" \u 2248",asympeq:" \u 224D",Atilde:" \x C3",atilde:" \x E3",Auml:" \x C4",auml:" \x E4",awconint:" \u 2233",awint:" \u 2A11",backcong:" \u 224C",backepsilon:" \u 03F6",backprime:" \u 2035",backsim:" \u 223D",backsimeq:" \u 22CD",Backslash:" \u 2216",Barv:" \u 2AE7",barvee:" \u 22BD",barwed:" \u 2305",Barwed:" \u 2306",barwedge:" \u 2305",bbrk:" \u 23B5",bbrktbrk:" \u 23B6",bcong:" \u 224C",Bcy:" \u 0411",bcy:" \u 0431",bdquo:" \u 201E",becaus:" \u 2235",because:" \u 2235",Because:" \u 2235",bemptyv:" \u 29B0",bepsi:" \u 03F6",bernou:" \u 212C",Bernoullis:" \u 212C",Beta:" \u 0392",beta:" \u 03B2",beth:" \u 2136",between:" \u 226C",Bfr:" \u {1D505}",bfr:" \u {1D51F}",bigcap:" \u 22C2",bigcirc:" \u 25EF",bigcup:" \u 22C3",bigodot:" \u 2A00",bigoplus:" \u 2A01",bigotimes:" \u 2A02",bigsqcup:" \u 2A06",bigstar:" \u 2605",bigtriangledown:" \u 25BD",bigtriangleup:" \u 25B3",biguplus:" \u 2A04",bigvee:" \u 22C1",bigwedge:" \u 22C0",bkarow:" \u 290D",blacklozenge:" \u 29EB",blacksquare:" \u 25AA",blacktriangle:" \u 25B4",blacktriangledown:" \u 25BE",blacktriangleleft:" \u 25C2",blacktriangleright:" \u 25B8",blank:" \u 2423",blk12:" \u 2592",blk14:" \u 2591",blk34:" \u 2593",block:" \u 2588",bne:"= \u 20E5",bnequiv:" \u 2261 \u 20E5",bNot:" \u 2AED",bnot:" \u 2310",Bopf:" \u {1D539}",bopf:" \u {1D553}",bot:" \u 22A5",bottom:" \u 22A5",bowtie:" \u 22C8",boxbox:" \u 29C9",boxdl:" \u 2510",boxdL:" \u 2555",boxDl:" \u 2556",boxDL:" \u 2557",boxdr:" \u 250C",boxdR:" \u 2552",boxDr:" \u 2553",boxDR:" \u 2554",boxh:" \u 2500",boxH:" \u 2550",boxhd:" \u 252C",boxHd:" \u 2564",boxhD:" \u 2565",boxHD:" \u 2566",boxhu:" \u 2534",boxHu:" \u 2567",boxhU:" \u 2568",boxHU:" \u 2569",boxminus:" \u 229F",boxplus:" \u 229E",boxtimes:" \u 22A0",boxul:" \u 2518
` ,nexist:" \u 2204",nexists:" \u 2204",Nfr:" \u {1D511}",nfr:" \u {1D52B}",ngE:" \u 2267 \u 0338",nge:" \u 2271",ngeq:" \u 2271",ngeqq:" \u 2267 \u 0338",ngeqslant:" \u 2A7E \u 0338",nges:" \u 2A7E \u 0338",nGg:" \u 22D9 \u 0338",ngsim:" \u 2275",nGt:" \u 226B \u 20D2",ngt:" \u 226F",ngtr:" \u 226F",nGtv:" \u 226B \u 0338",nharr:" \u 21AE",nhArr:" \u 21CE",nhpar:" \u 2AF2",ni:" \u 220B",nis:" \u 22FC",nisd:" \u 22FA",niv:" \u 220B",NJcy:" \u 040A",njcy:" \u 045A",nlarr:" \u 219A",nlArr:" \u 21CD",nldr:" \u 2025",nlE:" \u 2266 \u 0338",nle:" \u 2270",nleftarrow:" \u 219A",nLeftarrow:" \u 21CD",nleftrightarrow:" \u 21AE",nLeftrightarrow:" \u 21CE",nleq:" \u 2270",nleqq:" \u 2266 \u 0338",nleqslant:" \u 2A7D \u 0338",nles:" \u 2A7D \u 0338",nless:" \u 226E",nLl:" \u 22D8 \u 0338",nlsim:" \u 2274",nLt:" \u 226A \u 20D2",nlt:" \u 226E",nltri:" \u 22EA",nltrie:" \u 22EC",nLtv:" \u 226A \u 0338",nmid:" \u 2224",NoBreak:" \u 2060",NonBreakingSpace:" \x A0",nopf:" \u {1D55F}",Nopf:" \u 2115",Not:" \u 2AEC",not:" \x AC",NotCongruent:" \u 2262",NotCupCap:" \u 226D",NotDoubleVerticalBar:" \u 2226",NotElement:" \u 2209",NotEqual:" \u 2260",NotEqualTilde:" \u 2242 \u 0338",NotExists:" \u 2204",NotGreater:" \u 226F",NotGreaterEqual:" \u 2271",NotGreaterFullEqual:" \u 2267 \u 0338",NotGreaterGreater:" \u 226B \u 0338",NotGreaterLess:" \u 2279",NotGreaterSlantEqual:" \u 2A7E \u 0338",NotGreaterTilde:" \u 2275",NotHumpDownHump:" \u 224E \u 0338",NotHumpEqual:" \u 224F \u 0338",notin:" \u 2209",notindot:" \u 22F5 \u 0338",notinE:" \u 22F9 \u 0338",notinva:" \u 2209",notinvb:" \u 22F7",notinvc:" \u 22F6",NotLeftTriangleBar:" \u 29CF \u 0338",NotLeftTriangle:" \u 22EA",NotLeftTriangleEqual:" \u 22EC",NotLess:" \u 226E",NotLessEqual:" \u 2270",NotLessGreater:" \u 2278",NotLessLess:" \u 226A \u 0338",NotLessSlantEqual:" \u 2A7D \u 0338",NotLessTilde:" \u 2274",NotNestedGreaterGreater:" \u 2AA2 \u 0338",NotNestedLessLess:" \u 2AA1 \u 0338",notni:" \u 220C",notniva:" \u 220C",notnivb:" \u 22FE",notnivc:" \u 22FD",NotPrecedes:" \u 2280",NotPrecedesEqual:" \u 2AAF \u 0338",NotPrecedesSlantEqual:" \u 22E0",NotReverseElement:" \u 220C",NotRightTriangleBar:" \u 29D0 \u 0338",NotRightTriangle:" \u 22EB",NotRightTriangleEqual:" \u 22ED",NotSquareSubset:" \u 228F \u 0338",NotSquareSubsetEqual:" \u 22E2",NotSquareSuperset:" \u 2290 \u 0338",NotSquareSupersetEqual:" \u 22E3",NotSubset:" \u 2282 \u 20D2",NotSubsetEqual:" \u 2288",NotSucceeds:" \u 2281",NotSucceedsEqual:" \u 2AB0 \u 0338",NotSucceedsSlantEqual:" \u 22E1",NotSucceedsTilde:" \u 227F \u 0338",NotSuperset:" \u 2283 \u 20D2",NotSupersetEqual:" \u 2289",NotTilde:" \u 2241",NotTildeEqual:" \u 2244",NotTildeFullEqual:" \u 2247",NotTildeTilde:" \u 2249",NotVerticalBar:" \u 2224",nparallel:" \u 2226",npar:" \u 2226",nparsl:" \u 2AFD \u 20E5",npart:" \u 2202 \u 0338",npolint:" \u 2A14",npr:" \u 2280",nprcue:" \u 22E0",nprec:" \u 2280",npreceq:" \u 2AAF \u 0338",npre:" \u 2AAF \u 0338",nrarrc:" \u 2933 \u 0338",nrarr:" \u 219B",nrArr:" \u 21CF",nrarrw:" \u 219D \u 0338",nrightarrow:" \u 219B",nRightarrow:" \u 21CF",nrtri:" \u 22EB",nrtrie:" \u 22ED",nsc:" \u 2281",nsccue:" \u 22E1",nsce:" \u 2AB0 \u 0338",Nscr:" \u {1D4A9}",nscr:" \u {1D4C3}",nshortmid:" \u 2224",nshortparallel:" \u 2226",nsim:" \u 2241",nsime:" \u 2244",nsimeq:" \u 2244",nsmid:" \u 2224",nspar:" \u 2226",nsqsube:" \u 22E2",nsqsupe:" \u 22E3",nsub:" \u 2284",nsubE:" \u 2AC5 \u 0338",nsube:" \u 2288",nsubset:" \u 2282 \u 20D2",nsubseteq:" \u 2288",nsubseteqq:" \u 2AC5 \u 0338",nsucc:" \u 2281",nsucceq:" \u 2AB0 \u 0338",nsup:" \u 2285",nsupE:" \u 2AC6 \u 0338",nsupe:" \u 2289",nsupset:" \u 2283 \u 20D2",nsupseteq:" \u 2289",nsupseteqq:" \u 2AC6 \u 0338",ntgl:" \u 2279",Ntilde:" \x D1",ntilde:" \x F1",ntlg:" \u 2278",ntriangleleft:" \u 22EA",ntrianglelefteq:" \u 22EC",ntriangleright:" \u 22EB",ntrianglerighteq:" \u 22ED",Nu:" \u 039D",nu:" \u 03BD",num:"#",numero:" \u 2116",numsp:" \u 2007",nvap:" \u 224D \u 20D2",nvdash:" \u 22AC",nvDash:" \u 22AD",nVdash:" \u 22AE",nVDash:" \u 22AF",nvge:" \u 2265 \u 20D2",nvgt:"> \u 20D2",nvHarr:" \u 2904",nvinfin:" \u 29DE",nvlArr:" \u 2902",nvle:" \u 2264 \u 20D2",nvlt:"< \u 20D2",nvltrie:" \u 22B4 \u 20D2",nvrArr:" \u 2903",nvrtrie:" \u 22B5 \u 20D2",nvsim:" \u 223C \u 20D2",nwarhk:" \u 2923",nwarr:" \u 2196",nwArr:" \u 21D6",nwarrow:" \u 2196",nwnear:" \u 2927",Oacute:" \x D3",oacute:" \x F3",oast:" \u 229B",Ocirc:" \x D4",ocirc:" \x F4",ocir:" \u 229A",Ocy:" \u 041E",ocy:" \u 043E",odash:" \u 229D",Odblac:" \u 0150",odblac:" \u 0151",odiv:" \u 2A38",odot:" \u 2299",odsold:" \u 29BC",OElig:" \u 0152",oelig:" \u 01
` ," "],C0=["{","}","|"," \\ ","^"," ` "].concat(E0),T0=[" '"].concat(C0),vp=["%","/","?",";","#"].concat(T0),yp=["/","?","#"],A0=255,bp=/^[+a-z0-9A-Z_-]{0,63}$/,L0=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,xp={javascript:!0,"javascript:":!0},wp={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function D0(i,t){if(i&&i instanceof Aa)return i;var n=new Aa;return n.parse(i,t),n}Aa.prototype.parse=function(i,t){var n,l,c,f,a,h=i;if(h=h.trim(),!t&&i.split("#").length===1){var d=S0.exec(h);if(d)return this.pathname=d[1],d[2]&&(this.search=d[2]),this}var p=k0.exec(h);if(p&&(p=p[0],c=p.toLowerCase(),this.protocol=p,h=h.substr(p.length)),(t||p||h.match(/^\/\/[^@\/]+@[^@\/]+/))&&(a=h.substr(0,2)==="//",a&&!(p&&xp[p])&&(h=h.substr(2),this.slashes=!0)),!xp[p]&&(a||p&&!wp[p])){var y=-1;for(n=0;n<yp.length;n++)f=h.indexOf(yp[n]),f!==-1&&(y===-1||f<y)&&(y=f);var g,v;for(y===-1?v=h.lastIndexOf("@"):v=h.lastIndexOf("@",y),v!==-1&&(g=h.slice(0,v),h=h.slice(v+1),this.auth=g),y=-1,n=0;n<vp.length;n++)f=h.indexOf(vp[n]),f!==-1&&(y===-1||f<y)&&(y=f);y===-1&&(y=h.length),h[y-1]===":"&&y--;var b=h.slice(0,y);h=h.slice(y),this.parseHost(b),this.hostname=this.hostname||"";var k=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!k){var S=this.hostname.split(/\./);for(n=0,l=S.length;n<l;n++){var w=S[n];if(!!w&&!w.match(bp)){for(var F="",_=0,P=w.length;_<P;_++)w.charCodeAt(_)>127?F+="x":F+=w[_];if(!F.match(bp)){var O=S.slice(0,n),H=S.slice(n+1),U=w.match(L0);U&&(O.push(U[1]),H.unshift(U[2])),H.length&&(h=H.join(".")+h),this.hostname=O.join(".");break}}}}this.hostname.length>A0&&(this.hostname=""),k&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var J=h.indexOf("#");J!==-1&&(this.hash=h.substr(J),h=h.slice(0,J));var G=h.indexOf("?");return G!==-1&&(this.search=h.substr(G),h=h.slice(0,G)),h&&(this.pathname=h),wp[c]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Aa.prototype.parseHost=function(i){var t=_0.exec(i);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),i=i.substr(0,i.length-t.length)),i&&(this.hostname=i)};kp.exports=D0});var al=Me((WS,po)=>{"use strict";po.exports.encode=fp();po.exports.decode=pp();po.exports.format=gp();po.exports.parse=_p()});var sl=Me((GS,Sp)=>{Sp.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/});var ll=Me((KS,Ep)=>{Ep.exports=/[\0-\x1F\x7F-\x9F]/});var Tp=Me((VS,Cp)=>{Cp.exports=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/});var ul=Me((YS,Ap)=>{Ap.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/});var Lp=Me(xi=>{"use strict";xi.Any=sl();xi.Cc=ll();xi.Cf=Tp();xi.P=Ea();xi.Z=ul()});var Ft=Me(sr=>{"use strict";function I0(i){return Object.prototype.toString.call(i)}function F0(i){return I0(i)==="[object String]"}var M0=Object.prototype.hasOwnProperty;function Dp(i,t){return M0.call(i,t)}function O0(i){var t=Array.prototype.slice.call(arguments,1);return t.forEach(function(n){if(!!n){if(typeof n!="object")throw new TypeError(n+"must be object");Object.keys(n).forEach(function(l){i[l]=n[l]})}}),i}function P0(i,t,n){return[].concat(i.slice(0,t),n,i.slice(t+1))}function Ip(i){return!(i>=55296&&i<=57343||i>=64976&&i<=65007||(i&65535)==65535||(i&65535)==65534||i>=0&&i<=8||i===11||i>=14&&i<=31||i>=127&&i<=159||i>1114111)}function Fp(i){if(i>65535){i-=65536;var t=55296+(i>>10),n=56320+(i&1023);return String.fromCharCode(t,n)}return String.fromCharCode(i)}var Mp=/\\([!"#$%&' ( ) * + , \ - . \ / : ; <= > ? @ [ \ \ \ ] ^ _ ` {|}~])/g,R0=/&([a-z#][a-z0-9]{1,31});/gi,z0=new RegExp(Mp.source+"|"+R0.source,"gi"),N0=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,Op=ol();function B0(i,t){var n=0;return Dp(Op,t)?Op[t]:t.charCodeAt(0)===35&&N0.test(t)&&(n=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10),Ip(n))?Fp(n):i}function q0(i){return i.indexOf(" \\ ")<0?i:i.replace(Mp," $ 1")}function j0(i){return i.
` };rn.fence=function(i,t,n,l,c){var f=i[t],a=f.info?nw(f.info).trim():"",h="",d="",p,y,g,v,b;return a&&(g=a.split(/( \s +)/g),h=g[0],d=g.slice(2).join("")),n.highlight?p=n.highlight(f.content,h,d)|| $ n(f.content):p= $ n(f.content),p.indexOf("<pre")===0?p+ `
` :a?(y=f.attrIndex("class"),v=f.attrs?f.attrs.slice():[],y<0?v.push(["class",n.langPrefix+h]):(v[y]=v[y].slice(),v[y][1]+=" "+n.langPrefix+h),b={attrs:v},"<pre><code"+c.renderAttrs(b)+">"+p+ ` < / c o d e > < / p r e >
` ):"<pre><code"+c.renderAttrs(f)+">"+p+ ` < / c o d e > < / p r e >
` };rn.image=function(i,t,n,l,c){var f=i[t];return f.attrs[f.attrIndex("alt")][1]=c.renderInlineAsText(f.children,n,l),c.renderToken(i,t,n)};rn.hardbreak=function(i,t,n){return n.xhtmlOut? ` < br / >
2020-09-20 17:33:18 +08:00
` : ` < br >
2021-09-01 05:07:53 +08:00
` };rn.softbreak=function(i,t,n){return n.breaks?n.xhtmlOut? ` < br / >
2020-09-20 17:33:18 +08:00
` : ` < br >
` : `
2021-09-01 05:07:53 +08:00
` };rn.text=function(i,t){return $ n(i[t].content)};rn.html_block=function(i,t){return i[t].content};rn.html_inline=function(i,t){return i[t].content};function wi(){this.rules=rw({},rn)}wi.prototype.renderAttrs=function(t){var n,l,c;if(!t.attrs)return"";for(c="",n=0,l=t.attrs.length;n<l;n++)c+=" "+ $ n(t.attrs[n][0])+'="'+ $ n(t.attrs[n][1])+'"';return c};wi.prototype.renderToken=function(t,n,l){var c,f="",a=!1,h=t[n];return h.hidden?"":(h.block&&h.nesting!==-1&&n&&t[n-1].hidden&&(f+= `
` ),f+=(h.nesting===-1?"</":"<")+h.tag,f+=this.renderAttrs(h),h.nesting===0&&l.xhtmlOut&&(f+=" /"),h.block&&(a=!0,h.nesting===1&&n+1<t.length&&(c=t[n+1],(c.type==="inline"||c.hidden||c.nesting===-1&&c.tag===h.tag)&&(a=!1))),f+=a? ` >
` :">",f)};wi.prototype.renderInline=function(i,t,n){for(var l,c="",f=this.rules,a=0,h=i.length;a<h;a++)l=i[a].type,typeof f[l]!="undefined"?c+=f[l](i,a,t,n,this):c+=this.renderToken(i,a,t);return c};wi.prototype.renderInlineAsText=function(i,t,n){for(var l="",c=0,f=i.length;c<f;c++)i[c].type==="text"?l+=i[c].content:i[c].type==="image"?l+=this.renderInlineAsText(i[c].children,t,n):i[c].type==="softbreak"&&(l+= `
` );return l};wi.prototype.render=function(i,t,n){var l,c,f,a="",h=this.rules;for(l=0,c=i.length;l<c;l++)f=i[l].type,f==="inline"?a+=this.renderInline(i[l].children,t,n):typeof h[f]!="undefined"?a+=h[i[l].type](i,l,t,n,this):a+=this.renderToken(i,l,t,n);return a};Up.exports=wi});var Da=Me((n1,Wp)=>{"use strict";function Kr(){this.__rules__=[],this.__cache__=null}Kr.prototype.__find__=function(i){for(var t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===i)return t;return-1};Kr.prototype.__compile__=function(){var i=this,t=[""];i.__rules__.forEach(function(n){!n.enabled||n.alt.forEach(function(l){t.indexOf(l)<0&&t.push(l)})}),i.__cache__={},t.forEach(function(n){i.__cache__[n]=[],i.__rules__.forEach(function(l){!l.enabled||n&&l.alt.indexOf(n)<0||i.__cache__[n].push(l.fn)})})};Kr.prototype.at=function(i,t,n){var l=this.__find__(i),c=n||{};if(l===-1)throw new Error("Parser rule not found: "+i);this.__rules__[l].fn=t,this.__rules__[l].alt=c.alt||[],this.__cache__=null};Kr.prototype.before=function(i,t,n,l){var c=this.__find__(i),f=l||{};if(c===-1)throw new Error("Parser rule not found: "+i);this.__rules__.splice(c,0,{name:t,enabled:!0,fn:n,alt:f.alt||[]}),this.__cache__=null};Kr.prototype.after=function(i,t,n,l){var c=this.__find__(i),f=l||{};if(c===-1)throw new Error("Parser rule not found: "+i);this.__rules__.splice(c+1,0,{name:t,enabled:!0,fn:n,alt:f.alt||[]}),this.__cache__=null};Kr.prototype.push=function(i,t,n){var l=n||{};this.__rules__.push({name:i,enabled:!0,fn:t,alt:l.alt||[]}),this.__cache__=null};Kr.prototype.enable=function(i,t){Array.isArray(i)||(i=[i]);var n=[];return i.forEach(function(l){var c=this.__find__(l);if(c<0){if(t)return;throw new Error("Rules manager: invalid rule name "+l)}this.__rules__[c].enabled=!0,n.push(l)},this),this.__cache__=null,n};Kr.prototype.enableOnly=function(i,t){Array.isArray(i)||(i=[i]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(i,t)};Kr.prototype.disable=function(i,t){Array.isArray(i)||(i=[i]);var n=[];return i.forEach(function(l){var c=this.__find__(l);if(c<0){if(t)return;throw new Error("Rules manager: invalid rule name "+l)}this.__rules__[c].enabled=!1,n.push(l)},this),this.__cache__=null,n};Kr.prototype.getRules=function(i){return this.__cache__===null&&this.__compile__(),this.__cache__[i]||[]};Wp.exports=Kr});var Kp=Me((i1,Gp)=>{"use strict";var iw=/ \r \n ?| \n /g,ow=/ \0 /g;Gp.exports=function(t){var n;n=t.src.replace(iw, `
` ),n=n.replace(ow," \u FFFD"),t.src=n}});var Yp=Me((o1,Vp)=>{"use strict";Vp.exports=function(t){var n;t.inlineMode?(n=new t.Token("inline","",0),n.content=t.src,n.map=[0,1],n.children=[],t.tokens.push(n)):t.md.block.parse(t.src,t.md,t.env,t.tokens)}});var Zp=Me((a1,Xp)=>{"use strict";Xp.exports=function(t){var n=t.tokens,l,c,f;for(c=0,f=n.length;c<f;c++)l=n[c],l.type==="inline"&&t.md.inline.parse(l.content,t.md,t.env,l.children)}});var Jp=Me((s1,Qp)=>{"use strict";var aw=Ft().arrayReplaceAt;function sw(i){return/^<a[> \s ]/i.test(i)}function lw(i){return/^< \/ a \s *>/i.test(i)}Qp.exports=function(t){var n,l,c,f,a,h,d,p,y,g,v,b,k,S,w,F,_=t.tokens,P;if(!!t.md.options.linkify){for(l=0,c=_.length;l<c;l++)if(!(_[l].type!=="inline"||!t.md.linkify.pretest(_[l].content)))for(f=_[l].children,k=0,n=f.length-1;n>=0;n--){if(h=f[n],h.type==="link_close"){for(n--;f[n].level!==h.level&&f[n].type!=="link_open";)n--;continue}if(h.type==="html_inline"&&(sw(h.content)&&k>0&&k--,lw(h.content)&&k++),!(k>0)&&h.type==="text"&&t.md.linkify.test(h.content)){for(y=h.content,P=t.md.linkify.match(y),d=[],b=h.level,v=0,p=0;p<P.length;p++)S=P[p].url,w=t.md.normalizeLink(S),!!t.md.validateLink(w)&&(F=P[p].text,P[p].schema?P[p].schema==="mailto:"&&!/^mailto:/i.test(F)?F=t.md.normalizeLinkText("mailto:"+F).replace(/^mailto:/,""):F=t.md.normalizeLinkText(F):F=t.md.normalizeLinkText("http://"+F).replace(/^http: \/ \/ /,""),g=P[p].index,g>v&&(a=new t.Token("text","",0),a.content=y.slice(v,g),a.level=b,d.push(a)),a=new t.Token("link_open","a",1),a.attrs=[["href",w]],a.level=b++,a.markup="linkify",a.info="auto",d.push(a),a=new t.Token("text","",0),a.content=F,a.level=b,d.push(a),a=new t.Token("link_close","a",-1),a.level=--b,a.markup="linkify",a.info="auto",d.push(a),v=P[p].lastIndex);v<y.length&&(a=new t.Token("text","",0),a.content=y.slice(v),a.level=b,d.push(a)),_[l].children=f=aw(f,n,d)}}}}});var rm=Me((l1,tm)=>{"use strict";var em=/ \+ -| \. \. | \? \? \? \? |!!!!|,,|--/,uw=/ \( (c|tm|r|p) \) /i,cw=/ \( (c|tm|r|p) \) /ig,fw={c:" \x A9",r:" \x AE",p:" \x A7",tm:" \u 2122"};function dw(i,t){return fw[t.toLowerCase()]}function hw(i){var t,n,l=0;for(t=i.length-1;t>=0;t--)n=i[t],n.type==="text"&&!l&&(n.content=n.content.replace(cw,dw)),n.type==="link_open"&&n.info==="auto"&&l--,n.type==="link_close"&&n.info==="auto"&&l++}function pw(i){var t,n,l=0;for(t=i.length-1;t>=0;t--)n=i[t],n.type==="text"&&!l&&em.test(n.content)&&(n.content=n.content.replace(/ \+ -/g," \x B1").replace(/ \. {2,}/g," \u 2026").replace(/([?!])…/g," $ 1..").replace(/([?!]){4,}/g," $ 1 $ 1 $ 1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]| $ )/mg," $ 1 \u 2014").replace(/(^| \s )--(?= \s | $ )/mg," $ 1 \u 2013").replace(/(^|[^- \s ])--(?=[^- \s ]| $ )/mg," $ 1 \u 2013")),n.type==="link_open"&&n.info==="auto"&&l--,n.type==="link_close"&&n.info==="auto"&&l++}tm.exports=function(t){var n;if(!!t.md.options.typographer)for(n=t.tokens.length-1;n>=0;n--)t.tokens[n].type==="inline"&&(uw.test(t.tokens[n].content)&&hw(t.tokens[n].children),em.test(t.tokens[n].content)&&pw(t.tokens[n].children))}});var um=Me((u1,lm)=>{"use strict";var nm=Ft().isWhiteSpace,im=Ft().isPunctChar,om=Ft().isMdAsciiPunct,mw=/['"]/,am=/['"]/g,sm=" \u 2019";function Ia(i,t,n){return i.substr(0,t)+n+i.substr(t+1)}function gw(i,t){var n,l,c,f,a,h,d,p,y,g,v,b,k,S,w,F,_,P,O,H,U;for(O=[],n=0;n<i.length;n++){for(l=i[n],d=i[n].level,_=O.length-1;_>=0&&!(O[_].level<=d);_--);if(O.length=_+1,l.type!=="text")continue;c=l.content,a=0,h=c.length;e:for(;a<h&&(am.lastIndex=a,f=am.exec(c),!!f);){if(w=F=!0,a=f.index+1,P=f[0]==="'",y=32,f.index-1>=0)y=c.charCodeAt(f.index-1);else for(_=n-1;_>=0&&!(i[_].type==="softbreak"||i[_].type==="hardbreak");_--)if(!!i[_].content){y=i[_].content.charCodeAt(i[_].content.length-1);break}if(g=32,a<h)g=c.charCodeAt(a);else for(_=n+1;_<i.length&&!(i[_].type==="softbreak"||i[_].type==="hardbreak");_++)if(!!i[_].content){g=i[_].content.charCodeAt(0);break}if(v=om(y)||im(String.fromCharCode(y)),b=om(g)||im(String.fromCharCode(g)),k=nm(y),S=nm(g),S?w=!1:b&&(k||v||(w=!1)),k?F=!1:v&&(S||b||(F=!1)),g===34&&f[0]==='"'&&y>=48&&y<=57&&(F=w=!1),w&&F&&(w=v,F=b),!w&&!F){P&&(l.content=Ia(l.co
` ,a.map=[n,t.line],!0}});var km=Me((m1,wm)=>{"use strict";wm.exports=function(t,n,l,c){var f,a,h,d,p,y,g,v=!1,b=t.bMarks[n]+t.tShift[n],k=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4||b+3>k||(f=t.src.charCodeAt(b),f!==126&&f!==96)||(p=b,b=t.skipChars(b,f),a=b-p,a<3)||(g=t.src.slice(p,b),h=t.src.slice(b,k),f===96&&h.indexOf(String.fromCharCode(f))>=0))return!1;if(c)return!0;for(d=n;d++,!(d>=l||(b=p=t.bMarks[d]+t.tShift[d],k=t.eMarks[d],b<k&&t.sCount[d]<t.blkIndent));)if(t.src.charCodeAt(b)===f&&!(t.sCount[d]-t.blkIndent>=4)&&(b=t.skipChars(b,f),!(b-p<a)&&(b=t.skipSpaces(b),!(b<k)))){v=!0;break}return a=t.sCount[n],t.line=d+(v?1:0),y=t.push("fence","code",0),y.info=h,y.content=t.getLines(n+1,d,a,!0),y.markup=g,y.map=[n,t.line],!0}});var Em=Me((g1,Sm)=>{"use strict";var _m=Ft().isSpace;Sm.exports=function(t,n,l,c){var f,a,h,d,p,y,g,v,b,k,S,w,F,_,P,O,H,U,J,G,Y=t.lineMax,K=t.bMarks[n]+t.tShift[n],q=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4||t.src.charCodeAt(K++)!==62)return!1;if(c)return!0;for(d=b=t.sCount[n]+1,t.src.charCodeAt(K)===32?(K++,d++,b++,f=!1,O=!0):t.src.charCodeAt(K)===9?(O=!0,(t.bsCount[n]+b)%4==3?(K++,d++,b++,f=!1):f=!0):O=!1,k=[t.bMarks[n]],t.bMarks[n]=K;K<q&&(a=t.src.charCodeAt(K),_m(a));){a===9?b+=4-(b+t.bsCount[n]+(f?1:0))%4:b++;K++}for(S=[t.bsCount[n]],t.bsCount[n]=t.sCount[n]+1+(O?1:0),y=K>=q,_=[t.sCount[n]],t.sCount[n]=b-d,P=[t.tShift[n]],t.tShift[n]=K-t.bMarks[n],U=t.md.block.ruler.getRules("blockquote"),F=t.parentType,t.parentType="blockquote",v=n+1;v<l&&(G=t.sCount[v]<t.blkIndent,K=t.bMarks[v]+t.tShift[v],q=t.eMarks[v],!(K>=q));v++){if(t.src.charCodeAt(K++)===62&&!G){for(d=b=t.sCount[v]+1,t.src.charCodeAt(K)===32?(K++,d++,b++,f=!1,O=!0):t.src.charCodeAt(K)===9?(O=!0,(t.bsCount[v]+b)%4==3?(K++,d++,b++,f=!1):f=!0):O=!1,k.push(t.bMarks[v]),t.bMarks[v]=K;K<q&&(a=t.src.charCodeAt(K),_m(a));){a===9?b+=4-(b+t.bsCount[v]+(f?1:0))%4:b++;K++}y=K>=q,S.push(t.bsCount[v]),t.bsCount[v]=t.sCount[v]+1+(O?1:0),_.push(t.sCount[v]),t.sCount[v]=b-d,P.push(t.tShift[v]),t.tShift[v]=K-t.bMarks[v];continue}if(y)break;for(H=!1,h=0,p=U.length;h<p;h++)if(U[h](t,v,l,!0)){H=!0;break}if(H){t.lineMax=v,t.blkIndent!==0&&(k.push(t.bMarks[v]),S.push(t.bsCount[v]),P.push(t.tShift[v]),_.push(t.sCount[v]),t.sCount[v]-=t.blkIndent);break}k.push(t.bMarks[v]),S.push(t.bsCount[v]),P.push(t.tShift[v]),_.push(t.sCount[v]),t.sCount[v]=-1}for(w=t.blkIndent,t.blkIndent=0,J=t.push("blockquote_open","blockquote",1),J.markup=">",J.map=g=[n,0],t.md.block.tokenize(t,n,v),J=t.push("blockquote_close","blockquote",-1),J.markup=">",t.lineMax=Y,t.parentType=F,g[1]=t.line,h=0;h<P.length;h++)t.bMarks[h+n]=k[h],t.tShift[h+n]=P[h],t.sCount[h+n]=_[h],t.bsCount[h+n]=S[h];return t.blkIndent=w,!0}});var Tm=Me((v1,Cm)=>{"use strict";var bw=Ft().isSpace;Cm.exports=function(t,n,l,c){var f,a,h,d,p=t.bMarks[n]+t.tShift[n],y=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4||(f=t.src.charCodeAt(p++),f!==42&&f!==45&&f!==95))return!1;for(a=1;p<y;){if(h=t.src.charCodeAt(p++),h!==f&&!bw(h))return!1;h===f&&a++}return a<3?!1:(c||(t.line=n+1,d=t.push("hr","hr",0),d.map=[n,t.line],d.markup=Array(a+1).join(String.fromCharCode(f))),!0)}});var Fm=Me((y1,Im)=>{"use strict";var Am=Ft().isSpace;function Lm(i,t){var n,l,c,f;return l=i.bMarks[t]+i.tShift[t],c=i.eMarks[t],n=i.src.charCodeAt(l++),n!==42&&n!==45&&n!==43||l<c&&(f=i.src.charCodeAt(l),!Am(f))?-1:l}function Dm(i,t){var n,l=i.bMarks[t]+i.tShift[t],c=l,f=i.eMarks[t];if(c+1>=f||(n=i.src.charCodeAt(c++),n<48||n>57))return-1;for(;;){if(c>=f)return-1;if(n=i.src.charCodeAt(c++),n>=48&&n<=57){if(c-l>=10)return-1;continue}if(n===41||n===46)break;return-1}return c<f&&(n=i.src.charCodeAt(c),!Am(n))?-1:c}function xw(i,t){var n,l,c=i.level+2;for(n=t+2,l=i.tokens.length-2;n<l;n++)i.tokens[n].level===c&&i.tokens[n].type==="paragraph_open"&&(i.tokens[n+2].hidden=!0,i.tokens[n].hidden=!0,n+=2)}Im.exports=function(t,n,l,c){var f,a,h,d,p,y,g,v,b,k,S,w,F,_,P,O,H,U,J,G,Y,K,q,T,A, $ ,te,j,N=!1,oe=!0;if(t.sCount[n]-t.blkIndent>=4||t.listIndent>=0&&t.sCount[n]-t.listIndent>=4&&t.sCount[n]<t.blkIndent)return!1;if(c&&t.parentType==="paragraph"&&t.tShift[n]>=t.blkI
` );Xo("error",t)}}var Nc={emit:Xo,emitPublic:Lx,listen:Ax,success:i=>Xo("success",i),error:i=>Xo("error",i),showValidationErrors:Dx};async function Ix(i,t={}){return Bc(i,{method:"GET",params:t})}async function Fx(i,t=null){return Zo("POST",i,t)}async function Mx(i,t=null){return Zo("PUT",i,t)}async function Ox(i,t=null){return Zo("PATCH",i,t)}async function Px(i,t=null){return Zo("DELETE",i,t)}async function Zo(i,t,n=null){let l={method:i,body:n};return typeof n=="object"&&!(n instanceof FormData)&&(l.headers={"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},l.body=JSON.stringify(n)),n instanceof FormData&&i!=="post"&&(n.append("_method",i),l.method="post"),Bc(t,l)}async function Bc(i,t={}){if(i.startsWith("http")||(i=window.baseUrl(i)),t.params){let a=new URL(i);for(let h of Object.keys(t.params)){let d=t.params[h];typeof d!="undefined"&&d!==null&&a.searchParams.set(h,d)}i=a.toString()}let n=document.querySelector("meta[name=token]").getAttribute("content");t=Object.assign({},t,{credentials:"same-origin"}),t.headers=Object.assign({},t.headers||{},{baseURL:window.baseUrl(""),"X-CSRF-TOKEN":n});let l=await fetch(i,t),f={data:await Rx(l),headers:l.headers,redirected:l.redirected,status:l.status,statusText:l.statusText,url:l.url,original:l};if(!l.ok)throw f;return f}async function Rx(i){if(i.status===204)return null;let n=(i.headers.get("Content-Type")||"").split(";")[0].split("/").pop();return n==="javascript"||n==="json"?await i.json():await i.text()}var qc={get:Ix,post:Fx,put:Mx,patch:Ox,delete:Px};var jc=class{constructor(t){this.store=new Map,this.parseTranslations()}parseTranslations(){let t=document.querySelectorAll('meta[name="translation"]');for(let n of t){let l=n.getAttribute("key"),c=n.getAttribute("value");this.store.set(l,c)}}get(t,n){let l=this.getTransText(t);return this.performReplacements(l,n)}getPlural(t,n,l){let c=this.getTransText(t);return this.parsePlural(c,n,l)}parsePlural(t,n,l){let c=t.split("|"),f=/^{([0-9]+)}/,a=/^ \[ ([0-9]+),([0-9*]+)]/,h=null;for(let d of c){let p=d.match(f);if(p!==null&&Number(p[1])===n){h=d.replace(f,"").trim();break}let y=d.match(a);if(y!==null&&Number(y[1])<=n&&(y[2]==="*"||Number(y[2])>=n)){h=d.replace(a,"").trim();break}}return h===null&&c.length>1&&(h=n===1?c[0]:c[1]),h===null&&(h=c[0]),this.performReplacements(h,l)}getTransText(t){let n=this.store.get(t);return n===void 0&&console.warn( ` Translation with key "${t}" does not exist ` ),n}performReplacements(t,n){if(!n)return t;let l=t.match(/:([ \S ]+)/g);return l===null||l.forEach(c=>{let f=c.substring(1);typeof n[f]!="undefined"&&(t=t.replace(c,n[f]))}),t}}, $ c=jc;function Qo(i,t){let n=document.querySelectorAll(i);for(let l of n)t(l)}function Jo(i,t,n){for(let l of t)i.addEventListener(l,n)}function Rt(i,t){Array.isArray(i)||(i=[i]);for(let n of i)n.addEventListener("click",t),n.addEventListener("keydown",l=>{(l.key==="Enter"||l.key===" ")&&(l.preventDefault(),t(l))})}function ea(i,t){Array.isArray(i)||(i=[i]);let n=l=>{l.key==="Enter"&&t(l)};i.forEach(l=>l.addEventListener("keypress",n))}function Ut(i,t,n,l){i.addEventListener(n,function(c){let f=c.target.closest(t);f&&l.call(f,c,f)})}function Uc(i,t){let n=document.querySelectorAll(i);t=t.toLowerCase();for(let l of n)if(l.textContent.toLowerCase().includes(t))return l;return null}function eo(i){i.innerHTML='<div class="loading-container"><div></div><div></div><div></div></div>'}function Hc(i){let t=i.querySelectorAll(".loading-container");for(let n of t)n.remove()}function ta(i,t,n){let l;return function(){let c=this,f=arguments,a=function(){l=null,n||i.apply(c,f)},h=n&&!l;clearTimeout(l),l=setTimeout(a,t),h&&i.apply(c,f)}}function to(i){if(!i)return;i.scrollIntoView({behavior:"smooth"});let t=document.getElementById("custom-styles").getAttribute("data-color-light"),n=window.getComputedStyle(i).getPropertyValue("background-color");i.style.backgroundColor=t,setTimeout(()=>{i.classList.add("selectFade"),i.style.backgroundColor=n},10),setTimeout(()=>{i.classList.remove("selectFade"),i.style.backgroundColor=""},3e3)}function Wc(i){return i.replace(/&/g,"
` );let n=i.textContent.trimEnd(),l="";if(t!==null){let f=t.className.replace("language-","");l=ka(f,n)}let c=(0,jn.default)(function(f){i.parentNode.replaceChild(f,i)},{value:n,mode:l,lineNumbers:!0,lineWrapping:!1,theme:_a(),readOnly:!0});d0(c)}function d0(i){let t='<svg viewBox="0 0 24 24" width="16" height="16" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h24v24H0z" fill="none"/><path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"/></svg>',n=document.createElement("div");n.classList.add("CodeMirror-copy"),n.innerHTML=t,i.display.wrapper.appendChild(n),new mh.default(n,{text:function(c){return i.getValue()}}).on("success",c=>{n.classList.add("success"),setTimeout(()=>{n.classList.remove("success")},240)})}function ka(i,t){i=i.trim().replace(/^ \. /g,"").toLowerCase();let n=typeof nl[i];return n==="undefined"?"":n==="function"?nl[i](t):nl[i]}function _a(){let i=document.documentElement.classList.contains("dark-mode");return window.codeTheme||(i?"darcula":"default")}function h0(i){let t=i.ownerDocument,n=i.querySelector("code"),l=(i.className||"").replace("language-","");l===""&&n&&(l=(n.className||"").replace("language-","")),i.innerHTML=i.innerHTML.replace(/<br \s *[ \/ ]?>/gi, `
` );let c=i.textContent,f=t.createElement("div"),a=t.createElement("textarea");f.className="CodeMirrorContainer",f.setAttribute("data-lang",l),f.setAttribute("dir","ltr"),a.style.display="none",i.parentNode.replaceChild(f,i),f.appendChild(a),f.contentEditable=!1,a.textContent=c;let h=(0,jn.default)(function(d){f.appendChild(d)},{value:c,mode:ka(l,c),lineNumbers:!0,lineWrapping:!1,theme:_a(),readOnly:!0});return{wrap:f,editor:h}}function p0(i,t){let n=i.textContent;return(0,jn.default)(function(l){i.parentNode.insertBefore(l,i),i.style.display="none"},{value:n,mode:ka(t,n),lineNumbers:!0,lineWrapping:!1,theme:_a()})}function m0(i,t,n){i.setOption("mode",ka(t,n))}function g0(i,t){i.setValue(t),setTimeout(()=>{vh(i)},10)}function vh(i){i.refresh()}function v0(i){let n={value:i.textContent,mode:"markdown",lineNumbers:!0,lineWrapping:!0,theme:_a(),scrollPastEnd:!0};return window. $ events.emitPublic(i,"editor-markdown-cm::pre-init",{config:n}),(0,jn.default)(function(l){i.parentNode.insertBefore(l,i),i.style.display="none"},n)}function y0(){return jn.default.keyMap.default==jn.default.keyMap.macDefault?"Cmd":"Ctrl"}var cr={highlight:c0,highlightWithin:f0,wysiwygView:h0,popupEditor:p0,setMode:m0,setContent:g0,updateLayout:vh,markdownEditor:v0,getMetaKey:y0};var yh=class{setup(){this.container=this. $ refs.container,this.popup=this. $ el,this.editorInput=this. $ refs.editor,this.languageLinks=this. $ manyRefs.languageLink,this.saveButton=this. $ refs.saveButton,this.languageInput=this. $ refs.languageInput,this.historyDropDown=this. $ refs.historyDropDown,this.historyList=this. $ refs.historyList,this.callback=null,this.editor=null,this.history={},this.historyKey="code_history",this.setupListeners()}setupListeners(){this.container.addEventListener("keydown",t=>{t.ctrlKey&&t.key==="Enter"&&this.save()}),Rt(this.languageLinks,t=>{let n=t.target.dataset.lang;this.languageInput.value=n,this.updateEditorMode(n)}),ea(this.languageInput,t=>this.save()),Rt(this.saveButton,t=>this.save()),Ut(this.historyList,"button","click",(t,n)=>{t.preventDefault();let l=n.dataset.time;this.editor&&this.editor.setValue(this.history[l])})}save(){this.callback&&this.callback(this.editor.getValue(),this.languageInput.value),this.hide()}open(t,n,l){this.languageInput.value=n,this.callback=l,this.show(),this.updateEditorMode(n),cr.setContent(this.editor,t)}show(){this.editor||(this.editor=cr.popupEditor(this.editorInput,this.languageInput.value)),this.loadHistory(),this.popup.components.popup.show(()=>{cr.updateLayout(this.editor),this.editor.focus()},()=>{this.addHistory()})}hide(){this.popup.components.popup.hide(),this.addHistory()}updateEditorMode(t){cr.setMode(this.editor,t,this.editor.getValue())}loadHistory(){this.history=JSON.parse(window.sessionStorage.getItem(this.historyKey)||"{}");let t=Object.keys(this.history).reverse();this.historyDropDown.classList.toggle("hidden",t.length===0),this.historyList.innerHTML=t.map(n=>{let l=new Date(parseInt(n)).toLocaleTimeString();return ` < li > < button type = "button" data - time = "${n}" > $ { l } < / 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 ; l e t t = t h i s . e d i t o r . g e t V a l u e ( ) ; i f ( ! t ) r e t u r n ; l e t n = 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 [ n ] = = = t ) 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 ( ) ) ] = t ; l e t l = 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 , l ) } } , b h = y h ; v a r x h = c l a s s { c o n s t r u c t o r ( t ) { c r . h i g h l i g h t W i t h i n ( t ) } } , w h = x h ; v a r k h = c l a s s { c o n s t r u c t o r ( t ) { t h i s . e l e m = t , t h i s . t r i g g e r = t . 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 = t . 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 & & ( 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 " ) , b 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 " ) , y 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 ( ) { 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 " ) & & t h i s . o p e n ( ) } } , _ h = k h ; v a r S h = c l a s s { c o n s t r u c t o r ( t ) { t h i s . e l e m = t , t h i s . c h e c k b o x = t . q u e
` ).map(y=>y.indexOf( ` drawio - diagram = "${c}" ` )!==-1?d:y).join( `
` );this.cm.setValue(p),this.cm.setCursor(l),this.cm.focus(),Nr.close()}).catch(h=>{this.handleDrawingUploadError(h)})})}handleDrawingUploadError(t){t.status===413?window. $ events.emit("error",this.serverUploadLimitText):window. $ events.emit("error",this.imageUploadErrorText),console.log(t)}actionFullScreen(){let t=this.elem.classList.contains("fullscreen");this.elem.classList.toggle("fullscreen",!t),document.body.classList.toggle("markdown-fullscreen",!t)}scrollToText(t){if(!t)return;let l=this.cm.getValue().split(/ \r ? \n /),c=l.findIndex(f=>f&&f.indexOf(t)!==-1);c!==-1&&(this.cm.scrollIntoView({line:c},200),this.cm.focus(),this.cm.setCursor({line:c,char:l[c].length}))}listenForBookStackEditorEvents(){function t({html:n,markdown:l}){return l||n}window. $ events.listen("editor::replace",n=>{let l=t(n);this.cm.setValue(l)}),window. $ events.listen("editor::append",n=>{let l=this.cm.getCursor("from"),c=t(n),f=this.cm.getValue()+ `
` +c;this.cm.setValue(f),this.cm.setCursor(l.line,l.ch)}),window. $ events.listen("editor::prepend",n=>{let l=this.cm.getCursor("from"),c=t(n),f=c+ `
` +this.cm.getValue();this.cm.setValue(f);let a=c.split( `
` ).length;this.cm.setCursor(l.line+a,l.ch)}),window. $ events.listen("editor::insert",n=>{let l=t(n);this.cm.replaceSelection(l)}),window. $ events.listen("editor::focus",()=>{this.cm.focus()})}},_v=kv;var Sv=class{constructor(t){this.elem=t,this.inviteOption=t.querySelector("input[name=send_invite]"),this.inviteOption&&(this.inviteOption.addEventListener("change",this.inviteOptionChange.bind(this)),this.inviteOptionChange())}inviteOptionChange(){let t=this.inviteOption.value==="true",n=this.elem.querySelectorAll("input[type=password]");for(let c of n)c.disabled=t;let l=this.elem.querySelector("#password-input-container");l&&(l.style.display=t?"none":"block")}},Ev=Sv;var Cv=class{constructor(t){this.elem=t,this.type=t.getAttribute("notification"),this.textElem=t.querySelector("span"),this.autohide=this.elem.hasAttribute("data-autohide"),this.elem.style.display="grid",window. $ events.listen(this.type,n=>{this.show(n)}),t.addEventListener("click",this.hide.bind(this)),t.hasAttribute("data-show")&&setTimeout(()=>this.show(this.textElem.textContent),100),this.hideCleanup=this.hideCleanup.bind(this)}show(t=""){if(this.elem.removeEventListener("transitionend",this.hideCleanup),this.textElem.textContent=t,this.elem.style.display="grid",setTimeout(()=>{this.elem.classList.add("showing")},1),this.autohide){let n=t.split(" ").length,l=Math.max(2e3,1e3+250*n);setTimeout(this.hide.bind(this),l)}}hide(){this.elem.classList.remove("showing"),this.elem.addEventListener("transitionend",this.hideCleanup)}hideCleanup(){this.elem.style.display="none",this.elem.removeEventListener("transitionend",this.hideCleanup)}},Tv=Cv;var Av=class{setup(){this.removeButton=this. $ refs.remove,this.showButton=this. $ refs.show,this.input=this. $ refs.input,this.setupListeners()}setupListeners(){Rt(this.removeButton,()=>{this.input.value="",this.input.classList.add("hidden"),this.removeButton.classList.add("hidden"),this.showButton.classList.remove("hidden")}),Rt(this.showButton,()=>{this.input.classList.remove("hidden"),this.removeButton.classList.remove("hidden"),this.showButton.classList.add("hidden")})}},Lv=Av;var Dv=class{setup(){this.elem=this. $ el,this.pageId=Number(this. $ opts.pageId),this.container=this. $ refs.commentContainer,this.formContainer=this. $ refs.formContainer,this.commentCountBar=this. $ refs.commentCountBar,this.addButtonContainer=this. $ refs.addButtonContainer,this.replyToRow=this. $ refs.replyToRow,this.updatedText=this. $ opts.updatedText,this.deletedText=this. $ opts.deletedText,this.createdText=this. $ opts.createdText,this.countText=this. $ opts.countText,this.editingComment=null,this.parentId=null,this.formContainer&&(this.form=this.formContainer.querySelector("form"),this.formInput=this.form.querySelector("textarea"),this.form.addEventListener("submit",this.saveComment.bind(this))),this.elem.addEventListener("click",this.handleAction.bind(this)),this.elem.addEventListener("submit",this.updateComment.bind(this))}handleAction(t){let n=t.target.closest("[action]");if(t.target.matches('a[href^="#"]')){let f=t.target.href.split("#")[1];to(document.querySelector("#"+f))}if(n===null)return;t.preventDefault();let l=n.getAttribute("action"),c=n.closest("[comment]");l==="edit"&&this.editComment(c),l==="closeUpdateForm"&&this.closeUpdateForm(),l==="delete"&&this.deleteComment(c),l==="addComment"&&this.showForm(),l==="hideForm"&&this.hideForm(),l==="reply"&&this.setReply(c),l==="remove-reply-to"&&this.removeReplyTo()}closeUpdateForm(){!this.editingComment||(this.editingComment.querySelector("[comment-content]").style.display="block",this.editingComment.querySelector("[comment-edit-container]").style.display="none")}editComment(t){this.hideForm(),this.editingComment&&this.closeUpdateForm(),t.querySelector("[comment-content]").style.display="none",t.querySelector("[comment-edit-container]").style.display="block";let n=t.querySelector("[comment-edit-container] textarea"),l=n.value.split( `
` ).length;n.style.height=l*20+40+"px",this.editingComment=t}updateComment(t){let n=t.target;t.preventDefault();let c={text:n.querySelector("textarea").value,parent_id:this.parentId||null};this.showLoading(n);let f=this.editingComment.getAttribute("comment");window. $ http.put( ` / comment / $ { f } ` ,c).then(a=>{let h=document.createElement("div");h.innerHTML=a.data,this.editingComment.innerHTML=h.children[0].innerHTML,window. $ events.success(this.updatedText),window.components.init(this.editingComment),this.closeUpdateForm(),this.editingComment=null}).catch(window. $ events.showValidationErrors).then(()=>{this.hideLoading(n)})}deleteComment(t){let n=t.getAttribute("comment");this.showLoading(t.querySelector("[comment-content]")),window. $ http.delete( ` / comment / $ { n } ` ).then(l=>{t.parentNode.removeChild(t),window. $ events.success(this.deletedText),this.updateCount(),this.hideForm()})}saveComment(t){t.preventDefault(),t.stopPropagation();let l={text:this.formInput.value,parent_id:this.parentId||null};this.showLoading(this.form),window. $ http.post( ` / comment / $ { this . pageId } ` ,l).then(c=>{let f=document.createElement("div");f.innerHTML=c.data;let a=f.children[0];this.container.appendChild(a),window.components.init(a),window. $ events.success(this.createdText),this.resetForm(),this.updateCount()}).catch(c=>{window. $ events.showValidationErrors(c),this.hideLoading(this.form)})}updateCount(){let t=this.container.children.length;this.elem.querySelector("[comments-title]").textContent=window.trans_plural(this.countText,t,{count:t})}resetForm(){this.formInput.value="",this.formContainer.appendChild(this.form),this.hideForm(),this.removeReplyTo(),this.hideLoading(this.form)}showForm(){this.formContainer.style.display="block",this.formContainer.parentNode.style.display="block",this.addButtonContainer.style.display="none",this.formInput.focus(),this.formInput.scrollIntoView({behavior:"smooth"})}hideForm(){this.formContainer.style.display="none",this.formContainer.parentNode.style.display="none",this.getCommentCount()>0?this.elem.appendChild(this.addButtonContainer):this.commentCountBar.appendChild(this.addButtonContainer),this.addButtonContainer.style.display="block"}getCommentCount(){return this.elem.querySelectorAll(".comment-box[comment]").length}setReply(t){this.showForm(),this.parentId=Number(t.getAttribute("local-id")),this.replyToRow.style.display="block";let n=this.replyToRow.querySelector("a");n.textContent= ` # $ { this . parentId } ` ,n.href= ` # comment$ { this . parentId } ` }removeReplyTo(){this.parentId=null,this.replyToRow.style.display="none"}showLoading(t){let n=t.querySelectorAll(".form-group");for(let l of n)l.style.display="none";t.querySelector(".form-group.loading").style.display="block"}hideLoading(t){let n=t.querySelectorAll(".form-group");for(let l of n)l.style.display="block";t.querySelector(".form-group.loading").style.display="none"}},Iv=Dv;var Fv=_t(Qs());var Mv=class{constructor(t){if(this.elem=t,this.pageId=t.getAttribute("page-display"),cr.highlight(),this.setupPointer(),this.setupNavHighlighting(),this.setupDetailsCodeBlockRefresh(),window.location.hash){let l=window.location.hash.replace(/ \% 20/g," ").substr(1);this.goToText(l)}let n=document.querySelector(".sidebar-page-nav");n&&Ut(n,"a","click",(l,c)=>{l.preventDefault(),window.components["tri-layout"][0].showContent();let f=c.getAttribute("href").substr(1);this.goToText(f),window.history.pushState(null,null,"#"+f)})}goToText(t){let n=document.getElementById(t);if(Qo(".page-content [data-highlighted]",l=>{l.removeAttribute("data-highlighted"),l.style.backgroundColor=null}),n!==null)to(n);else{let l=Uc(".page-content > div > *",t);l&&to(l)}}setupPointer(){let t=document.getElementById("pointer");if(!t)return;t=t.parentNode.removeChild(t);let n=t.querySelector("div.pointer"),l=!1,c=!1,f=!0,a="";Ut(t,"input","click",(d,p)=>{p.select(),d.stopPropagation()}),Jo(t,["click","focus"],d=>{d.stopPropagation()}),Ut(t,"span.icon","click",(d,p)=>{d.stopPropagation(),f=!f,p.querySelector('[data-icon="include"]').style.display=f?"none":"inline",p.querySelector('[data-icon="link"]').style.display=f?"inline"
2020-09-20 17:33:18 +08: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-09-01 05:07:53 +08:00
< /svg>`)}`,cmd:"drawio",menu:[{text:"Drawing Manager",onclick(){let b=g.selection.getNode();h(g,a(b)?b:null)}}]}),g.on("dblclick",b=>{let k=g.selection.getNode();!a(k)||d(g,k)}),g.on("SetContent",function(){let b=g.$("body > div[drawio-diagram]");!b.length||g.undoManager.transact(function(){b.each((k,S)=>{S.setAttribute("contenteditable","false")})})})})}function Qk(){window.tinymce.PluginManager.add("customhr",function(i){i.addCommand("InsertHorizontalRule",function(){let t=document.createElement("hr"),n=i.selection.getNode();n.parentNode.insertBefore(t,n)}),i.addButton("hr",{icon:"hr",tooltip:"Horizontal line",cmd:"InsertHorizontalRule"}),i.addMenuItem("hr",{icon:"hr",text:"Horizontal line",cmd:"InsertHorizontalRule",context:"insert"})})}function Jk(i){window.$events.listen("editor::replace",({html:t})=>{i.setContent(t)}),window.$events.listen("editor::append",({html:t})=>{let n=i.getContent()+t;i.setContent(n)}),window.$events.listen("editor::prepend",({html:t})=>{let n=t+i.getContent();i.setContent(n)}),window.$events.listen("editor::insert",({html:t})=>{i.insertContent(t)}),window.$events.listen("editor::focus",()=>{i.focus()})}var my=class{setup(){this.elem=this.$el,this.pageId=this.$opts.pageId,this.textDirection=this.$opts.textDirection,this.imageUploadErrorText=this.$opts.imageUploadErrorText,this.serverUploadLimitText=this.$opts.serverUploadLimitText,this.isDarkMode=document.documentElement.classList.contains("dark-mode"),this.plugins="image imagetools table textcolor paste link autolink fullscreen code customhr autosave lists codeeditor media",this.loadPlugins(),this.tinyMceConfig=this.getTinyMceConfig(),window.$events.emitPublic(this.elem,"editor-tinymce::pre-init",{config:this.tinyMceConfig}),window.tinymce.init(this.tinyMceConfig)}loadPlugins(){Xk(),Qk();let t=document.querySelector("[drawio-url]");if(t){let n=t.getAttribute("drawio-url");Zk(n,this.isDarkMode,this.pageId,this),this.plugins+=" drawio"}this.textDirection==="rtl"&&(this.plugins+=" directionality")}getToolBar(){return`undo redo | styleselect | bold italic underline strikethrough superscript subscript | forecolor backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | table image-insert link hr drawio media | removeformat code ${this.textDirection==="rtl"?"ltr rtl":""} fullscreen`}getTinyMceConfig(){let t=this;return{selector:"#html-editor",content_css:[window.baseUrl("/dist/styles.css")],branding:!1,skin:this.isDarkMode?"dark":"lightgray",body_class:"page-content",browser_spellcheck:!0,relative_urls:!1,directionality:this.textDirection,remove_script_host:!1,document_base_url:window.baseUrl("/ "),end_container_on_empty_block:!0,statusbar:!1,menubar:!1,paste_data_images:!1,extended_valid_elements:" pre [ * ] , svg [ * ] , div [ drawio - diagram ] ",automatic_uploads:!1,valid_children:" - div [ p | h1 | h2 | h3 | h4 | h5 | h6 | blockquote ] , + div [ pre ] , + div [ img ] ",plugins:this.plugins,imagetools_toolbar:" imageoptions ",toolbar:this.getToolBar(),content_style:`html, body, html.dark-mode {background: ${this.isDarkMode?" # 222 ":" # fff "};} body {padding-left: 15px !important; padding-right: 15px !important; margin:0!important; margin-left:auto!important;margin-right:auto!important;}`,style_formats:[{title:" Header Large ",format:" h2 "},{title:" Header Medium ",format:" h3 "},{title:" Header Small ",format:" h4 "},{title:" Header Tiny ",format:" h5 "},{title:" Paragraph ",format:" p ",exact:!0,classes:" "},{title:" Blockquote ",format:" blockquote "},{title:" Code Block ",icon:" code ",cmd:" codeeditor ",format:" codeeditor "},{title:" Inline Code ",icon:" code ",inline:" code "},{title:" Callouts ",items:[{title:" Info ",format:" calloutinfo "},{title:" Success ",format:" calloutsuccess "},{title:" Warning ",format:" calloutwarning "},{title:" Danger ",format:" calloutdanger "}]}],style_formats_merge:!1,media_alt_source:!1,media_poster:!1,formats:{codeeditor:{selector:" p , h1 , h2 , h3 , h4 , h5 , h6 , td , th , div "},alignleft:{selector:" p , h1 , h2 , h3 , h4 , h5 , h6 , td , th , div , ul , ol , li , table , img ",classes:" align - left "},aligncenter:{selector:" p , h1 , h2 , h3 , h4 , h5 , h6 , td , th , div , ul , ol , li , table , img ",classes:" align - center "},alignright:{selector:" p , h
2019-08-31 21:16:14 +08:00
/ * !
2021-04-10 04:18:32 +08:00
* clipboard . js v2 . 0.8
2020-03-15 06:31:42 +08:00
* https : //clipboardjs.com/
2021-04-10 04:18:32 +08:00
*
2019-08-31 21:16:14 +08:00
* Licensed MIT © Zeno Rocha
* /
2021-04-10 04:18:32 +08:00
/ * * !
2021-09-01 05:07:53 +08:00
* Sortable 1.14 . 0
2021-04-10 04:18:32 +08:00
* @ author RubaXa < trash @ rubaxa . org >
* @ author owenm < owen23355 @ gmail . com >
* @ license MIT
* /
2020-09-20 17:33:18 +08:00
//# sourceMappingURL=app.js.map