"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("../../../../../../_virtual/index15.js");var h;function f(){return h||(h=1,function(r){r.__esModule=!0,r.LinesAndColumns=void 0;var i=`
`,l="\r",o=function(){function u(n){this.string=n;for(var t=[0],e=0;e<n.length;)switch(n[e]){case i:e+=i.length,t.push(e);break;case l:e+=l.length,n[e]===i&&(e+=i.length),t.push(e);break;default:e++;break}this.offsets=t}return u.prototype.locationForIndex=function(n){if(n<0||n>this.string.length)return null;for(var t=0,e=this.offsets;e[t+1]<=n;)t++;var a=n-e[t];return{line:t,column:a}},u.prototype.indexForLocation=function(n){var t=n.line,e=n.column;return t<0||t>=this.offsets.length||e<0||e>this.lengthOfLine(t)?null:this.offsets[t]+e},u.prototype.lengthOfLine=function(n){var t=this.offsets[n],e=n===this.offsets.length-1?this.string.length:this.offsets[n+1];return e-t},u}();r.LinesAndColumns=o,r.default=o}(s.__exports)),s.__exports}exports.__require=f;
//# sourceMappingURL=index.js.map
