prettier 3.0.0-alpha.0 → 3.0.0-alpha.1
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/LICENSE +49 -65
- package/{bin-prettier.js → bin/prettier.cjs} +2 -2
- package/doc.js +438 -221
- package/doc.mjs +1490 -0
- package/index.cjs +532 -0
- package/{index.js → index.mjs} +4335 -5702
- package/{cli.mjs → internal/cli.mjs} +148 -92
- package/{third-party.js → internal/third-party.mjs} +123 -100
- package/package.json +139 -6
- package/plugins/acorn-and-espree.js +13 -0
- package/plugins/acorn-and-espree.mjs +13 -0
- package/{parser-angular.js → plugins/angular.js} +0 -0
- package/{esm/parser-angular.mjs → plugins/angular.mjs} +1 -1
- package/plugins/babel.js +16 -0
- package/plugins/babel.mjs +16 -0
- package/plugins/flow.js +21 -0
- package/plugins/flow.mjs +21 -0
- package/{parser-glimmer.js → plugins/glimmer.js} +9 -9
- package/{esm/parser-glimmer.mjs → plugins/glimmer.mjs} +10 -10
- package/plugins/graphql.js +9 -0
- package/plugins/graphql.mjs +9 -0
- package/plugins/html.js +29 -0
- package/plugins/html.mjs +29 -0
- package/plugins/markdown.js +39 -0
- package/plugins/markdown.mjs +39 -0
- package/plugins/meriyah.js +6 -0
- package/plugins/meriyah.mjs +6 -0
- package/plugins/postcss.js +50 -0
- package/plugins/postcss.mjs +50 -0
- package/plugins/typescript.js +242 -0
- package/plugins/typescript.mjs +242 -0
- package/{parser-yaml.js → plugins/yaml.js} +1 -1
- package/{esm/parser-yaml.mjs → plugins/yaml.mjs} +1 -1
- package/standalone.js +69 -87
- package/standalone.mjs +106 -0
- package/esm/parser-babel.mjs +0 -18
- package/esm/parser-espree.mjs +0 -15
- package/esm/parser-flow.mjs +0 -23
- package/esm/parser-graphql.mjs +0 -9
- package/esm/parser-html.mjs +0 -28
- package/esm/parser-markdown.mjs +0 -60
- package/esm/parser-meriyah.mjs +0 -8
- package/esm/parser-postcss.mjs +0 -53
- package/esm/parser-typescript.mjs +0 -269
- package/esm/standalone.mjs +0 -124
- package/parser-babel.js +0 -18
- package/parser-espree.js +0 -15
- package/parser-flow.js +0 -23
- package/parser-graphql.js +0 -9
- package/parser-html.js +0 -28
- package/parser-markdown.js +0 -60
- package/parser-meriyah.js +0 -8
- package/parser-postcss.js +0 -53
- package/parser-typescript.js +0 -269
package/esm/standalone.mjs
DELETED
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
var dh=Object.create;var Hn=Object.defineProperty;var yh=Object.getOwnPropertyDescriptor;var gh=Object.getOwnPropertyNames;var hh=Object.getPrototypeOf,Eh=Object.prototype.hasOwnProperty;var Ch=(e,t,r)=>t in e?Hn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Yn=(e,t)=>()=>(e&&(t=e(e=0)),t);var V=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ce=(e,t)=>{for(var r in t)Hn(e,r,{get:t[r],enumerable:!0})},up=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let u of gh(t))!Eh.call(e,u)&&u!==r&&Hn(e,u,{get:()=>t[u],enumerable:!(n=yh(t,u))||n.enumerable});return e};var Ct=(e,t,r)=>(r=e!=null?dh(hh(e)):{},up(t||!e||!e.__esModule?Hn(r,"default",{value:e,enumerable:!0}):r,e)),ze=e=>up(Hn({},"__esModule",{value:!0}),e);var ip=(e,t,r)=>(Ch(e,typeof t!="symbol"?t+"":t,r),r),sp=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var Ma=(e,t,r)=>(sp(e,t,"read from private field"),r?r.call(e):t.get(e)),ap=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},op=(e,t,r,n)=>(sp(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);var g,p=Yn(()=>{g={env:{},argv:[]}});var lp=V(ja=>{"use strict";p();Object.defineProperty(ja,"__esModule",{value:!0});ja.default=cp;function cp(){}cp.prototype={diff:function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=n.callback;typeof n=="function"&&(u=n,n={}),this.options=n;var i=this;function s(E){return u?(setTimeout(function(){u(void 0,E)},0),!0):E}t=this.castInput(t),r=this.castInput(r),t=this.removeEmpty(this.tokenize(t)),r=this.removeEmpty(this.tokenize(r));var a=r.length,o=t.length,c=1,l=a+o;n.maxEditLength&&(l=Math.min(l,n.maxEditLength));var f=[{newPos:-1,components:[]}],m=this.extractCommon(f[0],r,t,0);if(f[0].newPos+1>=a&&m+1>=o)return s([{value:this.join(r),count:r.length}]);function D(){for(var E=-1*c;E<=c;E+=2){var C=void 0,T=f[E-1],b=f[E+1],S=(b?b.newPos:0)-E;T&&(f[E-1]=void 0);var v=T&&T.newPos+1<a,w=b&&0<=S&&S<o;if(!v&&!w){f[E]=void 0;continue}if(!v||w&&T.newPos<b.newPos?(C=xh(b),i.pushComponent(C.components,void 0,!0)):(C=T,C.newPos++,i.pushComponent(C.components,!0,void 0)),S=i.extractCommon(C,r,t,E),C.newPos+1>=a&&S+1>=o)return s(Fh(i,C.components,r,t,i.useLongestToken));f[E]=C}c++}if(u)(function E(){setTimeout(function(){if(c>l)return u();D()||E()},0)})();else for(;c<=l;){var y=D();if(y)return y}},pushComponent:function(t,r,n){var u=t[t.length-1];u&&u.added===r&&u.removed===n?t[t.length-1]={count:u.count+1,added:r,removed:n}:t.push({count:1,added:r,removed:n})},extractCommon:function(t,r,n,u){for(var i=r.length,s=n.length,a=t.newPos,o=a-u,c=0;a+1<i&&o+1<s&&this.equals(r[a+1],n[o+1]);)a++,o++,c++;return c&&t.components.push({count:c}),t.newPos=a,o},equals:function(t,r){return this.options.comparator?this.options.comparator(t,r):t===r||this.options.ignoreCase&&t.toLowerCase()===r.toLowerCase()},removeEmpty:function(t){for(var r=[],n=0;n<t.length;n++)t[n]&&r.push(t[n]);return r},castInput:function(t){return t},tokenize:function(t){return t.split("")},join:function(t){return t.join("")}};function Fh(e,t,r,n,u){for(var i=0,s=t.length,a=0,o=0;i<s;i++){var c=t[i];if(c.removed){if(c.value=e.join(n.slice(o,o+c.count)),o+=c.count,i&&t[i-1].added){var f=t[i-1];t[i-1]=t[i],t[i]=f}}else{if(!c.added&&u){var l=r.slice(a,a+c.count);l=l.map(function(D,y){var E=n[o+y];return E.length>D.length?E:D}),c.value=e.join(l)}else c.value=e.join(r.slice(a,a+c.count));a+=c.count,c.added||(o+=c.count)}}var m=t[s-1];return s>1&&typeof m.value=="string"&&(m.added||m.removed)&&e.equals("",m.value)&&(t[s-2].value+=m.value,t.pop()),t}function xh(e){return{newPos:e.newPos,components:e.components.slice(0)}}});var pp=V(Xn=>{"use strict";p();Object.defineProperty(Xn,"__esModule",{value:!0});Xn.diffArrays=bh;Xn.arrayDiff=void 0;var Sh=Th(lp());function Th(e){return e&&e.__esModule?e:{default:e}}var Kn=new Sh.default;Xn.arrayDiff=Kn;Kn.tokenize=function(e){return e.slice()};Kn.join=Kn.removeEmpty=function(e){return e};function bh(e,t,r){return Kn.diff(e,t,r)}});var Dp=V((Rb,mp)=>{"use strict";p();mp.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\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])|\uD83C[\uDF3E\uDF73\uDF7C\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\uDF7C\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\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\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\uDF7C\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\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\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\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\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-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*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\u26A7\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-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\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[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});var ro=V((aB,Fp)=>{p();var Vh=typeof g=="object"&&g.env&&g.env.NODE_DEBUG&&/\bsemver\b/i.test(g.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};Fp.exports=Vh});var no=V((oB,xp)=>{p();var qh="2.0.0",Uh=Number.MAX_SAFE_INTEGER||9007199254740991,Wh=16;xp.exports={SEMVER_SPEC_VERSION:qh,MAX_LENGTH:256,MAX_SAFE_INTEGER:Uh,MAX_SAFE_COMPONENT_LENGTH:Wh}});var Tp=V((Er,Sp)=>{p();var{MAX_SAFE_COMPONENT_LENGTH:uo}=no(),Gh=ro();Er=Sp.exports={};var Jh=Er.re=[],R=Er.src=[],M=Er.t={},Hh=0,J=(e,t,r)=>{let n=Hh++;Gh(e,n,t),M[e]=n,R[n]=t,Jh[n]=new RegExp(t,r?"g":void 0)};J("NUMERICIDENTIFIER","0|[1-9]\\d*");J("NUMERICIDENTIFIERLOOSE","[0-9]+");J("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");J("MAINVERSION",`(${R[M.NUMERICIDENTIFIER]})\\.(${R[M.NUMERICIDENTIFIER]})\\.(${R[M.NUMERICIDENTIFIER]})`);J("MAINVERSIONLOOSE",`(${R[M.NUMERICIDENTIFIERLOOSE]})\\.(${R[M.NUMERICIDENTIFIERLOOSE]})\\.(${R[M.NUMERICIDENTIFIERLOOSE]})`);J("PRERELEASEIDENTIFIER",`(?:${R[M.NUMERICIDENTIFIER]}|${R[M.NONNUMERICIDENTIFIER]})`);J("PRERELEASEIDENTIFIERLOOSE",`(?:${R[M.NUMERICIDENTIFIERLOOSE]}|${R[M.NONNUMERICIDENTIFIER]})`);J("PRERELEASE",`(?:-(${R[M.PRERELEASEIDENTIFIER]}(?:\\.${R[M.PRERELEASEIDENTIFIER]})*))`);J("PRERELEASELOOSE",`(?:-?(${R[M.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${R[M.PRERELEASEIDENTIFIERLOOSE]})*))`);J("BUILDIDENTIFIER","[0-9A-Za-z-]+");J("BUILD",`(?:\\+(${R[M.BUILDIDENTIFIER]}(?:\\.${R[M.BUILDIDENTIFIER]})*))`);J("FULLPLAIN",`v?${R[M.MAINVERSION]}${R[M.PRERELEASE]}?${R[M.BUILD]}?`);J("FULL",`^${R[M.FULLPLAIN]}$`);J("LOOSEPLAIN",`[v=\\s]*${R[M.MAINVERSIONLOOSE]}${R[M.PRERELEASELOOSE]}?${R[M.BUILD]}?`);J("LOOSE",`^${R[M.LOOSEPLAIN]}$`);J("GTLT","((?:<|>)?=?)");J("XRANGEIDENTIFIERLOOSE",`${R[M.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);J("XRANGEIDENTIFIER",`${R[M.NUMERICIDENTIFIER]}|x|X|\\*`);J("XRANGEPLAIN",`[v=\\s]*(${R[M.XRANGEIDENTIFIER]})(?:\\.(${R[M.XRANGEIDENTIFIER]})(?:\\.(${R[M.XRANGEIDENTIFIER]})(?:${R[M.PRERELEASE]})?${R[M.BUILD]}?)?)?`);J("XRANGEPLAINLOOSE",`[v=\\s]*(${R[M.XRANGEIDENTIFIERLOOSE]})(?:\\.(${R[M.XRANGEIDENTIFIERLOOSE]})(?:\\.(${R[M.XRANGEIDENTIFIERLOOSE]})(?:${R[M.PRERELEASELOOSE]})?${R[M.BUILD]}?)?)?`);J("XRANGE",`^${R[M.GTLT]}\\s*${R[M.XRANGEPLAIN]}$`);J("XRANGELOOSE",`^${R[M.GTLT]}\\s*${R[M.XRANGEPLAINLOOSE]}$`);J("COERCE",`(^|[^\\d])(\\d{1,${uo}})(?:\\.(\\d{1,${uo}}))?(?:\\.(\\d{1,${uo}}))?(?:$|[^\\d])`);J("COERCERTL",R[M.COERCE],!0);J("LONETILDE","(?:~>?)");J("TILDETRIM",`(\\s*)${R[M.LONETILDE]}\\s+`,!0);Er.tildeTrimReplace="$1~";J("TILDE",`^${R[M.LONETILDE]}${R[M.XRANGEPLAIN]}$`);J("TILDELOOSE",`^${R[M.LONETILDE]}${R[M.XRANGEPLAINLOOSE]}$`);J("LONECARET","(?:\\^)");J("CARETTRIM",`(\\s*)${R[M.LONECARET]}\\s+`,!0);Er.caretTrimReplace="$1^";J("CARET",`^${R[M.LONECARET]}${R[M.XRANGEPLAIN]}$`);J("CARETLOOSE",`^${R[M.LONECARET]}${R[M.XRANGEPLAINLOOSE]}$`);J("COMPARATORLOOSE",`^${R[M.GTLT]}\\s*(${R[M.LOOSEPLAIN]})$|^$`);J("COMPARATOR",`^${R[M.GTLT]}\\s*(${R[M.FULLPLAIN]})$|^$`);J("COMPARATORTRIM",`(\\s*)${R[M.GTLT]}\\s*(${R[M.LOOSEPLAIN]}|${R[M.XRANGEPLAIN]})`,!0);Er.comparatorTrimReplace="$1$2$3";J("HYPHENRANGE",`^\\s*(${R[M.XRANGEPLAIN]})\\s+-\\s+(${R[M.XRANGEPLAIN]})\\s*$`);J("HYPHENRANGELOOSE",`^\\s*(${R[M.XRANGEPLAINLOOSE]})\\s+-\\s+(${R[M.XRANGEPLAINLOOSE]})\\s*$`);J("STAR","(<|>)?=?\\s*\\*");J("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");J("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Bp=V((cB,bp)=>{p();var Yh=["includePrerelease","loose","rtl"],Kh=e=>e?typeof e!="object"?{loose:!0}:Yh.filter(t=>e[t]).reduce((t,r)=>(t[r]=!0,t),{}):{};bp.exports=Kh});var Ip=V((lB,Pp)=>{p();var vp=/^[0-9]+$/,wp=(e,t)=>{let r=vp.test(e),n=vp.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1},Xh=(e,t)=>wp(t,e);Pp.exports={compareIdentifiers:wp,rcompareIdentifiers:Xh}});var Op=V((pB,_p)=>{p();var pi=ro(),{MAX_LENGTH:kp,MAX_SAFE_INTEGER:fi}=no(),{re:Lp,t:Np}=Tp(),zh=Bp(),{compareIdentifiers:ln}=Ip(),tt=class{constructor(t,r){if(r=zh(r),t instanceof tt){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid Version: ${t}`);if(t.length>kp)throw new TypeError(`version is longer than ${kp} characters`);pi("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=t.trim().match(r.loose?Lp[Np.LOOSE]:Lp[Np.FULL]);if(!n)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>fi||this.major<0)throw new TypeError("Invalid major version");if(this.minor>fi||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>fi||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(u=>{if(/^[0-9]+$/.test(u)){let i=+u;if(i>=0&&i<fi)return i}return u}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(pi("SemVer.compare",this.version,this.options,t),!(t instanceof tt)){if(typeof t=="string"&&t===this.version)return 0;t=new tt(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof tt||(t=new tt(t,this.options)),ln(this.major,t.major)||ln(this.minor,t.minor)||ln(this.patch,t.patch)}comparePre(t){if(t instanceof tt||(t=new tt(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let n=this.prerelease[r],u=t.prerelease[r];if(pi("prerelease compare",r,n,u),n===void 0&&u===void 0)return 0;if(u===void 0)return 1;if(n===void 0)return-1;if(n===u)continue;return ln(n,u)}while(++r)}compareBuild(t){t instanceof tt||(t=new tt(t,this.options));let r=0;do{let n=this.build[r],u=t.build[r];if(pi("prerelease compare",r,n,u),n===void 0&&u===void 0)return 0;if(u===void 0)return 1;if(n===void 0)return-1;if(n===u)continue;return ln(n,u)}while(++r)}inc(t,r){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r),this.inc("pre",r);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r),this.inc("pre",r);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{let n=this.prerelease.length;for(;--n>=0;)typeof this.prerelease[n]=="number"&&(this.prerelease[n]++,n=-2);n===-1&&this.prerelease.push(0)}r&&(ln(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=[r,0]):this.prerelease=[r,0]);break;default:throw new Error(`invalid increment argument: ${t}`)}return this.format(),this.raw=this.version,this}};_p.exports=tt});var mi=V((fB,Mp)=>{p();var Rp=Op(),Qh=(e,t,r)=>new Rp(e,r).compare(new Rp(t,r));Mp.exports=Qh});var $p=V((mB,jp)=>{p();var Zh=mi(),eE=(e,t,r)=>Zh(e,t,r)>=0;jp.exports=eE});var qp=V((DB,Vp)=>{p();var tE=mi(),rE=(e,t,r)=>tE(e,t,r)<0;Vp.exports=rE});var rr={};Ce(rr,{__assign:()=>go,__asyncDelegator:()=>qE,__asyncGenerator:()=>VE,__asyncValues:()=>UE,__await:()=>iu,__awaiter:()=>_E,__classPrivateFieldGet:()=>HE,__classPrivateFieldSet:()=>YE,__createBinding:()=>RE,__decorate:()=>kE,__exportStar:()=>ME,__extends:()=>PE,__generator:()=>OE,__importDefault:()=>JE,__importStar:()=>GE,__makeTemplateObject:()=>WE,__metadata:()=>NE,__param:()=>LE,__read:()=>af,__rest:()=>IE,__spread:()=>jE,__spreadArrays:()=>$E,__values:()=>ho});function PE(e,t){yo(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function IE(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,n=Object.getOwnPropertySymbols(e);u<n.length;u++)t.indexOf(n[u])<0&&Object.prototype.propertyIsEnumerable.call(e,n[u])&&(r[n[u]]=e[n[u]]);return r}function kE(e,t,r,n){var u=arguments.length,i=u<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(i=(u<3?s(i):u>3?s(t,r,i):s(t,r))||i);return u>3&&i&&Object.defineProperty(t,r,i),i}function LE(e,t){return function(r,n){t(r,n,e)}}function NE(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function _E(e,t,r,n){function u(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function a(l){try{c(n.next(l))}catch(f){s(f)}}function o(l){try{c(n.throw(l))}catch(f){s(f)}}function c(l){l.done?i(l.value):u(l.value).then(a,o)}c((n=n.apply(e,t||[])).next())})}function OE(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,u,i,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(l){return o([c,l])}}function o(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,u&&(i=c[0]&2?u.return:c[0]?u.throw||((i=u.return)&&i.call(u),0):u.next)&&!(i=i.call(u,c[1])).done)return i;switch(u=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,u=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){r.label=c[1];break}if(c[0]===6&&r.label<i[1]){r.label=i[1],i=c;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(c);break}i[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch(l){c=[6,l],u=0}finally{n=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function RE(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}function ME(e,t){for(var r in e)r!=="default"&&!t.hasOwnProperty(r)&&(t[r]=e[r])}function ho(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function af(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),u,i=[],s;try{for(;(t===void 0||t-- >0)&&!(u=n.next()).done;)i.push(u.value)}catch(a){s={error:a}}finally{try{u&&!u.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i}function jE(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(af(arguments[t]));return e}function $E(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),u=0,t=0;t<r;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,u++)n[u]=i[s];return n}function iu(e){return this instanceof iu?(this.v=e,this):new iu(e)}function VE(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),u,i=[];return u={},s("next"),s("throw"),s("return"),u[Symbol.asyncIterator]=function(){return this},u;function s(m){n[m]&&(u[m]=function(D){return new Promise(function(y,E){i.push([m,D,y,E])>1||a(m,D)})})}function a(m,D){try{o(n[m](D))}catch(y){f(i[0][3],y)}}function o(m){m.value instanceof iu?Promise.resolve(m.value.v).then(c,l):f(i[0][2],m)}function c(m){a("next",m)}function l(m){a("throw",m)}function f(m,D){m(D),i.shift(),i.length&&a(i[0][0],i[0][1])}}function qE(e){var t,r;return t={},n("next"),n("throw",function(u){throw u}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(u,i){t[u]=e[u]?function(s){return(r=!r)?{value:iu(e[u](s)),done:u==="return"}:i?i(s):s}:i}}function UE(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof ho=="function"?ho(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=e[i]&&function(s){return new Promise(function(a,o){s=e[i](s),u(a,o,s.done,s.value)})}}function u(i,s,a,o){Promise.resolve(o).then(function(c){i({value:c,done:a})},s)}}function WE(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function GE(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function JE(e){return e&&e.__esModule?e:{default:e}}function HE(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function YE(e,t,r){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,r),r}var yo,go,nr=Yn(()=>{p();yo=function(e,t){return yo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var u in n)n.hasOwnProperty(u)&&(r[u]=n[u])},yo(e,t)};go=function(){return go=Object.assign||function(t){for(var r,n=1,u=arguments.length;n<u;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},go.apply(this,arguments)}});var Eo=V(Rr=>{"use strict";p();Object.defineProperty(Rr,"__esModule",{value:!0});Rr.apiDescriptor={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(e){if(e===null||typeof e!="object")return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(r=>Rr.apiDescriptor.value(r)).join(", ")}]`;let t=Object.keys(e);return t.length===0?"{}":`{ ${t.map(r=>`${Rr.apiDescriptor.key(r)}: ${Rr.apiDescriptor.value(e[r])}`).join(", ")} }`},pair:({key:e,value:t})=>Rr.apiDescriptor.value({[e]:t})}});var of=V(Co=>{"use strict";p();Object.defineProperty(Co,"__esModule",{value:!0});var KE=(nr(),ze(rr));KE.__exportStar(Eo(),Co)});var Ai={};Ce(Ai,{default:()=>Ao});var rt,Ao,su=Yn(()=>{p();rt=e=>e;rt.grey=rt;rt.red=rt;rt.bold=rt;rt.yellow=rt;rt.blue=rt;rt.default=rt;Ao=rt});var xo=V(Fo=>{"use strict";p();Object.defineProperty(Fo,"__esModule",{value:!0});var cf=(su(),ze(Ai));Fo.commonDeprecatedHandler=(e,t,{descriptor:r})=>{let n=[`${cf.default.yellow(typeof e=="string"?r.key(e):r.pair(e))} is deprecated`];return t&&n.push(`we now treat it as ${cf.default.blue(typeof t=="string"?r.key(t):r.pair(t))}`),n.join("; ")+"."}});var lf=V(So=>{"use strict";p();Object.defineProperty(So,"__esModule",{value:!0});var XE=(nr(),ze(rr));XE.__exportStar(xo(),So)});var pf=V(bo=>{"use strict";p();Object.defineProperty(bo,"__esModule",{value:!0});var To=(su(),ze(Ai));bo.commonInvalidHandler=(e,t,r)=>[`Invalid ${To.default.red(r.descriptor.key(e))} value.`,`Expected ${To.default.blue(r.schemas[e].expected(r))},`,`but received ${To.default.red(r.descriptor.value(t))}.`].join(" ")});var vo=V(Bo=>{"use strict";p();Object.defineProperty(Bo,"__esModule",{value:!0});var zE=(nr(),ze(rr));zE.__exportStar(pf(),Bo)});var Df=V((tv,mf)=>{"use strict";p();var wo=[],ff=[];mf.exports=function(e,t){if(e===t)return 0;var r=e;e.length>t.length&&(e=t,t=r);var n=e.length,u=t.length;if(n===0)return u;if(u===0)return n;for(;n>0&&e.charCodeAt(~-n)===t.charCodeAt(~-u);)n--,u--;if(n===0)return u;for(var i=0;i<n&&e.charCodeAt(i)===t.charCodeAt(i);)i++;if(n-=i,u-=i,n===0)return u;for(var s,a,o,c,l=0,f=0;l<n;)ff[i+l]=e.charCodeAt(i+l),wo[l]=++l;for(;f<u;)for(s=t.charCodeAt(i+f),o=f++,a=f,l=0;l<n;l++)c=s===ff[i+l]?o:o+1,o=wo[l],a=wo[l]=o>a?c>a?a+1:c:c>o?o+1:c;return a}});var Io=V(Po=>{"use strict";p();Object.defineProperty(Po,"__esModule",{value:!0});var df=(su(),ze(Ai)),QE=Df();Po.levenUnknownHandler=(e,t,{descriptor:r,logger:n,schemas:u})=>{let i=[`Ignored unknown option ${df.default.yellow(r.pair({key:e,value:t}))}.`],s=Object.keys(u).sort().find(a=>QE(e,a)<3);s&&i.push(`Did you mean ${df.default.blue(r.key(s))}?`),n.warn(i.join(" "))}});var yf=V(ko=>{"use strict";p();Object.defineProperty(ko,"__esModule",{value:!0});var ZE=(nr(),ze(rr));ZE.__exportStar(Io(),ko)});var gf=V(au=>{"use strict";p();Object.defineProperty(au,"__esModule",{value:!0});var Lo=(nr(),ze(rr));Lo.__exportStar(lf(),au);Lo.__exportStar(vo(),au);Lo.__exportStar(yf(),au)});var ur=V(xi=>{"use strict";p();Object.defineProperty(xi,"__esModule",{value:!0});var eC=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function hf(e,t){let r=new e(t),n=Object.create(r);for(let u of eC)u in t&&(n[u]=tC(t[u],r,Fi.prototype[u].length));return n}xi.createSchema=hf;var Fi=class{constructor(t){this.name=t.name}static create(t){return hf(this,t)}default(t){}expected(t){return"nothing"}validate(t,r){return!1}deprecated(t,r){return!1}forward(t,r){}redirect(t,r){}overlap(t,r,n){return t}preprocess(t,r){return t}postprocess(t,r){return t}};xi.Schema=Fi;function tC(e,t,r){return typeof e=="function"?(...n)=>e(...n.slice(0,r-1),t,...n.slice(r-1)):()=>e}});var Ef=V(_o=>{"use strict";p();Object.defineProperty(_o,"__esModule",{value:!0});var rC=ur(),No=class extends rC.Schema{constructor(t){super(t),this._sourceName=t.sourceName}expected(t){return t.schemas[this._sourceName].expected(t)}validate(t,r){return r.schemas[this._sourceName].validate(t,r)}redirect(t,r){return this._sourceName}};_o.AliasSchema=No});var Cf=V(Ro=>{"use strict";p();Object.defineProperty(Ro,"__esModule",{value:!0});var nC=ur(),Oo=class extends nC.Schema{expected(){return"anything"}validate(){return!0}};Ro.AnySchema=Oo});var Ff=V(jo=>{"use strict";p();Object.defineProperty(jo,"__esModule",{value:!0});var uC=(nr(),ze(rr)),iC=ur(),Mo=class extends iC.Schema{constructor(t){var{valueSchema:r,name:n=r.name}=t,u=uC.__rest(t,["valueSchema","name"]);super(Object.assign({},u,{name:n})),this._valueSchema=r}expected(t){return`an array of ${this._valueSchema.expected(t)}`}validate(t,r){if(!Array.isArray(t))return!1;let n=[];for(let u of t){let i=r.normalizeValidateResult(this._valueSchema.validate(u,r),u);i!==!0&&n.push(i.value)}return n.length===0?!0:{value:n}}deprecated(t,r){let n=[];for(let u of t){let i=r.normalizeDeprecatedResult(this._valueSchema.deprecated(u,r),u);i!==!1&&n.push(...i.map(({value:s})=>({value:[s]})))}return n}forward(t,r){let n=[];for(let u of t){let i=r.normalizeForwardResult(this._valueSchema.forward(u,r),u);n.push(...i.map(Af))}return n}redirect(t,r){let n=[],u=[];for(let i of t){let s=r.normalizeRedirectResult(this._valueSchema.redirect(i,r),i);"remain"in s&&n.push(s.remain),u.push(...s.redirect.map(Af))}return n.length===0?{redirect:u}:{redirect:u,remain:n}}overlap(t,r){return t.concat(r)}};jo.ArraySchema=Mo;function Af({from:e,to:t}){return{from:[e],to:t}}});var xf=V(Vo=>{"use strict";p();Object.defineProperty(Vo,"__esModule",{value:!0});var sC=ur(),$o=class extends sC.Schema{expected(){return"true or false"}validate(t){return typeof t=="boolean"}};Vo.BooleanSchema=$o});var Si=V(We=>{"use strict";p();Object.defineProperty(We,"__esModule",{value:!0});function aC(e,t){let r=Object.create(null);for(let n of e){let u=n[t];if(r[u])throw new Error(`Duplicate ${t} ${JSON.stringify(u)}`);r[u]=n}return r}We.recordFromArray=aC;function oC(e,t){let r=new Map;for(let n of e){let u=n[t];if(r.has(u))throw new Error(`Duplicate ${t} ${JSON.stringify(u)}`);r.set(u,n)}return r}We.mapFromArray=oC;function cC(){let e=Object.create(null);return t=>{let r=JSON.stringify(t);return e[r]?!0:(e[r]=!0,!1)}}We.createAutoChecklist=cC;function lC(e,t){let r=[],n=[];for(let u of e)t(u)?r.push(u):n.push(u);return[r,n]}We.partition=lC;function pC(e){return e===Math.floor(e)}We.isInt=pC;function fC(e,t){if(e===t)return 0;let r=typeof e,n=typeof t,u=["undefined","object","boolean","number","string"];return r!==n?u.indexOf(r)-u.indexOf(n):r!=="string"?Number(e)-Number(t):e.localeCompare(t)}We.comparePrimitive=fC;function mC(e){return e===void 0?{}:e}We.normalizeDefaultResult=mC;function DC(e,t){return e===!0?!0:e===!1?{value:t}:e}We.normalizeValidateResult=DC;function dC(e,t,r=!1){return e===!1?!1:e===!0?r?!0:[{value:t}]:"value"in e?[e]:e.length===0?!1:e}We.normalizeDeprecatedResult=dC;function qo(e,t){return typeof e=="string"||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}We.normalizeTransferResult=qo;function Sf(e,t){return e===void 0?[]:Array.isArray(e)?e.map(r=>qo(r,t)):[qo(e,t)]}We.normalizeForwardResult=Sf;function yC(e,t){let r=Sf(typeof e=="object"&&"redirect"in e?e.redirect:e,t);return r.length===0?{remain:t,redirect:r}:typeof e=="object"&&"remain"in e?{remain:e.remain,redirect:r}:{redirect:r}}We.normalizeRedirectResult=yC});var bf=V(Wo=>{"use strict";p();Object.defineProperty(Wo,"__esModule",{value:!0});var gC=ur(),Tf=Si(),Uo=class extends gC.Schema{constructor(t){super(t),this._choices=Tf.mapFromArray(t.choices.map(r=>r&&typeof r=="object"?r:{value:r}),"value")}expected({descriptor:t}){let r=Array.from(this._choices.keys()).map(i=>this._choices.get(i)).filter(i=>!i.deprecated).map(i=>i.value).sort(Tf.comparePrimitive).map(t.value),n=r.slice(0,-2),u=r.slice(-2);return n.concat(u.join(" or ")).join(", ")}validate(t){return this._choices.has(t)}deprecated(t){let r=this._choices.get(t);return r&&r.deprecated?{value:t}:!1}forward(t){let r=this._choices.get(t);return r?r.forward:void 0}redirect(t){let r=this._choices.get(t);return r?r.redirect:void 0}};Wo.ChoiceSchema=Uo});var Ho=V(Jo=>{"use strict";p();Object.defineProperty(Jo,"__esModule",{value:!0});var hC=ur(),Go=class extends hC.Schema{expected(){return"a number"}validate(t,r){return typeof t=="number"}};Jo.NumberSchema=Go});var Bf=V(Ko=>{"use strict";p();Object.defineProperty(Ko,"__esModule",{value:!0});var EC=Si(),CC=Ho(),Yo=class extends CC.NumberSchema{expected(){return"an integer"}validate(t,r){return r.normalizeValidateResult(super.validate(t,r),t)===!0&&EC.isInt(t)}};Ko.IntegerSchema=Yo});var vf=V(zo=>{"use strict";p();Object.defineProperty(zo,"__esModule",{value:!0});var AC=ur(),Xo=class extends AC.Schema{expected(){return"a string"}validate(t){return typeof t=="string"}};zo.StringSchema=Xo});var wf=V(qt=>{"use strict";p();Object.defineProperty(qt,"__esModule",{value:!0});var Sr=(nr(),ze(rr));Sr.__exportStar(Ef(),qt);Sr.__exportStar(Cf(),qt);Sr.__exportStar(Ff(),qt);Sr.__exportStar(xf(),qt);Sr.__exportStar(bf(),qt);Sr.__exportStar(Bf(),qt);Sr.__exportStar(Ho(),qt);Sr.__exportStar(vf(),qt)});var Pf=V(hn=>{"use strict";p();Object.defineProperty(hn,"__esModule",{value:!0});var FC=Eo(),xC=xo(),SC=vo(),TC=Io();hn.defaultDescriptor=FC.apiDescriptor;hn.defaultUnknownHandler=TC.levenUnknownHandler;hn.defaultInvalidHandler=SC.commonInvalidHandler;hn.defaultDeprecatedHandler=xC.commonDeprecatedHandler});var If=V(Bi=>{"use strict";p();Object.defineProperty(Bi,"__esModule",{value:!0});var Ti=Pf(),nt=Si();Bi.normalize=(e,t,r)=>new bi(t,r).normalize(e);var bi=class{constructor(t,r){let{logger:n=console,descriptor:u=Ti.defaultDescriptor,unknown:i=Ti.defaultUnknownHandler,invalid:s=Ti.defaultInvalidHandler,deprecated:a=Ti.defaultDeprecatedHandler}=r||{};this._utils={descriptor:u,logger:n||{warn:()=>{}},schemas:nt.recordFromArray(t,"name"),normalizeDefaultResult:nt.normalizeDefaultResult,normalizeDeprecatedResult:nt.normalizeDeprecatedResult,normalizeForwardResult:nt.normalizeForwardResult,normalizeRedirectResult:nt.normalizeRedirectResult,normalizeValidateResult:nt.normalizeValidateResult},this._unknownHandler=i,this._invalidHandler=s,this._deprecatedHandler=a,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=nt.createAutoChecklist()}normalize(t){let r={},n=[t],u=()=>{for(;n.length!==0;){let i=n.shift(),s=this._applyNormalization(i,r);n.push(...s)}};u();for(let i of Object.keys(this._utils.schemas)){let s=this._utils.schemas[i];if(!(i in r)){let a=nt.normalizeDefaultResult(s.default(this._utils));"value"in a&&n.push({[i]:a.value})}}u();for(let i of Object.keys(this._utils.schemas)){let s=this._utils.schemas[i];i in r&&(r[i]=s.postprocess(r[i],this._utils))}return r}_applyNormalization(t,r){let n=[],[u,i]=nt.partition(Object.keys(t),s=>s in this._utils.schemas);for(let s of u){let a=this._utils.schemas[s],o=a.preprocess(t[s],this._utils),c=nt.normalizeValidateResult(a.validate(o,this._utils),o);if(c!==!0){let{value:y}=c,E=this._invalidHandler(s,y,this._utils);throw typeof E=="string"?new Error(E):E}let l=({from:y,to:E})=>{n.push(typeof E=="string"?{[E]:y}:{[E.key]:E.value})},f=({value:y,redirectTo:E})=>{let C=nt.normalizeDeprecatedResult(a.deprecated(y,this._utils),o,!0);if(C!==!1)if(C===!0)this._hasDeprecationWarned(s)||this._utils.logger.warn(this._deprecatedHandler(s,E,this._utils));else for(let{value:T}of C){let b={key:s,value:T};if(!this._hasDeprecationWarned(b)){let S=typeof E=="string"?{key:E,value:T}:E;this._utils.logger.warn(this._deprecatedHandler(b,S,this._utils))}}};nt.normalizeForwardResult(a.forward(o,this._utils),o).forEach(l);let D=nt.normalizeRedirectResult(a.redirect(o,this._utils),o);if(D.redirect.forEach(l),"remain"in D){let y=D.remain;r[s]=s in r?a.overlap(r[s],y,this._utils):y,f({value:y})}for(let{from:y,to:E}of D.redirect)f({value:y,redirectTo:E})}for(let s of i){let a=t[s],o=this._unknownHandler(s,a,this._utils);if(o)for(let c of Object.keys(o)){let l={[c]:o[c]};c in this._utils.schemas?n.push(l):Object.assign(r,l)}}return n}};Bi.Normalizer=bi});var kf=V(Mr=>{"use strict";p();Object.defineProperty(Mr,"__esModule",{value:!0});var ou=(nr(),ze(rr));ou.__exportStar(of(),Mr);ou.__exportStar(gf(),Mr);ou.__exportStar(wf(),Mr);ou.__exportStar(If(),Mr);ou.__exportStar(ur(),Mr)});var Lf={};Ce(Lf,{getChalk:()=>IC,shouldHighlight:()=>PC});var PC,IC,Nf=Yn(()=>{p();su();PC=()=>!1,IC=()=>Ao});var Mf=V(wi=>{"use strict";p();Object.defineProperty(wi,"__esModule",{value:!0});wi.codeFrameColumns=Rf;wi.default=NC;var ec=(Nf(),ze(Lf)),_f=!1;function kC(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}var Of=/\r\n|[\n\r\u2028\u2029]/;function LC(e,t,r){let n=Object.assign({column:0,line:-1},e.start),u=Object.assign({},n,e.end),{linesAbove:i=2,linesBelow:s=3}=r||{},a=n.line,o=n.column,c=u.line,l=u.column,f=Math.max(a-(i+1),0),m=Math.min(t.length,c+s);a===-1&&(f=0),c===-1&&(m=t.length);let D=c-a,y={};if(D)for(let E=0;E<=D;E++){let C=E+a;if(!o)y[C]=!0;else if(E===0){let T=t[C-1].length;y[C]=[o,T-o+1]}else if(E===D)y[C]=[0,l];else{let T=t[C-E].length;y[C]=[0,T]}}else o===l?o?y[a]=[o,0]:y[a]=!0:y[a]=[o,l-o];return{start:f,end:m,markerLines:y}}function Rf(e,t,r={}){let n=(r.highlightCode||r.forceColor)&&(0,ec.shouldHighlight)(r),u=(0,ec.getChalk)(r),i=kC(u),s=(E,C)=>n?E(C):C,a=e.split(Of),{start:o,end:c,markerLines:l}=LC(t,a,r),f=t.start&&typeof t.start.column=="number",m=String(c).length,y=(n?(0,ec.default)(e,r):e).split(Of,c).slice(o,c).map((E,C)=>{let T=o+1+C,S=` ${` ${T}`.slice(-m)} |`,v=l[T],w=!l[T+1];if(v){let j="";if(Array.isArray(v)){let q=E.slice(0,Math.max(v[0]-1,0)).replace(/[^\t]/g," "),K=v[1]||1;j=[`
|
|
2
|
-
`,s(i.gutter,S.replace(/\d/g," "))," ",q,s(i.marker,"^").repeat(K)].join(""),w&&r.message&&(j+=" "+s(i.message,r.message))}return[s(i.marker,">"),s(i.gutter,S),E.length>0?` ${E}`:"",j].join("")}else return` ${s(i.gutter,S)}${E.length>0?` ${E}`:""}`}).join(`
|
|
3
|
-
`);return r.message&&!f&&(y=`${" ".repeat(m+1)}${r.message}
|
|
4
|
-
${y}`),n?u.reset(y):y}function NC(e,t,r,n={}){if(!_f){_f=!0;let i="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(g.emitWarning)g.emitWarning(i,"DeprecationWarning");else{let s=new Error(i);s.name="DeprecationWarning",console.warn(new Error(i))}}return r=Math.max(r,0),Rf(e,{start:{column:r,line:t}},n)}});var Qm=V((w3,zm)=>{p();(function(){"use strict";function e(s){if(s==null)return!1;switch(s.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1}function t(s){if(s==null)return!1;switch(s.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1}function r(s){if(s==null)return!1;switch(s.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function n(s){return r(s)||s!=null&&s.type==="FunctionDeclaration"}function u(s){switch(s.type){case"IfStatement":return s.alternate!=null?s.alternate:s.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return s.body}return null}function i(s){var a;if(s.type!=="IfStatement"||s.alternate==null)return!1;a=s.consequent;do{if(a.type==="IfStatement"&&a.alternate==null)return!0;a=u(a)}while(a);return!1}zm.exports={isExpression:e,isStatement:r,isIterationStatement:t,isSourceElement:n,isProblematicIfStatement:i,trailingStatement:u}})()});var Ac=V((P3,Zm)=>{p();(function(){"use strict";var e,t,r,n,u,i;t={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},e={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};function s(C){return 48<=C&&C<=57}function a(C){return 48<=C&&C<=57||97<=C&&C<=102||65<=C&&C<=70}function o(C){return C>=48&&C<=55}r=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function c(C){return C===32||C===9||C===11||C===12||C===160||C>=5760&&r.indexOf(C)>=0}function l(C){return C===10||C===13||C===8232||C===8233}function f(C){if(C<=65535)return String.fromCharCode(C);var T=String.fromCharCode(Math.floor((C-65536)/1024)+55296),b=String.fromCharCode((C-65536)%1024+56320);return T+b}for(n=new Array(128),i=0;i<128;++i)n[i]=i>=97&&i<=122||i>=65&&i<=90||i===36||i===95;for(u=new Array(128),i=0;i<128;++i)u[i]=i>=97&&i<=122||i>=65&&i<=90||i>=48&&i<=57||i===36||i===95;function m(C){return C<128?n[C]:t.NonAsciiIdentifierStart.test(f(C))}function D(C){return C<128?u[C]:t.NonAsciiIdentifierPart.test(f(C))}function y(C){return C<128?n[C]:e.NonAsciiIdentifierStart.test(f(C))}function E(C){return C<128?u[C]:e.NonAsciiIdentifierPart.test(f(C))}Zm.exports={isDecimalDigit:s,isHexDigit:a,isOctalDigit:o,isWhiteSpace:c,isLineTerminator:l,isIdentifierStartES5:m,isIdentifierPartES5:D,isIdentifierStartES6:y,isIdentifierPartES6:E}})()});var tD=V((I3,eD)=>{p();(function(){"use strict";var e=Ac();function t(m){switch(m){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}function r(m,D){return!D&&m==="yield"?!1:n(m,D)}function n(m,D){if(D&&t(m))return!0;switch(m.length){case 2:return m==="if"||m==="in"||m==="do";case 3:return m==="var"||m==="for"||m==="new"||m==="try";case 4:return m==="this"||m==="else"||m==="case"||m==="void"||m==="with"||m==="enum";case 5:return m==="while"||m==="break"||m==="catch"||m==="throw"||m==="const"||m==="yield"||m==="class"||m==="super";case 6:return m==="return"||m==="typeof"||m==="delete"||m==="switch"||m==="export"||m==="import";case 7:return m==="default"||m==="finally"||m==="extends";case 8:return m==="function"||m==="continue"||m==="debugger";case 10:return m==="instanceof";default:return!1}}function u(m,D){return m==="null"||m==="true"||m==="false"||r(m,D)}function i(m,D){return m==="null"||m==="true"||m==="false"||n(m,D)}function s(m){return m==="eval"||m==="arguments"}function a(m){var D,y,E;if(m.length===0||(E=m.charCodeAt(0),!e.isIdentifierStartES5(E)))return!1;for(D=1,y=m.length;D<y;++D)if(E=m.charCodeAt(D),!e.isIdentifierPartES5(E))return!1;return!0}function o(m,D){return(m-55296)*1024+(D-56320)+65536}function c(m){var D,y,E,C,T;if(m.length===0)return!1;for(T=e.isIdentifierStartES6,D=0,y=m.length;D<y;++D){if(E=m.charCodeAt(D),55296<=E&&E<=56319){if(++D,D>=y||(C=m.charCodeAt(D),!(56320<=C&&C<=57343)))return!1;E=o(E,C)}if(!T(E))return!1;T=e.isIdentifierPartES6}return!0}function l(m,D){return a(m)&&!u(m,D)}function f(m,D){return c(m)&&!i(m,D)}eD.exports={isKeywordES5:r,isKeywordES6:n,isReservedWordES5:u,isReservedWordES6:i,isRestrictedWord:s,isIdentifierNameES5:a,isIdentifierNameES6:c,isIdentifierES5:l,isIdentifierES6:f}})()});var rD=V(qi=>{p();(function(){"use strict";qi.ast=Qm(),qi.code=Ac(),qi.keyword=tD()})()});var JD={};Ce(JD,{EOL:()=>GD,arch:()=>MF,cpus:()=>jD,default:()=>$F,endianness:()=>LD,freemem:()=>RD,getNetworkInterfaces:()=>UD,hostname:()=>ND,loadavg:()=>_D,networkInterfaces:()=>qD,platform:()=>jF,release:()=>VD,tmpDir:()=>_c,tmpdir:()=>WD,totalmem:()=>MD,type:()=>$D,uptime:()=>OD});function LD(){if(typeof os>"u"){var e=new ArrayBuffer(2),t=new Uint8Array(e),r=new Uint16Array(e);if(t[0]=1,t[1]=2,r[0]===258)os="BE";else if(r[0]===513)os="LE";else throw new Error("unable to figure out endianess")}return os}function ND(){return typeof globalThis.location<"u"?globalThis.location.hostname:""}function _D(){return[]}function OD(){return 0}function RD(){return Number.MAX_VALUE}function MD(){return Number.MAX_VALUE}function jD(){return[]}function $D(){return"Browser"}function VD(){return typeof globalThis.navigator<"u"?globalThis.navigator.appVersion:""}function qD(){}function UD(){}function MF(){return"javascript"}function jF(){return"browser"}function _c(){return"/tmp"}var os,WD,GD,$F,HD=Yn(()=>{p();WD=_c,GD=`
|
|
5
|
-
`,$F={EOL:GD,tmpdir:WD,tmpDir:_c,networkInterfaces:qD,getNetworkInterfaces:UD,release:VD,type:$D,cpus:jD,totalmem:MD,freemem:RD,uptime:OD,loadavg:_D,hostname:ND,endianness:LD}});var YD=V((b8,cs)=>{p();var Gr=(HD(),ze(JD));if(Gr&&Gr.default){cs.exports=Gr.default;for(let e in Gr)cs.exports[e]=Gr[e]}else Gr&&(cs.exports=Gr)});var XD=V((B8,Oc)=>{"use strict";p();var KD=e=>{if(typeof e!="string")throw new TypeError("Expected a string");let t=e.match(/(?:\r?\n)/g)||[];if(t.length===0)return;let r=t.filter(u=>u===`\r
|
|
6
|
-
`).length,n=t.length-r;return r>n?`\r
|
|
7
|
-
`:`
|
|
8
|
-
`};Oc.exports=KD;Oc.exports.graceful=e=>typeof e=="string"&&KD(e)||`
|
|
9
|
-
`});var n0=V(Jr=>{"use strict";p();Object.defineProperty(Jr,"__esModule",{value:!0});Jr.extract=HF;Jr.parse=KF;Jr.parseWithComments=r0;Jr.print=XF;Jr.strip=YF;function Rc(){let e=YD();return Rc=function(){return e},e}function Mc(){let e=VF(XD());return Mc=function(){return e},e}function VF(e){return e&&e.__esModule?e:{default:e}}var qF=/\*\/$/,UF=/^\/\*\*?/,e0=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,WF=/(^|\s+)\/\/([^\r\n]*)/g,zD=/^(\r?\n)+/,GF=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,QD=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,JF=/(\r?\n|^) *\* ?/g,t0=[];function HF(e){let t=e.match(e0);return t?t[0].trimLeft():""}function YF(e){let t=e.match(e0);return t&&t[0]?e.substring(t[0].length):e}function KF(e){return r0(e).pragmas}function r0(e){let t=(0,Mc().default)(e)||Rc().EOL;e=e.replace(UF,"").replace(qF,"").replace(JF,"$1");let r="";for(;r!==e;)r=e,e=e.replace(GF,`${t}$1 $2${t}`);e=e.replace(zD,"").trimRight();let n=Object.create(null),u=e.replace(QD,"").replace(zD,"").trimRight(),i;for(;i=QD.exec(e);){let s=i[2].replace(WF,"");typeof n[i[1]]=="string"||Array.isArray(n[i[1]])?n[i[1]]=t0.concat(n[i[1]],s):n[i[1]]=s}return{comments:u,pragmas:n}}function XF({comments:e="",pragmas:t={}}){let r=(0,Mc().default)(e)||Rc().EOL,n="/**",u=" *",i=" */",s=Object.keys(t),a=s.map(c=>ZD(c,t[c])).reduce((c,l)=>c.concat(l),[]).map(c=>`${u} ${c}${r}`).join("");if(!e){if(s.length===0)return"";if(s.length===1&&!Array.isArray(t[s[0]])){let c=t[s[0]];return`${n} ${ZD(s[0],c)[0]}${i}`}}let o=e.split(r).map(c=>`${u} ${c}`).join(r)+r;return n+r+(e?o:"")+(e&&s.length?u+r:"")+a+i}function ZD(e,t){return t0.concat(t).map(r=>`@${e} ${r}`.trim())}});var Fg=V(L=>{"use strict";p();Object.defineProperty(L,"__esModule",{value:!0});L.$EOF=0;L.$BSPACE=8;L.$TAB=9;L.$LF=10;L.$VTAB=11;L.$FF=12;L.$CR=13;L.$SPACE=32;L.$BANG=33;L.$DQ=34;L.$HASH=35;L.$$=36;L.$PERCENT=37;L.$AMPERSAND=38;L.$SQ=39;L.$LPAREN=40;L.$RPAREN=41;L.$STAR=42;L.$PLUS=43;L.$COMMA=44;L.$MINUS=45;L.$PERIOD=46;L.$SLASH=47;L.$COLON=58;L.$SEMICOLON=59;L.$LT=60;L.$EQ=61;L.$GT=62;L.$QUESTION=63;L.$0=48;L.$7=55;L.$9=57;L.$A=65;L.$E=69;L.$F=70;L.$X=88;L.$Z=90;L.$LBRACKET=91;L.$BACKSLASH=92;L.$RBRACKET=93;L.$CARET=94;L.$_=95;L.$a=97;L.$b=98;L.$e=101;L.$f=102;L.$n=110;L.$r=114;L.$t=116;L.$u=117;L.$v=118;L.$x=120;L.$z=122;L.$LBRACE=123;L.$BAR=124;L.$RBRACE=125;L.$NBSP=160;L.$PIPE=124;L.$TILDA=126;L.$AT=64;L.$BT=96;function GT(e){return e>=L.$TAB&&e<=L.$SPACE||e==L.$NBSP}L.isWhitespace=GT;function Ag(e){return L.$0<=e&&e<=L.$9}L.isDigit=Ag;function JT(e){return e>=L.$a&&e<=L.$z||e>=L.$A&&e<=L.$Z}L.isAsciiLetter=JT;function HT(e){return e>=L.$a&&e<=L.$f||e>=L.$A&&e<=L.$F||Ag(e)}L.isAsciiHexDigit=HT;function YT(e){return e===L.$LF||e===L.$CR}L.isNewLine=YT;function KT(e){return L.$0<=e&&e<=L.$7}L.isOctalDigit=KT});var xg=V(ha=>{"use strict";p();Object.defineProperty(ha,"__esModule",{value:!0});var ga=class{constructor(t,r,n){this.filePath=t,this.name=r,this.members=n}assertNoMembers(){if(this.members.length)throw new Error(`Illegal state: symbol without members expected, but got ${JSON.stringify(this)}.`)}};ha.StaticSymbol=ga;var Ll=class{constructor(){this.cache=new Map}get(t,r,n){n=n||[];let u=n.length?`.${n.join(".")}`:"",i=`"${t}".${r}${u}`,s=this.cache.get(i);return s||(s=new ga(t,r,n),this.cache.set(i,s)),s}};ha.StaticSymbolCache=Ll});var vg=V(de=>{"use strict";p();Object.defineProperty(de,"__esModule",{value:!0});var XT=/-+([a-z0-9])/g;function zT(e){return e.replace(XT,(...t)=>t[1].toUpperCase())}de.dashCaseToCamelCase=zT;function QT(e,t){return Sg(e,":",t)}de.splitAtColon=QT;function ZT(e,t){return Sg(e,".",t)}de.splitAtPeriod=ZT;function Sg(e,t,r){let n=e.indexOf(t);return n==-1?r:[e.slice(0,n).trim(),e.slice(n+1).trim()]}function Nl(e,t,r){return Array.isArray(e)?t.visitArray(e,r):o2(e)?t.visitStringMap(e,r):e==null||typeof e=="string"||typeof e=="number"||typeof e=="boolean"?t.visitPrimitive(e,r):t.visitOther(e,r)}de.visitValue=Nl;function e2(e){return e!=null}de.isDefined=e2;function t2(e){return e===void 0?null:e}de.noUndefined=t2;var _l=class{visitArray(t,r){return t.map(n=>Nl(n,this,r))}visitStringMap(t,r){let n={};return Object.keys(t).forEach(u=>{n[u]=Nl(t[u],this,r)}),n}visitPrimitive(t,r){return t}visitOther(t,r){return t}};de.ValueTransformer=_l;de.SyncAsync={assertSync:e=>{if(Ea(e))throw new Error("Illegal state: value cannot be a promise");return e},then:(e,t)=>Ea(e)?e.then(t):t(e),all:e=>e.some(Ea)?Promise.all(e):e};function r2(e){throw new Error(`Internal Error: ${e}`)}de.error=r2;function n2(e,t){let r=Error(e);return r[Tg]=!0,t&&(r[bg]=t),r}de.syntaxError=n2;var Tg="ngSyntaxError",bg="ngParseErrors";function u2(e){return e[Tg]}de.isSyntaxError=u2;function i2(e){return e[bg]||[]}de.getParseErrors=i2;function s2(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}de.escapeRegExp=s2;var a2=Object.getPrototypeOf({});function o2(e){return typeof e=="object"&&e!==null&&Object.getPrototypeOf(e)===a2}function c2(e){let t="";for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);if(n>=55296&&n<=56319&&e.length>r+1){let u=e.charCodeAt(r+1);u>=56320&&u<=57343&&(r++,n=(n-55296<<10)+u-56320+65536)}n<=127?t+=String.fromCharCode(n):n<=2047?t+=String.fromCharCode(n>>6&31|192,n&63|128):n<=65535?t+=String.fromCharCode(n>>12|224,n>>6&63|128,n&63|128):n<=2097151&&(t+=String.fromCharCode(n>>18&7|240,n>>12&63|128,n>>6&63|128,n&63|128))}return t}de.utf8Encode=c2;function Bg(e){if(typeof e=="string")return e;if(e instanceof Array)return"["+e.map(Bg).join(", ")+"]";if(e==null)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;if(!e.toString)return"object";let t=e.toString();if(t==null)return""+t;let r=t.indexOf(`
|
|
10
|
-
`);return r===-1?t:t.substring(0,r)}de.stringify=Bg;function l2(e){return typeof e=="function"&&e.hasOwnProperty("__forward_ref__")?e():e}de.resolveForwardRef=l2;function Ea(e){return!!e&&typeof e.then=="function"}de.isPromise=Ea;var Ol=class{constructor(t){this.full=t;let r=t.split(".");this.major=r[0],this.minor=r[1],this.patch=r.slice(2).join(".")}};de.Version=Ol;var p2=typeof window<"u"&&window,f2=typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self,m2=typeof globalThis<"u"&&globalThis,D2=m2||p2||f2;de.global=D2});var wg=V(ie=>{"use strict";p();Object.defineProperty(ie,"__esModule",{value:!0});var Ca=xg(),Aa=vg(),d2=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/;function Wl(e){return e.replace(/\W/g,"_")}ie.sanitizeIdentifier=Wl;var y2=0;function It(e){if(!e||!e.reference)return null;let t=e.reference;if(t instanceof Ca.StaticSymbol)return t.name;if(t.__anonymousType)return t.__anonymousType;let r=Aa.stringify(t);return r.indexOf("(")>=0?(r=`anonymous_${y2++}`,t.__anonymousType=r):r=Wl(r),r}ie.identifierName=It;function g2(e){let t=e.reference;return t instanceof Ca.StaticSymbol?t.filePath:`./${Aa.stringify(t)}`}ie.identifierModuleUrl=g2;function h2(e,t){return`View_${It({reference:e})}_${t}`}ie.viewClassName=h2;function E2(e){return`RenderType_${It({reference:e})}`}ie.rendererTypeName=E2;function C2(e){return`HostView_${It({reference:e})}`}ie.hostViewClassName=C2;function A2(e){return`${It({reference:e})}NgFactory`}ie.componentFactoryName=A2;var Fa;(function(e){e[e.Pipe=0]="Pipe",e[e.Directive=1]="Directive",e[e.NgModule=2]="NgModule",e[e.Injectable=3]="Injectable"})(Fa=ie.CompileSummaryKind||(ie.CompileSummaryKind={}));function F2(e){return e.value!=null?Wl(e.value):It(e.identifier)}ie.tokenName=F2;function x2(e){return e.identifier!=null?e.identifier.reference:e.value}ie.tokenReference=x2;var Rl=class{constructor({moduleUrl:t,styles:r,styleUrls:n}={}){this.moduleUrl=t||null,this.styles=ye(r),this.styleUrls=ye(n)}};ie.CompileStylesheetMetadata=Rl;var Ml=class{constructor({encapsulation:t,template:r,templateUrl:n,htmlAst:u,styles:i,styleUrls:s,externalStylesheets:a,animations:o,ngContentSelectors:c,interpolation:l,isInline:f,preserveWhitespaces:m}){if(this.encapsulation=t,this.template=r,this.templateUrl=n,this.htmlAst=u,this.styles=ye(i),this.styleUrls=ye(s),this.externalStylesheets=ye(a),this.animations=o?Gl(o):[],this.ngContentSelectors=c||[],l&&l.length!=2)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=l,this.isInline=f,this.preserveWhitespaces=m}toSummary(){return{ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation,styles:this.styles,animations:this.animations}}};ie.CompileTemplateMetadata=Ml;var Hu=class{static create({isHost:t,type:r,isComponent:n,selector:u,exportAs:i,changeDetection:s,inputs:a,outputs:o,host:c,providers:l,viewProviders:f,queries:m,guards:D,viewQueries:y,entryComponents:E,template:C,componentViewType:T,rendererType:b,componentFactory:S}){let v={},w={},j={};c!=null&&Object.keys(c).forEach(X=>{let W=c[X],ce=X.match(d2);ce===null?j[X]=W:ce[1]!=null?w[ce[1]]=W:ce[2]!=null&&(v[ce[2]]=W)});let q={};a!=null&&a.forEach(X=>{let W=Aa.splitAtColon(X,[X,X]);q[W[0]]=W[1]});let K={};return o!=null&&o.forEach(X=>{let W=Aa.splitAtColon(X,[X,X]);K[W[0]]=W[1]}),new Hu({isHost:t,type:r,isComponent:!!n,selector:u,exportAs:i,changeDetection:s,inputs:q,outputs:K,hostListeners:v,hostProperties:w,hostAttributes:j,providers:l,viewProviders:f,queries:m,guards:D,viewQueries:y,entryComponents:E,template:C,componentViewType:T,rendererType:b,componentFactory:S})}constructor({isHost:t,type:r,isComponent:n,selector:u,exportAs:i,changeDetection:s,inputs:a,outputs:o,hostListeners:c,hostProperties:l,hostAttributes:f,providers:m,viewProviders:D,queries:y,guards:E,viewQueries:C,entryComponents:T,template:b,componentViewType:S,rendererType:v,componentFactory:w}){this.isHost=!!t,this.type=r,this.isComponent=n,this.selector=u,this.exportAs=i,this.changeDetection=s,this.inputs=a,this.outputs=o,this.hostListeners=c,this.hostProperties=l,this.hostAttributes=f,this.providers=ye(m),this.viewProviders=ye(D),this.queries=ye(y),this.guards=E,this.viewQueries=ye(C),this.entryComponents=ye(T),this.template=b,this.componentViewType=S,this.rendererType=v,this.componentFactory=w}toSummary(){return{summaryKind:Fa.Directive,type:this.type,isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,providers:this.providers,viewProviders:this.viewProviders,queries:this.queries,guards:this.guards,viewQueries:this.viewQueries,entryComponents:this.entryComponents,changeDetection:this.changeDetection,template:this.template&&this.template.toSummary(),componentViewType:this.componentViewType,rendererType:this.rendererType,componentFactory:this.componentFactory}}};ie.CompileDirectiveMetadata=Hu;var jl=class{constructor({type:t,name:r,pure:n}){this.type=t,this.name=r,this.pure=!!n}toSummary(){return{summaryKind:Fa.Pipe,type:this.type,name:this.name,pure:this.pure}}};ie.CompilePipeMetadata=jl;var $l=class{};ie.CompileShallowModuleMetadata=$l;var Vl=class{constructor({type:t,providers:r,declaredDirectives:n,exportedDirectives:u,declaredPipes:i,exportedPipes:s,entryComponents:a,bootstrapComponents:o,importedModules:c,exportedModules:l,schemas:f,transitiveModule:m,id:D}){this.type=t||null,this.declaredDirectives=ye(n),this.exportedDirectives=ye(u),this.declaredPipes=ye(i),this.exportedPipes=ye(s),this.providers=ye(r),this.entryComponents=ye(a),this.bootstrapComponents=ye(o),this.importedModules=ye(c),this.exportedModules=ye(l),this.schemas=ye(f),this.id=D||null,this.transitiveModule=m||null}toSummary(){let t=this.transitiveModule;return{summaryKind:Fa.NgModule,type:this.type,entryComponents:t.entryComponents,providers:t.providers,modules:t.modules,exportedDirectives:t.exportedDirectives,exportedPipes:t.exportedPipes}}};ie.CompileNgModuleMetadata=Vl;var ql=class{constructor(){this.directivesSet=new Set,this.directives=[],this.exportedDirectivesSet=new Set,this.exportedDirectives=[],this.pipesSet=new Set,this.pipes=[],this.exportedPipesSet=new Set,this.exportedPipes=[],this.modulesSet=new Set,this.modules=[],this.entryComponentsSet=new Set,this.entryComponents=[],this.providers=[]}addProvider(t,r){this.providers.push({provider:t,module:r})}addDirective(t){this.directivesSet.has(t.reference)||(this.directivesSet.add(t.reference),this.directives.push(t))}addExportedDirective(t){this.exportedDirectivesSet.has(t.reference)||(this.exportedDirectivesSet.add(t.reference),this.exportedDirectives.push(t))}addPipe(t){this.pipesSet.has(t.reference)||(this.pipesSet.add(t.reference),this.pipes.push(t))}addExportedPipe(t){this.exportedPipesSet.has(t.reference)||(this.exportedPipesSet.add(t.reference),this.exportedPipes.push(t))}addModule(t){this.modulesSet.has(t.reference)||(this.modulesSet.add(t.reference),this.modules.push(t))}addEntryComponent(t){this.entryComponentsSet.has(t.componentType)||(this.entryComponentsSet.add(t.componentType),this.entryComponents.push(t))}};ie.TransitiveCompileNgModuleMetadata=ql;function ye(e){return e||[]}var Ul=class{constructor(t,{useClass:r,useValue:n,useExisting:u,useFactory:i,deps:s,multi:a}){this.token=t,this.useClass=r||null,this.useValue=n,this.useExisting=u,this.useFactory=i||null,this.dependencies=s||null,this.multi=!!a}};ie.ProviderMeta=Ul;function Gl(e){return e.reduce((t,r)=>{let n=Array.isArray(r)?Gl(r):r;return t.concat(n)},[])}ie.flatten=Gl;function xa(e){return e.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}function S2(e,t,r){let n;return r.isInline?t.type.reference instanceof Ca.StaticSymbol?n=`${t.type.reference.filePath}.${t.type.reference.name}.html`:n=`${It(e)}/${It(t.type)}.html`:n=r.templateUrl,t.type.reference instanceof Ca.StaticSymbol?n:xa(n)}ie.templateSourceUrl=S2;function T2(e,t){let r=e.moduleUrl.split(/\/\\/g),n=r[r.length-1];return xa(`css/${t}${n}.ngstyle.js`)}ie.sharedStylesheetJitUrl=T2;function b2(e){return xa(`${It(e.type)}/module.ngfactory.js`)}ie.ngModuleJitUrl=b2;function B2(e,t){return xa(`${It(e)}/${It(t.type)}.ngfactory.js`)}ie.templateJitUrl=B2});var Pg=V(Xe=>{"use strict";p();Object.defineProperty(Xe,"__esModule",{value:!0});var Jl=Fg(),Hl=wg(),Ht=class{constructor(t,r,n,u){this.file=t,this.offset=r,this.line=n,this.col=u}toString(){return this.offset!=null?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(t){let r=this.file.content,n=r.length,u=this.offset,i=this.line,s=this.col;for(;u>0&&t<0;)if(u--,t++,r.charCodeAt(u)==Jl.$LF){i--;let o=r.substr(0,u-1).lastIndexOf(String.fromCharCode(Jl.$LF));s=o>0?u-o:u}else s--;for(;u<n&&t>0;){let a=r.charCodeAt(u);u++,t--,a==Jl.$LF?(i++,s=0):s++}return new Ht(this.file,u,i,s)}getContext(t,r){let n=this.file.content,u=this.offset;if(u!=null){u>n.length-1&&(u=n.length-1);let i=u,s=0,a=0;for(;s<t&&u>0&&(u--,s++,!(n[u]==`
|
|
11
|
-
`&&++a==r)););for(s=0,a=0;s<t&&i<n.length-1&&(i++,s++,!(n[i]==`
|
|
12
|
-
`&&++a==r)););return{before:n.substring(u,this.offset),after:n.substring(this.offset,i+1)}}return null}};Xe.ParseLocation=Ht;var $n=class{constructor(t,r){this.content=t,this.url=r}};Xe.ParseSourceFile=$n;var Vn=class{constructor(t,r,n=null){this.start=t,this.end=r,this.details=n}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}};Xe.ParseSourceSpan=Vn;Xe.EMPTY_PARSE_LOCATION=new Ht(new $n("",""),0,0,0);Xe.EMPTY_SOURCE_SPAN=new Vn(Xe.EMPTY_PARSE_LOCATION,Xe.EMPTY_PARSE_LOCATION);var Yl;(function(e){e[e.WARNING=0]="WARNING",e[e.ERROR=1]="ERROR"})(Yl=Xe.ParseErrorLevel||(Xe.ParseErrorLevel={}));var Kl=class{constructor(t,r,n=Yl.ERROR){this.span=t,this.msg=r,this.level=n}contextualMessage(){let t=this.span.start.getContext(100,3);return t?`${this.msg} ("${t.before}[${Yl[this.level]} ->]${t.after}")`:this.msg}toString(){let t=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${t}`}};Xe.ParseError=Kl;function v2(e,t){let r=Hl.identifierModuleUrl(t),n=r!=null?`in ${e} ${Hl.identifierName(t)} in ${r}`:`in ${e} ${Hl.identifierName(t)}`,u=new $n("",n);return new Vn(new Ht(u,-1,-1,-1),new Ht(u,-1,-1,-1))}Xe.typeSourceSpan=v2;function w2(e,t,r){let n=`in ${e} ${t} in ${r}`,u=new $n("",n);return new Vn(new Ht(u,-1,-1,-1),new Ht(u,-1,-1,-1))}Xe.r3JitTypeSourceSpan=w2});var _g=V((Ng,Ba)=>{p();(function(e,t){typeof define=="function"&&define.amd?define([],t):typeof Ba=="object"&&Ba.exports?Ba.exports=t():e.parseSrcset=t()})(Ng,function(){return function(e,t){var r=t&&t.logger||console;function n(w){return w===" "||w===" "||w===`
|
|
13
|
-
`||w==="\f"||w==="\r"}function u(w){var j,q=w.exec(e.substring(T));if(q)return j=q[0],T+=j.length,j}for(var i=e.length,s=/^[ \t\n\r\u000c]+/,a=/^[, \t\n\r\u000c]+/,o=/^[^ \t\n\r\u000c]+/,c=/[,]+$/,l=/^\d+$/,f=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,m,D,y,E,C,T=0,b=[];;){if(u(a),T>=i)return b;m=u(o),D=[],m.slice(-1)===","?(m=m.replace(c,""),v()):S()}function S(){for(u(s),y="",E="in descriptor";;){if(C=e.charAt(T),E==="in descriptor")if(n(C))y&&(D.push(y),y="",E="after descriptor");else if(C===","){T+=1,y&&D.push(y),v();return}else if(C==="(")y=y+C,E="in parens";else if(C===""){y&&D.push(y),v();return}else y=y+C;else if(E==="in parens")if(C===")")y=y+C,E="in descriptor";else if(C===""){D.push(y),v();return}else y=y+C;else if(E==="after descriptor"&&!n(C))if(C===""){v();return}else E="in descriptor",T-=1;T+=1}}function v(){var w=!1,j,q,K,X,W={},ce,Be,Nt,$,Q;for(X=0;X<D.length;X++)ce=D[X],Be=ce[ce.length-1],Nt=ce.substring(0,ce.length-1),$=parseInt(Nt,10),Q=parseFloat(Nt),l.test(Nt)&&Be==="w"?((j||q)&&(w=!0),$===0?w=!0:j=$):f.test(Nt)&&Be==="x"?((j||q||K)&&(w=!0),Q<0?w=!0:q=Q):l.test(Nt)&&Be==="h"?((K||q)&&(w=!0),$===0?w=!0:K=$):w=!0;w?r&&r.error&&r.error("Invalid srcset descriptor found in '"+e+"' at '"+ce+"'."):(W.url=m,j&&(W.w=j),q&&(W.d=q),K&&(W.h=K),b.push(W))}}})});p();p();var Jm=Ct(pp(),1);var oi={};Ce(oi,{printDocToString:()=>jt});p();p();function fp(e){let t=e.indexOf("\r");return t>=0?e.charAt(t+1)===`
|
|
14
|
-
`?"crlf":"cr":"lf"}function zn(e){switch(e){case"cr":return"\r";case"crlf":return`\r
|
|
15
|
-
`;default:return`
|
|
16
|
-
`}}function $a(e,t){let r;switch(t){case`
|
|
17
|
-
`:r=/\n/g;break;case"\r":r=/\r/g;break;case`\r
|
|
18
|
-
`:r=/\r\n/g;break;default:throw new Error(`Unexpected "eol" ${JSON.stringify(t)}.`)}let n=e.match(r);return n?n.length:0}function ni(e){return e.replace(/\r\n?/g,`
|
|
19
|
-
`)}p();var Bh=e=>e[e.length-1],I=Bh;p();p();p();p();function Va({onlyFirst:e=!1}={}){let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[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")}function qa(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(Va(),"")}p();function Ua(e){return Number.isInteger(e)?e>=4352&&(e<=4447||e===9001||e===9002||11904<=e&&e<=12871&&e!==12351||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):!1}var dp=Ct(Dp(),1);function Wa(e){if(typeof e!="string"||e.length===0||(e=qa(e),e.length===0))return 0;e=e.replace((0,dp.default)()," ");let t=0;for(let r=0;r<e.length;r++){let n=e.codePointAt(r);n<=31||n>=127&&n<=159||n>=768&&n<=879||(n>65535&&r++,t+=Ua(n)?2:1)}return t}var vh=/[^\x20-\x7F]/;function wh(e){return e?vh.test(e)?Wa(e):e.length:0}var Ne=wh;p();var kr="string",yr="array",an="cursor",ot="indent",ct="align",Xt="trim",le="group",ge="fill",Ae="if-break",lt="indent-if-break",pt="line-suffix",zt="line-suffix-boundary",Fe="line",At="label",Qe="break-parent";var ui={};Ce(ui,{addAlignmentToDoc:()=>Qn,align:()=>ne,breakParent:()=>te,concat:()=>Ih,conditionalGroup:()=>ft,cursor:()=>Zt,dedent:()=>Ze,dedentToRoot:()=>gr,fill:()=>se,group:()=>h,hardline:()=>d,hardlineWithoutBreakParent:()=>Lr,ifBreak:()=>N,indent:()=>F,indentIfBreak:()=>Qt,join:()=>B,label:()=>Zn,line:()=>x,lineSuffix:()=>on,lineSuffixBoundary:()=>Ft,literalline:()=>_e,literallineWithoutBreakParent:()=>yp,markAsRoot:()=>_t,softline:()=>A,trim:()=>Ph});p();function F(e){return{type:ot,contents:e}}function ne(e,t){return{type:ct,contents:t,n:e}}function h(e,t={}){return{type:le,id:t.id,contents:e,break:Boolean(t.shouldBreak),expandedStates:t.expandedStates}}function gr(e){return ne(Number.NEGATIVE_INFINITY,e)}function _t(e){return ne({type:"root"},e)}function Ze(e){return ne(-1,e)}function ft(e,t){return h(e[0],{...t,expandedStates:e})}function se(e){return{type:ge,parts:e}}function N(e,t,r={}){return{type:Ae,breakContents:e,flatContents:t,groupId:r.groupId}}function Qt(e,t){return{type:lt,contents:e,groupId:t.groupId,negate:t.negate}}function on(e){return{type:pt,contents:e}}var Ft={type:zt},te={type:Qe},Ph={type:Xt},Lr={type:Fe,hard:!0},yp={type:Fe,hard:!0,literal:!0},x={type:Fe},A={type:Fe,soft:!0},d=[Lr,te],_e=[yp,te],Zt={type:an,placeholder:Symbol("cursor")};function B(e,t){let r=[];for(let n=0;n<t.length;n++)n!==0&&r.push(e),r.push(t[n]);return r}function Qn(e,t,r){let n=e;if(t>0){for(let u=0;u<Math.floor(t/r);++u)n=F(n);n=ne(t%r,n),n=ne(Number.NEGATIVE_INFINITY,n)}return n}function Zn(e,t){return{type:At,label:e,contents:t}}var Ih=e=>e;var ii={};Ce(ii,{canBreak:()=>za,cleanDoc:()=>Rt,findInDoc:()=>Ha,getDocParts:()=>Ot,getDocType:()=>cn,mapDoc:()=>et,normalizeDoc:()=>Xa,normalizeParts:()=>Ga,propagateBreaks:()=>Ya,removeLines:()=>hr,replaceEndOfLine:()=>tu,replaceTextEndOfLine:()=>z,stripTrailingHardline:()=>Ka,traverseDoc:()=>Ja,willBreak:()=>pe});p();var Ot=e=>{if(Array.isArray(e))return e;if(e.type!==ge)throw new Error(`Expect doc to be 'array' or '${ge}'.`);return e.parts},gp={};function Ja(e,t,r,n){let u=[e];for(;u.length>0;){let i=u.pop();if(i===gp){r(u.pop());continue}if(r&&u.push(i,gp),!t||t(i)!==!1)if(Array.isArray(i)||i.type===ge){let s=Ot(i);for(let a=s.length,o=a-1;o>=0;--o)u.push(s[o])}else if(i.type===Ae)i.flatContents&&u.push(i.flatContents),i.breakContents&&u.push(i.breakContents);else if(i.type===le&&i.expandedStates)if(n)for(let s=i.expandedStates.length,a=s-1;a>=0;--a)u.push(i.expandedStates[a]);else u.push(i.contents);else i.contents&&u.push(i.contents)}}function et(e,t){let r=new Map;return n(e);function n(i){if(r.has(i))return r.get(i);let s=u(i);return r.set(i,s),s}function u(i){if(Array.isArray(i))return t(i.map(n));if(i.type===yr||i.type===ge){let s=i.parts.map(n);return t({...i,parts:s})}if(i.type===Ae){let s=i.breakContents&&n(i.breakContents),a=i.flatContents&&n(i.flatContents);return t({...i,breakContents:s,flatContents:a})}if(i.type===le&&i.expandedStates){let s=i.expandedStates.map(n),a=s[0];return t({...i,contents:a,expandedStates:s})}if(i.contents){let s=n(i.contents);return t({...i,contents:s})}return t(i)}}function Ha(e,t,r){let n=r,u=!1;function i(s){let a=t(s);if(a!==void 0&&(u=!0,n=a),u)return!1}return Ja(e,i),n}function kh(e){if(e.type===le&&e.break||e.type===Fe&&e.hard||e.type===Qe)return!0}function pe(e){return Ha(e,kh,!1)}function hp(e){if(e.length>0){let t=I(e);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function Ya(e){let t=new Set,r=[];function n(i){if(i.type===Qe&&hp(r),i.type===le){if(r.push(i),t.has(i))return!1;t.add(i)}}function u(i){i.type===le&&r.pop().break&&hp(r)}Ja(e,n,u,!0)}function Lh(e){return e.type===Fe&&!e.hard?e.soft?"":" ":e.type===Ae?e.flatContents||"":e}function hr(e){return et(e,Lh)}var Nh=(e,t)=>e&&e.type===Fe&&e.hard&&t&&t.type===Qe;function eu(e){if(!e)return e;if(Array.isArray(e)||e.type===ge){let t=Ot(e);for(;t.length>1&&Nh(...t.slice(-2));)t.length-=2;if(t.length>0){let r=eu(I(t));t[t.length-1]=r}return Array.isArray(e)?t:{...e,parts:t}}switch(e.type){case ct:case ot:case lt:case le:case pt:case At:{let t=eu(e.contents);return{...e,contents:t}}case Ae:{let t=eu(e.breakContents),r=eu(e.flatContents);return{...e,breakContents:t,flatContents:r}}}return e}function Ka(e){return typeof e=="string"?e.replace(/(?:\r?\n)*$/,""):eu(Rt(e))}function _h(e){switch(e.type){case ge:if(e.parts.every(r=>r===""))return"";break;case le:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===le&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case ct:case ot:case lt:case pt:if(!e.contents)return"";break;case Ae:if(!e.flatContents&&!e.breakContents)return"";break}if(!Array.isArray(e))return e;let t=[];for(let r of e){if(!r)continue;let[n,...u]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof I(t)=="string"?t[t.length-1]+=n:t.push(n),t.push(...u)}return t.length===0?"":t.length===1?t[0]:t}function Rt(e){return et(e,t=>_h(t))}function Ga(e){let t=[],r=e.filter(Boolean);for(;r.length>0;){let n=r.shift();if(!!n){if(Array.isArray(n)){r.unshift(...n);continue}if(t.length>0&&typeof I(t)=="string"&&typeof n=="string"){t[t.length-1]+=n;continue}t.push(n)}}return t}function Xa(e){return et(e,t=>Array.isArray(t)?Ga(t):t.parts?{...t,parts:Ga(t.parts)}:t)}function tu(e){return et(e,t=>typeof t=="string"&&t.includes(`
|
|
20
|
-
`)?z(t):t)}function z(e,t=_e){return B(t,e.split(`
|
|
21
|
-
`))}function Oh(e){if(e.type===Fe)return!0}function za(e){return Ha(e,Oh,!1)}function cn(e){return typeof e=="string"?kr:Array.isArray(e)?yr:e==null?void 0:e.type}p();var Ep=[an,ot,ct,Xt,le,ge,Ae,lt,pt,zt,Fe,At,Qe],Rh=e=>[...e.slice(0,-1),`or ${I(e)}`].join(", ");function Mh(e){let t=e===null?null:typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}',
|
|
22
|
-
Expected it to be 'string' or 'object'.`;let r=cn(e);if(r===kr||r===yr||Ep.includes(r))throw new Error("doc is valid.");let n=Object.prototype.toString.call(e);if(n!=="[object Object]")return`Unexpected doc '${n}'.`;let u=Rh(Ep.map(i=>`'${i}'`));return`Unexpected doc.type '${r}'.
|
|
23
|
-
Expected it to be ${u}.`}var Qa=class extends Error{constructor(r){super(Mh(r));ip(this,"name","InvalidDocError");this.doc=r}},Cp=Qa;var ai,Ve=1,Mt=2;function Ap(){return{value:"",length:0,queue:[]}}function jh(e,t){return Za(e,{type:"indent"},t)}function $h(e,t,r){return t===Number.NEGATIVE_INFINITY?e.root||Ap():t<0?Za(e,{type:"dedent"},r):t?t.type==="root"?{...e,root:e}:Za(e,{type:typeof t=="string"?"stringAlign":"numberAlign",n:t},r):e}function Za(e,t,r){let n=t.type==="dedent"?e.queue.slice(0,-1):[...e.queue,t],u="",i=0,s=0,a=0;for(let y of n)switch(y.type){case"indent":l(),r.useTabs?o(1):c(r.tabWidth);break;case"stringAlign":l(),u+=y.n,i+=y.n.length;break;case"numberAlign":s+=1,a+=y.n;break;default:throw new Error(`Unexpected type '${y.type}'`)}return m(),{...e,value:u,length:i,queue:n};function o(y){u+=" ".repeat(y),i+=r.tabWidth*y}function c(y){u+=" ".repeat(y),i+=y}function l(){r.useTabs?f():m()}function f(){s>0&&o(s),D()}function m(){a>0&&c(a),D()}function D(){s=0,a=0}}function eo(e){if(e.length===0)return 0;let t=0;for(;e.length>0&&typeof I(e)=="string"&&/^[\t ]*$/.test(I(e));)t+=e.pop().length;if(e.length>0&&typeof I(e)=="string"){let r=I(e).replace(/[\t ]*$/,"");t+=I(e).length-r.length,e[e.length-1]=r}return t}function si(e,t,r,n,u){let i=t.length,s=[e],a=[];for(;r>=0;){if(s.length===0){if(i===0)return!0;s.push(t[--i]);continue}let{mode:o,doc:c}=s.pop();switch(cn(c)){case kr:a.push(c),r-=Ne(c);break;case yr:case ge:{let l=Ot(c);for(let f=l.length-1;f>=0;f--)s.push({mode:o,doc:l[f]});break}case ot:case ct:case lt:case At:s.push({mode:o,doc:c.contents});break;case Xt:r+=eo(a);break;case le:{if(u&&c.break)return!1;let l=c.break?Ve:o,f=c.expandedStates&&l===Ve?I(c.expandedStates):c.contents;s.push({mode:l,doc:f});break}case Ae:{let f=(c.groupId?ai[c.groupId]||Mt:o)===Ve?c.breakContents:c.flatContents;f&&s.push({mode:o,doc:f});break}case Fe:if(o===Ve||c.hard)return!0;c.soft||(a.push(" "),r--);break;case pt:n=!0;break;case zt:if(n)return!1;break}}return!1}function jt(e,t){ai={};let r=t.printWidth,n=zn(t.endOfLine),u=0,i=[{ind:Ap(),mode:Ve,doc:e}],s=[],a=!1,o=[];for(;i.length>0;){let{ind:l,mode:f,doc:m}=i.pop();switch(cn(m)){case kr:{let D=n!==`
|
|
24
|
-
`?m.replace(/\n/g,n):m;s.push(D),u+=Ne(D);break}case yr:{for(let D=m.length-1;D>=0;D--)i.push({ind:l,mode:f,doc:m[D]});break}case an:s.push(Zt.placeholder);break;case ot:i.push({ind:jh(l,t),mode:f,doc:m.contents});break;case ct:i.push({ind:$h(l,m.n,t),mode:f,doc:m.contents});break;case Xt:u-=eo(s);break;case le:switch(f){case Mt:if(!a){i.push({ind:l,mode:m.break?Ve:Mt,doc:m.contents});break}case Ve:{a=!1;let D={ind:l,mode:Mt,doc:m.contents},y=r-u,E=o.length>0;if(!m.break&&si(D,i,y,E))i.push(D);else if(m.expandedStates){let C=I(m.expandedStates);if(m.break){i.push({ind:l,mode:Ve,doc:C});break}else for(let T=1;T<m.expandedStates.length+1;T++)if(T>=m.expandedStates.length){i.push({ind:l,mode:Ve,doc:C});break}else{let b=m.expandedStates[T],S={ind:l,mode:Mt,doc:b};if(si(S,i,y,E)){i.push(S);break}}}else i.push({ind:l,mode:Ve,doc:m.contents});break}}m.id&&(ai[m.id]=I(i).mode);break;case ge:{let D=r-u,{parts:y}=m;if(y.length===0)break;let[E,C]=y,T={ind:l,mode:Mt,doc:E},b={ind:l,mode:Ve,doc:E},S=si(T,[],D,o.length>0,!0);if(y.length===1){S?i.push(T):i.push(b);break}let v={ind:l,mode:Mt,doc:C},w={ind:l,mode:Ve,doc:C};if(y.length===2){S?i.push(v,T):i.push(w,b);break}y.splice(0,2);let j={ind:l,mode:f,doc:se(y)},q=y[0];si({ind:l,mode:Mt,doc:[E,C,q]},[],D,o.length>0,!0)?i.push(j,v,T):S?i.push(j,w,T):i.push(j,w,b);break}case Ae:case lt:{let D=m.groupId?ai[m.groupId]:f;if(D===Ve){let y=m.type===Ae?m.breakContents:m.negate?m.contents:F(m.contents);y&&i.push({ind:l,mode:f,doc:y})}if(D===Mt){let y=m.type===Ae?m.flatContents:m.negate?F(m.contents):m.contents;y&&i.push({ind:l,mode:f,doc:y})}break}case pt:o.push({ind:l,mode:f,doc:m.contents});break;case zt:o.length>0&&i.push({ind:l,mode:f,doc:Lr});break;case Fe:switch(f){case Mt:if(m.hard)a=!0;else{m.soft||(s.push(" "),u+=1);break}case Ve:if(o.length>0){i.push({ind:l,mode:f,doc:m},...o.reverse()),o.length=0;break}m.literal?l.root?(s.push(n,l.root.value),u=l.root.length):(s.push(n),u=0):(u-=eo(s),s.push(n+l.value),u=l.length);break}break;case At:i.push({ind:l,mode:f,doc:m.contents});break;case Qe:break;default:throw new Cp(m)}i.length===0&&o.length>0&&(i.push(...o.reverse()),o.length=0)}let c=s.indexOf(Zt.placeholder);if(c!==-1){let l=s.indexOf(Zt.placeholder,c+1),f=s.slice(0,c).join(""),m=s.slice(c+1,l).join(""),D=s.slice(l+1).join("");return{formatted:f+m+D,cursorNodeStart:f.length,cursorNodeText:m}}return{formatted:s.join("")}}var ci={};Ce(ci,{printDocToDebug:()=>to});p();function er(e){if(!e)return"";if(Array.isArray(e)){let t=[];for(let r of e)if(Array.isArray(r))t.push(...er(r));else{let n=er(r);n!==""&&t.push(n)}return t}return e.type===Ae?{...e,breakContents:er(e.breakContents),flatContents:er(e.flatContents)}:e.type===le?{...e,contents:er(e.contents),expandedStates:e.expandedStates&&e.expandedStates.map(er)}:e.type===ge?{type:"fill",parts:e.parts.map(er)}:e.contents?{...e,contents:er(e.contents)}:e}function to(e){let t=Object.create(null),r=new Set;return n(er(e));function n(i,s,a){if(typeof i=="string")return JSON.stringify(i);if(Array.isArray(i)){let o=i.map(n).filter(Boolean);return o.length===1?o[0]:`[${o.join(", ")}]`}if(i.type===Fe){let o=Array.isArray(a)&&a[s+1]&&a[s+1].type===Qe;return i.literal?o?"literalline":"literallineWithoutBreakParent":i.hard?o?"hardline":"hardlineWithoutBreakParent":i.soft?"softline":"line"}if(i.type===Qe)return Array.isArray(a)&&a[s-1]&&a[s-1].type===Fe&&a[s-1].hard?void 0:"breakParent";if(i.type===Xt)return"trim";if(i.type===ot)return"indent("+n(i.contents)+")";if(i.type===ct)return i.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+n(i.contents)+")":i.n<0?"dedent("+n(i.contents)+")":i.n.type==="root"?"markAsRoot("+n(i.contents)+")":"align("+JSON.stringify(i.n)+", "+n(i.contents)+")";if(i.type===Ae)return"ifBreak("+n(i.breakContents)+(i.flatContents?", "+n(i.flatContents):"")+(i.groupId?(i.flatContents?"":', ""')+`, { groupId: ${u(i.groupId)} }`:"")+")";if(i.type===lt){let o=[];i.negate&&o.push("negate: true"),i.groupId&&o.push(`groupId: ${u(i.groupId)}`);let c=o.length>0?`, { ${o.join(", ")} }`:"";return`indentIfBreak(${n(i.contents)}${c})`}if(i.type===le){let o=[];i.break&&i.break!=="propagated"&&o.push("shouldBreak: true"),i.id&&o.push(`id: ${u(i.id)}`);let c=o.length>0?`, { ${o.join(", ")} }`:"";return i.expandedStates?`conditionalGroup([${i.expandedStates.map(l=>n(l)).join(",")}]${c})`:`group(${n(i.contents)}${c})`}if(i.type===ge)return`fill([${i.parts.map(o=>n(o)).join(", ")}])`;if(i.type===pt)return"lineSuffix("+n(i.contents)+")";if(i.type===zt)return"lineSuffixBoundary";if(i.type===At)return`label(${JSON.stringify(i.label)}, ${n(i.contents)})`;throw new Error("Unknown doc type "+i.type)}function u(i){if(typeof i!="symbol")return JSON.stringify(String(i));if(i in t)return t[i];let s=i.description||"symbol";for(let a=0;;a++){let o=s+(a>0?` #${a}`:"");if(!r.has(o))return r.add(o),t[i]=`Symbol.for(${JSON.stringify(o)})`}}}p();p();function li(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}p();var Kp=Ct(mi(),1),Xp=Ct($p(),1),zp=Ct(qp(),1);p();var nE=(e,t)=>Object.entries(e).map(([r,n])=>({[t]:r,...n})),Up=nE;p();p();function Di(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]}function Wp(){return typeof WeakMap<"u"?new WeakMap:uE()}function uE(){return{add:Di,delete:Di,get:Di,set:Di,has:function(e){return!1}}}var iE=Object.prototype.hasOwnProperty,so=function(e,t){return iE.call(e,t)};function io(e,t){for(var r in t)so(t,r)&&(e[r]=t[r]);return e}var sE=/^[ \t]*(?:\r\n|\r|\n)/,aE=/(?:\r\n|\r|\n)[ \t]*$/,oE=/^(?:[\r\n]|$)/,cE=/(?:\r\n|\r|\n)([ \t]*)(?:[^ \t\r\n]|$)/,lE=/^[ \t]*[\r\n][ \t\r\n]*$/;function Gp(e,t,r){var n=0,u=e[0].match(cE);u&&(n=u[1].length);var i="(\\r\\n|\\r|\\n).{0,"+n+"}",s=new RegExp(i,"g");t&&(e=e.slice(1));var a=r.newline,o=r.trimLeadingNewline,c=r.trimTrailingNewline,l=typeof a=="string",f=e.length,m=e.map(function(D,y){return D=D.replace(s,"$1"),y===0&&o&&(D=D.replace(sE,"")),y===f-1&&c&&(D=D.replace(aE,"")),l&&(D=D.replace(/\r\n|\n|\r/g,function(E){return a})),D});return m}function pE(e,t){for(var r="",n=0,u=e.length;n<u;n++)r+=e[n],n<u-1&&(r+=t[n]);return r}function fE(e){return so(e,"raw")&&so(e,"length")}function Jp(e){var t=Wp(),r=Wp();function n(i){for(var s=[],a=1;a<arguments.length;a++)s[a-1]=arguments[a];if(fE(i)){var o=i,c=(s[0]===n||s[0]===Cr)&&lE.test(o[0])&&oE.test(o[1]),l=c?r:t,f=l.get(o);if(f||(f=Gp(o,c,e),l.set(o,f)),s.length===0)return f[0];var m=pE(f,c?s.slice(1):s);return m}else return Jp(io(io({},e),i||{}))}var u=io(n,{string:function(i){return Gp([i],!1,e)[0]}});return u}var Cr=Jp({trimLeadingNewline:!0,trimTrailingNewline:!0});var Hp="Config",ao="Editor";var oo="Other";var Ar="Global",pn="Special",Yp={cursorOffset:{since:"1.4.0",category:pn,type:"int",default:-1,range:{start:-1,end:Number.POSITIVE_INFINITY,step:1},description:Cr`
|
|
25
|
-
Print (to stderr) where a cursor at the given position would move to after formatting.
|
|
26
|
-
This option cannot be used with --range-start and --range-end.
|
|
27
|
-
`,cliCategory:ao},endOfLine:{since:"1.15.0",category:Ar,type:"choice",default:[{since:"1.15.0",value:"auto"},{since:"2.0.0",value:"lf"}],description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:Cr`
|
|
28
|
-
Maintain existing
|
|
29
|
-
(mixed values within one file are normalised by looking at what's used after the first line)
|
|
30
|
-
`}]},filepath:{since:"1.4.0",category:pn,type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:oo,cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{since:"1.8.0",category:pn,type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:oo},parser:{since:"0.0.10",category:Ar,type:"choice",default:[{since:"0.0.10",value:"babylon"},{since:"1.13.0",value:void 0}],description:"Which parser to use.",exception:e=>typeof e=="string"||typeof e=="function",choices:[{value:"flow",description:"Flow"},{value:"babel",since:"1.16.0",description:"JavaScript"},{value:"babel-flow",since:"1.16.0",description:"Flow"},{value:"babel-ts",since:"2.0.0",description:"TypeScript"},{value:"typescript",since:"1.4.0",description:"TypeScript"},{value:"acorn",since:"2.6.0",description:"JavaScript"},{value:"espree",since:"2.2.0",description:"JavaScript"},{value:"meriyah",since:"2.2.0",description:"JavaScript"},{value:"css",since:"1.7.1",description:"CSS"},{value:"less",since:"1.7.1",description:"Less"},{value:"scss",since:"1.7.1",description:"SCSS"},{value:"json",since:"1.5.0",description:"JSON"},{value:"json5",since:"1.13.0",description:"JSON5"},{value:"json-stringify",since:"1.13.0",description:"JSON.stringify"},{value:"graphql",since:"1.5.0",description:"GraphQL"},{value:"markdown",since:"1.8.0",description:"Markdown"},{value:"mdx",since:"1.15.0",description:"MDX"},{value:"vue",since:"1.10.0",description:"Vue"},{value:"yaml",since:"1.14.0",description:"YAML"},{value:"glimmer",since:"2.3.0",description:"Ember / Handlebars"},{value:"html",since:"1.15.0",description:"HTML"},{value:"angular",since:"1.15.0",description:"Angular"},{value:"lwc",since:"1.17.0",description:"Lightning Web Components"}]},plugins:{since:"1.10.0",type:"path",array:!0,default:[{value:[]}],category:Ar,description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>typeof e=="string"||typeof e=="object",cliName:"plugin",cliCategory:Hp},pluginSearchDirs:{since:"1.13.0",type:"path",array:!0,default:[{value:[]}],category:Ar,description:Cr`
|
|
31
|
-
Custom directory that contains prettier plugins in node_modules subdirectory.
|
|
32
|
-
Overrides default behavior when plugins are searched relatively to the location of Prettier.
|
|
33
|
-
Multiple values are accepted.
|
|
34
|
-
`,exception:e=>typeof e=="string"||typeof e=="object",cliName:"plugin-search-dir",cliCategory:Hp},printWidth:{since:"0.0.0",category:Ar,type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},rangeEnd:{since:"1.4.0",category:pn,type:"int",default:Number.POSITIVE_INFINITY,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:Cr`
|
|
35
|
-
Format code ending at a given character offset (exclusive).
|
|
36
|
-
The range will extend forwards to the end of the selected statement.
|
|
37
|
-
This option cannot be used with --cursor-offset.
|
|
38
|
-
`,cliCategory:ao},rangeStart:{since:"1.4.0",category:pn,type:"int",default:0,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:Cr`
|
|
39
|
-
Format code starting at a given character offset.
|
|
40
|
-
The range will extend backwards to the start of the first line containing the selected statement.
|
|
41
|
-
This option cannot be used with --cursor-offset.
|
|
42
|
-
`,cliCategory:ao},requirePragma:{since:"1.7.0",category:pn,type:"boolean",default:!1,description:Cr`
|
|
43
|
-
Require either '@prettier' or '@format' to be present in the file's first docblock comment
|
|
44
|
-
in order for it to be formatted.
|
|
45
|
-
`,cliCategory:oo},tabWidth:{type:"int",category:Ar,default:2,description:"Number of spaces per indentation level.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},useTabs:{since:"1.0.0",category:Ar,type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{since:"2.1.0",category:Ar,type:"choice",default:[{since:"2.1.0",value:"auto"}],description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};var co="3.0.0-alpha.0";function Nr({plugins:e=[],showUnreleased:t=!1,showDeprecated:r=!1,showInternal:n=!1}={}){let u=co.split("-",1)[0],i=e.flatMap(l=>l.languages||[]).filter(a),s=Up(Object.assign({},...e.map(({options:l})=>l),Yp),"name").filter(l=>a(l)&&o(l)).sort((l,f)=>l.name===f.name?0:l.name<f.name?-1:1).map(c).map(l=>{l={...l},Array.isArray(l.default)&&(l.default=l.default.length===1?l.default[0].value:l.default.filter(a).sort((m,D)=>(0,Kp.default)(D.since,m.since))[0].value),Array.isArray(l.choices)&&(l.choices=l.choices.filter(m=>a(m)&&o(m)),l.name==="parser"&&DE(l,i,e));let f=Object.fromEntries(e.filter(m=>m.defaultOptions&&m.defaultOptions[l.name]!==void 0).map(m=>[m.name,m.defaultOptions[l.name]]));return{...l,pluginDefaults:f}});return{languages:i,options:s};function a(l){return t||!("since"in l)||l.since&&(0,Xp.default)(u,l.since)}function o(l){return r||!("deprecated"in l)||l.deprecated&&(0,zp.default)(u,l.deprecated)}function c(l){if(n)return l;let{cliName:f,cliCategory:m,cliDescription:D,...y}=l;return y}}function DE(e,t,r){let n=new Set(e.choices.map(u=>u.value));for(let u of t)if(u.parsers){for(let i of u.parsers)if(!n.has(i)){n.add(i);let s=r.find(o=>o.parsers&&o.parsers[i]),a=u.name;s&&s.name&&(a+=` (plugin: ${s.name})`),e.choices.push({value:i,description:a})}}}p();function di(e){return(t,r,n)=>{let u=n&&n.backwards;if(r===!1)return!1;let{length:i}=t,s=r;for(;s>=0&&s<i;){let a=t.charAt(s);if(e instanceof RegExp){if(!e.test(a))return s}else if(!e.includes(a))return s;u?s--:s++}return s===-1||s===i?s:!1}}var ru=di(/\s/),mt=di(" "),yi=di(",; "),fn=di(/[^\n\r]/);p();function dE(e,t){if(t===!1)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}var mn=dE;p();function yE(e,t){return t===!1?!1:e.charAt(t)==="/"&&e.charAt(t+1)==="/"?fn(e,t):t}var Dn=yE;p();function gE(e,t,r){let n=r&&r.backwards;if(t===!1)return!1;let u=e.charAt(t);if(n){if(e.charAt(t-1)==="\r"&&u===`
|
|
46
|
-
`)return t-2;if(u===`
|
|
47
|
-
`||u==="\r"||u==="\u2028"||u==="\u2029")return t-1}else{if(u==="\r"&&e.charAt(t+1)===`
|
|
48
|
-
`)return t+2;if(u===`
|
|
49
|
-
`||u==="\r"||u==="\u2028"||u==="\u2029")return t+1}return t}var xt=gE;p();function hE(e,t){let r=null,n=t;for(;n!==r;)r=n,n=mt(e,n),n=mn(e,n),n=Dn(e,n),n=xt(e,n);return n}var dn=hE;p();function EE(e){return Array.isArray(e)&&e.length>0}var O=EE;var Qp=e=>e[e.length-2];function Zp(e){return(t,r,n)=>{let u=n&&n.backwards;if(r===!1)return!1;let{length:i}=t,s=r;for(;s>=0&&s<i;){let a=t.charAt(s);if(e instanceof RegExp){if(!e.test(a))return s}else if(!e.includes(a))return s;u?s--:s++}return s===-1||s===i?s:!1}}function ee(e,t,r={}){let n=mt(e,r.backwards?t-1:t,r),u=xt(e,n,r);return n!==u}function $t(e,t,r){for(let n=t;n<r;++n)if(e.charAt(n)===`
|
|
50
|
-
`)return!0;return!1}function yn(e,t,r){let n=r(t)-1;n=mt(e,n,{backwards:!0}),n=xt(e,n,{backwards:!0}),n=mt(e,n,{backwards:!0});let u=xt(e,n,{backwards:!0});return n!==u}function _r(e,t){let r=null,n=t;for(;n!==r;)r=n,n=yi(e,n),n=mn(e,n),n=mt(e,n);return n=Dn(e,n),n=xt(e,n),n!==!1&&ee(e,n)}function Fr(e,t,r){return _r(e,r(t))}function tr(e,t,r){return dn(e,r(t))}function St(e,t,r){return e.charAt(tr(e,t,r))}function ef(e,t,r={}){return mt(e,r.backwards?t-1:t,r)!==t}function nu(e,t,r=0){let n=0;for(let u=r;u<e.length;++u)e[u]===" "?n=n+t-n%t:n++;return n}function gi(e,t){let r=e.lastIndexOf(`
|
|
51
|
-
`);return r===-1?0:nu(e.slice(r+1).match(/^[\t ]*/)[0],t)}function Or(e,t){let r={quote:'"',regex:/"/g,escaped:"""},n={quote:"'",regex:/'/g,escaped:"'"},u=t==="'"?n:r,i=u===n?r:n,s=u;if(e.includes(u.quote)||e.includes(i.quote)){let a=(e.match(u.regex)||[]).length,o=(e.match(i.regex)||[]).length;s=a>o?i:u}return s}function Vt(e,t){let r=e.slice(1,-1),n=t.parser==="json"||t.parser==="json5"&&t.quoteProps==="preserve"&&!t.singleQuote?'"':t.__isInHtmlAttribute?"'":Or(r,t.singleQuote?"'":'"').quote;return lo(r,n,!(t.parser==="css"||t.parser==="less"||t.parser==="scss"||t.__embeddedInHtml))}function lo(e,t,r){let n=t==='"'?"'":'"',u=/\\(.)|(["'])/gs,i=e.replace(u,(s,a,o)=>a===n?a:o===t?"\\"+o:o||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(a)?a:"\\"+a));return t+i+t}function qe(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|$)/,"")}function gn(e,t){let r=e.match(new RegExp(`(${li(t)})+`,"g"));return r===null?0:r.reduce((n,u)=>Math.max(n,u.length/t.length),0)}function tf(e,t){let r=e.match(new RegExp(`(${li(t)})+`,"g"));if(r===null)return 0;let n=new Map,u=0;for(let i of r){let s=i.length/t.length;n.set(s,!0),s>u&&(u=s)}for(let i=1;i<u;i++)if(!n.get(i))return i;return u+1}function po(e,t){(e.comments||(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=CE(e)}function ue(e,t){t.leading=!0,t.trailing=!1,po(e,t)}function fe(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),po(e,t)}function re(e,t){t.leading=!1,t.trailing=!0,po(e,t)}function uu(e,t){let{languages:r}=Nr({plugins:t.plugins}),n=r.find(({name:u})=>u.toLowerCase()===e)||r.find(({aliases:u})=>Array.isArray(u)&&u.includes(e))||r.find(({extensions:u})=>Array.isArray(u)&&u.includes(`.${e}`));return n&&n.parsers[0]}function Ue(e){return e&&e.type==="front-matter"}function hi(e){let t=new WeakMap;return function(r){return t.has(r)||t.set(r,Symbol(e)),t.get(r)}}function CE(e){let t=e.type||e.kind||"(unknown type)",r=String(e.name||e.id&&(typeof e.id=="object"?e.id.name:e.id)||e.key&&(typeof e.key=="object"?e.key.name:e.key)||e.value&&(typeof e.value=="object"?"":String(e.value))||e.operator||"");return r.length>20&&(r=r.slice(0,19)+"\u2026"),t+(r?" "+r:"")}p();p();function rf(e,t){for(var r=0,n=e.length-1;n>=0;n--){var u=e[n];u==="."?e.splice(n,1):u===".."?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}var AE=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,mo=function(e){return AE.exec(e).slice(1)};function fo(){for(var e="",t=!1,r=arguments.length-1;r>=-1&&!t;r--){var n=r>=0?arguments[r]:"/";if(typeof n!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!n)continue;e=n+"/"+e,t=n.charAt(0)==="/"}return e=rf(Do(e.split("/"),function(u){return!!u}),!t).join("/"),(t?"/":"")+e||"."}function nf(e){var t=uf(e),r=wE(e,-1)==="/";return e=rf(Do(e.split("/"),function(n){return!!n}),!t).join("/"),!e&&!t&&(e="."),e&&r&&(e+="/"),(t?"/":"")+e}function uf(e){return e.charAt(0)==="/"}function FE(){var e=Array.prototype.slice.call(arguments,0);return nf(Do(e,function(t,r){if(typeof t!="string")throw new TypeError("Arguments to path.join must be strings");return t}).join("/"))}function xE(e,t){e=fo(e).substr(1),t=fo(t).substr(1);function r(c){for(var l=0;l<c.length&&c[l]==="";l++);for(var f=c.length-1;f>=0&&c[f]==="";f--);return l>f?[]:c.slice(l,f-l+1)}for(var n=r(e.split("/")),u=r(t.split("/")),i=Math.min(n.length,u.length),s=i,a=0;a<i;a++)if(n[a]!==u[a]){s=a;break}for(var o=[],a=s;a<n.length;a++)o.push("..");return o=o.concat(u.slice(s)),o.join("/")}var SE="/",TE=":";function bE(e){var t=mo(e),r=t[0],n=t[1];return!r&&!n?".":(n&&(n=n.substr(0,n.length-1)),r+n)}function BE(e,t){var r=mo(e)[2];return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r}function vE(e){return mo(e)[3]}var sf={extname:vE,basename:BE,dirname:bE,sep:SE,delimiter:TE,relative:xE,join:FE,isAbsolute:uf,normalize:nf,resolve:fo};function Do(e,t){if(e.filter)return e.filter(t);for(var r=[],n=0;n<e.length;n++)t(e[n],n,e)&&r.push(e[n]);return r}var wE="ab".substr(-1)==="b"?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)};p();var Ei=class extends Error{};var Ci=class extends Error{},xr=class extends Error{};p();p();var Oe=Ct(kf(),1);var vi={key:e=>e.length===1?`-${e}`:`--${e}`,value:e=>Oe.default.apiDescriptor.value(e),pair:({key:e,value:t})=>t===!1?`--no-${e}`:t===!0?vi.key(e):t===""?`${vi.key(e)} without an argument`:`${vi.key(e)}=${t}`},bC=({colorsModule:e,levenshteinDistance:t})=>{var r,n;return n=class extends Oe.default.ChoiceSchema{constructor({name:s,flags:a}){super({name:s,choices:a});ap(this,r,[]);op(this,r,[...a].sort())}preprocess(s,a){if(typeof s=="string"&&s.length>0&&!Ma(this,r).includes(s)){let o=Ma(this,r).find(c=>t(c,s)<3);if(o)return a.logger.warn([`Unknown flag ${e.yellow(a.descriptor.value(s))},`,`did you mean ${e.blue(a.descriptor.value(o))}?`].join(" ")),o}return s}expected(){return"a flag"}},r=new WeakMap,n},Qo;function BC(e,t,{logger:r=!1,isCLI:n=!1,passThrough:u=!1,colorsModule:i=null,levenshteinDistance:s=null}={}){let a=u?Array.isArray(u)?(D,y)=>u.includes(D)?{[D]:y}:void 0:(D,y)=>({[D]:y}):(D,y,E)=>{let{_:C,...T}=E.schemas;return Oe.default.levenUnknownHandler(D,y,{...E,schemas:T})},o=n?vi:Oe.default.apiDescriptor,c=vC(t,{isCLI:n,colorsModule:i,levenshteinDistance:s}),l=new Oe.default.Normalizer(c,{logger:r,unknown:a,descriptor:o}),f=r!==!1;f&&Qo&&(l._hasDeprecationWarned=Qo);let m=l.normalize(e);return f&&(Qo=l._hasDeprecationWarned),n&&m["plugin-search"]===!1&&(m["plugin-search-dir"]=!1),m}function vC(e,{isCLI:t,colorsModule:r,levenshteinDistance:n}){let u=[];t&&u.push(Oe.default.AnySchema.create({name:"_"}));for(let i of e)u.push(wC(i,{isCLI:t,optionInfos:e,colorsModule:r,levenshteinDistance:n})),i.alias&&t&&u.push(Oe.default.AliasSchema.create({name:i.alias,sourceName:i.name}));return u}function wC(e,{isCLI:t,optionInfos:r,colorsModule:n,levenshteinDistance:u}){let{name:i}=e;if(i==="plugin-search-dir"||i==="pluginSearchDirs")return Oe.default.AnySchema.create({name:i,preprocess(c){return c===!1||(c=Array.isArray(c)?c:[c]),c},validate(c){return c===!1?!0:c.every(l=>typeof l=="string")},expected(){return"false or paths to plugin search dir"}});let s={name:i},a,o={};switch(e.type){case"int":a=Oe.default.IntegerSchema,t&&(s.preprocess=Number);break;case"string":a=Oe.default.StringSchema;break;case"choice":a=Oe.default.ChoiceSchema,s.choices=e.choices.map(c=>typeof c=="object"&&c.redirect?{...c,redirect:{to:{key:e.name,value:c.redirect}}}:c);break;case"boolean":a=Oe.default.BooleanSchema;break;case"flag":a=bC({colorsModule:n,levenshteinDistance:u}),s.flags=r.flatMap(c=>[c.alias,c.description&&c.name,c.oppositeDescription&&`no-${c.name}`].filter(Boolean));break;case"path":a=Oe.default.StringSchema;break;default:throw new Error(`Unexpected type ${e.type}`)}if(e.exception?s.validate=(c,l,f)=>e.exception(c)||l.validate(c,f):s.validate=(c,l,f)=>c===void 0||l.validate(c,f),e.redirect&&(o.redirect=c=>c?{to:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(o.deprecated=!0),t&&!e.array){let c=s.preprocess||(l=>l);s.preprocess=(l,f,m)=>f.preprocess(c(Array.isArray(l)?I(l):l),m)}return e.array?Oe.default.ArraySchema.create({...t?{preprocess:c=>Array.isArray(c)?c:[c]}:{},...o,valueSchema:a.create(s)}):a.create({...s,...o})}function Zo(e,t,r){return BC(e,t,r)}p();function cu({plugins:e,parser:t}){for(let{parsers:r}of e)if(r&&Object.prototype.hasOwnProperty.call(r,t))return r[t];throw new Ei(`Couldn't resolve parser "${t}". Parsers must be explicitly added to the standalone bundle.`)}async function jr(e,t){let r=cu(t),n=r.preprocess?r.preprocess(e,t):e,u;try{u=await r.parse(n,t,t)}catch(i){await _C(i,e)}return{text:n,ast:u}}async function _C(e,t){let{loc:r}=e;if(r){let{codeFrameColumns:n}=await Promise.resolve().then(()=>Ct(Mf(),1));throw e.codeFrame=n(t,r,{highlightCode:!0}),e.message+=`
|
|
52
|
-
`+e.codeFrame,e}throw e}var jf={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};function Tr(e,t={}){let r={...e},n=Nr({plugins:e.plugins,showUnreleased:!0,showDeprecated:!0}).options,u={...jf,...Object.fromEntries(n.filter(c=>c.default!==void 0).map(c=>[c.name,c.default]))};if(!r.parser){if(!r.filepath)(t.logger||console).warn("No parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred."),r.parser="babel";else if(r.parser=RC(r.filepath,r.plugins),!r.parser)throw new Ci(`No parser could be inferred for file: ${r.filepath}`)}let i=cu(Zo(r,[n.find(c=>c.name==="parser")],{passThrough:!0,logger:!1}));r.astFormat=i.astFormat,r.locEnd=i.locEnd,r.locStart=i.locStart;let s=OC(r);r.printer=s.printers[r.astFormat];let a=Object.fromEntries(n.filter(c=>c.pluginDefaults&&c.pluginDefaults[s.name]!==void 0).map(c=>[c.name,c.pluginDefaults[s.name]])),o={...u,...a};for(let[c,l]of Object.entries(o))(r[c]===null||r[c]===void 0)&&(r[c]=l);return r.parser==="json"&&(r.trailingComma="none"),Zo(r,n,{passThrough:Object.keys(jf),...t})}function OC(e){let{astFormat:t}=e;if(!t)throw new Error("getPlugin() requires astFormat to be set");let r=e.plugins.find(n=>n.printers&&n.printers[t]);if(!r)throw new Error(`Couldn't find plugin for AST format "${t}"`);return r}function RC(e,t){let r=sf.basename(e).toLowerCase(),u=Nr({plugins:t}).languages.filter(i=>i.since!==null).find(i=>i.extensions&&i.extensions.some(s=>r.endsWith(s))||i.filenames&&i.filenames.some(s=>s.toLowerCase()===r));return u&&u.parsers[0]}p();p();var $f=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),MC=e=>Object.keys(e).filter(t=>!$f.has(t));function jC(e){return e?t=>e(t,$f):MC}var En=jC;function $C(e,t){var a;let{printer:{massageAstNode:r,getVisitorKeys:n}}=t;if(!r)return e;let u=En(n),i=(a=r.ignoredProperties)!=null?a:new Set;return s(e);function s(o,c){if(!(o!==null&&typeof o=="object"))return o;if(Array.isArray(o))return o.map(D=>s(D,c)).filter(Boolean);let l={},f=new Set(u(o));for(let D in o)!Object.prototype.hasOwnProperty.call(o,D)||i.has(D)||(f.has(D)?l[D]=s(o[D],o):l[D]=o[D]);let m=r(o,l,c);if(m!==null)return m!=null?m:l}}var Vf=$C;p();p();p();var Ut=[],Dt=[],VC=typeof Uint8Array<"u"?Uint8Array:Array,rc=!1;function Gf(){rc=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,r=e.length;t<r;++t)Ut[t]=e[t],Dt[e.charCodeAt(t)]=t;Dt["-".charCodeAt(0)]=62,Dt["_".charCodeAt(0)]=63}function qC(e){rc||Gf();var t,r,n,u,i,s,a=e.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");i=e[a-2]==="="?2:e[a-1]==="="?1:0,s=new VC(a*3/4-i),n=i>0?a-4:a;var o=0;for(t=0,r=0;t<n;t+=4,r+=3)u=Dt[e.charCodeAt(t)]<<18|Dt[e.charCodeAt(t+1)]<<12|Dt[e.charCodeAt(t+2)]<<6|Dt[e.charCodeAt(t+3)],s[o++]=u>>16&255,s[o++]=u>>8&255,s[o++]=u&255;return i===2?(u=Dt[e.charCodeAt(t)]<<2|Dt[e.charCodeAt(t+1)]>>4,s[o++]=u&255):i===1&&(u=Dt[e.charCodeAt(t)]<<10|Dt[e.charCodeAt(t+1)]<<4|Dt[e.charCodeAt(t+2)]>>2,s[o++]=u>>8&255,s[o++]=u&255),s}function UC(e){return Ut[e>>18&63]+Ut[e>>12&63]+Ut[e>>6&63]+Ut[e&63]}function WC(e,t,r){for(var n,u=[],i=t;i<r;i+=3)n=(e[i]<<16)+(e[i+1]<<8)+e[i+2],u.push(UC(n));return u.join("")}function qf(e){rc||Gf();for(var t,r=e.length,n=r%3,u="",i=[],s=16383,a=0,o=r-n;a<o;a+=s)i.push(WC(e,a,a+s>o?o:a+s));return n===1?(t=e[r-1],u+=Ut[t>>2],u+=Ut[t<<4&63],u+="=="):n===2&&(t=(e[r-2]<<8)+e[r-1],u+=Ut[t>>10],u+=Ut[t>>4&63],u+=Ut[t<<2&63],u+="="),i.push(u),i.join("")}function ki(e,t,r,n,u){var i,s,a=u*8-n-1,o=(1<<a)-1,c=o>>1,l=-7,f=r?u-1:0,m=r?-1:1,D=e[t+f];for(f+=m,i=D&(1<<-l)-1,D>>=-l,l+=a;l>0;i=i*256+e[t+f],f+=m,l-=8);for(s=i&(1<<-l)-1,i>>=-l,l+=n;l>0;s=s*256+e[t+f],f+=m,l-=8);if(i===0)i=1-c;else{if(i===o)return s?NaN:(D?-1:1)*(1/0);s=s+Math.pow(2,n),i=i-c}return(D?-1:1)*s*Math.pow(2,i-n)}function Jf(e,t,r,n,u,i){var s,a,o,c=i*8-u-1,l=(1<<c)-1,f=l>>1,m=u===23?Math.pow(2,-24)-Math.pow(2,-77):0,D=n?0:i-1,y=n?1:-1,E=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(o=Math.pow(2,-s))<1&&(s--,o*=2),s+f>=1?t+=m/o:t+=m*Math.pow(2,1-f),t*o>=2&&(s++,o/=2),s+f>=l?(a=0,s=l):s+f>=1?(a=(t*o-1)*Math.pow(2,u),s=s+f):(a=t*Math.pow(2,f-1)*Math.pow(2,u),s=0));u>=8;e[r+D]=a&255,D+=y,a/=256,u-=8);for(s=s<<u|a,c+=u;c>0;e[r+D]=s&255,D+=y,s/=256,c-=8);e[r+D-y]|=E*128}var GC={}.toString,Hf=Array.isArray||function(e){return GC.call(e)=="[object Array]"};var JC=50;P.TYPED_ARRAY_SUPPORT=globalThis.TYPED_ARRAY_SUPPORT!==void 0?globalThis.TYPED_ARRAY_SUPPORT:!0;var Rv=Pi();function Pi(){return P.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function ir(e,t){if(Pi()<t)throw new RangeError("Invalid typed array length");return P.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=P.prototype):(e===null&&(e=new P(t)),e.length=t),e}function P(e,t,r){if(!P.TYPED_ARRAY_SUPPORT&&!(this instanceof P))return new P(e,t,r);if(typeof e=="number"){if(typeof t=="string")throw new Error("If encoding is specified then the first argument must be a string");return nc(this,e)}return Yf(this,e,t,r)}P.poolSize=8192;P._augment=function(e){return e.__proto__=P.prototype,e};function Yf(e,t,r,n){if(typeof t=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer?KC(e,t,r,n):typeof t=="string"?YC(e,t,r):XC(e,t)}P.from=function(e,t,r){return Yf(null,e,t,r)};P.TYPED_ARRAY_SUPPORT&&(P.prototype.__proto__=Uint8Array.prototype,P.__proto__=Uint8Array);function Kf(e){if(typeof e!="number")throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function HC(e,t,r,n){return Kf(t),t<=0?ir(e,t):r!==void 0?typeof n=="string"?ir(e,t).fill(r,n):ir(e,t).fill(r):ir(e,t)}P.alloc=function(e,t,r){return HC(null,e,t,r)};function nc(e,t){if(Kf(t),e=ir(e,t<0?0:uc(t)|0),!P.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}P.allocUnsafe=function(e){return nc(null,e)};P.allocUnsafeSlow=function(e){return nc(null,e)};function YC(e,t,r){if((typeof r!="string"||r==="")&&(r="utf8"),!P.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=Xf(t,r)|0;e=ir(e,n);var u=e.write(t,r);return u!==n&&(e=e.slice(0,u)),e}function tc(e,t){var r=t.length<0?0:uc(t.length)|0;e=ir(e,r);for(var n=0;n<r;n+=1)e[n]=t[n]&255;return e}function KC(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");return r===void 0&&n===void 0?t=new Uint8Array(t):n===void 0?t=new Uint8Array(t,r):t=new Uint8Array(t,r,n),P.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=P.prototype):e=tc(e,t),e}function XC(e,t){if(Wt(t)){var r=uc(t.length)|0;return e=ir(e,r),e.length===0||t.copy(e,0,0,r),e}if(t){if(typeof ArrayBuffer<"u"&&t.buffer instanceof ArrayBuffer||"length"in t)return typeof t.length!="number"||dA(t.length)?ir(e,0):tc(e,t);if(t.type==="Buffer"&&Hf(t.data))return tc(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function uc(e){if(e>=Pi())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Pi().toString(16)+" bytes");return e|0}P.isBuffer=Vr;function Wt(e){return!!(e!=null&&e._isBuffer)}P.compare=function(t,r){if(!Wt(t)||!Wt(r))throw new TypeError("Arguments must be Buffers");if(t===r)return 0;for(var n=t.length,u=r.length,i=0,s=Math.min(n,u);i<s;++i)if(t[i]!==r[i]){n=t[i],u=r[i];break}return n<u?-1:u<n?1:0};P.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};P.concat=function(t,r){if(!Hf(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return P.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<t.length;++n)r+=t[n].length;var u=P.allocUnsafe(r),i=0;for(n=0;n<t.length;++n){var s=t[n];if(!Wt(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(u,i),i+=s.length}return u};function Xf(e,t){if(Wt(e))return e.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;typeof e!="string"&&(e=""+e);var r=e.length;if(r===0)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return Ii(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return nm(e).length;default:if(n)return Ii(e).length;t=(""+t).toLowerCase(),n=!0}}P.byteLength=Xf;function zC(e,t,r){var n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return aA(this,t,r);case"utf8":case"utf-8":return Zf(this,t,r);case"ascii":return iA(this,t,r);case"latin1":case"binary":return sA(this,t,r);case"base64":return nA(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return oA(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}P.prototype._isBuffer=!0;function $r(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}P.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<t;r+=2)$r(this,r,r+1);return this};P.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<t;r+=4)$r(this,r,r+3),$r(this,r+1,r+2);return this};P.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<t;r+=8)$r(this,r,r+7),$r(this,r+1,r+6),$r(this,r+2,r+5),$r(this,r+3,r+4);return this};P.prototype.toString=function(){var t=this.length|0;return t===0?"":arguments.length===0?Zf(this,0,t):zC.apply(this,arguments)};P.prototype.equals=function(t){if(!Wt(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:P.compare(this,t)===0};P.prototype.inspect=function(){var t="",r=JC;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"};P.prototype.compare=function(t,r,n,u,i){if(!Wt(t))throw new TypeError("Argument must be a Buffer");if(r===void 0&&(r=0),n===void 0&&(n=t?t.length:0),u===void 0&&(u=0),i===void 0&&(i=this.length),r<0||n>t.length||u<0||i>this.length)throw new RangeError("out of range index");if(u>=i&&r>=n)return 0;if(u>=i)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,u>>>=0,i>>>=0,this===t)return 0;for(var s=i-u,a=n-r,o=Math.min(s,a),c=this.slice(u,i),l=t.slice(r,n),f=0;f<o;++f)if(c[f]!==l[f]){s=c[f],a=l[f];break}return s<a?-1:a<s?1:0};function zf(e,t,r,n,u){if(e.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=u?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(u)return-1;r=e.length-1}else if(r<0)if(u)r=0;else return-1;if(typeof t=="string"&&(t=P.from(t,n)),Wt(t))return t.length===0?-1:Uf(e,t,r,n,u);if(typeof t=="number")return t=t&255,P.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?u?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):Uf(e,[t],r,n,u);throw new TypeError("val must be string, number or Buffer")}function Uf(e,t,r,n,u){var i=1,s=e.length,a=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||t.length<2)return-1;i=2,s/=2,a/=2,r/=2}function o(D,y){return i===1?D[y]:D.readUInt16BE(y*i)}var c;if(u){var l=-1;for(c=r;c<s;c++)if(o(e,c)===o(t,l===-1?0:c-l)){if(l===-1&&(l=c),c-l+1===a)return l*i}else l!==-1&&(c-=c-l),l=-1}else for(r+a>s&&(r=s-a),c=r;c>=0;c--){for(var f=!0,m=0;m<a;m++)if(o(e,c+m)!==o(t,m)){f=!1;break}if(f)return c}return-1}P.prototype.includes=function(t,r,n){return this.indexOf(t,r,n)!==-1};P.prototype.indexOf=function(t,r,n){return zf(this,t,r,n,!0)};P.prototype.lastIndexOf=function(t,r,n){return zf(this,t,r,n,!1)};function QC(e,t,r,n){r=Number(r)||0;var u=e.length-r;n?(n=Number(n),n>u&&(n=u)):n=u;var i=t.length;if(i%2!==0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var s=0;s<n;++s){var a=parseInt(t.substr(s*2,2),16);if(isNaN(a))return s;e[r+s]=a}return s}function ZC(e,t,r,n){return _i(Ii(t,e.length-r),e,r,n)}function Qf(e,t,r,n){return _i(mA(t),e,r,n)}function eA(e,t,r,n){return Qf(e,t,r,n)}function tA(e,t,r,n){return _i(nm(t),e,r,n)}function rA(e,t,r,n){return _i(DA(t,e.length-r),e,r,n)}P.prototype.write=function(t,r,n,u){if(r===void 0)u="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")u=r,n=this.length,r=0;else if(isFinite(r))r=r|0,isFinite(n)?(n=n|0,u===void 0&&(u="utf8")):(u=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i=this.length-r;if((n===void 0||n>i)&&(n=i),t.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");u||(u="utf8");for(var s=!1;;)switch(u){case"hex":return QC(this,t,r,n);case"utf8":case"utf-8":return ZC(this,t,r,n);case"ascii":return Qf(this,t,r,n);case"latin1":case"binary":return eA(this,t,r,n);case"base64":return tA(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return rA(this,t,r,n);default:if(s)throw new TypeError("Unknown encoding: "+u);u=(""+u).toLowerCase(),s=!0}};P.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function nA(e,t,r){return t===0&&r===e.length?qf(e):qf(e.slice(t,r))}function Zf(e,t,r){r=Math.min(e.length,r);for(var n=[],u=t;u<r;){var i=e[u],s=null,a=i>239?4:i>223?3:i>191?2:1;if(u+a<=r){var o,c,l,f;switch(a){case 1:i<128&&(s=i);break;case 2:o=e[u+1],(o&192)===128&&(f=(i&31)<<6|o&63,f>127&&(s=f));break;case 3:o=e[u+1],c=e[u+2],(o&192)===128&&(c&192)===128&&(f=(i&15)<<12|(o&63)<<6|c&63,f>2047&&(f<55296||f>57343)&&(s=f));break;case 4:o=e[u+1],c=e[u+2],l=e[u+3],(o&192)===128&&(c&192)===128&&(l&192)===128&&(f=(i&15)<<18|(o&63)<<12|(c&63)<<6|l&63,f>65535&&f<1114112&&(s=f))}}s===null?(s=65533,a=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|s&1023),n.push(s),u+=a}return uA(n)}var Wf=4096;function uA(e){var t=e.length;if(t<=Wf)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=Wf));return r}function iA(e,t,r){var n="";r=Math.min(e.length,r);for(var u=t;u<r;++u)n+=String.fromCharCode(e[u]&127);return n}function sA(e,t,r){var n="";r=Math.min(e.length,r);for(var u=t;u<r;++u)n+=String.fromCharCode(e[u]);return n}function aA(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var u="",i=t;i<r;++i)u+=fA(e[i]);return u}function oA(e,t,r){for(var n=e.slice(t,r),u="",i=0;i<n.length;i+=2)u+=String.fromCharCode(n[i]+n[i+1]*256);return u}P.prototype.slice=function(t,r){var n=this.length;t=~~t,r=r===void 0?n:~~r,t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<t&&(r=t);var u;if(P.TYPED_ARRAY_SUPPORT)u=this.subarray(t,r),u.__proto__=P.prototype;else{var i=r-t;u=new P(i,void 0);for(var s=0;s<i;++s)u[s]=this[s+t]}return u};function xe(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}P.prototype.readUIntLE=function(t,r,n){t=t|0,r=r|0,n||xe(t,r,this.length);for(var u=this[t],i=1,s=0;++s<r&&(i*=256);)u+=this[t+s]*i;return u};P.prototype.readUIntBE=function(t,r,n){t=t|0,r=r|0,n||xe(t,r,this.length);for(var u=this[t+--r],i=1;r>0&&(i*=256);)u+=this[t+--r]*i;return u};P.prototype.readUInt8=function(t,r){return r||xe(t,1,this.length),this[t]};P.prototype.readUInt16LE=function(t,r){return r||xe(t,2,this.length),this[t]|this[t+1]<<8};P.prototype.readUInt16BE=function(t,r){return r||xe(t,2,this.length),this[t]<<8|this[t+1]};P.prototype.readUInt32LE=function(t,r){return r||xe(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};P.prototype.readUInt32BE=function(t,r){return r||xe(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};P.prototype.readIntLE=function(t,r,n){t=t|0,r=r|0,n||xe(t,r,this.length);for(var u=this[t],i=1,s=0;++s<r&&(i*=256);)u+=this[t+s]*i;return i*=128,u>=i&&(u-=Math.pow(2,8*r)),u};P.prototype.readIntBE=function(t,r,n){t=t|0,r=r|0,n||xe(t,r,this.length);for(var u=r,i=1,s=this[t+--u];u>0&&(i*=256);)s+=this[t+--u]*i;return i*=128,s>=i&&(s-=Math.pow(2,8*r)),s};P.prototype.readInt8=function(t,r){return r||xe(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};P.prototype.readInt16LE=function(t,r){r||xe(t,2,this.length);var n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n};P.prototype.readInt16BE=function(t,r){r||xe(t,2,this.length);var n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n};P.prototype.readInt32LE=function(t,r){return r||xe(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};P.prototype.readInt32BE=function(t,r){return r||xe(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};P.prototype.readFloatLE=function(t,r){return r||xe(t,4,this.length),ki(this,t,!0,23,4)};P.prototype.readFloatBE=function(t,r){return r||xe(t,4,this.length),ki(this,t,!1,23,4)};P.prototype.readDoubleLE=function(t,r){return r||xe(t,8,this.length),ki(this,t,!0,52,8)};P.prototype.readDoubleBE=function(t,r){return r||xe(t,8,this.length),ki(this,t,!1,52,8)};function Ge(e,t,r,n,u,i){if(!Wt(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>u||t<i)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}P.prototype.writeUIntLE=function(t,r,n,u){if(t=+t,r=r|0,n=n|0,!u){var i=Math.pow(2,8*n)-1;Ge(this,t,r,n,i,0)}var s=1,a=0;for(this[r]=t&255;++a<n&&(s*=256);)this[r+a]=t/s&255;return r+n};P.prototype.writeUIntBE=function(t,r,n,u){if(t=+t,r=r|0,n=n|0,!u){var i=Math.pow(2,8*n)-1;Ge(this,t,r,n,i,0)}var s=n-1,a=1;for(this[r+s]=t&255;--s>=0&&(a*=256);)this[r+s]=t/a&255;return r+n};P.prototype.writeUInt8=function(t,r,n){return t=+t,r=r|0,n||Ge(this,t,r,1,255,0),P.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[r]=t&255,r+1};function Li(e,t,r,n){t<0&&(t=65535+t+1);for(var u=0,i=Math.min(e.length-r,2);u<i;++u)e[r+u]=(t&255<<8*(n?u:1-u))>>>(n?u:1-u)*8}P.prototype.writeUInt16LE=function(t,r,n){return t=+t,r=r|0,n||Ge(this,t,r,2,65535,0),P.TYPED_ARRAY_SUPPORT?(this[r]=t&255,this[r+1]=t>>>8):Li(this,t,r,!0),r+2};P.prototype.writeUInt16BE=function(t,r,n){return t=+t,r=r|0,n||Ge(this,t,r,2,65535,0),P.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=t&255):Li(this,t,r,!1),r+2};function Ni(e,t,r,n){t<0&&(t=4294967295+t+1);for(var u=0,i=Math.min(e.length-r,4);u<i;++u)e[r+u]=t>>>(n?u:3-u)*8&255}P.prototype.writeUInt32LE=function(t,r,n){return t=+t,r=r|0,n||Ge(this,t,r,4,4294967295,0),P.TYPED_ARRAY_SUPPORT?(this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255):Ni(this,t,r,!0),r+4};P.prototype.writeUInt32BE=function(t,r,n){return t=+t,r=r|0,n||Ge(this,t,r,4,4294967295,0),P.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255):Ni(this,t,r,!1),r+4};P.prototype.writeIntLE=function(t,r,n,u){if(t=+t,r=r|0,!u){var i=Math.pow(2,8*n-1);Ge(this,t,r,n,i-1,-i)}var s=0,a=1,o=0;for(this[r]=t&255;++s<n&&(a*=256);)t<0&&o===0&&this[r+s-1]!==0&&(o=1),this[r+s]=(t/a>>0)-o&255;return r+n};P.prototype.writeIntBE=function(t,r,n,u){if(t=+t,r=r|0,!u){var i=Math.pow(2,8*n-1);Ge(this,t,r,n,i-1,-i)}var s=n-1,a=1,o=0;for(this[r+s]=t&255;--s>=0&&(a*=256);)t<0&&o===0&&this[r+s+1]!==0&&(o=1),this[r+s]=(t/a>>0)-o&255;return r+n};P.prototype.writeInt8=function(t,r,n){return t=+t,r=r|0,n||Ge(this,t,r,1,127,-128),P.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[r]=t&255,r+1};P.prototype.writeInt16LE=function(t,r,n){return t=+t,r=r|0,n||Ge(this,t,r,2,32767,-32768),P.TYPED_ARRAY_SUPPORT?(this[r]=t&255,this[r+1]=t>>>8):Li(this,t,r,!0),r+2};P.prototype.writeInt16BE=function(t,r,n){return t=+t,r=r|0,n||Ge(this,t,r,2,32767,-32768),P.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=t&255):Li(this,t,r,!1),r+2};P.prototype.writeInt32LE=function(t,r,n){return t=+t,r=r|0,n||Ge(this,t,r,4,2147483647,-2147483648),P.TYPED_ARRAY_SUPPORT?(this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24):Ni(this,t,r,!0),r+4};P.prototype.writeInt32BE=function(t,r,n){return t=+t,r=r|0,n||Ge(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),P.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255):Ni(this,t,r,!1),r+4};function em(e,t,r,n,u,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function tm(e,t,r,n,u){return u||em(e,t,r,4),Jf(e,t,r,n,23,4),r+4}P.prototype.writeFloatLE=function(t,r,n){return tm(this,t,r,!0,n)};P.prototype.writeFloatBE=function(t,r,n){return tm(this,t,r,!1,n)};function rm(e,t,r,n,u){return u||em(e,t,r,8),Jf(e,t,r,n,52,8),r+8}P.prototype.writeDoubleLE=function(t,r,n){return rm(this,t,r,!0,n)};P.prototype.writeDoubleBE=function(t,r,n){return rm(this,t,r,!1,n)};P.prototype.copy=function(t,r,n,u){if(n||(n=0),!u&&u!==0&&(u=this.length),r>=t.length&&(r=t.length),r||(r=0),u>0&&u<n&&(u=n),u===n||t.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(u<0)throw new RangeError("sourceEnd out of bounds");u>this.length&&(u=this.length),t.length-r<u-n&&(u=t.length-r+n);var i=u-n,s;if(this===t&&n<r&&r<u)for(s=i-1;s>=0;--s)t[s+r]=this[s+n];else if(i<1e3||!P.TYPED_ARRAY_SUPPORT)for(s=0;s<i;++s)t[s+r]=this[s+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+i),r);return i};P.prototype.fill=function(t,r,n,u){if(typeof t=="string"){if(typeof r=="string"?(u=r,r=0,n=this.length):typeof n=="string"&&(u=n,n=this.length),t.length===1){var i=t.charCodeAt(0);i<256&&(t=i)}if(u!==void 0&&typeof u!="string")throw new TypeError("encoding must be a string");if(typeof u=="string"&&!P.isEncoding(u))throw new TypeError("Unknown encoding: "+u)}else typeof t=="number"&&(t=t&255);if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,t||(t=0);var s;if(typeof t=="number")for(s=r;s<n;++s)this[s]=t;else{var a=Wt(t)?t:Ii(new P(t,u).toString()),o=a.length;for(s=0;s<n-r;++s)this[s+r]=a[s%o]}return this};var cA=/[^+\/0-9A-Za-z-_]/g;function lA(e){if(e=pA(e).replace(cA,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function pA(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function fA(e){return e<16?"0"+e.toString(16):e.toString(16)}function Ii(e,t){t=t||1/0;for(var r,n=e.length,u=null,i=[],s=0;s<n;++s){if(r=e.charCodeAt(s),r>55295&&r<57344){if(!u){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}else if(s+1===n){(t-=3)>-1&&i.push(239,191,189);continue}u=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),u=r;continue}r=(u-55296<<10|r-56320)+65536}else u&&(t-=3)>-1&&i.push(239,191,189);if(u=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return i}function mA(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function DA(e,t){for(var r,n,u,i=[],s=0;s<e.length&&!((t-=2)<0);++s)r=e.charCodeAt(s),n=r>>8,u=r%256,i.push(u),i.push(n);return i}function nm(e){return qC(lA(e))}function _i(e,t,r,n){for(var u=0;u<n&&!(u+r>=t.length||u>=e.length);++u)t[u+r]=e[u];return u}function dA(e){return e!==e}function Vr(e){return e!=null&&(!!e._isBuffer||um(e)||yA(e))}function um(e){return!!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function yA(e){return typeof e.readFloatLE=="function"&&typeof e.slice=="function"&&um(e.slice(0,0))}p();p();function gA(){throw new Error("setTimeout has not been defined")}function hA(){throw new Error("clearTimeout has not been defined")}var EA=gA,CA=hA;typeof globalThis.setTimeout=="function"&&(EA=setTimeout);typeof globalThis.clearTimeout=="function"&&(CA=clearTimeout);function AA(e,t){this.fun=e,this.array=t}AA.prototype.run=function(){this.fun.apply(null,this.array)};var lu=globalThis.performance||{},jv=lu.now||lu.mozNow||lu.msNow||lu.oNow||lu.webkitNow||function(){return new Date().getTime()};var $v=new Date;p();var ic;typeof Object.create=="function"?ic=function(t,r){t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:ic=function(t,r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t};var sc=ic;function br(e,t){var r={seen:[],stylize:xA};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),im(t)?r.showHidden=t:t&&PA(r,t),Cn(r.showHidden)&&(r.showHidden=!1),Cn(r.depth)&&(r.depth=2),Cn(r.colors)&&(r.colors=!1),Cn(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=FA),Oi(r,e,r.depth)}br.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};br.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function FA(e,t){var r=br.styles[t];return r?"\x1B["+br.colors[r][0]+"m"+e+"\x1B["+br.colors[r][1]+"m":e}function xA(e,t){return e}function SA(e){var t={};return e.forEach(function(r,n){t[r]=!0}),t}function Oi(e,t,r){if(e.customInspect&&t&&Fn(t.inspect)&&t.inspect!==br&&!(t.constructor&&t.constructor.prototype===t)){var n=t.inspect(r,e);return am(n)||(n=Oi(e,n,r)),n}var u=TA(e,t);if(u)return u;var i=Object.keys(t),s=SA(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(t)),pu(t)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return ac(t);if(i.length===0){if(Fn(t)){var a=t.name?": "+t.name:"";return e.stylize("[Function"+a+"]","special")}if(An(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(fu(t))return e.stylize(Date.prototype.toString.call(t),"date");if(pu(t))return ac(t)}var o="",c=!1,l=["{","}"];if(vA(t)&&(c=!0,l=["[","]"]),Fn(t)){var f=t.name?": "+t.name:"";o=" [Function"+f+"]"}if(An(t)&&(o=" "+RegExp.prototype.toString.call(t)),fu(t)&&(o=" "+Date.prototype.toUTCString.call(t)),pu(t)&&(o=" "+ac(t)),i.length===0&&(!c||t.length==0))return l[0]+o+l[1];if(r<0)return An(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var m;return c?m=bA(e,t,r,s,i):m=i.map(function(D){return oc(e,t,r,s,D,c)}),e.seen.pop(),BA(m,o,l)}function TA(e,t){if(Cn(t))return e.stylize("undefined","undefined");if(am(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(wA(t))return e.stylize(""+t,"number");if(im(t))return e.stylize(""+t,"boolean");if(sm(t))return e.stylize("null","null")}function ac(e){return"["+Error.prototype.toString.call(e)+"]"}function bA(e,t,r,n,u){for(var i=[],s=0,a=t.length;s<a;++s)om(t,String(s))?i.push(oc(e,t,r,n,String(s),!0)):i.push("");return u.forEach(function(o){o.match(/^\d+$/)||i.push(oc(e,t,r,n,o,!0))}),i}function oc(e,t,r,n,u,i){var s,a,o;if(o=Object.getOwnPropertyDescriptor(t,u)||{value:t[u]},o.get?o.set?a=e.stylize("[Getter/Setter]","special"):a=e.stylize("[Getter]","special"):o.set&&(a=e.stylize("[Setter]","special")),om(n,u)||(s="["+u+"]"),a||(e.seen.indexOf(o.value)<0?(sm(r)?a=Oi(e,o.value,null):a=Oi(e,o.value,r-1),a.indexOf(`
|
|
53
|
-
`)>-1&&(i?a=a.split(`
|
|
54
|
-
`).map(function(c){return" "+c}).join(`
|
|
55
|
-
`).substr(2):a=`
|
|
56
|
-
`+a.split(`
|
|
57
|
-
`).map(function(c){return" "+c}).join(`
|
|
58
|
-
`))):a=e.stylize("[Circular]","special")),Cn(s)){if(i&&u.match(/^\d+$/))return a;s=JSON.stringify(""+u),s.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function BA(e,t,r){var n=0,u=e.reduce(function(i,s){return n++,s.indexOf(`
|
|
59
|
-
`)>=0&&n++,i+s.replace(/\u001b\[\d\d?m/g,"").length+1},0);return u>60?r[0]+(t===""?"":t+`
|
|
60
|
-
`)+" "+e.join(`,
|
|
61
|
-
`)+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}function vA(e){return Array.isArray(e)}function im(e){return typeof e=="boolean"}function sm(e){return e===null}function wA(e){return typeof e=="number"}function am(e){return typeof e=="string"}function Cn(e){return e===void 0}function An(e){return Ri(e)&&lc(e)==="[object RegExp]"}function Ri(e){return typeof e=="object"&&e!==null}function fu(e){return Ri(e)&&lc(e)==="[object Date]"}function pu(e){return Ri(e)&&(lc(e)==="[object Error]"||e instanceof Error)}function Fn(e){return typeof e=="function"}function cc(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}function lc(e){return Object.prototype.toString.call(e)}function PA(e,t){if(!t||!Ri(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}function om(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function cm(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,u=0,i=Math.min(r,n);u<i;++u)if(e[u]!==t[u]){r=e[u],n=t[u];break}return r<n?-1:n<r?1:0}var IA=Object.prototype.hasOwnProperty,lm=Object.keys||function(e){var t=[];for(var r in e)IA.call(e,r)&&t.push(r);return t},pm=Array.prototype.slice,pc;function hm(){return typeof pc<"u"?pc:pc=function(){return function(){}.name==="foo"}()}function fm(e){return Object.prototype.toString.call(e)}function mm(e){return Vr(e)||typeof globalThis.ArrayBuffer!="function"?!1:typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e?!!(e instanceof DataView||e.buffer&&e.buffer instanceof ArrayBuffer):!1}function Re(e,t){e||Je(e,!0,t,"==",mc)}var He=Re,kA=/\s*function\s+([^\(\s]*)\s*/;function Em(e){if(!!Fn(e)){if(hm())return e.name;var t=e.toString(),r=t.match(kA);return r&&r[1]}}Re.AssertionError=fc;function fc(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=LA(this),this.generatedMessage=!0);var t=e.stackStartFunction||Je;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var r=new Error;if(r.stack){var n=r.stack,u=Em(t),i=n.indexOf(`
|
|
62
|
-
`+u);if(i>=0){var s=n.indexOf(`
|
|
63
|
-
`,i+1);n=n.substring(s+1)}this.stack=n}}}sc(fc,Error);function Dm(e,t){return typeof e=="string"?e.length<t?e:e.slice(0,t):e}function dm(e){if(hm()||!Fn(e))return br(e);var t=Em(e),r=t?": "+t:"";return"[Function"+r+"]"}function LA(e){return Dm(dm(e.actual),128)+" "+e.operator+" "+Dm(dm(e.expected),128)}function Je(e,t,r,n,u){throw new fc({message:r,actual:e,expected:t,operator:n,stackStartFunction:u})}Re.fail=Je;function mc(e,t){e||Je(e,!0,t,"==",mc)}Re.ok=mc;Re.equal=Cm;function Cm(e,t,r){e!=t&&Je(e,t,r,"==",Cm)}Re.notEqual=Am;function Am(e,t,r){e==t&&Je(e,t,r,"!=",Am)}Re.deepEqual=Fm;function Fm(e,t,r){xn(e,t,!1)||Je(e,t,r,"deepEqual",Fm)}Re.deepStrictEqual=xm;function xm(e,t,r){xn(e,t,!0)||Je(e,t,r,"deepStrictEqual",xm)}function xn(e,t,r,n){if(e===t)return!0;if(Vr(e)&&Vr(t))return cm(e,t)===0;if(fu(e)&&fu(t))return e.getTime()===t.getTime();if(An(e)&&An(t))return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if((e===null||typeof e!="object")&&(t===null||typeof t!="object"))return r?e===t:e==t;if(mm(e)&&mm(t)&&fm(e)===fm(t)&&!(e instanceof Float32Array||e instanceof Float64Array))return cm(new Uint8Array(e.buffer),new Uint8Array(t.buffer))===0;if(Vr(e)!==Vr(t))return!1;n=n||{actual:[],expected:[]};var u=n.actual.indexOf(e);return u!==-1&&u===n.expected.indexOf(t)?!0:(n.actual.push(e),n.expected.push(t),NA(e,t,r,n))}function ym(e){return Object.prototype.toString.call(e)=="[object Arguments]"}function NA(e,t,r,n){if(e==null||t===null||t===void 0)return!1;if(cc(e)||cc(t))return e===t;if(r&&Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;var u=ym(e),i=ym(t);if(u&&!i||!u&&i)return!1;if(u)return e=pm.call(e),t=pm.call(t),xn(e,t,r);var s=lm(e),a=lm(t),o,c;if(s.length!==a.length)return!1;for(s.sort(),a.sort(),c=s.length-1;c>=0;c--)if(s[c]!==a[c])return!1;for(c=s.length-1;c>=0;c--)if(o=s[c],!xn(e[o],t[o],r,n))return!1;return!0}Re.notDeepEqual=Sm;function Sm(e,t,r){xn(e,t,!1)&&Je(e,t,r,"notDeepEqual",Sm)}Re.notDeepStrictEqual=Tm;function Tm(e,t,r){xn(e,t,!0)&&Je(e,t,r,"notDeepStrictEqual",Tm)}Re.strictEqual=bm;function bm(e,t,r){e!==t&&Je(e,t,r,"===",bm)}Re.notStrictEqual=Bm;function Bm(e,t,r){e===t&&Je(e,t,r,"!==",Bm)}function gm(e,t){if(!e||!t)return!1;if(Object.prototype.toString.call(t)=="[object RegExp]")return t.test(e);try{if(e instanceof t)return!0}catch{}return Error.isPrototypeOf(t)?!1:t.call({},e)===!0}function _A(e){var t;try{e()}catch(r){t=r}return t}function vm(e,t,r,n){var u;if(typeof t!="function")throw new TypeError('"block" argument must be a function');typeof r=="string"&&(n=r,r=null),u=_A(t),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),e&&!u&&Je(u,r,"Missing expected exception"+n);var i=typeof n=="string",s=!e&&pu(u),a=!e&&u&&!r;if((s&&i&&gm(u,r)||a)&&Je(u,r,"Got unwanted exception"+n),e&&u&&r&&!gm(u,r)||!e&&u)throw u}Re.throws=OA;function OA(e,t,r){vm(!0,e,t,r)}Re.doesNotThrow=RA;function RA(e,t,r){vm(!1,e,t,r)}Re.ifError=MA;function MA(e){if(e)throw e}var Dc=new WeakMap;function Mi(e,t){var o;if(Dc.has(e))return Dc.get(e);let{printer:{getCommentChildNodes:r,canAttachComment:n,getVisitorKeys:u},locStart:i,locEnd:s}=t;if(!n)return[];let a=((o=r==null?void 0:r(e,t))!=null?o:En(u)(e).flatMap(c=>e[c])).flatMap(c=>c!==null&&typeof c=="object"?n(c)?c:Mi(c,t):[]);return a.sort((c,l)=>i(c)-i(l)||s(c)-s(l)),Dc.set(e,a),a}function Pm(e,t,r,n){let{locStart:u,locEnd:i}=r,s=u(t),a=i(t),o=Mi(e,r),c,l,f=0,m=o.length;for(;f<m;){let D=f+m>>1,y=o[D],E=u(y),C=i(y);if(E<=s&&a<=C)return Pm(y,t,r,y);if(C<=s){c=y,f=D+1;continue}if(a<=E){l=y,m=D;continue}throw new Error("Comment location overlaps with node location")}if(n&&n.type==="TemplateLiteral"){let{quasis:D}=n,y=yc(D,t,r);c&&yc(D,c,r)!==y&&(c=null),l&&yc(D,l,r)!==y&&(l=null)}return{enclosingNode:n,precedingNode:c,followingNode:l}}var dc=()=>!1;function ji(e,t,r,n){if(!O(e)||!n.printer.canAttachComment)return;let u=[],{locStart:i,locEnd:s,printer:{handleComments:a={}}}=n,{avoidAstMutation:o,ownLine:c=dc,endOfLine:l=dc,remaining:f=dc}=a,m=e.map((D,y)=>({...Pm(t,D,n),comment:D,text:r,options:n,ast:t,isLastComment:e.length-1===y}));for(let[D,y]of m.entries()){let{comment:E,precedingNode:C,enclosingNode:T,followingNode:b,text:S,options:v,ast:w,isLastComment:j}=y;if(v.parser==="json"||v.parser==="json5"||v.parser==="__js_expression"||v.parser==="__vue_expression"||v.parser==="__vue_ts_expression"){if(i(E)-i(w)<=0){ue(w,E);continue}if(s(E)-s(w)>=0){re(w,E);continue}}let q;if(o?q=[y]:(E.enclosingNode=T,E.precedingNode=C,E.followingNode=b,q=[E,S,v,w,j]),jA(S,v,m,D))E.placement="ownLine",c(...q)||(b?ue(b,E):C?re(C,E):T?fe(T,E):fe(w,E));else if($A(S,v,m,D))E.placement="endOfLine",l(...q)||(C?re(C,E):b?ue(b,E):T?fe(T,E):fe(w,E));else if(E.placement="remaining",!f(...q))if(C&&b){let K=u.length;K>0&&u[K-1].followingNode!==b&&wm(u,S,v),u.push(y)}else C?re(C,E):b?ue(b,E):T?fe(T,E):fe(w,E)}if(wm(u,r,n),!o)for(let D of e)delete D.precedingNode,delete D.enclosingNode,delete D.followingNode}var Im=e=>!/[\S\n\u2028\u2029]/.test(e);function jA(e,t,r,n){let{comment:u,precedingNode:i}=r[n],{locStart:s,locEnd:a}=t,o=s(u);if(i)for(let c=n-1;c>=0;c--){let{comment:l,precedingNode:f}=r[c];if(f!==i||!Im(e.slice(a(l),o)))break;o=s(l)}return ee(e,o,{backwards:!0})}function $A(e,t,r,n){let{comment:u,followingNode:i}=r[n],{locStart:s,locEnd:a}=t,o=a(u);if(i)for(let c=n+1;c<r.length;c++){let{comment:l,followingNode:f}=r[c];if(f!==i||!Im(e.slice(o,s(l))))break;o=a(l)}return ee(e,o)}function wm(e,t,r){let n=e.length;if(n===0)return;let{precedingNode:u,followingNode:i,enclosingNode:s}=e[0],a=r.printer.getGapRegex&&r.printer.getGapRegex(s)||/^[\s(]*$/,o=r.locStart(i),c;for(c=n;c>0;--c){let{comment:l,precedingNode:f,followingNode:m}=e[c-1];He.strictEqual(f,u),He.strictEqual(m,i);let D=t.slice(r.locEnd(l),o);if(a.test(D))o=r.locStart(l);else break}for(let[l,{comment:f}]of e.entries())l<c?re(u,f):ue(i,f);for(let l of[u,i])l.comments&&l.comments.length>1&&l.comments.sort((f,m)=>r.locStart(f)-r.locStart(m));e.length=0}function gc(e,t){let r=e.getValue();return r.printed=!0,t.printer.printComment(e,t)}function yc(e,t,r){let n=r.locStart(t)-1;for(let u=1;u<e.length;++u)if(n<r.locStart(e[u]))return u-1;return 0}function VA(e,t){let r=e.getValue(),n=[gc(e,t)],{printer:u,originalText:i,locStart:s,locEnd:a}=t;if(u.isBlockComment&&u.isBlockComment(r)){let l=ee(i,a(r))?ee(i,s(r),{backwards:!0})?d:x:" ";n.push(l)}else n.push(d);let c=xt(i,mt(i,a(r)));return c!==!1&&ee(i,c)&&n.push(d),n}function qA(e,t){let r=e.getValue(),n=gc(e,t),{printer:u,originalText:i,locStart:s}=t,a=u.isBlockComment&&u.isBlockComment(r);if(ee(i,s(r),{backwards:!0})){let c=yn(i,r,s);return on([d,c?d:"",n])}let o=[" ",n];return a||(o=[on(o),te]),o}function Y(e,t,r,n){let u=[],i=e.getValue();return!i||!i.comments||(e.each(()=>{let s=e.getValue();!s.leading&&!s.trailing&&(!n||n(s))&&u.push(gc(e,t))},"comments"),u.length===0)?"":r?B(d,u):F([d,B(d,u)])}function hc(e,t,r){let n=e.getValue();if(!n)return{};let u=n.comments||[];r&&(u=u.filter(o=>!r.has(o)));let i=n===t.cursorNode;if(u.length===0){let o=i?Zt:"";return{leading:o,trailing:o}}let s=[],a=[];return e.each(()=>{let o=e.getValue();if(r&&r.has(o))return;let{leading:c,trailing:l}=o;c?s.push(VA(e,t)):l&&a.push(qA(e,t))},"comments"),i&&(s.unshift(Zt),a.push(Zt)),{leading:s,trailing:a}}function Se(e,t,r,n){let{leading:u,trailing:i}=hc(e,r,n);return!u&&!i?t:[u,t,i]}function $i(e){if(!!e)for(let t of e){if(!t.printed)throw new Error('Comment "'+t.value.trim()+'" was not printed. Please report this error!');delete t.printed}}p();p();function km(e,t){let r=Lm(e.stack,t);return r===-1?null:e.stack[r]}function Lm(e,t){for(let r=e.length-1;r>=0;r-=2){let n=e[r];if(n&&!Array.isArray(n)&&--t<0)return r}return-1}var Ec=class{constructor(t){this.stack=[t]}getName(){let{stack:t}=this,{length:r}=t;return r>1?t[r-2]:null}getValue(){return I(this.stack)}getNode(t=0){return km(this,t)}getParentNode(t=0){return km(this,t+1)}call(t,...r){let{stack:n}=this,{length:u}=n,i=I(n);for(let s of r)i=i[s],n.push(s,i);try{return t(this)}finally{n.length=u}}callParent(t,r=0){let n=Lm(this.stack,r+1),u=this.stack.splice(n+1);try{return t(this)}finally{this.stack.push(...u)}}each(t,...r){let{stack:n}=this,{length:u}=n,i=I(n);for(let s of r)i=i[s],n.push(s,i);try{for(let s=0;s<i.length;++s)n.push(s,i[s]),t(this,s,i),n.length-=2}finally{n.length=u}}map(t,...r){let n=[];return this.each((u,i,s)=>{n[i]=t(u,i,s)},...r),n}match(...t){let r=this.stack.length-1,n=null,u=this.stack[r--];for(let i of t){if(u===void 0)return!1;let s=null;if(typeof n=="number"&&(s=n,n=this.stack[r--],u=this.stack[r--]),i&&!i(u,n,s))return!1;n=this.stack[r--],u=this.stack[r--]}return!0}findAncestor(t){let r=this.stack.length-1,n=null,u=this.stack[r--];for(;u;){let i=null;if(typeof n=="number"&&(i=n,n=this.stack[r--],u=this.stack[r--]),n!==null&&t(u,n,i))return u;n=this.stack[r--],u=this.stack[r--]}}},Nm=Ec;p();async function _m(e,t,r,n,u){let{embeddedLanguageFormatting:i,printer:{embed:s,hasPrettierIgnore:a=()=>!1,getVisitorKeys:o}}=r;if(!s||i!=="auto")return;if(s.length>2)throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/en/plugins.html#optional-embed");let c=En(o),l=[];D();let f=e.stack;for(let{print:y,node:E,pathStack:C}of l)try{e.stack=C;let T=await y(m,t,e,r);T&&u.set(E,T)}catch(T){if(globalThis.PRETTIER_DEBUG)throw T}e.stack=f;function m(y,E){return UA(y,E,r,n)}function D(){let y=e.getValue();if(y===null||typeof y!="object"||a(e))return;for(let C of c(y))Array.isArray(y[C])?e.each(D,C):e.call(D,C);let E=s(e,r);if(!!E){if(typeof E=="function"){l.push({print:E,node:y,pathStack:[...e.stack]});return}u.set(y,E)}}}async function UA(e,t,r,n){let u=Tr({...r,...t,parentParser:r.parser,originalText:e},{passThrough:!0}),i=await jr(e,u),{ast:s}=i;e=i.text;let a=s.comments;delete s.comments,ji(a,s,e,u),u[Symbol.for("comments")]=a||[],u[Symbol.for("tokens")]=s.tokens||[];let o=await n(s,u);return $i(a),Ka(o)}async function Rm(e,t,r=0){let{printer:n}=t;n.preprocess&&(e=await n.preprocess(e,t));let u=new Map,i=new Nm(e),s=new Map;await _m(i,o,t,Rm,s);let a=await Om(i,t,o,void 0,s);return r>0&&(a=Qn([d,a],r,t.tabWidth)),Ya(a),a;function o(l,f){return l===void 0||l===i?c(f):Array.isArray(l)?i.call(()=>c(f),...l):i.call(()=>c(f),l)}function c(l){let f=i.getValue(),m=f&&typeof f=="object"&&l===void 0;if(m&&u.has(f))return u.get(f);let D=Om(i,t,o,l,s);return m&&u.set(f,D),D}}function WA(e,t){let{originalText:r,[Symbol.for("comments")]:n,locStart:u,locEnd:i}=t,s=u(e),a=i(e),o=new Set;for(let c of n)u(c)>=s&&i(c)<=a&&(c.printed=!0,o.add(c));return{doc:r.slice(s,a),printedComments:o}}function Om(e,t,r,n,u){let i=e.getValue(),{printer:s}=t,a,o;return s.hasPrettierIgnore&&s.hasPrettierIgnore(e)?{doc:a,printedComments:o}=WA(i,t):u.has(i)?a=u.get(i):a=s.print(e,t,r,n),(!s.willPrintOwnComments||!s.willPrintOwnComments(e,t))&&(a=Se(e,a,t,o)),a}var Vi=Rm;p();var GA=({parser:e})=>e==="json"||e==="json5"||e==="json-stringify";function JA(e,t){let r=[e.node,...e.parentNodes],n=new Set([t.node,...t.parentNodes]);return r.find(u=>$m.has(u.type)&&n.has(u))}function Mm(e){let t=e.length-1;for(;;){let r=e[t];if(r&&(r.type==="Program"||r.type==="File"))t--;else break}return e.slice(0,t+1)}function HA(e,t,{locStart:r,locEnd:n}){let u=e.node,i=t.node;if(u===i)return{startNode:u,endNode:i};let s=r(e.node);for(let o of Mm(t.parentNodes))if(r(o)>=s)i=o;else break;let a=n(t.node);for(let o of Mm(e.parentNodes)){if(n(o)<=a)u=o;else break;if(u===i)break}return{startNode:u,endNode:i}}function mu(e,t,r,n,u=[],i){let{locStart:s,locEnd:a}=r,o=s(e),c=a(e);if(!(t>c||t<o||i==="rangeEnd"&&t===o||i==="rangeStart"&&t===c)){for(let l of Mi(e,r)){let f=mu(l,t,r,n,[e,...u],i);if(f)return f}if(!n||n(e,u[0]))return{node:e,parentNodes:u}}}function YA(e,t){return t!=="DeclareExportDeclaration"&&e!=="TypeParameterDeclaration"&&(e==="Directive"||e==="TypeAlias"||e==="TSExportAssignment"||e.startsWith("Declare")||e.startsWith("TSDeclare")||e.endsWith("Statement")||e.endsWith("Declaration"))}var $m=new Set(["ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","UnaryExpression","TemplateLiteral"]),KA=new Set(["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"]);function jm(e,t,r){if(!t)return!1;switch(e.parser){case"flow":case"babel":case"babel-flow":case"babel-ts":case"typescript":case"acorn":case"espree":case"meriyah":case"__babel_estree":return YA(t.type,r&&r.type);case"json":case"json5":case"json-stringify":return $m.has(t.type);case"graphql":return KA.has(t.kind);case"vue":return t.tag!=="root"}return!1}function Vm(e,t,r){let{rangeStart:n,rangeEnd:u,locStart:i,locEnd:s}=t;He.ok(u>n);let a=e.slice(n,u).search(/\S/),o=a===-1;if(!o)for(n+=a;u>n&&!/\S/.test(e[u-1]);--u);let c=mu(r,n,t,(D,y)=>jm(t,D,y),[],"rangeStart"),l=o?c:mu(r,u,t,D=>jm(t,D),[],"rangeEnd");if(!c||!l)return{rangeStart:0,rangeEnd:0};let f,m;if(GA(t)){let D=JA(c,l);f=D,m=D}else({startNode:f,endNode:m}=HA(c,l,t));return{rangeStart:Math.min(i(f),i(m)),rangeEnd:Math.max(s(f),s(m))}}var Hm="\uFEFF",qm=Symbol("cursor");function Ym(e,t,r){let n=t.comments;return n&&(delete t.comments,ji(n,t,e,r)),r[Symbol.for("comments")]=n||[],r[Symbol.for("tokens")]=t.tokens||[],r.originalText=e,n}async function Km(e,t,r=0){if(!e||e.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:n,text:u}=await jr(e,t);if(t.cursorOffset>=0){let o=mu(n,t.cursorOffset,t);o&&o.node&&(t.cursorNode=o.node)}let i=Ym(u,n,t),s=await Vi(n,t,r),a=jt(s,t);if($i(i),r>0){let o=a.formatted.trim();a.cursorNodeStart!==void 0&&(a.cursorNodeStart-=a.formatted.indexOf(o)),a.formatted=o+zn(t.endOfLine)}if(t.cursorOffset>=0){let o,c,l,f,m;if(t.cursorNode&&a.cursorNodeText?(o=t.locStart(t.cursorNode),c=u.slice(o,t.locEnd(t.cursorNode)),l=t.cursorOffset-o,f=a.cursorNodeStart,m=a.cursorNodeText):(o=0,c=u,l=t.cursorOffset,f=0,m=a.formatted),c===m)return{formatted:a.formatted,cursorOffset:f+l,comments:i};let D=[...c];D.splice(l,0,qm);let y=[...m],E=(0,Jm.diffArrays)(D,y),C=f;for(let T of E)if(T.removed){if(T.value.includes(qm))break}else C+=T.count;return{formatted:a.formatted,cursorOffset:C,comments:i}}return{formatted:a.formatted,cursorOffset:-1,comments:i}}async function XA(e,t){let{ast:r,text:n}=await jr(e,t),{rangeStart:u,rangeEnd:i}=Vm(n,t,r),s=n.slice(u,i),a=Math.min(u,n.lastIndexOf(`
|
|
64
|
-
`,u)+1),o=n.slice(a,u).match(/^\s*/)[0],c=nu(o,t.tabWidth),l=await Km(s,{...t,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:t.cursorOffset>u&&t.cursorOffset<=i?t.cursorOffset-u:-1,endOfLine:"lf"},c),f=l.formatted.trimEnd(),{cursorOffset:m}=t;m>i?m+=f.length-s.length:l.cursorOffset>=0&&(m=l.cursorOffset+u);let D=n.slice(0,u)+f+n.slice(i);if(t.endOfLine!=="lf"){let y=zn(t.endOfLine);m>=0&&y===`\r
|
|
65
|
-
`&&(m+=$a(D.slice(0,m),`
|
|
66
|
-
`)),D=D.replace(/\n/g,y)}return{formatted:D,cursorOffset:m,comments:l.comments}}function Cc(e,t,r){return typeof t!="number"||Number.isNaN(t)||t<0||t>e.length?r:t}function Um(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:u}=t;return r=Cc(e,r,-1),n=Cc(e,n,0),u=Cc(e,u,e.length),{...t,cursorOffset:r,rangeStart:n,rangeEnd:u}}function Xm(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:u,endOfLine:i}=Um(e,t),s=e.charAt(0)===Hm;if(s&&(e=e.slice(1),r--,n--,u--),i==="auto"&&(i=fp(e)),e.includes("\r")){let a=o=>$a(e.slice(0,Math.max(o,0)),`\r
|
|
67
|
-
`);r-=a(r),n-=a(n),u-=a(u),e=ni(e)}return{hasBOM:s,text:e,options:Um(e,{...t,cursorOffset:r,rangeStart:n,rangeEnd:u,endOfLine:i})}}function Wm(e,t){let r=cu(t);return!r.hasPragma||r.hasPragma(e)}async function Gm(e,t){let{hasBOM:r,text:n,options:u}=Xm(e,Tr(t));if(u.rangeStart>=u.rangeEnd&&n!==""||u.requirePragma&&!Wm(n,u))return{formatted:e,cursorOffset:t.cursorOffset,comments:[]};let i;return u.rangeStart>0||u.rangeEnd<n.length?i=await XA(n,u):(!u.requirePragma&&u.insertPragma&&u.printer.insertPragma&&!Wm(n,u)&&(n=u.printer.insertPragma(n)),i=await Km(n,u)),r&&(i.formatted=Hm+i.formatted,i.cursorOffset>=0&&i.cursorOffset++),i}var zA={formatWithCursor:Gm,async parse(e,t,r){let{text:n,options:u}=Xm(e,Tr(t)),i=await jr(n,u);return r&&(i.ast=Vf(i.ast,u)),i},async formatAST(e,t){t=Tr(t);let r=await Vi(e,t);return jt(r,t)},async formatDoc(e,t){let r=to(e),{formatted:n}=await Gm(r,{...t,parser:"__js_expression"});return n},async printToDoc(e,t){t=Tr(t);let{ast:r,text:n}=await jr(e,t);return Ym(n,r,t),Vi(r,t)},printDocToString(e,t){return jt(e,Tr(t))}},qr=zA;var tp={};Ce(tp,{css:()=>Ys,graphql:()=>na,handlebars:()=>ra,html:()=>Ia,js:()=>Ms,markdown:()=>oa,yaml:()=>Ra});p();var Ms={};Ce(Ms,{languages:()=>fd,options:()=>md,parsers:()=>Dd,printers:()=>G1});p();p();p();p();var oD=Ct(rD(),1);p();function H(e,t){let{ignoreDecorators:r}=t||{};if(!r){let n=e.declaration&&e.declaration.decorators||e.decorators;if(O(n))return H(n[0])}return e.range?e.range[0]:e.start}function G(e){return e.range?e.range[1]:e.end}function Ui(e,t){let r=H(e);return Number.isInteger(r)&&r===H(t)}function QA(e,t){let r=G(e);return Number.isInteger(r)&&r===G(t)}function nD(e,t){return Ui(e,t)&&QA(e,t)}p();p();p();var Du=null;function du(e){if(Du!==null&&typeof Du.property){let t=Du;return Du=du.prototype=null,t}return Du=du.prototype=e==null?Object.create(null):e,new du}var ZA=10;for(let e=0;e<=ZA;e++)du();function Fc(e){return du(e)}function eF(e,t="type"){Fc(e);function r(n){let u=n[t];return e[u]}return r}var Ie=eF;var uD={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["test","body"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body","returnType","typeParameters","predicate"],FunctionExpression:["id","params","body","returnType","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body","interpreter"],ObjectExpression:["properties"],ObjectMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["params","body","returnType","typeParameters","predicate"],ClassBody:["body"],ClassExpression:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators"],ClassDeclaration:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators"],ExportAllDeclaration:["source","exported","assertions"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","assertions"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","assertions"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["local","imported"],MetaProperty:["meta","property"],ClassMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","quasi","typeParameters"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],Import:[],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["key","value","typeAnnotation","decorators"],ClassAccessorProperty:["key","value","typeAnnotation","decorators"],ClassPrivateProperty:["key","value","decorators","typeAnnotation"],ClassPrivateMethod:["key","params","body","decorators","returnType","typeParameters"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","mixins","implements","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source"],DeclareExportAllDeclaration:["source"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","params","rest","returnType","this"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","mixins","implements","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value","optional","static","method"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["id","key","value","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["id","qualification"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types"],TypeofTypeAnnotation:["argument"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes","typeParameters"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],DecimalLiteral:[],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation","initializer"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","typeAnnotation","nameType"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters"],TSAsExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumDeclaration:["id","members","modifiers"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body","modifiers"],TSModuleBlock:["body"],TSImportType:["argument","qualifier","typeParameters","parameter"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],ImportExpression:["source","attributes"],Literal:[],MethodDefinition:["decorators","key","value","typeParameters"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value","decorators"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],TSTemplateLiteralType:["quasis","types"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGQuotedExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","name"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],SpreadProperty:["argument"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],QualifiedTypeofIdentifier:["id","qualification"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[]};var rF=Ie(uD),Wi=rF;p();var nF=new Set(["Block","CommentBlock","MultiLine"]),uF=e=>nF.has(e==null?void 0:e.type),Te=uF;p();function iF(e,t){let r=t.split(".");for(let n=r.length-1;n>=0;n--){let u=r[n];if(n===0)return e.type==="Identifier"&&e.name===u;if(e.type!=="MemberExpression"||e.optional||e.computed||e.property.type!=="Identifier"||e.property.name!==u)return!1;e=e.object}}function sF(e,t){return t.some(r=>iF(e,r))}var iD=sF;var aF=oD.default.keyword.isIdentifierNameES5,cD="(?:(?=.)\\s)",oF=new RegExp(`^${cD}*:`),cF=new RegExp(`^${cD}*::`);function Tn(e){var t,r;return((t=e.extra)==null?void 0:t.parenthesized)&&Te((r=e.trailingComments)==null?void 0:r[0])&&oF.test(e.trailingComments[0].value)}function gu(e){let t=e==null?void 0:e[0];return Te(t)&&cF.test(t.value)}function Ur(e,t){if(e===null||typeof e!="object")return!1;if(Array.isArray(e))return e.some(n=>Ur(n,t));let r=t(e);return typeof r=="boolean"?r:Wi(e).some(n=>Ur(e[n],t))}function bn(e){return e.type==="AssignmentExpression"||e.type==="BinaryExpression"||e.type==="LogicalExpression"||e.type==="NGPipeExpression"||e.type==="ConditionalExpression"||U(e)||Z(e)||e.type==="SequenceExpression"||e.type==="TaggedTemplateExpression"||e.type==="BindExpression"||e.type==="UpdateExpression"&&!e.prefix||e.type==="TSAsExpression"||e.type==="TSNonNullExpression"}function lD(e){var t,r,n,u,i,s;return e.expressions?e.expressions[0]:(s=(i=(u=(n=(r=(t=e.left)!=null?t:e.test)!=null?r:e.callee)!=null?n:e.object)!=null?u:e.tag)!=null?i:e.argument)!=null?s:e.expression}function Ji(e,t){if(t.expressions)return["expressions",0];if(t.left)return["left"];if(t.test)return["test"];if(t.object)return["object"];if(t.callee)return["callee"];if(t.tag)return["tag"];if(t.argument)return["argument"];if(t.expression)return["expression"];throw new Error("Unexpected node has no left side.")}function ar(e){return e=new Set(e),t=>e.has(t==null?void 0:t.type)}var or=ar(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose"]),lF=ar(["ExportDefaultDeclaration","ExportDefaultSpecifier","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration"]);function Hi(e){let t=e.getParentNode();return e.getName()==="declaration"&&lF(t)?t:null}var cr=ar(["BooleanLiteral","DirectiveLiteral","Literal","NullLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","RegExpLiteral","StringLiteral","TemplateLiteral","TSTypeLiteral","JSXText"]);function it(e){return e.type==="NumericLiteral"||e.type==="Literal"&&typeof e.value=="number"}function Yi(e){return e.type==="UnaryExpression"&&(e.operator==="+"||e.operator==="-")&&it(e.argument)}function we(e){return e.type==="StringLiteral"||e.type==="Literal"&&typeof e.value=="string"}var dt=ar(["ObjectTypeAnnotation","TSTypeLiteral","TSMappedType"]),Sn=ar(["FunctionExpression","ArrowFunctionExpression"]);function pF(e){return e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&e.body.type==="BlockStatement"}function xc(e){return U(e)&&e.callee.type==="Identifier"&&["async","inject","fakeAsync","waitForAsync"].includes(e.callee.name)}var ae=ar(["JSXElement","JSXFragment"]);function Ki(e,t){if(e.parentParser!=="markdown"&&e.parentParser!=="mdx")return!1;let r=t.getNode();if(!r.expression||!ae(r.expression))return!1;let n=t.getParentNode();return n.type==="Program"&&n.body.length===1}function Bc(e){return e.kind==="get"||e.kind==="set"}function vc(e){return Bc(e)||Ui(e,e.value)}function Xi(e){return(e.type==="ObjectTypeProperty"||e.type==="ObjectTypeInternalSlot")&&e.value.type==="FunctionTypeAnnotation"&&!e.static&&!vc(e)}function pD(e){return(e.type==="TypeAnnotation"||e.type==="TSTypeAnnotation")&&e.typeAnnotation.type==="FunctionTypeAnnotation"&&!e.static&&!Ui(e,e.typeAnnotation)}var yt=ar(["BinaryExpression","LogicalExpression","NGPipeExpression"]);function Br(e){return Z(e)||e.type==="BindExpression"&&Boolean(e.object)}var fF=new Set(["AnyTypeAnnotation","TSAnyKeyword","NullLiteralTypeAnnotation","TSNullKeyword","ThisTypeAnnotation","TSThisType","NumberTypeAnnotation","TSNumberKeyword","VoidTypeAnnotation","TSVoidKeyword","BooleanTypeAnnotation","TSBooleanKeyword","BigIntTypeAnnotation","TSBigIntKeyword","SymbolTypeAnnotation","TSSymbolKeyword","StringTypeAnnotation","TSStringKeyword","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType","EmptyTypeAnnotation","MixedTypeAnnotation","TSNeverKeyword","TSObjectKeyword","TSUndefinedKeyword","TSUnknownKeyword"]);function zi(e){return e?!!((e.type==="GenericTypeAnnotation"||e.type==="TSTypeReference")&&!e.typeParameters||fF.has(e.type)):!1}function mF(e){let t=/^(?:before|after)(?:Each|All)$/;return e.callee.type==="Identifier"&&t.test(e.callee.name)&&e.arguments.length===1}var DF=["it","it.only","it.skip","describe","describe.only","describe.skip","test","test.only","test.skip","test.step","test.describe","test.describe.only","test.describe.parallel","test.describe.parallel.only","test.describe.serial","test.describe.serial.only","skip","xit","xdescribe","xtest","fit","fdescribe","ftest"];function dF(e){return iD(e,DF)}function Wr(e,t){if(e.type!=="CallExpression")return!1;if(e.arguments.length===1){if(xc(e)&&t&&Wr(t))return Sn(e.arguments[0]);if(mF(e))return xc(e.arguments[0])}else if((e.arguments.length===2||e.arguments.length===3)&&(e.arguments[0].type==="TemplateLiteral"||we(e.arguments[0]))&&dF(e.callee))return e.arguments[2]&&!it(e.arguments[2])?!1:(e.arguments.length===2?Sn(e.arguments[1]):pF(e.arguments[1])&&De(e.arguments[1]).length<=1)||xc(e.arguments[1]);return!1}var U=ar(["CallExpression","OptionalCallExpression"]),Z=ar(["MemberExpression","OptionalMemberExpression"]);function fD(e){let t="expressions";e.type==="TSTemplateLiteralType"&&(t="types");let r=e[t];return r.length===0?!1:r.every(n=>{if(k(n))return!1;if(n.type==="Identifier"||n.type==="ThisExpression")return!0;if(Z(n)){let u=n;for(;Z(u);)if(u.property.type!=="Identifier"&&u.property.type!=="Literal"&&u.property.type!=="StringLiteral"&&u.property.type!=="NumericLiteral"||(u=u.object,k(u)))return!1;return u.type==="Identifier"||u.type==="ThisExpression"}return!1})}function wc(e,t){return e==="+"||e==="-"?e+t:t}function Qi(e,t){let r=H(t),n=ru(e,G(t));return n!==!1&&e.slice(r,r+2)==="/*"&&e.slice(n,n+2)==="*/"}function Tt(e,t){return ae(t)?rs(t):k(t,_.Leading,r=>ee(e,G(r)))}function Pc(e,t){return t.parser!=="json"&&we(e.key)&&he(e.key).slice(1,-1)===e.key.value&&(aF(e.key.value)&&!(t.parser==="babel-ts"&&e.type==="ClassProperty"||t.parser==="typescript"&&e.type==="PropertyDefinition")||Ic(e.key.value)&&String(Number(e.key.value))===e.key.value&&(t.parser==="babel"||t.parser==="acorn"||t.parser==="espree"||t.parser==="meriyah"||t.parser==="__babel_estree"))}function Ic(e){return/^(?:\d+|\d+\.\d+)$/.test(e)}function mD(e,t){let r=/^[fx]?(?:describe|it|test)$/;return t.type==="TaggedTemplateExpression"&&t.quasi===e&&t.tag.type==="MemberExpression"&&t.tag.property.type==="Identifier"&&t.tag.property.name==="each"&&(t.tag.object.type==="Identifier"&&r.test(t.tag.object.name)||t.tag.object.type==="MemberExpression"&&t.tag.object.property.type==="Identifier"&&(t.tag.object.property.name==="only"||t.tag.object.property.name==="skip")&&t.tag.object.object.type==="Identifier"&&r.test(t.tag.object.object.name))}function sD(e){return e.quasis.some(t=>t.value.raw.includes(`
|
|
68
|
-
`))}function Zi(e,t){return(e.type==="TemplateLiteral"&&sD(e)||e.type==="TaggedTemplateExpression"&&sD(e.quasi))&&!ee(t,H(e),{backwards:!0})}function es(e){if(!k(e))return!1;let t=I(Ye(e,_.Dangling));return t&&!Te(t)}function DD(e){if(e.length<=1)return!1;let t=0;for(let r of e)if(Sn(r)){if(t+=1,t>1)return!0}else if(U(r)){for(let n of r.arguments)if(Sn(n))return!0}return!1}function ts(e){let t=e.getValue(),r=e.getParentNode();return U(t)&&U(r)&&r.callee===t&&t.arguments.length>r.arguments.length&&r.arguments.length>0}function sr(e,t){if(t>=2)return!1;let r=s=>sr(s,t+1),n=e.type==="Literal"&&"regex"in e&&e.regex.pattern||e.type==="RegExpLiteral"&&e.pattern;if(n&&Ne(n)>5)return!1;if(e.type==="Literal"||e.type==="BigIntLiteral"||e.type==="DecimalLiteral"||e.type==="BooleanLiteral"||e.type==="NullLiteral"||e.type==="NumericLiteral"||e.type==="RegExpLiteral"||e.type==="StringLiteral"||e.type==="Identifier"||e.type==="ThisExpression"||e.type==="Super"||e.type==="PrivateName"||e.type==="PrivateIdentifier"||e.type==="ArgumentPlaceholder"||e.type==="Import")return!0;if(e.type==="TemplateLiteral")return e.quasis.every(s=>!s.value.raw.includes(`
|
|
69
|
-
`))&&e.expressions.every(r);if(e.type==="ObjectExpression")return e.properties.every(s=>!s.computed&&(s.shorthand||s.value&&r(s.value)));if(e.type==="ArrayExpression")return e.elements.every(s=>s===null||r(s));if(Au(e))return(e.type==="ImportExpression"||sr(e.callee,t))&>(e).every(r);if(Z(e))return sr(e.object,t)&&sr(e.property,t);let u={"!":!0,"-":!0,"+":!0,"~":!0};if(e.type==="UnaryExpression"&&u[e.operator])return sr(e.argument,t);let i={"++":!0,"--":!0};return e.type==="UpdateExpression"&&i[e.operator]?sr(e.argument,t):e.type==="TSNonNullExpression"?sr(e.expression,t):!1}function he(e){var t,r;return(r=(t=e.extra)==null?void 0:t.raw)!=null?r:e.raw}function dD(e){return e}function yD(e){return e.filepath&&/\.tsx$/i.test(e.filepath)}function me(e,t="es5"){return e.trailingComma==="es5"&&t==="es5"||e.trailingComma==="all"&&(t==="all"||t==="es5")}function ut(e,t){switch(e=gF(e),e.type){case"FunctionExpression":case"ClassExpression":case"DoExpression":return t;case"ObjectExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return ut(e.object,t);case"TaggedTemplateExpression":return e.tag.type==="FunctionExpression"?!1:ut(e.tag,t);case"CallExpression":case"OptionalCallExpression":return e.callee.type==="FunctionExpression"?!1:ut(e.callee,t);case"ConditionalExpression":return ut(e.test,t);case"UpdateExpression":return!e.prefix&&ut(e.argument,t);case"BindExpression":return e.object&&ut(e.object,t);case"SequenceExpression":return ut(e.expressions[0],t);case"TSAsExpression":case"TSNonNullExpression":return ut(e.expression,t);default:return!1}}var aD={"==":!0,"!=":!0,"===":!0,"!==":!0},Gi={"*":!0,"/":!0,"%":!0},bc={">>":!0,">>>":!0,"<<":!0};function hu(e,t){return!(yu(t)!==yu(e)||e==="**"||aD[e]&&aD[t]||t==="%"&&Gi[e]||e==="%"&&Gi[t]||t!==e&&Gi[t]&&Gi[e]||bc[e]&&bc[t])}var yF=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap((e,t)=>e.map(r=>[r,t])));function yu(e){return yF.get(e)}function gF(e){for(;e.left;)e=e.left;return e}function gD(e){return Boolean(bc[e])||e==="|"||e==="^"||e==="&"}function hD(e){var r;if(e.rest)return!0;let t=De(e);return((r=I(t))==null?void 0:r.type)==="RestElement"}var Sc=new WeakMap;function De(e){if(Sc.has(e))return Sc.get(e);let t=[];return e.this&&t.push(e.this),Array.isArray(e.parameters)?t.push(...e.parameters):Array.isArray(e.params)&&t.push(...e.params),e.rest&&t.push(e.rest),Sc.set(e,t),t}function ED(e,t){let r=e.getValue(),n=0,u=i=>t(i,n++);r.this&&e.call(u,"this"),Array.isArray(r.parameters)?e.each(u,"parameters"):Array.isArray(r.params)&&e.each(u,"params"),r.rest&&e.call(u,"rest")}var Tc=new WeakMap;function gt(e){if(Tc.has(e))return Tc.get(e);let t=e.arguments;return e.type==="ImportExpression"&&(t=[e.source],e.attributes&&t.push(e.attributes)),Tc.set(e,t),t}function Eu(e,t){let r=e.getValue();r.type==="ImportExpression"?(e.call(n=>t(n,0),"source"),r.attributes&&e.call(n=>t(n,1),"attributes")):e.each(t,"arguments")}function Cu(e){return e.value.trim()==="prettier-ignore"&&!e.unignore}function rs(e){return e&&(e.prettierIgnore||k(e,_.PrettierIgnore))}function ns(e){let t=e.getValue();return rs(t)}var _={Leading:1<<1,Trailing:1<<2,Dangling:1<<3,Block:1<<4,Line:1<<5,PrettierIgnore:1<<6,First:1<<7,Last:1<<8},CD=(e,t)=>{if(typeof e=="function"&&(t=e,e=0),e||t)return(r,n,u)=>!(e&_.Leading&&!r.leading||e&_.Trailing&&!r.trailing||e&_.Dangling&&(r.leading||r.trailing)||e&_.Block&&!Te(r)||e&_.Line&&!or(r)||e&_.First&&n!==0||e&_.Last&&n!==u.length-1||e&_.PrettierIgnore&&!Cu(r)||t&&!t(r))};function k(e,t,r){if(!O(e==null?void 0:e.comments))return!1;let n=CD(t,r);return n?e.comments.some(n):!0}function Ye(e,t,r){if(!Array.isArray(e==null?void 0:e.comments))return[];let n=CD(t,r);return n?e.comments.filter(n):e.comments}var be=(e,{originalText:t})=>_r(t,G(e));function Au(e){return U(e)||e.type==="NewExpression"||e.type==="ImportExpression"}function Me(e){return e&&(e.type==="ObjectProperty"||e.type==="Property"&&!e.method&&e.kind==="init")}function kc(e){return Boolean(e.__isUsingHackPipeline)}var us=Symbol("ifWithoutBlockAndSameLineComment");p();p();function is(e,t,r){let n=e.getValue();if(n.type==="TemplateLiteral"&&mD(n,e.getParentNode())){let c=hF(e,r,t);if(c)return c}let i="expressions";n.type==="TSTemplateLiteralType"&&(i="types");let s=[],a=e.map(t,i),o=fD(n);return o&&(a=a.map(c=>jt(c,{...r,printWidth:Number.POSITIVE_INFINITY}).formatted)),s.push(Ft,"`"),e.each(c=>{let l=c.getName();if(s.push(t()),l<a.length){let{tabWidth:f}=r,m=c.getValue(),D=gi(m.value.raw,f),y=a[l];if(!o){let C=n[i][l];(k(C)||Z(C)||C.type==="ConditionalExpression"||C.type==="SequenceExpression"||C.type==="TSAsExpression"||yt(C))&&(y=[F([A,y]),A])}let E=D===0&&m.value.raw.endsWith(`
|
|
70
|
-
`)?ne(Number.NEGATIVE_INFINITY,y):Qn(y,D,f);s.push(h(["${",E,Ft,"}"]))}},"quasis"),s.push("`"),s}function hF(e,t,r){let n=e.getNode(),u=n.quasis[0].value.raw.trim().split(/\s*\|\s*/);if(u.length>1||u.some(i=>i.length>0)){t.__inJestEach=!0;let i=e.map(r,"expressions");t.__inJestEach=!1;let s=[],a=i.map(m=>"${"+jt(m,{...t,printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"}).formatted+"}"),o=[{hasLineBreak:!1,cells:[]}];for(let m=1;m<n.quasis.length;m++){let D=I(o),y=a[m-1];D.cells.push(y),y.includes(`
|
|
71
|
-
`)&&(D.hasLineBreak=!0),n.quasis[m].value.raw.includes(`
|
|
72
|
-
`)&&o.push({hasLineBreak:!1,cells:[]})}let c=Math.max(u.length,...o.map(m=>m.cells.length)),l=Array.from({length:c}).fill(0),f=[{cells:u},...o.filter(m=>m.cells.length>0)];for(let{cells:m}of f.filter(D=>!D.hasLineBreak))for(let[D,y]of m.entries())l[D]=Math.max(l[D],Ne(y));return s.push(Ft,"`",F([d,B(d,f.map(m=>B(" | ",m.cells.map((D,y)=>m.hasLineBreak?D:D+" ".repeat(l[y]-Ne(D))))))]),d,"`"),s}}function EF(e,t){let r=e.getValue(),n=t();return k(r)&&(n=h([F([A,n]),A])),["${",n,Ft,"}"]}function Bn(e,t){return e.map(r=>EF(r,t),"expressions")}function ss(e,t){return et(e,r=>typeof r=="string"?t?r.replace(/(\\*)`/g,"$1$1\\`"):Lc(r):r)}function Lc(e){return e.replace(/([\\`]|\${)/g,"\\$1")}async function CF(e,t,r){let u=r.getValue().quasis[0].value.raw.replace(/((?:\\\\)*)\\`/g,(o,c)=>"\\".repeat(c.length/2)+"`"),i=AF(u),s=i!=="";s&&(u=u.replace(new RegExp(`^${i}`,"gm"),""));let a=ss(await e(u,{parser:"markdown",__inJsTemplate:!0}),!0);return["`",s?F([A,a]):[_e,gr(a)],A,"`"]}function AF(e){let t=e.match(/^([^\S\n]*)\S/m);return t===null?"":t[1]}var AD=CF;p();async function FF(e,t,r){let n=r.getValue(),u=n.quasis.map(c=>c.value.raw),i=0,s=u.reduce((c,l,f)=>f===0?l:c+"@prettier-placeholder-"+i+++"-id"+l,""),a=await e(s,{parser:"scss"}),o=Bn(r,t);return xF(a,n,o)}function xF(e,t,r){if(t.quasis.length===1&&!t.quasis[0].value.raw.trim())return"``";let u=SF(e,r);if(!u)throw new Error("Couldn't insert all the expressions");return["`",F([d,u]),A,"`"]}function SF(e,t){if(!O(t))return e;let r=0,n=et(Rt(e),u=>typeof u!="string"||!u.includes("@prettier-placeholder")?u:u.split(/@prettier-placeholder-(\d+)-id/).map((i,s)=>s%2===0?tu(i):(r++,t[i])));return t.length===r?n:null}var FD=FF;p();async function TF(e,t,r){let n=r.getValue(),u=n.quasis.length;if(u===1&&n.quasis[0].value.raw.trim()==="")return"``";let i=Bn(r,t),s=[];for(let a=0;a<u;a++){let o=n.quasis[a],c=a===0,l=a===u-1,f=o.value.cooked,m=f.split(`
|
|
73
|
-
`),D=m.length,y=i[a],E=D>2&&m[0].trim()===""&&m[1].trim()==="",C=D>2&&m[D-1].trim()===""&&m[D-2].trim()==="",T=m.every(S=>/^\s*(?:#[^\n\r]*)?$/.test(S));if(!l&&/#[^\n\r]*$/.test(m[D-1]))return null;let b=null;T?b=bF(m):b=await e(f,{parser:"graphql"}),b?(b=ss(b,!1),!c&&E&&s.push(""),s.push(b),!l&&C&&s.push("")):!c&&!l&&E&&s.push(""),y&&s.push(y)}return["`",F([d,B(d,s)]),d,"`"]}function bF(e){let t=[],r=!1,n=e.map(u=>u.trim());for(let[u,i]of n.entries())i!==""&&(n[u-1]===""&&r?t.push([d,i]):t.push(i),r=!0);return t.length===0?null:B(d,t)}var xD=TF;p();var Nc=0;async function SD(e,t,r,n,u){let i=r.getValue(),s=Nc;Nc=Nc+1>>>0;let a=T=>`PRETTIER_HTML_PLACEHOLDER_${T}_${s}_IN_JS`,o=i.quasis.map((T,b,S)=>b===S.length-1?T.value.cooked:T.value.cooked+a(b)).join(""),c=Bn(r,t);if(c.length===0&&o.trim().length===0)return"``";let l=new RegExp(a("(\\d+)"),"g"),f=0,m=await e(o,{parser:u,__onHtmlRoot(T){f=T.children.length}}),D=et(m,T=>{if(typeof T!="string")return T;let b=[],S=T.split(l);for(let v=0;v<S.length;v++){let w=S[v];if(v%2===0){w&&(w=Lc(w),n.__embeddedInHtml&&(w=w.replace(/<\/(script)\b/gi,"<\\/$1")),b.push(w));continue}let j=Number(w);b.push(c[j])}return b}),y=/^\s/.test(o)?" ":"",E=/\s$/.test(o)?" ":"",C=n.htmlWhitespaceSensitivity==="ignore"?d:y&&E?x:null;return C?h(["`",F([C,h(D)]),C,"`"]):h(["`",y,f>1?F(h(D)):h(D),E,"`"])}var TD=(e,t,r,n)=>SD(e,t,r,n,"html"),bD=(e,t,r,n)=>SD(e,t,r,n,"angular");function BF(e){let t=e.getValue();if(!(t.type!=="TemplateLiteral"||OF(t))){if(wF(e)||kF(e)||LF(e)||PF(e))return FD;if(NF(e))return xD;if(_F(e))return TD;if(IF(e))return bD;if(vF(e))return AD}}function vF(e){let t=e.getValue(),r=e.getParentNode();return r&&r.type==="TaggedTemplateExpression"&&t.quasis.length===1&&r.tag.type==="Identifier"&&(r.tag.name==="md"||r.tag.name==="markdown")}function wF(e){let t=e.getValue(),r=e.getParentNode(),n=e.getParentNode(1);return n&&t.quasis&&r.type==="JSXExpressionContainer"&&n.type==="JSXElement"&&n.openingElement.name.name==="style"&&n.openingElement.attributes.some(u=>u.name.name==="jsx")||r&&r.type==="TaggedTemplateExpression"&&r.tag.type==="Identifier"&&r.tag.name==="css"||r&&r.type==="TaggedTemplateExpression"&&r.tag.type==="MemberExpression"&&r.tag.object.name==="css"&&(r.tag.property.name==="global"||r.tag.property.name==="resolve")}function PF(e){return e.match(t=>t.type==="TemplateLiteral",(t,r)=>t.type==="ArrayExpression"&&r==="elements",(t,r)=>Me(t)&&t.key.type==="Identifier"&&t.key.name==="styles"&&r==="value",...vD)}function IF(e){return e.match(t=>t.type==="TemplateLiteral",(t,r)=>Me(t)&&t.key.type==="Identifier"&&t.key.name==="template"&&r==="value",...vD)}var vD=[(e,t)=>e.type==="ObjectExpression"&&t==="properties",(e,t)=>e.type==="CallExpression"&&e.callee.type==="Identifier"&&e.callee.name==="Component"&&t==="arguments",(e,t)=>e.type==="Decorator"&&t==="expression"];function kF(e){let t=e.getParentNode();if(!t||t.type!=="TaggedTemplateExpression")return!1;let r=t.tag.type==="ParenthesizedExpression"?t.tag.expression:t.tag;switch(r.type){case"MemberExpression":return as(r.object)||BD(r);case"CallExpression":return as(r.callee)||r.callee.type==="MemberExpression"&&(r.callee.object.type==="MemberExpression"&&(as(r.callee.object.object)||BD(r.callee.object))||r.callee.object.type==="CallExpression"&&as(r.callee.object.callee));case"Identifier":return r.name==="css";default:return!1}}function LF(e){let t=e.getParentNode(),r=e.getParentNode(1);return r&&t.type==="JSXExpressionContainer"&&r.type==="JSXAttribute"&&r.name.type==="JSXIdentifier"&&r.name.name==="css"}function as(e){return e.type==="Identifier"&&e.name==="styled"}function BD(e){return/^[A-Z]/.test(e.object.name)&&e.property.name==="extend"}function NF(e){let t=e.getValue(),r=e.getParentNode();return wD(t,"GraphQL")||r&&(r.type==="TaggedTemplateExpression"&&(r.tag.type==="MemberExpression"&&r.tag.object.name==="graphql"&&r.tag.property.name==="experimental"||r.tag.type==="Identifier"&&(r.tag.name==="gql"||r.tag.name==="graphql"))||r.type==="CallExpression"&&r.callee.type==="Identifier"&&r.callee.name==="graphql")}function wD(e,t){return k(e,_.Block|_.Leading,({value:r})=>r===` ${t} `)}function _F(e){return wD(e.getValue(),"HTML")||e.match(t=>t.type==="TemplateLiteral",(t,r)=>t.type==="TaggedTemplateExpression"&&t.tag.type==="Identifier"&&t.tag.name==="html"&&r==="quasi")}function OF({quasis:e}){return e.some(({value:{cooked:t}})=>t===null)}var PD=BF;p();var RF=new Set(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","loc","flags","errors","tokens"]),vn=e=>{for(let t of e.quasis)delete t.value};function ID(e,t,r){var u;if(e.type==="Program"&&delete t.sourceType,(e.type==="BigIntLiteral"||e.type==="BigIntLiteralTypeAnnotation")&&t.value&&(t.value=t.value.toLowerCase()),(e.type==="BigIntLiteral"||e.type==="Literal")&&t.bigint&&(t.bigint=t.bigint.toLowerCase()),e.type==="DecimalLiteral"&&(t.value=Number(t.value)),e.type==="Literal"&&t.decimal&&(t.decimal=Number(t.decimal)),e.type==="EmptyStatement"||e.type==="JSXText"||e.type==="JSXExpressionContainer"&&(e.expression.type==="Literal"||e.expression.type==="StringLiteral")&&e.expression.value===" ")return null;if((e.type==="Property"||e.type==="ObjectProperty"||e.type==="MethodDefinition"||e.type==="ClassProperty"||e.type==="ClassMethod"||e.type==="PropertyDefinition"||e.type==="TSDeclareMethod"||e.type==="TSPropertySignature"||e.type==="ObjectTypeProperty")&&typeof e.key=="object"&&e.key&&(e.key.type==="Literal"||e.key.type==="NumericLiteral"||e.key.type==="StringLiteral"||e.key.type==="Identifier")&&delete t.key,e.type==="JSXElement"&&e.openingElement.name.name==="style"&&e.openingElement.attributes.some(i=>i.name.name==="jsx"))for(let{type:i,expression:s}of t.children)i==="JSXExpressionContainer"&&s.type==="TemplateLiteral"&&vn(s);e.type==="JSXAttribute"&&e.name.name==="css"&&e.value.type==="JSXExpressionContainer"&&e.value.expression.type==="TemplateLiteral"&&vn(t.value.expression),e.type==="JSXAttribute"&&e.value&&e.value.type==="Literal"&&/["']|"|'/.test(e.value.value)&&(t.value.value=t.value.value.replace(/["']|"|'/g,'"'));let n=e.expression||e.callee;if(e.type==="Decorator"&&n.type==="CallExpression"&&n.callee.name==="Component"&&n.arguments.length===1){let i=e.expression.arguments[0].properties;for(let[s,a]of t.expression.arguments[0].properties.entries())switch(i[s].key.name){case"styles":a.value.type==="ArrayExpression"&&vn(a.value.elements[0]);break;case"template":a.value.type==="TemplateLiteral"&&vn(a.value);break}}if(e.type==="TaggedTemplateExpression"&&(e.tag.type==="MemberExpression"||e.tag.type==="Identifier"&&(e.tag.name==="gql"||e.tag.name==="graphql"||e.tag.name==="css"||e.tag.name==="md"||e.tag.name==="markdown"||e.tag.name==="html")||e.tag.type==="CallExpression")&&vn(t.quasi),e.type==="TemplateLiteral"&&(((u=e.leadingComments)==null?void 0:u.some(s=>Te(s)&&["GraphQL","HTML"].some(a=>s.value===` ${a} `)))||r.type==="CallExpression"&&r.callee.name==="graphql"||!e.leadingComments)&&vn(t),e.type==="InterpreterDirective"&&(t.value=t.value.trimEnd()),(e.type==="TSIntersectionType"||e.type==="TSUnionType")&&e.types.length===1)return t.types[0]}ID.ignoredProperties=RF;var kD=ID;p();var vr=Ct(n0(),1);p();function zF(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(`
|
|
74
|
-
`);return t===-1?e:e.slice(0,t)}var u0=zF;function QF(e){let t=u0(e);t&&(e=e.slice(t.length+1));let r=(0,vr.extract)(e),{pragmas:n,comments:u}=(0,vr.parseWithComments)(r);return{shebang:t,text:e,pragmas:n,comments:u}}function ls(e){let{shebang:t,text:r,pragmas:n,comments:u}=QF(e),i=(0,vr.strip)(r),s=(0,vr.print)({pragmas:{format:"",...n},comments:u.trimStart()});return(t?`${t}
|
|
75
|
-
`:"")+ni(s)+(i.startsWith(`
|
|
76
|
-
`)?`
|
|
77
|
-
`:`
|
|
78
|
-
|
|
79
|
-
`)+i}p();function i0(e){return[D0,p0,ex,$c,Vc,o0,c0,fx,lx,Uc,m0,mx,l0,f0,qc].some(t=>t(e))}function s0(e){return[ZF,p0,tx,m0,$c,Vc,o0,c0,f0,cx,px,Uc,yx,qc,Ex].some(t=>t(e))}function a0(e){return[D0,$c,Vc,rx,ox,l0,Uc,ax,sx,hx,qc,gx].some(t=>t(e))}function Hr(e,t){let r=(e.body||e.properties).find(({type:n})=>n!=="EmptyStatement");r?ue(r,t):fe(e,t)}function jc(e,t){e.type==="BlockStatement"?Hr(e,t):ue(e,t)}function ZF({comment:e,followingNode:t}){return t&&Cx(e)?(ue(t,e),!0):!1}function $c({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:u}){if((r==null?void 0:r.type)!=="IfStatement"||!n)return!1;if(St(u,e,G)===")")return re(t,e),!0;if(t===r.consequent&&n===r.alternate){if(t.type==="BlockStatement")re(t,e);else{let s=e.type==="SingleLine"||e.loc.start.line===e.loc.end.line,a=e.loc.start.line===t.loc.start.line;s&&a?fe(t,e,us):fe(r,e)}return!0}return n.type==="BlockStatement"?(Hr(n,e),!0):n.type==="IfStatement"?(jc(n.consequent,e),!0):r.consequent===n?(ue(n,e),!0):!1}function Vc({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:u}){return(r==null?void 0:r.type)!=="WhileStatement"||!n?!1:St(u,e,G)===")"?(re(t,e),!0):n.type==="BlockStatement"?(Hr(n,e),!0):r.body===n?(ue(n,e),!0):!1}function o0({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return(r==null?void 0:r.type)!=="TryStatement"&&(r==null?void 0:r.type)!=="CatchClause"||!n?!1:r.type==="CatchClause"&&t?(re(t,e),!0):n.type==="BlockStatement"?(Hr(n,e),!0):n.type==="TryStatement"?(jc(n.finalizer,e),!0):n.type==="CatchClause"?(jc(n.body,e),!0):!1}function ex({comment:e,enclosingNode:t,followingNode:r}){return Z(t)&&(r==null?void 0:r.type)==="Identifier"?(ue(t,e),!0):!1}function tx({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:u}){let i=t&&!$t(u,G(t),H(e));return(!t||!i)&&((r==null?void 0:r.type)==="ConditionalExpression"||(r==null?void 0:r.type)==="TSConditionalType")&&n?(ue(n,e),!0):!1}function rx({comment:e,precedingNode:t,enclosingNode:r}){return Me(r)&&r.shorthand&&r.key===t&&r.value.type==="AssignmentPattern"?(re(r.value.left,e),!0):!1}var nx=new Set(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function c0({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){if(nx.has(r==null?void 0:r.type)){if(O(r.decorators)&&!(n&&n.type==="Decorator"))return re(I(r.decorators),e),!0;if(r.body&&n===r.body)return Hr(r.body,e),!0;if(n){if(r.superClass&&n===r.superClass&&t&&(t===r.id||t===r.typeParameters))return re(t,e),!0;for(let u of["implements","extends","mixins"])if(r[u]&&n===r[u][0])return t&&(t===r.id||t===r.typeParameters||t===r.superClass)?re(t,e):fe(r,e,u),!0}}return!1}var ux=new Set(["ClassMethod","ClassProperty","PropertyDefinition","TSAbstractPropertyDefinition","TSAbstractMethodDefinition","TSDeclareMethod","MethodDefinition"]);function l0({comment:e,precedingNode:t,enclosingNode:r,text:n}){return r&&t&&St(n,e,G)==="("&&(r.type==="Property"||r.type==="TSDeclareMethod"||r.type==="TSAbstractMethodDefinition")&&t.type==="Identifier"&&r.key===t&&St(n,t,G)!==":"?(re(t,e),!0):(t==null?void 0:t.type)==="Decorator"&&ux.has(r==null?void 0:r.type)?(re(t,e),!0):!1}var ix=new Set(["FunctionDeclaration","FunctionExpression","ClassMethod","MethodDefinition","ObjectMethod"]);function sx({comment:e,precedingNode:t,enclosingNode:r,text:n}){return St(n,e,G)!=="("?!1:t&&ix.has(r==null?void 0:r.type)?(re(t,e),!0):!1}function ax({comment:e,enclosingNode:t,text:r}){if((t==null?void 0:t.type)!=="ArrowFunctionExpression")return!1;let n=tr(r,e,G);return n!==!1&&r.slice(n,n+2)==="=>"?(fe(t,e),!0):!1}function ox({comment:e,enclosingNode:t,text:r}){return St(r,e,G)!==")"?!1:t&&(d0(t)&&De(t).length===0||Au(t)&>(t).length===0)?(fe(t,e),!0):((t==null?void 0:t.type)==="MethodDefinition"||(t==null?void 0:t.type)==="TSAbstractMethodDefinition")&&De(t.value).length===0?(fe(t.value,e),!0):!1}function p0({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:u}){if((t==null?void 0:t.type)==="FunctionTypeParam"&&(r==null?void 0:r.type)==="FunctionTypeAnnotation"&&(n==null?void 0:n.type)!=="FunctionTypeParam")return re(t,e),!0;if(((t==null?void 0:t.type)==="Identifier"||(t==null?void 0:t.type)==="AssignmentPattern")&&r&&d0(r)&&St(u,e,G)===")")return re(t,e),!0;if((r==null?void 0:r.type)==="FunctionDeclaration"&&(n==null?void 0:n.type)==="BlockStatement"){let i=(()=>{let s=De(r);if(s.length>0)return dn(u,G(I(s)));let a=dn(u,G(r.id));return a!==!1&&dn(u,a+1)})();if(H(e)>i)return Hr(n,e),!0}return!1}function f0({comment:e,enclosingNode:t}){return(t==null?void 0:t.type)==="LabeledStatement"?(ue(t,e),!0):!1}function qc({comment:e,enclosingNode:t}){return((t==null?void 0:t.type)==="ContinueStatement"||(t==null?void 0:t.type)==="BreakStatement")&&!t.label?(re(t,e),!0):!1}function cx({comment:e,precedingNode:t,enclosingNode:r}){return U(r)&&t&&r.callee===t&&r.arguments.length>0?(ue(r.arguments[0],e),!0):!1}function lx({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return(r==null?void 0:r.type)==="UnionTypeAnnotation"||(r==null?void 0:r.type)==="TSUnionType"?(Cu(e)&&(n.prettierIgnore=!0,e.unignore=!0),t?(re(t,e),!0):!1):(((n==null?void 0:n.type)==="UnionTypeAnnotation"||(n==null?void 0:n.type)==="TSUnionType")&&Cu(e)&&(n.types[0].prettierIgnore=!0,e.unignore=!0),!1)}function px({comment:e,enclosingNode:t}){return Me(t)?(ue(t,e),!0):!1}function Uc({comment:e,enclosingNode:t,followingNode:r,ast:n,isLastComment:u}){return n&&n.body&&n.body.length===0?(u?fe(n,e):ue(n,e),!0):(t==null?void 0:t.type)==="Program"&&(t==null?void 0:t.body.length)===0&&!O(t.directives)?(u?fe(t,e):ue(t,e),!0):(r==null?void 0:r.type)==="Program"&&(r==null?void 0:r.body.length)===0&&(t==null?void 0:t.type)==="ModuleExpression"?(fe(r,e),!0):!1}function fx({comment:e,enclosingNode:t}){return(t==null?void 0:t.type)==="ForInStatement"||(t==null?void 0:t.type)==="ForOfStatement"?(ue(t,e),!0):!1}function m0({comment:e,precedingNode:t,enclosingNode:r,text:n}){if((r==null?void 0:r.type)==="ImportSpecifier"||(r==null?void 0:r.type)==="ExportSpecifier")return ue(r,e),!0;let u=(t==null?void 0:t.type)==="ImportSpecifier"&&(r==null?void 0:r.type)==="ImportDeclaration",i=(t==null?void 0:t.type)==="ExportSpecifier"&&(r==null?void 0:r.type)==="ExportNamedDeclaration";return(u||i)&&ee(n,G(e))?(re(t,e),!0):!1}function mx({comment:e,enclosingNode:t}){return(t==null?void 0:t.type)==="AssignmentPattern"?(ue(t,e),!0):!1}var Dx=new Set(["VariableDeclarator","AssignmentExpression","TypeAlias","TSTypeAliasDeclaration"]),dx=new Set(["ObjectExpression","ArrayExpression","TemplateLiteral","TaggedTemplateExpression","ObjectTypeAnnotation","TSTypeLiteral"]);function yx({comment:e,enclosingNode:t,followingNode:r}){return Dx.has(t==null?void 0:t.type)&&r&&(dx.has(r.type)||Te(e))?(ue(r,e),!0):!1}function gx({comment:e,enclosingNode:t,followingNode:r,text:n}){return!r&&((t==null?void 0:t.type)==="TSMethodSignature"||(t==null?void 0:t.type)==="TSDeclareFunction"||(t==null?void 0:t.type)==="TSAbstractMethodDefinition")&&St(n,e,G)===";"?(re(t,e),!0):!1}function D0({comment:e,enclosingNode:t,followingNode:r}){if(Cu(e)&&(t==null?void 0:t.type)==="TSMappedType"&&(r==null?void 0:r.type)==="TSTypeParameter"&&r.constraint)return t.prettierIgnore=!0,e.unignore=!0,!0}function hx({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return(r==null?void 0:r.type)!=="TSMappedType"?!1:(n==null?void 0:n.type)==="TSTypeParameter"&&n.name?(ue(n.name,e),!0):(t==null?void 0:t.type)==="TSTypeParameter"&&t.constraint?(re(t.constraint,e),!0):!1}function Ex({comment:e,enclosingNode:t,followingNode:r}){return!t||t.type!=="SwitchCase"||t.test?!1:(r.type==="BlockStatement"&&or(e)?Hr(r,e):fe(t,e),!0)}function d0(e){return e.type==="ArrowFunctionExpression"||e.type==="FunctionExpression"||e.type==="FunctionDeclaration"||e.type==="ObjectMethod"||e.type==="ClassMethod"||e.type==="TSDeclareFunction"||e.type==="TSCallSignatureDeclaration"||e.type==="TSConstructSignatureDeclaration"||e.type==="TSMethodSignature"||e.type==="TSConstructorType"||e.type==="TSFunctionType"||e.type==="TSDeclareMethod"}function y0(e,t){if((t.parser==="typescript"||t.parser==="flow"||t.parser==="acorn"||t.parser==="espree"||t.parser==="meriyah"||t.parser==="__babel_estree")&&e.type==="MethodDefinition"&&e.value&&e.value.type==="FunctionExpression"&&De(e.value).length===0&&!e.value.returnType&&!O(e.value.typeParameters)&&e.value.body)return[...e.decorators||[],e.key,e.value.body]}function Cx(e){return Te(e)&&e.value[0]==="*"&&/@type\b/.test(e.value)}function ps(e){let t=e.getValue(),r=e.getParentNode(),n=u=>gu(Ye(u,_.Leading))||gu(Ye(u,_.Trailing));return(t&&(ae(t)||Tn(t)||U(r)&&n(t))||r&&(r.type==="JSXSpreadAttribute"||r.type==="JSXSpreadChild"||r.type==="UnionTypeAnnotation"||r.type==="TSUnionType"||(r.type==="ClassDeclaration"||r.type==="ClassExpression")&&r.superClass===t))&&(!ns(e)||r.type==="UnionTypeAnnotation"||r.type==="TSUnionType")}p();function Wc(e,t){let r=e.getParentNode();if(!r)return!1;let n=e.getName(),u=e.getNode();if(t.__isInHtmlInterpolation&&!t.bracketSpacing&&Tx(u)&&Fu(e))return!0;if(Fx(u))return!1;if(t.parser!=="flow"&&Tn(e.getValue()))return!0;if(u.type==="Identifier")return!!(u.extra&&u.extra.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(u.name)||n==="left"&&u.name==="async"&&r.type==="ForOfStatement"&&!r.await);switch(r.type){case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":{if(n==="superClass"&&(u.type==="ArrowFunctionExpression"||u.type==="AssignmentExpression"||u.type==="AwaitExpression"||u.type==="BinaryExpression"||u.type==="ConditionalExpression"||u.type==="LogicalExpression"||u.type==="NewExpression"||u.type==="ObjectExpression"||u.type==="SequenceExpression"||u.type==="TaggedTemplateExpression"||u.type==="UnaryExpression"||u.type==="UpdateExpression"||u.type==="YieldExpression"||u.type==="TSNonNullExpression"))return!0;break}case"ExportDefaultDeclaration":return g0(e,t)||u.type==="SequenceExpression";case"Decorator":{if(n==="expression"){let i=!1,s=!1,a=u;for(;a;)switch(a.type){case"MemberExpression":s=!0,a=a.object;break;case"CallExpression":if(s||i)return t.parser!=="typescript";i=!0,a=a.callee;break;case"Identifier":return!1;case"TaggedTemplateExpression":return t.parser!=="typescript";default:return!0}return!0}break}case"ExpressionStatement":{if(ut(u,!0))return!0;break}case"ArrowFunctionExpression":{if(n==="body"&&u.type!=="SequenceExpression"&&ut(u,!1))return!0;break}}switch(u.type){case"UpdateExpression":if(r.type==="UnaryExpression")return u.prefix&&(u.operator==="++"&&r.operator==="+"||u.operator==="--"&&r.operator==="-");case"UnaryExpression":switch(r.type){case"UnaryExpression":return u.operator===r.operator&&(u.operator==="+"||u.operator==="-");case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"TaggedTemplateExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"BinaryExpression":return n==="left"&&r.operator==="**";case"TSNonNullExpression":return!0;default:return!1}case"BinaryExpression":{if(r.type==="UpdateExpression"||u.operator==="in"&&xx(e))return!0;if(u.operator==="|>"&&u.extra&&u.extra.parenthesized){let i=e.getParentNode(1);if(i.type==="BinaryExpression"&&i.operator==="|>")return!0}}case"TSTypeAssertion":case"TSAsExpression":case"LogicalExpression":switch(r.type){case"TSAsExpression":return u.type!=="TSAsExpression";case"ConditionalExpression":return u.type==="TSAsExpression";case"CallExpression":case"NewExpression":case"OptionalCallExpression":return n==="callee";case"ClassExpression":case"ClassDeclaration":return n==="superClass";case"TSTypeAssertion":case"TaggedTemplateExpression":case"UnaryExpression":case"JSXSpreadAttribute":case"SpreadElement":case"SpreadProperty":case"BindExpression":case"AwaitExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"AssignmentExpression":case"AssignmentPattern":return n==="left"&&(u.type==="TSTypeAssertion"||u.type==="TSAsExpression");case"LogicalExpression":if(u.type==="LogicalExpression")return r.operator!==u.operator;case"BinaryExpression":{let{operator:i,type:s}=u;if(!i&&s!=="TSTypeAssertion")return!0;let a=yu(i),o=r.operator,c=yu(o);return c>a||n==="right"&&c===a||c===a&&!hu(o,i)?!0:c<a&&i==="%"?o==="+"||o==="-":!!gD(o)}default:return!1}case"SequenceExpression":switch(r.type){case"ReturnStatement":return!1;case"ForStatement":return!1;case"ExpressionStatement":return n!=="expression";case"ArrowFunctionExpression":return n!=="body";default:return!0}case"YieldExpression":if(r.type==="UnaryExpression"||r.type==="AwaitExpression"||r.type==="TSAsExpression"||r.type==="TSNonNullExpression")return!0;case"AwaitExpression":switch(r.type){case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"SpreadElement":case"SpreadProperty":case"TSAsExpression":case"TSNonNullExpression":case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"ConditionalExpression":return n==="test";case"BinaryExpression":return!(!u.argument&&r.operator==="|>");default:return!1}case"TSConditionalType":if(n==="extendsType"&&r.type==="TSConditionalType")return!0;case"TSFunctionType":case"TSConstructorType":if(n==="checkType"&&r.type==="TSConditionalType")return!0;case"TSUnionType":case"TSIntersectionType":if((r.type==="TSUnionType"||r.type==="TSIntersectionType")&&r.types.length>1&&(!u.types||u.types.length>1))return!0;case"TSInferType":if(u.type==="TSInferType"&&r.type==="TSRestType")return!1;case"TSTypeOperator":return r.type==="TSArrayType"||r.type==="TSOptionalType"||r.type==="TSRestType"||n==="objectType"&&r.type==="TSIndexedAccessType"||r.type==="TSTypeOperator"||r.type==="TSTypeAnnotation"&&e.getParentNode(1).type.startsWith("TSJSDoc");case"ArrayTypeAnnotation":return r.type==="NullableTypeAnnotation";case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return r.type==="ArrayTypeAnnotation"||r.type==="NullableTypeAnnotation"||r.type==="IntersectionTypeAnnotation"||r.type==="UnionTypeAnnotation"||n==="objectType"&&(r.type==="IndexedAccessType"||r.type==="OptionalIndexedAccessType");case"NullableTypeAnnotation":return r.type==="ArrayTypeAnnotation"||n==="objectType"&&(r.type==="IndexedAccessType"||r.type==="OptionalIndexedAccessType");case"FunctionTypeAnnotation":{let i=r.type==="NullableTypeAnnotation"?e.getParentNode(1):r;return i.type==="UnionTypeAnnotation"||i.type==="IntersectionTypeAnnotation"||i.type==="ArrayTypeAnnotation"||n==="objectType"&&(i.type==="IndexedAccessType"||i.type==="OptionalIndexedAccessType")||i.type==="NullableTypeAnnotation"||r.type==="FunctionTypeParam"&&r.name===null&&De(u).some(s=>s.typeAnnotation&&s.typeAnnotation.type==="NullableTypeAnnotation")}case"OptionalIndexedAccessType":return n==="objectType"&&r.type==="IndexedAccessType";case"TypeofTypeAnnotation":return n==="objectType"&&(r.type==="IndexedAccessType"||r.type==="OptionalIndexedAccessType");case"StringLiteral":case"NumericLiteral":case"Literal":if(typeof u.value=="string"&&r.type==="ExpressionStatement"&&!r.directive){let i=e.getParentNode(1);return i.type==="Program"||i.type==="BlockStatement"}return n==="object"&&r.type==="MemberExpression"&&typeof u.value=="number";case"AssignmentExpression":{let i=e.getParentNode(1);return n==="body"&&r.type==="ArrowFunctionExpression"?!0:n==="key"&&(r.type==="ClassProperty"||r.type==="PropertyDefinition")&&r.computed||(n==="init"||n==="update")&&r.type==="ForStatement"?!1:r.type==="ExpressionStatement"?u.left.type==="ObjectPattern":!(n==="key"&&r.type==="TSPropertySignature"||r.type==="AssignmentExpression"||r.type==="SequenceExpression"&&i&&i.type==="ForStatement"&&(i.init===r||i.update===r)||n==="value"&&r.type==="Property"&&i&&i.type==="ObjectPattern"&&i.properties.includes(r)||r.type==="NGChainedExpression")}case"ConditionalExpression":switch(r.type){case"TaggedTemplateExpression":case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":case"ExportDefaultDeclaration":case"AwaitExpression":case"JSXSpreadAttribute":case"TSTypeAssertion":case"TypeCastExpression":case"TSAsExpression":case"TSNonNullExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"ConditionalExpression":return n==="test";case"MemberExpression":case"OptionalMemberExpression":return n==="object";default:return!1}case"FunctionExpression":switch(r.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"TaggedTemplateExpression":return!0;default:return!1}case"ArrowFunctionExpression":switch(r.type){case"BinaryExpression":return r.operator!=="|>"||u.extra&&u.extra.parenthesized;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"TSAsExpression":case"TSNonNullExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"AwaitExpression":case"TSTypeAssertion":return!0;case"ConditionalExpression":return n==="test";default:return!1}case"ClassExpression":if(O(u.decorators))return!0;switch(r.type){case"NewExpression":return n==="callee";default:return!1}case"OptionalMemberExpression":case"OptionalCallExpression":{let i=e.getParentNode(1);if(n==="object"&&r.type==="MemberExpression"||n==="callee"&&(r.type==="CallExpression"||r.type==="NewExpression")||r.type==="TSNonNullExpression"&&i.type==="MemberExpression"&&i.object===r)return!0}case"CallExpression":case"MemberExpression":case"TaggedTemplateExpression":case"TSNonNullExpression":if(n==="callee"&&(r.type==="BindExpression"||r.type==="NewExpression")){let i=u;for(;i;)switch(i.type){case"CallExpression":case"OptionalCallExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":case"BindExpression":i=i.object;break;case"TaggedTemplateExpression":i=i.tag;break;case"TSNonNullExpression":i=i.expression;break;default:return!1}}return!1;case"BindExpression":return n==="callee"&&(r.type==="BindExpression"||r.type==="NewExpression")||n==="object"&&Z(r);case"NGPipeExpression":return!(r.type==="NGRoot"||r.type==="NGMicrosyntaxExpression"||r.type==="ObjectProperty"&&!(u.extra&&u.extra.parenthesized)||r.type==="ArrayExpression"||U(r)&&r.arguments[n]===u||n==="right"&&r.type==="NGPipeExpression"||n==="property"&&r.type==="MemberExpression"||r.type==="AssignmentExpression");case"JSXFragment":case"JSXElement":return n==="callee"||n==="left"&&r.type==="BinaryExpression"&&r.operator==="<"||r.type!=="ArrayExpression"&&r.type!=="ArrowFunctionExpression"&&r.type!=="AssignmentExpression"&&r.type!=="AssignmentPattern"&&r.type!=="BinaryExpression"&&r.type!=="NewExpression"&&r.type!=="ConditionalExpression"&&r.type!=="ExpressionStatement"&&r.type!=="JsExpressionRoot"&&r.type!=="JSXAttribute"&&r.type!=="JSXElement"&&r.type!=="JSXExpressionContainer"&&r.type!=="JSXFragment"&&r.type!=="LogicalExpression"&&!U(r)&&!Me(r)&&r.type!=="ReturnStatement"&&r.type!=="ThrowStatement"&&r.type!=="TypeCastExpression"&&r.type!=="VariableDeclarator"&&r.type!=="YieldExpression";case"TypeAnnotation":return n==="returnType"&&r.type==="ArrowFunctionExpression"&&Sx(u)}return!1}function Fx(e){return e.type==="BlockStatement"||e.type==="BreakStatement"||e.type==="ClassBody"||e.type==="ClassDeclaration"||e.type==="ClassMethod"||e.type==="ClassProperty"||e.type==="PropertyDefinition"||e.type==="ClassPrivateProperty"||e.type==="ContinueStatement"||e.type==="DebuggerStatement"||e.type==="DeclareClass"||e.type==="DeclareExportAllDeclaration"||e.type==="DeclareExportDeclaration"||e.type==="DeclareFunction"||e.type==="DeclareInterface"||e.type==="DeclareModule"||e.type==="DeclareModuleExports"||e.type==="DeclareVariable"||e.type==="DoWhileStatement"||e.type==="EnumDeclaration"||e.type==="ExportAllDeclaration"||e.type==="ExportDefaultDeclaration"||e.type==="ExportNamedDeclaration"||e.type==="ExpressionStatement"||e.type==="ForInStatement"||e.type==="ForOfStatement"||e.type==="ForStatement"||e.type==="FunctionDeclaration"||e.type==="IfStatement"||e.type==="ImportDeclaration"||e.type==="InterfaceDeclaration"||e.type==="LabeledStatement"||e.type==="MethodDefinition"||e.type==="ReturnStatement"||e.type==="SwitchStatement"||e.type==="ThrowStatement"||e.type==="TryStatement"||e.type==="TSDeclareFunction"||e.type==="TSEnumDeclaration"||e.type==="TSImportEqualsDeclaration"||e.type==="TSInterfaceDeclaration"||e.type==="TSModuleDeclaration"||e.type==="TSNamespaceExportDeclaration"||e.type==="TypeAlias"||e.type==="VariableDeclaration"||e.type==="WhileStatement"||e.type==="WithStatement"}function xx(e){let t=0,r=e.getValue();for(;r;){let n=e.getParentNode(t++);if(n&&n.type==="ForStatement"&&n.init===r)return!0;r=n}return!1}function Sx(e){return Ur(e,t=>t.type==="ObjectTypeAnnotation"&&Ur(t,r=>r.type==="FunctionTypeAnnotation"||void 0)||void 0)}function Tx(e){switch(e.type){case"ObjectExpression":return!0;default:return!1}}function Fu(e){let t=e.getValue(),r=e.getParentNode(),n=e.getName();switch(r.type){case"NGPipeExpression":if(typeof n=="number"&&r.arguments[n]===t&&r.arguments.length-1===n)return e.callParent(Fu);break;case"ObjectProperty":if(n==="value"){let u=e.getParentNode(1);return I(u.properties)===r}break;case"BinaryExpression":case"LogicalExpression":if(n==="right")return e.callParent(Fu);break;case"ConditionalExpression":if(n==="alternate")return e.callParent(Fu);break;case"UnaryExpression":if(r.prefix)return e.callParent(Fu);break}return!1}function g0(e,t){let r=e.getValue(),n=e.getParentNode();return r.type==="FunctionExpression"||r.type==="ClassExpression"?n.type==="ExportDefaultDeclaration"||!Wc(e,t):!bn(r)||n.type!=="ExportDefaultDeclaration"&&Wc(e,t)?!1:e.call(u=>g0(u,t),...Ji(e,r))}var ht=Wc;p();function bx(e,t){switch(t.parser){case"json":case"json5":case"json-stringify":case"__js_expression":case"__vue_expression":case"__vue_ts_expression":return{...e,type:t.parser.startsWith("__")?"JsExpressionRoot":"JsonRoot",node:e,comments:[],rootMarker:t.rootMarker};default:return e}}var fs=bx;p();function h0(e,t,r){let n=e.getValue();if(t.__onHtmlBindingRoot&&e.getName()===null&&t.__onHtmlBindingRoot(n,t),n.type==="File"){if(t.__isVueForBindingLeft)return e.call(u=>{let i=B([",",x],u.map(r,"params")),{params:s}=u.getValue();return s.length===1?i:["(",F([A,h(i)]),A,")"]},"program","body",0);if(t.__isVueBindings)return e.call(u=>B([",",x],u.map(r,"params")),"program","body",0)}}function Gc(e){switch(e.type){case"MemberExpression":switch(e.property.type){case"Identifier":case"NumericLiteral":case"StringLiteral":return Gc(e.object)}return!1;case"Identifier":return!0;default:return!1}}p();p();var Bx=0;function ms(e,t,r){let n=e.getValue(),u=e.getParentNode(),i=e.getParentNode(1),s=n!==u.body&&(u.type==="IfStatement"||u.type==="WhileStatement"||u.type==="SwitchStatement"||u.type==="DoWhileStatement"),a=kc(t)&&n.operator==="|>",o=Jc(e,r,t,!1,s);if(s)return o;if(a)return h(o);if(U(u)&&u.callee===n||u.type==="UnaryExpression"||Z(u)&&!u.computed)return h([F([A,...o]),A]);let c=u.type==="ReturnStatement"||u.type==="ThrowStatement"||u.type==="JSXExpressionContainer"&&i.type==="JSXAttribute"||n.operator!=="|"&&u.type==="JsExpressionRoot"||n.type!=="NGPipeExpression"&&(u.type==="NGRoot"&&t.parser==="__ng_binding"||u.type==="NGMicrosyntaxExpression"&&i.type==="NGMicrosyntax"&&i.body.length===1)||n===u.body&&u.type==="ArrowFunctionExpression"||n!==u.body&&u.type==="ForStatement"||u.type==="ConditionalExpression"&&i.type!=="ReturnStatement"&&i.type!=="ThrowStatement"&&!U(i)||u.type==="TemplateLiteral",l=u.type==="AssignmentExpression"||u.type==="VariableDeclarator"||u.type==="ClassProperty"||u.type==="PropertyDefinition"||u.type==="TSAbstractPropertyDefinition"||u.type==="ClassPrivateProperty"||Me(u),f=yt(n.left)&&hu(n.operator,n.left.operator);if(c||wn(n)&&!f||!wn(n)&&l)return h(o);if(o.length===0)return"";let m=ae(n.right),D=o.findIndex(S=>typeof S!="string"&&!Array.isArray(S)&&S.type===le),y=o.slice(0,D===-1?1:D+1),E=o.slice(y.length,m?-1:void 0),C=Symbol("logicalChain-"+ ++Bx),T=h([...y,F(E)],{id:C});if(!m)return T;let b=I(o);return h([T,Qt(b,{groupId:C})])}function Jc(e,t,r,n,u){let i=e.getValue();if(!yt(i))return[h(t())];let s=[];hu(i.operator,i.left.operator)?s=e.call(E=>Jc(E,t,r,!0,u),"left"):s.push(h(t("left")));let a=wn(i),o=(i.operator==="|>"||i.type==="NGPipeExpression"||i.operator==="|"&&r.parser==="__vue_expression")&&!Tt(r.originalText,i.right),c=i.type==="NGPipeExpression"?"|":i.operator,l=i.type==="NGPipeExpression"&&i.arguments.length>0?h(F([x,": ",B([x,": "],e.map(t,"arguments").map(E=>ne(2,h(E))))])):"",f;if(a)f=[c," ",t("right"),l];else{let C=kc(r)&&c==="|>"?e.call(T=>Jc(T,t,r,!0,u),"right"):t("right");f=[o?x:"",c,o?" ":x,C,l]}let m=e.getParentNode(),D=k(i.left,_.Trailing|_.Line),y=D||!(u&&i.type==="LogicalExpression")&&m.type!==i.type&&i.left.type!==i.type&&i.right.type!==i.type;if(s.push(o?"":" ",y?h(f,{shouldBreak:D}):f),n&&k(i)){let E=Rt(Se(e,s,r));return Array.isArray(E)||E.type===ge?Ot(E):[E]}return s}function wn(e){return e.type!=="LogicalExpression"?!1:!!(e.right.type==="ObjectExpression"&&e.right.properties.length>0||e.right.type==="ArrayExpression"&&e.right.elements.length>0||ae(e.right))}function C0(e,t,r){let n=e.getValue();if(!!n.type.startsWith("NG"))switch(n.type){case"NGRoot":return[r("node"),k(n.node)?" //"+Ye(n.node)[0].value.trimEnd():""];case"NGPipeExpression":return ms(e,t,r);case"NGChainedExpression":return h(B([";",x],e.map(u=>vx(u)?r():["(",r(),")"],"expressions")));case"NGEmptyExpression":return"";case"NGQuotedExpression":return[n.prefix,": ",n.value.trim()];case"NGMicrosyntax":return e.map((u,i)=>[i===0?"":E0(u.getValue(),i,n)?" ":[";",x],r()],"body");case"NGMicrosyntaxKey":return/^[$_a-z][\w$]*(?:-[$_a-z][\w$])*$/i.test(n.name)?n.name:JSON.stringify(n.name);case"NGMicrosyntaxExpression":return[r("expression"),n.alias===null?"":[" as ",r("alias")]];case"NGMicrosyntaxKeyedExpression":{let u=e.getName(),i=e.getParentNode(),s=E0(n,u,i)||(u===1&&(n.key.name==="then"||n.key.name==="else")||u===2&&n.key.name==="else"&&i.body[u-1].type==="NGMicrosyntaxKeyedExpression"&&i.body[u-1].key.name==="then")&&i.body[0].type==="NGMicrosyntaxExpression";return[r("key"),s?" ":": ",r("expression")]}case"NGMicrosyntaxLet":return["let ",r("key"),n.value===null?"":[" = ",r("value")]];case"NGMicrosyntaxAs":return[r("key")," as ",r("alias")];default:throw new Error(`Unknown Angular node type: ${JSON.stringify(n.type)}.`)}}function E0(e,t,r){return e.type==="NGMicrosyntaxKeyedExpression"&&e.key.name==="of"&&t===1&&r.body[0].type==="NGMicrosyntaxLet"&&r.body[0].value===null}function vx(e){return Ur(e.getValue(),t=>{switch(t.type){case void 0:return!1;case"CallExpression":case"OptionalCallExpression":case"AssignmentExpression":return!0}})}p();var Hc=e=>e===""||e===x||e===d||e===A;function wx(e,t,r){let n=e.getValue();if(n.type==="JSXElement"&&Ux(n))return[r("openingElement"),r("closingElement")];let u=n.type==="JSXElement"?r("openingElement"):r("openingFragment"),i=n.type==="JSXElement"?r("closingElement"):r("closingFragment");if(n.children.length===1&&n.children[0].type==="JSXExpressionContainer"&&(n.children[0].expression.type==="TemplateLiteral"||n.children[0].expression.type==="TaggedTemplateExpression"))return[u,...e.map(r,"children"),i];n.children=n.children.map(S=>Wx(S)?{type:"JSXText",value:" ",raw:" "}:S);let s=n.children.some(ae),a=n.children.filter(S=>S.type==="JSXExpressionContainer").length>1,o=n.type==="JSXElement"&&n.openingElement.attributes.length>1,c=pe(u)||s||o||a,l=e.getParentNode().rootMarker==="mdx",f=t.singleQuote?"{' '}":'{" "}',m=l?" ":N([f,A]," "),D=n.openingElement&&n.openingElement.name&&n.openingElement.name.name==="fbt",y=Px(e,t,r,m,D),E=n.children.some(S=>xu(S));for(let S=y.length-2;S>=0;S--){let v=y[S]===""&&y[S+1]==="",w=y[S]===d&&y[S+1]===""&&y[S+2]===d,j=(y[S]===A||y[S]===d)&&y[S+1]===""&&y[S+2]===m,q=y[S]===m&&y[S+1]===""&&(y[S+2]===A||y[S+2]===d),K=y[S]===m&&y[S+1]===""&&y[S+2]===m,X=y[S]===A&&y[S+1]===""&&y[S+2]===d||y[S]===d&&y[S+1]===""&&y[S+2]===A;w&&E||v||j||K||X?y.splice(S,2):q&&y.splice(S+1,2)}for(;y.length>0&&Hc(I(y));)y.pop();for(;y.length>1&&Hc(y[0])&&Hc(y[1]);)y.shift(),y.shift();let C=[];for(let[S,v]of y.entries()){if(v===m){if(S===1&&y[S-1]===""){if(y.length===2){C.push(f);continue}C.push([f,d]);continue}else if(S===y.length-1){C.push(f);continue}else if(y[S-1]===""&&y[S-2]===d){C.push(f);continue}}C.push(v),pe(v)&&(c=!0)}let T=E?se(C):h(C,{shouldBreak:!0});if(l)return T;let b=h([u,F([d,T]),d,i]);return c?b:ft([h([u,...y,i]),b])}function Px(e,t,r,n,u){let i=[];return e.each((s,a,o)=>{let c=s.getValue();if(cr(c)){let l=he(c);if(xu(c)){let f=l.split(Ds);if(f[0]===""){if(i.push(""),f.shift(),/\n/.test(f[0])){let D=o[a+1];i.push(F0(u,f[1],c,D))}else i.push(n);f.shift()}let m;if(I(f)===""&&(f.pop(),m=f.pop()),f.length===0)return;for(let[D,y]of f.entries())D%2===1?i.push(x):i.push(y);if(m!==void 0)if(/\n/.test(m)){let D=o[a+1];i.push(F0(u,I(i),c,D))}else i.push(n);else{let D=o[a+1];i.push(A0(u,I(i),c,D))}}else/\n/.test(l)?l.match(/\n/g).length>1&&i.push("",d):i.push("",n)}else{let l=r();i.push(l);let f=o[a+1];if(f&&xu(f)){let D=qx(he(f)).split(Ds)[0];i.push(A0(u,D,c,f))}else i.push(d)}},"children"),i}function A0(e,t,r,n){return e?"":r.type==="JSXElement"&&!r.closingElement||n&&n.type==="JSXElement"&&!n.closingElement?t.length===1?A:d:A}function F0(e,t,r,n){return e?d:t.length===1?r.type==="JSXElement"&&!r.closingElement||n&&n.type==="JSXElement"&&!n.closingElement?d:A:d}function Ix(e,t,r){let n=e.getParentNode();if(!n||{ArrayExpression:!0,JSXAttribute:!0,JSXElement:!0,JSXExpressionContainer:!0,JSXFragment:!0,ExpressionStatement:!0,CallExpression:!0,OptionalCallExpression:!0,ConditionalExpression:!0,JsExpressionRoot:!0}[n.type])return t;let i=e.match(void 0,a=>a.type==="ArrowFunctionExpression",U,a=>a.type==="JSXExpressionContainer"),s=ht(e,r);return h([s?"":N("("),F([A,t]),A,s?"":N(")")],{shouldBreak:i})}function kx(e,t,r){let n=e.getValue(),u=[];if(u.push(r("name")),n.value){let i;if(we(n.value)){let a=he(n.value).slice(1,-1).replace(/'/g,"'").replace(/"/g,'"'),{escaped:o,quote:c,regex:l}=Or(a,t.jsxSingleQuote?"'":'"');a=a.replace(l,o),i=[c,a,c]}else i=r("value");u.push("=",i)}return u}function Lx(e,t,r){let n=e.getValue(),u=(i,s)=>i.type==="JSXEmptyExpression"||!k(i)&&(i.type==="ArrayExpression"||i.type==="ObjectExpression"||i.type==="ArrowFunctionExpression"||i.type==="AwaitExpression"&&(u(i.argument,i)||i.argument.type==="JSXElement")||U(i)||i.type==="FunctionExpression"||i.type==="TemplateLiteral"||i.type==="TaggedTemplateExpression"||i.type==="DoExpression"||ae(s)&&(i.type==="ConditionalExpression"||yt(i)));return u(n.expression,e.getParentNode(0))?h(["{",r("expression"),Ft,"}"]):h(["{",F([A,r("expression")]),A,Ft,"}"])}function Nx(e,t,r){let n=e.getValue(),u=n.name&&k(n.name)||n.typeParameters&&k(n.typeParameters);if(n.selfClosing&&n.attributes.length===0&&!u)return["<",r("name"),r("typeParameters")," />"];if(n.attributes&&n.attributes.length===1&&n.attributes[0].value&&we(n.attributes[0].value)&&!n.attributes[0].value.value.includes(`
|
|
80
|
-
`)&&!u&&!k(n.attributes[0]))return h(["<",r("name"),r("typeParameters")," ",...e.map(r,"attributes"),n.selfClosing?" />":">"]);let i=n.attributes&&n.attributes.some(a=>a.value&&we(a.value)&&a.value.value.includes(`
|
|
81
|
-
`)),s=t.singleAttributePerLine&&n.attributes.length>1?d:x;return h(["<",r("name"),r("typeParameters"),F(e.map(()=>[s,r()],"attributes")),..._x(n,t,u)],{shouldBreak:i})}function _x(e,t,r){return e.selfClosing?[x,"/>"]:Ox(e,t,r)?[">"]:[A,">"]}function Ox(e,t,r){let n=e.attributes.length>0&&k(I(e.attributes),_.Trailing);return e.attributes.length===0&&!r||(t.bracketSameLine||t.jsxBracketSameLine)&&(!r||e.attributes.length>0)&&!n}function Rx(e,t,r){let n=e.getValue(),u=[];u.push("</");let i=r("name");return k(n.name,_.Leading|_.Line)?u.push(F([d,i]),d):k(n.name,_.Leading|_.Block)?u.push(" ",i):u.push(i),u.push(">"),u}function Mx(e,t){let r=e.getValue(),n=k(r),u=k(r,_.Line),i=r.type==="JSXOpeningFragment";return[i?"<":"</",F([u?d:n&&!i?" ":"",Y(e,t,!0)]),u?d:"",">"]}function jx(e,t,r){let n=Se(e,wx(e,t,r),t);return Ix(e,n,t)}function $x(e,t){let r=e.getValue(),n=k(r,_.Line);return[Y(e,t,!n),n?d:""]}function x0(e,t,r){let n=e.getValue();return["{",e.call(u=>{let i=["...",r()],s=u.getValue();return!k(s)||!ps(u)?i:[F([A,Se(u,i,t)]),A]},n.type==="JSXSpreadAttribute"?"argument":"expression"),"}"]}function S0(e,t,r){let n=e.getValue();if(!!n.type.startsWith("JSX"))switch(n.type){case"JSXAttribute":return kx(e,t,r);case"JSXIdentifier":return String(n.name);case"JSXNamespacedName":return B(":",[r("namespace"),r("name")]);case"JSXMemberExpression":return B(".",[r("object"),r("property")]);case"JSXSpreadAttribute":return x0(e,t,r);case"JSXSpreadChild":return x0(e,t,r);case"JSXExpressionContainer":return Lx(e,t,r);case"JSXFragment":case"JSXElement":return jx(e,t,r);case"JSXOpeningElement":return Nx(e,t,r);case"JSXClosingElement":return Rx(e,t,r);case"JSXOpeningFragment":case"JSXClosingFragment":return Mx(e,t);case"JSXEmptyExpression":return $x(e,t);case"JSXText":throw new Error("JSXTest should be handled by JSXElement");default:throw new Error(`Unknown JSX node type: ${JSON.stringify(n.type)}.`)}}var T0=`
|
|
82
|
-
\r `,Ds=new RegExp("(["+T0+"]+)"),Vx=new RegExp("[^"+T0+"]"),qx=e=>e.replace(new RegExp("(?:^"+Ds.source+"|"+Ds.source+"$)"),"");function Ux(e){if(e.children.length===0)return!0;if(e.children.length>1)return!1;let t=e.children[0];return cr(t)&&!xu(t)}function xu(e){return cr(e)&&(Vx.test(he(e))||!/\n/.test(he(e)))}function Wx(e){return e.type==="JSXExpressionContainer"&&cr(e.expression)&&e.expression.value===" "&&!k(e.expression)}function b0(e){let t=e.getValue(),r=e.getParentNode();if(!r||!t||!ae(t)||!ae(r))return!1;let n=r.children.indexOf(t),u=null;for(let i=n;i>0;i--){let s=r.children[i-1];if(!(s.type==="JSXText"&&!xu(s))){u=s;break}}return u&&u.type==="JSXExpressionContainer"&&u.expression.type==="JSXEmptyExpression"&&rs(u.expression)}p();p();p();p();p();p();p();p();p();p();function oe(e){let t=e.getValue();return!t.optional||t.type==="Identifier"&&t===e.getParentNode().key?"":t.type==="OptionalCallExpression"||t.type==="OptionalMemberExpression"&&t.computed?"?.":"?"}function ds(e){return e.getValue().definite||e.match(void 0,(t,r)=>r==="id"&&t.type==="VariableDeclarator"&&t.definite)?"!":""}function bt(e,t,r){let n=e.getValue();return n.typeArguments?r("typeArguments"):n.typeParameters?r("typeParameters"):""}function st(e,t,r){let n=e.getValue();if(!n.typeAnnotation)return"";let u=e.getParentNode(),i=u.type==="DeclareFunction"&&u.id===n;return Qi(t.originalText,n.typeAnnotation)?[" /*: ",r("typeAnnotation")," */"]:[i?"":": ",r("typeAnnotation")]}function ys(e,t,r){return["::",r("callee")]}function Pn(e,t,r){let n=e.getValue();return O(n.modifiers)?[B(" ",e.map(r,"modifiers"))," "]:""}function lr(e,t,r){return e.type==="EmptyStatement"?";":e.type==="BlockStatement"||r?[" ",t]:F([x,t])}function gs(e,t,r){return["...",r("argument"),st(e,t,r)]}function B0(e,t,r){let n=e.getValue(),u=[],i=n.type==="TupleExpression"?"#[":"[",s="]";if(n.elements.length===0)k(n,_.Dangling)?u.push(h([i,Y(e,t),A,s])):u.push(i,s);else{let a=I(n.elements),o=!(a&&a.type==="RestElement"),c=a===null,l=Symbol("array"),f=!t.__inJestEach&&n.elements.length>1&&n.elements.every((y,E,C)=>{let T=y&&y.type;if(T!=="ArrayExpression"&&T!=="ObjectExpression")return!1;let b=C[E+1];if(b&&T!==b.type)return!1;let S=T==="ArrayExpression"?"elements":"properties";return y[S]&&y[S].length>1}),m=Yc(n,t),D=o?c?",":me(t)?m?N(",","",{groupId:l}):N(","):"":"";u.push(h([i,F([A,m?Gx(e,t,r,D):[Yr(e,t,"elements",r),D],Y(e,t,!0)]),A,s],{shouldBreak:f,id:l}))}return u.push(oe(e),st(e,t,r)),u}function Yc(e,t){return e.elements.length>1&&e.elements.every(r=>r&&(it(r)||Yi(r)&&!k(r.argument))&&!k(r,_.Trailing|_.Line,n=>!ee(t.originalText,H(n),{backwards:!0})))}function Yr(e,t,r,n){let u=[],i=[];return e.each(s=>{u.push(i,h(n())),i=[",",x],s.getValue()&&be(s.getValue(),t)&&i.push(A)},r),u}function Gx(e,t,r,n){let u=[];return e.each((i,s,a)=>{let o=s===a.length-1;u.push([r(),o?n:","]),o||u.push(be(i.getValue(),t)?[d,d]:k(a[s+1],_.Leading|_.Line)?d:x)},"elements"),se(u)}function Jx(e,t,r){let n=e.getValue(),u=n.type==="ImportExpression",i=gt(n);if(i.length===0)return["(",Y(e,t,!0),")"];if(Kx(i))return["(",r(["arguments",0]),", ",r(["arguments",1]),")"];let s=!1,a=!1,o=i.length-1,c=[];Eu(e,(E,C)=>{let T=E.getNode(),b=[r()];C===o||(be(T,t)?(C===0&&(a=!0),s=!0,b.push(",",d,d)):b.push(",",x)),c.push(b)});let l=!(u||n.callee&&n.callee.type==="Import")&&me(t,"all")?",":"";function f(){return h(["(",F([x,...c]),l,x,")"],{shouldBreak:!0})}if(s||e.getParentNode().type!=="Decorator"&&DD(i))return f();let m=Yx(i),D=Hx(i,t);if(m||D){if(m?c.slice(1).some(pe):c.slice(0,-1).some(pe))return f();let E=[];try{Eu(e,(C,T)=>{m&&T===0&&(E=[[r([],{expandFirstArg:!0}),c.length>1?",":"",a?d:x,a?d:""],...c.slice(1)]),D&&T===o&&(E=[...c.slice(0,-1),r([],{expandLastArg:!0})])})}catch(C){if(C instanceof xr)return f();throw C}return[c.some(pe)?te:"",ft([["(",...E,")"],m?["(",h(E[0],{shouldBreak:!0}),...E.slice(1),")"]:["(",...c.slice(0,-1),h(I(E),{shouldBreak:!0}),")"],f()])]}let y=["(",F([A,...c]),N(l),A,")"];return ts(e)?y:h(y,{shouldBreak:c.some(pe)||s})}function Su(e,t=!1){return e.type==="ObjectExpression"&&(e.properties.length>0||k(e))||e.type==="ArrayExpression"&&(e.elements.length>0||k(e))||e.type==="TSTypeAssertion"&&Su(e.expression)||e.type==="TSAsExpression"&&Su(e.expression)||e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&(!e.returnType||!e.returnType.typeAnnotation||e.returnType.typeAnnotation.type!=="TSTypeReference"||Xx(e.body))&&(e.body.type==="BlockStatement"||e.body.type==="ArrowFunctionExpression"&&Su(e.body,!0)||e.body.type==="ObjectExpression"||e.body.type==="ArrayExpression"||!t&&(U(e.body)||e.body.type==="ConditionalExpression")||ae(e.body))||e.type==="DoExpression"||e.type==="ModuleExpression"}function Hx(e,t){let r=I(e),n=Qp(e);return!k(r,_.Leading)&&!k(r,_.Trailing)&&Su(r)&&(!n||n.type!==r.type)&&(e.length!==2||n.type!=="ArrowFunctionExpression"||r.type!=="ArrayExpression")&&!(e.length>1&&r.type==="ArrayExpression"&&Yc(r,t))}function Yx(e){if(e.length!==2)return!1;let[t,r]=e;return t.type==="ModuleExpression"&&zx(r)?!0:!k(t)&&(t.type==="FunctionExpression"||t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement")&&r.type!=="FunctionExpression"&&r.type!=="ArrowFunctionExpression"&&r.type!=="ConditionalExpression"&&!Su(r)}function Kx(e){return e.length===2&&e[0].type==="ArrowFunctionExpression"&&De(e[0]).length===0&&e[0].body.type==="BlockStatement"&&e[1].type==="ArrayExpression"&&!e.some(t=>k(t))}function Xx(e){return e.type==="BlockStatement"&&(e.body.some(t=>t.type!=="EmptyStatement")||k(e,_.Dangling))}function zx(e){return e.type==="ObjectExpression"&&e.properties.length===1&&Me(e.properties[0])&&e.properties[0].key.type==="Identifier"&&e.properties[0].key.name==="type"&&we(e.properties[0].value)&&e.properties[0].value.value==="module"}var Tu=Jx;p();function v0(e,t,r){let n=e.getValue(),u=e.getParentNode(),i,s=0;do i=e.getParentNode(s),s++;while(i&&(Z(i)||i.type==="TSNonNullExpression"));let a=r("object"),o=Kc(e,t,r),c=i&&(i.type==="NewExpression"||i.type==="BindExpression"||i.type==="AssignmentExpression"&&i.left.type!=="Identifier")||n.computed||n.object.type==="Identifier"&&n.property.type==="Identifier"&&!Z(u)||(u.type==="AssignmentExpression"||u.type==="VariableDeclarator")&&(U(n.object)&&n.object.arguments.length>0||n.object.type==="TSNonNullExpression"&&U(n.object.expression)&&n.object.expression.arguments.length>0||a.label==="member-chain");return Zn(a.label==="member-chain"?"member-chain":"member",[a,c?o:h(F([A,o]))])}function Kc(e,t,r){let n=r("property"),u=e.getValue(),i=oe(e);return u.computed?!u.property||it(u.property)?[i,"[",n,"]"]:h([i,"[",F([A,n]),A,"]"]):[i,".",n]}function Qx(e,t,r){let n=e.getParentNode(),u=!n||n.type==="ExpressionStatement",i=[];function s($){let{originalText:Q}=t,ve=tr(Q,$,G);return Q.charAt(ve)===")"?ve!==!1&&_r(Q,ve+1):be($,t)}function a($){let Q=$.getValue();U(Q)&&(Br(Q.callee)||U(Q.callee))?(i.unshift({node:Q,printed:[Se($,[oe($),bt($,t,r),Tu($,t,r)],t),s(Q)?d:""]}),$.call(ve=>a(ve),"callee")):Br(Q)?(i.unshift({node:Q,needsParens:ht($,t),printed:Se($,Z(Q)?Kc($,t,r):ys($,t,r),t)}),$.call(ve=>a(ve),"object")):Q.type==="TSNonNullExpression"?(i.unshift({node:Q,printed:Se($,"!",t)}),$.call(ve=>a(ve),"expression")):i.unshift({node:Q,printed:r()})}let o=e.getValue();i.unshift({node:o,printed:[oe(e),bt(e,t,r),Tu(e,t,r)]}),o.callee&&e.call($=>a($),"callee");let c=[],l=[i[0]],f=1;for(;f<i.length&&(i[f].node.type==="TSNonNullExpression"||U(i[f].node)||Z(i[f].node)&&i[f].node.computed&&it(i[f].node.property));++f)l.push(i[f]);if(!U(i[0].node))for(;f+1<i.length&&(Br(i[f].node)&&Br(i[f+1].node));++f)l.push(i[f]);c.push(l),l=[];let m=!1;for(;f<i.length;++f){if(m&&Br(i[f].node)){if(i[f].node.computed&&it(i[f].node.property)){l.push(i[f]);continue}c.push(l),l=[],m=!1}(U(i[f].node)||i[f].node.type==="ImportExpression")&&(m=!0),l.push(i[f]),k(i[f].node,_.Trailing)&&(c.push(l),l=[],m=!1)}l.length>0&&c.push(l);function D($){return/^[A-Z]|^[$_]+$/.test($)}function y($){return $.length<=t.tabWidth}function E($){let Q=$[1].length>0&&$[1][0].node.computed;if($[0].length===1){let Jn=$[0][0].node;return Jn.type==="ThisExpression"||Jn.type==="Identifier"&&(D(Jn.name)||u&&y(Jn.name)||Q)}let ve=I($[0]).node;return Z(ve)&&ve.property.type==="Identifier"&&(D(ve.property.name)||Q)}let C=c.length>=2&&!k(c[1][0].node)&&E(c);function T($){let Q=$.map(ve=>ve.printed);return $.length>0&&I($).needsParens?["(",...Q,")"]:Q}function b($){return $.length===0?"":F(h([d,B(d,$.map(T))]))}let S=c.map(T),v=S,w=C?3:2,j=c.flat(),q=j.slice(1,-1).some($=>k($.node,_.Leading))||j.slice(0,-1).some($=>k($.node,_.Trailing))||c[w]&&k(c[w][0].node,_.Leading);if(c.length<=w&&!q)return ts(e)?v:h(v);let K=I(c[C?1:0]).node,X=!U(K)&&s(K),W=[T(c[0]),C?c.slice(1,2).map(T):"",X?d:"",b(c.slice(C?2:1))],ce=i.map(({node:$})=>$).filter(U);function Be(){let $=I(I(c)).node,Q=I(S);return U($)&&pe(Q)&&ce.slice(0,-1).some(ve=>ve.arguments.some(Sn))}let Nt;return q||ce.length>2&&ce.some($=>!$.arguments.every(Q=>sr(Q,0)))||S.slice(0,-1).some(pe)||Be()?Nt=h(W):Nt=[pe(v)||X?te:"",ft([v,W])],Zn("member-chain",Nt)}var w0=Qx;function hs(e,t,r){let n=e.getValue(),u=e.getParentNode(),i=n.type==="NewExpression",s=n.type==="ImportExpression",a=oe(e),o=gt(n);if(o.length>0&&(!s&&!i&&Zx(n,u)||o.length===1&&Zi(o[0],t.originalText)||!i&&Wr(n,u))){let f=[];return Eu(e,()=>{f.push(r())}),[i?"new ":"",r("callee"),a,bt(e,t,r),"(",B(", ",f),")"]}let c=(t.parser==="babel"||t.parser==="babel-flow")&&n.callee&&n.callee.type==="Identifier"&&gu(n.callee.trailingComments);if(c&&(n.callee.trailingComments[0].printed=!0),!s&&!i&&Br(n.callee)&&!e.call(f=>ht(f,t),"callee"))return w0(e,t,r);let l=[i?"new ":"",s?"import":r("callee"),a,c?`/*:: ${n.callee.trailingComments[0].value.slice(2).trim()} */`:"",bt(e,t,r),Tu(e,t,r)];return s||U(n.callee)?h(l):l}function Zx(e,t){if(e.callee.type!=="Identifier")return!1;if(e.callee.name==="require")return!0;if(e.callee.name==="define"){let r=gt(e);return t.type==="ExpressionStatement"&&(r.length===1||r.length===2&&r[0].type==="ArrayExpression"||r.length===3&&we(r[0])&&r[1].type==="ArrayExpression")}return!1}function wr(e,t,r,n,u,i){let s=e1(e,t,r,n,i),a=r(i,{assignmentLayout:s});switch(s){case"break-after-operator":return h([h(n),u,h(F([x,a]))]);case"never-break-after-operator":return h([h(n),u," ",a]);case"fluid":{let o=Symbol("assignment");return h([h(n),u,h(F(x),{id:o}),Ft,Qt(a,{groupId:o})])}case"break-lhs":return h([n,u," ",h(a)]);case"chain":return[h(n),u,x,a];case"chain-tail":return[h(n),u,F([x,a])];case"chain-tail-arrow-chain":return[h(n),u,a];case"only-left":return n}}function I0(e,t,r){let n=e.getValue();return wr(e,t,r,r("left"),[" ",n.operator],"right")}function k0(e,t,r){return wr(e,t,r,r("id")," =","init")}function e1(e,t,r,n,u){let i=e.getValue(),s=i[u];if(!s)return"only-left";let a=!Es(s);if(e.match(Es,L0,f=>!a||f.type!=="ExpressionStatement"&&f.type!=="VariableDeclaration"))return a?s.type==="ArrowFunctionExpression"&&s.body.type==="ArrowFunctionExpression"?"chain-tail-arrow-chain":"chain-tail":"chain";if(!a&&Es(s.right)||Tt(t.originalText,s))return"break-after-operator";if(s.type==="CallExpression"&&s.callee.name==="require"||t.parser==="json5"||t.parser==="json")return"never-break-after-operator";if(r1(i)||n1(i)||s1(i)||Xc(i)&&za(n))return"break-lhs";let l=l1(i,n,t);return e.call(()=>t1(e,t,r,l),u)?"break-after-operator":l||s.type==="TemplateLiteral"||s.type==="TaggedTemplateExpression"||s.type==="BooleanLiteral"||it(s)||s.type==="ClassExpression"?"never-break-after-operator":"fluid"}function t1(e,t,r,n){let u=e.getValue();if(yt(u)&&!wn(u))return!0;switch(u.type){case"StringLiteralTypeAnnotation":case"SequenceExpression":return!0;case"ConditionalExpression":{let{test:a}=u;return yt(a)&&!wn(a)}case"ClassExpression":return O(u.decorators)}if(n)return!1;let i=u,s=[];for(;;)if(i.type==="UnaryExpression")i=i.argument,s.push("argument");else if(i.type==="TSNonNullExpression")i=i.expression,s.push("expression");else break;return!!(we(i)||e.call(()=>N0(e,t,r),...s))}function r1(e){if(L0(e)){let t=e.left||e.id;return t.type==="ObjectPattern"&&t.properties.length>2&&t.properties.some(r=>Me(r)&&(!r.shorthand||r.value&&r.value.type==="AssignmentPattern"))}return!1}function Es(e){return e.type==="AssignmentExpression"}function L0(e){return Es(e)||e.type==="VariableDeclarator"}function n1(e){let t=u1(e);if(O(t)){let r=e.type==="TSTypeAliasDeclaration"?"constraint":"bound";if(t.length>1&&t.some(n=>n[r]||n.default))return!0}return!1}function u1(e){return i1(e)&&e.typeParameters&&e.typeParameters.params?e.typeParameters.params:null}function i1(e){return e.type==="TSTypeAliasDeclaration"||e.type==="TypeAlias"}function s1(e){if(e.type!=="VariableDeclarator")return!1;let{typeAnnotation:t}=e.id;if(!t||!t.typeAnnotation)return!1;let r=P0(t.typeAnnotation);return O(r)&&r.length>1&&r.some(n=>O(P0(n))||n.type==="TSConditionalType")}function Xc(e){return e.type==="VariableDeclarator"&&e.init&&e.init.type==="ArrowFunctionExpression"}function P0(e){return a1(e)&&e.typeParameters&&e.typeParameters.params?e.typeParameters.params:null}function a1(e){return e.type==="TSTypeReference"||e.type==="GenericTypeAnnotation"}function N0(e,t,r,n=!1){let u=e.getValue(),i=()=>N0(e,t,r,!0);if(u.type==="TSNonNullExpression")return e.call(i,"expression");if(U(u)){if(hs(e,t,r).label==="member-chain")return!1;let a=gt(u);return!(a.length===0||a.length===1&&c1(a[0],t))||p1(u,r)?!1:e.call(i,"callee")}return Z(u)?e.call(i,"object"):n&&(u.type==="Identifier"||u.type==="ThisExpression")}var o1=.25;function c1(e,{printWidth:t}){if(k(e))return!1;let r=t*o1;if(e.type==="ThisExpression"||e.type==="Identifier"&&e.name.length<=r||Yi(e)&&!k(e.argument))return!0;let n=e.type==="Literal"&&"regex"in e&&e.regex.pattern||e.type==="RegExpLiteral"&&e.pattern;return n?n.length<=r:we(e)?he(e).length<=r:e.type==="TemplateLiteral"?e.expressions.length===0&&e.quasis[0].value.raw.length<=r&&!e.quasis[0].value.raw.includes(`
|
|
83
|
-
`):cr(e)}function l1(e,t,r){if(!Me(e))return!1;t=Rt(t);let n=3;return typeof t=="string"&&Ne(t)<r.tabWidth+n}function p1(e,t){let r=f1(e);if(O(r)){if(r.length>1)return!0;if(r.length===1){let u=r[0];if(u.type==="TSUnionType"||u.type==="UnionTypeAnnotation"||u.type==="TSIntersectionType"||u.type==="IntersectionTypeAnnotation"||u.type==="TSTypeLiteral"||u.type==="ObjectTypeAnnotation")return!0}let n=e.typeParameters?"typeParameters":"typeArguments";if(pe(t(n)))return!0}return!1}function f1(e){return e.typeParameters&&e.typeParameters.params||e.typeArguments&&e.typeArguments.params}p();function pr(e,t,r,n,u){let i=e.getValue(),s=De(i),a=u?bt(e,r,t):"";if(s.length===0)return[a,"(",Y(e,r,!0,y=>St(r.originalText,y,G)===")"),")"];let o=e.getParentNode(),c=Wr(o),l=Cs(i),f=[];if(ED(e,(y,E)=>{let C=E===s.length-1;C&&i.rest&&f.push("..."),f.push(t()),!C&&(f.push(","),c||l?f.push(" "):be(s[E],r)?f.push(d,d):f.push(x))}),n&&!D1(e)){if(pe(a)||pe(f))throw new xr;return h([hr(a),"(",hr(f),")"])}let m=s.every(y=>!y.decorators);return l&&m?[a,"(",...f,")"]:c?[a,"(",...f,")"]:(Xi(o)||pD(o)||o.type==="TypeAlias"||o.type==="UnionTypeAnnotation"||o.type==="TSUnionType"||o.type==="IntersectionTypeAnnotation"||o.type==="FunctionTypeAnnotation"&&o.returnType===i)&&s.length===1&&s[0].name===null&&i.this!==s[0]&&s[0].typeAnnotation&&i.typeParameters===null&&zi(s[0].typeAnnotation)&&!i.rest?r.arrowParens==="always"?["(",...f,")"]:f:[a,"(",F([A,...f]),N(!hD(i)&&me(r,"all")?",":""),A,")"]}function Cs(e){if(!e)return!1;let t=De(e);if(t.length!==1)return!1;let[r]=t;return!k(r)&&(r.type==="ObjectPattern"||r.type==="ArrayPattern"||r.type==="Identifier"&&r.typeAnnotation&&(r.typeAnnotation.type==="TypeAnnotation"||r.typeAnnotation.type==="TSTypeAnnotation")&&dt(r.typeAnnotation.typeAnnotation)||r.type==="FunctionTypeParam"&&dt(r.typeAnnotation)||r.type==="AssignmentPattern"&&(r.left.type==="ObjectPattern"||r.left.type==="ArrayPattern")&&(r.right.type==="Identifier"||r.right.type==="ObjectExpression"&&r.right.properties.length===0||r.right.type==="ArrayExpression"&&r.right.elements.length===0))}function m1(e){let t;return e.returnType?(t=e.returnType,t.typeAnnotation&&(t=t.typeAnnotation)):e.typeAnnotation&&(t=e.typeAnnotation),t}function Kr(e,t){let r=m1(e);if(!r)return!1;let n=e.typeParameters&&e.typeParameters.params;if(n){if(n.length>1)return!1;if(n.length===1){let u=n[0];if(u.constraint||u.default)return!1}}return De(e).length===1&&(dt(r)||pe(t))}function D1(e){return e.match(t=>t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement",(t,r)=>{if(t.type==="CallExpression"&&r==="arguments"&&t.arguments.length===1&&t.callee.type==="CallExpression"){let n=t.callee.callee;return n.type==="Identifier"||n.type==="MemberExpression"&&!n.computed&&n.object.type==="Identifier"&&n.property.type==="Identifier"}return!1},(t,r)=>t.type==="VariableDeclarator"&&r==="init"||t.type==="ExportDefaultDeclaration"&&r==="declaration"||t.type==="TSExportAssignment"&&r==="expression"||t.type==="AssignmentExpression"&&r==="right"&&t.left.type==="MemberExpression"&&t.left.object.type==="Identifier"&&t.left.object.name==="module"&&t.left.property.type==="Identifier"&&t.left.property.name==="exports",t=>t.type!=="VariableDeclaration"||t.kind==="const"&&t.declarations.length===1)}function bu(e){if(zi(e)||dt(e))return!0;if(e.type==="UnionTypeAnnotation"||e.type==="TSUnionType"){let t=e.types.filter(n=>n.type==="VoidTypeAnnotation"||n.type==="TSVoidKeyword"||n.type==="NullLiteralTypeAnnotation"||n.type==="TSNullKeyword").length,r=e.types.some(n=>n.type==="ObjectTypeAnnotation"||n.type==="TSTypeLiteral"||n.type==="GenericTypeAnnotation"||n.type==="TSTypeReference");if(e.types.length-1===t&&r)return!0}return!1}function zc(e,t,r){let n=t.semi?";":"",u=e.getValue(),i=[];return i.push("opaque type ",r("id"),r("typeParameters")),u.supertype&&i.push(": ",r("supertype")),u.impltype&&i.push(" = ",r("impltype")),i.push(n),i}function Bu(e,t,r){let n=t.semi?";":"",u=e.getValue(),i=[];u.declare&&i.push("declare "),i.push("type ",r("id"),r("typeParameters"));let s=u.type==="TSTypeAliasDeclaration"?"typeAnnotation":"right";return[wr(e,t,r,i," =",s),n]}function As(e,t,r){let n=e.getValue(),u=e.map(r,"types"),i=[],s=!1;for(let a=0;a<u.length;++a)a===0?i.push(u[a]):dt(n.types[a-1])&&dt(n.types[a])?i.push([" & ",s?F(u[a]):u[a]]):!dt(n.types[a-1])&&!dt(n.types[a])?i.push(F([" &",x,u[a]])):(a>1&&(s=!0),i.push(" & ",a>1?F(u[a]):u[a]));return h(i)}function Fs(e,t,r){let n=e.getValue(),u=e.getParentNode(),i=u.type!=="TypeParameterInstantiation"&&u.type!=="TSTypeParameterInstantiation"&&u.type!=="GenericTypeAnnotation"&&u.type!=="TSTypeReference"&&u.type!=="TSTypeAssertion"&&u.type!=="TupleTypeAnnotation"&&u.type!=="TSTupleType"&&!(u.type==="FunctionTypeParam"&&!u.name&&e.getParentNode(1).this!==u)&&!((u.type==="TypeAlias"||u.type==="VariableDeclarator"||u.type==="TSTypeAliasDeclaration")&&Tt(t.originalText,n)),s=bu(n),a=e.map(l=>{let f=r();return s||(f=ne(2,f)),Se(l,f,t)},"types");if(s)return B(" | ",a);let o=i&&!Tt(t.originalText,n),c=[N([o?x:"","| "]),B([x,"| "],a)];return ht(e,t)?h([F(c),A]):u.type==="TupleTypeAnnotation"&&u.types.length>1||u.type==="TSTupleType"&&u.elementTypes.length>1?h([F([N(["(",A]),c]),A,N(")")]):h(i?F(c):c)}function xs(e,t,r){let n=e.getValue(),u=[],i=e.getParentNode(0),s=e.getParentNode(1),a=e.getParentNode(2),o=n.type==="TSFunctionType"||!((i.type==="ObjectTypeProperty"||i.type==="ObjectTypeInternalSlot")&&!i.variance&&!i.optional&&H(i)===H(n)||i.type==="ObjectTypeCallProperty"||a&&a.type==="DeclareFunction"),c=o&&(i.type==="TypeAnnotation"||i.type==="TSTypeAnnotation"),l=c&&o&&(i.type==="TypeAnnotation"||i.type==="TSTypeAnnotation")&&s.type==="ArrowFunctionExpression";Xi(i)&&(o=!0,c=!0),l&&u.push("(");let f=pr(e,r,t,!1,!0),m=n.returnType||n.predicate||n.typeAnnotation?[o?" => ":": ",r("returnType"),r("predicate"),r("typeAnnotation")]:"",D=Kr(n,m);return u.push(D?h(f):f),m&&u.push(m),l&&u.push(")"),h(u)}function Ss(e,t,r){let n=e.getValue(),u=n.type==="TSTupleType"?"elementTypes":"types",i=n[u],s=O(i),a=s?A:"";return h(["[",F([a,Yr(e,t,u,r)]),N(s&&me(t,"all")?",":""),Y(e,t,!0),a,"]"])}function Ts(e,t,r){let n=e.getValue(),u=n.type==="OptionalIndexedAccessType"&&n.optional?"?.[":"[";return[r("objectType"),u,r("indexType"),"]"]}function Qc(e,t,r){let n=e.getValue();return[n.postfix?"":r,t("typeAnnotation"),n.postfix?r:""]}var vu=hi("typeParameters");function Xr(e,t,r,n){let u=e.getValue();if(!u[n])return"";if(!Array.isArray(u[n]))return r(n);let i=e.getNode(2),s=i&&Wr(i);if(!e.match(l=>!(l[n].length===1&&dt(l[n][0])),void 0,(l,f)=>f==="typeAnnotation",l=>l.type==="Identifier",Xc)&&(s||u[n].length===0||u[n].length===1&&(u[n][0].type==="NullableTypeAnnotation"||bu(u[n][0]))))return["<",B(", ",e.map(r,n)),d1(e,t),">"];let c=u.type==="TSTypeParameterInstantiation"?"":De(u).length===1&&yD(t)&&!u[n][0].constraint&&e.getParentNode().type==="ArrowFunctionExpression"?",":me(t,"all")?N(","):"";return h(["<",F([A,B([",",x],e.map(r,n))]),c,A,">"],{id:vu(u)})}function d1(e,t){let r=e.getValue();if(!k(r,_.Dangling))return"";let n=!k(r,_.Line),u=Y(e,t,n);return n?u:[u,d]}function bs(e,t,r){let n=e.getValue(),u=[],i=e.getParentNode();return i.type==="TSMappedType"?(u.push("[",r("name")),n.constraint&&u.push(" in ",r("constraint")),i.nameType&&u.push(" as ",e.callParent(()=>r("nameType"))),u.push("]"),u):(n.variance&&u.push(r("variance")),n.in&&u.push("in "),n.out&&u.push("out "),u.push(r("name")),n.bound&&u.push(": ",r("bound")),n.constraint&&u.push(" extends ",r("constraint")),n.default&&u.push(" = ",r("default")),u)}p();p();var Bs=new WeakMap;function fr(e,t,r){let n=e.getNode();if(n.computed)return["[",r("key"),"]"];let u=e.getParentNode(),{key:i}=n;if(n.type==="ClassPrivateProperty"&&i.type==="Identifier")return["#",r("key")];if(t.quoteProps==="consistent"&&!Bs.has(u)){let s=(u.properties||u.body||u.members).some(a=>!a.computed&&a.key&&we(a.key)&&!Pc(a,t));Bs.set(u,s)}if((i.type==="Identifier"||it(i)&&Ic(qe(he(i)))&&String(i.value)===qe(he(i))&&!(t.parser==="typescript"||t.parser==="babel-ts"))&&(t.parser==="json"||t.quoteProps==="consistent"&&Bs.get(u))){let s=Vt(JSON.stringify(i.type==="Identifier"?i.name:i.value.toString()),t);return e.call(a=>Se(a,s,t),"key")}return Pc(n,t)&&(t.quoteProps==="as-needed"||t.quoteProps==="consistent"&&!Bs.get(u))?e.call(s=>Se(s,/^\d/.test(i.value)?qe(i.value):i.value,t),"key"):r("key")}function _0(e,t,r){return e.getValue().shorthand?r("value"):wr(e,t,r,fr(e,t,r),":","value")}function ws(e,t,r,n){let u=e.getValue(),i=!1;if((u.type==="FunctionDeclaration"||u.type==="FunctionExpression")&&n&&n.expandLastArg){let l=e.getParentNode();U(l)&>(l).length>1&&(i=!0)}let s=[];u.type==="TSDeclareFunction"&&u.declare&&s.push("declare "),u.async&&s.push("async "),u.generator?s.push("function* "):s.push("function "),u.id&&s.push(t("id"));let a=pr(e,t,r,i),o=el(e,t,r),c=Kr(u,o);return s.push(bt(e,r,t),h([c?h(a):a,o]),u.body?" ":"",t("body")),r.semi&&(u.declare||!u.body)&&s.push(";"),s}function wu(e,t,r){let n=e.getNode(),{kind:u}=n,i=n.value||n,s=[];return!u||u==="init"||u==="method"||u==="constructor"?i.async&&s.push("async "):(He.ok(u==="get"||u==="set"),s.push(u," ")),i.generator&&s.push("*"),s.push(fr(e,t,r),n.optional||n.key.optional?"?":""),n===i?s.push(vs(e,t,r)):i.type==="FunctionExpression"?s.push(e.call(a=>vs(a,t,r),"value")):s.push(r("value")),s}function vs(e,t,r){let n=e.getNode(),u=pr(e,r,t),i=el(e,r,t),s=Kr(n,i),a=[bt(e,t,r),h([s?h(u):u,i])];return n.body?a.push(" ",r("body")):a.push(t.semi?";":""),a}function y1(e,t,r,n){let u=e.getValue(),i=[];if(u.async&&i.push("async "),Zc(e,t))i.push(r(["params",0]));else{let a=n&&(n.expandLastArg||n.expandFirstArg),o=el(e,r,t);if(a){if(pe(o))throw new xr;o=h(hr(o))}i.push(h([pr(e,r,t,a,!0),o]))}let s=Y(e,t,!0,a=>{let o=tr(t.originalText,a,G);return o!==!1&&t.originalText.slice(o,o+2)==="=>"});return s&&i.push(" ",s),i}function g1(e,t,r,n,u,i){let s=e.getName(),a=e.getParentNode(),o=Au(a)&&s==="callee",c=Boolean(t&&t.assignmentLayout),l=i.body.type!=="BlockStatement"&&i.body.type!=="ObjectExpression"&&i.body.type!=="SequenceExpression",f=o&&l||t&&t.assignmentLayout==="chain-tail-arrow-chain",m=Symbol("arrow-chain");return i.body.type==="SequenceExpression"&&(u=h(["(",F([A,u]),A,")"])),h([h(F([o||c?A:"",h(B([" =>",x],r),{shouldBreak:n})]),{id:m,shouldBreak:f})," =>",Qt(l?F([x,u]):[" ",u],{groupId:m}),o?N(A,"",{groupId:m}):""])}function O0(e,t,r,n){let u=e.getValue(),i=[],s=[],a=!1;if(function m(){let D=y1(e,t,r,n);if(i.length===0)i.push(D);else{let{leading:y,trailing:E}=hc(e,t);i.push([y,D]),s.unshift(E)}a=a||u.returnType&&De(u).length>0||u.typeParameters||De(u).some(y=>y.type!=="Identifier"),u.body.type!=="ArrowFunctionExpression"||n&&n.expandLastArg?s.unshift(r("body",n)):(u=u.body,e.call(m,"body"))}(),i.length>1)return g1(e,n,i,a,s,u);let o=i;if(o.push(" =>"),!Tt(t.originalText,u.body)&&(u.body.type==="ArrayExpression"||u.body.type==="ObjectExpression"||u.body.type==="BlockStatement"||ae(u.body)||Zi(u.body,t.originalText)||u.body.type==="ArrowFunctionExpression"||u.body.type==="DoExpression"))return h([...o," ",s]);if(u.body.type==="SequenceExpression")return h([...o,h([" (",F([A,s]),A,")"])]);let c=(n&&n.expandLastArg||e.getParentNode().type==="JSXExpressionContainer")&&!k(u),l=n&&n.expandLastArg&&me(t,"all"),f=u.body.type==="ConditionalExpression"&&!ut(u.body,!1);return h([...o,h([F([x,f?N("","("):"",s,f?N("",")"):""]),c?[N(l?",":""),A]:""])])}function h1(e){let t=De(e);return t.length===1&&!e.typeParameters&&!k(e,_.Dangling)&&t[0].type==="Identifier"&&!t[0].typeAnnotation&&!k(t[0])&&!t[0].optional&&!e.predicate&&!e.returnType}function Zc(e,t){if(t.arrowParens==="always")return!1;if(t.arrowParens==="avoid"){let r=e.getValue();return h1(r)}return!1}function el(e,t,r){let n=e.getValue(),u=t("returnType");if(n.returnType&&Qi(r.originalText,n.returnType))return[" /*: ",u," */"];let i=[u];return n.returnType&&n.returnType.typeAnnotation&&i.unshift(": "),n.predicate&&i.push(n.returnType?" ":": ",t("predicate")),i}function R0(e,t,r){let n=e.getValue(),u=t.semi?";":"",i=[];n.argument&&(E1(t,n.argument)?i.push([" (",F([d,r("argument")]),d,")"]):yt(n.argument)||n.argument.type==="SequenceExpression"?i.push(h([N(" ("," "),F([A,r("argument")]),A,N(")")])):i.push(" ",r("argument")));let s=Ye(n),a=I(s),o=a&&or(a);return o&&i.push(u),k(n,_.Dangling)&&i.push(" ",Y(e,t,!0)),o||i.push(u),i}function M0(e,t,r){return["return",R0(e,t,r)]}function j0(e,t,r){return["throw",R0(e,t,r)]}function E1(e,t){if(Tt(e.originalText,t))return!0;if(bn(t)){let r=t,n;for(;n=lD(r);)if(r=n,Tt(e.originalText,r))return!0}return!1}p();function tl(e,t,r){let n=e.getValue();return h([B(x,e.map(r,"decorators")),q0(n,t)?d:x])}function $0(e,t,r){return[B(d,e.map(r,"declaration","decorators")),d]}function V0(e,t,r){let n=e.getValue(),{decorators:u}=n;if(!O(u)||rl(e.getParentNode()))return;let i=n.type==="ClassExpression"||n.type==="ClassDeclaration"||q0(n,t);return[Hi(e)?d:i?te:"",B(x,e.map(r,"decorators")),x]}function q0(e,t){return e.decorators.some(r=>ee(t.originalText,G(r)))}function rl(e){if(e.type!=="ExportDefaultDeclaration"&&e.type!=="ExportNamedDeclaration"&&e.type!=="DeclareExportDeclaration")return!1;let t=e.declaration&&e.declaration.decorators;return O(t)&&H(e,{ignoreDecorators:!0})>H(t[0])}function Ps(e,t,r){let n=e.getValue(),u=[];n.declare&&u.push("declare "),n.abstract&&u.push("abstract "),u.push("class");let i=n.id&&k(n.id,_.Trailing)||n.typeParameters&&k(n.typeParameters,_.Trailing)||n.superClass&&k(n.superClass)||O(n.extends)||O(n.mixins)||O(n.implements),s=[],a=[];if(n.id&&s.push(" ",r("id")),s.push(r("typeParameters")),n.superClass){let o=[A1(e,t,r),r("superTypeParameters")],c=e.call(l=>["extends ",Se(l,o,t)],"superClass");i?a.push(x,h(c)):a.push(" ",c)}else a.push(nl(e,t,r,"extends"));if(a.push(nl(e,t,r,"mixins"),nl(e,t,r,"implements")),i){let o;W0(n)?o=[...s,F(a)]:o=F([...s,a]),u.push(h(o,{id:U0(n)}))}else u.push(...s,...a);return u.push(" ",r("body")),u}var U0=hi("heritageGroup");function Is(e){return N(d,"",{groupId:U0(e)})}function C1(e){return["superClass","extends","mixins","implements"].filter(t=>Boolean(e[t])).length>1}function W0(e){return e.typeParameters&&!k(e.typeParameters,_.Trailing|_.Line)&&!C1(e)}function nl(e,t,r,n){let u=e.getValue();if(!O(u[n]))return"";let i=Y(e,t,!0,({marker:s})=>s===n);return[W0(u)?N(" ",x,{groupId:vu(u.typeParameters)}):x,i,i&&d,n,h(F([x,B([",",x],e.map(r,n))]))]}function A1(e,t,r){let n=r("superClass");return e.getParentNode().type==="AssignmentExpression"?h(N(["(",F([A,n]),A,")"],n)):n}function ks(e,t,r){let n=e.getValue(),u=[];return O(n.decorators)&&u.push(tl(e,t,r)),n.accessibility&&u.push(n.accessibility+" "),n.readonly&&u.push("readonly "),n.declare&&u.push("declare "),n.static&&u.push("static "),(n.type==="TSAbstractMethodDefinition"||n.abstract)&&u.push("abstract "),n.override&&u.push("override "),u.push(wu(e,t,r)),u}function Ls(e,t,r){let n=e.getValue(),u=[],i=t.semi?";":"";return O(n.decorators)&&u.push(tl(e,t,r)),n.accessibility&&u.push(n.accessibility+" "),n.declare&&u.push("declare "),n.static&&u.push("static "),(n.type==="TSAbstractPropertyDefinition"||n.abstract)&&u.push("abstract "),n.override&&u.push("override "),n.readonly&&u.push("readonly "),n.variance&&u.push(r("variance")),n.type==="ClassAccessorProperty"&&u.push("accessor "),u.push(fr(e,t,r),oe(e),ds(e),st(e,t,r)),[wr(e,t,r,u," =","value"),i]}p();function Pu(e,t,r){let n=e.getValue(),u=[];n.declare&&u.push("declare "),n.type==="TSInterfaceDeclaration"&&u.push(n.abstract?"abstract ":"",Pn(e,t,r)),u.push("interface");let i=[],s=[];n.type!=="InterfaceTypeAnnotation"&&i.push(" ",r("id"),r("typeParameters"));let a=n.typeParameters&&!k(n.typeParameters,_.Trailing|_.Line);return O(n.extends)&&s.push(a?N(" ",x,{groupId:vu(n.typeParameters)}):x,"extends ",(n.extends.length===1?dD:F)(B([",",x],e.map(r,"extends")))),n.id&&k(n.id,_.Trailing)||O(n.extends)?a?u.push(h([...i,F(s)])):u.push(h(F([...i,...s]))):u.push(...i,...s),u.push(" ",r("body")),h(u)}p();function G0(e,t,r){let n=e.getValue(),u=t.semi?";":"",i=[],{importKind:s}=n;return i.push("import"),s&&s!=="value"&&i.push(" ",s),i.push(J0(e,t,r),ul(e,t,r),il(e,t,r),u),i}function Ns(e,t,r){let n=e.getValue(),u=[];rl(n)&&u.push($0(e,t,r));let{type:i,exportKind:s,declaration:a}=n;return u.push("export"),(n.default||i==="ExportDefaultDeclaration")&&u.push(" default"),k(n,_.Dangling)&&(u.push(" ",Y(e,t,!0)),es(n)&&u.push(d)),a?u.push(" ",r("declaration")):u.push(s==="type"?" type":"",J0(e,t,r),ul(e,t,r),il(e,t,r)),F1(n,t)&&u.push(";"),u}function _s(e,t,r){let n=e.getValue(),u=t.semi?";":"",i=[],{exportKind:s,exported:a}=n;return i.push("export"),s==="type"&&i.push(" type"),i.push(" *"),a&&i.push(" as ",r("exported")),i.push(ul(e,t,r),il(e,t,r),u),i}function F1(e,t){if(!t.semi)return!1;let{type:r,declaration:n}=e,u=e.default||r==="ExportDefaultDeclaration";if(!n)return!0;let{type:i}=n;return!!(u&&i!=="ClassDeclaration"&&i!=="FunctionDeclaration"&&i!=="TSInterfaceDeclaration"&&i!=="DeclareClass"&&i!=="DeclareFunction"&&i!=="TSDeclareFunction"&&i!=="EnumDeclaration")}function ul(e,t,r){let n=e.getValue();if(!n.source)return"";let u=[];return H0(n,t)||u.push(" from"),u.push(" ",r("source")),u}function J0(e,t,r){let n=e.getValue();if(H0(n,t))return"";let u=[" "];if(O(n.specifiers)){let i=[],s=[];e.each(()=>{let a=e.getValue().type;if(a==="ExportNamespaceSpecifier"||a==="ExportDefaultSpecifier"||a==="ImportNamespaceSpecifier"||a==="ImportDefaultSpecifier")i.push(r());else if(a==="ExportSpecifier"||a==="ImportSpecifier")s.push(r());else throw new Error(`Unknown specifier type ${JSON.stringify(a)}`)},"specifiers"),u.push(B(", ",i)),s.length>0&&(i.length>0&&u.push(", "),s.length>1||i.length>0||n.specifiers.some(o=>k(o))?u.push(h(["{",F([t.bracketSpacing?x:A,B([",",x],s)]),N(me(t)?",":""),t.bracketSpacing?x:A,"}"])):u.push(["{",t.bracketSpacing?" ":"",...s,t.bracketSpacing?" ":"","}"]))}else u.push("{}");return u}function H0(e,t){let{type:r,importKind:n,source:u,specifiers:i}=e;return r!=="ImportDeclaration"||O(i)||n==="type"?!1:!/{\s*}/.test(t.originalText.slice(H(e),H(u)))}function il(e,t,r){let n=e.getNode();return O(n.assertions)?[" assert {",t.bracketSpacing?" ":"",B(", ",e.map(r,"assertions")),t.bracketSpacing?" ":"","}"]:""}function Y0(e,t,r){let n=e.getNode(),{type:u}=n,i=[],s=u==="ImportSpecifier"?n.importKind:n.exportKind;s&&s!=="value"&&i.push(s," ");let a=u.startsWith("Import"),o=a?"imported":"local",c=a?"local":"exported",l=n[o],f=n[c],m="",D="";return u==="ExportNamespaceSpecifier"||u==="ImportNamespaceSpecifier"?m="*":l&&(m=r(o)),f&&!x1(n)&&(D=r(c)),i.push(m,m&&D?" as ":"",D),i}function x1(e){if(e.type!=="ImportSpecifier"&&e.type!=="ExportSpecifier")return!1;let{local:t,[e.type==="ImportSpecifier"?"imported":"exported"]:r}=e;if(t.type!==r.type||!nD(t,r))return!1;if(we(t))return t.value===r.value&&he(t)===he(r);switch(t.type){case"Identifier":return t.name===r.name;default:return!1}}p();function In(e,t,r){let n=t.semi?";":"",u=e.getValue(),i;u.type==="TSTypeLiteral"?i="members":u.type==="TSInterfaceBody"?i="body":i="properties";let s=u.type==="ObjectTypeAnnotation",a=[i];s&&a.push("indexers","callProperties","internalSlots");let o=a.map(w=>u[w][0]).sort((w,j)=>H(w)-H(j))[0],c=e.getParentNode(0),l=s&&c&&(c.type==="InterfaceDeclaration"||c.type==="DeclareInterface"||c.type==="DeclareClass")&&e.getName()==="body",f=u.type==="TSInterfaceBody"||l||u.type==="ObjectPattern"&&c.type!=="FunctionDeclaration"&&c.type!=="FunctionExpression"&&c.type!=="ArrowFunctionExpression"&&c.type!=="ObjectMethod"&&c.type!=="ClassMethod"&&c.type!=="ClassPrivateMethod"&&c.type!=="AssignmentPattern"&&c.type!=="CatchClause"&&u.properties.some(w=>w.value&&(w.value.type==="ObjectPattern"||w.value.type==="ArrayPattern"))||u.type!=="ObjectPattern"&&o&&$t(t.originalText,H(u),H(o)),m=l?";":u.type==="TSInterfaceBody"||u.type==="TSTypeLiteral"?N(n,";"):",",D=u.type==="RecordExpression"?"#{":u.exact?"{|":"{",y=u.exact?"|}":"}",E=[];for(let w of a)e.each(j=>{let q=j.getValue();E.push({node:q,printed:r(),loc:H(q)})},w);a.length>1&&E.sort((w,j)=>w.loc-j.loc);let C=[],T=E.map(w=>{let j=[...C,h(w.printed)];return C=[m,x],(w.node.type==="TSPropertySignature"||w.node.type==="TSMethodSignature"||w.node.type==="TSConstructSignatureDeclaration")&&k(w.node,_.PrettierIgnore)&&C.shift(),be(w.node,t)&&C.push(d),j});if(u.inexact){let w;if(k(u,_.Dangling)){let j=k(u,_.Line);w=[Y(e,t,!0),j||ee(t.originalText,G(I(Ye(u))))?d:x,"..."]}else w=["..."];T.push([...C,...w])}let b=I(u[i]),S=!(u.inexact||b&&b.type==="RestElement"||b&&(b.type==="TSPropertySignature"||b.type==="TSCallSignatureDeclaration"||b.type==="TSMethodSignature"||b.type==="TSConstructSignatureDeclaration")&&k(b,_.PrettierIgnore)),v;if(T.length===0){if(!k(u,_.Dangling))return[D,y,st(e,t,r)];v=h([D,Y(e,t),A,y,oe(e),st(e,t,r)])}else v=[l&&O(u.properties)?Is(c):"",D,F([t.bracketSpacing?x:A,...T]),N(S&&(m!==","||me(t))?m:""),t.bracketSpacing?x:A,y,oe(e),st(e,t,r)];return e.match(w=>w.type==="ObjectPattern"&&!w.decorators,(w,j,q)=>Cs(w)&&(j==="params"||j==="parameters"||j==="this"||j==="rest")&&q===0)||e.match(bu,(w,j)=>j==="typeAnnotation",(w,j)=>j==="typeAnnotation",(w,j,q)=>Cs(w)&&(j==="params"||j==="parameters"||j==="this"||j==="rest")&&q===0)||!f&&e.match(w=>w.type==="ObjectPattern",w=>w.type==="AssignmentExpression"||w.type==="VariableDeclarator")?v:h(v,{shouldBreak:f})}function K0(e,t,r){let n=e.getValue(),u=t.semi?";":"",i=[];switch(n.type){case"DeclareClass":return Gt(e,Ps(e,t,r));case"DeclareFunction":return Gt(e,["function ",r("id"),n.predicate?" ":"",r("predicate"),u]);case"DeclareModule":return Gt(e,["module ",r("id")," ",r("body")]);case"DeclareModuleExports":return Gt(e,["module.exports",": ",r("typeAnnotation"),u]);case"DeclareVariable":return Gt(e,["var ",r("id"),u]);case"DeclareOpaqueType":return Gt(e,zc(e,t,r));case"DeclareInterface":return Gt(e,Pu(e,t,r));case"DeclareTypeAlias":return Gt(e,Bu(e,t,r));case"DeclareExportDeclaration":return Gt(e,Ns(e,t,r));case"DeclareExportAllDeclaration":return Gt(e,_s(e,t,r));case"OpaqueType":return zc(e,t,r);case"TypeAlias":return Bu(e,t,r);case"IntersectionTypeAnnotation":return As(e,t,r);case"UnionTypeAnnotation":return Fs(e,t,r);case"FunctionTypeAnnotation":return xs(e,t,r);case"TupleTypeAnnotation":return Ss(e,t,r);case"GenericTypeAnnotation":return[r("id"),Xr(e,t,r,"typeParameters")];case"IndexedAccessType":case"OptionalIndexedAccessType":return Ts(e,t,r);case"TypeAnnotation":return r("typeAnnotation");case"TypeParameter":return bs(e,t,r);case"TypeofTypeAnnotation":return["typeof ",r("argument")];case"ExistsTypeAnnotation":return"*";case"EmptyTypeAnnotation":return"empty";case"MixedTypeAnnotation":return"mixed";case"ArrayTypeAnnotation":return[r("elementType"),"[]"];case"BooleanLiteralTypeAnnotation":return String(n.value);case"EnumDeclaration":return["enum ",r("id")," ",r("body")];case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":{if(n.type==="EnumSymbolBody"||n.explicitType){let s=null;switch(n.type){case"EnumBooleanBody":s="boolean";break;case"EnumNumberBody":s="number";break;case"EnumStringBody":s="string";break;case"EnumSymbolBody":s="symbol";break}i.push("of ",s," ")}if(n.members.length===0&&!n.hasUnknownMembers)i.push(h(["{",Y(e,t),A,"}"]));else{let s=n.members.length>0?[d,Yr(e,t,"members",r),n.hasUnknownMembers||me(t)?",":""]:[];i.push(h(["{",F([...s,...n.hasUnknownMembers?[d,"..."]:[]]),Y(e,t,!0),d,"}"]))}return i}case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":return[r("id")," = ",typeof n.init=="object"?r("init"):String(n.init)];case"EnumDefaultedMember":return r("id");case"FunctionTypeParam":{let s=n.name?r("name"):e.getParentNode().this===n?"this":"";return[s,oe(e),s?": ":"",r("typeAnnotation")]}case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return Pu(e,t,r);case"ClassImplements":case"InterfaceExtends":return[r("id"),r("typeParameters")];case"NullableTypeAnnotation":return["?",r("typeAnnotation")];case"Variance":{let{kind:s}=n;return He.ok(s==="plus"||s==="minus"),s==="plus"?"+":"-"}case"ObjectTypeCallProperty":return n.static&&i.push("static "),i.push(r("value")),i;case"ObjectTypeIndexer":return[n.static?"static ":"",n.variance?r("variance"):"","[",r("id"),n.id?": ":"",r("key"),"]: ",r("value")];case"ObjectTypeProperty":{let s="";return n.proto?s="proto ":n.static&&(s="static "),[s,Bc(n)?n.kind+" ":"",n.variance?r("variance"):"",fr(e,t,r),oe(e),vc(n)?"":": ",r("value")]}case"ObjectTypeAnnotation":return In(e,t,r);case"ObjectTypeInternalSlot":return[n.static?"static ":"","[[",r("id"),"]]",oe(e),n.method?"":": ",r("value")];case"ObjectTypeSpreadProperty":return gs(e,t,r);case"QualifiedTypeofIdentifier":case"QualifiedTypeIdentifier":return[r("qualification"),".",r("id")];case"StringLiteralTypeAnnotation":return Vt(he(n),t);case"NumberLiteralTypeAnnotation":He.strictEqual(typeof n.value,"number");case"BigIntLiteralTypeAnnotation":return n.extra?qe(n.extra.raw):qe(n.raw);case"TypeCastExpression":return["(",r("expression"),st(e,t,r),")"];case"TypeParameterDeclaration":case"TypeParameterInstantiation":{let s=Xr(e,t,r,"params");if(t.parser==="flow"){let a=H(n),o=G(n),c=t.originalText.lastIndexOf("/*",a),l=t.originalText.indexOf("*/",o);if(c!==-1&&l!==-1){let f=t.originalText.slice(c+2,l).trim();if(f.startsWith("::")&&!f.includes("/*")&&!f.includes("*/"))return["/*:: ",s," */"]}}return s}case"InferredPredicate":return"%checks";case"DeclaredPredicate":return["%checks(",r("value"),")"];case"AnyTypeAnnotation":return"any";case"BooleanTypeAnnotation":return"boolean";case"BigIntTypeAnnotation":return"bigint";case"NullLiteralTypeAnnotation":return"null";case"NumberTypeAnnotation":return"number";case"SymbolTypeAnnotation":return"symbol";case"StringTypeAnnotation":return"string";case"VoidTypeAnnotation":return"void";case"ThisTypeAnnotation":return"this";case"Node":case"Printable":case"SourceLocation":case"Position":case"Statement":case"Function":case"Pattern":case"Expression":case"Declaration":case"Specifier":case"NamedSpecifier":case"Comment":case"MemberTypeAnnotation":case"Type":throw new Error("unprintable type: "+JSON.stringify(n.type))}}function Gt(e,t){let r=Hi(e);return r?(He.strictEqual(r.type,"DeclareExportDeclaration"),t):["declare ",t]}p();p();function S1({type:e}){return e.startsWith("TS")&&e.endsWith("Keyword")}var X0=S1;p();function T1(e){let t=[e];for(let r=0;r<t.length;r++){let n=t[r];for(let u of["test","consequent","alternate"]){let i=n[u];if(ae(i))return!0;i.type==="ConditionalExpression"&&t.push(i)}}return!1}function b1(e,t,r){let n=e.getValue(),u=n.type==="ConditionalExpression",i=u?"alternate":"falseType",s=e.getParentNode(),a=u?r("test"):[r("checkType")," ","extends"," ",r("extendsType")];return s.type===n.type&&s[i]===n?ne(2,a):a}var B1=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"]]);function v1(e){let t=e.getValue();if(t.type!=="ConditionalExpression")return!1;let r,n=t;for(let u=0;!r;u++){let i=e.getParentNode(u);if(U(i)&&i.callee===n||Z(i)&&i.object===n||i.type==="TSNonNullExpression"&&i.expression===n){n=i;continue}i.type==="NewExpression"&&i.callee===n||i.type==="TSAsExpression"&&i.expression===n?(r=e.getParentNode(u+1),n=i):r=i}return n===t?!1:r[B1.get(r.type)]===n}function Os(e,t,r){let n=e.getValue(),u=n.type==="ConditionalExpression",i=u?"consequent":"trueType",s=u?"alternate":"falseType",a=u?["test"]:["checkType","extendsType"],o=n[i],c=n[s],l=[],f=!1,m=e.getParentNode(),D=m.type===n.type&&a.some(W=>m[W]===n),y=m.type===n.type&&!D,E,C,T=0;do C=E||n,E=e.getParentNode(T),T++;while(E&&E.type===n.type&&a.every(W=>E[W]!==C));let b=E||m,S=C;if(u&&(ae(n[a[0]])||ae(o)||ae(c)||T1(S))){f=!0,y=!0;let W=Be=>[N("("),F([A,Be]),A,N(")")],ce=Be=>Be.type==="NullLiteral"||Be.type==="Literal"&&Be.value===null||Be.type==="Identifier"&&Be.name==="undefined";l.push(" ? ",ce(o)?r(i):W(r(i))," : ",c.type===n.type||ce(c)?r(s):W(r(s)))}else{let W=[x,"? ",o.type===n.type?N("","("):"",ne(2,r(i)),o.type===n.type?N("",")"):"",x,": ",c.type===n.type?r(s):ne(2,r(s))];l.push(m.type!==n.type||m[s]===n||D?W:t.useTabs?Ze(F(W)):ne(Math.max(0,t.tabWidth-2),W))}let w=[...a.map(W=>Ye(n[W])),Ye(o),Ye(c)].flat().some(W=>Te(W)&&$t(t.originalText,H(W),G(W))),j=W=>m===b?h(W,{shouldBreak:w}):w?[W,te]:W,q=!f&&(Z(m)||m.type==="NGPipeExpression"&&m.left===n)&&!m.computed,K=v1(e),X=j([b1(e,t,r),y?l:F(l),u&&q&&!K?A:""]);return D||K?h([F([A,X]),A]):X}p();p();function z0(e,t,r,n){let u=e.getValue(),i=[],s=u.type==="ClassBody",a=w1(u[n]);return e.each((o,c,l)=>{let f=o.getValue();if(f.type==="EmptyStatement")return;let m=r();!t.semi&&!s&&!Ki(t,o)&&P1(o,t)?k(f,_.Leading)?i.push(r([],{needsSemi:!0})):i.push(";",m):i.push(m),!t.semi&&s&&td(f)&&I1(f,l[c+1])&&i.push(";"),f!==a&&(i.push(d),be(f,t)&&i.push(d))},n),i}function w1(e){for(let t=e.length-1;t>=0;t--){let r=e[t];if(r.type!=="EmptyStatement")return r}}function P1(e,t){return e.getNode().type!=="ExpressionStatement"?!1:e.call(n=>Q0(n,t),"expression")}function Q0(e,t){let r=e.getValue();switch(r.type){case"ParenthesizedExpression":case"TypeCastExpression":case"ArrayExpression":case"ArrayPattern":case"TemplateLiteral":case"TemplateElement":case"RegExpLiteral":return!0;case"ArrowFunctionExpression":{if(!Zc(e,t))return!0;break}case"UnaryExpression":{let{prefix:n,operator:u}=r;if(n&&(u==="+"||u==="-"))return!0;break}case"BindExpression":{if(!r.object)return!0;break}case"Literal":{if(r.regex)return!0;break}default:if(ae(r))return!0}return ht(e,t)?!0:bn(r)?e.call(n=>Q0(n,t),...Ji(e,r)):!1}function Z0(e,t,r){return z0(e,t,r,"body")}function ed(e,t,r){return z0(e,t,r,"consequent")}var td=({type:e})=>e==="ClassProperty"||e==="PropertyDefinition"||e==="ClassPrivateProperty"||e==="ClassAccessorProperty";function I1(e,t){let r=e.key&&e.key.name;if((r==="static"||r==="get"||r==="set")&&!e.value&&!e.typeAnnotation)return!0;if(!t||t.static||t.accessibility)return!1;if(!t.computed){let n=t.key&&t.key.name;if(n==="in"||n==="instanceof")return!0}if(td(t)&&t.variance&&!t.static&&!t.declare)return!0;switch(t.type){case"ClassProperty":case"PropertyDefinition":case"TSAbstractPropertyDefinition":return t.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":{if((t.value?t.value.async:t.async)||t.kind==="get"||t.kind==="set")return!1;let u=t.value?t.value.generator:t.generator;return!!(t.computed||u)}case"TSIndexSignature":return!0}return!1}function Rs(e,t,r){let n=e.getValue(),u=[];if(n.type==="StaticBlock"&&u.push("static "),n.type==="ClassBody"&&O(n.body)){let s=e.getParentNode();u.push(Is(s))}u.push("{");let i=sl(e,t,r);if(i)u.push(F([d,i]),d);else{let s=e.getParentNode(),a=e.getParentNode(1);s.type==="ArrowFunctionExpression"||s.type==="FunctionExpression"||s.type==="FunctionDeclaration"||s.type==="ObjectMethod"||s.type==="ClassMethod"||s.type==="ClassPrivateMethod"||s.type==="ForStatement"||s.type==="WhileStatement"||s.type==="DoWhileStatement"||s.type==="DoExpression"||s.type==="CatchClause"&&!a.finalizer||s.type==="TSModuleDeclaration"||s.type==="TSDeclareFunction"||n.type==="StaticBlock"||n.type==="ClassBody"||u.push(d)}return u.push("}"),u}function sl(e,t,r){let n=e.getValue(),u=O(n.directives),i=n.body.some(o=>o.type!=="EmptyStatement"),s=k(n,_.Dangling);if(!u&&!i&&!s)return"";let a=[];if(u&&e.each((o,c,l)=>{a.push(r()),(c<l.length-1||i||s)&&(a.push(d),be(o.getValue(),t)&&a.push(d))},"directives"),i&&a.push(Z0(e,t,r)),s&&a.push(Y(e,t,!0)),n.type==="Program"){let o=e.getParentNode();(!o||o.type!=="ModuleExpression")&&a.push(d)}return a}function rd(e,t,r){let n=e.getValue();if(!n.type.startsWith("TS"))return;if(X0(n))return n.type.slice(2,-7).toLowerCase();let u=t.semi?";":"",i=[];switch(n.type){case"TSThisType":return"this";case"TSTypeAssertion":{let s=!(n.expression.type==="ArrayExpression"||n.expression.type==="ObjectExpression"),a=h(["<",F([A,r("typeAnnotation")]),A,">"]),o=[N("("),F([A,r("expression")]),A,N(")")];return s?ft([[a,r("expression")],[a,h(o,{shouldBreak:!0})],[a,r("expression")]]):h([a,r("expression")])}case"TSDeclareFunction":return ws(e,r,t);case"TSExportAssignment":return["export = ",r("expression"),u];case"TSModuleBlock":return Rs(e,t,r);case"TSInterfaceBody":case"TSTypeLiteral":return In(e,t,r);case"TSTypeAliasDeclaration":return Bu(e,t,r);case"TSQualifiedName":return B(".",[r("left"),r("right")]);case"TSAbstractMethodDefinition":case"TSDeclareMethod":return ks(e,t,r);case"TSAbstractPropertyDefinition":return Ls(e,t,r);case"TSInterfaceHeritage":case"TSExpressionWithTypeArguments":return i.push(r("expression")),n.typeParameters&&i.push(r("typeParameters")),i;case"TSTemplateLiteralType":return is(e,r,t);case"TSNamedTupleMember":return[r("label"),n.optional?"?":"",": ",r("elementType")];case"TSRestType":return["...",r("typeAnnotation")];case"TSOptionalType":return[r("typeAnnotation"),"?"];case"TSInterfaceDeclaration":return Pu(e,t,r);case"TSClassImplements":return[r("expression"),r("typeParameters")];case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return Xr(e,t,r,"params");case"TSTypeParameter":return bs(e,t,r);case"TSAsExpression":{i.push(r("expression")," as ",r("typeAnnotation"));let s=e.getParentNode();return U(s)&&s.callee===n||Z(s)&&s.object===n?h([F([A,...i]),A]):i}case"TSArrayType":return[r("elementType"),"[]"];case"TSPropertySignature":return n.readonly&&i.push("readonly "),i.push(fr(e,t,r),oe(e)),n.typeAnnotation&&i.push(": ",r("typeAnnotation")),n.initializer&&i.push(" = ",r("initializer")),i;case"TSParameterProperty":return n.accessibility&&i.push(n.accessibility+" "),n.export&&i.push("export "),n.static&&i.push("static "),n.override&&i.push("override "),n.readonly&&i.push("readonly "),i.push(r("parameter")),i;case"TSTypeQuery":return["typeof ",r("exprName"),r("typeParameters")];case"TSIndexSignature":{let s=e.getParentNode(),a=n.parameters.length>1?N(me(t)?",":""):"",o=h([F([A,B([", ",A],e.map(r,"parameters"))]),a,A]);return[n.export?"export ":"",n.accessibility?[n.accessibility," "]:"",n.static?"static ":"",n.readonly?"readonly ":"",n.declare?"declare ":"","[",n.parameters?o:"",n.typeAnnotation?"]: ":"]",n.typeAnnotation?r("typeAnnotation"):"",s.type==="ClassBody"?u:""]}case"TSTypePredicate":return[n.asserts?"asserts ":"",r("parameterName"),n.typeAnnotation?[" is ",r("typeAnnotation")]:""];case"TSNonNullExpression":return[r("expression"),"!"];case"TSImportType":return[n.isTypeOf?"typeof ":"","import(",r(n.parameter?"parameter":"argument"),")",n.qualifier?[".",r("qualifier")]:"",Xr(e,t,r,"typeParameters")];case"TSLiteralType":return r("literal");case"TSIndexedAccessType":return Ts(e,t,r);case"TSConstructSignatureDeclaration":case"TSCallSignatureDeclaration":case"TSConstructorType":{if(n.type==="TSConstructorType"&&n.abstract&&i.push("abstract "),n.type!=="TSCallSignatureDeclaration"&&i.push("new "),i.push(h(pr(e,r,t,!1,!0))),n.returnType||n.typeAnnotation){let s=n.type==="TSConstructorType";i.push(s?" => ":": ",r("returnType"),r("typeAnnotation"))}return i}case"TSTypeOperator":return[n.operator," ",r("typeAnnotation")];case"TSMappedType":{let s=$t(t.originalText,H(n),G(n));return h(["{",F([t.bracketSpacing?x:A,n.readonly?[wc(n.readonly,"readonly")," "]:"",Pn(e,t,r),r("typeParameter"),n.optional?wc(n.optional,"?"):"",n.typeAnnotation?": ":"",r("typeAnnotation"),N(u)]),Y(e,t,!0),t.bracketSpacing?x:A,"}"],{shouldBreak:s})}case"TSMethodSignature":{let s=n.kind&&n.kind!=="method"?`${n.kind} `:"";i.push(n.accessibility?[n.accessibility," "]:"",s,n.export?"export ":"",n.static?"static ":"",n.readonly?"readonly ":"",n.abstract?"abstract ":"",n.declare?"declare ":"",n.computed?"[":"",r("key"),n.computed?"]":"",oe(e));let a=pr(e,r,t,!1,!0),o=n.returnType?"returnType":"typeAnnotation",c=n[o],l=c?r(o):"",f=Kr(n,l);return i.push(f?h(a):a),c&&i.push(": ",h(l)),h(i)}case"TSNamespaceExportDeclaration":return i.push("export as namespace ",r("id")),t.semi&&i.push(";"),h(i);case"TSEnumDeclaration":return n.declare&&i.push("declare "),n.modifiers&&i.push(Pn(e,t,r)),n.const&&i.push("const "),i.push("enum ",r("id")," "),n.members.length===0?i.push(h(["{",Y(e,t),A,"}"])):i.push(h(["{",F([d,Yr(e,t,"members",r),me(t,"es5")?",":""]),Y(e,t,!0),d,"}"])),i;case"TSEnumMember":return n.computed?i.push("[",r("id"),"]"):i.push(r("id")),n.initializer&&i.push(" = ",r("initializer")),i;case"TSImportEqualsDeclaration":return n.isExport&&i.push("export "),i.push("import "),n.importKind&&n.importKind!=="value"&&i.push(n.importKind," "),i.push(r("id")," = ",r("moduleReference")),t.semi&&i.push(";"),h(i);case"TSExternalModuleReference":return["require(",r("expression"),")"];case"TSModuleDeclaration":{let s=e.getParentNode(),a=cr(n.id),o=s.type==="TSModuleDeclaration",c=n.body&&n.body.type==="TSModuleDeclaration";if(o)i.push(".");else{n.declare&&i.push("declare "),i.push(Pn(e,t,r));let l=t.originalText.slice(H(n),H(n.id));n.id.type==="Identifier"&&n.id.name==="global"&&!/namespace|module/.test(l)||i.push(a||/(?:^|\s)module(?:\s|$)/.test(l)?"module ":"namespace ")}return i.push(r("id")),c?i.push(r("body")):n.body?i.push(" ",h(r("body"))):i.push(u),i}case"TSConditionalType":return Os(e,t,r);case"TSInferType":return["infer"," ",r("typeParameter")];case"TSIntersectionType":return As(e,t,r);case"TSUnionType":return Fs(e,t,r);case"TSFunctionType":return xs(e,t,r);case"TSTupleType":return Ss(e,t,r);case"TSTypeReference":return[r("typeName"),Xr(e,t,r,"typeParameters")];case"TSTypeAnnotation":return r("typeAnnotation");case"TSEmptyBodyFunctionExpression":return vs(e,t,r);case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return Qc(e,r,"?");case"TSJSDocNonNullableType":return Qc(e,r,"!");case"TSInstantiationExpression":return[r("expression"),r("typeParameters")];default:throw new Error(`Unknown TypeScript node type: ${JSON.stringify(n.type)}.`)}}p();function nd(e,t){let r=e.getValue();if(or(r))return t.originalText.slice(H(r),G(r)).trimEnd();if(Te(r)){if(k1(r)){let i=L1(r);return r.trailing&&!ee(t.originalText,H(r),{backwards:!0})?[d,i]:i}let n=G(r),u=t.originalText.slice(n-3,n)==="*-/";return["/*",z(r.value),u?"*-/":"*/"]}throw new Error("Not a comment: "+JSON.stringify(r))}function k1(e){let t=`*${e.value}*`.split(`
|
|
84
|
-
`);return t.length>1&&t.every(r=>r.trim()[0]==="*")}function L1(e){let t=e.value.split(`
|
|
85
|
-
`);return["/*",B(d,t.map((r,n)=>n===0?r.trimEnd():" "+(n<t.length-1?r.trim():r.trimStart()))),"*/"]}p();function sd(e,t){let r=e.getNode();switch(r.type){case"RegExpLiteral":return id(r);case"BigIntLiteral":return ud(r.bigint||r.extra.raw);case"NumericLiteral":return qe(r.extra.raw);case"StringLiteral":return Vt(r.extra.raw,t);case"NullLiteral":return"null";case"BooleanLiteral":return String(r.value);case"DecimalLiteral":return qe(r.value)+"m";case"Literal":{if(r.regex)return id(r.regex);if(r.bigint)return ud(r.raw);if(r.decimal)return qe(r.decimal)+"m";let{value:n}=r;return typeof n=="number"?qe(r.raw):typeof n=="string"?Vt(r.raw,t):String(n)}}}function ud(e){return e.toLowerCase()}function id({pattern:e,flags:t}){return t=[...t].sort().join(""),`/${e}/${t}`}function N1(e,t,r,n){let u=_1(e,t,r,n);if(!u)return"";let i=e.getValue(),{type:s}=i;if(s==="ClassMethod"||s==="ClassPrivateMethod"||s==="ClassProperty"||s==="ClassAccessorProperty"||s==="PropertyDefinition"||s==="TSAbstractPropertyDefinition"||s==="ClassPrivateProperty"||s==="MethodDefinition"||s==="TSAbstractMethodDefinition"||s==="TSDeclareMethod")return u;let a=[u],o=V0(e,t,r),c=i.type==="ClassExpression"&&o;if(o&&(a=[...o,u],!c))return h(a);if(!ht(e,t))return n&&n.needsSemi&&a.unshift(";"),a.length===1&&a[0]===u?u:a;if(c&&(a=[F([x,...a])]),a.unshift("("),n&&n.needsSemi&&a.unshift(";"),Tn(i)){let[f]=i.trailingComments;a.push(" /*",f.value.trimStart(),"*/"),f.printed=!0}return c&&a.push(x),a.push(")"),a}function _1(e,t,r,n){let u=e.getValue(),i=t.semi?";":"";if(!u)return"";if(typeof u=="string")return u;for(let a of[sd,h0,C0,S0,K0,rd]){let o=a(e,t,r);if(typeof o<"u")return o}let s=[];switch(u.type){case"JsExpressionRoot":return r("node");case"JsonRoot":return[r("node"),d];case"File":return u.program&&u.program.interpreter&&s.push(r(["program","interpreter"])),s.push(r("program")),s;case"Program":return sl(e,t,r);case"EmptyStatement":return"";case"ExpressionStatement":{if(u.directive)return[ad(u.expression,t),i];if(t.parser==="__vue_event_binding"||t.parser==="__vue_ts_event_binding"){let o=e.getParentNode();if(o.type==="Program"&&o.body.length===1&&o.body[0]===u)return[r("expression"),Gc(u.expression)?";":""]}let a=Y(e,t,!0,({marker:o})=>o===us);return[r("expression"),Ki(t,e)?"":i,a?[" ",a]:""]}case"ParenthesizedExpression":return!k(u.expression)&&(u.expression.type==="ObjectExpression"||u.expression.type==="ArrayExpression")?["(",r("expression"),")"]:h(["(",F([A,r("expression")]),A,")"]);case"AssignmentExpression":return I0(e,t,r);case"VariableDeclarator":return k0(e,t,r);case"BinaryExpression":case"LogicalExpression":return ms(e,t,r);case"AssignmentPattern":return[r("left")," = ",r("right")];case"OptionalMemberExpression":case"MemberExpression":return v0(e,t,r);case"MetaProperty":return[r("meta"),".",r("property")];case"BindExpression":return u.object&&s.push(r("object")),s.push(h(F([A,ys(e,t,r)]))),s;case"Identifier":return[u.name,oe(e),ds(e),st(e,t,r)];case"V8IntrinsicIdentifier":return["%",u.name];case"SpreadElement":case"SpreadElementPattern":case"SpreadProperty":case"SpreadPropertyPattern":case"RestElement":return gs(e,t,r);case"FunctionDeclaration":case"FunctionExpression":return ws(e,r,t,n);case"ArrowFunctionExpression":return O0(e,t,r,n);case"YieldExpression":return s.push("yield"),u.delegate&&s.push("*"),u.argument&&s.push(" ",r("argument")),s;case"AwaitExpression":{if(s.push("await"),u.argument){s.push(" ",r("argument"));let a=e.getParentNode();if(U(a)&&a.callee===u||Z(a)&&a.object===u){s=[F([A,...s]),A];let o=e.findAncestor(c=>c.type==="AwaitExpression"||c.type==="BlockStatement");if(!o||o.type!=="AwaitExpression")return h(s)}}return s}case"ExportDefaultDeclaration":case"ExportNamedDeclaration":return Ns(e,t,r);case"ExportAllDeclaration":return _s(e,t,r);case"ImportDeclaration":return G0(e,t,r);case"ImportSpecifier":case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ExportNamespaceSpecifier":case"ImportDefaultSpecifier":case"ExportDefaultSpecifier":return Y0(e,t,r);case"ImportAttribute":return[r("key"),": ",r("value")];case"Import":return"import";case"BlockStatement":case"StaticBlock":case"ClassBody":return Rs(e,t,r);case"ThrowStatement":return j0(e,t,r);case"ReturnStatement":return M0(e,t,r);case"NewExpression":case"ImportExpression":case"OptionalCallExpression":case"CallExpression":return hs(e,t,r);case"ObjectExpression":case"ObjectPattern":case"RecordExpression":return In(e,t,r);case"ObjectProperty":case"Property":return u.method||u.kind==="get"||u.kind==="set"?wu(e,t,r):_0(e,t,r);case"ObjectMethod":return wu(e,t,r);case"Decorator":return["@",r("expression")];case"ArrayExpression":case"ArrayPattern":case"TupleExpression":return B0(e,t,r);case"SequenceExpression":{let a=e.getParentNode(0);if(a.type==="ExpressionStatement"||a.type==="ForStatement"){let o=[];return e.each((c,l)=>{l===0?o.push(r()):o.push(",",F([x,r()]))},"expressions"),h(o)}return h(B([",",x],e.map(r,"expressions")))}case"ThisExpression":return"this";case"Super":return"super";case"Directive":return[r("value"),i];case"DirectiveLiteral":return ad(u,t);case"UnaryExpression":return s.push(u.operator),/[a-z]$/.test(u.operator)&&s.push(" "),k(u.argument)?s.push(h(["(",F([A,r("argument")]),A,")"])):s.push(r("argument")),s;case"UpdateExpression":return s.push(r("argument"),u.operator),u.prefix&&s.reverse(),s;case"ConditionalExpression":return Os(e,t,r);case"VariableDeclaration":{let a=e.map(r,"declarations"),o=e.getParentNode(),c=o.type==="ForStatement"||o.type==="ForInStatement"||o.type==="ForOfStatement",l=u.declarations.some(m=>m.init),f;return a.length===1&&!k(u.declarations[0])?f=a[0]:a.length>0&&(f=F(a[0])),s=[u.declare?"declare ":"",u.kind,f?[" ",f]:"",F(a.slice(1).map(m=>[",",l&&!c?d:x,m]))],c&&o.body!==u||s.push(i),h(s)}case"WithStatement":return h(["with (",r("object"),")",lr(u.body,r("body"))]);case"IfStatement":{let a=lr(u.consequent,r("consequent")),o=h(["if (",h([F([A,r("test")]),A]),")",a]);if(s.push(o),u.alternate){let c=k(u.consequent,_.Trailing|_.Line)||es(u),l=u.consequent.type==="BlockStatement"&&!c;s.push(l?" ":d),k(u,_.Dangling)&&s.push(Y(e,t,!0),c?d:" "),s.push("else",h(lr(u.alternate,r("alternate"),u.alternate.type==="IfStatement")))}return s}case"ForStatement":{let a=lr(u.body,r("body")),o=Y(e,t,!0),c=o?[o,A]:"";return!u.init&&!u.test&&!u.update?[c,h(["for (;;)",a])]:[c,h(["for (",h([F([A,r("init"),";",x,r("test"),";",x,r("update")]),A]),")",a])]}case"WhileStatement":return h(["while (",h([F([A,r("test")]),A]),")",lr(u.body,r("body"))]);case"ForInStatement":return h(["for (",r("left")," in ",r("right"),")",lr(u.body,r("body"))]);case"ForOfStatement":return h(["for",u.await?" await":""," (",r("left")," of ",r("right"),")",lr(u.body,r("body"))]);case"DoWhileStatement":{let a=lr(u.body,r("body"));return s=[h(["do",a])],u.body.type==="BlockStatement"?s.push(" "):s.push(d),s.push("while (",h([F([A,r("test")]),A]),")",i),s}case"DoExpression":return[u.async?"async ":"","do ",r("body")];case"BreakStatement":return s.push("break"),u.label&&s.push(" ",r("label")),s.push(i),s;case"ContinueStatement":return s.push("continue"),u.label&&s.push(" ",r("label")),s.push(i),s;case"LabeledStatement":return u.body.type==="EmptyStatement"?[r("label"),":;"]:[r("label"),": ",r("body")];case"TryStatement":return["try ",r("block"),u.handler?[" ",r("handler")]:"",u.finalizer?[" finally ",r("finalizer")]:""];case"CatchClause":if(u.param){let a=k(u.param,c=>!Te(c)||c.leading&&ee(t.originalText,G(c))||c.trailing&&ee(t.originalText,H(c),{backwards:!0})),o=r("param");return["catch ",a?["(",F([A,o]),A,") "]:["(",o,") "],r("body")]}return["catch ",r("body")];case"SwitchStatement":return[h(["switch (",F([A,r("discriminant")]),A,")"])," {",u.cases.length>0?F([d,B(d,e.map((a,o,c)=>{let l=a.getValue();return[r(),o!==c.length-1&&be(l,t)?d:""]},"cases"))]):"",d,"}"];case"SwitchCase":{u.test?s.push("case ",r("test"),":"):s.push("default:"),k(u,_.Dangling)&&s.push(" ",Y(e,t,!0));let a=u.consequent.filter(o=>o.type!=="EmptyStatement");if(a.length>0){let o=ed(e,t,r);s.push(a.length===1&&a[0].type==="BlockStatement"?[" ",o]:F([d,o]))}return s}case"DebuggerStatement":return["debugger",i];case"ClassDeclaration":case"ClassExpression":return Ps(e,t,r);case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":return ks(e,t,r);case"ClassProperty":case"PropertyDefinition":case"ClassPrivateProperty":case"ClassAccessorProperty":return Ls(e,t,r);case"TemplateElement":return z(u.value.raw);case"TemplateLiteral":return is(e,r,t);case"TaggedTemplateExpression":return[r("tag"),r("typeParameters"),r("quasi")];case"PrivateIdentifier":return["#",r("name")];case"PrivateName":return["#",r("id")];case"InterpreterDirective":return s.push("#!",u.value,d),be(u,t)&&s.push(d),s;case"TopicReference":return"%";case"ArgumentPlaceholder":return"?";case"ModuleExpression":{s.push("module {");let a=r("body");return a&&s.push(F([d,a]),d),s.push("}"),s}default:throw new Error("unknown type: "+JSON.stringify(u.type))}}function ad(e,t){let r=he(e),n=r.slice(1,-1);if(n.includes('"')||n.includes("'"))return r;let u=t.singleQuote?"'":'"';return u+n+u}function O1(e){return e.type&&!Te(e)&&!or(e)&&e.type!=="EmptyStatement"&&e.type!=="TemplateElement"&&e.type!=="Import"&&e.type!=="TSEmptyBodyFunctionExpression"}var R1={preprocess:fs,print:N1,embed:PD,insertPragma:ls,massageAstNode:kD,hasPrettierIgnore(e){return ns(e)||b0(e)},willPrintOwnComments:ps,canAttachComment:O1,printComment:nd,isBlockComment:Te,handleComments:{avoidAstMutation:!0,ownLine:i0,endOfLine:s0,remaining:a0},getCommentChildNodes:y0,getVisitorKeys:Wi},od=R1;p();p();var M1={JsonRoot:["node"],ArrayExpression:["elements"],ObjectExpression:["properties"],ObjectProperty:["key","value"],UnaryExpression:["argument"],NullLiteral:[],BooleanLiteral:[],StringLiteral:[],NumericLiteral:[],Identifier:[],TemplateLiteral:["quasis"],TemplateElement:[]},cd=M1;function j1(e,t,r){let n=e.getValue();switch(n.type){case"JsonRoot":return[r("node"),d];case"ArrayExpression":{if(n.elements.length===0)return"[]";let u=e.map(()=>e.getValue()===null?"null":r(),"elements");return["[",F([d,B([",",d],u)]),d,"]"]}case"ObjectExpression":return n.properties.length===0?"{}":["{",F([d,B([",",d],e.map(r,"properties"))]),d,"}"];case"ObjectProperty":return[r("key"),": ",r("value")];case"UnaryExpression":return[n.operator==="+"?"":n.operator,r("argument")];case"NullLiteral":return"null";case"BooleanLiteral":return n.value?"true":"false";case"StringLiteral":case"NumericLiteral":return JSON.stringify(n.value);case"Identifier":{let u=e.getParentNode();return u&&u.type==="ObjectProperty"&&u.key===n?JSON.stringify(n.name):n.name}case"TemplateLiteral":return r(["quasis",0]);case"TemplateElement":return JSON.stringify(n.value.cooked);default:throw new Error("unknown type: "+JSON.stringify(n.type))}}var $1=new Set(["start","end","extra","loc","comments","leadingComments","trailingComments","innerComments","errors","range","tokens"]);function ld(e,t){let{type:r}=e;if(r==="ObjectProperty"&&e.key.type==="Identifier"){t.key={type:"StringLiteral",value:e.key.name};return}if(r==="UnaryExpression"&&e.operator==="+")return t.argument;if(r==="ArrayExpression"){for(let[n,u]of e.elements.entries())u===null&&t.elements.splice(n,0,{type:"NullLiteral"});return}if(r==="TemplateLiteral")return{type:"StringLiteral",value:e.quasis[0].value.cooked}}ld.ignoredProperties=$1;var V1={preprocess:fs,print:j1,massageAstNode:ld,getVisitorKeys:Ie(cd)},pd=V1;var fd=[{linguistLanguageId:183,name:"JavaScript",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:["js","node"],extensions:[".js","._js",".bones",".cjs",".es",".es6",".frag",".gs",".jake",".javascript",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib",".wxs"],filenames:["Jakefile"],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell","zx"],since:"0.0.0",parsers:["babel","acorn","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"]},{linguistLanguageId:183,name:"Flow",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:[],extensions:[".js.flow"],filenames:[],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],since:"0.0.0",parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"]},{linguistLanguageId:183,name:"JSX",type:"programming",tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",extensions:[".jsx"],since:"0.0.0",parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],group:"JavaScript"},{linguistLanguageId:378,name:"TypeScript",type:"programming",color:"#3178c6",aliases:["ts"],interpreters:["deno","ts-node"],extensions:[".ts",".cts",".mts"],tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",since:"1.4.0",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"]},{linguistLanguageId:94901924,name:"TSX",type:"programming",color:"#3178c6",group:"TypeScript",extensions:[".tsx"],tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",since:"1.4.0",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"]},{linguistLanguageId:174,name:"JSON.stringify",type:"data",color:"#292929",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",aliases:["geojson","jsonl","topojson"],extensions:[".importmap"],filenames:["package.json","package-lock.json","composer.json"],since:"1.13.0",parsers:["json-stringify"],vscodeLanguageIds:["json"]},{linguistLanguageId:174,name:"JSON",type:"data",color:"#292929",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",aliases:["geojson","jsonl","topojson"],extensions:[".json",".4DForm",".4DProject",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".mcmeta",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".arcconfig",".auto-changelog",".c8rc",".htmlhintrc",".imgbotconfig",".nycrc",".tern-config",".tern-project",".watchmanconfig","Pipfile.lock","composer.lock","mcmod.info"],since:"1.5.0",parsers:["json"],vscodeLanguageIds:["json"]},{linguistLanguageId:423,name:"JSON with Comments",type:"data",color:"#292929",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:["jsonc"],extensions:[".jsonc",".code-snippets",".sublime-build",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],filenames:[".babelrc",".devcontainer.json",".eslintrc.json",".jscsrc",".jshintrc",".jslintrc","api-extractor.json","devcontainer.json","jsconfig.json","language-configuration.json","tsconfig.json","tslint.json",".eslintrc",".swcrc"],since:"1.5.0",parsers:["json"],vscodeLanguageIds:["jsonc"]},{linguistLanguageId:175,name:"JSON5",type:"data",color:"#267CB9",extensions:[".json5"],tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",since:"1.13.0",parsers:["json5"],vscodeLanguageIds:["json5"]}];p();p();var Iu="Common",U1={bracketSpacing:{since:"0.0.0",category:Iu,type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{since:"0.0.0",category:Iu,type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{since:"1.8.2",category:Iu,type:"choice",default:[{since:"1.8.2",value:!0},{since:"1.9.0",value:"preserve"}],description:"How to wrap prose.",choices:[{since:"1.9.0",value:"always",description:"Wrap prose if it exceeds the print width."},{since:"1.9.0",value:"never",description:"Do not wrap prose."},{since:"1.9.0",value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{since:"2.4.0",category:Iu,type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{since:"2.6.0",category:Iu,type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},Ee=U1;var kn="JavaScript",W1={arrowParens:{since:"1.9.0",category:kn,type:"choice",default:[{since:"1.9.0",value:"avoid"},{since:"2.0.0",value:"always"}],description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSameLine:Ee.bracketSameLine,bracketSpacing:Ee.bracketSpacing,jsxBracketSameLine:{since:"0.17.0",category:kn,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{since:"1.0.0",category:kn,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},singleQuote:Ee.singleQuote,jsxSingleQuote:{since:"1.15.0",category:kn,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{since:"1.17.0",category:kn,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{since:"0.0.0",category:kn,type:"choice",default:[{since:"0.0.0",value:!1},{since:"0.19.0",value:"none"},{since:"2.0.0",value:"es5"},{since:"3.0.0",value:"all"}],description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"all",description:"Trailing commas wherever possible (including function arguments)."},{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."}]},singleAttributePerLine:Ee.singleAttributePerLine},md=W1;p();var Dd=void 0;var G1={estree:od,"estree-json":pd};var Ys={};Ce(Ys,{languages:()=>Gd,options:()=>Jd,parsers:()=>Hd,printers:()=>dS});p();p();p();var J1=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma","spaces"]);function dd(e,t,r){if(Ue(e)&&e.lang==="yaml"&&delete t.value,e.type==="css-comment"&&r.type==="css-root"&&r.nodes.length>0&&((r.nodes[0]===e||Ue(r.nodes[0])&&r.nodes[1]===e)&&(delete t.text,/^\*\s*@(?:format|prettier)\s*$/.test(e.text))||r.type==="css-root"&&I(r.nodes)===e))return null;if(e.type==="value-root"&&delete t.text,(e.type==="media-query"||e.type==="media-query-list"||e.type==="media-feature-expression")&&delete t.value,e.type==="css-rule"&&delete t.params,e.type==="selector-combinator"&&(t.value=t.value.replace(/\s+/g," ")),e.type==="media-feature"&&(t.value=t.value.replace(/ /g,"")),(e.type==="value-word"&&(e.isColor&&e.isHex||["initial","inherit","unset","revert"].includes(t.value.replace().toLowerCase()))||e.type==="media-feature"||e.type==="selector-root-invalid"||e.type==="selector-pseudo")&&(t.value=t.value.toLowerCase()),e.type==="css-decl"&&(t.prop=t.prop.toLowerCase()),(e.type==="css-atrule"||e.type==="css-import")&&(t.name=t.name.toLowerCase()),e.type==="value-number"&&(t.unit=t.unit.toLowerCase()),e.type==="value-unknown"&&(t.value=t.value.replace(/;$/g,"")),(e.type==="media-feature"||e.type==="media-keyword"||e.type==="media-type"||e.type==="media-unknown"||e.type==="media-url"||e.type==="media-value"||e.type==="selector-attribute"||e.type==="selector-string"||e.type==="selector-class"||e.type==="selector-combinator"||e.type==="value-string")&&t.value&&(t.value=H1(t.value)),e.type==="selector-attribute"&&(t.attribute=t.attribute.trim(),t.namespace&&typeof t.namespace=="string"&&(t.namespace=t.namespace.trim(),t.namespace.length===0&&(t.namespace=!0)),t.value&&(t.value=t.value.trim().replace(/^["']|["']$/g,""),delete t.quoted)),(e.type==="media-value"||e.type==="media-type"||e.type==="value-number"||e.type==="selector-root-invalid"||e.type==="selector-class"||e.type==="selector-combinator"||e.type==="selector-tag")&&t.value&&(t.value=t.value.replace(/([\d+.Ee-]+)([A-Za-z]*)/g,(n,u,i)=>{let s=Number(u);return Number.isNaN(s)?n:s+i.toLowerCase()})),e.type==="selector-tag"){let n=e.value.toLowerCase();["from","to"].includes(n)&&(t.value=n)}if(e.type==="css-atrule"&&e.name.toLowerCase()==="supports"&&delete t.value,e.type==="selector-unknown"&&delete t.value,e.type==="value-comma_group"){let n=e.groups.findIndex(u=>u.type==="value-number"&&u.unit==="...");n!==-1&&(t.groups[n].unit="",t.groups.splice(n+1,0,{type:"value-word",value:"...",isColor:!1,isHex:!1}))}}dd.ignoredProperties=J1;function H1(e){return e.replace(/'/g,'"').replace(/\\([^\dA-Fa-f])/g,"$1")}var yd=dd;p();p();async function Y1(e,t){if(e.lang==="yaml"){let r=e.value.trim(),n=r?await t(r,{parser:"yaml"}):"";return _t([e.startDelimiter,d,n,n?d:"",e.endDelimiter])}}var Ln=Y1;function K1(e){let t=e.getValue();if(t.type==="front-matter")return async r=>{let n=await Ln(t,r);return n?[n,d]:void 0}}var gd=K1;p();p();var X1=new RegExp("^(?<startDelimiter>-{3}|\\+{3})(?<language>[^\\n]*)\\n(?:|(?<value>.*?)\\n)(?<endDelimiter>\\k<startDelimiter>|\\.{3})[^\\S\\n]*(?:\\n|$)","s");function z1(e){let t=e.match(X1);if(!t)return{content:e};let{startDelimiter:r,language:n,value:u="",endDelimiter:i}=t.groups,s=n.trim()||"yaml";if(r==="+++"&&(s="toml"),s!=="yaml"&&r!==i)return{content:e};let[a]=t;return{frontMatter:{type:"front-matter",lang:s,value:u,startDelimiter:r,endDelimiter:i,raw:a.replace(/\n$/,"")},content:a.replace(/[^\n]/g," ")+e.slice(a.length)}}var js=z1;function hd(e){let{frontMatter:t,content:r}=js(e);return(t?t.raw+`
|
|
86
|
-
|
|
87
|
-
`:"")+ls(r)}p();var Q1={"front-matter":[],"css-root":["nodes"],"css-comment":[],"css-rule":["selector","nodes"],"css-decl":["value","selector","nodes"],"css-atrule":["selector","params","value","nodes"],"media-query-list":["nodes"],"media-query":["nodes"],"media-type":[],"media-feature-expression":["nodes"],"media-feature":[],"media-colon":[],"media-value":[],"media-keyword":[],"media-url":[],"media-unknown":[],"selector-root":["nodes"],"selector-selector":["nodes"],"selector-comment":[],"selector-string":[],"selector-tag":[],"selector-id":[],"selector-class":[],"selector-attribute":[],"selector-combinator":["nodes"],"selector-universal":[],"selector-pseudo":["nodes"],"selector-nesting":[],"selector-unknown":[],"value-value":["group"],"value-root":["group"],"value-comment":[],"value-comma_group":["groups"],"value-paren_group":["open","groups","close"],"value-func":["group"],"value-paren":[],"value-number":[],"value-operator":[],"value-word":[],"value-colon":[],"value-comma":[],"value-string":[],"value-atword":[],"value-unicode-range":[],"value-unknown":[]},Ed=Q1;p();var Z1=new Set(["red","green","blue","alpha","a","rgb","hue","h","saturation","s","lightness","l","whiteness","w","blackness","b","tint","shade","blend","blenda","contrast","hsl","hsla","hwb","hwba"]);function eS(e,t){let r=Array.isArray(t)?t:[t],n=-1,u;for(;u=e.getParentNode(++n);)if(r.includes(u.type))return n;return-1}function Bt(e,t){let r=eS(e,t);return r===-1?null:e.getParentNode(r)}function Cd(e){var r;let t=Bt(e,"css-decl");return(r=t==null?void 0:t.prop)==null?void 0:r.toLowerCase()}var tS=new Set(["initial","inherit","unset","revert"]);function Ad(e){return tS.has(e.toLowerCase())}function Fd(e,t){let r=Bt(e,"css-atrule");return(r==null?void 0:r.name)&&r.name.toLowerCase().endsWith("keyframes")&&["from","to"].includes(t.toLowerCase())}function zr(e){return e.includes("$")||e.includes("@")||e.includes("#")||e.startsWith("%")||e.startsWith("--")||e.startsWith(":--")||e.includes("(")&&e.includes(")")?e:e.toLowerCase()}function ku(e,t){var n;let r=Bt(e,"value-func");return((n=r==null?void 0:r.value)==null?void 0:n.toLowerCase())===t}function xd(e){var n;let t=Bt(e,"css-rule"),r=(n=t==null?void 0:t.raws)==null?void 0:n.selector;return r&&(r.startsWith(":import")||r.startsWith(":export"))}function Lu(e,t){let r=Array.isArray(t)?t:[t],n=Bt(e,"css-atrule");return n&&r.includes(n.name.toLowerCase())}function Sd(e){let t=e.getValue(),r=Bt(e,"css-atrule");return(r==null?void 0:r.name)==="import"&&t.groups[0].value==="url"&&t.groups.length===2}function Td(e){return e.type==="value-func"&&e.value.toLowerCase()==="url"}function $s(e,t){var n;let r=(n=e.getParentNode())==null?void 0:n.nodes;return r&&r.indexOf(t)===r.length-1}function bd(e){let{selector:t}=e;return t?typeof t=="string"&&/^@.+:.*$/.test(t)||t.value&&/^@.+:.*$/.test(t.value):!1}function Bd(e){return e.type==="value-word"&&["from","through","end"].includes(e.value)}function vd(e){return e.type==="value-word"&&["and","or","not"].includes(e.value)}function wd(e){return e.type==="value-word"&&e.value==="in"}function Vs(e){return e.type==="value-operator"&&e.value==="*"}function Nu(e){return e.type==="value-operator"&&e.value==="/"}function mr(e){return e.type==="value-operator"&&e.value==="+"}function Qr(e){return e.type==="value-operator"&&e.value==="-"}function rS(e){return e.type==="value-operator"&&e.value==="%"}function qs(e){return Vs(e)||Nu(e)||mr(e)||Qr(e)||rS(e)}function Pd(e){return e.type==="value-word"&&["==","!="].includes(e.value)}function Id(e){return e.type==="value-word"&&["<",">","<=",">="].includes(e.value)}function Us(e,t){return t.parser==="scss"&&e.type==="css-atrule"&&["if","else","for","each","while"].includes(e.name)}function ol(e){var t;return((t=e.raws)==null?void 0:t.params)&&/^\(\s*\)$/.test(e.raws.params)}function cl(e){return e.name.startsWith("prettier-placeholder")}function kd(e){return e.prop.startsWith("@prettier-placeholder")}function Ld(e,t){return e.value==="$$"&&e.type==="value-func"&&(t==null?void 0:t.type)==="value-word"&&!t.raws.before}function Nd(e){var t,r;return((t=e.value)==null?void 0:t.type)==="value-root"&&((r=e.value.group)==null?void 0:r.type)==="value-value"&&e.prop.toLowerCase()==="composes"}function _d(e){var t,r,n;return((n=(r=(t=e.value)==null?void 0:t.group)==null?void 0:r.group)==null?void 0:n.type)==="value-paren_group"&&e.value.group.group.open!==null&&e.value.group.group.close!==null}function Zr(e){var t;return((t=e.raws)==null?void 0:t.before)===""}function Ws(e){var t,r;return e.type==="value-comma_group"&&((r=(t=e.groups)==null?void 0:t[1])==null?void 0:r.type)==="value-colon"}function al(e){var t;return e.type==="value-paren_group"&&((t=e.groups)==null?void 0:t[0])&&Ws(e.groups[0])}function Od(e,t){var i;if(t.parser!=="scss")return!1;let r=e.getValue();if(r.groups.length===0)return!1;let n=e.getParentNode(1);if(!al(r)&&!(n&&al(n)))return!1;let u=Bt(e,"css-decl");return!!((i=u==null?void 0:u.prop)!=null&&i.startsWith("$")||al(n)||n.type==="value-func")}function ll(e){return e.type==="value-comment"&&e.inline}function Gs(e){return e.type==="value-word"&&e.value==="#"}function pl(e){return e.type==="value-word"&&e.value==="{"}function Js(e){return e.type==="value-word"&&e.value==="}"}function _u(e){return["value-word","value-atword"].includes(e.type)}function Hs(e){return(e==null?void 0:e.type)==="value-colon"}function Rd(e,t){if(!Ws(t))return!1;let{groups:r}=t,n=r.indexOf(e);return n===-1?!1:Hs(r[n+1])}function Md(e){return e.value&&["not","and","or"].includes(e.value.toLowerCase())}function jd(e){return e.type!=="value-func"?!1:Z1.has(e.value.toLowerCase())}function Nn(e){return/\/\//.test(e.split(/[\n\r]/).pop())}function Ou(e){return(e==null?void 0:e.type)==="value-atword"&&e.value.startsWith("prettier-placeholder-")}function $d(e,t){var r,n;if(((r=e.open)==null?void 0:r.value)!=="("||((n=e.close)==null?void 0:n.value)!==")"||e.groups.some(u=>u.type!=="value-comma_group"))return!1;if(t.type==="value-comma_group"){let u=t.groups.indexOf(e)-1,i=t.groups[u];if((i==null?void 0:i.type)==="value-word"&&i.value==="with")return!0}return!1}function fl(e){var t,r;return e.type==="value-paren_group"&&((t=e.open)==null?void 0:t.value)==="("&&((r=e.close)==null?void 0:r.value)===")"}p();p();function Dr(e){return e.source.startOffset}function vt(e){return e.source.endOffset}p();var ml={em:"em",rem:"rem",ex:"ex",rex:"rex",cap:"cap",rcap:"rcap",ch:"ch",rch:"rch",ic:"ic",ric:"ric",lh:"lh",rlh:"rlh",vw:"vw",svw:"svw",lvw:"lvw",dvw:"dvw",vh:"vh",svh:"svh",lvh:"lvh",dvh:"dvh",vi:"vi",svi:"svi",lvi:"lvi",dvi:"dvi",vb:"vb",svb:"svb",lvb:"lvb",dvb:"dvb",vmin:"vmin",svmin:"svmin",lvmin:"lvmin",dvmin:"dvmin",vmax:"vmax",svmax:"svmax",lvmax:"lvmax",dvmax:"dvmax",cm:"cm",mm:"mm",q:"Q",in:"in",pt:"pt",pc:"pc",px:"px",deg:"deg",grad:"grad",rad:"rad",turn:"turn",s:"s",ms:"ms",hz:"Hz",khz:"kHz",dpi:"dpi",dpcm:"dpcm",dppx:"dppx",x:"x"};function uS(e){let t=e.toLowerCase();return Object.prototype.hasOwnProperty.call(ml,t)?ml[t]:e}var Vd=uS;function iS(e){return e.trailingComma==="es5"||e.trailingComma==="all"}function sS(e,t,r){var u;let n=e.getValue();if(!n)return"";if(typeof n=="string")return n;switch(n.type){case"front-matter":return[n.raw,d];case"css-root":{let i=Ru(e,t,r),s=n.raws.after.trim();return[i,s?` ${s}`:"",Ot(i).length>0?d:""]}case"css-comment":{let i=n.inline||n.raws.inline,s=t.originalText.slice(Dr(n),vt(n));return i?s.trimEnd():s}case"css-rule":return[r("selector"),n.important?" !important":"",n.nodes?[n.selector&&n.selector.type==="selector-unknown"&&Nn(n.selector.value)?x:n.selector?" ":"","{",n.nodes.length>0?F([d,Ru(e,t,r)]):"",d,"}",bd(n)?";":""]:";"];case"css-decl":{let i=e.getParentNode(),{between:s}=n.raws,a=s.trim(),o=a===":",c=typeof n.value=="string"&&/^ *$/.test(n.value),l=Nd(n)?hr(r("value")):r("value");return!o&&Nn(a)&&(l=F([d,Ze(l)])),[n.raws.before.replace(/[\s;]/g,""),xd(e)?n.prop:zr(n.prop),a.startsWith("//")?" ":"",a,n.extend||c?"":" ",t.parser==="less"&&n.extend&&n.selector?["extend(",r("selector"),")"]:"",l,n.raws.important?n.raws.important.replace(/\s*!\s*important/i," !important"):n.important?" !important":"",n.raws.scssDefault?n.raws.scssDefault.replace(/\s*!default/i," !default"):n.scssDefault?" !default":"",n.raws.scssGlobal?n.raws.scssGlobal.replace(/\s*!global/i," !global"):n.scssGlobal?" !global":"",n.nodes?[" {",F([A,Ru(e,t,r)]),A,"}"]:kd(n)&&!i.raws.semicolon&&t.originalText[vt(n)-1]!==";"?"":t.__isHTMLStyleAttribute&&$s(e,n)?N(";"):";"]}case"css-atrule":{let i=e.getParentNode(),s=cl(n)&&!i.raws.semicolon&&t.originalText[vt(n)-1]!==";";if(t.parser==="less"){if(n.mixin)return[r("selector"),n.important?" !important":"",s?"":";"];if(n.function)return[n.name,r("params"),s?"":";"];if(n.variable)return["@",n.name,": ",n.value?r("value"):"",n.raws.between.trim()?n.raws.between.trim()+" ":"",n.nodes?["{",F([n.nodes.length>0?A:"",Ru(e,t,r)]),A,"}"]:"",s?"":";"]}let a=n.name==="import"&&n.params&&n.params.type==="value-unknown"&&n.params.value.endsWith(";");return["@",ol(n)||n.name.endsWith(":")?n.name:zr(n.name),n.params?[ol(n)?"":cl(n)?n.raws.afterName===""?"":n.name.endsWith(":")?" ":/^\s*\n\s*\n/.test(n.raws.afterName)?[d,d]:/^\s*\n/.test(n.raws.afterName)?d:" ":" ",r("params")]:"",n.selector?F([" ",r("selector")]):"",n.value?h([" ",r("value"),Us(n,t)?_d(n)?" ":x:""]):n.name==="else"?" ":"",n.nodes?[Us(n,t)?"":n.selector&&!n.selector.nodes&&typeof n.selector.value=="string"&&Nn(n.selector.value)||!n.selector&&typeof n.params=="string"&&Nn(n.params)?x:" ","{",F([n.nodes.length>0?A:"",Ru(e,t,r)]),A,"}"]:s||a?"":";"]}case"media-query-list":{let i=[];return e.each(s=>{let a=s.getValue();a.type==="media-query"&&a.value===""||i.push(r())},"nodes"),h(F(B(x,i)))}case"media-query":return[B(" ",e.map(r,"nodes")),$s(e,n)?"":","];case"media-type":return _n(Jt(n.value,t));case"media-feature-expression":return n.nodes?["(",...e.map(r,"nodes"),")"]:n.value;case"media-feature":return zr(Jt(n.value.replace(/ +/g," "),t));case"media-colon":return[n.value," "];case"media-value":return _n(Jt(n.value,t));case"media-keyword":return Jt(n.value,t);case"media-url":return Jt(n.value.replace(/^url\(\s+/gi,"url(").replace(/\s+\)$/g,")"),t);case"media-unknown":return n.value;case"selector-root":return h([Lu(e,"custom-selector")?[Bt(e,"css-atrule").customSelector,x]:"",B([",",Lu(e,["extend","custom-selector","nest"])?x:d],e.map(r,"nodes"))]);case"selector-selector":return h(F(e.map(r,"nodes")));case"selector-comment":return n.value;case"selector-string":return Jt(n.value,t);case"selector-tag":{let i=e.getParentNode(),s=i&&i.nodes.indexOf(n),a=s&&i.nodes[s-1];return[n.namespace?[n.namespace===!0?"":n.namespace.trim(),"|"]:"",a.type==="selector-nesting"?n.value:_n(Fd(e,n.value)?n.value.toLowerCase():n.value)]}case"selector-id":return["#",n.value];case"selector-class":return[".",_n(Jt(n.value,t))];case"selector-attribute":return["[",n.namespace?[n.namespace===!0?"":n.namespace.trim(),"|"]:"",n.attribute.trim(),(u=n.operator)!=null?u:"",n.value?pS(Jt(n.value.trim(),t),t):"",n.insensitive?" i":"","]"];case"selector-combinator":{if(n.value==="+"||n.value===">"||n.value==="~"||n.value===">>>"){let a=e.getParentNode();return[a.type==="selector-selector"&&a.nodes[0]===n?"":x,n.value,$s(e,n)?"":" "]}let i=n.value.trim().startsWith("(")?x:"",s=_n(Jt(n.value.trim(),t))||x;return[i,s]}case"selector-universal":return[n.namespace?[n.namespace===!0?"":n.namespace.trim(),"|"]:"",n.value];case"selector-pseudo":return[zr(n.value),O(n.nodes)?["(",B(", ",e.map(r,"nodes")),")"]:""];case"selector-nesting":return n.value;case"selector-unknown":{let i=Bt(e,"css-rule");if(i&&i.isSCSSNesterProperty)return _n(Jt(zr(n.value),t));let s=e.getParentNode();if(s.raws&&s.raws.selector){let o=Dr(s),c=o+s.raws.selector.length;return t.originalText.slice(o,c).trim()}let a=e.getParentNode(1);if(s.type==="value-paren_group"&&a&&a.type==="value-func"&&a.value==="selector"){let o=vt(s.open)+1,c=Dr(s.close),l=t.originalText.slice(o,c).trim();return Nn(l)?[te,l]:l}return n.value}case"value-value":case"value-root":return r("group");case"value-comment":return t.originalText.slice(Dr(n),vt(n));case"value-comma_group":{let i=e.getParentNode(),s=e.getParentNode(1),a=Cd(e),o=a&&i.type==="value-value"&&(a==="grid"||a.startsWith("grid-template")),c=Bt(e,"css-atrule"),l=c&&Us(c,t),f=n.groups.some(T=>ll(T)),m=e.map(r,"groups"),D=[],y=ku(e,"url"),E=!1,C=!1;for(let T=0;T<n.groups.length;++T){D.push(m[T]);let b=n.groups[T-1],S=n.groups[T],v=n.groups[T+1],w=n.groups[T+2];if(y){(v&&mr(v)||mr(S))&&D.push(" ");continue}if(Lu(e,"forward")&&S.type==="value-word"&&S.value&&b!==void 0&&b.type==="value-word"&&b.value==="as"&&v.type==="value-operator"&&v.value==="*"||!v||S.type==="value-word"&&S.value.endsWith("-")&&Ou(v))continue;let j=S.type==="value-string"&&S.value.startsWith("#{"),q=E&&v.type==="value-string"&&v.value.endsWith("}");if(j||q){E=!E;continue}if(E||Hs(S)||Hs(v)||S.type==="value-atword"&&S.value===""||S.value==="~"||S.value&&S.value.includes("\\")&&v&&v.type!=="value-comment"||b&&b.value&&b.value.indexOf("\\")===b.value.length-1&&S.type==="value-operator"&&S.value==="/"||S.value==="\\"||Ld(S,v)||Gs(S)||pl(S)||Js(v)||pl(v)&&Zr(v)||Js(S)&&Zr(v)||S.value==="--"&&Gs(v))continue;let K=qs(S),X=qs(v);if((K&&Gs(v)||X&&Js(S))&&Zr(v)||!b&&Nu(S)||ku(e,"calc")&&(mr(S)||mr(v)||Qr(S)||Qr(v))&&Zr(v))continue;let W=(mr(S)||Qr(S))&&T===0&&(v.type==="value-number"||v.isHex)&&s&&jd(s)&&!Zr(v),ce=w&&w.type==="value-func"||w&&_u(w)||S.type==="value-func"||_u(S),Be=v.type==="value-func"||_u(v)||b&&b.type==="value-func"||b&&_u(b);if(!(!(Vs(v)||Vs(S))&&!ku(e,"calc")&&!W&&(Nu(v)&&!ce||Nu(S)&&!Be||mr(v)&&!ce||mr(S)&&!Be||Qr(v)||Qr(S))&&(Zr(v)||K&&(!b||b&&qs(b))))){if(ll(S)){if(i.type==="value-paren_group"){D.push(Ze(d));continue}D.push(d);continue}if(l&&(Pd(v)||Id(v)||vd(v)||wd(S)||Bd(S))){D.push(" ");continue}if(c&&c.name.toLowerCase()==="namespace"){D.push(" ");continue}if(o){S.source&&v.source&&S.source.start.line!==v.source.start.line?(D.push(d),C=!0):D.push(" ");continue}if(X){D.push(" ");continue}if(!(v&&v.value==="...")&&!(Ou(S)&&Ou(v)&&vt(S)===Dr(v))){if(Ou(S)&&fl(v)&&vt(S)===Dr(v.open)){D.push(A);continue}if(S.value==="with"&&fl(v)){D.push(" ");continue}D.push(x)}}}return f&&D.push(te),C&&D.unshift(d),l?h(F(D)):Sd(e)?h(se(D)):h(F(se(D)))}case"value-paren_group":{let i=e.getParentNode();if(i&&Td(i)&&(n.groups.length===1||n.groups.length>0&&n.groups[0].type==="value-comma_group"&&n.groups[0].groups.length>0&&n.groups[0].groups[0].type==="value-word"&&n.groups[0].groups[0].value.startsWith("data:")))return[n.open?r("open"):"",B(",",e.map(r,"groups")),n.close?r("close"):""];if(!n.open){let y=e.map(r,"groups"),E=[];for(let C=0;C<y.length;C++)C!==0&&E.push([",",x]),E.push(y[C]);return h(F(se(E)))}let s=Od(e,t),a=I(n.groups),o=a&&a.type==="value-comment",c=Rd(n,i),l=$d(n,i),f=l||s&&!c,m=l||c,D=h([n.open?r("open"):"",F([A,B([x],e.map((y,E)=>{let C=y.getValue(),T=E===n.groups.length-1,b=[r(),T?"":","];if(Ws(C)&&C.type==="value-comma_group"&&C.groups&&C.groups[0].type!=="value-paren_group"&&C.groups[2]&&C.groups[2].type==="value-paren_group"){let S=Ot(b[0].contents.contents);return S[1]=h(S[1]),h(Ze(b))}if(!T&&C.type==="value-comma_group"&&O(C.groups)){let S=I(C.groups);S.source&&Fr(t.originalText,S,vt)&&b.push(d)}return b},"groups"))]),N(!o&&t.parser==="scss"&&s&&iS(t)?",":""),A,n.close?r("close"):""],{shouldBreak:f});return m?Ze(D):D}case"value-func":return[n.value,Lu(e,"supports")&&Md(n)?" ":"",r("group")];case"value-paren":return n.value;case"value-number":return[Ud(n.value),Vd(n.unit)];case"value-operator":return n.value;case"value-word":return n.isColor&&n.isHex||Ad(n.value)?n.value.toLowerCase():n.value;case"value-colon":{let i=e.getParentNode(),s=i&&i.groups.indexOf(n),a=s&&i.groups[s-1];return[n.value,a&&typeof a.value=="string"&&I(a.value)==="\\"||ku(e,"url")?"":x]}case"value-comma":return[n.value," "];case"value-string":return Vt(n.raws.quote+n.value+n.raws.quote,t);case"value-atword":return["@",n.value];case"value-unicode-range":return n.value;case"value-unknown":return n.value;default:throw new Error(`Unknown postcss type ${JSON.stringify(n.type)}`)}}function Ru(e,t,r){let n=[];return e.each((u,i,s)=>{let a=s[i-1];if(a&&a.type==="css-comment"&&a.text.trim()==="prettier-ignore"){let o=u.getValue();n.push(t.originalText.slice(Dr(o),vt(o)))}else n.push(r());i!==s.length-1&&(s[i+1].type==="css-comment"&&!ee(t.originalText,Dr(s[i+1]),{backwards:!0})&&!Ue(s[i])||s[i+1].type==="css-atrule"&&s[i+1].name==="else"&&s[i].type!=="css-comment"?n.push(" "):(n.push(t.__isHTMLStyleAttribute?x:d),Fr(t.originalText,u.getValue(),vt)&&!Ue(s[i])&&n.push(d)))},"nodes"),n}var qd=/(["'])(?:(?!\1)[^\\]|\\.)*\1/gs,aS=/(?:\d*\.\d+|\d+\.?)(?:[Ee][+-]?\d+)?/g,oS=/[A-Za-z]+/g,cS=/[$@]?[A-Z_a-z\u0080-\uFFFF][\w\u0080-\uFFFF-]*/g,lS=new RegExp(qd.source+`|(${cS.source})?(${aS.source})(${oS.source})?`,"g");function Jt(e,t){return e.replace(qd,r=>Vt(r,t))}function pS(e,t){let r=t.singleQuote?"'":'"';return e.includes('"')||e.includes("'")?e:r+e+r}function _n(e){return e.replace(lS,(t,r,n,u,i)=>!n&&u?Ud(u)+zr(i||""):t)}function Ud(e){return qe(e).replace(/\.0(?=$|e)/,"")}var fS={print:sS,embed:gd,insertPragma:hd,massageAstNode:yd,getVisitorKeys:Ie(Ed)},Wd=fS;var Gd=[{linguistLanguageId:50,name:"CSS",type:"markup",tmScope:"source.css",aceMode:"css",codemirrorMode:"css",codemirrorMimeType:"text/css",color:"#563d7c",extensions:[".css",".wxss"],since:"1.4.0",parsers:["css"],vscodeLanguageIds:["css"]},{linguistLanguageId:262764437,name:"PostCSS",type:"markup",color:"#dc3a0c",tmScope:"source.postcss",group:"CSS",extensions:[".pcss",".postcss"],aceMode:"text",since:"1.4.0",parsers:["css"],vscodeLanguageIds:["postcss"]},{linguistLanguageId:198,name:"Less",type:"markup",color:"#1d365d",aliases:["less-css"],extensions:[".less"],tmScope:"source.css.less",aceMode:"less",codemirrorMode:"css",codemirrorMimeType:"text/css",since:"1.4.0",parsers:["less"],vscodeLanguageIds:["less"]},{linguistLanguageId:329,name:"SCSS",type:"markup",color:"#c6538c",tmScope:"source.css.scss",aceMode:"scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",extensions:[".scss"],since:"1.4.0",parsers:["scss"],vscodeLanguageIds:["scss"]}];p();var DS={singleQuote:Ee.singleQuote},Jd=DS;p();var Hd=void 0;var dS={postcss:Wd};var ra={};Ce(ra,{languages:()=>yy,parsers:()=>gy,printers:()=>jS});p();p();p();function On(e){return e.loc.start.offset}function Ks(e){return e.loc.end.offset}p();function Yd(e,t){if(e.type==="TextNode"){let r=e.chars.trim();if(!r)return null;t.chars=r.replace(/[\t\n\f\r ]+/g," ")}e.type==="AttrNode"&&e.name.toLowerCase()==="class"&&delete t.value}Yd.ignoredProperties=new Set(["loc","selfClosing"]);var Kd=Yd;p();p();var Xd=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];function Dl(e){let t=e.getValue(),r=e.getParentNode(0);return!!(en(e,["ElementNode"])&&I(r.children)===t||en(e,["Block"])&&I(r.body)===t)}function yS(e){return e.toUpperCase()===e}function gS(e){return at(e,["ElementNode"])&&typeof e.tag=="string"&&!e.tag.startsWith(":")&&(yS(e.tag[0])||e.tag.includes("."))}var hS=new Set(Xd);function dl(e){return hS.has(e.tag)||gS(e)&&e.children.every(t=>Xs(t))}function Xs(e){return at(e,["TextNode"])&&!/\S/.test(e.chars)}function at(e,t){return e&&t.includes(e.type)}function en(e,t){let r=e.getParentNode(0);return at(r,t)}function zs(e,t){let r=Qs(e);return at(r,t)}function Mu(e,t){let r=yl(e);return at(r,t)}function Qd(e,t){var s,a,o,c;let r=e.getValue(),n=(s=e.getParentNode(0))!=null?s:{},u=(c=(o=(a=n.children)!=null?a:n.body)!=null?o:n.parts)!=null?c:[],i=u.indexOf(r);return i!==-1&&u[i+t]}function Qs(e,t=1){return Qd(e,-t)}function yl(e){return Qd(e,1)}function zd(e){return at(e,["MustacheCommentStatement"])&&typeof e.value=="string"&&e.value.trim()==="prettier-ignore"}function Zd(e){let t=e.getValue(),r=Qs(e,2);return zd(t)||zd(r)}var ey={Program:["body"],Template:["body"],Block:["body"],MustacheStatement:["path","params","hash"],BlockStatement:["path","params","hash","program","inverse"],ElementModifierStatement:["path","params","hash"],PartialStatement:["name","params","hash"],CommentStatement:[],MustacheCommentStatement:[],ElementNode:["attributes","modifiers","children","comments"],AttrNode:["value"],TextNode:[],ConcatStatement:["parts"],SubExpression:["path","params","hash"],PathExpression:[],PathHead:[],StringLiteral:[],BooleanLiteral:[],NumberLiteral:[],NullLiteral:[],UndefinedLiteral:[],Hash:["pairs"],HashPair:["value"],NamedBlock:["attributes","modifiers","children","comments"],SimpleElement:["attributes","modifiers","children","comments"],Component:["head","attributes","modifiers","children","comments"]};var cy=2;function CS(e,t,r){let n=e.getValue();if(!n)return"";if(Zd(e))return t.originalText.slice(On(n),Ks(n));let u=t.singleQuote?"'":'"';switch(n.type){case"Block":case"Program":case"Template":return h(e.map(r,"body"));case"ElementNode":{let i=h(FS(e,r)),s=t.htmlWhitespaceSensitivity==="ignore"&&Mu(e,["ElementNode"])?A:"";if(dl(n))return[i,s];let a=["</",n.tag,">"];return n.children.length===0?[i,F(a),s]:t.htmlWhitespaceSensitivity==="ignore"?[i,F(ty(e,t,r)),d,F(a),s]:[i,F(h(ty(e,t,r))),F(a),s]}case"BlockStatement":{let i=e.getParentNode(1);return i&&i.inverse&&i.inverse.body.length===1&&i.inverse.body[0]===n&&i.inverse.body[0].path.parts[0]==="if"?[vS(e,r),uy(e,r,t),iy(e,r,t)]:[bS(e,r),h([uy(e,r,t),iy(e,r,t),wS(e,r,t)])]}case"ElementModifierStatement":return h(["{{",oy(e,r),"}}"]);case"MustacheStatement":return h([Zs(n),oy(e,r),ea(n)]);case"SubExpression":return h(["(",OS(e,r),A,")"]);case"AttrNode":{let i=n.value.type==="TextNode";if(i&&n.value.chars===""&&On(n.value)===Ks(n.value))return n.name;let a=i?Or(n.value.chars,u).quote:n.value.type==="ConcatStatement"?Or(n.value.parts.filter(c=>c.type==="TextNode").map(c=>c.chars).join(""),u).quote:"",o=r("value");return[n.name,"=",a,n.name==="class"&&a?h(F(o)):o,a]}case"ConcatStatement":return e.map(r,"parts");case"Hash":return B(x,e.map(r,"pairs"));case"HashPair":return[n.key,"=",r("value")];case"TextNode":{let i=n.chars.replace(/{{/g,"\\{{"),s=kS(e);if(s){if(s==="class"){let C=i.trim().split(/\s+/).join(" "),T=!1,b=!1;return en(e,["ConcatStatement"])&&(zs(e,["MustacheStatement"])&&/^\s/.test(i)&&(T=!0),Mu(e,["MustacheStatement"])&&/\s$/.test(i)&&C!==""&&(b=!0)),[T?x:"",C,b?x:""]}return z(i)}let o=/^[\t\n\f\r ]*$/.test(i),c=!Qs(e),l=!yl(e);if(t.htmlWhitespaceSensitivity!=="ignore"){let C=/^[\t\n\f\r ]*/,T=/[\t\n\f\r ]*$/,b=l&&en(e,["Template"]),S=c&&en(e,["Template"]);if(o){if(S||b)return"";let K=[x],X=Rn(i);return X&&(K=ju(X)),Dl(e)&&(K=K.map(W=>Ze(W))),K}let[v]=i.match(C),[w]=i.match(T),j=[];if(v){j=[x];let K=Rn(v);K&&(j=ju(K)),i=i.replace(C,"")}let q=[];if(w){if(!b){q=[x];let K=Rn(w);K&&(q=ju(K)),Dl(e)&&(q=q.map(X=>Ze(X)))}i=i.replace(T,"")}return[...j,se(sy(i)),...q]}let f=Rn(i),m=LS(i),D=NS(i);if((c||l)&&o&&en(e,["Block","ElementNode","Template"]))return"";o&&f?(m=Math.min(f,cy),D=0):(Mu(e,["BlockStatement","ElementNode"])&&(D=Math.max(D,1)),zs(e,["BlockStatement","ElementNode"])&&(m=Math.max(m,1)));let y="",E="";return D===0&&Mu(e,["MustacheStatement"])&&(E=" "),m===0&&zs(e,["MustacheStatement"])&&(y=" "),c&&(m=0,y=""),l&&(D=0,E=""),i=i.replace(/^[\t\n\f\r ]+/g,y).replace(/[\t\n\f\r ]+$/,E),[...ju(m),se(sy(i)),...ju(D)]}case"MustacheCommentStatement":{let i=On(n),s=Ks(n),a=t.originalText.charAt(i+2)==="~",o=t.originalText.charAt(s-3)==="~",c=n.value.includes("}}")?"--":"";return["{{",a?"~":"","!",c,n.value,c,o?"~":"","}}"]}case"PathExpression":return n.original;case"BooleanLiteral":return String(n.value);case"CommentStatement":return["<!--",n.value,"-->"];case"StringLiteral":{if(_S(e)){let i=t.singleQuote?'"':"'";return ay(n.value,i)}return ay(n.value,u)}case"NumberLiteral":return String(n.value);case"UndefinedLiteral":return"undefined";case"NullLiteral":return"null";default:throw new Error("unknown glimmer type: "+JSON.stringify(n.type))}}function AS(e,t){return On(e)-On(t)}function FS(e,t){let r=e.getValue(),n=["attributes","modifiers","comments"].filter(i=>O(r[i])),u=n.flatMap(i=>r[i]).sort(AS);for(let i of n)e.each(s=>{let a=u.indexOf(s.getValue());u.splice(a,1,[x,t()])},i);return O(r.blockParams)&&u.push(x,Dy(r)),["<",r.tag,F(u),xS(r)]}function ty(e,t,r){let u=e.getValue().children.every(i=>Xs(i));return t.htmlWhitespaceSensitivity==="ignore"&&u?"":e.map((i,s)=>{let a=r();return s===0&&t.htmlWhitespaceSensitivity==="ignore"?[A,a]:a},"children")}function xS(e){return dl(e)?N([A,"/>"],[" />",A]):N([A,">"],">")}function Zs(e){let t=e.escaped===!1?"{{{":"{{",r=e.strip&&e.strip.open?"~":"";return[t,r]}function ea(e){let t=e.escaped===!1?"}}}":"}}";return[e.strip&&e.strip.close?"~":"",t]}function SS(e){let t=Zs(e),r=e.openStrip.open?"~":"";return[t,r,"#"]}function TS(e){let t=ea(e);return[e.openStrip.close?"~":"",t]}function ry(e){let t=Zs(e),r=e.closeStrip.open?"~":"";return[t,r,"/"]}function ny(e){let t=ea(e);return[e.closeStrip.close?"~":"",t]}function ly(e){let t=Zs(e),r=e.inverseStrip.open?"~":"";return[t,r]}function py(e){let t=ea(e);return[e.inverseStrip.close?"~":"",t]}function bS(e,t){let r=e.getValue(),n=SS(r),u=TS(r),i=[gl(e,t)],s=ta(e,t);if(s&&i.push(x,s),O(r.program.blockParams)){let a=Dy(r.program);i.push(x,a)}return h([n,F(i),A,u])}function BS(e,t){return[t.htmlWhitespaceSensitivity==="ignore"?d:"",ly(e),"else",py(e)]}function vS(e,t){let r=e.getParentNode(1);return[ly(r),"else if ",ta(e,t),py(r)]}function wS(e,t,r){let n=e.getValue();return r.htmlWhitespaceSensitivity==="ignore"?[fy(n)?A:d,ry(n),t("path"),ny(n)]:[ry(n),t("path"),ny(n)]}function fy(e){return at(e,["BlockStatement"])&&e.program.body.every(t=>Xs(t))}function PS(e){return my(e)&&e.inverse.body.length===1&&at(e.inverse.body[0],["BlockStatement"])&&e.inverse.body[0].path.parts[0]==="if"}function my(e){return at(e,["BlockStatement"])&&e.inverse}function uy(e,t,r){let n=e.getValue();if(fy(n))return"";let u=t("program");return r.htmlWhitespaceSensitivity==="ignore"?F([d,u]):F(u)}function iy(e,t,r){let n=e.getValue(),u=t("inverse"),i=r.htmlWhitespaceSensitivity==="ignore"?[d,u]:u;return PS(n)?i:my(n)?[BS(n,r),F(i)]:""}function sy(e){return B(x,IS(e))}function IS(e){return e.split(/[\t\n\f\r ]+/)}function kS(e){for(let t=0;t<2;t++){let r=e.getParentNode(t);if(r&&r.type==="AttrNode")return r.name.toLowerCase()}}function Rn(e){return e=typeof e=="string"?e:"",e.split(`
|
|
88
|
-
`).length-1}function LS(e){e=typeof e=="string"?e:"";let t=(e.match(/^([^\S\n\r]*[\n\r])+/g)||[])[0]||"";return Rn(t)}function NS(e){e=typeof e=="string"?e:"";let t=(e.match(/([\n\r][^\S\n\r]*)+$/g)||[])[0]||"";return Rn(t)}function ju(e=0){return Array.from({length:Math.min(e,cy)}).fill(d)}function ay(e,t){let{quote:r,regex:n}=Or(e,t);return[r,e.replace(n,`\\${r}`),r]}function _S(e){let t=0,r=e.getParentNode(t);for(;r&&at(r,["SubExpression"]);)t++,r=e.getParentNode(t);return!!(r&&at(e.getParentNode(t+1),["ConcatStatement"])&&at(e.getParentNode(t+2),["AttrNode"]))}function OS(e,t){let r=gl(e,t),n=ta(e,t);return n?F([r,x,h(n)]):r}function oy(e,t){let r=gl(e,t),n=ta(e,t);return n?[F([r,x,n]),A]:r}function gl(e,t){return t("path")}function ta(e,t){let r=e.getValue(),n=[];if(r.params.length>0){let u=e.map(t,"params");n.push(...u)}if(r.hash&&r.hash.pairs.length>0){let u=t("hash");n.push(u)}return n.length===0?"":B(x,n)}function Dy(e){return["as |",e.blockParams.join(" "),"|"]}var RS={print:CS,massageAstNode:Kd,getVisitorKeys:Ie(ey)},dy=RS;var yy=[{linguistLanguageId:155,name:"Handlebars",type:"markup",color:"#f7931e",aliases:["hbs","htmlbars"],extensions:[".handlebars",".hbs"],tmScope:"text.html.handlebars",aceMode:"handlebars",since:"2.3.0",parsers:["glimmer"],vscodeLanguageIds:["handlebars"]}];p();var gy=void 0;var jS={glimmer:dy};var na={};Ce(na,{languages:()=>Sy,options:()=>Ty,parsers:()=>by,printers:()=>YS});p();p();p();function hy(e){return`# @format
|
|
89
|
-
|
|
90
|
-
`+e}p();function Ey(e){return typeof e.start=="number"?e.start:e.loc&&e.loc.start}function hl(e){return typeof e.end=="number"?e.end:e.loc&&e.loc.end}var Cy={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};function VS(e,t,r){let n=e.getValue();if(!n)return"";if(typeof n=="string")return n;switch(n.kind){case"Document":{let u=[];return e.each((i,s,a)=>{u.push(r()),s!==a.length-1&&(u.push(d),Fr(t.originalText,i.getValue(),hl)&&u.push(d))},"definitions"),[...u,d]}case"OperationDefinition":{let u=t.originalText[Ey(n)]!=="{",i=Boolean(n.name);return[u?n.operation:"",u&&i?[" ",r("name")]:"",u&&!i&&O(n.variableDefinitions)?" ":"",O(n.variableDefinitions)?h(["(",F([A,B([N("",", "),A],e.map(r,"variableDefinitions"))]),A,")"]):"",Pe(e,r,n),n.selectionSet?!u&&!i?"":" ":"",r("selectionSet")]}case"FragmentDefinition":return["fragment ",r("name"),O(n.variableDefinitions)?h(["(",F([A,B([N("",", "),A],e.map(r,"variableDefinitions"))]),A,")"]):""," on ",r("typeCondition"),Pe(e,r,n)," ",r("selectionSet")];case"SelectionSet":return["{",F([d,B(d,wt(e,t,r,"selections"))]),d,"}"];case"Field":return h([n.alias?[r("alias"),": "]:"",r("name"),n.arguments.length>0?h(["(",F([A,B([N("",", "),A],wt(e,t,r,"arguments"))]),A,")"]):"",Pe(e,r,n),n.selectionSet?" ":"",r("selectionSet")]);case"Name":return n.value;case"StringValue":{if(n.block){let u=n.value.replace(/"""/g,"\\$&").split(`
|
|
91
|
-
`);return u.length===1&&(u[0]=u[0].trim()),u.every(i=>i==="")&&(u.length=0),B(d,['"""',...u,'"""'])}return['"',n.value.replace(/["\\]/g,"\\$&").replace(/\n/g,"\\n"),'"']}case"IntValue":case"FloatValue":case"EnumValue":return n.value;case"BooleanValue":return n.value?"true":"false";case"NullValue":return"null";case"Variable":return["$",r("name")];case"ListValue":return h(["[",F([A,B([N("",", "),A],e.map(r,"values"))]),A,"]"]);case"ObjectValue":return h(["{",t.bracketSpacing&&n.fields.length>0?" ":"",F([A,B([N("",", "),A],e.map(r,"fields"))]),A,N("",t.bracketSpacing&&n.fields.length>0?" ":""),"}"]);case"ObjectField":case"Argument":return[r("name"),": ",r("value")];case"Directive":return["@",r("name"),n.arguments.length>0?h(["(",F([A,B([N("",", "),A],wt(e,t,r,"arguments"))]),A,")"]):""];case"NamedType":return r("name");case"VariableDefinition":return[r("variable"),": ",r("type"),n.defaultValue?[" = ",r("defaultValue")]:"",Pe(e,r,n)];case"ObjectTypeExtension":case"ObjectTypeDefinition":return[r("description"),n.description?d:"",n.kind==="ObjectTypeExtension"?"extend ":"","type ",r("name"),n.interfaces.length>0?[" implements ",...Ay(e,t,r)]:"",Pe(e,r,n),n.fields.length>0?[" {",F([d,B(d,wt(e,t,r,"fields"))]),d,"}"]:""];case"FieldDefinition":return[r("description"),n.description?d:"",r("name"),n.arguments.length>0?h(["(",F([A,B([N("",", "),A],wt(e,t,r,"arguments"))]),A,")"]):"",": ",r("type"),Pe(e,r,n)];case"DirectiveDefinition":return[r("description"),n.description?d:"","directive ","@",r("name"),n.arguments.length>0?h(["(",F([A,B([N("",", "),A],wt(e,t,r,"arguments"))]),A,")"]):"",n.repeatable?" repeatable":""," on ",B(" | ",e.map(r,"locations"))];case"EnumTypeExtension":case"EnumTypeDefinition":return[r("description"),n.description?d:"",n.kind==="EnumTypeExtension"?"extend ":"","enum ",r("name"),Pe(e,r,n),n.values.length>0?[" {",F([d,B(d,wt(e,t,r,"values"))]),d,"}"]:""];case"EnumValueDefinition":return[r("description"),n.description?d:"",r("name"),Pe(e,r,n)];case"InputValueDefinition":return[r("description"),n.description?n.description.block?d:x:"",r("name"),": ",r("type"),n.defaultValue?[" = ",r("defaultValue")]:"",Pe(e,r,n)];case"InputObjectTypeExtension":case"InputObjectTypeDefinition":return[r("description"),n.description?d:"",n.kind==="InputObjectTypeExtension"?"extend ":"","input ",r("name"),Pe(e,r,n),n.fields.length>0?[" {",F([d,B(d,wt(e,t,r,"fields"))]),d,"}"]:""];case"SchemaExtension":return["extend schema",Pe(e,r,n),...n.operationTypes.length>0?[" {",F([d,B(d,wt(e,t,r,"operationTypes"))]),d,"}"]:[]];case"SchemaDefinition":return[r("description"),n.description?d:"","schema",Pe(e,r,n)," {",n.operationTypes.length>0?F([d,B(d,wt(e,t,r,"operationTypes"))]):"",d,"}"];case"OperationTypeDefinition":return[r("operation"),": ",r("type")];case"InterfaceTypeExtension":case"InterfaceTypeDefinition":return[r("description"),n.description?d:"",n.kind==="InterfaceTypeExtension"?"extend ":"","interface ",r("name"),n.interfaces.length>0?[" implements ",...Ay(e,t,r)]:"",Pe(e,r,n),n.fields.length>0?[" {",F([d,B(d,wt(e,t,r,"fields"))]),d,"}"]:""];case"FragmentSpread":return["...",r("name"),Pe(e,r,n)];case"InlineFragment":return["...",n.typeCondition?[" on ",r("typeCondition")]:"",Pe(e,r,n)," ",r("selectionSet")];case"UnionTypeExtension":case"UnionTypeDefinition":return h([r("description"),n.description?d:"",h([n.kind==="UnionTypeExtension"?"extend ":"","union ",r("name"),Pe(e,r,n),n.types.length>0?[" =",N(""," "),F([N([x," "]),B([x,"| "],e.map(r,"types"))])]:""])]);case"ScalarTypeExtension":case"ScalarTypeDefinition":return[r("description"),n.description?d:"",n.kind==="ScalarTypeExtension"?"extend ":"","scalar ",r("name"),Pe(e,r,n)];case"NonNullType":return[r("type"),"!"];case"ListType":return["[",r("type"),"]"];default:throw new Error("unknown graphql type: "+JSON.stringify(n.kind))}}function Pe(e,t,r){if(r.directives.length===0)return"";let n=B(x,e.map(t,"directives"));return r.kind==="FragmentDefinition"||r.kind==="OperationDefinition"?h([x,n]):[" ",h(F([A,n]))]}function wt(e,t,r,n){return e.map((u,i,s)=>{let a=r();return i<s.length-1&&Fr(t.originalText,u.getValue(),hl)?[a,d]:a},n)}function qS(e){return e.kind&&e.kind!=="Comment"}function US(e){let t=e.getValue();if(t.kind==="Comment")return"#"+t.value.trimEnd();throw new Error("Not a comment: "+JSON.stringify(t))}function Ay(e,t,r){let n=e.getNode(),u=[],{interfaces:i}=n,s=e.map(a=>r(a),"interfaces");for(let a=0;a<i.length;a++){let o=i[a];u.push(s[a]);let c=i[a+1];if(c){let f=t.originalText.slice(o.loc.end,c.loc.start).includes("#");u.push(" &",f?x:" ")}}return u}function Fy(e,t){e.kind==="StringValue"&&e.block&&!e.value.includes(`
|
|
92
|
-
`)&&(t.value=t.value.trim())}Fy.ignoredProperties=new Set(["loc","comments"]);function WS(e){var r;let t=e.getValue();return(r=t==null?void 0:t.comments)==null?void 0:r.some(n=>n.value.trim()==="prettier-ignore")}var GS={print:VS,massageAstNode:Fy,hasPrettierIgnore:WS,insertPragma:hy,printComment:US,canAttachComment:qS,getVisitorKeys:Ie(Cy,"kind")},xy=GS;var Sy=[{linguistLanguageId:139,name:"GraphQL",type:"data",color:"#e10098",extensions:[".graphql",".gql",".graphqls"],tmScope:"source.graphql",aceMode:"text",since:"1.5.0",parsers:["graphql"],vscodeLanguageIds:["graphql"]}];p();var HS={bracketSpacing:Ee.bracketSpacing},Ty=HS;p();var by=void 0;var YS={graphql:xy};var oa={};Ce(oa,{languages:()=>Gy,options:()=>Jy,parsers:()=>Hy,printers:()=>TT});p();p();p();p();p();function $u(e){return e.position.start.offset}function Vu(e){return e.position.end.offset}var ua="(?:[\\u02ea-\\u02eb\\u1100-\\u11ff\\u2e80-\\u2e99\\u2e9b-\\u2ef3\\u2f00-\\u2fd5\\u2ff0-\\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])(?:[\\ufe00-\\ufe0f]|\\udb40[\\udd00-\\uddef])?",By="[\\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]",qu="[\\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]";var Al=["liquidNode","inlineCode","emphasis","esComment","strong","delete","wikiLink","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break","inlineMath"],vy=[...Al,"tableCell","paragraph","heading"],KS=new RegExp(By),Cl=new RegExp(qu);function ia(e,t){let r="non-cjk",n="cj-letter",u="k-letter",i="cjk-punctuation",s=[],a=(t.proseWrap==="preserve"?e:e.replace(new RegExp(`(${ua})
|
|
93
|
-
(${ua})`,"g"),"$1$2")).split(/([\t\n ]+)/);for(let[c,l]of a.entries()){if(c%2===1){s.push({type:"whitespace",value:/\n/.test(l)?`
|
|
94
|
-
`:" "});continue}if((c===0||c===a.length-1)&&l==="")continue;let f=l.split(new RegExp(`(${ua})`));for(let[m,D]of f.entries())if(!((m===0||m===f.length-1)&&D==="")){if(m%2===0){D!==""&&o({type:"word",value:D,kind:r,hasLeadingPunctuation:Cl.test(D[0]),hasTrailingPunctuation:Cl.test(I(D))});continue}o(Cl.test(D)?{type:"word",value:D,kind:i,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0}:{type:"word",value:D,kind:KS.test(D)?u:n,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1})}}return s;function o(c){let l=I(s);l&&l.type==="word"&&(l.kind===r&&c.kind===n&&!l.hasTrailingPunctuation||l.kind===n&&c.kind===r&&!c.hasLeadingPunctuation?s.push({type:"whitespace",value:" "}):!f(r,i)&&![l.value,c.value].some(m=>/\u3000/.test(m))&&s.push({type:"whitespace",value:""})),s.push(c);function f(m,D){return l.kind===m&&c.kind===D||l.kind===D&&c.kind===m}}}function Mn(e,t){let[,r,n,u]=t.slice(e.position.start.offset,e.position.end.offset).match(/^\s*(\d+)(\.|\))(\s*)/);return{numberText:r,marker:n,leadingSpaces:u}}function wy(e,t){if(!e.ordered||e.children.length<2)return!1;let r=Number(Mn(e.children[0],t.originalText).numberText),n=Number(Mn(e.children[1],t.originalText).numberText);if(r===0&&e.children.length>2){let u=Number(Mn(e.children[2],t.originalText).numberText);return n===1&&u===1}return n===1}function sa(e,t){let{value:r}=e;return e.position.end.offset===t.length&&r.endsWith(`
|
|
95
|
-
`)&&t.endsWith(`
|
|
96
|
-
`)?r.slice(0,-1):r}function Pr(e,t){return function r(n,u,i){let s={...t(n,u,i)};return s.children&&(s.children=s.children.map((a,o)=>r(a,o,[s,...i]))),s}(e,null,[])}function Fl(e){if((e==null?void 0:e.type)!=="link"||e.children.length!==1)return!1;let[t]=e.children;return $u(e)===$u(t)&&Vu(e)===Vu(t)}function XS(e,t){let r=e.getValue();if(r.type==="code"&&r.lang!==null){let n=uu(r.lang,t);if(n)return async u=>{let i=t.__inJsTemplate?"~":"`",s=i.repeat(Math.max(3,gn(r.value,i)+1)),a={parser:n};r.lang==="tsx"&&(a.filepath="dummy.tsx");let o=await u(sa(r,t.originalText),a);return _t([s,r.lang,r.meta?" "+r.meta:"",d,tu(o),d,s])}}switch(r.type){case"front-matter":return n=>Ln(r,n);case"importExport":return async n=>[await n(r.value,{parser:"babel"}),d];case"jsx":return n=>n(`<$>${r.value}</$>`,{parser:"__js_expression",rootMarker:"mdx"})}return null}var Py=XS;p();var Iy=["format","prettier"];function ky(e){let t=`@(${Iy.join("|")})`,r=new RegExp([`<!--\\s*${t}\\s*-->`,`{\\s*\\/\\*\\s*${t}\\s*\\*\\/\\s*}`,`<!--.*\r?
|
|
97
|
-
[\\s\\S]*(^|
|
|
98
|
-
)[^\\S
|
|
99
|
-
]*${t}[^\\S
|
|
100
|
-
]*($|
|
|
101
|
-
)[\\s\\S]*
|
|
102
|
-
.*-->`].join("|"),"m"),n=e.match(r);return(n==null?void 0:n.index)===0}var Ly=e=>{let t=js(e),r=`<!-- @${Iy[0]} -->`;return t.frontMatter?`${t.frontMatter.raw}
|
|
103
|
-
|
|
104
|
-
${r}
|
|
105
|
-
|
|
106
|
-
${t.content}`:`${r}
|
|
107
|
-
|
|
108
|
-
${t.content}`};p();var zS=/^.$/su;function QS(e,t){return e=tT(e,t),e=nT(e),e=eT(e),e=iT(e,t),e=sT(e,t),e=uT(e,t),e=ZS(e),e=rT(e),e}function ZS(e){return Pr(e,t=>t.type!=="import"&&t.type!=="export"?t:{...t,type:"importExport"})}function eT(e){return Pr(e,t=>t.type!=="inlineCode"?t:{...t,value:t.value.replace(/\s+/g," ")})}function tT(e,t){return Pr(e,r=>r.type!=="text"||r.value==="*"||r.value==="_"||!zS.test(r.value)||r.position.end.offset-r.position.start.offset===r.value.length?r:{...r,value:t.originalText.slice(r.position.start.offset,r.position.end.offset)})}function rT(e){return Ny(e,(t,r)=>t.type==="importExport"&&r.type==="importExport",(t,r)=>({type:"importExport",value:t.value+`
|
|
109
|
-
|
|
110
|
-
`+r.value,position:{start:t.position.start,end:r.position.end}}))}function Ny(e,t,r){return Pr(e,n=>{if(!n.children)return n;let u=n.children.reduce((i,s)=>{let a=I(i);return a&&t(a,s)?i.splice(-1,1,r(a,s)):i.push(s),i},[]);return{...n,children:u}})}function nT(e){return Ny(e,(t,r)=>t.type==="text"&&r.type==="text",(t,r)=>({type:"text",value:t.value+r.value,position:{start:t.position.start,end:r.position.end}}))}function uT(e,t){return Pr(e,(r,n,[u])=>{if(r.type!=="text")return r;let{value:i}=r;return u.type==="paragraph"&&(n===0&&(i=i.trimStart()),n===u.children.length-1&&(i=i.trimEnd())),{type:"sentence",position:r.position,children:ia(i,t)}})}function iT(e,t){return Pr(e,(r,n,u)=>{if(r.type==="code"){let i=/^\n?(?: {4,}|\t)/.test(t.originalText.slice(r.position.start.offset,r.position.end.offset));if(r.isIndented=i,i)for(let s=0;s<u.length;s++){let a=u[s];if(a.hasIndentedCodeblock)break;a.type==="list"&&(a.hasIndentedCodeblock=!0)}}return r})}function sT(e,t){return Pr(e,(u,i,s)=>{if(u.type==="list"&&u.children.length>0){for(let a=0;a<s.length;a++){let o=s[a];if(o.type==="list"&&!o.isAligned)return u.isAligned=!1,u}u.isAligned=n(u)}return u});function r(u){return u.children.length===0?-1:u.children[0].position.start.column-1}function n(u){if(!u.ordered)return!0;let[i,s]=u.children;if(Mn(i,t.originalText).leadingSpaces.length>1)return!0;let o=r(i);if(o===-1)return!1;if(u.children.length===1)return o%t.tabWidth===0;let c=r(s);return o!==c?!1:o%t.tabWidth===0?!0:Mn(s,t.originalText).leadingSpaces.length>1}}var _y=QS;p();var aT=new Set(["position","raw"]);function Oy(e,t,r){if((e.type==="front-matter"||e.type==="code"||e.type==="yaml"||e.type==="import"||e.type==="export"||e.type==="jsx")&&delete t.value,e.type==="list"&&delete t.isAligned,(e.type==="list"||e.type==="listItem")&&(delete t.spread,delete t.loose),e.type==="text"||(e.type==="inlineCode"&&(t.value=e.value.replace(/[\t\n ]+/g," ")),e.type==="wikiLink"&&(t.value=e.value.trim().replace(/[\t\n]+/g," ")),(e.type==="definition"||e.type==="linkReference")&&(t.label=e.label.trim().replace(/[\t\n ]+/g," ").toLowerCase()),(e.type==="definition"||e.type==="link"||e.type==="image")&&e.title&&(t.title=e.title.replace(/\\(["')])/g,"$1")),r&&r.type==="root"&&r.children.length>0&&(r.children[0]===e||Ue(r.children[0])&&r.children[1]===e)&&e.type==="html"&&ky(e.value)))return null}Oy.ignoredProperties=aT;var Ry=Oy;p();var oT={"front-matter":[],root:["children"],paragraph:["children"],sentence:["children"],word:[],whitespace:[],emphasis:["children"],strong:["children"],delete:["children"],inlineCode:[],wikiLink:[],link:["children"],image:[],blockquote:["children"],heading:["children"],code:[],html:[],list:["children"],thematicBreak:[],linkReference:["children"],imageReference:[],definition:[],footnote:["children"],footnoteReference:[],footnoteDefinition:["children"],table:["children"],tableCell:["children"],break:[],liquidNode:[],import:[],export:[],importExport:[],esComment:[],jsx:[],math:[],inlineMath:[],tableRow:["children"],listItem:["children"],text:[]},My=oT;var qy=new Set(["importExport"]),cT=["heading","tableCell","link","wikiLink"],lT=new Set(["listItem","definition","footnoteDefinition"]);function pT(e,t,r){let n=e.getValue();if(ET(e))return ia(t.originalText.slice(n.position.start.offset,n.position.end.offset),t).map(u=>u.type==="word"?u.value:u.value===""?"":Vy(e,u.value,t));switch(n.type){case"front-matter":return t.originalText.slice(n.position.start.offset,n.position.end.offset);case"root":return n.children.length===0?"":[Xa(dT(e,t,r)),qy.has(yT(n).type)?"":d];case"paragraph":return ke(e,t,r,{postprocessor:se});case"sentence":return ke(e,t,r);case"word":{let u=n.value.replace(/\*/g,"\\$&").replace(new RegExp([`(^|${qu})(_+)`,`(_+)(${qu}|$)`].join("|"),"g"),(a,o,c,l,f)=>(c?`${o}${c}`:`${l}${f}`).replace(/_/g,"\\_")),i=(a,o,c)=>a.type==="sentence"&&c===0,s=(a,o,c)=>Fl(a.children[c-1]);return u!==n.value&&(e.match(void 0,i,s)||e.match(void 0,i,(a,o,c)=>a.type==="emphasis"&&c===0,s))&&(u=u.replace(/^(\\?[*_])+/,a=>a.replace(/\\/g,""))),u}case"whitespace":{let u=e.getParentNode(),i=u.children.indexOf(n),s=u.children[i+1],a=s&&/^>|^(?:[*+-]|#{1,6}|\d+[).])$/.test(s.value)?"never":t.proseWrap;return Vy(e,n.value,{proseWrap:a})}case"emphasis":{let u;if(Fl(n.children[0]))u=t.originalText[n.position.start.offset];else{let i=e.getParentNode(),s=i.children.indexOf(n),a=i.children[s-1],o=i.children[s+1];u=a&&a.type==="sentence"&&a.children.length>0&&I(a.children).type==="word"&&!I(a.children).hasTrailingPunctuation||o&&o.type==="sentence"&&o.children.length>0&&o.children[0].type==="word"&&!o.children[0].hasLeadingPunctuation||Tl(e,"emphasis")?"*":"_"}return[u,ke(e,t,r),u]}case"strong":return["**",ke(e,t,r),"**"];case"delete":return["~~",ke(e,t,r),"~~"];case"inlineCode":{let u=tf(n.value,"`"),i="`".repeat(u||1),s=u&&!/^\s/.test(n.value)?" ":"";return[i,s,n.value,s,i]}case"wikiLink":{let u="";return t.proseWrap==="preserve"?u=n.value:u=n.value.replace(/[\t\n]+/g," "),["[[",u,"]]"]}case"link":switch(t.originalText[n.position.start.offset]){case"<":{let u="mailto:",i=n.url.startsWith(u)&&t.originalText.slice(n.position.start.offset+1,n.position.start.offset+1+u.length)!==u?n.url.slice(u.length):n.url;return["<",i,">"]}case"[":return["[",ke(e,t,r),"](",Sl(n.url,")"),aa(n.title,t),")"];default:return t.originalText.slice(n.position.start.offset,n.position.end.offset)}case"image":return[""),aa(n.title,t),")"];case"blockquote":return["> ",ne("> ",ke(e,t,r))];case"heading":return["#".repeat(n.depth)+" ",ke(e,t,r)];case"code":{if(n.isIndented){let s=" ".repeat(4);return ne(s,[s,...z(n.value,d)])}let u=t.__inJsTemplate?"~":"`",i=u.repeat(Math.max(3,gn(n.value,u)+1));return[i,n.lang||"",n.meta?" "+n.meta:"",d,...z(sa(n,t.originalText),d),d,i]}case"html":{let u=e.getParentNode(),i=u.type==="root"&&I(u.children)===n?n.value.trimEnd():n.value,s=/^<!--.*-->$/s.test(i);return z(i,s?d:_t(_e))}case"list":{let u=$y(n,e.getParentNode()),i=wy(n,t);return ke(e,t,r,{processor:(s,a)=>{let o=l(),c=s.getValue();if(c.children.length===2&&c.children[1].type==="html"&&c.children[0].position.start.column!==c.children[1].position.start.column)return[o,jy(s,t,r,o)];return[o,ne(" ".repeat(o.length),jy(s,t,r,o))];function l(){let f=n.ordered?(a===0?n.start:i?1:n.start+a)+(u%2===0?". ":") "):u%2===0?"- ":"* ";return n.isAligned||n.hasIndentedCodeblock?fT(f,t):f}}})}case"thematicBreak":{let u=Uy(e,"list");return u===-1?"---":$y(e.getParentNode(u),e.getParentNode(u+1))%2===0?"***":"---"}case"linkReference":return["[",ke(e,t,r),"]",n.referenceType==="full"?["[",n.identifier,"]"]:n.referenceType==="collapsed"?"[]":""];case"imageReference":switch(n.referenceType){case"full":return["![",n.alt||"","][",n.identifier,"]"];default:return["![",n.alt,"]",n.referenceType==="collapsed"?"[]":""]}case"definition":{let u=t.proseWrap==="always"?x:" ";return h(["[",n.identifier,"]:",F([u,Sl(n.url),n.title===null?"":[u,aa(n.title,t,!1)]])])}case"footnote":return["[^",ke(e,t,r),"]"];case"footnoteReference":return["[^",n.identifier,"]"];case"footnoteDefinition":{let u=e.getParentNode().children[e.getName()+1],i=n.children.length===1&&n.children[0].type==="paragraph"&&(t.proseWrap==="never"||t.proseWrap==="preserve"&&n.children[0].position.start.line===n.children[0].position.end.line);return["[^",n.identifier,"]: ",i?ke(e,t,r):h([ne(" ".repeat(4),ke(e,t,r,{processor:(s,a)=>a===0?h([A,r()]):r()})),u&&u.type==="footnoteDefinition"?A:""])]}case"table":return DT(e,t,r);case"tableCell":return ke(e,t,r);case"break":return/\s/.test(t.originalText[n.position.start.offset])?[" ",_t(_e)]:["\\",d];case"liquidNode":return z(n.value,d);case"importExport":return[n.value,d];case"esComment":return["{/* ",n.value," */}"];case"jsx":return n.value;case"math":return["$$",d,n.value?[...z(n.value,d),d]:"","$$"];case"inlineMath":return t.originalText.slice($u(n),Vu(n));case"tableRow":case"listItem":case"text":case"import":case"export":default:throw new Error(`Unknown markdown type ${JSON.stringify(n.type)}`)}}function jy(e,t,r,n){let u=e.getValue(),i=u.checked===null?"":u.checked?"[x] ":"[ ] ";return[i,ke(e,t,r,{processor:(s,a)=>{if(a===0&&s.getValue().type!=="list")return ne(" ".repeat(i.length),r());let o=" ".repeat(CT(t.tabWidth-n.length,0,3));return[o,ne(o,r())]}})]}function fT(e,t){let r=n();return e+" ".repeat(r>=4?0:r);function n(){let u=e.length%t.tabWidth;return u===0?0:t.tabWidth-u}}function $y(e,t){return mT(e,t,r=>r.ordered===e.ordered)}function mT(e,t,r){let n=-1;for(let u of t.children)if(u.type===e.type&&r(u)?n++:n=-1,u===e)return n}function Uy(e,t){let r=Array.isArray(t)?t:[t],n=-1,u;for(;u=e.getParentNode(++n);)if(r.includes(u.type))return n;return-1}function Tl(e,t){let r=Uy(e,t);return r===-1?null:e.getParentNode(r)}function Vy(e,t,r){if(r.proseWrap==="preserve"&&t===`
|
|
111
|
-
`)return d;let n=r.proseWrap==="always"&&!Tl(e,cT);return t!==""?n?x:" ":n?A:""}function DT(e,t,r){let n=e.getValue(),u=[],i=e.map(f=>f.map((m,D)=>{let y=jt(r(),t).formatted,E=Ne(y);return u[D]=Math.max(u[D]||3,E),{text:y,width:E}},"children"),"children"),s=o(!1);if(t.proseWrap!=="never")return[te,s];let a=o(!0);return[te,h(N(a,s))];function o(f){let m=[l(i[0],f),c(f)];return i.length>1&&m.push(B(Lr,i.slice(1).map(D=>l(D,f)))),B(Lr,m)}function c(f){return`| ${u.map((D,y)=>{let E=n.align[y],C=E==="center"||E==="left"?":":"-",T=E==="center"||E==="right"?":":"-",b=f?"-":"-".repeat(D-2);return`${C}${b}${T}`}).join(" | ")} |`}function l(f,m){return`| ${f.map(({text:y,width:E},C)=>{if(m)return y;let T=u[C]-E,b=n.align[C],S=0;b==="right"?S=T:b==="center"&&(S=Math.floor(T/2));let v=T-S;return`${" ".repeat(S)}${y}${" ".repeat(v)}`}).join(" | ")} |`}}function dT(e,t,r){let n=[],u=null,{children:i}=e.getValue();for(let[s,a]of i.entries())switch(bl(a)){case"start":u===null&&(u={index:s,offset:a.position.end.offset});break;case"end":u!==null&&(n.push({start:u,end:{index:s,offset:a.position.start.offset}}),u=null);break;default:break}return ke(e,t,r,{processor:(s,a)=>{if(n.length>0){let o=n[0];if(a===o.start.index)return[i[o.start.index].value,t.originalText.slice(o.start.offset,o.end.offset),i[o.end.index].value];if(o.start.index<a&&a<o.end.index)return!1;if(a===o.end.index)return n.shift(),!1}return r()}})}function ke(e,t,r,n={}){let{postprocessor:u}=n,i=n.processor||(()=>r()),s=e.getValue(),a=[],o;return e.each((c,l)=>{let f=c.getValue(),m=i(c,l);if(m!==!1){let D={parts:a,prevNode:o,parentNode:s,options:t};gT(f,D)&&(a.push(d),o&&qy.has(o.type)?xl(f,D)&&a.push(d):((hT(f,D)||xl(f,D))&&a.push(d),xl(f,D)&&a.push(d))),a.push(m),o=f}},"children"),u?u(a):a}function yT(e){let t=e;for(;O(t.children);)t=I(t.children);return t}function bl(e){let t;if(e.type==="html")t=e.value.match(/^<!--\s*prettier-ignore(?:-(start|end))?\s*-->$/);else{let r;e.type==="esComment"?r=e:e.type==="paragraph"&&e.children.length===1&&e.children[0].type==="esComment"&&(r=e.children[0]),r&&(t=r.value.match(/^prettier-ignore(?:-(start|end))?$/))}return t?t[1]||"next":!1}function gT(e,t){let r=t.parts.length===0,n=Al.includes(e.type),u=e.type==="html"&&vy.includes(t.parentNode.type);return!r&&!n&&!u}function hT(e,t){var c,l,f;let n=(t.prevNode&&t.prevNode.type)===e.type&&lT.has(e.type),u=t.parentNode.type==="listItem"&&!t.parentNode.loose,i=((c=t.prevNode)==null?void 0:c.type)==="listItem"&&t.prevNode.loose,s=bl(t.prevNode)==="next",a=e.type==="html"&&((l=t.prevNode)==null?void 0:l.type)==="html"&&t.prevNode.position.end.line+1===e.position.start.line,o=e.type==="html"&&t.parentNode.type==="listItem"&&((f=t.prevNode)==null?void 0:f.type)==="paragraph"&&t.prevNode.position.end.line+1===e.position.start.line;return i||!(n||u||s||a||o)}function xl(e,t){let r=t.prevNode&&t.prevNode.type==="list",n=e.type==="code"&&e.isIndented;return r&&n}function ET(e){let t=Tl(e,["linkReference","imageReference"]);return t&&(t.type!=="linkReference"||t.referenceType!=="full")}function Sl(e,t=[]){let r=[" ",...Array.isArray(t)?t:[t]];return new RegExp(r.map(n=>`\\${n}`).join("|")).test(e)?`<${e}>`:e}function aa(e,t,r=!0){if(!e)return"";if(r)return" "+aa(e,t,!1);if(e=e.replace(/\\(["')])/g,"$1"),e.includes('"')&&e.includes("'")&&!e.includes(")"))return`(${e})`;let n=e.split("'").length-1,u=e.split('"').length-1,i=n>u?'"':u>n||t.singleQuote?"'":'"';return e=e.replace(/\\/,"\\\\"),e=e.replace(new RegExp(`(${i})`,"g"),"\\$1"),`${i}${e}${i}`}function CT(e,t,r){return e<t?t:e>r?r:e}function AT(e){let t=Number(e.getName());if(t===0)return!1;let r=e.getParentNode().children[t-1];return bl(r)==="next"}var FT={preprocess:_y,print:pT,embed:Py,massageAstNode:Ry,hasPrettierIgnore:AT,insertPragma:Ly,getVisitorKeys:Ie(My)},Wy=FT;var Gy=[{linguistLanguageId:222,name:"Markdown",type:"prose",color:"#083fa1",aliases:["pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".md",".livemd",".markdown",".mdown",".mdwn",".mkd",".mkdn",".mkdown",".ronn",".scd",".workbook"],filenames:["contents.lr","README"],tmScope:"source.gfm",since:"1.8.0",parsers:["markdown"],vscodeLanguageIds:["markdown"]},{linguistLanguageId:222,name:"MDX",type:"prose",color:"#083fa1",aliases:["pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".mdx"],filenames:[],tmScope:"source.gfm",since:"1.15.0",parsers:["mdx"],vscodeLanguageIds:["mdx"]}];p();var ST={proseWrap:Ee.proseWrap,singleQuote:Ee.singleQuote},Jy=ST;p();var Hy=void 0;var TT={mdast:Wy};var Ia={};Ce(Ia,{languages:()=>Jg,options:()=>Yg,parsers:()=>Kg,printers:()=>ub});p();p();p();var bT=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan"]);function Yy(e,t){if(e.type==="text"||e.type==="comment"||Ue(e)||e.type==="yaml"||e.type==="toml")return null;e.type==="attribute"&&delete t.value,e.type==="docType"&&delete t.value}Yy.ignoredProperties=bT;var Ky=Yy;p();var Xy="inline",zy={area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",source:"block",style:"none",template:"inline",track:"block",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",fieldset:"block",button:"inline-block",details:"block",summary:"block",dialog:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",select:"inline-block",option:"block",optgroup:"block"},Qy="normal",Zy={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"};p();function BT(e){return e.type==="element"&&!e.hasExplicitNamespace&&!["html","svg"].includes(e.namespace)}var la=BT;var vT=new Set([" ",`
|
|
112
|
-
`,"\f","\r"," "]),wT=e=>e.replace(/^[\t\n\f\r ]+/,""),tg=e=>e.replace(/[\t\n\f\r ]+$/,""),rg=e=>wT(tg(e)),PT=e=>e.replace(/^[\t\f\r ]*\n/g,""),Bl=e=>PT(tg(e)),IT=e=>e.split(/[\t\n\f\r ]+/),kT=e=>e.match(/^[\t\n\f\r ]*/)[0],ng=e=>{let[,t,r,n]=e.match(/^([\t\n\f\r ]*)(.*?)([\t\n\f\r ]*)$/s);return{leadingWhitespace:t,trailingWhitespace:n,text:r}},ug=e=>/[\t\n\f\r ]/.test(e);function pa(e,t){return!!(e.type==="ieConditionalComment"&&e.lastChild&&!e.lastChild.isSelfClosing&&!e.lastChild.endSourceSpan||e.type==="ieConditionalComment"&&!e.complete||tn(e)&&e.children.some(r=>r.type!=="text"&&r.type!=="interpolation")||da(e,t)&&!Pt(e)&&e.type!=="interpolation")}function Uu(e){return e.type==="attribute"||!e.parent||!e.prev?!1:LT(e.prev)}function LT(e){return e.type==="comment"&&e.value.trim()==="prettier-ignore"}function Ke(e){return e.type==="text"||e.type==="comment"}function Pt(e){return e.type==="element"&&(e.fullName==="script"||e.fullName==="style"||e.fullName==="svg:style"||la(e)&&(e.name==="script"||e.name==="style"))}function ig(e){return e.children&&!Pt(e)}function sg(e){return Pt(e)||e.type==="interpolation"||vl(e)}function vl(e){return gg(e).startsWith("pre")}function ag(e,t){let r=n();if(r&&!e.prev&&e.parent&&e.parent.tagDefinition&&e.parent.tagDefinition.ignoreFirstLf)return e.type==="interpolation";return r;function n(){return Ue(e)?!1:(e.type==="text"||e.type==="interpolation")&&e.prev&&(e.prev.type==="text"||e.prev.type==="interpolation")?!0:!e.parent||e.parent.cssDisplay==="none"?!1:tn(e.parent)?!0:!(!e.prev&&(e.parent.type==="root"||tn(e)&&e.parent||Pt(e.parent)||Ju(e.parent,t)||!RT(e.parent.cssDisplay))||e.prev&&!$T(e.prev.cssDisplay))}}function og(e,t){return Ue(e)?!1:(e.type==="text"||e.type==="interpolation")&&e.next&&(e.next.type==="text"||e.next.type==="interpolation")?!0:!e.parent||e.parent.cssDisplay==="none"?!1:tn(e.parent)?!0:!(!e.next&&(e.parent.type==="root"||tn(e)&&e.parent||Pt(e.parent)||Ju(e.parent,t)||!MT(e.parent.cssDisplay))||e.next&&!jT(e.next.cssDisplay))}function cg(e){return VT(e.cssDisplay)&&!Pt(e)}function Wu(e){return Ue(e)||e.next&&e.sourceSpan.end&&e.sourceSpan.end.line+1<e.next.sourceSpan.start.line}function lg(e){return wl(e)||e.type==="element"&&e.children.length>0&&(["body","script","style"].includes(e.name)||e.children.some(t=>_T(t)))||e.firstChild&&e.firstChild===e.lastChild&&e.firstChild.type!=="text"&&fg(e.firstChild)&&(!e.lastChild.isTrailingSpaceSensitive||mg(e.lastChild))}function wl(e){return e.type==="element"&&e.children.length>0&&(["html","head","ul","ol","select"].includes(e.name)||e.cssDisplay.startsWith("table")&&e.cssDisplay!=="table-cell")}function fa(e){return Dg(e)||e.prev&&NT(e.prev)||pg(e)}function NT(e){return Dg(e)||e.type==="element"&&e.fullName==="br"||pg(e)}function pg(e){return fg(e)&&mg(e)}function fg(e){return e.hasLeadingSpaces&&(e.prev?e.prev.sourceSpan.end.line<e.sourceSpan.start.line:e.parent.type==="root"||e.parent.startSourceSpan.end.line<e.sourceSpan.start.line)}function mg(e){return e.hasTrailingSpaces&&(e.next?e.next.sourceSpan.start.line>e.sourceSpan.end.line:e.parent.type==="root"||e.parent.endSourceSpan&&e.parent.endSourceSpan.start.line>e.sourceSpan.end.line)}function Dg(e){switch(e.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(e.name)}return!1}function ma(e){return e.lastChild?ma(e.lastChild):e}function _T(e){return e.children&&e.children.some(t=>t.type!=="text")}function eg(e){let{type:t,lang:r}=e.attrMap;if(t==="module"||t==="text/javascript"||t==="text/babel"||t==="application/javascript"||r==="jsx")return"babel";if(t==="application/x-typescript"||r==="ts"||r==="tsx")return"typescript";if(t==="text/markdown")return"markdown";if(t==="text/html")return"html";if(t&&(t.endsWith("json")||t.endsWith("importmap"))||t==="speculationrules")return"json";if(t==="text/x-handlebars-template")return"glimmer"}function OT(e,t){let{lang:r}=e.attrMap;if(!r||r==="postcss"||r==="css")return"css";if(r==="scss")return"scss";if(r==="less")return"less";if(r==="stylus")return uu("stylus",t)}function Pl(e,t){if(e.name==="script"&&!e.attrMap.src)return!e.attrMap.lang&&!e.attrMap.type?"babel":eg(e);if(e.name==="style")return OT(e,t);if(t&&da(e,t))return eg(e)||!("src"in e.attrMap)&&uu(e.attrMap.lang,t)}function Gu(e){return e==="block"||e==="list-item"||e.startsWith("table")}function RT(e){return!Gu(e)&&e!=="inline-block"}function MT(e){return!Gu(e)&&e!=="inline-block"}function jT(e){return!Gu(e)}function $T(e){return!Gu(e)}function VT(e){return!Gu(e)&&e!=="inline-block"}function tn(e){return gg(e).startsWith("pre")}function dg(e,t){let r=0;for(let n=e.stack.length-1;n>=0;n--){let u=e.stack[n];u&&typeof u=="object"&&!Array.isArray(u)&&t(u)&&r++}return r}function qT(e,t){let r=e;for(;r;){if(t(r))return!0;r=r.parent}return!1}function yg(e,t){if(e.prev&&e.prev.type==="comment"){let n=e.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/);if(n)return n[1]}let r=!1;if(e.type==="element"&&e.namespace==="svg")if(qT(e,n=>n.fullName==="svg:foreignObject"))r=!0;else return e.name==="svg"?"inline-block":"block";switch(t.htmlWhitespaceSensitivity){case"strict":return"inline";case"ignore":return"block";default:return t.parser==="vue"&&e.parent&&e.parent.type==="root"?"block":e.type==="element"&&(!e.namespace||r||la(e))&&zy[e.name]||Xy}}function gg(e){return e.type==="element"&&(!e.namespace||la(e))&&Zy[e.name]||Qy}function UT(e){let t=Number.POSITIVE_INFINITY;for(let r of e.split(`
|
|
113
|
-
`)){if(r.length===0)continue;if(!vT.has(r[0]))return 0;let n=kT(r).length;r.length!==n&&n<t&&(t=n)}return t===Number.POSITIVE_INFINITY?0:t}function Il(e,t=UT(e)){return t===0?e:e.split(`
|
|
114
|
-
`).map(r=>r.slice(t)).join(`
|
|
115
|
-
`)}function kl(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}function Da(e){return e.replace(/'/g,"'").replace(/"/g,'"')}var WT=new Set(["template","style","script"]);function Ju(e,t){return jn(e,t)&&!WT.has(e.fullName)}function jn(e,t){return t.parser==="vue"&&e.type==="element"&&e.parent.type==="root"&&e.fullName.toLowerCase()!=="html"}function da(e,t){return jn(e,t)&&(Ju(e,t)||e.attrMap.lang&&e.attrMap.lang!=="html")}function hg(e){let t=e.fullName;return t.charAt(0)==="#"||t==="slot-scope"||t==="v-slot"||t.startsWith("v-slot:")}function Eg(e,t){let r=e.parent;if(!jn(r,t))return!1;let n=r.fullName,u=e.fullName;return n==="script"&&u==="setup"||n==="style"&&u==="vars"}function ya(e,t=e.value){return e.parent.isWhitespaceSensitive?e.parent.isIndentationSensitive?z(t):z(Il(Bl(t)),d):B(x,IT(t))}function Cg(e,t){return jn(e,t)&&e.name==="script"}p();var dr=Ct(Pg(),1);var P2=[k2,L2,_2,R2,M2,V2,j2,$2,q2,O2,U2];function I2(e,t){for(let r of P2)r(e,t);return e}function k2(e){e.walk(t=>{if(t.type==="element"&&t.tagDefinition.ignoreFirstLf&&t.children.length>0&&t.children[0].type==="text"&&t.children[0].value[0]===`
|
|
116
|
-
`){let r=t.children[0];r.value.length===1?t.removeChild(r):r.value=r.value.slice(1)}})}function L2(e){let t=r=>r.type==="element"&&r.prev&&r.prev.type==="ieConditionalStartComment"&&r.prev.sourceSpan.end.offset===r.startSourceSpan.start.offset&&r.firstChild&&r.firstChild.type==="ieConditionalEndComment"&&r.firstChild.sourceSpan.start.offset===r.startSourceSpan.end.offset;e.walk(r=>{if(r.children)for(let n=0;n<r.children.length;n++){let u=r.children[n];if(!t(u))continue;let i=u.prev,s=u.firstChild;r.removeChild(i),n--;let a=new dr.ParseSourceSpan(i.sourceSpan.start,s.sourceSpan.end),o=new dr.ParseSourceSpan(a.start,u.sourceSpan.end);u.condition=i.condition,u.sourceSpan=o,u.startSourceSpan=a,u.removeChild(s)}})}function N2(e,t,r){e.walk(n=>{if(n.children)for(let u=0;u<n.children.length;u++){let i=n.children[u];if(i.type!=="text"&&!t(i))continue;i.type!=="text"&&(i.type="text",i.value=r(i));let s=i.prev;!s||s.type!=="text"||(s.value+=i.value,s.sourceSpan=new dr.ParseSourceSpan(s.sourceSpan.start,i.sourceSpan.end),n.removeChild(i),u--)}})}function _2(e){return N2(e,t=>t.type==="cdata",t=>`<![CDATA[${t.value}]]>`)}function O2(e){let t=r=>r.type==="element"&&r.attrs.length===0&&r.children.length===1&&r.firstChild.type==="text"&&!ug(r.children[0].value)&&!r.firstChild.hasLeadingSpaces&&!r.firstChild.hasTrailingSpaces&&r.isLeadingSpaceSensitive&&!r.hasLeadingSpaces&&r.isTrailingSpaceSensitive&&!r.hasTrailingSpaces&&r.prev&&r.prev.type==="text"&&r.next&&r.next.type==="text";e.walk(r=>{if(r.children)for(let n=0;n<r.children.length;n++){let u=r.children[n];if(!t(u))continue;let i=u.prev,s=u.next;i.value+=`<${u.rawName}>`+u.firstChild.value+`</${u.rawName}>`+s.value,i.sourceSpan=new dr.ParseSourceSpan(i.sourceSpan.start,s.sourceSpan.end),i.isTrailingSpaceSensitive=s.isTrailingSpaceSensitive,i.hasTrailingSpaces=s.hasTrailingSpaces,r.removeChild(u),n--,r.removeChild(s)}})}function R2(e,t){if(t.parser==="html")return;let r=/{{(.+?)}}/s;e.walk(n=>{if(!!ig(n))for(let u of n.children){if(u.type!=="text")continue;let i=u.sourceSpan.start,s=null,a=u.value.split(r);for(let o=0;o<a.length;o++,i=s){let c=a[o];if(o%2===0){s=i.moveBy(c.length),c.length>0&&n.insertChildBefore(u,{type:"text",value:c,sourceSpan:new dr.ParseSourceSpan(i,s)});continue}s=i.moveBy(c.length+4),n.insertChildBefore(u,{type:"interpolation",sourceSpan:new dr.ParseSourceSpan(i,s),children:c.length===0?[]:[{type:"text",value:c,sourceSpan:new dr.ParseSourceSpan(i.moveBy(2),s.moveBy(-2))}]})}n.removeChild(u)}})}function M2(e){e.walk(t=>{if(!t.children)return;if(t.children.length===0||t.children.length===1&&t.children[0].type==="text"&&rg(t.children[0].value).length===0){t.hasDanglingSpaces=t.children.length>0,t.children=[];return}let r=sg(t),n=vl(t);if(!r)for(let u=0;u<t.children.length;u++){let i=t.children[u];if(i.type!=="text")continue;let{leadingWhitespace:s,text:a,trailingWhitespace:o}=ng(i.value),c=i.prev,l=i.next;a?(i.value=a,i.sourceSpan=new dr.ParseSourceSpan(i.sourceSpan.start.moveBy(s.length),i.sourceSpan.end.moveBy(-o.length)),s&&(c&&(c.hasTrailingSpaces=!0),i.hasLeadingSpaces=!0),o&&(i.hasTrailingSpaces=!0,l&&(l.hasLeadingSpaces=!0))):(t.removeChild(i),u--,(s||o)&&(c&&(c.hasTrailingSpaces=!0),l&&(l.hasLeadingSpaces=!0)))}t.isWhitespaceSensitive=r,t.isIndentationSensitive=n})}function j2(e){e.walk(t=>{t.isSelfClosing=!t.children||t.type==="element"&&(t.tagDefinition.isVoid||t.startSourceSpan===t.endSourceSpan)})}function $2(e,t){e.walk(r=>{r.type==="element"&&(r.hasHtmComponentClosingTag=r.endSourceSpan&&/^<\s*\/\s*\/\s*>$/.test(t.originalText.slice(r.endSourceSpan.start.offset,r.endSourceSpan.end.offset)))})}function V2(e,t){e.walk(r=>{r.cssDisplay=yg(r,t)})}function q2(e,t){e.walk(r=>{let{children:n}=r;if(!!n){if(n.length===0){r.isDanglingSpaceSensitive=cg(r);return}for(let u of n)u.isLeadingSpaceSensitive=ag(u,t),u.isTrailingSpaceSensitive=og(u,t);for(let u=0;u<n.length;u++){let i=n[u];i.isLeadingSpaceSensitive=(u===0||i.prev.isTrailingSpaceSensitive)&&i.isLeadingSpaceSensitive,i.isTrailingSpaceSensitive=(u===n.length-1||i.next.isLeadingSpaceSensitive)&&i.isTrailingSpaceSensitive}}})}function U2(e,t){if(t.parser==="vue"){let r=e.children.find(u=>Cg(u,t));if(!r)return;let{lang:n}=r.attrMap;(n==="ts"||n==="typescript")&&(t.__should_parse_vue_template_with_ts=!0)}}var Ig=I2;p();function kg(e){return`<!-- @format -->
|
|
117
|
-
|
|
118
|
-
`+e.replace(/^\s*\n/,"")}p();function qn(e){return e.sourceSpan.start.offset}function Un(e){return e.sourceSpan.end.offset}p();p();function Yu(e,t){return[e.isSelfClosing?"":W2(e,t),Ku(e,t)]}function W2(e,t){return e.lastChild&&un(e.lastChild)?"":[G2(e,t),Sa(e,t)]}function Ku(e,t){return(e.next?Yt(e.next):nn(e.parent))?"":[rn(e,t),kt(e,t)]}function G2(e,t){return nn(e)?rn(e.lastChild,t):""}function kt(e,t){return un(e)?Sa(e.parent,t):Xu(e)?Ta(e.next):""}function Sa(e,t){if(He(!e.isSelfClosing),Lg(e,t))return"";switch(e.type){case"ieConditionalComment":return"<!";case"element":if(e.hasHtmComponentClosingTag)return"<//";default:return`</${e.rawName}`}}function rn(e,t){if(Lg(e,t))return"";switch(e.type){case"ieConditionalComment":case"ieConditionalEndComment":return"[endif]-->";case"ieConditionalStartComment":return"]><!-->";case"interpolation":return"}}";case"element":if(e.isSelfClosing)return"/>";default:return">"}}function Lg(e,t){return!e.isSelfClosing&&!e.endSourceSpan&&(Uu(e)||pa(e.parent,t))}function Yt(e){return e.prev&&e.prev.type!=="docType"&&!Ke(e.prev)&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function nn(e){return e.lastChild&&e.lastChild.isTrailingSpaceSensitive&&!e.lastChild.hasTrailingSpaces&&!Ke(ma(e.lastChild))&&!tn(e)}function un(e){return!e.next&&!e.hasTrailingSpaces&&e.isTrailingSpaceSensitive&&Ke(ma(e))}function Xu(e){return e.next&&!Ke(e.next)&&Ke(e)&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces}function J2(e){let t=e.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/s);return t?t[1]?t[1].split(/\s+/):!0:!1}function zu(e){return!e.prev&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function H2(e,t,r){let n=e.getValue();if(!O(n.attrs))return n.isSelfClosing?" ":"";let u=n.prev&&n.prev.type==="comment"&&J2(n.prev.value),i=typeof u=="boolean"?()=>u:Array.isArray(u)?f=>u.includes(f.rawName):()=>!1,s=e.map(f=>{let m=f.getValue();return i(m)?z(t.originalText.slice(qn(m),Un(m))):r()},"attrs"),a=n.type==="element"&&n.fullName==="script"&&n.attrs.length===1&&n.attrs[0].fullName==="src"&&n.children.length===0,c=t.singleAttributePerLine&&n.attrs.length>1&&!jn(n,t)?d:x,l=[F([a?" ":x,B(c,s)])];return n.firstChild&&zu(n.firstChild)||n.isSelfClosing&&nn(n.parent)||a?l.push(n.isSelfClosing?" ":""):l.push(t.bracketSameLine?n.isSelfClosing?" ":"":n.isSelfClosing?x:A),l}function Y2(e){return e.firstChild&&zu(e.firstChild)?"":ba(e)}function Qu(e,t,r){let n=e.getValue();return[Zu(n,t),H2(e,t,r),n.isSelfClosing?"":Y2(n)]}function Zu(e,t){return e.prev&&Xu(e.prev)?"":[Lt(e,t),Ta(e)]}function Lt(e,t){return zu(e)?ba(e.parent):Yt(e)?rn(e.prev,t):""}function Ta(e){switch(e.type){case"ieConditionalComment":case"ieConditionalStartComment":return`<!--[if ${e.condition}`;case"ieConditionalEndComment":return"<!--<!";case"interpolation":return"{{";case"docType":return e.value==="html"?"<!doctype":"<!DOCTYPE";case"element":if(e.condition)return`<!--[if ${e.condition}]><!--><${e.rawName}`;default:return`<${e.rawName}`}}function ba(e){switch(He(!e.isSelfClosing),e.type){case"ieConditionalComment":return"]>";case"element":if(e.condition)return"><!--<![endif]-->";default:return">"}}p();var Og=Ct(_g(),1);function Rg(e){let t=(0,Og.default)(e,{logger:{error(D){throw new Error(D)}}}),r=t.some(({w:D})=>D),n=t.some(({h:D})=>D),u=t.some(({d:D})=>D);if(r+n+u>1)throw new Error("Mixed descriptor in srcset is not supported");let i=r?"w":n?"h":"d",s=r?"w":n?"h":"x",a=D=>Math.max(...D),o=t.map(D=>D.url),c=a(o.map(D=>D.length)),l=t.map(D=>D[i]).map(D=>D?D.toString():""),f=l.map(D=>{let y=D.indexOf(".");return y===-1?D.length:y}),m=a(f);return B([",",x],o.map((D,y)=>{let E=[D],C=l[y];if(C){let T=c-D.length+1,b=m-f[y],S=" ".repeat(T+b);E.push(N(S," "),C+s)}return E}))}function Mg(e){return e.trim().split(/\s+/).join(" ")}p();async function jg(e,t){let{left:r,operator:n,right:u}=K2(e);return[h(await t(`function _(${r}) {}`,{parser:"babel",__isVueForBindingLeft:!0}))," ",n," ",await t(u,{parser:"__js_expression"})]}function K2(e){let t=/(.*?)\s+(in|of)\s+(.*)/s,r=/,([^,\]}]*)(?:,([^,\]}]*))?$/,n=/^\(|\)$/g,u=e.match(t);if(!u)return;let i={};if(i.for=u[3].trim(),!i.for)return;let s=u[1].trim().replace(n,""),a=s.match(r);a?(i.alias=s.replace(r,""),i.iterator1=a[1].trim(),a[2]&&(i.iterator2=a[2].trim())):i.alias=s;let o=[i.alias,i.iterator1,i.iterator2];if(!o.some((c,l)=>!c&&(l===0||o.slice(l+1).some(Boolean))))return{left:o.filter(Boolean).join(","),operator:u[2],right:i.for}}function $g(e,t){return t(`function _(${e}) {}`,{parser:"babel",__isVueBindings:!0})}function Vg(e){let t=/^(?:[\w$]+|\([^)]*\))\s*=>|^function\s*\(/,r=/^[$A-Z_a-z][\w$]*(?:\.[$A-Z_a-z][\w$]*|\['[^']*']|\["[^"]*"]|\[\d+]|\[[$A-Z_a-z][\w$]*])*$/,n=e.trim();return t.test(n)||r.test(n)}p();function X2(e,t){let r=e.startSourceSpan.end.offset;e.firstChild&&zu(e.firstChild)&&(r-=ba(e).length);let n=e.endSourceSpan.start.offset;return e.lastChild&&un(e.lastChild)?n+=Sa(e,t).length:nn(e)&&(n-=rn(e.lastChild,t).length),t.originalText.slice(r,n)}var va=X2;async function z2(e,t,r){let n=f=>new RegExp(f.join("|")).test(e.fullName),u=()=>Da(e.value),i=!1,s=(f,m)=>{let D=f.type==="NGRoot"?f.node.type==="NGMicrosyntax"&&f.node.body.length===1&&f.node.body[0].type==="NGMicrosyntaxExpression"?f.node.body[0].expression:f.node:f.type==="JsExpressionRoot"?f.node:f;D&&(D.type==="ObjectExpression"||D.type==="ArrayExpression"||m.parser==="__vue_expression"&&(D.type==="TemplateLiteral"||D.type==="StringLiteral"))&&(i=!0)},a=f=>h(f),o=(f,m=!0)=>h([F([A,f]),m?A:""]),c=f=>i?a(f):o(f),l=(f,m)=>t(f,{__onHtmlBindingRoot:s,__embeddedInHtml:!0,...m});if(e.fullName==="srcset"&&(e.parent.fullName==="img"||e.parent.fullName==="source"))return o(Rg(u()));if(e.fullName==="class"&&!r.parentParser){let f=u();if(!f.includes("{{"))return Mg(f)}if(e.fullName==="style"&&!r.parentParser){let f=u();if(!f.includes("{{"))return o(await l(f,{parser:"css",__isHTMLStyleAttribute:!0}))}if(r.parser==="vue"){if(e.fullName==="v-for")return jg(u(),l);if(hg(e)||Eg(e,r))return $g(u(),l);let f=["^@","^v-on:"],m=["^:","^v-bind:"],D=["^v-"];if(n(f)){let y=u(),E=Vg(y)?"__js_expression":r.__should_parse_vue_template_with_ts?"__vue_ts_event_binding":"__vue_event_binding";return c(await l(y,{parser:E}))}if(n(m))return c(await l(u(),{parser:"__vue_expression"}));if(n(D))return c(await l(u(),{parser:"__js_expression"}))}if(r.parser==="angular"){let f=(b,S)=>l(b,{...S,trailingComma:"none"}),m=["^\\*"],D=["^\\(.+\\)$","^on-"],y=["^\\[.+\\]$","^bind(on)?-","^ng-(if|show|hide|class|style)$"],E=["^i18n(-.+)?$"];if(n(D))return c(await f(u(),{parser:"__ng_action"}));if(n(y))return c(await f(u(),{parser:"__ng_binding"}));if(n(E)){let b=u().trim();return o(se(ya(e,b)),!b.includes("@@"))}if(n(m))return c(await f(u(),{parser:"__ng_directive"}));let C=/{{(.+?)}}/s,T=u();if(C.test(T)){let b=[];for(let[S,v]of T.split(C).entries())if(S%2===0)b.push(z(v));else try{b.push(h(["{{",F([x,await f(v,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),x,"}}"]))}catch{b.push("{{",z(v),"}}")}return h(b)}}return null}function Q2(e,t){let r=e.getValue();switch(r.type){case"element":{if(Pt(r)||r.type==="interpolation")return;if(!r.isSelfClosing&&da(r,t)){let n=Pl(r,t);return n?async(u,i)=>{let s=va(r,t),a=/^\s*$/.test(s),o="";return a||(o=await u(Bl(s),{parser:n,__embeddedInHtml:!0}),a=o===""),[Lt(r,t),h(Qu(e,t,i)),a?"":d,o,a?"":d,Yu(r,t),kt(r,t)]}:void 0}break}case"text":{if(Pt(r.parent)){let n=Pl(r.parent,t);if(n)return async u=>{let i=n==="markdown"?Il(r.value.replace(/^[^\S\n]*\n/,"")):r.value,s={parser:n,__embeddedInHtml:!0};if(t.parser==="html"&&n==="babel"){let a="script",{attrMap:o}=r.parent;o&&(o.type==="module"||o.type==="text/babel"&&o["data-type"]==="module")&&(a="module"),s.__babelSourceType=a}return[te,Lt(r,t),await u(i,s,{stripTrailingHardline:!0}),kt(r,t)]}}else if(r.parent.type==="interpolation")return async n=>{let u={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return t.parser==="angular"?(u.parser="__ng_interpolation",u.trailingComma="none"):t.parser==="vue"?u.parser=t.__should_parse_vue_template_with_ts?"__vue_ts_expression":"__vue_expression":u.parser="__js_expression",[F([x,await n(r.value,u)]),r.parent.next&&Yt(r.parent.next)?" ":x]};break}case"attribute":{if(!r.value)break;return/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(t.originalText.slice(r.valueSpan.start.offset,r.valueSpan.end.offset))?[r.rawName,"=",r.value]:t.parser==="lwc"&&/^{.*}$/s.test(t.originalText.slice(r.valueSpan.start.offset,r.valueSpan.end.offset))?[r.rawName,"=",r.value]:async n=>{let u=await z2(r,(i,s)=>n(i,{__isInHtmlAttribute:!0,__embeddedInHtml:!0,...s}),t);if(u)return[r.rawName,'="',h(et(u,i=>typeof i=="string"?i.replace(/"/g,"""):i)),'"']}}case"front-matter":return n=>Ln(r,n)}}var qg=Q2;p();p();function ei(e,t,r){let n=e.getValue();return Uu(n)?[Lt(n,t),...z(t.originalText.slice(qn(n)+(n.prev&&Xu(n.prev)?Ta(n).length:0),Un(n)-(n.next&&Yt(n.next)?rn(n,t).length:0))),kt(n,t)]:r()}function wa(e,t){return Ke(e)&&Ke(t)?e.isTrailingSpaceSensitive?e.hasTrailingSpaces?fa(t)?d:x:"":fa(t)?d:A:Xu(e)&&(Uu(t)||t.firstChild||t.isSelfClosing||t.type==="element"&&t.attrs.length>0)||e.type==="element"&&e.isSelfClosing&&Yt(t)?"":!t.isLeadingSpaceSensitive||fa(t)||Yt(t)&&e.lastChild&&un(e.lastChild)&&e.lastChild.lastChild&&un(e.lastChild.lastChild)?d:t.hasLeadingSpaces?x:A}function Pa(e,t,r){let n=e.getValue();if(wl(n))return[te,...e.map(i=>{let s=i.getValue(),a=s.prev?wa(s.prev,s):"";return[a?[a,Wu(s.prev)?d:""]:"",ei(i,t,r)]},"children")];let u=n.children.map(()=>Symbol(""));return e.map((i,s)=>{let a=i.getValue();if(Ke(a)){if(a.prev&&Ke(a.prev)){let y=wa(a.prev,a);if(y)return Wu(a.prev)?[d,d,ei(i,t,r)]:[y,ei(i,t,r)]}return ei(i,t,r)}let o=[],c=[],l=[],f=[],m=a.prev?wa(a.prev,a):"",D=a.next?wa(a,a.next):"";return m&&(Wu(a.prev)?o.push(d,d):m===d?o.push(d):Ke(a.prev)?c.push(m):c.push(N("",A,{groupId:u[s-1]}))),D&&(Wu(a)?Ke(a.next)&&f.push(d,d):D===d?Ke(a.next)&&f.push(d):l.push(D)),[...o,h([...c,h([ei(i,t,r),...l],{id:u[s]})]),...f]},"children")}function Ug(e,t,r){let n=e.getValue();if(pa(n,t))return[Lt(n,t),h(Qu(e,t,r)),...z(va(n,t)),...Yu(n,t),kt(n,t)];let u=n.children.length===1&&n.firstChild.type==="interpolation"&&n.firstChild.isLeadingSpaceSensitive&&!n.firstChild.hasLeadingSpaces&&n.lastChild.isTrailingSpaceSensitive&&!n.lastChild.hasTrailingSpaces,i=Symbol("element-attr-group-id"),s=l=>h([h(Qu(e,t,r),{id:i}),l,Yu(n,t)]),a=l=>u?Qt(l,{groupId:i}):(Pt(n)||Ju(n,t))&&n.parent.type==="root"&&t.parser==="vue"&&!t.vueIndentScriptAndStyle?l:F(l),o=()=>u?N(A,"",{groupId:i}):n.firstChild.hasLeadingSpaces&&n.firstChild.isLeadingSpaceSensitive?x:n.firstChild.type==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive?gr(A):A,c=()=>(n.next?Yt(n.next):nn(n.parent))?n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?" ":"":u?N(A,"",{groupId:i}):n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?x:(n.lastChild.type==="comment"||n.lastChild.type==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive)&&new RegExp(`\\n[\\t ]{${t.tabWidth*dg(e,f=>f.parent&&f.parent.type!=="root")}}$`).test(n.lastChild.value)?"":A;return n.children.length===0?s(n.hasDanglingSpaces&&n.isDanglingSpaceSensitive?x:""):s([lg(n)?te:"",a([o(),Pa(e,t,r)]),c()])}p();var Z2={"front-matter":[],root:["children"],element:["attrs","children"],ieConditionalComment:["children"],ieConditionalStartComment:[],ieConditionalEndComment:[],interpolation:["children"],text:["children"],docType:[],comment:[],attribute:[],cdata:[]},Wg=Z2;function eb(e,t,r){let n=e.getValue();switch(n.type){case"front-matter":return z(n.raw);case"root":return t.__onHtmlRoot&&t.__onHtmlRoot(n),[h(Pa(e,t,r)),d];case"element":case"ieConditionalComment":return Ug(e,t,r);case"ieConditionalStartComment":case"ieConditionalEndComment":return[Zu(n),Ku(n)];case"interpolation":return[Zu(n,t),...e.map(r,"children"),Ku(n,t)];case"text":{if(n.parent.type==="interpolation"){let i=/\n[^\S\n]*$/,s=i.test(n.value),a=s?n.value.replace(i,""):n.value;return[...z(a),s?d:""]}let u=Rt([Lt(n,t),...ya(n),kt(n,t)]);return Array.isArray(u)?se(u):u}case"docType":return[h([Zu(n,t)," ",n.value.replace(/^html\b/i,"html").replace(/\s+/g," ")]),Ku(n,t)];case"comment":return[Lt(n,t),...z(t.originalText.slice(qn(n),Un(n)),_e),kt(n,t)];case"attribute":{if(n.value===null)return n.rawName;let u=Da(n.value),i=kl(u,"'"),s=kl(u,'"'),a=i<s?"'":'"';return[n.rawName,"=",a,...z(a==='"'?u.replace(/"/g,"""):u.replace(/'/g,"'")),a]}case"cdata":default:throw new Error(`Unexpected node type ${n.type}`)}}var tb={preprocess:Ig,print:eb,insertPragma:kg,massageAstNode:Ky,embed:qg,getVisitorKeys:Ie(Wg)},Gg=tb;var Jg=[{linguistLanguageId:146,name:"Angular",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".component.html"],since:"1.15.0",parsers:["angular"],vscodeLanguageIds:["html"],filenames:[]},{linguistLanguageId:146,name:"HTML",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".html",".hta",".htm",".html.hl",".inc",".xht",".xhtml",".mjml"],since:"1.15.0",parsers:["html"],vscodeLanguageIds:["html"]},{linguistLanguageId:146,name:"Lightning Web Components",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[],since:"1.17.0",parsers:["lwc"],vscodeLanguageIds:["html"],filenames:[]},{linguistLanguageId:391,name:"Vue",type:"markup",color:"#41b883",extensions:[".vue"],tmScope:"text.html.vue",aceMode:"html",since:"1.10.0",parsers:["vue"],vscodeLanguageIds:["vue"]}];p();var Hg="HTML",nb={bracketSameLine:Ee.bracketSameLine,htmlWhitespaceSensitivity:{since:"1.15.0",category:Hg,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},singleAttributePerLine:Ee.singleAttributePerLine,vueIndentScriptAndStyle:{since:"1.19.0",category:Hg,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},Yg=nb;p();var Kg=void 0;var ub={html:Gg};var Ra={};Ce(Ra,{languages:()=>fh,options:()=>mh,parsers:()=>Dh,printers:()=>xb});p();p();p();function Xg(e){return/^\s*@(?:prettier|format)\s*$/.test(e)}function zg(e){return`# @format
|
|
119
|
-
|
|
120
|
-
${e}`}p();function ka(e){return e.position.start.offset}p();function ib(e,t){if(e.getValue().type==="root"&&t.filepath&&/(?:[/\\]|^)\.(?:prettier|stylelint|lintstaged)rc$/.test(t.filepath))return async n=>{let u=await n(t.originalText,{parser:"json"});return u?[u,d]:void 0}}var Qg=ib;p();function eh(e,t){let r=0,n=e.stack.length-1;for(let u=0;u<n;u++){let i=e.stack[u];je(i)&&t(i)&&r++}return r}function je(e,t){return e&&typeof e.type=="string"&&(!t||t.includes(e.type))}function Xl(e,t,r){return t("children"in e?{...e,children:e.children.map(n=>Xl(n,t,e))}:e,r)}function Wn(e,t,r){Object.defineProperty(e,t,{get:r,enumerable:!1})}function th(e,t){let r=0,n=t.length;for(let u=e.position.end.offset-1;u<n;u++){let i=t[u];if(i===`
|
|
121
|
-
`&&r++,r===1&&/\S/.test(i))return!1;if(r===2)return!0}return!1}function La(e){switch(e.getValue().type){case"tag":case"anchor":case"comment":return!1}let r=e.stack.length;for(let n=1;n<r;n++){let u=e.stack[n],i=e.stack[n-1];if(Array.isArray(i)&&typeof u=="number"&&u!==i.length-1)return!1}return!0}function Na(e){return O(e.children)?Na(I(e.children)):e}function Zg(e){return e.value.trim()==="prettier-ignore"}function rh(e){let t=e.getValue();if(t.type==="documentBody"){let r=e.getParentNode();return $e(r.head)&&Zg(I(r.head.endComments))}return Kt(t)&&Zg(I(t.leadingComments))}function Gn(e){return!O(e.children)&&!sb(e)}function sb(e){return Kt(e)||Ir(e)||zl(e)||Et(e)||$e(e)}function Kt(e){return O(e==null?void 0:e.leadingComments)}function Ir(e){return O(e==null?void 0:e.middleComments)}function zl(e){return e==null?void 0:e.indicatorComment}function Et(e){return e==null?void 0:e.trailingComment}function $e(e){return O(e==null?void 0:e.endComments)}function nh(e){let t=[],r;for(let n of e.split(/( +)/))n!==" "?r===" "?t.push(n):t.push((t.pop()||"")+n):r===void 0&&t.unshift(""),r=n;return r===" "&&t.push((t.pop()||"")+" "),t[0]===""&&(t.shift(),t.unshift(" "+(t.shift()||""))),t}function uh(e,t,r){let n=t.split(`
|
|
122
|
-
`).map((u,i,s)=>i===0&&i===s.length-1?u:i!==0&&i!==s.length-1?u.trim():i===0?u.trimEnd():u.trimStart());return r.proseWrap==="preserve"?n.map(u=>u.length===0?[]:[u]):n.map(u=>u.length===0?[]:nh(u)).reduce((u,i,s)=>s!==0&&n[s-1].length>0&&i.length>0&&!(e==="quoteDouble"&&I(I(u)).endsWith("\\"))?[...u.slice(0,-1),[...I(u),...i]]:[...u,i],[]).map(u=>r.proseWrap==="never"?[u.join(" ")]:u)}function ih(e,{parentIndent:t,isLastDescendant:r,options:n}){let u=e.position.start.line===e.position.end.line?"":n.originalText.slice(e.position.start.offset,e.position.end.offset).match(/^[^\n]*\n(.*)$/s)[1],i;if(e.indent===null){let o=u.match(/^(?<leadingSpace> *)[^\n\r ]/m);i=o?o.groups.leadingSpace.length:Number.POSITIVE_INFINITY}else i=e.indent-1+t;let s=u.split(`
|
|
123
|
-
`).map(o=>o.slice(i));if(n.proseWrap==="preserve"||e.type==="blockLiteral")return a(s.map(o=>o.length===0?[]:[o]));return a(s.map(o=>o.length===0?[]:nh(o)).reduce((o,c,l)=>l!==0&&s[l-1].length>0&&c.length>0&&!/^\s/.test(c[0])&&!/^\s|\s$/.test(I(o))?[...o.slice(0,-1),[...I(o),...c]]:[...o,c],[]).map(o=>o.reduce((c,l)=>c.length>0&&/\s$/.test(I(c))?[...c.slice(0,-1),I(c)+" "+l]:[...c,l],[])).map(o=>n.proseWrap==="never"?[o.join(" ")]:o));function a(o){if(e.chomping==="keep")return I(o).length===0?o.slice(0,-1):o;let c=0;for(let l=o.length-1;l>=0&&o[l].length===0;l--)c++;return c===0?o:c>=2&&!r?o.slice(0,-(c-1)):o.slice(0,-c)}}function ti(e){if(!e)return!0;switch(e.type){case"plain":case"quoteDouble":case"quoteSingle":case"alias":case"flowMapping":case"flowSequence":return!0;default:return!1}}p();var ab=Object.fromEntries(Object.entries({root:["children"],document:["head","body","children"],documentHead:["children"],documentBody:["children"],directive:[],alias:[],blockLiteral:[],blockFolded:["children"],plain:["children"],quoteSingle:[],quoteDouble:[],mapping:["children"],mappingItem:["key","value","children"],mappingKey:["content","children"],mappingValue:["content","children"],sequence:["children"],sequenceItem:["content","children"],flowMapping:["children"],flowMappingItem:["key","value","children"],flowSequence:["children"],flowSequenceItem:["children"],comment:[],tag:[],anchor:[]}).map(([e,t])=>[e,[...t,"anchor","tag","indicatorComment","leadingComments","middleComments","trailingComment","endComments"]])),sh=ab;p();function ob(e){return Xl(e,cb)}function cb(e){switch(e.type){case"document":Wn(e,"head",()=>e.children[0]),Wn(e,"body",()=>e.children[1]);break;case"documentBody":case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":Wn(e,"content",()=>e.children[0]);break;case"mappingItem":case"flowMappingItem":Wn(e,"key",()=>e.children[0]),Wn(e,"value",()=>e.children[1]);break}return e}var ah=ob;p();var Ql=new WeakMap;function _a(e,t){let r=e.getValue(),n=e.stack[0],u;return Ql.has(n)?u=Ql.get(n):(u=new Set,Ql.set(n,u)),!u.has(r.position.end.line)&&(u.add(r.position.end.line),th(r,t)&&!Zl(e.getParentNode()))?A:""}function Zl(e){return $e(e)&&!je(e,["documentHead","documentBody","flowMapping","flowSequence"])}function Le(e,t){return ne(" ".repeat(e),t)}p();function Oa(e,t,r){let n=e.getValue(),u=n.type==="flowMapping",i=u?"{":"[",s=u?"}":"]",a=A;u&&n.children.length>0&&r.bracketSpacing&&(a=x);let o=I(n.children),c=o&&o.type==="flowMappingItem"&&Gn(o.key)&&Gn(o.value);return[i,Le(r.tabWidth,[a,lb(e,t,r),r.trailingComma==="none"?"":N(","),$e(n)?[d,B(d,e.map(t,"endComments"))]:""]),c?"":a,s]}function lb(e,t,r){let n=e.getValue();return e.map((i,s)=>[t(),s===n.children.length-1?"":[",",x,n.children[s].position.start.line!==n.children[s+1].position.start.line?_a(i,r.originalText):""]],"children")}p();function pb(e,t,r,n,u){let{key:i,value:s}=e,a=Gn(i),o=Gn(s);if(a&&o)return": ";let c=n("key"),l=fb(e)?" ":"";if(o)return e.type==="flowMappingItem"&&t.type==="flowMapping"?c:e.type==="mappingItem"&&ep(i.content,u)&&!Et(i.content)&&(!t.tag||t.tag.value!=="tag:yaml.org,2002:set")?[c,l,":"]:["? ",Le(2,c)];let f=n("value");if(a)return[": ",Le(2,f)];if(Kt(s)||!ti(i.content))return["? ",Le(2,c),d,B("",r.map(n,"value","leadingComments").map(T=>[T,d])),": ",Le(2,f)];if(mb(i.content)&&!Kt(i.content)&&!Ir(i.content)&&!Et(i.content)&&!$e(i)&&!Kt(s.content)&&!Ir(s.content)&&!$e(s)&&ep(s.content,u))return[c,l,": ",f];let m=Symbol("mappingKey"),D=h([N("? "),h(Le(2,c),{id:m})]),y=[d,": ",Le(2,f)],E=[l,":"];Kt(s.content)||$e(s)&&s.content&&!je(s.content,["mapping","sequence"])||t.type==="mapping"&&Et(i.content)&&ti(s.content)||je(s.content,["mapping","sequence"])&&s.content.tag===null&&s.content.anchor===null?E.push(d):s.content&&E.push(x),E.push(f);let C=Le(u.tabWidth,E);return ep(i.content,u)&&!Kt(i.content)&&!Ir(i.content)&&!$e(i)?ft([[c,C]]):ft([[D,N(y,C,{groupId:m})]])}function ep(e,t){if(!e)return!0;switch(e.type){case"plain":case"quoteSingle":case"quoteDouble":break;case"alias":return!0;default:return!1}if(t.proseWrap==="preserve")return e.position.start.line===e.position.end.line;if(/\\$/m.test(t.originalText.slice(e.position.start.offset,e.position.end.offset)))return!1;switch(t.proseWrap){case"never":return!e.value.includes(`
|
|
124
|
-
`);case"always":return!/[\n ]/.test(e.value);default:return!1}}function fb(e){return e.key.content&&e.key.content.type==="alias"}function mb(e){if(!e)return!0;switch(e.type){case"plain":case"quoteDouble":case"quoteSingle":return e.position.start.line===e.position.end.line;case"alias":return!0;default:return!1}}var oh=pb;p();function Db(e,t,r){let n=e.getValue(),u=eh(e,c=>je(c,["sequence","mapping"])),i=La(e),s=[n.type==="blockFolded"?">":"|"];n.indent!==null&&s.push(n.indent.toString()),n.chomping!=="clip"&&s.push(n.chomping==="keep"?"+":"-"),zl(n)&&s.push(" ",t("indicatorComment"));let a=ih(n,{parentIndent:u,isLastDescendant:i,options:r}),o=[];for(let[c,l]of a.entries())c===0&&o.push(d),o.push(se(B(x,l))),c!==a.length-1?o.push(l.length===0?d:_t(_e)):n.chomping==="keep"&&i&&o.push(gr(l.length===0?d:_e));return n.indent===null?s.push(Ze(Le(r.tabWidth,o))):s.push(gr(Le(n.indent-1+u,o))),s}var ch=Db;function db(e,t,r){let n=e.getValue(),u=[];n.type!=="mappingValue"&&Kt(n)&&u.push([B(d,e.map(r,"leadingComments")),d]);let{tag:i,anchor:s}=n;i&&u.push(r("tag")),i&&s&&u.push(" "),s&&u.push(r("anchor"));let a="";je(n,["mapping","sequence","comment","directive","mappingItem","sequenceItem"])&&!La(e)&&(a=_a(e,t.originalText)),(i||s)&&(je(n,["sequence","mapping"])&&!Ir(n)?u.push(d):u.push(" ")),Ir(n)&&u.push([n.middleComments.length===1?"":d,B(d,e.map(r,"middleComments")),d]);let o=e.getParentNode();return rh(e)?u.push(z(t.originalText.slice(n.position.start.offset,n.position.end.offset).trimEnd(),_e)):u.push(h(yb(n,o,e,t,r))),Et(n)&&!je(n,["document","documentHead"])&&u.push(on([n.type==="mappingValue"&&!n.content?"":" ",o.type==="mappingKey"&&e.getParentNode(2).type==="mapping"&&ti(n)?"":te,r("trailingComment")])),Zl(n)&&u.push(Le(n.type==="sequenceItem"?2:0,[d,B(d,e.map(c=>[yn(t.originalText,c.getValue(),ka)?d:"",r()],"endComments"))])),u.push(a),u}function yb(e,t,r,n,u){switch(e.type){case"root":{let{children:i}=e,s=[];r.each((o,c)=>{let l=i[c],f=i[c+1];c!==0&&s.push(d),s.push(u()),lh(l,f)?(s.push(d,"..."),Et(l)&&s.push(" ",u("trailingComment"))):f&&!Et(f.head)&&s.push(d,"---")},"children");let a=Na(e);return(!je(a,["blockLiteral","blockFolded"])||a.chomping!=="keep")&&s.push(d),s}case"document":{let i=t.children[r.getName()+1],s=[];return hb(e,i,t,n)==="head"&&((e.head.children.length>0||e.head.endComments.length>0)&&s.push(u("head")),Et(e.head)?s.push(["---"," ",u(["head","trailingComment"])]):s.push("---")),gb(e)&&s.push(u("body")),B(d,s)}case"documentHead":return B(d,[...r.map(u,"children"),...r.map(u,"endComments")]);case"documentBody":{let{children:i,endComments:s}=e,a="";if(i.length>0&&s.length>0){let o=Na(e);je(o,["blockFolded","blockLiteral"])?o.chomping!=="keep"&&(a=[d,d]):a=d}return[B(d,r.map(u,"children")),a,B(d,r.map(u,"endComments"))]}case"directive":return["%",B(" ",[e.name,...e.parameters])];case"comment":return["#",e.value];case"alias":return["*",e.value];case"tag":return n.originalText.slice(e.position.start.offset,e.position.end.offset);case"anchor":return["&",e.value];case"plain":return ri(e.type,n.originalText.slice(e.position.start.offset,e.position.end.offset),n);case"quoteDouble":case"quoteSingle":{let i="'",s='"',a=n.originalText.slice(e.position.start.offset+1,e.position.end.offset-1);if(e.type==="quoteSingle"&&a.includes("\\")||e.type==="quoteDouble"&&/\\[^"]/.test(a)){let c=e.type==="quoteDouble"?s:i;return[c,ri(e.type,a,n),c]}if(a.includes(s))return[i,ri(e.type,e.type==="quoteDouble"?a.replace(/\\"/g,s).replace(/'/g,i.repeat(2)):a,n),i];if(a.includes(i))return[s,ri(e.type,e.type==="quoteSingle"?a.replace(/''/g,i):a,n),s];let o=n.singleQuote?i:s;return[o,ri(e.type,a,n),o]}case"blockFolded":case"blockLiteral":return ch(r,u,n);case"mapping":case"sequence":return B(d,r.map(u,"children"));case"sequenceItem":return["- ",Le(2,e.content?u("content"):"")];case"mappingKey":case"mappingValue":return e.content?u("content"):"";case"mappingItem":case"flowMappingItem":return oh(e,t,r,u,n);case"flowMapping":return Oa(r,u,n);case"flowSequence":return Oa(r,u,n);case"flowSequenceItem":return u("content");default:throw new Error(`Unexpected node type ${e.type}`)}}function gb(e){return e.body.children.length>0||$e(e.body)}function lh(e,t){return Et(e)||t&&(t.head.children.length>0||$e(t.head))}function hb(e,t,r,n){return r.children[0]===e&&/---(?:\s|$)/.test(n.originalText.slice(ka(e),ka(e)+4))||e.head.children.length>0||$e(e.head)||Et(e.head)?"head":lh(e,t)?!1:t?"root":!1}function ri(e,t,r){let n=uh(e,t,r);return B(d,n.map(u=>se(B(x,u))))}function Eb(e,t){if(je(t))switch(delete t.position,t.type){case"comment":if(Xg(t.value))return null;break;case"quoteDouble":case"quoteSingle":t.type="quote";break}}var Cb={preprocess:ah,embed:Qg,print:db,massageAstNode:Eb,insertPragma:zg,getVisitorKeys:Ie(sh)},ph=Cb;var fh=[{linguistLanguageId:407,name:"YAML",type:"data",color:"#cb171e",tmScope:"source.yaml",aliases:["yml"],extensions:[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],filenames:[".clang-format",".clang-tidy",".gemrc","CITATION.cff","glide.lock",".prettierrc",".stylelintrc",".lintstagedrc"],aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",since:"1.14.0",parsers:["yaml"],vscodeLanguageIds:["yaml","ansible","home-assistant"]}];p();var Fb={bracketSpacing:Ee.bracketSpacing,singleQuote:Ee.singleQuote,proseWrap:Ee.proseWrap},mh=Fb;p();var Dh=void 0;var xb={yaml:ph};var rp={};Ce(rp,{addDanglingComment:()=>fe,addLeadingComment:()=>ue,addTrailingComment:()=>re,getAlignmentSize:()=>nu,getIndentSize:()=>gi,getMaxContinuousCount:()=>gn,getNextNonSpaceNonCommentCharacterIndex:()=>tr,getStringWidth:()=>Ne,hasNewline:()=>ee,hasNewlineInRange:()=>$t,hasSpaces:()=>ef,isNextLineEmpty:()=>Fr,isNextLineEmptyAfterIndex:()=>_r,isPreviousLineEmpty:()=>yn,makeString:()=>lo,skip:()=>Zp,skipEverythingButNewLine:()=>fn,skipInlineComment:()=>mn,skipNewline:()=>xt,skipSpaces:()=>mt,skipToLineEnd:()=>yi,skipTrailingComment:()=>Dn,skipWhitespace:()=>ru});p();var np={};Ce(np,{builders:()=>ui,debug:()=>ci,printer:()=>oi,utils:()=>ii});p();var Sb=Object.values(tp);function sn(e,t=1){return async(...r)=>{let n=r[t]||{},u=n.plugins||[];return r[t]={...n,plugins:[...Sb,...Array.isArray(u)?u:Object.values(u)]},e(...r)}}var Tb=sn(qr.formatWithCursor);async function bb(e,t){let{formatted:r}=await Tb(e,{...t,cursorOffset:-1});return r}async function T9(e,t){return await bb(e,t)===e}var b9=sn(Nr,0),B9={parse:sn(qr.parse),formatAST:sn(qr.formatAST),formatDoc:sn(qr.formatDoc),printToDoc:sn(qr.printToDoc),printDocToString:sn(qr.printDocToString)};export{B9 as __debug,T9 as check,np as doc,bb as format,Tb as formatWithCursor,b9 as getSupportInfo,rp as util,co as version};
|