import{__exports as t}from"../../../_virtual/mapping-list2.mjs";import{__require as r}from"./util.mjs";var e;function a(){if(e)return t;e=1;var a=r();function i(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}return i.prototype.unsortedForEach=function(t,r){this._array.forEach(t,r)},i.prototype.add=function(t){var r,e,i,s,o,n;r=this._last,e=t,i=r.generatedLine,s=e.generatedLine,o=r.generatedColumn,n=e.generatedColumn,s>i||s==i&&n>=o||a.compareByGeneratedPositionsInflated(r,e)<=0?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))},i.prototype.toArray=function(){return this._sorted||(this._array.sort(a.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},t.MappingList=i,t}export{a as __require};