prettier 2.0.1 → 2.0.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/README.md +6 -8
- package/bin-prettier.js +508 -416
- package/doc.js +6 -1
- package/index.js +95 -41
- package/package.json +1 -1
- package/parser-babel.js +1 -1
- package/parser-flow.js +1 -1
- package/parser-markdown.js +1 -1
- package/parser-postcss.js +1 -1
- package/parser-typescript.js +3 -3
- package/standalone.js +95 -41
package/parser-markdown.js
CHANGED
|
@@ -10,4 +10,4 @@
|
|
|
10
10
|
*
|
|
11
11
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
12
12
|
* @license MIT
|
|
13
|
-
*/function ou(r){var e,t,u;if(r){if("string"==typeof r||ru(r))r={contents:r};else if("message"in r&&"messages"in r)return r}else r={};if(!(this instanceof ou))return new ou(r);for(this.data={},this.messages=[],this.history=[],this.cwd=Jt.cwd(),t=-1,u=nu.length;++t<u;)e=nu[t],tu.call(r,e)&&(this[e]=r[e]);for(e in r)-1===nu.indexOf(e)&&(this[e]=r[e])}function au(r,e){if(-1!==r.indexOf(Kt.sep))throw new Error("`"+e+"` cannot be a path: did not expect `"+Kt.sep+"`")}function iu(r,e){if(!r)throw new Error("`"+e+"` cannot be empty")}function cu(r,e){if(!r)throw new Error("Setting `"+e+"` requires `path` to be set too")}uu.toString=function(r){var e=this.contents||"";return ru(e)?e.toString(r):String(e)},Object.defineProperty(uu,"path",{get:function(){return this.history[this.history.length-1]},set:function(r){iu(r,"path"),r!==this.path&&this.history.push(r)}}),Object.defineProperty(uu,"dirname",{get:function(){return"string"==typeof this.path?Kt.dirname(this.path):void 0},set:function(r){cu(this.path,"dirname"),this.path=Kt.join(r||"",this.basename)}}),Object.defineProperty(uu,"basename",{get:function(){return"string"==typeof this.path?Kt.basename(this.path):void 0},set:function(r){iu(r,"basename"),au(r,"basename"),this.path=Kt.join(this.dirname||"",r)}}),Object.defineProperty(uu,"extname",{get:function(){return"string"==typeof this.path?Kt.extname(this.path):void 0},set:function(r){var e=r||"";if(au(e,"extname"),cu(this.path,"extname"),e){if("."!==e.charAt(0))throw new Error("`extname` must start with `.`");if(-1!==e.indexOf(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Xt(this.path,e)}}),Object.defineProperty(uu,"stem",{get:function(){return"string"==typeof this.path?Kt.basename(this.path,this.extname):void 0},set:function(r){iu(r,"stem"),au(r,"stem"),this.path=Kt.join(this.dirname||"",r+(this.extname||""))}});var su=eu,lu=eu.prototype;lu.message=function(r,e,t){var u=this.path,n=new Ct(r,e,t);u&&(n.name=u+":"+n.name,n.file=u);return n.fatal=!1,this.messages.push(n),n},lu.info=function(){var r=this.message.apply(this,arguments);return r.fatal=null,r},lu.fail=function(){var r=this.message.apply(this,arguments);throw r.fatal=!0,r};var Du=[].slice,fu=function(r,e){var t;return function(){var e,o=Du.call(arguments,0),a=r.length>o.length;a&&o.push(u);try{e=r.apply(null,o)}catch(r){if(a&&t)throw r;return u(r)}a||(e&&"function"==typeof e.then?e.then(n,u):e instanceof Error?u(e):n(e))};function u(){t||(t=!0,e.apply(null,arguments))}function n(r){u(null,r)}};var pu=hu;hu.wrap=fu;var du=[].slice;function hu(){var r=[],e={run:function(){var e=-1,t=du.call(arguments,0,-1),u=arguments[arguments.length-1];if("function"!=typeof u)throw new Error("Expected function as last argument, not "+u);function n(o){var a=r[++e],i=du.call(arguments,0),c=i.slice(1),s=t.length,l=-1;if(o)u(o);else{for(;++l<s;)null!==c[l]&&void 0!==c[l]||(c[l]=t[l]);t=c,a?fu(a,n).apply(null,t):u.apply(null,[null].concat(t))}}n.apply(null,[null].concat(t))},use:function(t){if("function"!=typeof t)throw new Error("Expected `fn` to be a function, not "+t);return r.push(t),e}};return e}var gu=r=>{if("[object Object]"!==Object.prototype.toString.call(r))return!1;const e=Object.getPrototypeOf(r);return null===e||e===Object.prototype},mu=function r(){var e=[],t=pu(),u={},n=!1,o=-1;return a.data=function(r,e){if("string"==typeof r)return 2===arguments.length?(Au("data",n),u[r]=e,a):Eu.call(u,r)&&u[r]||null;if(r)return Au("data",n),u=r,a;return u},a.freeze=i,a.attachers=e,a.use=function(r){var t;if(Au("use",n),null==r);else if("function"==typeof r)l.apply(null,arguments);else{if("object"!=typeof r)throw new Error("Expected usable value, not `"+r+"`");"length"in r?s(r):o(r)}t&&(u.settings=dt(u.settings||{},t));return a;function o(r){s(r.plugins),r.settings&&(t=dt(t||{},r.settings))}function i(r){if("function"==typeof r)l(r);else{if("object"!=typeof r)throw new Error("Expected usable value, not `"+r+"`");"length"in r?l.apply(null,r):o(r)}}function s(r){var e,t;if(null==r);else{if(!("object"==typeof r&&"length"in r))throw new Error("Expected a list of plugins, not `"+r+"`");for(e=r.length,t=-1;++t<e;)i(r[t])}}function l(r,t){var u=c(r);u?(gu(u[1])&&gu(t)&&(t=dt(u[1],t)),u[1]=t):e.push(bu.call(arguments))}},a.parse=function(r){var e,t=su(r);if(i(),Fu("parse",e=a.Parser),Cu(e,"parse"))return new e(String(t),t).parse();return e(String(t),t)},a.stringify=function(r,e){var t,u=su(e);if(i(),wu("stringify",t=a.Compiler),yu(r),Cu(t,"compile"))return new t(r,u).compile();return t(r,u)},a.run=s,a.runSync=function(r,e){var t,u=!1;return s(r,e,(function(r,e){u=!0,ht(r),t=e})),qu("runSync","run",u),t},a.process=l,a.processSync=D,a;function a(){for(var t=r(),n=e.length,o=-1;++o<n;)t.use.apply(null,e[o]);return t.data(dt(!0,{},u)),t}function i(){var r,u,i,c;if(n)return a;for(;++o<e.length;)u=(r=e[o])[0],null,!1!==(i=r[1])&&(!0===i&&(r[1]=void 0),"function"==typeof(c=u.apply(a,r.slice(1)))&&t.use(c));return n=!0,o=1/0,a}function c(r){for(var t,u=e.length,n=-1;++n<u;)if((t=e[n])[0]===r)return t}function s(r,e,u){if(yu(r),i(),u||"function"!=typeof e||(u=e,e=null),!u)return new Promise(n);function n(n,o){t.run(r,su(e),(function(e,t,a){t=t||r,e?o(e):n?n(t):u(null,t,a)}))}n(null,u)}function l(r,e){if(i(),Fu("process",a.Parser),wu("process",a.Compiler),!e)return new Promise(t);function t(t,u){var n=su(r);vu.run(a,{file:n},(function(r){r?u(r):t?t(n):e(null,n)}))}t(null,e)}function D(r){var e,t=!1;return i(),Fu("processSync",a.Parser),wu("processSync",a.Compiler),l(e=su(r),(function(r){t=!0,ht(r)})),qu("processSync","process",t),e}}().freeze(),bu=[].slice,Eu={}.hasOwnProperty,vu=pu().use((function(r,e){e.tree=r.parse(e.file)})).use((function(r,e,t){r.run(e.tree,e.file,(function(r,u,n){r?t(r):(e.tree=u,e.file=n,t())}))})).use((function(r,e){e.file.contents=r.stringify(e.tree,e.file)}));function Cu(r,e){return"function"==typeof r&&r.prototype&&(function(r){var e;for(e in r)return!0;return!1}(r.prototype)||e in r.prototype)}function Fu(r,e){if("function"!=typeof e)throw new Error("Cannot `"+r+"` without `Parser`")}function wu(r,e){if("function"!=typeof e)throw new Error("Cannot `"+r+"` without `Compiler`")}function Au(r,e){if(e)throw new Error("Cannot invoke `"+r+"` on a frozen processor.\nCreate a new processor first, by invoking it: use `processor()` instead of `processor`.")}function yu(r){if(!r||"string"!=typeof r.type)throw new Error("Expected node, got `"+r+"`")}function qu(r,e,t){if(!t)throw new Error("`"+r+"` finished async. Use `"+e+"` instead")}const ku=/[|\\{}()[\]^$+*?.-]/g;var xu=r=>{if("string"!=typeof r)throw new TypeError("Expected a string");return r.replace(ku,"\\$&")};const Bu={"---":"yaml","+++":"toml"};var Lu=function(r){const e=Object.keys(Bu).map(xu).join("|"),t=r.match(new RegExp("^(".concat(e,")[^\\n\\S]*\\n(?:([\\s\\S]*?)\\n)?\\1[^\\n\\S]*(\\n|$)")));if(null===t)return{frontMatter:null,content:r};const[u,n,o]=t;return{frontMatter:{type:Bu[n],value:o,raw:u.replace(/\n$/,"")},content:u.replace(/[^\n]/g," ")+r.slice(u.length)}};const Su=["format","prettier"];function Tu(r){const e="@(".concat(Su.join("|"),")"),t=new RegExp(["\x3c!--\\s*".concat(e,"\\s*--\x3e"),"\x3c!--.*\r?\n[\\s\\S]*(^|\n)[^\\S\n]*".concat(e,"[^\\S\n]*($|\n)[\\s\\S]*\n.*--\x3e")].join("|"),"m"),u=r.match(t);return u&&0===u.index}var Nu={startWithPragma:Tu,hasPragma:r=>Tu(Lu(r).content.trimStart()),insertPragma:r=>{const e=Lu(r),t="\x3c!-- @".concat(Su[0]," --\x3e");return e.frontMatter?"".concat(e.frontMatter.raw,"\n\n").concat(t,"\n\n").concat(e.content):"".concat(t,"\n\n").concat(e.content)}},Ou=r=>"string"==typeof r?r.replace((({onlyFirst:r=!1}={})=>{const e=["[\\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(e,r?void 0:"g")})(),""):r;const Ru=r=>!Number.isNaN(r)&&(r>=4352&&(r<=4447||9001===r||9002===r||11904<=r&&r<=12871&&12351!==r||12880<=r&&r<=19903||19968<=r&&r<=42182||43360<=r&&r<=43388||44032<=r&&r<=55203||63744<=r&&r<=64255||65040<=r&&r<=65049||65072<=r&&r<=65131||65281<=r&&r<=65376||65504<=r&&r<=65510||110592<=r&&r<=110593||127488<=r&&r<=127569||131072<=r&&r<=262141));var Pu=Ru,Iu=Ru;Pu.default=Iu;const Uu=r=>{if("string"!=typeof(r=r.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===r.length)return 0;r=Ou(r);let e=0;for(let t=0;t<r.length;t++){const u=r.codePointAt(t);u<=31||u>=127&&u<=159||(u>=768&&u<=879||(u>65535&&t++,e+=Pu(u)?2:1))}return e};var Vu=Uu,ju=Uu;Vu.default=ju;const zu=/[^\x20-\x7F]/;function Gu(r){return(e,t,u)=>{const n=u&&u.backwards;if(!1===t)return!1;const{length:o}=e;let a=t;for(;a>=0&&a<o;){const t=e.charAt(a);if(r instanceof RegExp){if(!r.test(t))return a}else if(!r.includes(t))return a;n?a--:a++}return(-1===a||a===o)&&a}}const Hu=Gu(/\s/),Mu=Gu(" \t"),_u=Gu(",; \t"),$u=Gu(/[^\r\n]/);function Zu(r,e){if(!1===e)return!1;if("/"===r.charAt(e)&&"*"===r.charAt(e+1))for(let t=e+2;t<r.length;++t)if("*"===r.charAt(t)&&"/"===r.charAt(t+1))return t+2;return e}function Yu(r,e){return!1!==e&&("/"===r.charAt(e)&&"/"===r.charAt(e+1)?$u(r,e):e)}function Ju(r,e,t){const u=t&&t.backwards;if(!1===e)return!1;const n=r.charAt(e);if(u){if("\r"===r.charAt(e-1)&&"\n"===n)return e-2;if("\n"===n||"\r"===n||"\u2028"===n||"\u2029"===n)return e-1}else{if("\r"===n&&"\n"===r.charAt(e+1))return e+2;if("\n"===n||"\r"===n||"\u2028"===n||"\u2029"===n)return e+1}return e}function Qu(r,e,t){const u=Mu(r,(t=t||{}).backwards?e-1:e,t);return u!==Ju(r,u,t)}function Wu(r,e){let t=null,u=e;for(;u!==t;)t=u,u=_u(r,u),u=Zu(r,u),u=Mu(r,u);return u=Yu(r,u),u=Ju(r,u),!1!==u&&Qu(r,u)}function Ku(r,e){let t=null,u=e;for(;u!==t;)t=u,u=Mu(r,u),u=Zu(r,u),u=Yu(r,u),u=Ju(r,u);return u}function Xu(r,e,t){return Ku(r,t(e))}const rn={};function en(r){return rn[r]}[["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].forEach((r,e)=>{r.forEach(r=>{rn[r]=e})});const tn={"==":!0,"!=":!0,"===":!0,"!==":!0},un={"*":!0,"/":!0,"%":!0},nn={">>":!0,">>>":!0,"<<":!0};function on(r,e,t){let u=0;for(let n=t=t||0;n<r.length;++n)"\t"===r[n]?u=u+e-u%e:u++;return u}function an(r,e){const t=r.slice(1,-1),u={quote:'"',regex:/"/g},n={quote:"'",regex:/'/g},o="'"===e?n:u,a=o===n?u:n;let i=o.quote;if(t.includes(o.quote)||t.includes(a.quote)){i=(t.match(o.regex)||[]).length>(t.match(a.regex)||[]).length?a.quote:o.quote}return i}function cn(r,e,t){const u='"'===e?"'":'"',n=r.replace(/\\([\s\S])|(['"])/g,(r,n,o)=>n===u?n:o===e?"\\"+o:o||(t&&/^[^\\nrvtbfux\r\n\u2028\u2029"'0-7]$/.test(n)?n:"\\"+n));return e+n+e}function sn(r){return r&&r.comments&&r.comments.length>0&&r.comments.some(r=>"prettier-ignore"===r.value.trim())}function ln(r,e){(r.comments||(r.comments=[])).push(e),e.printed=!1,"JSXText"===r.type&&(e.printed=!0)}var Dn={replaceEndOfLineWith:function(r,e){const t=[];for(const u of r.split("\n"))0!==t.length&&t.push(e),t.push(u);return t},getStringWidth:function(r){return r?zu.test(r)?Vu(r):r.length:0},getMaxContinuousCount:function(r,e){const t=r.match(new RegExp("(".concat(xu(e),")+"),"g"));return null===t?0:t.reduce((r,t)=>Math.max(r,t.length/e.length),0)},getMinNotPresentContinuousCount:function(r,e){const t=r.match(new RegExp("(".concat(xu(e),")+"),"g"));if(null===t)return 0;const u=new Map;let n=0;for(const r of t){const t=r.length/e.length;u.set(t,!0),t>n&&(n=t)}for(let r=1;r<n;r++)if(!u.get(r))return r;return n+1},getPrecedence:en,shouldFlatten:function(r,e){return en(e)===en(r)&&("**"!==r&&((!tn[r]||!tn[e])&&(!("%"===e&&un[r]||"%"===r&&un[e])&&((e===r||!un[e]||!un[r])&&(!nn[r]||!nn[e])))))},isBitwiseOperator:function(r){return!!nn[r]||"|"===r||"^"===r||"&"===r},getPenultimate:function(r){return r.length>1?r[r.length-2]:null},getLast:r=>r[r.length-1],getNextNonSpaceNonCommentCharacterIndexWithStartIndex:Ku,getNextNonSpaceNonCommentCharacterIndex:Xu,getNextNonSpaceNonCommentCharacter:function(r,e,t){return r.charAt(Xu(r,e,t))},skip:Gu,skipWhitespace:Hu,skipSpaces:Mu,skipToLineEnd:_u,skipEverythingButNewLine:$u,skipInlineComment:Zu,skipTrailingComment:Yu,skipNewline:Ju,isNextLineEmptyAfterIndex:Wu,isNextLineEmpty:function(r,e,t){return Wu(r,t(e))},isPreviousLineEmpty:function(r,e,t){let u=t(e)-1;return u=Mu(r,u,{backwards:!0}),u=Ju(r,u,{backwards:!0}),u=Mu(r,u,{backwards:!0}),u!==Ju(r,u,{backwards:!0})},hasNewline:Qu,hasNewlineInRange:function(r,e,t){for(let u=e;u<t;++u)if("\n"===r.charAt(u))return!0;return!1},hasSpaces:function(r,e,t){return Mu(r,(t=t||{}).backwards?e-1:e,t)!==e},setLocStart:function(r,e){r.range?r.range[0]=e:r.start=e},setLocEnd:function(r,e){r.range?r.range[1]=e:r.end=e},startsWithNoLookaheadToken:function r(e,t){switch((e=function r(e){if(e.left)return r(e.left);return e}(e)).type){case"FunctionExpression":case"ClassExpression":case"DoExpression":return t;case"ObjectExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return r(e.object,t);case"TaggedTemplateExpression":return"FunctionExpression"!==e.tag.type&&r(e.tag,t);case"CallExpression":case"OptionalCallExpression":return"FunctionExpression"!==e.callee.type&&r(e.callee,t);case"ConditionalExpression":return r(e.test,t);case"UpdateExpression":return!e.prefix&&r(e.argument,t);case"BindExpression":return e.object&&r(e.object,t);case"SequenceExpression":return r(e.expressions[0],t);case"TSAsExpression":return r(e.expression,t);default:return!1}},getAlignmentSize:on,getIndentSize:function(r,e){const t=r.lastIndexOf("\n");return-1===t?0:on(r.slice(t+1).match(/^[ \t]*/)[0],e)},getPreferredQuote:an,printString:function(r,e,t){const u=r.slice(1,-1),n=!u.includes('"')&&!u.includes("'"),o="json"===e.parser?'"':e.__isInHtmlAttribute?"'":an(r,e.singleQuote?"'":'"');return t?n?o+u+o:r:cn(u,o,!("css"===e.parser||"less"===e.parser||"scss"===e.parser||e.embeddedInHtml))},printNumber:function(r){return r.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(r){return sn(r.getValue())},hasNodeIgnoreComment:sn,makeString:cn,addLeadingComment:function(r,e){e.leading=!0,e.trailing=!1,ln(r,e)},addDanglingComment:function(r,e){e.leading=!1,e.trailing=!1,ln(r,e)},addTrailingComment:function(r,e){e.leading=!1,e.trailing=!0,ln(r,e)},isWithinParentArrayProperty:function(r,e){const t=r.getValue(),u=r.getParentNode();if(null==u)return!1;if(!Array.isArray(u[e]))return!1;const n=r.getName();return u[e][n]===t}};const{cjkPattern:fn,kPattern:pn,punctuationPattern:dn}={cjkPattern:"[\\u02ea-\\u02eb\\u1100-\\u11ff\\u2e80-\\u2e99\\u2e9b-\\u2ef3\\u2f00-\\u2fd5\\u3000-\\u303f\\u3041-\\u3096\\u3099-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312f\\u3131-\\u318e\\u3190-\\u3191\\u3196-\\u31ba\\u31c0-\\u31e3\\u31f0-\\u321e\\u322a-\\u3247\\u3260-\\u327e\\u328a-\\u32b0\\u32c0-\\u32cb\\u32d0-\\u3370\\u337b-\\u337f\\u33e0-\\u33fe\\u3400-\\u4db5\\u4e00-\\u9fef\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufe10-\\ufe1f\\ufe30-\\ufe6f\\uff00-\\uffef]|[\\ud840-\\ud868\\ud86a-\\ud86c\\ud86f-\\ud872\\ud874-\\ud879][\\udc00-\\udfff]|\\ud82c[\\udc00-\\udd1e\\udd50-\\udd52\\udd64-\\udd67]|\\ud83c[\\ude00\\ude50-\\ude51]|\\ud869[\\udc00-\\uded6\\udf00-\\udfff]|\\ud86d[\\udc00-\\udf34\\udf40-\\udfff]|\\ud86e[\\udc00-\\udc1d\\udc20-\\udfff]|\\ud873[\\udc00-\\udea1\\udeb0-\\udfff]|\\ud87a[\\udc00-\\udfe0]|\\ud87e[\\udc00-\\ude1d]",kPattern:"[\\u1100-\\u11ff\\u3001-\\u3003\\u3008-\\u3011\\u3013-\\u301f\\u302e-\\u3030\\u3037\\u30fb\\u3131-\\u318e\\u3200-\\u321e\\u3260-\\u327e\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\ufe45-\\ufe46\\uff61-\\uff65\\uffa0-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc]",punctuationPattern:"[\\u0021-\\u002f\\u003a-\\u0040\\u005b-\\u0060\\u007b-\\u007e\\u00a1\\u00a7\\u00ab\\u00b6-\\u00b7\\u00bb\\u00bf\\u037e\\u0387\\u055a-\\u055f\\u0589-\\u058a\\u05be\\u05c0\\u05c3\\u05c6\\u05f3-\\u05f4\\u0609-\\u060a\\u060c-\\u060d\\u061b\\u061e-\\u061f\\u066a-\\u066d\\u06d4\\u0700-\\u070d\\u07f7-\\u07f9\\u0830-\\u083e\\u085e\\u0964-\\u0965\\u0970\\u09fd\\u0a76\\u0af0\\u0c77\\u0c84\\u0df4\\u0e4f\\u0e5a-\\u0e5b\\u0f04-\\u0f12\\u0f14\\u0f3a-\\u0f3d\\u0f85\\u0fd0-\\u0fd4\\u0fd9-\\u0fda\\u104a-\\u104f\\u10fb\\u1360-\\u1368\\u1400\\u166e\\u169b-\\u169c\\u16eb-\\u16ed\\u1735-\\u1736\\u17d4-\\u17d6\\u17d8-\\u17da\\u1800-\\u180a\\u1944-\\u1945\\u1a1e-\\u1a1f\\u1aa0-\\u1aa6\\u1aa8-\\u1aad\\u1b5a-\\u1b60\\u1bfc-\\u1bff\\u1c3b-\\u1c3f\\u1c7e-\\u1c7f\\u1cc0-\\u1cc7\\u1cd3\\u2010-\\u2027\\u2030-\\u2043\\u2045-\\u2051\\u2053-\\u205e\\u207d-\\u207e\\u208d-\\u208e\\u2308-\\u230b\\u2329-\\u232a\\u2768-\\u2775\\u27c5-\\u27c6\\u27e6-\\u27ef\\u2983-\\u2998\\u29d8-\\u29db\\u29fc-\\u29fd\\u2cf9-\\u2cfc\\u2cfe-\\u2cff\\u2d70\\u2e00-\\u2e2e\\u2e30-\\u2e4f\\u3001-\\u3003\\u3008-\\u3011\\u3014-\\u301f\\u3030\\u303d\\u30a0\\u30fb\\ua4fe-\\ua4ff\\ua60d-\\ua60f\\ua673\\ua67e\\ua6f2-\\ua6f7\\ua874-\\ua877\\ua8ce-\\ua8cf\\ua8f8-\\ua8fa\\ua8fc\\ua92e-\\ua92f\\ua95f\\ua9c1-\\ua9cd\\ua9de-\\ua9df\\uaa5c-\\uaa5f\\uaade-\\uaadf\\uaaf0-\\uaaf1\\uabeb\\ufd3e-\\ufd3f\\ufe10-\\ufe19\\ufe30-\\ufe52\\ufe54-\\ufe61\\ufe63\\ufe68\\ufe6a-\\ufe6b\\uff01-\\uff03\\uff05-\\uff0a\\uff0c-\\uff0f\\uff1a-\\uff1b\\uff1f-\\uff20\\uff3b-\\uff3d\\uff3f\\uff5b\\uff5d\\uff5f-\\uff65]|\\ud800[\\udd00-\\udd02\\udf9f\\udfd0]|\\ud801[\\udd6f]|\\ud802[\\udc57\\udd1f\\udd3f\\ude50-\\ude58\\ude7f\\udef0-\\udef6\\udf39-\\udf3f\\udf99-\\udf9c]|\\ud803[\\udf55-\\udf59]|\\ud804[\\udc47-\\udc4d\\udcbb-\\udcbc\\udcbe-\\udcc1\\udd40-\\udd43\\udd74-\\udd75\\uddc5-\\uddc8\\uddcd\\udddb\\udddd-\\udddf\\ude38-\\ude3d\\udea9]|\\ud805[\\udc4b-\\udc4f\\udc5b\\udc5d\\udcc6\\uddc1-\\uddd7\\ude41-\\ude43\\ude60-\\ude6c\\udf3c-\\udf3e]|\\ud806[\\udc3b\\udde2\\ude3f-\\ude46\\ude9a-\\ude9c\\ude9e-\\udea2]|\\ud807[\\udc41-\\udc45\\udc70-\\udc71\\udef7-\\udef8\\udfff]|\\ud809[\\udc70-\\udc74]|\\ud81a[\\ude6e-\\ude6f\\udef5\\udf37-\\udf3b\\udf44]|\\ud81b[\\ude97-\\ude9a\\udfe2]|\\ud82f[\\udc9f]|\\ud836[\\ude87-\\ude8b]|\\ud83a[\\udd5e-\\udd5f]"},{getLast:hn}=Dn,gn=["liquidNode","inlineCode","emphasis","strong","delete","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break","inlineMath"],mn=gn.concat(["tableCell","paragraph","heading"]),bn=new RegExp(pn),En=new RegExp(dn);function vn(r,e){const[,t,u,n]=e.slice(r.position.start.offset,r.position.end.offset).match(/^\s*(\d+)(\.|\))(\s*)/);return{numberText:t,marker:u,leadingSpaces:n}}var Cn={mapAst:function(r,e){return function r(t,u,n){n=n||[];const o=Object.assign({},e(t,u,n));return o.children&&(o.children=o.children.map((e,t)=>r(e,t,[o].concat(n)))),o}(r,null,null)},splitText:function(r,e){const t=[];return("preserve"===e.proseWrap?r:r.replace(new RegExp("(".concat(fn,")\n(").concat(fn,")"),"g"),"$1$2")).split(/([ \t\n]+)/).forEach((r,e,n)=>{e%2!=1?(0!==e&&e!==n.length-1||""!==r)&&r.split(new RegExp("(".concat(fn,")"))).forEach((r,e,t)=>{(0!==e&&e!==t.length-1||""!==r)&&(e%2!=0?u(En.test(r)?{type:"word",value:r,kind:"cjk-punctuation",hasLeadingPunctuation:!0,hasTrailingPunctuation:!0}:{type:"word",value:r,kind:bn.test(r)?"k-letter":"cj-letter",hasLeadingPunctuation:!1,hasTrailingPunctuation:!1}):""!==r&&u({type:"word",value:r,kind:"non-cjk",hasLeadingPunctuation:En.test(r[0]),hasTrailingPunctuation:En.test(hn(r))}))}):t.push({type:"whitespace",value:/\n/.test(r)?"\n":" "})}),t;function u(r){const e=hn(t);var u,n;e&&"word"===e.type&&("non-cjk"===e.kind&&"cj-letter"===r.kind&&!e.hasTrailingPunctuation||"cj-letter"===e.kind&&"non-cjk"===r.kind&&!r.hasLeadingPunctuation?t.push({type:"whitespace",value:" "}):(u="non-cjk",n="cjk-punctuation",e.kind===u&&r.kind===n||e.kind===n&&r.kind===u||[e.value,r.value].some(r=>/\u3000/.test(r))||t.push({type:"whitespace",value:""}))),t.push(r)}},punctuationPattern:dn,getFencedCodeBlockValue:function(r,e){const t=e.slice(r.position.start.offset,r.position.end.offset),u=t.match(/^\s*/)[0].length,n=new RegExp("^\\s{0,".concat(u,"}")),o=t.split("\n"),a=t[u],i=t.slice(u).match(new RegExp("^[".concat(a,"]+")))[0],c=new RegExp("^\\s{0,3}".concat(i)).test(o[o.length-1].slice(s(o.length-1)));return o.slice(1,c?-1:void 0).map((r,e)=>r.slice(s(e+1)).replace(n,"")).join("\n");function s(e){return r.position.indent[e-1]-1}},getOrderedListItemInfo:vn,hasGitDiffFriendlyOrderedList:function(r,e){if(!r.ordered)return!1;if(r.children.length<2)return!1;const t=Number(vn(r.children[0],e.originalText).numberText),u=Number(vn(r.children[1],e.originalText).numberText);if(0===t&&r.children.length>2){const t=Number(vn(r.children[2],e.originalText).numberText);return 1===u&&1===t}return 1===u},INLINE_NODE_TYPES:gn,INLINE_NODE_WRAPPER_TYPES:mn};const Fn=/^import\s/,wn=/^export\s/,An=r=>Fn.test(r),yn=r=>wn.test(r),qn=(r,e)=>{const t=e.indexOf("\n\n"),u=e.slice(0,t);if(yn(u)||An(u))return r(u)({type:yn(u)?"export":"import",value:u})};qn.locator=r=>yn(r)||An(r)?-1:1;var kn={esSyntax:function(){const{Parser:r}=this,e=r.prototype.blockTokenizers,t=r.prototype.blockMethods;e.esSyntax=qn,t.splice(t.indexOf("paragraph"),0,"esSyntax")},BLOCKS_REGEX:"[a-z][a-z0-9]*(\\.[a-z][a-z0-9]*)*|",COMMENT_REGEX:"\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e"};function xn(r,e){return r.indexOf("$",e)}const Bn=/^\\\$/,Ln=/^\$((?:\\\$|[^$])+)\$/,Sn=/^\$\$((?:\\\$|[^$])+)\$\$/;var Tn=function(r){function e(e,t,u){let n=!0,o=Sn.exec(t);o||(o=Ln.exec(t),n=!1);const a=Bn.exec(t);if(a)return!!u||e(a[0])({type:"text",value:"$"});if("\\$"===t.slice(-2))return e(t)({type:"text",value:t.slice(0,-2)+"$"});if(o){if(u)return!0;if(o[0].includes("`")&&t.slice(o[0].length).includes("`")){const r=t.slice(0,t.indexOf("`"));return e(r)({type:"text",value:r})}const a=o[1].trim();return e(o[0])({type:"inlineMath",value:a,data:{hName:"span",hProperties:{className:"inlineMath"+(n&&r.inlineMathDouble?" inlineMathDouble":"")},hChildren:[{type:"text",value:a}]}})}}e.locator=xn;const t=this.Parser,u=t.prototype.inlineTokenizers,n=t.prototype.inlineMethods;u.math=e,n.splice(n.indexOf("text"),0,"math");const o=this.Compiler;if(null!=o){o.prototype.visitors.inlineMath=function(r){return"$"+r.value+"$"}}},Nn=function(r){const e=this.Parser,t=e.prototype.blockTokenizers,u=e.prototype.blockMethods;t.math=function(r,e,t){for(var u,n,o,a,i,c,s,l,D,f,p=e.length+1,d=0,h="";d<p&&(" "===(o=e.charAt(d))||"\t"===o);)h+=o,d++;if(D=d,"$"!==(o=e.charAt(d)))return;for(d++,n=o,u=1,h+=o;d<p&&(o=e.charAt(d))===n;)h+=o,u++,d++;if(u<2)return;for(;d<p&&"\n"!==(o=e.charAt(d));){if("$"===o)return;h+=o,d++}if(o=e.charAt(d),t)return!0;for((f=r.now()).column+=h.length,f.offset+=h.length,a=s=l=i=c="";d<p;)if(i+=s,c+=l,s=l="","\n"===(o=e.charAt(d))){for(i?(s+=o,l+=o):h+=o,a="",d++;d<p&&" "===(o=e.charAt(d));)a+=o,d++;if(s+=a,l+=a.slice(D),!(a.length>=4)){for(a="";d<p&&(o=e.charAt(d))===n;)a+=o,d++;if(s+=a,l+=a,!(a.length<u)){for(a="";d<p&&"\n"!==(o=e.charAt(d));)s+=o,l+=o,d++;break}}}else i+=o,l+=o,d++;h+=i+s;const g=Cr(c);return r(h)({type:"math",value:g,data:{hName:"div",hProperties:{className:"math"},hChildren:[{type:"text",value:g}]}})},u.splice(u.indexOf("fencedCode")+1,0,"math");const n=e.prototype.interruptParagraph,o=e.prototype.interruptList,a=e.prototype.interruptBlockquote;n.splice(n.indexOf("fencedCode")+1,0,["math"]),o.splice(o.indexOf("fencedCode")+1,0,["math"]),a.splice(a.indexOf("fencedCode")+1,0,["math"]);const i=this.Compiler;if(null!=i){i.prototype.visitors.math=function(r){return"$$\n"+r.value+"\n$$"}}},On=function(r){null==r&&(r={}),Nn.call(this,r),Tn.call(this,r)};const{mapAst:Rn,INLINE_NODE_WRAPPER_TYPES:Pn}=Cn;function In({isMDX:r}){return e=>{const t=mu().use(nt,Object.assign({footnotes:!0,commonmark:!0},r&&{blocks:[kn.BLOCKS_REGEX]})).use(jn).use(On).use(r?kn.esSyntax:Un).use(zn).use(r?Vn:Un);return t.runSync(t.parse(e))}}function Un(r){return r}function Vn(){return r=>Rn(r,(r,e,[t])=>"html"!==r.type||r.value.match(kn.COMMENT_REGEX)||Pn.includes(t.type)?r:Object.assign({},r,{type:"jsx"}))}function jn(){const r=this.Parser.prototype;function e(r,e){const t=Lu(e);if(t.frontMatter)return r(t.frontMatter.raw)(t.frontMatter)}r.blockMethods=["frontMatter"].concat(r.blockMethods),r.blockTokenizers.frontMatter=e,e.onlyAtStart=!0}function zn(){const r=this.Parser.prototype,e=r.inlineMethods;function t(r,e){const t=e.match(/^({%[\s\S]*?%}|{{[\s\S]*?}})/);if(t)return r(t[0])({type:"liquidNode",value:t[0]})}e.splice(e.indexOf("text"),0,"liquid"),r.inlineTokenizers.liquid=t,t.locator=function(r,e){return r.indexOf("{",e)}}const Gn={astFormat:"mdast",hasPragma:Nu.hasPragma,locStart:r=>r.position.start.offset,locEnd:r=>r.position.end.offset,preprocess:r=>r.replace(/\n\s+$/,"\n")},Hn=Object.assign({},Gn,{parse:In({isMDX:!1})});var Mn={parsers:{remark:Hn,markdown:Hn,mdx:Object.assign({},Gn,{parse:In({isMDX:!0})})}},_n=Mn.parsers;r.default=Mn,r.parsers=_n,Object.defineProperty(r,"__esModule",{value:!0})}));
|
|
13
|
+
*/function ou(r){var e,t,u;if(r){if("string"==typeof r||ru(r))r={contents:r};else if("message"in r&&"messages"in r)return r}else r={};if(!(this instanceof ou))return new ou(r);for(this.data={},this.messages=[],this.history=[],this.cwd=Jt.cwd(),t=-1,u=nu.length;++t<u;)e=nu[t],tu.call(r,e)&&(this[e]=r[e]);for(e in r)-1===nu.indexOf(e)&&(this[e]=r[e])}function au(r,e){if(-1!==r.indexOf(Kt.sep))throw new Error("`"+e+"` cannot be a path: did not expect `"+Kt.sep+"`")}function iu(r,e){if(!r)throw new Error("`"+e+"` cannot be empty")}function cu(r,e){if(!r)throw new Error("Setting `"+e+"` requires `path` to be set too")}uu.toString=function(r){var e=this.contents||"";return ru(e)?e.toString(r):String(e)},Object.defineProperty(uu,"path",{get:function(){return this.history[this.history.length-1]},set:function(r){iu(r,"path"),r!==this.path&&this.history.push(r)}}),Object.defineProperty(uu,"dirname",{get:function(){return"string"==typeof this.path?Kt.dirname(this.path):void 0},set:function(r){cu(this.path,"dirname"),this.path=Kt.join(r||"",this.basename)}}),Object.defineProperty(uu,"basename",{get:function(){return"string"==typeof this.path?Kt.basename(this.path):void 0},set:function(r){iu(r,"basename"),au(r,"basename"),this.path=Kt.join(this.dirname||"",r)}}),Object.defineProperty(uu,"extname",{get:function(){return"string"==typeof this.path?Kt.extname(this.path):void 0},set:function(r){var e=r||"";if(au(e,"extname"),cu(this.path,"extname"),e){if("."!==e.charAt(0))throw new Error("`extname` must start with `.`");if(-1!==e.indexOf(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Xt(this.path,e)}}),Object.defineProperty(uu,"stem",{get:function(){return"string"==typeof this.path?Kt.basename(this.path,this.extname):void 0},set:function(r){iu(r,"stem"),au(r,"stem"),this.path=Kt.join(this.dirname||"",r+(this.extname||""))}});var su=eu,lu=eu.prototype;lu.message=function(r,e,t){var u=this.path,n=new Ct(r,e,t);u&&(n.name=u+":"+n.name,n.file=u);return n.fatal=!1,this.messages.push(n),n},lu.info=function(){var r=this.message.apply(this,arguments);return r.fatal=null,r},lu.fail=function(){var r=this.message.apply(this,arguments);throw r.fatal=!0,r};var Du=[].slice,fu=function(r,e){var t;return function(){var e,o=Du.call(arguments,0),a=r.length>o.length;a&&o.push(u);try{e=r.apply(null,o)}catch(r){if(a&&t)throw r;return u(r)}a||(e&&"function"==typeof e.then?e.then(n,u):e instanceof Error?u(e):n(e))};function u(){t||(t=!0,e.apply(null,arguments))}function n(r){u(null,r)}};var pu=hu;hu.wrap=fu;var du=[].slice;function hu(){var r=[],e={run:function(){var e=-1,t=du.call(arguments,0,-1),u=arguments[arguments.length-1];if("function"!=typeof u)throw new Error("Expected function as last argument, not "+u);function n(o){var a=r[++e],i=du.call(arguments,0),c=i.slice(1),s=t.length,l=-1;if(o)u(o);else{for(;++l<s;)null!==c[l]&&void 0!==c[l]||(c[l]=t[l]);t=c,a?fu(a,n).apply(null,t):u.apply(null,[null].concat(t))}}n.apply(null,[null].concat(t))},use:function(t){if("function"!=typeof t)throw new Error("Expected `fn` to be a function, not "+t);return r.push(t),e}};return e}var gu=r=>{if("[object Object]"!==Object.prototype.toString.call(r))return!1;const e=Object.getPrototypeOf(r);return null===e||e===Object.prototype},mu=function r(){var e=[],t=pu(),u={},n=!1,o=-1;return a.data=function(r,e){if("string"==typeof r)return 2===arguments.length?(Au("data",n),u[r]=e,a):Eu.call(u,r)&&u[r]||null;if(r)return Au("data",n),u=r,a;return u},a.freeze=i,a.attachers=e,a.use=function(r){var t;if(Au("use",n),null==r);else if("function"==typeof r)l.apply(null,arguments);else{if("object"!=typeof r)throw new Error("Expected usable value, not `"+r+"`");"length"in r?s(r):o(r)}t&&(u.settings=dt(u.settings||{},t));return a;function o(r){s(r.plugins),r.settings&&(t=dt(t||{},r.settings))}function i(r){if("function"==typeof r)l(r);else{if("object"!=typeof r)throw new Error("Expected usable value, not `"+r+"`");"length"in r?l.apply(null,r):o(r)}}function s(r){var e,t;if(null==r);else{if(!("object"==typeof r&&"length"in r))throw new Error("Expected a list of plugins, not `"+r+"`");for(e=r.length,t=-1;++t<e;)i(r[t])}}function l(r,t){var u=c(r);u?(gu(u[1])&&gu(t)&&(t=dt(u[1],t)),u[1]=t):e.push(bu.call(arguments))}},a.parse=function(r){var e,t=su(r);if(i(),Fu("parse",e=a.Parser),Cu(e,"parse"))return new e(String(t),t).parse();return e(String(t),t)},a.stringify=function(r,e){var t,u=su(e);if(i(),wu("stringify",t=a.Compiler),yu(r),Cu(t,"compile"))return new t(r,u).compile();return t(r,u)},a.run=s,a.runSync=function(r,e){var t,u=!1;return s(r,e,(function(r,e){u=!0,ht(r),t=e})),qu("runSync","run",u),t},a.process=l,a.processSync=D,a;function a(){for(var t=r(),n=e.length,o=-1;++o<n;)t.use.apply(null,e[o]);return t.data(dt(!0,{},u)),t}function i(){var r,u,i,c;if(n)return a;for(;++o<e.length;)u=(r=e[o])[0],null,!1!==(i=r[1])&&(!0===i&&(r[1]=void 0),"function"==typeof(c=u.apply(a,r.slice(1)))&&t.use(c));return n=!0,o=1/0,a}function c(r){for(var t,u=e.length,n=-1;++n<u;)if((t=e[n])[0]===r)return t}function s(r,e,u){if(yu(r),i(),u||"function"!=typeof e||(u=e,e=null),!u)return new Promise(n);function n(n,o){t.run(r,su(e),(function(e,t,a){t=t||r,e?o(e):n?n(t):u(null,t,a)}))}n(null,u)}function l(r,e){if(i(),Fu("process",a.Parser),wu("process",a.Compiler),!e)return new Promise(t);function t(t,u){var n=su(r);vu.run(a,{file:n},(function(r){r?u(r):t?t(n):e(null,n)}))}t(null,e)}function D(r){var e,t=!1;return i(),Fu("processSync",a.Parser),wu("processSync",a.Compiler),l(e=su(r),(function(r){t=!0,ht(r)})),qu("processSync","process",t),e}}().freeze(),bu=[].slice,Eu={}.hasOwnProperty,vu=pu().use((function(r,e){e.tree=r.parse(e.file)})).use((function(r,e,t){r.run(e.tree,e.file,(function(r,u,n){r?t(r):(e.tree=u,e.file=n,t())}))})).use((function(r,e){e.file.contents=r.stringify(e.tree,e.file)}));function Cu(r,e){return"function"==typeof r&&r.prototype&&(function(r){var e;for(e in r)return!0;return!1}(r.prototype)||e in r.prototype)}function Fu(r,e){if("function"!=typeof e)throw new Error("Cannot `"+r+"` without `Parser`")}function wu(r,e){if("function"!=typeof e)throw new Error("Cannot `"+r+"` without `Compiler`")}function Au(r,e){if(e)throw new Error("Cannot invoke `"+r+"` on a frozen processor.\nCreate a new processor first, by invoking it: use `processor()` instead of `processor`.")}function yu(r){if(!r||"string"!=typeof r.type)throw new Error("Expected node, got `"+r+"`")}function qu(r,e,t){if(!t)throw new Error("`"+r+"` finished async. Use `"+e+"` instead")}const ku=/[|\\{}()[\]^$+*?.-]/g;var xu=r=>{if("string"!=typeof r)throw new TypeError("Expected a string");return r.replace(ku,"\\$&")};const Bu={"---":"yaml","+++":"toml"};var Lu=function(r){const e=Object.keys(Bu).map(xu).join("|"),t=r.match(new RegExp("^(".concat(e,")[^\\n\\S]*\\n(?:([\\s\\S]*?)\\n)?\\1[^\\n\\S]*(\\n|$)")));if(null===t)return{frontMatter:null,content:r};const[u,n,o]=t;return{frontMatter:{type:Bu[n],value:o,raw:u.replace(/\n$/,"")},content:u.replace(/[^\n]/g," ")+r.slice(u.length)}};const Su=["format","prettier"];function Tu(r){const e="@(".concat(Su.join("|"),")"),t=new RegExp(["\x3c!--\\s*".concat(e,"\\s*--\x3e"),"\x3c!--.*\r?\n[\\s\\S]*(^|\n)[^\\S\n]*".concat(e,"[^\\S\n]*($|\n)[\\s\\S]*\n.*--\x3e")].join("|"),"m"),u=r.match(t);return u&&0===u.index}var Nu={startWithPragma:Tu,hasPragma:r=>Tu(Lu(r).content.trimStart()),insertPragma:r=>{const e=Lu(r),t="\x3c!-- @".concat(Su[0]," --\x3e");return e.frontMatter?"".concat(e.frontMatter.raw,"\n\n").concat(t,"\n\n").concat(e.content):"".concat(t,"\n\n").concat(e.content)}},Ou=r=>"string"==typeof r?r.replace((({onlyFirst:r=!1}={})=>{const e=["[\\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(e,r?void 0:"g")})(),""):r;const Ru=r=>!Number.isNaN(r)&&(r>=4352&&(r<=4447||9001===r||9002===r||11904<=r&&r<=12871&&12351!==r||12880<=r&&r<=19903||19968<=r&&r<=42182||43360<=r&&r<=43388||44032<=r&&r<=55203||63744<=r&&r<=64255||65040<=r&&r<=65049||65072<=r&&r<=65131||65281<=r&&r<=65376||65504<=r&&r<=65510||110592<=r&&r<=110593||127488<=r&&r<=127569||131072<=r&&r<=262141));var Pu=Ru,Iu=Ru;Pu.default=Iu;const Uu=r=>{if("string"!=typeof(r=r.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===r.length)return 0;r=Ou(r);let e=0;for(let t=0;t<r.length;t++){const u=r.codePointAt(t);u<=31||u>=127&&u<=159||(u>=768&&u<=879||(u>65535&&t++,e+=Pu(u)?2:1))}return e};var Vu=Uu,ju=Uu;Vu.default=ju;const zu=/[^\x20-\x7F]/;function Gu(r){return(e,t,u)=>{const n=u&&u.backwards;if(!1===t)return!1;const{length:o}=e;let a=t;for(;a>=0&&a<o;){const t=e.charAt(a);if(r instanceof RegExp){if(!r.test(t))return a}else if(!r.includes(t))return a;n?a--:a++}return(-1===a||a===o)&&a}}const Hu=Gu(/\s/),Mu=Gu(" \t"),_u=Gu(",; \t"),$u=Gu(/[^\r\n]/);function Zu(r,e){if(!1===e)return!1;if("/"===r.charAt(e)&&"*"===r.charAt(e+1))for(let t=e+2;t<r.length;++t)if("*"===r.charAt(t)&&"/"===r.charAt(t+1))return t+2;return e}function Yu(r,e){return!1!==e&&("/"===r.charAt(e)&&"/"===r.charAt(e+1)?$u(r,e):e)}function Ju(r,e,t){const u=t&&t.backwards;if(!1===e)return!1;const n=r.charAt(e);if(u){if("\r"===r.charAt(e-1)&&"\n"===n)return e-2;if("\n"===n||"\r"===n||"\u2028"===n||"\u2029"===n)return e-1}else{if("\r"===n&&"\n"===r.charAt(e+1))return e+2;if("\n"===n||"\r"===n||"\u2028"===n||"\u2029"===n)return e+1}return e}function Qu(r,e,t){const u=Mu(r,(t=t||{}).backwards?e-1:e,t);return u!==Ju(r,u,t)}function Wu(r,e){let t=null,u=e;for(;u!==t;)t=u,u=_u(r,u),u=Zu(r,u),u=Mu(r,u);return u=Yu(r,u),u=Ju(r,u),!1!==u&&Qu(r,u)}function Ku(r,e){let t=null,u=e;for(;u!==t;)t=u,u=Mu(r,u),u=Zu(r,u),u=Yu(r,u),u=Ju(r,u);return u}function Xu(r,e,t){return Ku(r,t(e))}const rn={};function en(r){return rn[r]}[["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].forEach((r,e)=>{r.forEach(r=>{rn[r]=e})});const tn={"==":!0,"!=":!0,"===":!0,"!==":!0},un={"*":!0,"/":!0,"%":!0},nn={">>":!0,">>>":!0,"<<":!0};function on(r,e,t){let u=0;for(let n=t=t||0;n<r.length;++n)"\t"===r[n]?u=u+e-u%e:u++;return u}function an(r,e){const t=r.slice(1,-1),u={quote:'"',regex:/"/g},n={quote:"'",regex:/'/g},o="'"===e?n:u,a=o===n?u:n;let i=o.quote;if(t.includes(o.quote)||t.includes(a.quote)){i=(t.match(o.regex)||[]).length>(t.match(a.regex)||[]).length?a.quote:o.quote}return i}function cn(r,e,t){const u='"'===e?"'":'"',n=r.replace(/\\([\s\S])|(['"])/g,(r,n,o)=>n===u?n:o===e?"\\"+o:o||(t&&/^[^\\nrvtbfux\r\n\u2028\u2029"'0-7]$/.test(n)?n:"\\"+n));return e+n+e}function sn(r){return r&&(r.comments&&r.comments.length>0&&r.comments.some(r=>ln(r)&&!r.unignore)||r.prettierIgnore)}function ln(r){return"prettier-ignore"===r.value.trim()}function Dn(r,e){(r.comments||(r.comments=[])).push(e),e.printed=!1,"JSXText"===r.type&&(e.printed=!0)}var fn={replaceEndOfLineWith:function(r,e){const t=[];for(const u of r.split("\n"))0!==t.length&&t.push(e),t.push(u);return t},getStringWidth:function(r){return r?zu.test(r)?Vu(r):r.length:0},getMaxContinuousCount:function(r,e){const t=r.match(new RegExp("(".concat(xu(e),")+"),"g"));return null===t?0:t.reduce((r,t)=>Math.max(r,t.length/e.length),0)},getMinNotPresentContinuousCount:function(r,e){const t=r.match(new RegExp("(".concat(xu(e),")+"),"g"));if(null===t)return 0;const u=new Map;let n=0;for(const r of t){const t=r.length/e.length;u.set(t,!0),t>n&&(n=t)}for(let r=1;r<n;r++)if(!u.get(r))return r;return n+1},getPrecedence:en,shouldFlatten:function(r,e){return en(e)===en(r)&&("**"!==r&&((!tn[r]||!tn[e])&&(!("%"===e&&un[r]||"%"===r&&un[e])&&((e===r||!un[e]||!un[r])&&(!nn[r]||!nn[e])))))},isBitwiseOperator:function(r){return!!nn[r]||"|"===r||"^"===r||"&"===r},getPenultimate:function(r){return r.length>1?r[r.length-2]:null},getLast:r=>r[r.length-1],getNextNonSpaceNonCommentCharacterIndexWithStartIndex:Ku,getNextNonSpaceNonCommentCharacterIndex:Xu,getNextNonSpaceNonCommentCharacter:function(r,e,t){return r.charAt(Xu(r,e,t))},skip:Gu,skipWhitespace:Hu,skipSpaces:Mu,skipToLineEnd:_u,skipEverythingButNewLine:$u,skipInlineComment:Zu,skipTrailingComment:Yu,skipNewline:Ju,isNextLineEmptyAfterIndex:Wu,isNextLineEmpty:function(r,e,t){return Wu(r,t(e))},isPreviousLineEmpty:function(r,e,t){let u=t(e)-1;return u=Mu(r,u,{backwards:!0}),u=Ju(r,u,{backwards:!0}),u=Mu(r,u,{backwards:!0}),u!==Ju(r,u,{backwards:!0})},hasNewline:Qu,hasNewlineInRange:function(r,e,t){for(let u=e;u<t;++u)if("\n"===r.charAt(u))return!0;return!1},hasSpaces:function(r,e,t){return Mu(r,(t=t||{}).backwards?e-1:e,t)!==e},setLocStart:function(r,e){r.range?r.range[0]=e:r.start=e},setLocEnd:function(r,e){r.range?r.range[1]=e:r.end=e},startsWithNoLookaheadToken:function r(e,t){switch((e=function r(e){if(e.left)return r(e.left);return e}(e)).type){case"FunctionExpression":case"ClassExpression":case"DoExpression":return t;case"ObjectExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return r(e.object,t);case"TaggedTemplateExpression":return"FunctionExpression"!==e.tag.type&&r(e.tag,t);case"CallExpression":case"OptionalCallExpression":return"FunctionExpression"!==e.callee.type&&r(e.callee,t);case"ConditionalExpression":return r(e.test,t);case"UpdateExpression":return!e.prefix&&r(e.argument,t);case"BindExpression":return e.object&&r(e.object,t);case"SequenceExpression":return r(e.expressions[0],t);case"TSAsExpression":return r(e.expression,t);default:return!1}},getAlignmentSize:on,getIndentSize:function(r,e){const t=r.lastIndexOf("\n");return-1===t?0:on(r.slice(t+1).match(/^[ \t]*/)[0],e)},getPreferredQuote:an,printString:function(r,e,t){const u=r.slice(1,-1),n=!u.includes('"')&&!u.includes("'"),o="json"===e.parser?'"':e.__isInHtmlAttribute?"'":an(r,e.singleQuote?"'":'"');return t?n?o+u+o:r:cn(u,o,!("css"===e.parser||"less"===e.parser||"scss"===e.parser||e.embeddedInHtml))},printNumber:function(r){return r.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(r){return sn(r.getValue())},hasNodeIgnoreComment:sn,isNodeIgnoreComment:ln,makeString:cn,addLeadingComment:function(r,e){e.leading=!0,e.trailing=!1,Dn(r,e)},addDanglingComment:function(r,e){e.leading=!1,e.trailing=!1,Dn(r,e)},addTrailingComment:function(r,e){e.leading=!1,e.trailing=!0,Dn(r,e)},isWithinParentArrayProperty:function(r,e){const t=r.getValue(),u=r.getParentNode();if(null==u)return!1;if(!Array.isArray(u[e]))return!1;const n=r.getName();return u[e][n]===t}};const{cjkPattern:pn,kPattern:dn,punctuationPattern:hn}={cjkPattern:"[\\u02ea-\\u02eb\\u1100-\\u11ff\\u2e80-\\u2e99\\u2e9b-\\u2ef3\\u2f00-\\u2fd5\\u3000-\\u303f\\u3041-\\u3096\\u3099-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312f\\u3131-\\u318e\\u3190-\\u3191\\u3196-\\u31ba\\u31c0-\\u31e3\\u31f0-\\u321e\\u322a-\\u3247\\u3260-\\u327e\\u328a-\\u32b0\\u32c0-\\u32cb\\u32d0-\\u3370\\u337b-\\u337f\\u33e0-\\u33fe\\u3400-\\u4db5\\u4e00-\\u9fef\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufe10-\\ufe1f\\ufe30-\\ufe6f\\uff00-\\uffef]|[\\ud840-\\ud868\\ud86a-\\ud86c\\ud86f-\\ud872\\ud874-\\ud879][\\udc00-\\udfff]|\\ud82c[\\udc00-\\udd1e\\udd50-\\udd52\\udd64-\\udd67]|\\ud83c[\\ude00\\ude50-\\ude51]|\\ud869[\\udc00-\\uded6\\udf00-\\udfff]|\\ud86d[\\udc00-\\udf34\\udf40-\\udfff]|\\ud86e[\\udc00-\\udc1d\\udc20-\\udfff]|\\ud873[\\udc00-\\udea1\\udeb0-\\udfff]|\\ud87a[\\udc00-\\udfe0]|\\ud87e[\\udc00-\\ude1d]",kPattern:"[\\u1100-\\u11ff\\u3001-\\u3003\\u3008-\\u3011\\u3013-\\u301f\\u302e-\\u3030\\u3037\\u30fb\\u3131-\\u318e\\u3200-\\u321e\\u3260-\\u327e\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\ufe45-\\ufe46\\uff61-\\uff65\\uffa0-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc]",punctuationPattern:"[\\u0021-\\u002f\\u003a-\\u0040\\u005b-\\u0060\\u007b-\\u007e\\u00a1\\u00a7\\u00ab\\u00b6-\\u00b7\\u00bb\\u00bf\\u037e\\u0387\\u055a-\\u055f\\u0589-\\u058a\\u05be\\u05c0\\u05c3\\u05c6\\u05f3-\\u05f4\\u0609-\\u060a\\u060c-\\u060d\\u061b\\u061e-\\u061f\\u066a-\\u066d\\u06d4\\u0700-\\u070d\\u07f7-\\u07f9\\u0830-\\u083e\\u085e\\u0964-\\u0965\\u0970\\u09fd\\u0a76\\u0af0\\u0c77\\u0c84\\u0df4\\u0e4f\\u0e5a-\\u0e5b\\u0f04-\\u0f12\\u0f14\\u0f3a-\\u0f3d\\u0f85\\u0fd0-\\u0fd4\\u0fd9-\\u0fda\\u104a-\\u104f\\u10fb\\u1360-\\u1368\\u1400\\u166e\\u169b-\\u169c\\u16eb-\\u16ed\\u1735-\\u1736\\u17d4-\\u17d6\\u17d8-\\u17da\\u1800-\\u180a\\u1944-\\u1945\\u1a1e-\\u1a1f\\u1aa0-\\u1aa6\\u1aa8-\\u1aad\\u1b5a-\\u1b60\\u1bfc-\\u1bff\\u1c3b-\\u1c3f\\u1c7e-\\u1c7f\\u1cc0-\\u1cc7\\u1cd3\\u2010-\\u2027\\u2030-\\u2043\\u2045-\\u2051\\u2053-\\u205e\\u207d-\\u207e\\u208d-\\u208e\\u2308-\\u230b\\u2329-\\u232a\\u2768-\\u2775\\u27c5-\\u27c6\\u27e6-\\u27ef\\u2983-\\u2998\\u29d8-\\u29db\\u29fc-\\u29fd\\u2cf9-\\u2cfc\\u2cfe-\\u2cff\\u2d70\\u2e00-\\u2e2e\\u2e30-\\u2e4f\\u3001-\\u3003\\u3008-\\u3011\\u3014-\\u301f\\u3030\\u303d\\u30a0\\u30fb\\ua4fe-\\ua4ff\\ua60d-\\ua60f\\ua673\\ua67e\\ua6f2-\\ua6f7\\ua874-\\ua877\\ua8ce-\\ua8cf\\ua8f8-\\ua8fa\\ua8fc\\ua92e-\\ua92f\\ua95f\\ua9c1-\\ua9cd\\ua9de-\\ua9df\\uaa5c-\\uaa5f\\uaade-\\uaadf\\uaaf0-\\uaaf1\\uabeb\\ufd3e-\\ufd3f\\ufe10-\\ufe19\\ufe30-\\ufe52\\ufe54-\\ufe61\\ufe63\\ufe68\\ufe6a-\\ufe6b\\uff01-\\uff03\\uff05-\\uff0a\\uff0c-\\uff0f\\uff1a-\\uff1b\\uff1f-\\uff20\\uff3b-\\uff3d\\uff3f\\uff5b\\uff5d\\uff5f-\\uff65]|\\ud800[\\udd00-\\udd02\\udf9f\\udfd0]|\\ud801[\\udd6f]|\\ud802[\\udc57\\udd1f\\udd3f\\ude50-\\ude58\\ude7f\\udef0-\\udef6\\udf39-\\udf3f\\udf99-\\udf9c]|\\ud803[\\udf55-\\udf59]|\\ud804[\\udc47-\\udc4d\\udcbb-\\udcbc\\udcbe-\\udcc1\\udd40-\\udd43\\udd74-\\udd75\\uddc5-\\uddc8\\uddcd\\udddb\\udddd-\\udddf\\ude38-\\ude3d\\udea9]|\\ud805[\\udc4b-\\udc4f\\udc5b\\udc5d\\udcc6\\uddc1-\\uddd7\\ude41-\\ude43\\ude60-\\ude6c\\udf3c-\\udf3e]|\\ud806[\\udc3b\\udde2\\ude3f-\\ude46\\ude9a-\\ude9c\\ude9e-\\udea2]|\\ud807[\\udc41-\\udc45\\udc70-\\udc71\\udef7-\\udef8\\udfff]|\\ud809[\\udc70-\\udc74]|\\ud81a[\\ude6e-\\ude6f\\udef5\\udf37-\\udf3b\\udf44]|\\ud81b[\\ude97-\\ude9a\\udfe2]|\\ud82f[\\udc9f]|\\ud836[\\ude87-\\ude8b]|\\ud83a[\\udd5e-\\udd5f]"},{getLast:gn}=fn,mn=["liquidNode","inlineCode","emphasis","strong","delete","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break","inlineMath"],bn=mn.concat(["tableCell","paragraph","heading"]),En=new RegExp(dn),vn=new RegExp(hn);function Cn(r,e){const[,t,u,n]=e.slice(r.position.start.offset,r.position.end.offset).match(/^\s*(\d+)(\.|\))(\s*)/);return{numberText:t,marker:u,leadingSpaces:n}}var Fn={mapAst:function(r,e){return function r(t,u,n){n=n||[];const o=Object.assign({},e(t,u,n));return o.children&&(o.children=o.children.map((e,t)=>r(e,t,[o].concat(n)))),o}(r,null,null)},splitText:function(r,e){const t=[];return("preserve"===e.proseWrap?r:r.replace(new RegExp("(".concat(pn,")\n(").concat(pn,")"),"g"),"$1$2")).split(/([ \t\n]+)/).forEach((r,e,n)=>{e%2!=1?(0!==e&&e!==n.length-1||""!==r)&&r.split(new RegExp("(".concat(pn,")"))).forEach((r,e,t)=>{(0!==e&&e!==t.length-1||""!==r)&&(e%2!=0?u(vn.test(r)?{type:"word",value:r,kind:"cjk-punctuation",hasLeadingPunctuation:!0,hasTrailingPunctuation:!0}:{type:"word",value:r,kind:En.test(r)?"k-letter":"cj-letter",hasLeadingPunctuation:!1,hasTrailingPunctuation:!1}):""!==r&&u({type:"word",value:r,kind:"non-cjk",hasLeadingPunctuation:vn.test(r[0]),hasTrailingPunctuation:vn.test(gn(r))}))}):t.push({type:"whitespace",value:/\n/.test(r)?"\n":" "})}),t;function u(r){const e=gn(t);var u,n;e&&"word"===e.type&&("non-cjk"===e.kind&&"cj-letter"===r.kind&&!e.hasTrailingPunctuation||"cj-letter"===e.kind&&"non-cjk"===r.kind&&!r.hasLeadingPunctuation?t.push({type:"whitespace",value:" "}):(u="non-cjk",n="cjk-punctuation",e.kind===u&&r.kind===n||e.kind===n&&r.kind===u||[e.value,r.value].some(r=>/\u3000/.test(r))||t.push({type:"whitespace",value:""}))),t.push(r)}},punctuationPattern:hn,getFencedCodeBlockValue:function(r,e){const t=e.slice(r.position.start.offset,r.position.end.offset),u=t.match(/^\s*/)[0].length,n=new RegExp("^\\s{0,".concat(u,"}")),o=t.split("\n"),a=t[u],i=t.slice(u).match(new RegExp("^[".concat(a,"]+")))[0],c=new RegExp("^\\s{0,3}".concat(i)).test(o[o.length-1].slice(s(o.length-1)));return o.slice(1,c?-1:void 0).map((r,e)=>r.slice(s(e+1)).replace(n,"")).join("\n");function s(e){return r.position.indent[e-1]-1}},getOrderedListItemInfo:Cn,hasGitDiffFriendlyOrderedList:function(r,e){if(!r.ordered)return!1;if(r.children.length<2)return!1;const t=Number(Cn(r.children[0],e.originalText).numberText),u=Number(Cn(r.children[1],e.originalText).numberText);if(0===t&&r.children.length>2){const t=Number(Cn(r.children[2],e.originalText).numberText);return 1===u&&1===t}return 1===u},INLINE_NODE_TYPES:mn,INLINE_NODE_WRAPPER_TYPES:bn};const wn=/^import\s/,An=/^export\s/,yn=r=>wn.test(r),qn=r=>An.test(r),kn=(r,e)=>{const t=e.indexOf("\n\n"),u=e.slice(0,t);if(qn(u)||yn(u))return r(u)({type:qn(u)?"export":"import",value:u})};kn.locator=r=>qn(r)||yn(r)?-1:1;var xn={esSyntax:function(){const{Parser:r}=this,e=r.prototype.blockTokenizers,t=r.prototype.blockMethods;e.esSyntax=kn,t.splice(t.indexOf("paragraph"),0,"esSyntax")},BLOCKS_REGEX:"[a-z][a-z0-9]*(\\.[a-z][a-z0-9]*)*|",COMMENT_REGEX:"\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e"};function Bn(r,e){return r.indexOf("$",e)}const Ln=/^\\\$/,Sn=/^\$((?:\\\$|[^$])+)\$/,Tn=/^\$\$((?:\\\$|[^$])+)\$\$/;var Nn=function(r){function e(e,t,u){let n=!0,o=Tn.exec(t);o||(o=Sn.exec(t),n=!1);const a=Ln.exec(t);if(a)return!!u||e(a[0])({type:"text",value:"$"});if("\\$"===t.slice(-2))return e(t)({type:"text",value:t.slice(0,-2)+"$"});if(o){if(u)return!0;if(o[0].includes("`")&&t.slice(o[0].length).includes("`")){const r=t.slice(0,t.indexOf("`"));return e(r)({type:"text",value:r})}const a=o[1].trim();return e(o[0])({type:"inlineMath",value:a,data:{hName:"span",hProperties:{className:"inlineMath"+(n&&r.inlineMathDouble?" inlineMathDouble":"")},hChildren:[{type:"text",value:a}]}})}}e.locator=Bn;const t=this.Parser,u=t.prototype.inlineTokenizers,n=t.prototype.inlineMethods;u.math=e,n.splice(n.indexOf("text"),0,"math");const o=this.Compiler;if(null!=o){o.prototype.visitors.inlineMath=function(r){return"$"+r.value+"$"}}},On=function(r){const e=this.Parser,t=e.prototype.blockTokenizers,u=e.prototype.blockMethods;t.math=function(r,e,t){for(var u,n,o,a,i,c,s,l,D,f,p=e.length+1,d=0,h="";d<p&&(" "===(o=e.charAt(d))||"\t"===o);)h+=o,d++;if(D=d,"$"!==(o=e.charAt(d)))return;for(d++,n=o,u=1,h+=o;d<p&&(o=e.charAt(d))===n;)h+=o,u++,d++;if(u<2)return;for(;d<p&&"\n"!==(o=e.charAt(d));){if("$"===o)return;h+=o,d++}if(o=e.charAt(d),t)return!0;for((f=r.now()).column+=h.length,f.offset+=h.length,a=s=l=i=c="";d<p;)if(i+=s,c+=l,s=l="","\n"===(o=e.charAt(d))){for(i?(s+=o,l+=o):h+=o,a="",d++;d<p&&" "===(o=e.charAt(d));)a+=o,d++;if(s+=a,l+=a.slice(D),!(a.length>=4)){for(a="";d<p&&(o=e.charAt(d))===n;)a+=o,d++;if(s+=a,l+=a,!(a.length<u)){for(a="";d<p&&"\n"!==(o=e.charAt(d));)s+=o,l+=o,d++;break}}}else i+=o,l+=o,d++;h+=i+s;const g=Cr(c);return r(h)({type:"math",value:g,data:{hName:"div",hProperties:{className:"math"},hChildren:[{type:"text",value:g}]}})},u.splice(u.indexOf("fencedCode")+1,0,"math");const n=e.prototype.interruptParagraph,o=e.prototype.interruptList,a=e.prototype.interruptBlockquote;n.splice(n.indexOf("fencedCode")+1,0,["math"]),o.splice(o.indexOf("fencedCode")+1,0,["math"]),a.splice(a.indexOf("fencedCode")+1,0,["math"]);const i=this.Compiler;if(null!=i){i.prototype.visitors.math=function(r){return"$$\n"+r.value+"\n$$"}}},Rn=function(r){null==r&&(r={}),On.call(this,r),Nn.call(this,r)};const{mapAst:Pn,INLINE_NODE_WRAPPER_TYPES:In}=Fn;function Un({isMDX:r}){return e=>{const t=mu().use(nt,Object.assign({footnotes:!0,commonmark:!0},r&&{blocks:[xn.BLOCKS_REGEX]})).use(zn).use(Rn).use(r?xn.esSyntax:Vn).use(Gn).use(r?jn:Vn);return t.runSync(t.parse(e))}}function Vn(r){return r}function jn(){return r=>Pn(r,(r,e,[t])=>"html"!==r.type||r.value.match(xn.COMMENT_REGEX)||In.includes(t.type)?r:Object.assign({},r,{type:"jsx"}))}function zn(){const r=this.Parser.prototype;function e(r,e){const t=Lu(e);if(t.frontMatter)return r(t.frontMatter.raw)(t.frontMatter)}r.blockMethods=["frontMatter"].concat(r.blockMethods),r.blockTokenizers.frontMatter=e,e.onlyAtStart=!0}function Gn(){const r=this.Parser.prototype,e=r.inlineMethods;function t(r,e){const t=e.match(/^({%[\s\S]*?%}|{{[\s\S]*?}})/);if(t)return r(t[0])({type:"liquidNode",value:t[0]})}e.splice(e.indexOf("text"),0,"liquid"),r.inlineTokenizers.liquid=t,t.locator=function(r,e){return r.indexOf("{",e)}}const Hn={astFormat:"mdast",hasPragma:Nu.hasPragma,locStart:r=>r.position.start.offset,locEnd:r=>r.position.end.offset,preprocess:r=>r.replace(/\n\s+$/,"\n")},Mn=Object.assign({},Hn,{parse:Un({isMDX:!1})});var _n={parsers:{remark:Mn,markdown:Mn,mdx:Object.assign({},Hn,{parse:Un({isMDX:!0})})}},$n=_n.parsers;r.default=_n,r.parsers=$n,Object.defineProperty(r,"__esModule",{value:!0})}));
|