@absolutejs/absolute 0.20.0-beta.132 → 0.20.0-beta.133

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@
2
2
  var _vt=Object.create;var{getPrototypeOf:fvt,defineProperty:BMe,getOwnPropertyNames:pvt}=Object;var JMe=Object.prototype.hasOwnProperty;function dvt(v){return this[v]}var mvt,gvt,hvt=(v,P,M)=>{var z=v!=null&&typeof v==="object";if(z){var ce=P?mvt??=new WeakMap:gvt??=new WeakMap,ve=ce.get(v);if(ve)return ve}M=v!=null?_vt(fvt(v)):{};let qe=P||!v||!v.__esModule||!JMe.call(v,"default")?BMe(M,"default",{value:v,enumerable:!0}):M;if(v&&typeof v==="object"||typeof v==="function"){for(let at of pvt(v))if(!JMe.call(qe,at))BMe(qe,at,{get:dvt.bind(v,at),enumerable:!0})}if(z)ce.set(v,qe);return qe};var W0=(v,P)=>()=>(P||v((P={exports:{}}).exports,P),P.exports);var IT=import.meta.require;var wLe=W0(function(Y1t){var ELe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");Y1t.encode=function(v){if(0<=v&&v<ELe.length)return ELe[v];throw TypeError("Must be between 0 and 63: "+v)};Y1t.decode=function(v){var P=65,M=90,z=97,ce=122,ve=48,qe=57,at=43,yt=47,cr=26,vr=52;if(P<=v&&v<=M)return v-P;if(z<=v&&v<=ce)return v-z+cr;if(ve<=v&&v<=qe)return v-ve+vr;if(v==at)return 62;if(v==yt)return 63;return-1}});var d0e=W0(function(nbt){var ALe=wLe(),p0e=5,PLe=1<<p0e,DLe=PLe-1,ILe=PLe;function tbt(v){return v<0?(-v<<1)+1:(v<<1)+0}function rbt(v){var P=(v&1)===1,M=v>>1;return P?-M:M}nbt.encode=function(P){var M="",z,ce=tbt(P);do{if(z=ce&DLe,ce>>>=p0e,ce>0)z|=ILe;M+=ALe.encode(z)}while(ce>0);return M};nbt.decode=function(P,M,z){var ce=P.length,ve=0,qe=0,at,yt;do{if(M>=ce)throw Error("Expected more digits in base 64 VLQ value.");if(yt=ALe.decode(P.charCodeAt(M++)),yt===-1)throw Error("Invalid base64 digit: "+P.charAt(M-1));at=!!(yt&ILe),yt&=DLe,ve=ve+(yt<<qe),qe+=p0e}while(at);z.value=rbt(ve),z.rest=M}});var P7=W0(function(LLe){function abt(v,P,M){if(P in v)return v[P];else if(arguments.length===3)return M;else throw Error('"'+P+'" is a required argument.')}LLe.getArg=abt;var NLe=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,obt=/^data:.+\,.+$/;function mB(v){var P=v.match(NLe);if(!P)return null;return{scheme:P[1],auth:P[2],host:P[3],port:P[4],path:P[5]}}LLe.urlParse=mB;function w7(v){var P="";if(v.scheme)P+=v.scheme+":";if(P+="//",v.auth)P+=v.auth+"@";if(v.host)P+=v.host;if(v.port)P+=":"+v.port;if(v.path)P+=v.path;return P}LLe.urlGenerate=w7;function m0e(v){var P=v,M=mB(v);if(M){if(!M.path)return v;P=M.path}var z=LLe.isAbsolute(P),ce=P.split(/\/+/);for(var ve,qe=0,at=ce.length-1;at>=0;at--)if(ve=ce[at],ve===".")ce.splice(at,1);else if(ve==="..")qe++;else if(qe>0)if(ve==="")ce.splice(at+1,qe),qe=0;else ce.splice(at,2),qe--;if(P=ce.join("/"),P==="")P=z?"/":".";if(M)return M.path=P,w7(M);return P}LLe.normalize=m0e;function OLe(v,P){if(v==="")v=".";if(P==="")P=".";var M=mB(P),z=mB(v);if(z)v=z.path||"/";if(M&&!M.scheme){if(z)M.scheme=z.scheme;return w7(M)}if(M||P.match(obt))return P;if(z&&!z.host&&!z.path)return z.host=P,w7(z);var ce=P.charAt(0)==="/"?P:m0e(v.replace(/\/+$/,"")+"/"+P);if(z)return z.path=ce,w7(z);return ce}LLe.join=OLe;LLe.isAbsolute=function(v){return v.charAt(0)==="/"||NLe.test(v)};function cbt(v,P){if(v==="")v=".";v=v.replace(/\/$/,"");var M=0;while(P.indexOf(v+"/")!==0){var z=v.lastIndexOf("/");if(z<0)return P;if(v=v.slice(0,z),v.match(/^([^\/]+:\/)?\/*$/))return P;++M}return Array(M+1).join("../")+P.substr(v.length+1)}LLe.relative=cbt;var FLe=function(){var v=Object.create(null);return!("__proto__"in v)}();function RLe(v){return v}function lbt(v){if(MLe(v))return"$"+v;return v}LLe.toSetString=FLe?RLe:lbt;function ubt(v){if(MLe(v))return v.slice(1);return v}LLe.fromSetString=FLe?RLe:ubt;function MLe(v){if(!v)return!1;var P=v.length;if(P<9)return!1;if(v.charCodeAt(P-1)!==95||v.charCodeAt(P-2)!==95||v.charCodeAt(P-3)!==111||v.charCodeAt(P-4)!==116||v.charCodeAt(P-5)!==111||v.charCodeAt(P-6)!==114||v.charCodeAt(P-7)!==112||v.charCodeAt(P-8)!==95||v.charCodeAt(P-9)!==95)return!1;for(var M=P-10;M>=0;M--)if(v.charCodeAt(M)!==36)return!1;return!0}function _bt(v,P,M){var z=A7(v.source,P.source);if(z!==0)return z;if(z=v.originalLine-P.originalLine,z!==0)return z;if(z=v.originalColumn-P.originalColumn,z!==0||M)return z;if(z=v.generatedColumn-P.generatedColumn,z!==0)return z;if(z=v.generatedLine-P.generatedLine,z!==0)return z;return A7(v.name,P.name)}LLe.compareByOriginalPositions=_bt;function fbt(v,P,M){var z=v.generatedLine-P.generatedLine;if(z!==0)return z;if(z=v.generatedColumn-P.generatedColumn,z!==0||M)return z;if(z=A7(v.source,P.source),z!==0)return z;if(z=v.originalLine-P.originalLine,z!==0)return z;if(z=v.originalColumn-P.originalColumn,z!==0)return z;return A7(v.name,P.name)}LLe.compareByGeneratedPositionsDeflated=fbt;function A7(v,P){if(v===P)return 0;if(v===null)return 1;if(P===null)return-1;if(v>P)return 1;return-1}function pbt(v,P){var M=v.generatedLine-P.generatedLine;if(M!==0)return M;if(M=v.generatedColumn-P.generatedColumn,M!==0)return M;if(M=A7(v.source,P.source),M!==0)return M;if(M=v.originalLine-P.originalLine,M!==0)return M;if(M=v.originalColumn-P.originalColumn,M!==0)return M;return A7(v.name,P.name)}LLe.compareByGeneratedPositionsInflated=pbt;function dbt(v){return JSON.parse(v.replace(/^\)]}'[^\n]*\n/,""))}LLe.parseSourceMapInput=dbt;function mbt(v,P,M){if(P=P||"",v){if(v[v.length-1]!=="/"&&P[0]!=="/")v+="/";P=v+P}if(M){var z=mB(M);if(!z)throw Error("sourceMapURL could not be parsed");if(z.path){var ce=z.path.lastIndexOf("/");if(ce>=0)z.path=z.path.substring(0,ce+1)}P=OLe(w7(z),P)}return m0e(P)}LLe.computeSourceURL=mbt});var y0e=W0(function(Dbt){var g0e=P7(),h0e=Object.prototype.hasOwnProperty,YN=typeof Map<"u";function pE(){this._array=[],this._set=YN?new Map:Object.create(null)}pE.fromArray=function(P,M){var z=new pE;for(var ce=0,ve=P.length;ce<ve;ce++)z.add(P[ce],M);return z};pE.prototype.size=function(){return YN?this._set.size:Object.getOwnPropertyNames(this._set).length};pE.prototype.add=function(P,M){var z=YN?P:g0e.toSetString(P),ce=YN?this.has(P):h0e.call(this._set,z),ve=this._array.length;if(!ce||M)this._array.push(P);if(!ce)if(YN)this._set.set(P,ve);else this._set[z]=ve};pE.prototype.has=function(P){if(YN)return this._set.has(P);else{var M=g0e.toSetString(P);return h0e.call(this._set,M)}};pE.prototype.indexOf=function(P){if(YN){var M=this._set.get(P);if(M>=0)return M}else{var z=g0e.toSetString(P);if(h0e.call(this._set,z))return this._set[z]}throw Error('"'+P+'" is not in the set.')};pE.prototype.at=function(P){if(P>=0&&P<this._array.length)return this._array[P];throw Error("No element indexed by "+P)};pE.prototype.toArray=function(){return this._array.slice()};Dbt.ArraySet=pE});var BLe=W0(function(Obt){var jLe=P7();function Nbt(v,P){var M=v.generatedLine,z=P.generatedLine,ce=v.generatedColumn,ve=P.generatedColumn;return z>M||z==M&&ve>=ce||jLe.compareByGeneratedPositionsInflated(v,P)<=0}function uY(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}uY.prototype.unsortedForEach=function(P,M){this._array.forEach(P,M)};uY.prototype.add=function(P){if(Nbt(this._last,P))this._last=P,this._array.push(P);else this._sorted=!1,this._array.push(P)};uY.prototype.toArray=function(){if(!this._sorted)this._array.sort(jLe.compareByGeneratedPositionsInflated),this._sorted=!0;return this._array};Obt.MappingList=uY});var v0e=W0(function(Mbt){var gB=d0e(),Kd=P7(),_Y=y0e().ArraySet,Rbt=BLe().MappingList;function tS(v){if(!v)v={};this._file=Kd.getArg(v,"file",null),this._sourceRoot=Kd.getArg(v,"sourceRoot",null),this._skipValidation=Kd.getArg(v,"skipValidation",!1),this._sources=new _Y,this._names=new _Y,this._mappings=new Rbt,this._sourcesContents=null}tS.prototype._version=3;tS.fromSourceMap=function(P){var M=P.sourceRoot,z=new tS({file:P.file,sourceRoot:M});return P.eachMapping(function(ce){var ve={generated:{line:ce.generatedLine,column:ce.generatedColumn}};if(ce.source!=null){if(ve.source=ce.source,M!=null)ve.source=Kd.relative(M,ve.source);if(ve.original={line:ce.originalLine,column:ce.originalColumn},ce.name!=null)ve.name=ce.name}z.addMapping(ve)}),P.sources.forEach(function(ce){var ve=ce;if(M!==null)ve=Kd.relative(M,ce);if(!z._sources.has(ve))z._sources.add(ve);var qe=P.sourceContentFor(ce);if(qe!=null)z.setSourceContent(ce,qe)}),z};tS.prototype.addMapping=function(P){var M=Kd.getArg(P,"generated"),z=Kd.getArg(P,"original",null),ce=Kd.getArg(P,"source",null),ve=Kd.getArg(P,"name",null);if(!this._skipValidation)this._validateMapping(M,z,ce,ve);if(ce!=null){if(ce=String(ce),!this._sources.has(ce))this._sources.add(ce)}if(ve!=null){if(ve=String(ve),!this._names.has(ve))this._names.add(ve)}this._mappings.add({generatedLine:M.line,generatedColumn:M.column,originalLine:z!=null&&z.line,originalColumn:z!=null&&z.column,source:ce,name:ve})};tS.prototype.setSourceContent=function(P,M){var z=P;if(this._sourceRoot!=null)z=Kd.relative(this._sourceRoot,z);if(M!=null){if(!this._sourcesContents)this._sourcesContents=Object.create(null);this._sourcesContents[Kd.toSetString(z)]=M}else if(this._sourcesContents){if(delete this._sourcesContents[Kd.toSetString(z)],Object.keys(this._sourcesContents).length===0)this._sourcesContents=null}};tS.prototype.applySourceMap=function(P,M,z){var ce=M;if(M==null){if(P.file==null)throw Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);ce=P.file}var ve=this._sourceRoot;if(ve!=null)ce=Kd.relative(ve,ce);var qe=new _Y,at=new _Y;this._mappings.unsortedForEach(function(yt){if(yt.source===ce&&yt.originalLine!=null){var cr=P.originalPositionFor({line:yt.originalLine,column:yt.originalColumn});if(cr.source!=null){if(yt.source=cr.source,z!=null)yt.source=Kd.join(z,yt.source);if(ve!=null)yt.source=Kd.relative(ve,yt.source);if(yt.originalLine=cr.line,yt.originalColumn=cr.column,cr.name!=null)yt.name=cr.name}}var vr=yt.source;if(vr!=null&&!qe.has(vr))qe.add(vr);var Dr=yt.name;if(Dr!=null&&!at.has(Dr))at.add(Dr)},this),this._sources=qe,this._names=at,P.sources.forEach(function(yt){var cr=P.sourceContentFor(yt);if(cr!=null){if(z!=null)yt=Kd.join(z,yt);if(ve!=null)yt=Kd.relative(ve,yt);this.setSourceContent(yt,cr)}},this)};tS.prototype._validateMapping=function(P,M,z,ce){if(M&&typeof M.line!=="number"&&typeof M.column!=="number")throw Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(P&&"line"in P&&"column"in P&&P.line>0&&P.column>=0&&!M&&!z&&!ce)return;else if(P&&"line"in P&&"column"in P&&M&&"line"in M&&"column"in M&&P.line>0&&P.column>=0&&M.line>0&&M.column>=0&&z)return;else throw Error("Invalid mapping: "+JSON.stringify({generated:P,source:z,original:M,name:ce}))};tS.prototype._serializeMappings=function(){var P=0,M=1,z=0,ce=0,ve=0,qe=0,at="",yt,cr,vr,Dr,xe=this._mappings.toArray();for(var Hn=0,Nt=xe.length;Hn<Nt;Hn++){if(cr=xe[Hn],yt="",cr.generatedLine!==M){P=0;while(cr.generatedLine!==M)yt+=";",M++}else if(Hn>0){if(!Kd.compareByGeneratedPositionsInflated(cr,xe[Hn-1]))continue;yt+=","}if(yt+=gB.encode(cr.generatedColumn-P),P=cr.generatedColumn,cr.source!=null){if(Dr=this._sources.indexOf(cr.source),yt+=gB.encode(Dr-qe),qe=Dr,yt+=gB.encode(cr.originalLine-1-ce),ce=cr.originalLine-1,yt+=gB.encode(cr.originalColumn-z),z=cr.originalColumn,cr.name!=null)vr=this._names.indexOf(cr.name),yt+=gB.encode(vr-ve),ve=vr}at+=yt}return at};tS.prototype._generateSourcesContent=function(P,M){return P.map(function(z){if(!this._sourcesContents)return null;if(M!=null)z=Kd.relative(M,z);var ce=Kd.toSetString(z);return Object.prototype.hasOwnProperty.call(this._sourcesContents,ce)?this._sourcesContents[ce]:null},this)};tS.prototype.toJSON=function(){var P={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};if(this._file!=null)P.file=this._file;if(this._sourceRoot!=null)P.sourceRoot=this._sourceRoot;if(this._sourcesContents)P.sourcesContent=this._generateSourcesContent(P.sources,P.sourceRoot);return P};tS.prototype.toString=function(){return JSON.stringify(this.toJSON())};Mbt.SourceMapGenerator=tS});var ULe=W0(function(jbt){jbt.GREATEST_LOWER_BOUND=1;jbt.LEAST_UPPER_BOUND=2;function b0e(v,P,M,z,ce,ve){var qe=Math.floor((P-v)/2)+v,at=ce(M,z[qe],!0);if(at===0)return qe;else if(at>0){if(P-qe>1)return b0e(qe,P,M,z,ce,ve);if(ve==jbt.LEAST_UPPER_BOUND)return P<z.length?P:-1;else return qe}else{if(qe-v>1)return b0e(v,qe,M,z,ce,ve);if(ve==jbt.LEAST_UPPER_BOUND)return qe;else return v<0?-1:v}}jbt.search=function(P,M,z,ce){if(M.length===0)return-1;var ve=b0e(-1,M.length,P,M,z,ce||jbt.GREATEST_LOWER_BOUND);if(ve<0)return-1;while(ve-1>=0){if(z(M[ve],M[ve-1],!0)!==0)break;--ve}return ve}});var zLe=W0(function(Ubt){function T0e(v,P,M){var z=v[P];v[P]=v[M],v[M]=z}function Jbt(v,P){return Math.round(v+Math.random()*(P-v))}function x0e(v,P,M,z){if(M<z){var ce=Jbt(M,z),ve=M-1;T0e(v,ce,z);var qe=v[z];for(var at=M;at<z;at++)if(P(v[at],qe)<=0)ve+=1,T0e(v,ve,at);T0e(v,ve+1,at);var yt=ve+1;x0e(v,P,M,yt-1),x0e(v,P,yt+1,z)}}Ubt.quickSort=function(v,P){x0e(v,P,0,v.length-1)}});var VLe=W0(function(Vbt){var eo=P7(),k0e=ULe(),D7=y0e().ArraySet,Wbt=d0e(),hB=zLe().quickSort;function Gf(v,P){var M=v;if(typeof v==="string")M=eo.parseSourceMapInput(v);return M.sections!=null?new OT(M,P):new eh(M,P)}Gf.fromSourceMap=function(v,P){return eh.fromSourceMap(v,P)};Gf.prototype._version=3;Gf.prototype.__generatedMappings=null;Object.defineProperty(Gf.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){if(!this.__generatedMappings)this._parseMappings(this._mappings,this.sourceRoot);return this.__generatedMappings}});Gf.prototype.__originalMappings=null;Object.defineProperty(Gf.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){if(!this.__originalMappings)this._parseMappings(this._mappings,this.sourceRoot);return this.__originalMappings}});Gf.prototype._charIsMappingSeparator=function(P,M){var z=P.charAt(M);return z===";"||z===","};Gf.prototype._parseMappings=function(P,M){throw Error("Subclasses must implement _parseMappings")};Gf.GENERATED_ORDER=1;Gf.ORIGINAL_ORDER=2;Gf.GREATEST_LOWER_BOUND=1;Gf.LEAST_UPPER_BOUND=2;Gf.prototype.eachMapping=function(P,M,z){var ce=M||null,ve=z||Gf.GENERATED_ORDER,qe;switch(ve){case Gf.GENERATED_ORDER:qe=this._generatedMappings;break;case Gf.ORIGINAL_ORDER:qe=this._originalMappings;break;default:throw Error("Unknown order of iteration.")}var at=this.sourceRoot;qe.map(function(yt){var cr=yt.source===null?null:this._sources.at(yt.source);return cr=eo.computeSourceURL(at,cr,this._sourceMapURL),{source:cr,generatedLine:yt.generatedLine,generatedColumn:yt.generatedColumn,originalLine:yt.originalLine,originalColumn:yt.originalColumn,name:yt.name===null?null:this._names.at(yt.name)}},this).forEach(P,ce)};Gf.prototype.allGeneratedPositionsFor=function(P){var M=eo.getArg(P,"line"),z={source:eo.getArg(P,"source"),originalLine:M,originalColumn:eo.getArg(P,"column",0)};if(z.source=this._findSourceIndex(z.source),z.source<0)return[];var ce=[],ve=this._findMapping(z,this._originalMappings,"originalLine","originalColumn",eo.compareByOriginalPositions,k0e.LEAST_UPPER_BOUND);if(ve>=0){var qe=this._originalMappings[ve];if(P.column===void 0){var at=qe.originalLine;while(qe&&qe.originalLine===at)ce.push({line:eo.getArg(qe,"generatedLine",null),column:eo.getArg(qe,"generatedColumn",null),lastColumn:eo.getArg(qe,"lastGeneratedColumn",null)}),qe=this._originalMappings[++ve]}else{var yt=qe.originalColumn;while(qe&&qe.originalLine===M&&qe.originalColumn==yt)ce.push({line:eo.getArg(qe,"generatedLine",null),column:eo.getArg(qe,"generatedColumn",null),lastColumn:eo.getArg(qe,"lastGeneratedColumn",null)}),qe=this._originalMappings[++ve]}}return ce};Vbt.SourceMapConsumer=Gf;function eh(v,P){var M=v;if(typeof v==="string")M=eo.parseSourceMapInput(v);var z=eo.getArg(M,"version"),ce=eo.getArg(M,"sources"),ve=eo.getArg(M,"names",[]),qe=eo.getArg(M,"sourceRoot",null),at=eo.getArg(M,"sourcesContent",null),yt=eo.getArg(M,"mappings"),cr=eo.getArg(M,"file",null);if(z!=this._version)throw Error("Unsupported version: "+z);if(qe)qe=eo.normalize(qe);ce=ce.map(String).map(eo.normalize).map(function(vr){return qe&&eo.isAbsolute(qe)&&eo.isAbsolute(vr)?eo.relative(qe,vr):vr}),this._names=D7.fromArray(ve.map(String),!0),this._sources=D7.fromArray(ce,!0),this._absoluteSources=this._sources.toArray().map(function(vr){return eo.computeSourceURL(qe,vr,P)}),this.sourceRoot=qe,this.sourcesContent=at,this._mappings=yt,this._sourceMapURL=P,this.file=cr}eh.prototype=Object.create(Gf.prototype);eh.prototype.consumer=Gf;eh.prototype._findSourceIndex=function(v){var P=v;if(this.sourceRoot!=null)P=eo.relative(this.sourceRoot,P);if(this._sources.has(P))return this._sources.indexOf(P);var M;for(M=0;M<this._absoluteSources.length;++M)if(this._absoluteSources[M]==v)return M;return-1};eh.fromSourceMap=function(P,M){var z=Object.create(eh.prototype),ce=z._names=D7.fromArray(P._names.toArray(),!0),ve=z._sources=D7.fromArray(P._sources.toArray(),!0);z.sourceRoot=P._sourceRoot,z.sourcesContent=P._generateSourcesContent(z._sources.toArray(),z.sourceRoot),z.file=P._file,z._sourceMapURL=M,z._absoluteSources=z._sources.toArray().map(function(Hn){return eo.computeSourceURL(z.sourceRoot,Hn,M)});var qe=P._mappings.toArray().slice(),at=z.__generatedMappings=[],yt=z.__originalMappings=[];for(var cr=0,vr=qe.length;cr<vr;cr++){var Dr=qe[cr],xe=new WLe;if(xe.generatedLine=Dr.generatedLine,xe.generatedColumn=Dr.generatedColumn,Dr.source){if(xe.source=ve.indexOf(Dr.source),xe.originalLine=Dr.originalLine,xe.originalColumn=Dr.originalColumn,Dr.name)xe.name=ce.indexOf(Dr.name);yt.push(xe)}at.push(xe)}return hB(z.__originalMappings,eo.compareByOriginalPositions),z};eh.prototype._version=3;Object.defineProperty(eh.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function WLe(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}eh.prototype._parseMappings=function(P,M){var z=1,ce=0,ve=0,qe=0,at=0,yt=0,cr=P.length,vr=0,Dr={},xe={},Hn=[],Nt=[],Ot,cs,Di,Us,Ha;while(vr<cr)if(P.charAt(vr)===";")z++,vr++,ce=0;else if(P.charAt(vr)===",")vr++;else{Ot=new WLe,Ot.generatedLine=z;for(Us=vr;Us<cr;Us++)if(this._charIsMappingSeparator(P,Us))break;if(cs=P.slice(vr,Us),Di=Dr[cs],Di)vr+=cs.length;else{Di=[];while(vr<Us)Wbt.decode(P,vr,xe),Ha=xe.value,vr=xe.rest,Di.push(Ha);if(Di.length===2)throw Error("Found a source, but no line and column");if(Di.length===3)throw Error("Found a source and line, but no column");Dr[cs]=Di}if(Ot.generatedColumn=ce+Di[0],ce=Ot.generatedColumn,Di.length>1){if(Ot.source=at+Di[1],at+=Di[1],Ot.originalLine=ve+Di[2],ve=Ot.originalLine,Ot.originalLine+=1,Ot.originalColumn=qe+Di[3],qe=Ot.originalColumn,Di.length>4)Ot.name=yt+Di[4],yt+=Di[4]}if(Nt.push(Ot),typeof Ot.originalLine==="number")Hn.push(Ot)}hB(Nt,eo.compareByGeneratedPositionsDeflated),this.__generatedMappings=Nt,hB(Hn,eo.compareByOriginalPositions),this.__originalMappings=Hn};eh.prototype._findMapping=function(P,M,z,ce,ve,qe){if(P[z]<=0)throw TypeError("Line must be greater than or equal to 1, got "+P[z]);if(P[ce]<0)throw TypeError("Column must be greater than or equal to 0, got "+P[ce]);return k0e.search(P,M,ve,qe)};eh.prototype.computeColumnSpans=function(){for(var P=0;P<this._generatedMappings.length;++P){var M=this._generatedMappings[P];if(P+1<this._generatedMappings.length){var z=this._generatedMappings[P+1];if(M.generatedLine===z.generatedLine){M.lastGeneratedColumn=z.generatedColumn-1;continue}}M.lastGeneratedColumn=1/0}};eh.prototype.originalPositionFor=function(P){var M={generatedLine:eo.getArg(P,"line"),generatedColumn:eo.getArg(P,"column")},z=this._findMapping(M,this._generatedMappings,"generatedLine","generatedColumn",eo.compareByGeneratedPositionsDeflated,eo.getArg(P,"bias",Gf.GREATEST_LOWER_BOUND));if(z>=0){var ce=this._generatedMappings[z];if(ce.generatedLine===M.generatedLine){var ve=eo.getArg(ce,"source",null);if(ve!==null)ve=this._sources.at(ve),ve=eo.computeSourceURL(this.sourceRoot,ve,this._sourceMapURL);var qe=eo.getArg(ce,"name",null);if(qe!==null)qe=this._names.at(qe);return{source:ve,line:eo.getArg(ce,"originalLine",null),column:eo.getArg(ce,"originalColumn",null),name:qe}}}return{source:null,line:null,column:null,name:null}};eh.prototype.hasContentsOfAllSources=function(){if(!this.sourcesContent)return!1;return this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(P){return P==null})};eh.prototype.sourceContentFor=function(P,M){if(!this.sourcesContent)return null;var z=this._findSourceIndex(P);if(z>=0)return this.sourcesContent[z];var ce=P;if(this.sourceRoot!=null)ce=eo.relative(this.sourceRoot,ce);var ve;if(this.sourceRoot!=null&&(ve=eo.urlParse(this.sourceRoot))){var qe=ce.replace(/^file:\/\//,"");if(ve.scheme=="file"&&this._sources.has(qe))return this.sourcesContent[this._sources.indexOf(qe)];if((!ve.path||ve.path=="/")&&this._sources.has("/"+ce))return this.sourcesContent[this._sources.indexOf("/"+ce)]}if(M)return null;else throw Error('"'+ce+'" is not in the SourceMap.')};eh.prototype.generatedPositionFor=function(P){var M=eo.getArg(P,"source");if(M=this._findSourceIndex(M),M<0)return{line:null,column:null,lastColumn:null};var z={source:M,originalLine:eo.getArg(P,"line"),originalColumn:eo.getArg(P,"column")},ce=this._findMapping(z,this._originalMappings,"originalLine","originalColumn",eo.compareByOriginalPositions,eo.getArg(P,"bias",Gf.GREATEST_LOWER_BOUND));if(ce>=0){var ve=this._originalMappings[ce];if(ve.source===z.source)return{line:eo.getArg(ve,"generatedLine",null),column:eo.getArg(ve,"generatedColumn",null),lastColumn:eo.getArg(ve,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};Vbt.BasicSourceMapConsumer=eh;function OT(v,P){var M=v;if(typeof v==="string")M=eo.parseSourceMapInput(v);var z=eo.getArg(M,"version"),ce=eo.getArg(M,"sections");if(z!=this._version)throw Error("Unsupported version: "+z);this._sources=new D7,this._names=new D7;var ve={line:-1,column:0};this._sections=ce.map(function(qe){if(qe.url)throw Error("Support for url field in sections not implemented.");var at=eo.getArg(qe,"offset"),yt=eo.getArg(at,"line"),cr=eo.getArg(at,"column");if(yt<ve.line||yt===ve.line&&cr<ve.column)throw Error("Section offsets must be ordered and non-overlapping.");return ve=at,{generatedOffset:{generatedLine:yt+1,generatedColumn:cr+1},consumer:new Gf(eo.getArg(qe,"map"),P)}})}OT.prototype=Object.create(Gf.prototype);OT.prototype.constructor=Gf;OT.prototype._version=3;Object.defineProperty(OT.prototype,"sources",{get:function(){var v=[];for(var P=0;P<this._sections.length;P++)for(var M=0;M<this._sections[P].consumer.sources.length;M++)v.push(this._sections[P].consumer.sources[M]);return v}});OT.prototype.originalPositionFor=function(P){var M={generatedLine:eo.getArg(P,"line"),generatedColumn:eo.getArg(P,"column")},z=k0e.search(M,this._sections,function(ve,qe){var at=ve.generatedLine-qe.generatedOffset.generatedLine;if(at)return at;return ve.generatedColumn-qe.generatedOffset.generatedColumn}),ce=this._sections[z];if(!ce)return{source:null,line:null,column:null,name:null};return ce.consumer.originalPositionFor({line:M.generatedLine-(ce.generatedOffset.generatedLine-1),column:M.generatedColumn-(ce.generatedOffset.generatedLine===M.generatedLine?ce.generatedOffset.generatedColumn-1:0),bias:P.bias})};OT.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(P){return P.consumer.hasContentsOfAllSources()})};OT.prototype.sourceContentFor=function(P,M){for(var z=0;z<this._sections.length;z++){var ce=this._sections[z],ve=ce.consumer.sourceContentFor(P,!0);if(ve)return ve}if(M)return null;else throw Error('"'+P+'" is not in the SourceMap.')};OT.prototype.generatedPositionFor=function(P){for(var M=0;M<this._sections.length;M++){var z=this._sections[M];if(z.consumer._findSourceIndex(eo.getArg(P,"source"))===-1)continue;var ce=z.consumer.generatedPositionFor(P);if(ce){var ve={line:ce.line+(z.generatedOffset.generatedLine-1),column:ce.column+(z.generatedOffset.generatedLine===ce.line?z.generatedOffset.generatedColumn-1:0)};return ve}}return{line:null,column:null}};OT.prototype._parseMappings=function(P,M){this.__generatedMappings=[],this.__originalMappings=[];for(var z=0;z<this._sections.length;z++){var ce=this._sections[z],ve=ce.consumer._generatedMappings;for(var qe=0;qe<ve.length;qe++){var at=ve[qe],yt=ce.consumer._sources.at(at.source);yt=eo.computeSourceURL(ce.consumer.sourceRoot,yt,this._sourceMapURL),this._sources.add(yt),yt=this._sources.indexOf(yt);var cr=null;if(at.name)cr=ce.consumer._names.at(at.name),this._names.add(cr),cr=this._names.indexOf(cr);var vr={source:yt,generatedLine:at.generatedLine+(ce.generatedOffset.generatedLine-1),generatedColumn:at.generatedColumn+(ce.generatedOffset.generatedLine===at.generatedLine?ce.generatedOffset.generatedColumn-1:0),originalLine:at.originalLine,originalColumn:at.originalColumn,name:cr};if(this.__generatedMappings.push(vr),typeof vr.originalLine==="number")this.__originalMappings.push(vr)}}hB(this.__generatedMappings,eo.compareByGeneratedPositionsDeflated),hB(this.__originalMappings,eo.compareByOriginalPositions)};Vbt.IndexedSourceMapConsumer=OT});var qLe=W0(function(Kbt){var Gbt=v0e().SourceMapGenerator,fY=P7(),Xbt=/(\r?\n)/,Qbt=10,I7="$$$isSourceNode$$$";function S1(v,P,M,z,ce){if(this.children=[],this.sourceContents={},this.line=v==null?null:v,this.column=P==null?null:P,this.source=M==null?null:M,this.name=ce==null?null:ce,this[I7]=!0,z!=null)this.add(z)}S1.fromStringWithSourceMap=function(P,M,z){var ce=new S1,ve=P.split(Xbt),qe=0,at=function(){var xe=Nt(),Hn=Nt()||"";return xe+Hn;function Nt(){return qe<ve.length?ve[qe++]:void 0}},yt=1,cr=0,vr=null;if(M.eachMapping(function(xe){if(vr!==null)if(yt<xe.generatedLine)Dr(vr,at()),yt++,cr=0;else{var Hn=ve[qe]||"",Nt=Hn.substr(0,xe.generatedColumn-cr);ve[qe]=Hn.substr(xe.generatedColumn-cr),cr=xe.generatedColumn,Dr(vr,Nt),vr=xe;return}while(yt<xe.generatedLine)ce.add(at()),yt++;if(cr<xe.generatedColumn){var Hn=ve[qe]||"";ce.add(Hn.substr(0,xe.generatedColumn)),ve[qe]=Hn.substr(xe.generatedColumn),cr=xe.generatedColumn}vr=xe},this),qe<ve.length){if(vr)Dr(vr,at());ce.add(ve.splice(qe).join(""))}return M.sources.forEach(function(xe){var Hn=M.sourceContentFor(xe);if(Hn!=null){if(z!=null)xe=fY.join(z,xe);ce.setSourceContent(xe,Hn)}}),ce;function Dr(xe,Hn){if(xe===null||xe.source===void 0)ce.add(Hn);else{var Nt=z?fY.join(z,xe.source):xe.source;ce.add(new S1(xe.originalLine,xe.originalColumn,Nt,Hn,xe.name))}}};S1.prototype.add=function(P){if(Array.isArray(P))P.forEach(function(M){this.add(M)},this);else if(P[I7]||typeof P==="string"){if(P)this.children.push(P)}else throw TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+P);return this};S1.prototype.prepend=function(P){if(Array.isArray(P))for(var M=P.length-1;M>=0;M--)this.prepend(P[M]);else if(P[I7]||typeof P==="string")this.children.unshift(P);else throw TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+P);return this};S1.prototype.walk=function(P){var M;for(var z=0,ce=this.children.length;z<ce;z++)if(M=this.children[z],M[I7])M.walk(P);else if(M!=="")P(M,{source:this.source,line:this.line,column:this.column,name:this.name})};S1.prototype.join=function(P){var M,z,ce=this.children.length;if(ce>0){M=[];for(z=0;z<ce-1;z++)M.push(this.children[z]),M.push(P);M.push(this.children[z]),this.children=M}return this};S1.prototype.replaceRight=function(P,M){var z=this.children[this.children.length-1];if(z[I7])z.replaceRight(P,M);else if(typeof z==="string")this.children[this.children.length-1]=z.replace(P,M);else this.children.push("".replace(P,M));return this};S1.prototype.setSourceContent=function(P,M){this.sourceContents[fY.toSetString(P)]=M};S1.prototype.walkSourceContents=function(P){for(var M=0,z=this.children.length;M<z;M++)if(this.children[M][I7])this.children[M].walkSourceContents(P);var ce=Object.keys(this.sourceContents);for(var M=0,z=ce.length;M<z;M++)P(fY.fromSetString(ce[M]),this.sourceContents[ce[M]])};S1.prototype.toString=function(){var P="";return this.walk(function(M){P+=M}),P};S1.prototype.toStringWithSourceMap=function(P){var M={code:"",line:1,column:0},z=new Gbt(P),ce=!1,ve=null,qe=null,at=null,yt=null;return this.walk(function(cr,vr){if(M.code+=cr,vr.source!==null&&vr.line!==null&&vr.column!==null){if(ve!==vr.source||qe!==vr.line||at!==vr.column||yt!==vr.name)z.addMapping({source:vr.source,original:{line:vr.line,column:vr.column},generated:{line:M.line,column:M.column},name:vr.name});ve=vr.source,qe=vr.line,at=vr.column,yt=vr.name,ce=!0}else if(ce)z.addMapping({generated:{line:M.line,column:M.column}}),ve=null,ce=!1;for(var Dr=0,xe=cr.length;Dr<xe;Dr++)if(cr.charCodeAt(Dr)===Qbt){if(M.line++,M.column=0,Dr+1===xe)ve=null,ce=!1;else if(ce)z.addMapping({source:vr.source,original:{line:vr.line,column:vr.column},generated:{line:M.line,column:M.column},name:vr.name})}else M.column++}),this.walkSourceContents(function(cr,vr){z.setSourceContent(cr,vr)}),{code:M.code,map:z}};Kbt.SourceNode=S1});var $Le=W0(function(Zbt){Zbt.SourceMapGenerator=v0e().SourceMapGenerator;Zbt.SourceMapConsumer=VLe().SourceMapConsumer;Zbt.SourceNode=qLe().SourceNode});var GLe=W0(function(XEt,HLe){var nSt=Object.prototype.toString,C0e=typeof Buffer<"u"&&typeof Buffer.alloc==="function"&&typeof Buffer.allocUnsafe==="function"&&typeof Buffer.from==="function";function iSt(v){return nSt.call(v).slice(8,-1)==="ArrayBuffer"}function sSt(v,P,M){P>>>=0;var z=v.byteLength-P;if(z<0)throw RangeError("'offset' is out of bounds");if(M===void 0)M=z;else if(M>>>=0,M>z)throw RangeError("'length' is out of bounds");return C0e?Buffer.from(v.slice(P,P+M)):new Buffer(new Uint8Array(v.slice(P,P+M)))}function aSt(v,P){if(typeof P!=="string"||P==="")P="utf8";if(!Buffer.isEncoding(P))throw TypeError('"encoding" must be a valid string encoding');return C0e?Buffer.from(v,P):new Buffer(v,P)}function oSt(v,P,M){if(typeof v==="number")throw TypeError('"value" argument must not be a number');if(iSt(v))return sSt(v,P,M);if(typeof v==="string")return aSt(v,P);return C0e?Buffer.from(v):new Buffer(v)}HLe.exports=oSt});var r9e=W0(function(QEt,P0e){var cSt=$Le().SourceMapConsumer,E0e=IT("path"),M2;try{if(M2=IT("fs"),!M2.existsSync||!M2.readFileSync)M2=null}catch(v){}var lSt=GLe();function XLe(v,P){return v.require(P)}var QLe=!1,KLe=!1,w0e=!1,yB="auto",ZN={},vB={},uSt=/^data:application\/json[^,]+base64,/,eP=[],tP=[];function D0e(){if(yB==="browser")return!0;if(yB==="node")return!1;return typeof window<"u"&&typeof XMLHttpRequest==="function"&&!(window.require&&window.module&&window.process&&window.process.type==="renderer")}function _St(){return typeof process==="object"&&process!==null&&typeof process.on==="function"}function fSt(){if(typeof process==="object"&&process!==null)return process.version;else return""}function pSt(){if(typeof process==="object"&&process!==null)return process.stderr}function dSt(v){if(typeof process==="object"&&process!==null&&typeof process.exit==="function")return process.exit(v)}function pY(v){return function(P){for(var M=0;M<v.length;M++){var z=v[M](P);if(z)return z}return null}}var I0e=pY(eP);eP.push(function(v){if(v=v.trim(),/^file:/.test(v))v=v.replace(/file:\/\/\/(\w:)?/,function(z,ce){return ce?"":"/"});if(v in ZN)return ZN[v];var P="";try{if(!M2){var M=new XMLHttpRequest;if(M.open("GET",v,!1),M.send(null),M.readyState===4&&M.status===200)P=M.responseText}else if(M2.existsSync(v))P=M2.readFileSync(v,"utf8")}catch(z){}return ZN[v]=P});function A0e(v,P){if(!v)return P;var M=E0e.dirname(v),z=/^\w+:\/\/[^\/]*/.exec(M),ce=z?z[0]:"",ve=M.slice(ce.length);if(ce&&/^\/\w\:/.test(ve))return ce+="/",ce+E0e.resolve(M.slice(ce.length),P).replace(/\\/g,"/");return ce+E0e.resolve(M.slice(ce.length),P)}function mSt(v){var P;if(D0e())try{var M=new XMLHttpRequest;M.open("GET",v,!1),M.send(null),P=M.readyState===4?M.responseText:null;var z=M.getResponseHeader("SourceMap")||M.getResponseHeader("X-SourceMap");if(z)return z}catch(at){}P=I0e(v);var ce=/(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/mg,ve,qe;while(qe=ce.exec(P))ve=qe;if(!ve)return null;return ve[1]}var N0e=pY(tP);tP.push(function(v){var P=mSt(v);if(!P)return null;var M;if(uSt.test(P)){var z=P.slice(P.indexOf(",")+1);M=lSt(z,"base64").toString(),P=v}else P=A0e(v,P),M=I0e(P);if(!M)return null;return{url:P,map:M}});function O0e(v){var P=vB[v.source];if(!P){var M=N0e(v.source);if(M){if(P=vB[v.source]={url:M.url,map:new cSt(M.map)},P.map.sourcesContent)P.map.sources.forEach(function(ce,ve){var qe=P.map.sourcesContent[ve];if(qe){var at=A0e(P.url,ce);ZN[at]=qe}})}else P=vB[v.source]={url:null,map:null}}if(P&&P.map&&typeof P.map.originalPositionFor==="function"){var z=P.map.originalPositionFor(v);if(z.source!==null)return z.source=A0e(P.url,z.source),z}return v}function ZLe(v){var P=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(v);if(P){var M=O0e({source:P[2],line:+P[3],column:P[4]-1});return"eval at "+P[1]+" ("+M.source+":"+M.line+":"+(M.column+1)+")"}if(P=/^eval at ([^(]+) \((.+)\)$/.exec(v),P)return"eval at "+P[1]+" ("+ZLe(P[2])+")";return v}function gSt(){var v,P="";if(this.isNative())P="native";else{if(v=this.getScriptNameOrSourceURL(),!v&&this.isEval())P=this.getEvalOrigin(),P+=", ";if(v)P+=v;else P+="<anonymous>";var M=this.getLineNumber();if(M!=null){P+=":"+M;var z=this.getColumnNumber();if(z)P+=":"+z}}var ce="",ve=this.getFunctionName(),qe=!0,at=this.isConstructor(),yt=!(this.isToplevel()||at);if(yt){var cr=this.getTypeName();if(cr==="[object Object]")cr="null";var vr=this.getMethodName();if(ve){if(cr&&ve.indexOf(cr)!=0)ce+=cr+".";if(ce+=ve,vr&&ve.indexOf("."+vr)!=ve.length-vr.length-1)ce+=" [as "+vr+"]"}else ce+=cr+"."+(vr||"<anonymous>")}else if(at)ce+="new "+(ve||"<anonymous>");else if(ve)ce+=ve;else ce+=P,qe=!1;if(qe)ce+=" ("+P+")";return ce}function YLe(v){var P={};return Object.getOwnPropertyNames(Object.getPrototypeOf(v)).forEach(function(M){P[M]=/^(?:is|get)/.test(M)?function(){return v[M].call(v)}:v[M]}),P.toString=gSt,P}function e9e(v,P){if(P===void 0)P={nextPosition:null,curPosition:null};if(v.isNative())return P.curPosition=null,v;var M=v.getFileName()||v.getScriptNameOrSourceURL();if(M){var z=v.getLineNumber(),ce=v.getColumnNumber()-1,ve=/^v(10\.1[6-9]|10\.[2-9][0-9]|10\.[0-9]{3,}|1[2-9]\d*|[2-9]\d|\d{3,}|11\.11)/,qe=ve.test(fSt())?0:62;if(z===1&&ce>qe&&!D0e()&&!v.isEval())ce-=qe;var at=O0e({source:M,line:z,column:ce});P.curPosition=at,v=YLe(v);var yt=v.getFunctionName;return v.getFunctionName=function(){if(P.nextPosition==null)return yt();return P.nextPosition.name||yt()},v.getFileName=function(){return at.source},v.getLineNumber=function(){return at.line},v.getColumnNumber=function(){return at.column+1},v.getScriptNameOrSourceURL=function(){return at.source},v}var cr=v.isEval()&&v.getEvalOrigin();if(cr)return cr=ZLe(cr),v=YLe(v),v.getEvalOrigin=function(){return cr},v;return v}function hSt(v,P){if(w0e)ZN={},vB={};var M=v.name||"Error",z=v.message||"",ce=M+": "+z,ve={nextPosition:null,curPosition:null},qe=[];for(var at=P.length-1;at>=0;at--)qe.push(`
3
3
  at `+e9e(P[at],ve)),ve.nextPosition=ve.curPosition;return ve.curPosition=ve.nextPosition=null,ce+qe.reverse().join("")}function t9e(v){var P=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(v.stack);if(P){var M=P[1],z=+P[2],ce=+P[3],ve=ZN[M];if(!ve&&M2&&M2.existsSync(M))try{ve=M2.readFileSync(M,"utf8")}catch(at){ve=""}if(ve){var qe=ve.split(/(?:\r\n|\r|\n)/)[z-1];if(qe)return M+":"+z+`
4
4
  `+qe+`
5
- `+Array(ce).join(" ")+"^"}}return null}function ySt(v){var P=t9e(v),M=pSt();if(M&&M._handle&&M._handle.setBlocking)M._handle.setBlocking(!0);if(P)console.error(),console.error(P);console.error(v.stack),dSt(1)}function vSt(){var v=process.emit;process.emit=function(P){if(P==="uncaughtException"){var M=arguments[1]&&arguments[1].stack,z=this.listeners(P).length>0;if(M&&!z)return ySt(arguments[1])}return v.apply(this,arguments)}}var bSt=eP.slice(0),SSt=tP.slice(0);QEt.wrapCallSite=e9e;QEt.getErrorSource=t9e;QEt.mapSourcePosition=O0e;QEt.retrieveSourceMap=N0e;QEt.install=function(v){if(v=v||{},v.environment){if(yB=v.environment,["node","browser","auto"].indexOf(yB)===-1)throw Error("environment "+yB+" was unknown. Available options are {auto, browser, node}")}if(v.retrieveFile){if(v.overrideRetrieveFile)eP.length=0;eP.unshift(v.retrieveFile)}if(v.retrieveSourceMap){if(v.overrideRetrieveSourceMap)tP.length=0;tP.unshift(v.retrieveSourceMap)}if(v.hookRequire&&!D0e()){var P=XLe(P0e,"module"),M=P.prototype._compile;if(!M.__sourceMapSupport)P.prototype._compile=function(ve,qe){return ZN[qe]=ve,vB[qe]=void 0,M.call(this,ve,qe)},P.prototype._compile.__sourceMapSupport=!0}if(!w0e)w0e="emptyCacheBetweenOperations"in v?v.emptyCacheBetweenOperations:!1;if(!QLe)QLe=!0,Error.prepareStackTrace=hSt;if(!KLe){var z="handleUncaughtExceptions"in v?v.handleUncaughtExceptions:!0;try{var ce=XLe(P0e,"worker_threads");if(ce.isMainThread===!1)z=!1}catch(ve){}if(z&&_St())KLe=!0,vSt()}};QEt.resetRetrieveHandlers=function(){eP.length=0,tP.length=0,eP=bSt.slice(0),tP=SSt.slice(0),N0e=pY(tP),I0e=pY(eP)}});var i9e=W0(function(KEt,dY){var __dirname="/tmp/claude-1000/-home-alexkahn-abs-PAAS/9b0057a2-5737-48f9-9dbe-dcb83ea02b04/scratchpad/ajs-peer/node_modules/typescript/lib",__filename="/tmp/claude-1000/-home-alexkahn-abs-PAAS/9b0057a2-5737-48f9-9dbe-dcb83ea02b04/scratchpad/ajs-peer/node_modules/typescript/lib/typescript.js";/*! *****************************************************************************
5
+ `+Array(ce).join(" ")+"^"}}return null}function ySt(v){var P=t9e(v),M=pSt();if(M&&M._handle&&M._handle.setBlocking)M._handle.setBlocking(!0);if(P)console.error(),console.error(P);console.error(v.stack),dSt(1)}function vSt(){var v=process.emit;process.emit=function(P){if(P==="uncaughtException"){var M=arguments[1]&&arguments[1].stack,z=this.listeners(P).length>0;if(M&&!z)return ySt(arguments[1])}return v.apply(this,arguments)}}var bSt=eP.slice(0),SSt=tP.slice(0);QEt.wrapCallSite=e9e;QEt.getErrorSource=t9e;QEt.mapSourcePosition=O0e;QEt.retrieveSourceMap=N0e;QEt.install=function(v){if(v=v||{},v.environment){if(yB=v.environment,["node","browser","auto"].indexOf(yB)===-1)throw Error("environment "+yB+" was unknown. Available options are {auto, browser, node}")}if(v.retrieveFile){if(v.overrideRetrieveFile)eP.length=0;eP.unshift(v.retrieveFile)}if(v.retrieveSourceMap){if(v.overrideRetrieveSourceMap)tP.length=0;tP.unshift(v.retrieveSourceMap)}if(v.hookRequire&&!D0e()){var P=XLe(P0e,"module"),M=P.prototype._compile;if(!M.__sourceMapSupport)P.prototype._compile=function(ve,qe){return ZN[qe]=ve,vB[qe]=void 0,M.call(this,ve,qe)},P.prototype._compile.__sourceMapSupport=!0}if(!w0e)w0e="emptyCacheBetweenOperations"in v?v.emptyCacheBetweenOperations:!1;if(!QLe)QLe=!0,Error.prepareStackTrace=hSt;if(!KLe){var z="handleUncaughtExceptions"in v?v.handleUncaughtExceptions:!0;try{var ce=XLe(P0e,"worker_threads");if(ce.isMainThread===!1)z=!1}catch(ve){}if(z&&_St())KLe=!0,vSt()}};QEt.resetRetrieveHandlers=function(){eP.length=0,tP.length=0,eP=bSt.slice(0),tP=SSt.slice(0),N0e=pY(tP),I0e=pY(eP)}});var i9e=W0(function(KEt,dY){var __dirname="/tmp/claude-1000/-home-alexkahn-abs-PAAS/9b0057a2-5737-48f9-9dbe-dcb83ea02b04/scratchpad/abs-release/node_modules/typescript/lib",__filename="/tmp/claude-1000/-home-alexkahn-abs-PAAS/9b0057a2-5737-48f9-9dbe-dcb83ea02b04/scratchpad/abs-release/node_modules/typescript/lib/typescript.js";/*! *****************************************************************************
6
6
  Copyright (c) Microsoft Corporation. All rights reserved.
7
7
  Licensed under the Apache License, Version 2.0 (the "License"); you may not use
8
8
  this file except in compliance with the License. You may obtain a copy of the
@@ -1,28 +1,11 @@
1
- /** The published build: Bun 1.4.0 + the reactFastRefresh backport. The
2
- * checksums are the release's SHASUMS256.txt, pinned so a download that
3
- * differs by one byte is refused. */
1
+ /** The patched build `absolute dev` uses: Bun 1.4.2 + the reactFastRefresh
2
+ * backport, as bvm names it. */
4
3
  export declare const PATCHED_BUN_RELEASE: {
5
4
  readonly bunVersion: "1.4.2";
6
5
  readonly issue: "https://github.com/oven-sh/bun/issues/32919";
7
6
  readonly repo: "absolutejs/patched-bun";
8
- readonly sha256: {
9
- readonly 'bun-darwin-aarch64': "75f45c72eac0c01e579f81ec48c8530bbec72406604c09abdd1fe6947ec4ac05";
10
- readonly 'bun-darwin-x64': "0ad06bff1c847de7a592ecac2e92060dfc8f56361fe92ca52ece8a685cbf416d";
11
- readonly 'bun-freebsd-aarch64': "bbc981e3d890b65e042fbf15128d8499acf11bf29d82b1a15efc07a8d02c424d";
12
- readonly 'bun-freebsd-x64': "344e1cc9b01541ee16b93be9a946d33f9766e235aa95af758e3b7bd9ebccb354";
13
- readonly 'bun-linux-aarch64': "7ad50219c85899ba5d5ffb6728cb128a08f106d99857be7f505ec6b520a2315c";
14
- readonly 'bun-linux-aarch64-android': "699c6eb9a1ffcb6787811729ca8f4812e2f4d8969ac3c0bc6b4cfc8265bfd65c";
15
- readonly 'bun-linux-aarch64-musl': "70089d21421103d03f9bf657bba48beefb22d58b16dd974cd552ea28d1f7c087";
16
- readonly 'bun-linux-x64': "efc724f5c613ae4ae9bb884c067ac8a2b935b959a60082f204b08b4736b531e9";
17
- readonly 'bun-linux-x64-android': "e68a9486017e8a2fa02d0144807e2b48b10db3a09be05ad05b66e3bbf5197610";
18
- readonly 'bun-linux-x64-musl': "86afabbaacca2a652f9eb4821c5163935eac42ee4c966db323c066b95737fdaa";
19
- readonly 'bun-windows-aarch64': "88157fccfac80028c45609d969da819f7ba6d9dafc3c887793188b56d4bf518c";
20
- readonly 'bun-windows-x64': "6dbf24593722d1c94e9c54fafd2087a3e8966aa954f753a565e52522162634c8";
21
- };
22
- readonly tag: "bun-v1.4.2-absolute.1";
7
+ readonly version: "1.4.2-absolute.1";
23
8
  };
24
- export type PatchedBunAsset = keyof typeof PATCHED_BUN_RELEASE.sha256;
25
- type Libc = 'android' | 'glibc' | 'musl';
26
9
  type Choice = 'install' | 'later' | 'never';
27
10
  type Preference = {
28
11
  askAfter: string;
@@ -31,8 +14,8 @@ type Preference = {
31
14
  decision: 'never';
32
15
  };
33
16
  type OfferContext = {
34
- asset: PatchedBunAsset | null;
35
17
  bunVersion: string;
18
+ bvm: boolean;
36
19
  ci: boolean;
37
20
  installed: boolean;
38
21
  interactive: boolean;
@@ -41,18 +24,19 @@ type OfferContext = {
41
24
  supported: boolean;
42
25
  usesReact: boolean;
43
26
  };
44
- type InstallOptions = {
45
- asset?: PatchedBunAsset | null;
46
- /** The expected SHA-256 per asset; the pinned release unless a test swaps it. */
47
- checksums?: Readonly<Record<PatchedBunAsset, string>>;
48
- fetchImpl?: typeof fetch;
49
- home?: string;
50
- log?: (line: string) => void;
27
+ /** The npm package holding bvm's binary for a platform, as
28
+ * @absolutejs/bvm's launcher names it; null where bvm has no build. */
29
+ export declare const bvmPlatformPackage: (platform?: string, arch?: string) => string | null;
30
+ export declare const bvmRunner: (bvm: string) => (args: string[], inherit?: boolean) => {
31
+ status: number | null;
32
+ stdout: string;
51
33
  };
52
- /** The release zip for a platform, named the way Bun names its own. */
53
- export declare const installedPatchedBun: (home?: string) => string | null;
54
- export declare const patchedBunAsset: (platform?: string, arch?: string, libc?: Libc) => "bun-darwin-x64" | "bun-darwin-aarch64" | "bun-linux-x64" | "bun-linux-aarch64" | "bun-linux-x64-musl" | "bun-linux-aarch64-musl" | "bun-windows-x64" | "bun-windows-aarch64" | "bun-freebsd-aarch64" | "bun-freebsd-x64" | "bun-linux-aarch64-android" | "bun-linux-x64-android" | null;
55
- export declare const patchedBunPath: (asset: PatchedBunAsset, home?: string) => string;
34
+ /** Runs bvm; `inherit` streams its progress to the terminal. */
35
+ export type BvmRunner = ReturnType<typeof bvmRunner>;
36
+ /** bvm's binary: the one npm installed with AbsoluteJS, else `bvm` on PATH. */
37
+ export declare const findBvm: () => string | null;
38
+ /** The installed patched build's path, from bvm; null when not installed. */
39
+ export declare const installedPatchedBun: (run?: BvmRunner | null) => string | null;
56
40
  export declare const runtimeSupportsReactFastRefresh: () => boolean;
57
41
  /** Whether `absolute dev` should offer the patched build, and if not, why. */
58
42
  export declare const patchedBunOfferState: (context: OfferContext) => "installed" | "runtime-supports-refresh" | "not-a-react-project" | "unsupported-platform" | "runtime-newer" | "declined" | "asked-recently" | "non-interactive" | "offer";
@@ -62,23 +46,27 @@ export declare const readPatchedBunPreference: (home?: string) => {
62
46
  } | {
63
47
  decision: "never";
64
48
  } | null;
65
- /** Reads one file out of a zip archive (stored or deflated entries). */
66
- export declare const readZipEntry: (archive: Uint8Array, entryName: string) => Uint8Array<ArrayBufferLike>;
67
49
  export declare const writePatchedBunPreference: (preference: Preference | null, home?: string) => void;
68
50
  export declare const PATCHED_BUN_EXPLANATION: string[];
69
- /** Downloads, verifies and installs the patched build; returns its path. */
70
- export declare const installPatchedBun: (options?: InstallOptions) => Promise<string>;
51
+ /** Installs the patched build with bvm (which verifies the release's
52
+ * signature and checksum) and returns its path. */
53
+ export declare const installPatchedBun: (run?: BvmRunner | null) => string;
71
54
  export declare const parsePatchedBunChoice: (answer: string) => Choice | null;
72
- export declare const patchedBunDownloadUrl: (asset: PatchedBunAsset) => string;
73
55
  /** Checks an installed binary really is the patched build. */
74
56
  export declare const verifyPatchedBun: (path: string) => boolean;
57
+ /** Installs with bvm, probes the result, and clears the prompt state and any
58
+ * copy an earlier release kept in ~/.absolutejs/bun. */
59
+ export declare const installVerifiedPatchedBun: (home: string, run: BvmRunner | null, verify?: (path: string) => boolean) => string;
60
+ /** Releases before bvm kept the patched build in ~/.absolutejs/bun. Whoever
61
+ * has one there already chose to install it: move them onto bvm's copy. */
62
+ export declare const migrateLegacyPatchedBun: (home: string, run: BvmRunner | null, verify?: (path: string) => boolean) => string | null;
75
63
  /**
76
- * The Bun executable `absolute dev` runs its server with: the installed
77
- * patched build when there is one, otherwise `bun` from PATH after offering
64
+ * The Bun executable `absolute dev` runs its server with: the patched build
65
+ * bvm installed, when there is one, otherwise `bun` from PATH after offering
78
66
  * the patched build once (Install now / Ask me later / Don't ask again).
79
67
  * Set ABSOLUTE_PATCHED_BUN=0 to always use PATH's bun.
80
68
  */
81
69
  export declare const resolveDevBunExecutable: (projectDir?: string, home?: string) => Promise<string>;
82
70
  /** `absolute bun-patch [status|install|remove|reset]` */
83
- export declare const bunPatch: (args: string[], home?: string) => Promise<void>;
71
+ export declare const bunPatch: (args: string[], home?: string) => void;
84
72
  export {};
package/package.json CHANGED
@@ -9,6 +9,7 @@
9
9
  "dependencies": {
10
10
  "@absolutejs/auth": ">=0.75.0 <0.98.0",
11
11
  "@absolutejs/beacon": ">=0.7.0-beta.4 <0.8.0",
12
+ "@absolutejs/bvm": "^0.1.1",
12
13
  "@absolutejs/deploy": "0.27.0",
13
14
  "@absolutejs/devices": "0.7.0",
14
15
  "@absolutejs/devices-capacitor": "0.8.0",
@@ -554,7 +555,7 @@
554
555
  ]
555
556
  }
556
557
  },
557
- "version": "0.20.0-beta.132",
558
+ "version": "0.20.0-beta.133",
558
559
  "workspaces": [
559
560
  "tests/fixtures/*",
560
561
  "tests/fixtures/_packages/*"