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