prettier 2.1.1 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin-prettier.js +3 -3
- package/doc.js +14 -4
- package/index.js +594 -575
- package/package.json +1 -1
- package/parser-babel.js +1 -1
- package/parser-flow.js +1 -1
- package/parser-html.js +15 -15
- package/parser-markdown.js +1 -1
- package/parser-postcss.js +2 -2
- package/parser-typescript.js +1 -1
- package/parser-yaml.js +1 -1
- package/standalone.js +2 -2
package/parser-typescript.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):((e="undefined"!=typeof globalThis?globalThis:e||self).prettierPlugins=e.prettierPlugins||{},e.prettierPlugins.typescript=t())}(this,(function(){"use strict";var e=function(e,t){const r=new SyntaxError(e+" ("+t.start.line+":"+t.start.column+")");return r.loc=t,r},t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(e,t,r){return e(r={path:t,exports:{},require:function(e,t){return i(null==t&&r.path)}},r.exports),r.exports}function n(e){return e&&e.default||e}function i(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var a=Object.freeze({__proto__:null,default:{EOL:"\n"}});const o=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");const t=e.match(/(?:\r?\n)/g)||[];if(0===t.length)return;const r=t.filter(e=>"\r\n"===e).length;return r>t.length-r?"\r\n":"\n"};var s=o;s.graceful=e=>"string"==typeof e&&o(e)||"\n";var c=n(a),u=r((function(e,t){function r(){const e=c;return r=function(){return e},e}function n(){const e=(t=s)&&t.__esModule?t:{default:t};var t;return n=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.extract=function(e){const t=e.match(o);return t?t[0].trimLeft():""},t.strip=function(e){const t=e.match(o);return t&&t[0]?e.substring(t[0].length):e},t.parse=function(e){return g(e).pragmas},t.parseWithComments=g,t.print=function({comments:e="",pragmas:t={}}){const i=(0,n().default)(e)||r().EOL,a=Object.keys(t),o=a.map(e=>m(e,t[e])).reduce((e,t)=>e.concat(t),[]).map(e=>" * "+e+i).join("");if(!e){if(0===a.length)return"";if(1===a.length&&!Array.isArray(t[a[0]])){const e=t[a[0]];return"".concat("/**"," ").concat(m(a[0],e)[0]).concat(" */")}}const s=e.split(i).map(e=>"".concat(" *"," ").concat(e)).join(i)+i;return"/**"+i+(e?s:"")+(e&&a.length?" *"+i:"")+o+" */"};const i=/\*\/$/,a=/^\/\*\*/,o=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,u=/(^|\s+)\/\/([^\r\n]*)/g,l=/^(\r?\n)+/,d=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,_=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,p=/(\r?\n|^) *\* ?/g,f=[];function g(e){const t=(0,n().default)(e)||r().EOL;e=e.replace(a,"").replace(i,"").replace(p,"$1");let o="";for(;o!==e;)o=e,e=e.replace(d,"".concat(t,"$1 $2").concat(t));e=e.replace(l,"").trimRight();const s=Object.create(null),c=e.replace(_,"").replace(l,"").trimRight();let g;for(;g=_.exec(e);){const e=g[2].replace(u,"");"string"==typeof s[g[1]]||Array.isArray(s[g[1]])?s[g[1]]=f.concat(s[g[1]],e):s[g[1]]=e}return{comments:c,pragmas:s}}function m(e,t){return f.concat(t).map(t=>"@".concat(e," ").concat(t).trim())}})),l=e=>"string"==typeof e?e.replace((({onlyFirst:e=!1}={})=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")})(),""):e;const d=e=>!Number.isNaN(e)&&(e>=4352&&(e<=4447||9001===e||9002===e||11904<=e&&e<=12871&&12351!==e||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141));var _=d,p=d;_.default=p;const f=e=>{if("string"!=typeof(e=e.replace(/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g," "))||0===e.length)return 0;e=l(e);let t=0;for(let r=0;r<e.length;r++){const n=e.codePointAt(r);n<=31||n>=127&&n<=159||(n>=768&&n<=879||(n>65535&&r++,t+=_(n)?2:1))}return t};var g=f,m=f;g.default=m;var y=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")};function h(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var v="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function b(){throw new Error("setTimeout has not been defined")}function x(){throw new Error("clearTimeout has not been defined")}var D=b,S=x;function T(e){if(D===setTimeout)return setTimeout(e,0);if((D===b||!D)&&setTimeout)return D=setTimeout,setTimeout(e,0);try{return D(e,0)}catch(t){try{return D.call(null,e,0)}catch(t){return D.call(this,e,0)}}}"function"==typeof v.setTimeout&&(D=setTimeout),"function"==typeof v.clearTimeout&&(S=clearTimeout);var E,C=[],k=!1,N=-1;function A(){k&&E&&(k=!1,E.length?C=E.concat(C):N=-1,C.length&&F())}function F(){if(!k){var e=T(A);k=!0;for(var t=C.length;t;){for(E=C,C=[];++N<t;)E&&E[N].run();N=-1,t=C.length}E=null,k=!1,function(e){if(S===clearTimeout)return clearTimeout(e);if((S===x||!S)&&clearTimeout)return S=clearTimeout,clearTimeout(e);try{S(e)}catch(t){try{return S.call(null,e)}catch(t){return S.call(this,e)}}}(e)}}function P(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];C.push(new w(e,t)),1!==C.length||k||T(F)}function w(e,t){this.fun=e,this.array=t}w.prototype.run=function(){this.fun.apply(null,this.array)};function I(){}var O=I,M=I,L=I,R=I,B=I,j=I,J=I;var K=v.performance||{},z=K.now||K.mozNow||K.msNow||K.oNow||K.webkitNow||function(){return(new Date).getTime()};var U=new Date;var V={nextTick:P,title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:O,addListener:M,once:L,off:R,removeListener:B,removeAllListeners:j,emit:J,binding:function(e){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(e){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(e){var t=.001*z.call(K),r=Math.floor(t),n=Math.floor(t%1*1e9);return e&&(r-=e[0],(n-=e[1])<0&&(r--,n+=1e9)),[r,n]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-U)/1e3}};var q="object"==typeof V&&V.env&&V.env.NODE_DEBUG&&/\bsemver\b/i.test(V.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var W={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16},H=r((function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:r}=W,n=(t=e.exports={}).re=[],i=t.src=[],a=t.t={};let o=0;const s=(e,t,r)=>{const s=o++;q(s,t),a[e]=s,i[s]=t,n[s]=new RegExp(t,r?"g":void 0)};s("NUMERICIDENTIFIER","0|[1-9]\\d*"),s("NUMERICIDENTIFIERLOOSE","[0-9]+"),s("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),s("MAINVERSION","(".concat(i[a.NUMERICIDENTIFIER],")\\.")+"(".concat(i[a.NUMERICIDENTIFIER],")\\.")+"(".concat(i[a.NUMERICIDENTIFIER],")")),s("MAINVERSIONLOOSE","(".concat(i[a.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(i[a.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(i[a.NUMERICIDENTIFIERLOOSE],")")),s("PRERELEASEIDENTIFIER","(?:".concat(i[a.NUMERICIDENTIFIER],"|").concat(i[a.NONNUMERICIDENTIFIER],")")),s("PRERELEASEIDENTIFIERLOOSE","(?:".concat(i[a.NUMERICIDENTIFIERLOOSE],"|").concat(i[a.NONNUMERICIDENTIFIER],")")),s("PRERELEASE","(?:-(".concat(i[a.PRERELEASEIDENTIFIER],"(?:\\.").concat(i[a.PRERELEASEIDENTIFIER],")*))")),s("PRERELEASELOOSE","(?:-?(".concat(i[a.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(i[a.PRERELEASEIDENTIFIERLOOSE],")*))")),s("BUILDIDENTIFIER","[0-9A-Za-z-]+"),s("BUILD","(?:\\+(".concat(i[a.BUILDIDENTIFIER],"(?:\\.").concat(i[a.BUILDIDENTIFIER],")*))")),s("FULLPLAIN","v?".concat(i[a.MAINVERSION]).concat(i[a.PRERELEASE],"?").concat(i[a.BUILD],"?")),s("FULL","^".concat(i[a.FULLPLAIN],"$")),s("LOOSEPLAIN","[v=\\s]*".concat(i[a.MAINVERSIONLOOSE]).concat(i[a.PRERELEASELOOSE],"?").concat(i[a.BUILD],"?")),s("LOOSE","^".concat(i[a.LOOSEPLAIN],"$")),s("GTLT","((?:<|>)?=?)"),s("XRANGEIDENTIFIERLOOSE","".concat(i[a.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),s("XRANGEIDENTIFIER","".concat(i[a.NUMERICIDENTIFIER],"|x|X|\\*")),s("XRANGEPLAIN","[v=\\s]*(".concat(i[a.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(i[a.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(i[a.XRANGEIDENTIFIER],")")+"(?:".concat(i[a.PRERELEASE],")?").concat(i[a.BUILD],"?")+")?)?"),s("XRANGEPLAINLOOSE","[v=\\s]*(".concat(i[a.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(i[a.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(i[a.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(i[a.PRERELEASELOOSE],")?").concat(i[a.BUILD],"?")+")?)?"),s("XRANGE","^".concat(i[a.GTLT],"\\s*").concat(i[a.XRANGEPLAIN],"$")),s("XRANGELOOSE","^".concat(i[a.GTLT],"\\s*").concat(i[a.XRANGEPLAINLOOSE],"$")),s("COERCE","".concat("(^|[^\\d])(\\d{1,").concat(r,"})")+"(?:\\.(\\d{1,".concat(r,"}))?")+"(?:\\.(\\d{1,".concat(r,"}))?")+"(?:$|[^\\d])"),s("COERCERTL",i[a.COERCE],!0),s("LONETILDE","(?:~>?)"),s("TILDETRIM","(\\s*)".concat(i[a.LONETILDE],"\\s+"),!0),t.tildeTrimReplace="$1~",s("TILDE","^".concat(i[a.LONETILDE]).concat(i[a.XRANGEPLAIN],"$")),s("TILDELOOSE","^".concat(i[a.LONETILDE]).concat(i[a.XRANGEPLAINLOOSE],"$")),s("LONECARET","(?:\\^)"),s("CARETTRIM","(\\s*)".concat(i[a.LONECARET],"\\s+"),!0),t.caretTrimReplace="$1^",s("CARET","^".concat(i[a.LONECARET]).concat(i[a.XRANGEPLAIN],"$")),s("CARETLOOSE","^".concat(i[a.LONECARET]).concat(i[a.XRANGEPLAINLOOSE],"$")),s("COMPARATORLOOSE","^".concat(i[a.GTLT],"\\s*(").concat(i[a.LOOSEPLAIN],")$|^$")),s("COMPARATOR","^".concat(i[a.GTLT],"\\s*(").concat(i[a.FULLPLAIN],")$|^$")),s("COMPARATORTRIM","(\\s*)".concat(i[a.GTLT],"\\s*(").concat(i[a.LOOSEPLAIN],"|").concat(i[a.XRANGEPLAIN],")"),!0),t.comparatorTrimReplace="$1$2$3",s("HYPHENRANGE","^\\s*(".concat(i[a.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(i[a.XRANGEPLAIN],")")+"\\s*$"),s("HYPHENRANGELOOSE","^\\s*(".concat(i[a.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(i[a.XRANGEPLAINLOOSE],")")+"\\s*$"),s("STAR","(<|>)?=?\\s*\\*"),s("GTE0","^\\s*>=\\s*0.0.0\\s*$"),s("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")}));const G=/^[0-9]+$/,Y=(e,t)=>{const r=G.test(e),n=G.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1};var X={compareIdentifiers:Y,rcompareIdentifiers:(e,t)=>Y(t,e)};const{MAX_LENGTH:Q,MAX_SAFE_INTEGER:$}=W,{re:Z,t:ee}=H,{compareIdentifiers:te}=X;class re{constructor(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof re){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: ".concat(e));if(e.length>Q)throw new TypeError("version is longer than ".concat(Q," characters"));q("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?Z[ee.LOOSE]:Z[ee.FULL]);if(!r)throw new TypeError("Invalid Version: ".concat(e));if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>$||this.major<0)throw new TypeError("Invalid major version");if(this.minor>$||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>$||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<$)return t}return e}):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version="".concat(this.major,".").concat(this.minor,".").concat(this.patch),this.prerelease.length&&(this.version+="-".concat(this.prerelease.join("."))),this.version}toString(){return this.version}compare(e){if(q("SemVer.compare",this.version,this.options,e),!(e instanceof re)){if("string"==typeof e&&e===this.version)return 0;e=new re(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof re||(e=new re(e,this.options)),te(this.major,e.major)||te(this.minor,e.minor)||te(this.patch,e.patch)}comparePre(e){if(e instanceof re||(e=new re(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const r=this.prerelease[t],n=e.prerelease[t];if(q("prerelease compare",t,r,n),void 0===r&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===r)return-1;if(r!==n)return te(r,n)}while(++t)}compareBuild(e){e instanceof re||(e=new re(e,this.options));let t=0;do{const r=this.build[t],n=e.build[t];if(q("prerelease compare",t,r,n),void 0===r&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===r)return-1;if(r!==n)return te(r,n)}while(++t)}inc(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{let e=this.prerelease.length;for(;--e>=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: ".concat(e))}return this.format(),this.raw=this.version,this}}var ne=re;var ie=(e,t,r)=>new ne(e,r).compare(new ne(t,r));var ae=(e,t,r)=>ie(e,t,r)<0;var oe=(e,t,r)=>ie(e,t,r)>=0,se="Prettier is an opinionated code formatter",ce="./bin/prettier.js",ue={node:">=10.13.0"},le=["index.js","standalone.js","src","bin"],de={"@angular/compiler":"10.0.12","@babel/code-frame":"7.10.4","@babel/parser":"7.11.2","@glimmer/syntax":"0.59.0","@iarna/toml":"2.2.5","@typescript-eslint/typescript-estree":"3.10.0","angular-estree-parser":"2.2.0","angular-html-parser":"1.7.1",camelcase:"6.0.0",chalk:"4.1.0","ci-info":"watson/ci-info#f43f6a1cefff47fb361c88cf4b943fdbcaafe540","cjk-regex":"2.0.0",cosmiconfig:"7.0.0",dashify:"2.0.0",diff:"4.0.2",editorconfig:"0.15.3","editorconfig-to-prettier":"0.1.1","escape-string-regexp":"4.0.0",esutils:"2.0.3","fast-glob":"3.2.4","fast-json-stable-stringify":"2.1.0","find-parent-dir":"0.3.0","flow-parser":"0.132.0","get-stream":"6.0.0",globby:"11.0.1",graphql:"15.3.0","html-element-attributes":"2.2.1","html-styles":"1.0.0","html-tag-names":"1.1.5","html-void-elements":"1.0.5",ignore:"4.0.6","jest-docblock":"26.0.0",json5:"2.1.3",leven:"3.1.0","lines-and-columns":"1.1.6","linguist-languages":"7.10.0",lodash:"4.17.20",mem:"6.1.0",minimatch:"3.0.4",minimist:"1.2.5","n-readlines":"1.0.0",outdent:"0.7.1","parse-srcset":"ikatyang/parse-srcset#54eb9c1cb21db5c62b4d0e275d7249516df6f0ee","please-upgrade-node":"3.2.0","postcss-less":"3.1.4","postcss-media-query-parser":"0.2.3","postcss-scss":"2.1.1","postcss-selector-parser":"2.2.3","postcss-values-parser":"2.0.1","regexp-util":"1.2.2","remark-footnotes":"2.0.0","remark-math":"1.0.6","remark-parse":"8.0.3",resolve:"1.17.0",semver:"7.3.2","string-width":"4.2.0",typescript:"4.0.2","unicode-regex":"3.0.0",unified:"9.2.0",vnopts:"1.0.2","yaml-unist-parser":"1.3.0"},_e={"@babel/core":"7.11.4","@babel/preset-env":"7.11.0","@babel/types":"7.11.0","@glimmer/reference":"0.59.0","@rollup/plugin-alias":"3.1.1","@rollup/plugin-babel":"5.2.0","@rollup/plugin-commonjs":"14.0.0","@rollup/plugin-json":"4.1.0","@rollup/plugin-node-resolve":"9.0.0","@rollup/plugin-replace":"2.3.3","@types/estree":"0.0.45","@types/node":"14.6.0","@typescript-eslint/types":"3.10.0","babel-loader":"8.1.0",benchmark:"2.1.4","builtin-modules":"3.1.0","cross-env":"7.0.2",cspell:"4.1.0",eslint:"7.7.0","eslint-config-prettier":"6.11.0","eslint-formatter-friendly":"7.0.0","eslint-plugin-import":"2.22.0","eslint-plugin-jest":"23.20.0","eslint-plugin-prettier-internal-rules":"file:scripts/tools/eslint-plugin-prettier-internal-rules","eslint-plugin-react":"7.20.6","eslint-plugin-unicorn":"21.0.0",execa:"4.0.3",jest:"26.4.2","jest-snapshot-serializer-ansi":"1.0.0","jest-snapshot-serializer-raw":"1.1.0","jest-watch-typeahead":"0.6.0","npm-run-all":"4.1.5",prettier:"2.1.0",rimraf:"3.0.2",rollup:"2.26.5","rollup-plugin-node-globals":"1.4.0","rollup-plugin-terser":"7.0.0",shelljs:"0.8.4","snapshot-diff":"0.8.1","strip-ansi":"6.0.0","synchronous-promise":"2.0.13",tempy:"0.6.0","terser-webpack-plugin":"4.1.0",webpack:"4.44.1"},pe={prepublishOnly:'echo "Error: must publish from dist/" && exit 1',"prepare-release":"yarn && yarn build && yarn test:dist",test:"jest","test:dev-package":"cross-env INSTALL_PACKAGE=1 jest","test:dist":"cross-env NODE_ENV=production jest","test:dist-standalone":"cross-env NODE_ENV=production TEST_STANDALONE=1 jest","test:integration":"jest tests_integration","perf:repeat":"yarn && yarn build && cross-env NODE_ENV=production node ./dist/bin-prettier.js --debug-repeat ${PERF_REPEAT:-1000} --loglevel debug ${PERF_FILE:-./index.js} > /dev/null","perf:repeat-inspect":"yarn && yarn build && cross-env NODE_ENV=production node --inspect-brk ./dist/bin-prettier.js --debug-repeat ${PERF_REPEAT:-1000} --loglevel debug ${PERF_FILE:-./index.js} > /dev/null","perf:benchmark":"yarn && yarn build && cross-env NODE_ENV=production node ./dist/bin-prettier.js --debug-benchmark --loglevel debug ${PERF_FILE:-./index.js} > /dev/null",lint:"run-p lint:*","lint:typecheck":"tsc","lint:eslint":"cross-env EFF_NO_LINK_RULES=true eslint . --format friendly","lint:changelog":"node ./scripts/lint-changelog.js","lint:prettier":'prettier . "!test*" --check',"lint:dist":'eslint --no-eslintrc --no-ignore --env=es6,browser --parser-options=ecmaVersion:2016 "dist/!(bin-prettier|index|third-party).js"',"lint:spellcheck":'cspell "**/*" ".github/**/*"',"lint:deps":"node ./scripts/check-deps.js",fix:"run-s fix:eslint fix:prettier","fix:eslint":"yarn lint:eslint --fix","fix:prettier":"yarn lint:prettier --write",build:"node ./scripts/build/build.js","build-docs":"node ./scripts/build-docs.js"},fe={name:"prettier",version:"2.1.1",description:se,bin:ce,repository:"prettier/prettier",homepage:"https://prettier.io",author:"James Long",license:"MIT",main:"./index.js",browser:"./standalone.js",unpkg:"./standalone.js",engines:ue,files:le,dependencies:de,devDependencies:_e,scripts:pe},ge=Object.freeze({__proto__:null,name:"prettier",version:"2.1.1",description:se,bin:ce,repository:"prettier/prettier",homepage:"https://prettier.io",author:"James Long",license:"MIT",main:"./index.js",browser:"./standalone.js",unpkg:"./standalone.js",engines:ue,files:le,dependencies:de,devDependencies:_e,scripts:pe,default:fe}),me=r((function(e,t){function r(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]}function n(){return"undefined"!=typeof WeakMap?new WeakMap:{add:r,delete:r,get:r,set:r,has:function(e){return!1}}}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.prototype.hasOwnProperty,a=function(e,t){return i.call(e,t)};function o(e,t){for(var r in t)a(t,r)&&(e[r]=t[r]);return e}var s=/^[ \t]*(?:\r\n|\r|\n)/,c=/(?:\r\n|\r|\n)[ \t]*$/,u=/^(?:[\r\n]|$)/,l=/(?:\r\n|\r|\n)([ \t]*)(?:[^ \t\r\n]|$)/,d=/^[ \t]*[\r\n][ \t\r\n]*$/;function _(e,t,r){var n=0,i=e[0].match(l);i&&(n=i[1].length);var a=new RegExp("(\\r\\n|\\r|\\n).{0,"+n+"}","g");t&&(e=e.slice(1));var o=r.newline,u=r.trimLeadingNewline,d=r.trimTrailingNewline,_="string"==typeof o,p=e.length;return e.map((function(e,t){return e=e.replace(a,"$1"),0===t&&u&&(e=e.replace(s,"")),t===p-1&&d&&(e=e.replace(c,"")),_&&(e=e.replace(/\r\n|\n|\r/g,(function(e){return o}))),e}))}function p(e,t){for(var r="",n=0,i=e.length;n<i;n++)r+=e[n],n<i-1&&(r+=t[n]);return r}function f(e){return a(e,"raw")&&a(e,"length")}var g=function e(t){var r=n(),i=n();return o((function n(a){for(var s=[],c=1;c<arguments.length;c++)s[c-1]=arguments[c];if(f(a)){var l=a,m=(s[0]===n||s[0]===g)&&d.test(l[0])&&u.test(l[1]),y=m?i:r,h=y.get(l);if(h||(h=_(l,m,t),y.set(l,h)),0===s.length)return h[0];var v=p(h,m?s.slice(1):s);return v}return e(o(o({},t),a||{}))}),{string:function(e){return _([e],!1,t)[0]}})}({trimLeadingNewline:!0,trimTrailingNewline:!0});t.outdent=g,t.default=g;try{e.exports=g,Object.defineProperty(g,"__esModule",{value:!0}),g.default=g,g.outdent=g}catch(e){}}));function ye(){const e=h(["\n Require either '@prettier' or '@format' to be present in the file's first docblock comment\n in order for it to be formatted.\n "]);return ye=function(){return e},e}function he(){const e=h(["\n Format code starting at a given character offset.\n The range will extend backwards to the start of the first line containing the selected statement.\n This option cannot be used with --cursor-offset.\n "]);return he=function(){return e},e}function ve(){const e=h(["\n Format code ending at a given character offset (exclusive).\n The range will extend forwards to the end of the selected statement.\n This option cannot be used with --cursor-offset.\n "]);return ve=function(){return e},e}function be(){const e=h(["\n Custom directory that contains prettier plugins in node_modules subdirectory.\n Overrides default behavior when plugins are searched relatively to the location of Prettier.\n Multiple values are accepted.\n "]);return be=function(){return e},e}function xe(){const e=h(["\n Maintain existing\n (mixed values within one file are normalised by looking at what's used after the first line)\n "]);return xe=function(){return e},e}function De(){const e=h(["\n Print (to stderr) where a cursor at the given position would move to after formatting.\n This option cannot be used with --range-start and --range-end.\n "]);return De=function(){return e},e}const{outdent:Se}=me;var Te={CATEGORY_CONFIG:"Config",CATEGORY_EDITOR:"Editor",CATEGORY_FORMAT:"Format",CATEGORY_OTHER:"Other",CATEGORY_OUTPUT:"Output",CATEGORY_GLOBAL:"Global",CATEGORY_SPECIAL:"Special",options:{cursorOffset:{since:"1.4.0",category:"Special",type:"int",default:-1,range:{start:-1,end:1/0,step:1},description:Se(De()),cliCategory:"Editor"},endOfLine:{since:"1.15.0",category:"Global",type:"choice",default:[{since:"1.15.0",value:"auto"},{since:"2.0.0",value:"lf"}],description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:Se(xe())}]},filepath:{since:"1.4.0",category:"Special",type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:"Other",cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{since:"1.8.0",category:"Special",type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:"Other"},parser:{since:"0.0.10",category:"Global",type:"choice",default:[{since:"0.0.10",value:"babylon"},{since:"1.13.0",value:void 0}],description:"Which parser to use.",exception:e=>"string"==typeof e||"function"==typeof e,choices:[{value:"flow",description:"Flow"},{value:"babel",since:"1.16.0",description:"JavaScript"},{value:"babel-flow",since:"1.16.0",description:"Flow"},{value:"babel-ts",since:"2.0.0",description:"TypeScript"},{value:"typescript",since:"1.4.0",description:"TypeScript"},{value:"css",since:"1.7.1",description:"CSS"},{value:"less",since:"1.7.1",description:"Less"},{value:"scss",since:"1.7.1",description:"SCSS"},{value:"json",since:"1.5.0",description:"JSON"},{value:"json5",since:"1.13.0",description:"JSON5"},{value:"json-stringify",since:"1.13.0",description:"JSON.stringify"},{value:"graphql",since:"1.5.0",description:"GraphQL"},{value:"markdown",since:"1.8.0",description:"Markdown"},{value:"mdx",since:"1.15.0",description:"MDX"},{value:"vue",since:"1.10.0",description:"Vue"},{value:"yaml",since:"1.14.0",description:"YAML"},{value:"glimmer",since:null,description:"Handlebars"},{value:"html",since:"1.15.0",description:"HTML"},{value:"angular",since:"1.15.0",description:"Angular"},{value:"lwc",since:"1.17.0",description:"Lightning Web Components"}]},plugins:{since:"1.10.0",type:"path",array:!0,default:[{value:[]}],category:"Global",description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>"string"==typeof e||"object"==typeof e,cliName:"plugin",cliCategory:"Config"},pluginSearchDirs:{since:"1.13.0",type:"path",array:!0,default:[{value:[]}],category:"Global",description:Se(be()),exception:e=>"string"==typeof e||"object"==typeof e,cliName:"plugin-search-dir",cliCategory:"Config"},printWidth:{since:"0.0.0",category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{since:"1.4.0",category:"Special",type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:Se(ve()),cliCategory:"Editor"},rangeStart:{since:"1.4.0",category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description:Se(he()),cliCategory:"Editor"},requirePragma:{since:"1.7.0",category:"Special",type:"boolean",default:!1,description:Se(ye()),cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{since:"1.0.0",category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{since:"2.1.0",category:"Global",type:"choice",default:[{since:"2.1.0",value:"auto"}],description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}}},Ee=n(ge);const Ce={compare:ie,lt:ae,gte:oe},ke=Ee.version,Ne=Te.options;var Ae={getSupportInfo:function({plugins:e=[],showUnreleased:t=!1,showDeprecated:r=!1,showInternal:n=!1}={}){const i=ke.split("-",1)[0],a=e.reduce((e,t)=>e.concat(t.languages||[]),[]).filter(u),o=(s=Object.assign({},...e.map(({options:e})=>e),Ne),c="name",Object.entries(s).map(([e,t])=>Object.assign({[c]:e},t))).filter(e=>u(e)&&l(e)).sort((e,t)=>e.name===t.name?0:e.name<t.name?-1:1).map((function(e){if(n)return e;return function(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,["cliName","cliCategory","cliDescription"])})).map(t=>{t=Object.assign({},t),Array.isArray(t.default)&&(t.default=1===t.default.length?t.default[0].value:t.default.filter(u).sort((e,t)=>Ce.compare(t.since,e.since))[0].value),Array.isArray(t.choices)&&(t.choices=t.choices.filter(e=>u(e)&&l(e)),"parser"===t.name&&function(e,t,r){const n=new Set(e.choices.map(e=>e.value));for(const i of t)if(i.parsers)for(const t of i.parsers)if(!n.has(t)){n.add(t);const a=r.find(e=>e.parsers&&e.parsers[t]);let o=i.name;a&&a.name&&(o+=" (plugin: ".concat(a.name,")")),e.choices.push({value:t,description:o})}}(t,a,e));const r=e.filter(e=>e.defaultOptions&&void 0!==e.defaultOptions[t.name]).reduce((e,r)=>(e[r.name]=r.defaultOptions[t.name],e),{});return Object.assign({},t,{pluginDefaults:r})});var s,c;return{languages:a,options:o};function u(e){return t||!("since"in e)||e.since&&Ce.gte(i,e.since)}function l(e){return r||!("deprecated"in e)||e.deprecated&&Ce.lt(i,e.deprecated)}}};const Fe=/[^\x20-\x7F]/;function Pe(e){return(t,r,n)=>{const i=n&&n.backwards;if(!1===r)return!1;const{length:a}=t;let o=r;for(;o>=0&&o<a;){const r=t.charAt(o);if(e instanceof RegExp){if(!e.test(r))return o}else if(!e.includes(r))return o;i?o--:o++}return(-1===o||o===a)&&o}}const we=Pe(/\s/),Ie=Pe(" \t"),Oe=Pe(",; \t"),Me=Pe(/[^\n\r]/);function Le(e,t){if(!1===t)return!1;if("/"===e.charAt(t)&&"*"===e.charAt(t+1))for(let r=t+2;r<e.length;++r)if("*"===e.charAt(r)&&"/"===e.charAt(r+1))return r+2;return t}function Re(e,t){return!1!==t&&("/"===e.charAt(t)&&"/"===e.charAt(t+1)?Me(e,t):t)}function Be(e,t,r){const n=r&&r.backwards;if(!1===t)return!1;const i=e.charAt(t);if(n){if("\r"===e.charAt(t-1)&&"\n"===i)return t-2;if("\n"===i||"\r"===i||"\u2028"===i||"\u2029"===i)return t-1}else{if("\r"===i&&"\n"===e.charAt(t+1))return t+2;if("\n"===i||"\r"===i||"\u2028"===i||"\u2029"===i)return t+1}return t}function je(e,t,r){const n=Ie(e,(r=r||{}).backwards?t-1:t,r);return n!==Be(e,n,r)}function Je(e,t){let r=null,n=t;for(;n!==r;)r=n,n=Oe(e,n),n=Le(e,n),n=Ie(e,n);return n=Re(e,n),n=Be(e,n),!1!==n&&je(e,n)}function Ke(e,t){let r=null,n=t;for(;n!==r;)r=n,n=Ie(e,n),n=Le(e,n),n=Re(e,n),n=Be(e,n);return n}function ze(e,t,r){return Ke(e,r(t))}function Ue(e,t,r){let n=0;for(let i=r=r||0;i<e.length;++i)"\t"===e[i]?n=n+t-n%t:n++;return n}function Ve(e,t){const r=e.slice(1,-1),n={quote:'"',regex:/"/g},i={quote:"'",regex:/'/g},a="'"===t?i:n,o=a===i?n:i;let s=a.quote;if(r.includes(a.quote)||r.includes(o.quote)){s=(r.match(a.regex)||[]).length>(r.match(o.regex)||[]).length?o.quote:a.quote}return s}function qe(e,t,r){const n='"'===t?"'":'"',i=e.replace(/\\([\S\s])|(["'])/g,(e,i,a)=>i===n?i:a===t?"\\"+a:a||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(i)?i:"\\"+i));return t+i+t}function We(e){return e&&(e.comments&&e.comments.length>0&&e.comments.some(e=>He(e)&&!e.unignore)||e.prettierIgnore)}function He(e){return"prettier-ignore"===e.value.trim()}function Ge(e,t){(e.comments||(e.comments=[])).push(t),t.printed=!1,"JSXText"===e.type&&(t.printed=!0)}var Ye={replaceEndOfLineWith:function(e,t){const r=[];for(const n of e.split("\n"))0!==r.length&&r.push(t),r.push(n);return r},getStringWidth:function(e){return e?Fe.test(e)?g(e):e.length:0},getMaxContinuousCount:function(e,t){const r=e.match(new RegExp("(".concat(y(t),")+"),"g"));return null===r?0:r.reduce((e,r)=>Math.max(e,r.length/t.length),0)},getMinNotPresentContinuousCount:function(e,t){const r=e.match(new RegExp("(".concat(y(t),")+"),"g"));if(null===r)return 0;const n=new Map;let i=0;for(const e of r){const r=e.length/t.length;n.set(r,!0),r>i&&(i=r)}for(let e=1;e<i;e++)if(!n.get(e))return e;return i+1},getParserName:function(e,t){const r=Ae.getSupportInfo({plugins:t.plugins}).languages.find(t=>t.name.toLowerCase()===e||t.aliases&&t.aliases.includes(e)||t.extensions&&t.extensions.some(t=>t===".".concat(e)));return r?r.parsers[0]:null},getPenultimate:e=>e[e.length-2],getLast:e=>e[e.length-1],getNextNonSpaceNonCommentCharacterIndexWithStartIndex:Ke,getNextNonSpaceNonCommentCharacterIndex:ze,getNextNonSpaceNonCommentCharacter:function(e,t,r){return e.charAt(ze(e,t,r))},skip:Pe,skipWhitespace:we,skipSpaces:Ie,skipToLineEnd:Oe,skipEverythingButNewLine:Me,skipInlineComment:Le,skipTrailingComment:Re,skipNewline:Be,isNextLineEmptyAfterIndex:Je,isNextLineEmpty:function(e,t,r){return Je(e,r(t))},isPreviousLineEmpty:function(e,t,r){let n=r(t)-1;return n=Ie(e,n,{backwards:!0}),n=Be(e,n,{backwards:!0}),n=Ie(e,n,{backwards:!0}),n!==Be(e,n,{backwards:!0})},hasNewline:je,hasNewlineInRange:function(e,t,r){for(let n=t;n<r;++n)if("\n"===e.charAt(n))return!0;return!1},hasSpaces:function(e,t,r){return Ie(e,(r=r||{}).backwards?t-1:t,r)!==t},getAlignmentSize:Ue,getIndentSize:function(e,t){const r=e.lastIndexOf("\n");return-1===r?0:Ue(e.slice(r+1).match(/^[\t ]*/)[0],t)},getPreferredQuote:Ve,printString:function(e,t,r){const n=e.slice(1,-1),i=!n.includes('"')&&!n.includes("'"),a="json"===t.parser?'"':t.__isInHtmlAttribute?"'":Ve(e,t.singleQuote?"'":'"');return r?i?a+n+a:e:qe(n,a,!("css"===t.parser||"less"===t.parser||"scss"===t.parser||t.embeddedInHtml))},printNumber:function(e){return e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(\d)/,"$1$2$3").replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1").replace(/^([+-])?\./,"$10.").replace(/(\.\d+?)0+(?=e|$)/,"$1").replace(/\.(?=e|$)/,"")},hasIgnoreComment:function(e){return We(e.getValue())},hasNodeIgnoreComment:We,isNodeIgnoreComment:He,makeString:qe,addLeadingComment:function(e,t){t.leading=!0,t.trailing=!1,Ge(e,t)},addDanglingComment:function(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),Ge(e,t)},addTrailingComment:function(e,t){t.leading=!1,t.trailing=!0,Ge(e,t)},isWithinParentArrayProperty:function(e,t){const r=e.getValue(),n=e.getParentNode();if(null==n)return!1;if(!Array.isArray(n[t]))return!1;const i=e.getName();return n[t][i]===r},isFrontMatterNode:function(e){return e&&"front-matter"===e.type},getShebang:function(e){if(!e.startsWith("#!"))return"";const t=e.indexOf("\n");return-1===t?e:e.slice(0,t)}};var Xe={guessEndOfLine:function(e){const t=e.indexOf("\r");return t>=0?"\n"===e.charAt(t+1)?"crlf":"cr":"lf"},convertEndOfLineToChars:function(e){switch(e){case"cr":return"\r";case"crlf":return"\r\n";default:return"\n"}},countEndOfLineChars:function(e,t){let r;if("\n"===t)r=/\n/g;else if("\r"===t)r=/\r/g;else{if("\r\n"!==t)throw new Error('Unexpected "eol" '.concat(JSON.stringify(t),"."));r=/\r\n/g}const n=e.match(r);return n?n.length:0},normalizeEndOfLine:function(e){return e.replace(/\r\n?/g,"\n")}};const{parseWithComments:Qe,strip:$e,extract:Ze,print:et}=u,{getShebang:tt}=Ye,{normalizeEndOfLine:rt}=Xe;function nt(e){const t=tt(e);t&&(e=e.slice(t.length+1));const r=Ze(e),{pragmas:n,comments:i}=Qe(r);return{shebang:t,text:e,pragmas:n,comments:i}}var it={hasPragma:function(e){const t=Object.keys(nt(e).pragmas);return t.includes("prettier")||t.includes("format")},insertPragma:function(e){const{shebang:t,text:r,pragmas:n,comments:i}=nt(e),a=$e(r),o=et({pragmas:Object.assign({format:""},n),comments:i.trimStart()});return(t?"".concat(t,"\n"):"")+rt(o)+(a.startsWith("\n")?"\n":"\n\n")+a}};function at(e,t){const{ignoreDecorators:r}=t||{};if(!r){const t=e.declaration&&e.declaration.decorators||e.decorators;if(t&&t.length>0)return at(t[0])}return e.range?e.range[0]:e.start}function ot(e){const t=e.range?e.range[1]:e.end;return e.typeAnnotation?Math.max(t,ot(e.typeAnnotation)):t}var st={locStart:at,locEnd:ot,composeLoc:function(e,t=e){const r=at(e);return[r,"number"==typeof t?r+t:ot(t)]}};const{getLast:ct,hasNewline:ut,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:lt,getNextNonSpaceNonCommentCharacter:dt,hasNewlineInRange:_t,isNodeIgnoreComment:pt,addLeadingComment:ft,addTrailingComment:gt,addDanglingComment:mt,getNextNonSpaceNonCommentCharacterIndex:yt}=Ye;function ht(e,t){const r=(e.body||e.properties).filter(e=>"EmptyStatement"!==e.type);0===r.length?mt(e,t):ft(r[0],t)}function vt(e,t){"BlockStatement"===e.type?ht(e,t):ft(e,t)}function bt(e,t,r,n,i,a){if(!r||"IfStatement"!==r.type||!n)return!1;return")"===dt(e,i,a.locEnd)?(gt(t,i),!0):t===r.consequent&&n===r.alternate?("BlockStatement"===t.type?gt(t,i):mt(r,i),!0):"BlockStatement"===n.type?(ht(n,i),!0):"IfStatement"===n.type?(vt(n.consequent,i),!0):r.consequent===n&&(ft(n,i),!0)}function xt(e,t,r,n,i,a){if(!r||"WhileStatement"!==r.type||!n)return!1;return")"===dt(e,i,a.locEnd)?(gt(t,i),!0):"BlockStatement"===n.type&&(ht(n,i),!0)}function Dt(e,t,r,n){return!(!e||"TryStatement"!==e.type&&"CatchClause"!==e.type||!r)&&("CatchClause"===e.type&&t?(gt(t,n),!0):"BlockStatement"===r.type?(ht(r,n),!0):"TryStatement"===r.type?(vt(r.finalizer,n),!0):"CatchClause"===r.type&&(vt(r.body,n),!0))}function St(e,t,r,n){if(e&&("ClassDeclaration"===e.type||"ClassExpression"===e.type||"DeclareClass"===e.type||"DeclareInterface"===e.type||"InterfaceDeclaration"===e.type||"TSInterfaceDeclaration"===e.type)){if(e.decorators&&e.decorators.length>0&&(!r||"Decorator"!==r.type))return gt(e.decorators[e.decorators.length-1],n),!0;if(e.body&&r===e.body)return ht(e.body,n),!0;if(r)for(const i of["implements","extends","mixins"])if(e[i]&&r===e[i][0])return!t||t!==e.id&&t!==e.typeParameters&&t!==e.superClass?mt(e,n,i):gt(t,n),!0}return!1}function Tt(e,t,r,n,i){return(t&&r&&("Property"===t.type||"TSDeclareMethod"===t.type||"TSAbstractMethodDefinition"===t.type)&&"Identifier"===r.type&&t.key===r&&":"!==dt(e,r,i.locEnd)||!(!r||!t||"Decorator"!==r.type||"ClassMethod"!==t.type&&"ClassProperty"!==t.type&&"TSAbstractClassProperty"!==t.type&&"TSAbstractMethodDefinition"!==t.type&&"TSDeclareMethod"!==t.type&&"MethodDefinition"!==t.type))&&(gt(r,n),!0)}function Et(e,t,r,n,i,a){if(t&&"FunctionTypeParam"===t.type&&r&&"FunctionTypeAnnotation"===r.type&&n&&"FunctionTypeParam"!==n.type)return gt(t,i),!0;if(t&&("Identifier"===t.type||"AssignmentPattern"===t.type)&&r&&Ft(r)&&")"===dt(e,i,a.locEnd))return gt(t,i),!0;if(r&&"FunctionDeclaration"===r.type&&n&&"BlockStatement"===n.type){const t=(()=>{if(0!==(r.params||r.parameters).length)return lt(e,a.locEnd(ct(r.params||r.parameters)));const t=lt(e,a.locEnd(r.id));return!1!==t&<(e,t+1)})();if(a.locStart(i)>t)return ht(n,i),!0}return!1}function Ct(e,t){return!(!e||"ImportSpecifier"!==e.type)&&(ft(e,t),!0)}function kt(e,t){return!(!e||"LabeledStatement"!==e.type)&&(ft(e,t),!0)}function Nt(e,t,r,n){return t&&t.body&&0===t.body.length?(n?mt(t,r):ft(t,r),!0):!(!e||"Program"!==e.type||0!==e.body.length||!e.directives||0!==e.directives.length)&&(n?mt(e,r):ft(e,r),!0)}function At(e){return"Block"===e.type||"CommentBlock"===e.type}function Ft(e){return"ArrowFunctionExpression"===e.type||"FunctionExpression"===e.type||"FunctionDeclaration"===e.type||"ObjectMethod"===e.type||"ClassMethod"===e.type||"TSDeclareFunction"===e.type||"TSCallSignatureDeclaration"===e.type||"TSConstructSignatureDeclaration"===e.type||"TSConstructSignatureDeclaration"===e.type||"TSMethodSignature"===e.type||"TSConstructorType"===e.type||"TSFunctionType"===e.type||"TSDeclareMethod"===e.type}function Pt(e){return At(e)&&"*"===e.value[0]&&/@type\b/.test(e.value)}var wt={handleOwnLineComment:function(e,t,r,n,i){const{precedingNode:a,enclosingNode:o,followingNode:s}=e;return Et(t,a,o,s,e,r)||function(e,t,r){if(e&&("MemberExpression"===e.type||"OptionalMemberExpression"===e.type)&&t&&"Identifier"===t.type)return ft(e,r),!0;return!1}(o,s,e)||bt(t,a,o,s,e,r)||xt(t,a,o,s,e,r)||Dt(o,a,s,e)||St(o,a,s,e)||Ct(o,e)||function(e,t,r){if(e&&("ForInStatement"===e.type||"ForOfStatement"===e.type))return ft(e,r),!0;return!1}(o,0,e)||function(e,t,r,n){if(t&&("UnionTypeAnnotation"===t.type||"TSUnionType"===t.type))return pt(n)&&(r.prettierIgnore=!0,n.unignore=!0),!!e&&(gt(e,n),!0);r&&("UnionTypeAnnotation"===r.type||"TSUnionType"===r.type)&&pt(n)&&(r.types[0].prettierIgnore=!0,n.unignore=!0);return!1}(a,o,s,e)||Nt(o,n,e,i)||function(e,t,r,n,i){if(r&&"ImportSpecifier"===r.type&&t&&"ImportDeclaration"===t.type&&ut(e,i.locEnd(n)))return gt(r,n),!0;return!1}(t,o,a,e,r)||function(e,t){if(e&&"AssignmentPattern"===e.type)return ft(e,t),!0;return!1}(o,e)||Tt(t,o,a,e,r)||kt(o,e)},handleEndOfLineComment:function(e,t,r,n,i){const{precedingNode:a,enclosingNode:o,followingNode:s}=e;return function(e,t){if(e&&Pt(t))return ft(e,t),!0;return!1}(s,e)||Et(t,a,o,s,e,r)||function(e,t,r,n,i,a){const o=t&&!_t(i,a.locEnd(t),a.locStart(n));if((!t||!o)&&e&&("ConditionalExpression"===e.type||"TSConditionalType"===e.type)&&r)return ft(r,n),!0;return!1}(o,a,s,e,t,r)||Ct(o,e)||bt(t,a,o,s,e,r)||xt(t,a,o,s,e,r)||Dt(o,a,s,e)||St(o,a,s,e)||kt(o,e)||function(e,t,r){if(t&&("CallExpression"===t.type||"OptionalCallExpression"===t.type)&&e&&t.callee===e&&t.arguments.length>0)return ft(t.arguments[0],r),!0;return!1}(a,o,e)||function(e,t){if(e&&("Property"===e.type||"ObjectProperty"===e.type))return ft(e,t),!0;return!1}(o,e)||Nt(o,n,e,i)||function(e,t,r){if(e&&"TypeAlias"===e.type)return ft(e,r),!0;return!1}(o,0,e)||function(e,t,r){if(e&&("VariableDeclarator"===e.type||"AssignmentExpression"===e.type)&&t&&("ObjectExpression"===t.type||"ArrayExpression"===t.type||"TemplateLiteral"===t.type||"TaggedTemplateExpression"===t.type||At(r)))return ft(t,r),!0;return!1}(o,s,e)},handleRemainingComment:function(e,t,r,n,i){const{precedingNode:a,enclosingNode:o,followingNode:s}=e;return!!(bt(t,a,o,s,e,r)||xt(t,a,o,s,e,r)||function(e,t,r){if(e&&("ObjectProperty"===e.type||"Property"===e.type)&&e.shorthand&&e.key===t&&"AssignmentPattern"===e.value.type)return gt(e.value.left,r),!0;return!1}(o,a,e)||function(e,t,r,n){if(")"!==dt(e,r,n.locEnd))return!1;if(t&&(Ft(t)&&0===(t.params||t.parameters).length||("CallExpression"===t.type||"OptionalCallExpression"===t.type||"NewExpression"===t.type)&&0===t.arguments.length))return mt(t,r),!0;if(t&&"MethodDefinition"===t.type&&0===t.value.params.length)return mt(t.value,r),!0;return!1}(t,o,e,r)||Tt(t,o,a,e,r)||Nt(o,n,e,i)||function(e,t,r,n){if(!t||"ArrowFunctionExpression"!==t.type)return!1;const i=yt(e,r,n.locEnd);if(!1!==i&&"=>"===e.slice(i,i+2))return mt(t,r),!0;return!1}(t,o,e,r)||function(e,t,r,n,i){if("("!==dt(e,n,i.locEnd))return!1;if(r&&t&&("FunctionDeclaration"===t.type||"FunctionExpression"===t.type||"ClassMethod"===t.type||"MethodDefinition"===t.type||"ObjectMethod"===t.type))return gt(r,n),!0;return!1}(t,o,a,e,r)||function(e,t,r,n,i){if(!t||"TSMappedType"!==t.type)return!1;if(n&&"TSTypeParameter"===n.type&&n.name)return ft(n.name,i),!0;if(r&&"TSTypeParameter"===r.type&&r.constraint)return gt(r.constraint,i),!0;return!1}(0,o,a,s,e)||function(e,t){if(e&&("ContinueStatement"===e.type||"BreakStatement"===e.type)&&!e.label)return gt(e,t),!0;return!1}(o,e)||function(e,t,r,n,i){if(!r&&t&&("TSMethodSignature"===t.type||"TSDeclareFunction"===t.type||"TSAbstractMethodDefinition"===t.type)&&";"===dt(e,n,i.locEnd))return gt(t,n),!0;return!1}(t,o,s,e,r))},hasLeadingComment:function(e,t=(()=>!0)){return e.leadingComments?e.leadingComments.some(t):!!e.comments&&e.comments.some(e=>e.leading&&t(e))},isBlockComment:At,isTypeCastComment:Pt,getGapRegex:function(e){if(e&&"BinaryExpression"!==e.type&&"LogicalExpression"!==e.type)return/^[\s&(|]*$/},getCommentChildNodes:function(e,t){if(("typescript"===t.parser||"flow"===t.parser)&&"MethodDefinition"===e.type&&e.value&&"FunctionExpression"===e.value.type&&0===e.value.params.length&&!e.value.returnType&&(!e.value.typeParameters||0===e.value.typeParameters.length)&&e.value.body)return[...e.decorators||[],e.key,e.value.body]}};const{getLast:It,getNextNonSpaceNonCommentCharacter:Ot,getShebang:Mt}=Ye,{composeLoc:Lt,locStart:Rt,locEnd:Bt}=st,{isTypeCastComment:jt}=wt;function Jt(e,t){let r;if(Array.isArray(e))r=e.entries();else{if(!e||"object"!=typeof e||"string"!=typeof e.type)return e;r=Object.entries(e)}for(const[n,i]of r)e[n]=Jt(i,t);return t(e)||e}function Kt(e){return"LogicalExpression"===e.type&&"LogicalExpression"===e.right.type&&e.operator===e.right.operator}var zt=function(e,t){if("typescript"!==t.parser&&"flow"!==t.parser||function(e,t){const r=Mt(t.originalText);r&&e.comments.unshift({type:"Line",value:r.slice(2),range:[0,r.length]})}(e,t),"typescript"!==t.parser&&"flow"!==t.parser){const t=new Set;e=Jt(e,e=>{e.leadingComments&&e.leadingComments.some(jt)&&t.add(Rt(e))}),e=Jt(e,e=>{if("ParenthesizedExpression"===e.type){const r=Rt(e);if(!t.has(r)){const{expression:t}=e;return t.extra||(t.extra={}),t.extra.parenthesized=!0,t.extra.parenStart=r,t}}})}return e=Jt(e,e=>{switch(e.type){case"LogicalExpression":if(Kt(e))return function e(t){if(!Kt(t))return t;return e({type:"LogicalExpression",operator:t.operator,left:e({type:"LogicalExpression",operator:t.operator,left:t.left,right:t.right.left,range:Lt(t.left,t.right.left)}),right:t.right.right,range:Lt(t)})}(e);break;case"VariableDeclaration":{const r=It(e.declarations);r&&r.init&&function(e,r){if(";"===t.originalText[Bt(r)])return;e.range=Lt(e,r)}(e,r);break}case"TSParenthesizedType":return e.typeAnnotation.range=Lt(e),e.typeAnnotation;case"TSUnionType":case"TSIntersectionType":if(1===e.types.length){const[t]=e.types;return t.range=Lt(e),t}break;case"TSTypeParameter":"string"==typeof e.name&&(e.name={type:"Identifier",name:e.name,range:Lt(e,e.name.length)});break;case"SequenceExpression":{const t=It(e.expressions);Bt(e)>Bt(t)&&(e.range=Lt(e,t));break}case"ClassProperty":e.key&&"TSPrivateIdentifier"===e.key.type&&"?"===Ot(t.originalText,e.key,Bt)&&(e.optional=!0)}})},Ut=1e3,Vt=6e4,qt=60*Vt,Wt=24*qt,Ht=7*Wt,Gt=365.25*Wt,Yt=function(e,t){t=t||{};var r=typeof e;if("string"===r&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var r=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return r*Gt;case"weeks":case"week":case"w":return r*Ht;case"days":case"day":case"d":return r*Wt;case"hours":case"hour":case"hrs":case"hr":case"h":return r*qt;case"minutes":case"minute":case"mins":case"min":case"m":return r*Vt;case"seconds":case"second":case"secs":case"sec":case"s":return r*Ut;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}(e);if("number"===r&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=Wt)return Xt(e,t,Wt,"day");if(t>=qt)return Xt(e,t,qt,"hour");if(t>=Vt)return Xt(e,t,Vt,"minute");if(t>=Ut)return Xt(e,t,Ut,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=Wt)return Math.round(e/Wt)+"d";if(t>=qt)return Math.round(e/qt)+"h";if(t>=Vt)return Math.round(e/Vt)+"m";if(t>=Ut)return Math.round(e/Ut)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Xt(e,t,r,n){var i=t>=1.5*r;return Math.round(e/r)+" "+n+(i?"s":"")}var Qt=function(e){function t(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return r.colors[Math.abs(t)%r.colors.length]}function r(e){let a;function o(...e){if(!o.enabled)return;const t=o,n=Number(new Date),i=n-(a||n);t.diff=i,t.prev=a,t.curr=n,a=n,e[0]=r.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(n,i)=>{if("%%"===n)return n;s++;const a=r.formatters[i];if("function"==typeof a){const r=e[s];n=a.call(t,r),e.splice(s,1),s--}return n}),r.formatArgs.call(t,e);(t.log||r.log).apply(t,e)}return o.namespace=e,o.enabled=r.enabled(e),o.useColors=r.useColors(),o.color=t(e),o.destroy=n,o.extend=i,"function"==typeof r.init&&r.init(o),r.instances.push(o),o}function n(){const e=r.instances.indexOf(this);return-1!==e&&(r.instances.splice(e,1),!0)}function i(e,t){const n=r(this.namespace+(void 0===t?":":t)+e);return n.log=this.log,n}function a(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return r.debug=r,r.default=r,r.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},r.disable=function(){const e=[...r.names.map(a),...r.skips.map(a).map(e=>"-"+e)].join(",");return r.enable(""),e},r.enable=function(e){let t;r.save(e),r.names=[],r.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),i=n.length;for(t=0;t<i;t++)n[t]&&("-"===(e=n[t].replace(/\*/g,".*?"))[0]?r.skips.push(new RegExp("^"+e.substr(1)+"$")):r.names.push(new RegExp("^"+e+"$")));for(t=0;t<r.instances.length;t++){const e=r.instances[t];e.enabled=r.enabled(e.namespace)}},r.enabled=function(e){if("*"===e[e.length-1])return!0;let t,n;for(t=0,n=r.skips.length;t<n;t++)if(r.skips[t].test(e))return!1;for(t=0,n=r.names.length;t<n;t++)if(r.names[t].test(e))return!0;return!1},r.humanize=Yt,Object.keys(e).forEach(t=>{r[t]=e[t]}),r.instances=[],r.names=[],r.skips=[],r.formatters={},r.selectColor=t,r.enable(r.load()),r},$t=r((function(e,t){t.log=function(...e){return"object"==typeof console&&console.log&&console.log(...e)},t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(n++,"%c"===e&&(i=n))}),t.splice(i,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&void 0!==V&&"env"in V&&(e=V.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.exports=Qt(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}})),Zt={isatty:()=>!1},er=Object.freeze({__proto__:null,default:Zt}),tr=Object.freeze({__proto__:null,default:{}}),rr=(e,t=V.argv)=>{const r=e.startsWith("-")?"":1===e.length?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return-1!==n&&(-1===i||n<i)},nr=n(er);const{env:ir}=V;let ar;function or(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function sr(e,t){if(0===ar)return 0;if(rr("color=16m")||rr("color=full")||rr("color=truecolor"))return 3;if(rr("color=256"))return 2;if(e&&!t&&void 0===ar)return 0;const r=ar||0;if("dumb"===ir.TERM)return r;if("win32"===V.platform){const e=c.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in ir)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(e=>e in ir)||"codeship"===ir.CI_NAME?1:r;if("TEAMCITY_VERSION"in ir)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ir.TEAMCITY_VERSION)?1:0;if("GITHUB_ACTIONS"in ir)return 1;if("truecolor"===ir.COLORTERM)return 3;if("TERM_PROGRAM"in ir){const e=parseInt((ir.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ir.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(ir.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ir.TERM)||"COLORTERM"in ir?1:r}rr("no-color")||rr("no-colors")||rr("color=false")||rr("color=never")?ar=0:(rr("color")||rr("colors")||rr("color=true")||rr("color=always"))&&(ar=1),"FORCE_COLOR"in ir&&(ar="true"===ir.FORCE_COLOR?1:"false"===ir.FORCE_COLOR?0:0===ir.FORCE_COLOR.length?1:Math.min(parseInt(ir.FORCE_COLOR,10),3));var cr={supportsColor:function(e){return or(sr(e,e&&e.isTTY))},stdout:or(sr(!0,nr.isatty(1))),stderr:or(sr(!0,nr.isatty(2)))},ur=n(tr),lr=(r((function(e,t){t.init=function(e){e.inspectOpts={};const r=Object.keys(t.inspectOpts);for(let n=0;n<r.length;n++)e.inspectOpts[r[n]]=t.inspectOpts[r[n]]},t.log=function(...e){return V.stderr.write(ur.format(...e)+"\n")},t.formatArgs=function(r){const{namespace:n,useColors:i}=this;if(i){const t=this.color,i="[3"+(t<8?t:"8;5;"+t),a=" ".concat(i,";1m").concat(n," [0m");r[0]=a+r[0].split("\n").join("\n"+a),r.push(i+"m+"+e.exports.humanize(this.diff)+"[0m")}else r[0]=function(){if(t.inspectOpts.hideDate)return"";return(new Date).toISOString()+" "}()+n+" "+r[0]},t.save=function(e){e?V.env.DEBUG=e:delete V.env.DEBUG},t.load=function(){return V.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):nr.isatty(V.stderr.fd)},t.colors=[6,2,3,4,5,1];try{const e=cr;e&&(e.stderr||e).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(V.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{const r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>t.toUpperCase());let n=V.env[t];return n=!!/^(yes|on|true|enabled)$/i.test(n)||!/^(no|off|false|disabled)$/i.test(n)&&("null"===n?null:Number(n)),e[r]=n,e},{}),e.exports=Qt(t);const{formatters:r}=e.exports;r.o=function(e){return this.inspectOpts.colors=this.useColors,ur.inspect(e,this.inspectOpts).replace(/\s*\n\s*/g," ")},r.O=function(e){return this.inspectOpts.colors=this.useColors,ur.inspect(e,this.inspectOpts)}})),r((function(e){void 0===V||V.type,e.exports=$t}))),dr=Object.freeze({__proto__:null,default:{}});const _r=/[/\\]/;function pr(e){return e.split(_r).pop()}var fr=n(Object.freeze({__proto__:null,extname:function(e){const t=pr(e),r=t.lastIndexOf(".");return-1===r?"":t.slice(r)},basename:pr,isAbsolute:function(){return!0}})),gr=n(dr),mr="win32"===V.platform,yr=V.env.NODE_DEBUG&&/fs/.test(V.env.NODE_DEBUG);function hr(e){return"function"==typeof e?e:function(){var e;if(yr){var t=new Error;e=function(e){e&&(t.message=e.message,r(e=t))}}else e=r;return e;function r(e){if(e){if(V.throwDeprecation)throw e;if(!V.noDeprecation){var t="fs: missing callback "+(e.stack||e.message);V.traceDeprecation?console.trace(t):console.error(t)}}}}()}fr.normalize;if(mr)var vr=/(.*?)(?:[\/\\]+|$)/g;else vr=/(.*?)(?:[\/]+|$)/g;if(mr)var br=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;else br=/^[\/]*/;var xr=function(e,t){if(e=fr.resolve(e),t&&Object.prototype.hasOwnProperty.call(t,e))return t[e];var r,n,i,a,o=e,s={},c={};function u(){var t=br.exec(e);r=t[0].length,n=t[0],i=t[0],a="",mr&&!c[i]&&(gr.lstatSync(i),c[i]=!0)}for(u();r<e.length;){vr.lastIndex=r;var l=vr.exec(e);if(a=n,n+=l[0],i=a+l[1],r=vr.lastIndex,!(c[i]||t&&t[i]===i)){var d;if(t&&Object.prototype.hasOwnProperty.call(t,i))d=t[i];else{var _=gr.lstatSync(i);if(!_.isSymbolicLink()){c[i]=!0,t&&(t[i]=i);continue}var p=null;if(!mr){var f=_.dev.toString(32)+":"+_.ino.toString(32);s.hasOwnProperty(f)&&(p=s[f])}null===p&&(gr.statSync(i),p=gr.readlinkSync(i)),d=fr.resolve(a,p),t&&(t[i]=d),mr||(s[f]=p)}e=fr.resolve(d,e.slice(r)),u()}}return t&&(t[o]=e),e},Dr=function(e,t,r){if("function"!=typeof r&&(r=hr(t),t=null),e=fr.resolve(e),t&&Object.prototype.hasOwnProperty.call(t,e))return P(r.bind(null,null,t[e]));var n,i,a,o,s=e,c={},u={};function l(){var t=br.exec(e);n=t[0].length,i=t[0],a=t[0],o="",mr&&!u[a]?gr.lstat(a,(function(e){if(e)return r(e);u[a]=!0,d()})):P(d)}function d(){if(n>=e.length)return t&&(t[s]=e),r(null,e);vr.lastIndex=n;var c=vr.exec(e);return o=i,i+=c[0],a=o+c[1],n=vr.lastIndex,u[a]||t&&t[a]===a?P(d):t&&Object.prototype.hasOwnProperty.call(t,a)?f(t[a]):gr.lstat(a,_)}function _(e,n){if(e)return r(e);if(!n.isSymbolicLink())return u[a]=!0,t&&(t[a]=a),P(d);if(!mr){var i=n.dev.toString(32)+":"+n.ino.toString(32);if(c.hasOwnProperty(i))return p(null,c[i],a)}gr.stat(a,(function(e){if(e)return r(e);gr.readlink(a,(function(e,t){mr||(c[i]=t),p(e,t)}))}))}function p(e,n,i){if(e)return r(e);var a=fr.resolve(o,n);t&&(t[i]=a),f(a)}function f(t){e=fr.resolve(t,e.slice(n)),l()}l()},Sr=Ar;Ar.realpath=Ar,Ar.sync=Fr,Ar.realpathSync=Fr,Ar.monkeypatch=function(){gr.realpath=Ar,gr.realpathSync=Fr},Ar.unmonkeypatch=function(){gr.realpath=Tr,gr.realpathSync=Er};var Tr=gr.realpath,Er=gr.realpathSync,Cr=V.version,kr=/^v[0-5]\./.test(Cr);function Nr(e){return e&&"realpath"===e.syscall&&("ELOOP"===e.code||"ENOMEM"===e.code||"ENAMETOOLONG"===e.code)}function Ar(e,t,r){if(kr)return Tr(e,t,r);"function"==typeof t&&(r=t,t=null),Tr(e,t,(function(n,i){Nr(n)?Dr(e,t,r):r(n,i)}))}function Fr(e,t){if(kr)return Er(e,t);try{return Er(e,t)}catch(r){if(Nr(r))return xr(e,t);throw r}}var Pr=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},wr=Ir;function Ir(e,t,r){e instanceof RegExp&&(e=Or(e,r)),t instanceof RegExp&&(t=Or(t,r));var n=Mr(e,t,r);return n&&{start:n[0],end:n[1],pre:r.slice(0,n[0]),body:r.slice(n[0]+e.length,n[1]),post:r.slice(n[1]+t.length)}}function Or(e,t){var r=t.match(e);return r?r[0]:null}function Mr(e,t,r){var n,i,a,o,s,c=r.indexOf(e),u=r.indexOf(t,c+1),l=c;if(c>=0&&u>0){for(n=[],a=r.length;l>=0&&!s;)l==c?(n.push(l),c=r.indexOf(e,l+1)):1==n.length?s=[n.pop(),u]:((i=n.pop())<a&&(a=i,o=u),u=r.indexOf(t,l+1)),l=c<u&&c>=0?c:u;n.length&&(s=[a,o])}return s}Ir.range=Mr;var Lr=function(e){if(!e)return[];"{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2));return function e(t,r){var n=[],i=wr("{","}",t);if(!i||/\$$/.test(i.pre))return[t];var a,o=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),s=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),c=o||s,u=i.body.indexOf(",")>=0;if(!c&&!u)return i.post.match(/,.*\}/)?(t=i.pre+"{"+i.body+jr+i.post,e(t)):[t];if(c)a=i.body.split(/\.\./);else{if(1===(a=function e(t){if(!t)return[""];var r=[],n=wr("{","}",t);if(!n)return t.split(",");var i=n.pre,a=n.body,o=n.post,s=i.split(",");s[s.length-1]+="{"+a+"}";var c=e(o);o.length&&(s[s.length-1]+=c.shift(),s.push.apply(s,c));return r.push.apply(r,s),r}(i.body)).length)if(1===(a=e(a[0],!1).map(Vr)).length)return(_=i.post.length?e(i.post,!1):[""]).map((function(e){return i.pre+a[0]+e}))}var l,d=i.pre,_=i.post.length?e(i.post,!1):[""];if(c){var p=zr(a[0]),f=zr(a[1]),g=Math.max(a[0].length,a[1].length),m=3==a.length?Math.abs(zr(a[2])):1,y=Wr;f<p&&(m*=-1,y=Hr);var h=a.some(qr);l=[];for(var v=p;y(v,f);v+=m){var b;if(s)"\\"===(b=String.fromCharCode(v))&&(b="");else if(b=String(v),h){var x=g-b.length;if(x>0){var D=new Array(x+1).join("0");b=v<0?"-"+D+b.slice(1):D+b}}l.push(b)}}else l=function(e,t){for(var r=[],n=0;n<e.length;n++){var i=t(e[n],n);Pr(i)?r.push.apply(r,i):r.push(i)}return r}(a,(function(t){return e(t,!1)}));for(var S=0;S<l.length;S++)for(var T=0;T<_.length;T++){var E=d+l[S]+_[T];(!r||c||E)&&n.push(E)}return n}(function(e){return e.split("\\\\").join(Rr).split("\\{").join(Br).split("\\}").join(jr).split("\\,").join(Jr).split("\\.").join(Kr)}(e),!0).map(Ur)},Rr="\0SLASH"+Math.random()+"\0",Br="\0OPEN"+Math.random()+"\0",jr="\0CLOSE"+Math.random()+"\0",Jr="\0COMMA"+Math.random()+"\0",Kr="\0PERIOD"+Math.random()+"\0";function zr(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function Ur(e){return e.split(Rr).join("\\").split(Br).join("{").split(jr).join("}").split(Jr).join(",").split(Kr).join(".")}function Vr(e){return"{"+e+"}"}function qr(e){return/^-?0\d/.test(e)}function Wr(e,t){return e<=t}function Hr(e,t){return e>=t}var Gr=tn;tn.Minimatch=rn;var Yr={sep:"/"};try{Yr=fr}catch(e){}var Xr=tn.GLOBSTAR=rn.GLOBSTAR={},Qr={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},$r=function(e){return e.split("").reduce((function(e,t){return e[t]=!0,e}),{})}("().*{}+?[]^$\\!");var Zr=/\/+/;function en(e,t){e=e||{},t=t||{};var r={};return Object.keys(t).forEach((function(e){r[e]=t[e]})),Object.keys(e).forEach((function(t){r[t]=e[t]})),r}function tn(e,t,r){if("string"!=typeof t)throw new TypeError("glob pattern string required");return r||(r={}),!(!r.nocomment&&"#"===t.charAt(0))&&(""===t.trim()?""===e:new rn(t,r).match(e))}function rn(e,t){if(!(this instanceof rn))return new rn(e,t);if("string"!=typeof e)throw new TypeError("glob pattern string required");t||(t={}),e=e.trim(),"/"!==Yr.sep&&(e=e.split(Yr.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function nn(e,t){if(t||(t=this instanceof rn?this.options:{}),void 0===(e=void 0===e?this.pattern:e))throw new TypeError("undefined pattern");return t.nobrace||!e.match(/\{.*\}/)?[e]:Lr(e)}tn.filter=function(e,t){return t=t||{},function(r,n,i){return tn(r,e,t)}},tn.defaults=function(e){if(!e||!Object.keys(e).length)return tn;var t=tn,r=function(r,n,i){return t.minimatch(r,n,en(e,i))};return r.Minimatch=function(r,n){return new t.Minimatch(r,en(e,n))},r},rn.defaults=function(e){return e&&Object.keys(e).length?tn.defaults(e).Minimatch:rn},rn.prototype.debug=function(){},rn.prototype.make=function(){if(this._made)return;var e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0))return void(this.comment=!0);if(!e)return void(this.empty=!0);this.parseNegate();var r=this.globSet=this.braceExpand();t.debug&&(this.debug=console.error);this.debug(this.pattern,r),r=this.globParts=r.map((function(e){return e.split(Zr)})),this.debug(this.pattern,r),r=r.map((function(e,t,r){return e.map(this.parse,this)}),this),this.debug(this.pattern,r),r=r.filter((function(e){return-1===e.indexOf(!1)})),this.debug(this.pattern,r),this.set=r},rn.prototype.parseNegate=function(){var e=this.pattern,t=!1,r=this.options,n=0;if(r.nonegate)return;for(var i=0,a=e.length;i<a&&"!"===e.charAt(i);i++)t=!t,n++;n&&(this.pattern=e.substr(n));this.negate=t},tn.braceExpand=function(e,t){return nn(e,t)},rn.prototype.braceExpand=nn,rn.prototype.parse=function(e,t){if(e.length>65536)throw new TypeError("pattern is too long");var r=this.options;if(!r.noglobstar&&"**"===e)return Xr;if(""===e)return"";var n,i="",a=!!r.nocase,o=!1,s=[],c=[],u=!1,l=-1,d=-1,_="."===e.charAt(0)?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",p=this;function f(){if(n){switch(n){case"*":i+="[^/]*?",a=!0;break;case"?":i+="[^/]",a=!0;break;default:i+="\\"+n}p.debug("clearStateChar %j %j",n,i),n=!1}}for(var g,m=0,y=e.length;m<y&&(g=e.charAt(m));m++)if(this.debug("%s\t%s %s %j",e,m,i,g),o&&$r[g])i+="\\"+g,o=!1;else switch(g){case"/":return!1;case"\\":f(),o=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s\t%s %s %j <-- stateChar",e,m,i,g),u){this.debug(" in class"),"!"===g&&m===d+1&&(g="^"),i+=g;continue}p.debug("call clearStateChar %j",n),f(),n=g,r.noext&&f();continue;case"(":if(u){i+="(";continue}if(!n){i+="\\(";continue}s.push({type:n,start:m-1,reStart:i.length,open:Qr[n].open,close:Qr[n].close}),i+="!"===n?"(?:(?!(?:":"(?:",this.debug("plType %j %j",n,i),n=!1;continue;case")":if(u||!s.length){i+="\\)";continue}f(),a=!0;var h=s.pop();i+=h.close,"!"===h.type&&c.push(h),h.reEnd=i.length;continue;case"|":if(u||!s.length||o){i+="\\|",o=!1;continue}f(),i+="|";continue;case"[":if(f(),u){i+="\\"+g;continue}u=!0,d=m,l=i.length,i+=g;continue;case"]":if(m===d+1||!u){i+="\\"+g,o=!1;continue}if(u){var v=e.substring(d+1,m);try{RegExp("["+v+"]")}catch(e){var b=this.parse(v,an);i=i.substr(0,l)+"\\["+b[0]+"\\]",a=a||b[1],u=!1;continue}}a=!0,u=!1,i+=g;continue;default:f(),o?o=!1:!$r[g]||"^"===g&&u||(i+="\\"),i+=g}u&&(v=e.substr(d+1),b=this.parse(v,an),i=i.substr(0,l)+"\\["+b[0],a=a||b[1]);for(h=s.pop();h;h=s.pop()){var x=i.slice(h.reStart+h.open.length);this.debug("setting tail",i,h),x=x.replace(/((?:\\{2}){0,64})(\\?)\|/g,(function(e,t,r){return r||(r="\\"),t+t+r+"|"})),this.debug("tail=%j\n %s",x,x,h,i);var D="*"===h.type?"[^/]*?":"?"===h.type?"[^/]":"\\"+h.type;a=!0,i=i.slice(0,h.reStart)+D+"\\("+x}f(),o&&(i+="\\\\");var S=!1;switch(i.charAt(0)){case".":case"[":case"(":S=!0}for(var T=c.length-1;T>-1;T--){var E=c[T],C=i.slice(0,E.reStart),k=i.slice(E.reStart,E.reEnd-8),N=i.slice(E.reEnd-8,E.reEnd),A=i.slice(E.reEnd);N+=A;var F=C.split("(").length-1,P=A;for(m=0;m<F;m++)P=P.replace(/\)[+*?]?/,"");var w="";""===(A=P)&&t!==an&&(w="$"),i=C+k+A+w+N}""!==i&&a&&(i="(?=.)"+i);S&&(i=_+i);if(t===an)return[i,a];if(!a)return function(e){return e.replace(/\\(.)/g,"$1")}(e);var I=r.nocase?"i":"";try{var O=new RegExp("^"+i+"$",I)}catch(e){return new RegExp("$.")}return O._glob=e,O._src=i,O};var an={};tn.makeRe=function(e,t){return new rn(e,t||{}).makeRe()},rn.prototype.makeRe=function(){if(this.regexp||!1===this.regexp)return this.regexp;var e=this.set;if(!e.length)return this.regexp=!1,this.regexp;var t=this.options,r=t.noglobstar?"[^/]*?":t.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",n=t.nocase?"i":"",i=e.map((function(e){return e.map((function(e){return e===Xr?r:"string"==typeof e?function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}(e):e._src})).join("\\/")})).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,n)}catch(e){this.regexp=!1}return this.regexp},tn.match=function(e,t,r){var n=new rn(t,r=r||{});return e=e.filter((function(e){return n.match(e)})),n.options.nonull&&!e.length&&e.push(t),e},rn.prototype.match=function(e,t){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return""===e;if("/"===e&&t)return!0;var r=this.options;"/"!==Yr.sep&&(e=e.split(Yr.sep).join("/"));e=e.split(Zr),this.debug(this.pattern,"split",e);var n,i,a=this.set;for(this.debug(this.pattern,"set",a),i=e.length-1;i>=0&&!(n=e[i]);i--);for(i=0;i<a.length;i++){var o=a[i],s=e;if(r.matchBase&&1===o.length&&(s=[n]),this.matchOne(s,o,t))return!!r.flipNegate||!this.negate}return!r.flipNegate&&this.negate},rn.prototype.matchOne=function(e,t,r){var n=this.options;this.debug("matchOne",{this:this,file:e,pattern:t}),this.debug("matchOne",e.length,t.length);for(var i=0,a=0,o=e.length,s=t.length;i<o&&a<s;i++,a++){this.debug("matchOne loop");var c,u=t[a],l=e[i];if(this.debug(t,u,l),!1===u)return!1;if(u===Xr){this.debug("GLOBSTAR",[t,u,l]);var d=i,_=a+1;if(_===s){for(this.debug("** at the end");i<o;i++)if("."===e[i]||".."===e[i]||!n.dot&&"."===e[i].charAt(0))return!1;return!0}for(;d<o;){var p=e[d];if(this.debug("\nglobstar while",e,d,t,_,p),this.matchOne(e.slice(d),t.slice(_),r))return this.debug("globstar found match!",d,o,p),!0;if("."===p||".."===p||!n.dot&&"."===p.charAt(0)){this.debug("dot detected!",e,d,t,_);break}this.debug("globstar swallow a segment, and continue"),d++}return!(!r||(this.debug("\n>>> no match, partial?",e,d,t,_),d!==o))}if("string"==typeof u?(c=n.nocase?l.toLowerCase()===u.toLowerCase():l===u,this.debug("string match",u,l,c)):(c=l.match(u),this.debug("pattern match",u,l,c)),!c)return!1}if(i===o&&a===s)return!0;if(i===o)return r;if(a===s)return i===o-1&&""===e[i];throw new Error("wtf?")};var on=r((function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}})),sn=r((function(e){try{var t=ur;if("function"!=typeof t.inherits)throw"";e.exports=t.inherits}catch(t){e.exports=on}}));var cn=Object.freeze({__proto__:null,EventEmitter:class{}});function un(){}un.ok=function(){},un.strictEqual=function(){};var ln=Object.freeze({__proto__:null,default:un});function dn(e){return"/"===e.charAt(0)}function _n(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/.exec(e),r=t[1]||"",n=Boolean(r&&":"!==r.charAt(1));return Boolean(t[2]||n)}var pn="win32"===V.platform?_n:dn,fn=dn,gn=_n;pn.posix=fn,pn.win32=gn;var mn=Nn,yn=kn,hn=function(e,t,r){r||(r={});if(r.matchBase&&-1===t.indexOf("/")){if(r.noglobstar)throw new Error("base matching requires globstar");t="**/"+t}e.silent=!!r.silent,e.pattern=t,e.strict=!1!==r.strict,e.realpath=!!r.realpath,e.realpathCache=r.realpathCache||Object.create(null),e.follow=!!r.follow,e.dot=!!r.dot,e.mark=!!r.mark,e.nodir=!!r.nodir,e.nodir&&(e.mark=!0);e.sync=!!r.sync,e.nounique=!!r.nounique,e.nonull=!!r.nonull,e.nosort=!!r.nosort,e.nocase=!!r.nocase,e.stat=!!r.stat,e.noprocess=!!r.noprocess,e.absolute=!!r.absolute,e.maxLength=r.maxLength||1/0,e.cache=r.cache||Object.create(null),e.statCache=r.statCache||Object.create(null),e.symlinks=r.symlinks||Object.create(null),function(e,t){e.ignore=t.ignore||[],Array.isArray(e.ignore)||(e.ignore=[e.ignore]);e.ignore.length&&(e.ignore=e.ignore.map(An))}(e,r),e.changedCwd=!1;var n=V.cwd();En(r,"cwd")?(e.cwd=fr.resolve(r.cwd),e.changedCwd=e.cwd!==n):e.cwd=n;e.root=r.root||fr.resolve(e.cwd,"/"),e.root=fr.resolve(e.root),"win32"===V.platform&&(e.root=e.root.replace(/\\/g,"/"));e.cwdAbs=pn(e.cwd)?e.cwd:Fn(e,e.cwd),"win32"===V.platform&&(e.cwdAbs=e.cwdAbs.replace(/\\/g,"/"));e.nomount=!!r.nomount,r.nonegate=!0,r.nocomment=!0,e.minimatch=new Cn(t,r),e.options=e.minimatch.options},vn=En,bn=Fn,xn=function(e){for(var t=e.nounique,r=t?[]:Object.create(null),n=0,i=e.matches.length;n<i;n++){var a=e.matches[n];if(a&&0!==Object.keys(a).length){var o=Object.keys(a);t?r.push.apply(r,o):o.forEach((function(e){r[e]=!0}))}else if(e.nonull){var s=e.minimatch.globSet[n];t?r.push(s):r[s]=!0}}t||(r=Object.keys(r));e.nosort||(r=r.sort(e.nocase?kn:Nn));if(e.mark){for(n=0;n<r.length;n++)r[n]=e._mark(r[n]);e.nodir&&(r=r.filter((function(t){var r=!/\/$/.test(t),n=e.cache[t]||e.cache[Fn(e,t)];return r&&n&&(r="DIR"!==n&&!Array.isArray(n)),r})))}e.ignore.length&&(r=r.filter((function(t){return!Pn(e,t)})));e.found=r},Dn=function(e,t){var r=Fn(e,t),n=e.cache[r],i=t;if(n){var a="DIR"===n||Array.isArray(n),o="/"===t.slice(-1);if(a&&!o?i+="/":!a&&o&&(i=i.slice(0,-1)),i!==t){var s=Fn(e,i);e.statCache[s]=e.statCache[r],e.cache[s]=e.cache[r]}}return i},Sn=Pn,Tn=function(e,t){return!!e.ignore.length&&e.ignore.some((function(e){return!(!e.gmatcher||!e.gmatcher.match(t))}))};function En(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var Cn=Gr.Minimatch;function kn(e,t){return e.toLowerCase().localeCompare(t.toLowerCase())}function Nn(e,t){return e.localeCompare(t)}function An(e){var t=null;if("/**"===e.slice(-3)){var r=e.replace(/(\/\*\*)+$/,"");t=new Cn(r,{dot:!0})}return{matcher:new Cn(e,{dot:!0}),gmatcher:t}}function Fn(e,t){var r=t;return r="/"===t.charAt(0)?fr.join(e.root,t):pn(t)||""===t?t:e.changedCwd?fr.resolve(e.cwd,t):fr.resolve(t),"win32"===V.platform&&(r=r.replace(/\\/g,"/")),r}function Pn(e,t){return!!e.ignore.length&&e.ignore.some((function(e){return e.matcher.match(t)||!(!e.gmatcher||!e.gmatcher.match(t))}))}var wn={alphasort:mn,alphasorti:yn,setopts:hn,ownProp:vn,makeAbs:bn,finish:xn,mark:Dn,isIgnored:Sn,childrenIgnored:Tn},In=n(ln),On=jn;jn.GlobSync=Jn;var Mn=wn.setopts,Ln=wn.ownProp,Rn=wn.childrenIgnored,Bn=wn.isIgnored;function jn(e,t){if("function"==typeof t||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");return new Jn(e,t).found}function Jn(e,t){if(!e)throw new Error("must provide pattern");if("function"==typeof t||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof Jn))return new Jn(e,t);if(Mn(this,e,t),this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var n=0;n<r;n++)this._process(this.minimatch.set[n],n,!1);this._finish()}Jn.prototype._finish=function(){if(In(this instanceof Jn),this.realpath){var e=this;this.matches.forEach((function(t,r){var n=e.matches[r]=Object.create(null);for(var i in t)try{i=e._makeAbs(i),n[Sr.realpathSync(i,e.realpathCache)]=!0}catch(t){if("stat"!==t.syscall)throw t;n[e._makeAbs(i)]=!0}}))}wn.finish(this)},Jn.prototype._process=function(e,t,r){In(this instanceof Jn);for(var n,i=0;"string"==typeof e[i];)i++;switch(i){case e.length:return void this._processSimple(e.join("/"),t);case 0:n=null;break;default:n=e.slice(0,i).join("/")}var a,o=e.slice(i);null===n?a=".":pn(n)||pn(e.join("/"))?(n&&pn(n)||(n="/"+n),a=n):a=n;var s=this._makeAbs(a);Rn(this,a)||(o[0]===Gr.GLOBSTAR?this._processGlobStar(n,a,s,o,t,r):this._processReaddir(n,a,s,o,t,r))},Jn.prototype._processReaddir=function(e,t,r,n,i,a){var o=this._readdir(r,a);if(o){for(var s=n[0],c=!!this.minimatch.negate,u=s._glob,l=this.dot||"."===u.charAt(0),d=[],_=0;_<o.length;_++){if("."!==(g=o[_]).charAt(0)||l)(c&&!e?!g.match(s):g.match(s))&&d.push(g)}var p=d.length;if(0!==p)if(1!==n.length||this.mark||this.stat){n.shift();for(_=0;_<p;_++){var f;g=d[_];f=e?[e,g]:[g],this._process(f.concat(n),i,a)}}else{this.matches[i]||(this.matches[i]=Object.create(null));for(var _=0;_<p;_++){var g=d[_];e&&(g="/"!==e.slice(-1)?e+"/"+g:e+g),"/"!==g.charAt(0)||this.nomount||(g=fr.join(this.root,g)),this._emitMatch(i,g)}}}},Jn.prototype._emitMatch=function(e,t){if(!Bn(this,t)){var r=this._makeAbs(t);if(this.mark&&(t=this._mark(t)),this.absolute&&(t=r),!this.matches[e][t]){if(this.nodir){var n=this.cache[r];if("DIR"===n||Array.isArray(n))return}this.matches[e][t]=!0,this.stat&&this._stat(t)}}},Jn.prototype._readdirInGlobStar=function(e){if(this.follow)return this._readdir(e,!1);var t,r;try{r=gr.lstatSync(e)}catch(e){if("ENOENT"===e.code)return null}var n=r&&r.isSymbolicLink();return this.symlinks[e]=n,n||!r||r.isDirectory()?t=this._readdir(e,!1):this.cache[e]="FILE",t},Jn.prototype._readdir=function(e,t){if(t&&!Ln(this.symlinks,e))return this._readdirInGlobStar(e);if(Ln(this.cache,e)){var r=this.cache[e];if(!r||"FILE"===r)return null;if(Array.isArray(r))return r}try{return this._readdirEntries(e,gr.readdirSync(e))}catch(t){return this._readdirError(e,t),null}},Jn.prototype._readdirEntries=function(e,t){if(!this.mark&&!this.stat)for(var r=0;r<t.length;r++){var n=t[r];n="/"===e?e+n:e+"/"+n,this.cache[n]=!0}return this.cache[e]=t,t},Jn.prototype._readdirError=function(e,t){switch(t.code){case"ENOTSUP":case"ENOTDIR":var r=this._makeAbs(e);if(this.cache[r]="FILE",r===this.cwdAbs){var n=new Error(t.code+" invalid cwd "+this.cwd);throw n.path=this.cwd,n.code=t.code,n}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=!1;break;default:if(this.cache[this._makeAbs(e)]=!1,this.strict)throw t;this.silent||console.error("glob error",t)}},Jn.prototype._processGlobStar=function(e,t,r,n,i,a){var o=this._readdir(r,a);if(o){var s=n.slice(1),c=e?[e]:[],u=c.concat(s);this._process(u,i,!1);var l=o.length;if(!this.symlinks[r]||!a)for(var d=0;d<l;d++){if("."!==o[d].charAt(0)||this.dot){var _=c.concat(o[d],s);this._process(_,i,!0);var p=c.concat(o[d],n);this._process(p,i,!0)}}}},Jn.prototype._processSimple=function(e,t){var r=this._stat(e);if(this.matches[t]||(this.matches[t]=Object.create(null)),r){if(e&&pn(e)&&!this.nomount){var n=/[\/\\]$/.test(e);"/"===e.charAt(0)?e=fr.join(this.root,e):(e=fr.resolve(this.root,e),n&&(e+="/"))}"win32"===V.platform&&(e=e.replace(/\\/g,"/")),this._emitMatch(t,e)}},Jn.prototype._stat=function(e){var t=this._makeAbs(e),r="/"===e.slice(-1);if(e.length>this.maxLength)return!1;if(!this.stat&&Ln(this.cache,t)){var n=this.cache[t];if(Array.isArray(n)&&(n="DIR"),!r||"DIR"===n)return n;if(r&&"FILE"===n)return!1}var i=this.statCache[t];if(!i){var a;try{a=gr.lstatSync(t)}catch(e){if(e&&("ENOENT"===e.code||"ENOTDIR"===e.code))return this.statCache[t]=!1,!1}if(a&&a.isSymbolicLink())try{i=gr.statSync(t)}catch(e){i=a}else i=a}this.statCache[t]=i;n=!0;return i&&(n=i.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||n,(!r||"FILE"!==n)&&n},Jn.prototype._mark=function(e){return wn.mark(this,e)},Jn.prototype._makeAbs=function(e){return wn.makeAbs(this,e)};var Kn=function e(t,r){if(t&&r)return e(t)(r);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach((function(e){n[e]=t[e]})),n;function n(){for(var e=new Array(arguments.length),r=0;r<e.length;r++)e[r]=arguments[r];var n=t.apply(this,e),i=e[e.length-1];return"function"==typeof n&&n!==i&&Object.keys(i).forEach((function(e){n[e]=i[e]})),n}};var zn=Kn(Vn),Un=Kn(qn);function Vn(e){var t=function t(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function qn(e){var t=function t(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}Vn.proto=Vn((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return Vn(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return qn(this)},configurable:!0})})),zn.strict=Un;var Wn=Object.create(null),Hn=Kn((function(e,t){return Wn[e]?(Wn[e].push(t),null):(Wn[e]=[t],function(e){return zn((function t(){var r=Wn[e],n=r.length,i=Gn(arguments);try{for(var a=0;a<n;a++)r[a].apply(null,i)}finally{r.length>n?(r.splice(0,n),P((function(){t.apply(null,i)}))):delete Wn[e]}}))}(e))}));function Gn(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n]=e[n];return r}var Yn=ti,Xn=cn.EventEmitter,Qn=wn.setopts,$n=wn.ownProp,Zn=wn.childrenIgnored,ei=wn.isIgnored;function ti(e,t,r){if("function"==typeof t&&(r=t,t={}),t||(t={}),t.sync){if(r)throw new TypeError("callback provided to sync glob");return On(e,t)}return new ni(e,t,r)}ti.sync=On;var ri=ti.GlobSync=On.GlobSync;function ni(e,t,r){if("function"==typeof t&&(r=t,t=null),t&&t.sync){if(r)throw new TypeError("callback provided to sync glob");return new ri(e,t)}if(!(this instanceof ni))return new ni(e,t,r);Qn(this,e,t),this._didRealPath=!1;var n=this.minimatch.set.length;this.matches=new Array(n),"function"==typeof r&&(r=zn(r),this.on("error",r),this.on("end",(function(e){r(null,e)})));var i=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(0===n)return o();for(var a=0;a<n;a++)this._process(this.minimatch.set[a],a,!1,o);function o(){--i._processing,i._processing<=0&&i._finish()}}ti.glob=ti,ti.hasMagic=function(e,t){var r=function(e,t){if(null===t||"object"!=typeof t)return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}({},t);r.noprocess=!0;var n=new ni(e,r).minimatch.set;if(!e)return!1;if(n.length>1)return!0;for(var i=0;i<n[0].length;i++)if("string"!=typeof n[0][i])return!0;return!1},ti.Glob=ni,sn(ni,Xn),ni.prototype._finish=function(){if(In(this instanceof ni),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();wn.finish(this),this.emit("end",this.found)}},ni.prototype._realpath=function(){if(!this._didRealpath){this._didRealpath=!0;var e=this.matches.length;if(0===e)return this._finish();for(var t=this,r=0;r<this.matches.length;r++)this._realpathSet(r,n)}function n(){0==--e&&t._finish()}},ni.prototype._realpathSet=function(e,t){var r=this.matches[e];if(!r)return t();var n=Object.keys(r),i=this,a=n.length;if(0===a)return t();var o=this.matches[e]=Object.create(null);n.forEach((function(r,n){r=i._makeAbs(r),Sr.realpath(r,i.realpathCache,(function(n,s){n?"stat"===n.syscall?o[r]=!0:i.emit("error",n):o[s]=!0,0==--a&&(i.matches[e]=o,t())}))}))},ni.prototype._mark=function(e){return wn.mark(this,e)},ni.prototype._makeAbs=function(e){return wn.makeAbs(this,e)},ni.prototype.abort=function(){this.aborted=!0,this.emit("abort")},ni.prototype.pause=function(){this.paused||(this.paused=!0,this.emit("pause"))},ni.prototype.resume=function(){if(this.paused){if(this.emit("resume"),this.paused=!1,this._emitQueue.length){var e=this._emitQueue.slice(0);this._emitQueue.length=0;for(var t=0;t<e.length;t++){var r=e[t];this._emitMatch(r[0],r[1])}}if(this._processQueue.length){var n=this._processQueue.slice(0);this._processQueue.length=0;for(t=0;t<n.length;t++){var i=n[t];this._processing--,this._process(i[0],i[1],i[2],i[3])}}}},ni.prototype._process=function(e,t,r,n){if(In(this instanceof ni),In("function"==typeof n),!this.aborted)if(this._processing++,this.paused)this._processQueue.push([e,t,r,n]);else{for(var i,a=0;"string"==typeof e[a];)a++;switch(a){case e.length:return void this._processSimple(e.join("/"),t,n);case 0:i=null;break;default:i=e.slice(0,a).join("/")}var o,s=e.slice(a);null===i?o=".":pn(i)||pn(e.join("/"))?(i&&pn(i)||(i="/"+i),o=i):o=i;var c=this._makeAbs(o);if(Zn(this,o))return n();s[0]===Gr.GLOBSTAR?this._processGlobStar(i,o,c,s,t,r,n):this._processReaddir(i,o,c,s,t,r,n)}},ni.prototype._processReaddir=function(e,t,r,n,i,a,o){var s=this;this._readdir(r,a,(function(c,u){return s._processReaddir2(e,t,r,n,i,a,u,o)}))},ni.prototype._processReaddir2=function(e,t,r,n,i,a,o,s){if(!o)return s();for(var c=n[0],u=!!this.minimatch.negate,l=c._glob,d=this.dot||"."===l.charAt(0),_=[],p=0;p<o.length;p++){if("."!==(g=o[p]).charAt(0)||d)(u&&!e?!g.match(c):g.match(c))&&_.push(g)}var f=_.length;if(0===f)return s();if(1===n.length&&!this.mark&&!this.stat){this.matches[i]||(this.matches[i]=Object.create(null));for(p=0;p<f;p++){var g=_[p];e&&(g="/"!==e?e+"/"+g:e+g),"/"!==g.charAt(0)||this.nomount||(g=fr.join(this.root,g)),this._emitMatch(i,g)}return s()}n.shift();for(p=0;p<f;p++){g=_[p];e&&(g="/"!==e?e+"/"+g:e+g),this._process([g].concat(n),i,a,s)}s()},ni.prototype._emitMatch=function(e,t){if(!this.aborted&&!ei(this,t))if(this.paused)this._emitQueue.push([e,t]);else{var r=pn(t)?t:this._makeAbs(t);if(this.mark&&(t=this._mark(t)),this.absolute&&(t=r),!this.matches[e][t]){if(this.nodir){var n=this.cache[r];if("DIR"===n||Array.isArray(n))return}this.matches[e][t]=!0;var i=this.statCache[r];i&&this.emit("stat",t,i),this.emit("match",t)}}},ni.prototype._readdirInGlobStar=function(e,t){if(!this.aborted){if(this.follow)return this._readdir(e,!1,t);var r=this,n=Hn("lstat\0"+e,(function(n,i){if(n&&"ENOENT"===n.code)return t();var a=i&&i.isSymbolicLink();r.symlinks[e]=a,a||!i||i.isDirectory()?r._readdir(e,!1,t):(r.cache[e]="FILE",t())}));n&&gr.lstat(e,n)}},ni.prototype._readdir=function(e,t,r){if(!this.aborted&&(r=Hn("readdir\0"+e+"\0"+t,r))){if(t&&!$n(this.symlinks,e))return this._readdirInGlobStar(e,r);if($n(this.cache,e)){var n=this.cache[e];if(!n||"FILE"===n)return r();if(Array.isArray(n))return r(null,n)}gr.readdir(e,function(e,t,r){return function(n,i){n?e._readdirError(t,n,r):e._readdirEntries(t,i,r)}}(this,e,r))}},ni.prototype._readdirEntries=function(e,t,r){if(!this.aborted){if(!this.mark&&!this.stat)for(var n=0;n<t.length;n++){var i=t[n];i="/"===e?e+i:e+"/"+i,this.cache[i]=!0}return this.cache[e]=t,r(null,t)}},ni.prototype._readdirError=function(e,t,r){if(!this.aborted){switch(t.code){case"ENOTSUP":case"ENOTDIR":var n=this._makeAbs(e);if(this.cache[n]="FILE",n===this.cwdAbs){var i=new Error(t.code+" invalid cwd "+this.cwd);i.path=this.cwd,i.code=t.code,this.emit("error",i),this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=!1;break;default:this.cache[this._makeAbs(e)]=!1,this.strict&&(this.emit("error",t),this.abort()),this.silent||console.error("glob error",t)}return r()}},ni.prototype._processGlobStar=function(e,t,r,n,i,a,o){var s=this;this._readdir(r,a,(function(c,u){s._processGlobStar2(e,t,r,n,i,a,u,o)}))},ni.prototype._processGlobStar2=function(e,t,r,n,i,a,o,s){if(!o)return s();var c=n.slice(1),u=e?[e]:[],l=u.concat(c);this._process(l,i,!1,s);var d=this.symlinks[r],_=o.length;if(d&&a)return s();for(var p=0;p<_;p++){if("."!==o[p].charAt(0)||this.dot){var f=u.concat(o[p],c);this._process(f,i,!0,s);var g=u.concat(o[p],n);this._process(g,i,!0,s)}}s()},ni.prototype._processSimple=function(e,t,r){var n=this;this._stat(e,(function(i,a){n._processSimple2(e,t,i,a,r)}))},ni.prototype._processSimple2=function(e,t,r,n,i){if(this.matches[t]||(this.matches[t]=Object.create(null)),!n)return i();if(e&&pn(e)&&!this.nomount){var a=/[\/\\]$/.test(e);"/"===e.charAt(0)?e=fr.join(this.root,e):(e=fr.resolve(this.root,e),a&&(e+="/"))}"win32"===V.platform&&(e=e.replace(/\\/g,"/")),this._emitMatch(t,e),i()},ni.prototype._stat=function(e,t){var r=this._makeAbs(e),n="/"===e.slice(-1);if(e.length>this.maxLength)return t();if(!this.stat&&$n(this.cache,r)){var i=this.cache[r];if(Array.isArray(i)&&(i="DIR"),!n||"DIR"===i)return t(null,i);if(n&&"FILE"===i)return t()}var a=this.statCache[r];if(void 0!==a){if(!1===a)return t(null,a);var o=a.isDirectory()?"DIR":"FILE";return n&&"FILE"===o?t():t(null,o,a)}var s=this,c=Hn("stat\0"+r,(function(n,i){if(i&&i.isSymbolicLink())return gr.stat(r,(function(n,a){n?s._stat2(e,r,null,i,t):s._stat2(e,r,n,a,t)}));s._stat2(e,r,n,i,t)}));c&&gr.lstat(r,c)},ni.prototype._stat2=function(e,t,r,n,i){if(r&&("ENOENT"===r.code||"ENOTDIR"===r.code))return this.statCache[t]=!1,i();var a="/"===e.slice(-1);if(this.statCache[t]=n,"/"===t.slice(-1)&&n&&!n.isDirectory())return i(null,!1,n);var o=!0;return n&&(o=n.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||o,a&&"FILE"===o?i():i(null,o,n)};
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):((e="undefined"!=typeof globalThis?globalThis:e||self).prettierPlugins=e.prettierPlugins||{},e.prettierPlugins.typescript=t())}(this,(function(){"use strict";var e=function(e,t){const r=new SyntaxError(e+" ("+t.start.line+":"+t.start.column+")");return r.loc=t,r},t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(e,t,r){return e(r={path:t,exports:{},require:function(e,t){return i(null==t&&r.path)}},r.exports),r.exports}function n(e){return e&&e.default||e}function i(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var a=Object.freeze({__proto__:null,default:{EOL:"\n"}});const o=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");const t=e.match(/(?:\r?\n)/g)||[];if(0===t.length)return;const r=t.filter(e=>"\r\n"===e).length;return r>t.length-r?"\r\n":"\n"};var s=o;s.graceful=e=>"string"==typeof e&&o(e)||"\n";var c=n(a),u=r((function(e,t){function r(){const e=c;return r=function(){return e},e}function n(){const e=(t=s)&&t.__esModule?t:{default:t};var t;return n=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.extract=function(e){const t=e.match(o);return t?t[0].trimLeft():""},t.strip=function(e){const t=e.match(o);return t&&t[0]?e.substring(t[0].length):e},t.parse=function(e){return g(e).pragmas},t.parseWithComments=g,t.print=function({comments:e="",pragmas:t={}}){const i=(0,n().default)(e)||r().EOL,a=Object.keys(t),o=a.map(e=>m(e,t[e])).reduce((e,t)=>e.concat(t),[]).map(e=>" * "+e+i).join("");if(!e){if(0===a.length)return"";if(1===a.length&&!Array.isArray(t[a[0]])){const e=t[a[0]];return"".concat("/**"," ").concat(m(a[0],e)[0]).concat(" */")}}const s=e.split(i).map(e=>"".concat(" *"," ").concat(e)).join(i)+i;return"/**"+i+(e?s:"")+(e&&a.length?" *"+i:"")+o+" */"};const i=/\*\/$/,a=/^\/\*\*/,o=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,u=/(^|\s+)\/\/([^\r\n]*)/g,l=/^(\r?\n)+/,d=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,_=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,p=/(\r?\n|^) *\* ?/g,f=[];function g(e){const t=(0,n().default)(e)||r().EOL;e=e.replace(a,"").replace(i,"").replace(p,"$1");let o="";for(;o!==e;)o=e,e=e.replace(d,"".concat(t,"$1 $2").concat(t));e=e.replace(l,"").trimRight();const s=Object.create(null),c=e.replace(_,"").replace(l,"").trimRight();let g;for(;g=_.exec(e);){const e=g[2].replace(u,"");"string"==typeof s[g[1]]||Array.isArray(s[g[1]])?s[g[1]]=f.concat(s[g[1]],e):s[g[1]]=e}return{comments:c,pragmas:s}}function m(e,t){return f.concat(t).map(t=>"@".concat(e," ").concat(t).trim())}})),l=e=>"string"==typeof e?e.replace((({onlyFirst:e=!1}={})=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")})(),""):e;const d=e=>!Number.isNaN(e)&&(e>=4352&&(e<=4447||9001===e||9002===e||11904<=e&&e<=12871&&12351!==e||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141));var _=d,p=d;_.default=p;const f=e=>{if("string"!=typeof(e=e.replace(/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g," "))||0===e.length)return 0;e=l(e);let t=0;for(let r=0;r<e.length;r++){const n=e.codePointAt(r);n<=31||n>=127&&n<=159||(n>=768&&n<=879||(n>65535&&r++,t+=_(n)?2:1))}return t};var g=f,m=f;g.default=m;var y=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")};function h(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var v="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function b(){throw new Error("setTimeout has not been defined")}function x(){throw new Error("clearTimeout has not been defined")}var D=b,S=x;function T(e){if(D===setTimeout)return setTimeout(e,0);if((D===b||!D)&&setTimeout)return D=setTimeout,setTimeout(e,0);try{return D(e,0)}catch(t){try{return D.call(null,e,0)}catch(t){return D.call(this,e,0)}}}"function"==typeof v.setTimeout&&(D=setTimeout),"function"==typeof v.clearTimeout&&(S=clearTimeout);var E,C=[],k=!1,N=-1;function A(){k&&E&&(k=!1,E.length?C=E.concat(C):N=-1,C.length&&F())}function F(){if(!k){var e=T(A);k=!0;for(var t=C.length;t;){for(E=C,C=[];++N<t;)E&&E[N].run();N=-1,t=C.length}E=null,k=!1,function(e){if(S===clearTimeout)return clearTimeout(e);if((S===x||!S)&&clearTimeout)return S=clearTimeout,clearTimeout(e);try{S(e)}catch(t){try{return S.call(null,e)}catch(t){return S.call(this,e)}}}(e)}}function P(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];C.push(new w(e,t)),1!==C.length||k||T(F)}function w(e,t){this.fun=e,this.array=t}w.prototype.run=function(){this.fun.apply(null,this.array)};function I(){}var O=I,M=I,L=I,R=I,B=I,j=I,J=I;var K=v.performance||{},z=K.now||K.mozNow||K.msNow||K.oNow||K.webkitNow||function(){return(new Date).getTime()};var U=new Date;var V={nextTick:P,title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:O,addListener:M,once:L,off:R,removeListener:B,removeAllListeners:j,emit:J,binding:function(e){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(e){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(e){var t=.001*z.call(K),r=Math.floor(t),n=Math.floor(t%1*1e9);return e&&(r-=e[0],(n-=e[1])<0&&(r--,n+=1e9)),[r,n]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-U)/1e3}};var q="object"==typeof V&&V.env&&V.env.NODE_DEBUG&&/\bsemver\b/i.test(V.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var W={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16},H=r((function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:r}=W,n=(t=e.exports={}).re=[],i=t.src=[],a=t.t={};let o=0;const s=(e,t,r)=>{const s=o++;q(s,t),a[e]=s,i[s]=t,n[s]=new RegExp(t,r?"g":void 0)};s("NUMERICIDENTIFIER","0|[1-9]\\d*"),s("NUMERICIDENTIFIERLOOSE","[0-9]+"),s("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),s("MAINVERSION","(".concat(i[a.NUMERICIDENTIFIER],")\\.")+"(".concat(i[a.NUMERICIDENTIFIER],")\\.")+"(".concat(i[a.NUMERICIDENTIFIER],")")),s("MAINVERSIONLOOSE","(".concat(i[a.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(i[a.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(i[a.NUMERICIDENTIFIERLOOSE],")")),s("PRERELEASEIDENTIFIER","(?:".concat(i[a.NUMERICIDENTIFIER],"|").concat(i[a.NONNUMERICIDENTIFIER],")")),s("PRERELEASEIDENTIFIERLOOSE","(?:".concat(i[a.NUMERICIDENTIFIERLOOSE],"|").concat(i[a.NONNUMERICIDENTIFIER],")")),s("PRERELEASE","(?:-(".concat(i[a.PRERELEASEIDENTIFIER],"(?:\\.").concat(i[a.PRERELEASEIDENTIFIER],")*))")),s("PRERELEASELOOSE","(?:-?(".concat(i[a.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(i[a.PRERELEASEIDENTIFIERLOOSE],")*))")),s("BUILDIDENTIFIER","[0-9A-Za-z-]+"),s("BUILD","(?:\\+(".concat(i[a.BUILDIDENTIFIER],"(?:\\.").concat(i[a.BUILDIDENTIFIER],")*))")),s("FULLPLAIN","v?".concat(i[a.MAINVERSION]).concat(i[a.PRERELEASE],"?").concat(i[a.BUILD],"?")),s("FULL","^".concat(i[a.FULLPLAIN],"$")),s("LOOSEPLAIN","[v=\\s]*".concat(i[a.MAINVERSIONLOOSE]).concat(i[a.PRERELEASELOOSE],"?").concat(i[a.BUILD],"?")),s("LOOSE","^".concat(i[a.LOOSEPLAIN],"$")),s("GTLT","((?:<|>)?=?)"),s("XRANGEIDENTIFIERLOOSE","".concat(i[a.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),s("XRANGEIDENTIFIER","".concat(i[a.NUMERICIDENTIFIER],"|x|X|\\*")),s("XRANGEPLAIN","[v=\\s]*(".concat(i[a.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(i[a.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(i[a.XRANGEIDENTIFIER],")")+"(?:".concat(i[a.PRERELEASE],")?").concat(i[a.BUILD],"?")+")?)?"),s("XRANGEPLAINLOOSE","[v=\\s]*(".concat(i[a.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(i[a.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(i[a.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(i[a.PRERELEASELOOSE],")?").concat(i[a.BUILD],"?")+")?)?"),s("XRANGE","^".concat(i[a.GTLT],"\\s*").concat(i[a.XRANGEPLAIN],"$")),s("XRANGELOOSE","^".concat(i[a.GTLT],"\\s*").concat(i[a.XRANGEPLAINLOOSE],"$")),s("COERCE","".concat("(^|[^\\d])(\\d{1,").concat(r,"})")+"(?:\\.(\\d{1,".concat(r,"}))?")+"(?:\\.(\\d{1,".concat(r,"}))?")+"(?:$|[^\\d])"),s("COERCERTL",i[a.COERCE],!0),s("LONETILDE","(?:~>?)"),s("TILDETRIM","(\\s*)".concat(i[a.LONETILDE],"\\s+"),!0),t.tildeTrimReplace="$1~",s("TILDE","^".concat(i[a.LONETILDE]).concat(i[a.XRANGEPLAIN],"$")),s("TILDELOOSE","^".concat(i[a.LONETILDE]).concat(i[a.XRANGEPLAINLOOSE],"$")),s("LONECARET","(?:\\^)"),s("CARETTRIM","(\\s*)".concat(i[a.LONECARET],"\\s+"),!0),t.caretTrimReplace="$1^",s("CARET","^".concat(i[a.LONECARET]).concat(i[a.XRANGEPLAIN],"$")),s("CARETLOOSE","^".concat(i[a.LONECARET]).concat(i[a.XRANGEPLAINLOOSE],"$")),s("COMPARATORLOOSE","^".concat(i[a.GTLT],"\\s*(").concat(i[a.LOOSEPLAIN],")$|^$")),s("COMPARATOR","^".concat(i[a.GTLT],"\\s*(").concat(i[a.FULLPLAIN],")$|^$")),s("COMPARATORTRIM","(\\s*)".concat(i[a.GTLT],"\\s*(").concat(i[a.LOOSEPLAIN],"|").concat(i[a.XRANGEPLAIN],")"),!0),t.comparatorTrimReplace="$1$2$3",s("HYPHENRANGE","^\\s*(".concat(i[a.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(i[a.XRANGEPLAIN],")")+"\\s*$"),s("HYPHENRANGELOOSE","^\\s*(".concat(i[a.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(i[a.XRANGEPLAINLOOSE],")")+"\\s*$"),s("STAR","(<|>)?=?\\s*\\*"),s("GTE0","^\\s*>=\\s*0.0.0\\s*$"),s("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")}));const G=/^[0-9]+$/,Y=(e,t)=>{const r=G.test(e),n=G.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1};var X={compareIdentifiers:Y,rcompareIdentifiers:(e,t)=>Y(t,e)};const{MAX_LENGTH:Q,MAX_SAFE_INTEGER:$}=W,{re:Z,t:ee}=H,{compareIdentifiers:te}=X;class re{constructor(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof re){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: ".concat(e));if(e.length>Q)throw new TypeError("version is longer than ".concat(Q," characters"));q("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?Z[ee.LOOSE]:Z[ee.FULL]);if(!r)throw new TypeError("Invalid Version: ".concat(e));if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>$||this.major<0)throw new TypeError("Invalid major version");if(this.minor>$||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>$||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<$)return t}return e}):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version="".concat(this.major,".").concat(this.minor,".").concat(this.patch),this.prerelease.length&&(this.version+="-".concat(this.prerelease.join("."))),this.version}toString(){return this.version}compare(e){if(q("SemVer.compare",this.version,this.options,e),!(e instanceof re)){if("string"==typeof e&&e===this.version)return 0;e=new re(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof re||(e=new re(e,this.options)),te(this.major,e.major)||te(this.minor,e.minor)||te(this.patch,e.patch)}comparePre(e){if(e instanceof re||(e=new re(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const r=this.prerelease[t],n=e.prerelease[t];if(q("prerelease compare",t,r,n),void 0===r&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===r)return-1;if(r!==n)return te(r,n)}while(++t)}compareBuild(e){e instanceof re||(e=new re(e,this.options));let t=0;do{const r=this.build[t],n=e.build[t];if(q("prerelease compare",t,r,n),void 0===r&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===r)return-1;if(r!==n)return te(r,n)}while(++t)}inc(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{let e=this.prerelease.length;for(;--e>=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: ".concat(e))}return this.format(),this.raw=this.version,this}}var ne=re;var ie=(e,t,r)=>new ne(e,r).compare(new ne(t,r));var ae=(e,t,r)=>ie(e,t,r)<0;var oe=(e,t,r)=>ie(e,t,r)>=0,se="Prettier is an opinionated code formatter",ce="./bin/prettier.js",ue={node:">=10.13.0"},le=["index.js","standalone.js","src","bin"],de={"@angular/compiler":"10.0.12","@babel/code-frame":"7.10.4","@babel/parser":"7.11.2","@glimmer/syntax":"0.59.0","@iarna/toml":"2.2.5","@typescript-eslint/typescript-estree":"3.10.0","angular-estree-parser":"2.2.0","angular-html-parser":"1.7.1",camelcase:"6.0.0",chalk:"4.1.0","ci-info":"watson/ci-info#f43f6a1cefff47fb361c88cf4b943fdbcaafe540","cjk-regex":"2.0.0",cosmiconfig:"7.0.0",dashify:"2.0.0",diff:"4.0.2",editorconfig:"0.15.3","editorconfig-to-prettier":"0.1.1","escape-string-regexp":"4.0.0",esutils:"2.0.3","fast-glob":"3.2.4","fast-json-stable-stringify":"2.1.0","find-parent-dir":"0.3.0","flow-parser":"0.132.0","get-stream":"6.0.0",globby:"11.0.1",graphql:"15.3.0","html-element-attributes":"2.2.1","html-styles":"1.0.0","html-tag-names":"1.1.5","html-void-elements":"1.0.5",ignore:"4.0.6","jest-docblock":"26.0.0",json5:"2.1.3",leven:"3.1.0","lines-and-columns":"1.1.6","linguist-languages":"7.10.0",lodash:"4.17.20",mem:"6.1.0",minimatch:"3.0.4",minimist:"1.2.5","n-readlines":"1.0.0",outdent:"0.7.1","parse-srcset":"ikatyang/parse-srcset#54eb9c1cb21db5c62b4d0e275d7249516df6f0ee","please-upgrade-node":"3.2.0","postcss-less":"3.1.4","postcss-media-query-parser":"0.2.3","postcss-scss":"2.1.1","postcss-selector-parser":"2.2.3","postcss-values-parser":"2.0.1","regexp-util":"1.2.2","remark-footnotes":"2.0.0","remark-math":"1.0.6","remark-parse":"8.0.3",resolve:"1.17.0",semver:"7.3.2","string-width":"4.2.0",typescript:"4.0.2","unicode-regex":"3.0.0",unified:"9.2.0",vnopts:"1.0.2","yaml-unist-parser":"1.3.1"},_e={"@babel/core":"7.11.4","@babel/preset-env":"7.11.0","@babel/types":"7.11.0","@glimmer/reference":"0.59.0","@rollup/plugin-alias":"3.1.1","@rollup/plugin-babel":"5.2.0","@rollup/plugin-commonjs":"14.0.0","@rollup/plugin-json":"4.1.0","@rollup/plugin-node-resolve":"9.0.0","@rollup/plugin-replace":"2.3.3","@types/estree":"0.0.45","@types/node":"14.6.0","@typescript-eslint/types":"3.10.0","babel-loader":"8.1.0",benchmark:"2.1.4","builtin-modules":"3.1.0","cross-env":"7.0.2",cspell:"4.1.0",eslint:"7.7.0","eslint-config-prettier":"6.11.0","eslint-formatter-friendly":"7.0.0","eslint-plugin-import":"2.22.0","eslint-plugin-jest":"23.20.0","eslint-plugin-prettier-internal-rules":"file:scripts/tools/eslint-plugin-prettier-internal-rules","eslint-plugin-react":"7.20.6","eslint-plugin-unicorn":"21.0.0",execa:"4.0.3",jest:"26.4.2","jest-snapshot-serializer-ansi":"1.0.0","jest-snapshot-serializer-raw":"1.1.0","jest-watch-typeahead":"0.6.0","npm-run-all":"4.1.5",prettier:"2.1.1",rimraf:"3.0.2",rollup:"2.26.5","rollup-plugin-node-globals":"1.4.0","rollup-plugin-terser":"7.0.0",shelljs:"0.8.4","snapshot-diff":"0.8.1","strip-ansi":"6.0.0","synchronous-promise":"2.0.13",tempy:"0.6.0","terser-webpack-plugin":"4.1.0",webpack:"4.44.1"},pe={prepublishOnly:'echo "Error: must publish from dist/" && exit 1',"prepare-release":"yarn && yarn build && yarn test:dist",test:"jest","test:dev-package":"cross-env INSTALL_PACKAGE=1 jest","test:dist":"cross-env NODE_ENV=production jest","test:dist-standalone":"cross-env NODE_ENV=production TEST_STANDALONE=1 jest","test:integration":"jest tests_integration","perf:repeat":"yarn && yarn build && cross-env NODE_ENV=production node ./dist/bin-prettier.js --debug-repeat ${PERF_REPEAT:-1000} --loglevel debug ${PERF_FILE:-./index.js} > /dev/null","perf:repeat-inspect":"yarn && yarn build && cross-env NODE_ENV=production node --inspect-brk ./dist/bin-prettier.js --debug-repeat ${PERF_REPEAT:-1000} --loglevel debug ${PERF_FILE:-./index.js} > /dev/null","perf:benchmark":"yarn && yarn build && cross-env NODE_ENV=production node ./dist/bin-prettier.js --debug-benchmark --loglevel debug ${PERF_FILE:-./index.js} > /dev/null",lint:"run-p lint:*","lint:typecheck":"tsc","lint:eslint":"cross-env EFF_NO_LINK_RULES=true eslint . --format friendly","lint:changelog":"node ./scripts/lint-changelog.js","lint:prettier":'prettier . "!test*" --check',"lint:dist":'eslint --no-eslintrc --no-ignore --env=es6,browser --parser-options=ecmaVersion:2016 "dist/!(bin-prettier|index|third-party).js"',"lint:spellcheck":'cspell "**/*" ".github/**/*"',"lint:deps":"node ./scripts/check-deps.js",fix:"run-s fix:eslint fix:prettier","fix:eslint":"yarn lint:eslint --fix","fix:prettier":"yarn lint:prettier --write",build:"node ./scripts/build/build.js","build-docs":"node ./scripts/build-docs.js"},fe={name:"prettier",version:"2.1.2",description:se,bin:ce,repository:"prettier/prettier",homepage:"https://prettier.io",author:"James Long",license:"MIT",main:"./index.js",browser:"./standalone.js",unpkg:"./standalone.js",engines:ue,files:le,dependencies:de,devDependencies:_e,scripts:pe},ge=Object.freeze({__proto__:null,name:"prettier",version:"2.1.2",description:se,bin:ce,repository:"prettier/prettier",homepage:"https://prettier.io",author:"James Long",license:"MIT",main:"./index.js",browser:"./standalone.js",unpkg:"./standalone.js",engines:ue,files:le,dependencies:de,devDependencies:_e,scripts:pe,default:fe}),me=r((function(e,t){function r(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]}function n(){return"undefined"!=typeof WeakMap?new WeakMap:{add:r,delete:r,get:r,set:r,has:function(e){return!1}}}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.prototype.hasOwnProperty,a=function(e,t){return i.call(e,t)};function o(e,t){for(var r in t)a(t,r)&&(e[r]=t[r]);return e}var s=/^[ \t]*(?:\r\n|\r|\n)/,c=/(?:\r\n|\r|\n)[ \t]*$/,u=/^(?:[\r\n]|$)/,l=/(?:\r\n|\r|\n)([ \t]*)(?:[^ \t\r\n]|$)/,d=/^[ \t]*[\r\n][ \t\r\n]*$/;function _(e,t,r){var n=0,i=e[0].match(l);i&&(n=i[1].length);var a=new RegExp("(\\r\\n|\\r|\\n).{0,"+n+"}","g");t&&(e=e.slice(1));var o=r.newline,u=r.trimLeadingNewline,d=r.trimTrailingNewline,_="string"==typeof o,p=e.length;return e.map((function(e,t){return e=e.replace(a,"$1"),0===t&&u&&(e=e.replace(s,"")),t===p-1&&d&&(e=e.replace(c,"")),_&&(e=e.replace(/\r\n|\n|\r/g,(function(e){return o}))),e}))}function p(e,t){for(var r="",n=0,i=e.length;n<i;n++)r+=e[n],n<i-1&&(r+=t[n]);return r}function f(e){return a(e,"raw")&&a(e,"length")}var g=function e(t){var r=n(),i=n();return o((function n(a){for(var s=[],c=1;c<arguments.length;c++)s[c-1]=arguments[c];if(f(a)){var l=a,m=(s[0]===n||s[0]===g)&&d.test(l[0])&&u.test(l[1]),y=m?i:r,h=y.get(l);if(h||(h=_(l,m,t),y.set(l,h)),0===s.length)return h[0];var v=p(h,m?s.slice(1):s);return v}return e(o(o({},t),a||{}))}),{string:function(e){return _([e],!1,t)[0]}})}({trimLeadingNewline:!0,trimTrailingNewline:!0});t.outdent=g,t.default=g;try{e.exports=g,Object.defineProperty(g,"__esModule",{value:!0}),g.default=g,g.outdent=g}catch(e){}}));function ye(){const e=h(["\n Require either '@prettier' or '@format' to be present in the file's first docblock comment\n in order for it to be formatted.\n "]);return ye=function(){return e},e}function he(){const e=h(["\n Format code starting at a given character offset.\n The range will extend backwards to the start of the first line containing the selected statement.\n This option cannot be used with --cursor-offset.\n "]);return he=function(){return e},e}function ve(){const e=h(["\n Format code ending at a given character offset (exclusive).\n The range will extend forwards to the end of the selected statement.\n This option cannot be used with --cursor-offset.\n "]);return ve=function(){return e},e}function be(){const e=h(["\n Custom directory that contains prettier plugins in node_modules subdirectory.\n Overrides default behavior when plugins are searched relatively to the location of Prettier.\n Multiple values are accepted.\n "]);return be=function(){return e},e}function xe(){const e=h(["\n Maintain existing\n (mixed values within one file are normalised by looking at what's used after the first line)\n "]);return xe=function(){return e},e}function De(){const e=h(["\n Print (to stderr) where a cursor at the given position would move to after formatting.\n This option cannot be used with --range-start and --range-end.\n "]);return De=function(){return e},e}const{outdent:Se}=me;var Te={CATEGORY_CONFIG:"Config",CATEGORY_EDITOR:"Editor",CATEGORY_FORMAT:"Format",CATEGORY_OTHER:"Other",CATEGORY_OUTPUT:"Output",CATEGORY_GLOBAL:"Global",CATEGORY_SPECIAL:"Special",options:{cursorOffset:{since:"1.4.0",category:"Special",type:"int",default:-1,range:{start:-1,end:1/0,step:1},description:Se(De()),cliCategory:"Editor"},endOfLine:{since:"1.15.0",category:"Global",type:"choice",default:[{since:"1.15.0",value:"auto"},{since:"2.0.0",value:"lf"}],description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:Se(xe())}]},filepath:{since:"1.4.0",category:"Special",type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:"Other",cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{since:"1.8.0",category:"Special",type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:"Other"},parser:{since:"0.0.10",category:"Global",type:"choice",default:[{since:"0.0.10",value:"babylon"},{since:"1.13.0",value:void 0}],description:"Which parser to use.",exception:e=>"string"==typeof e||"function"==typeof e,choices:[{value:"flow",description:"Flow"},{value:"babel",since:"1.16.0",description:"JavaScript"},{value:"babel-flow",since:"1.16.0",description:"Flow"},{value:"babel-ts",since:"2.0.0",description:"TypeScript"},{value:"typescript",since:"1.4.0",description:"TypeScript"},{value:"css",since:"1.7.1",description:"CSS"},{value:"less",since:"1.7.1",description:"Less"},{value:"scss",since:"1.7.1",description:"SCSS"},{value:"json",since:"1.5.0",description:"JSON"},{value:"json5",since:"1.13.0",description:"JSON5"},{value:"json-stringify",since:"1.13.0",description:"JSON.stringify"},{value:"graphql",since:"1.5.0",description:"GraphQL"},{value:"markdown",since:"1.8.0",description:"Markdown"},{value:"mdx",since:"1.15.0",description:"MDX"},{value:"vue",since:"1.10.0",description:"Vue"},{value:"yaml",since:"1.14.0",description:"YAML"},{value:"glimmer",since:null,description:"Handlebars"},{value:"html",since:"1.15.0",description:"HTML"},{value:"angular",since:"1.15.0",description:"Angular"},{value:"lwc",since:"1.17.0",description:"Lightning Web Components"}]},plugins:{since:"1.10.0",type:"path",array:!0,default:[{value:[]}],category:"Global",description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>"string"==typeof e||"object"==typeof e,cliName:"plugin",cliCategory:"Config"},pluginSearchDirs:{since:"1.13.0",type:"path",array:!0,default:[{value:[]}],category:"Global",description:Se(be()),exception:e=>"string"==typeof e||"object"==typeof e,cliName:"plugin-search-dir",cliCategory:"Config"},printWidth:{since:"0.0.0",category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{since:"1.4.0",category:"Special",type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:Se(ve()),cliCategory:"Editor"},rangeStart:{since:"1.4.0",category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description:Se(he()),cliCategory:"Editor"},requirePragma:{since:"1.7.0",category:"Special",type:"boolean",default:!1,description:Se(ye()),cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{since:"1.0.0",category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{since:"2.1.0",category:"Global",type:"choice",default:[{since:"2.1.0",value:"auto"}],description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}}},Ee=n(ge);const Ce={compare:ie,lt:ae,gte:oe},ke=Ee.version,Ne=Te.options;var Ae={getSupportInfo:function({plugins:e=[],showUnreleased:t=!1,showDeprecated:r=!1,showInternal:n=!1}={}){const i=ke.split("-",1)[0],a=e.reduce((e,t)=>e.concat(t.languages||[]),[]).filter(u),o=(s=Object.assign({},...e.map(({options:e})=>e),Ne),c="name",Object.entries(s).map(([e,t])=>Object.assign({[c]:e},t))).filter(e=>u(e)&&l(e)).sort((e,t)=>e.name===t.name?0:e.name<t.name?-1:1).map((function(e){if(n)return e;return function(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,["cliName","cliCategory","cliDescription"])})).map(t=>{t=Object.assign({},t),Array.isArray(t.default)&&(t.default=1===t.default.length?t.default[0].value:t.default.filter(u).sort((e,t)=>Ce.compare(t.since,e.since))[0].value),Array.isArray(t.choices)&&(t.choices=t.choices.filter(e=>u(e)&&l(e)),"parser"===t.name&&function(e,t,r){const n=new Set(e.choices.map(e=>e.value));for(const i of t)if(i.parsers)for(const t of i.parsers)if(!n.has(t)){n.add(t);const a=r.find(e=>e.parsers&&e.parsers[t]);let o=i.name;a&&a.name&&(o+=" (plugin: ".concat(a.name,")")),e.choices.push({value:t,description:o})}}(t,a,e));const r=e.filter(e=>e.defaultOptions&&void 0!==e.defaultOptions[t.name]).reduce((e,r)=>(e[r.name]=r.defaultOptions[t.name],e),{});return Object.assign({},t,{pluginDefaults:r})});var s,c;return{languages:a,options:o};function u(e){return t||!("since"in e)||e.since&&Ce.gte(i,e.since)}function l(e){return r||!("deprecated"in e)||e.deprecated&&Ce.lt(i,e.deprecated)}}};const Fe=/[^\x20-\x7F]/;function Pe(e){return(t,r,n)=>{const i=n&&n.backwards;if(!1===r)return!1;const{length:a}=t;let o=r;for(;o>=0&&o<a;){const r=t.charAt(o);if(e instanceof RegExp){if(!e.test(r))return o}else if(!e.includes(r))return o;i?o--:o++}return(-1===o||o===a)&&o}}const we=Pe(/\s/),Ie=Pe(" \t"),Oe=Pe(",; \t"),Me=Pe(/[^\n\r]/);function Le(e,t){if(!1===t)return!1;if("/"===e.charAt(t)&&"*"===e.charAt(t+1))for(let r=t+2;r<e.length;++r)if("*"===e.charAt(r)&&"/"===e.charAt(r+1))return r+2;return t}function Re(e,t){return!1!==t&&("/"===e.charAt(t)&&"/"===e.charAt(t+1)?Me(e,t):t)}function Be(e,t,r){const n=r&&r.backwards;if(!1===t)return!1;const i=e.charAt(t);if(n){if("\r"===e.charAt(t-1)&&"\n"===i)return t-2;if("\n"===i||"\r"===i||"\u2028"===i||"\u2029"===i)return t-1}else{if("\r"===i&&"\n"===e.charAt(t+1))return t+2;if("\n"===i||"\r"===i||"\u2028"===i||"\u2029"===i)return t+1}return t}function je(e,t,r){const n=Ie(e,(r=r||{}).backwards?t-1:t,r);return n!==Be(e,n,r)}function Je(e,t){let r=null,n=t;for(;n!==r;)r=n,n=Oe(e,n),n=Le(e,n),n=Ie(e,n);return n=Re(e,n),n=Be(e,n),!1!==n&&je(e,n)}function Ke(e,t){let r=null,n=t;for(;n!==r;)r=n,n=Ie(e,n),n=Le(e,n),n=Re(e,n),n=Be(e,n);return n}function ze(e,t,r){return Ke(e,r(t))}function Ue(e,t,r){let n=0;for(let i=r=r||0;i<e.length;++i)"\t"===e[i]?n=n+t-n%t:n++;return n}function Ve(e,t){const r=e.slice(1,-1),n={quote:'"',regex:/"/g},i={quote:"'",regex:/'/g},a="'"===t?i:n,o=a===i?n:i;let s=a.quote;if(r.includes(a.quote)||r.includes(o.quote)){s=(r.match(a.regex)||[]).length>(r.match(o.regex)||[]).length?o.quote:a.quote}return s}function qe(e,t,r){const n='"'===t?"'":'"',i=e.replace(/\\([\S\s])|(["'])/g,(e,i,a)=>i===n?i:a===t?"\\"+a:a||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(i)?i:"\\"+i));return t+i+t}function We(e){return e&&(e.comments&&e.comments.length>0&&e.comments.some(e=>He(e)&&!e.unignore)||e.prettierIgnore)}function He(e){return"prettier-ignore"===e.value.trim()}function Ge(e,t){(e.comments||(e.comments=[])).push(t),t.printed=!1,"JSXText"===e.type&&(t.printed=!0)}var Ye={replaceEndOfLineWith:function(e,t){const r=[];for(const n of e.split("\n"))0!==r.length&&r.push(t),r.push(n);return r},getStringWidth:function(e){return e?Fe.test(e)?g(e):e.length:0},getMaxContinuousCount:function(e,t){const r=e.match(new RegExp("(".concat(y(t),")+"),"g"));return null===r?0:r.reduce((e,r)=>Math.max(e,r.length/t.length),0)},getMinNotPresentContinuousCount:function(e,t){const r=e.match(new RegExp("(".concat(y(t),")+"),"g"));if(null===r)return 0;const n=new Map;let i=0;for(const e of r){const r=e.length/t.length;n.set(r,!0),r>i&&(i=r)}for(let e=1;e<i;e++)if(!n.get(e))return e;return i+1},getParserName:function(e,t){const r=Ae.getSupportInfo({plugins:t.plugins}).languages.find(t=>t.name.toLowerCase()===e||t.aliases&&t.aliases.includes(e)||t.extensions&&t.extensions.some(t=>t===".".concat(e)));return r?r.parsers[0]:null},getPenultimate:e=>e[e.length-2],getLast:e=>e[e.length-1],getNextNonSpaceNonCommentCharacterIndexWithStartIndex:Ke,getNextNonSpaceNonCommentCharacterIndex:ze,getNextNonSpaceNonCommentCharacter:function(e,t,r){return e.charAt(ze(e,t,r))},skip:Pe,skipWhitespace:we,skipSpaces:Ie,skipToLineEnd:Oe,skipEverythingButNewLine:Me,skipInlineComment:Le,skipTrailingComment:Re,skipNewline:Be,isNextLineEmptyAfterIndex:Je,isNextLineEmpty:function(e,t,r){return Je(e,r(t))},isPreviousLineEmpty:function(e,t,r){let n=r(t)-1;return n=Ie(e,n,{backwards:!0}),n=Be(e,n,{backwards:!0}),n=Ie(e,n,{backwards:!0}),n!==Be(e,n,{backwards:!0})},hasNewline:je,hasNewlineInRange:function(e,t,r){for(let n=t;n<r;++n)if("\n"===e.charAt(n))return!0;return!1},hasSpaces:function(e,t,r){return Ie(e,(r=r||{}).backwards?t-1:t,r)!==t},getAlignmentSize:Ue,getIndentSize:function(e,t){const r=e.lastIndexOf("\n");return-1===r?0:Ue(e.slice(r+1).match(/^[\t ]*/)[0],t)},getPreferredQuote:Ve,printString:function(e,t,r){const n=e.slice(1,-1),i=!n.includes('"')&&!n.includes("'"),a="json"===t.parser?'"':t.__isInHtmlAttribute?"'":Ve(e,t.singleQuote?"'":'"');return r?i?a+n+a:e:qe(n,a,!("css"===t.parser||"less"===t.parser||"scss"===t.parser||t.embeddedInHtml))},printNumber:function(e){return e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(\d)/,"$1$2$3").replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1").replace(/^([+-])?\./,"$10.").replace(/(\.\d+?)0+(?=e|$)/,"$1").replace(/\.(?=e|$)/,"")},hasIgnoreComment:function(e){return We(e.getValue())},hasNodeIgnoreComment:We,isNodeIgnoreComment:He,makeString:qe,addLeadingComment:function(e,t){t.leading=!0,t.trailing=!1,Ge(e,t)},addDanglingComment:function(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),Ge(e,t)},addTrailingComment:function(e,t){t.leading=!1,t.trailing=!0,Ge(e,t)},isWithinParentArrayProperty:function(e,t){const r=e.getValue(),n=e.getParentNode();if(null==n)return!1;if(!Array.isArray(n[t]))return!1;const i=e.getName();return n[t][i]===r},isFrontMatterNode:function(e){return e&&"front-matter"===e.type},getShebang:function(e){if(!e.startsWith("#!"))return"";const t=e.indexOf("\n");return-1===t?e:e.slice(0,t)}};var Xe={guessEndOfLine:function(e){const t=e.indexOf("\r");return t>=0?"\n"===e.charAt(t+1)?"crlf":"cr":"lf"},convertEndOfLineToChars:function(e){switch(e){case"cr":return"\r";case"crlf":return"\r\n";default:return"\n"}},countEndOfLineChars:function(e,t){let r;if("\n"===t)r=/\n/g;else if("\r"===t)r=/\r/g;else{if("\r\n"!==t)throw new Error('Unexpected "eol" '.concat(JSON.stringify(t),"."));r=/\r\n/g}const n=e.match(r);return n?n.length:0},normalizeEndOfLine:function(e){return e.replace(/\r\n?/g,"\n")}};const{parseWithComments:Qe,strip:$e,extract:Ze,print:et}=u,{getShebang:tt}=Ye,{normalizeEndOfLine:rt}=Xe;function nt(e){const t=tt(e);t&&(e=e.slice(t.length+1));const r=Ze(e),{pragmas:n,comments:i}=Qe(r);return{shebang:t,text:e,pragmas:n,comments:i}}var it={hasPragma:function(e){const t=Object.keys(nt(e).pragmas);return t.includes("prettier")||t.includes("format")},insertPragma:function(e){const{shebang:t,text:r,pragmas:n,comments:i}=nt(e),a=$e(r),o=et({pragmas:Object.assign({format:""},n),comments:i.trimStart()});return(t?"".concat(t,"\n"):"")+rt(o)+(a.startsWith("\n")?"\n":"\n\n")+a}};function at(e,t){const{ignoreDecorators:r}=t||{};if(!r){const t=e.declaration&&e.declaration.decorators||e.decorators;if(t&&t.length>0)return at(t[0])}return e.range?e.range[0]:e.start}function ot(e){const t=e.range?e.range[1]:e.end;return e.typeAnnotation?Math.max(t,ot(e.typeAnnotation)):t}var st={locStart:at,locEnd:ot,composeLoc:function(e,t=e){const r=at(e);return[r,"number"==typeof t?r+t:ot(t)]}};const{getLast:ct,hasNewline:ut,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:lt,getNextNonSpaceNonCommentCharacter:dt,hasNewlineInRange:_t,isNodeIgnoreComment:pt,addLeadingComment:ft,addTrailingComment:gt,addDanglingComment:mt,getNextNonSpaceNonCommentCharacterIndex:yt}=Ye;function ht(e,t){const r=(e.body||e.properties).filter(e=>"EmptyStatement"!==e.type);0===r.length?mt(e,t):ft(r[0],t)}function vt(e,t){"BlockStatement"===e.type?ht(e,t):ft(e,t)}function bt(e,t,r,n,i,a){if(!r||"IfStatement"!==r.type||!n)return!1;return")"===dt(e,i,a.locEnd)?(gt(t,i),!0):t===r.consequent&&n===r.alternate?("BlockStatement"===t.type?gt(t,i):mt(r,i),!0):"BlockStatement"===n.type?(ht(n,i),!0):"IfStatement"===n.type?(vt(n.consequent,i),!0):r.consequent===n&&(ft(n,i),!0)}function xt(e,t,r,n,i,a){if(!r||"WhileStatement"!==r.type||!n)return!1;return")"===dt(e,i,a.locEnd)?(gt(t,i),!0):"BlockStatement"===n.type&&(ht(n,i),!0)}function Dt(e,t,r,n){return!(!e||"TryStatement"!==e.type&&"CatchClause"!==e.type||!r)&&("CatchClause"===e.type&&t?(gt(t,n),!0):"BlockStatement"===r.type?(ht(r,n),!0):"TryStatement"===r.type?(vt(r.finalizer,n),!0):"CatchClause"===r.type&&(vt(r.body,n),!0))}function St(e,t,r,n){if(e&&("ClassDeclaration"===e.type||"ClassExpression"===e.type||"DeclareClass"===e.type||"DeclareInterface"===e.type||"InterfaceDeclaration"===e.type||"TSInterfaceDeclaration"===e.type)){if(e.decorators&&e.decorators.length>0&&(!r||"Decorator"!==r.type))return gt(e.decorators[e.decorators.length-1],n),!0;if(e.body&&r===e.body)return ht(e.body,n),!0;if(r)for(const i of["implements","extends","mixins"])if(e[i]&&r===e[i][0])return!t||t!==e.id&&t!==e.typeParameters&&t!==e.superClass?mt(e,n,i):gt(t,n),!0}return!1}function Tt(e,t,r,n,i){return(t&&r&&("Property"===t.type||"TSDeclareMethod"===t.type||"TSAbstractMethodDefinition"===t.type)&&"Identifier"===r.type&&t.key===r&&":"!==dt(e,r,i.locEnd)||!(!r||!t||"Decorator"!==r.type||"ClassMethod"!==t.type&&"ClassProperty"!==t.type&&"TSAbstractClassProperty"!==t.type&&"TSAbstractMethodDefinition"!==t.type&&"TSDeclareMethod"!==t.type&&"MethodDefinition"!==t.type))&&(gt(r,n),!0)}function Et(e,t,r,n,i,a){if(t&&"FunctionTypeParam"===t.type&&r&&"FunctionTypeAnnotation"===r.type&&n&&"FunctionTypeParam"!==n.type)return gt(t,i),!0;if(t&&("Identifier"===t.type||"AssignmentPattern"===t.type)&&r&&Ft(r)&&")"===dt(e,i,a.locEnd))return gt(t,i),!0;if(r&&"FunctionDeclaration"===r.type&&n&&"BlockStatement"===n.type){const t=(()=>{if(0!==(r.params||r.parameters).length)return lt(e,a.locEnd(ct(r.params||r.parameters)));const t=lt(e,a.locEnd(r.id));return!1!==t&<(e,t+1)})();if(a.locStart(i)>t)return ht(n,i),!0}return!1}function Ct(e,t){return!(!e||"ImportSpecifier"!==e.type)&&(ft(e,t),!0)}function kt(e,t){return!(!e||"LabeledStatement"!==e.type)&&(ft(e,t),!0)}function Nt(e,t,r,n){return t&&t.body&&0===t.body.length?(n?mt(t,r):ft(t,r),!0):!(!e||"Program"!==e.type||0!==e.body.length||!e.directives||0!==e.directives.length)&&(n?mt(e,r):ft(e,r),!0)}function At(e){return"Block"===e.type||"CommentBlock"===e.type}function Ft(e){return"ArrowFunctionExpression"===e.type||"FunctionExpression"===e.type||"FunctionDeclaration"===e.type||"ObjectMethod"===e.type||"ClassMethod"===e.type||"TSDeclareFunction"===e.type||"TSCallSignatureDeclaration"===e.type||"TSConstructSignatureDeclaration"===e.type||"TSConstructSignatureDeclaration"===e.type||"TSMethodSignature"===e.type||"TSConstructorType"===e.type||"TSFunctionType"===e.type||"TSDeclareMethod"===e.type}function Pt(e){return At(e)&&"*"===e.value[0]&&/@type\b/.test(e.value)}var wt={handleOwnLineComment:function(e,t,r,n,i){const{precedingNode:a,enclosingNode:o,followingNode:s}=e;return Et(t,a,o,s,e,r)||function(e,t,r){if(e&&("MemberExpression"===e.type||"OptionalMemberExpression"===e.type)&&t&&"Identifier"===t.type)return ft(e,r),!0;return!1}(o,s,e)||bt(t,a,o,s,e,r)||xt(t,a,o,s,e,r)||Dt(o,a,s,e)||St(o,a,s,e)||Ct(o,e)||function(e,t,r){if(e&&("ForInStatement"===e.type||"ForOfStatement"===e.type))return ft(e,r),!0;return!1}(o,0,e)||function(e,t,r,n){if(t&&("UnionTypeAnnotation"===t.type||"TSUnionType"===t.type))return pt(n)&&(r.prettierIgnore=!0,n.unignore=!0),!!e&&(gt(e,n),!0);r&&("UnionTypeAnnotation"===r.type||"TSUnionType"===r.type)&&pt(n)&&(r.types[0].prettierIgnore=!0,n.unignore=!0);return!1}(a,o,s,e)||Nt(o,n,e,i)||function(e,t,r,n,i){if(r&&"ImportSpecifier"===r.type&&t&&"ImportDeclaration"===t.type&&ut(e,i.locEnd(n)))return gt(r,n),!0;return!1}(t,o,a,e,r)||function(e,t){if(e&&"AssignmentPattern"===e.type)return ft(e,t),!0;return!1}(o,e)||Tt(t,o,a,e,r)||kt(o,e)},handleEndOfLineComment:function(e,t,r,n,i){const{precedingNode:a,enclosingNode:o,followingNode:s}=e;return function(e,t){if(e&&Pt(t))return ft(e,t),!0;return!1}(s,e)||Et(t,a,o,s,e,r)||function(e,t,r,n,i,a){const o=t&&!_t(i,a.locEnd(t),a.locStart(n));if((!t||!o)&&e&&("ConditionalExpression"===e.type||"TSConditionalType"===e.type)&&r)return ft(r,n),!0;return!1}(o,a,s,e,t,r)||Ct(o,e)||bt(t,a,o,s,e,r)||xt(t,a,o,s,e,r)||Dt(o,a,s,e)||St(o,a,s,e)||kt(o,e)||function(e,t,r){if(t&&("CallExpression"===t.type||"OptionalCallExpression"===t.type)&&e&&t.callee===e&&t.arguments.length>0)return ft(t.arguments[0],r),!0;return!1}(a,o,e)||function(e,t){if(e&&("Property"===e.type||"ObjectProperty"===e.type))return ft(e,t),!0;return!1}(o,e)||Nt(o,n,e,i)||function(e,t,r){if(e&&"TypeAlias"===e.type)return ft(e,r),!0;return!1}(o,0,e)||function(e,t,r){if(e&&("VariableDeclarator"===e.type||"AssignmentExpression"===e.type)&&t&&("ObjectExpression"===t.type||"ArrayExpression"===t.type||"TemplateLiteral"===t.type||"TaggedTemplateExpression"===t.type||At(r)))return ft(t,r),!0;return!1}(o,s,e)},handleRemainingComment:function(e,t,r,n,i){const{precedingNode:a,enclosingNode:o,followingNode:s}=e;return!!(bt(t,a,o,s,e,r)||xt(t,a,o,s,e,r)||function(e,t,r){if(e&&("ObjectProperty"===e.type||"Property"===e.type)&&e.shorthand&&e.key===t&&"AssignmentPattern"===e.value.type)return gt(e.value.left,r),!0;return!1}(o,a,e)||function(e,t,r,n){if(")"!==dt(e,r,n.locEnd))return!1;if(t&&(Ft(t)&&0===(t.params||t.parameters).length||("CallExpression"===t.type||"OptionalCallExpression"===t.type||"NewExpression"===t.type)&&0===t.arguments.length))return mt(t,r),!0;if(t&&"MethodDefinition"===t.type&&0===t.value.params.length)return mt(t.value,r),!0;return!1}(t,o,e,r)||Tt(t,o,a,e,r)||Nt(o,n,e,i)||function(e,t,r,n){if(!t||"ArrowFunctionExpression"!==t.type)return!1;const i=yt(e,r,n.locEnd);if(!1!==i&&"=>"===e.slice(i,i+2))return mt(t,r),!0;return!1}(t,o,e,r)||function(e,t,r,n,i){if("("!==dt(e,n,i.locEnd))return!1;if(r&&t&&("FunctionDeclaration"===t.type||"FunctionExpression"===t.type||"ClassMethod"===t.type||"MethodDefinition"===t.type||"ObjectMethod"===t.type))return gt(r,n),!0;return!1}(t,o,a,e,r)||function(e,t,r,n,i){if(!t||"TSMappedType"!==t.type)return!1;if(n&&"TSTypeParameter"===n.type&&n.name)return ft(n.name,i),!0;if(r&&"TSTypeParameter"===r.type&&r.constraint)return gt(r.constraint,i),!0;return!1}(0,o,a,s,e)||function(e,t){if(e&&("ContinueStatement"===e.type||"BreakStatement"===e.type)&&!e.label)return gt(e,t),!0;return!1}(o,e)||function(e,t,r,n,i){if(!r&&t&&("TSMethodSignature"===t.type||"TSDeclareFunction"===t.type||"TSAbstractMethodDefinition"===t.type)&&";"===dt(e,n,i.locEnd))return gt(t,n),!0;return!1}(t,o,s,e,r))},hasLeadingComment:function(e,t=(()=>!0)){return e.leadingComments?e.leadingComments.some(t):!!e.comments&&e.comments.some(e=>e.leading&&t(e))},isBlockComment:At,isTypeCastComment:Pt,getGapRegex:function(e){if(e&&"BinaryExpression"!==e.type&&"LogicalExpression"!==e.type)return/^[\s&(|]*$/},getCommentChildNodes:function(e,t){if(("typescript"===t.parser||"flow"===t.parser)&&"MethodDefinition"===e.type&&e.value&&"FunctionExpression"===e.value.type&&0===e.value.params.length&&!e.value.returnType&&(!e.value.typeParameters||0===e.value.typeParameters.length)&&e.value.body)return[...e.decorators||[],e.key,e.value.body]}};const{getLast:It,getNextNonSpaceNonCommentCharacter:Ot,getShebang:Mt}=Ye,{composeLoc:Lt,locStart:Rt,locEnd:Bt}=st,{isTypeCastComment:jt}=wt;function Jt(e,t){let r;if(Array.isArray(e))r=e.entries();else{if(!e||"object"!=typeof e||"string"!=typeof e.type)return e;r=Object.entries(e)}for(const[n,i]of r)e[n]=Jt(i,t);return t(e)||e}function Kt(e){return"LogicalExpression"===e.type&&"LogicalExpression"===e.right.type&&e.operator===e.right.operator}var zt=function(e,t){if("typescript"!==t.parser&&"flow"!==t.parser||function(e,t){const r=Mt(t.originalText);r&&e.comments.unshift({type:"Line",value:r.slice(2),range:[0,r.length]})}(e,t),"typescript"!==t.parser&&"flow"!==t.parser){const t=new Set;e=Jt(e,e=>{e.leadingComments&&e.leadingComments.some(jt)&&t.add(Rt(e))}),e=Jt(e,e=>{if("ParenthesizedExpression"===e.type){const r=Rt(e);if(!t.has(r)){const{expression:t}=e;return t.extra||(t.extra={}),t.extra.parenthesized=!0,t.extra.parenStart=r,t}}})}return e=Jt(e,e=>{switch(e.type){case"LogicalExpression":if(Kt(e))return function e(t){if(!Kt(t))return t;return e({type:"LogicalExpression",operator:t.operator,left:e({type:"LogicalExpression",operator:t.operator,left:t.left,right:t.right.left,range:Lt(t.left,t.right.left)}),right:t.right.right,range:Lt(t)})}(e);break;case"VariableDeclaration":{const r=It(e.declarations);r&&r.init&&function(e,r){if(";"===t.originalText[Bt(r)])return;e.range=Lt(e,r)}(e,r);break}case"TSParenthesizedType":return e.typeAnnotation.range=Lt(e),e.typeAnnotation;case"TSUnionType":case"TSIntersectionType":if(1===e.types.length){const[t]=e.types;return t.range=Lt(e),t}break;case"TSTypeParameter":"string"==typeof e.name&&(e.name={type:"Identifier",name:e.name,range:Lt(e,e.name.length)});break;case"SequenceExpression":{const t=It(e.expressions);Bt(e)>Bt(t)&&(e.range=Lt(e,t));break}case"ClassProperty":e.key&&"TSPrivateIdentifier"===e.key.type&&"?"===Ot(t.originalText,e.key,Bt)&&(e.optional=!0)}})},Ut=1e3,Vt=6e4,qt=60*Vt,Wt=24*qt,Ht=7*Wt,Gt=365.25*Wt,Yt=function(e,t){t=t||{};var r=typeof e;if("string"===r&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var r=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return r*Gt;case"weeks":case"week":case"w":return r*Ht;case"days":case"day":case"d":return r*Wt;case"hours":case"hour":case"hrs":case"hr":case"h":return r*qt;case"minutes":case"minute":case"mins":case"min":case"m":return r*Vt;case"seconds":case"second":case"secs":case"sec":case"s":return r*Ut;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}(e);if("number"===r&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=Wt)return Xt(e,t,Wt,"day");if(t>=qt)return Xt(e,t,qt,"hour");if(t>=Vt)return Xt(e,t,Vt,"minute");if(t>=Ut)return Xt(e,t,Ut,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=Wt)return Math.round(e/Wt)+"d";if(t>=qt)return Math.round(e/qt)+"h";if(t>=Vt)return Math.round(e/Vt)+"m";if(t>=Ut)return Math.round(e/Ut)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Xt(e,t,r,n){var i=t>=1.5*r;return Math.round(e/r)+" "+n+(i?"s":"")}var Qt=function(e){function t(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return r.colors[Math.abs(t)%r.colors.length]}function r(e){let a;function o(...e){if(!o.enabled)return;const t=o,n=Number(new Date),i=n-(a||n);t.diff=i,t.prev=a,t.curr=n,a=n,e[0]=r.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(n,i)=>{if("%%"===n)return n;s++;const a=r.formatters[i];if("function"==typeof a){const r=e[s];n=a.call(t,r),e.splice(s,1),s--}return n}),r.formatArgs.call(t,e);(t.log||r.log).apply(t,e)}return o.namespace=e,o.enabled=r.enabled(e),o.useColors=r.useColors(),o.color=t(e),o.destroy=n,o.extend=i,"function"==typeof r.init&&r.init(o),r.instances.push(o),o}function n(){const e=r.instances.indexOf(this);return-1!==e&&(r.instances.splice(e,1),!0)}function i(e,t){const n=r(this.namespace+(void 0===t?":":t)+e);return n.log=this.log,n}function a(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return r.debug=r,r.default=r,r.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},r.disable=function(){const e=[...r.names.map(a),...r.skips.map(a).map(e=>"-"+e)].join(",");return r.enable(""),e},r.enable=function(e){let t;r.save(e),r.names=[],r.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),i=n.length;for(t=0;t<i;t++)n[t]&&("-"===(e=n[t].replace(/\*/g,".*?"))[0]?r.skips.push(new RegExp("^"+e.substr(1)+"$")):r.names.push(new RegExp("^"+e+"$")));for(t=0;t<r.instances.length;t++){const e=r.instances[t];e.enabled=r.enabled(e.namespace)}},r.enabled=function(e){if("*"===e[e.length-1])return!0;let t,n;for(t=0,n=r.skips.length;t<n;t++)if(r.skips[t].test(e))return!1;for(t=0,n=r.names.length;t<n;t++)if(r.names[t].test(e))return!0;return!1},r.humanize=Yt,Object.keys(e).forEach(t=>{r[t]=e[t]}),r.instances=[],r.names=[],r.skips=[],r.formatters={},r.selectColor=t,r.enable(r.load()),r},$t=r((function(e,t){t.log=function(...e){return"object"==typeof console&&console.log&&console.log(...e)},t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(n++,"%c"===e&&(i=n))}),t.splice(i,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&void 0!==V&&"env"in V&&(e=V.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.exports=Qt(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}})),Zt={isatty:()=>!1},er=Object.freeze({__proto__:null,default:Zt}),tr=Object.freeze({__proto__:null,default:{}}),rr=(e,t=V.argv)=>{const r=e.startsWith("-")?"":1===e.length?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return-1!==n&&(-1===i||n<i)},nr=n(er);const{env:ir}=V;let ar;function or(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function sr(e,t){if(0===ar)return 0;if(rr("color=16m")||rr("color=full")||rr("color=truecolor"))return 3;if(rr("color=256"))return 2;if(e&&!t&&void 0===ar)return 0;const r=ar||0;if("dumb"===ir.TERM)return r;if("win32"===V.platform){const e=c.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in ir)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(e=>e in ir)||"codeship"===ir.CI_NAME?1:r;if("TEAMCITY_VERSION"in ir)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ir.TEAMCITY_VERSION)?1:0;if("GITHUB_ACTIONS"in ir)return 1;if("truecolor"===ir.COLORTERM)return 3;if("TERM_PROGRAM"in ir){const e=parseInt((ir.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ir.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(ir.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ir.TERM)||"COLORTERM"in ir?1:r}rr("no-color")||rr("no-colors")||rr("color=false")||rr("color=never")?ar=0:(rr("color")||rr("colors")||rr("color=true")||rr("color=always"))&&(ar=1),"FORCE_COLOR"in ir&&(ar="true"===ir.FORCE_COLOR?1:"false"===ir.FORCE_COLOR?0:0===ir.FORCE_COLOR.length?1:Math.min(parseInt(ir.FORCE_COLOR,10),3));var cr={supportsColor:function(e){return or(sr(e,e&&e.isTTY))},stdout:or(sr(!0,nr.isatty(1))),stderr:or(sr(!0,nr.isatty(2)))},ur=n(tr),lr=(r((function(e,t){t.init=function(e){e.inspectOpts={};const r=Object.keys(t.inspectOpts);for(let n=0;n<r.length;n++)e.inspectOpts[r[n]]=t.inspectOpts[r[n]]},t.log=function(...e){return V.stderr.write(ur.format(...e)+"\n")},t.formatArgs=function(r){const{namespace:n,useColors:i}=this;if(i){const t=this.color,i="[3"+(t<8?t:"8;5;"+t),a=" ".concat(i,";1m").concat(n," [0m");r[0]=a+r[0].split("\n").join("\n"+a),r.push(i+"m+"+e.exports.humanize(this.diff)+"[0m")}else r[0]=function(){if(t.inspectOpts.hideDate)return"";return(new Date).toISOString()+" "}()+n+" "+r[0]},t.save=function(e){e?V.env.DEBUG=e:delete V.env.DEBUG},t.load=function(){return V.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):nr.isatty(V.stderr.fd)},t.colors=[6,2,3,4,5,1];try{const e=cr;e&&(e.stderr||e).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(V.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{const r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>t.toUpperCase());let n=V.env[t];return n=!!/^(yes|on|true|enabled)$/i.test(n)||!/^(no|off|false|disabled)$/i.test(n)&&("null"===n?null:Number(n)),e[r]=n,e},{}),e.exports=Qt(t);const{formatters:r}=e.exports;r.o=function(e){return this.inspectOpts.colors=this.useColors,ur.inspect(e,this.inspectOpts).replace(/\s*\n\s*/g," ")},r.O=function(e){return this.inspectOpts.colors=this.useColors,ur.inspect(e,this.inspectOpts)}})),r((function(e){void 0===V||V.type,e.exports=$t}))),dr=Object.freeze({__proto__:null,default:{}});const _r=/[/\\]/;function pr(e){return e.split(_r).pop()}var fr=n(Object.freeze({__proto__:null,extname:function(e){const t=pr(e),r=t.lastIndexOf(".");return-1===r?"":t.slice(r)},basename:pr,isAbsolute:function(){return!0}})),gr=n(dr),mr="win32"===V.platform,yr=V.env.NODE_DEBUG&&/fs/.test(V.env.NODE_DEBUG);function hr(e){return"function"==typeof e?e:function(){var e;if(yr){var t=new Error;e=function(e){e&&(t.message=e.message,r(e=t))}}else e=r;return e;function r(e){if(e){if(V.throwDeprecation)throw e;if(!V.noDeprecation){var t="fs: missing callback "+(e.stack||e.message);V.traceDeprecation?console.trace(t):console.error(t)}}}}()}fr.normalize;if(mr)var vr=/(.*?)(?:[\/\\]+|$)/g;else vr=/(.*?)(?:[\/]+|$)/g;if(mr)var br=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;else br=/^[\/]*/;var xr=function(e,t){if(e=fr.resolve(e),t&&Object.prototype.hasOwnProperty.call(t,e))return t[e];var r,n,i,a,o=e,s={},c={};function u(){var t=br.exec(e);r=t[0].length,n=t[0],i=t[0],a="",mr&&!c[i]&&(gr.lstatSync(i),c[i]=!0)}for(u();r<e.length;){vr.lastIndex=r;var l=vr.exec(e);if(a=n,n+=l[0],i=a+l[1],r=vr.lastIndex,!(c[i]||t&&t[i]===i)){var d;if(t&&Object.prototype.hasOwnProperty.call(t,i))d=t[i];else{var _=gr.lstatSync(i);if(!_.isSymbolicLink()){c[i]=!0,t&&(t[i]=i);continue}var p=null;if(!mr){var f=_.dev.toString(32)+":"+_.ino.toString(32);s.hasOwnProperty(f)&&(p=s[f])}null===p&&(gr.statSync(i),p=gr.readlinkSync(i)),d=fr.resolve(a,p),t&&(t[i]=d),mr||(s[f]=p)}e=fr.resolve(d,e.slice(r)),u()}}return t&&(t[o]=e),e},Dr=function(e,t,r){if("function"!=typeof r&&(r=hr(t),t=null),e=fr.resolve(e),t&&Object.prototype.hasOwnProperty.call(t,e))return P(r.bind(null,null,t[e]));var n,i,a,o,s=e,c={},u={};function l(){var t=br.exec(e);n=t[0].length,i=t[0],a=t[0],o="",mr&&!u[a]?gr.lstat(a,(function(e){if(e)return r(e);u[a]=!0,d()})):P(d)}function d(){if(n>=e.length)return t&&(t[s]=e),r(null,e);vr.lastIndex=n;var c=vr.exec(e);return o=i,i+=c[0],a=o+c[1],n=vr.lastIndex,u[a]||t&&t[a]===a?P(d):t&&Object.prototype.hasOwnProperty.call(t,a)?f(t[a]):gr.lstat(a,_)}function _(e,n){if(e)return r(e);if(!n.isSymbolicLink())return u[a]=!0,t&&(t[a]=a),P(d);if(!mr){var i=n.dev.toString(32)+":"+n.ino.toString(32);if(c.hasOwnProperty(i))return p(null,c[i],a)}gr.stat(a,(function(e){if(e)return r(e);gr.readlink(a,(function(e,t){mr||(c[i]=t),p(e,t)}))}))}function p(e,n,i){if(e)return r(e);var a=fr.resolve(o,n);t&&(t[i]=a),f(a)}function f(t){e=fr.resolve(t,e.slice(n)),l()}l()},Sr=Ar;Ar.realpath=Ar,Ar.sync=Fr,Ar.realpathSync=Fr,Ar.monkeypatch=function(){gr.realpath=Ar,gr.realpathSync=Fr},Ar.unmonkeypatch=function(){gr.realpath=Tr,gr.realpathSync=Er};var Tr=gr.realpath,Er=gr.realpathSync,Cr=V.version,kr=/^v[0-5]\./.test(Cr);function Nr(e){return e&&"realpath"===e.syscall&&("ELOOP"===e.code||"ENOMEM"===e.code||"ENAMETOOLONG"===e.code)}function Ar(e,t,r){if(kr)return Tr(e,t,r);"function"==typeof t&&(r=t,t=null),Tr(e,t,(function(n,i){Nr(n)?Dr(e,t,r):r(n,i)}))}function Fr(e,t){if(kr)return Er(e,t);try{return Er(e,t)}catch(r){if(Nr(r))return xr(e,t);throw r}}var Pr=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},wr=Ir;function Ir(e,t,r){e instanceof RegExp&&(e=Or(e,r)),t instanceof RegExp&&(t=Or(t,r));var n=Mr(e,t,r);return n&&{start:n[0],end:n[1],pre:r.slice(0,n[0]),body:r.slice(n[0]+e.length,n[1]),post:r.slice(n[1]+t.length)}}function Or(e,t){var r=t.match(e);return r?r[0]:null}function Mr(e,t,r){var n,i,a,o,s,c=r.indexOf(e),u=r.indexOf(t,c+1),l=c;if(c>=0&&u>0){for(n=[],a=r.length;l>=0&&!s;)l==c?(n.push(l),c=r.indexOf(e,l+1)):1==n.length?s=[n.pop(),u]:((i=n.pop())<a&&(a=i,o=u),u=r.indexOf(t,l+1)),l=c<u&&c>=0?c:u;n.length&&(s=[a,o])}return s}Ir.range=Mr;var Lr=function(e){if(!e)return[];"{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2));return function e(t,r){var n=[],i=wr("{","}",t);if(!i||/\$$/.test(i.pre))return[t];var a,o=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),s=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),c=o||s,u=i.body.indexOf(",")>=0;if(!c&&!u)return i.post.match(/,.*\}/)?(t=i.pre+"{"+i.body+jr+i.post,e(t)):[t];if(c)a=i.body.split(/\.\./);else{if(1===(a=function e(t){if(!t)return[""];var r=[],n=wr("{","}",t);if(!n)return t.split(",");var i=n.pre,a=n.body,o=n.post,s=i.split(",");s[s.length-1]+="{"+a+"}";var c=e(o);o.length&&(s[s.length-1]+=c.shift(),s.push.apply(s,c));return r.push.apply(r,s),r}(i.body)).length)if(1===(a=e(a[0],!1).map(Vr)).length)return(_=i.post.length?e(i.post,!1):[""]).map((function(e){return i.pre+a[0]+e}))}var l,d=i.pre,_=i.post.length?e(i.post,!1):[""];if(c){var p=zr(a[0]),f=zr(a[1]),g=Math.max(a[0].length,a[1].length),m=3==a.length?Math.abs(zr(a[2])):1,y=Wr;f<p&&(m*=-1,y=Hr);var h=a.some(qr);l=[];for(var v=p;y(v,f);v+=m){var b;if(s)"\\"===(b=String.fromCharCode(v))&&(b="");else if(b=String(v),h){var x=g-b.length;if(x>0){var D=new Array(x+1).join("0");b=v<0?"-"+D+b.slice(1):D+b}}l.push(b)}}else l=function(e,t){for(var r=[],n=0;n<e.length;n++){var i=t(e[n],n);Pr(i)?r.push.apply(r,i):r.push(i)}return r}(a,(function(t){return e(t,!1)}));for(var S=0;S<l.length;S++)for(var T=0;T<_.length;T++){var E=d+l[S]+_[T];(!r||c||E)&&n.push(E)}return n}(function(e){return e.split("\\\\").join(Rr).split("\\{").join(Br).split("\\}").join(jr).split("\\,").join(Jr).split("\\.").join(Kr)}(e),!0).map(Ur)},Rr="\0SLASH"+Math.random()+"\0",Br="\0OPEN"+Math.random()+"\0",jr="\0CLOSE"+Math.random()+"\0",Jr="\0COMMA"+Math.random()+"\0",Kr="\0PERIOD"+Math.random()+"\0";function zr(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function Ur(e){return e.split(Rr).join("\\").split(Br).join("{").split(jr).join("}").split(Jr).join(",").split(Kr).join(".")}function Vr(e){return"{"+e+"}"}function qr(e){return/^-?0\d/.test(e)}function Wr(e,t){return e<=t}function Hr(e,t){return e>=t}var Gr=tn;tn.Minimatch=rn;var Yr={sep:"/"};try{Yr=fr}catch(e){}var Xr=tn.GLOBSTAR=rn.GLOBSTAR={},Qr={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},$r=function(e){return e.split("").reduce((function(e,t){return e[t]=!0,e}),{})}("().*{}+?[]^$\\!");var Zr=/\/+/;function en(e,t){e=e||{},t=t||{};var r={};return Object.keys(t).forEach((function(e){r[e]=t[e]})),Object.keys(e).forEach((function(t){r[t]=e[t]})),r}function tn(e,t,r){if("string"!=typeof t)throw new TypeError("glob pattern string required");return r||(r={}),!(!r.nocomment&&"#"===t.charAt(0))&&(""===t.trim()?""===e:new rn(t,r).match(e))}function rn(e,t){if(!(this instanceof rn))return new rn(e,t);if("string"!=typeof e)throw new TypeError("glob pattern string required");t||(t={}),e=e.trim(),"/"!==Yr.sep&&(e=e.split(Yr.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function nn(e,t){if(t||(t=this instanceof rn?this.options:{}),void 0===(e=void 0===e?this.pattern:e))throw new TypeError("undefined pattern");return t.nobrace||!e.match(/\{.*\}/)?[e]:Lr(e)}tn.filter=function(e,t){return t=t||{},function(r,n,i){return tn(r,e,t)}},tn.defaults=function(e){if(!e||!Object.keys(e).length)return tn;var t=tn,r=function(r,n,i){return t.minimatch(r,n,en(e,i))};return r.Minimatch=function(r,n){return new t.Minimatch(r,en(e,n))},r},rn.defaults=function(e){return e&&Object.keys(e).length?tn.defaults(e).Minimatch:rn},rn.prototype.debug=function(){},rn.prototype.make=function(){if(this._made)return;var e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0))return void(this.comment=!0);if(!e)return void(this.empty=!0);this.parseNegate();var r=this.globSet=this.braceExpand();t.debug&&(this.debug=console.error);this.debug(this.pattern,r),r=this.globParts=r.map((function(e){return e.split(Zr)})),this.debug(this.pattern,r),r=r.map((function(e,t,r){return e.map(this.parse,this)}),this),this.debug(this.pattern,r),r=r.filter((function(e){return-1===e.indexOf(!1)})),this.debug(this.pattern,r),this.set=r},rn.prototype.parseNegate=function(){var e=this.pattern,t=!1,r=this.options,n=0;if(r.nonegate)return;for(var i=0,a=e.length;i<a&&"!"===e.charAt(i);i++)t=!t,n++;n&&(this.pattern=e.substr(n));this.negate=t},tn.braceExpand=function(e,t){return nn(e,t)},rn.prototype.braceExpand=nn,rn.prototype.parse=function(e,t){if(e.length>65536)throw new TypeError("pattern is too long");var r=this.options;if(!r.noglobstar&&"**"===e)return Xr;if(""===e)return"";var n,i="",a=!!r.nocase,o=!1,s=[],c=[],u=!1,l=-1,d=-1,_="."===e.charAt(0)?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",p=this;function f(){if(n){switch(n){case"*":i+="[^/]*?",a=!0;break;case"?":i+="[^/]",a=!0;break;default:i+="\\"+n}p.debug("clearStateChar %j %j",n,i),n=!1}}for(var g,m=0,y=e.length;m<y&&(g=e.charAt(m));m++)if(this.debug("%s\t%s %s %j",e,m,i,g),o&&$r[g])i+="\\"+g,o=!1;else switch(g){case"/":return!1;case"\\":f(),o=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s\t%s %s %j <-- stateChar",e,m,i,g),u){this.debug(" in class"),"!"===g&&m===d+1&&(g="^"),i+=g;continue}p.debug("call clearStateChar %j",n),f(),n=g,r.noext&&f();continue;case"(":if(u){i+="(";continue}if(!n){i+="\\(";continue}s.push({type:n,start:m-1,reStart:i.length,open:Qr[n].open,close:Qr[n].close}),i+="!"===n?"(?:(?!(?:":"(?:",this.debug("plType %j %j",n,i),n=!1;continue;case")":if(u||!s.length){i+="\\)";continue}f(),a=!0;var h=s.pop();i+=h.close,"!"===h.type&&c.push(h),h.reEnd=i.length;continue;case"|":if(u||!s.length||o){i+="\\|",o=!1;continue}f(),i+="|";continue;case"[":if(f(),u){i+="\\"+g;continue}u=!0,d=m,l=i.length,i+=g;continue;case"]":if(m===d+1||!u){i+="\\"+g,o=!1;continue}if(u){var v=e.substring(d+1,m);try{RegExp("["+v+"]")}catch(e){var b=this.parse(v,an);i=i.substr(0,l)+"\\["+b[0]+"\\]",a=a||b[1],u=!1;continue}}a=!0,u=!1,i+=g;continue;default:f(),o?o=!1:!$r[g]||"^"===g&&u||(i+="\\"),i+=g}u&&(v=e.substr(d+1),b=this.parse(v,an),i=i.substr(0,l)+"\\["+b[0],a=a||b[1]);for(h=s.pop();h;h=s.pop()){var x=i.slice(h.reStart+h.open.length);this.debug("setting tail",i,h),x=x.replace(/((?:\\{2}){0,64})(\\?)\|/g,(function(e,t,r){return r||(r="\\"),t+t+r+"|"})),this.debug("tail=%j\n %s",x,x,h,i);var D="*"===h.type?"[^/]*?":"?"===h.type?"[^/]":"\\"+h.type;a=!0,i=i.slice(0,h.reStart)+D+"\\("+x}f(),o&&(i+="\\\\");var S=!1;switch(i.charAt(0)){case".":case"[":case"(":S=!0}for(var T=c.length-1;T>-1;T--){var E=c[T],C=i.slice(0,E.reStart),k=i.slice(E.reStart,E.reEnd-8),N=i.slice(E.reEnd-8,E.reEnd),A=i.slice(E.reEnd);N+=A;var F=C.split("(").length-1,P=A;for(m=0;m<F;m++)P=P.replace(/\)[+*?]?/,"");var w="";""===(A=P)&&t!==an&&(w="$"),i=C+k+A+w+N}""!==i&&a&&(i="(?=.)"+i);S&&(i=_+i);if(t===an)return[i,a];if(!a)return function(e){return e.replace(/\\(.)/g,"$1")}(e);var I=r.nocase?"i":"";try{var O=new RegExp("^"+i+"$",I)}catch(e){return new RegExp("$.")}return O._glob=e,O._src=i,O};var an={};tn.makeRe=function(e,t){return new rn(e,t||{}).makeRe()},rn.prototype.makeRe=function(){if(this.regexp||!1===this.regexp)return this.regexp;var e=this.set;if(!e.length)return this.regexp=!1,this.regexp;var t=this.options,r=t.noglobstar?"[^/]*?":t.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",n=t.nocase?"i":"",i=e.map((function(e){return e.map((function(e){return e===Xr?r:"string"==typeof e?function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}(e):e._src})).join("\\/")})).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,n)}catch(e){this.regexp=!1}return this.regexp},tn.match=function(e,t,r){var n=new rn(t,r=r||{});return e=e.filter((function(e){return n.match(e)})),n.options.nonull&&!e.length&&e.push(t),e},rn.prototype.match=function(e,t){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return""===e;if("/"===e&&t)return!0;var r=this.options;"/"!==Yr.sep&&(e=e.split(Yr.sep).join("/"));e=e.split(Zr),this.debug(this.pattern,"split",e);var n,i,a=this.set;for(this.debug(this.pattern,"set",a),i=e.length-1;i>=0&&!(n=e[i]);i--);for(i=0;i<a.length;i++){var o=a[i],s=e;if(r.matchBase&&1===o.length&&(s=[n]),this.matchOne(s,o,t))return!!r.flipNegate||!this.negate}return!r.flipNegate&&this.negate},rn.prototype.matchOne=function(e,t,r){var n=this.options;this.debug("matchOne",{this:this,file:e,pattern:t}),this.debug("matchOne",e.length,t.length);for(var i=0,a=0,o=e.length,s=t.length;i<o&&a<s;i++,a++){this.debug("matchOne loop");var c,u=t[a],l=e[i];if(this.debug(t,u,l),!1===u)return!1;if(u===Xr){this.debug("GLOBSTAR",[t,u,l]);var d=i,_=a+1;if(_===s){for(this.debug("** at the end");i<o;i++)if("."===e[i]||".."===e[i]||!n.dot&&"."===e[i].charAt(0))return!1;return!0}for(;d<o;){var p=e[d];if(this.debug("\nglobstar while",e,d,t,_,p),this.matchOne(e.slice(d),t.slice(_),r))return this.debug("globstar found match!",d,o,p),!0;if("."===p||".."===p||!n.dot&&"."===p.charAt(0)){this.debug("dot detected!",e,d,t,_);break}this.debug("globstar swallow a segment, and continue"),d++}return!(!r||(this.debug("\n>>> no match, partial?",e,d,t,_),d!==o))}if("string"==typeof u?(c=n.nocase?l.toLowerCase()===u.toLowerCase():l===u,this.debug("string match",u,l,c)):(c=l.match(u),this.debug("pattern match",u,l,c)),!c)return!1}if(i===o&&a===s)return!0;if(i===o)return r;if(a===s)return i===o-1&&""===e[i];throw new Error("wtf?")};var on=r((function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}})),sn=r((function(e){try{var t=ur;if("function"!=typeof t.inherits)throw"";e.exports=t.inherits}catch(t){e.exports=on}}));var cn=Object.freeze({__proto__:null,EventEmitter:class{}});function un(){}un.ok=function(){},un.strictEqual=function(){};var ln=Object.freeze({__proto__:null,default:un});function dn(e){return"/"===e.charAt(0)}function _n(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/.exec(e),r=t[1]||"",n=Boolean(r&&":"!==r.charAt(1));return Boolean(t[2]||n)}var pn="win32"===V.platform?_n:dn,fn=dn,gn=_n;pn.posix=fn,pn.win32=gn;var mn=Nn,yn=kn,hn=function(e,t,r){r||(r={});if(r.matchBase&&-1===t.indexOf("/")){if(r.noglobstar)throw new Error("base matching requires globstar");t="**/"+t}e.silent=!!r.silent,e.pattern=t,e.strict=!1!==r.strict,e.realpath=!!r.realpath,e.realpathCache=r.realpathCache||Object.create(null),e.follow=!!r.follow,e.dot=!!r.dot,e.mark=!!r.mark,e.nodir=!!r.nodir,e.nodir&&(e.mark=!0);e.sync=!!r.sync,e.nounique=!!r.nounique,e.nonull=!!r.nonull,e.nosort=!!r.nosort,e.nocase=!!r.nocase,e.stat=!!r.stat,e.noprocess=!!r.noprocess,e.absolute=!!r.absolute,e.maxLength=r.maxLength||1/0,e.cache=r.cache||Object.create(null),e.statCache=r.statCache||Object.create(null),e.symlinks=r.symlinks||Object.create(null),function(e,t){e.ignore=t.ignore||[],Array.isArray(e.ignore)||(e.ignore=[e.ignore]);e.ignore.length&&(e.ignore=e.ignore.map(An))}(e,r),e.changedCwd=!1;var n=V.cwd();En(r,"cwd")?(e.cwd=fr.resolve(r.cwd),e.changedCwd=e.cwd!==n):e.cwd=n;e.root=r.root||fr.resolve(e.cwd,"/"),e.root=fr.resolve(e.root),"win32"===V.platform&&(e.root=e.root.replace(/\\/g,"/"));e.cwdAbs=pn(e.cwd)?e.cwd:Fn(e,e.cwd),"win32"===V.platform&&(e.cwdAbs=e.cwdAbs.replace(/\\/g,"/"));e.nomount=!!r.nomount,r.nonegate=!0,r.nocomment=!0,e.minimatch=new Cn(t,r),e.options=e.minimatch.options},vn=En,bn=Fn,xn=function(e){for(var t=e.nounique,r=t?[]:Object.create(null),n=0,i=e.matches.length;n<i;n++){var a=e.matches[n];if(a&&0!==Object.keys(a).length){var o=Object.keys(a);t?r.push.apply(r,o):o.forEach((function(e){r[e]=!0}))}else if(e.nonull){var s=e.minimatch.globSet[n];t?r.push(s):r[s]=!0}}t||(r=Object.keys(r));e.nosort||(r=r.sort(e.nocase?kn:Nn));if(e.mark){for(n=0;n<r.length;n++)r[n]=e._mark(r[n]);e.nodir&&(r=r.filter((function(t){var r=!/\/$/.test(t),n=e.cache[t]||e.cache[Fn(e,t)];return r&&n&&(r="DIR"!==n&&!Array.isArray(n)),r})))}e.ignore.length&&(r=r.filter((function(t){return!Pn(e,t)})));e.found=r},Dn=function(e,t){var r=Fn(e,t),n=e.cache[r],i=t;if(n){var a="DIR"===n||Array.isArray(n),o="/"===t.slice(-1);if(a&&!o?i+="/":!a&&o&&(i=i.slice(0,-1)),i!==t){var s=Fn(e,i);e.statCache[s]=e.statCache[r],e.cache[s]=e.cache[r]}}return i},Sn=Pn,Tn=function(e,t){return!!e.ignore.length&&e.ignore.some((function(e){return!(!e.gmatcher||!e.gmatcher.match(t))}))};function En(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var Cn=Gr.Minimatch;function kn(e,t){return e.toLowerCase().localeCompare(t.toLowerCase())}function Nn(e,t){return e.localeCompare(t)}function An(e){var t=null;if("/**"===e.slice(-3)){var r=e.replace(/(\/\*\*)+$/,"");t=new Cn(r,{dot:!0})}return{matcher:new Cn(e,{dot:!0}),gmatcher:t}}function Fn(e,t){var r=t;return r="/"===t.charAt(0)?fr.join(e.root,t):pn(t)||""===t?t:e.changedCwd?fr.resolve(e.cwd,t):fr.resolve(t),"win32"===V.platform&&(r=r.replace(/\\/g,"/")),r}function Pn(e,t){return!!e.ignore.length&&e.ignore.some((function(e){return e.matcher.match(t)||!(!e.gmatcher||!e.gmatcher.match(t))}))}var wn={alphasort:mn,alphasorti:yn,setopts:hn,ownProp:vn,makeAbs:bn,finish:xn,mark:Dn,isIgnored:Sn,childrenIgnored:Tn},In=n(ln),On=jn;jn.GlobSync=Jn;var Mn=wn.setopts,Ln=wn.ownProp,Rn=wn.childrenIgnored,Bn=wn.isIgnored;function jn(e,t){if("function"==typeof t||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");return new Jn(e,t).found}function Jn(e,t){if(!e)throw new Error("must provide pattern");if("function"==typeof t||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof Jn))return new Jn(e,t);if(Mn(this,e,t),this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var n=0;n<r;n++)this._process(this.minimatch.set[n],n,!1);this._finish()}Jn.prototype._finish=function(){if(In(this instanceof Jn),this.realpath){var e=this;this.matches.forEach((function(t,r){var n=e.matches[r]=Object.create(null);for(var i in t)try{i=e._makeAbs(i),n[Sr.realpathSync(i,e.realpathCache)]=!0}catch(t){if("stat"!==t.syscall)throw t;n[e._makeAbs(i)]=!0}}))}wn.finish(this)},Jn.prototype._process=function(e,t,r){In(this instanceof Jn);for(var n,i=0;"string"==typeof e[i];)i++;switch(i){case e.length:return void this._processSimple(e.join("/"),t);case 0:n=null;break;default:n=e.slice(0,i).join("/")}var a,o=e.slice(i);null===n?a=".":pn(n)||pn(e.join("/"))?(n&&pn(n)||(n="/"+n),a=n):a=n;var s=this._makeAbs(a);Rn(this,a)||(o[0]===Gr.GLOBSTAR?this._processGlobStar(n,a,s,o,t,r):this._processReaddir(n,a,s,o,t,r))},Jn.prototype._processReaddir=function(e,t,r,n,i,a){var o=this._readdir(r,a);if(o){for(var s=n[0],c=!!this.minimatch.negate,u=s._glob,l=this.dot||"."===u.charAt(0),d=[],_=0;_<o.length;_++){if("."!==(g=o[_]).charAt(0)||l)(c&&!e?!g.match(s):g.match(s))&&d.push(g)}var p=d.length;if(0!==p)if(1!==n.length||this.mark||this.stat){n.shift();for(_=0;_<p;_++){var f;g=d[_];f=e?[e,g]:[g],this._process(f.concat(n),i,a)}}else{this.matches[i]||(this.matches[i]=Object.create(null));for(var _=0;_<p;_++){var g=d[_];e&&(g="/"!==e.slice(-1)?e+"/"+g:e+g),"/"!==g.charAt(0)||this.nomount||(g=fr.join(this.root,g)),this._emitMatch(i,g)}}}},Jn.prototype._emitMatch=function(e,t){if(!Bn(this,t)){var r=this._makeAbs(t);if(this.mark&&(t=this._mark(t)),this.absolute&&(t=r),!this.matches[e][t]){if(this.nodir){var n=this.cache[r];if("DIR"===n||Array.isArray(n))return}this.matches[e][t]=!0,this.stat&&this._stat(t)}}},Jn.prototype._readdirInGlobStar=function(e){if(this.follow)return this._readdir(e,!1);var t,r;try{r=gr.lstatSync(e)}catch(e){if("ENOENT"===e.code)return null}var n=r&&r.isSymbolicLink();return this.symlinks[e]=n,n||!r||r.isDirectory()?t=this._readdir(e,!1):this.cache[e]="FILE",t},Jn.prototype._readdir=function(e,t){if(t&&!Ln(this.symlinks,e))return this._readdirInGlobStar(e);if(Ln(this.cache,e)){var r=this.cache[e];if(!r||"FILE"===r)return null;if(Array.isArray(r))return r}try{return this._readdirEntries(e,gr.readdirSync(e))}catch(t){return this._readdirError(e,t),null}},Jn.prototype._readdirEntries=function(e,t){if(!this.mark&&!this.stat)for(var r=0;r<t.length;r++){var n=t[r];n="/"===e?e+n:e+"/"+n,this.cache[n]=!0}return this.cache[e]=t,t},Jn.prototype._readdirError=function(e,t){switch(t.code){case"ENOTSUP":case"ENOTDIR":var r=this._makeAbs(e);if(this.cache[r]="FILE",r===this.cwdAbs){var n=new Error(t.code+" invalid cwd "+this.cwd);throw n.path=this.cwd,n.code=t.code,n}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=!1;break;default:if(this.cache[this._makeAbs(e)]=!1,this.strict)throw t;this.silent||console.error("glob error",t)}},Jn.prototype._processGlobStar=function(e,t,r,n,i,a){var o=this._readdir(r,a);if(o){var s=n.slice(1),c=e?[e]:[],u=c.concat(s);this._process(u,i,!1);var l=o.length;if(!this.symlinks[r]||!a)for(var d=0;d<l;d++){if("."!==o[d].charAt(0)||this.dot){var _=c.concat(o[d],s);this._process(_,i,!0);var p=c.concat(o[d],n);this._process(p,i,!0)}}}},Jn.prototype._processSimple=function(e,t){var r=this._stat(e);if(this.matches[t]||(this.matches[t]=Object.create(null)),r){if(e&&pn(e)&&!this.nomount){var n=/[\/\\]$/.test(e);"/"===e.charAt(0)?e=fr.join(this.root,e):(e=fr.resolve(this.root,e),n&&(e+="/"))}"win32"===V.platform&&(e=e.replace(/\\/g,"/")),this._emitMatch(t,e)}},Jn.prototype._stat=function(e){var t=this._makeAbs(e),r="/"===e.slice(-1);if(e.length>this.maxLength)return!1;if(!this.stat&&Ln(this.cache,t)){var n=this.cache[t];if(Array.isArray(n)&&(n="DIR"),!r||"DIR"===n)return n;if(r&&"FILE"===n)return!1}var i=this.statCache[t];if(!i){var a;try{a=gr.lstatSync(t)}catch(e){if(e&&("ENOENT"===e.code||"ENOTDIR"===e.code))return this.statCache[t]=!1,!1}if(a&&a.isSymbolicLink())try{i=gr.statSync(t)}catch(e){i=a}else i=a}this.statCache[t]=i;n=!0;return i&&(n=i.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||n,(!r||"FILE"!==n)&&n},Jn.prototype._mark=function(e){return wn.mark(this,e)},Jn.prototype._makeAbs=function(e){return wn.makeAbs(this,e)};var Kn=function e(t,r){if(t&&r)return e(t)(r);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach((function(e){n[e]=t[e]})),n;function n(){for(var e=new Array(arguments.length),r=0;r<e.length;r++)e[r]=arguments[r];var n=t.apply(this,e),i=e[e.length-1];return"function"==typeof n&&n!==i&&Object.keys(i).forEach((function(e){n[e]=i[e]})),n}};var zn=Kn(Vn),Un=Kn(qn);function Vn(e){var t=function t(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function qn(e){var t=function t(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}Vn.proto=Vn((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return Vn(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return qn(this)},configurable:!0})})),zn.strict=Un;var Wn=Object.create(null),Hn=Kn((function(e,t){return Wn[e]?(Wn[e].push(t),null):(Wn[e]=[t],function(e){return zn((function t(){var r=Wn[e],n=r.length,i=Gn(arguments);try{for(var a=0;a<n;a++)r[a].apply(null,i)}finally{r.length>n?(r.splice(0,n),P((function(){t.apply(null,i)}))):delete Wn[e]}}))}(e))}));function Gn(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n]=e[n];return r}var Yn=ti,Xn=cn.EventEmitter,Qn=wn.setopts,$n=wn.ownProp,Zn=wn.childrenIgnored,ei=wn.isIgnored;function ti(e,t,r){if("function"==typeof t&&(r=t,t={}),t||(t={}),t.sync){if(r)throw new TypeError("callback provided to sync glob");return On(e,t)}return new ni(e,t,r)}ti.sync=On;var ri=ti.GlobSync=On.GlobSync;function ni(e,t,r){if("function"==typeof t&&(r=t,t=null),t&&t.sync){if(r)throw new TypeError("callback provided to sync glob");return new ri(e,t)}if(!(this instanceof ni))return new ni(e,t,r);Qn(this,e,t),this._didRealPath=!1;var n=this.minimatch.set.length;this.matches=new Array(n),"function"==typeof r&&(r=zn(r),this.on("error",r),this.on("end",(function(e){r(null,e)})));var i=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(0===n)return o();for(var a=0;a<n;a++)this._process(this.minimatch.set[a],a,!1,o);function o(){--i._processing,i._processing<=0&&i._finish()}}ti.glob=ti,ti.hasMagic=function(e,t){var r=function(e,t){if(null===t||"object"!=typeof t)return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}({},t);r.noprocess=!0;var n=new ni(e,r).minimatch.set;if(!e)return!1;if(n.length>1)return!0;for(var i=0;i<n[0].length;i++)if("string"!=typeof n[0][i])return!0;return!1},ti.Glob=ni,sn(ni,Xn),ni.prototype._finish=function(){if(In(this instanceof ni),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();wn.finish(this),this.emit("end",this.found)}},ni.prototype._realpath=function(){if(!this._didRealpath){this._didRealpath=!0;var e=this.matches.length;if(0===e)return this._finish();for(var t=this,r=0;r<this.matches.length;r++)this._realpathSet(r,n)}function n(){0==--e&&t._finish()}},ni.prototype._realpathSet=function(e,t){var r=this.matches[e];if(!r)return t();var n=Object.keys(r),i=this,a=n.length;if(0===a)return t();var o=this.matches[e]=Object.create(null);n.forEach((function(r,n){r=i._makeAbs(r),Sr.realpath(r,i.realpathCache,(function(n,s){n?"stat"===n.syscall?o[r]=!0:i.emit("error",n):o[s]=!0,0==--a&&(i.matches[e]=o,t())}))}))},ni.prototype._mark=function(e){return wn.mark(this,e)},ni.prototype._makeAbs=function(e){return wn.makeAbs(this,e)},ni.prototype.abort=function(){this.aborted=!0,this.emit("abort")},ni.prototype.pause=function(){this.paused||(this.paused=!0,this.emit("pause"))},ni.prototype.resume=function(){if(this.paused){if(this.emit("resume"),this.paused=!1,this._emitQueue.length){var e=this._emitQueue.slice(0);this._emitQueue.length=0;for(var t=0;t<e.length;t++){var r=e[t];this._emitMatch(r[0],r[1])}}if(this._processQueue.length){var n=this._processQueue.slice(0);this._processQueue.length=0;for(t=0;t<n.length;t++){var i=n[t];this._processing--,this._process(i[0],i[1],i[2],i[3])}}}},ni.prototype._process=function(e,t,r,n){if(In(this instanceof ni),In("function"==typeof n),!this.aborted)if(this._processing++,this.paused)this._processQueue.push([e,t,r,n]);else{for(var i,a=0;"string"==typeof e[a];)a++;switch(a){case e.length:return void this._processSimple(e.join("/"),t,n);case 0:i=null;break;default:i=e.slice(0,a).join("/")}var o,s=e.slice(a);null===i?o=".":pn(i)||pn(e.join("/"))?(i&&pn(i)||(i="/"+i),o=i):o=i;var c=this._makeAbs(o);if(Zn(this,o))return n();s[0]===Gr.GLOBSTAR?this._processGlobStar(i,o,c,s,t,r,n):this._processReaddir(i,o,c,s,t,r,n)}},ni.prototype._processReaddir=function(e,t,r,n,i,a,o){var s=this;this._readdir(r,a,(function(c,u){return s._processReaddir2(e,t,r,n,i,a,u,o)}))},ni.prototype._processReaddir2=function(e,t,r,n,i,a,o,s){if(!o)return s();for(var c=n[0],u=!!this.minimatch.negate,l=c._glob,d=this.dot||"."===l.charAt(0),_=[],p=0;p<o.length;p++){if("."!==(g=o[p]).charAt(0)||d)(u&&!e?!g.match(c):g.match(c))&&_.push(g)}var f=_.length;if(0===f)return s();if(1===n.length&&!this.mark&&!this.stat){this.matches[i]||(this.matches[i]=Object.create(null));for(p=0;p<f;p++){var g=_[p];e&&(g="/"!==e?e+"/"+g:e+g),"/"!==g.charAt(0)||this.nomount||(g=fr.join(this.root,g)),this._emitMatch(i,g)}return s()}n.shift();for(p=0;p<f;p++){g=_[p];e&&(g="/"!==e?e+"/"+g:e+g),this._process([g].concat(n),i,a,s)}s()},ni.prototype._emitMatch=function(e,t){if(!this.aborted&&!ei(this,t))if(this.paused)this._emitQueue.push([e,t]);else{var r=pn(t)?t:this._makeAbs(t);if(this.mark&&(t=this._mark(t)),this.absolute&&(t=r),!this.matches[e][t]){if(this.nodir){var n=this.cache[r];if("DIR"===n||Array.isArray(n))return}this.matches[e][t]=!0;var i=this.statCache[r];i&&this.emit("stat",t,i),this.emit("match",t)}}},ni.prototype._readdirInGlobStar=function(e,t){if(!this.aborted){if(this.follow)return this._readdir(e,!1,t);var r=this,n=Hn("lstat\0"+e,(function(n,i){if(n&&"ENOENT"===n.code)return t();var a=i&&i.isSymbolicLink();r.symlinks[e]=a,a||!i||i.isDirectory()?r._readdir(e,!1,t):(r.cache[e]="FILE",t())}));n&&gr.lstat(e,n)}},ni.prototype._readdir=function(e,t,r){if(!this.aborted&&(r=Hn("readdir\0"+e+"\0"+t,r))){if(t&&!$n(this.symlinks,e))return this._readdirInGlobStar(e,r);if($n(this.cache,e)){var n=this.cache[e];if(!n||"FILE"===n)return r();if(Array.isArray(n))return r(null,n)}gr.readdir(e,function(e,t,r){return function(n,i){n?e._readdirError(t,n,r):e._readdirEntries(t,i,r)}}(this,e,r))}},ni.prototype._readdirEntries=function(e,t,r){if(!this.aborted){if(!this.mark&&!this.stat)for(var n=0;n<t.length;n++){var i=t[n];i="/"===e?e+i:e+"/"+i,this.cache[i]=!0}return this.cache[e]=t,r(null,t)}},ni.prototype._readdirError=function(e,t,r){if(!this.aborted){switch(t.code){case"ENOTSUP":case"ENOTDIR":var n=this._makeAbs(e);if(this.cache[n]="FILE",n===this.cwdAbs){var i=new Error(t.code+" invalid cwd "+this.cwd);i.path=this.cwd,i.code=t.code,this.emit("error",i),this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=!1;break;default:this.cache[this._makeAbs(e)]=!1,this.strict&&(this.emit("error",t),this.abort()),this.silent||console.error("glob error",t)}return r()}},ni.prototype._processGlobStar=function(e,t,r,n,i,a,o){var s=this;this._readdir(r,a,(function(c,u){s._processGlobStar2(e,t,r,n,i,a,u,o)}))},ni.prototype._processGlobStar2=function(e,t,r,n,i,a,o,s){if(!o)return s();var c=n.slice(1),u=e?[e]:[],l=u.concat(c);this._process(l,i,!1,s);var d=this.symlinks[r],_=o.length;if(d&&a)return s();for(var p=0;p<_;p++){if("."!==o[p].charAt(0)||this.dot){var f=u.concat(o[p],c);this._process(f,i,!0,s);var g=u.concat(o[p],n);this._process(g,i,!0,s)}}s()},ni.prototype._processSimple=function(e,t,r){var n=this;this._stat(e,(function(i,a){n._processSimple2(e,t,i,a,r)}))},ni.prototype._processSimple2=function(e,t,r,n,i){if(this.matches[t]||(this.matches[t]=Object.create(null)),!n)return i();if(e&&pn(e)&&!this.nomount){var a=/[\/\\]$/.test(e);"/"===e.charAt(0)?e=fr.join(this.root,e):(e=fr.resolve(this.root,e),a&&(e+="/"))}"win32"===V.platform&&(e=e.replace(/\\/g,"/")),this._emitMatch(t,e),i()},ni.prototype._stat=function(e,t){var r=this._makeAbs(e),n="/"===e.slice(-1);if(e.length>this.maxLength)return t();if(!this.stat&&$n(this.cache,r)){var i=this.cache[r];if(Array.isArray(i)&&(i="DIR"),!n||"DIR"===i)return t(null,i);if(n&&"FILE"===i)return t()}var a=this.statCache[r];if(void 0!==a){if(!1===a)return t(null,a);var o=a.isDirectory()?"DIR":"FILE";return n&&"FILE"===o?t():t(null,o,a)}var s=this,c=Hn("stat\0"+r,(function(n,i){if(i&&i.isSymbolicLink())return gr.stat(r,(function(n,a){n?s._stat2(e,r,null,i,t):s._stat2(e,r,n,a,t)}));s._stat2(e,r,n,i,t)}));c&&gr.lstat(r,c)},ni.prototype._stat2=function(e,t,r,n,i){if(r&&("ENOENT"===r.code||"ENOTDIR"===r.code))return this.statCache[t]=!1,i();var a="/"===e.slice(-1);if(this.statCache[t]=n,"/"===t.slice(-1)&&n&&!n.isDirectory())return i(null,!1,n);var o=!0;return n&&(o=n.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||o,a&&"FILE"===o?i():i(null,o,n)};
|
|
2
2
|
/*!
|
|
3
3
|
* is-extglob <https://github.com/jonschlinkert/is-extglob>
|
|
4
4
|
*
|