3
0
Fork 0
mirror of https://gitea.com/docker/metadata-action.git synced 2024-11-24 21:19:33 +01:00
docker-metadata/dist/index.js

74 lines
1.7 MiB
JavaScript
Raw Normal View History

require('./sourcemap-register.js');(()=>{var __webpack_modules__={7351:function(p,a,r){"use strict";var d=this&&this.__createBinding||(Object.create?function(p,a,r,d){if(d===undefined)d=r;Object.defineProperty(p,d,{enumerable:true,get:function(){return a[r]}})}:function(p,a,r,d){if(d===undefined)d=r;p[d]=a[r]});var i=this&&this.__setModuleDefault||(Object.create?function(p,a){Object.defineProperty(p,"default",{enumerable:true,value:a})}:function(p,a){p["default"]=a});var b=this&&this.__importStar||function(p){if(p&&p.__esModule)return p;var a={};if(p!=null)for(var r in p)if(r!=="default"&&Object.hasOwnProperty.call(p,r))d(a,p,r);i(a,p);return a};Object.defineProperty(a,"__esModule",{value:true});a.issue=a.issueCommand=void 0;const c=b(r(2037));const M=r(5278);function issueCommand(p,a,r){const d=new Command(p,a,r);process.stdout.write(d.toString()+c.EOL)}a.issueCommand=issueCommand;function issue(p,a=""){issueCommand(p,{},a)}a.issue=issue;const z="::";class Command{constructor(p,a,r){if(!p){p="missing.command"}this.command=p;this.properties=a;this.message=r}toString(){let p=z+this.command;if(this.properties&&Object.keys(this.properties).length>0){p+=" ";let a=true;for(const r in this.properties){if(this.properties.hasOwnProperty(r)){const d=this.properties[r];if(d){if(a){a=false}else{p+=","}p+=`${r}=${escapeProperty(d)}`}}}}p+=`${z}${escapeData(this.message)}`;return p}}function escapeData(p){return M.toCommandValue(p).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(p){return M.toCommandValue(p).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(p,a,r){"use strict";var d=this&&this.__createBinding||(Object.create?function(p,a,r,d){if(d===undefined)d=r;Object.defineProperty(p,d,{enumerable:true,get:function(){return a[r]}})}:function(p,a,r,d){if(d===undefined)d=r;p[d]=a[r]});var i=this&&this.__setModuleDefault||(Object.create?function(p,a){Object.defineProperty(p,"default",{enumerable:true,value:a})}:function(p,a){p["default"]=a});var b=this&&this.__importStar||function(p){if(p&&p.__esModule)return p;var a={};if(p!=null)for(var r in p)if(r!=="default"&&Object.hasOwnProperty.call(p,r))d(a,p,r);i(a,p);return a};var c=this&&this.__awaiter||function(p,a,r,d){function adopt(p){return p instanceof r?p:new r((function(a){a(p)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(p){try{step(d.next(p))}catch(p){i(p)}}function rejected(p){try{step(d["throw"](p))}catch(p){i(p)}}function step(p){p.done?r(p.value):adopt(p.value).then(fulfilled,rejected)}step((d=d.apply(p,a||[])).next())}))};Object.defineProperty(a,"__esModule",{value:true});a.getIDToken=a.getState=a.saveState=a.group=a.endGroup=a.startGroup=a.info=a.notice=a.warning=a.error=a.debug=a.isDebug=a.setFailed=a.setCommandEcho=a.setOutput=a.getBooleanInput=a.getMultilineInput=a.getInput=a.addPath=a.setSecret=a.exportVariable=a.ExitCode=void 0;const M=r(7351);const z=r(717);const u=r(5278);const O=b(r(2037));const l=b(r(1017));const A=r(8041);var m;(function(p){p[p["Success"]=0]="Success";p[p["Failure"]=1]="Failure"})(m=a.ExitCode||(a.ExitCode={}));function exportVariable(p,a){const r=u.toCommandValue(a);process.env[p]=r;const d=process.env["GITHUB_ENV"]||"";if(d){return z.issueFileCommand("ENV",z.prepareKeyValueMessage(p,a))}M.issueCommand("set-env",{name:p},r)}a.exportVariable=exportVariable;function setSecret(p){M.issueCommand("add-mask",{},p)}a.setSecret=setSecret;function addPath(p){const a=process.env["GITHUB_PATH"]||"";if(a){z.issueFileCommand("PATH",p)}else{M.issueCommand("add-path",{},p)}process.env["PATH"]=`${p}${l.delimiter}${process.env["PATH"]}`}a.addPath=addPath;function getInput(p,a){const r=process.env[`INPUT_${p.replace(/ /g,"_").toUpperCase()}`]||"";if(a&&a.required&&!r){throw new Error(`Input required and not supplied: ${p}`)}if(a&&a.trimWhitespace===false){return r}return r.trim()}a.getInput=getInput;function getMultilineInput(p,a){const r=getInput(p,a).split("\n").filter((p=>p!==""));if(a&&a.trimWhitespace===false){return r}return r.map((p=
/*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/function isObject(p){return Object.prototype.toString.call(p)==="[object Object]"}function isPlainObject(p){var a,r;if(isObject(p)===false)return false;a=p.constructor;if(a===undefined)return true;r=a.prototype;if(isObject(r)===false)return false;if(r.hasOwnProperty("isPrototypeOf")===false){return false}return true}a.isPlainObject=isPlainObject},4329:p=>{"use strict";function e(p){this.message=p}e.prototype=new Error,e.prototype.name="InvalidCharacterError";var a="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(p){var a=String(p).replace(/=+$/,"");if(a.length%4==1)throw new e("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,d,i=0,b=0,c="";d=a.charAt(b++);~d&&(r=i%4?64*r+d:d,i++%4)?c+=String.fromCharCode(255&r>>(-2*i&6)):0)d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(d);return c};function t(p){var r=p.replace(/-/g,"+").replace(/_/g,"/");switch(r.length%4){case 0:break;case 2:r+="==";break;case 3:r+="=";break;default:throw"Illegal base64url string!"}try{return function(p){return decodeURIComponent(a(p).replace(/(.)/g,(function(p,a){var r=a.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r})))}(r)}catch(p){return a(r)}}function n(p){this.message=p}function o(p,a){if("string"!=typeof p)throw new n("Invalid token specified");var r=!0===(a=a||{}).header?0:1;try{return JSON.parse(t(p.split(".")[r]))}catch(p){throw new n("Invalid token specified: "+p.message)}}n.prototype=new Error,n.prototype.name="InvalidTokenError";const r=o;r.default=o,r.InvalidTokenError=n,p.exports=r},7129:(p,a,r)=>{"use strict";const d=r(665);const i=Symbol("max");const b=Symbol("length");const c=Symbol("lengthCalculator");const M=Symbol("allowStale");const z=Symbol("maxAge");const u=Symbol("dispose");const O=Symbol("noDisposeOnSet");const l=Symbol("lruList");const A=Symbol("cache");const m=Symbol("updateAgeOnGet");const naiveLength=()=>1;class LRUCache{constructor(p){if(typeof p==="number")p={max:p};if(!p)p={};if(p.max&&(typeof p.max!=="number"||p.max<0))throw new TypeError("max must be a non-negative number");const a=this[i]=p.max||Infinity;const r=p.length||naiveLength;this[c]=typeof r!=="function"?naiveLength:r;this[M]=p.stale||false;if(p.maxAge&&typeof p.maxAge!=="number")throw new TypeError("maxAge must be a number");this[z]=p.maxAge||0;this[u]=p.dispose;this[O]=p.noDisposeOnSet||false;this[m]=p.updateAgeOnGet||false;this.reset()}set max(p){if(typeof p!=="number"||p<0)throw new TypeError("max must be a non-negative number");this[i]=p||Infinity;trim(this)}get max(){return this[i]}set allowStale(p){this[M]=!!p}get allowStale(){return this[M]}set maxAge(p){if(typeof p!=="number")throw new TypeError("maxAge must be a non-negative number");this[z]=p;trim(this)}get maxAge(){return this[z]}set lengthCalculator(p){if(typeof p!=="function")p=naiveLength;if(p!==this[c]){this[c]=p;this[b]=0;this[l].forEach((p=>{p.length=this[c](p.value,p.key);this[b]+=p.length}))}trim(this)}get lengthCalculator(){return this[c]}get length(){return this[b]}get itemCount(){return this[l].length}rforEach(p,a){a=a||this;for(let r=this[l].tail;r!==null;){const d=r.prev;forEachStep(this,p,r,a);r=d}}forEach(p,a){a=a||this;for(let r=this[l].head;r!==null;){const d=r.next;forEachStep(this,p,r,a);r=d}}keys(){return this[l].toArray().map((p=>p.key))}values(){return this[l].toArray().map((p=>p.value))}reset(){if(this[u]&&this[l]&&this[l].length){this[l].forEach((p=>this[u](p.key,p.value)))}this[A]=new Map;this[l]=new d;this[b]=0}dump(){return this[l].map((p=>isStale(this,p)?false:{k:p.key,v:p.value,e:p.now+(p.maxAge||0)})).toArray().filter((p=>p))}dumpLru(){return this[l]}set(p,a,r){r=r||this[z];if(r&&typeof r!=="number")throw new TypeError("maxAge must be a number");const d=r?Date.now():0;const M=this[c](a,p);if(this[A].has(p)){if(M>this[i]){del(this,this[A].get(p));return false}const c=this[A].get(p);const z=c.value;if(this[u]){if(!this[O])this[u](p,z.value)}z.now=d;z.maxAge=r;z.value=a;this[b]+=M-z.length;z.length=M;this.get(p);trim(this);return true}const m=new Entr
//! moment-timezone.js
//! version : 0.5.42
//! Copyright (c) JS Foundation and other contributors
//! license : MIT
//! github.com/moment/moment-timezone
(function(a,d){"use strict";if(true&&p.exports){p.exports=d(r(9623))}else if(typeof define==="function"&&define.amd){define(["moment"],d)}else{d(a.moment)}})(this,(function(p){"use strict";if(p.version===undefined&&p.default){p=p.default}var a="0.5.42",r={},d={},i={},b={},c={},M;if(!p||typeof p.version!=="string"){logError("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/")}var z=p.version.split("."),u=+z[0],O=+z[1];if(u<2||u===2&&O<6){logError("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js "+p.version+". See momentjs.com")}function charCodeToInt(p){if(p>96){return p-87}else if(p>64){return p-29}return p-48}function unpackBase60(p){var a=0,r=p.split("."),d=r[0],i=r[1]||"",b=1,c,M=0,z=1;if(p.charCodeAt(0)===45){a=1;z=-1}for(a;a<d.length;a++){c=charCodeToInt(d.charCodeAt(a));M=60*M+c}for(a=0;a<i.length;a++){b=b/60;c=charCodeToInt(i.charCodeAt(a));M+=c*b}return M*z}function arrayToInt(p){for(var a=0;a<p.length;a++){p[a]=unpackBase60(p[a])}}function intToUntil(p,a){for(var r=0;r<a;r++){p[r]=Math.round((p[r-1]||0)+p[r]*6e4)}p[a-1]=Infinity}function mapIndices(p,a){var r=[],d;for(d=0;d<a.length;d++){r[d]=p[a[d]]}return r}function unpack(p){var a=p.split("|"),r=a[2].split(" "),d=a[3].split(""),i=a[4].split(" ");arrayToInt(r);arrayToInt(d);arrayToInt(i);intToUntil(i,d.length);return{name:a[0],abbrs:mapIndices(a[1].split(" "),d),offsets:mapIndices(r,d),untils:i,population:a[5]|0}}function Zone(p){if(p){this._set(unpack(p))}}Zone.prototype={_set:function(p){this.name=p.name;this.abbrs=p.abbrs;this.untils=p.untils;this.offsets=p.offsets;this.population=p.population},_index:function(p){var a=+p,r=this.untils,d;for(d=0;d<r.length;d++){if(a<r[d]){return d}}},countries:function(){var p=this.name;return Object.keys(i).filter((function(a){return i[a].zones.indexOf(p)!==-1}))},parse:function(p){var a=+p,r=this.offsets,d=this.untils,i=d.length-1,b,c,M,z;for(z=0;z<i;z++){b=r[z];c=r[z+1];M=r[z?z-1:z];if(b<c&&tz.moveAmbiguousForward){b=c}else if(b>M&&tz.moveInvalidForward){b=M}if(a<d[z]-b*6e4){return r[z]}}return r[i]},abbr:function(p){return this.abbrs[this._index(p)]},offset:function(p){logError("zone.offset has been deprecated in favor of zone.utcOffset");return this.offsets[this._index(p)]},utcOffset:function(p){return this.offsets[this._index(p)]}};function Country(p,a){this.name=p;this.zones=a}function OffsetAt(p){var a=p.toTimeString();var r=a.match(/\([a-z ]+\)/i);if(r&&r[0]){r=r[0].match(/[A-Z]/g);r=r?r.join(""):undefined}else{r=a.match(/[A-Z]{3,5}/g);r=r?r[0]:undefined}if(r==="GMT"){r=undefined}this.at=+p;this.abbr=r;this.offset=p.getTimezoneOffset()}function ZoneScore(p){this.zone=p;this.offsetScore=0;this.abbrScore=0}ZoneScore.prototype.scoreOffsetAt=function(p){this.offsetScore+=Math.abs(this.zone.utcOffset(p.at)-p.offset);if(this.zone.abbr(p.at).replace(/[^A-Z]/g,"")!==p.abbr){this.abbrScore++}};function findChange(p,a){var r,d;while(d=((a.at-p.at)/12e4|0)*6e4){r=new OffsetAt(new Date(p.at+d));if(r.offset===p.offset){p=r}else{a=r}}return p}function userOffsets(){var p=(new Date).getFullYear()-2,a=new OffsetAt(new Date(p,0,1)),r=[a],d,i,b;for(b=1;b<48;b++){i=new OffsetAt(new Date(p,b,1));if(i.offset!==a.offset){d=findChange(a,i);r.push(d);r.push(new OffsetAt(new Date(d.at+6e4)))}a=i}for(b=0;b<4;b++){r.push(new OffsetAt(new Date(p+b,0,1)));r.push(new OffsetAt(new Date(p+b,6,1)))}return r}function sortZoneScores(p,a){if(p.offsetScore!==a.offsetScore){return p.offsetScore-a.offsetScore}if(p.abbrScore!==a.abbrScore){return p.abbrScore-a.abbrScore}if(p.zone.population!==a.zone.population){return a.zone.population-p.zone.population}return a.zone.name.localeCompare(p.zone.name)}function addToGuesses(p,a){var r,d;arrayToInt(a);for(r=0;r<a.length;r++){d=a[r];c[d]=c[d]||{};c[d][p]=true}}function guessesForUserOffsets(p){var a=p.length,r={},d=[],i,M,z;for(i=0;i<a;i++){z=c[p[i].offset]||{};for(M in z){if(z.hasOwnProperty(M)){r[M]=true}}}for(i in r){if(r.hasOwnProperty(i)){d.push(b[i])}}return d}function rebuildGuess(){try{var p=Intl.DateTimeFormat().resolvedOptions().timeZon
//! moment.js
//! version : 2.29.4
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
(function(a,r){true?p.exports=r():0})(this,(function(){"use strict";var a;function hooks(){return a.apply(null,arguments)}function setHookCallback(p){a=p}function isArray(p){return p instanceof Array||Object.prototype.toString.call(p)==="[object Array]"}function isObject(p){return p!=null&&Object.prototype.toString.call(p)==="[object Object]"}function hasOwnProp(p,a){return Object.prototype.hasOwnProperty.call(p,a)}function isObjectEmpty(p){if(Object.getOwnPropertyNames){return Object.getOwnPropertyNames(p).length===0}else{var a;for(a in p){if(hasOwnProp(p,a)){return false}}return true}}function isUndefined(p){return p===void 0}function isNumber(p){return typeof p==="number"||Object.prototype.toString.call(p)==="[object Number]"}function isDate(p){return p instanceof Date||Object.prototype.toString.call(p)==="[object Date]"}function map(p,a){var r=[],d,i=p.length;for(d=0;d<i;++d){r.push(a(p[d],d))}return r}function extend(p,a){for(var r in a){if(hasOwnProp(a,r)){p[r]=a[r]}}if(hasOwnProp(a,"toString")){p.toString=a.toString}if(hasOwnProp(a,"valueOf")){p.valueOf=a.valueOf}return p}function createUTC(p,a,r,d){return createLocalOrUTC(p,a,r,d,true).utc()}function defaultParsingFlags(){return{empty:false,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:false,invalidEra:null,invalidMonth:null,invalidFormat:false,userInvalidated:false,iso:false,parsedDateParts:[],era:null,meridiem:null,rfc2822:false,weekdayMismatch:false}}function getParsingFlags(p){if(p._pf==null){p._pf=defaultParsingFlags()}return p._pf}var r;if(Array.prototype.some){r=Array.prototype.some}else{r=function(p){var a=Object(this),r=a.length>>>0,d;for(d=0;d<r;d++){if(d in a&&p.call(this,a[d],d,a)){return true}}return false}}function isValid(p){if(p._isValid==null){var a=getParsingFlags(p),d=r.call(a.parsedDateParts,(function(p){return p!=null})),i=!isNaN(p._d.getTime())&&a.overflow<0&&!a.empty&&!a.invalidEra&&!a.invalidMonth&&!a.invalidWeekday&&!a.weekdayMismatch&&!a.nullInput&&!a.invalidFormat&&!a.userInvalidated&&(!a.meridiem||a.meridiem&&d);if(p._strict){i=i&&a.charsLeftOver===0&&a.unusedTokens.length===0&&a.bigHour===undefined}if(Object.isFrozen==null||!Object.isFrozen(p)){p._isValid=i}else{return i}}return p._isValid}function createInvalid(p){var a=createUTC(NaN);if(p!=null){extend(getParsingFlags(a),p)}else{getParsingFlags(a).userInvalidated=true}return a}var d=hooks.momentProperties=[],i=false;function copyConfig(p,a){var r,i,b,c=d.length;if(!isUndefined(a._isAMomentObject)){p._isAMomentObject=a._isAMomentObject}if(!isUndefined(a._i)){p._i=a._i}if(!isUndefined(a._f)){p._f=a._f}if(!isUndefined(a._l)){p._l=a._l}if(!isUndefined(a._strict)){p._strict=a._strict}if(!isUndefined(a._tzm)){p._tzm=a._tzm}if(!isUndefined(a._isUTC)){p._isUTC=a._isUTC}if(!isUndefined(a._offset)){p._offset=a._offset}if(!isUndefined(a._pf)){p._pf=getParsingFlags(a)}if(!isUndefined(a._locale)){p._locale=a._locale}if(c>0){for(r=0;r<c;r++){i=d[r];b=a[i];if(!isUndefined(b)){p[i]=b}}}return p}function Moment(p){copyConfig(this,p);this._d=new Date(p._d!=null?p._d.getTime():NaN);if(!this.isValid()){this._d=new Date(NaN)}if(i===false){i=true;hooks.updateOffset(this);i=false}}function isMoment(p){return p instanceof Moment||p!=null&&p._isAMomentObject!=null}function warn(p){if(hooks.suppressDeprecationWarnings===false&&typeof console!=="undefined"&&console.warn){console.warn("Deprecation warning: "+p)}}function deprecate(p,a){var r=true;return extend((function(){if(hooks.deprecationHandler!=null){hooks.deprecationHandler(null,p)}if(r){var d=[],i,b,c,M=arguments.length;for(b=0;b<M;b++){i="";if(typeof arguments[b]==="object"){i+="\n["+b+"] ";for(c in arguments[0]){if(hasOwnProp(arguments[0],c)){i+=c+": "+arguments[0][c]+", "}}i=i.slice(0,-2)}else{i=arguments[b]}d.push(i)}warn(p+"\nArguments: "+Array.prototype.slice.call(d).join("")+"\n"+(new Error).stack);r=false}return a.apply(this,arguments)}),a)}var b={};function deprecateSimple(p,a){if(hooks.deprecationHandler!=null){hooks.deprecationHandler(p,a)}if(!b[p]){warn(a);b[p]=true}}hooks.suppressDeprecationWarnings=false;hooks.depr
//! moment.js
hooks.version="2.29.4";setHookCallback(createLocal);hooks.fn=Ye;hooks.min=min;hooks.max=max;hooks.now=now;hooks.utc=createUTC;hooks.unix=createUnix;hooks.months=listMonths;hooks.isDate=isDate;hooks.locale=getSetGlobalLocale;hooks.invalid=createInvalid;hooks.duration=createDuration;hooks.isMoment=isMoment;hooks.weekdays=listWeekdays;hooks.parseZone=createInZone;hooks.localeData=getLocale;hooks.isDuration=isDuration;hooks.monthsShort=listMonthsShort;hooks.weekdaysMin=listWeekdaysMin;hooks.defineLocale=defineLocale;hooks.updateLocale=updateLocale;hooks.locales=listLocales;hooks.weekdaysShort=listWeekdaysShort;hooks.normalizeUnits=normalizeUnits;hooks.relativeTimeRounding=getSetRelativeTimeRounding;hooks.relativeTimeThreshold=getSetRelativeTimeThreshold;hooks.calendarFormat=getCalendarFormat;hooks.prototype=Ye;hooks.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};return hooks}))},467:(p,a,r)=>{"use strict";Object.defineProperty(a,"__esModule",{value:true});function _interopDefault(p){return p&&typeof p==="object"&&"default"in p?p["default"]:p}var d=_interopDefault(r(2781));var i=_interopDefault(r(3685));var b=_interopDefault(r(7310));var c=_interopDefault(r(629));var M=_interopDefault(r(5687));var z=_interopDefault(r(9796));const u=d.Readable;const O=Symbol("buffer");const l=Symbol("type");class Blob{constructor(){this[l]="";const p=arguments[0];const a=arguments[1];const r=[];let d=0;if(p){const a=p;const i=Number(a.length);for(let p=0;p<i;p++){const i=a[p];let b;if(i instanceof Buffer){b=i}else if(ArrayBuffer.isView(i)){b=Buffer.from(i.buffer,i.byteOffset,i.byteLength)}else if(i instanceof ArrayBuffer){b=Buffer.from(i)}else if(i instanceof Blob){b=i[O]}else{b=Buffer.from(typeof i==="string"?i:String(i))}d+=b.length;r.push(b)}}this[O]=Buffer.concat(r);let i=a&&a.type!==undefined&&String(a.type).toLowerCase();if(i&&!/[^\u0020-\u007E]/.test(i)){this[l]=i}}get size(){return this[O].length}get type(){return this[l]}text(){return Promise.resolve(this[O].toString())}arrayBuffer(){const p=this[O];const a=p.buffer.slice(p.byteOffset,p.byteOffset+p.byteLength);return Promise.resolve(a)}stream(){const p=new u;p._read=function(){};p.push(this[O]);p.push(null);return p}toString(){return"[object Blob]"}slice(){const p=this.size;const a=arguments[0];const r=arguments[1];let d,i;if(a===undefined){d=0}else if(a<0){d=Math.max(p+a,0)}else{d=Math.min(a,p)}if(r===undefined){i=p}else if(r<0){i=Math.max(p+r,0)}else{i=Math.min(r,p)}const b=Math.max(i-d,0);const c=this[O];const M=c.slice(d,d+b);const z=new Blob([],{type:arguments[2]});z[O]=M;return z}}Object.defineProperties(Blob.prototype,{size:{enumerable:true},type:{enumerable:true},slice:{enumerable:true}});Object.defineProperty(Blob.prototype,Symbol.toStringTag,{value:"Blob",writable:false,enumerable:false,configurable:true});function FetchError(p,a,r){Error.call(this,p);this.message=p;this.type=a;if(r){this.code=this.errno=r.code}Error.captureStackTrace(this,this.constructor)}FetchError.prototype=Object.create(Error.prototype);FetchError.prototype.constructor=FetchError;FetchError.prototype.name="FetchError";let A;try{A=r(2877).convert}catch(p){}const m=Symbol("Body internals");const q=d.PassThrough;function Body(p){var a=this;var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},i=r.size;let b=i===undefined?0:i;var c=r.timeout;let M=c===undefined?0:c;if(p==null){p=null}else if(isURLSearchParams(p)){p=Buffer.from(p.toString())}else if(isBlob(p));else if(Buffer.isBuffer(p));else if(Object.prototype.toString.call(p)==="[object ArrayBuffer]"){p=Buffer.from(p)}else if(ArrayBuffer.isView(p)){p=Buffer.from(p.buffer,p.byteOffset,p.byteLength)}else if(p instanceof d);else{p=Buffer.from(String(p))}this[m]={body:p,disturbed:false,error:null};this.size=b;this.timeout=M;if(p instanceof d){p.on("error",(function(p){const r=p.name==="AbortError"?p:new FetchError(`Invalid response body while tryin
/*!
* Tmp
*
* Copyright (c) 2011-2017 KARASZI Istvan <github@spam.raszi.hu>
*
* MIT Licensed
*/
const d=r(7147);const i=r(2037);const b=r(1017);const c=r(6113);const M={fs:d.constants,os:i.constants};const z=r(4959);const u="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",O=/XXXXXX/,l=3,A=(M.O_CREAT||M.fs.O_CREAT)|(M.O_EXCL||M.fs.O_EXCL)|(M.O_RDWR||M.fs.O_RDWR),m=i.platform()==="win32",q=M.EBADF||M.os.errno.EBADF,h=M.ENOENT||M.os.errno.ENOENT,W=448,v=384,g="exit",R=[],L=d.rmdirSync.bind(d),_=z.sync;let N=false;function tmpName(p,a){const r=_parseArguments(p,a),i=r[0],b=r[1];try{_assertAndSanitizeOptions(i)}catch(p){return b(p)}let c=i.tries;(function _getUniqueName(){try{const p=_generateTmpName(i);d.stat(p,(function(a){if(!a){if(c-- >0)return _getUniqueName();return b(new Error("Could not get a unique tmp filename, max tries reached "+p))}b(null,p)}))}catch(p){b(p)}})()}function tmpNameSync(p){const a=_parseArguments(p),r=a[0];_assertAndSanitizeOptions(r);let i=r.tries;do{const p=_generateTmpName(r);try{d.statSync(p)}catch(a){return p}}while(i-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}function file(p,a){const r=_parseArguments(p,a),i=r[0],b=r[1];tmpName(i,(function _tmpNameCreated(p,a){if(p)return b(p);d.open(a,A,i.mode||v,(function _fileCreated(p,r){if(p)return b(p);if(i.discardDescriptor){return d.close(r,(function _discardCallback(p){return b(p,a,undefined,_prepareTmpFileRemoveCallback(a,-1,i,false))}))}else{const p=i.discardDescriptor||i.detachDescriptor;b(null,a,r,_prepareTmpFileRemoveCallback(a,p?-1:r,i,false))}}))}))}function fileSync(p){const a=_parseArguments(p),r=a[0];const i=r.discardDescriptor||r.detachDescriptor;const b=tmpNameSync(r);var c=d.openSync(b,A,r.mode||v);if(r.discardDescriptor){d.closeSync(c);c=undefined}return{name:b,fd:c,removeCallback:_prepareTmpFileRemoveCallback(b,i?-1:c,r,true)}}function dir(p,a){const r=_parseArguments(p,a),i=r[0],b=r[1];tmpName(i,(function _tmpNameCreated(p,a){if(p)return b(p);d.mkdir(a,i.mode||W,(function _dirCreated(p){if(p)return b(p);b(null,a,_prepareTmpDirRemoveCallback(a,i,false))}))}))}function dirSync(p){const a=_parseArguments(p),r=a[0];const i=tmpNameSync(r);d.mkdirSync(i,r.mode||W);return{name:i,removeCallback:_prepareTmpDirRemoveCallback(i,r,true)}}function _removeFileAsync(p,a){const _handler=function(p){if(p&&!_isENOENT(p)){return a(p)}a()};if(0<=p[0])d.close(p[0],(function(){d.unlink(p[1],_handler)}));else d.unlink(p[1],_handler)}function _removeFileSync(p){let a=null;try{if(0<=p[0])d.closeSync(p[0])}catch(p){if(!_isEBADF(p)&&!_isENOENT(p))throw p}finally{try{d.unlinkSync(p[1])}catch(p){if(!_isENOENT(p))a=p}}if(a!==null){throw a}}function _prepareTmpFileRemoveCallback(p,a,r,d){const i=_prepareRemoveCallback(_removeFileSync,[a,p],d);const b=_prepareRemoveCallback(_removeFileAsync,[a,p],d,i);if(!r.keep)R.unshift(i);return d?i:b}function _prepareTmpDirRemoveCallback(p,a,r){const i=a.unsafeCleanup?z:d.rmdir.bind(d);const b=a.unsafeCleanup?_:L;const c=_prepareRemoveCallback(b,p,r);const M=_prepareRemoveCallback(i,p,r,c);if(!a.keep)R.unshift(c);return r?c:M}function _prepareRemoveCallback(p,a,r,d){let i=false;return function _cleanupCallback(b){if(!i){const c=d||_cleanupCallback;const M=R.indexOf(c);if(M>=0)R.splice(M,1);i=true;if(r||p===L||p===_){return p(a)}else{return p(a,b||function(){})}}}}function _garbageCollector(){if(!N)return;while(R.length){try{R[0]()}catch(p){}}}function _randomChars(p){let a=[],r=null;try{r=c.randomBytes(p)}catch(a){r=c.pseudoRandomBytes(p)}for(var d=0;d<p;d++){a.push(u[r[d]%u.length])}return a.join("")}function _isBlank(p){return p===null||_isUndefined(p)||!p.trim()}function _isUndefined(p){return typeof p==="undefined"}function _parseArguments(p,a){if(typeof p==="function"){return[{},p]}if(_isUndefined(p)){return[{},a]}const r={};for(const a of Object.getOwnPropertyNames(p)){r[a]=p[a]}return[r,a]}function _generateTmpName(p){const a=p.tmpdir;if(!_isUndefined(p.name))return b.join(a,p.dir,p.name);if(!_isUndefined(p.template))return b.join(a,p.dir,p.template).replace(O,_randomChars(6));const r=[p.prefix?p.prefix:"tmp","-",process.pid,"-",_randomChars(12),p.postfix?"-"+p.po
/*!
* XRegExp.build 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2012-present MIT License
*/var u=function _default(p){var a="xregexp";var r=/(\()(?!\?)|\\([1-9]\d*)|\\[\s\S]|\[(?:[^\\\]]|\\[\s\S])*\]/g;var d=p.union([/\({{([\w$]+)}}\)|{{([\w$]+)}}/,r],"g",{conjunction:"or"});function deanchor(p){var a=/^(?:\(\?:\))*\^/;var r=/\$(?:\(\?:\))*$/;if(a.test(p)&&r.test(p)&&r.test(p.replace(/\\[\s\S]/g,""))){return p.replace(a,"").replace(r,"")}return p}function asXRegExp(r,d){var i=d?"x":"";return p.isRegExp(r)?r[a]&&r[a].captureNames?r:p(r.source,i):p(r,i)}function interpolate(a){return a instanceof RegExp?a:p.escape(a)}function reduceToSubpatternsObject(p,a,r){p["subpattern".concat(r)]=a;return p}function embedSubpatternAfter(p,a,r){var d=a<r.length-1;return p+(d?"{{subpattern".concat(a,"}}"):"")}p.tag=function(a){return function(r){var d,i;for(var b=arguments.length,c=new Array(b>1?b-1:0),u=1;u<b;u++){c[u-1]=arguments[u]}var O=(0,z["default"])(d=(0,M["default"])(c).call(c,interpolate)).call(d,reduceToSubpatternsObject,{});var l=(0,M["default"])(i=r.raw).call(i,embedSubpatternAfter).join("");return p.build(l,O,a)}};p.build=function(i,M,z){z=z||"";var u=(0,c["default"])(z).call(z,"x");var O=/^\(\?([\w$]+)\)/.exec(i);if(O){z=p._clipDuplicates(z+O[1])}var l={};for(var A in M){if(M.hasOwnProperty(A)){var m=asXRegExp(M[A],u);l[A]={pattern:deanchor(m.source),names:m[a].captureNames||[]}}}var q=asXRegExp(i,u);var h=0;var W;var v=0;var g=[0];var R=q[a].captureNames||[];var L=q.source.replace(d,(function(p,a,d,i,c){var M=a||d;var z;var u;var O;if(M){var A;if(!l.hasOwnProperty(M)){throw new ReferenceError("Undefined property ".concat(p))}if(a){z=R[v];g[++v]=++h;u="(?<".concat(z||M,">")}else{u="(?:"}W=h;var m=l[M].pattern.replace(r,(function(p,a,r){if(a){z=l[M].names[h-W];++h;if(z){return"(?<".concat(z,">")}}else if(r){O=+r-1;return l[M].names[O]?"\\k<".concat(l[M].names[O],">"):"\\".concat(+r+W)}return p}));return(0,b["default"])(A="".concat(u)).call(A,m,")")}if(i){z=R[v];g[++v]=++h;if(z){return"(?<".concat(z,">")}}else if(c){O=+c-1;return R[O]?"\\k<".concat(R[O],">"):"\\".concat(g[+c])}return p}));return p(L,z)}};a["default"]=u;p.exports=a.default},4811:(p,a,r)=>{"use strict";var d=r(515);var i=r(4218);i(a,"__esModule",{value:true});a["default"]=void 0;var b=d(r(9188));var c=d(r(466));var M=d(r(6611));
/*!
* XRegExp.matchRecursive 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2009-present MIT License
*/var z=function _default(p){function row(p,a,r,d){return{name:p,value:a,start:r,end:d}}p.matchRecursive=function(a,r,d,i,z){i=i||"";z=z||{};var u=(0,M["default"])(i).call(i,"g");var O=(0,M["default"])(i).call(i,"y");var l=i.replace(/y/g,"");var A=z,m=A.escapeChar;var q=z.valueNames;var h=[];var W=0;var v=0;var g=0;var R=0;var L;var _;var N;var y;var w;r=p(r,l);d=p(d,l);if(m){var E,T;if(m.length>1){throw new Error("Cannot use more than one escape character")}m=p.escape(m);w=new RegExp((0,c["default"])(E=(0,c["default"])(T="(?:".concat(m,"[\\S\\s]|(?:(?!")).call(T,p.union([r,d],"",{conjunction:"or"}).source,")[^")).call(E,m,"])+)+"),i.replace(/[^imu]+/g,""))}while(true){if(m){g+=(p.exec(a,w,g,"sticky")||[""])[0].length}N=p.exec(a,r,g);y=p.exec(a,d,g);if(N&&y){if(N.index<=y.index){y=null}else{N=null}}if(N||y){v=(N||y).index;g=v+(N||y)[0].length}else if(!W){break}if(O&&!W&&v>R){break}if(N){if(!W){L=v;_=g}++W}else if(y&&W){if(!--W){if(q){if(q[0]&&L>R){h.push(row(q[0],(0,b["default"])(a).call(a,R,L),R,L))}if(q[1]){h.push(row(q[1],(0,b["default"])(a).call(a,L,_),L,_))}if(q[2]){h.push(row(q[2],(0,b["default"])(a).call(a,_,v),_,v))}if(q[3]){h.push(row(q[3],(0,b["default"])(a).call(a,v,g),v,g))}}else{h.push((0,b["default"])(a).call(a,_,v))}R=g;if(!u){break}}}else{throw new Error("Unbalanced delimiter found in string")}if(v===g){++g}}if(u&&!O&&q&&q[0]&&a.length>R){h.push(row(q[0],(0,b["default"])(a).call(a,R),R,a.length))}return h}};a["default"]=z;p.exports=a.default},3110:(p,a,r)=>{"use strict";var d=r(515);var i=r(4218);i(a,"__esModule",{value:true});a["default"]=void 0;var b=d(r(2038));var c=d(r(5401));var M=d(r(9640));var z=d(r(7652));var u=d(r(3361));var O=d(r(9188));var l=d(r(6611));var A=d(r(466));var m=d(r(669));function _createForOfIteratorHelper(p,a){var r;if(typeof z["default"]==="undefined"||(0,M["default"])(p)==null){if((0,c["default"])(p)||(r=_unsupportedIterableToArray(p))||a&&p&&typeof p.length==="number"){if(r)p=r;var d=0;var i=function F(){};return{s:i,n:function n(){if(d>=p.length)return{done:true};return{done:false,value:p[d++]}},e:function e(p){throw p},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u=true,O=false,l;return{s:function s(){r=(0,b["default"])(p)},n:function n(){var p=r.next();u=p.done;return p},e:function e(p){O=true;l=p},f:function f(){try{if(!u&&r["return"]!=null)r["return"]()}finally{if(O)throw l}}}}function _unsupportedIterableToArray(p,a){var r;if(!p)return;if(typeof p==="string")return _arrayLikeToArray(p,a);var d=(0,O["default"])(r=Object.prototype.toString.call(p)).call(r,8,-1);if(d==="Object"&&p.constructor)d=p.constructor.name;if(d==="Map"||d==="Set")return(0,u["default"])(p);if(d==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d))return _arrayLikeToArray(p,a)}function _arrayLikeToArray(p,a){if(a==null||a>p.length)a=p.length;for(var r=0,d=new Array(a);r<a;r++){d[r]=p[r]}return d}
/*!
* XRegExp Unicode Base 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2008-present MIT License
*/var q=function _default(p){var a={};var r=p._dec;var d=p._hex;var i=p._pad4;function normalize(p){return p.replace(/[- _]+/g,"").toLowerCase()}function charCode(p){var a=/^\\[xu](.+)/.exec(p);return a?r(a[1]):p.charCodeAt(p[0]==="\\"?1:0)}function invertBmp(a){var r="";var b=-1;(0,m["default"])(p).call(p,a,/(\\x..|\\u....|\\?[\s\S])(?:-(\\x..|\\u....|\\?[\s\S]))?/,(function(p){var a=charCode(p[1]);if(a>b+1){r+="\\u".concat(i(d(b+1)));if(a>b+2){r+="-\\u".concat(i(d(a-1)))}}b=charCode(p[2]||p[1])}));if(b<65535){r+="\\u".concat(i(d(b+1)));if(b<65534){r+="-\\uFFFF"}}return r}function cacheInvertedBmp(p){var r="b!";return a[p][r]||(a[p][r]=invertBmp(a[p].bmp))}function buildAstral(p,r){var d=a[p];var i="";if(d.bmp&&!d.isBmpLast){var b;i=(0,A["default"])(b="[".concat(d.bmp,"]")).call(b,d.astral?"|":"")}if(d.astral){i+=d.astral}if(d.isBmpLast&&d.bmp){var c;i+=(0,A["default"])(c="".concat(d.astral?"|":"","[")).call(c,d.bmp,"]")}return r?"(?:(?!".concat(i,")(?:[\ud800-\udbff][\udc00-\udfff]|[\0-￿]))"):"(?:".concat(i,")")}function cacheAstral(p,r){var d=r?"a!":"a=";return a[p][d]||(a[p][d]=buildAstral(p,r))}p.addToken(/\\([pP])(?:{(\^?)([^}]*)}|([A-Za-z]))/,(function(p,r,d){var i="Invalid double negation ";var b="Unknown Unicode token ";var c="Unicode token missing data ";var M="Astral mode required for Unicode token ";var z="Astral mode does not support Unicode tokens within character classes";var u=p[1]==="P"||!!p[2];var O=(0,l["default"])(d).call(d,"A");var m=normalize(p[4]||p[3]);var q=a[m];if(p[1]==="P"&&p[2]){throw new SyntaxError(i+p[0])}if(!a.hasOwnProperty(m)){throw new SyntaxError(b+p[0])}if(q.inverseOf){m=normalize(q.inverseOf);if(!a.hasOwnProperty(m)){var h;throw new ReferenceError((0,A["default"])(h="".concat(c+p[0]," -> ")).call(h,q.inverseOf))}q=a[m];u=!u}if(!(q.bmp||O)){throw new SyntaxError(M+p[0])}if(O){if(r==="class"){throw new SyntaxError(z)}return cacheAstral(m,u)}return r==="class"?u?cacheInvertedBmp(m):q.bmp:"".concat((u?"[^":"[")+q.bmp,"]")}),{scope:"all",optionalFlags:"A",leadChar:"\\"});p.addUnicodeData=function(r){var d="Unicode token requires name";var i="Unicode token has no character data ";var b=_createForOfIteratorHelper(r),c;try{for(b.s();!(c=b.n()).done;){var M=c.value;if(!M.name){throw new Error(d)}if(!(M.inverseOf||M.bmp||M.astral)){throw new Error(i+M.name)}a[normalize(M.name)]=M;if(M.alias){a[normalize(M.alias)]=M}}}catch(p){b.e(p)}finally{b.f()}p.cache.flush("patterns")};p._getUnicodeProperty=function(p){var r=normalize(p);return a[r]}};a["default"]=q;p.exports=a.default},4686:(p,a,r)=>{"use strict";var d=r(515);var i=r(4218);i(a,"__esModule",{value:true});a["default"]=void 0;var b=d(r(5826));
/*!
* XRegExp Unicode Blocks 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2010-present MIT License
* Unicode data by Mathias Bynens <mathiasbynens.be>
*/var c=function _default(p){if(!p.addUnicodeData){throw new ReferenceError("Unicode Base must be loaded before Unicode Blocks")}p.addUnicodeData(b["default"])};a["default"]=c;p.exports=a.default},1996:(p,a,r)=>{"use strict";var d=r(515);var i=r(4218);i(a,"__esModule",{value:true});a["default"]=void 0;var b=d(r(8537));
/*!
* XRegExp Unicode Categories 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2010-present MIT License
* Unicode data by Mathias Bynens <mathiasbynens.be>
*/var c=function _default(p){if(!p.addUnicodeData){throw new ReferenceError("Unicode Base must be loaded before Unicode Categories")}p.addUnicodeData(b["default"])};a["default"]=c;p.exports=a.default},9250:(p,a,r)=>{"use strict";var d=r(515);var i=r(4218);i(a,"__esModule",{value:true});a["default"]=void 0;var b=d(r(616));
/*!
* XRegExp Unicode Properties 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2012-present MIT License
* Unicode data by Mathias Bynens <mathiasbynens.be>
*/var c=function _default(p){if(!p.addUnicodeData){throw new ReferenceError("Unicode Base must be loaded before Unicode Properties")}var a=b["default"];a.push({name:"Assigned",inverseOf:"Cn"});p.addUnicodeData(a)};a["default"]=c;p.exports=a.default},5715:(p,a,r)=>{"use strict";var d=r(515);var i=r(4218);i(a,"__esModule",{value:true});a["default"]=void 0;var b=d(r(2524));
/*!
* XRegExp Unicode Scripts 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2010-present MIT License
* Unicode data by Mathias Bynens <mathiasbynens.be>
*/var c=function _default(p){if(!p.addUnicodeData){throw new ReferenceError("Unicode Base must be loaded before Unicode Scripts")}p.addUnicodeData(b["default"])};a["default"]=c;p.exports=a.default},7750:(p,a,r)=>{"use strict";var d=r(515);var i=r(4218);i(a,"__esModule",{value:true});a["default"]=void 0;var b=d(r(8612));var c=d(r(380));var M=d(r(4811));var z=d(r(3110));var u=d(r(4686));var O=d(r(1996));var l=d(r(9250));var A=d(r(5715));(0,c["default"])(b["default"]);(0,M["default"])(b["default"]);(0,z["default"])(b["default"]);(0,u["default"])(b["default"]);(0,O["default"])(b["default"]);(0,l["default"])(b["default"]);(0,A["default"])(b["default"]);var m=b["default"];a["default"]=m;p.exports=a.default},8612:(p,a,r)=>{"use strict";var d=r(515);var i=r(4218);i(a,"__esModule",{value:true});a["default"]=void 0;var b=d(r(2038));var c=d(r(5401));var M=d(r(9640));var z=d(r(7652));var u=d(r(3361));var O=d(r(466));var l=d(r(3781));var A=d(r(6761));var m=d(r(8135));var q=d(r(669));var h=d(r(6611));var W=d(r(1308));var v=d(r(9188));var g=d(r(8979));var R=d(r(3046));function _createForOfIteratorHelper(p,a){var r;if(typeof z["default"]==="undefined"||(0,M["default"])(p)==null){if((0,c["default"])(p)||(r=_unsupportedIterableToArray(p))||a&&p&&typeof p.length==="number"){if(r)p=r;var d=0;var i=function F(){};return{s:i,n:function n(){if(d>=p.length)return{done:true};return{done:false,value:p[d++]}},e:function e(p){throw p},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u=true,O=false,l;return{s:function s(){r=(0,b["default"])(p)},n:function n(){var p=r.next();u=p.done;return p},e:function e(p){O=true;l=p},f:function f(){try{if(!u&&r["return"]!=null)r["return"]()}finally{if(O)throw l}}}}function _unsupportedIterableToArray(p,a){var r;if(!p)return;if(typeof p==="string")return _arrayLikeToArray(p,a);var d=(0,v["default"])(r=Object.prototype.toString.call(p)).call(r,8,-1);if(d==="Object"&&p.constructor)d=p.constructor.name;if(d==="Map"||d==="Set")return(0,u["default"])(p);if(d==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d))return _arrayLikeToArray(p,a)}function _arrayLikeToArray(p,a){if(a==null||a>p.length)a=p.length;for(var r=0,d=new Array(a);r<a;r++){d[r]=p[r]}return d}
/*!
* XRegExp 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2007-present MIT License
*/var L="xregexp";var _={astral:false,namespacing:false};var N={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split};var y={};var w={};var E={};var T=[];var B="default";var S="class";var X={default:/\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9]\d*|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|\(\?(?:[:=!]|<[=!])|[?*+]\?|{\d+(?:,\d*)?}\??|[\s\S]/,class:/\\(?:[0-3][0-7]{0,2}|[4-7][0-7]?|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|[\s\S]/};var k=/\$(?:{([\w$]+)}|<([\w$]+)>|(\d\d?|[\s\S]))/g;var P=N.exec.call(/()??/,"")[1]===undefined;var C=(0,R["default"])(/x/)!==undefined;var x={},D=x.toString;function hasNativeFlag(p){var a=true;try{new RegExp("",p);if(p==="y"){var r=function(){return"gy"}();var d=".a".replace(new RegExp("a",r),".")==="..";if(d){a=false}}}catch(p){a=false}return a}var I=hasNativeFlag("u");var G=hasNativeFlag("y");var j={g:true,i:true,m:true,u:I,y:G};function augment(p,a,r,d,i){var b;p[L]={captureNames:a};if(i){return p}if(p.__proto__){p.__proto__=XRegExp.prototype}else{for(var c in XRegExp.prototype){p[c]=XRegExp.prototype[c]}}p[L].source=r;p[L].flags=d?(0,g["default"])(b=d.split("")).call(b).join(""):d;return p}function clipDuplicates(p){return N.replace.call(p,/([\s\S])(?=[\s\S]*\1)/g,"")}function copyRegex(p,a){var r;if(!XRegExp.isRegExp(p)){throw new TypeError("Type RegExp expected")}var d=p[L]||{};var i=getNativeFlags(p);var b="";var c="";var M=null;var z=null;a=a||{};if(a.removeG){c+="g"}if(a.removeY){c+="y"}if(c){i=N.replace.call(i,new RegExp("[".concat(c,"]+"),"g"),"")}if(a.addG){b+="g"}if(a.addY){b+="y"}if(b){i=clipDuplicates(i+b)}if(!a.isInternalOnly){if(d.source!==undefined){M=d.source}if((0,R["default"])(d)!=null){z=b?clipDuplicates((0,R["default"])(d)+b):(0,R["default"])(d)}}p=augment(new RegExp(a.source||p.source,i),hasNamedCapture(p)?(0,v["default"])(r=d.captureNames).call(r,0):null,M,z,a.isInternalOnly);return p}function dec(p){return(0,W["default"])(p,16)}function getContextualTokenSeparator(p,a,r){if(p.input[p.index-1]==="("||p.input[p.index+p[0].length]===")"||p.input[p.index-1]==="|"||p.input[p.index+p[0].length]==="|"||p.index<1||p.index+p[0].length>=p.input.length||N.test.call(/^\(\?[:=!]/,p.input.substr(p.index-3,3))||isQuantifierNext(p.input,p.index+p[0].length,r)){return""}return"(?:)"}function getNativeFlags(p){return C?(0,R["default"])(p):N.exec.call(/\/([a-z]*)$/i,RegExp.prototype.toString.call(p))[1]}function hasNamedCapture(p){return!!(p[L]&&p[L].captureNames)}function hex(p){return(0,W["default"])(p,10).toString(16)}function isQuantifierNext(p,a,r){var d="\\(\\?#[^)]*\\)";var i="#[^#\\n]*";var b="[?*+]|{\\d+(?:,\\d*)?}";return N.test.call((0,h["default"])(r).call(r,"x")?/^(?:\s|#[^#\n]*|\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/:/^(?:\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/,(0,v["default"])(p).call(p,a))}function isType(p,a){return D.call(p)==="[object ".concat(a,"]")}function pad4(p){while(p.length<4){p="0".concat(p)}return p}function prepareFlags(p,a){if(clipDuplicates(a)!==a){throw new SyntaxError("Invalid duplicate regex flag ".concat(a))}p=N.replace.call(p,/^\(\?([\w$]+)\)/,(function(p,r){if(N.test.call(/[gy]/,r)){throw new SyntaxError("Cannot use flag g or y in mode modifier ".concat(p))}a=clipDuplicates(a+r);return""}));var r=_createForOfIteratorHelper(a),d;try{for(r.s();!(d=r.n()).done;){var i=d.value;if(!j[i]){throw new SyntaxError("Unknown regex flag ".concat(i))}}}catch(p){r.e(p)}finally{r.f()}return{pattern:p,flags:a}}function prepareOptions(p){var a={};if(isType(p,"String")){(0,q["default"])(XRegExp).call(XRegExp,p,/[^\s,]+/,(function(p){a[p]=true}));return a}return p}function registerFlag(p){if(!/^[\w$]$/.test(p)){throw new Error("Flag must be a single character A-Za-z0-9_$")}j[p]=true}function runTokens(p,a,r,d,i){var b=T.length;var c=p[r];var M=null;var z;var u;while(b--){u=T[b];if(u.leadChar&&u.leadChar!==c||u.scope!==d&&u.scope!=="all"||u.flag&&!(0,h["default"])(a).call(a,u.flag)){continue}z=XRegExp.exec(p,u.regex,r,"sticky");i
//# sourceMappingURL=index.js.map