@rero/rero-ils-ui
Version:
User interface for RERO integrated library system (RERO ILS).
5 lines (4 loc) • 2.5 MB
JavaScript
var UQ=Object.create;var US=Object.defineProperty,qQ=Object.defineProperties,WQ=Object.getOwnPropertyDescriptor,GQ=Object.getOwnPropertyDescriptors,KQ=Object.getOwnPropertyNames,X1=Object.getOwnPropertySymbols,YQ=Object.getPrototypeOf,qS=Object.prototype.hasOwnProperty,b8=Object.prototype.propertyIsEnumerable;var y8=(t,n,e)=>n in t?US(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,j=(t,n)=>{for(var e in n||={})qS.call(n,e)&&y8(t,e,n[e]);if(X1)for(var e of X1(n))b8.call(n,e)&&y8(t,e,n[e]);return t},Ye=(t,n)=>qQ(t,GQ(n));var J1=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(n,e)=>(typeof require<"u"?require:n)[e]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var _8=t=>typeof t=="symbol"?t:t+"",$l=(t,n)=>{var e={};for(var i in t)qS.call(t,i)&&n.indexOf(i)<0&&(e[i]=t[i]);if(t!=null&&X1)for(var i of X1(t))n.indexOf(i)<0&&b8.call(t,i)&&(e[i]=t[i]);return e};var Wt=(t,n)=>()=>(n||t((n={exports:{}}).exports,n),n.exports);var QQ=(t,n,e,i)=>{if(n&&typeof n=="object"||typeof n=="function")for(let r of KQ(n))!qS.call(t,r)&&r!==e&&US(t,r,{get:()=>n[r],enumerable:!(i=WQ(n,r))||i.enumerable});return t};var x8=(t,n,e)=>(e=t!=null?UQ(YQ(t)):{},QQ(n||!t||!t.__esModule?US(e,"default",{value:t,enumerable:!0}):e,t));var Ua=Wt((MI,AI)=>{(function(t,n){typeof MI=="object"&&typeof AI<"u"?AI.exports=n():typeof define=="function"&&define.amd?define(n):(t=t||self,t.CodeMirror=n())})(MI,function(){"use strict";var t=navigator.userAgent,n=navigator.platform,e=/gecko\/\d/i.test(t),i=/MSIE \d/.test(t),r=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(t),o=/Edge\/(\d+)/.exec(t),a=i||r||o,s=a&&(i?document.documentMode||6:+(o||r)[1]),c=!o&&/WebKit\//.test(t),d=c&&/Qt\/\d+\.\d+/.test(t),h=!o&&/Chrome\/(\d+)/.exec(t),g=h&&+h[1],_=/Opera\//.test(t),x=/Apple Computer/.test(navigator.vendor),w=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(t),E=/PhantomJS/.test(t),k=x&&(/Mobile\/\w+/.test(t)||navigator.maxTouchPoints>2),T=/Android/.test(t),A=k||T||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t),z=k||/Mac/.test(n),V=/\bCrOS\b/.test(t),W=/win/i.test(n),Y=_&&t.match(/Version\/(\d*\.\d*)/);Y&&(Y=Number(Y[1])),Y&&Y>=15&&(_=!1,c=!0);var ae=z&&(d||_&&(Y==null||Y<12.11)),De=e||a&&s>=9;function oe(l){return new RegExp("(^|\\s)"+l+"(?:$|\\s)\\s*")}var Fe=function(l,u){var f=l.className,p=oe(u).exec(f);if(p){var m=f.slice(p.index+p[0].length);l.className=f.slice(0,p.index)+(m?p[1]+m:"")}};function Ce(l){for(var u=l.childNodes.length;u>0;--u)l.removeChild(l.firstChild);return l}function Ae(l,u){return Ce(l).appendChild(u)}function X(l,u,f,p){var m=document.createElement(l);if(f&&(m.className=f),p&&(m.style.cssText=p),typeof u=="string")m.appendChild(document.createTextNode(u));else if(u)for(var C=0;C<u.length;++C)m.appendChild(u[C]);return m}function ge(l,u,f,p){var m=X(l,u,f,p);return m.setAttribute("role","presentation"),m}var Ee;document.createRange?Ee=function(l,u,f,p){var m=document.createRange();return m.setEnd(p||l,f),m.setStart(l,u),m}:Ee=function(l,u,f){var p=document.body.createTextRange();try{p.moveToElementText(l.parentNode)}catch{return p}return p.collapse(!0),p.moveEnd("character",f),p.moveStart("character",u),p};function Be(l,u){if(u.nodeType==3&&(u=u.parentNode),l.contains)return l.contains(u);do if(u.nodeType==11&&(u=u.host),u==l)return!0;while(u=u.parentNode)}function ot(l){var u=l.ownerDocument||l,f;try{f=l.activeElement}catch{f=u.body||null}for(;f&&f.shadowRoot&&f.shadowRoot.activeElement;)f=f.shadowRoot.activeElement;return f}function Dt(l,u){var f=l.className;oe(u).test(f)||(l.className+=(f?" ":"")+u)}function Ve(l,u){for(var f=l.split(" "),p=0;p<f.length;p++)f[p]&&!oe(f[p]).test(u)&&(u+=" "+f[p]);return u}var q=function(l){l.select()};k?q=function(l){l.selectionStart=0,l.selectionEnd=l.value.length}:a&&(q=function(l){try{l.select()}catch{}});function P(l){return l.display.wrapper.ownerDocument}function Te(l){return St(l.display.wrapper)}function St(l){return l.getRootNode?l.getRootNode():l.ownerDocument}function gt(l){return P(l).defaultView}function Pn(l){var u=Array.prototype.slice.call(arguments,1);return function(){return l.apply(null,u)}}function zt(l,u,f){u||(u={});for(var p in l)Object.prototype.hasOwnProperty.call(l,p)&&(f!==!1||!Object.prototype.hasOwnProperty.call(u,p))&&(u[p]=l[p]);return u}function zn(l,u,f,p,m){u==null&&(u=l.search(/[^\s\u00a0]/),u==-1&&(u=l.length));for(var C=p||0,S=m||0;;){var I=l.indexOf(" ",C);if(I<0||I>=u)return S+(u-C);S+=I-C,S+=f-S%f,C=I+1}}var mi=function(){this.id=null,this.f=null,this.time=0,this.handler=Pn(this.onTimeout,this)};mi.prototype.onTimeout=function(l){l.id=0,l.time<=+new Date?l.f():setTimeout(l.handler,l.time-+new Date)},mi.prototype.set=function(l,u){this.f=u;var f=+new Date+l;(!this.id||f<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,l),this.time=f)};function Rn(l,u){for(var f=0;f<l.length;++f)if(l[f]==u)return f;return-1}var jn=50,Ln={toString:function(){return"CodeMirror.Pass"}},Un={scroll:!1},mo={origin:"*mouse"},rr={origin:"+move"};function Hr(l,u,f){for(var p=0,m=0;;){var C=l.indexOf(" ",p);C==-1&&(C=l.length);var S=C-p;if(C==l.length||m+S>=u)return p+Math.min(S,u-m);if(m+=C-p,m+=f-m%f,p=C+1,m>=u)return p}}var yr=[""];function Mo(l){for(;yr.length<=l;)yr.push(dn(yr)+" ");return yr[l]}function dn(l){return l[l.length-1]}function gi(l,u){for(var f=[],p=0;p<l.length;p++)f[p]=u(l[p],p);return f}function vi(l,u,f){for(var p=0,m=f(u);p<l.length&&f(l[p])<=m;)p++;l.splice(p,0,u)}function go(){}function Ks(l,u){var f;return Object.create?f=Object.create(l):(go.prototype=l,f=new go),u&&zt(u,f),f}var Ol=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Go(l){return/\w/.test(l)||l>"\x80"&&(l.toUpperCase()!=l.toLowerCase()||Ol.test(l))}function Qa(l,u){return u?u.source.indexOf("\\w")>-1&&Go(l)?!0:u.test(l):Go(l)}function kf(l){for(var u in l)if(l.hasOwnProperty(u)&&l[u])return!1;return!0}var Ef=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Ys(l){return l.charCodeAt(0)>=768&&Ef.test(l)}function xa(l,u,f){for(;(f<0?u>0:u<l.length)&&Ys(l.charAt(u));)u+=f;return u}function Qs(l,u,f){for(var p=u>f?-1:1;;){if(u==f)return u;var m=(u+f)/2,C=p<0?Math.ceil(m):Math.floor(m);if(C==u)return l(C)?u:f;l(C)?f=C:u=C+p}}function Pw(l,u,f,p){if(!l)return p(u,f,"ltr",0);for(var m=!1,C=0;C<l.length;++C){var S=l[C];(S.from<f&&S.to>u||u==f&&S.to==u)&&(p(Math.max(S.from,u),Math.min(S.to,f),S.level==1?"rtl":"ltr",C),m=!0)}m||p(u,f,"ltr")}var _u=null;function xu(l,u,f){var p;_u=null;for(var m=0;m<l.length;++m){var C=l[m];if(C.from<u&&C.to>u)return m;C.to==u&&(C.from!=C.to&&f=="before"?p=m:_u=m),C.from==u&&(C.from!=C.to&&f!="before"?p=m:_u=m)}return p??_u}var Vw=(function(){var l="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",u="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function f(B){return B<=247?l.charAt(B):1424<=B&&B<=1524?"R":1536<=B&&B<=1785?u.charAt(B-1536):1774<=B&&B<=2220?"r":8192<=B&&B<=8203?"w":B==8204?"b":"L"}var p=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,m=/[stwN]/,C=/[LRr]/,S=/[Lb1n]/,I=/[1n]/;function N(B,Q,J){this.level=B,this.from=Q,this.to=J}return function(B,Q){var J=Q=="ltr"?"L":"R";if(B.length==0||Q=="ltr"&&!p.test(B))return!1;for(var we=B.length,ye=[],Oe=0;Oe<we;++Oe)ye.push(f(B.charCodeAt(Oe)));for(var je=0,et=J;je<we;++je){var st=ye[je];st=="m"?ye[je]=et:et=st}for(var ht=0,lt=J;ht<we;++ht){var wt=ye[ht];wt=="1"&<=="r"?ye[ht]="n":C.test(wt)&&(lt=wt,wt=="r"&&(ye[ht]="R"))}for(var Ht=1,Vt=ye[0];Ht<we-1;++Ht){var En=ye[Ht];En=="+"&&Vt=="1"&&ye[Ht+1]=="1"?ye[Ht]="1":En==","&&Vt==ye[Ht+1]&&(Vt=="1"||Vt=="n")&&(ye[Ht]=Vt),Vt=En}for(var yi=0;yi<we;++yi){var Wr=ye[yi];if(Wr==",")ye[yi]="N";else if(Wr=="%"){var Qi=void 0;for(Qi=yi+1;Qi<we&&ye[Qi]=="%";++Qi);for(var Sa=yi&&ye[yi-1]=="!"||Qi<we&&ye[Qi]=="1"?"1":"N",Zo=yi;Zo<Qi;++Zo)ye[Zo]=Sa;yi=Qi-1}}for(var xr=0,Xo=J;xr<we;++xr){var lo=ye[xr];Xo=="L"&&lo=="1"?ye[xr]="L":C.test(lo)&&(Xo=lo)}for(var Mr=0;Mr<we;++Mr)if(m.test(ye[Mr])){var Cr=void 0;for(Cr=Mr+1;Cr<we&&m.test(ye[Cr]);++Cr);for(var or=(Mr?ye[Mr-1]:J)=="L",Jo=(Cr<we?ye[Cr]:J)=="L",Xf=or==Jo?or?"L":"R":J,Mu=Mr;Mu<Cr;++Mu)ye[Mu]=Xf;Mr=Cr-1}for(var bo=[],Vl,Gr=0;Gr<we;)if(S.test(ye[Gr])){var HS=Gr;for(++Gr;Gr<we&&S.test(ye[Gr]);++Gr);bo.push(new N(0,HS,Gr))}else{var Dc=Gr,rp=bo.length,op=Q=="rtl"?1:0;for(++Gr;Gr<we&&ye[Gr]!="L";++Gr);for(var Oo=Dc;Oo<Gr;)if(I.test(ye[Oo])){Dc<Oo&&(bo.splice(rp,0,new N(1,Dc,Oo)),rp+=op);var Jf=Oo;for(++Oo;Oo<Gr&&I.test(ye[Oo]);++Oo);bo.splice(rp,0,new N(2,Jf,Oo)),rp+=op,Dc=Oo}else++Oo;Dc<Gr&&bo.splice(rp,0,new N(1,Dc,Gr))}return Q=="ltr"&&(bo[0].level==1&&(Vl=B.match(/^\s+/))&&(bo[0].from=Vl[0].length,bo.unshift(new N(0,0,Vl[0].length))),dn(bo).level==1&&(Vl=B.match(/\s+$/))&&(dn(bo).to-=Vl[0].length,bo.push(new N(0,we-Vl[0].length,we)))),Q=="rtl"?bo.reverse():bo}})();function Zs(l,u){var f=l.order;return f==null&&(f=l.order=Vw(l.text,u)),f}var Jh=[],qt=function(l,u,f){if(l.addEventListener)l.addEventListener(u,f,!1);else if(l.attachEvent)l.attachEvent("on"+u,f);else{var p=l._handlers||(l._handlers={});p[u]=(p[u]||Jh).concat(f)}};function If(l,u){return l._handlers&&l._handlers[u]||Jh}function Ko(l,u,f){if(l.removeEventListener)l.removeEventListener(u,f,!1);else if(l.detachEvent)l.detachEvent("on"+u,f);else{var p=l._handlers,m=p&&p[u];if(m){var C=Rn(m,f);C>-1&&(p[u]=m.slice(0,C).concat(m.slice(C+1)))}}}function Yi(l,u){var f=If(l,u);if(f.length)for(var p=Array.prototype.slice.call(arguments,2),m=0;m<f.length;++m)f[m].apply(null,p)}function br(l,u,f){return typeof u=="string"&&(u={type:u,preventDefault:function(){this.defaultPrevented=!0}}),Yi(l,f||u.type,l,u),Mf(u)||u.codemirrorIgnore}function v1(l){var u=l._handlers&&l._handlers.cursorActivity;if(u)for(var f=l.curOp.cursorActivityHandlers||(l.curOp.cursorActivityHandlers=[]),p=0;p<u.length;++p)Rn(f,u[p])==-1&&f.push(u[p])}function Ca(l,u){return If(l,u).length>0}function bc(l){l.prototype.on=function(u,f){qt(this,u,f)},l.prototype.off=function(u,f){Ko(this,u,f)}}function vo(l){l.preventDefault?l.preventDefault():l.returnValue=!1}function y1(l){l.stopPropagation?l.stopPropagation():l.cancelBubble=!0}function Mf(l){return l.defaultPrevented!=null?l.defaultPrevented:l.returnValue==!1}function Wd(l){vo(l),y1(l)}function Af(l){return l.target||l.srcElement}function Ao(l){var u=l.which;return u==null&&(l.button&1?u=1:l.button&2?u=3:l.button&4&&(u=2)),z&&l.ctrlKey&&u==1&&(u=3),u}var Nl=(function(){if(a&&s<9)return!1;var l=X("div");return"draggable"in l||"dragDrop"in l})(),Ff;function $w(l){if(Ff==null){var u=X("span","\u200B");Ae(l,X("span",[u,document.createTextNode("x")])),l.firstChild.offsetHeight!=0&&(Ff=u.offsetWidth<=1&&u.offsetHeight>2&&!(a&&s<8))}var f=Ff?X("span","\u200B"):X("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return f.setAttribute("cm-text",""),f}var zw;function PK(l){if(zw!=null)return zw;var u=Ae(l,document.createTextNode("A\u062EA")),f=Ee(u,0,1).getBoundingClientRect(),p=Ee(u,1,2).getBoundingClientRect();return Ce(l),!f||f.left==f.right?!1:zw=p.right-f.right<3}var Hw=`
b`.split(/\n/).length!=3?function(l){for(var u=0,f=[],p=l.length;u<=p;){var m=l.indexOf(`
`,u);m==-1&&(m=l.length);var C=l.slice(u,l.charAt(m-1)=="\r"?m-1:m),S=C.indexOf("\r");S!=-1?(f.push(C.slice(0,S)),u+=S+1):(f.push(C),u=m+1)}return f}:function(l){return l.split(/\r\n?|\n/)},VK=window.getSelection?function(l){try{return l.selectionStart!=l.selectionEnd}catch{return!1}}:function(l){var u;try{u=l.ownerDocument.selection.createRange()}catch{}return!u||u.parentElement()!=l?!1:u.compareEndPoints("StartToEnd",u)!=0},$K=(function(){var l=X("div");return"oncopy"in l?!0:(l.setAttribute("oncopy","return;"),typeof l.oncopy=="function")})(),jw=null;function zK(l){if(jw!=null)return jw;var u=Ae(l,X("span","x")),f=u.getBoundingClientRect(),p=Ee(u,0,1).getBoundingClientRect();return jw=Math.abs(f.left-p.left)>1}var Uw={},Of={};function HK(l,u){arguments.length>2&&(u.dependencies=Array.prototype.slice.call(arguments,2)),Uw[l]=u}function jK(l,u){Of[l]=u}function b1(l){if(typeof l=="string"&&Of.hasOwnProperty(l))l=Of[l];else if(l&&typeof l.name=="string"&&Of.hasOwnProperty(l.name)){var u=Of[l.name];typeof u=="string"&&(u={name:u}),l=Ks(u,l),l.name=u.name}else{if(typeof l=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(l))return b1("application/xml");if(typeof l=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(l))return b1("application/json")}return typeof l=="string"?{name:l}:l||{name:"null"}}function qw(l,u){u=b1(u);var f=Uw[u.name];if(!f)return qw(l,"text/plain");var p=f(l,u);if(Nf.hasOwnProperty(u.name)){var m=Nf[u.name];for(var C in m)m.hasOwnProperty(C)&&(p.hasOwnProperty(C)&&(p["_"+C]=p[C]),p[C]=m[C])}if(p.name=u.name,u.helperType&&(p.helperType=u.helperType),u.modeProps)for(var S in u.modeProps)p[S]=u.modeProps[S];return p}var Nf={};function UK(l,u){var f=Nf.hasOwnProperty(l)?Nf[l]:Nf[l]={};zt(u,f)}function Gd(l,u){if(u===!0)return u;if(l.copyState)return l.copyState(u);var f={};for(var p in u){var m=u[p];m instanceof Array&&(m=m.concat([])),f[p]=m}return f}function Ww(l,u){for(var f;l.innerMode&&(f=l.innerMode(u),!(!f||f.mode==l));)u=f.state,l=f.mode;return f||{mode:l,state:u}}function yM(l,u,f){return l.startState?l.startState(u,f):!0}var _r=function(l,u,f){this.pos=this.start=0,this.string=l,this.tabSize=u||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=f};_r.prototype.eol=function(){return this.pos>=this.string.length},_r.prototype.sol=function(){return this.pos==this.lineStart},_r.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},_r.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},_r.prototype.eat=function(l){var u=this.string.charAt(this.pos),f;if(typeof l=="string"?f=u==l:f=u&&(l.test?l.test(u):l(u)),f)return++this.pos,u},_r.prototype.eatWhile=function(l){for(var u=this.pos;this.eat(l););return this.pos>u},_r.prototype.eatSpace=function(){for(var l=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>l},_r.prototype.skipToEnd=function(){this.pos=this.string.length},_r.prototype.skipTo=function(l){var u=this.string.indexOf(l,this.pos);if(u>-1)return this.pos=u,!0},_r.prototype.backUp=function(l){this.pos-=l},_r.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=zn(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?zn(this.string,this.lineStart,this.tabSize):0)},_r.prototype.indentation=function(){return zn(this.string,null,this.tabSize)-(this.lineStart?zn(this.string,this.lineStart,this.tabSize):0)},_r.prototype.match=function(l,u,f){if(typeof l=="string"){var p=function(S){return f?S.toLowerCase():S},m=this.string.substr(this.pos,l.length);if(p(m)==p(l))return u!==!1&&(this.pos+=l.length),!0}else{var C=this.string.slice(this.pos).match(l);return C&&C.index>0?null:(C&&u!==!1&&(this.pos+=C[0].length),C)}},_r.prototype.current=function(){return this.string.slice(this.start,this.pos)},_r.prototype.hideFirstChars=function(l,u){this.lineStart+=l;try{return u()}finally{this.lineStart-=l}},_r.prototype.lookAhead=function(l){var u=this.lineOracle;return u&&u.lookAhead(l)},_r.prototype.baseToken=function(){var l=this.lineOracle;return l&&l.baseToken(this.pos)};function Ot(l,u){if(u-=l.first,u<0||u>=l.size)throw new Error("There is no line "+(u+l.first)+" in the document.");for(var f=l;!f.lines;)for(var p=0;;++p){var m=f.children[p],C=m.chunkSize();if(u<C){f=m;break}u-=C}return f.lines[u]}function Kd(l,u,f){var p=[],m=u.line;return l.iter(u.line,f.line+1,function(C){var S=C.text;m==f.line&&(S=S.slice(0,f.ch)),m==u.line&&(S=S.slice(u.ch)),p.push(S),++m}),p}function Gw(l,u,f){var p=[];return l.iter(u,f,function(m){p.push(m.text)}),p}function Rl(l,u){var f=u-l.height;if(f)for(var p=l;p;p=p.parent)p.height+=f}function ri(l){if(l.parent==null)return null;for(var u=l.parent,f=Rn(u.lines,l),p=u.parent;p;u=p,p=p.parent)for(var m=0;p.children[m]!=u;++m)f+=p.children[m].chunkSize();return f+u.first}function Yd(l,u){var f=l.first;e:do{for(var p=0;p<l.children.length;++p){var m=l.children[p],C=m.height;if(u<C){l=m;continue e}u-=C,f+=m.chunkSize()}return f}while(!l.lines);for(var S=0;S<l.lines.length;++S){var I=l.lines[S],N=I.height;if(u<N)break;u-=N}return f+S}function em(l,u){return u>=l.first&&u<l.first+l.size}function Kw(l,u){return String(l.lineNumberFormatter(u+l.firstLineNumber))}function Xe(l,u,f){if(f===void 0&&(f=null),!(this instanceof Xe))return new Xe(l,u,f);this.line=l,this.ch=u,this.sticky=f}function pn(l,u){return l.line-u.line||l.ch-u.ch}function Yw(l,u){return l.sticky==u.sticky&&pn(l,u)==0}function Qw(l){return Xe(l.line,l.ch)}function _1(l,u){return pn(l,u)<0?u:l}function x1(l,u){return pn(l,u)<0?l:u}function bM(l,u){return Math.max(l.first,Math.min(u,l.first+l.size-1))}function fn(l,u){if(u.line<l.first)return Xe(l.first,0);var f=l.first+l.size-1;return u.line>f?Xe(f,Ot(l,f).text.length):qK(u,Ot(l,u.line).text.length)}function qK(l,u){var f=l.ch;return f==null||f>u?Xe(l.line,u):f<0?Xe(l.line,0):l}function _M(l,u){for(var f=[],p=0;p<u.length;p++)f[p]=fn(l,u[p]);return f}var C1=function(l,u){this.state=l,this.lookAhead=u},Ll=function(l,u,f,p){this.state=u,this.doc=l,this.line=f,this.maxLookAhead=p||0,this.baseTokens=null,this.baseTokenPos=1};Ll.prototype.lookAhead=function(l){var u=this.doc.getLine(this.line+l);return u!=null&&l>this.maxLookAhead&&(this.maxLookAhead=l),u},Ll.prototype.baseToken=function(l){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=l;)this.baseTokenPos+=2;var u=this.baseTokens[this.baseTokenPos+1];return{type:u&&u.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-l}},Ll.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Ll.fromSaved=function(l,u,f){return u instanceof C1?new Ll(l,Gd(l.mode,u.state),f,u.lookAhead):new Ll(l,Gd(l.mode,u),f)},Ll.prototype.save=function(l){var u=l!==!1?Gd(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new C1(u,this.maxLookAhead):u};function xM(l,u,f,p){var m=[l.state.modeGen],C={};kM(l,u.text,l.doc.mode,f,function(B,Q){return m.push(B,Q)},C,p);for(var S=f.state,I=function(B){f.baseTokens=m;var Q=l.state.overlays[B],J=1,we=0;f.state=!0,kM(l,u.text,Q.mode,f,function(ye,Oe){for(var je=J;we<ye;){var et=m[J];et>ye&&m.splice(J,1,ye,m[J+1],et),J+=2,we=Math.min(ye,et)}if(Oe)if(Q.opaque)m.splice(je,J-je,ye,"overlay "+Oe),J=je+2;else for(;je<J;je+=2){var st=m[je+1];m[je+1]=(st?st+" ":"")+"overlay "+Oe}},C),f.state=S,f.baseTokens=null,f.baseTokenPos=1},N=0;N<l.state.overlays.length;++N)I(N);return{styles:m,classes:C.bgClass||C.textClass?C:null}}function CM(l,u,f){if(!u.styles||u.styles[0]!=l.state.modeGen){var p=tm(l,ri(u)),m=u.text.length>l.options.maxHighlightLength&&Gd(l.doc.mode,p.state),C=xM(l,u,p);m&&(p.state=m),u.stateAfter=p.save(!m),u.styles=C.styles,C.classes?u.styleClasses=C.classes:u.styleClasses&&(u.styleClasses=null),f===l.doc.highlightFrontier&&(l.doc.modeFrontier=Math.max(l.doc.modeFrontier,++l.doc.highlightFrontier))}return u.styles}function tm(l,u,f){var p=l.doc,m=l.display;if(!p.mode.startState)return new Ll(p,!0,u);var C=WK(l,u,f),S=C>p.first&&Ot(p,C-1).stateAfter,I=S?Ll.fromSaved(p,S,C):new Ll(p,yM(p.mode),C);return p.iter(C,u,function(N){Zw(l,N.text,I);var B=I.line;N.stateAfter=B==u-1||B%5==0||B>=m.viewFrom&&B<m.viewTo?I.save():null,I.nextLine()}),f&&(p.modeFrontier=I.line),I}function Zw(l,u,f,p){var m=l.doc.mode,C=new _r(u,l.options.tabSize,f);for(C.start=C.pos=p||0,u==""&&wM(m,f.state);!C.eol();)Xw(m,C,f.state),C.start=C.pos}function wM(l,u){if(l.blankLine)return l.blankLine(u);if(l.innerMode){var f=Ww(l,u);if(f.mode.blankLine)return f.mode.blankLine(f.state)}}function Xw(l,u,f,p){for(var m=0;m<10;m++){p&&(p[0]=Ww(l,f).mode);var C=l.token(u,f);if(u.pos>u.start)return C}throw new Error("Mode "+l.name+" failed to advance stream.")}var SM=function(l,u,f){this.start=l.start,this.end=l.pos,this.string=l.current(),this.type=u||null,this.state=f};function DM(l,u,f,p){var m=l.doc,C=m.mode,S;u=fn(m,u);var I=Ot(m,u.line),N=tm(l,u.line,f),B=new _r(I.text,l.options.tabSize,N),Q;for(p&&(Q=[]);(p||B.pos<u.ch)&&!B.eol();)B.start=B.pos,S=Xw(C,B,N.state),p&&Q.push(new SM(B,S,Gd(m.mode,N.state)));return p?Q:new SM(B,S,N.state)}function TM(l,u){if(l)for(;;){var f=l.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!f)break;l=l.slice(0,f.index)+l.slice(f.index+f[0].length);var p=f[1]?"bgClass":"textClass";u[p]==null?u[p]=f[2]:new RegExp("(?:^|\\s)"+f[2]+"(?:$|\\s)").test(u[p])||(u[p]+=" "+f[2])}return l}function kM(l,u,f,p,m,C,S){var I=f.flattenSpans;I==null&&(I=l.options.flattenSpans);var N=0,B=null,Q=new _r(u,l.options.tabSize,p),J,we=l.options.addModeClass&&[null];for(u==""&&TM(wM(f,p.state),C);!Q.eol();){if(Q.pos>l.options.maxHighlightLength?(I=!1,S&&Zw(l,u,p,Q.pos),Q.pos=u.length,J=null):J=TM(Xw(f,Q,p.state,we),C),we){var ye=we[0].name;ye&&(J="m-"+(J?ye+" "+J:ye))}if(!I||B!=J){for(;N<Q.start;)N=Math.min(Q.start,N+5e3),m(N,B);B=J}Q.start=Q.pos}for(;N<Q.pos;){var Oe=Math.min(Q.pos,N+5e3);m(Oe,B),N=Oe}}function WK(l,u,f){for(var p,m,C=l.doc,S=f?-1:u-(l.doc.mode.innerMode?1e3:100),I=u;I>S;--I){if(I<=C.first)return C.first;var N=Ot(C,I-1),B=N.stateAfter;if(B&&(!f||I+(B instanceof C1?B.lookAhead:0)<=C.modeFrontier))return I;var Q=zn(N.text,null,l.options.tabSize);(m==null||p>Q)&&(m=I-1,p=Q)}return m}function GK(l,u){if(l.modeFrontier=Math.min(l.modeFrontier,u),!(l.highlightFrontier<u-10)){for(var f=l.first,p=u-1;p>f;p--){var m=Ot(l,p).stateAfter;if(m&&(!(m instanceof C1)||p+m.lookAhead<u)){f=p+1;break}}l.highlightFrontier=Math.min(l.highlightFrontier,f)}}var EM=!1,_c=!1;function KK(){EM=!0}function YK(){_c=!0}function w1(l,u,f){this.marker=l,this.from=u,this.to=f}function nm(l,u){if(l)for(var f=0;f<l.length;++f){var p=l[f];if(p.marker==u)return p}}function QK(l,u){for(var f,p=0;p<l.length;++p)l[p]!=u&&(f||(f=[])).push(l[p]);return f}function ZK(l,u,f){var p=f&&window.WeakSet&&(f.markedSpans||(f.markedSpans=new WeakSet));p&&l.markedSpans&&p.has(l.markedSpans)?l.markedSpans.push(u):(l.markedSpans=l.markedSpans?l.markedSpans.concat([u]):[u],p&&p.add(l.markedSpans)),u.marker.attachLine(l)}function XK(l,u,f){var p;if(l)for(var m=0;m<l.length;++m){var C=l[m],S=C.marker,I=C.from==null||(S.inclusiveLeft?C.from<=u:C.from<u);if(I||C.from==u&&S.type=="bookmark"&&(!f||!C.marker.insertLeft)){var N=C.to==null||(S.inclusiveRight?C.to>=u:C.to>u);(p||(p=[])).push(new w1(S,C.from,N?null:C.to))}}return p}function JK(l,u,f){var p;if(l)for(var m=0;m<l.length;++m){var C=l[m],S=C.marker,I=C.to==null||(S.inclusiveRight?C.to>=u:C.to>u);if(I||C.from==u&&S.type=="bookmark"&&(!f||C.marker.insertLeft)){var N=C.from==null||(S.inclusiveLeft?C.from<=u:C.from<u);(p||(p=[])).push(new w1(S,N?null:C.from-u,C.to==null?null:C.to-u))}}return p}function Jw(l,u){if(u.full)return null;var f=em(l,u.from.line)&&Ot(l,u.from.line).markedSpans,p=em(l,u.to.line)&&Ot(l,u.to.line).markedSpans;if(!f&&!p)return null;var m=u.from.ch,C=u.to.ch,S=pn(u.from,u.to)==0,I=XK(f,m,S),N=JK(p,C,S),B=u.text.length==1,Q=dn(u.text).length+(B?m:0);if(I)for(var J=0;J<I.length;++J){var we=I[J];if(we.to==null){var ye=nm(N,we.marker);ye?B&&(we.to=ye.to==null?null:ye.to+Q):we.to=m}}if(N)for(var Oe=0;Oe<N.length;++Oe){var je=N[Oe];if(je.to!=null&&(je.to+=Q),je.from==null){var et=nm(I,je.marker);et||(je.from=Q,B&&(I||(I=[])).push(je))}else je.from+=Q,B&&(I||(I=[])).push(je)}I&&(I=IM(I)),N&&N!=I&&(N=IM(N));var st=[I];if(!B){var ht=u.text.length-2,lt;if(ht>0&&I)for(var wt=0;wt<I.length;++wt)I[wt].to==null&&(lt||(lt=[])).push(new w1(I[wt].marker,null,null));for(var Ht=0;Ht<ht;++Ht)st.push(lt);st.push(N)}return st}function IM(l){for(var u=0;u<l.length;++u){var f=l[u];f.from!=null&&f.from==f.to&&f.marker.clearWhenEmpty!==!1&&l.splice(u--,1)}return l.length?l:null}function eY(l,u,f){var p=null;if(l.iter(u.line,f.line+1,function(ye){if(ye.markedSpans)for(var Oe=0;Oe<ye.markedSpans.length;++Oe){var je=ye.markedSpans[Oe].marker;je.readOnly&&(!p||Rn(p,je)==-1)&&(p||(p=[])).push(je)}}),!p)return null;for(var m=[{from:u,to:f}],C=0;C<p.length;++C)for(var S=p[C],I=S.find(0),N=0;N<m.length;++N){var B=m[N];if(!(pn(B.to,I.from)<0||pn(B.from,I.to)>0)){var Q=[N,1],J=pn(B.from,I.from),we=pn(B.to,I.to);(J<0||!S.inclusiveLeft&&!J)&&Q.push({from:B.from,to:I.from}),(we>0||!S.inclusiveRight&&!we)&&Q.push({from:I.to,to:B.to}),m.splice.apply(m,Q),N+=Q.length-3}}return m}function MM(l){var u=l.markedSpans;if(u){for(var f=0;f<u.length;++f)u[f].marker.detachLine(l);l.markedSpans=null}}function AM(l,u){if(u){for(var f=0;f<u.length;++f)u[f].marker.attachLine(l);l.markedSpans=u}}function S1(l){return l.inclusiveLeft?-1:0}function D1(l){return l.inclusiveRight?1:0}function eS(l,u){var f=l.lines.length-u.lines.length;if(f!=0)return f;var p=l.find(),m=u.find(),C=pn(p.from,m.from)||S1(l)-S1(u);if(C)return-C;var S=pn(p.to,m.to)||D1(l)-D1(u);return S||u.id-l.id}function FM(l,u){var f=_c&&l.markedSpans,p;if(f)for(var m=void 0,C=0;C<f.length;++C)m=f[C],m.marker.collapsed&&(u?m.from:m.to)==null&&(!p||eS(p,m.marker)<0)&&(p=m.marker);return p}function OM(l){return FM(l,!0)}function T1(l){return FM(l,!1)}function tY(l,u){var f=_c&&l.markedSpans,p;if(f)for(var m=0;m<f.length;++m){var C=f[m];C.marker.collapsed&&(C.from==null||C.from<u)&&(C.to==null||C.to>u)&&(!p||eS(p,C.marker)<0)&&(p=C.marker)}return p}function NM(l,u,f,p,m){var C=Ot(l,u),S=_c&&C.markedSpans;if(S)for(var I=0;I<S.length;++I){var N=S[I];if(N.marker.collapsed){var B=N.marker.find(0),Q=pn(B.from,f)||S1(N.marker)-S1(m),J=pn(B.to,p)||D1(N.marker)-D1(m);if(!(Q>=0&&J<=0||Q<=0&&J>=0)&&(Q<=0&&(N.marker.inclusiveRight&&m.inclusiveLeft?pn(B.to,f)>=0:pn(B.to,f)>0)||Q>=0&&(N.marker.inclusiveRight&&m.inclusiveLeft?pn(B.from,p)<=0:pn(B.from,p)<0)))return!0}}}function Xs(l){for(var u;u=OM(l);)l=u.find(-1,!0).line;return l}function nY(l){for(var u;u=T1(l);)l=u.find(1,!0).line;return l}function iY(l){for(var u,f;u=T1(l);)l=u.find(1,!0).line,(f||(f=[])).push(l);return f}function tS(l,u){var f=Ot(l,u),p=Xs(f);return f==p?u:ri(p)}function RM(l,u){if(u>l.lastLine())return u;var f=Ot(l,u),p;if(!Cu(l,f))return u;for(;p=T1(f);)f=p.find(1,!0).line;return ri(f)+1}function Cu(l,u){var f=_c&&u.markedSpans;if(f){for(var p=void 0,m=0;m<f.length;++m)if(p=f[m],!!p.marker.collapsed){if(p.from==null)return!0;if(!p.marker.widgetNode&&p.from==0&&p.marker.inclusiveLeft&&nS(l,u,p))return!0}}}function nS(l,u,f){if(f.to==null){var p=f.marker.find(1,!0);return nS(l,p.line,nm(p.line.markedSpans,f.marker))}if(f.marker.inclusiveRight&&f.to==u.text.length)return!0;for(var m=void 0,C=0;C<u.markedSpans.length;++C)if(m=u.markedSpans[C],m.marker.collapsed&&!m.marker.widgetNode&&m.from==f.to&&(m.to==null||m.to!=f.from)&&(m.marker.inclusiveLeft||f.marker.inclusiveRight)&&nS(l,u,m))return!0}function xc(l){l=Xs(l);for(var u=0,f=l.parent,p=0;p<f.lines.length;++p){var m=f.lines[p];if(m==l)break;u+=m.height}for(var C=f.parent;C;f=C,C=f.parent)for(var S=0;S<C.children.length;++S){var I=C.children[S];if(I==f)break;u+=I.height}return u}function k1(l){if(l.height==0)return 0;for(var u=l.text.length,f,p=l;f=OM(p);){var m=f.find(0,!0);p=m.from.line,u+=m.from.ch-m.to.ch}for(p=l;f=T1(p);){var C=f.find(0,!0);u-=p.text.length-C.from.ch,p=C.to.line,u+=p.text.length-C.to.ch}return u}function iS(l){var u=l.display,f=l.doc;u.maxLine=Ot(f,f.first),u.maxLineLength=k1(u.maxLine),u.maxLineChanged=!0,f.iter(function(p){var m=k1(p);m>u.maxLineLength&&(u.maxLineLength=m,u.maxLine=p)})}var Rf=function(l,u,f){this.text=l,AM(this,u),this.height=f?f(this):1};Rf.prototype.lineNo=function(){return ri(this)},bc(Rf);function rY(l,u,f,p){l.text=u,l.stateAfter&&(l.stateAfter=null),l.styles&&(l.styles=null),l.order!=null&&(l.order=null),MM(l),AM(l,f);var m=p?p(l):1;m!=l.height&&Rl(l,m)}function oY(l){l.parent=null,MM(l)}var aY={},sY={};function LM(l,u){if(!l||/^\s*$/.test(l))return null;var f=u.addModeClass?sY:aY;return f[l]||(f[l]=l.replace(/\S+/g,"cm-$&"))}function BM(l,u){var f=ge("span",null,null,c?"padding-right: .1px":null),p={pre:ge("pre",[f],"CodeMirror-line"),content:f,col:0,pos:0,cm:l,trailingSpace:!1,splitSpaces:l.getOption("lineWrapping")};u.measure={};for(var m=0;m<=(u.rest?u.rest.length:0);m++){var C=m?u.rest[m-1]:u.line,S=void 0;p.pos=0,p.addToken=cY,PK(l.display.measure)&&(S=Zs(C,l.doc.direction))&&(p.addToken=dY(p.addToken,S)),p.map=[];var I=u!=l.display.externalMeasured&&ri(C);pY(C,p,CM(l,C,I)),C.styleClasses&&(C.styleClasses.bgClass&&(p.bgClass=Ve(C.styleClasses.bgClass,p.bgClass||"")),C.styleClasses.textClass&&(p.textClass=Ve(C.styleClasses.textClass,p.textClass||""))),p.map.length==0&&p.map.push(0,0,p.content.appendChild($w(l.display.measure))),m==0?(u.measure.map=p.map,u.measure.cache={}):((u.measure.maps||(u.measure.maps=[])).push(p.map),(u.measure.caches||(u.measure.caches=[])).push({}))}if(c){var N=p.content.lastChild;(/\bcm-tab\b/.test(N.className)||N.querySelector&&N.querySelector(".cm-tab"))&&(p.content.className="cm-tab-wrap-hack")}return Yi(l,"renderLine",l,u.line,p.pre),p.pre.className&&(p.textClass=Ve(p.pre.className,p.textClass||"")),p}function lY(l){var u=X("span","\u2022","cm-invalidchar");return u.title="\\u"+l.charCodeAt(0).toString(16),u.setAttribute("aria-label",u.title),u}function cY(l,u,f,p,m,C,S){if(u){var I=l.splitSpaces?uY(u,l.trailingSpace):u,N=l.cm.state.specialChars,B=!1,Q;if(!N.test(u))l.col+=u.length,Q=document.createTextNode(I),l.map.push(l.pos,l.pos+u.length,Q),a&&s<9&&(B=!0),l.pos+=u.length;else{Q=document.createDocumentFragment();for(var J=0;;){N.lastIndex=J;var we=N.exec(u),ye=we?we.index-J:u.length-J;if(ye){var Oe=document.createTextNode(I.slice(J,J+ye));a&&s<9?Q.appendChild(X("span",[Oe])):Q.appendChild(Oe),l.map.push(l.pos,l.pos+ye,Oe),l.col+=ye,l.pos+=ye}if(!we)break;J+=ye+1;var je=void 0;if(we[0]==" "){var et=l.cm.options.tabSize,st=et-l.col%et;je=Q.appendChild(X("span",Mo(st),"cm-tab")),je.setAttribute("role","presentation"),je.setAttribute("cm-text"," "),l.col+=st}else we[0]=="\r"||we[0]==`
`?(je=Q.appendChild(X("span",we[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),je.setAttribute("cm-text",we[0]),l.col+=1):(je=l.cm.options.specialCharPlaceholder(we[0]),je.setAttribute("cm-text",we[0]),a&&s<9?Q.appendChild(X("span",[je])):Q.appendChild(je),l.col+=1);l.map.push(l.pos,l.pos+1,je),l.pos++}}if(l.trailingSpace=I.charCodeAt(u.length-1)==32,f||p||m||B||C||S){var ht=f||"";p&&(ht+=p),m&&(ht+=m);var lt=X("span",[Q],ht,C);if(S)for(var wt in S)S.hasOwnProperty(wt)&&wt!="style"&&wt!="class"&<.setAttribute(wt,S[wt]);return l.content.appendChild(lt)}l.content.appendChild(Q)}}function uY(l,u){if(l.length>1&&!/ /.test(l))return l;for(var f=u,p="",m=0;m<l.length;m++){var C=l.charAt(m);C==" "&&f&&(m==l.length-1||l.charCodeAt(m+1)==32)&&(C="\xA0"),p+=C,f=C==" "}return p}function dY(l,u){return function(f,p,m,C,S,I,N){m=m?m+" cm-force-border":"cm-force-border";for(var B=f.pos,Q=B+p.length;;){for(var J=void 0,we=0;we<u.length&&(J=u[we],!(J.to>B&&J.from<=B));we++);if(J.to>=Q)return l(f,p,m,C,S,I,N);l(f,p.slice(0,J.to-B),m,C,null,I,N),C=null,p=p.slice(J.to-B),B=J.to}}}function PM(l,u,f,p){var m=!p&&f.widgetNode;m&&l.map.push(l.pos,l.pos+u,m),!p&&l.cm.display.input.needsContentAttribute&&(m||(m=l.content.appendChild(document.createElement("span"))),m.setAttribute("cm-marker",f.id)),m&&(l.cm.display.input.setUneditable(m),l.content.appendChild(m)),l.pos+=u,l.trailingSpace=!1}function pY(l,u,f){var p=l.markedSpans,m=l.text,C=0;if(!p){for(var S=1;S<f.length;S+=2)u.addToken(u,m.slice(C,C=f[S]),LM(f[S+1],u.cm.options));return}for(var I=m.length,N=0,B=1,Q="",J,we,ye=0,Oe,je,et,st,ht;;){if(ye==N){Oe=je=et=we="",ht=null,st=null,ye=1/0;for(var lt=[],wt=void 0,Ht=0;Ht<p.length;++Ht){var Vt=p[Ht],En=Vt.marker;if(En.type=="bookmark"&&Vt.from==N&&En.widgetNode)lt.push(En);else if(Vt.from<=N&&(Vt.to==null||Vt.to>N||En.collapsed&&Vt.to==N&&Vt.from==N)){if(Vt.to!=null&&Vt.to!=N&&ye>Vt.to&&(ye=Vt.to,je=""),En.className&&(Oe+=" "+En.className),En.css&&(we=(we?we+";":"")+En.css),En.startStyle&&Vt.from==N&&(et+=" "+En.startStyle),En.endStyle&&Vt.to==ye&&(wt||(wt=[])).push(En.endStyle,Vt.to),En.title&&((ht||(ht={})).title=En.title),En.attributes)for(var yi in En.attributes)(ht||(ht={}))[yi]=En.attributes[yi];En.collapsed&&(!st||eS(st.marker,En)<0)&&(st=Vt)}else Vt.from>N&&ye>Vt.from&&(ye=Vt.from)}if(wt)for(var Wr=0;Wr<wt.length;Wr+=2)wt[Wr+1]==ye&&(je+=" "+wt[Wr]);if(!st||st.from==N)for(var Qi=0;Qi<lt.length;++Qi)PM(u,0,lt[Qi]);if(st&&(st.from||0)==N){if(PM(u,(st.to==null?I+1:st.to)-N,st.marker,st.from==null),st.to==null)return;st.to==N&&(st=!1)}}if(N>=I)break;for(var Sa=Math.min(I,ye);;){if(Q){var Zo=N+Q.length;if(!st){var xr=Zo>Sa?Q.slice(0,Sa-N):Q;u.addToken(u,xr,J?J+Oe:Oe,et,N+xr.length==ye?je:"",we,ht)}if(Zo>=Sa){Q=Q.slice(Sa-N),N=Sa;break}N=Zo,et=""}Q=m.slice(C,C=f[B++]),J=LM(f[B++],u.cm.options)}}}function VM(l,u,f){this.line=u,this.rest=iY(u),this.size=this.rest?ri(dn(this.rest))-f+1:1,this.node=this.text=null,this.hidden=Cu(l,u)}function E1(l,u,f){for(var p=[],m,C=u;C<f;C=m){var S=new VM(l.doc,Ot(l.doc,C),C);m=C+S.size,p.push(S)}return p}var Lf=null;function fY(l){Lf?Lf.ops.push(l):l.ownsGroup=Lf={ops:[l],delayedCallbacks:[]}}function hY(l){var u=l.delayedCallbacks,f=0;do{for(;f<u.length;f++)u[f].call(null);for(var p=0;p<l.ops.length;p++){var m=l.ops[p];if(m.cursorActivityHandlers)for(;m.cursorActivityCalled<m.cursorActivityHandlers.length;)m.cursorActivityHandlers[m.cursorActivityCalled++].call(null,m.cm)}}while(f<u.length)}function mY(l,u){var f=l.ownsGroup;if(f)try{hY(f)}finally{Lf=null,u(f)}}var im=null;function jr(l,u){var f=If(l,u);if(f.length){var p=Array.prototype.slice.call(arguments,2),m;Lf?m=Lf.delayedCallbacks:im?m=im:(m=im=[],setTimeout(gY,0));for(var C=function(I){m.push(function(){return f[I].apply(null,p)})},S=0;S<f.length;++S)C(S)}}function gY(){var l=im;im=null;for(var u=0;u<l.length;++u)l[u]()}function $M(l,u,f,p){for(var m=0;m<u.changes.length;m++){var C=u.changes[m];C=="text"?yY(l,u):C=="gutter"?HM(l,u,f,p):C=="class"?rS(l,u):C=="widget"&&bY(l,u,p)}u.changes=null}function rm(l){return l.node==l.text&&(l.node=X("div",null,null,"position: relative"),l.text.parentNode&&l.text.parentNode.replaceChild(l.node,l.text),l.node.appendChild(l.text),a&&s<8&&(l.node.style.zIndex=2)),l.node}function vY(l,u){var f=u.bgClass?u.bgClass+" "+(u.line.bgClass||""):u.line.bgClass;if(f&&(f+=" CodeMirror-linebackground"),u.background)f?u.background.className=f:(u.background.parentNode.removeChild(u.background),u.background=null);else if(f){var p=rm(u);u.background=p.insertBefore(X("div",null,f),p.firstChild),l.display.input.setUneditable(u.background)}}function zM(l,u){var f=l.display.externalMeasured;return f&&f.line==u.line?(l.display.externalMeasured=null,u.measure=f.measure,f.built):BM(l,u)}function yY(l,u){var f=u.text.className,p=zM(l,u);u.text==u.node&&(u.node=p.pre),u.text.parentNode.replaceChild(p.pre,u.text),u.text=p.pre,p.bgClass!=u.bgClass||p.textClass!=u.textClass?(u.bgClass=p.bgClass,u.textClass=p.textClass,rS(l,u)):f&&(u.text.className=f)}function rS(l,u){vY(l,u),u.line.wrapClass?rm(u).className=u.line.wrapClass:u.node!=u.text&&(u.node.className="");var f=u.textClass?u.textClass+" "+(u.line.textClass||""):u.line.textClass;u.text.className=f||""}function HM(l,u,f,p){if(u.gutter&&(u.node.removeChild(u.gutter),u.gutter=null),u.gutterBackground&&(u.node.removeChild(u.gutterBackground),u.gutterBackground=null),u.line.gutterClass){var m=rm(u);u.gutterBackground=X("div",null,"CodeMirror-gutter-background "+u.line.gutterClass,"left: "+(l.options.fixedGutter?p.fixedPos:-p.gutterTotalWidth)+"px; width: "+p.gutterTotalWidth+"px"),l.display.input.setUneditable(u.gutterBackground),m.insertBefore(u.gutterBackground,u.text)}var C=u.line.gutterMarkers;if(l.options.lineNumbers||C){var S=rm(u),I=u.gutter=X("div",null,"CodeMirror-gutter-wrapper","left: "+(l.options.fixedGutter?p.fixedPos:-p.gutterTotalWidth)+"px");if(I.setAttribute("aria-hidden","true"),l.display.input.setUneditable(I),S.insertBefore(I,u.text),u.line.gutterClass&&(I.className+=" "+u.line.gutterClass),l.options.lineNumbers&&(!C||!C["CodeMirror-linenumbers"])&&(u.lineNumber=I.appendChild(X("div",Kw(l.options,f),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+p.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+l.display.lineNumInnerWidth+"px"))),C)for(var N=0;N<l.display.gutterSpecs.length;++N){var B=l.display.gutterSpecs[N].className,Q=C.hasOwnProperty(B)&&C[B];Q&&I.appendChild(X("div",[Q],"CodeMirror-gutter-elt","left: "+p.gutterLeft[B]+"px; width: "+p.gutterWidth[B]+"px"))}}}function bY(l,u,f){u.alignable&&(u.alignable=null);for(var p=oe("CodeMirror-linewidget"),m=u.node.firstChild,C=void 0;m;m=C)C=m.nextSibling,p.test(m.className)&&u.node.removeChild(m);jM(l,u,f)}function _Y(l,u,f,p){var m=zM(l,u);return u.text=u.node=m.pre,m.bgClass&&(u.bgClass=m.bgClass),m.textClass&&(u.textClass=m.textClass),rS(l,u),HM(l,u,f,p),jM(l,u,p),u.node}function jM(l,u,f){if(UM(l,u.line,u,f,!0),u.rest)for(var p=0;p<u.rest.length;p++)UM(l,u.rest[p],u,f,!1)}function UM(l,u,f,p,m){if(u.widgets)for(var C=rm(f),S=0,I=u.widgets;S<I.length;++S){var N=I[S],B=X("div",[N.node],"CodeMirror-linewidget"+(N.className?" "+N.className:""));N.handleMouseEvents||B.setAttribute("cm-ignore-events","true"),xY(N,B,f,p),l.display.input.setUneditable(B),m&&N.above?C.insertBefore(B,f.gutter||f.text):C.appendChild(B),jr(N,"redraw")}}function xY(l,u,f,p){if(l.noHScroll){(f.alignable||(f.alignable=[])).push(u);var m=p.wrapperWidth;u.style.left=p.fixedPos+"px",l.coverGutter||(m-=p.gutterTotalWidth,u.style.paddingLeft=p.gutterTotalWidth+"px"),u.style.width=m+"px"}l.coverGutter&&(u.style.zIndex=5,u.style.position="relative",l.noHScroll||(u.style.marginLeft=-p.gutterTotalWidth+"px"))}function om(l){if(l.height!=null)return l.height;var u=l.doc.cm;if(!u)return 0;if(!Be(document.body,l.node)){var f="position: relative;";l.coverGutter&&(f+="margin-left: -"+u.display.gutters.offsetWidth+"px;"),l.noHScroll&&(f+="width: "+u.display.wrapper.clientWidth+"px;"),Ae(u.display.measure,X("div",[l.node],null,f))}return l.height=l.node.parentNode.offsetHeight}function Cc(l,u){for(var f=Af(u);f!=l.wrapper;f=f.parentNode)if(!f||f.nodeType==1&&f.getAttribute("cm-ignore-events")=="true"||f.parentNode==l.sizer&&f!=l.mover)return!0}function I1(l){return l.lineSpace.offsetTop}function oS(l){return l.mover.offsetHeight-l.lineSpace.offsetHeight}function qM(l){if(l.cachedPaddingH)return l.cachedPaddingH;var u=Ae(l.measure,X("pre","x","CodeMirror-line-like")),f=window.getComputedStyle?window.getComputedStyle(u):u.currentStyle,p={left:parseInt(f.paddingLeft),right:parseInt(f.paddingRight)};return!isNaN(p.left)&&!isNaN(p.right)&&(l.cachedPaddingH=p),p}function Bl(l){return jn-l.display.nativeBarWidth}function Qd(l){return l.display.scroller.clientWidth-Bl(l)-l.display.barWidth}function aS(l){return l.display.scroller.clientHeight-Bl(l)-l.display.barHeight}function CY(l,u,f){var p=l.options.lineWrapping,m=p&&Qd(l);if(!u.measure.heights||p&&u.measure.width!=m){var C=u.measure.heights=[];if(p){u.measure.width=m;for(var S=u.text.firstChild.getClientRects(),I=0;I<S.length-1;I++){var N=S[I],B=S[I+1];Math.abs(N.bottom-B.bottom)>2&&C.push((N.bottom+B.top)/2-f.top)}}C.push(f.bottom-f.top)}}function WM(l,u,f){if(l.line==u)return{map:l.measure.map,cache:l.measure.cache};if(l.rest){for(var p=0;p<l.rest.length;p++)if(l.rest[p]==u)return{map:l.measure.maps[p],cache:l.measure.caches[p]};for(var m=0;m<l.rest.length;m++)if(ri(l.rest[m])>f)return{map:l.measure.maps[m],cache:l.measure.caches[m],before:!0}}}function wY(l,u){u=Xs(u);var f=ri(u),p=l.display.externalMeasured=new VM(l.doc,u,f);p.lineN=f;var m=p.built=BM(l,p);return p.text=m.pre,Ae(l.display.lineMeasure,m.pre),p}function GM(l,u,f,p){return Pl(l,Bf(l,u),f,p)}function sS(l,u){if(u>=l.display.viewFrom&&u<l.display.viewTo)return l.display.view[Jd(l,u)];var f=l.display.externalMeasured;if(f&&u>=f.lineN&&u<f.lineN+f.size)return f}function Bf(l,u){var f=ri(u),p=sS(l,f);p&&!p.text?p=null:p&&p.changes&&($M(l,p,f,pS(l)),l.curOp.forceUpdate=!0),p||(p=wY(l,u));var m=WM(p,u,f);return{line:u,view:p,rect:null,map:m.map,cache:m.cache,before:m.before,hasHeights:!1}}function Pl(l,u,f,p,m){u.before&&(f=-1);var C=f+(p||""),S;return u.cache.hasOwnProperty(C)?S=u.cache[C]:(u.rect||(u.rect=u.view.text.getBoundingClientRect()),u.hasHeights||(CY(l,u.view,u.rect),u.hasHeights=!0),S=DY(l,u,f,p),S.bogus||(u.cache[C]=S)),{left:S.left,right:S.right,top:m?S.rtop:S.top,bottom:m?S.rbottom:S.bottom}}var KM={left:0,right:0,top:0,bottom:0};function YM(l,u,f){for(var p,m,C,S,I,N,B=0;B<l.length;B+=3)if(I=l[B],N=l[B+1],u<I?(m=0,C=1,S="left"):u<N?(m=u-I,C=m+1):(B==l.length-3||u==N&&l[B+3]>u)&&(C=N-I,m=C-1,u>=N&&(S="right")),m!=null){if(p=l[B+2],I==N&&f==(p.insertLeft?"left":"right")&&(S=f),f=="left"&&m==0)for(;B&&l[B-2]==l[B-3]&&l[B-1].insertLeft;)p=l[(B-=3)+2],S="left";if(f=="right"&&m==N-I)for(;B<l.length-3&&l[B+3]==l[B+4]&&!l[B+5].insertLeft;)p=l[(B+=3)+2],S="right";break}return{node:p,start:m,end:C,collapse:S,coverStart:I,coverEnd:N}}function SY(l,u){var f=KM;if(u=="left")for(var p=0;p<l.length&&(f=l[p]).left==f.right;p++);else for(var m=l.length-1;m>=0&&(f=l[m]).left==f.right;m--);return f}function DY(l,u,f,p){var m=YM(u.map,f,p),C=m.node,S=m.start,I=m.end,N=m.collapse,B;if(C.nodeType==3){for(var Q=0;Q<4;Q++){for(;S&&Ys(u.line.text.charAt(m.coverStart+S));)--S;for(;m.coverStart+I<m.coverEnd&&Ys(u.line.text.charAt(m.coverStart+I));)++I;if(a&&s<9&&S==0&&I==m.coverEnd-m.coverStart?B=C.parentNode.getBoundingClientRect():B=SY(Ee(C,S,I).getClientRects(),p),B.left||B.right||S==0)break;I=S,S=S-1,N="right"}a&&s<11&&(B=TY(l.display.measure,B))}else{S>0&&(N=p="right");var J;l.options.lineWrapping&&(J=C.getClientRects()).length>1?B=J[p=="right"?J.length-1:0]:B=C.getBoundingClientRect()}if(a&&s<9&&!S&&(!B||!B.left&&!B.right)){var we=C.parentNode.getClientRects()[0];we?B={left:we.left,right:we.left+Vf(l.display),top:we.top,bottom:we.bottom}:B=KM}for(var ye=B.top-u.rect.top,Oe=B.bottom-u.rect.top,je=(ye+Oe)/2,et=u.view.measure.heights,st=0;st<et.length-1&&!(je<et[st]);st++);var ht=st?et[st-1]:0,lt=et[st],wt={left:(N=="right"?B.right:B.left)-u.rect.left,right:(N=="left"?B.left:B.right)-u.rect.left,top:ht,bottom:lt};return!B.left&&!B.right&&(wt.bogus=!0),l.options.singleCursorHeightPerLine||(wt.rtop=ye,wt.rbottom=Oe),wt}function TY(l,u){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!zK(l))return u;var f=screen.logicalXDPI/screen.deviceXDPI,p=screen.logicalYDPI/screen.deviceYDPI;return{left:u.left*f,right:u.right*f,top:u.top*p,bottom:u.bottom*p}}function QM(l){if(l.measure&&(l.measure.cache={},l.measure.heights=null,l.rest))for(var u=0;u<l.rest.length;u++)l.measure.caches[u]={}}function ZM(l){l.display.externalMeasure=null,Ce(l.display.lineMeasure);for(var u=0;u<l.display.view.length;u++)QM(l.display.view[u])}function am(l){ZM(l),l.display.cachedCharWidth=l.display.cachedTextHeight=l.display.cachedPaddingH=null,l.options.lineWrapping||(l.display.maxLineChanged=!0),l.display.lineNumChars=null}function XM(l){return h&&T?-(l.body.getBoundingClientRect().left-parseInt(getComputedStyle(l.body).marginLeft)):l.defaultView.pageXOffset||(l.documentElement||l.body).scrollLeft}function JM(l){return h&&T?-(l.body.getBoundingClientRect().top-parseInt(getComputedStyle(l.body).marginTop)):l.defaultView.pageYOffset||(l.documentElement||l.body).scrollTop}function lS(l){var u=Xs(l),f=u.widgets,p=0;if(f)for(var m=0;m<f.length;++m)f[m].above&&(p+=om(f[m]));return p}function M1(l,u,f,p,m){if(!m){var C=lS(u);f.top+=C,f.bottom+=C}if(p=="line")return f;p||(p="local");var S=xc(u);if(p=="local"?S+=I1(l.display):S-=l.display.viewOffset,p=="page"||p=="window"){var I=l.display.lineSpace.getBoundingClientRect();S+=I.top+(p=="window"?0:JM(P(l)));var N=I.left+(p=="window"?0:XM(P(l)));f.left+=N,f.right+=N}return f.top+=S,f.bottom+=S,f}function e6(l,u,f){if(f=="div")return u;var p=u.left,m=u.top;if(f=="page")p-=XM(P(l)),m-=JM(P(l));else if(f=="local"||!f){var C=l.display.sizer.getBoundingClientRect();p+=C.left,m+=C.top}var S=l.display.lineSpace.getBoundingClientRect();return{left:p-S.left,top:m-S.top}}function A1(l,u,f,p,m){return p||(p=Ot(l.doc,u.line)),M1(l,p,GM(l,p,u.ch,m),f)}function Js(l,u,f,p,m,C){p=p||Ot(l.doc,u.line),m||(m=Bf(l,p));function S(Oe,je){var et=Pl(l,m,Oe,je?"right":"left",C);return je?et.left=et.right:et.right=et.left,M1(l,p,et,f)}var I=Zs(p,l.doc.direction),N=u.ch,B=u.sticky;if(N>=p.text.length?(N=p.text.length,B="before"):N<=0&&(N=0,B="after"),!I)return S(B=="before"?N-1:N,B=="before");function Q(Oe,je,et){var st=I[je],ht=st.level==1;return S(et?Oe-1:Oe,ht!=et)}var J=xu(I,N,B),we=_u,ye=Q(N,J,B=="before");return we!=null&&(ye.other=Q(N,we,B!="before")),ye}function t6(l,u){var f=0;u=fn(l.doc,u),l.options.lineWrapping||(f=Vf(l.display)*u.ch);var p=Ot(l.doc,u.line),m=xc(p)+I1(l.display);return{left:f,right:f,top:m,bottom:m+p.height}}function cS(l,u,f,p,m){var C=Xe(l,u,f);return C.xRel=m,p&&(C.outside=p),C}function uS(l,u,f){var p=l.doc;if(f+=l.display.viewOffset,f<0)return cS(p.first,0,null,-1,-1);var m=Yd(p,f),C=p.first+p.size-1;if(m>C)return cS(p.first+p.size-1,Ot(p,C).text.length,null,1,1);u<0&&(u=0);for(var S=Ot(p,m);;){var I=kY(l,S,m,u,f),N=tY(S,I.ch+(I.xRel>0||I.outside>0?1:0));if(!N)return I;var B=N.find(1);if(B.line==m)return B;S=Ot(p,m=B.line)}}function n6(l,u,f,p){p-=lS(u);var m=u.text.length,C=Qs(function(S){return Pl(l,f,S-1).bottom<=p},m,0);return m=Qs(function(S){return Pl(l,f,S).top>p},C,m),{begin:C,end:m}}function i6(l,u,f,p){f||(f=Bf(l,u));var m=M1(l,u,Pl(l,f,p),"line").top;return n6(l,u,f,m)}function dS(l,u,f,p){return l.bottom<=f?!1:l.top>f?!0:(p?l.left:l.right)>u}function kY(l,u,f,p,m){m-=xc(u);var C=Bf(l,u),S=lS(u),I=0,N=u.text.length,B=!0,Q=Zs(u,l.doc.direction);if(Q){var J=(l.options.lineWrapping?IY:EY)(l,u,f,C,Q,p,m);B=J.level!=1,I=B?J.from:J.to-1,N=B?J.to:J.from-1}var we=null,ye=null,Oe=Qs(function(Ht){var Vt=Pl(l,C,Ht);return Vt.top+=S,Vt.bottom+=S,dS(Vt,p,m,!1)?(Vt.top<=m&&Vt.left<=p&&(we=Ht,ye=Vt),!0):!1},I,N),je,et,st=!1;if(ye){var ht=p-ye.left<ye.right-p,lt=ht==B;Oe=we+(lt?0:1),et=lt?"after":"before",je=ht?ye.left:ye.right}else{!B&&(Oe==N||Oe==I)&&Oe++,et=Oe==0?"after":Oe==u.text.length?"before":Pl(l,C,Oe-(B?1:0)).bottom+S<=m==B?"after":"before";var wt=Js(l,Xe(f,Oe,et),"line",u,C);je=wt.left,st=m<wt.top?-1:m>=wt.bottom?1:0}return Oe=xa(u.text,Oe,1),cS(f,Oe,et,st,p-je)}function EY(l,u,f,p,m,C,S){var I=Qs(function(J){var we=m[J],ye=we.level!=1;return dS(Js(l,Xe(f,ye?we.to:we.from,ye?"before":"after"),"line",u,p),C,S,!0)},0,m.length-1),N=m[I];if(I>0){var B=N.level!=1,Q=Js(l,Xe(f,B?N.from:N.to,B?"after":"before"),"line",u,p);dS(Q,C,S,!0)&&Q.top>S&&(N=m[I-1])}return N}function IY(l,u,f,p,m,C,S){var I=n6(l,u,p,S),N=I.begin,B=I.end;/\s/.test(u.text.charAt(B-1))&&B--;for(var Q=null,J=null,we=0;we<m.length;we++){var ye=m[we];if(!(ye.from>=B||ye.to<=N)){var Oe=ye.level!=1,je=Pl(l,p,Oe?Math.min(B,ye.to)-1:Math.max(N,ye.from)).right,et=je<C?C-je+1e9:je-C;(!Q||J>et)&&(Q=ye,J=et)}}return Q||(Q=m[m.length-1]),Q.from<N&&(Q={from:N,to:Q.to,level:Q.level}),Q.to>B&&(Q={from:Q.from,to:B,level:Q.level}),Q}var Zd;function Pf(l){if(l.cachedTextHeight!=null)return l.cachedTextHeight;if(Zd==null){Zd=X("pre",null,"CodeMirror-line-like");for(var u=0;u<49;++u)Zd.appendChild(document.createTextNode("x")),Zd.appendChild(X("br"));Zd.appendChild(document.createTextNode("x"))}Ae(l.measure,Zd);var f=Zd.offsetHeight/50;return f>3&&(l.cachedTextHeight=f),Ce(l.measure),f||1}function Vf(l){if(l.cachedCharWidth!=null)return l.cachedCharWidth;var u=X("span","xxxxxxxxxx"),f=X("pre",[u],"CodeMirr