From 84a8a347caafd33e0224af688d3ea8c513901806 Mon Sep 17 00:00:00 2001 From: Jiawen Geng Date: Tue, 20 Jun 2023 21:11:13 +0800 Subject: [PATCH] feat: add curl (#210) --- dist/cli.js | 2 +- dist/envinfo.js | 2 +- src/helpers/utilities.js | 7 +++++++ src/presets.js | 1 + 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/dist/cli.js b/dist/cli.js index 75671a8..bd6057f 100644 --- a/dist/cli.js +++ b/dist/cli.js @@ -1,2 +1,2 @@ #!/usr/bin/env node -"use strict";module.exports=function(n){var t={};function e(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return n[o].call(r.exports,r,r.exports,e),r.l=!0,r.exports}return e.m=n,e.c=t,e.d=function(n,t,o){e.o(n,t)||Object.defineProperty(n,t,{enumerable:!0,get:o})},e.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},e.t=function(n,t){if(1&t&&(n=e(n)),8&t)return n;if(4&t&&"object"==typeof n&&n&&n.__esModule)return n;var o=Object.create(null);if(e.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:n}),2&t&&"string"!=typeof n)for(var r in n)e.d(o,r,function(t){return n[t]}.bind(null,r));return o},e.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return e.d(t,"a",t),t},e.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},e.p="",e(e.s=195)}({0:function(n,t){var e=n.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},1:function(n,t,e){var o=e(3);n.exports=function(n){if(!o(n))throw TypeError(n+" is not an object!");return n}},12:function(n,t,e){var o=e(1),r=e(42),i=e(35),u=Object.defineProperty;t.f=e(5)?Object.defineProperty:function(n,t,e){if(o(n),t=i(t,!0),o(e),r)try{return u(n,t,e)}catch(n){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(n[t]=e.value),n}},14:function(n,t){var e=n.exports={version:"2.6.12"};"number"==typeof __e&&(__e=e)},15:function(n,t,e){var o=e(12),r=e(22);n.exports=e(5)?function(n,t,e){return o.f(n,t,r(1,e))}:function(n,t,e){return n[t]=e,n}},16:function(n,t,e){var o=e(0),r=e(15),i=e(19),u=e(23)("src"),s=e(53),c=(""+s).split("toString");e(14).inspectSource=function(n){return s.call(n)},(n.exports=function(n,t,e,s){var a="function"==typeof e;a&&(i(e,"name")||r(e,"name",t)),n[t]!==e&&(a&&(i(e,u)||r(e,u,n[t]?""+n[t]:c.join(String(t)))),n===o?n[t]=e:s?n[t]?n[t]=e:r(n,t,e):(delete n[t],r(n,t,e)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[u]||s.call(this)}))},17:function(n,t,e){var o=e(25);n.exports=function(n,t,e){if(o(n),void 0===t)return n;switch(e){case 1:return function(e){return n.call(t,e)};case 2:return function(e,o){return n.call(t,e,o)};case 3:return function(e,o,r){return n.call(t,e,o,r)}}return function(){return n.apply(t,arguments)}}},18:function(n,t,e){var o=e(26),r=Math.min;n.exports=function(n){return n>0?r(o(n),9007199254740991):0}},19:function(n,t){var e={}.hasOwnProperty;n.exports=function(n,t){return e.call(n,t)}},195:function(n,t,e){e(41);var o=e(196)(process.argv.slice(2));o.console=!0,o.help||o._.indexOf("help")>-1?console.log("\n ,,', ,, ,,,,,, ,',,\n ,,, ,,, ,,,\n ,, ,,,,, ,,,,,, ,,, ,, ,, .,,,,,, ,,,,,,, ,,,,, ,,\n ,, ,, ,, ,,, ,,, ,, ,,, ,, ,,, ,,, ,, ,,, ,,, ,,\n ,,, ,, .,, ,,, ,, ,,, ,, ,, ,,, ,, ,, ,, ,, ,,,\n ,, ,,,,,,,,,, ,,, ,, ,, ,, ,, ,,, ,, ,, ,, ,, ,,\n ,, ,,, ,,, ,, ,,,,, ,, ,,, ,, ,, ,,, ,,, ,,\n ,, ,,,,,,, ,,, ,, ,,, ,, ,,, ,, ,, ,,,,,,, ,,\n ,,, ,,,\n ,,,' ',,,\n\n VERSION: 7.8.0\n\n USAGE:\n\n `envinfo` || `npx envinfo`\n\n OPTIONS:\n\n --system Print general system info such as OS, CPU, Memory and Shell\n --browsers Get version numbers of installed web browsers\n --SDKs Get platforms, build tools and SDKs of iOS and Android\n --IDEs Get version numbers of installed IDEs\n --languages Get version numbers of installed languages such as Java, Python, PHP, etc\n --managers Get version numbers of installed package/dependency managers\n --monorepos Get monorepo tools\n --binaries Get version numbers of node, npm, watchman, etc\n --npmPackages Get version numbers of locally installed npm packages - glob, string, or comma delimited list\n --npmGlobalPackages Get version numbers of globally installed npm packages\n\n --duplicates Mark duplicate npm packages inside parentheses eg. (2.1.4)\n --fullTree Traverse entire node_modules dependency tree, not just top level\n\n --markdown Print output in markdown format\n --json Print output in JSON format\n --console Print to console (defaults to on for CLI usage, off for programmatic usage)\n --showNotFound Don't filter out values marked 'Not Found'\n --title Give your report a top level title ie 'Environment Report'\n\n --clipboard *Removed - use clipboardy or clipboard-cli directly*\n "):o.version||o.v||o._.indexOf("version")>-1?console.log("7.8.0"):e(197).cli(o)},196:function(n,t){function e(n){return"number"==typeof n||(!!/^0x[0-9a-f]+$/i.test(n)||/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(n))}n.exports=function(n,t){t||(t={});var o={bools:{},strings:{},unknownFn:null};"function"==typeof t.unknown&&(o.unknownFn=t.unknown),"boolean"==typeof t.boolean&&t.boolean?o.allBools=!0:[].concat(t.boolean).filter(Boolean).forEach((function(n){o.bools[n]=!0}));var r={};Object.keys(t.alias||{}).forEach((function(n){r[n]=[].concat(t.alias[n]),r[n].forEach((function(t){r[t]=[n].concat(r[n].filter((function(n){return t!==n})))}))})),[].concat(t.string).filter(Boolean).forEach((function(n){o.strings[n]=!0,r[n]&&(o.strings[r[n]]=!0)}));var i=t.default||{},u={_:[]};Object.keys(o.bools).forEach((function(n){c(n,void 0!==i[n]&&i[n])}));var s=[];function c(n,t,i){if(!i||!o.unknownFn||function(n,t){return o.allBools&&/^--[^=]+$/.test(t)||o.strings[n]||o.bools[n]||r[n]}(n,i)||!1!==o.unknownFn(i)){var s=!o.strings[n]&&e(t)?Number(t):t;a(u,n.split("."),s),(r[n]||[]).forEach((function(n){a(u,n.split("."),s)}))}}function a(n,t,e){for(var r=n,i=0;i0?o:e)(n)}},29:function(n,t,e){var o=e(14),r=e(0),i=r["__core-js_shared__"]||(r["__core-js_shared__"]={});(n.exports=function(n,t){return i[n]||(i[n]=void 0!==t?t:{})})("versions",[]).push({version:o.version,mode:e(24)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},3:function(n,t){n.exports=function(n){return"object"==typeof n?null!==n:"function"==typeof n}},34:function(n,t,e){var o=e(3),r=e(0).document,i=o(r)&&o(r.createElement);n.exports=function(n){return i?r.createElement(n):{}}},35:function(n,t,e){var o=e(3);n.exports=function(n,t){if(!o(n))return n;var e,r;if(t&&"function"==typeof(e=n.toString)&&!o(r=e.call(n)))return r;if("function"==typeof(e=n.valueOf)&&!o(r=e.call(n)))return r;if(!t&&"function"==typeof(e=n.toString)&&!o(r=e.call(n)))return r;throw TypeError("Can't convert object to primitive value")}},38:function(n,t,e){var o=e(0).document;n.exports=o&&o.documentElement},41:function(n,t,e){var o=e(2),r=e(38),i=e(20),u=e(44),s=e(18),c=[].slice;o(o.P+o.F*e(6)((function(){r&&c.call(r)})),"Array",{slice:function(n,t){var e=s(this.length),o=i(this);if(t=void 0===t?e:t,"Array"==o)return c.call(this,n,t);for(var r=u(n,e),a=u(t,e),f=s(a-r),l=new Array(f),p=0;p-1?console.log("\n ,,', ,, ,,,,,, ,',,\n ,,, ,,, ,,,\n ,, ,,,,, ,,,,,, ,,, ,, ,, .,,,,,, ,,,,,,, ,,,,, ,,\n ,, ,, ,, ,,, ,,, ,, ,,, ,, ,,, ,,, ,, ,,, ,,, ,,\n ,,, ,, .,, ,,, ,, ,,, ,, ,, ,,, ,, ,, ,, ,, ,,,\n ,, ,,,,,,,,,, ,,, ,, ,, ,, ,, ,,, ,, ,, ,, ,, ,,\n ,, ,,, ,,, ,, ,,,,, ,, ,,, ,, ,, ,,, ,,, ,,\n ,, ,,,,,,, ,,, ,, ,,, ,, ,,, ,, ,, ,,,,,,, ,,\n ,,, ,,,\n ,,,' ',,,\n\n VERSION: 7.8.0\n\n USAGE:\n\n `envinfo` || `npx envinfo`\n\n OPTIONS:\n\n --system Print general system info such as OS, CPU, Memory and Shell\n --browsers Get version numbers of installed web browsers\n --SDKs Get platforms, build tools and SDKs of iOS and Android\n --IDEs Get version numbers of installed IDEs\n --languages Get version numbers of installed languages such as Java, Python, PHP, etc\n --managers Get version numbers of installed package/dependency managers\n --monorepos Get monorepo tools\n --binaries Get version numbers of node, npm, watchman, etc\n --npmPackages Get version numbers of locally installed npm packages - glob, string, or comma delimited list\n --npmGlobalPackages Get version numbers of globally installed npm packages\n\n --duplicates Mark duplicate npm packages inside parentheses eg. (2.1.4)\n --fullTree Traverse entire node_modules dependency tree, not just top level\n\n --markdown Print output in markdown format\n --json Print output in JSON format\n --console Print to console (defaults to on for CLI usage, off for programmatic usage)\n --showNotFound Don't filter out values marked 'Not Found'\n --title Give your report a top level title ie 'Environment Report'\n\n --clipboard *Removed - use clipboardy or clipboard-cli directly*\n "):t.version||t.v||t._.indexOf("version")>-1?console.log("7.8.0"):o(173).cli(t)},172:function(n,e){function o(n){return"number"==typeof n||(!!/^0x[0-9a-f]+$/i.test(n)||/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(n))}n.exports=function(n,e){e||(e={});var t={bools:{},strings:{},unknownFn:null};"function"==typeof e.unknown&&(t.unknownFn=e.unknown),"boolean"==typeof e.boolean&&e.boolean?t.allBools=!0:[].concat(e.boolean).filter(Boolean).forEach(function(n){t.bools[n]=!0});var r={};Object.keys(e.alias||{}).forEach(function(n){r[n]=[].concat(e.alias[n]),r[n].forEach(function(e){r[e]=[n].concat(r[n].filter(function(n){return e!==n}))})}),[].concat(e.string).filter(Boolean).forEach(function(n){t.strings[n]=!0,r[n]&&(t.strings[r[n]]=!0)});var s=e.default||{},i={_:[]};Object.keys(t.bools).forEach(function(n){a(n,void 0!==s[n]&&s[n])});var l=[];function a(n,e,s){if(!s||!t.unknownFn||function(n,e){return t.allBools&&/^--[^=]+$/.test(e)||t.strings[n]||t.bools[n]||r[n]}(n,s)||!1!==t.unknownFn(s)){var l=!t.strings[n]&&o(e)?Number(e):e;u(i,n.split("."),l),(r[n]||[]).forEach(function(n){u(i,n.split("."),l)})}}function u(n,e,o){for(var r=n,s=0;s1&&void 0!==arguments[1]?arguments[1]:{},n=t.unify,r=void 0!==n&&n;return new Promise((function(t){s.exec(e,{stdio:[0,"pipe","ignore"]},(function(e,n,o){var i="";i=r?n.toString()+o.toString():n.toString(),t((e?"":i).trim())}))}))},l=function(e){var t=Object.values(Array.prototype.slice.call(arguments).slice(1));(process.env.ENVINFO_DEBUG||"").toLowerCase()===e&&console.log(e,JSON.stringify(t))},p=function(e){return new Promise((function(t){o.readFile(e,"utf8",(function(e,n){return t(n||null)}))}))},h=function(e){return p(e).then((function(e){return e?JSON.parse(e):null}))},d=/\d+\.[\d+|.]+/g,m=function(e){l("trace","findDarwinApplication",e);var t=`mdfind "kMDItemCFBundleIdentifier=='${e}'"`;return l("trace",t),f(t).then((function(e){return e.replace(/(\s)/g,"\\ ")}))},g=function(e,t){var n=(t||["CFBundleShortVersionString"]).map((function(e){return"-c Print:"+e}));return["/usr/libexec/PlistBuddy"].concat(n).concat([e]).join(" ")},v=function(e,t){for(var n=[],r=null;null!==(r=e.exec(t));)n.push(r);return n};e.exports={run:f,log:l,fileExists:function(e){return new Promise((function(t){o.stat(e,(function(n){return t(n?null:e)}))}))},readFile:p,requireJson:h,versionRegex:d,findDarwinApplication:m,generatePlistBuddyCommand:g,matchAll:v,parseSDKManagerOutput:function(e){var t=e.split("Available")[0];return{apiLevels:v(u.androidAPILevels,t).map((function(e){return e[1]})),buildTools:v(u.androidBuildTools,t).map((function(e){return e[1]})),systemImages:v(u.androidSystemImages,t).map((function(e){return e[1].split("|").map((function(e){return e.trim()}))})).map((function(e){return e[0].split(";")[0]+" | "+e[2].split(" System Image")[0]}))}},isLinux:"linux"===process.platform,isMacOS:"darwin"===process.platform,NA:"N/A",NotFound:"Not Found",isWindows:process.platform.startsWith("win"),isObject:function(e){return"object"==typeof e&&!Array.isArray(e)},noop:function(e){return e},pipe:function(e){return function(t){return e.reduce((function(e,t){return t(e)}),t)}},browserBundleIdentifiers:{"Brave Browser":"com.brave.Browser",Chrome:"com.google.Chrome","Chrome Canary":"com.google.Chrome.canary",Firefox:"org.mozilla.firefox","Firefox Developer Edition":"org.mozilla.firefoxdeveloperedition","Firefox Nightly":"org.mozilla.nightly","Microsoft Edge":"com.microsoft.edgemac",Safari:"com.apple.Safari","Safari Technology Preview":"com.apple.SafariTechnologyPreview"},ideBundleIdentifiers:{Atom:"com.github.atom",IntelliJ:"com.jetbrains.intellij",PhpStorm:"com.jetbrains.PhpStorm","Sublime Text":"com.sublimetext.3",WebStorm:"com.jetbrains.WebStorm"},runSync:function(e){return(s.execSync(e,{stdio:[0,"pipe","ignore"]}).toString()||"").trim()},which:function(e){return new Promise((function(t){return c(e,(function(e,n){return t(n)}))}))},getDarwinApplicationVersion:function(e){var t;return l("trace","getDarwinApplicationVersion",e),t="darwin"!==process.platform?"N/A":m(e).then((function(e){return f(g(r.join(e,"Contents","Info.plist"),["CFBundleShortVersionString"]))})),Promise.resolve(t)},uniq:function(e){return Array.from(new Set(e))},toReadableBytes:function(e){var t=Math.floor(Math.log(e)/Math.log(1024));return e?(e/Math.pow(1024,t)).toFixed(2)+" "+["B","KB","MB","GB","TB","PB"][t]:"0 Bytes"},omit:function(e,t){return Object.keys(e).filter((function(e){return t.indexOf(e)<0})).reduce((function(t,n){return Object.assign(t,{[n]:e[n]})}),{})},pick:function(e,t){return Object.keys(e).filter((function(e){return t.indexOf(e)>=0})).reduce((function(t,n){return Object.assign(t,{[n]:e[n]})}),{})},getPackageJsonByName:function(e){return h(r.join(process.cwd(),"node_modules",e,"package.json"))},getPackageJsonByPath:function(e){return h(r.join(process.cwd(),e))},getPackageJsonByFullPath:function(e){return l("trace","getPackageJsonByFullPath",e),h(e)},getAllPackageJsonPaths:function(e){return l("trace","getAllPackageJsonPaths",e),new Promise((function(t){var n=function(e,n){return t(n.map(r.normalize)||[])};return a(e?r.join("node_modules",e,"package.json"):r.join("node_modules","**","package.json"),n)}))},sortObject:function(e){return Object.keys(e).sort().reduce((function(t,n){return t[n]=e[n],t}),{})},findVersion:function(e,t,n){l("trace","findVersion",e,t,n);var r=n||0,o=t||d,i=e.match(o);return i?i[r]:e},condensePath:function(e){return(e||"").replace(i.homedir(),"~")},determineFound:function(e,t,n){return l("trace","determineFound",e,t,n),"N/A"===t?Promise.resolve([e,"N/A"]):t&&0!==Object.keys(t).length?n?Promise.resolve([e,t,n]):Promise.resolve([e,t]):Promise.resolve([e,"Not Found"])}}},function(e,t,n){"use strict";var r=n(48),o={};o[n(4)("toStringTag")]="z",o+""!="[object z]"&&n(16)(Object.prototype,"toString",(function(){return"[object "+r(this)+"]"}),!0)},function(e,t,n){"use strict";var r,o,i,s,c=n(24),a=n(0),u=n(17),f=n(48),l=n(2),p=n(3),h=n(25),d=n(61),m=n(62),g=n(84),v=n(85).set,y=n(109)(),b=n(86),w=n(110),x=n(111),S=n(112),P=a.TypeError,O=a.process,I=O&&O.versions,j=I&&I.v8||"",E=a.Promise,_="process"==f(O),A=function(){},k=o=b.f,N=!!function(){try{var e=E.resolve(1),t=(e.constructor={})[n(4)("species")]=function(e){e(A,A)};return(_||"function"==typeof PromiseRejectionEvent)&&e.then(A)instanceof t&&0!==j.indexOf("6.6")&&-1===x.indexOf("Chrome/66")}catch(e){}}(),F=function(e){var t;return!(!p(e)||"function"!=typeof(t=e.then))&&t},C=function(e,t){if(!e._n){e._n=!0;var n=e._c;y((function(){for(var r=e._v,o=1==e._s,i=0,s=function(t){var n,i,s,c=o?t.ok:t.fail,a=t.resolve,u=t.reject,f=t.domain;try{c?(o||(2==e._h&&V(e),e._h=1),!0===c?n=r:(f&&f.enter(),n=c(r),f&&(f.exit(),s=!0)),n===t.promise?u(P("Promise-chain cycle")):(i=F(n))?i.call(n,a,u):a(n)):u(r)}catch(e){f&&!s&&f.exit(),u(e)}};n.length>i;)s(n[i++]);e._c=[],e._n=!1,t&&!e._h&&M(e)}))}},M=function(e){v.call(a,(function(){var t,n,r,o=e._v,i=T(e);if(i&&(t=w((function(){_?O.emit("unhandledRejection",o,e):(n=a.onunhandledrejection)?n({promise:e,reason:o}):(r=a.console)&&r.error&&r.error("Unhandled promise rejection",o)})),e._h=_||T(e)?2:1),e._a=void 0,i&&t.e)throw t.v}))},T=function(e){return 1!==e._h&&0===(e._a||e._c).length},V=function(e){v.call(a,(function(){var t;_?O.emit("rejectionHandled",e):(t=a.onrejectionhandled)&&t({promise:e,reason:e._v})}))},D=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),C(t,!0))},B=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw P("Promise can't be resolved itself");(t=F(e))?y((function(){var r={_w:n,_d:!1};try{t.call(e,u(B,r,1),u(D,r,1))}catch(e){D.call(r,e)}})):(n._v=e,n._s=1,C(n,!1))}catch(e){D.call({_w:n,_d:!1},e)}}};N||(E=function(e){d(this,E,"Promise","_h"),h(e),r.call(this);try{e(u(B,this,1),u(D,this,1))}catch(e){D.call(this,e)}},(r=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(63)(E.prototype,{then:function(e,t){var n=k(g(this,E));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=_?O.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&C(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new r;this.promise=e,this.resolve=u(B,e,1),this.reject=u(D,e,1)},b.f=k=function(e){return e===E||e===s?new i(e):o(e)}),l(l.G+l.W+l.F*!N,{Promise:E}),n(39)(E,"Promise"),n(87)("Promise"),s=n(14).Promise,l(l.S+l.F*!N,"Promise",{reject:function(e){var t=k(this);return(0,t.reject)(e),t.promise}}),l(l.S+l.F*(c||!N),"Promise",{resolve:function(e){return S(c&&this===s?E:this,e)}}),l(l.S+l.F*!(N&&n(64)((function(e){E.all(e).catch(A)}))),"Promise",{all:function(e){var t=this,n=k(t),r=n.resolve,o=n.reject,i=w((function(){var n=[],i=0,s=1;m(e,!1,(function(e){var c=i++,a=!1;n.push(void 0),s++,t.resolve(e).then((function(e){a||(a=!0,n[c]=e,--s||r(n))}),o)})),--s||r(n)}));return i.e&&o(i.v),n.promise},race:function(e){var t=this,n=k(t),r=n.reject,o=w((function(){m(e,!1,(function(e){t.resolve(e).then(n.resolve,r)}))}));return o.e&&r(o.v),n.promise}})},function(e,t,n){"use strict";var r=n(88),o=n(89),i=n(50),s=n(21);e.exports=n(90)(Array,"Array",(function(e,t){this._t=s(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(e,t,n){var r=n(1),o=n(42),i=n(35),s=Object.defineProperty;t.f=n(5)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t){e.exports=require("fs")},function(e,t){var n=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(12),o=n(22);e.exports=n(5)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(0),o=n(15),i=n(19),s=n(23)("src"),c=n(53),a=(""+c).split("toString");n(14).inspectSource=function(e){return c.call(e)},(e.exports=function(e,t,n,c){var u="function"==typeof n;u&&(i(n,"name")||o(n,"name",t)),e[t]!==n&&(u&&(i(n,s)||o(n,s,e[t]?""+e[t]:a.join(String(t)))),e===r?e[t]=n:c?e[t]?e[t]=n:o(e,t,n):(delete e[t],o(e,t,n)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[s]||c.call(this)}))},function(e,t,n){var r=n(25);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(26),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(54),o=n(43);e.exports=function(e){return r(o(e))}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){e.exports=!1},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(43);e.exports=function(e){return Object(r(e))}},function(e,t,n){"use strict";var r=n(2),o=n(79)(2);r(r.P+r.F*!n(57)([].filter,!0),"Array",{filter:function(e){return o(this,e,arguments[1])}})},function(e,t,n){var r=n(14),o=n(0),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(24)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){"use strict";var r=n(2),o=n(79)(1);r(r.P+r.F*!n(57)([].map,!0),"Array",{map:function(e){return o(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(123),o=n(1),i=n(84),s=n(58),c=n(18),a=n(47),u=n(59),f=n(6),l=Math.min,p=[].push,h="length",d=!f((function(){RegExp(4294967295,"y")}));n(49)("split",2,(function(e,t,n,f){var m;return m="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1)[h]||2!="ab".split(/(?:ab)*/)[h]||4!=".".split(/(.?)(.?)/)[h]||".".split(/()()/)[h]>1||"".split(/.?/)[h]?function(e,t){var o=String(this);if(void 0===e&&0===t)return[];if(!r(e))return n.call(o,e,t);for(var i,s,c,a=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),l=0,d=void 0===t?4294967295:t>>>0,m=new RegExp(e.source,f+"g");(i=u.call(m,o))&&!((s=m.lastIndex)>l&&(a.push(o.slice(l,i.index)),i[h]>1&&i.index=d));)m.lastIndex===i.index&&m.lastIndex++;return l===o[h]?!c&&m.test("")||a.push(""):a.push(o.slice(l)),a[h]>d?a.slice(0,d):a}:"0".split(void 0,0)[h]?function(e,t){return void 0===e&&0===t?[]:n.call(this,e,t)}:n,[function(n,r){var o=e(this),i=null==n?void 0:n[t];return void 0!==i?i.call(n,o,r):m.call(String(o),n,r)},function(e,t){var r=f(m,e,this,t,m!==n);if(r.done)return r.value;var u=o(e),p=String(this),h=i(u,RegExp),g=u.unicode,v=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(d?"y":"g"),y=new h(d?u:"^(?:"+u.source+")",v),b=void 0===t?4294967295:t>>>0;if(0===b)return[];if(0===p.length)return null===a(y,p)?[p]:[];for(var w=0,x=0,S=[];x]*>)/g,h=/\$([$&`']|\d\d?)/g;n(49)("replace",2,(function(e,t,n,d){return[function(r,o){var i=e(this),s=null==r?void 0:r[t];return void 0!==s?s.call(r,i,o):n.call(String(i),r,o)},function(e,t){var o=d(n,e,this,t);if(o.done)return o.value;var l=r(e),p=String(this),h="function"==typeof t;h||(t=String(t));var g=l.global;if(g){var v=l.unicode;l.lastIndex=0}for(var y=[];;){var b=a(l,p);if(null===b)break;if(y.push(b),!g)break;""===String(b[0])&&(l.lastIndex=c(p,i(l.lastIndex),v))}for(var w,x="",S=0,P=0;P=S&&(x+=p.slice(S,I)+k,S=I+O.length)}return x+p.slice(S)}];function m(e,t,r,i,s,c){var a=r+e.length,u=i.length,f=h;return void 0!==s&&(s=o(s),f=p),n.call(c,f,(function(n,o){var c;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(a);case"<":c=s[o.slice(1,-1)];break;default:var f=+o;if(0===f)return n;if(f>u){var p=l(f/10);return 0===p?n:p<=u?void 0===i[p-1]?o.charAt(1):i[p-1]+o.charAt(1):n}c=i[f-1]}return void 0===c?"":c}))}}))},function(e,t,n){"use strict";var r=n(48),o=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var i=n.call(e,t);if("object"!=typeof i)throw new TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(e))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},function(e,t,n){var r=n(20),o=n(4)("toStringTag"),i="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:i?r(t):"Object"==(s=r(t))&&"function"==typeof t.callee?"Arguments":s}},function(e,t,n){"use strict";n(107);var r=n(16),o=n(15),i=n(6),s=n(43),c=n(4),a=n(59),u=c("species"),f=!i((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")})),l=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();e.exports=function(e,t,n){var p=c(e),h=!i((function(){var t={};return t[p]=function(){return 7},7!=""[e](t)})),d=h?!i((function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[u]=function(){return n}),n[p](""),!t})):void 0;if(!h||!d||"replace"===e&&!f||"split"===e&&!l){var m=/./[p],g=n(s,p,""[e],(function(e,t,n,r,o){return t.exec===a?h&&!o?{done:!0,value:m.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}})),v=g[0],y=g[1];r(String.prototype,e,v),o(RegExp.prototype,p,2==t?function(e,t){return y.call(e,this,t)}:function(e){return y.call(e,this)})}}},function(e,t){e.exports={}},function(e,t){e.exports=require("util")},function(e,t,n){var r=n(97);function o(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function i(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},n=e.name||"Function wrapped with `once`";return t.onceError=n+" shouldn't be called more than once",t.called=!1,t}e.exports=r(o),e.exports.strict=r(i),o.proto=o((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return o(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return i(this)},configurable:!0})}))},function(e,t,n){e.exports=n(29)("native-function-to-string",Function.toString)},function(e,t,n){var r=n(20);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){var r=n(29)("keys"),o=n(23);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){"use strict";var r=n(6);e.exports=function(e,t){return!!e&&r((function(){t?e.call(null,(function(){}),1):e.call(null)}))}},function(e,t,n){"use strict";var r=n(106)(!0);e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},function(e,t,n){"use strict";var r,o,i=n(60),s=RegExp.prototype.exec,c=String.prototype.replace,a=s,u=(r=/a/,o=/b*/g,s.call(r,"a"),s.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),f=void 0!==/()??/.exec("")[1];(u||f)&&(a=function(e){var t,n,r,o,a=this;return f&&(n=new RegExp("^"+a.source+"$(?!\\s)",i.call(a))),u&&(t=a.lastIndex),r=s.call(a,e),u&&r&&(a.lastIndex=a.global?r.index+r[0].length:t),f&&r&&r.length>1&&c.call(r[0],n,(function(){for(o=1;ob;b++)if((g=t?y(s(d=e[b])[0],d[1]):y(e[b]))===u||g===f)return g}else for(m=v.call(e);!(d=m.next()).done;)if((g=o(m,y,d.value,t))===u||g===f)return g}).BREAK=u,t.RETURN=f},function(e,t,n){var r=n(16);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},function(e,t,n){var r=n(4)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i=[7],s=i[r]();s.next=function(){return{done:n=!0}},i[r]=function(){return s},e(i)}catch(e){}return n}},function(e,t,n){var r=n(1),o=n(114),i=n(56),s=n(55)("IE_PROTO"),c=function(){},a=function(){var e,t=n(34)("iframe"),r=i.length;for(t.style.display="none",n(38).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("