docker-metadata-action/dist/index.js

74 lines
1.8 MiB
JavaScript
Raw Normal View History

require('./sourcemap-register.js');(()=>{var __webpack_modules__={87351:function(p,r,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(p,r,a,i){if(i===undefined)i=a;Object.defineProperty(p,i,{enumerable:true,get:function(){return r[a]}})}:function(p,r,a,i){if(i===undefined)i=a;p[i]=r[a]});var d=this&&this.__setModuleDefault||(Object.create?function(p,r){Object.defineProperty(p,"default",{enumerable:true,value:r})}:function(p,r){p["default"]=r});var b=this&&this.__importStar||function(p){if(p&&p.__esModule)return p;var r={};if(p!=null)for(var a in p)if(a!=="default"&&Object.hasOwnProperty.call(p,a))i(r,p,a);d(r,p);return r};Object.defineProperty(r,"__esModule",{value:true});r.issue=r.issueCommand=void 0;const c=b(a(22037));const M=a(5278);function issueCommand(p,r,a){const i=new Command(p,r,a);process.stdout.write(i.toString()+c.EOL)}r.issueCommand=issueCommand;function issue(p,r=""){issueCommand(p,{},r)}r.issue=issue;const z="::";class Command{constructor(p,r,a){if(!p){p="missing.command"}this.command=p;this.properties=r;this.message=a}toString(){let p=z+this.command;if(this.properties&&Object.keys(this.properties).length>0){p+=" ";let r=true;for(const a in this.properties){if(this.properties.hasOwnProperty(a)){const i=this.properties[a];if(i){if(r){r=false}else{p+=","}p+=`${a}=${escapeProperty(i)}`}}}}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")}},42186:function(p,r,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(p,r,a,i){if(i===undefined)i=a;Object.defineProperty(p,i,{enumerable:true,get:function(){return r[a]}})}:function(p,r,a,i){if(i===undefined)i=a;p[i]=r[a]});var d=this&&this.__setModuleDefault||(Object.create?function(p,r){Object.defineProperty(p,"default",{enumerable:true,value:r})}:function(p,r){p["default"]=r});var b=this&&this.__importStar||function(p){if(p&&p.__esModule)return p;var r={};if(p!=null)for(var a in p)if(a!=="default"&&Object.hasOwnProperty.call(p,a))i(r,p,a);d(r,p);return r};var c=this&&this.__awaiter||function(p,r,a,i){function adopt(p){return p instanceof a?p:new a((function(r){r(p)}))}return new(a||(a=Promise))((function(a,d){function fulfilled(p){try{step(i.next(p))}catch(p){d(p)}}function rejected(p){try{step(i["throw"](p))}catch(p){d(p)}}function step(p){p.done?a(p.value):adopt(p.value).then(fulfilled,rejected)}step((i=i.apply(p,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});r.getIDToken=r.getState=r.saveState=r.group=r.endGroup=r.startGroup=r.info=r.notice=r.warning=r.error=r.debug=r.isDebug=r.setFailed=r.setCommandEcho=r.setOutput=r.getBooleanInput=r.getMultilineInput=r.getInput=r.addPath=r.setSecret=r.exportVariable=r.ExitCode=void 0;const M=a(87351);const z=a(717);const u=a(5278);const O=b(a(22037));const l=b(a(71017));const A=a(98041);var m;(function(p){p[p["Success"]=0]="Success";p[p["Failure"]=1]="Failure"})(m=r.ExitCode||(r.ExitCode={}));function exportVariable(p,r){const a=u.toCommandValue(r);process.env[p]=a;const i=process.env["GITHUB_ENV"]||"";if(i){return z.issueFileCommand("ENV",z.prepareKeyValueMessage(p,r))}M.issueCommand("set-env",{name:p},a)}r.exportVariable=exportVariable;function setSecret(p){M.issueCommand("add-mask",{},p)}r.setSecret=setSecret;function addPath(p){const r=process.env["GITHUB_PATH"]||"";if(r){z.issueFileCommand("PATH",p)}else{M.issueCommand("add-path",{},p)}process.env["PATH"]=`${p}${l.delimiter}${process.env["PATH"]}`}r.addPath=addPath;function getInput(p,r){const a=process.env[`INPUT_${p.replace(/ /g,"_").toUpperCase()}`]||"";if(r&&r.required&&!a){throw new Error(`Input required and not supplied: ${p}`)}if(r&&r.trimWhitespace===false){return a}return a.trim()}r.getInput=getInput;function getMultilineInput(p,r){const a=getInput(p,r).split("\n").filter((p=>p!==""));if(r&&r.trimWhitespace===false){return a}return a.
/*!
* 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 r,a;if(isObject(p)===false)return false;r=p.constructor;if(r===undefined)return true;a=r.prototype;if(isObject(a)===false)return false;if(a.hasOwnProperty("isPrototypeOf")===false){return false}return true}r.isPlainObject=isPlainObject},84329:p=>{"use strict";function e(p){this.message=p}e.prototype=new Error,e.prototype.name="InvalidCharacterError";var r="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(p){var r=String(p).replace(/=+$/,"");if(r.length%4==1)throw new e("'atob' failed: The string to be decoded is not correctly encoded.");for(var a,i,d=0,b=0,c="";i=r.charAt(b++);~i&&(a=d%4?64*a+i:i,d++%4)?c+=String.fromCharCode(255&a>>(-2*d&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return c};function t(p){var a=p.replace(/-/g,"+").replace(/_/g,"/");switch(a.length%4){case 0:break;case 2:a+="==";break;case 3:a+="=";break;default:throw"Illegal base64url string!"}try{return function(p){return decodeURIComponent(r(p).replace(/(.)/g,(function(p,r){var a=r.charCodeAt(0).toString(16).toUpperCase();return a.length<2&&(a="0"+a),"%"+a})))}(a)}catch(p){return r(a)}}function n(p){this.message=p}function o(p,r){if("string"!=typeof p)throw new n("Invalid token specified");var a=!0===(r=r||{}).header?0:1;try{return JSON.parse(t(p.split(".")[a]))}catch(p){throw new n("Invalid token specified: "+p.message)}}n.prototype=new Error,n.prototype.name="InvalidTokenError";const a=o;a.default=o,a.InvalidTokenError=n,p.exports=a},7129:(p,r,a)=>{"use strict";const i=a(40665);const d=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 r=this[d]=p.max||Infinity;const a=p.length||naiveLength;this[c]=typeof a!=="function"?naiveLength:a;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[d]=p||Infinity;trim(this)}get max(){return this[d]}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,r){r=r||this;for(let a=this[l].tail;a!==null;){const i=a.prev;forEachStep(this,p,a,r);a=i}}forEach(p,r){r=r||this;for(let a=this[l].head;a!==null;){const i=a.next;forEachStep(this,p,a,r);a=i}}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 i;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,r,a){a=a||this[z];if(a&&typeof a!=="number")throw new TypeError("maxAge must be a number");const i=a?Date.now():0;const M=this[c](r,p);if(this[A].has(p)){if(M>this[d]){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=i;z.maxAge=a;z.value=r;this[b]+=M-z.length;z.length=M;this.get(p);trim(this);return true}const m=new E
//! moment-timezone.js
//! version : 0.5.40
//! Copyright (c) JS Foundation and other contributors
//! license : MIT
//! github.com/moment/moment-timezone
(function(r,i){"use strict";if(true&&p.exports){p.exports=i(a(99623))}else if(typeof define==="function"&&define.amd){define(["moment"],i)}else{i(r.moment)}})(this,(function(p){"use strict";if(p.version===undefined&&p.default){p=p.default}var r="0.5.40",a={},i={},d={},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 r=0,a=p.split("."),i=a[0],d=a[1]||"",b=1,c,M=0,z=1;if(p.charCodeAt(0)===45){r=1;z=-1}for(r;r<i.length;r++){c=charCodeToInt(i.charCodeAt(r));M=60*M+c}for(r=0;r<d.length;r++){b=b/60;c=charCodeToInt(d.charCodeAt(r));M+=c*b}return M*z}function arrayToInt(p){for(var r=0;r<p.length;r++){p[r]=unpackBase60(p[r])}}function intToUntil(p,r){for(var a=0;a<r;a++){p[a]=Math.round((p[a-1]||0)+p[a]*6e4)}p[r-1]=Infinity}function mapIndices(p,r){var a=[],i;for(i=0;i<r.length;i++){a[i]=p[r[i]]}return a}function unpack(p){var r=p.split("|"),a=r[2].split(" "),i=r[3].split(""),d=r[4].split(" ");arrayToInt(a);arrayToInt(i);arrayToInt(d);intToUntil(d,i.length);return{name:r[0],abbrs:mapIndices(r[1].split(" "),i),offsets:mapIndices(a,i),untils:d,population:r[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 r=+p,a=this.untils,i;for(i=0;i<a.length;i++){if(r<a[i]){return i}}},countries:function(){var p=this.name;return Object.keys(d).filter((function(r){return d[r].zones.indexOf(p)!==-1}))},parse:function(p){var r=+p,a=this.offsets,i=this.untils,d=i.length-1,b,c,M,z;for(z=0;z<d;z++){b=a[z];c=a[z+1];M=a[z?z-1:z];if(b<c&&tz.moveAmbiguousForward){b=c}else if(b>M&&tz.moveInvalidForward){b=M}if(r<i[z]-b*6e4){return a[z]}}return a[d]},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,r){this.name=p;this.zones=r}function OffsetAt(p){var r=p.toTimeString();var a=r.match(/\([a-z ]+\)/i);if(a&&a[0]){a=a[0].match(/[A-Z]/g);a=a?a.join(""):undefined}else{a=r.match(/[A-Z]{3,5}/g);a=a?a[0]:undefined}if(a==="GMT"){a=undefined}this.at=+p;this.abbr=a;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,r){var a,i;while(i=((r.at-p.at)/12e4|0)*6e4){a=new OffsetAt(new Date(p.at+i));if(a.offset===p.offset){p=a}else{r=a}}return p}function userOffsets(){var p=(new Date).getFullYear()-2,r=new OffsetAt(new Date(p,0,1)),a=[r],i,d,b;for(b=1;b<48;b++){d=new OffsetAt(new Date(p,b,1));if(d.offset!==r.offset){i=findChange(r,d);a.push(i);a.push(new OffsetAt(new Date(i.at+6e4)))}r=d}for(b=0;b<4;b++){a.push(new OffsetAt(new Date(p+b,0,1)));a.push(new OffsetAt(new Date(p+b,6,1)))}return a}function sortZoneScores(p,r){if(p.offsetScore!==r.offsetScore){return p.offsetScore-r.offsetScore}if(p.abbrScore!==r.abbrScore){return p.abbrScore-r.abbrScore}if(p.zone.population!==r.zone.population){return r.zone.population-p.zone.population}return r.zone.name.localeCompare(p.zone.name)}function addToGuesses(p,r){var a,i;arrayToInt(r);for(a=0;a<r.length;a++){i=r[a];c[i]=c[i]||{};c[i][p]=true}}function guessesForUserOffsets(p){var r=p.length,a={},i=[],d,M,z;for(d=0;d<r;d++){z=c[p[d].offset]||{};for(M in z){if(z.hasOwnProperty(M)){a[M]=true}}}for(d in a){if(a.hasOwnProperty(d)){i.push(b[d])}}return i}function rebuildGuess(){try{var p=Intl.DateTimeFormat().resolvedOptions().timeZo
//! moment.js
//! version : 2.29.4
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
(function(r,a){true?p.exports=a():0})(this,(function(){"use strict";var r;function hooks(){return r.apply(null,arguments)}function setHookCallback(p){r=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,r){return Object.prototype.hasOwnProperty.call(p,r)}function isObjectEmpty(p){if(Object.getOwnPropertyNames){return Object.getOwnPropertyNames(p).length===0}else{var r;for(r in p){if(hasOwnProp(p,r)){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,r){var a=[],i,d=p.length;for(i=0;i<d;++i){a.push(r(p[i],i))}return a}function extend(p,r){for(var a in r){if(hasOwnProp(r,a)){p[a]=r[a]}}if(hasOwnProp(r,"toString")){p.toString=r.toString}if(hasOwnProp(r,"valueOf")){p.valueOf=r.valueOf}return p}function createUTC(p,r,a,i){return createLocalOrUTC(p,r,a,i,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 a;if(Array.prototype.some){a=Array.prototype.some}else{a=function(p){var r=Object(this),a=r.length>>>0,i;for(i=0;i<a;i++){if(i in r&&p.call(this,r[i],i,r)){return true}}return false}}function isValid(p){if(p._isValid==null){var r=getParsingFlags(p),i=a.call(r.parsedDateParts,(function(p){return p!=null})),d=!isNaN(p._d.getTime())&&r.overflow<0&&!r.empty&&!r.invalidEra&&!r.invalidMonth&&!r.invalidWeekday&&!r.weekdayMismatch&&!r.nullInput&&!r.invalidFormat&&!r.userInvalidated&&(!r.meridiem||r.meridiem&&i);if(p._strict){d=d&&r.charsLeftOver===0&&r.unusedTokens.length===0&&r.bigHour===undefined}if(Object.isFrozen==null||!Object.isFrozen(p)){p._isValid=d}else{return d}}return p._isValid}function createInvalid(p){var r=createUTC(NaN);if(p!=null){extend(getParsingFlags(r),p)}else{getParsingFlags(r).userInvalidated=true}return r}var i=hooks.momentProperties=[],d=false;function copyConfig(p,r){var a,d,b,c=i.length;if(!isUndefined(r._isAMomentObject)){p._isAMomentObject=r._isAMomentObject}if(!isUndefined(r._i)){p._i=r._i}if(!isUndefined(r._f)){p._f=r._f}if(!isUndefined(r._l)){p._l=r._l}if(!isUndefined(r._strict)){p._strict=r._strict}if(!isUndefined(r._tzm)){p._tzm=r._tzm}if(!isUndefined(r._isUTC)){p._isUTC=r._isUTC}if(!isUndefined(r._offset)){p._offset=r._offset}if(!isUndefined(r._pf)){p._pf=getParsingFlags(r)}if(!isUndefined(r._locale)){p._locale=r._locale}if(c>0){for(a=0;a<c;a++){d=i[a];b=r[d];if(!isUndefined(b)){p[d]=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(d===false){d=true;hooks.updateOffset(this);d=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,r){var a=true;return extend((function(){if(hooks.deprecationHandler!=null){hooks.deprecationHandler(null,p)}if(a){var i=[],d,b,c,M=arguments.length;for(b=0;b<M;b++){d="";if(typeof arguments[b]==="object"){d+="\n["+b+"] ";for(c in arguments[0]){if(hasOwnProp(arguments[0],c)){d+=c+": "+arguments[0][c]+", "}}d=d.slice(0,-2)}else{d=arguments[b]}i.push(d)}warn(p+"\nArguments: "+Array.prototype.slice.call(i).join("")+"\n"+(new Error).stack);a=false}return r.apply(this,arguments)}),r)}var b={};function deprecateSimple(p,r){if(hooks.deprecationHandler!=null){hooks.deprecationHandler(p,r)}if(!b[p]){warn(r);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}))},80467:(p,r,a)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});function _interopDefault(p){return p&&typeof p==="object"&&"default"in p?p["default"]:p}var i=_interopDefault(a(12781));var d=_interopDefault(a(13685));var b=_interopDefault(a(57310));var c=_interopDefault(a(73323));var M=_interopDefault(a(95687));var z=_interopDefault(a(59796));const u=i.Readable;const O=Symbol("buffer");const l=Symbol("type");class Blob{constructor(){this[l]="";const p=arguments[0];const r=arguments[1];const a=[];let i=0;if(p){const r=p;const d=Number(r.length);for(let p=0;p<d;p++){const d=r[p];let b;if(d instanceof Buffer){b=d}else if(ArrayBuffer.isView(d)){b=Buffer.from(d.buffer,d.byteOffset,d.byteLength)}else if(d instanceof ArrayBuffer){b=Buffer.from(d)}else if(d instanceof Blob){b=d[O]}else{b=Buffer.from(typeof d==="string"?d:String(d))}i+=b.length;a.push(b)}}this[O]=Buffer.concat(a);let d=r&&r.type!==undefined&&String(r.type).toLowerCase();if(d&&!/[^\u0020-\u007E]/.test(d)){this[l]=d}}get size(){return this[O].length}get type(){return this[l]}text(){return Promise.resolve(this[O].toString())}arrayBuffer(){const p=this[O];const r=p.buffer.slice(p.byteOffset,p.byteOffset+p.byteLength);return Promise.resolve(r)}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 r=arguments[0];const a=arguments[1];let i,d;if(r===undefined){i=0}else if(r<0){i=Math.max(p+r,0)}else{i=Math.min(r,p)}if(a===undefined){d=p}else if(a<0){d=Math.max(p+a,0)}else{d=Math.min(a,p)}const b=Math.max(d-i,0);const c=this[O];const M=c.slice(i,i+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,r,a){Error.call(this,p);this.message=p;this.type=r;if(a){this.code=this.errno=a.code}Error.captureStackTrace(this,this.constructor)}FetchError.prototype=Object.create(Error.prototype);FetchError.prototype.constructor=FetchError;FetchError.prototype.name="FetchError";let A;try{A=a(22877).convert}catch(p){}const m=Symbol("Body internals");const q=i.PassThrough;function Body(p){var r=this;var a=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},d=a.size;let b=d===undefined?0:d;var c=a.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 i);else{p=Buffer.from(String(p))}this[m]={body:p,disturbed:false,error:null};this.size=b;this.timeout=M;if(p instanceof i){p.on("error",(function(p){const a=p.name==="AbortError"?p:new FetchError(`Invalid response body w
/*!
* Tmp
*
* Copyright (c) 2011-2017 KARASZI Istvan <github@spam.raszi.hu>
*
* MIT Licensed
*/
const i=a(57147);const d=a(22037);const b=a(71017);const c=a(6113);const M={fs:i.constants,os:d.constants};const z=a(14959);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=d.platform()==="win32",q=M.EBADF||M.os.errno.EBADF,h=M.ENOENT||M.os.errno.ENOENT,W=448,g=384,v="exit",R=[],_=i.rmdirSync.bind(i),L=z.sync;let N=false;function tmpName(p,r){const a=_parseArguments(p,r),d=a[0],b=a[1];try{_assertAndSanitizeOptions(d)}catch(p){return b(p)}let c=d.tries;(function _getUniqueName(){try{const p=_generateTmpName(d);i.stat(p,(function(r){if(!r){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 r=_parseArguments(p),a=r[0];_assertAndSanitizeOptions(a);let d=a.tries;do{const p=_generateTmpName(a);try{i.statSync(p)}catch(r){return p}}while(d-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}function file(p,r){const a=_parseArguments(p,r),d=a[0],b=a[1];tmpName(d,(function _tmpNameCreated(p,r){if(p)return b(p);i.open(r,A,d.mode||g,(function _fileCreated(p,a){if(p)return b(p);if(d.discardDescriptor){return i.close(a,(function _discardCallback(p){return b(p,r,undefined,_prepareTmpFileRemoveCallback(r,-1,d,false))}))}else{const p=d.discardDescriptor||d.detachDescriptor;b(null,r,a,_prepareTmpFileRemoveCallback(r,p?-1:a,d,false))}}))}))}function fileSync(p){const r=_parseArguments(p),a=r[0];const d=a.discardDescriptor||a.detachDescriptor;const b=tmpNameSync(a);var c=i.openSync(b,A,a.mode||g);if(a.discardDescriptor){i.closeSync(c);c=undefined}return{name:b,fd:c,removeCallback:_prepareTmpFileRemoveCallback(b,d?-1:c,a,true)}}function dir(p,r){const a=_parseArguments(p,r),d=a[0],b=a[1];tmpName(d,(function _tmpNameCreated(p,r){if(p)return b(p);i.mkdir(r,d.mode||W,(function _dirCreated(p){if(p)return b(p);b(null,r,_prepareTmpDirRemoveCallback(r,d,false))}))}))}function dirSync(p){const r=_parseArguments(p),a=r[0];const d=tmpNameSync(a);i.mkdirSync(d,a.mode||W);return{name:d,removeCallback:_prepareTmpDirRemoveCallback(d,a,true)}}function _removeFileAsync(p,r){const _handler=function(p){if(p&&!_isENOENT(p)){return r(p)}r()};if(0<=p[0])i.close(p[0],(function(){i.unlink(p[1],_handler)}));else i.unlink(p[1],_handler)}function _removeFileSync(p){let r=null;try{if(0<=p[0])i.closeSync(p[0])}catch(p){if(!_isEBADF(p)&&!_isENOENT(p))throw p}finally{try{i.unlinkSync(p[1])}catch(p){if(!_isENOENT(p))r=p}}if(r!==null){throw r}}function _prepareTmpFileRemoveCallback(p,r,a,i){const d=_prepareRemoveCallback(_removeFileSync,[r,p],i);const b=_prepareRemoveCallback(_removeFileAsync,[r,p],i,d);if(!a.keep)R.unshift(d);return i?d:b}function _prepareTmpDirRemoveCallback(p,r,a){const d=r.unsafeCleanup?z:i.rmdir.bind(i);const b=r.unsafeCleanup?L:_;const c=_prepareRemoveCallback(b,p,a);const M=_prepareRemoveCallback(d,p,a,c);if(!r.keep)R.unshift(c);return a?c:M}function _prepareRemoveCallback(p,r,a,i){let d=false;return function _cleanupCallback(b){if(!d){const c=i||_cleanupCallback;const M=R.indexOf(c);if(M>=0)R.splice(M,1);d=true;if(a||p===_||p===L){return p(r)}else{return p(r,b||function(){})}}}}function _garbageCollector(){if(!N)return;while(R.length){try{R[0]()}catch(p){}}}function _randomChars(p){let r=[],a=null;try{a=c.randomBytes(p)}catch(r){a=c.pseudoRandomBytes(p)}for(var i=0;i<p;i++){r.push(u[a[i]%u.length])}return r.join("")}function _isBlank(p){return p===null||_isUndefined(p)||!p.trim()}function _isUndefined(p){return typeof p==="undefined"}function _parseArguments(p,r){if(typeof p==="function"){return[{},p]}if(_isUndefined(p)){return[{},r]}const a={};for(const r of Object.getOwnPropertyNames(p)){a[r]=p[r]}return[a,r]}function _generateTmpName(p){const r=p.tmpdir;if(!_isUndefined(p.name))return b.join(r,p.dir,p.name);if(!_isUndefined(p.template))return b.join(r,p.dir,p.template).replace(O,_randomChars(6));const a=[p.prefix?p.prefix:"tmp","-",process.pid,"-",_randomChars(12),p.postfix?"-"+
/*!
* XRegExp.build 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2012-present MIT License
*/var u=function _default(p){var r="xregexp";var a=/(\()(?!\?)|\\([1-9]\d*)|\\[\s\S]|\[(?:[^\\\]]|\\[\s\S])*\]/g;var i=p.union([/\({{([\w$]+)}}\)|{{([\w$]+)}}/,a],"g",{conjunction:"or"});function deanchor(p){var r=/^(?:\(\?:\))*\^/;var a=/\$(?:\(\?:\))*$/;if(r.test(p)&&a.test(p)&&a.test(p.replace(/\\[\s\S]/g,""))){return p.replace(r,"").replace(a,"")}return p}function asXRegExp(a,i){var d=i?"x":"";return p.isRegExp(a)?a[r]&&a[r].captureNames?a:p(a.source,d):p(a,d)}function interpolate(r){return r instanceof RegExp?r:p.escape(r)}function reduceToSubpatternsObject(p,r,a){p["subpattern".concat(a)]=r;return p}function embedSubpatternAfter(p,r,a){var i=r<a.length-1;return p+(i?"{{subpattern".concat(r,"}}"):"")}p.tag=function(r){return function(a){var i,d;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"])(i=(0,M["default"])(c).call(c,interpolate)).call(i,reduceToSubpatternsObject,{});var l=(0,M["default"])(d=a.raw).call(d,embedSubpatternAfter).join("");return p.build(l,O,r)}};p.build=function(d,M,z){z=z||"";var u=(0,c["default"])(z).call(z,"x");var O=/^\(\?([\w$]+)\)/.exec(d);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[r].captureNames||[]}}}var q=asXRegExp(d,u);var h=0;var W;var g=0;var v=[0];var R=q[r].captureNames||[];var _=q.source.replace(i,(function(p,r,i,d,c){var M=r||i;var z;var u;var O;if(M){var A;if(!l.hasOwnProperty(M)){throw new ReferenceError("Undefined property ".concat(p))}if(r){z=R[g];v[++g]=++h;u="(?<".concat(z||M,">")}else{u="(?:"}W=h;var m=l[M].pattern.replace(a,(function(p,r,a){if(r){z=l[M].names[h-W];++h;if(z){return"(?<".concat(z,">")}}else if(a){O=+a-1;return l[M].names[O]?"\\k<".concat(l[M].names[O],">"):"\\".concat(+a+W)}return p}));return(0,b["default"])(A="".concat(u)).call(A,m,")")}if(d){z=R[g];v[++g]=++h;if(z){return"(?<".concat(z,">")}}else if(c){O=+c-1;return R[O]?"\\k<".concat(R[O],">"):"\\".concat(v[+c])}return p}));return p(_,z)}};r["default"]=u;p.exports=r.default},14811:(p,r,a)=>{"use strict";var i=a(84393);var d=a(34218);d(r,"__esModule",{value:true});r["default"]=void 0;var b=i(a(49188));var c=i(a(10466));var M=i(a(6611));
/*!
* XRegExp.matchRecursive 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2009-present MIT License
*/var z=function _default(p){function row(p,r,a,i){return{name:p,value:r,start:a,end:i}}p.matchRecursive=function(r,a,i,d,z){d=d||"";z=z||{};var u=(0,M["default"])(d).call(d,"g");var O=(0,M["default"])(d).call(d,"y");var l=d.replace(/y/g,"");var A=z,m=A.escapeChar;var q=z.valueNames;var h=[];var W=0;var g=0;var v=0;var R=0;var _;var L;var N;var w;var y;a=p(a,l);i=p(i,l);if(m){var E,T;if(m.length>1){throw new Error("Cannot use more than one escape character")}m=p.escape(m);y=new RegExp((0,c["default"])(E=(0,c["default"])(T="(?:".concat(m,"[\\S\\s]|(?:(?!")).call(T,p.union([a,i],"",{conjunction:"or"}).source,")[^")).call(E,m,"])+)+"),d.replace(/[^imu]+/g,""))}while(true){if(m){v+=(p.exec(r,y,v,"sticky")||[""])[0].length}N=p.exec(r,a,v);w=p.exec(r,i,v);if(N&&w){if(N.index<=w.index){w=null}else{N=null}}if(N||w){g=(N||w).index;v=g+(N||w)[0].length}else if(!W){break}if(O&&!W&&g>R){break}if(N){if(!W){_=g;L=v}++W}else if(w&&W){if(!--W){if(q){if(q[0]&&_>R){h.push(row(q[0],(0,b["default"])(r).call(r,R,_),R,_))}if(q[1]){h.push(row(q[1],(0,b["default"])(r).call(r,_,L),_,L))}if(q[2]){h.push(row(q[2],(0,b["default"])(r).call(r,L,g),L,g))}if(q[3]){h.push(row(q[3],(0,b["default"])(r).call(r,g,v),g,v))}}else{h.push((0,b["default"])(r).call(r,L,g))}R=v;if(!u){break}}}else{throw new Error("Unbalanced delimiter found in string")}if(g===v){++v}}if(u&&!O&&q&&q[0]&&r.length>R){h.push(row(q[0],(0,b["default"])(r).call(r,R),R,r.length))}return h}};r["default"]=z;p.exports=r.default},13110:(p,r,a)=>{"use strict";var i=a(84393);var d=a(34218);d(r,"__esModule",{value:true});r["default"]=void 0;var b=i(a(22038));var c=i(a(25401));var M=i(a(59640));var z=i(a(77652));var u=i(a(53361));var O=i(a(49188));var l=i(a(6611));var A=i(a(10466));var m=i(a(50669));function _createForOfIteratorHelper(p,r){var a;if(typeof z["default"]==="undefined"||(0,M["default"])(p)==null){if((0,c["default"])(p)||(a=_unsupportedIterableToArray(p))||r&&p&&typeof p.length==="number"){if(a)p=a;var i=0;var d=function F(){};return{s:d,n:function n(){if(i>=p.length)return{done:true};return{done:false,value:p[i++]}},e:function e(p){throw p},f:d}}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(){a=(0,b["default"])(p)},n:function n(){var p=a.next();u=p.done;return p},e:function e(p){O=true;l=p},f:function f(){try{if(!u&&a["return"]!=null)a["return"]()}finally{if(O)throw l}}}}function _unsupportedIterableToArray(p,r){var a;if(!p)return;if(typeof p==="string")return _arrayLikeToArray(p,r);var i=(0,O["default"])(a=Object.prototype.toString.call(p)).call(a,8,-1);if(i==="Object"&&p.constructor)i=p.constructor.name;if(i==="Map"||i==="Set")return(0,u["default"])(p);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return _arrayLikeToArray(p,r)}function _arrayLikeToArray(p,r){if(r==null||r>p.length)r=p.length;for(var a=0,i=new Array(r);a<r;a++){i[a]=p[a]}return i}
/*!
* XRegExp Unicode Base 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2008-present MIT License
*/var q=function _default(p){var r={};var a=p._dec;var i=p._hex;var d=p._pad4;function normalize(p){return p.replace(/[- _]+/g,"").toLowerCase()}function charCode(p){var r=/^\\[xu](.+)/.exec(p);return r?a(r[1]):p.charCodeAt(p[0]==="\\"?1:0)}function invertBmp(r){var a="";var b=-1;(0,m["default"])(p).call(p,r,/(\\x..|\\u....|\\?[\s\S])(?:-(\\x..|\\u....|\\?[\s\S]))?/,(function(p){var r=charCode(p[1]);if(r>b+1){a+="\\u".concat(d(i(b+1)));if(r>b+2){a+="-\\u".concat(d(i(r-1)))}}b=charCode(p[2]||p[1])}));if(b<65535){a+="\\u".concat(d(i(b+1)));if(b<65534){a+="-\\uFFFF"}}return a}function cacheInvertedBmp(p){var a="b!";return r[p][a]||(r[p][a]=invertBmp(r[p].bmp))}function buildAstral(p,a){var i=r[p];var d="";if(i.bmp&&!i.isBmpLast){var b;d=(0,A["default"])(b="[".concat(i.bmp,"]")).call(b,i.astral?"|":"")}if(i.astral){d+=i.astral}if(i.isBmpLast&&i.bmp){var c;d+=(0,A["default"])(c="".concat(i.astral?"|":"","[")).call(c,i.bmp,"]")}return a?"(?:(?!".concat(d,")(?:[\ud800-\udbff][\udc00-\udfff]|[\0-￿]))"):"(?:".concat(d,")")}function cacheAstral(p,a){var i=a?"a!":"a=";return r[p][i]||(r[p][i]=buildAstral(p,a))}p.addToken(/\\([pP])(?:{(\^?)([^}]*)}|([A-Za-z]))/,(function(p,a,i){var d="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"])(i).call(i,"A");var m=normalize(p[4]||p[3]);var q=r[m];if(p[1]==="P"&&p[2]){throw new SyntaxError(d+p[0])}if(!r.hasOwnProperty(m)){throw new SyntaxError(b+p[0])}if(q.inverseOf){m=normalize(q.inverseOf);if(!r.hasOwnProperty(m)){var h;throw new ReferenceError((0,A["default"])(h="".concat(c+p[0]," -> ")).call(h,q.inverseOf))}q=r[m];u=!u}if(!(q.bmp||O)){throw new SyntaxError(M+p[0])}if(O){if(a==="class"){throw new SyntaxError(z)}return cacheAstral(m,u)}return a==="class"?u?cacheInvertedBmp(m):q.bmp:"".concat((u?"[^":"[")+q.bmp,"]")}),{scope:"all",optionalFlags:"A",leadChar:"\\"});p.addUnicodeData=function(a){var i="Unicode token requires name";var d="Unicode token has no character data ";var b=_createForOfIteratorHelper(a),c;try{for(b.s();!(c=b.n()).done;){var M=c.value;if(!M.name){throw new Error(i)}if(!(M.inverseOf||M.bmp||M.astral)){throw new Error(d+M.name)}r[normalize(M.name)]=M;if(M.alias){r[normalize(M.alias)]=M}}}catch(p){b.e(p)}finally{b.f()}p.cache.flush("patterns")};p._getUnicodeProperty=function(p){var a=normalize(p);return r[a]}};r["default"]=q;p.exports=r.default},34686:(p,r,a)=>{"use strict";var i=a(84393);var d=a(34218);d(r,"__esModule",{value:true});r["default"]=void 0;var b=i(a(25826));
/*!
* 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"])};r["default"]=c;p.exports=r.default},1996:(p,r,a)=>{"use strict";var i=a(84393);var d=a(34218);d(r,"__esModule",{value:true});r["default"]=void 0;var b=i(a(58537));
/*!
* 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"])};r["default"]=c;p.exports=r.default},49250:(p,r,a)=>{"use strict";var i=a(84393);var d=a(34218);d(r,"__esModule",{value:true});r["default"]=void 0;var b=i(a(90616));
/*!
* 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 r=b["default"];r.push({name:"Assigned",inverseOf:"Cn"});p.addUnicodeData(r)};r["default"]=c;p.exports=r.default},55715:(p,r,a)=>{"use strict";var i=a(84393);var d=a(34218);d(r,"__esModule",{value:true});r["default"]=void 0;var b=i(a(32524));
/*!
* 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"])};r["default"]=c;p.exports=r.default},77750:(p,r,a)=>{"use strict";var i=a(84393);var d=a(34218);d(r,"__esModule",{value:true});r["default"]=void 0;var b=i(a(18612));var c=i(a(70380));var M=i(a(14811));var z=i(a(13110));var u=i(a(34686));var O=i(a(1996));var l=i(a(49250));var A=i(a(55715));(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"];r["default"]=m;p.exports=r.default},18612:(p,r,a)=>{"use strict";var i=a(84393);var d=a(34218);d(r,"__esModule",{value:true});r["default"]=void 0;var b=i(a(22038));var c=i(a(25401));var M=i(a(59640));var z=i(a(77652));var u=i(a(53361));var O=i(a(10466));var l=i(a(33781));var A=i(a(66761));var m=i(a(88135));var q=i(a(50669));var h=i(a(6611));var W=i(a(21308));var g=i(a(49188));var v=i(a(28979));var R=i(a(83046));function _createForOfIteratorHelper(p,r){var a;if(typeof z["default"]==="undefined"||(0,M["default"])(p)==null){if((0,c["default"])(p)||(a=_unsupportedIterableToArray(p))||r&&p&&typeof p.length==="number"){if(a)p=a;var i=0;var d=function F(){};return{s:d,n:function n(){if(i>=p.length)return{done:true};return{done:false,value:p[i++]}},e:function e(p){throw p},f:d}}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(){a=(0,b["default"])(p)},n:function n(){var p=a.next();u=p.done;return p},e:function e(p){O=true;l=p},f:function f(){try{if(!u&&a["return"]!=null)a["return"]()}finally{if(O)throw l}}}}function _unsupportedIterableToArray(p,r){var a;if(!p)return;if(typeof p==="string")return _arrayLikeToArray(p,r);var i=(0,g["default"])(a=Object.prototype.toString.call(p)).call(a,8,-1);if(i==="Object"&&p.constructor)i=p.constructor.name;if(i==="Map"||i==="Set")return(0,u["default"])(p);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return _arrayLikeToArray(p,r)}function _arrayLikeToArray(p,r){if(r==null||r>p.length)r=p.length;for(var a=0,i=new Array(r);a<r;a++){i[a]=p[a]}return i}
/*!
* XRegExp 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2007-present MIT License
*/var _="xregexp";var L={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 w={};var y={};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 C=N.exec.call(/()??/,"")[1]===undefined;var P=(0,R["default"])(/x/)!==undefined;var I={},x=I.toString;function hasNativeFlag(p){var r=true;try{new RegExp("",p);if(p==="y"){var a=function(){return"gy"}();var i=".a".replace(new RegExp("a",a),".")==="..";if(i){r=false}}}catch(p){r=false}return r}var D=hasNativeFlag("u");var G=hasNativeFlag("y");var j={g:true,i:true,m:true,u:D,y:G};function augment(p,r,a,i,d){var b;p[_]={captureNames:r};if(d){return p}if(p.__proto__){p.__proto__=XRegExp.prototype}else{for(var c in XRegExp.prototype){p[c]=XRegExp.prototype[c]}}p[_].source=a;p[_].flags=i?(0,v["default"])(b=i.split("")).call(b).join(""):i;return p}function clipDuplicates(p){return N.replace.call(p,/([\s\S])(?=[\s\S]*\1)/g,"")}function copyRegex(p,r){var a;if(!XRegExp.isRegExp(p)){throw new TypeError("Type RegExp expected")}var i=p[_]||{};var d=getNativeFlags(p);var b="";var c="";var M=null;var z=null;r=r||{};if(r.removeG){c+="g"}if(r.removeY){c+="y"}if(c){d=N.replace.call(d,new RegExp("[".concat(c,"]+"),"g"),"")}if(r.addG){b+="g"}if(r.addY){b+="y"}if(b){d=clipDuplicates(d+b)}if(!r.isInternalOnly){if(i.source!==undefined){M=i.source}if((0,R["default"])(i)!=null){z=b?clipDuplicates((0,R["default"])(i)+b):(0,R["default"])(i)}}p=augment(new RegExp(r.source||p.source,d),hasNamedCapture(p)?(0,g["default"])(a=i.captureNames).call(a,0):null,M,z,r.isInternalOnly);return p}function dec(p){return(0,W["default"])(p,16)}function getContextualTokenSeparator(p,r,a){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,a)){return""}return"(?:)"}function getNativeFlags(p){return P?(0,R["default"])(p):N.exec.call(/\/([a-z]*)$/i,RegExp.prototype.toString.call(p))[1]}function hasNamedCapture(p){return!!(p[_]&&p[_].captureNames)}function hex(p){return(0,W["default"])(p,10).toString(16)}function isQuantifierNext(p,r,a){var i="\\(\\?#[^)]*\\)";var d="#[^#\\n]*";var b="[?*+]|{\\d+(?:,\\d*)?}";return N.test.call((0,h["default"])(a).call(a,"x")?/^(?:\s|#[^#\n]*|\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/:/^(?:\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/,(0,g["default"])(p).call(p,r))}function isType(p,r){return x.call(p)==="[object ".concat(r,"]")}function pad4(p){while(p.length<4){p="0".concat(p)}return p}function prepareFlags(p,r){if(clipDuplicates(r)!==r){throw new SyntaxError("Invalid duplicate regex flag ".concat(r))}p=N.replace.call(p,/^\(\?([\w$]+)\)/,(function(p,a){if(N.test.call(/[gy]/,a)){throw new SyntaxError("Cannot use flag g or y in mode modifier ".concat(p))}r=clipDuplicates(r+a);return""}));var a=_createForOfIteratorHelper(r),i;try{for(a.s();!(i=a.n()).done;){var d=i.value;if(!j[d]){throw new SyntaxError("Unknown regex flag ".concat(d))}}}catch(p){a.e(p)}finally{a.f()}return{pattern:p,flags:r}}function prepareOptions(p){var r={};if(isType(p,"String")){(0,q["default"])(XRegExp).call(XRegExp,p,/[^\s,]+/,(function(p){r[p]=true}));return r}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,r,a,i,d){var b=T.length;var c=p[a];var M=null;var z;var u;while(b--){u=T[b];if(u.leadChar&&u.leadChar!==c||u.scope!==i&&u.scope!=="all"||u.flag&&!(0,h["default"])(r).call(r,u.flag)){continue}z=XRegExp.exec(p,u.regex,a,"sticky");i
//# sourceMappingURL=index.js.map