UNPKG

prettier

Version:

Prettier is an opinionated code formatter

1 lines 2.73 MB
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(((e=e||self).prettierPlugins=e.prettierPlugins||{},e.prettierPlugins.typescript={}))}(this,(function(e){"use strict";var t=function(e,t){const r=new SyntaxError(e+" ("+t.start.line+":"+t.start.column+")");return r.loc=t,r};var r=function(e,t){if(!e.startsWith("#!"))return;const r=e.indexOf("\n"),n={type:"Line",value:e.slice(2,r),range:[0,r],loc:{start:{line:1,column:0},end:{line:1,column:r}}};t.comments=[n].concat(t.comments)},n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function a(e,t){return e(t={exports:{}},t.exports),t.exports}function o(e){return e&&e.default||e}var s=Object.freeze({__proto__:null,default:{EOL:"\n"}});const c=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 u=c;u.graceful=e=>"string"==typeof e&&c(e)||"\n";var l=o(s),_=a((function(e,t){function r(){const e=l;return r=function(){return e},e}function n(){const e=(t=u)&&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 f(e).pragmas},t.parseWithComments=f,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)*?\*\/)/,s=/(^|\s+)\/\/([^\r\n]*)/g,c=/^(\r?\n)+/,_=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,d=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,p=/(\r?\n|^) *\* ?/g;function f(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(_,"".concat(t,"$1 $2").concat(t));e=e.replace(c,"").trimRight();const u=Object.create(null),l=e.replace(d,"").replace(c,"").trimRight();let f;for(;f=d.exec(e);){const e=f[2].replace(s,"");"string"==typeof u[f[1]]||Array.isArray(u[f[1]])?u[f[1]]=[].concat(u[f[1]],e):u[f[1]]=e}return{comments:l,pragmas:u}}function m(e,t){return[].concat(t).map(t=>"@".concat(e," ").concat(t).trim())}}));i(_);_.extract,_.strip,_.parse,_.parseWithComments,_.print;var d={hasPragma:function(e){const t=Object.keys(_.parse(_.extract(e)));return t.includes("prettier")||t.includes("format")},insertPragma:function(e){const t=_.parseWithComments(_.extract(e)),r=Object.assign({format:""},t.pragmas),n=_.print({pragmas:r,comments:t.comments.replace(/^(\s+?\r?\n)+/,"")}).replace(/(\r\n|\r)/g,"\n"),i=_.strip(e);return n+(i.startsWith("\n")?"\n":"\n\n")+i}},p=e=>e[e.length-1];function f(e,t){return!(t=t||{}).ignoreDecorators&&e.declaration&&e.declaration.decorators&&e.declaration.decorators.length>0?f(e.declaration.decorators[0]):!t.ignoreDecorators&&e.decorators&&e.decorators.length>0?f(e.decorators[0]):e.__location?e.__location.startOffset:e.range?e.range[0]:"number"==typeof e.start?e.start:e.loc?e.loc.start:null}function m(e){const t=e.nodes&&p(e.nodes);if(t&&e.source&&!e.source.end&&(e=t),e.__location)return e.__location.endOffset;const r=e.range?e.range[1]:"number"==typeof e.end?e.end:null;return e.typeAnnotation?Math.max(r,m(e.typeAnnotation)):e.loc&&!r?e.loc.end:r}var g={locStart:f,locEnd:m,composeLoc:function(e,t=e){const r="number"==typeof t?t:-1,n=f(e),i=-1!==r?n+r:m(t),a=e.loc.start;return{start:n,end:i,range:[n,i],loc:{start:a,end:-1!==r?{line:a.line,column:a.column+r}:t.loc.end}}}},y=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 h=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 v=h,b=h;v.default=b;const x=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=y(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+=v(n)?2:1))}return t};var D=x,S=x;D.default=S;const T=/[|\\{}()[\]^$+*?.-]/g;var E=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(T,"\\$&")};const C=/[^\x20-\x7F]/;function k(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 N=k(/\s/),A=k(" \t"),F=k(",; \t"),P=k(/[^\r\n]/);function w(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 I(e,t){return!1!==t&&("/"===e.charAt(t)&&"/"===e.charAt(t+1)?P(e,t):t)}function O(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 M(e,t,r){const n=A(e,(r=r||{}).backwards?t-1:t,r);return n!==O(e,n,r)}function L(e,t){let r=null,n=t;for(;n!==r;)r=n,n=F(e,n),n=w(e,n),n=A(e,n);return n=I(e,n),n=O(e,n),!1!==n&&M(e,n)}function R(e,t){let r=null,n=t;for(;n!==r;)r=n,n=A(e,n),n=w(e,n),n=I(e,n),n=O(e,n);return n}function B(e,t,r){return R(e,r(t))}const j={};function K(e){return j[e]}[["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].forEach((e,t)=>{e.forEach(e=>{j[e]=t})});const J={"==":!0,"!=":!0,"===":!0,"!==":!0},z={"*":!0,"/":!0,"%":!0},U={">>":!0,">>>":!0,"<<":!0};function V(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 q(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 W(e,t,r){const n='"'===t?"'":'"',i=e.replace(/\\([\s\S])|(['"])/g,(e,i,a)=>i===n?i:a===t?"\\"+a:a||(r&&/^[^\\nrvtbfux\r\n\u2028\u2029"'0-7]$/.test(i)?i:"\\"+i));return t+i+t}function H(e){return e&&(e.comments&&e.comments.length>0&&e.comments.some(e=>G(e)&&!e.unignore)||e.prettierIgnore)}function G(e){return"prettier-ignore"===e.value.trim()}function Y(e,t){(e.comments||(e.comments=[])).push(t),t.printed=!1,"JSXText"===e.type&&(t.printed=!0)}var X={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?C.test(e)?D(e):e.length:0},getMaxContinuousCount:function(e,t){const r=e.match(new RegExp("(".concat(E(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(E(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},getPrecedence:K,shouldFlatten:function(e,t){return K(t)===K(e)&&("**"!==e&&((!J[e]||!J[t])&&(!("%"===t&&z[e]||"%"===e&&z[t])&&((t===e||!z[t]||!z[e])&&(!U[e]||!U[t])))))},isBitwiseOperator:function(e){return!!U[e]||"|"===e||"^"===e||"&"===e},getPenultimate:function(e){return e.length>1?e[e.length-2]:null},getLast:p,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:R,getNextNonSpaceNonCommentCharacterIndex:B,getNextNonSpaceNonCommentCharacter:function(e,t,r){return e.charAt(B(e,t,r))},skip:k,skipWhitespace:N,skipSpaces:A,skipToLineEnd:F,skipEverythingButNewLine:P,skipInlineComment:w,skipTrailingComment:I,skipNewline:O,isNextLineEmptyAfterIndex:L,isNextLineEmpty:function(e,t,r){return L(e,r(t))},isPreviousLineEmpty:function(e,t,r){let n=r(t)-1;return n=A(e,n,{backwards:!0}),n=O(e,n,{backwards:!0}),n=A(e,n,{backwards:!0}),n!==O(e,n,{backwards:!0})},hasNewline:M,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 A(e,(r=r||{}).backwards?t-1:t,r)!==t},setLocStart:function(e,t){e.range?e.range[0]=t:e.start=t},setLocEnd:function(e,t){e.range?e.range[1]=t:e.end=t},startsWithNoLookaheadToken:function e(t,r){switch((t=function e(t){if(t.left)return e(t.left);return t}(t)).type){case"FunctionExpression":case"ClassExpression":case"DoExpression":return r;case"ObjectExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return e(t.object,r);case"TaggedTemplateExpression":return"FunctionExpression"!==t.tag.type&&e(t.tag,r);case"CallExpression":case"OptionalCallExpression":return"FunctionExpression"!==t.callee.type&&e(t.callee,r);case"ConditionalExpression":return e(t.test,r);case"UpdateExpression":return!t.prefix&&e(t.argument,r);case"BindExpression":return t.object&&e(t.object,r);case"SequenceExpression":return e(t.expressions[0],r);case"TSAsExpression":return e(t.expression,r);default:return!1}},getAlignmentSize:V,getIndentSize:function(e,t){const r=e.lastIndexOf("\n");return-1===r?0:V(e.slice(r+1).match(/^[ \t]*/)[0],t)},getPreferredQuote:q,printString:function(e,t,r){const n=e.slice(1,-1),i=!n.includes('"')&&!n.includes("'"),a="json"===t.parser?'"':t.__isInHtmlAttribute?"'":q(e,t.singleQuote?"'":'"');return r?i?a+n+a:e:W(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 H(e.getValue())},hasNodeIgnoreComment:H,isNodeIgnoreComment:G,makeString:W,addLeadingComment:function(e,t){t.leading=!0,t.trailing=!1,Y(e,t)},addDanglingComment:function(e,t){t.leading=!1,t.trailing=!1,Y(e,t)},addTrailingComment:function(e,t){t.leading=!1,t.trailing=!0,Y(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}};const{getMaxContinuousCount:Q,getStringWidth:$,getAlignmentSize:Z,getIndentSize:ee,skip:te,skipWhitespace:re,skipSpaces:ne,skipNewline:ie,skipToLineEnd:ae,skipEverythingButNewLine:oe,skipInlineComment:se,skipTrailingComment:ce,hasNewline:ue,hasNewlineInRange:le,hasSpaces:_e,isNextLineEmpty:de,isNextLineEmptyAfterIndex:pe,isPreviousLineEmpty:fe,getNextNonSpaceNonCommentCharacterIndex:me,makeString:ge,addLeadingComment:ye,addDanglingComment:he,addTrailingComment:ve}=X;var be={getMaxContinuousCount:Q,getStringWidth:$,getAlignmentSize:Z,getIndentSize:ee,skip:te,skipWhitespace:re,skipSpaces:ne,skipNewline:ie,skipToLineEnd:ae,skipEverythingButNewLine:oe,skipInlineComment:se,skipTrailingComment:ce,hasNewline:ue,hasNewlineInRange:le,hasSpaces:_e,isNextLineEmpty:de,isNextLineEmptyAfterIndex:pe,isPreviousLineEmpty:fe,getNextNonSpaceNonCommentCharacterIndex:me,makeString:ge,addLeadingComment:ye,addDanglingComment:he,addTrailingComment:ve};const{addLeadingComment:xe,addTrailingComment:De,addDanglingComment:Se,getNextNonSpaceNonCommentCharacterIndex:Te}=be;function Ee(e,t){const r=e.body.filter(e=>"EmptyStatement"!==e.type);0===r.length?Se(e,t):xe(r[0],t)}function Ce(e,t){"BlockStatement"===e.type?Ee(e,t):xe(e,t)}function ke(e,t,r,n,i,a){if(!r||"IfStatement"!==r.type||!n)return!1;return")"===X.getNextNonSpaceNonCommentCharacter(e,i,a.locEnd)?(De(t,i),!0):t===r.consequent&&n===r.alternate?("BlockStatement"===t.type?De(t,i):Se(r,i),!0):"BlockStatement"===n.type?(Ee(n,i),!0):"IfStatement"===n.type?(Ce(n.consequent,i),!0):r.consequent===n&&(xe(n,i),!0)}function Ne(e,t,r,n,i,a){if(!r||"WhileStatement"!==r.type||!n)return!1;return")"===X.getNextNonSpaceNonCommentCharacter(e,i,a.locEnd)?(De(t,i),!0):"BlockStatement"===n.type&&(Ee(n,i),!0)}function Ae(e,t,r,n){return!(!e||"TryStatement"!==e.type&&"CatchClause"!==e.type||!r)&&("CatchClause"===e.type&&t?(De(t,n),!0):"BlockStatement"===r.type?(Ee(r,n),!0):"TryStatement"===r.type?(Ce(r.finalizer,n),!0):"CatchClause"===r.type&&(Ce(r.body,n),!0))}function Fe(e,t,r,n){return!(!(e&&("ClassDeclaration"===e.type||"ClassExpression"===e.type)&&e.decorators&&e.decorators.length>0)||r&&"Decorator"===r.type)&&(e.decorators&&0!==e.decorators.length?De(e.decorators[e.decorators.length-1],n):xe(e,n),!0)}function Pe(e,t,r,n,i){return t&&r&&("Property"===t.type||"TSDeclareMethod"===t.type||"TSAbstractMethodDefinition"===t.type)&&"Identifier"===r.type&&t.key===r&&":"!==X.getNextNonSpaceNonCommentCharacter(e,r,i.locEnd)?(De(r,n),!0):!(!r||!t||"Decorator"!==r.type||"ClassMethod"!==t.type&&"ClassProperty"!==t.type&&"TSAbstractClassProperty"!==t.type&&"TSAbstractMethodDefinition"!==t.type&&"TSDeclareMethod"!==t.type&&"MethodDefinition"!==t.type)&&(De(r,n),!0)}function we(e,t,r,n,i,a){if(t&&"FunctionTypeParam"===t.type&&r&&"FunctionTypeAnnotation"===r.type&&n&&"FunctionTypeParam"!==n.type)return De(t,i),!0;if(t&&("Identifier"===t.type||"AssignmentPattern"===t.type)&&r&&Re(r)&&")"===X.getNextNonSpaceNonCommentCharacter(e,i,a.locEnd))return De(t,i),!0;if(r&&"FunctionDeclaration"===r.type&&n&&"BlockStatement"===n.type){const t=(()=>{if(0!==(r.params||r.parameters).length)return X.getNextNonSpaceNonCommentCharacterIndexWithStartIndex(e,a.locEnd(X.getLast(r.params||r.parameters)));const t=X.getNextNonSpaceNonCommentCharacterIndexWithStartIndex(e,a.locEnd(r.id));return X.getNextNonSpaceNonCommentCharacterIndexWithStartIndex(e,t+1)})();if(a.locStart(i)>t)return Ee(n,i),!0}return!1}function Ie(e,t){return!(!e||"ImportSpecifier"!==e.type)&&(xe(e,t),!0)}function Oe(e,t){return!(!e||"LabeledStatement"!==e.type)&&(xe(e,t),!0)}function Me(e,t,r,n){return t&&t.body&&0===t.body.length?(n?Se(t,r):xe(t,r),!0):!(!e||"Program"!==e.type||0!==e.body.length||!e.directives||0!==e.directives.length)&&(n?Se(e,r):xe(e,r),!0)}function Le(e){return"Block"===e.type||"CommentBlock"===e.type}function Re(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 Be(e){return Le(e)&&"*"===e.value[0]&&/@type\b/.test(e.value)}var je={handleOwnLineComment:function(e,t,r,n,i){const{precedingNode:a,enclosingNode:o,followingNode:s}=e;return we(t,a,o,s,e,r)||function(e,t,r){if(e&&("MemberExpression"===e.type||"OptionalMemberExpression"===e.type)&&t&&"Identifier"===t.type)return xe(e,r),!0;return!1}(o,s,e)||ke(t,a,o,s,e,r)||Ne(t,a,o,s,e,r)||Ae(o,a,s,e)||Fe(o,a,s,e)||Ie(o,e)||function(e,t,r){if(e&&("ForInStatement"===e.type||"ForOfStatement"===e.type))return xe(e,r),!0;return!1}(o,0,e)||function(e,t,r,n){if(t&&("UnionTypeAnnotation"===t.type||"TSUnionType"===t.type))return X.isNodeIgnoreComment(n)&&(r.prettierIgnore=!0,n.unignore=!0),!!e&&(De(e,n),!0);r&&("UnionTypeAnnotation"===r.type||"TSUnionType"===r.type)&&X.isNodeIgnoreComment(n)&&(r.types[0].prettierIgnore=!0,n.unignore=!0);return!1}(a,o,s,e)||Me(o,n,e,i)||function(e,t,r,n,i){if(r&&"ImportSpecifier"===r.type&&t&&"ImportDeclaration"===t.type&&X.hasNewline(e,i.locEnd(n)))return De(r,n),!0;return!1}(t,o,a,e,r)||function(e,t){if(e&&"AssignmentPattern"===e.type)return xe(e,t),!0;return!1}(o,e)||Pe(t,o,a,e,r)||Oe(o,e)},handleEndOfLineComment:function(e,t,r,n,i){const{precedingNode:a,enclosingNode:o,followingNode:s}=e;return function(e,t){if(e&&Be(t))return xe(e,t),!0;return!1}(s,e)||we(t,a,o,s,e,r)||function(e,t,r,n,i,a){const o=t&&!X.hasNewlineInRange(i,a.locEnd(t),a.locStart(n));if((!t||!o)&&e&&"ConditionalExpression"===e.type&&r)return xe(r,n),!0;return!1}(o,a,s,e,t,r)||Ie(o,e)||ke(t,a,o,s,e,r)||Ne(t,a,o,s,e,r)||Ae(o,a,s,e)||Fe(o,a,s,e)||Oe(o,e)||function(e,t,r){if(t&&("CallExpression"===t.type||"OptionalCallExpression"===t.type)&&e&&t.callee===e&&t.arguments.length>0)return xe(t.arguments[0],r),!0;return!1}(a,o,e)||function(e,t){if(e&&("Property"===e.type||"ObjectProperty"===e.type))return xe(e,t),!0;return!1}(o,e)||Me(o,n,e,i)||function(e,t,r){if(e&&"TypeAlias"===e.type)return xe(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||Le(r)))return xe(t,r),!0;return!1}(o,s,e)},handleRemainingComment:function(e,t,r,n,i){const{precedingNode:a,enclosingNode:o,followingNode:s}=e;return!!(ke(t,a,o,s,e,r)||Ne(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 De(e.value.left,r),!0;return!1}(o,a,e)||function(e,t,r,n){if(")"!==X.getNextNonSpaceNonCommentCharacter(e,r,n.locEnd))return!1;if(t&&(Re(t)&&0===(t.params||t.parameters).length||("CallExpression"===t.type||"OptionalCallExpression"===t.type||"NewExpression"===t.type)&&0===t.arguments.length))return Se(t,r),!0;if(t&&"MethodDefinition"===t.type&&0===t.value.params.length)return Se(t.value,r),!0;return!1}(t,o,e,r)||Pe(t,o,a,e,r)||Me(o,n,e,i)||function(e,t,r,n){if(!t||"ArrowFunctionExpression"!==t.type)return!1;const i=Te(e,r,n.locEnd);if("=>"===e.slice(i,i+2))return Se(t,r),!0;return!1}(t,o,e,r)||function(e,t,r,n,i){if("("!==X.getNextNonSpaceNonCommentCharacter(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 De(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 xe(n.name,i),!0;if(r&&"TSTypeParameter"===r.type&&r.constraint)return De(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 De(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)&&";"===X.getNextNonSpaceNonCommentCharacter(e,n,i.locEnd))return De(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:Le,isTypeCastComment:Be,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:Ke,getNextNonSpaceNonCommentCharacter:Je}=X,{composeLoc:ze,locEnd:Ue}=g,{isTypeCastComment:Ve}=je;function qe(e,t,r,n){if(!e||"object"!=typeof e)return;if(Array.isArray(e)){for(let r=0;r<e.length;r++)qe(e[r],t,e,r);return}if("string"!=typeof e.type)return;for(const r of Object.keys(e))qe(e[r],t,e,r);const i=t(e);i&&(r[n]=i)}function We(e){return"LogicalExpression"===e.type&&"LogicalExpression"===e.right.type&&e.operator===e.right.operator}var He=function(e,t){if("typescript"!==t.parser&&"flow"!==t.parser){const t=new Set;qe(e,e=>{e.leadingComments&&e.leadingComments.some(Ve)&&t.add(e.start)}),qe(e,e=>{if("ParenthesizedExpression"===e.type&&!t.has(e.start)){const{expression:t}=e;return t.extra||(t.extra={}),t.extra.parenthesized=!0,t.extra.parenStart=e.start,t}})}return qe(e,e=>{switch(e.type){case"LogicalExpression":if(We(e))return function e(t){if(!We(t))return t;return e(Object.assign({type:"LogicalExpression",operator:t.operator,left:e(Object.assign({type:"LogicalExpression",operator:t.operator,left:t.left,right:t.right.left},ze(t.left,t.right.left))),right:t.right.right},ze(t)))}(e);break;case"VariableDeclaration":{const r=Ke(e.declarations);r&&r.init&&function(e,r){if(";"===t.originalText[Ue(r)])return;Array.isArray(e.range)?e.range=[e.range[0],r.range[1]]:e.end=r.end;e.loc=Object.assign({},e.loc,{end:e.loc.end})}(e,r);break}case"TSParenthesizedType":return Object.assign({},e.typeAnnotation,{},ze(e));case"TSUnionType":case"TSIntersectionType":if(1===e.types.length)return Object.assign({},e.types[0],{},ze(e));break;case"TSTypeParameter":"string"==typeof e.name&&(e.name=Object.assign({type:"Identifier",name:e.name},ze(e,e.name.length)));break;case"SequenceExpression":e.end&&e.end>Ke(e.expressions).end&&(e.end=Ke(e.expressions).end);break;case"ClassProperty":e.key&&"TSPrivateIdentifier"===e.key.type&&"?"===Je(t.originalText,e.key,Ue)&&(e.optional=!0)}}),e},Ge="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function Ye(){throw new Error("setTimeout has not been defined")}function Xe(){throw new Error("clearTimeout has not been defined")}var Qe=Ye,$e=Xe;function Ze(e){if(Qe===setTimeout)return setTimeout(e,0);if((Qe===Ye||!Qe)&&setTimeout)return Qe=setTimeout,setTimeout(e,0);try{return Qe(e,0)}catch(t){try{return Qe.call(null,e,0)}catch(t){return Qe.call(this,e,0)}}}"function"==typeof Ge.setTimeout&&(Qe=setTimeout),"function"==typeof Ge.clearTimeout&&($e=clearTimeout);var et,tt=[],rt=!1,nt=-1;function it(){rt&&et&&(rt=!1,et.length?tt=et.concat(tt):nt=-1,tt.length&&at())}function at(){if(!rt){var e=Ze(it);rt=!0;for(var t=tt.length;t;){for(et=tt,tt=[];++nt<t;)et&&et[nt].run();nt=-1,t=tt.length}et=null,rt=!1,function(e){if($e===clearTimeout)return clearTimeout(e);if(($e===Xe||!$e)&&clearTimeout)return $e=clearTimeout,clearTimeout(e);try{$e(e)}catch(t){try{return $e.call(null,e)}catch(t){return $e.call(this,e)}}}(e)}}function ot(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];tt.push(new st(e,t)),1!==tt.length||rt||Ze(at)}function st(e,t){this.fun=e,this.array=t}st.prototype.run=function(){this.fun.apply(null,this.array)};function ct(){}var ut=ct,lt=ct,_t=ct,dt=ct,pt=ct,ft=ct,mt=ct;var gt=Ge.performance||{},yt=gt.now||gt.mozNow||gt.msNow||gt.oNow||gt.webkitNow||function(){return(new Date).getTime()};var ht=new Date;var vt={nextTick:ot,title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:ut,addListener:lt,once:_t,off:dt,removeListener:pt,removeAllListeners:ft,emit:mt,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*yt.call(gt),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-ht)/1e3}},bt=1e3,xt=6e4,Dt=36e5,St=24*Dt,Tt=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 315576e5*r;case"weeks":case"week":case"w":return 6048e5*r;case"days":case"day":case"d":return r*St;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Dt;case"minutes":case"minute":case"mins":case"min":case"m":return r*xt;case"seconds":case"second":case"secs":case"sec":case"s":return r*bt;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>=St)return Et(e,t,St,"day");if(t>=Dt)return Et(e,t,Dt,"hour");if(t>=xt)return Et(e,t,xt,"minute");if(t>=bt)return Et(e,t,bt,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=St)return Math.round(e/St)+"d";if(t>=Dt)return Math.round(e/Dt)+"h";if(t>=xt)return Math.round(e/xt)+"m";if(t>=bt)return Math.round(e/bt)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Et(e,t,r,n){var i=t>=1.5*r;return Math.round(e/r)+" "+n+(i?"s":"")}var Ct=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=Tt,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},kt=a((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!==vt&&"env"in vt&&(e=vt.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=Ct(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}})),Nt=(kt.log,kt.formatArgs,kt.save,kt.load,kt.useColors,kt.storage,kt.colors,{isatty:()=>!1}),At=Object.freeze({__proto__:null,default:Nt}),Ft=Object.freeze({__proto__:null,default:{}}),Pt=(e,t=vt.argv)=>{const r=e.startsWith("-")?"":1===e.length?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return-1!==n&&(-1===i||n<i)},wt=o(At);const{env:It}=vt;let Ot;function Mt(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Lt(e,t){if(0===Ot)return 0;if(Pt("color=16m")||Pt("color=full")||Pt("color=truecolor"))return 3;if(Pt("color=256"))return 2;if(e&&!t&&void 0===Ot)return 0;const r=Ot||0;if("dumb"===It.TERM)return r;if("win32"===vt.platform){const e=l.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in It)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(e=>e in It)||"codeship"===It.CI_NAME?1:r;if("TEAMCITY_VERSION"in It)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(It.TEAMCITY_VERSION)?1:0;if("GITHUB_ACTIONS"in It)return 1;if("truecolor"===It.COLORTERM)return 3;if("TERM_PROGRAM"in It){const e=parseInt((It.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(It.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(It.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(It.TERM)?1:"COLORTERM"in It?1:r}Pt("no-color")||Pt("no-colors")||Pt("color=false")||Pt("color=never")?Ot=0:(Pt("color")||Pt("colors")||Pt("color=true")||Pt("color=always"))&&(Ot=1),"FORCE_COLOR"in It&&(Ot="true"===It.FORCE_COLOR?1:"false"===It.FORCE_COLOR?0:0===It.FORCE_COLOR.length?1:Math.min(parseInt(It.FORCE_COLOR,10),3));var Rt={supportsColor:function(e){return Mt(Lt(e,e&&e.isTTY))},stdout:Mt(Lt(!0,wt.isatty(1))),stderr:Mt(Lt(!0,wt.isatty(2)))},Bt=o(Ft),jt=a((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 vt.stderr.write(Bt.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," ");r[0]=a+r[0].split("\n").join("\n"+a),r.push(i+"m+"+e.exports.humanize(this.diff)+"")}else r[0]=function(){if(t.inspectOpts.hideDate)return"";return(new Date).toISOString()+" "}()+n+" "+r[0]},t.save=function(e){e?vt.env.DEBUG=e:delete vt.env.DEBUG},t.load=function(){return vt.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):wt.isatty(vt.stderr.fd)},t.colors=[6,2,3,4,5,1];try{const e=Rt;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(vt.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=vt.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=Ct(t);const{formatters:r}=e.exports;r.o=function(e){return this.inspectOpts.colors=this.useColors,Bt.inspect(e,this.inspectOpts).replace(/\s*\n\s*/g," ")},r.O=function(e){return this.inspectOpts.colors=this.useColors,Bt.inspect(e,this.inspectOpts)}})),Kt=(jt.init,jt.log,jt.formatArgs,jt.save,jt.load,jt.useColors,jt.colors,jt.inspectOpts,a((function(e){void 0===vt||vt.type,e.exports=kt}))),Jt=Object.freeze({__proto__:null,default:{}});const zt=/[\\/]/;function Ut(e){return e.split(zt).pop()}var Vt=o(Object.freeze({__proto__:null,extname:function(e){const t=Ut(e),r=t.lastIndexOf(".");return-1===r?"":t.slice(r)},basename:Ut,isAbsolute:function(){return!0}})),qt=o(Jt),Wt="win32"===vt.platform,Ht=vt.env.NODE_DEBUG&&/fs/.test(vt.env.NODE_DEBUG);function Gt(e){return"function"==typeof e?e:function(){var e;if(Ht){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(vt.throwDeprecation)throw e;if(!vt.noDeprecation){var t="fs: missing callback "+(e.stack||e.message);vt.traceDeprecation?console.trace(t):console.error(t)}}}}()}Vt.normalize;if(Wt)var Yt=/(.*?)(?:[\/\\]+|$)/g;else Yt=/(.*?)(?:[\/]+|$)/g;if(Wt)var Xt=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;else Xt=/^[\/]*/;var Qt=function(e,t){if(e=Vt.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=Xt.exec(e);r=t[0].length,n=t[0],i=t[0],a="",Wt&&!c[i]&&(qt.lstatSync(i),c[i]=!0)}for(u();r<e.length;){Yt.lastIndex=r;var l=Yt.exec(e);if(a=n,n+=l[0],i=a+l[1],r=Yt.lastIndex,!(c[i]||t&&t[i]===i)){var _;if(t&&Object.prototype.hasOwnProperty.call(t,i))_=t[i];else{var d=qt.lstatSync(i);if(!d.isSymbolicLink()){c[i]=!0,t&&(t[i]=i);continue}var p=null;if(!Wt){var f=d.dev.toString(32)+":"+d.ino.toString(32);s.hasOwnProperty(f)&&(p=s[f])}null===p&&(qt.statSync(i),p=qt.readlinkSync(i)),_=Vt.resolve(a,p),t&&(t[i]=_),Wt||(s[f]=p)}e=Vt.resolve(_,e.slice(r)),u()}}return t&&(t[o]=e),e},$t=function(e,t,r){if("function"!=typeof r&&(r=Gt(t),t=null),e=Vt.resolve(e),t&&Object.prototype.hasOwnProperty.call(t,e))return ot(r.bind(null,null,t[e]));var n,i,a,o,s=e,c={},u={};function l(){var t=Xt.exec(e);n=t[0].length,i=t[0],a=t[0],o="",Wt&&!u[a]?qt.lstat(a,(function(e){if(e)return r(e);u[a]=!0,_()})):ot(_)}function _(){if(n>=e.length)return t&&(t[s]=e),r(null,e);Yt.lastIndex=n;var c=Yt.exec(e);return o=i,i+=c[0],a=o+c[1],n=Yt.lastIndex,u[a]||t&&t[a]===a?ot(_):t&&Object.prototype.hasOwnProperty.call(t,a)?f(t[a]):qt.lstat(a,d)}function d(e,n){if(e)return r(e);if(!n.isSymbolicLink())return u[a]=!0,t&&(t[a]=a),ot(_);if(!Wt){var i=n.dev.toString(32)+":"+n.ino.toString(32);if(c.hasOwnProperty(i))return p(null,c[i],a)}qt.stat(a,(function(e){if(e)return r(e);qt.readlink(a,(function(e,t){Wt||(c[i]=t),p(e,t)}))}))}function p(e,n,i){if(e)return r(e);var a=Vt.resolve(o,n);t&&(t[i]=a),f(a)}function f(t){e=Vt.resolve(t,e.slice(n)),l()}l()},Zt=ar;ar.realpath=ar,ar.sync=or,ar.realpathSync=or,ar.monkeypatch=function(){qt.realpath=ar,qt.realpathSync=or},ar.unmonkeypatch=function(){qt.realpath=er,qt.realpathSync=tr};var er=qt.realpath,tr=qt.realpathSync,rr=vt.version,nr=/^v[0-5]\./.test(rr);function ir(e){return e&&"realpath"===e.syscall&&("ELOOP"===e.code||"ENOMEM"===e.code||"ENAMETOOLONG"===e.code)}function ar(e,t,r){if(nr)return er(e,t,r);"function"==typeof t&&(r=t,t=null),er(e,t,(function(n,i){ir(n)?$t(e,t,r):r(n,i)}))}function or(e,t){if(nr)return tr(e,t);try{return tr(e,t)}catch(r){if(ir(r))return Qt(e,t);throw r}}var sr=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},cr=ur;function ur(e,t,r){e instanceof RegExp&&(e=lr(e,r)),t instanceof RegExp&&(t=lr(t,r));var n=_r(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 lr(e,t){var r=t.match(e);return r?r[0]:null}function _r(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}ur.range=_r;var dr=function(e){if(!e)return[];"{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2));return function e(t,r){var n=[],i=cr("{","}",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+mr+i.post,e(t)):[t];if(c)a=i.body.split(/\.\./);else{if(1===(a=function e(t){if(!t)return[""];var r=[],n=cr("{","}",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(br)).length)return(d=i.post.length?e(i.post,!1):[""]).map((function(e){return i.pre+a[0]+e}))}var l,_=i.pre,d=i.post.length?e(i.post,!1):[""];if(c){var p=hr(a[0]),f=hr(a[1]),m=Math.max(a[0].length,a[1].length),g=3==a.length?Math.abs(hr(a[2])):1,y=Dr;f<p&&(g*=-1,y=Sr);var h=a.some(xr);l=[];for(var v=p;y(v,f);v+=g){var b;if(s)"\\"===(b=String.fromCharCode(v))&&(b="");else if(b=String(v),h){var x=m-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);sr(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<d.length;T++){var E=_+l[S]+d[T];(!r||c||E)&&n.push(E)}return n}(function(e){return e.split("\\\\").join(pr).split("\\{").join(fr).split("\\}").join(mr).split("\\,").join(gr).split("\\.").join(yr)}(e),!0).map(vr)},pr="\0SLASH"+Math.random()+"\0",fr="\0OPEN"+Math.random()+"\0",mr="\0CLOSE"+Math.random()+"\0",gr="\0COMMA"+Math.random()+"\0",yr="\0PERIOD"+Math.random()+"\0";function hr(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function vr(e){return e.split(pr).join("\\").split(fr).join("{").split(mr).join("}").split(gr).join(",").split(yr).join(".")}function br(e){return"{"+e+"}"}function xr(e){return/^-?0\d/.test(e)}function Dr(e,t){return e<=t}function Sr(e,t){return e>=t}var Tr=Pr;Pr.Minimatch=wr;var Er={sep:"/"};try{Er=Vt}catch(e){}var Cr=Pr.GLOBSTAR=wr.GLOBSTAR={},kr={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},Nr=function(e){return e.split("").reduce((function(e,t){return e[t]=!0,e}),{})}("().*{}+?[]^$\\!");var Ar=/\/+/;function Fr(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}funct