UNPKG

@4success/nfse-campinas

Version:
9 lines 840 kB
var LO=Object.create;var su=Object.defineProperty;var FO=Object.getOwnPropertyDescriptor;var PO=Object.getOwnPropertyNames;var BO=Object.getPrototypeOf,MO=Object.prototype.hasOwnProperty;var Jt=(t,e)=>()=>(t&&(e=t(t=0)),e);var se=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Sp=(t,e)=>{for(var n in e)su(t,n,{get:e[n],enumerable:!0})},Q0=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of PO(e))!MO.call(t,i)&&i!==n&&su(t,i,{get:()=>e[i],enumerable:!(r=FO(e,i))||r.enumerable});return t};var Cn=(t,e,n)=>(n=t!=null?LO(BO(t)):{},Q0(e||!t||!t.__esModule?su(n,"default",{value:t,enumerable:!0}):n,t)),UO=t=>Q0(su({},"__esModule",{value:!0}),t);var ex=se((A9,Z0)=>{(()=>{var t={650:i=>{var o=Object.prototype.toString,c=typeof Buffer.alloc=="function"&&typeof Buffer.allocUnsafe=="function"&&typeof Buffer.from=="function";function l(g){return o.call(g).slice(8,-1)==="ArrayBuffer"}function p(g,E,_){E>>>=0;var b=g.byteLength-E;if(b<0)throw new RangeError("'offset' is out of bounds");if(_===void 0)_=b;else if(_>>>=0,_>b)throw new RangeError("'length' is out of bounds");return c?Buffer.from(g.slice(E,E+_)):new Buffer(new Uint8Array(g.slice(E,E+_)))}function h(g,E){if((typeof E!="string"||E==="")&&(E="utf8"),!Buffer.isEncoding(E))throw new TypeError('"encoding" must be a valid string encoding');return c?Buffer.from(g,E):new Buffer(g,E)}function d(g,E,_){if(typeof g=="number")throw new TypeError('"value" argument must not be a number');return l(g)?p(g,E,_):typeof g=="string"?h(g,E):c?Buffer.from(g):new Buffer(g)}i.exports=d},274:(i,o,c)=>{var l=c(339),p=Object.prototype.hasOwnProperty,h=typeof Map<"u";function d(){this._array=[],this._set=h?new Map:Object.create(null)}d.fromArray=function(E,_){for(var b=new d,T=0,v=E.length;T<v;T++)b.add(E[T],_);return b},d.prototype.size=function(){return h?this._set.size:Object.getOwnPropertyNames(this._set).length},d.prototype.add=function(E,_){var b=h?E:l.toSetString(E),T=h?this.has(E):p.call(this._set,b),v=this._array.length;(!T||_)&&this._array.push(E),T||(h?this._set.set(E,v):this._set[b]=v)},d.prototype.has=function(E){if(h)return this._set.has(E);var _=l.toSetString(E);return p.call(this._set,_)},d.prototype.indexOf=function(E){if(h){var _=this._set.get(E);if(_>=0)return _}else{var b=l.toSetString(E);if(p.call(this._set,b))return this._set[b]}throw new Error('"'+E+'" is not in the set.')},d.prototype.at=function(E){if(E>=0&&E<this._array.length)return this._array[E];throw new Error("No element indexed by "+E)},d.prototype.toArray=function(){return this._array.slice()},o.I=d},449:(i,o,c)=>{var l=c(190),p=5,h=1<<p,d=h-1,g=h;function E(b){return b<0?(-b<<1)+1:(b<<1)+0}function _(b){var T=(b&1)===1,v=b>>1;return T?-v:v}o.encode=function(T){var v="",A,D=E(T);do A=D&d,D>>>=p,D>0&&(A|=g),v+=l.encode(A);while(D>0);return v},o.decode=function(T,v,A){var D=T.length,m=0,x=0,I,C;do{if(v>=D)throw new Error("Expected more digits in base 64 VLQ value.");if(C=l.decode(T.charCodeAt(v++)),C===-1)throw new Error("Invalid base64 digit: "+T.charAt(v-1));I=!!(C&g),C&=d,m=m+(C<<x),x+=p}while(I);A.value=_(m),A.rest=v}},190:(i,o)=>{var c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");o.encode=function(l){if(0<=l&&l<c.length)return c[l];throw new TypeError("Must be between 0 and 63: "+l)},o.decode=function(l){var p=65,h=90,d=97,g=122,E=48,_=57,b=43,T=47,v=26,A=52;return p<=l&&l<=h?l-p:d<=l&&l<=g?l-d+v:E<=l&&l<=_?l-E+A:l==b?62:l==T?63:-1}},345:(i,o)=>{o.GREATEST_LOWER_BOUND=1,o.LEAST_UPPER_BOUND=2;function c(l,p,h,d,g,E){var _=Math.floor((p-l)/2)+l,b=g(h,d[_],!0);return b===0?_:b>0?p-_>1?c(_,p,h,d,g,E):E==o.LEAST_UPPER_BOUND?p<d.length?p:-1:_:_-l>1?c(l,_,h,d,g,E):E==o.LEAST_UPPER_BOUND?_:l<0?-1:l}o.search=function(p,h,d,g){if(h.length===0)return-1;var E=c(-1,h.length,p,h,d,g||o.GREATEST_LOWER_BOUND);if(E<0)return-1;for(;E-1>=0&&d(h[E],h[E-1],!0)===0;)--E;return E}},680:(i,o,c)=>{var l=c(339);function p(d,g){var E=d.generatedLine,_=g.generatedLine,b=d.generatedColumn,T=g.generatedColumn;return _>E||_==E&&T>=b||l.compareByGeneratedPositionsInflated(d,g)<=0}function h(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}h.prototype.unsortedForEach=function(g,E){this._array.forEach(g,E)},h.prototype.add=function(g){p(this._last,g)?(this._last=g,this._array.push(g)):(this._sorted=!1,this._array.push(g))},h.prototype.toArray=function(){return this._sorted||(this._array.sort(l.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},o.H=h},758:(i,o)=>{function c(h,d,g){var E=h[d];h[d]=h[g],h[g]=E}function l(h,d){return Math.round(h+Math.random()*(d-h))}function p(h,d,g,E){if(g<E){var _=l(g,E),b=g-1;c(h,_,E);for(var T=h[E],v=g;v<E;v++)d(h[v],T)<=0&&(b+=1,c(h,b,v));c(h,b+1,v);var A=b+1;p(h,d,g,A-1),p(h,d,A+1,E)}}o.U=function(h,d){p(h,d,0,h.length-1)}},952:(i,o,c)=>{var l,p=c(339),h=c(345),d=c(274).I,g=c(449),E=c(758).U;function _(A,D){var m=A;return typeof A=="string"&&(m=p.parseSourceMapInput(A)),m.sections!=null?new v(m,D):new b(m,D)}_.fromSourceMap=function(A,D){return b.fromSourceMap(A,D)},_.prototype._version=3,_.prototype.__generatedMappings=null,Object.defineProperty(_.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),_.prototype.__originalMappings=null,Object.defineProperty(_.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),_.prototype._charIsMappingSeparator=function(D,m){var x=D.charAt(m);return x===";"||x===","},_.prototype._parseMappings=function(D,m){throw new Error("Subclasses must implement _parseMappings")},_.GENERATED_ORDER=1,_.ORIGINAL_ORDER=2,_.GREATEST_LOWER_BOUND=1,_.LEAST_UPPER_BOUND=2,_.prototype.eachMapping=function(D,m,x){var I=m||null,C=x||_.GENERATED_ORDER,P;switch(C){case _.GENERATED_ORDER:P=this._generatedMappings;break;case _.ORIGINAL_ORDER:P=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var R=this.sourceRoot;P.map(function(O){var F=O.source===null?null:this._sources.at(O.source);return F=p.computeSourceURL(R,F,this._sourceMapURL),{source:F,generatedLine:O.generatedLine,generatedColumn:O.generatedColumn,originalLine:O.originalLine,originalColumn:O.originalColumn,name:O.name===null?null:this._names.at(O.name)}},this).forEach(D,I)},_.prototype.allGeneratedPositionsFor=function(D){var m=p.getArg(D,"line"),x={source:p.getArg(D,"source"),originalLine:m,originalColumn:p.getArg(D,"column",0)};if(x.source=this._findSourceIndex(x.source),x.source<0)return[];var I=[],C=this._findMapping(x,this._originalMappings,"originalLine","originalColumn",p.compareByOriginalPositions,h.LEAST_UPPER_BOUND);if(C>=0){var P=this._originalMappings[C];if(D.column===void 0)for(var R=P.originalLine;P&&P.originalLine===R;)I.push({line:p.getArg(P,"generatedLine",null),column:p.getArg(P,"generatedColumn",null),lastColumn:p.getArg(P,"lastGeneratedColumn",null)}),P=this._originalMappings[++C];else for(var O=P.originalColumn;P&&P.originalLine===m&&P.originalColumn==O;)I.push({line:p.getArg(P,"generatedLine",null),column:p.getArg(P,"generatedColumn",null),lastColumn:p.getArg(P,"lastGeneratedColumn",null)}),P=this._originalMappings[++C]}return I},o.SourceMapConsumer=_;function b(A,D){var m=A;typeof A=="string"&&(m=p.parseSourceMapInput(A));var x=p.getArg(m,"version"),I=p.getArg(m,"sources"),C=p.getArg(m,"names",[]),P=p.getArg(m,"sourceRoot",null),R=p.getArg(m,"sourcesContent",null),O=p.getArg(m,"mappings"),F=p.getArg(m,"file",null);if(x!=this._version)throw new Error("Unsupported version: "+x);P&&(P=p.normalize(P)),I=I.map(String).map(p.normalize).map(function(U){return P&&p.isAbsolute(P)&&p.isAbsolute(U)?p.relative(P,U):U}),this._names=d.fromArray(C.map(String),!0),this._sources=d.fromArray(I,!0),this._absoluteSources=this._sources.toArray().map(function(U){return p.computeSourceURL(P,U,D)}),this.sourceRoot=P,this.sourcesContent=R,this._mappings=O,this._sourceMapURL=D,this.file=F}b.prototype=Object.create(_.prototype),b.prototype.consumer=_,b.prototype._findSourceIndex=function(A){var D=A;if(this.sourceRoot!=null&&(D=p.relative(this.sourceRoot,D)),this._sources.has(D))return this._sources.indexOf(D);var m;for(m=0;m<this._absoluteSources.length;++m)if(this._absoluteSources[m]==A)return m;return-1},b.fromSourceMap=function(D,m){var x=Object.create(b.prototype),I=x._names=d.fromArray(D._names.toArray(),!0),C=x._sources=d.fromArray(D._sources.toArray(),!0);x.sourceRoot=D._sourceRoot,x.sourcesContent=D._generateSourcesContent(x._sources.toArray(),x.sourceRoot),x.file=D._file,x._sourceMapURL=m,x._absoluteSources=x._sources.toArray().map(function(G){return p.computeSourceURL(x.sourceRoot,G,m)});for(var P=D._mappings.toArray().slice(),R=x.__generatedMappings=[],O=x.__originalMappings=[],F=0,U=P.length;F<U;F++){var $=P[F],ie=new T;ie.generatedLine=$.generatedLine,ie.generatedColumn=$.generatedColumn,$.source&&(ie.source=C.indexOf($.source),ie.originalLine=$.originalLine,ie.originalColumn=$.originalColumn,$.name&&(ie.name=I.indexOf($.name)),O.push(ie)),R.push(ie)}return E(x.__originalMappings,p.compareByOriginalPositions),x},b.prototype._version=3,Object.defineProperty(b.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function T(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}b.prototype._parseMappings=function(D,m){for(var x=1,I=0,C=0,P=0,R=0,O=0,F=D.length,U=0,$={},ie={},G=[],ce=[],ne,J,ee,ve,Ae;U<F;)if(D.charAt(U)===";")x++,U++,I=0;else if(D.charAt(U)===",")U++;else{for(ne=new T,ne.generatedLine=x,ve=U;ve<F&&!this._charIsMappingSeparator(D,ve);ve++);if(J=D.slice(U,ve),ee=$[J],ee)U+=J.length;else{for(ee=[];U<ve;)g.decode(D,U,ie),Ae=ie.value,U=ie.rest,ee.push(Ae);if(ee.length===2)throw new Error("Found a source, but no line and column");if(ee.length===3)throw new Error("Found a source and line, but no column");$[J]=ee}ne.generatedColumn=I+ee[0],I=ne.generatedColumn,ee.length>1&&(ne.source=R+ee[1],R+=ee[1],ne.originalLine=C+ee[2],C=ne.originalLine,ne.originalLine+=1,ne.originalColumn=P+ee[3],P=ne.originalColumn,ee.length>4&&(ne.name=O+ee[4],O+=ee[4])),ce.push(ne),typeof ne.originalLine=="number"&&G.push(ne)}E(ce,p.compareByGeneratedPositionsDeflated),this.__generatedMappings=ce,E(G,p.compareByOriginalPositions),this.__originalMappings=G},b.prototype._findMapping=function(D,m,x,I,C,P){if(D[x]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+D[x]);if(D[I]<0)throw new TypeError("Column must be greater than or equal to 0, got "+D[I]);return h.search(D,m,C,P)},b.prototype.computeColumnSpans=function(){for(var D=0;D<this._generatedMappings.length;++D){var m=this._generatedMappings[D];if(D+1<this._generatedMappings.length){var x=this._generatedMappings[D+1];if(m.generatedLine===x.generatedLine){m.lastGeneratedColumn=x.generatedColumn-1;continue}}m.lastGeneratedColumn=1/0}},b.prototype.originalPositionFor=function(D){var m={generatedLine:p.getArg(D,"line"),generatedColumn:p.getArg(D,"column")},x=this._findMapping(m,this._generatedMappings,"generatedLine","generatedColumn",p.compareByGeneratedPositionsDeflated,p.getArg(D,"bias",_.GREATEST_LOWER_BOUND));if(x>=0){var I=this._generatedMappings[x];if(I.generatedLine===m.generatedLine){var C=p.getArg(I,"source",null);C!==null&&(C=this._sources.at(C),C=p.computeSourceURL(this.sourceRoot,C,this._sourceMapURL));var P=p.getArg(I,"name",null);return P!==null&&(P=this._names.at(P)),{source:C,line:p.getArg(I,"originalLine",null),column:p.getArg(I,"originalColumn",null),name:P}}}return{source:null,line:null,column:null,name:null}},b.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(D){return D==null}):!1},b.prototype.sourceContentFor=function(D,m){if(!this.sourcesContent)return null;var x=this._findSourceIndex(D);if(x>=0)return this.sourcesContent[x];var I=D;this.sourceRoot!=null&&(I=p.relative(this.sourceRoot,I));var C;if(this.sourceRoot!=null&&(C=p.urlParse(this.sourceRoot))){var P=I.replace(/^file:\/\//,"");if(C.scheme=="file"&&this._sources.has(P))return this.sourcesContent[this._sources.indexOf(P)];if((!C.path||C.path=="/")&&this._sources.has("/"+I))return this.sourcesContent[this._sources.indexOf("/"+I)]}if(m)return null;throw new Error('"'+I+'" is not in the SourceMap.')},b.prototype.generatedPositionFor=function(D){var m=p.getArg(D,"source");if(m=this._findSourceIndex(m),m<0)return{line:null,column:null,lastColumn:null};var x={source:m,originalLine:p.getArg(D,"line"),originalColumn:p.getArg(D,"column")},I=this._findMapping(x,this._originalMappings,"originalLine","originalColumn",p.compareByOriginalPositions,p.getArg(D,"bias",_.GREATEST_LOWER_BOUND));if(I>=0){var C=this._originalMappings[I];if(C.source===x.source)return{line:p.getArg(C,"generatedLine",null),column:p.getArg(C,"generatedColumn",null),lastColumn:p.getArg(C,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},l=b;function v(A,D){var m=A;typeof A=="string"&&(m=p.parseSourceMapInput(A));var x=p.getArg(m,"version"),I=p.getArg(m,"sections");if(x!=this._version)throw new Error("Unsupported version: "+x);this._sources=new d,this._names=new d;var C={line:-1,column:0};this._sections=I.map(function(P){if(P.url)throw new Error("Support for url field in sections not implemented.");var R=p.getArg(P,"offset"),O=p.getArg(R,"line"),F=p.getArg(R,"column");if(O<C.line||O===C.line&&F<C.column)throw new Error("Section offsets must be ordered and non-overlapping.");return C=R,{generatedOffset:{generatedLine:O+1,generatedColumn:F+1},consumer:new _(p.getArg(P,"map"),D)}})}v.prototype=Object.create(_.prototype),v.prototype.constructor=_,v.prototype._version=3,Object.defineProperty(v.prototype,"sources",{get:function(){for(var A=[],D=0;D<this._sections.length;D++)for(var m=0;m<this._sections[D].consumer.sources.length;m++)A.push(this._sections[D].consumer.sources[m]);return A}}),v.prototype.originalPositionFor=function(D){var m={generatedLine:p.getArg(D,"line"),generatedColumn:p.getArg(D,"column")},x=h.search(m,this._sections,function(C,P){var R=C.generatedLine-P.generatedOffset.generatedLine;return R||C.generatedColumn-P.generatedOffset.generatedColumn}),I=this._sections[x];return I?I.consumer.originalPositionFor({line:m.generatedLine-(I.generatedOffset.generatedLine-1),column:m.generatedColumn-(I.generatedOffset.generatedLine===m.generatedLine?I.generatedOffset.generatedColumn-1:0),bias:D.bias}):{source:null,line:null,column:null,name:null}},v.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(D){return D.consumer.hasContentsOfAllSources()})},v.prototype.sourceContentFor=function(D,m){for(var x=0;x<this._sections.length;x++){var I=this._sections[x],C=I.consumer.sourceContentFor(D,!0);if(C)return C}if(m)return null;throw new Error('"'+D+'" is not in the SourceMap.')},v.prototype.generatedPositionFor=function(D){for(var m=0;m<this._sections.length;m++){var x=this._sections[m];if(x.consumer._findSourceIndex(p.getArg(D,"source"))!==-1){var I=x.consumer.generatedPositionFor(D);if(I){var C={line:I.line+(x.generatedOffset.generatedLine-1),column:I.column+(x.generatedOffset.generatedLine===I.line?x.generatedOffset.generatedColumn-1:0)};return C}}}return{line:null,column:null}},v.prototype._parseMappings=function(D,m){this.__generatedMappings=[],this.__originalMappings=[];for(var x=0;x<this._sections.length;x++)for(var I=this._sections[x],C=I.consumer._generatedMappings,P=0;P<C.length;P++){var R=C[P],O=I.consumer._sources.at(R.source);O=p.computeSourceURL(I.consumer.sourceRoot,O,this._sourceMapURL),this._sources.add(O),O=this._sources.indexOf(O);var F=null;R.name&&(F=I.consumer._names.at(R.name),this._names.add(F),F=this._names.indexOf(F));var U={source:O,generatedLine:R.generatedLine+(I.generatedOffset.generatedLine-1),generatedColumn:R.generatedColumn+(I.generatedOffset.generatedLine===R.generatedLine?I.generatedOffset.generatedColumn-1:0),originalLine:R.originalLine,originalColumn:R.originalColumn,name:F};this.__generatedMappings.push(U),typeof U.originalLine=="number"&&this.__originalMappings.push(U)}E(this.__generatedMappings,p.compareByGeneratedPositionsDeflated),E(this.__originalMappings,p.compareByOriginalPositions)},l=v},591:(i,o,c)=>{var l=c(449),p=c(339),h=c(274).I,d=c(680).H;function g(E){E||(E={}),this._file=p.getArg(E,"file",null),this._sourceRoot=p.getArg(E,"sourceRoot",null),this._skipValidation=p.getArg(E,"skipValidation",!1),this._sources=new h,this._names=new h,this._mappings=new d,this._sourcesContents=null}g.prototype._version=3,g.fromSourceMap=function(_){var b=_.sourceRoot,T=new g({file:_.file,sourceRoot:b});return _.eachMapping(function(v){var A={generated:{line:v.generatedLine,column:v.generatedColumn}};v.source!=null&&(A.source=v.source,b!=null&&(A.source=p.relative(b,A.source)),A.original={line:v.originalLine,column:v.originalColumn},v.name!=null&&(A.name=v.name)),T.addMapping(A)}),_.sources.forEach(function(v){var A=v;b!==null&&(A=p.relative(b,v)),T._sources.has(A)||T._sources.add(A);var D=_.sourceContentFor(v);D!=null&&T.setSourceContent(v,D)}),T},g.prototype.addMapping=function(_){var b=p.getArg(_,"generated"),T=p.getArg(_,"original",null),v=p.getArg(_,"source",null),A=p.getArg(_,"name",null);this._skipValidation||this._validateMapping(b,T,v,A),v!=null&&(v=String(v),this._sources.has(v)||this._sources.add(v)),A!=null&&(A=String(A),this._names.has(A)||this._names.add(A)),this._mappings.add({generatedLine:b.line,generatedColumn:b.column,originalLine:T!=null&&T.line,originalColumn:T!=null&&T.column,source:v,name:A})},g.prototype.setSourceContent=function(_,b){var T=_;this._sourceRoot!=null&&(T=p.relative(this._sourceRoot,T)),b!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[p.toSetString(T)]=b):this._sourcesContents&&(delete this._sourcesContents[p.toSetString(T)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},g.prototype.applySourceMap=function(_,b,T){var v=b;if(b==null){if(_.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);v=_.file}var A=this._sourceRoot;A!=null&&(v=p.relative(A,v));var D=new h,m=new h;this._mappings.unsortedForEach(function(x){if(x.source===v&&x.originalLine!=null){var I=_.originalPositionFor({line:x.originalLine,column:x.originalColumn});I.source!=null&&(x.source=I.source,T!=null&&(x.source=p.join(T,x.source)),A!=null&&(x.source=p.relative(A,x.source)),x.originalLine=I.line,x.originalColumn=I.column,I.name!=null&&(x.name=I.name))}var C=x.source;C!=null&&!D.has(C)&&D.add(C);var P=x.name;P!=null&&!m.has(P)&&m.add(P)},this),this._sources=D,this._names=m,_.sources.forEach(function(x){var I=_.sourceContentFor(x);I!=null&&(T!=null&&(x=p.join(T,x)),A!=null&&(x=p.relative(A,x)),this.setSourceContent(x,I))},this)},g.prototype._validateMapping=function(_,b,T,v){if(b&&typeof b.line!="number"&&typeof b.column!="number")throw new 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(!(_&&"line"in _&&"column"in _&&_.line>0&&_.column>=0&&!b&&!T&&!v)){if(_&&"line"in _&&"column"in _&&b&&"line"in b&&"column"in b&&_.line>0&&_.column>=0&&b.line>0&&b.column>=0&&T)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:_,source:T,original:b,name:v}))}},g.prototype._serializeMappings=function(){for(var _=0,b=1,T=0,v=0,A=0,D=0,m="",x,I,C,P,R=this._mappings.toArray(),O=0,F=R.length;O<F;O++){if(I=R[O],x="",I.generatedLine!==b)for(_=0;I.generatedLine!==b;)x+=";",b++;else if(O>0){if(!p.compareByGeneratedPositionsInflated(I,R[O-1]))continue;x+=","}x+=l.encode(I.generatedColumn-_),_=I.generatedColumn,I.source!=null&&(P=this._sources.indexOf(I.source),x+=l.encode(P-D),D=P,x+=l.encode(I.originalLine-1-v),v=I.originalLine-1,x+=l.encode(I.originalColumn-T),T=I.originalColumn,I.name!=null&&(C=this._names.indexOf(I.name),x+=l.encode(C-A),A=C)),m+=x}return m},g.prototype._generateSourcesContent=function(_,b){return _.map(function(T){if(!this._sourcesContents)return null;b!=null&&(T=p.relative(b,T));var v=p.toSetString(T);return Object.prototype.hasOwnProperty.call(this._sourcesContents,v)?this._sourcesContents[v]:null},this)},g.prototype.toJSON=function(){var _={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(_.file=this._file),this._sourceRoot!=null&&(_.sourceRoot=this._sourceRoot),this._sourcesContents&&(_.sourcesContent=this._generateSourcesContent(_.sources,_.sourceRoot)),_},g.prototype.toString=function(){return JSON.stringify(this.toJSON())},o.h=g},351:(i,o,c)=>{var l,p=c(591).h,h=c(339),d=/(\r?\n)/,g=10,E="$$$isSourceNode$$$";function _(b,T,v,A,D){this.children=[],this.sourceContents={},this.line=b??null,this.column=T??null,this.source=v??null,this.name=D??null,this[E]=!0,A!=null&&this.add(A)}_.fromStringWithSourceMap=function(T,v,A){var D=new _,m=T.split(d),x=0,I=function(){var F=$(),U=$()||"";return F+U;function $(){return x<m.length?m[x++]:void 0}},C=1,P=0,R=null;return v.eachMapping(function(F){if(R!==null)if(C<F.generatedLine)O(R,I()),C++,P=0;else{var U=m[x]||"",$=U.substr(0,F.generatedColumn-P);m[x]=U.substr(F.generatedColumn-P),P=F.generatedColumn,O(R,$),R=F;return}for(;C<F.generatedLine;)D.add(I()),C++;if(P<F.generatedColumn){var U=m[x]||"";D.add(U.substr(0,F.generatedColumn)),m[x]=U.substr(F.generatedColumn),P=F.generatedColumn}R=F},this),x<m.length&&(R&&O(R,I()),D.add(m.splice(x).join(""))),v.sources.forEach(function(F){var U=v.sourceContentFor(F);U!=null&&(A!=null&&(F=h.join(A,F)),D.setSourceContent(F,U))}),D;function O(F,U){if(F===null||F.source===void 0)D.add(U);else{var $=A?h.join(A,F.source):F.source;D.add(new _(F.originalLine,F.originalColumn,$,U,F.name))}}},_.prototype.add=function(T){if(Array.isArray(T))T.forEach(function(v){this.add(v)},this);else if(T[E]||typeof T=="string")T&&this.children.push(T);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+T);return this},_.prototype.prepend=function(T){if(Array.isArray(T))for(var v=T.length-1;v>=0;v--)this.prepend(T[v]);else if(T[E]||typeof T=="string")this.children.unshift(T);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+T);return this},_.prototype.walk=function(T){for(var v,A=0,D=this.children.length;A<D;A++)v=this.children[A],v[E]?v.walk(T):v!==""&&T(v,{source:this.source,line:this.line,column:this.column,name:this.name})},_.prototype.join=function(T){var v,A,D=this.children.length;if(D>0){for(v=[],A=0;A<D-1;A++)v.push(this.children[A]),v.push(T);v.push(this.children[A]),this.children=v}return this},_.prototype.replaceRight=function(T,v){var A=this.children[this.children.length-1];return A[E]?A.replaceRight(T,v):typeof A=="string"?this.children[this.children.length-1]=A.replace(T,v):this.children.push("".replace(T,v)),this},_.prototype.setSourceContent=function(T,v){this.sourceContents[h.toSetString(T)]=v},_.prototype.walkSourceContents=function(T){for(var v=0,A=this.children.length;v<A;v++)this.children[v][E]&&this.children[v].walkSourceContents(T);for(var D=Object.keys(this.sourceContents),v=0,A=D.length;v<A;v++)T(h.fromSetString(D[v]),this.sourceContents[D[v]])},_.prototype.toString=function(){var T="";return this.walk(function(v){T+=v}),T},_.prototype.toStringWithSourceMap=function(T){var v={code:"",line:1,column:0},A=new p(T),D=!1,m=null,x=null,I=null,C=null;return this.walk(function(P,R){v.code+=P,R.source!==null&&R.line!==null&&R.column!==null?((m!==R.source||x!==R.line||I!==R.column||C!==R.name)&&A.addMapping({source:R.source,original:{line:R.line,column:R.column},generated:{line:v.line,column:v.column},name:R.name}),m=R.source,x=R.line,I=R.column,C=R.name,D=!0):D&&(A.addMapping({generated:{line:v.line,column:v.column}}),m=null,D=!1);for(var O=0,F=P.length;O<F;O++)P.charCodeAt(O)===g?(v.line++,v.column=0,O+1===F?(m=null,D=!1):D&&A.addMapping({source:R.source,original:{line:R.line,column:R.column},generated:{line:v.line,column:v.column},name:R.name})):v.column++}),this.walkSourceContents(function(P,R){A.setSourceContent(P,R)}),{code:v.code,map:A}},l=_},339:(i,o)=>{function c(O,F,U){if(F in O)return O[F];if(arguments.length===3)return U;throw new Error('"'+F+'" is a required argument.')}o.getArg=c;var l=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,p=/^data:.+\,.+$/;function h(O){var F=O.match(l);return F?{scheme:F[1],auth:F[2],host:F[3],port:F[4],path:F[5]}:null}o.urlParse=h;function d(O){var F="";return O.scheme&&(F+=O.scheme+":"),F+="//",O.auth&&(F+=O.auth+"@"),O.host&&(F+=O.host),O.port&&(F+=":"+O.port),O.path&&(F+=O.path),F}o.urlGenerate=d;function g(O){var F=O,U=h(O);if(U){if(!U.path)return O;F=U.path}for(var $=o.isAbsolute(F),ie=F.split(/\/+/),G,ce=0,ne=ie.length-1;ne>=0;ne--)G=ie[ne],G==="."?ie.splice(ne,1):G===".."?ce++:ce>0&&(G===""?(ie.splice(ne+1,ce),ce=0):(ie.splice(ne,2),ce--));return F=ie.join("/"),F===""&&(F=$?"/":"."),U?(U.path=F,d(U)):F}o.normalize=g;function E(O,F){O===""&&(O="."),F===""&&(F=".");var U=h(F),$=h(O);if($&&(O=$.path||"/"),U&&!U.scheme)return $&&(U.scheme=$.scheme),d(U);if(U||F.match(p))return F;if($&&!$.host&&!$.path)return $.host=F,d($);var ie=F.charAt(0)==="/"?F:g(O.replace(/\/+$/,"")+"/"+F);return $?($.path=ie,d($)):ie}o.join=E,o.isAbsolute=function(O){return O.charAt(0)==="/"||l.test(O)};function _(O,F){O===""&&(O="."),O=O.replace(/\/$/,"");for(var U=0;F.indexOf(O+"/")!==0;){var $=O.lastIndexOf("/");if($<0||(O=O.slice(0,$),O.match(/^([^\/]+:\/)?\/*$/)))return F;++U}return Array(U+1).join("../")+F.substr(O.length+1)}o.relative=_;var b=function(){var O=Object.create(null);return!("__proto__"in O)}();function T(O){return O}function v(O){return D(O)?"$"+O:O}o.toSetString=b?T:v;function A(O){return D(O)?O.slice(1):O}o.fromSetString=b?T:A;function D(O){if(!O)return!1;var F=O.length;if(F<9||O.charCodeAt(F-1)!==95||O.charCodeAt(F-2)!==95||O.charCodeAt(F-3)!==111||O.charCodeAt(F-4)!==116||O.charCodeAt(F-5)!==111||O.charCodeAt(F-6)!==114||O.charCodeAt(F-7)!==112||O.charCodeAt(F-8)!==95||O.charCodeAt(F-9)!==95)return!1;for(var U=F-10;U>=0;U--)if(O.charCodeAt(U)!==36)return!1;return!0}function m(O,F,U){var $=I(O.source,F.source);return $!==0||($=O.originalLine-F.originalLine,$!==0)||($=O.originalColumn-F.originalColumn,$!==0||U)||($=O.generatedColumn-F.generatedColumn,$!==0)||($=O.generatedLine-F.generatedLine,$!==0)?$:I(O.name,F.name)}o.compareByOriginalPositions=m;function x(O,F,U){var $=O.generatedLine-F.generatedLine;return $!==0||($=O.generatedColumn-F.generatedColumn,$!==0||U)||($=I(O.source,F.source),$!==0)||($=O.originalLine-F.originalLine,$!==0)||($=O.originalColumn-F.originalColumn,$!==0)?$:I(O.name,F.name)}o.compareByGeneratedPositionsDeflated=x;function I(O,F){return O===F?0:O===null?1:F===null?-1:O>F?1:-1}function C(O,F){var U=O.generatedLine-F.generatedLine;return U!==0||(U=O.generatedColumn-F.generatedColumn,U!==0)||(U=I(O.source,F.source),U!==0)||(U=O.originalLine-F.originalLine,U!==0)||(U=O.originalColumn-F.originalColumn,U!==0)?U:I(O.name,F.name)}o.compareByGeneratedPositionsInflated=C;function P(O){return JSON.parse(O.replace(/^\)]}'[^\n]*\n/,""))}o.parseSourceMapInput=P;function R(O,F,U){if(F=F||"",O&&(O[O.length-1]!=="/"&&F[0]!=="/"&&(O+="/"),F=O+F),U){var $=h(U);if(!$)throw new Error("sourceMapURL could not be parsed");if($.path){var ie=$.path.lastIndexOf("/");ie>=0&&($.path=$.path.substring(0,ie+1))}F=E(d($),F)}return g(F)}o.computeSourceURL=R},997:(i,o,c)=>{c(591).h,o.SourceMapConsumer=c(952).SourceMapConsumer,c(351)},284:(i,o,c)=>{i=c.nmd(i);var l=c(997).SourceMapConsumer,p=c(17),h;try{h=c(147),(!h.existsSync||!h.readFileSync)&&(h=null)}catch{}var d=c(650);function g(y,w){return y.require(w)}var E=!1,_=!1,b=!1,T="auto",v={},A={},D=/^data:application\/json[^,]+base64,/,m=[],x=[];function I(){return T==="browser"?!0:T==="node"?!1:typeof window<"u"&&typeof XMLHttpRequest=="function"&&!(window.require&&window.module&&window.process&&window.process.type==="renderer")}function C(){return typeof process=="object"&&process!==null&&typeof process.on=="function"}function P(){return typeof process=="object"&&process!==null?process.version:""}function R(){if(typeof process=="object"&&process!==null)return process.stderr}function O(y){if(typeof process=="object"&&process!==null&&typeof process.exit=="function")return process.exit(y)}function F(y){return function(w){for(var q=0;q<y.length;q++){var B=y[q](w);if(B)return B}return null}}var U=F(m);m.push(function(y){if(y=y.trim(),/^file:/.test(y)&&(y=y.replace(/file:\/\/\/(\w:)?/,function(B,z){return z?"":"/"})),y in v)return v[y];var w="";try{if(h)h.existsSync(y)&&(w=h.readFileSync(y,"utf8"));else{var q=new XMLHttpRequest;q.open("GET",y,!1),q.send(null),q.readyState===4&&q.status===200&&(w=q.responseText)}}catch{}return v[y]=w});function $(y,w){if(!y)return w;var q=p.dirname(y),B=/^\w+:\/\/[^\/]*/.exec(q),z=B?B[0]:"",W=q.slice(z.length);return z&&/^\/\w\:/.test(W)?(z+="/",z+p.resolve(q.slice(z.length),w).replace(/\\/g,"/")):z+p.resolve(q.slice(z.length),w)}function ie(y){var w;if(I())try{var q=new XMLHttpRequest;q.open("GET",y,!1),q.send(null),w=q.readyState===4?q.responseText:null;var B=q.getResponseHeader("SourceMap")||q.getResponseHeader("X-SourceMap");if(B)return B}catch{}w=U(y);for(var z=/(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/gm,W,Y;Y=z.exec(w);)W=Y;return W?W[1]:null}var G=F(x);x.push(function(y){var w=ie(y);if(!w)return null;var q;if(D.test(w)){var B=w.slice(w.indexOf(",")+1);q=d(B,"base64").toString(),w=y}else w=$(y,w),q=U(w);return q?{url:w,map:q}:null});function ce(y){var w=A[y.source];if(!w){var q=G(y.source);q?(w=A[y.source]={url:q.url,map:new l(q.map)},w.map.sourcesContent&&w.map.sources.forEach(function(z,W){var Y=w.map.sourcesContent[W];if(Y){var me=$(w.url,z);v[me]=Y}})):w=A[y.source]={url:null,map:null}}if(w&&w.map&&typeof w.map.originalPositionFor=="function"){var B=w.map.originalPositionFor(y);if(B.source!==null)return B.source=$(w.url,B.source),B}return y}function ne(y){var w=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(y);if(w){var q=ce({source:w[2],line:+w[3],column:w[4]-1});return"eval at "+w[1]+" ("+q.source+":"+q.line+":"+(q.column+1)+")"}return w=/^eval at ([^(]+) \((.+)\)$/.exec(y),w?"eval at "+w[1]+" ("+ne(w[2])+")":y}function J(){var y,w="";if(this.isNative())w="native";else{y=this.getScriptNameOrSourceURL(),!y&&this.isEval()&&(w=this.getEvalOrigin(),w+=", "),y?w+=y:w+="<anonymous>";var q=this.getLineNumber();if(q!=null){w+=":"+q;var B=this.getColumnNumber();B&&(w+=":"+B)}}var z="",W=this.getFunctionName(),Y=!0,me=this.isConstructor(),we=!(this.isToplevel()||me);if(we){var ae=this.getTypeName();ae==="[object Object]"&&(ae="null");var ye=this.getMethodName();W?(ae&&W.indexOf(ae)!=0&&(z+=ae+"."),z+=W,ye&&W.indexOf("."+ye)!=W.length-ye.length-1&&(z+=" [as "+ye+"]")):z+=ae+"."+(ye||"<anonymous>")}else me?z+="new "+(W||"<anonymous>"):W?z+=W:(z+=w,Y=!1);return Y&&(z+=" ("+w+")"),z}function ee(y){var w={};return Object.getOwnPropertyNames(Object.getPrototypeOf(y)).forEach(function(q){w[q]=/^(?:is|get)/.test(q)?function(){return y[q].call(y)}:y[q]}),w.toString=J,w}function ve(y,w){if(w===void 0&&(w={nextPosition:null,curPosition:null}),y.isNative())return w.curPosition=null,y;var q=y.getFileName()||y.getScriptNameOrSourceURL();if(q){var B=y.getLineNumber(),z=y.getColumnNumber()-1,W=/^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)/,Y=W.test(P())?0:62;B===1&&z>Y&&!I()&&!y.isEval()&&(z-=Y);var me=ce({source:q,line:B,column:z});w.curPosition=me,y=ee(y);var we=y.getFunctionName;return y.getFunctionName=function(){return w.nextPosition==null?we():w.nextPosition.name||we()},y.getFileName=function(){return me.source},y.getLineNumber=function(){return me.line},y.getColumnNumber=function(){return me.column+1},y.getScriptNameOrSourceURL=function(){return me.source},y}var ae=y.isEval()&&y.getEvalOrigin();return ae&&(ae=ne(ae),y=ee(y),y.getEvalOrigin=function(){return ae}),y}function Ae(y,w){b&&(v={},A={});for(var q=y.name||"Error",B=y.message||"",z=q+": "+B,W={nextPosition:null,curPosition:null},Y=[],me=w.length-1;me>=0;me--)Y.push(` at `+ve(w[me],W)),W.nextPosition=W.curPosition;return W.curPosition=W.nextPosition=null,z+Y.reverse().join("")}function xe(y){var w=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(y.stack);if(w){var q=w[1],B=+w[2],z=+w[3],W=v[q];if(!W&&h&&h.existsSync(q))try{W=h.readFileSync(q,"utf8")}catch{W=""}if(W){var Y=W.split(/(?:\r\n|\r|\n)/)[B-1];if(Y)return q+":"+B+` `+Y+` `+new Array(z).join(" ")+"^"}}return null}function ke(y){var w=xe(y),q=R();q&&q._handle&&q._handle.setBlocking&&q._handle.setBlocking(!0),w&&(console.error(),console.error(w)),console.error(y.stack),O(1)}function We(){var y=process.emit;process.emit=function(w){if(w==="uncaughtException"){var q=arguments[1]&&arguments[1].stack,B=this.listeners(w).length>0;if(q&&!B)return ke(arguments[1])}return y.apply(this,arguments)}}var je=m.slice(0),Pe=x.slice(0);o.wrapCallSite=ve,o.getErrorSource=xe,o.mapSourcePosition=ce,o.retrieveSourceMap=G,o.install=function(y){if(y=y||{},y.environment&&(T=y.environment,["node","browser","auto"].indexOf(T)===-1))throw new Error("environment "+T+" was unknown. Available options are {auto, browser, node}");if(y.retrieveFile&&(y.overrideRetrieveFile&&(m.length=0),m.unshift(y.retrieveFile)),y.retrieveSourceMap&&(y.overrideRetrieveSourceMap&&(x.length=0),x.unshift(y.retrieveSourceMap)),y.hookRequire&&!I()){var w=g(i,"module"),q=w.prototype._compile;q.__sourceMapSupport||(w.prototype._compile=function(W,Y){return v[Y]=W,A[Y]=void 0,q.call(this,W,Y)},w.prototype._compile.__sourceMapSupport=!0)}if(b||(b="emptyCacheBetweenOperations"in y?y.emptyCacheBetweenOperations:!1),E||(E=!0,Error.prepareStackTrace=Ae),!_){var B="handleUncaughtExceptions"in y?y.handleUncaughtExceptions:!0;try{var z=g(i,"worker_threads");z.isMainThread===!1&&(B=!1)}catch{}B&&C()&&(_=!0,We())}},o.resetRetrieveHandlers=function(){m.length=0,x.length=0,m=je.slice(0),x=Pe.slice(0),G=F(x),U=F(m)}},147:i=>{"use strict";i.exports=require("fs")},17:i=>{"use strict";i.exports=require("path")}},e={};function n(i){var o=e[i];if(o!==void 0)return o.exports;var c=e[i]={id:i,loaded:!1,exports:{}},l=!0;try{t[i](c,c.exports,n),l=!1}finally{l&&delete e[i]}return c.loaded=!0,c.exports}n.nmd=i=>(i.paths=[],i.children||(i.children=[]),i),typeof n<"u"&&(n.ab=__dirname+"/");var r={};n(284).install(),Z0.exports=r})()});var nx=se((T9,tx)=>{ex();(()=>{var t={421:i=>{var o={utf8:{stringToBytes:function(c){return o.bin.stringToBytes(unescape(encodeURIComponent(c)))},bytesToString:function(c){return decodeURIComponent(escape(o.bin.bytesToString(c)))}},bin:{stringToBytes:function(c){for(var l=[],p=0;p<c.length;p++)l.push(c.charCodeAt(p)&255);return l},bytesToString:function(c){for(var l=[],p=0;p<c.length;p++)l.push(String.fromCharCode(c[p]));return l.join("")}}};i.exports=o},935:i=>{(function(){var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c={rotl:function(l,p){return l<<p|l>>>32-p},rotr:function(l,p){return l<<32-p|l>>>p},endian:function(l){if(l.constructor==Number)return c.rotl(l,8)&16711935|c.rotl(l,24)&4278255360;for(var p=0;p<l.length;p++)l[p]=c.endian(l[p]);return l},randomBytes:function(l){for(var p=[];l>0;l--)p.push(Math.floor(Math.random()*256));return p},bytesToWords:function(l){for(var p=[],h=0,d=0;h<l.length;h++,d+=8)p[d>>>5]|=l[h]<<24-d%32;return p},wordsToBytes:function(l){for(var p=[],h=0;h<l.length*32;h+=8)p.push(l[h>>>5]>>>24-h%32&255);return p},bytesToHex:function(l){for(var p=[],h=0;h<l.length;h++)p.push((l[h]>>>4).toString(16)),p.push((l[h]&15).toString(16));return p.join("")},hexToBytes:function(l){for(var p=[],h=0;h<l.length;h+=2)p.push(parseInt(l.substr(h,2),16));return p},bytesToBase64:function(l){for(var p=[],h=0;h<l.length;h+=3)for(var d=l[h]<<16|l[h+1]<<8|l[h+2],g=0;g<4;g++)h*8+g*6<=l.length*8?p.push(o.charAt(d>>>6*(3-g)&63)):p.push("=");return p.join("")},base64ToBytes:function(l){l=l.replace(/[^A-Z0-9+\/]/gi,"");for(var p=[],h=0,d=0;h<l.length;d=++h%4)d!=0&&p.push((o.indexOf(l.charAt(h-1))&Math.pow(2,-2*d+8)-1)<<d*2|o.indexOf(l.charAt(h))>>>6-d*2);return p}};i.exports=c})()},525:(i,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.promisify=l;var c="__ES6-PROMISIFY--CUSTOM-ARGUMENTS__";function l(p){if(typeof p!="function")throw new TypeError("Argument to promisify must be a function");var h=p[c],d=l.Promise||Promise;if(typeof d!="function")throw new Error("No Promise implementation found; do you need a polyfill?");return function(){for(var g=this,E=arguments.length,_=Array(E),b=0;b<E;b++)_[b]=arguments[b];return new d(function(T,v){_.push(function(A){if(A)return v(A);for(var D=arguments.length,m=Array(1<D?D-1:0),x=1;x<D;x++)m[x-1]=arguments[x];if(m.length===1||!h)return T(m[0]);var I={};m.forEach(function(C,P){var R=h[P];R&&(I[R]=C)}),T(I)}),p.apply(g,_)})}}l.argumentNames="__ES6-PROMISIFY--CUSTOM-ARGUMENTS__",l.Promise=void 0},625:i=>{i.exports=function(l){return l!=null&&(o(l)||c(l)||!!l._isBuffer)};function o(l){return!!l.constructor&&typeof l.constructor.isBuffer=="function"&&l.constructor.isBuffer(l)}function c(l){return typeof l.readFloatLE=="function"&&typeof l.slice=="function"&&o(l.slice(0,0))}},126:(i,o,c)=>{var l=c(147),p;process.platform==="win32"||global.TESTING_WINDOWS?p=c(1):p=c(728),i.exports=h,h.sync=d;function h(g,E,_){if(typeof E=="function"&&(_=E,E={}),!_){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(b,T){h(g,E||{},function(v,A){v?T(v):b(A)})})}p(g,E||{},function(b,T){b&&(b.code==="EACCES"||E&&E.ignoreErrors)&&(b=null,T=!1),_(b,T)})}function d(g,E){try{return p.sync(g,E||{})}catch(_){if(E&&E.ignoreErrors||_.code==="EACCES")return!1;throw _}}},728:(i,o,c)=>{i.exports=p,p.sync=h;var l=c(147);function p(E,_,b){l.stat(E,function(T,v){b(T,T?!1:d(v,_))})}function h(E,_){return d(l.statSync(E),_)}function d(E,_){return E.isFile()&&g(E,_)}function g(E,_){var b=E.mode,T=E.uid,v=E.gid,A=_.uid!==void 0?_.uid:process.getuid&&process.getuid(),D=_.gid!==void 0?_.gid:process.getgid&&process.getgid(),m=parseInt("100",8),x=parseInt("010",8),I=parseInt("001",8),C=m|x,P=b&I||b&x&&v===D||b&m&&T===A||b&C&&A===0;return P}},1:(i,o,c)=>{i.exports=d,d.sync=g;var l=c(147);function p(E,_){var b=_.pathExt!==void 0?_.pathExt:process.env.PATHEXT;if(!b||(b=b.split(";"),b.indexOf("")!==-1))return!0;for(var T=0;T<b.length;T++){var v=b[T].toLowerCase();if(v&&E.substr(-v.length).toLowerCase()===v)return!0}return!1}function h(E,_,b){return!E.isSymbolicLink()&&!E.isFile()?!1:p(_,b)}function d(E,_,b){l.stat(E,function(T,v){b(T,T?!1:h(v,E,_))})}function g(E,_){return h(l.statSync(E),E,_)}},711:(i,o,c)=>{(function(){var l=c(935),p=c(421).utf8,h=c(625),d=c(421).bin,g=function(E,_){E.constructor==String?_&&_.encoding==="binary"?E=d.stringToBytes(E):E=p.stringToBytes(E):h(E)?E=Array.prototype.slice.call(E,0):!Array.isArray(E)&&E.constructor!==Uint8Array&&(E=E.toString());for(var b=l.bytesToWords(E),T=E.length*8,v=1732584193,A=-271733879,D=-1732584194,m=271733878,x=0;x<b.length;x++)b[x]=(b[x]<<8|b[x]>>>24)&16711935|(b[x]<<24|b[x]>>>8)&4278255360;b[T>>>5]|=128<<T%32,b[(T+64>>>9<<4)+14]=T;for(var I=g._ff,C=g._gg,P=g._hh,R=g._ii,x=0;x<b.length;x+=16){var O=v,F=A,U=D,$=m;v=I(v,A,D,m,b[x+0],7,-680876936),m=I(m,v,A,D,b[x+1],12,-389564586),D=I(D,m,v,A,b[x+2],17,606105819),A=I(A,D,m,v,b[x+3],22,-1044525330),v=I(v,A,D,m,b[x+4],7,-176418897),m=I(m,v,A,D,b[x+5],12,1200080426),D=I(D,m,v,A,b[x+6],17,-1473231341),A=I(A,D,m,v,b[x+7],22,-45705983),v=I(v,A,D,m,b[x+8],7,1770035416),m=I(m,v,A,D,b[x+9],12,-1958414417),D=I(D,m,v,A,b[x+10],17,-42063),A=I(A,D,m,v,b[x+11],22,-1990404162),v=I(v,A,D,m,b[x+12],7,1804603682),m=I(m,v,A,D,b[x+13],12,-40341101),D=I(D,m,v,A,b[x+14],17,-1502002290),A=I(A,D,m,v,b[x+15],22,1236535329),v=C(v,A,D,m,b[x+1],5,-165796510),m=C(m,v,A,D,b[x+6],9,-1069501632),D=C(D,m,v,A,b[x+11],14,643717713),A=C(A,D,m,v,b[x+0],20,-373897302),v=C(v,A,D,m,b[x+5],5,-701558691),m=C(m,v,A,D,b[x+10],9,38016083),D=C(D,m,v,A,b[x+15],14,-660478335),A=C(A,D,m,v,b[x+4],20,-405537848),v=C(v,A,D,m,b[x+9],5,568446438),m=C(m,v,A,D,b[x+14],9,-1019803690),D=C(D,m,v,A,b[x+3],14,-187363961),A=C(A,D,m,v,b[x+8],20,1163531501),v=C(v,A,D,m,b[x+13],5,-1444681467),m=C(m,v,A,D,b[x+2],9,-51403784),D=C(D,m,v,A,b[x+7],14,1735328473),A=C(A,D,m,v,b[x+12],20,-1926607734),v=P(v,A,D,m,b[x+5],4,-378558),m=P(m,v,A,D,b[x+8],11,-2022574463),D=P(D,m,v,A,b[x+11],16,1839030562),A=P(A,D,m,v,b[x+14],23,-35309556),v=P(v,A,D,m,b[x+1],4,-1530992060),m=P(m,v,A,D,b[x+4],11,1272893353),D=P(D,m,v,A,b[x+7],16,-155497632),A=P(A,D,m,v,b[x+10],23,-1094730640),v=P(v,A,D,m,b[x+13],4,681279174),m=P(m,v,A,D,b[x+0],11,-358537222),D=P(D,m,v,A,b[x+3],16,-722521979),A=P(A,D,m,v,b[x+6],23,76029189),v=P(v,A,D,m,b[x+9],4,-640364487),m=P(m,v,A,D,b[x+12],11,-421815835),D=P(D,m,v,A,b[x+15],16,530742520),A=P(A,D,m,v,b[x+2],23,-995338651),v=R(v,A,D,m,b[x+0],6,-198630844),m=R(m,v,A,D,b[x+7],10,1126891415),D=R(D,m,v,A,b[x+14],15,-1416354905),A=R(A,D,m,v,b[x+5],21,-57434055),v=R(v,A,D,m,b[x+12],6,1700485571),m=R(m,v,A,D,b[x+3],10,-1894986606),D=R(D,m,v,A,b[x+10],15,-1051523),A=R(A,D,m,v,b[x+1],21,-2054922799),v=R(v,A,D,m,b[x+8],6,1873313359),m=R(m,v,A,D,b[x+15],10,-30611744),D=R(D,m,v,A,b[x+6],15,-1560198380),A=R(A,D,m,v,b[x+13],21,1309151649),v=R(v,A,D,m,b[x+4],6,-145523070),m=R(m,v,A,D,b[x+11],10,-1120210379),D=R(D,m,v,A,b[x+2],15,718787259),A=R(A,D,m,v,b[x+9],21,-343485551),v=v+O>>>0,A=A+F>>>0,D=D+U>>>0,m=m+$>>>0}return l.endian([v,A,D,m])};g._ff=function(E,_,b,T,v,A,D){var m=E+(_&b|~_&T)+(v>>>0)+D;return(m<<A|m>>>32-A)+_},g._gg=function(E,_,b,T,v,A,D){var m=E+(_&T|b&~T)+(v>>>0)+D;return(m<<A|m>>>32-A)+_},g._hh=function(E,_,b,T,v,A,D){var m=E+(_^b^T)+(v>>>0)+D;return(m<<A|m>>>32-A)+_},g._ii=function(E,_,b,T,v,A,D){var m=E+(b^(_|~T))+(v>>>0)+D;return(m<<A|m>>>32-A)+_},g._blocksize=16,g._digestsize=16,i.exports=function(E,_){if(E==null)throw new Error("Illegal argument "+E);var b=l.wordsToBytes(g(E,_));return _&&_.asBytes?b:_&&_.asString?d.bytesToString(b):l.bytesToHex(b)}})()},284:i=>{"use strict";var o=process.platform==="win32",c=o?/[^:]\\$/:/.\/$/;i.exports=function(){var l;return o?l=process.env.TEMP||process.env.TMP||(process.env.SystemRoot||process.env.windir)+"\\temp":l=process.env.TMPDIR||process.env.TMP||process.env.TEMP||"/tmp",c.test(l)&&(l=l.slice(0,-1)),l}},207:(i,o,c)=>{let l=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",p=c(17),h=l?";":":",d=c(126),g=T=>Object.assign(new Error(`not found: ${T}`),{code:"ENOENT"}),E=(T,v)=>{let A=v.colon||h,D=T.match(/\//)||l&&T.match(/\\/)?[""]:[...l?[process.cwd()]:[],...(v.path||process.env.PATH||"").split(A)],m=l?v.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",x=l?m.split(A):[""];return l&&T.indexOf(".")!==-1&&x[0]!==""&&x.unshift(""),{pathEnv:D,pathExt:x,pathExtExe:m}},_=(T,v,A)=>{typeof v=="function"&&(A=v,v={}),v||(v={});let{pathEnv:D,pathExt:m,pathExtExe:x}=E(T,v),I=[],C=R=>new Promise((O,F)=>{if(R===D.length)return v.all&&I.length?O(I):F(g(T));let U=D[R],$=/^".*"$/.test(U)?U.slice(1,-1):U,ie=p.join($,T),G=!$&&/^\.[\\\/]/.test(T)?T.slice(0,2)+ie:ie;O(P(G,R,0))}),P=(R,O,F)=>new Promise((U,$)=>{if(F===m.length)return U(C(O+1));let ie=m[F];d(R+ie,{pathExt:x},(G,ce)=>{if(!G&&ce)if(v.all)I.push(R+ie);else return U(R+ie);return U(P(R,O,F+1))})});return A?C(0).then(R=>A(null,R),A):C(0)},b=(T,v)=>{v=v||{};let{pathEnv:A,pathExt:D,pathExtExe:m}=E(T,v),x=[];for(let I=0;I<A.length;I++){let C=A[I],P=/^".*"$/.test(C)?C.slice(1,-1):C,R=p.join(P,T),O=!P&&/^\.[\\\/]/.test(T)?T.slice(0,2)+R:R;for(let F=0;F<D.length;F++){let U=O+D[F];try{if(d.sync(U,{pathExt:m}))if(v.all)x.push(U);else return U}catch{}}}if(v.all&&x.length)return x;if(v.nothrow)return null;throw g(T)};i.exports=_,_.sync=b},81:i=>{"use strict";i.exports=require("child_process")},113:i=>{"use strict";i.exports=require("crypto")},147:i=>{"use strict";i.exports=require("fs")},808:i=>{"use strict";i.exports=require("net")},17:i=>{"use strict";i.exports=require("path")},254:(i,o,c)=>{"use strict";var l=c(702),p=c(649),{debug:h}=c(762);i.exports.PEM2DER=function(d,g,E,_){!_&&typeof E=="function"&&(_=E,E="x509");var b=[E,"-outform","der","-in",d,"-out",g];l.spawnWrapper(b,!1,function(T,v){T?_(T):_(null,v===0)})},i.exports.DER2PEM=function(d,g,E,_){!_&&typeof E=="function"&&(_=E,E="x509");var b=[E,"-inform","der","-in",d,"-out",g];l.spawnWrapper(b,!1,function(T,v){T?_(T):_(null,v===0)})},i.exports.PEM2P7B=function(d,g,E){var _=["crl2pkcs7","-nocrl","-certfile",d.cert,"-out",g];d.ca&&(Array.isArray(d.ca)||(d.ca=[d.ca]),d.ca.forEach(function(b){_.push("-certfile"),_.push(b)})),l.spawnWrapper(_,!1,function(b,T){b?E(b):E(null,T===0)})},i.exports.P7B2PEM=function(d,g,E){var _=["pkcs7","-print_certs","-in",d,"-out",g];l.spawnWrapper(_,!1,function(b,T){b?E(b):E(null,T===0)})},i.exports.PEM2PFX=function(d,g,E,_){var b=["pkcs12","-export","-out",g,"-inkey",d.key,"-in",d.cert];d.ca&&(Array.isArray(d.ca)||(d.ca=[d.ca]),d.ca.forEach(function(v){b.push("-certfile"),b.push(v)}));var T=[];p.createPasswordFile({cipher:"",password:E,passType:"in"},b,T),p.createPasswordFile({cipher:"",password:E,passType:"out"},b,T),l.spawnWrapper(b,!1,function(v,A){function D(m){m?_(m):_(null,A===0)}p.deleteTempFiles(T,function(m){D(v||m)})})},i.exports.PFX2PEM=function(d,g,E,_){var b=["pkcs12","-in",d,"-out",g,"-nodes"],T=[];p.createPasswordFile({cipher:"",password:E,passType:"in"},b,T),p.createPasswordFile({cipher:"",password:E,passType:"out"},b,T),l.spawnWrapper(b,!1,function(v,A){function D(m){m?_(m):_(null,A===0)}p.deleteTempFiles(T,function(m){D(v||m)})})},i.exports.P7B2PFX=function(d,g,E,_){var b=d.cert.replace(/\.[^.]+$/,".cer"),T=["pkcs7","-print_certs","-in",d.cert,"-out",b];l.spawnWrapper(T,!1,function(v,A){if(h("P7B2PFX",{error:v,code:A}),v)_(v);else{var D=["pkcs12","-export","-in",b,"-inkey",d.key,"-out",g];d.ca&&(Array.isArray(d.ca)||(d.ca=[d.ca]),d.ca.forEach(function(x){D.push("-certfile"),D.push(x)}));var m=[b];p.createPasswordFile({cipher:"",password:E,passType:"in"},D,m),p.createPasswordFile({cipher:"",password:E,passType:"out"},D,m),l.spawnWrapper(D,!1,function(x,I){function C(P){P?_(P):_(null,I===0)}p.deleteTempFiles(m,function(P){C(x||P)})})}})}},762:i=>{function o(c,l){process.env.CI==="true"&&(console.log(`::group::${c}`),console.log(JSON.stringify(l,null,3)),console.log("::endgroup::"))}i.exports={debug:o}},649:(i,o,c)=>{"use strict";var l=c(17),p=c(147),h=c(113),d=c(284),g=process.env.PEMJS_TMPDIR||d();i.exports.isNumber=function(_){return Array.isArray(_)?!1:/^\d+$/g.test(_)},i.exports.isHex=function(b){return/^(0x){0,1}([0-9A-F]{1,40}|[0-9A-F]{1,40})$/gi.test(b)},i.exports.toHex=function(b){for(var T="",v=0;v<b.length;v++)T+=""+b.charCodeAt(v).toString(16);return T},i.exports.ciphers=["aes128","aes192","aes256","camellia128","camellia192","camellia256","des","des3","idea"];var E=i.exports.ciphers;i.exports.createPasswordFile=function(_,b,T){if(!_||!Object.prototype.hasOwnProperty.call(_,"password")||!Object.prototype.hasOwnProperty.call(_,"passType")||!/^(word|in|out)$/.test(_.passType))return!1;var v=l.join(g,h.randomBytes(20).toString("hex"));return T.push(v),_.password=_.password.trim(),_.password===""&&(_.mustPass=!0),_.cipher&&E.indexOf(_.cipher)!==-1&&b.push("-"+_.cipher),b.push("-pass"+_.passType),_.mustPass?b.push("pass:"+_.password):(p.writeFileSync(v,_.password),b.push("file:"+v)),!0},i.exports.deleteTempFiles=function(_,b){var T=[];if(typeof _=="string")T.push(_);else if(Array.isArray(_))T=_;else return b(new Error("Unexcepted files parameter type; only string or array supported"));var v=function(A,D){if(A.length){var m=A.shift(),x=function(I){return I&&I.code==="ENOENT"?v(A,D):I?D(I):v(A,D)};if(m&&typeof m=="string")p.unlink(m,x);else return v(A,D)}else return D(null)};v(T,b)}},702:(i,o,c)=>{var l=c(649),{debug:p}=c(762),h=c(81).spawn,d=c(81).spawnSync,g=c(17),E=c(147),_=c(284),b=c(113),T=c(207),v={},A=process.env.PEMJS_TMPDIR||_();let D=new RegExp("^(OpenSSL|LibreSSL) (((\\d+).(\\d+)).(\\d+))([a-z]+)?");if("CI"in process.env&&process.env.CI==="true"&&"LIBRARY"in process.env&&"VERSION"in process.env&&process.env.LIBRARY!=""&&process.env.VERSION!=""){let U=`./openssl/${process.env.LIBRARY}_v${process.env.VERSION}/bin/openssl`;E.existsSync(U)&&(process.env.OPENSSL_BIN=U)}function m(U,$){v[U]=$}function x(U){return v[U]||null}function I(U,$,ie,G){!G&&typeof ie=="function"&&(G=ie,ie=!1),R(U,ie,function(ce,ne,J,ee){var ve,Ae;return ce?G(ce):((ve=J.match(new RegExp("-+BEGIN "+$+"-+$","mu")))?ve=ve.index:ve=-1,$==="EC PARAMETERS"&&($="EC PRIVATE KEY"),(Ae=J.match(new RegExp("^\\-+END "+$+"\\-+","m")))?Ae=Ae.index+Ae[0].length:Ae=-1,ve>=0&&Ae>=0?G(null,J.substring(ve,Ae)):G(new Error($+` not found from openssl output: ---stdout--- `+J+` ---stderr--- `+ee+` code: `+ne)))})}function C(U,$,ie){!ie&&typeof $=="function"&&(ie=$,$=!1),R(U,$,!0,function(G,ce,ne,J){return p("execBinary",{err:G,code:ce,stdout:ne,stderr:J}),G?ie(G):ie(null,ne)})}function P(U,$,ie){var G=x("pathOpenSSL")||process.env.OPENSSL_BIN||"openssl";O(G,function(ce){if(ce)return ie(ce);var ne=h(G,U),J="",ee=$?Buffer.alloc(0):"";ne.stdout.on("data",function(We){$?ee=Buffer.concat([ee,We]):ee+=We.toString("binary")}),ne.stderr.on("data",function(We){J+=We.toString("binary")});var ve=2,Ae=-1,xe=!1,ke=function(We){if(!xe){if(We)return xe=!0,ie(We);if(--ve<1)return xe=!0,Ae!==0?Ae===2&&(J===""||/depth lookup: unable