const __vite__fileDeps=["assets/javascript-C0runXw9.js","assets/antd-BmrhB3rb.js","assets/vue-BjERyvPm.js","assets/apl-zLfE5rQP.js","assets/asciiarmor-Do-7xkZ0.js","assets/asterisk-Dl6-Cx_L.js","assets/brainfuck-DVgfREw_.js","assets/clike-CbqrjqIp.js","assets/clojure-B7BO6eTf.js","assets/cmake-CksKCwmd.js","assets/cobol-BagBmwKo.js","assets/coffeescript-fFmhlGnR.js","assets/commonlisp-Dt9YBdGp.js","assets/crystal-C_YQTvkC.js","assets/css-_7XECuso.js","assets/cypher-ClLSXDoB.js","assets/d-DdB_Nypc.js","assets/dart-NqTr4gQb.js","assets/diff-DP8cpWw3.js","assets/django-Cr0ySjV7.js","assets/htmlmixed-BRMskI39.js","assets/xml-DGJz4OSG.js","assets/overlay-DQm5ROUG.js","assets/dockerfile-c7yS_1k1.js","assets/simple-DidUZgS1.js","assets/dtd-BoJNBv-L.js","assets/dylan-glqjD8lh.js","assets/ebnf-B69swxbP.js","assets/ecl-BcquUJs9.js","assets/eiffel-BW6UbfQv.js","assets/elm-BXgy4upO.js","assets/erlang-CoWJ_jdP.js","assets/factor-CvscPoNe.js","assets/fcl-w30Bp-6o.js","assets/forth-BRGZgJzZ.js","assets/fortran-BWfrboS0.js","assets/gas-BAwmoLl4.js","assets/gfm-zED9mVpT.js","assets/markdown-DTiN1g17.js","assets/gherkin-CSTxET5C.js","assets/go-BDFk3iT5.js","assets/groovy-BoGByj99.js","assets/haml-mAoz9Cg_.js","assets/ruby-iLW-yO0L.js","assets/handlebars-tIlZKpI9.js","assets/multiplex-KU3H4tw5.js","assets/haskell-CaA0e7fj.js","assets/haxe-Bw9cDHlO.js","assets/htmlembedded-Ckszlea-.js","assets/htmlmixed-S48eAt07.js","assets/http-B511s2ir.js","assets/idl-DZadFF97.js","assets/jinja2-DgZuyF-4.js","assets/jsx-B4bOLTGX.js","assets/julia-DMwb9N1P.js","assets/livescript-DRBVSWtJ.js","assets/lua-DF6LKH9h.js","assets/markdown-BUyyni4w.js","assets/mathematica-BN67McW3.js","assets/mbox-TtGKsB4G.js","assets/mirc-Do6SGHsb.js","assets/mllike-C4sux_AD.js","assets/modelica-WdF900bX.js","assets/mscgen-FXpyAEp1.js","assets/mumps-CYDAote_.js","assets/nginx-8EWYo5aN.js","assets/nsis-V-nh5FnW.js","assets/ntriples-Bf6qR5Vj.js","assets/octave-0TxgvgfU.js","assets/oz-YKjkJu7g.js","assets/pascal-Cjts3mlK.js","assets/pegjs-r3zISsBk.js","assets/perl-B1do5Zj5.js","assets/php-BjMv37q4.js","assets/pig-UrTc6X8Q.js","assets/powershell-XydHAPqy.js","assets/properties-Czp0CTK7.js","assets/protobuf-BA_h8Wlf.js","assets/pug-DjiMg7mW.js","assets/puppet-DYDSY7Dj.js","assets/python-C1X48StL.js","assets/q-CuOwICRo.js","assets/r-BU6hSvk5.js","assets/rpm-BztRzSX7.js","assets/rst-CKbfDNrD.js","assets/stex-NgOvYG3S.js","assets/ruby-mqj0y2bQ.js","assets/rust-zgJDuv0h.js","assets/sas-CEyk9sX1.js","assets/sass-B9irdM0E.js","assets/scheme-x6TdpmVC.js","assets/shell-YD6A_fFc.js","assets/sieve-C5YXMwr0.js","assets/slim-Bf1FQuBQ.js","assets/smalltalk-Db2BOukD.js","assets/smarty-iKWBBJeb.js","assets/solr-CFsp-tWW.js","assets/soy-Bp7B5X5P.js","assets/sparql-DcPrKfhZ.js","assets/spreadsheet-C3z-gWru.js","assets/sql-DHVlzNoE.js","assets/stex-Cg_aPdoz.js","assets/stylus-MetgqTN6.js","assets/swift-DXKRkQMz.js","assets/tcl-BevIpjQ5.js","assets/textile-_4Nypotk.js","assets/tiddlywiki-DDJ5TKib.js","assets/tiki-DTxprbbV.js","assets/toml-023vXGSv.js","assets/tornado-Bdo4Jy6O.js","assets/troff-DTRuyQRy.js","assets/ttcn-R1BoT9rH.js","assets/turtle-CM9rYn40.js","assets/twig-C7dwzfeV.js","assets/vb-BXrUi_eW.js","assets/vbscript-BokD97Qh.js","assets/velocity-DvNFKKpp.js","assets/verilog-B7VFNSSq.js","assets/vhdl-B1rA6yA-.js","assets/vue-DaauBs6F.js","assets/wast-m9bWxpvr.js","assets/webidl-DE5IAe36.js","assets/xml-BfhUlznu.js","assets/xquery-BzB4WOAP.js","assets/yacas-BaDrOsGa.js","assets/yaml-omGv1gdd.js","assets/z80-B6iIPEr3.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); var qu=Object.defineProperty;var gl=Object.getOwnPropertySymbols;var Zu=Object.prototype.hasOwnProperty,Ju=Object.prototype.propertyIsEnumerable;var yl=(h,T,f)=>T in h?qu(h,T,{enumerable:!0,configurable:!0,writable:!0,value:f}):h[T]=f,Qi=(h,T)=>{for(var f in T||(T={}))Zu.call(T,f)&&yl(h,f,T[f]);if(gl)for(var f of gl(T))Ju.call(T,f)&&yl(h,f,T[f]);return h};var x=(h,T,f)=>new Promise((O,F)=>{var W=b=>{try{w(f.next(b))}catch(_){F(_)}},B=b=>{try{w(f.throw(b))}catch(_){F(_)}},w=b=>b.done?O(b.value):Promise.resolve(b.value).then(W,B);w((f=f.apply(h,T)).next())});import{_ as S,u as Qu,aF as $u,w as _l}from"./entry/index-DShbtsWl.js";import{c as ef,b as tf,l as rf}from"./antd-BmrhB3rb.js";import{d as Hn,f as Tl,w as to,y as ml,h as kl,u as Al,o as nf,b as of,Z as oo,_ as Pl,a1 as af,c as El,k as Ol,G as lf,r as sf,a8 as uf}from"./vue-BjERyvPm.js";import{u as ff}from"./useWindowSizeFn-Cuml40XT.js";var $i={exports:{}},bl;function kt(){return bl||(bl=1,function(h,T){(function(f,O){h.exports=O()})(ef,function(){var f=navigator.userAgent,O=navigator.platform,F=/gecko\/\d/i.test(f),W=/MSIE \d/.test(f),B=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(f),w=/Edge\/(\d+)/.exec(f),b=W||B||w,_=b&&(W?document.documentMode||6:+(w||B)[1]),R=!w&&/WebKit\//.test(f),U=R&&/Qt\/\d+\.\d+/.test(f),z=!w&&/Chrome\/(\d+)/.exec(f),te=z&&+z[1],J=/Opera\//.test(f),re=/Apple Computer/.test(navigator.vendor),k=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(f),N=/PhantomJS/.test(f),y=re&&(/Mobile\/\w+/.test(f)||navigator.maxTouchPoints>2),v=/Android/.test(f),L=y||v||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(f),P=y||/Mac/.test(O),K=/\bCrOS\b/.test(f),Q=/win/i.test(O),X=J&&f.match(/Version\/(\d*\.\d*)/);X&&(X=Number(X[1])),X&&X>=15&&(J=!1,R=!0);var ie=P&&(U||J&&(X==null||X<12.11)),Ue=F||b&&_>=9;function pe(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var xe=function(e,t){var n=e.className,r=pe(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function De(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function be(e,t){return De(e).appendChild(t)}function j(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),typeof t=="string")i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o=t)return a+(t-o);a+=l-o,a+=n-a%n,o=l+1}}var yt=function(){this.id=null,this.f=null,this.time=0,this.handler=Mn(this.onTimeout,this)};yt.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},yt.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n=t)return r+Math.min(a,t-i);if(i+=o-r,i+=n-i%n,r=o+1,i>=t)return r}}var Jr=[""];function Vn(e){for(;Jr.length<=e;)Jr.push(ae(Jr)+" ");return Jr[e]}function ae(e){return e[e.length-1]}function Qr(e,t){for(var n=[],r=0;r"€"&&(e.toUpperCase()!=e.toLowerCase()||Hl.test(e))}function $r(e,t){return t?t.source.indexOf("\\w")>-1&&Gn(e)?!0:t.test(e):Gn(e)}function uo(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var Wl=/[\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 Un(e){return e.charCodeAt(0)>=768&&Wl.test(e)}function fo(e,t,n){for(;(n<0?t>0:tn?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}function Ml(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;ot||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),a.level==1?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}var mr=null;function br(e,t,n){var r;mr=null;for(var i=0;it)return i;o.to==t&&(o.from!=o.to&&n=="before"?r=i:mr=i),o.from==t&&(o.from!=o.to&&n!="before"?r=i:mr=i)}return r!=null?r:mr}var Bl=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(u){return u<=247?e.charAt(u):1424<=u&&u<=1524?"R":1536<=u&&u<=1785?t.charAt(u-1536):1774<=u&&u<=2220?"r":8192<=u&&u<=8203?"w":u==8204?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,o=/[LRr]/,a=/[Lb1n]/,l=/[1n]/;function s(u,c,d){this.level=u,this.from=c,this.to=d}return function(u,c){var d=c=="ltr"?"L":"R";if(u.length==0||c=="ltr"&&!r.test(u))return!1;for(var g=u.length,p=[],m=0;m-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function ve(e,t){var n=Kn(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i0}function Kt(e){e.prototype.on=function(t,n){q(this,t,n)},e.prototype.off=function(t,n){Ke(this,t,n)}}function Fe(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function po(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function jn(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function wr(e){Fe(e),po(e)}function Yn(e){return e.target||e.srcElement}function vo(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),P&&e.ctrlKey&&t==1&&(t=3),t}var zl=function(){if(b&&_<9)return!1;var e=j("div");return"draggable"in e||"dragDrop"in e}(),Xn;function Vl(e){if(Xn==null){var t=j("span","​");be(e,j("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Xn=t.offsetWidth<=1&&t.offsetHeight>2&&!(b&&_<8))}var n=Xn?j("span","​"):j("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}var qn;function Gl(e){if(qn!=null)return qn;var t=be(e,document.createTextNode("AخA")),n=Je(t,0,1).getBoundingClientRect(),r=Je(t,1,2).getBoundingClientRect();return De(e),!n||n.left==n.right?!1:qn=r.right-n.right<3}var Zn=` b`.split(/\n/).length!=3?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf(` `,t);i==-1&&(i=e.length);var o=e.slice(t,e.charAt(i-1)=="\r"?i-1:i),a=o.indexOf("\r");a!=-1?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},Ul=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(t){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(n){}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},Kl=function(){var e=j("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Jn=null;function jl(e){if(Jn!=null)return Jn;var t=be(e,j("span","x")),n=t.getBoundingClientRect(),r=Je(t,0,1).getBoundingClientRect();return Jn=Math.abs(n.left-r.left)>1}var Qn={},jt={};function Yl(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Qn[e]=t}function Xl(e,t){jt[e]=t}function en(e){if(typeof e=="string"&&jt.hasOwnProperty(e))e=jt[e];else if(e&&typeof e.name=="string"&&jt.hasOwnProperty(e.name)){var t=jt[e.name];typeof t=="string"&&(t={name:t}),e=so(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return en("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return en("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function $n(e,t){t=en(t);var n=Qn[t.name];if(!n)return $n(e,"text/plain");var r=n(e,t);if(Yt.hasOwnProperty(t.name)){var i=Yt[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}var Yt={};function ql(e,t){var n=Yt.hasOwnProperty(e)?Yt[e]:Yt[e]={};Pt(t,n)}function Et(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function ei(e,t){for(var n;e.innerMode&&(n=e.innerMode(t),!(!n||n.mode==e));)t=n.state,e=n.mode;return n||{mode:e,state:t}}function go(e,t,n){return e.startState?e.startState(t,n):!0}var ge=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};ge.prototype.eol=function(){return this.pos>=this.string.length},ge.prototype.sol=function(){return this.pos==this.lineStart},ge.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},ge.prototype.next=function(){if(this.post},ge.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},ge.prototype.skipToEnd=function(){this.pos=this.string.length},ge.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},ge.prototype.backUp=function(e){this.pos-=e},ge.prototype.column=function(){return this.lastColumnPos0?null:(o&&t!==!1&&(this.pos+=o[0].length),o)}},ge.prototype.current=function(){return this.string.slice(this.start,this.pos)},ge.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},ge.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},ge.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function V(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t=e.first&&tn?A(n,V(e,n).text.length):Zl(t,V(e,t.line).text.length)}function Zl(e,t){var n=e.ch;return n==null||n>t?A(e.line,t):n<0?A(e.line,0):e}function mo(e,t){for(var n=[],r=0;rthis.maxLookAhead&&(this.maxLookAhead=e),t},it.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},it.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},it.fromSaved=function(e,t,n){return t instanceof nn?new it(e,Et(e.mode,t.state),n,t.lookAhead):new it(e,Et(e.mode,t),n)},it.prototype.save=function(e){var t=e!==!1?Et(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new nn(t,this.maxLookAhead):t};function bo(e,t,n,r){var i=[e.state.modeGen],o={};_o(e,t.text,e.doc.mode,n,function(u,c){return i.push(u,c)},o,r);for(var a=n.state,l=function(u){n.baseTokens=i;var c=e.state.overlays[u],d=1,g=0;n.state=!0,_o(e,t.text,c.mode,n,function(p,m){for(var C=d;gp&&i.splice(d,1,p,i[d+1],E),d+=2,g=Math.min(p,E)}if(m)if(c.opaque)i.splice(C,d-C,p,"overlay "+m),d=C+2;else for(;Ce.options.maxHighlightLength&&Et(e.doc.mode,r.state),o=bo(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function Lr(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new it(r,!0,t);var o=Jl(e,t,n),a=o>r.first&&V(r,o-1).stateAfter,l=a?it.fromSaved(r,a,o):new it(r,go(r.mode),o);return r.iter(o,t,function(s){oi(e,s.text,l);var u=l.line;s.stateAfter=u==t-1||u%5==0||u>=i.viewFrom&&ut.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}var Lo=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function Co(e,t,n,r){var i=e.doc,o=i.mode,a;t=ee(i,t);var l=V(i,t.line),s=Lr(e,t.line,n),u=new ge(l.text,e.options.tabSize,s),c;for(r&&(c=[]);(r||u.pose.options.maxHighlightLength?(l=!1,a&&oi(e,t,r,c.pos),c.pos=t.length,d=null):d=So(ai(n,c,r.state,g),o),g){var p=g[0].name;p&&(d="m-"+(d?p+" "+d:p))}if(!l||u!=d){for(;sa;--l){if(l<=o.first)return o.first;var s=V(o,l-1),u=s.stateAfter;if(u&&(!n||l+(u instanceof nn?u.lookAhead:0)<=o.modeFrontier))return l;var c=qe(s.text,null,e.options.tabSize);(i==null||r>c)&&(i=l-1,r=c)}return i}function Ql(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontiern;r--){var i=V(e,r).stateAfter;if(i&&(!(i instanceof nn)||r+i.lookAhead=t:o.to>t);(r||(r=[])).push(new on(a,o.from,s?null:o.to))}}return r}function is(e,t,n){var r;if(e)for(var i=0;i=t:o.to>t);if(l||o.from==t&&a.type=="bookmark"&&(!n||o.marker.insertLeft)){var s=o.from==null||(a.inclusiveLeft?o.from<=t:o.from0&&l)for(var M=0;M0)){var c=[s,1],d=$(u.from,l.from),g=$(u.to,l.to);(d<0||!a.inclusiveLeft&&!d)&&c.push({from:u.from,to:l.from}),(g>0||!a.inclusiveRight&&!g)&&c.push({from:l.to,to:u.to}),i.splice.apply(i,c),s+=c.length-3}}return i}function Ao(e){var t=e.markedSpans;if(t){for(var n=0;nt)&&(!r||si(r,o.marker)<0)&&(r=o.marker)}return r}function No(e,t,n,r,i){var o=V(e,t),a=ht&&o.markedSpans;if(a)for(var l=0;l=0&&d<=0||c<=0&&d>=0)&&(c<=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?$(u.to,n)>=0:$(u.to,n)>0)||c>=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?$(u.from,r)<=0:$(u.from,r)<0)))return!0}}}function Qe(e){for(var t;t=Oo(e);)e=t.find(-1,!0).line;return e}function ls(e){for(var t;t=sn(e);)e=t.find(1,!0).line;return e}function ss(e){for(var t,n;t=sn(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function ui(e,t){var n=V(e,t),r=Qe(n);return n==r?t:le(r)}function Io(e,t){if(t>e.lastLine())return t;var n=V(e,t),r;if(!mt(e,n))return t;for(;r=sn(n);)n=r.find(1,!0).line;return le(n)+1}function mt(e,t){var n=ht&&t.markedSpans;if(n){for(var r=void 0,i=0;it.maxLineLength&&(t.maxLineLength=i,t.maxLine=r)})}var Xt=function(e,t,n){this.text=e,Po(this,t),this.height=n?n(this):1};Xt.prototype.lineNo=function(){return le(this)},Kt(Xt);function us(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Ao(e),Po(e,n);var i=r?r(e):1;i!=e.height&&nt(e,i)}function fs(e){e.parent=null,Ao(e)}var hs={},cs={};function Do(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?cs:hs;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function Ro(e,t){var n=st("span",null,null,R?"padding-right: .1px":null),r={pre:st("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,a=void 0;r.pos=0,r.addToken=ps,Gl(e.display.measure)&&(a=ft(o,e.doc.direction))&&(r.addToken=gs(r.addToken,a)),r.map=[];var l=t!=e.display.externalMeasured&&le(o);ys(o,r,wo(e,o,l)),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=Wn(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=Wn(o.styleClasses.textClass,r.textClass||""))),r.map.length==0&&r.map.push(0,0,r.content.appendChild(Vl(e.display.measure))),i==0?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(R){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return ve(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=Wn(r.pre.className,r.textClass||"")),r}function ds(e){var t=j("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function ps(e,t,n,r,i,o,a){if(t){var l=e.splitSpaces?vs(t,e.trailingSpace):t,s=e.cm.state.specialChars,u=!1,c;if(!s.test(t))e.col+=t.length,c=document.createTextNode(l),e.map.push(e.pos,e.pos+t.length,c),b&&_<9&&(u=!0),e.pos+=t.length;else{c=document.createDocumentFragment();for(var d=0;;){s.lastIndex=d;var g=s.exec(t),p=g?g.index-d:t.length-d;if(p){var m=document.createTextNode(l.slice(d,d+p));b&&_<9?c.appendChild(j("span",[m])):c.appendChild(m),e.map.push(e.pos,e.pos+p,m),e.col+=p,e.pos+=p}if(!g)break;d+=p+1;var C=void 0;if(g[0]==" "){var E=e.cm.options.tabSize,I=E-e.col%E;C=c.appendChild(j("span",Vn(I),"cm-tab")),C.setAttribute("role","presentation"),C.setAttribute("cm-text"," "),e.col+=I}else g[0]=="\r"||g[0]==` `?(C=c.appendChild(j("span",g[0]=="\r"?"␍":"␤","cm-invalidchar")),C.setAttribute("cm-text",g[0]),e.col+=1):(C=e.cm.options.specialCharPlaceholder(g[0]),C.setAttribute("cm-text",g[0]),b&&_<9?c.appendChild(j("span",[C])):c.appendChild(C),e.col+=1);e.map.push(e.pos,e.pos+1,C),e.pos++}}if(e.trailingSpace=l.charCodeAt(t.length-1)==32,n||r||i||u||o||a){var H=n||"";r&&(H+=r),i&&(H+=i);var D=j("span",[c],H,o);if(a)for(var M in a)a.hasOwnProperty(M)&&M!="style"&&M!="class"&&D.setAttribute(M,a[M]);return e.content.appendChild(D)}e.content.appendChild(c)}}function vs(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;iu&&d.from<=u));g++);if(d.to>=c)return e(n,r,i,o,a,l,s);e(n,r.slice(0,d.to-u),i,o,null,l,s),o=null,r=r.slice(d.to-u),u=d.to}}}function Fo(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function ys(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(!r){for(var a=1;as||ne.collapsed&&G.to==s&&G.from==s)){if(G.to!=null&&G.to!=s&&p>G.to&&(p=G.to,C=""),ne.className&&(m+=" "+ne.className),ne.css&&(g=(g?g+";":"")+ne.css),ne.startStyle&&G.from==s&&(E+=" "+ne.startStyle),ne.endStyle&&G.to==p&&(M||(M=[])).push(ne.endStyle,G.to),ne.title&&((H||(H={})).title=ne.title),ne.attributes)for(var ue in ne.attributes)(H||(H={}))[ue]=ne.attributes[ue];ne.collapsed&&(!I||si(I.marker,ne)<0)&&(I=G)}else G.from>s&&p>G.from&&(p=G.from)}if(M)for(var Te=0;Te=l)break;for(var Ge=Math.min(l,p);;){if(c){var Me=s+c.length;if(!I){var ye=Me>Ge?c.slice(0,Ge-s):c;t.addToken(t,ye,d?d+m:m,E,s+ye.length==p?C:"",g,H)}if(Me>=Ge){c=c.slice(Ge-s),s=Ge;break}s=Me,E=""}c=i.slice(o,o=n[u++]),d=Do(n[u++],t.cm.options)}}}function Ho(e,t,n){this.line=t,this.rest=ss(t),this.size=this.rest?le(ae(this.rest))-n+1:1,this.node=this.text=null,this.hidden=mt(e,t)}function fn(e,t,n){for(var r=[],i,o=t;o2&&o.push((s.bottom+u.top)/2-n.top)}}o.push(n.bottom-n.top)}}function Uo(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var r=0;rn)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}}function As(e,t){t=Qe(t);var n=le(t),r=e.display.externalMeasured=new Ho(e.doc,t,n);r.lineN=n;var i=r.built=Ro(e,r);return r.text=i.pre,be(e.display.lineMeasure,i.pre),r}function Ko(e,t,n,r){return at(e,Zt(e,t),n,r)}function vi(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&tt)&&(o=s-l,i=o-1,t>=s&&(a="right")),i!=null){if(r=e[u+2],l==s&&n==(r.insertLeft?"left":"right")&&(a=n),n=="left"&&i==0)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)r=e[(u-=3)+2],a="left";if(n=="right"&&i==s-l)for(;u=0&&(n=e[i]).left==n.right;i--);return n}function Es(e,t,n,r){var i=Yo(t.map,n,r),o=i.node,a=i.start,l=i.end,s=i.collapse,u;if(o.nodeType==3){for(var c=0;c<4;c++){for(;a&&Un(t.line.text.charAt(i.coverStart+a));)--a;for(;i.coverStart+l0&&(s=r="right");var d;e.options.lineWrapping&&(d=o.getClientRects()).length>1?u=d[r=="right"?d.length-1:0]:u=o.getBoundingClientRect()}if(b&&_<9&&!a&&(!u||!u.left&&!u.right)){var g=o.parentNode.getClientRects()[0];g?u={left:g.left,right:g.left+Qt(e.display),top:g.top,bottom:g.bottom}:u=jo}for(var p=u.top-t.rect.top,m=u.bottom-t.rect.top,C=(p+m)/2,E=t.view.measure.heights,I=0;I=r.text.length?(s=r.text.length,u="before"):s<=0&&(s=0,u="after"),!l)return a(u=="before"?s-1:s,u=="before");function c(m,C,E){var I=l[C],H=I.level==1;return a(E?m-1:m,H!=E)}var d=br(l,s,u),g=mr,p=c(s,d,u=="before");return g!=null&&(p.other=c(s,g,u!="before")),p}function $o(e,t){var n=0;t=ee(e.doc,t),e.options.lineWrapping||(n=Qt(e.display)*t.ch);var r=V(e.doc,t.line),i=ct(r)+hn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function yi(e,t,n,r,i){var o=A(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function mi(e,t,n){var r=e.doc;if(n+=e.display.viewOffset,n<0)return yi(r.first,0,null,-1,-1);var i=Nt(r,n),o=r.first+r.size-1;if(i>o)return yi(r.first+r.size-1,V(r,o).text.length,null,1,1);t<0&&(t=0);for(var a=V(r,i);;){var l=Ns(e,a,i,t,n),s=as(a,l.ch+(l.xRel>0||l.outside>0?1:0));if(!s)return l;var u=s.find(1);if(u.line==i)return u;a=V(r,i=u.line)}}function ea(e,t,n,r){r-=gi(t);var i=t.text.length,o=yr(function(a){return at(e,n,a-1).bottom<=r},i,0);return i=yr(function(a){return at(e,n,a).top>r},o,i),{begin:o,end:i}}function ta(e,t,n,r){n||(n=Zt(e,t));var i=cn(e,t,at(e,n,r),"line").top;return ea(e,t,n,i)}function bi(e,t,n,r){return e.bottom<=n?!1:e.top>n?!0:(r?e.left:e.right)>t}function Ns(e,t,n,r,i){i-=ct(t);var o=Zt(e,t),a=gi(t),l=0,s=t.text.length,u=!0,c=ft(t,e.doc.direction);if(c){var d=(e.options.lineWrapping?Ds:Is)(e,t,n,o,c,r,i);u=d.level!=1,l=u?d.from:d.to-1,s=u?d.to:d.from-1}var g=null,p=null,m=yr(function(Y){var G=at(e,o,Y);return G.top+=a,G.bottom+=a,bi(G,r,i,!1)?(G.top<=i&&G.left<=r&&(g=Y,p=G),!0):!1},l,s),C,E,I=!1;if(p){var H=r-p.left=M.bottom?1:0}return m=fo(t.text,m,1),yi(n,m,E,I,r-C)}function Is(e,t,n,r,i,o,a){var l=yr(function(d){var g=i[d],p=g.level!=1;return bi($e(e,A(n,p?g.to:g.from,p?"before":"after"),"line",t,r),o,a,!0)},0,i.length-1),s=i[l];if(l>0){var u=s.level!=1,c=$e(e,A(n,u?s.from:s.to,u?"after":"before"),"line",t,r);bi(c,o,a,!0)&&c.top>a&&(s=i[l-1])}return s}function Ds(e,t,n,r,i,o,a){var l=ea(e,t,r,a),s=l.begin,u=l.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var c=null,d=null,g=0;g=u||p.to<=s)){var m=p.level!=1,C=at(e,r,m?Math.min(u,p.to)-1:Math.max(s,p.from)).right,E=CE)&&(c=p,d=E)}}return c||(c=i[i.length-1]),c.fromu&&(c={from:c.from,to:u,level:c.level}),c}var Dt;function Jt(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Dt==null){Dt=j("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Dt.appendChild(document.createTextNode("x")),Dt.appendChild(j("br"));Dt.appendChild(document.createTextNode("x"))}be(e.measure,Dt);var n=Dt.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),De(e.measure),n||1}function Qt(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=j("span","xxxxxxxxxx"),n=j("pre",[t],"CodeMirror-line-like");be(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function wi(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var l=e.display.gutterSpecs[a].className;n[l]=o.offsetLeft+o.clientLeft+i,r[l]=o.clientWidth}return{fixedPos:xi(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function xi(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function ra(e){var t=Jt(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/Qt(e.display)-3);return function(i){if(mt(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a0&&(u=V(e.doc,s.line).text).length==s.ch){var c=qe(u,u.length,e.options.tabSize)-u.length;s=A(s.line,Math.max(0,Math.round((o-Go(e.display).left)/Qt(e.display))-c))}return s}function Ft(e,t){if(t>=e.display.viewTo||(t-=e.display.viewFrom,t<0))return null;for(var n=e.display.view,r=0;rt)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)ht&&ui(e.doc,t)i.viewFrom?wt(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)wt(e);else if(t<=i.viewFrom){var o=pn(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):wt(e)}else if(n>=i.viewTo){var a=pn(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):wt(e)}else{var l=pn(e,t,t,-1),s=pn(e,n,n+r,1);l&&s?(i.view=i.view.slice(0,l.index).concat(fn(e,l.lineN,s.lineN)).concat(i.view.slice(s.index)),i.viewTo+=r):wt(e)}var u=i.externalMeasured;u&&(n=i.lineN&&t=r.viewTo)){var o=r.view[Ft(e,t)];if(o.node!=null){var a=o.changes||(o.changes=[]);Pe(a,n)==-1&&a.push(n)}}}function wt(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function pn(e,t,n,r){var i=Ft(e,t),o,a=e.display.view;if(!ht||n==e.doc.first+e.doc.size)return{index:i,lineN:n};for(var l=e.display.viewFrom,s=0;s0){if(i==a.length-1)return null;o=l+a[i].size-t,i++}else o=l-t;t+=o,n+=o}for(;ui(e.doc,n)!=n;){if(i==(r<0?0:a.length-1))return null;n+=r*a[i-(r<0?1:0)].size,i+=r}return{index:i,lineN:n}}function Rs(e,t,n){var r=e.display,i=r.view;i.length==0||t>=r.viewTo||n<=r.viewFrom?(r.view=fn(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=fn(e,t,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,Ft(e,n)))),r.viewTo=n}function na(e){for(var t=e.display.view,n=0,r=0;r=e.display.viewTo||s.to().line0?a:e.defaultCharWidth())+"px"}if(r.other){var l=n.appendChild(j("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));l.style.display="",l.style.left=r.other.left+"px",l.style.top=r.other.top+"px",l.style.height=(r.other.bottom-r.other.top)*.85+"px"}}function vn(e,t){return e.top-t.top||e.left-t.left}function Fs(e,t,n){var r=e.display,i=e.doc,o=document.createDocumentFragment(),a=Go(e.display),l=a.left,s=Math.max(r.sizerWidth,It(e)-r.sizer.offsetLeft)-a.right,u=i.direction=="ltr";function c(D,M,Y,G){M<0&&(M=0),M=Math.round(M),G=Math.round(G),o.appendChild(j("div",null,"CodeMirror-selected","position: absolute; left: "+D+`px; top: `+M+"px; width: "+(Y==null?s-D:Y)+`px; height: `+(G-M)+"px"))}function d(D,M,Y){var G=V(i,D),ne=G.text.length,ue,Te;function he(ye,Be){return dn(e,A(D,ye),"div",G,Be)}function Ge(ye,Be,Ae){var we=ta(e,G,null,ye),me=Be=="ltr"==(Ae=="after")?"left":"right",ce=Ae=="after"?we.begin:we.end-(/\s/.test(G.text.charAt(we.end-1))?2:1);return he(ce,me)[me]}var Me=ft(G,i.direction);return Ml(Me,M||0,Y==null?ne:Y,function(ye,Be,Ae,we){var me=Ae=="ltr",ce=he(ye,me?"left":"right"),ze=he(Be-1,me?"right":"left"),hr=M==null&&ye==0,Tt=Y==null&&Be==ne,Oe=we==0,lt=!Me||we==Me.length-1;if(ze.top-ce.top<=3){var ke=(u?hr:Tt)&&Oe,Zi=(u?Tt:hr)&<,gt=ke?l:(me?ce:ze).left,zt=Zi?s:(me?ze:ce).right;c(gt,ce.top,zt-gt,ce.bottom)}else{var Vt,Ie,cr,Ji;me?(Vt=u&&hr&&Oe?l:ce.left,Ie=u?s:Ge(ye,Ae,"before"),cr=u?l:Ge(Be,Ae,"after"),Ji=u&&Tt&<?s:ze.right):(Vt=u?Ge(ye,Ae,"before"):l,Ie=!u&&hr&&Oe?s:ce.right,cr=!u&&Tt&<?l:ze.left,Ji=u?Ge(Be,Ae,"after"):s),c(Vt,ce.top,Ie-Vt,ce.bottom),ce.bottom0?t.blinker=setInterval(function(){e.hasFocus()||$t(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function oa(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Ti(e))}function _i(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&$t(e))},100)}function Ti(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(ve(e,"focus",e,t),e.state.focused=!0,ut(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),R&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Si(e))}function $t(e,t){e.state.delayingBlurEvent||(e.state.focused&&(ve(e,"blur",e,t),e.state.focused=!1,xe(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function gn(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=Math.max(0,t.scroller.getBoundingClientRect().top),i=t.lineDiv.getBoundingClientRect().top,o=0,a=0;a.005||p<-.005)&&(ie.display.sizerWidth){var C=Math.ceil(c/Qt(e.display));C>e.display.maxLineLength&&(e.display.maxLineLength=C,e.display.maxLine=l.line,e.display.maxLineChanged=!0)}}}Math.abs(o)>2&&(t.scroller.scrollTop+=o)}function aa(e){if(e.widgets)for(var t=0;t=a&&(o=Nt(t,ct(V(t,s))-e.wrapper.clientHeight),a=s)}return{from:o,to:Math.max(a,o+1)}}function Hs(e,t){if(!Le(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null,o=n.wrapper.ownerDocument;if(t.top+r.top<0?i=!0:t.bottom+r.top>(o.defaultView.innerHeight||o.documentElement.clientHeight)&&(i=!1),i!=null&&!N){var a=j("div","​",null,`position: absolute; top: `+(t.top-n.viewOffset-hn(e.display))+`px; height: `+(t.bottom-t.top+ot(e)+n.barHeight)+`px; left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(a),a.scrollIntoView(i),e.display.lineSpace.removeChild(a)}}}function Ws(e,t,n,r){r==null&&(r=0);var i;!e.options.lineWrapping&&t==n&&(n=t.sticky=="before"?A(t.line,t.ch+1,"before"):t,t=t.ch?A(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t);for(var o=0;o<5;o++){var a=!1,l=$e(e,t),s=!n||n==t?l:$e(e,n);i={left:Math.min(l.left,s.left),top:Math.min(l.top,s.top)-r,right:Math.max(l.left,s.left),bottom:Math.max(l.bottom,s.bottom)+r};var u=ki(e,i),c=e.doc.scrollTop,d=e.doc.scrollLeft;if(u.scrollTop!=null&&(Er(e,u.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(a=!0)),u.scrollLeft!=null&&(Ht(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-d)>1&&(a=!0)),!a)break}return i}function Ms(e,t){var n=ki(e,t);n.scrollTop!=null&&Er(e,n.scrollTop),n.scrollLeft!=null&&Ht(e,n.scrollLeft)}function ki(e,t){var n=e.display,r=Jt(e.display);t.top<0&&(t.top=0);var i=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:n.scroller.scrollTop,o=pi(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var l=e.doc.height+di(n),s=t.topl-r;if(t.topi+o){var c=Math.min(t.top,(u?l:t.bottom)-o);c!=i&&(a.scrollTop=c)}var d=e.options.fixedGutter?0:n.gutters.offsetWidth,g=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:n.scroller.scrollLeft-d,p=It(e)-n.gutters.offsetWidth,m=t.right-t.left>p;return m&&(t.right=t.left+p),t.left<10?a.scrollLeft=0:t.leftp+g-3&&(a.scrollLeft=t.right+(m?0:10)-p),a}function Ai(e,t){t!=null&&(mn(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t)}function er(e){mn(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Pr(e,t,n){(t!=null||n!=null)&&mn(e),t!=null&&(e.curOp.scrollLeft=t),n!=null&&(e.curOp.scrollTop=n)}function Bs(e,t){mn(e),e.curOp.scrollToPos=t}function mn(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var n=$o(e,t.from),r=$o(e,t.to);la(e,n,r,t.margin)}}function la(e,t,n,r){var i=ki(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});Pr(e,i.scrollLeft,i.scrollTop)}function Er(e,t){Math.abs(e.doc.scrollTop-t)<2||(F||Ei(e,{top:t}),sa(e,t,!0),F&&Ei(e),Ir(e,100))}function sa(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),!(e.display.scroller.scrollTop==t&&!n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Ht(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r)&&(e.doc.scrollLeft=t,da(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Or(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+di(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+ot(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var Wt=function(e,t,n){this.cm=n;var r=this.vert=j("div",[j("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=j("div",[j("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),q(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),q(i,"scroll",function(){i.clientWidth&&t(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,b&&_<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Wt.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(r==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},Wt.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Wt.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Wt.prototype.zeroWidthHack=function(){var e=P&&!k?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new yt,this.disableVert=new yt},Wt.prototype.enableZeroWidthBar=function(e,t,n){e.style.visibility="";function r(){var i=e.getBoundingClientRect(),o=n=="vert"?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1);o!=e?e.style.visibility="hidden":t.set(1e3,r)}t.set(1e3,r)},Wt.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Nr=function(){};Nr.prototype.update=function(){return{bottom:0,right:0}},Nr.prototype.setScrollLeft=function(){},Nr.prototype.setScrollTop=function(){},Nr.prototype.clear=function(){};function tr(e,t){t||(t=Or(e));var n=e.display.barWidth,r=e.display.barHeight;ua(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&gn(e),ua(e,Or(e)),n=e.display.barWidth,r=e.display.barHeight}function ua(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}var fa={native:Wt,null:Nr};function ha(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&xe(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new fa[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),q(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,n){n=="horizontal"?Ht(e,t):Er(e,t)},e),e.display.scrollbars.addClass&&ut(e.display.wrapper,e.display.scrollbars.addClass)}var zs=0;function Mt(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++zs,markArrays:null},ms(e.curOp)}function Bt(e){var t=e.curOp;t&&ws(t,function(n){for(var r=0;r=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new bn(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Us(e){e.updatedDisplay=e.mustUpdate&&Pi(e.cm,e.update)}function Ks(e){var t=e.cm,n=t.display;e.updatedDisplay&&gn(t),e.barMeasure=Or(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Ko(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+ot(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-It(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function js(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)){var n=+new Date+e.options.workTime,r=Lr(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(o){if(r.line>=e.display.viewFrom){var a=o.styles,l=o.text.length>e.options.maxHighlightLength?Et(t.mode,r.state):null,s=bo(e,o,r,!0);l&&(r.state=l),o.styles=s.styles;var u=o.styleClasses,c=s.classes;c?o.styleClasses=c:u&&(o.styleClasses=null);for(var d=!a||a.length!=o.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),g=0;!d&&gn)return Ir(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&Ve(e,function(){for(var o=0;o=n.viewFrom&&t.visible.to<=n.viewTo&&(n.updateLineNumbers==null||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&na(e)==0)return!1;pa(e)&&(wt(e),t.dims=wi(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFroma&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),ht&&(o=ui(e.doc,o),a=Io(e.doc,a));var l=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;Rs(e,o,a),n.viewOffset=ct(V(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var s=na(e);if(!l&&s==0&&!t.force&&n.renderedView==n.view&&(n.updateLineNumbers==null||n.updateLineNumbers>=n.viewTo))return!1;var u=Zs(e);return s>4&&(n.lineDiv.style.display="none"),Qs(e,n.updateLineNumbers,t.dims),s>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,Js(u),De(n.cursorDiv),De(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,l&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,Ir(e,400)),n.updateLineNumbers=null,!0}function ca(e,t){for(var n=t.viewport,r=!0;;r=!1){if(!r||!e.options.lineWrapping||t.oldDisplayWidth==It(e)){if(n&&n.top!=null&&(n={top:Math.min(e.doc.height+di(e.display)-pi(e),n.top)}),t.visible=yn(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else r&&(t.visible=yn(e.display,e.doc,n));if(!Pi(e,t))break;gn(e);var i=Or(e);Ar(e),tr(e,i),Ni(e,i),t.force=!1}t.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Ei(e,t){var n=new bn(e,t);if(Pi(e,n)){gn(e),ca(e,n);var r=Or(e);Ar(e),tr(e,r),Ni(e,r),n.finish()}}function Qs(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function l(m){var C=m.nextSibling;return R&&P&&e.display.currentWheelTarget==m?m.style.display="none":m.parentNode.removeChild(m),C}for(var s=r.view,u=r.viewFrom,c=0;c-1&&(p=!1),Wo(e,d,u,n)),p&&(De(d.lineNumber),d.lineNumber.appendChild(document.createTextNode(ri(e.options,u)))),a=d.node.nextSibling}u+=d.size}for(;a;)a=l(a)}function Oi(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",Ce(e,"gutterChanged",e)}function Ni(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+ot(e)+"px"}function da(e){var t=e.display,n=t.view;if(!(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))){for(var r=xi(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;a=105&&(i.wrapper.style.clipPath="inset(0px)"),i.wrapper.setAttribute("translate","no"),b&&_<8&&(i.gutters.style.zIndex=-1,i.scroller.style.paddingRight=0),!R&&!(F&&L)&&(i.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(i.wrapper):e(i.wrapper)),i.viewFrom=i.viewTo=t.first,i.reportedViewFrom=i.reportedViewTo=t.first,i.view=[],i.renderedView=null,i.externalMeasured=null,i.viewOffset=0,i.lastWrapHeight=i.lastWrapWidth=0,i.updateLineNumbers=null,i.nativeBarWidth=i.barHeight=i.barWidth=0,i.scrollbarsClipped=!1,i.lineNumWidth=i.lineNumInnerWidth=i.lineNumChars=null,i.alignWidgets=!1,i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.maxLine=null,i.maxLineLength=0,i.maxLineChanged=!1,i.wheelDX=i.wheelDY=i.wheelStartX=i.wheelStartY=null,i.shift=!1,i.selForContextMenu=null,i.activeTouch=null,i.gutterSpecs=Ii(r.gutters,r.lineNumbers),va(i),n.init(i)}var wn=0,pt=null;b?pt=-.53:F?pt=15:z?pt=-.7:re&&(pt=-1/3);function ga(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return t==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),n==null&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:n==null&&(n=e.wheelDelta),{x:t,y:n}}function eu(e){var t=ga(e);return t.x*=pt,t.y*=pt,t}function ya(e,t){z&&te==102&&(e.display.chromeScrollHack==null?e.display.sizer.style.pointerEvents="none":clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout(function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=""},100));var n=ga(t),r=n.x,i=n.y,o=pt;t.deltaMode===0&&(r=t.deltaX,i=t.deltaY,o=1);var a=e.display,l=a.scroller,s=l.scrollWidth>l.clientWidth,u=l.scrollHeight>l.clientHeight;if(r&&s||i&&u){if(i&&P&&R){e:for(var c=t.target,d=a.view;c!=l;c=c.parentNode)for(var g=0;g=0&&$(e,r.to())<=0)return n}return-1};var oe=function(e,t){this.anchor=e,this.head=t};oe.prototype.from=function(){return rn(this.anchor,this.head)},oe.prototype.to=function(){return tn(this.anchor,this.head)},oe.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function et(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort(function(g,p){return $(g.from(),p.from())}),n=Pe(t,i);for(var o=1;o0:s>=0){var u=rn(l.from(),a.from()),c=tn(l.to(),a.to()),d=l.empty()?a.from()==a.head:l.from()==l.head;o<=n&&--n,t.splice(--o,2,new oe(d?c:u,d?u:c))}}return new je(t,n)}function xt(e,t){return new je([new oe(e,t||e)],0)}function Lt(e){return e.text?A(e.from.line+e.text.length-1,ae(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function ma(e,t){if($(e,t.from)<0)return e;if($(e,t.to)<=0)return Lt(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=Lt(t).ch-t.to.ch),A(n,r)}function Di(e,t){for(var n=[],r=0;r1&&e.remove(l.line+1,m-1),e.insert(l.line+1,I)}Ce(e,"change",e,t)}function Ct(e,t,n){function r(i,o,a){if(i.linked)for(var l=0;l1&&!e.done[e.done.length-2].ranges)return e.done.pop(),ae(e.done)}function Sa(e,t,n,r){var i=e.history;i.undone.length=0;var o=+new Date,a,l;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&i.lastModTime>o-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(a=nu(i,i.lastOp==r)))l=ae(a.changes),$(t.from,t.to)==0&&$(t.from,l.to)==0?l.to=Lt(t):a.changes.push(Hi(e,t));else{var s=ae(i.done);for((!s||!s.ranges)&&Ln(e.sel,i.done),a={changes:[Hi(e,t)],generation:i.generation},i.done.push(a);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=o,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,l||ve(e,"historyAdded")}function iu(e,t,n,r){var i=t.charAt(0);return i=="*"||i=="+"&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function ou(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||iu(e,o,ae(i.done),t))?i.done[i.done.length-1]=t:Ln(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&r.clearRedo!==!1&&Ca(i.undone)}function Ln(e,t){var n=ae(t);n&&n.ranges&&n.equals(e)||t.push(e)}function _a(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),function(a){a.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=a.markedSpans),++o})}function au(e){if(!e)return null;for(var t,n=0;n-1&&(ae(l)[d]=u[d],delete u[d])}}return r}function Wi(e,t,n,r){if(r){var i=e.anchor;if(n){var o=$(t,i)<0;o!=$(n,i)<0?(i=t,t=n):o!=$(t,n)<0&&(t=n)}return new oe(i,t)}else return new oe(n||t,t)}function Cn(e,t,n,r,i){i==null&&(i=e.cm&&(e.cm.display.shift||e.extend)),Ee(e,new je([Wi(e.sel.primary(),t,n,i)],0),r)}function ka(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o=t.ch:l.to>t.ch))){if(i&&(ve(s,"beforeCursorEnter"),s.explicitlyCleared))if(o.markedSpans){--a;continue}else break;if(!s.atomic)continue;if(n){var d=s.find(r<0?1:-1),g=void 0;if((r<0?c:u)&&(d=Ia(e,d,-r,d&&d.line==t.line?o:null)),d&&d.line==t.line&&(g=$(d,n))&&(r<0?g<0:g>0))return nr(e,d,t,r,i)}var p=s.find(r<0?-1:1);return(r<0?u:c)&&(p=Ia(e,p,r,p.line==t.line?o:null)),p?nr(e,p,t,r,i):null}}return t}function _n(e,t,n,r,i){var o=r||1,a=nr(e,t,n,o,i)||!i&&nr(e,t,n,o,!0)||nr(e,t,n,-o,i)||!i&&nr(e,t,n,-o,!0);return a||(e.cantEdit=!0,A(e.first,0))}function Ia(e,t,n,r){return n<0&&t.ch==0?t.line>e.first?ee(e,A(t.line-1)):null:n>0&&t.ch==(r||V(e,t.line)).text.length?t.line=0;--i)Fa(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else Fa(e,t)}}function Fa(e,t){if(!(t.text.length==1&&t.text[0]==""&&$(t.from,t.to)==0)){var n=Di(e,t);Sa(e,t,n,e.cm?e.cm.curOp.id:NaN),Fr(e,t,n,li(e,t));var r=[];Ct(e,function(i,o){!o&&Pe(r,i.history)==-1&&(Ba(i.history,t),r.push(i.history)),Fr(i,t,null,li(i,t))})}}function Tn(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!(r&&!n)){for(var i=e.history,o,a=e.sel,l=t=="undo"?i.done:i.undone,s=t=="undo"?i.undone:i.done,u=0;u=0;--p){var m=g(p);if(m)return m.v}}}}function Ha(e,t){if(t!=0&&(e.first+=t,e.sel=new je(Qr(e.sel.ranges,function(i){return new oe(A(i.anchor.line+t,i.anchor.ch),A(i.head.line+t,i.head.ch))}),e.sel.primIndex),e.cm)){He(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;re.lastLine())){if(t.from.lineo&&(t={from:t.from,to:A(o,V(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Ot(e,t.from,t.to),n||(n=Di(e,t)),e.cm?uu(e.cm,t,r):Fi(e,t,r),Sn(e,n,rt),e.cantEdit&&_n(e,A(e.firstLine(),0))&&(e.cantEdit=!1)}}function uu(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,l=!1,s=o.line;e.options.lineWrapping||(s=le(Qe(V(r,o.line))),r.iter(s,a.line+1,function(p){if(p==i.maxLine)return l=!0,!0})),r.sel.contains(t.from,t.to)>-1&&co(e),Fi(r,t,n,ra(e)),e.options.lineWrapping||(r.iter(s,o.line+t.text.length,function(p){var m=un(p);m>i.maxLineLength&&(i.maxLine=p,i.maxLineLength=m,i.maxLineChanged=!0,l=!1)}),l&&(e.curOp.updateMaxLine=!0)),Ql(r,o.line),Ir(e,400);var u=t.text.length-(a.line-o.line)-1;t.full?He(e):o.line==a.line&&t.text.length==1&&!wa(e.doc,t)?bt(e,o.line,"text"):He(e,o.line,a.line+1,u);var c=Ze(e,"changes"),d=Ze(e,"change");if(d||c){var g={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};d&&Ce(e,"change",e,g),c&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(g)}e.display.selForContextMenu=null}function or(e,t,n,r,i){var o;r||(r=n),$(r,n)<0&&(o=[r,n],n=o[0],r=o[1]),typeof t=="string"&&(t=e.splitLines(t)),ir(e,{from:n,to:r,text:t,origin:i})}function Wa(e,t,n,r){n1||!(this.children[0]instanceof Wr))){var l=[];this.collapse(l),this.children=[new Wr(l)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var a=i.lines.length%25+25,l=a;l10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;re.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}r!=null&&e&&this.collapsed&&He(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Oa(e.doc)),e&&Ce(e,"markerCleared",e,this,r,i),t&&Bt(e),this.parent&&this.parent.clear()}},St.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var n,r,i=0;i0||a==0&&o.clearWhenEmpty!==!1)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=st("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(No(e,t.line,t,n,o)||t.line!=n.line&&No(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");es()}o.addToHistory&&Sa(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var l=t.line,s=e.cm,u;if(e.iter(l,n.line+1,function(d){s&&o.collapsed&&!s.options.lineWrapping&&Qe(d)==s.display.maxLine&&(u=!0),o.collapsed&&l!=t.line&&nt(d,0),rs(d,new on(o,l==t.line?t.ch:null,l==n.line?n.ch:null),e.cm&&e.cm.curOp),++l}),o.collapsed&&e.iter(t.line,n.line+1,function(d){mt(e,d)&&nt(d,0)}),o.clearOnEnter&&q(o,"beforeCursorEnter",function(){return o.clear()}),o.readOnly&&($l(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++Va,o.atomic=!0),s){if(u&&(s.curOp.updateMaxLine=!0),o.collapsed)He(s,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var c=t.line;c<=n.line;c++)bt(s,c,"text");o.atomic&&Oa(s.doc),Ce(s,"markerAdded",s,o)}return o}var zr=function(e,t){this.markers=e,this.primary=t;for(var n=0;n=0;s--)ir(this,r[s]);l?Pa(this,l):this.cm&&er(this.cm)}),undo:_e(function(){Tn(this,"undo")}),redo:_e(function(){Tn(this,"redo")}),undoSelection:_e(function(){Tn(this,"undo",!0)}),redoSelection:_e(function(){Tn(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=ee(this,e),t=ee(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,function(o){var a=o.markedSpans;if(a)for(var l=0;l=s.to||s.from==null&&i!=e.line||s.from!=null&&i==t.line&&s.from>=t.ch)&&(!n||n(s.marker))&&r.push(s.marker.parent||s.marker)}++i}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var n=t.markedSpans;if(n)for(var r=0;re)return t=e,!0;e-=o,++n}),ee(this,A(n,t))},indexFromPos:function(e){e=ee(this,e);var t=e.ch;if(e.linet&&(t=e.from),e.to!=null&&e.to-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var c=e.dataTransfer.getData("Text");if(c){var d;if(t.state.draggingText&&!t.state.draggingText.copy&&(d=t.listSelections()),Sn(t.doc,xt(n,n)),d)for(var g=0;g=0;l--)or(e.doc,"",r[l].from,r[l].to,"+delete");er(e)})}function Bi(e,t,n){var r=fo(e.text,t+n,n);return r<0||r>e.text.length?null:r}function zi(e,t,n){var r=Bi(e,t.ch,n);return r==null?null:new A(t.line,r,n<0?"after":"before")}function Vi(e,t,n,r,i){if(e){t.doc.direction=="rtl"&&(i=-i);var o=ft(n,t.doc.direction);if(o){var a=i<0?ae(o):o[0],l=i<0==(a.level==1),s=l?"after":"before",u;if(a.level>0||t.doc.direction=="rtl"){var c=Zt(t,n);u=i<0?n.text.length-1:0;var d=at(t,c,u).top;u=yr(function(g){return at(t,c,g).top==d},i<0==(a.level==1)?a.from:a.to-1,u),s=="before"&&(u=Bi(n,u,1))}else u=i<0?a.to:a.from;return new A(r,u,s)}}return new A(r,i<0?n.text.length:0,i<0?"before":"after")}function Cu(e,t,n,r){var i=ft(t,e.doc.direction);if(!i)return zi(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=br(i,n.ch,n.sticky),a=i[o];if(e.doc.direction=="ltr"&&a.level%2==0&&(r>0?a.to>n.ch:a.from=a.from&&g>=c.begin)){var p=d?"before":"after";return new A(n.line,g,p)}}var m=function(I,H,D){for(var M=function(ue,Te){return Te?new A(n.line,l(ue,1),"before"):new A(n.line,ue,"after")};I>=0&&I0==(Y.level!=1),ne=G?D.begin:l(D.end,-1);if(Y.from<=ne&&ne0?c.end:l(c.begin,-1);return E!=null&&!(r>0&&E==t.text.length)&&(C=m(r>0?0:i.length-1,r,u(E)),C)?C:null}var Ur={selectAll:Da,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),rt)},killLine:function(e){return sr(e,function(t){if(t.empty()){var n=V(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line0)i=new A(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),A(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=V(e.doc,i.line-1).text;a&&(i=new A(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),A(i.line-1,a.length-1),i,"+transpose"))}}n.push(new oe(i,i))}e.setSelections(n)})},newlineAndIndent:function(e){return Ve(e,function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;re&&$(t,this.pos)==0&&n==this.button};var jr,Yr;function Eu(e,t){var n=+new Date;return Yr&&Yr.compare(n,e,t)?(jr=Yr=null,"triple"):jr&&jr.compare(n,e,t)?(Yr=new Ui(n,e,t),jr=null,"double"):(jr=new Ui(n,e,t),Yr=null,"single")}function il(e){var t=this,n=t.display;if(!(Le(t,e)||n.activeTouch&&n.input.supportsTouch())){if(n.input.ensurePolled(),n.shift=e.shiftKey,dt(n,e)){R||(n.scroller.draggable=!1,setTimeout(function(){return n.scroller.draggable=!0},100));return}if(!Ki(t,e)){var r=Rt(t,e),i=vo(e),o=r?Eu(r,i):"single";qr(t).focus(),i==1&&t.state.selectingText&&t.state.selectingText(e),!(r&&Ou(t,i,r,o,e))&&(i==1?r?Iu(t,r,o,e):Yn(e)==n.scroller&&Fe(e):i==2?(r&&Cn(t.doc,r),setTimeout(function(){return n.input.focus()},20)):i==3&&(Ue?t.display.input.onContextMenu(e):_i(t)))}}}function Ou(e,t,n,r,i){var o="Click";return r=="double"?o="Double"+o:r=="triple"&&(o="Triple"+o),o=(t==1?"Left":t==2?"Middle":"Right")+o,Kr(e,qa(o,i),i,function(a){if(typeof a=="string"&&(a=Ur[a]),!a)return!1;var l=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),l=a(e,n)!=Zr}finally{e.state.suppressEdits=!1}return l})}function Nu(e,t,n){var r=e.getOption("configureMouse"),i=r?r(e,t,n):{};if(i.unit==null){var o=K?n.shiftKey&&n.metaKey:n.altKey;i.unit=o?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(i.extend==null||e.doc.extend)&&(i.extend=e.doc.extend||n.shiftKey),i.addNew==null&&(i.addNew=P?n.metaKey:n.ctrlKey),i.moveOnDrag==null&&(i.moveOnDrag=!(P?n.altKey:n.ctrlKey)),i}function Iu(e,t,n,r){b?setTimeout(Mn(oa,e),0):e.curOp.focus=Re(Ut(e));var i=Nu(e,n,r),o=e.doc.sel,a;e.options.dragDrop&&zl&&!e.isReadOnly()&&n=="single"&&(a=o.contains(t))>-1&&($((a=o.ranges[a]).from(),t)<0||t.xRel>0)&&($(a.to(),t)>0||t.xRel<0)?Du(e,r,t,i):Ru(e,r,t,i)}function Du(e,t,n,r){var i=e.display,o=!1,a=Se(e,function(u){R&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:_i(e)),Ke(i.wrapper.ownerDocument,"mouseup",a),Ke(i.wrapper.ownerDocument,"mousemove",l),Ke(i.scroller,"dragstart",s),Ke(i.scroller,"drop",a),o||(Fe(u),r.addNew||Cn(e.doc,n,null,null,r.extend),R&&!re||b&&_==9?setTimeout(function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()},20):i.input.focus())}),l=function(u){o=o||Math.abs(t.clientX-u.clientX)+Math.abs(t.clientY-u.clientY)>=10},s=function(){return o=!0};R&&(i.scroller.draggable=!0),e.state.draggingText=a,a.copy=!r.moveOnDrag,q(i.wrapper.ownerDocument,"mouseup",a),q(i.wrapper.ownerDocument,"mousemove",l),q(i.scroller,"dragstart",s),q(i.scroller,"drop",a),e.state.delayingBlurEvent=!0,setTimeout(function(){return i.input.focus()},20),i.scroller.dragDrop&&i.scroller.dragDrop()}function ol(e,t,n){if(n=="char")return new oe(t,t);if(n=="word")return e.findWordAt(t);if(n=="line")return new oe(A(t.line,0),ee(e.doc,A(t.line+1,0)));var r=n(e,t);return new oe(r.from,r.to)}function Ru(e,t,n,r){b&&_i(e);var i=e.display,o=e.doc;Fe(t);var a,l,s=o.sel,u=s.ranges;if(r.addNew&&!r.extend?(l=o.sel.contains(n),l>-1?a=u[l]:a=new oe(n,n)):(a=o.sel.primary(),l=o.sel.primIndex),r.unit=="rectangle")r.addNew||(a=new oe(n,n)),n=Rt(e,t,!0,!0),l=-1;else{var c=ol(e,n,r.unit);r.extend?a=Wi(a,c.anchor,c.head,r.extend):a=c}r.addNew?l==-1?(l=u.length,Ee(o,et(e,u.concat([a]),l),{scroll:!1,origin:"*mouse"})):u.length>1&&u[l].empty()&&r.unit=="char"&&!r.extend?(Ee(o,et(e,u.slice(0,l).concat(u.slice(l+1)),0),{scroll:!1,origin:"*mouse"}),s=o.sel):Mi(o,l,a,Bn):(l=0,Ee(o,new je([a],0),Bn),s=o.sel);var d=n;function g(D){if($(d,D)!=0)if(d=D,r.unit=="rectangle"){for(var M=[],Y=e.options.tabSize,G=qe(V(o,n.line).text,n.ch,Y),ne=qe(V(o,D.line).text,D.ch,Y),ue=Math.min(G,ne),Te=Math.max(G,ne),he=Math.min(n.line,D.line),Ge=Math.min(e.lastLine(),Math.max(n.line,D.line));he<=Ge;he++){var Me=V(o,he).text,ye=zn(Me,ue,Y);ue==Te?M.push(new oe(A(he,ye),A(he,ye))):Me.length>ye&&M.push(new oe(A(he,ye),A(he,zn(Me,Te,Y))))}M.length||M.push(new oe(n,n)),Ee(o,et(e,s.ranges.slice(0,l).concat(M),l),{origin:"*mouse",scroll:!1}),e.scrollIntoView(D)}else{var Be=a,Ae=ol(e,D,r.unit),we=Be.anchor,me;$(Ae.anchor,we)>0?(me=Ae.head,we=rn(Be.from(),Ae.anchor)):(me=Ae.anchor,we=tn(Be.to(),Ae.head));var ce=s.ranges.slice(0);ce[l]=Fu(e,new oe(ee(o,we),me)),Ee(o,et(e,ce,l),Bn)}}var p=i.wrapper.getBoundingClientRect(),m=0;function C(D){var M=++m,Y=Rt(e,D,!0,r.unit=="rectangle");if(Y)if($(Y,d)!=0){e.curOp.focus=Re(Ut(e)),g(Y);var G=yn(i,o);(Y.line>=G.to||Y.linep.bottom?20:0;ne&&setTimeout(Se(e,function(){m==M&&(i.scroller.scrollTop+=ne,C(D))}),50)}}function E(D){e.state.selectingText=!1,m=1/0,D&&(Fe(D),i.input.focus()),Ke(i.wrapper.ownerDocument,"mousemove",I),Ke(i.wrapper.ownerDocument,"mouseup",H),o.history.lastSelOrigin=null}var I=Se(e,function(D){D.buttons===0||!vo(D)?E(D):C(D)}),H=Se(e,E);e.state.selectingText=H,q(i.wrapper.ownerDocument,"mousemove",I),q(i.wrapper.ownerDocument,"mouseup",H)}function Fu(e,t){var n=t.anchor,r=t.head,i=V(e.doc,n.line);if($(n,r)==0&&n.sticky==r.sticky)return t;var o=ft(i);if(!o)return t;var a=br(o,n.ch,n.sticky),l=o[a];if(l.from!=n.ch&&l.to!=n.ch)return t;var s=a+(l.from==n.ch==(l.level!=1)?0:1);if(s==0||s==o.length)return t;var u;if(r.line!=n.line)u=(r.line-n.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var c=br(o,r.ch,r.sticky),d=c-a||(r.ch-n.ch)*(l.level==1?-1:1);c==s-1||c==s?u=d<0:u=d>0}var g=o[s+(u?-1:0)],p=u==(g.level==1),m=p?g.from:g.to,C=p?"after":"before";return n.ch==m&&n.sticky==C?t:new oe(new A(n.line,m,C),r)}function al(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(g){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&Fe(t);var a=e.display,l=a.lineDiv.getBoundingClientRect();if(o>l.bottom||!Ze(e,n))return jn(t);o-=l.top-a.viewOffset;for(var s=0;s=i){var c=Nt(e.doc,o),d=e.display.gutterSpecs[s];return ve(e,n,e,c,d.className,t),jn(t)}}}function Ki(e,t){return al(e,t,"gutterClick",!0)}function ll(e,t){dt(e.display,t)||Hu(e,t)||Le(e,t,"contextmenu")||Ue||e.display.input.onContextMenu(t)}function Hu(e,t){return Ze(e,"gutterContextMenu")?al(e,t,"gutterContextMenu",!1):!1}function sl(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),kr(e)}var ur={toString:function(){return"CodeMirror.Init"}},ul={},En={};function Wu(e){var t=e.optionHandlers;function n(r,i,o,a){e.defaults[r]=i,o&&(t[r]=a?function(l,s,u){u!=ur&&o(l,s,u)}:o)}e.defineOption=n,e.Init=ur,n("value","",function(r,i){return r.setValue(i)},!0),n("mode",null,function(r,i){r.doc.modeOption=i,Ri(r)},!0),n("indentUnit",2,Ri,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,function(r){Rr(r),kr(r),He(r)},!0),n("lineSeparator",null,function(r,i){if(r.doc.lineSep=i,!!i){var o=[],a=r.doc.first;r.doc.iter(function(s){for(var u=0;;){var c=s.text.indexOf(i,u);if(c==-1)break;u=c+i.length,o.push(A(a,c))}a++});for(var l=o.length-1;l>=0;l--)or(r.doc,i,o[l],A(o[l].line,o[l].ch+i.length))}}),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(r,i,o){r.state.specialChars=new RegExp(i.source+(i.test(" ")?"":"| "),"g"),o!=ur&&r.refresh()}),n("specialCharPlaceholder",ds,function(r){return r.refresh()},!0),n("electricChars",!0),n("inputStyle",L?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),n("spellcheck",!1,function(r,i){return r.getInputField().spellcheck=i},!0),n("autocorrect",!1,function(r,i){return r.getInputField().autocorrect=i},!0),n("autocapitalize",!1,function(r,i){return r.getInputField().autocapitalize=i},!0),n("rtlMoveVisually",!Q),n("wholeLineUpdateBefore",!0),n("theme","default",function(r){sl(r),Dr(r)},!0),n("keyMap","default",function(r,i,o){var a=An(i),l=o!=ur&&An(o);l&&l.detach&&l.detach(r,a),a.attach&&a.attach(r,l||null)}),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Bu,!0),n("gutters",[],function(r,i){r.display.gutterSpecs=Ii(i,r.options.lineNumbers),Dr(r)},!0),n("fixedGutter",!0,function(r,i){r.display.gutters.style.left=i?xi(r.display)+"px":"0",r.refresh()},!0),n("coverGutterNextToScrollbar",!1,function(r){return tr(r)},!0),n("scrollbarStyle","native",function(r){ha(r),tr(r),r.display.scrollbars.setScrollTop(r.doc.scrollTop),r.display.scrollbars.setScrollLeft(r.doc.scrollLeft)},!0),n("lineNumbers",!1,function(r,i){r.display.gutterSpecs=Ii(r.options.gutters,i),Dr(r)},!0),n("firstLineNumber",1,Dr,!0),n("lineNumberFormatter",function(r){return r},Dr,!0),n("showCursorWhenSelecting",!1,Ar,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,function(r,i){i=="nocursor"&&($t(r),r.display.input.blur()),r.display.input.readOnlyChanged(i)}),n("screenReaderLabel",null,function(r,i){i=i===""?null:i,r.display.input.screenReaderLabelChanged(i)}),n("disableInput",!1,function(r,i){i||r.display.input.reset()},!0),n("dragDrop",!0,Mu),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,Ar,!0),n("singleCursorHeightPerLine",!0,Ar,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,Rr,!0),n("addModeClass",!1,Rr,!0),n("pollInterval",100),n("undoDepth",200,function(r,i){return r.doc.history.undoDepth=i}),n("historyEventDelay",1250),n("viewportMargin",10,function(r){return r.refresh()},!0),n("maxHighlightLength",1e4,Rr,!0),n("moveInputWithCursor",!0,function(r,i){i||r.display.input.resetPosition()}),n("tabindex",null,function(r,i){return r.display.input.getField().tabIndex=i||""}),n("autofocus",null),n("direction","ltr",function(r,i){return r.doc.setDirection(i)},!0),n("phrases",null)}function Mu(e,t,n){var r=n&&n!=ur;if(!t!=!r){var i=e.display.dragFunctions,o=t?q:Ke;o(e.display.scroller,"dragstart",i.start),o(e.display.scroller,"dragenter",i.enter),o(e.display.scroller,"dragover",i.over),o(e.display.scroller,"dragleave",i.leave),o(e.display.scroller,"drop",i.drop)}}function Bu(e){e.options.lineWrapping?(ut(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(xe(e.display.wrapper,"CodeMirror-wrap"),hi(e)),Li(e),He(e),kr(e),setTimeout(function(){return tr(e)},100)}function fe(e,t){var n=this;if(!(this instanceof fe))return new fe(e,t);this.options=t=t?Pt(t):{},Pt(ul,t,!1);var r=t.value;typeof r=="string"?r=new We(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new fe.inputStyles[t.inputStyle](this),o=this.display=new $s(e,r,i,t);o.wrapper.CodeMirror=this,sl(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),ha(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new yt,keySeq:null,specialChars:null},t.autofocus&&!L&&o.input.focus(),b&&_<11&&setTimeout(function(){return n.display.input.reset(!0)},20),zu(this),mu(),Mt(this),this.curOp.forceUpdate=!0,xa(this,r),t.autofocus&&!L||this.hasFocus()?setTimeout(function(){n.hasFocus()&&!n.state.focused&&Ti(n)},20):$t(this);for(var a in En)En.hasOwnProperty(a)&&En[a](this,t[a],ur);pa(this),t.finishInit&&t.finishInit(this);for(var l=0;l20*20}q(t.scroller,"touchstart",function(s){if(!Le(e,s)&&!o(s)&&!Ki(e,s)){t.input.ensurePolled(),clearTimeout(n);var u=+new Date;t.activeTouch={start:u,moved:!1,prev:u-r.end<=300?r:null},s.touches.length==1&&(t.activeTouch.left=s.touches[0].pageX,t.activeTouch.top=s.touches[0].pageY)}}),q(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),q(t.scroller,"touchend",function(s){var u=t.activeTouch;if(u&&!dt(t,s)&&u.left!=null&&!u.moved&&new Date-u.start<300){var c=e.coordsChar(t.activeTouch,"page"),d;!u.prev||a(u,u.prev)?d=new oe(c,c):!u.prev.prev||a(u,u.prev.prev)?d=e.findWordAt(c):d=new oe(A(c.line,0),ee(e.doc,A(c.line+1,0))),e.setSelection(d.anchor,d.head),e.focus(),Fe(s)}i()}),q(t.scroller,"touchcancel",i),q(t.scroller,"scroll",function(){t.scroller.clientHeight&&(Er(e,t.scroller.scrollTop),Ht(e,t.scroller.scrollLeft,!0),ve(e,"scroll",e))}),q(t.scroller,"mousewheel",function(s){return ya(e,s)}),q(t.scroller,"DOMMouseScroll",function(s){return ya(e,s)}),q(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(s){Le(e,s)||wr(s)},over:function(s){Le(e,s)||(yu(e,s),wr(s))},start:function(s){return gu(e,s)},drop:Se(e,vu),leave:function(s){Le(e,s)||Ka(e)}};var l=t.input.getField();q(l,"keyup",function(s){return rl.call(e,s)}),q(l,"keydown",Se(e,tl)),q(l,"keypress",Se(e,nl)),q(l,"focus",function(s){return Ti(e,s)}),q(l,"blur",function(s){return $t(e,s)})}var ji=[];fe.defineInitHook=function(e){return ji.push(e)};function Xr(e,t,n,r){var i=e.doc,o;n==null&&(n="add"),n=="smart"&&(i.mode.indent?o=Lr(e,t).state:n="prev");var a=e.options.tabSize,l=V(i,t),s=qe(l.text,null,a);l.stateAfter&&(l.stateAfter=null);var u=l.text.match(/^\s*/)[0],c;if(!r&&!/\S/.test(l.text))c=0,n="not";else if(n=="smart"&&(c=i.mode.indent(o,l.text.slice(u.length),l.text),c==Zr||c>150)){if(!r)return;n="prev"}n=="prev"?t>i.first?c=qe(V(i,t-1).text,null,a):c=0:n=="add"?c=s+e.options.indentUnit:n=="subtract"?c=s-e.options.indentUnit:typeof n=="number"&&(c=s+n),c=Math.max(0,c);var d="",g=0;if(e.options.indentWithTabs)for(var p=Math.floor(c/a);p;--p)g+=a,d+=" ";if(ga,s=Zn(t),u=null;if(l&&r.ranges.length>1)if(tt&&tt.text.join(` `)==t){if(r.ranges.length%tt.text.length==0){u=[];for(var c=0;c=0;g--){var p=r.ranges[g],m=p.from(),C=p.to();p.empty()&&(n&&n>0?m=A(m.line,m.ch-n):e.state.overwrite&&!l?C=A(C.line,Math.min(V(o,C.line).text.length,C.ch+ae(s).length)):l&&tt&&tt.lineWise&&tt.text.join(` `)==s.join(` `)&&(m=C=A(m.line,0)));var E={from:m,to:C,text:u?u[g%u.length]:s,origin:i||(l?"paste":e.state.cutIncoming>a?"cut":"+input")};ir(e.doc,E),Ce(e,"inputRead",e,E)}t&&!l&&hl(e,t),er(e),e.curOp.updateInput<2&&(e.curOp.updateInput=d),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function fl(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&t.hasFocus()&&Ve(t,function(){return Yi(t,n,0,null,"paste")}),!0}function hl(e,t){if(!(!e.options.electricChars||!e.options.smartIndent))for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var l=0;l-1){a=Xr(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(V(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Xr(e,i.head.line,"smart"));a&&Ce(e,"electricInput",e,i.head.line)}}}function cl(e){for(var t=[],n=[],r=0;ro&&(Xr(this,l.head.line,r,!0),o=l.head.line,a==this.doc.sel.primIndex&&er(this));else{var s=l.from(),u=l.to(),c=Math.max(o,s.line);o=Math.min(this.lastLine(),u.line-(u.ch?0:1))+1;for(var d=c;d0&&Mi(this.doc,a,new oe(s,g[a].to()),rt)}}}),getTokenAt:function(r,i){return Co(this,r,i)},getLineTokens:function(r,i){return Co(this,A(r),i,!0)},getTokenTypeAt:function(r){r=ee(this.doc,r);var i=wo(this,V(this.doc,r.line)),o=0,a=(i.length-1)/2,l=r.ch,s;if(l==0)s=i[2];else for(;;){var u=o+a>>1;if((u?i[u*2-1]:0)>=l)a=u;else if(i[u*2+1]s&&(r=s,a=!0),l=V(this.doc,r)}else l=r;return cn(this,l,{top:0,left:0},i||"page",o||a).top+(a?this.doc.height-ct(l):0)},defaultTextHeight:function(){return Jt(this.display)},defaultCharWidth:function(){return Qt(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(r,i,o,a,l){var s=this.display;r=$e(this,ee(this.doc,r));var u=r.bottom,c=r.left;if(i.style.position="absolute",i.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(i),s.sizer.appendChild(i),a=="over")u=r.top;else if(a=="above"||a=="near"){var d=Math.max(s.wrapper.clientHeight,this.doc.height),g=Math.max(s.sizer.clientWidth,s.lineSpace.clientWidth);(a=="above"||r.bottom+i.offsetHeight>d)&&r.top>i.offsetHeight?u=r.top-i.offsetHeight:r.bottom+i.offsetHeight<=d&&(u=r.bottom),c+i.offsetWidth>g&&(c=g-i.offsetWidth)}i.style.top=u+"px",i.style.left=i.style.right="",l=="right"?(c=s.sizer.clientWidth-i.offsetWidth,i.style.right="0px"):(l=="left"?c=0:l=="middle"&&(c=(s.sizer.clientWidth-i.offsetWidth)/2),i.style.left=c+"px"),o&&Ms(this,{left:c,top:u,right:c+i.offsetWidth,bottom:u+i.offsetHeight})},triggerOnKeyDown:Ne(tl),triggerOnKeyPress:Ne(nl),triggerOnKeyUp:rl,triggerOnMouseDown:Ne(il),execCommand:function(r){if(Ur.hasOwnProperty(r))return Ur[r].call(null,this)},triggerElectric:Ne(function(r){hl(this,r)}),findPosH:function(r,i,o,a){var l=1;i<0&&(l=-1,i=-i);for(var s=ee(this.doc,r),u=0;u0&&c(o.charAt(a-1));)--a;for(;l.5||this.options.lineWrapping)&&Li(this),ve(this,"refresh",this)}),swapDoc:Ne(function(r){var i=this.doc;return i.cm=null,this.state.selectingText&&this.state.selectingText(),xa(this,r),kr(this),this.display.input.reset(),Pr(this,r.scrollLeft,r.scrollTop),this.curOp.forceScroll=!0,Ce(this,"swapDoc",this,i),i}),phrase:function(r){var i=this.options.phrases;return i&&Object.prototype.hasOwnProperty.call(i,r)?i[r]:r},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Kt(e),e.registerHelper=function(r,i,o){n.hasOwnProperty(r)||(n[r]=e[r]={_global:[]}),n[r][i]=o},e.registerGlobalHelper=function(r,i,o,a){e.registerHelper(r,i,a),n[r]._global.push({pred:o,val:a})}}function qi(e,t,n,r,i){var o=t,a=n,l=V(e,t.line),s=i&&e.direction=="rtl"?-n:n;function u(){var H=t.line+s;return H=e.first+e.size?!1:(t=new A(H,t.ch,t.sticky),l=V(e,H))}function c(H){var D;if(r=="codepoint"){var M=l.text.charCodeAt(t.ch+(n>0?0:-1));if(isNaN(M))D=null;else{var Y=n>0?M>=55296&&M<56320:M>=56320&&M<57343;D=new A(t.line,Math.max(0,Math.min(l.text.length,t.ch+n*(Y?2:1))),-n)}}else i?D=Cu(e.cm,l,t,n):D=zi(l,t,n);if(D==null)if(!H&&u())t=Vi(i,e.cm,l,t.line,s);else return!1;else t=D;return!0}if(r=="char"||r=="codepoint")c();else if(r=="column")c(!0);else if(r=="word"||r=="group")for(var d=null,g=r=="group",p=e.cm&&e.cm.getHelper(t,"wordChars"),m=!0;!(n<0&&!c(!m));m=!1){var C=l.text.charAt(t.ch)||` `,E=$r(C,p)?"w":g&&C==` `?"n":!g||/\s/.test(C)?null:"p";if(g&&!m&&!E&&(E="s"),d&&d!=E){n<0&&(n=1,c(),t.sticky="after");break}if(E&&(d=E),n>0&&!c(!m))break}var I=_n(e,t,o,a,!0);return ni(o,I)&&(I.hitSide=!0),I}function pl(e,t,n,r){var i=e.doc,o=t.left,a;if(r=="page"){var l=Math.min(e.display.wrapper.clientHeight,qr(e).innerHeight||i(e).documentElement.clientHeight),s=Math.max(l-.5*Jt(e.display),3);a=(n>0?t.bottom:t.top)+n*s}else r=="line"&&(a=n>0?t.bottom+3:t.top-3);for(var u;u=mi(e,o,a),!!u.outside;){if(n<0?a<=0:a>=i.height){u.hitSide=!0;break}a+=n*5}return u}var se=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new yt,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};se.prototype.init=function(e){var t=this,n=this,r=n.cm,i=n.div=e.lineDiv;i.contentEditable=!0,Xi(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize);function o(l){for(var s=l.target;s;s=s.parentNode){if(s==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(s.className))break}return!1}q(i,"paste",function(l){!o(l)||Le(r,l)||fl(l,r)||_<=11&&setTimeout(Se(r,function(){return t.updateFromDOM()}),20)}),q(i,"compositionstart",function(l){t.composing={data:l.data,done:!1}}),q(i,"compositionupdate",function(l){t.composing||(t.composing={data:l.data,done:!1})}),q(i,"compositionend",function(l){t.composing&&(l.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),q(i,"touchstart",function(){return n.forceCompositionEnd()}),q(i,"input",function(){t.composing||t.readFromDOMSoon()});function a(l){if(!(!o(l)||Le(r,l))){if(r.somethingSelected())On({lineWise:!1,text:r.getSelections()}),l.type=="cut"&&r.replaceSelection("",null,"cut");else if(r.options.lineWiseCopyCut){var s=cl(r);On({lineWise:!0,text:s.text}),l.type=="cut"&&r.operation(function(){r.setSelections(s.ranges,0,rt),r.replaceSelection("",null,"cut")})}else return;if(l.clipboardData){l.clipboardData.clearData();var u=tt.text.join(` `);if(l.clipboardData.setData("Text",u),l.clipboardData.getData("Text")==u){l.preventDefault();return}}var c=dl(),d=c.firstChild;Xi(d),r.display.lineSpace.insertBefore(c,r.display.lineSpace.firstChild),d.value=tt.text.join(` `);var g=Re(At(i));pr(d),setTimeout(function(){r.display.lineSpace.removeChild(c),g.focus(),g==i&&n.showPrimarySelection()},50)}}q(i,"copy",a),q(i,"cut",a)},se.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},se.prototype.prepareSelection=function(){var e=ia(this.cm,!1);return e.focus=Re(At(this.div))==this.div,e},se.prototype.showSelection=function(e,t){!e||!this.cm.display.view.length||((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},se.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},se.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,n=t.doc.sel.primary(),r=n.from(),i=n.to();if(t.display.viewTo==t.display.viewFrom||r.line>=t.display.viewTo||i.line=t.display.viewFrom&&vl(t,r)||{node:l[0].measure.map[2],offset:0},u=i.linee.firstLine()&&(r=A(r.line-1,V(e.doc,r.line-1).length)),i.ch==V(e.doc,i.line).text.length&&i.linet.viewTo-1)return!1;var o,a,l;r.line==t.viewFrom||(o=Ft(e,r.line))==0?(a=le(t.view[0].line),l=t.view[0].node):(a=le(t.view[o].line),l=t.view[o-1].node.nextSibling);var s=Ft(e,i.line),u,c;if(s==t.view.length-1?(u=t.viewTo-1,c=t.lineDiv.lastChild):(u=le(t.view[s+1].line)-1,c=t.view[s+1].node.previousSibling),!l)return!1;for(var d=e.doc.splitLines(Uu(e,l,c,a,u)),g=Ot(e.doc,A(a,0),A(u,V(e.doc,u).text.length));d.length>1&&g.length>1;)if(ae(d)==ae(g))d.pop(),g.pop(),u--;else if(d[0]==g[0])d.shift(),g.shift(),a++;else break;for(var p=0,m=0,C=d[0],E=g[0],I=Math.min(C.length,E.length);pr.ch&&H.charCodeAt(H.length-m-1)==D.charCodeAt(D.length-m-1);)p--,m++;d[d.length-1]=H.slice(0,H.length-m).replace(/^\u200b+/,""),d[0]=d[0].slice(p).replace(/\u200b+$/,"");var Y=A(a,p),G=A(u,g.length?ae(g).length-m:0);if(d.length>1||d[0]||$(Y,G))return or(e.doc,d,Y,G,"+input"),!0},se.prototype.ensurePolled=function(){this.forceCompositionEnd()},se.prototype.reset=function(){this.forceCompositionEnd()},se.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},se.prototype.readFromDOMSoon=function(){var e=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80))},se.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Ve(this.cm,function(){return He(e.cm)})},se.prototype.setUneditable=function(e){e.contentEditable="false"},se.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Se(this.cm,Yi)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},se.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},se.prototype.onContextMenu=function(){},se.prototype.resetPosition=function(){},se.prototype.needsContentAttribute=!0;function vl(e,t){var n=vi(e,t.line);if(!n||n.hidden)return null;var r=V(e.doc,t.line),i=Uo(n,r,t.line),o=ft(r,e.doc.direction),a="left";if(o){var l=br(o,t.ch);a=l%2?"right":"left"}var s=Yo(i.map,t.ch,a);return s.offset=s.collapse=="right"?s.end:s.start,s}function Gu(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function fr(e,t){return t&&(e.bad=!0),e}function Uu(e,t,n,r,i){var o="",a=!1,l=e.doc.lineSeparator(),s=!1;function u(p){return function(m){return m.id==p}}function c(){a&&(o+=l,s&&(o+=l),a=s=!1)}function d(p){p&&(c(),o+=p)}function g(p){if(p.nodeType==1){var m=p.getAttribute("cm-text");if(m){d(m);return}var C=p.getAttribute("cm-marker"),E;if(C){var I=e.findMarks(A(r,0),A(i+1,0),u(+C));I.length&&(E=I[0].find(0))&&d(Ot(e.doc,E.from,E.to).join(l));return}if(p.getAttribute("contenteditable")=="false")return;var H=/^(pre|div|p|li|table|br)$/i.test(p.nodeName);if(!/^br$/i.test(p.nodeName)&&p.textContent.length==0)return;H&&c();for(var D=0;D=9&&t.hasSelection&&(t.hasSelection=null),n.poll()}),q(i,"paste",function(a){Le(r,a)||fl(a,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())});function o(a){if(!Le(r,a)){if(r.somethingSelected())On({lineWise:!1,text:r.getSelections()});else if(r.options.lineWiseCopyCut){var l=cl(r);On({lineWise:!0,text:l.text}),a.type=="cut"?r.setSelections(l.ranges,null,rt):(n.prevInput="",i.value=l.text.join(` `),pr(i))}else return;a.type=="cut"&&(r.state.cutIncoming=+new Date)}}q(i,"cut",o),q(i,"copy",o),q(e.scroller,"paste",function(a){if(!(dt(e,a)||Le(r,a))){if(!i.dispatchEvent){r.state.pasteIncoming=+new Date,n.focus();return}var l=new Event("paste");l.clipboardData=a.clipboardData,i.dispatchEvent(l)}}),q(e.lineSpace,"selectstart",function(a){dt(e,a)||Fe(a)}),q(i,"compositionstart",function(){var a=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:a,range:r.markText(a,r.getCursor("to"),{className:"CodeMirror-composing"})}}),q(i,"compositionend",function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)})},de.prototype.createField=function(e){this.wrapper=dl(),this.textarea=this.wrapper.firstChild;var t=this.cm.options;Xi(this.textarea,t.spellcheck,t.autocorrect,t.autocapitalize)},de.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},de.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=ia(e);if(e.options.moveInputWithCursor){var i=$e(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},de.prototype.showSelection=function(e){var t=this.cm,n=t.display;be(n.cursorDiv,e.cursors),be(n.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},de.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var t=this.cm;if(this.resetting=!0,t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&pr(this.textarea),b&&_>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",b&&_>=9&&(this.hasSelection=null));this.resetting=!1}},de.prototype.getField=function(){return this.textarea},de.prototype.supportsTouch=function(){return!1},de.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!L||Re(At(this.textarea))!=this.textarea))try{this.textarea.focus()}catch(e){}},de.prototype.blur=function(){this.textarea.blur()},de.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},de.prototype.receivedFocus=function(){this.slowPoll()},de.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},de.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0;function n(){var r=t.poll();!r&&!e?(e=!0,t.polling.set(60,n)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,n)},de.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||Ul(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(b&&_>=9&&this.hasSelection===i||P&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(o==8203&&!r&&(r="​"),o==8666)return this.reset(),this.cm.execCommand("undo")}for(var a=0,l=Math.min(r.length,i.length);a1e3||i.indexOf(` `)>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},de.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},de.prototype.onKeyPress=function(){b&&_>=9&&(this.hasSelection=null),this.fastPoll()},de.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=Rt(n,e),a=r.scroller.scrollTop;if(!o||J)return;var l=n.options.resetSelectionOnContextMenu;l&&n.doc.sel.contains(o)==-1&&Se(n,Ee)(n.doc,xt(o),rt);var s=i.style.cssText,u=t.wrapper.style.cssText,c=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",i.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(e.clientY-c.top-5)+"px; left: "+(e.clientX-c.left-5)+`px; z-index: 1000; background: `+(b?"rgba(255, 255, 255, .05)":"transparent")+`; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var d;R&&(d=i.ownerDocument.defaultView.scrollY),r.input.focus(),R&&i.ownerDocument.defaultView.scrollTo(null,d),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=p,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll);function g(){if(i.selectionStart!=null){var C=n.somethingSelected(),E="​"+(C?i.value:"");i.value="⇚",i.value=E,t.prevInput=C?"":"​",i.selectionStart=1,i.selectionEnd=E.length,r.selForContextMenu=n.doc.sel}}function p(){if(t.contextMenuPending==p&&(t.contextMenuPending=!1,t.wrapper.style.cssText=u,i.style.cssText=s,b&&_<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=a),i.selectionStart!=null)){(!b||b&&_<9)&&g();var C=0,E=function(){r.selForContextMenu==n.doc.sel&&i.selectionStart==0&&i.selectionEnd>0&&t.prevInput=="​"?Se(n,Da)(n):C++<10?r.detectingSelectAll=setTimeout(E,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(E,200)}}if(b&&_>=9&&g(),Ue){wr(e);var m=function(){Ke(window,"mouseup",m),setTimeout(p,20)};q(window,"mouseup",m)}else setTimeout(p,50)},de.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},de.prototype.setUneditable=function(){},de.prototype.needsContentAttribute=!1;function ju(e,t){if(t=t?Pt(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var n=Re(At(e));t.autofocus=n==e||e.getAttribute("autofocus")!=null&&n==document.body}function r(){e.value=l.getValue()}var i;if(e.form&&(q(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var a=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=a}}catch(s){}}t.finishInit=function(s){s.save=r,s.getTextArea=function(){return e},s.toTextArea=function(){s.toTextArea=isNaN,r(),e.parentNode.removeChild(s.getWrapperElement()),e.style.display="",e.form&&(Ke(e.form,"submit",r),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=i))}},e.style.display="none";var l=fe(function(s){return e.parentNode.insertBefore(s,e.nextSibling)},t);return l}function Yu(e){e.off=Ke,e.on=q,e.wheelEventPixels=eu,e.Doc=We,e.splitLines=Zn,e.countColumn=qe,e.findColumn=zn,e.isWordChar=Gn,e.Pass=Zr,e.signal=ve,e.Line=Xt,e.changeEnd=Lt,e.scrollbarModel=fa,e.Pos=A,e.cmpPos=$,e.modes=Qn,e.mimeModes=jt,e.resolveMode=en,e.getMode=$n,e.modeExtensions=Yt,e.extendMode=ql,e.copyState=Et,e.startState=go,e.innerMode=ei,e.commands=Ur,e.keyMap=vt,e.keyName=Za,e.isModifierKey=Xa,e.lookupKey=lr,e.normalizeKeyMap=Lu,e.StringStream=ge,e.SharedTextMarker=zr,e.TextMarker=St,e.LineWidget=Br,e.e_preventDefault=Fe,e.e_stopPropagation=po,e.e_stop=wr,e.addClass=ut,e.contains=Xe,e.rmClass=xe,e.keyNames=_t}Wu(fe),Vu(fe);var Xu="iter insert remove copy getEditor constructor".split(" ");for(var In in We.prototype)We.prototype.hasOwnProperty(In)&&Pe(Xu,In)<0&&(fe.prototype[In]=function(e){return function(){return e.apply(this.doc,arguments)}}(We.prototype[In]));return Kt(We),fe.inputStyles={textarea:de,contenteditable:se},fe.defineMode=function(e){!fe.defaults.mode&&e!="null"&&(fe.defaults.mode=e),Yl.apply(this,arguments)},fe.defineMIME=Xl,fe.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),fe.defineMIME("text/plain","null"),fe.defineExtension=function(e,t){fe.prototype[e]=t},fe.defineDocExtension=function(e,t){We.prototype[e]=t},fe.fromTextArea=ju,Yu(fe),fe.version="5.65.16",fe})}($i)),$i.exports}var hf=kt();const cf=tf(hf);var dr=(h=>(h.JSON="application/json",h.APL="apl",h.ASCIIARMOR="asciiarmor",h.ASTERISK="asterisk",h.BRAINFUCK="brainfuck",h.CLIKE="clike",h.CLOJURE="clojure",h.CMAKE="cmake",h.COBOL="cobol",h.COFFEESCRIPT="coffeescript",h.COMMONLISP="commonlisp",h.CRYSTAL="crystal",h.CSS="css",h.CYPHER="cypher",h.D="d",h.DART="dart",h.DIFF="diff",h.DJANGO="django",h.DOCKERFILE="dockerfile",h.DTD="dtd",h.DYLAN="dylan",h.EBNF="ebnf",h.ECL="ecl",h.EIFFEL="eiffel",h.ELM="elm",h.ERLANG="erlang",h.FACTOR="factor",h.FCL="fcl",h.FORTH="forth",h.FORTRAN="fortran",h.GAS="gas",h.GFM="gfm",h.GHERKIN="gherkin",h.GO="go",h.GROOVY="groovy",h.HAML="haml",h.HANDLEBARS="handlebars",h.HASKELL="haskell",h.HAXE="haxe",h.HTMLEMBEDDED="htmlembedded",h.HTMLMIXED="htmlmixed",h.HTTP="http",h.IDL="idl",h.JAVASCRIPT="javascript",h.JINJA2="jinja2",h.JSX="jsx",h.JULIA="julia",h.LIVESCRIPT="livescript",h.LUA="lua",h.MARKDOWN="markdown",h.MATHEMATICA="mathematica",h.MBOX="mbox",h.MIRC="mirc",h.MLLIKE="mllike",h.MODELICA="modelica",h.MSCGEN="mscgen",h.MUMPS="mumps",h.NGINX="nginx",h.NSIS="nsis",h.NTRIPLES="ntriples",h.OCTAVE="octave",h.OZ="oz",h.PASCAL="pascal",h.PEGJS="pegjs",h.PERL="perl",h.PHP="php",h.PIG="pig",h.POWERSHELL="powershell",h.PROPERTIES="properties",h.PROTOBUF="protobuf",h.PUG="pug",h.PUPPET="puppet",h.PYTHON="python",h.Q="q",h.R="r",h.RPM="rpm",h.RST="rst",h.RUBY="ruby",h.RUST="rust",h.SAS="sas",h.SASS="sass",h.SCHEME="scheme",h.SHELL="shell",h.SIEVE="sieve",h.SLIM="slim",h.SMALLTALK="smalltalk",h.SMARTY="smarty",h.SOLR="solr",h.SOY="soy",h.SPARQL="sparql",h.SPREADSHEET="spreadsheet",h.SQL="sql",h.STEX="stex",h.STYLUS="stylus",h.SWIFT="swift",h.TCL="tcl",h.TEXTILE="textile",h.TIDDLYWIKI="tiddlywiki",h.TIKI="tiki",h.TOML="toml",h.TORNADO="tornado",h.TROFF="troff",h.TTCN="ttcn",h.TURTLE="turtle",h.TWIG="twig",h.VB="vb",h.VBSCRIPT="vbscript",h.VELOCITY="velocity",h.VERILOG="verilog",h.VHDL="vhdl",h.VUE="vue",h.WAST="wast",h.WEBIDL="webidl",h.XML="xml",h.XQUERY="xquery",h.YACAS="yacas",h.YAML="yaml",h.Z80="z80",h))(dr||{});function df(h){return{"application/json":()=>x(this,null,function*(){return yield S(()=>import("./javascript-C0runXw9.js").then(f=>f.j),__vite__mapDeps([0,1,2]))}),apl:()=>x(this,null,function*(){return yield S(()=>import("./apl-zLfE5rQP.js").then(f=>f.a),__vite__mapDeps([3,1,2]))}),asciiarmor:()=>x(this,null,function*(){return yield S(()=>import("./asciiarmor-Do-7xkZ0.js").then(f=>f.a),__vite__mapDeps([4,1,2]))}),asterisk:()=>x(this,null,function*(){return yield S(()=>import("./asterisk-Dl6-Cx_L.js").then(f=>f.a),__vite__mapDeps([5,1,2]))}),brainfuck:()=>x(this,null,function*(){return yield S(()=>import("./brainfuck-DVgfREw_.js").then(f=>f.b),__vite__mapDeps([6,1,2]))}),clike:()=>x(this,null,function*(){return yield S(()=>import("./clike-CbqrjqIp.js").then(f=>f.c),__vite__mapDeps([7,1,2]))}),clojure:()=>x(this,null,function*(){return yield S(()=>import("./clojure-B7BO6eTf.js").then(f=>f.c),__vite__mapDeps([8,1,2]))}),cmake:()=>x(this,null,function*(){return yield S(()=>import("./cmake-CksKCwmd.js").then(f=>f.c),__vite__mapDeps([9,1,2]))}),cobol:()=>x(this,null,function*(){return yield S(()=>import("./cobol-BagBmwKo.js").then(f=>f.c),__vite__mapDeps([10,1,2]))}),coffeescript:()=>x(this,null,function*(){return yield S(()=>import("./coffeescript-fFmhlGnR.js").then(f=>f.c),__vite__mapDeps([11,1,2]))}),commonlisp:()=>x(this,null,function*(){return yield S(()=>import("./commonlisp-Dt9YBdGp.js").then(f=>f.c),__vite__mapDeps([12,1,2]))}),crystal:()=>x(this,null,function*(){return yield S(()=>import("./crystal-C_YQTvkC.js").then(f=>f.c),__vite__mapDeps([13,1,2]))}),css:()=>x(this,null,function*(){return yield S(()=>import("./css-_7XECuso.js").then(f=>f.c),__vite__mapDeps([14,1,2]))}),cypher:()=>x(this,null,function*(){return yield S(()=>import("./cypher-ClLSXDoB.js").then(f=>f.c),__vite__mapDeps([15,1,2]))}),d:()=>x(this,null,function*(){return yield S(()=>import("./d-DdB_Nypc.js").then(f=>f.d),__vite__mapDeps([16,1,2]))}),dart:()=>x(this,null,function*(){return yield S(()=>import("./dart-NqTr4gQb.js").then(f=>f.d),__vite__mapDeps([17,1,2,7]))}),diff:()=>x(this,null,function*(){return yield S(()=>import("./diff-DP8cpWw3.js").then(f=>f.d),__vite__mapDeps([18,1,2]))}),django:()=>x(this,null,function*(){return yield S(()=>import("./django-Cr0ySjV7.js").then(f=>f.d),__vite__mapDeps([19,1,2,20,21,0,14,22]))}),dockerfile:()=>x(this,null,function*(){return yield S(()=>import("./dockerfile-c7yS_1k1.js").then(f=>f.d),__vite__mapDeps([23,1,2,24]))}),dtd:()=>x(this,null,function*(){return yield S(()=>import("./dtd-BoJNBv-L.js").then(f=>f.d),__vite__mapDeps([25,1,2]))}),dylan:()=>x(this,null,function*(){return yield S(()=>import("./dylan-glqjD8lh.js").then(f=>f.d),__vite__mapDeps([26,1,2]))}),ebnf:()=>x(this,null,function*(){return yield S(()=>import("./ebnf-B69swxbP.js").then(f=>f.e),__vite__mapDeps([27,1,2]))}),ecl:()=>x(this,null,function*(){return yield S(()=>import("./ecl-BcquUJs9.js").then(f=>f.e),__vite__mapDeps([28,1,2]))}),eiffel:()=>x(this,null,function*(){return yield S(()=>import("./eiffel-BW6UbfQv.js").then(f=>f.e),__vite__mapDeps([29,1,2]))}),elm:()=>x(this,null,function*(){return yield S(()=>import("./elm-BXgy4upO.js").then(f=>f.e),__vite__mapDeps([30,1,2]))}),erlang:()=>x(this,null,function*(){return yield S(()=>import("./erlang-CoWJ_jdP.js").then(f=>f.e),__vite__mapDeps([31,1,2]))}),factor:()=>x(this,null,function*(){return yield S(()=>import("./factor-CvscPoNe.js").then(f=>f.f),__vite__mapDeps([32,1,2,24]))}),fcl:()=>x(this,null,function*(){return yield S(()=>import("./fcl-w30Bp-6o.js").then(f=>f.f),__vite__mapDeps([33,1,2]))}),forth:()=>x(this,null,function*(){return yield S(()=>import("./forth-BRGZgJzZ.js").then(f=>f.f),__vite__mapDeps([34,1,2]))}),fortran:()=>x(this,null,function*(){return yield S(()=>import("./fortran-BWfrboS0.js").then(f=>f.f),__vite__mapDeps([35,1,2]))}),gas:()=>x(this,null,function*(){return yield S(()=>import("./gas-BAwmoLl4.js").then(f=>f.g),__vite__mapDeps([36,1,2]))}),gfm:()=>x(this,null,function*(){return yield S(()=>import("./gfm-zED9mVpT.js").then(f=>f.g),__vite__mapDeps([37,1,2,38,21,22]))}),gherkin:()=>x(this,null,function*(){return yield S(()=>import("./gherkin-CSTxET5C.js").then(f=>f.g),__vite__mapDeps([39,1,2]))}),go:()=>x(this,null,function*(){return yield S(()=>import("./go-BDFk3iT5.js").then(f=>f.g),__vite__mapDeps([40,1,2]))}),groovy:()=>x(this,null,function*(){return yield S(()=>import("./groovy-BoGByj99.js").then(f=>f.g),__vite__mapDeps([41,1,2]))}),haml:()=>x(this,null,function*(){return yield S(()=>import("./haml-mAoz9Cg_.js").then(f=>f.h),__vite__mapDeps([42,1,2,20,21,0,14,43]))}),handlebars:()=>x(this,null,function*(){return yield S(()=>import("./handlebars-tIlZKpI9.js").then(f=>f.h),__vite__mapDeps([44,1,2,24,45]))}),haskell:()=>x(this,null,function*(){return yield S(()=>import("./haskell-CaA0e7fj.js").then(f=>f.h),__vite__mapDeps([46,1,2]))}),haxe:()=>x(this,null,function*(){return yield S(()=>import("./haxe-Bw9cDHlO.js").then(f=>f.h),__vite__mapDeps([47,1,2]))}),htmlembedded:()=>x(this,null,function*(){return yield S(()=>import("./htmlembedded-Ckszlea-.js").then(f=>f.h),__vite__mapDeps([48,1,2,20,21,0,14,45]))}),htmlmixed:()=>x(this,null,function*(){return yield S(()=>import("./htmlmixed-S48eAt07.js").then(f=>f.h),__vite__mapDeps([49,1,2,20,21,0,14]))}),http:()=>x(this,null,function*(){return yield S(()=>import("./http-B511s2ir.js").then(f=>f.h),__vite__mapDeps([50,1,2]))}),idl:()=>x(this,null,function*(){return yield S(()=>import("./idl-DZadFF97.js").then(f=>f.i),__vite__mapDeps([51,1,2]))}),javascript:()=>x(this,null,function*(){return yield S(()=>import("./javascript-C0runXw9.js").then(f=>f.j),__vite__mapDeps([0,1,2]))}),jinja2:()=>x(this,null,function*(){return yield S(()=>import("./jinja2-DgZuyF-4.js").then(f=>f.j),__vite__mapDeps([52,1,2]))}),jsx:()=>x(this,null,function*(){return yield S(()=>import("./jsx-B4bOLTGX.js").then(f=>f.j),__vite__mapDeps([53,1,2,21,0]))}),julia:()=>x(this,null,function*(){return yield S(()=>import("./julia-DMwb9N1P.js").then(f=>f.j),__vite__mapDeps([54,1,2]))}),livescript:()=>x(this,null,function*(){return yield S(()=>import("./livescript-DRBVSWtJ.js").then(f=>f.l),__vite__mapDeps([55,1,2]))}),lua:()=>x(this,null,function*(){return yield S(()=>import("./lua-DF6LKH9h.js").then(f=>f.l),__vite__mapDeps([56,1,2]))}),markdown:()=>x(this,null,function*(){return yield S(()=>import("./markdown-BUyyni4w.js").then(f=>f.m),__vite__mapDeps([57,1,2,38,21]))}),mathematica:()=>x(this,null,function*(){return yield S(()=>import("./mathematica-BN67McW3.js").then(f=>f.m),__vite__mapDeps([58,1,2]))}),mbox:()=>x(this,null,function*(){return yield S(()=>import("./mbox-TtGKsB4G.js").then(f=>f.m),__vite__mapDeps([59,1,2]))}),mirc:()=>x(this,null,function*(){return yield S(()=>import("./mirc-Do6SGHsb.js").then(f=>f.m),__vite__mapDeps([60,1,2]))}),mllike:()=>x(this,null,function*(){return yield S(()=>import("./mllike-C4sux_AD.js").then(f=>f.m),__vite__mapDeps([61,1,2]))}),modelica:()=>x(this,null,function*(){return yield S(()=>import("./modelica-WdF900bX.js").then(f=>f.m),__vite__mapDeps([62,1,2]))}),mscgen:()=>x(this,null,function*(){return yield S(()=>import("./mscgen-FXpyAEp1.js").then(f=>f.m),__vite__mapDeps([63,1,2]))}),mumps:()=>x(this,null,function*(){return yield S(()=>import("./mumps-CYDAote_.js").then(f=>f.m),__vite__mapDeps([64,1,2]))}),nginx:()=>x(this,null,function*(){return yield S(()=>import("./nginx-8EWYo5aN.js").then(f=>f.n),__vite__mapDeps([65,1,2]))}),nsis:()=>x(this,null,function*(){return yield S(()=>import("./nsis-V-nh5FnW.js").then(f=>f.n),__vite__mapDeps([66,1,2,24]))}),ntriples:()=>x(this,null,function*(){return yield S(()=>import("./ntriples-Bf6qR5Vj.js").then(f=>f.n),__vite__mapDeps([67,1,2]))}),octave:()=>x(this,null,function*(){return yield S(()=>import("./octave-0TxgvgfU.js").then(f=>f.o),__vite__mapDeps([68,1,2]))}),oz:()=>x(this,null,function*(){return yield S(()=>import("./oz-YKjkJu7g.js").then(f=>f.o),__vite__mapDeps([69,1,2]))}),pascal:()=>x(this,null,function*(){return yield S(()=>import("./pascal-Cjts3mlK.js").then(f=>f.p),__vite__mapDeps([70,1,2]))}),pegjs:()=>x(this,null,function*(){return yield S(()=>import("./pegjs-r3zISsBk.js").then(f=>f.p),__vite__mapDeps([71,1,2,0]))}),perl:()=>x(this,null,function*(){return yield S(()=>import("./perl-B1do5Zj5.js").then(f=>f.p),__vite__mapDeps([72,1,2]))}),php:()=>x(this,null,function*(){return yield S(()=>import("./php-BjMv37q4.js").then(f=>f.p),__vite__mapDeps([73,1,2,20,21,0,14,7]))}),pig:()=>x(this,null,function*(){return yield S(()=>import("./pig-UrTc6X8Q.js").then(f=>f.p),__vite__mapDeps([74,1,2]))}),powershell:()=>x(this,null,function*(){return yield S(()=>import("./powershell-XydHAPqy.js").then(f=>f.p),__vite__mapDeps([75,1,2]))}),properties:()=>x(this,null,function*(){return yield S(()=>import("./properties-Czp0CTK7.js").then(f=>f.p),__vite__mapDeps([76,1,2]))}),protobuf:()=>x(this,null,function*(){return yield S(()=>import("./protobuf-BA_h8Wlf.js").then(f=>f.p),__vite__mapDeps([77,1,2]))}),pug:()=>x(this,null,function*(){return yield S(()=>import("./pug-DjiMg7mW.js").then(f=>f.p),__vite__mapDeps([78,1,2,0,14,20,21]))}),puppet:()=>x(this,null,function*(){return yield S(()=>import("./puppet-DYDSY7Dj.js").then(f=>f.p),__vite__mapDeps([79,1,2]))}),python:()=>x(this,null,function*(){return yield S(()=>import("./python-C1X48StL.js").then(f=>f.p),__vite__mapDeps([80,1,2]))}),q:()=>x(this,null,function*(){return yield S(()=>import("./q-CuOwICRo.js").then(f=>f.q),__vite__mapDeps([81,1,2]))}),r:()=>x(this,null,function*(){return yield S(()=>import("./r-BU6hSvk5.js").then(f=>f.r),__vite__mapDeps([82,1,2]))}),rpm:()=>x(this,null,function*(){return yield S(()=>import("./rpm-BztRzSX7.js").then(f=>f.r),__vite__mapDeps([83,1,2]))}),rst:()=>x(this,null,function*(){return yield S(()=>import("./rst-CKbfDNrD.js").then(f=>f.r),__vite__mapDeps([84,1,2,80,85,22]))}),ruby:()=>x(this,null,function*(){return yield S(()=>import("./ruby-mqj0y2bQ.js").then(f=>f.r),__vite__mapDeps([86,1,2,43]))}),rust:()=>x(this,null,function*(){return yield S(()=>import("./rust-zgJDuv0h.js").then(f=>f.r),__vite__mapDeps([87,1,2,24]))}),sas:()=>x(this,null,function*(){return yield S(()=>import("./sas-CEyk9sX1.js").then(f=>f.s),__vite__mapDeps([88,1,2]))}),sass:()=>x(this,null,function*(){return yield S(()=>import("./sass-B9irdM0E.js").then(f=>f.s),__vite__mapDeps([89,1,2,14]))}),scheme:()=>x(this,null,function*(){return yield S(()=>import("./scheme-x6TdpmVC.js").then(f=>f.s),__vite__mapDeps([90,1,2]))}),shell:()=>x(this,null,function*(){return yield S(()=>import("./shell-YD6A_fFc.js").then(f=>f.s),__vite__mapDeps([91,1,2]))}),sieve:()=>x(this,null,function*(){return yield S(()=>import("./sieve-C5YXMwr0.js").then(f=>f.s),__vite__mapDeps([92,1,2]))}),slim:()=>x(this,null,function*(){return yield S(()=>import("./slim-Bf1FQuBQ.js").then(f=>f.s),__vite__mapDeps([93,1,2,20,21,0,14,43]))}),smalltalk:()=>x(this,null,function*(){return yield S(()=>import("./smalltalk-Db2BOukD.js").then(f=>f.s),__vite__mapDeps([94,1,2]))}),smarty:()=>x(this,null,function*(){return yield S(()=>import("./smarty-iKWBBJeb.js").then(f=>f.s),__vite__mapDeps([95,1,2]))}),solr:()=>x(this,null,function*(){return yield S(()=>import("./solr-CFsp-tWW.js").then(f=>f.s),__vite__mapDeps([96,1,2]))}),soy:()=>x(this,null,function*(){return yield S(()=>import("./soy-Bp7B5X5P.js").then(f=>f.s),__vite__mapDeps([97,1,2,20,21,0,14]))}),sparql:()=>x(this,null,function*(){return yield S(()=>import("./sparql-DcPrKfhZ.js").then(f=>f.s),__vite__mapDeps([98,1,2]))}),spreadsheet:()=>x(this,null,function*(){return yield S(()=>import("./spreadsheet-C3z-gWru.js").then(f=>f.s),__vite__mapDeps([99,1,2]))}),sql:()=>x(this,null,function*(){return yield S(()=>import("./sql-DHVlzNoE.js").then(f=>f.s),__vite__mapDeps([100,1,2]))}),stex:()=>x(this,null,function*(){return yield S(()=>import("./stex-Cg_aPdoz.js").then(f=>f.s),__vite__mapDeps([101,1,2,85]))}),stylus:()=>x(this,null,function*(){return yield S(()=>import("./stylus-MetgqTN6.js").then(f=>f.s),__vite__mapDeps([102,1,2]))}),swift:()=>x(this,null,function*(){return yield S(()=>import("./swift-DXKRkQMz.js").then(f=>f.s),__vite__mapDeps([103,1,2]))}),tcl:()=>x(this,null,function*(){return yield S(()=>import("./tcl-BevIpjQ5.js").then(f=>f.t),__vite__mapDeps([104,1,2]))}),textile:()=>x(this,null,function*(){return yield S(()=>import("./textile-_4Nypotk.js").then(f=>f.t),__vite__mapDeps([105,1,2]))}),tiddlywiki:()=>x(this,null,function*(){return yield S(()=>import("./tiddlywiki-DDJ5TKib.js").then(f=>f.t),__vite__mapDeps([106,1,2]))}),tiki:()=>x(this,null,function*(){return yield S(()=>import("./tiki-DTxprbbV.js").then(f=>f.t),__vite__mapDeps([107,1,2]))}),toml:()=>x(this,null,function*(){return yield S(()=>import("./toml-023vXGSv.js").then(f=>f.t),__vite__mapDeps([108,1,2]))}),tornado:()=>x(this,null,function*(){return yield S(()=>import("./tornado-Bdo4Jy6O.js").then(f=>f.t),__vite__mapDeps([109,1,2,20,21,0,14,22]))}),troff:()=>x(this,null,function*(){return yield S(()=>import("./troff-DTRuyQRy.js").then(f=>f.t),__vite__mapDeps([110,1,2]))}),ttcn:()=>x(this,null,function*(){return yield S(()=>import("./ttcn-R1BoT9rH.js").then(f=>f.t),__vite__mapDeps([111,1,2]))}),turtle:()=>x(this,null,function*(){return yield S(()=>import("./turtle-CM9rYn40.js").then(f=>f.t),__vite__mapDeps([112,1,2]))}),twig:()=>x(this,null,function*(){return yield S(()=>import("./twig-C7dwzfeV.js").then(f=>f.t),__vite__mapDeps([113,1,2,45]))}),vb:()=>x(this,null,function*(){return yield S(()=>import("./vb-BXrUi_eW.js").then(f=>f.v),__vite__mapDeps([114,1,2]))}),vbscript:()=>x(this,null,function*(){return yield S(()=>import("./vbscript-BokD97Qh.js").then(f=>f.v),__vite__mapDeps([115,1,2]))}),velocity:()=>x(this,null,function*(){return yield S(()=>import("./velocity-DvNFKKpp.js").then(f=>f.v),__vite__mapDeps([116,1,2]))}),verilog:()=>x(this,null,function*(){return yield S(()=>import("./verilog-B7VFNSSq.js").then(f=>f.v),__vite__mapDeps([117,1,2]))}),vhdl:()=>x(this,null,function*(){return yield S(()=>import("./vhdl-B1rA6yA-.js").then(f=>f.v),__vite__mapDeps([118,1,2]))}),vue:()=>x(this,null,function*(){return yield S(()=>import("./vue-DaauBs6F.js").then(f=>f.v),__vite__mapDeps([119,1,2,22,21,0,11,14,89,102,78,20,44,24,45]))}),wast:()=>x(this,null,function*(){return yield S(()=>import("./wast-m9bWxpvr.js").then(f=>f.w),__vite__mapDeps([120,1,2,24]))}),webidl:()=>x(this,null,function*(){return yield S(()=>import("./webidl-DE5IAe36.js").then(f=>f.w),__vite__mapDeps([121,1,2]))}),xml:()=>x(this,null,function*(){return yield S(()=>import("./xml-BfhUlznu.js").then(f=>f.x),__vite__mapDeps([122,1,2,21]))}),xquery:()=>x(this,null,function*(){return yield S(()=>import("./xquery-BzB4WOAP.js").then(f=>f.x),__vite__mapDeps([123,1,2]))}),yacas:()=>x(this,null,function*(){return yield S(()=>import("./yacas-BaDrOsGa.js").then(f=>f.y),__vite__mapDeps([124,1,2]))}),yaml:()=>x(this,null,function*(){return yield S(()=>import("./yaml-omGv1gdd.js").then(f=>f.y),__vite__mapDeps([125,1,2]))}),z80:()=>x(this,null,function*(){return yield S(()=>import("./z80-B6iIPEr3.js").then(f=>f.z),__vite__mapDeps([126,1,2]))})}[h]}var pf={exports:{}};(function(h,T){(function(f){f(kt())})(function(f){function O(w,b,_,R){if(_&&_.call){var U=_;_=null}else var U=B(w,_,"rangeFinder");typeof b=="number"&&(b=f.Pos(b,0));var z=B(w,_,"minFoldSize");function te(N){var y=U(w,b);if(!y||y.to.line-y.from.linew.firstLine();)b=f.Pos(b.line-1,0),J=te(!1);if(!(!J||J.cleared||R==="unfold")){var re=F(w,_,J);f.on(re,"mousedown",function(N){k.clear(),f.e_preventDefault(N)});var k=w.markText(J.from,J.to,{replacedWith:re,clearOnEnter:B(w,_,"clearOnEnter"),__isFold:!0});k.on("clear",function(N,y){f.signal(w,"unfold",w,N,y)}),f.signal(w,"fold",w,J.from,J.to)}}function F(w,b,_){var R=B(w,b,"widget");if(typeof R=="function"&&(R=R(_.from,_.to)),typeof R=="string"){var U=document.createTextNode(R);R=document.createElement("span"),R.appendChild(U),R.className="CodeMirror-foldmarker"}else R&&(R=R.cloneNode(!0));return R}f.newFoldFunction=function(w,b){return function(_,R){O(_,R,{rangeFinder:w,widget:b})}},f.defineExtension("foldCode",function(w,b,_){O(this,w,b,_)}),f.defineExtension("isFolded",function(w){for(var b=this.findMarksAt(w),_=0;_=P){if(X&&pe&&X.test(pe.className))return;Ue=w(v.indicatorOpen)}}!Ue&&!pe||k.setGutterMarker(ie,v.gutter,Ue)})}function _(k){return new RegExp("(^|\\s)"+k+"(?:$|\\s)\\s*")}function R(k){var N=k.getViewport(),y=k.state.foldGutter;y&&(k.operation(function(){b(k,N.from,N.to)}),y.from=N.from,y.to=N.to)}function U(k,N,y){var v=k.state.foldGutter;if(v){var L=v.options;if(y==L.gutter){var P=B(k,N);P?P.clear():k.foldCode(O(N,0),L)}}}function z(k,N){N=="mode"&&te(k)}function te(k){var N=k.state.foldGutter;if(N){var y=N.options;N.from=N.to=0,clearTimeout(N.changeUpdate),N.changeUpdate=setTimeout(function(){R(k)},y.foldOnChangeTimeSpan||600)}}function J(k){var N=k.state.foldGutter;if(N){var y=N.options;clearTimeout(N.changeUpdate),N.changeUpdate=setTimeout(function(){var v=k.getViewport();N.from==N.to||v.from-N.to>20||N.from-v.to>20?R(k):k.operation(function(){v.fromN.to&&(b(k,N.to,v.to),N.to=v.to)})},y.updateViewportTimeSpan||400)}}function re(k,N){var y=k.state.foldGutter;if(y){var v=N.line;v>=y.from&&vF.lastLine())return null;var te=F.getTokenAt(f.Pos(z,1));if(/\S/.test(te.string)||(te=F.getTokenAt(f.Pos(z,te.end+1))),te.type!="keyword"||te.string!="import")return null;for(var J=z,re=Math.min(F.lastLine(),z+10);J<=re;++J){var k=F.getLine(J),N=k.indexOf(";");if(N!=-1)return{startCh:te.end,end:f.Pos(J,N)}}}var w=W.line,b=B(w),_;if(!b||B(w-1)||(_=B(w-2))&&_.end.line==w-1)return null;for(var R=b.end;;){var U=B(R.line+1);if(U==null)break;R=U.end}return{from:F.clipPos(f.Pos(w,b.startCh+1)),to:R}}),f.registerHelper("fold","include",function(F,W){function B(U){if(UF.lastLine())return null;var z=F.getTokenAt(f.Pos(U,1));if(/\S/.test(z.string)||(z=F.getTokenAt(f.Pos(U,z.end+1))),z.type=="meta"&&z.string.slice(0,8)=="#include")return z.start+8}var w=W.line,b=B(w);if(b==null||B(w-1)!=null)return null;for(var _=w;;){var R=B(_+1);if(R==null)break;++_}return{from:f.Pos(w,b+1),to:F.clipPos(f.Pos(_))}})})})();(function(h,T){(function(f){f(kt())})(function(f){f.registerGlobalHelper("fold","comment",function(O){return O.blockCommentStart&&O.blockCommentEnd},function(O,F){var W=O.getModeAt(F),B=W.blockCommentStart,w=W.blockCommentEnd;if(!(!B||!w)){for(var b=F.line,_=O.getLine(b),R,U=F.ch,z=0;;){var te=U<=0?-1:_.lastIndexOf(B,U-1);if(te==-1){if(z==1)return;z=1,U=_.length;continue}if(z==1&&te=y.max))return y.ch=0,y.text=y.cm.getLine(++y.line),!0}function U(y){if(!(y.line<=y.min))return y.text=y.cm.getLine(--y.line),y.ch=y.text.length,!0}function z(y){for(;;){var v=y.text.indexOf(">",y.ch);if(v==-1){if(R(y))continue;return}if(!_(y,v+1)){y.ch=v+1;continue}var L=y.text.lastIndexOf("/",v),P=L>-1&&!/\S/.test(y.text.slice(L+1,v));return y.ch=v+1,P?"selfClose":"regular"}}function te(y){for(;;){var v=y.ch?y.text.lastIndexOf("<",y.ch-1):-1;if(v==-1){if(U(y))continue;return}if(!_(y,v+1)){y.ch=v;continue}w.lastIndex=v,y.ch=v;var L=w.exec(y.text);if(L&&L.index==v)return L}}function J(y){for(;;){w.lastIndex=y.ch;var v=w.exec(y.text);if(!v){if(R(y))continue;return}if(!_(y,v.index+1)){y.ch=v.index+1;continue}return y.ch=v.index+v[0].length,v}}function re(y){for(;;){var v=y.ch?y.text.lastIndexOf(">",y.ch-1):-1;if(v==-1){if(U(y))continue;return}if(!_(y,v+1)){y.ch=v;continue}var L=y.text.lastIndexOf("/",v),P=L>-1&&!/\S/.test(y.text.slice(L+1,v));return y.ch=v+1,P?"selfClose":"regular"}}function k(y,v){for(var L=[];;){var P=J(y),K,Q=y.line,X=y.ch-(P?P[0].length:0);if(!P||!(K=z(y)))return;if(K!="selfClose")if(P[1]){for(var ie=L.length-1;ie>=0;--ie)if(L[ie]==P[2]){L.length=ie;break}if(ie<0&&(!v||v==P[2]))return{tag:P[2],from:O(Q,X),to:O(y.line,y.ch)}}else L.push(P[2])}}function N(y,v){for(var L=[];;){var P=re(y);if(!P)return;if(P=="selfClose"){te(y);continue}var K=y.line,Q=y.ch,X=te(y);if(!X)return;if(X[1])L.push(X[2]);else{for(var ie=L.length-1;ie>=0;--ie)if(L[ie]==X[2]){L.length=ie;break}if(ie<0&&(!v||v==X[2]))return{tag:X[2],from:O(y.line,y.ch),to:O(K,Q)}}}}f.registerHelper("fold","xml",function(y,v){for(var L=new b(y,v.line,0);;){var P=J(L);if(!P||L.line!=v.line)return;var K=z(L);if(!K)return;if(!P[1]&&K!="selfClose"){var Q=O(L.line,L.ch),X=k(L,P[2]);return X&&F(X.from,Q)>0?{from:Q,to:X.from}:null}}}),f.findMatchingTag=function(y,v,L){var P=new b(y,v.line,v.ch,L);if(!(P.text.indexOf(">")==-1&&P.text.indexOf("<")==-1)){var K=z(P),Q=K&&O(P.line,P.ch),X=K&&te(P);if(!(!K||!X||F(P,v)>0)){var ie={from:O(P.line,P.ch),to:Q,tag:X[2]};return K=="selfClose"?{open:ie,close:null,at:"open"}:X[1]?{open:N(P,X[2]),close:ie,at:"close"}:(P=new b(y,Q.line,Q.ch,L),{open:ie,close:k(P,X[2]),at:"open"})}}},f.findEnclosingTag=function(y,v,L,P){for(var K=new b(y,v.line,v.ch,L);;){var Q=N(K,P);if(!Q)break;var X=new b(y,v.line,v.ch,L),ie=k(X,Q.tag);if(ie)return{open:Q,close:ie}}},f.scanForClosingTag=function(y,v,L,P){var K=new b(y,v.line,v.ch,P?{from:0,to:P}:null);return k(K,L)}})})();(function(h,T){(function(f){f(kt())})(function(f){function O(F,W){var B=F.getLine(W),w=B.search(/\S/);return w==-1||/\bcomment\b/.test(F.getTokenTypeAt(f.Pos(W,w+1)))?-1:f.countColumn(B,null,F.getOption("tabSize"))}f.registerHelper("fold","indent",function(F,W){var B=O(F,W.line);if(!(B<0)){for(var w=null,b=W.line+1,_=F.lastLine();b<=_;++b){var R=O(F,b);if(R!=-1)if(R>B)w=b;else break}if(w)return{from:f.Pos(W.line,F.getLine(W.line).length),to:f.Pos(w,F.getLine(w).length)}}})})})();const gf=Hn({__name:"CodeMirror",props:{mode:{type:String,default:dr.JSON,validator(h){return Object.values(dr).includes(h)}},value:{type:String,default:""},readonly:{type:Boolean,default:!1},bordered:{type:Boolean,default:!1},config:{type:Object,default:()=>{}}},emits:["change"],setup(h,{emit:T}){const f=h,O=T,F=Tl();let W;const B=Qu(_,100),w=$u();to(()=>f.value,U=>x(this,null,function*(){yield ml();const z=W==null?void 0:W.getValue();U!==z&&(W==null||W.setValue(U||""))}),{flush:"post"}),kl(()=>x(this,null,function*(){yield df(f.mode)(),W==null||W.setOption("mode",f.mode)})),to(()=>w.getDarkMode,()=>x(this,null,function*(){b()}),{immediate:!0});function b(){var U;(U=Al(W))==null||U.setOption("theme",w.getDarkMode==="light"?"idea":"material-palenight")}function _(){W==null||W.refresh()}function R(){return x(this,null,function*(){const U={autoCloseBrackets:!0,autoCloseTags:!0,foldGutter:!0,gutters:["CodeMirror-lint-markers","CodeMirror-linenumbers","CodeMirror-foldgutter"]};W=cf(F.value,Qi(Qi({value:"",mode:f.mode,readOnly:f.readonly,tabSize:2,theme:"material-palenight",lineWrapping:!0,lineNumbers:!0},U),f.config)),W==null||W.setValue(f.value),b(),W==null||W.on("change",()=>{O("change",W==null?void 0:W.getValue())})})}return nf(()=>x(this,null,function*(){yield ml(),R(),ff(B)})),of(()=>{W=null}),(U,z)=>(oo(),Pl("div",{class:af(["relative !h-full w-full overflow-hidden",{"ant-input":f.bordered,"css-dev-only-do-not-override-kqecok":f.bordered}]),ref_key:"el",ref:F},null,2))}}),yf={class:"h-full"},mf=Hn({__name:"CodeEditor",props:{value:{type:[Object,String]},mode:{type:String,default:dr.JSON,validator(h){return Object.values(dr).includes(h)}},readonly:{type:Boolean},autoFormat:{type:Boolean,default:!0},bordered:{type:Boolean,default:!1},config:{type:Object,default:()=>{}}},emits:["change","update:value","format-error"],setup(h,{emit:T}){const f=h,O=T,F=El(()=>{const{value:B,mode:w,autoFormat:b}=f;if(!b||w!==dr.JSON)return B;let _=B;if(rf(B))try{_=JSON.parse(B)}catch(R){return O("format-error",B),B}return JSON.stringify(_,null,2)});function W(B){O("update:value",B),O("change",B)}return(B,w)=>(oo(),Pl("div",yf,[Ol(gf,{value:F.value,onChange:W,mode:h.mode,readonly:h.readonly,bordered:h.bordered,config:h.config},null,8,["value","mode","readonly","bordered","config"])]))}});var Dn={d:(h,T)=>{for(var f in T)Dn.o(T,f)&&!Dn.o(h,f)&&Object.defineProperty(h,f,{enumerable:!0,get:T[f]})},o:(h,T)=>Object.prototype.hasOwnProperty.call(h,T)},Nl={};function ro(h,T){(T==null||T>h.length)&&(T=h.length);for(var f=0,O=new Array(T);fCf});const Z=(wl={computed:()=>El,createTextVNode:()=>lf,createVNode:()=>Ol,defineComponent:()=>Hn,reactive:()=>sf,ref:()=>Tl,watch:()=>to,watchEffect:()=>kl},eo={},Dn.d(eo,wl),eo),bf=(0,Z.defineComponent)({props:{data:{required:!0,type:String},onClick:Function},render:function(){var h=this.data,T=this.onClick;return(0,Z.createVNode)("span",{class:"vjs-tree-brackets",onClick:T},[h])}}),wf=(0,Z.defineComponent)({emits:["change","update:modelValue"],props:{checked:{type:Boolean,default:!1},isMultiple:Boolean,onChange:Function},setup:function(h,T){var f=T.emit;return{uiType:(0,Z.computed)(function(){return h.isMultiple?"checkbox":"radio"}),model:(0,Z.computed)({get:function(){return h.checked},set:function(O){return f("update:modelValue",O)}})}},render:function(){var h=this.uiType,T=this.model,f=this.$emit;return(0,Z.createVNode)("label",{class:["vjs-check-controller",T?"is-checked":""],onClick:function(O){return O.stopPropagation()}},[(0,Z.createVNode)("span",{class:"vjs-check-controller-inner is-".concat(h)},null),(0,Z.createVNode)("input",{checked:T,class:"vjs-check-controller-original is-".concat(h),type:h,onChange:function(){return f("change",T)}},null)])}}),xf=(0,Z.defineComponent)({props:{nodeType:{required:!0,type:String},onClick:Function},render:function(){var h=this.nodeType,T=this.onClick,f=h==="objectStart"||h==="arrayStart";return f||h==="objectCollapsed"||h==="arrayCollapsed"?(0,Z.createVNode)("span",{class:"vjs-carets vjs-carets-".concat(f?"open":"close"),onClick:T},[(0,Z.createVNode)("svg",{viewBox:"0 0 1024 1024",focusable:"false","data-icon":"caret-down",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},[(0,Z.createVNode)("path",{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"},null)])]):null}});var wl,eo;function no(h){return no=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(T){return typeof T}:function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},no(h)}function Dl(h){return Object.prototype.toString.call(h).slice(8,-1).toLowerCase()}function Gt(h){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"root",f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,O=arguments.length>3?arguments[3]:void 0,F=O||{},W=F.key,B=F.index,w=F.type,b=w===void 0?"content":w,_=F.showComma,R=_!==void 0&&_,U=F.length,z=U===void 0?1:U,te=Dl(h);if(te==="array"){var J=xl(h.map(function(N,y,v){return Gt(N,"".concat(T,"[").concat(y,"]"),f+1,{index:y,showComma:y!==v.length-1,length:z,type:b})}));return[Gt("[",T,f,{showComma:!1,key:W,length:h.length,type:"arrayStart"})[0]].concat(J,Gt("]",T,f,{showComma:R,length:h.length,type:"arrayEnd"})[0])}if(te==="object"){var re=Object.keys(h),k=xl(re.map(function(N,y,v){return Gt(h[N],/^[a-zA-Z_]\w*$/.test(N)?"".concat(T,".").concat(N):"".concat(T,'["').concat(N,'"]'),f+1,{key:N,showComma:y!==v.length-1,length:z,type:b})}));return[Gt("{",T,f,{showComma:!1,key:W,index:B,length:re.length,type:"objectStart"})[0]].concat(k,Gt("}",T,f,{showComma:R,length:re.length,type:"objectEnd"})[0])}return[{content:h,level:f,key:W,index:B,path:T,showComma:R,length:z,type:b}]}function xl(h){if(typeof Array.prototype.flat=="function")return h.flat();for(var T=Rn(h),f=[];T.length;){var O=T.shift();Array.isArray(O)?T.unshift.apply(T,Rn(O)):f.push(O)}return f}function io(h){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new WeakMap;if(h==null)return h;if(h instanceof Date)return new Date(h);if(h instanceof RegExp)return new RegExp(h);if(no(h)!=="object")return h;if(T.get(h))return T.get(h);if(Array.isArray(h)){var f=h.map(function(W){return io(W,T)});return T.set(h,f),f}var O={};for(var F in h)O[F]=io(h[F],T);return T.set(h,O),O}function Ll(h,T){var f=Object.keys(h);if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(h);T&&(O=O.filter(function(F){return Object.getOwnPropertyDescriptor(h,F).enumerable})),f.push.apply(f,O)}return f}function Cl(h){for(var T=1;T=v||K.length>=L,ie=(Q=h.pathCollapsible)===null||Q===void 0?void 0:Q.call(h,K);return K.type!=="objectStart"&&K.type!=="arrayStart"||!X&&!ie?P:Ye(Ye({},P),{},Fn({},K.path,1))},{})},w=(0,Z.reactive)({translateY:0,visibleData:null,hiddenPaths:B(h.deep,h.collapsedNodeLength)}),b=(0,Z.computed)(function(){for(var v=null,L=[],P=W.value.length,K=0;Kv.length?v.length-P:Q;X<0&&(X=0);var ie=X+P;w.translateY=X*h.itemHeight,w.visibleData=v.filter(function(Ue,pe){return pe>=X&&pe(oo(),uf(Al(Sf),{path:"res",deep:3,showLength:!0,data:h.data},null,8,["data"]))}}),Of=_l(mf),Nf=_l(_f);export{Of as C,Nf as J,dr as M,kt as r};