import{A as y}from"./index.f4d41e67.entry.js";function A(f,u){return u.forEach(function(r){r&&typeof r!="string"&&!Array.isArray(r)&&Object.keys(r).forEach(function(a){if(a!=="default"&&!(a in f)){var o=Object.getOwnPropertyDescriptor(r,a);Object.defineProperty(f,a,o.get?o:{enumerable:!0,get:function(){return r[a]}})}})}),Object.freeze(Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}))}var h={exports:{}};(function(f,u){(function(r){r(y.exports)})(function(r){var a="CodeMirror-activeline",o="CodeMirror-activeline-background",v="CodeMirror-activeline-gutter";r.defineOption("styleActiveLine",!1,function(e,n,t){var i=t==r.Init?!1:t;n!=i&&(i&&(e.off("beforeSelectionChange",p),c(e),delete e.state.activeLines),n&&(e.state.activeLines=[],L(e,e.listSelections()),e.on("beforeSelectionChange",p)))});function c(e){for(var n=0;n<e.state.activeLines.length;n++)e.removeLineClass(e.state.activeLines[n],"wrap",a),e.removeLineClass(e.state.activeLines[n],"background",o),e.removeLineClass(e.state.activeLines[n],"gutter",v)}function C(e,n){if(e.length!=n.length)return!1;for(var t=0;t<e.length;t++)if(e[t]!=n[t])return!1;return!0}function L(e,n){for(var t=[],i=0;i<n.length;i++){var l=n[i],d=e.getOption("styleActiveLine");if(!(typeof d=="object"&&d.nonEmpty?l.anchor.line!=l.head.line:!l.empty())){var g=e.getLineHandleVisualStart(l.head.line);t[t.length-1]!=g&&t.push(g)}}C(e.state.activeLines,t)||e.operation(function(){c(e);for(var s=0;s<t.length;s++)e.addLineClass(t[s],"wrap",a),e.addLineClass(t[s],"background",o),e.addLineClass(t[s],"gutter",v);e.state.activeLines=t})}function p(e,n){L(e,n.ranges)}})})();var b=h.exports,O=A({__proto__:null,default:b},[h.exports]);export{O as a};
