forked from ethereum/remix-live
-
Notifications
You must be signed in to change notification settings - Fork 0
/
2147.0.36.3.1697209639220.js
2 lines (2 loc) · 52 KB
/
2147.0.36.3.1697209639220.js
1
2
(self["webpackChunk"]=self["webpackChunk"]||[]).push([[2147],{3051:(module,__unused_webpack_exports,__webpack_require__)=>{var debug;module.exports=function(){if(!debug){try{debug=__webpack_require__(20303)("follow-redirects")}catch(error){}if(typeof debug!=="function"){debug=function(){}}}debug.apply(null,arguments)}},95101:(module,__unused_webpack_exports,__webpack_require__)=>{var url=__webpack_require__(84060);var URL=url.URL;var http=__webpack_require__(68975);var https=__webpack_require__(72828);var Writable=__webpack_require__(52078).Writable;var assert=__webpack_require__(59741);var debug=__webpack_require__(3051);var events=["abort","aborted","connect","error","socket","timeout"];var eventHandlers=Object.create(null);events.forEach((function(event){eventHandlers[event]=function(arg1,arg2,arg3){this._redirectable.emit(event,arg1,arg2,arg3)}}));var RedirectionError=createErrorType("ERR_FR_REDIRECTION_FAILURE","Redirected request failed");var TooManyRedirectsError=createErrorType("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded");var MaxBodyLengthExceededError=createErrorType("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit");var WriteAfterEndError=createErrorType("ERR_STREAM_WRITE_AFTER_END","write after end");function RedirectableRequest(options,responseCallback){Writable.call(this);this._sanitizeOptions(options);this._options=options;this._ended=false;this._ending=false;this._redirectCount=0;this._redirects=[];this._requestBodyLength=0;this._requestBodyBuffers=[];if(responseCallback){this.on("response",responseCallback)}var self=this;this._onNativeResponse=function(response){self._processResponse(response)};this._performRequest()}RedirectableRequest.prototype=Object.create(Writable.prototype);RedirectableRequest.prototype.abort=function(){abortRequest(this._currentRequest);this.emit("abort")};RedirectableRequest.prototype.write=function(data,encoding,callback){if(this._ending){throw new WriteAfterEndError}if(!(typeof data==="string"||typeof data==="object"&&"length"in data)){throw new TypeError("data should be a string, Buffer or Uint8Array")}if(typeof encoding==="function"){callback=encoding;encoding=null}if(data.length===0){if(callback){callback()}return}if(this._requestBodyLength+data.length<=this._options.maxBodyLength){this._requestBodyLength+=data.length;this._requestBodyBuffers.push({data,encoding});this._currentRequest.write(data,encoding,callback)}else{this.emit("error",new MaxBodyLengthExceededError);this.abort()}};RedirectableRequest.prototype.end=function(data,encoding,callback){if(typeof data==="function"){callback=data;data=encoding=null}else if(typeof encoding==="function"){callback=encoding;encoding=null}if(!data){this._ended=this._ending=true;this._currentRequest.end(null,null,callback)}else{var self=this;var currentRequest=this._currentRequest;this.write(data,encoding,(function(){self._ended=true;currentRequest.end(null,null,callback)}));this._ending=true}};RedirectableRequest.prototype.setHeader=function(name,value){this._options.headers[name]=value;this._currentRequest.setHeader(name,value)};RedirectableRequest.prototype.removeHeader=function(name){delete this._options.headers[name];this._currentRequest.removeHeader(name)};RedirectableRequest.prototype.setTimeout=function(msecs,callback){var self=this;function destroyOnTimeout(socket){socket.setTimeout(msecs);socket.removeListener("timeout",socket.destroy);socket.addListener("timeout",socket.destroy)}function startTimer(socket){if(self._timeout){clearTimeout(self._timeout)}self._timeout=setTimeout((function(){self.emit("timeout");clearTimer()}),msecs);destroyOnTimeout(socket)}function clearTimer(){if(self._timeout){clearTimeout(self._timeout);self._timeout=null}self.removeListener("abort",clearTimer);self.removeListener("error",clearTimer);self.removeListener("response",clearTimer);if(callback){self.removeListener("timeout",callback)}if(!self.socket){self._currentRequest.removeListener("socket",startTimer)}}if(callback){this.on("timeout",callback)}if(this.socket){startTimer(this.socket)}else{this._currentRequest.once("socket",startTimer)}this.on("socket",destroyOnTimeout);this.on("abort",clearTimer);this.on("error",clearTimer);this.on("response",clearTimer);return this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(method){RedirectableRequest.prototype[method]=function(a,b){return this._currentRequest[method](a,b)}}));["aborted","connection","socket"].forEach((function(property){Object.defineProperty(RedirectableRequest.prototype,property,{get:function(){return this._currentRequest[property]}})}));RedirectableRequest.prototype._sanitizeOptions=function(options){if(!options.headers){options.headers={}}if(options.host){if(!options.hostname){options.hostname=options.host}delete options.host}if(!options.pathname&&options.path){var searchPos=options.path.indexOf("?");if(searchPos<0){options.pathname=options.path}else{options.pathname=options.path.substring(0,searchPos);options.search=options.path.substring(searchPos)}}};RedirectableRequest.prototype._performRequest=function(){var protocol=this._options.protocol;var nativeProtocol=this._options.nativeProtocols[protocol];if(!nativeProtocol){this.emit("error",new TypeError("Unsupported protocol "+protocol));return}if(this._options.agents){var scheme=protocol.substr(0,protocol.length-1);this._options.agent=this._options.agents[scheme]}var request=this._currentRequest=nativeProtocol.request(this._options,this._onNativeResponse);this._currentUrl=url.format(this._options);request._redirectable=this;for(var e=0;e<events.length;e++){request.on(events[e],eventHandlers[events[e]])}if(this._isRedirect){var i=0;var self=this;var buffers=this._requestBodyBuffers;(function writeNext(error){if(request===self._currentRequest){if(error){self.emit("error",error)}else if(i<buffers.length){var buffer=buffers[i++];if(!request.finished){request.write(buffer.data,buffer.encoding,writeNext)}}else if(self._ended){request.end()}}})()}};RedirectableRequest.prototype._processResponse=function(response){var statusCode=response.statusCode;if(this._options.trackRedirects){this._redirects.push({url:this._currentUrl,headers:response.headers,statusCode})}var location=response.headers.location;if(!location||this._options.followRedirects===false||statusCode<300||statusCode>=400){response.responseUrl=this._currentUrl;response.redirects=this._redirects;this.emit("response",response);this._requestBodyBuffers=[];return}abortRequest(this._currentRequest);response.destroy();if(++this._redirectCount>this._options.maxRedirects){this.emit("error",new TooManyRedirectsError);return}if((statusCode===301||statusCode===302)&&this._options.method==="POST"||statusCode===303&&!/^(?:GET|HEAD)$/.test(this._options.method)){this._options.method="GET";this._requestBodyBuffers=[];removeMatchingHeaders(/^content-/i,this._options.headers)}var currentHostHeader=removeMatchingHeaders(/^host$/i,this._options.headers);var currentUrlParts=url.parse(this._currentUrl);var currentHost=currentHostHeader||currentUrlParts.host;var currentUrl=/^\w+:/.test(location)?this._currentUrl:url.format(Object.assign(currentUrlParts,{host:currentHost}));var redirectUrl;try{redirectUrl=url.resolve(currentUrl,location)}catch(cause){this.emit("error",new RedirectionError(cause));return}debug("redirecting to",redirectUrl);this._isRedirect=true;var redirectUrlParts=url.parse(redirectUrl);Object.assign(this._options,redirectUrlParts);if(redirectUrlParts.protocol!==currentUrlParts.protocol&&redirectUrlParts.protocol!=="https:"||redirectUrlParts.host!==currentHost&&!isSubdomain(redirectUrlParts.host,currentHost)){removeMatchingHeaders(/^(?:authorization|cookie)$/i,this._options.headers)}if(typeof this._options.beforeRedirect==="function"){var responseDetails={headers:response.headers};try{this._options.beforeRedirect.call(null,this._options,responseDetails)}catch(err){this.emit("error",err);return}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(cause){this.emit("error",new RedirectionError(cause))}};function wrap(protocols){var exports={maxRedirects:21,maxBodyLength:10*1024*1024};var nativeProtocols={};Object.keys(protocols).forEach((function(scheme){var protocol=scheme+":";var nativeProtocol=nativeProtocols[protocol]=protocols[scheme];var wrappedProtocol=exports[scheme]=Object.create(nativeProtocol);function request(input,options,callback){if(typeof input==="string"){var urlStr=input;try{input=urlToOptions(new URL(urlStr))}catch(err){input=url.parse(urlStr)}}else if(URL&&input instanceof URL){input=urlToOptions(input)}else{callback=options;options=input;input={protocol}}if(typeof options==="function"){callback=options;options=null}options=Object.assign({maxRedirects:exports.maxRedirects,maxBodyLength:exports.maxBodyLength},input,options);options.nativeProtocols=nativeProtocols;assert.equal(options.protocol,protocol,"protocol mismatch");debug("options",options);return new RedirectableRequest(options,callback)}function get(input,options,callback){var wrappedRequest=wrappedProtocol.request(input,options,callback);wrappedRequest.end();return wrappedRequest}Object.defineProperties(wrappedProtocol,{request:{value:request,configurable:true,enumerable:true,writable:true},get:{value:get,configurable:true,enumerable:true,writable:true}})}));return exports}function noop(){}function urlToOptions(urlObject){var options={protocol:urlObject.protocol,hostname:urlObject.hostname.startsWith("[")?urlObject.hostname.slice(1,-1):urlObject.hostname,hash:urlObject.hash,search:urlObject.search,pathname:urlObject.pathname,path:urlObject.pathname+urlObject.search,href:urlObject.href};if(urlObject.port!==""){options.port=Number(urlObject.port)}return options}function removeMatchingHeaders(regex,headers){var lastValue;for(var header in headers){if(regex.test(header)){lastValue=headers[header];delete headers[header]}}return lastValue===null||typeof lastValue==="undefined"?undefined:String(lastValue).trim()}function createErrorType(code,defaultMessage){function CustomError(cause){Error.captureStackTrace(this,this.constructor);if(!cause){this.message=defaultMessage}else{this.message=defaultMessage+": "+cause.message;this.cause=cause}}CustomError.prototype=new Error;CustomError.prototype.constructor=CustomError;CustomError.prototype.name="Error ["+code+"]";CustomError.prototype.code=code;return CustomError}function abortRequest(request){for(var e=0;e<events.length;e++){request.removeListener(events[e],eventHandlers[events[e]])}request.on("error",noop);request.abort()}function isSubdomain(subdomain,domain){const dot=subdomain.length-domain.length-1;return dot>0&&subdomain[dot]==="."&&subdomain.endsWith(domain)}module.exports=wrap({http,https});module.exports.wrap=wrap},48722:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var Buffer=__webpack_require__(40144)["Buffer"];var STREAM=__webpack_require__(52078),UTIL=__webpack_require__(38746),StringDecoder=__webpack_require__(21511).StringDecoder;function MemoryReadableStream(data,options){if(!(this instanceof MemoryReadableStream))return new MemoryReadableStream(data,options);MemoryReadableStream.super_.call(this,options);this.init(data,options)}UTIL.inherits(MemoryReadableStream,STREAM.Readable);function MemoryWritableStream(data,options){if(!(this instanceof MemoryWritableStream))return new MemoryWritableStream(data,options);MemoryWritableStream.super_.call(this,options);this.init(data,options)}UTIL.inherits(MemoryWritableStream,STREAM.Writable);function MemoryDuplexStream(data,options){if(!(this instanceof MemoryDuplexStream))return new MemoryDuplexStream(data,options);MemoryDuplexStream.super_.call(this,options);this.init(data,options)}UTIL.inherits(MemoryDuplexStream,STREAM.Duplex);MemoryReadableStream.prototype.init=MemoryWritableStream.prototype.init=MemoryDuplexStream.prototype.init=function init(data,options){var self=this;this.queue=[];if(data){if(!Array.isArray(data)){data=[data]}data.forEach((function(chunk){if(!(chunk instanceof Buffer)){chunk=new Buffer(chunk)}self.queue.push(chunk)}))}options=options||{};this.maxbufsize=options.hasOwnProperty("maxbufsize")?options.maxbufsize:null;this.bufoverflow=options.hasOwnProperty("bufoverflow")?options.bufoverflow:null;this.frequence=options.hasOwnProperty("frequence")?options.frequence:null};function MemoryStream(data,options){if(!(this instanceof MemoryStream))return new MemoryStream(data,options);options=options||{};var readable=options.hasOwnProperty("readable")?options.readable:true,writable=options.hasOwnProperty("writable")?options.writable:true;if(readable&&writable){return new MemoryDuplexStream(data,options)}else if(readable){return new MemoryReadableStream(data,options)}else if(writable){return new MemoryWritableStream(data,options)}else{throw new Error("Unknown stream type Readable, Writable or Duplex ")}}MemoryStream.createReadStream=function(data,options){options=options||{};options.readable=true;options.writable=false;return new MemoryStream(data,options)};MemoryStream.createWriteStream=function(data,options){options=options||{};options.readable=false;options.writable=true;return new MemoryStream(data,options)};MemoryReadableStream.prototype._read=MemoryDuplexStream.prototype._read=function _read(n){var self=this,frequence=self.frequence||0,wait_data=this instanceof STREAM.Duplex&&!this._writableState.finished?true:false;if(!this.queue.length&&!wait_data){this.push(null)}else if(this.queue.length){setTimeout((function(){if(self.queue.length){var chunk=self.queue.shift();if(chunk&&!self._readableState.ended){if(!self.push(chunk)){self.queue.unshift(chunk)}}}}),frequence)}};MemoryWritableStream.prototype._write=MemoryDuplexStream.prototype._write=function _write(chunk,encoding,cb){var decoder=null;try{decoder=this.decodeStrings&&encoding?new StringDecoder(encoding):null}catch(err){return cb(err)}var decoded_chunk=decoder?decoder.write(chunk):chunk,queue_size=this._getQueueSize(),chunk_size=decoded_chunk.length;if(this.maxbufsize&&queue_size+chunk_size>this.maxbufsize){if(this.bufoverflow){return cb("Buffer overflowed ("+this.bufoverflow+"/"+queue_size+")")}else{return cb()}}if(this instanceof STREAM.Duplex){while(this.queue.length){this.push(this.queue.shift())}this.push(decoded_chunk)}else{this.queue.push(decoded_chunk)}cb()};MemoryDuplexStream.prototype.end=function(chunk,encoding,cb){var self=this;return MemoryDuplexStream.super_.prototype.end.call(this,chunk,encoding,(function(){self.push(null);if(cb)cb()}))};MemoryReadableStream.prototype._getQueueSize=MemoryWritableStream.prototype._getQueueSize=MemoryDuplexStream.prototype._getQueueSize=function(){var queuesize=0,i;for(i=0;i<this.queue.length;i++){queuesize+=Array.isArray(this.queue[i])?this.queue[i][0].length:this.queue[i].length}return queuesize};MemoryWritableStream.prototype.toString=MemoryDuplexStream.prototype.toString=MemoryReadableStream.prototype.toString=MemoryWritableStream.prototype.getAll=MemoryDuplexStream.prototype.getAll=MemoryReadableStream.prototype.getAll=function(){var self=this,ret="";this.queue.forEach((function(data){ret+=data}));return ret};MemoryWritableStream.prototype.toBuffer=MemoryDuplexStream.prototype.toBuffer=MemoryReadableStream.prototype.toBuffer=function(){var buffer=new Buffer(this._getQueueSize()),currentOffset=0;this.queue.forEach((function(data){var data_buffer=data instanceof Buffer?data:new Buffer(data);data_buffer.copy(buffer,currentOffset);currentOffset+=data.length}));return buffer};module.exports=MemoryStream},78740:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module=__webpack_require__.nmd(module);var Module=__webpack_require__(52531);var path=__webpack_require__(96442);module.exports=function requireFromString(code,filename,opts){if(typeof filename==="object"){opts=filename;filename=undefined}opts=opts||{};filename=filename||"";opts.appendPaths=opts.appendPaths||[];opts.prependPaths=opts.prependPaths||[];if(typeof code!=="string"){throw new Error("code must be a string, not "+typeof code)}var paths=Module._nodeModulePaths(path.dirname(filename));var parent=module.parent;var m=new Module(filename,parent);m.filename=filename;m.paths=[].concat(opts.prependPaths).concat(paths).concat(opts.appendPaths);m._compile(code,filename);var exports=m.exports;parent&&parent.children&&parent.children.splice(parent.children.indexOf(m),1);return exports}},13122:(module,exports,__webpack_require__)=>{var process=__webpack_require__(49021);exports=module.exports=SemVer;var debug;if(typeof process==="object"&&{NX_CLI_SET:"true",NX_LOAD_DOT_ENV_FILES:"true",NX_WORKSPACE_ROOT:"/home/circleci/remix-project",NX_SKIP_NX_CACHE:"true",NX_TERMINAL_OUTPUT_PATH:"/home/circleci/remix-project/node_modules/.cache/nx/terminalOutputs/d2ec3dbf9aaa9029e475ee141b96c4a7cf67352b60e07ba6e1742d66d96fa6b7",NX_STREAM_OUTPUT:"true",NX_TASK_TARGET_PROJECT:"remix-ide",NX_TASK_HASH:"d2ec3dbf9aaa9029e475ee141b96c4a7cf67352b60e07ba6e1742d66d96fa6b7"}&&{NX_CLI_SET:"true",NX_LOAD_DOT_ENV_FILES:"true",NX_WORKSPACE_ROOT:"/home/circleci/remix-project",NX_SKIP_NX_CACHE:"true",NX_TERMINAL_OUTPUT_PATH:"/home/circleci/remix-project/node_modules/.cache/nx/terminalOutputs/d2ec3dbf9aaa9029e475ee141b96c4a7cf67352b60e07ba6e1742d66d96fa6b7",NX_STREAM_OUTPUT:"true",NX_TASK_TARGET_PROJECT:"remix-ide",NX_TASK_HASH:"d2ec3dbf9aaa9029e475ee141b96c4a7cf67352b60e07ba6e1742d66d96fa6b7"}.NODE_DEBUG&&/\bsemver\b/i.test({NX_CLI_SET:"true",NX_LOAD_DOT_ENV_FILES:"true",NX_WORKSPACE_ROOT:"/home/circleci/remix-project",NX_SKIP_NX_CACHE:"true",NX_TERMINAL_OUTPUT_PATH:"/home/circleci/remix-project/node_modules/.cache/nx/terminalOutputs/d2ec3dbf9aaa9029e475ee141b96c4a7cf67352b60e07ba6e1742d66d96fa6b7",NX_STREAM_OUTPUT:"true",NX_TASK_TARGET_PROJECT:"remix-ide",NX_TASK_HASH:"d2ec3dbf9aaa9029e475ee141b96c4a7cf67352b60e07ba6e1742d66d96fa6b7"}.NODE_DEBUG)){debug=function(){var args=Array.prototype.slice.call(arguments,0);args.unshift("SEMVER");console.log.apply(console,args)}}else{debug=function(){}}exports.SEMVER_SPEC_VERSION="2.0.0";var MAX_LENGTH=256;var MAX_SAFE_INTEGER=Number.MAX_SAFE_INTEGER||9007199254740991;var MAX_SAFE_COMPONENT_LENGTH=16;var re=exports.re=[];var src=exports.src=[];var R=0;var NUMERICIDENTIFIER=R++;src[NUMERICIDENTIFIER]="0|[1-9]\\d*";var NUMERICIDENTIFIERLOOSE=R++;src[NUMERICIDENTIFIERLOOSE]="[0-9]+";var NONNUMERICIDENTIFIER=R++;src[NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var MAINVERSION=R++;src[MAINVERSION]="("+src[NUMERICIDENTIFIER]+")\\."+"("+src[NUMERICIDENTIFIER]+")\\."+"("+src[NUMERICIDENTIFIER]+")";var MAINVERSIONLOOSE=R++;src[MAINVERSIONLOOSE]="("+src[NUMERICIDENTIFIERLOOSE]+")\\."+"("+src[NUMERICIDENTIFIERLOOSE]+")\\."+"("+src[NUMERICIDENTIFIERLOOSE]+")";var PRERELEASEIDENTIFIER=R++;src[PRERELEASEIDENTIFIER]="(?:"+src[NUMERICIDENTIFIER]+"|"+src[NONNUMERICIDENTIFIER]+")";var PRERELEASEIDENTIFIERLOOSE=R++;src[PRERELEASEIDENTIFIERLOOSE]="(?:"+src[NUMERICIDENTIFIERLOOSE]+"|"+src[NONNUMERICIDENTIFIER]+")";var PRERELEASE=R++;src[PRERELEASE]="(?:-("+src[PRERELEASEIDENTIFIER]+"(?:\\."+src[PRERELEASEIDENTIFIER]+")*))";var PRERELEASELOOSE=R++;src[PRERELEASELOOSE]="(?:-?("+src[PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+src[PRERELEASEIDENTIFIERLOOSE]+")*))";var BUILDIDENTIFIER=R++;src[BUILDIDENTIFIER]="[0-9A-Za-z-]+";var BUILD=R++;src[BUILD]="(?:\\+("+src[BUILDIDENTIFIER]+"(?:\\."+src[BUILDIDENTIFIER]+")*))";var FULL=R++;var FULLPLAIN="v?"+src[MAINVERSION]+src[PRERELEASE]+"?"+src[BUILD]+"?";src[FULL]="^"+FULLPLAIN+"$";var LOOSEPLAIN="[v=\\s]*"+src[MAINVERSIONLOOSE]+src[PRERELEASELOOSE]+"?"+src[BUILD]+"?";var LOOSE=R++;src[LOOSE]="^"+LOOSEPLAIN+"$";var GTLT=R++;src[GTLT]="((?:<|>)?=?)";var XRANGEIDENTIFIERLOOSE=R++;src[XRANGEIDENTIFIERLOOSE]=src[NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";var XRANGEIDENTIFIER=R++;src[XRANGEIDENTIFIER]=src[NUMERICIDENTIFIER]+"|x|X|\\*";var XRANGEPLAIN=R++;src[XRANGEPLAIN]="[v=\\s]*("+src[XRANGEIDENTIFIER]+")"+"(?:\\.("+src[XRANGEIDENTIFIER]+")"+"(?:\\.("+src[XRANGEIDENTIFIER]+")"+"(?:"+src[PRERELEASE]+")?"+src[BUILD]+"?"+")?)?";var XRANGEPLAINLOOSE=R++;src[XRANGEPLAINLOOSE]="[v=\\s]*("+src[XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+src[XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+src[XRANGEIDENTIFIERLOOSE]+")"+"(?:"+src[PRERELEASELOOSE]+")?"+src[BUILD]+"?"+")?)?";var XRANGE=R++;src[XRANGE]="^"+src[GTLT]+"\\s*"+src[XRANGEPLAIN]+"$";var XRANGELOOSE=R++;src[XRANGELOOSE]="^"+src[GTLT]+"\\s*"+src[XRANGEPLAINLOOSE]+"$";var COERCE=R++;src[COERCE]="(?:^|[^\\d])"+"(\\d{1,"+MAX_SAFE_COMPONENT_LENGTH+"})"+"(?:\\.(\\d{1,"+MAX_SAFE_COMPONENT_LENGTH+"}))?"+"(?:\\.(\\d{1,"+MAX_SAFE_COMPONENT_LENGTH+"}))?"+"(?:$|[^\\d])";var LONETILDE=R++;src[LONETILDE]="(?:~>?)";var TILDETRIM=R++;src[TILDETRIM]="(\\s*)"+src[LONETILDE]+"\\s+";re[TILDETRIM]=new RegExp(src[TILDETRIM],"g");var tildeTrimReplace="$1~";var TILDE=R++;src[TILDE]="^"+src[LONETILDE]+src[XRANGEPLAIN]+"$";var TILDELOOSE=R++;src[TILDELOOSE]="^"+src[LONETILDE]+src[XRANGEPLAINLOOSE]+"$";var LONECARET=R++;src[LONECARET]="(?:\\^)";var CARETTRIM=R++;src[CARETTRIM]="(\\s*)"+src[LONECARET]+"\\s+";re[CARETTRIM]=new RegExp(src[CARETTRIM],"g");var caretTrimReplace="$1^";var CARET=R++;src[CARET]="^"+src[LONECARET]+src[XRANGEPLAIN]+"$";var CARETLOOSE=R++;src[CARETLOOSE]="^"+src[LONECARET]+src[XRANGEPLAINLOOSE]+"$";var COMPARATORLOOSE=R++;src[COMPARATORLOOSE]="^"+src[GTLT]+"\\s*("+LOOSEPLAIN+")$|^$";var COMPARATOR=R++;src[COMPARATOR]="^"+src[GTLT]+"\\s*("+FULLPLAIN+")$|^$";var COMPARATORTRIM=R++;src[COMPARATORTRIM]="(\\s*)"+src[GTLT]+"\\s*("+LOOSEPLAIN+"|"+src[XRANGEPLAIN]+")";re[COMPARATORTRIM]=new RegExp(src[COMPARATORTRIM],"g");var comparatorTrimReplace="$1$2$3";var HYPHENRANGE=R++;src[HYPHENRANGE]="^\\s*("+src[XRANGEPLAIN]+")"+"\\s+-\\s+"+"("+src[XRANGEPLAIN]+")"+"\\s*$";var HYPHENRANGELOOSE=R++;src[HYPHENRANGELOOSE]="^\\s*("+src[XRANGEPLAINLOOSE]+")"+"\\s+-\\s+"+"("+src[XRANGEPLAINLOOSE]+")"+"\\s*$";var STAR=R++;src[STAR]="(<|>)?=?\\s*\\*";for(var i=0;i<R;i++){debug(i,src[i]);if(!re[i]){re[i]=new RegExp(src[i])}}exports.parse=parse;function parse(version,options){if(!options||typeof options!=="object"){options={loose:!!options,includePrerelease:false}}if(version instanceof SemVer){return version}if(typeof version!=="string"){return null}if(version.length>MAX_LENGTH){return null}var r=options.loose?re[LOOSE]:re[FULL];if(!r.test(version)){return null}try{return new SemVer(version,options)}catch(er){return null}}exports.valid=valid;function valid(version,options){var v=parse(version,options);return v?v.version:null}exports.clean=clean;function clean(version,options){var s=parse(version.trim().replace(/^[=v]+/,""),options);return s?s.version:null}exports.SemVer=SemVer;function SemVer(version,options){if(!options||typeof options!=="object"){options={loose:!!options,includePrerelease:false}}if(version instanceof SemVer){if(version.loose===options.loose){return version}else{version=version.version}}else if(typeof version!=="string"){throw new TypeError("Invalid Version: "+version)}if(version.length>MAX_LENGTH){throw new TypeError("version is longer than "+MAX_LENGTH+" characters")}if(!(this instanceof SemVer)){return new SemVer(version,options)}debug("SemVer",version,options);this.options=options;this.loose=!!options.loose;var m=version.trim().match(options.loose?re[LOOSE]:re[FULL]);if(!m){throw new TypeError("Invalid Version: "+version)}this.raw=version;this.major=+m[1];this.minor=+m[2];this.patch=+m[3];if(this.major>MAX_SAFE_INTEGER||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>MAX_SAFE_INTEGER||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>MAX_SAFE_INTEGER||this.patch<0){throw new TypeError("Invalid patch version")}if(!m[4]){this.prerelease=[]}else{this.prerelease=m[4].split(".").map((function(id){if(/^[0-9]+$/.test(id)){var num=+id;if(num>=0&&num<MAX_SAFE_INTEGER){return num}}return id}))}this.build=m[5]?m[5].split("."):[];this.format()}SemVer.prototype.format=function(){this.version=this.major+"."+this.minor+"."+this.patch;if(this.prerelease.length){this.version+="-"+this.prerelease.join(".")}return this.version};SemVer.prototype.toString=function(){return this.version};SemVer.prototype.compare=function(other){debug("SemVer.compare",this.version,this.options,other);if(!(other instanceof SemVer)){other=new SemVer(other,this.options)}return this.compareMain(other)||this.comparePre(other)};SemVer.prototype.compareMain=function(other){if(!(other instanceof SemVer)){other=new SemVer(other,this.options)}return compareIdentifiers(this.major,other.major)||compareIdentifiers(this.minor,other.minor)||compareIdentifiers(this.patch,other.patch)};SemVer.prototype.comparePre=function(other){if(!(other instanceof SemVer)){other=new SemVer(other,this.options)}if(this.prerelease.length&&!other.prerelease.length){return-1}else if(!this.prerelease.length&&other.prerelease.length){return 1}else if(!this.prerelease.length&&!other.prerelease.length){return 0}var i=0;do{var a=this.prerelease[i];var b=other.prerelease[i];debug("prerelease compare",i,a,b);if(a===undefined&&b===undefined){return 0}else if(b===undefined){return 1}else if(a===undefined){return-1}else if(a===b){continue}else{return compareIdentifiers(a,b)}}while(++i)};SemVer.prototype.inc=function(release,identifier){switch(release){case"premajor":this.prerelease.length=0;this.patch=0;this.minor=0;this.major++;this.inc("pre",identifier);break;case"preminor":this.prerelease.length=0;this.patch=0;this.minor++;this.inc("pre",identifier);break;case"prepatch":this.prerelease.length=0;this.inc("patch",identifier);this.inc("pre",identifier);break;case"prerelease":if(this.prerelease.length===0){this.inc("patch",identifier)}this.inc("pre",identifier);break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0){this.major++}this.minor=0;this.patch=0;this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0){this.minor++}this.patch=0;this.prerelease=[];break;case"patch":if(this.prerelease.length===0){this.patch++}this.prerelease=[];break;case"pre":if(this.prerelease.length===0){this.prerelease=[0]}else{var i=this.prerelease.length;while(--i>=0){if(typeof this.prerelease[i]==="number"){this.prerelease[i]++;i=-2}}if(i===-1){this.prerelease.push(0)}}if(identifier){if(this.prerelease[0]===identifier){if(isNaN(this.prerelease[1])){this.prerelease=[identifier,0]}}else{this.prerelease=[identifier,0]}}break;default:throw new Error("invalid increment argument: "+release)}this.format();this.raw=this.version;return this};exports.inc=inc;function inc(version,release,loose,identifier){if(typeof loose==="string"){identifier=loose;loose=undefined}try{return new SemVer(version,loose).inc(release,identifier).version}catch(er){return null}}exports.diff=diff;function diff(version1,version2){if(eq(version1,version2)){return null}else{var v1=parse(version1);var v2=parse(version2);var prefix="";if(v1.prerelease.length||v2.prerelease.length){prefix="pre";var defaultResult="prerelease"}for(var key in v1){if(key==="major"||key==="minor"||key==="patch"){if(v1[key]!==v2[key]){return prefix+key}}}return defaultResult}}exports.compareIdentifiers=compareIdentifiers;var numeric=/^[0-9]+$/;function compareIdentifiers(a,b){var anum=numeric.test(a);var bnum=numeric.test(b);if(anum&&bnum){a=+a;b=+b}return a===b?0:anum&&!bnum?-1:bnum&&!anum?1:a<b?-1:1}exports.rcompareIdentifiers=rcompareIdentifiers;function rcompareIdentifiers(a,b){return compareIdentifiers(b,a)}exports.major=major;function major(a,loose){return new SemVer(a,loose).major}exports.minor=minor;function minor(a,loose){return new SemVer(a,loose).minor}exports.patch=patch;function patch(a,loose){return new SemVer(a,loose).patch}exports.compare=compare;function compare(a,b,loose){return new SemVer(a,loose).compare(new SemVer(b,loose))}exports.compareLoose=compareLoose;function compareLoose(a,b){return compare(a,b,true)}exports.rcompare=rcompare;function rcompare(a,b,loose){return compare(b,a,loose)}exports.sort=sort;function sort(list,loose){return list.sort((function(a,b){return exports.compare(a,b,loose)}))}exports.rsort=rsort;function rsort(list,loose){return list.sort((function(a,b){return exports.rcompare(a,b,loose)}))}exports.gt=gt;function gt(a,b,loose){return compare(a,b,loose)>0}exports.lt=lt;function lt(a,b,loose){return compare(a,b,loose)<0}exports.eq=eq;function eq(a,b,loose){return compare(a,b,loose)===0}exports.neq=neq;function neq(a,b,loose){return compare(a,b,loose)!==0}exports.gte=gte;function gte(a,b,loose){return compare(a,b,loose)>=0}exports.lte=lte;function lte(a,b,loose){return compare(a,b,loose)<=0}exports.cmp=cmp;function cmp(a,op,b,loose){switch(op){case"===":if(typeof a==="object")a=a.version;if(typeof b==="object")b=b.version;return a===b;case"!==":if(typeof a==="object")a=a.version;if(typeof b==="object")b=b.version;return a!==b;case"":case"=":case"==":return eq(a,b,loose);case"!=":return neq(a,b,loose);case">":return gt(a,b,loose);case">=":return gte(a,b,loose);case"<":return lt(a,b,loose);case"<=":return lte(a,b,loose);default:throw new TypeError("Invalid operator: "+op)}}exports.Comparator=Comparator;function Comparator(comp,options){if(!options||typeof options!=="object"){options={loose:!!options,includePrerelease:false}}if(comp instanceof Comparator){if(comp.loose===!!options.loose){return comp}else{comp=comp.value}}if(!(this instanceof Comparator)){return new Comparator(comp,options)}debug("comparator",comp,options);this.options=options;this.loose=!!options.loose;this.parse(comp);if(this.semver===ANY){this.value=""}else{this.value=this.operator+this.semver.version}debug("comp",this)}var ANY={};Comparator.prototype.parse=function(comp){var r=this.options.loose?re[COMPARATORLOOSE]:re[COMPARATOR];var m=comp.match(r);if(!m){throw new TypeError("Invalid comparator: "+comp)}this.operator=m[1];if(this.operator==="="){this.operator=""}if(!m[2]){this.semver=ANY}else{this.semver=new SemVer(m[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(version){debug("Comparator.test",version,this.options.loose);if(this.semver===ANY){return true}if(typeof version==="string"){version=new SemVer(version,this.options)}return cmp(version,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(comp,options){if(!(comp instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!options||typeof options!=="object"){options={loose:!!options,includePrerelease:false}}var rangeTmp;if(this.operator===""){rangeTmp=new Range(comp.value,options);return satisfies(this.value,rangeTmp,options)}else if(comp.operator===""){rangeTmp=new Range(this.value,options);return satisfies(comp.semver,rangeTmp,options)}var sameDirectionIncreasing=(this.operator===">="||this.operator===">")&&(comp.operator===">="||comp.operator===">");var sameDirectionDecreasing=(this.operator==="<="||this.operator==="<")&&(comp.operator==="<="||comp.operator==="<");var sameSemVer=this.semver.version===comp.semver.version;var differentDirectionsInclusive=(this.operator===">="||this.operator==="<=")&&(comp.operator===">="||comp.operator==="<=");var oppositeDirectionsLessThan=cmp(this.semver,"<",comp.semver,options)&&((this.operator===">="||this.operator===">")&&(comp.operator==="<="||comp.operator==="<"));var oppositeDirectionsGreaterThan=cmp(this.semver,">",comp.semver,options)&&((this.operator==="<="||this.operator==="<")&&(comp.operator===">="||comp.operator===">"));return sameDirectionIncreasing||sameDirectionDecreasing||sameSemVer&&differentDirectionsInclusive||oppositeDirectionsLessThan||oppositeDirectionsGreaterThan};exports.Range=Range;function Range(range,options){if(!options||typeof options!=="object"){options={loose:!!options,includePrerelease:false}}if(range instanceof Range){if(range.loose===!!options.loose&&range.includePrerelease===!!options.includePrerelease){return range}else{return new Range(range.raw,options)}}if(range instanceof Comparator){return new Range(range.value,options)}if(!(this instanceof Range)){return new Range(range,options)}this.options=options;this.loose=!!options.loose;this.includePrerelease=!!options.includePrerelease;this.raw=range;this.set=range.split(/\s*\|\|\s*/).map((function(range){return this.parseRange(range.trim())}),this).filter((function(c){return c.length}));if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+range)}this.format()}Range.prototype.format=function(){this.range=this.set.map((function(comps){return comps.join(" ").trim()})).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(range){var loose=this.options.loose;range=range.trim();var hr=loose?re[HYPHENRANGELOOSE]:re[HYPHENRANGE];range=range.replace(hr,hyphenReplace);debug("hyphen replace",range);range=range.replace(re[COMPARATORTRIM],comparatorTrimReplace);debug("comparator trim",range,re[COMPARATORTRIM]);range=range.replace(re[TILDETRIM],tildeTrimReplace);range=range.replace(re[CARETTRIM],caretTrimReplace);range=range.split(/\s+/).join(" ");var compRe=loose?re[COMPARATORLOOSE]:re[COMPARATOR];var set=range.split(" ").map((function(comp){return parseComparator(comp,this.options)}),this).join(" ").split(/\s+/);if(this.options.loose){set=set.filter((function(comp){return!!comp.match(compRe)}))}set=set.map((function(comp){return new Comparator(comp,this.options)}),this);return set};Range.prototype.intersects=function(range,options){if(!(range instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((function(thisComparators){return thisComparators.every((function(thisComparator){return range.set.some((function(rangeComparators){return rangeComparators.every((function(rangeComparator){return thisComparator.intersects(rangeComparator,options)}))}))}))}))};exports.toComparators=toComparators;function toComparators(range,options){return new Range(range,options).set.map((function(comp){return comp.map((function(c){return c.value})).join(" ").trim().split(" ")}))}function parseComparator(comp,options){debug("comp",comp,options);comp=replaceCarets(comp,options);debug("caret",comp);comp=replaceTildes(comp,options);debug("tildes",comp);comp=replaceXRanges(comp,options);debug("xrange",comp);comp=replaceStars(comp,options);debug("stars",comp);return comp}function isX(id){return!id||id.toLowerCase()==="x"||id==="*"}function replaceTildes(comp,options){return comp.trim().split(/\s+/).map((function(comp){return replaceTilde(comp,options)})).join(" ")}function replaceTilde(comp,options){var r=options.loose?re[TILDELOOSE]:re[TILDE];return comp.replace(r,(function(_,M,m,p,pr){debug("tilde",comp,_,M,m,p,pr);var ret;if(isX(M)){ret=""}else if(isX(m)){ret=">="+M+".0.0 <"+(+M+1)+".0.0"}else if(isX(p)){ret=">="+M+"."+m+".0 <"+M+"."+(+m+1)+".0"}else if(pr){debug("replaceTilde pr",pr);ret=">="+M+"."+m+"."+p+"-"+pr+" <"+M+"."+(+m+1)+".0"}else{ret=">="+M+"."+m+"."+p+" <"+M+"."+(+m+1)+".0"}debug("tilde return",ret);return ret}))}function replaceCarets(comp,options){return comp.trim().split(/\s+/).map((function(comp){return replaceCaret(comp,options)})).join(" ")}function replaceCaret(comp,options){debug("caret",comp,options);var r=options.loose?re[CARETLOOSE]:re[CARET];return comp.replace(r,(function(_,M,m,p,pr){debug("caret",comp,_,M,m,p,pr);var ret;if(isX(M)){ret=""}else if(isX(m)){ret=">="+M+".0.0 <"+(+M+1)+".0.0"}else if(isX(p)){if(M==="0"){ret=">="+M+"."+m+".0 <"+M+"."+(+m+1)+".0"}else{ret=">="+M+"."+m+".0 <"+(+M+1)+".0.0"}}else if(pr){debug("replaceCaret pr",pr);if(M==="0"){if(m==="0"){ret=">="+M+"."+m+"."+p+"-"+pr+" <"+M+"."+m+"."+(+p+1)}else{ret=">="+M+"."+m+"."+p+"-"+pr+" <"+M+"."+(+m+1)+".0"}}else{ret=">="+M+"."+m+"."+p+"-"+pr+" <"+(+M+1)+".0.0"}}else{debug("no pr");if(M==="0"){if(m==="0"){ret=">="+M+"."+m+"."+p+" <"+M+"."+m+"."+(+p+1)}else{ret=">="+M+"."+m+"."+p+" <"+M+"."+(+m+1)+".0"}}else{ret=">="+M+"."+m+"."+p+" <"+(+M+1)+".0.0"}}debug("caret return",ret);return ret}))}function replaceXRanges(comp,options){debug("replaceXRanges",comp,options);return comp.split(/\s+/).map((function(comp){return replaceXRange(comp,options)})).join(" ")}function replaceXRange(comp,options){comp=comp.trim();var r=options.loose?re[XRANGELOOSE]:re[XRANGE];return comp.replace(r,(function(ret,gtlt,M,m,p,pr){debug("xRange",comp,ret,gtlt,M,m,p,pr);var xM=isX(M);var xm=xM||isX(m);var xp=xm||isX(p);var anyX=xp;if(gtlt==="="&&anyX){gtlt=""}if(xM){if(gtlt===">"||gtlt==="<"){ret="<0.0.0"}else{ret="*"}}else if(gtlt&&anyX){if(xm){m=0}p=0;if(gtlt===">"){gtlt=">=";if(xm){M=+M+1;m=0;p=0}else{m=+m+1;p=0}}else if(gtlt==="<="){gtlt="<";if(xm){M=+M+1}else{m=+m+1}}ret=gtlt+M+"."+m+"."+p}else if(xm){ret=">="+M+".0.0 <"+(+M+1)+".0.0"}else if(xp){ret=">="+M+"."+m+".0 <"+M+"."+(+m+1)+".0"}debug("xRange return",ret);return ret}))}function replaceStars(comp,options){debug("replaceStars",comp,options);return comp.trim().replace(re[STAR],"")}function hyphenReplace($0,from,fM,fm,fp,fpr,fb,to,tM,tm,tp,tpr,tb){if(isX(fM)){from=""}else if(isX(fm)){from=">="+fM+".0.0"}else if(isX(fp)){from=">="+fM+"."+fm+".0"}else{from=">="+from}if(isX(tM)){to=""}else if(isX(tm)){to="<"+(+tM+1)+".0.0"}else if(isX(tp)){to="<"+tM+"."+(+tm+1)+".0"}else if(tpr){to="<="+tM+"."+tm+"."+tp+"-"+tpr}else{to="<="+to}return(from+" "+to).trim()}Range.prototype.test=function(version){if(!version){return false}if(typeof version==="string"){version=new SemVer(version,this.options)}for(var i=0;i<this.set.length;i++){if(testSet(this.set[i],version,this.options)){return true}}return false};function testSet(set,version,options){for(var i=0;i<set.length;i++){if(!set[i].test(version)){return false}}if(version.prerelease.length&&!options.includePrerelease){for(i=0;i<set.length;i++){debug(set[i].semver);if(set[i].semver===ANY){continue}if(set[i].semver.prerelease.length>0){var allowed=set[i].semver;if(allowed.major===version.major&&allowed.minor===version.minor&&allowed.patch===version.patch){return true}}}return false}return true}exports.satisfies=satisfies;function satisfies(version,range,options){try{range=new Range(range,options)}catch(er){return false}return range.test(version)}exports.maxSatisfying=maxSatisfying;function maxSatisfying(versions,range,options){var max=null;var maxSV=null;try{var rangeObj=new Range(range,options)}catch(er){return null}versions.forEach((function(v){if(rangeObj.test(v)){if(!max||maxSV.compare(v)===-1){max=v;maxSV=new SemVer(max,options)}}}));return max}exports.minSatisfying=minSatisfying;function minSatisfying(versions,range,options){var min=null;var minSV=null;try{var rangeObj=new Range(range,options)}catch(er){return null}versions.forEach((function(v){if(rangeObj.test(v)){if(!min||minSV.compare(v)===1){min=v;minSV=new SemVer(min,options)}}}));return min}exports.minVersion=minVersion;function minVersion(range,loose){range=new Range(range,loose);var minver=new SemVer("0.0.0");if(range.test(minver)){return minver}minver=new SemVer("0.0.0-0");if(range.test(minver)){return minver}minver=null;for(var i=0;i<range.set.length;++i){var comparators=range.set[i];comparators.forEach((function(comparator){var compver=new SemVer(comparator.semver.version);switch(comparator.operator){case">":if(compver.prerelease.length===0){compver.patch++}else{compver.prerelease.push(0)}compver.raw=compver.format();case"":case">=":if(!minver||gt(minver,compver)){minver=compver}break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+comparator.operator)}}))}if(minver&&range.test(minver)){return minver}return null}exports.validRange=validRange;function validRange(range,options){try{return new Range(range,options).range||"*"}catch(er){return null}}exports.ltr=ltr;function ltr(version,range,options){return outside(version,range,"<",options)}exports.gtr=gtr;function gtr(version,range,options){return outside(version,range,">",options)}exports.outside=outside;function outside(version,range,hilo,options){version=new SemVer(version,options);range=new Range(range,options);var gtfn,ltefn,ltfn,comp,ecomp;switch(hilo){case">":gtfn=gt;ltefn=lte;ltfn=lt;comp=">";ecomp=">=";break;case"<":gtfn=lt;ltefn=gte;ltfn=gt;comp="<";ecomp="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(version,range,options)){return false}for(var i=0;i<range.set.length;++i){var comparators=range.set[i];var high=null;var low=null;comparators.forEach((function(comparator){if(comparator.semver===ANY){comparator=new Comparator(">=0.0.0")}high=high||comparator;low=low||comparator;if(gtfn(comparator.semver,high.semver,options)){high=comparator}else if(ltfn(comparator.semver,low.semver,options)){low=comparator}}));if(high.operator===comp||high.operator===ecomp){return false}if((!low.operator||low.operator===comp)&<efn(version,low.semver)){return false}else if(low.operator===ecomp&<fn(version,low.semver)){return false}}return true}exports.prerelease=prerelease;function prerelease(version,options){var parsed=parse(version,options);return parsed&&parsed.prerelease.length?parsed.prerelease:null}exports.intersects=intersects;function intersects(r1,r2,options){r1=new Range(r1,options);r2=new Range(r2,options);return r1.intersects(r2)}exports.coerce=coerce;function coerce(version){if(version instanceof SemVer){return version}if(typeof version!=="string"){return null}var match=version.match(re[COERCE]);if(match==null){return null}return parse(match[1]+"."+(match[2]||"0")+"."+(match[3]||"0"))}},46874:(module,__unused_webpack_exports,__webpack_require__)=>{var linker=__webpack_require__(49801);function versionToSemver(version){var parsed=version.match(/^([0-9]+\.[0-9]+\.[0-9]+)-([0-9a-f]{8})[/*].*$/);if(parsed){return parsed[1]+"+commit."+parsed[2]}if(version.indexOf("0.1.3-0")!==-1){return"0.1.3"}if(version.indexOf("0.3.5-0")!==-1){return"0.3.5"}return version}function translateErrors(ret,errors){for(var error in errors){var type="error";var extractType=/^(.*):(\d+):(\d+):(.*):/;extractType=extractType.exec(errors[error]);if(extractType){type=extractType[4].trim()}else if(errors[error].indexOf(": Warning:")){type="Warning"}else if(errors[error].indexOf(": Error:")){type="Error"}ret.push({type,component:"general",severity:type==="Warning"?"warning":"error",message:errors[error],formattedMessage:errors[error]})}}function translateGasEstimates(gasEstimates){if(gasEstimates===null){return"infinite"}if(typeof gasEstimates==="number"){return gasEstimates.toString()}var gasEstimatesTranslated={};for(var func in gasEstimates){gasEstimatesTranslated[func]=translateGasEstimates(gasEstimates[func])}return gasEstimatesTranslated}function translateJsonCompilerOutput(output,libraries){var ret={};ret["errors"]=[];var errors;if(output["error"]){errors=[output["error"]]}else{errors=output["errors"]}translateErrors(ret["errors"],errors);ret["contracts"]={};for(var contract in output["contracts"]){var tmp=contract.match(/^(([^:]*):)?([^:]+)$/);if(tmp.length!==4){return null}var fileName=tmp[2];if(fileName===undefined){fileName=""}var contractName=tmp[3];var contractInput=output["contracts"][contract];var gasEstimates=contractInput["gasEstimates"];var translatedGasEstimates={};if(gasEstimates["creation"]){translatedGasEstimates["creation"]={codeDepositCost:translateGasEstimates(gasEstimates["creation"][1]),executionCost:translateGasEstimates(gasEstimates["creation"][0])}}if(gasEstimates["internal"]){translatedGasEstimates["internal"]=translateGasEstimates(gasEstimates["internal"])}if(gasEstimates["external"]){translatedGasEstimates["external"]=translateGasEstimates(gasEstimates["external"])}var contractOutput={abi:JSON.parse(contractInput["interface"]),metadata:contractInput["metadata"],evm:{legacyAssembly:contractInput["assembly"],bytecode:{object:contractInput["bytecode"]&&linker.linkBytecode(contractInput["bytecode"],libraries||{}),opcodes:contractInput["opcodes"],sourceMap:contractInput["srcmap"],linkReferences:contractInput["bytecode"]&&linker.findLinkReferences(contractInput["bytecode"])},deployedBytecode:{object:contractInput["runtimeBytecode"]&&linker.linkBytecode(contractInput["runtimeBytecode"],libraries||{}),sourceMap:contractInput["srcmapRuntime"],linkReferences:contractInput["runtimeBytecode"]&&linker.findLinkReferences(contractInput["runtimeBytecode"])},methodIdentifiers:contractInput["functionHashes"],gasEstimates:translatedGasEstimates}};if(!ret["contracts"][fileName]){ret["contracts"][fileName]={}}ret["contracts"][fileName][contractName]=contractOutput}var sourceMap={};for(var sourceId in output["sourceList"]){sourceMap[output["sourceList"][sourceId]]=sourceId}ret["sources"]={};for(var source in output["sources"]){ret["sources"][source]={id:sourceMap[source],legacyAST:output["sources"][source].AST}}return ret}function escapeString(text){return text.replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t")}function formatAssemblyText(asm,prefix,source){if(typeof asm==="string"||asm===null||asm===undefined){return prefix+(asm||"")+"\n"}var text=prefix+".code\n";asm[".code"].forEach((function(item,i){var v=item.value===undefined?"":item.value;var src="";if(source!==undefined&&item.begin!==undefined&&item.end!==undefined){src=escapeString(source.slice(item.begin,item.end))}if(src.length>30){src=src.slice(0,30)+"..."}if(item.name!=="tag"){text+=" "}text+=prefix+item.name+" "+v+"\t\t\t"+src+"\n"}));text+=prefix+".data\n";var asmData=asm[".data"]||[];for(var i in asmData){var item=asmData[i];text+=" "+prefix+""+i+":\n";text+=formatAssemblyText(item,prefix+" ",source)}return text}function prettyPrintLegacyAssemblyJSON(assembly,source){return formatAssemblyText(assembly,"",source)}module.exports={versionToSemver,translateJsonCompilerOutput,prettyPrintLegacyAssemblyJSON}},92147:(module,__unused_webpack_exports,__webpack_require__)=>{var assert=__webpack_require__(59741);var translate=__webpack_require__(46874);var requireFromString=__webpack_require__(78740);var https=__webpack_require__(95101).https;var MemoryStream=__webpack_require__(48722);var semver=__webpack_require__(13122);function setupMethods(soljson){var version;if("_solidity_version"in soljson){version=soljson.cwrap("solidity_version","string",[])}else{version=soljson.cwrap("version","string",[])}var versionToSemver=function(){return translate.versionToSemver(version())};var isVersion6=semver.gt(versionToSemver(),"0.5.99");var license;if("_solidity_license"in soljson){license=soljson.cwrap("solidity_license","string",[])}else if("_license"in soljson){license=soljson.cwrap("license","string",[])}else{license=function(){}}var alloc;if("_solidity_alloc"in soljson){alloc=soljson.cwrap("solidity_alloc","number",["number"])}else{alloc=soljson._malloc;assert(alloc,"Expected malloc to be present.")}var reset;if("_solidity_reset"in soljson){reset=soljson.cwrap("solidity_reset",null,[])}var copyToCString=function(str,ptr){var length=soljson.lengthBytesUTF8(str);var buffer=alloc(length+1);soljson.stringToUTF8(str,buffer,length+1);soljson.setValue(ptr,buffer,"*")};var copyFromCString=soljson.UTF8ToString||soljson.Pointer_stringify;var wrapCallback=function(callback){assert(typeof callback==="function","Invalid callback specified.");return function(data,contents,error){var result=callback(copyFromCString(data));if(typeof result.contents==="string"){copyToCString(result.contents,contents)}if(typeof result.error==="string"){copyToCString(result.error,error)}}};var wrapCallbackWithKind=function(callback){assert(typeof callback==="function","Invalid callback specified.");return function(context,kind,data,contents,error){assert(context===0,"Callback context must be null.");var result=callback(copyFromCString(kind),copyFromCString(data));if(typeof result.contents==="string"){copyToCString(result.contents,contents)}if(typeof result.error==="string"){copyToCString(result.error,error)}}};var runWithCallbacks=function(callbacks,compile,args){if(callbacks){assert(typeof callbacks==="object","Invalid callback object specified.")}else{callbacks={}}var readCallback=callbacks.import;if(readCallback===undefined){readCallback=function(data){return{error:"File import callback not supported"}}}var singleCallback;if(isVersion6){var smtSolverCallback=callbacks.smtSolver;if(smtSolverCallback===undefined){smtSolverCallback=function(data){return{error:"SMT solver callback not supported"}}}singleCallback=function(kind,data){if(kind==="source"){return readCallback(data)}else if(kind==="smt-query"){return smtSolverCallback(data)}else{assert(false,"Invalid callback kind specified.")}};singleCallback=wrapCallbackWithKind(singleCallback)}else{singleCallback=wrapCallback(readCallback)}var addFunction=soljson.addFunction||soljson.Runtime.addFunction;var removeFunction=soljson.removeFunction||soljson.Runtime.removeFunction;var cb=addFunction(singleCallback,"viiiii");var output;try{args.push(cb);if(isVersion6){args.push(null)}output=compile.apply(undefined,args)}catch(e){removeFunction(cb);throw e}removeFunction(cb);if(reset){reset()}return output};var compileJSON=null;if("_compileJSON"in soljson){compileJSON=soljson.cwrap("compileJSON","string",["string","number"])}var compileJSONMulti=null;if("_compileJSONMulti"in soljson){compileJSONMulti=soljson.cwrap("compileJSONMulti","string",["string","number"])}var compileJSONCallback=null;if("_compileJSONCallback"in soljson){var compileInternal=soljson.cwrap("compileJSONCallback","string",["string","number","number"]);compileJSONCallback=function(input,optimize,readCallback){return runWithCallbacks(readCallback,compileInternal,[input,optimize])}}var compileStandard=null;if("_compileStandard"in soljson){var compileStandardInternal=soljson.cwrap("compileStandard","string",["string","number"]);compileStandard=function(input,readCallback){return runWithCallbacks(readCallback,compileStandardInternal,[input])}}if("_solidity_compile"in soljson){var solidityCompile;if(isVersion6){solidityCompile=soljson.cwrap("solidity_compile","string",["string","number","number"])}else{solidityCompile=soljson.cwrap("solidity_compile","string",["string","number"])}compileStandard=function(input,callbacks){return runWithCallbacks(callbacks,solidityCompile,[input])}}var compileStandardWrapper=function(input,readCallback){if(compileStandard!==null){return compileStandard(input,readCallback)}function formatFatalError(message){return JSON.stringify({errors:[{type:"JSONError",component:"solcjs",severity:"error",message,formattedMessage:"Error: "+message}]})}try{input=JSON.parse(input)}catch(e){return formatFatalError("Invalid JSON supplied: "+e.message)}if(input["language"]!=="Solidity"){return formatFatalError('Only "Solidity" is supported as a language.')}if(input["sources"]==null||input["sources"].length===0){return formatFatalError("No input sources specified.")}function isOptimizerEnabled(input){return input["settings"]&&input["settings"]["optimizer"]&&input["settings"]["optimizer"]["enabled"]}function translateSources(input){var sources={};for(var source in input["sources"]){if(input["sources"][source]["content"]!==null){sources[source]=input["sources"][source]["content"]}else{return null}}return sources}function librariesSupplied(input){if(input["settings"]){return input["settings"]["libraries"]}}function translateOutput(output,libraries){try{output=JSON.parse(output)}catch(e){return formatFatalError("Compiler returned invalid JSON: "+e.message)}output=translate.translateJsonCompilerOutput(output,libraries);if(output==null){return formatFatalError("Failed to process output.")}return JSON.stringify(output)}var sources=translateSources(input);if(sources===null||Object.keys(sources).length===0){return formatFatalError("Failed to process sources.")}var libraries=librariesSupplied(input);if(compileJSONCallback!==null){return translateOutput(compileJSONCallback(JSON.stringify({sources}),isOptimizerEnabled(input),readCallback),libraries)}if(compileJSONMulti!==null){return translateOutput(compileJSONMulti(JSON.stringify({sources}),isOptimizerEnabled(input)),libraries)}if(compileJSON!==null){if(Object.keys(sources).length!==1){return formatFatalError("Multiple sources provided, but compiler only supports single input.")}return translateOutput(compileJSON(sources[Object.keys(sources)[0]],isOptimizerEnabled(input)),libraries)}return formatFatalError("Compiler does not support any known interface.")};return{version,semver:versionToSemver,license,lowlevel:{compileSingle:compileJSON,compileMulti:compileJSONMulti,compileCallback:compileJSONCallback,compileStandard},features:{legacySingleInput:compileJSON!==null,multipleInputs:compileJSONMulti!==null||compileStandard!==null,importCallback:compileJSONCallback!==null||compileStandard!==null,nativeStandardJSON:compileStandard!==null},compile:compileStandardWrapper,loadRemoteVersion:function(versionString,cb){var mem=new MemoryStream(null,{readable:false});var url="https://solc-bin.ethereum.org/bin/soljson-"+versionString+".js";https.get(url,(function(response){if(response.statusCode!==200){cb(new Error("Error retrieving binary: "+response.statusMessage))}else{response.pipe(mem);response.on("end",(function(){cb(null,setupMethods(requireFromString(mem.toString(),"soljson-"+versionString+".js")))}))}})).on("error",(function(error){cb(error)}))},setupMethods}}module.exports=setupMethods},52531:()=>{}}]);
//# sourceMappingURL=2147.0.36.3.1697209639220.js.map